:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;color-scheme:light}body{margin:0}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:#fff;border-right:1px solid #e6eaf0;padding:30px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;color:#172b27;font-size:23px;font-weight:750;letter-spacing:-.7px;padding:0 10px 35px}.brand-mark{background:#147d64;color:#fff;width:37px;height:39px;border-radius:10px;display:grid;place-items:center;font-size:25px}.brand-sub{display:block;font-size:8px;letter-spacing:1.4px;color:#82928f;margin-top:1px}.nav-caption{font-size:9px;letter-spacing:1.6px;font-weight:650;color:#9aa6b4;padding:0 12px 12px}.nav-link{display:flex;align-items:center;gap:12px;padding:11px 13px;margin-bottom:5px;border-radius:7px;font-size:12px;color:#64748b;font-weight:550}.nav-link:hover{background:#f4f8f7}.nav-link.selected{background:#eaf5f0;color:#10795a}.nav-symbol{font-size:20px;width:20px;text-align:center;line-height:20px}.sidebar-bottom{margin-top:auto;padding:20px 12px 0;border-top:1px solid #edf0f3;font-size:11px;color:#60746e}.workspace{margin-left:224px;min-height:100vh}.topbar{height:76px;padding:0 32px;background:white;border-bottom:1px solid #e6eaf0;display:flex;align-items:center;justify-content:space-between;gap:16px}.avatar{width:31px;height:31px;border-radius:50%;background:#e8f3ed;color:#26705b;display:grid;place-items:center;font-size:12px;font-weight:650}h1{font-size:25px!important;letter-spacing:-.7px;font-weight:650!important;color:#1d302e}h2{font-size:14px!important;font-weight:650!important;color:#263c37}.subtitle{font-size:12px;color:#89949f;margin-top:5px}.panel{background:#fff;border:1px solid #e5e9ee;border-radius:10px;overflow:hidden}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#147d64;color:white;padding:9px 15px;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}.btn:hover{background:#106b55}.btn-secondary{background:#fff;color:#53645f;border:1px solid #dde4e0}.btn-secondary:hover{background:#f3f7f5}.btn-danger{background:#c84545}.search{min-width:230px;max-width:100%;padding:9px 12px;border:1px solid #e1e6ec;border-radius:6px;font-size:12px;background:white;outline:none}.search:focus,input:focus,select:focus,textarea:focus{border-color:#4b9e86;outline:2px solid #e4f3ed}table{width:100%;border-collapse:collapse;font-size:16px;white-space:nowrap}th{font-size:12px;background:#f8fafb;text-align:left;font-weight:550;color:#7b8794;border-top:1px solid #eef1f4;border-bottom:1px solid #eef1f4}th,td{padding:14px 18px}td{font-size:16px;border-bottom:1px solid #eff2f5;color:#52615e}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdfc}.table-link{color:#147d64;font-weight:550}.badge{display:inline-block;font-size:10px;padding:4px 8px;border-radius:4px;background:#edf7f1;color:#358363}.notice{background:#edf7f1;border:1px solid #cde7d8;border-radius:6px;padding:12px 16px;font-size:12px}.field label{display:block;font-size:12px;font-weight:550;color:#45564f;margin-bottom:7px}.field input:not([type=checkbox]),.field select,.field textarea{display:block;width:100%;padding:10px 12px;border:1px solid #dde4e8;border-radius:6px;background:white;font-size:13px}.field input[type=checkbox],.permission-check{accent-color:#147d64;width:16px;height:16px}.field input[type=file]{font-size:12px}.field .helptext{font-size:11px;line-height:1.6;color:#919da6;margin-top:6px}.errorlist{color:#bd3434;font-size:12px;margin:6px 0;list-style:none}.field:has(textarea),.field:has(input[type=file]){grid-column:1/-1}.stat-value{font-size:28px;line-height:1.3;font-weight:650;color:#213d34;letter-spacing:-.8px}.empty{padding:55px 24px;text-align:center;color:#95a19c}.detail-value{font-size:13px;color:#42594e;white-space:pre-wrap;overflow-wrap:anywhere}.detail-label{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#939ea6;margin-bottom:8px}.related-search{margin-bottom:6px;background:#f8faf9!important;font-size:12px!important}@media(max-width:800px){.sidebar{position:static;width:auto;padding:16px}.brand{padding:0 8px 16px}.sidebar nav{display:flex;flex-wrap:wrap;gap:3px}.nav-caption,.sidebar-bottom{display:none}.nav-link{padding:7px 9px;margin:0;font-size:11px}.nav-symbol{font-size:16px}.workspace{margin-left:0}.topbar{height:auto;min-height:60px;padding:14px 20px;flex-wrap:wrap}.stat-value{font-size:24px}.search{min-width:0}}

