:root{
  --navy:#0b2b49;--navy-deep:#061d34;--navy-soft:#123c5e;--blue:#087bd5;
  --cyan:#24a7dc;--green:#2fa478;--green-dark:#217b5a;--orange:#ea8536;
  --violet:#7457c9;--red:#c84d4d;--ink:#17283b;--muted:#687b90;
  --line:#dce6ee;--soft:#f3f7fa;--white:#fff;--shadow:0 16px 46px rgba(8,38,65,.11);
  --radius:16px;--font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

*{box-sizing:border-box}
html{background:var(--soft);color:var(--ink);font-family:var(--font);scroll-behavior:smooth}
body{margin:0;min-width:320px;background:var(--soft);color:var(--ink)}
button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}.ui-icon{display:inline-block;flex:0 0 auto;vertical-align:middle}
.eyebrow{margin:0 0 10px;color:var(--blue);font-size:10px;font-weight:800;letter-spacing:.19em;text-transform:uppercase}.eyebrow.light{color:#67d3ef}
.button{min-height:41px;border:1px solid transparent;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 15px;font-size:11px;font-weight:750;line-height:1;transition:transform .16s,box-shadow .16s,border-color .16s,background .16s}
.button:hover{transform:translateY(-1px)}.button:disabled{cursor:not-allowed;opacity:.55;transform:none}.button.primary{background:linear-gradient(120deg,#087bd5,#0758a9);color:#fff;box-shadow:0 10px 24px rgba(8,123,213,.22)}
.button.secondary{color:var(--navy);background:#fff;border-color:#d7e2ea}.button.ghost{color:#456076;background:#f7fafc;border-color:#e1e9ef}.button.compact{min-height:34px;padding:0 11px;font-size:9px}.button.wide{width:100%}

/* Login */
.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(510px,1.05fr) minmax(460px,.95fr);background:#fff;overflow:hidden}
.login-story{min-height:100vh;position:relative;overflow:hidden;display:flex;flex-direction:column;padding:39px clamp(38px,5vw,76px) 34px;color:#fff;background:radial-gradient(circle at 80% 10%,rgba(37,169,216,.24),transparent 32%),radial-gradient(circle at 10% 88%,rgba(47,164,120,.18),transparent 34%),linear-gradient(142deg,#061a30 0%,#0b3150 54%,#0d4a65 100%)}
.story-grid{position:absolute;inset:0;opacity:.3;background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);background-size:58px 58px;mask-image:linear-gradient(130deg,#000 0%,rgba(0,0,0,.8) 45%,transparent 92%)}
.story-orbit{position:absolute;border:1px solid rgba(255,255,255,.1);border-radius:50%;pointer-events:none}.orbit-one{width:590px;height:590px;right:-220px;top:-170px;box-shadow:inset 0 0 0 90px rgba(255,255,255,.018)}.orbit-two{width:420px;height:420px;left:-260px;bottom:-180px;box-shadow:0 0 90px rgba(36,167,220,.12)}
.login-story-top,.story-content,.story-proof{position:relative;z-index:2}.login-story-top{display:flex;align-items:center;justify-content:space-between;gap:24px}.login-brand{width:min(330px,52%);min-height:64px;display:flex;align-items:center;padding:8px 13px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 16px 36px rgba(0,0,0,.2)}.login-brand img{width:100%;height:49px;object-fit:contain}
.private-chip{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid rgba(255,255,255,.15);border-radius:22px;background:rgba(255,255,255,.07);color:rgba(255,255,255,.78);font-size:9px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.private-chip i{width:7px;height:7px;border-radius:50%;background:#57dda5;box-shadow:0 0 0 5px rgba(87,221,165,.12)}
.story-content{margin:auto 0;max-width:760px;padding:70px 0 48px}.story-content h1{margin:0;max-width:730px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(52px,6vw,88px);font-weight:500;letter-spacing:-.06em;line-height:.93}.story-content h1 em{display:block;color:#5ecbec;font-style:normal}.story-lead{max-width:650px;margin:28px 0 0;color:rgba(255,255,255,.7);font-size:14px;line-height:1.8}.story-pill-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:30px}.story-pill-row span{padding:9px 12px;border:1px solid rgba(255,255,255,.12);border-radius:22px;background:rgba(255,255,255,.06);color:rgba(255,255,255,.82);font-size:9px;font-weight:700;letter-spacing:.04em}
.story-proof{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid rgba(255,255,255,.13);padding-top:23px}.story-proof div{display:flex;flex-direction:column;gap:3px;padding:0 22px;border-right:1px solid rgba(255,255,255,.11)}.story-proof div:first-child{padding-left:0}.story-proof div:last-child{border-right:0}.story-proof strong{font-family:Georgia,serif;color:#fff;font-size:24px;font-weight:500}.story-proof span{color:rgba(255,255,255,.5);font-size:9px;text-transform:uppercase;letter-spacing:.1em}
.login-panel{min-height:100vh;display:grid;place-items:center;padding:50px clamp(42px,7vw,92px);background:radial-gradient(circle at 85% 8%,rgba(8,123,213,.07),transparent 30%),linear-gradient(135deg,#fff,#fbfdff)}
.login-card{width:min(570px,100%)}.login-heading h2{margin:0;color:var(--navy-deep);font-family:Georgia,"Times New Roman",serif;font-size:clamp(42px,4vw,58px);font-weight:500;letter-spacing:-.045em}.login-heading>p:last-child{max-width:510px;margin:17px 0 0;color:var(--muted);font-size:13px;line-height:1.7}
.access-assurance{display:grid;grid-template-columns:34px 1fr 34px 1fr;align-items:center;gap:10px;margin:29px 0;padding:14px;border:1px solid #dfebf2;border-radius:13px;background:#f7fafc}.access-assurance>span{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#e4f2fb;color:#076dbf;font-size:9px;font-weight:850}.access-assurance div{display:flex;flex-direction:column;gap:3px;min-width:0}.access-assurance strong{font-size:10px}.access-assurance small{color:#78899b;font-size:8px;line-height:1.35}
.login-form{display:grid;gap:21px}.login-form label{color:#2b3e53;font-size:11px;font-weight:700}.field-wrap{height:61px;margin-top:9px;display:grid;grid-template-columns:46px 1fr;align-items:center;border:1px solid #d3e1eb;border-radius:12px;background:#fbfdff;overflow:hidden;transition:border .16s,box-shadow .16s}.field-wrap:focus-within{border-color:var(--blue);box-shadow:0 0 0 4px rgba(8,123,213,.11)}.field-wrap span{height:27px;border-right:1px solid #dae5ed;display:grid;place-items:center;color:#7c8fa1;font-size:11px;font-weight:800}.field-wrap input{height:100%;width:100%;border:0;outline:0;background:transparent;padding:0 17px;color:var(--ink);font-size:14px}.field-wrap input::placeholder{color:#95a3b1}.form-error{margin:-8px 0 0;color:var(--red);font-size:10px}
.primary-login{height:63px;border:0;border-radius:12px;display:flex;align-items:center;justify-content:space-between;padding:0 21px;color:#fff;background:linear-gradient(120deg,#087bd5,#0759a9);font-size:12px;font-weight:750;box-shadow:0 17px 34px rgba(8,107,190,.25);transition:transform .16s,box-shadow .16s}.primary-login:hover{transform:translateY(-1px);box-shadow:0 20px 38px rgba(8,107,190,.32)}.primary-login span{font-size:18px}
.secure-note{margin-top:30px;padding-top:23px;border-top:1px solid #dce6ee;display:grid;grid-template-columns:38px 1fr;align-items:start;gap:12px}.secure-note>span{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#e7f6ef;color:var(--green-dark);font-weight:800}.secure-note strong{font-size:11px}.secure-note p{margin:5px 0 0;color:var(--muted);font-size:9px;line-height:1.55}.login-links{display:flex;align-items:center;justify-content:space-between;margin-top:26px;color:#8494a5;font-size:9px}.login-links a:hover{color:var(--blue)}

/* Application shell */
.portal-body{background:#f2f6f9}.app-loading{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:17px;background:radial-gradient(circle at 50% 35%,#fff,#edf4f8)}.app-loading img{width:260px;height:68px;object-fit:contain}.app-loading p{margin:0;color:var(--muted);font-size:10px;letter-spacing:.06em}.loading-line{width:230px;height:3px;border-radius:4px;background:#dce8ef;overflow:hidden}.loading-line span{display:block;width:44%;height:100%;border-radius:4px;background:linear-gradient(90deg,var(--blue),var(--cyan));animation:loading 1.25s ease-in-out infinite}@keyframes loading{0%{transform:translateX(-100%)}100%{transform:translateX(340%)}}
.app-error{min-height:100vh;display:grid;place-items:center;padding:30px}.app-error>div{max-width:500px;text-align:center;padding:40px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow)}.app-error>div>span{width:48px;height:48px;display:grid;place-items:center;margin:0 auto 18px;border-radius:50%;background:#fff0ed;color:var(--red);font-size:20px;font-weight:800}.app-error h1{margin:0;color:var(--navy);font-family:Georgia,serif;font-weight:500}.app-error p{color:var(--muted);font-size:12px;line-height:1.6}
.app-shell{min-height:100vh;display:grid;grid-template-columns:252px minmax(0,1fr);background:#f2f6f9}.sidebar{position:sticky;top:0;z-index:20;height:100vh;display:flex;flex-direction:column;padding:20px 13px 14px;color:#fff;background:radial-gradient(circle at 10% 82%,rgba(36,167,220,.14),transparent 28%),linear-gradient(180deg,#061e35,#092b47 65%,#0b3552)}
.side-brand{display:grid;grid-template-columns:47px 1fr auto;align-items:center;gap:10px;padding:0 7px 17px;border-bottom:1px solid rgba(255,255,255,.09)}.side-brand img{width:47px;height:43px;object-fit:contain;object-position:left;background:#fff;border-radius:9px;padding:4px}.side-brand div{display:flex;flex-direction:column;gap:3px;min-width:0}.side-brand strong{font-size:11px;letter-spacing:.12em}.side-brand span{color:rgba(255,255,255,.48);font-size:8px;text-transform:uppercase;letter-spacing:.1em}.side-close{display:none;color:#fff;background:transparent;border:0}
.side-context{margin:14px 5px 8px;padding:13px;border:1px solid rgba(255,255,255,.09);border-radius:11px;background:rgba(255,255,255,.055);display:flex;flex-direction:column;gap:3px}.side-context>span{align-self:flex-start;padding:4px 6px;border-radius:5px;background:rgba(36,167,220,.18);color:#6ed8f0;font-size:7px;font-weight:800;letter-spacing:.1em}.side-context strong{margin-top:4px;font-size:10px}.side-context small{color:rgba(255,255,255,.43);font-size:8px}
.sidebar nav{display:grid;gap:3px;overflow-y:auto;padding:0 2px}.sidebar nav>p{margin:15px 8px 7px;color:rgba(255,255,255,.36);font-size:8px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}.nav-button{min-height:42px;display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:9px;padding:6px 9px;border:0;border-radius:9px;color:rgba(255,255,255,.62);background:transparent;text-align:left;transition:color .14s,background .14s}.nav-button>span{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:rgba(255,255,255,.055)}.nav-button b{font-size:10px;font-weight:650}.nav-button em{min-width:18px;height:18px;display:grid;place-items:center;border-radius:9px;background:var(--orange);color:#fff;font-size:7px;font-style:normal}.nav-button:hover{color:#fff;background:rgba(255,255,255,.07)}.nav-button.active{color:#fff;background:linear-gradient(90deg,rgba(8,123,213,.34),rgba(8,123,213,.08));box-shadow:inset 3px 0 0 #2db5e6}.nav-button.active>span{background:#087bd5}
.side-footer{margin-top:auto;display:grid;gap:8px;padding-top:11px}.server-status,.user-mini{width:100%;display:flex;align-items:center;gap:9px;padding:10px;border:1px solid rgba(255,255,255,.09);border-radius:10px;color:#fff;background:rgba(255,255,255,.045);text-align:left}.server-status>i{width:8px;height:8px;border-radius:50%;background:#52daa1;box-shadow:0 0 0 5px rgba(82,218,161,.11)}.server-status div,.user-mini div{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.server-status strong,.user-mini strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px}.server-status small,.user-mini small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgba(255,255,255,.43);font-size:7px}.server-status>svg{color:rgba(255,255,255,.38)}.user-mini>span{width:29px;height:29px;display:grid;place-items:center;flex:0 0 29px;border-radius:50%;background:#d9edf5;color:var(--navy);font-size:8px;font-weight:850}.user-mini>button{border:0;background:transparent;color:rgba(255,255,255,.52)}
.sidebar-scrim{display:none}.workspace{min-width:0}.topbar{position:sticky;top:0;z-index:15;min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:11px 25px;border-bottom:1px solid #dfe7ed;background:rgba(255,255,255,.92);backdrop-filter:blur(15px)}.topbar-left{display:flex;align-items:center;gap:12px}.topbar-left>div{display:flex;flex-direction:column;gap:4px}.topbar-left p{margin:0;color:#8392a2;font-size:8px}.topbar-left p span{color:#4d657c}.topbar-left strong{color:var(--navy-deep);font-size:12px}.menu-button{display:none;width:38px;height:38px;border:1px solid #dce5eb;border-radius:9px;background:#fff;color:var(--navy)}
.top-actions{display:flex;align-items:center;gap:8px}.global-search{width:min(355px,29vw);height:39px;display:grid;grid-template-columns:25px 1fr auto;align-items:center;padding:0 9px;border:1px solid #dce5ec;border-radius:9px;background:#f7fafc;color:#8a99a8}.global-search input{min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:9px}.global-search kbd{padding:3px 5px;border:1px solid #dce4ea;border-radius:4px;background:#fff;color:#8b99a7;font-size:7px}.icon-button{position:relative;width:39px;height:39px;display:grid;place-items:center;border:1px solid #dce5eb;border-radius:9px;background:#fff;color:var(--navy)}.notification-button em{position:absolute;right:-4px;top:-5px;min-width:16px;height:16px;display:grid;place-items:center;border:2px solid #fff;border-radius:8px;background:var(--orange);color:#fff;font-size:6px;font-style:normal}.profile-button{height:40px;display:flex;align-items:center;gap:8px;padding:4px 9px 4px 4px;border:1px solid #dce5eb;border-radius:10px;background:#fff}.profile-button>span{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#dceff7;color:var(--navy);font-size:8px;font-weight:850}.profile-button div{display:flex;flex-direction:column;gap:2px;text-align:left}.profile-button strong{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px}.profile-button small{color:#7d8d9d;font-size:7px}
.workspace-scroll{max-width:1540px;margin:0 auto;padding:22px 25px 38px}.phase-banner{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:21px;padding:13px 15px;border:1px solid #cfe6dd;border-radius:12px;background:linear-gradient(110deg,#f3fbf7,#fff)}.phase-banner>div:first-child{display:grid;grid-template-columns:auto auto;align-items:center;gap:3px 10px}.phase-banner>div:first-child>span{grid-row:1/3;padding:6px 8px;border-radius:6px;background:#dff3e9;color:var(--green-dark);font-size:7px;font-weight:850;letter-spacing:.1em}.phase-banner strong{font-size:10px}.phase-banner p{margin:0;color:#657f73;font-size:8px}.phase-badges{display:flex;align-items:center;gap:6px}.phase-badges span{display:flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid #d9e9e1;border-radius:7px;background:#fff;color:#4c6e60;font-size:7px;font-weight:700}
.page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin:8px 0 21px}.page-intro h1{margin:0;color:var(--navy-deep);font-family:Georgia,"Times New Roman",serif;font-size:clamp(32px,3.1vw,46px);font-weight:500;letter-spacing:-.045em}.page-intro>div:first-child>p:last-child{max-width:750px;margin:8px 0 0;color:var(--muted);font-size:11px;line-height:1.6}.intro-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.metric-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:14px}.metric-card,.panel{min-width:0;border:1px solid #dde6ec;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(8,38,65,.035)}.metric-card{padding:15px}.metric-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.metric-top>em{color:#95a3b1;font-size:6px;font-style:normal;font-weight:850;letter-spacing:.12em}.metric-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px}.metric-icon.blue{color:#087bd5;background:#e6f3fc}.metric-icon.navy{color:#0b3554;background:#e4edf3}.metric-icon.violet{color:#7457c9;background:#eeeafa}.metric-icon.green,.metric-icon.positive{color:#27815f;background:#e5f6ee}.metric-icon.orange{color:#cb6d27;background:#fff0e5}.metric-icon.negative{color:#bb4747;background:#fdeaea}.metric-card>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--navy-deep);font-family:Georgia,serif;font-size:21px;font-weight:500;letter-spacing:-.025em}.metric-card>p{margin:5px 0 7px;font-size:9px;font-weight:750}.metric-card>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8190a0;font-size:7px}
.overview-grid{display:grid;grid-template-columns:minmax(0,1.48fr) minmax(310px,.72fr);gap:14px;margin-bottom:14px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:17px 19px 14px}.panel-head h2{margin:5px 0 0;color:var(--navy-deep);font-size:13px}.panel-head p{margin:4px 0 0;color:var(--muted);font-size:8px}.section-kicker{color:#6f8395;font-size:7px;font-weight:850;letter-spacing:.15em}.text-link{display:flex;align-items:center;gap:5px;color:var(--blue);font-size:8px;font-weight:750}.finance-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:0 19px 18px}.flow-block{min-width:0}.flow-block>div:first-child{display:grid;grid-template-columns:1fr auto;gap:4px}.flow-block span{grid-column:1/3;color:#6f8192;font-size:7px}.flow-block strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--navy);font-size:11px}.flow-block small{color:#8392a1;font-size:7px}.flow-track{height:5px;margin-top:8px;border-radius:5px;background:#e8eef2;overflow:hidden}.flow-track i{display:block;height:100%;border-radius:inherit}.cash-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 19px 18px;padding:15px;border:1px solid #dfebf1;border-radius:11px;background:linear-gradient(110deg,#f6fafc,#fff)}.cash-summary>div:first-child{display:flex;flex-direction:column;gap:3px}.cash-summary span{color:#718497;font-size:8px}.cash-summary strong{color:var(--navy-deep);font-family:Georgia,serif;font-size:23px;font-weight:500}.cash-summary small{color:#8795a3;font-size:7px}.margin-ring{--score:0;width:67px;height:67px;display:grid;place-content:center;text-align:center;border-radius:50%;background:radial-gradient(circle,#fff 56%,transparent 58%),conic-gradient(var(--green) calc(var(--score)*1%),#e3ebe7 0)}.margin-ring strong{font-family:var(--font);font-size:11px;font-weight:800}.margin-ring span{font-size:6px}
.quick-action-list{display:grid;padding:0 14px 14px}.quick-action-list button{min-width:0;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;padding:11px 6px;border:0;border-bottom:1px solid #e6edf1;background:transparent;text-align:left}.quick-action-list button:last-child{border-bottom:0}.quick-action-list>button>span{width:36px;height:36px;display:grid;place-items:center;border-radius:9px;background:#e9f3f9;color:#176a9d}.quick-action-list button div{display:flex;flex-direction:column;gap:3px;min-width:0}.quick-action-list strong{font-size:9px}.quick-action-list small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7a8b9c;font-size:7px}.quick-action-list button>svg{color:#8394a3}.quick-action-list button:hover strong{color:var(--blue)}
.project-control-panel{margin-bottom:15px}.table-wrap{width:100%;overflow-x:auto}.data-table{width:100%;border-collapse:collapse;min-width:1020px}.data-table th{padding:10px 13px;border-top:1px solid #e4ebf0;border-bottom:1px solid #e4ebf0;background:#f8fafb;color:#6f8294;text-align:left;font-size:7px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.data-table td{padding:12px 13px;border-bottom:1px solid #e8eef2;vertical-align:middle;color:#2b3d50;font-size:9px}.data-table tbody tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fbfdfe}.compact-table td{padding-top:10px;padding-bottom:10px}.primary-cell{display:flex;flex-direction:column;gap:3px;min-width:130px}.primary-cell strong{font-size:9px}.primary-cell span{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#53697e;font-size:8px}.primary-cell small,.cell-note{display:block;margin-top:3px;color:#8695a3;font-size:7px}.money-value{white-space:nowrap;color:var(--navy);font-size:10px}.positive-text{color:var(--green-dark)!important}.negative-text{color:var(--red)!important}.value-progress{min-width:125px}.value-progress>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.value-progress strong{font-size:9px}.value-progress small{color:#7f8f9e;font-size:7px}.value-progress>span{height:4px;display:block;margin:6px 0;border-radius:4px;background:#e6edf1;overflow:hidden}.value-progress>span i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue),var(--cyan))}.status-chip{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;padding:5px 7px;border-radius:6px;background:#edf2f5;color:#617487;font-size:6px;font-weight:850;letter-spacing:.05em}.status-chip i{width:5px;height:5px;border-radius:50%;background:currentColor}.status-active,.status-paid,.status-approved,.status-completed,.status-success,.status-configured{background:#e4f5ed;color:#267b5b}.status-on-hold,.status-part-paid,.status-overdue,.status-pending{background:#fff0e5;color:#c46926}.status-cancelled,.status-rejected,.status-revoked{background:#fdebea;color:#b74949}.status-raised,.status-eligible,.status-api-ready{background:#e7f2fb;color:#176ca6}.status-draft,.status-suspended,.status-invoiced{background:#eeeafa;color:#7054b6}.row-action{width:31px;height:31px;display:grid;place-items:center;border:1px solid #dfe7ed;border-radius:8px;background:#fff;color:#45647b}.row-actions{display:flex;align-items:center;gap:5px}
.register-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:13px}.register-summary>div{display:flex;flex-direction:column;gap:6px;padding:14px 15px;border:1px solid #dee7ed;border-radius:12px;background:#fff}.register-summary span{color:#718396;font-size:8px}.register-summary strong{color:var(--navy-deep);font-family:Georgia,serif;font-size:19px;font-weight:500}.register-panel{margin-bottom:18px}.table-count,.table-tools span{color:#718396;font-size:8px}.category-tag{display:inline-flex!important;align-self:flex-start;margin-top:6px!important;padding:4px 6px;border-radius:5px;background:#eef4f7;color:#50697e!important;font-weight:750;text-transform:capitalize}
.empty-state{min-height:240px;display:grid;place-content:center;justify-items:center;padding:35px;text-align:center;border-top:1px solid #e4ebf0}.empty-state>span{width:50px;height:50px;display:grid;place-items:center;border-radius:14px;background:#e9f3f8;color:#2a759f}.empty-state h3{margin:14px 0 0;color:var(--navy);font-size:12px}.empty-state p{max-width:420px;margin:6px 0 16px;color:var(--muted);font-size:9px;line-height:1.6}
.pl-hero{display:grid;grid-template-columns:1fr .8fr 1fr;align-items:center;gap:0;margin-bottom:14px;border:1px solid #d8e6ee;border-radius:15px;background:radial-gradient(circle at 50% 0,rgba(36,167,220,.08),transparent 36%),#fff;overflow:hidden}.pl-hero>div{min-height:130px;display:flex;flex-direction:column;justify-content:center;padding:20px 24px;border-right:1px solid #e2e9ee}.pl-hero>div:last-child{border-right:0}.pl-hero span{color:#718397;font-size:8px}.pl-hero strong{margin-top:6px;color:var(--navy-deep);font-family:Georgia,serif;font-size:28px;font-weight:500}.pl-hero p{margin:5px 0 0;color:#7c8c9b;font-size:8px}.pl-margin{text-align:center}.pl-margin>div{width:80%;height:5px;margin:12px auto 0;border-radius:4px;background:#e7eeea;overflow:hidden}.pl-margin>div i{display:block;height:100%;border-radius:inherit;background:var(--green)}.project-pl-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:0 18px 18px}.project-pl-card{border:1px solid #e0e8ee;border-radius:12px;background:#fff;overflow:hidden}.project-pl-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px;border-bottom:1px solid #e6edf1}.project-pl-card header>div>span{color:var(--blue);font-size:7px;font-weight:800}.project-pl-card h3{margin:5px 0 0;font-size:11px}.project-pl-card header p{margin:4px 0 0;color:#77899a;font-size:8px}.pl-card-values{display:grid;grid-template-columns:repeat(3,1fr);gap:0}.pl-card-values div{padding:12px 14px;border-right:1px solid #e6edf1}.pl-card-values div:last-child{border-right:0}.pl-card-values span,.project-pl-card footer span{display:block;color:#7a8b9a;font-size:7px}.pl-card-values strong,.project-pl-card footer strong{display:block;margin-top:4px;color:var(--navy);font-size:10px}.project-pl-card footer{display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:10px;padding:12px 14px;background:#f8fafb}.project-pl-card footer a{display:flex;align-items:center;gap:5px;color:var(--blue);font-size:8px;font-weight:750}
.security-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:13px}.security-summary>div{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #dce6ed;border-radius:12px;background:#fff}.security-summary>div>svg{color:var(--blue)}.security-summary span{display:flex;flex-direction:column;gap:3px}.security-summary strong{font-size:10px}.security-summary small{color:#788a9b;font-size:8px}.access-list{display:grid;padding:0 17px 17px}.access-list article{display:grid;grid-template-columns:38px minmax(180px,1fr) 110px 100px auto 34px;align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid #e7edf1}.access-list article:last-child{border-bottom:0}.access-avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#e3f1f8;color:var(--navy);font-size:9px;font-weight:850}.access-person,.access-role,.access-login{display:flex;flex-direction:column;gap:3px;min-width:0}.access-person strong{font-size:9px}.access-person span,.access-role span,.access-login span{color:#647a8e;font-size:8px}.access-person small,.access-role small,.access-login strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8997a4;font-size:7px}.owner-lock{padding:5px 7px;border-radius:6px;background:#e8f2f8;color:#176997;font-size:7px;font-weight:800}
.integration-principle{display:grid;grid-template-columns:45px 1fr auto;align-items:center;gap:14px;margin-bottom:14px;padding:15px 17px;border:1px solid #cce7dc;border-radius:13px;background:#f3fbf7}.integration-principle>span{width:43px;height:43px;display:grid;place-items:center;border-radius:11px;background:#dff4e9;color:var(--green-dark)}.integration-principle strong{font-size:10px}.integration-principle p{margin:4px 0 0;color:#60796c;font-size:8px}.integration-principle em{padding:6px 8px;border-radius:6px;background:#dff4e9;color:var(--green-dark);font-size:7px;font-style:normal;font-weight:850;letter-spacing:.1em}.integration-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}.integration-card{padding:16px;border:1px solid #dce6ed;border-radius:14px;background:#fff}.integration-card header{display:flex;align-items:center;justify-content:space-between}.integration-card header>span{width:39px;height:39px;display:grid;place-items:center;border-radius:10px;background:#e7f2f9;color:#176993;font-size:9px;font-weight:850}.integration-card h2{margin:15px 0 0;color:var(--navy);font-size:13px}.integration-card>p{min-height:32px;margin:6px 0 0;color:#728497;font-size:8px;line-height:1.55}.integration-flow{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin:15px 0;padding:10px;border-radius:9px;background:#f5f8fa}.integration-flow span,.integration-flow strong{text-align:center;font-size:7px}.integration-flow span{color:#738596}.integration-flow strong{color:var(--navy)}.integration-card>small{display:block;min-height:37px;color:#7e8d9c;font-size:7px;line-height:1.5}.integration-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;padding-top:12px;border-top:1px solid #e6edf1}.integration-card footer span{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#748899;font-size:7px}.integration-card footer button{border:0;background:transparent;color:var(--blue);font-size:7px;font-weight:750}.roadmap-row{display:grid;grid-template-columns:repeat(3,1fr);gap:0;padding:0 18px 18px}.roadmap-row article{display:grid;grid-template-columns:33px 1fr auto;align-items:center;gap:10px;padding:14px;border:1px solid #e0e8ed;border-right:0}.roadmap-row article:first-child{border-radius:10px 0 0 10px}.roadmap-row article:last-child{border-right:1px solid #e0e8ed;border-radius:0 10px 10px 0}.roadmap-row article>span{width:31px;height:31px;display:grid;place-items:center;border-radius:8px;background:#edf2f5;color:#5f768a;font-size:8px;font-weight:850}.roadmap-row article.done>span{background:#e3f4eb;color:var(--green-dark)}.roadmap-row strong{font-size:8px}.roadmap-row p{margin:3px 0 0;color:#778999;font-size:7px;line-height:1.4}.roadmap-row em{color:#7b8b99;font-size:6px;font-style:normal;font-weight:850}.roadmap-row article.done em{color:var(--green-dark)}

/* Dialogs */
.dialog-overlay{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:24px;background:rgba(3,20,35,.62);backdrop-filter:blur(5px);opacity:0;transition:opacity .18s;overflow:auto}.dialog-overlay.visible{opacity:1}.dialog-card{position:relative;width:min(610px,100%);max-height:calc(100vh - 48px);border:1px solid rgba(255,255,255,.18);border-radius:17px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.32);overflow:auto;transform:translateY(8px);transition:transform .18s}.dialog-overlay.visible .dialog-card{transform:none}.dialog-card.medium{width:min(620px,100%)}.dialog-card.wide{width:min(880px,100%)}.dialog-card.xwide{width:min(1080px,100%)}.dialog-close{position:sticky;float:right;right:15px;top:14px;z-index:5;width:35px;height:35px;display:grid;place-items:center;margin:14px 14px -49px 0;border:1px solid #dce6ed;border-radius:9px;background:#fff;color:#567083}.dialog-content{padding:25px}.dialog-head{display:grid;grid-template-columns:47px 1fr;gap:13px;padding-right:50px;margin-bottom:19px}.dialog-head>span{width:47px;height:47px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#e8f4fb,#dff0f8);color:#176d9e}.dialog-head h2{margin:0;color:var(--navy-deep);font-family:Georgia,serif;font-size:28px;font-weight:500;letter-spacing:-.035em}.dialog-head p:last-child{margin:6px 0 0;color:var(--muted);font-size:9px;line-height:1.55}
.dialog-form{display:grid;gap:12px}.form-section{padding:16px;border:1px solid #e0e8ee;border-radius:12px;background:#fff}.form-section>h3,.section-title-row h3{margin:0 0 13px;color:var(--navy);font-size:10px}.section-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:13px}.section-title-row h3{margin:0}.section-title-row p{margin:4px 0 0;color:#7a8b9b;font-size:8px}.form-grid{display:grid;gap:13px}.form-grid.one{grid-template-columns:1fr}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.span-2{grid-column:span 2}.form-grid label,.dialog-form>label{display:flex;flex-direction:column;gap:7px;color:#40566a;font-size:8px;font-weight:750}.form-grid input,.form-grid select,.form-grid textarea,.dialog-form input,.dialog-form select,.dialog-form textarea{width:100%;min-height:43px;border:1px solid #d7e2e9;border-radius:9px;outline:0;background:#fbfdfe;padding:0 11px;color:var(--ink);font-size:9px;transition:border .15s,box-shadow .15s}.form-grid textarea,.dialog-form textarea{min-height:74px;padding-top:10px;resize:vertical;line-height:1.5}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.dialog-form input:focus,.dialog-form select:focus,.dialog-form textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(8,123,213,.1)}.check-field{grid-column:span 2!important;display:flex!important;flex-direction:row!important;align-items:center!important;padding:10px;border:1px solid #dce6ed;border-radius:9px;background:#f7fafc}.check-field input{width:16px!important;min-height:16px!important}.check-field span{display:flex;flex-direction:column;gap:2px}.check-field strong{font-size:8px}.check-field small{color:#7d8d9b;font-size:7px}.milestone-editor{display:grid;gap:7px}.milestone-row{display:grid;grid-template-columns:30px minmax(150px,1.1fr) 75px minmax(170px,1fr) 30px;align-items:center;gap:7px}.milestone-row>span{width:30px;height:30px;display:grid;place-items:center;border-radius:7px;background:#e9f3f8;color:#176d9e;font-size:7px;font-weight:850}.milestone-row input{min-height:37px}.milestone-row button{width:30px;height:30px;display:grid;place-items:center;border:0;background:transparent;color:#9aa6b1}.upload-inline{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f7fafc}.upload-inline>div{display:flex;align-items:center;gap:10px}.upload-inline>div>span{width:37px;height:37px;display:grid;place-items:center;border-radius:9px;background:#e7f2f9;color:#176d9e}.upload-inline>div>div{display:flex;flex-direction:column;gap:3px}.upload-inline strong{font-size:8px}.upload-inline small{color:#7d8e9d;font-size:7px}.upload-inline input{max-width:300px;font-size:8px}.dialog-submit{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:3px}.dialog-submit>div{display:flex;align-items:center;gap:8px;color:#6c7f8f}.dialog-submit>div>span{color:var(--green-dark)}.dialog-submit p{max-width:420px;margin:0;font-size:7px;line-height:1.5}.dialog-error{padding:11px 13px;border:1px solid #efc7c4;border-radius:9px;background:#fff1f0;color:#a84343;font-size:9px}.tax-presets{display:flex;gap:5px;flex-wrap:wrap}.tax-presets button{min-height:28px;padding:0 8px;border:1px solid #d9e4eb;border-radius:7px;background:#f8fafb;color:#4e687d;font-size:7px}.invoice-live-total{display:grid;grid-template-columns:1fr auto;gap:3px;margin-top:13px;padding:12px;border-radius:10px;background:linear-gradient(110deg,#eef7fb,#f8fcfe)}.invoice-live-total span{color:#60798c;font-size:8px}.invoice-live-total strong{grid-row:1/3;grid-column:2;color:var(--navy);font-family:Georgia,serif;font-size:20px;font-weight:500}.invoice-live-total small{color:#8594a1;font-size:7px}.file-drop{min-height:125px!important;display:grid!important;place-content:center;justify-items:center!important;gap:5px!important;border:1px dashed #bcd1df;border-radius:11px;background:#f8fbfd;text-align:center}.file-drop input{position:absolute;width:1px;height:1px;opacity:0}.file-drop>span{color:var(--blue)}.file-drop strong{font-size:9px}.file-drop small{color:#7d8e9c;font-size:7px;font-weight:500}.permission-preview{display:flex;flex-wrap:wrap;gap:5px}.permission-preview span{display:flex;align-items:center;gap:4px;padding:5px 7px;border-radius:6px;background:#edf5f9;color:#456b82;font-size:6px}.access-edit-person{display:flex;align-items:center;gap:11px;margin-bottom:15px;padding:12px;border-radius:10px;background:#f5f8fa}.access-edit-person>span{width:38px;height:38px;display:grid;place-items:center;border-radius:9px;background:#dceff7;color:var(--navy);font-size:9px;font-weight:850}.access-edit-person strong{font-size:10px}.access-edit-person p{margin:3px 0 0;color:#748797;font-size:8px}.button-spinner{width:13px;height:13px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.detail-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:4px 3px 16px;border-bottom:1px solid #e1e9ee}.detail-hero>div>span{color:var(--blue);font-size:8px;font-weight:800}.detail-hero h2{margin:6px 0 0;color:var(--navy);font-family:Georgia,serif;font-size:27px;font-weight:500}.detail-hero p{margin:6px 0 0;color:#6f8192;font-size:9px}.detail-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:13px 0}.detail-metrics>div{padding:12px;border:1px solid #e0e8ed;border-radius:10px;background:#f9fbfc}.detail-metrics span{display:block;color:#758799;font-size:7px}.detail-metrics strong{display:block;margin-top:5px;color:var(--navy);font-size:11px}.detail-section{margin-top:12px;padding:15px;border:1px solid #e0e8ed;border-radius:11px}.detail-section>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}.detail-section h3{margin:0;color:var(--navy);font-size:10px}.milestone-list{display:grid}.milestone-list article{display:grid;grid-template-columns:29px 1fr 55px auto;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #e9eef2}.milestone-list article:last-child{border-bottom:0}.milestone-list article>span{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:#edf4f8;color:#506e82;font-size:7px;font-weight:850}.milestone-list strong{font-size:8px}.milestone-list p{margin:3px 0 0;color:#7c8c99;font-size:7px}.milestone-list article>em{color:var(--navy);font-size:9px;font-style:normal;font-weight:800}.activity-list{display:grid}.activity-list>a,.activity-list>div:not(.inline-empty){display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid #e9eef2}.activity-list>*:last-child{border-bottom:0}.activity-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#edf4f8;color:#3d7797}.activity-list strong{font-size:8px}.activity-list p{margin:3px 0 0;color:#7c8e9c;font-size:7px}.activity-list em{color:var(--navy);font-size:8px;font-style:normal;font-weight:750}.inline-empty{margin:8px 0;color:#7a8b9a;font-size:8px}.dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:14px}.dialog-actions.split{justify-content:space-between}
.toast{position:fixed;z-index:200;right:22px;bottom:22px;max-width:390px;display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #dbe6ed;border-radius:11px;background:#fff;box-shadow:0 18px 50px rgba(5,30,52,.2);opacity:0;transform:translateY(8px);transition:.22s}.toast.visible{opacity:1;transform:none}.toast>span{width:29px;height:29px;display:grid;place-items:center;border-radius:8px;background:#e5f5ed;color:var(--green-dark)}.toast p{margin:0;color:#40576b;font-size:9px}.toast.warning>span{background:#fff0e5;color:#c46a27}

/* Smart document import */
.button.smart-action{border-color:#b9d9e9;background:linear-gradient(120deg,#f6fbfe,#eaf6fb);color:#0c5e8f;box-shadow:0 8px 20px rgba(18,112,159,.08)}
.button.additional-smart-action{border-color:#a8ddcf;background:linear-gradient(120deg,#f3fcf9,#e8f8f3);color:#176e57;box-shadow:0 8px 20px rgba(35,139,107,.08)}
.smart-import-intro{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}.smart-import-intro>div{display:grid;grid-template-columns:35px 1fr;align-items:center;gap:3px 9px;padding:12px;border:1px solid #dce8ef;border-radius:11px;background:linear-gradient(135deg,#f8fbfd,#fff)}.smart-import-intro>div>span{grid-row:1/3;width:35px;height:35px;display:grid;place-items:center;border-radius:9px;background:#e5f3fa;color:#0873b7}.smart-import-intro strong{font-size:8px}.smart-import-intro small{color:#7b8d9d;font-size:7px;line-height:1.35}
.smart-file-drop{min-height:210px;display:grid;place-content:center;justify-items:center;gap:7px;border:1.5px dashed #a9cadd;border-radius:14px;background:radial-gradient(circle at 50% 0,rgba(36,167,220,.08),transparent 45%),#f8fbfd;text-align:center;transition:border .16s,background .16s}.smart-file-drop:hover{border-color:#1785c3;background-color:#f3fafe}.smart-file-drop input{position:absolute;width:1px;height:1px;opacity:0}.smart-file-drop>span{width:58px;height:58px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,#dff2fb,#edf8fc);color:#0874b8}.smart-file-drop strong{margin-top:3px;color:var(--navy);font-size:12px}.smart-file-drop small{color:#728697;font-size:8px;font-weight:500}.smart-file-drop em{margin-top:6px;padding:8px 13px;border-radius:8px;background:#087bd5;color:#fff;font-size:8px;font-style:normal;font-weight:800}
.smart-progress{margin-top:13px;padding:13px 14px;border:1px solid #d8e7ee;border-radius:11px;background:#f8fbfd}.smart-progress>div{display:flex;align-items:center;justify-content:space-between;gap:15px}.smart-progress span{color:var(--navy);font-size:9px;font-weight:800}.smart-progress strong{color:#0876bd;font-size:9px}.smart-progress p{margin:5px 0 10px;color:#7a8d9d;font-size:7px}.smart-progress>i{height:6px;display:block;border-radius:8px;background:#e0ebf1;overflow:hidden}.smart-progress>i>b{width:0;height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#087bd5,#27addc,#2fa478);transition:width .25s}
.smart-privacy-note{display:flex;align-items:center;gap:7px;margin-top:11px;padding:10px 12px;border-radius:9px;background:#eff8f4;color:#3f6d5a;font-size:7px;line-height:1.5}.smart-privacy-note svg{color:#27815f}
.smart-review-banner{margin-bottom:14px;border:1px solid #cfe4ee;border-radius:13px;overflow:hidden;background:linear-gradient(125deg,#f6fbfd,#fff)}.smart-review-top{display:grid;grid-template-columns:43px 1fr auto;align-items:center;gap:11px;padding:13px 15px}.smart-review-top>span{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(135deg,#087bd5,#21a4d7);color:#fff;box-shadow:0 9px 20px rgba(8,123,213,.2)}.smart-review-top p{margin:0;color:#0780c4;font-size:6px;font-weight:900;letter-spacing:.15em}.smart-review-top h3{margin:4px 0 3px;color:var(--navy);font-size:10px}.smart-review-top small{color:#74899a;font-size:7px}.smart-score{min-width:83px;padding:8px 11px;border-left:1px solid #dce8ee;text-align:right}.smart-score strong{display:block;color:#20805e;font-family:Georgia,serif;font-size:20px;font-weight:500}.smart-score span{display:block;color:#728697;font-size:6px;text-transform:uppercase;letter-spacing:.08em}.smart-review-badges{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:9px 15px;border-top:1px solid #dce8ee;background:rgba(239,247,251,.65)}.smart-review-badges span{display:inline-flex;align-items:center;gap:4px;padding:5px 7px;border-radius:6px;background:#e6f5ed;color:#287456;font-size:6px;font-weight:750}.smart-review-badges span.needs-review{background:#fff0df;color:#aa6328}.smart-review-badges .smart-match{background:#e8f1fb;color:#276191}
.smart-warning-list{padding:10px 15px;border-top:1px solid #e3ebef;background:#fff9f0}.smart-warning-list strong{display:block;margin-bottom:4px;color:#98602f;font-size:7px;text-transform:uppercase;letter-spacing:.08em}.smart-warning-list p{margin:3px 0;color:#80684f;font-size:7px;line-height:1.45}.smart-extracted-text{border-top:1px solid #dfe9ee}.smart-extracted-text summary{padding:9px 15px;color:#527086;font-size:7px;font-weight:750;cursor:pointer}.smart-extracted-text pre{max-height:230px;margin:0;padding:13px 15px;overflow:auto;border-top:1px solid #e2eaef;background:#0a2439;color:#d8e8f2;font:7px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap}
.form-grid label.smart-field{position:relative}.form-grid label.smart-field:after{content:attr(data-confidence);position:absolute;right:2px;top:-1px;padding:2px 4px;border-radius:4px;font-size:5px;font-weight:850;letter-spacing:.04em}.form-grid label.smart-field.confidence-high:after{background:#e5f5ed;color:#267455}.form-grid label.smart-field.confidence-medium:after{background:#eef2fb;color:#5b6593}.form-grid label.smart-field.confidence-low:after{background:#fff0df;color:#ad6325}.form-grid label.smart-field.confidence-low input,.form-grid label.smart-field.confidence-low select,.form-grid label.smart-field.confidence-low textarea{border-color:#e6aa65;background:#fffdf8}.form-grid label.smart-field.confidence-medium input,.form-grid label.smart-field.confidence-medium select,.form-grid label.smart-field.confidence-medium textarea{border-color:#bfc9df}
.smart-source-file{border-color:#cce7da;background:#f2faf6}.smart-source-file>div>span{background:#dff3e9;color:#24805c}.smart-source-file>em{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border-radius:7px;background:#e1f4eb;color:#28785a;font-size:7px;font-style:normal;font-weight:800}

/* Setup, invoices and reports */
.setup-page,.document-page{min-height:100vh;background:#eef3f6}.setup-page{display:grid;place-items:center;padding:30px}.setup-card{width:min(560px,100%);padding:34px;border:1px solid #d9e5ed;border-radius:18px;background:#fff;box-shadow:var(--shadow)}.setup-card>img{width:265px;height:70px;object-fit:contain;margin-bottom:26px}.setup-card h1{margin:0;color:var(--navy);font-family:Georgia,serif;font-size:34px;font-weight:500}.setup-card>p:not(.eyebrow){color:var(--muted);font-size:10px;line-height:1.6}.alert{margin:15px 0;padding:11px;border-radius:9px;font-size:9px}.alert.danger{background:#fff0ef;color:#a94242}.alert.success{background:#e9f7f0;color:#247656}
.document-toolbar{position:sticky;top:0;z-index:5;max-width:1120px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:14px 8px}.document-toolbar>div{display:flex;gap:8px}.invoice-sheet,.report-sheet{width:210mm;min-height:297mm;margin:0 auto 40px;padding:16mm;background:#fff;box-shadow:0 18px 60px rgba(5,30,52,.15)}.invoice-head{display:grid;grid-template-columns:1.35fr .65fr;gap:25px;padding-bottom:16px;border-bottom:3px solid var(--navy)}.invoice-company>img{width:250px;height:58px;object-fit:contain;object-position:left;margin-bottom:15px}.invoice-company h1{margin:0;color:var(--navy);font-size:14px;letter-spacing:.02em}.invoice-company p{margin:5px 0 0;max-width:490px;color:#596c7c;font-size:8px;line-height:1.5}.invoice-title{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:7px}.invoice-title>span{color:var(--blue);font-size:11px;font-weight:850;letter-spacing:.14em}.invoice-title strong{color:var(--navy);font-size:14px}.invoice-title small{padding:5px 7px;border-radius:5px;background:#eef4f7;color:#62798b;font-size:7px}.invoice-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px;padding:17px 0}.invoice-meta-grid>div>span,.invoice-footer-grid>div>span,.invoice-words>span{display:block;margin-bottom:6px;color:#718597;font-size:7px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.invoice-meta-grid>div>strong{font-size:11px}.invoice-meta-grid p{margin:4px 0;color:#586d80;font-size:8px;line-height:1.45}.invoice-meta-grid dl{margin:0;border:1px solid #dce6ed;border-radius:8px;overflow:hidden}.invoice-meta-grid dl div{display:grid;grid-template-columns:1fr 1.35fr;border-bottom:1px solid #e4ebf0}.invoice-meta-grid dl div:last-child{border-bottom:0}.invoice-meta-grid dt,.invoice-meta-grid dd{margin:0;padding:7px 9px;font-size:8px}.invoice-meta-grid dt{background:#f5f8fa;color:#6c8193}.invoice-meta-grid dd{font-weight:700}.invoice-items{width:100%;border-collapse:collapse}.invoice-items th,.invoice-items td{padding:9px;border:1px solid #dce5eb;text-align:left;font-size:8px}.invoice-items th{background:var(--navy);color:#fff;font-size:7px;letter-spacing:.05em}.invoice-items th:nth-last-child(-n+3),.invoice-items td:nth-last-child(-n+3){text-align:right}.invoice-items td:nth-child(2){width:46%}.invoice-items td small{display:block;margin-top:5px;color:#7c8c9a;font-size:7px}.invoice-totals-wrap{display:grid;grid-template-columns:1fr 300px;gap:25px;margin-top:13px}.invoice-words{padding:13px;border:1px solid #e0e8ed;border-radius:8px}.invoice-words strong{font-size:8px;text-transform:capitalize}.invoice-words p{margin:16px 0 0;color:#687b8d;font-size:7px;line-height:1.5}.invoice-totals{margin:0}.invoice-totals>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:7px 9px;border-bottom:1px solid #e1e8ed}.invoice-totals dt,.invoice-totals dd{margin:0;font-size:8px}.invoice-totals dd{font-weight:750}.invoice-totals .grand{background:#eaf3f8;color:var(--navy);border-radius:6px}.invoice-totals .grand dt,.invoice-totals .grand dd{font-size:10px;font-weight:850}.invoice-footer-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;margin-top:26px;padding-top:17px;border-top:1px solid #dce5eb}.invoice-footer-grid p{margin:4px 0;color:#5f7385;font-size:7px;line-height:1.45}.signature-box{text-align:center}.signature-box>p{color:var(--navy);font-weight:750}.signature-box>div{height:48px}.signature-box>strong,.signature-box>span{display:block!important;margin:0!important;font-size:8px!important}.signature-box>span{margin-top:3px!important;color:#778a9b!important}.invoice-legal{margin-top:25px;padding:9px;border-radius:5px;background:#f3f6f8;color:#748697;text-align:center;font-size:7px}
.report-head{display:flex;align-items:center;gap:22px;padding-bottom:18px;border-bottom:3px solid var(--navy)}.report-head img{width:220px;height:55px;object-fit:contain;object-position:left}.report-head>div{padding-left:22px;border-left:1px solid #d8e3ea}.report-head span{color:var(--blue);font-size:7px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.report-head h1{margin:5px 0 0;color:var(--navy);font-family:Georgia,serif;font-size:25px;font-weight:500}.report-head p{margin:5px 0 0;color:#6f8192;font-size:8px}.report-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:19px 0}.report-kpis article{padding:12px;border:1px solid #dde6ed;border-radius:8px}.report-kpis span{display:block;color:#728596;font-size:7px}.report-kpis strong{display:block;margin-top:6px;color:var(--navy);font-size:12px}.report-kpis small{display:block;margin-top:3px;color:#7d8d9b;font-size:6px}.report-kpis .positive{background:#f2faf6}.report-kpis .negative{background:#fff4f3}.report-table{width:100%;border-collapse:collapse}.report-table th,.report-table td{padding:8px;border:1px solid #dde5eb;text-align:right;font-size:7px}.report-table th{background:#eef3f6;color:#50687b;font-weight:800}.report-table th:first-child,.report-table td:first-child{text-align:left}.report-table td strong,.report-table td small{display:block}.report-table td small{margin-top:3px;color:#7d8d9c;font-size:6px}.report-table tfoot th{background:var(--navy);color:#fff}.empty-cell{text-align:center!important;color:#778999;padding:25px!important}.report-footer{display:flex;align-items:center;justify-content:space-between;margin-top:22px;padding-top:10px;border-top:1px solid #dce5eb;color:#778999;font-size:7px}

@media print{
  @page{size:A4;margin:0}.no-print{display:none!important}.document-page{background:#fff}.invoice-sheet,.report-sheet{width:210mm;min-height:297mm;margin:0;padding:13mm;box-shadow:none}.invoice-sheet{font-size:10px}.report-sheet{font-size:10px}
}

@media (max-width:1280px){.metric-grid{grid-template-columns:repeat(3,1fr)}.integration-grid{grid-template-columns:1fr 1fr}.roadmap-row{grid-template-columns:1fr}.roadmap-row article,.roadmap-row article:first-child,.roadmap-row article:last-child{border:1px solid #e0e8ed;border-bottom:0;border-radius:0}.roadmap-row article:first-child{border-radius:10px 10px 0 0}.roadmap-row article:last-child{border-bottom:1px solid #e0e8ed;border-radius:0 0 10px 10px}}
@media (max-width:1050px){.app-shell{grid-template-columns:222px minmax(0,1fr)}.metric-grid{grid-template-columns:repeat(2,1fr)}.overview-grid{grid-template-columns:1fr}.profile-button div{display:none}.global-search{width:250px}.finance-flow{grid-template-columns:repeat(2,1fr)}.project-pl-grid{grid-template-columns:1fr}.access-list article{grid-template-columns:38px minmax(150px,1fr) 90px auto 34px}.access-login{display:none}.pl-hero{grid-template-columns:1fr 1fr}.pl-hero>div:nth-child(2){border-right:0}.pl-hero>div:last-child{grid-column:1/3;border-top:1px solid #e2e9ee}.security-summary{grid-template-columns:1fr}.form-grid.four{grid-template-columns:repeat(2,1fr)}}
@media (max-width:820px){.login-shell{grid-template-columns:1fr}.login-story{min-height:310px;padding:24px 25px}.story-content{margin:0;padding:46px 0 20px}.story-content h1{font-size:46px}.story-lead,.story-pill-row,.story-proof{display:none}.login-brand{width:230px}.login-panel{min-height:calc(100vh - 310px);padding:42px 28px}.access-assurance{grid-template-columns:34px 1fr}.access-assurance>span:nth-of-type(2),.access-assurance>div:nth-of-type(2){display:none}
  .app-shell{display:block}.sidebar{position:fixed;left:0;top:0;width:252px;transform:translateX(-105%);transition:transform .2s;box-shadow:20px 0 60px rgba(0,0,0,.25)}.sidebar-visible .sidebar{transform:none}.side-close{display:grid}.sidebar-scrim{position:fixed;inset:0;z-index:19;border:0;background:rgba(3,19,33,.5)}.sidebar-visible .sidebar-scrim{display:block}.menu-button{display:grid;place-items:center}.topbar{padding:10px 15px}.workspace-scroll{padding:18px 15px 32px}.phase-banner{align-items:flex-start}.phase-badges{display:none}.register-summary{grid-template-columns:repeat(2,1fr)}.integration-grid{grid-template-columns:1fr}.invoice-sheet,.report-sheet{width:100%;min-height:0;margin:0;padding:22px;box-shadow:none}.document-toolbar{padding:10px}.invoice-totals-wrap{grid-template-columns:1fr}.invoice-footer-grid{grid-template-columns:1fr 1fr}.invoice-footer-grid .signature-box{grid-column:1/3}.report-kpis{grid-template-columns:repeat(2,1fr)}}
@media (max-width:620px){.login-story{min-height:250px}.login-panel{min-height:calc(100vh - 250px);padding:33px 20px}.story-content{padding-top:34px}.story-content h1{font-size:36px}.login-heading h2{font-size:39px}.access-assurance{margin:22px 0}.field-wrap{height:56px}.primary-login{height:58px}.global-search{display:none}.top-actions{gap:5px}.profile-button{display:none}.topbar-left p{display:none}.phase-banner{display:block}.phase-banner>div:first-child{display:flex;align-items:flex-start;flex-wrap:wrap}.phase-banner p{flex-basis:100%;margin-top:5px}.page-intro{display:block}.intro-actions{justify-content:flex-start;margin-top:14px}.metric-grid{grid-template-columns:1fr 1fr}.metric-card{padding:13px}.metric-card>strong{font-size:18px}.finance-flow{grid-template-columns:1fr}.register-summary{grid-template-columns:1fr 1fr}.project-pl-grid{padding:0 12px 12px}.pl-hero{grid-template-columns:1fr}.pl-hero>div{border-right:0;border-bottom:1px solid #e2e9ee}.pl-hero>div:last-child{grid-column:auto;border-bottom:0}.access-list article{grid-template-columns:36px 1fr auto 31px}.access-role{display:none}.form-grid.two,.form-grid.three,.form-grid.four{grid-template-columns:1fr}.span-2,.check-field{grid-column:span 1!important}.milestone-row{grid-template-columns:28px 1fr 65px 30px}.milestone-row>[data-term-trigger]{grid-column:2/4}.upload-inline{align-items:flex-start;flex-direction:column}.dialog-overlay{padding:0}.dialog-card,.dialog-card.medium,.dialog-card.wide,.dialog-card.xwide{width:100%;max-height:100vh;min-height:100vh;border-radius:0}.dialog-content{padding:19px}.dialog-submit{align-items:stretch;flex-direction:column}.dialog-submit>div{order:2}.dialog-submit .button{width:100%}.detail-metrics{grid-template-columns:1fr 1fr}.milestone-list article{grid-template-columns:28px 1fr auto}.milestone-list article>.status-chip{grid-column:2/4;justify-self:start}.integration-principle{grid-template-columns:42px 1fr}.integration-principle em{display:none}.invoice-head{grid-template-columns:1fr}.invoice-title{align-items:flex-start;text-align:left}.invoice-meta-grid{grid-template-columns:1fr}.invoice-footer-grid{grid-template-columns:1fr}.invoice-footer-grid .signature-box{grid-column:auto}.report-head{display:block}.report-head>div{margin-top:13px;padding:0;border:0}.report-kpis{grid-template-columns:1fr 1fr}.document-toolbar{align-items:stretch;flex-direction:column}.document-toolbar>div{display:grid;grid-template-columns:1fr 1fr}}
@media (max-width:430px){.metric-grid,.register-summary{grid-template-columns:1fr}.story-content h1{font-size:32px}.login-brand{width:190px}.private-chip{font-size:0}.private-chip:after{content:"Private";font-size:8px}.access-assurance{display:none}.login-form{margin-top:24px}.topbar-left strong{font-size:10px}.workspace-scroll{padding-left:11px;padding-right:11px}.phase-banner strong{font-size:9px}.page-intro h1{font-size:31px}.intro-actions{display:grid;grid-template-columns:1fr}.intro-actions .button{width:100%}.project-pl-card footer{grid-template-columns:1fr 1fr}.project-pl-card footer a{grid-column:1/3}.toast{left:12px;right:12px;bottom:12px}.invoice-sheet,.report-sheet{padding:15px}.invoice-totals-wrap{grid-template-columns:1fr}.report-kpis{grid-template-columns:1fr}}
@media (max-width:620px){.smart-import-intro{grid-template-columns:1fr}.smart-file-drop{min-height:175px;padding:22px}.smart-review-top{grid-template-columns:38px 1fr}.smart-review-top>span{width:38px;height:38px}.smart-score{grid-column:1/3;width:100%;padding:9px 0 0;border-left:0;border-top:1px solid #dce8ee;text-align:left}.smart-score strong,.smart-score span{display:inline}.smart-score span{margin-left:5px}.smart-review-badges{align-items:flex-start;flex-direction:column}.smart-source-file>em{align-self:flex-start}}

/* Full-fidelity commercial document review */
.billing-variance-notice{display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding:10px 12px;border:1px solid #efcf9f;border-radius:9px;background:#fff8ed;color:#875b28}.billing-variance-notice[hidden]{display:none}.billing-variance-notice strong{flex:0 0 auto;font-size:8px}.billing-variance-notice span{font-size:7px;line-height:1.5}.billing-variance-notice.blocked{border-color:#efc7c4;background:#fff1f0;color:#a84343}.invoice-batch-card:has(.billing-variance-notice:not([hidden])){border-color:#e6b472}
.span-4{grid-column:span 4}.structured-item-editor,.billing-component-list,.clause-editor-list,.invoice-item-editor,.invoice-batch-list{display:grid;gap:10px}.structured-item-row,.billing-component-editor,.invoice-item-editor>article{border:1px solid #dce7ed;border-radius:11px;background:#f9fbfc;overflow:hidden}.structured-item-row>header,.billing-component-editor>header,.invoice-item-editor>article>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border-bottom:1px solid #e1e9ee;background:#f1f7fa}.structured-item-row>header strong,.billing-component-editor>header strong,.invoice-item-editor>article>header strong{color:var(--navy);font-size:8px}.structured-item-row>header button,.billing-component-editor>header button{width:28px;height:28px;display:grid;place-items:center;border:0;background:transparent;color:#8c9ba7}.structured-item-row>.form-grid,.invoice-item-editor>article>.form-grid{padding:12px}.billing-component-editor>header{display:grid;grid-template-columns:30px 1fr 28px}.billing-component-editor>header>span{width:29px;height:29px;display:grid;place-items:center;border-radius:7px;background:#dff0f8;color:#176d9e;font-size:7px;font-weight:850}.billing-component-editor>header small{display:block;margin-top:2px;color:#7b8d9b;font-size:6px}.component-meta-grid{display:grid;grid-template-columns:1.4fr .7fr .8fr 1fr;gap:8px;padding:11px}.component-meta-grid label{display:flex;flex-direction:column;gap:5px;color:#53697b;font-size:7px;font-weight:750}.component-meta-grid input{min-height:36px;border:1px solid #d7e2e9;border-radius:8px;background:#fff;padding:0 9px;color:var(--ink);font-size:8px}.billing-component-editor .milestone-editor{padding:0 11px 9px}.component-add-term{display:flex;align-items:center;gap:5px;margin:0 11px 11px;padding:7px 9px;border:1px dashed #bad3e1;border-radius:7px;background:#f5fafc;color:#176d9e;font-size:7px;font-weight:750}.clause-editor{border:1px solid #dde7ed;border-radius:9px;background:#fff;overflow:hidden}.clause-editor>summary,.contract-clause-list summary{display:grid;grid-template-columns:31px 1fr auto;align-items:center;gap:9px;padding:10px 12px;cursor:pointer;list-style:none}.clause-editor>summary::-webkit-details-marker,.contract-clause-list summary::-webkit-details-marker,.invoice-batch-card>summary::-webkit-details-marker{display:none}.clause-editor summary span,.contract-clause-list summary span{width:29px;height:29px;display:grid;place-items:center;border-radius:7px;background:#e8f3f8;color:#176d9e;font-size:7px;font-weight:850}.clause-editor summary strong,.contract-clause-list summary strong{font-size:8px}.clause-editor summary em,.contract-clause-list summary em{padding:4px 6px;border-radius:5px;background:#edf2f5;color:#64798a;font-size:6px;font-style:normal;font-weight:800}.clause-editor>.form-grid{padding:12px;border-top:1px solid #e5edf1;background:#f9fbfc}.remove-clause{grid-column:span 4;justify-self:start;display:flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid #edcfcc;border-radius:7px;background:#fff5f4;color:#a3504a;font-size:7px}.link-required{display:flex;align-items:center;gap:7px;margin-bottom:12px;padding:10px 12px;border:1px solid #efcf9f;border-radius:9px;background:#fff8ed;color:#8c5e28;font-size:8px}.invoice-item-editor>article>header span{color:#668094;font-size:7px}.invoice-live-total small.mismatch,.batch-card-total small.mismatch{color:#b34e49;font-weight:800}
.batch-document-total{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.batch-document-total>div{padding:11px 12px;border:1px solid #d9e6ec;border-radius:10px;background:#f7fbfd}.batch-document-total span{display:block;color:#728596;font-size:7px}.batch-document-total strong{display:block;margin-top:4px;color:var(--navy);font-size:11px}.invoice-batch-card{border:1px solid #dce7ed;border-radius:11px;background:#fff;overflow:hidden}.invoice-batch-card.needs-link{border-color:#e6b472}.invoice-batch-card>summary{display:grid;grid-template-columns:33px 1fr auto 105px;align-items:center;gap:10px;padding:12px;cursor:pointer;list-style:none;background:#f7fafc}.invoice-batch-card>summary>span{width:31px;height:31px;display:grid;place-items:center;border-radius:8px;background:#e4f1f7;color:#176d9e;font-size:7px;font-weight:850}.invoice-batch-card>summary strong{font-size:9px}.invoice-batch-card>summary small{display:block;margin-top:3px;color:#788b99;font-size:7px}.invoice-batch-card>summary em{padding:5px 7px;border-radius:6px;background:#e2f3ea;color:#28795a;font-size:6px;font-style:normal;font-weight:800}.invoice-batch-card.needs-link>summary em{background:#fff0dc;color:#9b6026}.invoice-batch-card>summary>b{text-align:right;color:var(--navy);font-size:10px}.batch-card-body{padding:12px;border-top:1px solid #e2eaef}.batch-card-warnings{margin-bottom:10px;padding:8px 10px;border-radius:8px;background:#fff8ed}.batch-card-warnings p{margin:2px 0;color:#8d6c48;font-size:7px}.batch-card-total{display:flex;align-items:center;gap:10px;margin-top:10px;padding:9px 11px;border-radius:8px;background:#eef7fb}.batch-card-total span{color:#647e91;font-size:7px}.batch-card-total strong{margin-left:auto;color:var(--navy);font-size:11px}.batch-card-total small{min-width:125px;color:#347359;text-align:right;font-size:7px}
.batch-line-register{margin:0 0 12px;border:1px solid #cfe3ec;border-radius:10px;background:#f8fcfd;overflow:hidden}.batch-line-register>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border-bottom:1px solid #dce9ef;background:#edf7fa}.batch-line-register>header strong,.batch-line-register>header span,.batch-line-register>header b,.batch-line-register>header em{display:block}.batch-line-register>header strong{color:var(--navy);font-size:8px}.batch-line-register>header span{margin-top:3px;color:#6d8291;font-size:7px}.batch-line-register>header>div:last-child{text-align:right}.batch-line-register>header b{color:var(--navy);font-size:10px}.batch-line-register>header em{margin-top:3px;color:#277a5b;font-size:6px;font-style:normal;font-weight:800}.batch-line-register>div{display:grid}.batch-line-register article{display:grid;grid-template-columns:28px minmax(0,1fr) 100px;align-items:center;gap:9px;padding:9px 11px;border-bottom:1px solid #e2ebef}.batch-line-register article:last-child{border-bottom:0}.batch-line-register article>span{width:27px;height:27px;display:grid;place-items:center;border-radius:7px;background:#e2f1f7;color:#1174a9;font-size:7px;font-weight:850}.batch-line-register article strong{display:block;color:#17384f;font-size:8px;line-height:1.35}.batch-line-register article small{display:block;margin-top:3px;color:#758897;font-size:7px}.batch-line-register article>b{color:var(--navy);text-align:right;font-size:9px}.batch-line-register.mismatch{border-color:#efc4c0;background:#fff8f7}.batch-line-register.mismatch>header{background:#fff0ef}.batch-line-register.mismatch>header em{color:#ad4642}
.item-allocation-summary{min-width:150px;padding:8px 10px;border:1px solid #efd29f;border-radius:9px;background:#fff9ef;text-align:right}.item-allocation-summary strong,.item-allocation-summary span,.item-allocation-summary small{display:block}.item-allocation-summary strong{color:#9a6228;font-size:12px}.item-allocation-summary span,.item-allocation-summary small{margin-top:2px;color:#806f5b;font-size:9px}.item-allocation-summary.complete{border-color:#bfe1d1;background:#eff9f4}.item-allocation-summary.complete strong{color:#237554}.item-allocation-summary.has-additional{border-color:#b9ddeb;background:#f1faff}.item-allocation-summary.has-additional strong{color:#0876ae}.invoice-item-milestone{padding:10px;border:1px solid #cbe1ec;border-radius:9px;background:linear-gradient(110deg,#edf7fb,#f8fcfe)}.invoice-item-milestone select{background:#fff}.invoice-item-milestone small{color:#6c8190;font-size:9px;font-weight:550}.invoice-item-editor>article.additional-allocation{border-color:#9fd3e5;background:#f6fcff}.invoice-item-editor>article.additional-allocation>header{background:#e9f8fd}.invoice-item-editor>article.additional-allocation .invoice-item-milestone{border-color:#acd8e7;background:linear-gradient(110deg,#e8f8fd,#f7fcfe)}.batch-line-register article label{display:block;margin-top:7px;color:#416277;font-size:9px;font-weight:800}.batch-line-register article select{width:100%;min-height:34px;margin-top:4px;border:1px solid #cbdde6;border-radius:8px;background:#fff;padding:0 8px;color:#17384f;font-size:9px}.batch-line-register article.allocated{background:#f2faf6}.batch-line-register article.allocated>span{background:#dff2e8;color:#267757}.batch-line-register article.additional-allocation{background:#eefaff}.batch-line-register article.additional-allocation>span{background:#d9f1fa;color:#0876ae}
.additional-invoice-banner{display:flex;align-items:center;gap:14px;margin:0 0 16px;padding:15px 18px;border:1px solid #9fd8ec;border-radius:16px;background:linear-gradient(110deg,#eefaff 0%,#f5fbff 58%,#eef7ff 100%);color:#0d4f70}.additional-invoice-banner>svg{width:38px;height:38px;padding:9px;border-radius:12px;background:linear-gradient(135deg,#16a6d9,#176dcc);color:#fff;box-shadow:0 8px 18px rgba(20,126,189,.2)}.additional-invoice-banner>div{display:grid;gap:3px;flex:1}.additional-invoice-banner strong{font-size:14px;color:#092f4a}.additional-invoice-banner span{font-size:12px;color:#54758b}.additional-invoice-banner em,.additional-invoice-banner>button{padding:6px 10px;border-radius:999px;background:#d9f4ff;color:#087ca8;font-size:10px;font-style:normal;font-weight:900;letter-spacing:.08em}.additional-invoice-banner>button{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #98d8ed;cursor:pointer}.additional-item-count{align-self:center;padding:6px 10px;border-radius:999px;background:#eaf7fd;color:#087ca8;font-size:10px;font-weight:900;letter-spacing:.1em}.invoice-basis-tag{display:inline-flex;padding:3px 7px;border-radius:999px;background:#e7f8ff;color:#087da8;font-size:9px;letter-spacing:.08em}.batch-additional-details{padding:14px;border:1px solid #cbe4ef;border-radius:14px;background:#f7fcff}.invoice-batch-card.additional>summary>em{background:#e3f7ff;color:#087ea9}
.smart-import-mode-banner{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;margin:0 0 13px;padding:11px 13px;border:1px solid #a8ddcf;border-radius:11px;background:linear-gradient(120deg,#f1fcf8,#edf9fc);color:#315f56}.smart-import-mode-banner>svg{width:33px;height:33px;padding:8px;border-radius:9px;background:#dff4ed;color:#1a8568}.smart-import-mode-banner strong,.smart-import-mode-banner span{display:block}.smart-import-mode-banner strong{color:#155b49;font-size:11px}.smart-import-mode-banner span{margin-top:3px;color:#5c7a72;font-size:9.5px;line-height:1.45}.smart-import-mode-banner>em{padding:5px 8px;border-radius:7px;background:#dff4ed;color:#1a795f;font-size:8.5px;font-style:normal;font-weight:900;letter-spacing:.08em}.smart-import-mode-banner.batch-mode{margin-top:-2px}
.detail-section>header>div>p{margin:4px 0 0;color:#7c8d9b;font-size:7px}.detail-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.detail-facts>div{padding:10px;border:1px solid #e2e9ee;border-radius:8px;background:#f9fbfc}.detail-facts span{display:block;color:#788a99;font-size:6px}.detail-facts strong{display:block;margin-top:4px;color:var(--navy);font-size:8px;line-height:1.4}.party-detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.party-detail-grid>article{padding:12px;border:1px solid #e0e8ed;border-radius:9px;background:#fafcfd}.party-detail-grid>article>span{color:#0876b5;font-size:6px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.party-detail-grid h4{margin:5px 0 9px;color:var(--navy);font-size:9px}.party-detail-grid article>div{padding:6px 0;border-top:1px solid #e8eef2}.party-detail-grid b{display:block;color:#758999;font-size:6px}.party-detail-grid p{margin:3px 0 0;color:#455f72;font-size:7px;line-height:1.45}.detail-item-table{width:100%;min-width:880px;border-collapse:collapse}.detail-item-table th,.detail-item-table td{padding:8px;border:1px solid #e0e8ed;text-align:left;vertical-align:top;font-size:7px;line-height:1.45}.detail-item-table th{background:#eef4f7;color:#536c7e;font-size:6px}.detail-item-table td:nth-last-child(-n+4){white-space:nowrap;text-align:right}.detail-item-table small{display:block;margin-top:3px;color:#84929e;font-size:6px}.component-detail-list{display:grid;gap:10px}.component-detail-list>article{border:1px solid #dce7ed;border-radius:10px;overflow:hidden}.component-detail-list>article>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 12px;background:#f2f7fa}.component-detail-list>article>header span,.component-detail-list>article>header small{display:block;color:#718697;font-size:6px}.component-detail-list>article>header strong{display:block;margin-top:3px;color:var(--navy);font-size:10px}.component-detail-list>article>header>div:last-child{text-align:right}.component-detail-list>article>header b{display:block;margin-top:3px;color:#2d795c;font-size:8px}.component-detail-list .milestone-list{padding:0 11px}.component-detail-list .milestone-list article{grid-template-columns:29px 1fr 55px auto}.component-detail-list .milestone-list small{display:block;margin-top:4px;color:#577488;font-size:6px}.contract-text-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.contract-text-grid article{padding:11px;border:1px solid #e2e9ee;border-radius:9px;background:#f9fbfc}.contract-text-grid span{color:#0876b5;font-size:6px;font-weight:850;text-transform:uppercase}.contract-text-grid p,.contract-clause-list details>p{margin:7px 0 0;color:#4d6577;font-size:7px;line-height:1.6;white-space:pre-wrap}.contract-clause-list{display:grid;gap:6px}.contract-clause-list details{border:1px solid #dfe8ed;border-radius:8px;overflow:hidden}.contract-clause-list details>p{padding:0 12px 12px}.detail-two-column{display:grid;grid-template-columns:1fr 1fr;gap:18px}.detail-two-column header{margin-bottom:8px}.document-link-list{display:grid}.document-link-list a{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #e7edf1}.document-link-list a>span{width:29px;height:29px;display:grid;place-items:center;border-radius:7px;background:#e9f3f8;color:#176d9e}.document-link-list strong{font-size:7px}.document-link-list small{display:block;margin-top:3px;color:#7b8d9b;font-size:6px}
@media (max-width:900px){.component-meta-grid,.detail-facts{grid-template-columns:repeat(2,1fr)}.party-detail-grid{grid-template-columns:1fr}.detail-two-column{grid-template-columns:1fr}.invoice-batch-card>summary{grid-template-columns:33px 1fr auto}.invoice-batch-card>summary>b{grid-column:2/4;text-align:left}}
@media (max-width:620px){.span-4{grid-column:span 1}.component-meta-grid,.detail-facts,.contract-text-grid,.batch-document-total{grid-template-columns:1fr}.remove-clause{grid-column:span 1}.invoice-batch-card>summary{grid-template-columns:31px 1fr}.invoice-batch-card>summary em,.invoice-batch-card>summary b{grid-column:2;text-align:left}.component-detail-list .milestone-list article{grid-template-columns:28px 1fr auto}.component-detail-list .milestone-list article>.status-chip{grid-column:2/4}.batch-card-total,.batch-line-register>header{align-items:flex-start;flex-direction:column}.batch-card-total strong{margin-left:0}.batch-card-total small,.batch-line-register>header>div:last-child{text-align:left}.batch-line-register article{grid-template-columns:28px minmax(0,1fr)}.batch-line-register article>b{grid-column:2;text-align:left}}

/* Project billing command dashboard */
.project-dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:13px}
.dashboard-amount-card{position:relative;display:grid;grid-template-columns:37px minmax(0,1fr);gap:10px;min-height:112px;padding:15px;border:1px solid #dce6ed;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(8,38,65,.055);overflow:hidden}
.dashboard-amount-card:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:#0b2b49}
.dashboard-amount-card>span{width:37px;height:37px;display:grid;place-items:center;border-radius:10px;background:#eaf2f7;color:#0b2b49}
.dashboard-amount-card p{margin:0;color:#6c8091;font-size:8px;font-weight:760}
.dashboard-amount-card strong{display:block;margin-top:7px;color:var(--navy);font-size:14px;line-height:1.1;letter-spacing:-.025em;white-space:nowrap}
.dashboard-amount-card small{display:block;margin-top:7px;color:#7a8c9b;font-size:7px;line-height:1.35}
.dashboard-amount-card.blue:before{background:#087bd5}.dashboard-amount-card.blue>span{background:#e6f3fc;color:#087bd5}
.dashboard-amount-card.violet:before{background:#7457c9}.dashboard-amount-card.violet>span{background:#eeeafa;color:#7457c9}
.dashboard-amount-card.orange:before{background:#ea8536}.dashboard-amount-card.orange>span{background:#fff0e4;color:#d97025}
.dashboard-amount-card.cyan:before{background:#24a7dc}.dashboard-amount-card.cyan>span{background:#e5f6fb;color:#1389b7}
.dashboard-amount-card.green:before{background:#2fa478}.dashboard-amount-card.green>span{background:#e4f5ed;color:#258360}
.dashboard-amount-card.red:before{background:#c84d4d}.dashboard-amount-card.red>span{background:#fbeaea;color:#ba4545}
.dashboard-amount-card.slate:before{background:#607d94}.dashboard-amount-card.slate>span{background:#edf2f5;color:#587286}
.billing-basis-note{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:12px;margin-bottom:13px;padding:13px 15px;border:1px solid #cfe3ed;border-radius:13px;background:linear-gradient(110deg,#f2f9fc,#f9fcfd);color:#35596f}
.billing-basis-note>span{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#dceff7;color:#0876b5}
.billing-basis-note strong{display:block;color:var(--navy);font-size:9px}.billing-basis-note p{margin:4px 0 0;font-size:7px;line-height:1.45}
.project-dashboard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;padding:9px;border:1px solid #dce6ed;border-radius:13px;background:#fff}
.dashboard-filter-row{display:flex;align-items:center;gap:5px;min-width:0;overflow:auto;scrollbar-width:thin}
.dashboard-filter-row button{display:flex;align-items:center;gap:7px;min-height:34px;padding:0 10px;border:1px solid transparent;border-radius:8px;background:#f2f6f8;color:#587083;white-space:nowrap;font-size:7px;font-weight:780}
.dashboard-filter-row button strong{min-width:20px;padding:3px 5px;border-radius:10px;background:#fff;color:#506b7d;text-align:center;font-size:6px}
.dashboard-filter-row button.active{border-color:#0f78b7;background:#e7f4fa;color:#086a9f}.dashboard-filter-row button.active strong{background:#0d78b6;color:#fff}
.dashboard-result-count{display:flex;align-items:baseline;gap:5px;padding:0 8px;white-space:nowrap}.dashboard-result-count strong{color:var(--navy);font-size:12px}.dashboard-result-count span{color:#748797;font-size:7px}
.project-billing-list{display:grid;gap:12px}
.project-billing-card{border:1px solid #dbe5ec;border-radius:15px;background:#fff;box-shadow:0 10px 28px rgba(8,38,65,.065);overflow:hidden}
.project-billing-card.needs-attention{border-color:#e8d1b3}
.project-billing-card>summary{display:grid;grid-template-columns:37px minmax(220px,1fr) 180px auto;align-items:center;gap:13px;padding:15px 17px;cursor:pointer;list-style:none;background:linear-gradient(115deg,#fbfdfe,#f3f8fb)}
.project-billing-card.needs-attention>summary{background:linear-gradient(115deg,#fffdf9,#f7fafc)}
.project-billing-card>summary::-webkit-details-marker{display:none}
.project-sequence{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#dceff7;color:#0874ae;font-size:7px;font-weight:850}
.project-card-title>span{display:block;color:#0872aa;font-size:6px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.project-card-title h2{margin:4px 0 0;color:var(--navy);font-size:12px;line-height:1.25}.project-card-title p{margin:4px 0 0;color:#718495;font-size:7px}
.project-head-amount{text-align:right}.project-head-amount>span{display:block;color:#7b8d9a;font-size:6px}.project-head-amount strong{display:block;margin-top:4px;color:#cb6725;font-size:13px;letter-spacing:-.02em}.project-head-amount small{display:block;margin-top:4px;color:#748899;font-size:6px}
.project-head-status{display:flex;align-items:center;gap:8px}.details-chevron{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#e9f0f4;color:#5a7386;transition:transform .18s}.project-billing-card[open] .details-chevron{transform:rotate(90deg)}
.project-billing-body{padding:15px 17px 17px;border-top:1px solid #e1e9ee}
.project-billing-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #dfe8ee;border-radius:12px;background:#fafcfd;overflow:hidden}
.project-billing-strip>div{min-height:79px;padding:12px;border-right:1px solid #e2e9ee;border-bottom:1px solid #e2e9ee}.project-billing-strip>div:nth-child(4n){border-right:0}.project-billing-strip>div:nth-last-child(-n+4){border-bottom:0}
.project-billing-strip span{display:block;color:#758898;font-size:6px}.project-billing-strip strong{display:block;margin-top:6px;color:var(--navy);font-size:11px;white-space:nowrap}.project-billing-strip small{display:block;margin-top:4px;color:#84939f;font-size:6px;line-height:1.3}.project-billing-strip .positive strong{color:#267b5c}.project-billing-strip .attention strong{color:#c26429}
.project-billing-progress{margin-top:11px;padding:11px 13px;border:1px solid #dce7ed;border-radius:11px;background:#fff}.project-billing-progress>div,.project-billing-progress>p{display:flex;align-items:center;justify-content:space-between;gap:10px}.project-billing-progress>div span{color:#657c8d;font-size:7px;font-weight:750}.project-billing-progress>div strong{color:var(--navy);font-size:9px}.project-billing-progress>i{display:block;height:7px;margin:8px 0;border-radius:8px;background:#e7eef2;overflow:hidden}.project-billing-progress>i b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#087bd5,#28aa7d)}.project-billing-progress>p{margin:0;color:#718596;font-size:6px}
.project-billing-alerts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.project-billing-alerts>div{display:grid;grid-template-columns:28px 1fr;gap:8px;padding:9px 10px;border:1px solid #efd6ad;border-radius:9px;background:#fff9ef}.project-billing-alerts>div.danger{border-color:#edc5c2;background:#fff5f4}.project-billing-alerts>div.info{border-color:#b9dce9;background:#f2fbfe}.project-billing-alerts>div>span{width:27px;height:27px;display:grid;place-items:center;border-radius:7px;background:#f8dfb5;color:#986020;font-size:9px;font-weight:850}.project-billing-alerts>div.danger>span{background:#f7d5d2;color:#a54742}.project-billing-alerts>div.info>span{background:#dceff7;color:#0874ae}.project-billing-alerts strong{display:block;color:#6f4a23;font-size:7px}.project-billing-alerts .danger strong{color:#8e3e3a}.project-billing-alerts .info strong{color:#0a678f}.project-billing-alerts p{margin:3px 0 0;color:#806c54;font-size:6px;line-height:1.4}.project-billing-alerts .info p{color:#5c7888}
.milestone-billing-section{margin-top:12px;border:1px solid #dae5ec;border-radius:12px;overflow:hidden}.milestone-billing-section>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 14px;background:#f0f6f9}.milestone-billing-section>header>div:first-child>span,.unallocated-invoice-panel>header span{color:#0875ae;font-size:6px;font-weight:850;letter-spacing:.09em}.milestone-billing-section h3,.unallocated-invoice-panel h3{margin:4px 0 0;color:var(--navy);font-size:10px}.milestone-billing-section header p{margin:4px 0 0;color:#748797;font-size:6px}.milestone-billing-section>header>div:last-child{text-align:right}.milestone-billing-section>header>div:last-child strong{display:block;color:var(--navy);font-size:13px}.milestone-billing-section>header>div:last-child span{display:block;color:#748797;font-size:6px}
.milestone-table-wrap{max-width:100%;overflow:auto}.milestone-billing-table{width:100%;min-width:1250px;border-collapse:collapse}.milestone-billing-table th,.milestone-billing-table td{padding:10px 9px;border-right:1px solid #e1e9ee;border-bottom:1px solid #e1e9ee;text-align:left;vertical-align:top;font-size:7px}.milestone-billing-table th:last-child,.milestone-billing-table td:last-child{border-right:0}.milestone-billing-table thead th{background:#fbfcfd;color:#667c8c;font-size:6px;font-weight:820;white-space:nowrap}.milestone-billing-table tbody tr:hover{background:#fbfdfe}.milestone-billing-table th:nth-child(1){width:225px}.milestone-billing-table th:nth-child(2){width:260px}.milestone-billing-table th:nth-child(4){width:165px}.milestone-billing-table tfoot th{border-bottom:0;background:#edf5f8;color:var(--navy);font-size:7px}.milestone-billing-table tfoot th:nth-child(n+3){text-align:right;white-space:nowrap}
.milestone-identity{display:grid;grid-template-columns:29px 1fr;gap:8px}.milestone-identity>span{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:#e4f1f7;color:#0a72a8;font-size:6px;font-weight:850}.milestone-identity strong{display:block;color:var(--navy);font-size:7px}.milestone-identity p{margin:3px 0;color:#50697b;font-size:7px;line-height:1.35}.milestone-identity small{color:#81919d;font-size:6px}.milestone-condition{max-height:65px;margin:0;color:#587083;font-size:7px;line-height:1.48;overflow:auto}.amount-cell{display:block;color:var(--navy);text-align:right;font-size:8px;white-space:nowrap}.over-billed-note{display:block;margin-top:4px;color:#b54843;text-align:right;font-size:6px}
.milestone-invoices{display:grid;gap:5px}.milestone-invoices a{display:block;padding:6px 7px;border:1px solid #dce7ed;border-radius:7px;background:#f7fbfd}.milestone-invoices a:hover{border-color:#79b9d9}.milestone-invoices strong{display:block;color:#0872aa;font-size:7px}.milestone-invoices span,.milestone-invoices small{display:block;margin-top:2px;color:#688092;font-size:6px}.milestone-invoices small{color:#8b6a52}.no-bill{display:inline-flex;padding:5px 7px;border-radius:6px;background:#f1f4f6;color:#7f8f9b;font-size:6px}.milestone-bill-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:85px;min-height:29px;padding:0 8px;border:1px solid #1685bd;border-radius:7px;background:#e7f5fb;color:#0870a5;font-size:6px;font-weight:800}.milestone-bill-button:hover{background:#0876b5;color:#fff}.milestone-complete{display:inline-flex;align-items:center;gap:4px;color:#4f806b;font-size:6px;font-weight:750}
.status-chip.status-fully-billed,.status-chip.status-billed{background:#e4f4ec;color:#26795b}.status-chip.status-part-billed{background:#fff0df;color:#a65f20}.status-chip.status-terms-required,.status-chip.status-value-required{background:#f8e8e7;color:#a04440}.status-chip.status-pending{background:#eef2f5;color:#657989}
.terms-required-panel{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;margin-top:12px;padding:14px;border:1px dashed #e3b97d;border-radius:11px;background:#fffaf1}.terms-required-panel>span{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;background:#ffebca;color:#9f6428}.terms-required-panel strong{display:block;color:#805126;font-size:8px}.terms-required-panel p{margin:4px 0 0;color:#806c56;font-size:7px;line-height:1.5}
.unallocated-invoice-panel{margin-top:10px;border:1px solid #e1cfb1;border-radius:11px;overflow:hidden}.unallocated-invoice-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#fff8ec}.unallocated-invoice-panel>header>strong{color:#a25b23;font-size:10px}.unallocated-invoice-panel>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;padding:5px 12px}.unallocated-invoice-panel a{display:grid;grid-template-columns:29px 1fr auto;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #e6ecef}.unallocated-invoice-panel a>span{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:#e7f2f7;color:#0873aa}.unallocated-invoice-panel a strong{display:block;color:var(--navy);font-size:7px}.unallocated-invoice-panel a small{display:block;margin-top:3px;color:#7c8d9a;font-size:6px}.unallocated-invoice-panel a em{color:#536d7f;text-align:right;font-size:6px;font-style:normal;line-height:1.45}
.project-additional-invoice-panel{border-color:#b9dce9}.project-additional-invoice-panel>header{background:#f2fbfe}.project-additional-invoice-panel>header>strong{color:#0874ae}.project-additional-invoice-panel a>span{background:#dff2f8;color:#0874ae}
.project-additional-item-panel{border-color:#9fd5df}.project-additional-item-panel>header{background:linear-gradient(110deg,#eaf9fc,#f8fdfe)}.project-additional-item-panel>header>strong{color:#087e9a}.project-additional-item-panel a>span{background:#d8f2f5;color:#087e9a}
.project-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-top:11px;padding-top:11px;border-top:1px solid #e3eaef}
@media (max-width:1280px){.project-dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.project-billing-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.project-billing-strip>div,.project-billing-strip>div:nth-child(4n),.project-billing-strip>div:nth-last-child(-n+4){border-right:1px solid #e2e9ee;border-bottom:1px solid #e2e9ee}.project-billing-strip>div:nth-child(2n){border-right:0}.project-billing-strip>div:nth-last-child(-n+2){border-bottom:0}}
@media (max-width:1000px){.project-dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.project-billing-card>summary{grid-template-columns:37px minmax(190px,1fr) auto}.project-head-amount{grid-column:2;text-align:left}.project-head-status{grid-column:3;grid-row:1/3}.project-billing-alerts{grid-template-columns:1fr}}
@media (max-width:720px){.project-dashboard-toolbar{align-items:stretch;flex-direction:column}.dashboard-result-count{justify-content:flex-end}.project-billing-card>summary{grid-template-columns:35px 1fr}.project-head-amount{grid-column:2}.project-head-status{grid-column:2;grid-row:auto;justify-content:space-between}.project-billing-strip{grid-template-columns:1fr 1fr}.terms-required-panel{grid-template-columns:40px 1fr}.terms-required-panel .button{grid-column:1/3}.unallocated-invoice-panel>div{grid-template-columns:1fr}.project-card-actions{align-items:stretch;flex-direction:column}.project-card-actions .button{width:100%}}
@media (max-width:480px){.project-dashboard-metrics{grid-template-columns:1fr}.dashboard-amount-card{min-height:96px}.project-billing-body{padding:11px}.project-billing-strip{grid-template-columns:1fr}.project-billing-strip>div,.project-billing-strip>div:nth-child(2n),.project-billing-strip>div:nth-last-child(-n+2){border-right:0;border-bottom:1px solid #e2e9ee}.project-billing-strip>div:last-child{border-bottom:0}.project-billing-progress>p{align-items:flex-start;flex-direction:column}.unallocated-invoice-panel a{grid-template-columns:29px 1fr}.unallocated-invoice-panel a em{grid-column:2;text-align:left}}

/* Multi-company legal-entity controls */
.entity-chip{display:inline-flex;align-items:center;gap:6px;max-width:220px;padding:5px 7px;border:1px solid #cfe2ec;border-radius:7px;background:#edf7fb;color:#0b6f9f;vertical-align:middle}.entity-chip b{font-size:6px;letter-spacing:.08em}.entity-chip em{min-width:0;color:#526f82;font-size:6px;font-style:normal;line-height:1.25}.entity-chip.compact{width:max-content;padding:3px 6px}.entity-chip.unassigned{border-color:#ebc98e;background:#fff7e8;color:#966024;font-size:6px;font-weight:800}.entity-invoice-cell>.entity-chip{margin-bottom:5px}.project-card-title>.entity-chip{display:inline-flex;margin-bottom:6px;padding:4px 6px;letter-spacing:0;text-transform:none}.project-card-title>.entity-chip em{font-weight:700;text-transform:none}
.company-dashboard-selector{margin-bottom:13px;padding:14px;border:1px solid #d8e5ec;border-radius:15px;background:linear-gradient(125deg,#f9fcfd,#f1f7fa);box-shadow:0 8px 25px rgba(8,38,65,.045)}.company-dashboard-selector>header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:11px}.company-dashboard-selector>header span,.overview-company-section>header span{color:#0875ae;font-size:6px;font-weight:850;letter-spacing:.1em}.company-dashboard-selector h2,.overview-company-section h2{margin:4px 0 0;color:var(--navy);font-size:12px}.company-dashboard-selector header p,.overview-company-section header p{margin:4px 0 0;color:#728696;font-size:7px}.company-all-filter{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #cfdee7;border-radius:9px;background:#fff;color:#536e81}.company-all-filter strong{font-size:7px}.company-all-filter span{padding:3px 6px;border-radius:10px;background:#edf3f6;font-size:6px}.company-all-filter.active{border-color:#0878b5;background:#e8f5fb;color:#0870a8}.company-dashboard-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.company-dashboard-card{min-width:0;padding:11px;border:1px solid #dce6ec;border-radius:11px;background:#fff;text-align:left;transition:border-color .16s,transform .16s,box-shadow .16s}.company-dashboard-card:hover{transform:translateY(-1px);border-color:#87bbd4;box-shadow:0 7px 20px rgba(8,70,105,.08)}.company-dashboard-card.active{border-color:#0878b5;box-shadow:inset 0 0 0 1px #0878b5;background:#f4fbfe}.company-dashboard-card.attention{border-color:#e7bb78;background:#fffaf1}.company-dashboard-card>header{display:flex;align-items:center;justify-content:space-between}.company-dashboard-card>header span{padding:4px 6px;border-radius:5px;background:#e5f2f8;color:#0871a8;font-size:6px;font-weight:850}.company-dashboard-card>header em{color:#638093;font-size:5px;font-style:normal;font-weight:850;letter-spacing:.07em}.company-dashboard-card>strong{display:block;min-height:28px;margin-top:8px;color:var(--navy);font-size:8px;line-height:1.4}.company-dashboard-card>small{display:block;color:#7b8e9c;font-size:6px}.company-dashboard-card>div{display:grid;gap:5px;margin-top:9px;padding-top:8px;border-top:1px solid #e5ecef}.company-dashboard-card p{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;color:#708493;font-size:6px}.company-dashboard-card p b{color:#183e59;font-size:7px;white-space:nowrap}.company-dashboard-card p:nth-child(2) b{color:#c46428}
.overview-company-section{margin-bottom:13px;padding:15px;border:1px solid #dce6ed;border-radius:15px;background:#fff;box-shadow:var(--shadow-soft)}.overview-company-section>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.overview-company-section>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.overview-company-section>div>button{padding:12px;border:1px solid #dce6ed;border-radius:11px;background:#f9fbfc;text-align:left}.overview-company-section>div>button:hover{border-color:#87bdd7;background:#f3fafd}.overview-company-section button>span{display:inline-flex;padding:4px 6px;border-radius:5px;background:#dff0f8;color:#0871a8;font-size:6px;font-weight:850}.overview-company-section button>strong{display:block;min-height:29px;margin-top:7px;color:var(--navy);font-size:8px;line-height:1.4}.overview-company-section button>small{color:#7a8d9b;font-size:6px}.overview-company-section dl{display:grid;gap:5px;margin:9px 0 0;padding-top:8px;border-top:1px solid #e3eaee}.overview-company-section dl div{display:flex;align-items:center;justify-content:space-between;gap:8px}.overview-company-section dt{color:#718594;font-size:6px}.overview-company-section dd{margin:0;color:#173e5a;font-size:7px;font-weight:800}.overview-company-section dl div:nth-child(2) dd{color:#c26327}
.company-master-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:12px}.company-master-summary article{display:grid;grid-template-columns:36px 1fr;align-items:center;gap:10px;padding:12px;border:1px solid #dce6ed;border-radius:12px;background:#fff}.company-master-summary article>span{width:35px;height:35px;display:grid;place-items:center;border-radius:9px;background:#e5f2f8;color:#0874ac}.company-master-summary strong{display:block;color:var(--navy);font-size:15px}.company-master-summary small{display:block;margin-top:2px;color:#758897;font-size:7px}.company-master-summary article.attention{border-color:#e8c388;background:#fffaf1}.company-master-summary article.attention>span{background:#ffebc9;color:#a16022}
.company-assignment-alert{display:grid;grid-template-columns:40px minmax(220px,1fr) minmax(260px,1.3fr);align-items:center;gap:12px;margin-bottom:12px;padding:13px;border:1px solid #e6bf82;border-radius:12px;background:#fff9ef}.company-assignment-alert>span{width:39px;height:39px;display:grid;place-items:center;border-radius:10px;background:#ffe9c4;color:#9e6022}.company-assignment-alert strong{color:#815024;font-size:8px}.company-assignment-alert p{margin:4px 0 0;color:#806a50;font-size:7px}.company-assignment-alert>div:last-child{display:grid;gap:5px}.company-assignment-alert button{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:7px 9px;border:1px solid #ead7b9;border-radius:7px;background:#fff;text-align:left}.company-assignment-alert button b{color:#73502d;font-size:7px}.company-assignment-alert button span{color:#7d8d98;font-size:6px}.company-assignment-alert button svg{grid-column:2;grid-row:1/3;align-self:center}
.company-master-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.company-master-card{padding:15px;border:1px solid #dbe6ec;border-radius:15px;background:#fff;box-shadow:0 10px 28px rgba(8,38,65,.055)}.company-master-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.company-master-card>header>div:first-child span{display:inline-flex;padding:5px 7px;border-radius:6px;background:#dff0f8;color:#0872aa;font-size:7px;font-weight:850}.company-master-card>header>div:first-child em{margin-left:6px;color:#728797;font-size:6px;font-style:normal}.company-readiness{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:flex-end}.company-readiness b{display:inline-flex;align-items:center;gap:3px;padding:4px 6px;border-radius:6px;font-size:5px}.company-readiness .ready{background:#e3f4eb;color:#267657}.company-readiness .pending{background:#fff0dc;color:#9d5f22}.company-master-card h2{margin:12px 0 0;color:var(--navy);font-size:12px;line-height:1.3}.company-address{min-height:30px;margin:6px 0 0;color:#60798a;font-size:7px;line-height:1.5}.company-statutory-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:12px 0 0;border:1px solid #e0e8ed;border-radius:9px;overflow:hidden}.company-statutory-grid>div{padding:8px;border-right:1px solid #e3eaee;border-bottom:1px solid #e3eaee}.company-statutory-grid>div:nth-child(3n){border-right:0}.company-statutory-grid>div:nth-last-child(-n+3){border-bottom:0}.company-statutory-grid dt{color:#7b8d9b;font-size:6px}.company-statutory-grid dd{margin:4px 0 0;color:#324f63;font-size:7px;font-weight:760;overflow-wrap:anywhere}.company-financial-position{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin-top:10px}.company-financial-position>div{padding:8px;border-radius:8px;background:#f3f7f9}.company-financial-position span{display:block;color:#7a8c9a;font-size:5px}.company-financial-position strong{display:block;margin-top:4px;color:var(--navy);font-size:8px;white-space:nowrap}.company-financial-position .pending{background:#fff4e7}.company-financial-position .pending strong{color:#bd6329}.company-missing{margin-top:9px;padding:8px 10px;border:1px solid #eed0a5;border-radius:8px;background:#fff8ed}.company-missing strong{color:#945e29;font-size:6px}.company-missing p{margin:3px 0 0;color:#806c56;font-size:6px}.company-verification{display:flex;align-items:center;gap:8px;margin-top:10px;padding:8px;border-radius:8px;background:#edf7f3;color:#39745d}.company-verification strong,.company-verification small{display:block;font-size:6px}.company-verification small{margin-top:2px;color:#648276}.company-master-card>footer{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:11px;padding-top:10px;border-top:1px solid #e3eaee}
.verified-identity-panel{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:11px;margin-bottom:12px;padding:12px;border:1px solid #cfe5da;border-radius:10px;background:#f3faf6}.verified-identity-panel>span{width:39px;height:39px;display:grid;place-items:center;border-radius:9px;background:#dff2e8;color:#287858}.verified-identity-panel strong{font-size:9px}.verified-identity-panel p,.verified-identity-panel small{display:block;margin:4px 0 0;color:#638071;font-size:7px}.verified-identity-panel em{padding:5px 7px;border-radius:6px;background:#dff2e8;color:#287858;font-size:6px;font-style:normal;font-weight:850}.legal-entity-selector{border-color:#bcd9e7;background:#f5fbfd}.legal-entity-selector .section-title-row>em{padding:5px 7px;border-radius:6px;background:#dff0f8;color:#0871a8;font-size:6px;font-style:normal;font-weight:850}.selected-entity-preview{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;padding:9px 10px;border:1px solid #d9e6ec;border-radius:9px;background:#fff}.selected-entity-preview>span{width:33px;height:33px;display:grid;place-items:center;border-radius:8px;background:#e5f2f8;color:#0873aa}.selected-entity-preview strong{display:block;color:var(--navy);font-size:8px}.selected-entity-preview small{display:block;margin-top:3px;color:#748896;font-size:6px}.selected-entity-preview>em{padding:4px 6px;border-radius:6px;font-size:6px;font-style:normal;font-weight:850}.selected-entity-preview>em.ready{background:#e2f3ea;color:#267757}.selected-entity-preview>em.pending{background:#fff0dd;color:#9d6023}.issuer-match-banner{display:flex;align-items:center;gap:7px;margin-bottom:11px;padding:9px 11px;border:1px solid #cbe4d8;border-radius:9px;background:#f1faf5;color:#3a725c;font-size:7px}.issuer-match-banner span{margin-left:auto;padding:3px 5px;border-radius:5px;background:#dff2e8;font-size:6px;font-weight:850}.assignment-work-order{margin-bottom:12px;padding:12px;border:1px solid #dce6ed;border-radius:10px;background:#f7fafc}.assignment-work-order span{color:#0872aa;font-size:6px;font-weight:850}.assignment-work-order strong{display:block;margin-top:5px;color:var(--navy);font-size:11px}.assignment-work-order p{margin:4px 0 0;color:#718695;font-size:7px}.entity-assignment-warning{display:flex;align-items:center;gap:7px;margin-top:9px;padding:9px;border-radius:8px;background:#fff7e9;color:#896036;font-size:7px}
.report-table th:nth-child(2),.report-table td:nth-child(2){text-align:left}
@media (max-width:1250px){.company-dashboard-card-grid,.overview-company-section>div{grid-template-columns:repeat(2,minmax(0,1fr))}.company-financial-position{grid-template-columns:repeat(3,1fr)}}
@media (max-width:900px){.company-master-grid{grid-template-columns:1fr}.company-master-summary{grid-template-columns:repeat(2,1fr)}.company-assignment-alert{grid-template-columns:40px 1fr}.company-assignment-alert>div:last-child{grid-column:1/3}.company-statutory-grid{grid-template-columns:repeat(2,1fr)}.company-statutory-grid>div,.company-statutory-grid>div:nth-child(3n),.company-statutory-grid>div:nth-last-child(-n+3){border-right:1px solid #e3eaee;border-bottom:1px solid #e3eaee}.company-statutory-grid>div:nth-child(2n){border-right:0}.company-statutory-grid>div:nth-last-child(-n+2){border-bottom:0}}
@media (max-width:620px){.company-dashboard-selector>header,.overview-company-section>header{align-items:flex-start;flex-direction:column}.company-dashboard-card-grid,.overview-company-section>div,.company-master-summary{grid-template-columns:1fr}.company-master-card{padding:12px}.company-master-card>header{flex-direction:column}.company-readiness{justify-content:flex-start}.company-statutory-grid,.company-financial-position{grid-template-columns:1fr 1fr}.company-statutory-grid>div,.company-statutory-grid>div:nth-child(2n),.company-statutory-grid>div:nth-last-child(-n+2){border-right:1px solid #e3eaee;border-bottom:1px solid #e3eaee}.company-statutory-grid>div:nth-child(2n){border-right:0}.company-statutory-grid>div:last-child:nth-child(odd){border-bottom:0}.company-master-card>footer{align-items:stretch;flex-direction:column}.company-master-card>footer .button{width:100%}.verified-identity-panel{grid-template-columns:36px 1fr}.verified-identity-panel em{grid-column:2}.selected-entity-preview{grid-template-columns:32px 1fr}.selected-entity-preview>em{grid-column:2;justify-self:start}.company-assignment-alert{grid-template-columns:35px 1fr}.company-assignment-alert>div:last-child{grid-column:1/3}}

/* Premium typography, legibility and viewport-fit refinement — v1.4.1 */
:root{
  --font-ui:"Aptos","SF Pro Text","Segoe UI Variable Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-display:"Aptos Display","SF Pro Display","Segoe UI Variable Display","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font:var(--font-ui);
}
html{font-family:var(--font-ui);font-size:16px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
body{font-family:var(--font-ui);font-size:14px;line-height:1.45;font-variant-numeric:tabular-nums lining-nums}
button,input,select,textarea{font-family:var(--font-ui)}
.story-content h1,.login-heading h2,.page-intro h1,.app-error h1,.setup-card h1,.report-head h1,
.metric-card>strong,.cash-summary strong,.invoice-live-total strong{
  font-family:var(--font-display);font-weight:650;letter-spacing:-.035em;
}
.eyebrow{font-size:11px;letter-spacing:.16em}
.button{min-height:43px;padding-inline:17px;font-size:12px;font-weight:700}
.button.compact{min-height:36px;padding-inline:12px;font-size:10.5px}

/* Login: one composition that scales without clipping at any common viewport. */
.login-shell{height:100dvh;min-height:620px;grid-template-columns:minmax(480px,1.08fr) minmax(440px,.92fr);overflow:hidden}
.login-story,.login-panel{height:100%;min-height:0}
.login-story{padding:clamp(26px,4.5vh,42px) clamp(34px,5vw,76px) clamp(24px,4vh,38px)}
.login-brand{width:min(320px,54%);min-height:60px}
.private-chip{font-size:10px}
.story-content{padding:clamp(30px,7vh,68px) 0 clamp(24px,5vh,46px)}
.story-content h1{max-width:700px;font-size:clamp(46px,5.25vw,78px);font-weight:640;line-height:.97;letter-spacing:-.055em}
.story-lead{max-width:620px;margin-top:22px;font-size:15px;line-height:1.65}
.story-pill-row{margin-top:23px}.story-pill-row span{font-size:10.5px}
.story-proof{padding-top:18px}.story-proof strong{font-family:var(--font-display);font-size:22px;font-weight:650}.story-proof span{font-size:9.5px}
.login-panel{padding:clamp(28px,5vh,52px) clamp(34px,6vw,88px)}
.login-card{width:min(540px,100%)}
.login-heading h2{font-size:clamp(38px,3.7vw,52px);font-weight:650}
.login-heading>p:last-child{margin-top:13px;font-size:14px;line-height:1.6}
.access-assurance{margin:22px 0;padding:13px}.access-assurance strong{font-size:11.5px}.access-assurance small{font-size:9.5px;line-height:1.4}
.login-form{gap:16px}.login-form label{font-size:12px}.field-wrap{height:56px;margin-top:7px}.field-wrap input{font-size:15px}
.primary-login{height:58px;font-size:13px}
.form-error{font-size:11px}
.secure-note{margin-top:22px;padding-top:18px}.secure-note strong{font-size:12px}.secure-note p{font-size:10.5px;line-height:1.5}
.login-links{margin-top:19px;font-size:10.5px}

/* Portal shell and finance workspace. */
.app-loading p{font-size:12px}
.side-brand strong{font-size:13px}.side-brand span{font-size:9.5px}
.side-context>span{font-size:9px}.side-context strong{font-size:12px}.side-context small{font-size:10px}
.sidebar nav>p{font-size:9.5px}.nav-button b{font-size:12.5px}.nav-button em{font-size:9px}
.server-status strong,.user-mini strong{font-size:10.5px}.server-status small,.user-mini small{font-size:9px}.user-mini>span{font-size:10px}
.topbar-left p{font-size:10.5px}.topbar-left strong{font-size:14px}
.global-search input{font-size:11.5px}.global-search kbd{font-size:9px}
.notification-button em{font-size:8px}.profile-button>span{font-size:10px}.profile-button strong{font-size:10.5px}.profile-button small{font-size:9px}
.workspace-scroll{max-width:1640px;padding-top:25px}
.phase-banner>div:first-child>span{font-size:9px}.phase-banner strong{font-size:12px}.phase-banner p{font-size:10.5px}.phase-badges span{font-size:9px}
.page-intro h1{font-size:clamp(34px,3vw,47px);font-weight:650;line-height:1.05}
.page-intro>div:first-child>p:last-child{font-size:13.5px;line-height:1.55}
.metric-card{min-height:154px;padding:17px}.metric-top>em{font-size:8.5px}.metric-card>strong{font-size:25px}.metric-card>p{font-size:12px}.metric-card>small{font-size:10px}
.panel-head h2{font-size:16px}.panel-head p{font-size:11.5px;line-height:1.45}.section-kicker{font-size:9px}.text-link{font-size:10.5px}
.flow-block span{font-size:10px}.flow-block strong{font-size:14px}.flow-block small{font-size:9.5px}
.cash-summary span{font-size:10.5px}.cash-summary strong{font-size:26px}.cash-summary small{font-size:9.5px}.margin-ring strong{font-size:13px}.margin-ring span{font-size:8px}
.quick-action-list strong{font-size:12px}.quick-action-list small{font-size:10px}
.data-table th{font-size:9.5px}.data-table td{font-size:11.5px}.primary-cell strong{font-size:11.5px}.primary-cell span{font-size:10.5px}.primary-cell small,.cell-note{font-size:9.5px}.money-value{font-size:12px}
.value-progress strong{font-size:11px}.value-progress small{font-size:9.5px}.status-chip{font-size:8.5px}.row-action{width:34px;height:34px}

/* Forms, dialogs and detail views stay compact but never microscopic. */
.form-section>h3,.section-title-row h3{font-size:13.5px}.section-title-row p{font-size:10.5px}
.form-grid label,.dialog-form>label{font-size:11px}.form-grid input,.form-grid select,.form-grid textarea,.dialog-form input,.dialog-form select,.dialog-form textarea{font-size:12px}
.check-field strong{font-size:11px}.check-field small{font-size:9.5px}.milestone-row>span{font-size:9px}
.upload-inline strong{font-size:11px}.upload-inline small,.upload-inline input{font-size:9.5px}.dialog-submit p{font-size:10px}.dialog-error{font-size:11px}
.tax-presets button{font-size:9.5px}.invoice-live-total span{font-size:10.5px}.invoice-live-total strong{font-size:23px}.invoice-live-total small{font-size:9.5px}
.file-drop strong{font-size:11.5px}.file-drop small{font-size:9.5px}.permission-preview span{font-size:9px}
.access-edit-person strong{font-size:12px}.access-edit-person p{font-size:10px}
.detail-facts span,.party-detail-grid b,.component-detail-list>article>header span,.component-detail-list>article>header small{font-size:9px}
.detail-facts strong,.party-detail-grid p,.detail-item-table th,.detail-item-table td,.contract-text-grid p,.contract-clause-list details>p{font-size:10.5px}
.party-detail-grid>article>span{font-size:9px}.party-detail-grid h4{font-size:12px}.component-detail-list>article>header strong{font-size:12.5px}

/* Registers, P&L, access, integrations and Smart Import use the same readable scale. */
.register-summary span,.table-count,.table-tools span{font-size:10.5px}.register-summary strong{font-family:var(--font-display);font-size:23px;font-weight:650}
.empty-state h3{font-size:15px}.empty-state p{font-size:11.5px}
.pl-hero span{font-size:10.5px}.pl-hero strong{font-family:var(--font-display);font-size:31px;font-weight:650}.pl-hero p{font-size:10.5px}
.project-pl-card header>div>span{font-size:9.5px}.project-pl-card h3{font-size:14px}.project-pl-card header p{font-size:10.5px}.pl-card-values span,.project-pl-card footer span{font-size:9.5px}.pl-card-values strong,.project-pl-card footer strong{font-size:12px}.project-pl-card footer a{font-size:10.5px}
.security-summary strong{font-size:12px}.security-summary small{font-size:10px}.access-avatar{font-size:10px}.access-person strong{font-size:11.5px}.access-person span,.access-role span,.access-login span{font-size:10px}.access-person small,.access-role small,.access-login strong{font-size:9px}.owner-lock{font-size:9px}
.integration-principle strong{font-size:12px}.integration-principle p{font-size:10.5px}.integration-principle em{font-size:9px}.integration-card header>span{font-size:10px}.integration-card h2{font-size:15px}.integration-card>p{font-size:10.5px}.integration-flow span,.integration-flow strong{font-size:9.5px}.integration-card>small{font-size:9.5px}.integration-card footer span,.integration-card footer button{font-size:9.5px}
.roadmap-row article>span{font-size:9.5px}.roadmap-row strong{font-size:11px}.roadmap-row p{font-size:9.5px}.roadmap-row em{font-size:9px}
.dialog-head h2,.detail-hero h2{font-family:var(--font-display);font-weight:650}.dialog-head h2{font-size:30px}.dialog-head p:last-child{font-size:11px}.detail-hero>div>span{font-size:10px}.detail-hero h2{font-size:29px}.detail-hero p{font-size:11px}
.detail-metrics span{font-size:9.5px}.detail-metrics strong{font-size:13px}.detail-section h3{font-size:13px}.detail-section>header>div>p{font-size:10px}
.milestone-list article>span{font-size:9px}.milestone-list strong{font-size:11px}.milestone-list p{font-size:9.5px}.milestone-list article>em{font-size:11px}.activity-list strong{font-size:11px}.activity-list p{font-size:9.5px}.activity-list em{font-size:10.5px}.inline-empty{font-size:10.5px}.toast p{font-size:11px}
.smart-import-intro strong{font-size:11px}.smart-import-intro small{font-size:9.5px}.smart-file-drop strong{font-size:14px}.smart-file-drop small{font-size:10.5px}.smart-file-drop em{font-size:10px}
.smart-progress span,.smart-progress strong{font-size:11px}.smart-progress p{font-size:9.5px}.smart-privacy-note{font-size:10px}.smart-review-top p{font-size:9px}.smart-review-top h3{font-size:13px}.smart-review-top small{font-size:10px}.smart-score strong{font-family:var(--font-display);font-size:23px;font-weight:650}.smart-score span{font-size:9px}.smart-review-badges span{font-size:9px}
.smart-warning-list strong{font-size:9px}.smart-warning-list p,.smart-extracted-text summary{font-size:10px}.smart-extracted-text pre{font-size:9px}.form-grid label.smart-field:after{font-size:8px}.smart-source-file>em{font-size:9.5px}
.structured-item-row>header strong,.billing-component-editor>header strong,.invoice-item-editor>article>header strong{font-size:11px}.billing-component-editor>header>span{font-size:9px}.billing-component-editor>header small{font-size:9px}.component-meta-grid label{font-size:10px}.component-meta-grid input{font-size:11.5px}.component-add-term{font-size:9.5px}.clause-editor summary span,.contract-clause-list summary span{font-size:9px}.clause-editor summary strong,.contract-clause-list summary strong{font-size:11px}.clause-editor summary em,.contract-clause-list summary em{font-size:9px}.remove-clause,.link-required,.invoice-item-editor>article>header span{font-size:10px}
.detail-item-table small,.component-detail-list .milestone-list small,.contract-text-grid span,.document-link-list strong,.document-link-list small{font-size:9px}

/* Project dashboard and milestone billing amounts. */
.dashboard-amount-card{min-height:122px}.dashboard-amount-card p{font-size:10.5px}.dashboard-amount-card strong{font-size:18px}.dashboard-amount-card small{font-size:9.5px}
.billing-basis-note strong{font-size:11.5px}.billing-basis-note p{font-size:10px}
.dashboard-filter-row button{font-size:10px}.dashboard-filter-row button strong{font-size:9px}.dashboard-result-count strong{font-size:14px}.dashboard-result-count span{font-size:10px}
.project-sequence{font-size:9px}.project-card-title>span{font-size:9px}.project-card-title h2{font-size:15px}.project-card-title p{font-size:10px}
.project-head-amount>span{font-size:9px}.project-head-amount strong{font-size:17px}.project-head-amount small{font-size:9px}
.project-billing-strip span{font-size:9px}.project-billing-strip strong{font-size:14px}.project-billing-strip small{font-size:9px}
.project-billing-progress>div span{font-size:10px}.project-billing-progress>div strong{font-size:12px}.project-billing-progress>p{font-size:9px}
.project-billing-alerts strong{font-size:10px}.project-billing-alerts p{font-size:9px}
.milestone-billing-section>header>div:first-child>span,.unallocated-invoice-panel>header span{font-size:9px}.milestone-billing-section h3,.unallocated-invoice-panel h3{font-size:13px}.milestone-billing-section header p,.milestone-billing-section>header>div:last-child span{font-size:9px}.milestone-billing-section>header>div:last-child strong{font-size:16px}
.milestone-billing-table th,.milestone-billing-table td{font-size:10px}.milestone-billing-table thead th{font-size:9px}.milestone-billing-table tfoot th{font-size:10px}
.milestone-identity>span{font-size:8.5px}.milestone-identity strong{font-size:10px}.milestone-identity p{font-size:10px}.milestone-identity small{font-size:9px}.milestone-condition{font-size:10px}.amount-cell{font-size:11px}.over-billed-note{font-size:9px}
.milestone-invoices strong{font-size:10px}.milestone-invoices span,.milestone-invoices small{font-size:9px}.no-bill,.milestone-bill-button,.milestone-complete{font-size:9px}
.terms-required-panel strong{font-size:11px}.terms-required-panel p{font-size:10px}.unallocated-invoice-panel>header>strong{font-size:12px}.unallocated-invoice-panel a strong{font-size:10.5px}.unallocated-invoice-panel a small,.unallocated-invoice-panel a em{font-size:9px}

/* Company-wise views and legal identity controls. */
.entity-chip b,.entity-chip em,.entity-chip.unassigned{font-size:9px}
.company-dashboard-selector>header span,.overview-company-section>header span{font-size:9px}.company-dashboard-selector h2,.overview-company-section h2{font-size:15px}.company-dashboard-selector header p,.overview-company-section header p{font-size:10px}
.company-all-filter strong{font-size:10px}.company-all-filter span{font-size:9px}
.company-dashboard-card>header span{font-size:9px}.company-dashboard-card>header em{font-size:8px}.company-dashboard-card>strong{font-size:11px}.company-dashboard-card>small{font-size:9px}.company-dashboard-card p{font-size:9px}.company-dashboard-card p b{font-size:10.5px}
.overview-company-section button>span{font-size:9px}.overview-company-section button>strong{font-size:11px}.overview-company-section button>small{font-size:9px}.overview-company-section dt{font-size:9px}.overview-company-section dd{font-size:10.5px}
.company-master-summary small{font-size:9.5px}.company-assignment-alert strong{font-size:11px}.company-assignment-alert p{font-size:10px}.company-assignment-alert button b{font-size:10px}.company-assignment-alert button span{font-size:9px}
.company-master-card>header>div:first-child span{font-size:9.5px}.company-master-card>header>div:first-child em{font-size:9px}.company-readiness b{font-size:8px}.company-master-card h2{font-size:15px}.company-address{font-size:10px}
.company-statutory-grid dt{font-size:9px}.company-statutory-grid dd{font-size:10px}.company-financial-position span{font-size:8.5px}.company-financial-position strong{font-size:11px}.company-missing strong,.company-missing p,.company-verification strong,.company-verification small{font-size:9px}
.verified-identity-panel strong{font-size:11.5px}.verified-identity-panel p,.verified-identity-panel small{font-size:10px}.verified-identity-panel em,.legal-entity-selector .section-title-row>em{font-size:9px}
.selected-entity-preview strong{font-size:11px}.selected-entity-preview small,.selected-entity-preview>em{font-size:9px}.issuer-match-banner{font-size:10px}.issuer-match-banner span{font-size:9px}
.assignment-work-order span{font-size:9px}.assignment-work-order strong{font-size:13px}.assignment-work-order p,.entity-assignment-warning{font-size:10px}

/* Clear financial record actions and protected-edit guidance. */
.record-actions{display:flex;align-items:center;gap:6px;min-width:max-content}.record-action{min-height:32px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;border:1px solid #d8e4ec;border-radius:9px;background:#fff;color:#34546d;font:750 9.5px/1 var(--font);text-decoration:none;white-space:nowrap;box-shadow:0 2px 7px rgba(6,41,66,.04);transition:border-color .18s,background .18s,color .18s,transform .18s}.record-action:hover{transform:translateY(-1px);border-color:#8ecdea;background:#f4fbff;color:#087bd5}.record-action.view{border-color:#cbe8f5;background:#f3fbff;color:#0872b8}.record-action.edit{border-color:#d9e1f4;background:#f6f7ff;color:#405f9f}.record-action.pay{border-color:#cdebdc;background:#f2fbf7;color:#24805d}.edit-protection-note{display:grid;grid-template-columns:36px 1fr;gap:12px;align-items:start;margin:0 0 14px;padding:13px 15px;border:1px solid #cfe2ee;border-radius:12px;background:linear-gradient(135deg,#f3faff,#f7fbff);color:#30546e}.edit-protection-note>svg{width:34px;height:34px;padding:8px;border-radius:9px;background:#e4f5fc;color:#087bd5}.edit-protection-note strong,.edit-protection-note span{display:block}.edit-protection-note strong{margin:1px 0 4px;color:#082e49;font-size:11.5px}.edit-protection-note span{font-size:10px;line-height:1.5}.dialog-actions>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* Premium company-wise tax invoice — matched to the NAVONAX finance workspace. */
.premium-document-page{background:radial-gradient(circle at 12% 8%,rgba(36,167,220,.13),transparent 28%),linear-gradient(145deg,#e9f1f6,#f7fafc 50%,#edf4f8)}
.premium-invoice-sheet{position:relative;overflow:hidden;padding:0 0 9mm;color:#173047;background:#fff;font-family:var(--font)}
.invoice-accent-rail{height:5px;display:grid;grid-template-columns:1fr 1.2fr .55fr}.invoice-accent-rail i:nth-child(1){background:#087bd5}.invoice-accent-rail i:nth-child(2){background:#24a7dc}.invoice-accent-rail i:nth-child(3){background:#2fa478}
.premium-invoice-head{min-height:47mm;display:grid;grid-template-columns:1.42fr .58fr;gap:14mm;align-items:center;padding:11mm 13mm 10mm;background:linear-gradient(122deg,#061d34 0%,#0b2b49 62%,#0d4768 100%);color:#fff;position:relative}.premium-invoice-head:after{content:"";position:absolute;right:-22mm;bottom:-34mm;width:94mm;height:94mm;border:1px solid rgba(76,198,235,.15);border-radius:50%;box-shadow:0 0 0 13mm rgba(76,198,235,.035),0 0 0 26mm rgba(76,198,235,.025)}
.premium-company-brand{display:grid;grid-template-columns:50mm 1fr;gap:7mm;align-items:center;position:relative;z-index:1}.premium-company-brand>img{width:50mm;height:22mm;margin:0;padding:3.2mm 4mm;border-radius:3mm;background:#fff;object-fit:contain;object-position:center;box-shadow:0 7px 20px rgba(0,0,0,.16)}.premium-company-brand>img.invoice-logo-navonex-global{width:50mm;height:25mm;margin:0;padding:2mm 4mm;object-position:center}.premium-company-copy>span{display:block;margin-bottom:2mm;color:#61cff2;font-size:6.8px;font-weight:850;letter-spacing:.15em;text-transform:uppercase}.premium-company-copy h1{margin:0;color:#fff;font-size:12.5px;line-height:1.28;letter-spacing:.015em}.premium-company-copy p{max-width:310px;margin:2.2mm 0 0;color:#c8d9e5;font-size:7.2px;line-height:1.55}
.premium-invoice-identity{position:relative;z-index:1;text-align:right}.premium-invoice-identity>span{display:block;color:#78d7f4;font-size:6.4px;font-weight:850;letter-spacing:.15em}.premium-invoice-identity h2{margin:2.2mm 0 1.8mm;color:#fff;font-size:25px;font-weight:760;line-height:1;letter-spacing:-.045em}.premium-invoice-identity>strong{display:block;color:#fff;font-size:10.5px;letter-spacing:.055em}.invoice-payment-status{display:inline-flex;margin-top:3mm;padding:1.8mm 3mm;border:1px solid rgba(115,224,181,.45);border-radius:99px;background:rgba(47,164,120,.16);color:#9bf0cd;font-size:6.4px;font-style:normal;font-weight:850;letter-spacing:.12em}
.invoice-reference-band{margin:0 13mm;display:grid;grid-template-columns:.8fr .72fr 1fr .65fr 1.55fr;border:1px solid #d9e7ef;border-top:0;border-radius:0 0 3mm 3mm;background:#f6fafc;overflow:hidden}.invoice-reference-band>div{min-width:0;padding:3.2mm 3.5mm;border-right:1px solid #dfebf2}.invoice-reference-band>div:last-child{border-right:0}.invoice-reference-band span,.invoice-reference-band strong{display:block}.invoice-reference-band span{margin-bottom:1.1mm;color:#7290a5;font-size:5.7px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.invoice-reference-band strong{overflow:hidden;color:#193b55;font-size:7.1px;text-overflow:ellipsis;white-space:nowrap}
.premium-party-grid{margin:7mm 13mm 0;display:grid;grid-template-columns:1.08fr .92fr;gap:5mm}.premium-party-card{min-height:38mm;padding:5mm;border:1px solid #dce8ef;border-radius:3mm;background:#fff;box-shadow:0 5px 17px rgba(8,52,81,.045)}.premium-party-card>header{display:grid;grid-template-columns:9mm 1fr;gap:3mm;align-items:center;margin-bottom:3.5mm}.premium-party-card>header>span,.premium-section-heading>span{width:9mm;height:9mm;display:grid;place-items:center;border-radius:2.5mm;background:linear-gradient(145deg,#087bd5,#24a7dc);color:#fff;font-size:6.6px;font-weight:850}.premium-party-card small,.premium-section-heading small{display:block;margin-bottom:1mm;color:#7290a5;font-size:5.8px;font-weight:850;letter-spacing:.12em}.premium-party-card header strong{font-size:10.2px}.premium-party-card>p{margin:0 0 3mm;color:#536f82;font-size:7.4px;line-height:1.55}.premium-party-card dl{margin:0}.premium-party-card dl>div{display:grid;grid-template-columns:31mm 1fr;gap:3mm;padding:1.7mm 0;border-top:1px solid #e7eef3}.premium-party-card dt,.premium-party-card dd{margin:0;font-size:7px}.premium-party-card dt{color:#7690a1}.premium-party-card dd{color:#193b55;font-weight:750}.invoice-facts-card dl>div{grid-template-columns:30mm 1fr;padding:2.1mm 0}
.invoice-project-banner{margin:5mm 13mm 0;display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid #cfe5ef;border-radius:3mm;background:linear-gradient(110deg,#eff9fd,#f4fbf8);overflow:hidden}.invoice-project-banner>div{padding:3.8mm 5mm}.invoice-project-banner>div+div{border-left:1px solid #cfe5ef}.invoice-project-banner span,.invoice-project-banner strong{display:block}.invoice-project-banner span{color:#1680b6;font-size:5.7px;font-weight:850;letter-spacing:.13em}.invoice-project-banner strong{margin-top:1.2mm;color:#113a56;font-size:8.3px}.invoice-project-banner p{margin:1mm 0 0;color:#648092;font-size:6.8px;line-height:1.4}
.invoice-supply-section{margin:6mm 13mm 0}.premium-section-heading{display:grid;grid-template-columns:9mm 1fr auto;gap:3mm;align-items:center;margin-bottom:3mm}.premium-section-heading h3{margin:0;color:#0b2b49;font-size:11px}.premium-section-heading>em{padding:1.5mm 2.7mm;border-radius:99px;background:#e9f5fb;color:#1275a7;font-size:6px;font-style:normal;font-weight:800}.premium-table-wrap{overflow:hidden;border:1px solid #d6e4ec;border-radius:3mm}.premium-invoice-items{width:100%;border-collapse:collapse;table-layout:fixed}.premium-invoice-items th{padding:2.9mm 2mm;background:#0b2b49;color:#dcebf5;font-size:5.7px;font-weight:800;letter-spacing:.07em;text-align:right;text-transform:uppercase}.premium-invoice-items th:nth-child(1),.premium-invoice-items th:nth-child(2),.premium-invoice-items th:nth-child(3),.premium-invoice-items th:nth-child(5){text-align:left}.premium-invoice-items th:nth-child(1){width:7mm}.premium-invoice-items th:nth-child(2){width:55mm}.premium-invoice-items th:nth-child(3){width:18mm}.premium-invoice-items th:nth-child(4){width:13mm}.premium-invoice-items th:nth-child(5){width:13mm}.premium-invoice-items th:nth-child(6){width:23mm}.premium-invoice-items th:nth-child(7){width:18mm}.premium-invoice-items th:nth-child(8){width:25mm}.premium-invoice-items td{padding:3.5mm 2mm;border-bottom:1px solid #e2ebf1;color:#314e62;font-size:6.9px;line-height:1.4;text-align:right;vertical-align:top}.premium-invoice-items tbody tr:nth-child(even){background:#f8fbfd}.premium-invoice-items tbody tr:last-child td{border-bottom:0}.premium-invoice-items td:nth-child(1),.premium-invoice-items td:nth-child(2),.premium-invoice-items td:nth-child(3),.premium-invoice-items td:nth-child(5){text-align:left}.premium-invoice-items td:nth-child(1){color:#1680b6;font-weight:800}.premium-invoice-items td strong{display:block;color:#173a54;font-size:7.2px}.premium-invoice-items td small{display:block;margin-top:1mm;color:#7891a2;font-size:5.7px}.premium-invoice-items td small.invoice-line-basis.additional{display:inline-block;padding:.7mm 1.5mm;border-radius:99px;background:#e5f7fb;color:#087795;font-weight:800;letter-spacing:.02em}
.premium-financial-grid{margin:5mm 13mm 0;display:grid;grid-template-columns:1fr 70mm;gap:7mm;align-items:start}.invoice-amount-copy>div{padding:3.8mm 4.5mm;border:1px solid #dce8ef;border-radius:2.5mm;background:#f9fbfd}.invoice-amount-copy>div+div{margin-top:2.5mm}.invoice-amount-copy span{display:block;margin-bottom:1.4mm;color:#718da0;font-size:5.7px;font-weight:850;letter-spacing:.12em}.invoice-amount-copy strong{color:#0b2b49;font-size:8.2px;line-height:1.5;text-transform:capitalize}.invoice-amount-copy p{margin:0;color:#577184;font-size:6.7px;line-height:1.5}.invoice-tax-note b{color:#173f5c}.invoice-commercial-note{border-color:#d7e9df!important;background:#f6fbf8!important}
.premium-invoice-totals{margin:0;border:1px solid #d8e5ed;border-radius:3mm;overflow:hidden}.premium-invoice-totals>div{display:flex;align-items:center;justify-content:space-between;gap:4mm;padding:2.4mm 3.5mm;border-bottom:1px solid #e1eaf0}.premium-invoice-totals>div:last-child{border-bottom:0}.premium-invoice-totals dt,.premium-invoice-totals dd{margin:0;font-size:7px}.premium-invoice-totals dt{color:#5f7a8d}.premium-invoice-totals dd{color:#173a54;font-weight:800}.premium-invoice-totals .grand{padding:3.6mm;background:linear-gradient(110deg,#092d49,#0c587d);color:#fff}.premium-invoice-totals .grand dt{color:#bde6f6;font-size:7.4px;font-weight:800;text-transform:uppercase}.premium-invoice-totals .grand dd{color:#fff;font-size:12px}.premium-invoice-totals .settled{color:#23815c}.premium-invoice-totals .balance{background:#f2f8fb}.premium-invoice-totals .balance dt,.premium-invoice-totals .balance dd{color:#0b2b49;font-weight:850}
.premium-payment-grid{margin:7mm 13mm 0;display:grid;grid-template-columns:1.35fr .65fr;gap:4mm;padding-top:5mm;border-top:1px solid #dce7ee}.premium-payment-grid>article{min-height:34mm;padding:4mm;border:1px solid #dce7ee;border-radius:3mm;background:#fbfdfe}.premium-payment-grid>article>span{display:block;margin-bottom:2.4mm;color:#1680b6;font-size:5.7px;font-weight:850;letter-spacing:.11em}.premium-payment-grid h4{margin:0 0 2.5mm;color:#173a54;font-size:8px}.premium-payment-grid p{margin:0;color:#627d8f;font-size:6.4px;line-height:1.55}.premium-payment-grid dl{margin:0}.premium-payment-grid dl>div{display:grid;grid-template-columns:28mm 1fr;gap:2mm;padding:1.1mm 0}.premium-payment-grid dt,.premium-payment-grid dd{margin:0;font-size:6.3px}.premium-payment-grid dt{color:#7a91a1}.premium-payment-grid dd{overflow-wrap:anywhere;color:#25475f;font-weight:750}.premium-signature{text-align:center;background:linear-gradient(145deg,#f7fbfd,#f2f8fb)!important}.premium-signature>span{color:#526f82!important;line-height:1.35}.premium-signature>div{height:13mm}.premium-signature>strong,.premium-signature>small{display:block}.premium-signature>strong{color:#0b2b49;font-size:7.2px}.premium-signature>small{margin-top:1mm;color:#8195a3;font-size:5.8px}
.premium-invoice-footer{margin:7mm 13mm 0;display:grid;grid-template-columns:1fr auto 1fr;gap:5mm;align-items:center;padding:3.2mm 4mm;border-radius:2.5mm;background:#0b2b49;color:#fff}.premium-invoice-footer>div{display:flex;align-items:center;gap:2mm}.premium-invoice-footer b{color:#64d4f3;font-size:7px;letter-spacing:.13em}.premium-invoice-footer span,.premium-invoice-footer p,.premium-invoice-footer>strong{font-size:5.7px}.premium-invoice-footer span{color:#afc9d9}.premium-invoice-footer p{margin:0;color:#b9cfdd;text-align:center}.premium-invoice-footer>strong{text-align:right;letter-spacing:.06em}

@media print{
  html,body.premium-document-page{width:210mm!important;height:297mm!important;overflow:hidden!important}
  .premium-invoice-sheet{position:absolute!important;inset:0 auto auto 0;width:210mm!important;min-height:297mm!important;margin:0!important;padding:0 0 7mm!important;overflow:hidden!important;box-shadow:none!important;transform:scale(var(--invoice-print-scale,1));transform-origin:top left;break-after:avoid!important;page-break-after:avoid!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .premium-invoice-head,.premium-invoice-items th,.premium-invoice-totals .grand,.premium-invoice-footer,.invoice-accent-rail i{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .premium-table-wrap{overflow:visible}.premium-invoice-items thead{display:table-header-group}.premium-invoice-items tr,.premium-party-card,.premium-payment-grid>article{break-inside:avoid}
}
@media (max-width:820px){.premium-invoice-sheet{width:100%;min-height:0}.premium-invoice-head{grid-template-columns:1fr;gap:8mm}.premium-invoice-identity{text-align:left}.invoice-reference-band{grid-template-columns:1fr 1fr;margin-left:22px;margin-right:22px}.invoice-reference-band>div{border-bottom:1px solid #dfebf2}.premium-party-grid,.invoice-project-banner,.premium-financial-grid,.premium-payment-grid{grid-template-columns:1fr}.premium-party-grid,.invoice-project-banner,.invoice-supply-section,.premium-financial-grid,.premium-payment-grid,.premium-invoice-footer{margin-left:22px;margin-right:22px}.invoice-project-banner>div+div{border-left:0;border-top:1px solid #cfe5ef}.premium-table-wrap{overflow-x:auto}.premium-invoice-items{min-width:760px}.premium-invoice-footer{grid-template-columns:1fr}.premium-invoice-footer p,.premium-invoice-footer>strong{text-align:left}}
@media (max-width:540px){.premium-invoice-head{padding:28px 22px}.premium-company-brand{grid-template-columns:1fr}.premium-company-brand>img,.premium-company-brand>img.invoice-logo-navonex-global{width:180px;height:74px}.premium-company-copy h1{font-size:13px}.premium-invoice-identity h2{font-size:29px}.premium-party-grid,.invoice-project-banner,.invoice-supply-section,.premium-financial-grid,.premium-payment-grid,.premium-invoice-footer{margin-left:15px;margin-right:15px}.invoice-reference-band{margin-left:15px;margin-right:15px;grid-template-columns:1fr}.premium-financial-grid{gap:15px}}

/* The NGIC invoice has a dedicated, supplied NAVONEX lock-up. */
.invoice-company>img.invoice-logo-navonex-global{width:205px;height:98px;margin-bottom:11px;object-fit:contain;object-position:left center}

@media (max-height:760px) and (min-width:821px){
  .login-shell{min-height:570px}
  .login-story{padding-top:24px;padding-bottom:22px}.login-panel{padding-top:24px;padding-bottom:24px}
  .story-content{padding:26px 0 21px}.story-content h1{font-size:clamp(43px,4.7vw,64px)}.story-lead{margin-top:16px;font-size:13px}.story-pill-row{margin-top:16px}.story-proof{padding-top:13px}
  .login-heading h2{font-size:39px}.login-heading>p:last-child{margin-top:8px}.access-assurance{margin:14px 0;padding:10px}.login-form{gap:11px}.field-wrap{height:49px}.primary-login{height:51px}.secure-note{margin-top:14px;padding-top:12px}.login-links{margin-top:12px}
}
@media (max-width:820px){
  .login-shell{height:auto;min-height:100dvh;grid-template-columns:1fr;grid-template-rows:auto 1fr;overflow:visible}
  .login-story{height:auto;min-height:245px;padding:24px 28px}.login-panel{height:auto;min-height:0;padding:34px max(24px,6vw) 38px}
  .story-content{margin:0;padding:39px 0 16px}.story-content h1{font-size:clamp(36px,8vw,48px)}
  .login-card{margin:auto}.access-assurance{grid-template-columns:34px 1fr}
}
@media (max-width:620px){
  .login-story{min-height:215px;padding:20px}.login-brand{width:210px;min-height:54px}.login-brand img{height:43px}
  .story-content{padding:27px 0 10px}.story-content h1{font-size:clamp(32px,9.5vw,40px)}
  .login-panel{padding:28px 20px 32px}.login-heading h2{font-size:38px}.login-heading>p:last-child{font-size:13px}
  .access-assurance{margin:18px 0}.field-wrap{height:54px}.primary-login{height:56px}.secure-note{margin-top:18px}.login-links{gap:20px;flex-wrap:wrap}
  .metric-card{min-height:145px}.metric-card>strong{font-size:22px}
}
@media (max-width:430px){
  .login-story{min-height:190px}.login-brand{width:185px}.story-content{padding-top:22px}.story-content h1{font-size:31px}
  .login-panel{padding:25px 18px 28px}.login-heading h2{font-size:35px}.login-form{margin-top:22px}.secure-note{margin-top:16px}.login-links{font-size:10px}
}

/* Full-window invoice workspace and smart project allocation. */
body.dialog-open{overflow:hidden}
.dialog-overlay.invoice-workspace{display:block;padding:0;overflow:hidden;background:#eef4f7;backdrop-filter:none}
.dialog-card.fullscreen{display:flex;width:100vw;max-width:none;height:100dvh;min-height:100dvh;max-height:none;flex-direction:column;border:0;border-radius:0;background:linear-gradient(145deg,#f4f8fb,#edf4f7);box-shadow:none;overflow:hidden}
.dialog-card.fullscreen .dialog-close{position:fixed;top:18px;right:22px;z-index:110;float:none;margin:0;border-color:#cddde7;box-shadow:0 8px 24px rgba(7,45,71,.12)}
.dialog-card.fullscreen .dialog-content{width:min(1480px,100%);height:100%;margin:0 auto;padding:25px clamp(24px,3.6vw,58px) 38px;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable}
.dialog-card.fullscreen .dialog-head{padding-right:64px}.dialog-card.fullscreen .dialog-form{gap:16px}.dialog-card.fullscreen .form-section{box-shadow:0 5px 18px rgba(8,49,76,.035)}
.dialog-card.fullscreen .dialog-submit{position:sticky;bottom:-1px;z-index:12;margin:0 -12px -12px;padding:14px 14px 13px;border:1px solid #d5e3eb;border-radius:13px 13px 0 0;background:rgba(255,255,255,.96);box-shadow:0 -12px 28px rgba(7,45,71,.08);backdrop-filter:blur(14px)}
.additional-project-section{border-color:#b9ddeb;background:linear-gradient(145deg,#f8fdff,#f5fbfd)}
.additional-project-section .section-title-row>em{padding:6px 9px;border-radius:7px;background:#dff3fb;color:#0879ad;font-size:9px;font-style:normal;font-weight:850;letter-spacing:.06em}
.additional-project-select small,.batch-project-select small{display:block;margin-top:2px;color:#6f8797;font-size:9px;font-weight:550;line-height:1.45}
.selected-project-preview{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:11px;padding:11px 12px;border:1px solid #cce4ee;border-radius:10px;background:#fff}
.selected-project-preview>span{width:37px;height:37px;display:grid;place-items:center;border-radius:9px;background:linear-gradient(145deg,#e2f5fc,#eaf7f2);color:#0879ad}.selected-project-preview strong{display:block;color:var(--navy);font-size:11px}.selected-project-preview small{display:block;margin-top:3px;color:#718796;font-size:9px}.selected-project-preview>em{padding:5px 7px;border-radius:7px;background:#e2f5ed;color:#247a58;font-size:8px;font-style:normal;font-weight:850;letter-spacing:.04em}
.batch-project-select{padding:10px;border:1px solid #c8e2ec;border-radius:10px;background:#f7fcfe}
@media (max-width:620px){.dialog-card.fullscreen .dialog-close{top:12px;right:12px}.dialog-card.fullscreen .dialog-content{padding:18px 15px 28px}.dialog-card.fullscreen .dialog-head{padding-right:46px}.selected-project-preview{grid-template-columns:34px 1fr}.selected-project-preview>em{grid-column:2;justify-self:start}.additional-project-section .section-title-row{align-items:flex-start;flex-direction:column}}

/* A4 invoice system v2 — readable typography, natural one-page flow and print parity. */
.document-toolbar>div{align-items:center}
.invoice-output-badge{min-height:34px;display:inline-flex;align-items:center;padding:0 11px;border:1px solid #cde2ec;border-radius:9px;background:rgba(255,255,255,.86);color:#467086;font-size:9px;font-weight:800;letter-spacing:.075em;white-space:nowrap}
.premium-invoice-sheet{
  width:210mm;height:297mm;min-height:297mm;margin:0 auto 40px;padding:0 0 3.5mm;
  display:flex;flex-direction:column;position:relative;overflow:hidden;color:#173047;
  background:#fff;font-family:var(--font-ui);font-variant-numeric:tabular-nums lining-nums;
}
.invoice-accent-rail{height:1.6mm;flex:0 0 1.6mm}
.premium-invoice-head{
  min-height:0;height:36mm;flex:0 0 36mm;display:grid;grid-template-columns:1.48fr .52fr;
  gap:7mm;align-items:center;padding:5.5mm 10mm 5mm;position:relative;overflow:hidden;
  background:linear-gradient(122deg,#061d34 0%,#0b2b49 62%,#0c5578 100%);color:#fff;
}
.premium-invoice-head:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 0 66%,rgba(36,167,220,.06) 66% 67%,transparent 67%)}
.premium-invoice-head:after{right:-28mm;bottom:-55mm;width:102mm;height:102mm;border-color:rgba(98,213,244,.18);box-shadow:0 0 0 11mm rgba(76,198,235,.035),0 0 0 23mm rgba(76,198,235,.022)}
.premium-company-brand{grid-template-columns:39mm minmax(0,1fr);gap:5mm;align-items:center}
.premium-company-brand>img,.premium-company-brand>img.invoice-logo-navonex-global{
  width:39mm;height:18mm;margin:0;padding:2mm 2.7mm;border-radius:2.5mm;object-fit:contain;object-position:center;background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.17);
}
.premium-company-copy>span{margin-bottom:1.1mm;color:#6fd9f4;font-size:8.2px;line-height:1;font-weight:850;letter-spacing:.14em}
.premium-company-copy h1{font-family:var(--font-display);font-size:14.5px;font-weight:720;line-height:1.15;letter-spacing:.005em}
.premium-company-copy p{max-width:none;margin:1.3mm 0 0;color:#c9dae6;font-size:8.3px;line-height:1.35}
.premium-invoice-identity{text-align:right}
.premium-invoice-identity>span{font-size:7.5px;line-height:1;font-weight:850;letter-spacing:.15em}
.premium-invoice-identity h2{margin:1.8mm 0 1.4mm;font-family:var(--font-display);font-size:25px;font-weight:720;letter-spacing:-.035em}
.premium-invoice-identity>strong{font-size:11.2px;letter-spacing:.045em}
.invoice-payment-status{margin-top:2.2mm;padding:1.4mm 2.6mm;font-size:7.3px;line-height:1;letter-spacing:.11em}
.invoice-reference-band{
  min-height:13.5mm;margin:0 10mm;display:grid;grid-template-columns:repeat(auto-fit,minmax(30mm,1fr));
  border-color:#d4e5ee;border-top:0;border-radius:0 0 2.5mm 2.5mm;background:linear-gradient(90deg,#f4f9fc,#f8fbfd);
}
.invoice-reference-band>div{padding:2.5mm 3mm}
.invoice-reference-band span{margin-bottom:.8mm;font-size:7.3px;line-height:1;font-weight:850;letter-spacing:.11em}
.invoice-reference-band strong{font-size:9.3px;line-height:1.25}
.premium-party-grid{margin:4mm 10mm 0;grid-template-columns:1.08fr .92fr;gap:3.5mm;align-items:stretch}
.premium-party-card{min-height:35mm;padding:3mm 3.5mm;border-radius:2.5mm;box-shadow:0 4px 14px rgba(8,52,81,.045);display:flex;flex-direction:column}
.premium-party-card>header{grid-template-columns:7.5mm 1fr;gap:2.5mm;margin-bottom:2mm}
.premium-party-card>header>span,.premium-section-heading>span{width:7.5mm;height:7.5mm;border-radius:2mm;font-size:7.5px}
.premium-party-card small,.premium-section-heading small{margin-bottom:.7mm;font-size:7.4px;line-height:1;font-weight:850;letter-spacing:.11em}
.premium-party-card header strong{font-size:11.1px;line-height:1.2}
.premium-party-card>p{margin:0 0 1.7mm;color:#526f82;font-size:9px;line-height:1.38}
.premium-party-card dl{margin-top:auto}
.premium-party-card dl>div{grid-template-columns:27mm 1fr;gap:2.5mm;padding:1.15mm 0}
.premium-party-card dt,.premium-party-card dd{font-size:8.7px;line-height:1.25}
.invoice-facts-card dl>div{grid-template-columns:26mm 1fr;padding:1.35mm 0}
.invoice-project-banner{margin:3.5mm 10mm 0;grid-template-columns:1fr 1fr;border-radius:2.5mm}
.invoice-project-banner>div{padding:2.5mm 3.5mm}
.invoice-project-banner span{font-size:7.4px;line-height:1;font-weight:850;letter-spacing:.12em}
.invoice-project-banner strong{margin-top:.9mm;font-size:10px;line-height:1.25}
.invoice-project-banner p{margin:.7mm 0 0;font-size:8.2px;line-height:1.3}
.invoice-supply-section{margin:3.8mm 10mm 0}
.premium-section-heading{grid-template-columns:7.5mm 1fr auto;gap:2.5mm;margin-bottom:2mm}
.premium-section-heading h3{font-family:var(--font-display);font-size:12.2px;font-weight:720;line-height:1.1}
.premium-section-heading>em{padding:1.25mm 2.3mm;font-size:7.4px;line-height:1}
.premium-table-wrap{border-radius:2.5mm}
.premium-invoice-items{min-width:0;table-layout:fixed}
.premium-invoice-items th{padding:1.8mm 1.35mm;font-size:7.5px;line-height:1.15;letter-spacing:.06em}
.premium-invoice-items th:nth-child(1){width:7mm}.premium-invoice-items th:nth-child(2){width:54mm}.premium-invoice-items th:nth-child(3){width:17mm}.premium-invoice-items th:nth-child(4){width:12mm}.premium-invoice-items th:nth-child(5){width:13mm}.premium-invoice-items th:nth-child(6){width:22mm}.premium-invoice-items th:nth-child(7){width:18mm}.premium-invoice-items th:nth-child(8){width:22mm}.premium-invoice-items th:nth-child(9){width:25mm}
.premium-invoice-items td{padding:1.65mm 1.35mm;font-size:8.8px;line-height:1.28}
.premium-invoice-items td strong{font-size:9.4px;line-height:1.25}
.premium-invoice-items td small{margin-top:.7mm;font-size:7.3px;line-height:1.18}
.premium-invoice-items td small.invoice-line-basis.additional{padding:.55mm 1.2mm}
.premium-financial-grid{margin:3.8mm 10mm 0;grid-template-columns:minmax(0,1fr) 67mm;gap:5mm}
.invoice-amount-copy>div{padding:2.5mm 3mm;border-radius:2.2mm}
.invoice-amount-copy>div+div{margin-top:1.8mm}
.invoice-amount-copy span{margin-bottom:.9mm;font-size:7.4px;line-height:1;font-weight:850;letter-spacing:.11em}
.invoice-amount-copy strong{font-size:10px;line-height:1.35}
.invoice-amount-copy p{font-size:8.5px;line-height:1.35}
.premium-invoice-totals{border-radius:2.5mm}
.premium-invoice-totals>div{padding:1.55mm 2.8mm}
.premium-invoice-totals dt,.premium-invoice-totals dd{font-size:8.7px;line-height:1.2}
.premium-invoice-totals .grand{padding:2.4mm 2.8mm}
.premium-invoice-totals .grand dt{font-size:8.4px}.premium-invoice-totals .grand dd{font-family:var(--font-display);font-size:14px;font-weight:750}
.premium-payment-grid{margin:3.8mm 10mm 0;grid-template-columns:1.27fr .73fr;gap:3.5mm;padding-top:2.7mm}
.premium-payment-grid>article{min-height:27mm;padding:3mm;border-radius:2.5mm}
.premium-payment-grid>article>span{margin-bottom:1.6mm;font-size:7.3px;line-height:1.1;font-weight:850;letter-spacing:.1em}
.premium-payment-grid h4{margin:0 0 1.5mm;font-size:9.8px;line-height:1.2}
.premium-payment-grid p{font-size:8.3px;line-height:1.4}
.premium-payment-grid dl>div{grid-template-columns:25mm 1fr;gap:2mm;padding:.75mm 0}
.premium-payment-grid dt,.premium-payment-grid dd{font-size:8.2px;line-height:1.22}
.premium-signature>div{height:7mm}
.premium-signature>strong{font-size:9px}.premium-signature>small{margin-top:.7mm;font-size:7.3px}
.premium-invoice-footer{min-height:9.5mm;margin:3mm 10mm 0;padding:2.2mm 3mm;grid-template-columns:1fr auto 1fr;gap:4mm;border-radius:2.3mm}
.premium-invoice-footer b{font-size:8px}.premium-invoice-footer span,.premium-invoice-footer p,.premium-invoice-footer>strong{font-size:7px;line-height:1.2}

/* A longer item register keeps every line while tightening space progressively. */
.invoice-density-compact .premium-invoice-head{height:33mm;flex-basis:33mm;padding-top:4.5mm;padding-bottom:4mm}
.invoice-density-compact .invoice-reference-band{min-height:12mm}.invoice-density-compact .invoice-reference-band>div{padding-top:2mm;padding-bottom:2mm}
.invoice-density-compact .premium-party-grid,.invoice-density-compact .invoice-project-banner,.invoice-density-compact .invoice-supply-section,.invoice-density-compact .premium-financial-grid,.invoice-density-compact .premium-payment-grid{margin-top:3mm}
.invoice-density-compact .premium-party-card{min-height:31mm;padding-top:2.5mm;padding-bottom:2.5mm}
.invoice-density-compact .premium-party-card>p{font-size:8.4px;line-height:1.28}.invoice-density-compact .premium-party-card dl>div{padding:.85mm 0}
.invoice-density-compact .invoice-project-banner>div{padding-top:2mm;padding-bottom:2mm}
.invoice-density-compact .premium-section-heading{margin-bottom:1.5mm}
.invoice-density-compact .premium-invoice-items th{padding-top:1.35mm;padding-bottom:1.35mm;font-size:7.1px}
.invoice-density-compact .premium-invoice-items td{padding-top:1.05mm;padding-bottom:1.05mm;font-size:8.2px}.invoice-density-compact .premium-invoice-items td strong{font-size:8.7px}.invoice-density-compact .premium-invoice-items td small{font-size:6.9px}
.invoice-density-compact .invoice-amount-copy>div{padding-top:2mm;padding-bottom:2mm}.invoice-density-compact .premium-invoice-totals>div{padding-top:1.25mm;padding-bottom:1.25mm}
.invoice-density-compact .premium-payment-grid{padding-top:2.2mm}.invoice-density-compact .premium-payment-grid>article{min-height:24mm;padding-top:2.4mm;padding-bottom:2.4mm}.invoice-density-compact .premium-signature>div{height:5mm}
.invoice-density-compact .premium-invoice-footer{margin-top:2.4mm}
.invoice-density-tight .premium-invoice-head{height:30mm;flex-basis:30mm;padding:3.8mm 10mm}.invoice-density-tight .premium-company-brand>img,.invoice-density-tight .premium-company-brand>img.invoice-logo-navonex-global{height:16mm}.invoice-density-tight .premium-company-copy p{font-size:7.5px}
.invoice-density-tight .invoice-reference-band{min-height:10.5mm}.invoice-density-tight .invoice-reference-band>div{padding:1.6mm 2.5mm}.invoice-density-tight .premium-party-grid,.invoice-density-tight .invoice-project-banner,.invoice-density-tight .invoice-supply-section,.invoice-density-tight .premium-financial-grid,.invoice-density-tight .premium-payment-grid{margin-top:2.4mm}
.invoice-density-tight .premium-party-card{min-height:28mm;padding:2mm 2.8mm}.invoice-density-tight .premium-party-card>header{margin-bottom:1.2mm}.invoice-density-tight .premium-party-card>p{font-size:7.8px;line-height:1.2}.invoice-density-tight .premium-party-card dl>div{padding:.55mm 0}.invoice-density-tight .premium-party-card dt,.invoice-density-tight .premium-party-card dd{font-size:7.8px}
.invoice-density-tight .invoice-project-banner>div{padding:1.6mm 3mm}.invoice-density-tight .invoice-project-banner p{font-size:7.5px}
.invoice-density-tight .premium-section-heading{margin-bottom:1.2mm}.invoice-density-tight .premium-invoice-items th{padding:.95mm 1mm;font-size:6.8px}.invoice-density-tight .premium-invoice-items td{padding:.7mm 1mm;font-size:7.6px;line-height:1.16}.invoice-density-tight .premium-invoice-items td strong{font-size:8px}.invoice-density-tight .premium-invoice-items td small{margin-top:.35mm;font-size:6.4px}
.invoice-density-tight .invoice-amount-copy>div{padding:1.6mm 2.5mm}.invoice-density-tight .invoice-amount-copy>div+div{margin-top:1.2mm}.invoice-density-tight .premium-invoice-totals>div{padding:1mm 2.4mm}.invoice-density-tight .premium-invoice-totals .grand{padding:1.8mm 2.4mm}
.invoice-density-tight .premium-payment-grid{padding-top:1.6mm}.invoice-density-tight .premium-payment-grid>article{min-height:21mm;padding:2mm 2.5mm}.invoice-density-tight .premium-payment-grid dl>div{padding:.4mm 0}.invoice-density-tight .premium-signature>div{height:3mm}.invoice-density-tight .premium-invoice-footer{min-height:8mm;margin-top:2mm;padding-top:1.5mm;padding-bottom:1.5mm}

@media (max-width:820px){
  .invoice-output-badge{display:none}
  .premium-invoice-sheet{width:100%;height:auto;min-height:0;margin:0;padding-bottom:24px;overflow:visible}
  .premium-invoice-head{height:auto;min-height:0;grid-template-columns:1fr;gap:6mm;padding:26px 22px}
  .premium-company-brand{grid-template-columns:150px 1fr}.premium-invoice-identity{text-align:left}
  .invoice-reference-band{margin-left:22px;margin-right:22px;grid-template-columns:1fr 1fr}
  .premium-party-grid,.invoice-project-banner,.premium-financial-grid,.premium-payment-grid{grid-template-columns:1fr}
  .premium-party-grid,.invoice-project-banner,.invoice-supply-section,.premium-financial-grid,.premium-payment-grid,.premium-invoice-footer{margin-left:22px;margin-right:22px}
  .invoice-project-banner>div+div{border-left:0;border-top:1px solid #cfe5ef}
  .premium-table-wrap{overflow-x:auto}.premium-invoice-items{min-width:760px}
  .premium-invoice-footer{grid-template-columns:1fr}.premium-invoice-footer p,.premium-invoice-footer>strong{text-align:left}
}
@media (max-width:540px){
  .premium-company-brand{grid-template-columns:1fr}.premium-company-brand>img,.premium-company-brand>img.invoice-logo-navonex-global{width:150px;height:65px}
  .invoice-reference-band{grid-template-columns:1fr}
  .premium-party-grid,.invoice-project-banner,.invoice-supply-section,.premium-financial-grid,.premium-payment-grid,.premium-invoice-footer{margin-left:15px;margin-right:15px}
}

@media print{
  @page{size:A4 portrait;margin:0!important}
  html,body.premium-document-page{width:210mm!important;height:297mm!important;min-height:297mm!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#fff!important}
  body.premium-document-page{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .premium-invoice-sheet{
    position:relative!important;inset:auto!important;width:210mm!important;height:297mm!important;min-height:297mm!important;max-height:297mm!important;
    margin:0!important;padding:0 0 3.5mm!important;overflow:hidden!important;box-shadow:none!important;transform:none!important;zoom:1!important;
    break-before:avoid!important;break-after:avoid!important;break-inside:avoid!important;page-break-before:avoid!important;page-break-after:avoid!important;page-break-inside:avoid!important;
  }
  .premium-invoice-head{height:36mm!important;min-height:0!important;flex-basis:36mm!important;grid-template-columns:1.48fr .52fr!important;gap:7mm!important;padding:5.5mm 10mm 5mm!important}.premium-company-brand{grid-template-columns:39mm minmax(0,1fr)!important}.premium-invoice-identity{text-align:right!important}
  .invoice-density-compact .premium-invoice-head{height:33mm!important;flex-basis:33mm!important;padding-top:4.5mm!important;padding-bottom:4mm!important}
  .invoice-density-tight .premium-invoice-head{height:30mm!important;flex-basis:30mm!important;padding:3.8mm 10mm!important}
  .invoice-reference-band{margin-left:10mm!important;margin-right:10mm!important;grid-template-columns:repeat(auto-fit,minmax(30mm,1fr))!important}
  .premium-party-grid{grid-template-columns:1.08fr .92fr!important}.invoice-project-banner{grid-template-columns:1fr 1fr!important}.premium-financial-grid{grid-template-columns:minmax(0,1fr) 67mm!important}.premium-payment-grid{grid-template-columns:1.27fr .73fr!important}
  .premium-party-grid,.invoice-project-banner,.invoice-supply-section,.premium-financial-grid,.premium-payment-grid,.premium-invoice-footer{margin-left:10mm!important;margin-right:10mm!important}
  .invoice-project-banner>div+div{border-left:1px solid #cfe5ef!important;border-top:0!important}
  .premium-table-wrap{overflow:hidden!important}.premium-invoice-items{min-width:0!important}.premium-invoice-footer{grid-template-columns:1fr auto 1fr!important}.premium-invoice-footer p{text-align:center!important}.premium-invoice-footer>strong{text-align:right!important}
  .premium-invoice-head,.premium-invoice-items th,.premium-invoice-totals .grand,.premium-invoice-footer,.invoice-accent-rail i{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
}

/* Error-proof work-order value engine: explicit units, rate basis and live milestone amounts. */
.component-meta-grid{grid-template-columns:1.35fr .72fr .82fr .72fr .92fr 1.12fr}
.component-meta-grid select{min-height:36px;border:1px solid #d7e2e9;border-radius:8px;background:#fff;padding:0 9px;color:var(--ink);font-size:11.5px}
.calculated-field input[readonly]{border-color:#b9dcca!important;background:linear-gradient(135deg,#f0faf5,#f7fcfa)!important;color:#185d45!important;font-weight:850!important;cursor:default}
.calculated-field small,.field-help{display:block;color:#4c7b69;font-size:9px;font-weight:650;line-height:1.35}
.field-help{color:#6b8191}
.structured-item-row.calculation-error,.billing-component-editor.calculation-error{border-color:#e7b0aa;background:#fffafa}
.calculation-error .calculated-field small{color:#ac4944}
.billing-component-editor.milestone-overflow{border-color:#e6af6b}
.milestone-row{grid-template-columns:30px minmax(150px,1.1fr) 75px minmax(170px,1fr) 120px 30px}
.milestone-row output{min-height:37px;display:flex;align-items:center;justify-content:flex-end;padding:0 10px;border:1px solid #bfdfd0;border-radius:8px;background:#eff9f4;color:#216c51;font-size:10px;font-weight:850;white-space:nowrap}
.safe-correction-note{border-color:#b8decf;background:linear-gradient(135deg,#effaf5,#f7fcfa);color:#315f4e}.safe-correction-note>svg{background:#daf1e7;color:#267758}.linked-milestone{padding:6px;border:1px solid #c9e5d9;border-radius:9px;background:#f5fbf8}.linked-milestone output{border-color:#8fc9b0;background:#e7f7ef}.linked-milestone [data-remove-milestone]{color:#b6a28c;cursor:not-allowed}
.work-order-reconciliation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:center;gap:9px;margin-top:12px;padding:11px 12px;border:1px solid #edd09e;border-radius:10px;background:#fff9ef}
.work-order-reconciliation>div{padding-right:10px;border-right:1px solid #eadbc2}.work-order-reconciliation span,.work-order-reconciliation strong{display:block}.work-order-reconciliation span{color:#7a6a52;font-size:9px}.work-order-reconciliation strong{margin-top:3px;color:#815521;font-size:11px}.work-order-reconciliation em{padding:6px 9px;border-radius:7px;background:#ffeed2;color:#9a6023;font-size:9px;font-style:normal;font-weight:850;white-space:nowrap}
.work-order-reconciliation.reconciled{border-color:#b9dfcd;background:#f0faf5}.work-order-reconciliation.reconciled strong{color:#1f694e}.work-order-reconciliation.reconciled em{background:#dbf2e7;color:#207152}

@media (max-width:1100px){.component-meta-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.milestone-row{grid-template-columns:30px minmax(130px,1fr) 70px minmax(150px,1fr) 110px 30px}}
@media (max-width:900px){.component-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.milestone-row{grid-template-columns:30px minmax(120px,1fr) 70px minmax(140px,1fr) 105px 30px}}
@media (max-width:620px){
  .component-meta-grid{grid-template-columns:1fr}
  .work-order-reconciliation{grid-template-columns:1fr 1fr}.work-order-reconciliation>div{border-right:0}.work-order-reconciliation em{grid-column:1/3;text-align:center}
  .milestone-row{grid-template-columns:28px minmax(0,1fr) 70px 30px}
  .milestone-row>[data-term-trigger]{grid-column:2/4}
  .milestone-row>[data-milestone-value]{grid-column:2/4;justify-content:flex-start}
}

/* Private Smart AI re-read workspace and template-agnostic document intelligence. */
.smart-review-badges .smart-ai-type{background:linear-gradient(135deg,#e4f5ff,#edf1ff);color:#126da8;border:1px solid #c8e5f6}.smart-review-badges .smart-reconciled{background:linear-gradient(135deg,#e5f7ee,#f0fbf6);color:#217453;border:1px solid #caeadb}
.record-action.smart-reread{border-color:#cae3f2;background:linear-gradient(135deg,#f2fbff,#f6f5ff);color:#116fae}.record-action.smart-reread:hover{border-color:#75c4e8;background:linear-gradient(135deg,#e6f7ff,#eef0ff);color:#075f9a}
.smart-reread-hero{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center;margin:0 0 14px;padding:16px 18px;border:1px solid #c9e4f3;border-radius:14px;background:radial-gradient(circle at 0 0,rgba(31,164,215,.16),transparent 42%),linear-gradient(135deg,#f4fbff,#f9f8ff);box-shadow:0 10px 28px rgba(8,68,108,.07)}
.smart-reread-hero>span{width:48px;height:48px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#087bd5,#21a4d7 58%,#725cd2);color:#fff;box-shadow:0 10px 20px rgba(8,123,213,.23)}.smart-reread-hero strong{display:block;color:#082f4b;font:780 14px/1.2 var(--font)}.smart-reread-hero p{margin:5px 0 0;color:#5a7487;font-size:10.5px;line-height:1.5}.smart-reread-hero em{padding:7px 10px;border:1px solid #d1e6f2;border-radius:8px;background:rgba(255,255,255,.78);color:#176a9b;font-size:9px;font-style:normal;font-weight:850;letter-spacing:.09em;white-space:nowrap}
.smart-reread-documents{margin:0 0 14px;border:1px solid #d7e5ed;border-radius:14px;background:#fff;overflow:hidden}.smart-reread-documents>header{display:flex;justify-content:space-between;gap:12px;padding:13px 15px;border-bottom:1px solid #e1eaf0;background:#f7fafc}.smart-reread-documents>header strong{color:#123d59;font-size:11px}.smart-reread-documents>header small{color:#7890a0;font-size:9px}.smart-reread-documents article{display:grid;grid-template-columns:34px minmax(0,1fr) 32px auto;gap:10px;align-items:center;padding:11px 14px;border-bottom:1px solid #edf2f5}.smart-reread-documents article:last-child{border-bottom:0}.smart-reread-documents article>span{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#eaf6fc;color:#087abd}.smart-reread-documents article strong,.smart-reread-documents article small{display:block}.smart-reread-documents article strong{color:#163d56;font-size:10.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smart-reread-documents article small{margin-top:3px;color:#7a8e9c;font-size:8.8px}.smart-reread-documents article>a{width:31px;height:31px;display:grid;place-items:center;border:1px solid #dbe6ec;border-radius:8px;color:#5f7a8d}.smart-reread-documents article>button{min-height:32px;padding:0 11px;border:1px solid #b9dded;border-radius:8px;background:#effaff;color:#0875b7;font:800 9px/1 var(--font)}.smart-reread-documents article>button:hover{background:#e0f5ff}.smart-reread-documents article.unsupported{opacity:.58}.smart-reread-upload{min-height:150px;margin-bottom:14px}.smart-reread-upload em{display:inline-flex;align-items:center;min-height:30px;margin-top:10px;padding:0 12px;border-radius:8px;background:#e7f5fc;color:#0877b7;font-size:9px;font-style:normal;font-weight:850}
@media (max-width:620px){.smart-reread-hero{grid-template-columns:42px 1fr;padding:14px}.smart-reread-hero>span{width:42px;height:42px}.smart-reread-hero>em{grid-column:2;justify-self:start}.smart-reread-documents>header{align-items:flex-start;flex-direction:column}.smart-reread-documents article{grid-template-columns:32px minmax(0,1fr) 30px}.smart-reread-documents article>button{grid-column:2/4;width:100%}}


/* NAVONAX invoice upload-only and unlimited-line-item fix */
.invoice-item-editor {
  display: grid !important;
  gap: 14px !important;
  width: 100% !important;
  max-height: min(62vh, 760px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 4px 10px 18px 2px !important;
  scrollbar-gutter: stable;
}
.invoice-item-editor > [data-invoice-item] {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}
.upload-only-invoice {
  opacity: .72;
  pointer-events: none;
}
.upload-only-invoice::before {
  content: "Invoice detected — saving all extracted line items automatically…";
  display: block;
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 14px;
  padding: 13px 16px;
  border: 1px solid #86efac;
  border-radius: 12px;
  background: #f0fdf4;
  color: #166534;
  font-weight: 700;
}
/* NAVONAX_INVOICE_A4_V10 */
.navonax-v10-print-pages{display:none}
.navonax-v10-tds-card{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0;padding:10px;border:1px solid #d5e5eb;border-radius:12px;background:#f7fbfd}
.navonax-v10-tds-card div{min-width:0;padding:4px 7px;border-right:1px solid #dce8ed}.navonax-v10-tds-card div:last-child{border-right:0}
.navonax-v10-tds-card span,.navonax-v10-tds-card strong,.navonax-v10-tds-card small{display:block}.navonax-v10-tds-card span{color:#65808d;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.navonax-v10-tds-card strong{margin-top:3px;color:#0c3b51;font-size:14px}.navonax-v10-tds-card small{margin-top:2px;color:#78919c;font-size:8px}
.navonax-v10-signature-space{box-sizing:border-box!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;width:100%!important;min-height:64px!important;margin:4px 0 8px!important}
.navonax-v10-company-signature{display:block!important;width:auto!important;max-width:190px!important;height:auto!important;max-height:58px!important;object-fit:contain!important;mix-blend-mode:multiply}
.navonax-v10-manual-signature{align-self:center;color:#9aadb5!important;font-size:8px!important;font-weight:500!important}
.premium-signature>strong{display:block!important;margin-top:4px!important}.premium-signature>small{display:none!important}

@media print{
  @page{size:A4 portrait;margin:7mm}
  html,body{width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .invoice-toolbar,.document-toolbar,.no-print{display:none!important}
  .premium-invoice-sheet,.invoice-sheet{box-sizing:border-box!important;width:196mm!important;min-width:0!important;max-width:196mm!important;height:auto!important;min-height:281mm!important;max-height:none!important;margin:0 auto!important;padding:6mm!important;overflow:visible!important;box-shadow:none!important;border:0!important}
  .premium-invoice-items{width:100%!important;table-layout:fixed!important}
  .premium-invoice-items thead{display:table-header-group!important}
  .premium-invoice-items tr{break-inside:avoid!important;page-break-inside:avoid!important}
  .premium-invoice-items th,.premium-invoice-items td{padding:2.2mm 1.7mm!important;font-size:8.5px!important;line-height:1.28!important;overflow-wrap:anywhere!important}
  .navonax-v10-print-source{display:none!important}
  .navonax-v10-print-pages{display:block!important;width:100%!important;margin:0!important;padding:0!important}
  .navonax-v10-print-page{position:relative!important;display:block!important;break-after:page!important;page-break-after:always!important}
  .navonax-v10-print-page:last-child{break-after:auto!important;page-break-after:auto!important}
  .navonax-v10-print-page .premium-party-grid,.navonax-v10-print-page .premium-payment-grid,.navonax-v10-print-page .premium-financial-grid,.navonax-v10-print-page .premium-signature{break-inside:avoid!important;page-break-inside:avoid!important}
  .navonax-v10-page-summary{display:grid!important;grid-template-columns:.55fr 1.35fr 1.15fr 1.2fr!important;gap:0!important;margin:3mm 0 2mm!important;border:1px solid #b9d7e4!important;border-radius:2mm!important;background:#eef8fc!important;break-inside:avoid!important}
  .navonax-v10-page-summary>div{padding:2.4mm!important;border-right:1px solid #cde1e9!important;text-align:right!important}.navonax-v10-page-summary>div:first-child{text-align:left!important}.navonax-v10-page-summary>div:last-child{border-right:0!important}
  .navonax-v10-page-summary span,.navonax-v10-page-summary strong{display:block!important}.navonax-v10-page-summary span{color:#5d7c89!important;font-size:6.8px!important;font-weight:800!important;text-transform:uppercase!important}.navonax-v10-page-summary strong{margin-top:1mm!important;color:#0d425a!important;font-size:10px!important}
  .navonax-v10-continuation-note{margin-top:3mm!important;padding:2mm!important;border-top:1px solid #c7dce5!important;color:#66828e!important;font-size:7.5px!important;text-align:right!important}
  .navonax-v10-overall-label{margin:3mm 0 1.5mm!important;color:#087fb8!important;font-size:7px!important;font-weight:900!important;letter-spacing:.12em!important;text-transform:uppercase!important}
  .navonax-v10-tds-card{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;margin:2.5mm 0!important;padding:1.6mm!important;border-radius:2mm!important;break-inside:avoid!important}
  .navonax-v10-tds-card div{padding:1.5mm!important}.navonax-v10-tds-card span{font-size:6.5px!important}.navonax-v10-tds-card strong{font-size:9px!important}.navonax-v10-tds-card small{font-size:6px!important}
  .premium-signature{min-height:37mm!important;padding:3mm!important}
  .navonax-v10-signature-space{min-height:23mm!important;margin:1mm 0 2mm!important}
  .navonax-v10-company-signature{max-width:52mm!important;max-height:21mm!important}
  .premium-signature>strong{margin-top:1mm!important;font-size:9px!important}
}

@media(max-width:700px){.navonax-v10-tds-card{grid-template-columns:1fr 1fr}}
/* NAVONAX_PREMIUM_PDF_V10_4 */
@media print{
  @page{size:A4 portrait;margin:4mm}
  html,body{width:210mm!important;min-width:0!important;height:auto!important;overflow:visible!important;background:#fff!important}
  .navonax-v10-single-page,.navonax-v10-print-page{position:relative!important;width:202mm!important;height:289mm!important;min-height:0!important;max-height:289mm!important;margin:0 auto!important;padding:0!important;overflow:hidden!important;break-after:page!important;page-break-after:always!important;box-shadow:none!important;transform:none!important}
  .navonax-v10-print-page:last-child{break-after:auto!important;page-break-after:auto!important}
  .navonax-v10-single-page .premium-invoice-head,.navonax-v10-print-page .premium-invoice-head{padding-top:6mm!important;padding-bottom:5mm!important}
  .navonax-v10-single-page .invoice-reference-band,.navonax-v10-single-page .premium-party-grid,.navonax-v10-single-page .invoice-project-banner,.navonax-v10-single-page .invoice-supply-section,.navonax-v10-single-page .premium-financial-grid,.navonax-v10-single-page .premium-payment-grid{margin-top:2mm!important}
  .navonax-v10-single-page .premium-invoice-items th,.navonax-v10-print-page .premium-invoice-items th{padding-top:1.4mm!important;padding-bottom:1.4mm!important}
  .navonax-v10-single-page .premium-invoice-items td,.navonax-v10-print-page .premium-invoice-items td{padding-top:1.45mm!important;padding-bottom:1.45mm!important;font-size:6.6px!important;line-height:1.22!important}
  .navonax-v10-single-page .premium-invoice-items td small,.navonax-v10-print-page .premium-invoice-items td small{margin-top:.7mm!important;font-size:5.4px!important;line-height:1.18!important}
  .navonax-v10-single-page .premium-payment-grid>article,.navonax-v10-print-page .premium-payment-grid>article{min-height:18mm!important;padding:1.8mm 2.3mm!important}
  .navonax-v10-single-page .premium-signature>div,.navonax-v10-print-page .premium-signature>div{height:7mm!important}
  .navonax-v10-single-page .premium-invoice-footer,.navonax-v10-print-page .premium-invoice-footer{margin-top:1.5mm!important;padding-top:1.2mm!important;padding-bottom:1.2mm!important;break-inside:avoid!important;page-break-inside:avoid!important}
  .navonax-v10-print-source{display:none!important}
}
/* NAVONAX_A4_FOOTER_BOTTOM_V10_4_2 */
@media print{
  .navonax-v10-single-page,.navonax-v10-print-page{
    box-sizing:border-box!important;
    position:relative!important;
    padding-bottom:18mm!important;
  }
  .navonax-v10-single-page .premium-invoice-footer,
  .navonax-v10-print-page .premium-invoice-footer{
    position:absolute!important;
    z-index:2!important;
    left:5mm!important;
    right:5mm!important;
    bottom:3mm!important;
    width:auto!important;
    margin:0!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }
}

/* NAVONAX_INVOICE_FOOTER_GROUP_LINE_V10_4_3 */
@media print{
  .navonax-v10-single-page,.navonax-v10-print-page{position:relative!important;padding-bottom:20mm!important}
  .navonax-v10-single-page .premium-invoice-footer,.navonax-v10-print-page .premium-invoice-footer{position:absolute!important;left:5mm!important;right:5mm!important;bottom:3mm!important;width:auto!important;margin:0!important}
}
