:root{font-family:"Inter","Segoe UI Variable Text","Segoe UI",Arial,sans-serif;font-size:16px;color:#252940;background:#f5f6fa;font-synthesis:none;--ink:#252940;--muted:#626c81;--brand:#554794;--deep:#2b2358;--tint:#edeafa;--line:#dce0e9;--paper:#fff;--radius:14px;--shadow:0 2px 6px #21274407}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}a{color:var(--brand)}button,select,a{touch-action:manipulation}button,a,select{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #9180cc;outline-offset:3px}[hidden]{display:none!important}
.layout{min-height:100dvh;display:grid;grid-template-columns:232px minmax(0,1fr)}.sidebar{background:linear-gradient(163deg,#282847,#25243d 60%,#202138);color:#eaeaf7;display:flex;flex-direction:column;padding:36px 17px 20px;position:sticky;top:0;height:100dvh}.brand{display:flex;align-items:center;gap:13px;margin:0 10px 36px;text-decoration:none;font-weight:670;letter-spacing:-1.3px;font-size:1.7rem;color:#fff}.brand-mark{width:34px;height:34px;display:grid;align-content:center;justify-content:center;gap:3px;border-radius:11px;background:#b9aff3;transform:rotate(-4deg)}.brand-mark i{display:block;background:#322b55;width:19px;height:3px;border-radius:5px;transform:skewY(-12deg)}.brand-mark i:nth-child(2){width:14px}.side-foot>span{flex:none;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#ffffff0e;color:#d3ceea}.sidebar small{display:block;font-size:.79rem;font-weight:400;color:#b9bbd0;margin-top:4px}.side-foot strong{overflow-wrap:anywhere;font-size:.92rem;font-weight:600}.sidebar nav{display:grid;gap:6px}.sidebar nav a{display:flex;align-items:center;gap:13px;color:#d5d4e6;text-decoration:none;padding:12px 14px;border-radius:9px;font-size:.94rem;font-weight:500}.sidebar nav a[aria-current]{color:#fff;background:#524979;box-shadow:inset 2px 0 #baacee}.sidebar nav a:hover{background:#ffffff15}.side-foot{display:flex;align-items:center;gap:12px;margin-top:auto;padding:15px 5px 0;border-top:1px solid #ffffff1b}.ico{display:inline-block;flex:none;vertical-align:middle}.workspace{min-width:0}.topbar{height:72px;background:#ffffffed;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,3.5vw,64px);gap:15px}.bread,.scope{display:flex;align-items:center;gap:10px}.bread{color:var(--muted);font-size:.88rem}.bread b{font-weight:400;color:#b3b6c5}.bread strong{color:#343952;font-weight:570}.scope{background:#f1eef8;color:#4e407e;border:1px solid #e5dfef;border-radius:8px;padding:3px 9px}.scope select{border:0;background:transparent;color:inherit;border-radius:4px;padding:5px;font-size:.85rem;font-weight:600;width:auto}.skip{position:fixed;top:-90px;left:10px;z-index:15;background:white;padding:10px}.skip:focus{top:5px}
main{max-width:1580px;padding:clamp(22px,3.2vw,52px) clamp(18px,3.5vw,64px) 65px;margin:0 auto}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.8rem,3.2vw,2.65rem);line-height:1.09;font-weight:650;letter-spacing:-.052em}h2{font-size:1.28rem;letter-spacing:-.035em}h3{font-size:1.07rem}.page-head,.page-header,.panel-head,.section-head,.toolbar,.actions,.row-actions,.modal-head,.modal-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.page-head,.page-header{justify-content:space-between;margin-bottom:24px}.page-head p,.page-header p,.subtle,.muted,.subtitle{color:var(--muted);line-height:1.5}.page-head p,.page-header p{margin-top:8px}.eyebrow{font-size:.8rem;font-weight:630;letter-spacing:.08em;text-transform:uppercase;color:#665c84;margin-bottom:8px}.actions,.row-actions{gap:8px}.btn,button,.button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 13px;border:1px solid #cdd1de;border-radius:8px;background:white;color:#34384a;font-weight:560;font-size:.88rem;text-decoration:none}.btn:hover,button:hover{background:#f4f3fa;border-color:#aba5be}.btn.primary,.primary,button[type=submit].primary{background:var(--brand);color:white;border-color:var(--brand)}.btn.primary:hover{background:#44387f}.quiet,.ghost{background:transparent;border-color:transparent;color:var(--brand)}.danger{color:#a72e43}.icon-btn{width:35px;min-height:35px;padding:6px}.panel,.card{border:1px solid var(--line);border-radius:var(--radius);background:white;box-shadow:var(--shadow);min-width:0;margin:16px 0}.panel-head,.section-head{justify-content:space-between;gap:10px}.panel-head{padding:17px 20px;border-bottom:1px solid var(--line)}.section-head{margin:20px 0 12px}.panel p,.empty p,.notice{line-height:1.5}.loading,.empty,.empty-state{border-radius:var(--radius);padding:32px 20px;color:var(--muted);text-align:center}.empty h2,.empty h3,.empty-state h3{color:var(--ink);margin:8px 0}.empty p{margin:0 0 14px}.pill,.badge,.tag{display:inline-flex;align-items:center;width:max-content;border-radius:99px;background:#eeedf7;color:#524878;padding:4px 9px;font-size:.78rem;font-weight:600;white-space:nowrap}.pill.soft,.pill.neutral{background:#f1f2f5;color:#5d6678}.notice,.alert,.hint{color:var(--muted);font-size:.92rem}.notice,.alert{border:1px solid var(--line);background:#f6f5fb;border-radius:10px;padding:12px 15px}
.metrics,.summary-grid,.stats,.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(155px,100%),1fr));gap:12px;margin:18px 0 23px}.metric,.stat,.stat-card{padding:14px 17px;border:1px solid var(--line);border-radius:12px;background:white}.metric strong,.stat strong,.stat-card strong{font-size:1.65rem;letter-spacing:-.045em}.directory-tools,.filters,.filter-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:17px 0}.searchbox,.search-box{display:flex;align-items:center;gap:9px;min-width:min(250px,100%);border-radius:8px;background:white;border:1px solid var(--line);padding:0 12px;color:var(--muted)}.searchbox input,.search-box input{border:none;min-width:0;width:100%;background:transparent;padding:10px 0}.segmented,.view-switch{display:inline-flex;align-items:center;background:#ebeaf1;border:1px solid var(--line);padding:3px;border-radius:8px}.segmented button,.view-switch button{border:0;background:transparent;min-height:30px;padding:5px 9px;border-radius:5px}.segmented button[aria-pressed=true],.segmented .active,.view-switch button[aria-pressed=true]{background:white;box-shadow:0 1px 3px #15172b20;color:var(--brand)}
.folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(245px,100%),1fr));gap:16px}.folder-card{display:block;min-width:0;position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;color:var(--ink);text-decoration:none;box-shadow:var(--shadow);transition:transform .15s,border-color .15s,box-shadow .15s}.folder-card:hover{transform:translateY(-2px);border-color:#a79aca;box-shadow:0 5px 18px #42326512}.folder-card:focus-visible{outline:3px solid #9083c1}.folder-art{display:inline-flex;align-items:center;justify-content:center;position:relative;color:#7d65bc}.folder-name{font-size:1.12rem;font-weight:650;letter-spacing:-.025em;line-height:1.25;overflow-wrap:anywhere}.folder-foot,.folder-meta{font-size:.84rem;color:var(--muted)}.folder-foot{display:flex;align-items:center;gap:10px;border-top:1px solid #ececf2;margin-top:15px;padding-top:11px}.folder-meta{display:flex;align-items:center;gap:7px}.folder-foot .ico,.folder-meta .ico{width:15px;height:15px}
.tabs{display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--line);margin:20px 0;overflow:auto}.tabs button,.tabs a{display:inline-flex;gap:6px;align-items:center;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:12px 9px;text-decoration:none;color:var(--muted);white-space:nowrap}.tabs .active,.tabs [aria-selected=true],.tabs [aria-current=page]{border-bottom-color:var(--brand);color:var(--brand);font-weight:650}.table-wrap{max-width:100%;overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:.9rem}th{background:#f6f7fa;color:#62697b;font-size:.8rem;font-weight:610;white-space:nowrap}td,th{padding:12px 15px;border-bottom:1px solid #e7e9ef}tbody tr:last-child td{border-bottom:0}td small{display:block;color:var(--muted);margin-top:4px}.toolbar{margin:14px 0}.month-control,.field,label.field{display:flex;flex-direction:column;gap:6px;font-size:.9rem;font-weight:550;color:#454b60}input:not([type=checkbox],[type=radio],[type=file]),select,textarea{font:inherit;max-width:100%;padding:9px 11px;border-radius:7px;border:1px solid #cdd1de;background:#fff;color:var(--ink)}input[type=checkbox]{accent-color:var(--brand);width:17px;height:17px}textarea{resize:vertical;min-height:68px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid .wide,.wide{grid-column:1/-1}.field input,.field select{width:100%}.field .hint{font-weight:400}.check{display:inline-flex;align-items:center;gap:6px}.form-grid h3{padding-top:12px}.form-error{color:#a22e42;font-size:.9rem}.form-error:empty{display:none}
dialog{padding:0;border:1px solid var(--line);border-radius:16px;width:min(645px,calc(100vw - 24px));max-height:90dvh;background:white;color:var(--ink);box-shadow:0 22px 90px #18162d42}dialog::backdrop{background:#20203970;backdrop-filter:blur(3px)}.modal-form{padding:22px;display:grid;gap:17px}.modal-head,.modal-actions{justify-content:space-between}.modal-actions{justify-content:flex-end;border-top:1px solid var(--line);padding-top:14px}.modal-content{min-width:0}.modal-content p{line-height:1.5}.modal-content label:not(.check){font-size:.9rem}.modal-content input[type=file]{max-width:100%}#toast{position:fixed;bottom:20px;right:18px;z-index:20;background:#322d4b;color:white;padding:12px 18px;border-radius:9px;box-shadow:0 8px 32px #26223b27;max-width:calc(100vw - 36px)}
@media(max-width:900px){.layout{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding-inline:11px}.brand{font-size:1.5rem}.bread>span:nth-child(2),.bread>b{display:none}}
@media(max-width:680px){.layout{display:block}.sidebar{position:static;height:auto;padding:12px 16px;flex-direction:row;gap:8px;align-items:center;justify-content:space-between}.brand{margin:0;font-size:1.2rem;gap:6px}.brand-mark{width:29px;height:29px}.sidebar nav{display:flex;gap:2px}.sidebar nav a{padding:9px 7px;font-size:.81rem;gap:5px}.sidebar nav a .ico{width:15px;height:15px}.side-foot{display:none}.topbar{height:54px;padding:0 14px}.scope{gap:2px}.scope select{font-size:.8rem}.bread{gap:5px;font-size:.8rem}main{padding:22px 15px 50px}.folder-grid{gap:12px}.page-head{gap:12px}.form-grid{grid-template-columns:1fr}.panel-head{padding:13px}.tabs{gap:0}.metric,.stat{padding:10px}.directory-tools>*{max-width:100%}}
@media(max-width:380px){.sidebar nav a>span[data-icon]{display:none}.scope>span{display:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.metrics{gap:16px}.metric{display:flex;align-items:center;gap:15px;padding:18px 20px}.metric-icon{height:44px;width:44px;flex:none;display:grid;place-items:center;border-radius:13px;background:#ede9fa;color:#655392}.metric:nth-child(2) .metric-icon{background:#dff0ec;color:#337463}.metric:nth-child(3) .metric-icon{background:#f8ebd7;color:#94672c}.metric>div>span{display:block;color:var(--muted);font-size:.88rem}.metric strong{display:block;line-height:1.15;margin-top:3px;font-size:1.78rem;font-weight:650}
.directory-tools{justify-content:space-between}.directory-tools .searchbox{width:min(400px,100%)}.directory-tools .searchbox input{border:0;background:transparent;outline-offset:0}.dir-filters,.section-line,.folder-top,.name-item,.profile-controls,.checkbox{display:flex;align-items:center;gap:10px}.dir-filters{flex-wrap:wrap}.dir-filters select{font-size:.88rem}.section-line{justify-content:space-between;margin:22px 0 12px}.section-line h2{display:flex;gap:9px;align-items:center}.section-line small{font-size:.76rem;background:#e6e7ee;color:#586078;padding:3px 8px;border-radius:99px;font-weight:530;letter-spacing:0}.folder-top{align-items:flex-start;justify-content:space-between}.folder-art{isolation:isolate;width:68px;height:52px;margin:3px 0 15px}[data-business-status="nonvat"]{--front:#edc785;--rear:#bc8e4b;--edge:#f7dbaf}[data-business-status="vat"]{--front:#84c7b9;--rear:#539a8d;--edge:#b3decb}[data-business-status="deleted"]{--front:#df888e;--rear:#ad4a54;--edge:#efb3b5}.folder-art:before,.folder-art:after{content:"";position:absolute;left:0;right:0}.folder-art:before{top:2px;bottom:2px;background:var(--rear);clip-path:polygon(0 0,36% 0,47% 16%,96% 16%,100% 22%,100% 100%,0 100%);border-radius:5px 7px 7px 7px}.folder-art:after{top:15px;bottom:0;background:linear-gradient(130deg,var(--edge),var(--front));border-radius:3px 5px 6px 6px;transform:skew(-5deg);transform-origin:bottom;box-shadow:inset 0 2px 0 #ffffff40,0 2px 2px #30303f12}.folder-art>.ico{position:absolute;top:11px;left:6px;width:54px;height:13px;border-radius:3px;background:#fffefa;transform:rotate(-2deg)}.folder-art>.ico path{display:none}.folder-body{min-width:0}.folder-meta{margin-top:5px}.folder-foot{justify-content:space-between}.folder-foot>span{display:inline-flex;gap:6px;align-items:center}.pill.vat{background:#e1f1e8;color:#35654e}.pill.nonvat{background:#f5ead7;color:#7c5e31}.folder-top .pill{font-size:.75rem}.crumb{display:inline-flex;gap:7px;align-items:center;text-decoration:none;font-size:.87rem;margin-bottom:14px}.profile-controls{align-items:end;justify-content:space-between;flex-wrap:wrap;margin:12px 0 17px}.profile-controls .tabs{margin:0}.month-control{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:5px}.month-control input,.month-control select{grid-column:1/-1}.profile-controls .actions{align-items:end}.panel-note,.panel>.directory-tools{padding:12px 18px}.panel-note{color:var(--muted);font-size:.88rem;line-height:1.5}.panel .directory-tools{margin:0}.panel .field{gap:7px}.table-link{display:flex;align-items:center;gap:8px;font-weight:600}.vault-lock{max-width:590px}.vault-lock .panel-head{justify-content:flex-start;color:var(--deep)}.vault-unlock{display:grid;gap:15px;padding:20px}.vault-unlock .btn{justify-self:start}.vault-unlock small{color:var(--muted)}.masked{font:1rem ui-monospace,monospace}.modal-content>.field+.field,.modal-content>p+.field{margin-top:14px}.empty-icon{margin-bottom:8px;color:#8f84ac}
.pill.deleted{background:#fbe6e7;color:#923842}
[data-business-status] .table-link .ico{color:var(--rear)}
@media(max-width:680px){.metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.metric{display:block;padding:10px}.metric-icon{width:26px;height:26px;border-radius:7px;margin-bottom:7px}.metric-icon svg{width:16px}.metric>div>span{font-size:.75rem}.metric strong{font-size:1.4rem}.directory-tools .searchbox{width:100%}.dir-filters select,.month-control input,.month-control select{font-size:.85rem}.profile-controls{align-items:stretch}.scope select{padding:5px 3px}.folder-grid{grid-template-columns:repeat(auto-fill,minmax(min(205px,100%),1fr))}}

.contract-section{border:1px solid var(--line);border-radius:8px;padding:12px}.contract-section summary{cursor:pointer;font-weight:600}.contract-section p{color:var(--muted);font-size:.9rem;margin:10px 0 14px}.contract-section [hidden]{display:none}
.form-grid .atk-lookup{align-self:end;justify-self:start}
.extension-setup{padding:0 18px 16px}.extension-setup summary{cursor:pointer;font-weight:600}.extension-setup .field{margin:12px 0;max-width:220px}.extension-setup li{margin:.4em 0;line-height:1.5}
.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:24px}.auth-card{width:min(100%,420px);background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:28px}.auth-card .brand{color:var(--deep);margin:0 0 20px}.auth-card h1{font-size:1.55rem;margin-bottom:20px}.auth-fields{display:grid;gap:14px}.auth-fields p{margin:0}.staff-bar{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:7px 18px;font-size:.85rem}.staff-list{list-style:none;margin:0;padding:0 18px}.staff-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0}.staff-list li+li{border-top:1px solid var(--line)}
.folder-agent{display:block;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.employee-link{border:0;background:transparent;color:var(--brand);font-weight:650;padding:0;text-align:left}.employee-link[data-file]:hover{text-decoration:underline}.employee-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 20px}.employee-facts dt{font-size:.85rem;color:var(--muted)}.employee-facts dd{margin:3px 0;font-weight:600}

.employee-register table{table-layout:fixed}
.employee-register th:first-child{width:38%}
.employee-register th:nth-child(2){width:15%}
.employee-register :is(th,td):nth-child(3){text-align:right}
.employee-register :is(th,td):last-child{width:6rem;text-align:center}
.employee-register td{vertical-align:middle;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.employee-register .employee-link{min-height:28px;max-width:100%;justify-content:flex-start;overflow-wrap:anywhere}
.employee-register .compact-label{display:none}
.profile-contract-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.btn.terminate-action{color:#a62530;border-color:#d9989e;background:#fff}
.btn.terminate-action:hover{background:#fff1f2;border-color:#a62530}
.btn.terminate-confirm{color:#fff;background:#ab2634;border-color:#ab2634}
.btn.terminate-confirm:hover{background:#881d29}
@media(max-width:680px){
  .employee-register thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .employee-register :is(table,tbody){display:block}
  .employee-register tr{display:grid;grid-template-columns:minmax(0,1fr) auto 36px;align-items:center;gap:8px 12px;padding:12px 15px}
  .employee-register tr+tr{border-top:1px solid var(--line)}
  .employee-register td,.employee-register :is(th,td):last-child{width:auto;padding:0;border:0}
  .employee-register td:nth-child(3){grid-row:2;grid-column:1;text-align:left}
  .employee-register td:nth-child(4){grid-row:2;grid-column:2/4}
  .employee-register td:last-child{grid-row:1;grid-column:3}
  .employee-register .compact-label{display:block;color:var(--muted);font-size:.75rem;margin-bottom:2px}
}
dialog:has(.payroll-preview){width:min(960px,calc(100vw - 24px))}
.btn[data-action="payroll"][title]:disabled{cursor:not-allowed}
.list-toolbar{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;
  gap:12px;padding:10px;background:var(--paper);
  border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);
}
.panel>.list-toolbar{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}
.list-tabs{
  display:flex;align-items:center;gap:2px;padding:3px;min-width:0;
  background:#f1f1f7;border-radius:10px;overflow-x:auto;
}
.list-tabs button{
  flex:none;min-height:36px;padding:6px 13px;border:0;border-radius:7px;
  background:transparent;color:#575b72;white-space:nowrap;
}
.list-tabs button:hover{background:#e6e4f0;color:var(--deep)}
.list-tabs button[aria-selected=true]{background:var(--brand);color:white;box-shadow:0 1px 3px #2b23582b}
.list-tabs button:focus-visible{outline-offset:-3px;outline-color:#b7afe8}
.list-search{
  display:flex;align-items:center;gap:10px;min-width:0;height:42px;padding:0 13px;
  border:1px solid #d9dce8;border-radius:9px;background:#fafbfe;color:#68728a;
  cursor:text;
}
.list-search:hover{border-color:#afb4c9}
.list-search:focus-within{border-color:var(--brand);background:white;box-shadow:0 0 0 3px var(--tint)}
.list-toolbar .list-search input[type=search]{
  width:100%;height:100%;min-width:0;margin:0;padding:0;border:0;
  background:transparent;outline:none;box-shadow:none;color:var(--ink);
}
.list-search input::placeholder{color:#6a7287}
.list-sort{
  height:42px;gap:8px;white-space:nowrap;border-radius:9px;
  background:white;color:var(--deep);border-color:#d9dce8;
}
.list-sort[aria-pressed=true]{background:var(--tint);border-color:#b8aeda}
.list-sort[aria-pressed=true] .direction{transform:scaleY(-1);transform-box:fill-box;transform-origin:center}
.section-line .result-count{font-size:1rem}
@media(max-width:900px){
  .list-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .list-search{grid-row:1;grid-column:1/-1}
  .list-tabs{justify-self:start;max-width:100%}
}
@media(max-width:520px){
  .list-toolbar{padding:8px}
  .list-tabs{justify-self:stretch;gap:0}
  .list-tabs button{flex:1 0 auto;font-size:.8rem;padding-inline:5px}
  .list-sort{width:42px;padding:0}
  .list-sort span{display:none}
}
.edi-month{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.9rem}.edi-task{text-align:center;white-space:nowrap}.edi-task input{cursor:pointer;vertical-align:middle}.edi-task input:disabled{cursor:wait}
.edi-business{font-size:1.05rem;font-weight:700;color:var(--deep);text-decoration:none}.edi-task input{width:18px;height:18px}
.edi-table{table-layout:fixed;min-width:64rem}
.edi-table:has(.edi-extra-col){min-width:70rem}
.edi-table:has(.edi-extra-col + .edi-extra-col){min-width:76rem}
.edi-table col:first-child{width:30%}
.edi-user-col{width:16%}
.edi-table:has(.edi-extra-col) .edi-user-col{width:14.5%}
.edi-table:has(.edi-extra-col + .edi-extra-col) .edi-user-col{width:13%}
.edi-task-col{width:3.75rem}
.edi-extra-col{width:5rem}
.edi-actions-col{width:15.5rem}
.edi-table :is(th,td){padding:8px 12px}
.edi-table .edi-task{padding-inline:4px;white-space:normal;overflow-wrap:anywhere}
.edi-table .edi-business,.edi-table .row-actions span{overflow-wrap:anywhere}
.edi-table .row-actions{gap:4px}
.edi-table td:last-child .row-actions{flex-wrap:nowrap;white-space:nowrap}
.edi-table td:last-child button{flex:none}
@media(max-width:1300px){.edi-table col:first-child{width:24%}}
.edi-columns{list-style:none;padding:0;margin:0 0 12px}.edi-columns li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.edi-columns strong{margin-right:auto;overflow-wrap:anywhere}.column-kind{color:var(--muted);font-size:.85rem}
.column-description{display:grid;gap:3px;margin-right:auto;min-width:0}.column-description small{color:var(--muted)}
.top-actions,.account-menu summary,.period-label,.person-line{display:flex;align-items:center;gap:10px}
.account-menu{position:relative;z-index:5}
.account-menu summary{cursor:pointer;list-style:none;color:var(--muted);border-radius:24px;padding:3px}
.account-menu summary::-webkit-details-marker{display:none}
.account-menu summary:focus-visible{outline:2px solid var(--brand)}
.avatar{display:inline-grid;place-items:center;flex:none;width:36px;height:36px;background:var(--brand);color:white;font-size:.85rem;font-weight:700;border-radius:50%}
.avatar.small{background:var(--tint);color:var(--deep)}
.account-pop{position:absolute;right:0;top:calc(100% + 8px);width:220px;display:grid;gap:4px;padding:14px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 30px #211a471c;overflow-wrap:anywhere}
.account-pop small,.person-line small,.month-stat small{display:block;color:var(--muted)}
.account-pop button{border:0;justify-content:flex-start}
.account-pop small{padding-bottom:9px;border-bottom:1px solid var(--line)}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.settings-services{display:grid;gap:18px;min-width:0}
.settings-grid>[data-staff-slot]{grid-column:1/-1;min-width:0}
.settings-grid .panel{margin:0}.settings-grid h2{display:flex;align-items:center;gap:9px}
.settings-grid .panel-note{margin:0}.settings-grid [data-state]{padding-top:0}
.office-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0;padding:18px 20px}
.office-facts dt,.period-label{color:var(--muted);font-size:.85rem}
.office-facts dd{margin:4px 0 0;font-weight:600;overflow-wrap:anywhere}
.person-line{min-width:0;overflow-wrap:anywhere}.staff-list li{flex-wrap:wrap}
.period-label{font-weight:600}.month-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));gap:12px;padding:16px}
.month-stat{padding:16px;border:1px solid var(--line);border-radius:10px;background:#fafafe;min-width:0;overflow-wrap:anywhere}
.month-stat h3{margin:0;font-size:.95rem}.month-stat p{margin:8px 0;color:var(--muted);font-size:.85rem}.month-stat strong{color:var(--ink);font-size:2rem}
.month-stat progress{width:100%;height:6px;accent-color:var(--brand)}.month-stat small{margin-top:4px}
.notes-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(265px,32%);border-radius:0 0 var(--radius) var(--radius)}
.notes-inbox{min-width:0;padding:0 20px 16px}
.notes-switch{display:flex;gap:18px;border-bottom:1px solid var(--line)}
.notes-switch button{border:0;border-radius:0;border-bottom:2px solid transparent;color:var(--muted);background:transparent;padding:14px 2px 12px}
.notes-switch button[aria-pressed=true]{color:var(--brand);border-color:var(--brand)}
.notes-switch span,.notes-history summary span{font-size:.75rem;padding:2px 7px;border-radius:15px;background:#f0f1f5}
.notes-switch [aria-pressed=true] span{background:var(--tint)}
.notes-empty{min-height:150px;display:grid;place-content:center;justify-items:center;gap:10px;text-align:center;color:var(--muted);font-size:.92rem}
.notes-empty>span{display:grid;place-items:center;width:46px;height:46px;background:#f2f0f9;color:var(--brand);border-radius:14px}
.note-list{list-style:none;margin:0;padding:0}
.note-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:12px;padding:17px 0}
.note-row+.note-row,.notes-history{border-top:1px solid var(--line)}
.note-byline{display:flex;gap:4px 12px;align-items:baseline;flex-wrap:wrap;font-size:.86rem}
.note-byline time,.note-finished,.note-pending{font-size:.78rem;color:var(--muted)}
.note-body{overflow-wrap:anywhere}.note-body p{white-space:pre-wrap;margin:4px 0 0}
.note-business{display:inline-flex;align-items:center;gap:6px;max-width:100%;margin-top:7px;font-size:.83rem;font-weight:600;text-decoration:none;color:var(--ink)}
.note-business.archived{color:var(--muted)}
.fee-table td:first-child{width:45%}.fee-table small{display:block;color:var(--muted);margin-top:4px}
.fee-table td:last-child{width:1%;white-space:nowrap}
.monthly-receipts :is(td,th):last-child{text-align:right;white-space:nowrap}
.monthly-receipts tbody :is(td:first-child,td:nth-child(3)){overflow-wrap:anywhere}
.fee-year-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));gap:16px;margin:0;padding:20px}
.fee-year-summary dt{font-size:.85rem;color:var(--muted)}.fee-year-summary dd{font-size:1.25rem;font-weight:650;margin:6px 0 0}
tbody tr:has([data-row-link]){cursor:pointer}
tbody tr:has([data-row-link]):is(:hover,:focus-within){background:#f7f7fb}
tbody [data-row-link],tbody [data-row-link]:is(:visited,:hover,:focus){color:var(--ink);text-decoration:none}
button[data-fee]:disabled:not([aria-busy="true"]){cursor:not-allowed}
.fee-invoices summary{cursor:pointer;font-weight:600}.fee-invoices ul{list-style:none;margin:8px 0;padding:0;max-height:12rem;overflow:auto}.fee-invoices li{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid var(--line)}
.fee-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:16px;padding:20px}
.fee-overview>div{display:grid;justify-items:start;align-content:start;gap:12px;padding:16px;background:#f8f8fc;border:1px solid var(--line);border-radius:10px}
.fee-overview h3{color:var(--muted);font-size:.9rem}.fee-overview strong{font-size:1.35rem}
.note-pending{border-radius:15px;background:#f5efdf;color:#74541e;padding:4px 9px}
.note-finished{display:block;color:#396950;margin-top:5px}
.note-done{align-self:center;min-height:33px}
.notes-history summary{color:var(--muted);font-size:.86rem;font-weight:600;cursor:pointer;padding:14px 0 4px}
.notes-history summary span{margin-left:5px}
.note-compose{display:grid;align-content:start;gap:14px;padding:20px;background:#f8f7fc;border-left:1px solid var(--line);border-bottom-right-radius:var(--radius)}
.note-compose h3{display:flex;gap:8px;align-items:center}.note-compose h3 svg{color:var(--brand)}
.note-compose textarea{resize:vertical;min-height:78px}.note-compose select{min-width:0;text-overflow:ellipsis}
.note-compose button{justify-self:end}.note-error{font-size:.87rem;color:#9e3040}
.note-jump{display:none}
.workspace:has(.dashboard){height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr)}
main:has(>.dashboard){width:100%;min-height:0;padding-block:clamp(12px,3vh,36px)}
.dashboard{height:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:clamp(10px,1.8vh,20px)}
.dashboard>.page-head,.dashboard>.panel{margin:0}
.dashboard [data-team-notes]{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}
.dashboard .notes-layout{min-height:0;grid-template-rows:minmax(0,1fr)}
.dashboard .notes-inbox{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);padding-bottom:0}
.dashboard [data-notes],.dashboard .note-compose{overflow-y:auto;overscroll-behavior-y:contain}
.dashboard [data-notes]:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
@media(max-height:950px){
  .dashboard .panel-head{padding-block:9px}.dashboard .month-stats{padding:8px 12px}
  .dashboard .month-stat{padding:9px 12px}.dashboard .month-stat p{margin:3px 0}
  .dashboard .note-compose{padding:14px;gap:9px}
}
@media(max-height:800px){
  main:has(>.dashboard){padding-block:12px}
  .dashboard .month-stat progress{display:block;margin:5px 0}
  .dashboard .month-stat strong{font-size:1.5rem}
  .dashboard .note-compose{gap:6px;padding:10px 14px}
  .dashboard .note-compose .field{gap:3px}
  .dashboard .note-compose textarea{height:58px;min-height:58px}
}
@media(max-width:850px){
  .notes-layout{grid-template-columns:minmax(0,1fr)}.note-jump{display:inline-flex}
  .note-compose{display:none;border:0;border-radius:0 0 var(--radius) var(--radius)}
  .composing .note-compose{display:grid}.dashboard .composing .notes-inbox{display:none}
}
@media(max-width:680px){
  .layout:has(.dashboard){height:100dvh;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
  .workspace:has(.dashboard){height:auto;min-height:0}
  .dashboard .edi-link-prefix,.dashboard .stat-description{display:none}
  .dashboard .panel-head h2{font-size:1rem}
  .dashboard .month-stats{display:flex;overflow-x:auto;gap:8px;padding:8px}
  .dashboard .month-stat{flex:1 0 5rem;padding:8px}.dashboard .month-stat strong{display:block;font-size:1.4rem}
}
@media(max-height:520px){
  .layout:has(.dashboard),.workspace:has(.dashboard),.dashboard{height:auto}
  .dashboard .notes-layout{height:65dvh;min-height:190px}
}
@media(max-width:540px){
  .notes-inbox{padding-inline:14px}.note-row{grid-template-columns:auto minmax(0,1fr);gap:6px 10px}
  .note-row>.btn,.note-row>.note-pending{grid-column:2;justify-self:start}
}
@media(max-width:950px){.settings-grid{grid-template-columns:1fr}}
@media(max-width:680px){.sidebar{flex-wrap:wrap}.sidebar nav{flex-wrap:wrap}.top-actions{gap:4px}.topbar{gap:4px}.bread>span:not([data-icon]),.bread>b{display:none}}
.side-nav hr{border:0;border-top:1px solid #ffffff24;margin:4px 8px}
@media(min-width:681px){
  .sidebar{overflow-y:auto}
  .sidebar .side-nav{display:flex;flex-direction:column;flex:1 0 auto}
  .side-nav [data-nav=settings]{margin-top:auto}
  .sidebar .side-foot{margin-top:10px}
}
@media(max-width:680px){.side-nav hr{display:none}}
