html,body,#root{height:100%}body{margin:0;background:linear-gradient(180deg,#fff,#f6fafc);color:#0f1724;font-family:-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.container{padding:18px}.card{background:#fff;border-radius:10px;padding:14px;box-shadow:0 6px 18px #0f172a14;margin-bottom:12px}.btn{padding:8px 12px;border-radius:8px;border:none;cursor:pointer}.btn-primary{background:#2563eb;color:#fff}.btn-green{background:#059669;color:#fff}.btn-ghost{background:#eef2ff;color:#0f1724}.input,.select{width:100%;padding:8px;border-radius:6px;border:1px solid #e6eef8;box-sizing:border-box}.table{width:100%;border-collapse:collapse;font-size:13px}.table th{text-align:left;color:#6b7280;font-weight:600}.table td,.table th{padding:6px;border-top:1px solid #eef2ff}.small{font-size:13px;color:#475569}.muted{font-size:12px;color:#94a3b8}.header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.grid{display:grid;grid-template-columns:360px 1fr;gap:16px}@media(max-width:980px){.grid{grid-template-columns:1fr}}.App{text-align:center}.App-logo{height:40vmin;pointer-events:none}@media(prefers-reduced-motion:no-preference){.App-logo{animation:App-logo-spin infinite 20s linear}}.App-header{background-color:#282c34;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:calc(10px + 2vmin);color:#fff}.App-link{color:#61dafb}@keyframes App-logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.calculation-methods{margin-bottom:20px}.method-selector{margin-bottom:15px}.method-buttons{display:flex;gap:8px;margin-bottom:15px}.method-button{padding:8px 16px;border-radius:8px;border:none;cursor:pointer;font-size:12px;font-weight:500;transition:all .3s ease;flex:1;min-width:120px}.method-button.active{background:#2563eb;color:#fff;box-shadow:0 2px 4px #2563eb4d}.method-button.simplified.active{background:#059669;color:#fff;box-shadow:0 2px 4px #0596694d}.method-button.inactive{background:#f1f5f9;color:#64748b;border:1px solid #e2e8f0}.method-button.inactive:hover{background:#e2e8f0;color:#475569}.simplified-form{background:#f8fafc;padding:16px;border-radius:8px;border:1px solid #e2e8f0}.form-group{margin-bottom:15px}.form-label{display:block;margin-bottom:6px;font-size:12px;color:#475569;font-weight:600}.form-input{width:100%;padding:8px 12px;border-radius:6px;border:1px solid #d1d5db;font-size:14px;background-color:#fff;transition:border-color .2s ease,box-shadow .2s ease;box-sizing:border-box}.form-input:focus{outline:none;border-color:#059669;box-shadow:0 0 0 3px #0596691a}.numeric-input{text-align:right;font-family:Courier New,monospace;font-weight:500}.calculation-info,.detailed-info{background:#fef3c7;padding:12px;border-radius:6px;border-left:4px solid #f59e0b;margin-top:15px}.info-text{margin:0;font-size:12px;color:#92400e;line-height:1.4}@media(max-width:768px){.method-buttons{flex-direction:column}.method-button{min-width:auto}.simplified-form{padding:12px}}.main-container{font-family:Segoe UI,Arial,sans-serif;padding:18px;background:#f6fafc;min-width:1200px}.header-section{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.header-left{flex:1}.main-layout{display:grid;grid-template-columns:380px 1fr;gap:16px;min-width:1160px}.left-panel{background:#fff;border-radius:10px;padding:14px;box-shadow:0 6px 18px #0f172a14}.config-section-title{margin-top:0;margin-bottom:15px;font-size:18px;color:#1e293b;font-weight:600}.mode-buttons{margin-bottom:15px}.mode-button{padding:8px 12px;border-radius:8px;border:none;cursor:pointer;margin-right:8px;font-size:12px;font-weight:500}.mode-button.active-on-grid{background:#2563eb;color:#fff}.mode-button.active-hybrid{background:#059669;color:#fff}.mode-button.inactive{background:#f1f5f9;color:#64748b;border:1px solid #e2e8f0}.input-group{margin-bottom:15px}.input-label{font-size:12px;color:#475569;display:block;margin-bottom:6px;font-weight:600}.input-field{width:100%;padding:8px 12px;border-radius:6px;border:1px solid #d1d5db;font-size:14px;background-color:#fff;box-sizing:border-box}.input-field:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.help-text{font-size:11px;color:#64748b;margin-top:4px}@media(max-width:1200px){.main-container{min-width:auto;padding:10px}.main-layout{grid-template-columns:1fr;min-width:auto}.header-section{flex-direction:column;gap:10px;align-items:stretch}}.pdf-button{position:relative;width:100%;padding:14px 20px;border:none;border-radius:10px;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;font-size:14px;font-weight:600;font-family:inherit;cursor:pointer;overflow:hidden;transition:all .3s ease;box-shadow:0 4px 12px #2563eb4d;text-transform:uppercase;letter-spacing:.5px}.pdf-button:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af);box-shadow:0 6px 20px #2563eb66;transform:translateY(-2px)}.pdf-button:active{transform:translateY(0);box-shadow:0 2px 8px #2563eb4d}.pdf-button:disabled{background:#94a3b8;cursor:not-allowed;transform:none;box-shadow:none}.pdf-button:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .6s ease}.pdf-button:hover:before{left:100%}.pdf-button-content{display:flex;align-items:center;justify-content:center;gap:8px;position:relative;z-index:1}.pdf-icon{font-size:16px;transition:transform .3s ease}.pdf-button:hover .pdf-icon{transform:scale(1.1)}.pdf-button-text{transition:all .3s ease}.pdf-button.generating{background:linear-gradient(135deg,#f59e0b,#d97706);box-shadow:0 4px 12px #f59e0b4d}.pdf-button.generating .pdf-icon{animation:spin 1s linear infinite}.pdf-button.success{background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 4px 12px #10b9814d}.pdf-button.error{background:linear-gradient(135deg,#ef4444,#dc2626);box-shadow:0 4px 12px #ef44444d}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.pdf-button.generating .pdf-button-text{animation:pulse 1.5s ease-in-out infinite}@media(max-width:768px){.pdf-button{padding:12px 16px;font-size:13px}.pdf-icon{font-size:14px}}
