:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#203436;background:#f3f6f7;font-size:16px;font-synthesis:none;--green:#12634d;--border:#e1e8e8}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button,select,input{min-height:44px}button{border:1px solid var(--border);border-radius:9px;background:white;color:inherit;padding:9px 14px}button:hover{background:#edf5f2}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #39a881;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;margin-bottom:10px}h2{font-size:18px;margin-bottom:5px}h3{font-size:16px}p{line-height:1.7}small,.muted{color:#6b7d80}.sidebar{position:fixed;inset:0 auto 0 0;width:228px;background:#142e32;color:#e3efec;padding:32px 20px;display:flex;flex-direction:column}.brand{font-size:25px;font-weight:700;display:flex;align-items:center;gap:12px}.brandmark{display:grid;place-items:center;width:43px;height:43px;color:#99ecc9;background:#27484b;border-radius:10px;font-size:32px}.brand small{display:block;font-size:10px;letter-spacing:3px;color:#91b2ad;margin-top:3px}.sidecaption{font-size:12px;letter-spacing:2px;color:#8baaa8;margin:42px 12px 15px}nav{display:grid;gap:8px}nav button{text-align:left;border:0;background:transparent;color:#b8cdca;padding:12px 15px}nav button.active{background:#2c494c;color:#fff}nav button:hover{background:#254246}.navavatar{display:inline-grid;place-items:center;width:24px;height:24px;background:#38565a;border-radius:6px;margin-right:11px;font-size:13px}.sidebottom{margin-top:auto;display:grid;gap:10px;font-size:14px}.sidebottom span{font-size:12px;color:#98b4af}.sidebottom button{margin-top:12px;background:transparent;color:#bfdbd4;border-color:#3c595d;font-size:13px}main{margin-left:228px;padding:0 36px 25px;max-width:1800px}header{min-height:82px;display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--border)}.breadcrumb{font-size:14px;color:#75888a}.breadcrumb span{margin:0 14px;color:#b1bfc0}.breadcrumb b{color:#344a4e;font-weight:500}.rolelabel{display:flex;align-items:center;gap:10px;font-size:13px;color:#6c7d80}select,input,textarea{border:1px solid #d6e1df;border-radius:8px;padding:10px;background:white;color:#263c40;max-width:100%}select{font-size:14px}.demo{margin:20px 0 28px;font-size:12px;color:#607576;line-height:1.8}.demo span{font-weight:600;color:#855d21;background:#fff0d4;padding:4px 8px;border-radius:4px;margin-right:8px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.heading p{color:#728487;font-size:14px;margin-bottom:0}.eyebrow{display:block;font-size:12px;color:var(--green);letter-spacing:1px;margin-bottom:8px}.primary{background:var(--green);color:white;border-color:var(--green);font-size:14px;font-weight:600}.primary:hover{background:#0a4e3b}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:32px}.stat{background:#fff;padding:20px 24px;border:1px solid var(--border);border-radius:12px}.statlabel{font-size:14px;color:#62787c}.stat strong{display:block;font-size:32px;margin:10px 0 6px;font-weight:600;letter-spacing:-1px}.stat small{font-size:12px}.stat.warn strong{color:#b6662a}.sectiontitle{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.sectiontitle span{font-size:13px;color:#7d8e90}.team{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:32px}.person{text-align:left;padding:20px;background:#fff;border:1px solid var(--border);border-radius:12px;transition:transform .15s,border-color .15s}.person:hover{transform:translateY(-2px);border-color:#65a58e}.personhead{display:flex;align-items:center;gap:11px;margin-bottom:22px}.avatar{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#e0f1e9;color:#19684e;font-weight:700;flex-shrink:0}.avB{background:#e5ecfb;color:#5470a4}.avC{background:#f1eafa;color:#8a64a6}.avD{background:#fbefde;color:#a47736}.personhead strong{font-size:15px}.personhead small{display:block;margin-top:4px;font-size:12px}.personnums{display:flex;justify-content:space-between;gap:8px}.personnums strong{display:block;font-size:22px;font-weight:600;margin-bottom:5px}.personnums span{font-size:12px;color:#7d8d90}.personfoot{border-top:1px solid #edf1f1;margin-top:17px;padding-top:13px;display:flex;justify-content:space-between;font-size:12px;color:#697f80}.workspace{background:#fff;border:1px solid var(--border);border-radius:13px;padding:24px}.count{background:#f2f5f5;border-radius:15px;padding:6px 10px;white-space:nowrap}.toolbar{display:flex;justify-content:space-between;gap:16px;margin:22px 0 8px;flex-wrap:wrap}.tabs{display:flex;gap:6px;flex-wrap:wrap}.tabs button{font-size:13px;border:0;min-height:40px;padding:8px 12px;color:#718487}.tabs button.selected{background:#e7f3ec;color:#12634d;font-weight:600}input[type=search]{font-size:14px;width:240px}table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}th{font-size:12px;font-weight:500;color:#829193;background:#f8faf9;padding:14px 12px}td{padding:18px 12px;border-bottom:1px solid #edf1f0}tbody tr:last-child td{border-bottom:0}td strong{display:block;font-size:14px;margin-bottom:5px}td small{font-size:12px;display:block;line-height:1.5}.badge{display:inline-block;font-size:12px;padding:5px 8px;border-radius:5px;background:#eaf1ff;color:#4c6b9d;white-space:nowrap}.badge.s0{background:#fff0d7;color:#916223}.badge.s4{background:#e0f2e8;color:#286c4e}.badge.s5{background:#f0f1f2;color:#727d82}.dueover{color:#b4612d}.rowbtn{font-size:13px;white-space:nowrap}.empty{padding:50px 10px;text-align:center;color:#6c8180}.mobilecards{display:none}footer{margin-top:24px;font-size:12px;color:#829091;line-height:1.7}dialog{border:0;border-radius:16px;padding:28px;max-width:560px;width:calc(100% - 28px);max-height:90dvh;box-shadow:0 25px 100px #122c3233;color:#203436}dialog::backdrop{background:#102d3670;backdrop-filter:blur(3px)}.dialoghead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:22px}.dialoghead h2{font-size:23px}.iconbtn{font-size:25px;min-width:44px;border:0;background:#f1f5f4;padding:0}.detailinfo{padding:17px;background:#f4f7f6;border-radius:9px;font-size:14px;line-height:1.9;margin-bottom:23px}.detailinfo b{color:#496963}form>label,.formrow label{display:grid;gap:7px;font-size:14px;margin-bottom:16px}.formrow{display:grid;grid-template-columns:1fr 1fr;gap:14px}.save{width:100%;margin:4px 0 24px}.historyitem{padding:14px 0;border-bottom:1px solid #e9efed;line-height:1.7;font-size:14px;white-space:pre-wrap}.historyitem small{display:block;font-size:12px}.rulerow{display:flex;justify-content:space-between;padding:16px;border-bottom:1px solid #e6eeeb}.rulerow:last-child{margin-bottom:20px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#163d32;color:white;padding:14px 22px;border-radius:10px;box-shadow:0 8px 35px #1233;z-index:20;display:none;font-size:14px;max-width:90vw}
@media(min-width:1600px){main{padding-left:50px;padding-right:50px}.stat{padding:25px}.person{padding:25px}}
@media(max-width:1150px){.sidebar{width:185px;padding:25px 12px}main{margin-left:185px;padding:0 22px 24px}.team,.stats{grid-template-columns:repeat(2,1fr)}.personhead{margin-bottom:14px}th:nth-child(3),td:nth-child(3){display:none}}
@media(max-width:700px){.sidebar{position:static;width:100%;padding:16px 18px 12px;display:block}.brand{font-size:21px}.brandmark{width:34px;height:34px;font-size:26px}.brand small{font-size:9px}.sidecaption,.sidebottom{display:none}nav{display:flex;overflow-x:auto;margin-top:15px;gap:5px}nav button{white-space:nowrap;padding:9px 10px;font-size:13px;flex-shrink:0}.navavatar{display:none}main{margin:0;padding:0 16px 20px}header{min-height:66px;justify-content:flex-end}.breadcrumb{display:none}.rolelabel{font-size:12px}.demo{margin:16px 0 23px;line-height:1.9}.heading{align-items:flex-start;gap:12px}.heading h1{font-size:26px}.heading p{font-size:13px}.heading .primary{font-size:12px;padding:8px;white-space:nowrap}.eyebrow{font-size:11px}.stats{gap:10px;margin-bottom:25px}.stat{padding:16px}.stat strong{font-size:28px}.statlabel{font-size:13px}.team{gap:10px}.person{padding:14px}.personhead{gap:8px}.personnums strong{font-size:20px}.personnums span{font-size:11px}.personfoot{font-size:11px}.sectiontitle{align-items:flex-start}.sectiontitle>span{font-size:11px}.workspace{padding:17px 14px}.toolbar{margin-top:17px;gap:12px}.toolbar input{width:100%;order:-1}.tabs{gap:2px}.tabs button{font-size:12px;padding:8px 9px}table{display:none}.mobilecards{display:grid}.clientcard{padding:18px 0;border-bottom:1px solid #e7eeec}.clientcard:last-child{border:0}.clienttop{display:flex;justify-content:space-between;align-items:start;gap:8px}.clienttop strong{font-size:16px}.clientcard small{display:block;font-size:12px;margin-top:6px;line-height:1.6}.clientbottom{display:flex;justify-content:space-between;align-items:center;margin-top:13px;font-size:13px;gap:8px}dialog{padding:22px}.formrow{grid-template-columns:1fr}footer{font-size:11px}}

.brand{gap:10px;font-size:21px}.brandlogo{width:58px;height:58px;object-fit:contain;background:#fff;border-radius:9px;flex-shrink:0}.brand small{letter-spacing:1.8px;font-size:10px}.headingactions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.headingactions button{font-size:14px}.namefield{display:grid;gap:7px;margin-bottom:16px;font-size:14px}#nameError{color:#a64032;font-size:14px}nav button{overflow-wrap:anywhere}.personhead>div{min-width:0;overflow-wrap:anywhere}.personhead strong{line-height:1.5}.rolelabel select{max-width:240px}@media(max-width:1150px) and (min-width:701px){.brand{font-size:17px}.brandlogo{width:44px;height:44px}.brand small{font-size:9px}}@media(max-width:700px){.brand{font-size:23px}.brandlogo{width:52px;height:52px}.heading{flex-wrap:wrap}.headingactions{justify-content:flex-start}.heading .headingactions button{font-size:13px;padding:9px 12px}nav .navavatar{display:inline-grid;width:20px;height:20px;margin-right:6px}.rolelabel select{max-width:235px}}

.staffrow{display:flex;gap:12px;align-items:center}.staffrow label{flex:1;min-width:0}.danger{color:#a63333;border-color:#e7cccc}.addstaff{display:flex;gap:10px;align-items:end;border-bottom:1px solid var(--border);padding-bottom:18px;margin-bottom:18px}.addstaff label{display:grid;gap:8px;flex:1;min-width:0}.addstaff input{width:100%}#nameFields{max-height:42vh;overflow-y:auto;padding:3px}#removeError{color:#a63333}.rulerow select{max-width:70%}nav{overflow-y:auto;min-height:0}.sidebottom{padding-top:20px}.team{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}@media(max-width:700px){.team{grid-template-columns:repeat(2,minmax(0,1fr))}.addstaff{flex-wrap:wrap}.addstaff label{flex-basis:100%}nav{overflow-x:auto;overflow-y:hidden;max-height:none}}

.customerfields{border:1px solid var(--border);border-radius:10px;padding:16px;margin:0 0 20px;display:grid;grid-template-columns:1fr 1fr;gap:14px}.customerfields legend{font-weight:600;font-size:15px;padding:0 6px}.customerfields label{display:grid;gap:7px;font-size:14px}.customerfields label:first-of-type{grid-column:1/-1}@media(max-width:420px){.customerfields{grid-template-columns:1fr}.customerfields label:first-of-type{grid-column:auto}}

.customerfields{display:block}.profilegroup{border:0;padding:0;margin:0 0 16px;min-width:0}.profilegroup:last-child{margin-bottom:0}.profilegroup legend{padding:0;margin-bottom:8px;font-size:14px;font-weight:500}.profileoptions{display:flex;gap:8px;flex-wrap:wrap}.customerfields .profilechoice{display:flex;align-items:center;gap:7px;min-height:44px;cursor:pointer;padding:8px 12px;border:1px solid #d6e1df;border-radius:8px;background:#fff;font-size:14px}.profilechoice input{min-height:0;width:16px;height:16px;margin:0;accent-color:#12634d}.profilechoice:has(input:checked){background:#e4f2eb;border-color:#12634d;color:#12634d}.profilechoice:focus-within{outline:2px solid #39a881;outline-offset:2px}.profilechoice.unset{color:#708182}
.inlinepicker{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;max-height:220px;overflow:auto;padding:3px}.pickerfield{display:grid;gap:6px;margin-bottom:16px;font-size:14px}.inlinepicker .pickerchoice{display:flex;align-items:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid #d6e1df;border-radius:8px;cursor:pointer;background:white;overflow-wrap:anywhere}.pickerchoice input{min-height:0;width:16px;height:16px;margin:0;accent-color:#12634d;flex-shrink:0}.pickerchoice:has(input:checked){background:#e4f2eb;border-color:#12634d;color:#12634d}.pickerchoice:focus-within{outline:2px solid #39a881}.rolelabel{max-width:420px;flex-wrap:wrap}.rolelabel .inlinepicker{max-height:115px}.rulerow{display:block}select[hidden]{display:none!important}
.pickerfield[hidden]{display:none!important}
