body{margin:0}*,:before,:after{box-sizing:border-box}:root{--bg-page:#f3f4f6;--bg-surface:#fff;--text:#0f172a;--muted:#64748b;--primary:#2563eb;--primary-600:#1e40af;--ring:0 0 0 3px #2563eb40;--border:#e5e7eb;--shadow:0 2px 10px #00000008;--shadow-sm:0 1px 6px #0000000a;--radius:14px}html,body,#root{height:100%}body{color:var(--text);background:var(--bg-page);margin:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,Apple Color Emoji,Segoe UI Emoji;overflow-x:hidden}.app-shell{background:var(--bg-page);height:100dvh;min-height:100dvh;display:flex;overflow:hidden}.sidebar{background:var(--bg-surface);border-right:1px solid var(--border);width:260px;height:100dvh;padding:16px 14px;padding-top:calc(16px + env(safe-area-inset-top));padding-bottom:calc(16px + env(safe-area-inset-bottom));flex:0 0 260px;overflow:hidden auto;box-shadow:1px 0 12px #0000000a}.brand{border-bottom:1px solid #eef2f7;justify-content:center;align-items:center;margin-bottom:16px;padding:0 0 16px;display:flex}.brand-logo{cursor:pointer;-webkit-user-select:none;user-select:none;width:235px;max-width:100%;height:auto;transition:transform .18s,opacity .18s;display:block}.brand-logo:hover{opacity:.92;transform:scale(1.02)}.brand-placeholder{align-items:center;gap:12px;padding:6px 2px 2px;display:flex}.brand-badge{color:#fff;width:40px;height:40px;box-shadow:var(--shadow-sm);background:#0f172a;border-radius:12px;place-items:center;font-weight:900;display:grid}.brand-title{color:#0f172a;font-weight:900;line-height:1.1}.brand-subtitle{color:var(--muted);margin-top:2px;font-size:13px;line-height:1.1}.section{margin:16px 0}.section-title{letter-spacing:.08em;color:#64748b;text-transform:uppercase;margin:12px 8px 10px;font-size:11px}.navlink{color:#0f172a;border:1px solid #0000;border-radius:10px;margin:6px 4px;padding:10px 12px;text-decoration:none;transition:background .12s,border-color .12s,outline .12s;display:block}.navlink:hover{background:#f2f6ff;border-color:#e0e7ff}.navlink-active{color:#1e3a8a;outline:var(--ring);background:#e8f0ff;border-color:#c7d2fe;font-weight:800}.logout-btn{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:12px;width:100%;height:40px;font-weight:900}.logout-btn:hover{background:#f9fafb}.content{min-width:0;height:100dvh;padding:26px 28px;padding-top:calc(26px + env(safe-area-inset-top));padding-bottom:calc(26px + env(safe-area-inset-bottom));flex:1;position:relative;overflow:visible auto}.page{width:100%;max-width:none;position:relative;overflow:visible}.page h1,.content h1{color:#0f172a;margin:0 0 6px;font-size:28px;font-weight:900}.muted{color:var(--muted)}.card{background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);width:100%;padding:16px;position:relative;overflow:visible}.card-head{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.card-title{color:#0f172a;font-weight:900}.card-subtitle{color:var(--muted);margin-top:2px;font-size:13px}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px;display:flex}.page-actions{flex-wrap:wrap;align-items:center;gap:10px;display:inline-flex}.btn,.ghost,.btn-primary,.btn-danger{cursor:pointer;border:1px solid var(--border);color:#0f172a;background:#fff;border-radius:10px;height:40px;padding:0 14px;font-weight:900}.btn:hover,.ghost:hover{background:#f9fafb}.btn:disabled,.ghost:disabled,.btn-primary:disabled,.btn-danger:disabled{opacity:.65;cursor:not-allowed}.btn-primary{background:var(--primary);border-color:var(--primary-600);color:#fff}.btn-primary:hover{background:var(--primary-600)}.btn-danger{color:#b91c1c;background:#fff;border-color:#fecaca}.btn-danger:hover{background:#fff5f5;border-color:#fca5a5}.input{width:100%;color:var(--text);background:#fff;border:1px solid #d1d5db;border-radius:10px;outline:none;padding:10px 12px}.input:focus{box-shadow:var(--ring);border-color:#93c5fd}textarea.input{resize:vertical;min-height:110px}.grid-2{grid-template-columns:1.2fr .8fr;gap:16px;margin-bottom:14px;display:grid}.form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.field .label{color:#475569;margin-bottom:6px;font-size:12px;font-weight:800}.inline-form{grid-template-columns:1.2fr 1.8fr auto;align-items:end;gap:12px;display:grid}.kpi{gap:12px;display:grid}.kpi-row{background:#fbfdff;border:1px solid #eef2f7;border-radius:12px;justify-content:space-between;align-items:flex-end;gap:12px;padding:12px;display:flex}.kpi-label{color:var(--muted);font-size:12px;font-weight:800}.kpi-value{color:#0f172a;font-size:16px;font-weight:900}.tabs{flex-wrap:wrap;gap:10px;margin:10px 0 12px;display:flex}.tab{cursor:pointer;color:#0f172a;background:#fff;border:1px solid #d1d5db;border-radius:999px;height:38px;padding:0 12px;font-weight:900}.tab:hover{background:#f3f4f6}.tab.active{color:#1e3a8a;outline:var(--ring);background:#e8f0ff;border-color:#2563eb}.table-wrap{position:relative;overflow:auto visible}.list{border-collapse:collapse;width:100%;font-size:14px}.list thead th{text-align:left;color:#475569;white-space:nowrap;border-bottom:1px solid #e5e7eb;padding:10px 8px;font-weight:900}.list tbody td{vertical-align:top;border-bottom:1px solid #f1f5f9;padding:10px 8px}.list tr.row:hover{background:#eef4ff}.list,.list thead,.list tbody,.list tr,.list td,.list th{overflow:visible}.hint{color:#64748b;margin-top:10px;font-size:13px}.drawer-backdrop{z-index:40;background:#0f172a59;position:fixed;inset:0}.mobile-topbar{z-index:30;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);padding:calc(10px + env(safe-area-inset-top)) 12px 10px;background:#f3f4f6eb;justify-content:space-between;align-items:center;gap:10px;margin:-26px -28px 12px;display:flex;position:sticky;top:0}.mobile-menu-btn{cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:10px;width:40px;height:40px;font-weight:900}.mobile-topbar-title{color:#0f172a;font-size:14px;font-weight:900}.sidebar.sidebar-drawer{z-index:50;width:280px;max-width:86vw;height:100dvh;padding-top:calc(16px + env(safe-area-inset-top));padding-bottom:calc(16px + env(safe-area-inset-bottom));transition:transform .18s;position:fixed;top:0;bottom:0;left:0;transform:translate(-110%)}.sidebar.sidebar-drawer.open{transform:translate(0)}@media (width<=1100px){.grid-2{grid-template-columns:1fr}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inline-form{grid-template-columns:1fr}}@media (width<=900px){.content{padding:16px;padding-top:calc(16px + env(safe-area-inset-top));padding-bottom:calc(16px + env(safe-area-inset-bottom))}.mobile-topbar{margin:-16px -16px 12px}.brand-logo{height:44px}}@media (width<=520px){.form-grid{grid-template-columns:1fr}}.modal-backdrop{z-index:80;background:#0f172a73;justify-content:center;align-items:center;padding:18px;display:flex;position:fixed;inset:0}.modal-card{border:1px solid var(--border);background:#fff;border-radius:16px;width:min(920px,100%);max-height:calc(100dvh - 36px);padding:18px;overflow:auto;box-shadow:0 24px 80px #0f172a47}.modal-head{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px;display:flex}.modal-title{color:#0f172a;font-size:20px;font-weight:900}.modal-actions{justify-content:space-between;align-items:center;gap:12px;margin-top:18px;display:flex}.modal-actions-right{gap:10px;margin-left:auto;display:flex}@media (width<=700px){.modal-actions,.modal-actions-right{flex-direction:column;width:100%}.modal-actions button,.modal-actions-right button{width:100%}}.pdf-dropzone{text-align:center;cursor:pointer;background:#f8fafc;border:2px dashed #cbd5e1;border-radius:14px;padding:22px;transition:background .12s,border-color .12s,box-shadow .12s}.pdf-dropzone:hover,.pdf-dropzone.is-dragging{box-shadow:var(--ring);background:#eef4ff;border-color:#2563eb}.pdf-dropzone-title{color:#0f172a;margin-bottom:4px;font-weight:900}.documents-list{gap:8px;margin-top:12px;display:grid}.document-row{background:#fff;border:1px solid #e5e7eb;border-radius:12px;justify-content:space-between;align-items:center;gap:14px;padding:10px 12px;display:flex}.document-name{color:#0f172a;word-break:break-word;font-weight:900}.document-actions{flex-shrink:0;align-items:center;gap:8px;display:flex}@media (width<=700px){.document-row{flex-direction:column;align-items:stretch}.document-actions{flex-direction:column}.document-actions .btn,.document-actions .btn-danger{width:100%}}
