:root{--navy:#173b8f;--navy-2:#102d72;--blue:#2d67e8;--blue-dark:#203f94;--blue-soft:#edf3ff;--ink:#172033;--muted:#66758e;--line:#dfe5ee;--bg:#f3f6fc;--panel:#fff;--green:#15803d;--amber:#a16207;--red:#b42318;--shadow:0 12px 34px rgba(26,55,120,.09)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,Segoe UI,Arial,sans-serif;font-size:14px;line-height:1.5}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button{cursor:pointer}
.app-shell{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#075db8;color:#fff;padding:0 10px 24px;display:flex;flex-direction:column;box-shadow:6px 0 22px rgba(14,50,101,.12)}.brand{height:84px;display:flex;align-items:center;color:inherit;margin:0 -10px 16px;padding:0 19px;border-bottom:1px solid rgba(255,255,255,.15)}.brand:hover{text-decoration:none}.brand-mark{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:9px;background:#fff;font-size:20px;font-weight:800}.brand-logo{width:180px;height:43px;flex-basis:180px;background:#fff;padding:4px 8px;border-radius:4px}.brand-logo img{display:block;width:100%;height:100%;object-fit:contain}.brand-logo+div{display:none}.brand strong,.brand small{display:block}.brand strong{font-size:14px;line-height:1.25}.brand small{color:#c7d7ff;font-size:10px;letter-spacing:.05em}.nav-link{display:grid;grid-template-columns:26px 1fr;gap:10px;align-items:center;color:#dcecff;padding:13px 16px;border-radius:8px;margin:4px 0;font-size:15px;font-weight:700}.nav-icon{display:grid;place-items:center}.nav-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav-link:hover,.nav-link.active{background:rgba(255,255,255,.12);color:#fff;text-decoration:none}.nav-link.active{background:#fff;color:#075db8;box-shadow:0 8px 20px rgba(5,45,105,.12)}.nav-section{margin:22px 16px 9px;color:#a9cdf5;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.sidebar-user{display:none}
.content{min-width:0}.topbar{height:56px;padding:0 22px 0 18px;border-bottom:1px solid #e6e9ef;background:#fff;display:flex;align-items:center;justify-content:space-between}.top-welcome,.top-actions,.top-profile{display:flex;align-items:center}.top-welcome{gap:18px;font-size:19px}.menu-glyph{display:grid}.menu-glyph svg,.bell svg{width:22px;height:22px;fill:none;stroke:#445166;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.top-actions{gap:25px}.bell{position:relative;display:grid;color:#445166}.bell b{position:absolute;right:-8px;top:-8px;min-width:17px;height:17px;padding:0 4px;border-radius:10px;background:#ef4444;color:#fff;font-size:10px;display:grid;place-items:center}.top-profile{gap:10px;color:var(--ink)}.top-profile:hover{text-decoration:none}.top-avatar{width:38px;height:38px;border-radius:50%;background:#0766c8;color:#fff;display:grid;place-items:center;font-weight:800}.top-profile span:nth-child(2) strong,.top-profile span:nth-child(2) small{display:block;line-height:1.3}.top-profile span:nth-child(2) small{color:var(--muted);font-size:11px}.top-profile i{font-size:18px;color:#9aa5b5}.eyebrow{color:var(--blue);font-size:10px;text-transform:uppercase;letter-spacing:.14em;font-weight:800}.page{padding:56px 46px 60px;max-width:1375px;margin:auto}.page-heading{margin-bottom:30px}.page-heading h1{font-size:30px;line-height:1.2;margin:0 0 8px;color:#080f20}.page-heading p{font-size:15px;color:#3f4c61;margin:0}.panel{background:var(--panel);border:0;border-radius:13px;box-shadow:0 10px 24px rgba(21,34,55,.11);padding:24px}.panel h2,.panel h3{margin-top:0}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.panel-head h2{margin:2px 0;font-size:18px}
.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:30px;margin-bottom:32px}.metric{position:relative;min-height:172px;background:#fff;border:0;border-left:4px solid var(--blue);border-radius:13px;padding:18px 17px;box-shadow:0 10px 22px rgba(18,31,49,.11)}.metric span,.metric small{display:block}.metric span{color:#5c687a;font-size:11px;font-weight:800;text-transform:uppercase}.metric strong{display:block;font-size:25px;margin:10px 0;color:#081127}.metric small{max-width:78%;font-size:11px;color:#536178;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.metric-icon{position:absolute;right:16px;bottom:15px;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;font-size:23px;font-weight:500}.metric-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8}.metric-blue{border-left-color:#2e6cff}.metric-blue .metric-icon{background:#dceaff;color:#1766ff}.metric-amber{border-left-color:#e5a500}.metric-amber .metric-icon{background:#fff3c7;color:#e4a400}.metric-green{border-left-color:#20bf64}.metric-green .metric-icon{background:#daf8e5;color:#0aae50}.metric-purple{border-left-color:#a342ed}.metric-purple .metric-icon{background:#f2ddff;color:#8c22ee}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-bottom:22px}.focus{background:linear-gradient(160deg,#162943,#213c5e);color:#fff}.focus .eyebrow{color:#8fb4ff}.focus-title{display:block;font-size:20px;margin:24px 0 4px}.bars{display:grid;gap:14px}.bar-row{display:grid;grid-template-columns:105px 1fr 30px;gap:12px;align-items:center}.bar-row>div{height:8px;border-radius:5px;background:#edf1f7;overflow:hidden}.bar-row i{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#6d9aff);border-radius:5px}.chart-panel{min-height:420px}.chart-title{display:flex;align-items:center;gap:9px}.chart-title>span{color:#68758a;font-size:20px}.chart-title h2{margin:0;font-size:19px}.donut-wrap{height:275px;display:grid;place-items:center}.donut{width:245px;height:245px;border-radius:50%;position:relative;transform:rotate(-18deg)}.donut>i{position:absolute;inset:40px;border-radius:50%;background:#fff}.chart-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:5px 10px;color:#67748b;font-size:12px}.chart-legend span{display:flex;align-items:center;gap:4px}.chart-legend i{display:inline-block;width:12px;height:10px}.week-chart{height:330px;margin-top:25px;padding:15px 10px 0 45px;display:grid;grid-template-columns:repeat(7,1fr);gap:14px;align-items:end;background:repeating-linear-gradient(to bottom,transparent 0,transparent 69px,#dfe3e9 70px,#dfe3e9 71px)}.week-column{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.week-bar-space{height:285px;width:100%;display:flex;align-items:flex-end;justify-content:center;position:relative}.week-bar-space i{display:block;width:40px;max-width:80%;background:#3e80ed;border-radius:3px 3px 0 0}.week-value{position:absolute;bottom:calc(var(--bar-height,0%) + 2px);display:none}.week-column strong{font-size:13px;color:#68758a;padding-top:7px;font-weight:500}
.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);padding:10px 16px;font-weight:700;line-height:1.2;box-shadow:0 5px 14px rgba(20,48,111,.06)}.button:hover{text-decoration:none;border-color:#aeb9c8}.button-primary{background:var(--blue-dark);border-color:var(--blue-dark);color:#fff}.button-primary:hover{background:#18347f}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.tabs{display:flex;background:#e8edf5;padding:4px;border-radius:10px}.tabs a{color:var(--muted);padding:8px 15px;border-radius:7px;font-weight:700}.tabs a.active{background:#fff;color:var(--ink);box-shadow:0 2px 8px rgba(23,32,51,.1)}.tabs a:hover{text-decoration:none}.search{display:flex;gap:10px;margin-bottom:18px}.search input{max-width:520px}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);padding:11px 12px;border-bottom:1px solid var(--line)}td{padding:14px 12px;border-bottom:1px solid #edf0f5;vertical-align:middle}tr:last-child td{border-bottom:0}td code,.record-head code{color:#475569;background:#f1f5f9;padding:4px 7px;border-radius:5px}.table-sub{display:block;color:var(--muted)}
.status{display:inline-block;padding:4px 9px;border-radius:20px;background:#eef2f7;color:#475569;font-size:11px;font-weight:800}.status-approved,.status-completed,.status-received{background:#dcfce7;color:var(--green)}.status-rejected{background:#fee2e2;color:var(--red)}.status-pending,.status-draft{background:#fef3c7;color:var(--amber)}.status-filed{background:#e2e8f0;color:#334155}.status-created,.status-retrieved{background:#dbeafe;color:#1d4ed8}
label{display:grid;gap:6px;color:#3e4a5c;font-size:12px;font-weight:700}input,select,textarea{width:100%;border:1px solid #cfd7e3;border-radius:8px;background:#fff;color:var(--ink);padding:10px 11px;outline:none}input:focus,select:focus,textarea:focus{border-color:#6b94f5;box-shadow:0 0 0 3px rgba(37,99,235,.11)}textarea{resize:vertical}.form-stack{display:grid;gap:15px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.span-2{grid-column:span 2}.form-actions{display:flex;justify-content:flex-end;gap:10px}.form-panel{max-width:900px}.form-panel.narrow{max-width:520px}.section-heading{padding-top:12px;border-top:1px solid var(--line)}.section-heading h2{margin:3px 0}.split{display:grid;grid-template-columns:minmax(0,2fr) minmax(320px,1fr);gap:22px}.danger-zone{margin-top:20px;padding-top:18px;border-top:1px solid #fee2e2}.link-button{border:0;background:transparent;padding:0;color:var(--blue)}.link-button.danger{color:var(--red)}hr{border:0;border-top:1px solid var(--line);margin:22px 0}
.record-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px}.record-head h2{font-size:27px;margin:12px 0 8px}.record-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:22px;margin-bottom:22px}.detail-list dl{display:grid;grid-template-columns:1fr 1fr;gap:14px}.detail-list dl div{padding:12px;background:#f7f9fc;border-radius:9px}.detail-list dt{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.detail-list dd{margin:3px 0 0;font-weight:700}.timeline{position:relative}.timeline article{display:grid;grid-template-columns:18px 1fr;gap:12px;padding-bottom:22px;position:relative}.timeline article:before{content:"";position:absolute;left:7px;top:14px;bottom:-3px;width:2px;background:#e0e7f0}.timeline article:last-child:before{display:none}.timeline article>i{width:16px;height:16px;border-radius:50%;background:#fff;border:4px solid var(--blue);z-index:1}.timeline-head{display:flex;justify-content:space-between}.timeline p{margin:4px 0;color:var(--muted)}.timeline blockquote{margin:8px 0;padding:8px 11px;background:#f7f9fc;border-left:3px solid #a8bde9}.timeline time{color:var(--muted);font-size:12px}
.notification-list{padding:0;overflow:hidden}.notification{display:flex;justify-content:space-between;gap:20px;padding:18px 22px;border-bottom:1px solid var(--line)}.notification:last-child{border-bottom:0}.notification.unread{background:#f3f7ff;border-left:4px solid var(--blue)}.notification p{margin:4px 0}.notification small{color:var(--muted)}.notification>div:last-child{display:flex;align-items:center;gap:14px}.empty{text-align:center;padding:55px 20px;color:var(--muted)}.empty h2,.empty h3{color:var(--ink)}
.profile-card{max-width:850px;display:grid;grid-template-columns:90px 1fr;gap:20px}.profile-avatar{width:82px;height:82px;border-radius:50%;display:grid;place-items:center;background:#0766c8;color:#fff;font-size:30px;font-weight:800}.profile-card h2{margin:8px 0 0}.profile-card p{margin:2px 0 8px;color:var(--muted)}.profile-card dl{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:10px 0}.profile-card dl div{padding:14px;background:#f6f8fc;border-radius:9px}.profile-card dt{font-size:10px;color:var(--muted);text-transform:uppercase;font-weight:800}.profile-card dd{margin:4px 0 0;font-weight:700}.profile-actions{grid-column:1/-1;display:flex;gap:10px}
.heading-icon{display:inline-grid;vertical-align:middle;margin-right:10px;color:#0766c8}.heading-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8}.documents-actions{display:grid;grid-template-columns:385px auto 1fr;gap:12px;align-items:center;margin-bottom:24px}.document-search{position:relative}.document-search span{position:absolute;left:13px;top:50%;transform:translateY(-50%);display:grid;color:#9aa6b9}.document-search svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.document-search input{height:42px;padding-left:40px;background:#fff}.export-button{justify-self:start;border-color:#16a34a;color:#078b38;box-shadow:none}.new-document-button{justify-self:end;background:#075db8;border-color:#075db8}.document-tabs{display:flex;gap:4px;border-bottom:1px solid #d9dfe8;margin-bottom:16px}.document-tabs a{min-width:120px;text-align:center;padding:11px 14px;color:#526079;border-bottom:2px solid transparent;font-weight:600}.document-tabs a:hover{text-decoration:none}.document-tabs a.active{color:#0059c7;border-bottom-color:#0059c7}.documents-panel{padding:0;overflow:hidden;box-shadow:none;border:1px solid #e4e8ef}.documents-table th{height:48px;background:#fbfcfe;color:#526079;padding:12px 24px}.documents-table td{height:57px;padding:12px 24px;color:#4b5970}.documents-table td:nth-child(2){color:#071327;font-weight:700}.documents-table td:nth-child(3){max-width:470px}.documents-table input[type=checkbox]{width:16px;height:16px}.row-actions{display:flex;align-items:center;gap:18px;white-space:nowrap}.row-actions a{font-weight:600}.file-link{color:#09923d}.field-help{color:#77859a;font-weight:400}.required{color:#ef4444}.modal-backdrop{position:fixed;inset:0;z-index:100;background:rgba(4,12,22,.53);display:grid;place-items:center;padding:20px}.modal-card{width:min(450px,100%);background:#fff;border-radius:9px;box-shadow:0 25px 70px rgba(0,0,0,.25);overflow:hidden}.modal-card header{height:76px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e1e5eb}.modal-card header h2{margin:0;font-size:18px}.modal-card header a{font-size:28px;color:#9ba7b8}.modal-card header a:hover{text-decoration:none}.modal-card form{padding:24px;display:grid;gap:18px}.modal-summary{display:grid;gap:5px;padding:16px;border:1px solid #edf0f4;background:#fafbfd;border-radius:9px}.modal-summary span{font-size:12px;color:#68758a;margin-top:4px}.modal-summary strong{font-size:15px}.confirm-file{height:42px;background:#16a34a!important;border-color:#16a34a!important;color:#fff}.management-toolbar{display:flex;justify-content:flex-end;margin-top:-66px;margin-bottom:24px}.add-status-button{background:#04a8e3;border-color:#04a8e3;color:#fff}.management-panel{padding:0;overflow:hidden;box-shadow:none;border:1px solid #e4e8ef}.status-management-table th{height:42px;padding:10px 24px}.status-management-table td{height:61px;padding:11px 24px}.status-management-table th:last-child,.status-management-table td:last-child{text-align:right}.management-status{display:inline-block;border-radius:18px;padding:5px 13px;background:#dceaff;color:#003ea8;font-weight:600}.management-actions{display:flex;justify-content:flex-end;align-items:center;gap:16px}.management-actions a{font-size:20px;color:#354cff}.management-actions button{font-size:18px}.status-modal{width:min(480px,100%)}.settings-panel{width:min(770px,100%);margin:0 auto;padding:25px;box-shadow:0 2px 5px rgba(20,35,55,.18)}.logo-upload{display:flex;align-items:center;gap:20px;margin-top:4px}.logo-upload>span{width:96px;height:96px;border:1px solid #dce2ea;border-radius:6px;display:grid;place-items:center;padding:8px;font-size:11px;color:var(--muted)}.logo-upload img{max-width:100%;max-height:100%;object-fit:contain}.logo-upload input{width:auto;border:0;padding:0}.settings-section{margin-top:15px;padding-top:18px;border-top:1px solid #e3e7ed}.settings-section h2{font-size:17px;margin:0}.settings-panel .form-actions{padding-top:5px}
.alert{padding:11px 14px;border-radius:8px;margin-bottom:18px}.alert-success{background:#dcfce7;color:#166534}.alert-error{background:#fee2e2;color:#991b1b}.alert-warning{background:#fef3c7;color:#854d0e}.auth-shell{min-height:100vh;padding:42px 10px 20px;background:#2d67e8;display:flex;flex-direction:column;justify-content:center}.auth-frame{width:min(1180px,calc(100% - 20px));min-height:685px;margin:auto;display:grid;grid-template-columns:1fr 1fr;background:#fff;border-radius:30px;overflow:hidden;box-shadow:0 28px 80px rgba(13,43,116,.2)}.auth-showcase{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff;padding:58px;background:radial-gradient(circle at 35% 25%,rgba(75,122,255,.35),transparent 34%),linear-gradient(145deg,#1849ce,#285ee0)}.auth-showcase:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.03),transparent);pointer-events:none}.auth-logo{position:relative;z-index:1;width:min(355px,92%);height:120px;padding:20px 26px;border-radius:28px;background:#fff;display:grid;place-items:center;box-shadow:0 20px 40px rgba(10,39,110,.23)}.auth-logo img{max-width:100%;max-height:100%;object-fit:contain}.welcome-copy{position:relative;z-index:1}.welcome-copy h2{font-size:58px;line-height:1;margin:50px 0 28px;letter-spacing:.05em}.welcome-copy strong{font-size:27px;line-height:1.35;letter-spacing:.13em}.welcome-copy p{font-size:17px;line-height:1.65;margin:32px 0 0}.auth-form-pane{display:flex;flex-direction:column;justify-content:center;padding:70px 72px}.auth-mobile-brand{display:none}.auth-heading{text-align:center}.auth-heading h1{margin:0 0 7px;font-size:38px}.auth-heading p{color:var(--muted);font-size:17px;margin:0 0 48px}.login-form{gap:26px}.login-form label{font-size:15px}.input-with-icon{position:relative}.input-with-icon svg{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:24px;height:24px;fill:none;stroke:#9aa7bb;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;z-index:1}.input-with-icon input{height:64px;padding-left:52px;border-radius:14px;font-size:16px}.forgot-link{justify-self:end;margin-top:-12px;font-weight:600}.login-form .button{height:60px;border-radius:13px;font-size:17px;margin-top:2px}.auth-link{display:block;text-align:center;margin-top:18px}.divider{display:flex;align-items:center;gap:10px;color:var(--muted);margin:20px 0}.divider:before,.divider:after{content:"";height:1px;background:var(--line);flex:1}.auth-footer{text-align:center;color:#b9cdfa;font-size:16px;font-weight:700;padding:22px 10px 0}
@media(max-width:1050px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.metric-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.record-grid,.split{grid-template-columns:1fr}.page{padding:26px}.documents-actions{grid-template-columns:1fr auto}.new-document-button{grid-column:2}.topbar{padding:0 18px}.top-profile span:nth-child(2){display:none}}
@media(max-width:900px){.auth-frame{grid-template-columns:1fr;min-height:auto;max-width:560px}.auth-showcase{display:none}.auth-form-pane{padding:48px}.auth-mobile-brand{display:grid;place-items:center;height:90px;margin-bottom:35px}.auth-mobile-brand img{max-width:290px;max-height:80px}.auth-heading p{margin-bottom:32px}.auth-footer{font-size:13px}}
@media(max-width:720px){.app-shell{display:block}.sidebar{position:relative;height:auto;padding:16px}.sidebar nav{display:flex;overflow:auto;gap:4px}.nav-link{min-width:max-content}.nav-link small,.nav-section,.sidebar-user{display:none}.brand{margin:0 0 12px;border:0}.topbar{height:auto;padding:12px 16px}.top-welcome strong{font-size:15px}.page{padding:16px}.metric-grid{grid-template-columns:1fr 1fr;gap:10px}.toolbar,.record-head{align-items:stretch;flex-direction:column;gap:12px}.tabs{overflow:auto}.form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.detail-list dl{grid-template-columns:1fr}.notification{flex-direction:column}.table-wrap{margin:0 -10px}.documents-actions{grid-template-columns:1fr 1fr}.document-search{grid-column:1/-1}.export-button,.new-document-button{justify-self:stretch;grid-column:auto}.document-tabs{overflow:auto}.document-tabs a{min-width:max-content}.settings-panel{padding:16px}.auth-shell{padding:15px 0}.auth-frame{width:calc(100% - 24px);border-radius:22px}.auth-form-pane{padding:34px 24px}.auth-heading h1{font-size:31px}.auth-heading p{font-size:14px}.input-with-icon input{height:56px}.auth-footer{padding-top:15px}}
