:root{color-scheme:dark;--bg:#071425;--panel:#0f2138;--soft:#152d48;--line:#29415c;--text:#edf5ff;--muted:#a3b9cf;--blue:#4aabff;--green:#61dfb1;--amber:#ffd089;--red:#ff8595;font-family:Segoe UI,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top right,#14335255,transparent 60%),var(--bg);color:var(--text);font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a,button,input,select,textarea{outline-offset:3px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--blue)}a{color:var(--blue);text-decoration:none}h1{font-size:30px;line-height:1.2;letter-spacing:-.6px;margin:5px 0 9px}h2{font-size:18px;margin:0 0 12px;display:flex;align-items:center;gap:10px}h3{font-size:15px;margin:0 0 8px}p{margin:8px 0 16px}.muted{color:var(--muted)}.small,small{font-size:12px}.topbar{height:93px;justify-content:space-between;padding:16px 32px;background:linear-gradient(115deg,#081528,#102b46);border-bottom:1px solid #315275;box-shadow:0 3px 20px #0002}.brand,.topbar{display:flex;align-items:center}.brand{gap:23px}.brand img{width:174px;height:60px;object-fit:contain}.branddivider{height:38px;width:1px;background:#35516a}.brand strong{font-size:13px;letter-spacing:1.7px}.brand small{display:block;color:var(--muted);margin-top:4px}.private{display:flex;gap:9px;align-items:center;font-size:12px;color:#b1c8db}.onlineDot{display:inline-block;width:6px;height:6px;background:#57d5aa;border-radius:50%;margin-right:5px}.avatar{display:grid;place-items:center;width:34px;height:34px;border:1px solid #416788;border-radius:50%;margin-left:16px;color:#c6e5ff;background:#1c3a57;font-weight:650}.shell{display:grid;grid-template-columns:235px minmax(0,1fr);max-width:1600px;margin:auto;min-height:calc(100vh - 93px)}aside{background:linear-gradient(#0a1b30,#09172a);border-right:1px solid var(--line);padding:28px 15px;display:flex;flex-direction:column}.navlabel{font-size:9px;color:#7d99b2;letter-spacing:1.8px;margin:0 13px 19px}nav button{display:flex;align-items:center;gap:12px;width:100%;border:1px solid transparent;color:var(--muted);background:transparent;text-align:left;padding:13px 14px;border-radius:9px;margin-bottom:6px;font-size:13px}nav button:hover{background:#142e49}nav button.active{background:linear-gradient(100deg,#19466a,#14334f);border-color:#26587f;color:white;box-shadow:inset 3px 0 #4aabff}nav button b{font-size:11px;margin-left:auto;background:#193c5e;border-radius:4px;padding:1px 6px;color:var(--amber)}.sidebarfoot{margin-top:auto;padding:50px 13px 15px;color:#6d91ae;font-size:11px}.sidebarfoot small,.sidebarfoot strong{display:block;margin-top:6px}.sidebarfoot strong{color:#aac2d4}.tricolore{display:flex;width:75px;height:3px;margin-top:17px;border-radius:3px;overflow:hidden}.tricolore i{flex:1;background:#1678c9}.tricolore i:nth-child(2){background:#e3edf5}.tricolore i:nth-child(3){background:#c72a3f}main{padding:29px 34px;min-width:0}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.8px;color:#65b6f2}.pagetitle{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:9px 0 5px}.pagetitle p{font-size:13px}.actions{display:flex;gap:9px;flex-wrap:wrap}.actions,.btn{align-items:center}.btn{display:inline-flex;justify-content:center;gap:8px;min-height:42px;padding:10px 15px;border-radius:8px;border:1px solid #385977;background:linear-gradient(#1b3a55,#143049);color:var(--text);font-weight:600;font-size:12px;text-decoration:none}.btn:hover{filter:brightness(1.13)}.btn.primary{background:linear-gradient(#178bdd,#0862ae);border-color:#329aeb;box-shadow:0 3px 12px #0002}.btn.green{background:#104735;border-color:#2d7356;color:#b9f4d8}.syncbar{justify-content:space-between;color:#7f9eb8;margin-bottom:24px}.syncbar,.syncbar button{display:flex;align-items:center;font-size:11px}.syncbar button{gap:6px;border:0;background:transparent;color:#94bad7}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}.stat{text-align:left;background:linear-gradient(120deg,#112d48,#0e233b);border:1px solid #294c6b;border-radius:12px;padding:18px;color:white;box-shadow:0 4px 18px #0001}.stat>div{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:#abc7dd}.stat svg{color:#54b1f5}.stat strong{display:block;font-size:35px;font-weight:650;margin:8px 0 5px;line-height:1.2}.stat small{color:#7e9fb9;font-size:10px;display:flex;align-items:center;gap:4px}.stat:nth-child(3){background:linear-gradient(120deg,#2b2c3a,#17273c)}.stat:nth-child(3) svg{color:var(--amber)}.card{background:linear-gradient(120deg,#10263f,#0e2036);border:1px solid var(--line);border-radius:12px;padding:22px;margin-bottom:20px;min-width:0;box-shadow:0 5px 18px #0001}.dashboardgrid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:20px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.sectionhead h2,.sectionhead h3{margin-bottom:0}.sectionhead .eyebrow{display:block;margin-bottom:6px}.back,.link{display:inline-flex;align-items:center;gap:4px;background:none;border:0;padding:0;color:#6fbfff;font-size:11px}.back{margin-bottom:12px}.recordrow{display:flex;align-items:center;gap:13px;width:100%;text-align:left;border:0;border-bottom:1px solid #29435c;background:none;color:var(--text);padding:17px 0}.recordrow:last-child{border-bottom:0}.recordrow:hover{background:#1b3e562f}.recordrow>.grow{min-width:0;flex:1}.recordrow small,.recordrow span span,.recordrow strong{display:block}.recordrow strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}.recordrow span span{font-size:12px;color:#9bb8cd;margin-top:4px}.recordrow small{font-size:11px;color:#7a9ab4;margin-top:3px}.recordicon{display:grid!important;place-items:center;width:43px;height:43px;border:1px solid #2c5270;border-radius:10px;background:#153752;color:#57b5f9;flex:none}.recordicon.late{color:#ff8595;background:#3b2637;border-color:#63384f}.recordicon.soon{color:#ffd089;background:#3b3229;border-color:#6b5134}.tag{display:inline-block!important;width:fit-content;font-size:10px!important;white-space:nowrap;padding:3px 8px;border:1px solid #3b5672;border-radius:5px;color:var(--muted)!important;background:#11283f}.tag.ok{color:var(--green)!important;background:#133b33;border-color:#296852}.tag.soon{color:var(--amber)!important;background:#3d342b;border-color:#715638}.tag.late{color:var(--red)!important;background:#3d2738;border-color:#7d3f55}.datecell{text-align:right;flex:none}.datecell strong{font-size:11px}.datecell .tag{margin-top:5px}.quick>button{width:100%;display:flex;align-items:center;gap:13px;border:1px solid #294a66;background:linear-gradient(100deg,#173851,#122d45);color:#cfE9ff;padding:14px 13px;border-radius:8px;text-align:left;margin-top:10px}.quick>button>svg:first-child{color:var(--blue);width:20px}.quick>button span{flex:1;font-size:12px;font-weight:600}.quick small{display:block;font-weight:400;color:#86a7c0;margin-top:4px;font-size:10px}.tip{display:flex;align-items:flex-start;gap:8px;color:#89afbe;background:#153b3c55;border:1px solid #255153;padding:12px;border-radius:7px;margin-top:18px;font-size:11px}.tip svg{flex:none;color:#62c4ad}.empty{text-align:center;padding:34px 16px;color:#91abc1}.empty>svg{color:#416c90;margin-bottom:8px}.empty h3{color:#c4d8e9;font-size:15px}.empty p{font-size:12px;max-width:340px;margin:8px auto 18px}.toolbar{justify-content:space-between;gap:16px;margin-bottom:18px}.search,.toolbar{display:flex;align-items:center}.search{position:relative;gap:10px;max-width:430px;flex:1}.search svg{position:absolute;left:13px;color:#7c9db7}.search input{padding-left:40px;margin-top:0}.toolbar>select{width:auto;min-width:150px;margin:0}.infoGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 25px;margin:20px 0}.infoGrid.two{grid-template-columns:1fr 1fr}.infoGrid>div>span{font-size:11px;color:#8da9bf;display:flex;align-items:center;gap:7px}.infoGrid p{margin:6px 0 0}.infoGrid p,.notes{font-size:13px;overflow-wrap:anywhere;white-space:pre-wrap}.tabs{display:flex;gap:4px;overflow-x:auto;max-width:100%;padding:4px;background:#091a2e;border:1px solid var(--line);border-radius:9px}.tabs button{display:flex;align-items:center;gap:7px;white-space:nowrap;background:transparent;border:1px solid transparent;color:#95b3cb;padding:10px 13px;border-radius:6px;font-size:12px}.tabs button.active{background:#19466a;border-color:#2b648c;color:#e3f3ff}.detailtabs{margin-bottom:20px;width:fit-content}.notice{display:flex;align-items:center;gap:10px;border:1px solid #3b6a8e;background:#14354d;padding:14px;border-radius:9px;margin-bottom:18px;font-size:12px;color:#bdddf2}.notice.danger{background:#3b2537;border-color:#79394f;color:#ffb4c0}.notice svg{flex:none}.accessory{border:1px solid #315069;border-radius:9px;padding:18px;margin:18px 0;background:#0a1c30}.accessory .infoGrid{margin-top:14px}.accessory .sectionhead p{font-size:12px;margin:4px 0 0}.timeline{border-left:2px solid #3d89bb;padding:3px 0 8px 18px;margin-top:22px}.timeline small{color:var(--blue)}.timeline h3{margin-top:8px}.photogrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.photogrid figure{margin:0;border:1px solid #34526c;border-radius:9px;overflow:hidden;background:#091a2e}.photogrid img{width:100%;height:180px;object-fit:cover}.photogrid figcaption{padding:10px;font-size:11px;overflow-wrap:anywhere}.photogrid figcaption button{display:block;margin-top:8px}.dangertext{color:var(--red)}.upload input{display:none}footer{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:35px;padding-top:17px;border-top:1px solid #203b54;color:#647f98;font-size:9px;letter-spacing:1px}footer span:first-child{font-weight:700}footer .tricolore{margin-top:0;margin-left:auto;width:54px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90vw;z-index:50;display:flex;align-items:center;gap:10px;padding:14px 22px;border:1px solid #5c9a88;border-radius:9px;color:#d3f8e9;background:#153e35;box-shadow:0 10px 40px #0008;font-size:13px}dialog{padding:0;width:min(760px,calc(100% - 28px));max-height:90dvh;color:var(--text);background:#10263d;border:1px solid #41688b;border-radius:14px;box-shadow:0 30px 100px #0009}dialog::backdrop{background:#020b17bd;backdrop-filter:blur(4px)}.modalfoot,.modalhead{padding:18px 23px;display:flex;justify-content:space-between;align-items:center;gap:15px;background:#102b45}.modalhead{border-bottom:1px solid var(--line);position:sticky;top:0;z-index:2}.modalhead h2{margin:0}.modalfoot{border-top:1px solid var(--line);position:sticky;bottom:0}.modalbody{padding:24px}.iconbtn{border:0;background:none;color:#aac5db;display:grid;place-items:center;width:34px;height:34px}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.wide{grid-column:1/-1}label{display:block;font-size:12px;color:#b3c9da}input,select,textarea{display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid #3d5972;background:#091c30;color:var(--text);border-radius:7px;min-width:0;min-height:43px}textarea{min-height:90px;resize:vertical}fieldset{min-width:0;border:1px solid #315572;border-radius:9px;margin:0 0 21px;padding:17px}legend{padding:0 8px;font-size:13px;color:#7ec6fa;font-weight:600}.check{display:flex;align-items:center;gap:9px;margin-bottom:16px}.check input{display:inline;width:17px;min-height:17px;margin:0}.card .btn{margin-top:3px}[hidden]{display:none!important}@media(min-width:1600px){.shell{border-left:1px solid var(--line);border-right:1px solid var(--line)}}@media(max-width:1100px){.shell{grid-template-columns:195px minmax(0,1fr)}main{padding:25px 22px}.dashboardgrid{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:14px}.stat>div{font-size:11px}.pagetitle{align-items:flex-start}.pagetitle>.actions{justify-content:flex-end}.infoGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid2{grid-template-columns:1fr}.sidebarfoot{padding-left:8px}.quick>button{padding:12px}.brand{gap:15px}}@media(max-width:720px){body{font-size:14px}.topbar{height:78px;padding:10px 16px}.brand img{width:120px;height:46px}.branddivider{height:30px}.brand{gap:11px}.brand strong{font-size:9px;letter-spacing:1px}.brand small{font-size:9px}.private{display:none}.shell{display:block}aside{position:fixed;bottom:0;left:0;right:0;z-index:10;padding:4px 4px max(4px,env(safe-area-inset-bottom));border:0;border-top:1px solid #3c6788;background:#091c31}.navlabel,.sidebarfoot{display:none}nav{display:grid;grid-template-columns:repeat(5,1fr)}nav button{flex-direction:column;gap:4px;justify-content:center;position:relative;margin:0;padding:9px 2px 7px;border-radius:6px;font-size:9px;line-height:1.3}nav button.active{box-shadow:inset 0 2px #4aabff}nav button svg{width:20px;height:20px}nav button b{position:absolute;right:9px;top:3px;font-size:8px;padding:1px 4px}main{padding:20px 14px 100px}.eyebrow{font-size:8px}h1{font-size:25px}.pagetitle{display:block}.pagetitle>.actions{justify-content:flex-start;margin:15px 0}.pagetitle p{font-size:12px}.stats{grid-template-columns:1fr 1fr;gap:11px}.stat{padding:14px}.stat strong{font-size:31px}.syncbar{font-size:10px;margin-bottom:18px}.card{padding:17px;margin-bottom:15px}.dashboardgrid{gap:0}.sectionhead{gap:10px}.sectionhead h2{font-size:16px}.sectionhead>.link{font-size:10px;max-width:100px;text-align:right}h2{font-size:17px}.recordrow{gap:10px;flex-wrap:wrap;padding:16px 0}.recordrow .recordicon{width:36px;height:39px}.recordrow strong{font-size:12px}.recordrow span span{font-size:11px}.recordrow>.tag{font-size:9px!important}.recordrow>svg:last-child{display:none}.datecell strong{font-size:10px}.datecell .tag{font-size:9px!important}.recordrow .grow{min-width:120px}.toolbar{flex-wrap:wrap;gap:10px}.toolbar .search{min-width:200px}.toolbar .tabs{width:100%}.detailtabs{width:100%;border-radius:7px}.tabs button{font-size:11px;padding:9px 11px}.infoGrid{grid-template-columns:1fr 1fr;gap:17px 12px}.infoGrid p{font-size:12px}.accessory{padding:13px}.formgrid{grid-template-columns:1fr}.modalfoot,.modalhead{padding:15px}.modalbody{padding:17px}.photogrid{grid-template-columns:1fr 1fr;gap:10px}.photogrid img{height:140px}.btn{font-size:11px}.toast{bottom:83px;min-width:240px}.empty{padding:27px 8px}footer{gap:10px;font-size:8px}}@media print{@page{size:A4;margin:14mm}:root{color-scheme:light}body{background:white!important;color:#15283d;font-size:11pt}.topbar{background:white;border-bottom:2px solid #193f60;height:75px}.brand small{color:#50657a}.actions,.back,.btn,.noprint,.private,.syncbar,.tabs,.toast,aside,dialog{display:none!important}.shell{display:block;border:0}main{padding:18px 0}.card{background:white!important;color:#15283d;border:1px solid #bbb;box-shadow:none;break-inside:avoid}.card p,.infoGrid>div>span,.muted{color:#40566d}.printsection[hidden]{display:block!important}.infoGrid{grid-template-columns:repeat(3,1fr)}.grid2{display:block}.tag{background:white!important;color:#223c51!important}.photogrid{grid-template-columns:repeat(3,1fr)}.photogrid figure{background:white}.photogrid img{height:130px;object-fit:contain}.timeline{break-inside:avoid}.accessory{background:white}footer{color:#40566d}.eyebrow{color:#175582}}.loginpage{min-height:100vh;display:grid;place-items:center;padding:24px}.logincard{width:min(100%,470px)}.loginlogo{width:230px;max-width:100%;display:block;margin:0 auto 22px}.logincard .tricolore{margin-bottom:25px}.logincard form{display:grid;gap:18px}.formgrid label,.logincard label{display:grid;gap:8px}.logincard input{width:100%}.logincard .tabs{margin:24px 0 12px}.logincard .tabs button{flex:1;display:flex;gap:8px;align-items:center;justify-content:center}.logincard .btn{justify-content:center}.logincard>p:last-child{margin-top:24px}.card.wide{grid-column:1/-1}.clientmail{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}