:root{--bg:#f5f7f9;--surface:#fff;--ink:#172b36;--muted:#6b7c85;--line:#e3e9ed;--accent:#087f77;--accent-light:#e8f6f3;--nav:#14343d;--amber:#a6670b;--red:#b34843;--radius:14px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}a{color:var(--accent);text-decoration:none}button{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:8px;padding:9px 13px;font-weight:600}button:hover{background:#f1f5f6}button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}button.primary:hover{background:#066e67}button.small{font-size:12px;padding:6px 9px}button.danger{color:var(--red)}button:disabled{opacity:.5;cursor:not-allowed}svg{width:20px;height:20px;vertical-align:middle;flex-shrink:0}.layout{display:grid;grid-template-columns:224px 1fr;min-height:100vh}.sidebar{background:var(--nav);color:#dce8eb;padding:28px 18px;position:fixed;width:224px;height:100vh;display:flex;flex-direction:column}.logo{font-weight:760;font-size:25px;letter-spacing:-1px;color:#fff;padding:0 10px}.logo span{color:#70d1bb}.sidebar .sub{padding:6px 10px 28px;color:#91adb4;font-size:11px;letter-spacing:1.4px;text-transform:uppercase}.navlabel{color:#829da5;font-size:10px;letter-spacing:1.5px;text-transform:uppercase;margin:12px 12px}.sidebar a{color:#bbd0d5;display:flex;align-items:center;gap:12px;padding:12px;border-radius:9px;margin:4px 0;font-size:13px}.sidebar a.active{background:#27515a;color:#fff}.sidebar a:hover{background:#20474f}.sidebar .bottom{margin-top:auto}.userbox{border-top:1px solid #36525a;padding:16px 8px 0;display:flex;align-items:center;gap:10px}.avatar{background:#41636c;border-radius:10px;width:36px;height:36px;display:grid;place-items:center;font-weight:700;color:#fff}.userbox small{color:#91adb4;display:block;font-size:11px}.sidebar .logout{background:transparent;color:#b9ced3;border:0;padding:4px}.main{grid-column:2;min-width:0}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);padding:0 34px;display:flex;justify-content:space-between;align-items:center;gap:20px}.breadcrumb{font-size:13px;color:var(--muted)}.breadcrumb b{color:var(--ink);font-weight:550}.topbar .search{border:1px solid var(--line);border-radius:9px;display:flex;align-items:center;padding:8px 12px;gap:9px;width:280px;color:var(--muted)}.search input{border:0;width:100%;outline:none;background:transparent;font-size:12px}.topright{display:flex;align-items:center;gap:18px}.live{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);white-space:nowrap}.dot{width:7px;height:7px;border-radius:100%;background:#16a78a}.content{padding:30px 34px 50px;max-width:1700px;margin:auto}.eyebrow{font-size:10px;letter-spacing:1.6px;color:var(--accent);font-weight:700;text-transform:uppercase;margin:0 0 7px}.pagehead{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:26px}.pagehead h1{font-size:28px;letter-spacing:-.8px;margin:0 0 7px;font-weight:710}.muted{color:var(--muted)}.pagehead p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.metric{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;min-width:0}.metric .label{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px;gap:8px}.metric .icon{background:#f0f5f6;color:#729099;border-radius:9px;padding:7px;display:grid;place-items:center}.metric .value{font-size:29px;font-weight:720;letter-spacing:-.8px;margin:13px 0 6px;font-variant-numeric:tabular-nums}.metric small{font-size:11px;color:var(--muted);line-height:1.5}.metric.accent{background:var(--nav);color:#fff;border-color:var(--nav)}.metric.accent .label,.metric.accent small{color:#aec8cd}.metric.accent .icon{background:#2b535b;color:#8fdfcb}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:20px;overflow:hidden}.panelhead{display:flex;align-items:center;justify-content:space-between;padding:19px 21px;border-bottom:1px solid var(--line);gap:12px}.panelhead h2{margin:0;font-size:15px;font-weight:650}.panelhead small{font-size:11px;color:var(--muted)}.panelbody{padding:20px}.split{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(250px,1fr);gap:20px}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:normal}th{font-size:10px;color:#7b8c95;letter-spacing:.7px;text-transform:uppercase;font-weight:650;background:#fbfcfd;padding:12px 18px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:16px 18px;border-bottom:1px solid #eef2f4;font-size:12px;vertical-align:middle;line-height:1.5}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfefe}.company{display:flex;gap:11px;align-items:center;min-width:175px}.company .mark{width:36px;height:36px;border-radius:10px;background:#edf3f6;color:#52717b;display:grid;place-items:center;font-weight:700;flex-shrink:0}.company strong{font-size:12px;font-weight:650;display:block;color:var(--ink)}.company small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.badge{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:10px;font-weight:600;padding:4px 8px;border-radius:5px;background:#eef2f5;color:#607780}.badge.green{background:var(--accent-light);color:#087c69}.badge.amber{background:#fff5df;color:var(--amber)}.badge.red{background:#fdeeed;color:var(--red)}.badge.blue{background:#edf2fd;color:#536eaa}.money{font-variant-numeric:tabular-nums;white-space:nowrap}.progress{height:5px;border-radius:4px;background:#e8edef;overflow:hidden;width:100%;margin-top:6px}.progress span{display:block;height:100%;background:var(--accent);width:var(--progress,0%)}.progress.report span{background:#8ca7bf}.progtext{display:flex;justify-content:space-between;font-size:10px;gap:12px;color:var(--muted)}.progw{min-width:105px}.alert{padding:13px 16px;line-height:1.6;border-radius:9px;background:#fffbf0;color:#856430;font-size:12px;border:1px solid #f1e6cb;margin-bottom:20px}.alert.info{background:#edf6f8;color:#456872;border-color:#d8e8ed}.attention{display:flex;gap:11px;padding:16px 20px;border-bottom:1px solid #eef2f4}.attention:last-child{border-bottom:0}.attention .symbol{color:var(--amber);background:#fff5df;border-radius:7px;padding:5px;height:28px}.attention strong{font-size:12px;display:block;margin-bottom:4px}.attention p{font-size:11px;line-height:1.65;color:var(--muted);margin:0}.attention button{margin-top:9px}.chips{display:flex;flex-wrap:wrap;gap:5px}.chip{font-size:10px;padding:4px 7px;border:1px solid var(--line);border-radius:5px;color:var(--muted)}.sectiontitle{display:flex;align-items:center;justify-content:space-between;margin:26px 0 13px;gap:12px}.sectiontitle h2{font-size:16px;margin:0}.tabs{display:flex;gap:23px;border-bottom:1px solid var(--line);margin-bottom:22px;overflow:auto}.tabs button{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;padding:12px 0;white-space:nowrap;color:var(--muted);font-size:12px}.tabs button.active{border-color:var(--accent);color:var(--accent)}.filters{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:18px}.filters select,.filters input{padding:9px 12px;background:#fff;border:1px solid var(--line);border-radius:8px;font-size:12px;color:var(--ink)}.modulegrid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.modulecard{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;display:flex;flex-direction:column;gap:15px}.modulecard .modulehead{display:flex;align-items:center;justify-content:space-between}.modulecode{font-size:11px;font-weight:700;color:var(--accent);padding:5px 8px;border-radius:6px;background:var(--accent-light)}.modulecard h3{font-size:15px;margin:0;line-height:1.5}.modulecard p{font-size:11px;color:var(--muted);margin:0;line-height:1.6}.modulecard .footer{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:13px;border-top:1px solid var(--line)}.empty{padding:45px 20px;text-align:center;color:var(--muted);font-size:13px;line-height:1.7}.companyfacts{display:flex;gap:24px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:12px 0 20px}.companyfacts strong{color:var(--ink);font-weight:550}.rowlabel{font-weight:600}.nowrap{white-space:nowrap}.documentname{max-width:400px;overflow-wrap:anywhere}.documentname strong{font-size:11px}.docicon{color:#78929b;margin-right:6px}.docmeta{font-size:10px;color:var(--muted);margin-top:4px}.smalltext{font-size:11px;line-height:1.6}.demo-banner{background:#eaf3fb;border-bottom:1px solid #cfdfea;color:#385e7d;padding:9px 25px;font-size:12px;line-height:1.5}.footerhint{font-size:10px;color:#8b9ca4;margin-top:23px;line-height:1.6}dialog{border:0;border-radius:16px;box-shadow:0 15px 70px #102a3a3d;width:min(680px,94vw);max-height:90vh;padding:0;color:var(--ink)}dialog.drawer{width:min(840px,96vw)}dialog::backdrop{background:#10252b80;backdrop-filter:blur(2px)}.modalhead{display:flex;justify-content:space-between;gap:15px;padding:23px 26px;border-bottom:1px solid var(--line)}.modalhead h2{font-size:20px;margin:0 0 5px;letter-spacing:-.4px}.modalhead p{margin:0;font-size:12px;color:var(--muted)}.modalhead .close{border:0;font-size:22px;padding:0 5px;background:none}.modalbody{padding:22px 26px;max-height:65vh;overflow:auto}.modalfooter{display:flex;justify-content:flex-end;gap:9px;padding:16px 26px;background:#fafcfd;border-top:1px solid var(--line)}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field.wide{grid-column:1/-1}.field label{font-size:11px;font-weight:600;color:#536c77}.field input,.field select,.field textarea{border:1px solid #d9e3e7;border-radius:8px;padding:10px 11px;background:#fff;width:100%;color:var(--ink)}.field textarea{min-height:78px;resize:vertical;line-height:1.5}.field small{font-size:10px;color:var(--muted)}.field .checklabel{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:400}.field .checklabel input{width:16px;height:16px}.checklist{padding:0;margin:0;list-style:none}.checkrow{display:flex;gap:11px;padding:13px 0;border-bottom:1px solid #edf1f3;align-items:flex-start}.checkrow:last-child{border:0}.checkrow input{width:17px;height:17px;margin-top:2px;accent-color:var(--accent);cursor:pointer;flex-shrink:0}.checkrow .checktext{flex:1}.checkrow .checktext label{font-size:12px;line-height:1.65;cursor:pointer}.checkrow.done label{color:#6f858a}.checkrow .checktext small{display:block;font-size:10px;color:var(--muted);margin-top:4px;line-height:1.5}.checkrow button{flex-shrink:0}.checksection{display:flex;justify-content:space-between;align-items:center;margin:22px 0 5px}.checksection h3{font-size:13px;margin:0}.checksection:first-child{margin-top:0}.detailtop{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.detailtop .box{padding:15px;border:1px solid var(--line);border-radius:9px}.detailtop .box .big{font-size:22px;font-weight:650;margin-bottom:5px}.detailtop .box small{font-size:11px;color:var(--muted)}.detailsummary{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:17px}.lineitem{display:grid;grid-template-columns:1fr 130px 35px;gap:8px;margin:8px 0}.lineitem select,.lineitem input{padding:10px;border:1px solid var(--line);border-radius:7px;min-width:0}.login{min-height:100vh;display:grid;place-items:center;background:var(--nav);padding:24px}.loginbox{width:390px;max-width:100%;background:white;padding:36px;border-radius:18px}.loginbox .brand{font-size:25px;font-weight:750;color:var(--accent);letter-spacing:-1px;margin-bottom:27px}.loginbox h1{font-size:23px;margin:0 0 8px}.loginbox p{font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:25px}.loginbox .field{margin-bottom:16px}.loginbox button{width:100%;margin-top:7px}.loginerror{color:var(--red);font-size:12px;line-height:1.5}.loading{padding:70px;text-align:center;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:12px 18px;background:#193b43;color:white;border-radius:9px;font-size:12px;box-shadow:0 6px 25px #193b4333;z-index:200;display:none;max-width:85vw}#toast.error{background:#a9433b}.readbadge{font-size:11px;color:var(--amber)}.auditdetail{max-width:430px;overflow-wrap:anywhere}.reportmatrix td{vertical-align:top}.reportmatrix .badge{margin-bottom:6px}.printtitle{display:none}@media(min-width:1400px){.modulegrid{grid-template-columns:repeat(4,1fr)}}@media(max-width:1150px){.metrics{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}.modulegrid{grid-template-columns:repeat(2,1fr)}.sidebar{width:195px}.layout{grid-template-columns:195px 1fr}.topbar{padding:0 22px}.content{padding:25px 22px}.topbar .search{width:230px}.topright .live{display:none}}@media(max-width:760px){.layout{display:block}.sidebar{position:static;width:100%;height:auto;padding:14px 16px}.sidebar .logo{font-size:21px}.sidebar .sub,.navlabel,.sidebar .bottom,.userbox{display:none}.sidebar nav{display:flex;overflow:auto;gap:6px;margin-top:12px}.sidebar a{padding:8px 10px;font-size:11px;white-space:nowrap;gap:6px;margin:0}.sidebar a svg{width:16px;height:16px}.topbar{height:58px;padding:0 16px}.topbar .search{width:170px}.breadcrumb{font-size:11px}.content{padding:23px 16px}.pagehead h1{font-size:23px}.pagehead{gap:12px}.pagehead .actions{justify-content:flex-end}.metrics{gap:10px}.metric{padding:15px}.metric .value{font-size:24px}.modulegrid{grid-template-columns:1fr}.formgrid{grid-template-columns:1fr}.field.wide{grid-column:auto}.modalhead,.modalbody{padding:19px}.detailtop{gap:10px}.checkrow .small{font-size:10px}.topright{gap:5px}.companyfacts{gap:12px}.pagehead p{font-size:12px}.split{gap:0}}@media print{body{background:#fff;font-size:11px}.sidebar,.topbar,.demo-banner,.actions,.filters,.tabs,button,#toast{display:none!important}.layout{display:block}.main{display:block}.content{padding:0}.panel,.metric,.modulecard{break-inside:avoid;border:1px solid #ddd;box-shadow:none}.metrics{grid-template-columns:repeat(4,1fr)}.metric.accent{background:white;color:#172b36}.metric.accent small,.metric.accent .label{color:#6b7c85}.printtitle{display:block}.tablewrap{overflow:visible}th,td{padding:8px 6px;font-size:10px}.split{display:block}.modulegrid{grid-template-columns:repeat(2,1fr)}.pagehead{margin-bottom:16px}dialog{display:none}a{color:#172b36}.money{white-space:normal}.reportmatrix{font-size:10px}.metric .value{font-size:20px}}
progress{appearance:none;display:block;border:0;width:100%;height:5px;margin:7px 0 0;border-radius:4px;overflow:hidden;background:#e8edef}progress::-webkit-progress-bar{background:#e8edef;border-radius:4px}progress::-webkit-progress-value{background:var(--accent);border-radius:4px}progress.report::-webkit-progress-value{background:#8ca7bf}progress::-moz-progress-bar{background:var(--accent)}progress.report::-moz-progress-bar{background:#8ca7bf}
.split .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
.split table th,.split table td{padding-left:11px;padding-right:11px}
.split table .company{min-width:150px}
.metric .value{overflow-wrap:anywhere}
.split>*{min-width:0}.tablewrap{max-width:100%}
@media(max-width:1150px){.split{grid-template-columns:minmax(0,1fr)}}

/* WebiVers: plum, violet, periwinkle and warm ivory. */
:root{color-scheme:dark;--bg:#171125;--surface:#241b35;--ink:#f4f0e5;--muted:#b4a9c8;--line:#3b2e50;--accent:#b58cff;--accent-light:#392452;--nav:#20132e;--amber:#f0c780;--red:#ffa6b3;--radius:15px}
body{background:radial-gradient(ellipse at 86% 0%,#39215366,transparent 52%),var(--bg)}
button{background:#30233f;border-color:#49345f}button:hover{background:#44305d;border-color:#8e62be}button.primary{background:linear-gradient(115deg,#7937ce,#9f41bf);border-color:#ad69dd;color:#fff}button.primary:hover{background:linear-gradient(115deg,#8a42e4,#b44ed5)}
a{color:#c5a5ff}input,textarea,select{color:var(--ink)}input::placeholder,textarea::placeholder{color:#a99abb}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #cdafff}
.sidebar{background:linear-gradient(175deg,#2b1640 0%,#1b102b 65%,#25133a);border-right:1px solid #48315e;color:var(--ink)}
.logo,.loginbox .brand{display:flex;align-items:center;gap:10px;color:#f4f0df;padding:0 5px;letter-spacing:-1px}
.brandmark{display:inline-flex;flex-shrink:0}.brandmark svg{width:35px;height:40px;filter:drop-shadow(0 3px 8px #9c49ff44)}
.wordmark{font-size:25px;font-weight:750;white-space:nowrap}.logo .wordmark,.loginbox .wordmark{color:#f4f0df}.logo .wordmark span,.loginbox .wordmark span{color:#f4f0df;font-family:Georgia,serif;font-style:italic;font-weight:500;font-size:29px;letter-spacing:-1.8px}
.sidebar .sub{padding-top:11px;color:#ac95c9;letter-spacing:1.2px}.navlabel{color:#a591bb}.sidebar a{color:#c5b6d7}.sidebar a.active{background:linear-gradient(110deg,#7135b8,#513275);box-shadow:inset 0 0 0 1px #a770ce55;color:#fff}.sidebar a:hover{background:#402550}.sidebar a.active:hover{background:#71409d}
.userbox{border-color:#493358}.avatar{background:linear-gradient(135deg,#8054c0,#51458e)}.userbox small{color:#bca4d1}.sidebar .logout{color:#d2bbec}
.topbar{background:#21172ee8;backdrop-filter:blur(12px)}.topbar .search{background:#2b203b}.dot{background:#b187fc;box-shadow:0 0 9px #a776eb77}.eyebrow{color:#c297ff}
.metric,.panel,.modulecard{background:var(--surface);box-shadow:0 6px 24px #08040d17}.metric .icon{background:#382649;color:#c7a0fc}.metric.accent{background:linear-gradient(130deg,#563280,#39234e);border-color:#7a4d9c}.metric.accent .label,.metric.accent small{color:#dfccef}.metric.accent .icon{background:#77539377;color:#ead8ff}.metric .value{letter-spacing:-1px}
th{background:#2b203b;color:#bcadcf}td{border-bottom-color:#382a49}tbody tr:hover{background:#2d213e}.company .mark{background:#3b2b50;color:#dcc4ff}
.badge{background:#372c48;color:#d1c2e1}.badge.green{background:#183d37;color:#9de0c9}.badge.amber{background:#48351f;color:#f0cc89}.badge.red{background:#492735;color:#ffb1bf}.badge.blue{background:#343254;color:#c1c0ff}
.alert{background:#372b24;color:#e8c690;border-color:#63503a}.alert.info{background:#302441;color:#d0bce9;border-color:#513b6c}.attention{border-color:#382a49}.attention .symbol{background:#463222;color:#efc587}
.filters select,.filters input,.field input,.field select,.field textarea,.lineitem select,.lineitem input{background:#1d152a;border-color:#514061;color:var(--ink)}.field label{color:#d2c2e0}.tabs button.active{color:#d0b0ff;border-color:#bf8ffa}.modulecode{background:#40265c;color:#d5b7ff}.docicon{color:#b995d9}.footerhint{color:#ac9cbd}.demo-banner{background:#342147;border-color:#634181;color:#ddc5f5}
dialog{background:var(--surface);border:1px solid #614377;box-shadow:0 22px 90px #090410aa}dialog::backdrop{background:#0a0517aa;backdrop-filter:blur(5px)}.modalfooter{background:#21172f}.checkrow{border-color:#3b2d4e}.checkrow.done label{color:#c7b3dc}.detailtop .box{background:#2b203b}
.login{background:radial-gradient(ellipse at 65% 22%,#66338c80,transparent 52%),radial-gradient(ellipse at 16% 87%,#47328577,transparent 45%),#1c112b}.loginbox{background:#291b3bea;border:1px solid #62467a;box-shadow:0 30px 100px #0d071b99;width:430px;padding:40px}.loginbox .brand{margin-bottom:36px;padding:0}.loginbox .wordmark{font-size:32px}.loginbox .wordmark span{font-size:38px}.loginbox .brandmark svg{width:46px;height:50px}.loginbox button{padding:12px}
#toast{background:#593282;box-shadow:0 6px 25px #0a041a66}#toast.error{background:#8f364f}
progress,progress::-webkit-progress-bar,.progress{background:#463653}progress::-webkit-progress-value{background:linear-gradient(90deg,#9848e7,#c492ff)}progress.report::-webkit-progress-value{background:#9a9ae5}progress::-moz-progress-bar{background:#b481ed}progress.report::-moz-progress-bar{background:#9a9ae5}
@media(max-width:1150px) and (min-width:761px){.logo{gap:6px;padding:0}.logo .brandmark svg{width:28px}.logo .wordmark{font-size:23px}.logo .wordmark span{font-size:26px}}
@media(max-width:760px){.logo .brandmark svg{width:30px;height:32px}.logo .wordmark{font-size:24px}.sidebar{border-bottom:1px solid #4b3262}.topbar .search{width:150px}.loginbox{padding:28px}}
@media print{:root{color-scheme:light;--ink:#172b36;--muted:#596574;--line:#ddd;--accent:#68428f}body,.metric,.panel,.modulecard,.metric.accent,.detailtop .box{background:#fff!important;color:#172b36;box-shadow:none}.metric.accent .label,.metric.accent small{color:#596574}th{background:#eee;color:#333}td{border-color:#ddd}.badge,.badge.green,.badge.amber,.badge.red,.badge.blue,.alert,.alert.info,.modulecode,.company .mark{background:#f3f1f6;color:#333;border-color:#bbb}.footerhint,.company strong,.checkrow.done label{color:#333}}

/* Reading workspace: light surfaces, distinct modules, purple navigation. */
@media screen {
:root{color-scheme:light;--bg:#f3f2f7;--surface:#fff;--ink:#262135;--muted:#655e74;--line:#ded9e8;--accent:#7139b5;--accent-light:#f0e8fa;--amber:#8b580c;--red:#b12e47}
body{background:var(--bg)}
.sidebar,.login{color-scheme:dark;--ink:#f4f0e5;--muted:#b4a9c8;--line:#3b2e50;--accent:#b58cff;--amber:#f0c780;--red:#ffa6b3;color:var(--ink)}
.main{background:var(--bg)}.topbar{background:#fff;border-color:var(--line);backdrop-filter:none}.topbar .search{background:#f8f6fb}.eyebrow{color:#7746a8}.dot{background:#8650c2;box-shadow:none}
a{color:#7139b5}button{background:#fff;border-color:#d5cce1;color:var(--ink)}button:hover{background:#f2eafa;border-color:#a88ac8}button.primary{color:#fff}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #874cbd}input::placeholder,textarea::placeholder{color:#797084}
.metric,.panel,.modulecard{background:#fff;border-color:#ded8e7;box-shadow:0 3px 12px #32204408}.metric .icon{background:#f0e9f9;color:#7e48b2}.metric.accent{color:#fff;background:linear-gradient(120deg,#683697,#4a286b);border-color:#734898}.metric.accent .label,.metric.accent small{color:#f0e2fc}.metric.accent .icon{background:#ffffff20;color:#fff}.metric .label{font-size:13px}.metric small{font-size:12px}
.panelhead{background:#fff}.panelhead h2{font-size:16px}th{background:#f3eff8;color:#5f506f;font-size:11px}td{border-color:#e7e2ed;font-size:13px}tbody tr:nth-child(even){background:#fcfbfe}tbody tr:hover{background:#f4effa}.company .mark{background:#eee6f8;color:#7545a2}.company strong{font-size:13px}.company small{font-size:11px;line-height:1.5}
.badge{background:#eeeaf3;color:#554961;font-size:11px;padding:5px 9px;border:1px solid #dfd8e8}.badge.green{background:#e8f6ee;color:#176044;border-color:#bedfcd}.badge.amber{background:#fff4de;color:#855209;border-color:#ead29b}.badge.red{background:#ffedf0;color:#a52943;border-color:#ecc3cc}.badge.blue{background:#edf0ff;color:#424f98;border-color:#d0d7ef}
.alert{background:#fff7e8;color:#795718;border-color:#ead7ac}.alert.info{background:#f2ecfa;color:#65467d;border-color:#dcd0eb}.attention{border-color:#e6e0ed}.attention .symbol{background:#fff0d3;color:#95610d}.attention strong{font-size:13px}.attention p{font-size:12px}
.filters select,.filters input,.field input,.field select,.field textarea,.lineitem select,.lineitem input{background:#fff;border-color:#cfc6db;color:var(--ink)}.field label{color:#554663;font-size:12px}.tabs button.active{color:#7139b5;border-color:#8c51c1}.docicon{color:#8654ae}.footerhint{color:#70667d}.demo-banner{background:#eee6f8;border-color:#d8c6eb;color:#5f3d7d}
.modulegrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.modulecard{border:1px solid #d9cfe5;border-top:4px solid #9361c5;padding:22px;gap:18px;box-shadow:0 4px 15px #3521460b}.modulecard h3{font-size:17px;line-height:1.5;color:#292036}.modulecard p{font-size:13px;line-height:1.65;color:#62546f}.modulecard .footer{margin:0 -22px -22px;padding:15px 22px;background:#f8f5fc;border-radius:0 0 14px 14px;margin-top:auto}.modulecard .footer button{color:#7139b5;background:#fff;border-color:#cbb6df}.modulecode{font-size:12px;background:#eee3fa;color:#6c329f;border:1px solid #dac7ed}.progtext{font-size:12px;color:#5f526d}.chip{font-size:11px;background:#f8f5fc;color:#635171}
progress,progress::-webkit-progress-bar,.progress{background:#e6dfed;height:7px}progress::-webkit-progress-value{background:linear-gradient(90deg,#8c50c2,#a678d0)}progress.report::-webkit-progress-value{background:#6e79b8}
dialog{background:#fff;border-color:#d7c9e3;box-shadow:0 22px 90px #21102e55}.modalhead{background:#f8f5fc}.modalfooter{background:#f8f5fc}.modalbody{background:#fff}.detailtop .box{background:#f8f5fc;border-color:#dfd5e9}.checklist{display:grid;gap:9px}.checkrow,.checkrow:last-child{background:#fff;border:1px solid #e0d7e9;border-radius:9px;padding:14px}.checkrow .checktext label{font-size:14px;line-height:1.7}.checkrow .checktext small{font-size:11px;color:#72647f}.checkrow input{width:19px;height:19px}.checkrow.done{background:#f0f8f3;border-color:#c5dfd0}.checkrow.done label{color:#285e45}.checksection{margin-top:25px;margin-bottom:12px}.checksection h3{font-size:15px}
.loginbox .field input{background:#1d152a;border-color:#655077;color:#f4f0e5}.loginbox .field label{color:#d2c2e0}.loginbox input::placeholder{color:#ad9dbf}.loginbox .footerhint{color:#b4a9c8}
@media(max-width:1150px){.modulegrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.modulegrid{grid-template-columns:minmax(0,1fr);gap:16px}.modulecard{padding:19px}.modulecard .footer{margin-left:-19px;margin-right:-19px;margin-bottom:-19px;padding:14px 19px}.checkrow{padding:11px;gap:9px}.checkrow .checktext label{font-size:13px}.metric .label{font-size:12px}}
}
.loginbox .alert.info{font-size:12px;overflow-wrap:anywhere;background:#382547;border-color:#684582;color:#e6d1f7}

/* Document import */
.dropzone{display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center;min-height:210px;padding:28px;border:2px dashed #8854d0;border-radius:18px;background:#faf7ff;color:#282139;text-align:center;cursor:pointer}.dropzone strong{font-size:24px}.dropzone span{font-size:15px;color:#645b75}.dropzone input{max-width:100%}.dropzone.dragging{background:#eee3ff;border-style:solid}.import-progress{padding:45px 20px;text-align:center;font-size:18px;background:#faf7ff;border-radius:16px;color:#573484}.import-batch{font-weight:700;margin-bottom:16px;overflow-wrap:anywhere}.extracted-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;font:13px/1.6 sans-serif;background:#f5f4f8;padding:16px;color:#302b3c}dialog .formgrid .alert{margin-bottom:12px}dialog details summary{cursor:pointer;padding:10px 0;color:#6538a5}
.expense-filters{align-items:flex-end}.expense-filter{display:flex;flex-direction:column;gap:6px;min-width:180px;flex:1}.expense-filter span{font-size:12px;font-weight:650;color:#61546f}.expense-filter input,.expense-filter select{width:100%;border:1px solid #d5c7e3;background:#fff;color:#2b2438;border-radius:9px;padding:10px 12px;min-height:40px}.expense-filter.grow{flex:2}.field[hidden]{display:none}.document-search{display:flex;gap:10px;align-items:center;flex:1 1 330px;border:1px solid #d5c7e3;border-radius:9px;background:#fff;padding:10px 12px;color:#8050b1}.document-search input{border:0;outline:0;width:100%;min-width:0;color:#2b2438;background:transparent}.document-search:focus-within{outline:2px solid #9b68cf;outline-offset:2px}.sidebar nav{overflow-y:auto;min-height:0}@media(max-width:600px){.expense-filter{min-width:0;flex-basis:100%}.document-search{flex-basis:100%}.modalfooter{flex-wrap:wrap}}
/* Evidence remains readable beside each requirement. */
.check-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;max-width:230px;flex-shrink:0}.checkrow{align-items:flex-start}.checkrow .checktext{min-width:0;flex:1}.evidence-drop{display:flex;flex-direction:column;gap:14px;padding:24px;border:2px dashed #b7a3dd;border-radius:14px;background:#f8f5ff;cursor:pointer}.evidence-drop.dragging{background:#ede3ff;border-color:#773ee4}.evidence-drop input{max-width:100%}.evidence-file{display:flex;align-items:center;justify-content:space-between;gap:12px}.evidence-file span{overflow-wrap:anywhere}#evidenceSelected{padding:10px 0;font-size:13px;overflow-wrap:anywhere}.checktext label{line-height:1.55}.checklist .checkrow{padding:16px 12px;border-bottom:1px solid #e6e0f0}.checklist .checkrow:nth-child(even){background:#faf9fd}.checklist .checkrow.done{background:#f2fbf5}@media(max-width:650px){.check-actions{max-width:100%;grid-column:2;justify-content:flex-start}.checkrow{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px}.check-actions button{font-size:11px;padding:6px 8px}}
.company-tabs{display:flex;gap:12px;margin:0 0 24px;flex-wrap:wrap}.company-tabs button{font-size:16px;padding:16px 22px;border:1px solid #d5c7e9;border-radius:12px}.company-tabs button.active{background:#7430b5;color:#fff}.net-amount{display:block;font-weight:700}.net-amount small{font-size:11px;font-weight:400}.gross-amount{display:block!important;font-size:12px!important;font-weight:400!important;line-height:1.5;margin-top:5px;opacity:.85}.metric .value .net-amount{font-size:25px}.actions .danger{color:#a22132;border-color:#e9bbc3;background:#fff6f7}@media(max-width:650px){.company-tabs button{flex:1;padding:12px;font-size:13px}}
@media(min-width:1100px){.expense-metrics{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}}

.file-drop{display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px;border:2px dashed #a98bcf;border-radius:14px;background:#faf7ff;color:#30263d;text-align:center;min-width:0;transition:background .15s,border-color .15s}.file-drop.dragging{background:#ece1ff;border-color:#743db1;border-style:solid}.file-drop strong{font-size:17px}.file-drop>span:not(.file-drop-icon){font-size:15px;color:#655471}.file-drop-icon svg{width:30px;height:30px;color:#854cbd}.file-drop-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.file-drop-actions button{min-height:44px}.file-drop .file-drop-input{position:absolute;width:1px;height:1px;padding:0;border:0;opacity:0;overflow:hidden;pointer-events:none}.file-drop small{line-height:1.6;font-size:12px}.file-drop-selected{width:100%;text-align:left;overflow-wrap:anywhere}.file-drop-selected>div{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid #e4dbee}.file-drop-selected b{font-size:13px;min-width:0}.file-drop-selected small{white-space:nowrap}.file-drop-error{width:100%;padding:10px;border-radius:8px;background:#fff0ee;color:#a33329;font-size:13px;text-align:left}.file-drop [hidden]{display:none!important}@media(max-width:650px){.file-drop{padding:18px 12px;gap:10px}.file-drop strong{font-size:15px}.file-drop-selected>div{flex-wrap:wrap;gap:4px}}

/* Financial amounts: consistent hierarchy and transfer direction. */
td .net-amount{font-size:16px;line-height:1.5}td .docmeta .net-amount{font-size:15px}.transfer-positive .net-amount{color:#167548}.transfer-negative .net-amount{color:#a22b45}.obligation-item{margin:8px 0;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.obligation-item .docmeta{flex-basis:100%}.metric .value .net-amount{overflow-wrap:anywhere}

.workspace-tabs{display:grid;gap:6px;margin:16px 0}.workspace-tabs a{padding:10px;color:#e9dcff;border:1px solid #76539c;border-radius:8px;text-decoration:none}.workspace-tabs a.active{background:#7736b4;color:white}.business-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px}.business-task{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #eee}.business-text{white-space:pre-wrap}.business-task small{display:block}
/* Personal sales space and responsive analytics */
.sales-dashboard{background:linear-gradient(140deg,#fff 35%,#f4edff);border:1px solid #dbc9ee;border-radius:20px;padding:24px;margin-bottom:24px;box-shadow:0 9px 32px #4c20660b}.sales-dashboard-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.sales-dashboard-head h2{margin:8px 0 6px;font-size:28px}.sales-dashboard-head p,.sales-trend p{font-size:12px;color:#766481}.month-control{display:flex;align-items:center;gap:8px;flex-shrink:0}.month-control input{border:1px solid #d5c1e5;border-radius:9px;padding:10px;background:white;min-width:0;color:#3b244d}.sales-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.sales-analysis-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:28px;align-items:center}.commission-orbit{display:flex;flex-direction:column;align-items:center;gap:20px;min-width:0}.commission-ring{position:relative;width:240px;height:240px;border-radius:50%;background:conic-gradient(#45b79a 0deg var(--paid-angle),#9655df var(--paid-angle) 360deg);display:grid;place-items:center;box-shadow:0 0 0 10px #fff9,0 0 0 11px #e4d6f3,0 18px 35px #8146b529}.orbit-core{width:192px;height:192px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff,#f1e6ff);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:14px;gap:10px;min-width:0}.orbit-core small,.orbit-core span{color:#77528b;font-size:12px}.orbit-core strong{font-size:26px;overflow-wrap:anywhere}.orbit-satellite{position:absolute;inset:-13px;border:1px dashed #a27acb88;border-radius:50%;animation:orbit-spin 32s linear infinite;pointer-events:none}.orbit-satellite:before{content:'';position:absolute;width:9px;height:9px;border-radius:50%;background:#9c57e7;left:50%;top:-5px;box-shadow:0 0 15px #9c57e777}@keyframes orbit-spin{to{transform:rotate(360deg)}}.commission-legend{display:flex;flex-wrap:wrap;gap:7px;justify-content:center}.commission-legend button{font-size:11px;display:flex;align-items:center;gap:6px;min-height:36px}.commission-legend .active{border-color:#9958d4;background:#f0e5ff}.commission-legend i{height:8px;width:8px;border-radius:50%}.legend-paid{background:#45b79a}.legend-unpaid{background:#9655df}.sales-trend{min-width:0}.sales-trend h3{font-size:17px}.sales-bars{height:185px;display:flex;align-items:stretch;gap:8px;padding:12px 0}.sales-bar{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:end;border:0;background:transparent;padding:0 3px;gap:8px;border-radius:8px;color:#725583}.sales-bar span{font-size:10px;overflow-wrap:anywhere;line-height:1.3}.sales-bar i{display:block;width:75%;max-width:36px;height:var(--bar-height);max-height:120px;min-height:3px;border-radius:8px 8px 3px 3px;background:linear-gradient(#bd91f2,#8842c8);transition:height .3s}.sales-bar.selected{background:#eadef7}.sales-bar b{font-size:11px}.sales-facts{display:flex;flex-wrap:wrap;gap:16px;margin-top:18px;font-size:12px;color:#786487}.sales-facts b{display:block;color:#482b5b;font-size:17px;margin-bottom:3px}.commission-summary{display:flex;flex-wrap:wrap;gap:25px;font-size:13px}.commission-summary b{display:block;font-size:22px;margin-top:8px;color:#763eaa}
.layout,.main,.content,.topbar,.topright,.pagehead,.pagehead>div,.metrics,.metric,.panel,.panelbody,.formgrid,.filters,.workspace-tabs{min-width:0}.metric .value{overflow-wrap:anywhere}.business-grid .panelhead h2,.business-task span,.panelbody p{overflow-wrap:anywhere}.company-tabs{overflow-x:auto;max-width:100%;flex-wrap:wrap}.commission-ring{max-width:100%}
@media(max-width:1100px){.sales-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-analysis-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:760px){html,body{max-width:100%;overflow-x:clip}.main{width:100%;max-width:100%}.topbar{height:auto;min-height:58px;flex-wrap:wrap;gap:10px;padding:12px 16px}.breadcrumb{flex:1 1 120px;min-width:0;overflow-wrap:anywhere}.topright{flex:0 1 150px;max-width:100%;min-width:0}.topbar .search{max-width:100%;width:150px}.topbar .search input{width:100%;min-width:0}.pagehead{flex-wrap:wrap}.pagehead>div{flex:1 1 180px}.pagehead .actions{flex:0 1 auto;max-width:100%}.filters{flex-wrap:wrap}.filters select{min-width:0;max-width:100%}.sales-dashboard{padding:16px;border-radius:15px}.sales-dashboard-head{align-items:flex-start;flex-wrap:wrap;gap:12px}.sales-dashboard-head h2{font-size:25px}.month-control{width:100%;justify-content:space-between}.month-control input{flex:1;max-width:220px}.sales-analysis-grid{grid-template-columns:minmax(0,1fr);gap:20px}.sales-metrics .metric{padding:12px}.sales-metrics .metric .value{font-size:22px}.sales-metrics .metric .label{font-size:11px;gap:4px}.sales-metrics .metric .icon{display:none}.commission-ring{width:220px;height:220px}.orbit-core{width:174px;height:174px}.sales-bars{gap:4px}.sales-bar span{font-size:9px}.sales-facts{gap:12px}.sidebar nav{width:100%;max-width:100%;overflow-x:auto}.workspace-tabs a{white-space:normal}.panelhead{flex-wrap:wrap;gap:10px}.tablewrap{max-width:100%;overflow-x:auto}.modalhead,.modalbody,.modalfooter{min-width:0}.modalhead h2{overflow-wrap:anywhere}dialog{max-width:calc(100vw - 20px)}.commission-summary{gap:18px}.file-drop{max-width:100%}}
@media(prefers-reduced-motion:reduce){.orbit-satellite{animation:none}.sales-bar i{transition:none}}

.commission-ring{background:transparent}.ring-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.ring-svg circle{fill:none;stroke-width:20}.ring-track{stroke:#9655df}.ring-paid{stroke:#45b79a;stroke-linecap:butt}.orbit-core{position:relative}.sales-bar svg{width:75%;max-width:36px;height:120px;flex-shrink:0}.sales-bar rect{fill:#9655df}.sales-bar:hover rect{fill:#6f36b1}
/* Sales CRM workflow */
.crm-view-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 22px}.crm-view-tabs button{display:flex;align-items:center;gap:9px;border-radius:12px;padding:12px 18px;background:white}.crm-view-tabs svg,.crm-toggle svg{width:18px;height:18px}.crm-view-tabs button.active,.crm-toggle button.active{background:#6325a5;color:white;border-color:#6325a5;box-shadow:0 5px 18px #6325a51c}.crm-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:24px 0 18px}.crm-toolbar h2{font-size:20px;margin:0 0 8px}.crm-toolbar p{margin:0;color:#766b87;font-size:13px}.crm-toggle{display:flex;gap:6px}.crm-toggle button{display:flex;align-items:center;gap:8px}.crm-board{display:flex;gap:16px;overflow-x:auto;max-width:100%;padding:4px 3px 20px;align-items:flex-start;scroll-snap-type:x proximity;overscroll-behavior-x:contain}.crm-column{background:#eeeaf5;border:1px solid #e3daee;border-radius:17px;flex:0 0 278px;min-height:290px;scroll-snap-align:start;transition:background .2s,border-color .2s}.crm-column>header{padding:17px;border-top:4px solid #9476d0;border-radius:17px 17px 0 0}.crm-column>header>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.crm-column h3{font-size:14px;margin:0}.crm-column header span{background:#fff;border-radius:8px;padding:4px 9px;font-weight:700;font-size:12px}.crm-column header small{display:block;margin-top:10px;color:#746781;font-size:11px}.stage-won>header,.stage-completed>header{border-color:#37b898}.stage-lost>header{border-color:#dc8997}.stage-proposal>header{border-color:#5d97dd}.stage-negotiation>header{border-color:#eab351}.crm-column-cards{padding:0 10px 12px;display:grid;gap:12px}.crm-card{padding:16px;background:white;border:1px solid #e5dbee;border-radius:12px;box-shadow:0 3px 9px #31204306;transition:box-shadow .2s,transform .2s;min-width:0;animation:crm-enter .28s ease-out}.crm-card[draggable=true]{cursor:grab}.crm-card:hover{box-shadow:0 9px 25px #4d26771a;transform:translateY(-2px)}.crm-card.dragging{opacity:.4}.crm-column.drag-over{background:#e4d5fa;border-color:#8b3bea}.crm-card-top{display:flex;align-items:center;gap:9px}.crm-card-top>div{flex:1;min-width:0}.crm-card-top b{font-size:13px;overflow-wrap:anywhere}.crm-card-top small{display:block;font-size:11px;color:#897c96;margin-top:5px;overflow-wrap:anywhere}.crm-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;height:34px;border-radius:11px;color:#7441b5;background:#eee5fa;font-size:12px;font-weight:700}.crm-service{font-size:12px;color:#736382;margin:16px 0 9px}.crm-tags{display:flex;gap:5px;flex-wrap:wrap}.crm-tag{font-size:10px;border-radius:5px;padding:4px 7px;background:#f3edf9;color:#795a99}.crm-tag.hot{background:#fff0e7;color:#b76829}.crm-card-price{margin:14px 0}.crm-card-price .net-amount{font-size:17px}.crm-card-contact{font-size:12px;color:#776a85;display:flex;flex-wrap:wrap;gap:8px;overflow-wrap:anywhere}.crm-card-contact a{color:#69359c}.crm-followup{display:flex;align-items:center;gap:6px;font-size:11px;margin-top:14px;color:#756384}.crm-followup svg{width:14px;height:14px}.overdue{color:#b54656!important}.crm-card-footer{border-top:1px solid #f0ebf5;margin-top:14px;padding-top:12px;display:grid;gap:10px}.crm-card-footer small{font-size:10px;color:#887a95}.crm-card-footer select{width:100%;padding:7px;border-radius:7px;font-size:11px}.crm-drop-empty{padding:38px 12px;border:1px dashed #d1c4df;border-radius:12px;font-size:12px;color:#9b8bac;text-align:center}.crm-task-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px 0}.crm-task-grid>.panel{min-width:0;margin:0}.crm-task-row,.crm-activity-row{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #f0ebf5}.crm-task-row>div,.crm-activity-row>div{flex:1;min-width:0}.crm-task-row b,.crm-activity-row b{font-size:13px;overflow-wrap:anywhere}.crm-task-row small,.crm-activity-row small{display:block;margin-top:6px;font-size:11px;color:#897a96}.crm-task-row input{width:18px;height:18px;accent-color:#8246c5}.crm-task-row>svg,.crm-activity-row>svg{width:18px;height:18px;flex:0 0 18px;color:#996cc7}.crm-activity-row{align-items:flex-start}.crm-activity-row p{font-size:12px;color:#776980;margin:7px 0;overflow-wrap:anywhere}.crm-welcome{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 30px;border-radius:20px;border:1px solid #ded0f1;background:linear-gradient(115deg,#fff,#f0e7fb);margin:24px 0}.crm-welcome h2{margin:10px 0 12px;font-size:24px;line-height:1.3}.crm-welcome p{font-size:13px;color:#7c678f;margin:0}.crm-welcome .primary{flex-shrink:0}@keyframes crm-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.crm-task-grid{grid-template-columns:1fr}.crm-welcome{padding:22px;align-items:flex-start;flex-direction:column}.crm-welcome h2{font-size:21px}}
@media(max-width:600px){.crm-view-tabs{gap:6px}.crm-view-tabs button{font-size:12px;padding:10px 12px}.crm-column{flex-basis:260px}.crm-toolbar{gap:12px}.crm-toolbar h2{font-size:18px}.crm-task-row,.crm-activity-row{padding:14px 12px;gap:8px}.crm-task-row .small{padding:7px;font-size:11px}.crm-welcome{padding:20px}.crm-filters select{max-width:100%}}
@media(prefers-reduced-motion:reduce){.crm-card{animation:none}.crm-card:hover{transform:none}}
.crm-board{cursor:grab}.crm-board.panning{cursor:grabbing;user-select:none}.call-bars{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:6px;max-width:100%;margin-top:18px}.call-bars button{min-width:0;padding:8px 2px;border:0;background:transparent;border-radius:9px;display:grid;gap:6px;justify-items:center}.call-bars button.active{background:#eee1fb;color:#7035a7}.call-bars svg{height:70px;width:100%;max-width:30px;fill:#9a57dd}.call-bars small{font-size:10px}.call-focus{display:flex;gap:20px;flex-wrap:wrap;align-items:center;justify-content:space-between}.call-focus>div{min-width:0;overflow-wrap:anywhere}.call-focus .actions{display:flex;gap:8px;flex-wrap:wrap}.call-nav-dot{display:inline-block;margin-left:auto;width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#ffbd63;box-shadow:0 0 10px #ffbd6377}#callImportPreview{max-width:100%;min-width:0}#callImportPreview .tablewrap{margin-top:20px}#callImportPreview select{width:100%;min-width:0}@media(max-width:600px){.call-bars{gap:2px}.call-bars b{font-size:11px}.call-focus .actions{width:100%}.call-bars button{padding:8px 0}}
#callDay{border:1px solid #d6c4e8;background:white;color:#4c3365;border-radius:9px;padding:10px 13px;min-width:0;max-width:100%}
/* Execution countdown: independent of technical completion percentage. */
.module-deadline{--deadline-color:#657082;--deadline-soft:#f3f4f7;display:flex;align-items:center;gap:14px;padding:15px;border:1px solid #dfe3eb;border-left:4px solid var(--deadline-color);border-radius:12px;background:var(--deadline-soft);min-width:0;text-align:left}.deadline-green{--deadline-color:#137345;--deadline-soft:#effaf3;border-color:#b9dfc7}.deadline-amber{--deadline-color:#946000;--deadline-soft:#fff8e3;border-color:#efdb9d}.deadline-red{--deadline-color:#b32d40;--deadline-soft:#fff0f2;border-color:#edbdc5}.deadline-dial{position:relative;width:64px;height:64px;flex:0 0 64px;color:var(--deadline-color)}.deadline-dial>svg:first-child{width:64px;height:64px;transform:rotate(-90deg);fill:none;stroke-width:5}.deadline-track{stroke:currentColor;opacity:.13}.deadline-ring{stroke:currentColor;stroke-linecap:round}.deadline-dial>svg:last-child{position:absolute;width:27px;height:27px;left:19px;top:19px}.deadline-copy{min-width:0;flex:1}.deadline-copy small{display:block;font-size:11px;line-height:1.55;color:#526070}.deadline-copy>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px;color:var(--deadline-color)}.deadline-copy b{font-size:28px;line-height:1.25;font-variant-numeric:tabular-nums}.deadline-copy span{font-size:13px;font-weight:650}.deadline-source{overflow-wrap:anywhere;margin-top:3px}.modulecard>.module-deadline{margin:0 18px 4px}.modulecard .footer button svg{width:14px;height:14px}.modalbody>.module-deadline{margin-bottom:18px}.field>.module-deadline{margin-bottom:12px}@media(max-width:480px){.module-deadline{gap:10px;padding:12px}.modulecard>.module-deadline{margin-left:12px;margin-right:12px}.deadline-copy b{font-size:26px}.deadline-dial{width:52px;height:52px;flex-basis:52px}.deadline-dial>svg:first-child{width:52px;height:52px}.deadline-dial>svg:last-child{width:23px;height:23px;left:15px;top:15px}}
/* Direct access to project systems; normal links open a separate tab. */
.platform-open{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 12px;border:1px solid #b998dd;border-radius:9px;background:#f6efff;color:#652b9c;font-size:13px;font-weight:650;line-height:1.35;text-decoration:none;max-width:100%;overflow-wrap:anywhere;transition:background .15s,border-color .15s}.platform-open:hover{background:#eadcf9;border-color:#8147b8;color:#482069}.platform-open:focus-visible{outline:3px solid #a378d0;outline-offset:3px}.platform-open svg{width:17px;height:17px;flex:0 0 17px}.platform-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.platform-links:empty{display:none}.modulecard .footer{flex-wrap:wrap;gap:8px}.modulecard .footer>.platform-open{order:-1;flex-basis:100%;background:#7131a8;border-color:#7131a8;color:white}.modulecard .footer>.platform-open:hover{background:#572180}.module-platform-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.module-platform-actions:empty{display:none}.platform-link-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto;align-items:end;gap:10px;padding:14px 0;border-bottom:1px solid #e5daef;margin-bottom:12px}.platform-link-row label{display:grid;gap:6px;min-width:0;font-size:12px;color:#564164}.platform-link-row input{width:100%;min-width:0;border:1px solid #cfc0df;border-radius:8px;background:#fff;padding:10px 12px;color:#30233c;font:inherit;min-height:42px}.platform-link-row button{min-height:42px}.panelbody>.platform-links{margin-top:0}@media(max-width:650px){.platform-link-row{grid-template-columns:minmax(0,1fr)}.platform-link-row button{justify-self:start}.platform-links .platform-open{min-height:42px}.modulecard .footer>.platform-open{min-height:42px}}

/* Document package review: firm context, allocations and visible execution dates. */
.module-tools{display:flex;justify-content:flex-end;margin:0 0 14px}.import-dialog{width:850px;max-width:calc(100vw - 20px)}.import-guide{background:#f8f4ff;border:1px solid #e4d7f4;border-radius:12px;padding:16px;margin-top:16px;color:#59456c;line-height:1.6}.import-guide p{margin:8px 0}.import-guide small{display:block}.import-section{border-top:1px solid #e4dbea;padding-top:18px;margin-top:6px}.import-section h3{margin:0 0 8px;font-size:16px}.import-module-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;align-items:end;gap:10px;border:1px solid #e4dbea;padding:12px;border-radius:10px;margin:10px 0;background:#fbf9fe}.import-module-row .field{min-width:0}.import-module-row .import-existing{grid-column:1/3}.import-module-row>button{grid-column:3;grid-row:1}.import-module-row select,.import-module-row input{width:100%;min-width:0;max-width:100%}#importAllocation{padding:12px 0;color:#256641}#importAllocation.allocation-error{color:#9b3d2e}.import-deadline-preview{background:#f2ecfb;border:1px solid #d9c8ef;border-radius:10px;padding:14px;color:#5d3684;line-height:1.6}.import-result{text-align:center;padding:30px 14px}.import-result>b{display:block;font-size:52px;color:#7e3ac5}.import-result>span{font-size:18px}.import-result p{color:#6c6178}.import-dialog .modalfooter{flex-wrap:wrap}.import-dialog .checklabel{line-height:1.5}.import-dialog .field select{max-width:100%}@media(max-width:540px){.import-module-row{grid-template-columns:minmax(0,1fr) auto}.import-module-row .field{grid-column:1}.import-module-row .import-existing{grid-column:1/-1}.import-module-row>button{grid-column:2}.import-dialog .formgrid{grid-template-columns:minmax(0,1fr)}.import-dialog .modalfooter button{flex:1 1 auto}.import-guide{padding:12px}}
/* Keep the calculated deadline beside its inputs, in every contract form. */
.schedule-heading{padding-top:12px;border-top:1px solid #e5daef}.schedule-heading h3{margin:0 0 5px;font-size:17px;color:#4e286d}.schedule-heading p{margin:0;color:#74637f;font-size:12px}.schedule-result{display:flex;flex-direction:column;gap:7px;padding:14px 16px;border-radius:10px;border:1px solid #cbb5e2;background:#f5effc;color:#512d73;line-height:1.5}.schedule-result strong{font-size:17px}.schedule-result span{font-size:12px}input[aria-readonly="true"]{background:#f1f8f4!important;border-color:#acd0b7!important;color:#24573a!important;font-weight:700;font-size:18px;cursor:default}.schedule-source p{white-space:pre-wrap;line-height:1.6;font-size:12px;color:#655473}.single-contract-import .import-existing{display:none}#importExistingContractField small{display:block;line-height:1.5;color:#756783;margin-top:6px}#importExistingContractField[hidden]{display:none}@media(max-width:480px){.schedule-result strong{font-size:15px}input[aria-readonly="true"]{font-size:16px}}
/* Separate places for offers, contracts and invoices, with one shared reader. */
.document-places{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0 24px}.document-place{min-width:0;border:1px solid #ddcfea;border-radius:13px;background:#fff;padding:17px 18px}.document-place>div{display:flex;align-items:center;gap:10px}.document-place>div>span{display:flex;padding:7px;border-radius:9px;background:#f0e5fb;color:#803cb6}.document-place svg{width:20px;height:20px}.document-place h3{font-size:16px;margin:0;flex:1}.document-place b{font-size:22px;color:#683895}.document-place p{font-size:12px;line-height:1.6;color:#746581;margin:12px 0 16px}.document-place footer{display:flex;flex-wrap:wrap;gap:8px}.document-place footer button{flex:1}.invoice-payment-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px;border:1px solid #b6d8c3;border-radius:10px;background:#f3faf6}.invoice-payment-fields[hidden]{display:none}.invoice-payment-fields .field{min-width:0}#importContractContext{border-color:#d4c2e7;background:#f8f4fc}@media(max-width:760px){.document-places{grid-template-columns:minmax(0,1fr)}.document-place p{margin:8px 0 12px}}@media(max-width:540px){.invoice-payment-fields{grid-template-columns:minmax(0,1fr)}}
/* Reversible document and financial record cleanup. */
.linked-delete-records{padding:16px;border:1px solid #e6bbc4;border-radius:11px;background:#fff8f9}.linked-delete-records h3,.linked-financial-data h3{margin:0 0 10px;font-size:15px}.linked-delete-records ul{padding-left:20px;margin:12px 0 18px}.linked-delete-records li{margin:10px 0;line-height:1.5;font-size:13px;overflow-wrap:anywhere}.linked-delete-records li .net-amount{font-size:15px}.linked-delete-records small{display:block;margin-top:10px;line-height:1.5;color:#85636c}.linked-financial-data{padding:15px;background:#f8f3fe;border:1px solid #dfd0ee;border-radius:10px}.linked-financial-data p{font-size:12px;line-height:1.5}.linked-financial-data button{margin:4px;max-width:100%;white-space:normal;text-align:left}.record-trash-list td:first-child{overflow-wrap:anywhere;max-width:420px}.record-trash-list .docmeta{white-space:normal}