.overview-cards .stat-value{font-size:36px;font-weight:500;overflow-wrap:anywhere}.overview-cards>a{min-width:0}@media(max-width:800px){.overview-cards .stat-value{font-size:32px}}

.ev-records th{font-size:16px;font-weight:600}.ev-records .text-xs,.ev-records .search,.ev-records .btn{font-size:14px}.ev-records td svg{width:20px;height:20px}

.sidebar .nav-link,.add-record-btn{font-size:16px}

.mobile-nav{display:none}
@media(max-width:800px){
  .sidebar{display:none}
  .workspace{margin-left:0;padding-bottom:calc(88px + env(safe-area-inset-bottom));min-width:0}
  .workspace main{padding:20px 16px}
  .topbar{padding:12px 16px;gap:10px}
  .topbar>span{font-size:13px;overflow-wrap:anywhere}
  .topbar>div{gap:12px;min-width:0;max-width:100%}
  .topbar>div>a{font-size:14px;overflow-wrap:anywhere;min-width:0}
  .topbar .avatar{flex-shrink:0}
  .topbar button{min-height:44px;font-size:14px}
  .workspace main>div.flex{flex-wrap:wrap;gap:12px}
  .panel{min-width:0;max-width:100%}
  .panel>.p-4.flex,.panel>.p-5.flex{flex-wrap:wrap;gap:12px}
  .panel>.p-4>form{display:flex;flex-wrap:wrap;gap:8px;width:100%;min-width:0}
  .search{flex:1 1 180px;width:100%;font-size:16px!important;min-height:44px}
  .btn{min-height:44px;font-size:14px}
  .add-record-btn{font-size:16px}
  .field{min-width:0}
  .field label{font-size:14px}
  .field input:not([type=checkbox]),.field select,.field textarea,.field input[type=file],.related-search{font-size:16px!important;min-height:44px;max-width:100%;min-width:0}
  .panel>.p-6{padding:20px 16px}
  .panel>form.flex{flex-wrap:wrap}
  .panel.grid>div{min-width:0}
  .detail-value{overflow-wrap:anywhere}
  .overflow-x-auto{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  th,td{padding:12px}
  td .inline-flex.p-2{min-height:44px;min-width:44px;justify-content:center}
  .pagination,.pagination>div{flex-wrap:wrap;gap:12px}
  .overview-cards>.col-span-2{grid-column:1/-1}
  .mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:50;display:flex;align-items:stretch;background:#fff;border-top:1px solid #dde7e2;box-shadow:0 -4px 20px #173d2910;padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
  .mobile-nav-link{flex:1;min-width:0;min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#64748b;font-size:12px;font-weight:600;border-radius:8px;text-decoration:none;cursor:pointer;list-style:none}
  .mobile-nav-link.selected,.mobile-nav-link:hover,.mobile-more[open]>summary{background:#eaf5f0;color:#10795a}
  .mobile-nav-link:focus-visible,.mobile-more-menu a:focus-visible,.mobile-more-menu button:focus-visible{outline:2px solid #147d64;outline-offset:-2px}
  .mobile-more{flex:1;min-width:0}
  .mobile-more summary::-webkit-details-marker{display:none}
  .mobile-more-menu{position:absolute;bottom:calc(100% + 8px);left:12px;right:12px;max-height:calc(100dvh - 120px - env(safe-area-inset-bottom));overflow-y:auto;border:1px solid #dde7e2;border-radius:14px;background:white;padding:12px;box-shadow:0 8px 40px #173d2926}
  .mobile-menu-title{display:block;padding:8px 12px;color:#89949f;font-size:12px;font-weight:600}
  .mobile-more-menu a,.mobile-more-menu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:12px;border-radius:8px;font-size:16px;color:#42594e;text-align:left}
  .mobile-more-menu a:hover,.mobile-more-menu a[aria-current=page],.mobile-more-menu button:hover{background:#eaf5f0;color:#10795a}
}

.staff-page,.staff-page table,.staff-page th,.staff-page td,.staff-page .btn,.staff-page .search,.staff-page .pagination{font-size:16px}.staff-page h1,.staff-page h2{font-size:16px!important}

.sign-out-btn,.account-name{font-size:14px}

.record-form-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:12px;align-items:start}
.record-form{min-width:0;width:100%;max-width:none}
.ev-form .field label,.ev-form .field input:not([type=checkbox]),.ev-form .field select,.ev-form .field textarea{font-size:16px}
.ev-form .field .helptext,.ev-form .record-help{font-size:12px;line-height:1.6}
.record-history{padding:20px;min-width:0}
.record-history h2{font-size:16px!important}
.history-list{list-style:none;margin:16px 0 0;padding:0}
.history-list>li{padding:16px 0;border-top:1px solid #edf0f3}
.history-action{font-size:14px;font-weight:600;color:#213d34}
.history-meta,.history-empty{font-size:12px;line-height:1.7;color:#64748b;overflow-wrap:anywhere;margin-top:6px}
.history-details summary{cursor:pointer;font-size:12px;color:#147d64;padding:10px 0}
.history-details dl{font-size:12px;overflow-wrap:anywhere}
.history-details dl>div{padding:8px 0}
.history-details dt{font-weight:600;margin-bottom:4px}
.history-details dd{margin:0;white-space:pre-wrap}
.history-old{color:#89949f}.history-arrow{padding:0 8px;color:#147d64}
.history-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px}
.history-pagination a{padding:12px 0}
@media(max-width:1100px){.record-form-layout{grid-template-columns:minmax(0,1fr)}.record-history{width:100%}}

.back-to-records{font-size:12px}

.employee-form .field label,.employee-form .field input:not([type=checkbox]),.employee-form .field select,.employee-form .field textarea{font-size:16px}.employee-form .related-search{font-size:16px!important}

.compact-form-heading{margin-bottom:12px}.compact-form-heading h1{margin-top:4px}
.compact-form-layout .record-form>.p-6{padding:16px}
.compact-form-layout .record-form .grid{gap:12px}
.compact-form-layout .field label{margin-bottom:4px}
.compact-form-layout .field input:not([type=checkbox]),.compact-form-layout .field textarea{padding:8px 10px}
.compact-form-layout .field textarea{height:72px;min-height:72px;resize:vertical}
.compact-form-layout .field .helptext{margin-top:4px}
.compact-form-layout .record-help{margin-top:12px;padding:8px 10px}
.compact-form-layout .record-form>.border-t{padding:12px 16px}
.compact-form-layout .record-history{padding:16px}

.compact-form-heading,.compact-form-layout{width:75%;max-width:none;margin-left:auto;margin-right:auto}
.compact-form-layout{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
@media(max-width:1100px){.compact-form-heading,.compact-form-layout{width:100%}.compact-form-layout{grid-template-columns:minmax(0,1fr)}}

.compact-form-layout .field label,.compact-form-layout .field input:not([type=checkbox]),.compact-form-layout .field select,.compact-form-layout .field textarea{font-size:16px}.compact-form-layout .related-search{font-size:16px!important}.compact-form-layout .field .helptext,.compact-form-layout .record-help{font-size:12px}

.ev-financials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px;align-items:start}.ev-financials .pagination,.ev-financials .pagination>div{flex-wrap:wrap;gap:12px}@media(max-width:1100px){.ev-financials{grid-template-columns:minmax(0,1fr)}}

.record-view{width:75%;margin-left:auto;margin-right:auto;min-width:0}
.record-view>.flex{margin-top:4px;margin-bottom:12px;flex-wrap:wrap;gap:12px}
.record-view>.panel.grid{padding:16px;gap:12px}
.record-view .detail-label{font-size:16px;text-transform:none;letter-spacing:normal;margin-bottom:4px}
.record-view .detail-value{font-size:16px}
.record-view .subtitle{font-size:12px}
.record-view .panel>.p-5{padding:16px}
.record-view .ev-financials{gap:12px;margin-top:12px}
.record-view>.panel.mt-6{margin-top:12px}
@media(max-width:1100px){.record-view{width:100%}}
