:root{--navy:#123c58;--green:#176752;--pale:#edf6f5;--line:#e2e9ed;--muted:#6e808c}*{box-sizing:border-box}body{margin:0;background:#f5f8fa;color:#203b4d;font:14px/1.5 system-ui,-apple-system,sans-serif}aside{position:fixed;width:220px;height:100vh;background:var(--navy);color:white;padding:32px 18px;display:flex;flex-direction:column}.brand{font-size:32px;font-weight:800;letter-spacing:3px;margin:0 18px 35px}.brand span{display:block;font-size:9px;letter-spacing:2px;color:#b0cedd}nav button{width:100%;text-align:left;margin:4px 0;border:0;background:none;color:#bfd0dc;padding:13px 17px;border-radius:8px}nav button.active{background:#ffffff18;color:white;box-shadow:inset 3px 0 #8bceb9}.aside-bottom{margin-top:auto;padding:18px;color:#d1e1e9}.aside-bottom small{font-size:11px;color:#9bb8c8}main{margin-left:220px;padding:30px 38px;max-width:1800px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}header small{color:var(--muted);font-size:10px;font-weight:700;letter-spacing:1.7px}h1{font-size:29px;margin:4px 0}h2{font-size:17px;margin:0 0 6px}h3{font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer;background:white;color:var(--navy);border:1px solid #d6e1e7;padding:9px 13px;border-radius:7px}button:hover{background:#eaf2f6}button.primary{background:var(--green);border-color:var(--green);color:white}.notice{background:#e8f2f4;border:1px solid #dae8eb;border-radius:7px;padding:10px 14px;font-size:10px;font-weight:800;letter-spacing:1px}.notice span{font-size:12px;font-weight:400;letter-spacing:0;margin-left:12px;color:#536e7e}.filters{display:flex;align-items:end;gap:14px;padding:20px 0}.filters label{font-size:11px;color:var(--muted)}input,select,textarea{border:1px solid #d4dfe6;border-radius:6px;background:white;padding:9px 10px;color:#234359;max-width:100%}.filters input,.filters select{display:block;margin-top:5px;min-width:160px}.spacer{flex:1}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:24px}.card,.panel{background:white;border:1px solid var(--line);border-radius:10px}.card{padding:19px 21px}.card small{color:var(--muted)}.card strong{display:block;font-size:30px;letter-spacing:-1px;margin:5px 0}.card em{font-style:normal;font-size:11px;color:var(--green)}.panel{padding:22px;margin-bottom:20px;overflow:auto}.sub{color:var(--muted);font-size:12px;margin:0 0 18px}.grid{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}table{width:100%;border-collapse:collapse;white-space:nowrap}th{font-size:11px;text-align:left;color:#768997;background:#f3f7f9;padding:12px}td{padding:13px 12px;border-bottom:1px solid #edf1f4;font-size:12px}tbody tr:hover{background:#f7fafb}.link{border:0;padding:0;background:transparent;text-align:left;font-weight:650}.badge{display:inline-block;font-size:10px;border-radius:5px;padding:4px 7px;background:#eaf2f7;color:#345b78}.badge.green{background:#e6f5ee;color:#1c7458}.badge.red{background:#fff0eb;color:#af5b42}.pill{display:inline-block;padding:3px 7px;background:#f1f4f7;border-radius:4px;margin:3px;font-size:10px}.bar{height:7px;background:#edf3f5;border-radius:10px;margin:7px 0 16px}.bar span{display:block;height:100%;background:#71aa9c;border-radius:10px}.barlabel{display:flex;justify-content:space-between;font-size:12px}footer{display:flex;justify-content:space-between;font-size:10px;color:#8b9aa5;margin-top:24px}.search{width:320px;margin-bottom:16px}.empty{padding:35px;text-align:center;color:var(--muted)}dialog{border:0;border-radius:14px;width:760px;max-width:95vw;padding:28px;box-shadow:0 20px 80px #123c5840;max-height:90vh;overflow:auto}dialog::backdrop{background:#15334666}.modalhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}form label{display:block;color:#5f7685;font-size:12px}form input,form select,form textarea{display:block;width:100%;margin-top:5px}.full{grid-column:1/-1}.actions{display:flex;justify-content:end;gap:10px;margin-top:20px}.history{border-left:2px solid #cce3dd;margin:14px 0;padding-left:15px}.history div{margin-bottom:15px;font-size:12px}.history small{color:var(--muted);display:block}#toast{position:fixed;bottom:25px;right:25px;background:var(--navy);color:white;padding:12px 24px;border-radius:8px;display:none}.tiny{font-size:11px;color:var(--muted)}.summary{background:#edf6f3;padding:13px;border-radius:6px;margin:12px 0;font-size:12px}.tabs{display:flex;gap:8px;margin-bottom:16px}@media(max-width:1100px){main{padding:24px}aside{width:180px}main{margin-left:180px}.cards{grid-template-columns:repeat(2,1fr)}.filters{flex-wrap:wrap}.grid{grid-template-columns:1fr}}@media(max-width:650px){aside{position:relative;width:100%;height:auto;padding:15px}.brand{margin:0;font-size:24px}nav{display:flex;overflow:auto}nav button{white-space:nowrap;width:auto;font-size:11px}.aside-bottom{display:none}main{margin:0;padding:18px}.filters{gap:8px}.filters select,.filters input{min-width:120px}.notice span{display:block;margin:4px 0}.formgrid{grid-template-columns:1fr}.cards{gap:8px}.card{padding:13px}footer span{display:none}header .primary{font-size:11px}}
/* AMSS green palette, based on supplied reporting reference. */
:root{--navy:#006b16;--green:#008000;--pale:#eef8ec;--line:#dceada;--muted:#657d69}body{background:#f5f9f4;color:#24452c}aside{background:#006b16}.brand span{color:#c3e5be}nav button{color:#d6ebd1}nav button.active{box-shadow:inset 3px 0 #b4e49f;background:#ffffff20}.aside-bottom{color:#e0efda}.aside-bottom small{color:#bddab5}.notice{background:#edf7e9;border-color:#d8e9d1}.notice span{color:#53734e}button{color:#176126;border-color:#d4e2cf}button:hover{background:#edf6e8}input,select,textarea{color:#285432;border-color:#d5e2d0}th{background:#eaf5e4;color:#38663c}.panel tbody tr:nth-child(even){background:#f3faef}tbody tr:hover{background:#e9f5e3}.badge{background:#eaf5e4;color:#36713b}.bar{background:#eaf2e5}.bar span{background:#65a94c}.summary{background:#edf7e7}.history{border-color:#cde3be}footer{color:#7d947b}
.brand{margin:0 0 25px;text-align:center;letter-spacing:1px}.brand img{display:block;width:100%;height:136px;object-fit:contain}.brand span{margin-top:2px;font-size:9px}@media(max-width:650px){.brand{display:flex;align-items:center;gap:4px;margin:0}.brand img{width:110px;height:75px}.brand span{font-size:10px}}
/* Compact CMO workspace */
:root{--navy:#075327;--green:#08752f;--line:#d8e6d7;--muted:#68806e}body{font-family:'Arial Narrow','Roboto Condensed',Arial,sans-serif;background:linear-gradient(120deg,#f7fbf7,#eef7f2);color:#163b23}aside{width:148px;padding:12px 8px;background:linear-gradient(165deg,#075d2b,#003e20);z-index:10}.brand{margin:0 0 12px}.brand img{height:100px;width:100%;object-fit:contain}.brand span{font-size:8px;letter-spacing:1.4px}nav button{font-size:12px;padding:10px 8px;margin:3px 0;border-radius:6px;color:#e6f2e6;line-height:1.3}nav button.active{background:#ccedc1;color:#073e1a;box-shadow:none;font-weight:700}.aside-bottom{padding:12px 6px;font-size:11px}.aside-bottom small{font-size:9px}main{margin-left:148px;padding:12px 14px;max-width:none}header{margin:0 0 8px;padding:0 3px 8px;border-bottom:1px solid #d8e8da;min-height:44px}header small{font-size:10px;color:#235d33;letter-spacing:1px}h1{font-size:18px;line-height:1.2;margin:3px 0 0}header button{font-size:11px;padding:7px 10px}.notice{font-size:9px;padding:5px 9px;border-radius:5px;margin-bottom:4px}.notice span{font-size:10px}.filters{padding:5px 0 9px;gap:7px;align-items:end}.filters label{font-size:10px}.filters input,.filters select{min-width:0;padding:5px 7px;height:28px;font-size:11px;margin-top:3px}.filters #branch{width:128px}.filters #month{width:65px}.filters #year{width:77px}.filters #owner{width:125px}.filters button{padding:6px 8px;font-size:10px;height:28px}.report-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:11px;align-items:start}.report-column{min-width:0;display:flex;flex-direction:column;gap:11px}.report-panel{background:white;border:1px solid #c7dec7;border-radius:8px;overflow:hidden;box-shadow:0 2px 5px #17532a09;min-width:0}.report-title{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(90deg,#076224,#135c30);padding:5px 9px;min-height:29px;color:white;gap:5px}.report-title h2{font-size:13px;line-height:1.3;margin:0;font-weight:700}.report-title h2 span{display:inline-flex;border:1px solid #b9d5b8;border-radius:50%;width:16px;height:16px;align-items:center;justify-content:center;font-size:10px;margin-right:3px}.report-title button{font-size:10px;background:none;border:0;color:#e5f4de;padding:2px 0;white-space:nowrap}.report-content{overflow-x:auto;padding:0 4px 4px}.report-panel table{table-layout:fixed;width:100%;font-variant-numeric:tabular-nums;border-collapse:collapse}.report-panel th,.report-panel td{font-size:11px;padding:4px 4px;line-height:1.15;text-align:right;border-bottom:1px solid #e4eee0;overflow:hidden;text-overflow:ellipsis;height:21px}.report-panel th{background:#e1f0da;color:#275a29;font-size:10px;font-weight:700;white-space:normal}.report-panel th:first-child,.report-panel td:first-child{text-align:left;width:114px}.report-panel tr:nth-child(even){background:#f0f8eb}.report-panel tr:nth-child(odd){background:#fff}.report-panel td:last-child,.report-panel th:last-child{background:#e7f4dc;font-weight:700}.report-panel .age-table th:first-child{width:132px}.report-panel .age-table .group-label{width:61px;white-space:normal;background:#e6f2df;font-size:10px;font-weight:700;border-right:1px solid #d7e7d0;vertical-align:middle}.report-panel .age-table td.age-label{width:71px;text-align:left;white-space:nowrap;font-size:10px}.report-panel .age-table td{font-size:10px;padding:3px;height:20px}.report-panel .age-table th{padding:4px 2px;font-size:10px}.report-panel .age-table colgroup{width:132px}.report-panel .staff-filters{display:flex;gap:6px;align-items:center;font-size:9px;padding:5px 1px;flex-wrap:wrap}.staff-filters input{padding:2px;font-size:10px;width:109px;border-radius:4px}.staff-filters span{margin-left:auto;color:#61785e}.staff-filters~table th:first-child{width:100px}.staff-filters~table td:first-child{width:100px;white-space:normal}.staff-filters~table th{font-size:9px}.staff-filters~table td{font-size:10px}.report-definition{font-size:14px;line-height:1.8}.dashboard-mode footer{font-size:9px;margin-top:9px}.dashboard-mode .notice{display:none}.panel{padding:16px}.search{font-size:12px}.dashboard-mode .filters{position:relative}.report-panel tr:hover{background:#e5f2df}.report-panel td span[title]{font-size:10px}.dashboard-mode main{padding-top:10px}.dashboard-mode header{min-height:38px}.dashboard-mode header h1{display:inline;font-size:17px;margin-left:10px}.dashboard-mode header small{font-size:12px;font-weight:700}.dashboard-mode header>div{display:flex;align-items:center;gap:5px}
@media(min-width:1550px){.report-panel td,.report-panel th{font-size:12px}.report-panel .age-table td{font-size:11px}.report-panel td,.report-panel .age-table td{height:23px}.report-title h2{font-size:14px}}
@media(max-width:1150px){aside{width:126px}main{margin-left:126px;padding:10px}.report-grid{gap:8px}.report-column{gap:8px}.report-panel th,.report-panel td{font-size:10px;padding:3px 2px}.report-panel th:first-child,.report-panel td:first-child{width:102px}.report-panel .age-table th:first-child{width:124px}.report-title h2{font-size:12px}.report-panel table{min-width:440px}.filters{flex-wrap:wrap}.filters .spacer{display:none}}
@media(max-width:850px){.report-grid{grid-template-columns:1fr}.report-panel table{min-width:500px}.dashboard-mode header>div{display:block}.dashboard-mode header h1{display:block;margin-left:0}.report-panel th,.report-panel td{font-size:11px}}
@media(max-width:650px){aside{position:relative;width:100%;padding:5px 9px;height:auto}.brand{display:flex;margin:0;gap:3px}.brand img{width:70px;height:50px}.brand span{font-size:9px}nav{display:flex;gap:3px;overflow-x:auto}nav button{font-size:10px;padding:8px;white-space:nowrap;width:auto}.aside-bottom{display:none}main{margin:0;padding:10px}.filters #branch{width:113px}.filters #owner{width:115px}.report-panel table{min-width:480px}.report-title{padding:7px}.report-grid{gap:10px}.report-column{gap:10px}}
@media(min-width:851px) and (max-width:1549px){.report-panel td,.report-panel th{line-height:1.15;height:18px;padding:2px 3px}.report-panel .age-table td{height:17px;line-height:1.15;padding:2px 3px}.report-panel .age-table th{height:19px;line-height:1.15;padding:3px 2px}.report-title{min-height:25px;padding:4px 8px}.report-content{padding-bottom:3px}.report-column{gap:9px}.report-panel th:first-child,.report-panel td:first-child{width:110px}.report-panel .age-table th:first-child{width:132px}}
/* User-managed appearance and catalogue */
body,button,input,select,textarea{font-family:var(--crm-font,'Arial Narrow',Arial,sans-serif)!important}
.report-panel table th,.report-panel table td,.report-panel .age-table td,.report-panel .age-table th,.staff-filters~table th,.staff-filters~table td,.panel table th,.panel table td{font-family:var(--crm-font,'Arial Narrow',Arial,sans-serif)!important;font-size:var(--crm-font-size,11px)!important;line-height:1.25!important;height:auto!important;min-height:18px}
.report-panel table th,.report-panel table td{overflow:hidden;text-overflow:ellipsis}.report-panel table td:first-child{white-space:normal}.report-panel table th{position:relative;padding-right:8px}.panel table th{position:relative}.column-resizer{position:absolute;right:0;top:0;bottom:0;width:7px;cursor:col-resize;touch-action:none;z-index:2;border-right:2px solid transparent}.column-resizer:hover,.column-resizer:focus{border-right-color:#2e8c47;background:#80bb9833;outline:none}.resizing-columns,.resizing-columns *{cursor:col-resize!important;user-select:none!important}.settings-mode .filters,.settings-mode #add,.settings-mode .notice{display:none}.settings-mode main{max-width:1500px}.settings-top{display:flex;justify-content:space-between;align-items:start;margin:18px 0;gap:15px}.settings-top h2{font-size:20px;margin-bottom:6px}.settings-top p{font-size:12px;color:#637f69;margin:0;line-height:1.6}.saved-label{white-space:nowrap;color:#267344;background:#e5f3e7;font-size:11px;padding:5px 10px;border-radius:20px}.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px;align-items:start}.settings-card{border:1px solid #d4e4d5;background:#fff;border-radius:10px;padding:20px;box-shadow:0 2px 7px #164c2507}.settings-card h3{font-size:15px;margin:0 0 13px}.settings-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.settings-form label{font-size:12px;color:#5c7561}.settings-form select{display:block;width:100%;margin-top:5px;padding:8px;font-size:13px}.font-preview{background:#f1f7ef;padding:16px;border:1px dashed #cedfcb;border-radius:7px;margin:15px 0;white-space:normal}.settings-help{font-size:12px;line-height:1.65;color:#65816a;margin:7px 0 13px}.settings-card button{font-size:12px;padding:8px 10px;margin:2px}.catalog-list{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0}.catalog-tag{background:#edf6e9;color:#215d30;border:1px solid #d5e7cc;border-radius:6px;padding:7px 12px;font-size:12px;font-weight:700}.catalog-form{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.catalog-form input{flex:1;min-width:100px;font-size:12px}.catalog-form select{font-size:12px}.catalog-form button{margin:0}.staff-catalog{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:14px 0;max-height:250px;overflow:auto}.staff-catalog>div{display:flex;align-items:center;justify-content:space-between;border:1px solid #e0e9dd;border-radius:5px;padding:7px 9px;font-size:12px}.staff-catalog b{font-weight:500}.indicator-section{border-top:1px solid #e2eadf;margin-top:8px}.indicator-section summary{font-size:12px;font-weight:600;padding:11px 0;cursor:pointer;color:#285f34}.indicator-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-bottom:12px}.indicator-options label{font-size:11px;display:flex;align-items:center;gap:5px;line-height:1.4}.indicator-options input{accent-color:#176e34;width:15px;height:15px;margin:0}.indicator-actions button{margin-left:0}.form-feedback{font-size:12px;color:#237c3d;min-height:15px;margin:9px 0 0}.form-feedback.error{color:#b14332}.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:850px){.settings-grid{grid-template-columns:1fr}.settings-card{padding:16px}.settings-top h2{font-size:17px}.indicator-options{grid-template-columns:1fr 1fr}}

@font-face{font-family:'Roboto Condensed';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/roboto-condensed-400.ttf') format('truetype')}
@font-face{font-family:'Roboto Condensed';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/roboto-condensed-500.ttf') format('truetype')}
@font-face{font-family:'Roboto Condensed';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/roboto-condensed-600.ttf') format('truetype')}
@font-face{font-family:'Roboto Condensed';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/roboto-condensed-700.ttf') format('truetype')}
.catalog-tag{display:inline-flex;align-items:center;gap:8px}.settings-card .catalog-delete{border:0;background:transparent;color:#a6483c;border-radius:4px;font-size:18px;line-height:1;width:23px;height:23px;padding:0;margin:0;flex:0 0 auto}.settings-card .catalog-delete:hover{background:#fbece8;color:#922d22}.staff-catalog>div{gap:6px}.staff-catalog>div .badge{margin-left:auto}.archived-catalog{font-size:11px;border-top:1px solid #e1e9de;padding:10px 0;margin:10px 0;color:#607560}.archived-catalog summary{cursor:pointer;font-weight:600}.archived-catalog>div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:5px}.archived-catalog p{line-height:1.5}.archived-catalog button{font-size:11px;padding:4px 8px}
.settings-wide{grid-column:1/-1}.report-rename-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rename-field{display:flex;gap:12px;justify-content:space-between;align-items:center;margin:7px 0;font-size:11px}.rename-field input{width:62%;font-size:12px;padding:6px}.column-settings-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:15px 0}.column-settings-tabs button.selected{background:#e0f0d8;border-color:#79ad73}.column-editor{max-height:420px;overflow:auto;margin-bottom:12px}.column-editor-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(140px,2fr) 100px;gap:10px;align-items:center;padding:6px;border-bottom:1px solid #e4ecdf;font-size:12px}.column-editor-row input{font-size:12px;padding:6px}.column-editor-head{background:#edf6e9;font-weight:700;position:sticky;top:0}.column-remove{color:#9d4034}.event-custom-input{width:130px;font-size:var(--crm-font-size);padding:5px;border:1px solid #d4e3cf}.configured-sheet td:nth-child(-n+4),.configured-sheet th:nth-child(-n+4){position:static!important;box-shadow:none!important}.configured-sheet td:first-child,.configured-sheet th:first-child,.configured-sheet td.frozen-column,.configured-sheet th.frozen-column{position:sticky!important}.configured-sheet th.frozen-column{z-index:6;background:#14622b}.configured-sheet td.frozen-column{z-index:3;background:#fff}.configured-sheet tr:nth-child(even)>td.frozen-column{background:#f0f8ec}.configured-sheet .grid-action{position:sticky!important}.configured-sheet thead th{position:sticky!important;top:0}.configured-sheet tbody td{font-size:var(--crm-font-size)}@media(max-width:650px){.report-rename-grid{grid-template-columns:1fr}.column-editor-row{grid-template-columns:90px 1fr 85px;gap:5px}.column-editor-row input{width:100%;min-width:0}}
.column-editor-row input[aria-invalid="true"]{border-color:#b75646;background:#fff6f3}.configured-sheet tbody td:not(.frozen-column):not(.grid-action){position:static!important;left:auto!important}.configured-sheet thead th:not(.frozen-column){left:auto!important}.custom-cell-input{width:100%;min-width:90px;font-size:var(--crm-font-size,11px);padding:3px 4px;background:transparent;border:1px solid transparent;border-radius:3px}.custom-cell-input:focus{border-color:#347a3e;background:white;outline:none}
.column-order-list{margin-top:12px}.column-order-row{display:grid;grid-template-columns:24px minmax(135px,1fr) minmax(120px,1fr) auto;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #e1eadf}.column-order-row small{display:block;color:#65816c;font-size:11px}.column-order-row input{min-width:0;width:100%}.column-drag{cursor:grab;color:#45764f;font-size:22px}.column-order-actions{display:flex;gap:4px}.column-order-actions button{padding:5px 8px}.care-history-cell{white-space:normal!important;min-width:240px;vertical-align:top}.care-history-cell>div{max-height:100px;overflow:auto;padding:4px 0;border-bottom:1px solid #e2eae0}.care-history-cell b,.care-history-cell span{display:block;font-size:11px}.care-history-cell p{margin:3px 0;font-size:12px}@media(max-width:700px){.column-order-row{grid-template-columns:20px 1fr}.column-order-actions{grid-column:2}}
.dropdown-option-row{display:flex;gap:8px;margin:5px 0}.dropdown-option-row input{flex:1;min-width:0}.dropdown-option-row button{font-size:11px;padding:4px 9px}
.column-drag{touch-action:none;user-select:none;-webkit-user-select:none;display:flex;align-items:center;justify-content:center;min-height:32px;cursor:grab}.column-drag:active{cursor:grabbing}.column-dragging{opacity:.55;background:#e4f0dd}.column-drop-target{outline:2px solid #42843e;outline-offset:-2px;background:#e7f4df}
/* Consistent navigation alignment and readable interactive states. */
body>aside #nav button{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;column-gap:9px;text-align:left;line-height:1.35;min-height:39px;padding:8px 10px;margin:3px 0;color:#edf7ec;background:transparent;white-space:normal;box-sizing:border-box}
body>aside #nav .nav-icon{display:flex;justify-content:center;align-items:center;width:18px;min-width:18px;font-size:14px;line-height:1;color:inherit}body>aside #nav .nav-label{display:block;min-width:0;color:inherit;overflow-wrap:normal;word-break:normal}
body>aside #nav button:hover,body>aside #nav button:focus-visible{background:#e5f3df;color:#124d27}body>aside #nav button.active,body>aside #nav button.active:hover,body>aside #nav button.active:focus-visible{background:#ccedc1;color:#073e1a;font-weight:700;box-shadow:none}body>aside #nav button:focus-visible{outline:2px solid #b3dda3;outline-offset:1px}
.dashboard-mode main>header{align-items:center;padding-left:0;padding-right:0;margin-bottom:7px;min-height:43px}.dashboard-mode main>header>div{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px}.dashboard-mode main>header small{display:block;font-size:9px;line-height:12px;letter-spacing:1px}.dashboard-mode main>header h1{display:block;margin:0;font-size:18px;line-height:22px;text-align:left}
.report-panel th,.report-panel td{vertical-align:middle}.report-panel th:first-child,.report-panel td:first-child{text-align:left}.report-title h2{display:flex;align-items:center;gap:6px;line-height:1.25;margin:0}.report-title h2>span{flex-shrink:0}.report-panel table td{font-variant-numeric:tabular-nums}.report-panel .age-table td.age-label,.report-panel .age-table td.group-label{text-align:left}
@media(max-width:650px){body>aside #nav button{grid-template-columns:16px auto;width:auto;min-height:34px;white-space:nowrap;padding:6px 9px;column-gap:5px}body>aside #nav .nav-label{white-space:nowrap}}
.navigation-name-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 24px}.navigation-name-grid label{display:grid;grid-template-columns:145px minmax(0,1fr);align-items:center;gap:9px;font-size:12px}.navigation-name-grid input{width:100%;min-width:0;font-size:12px;padding:6px 8px}.navigation-name-grid input[aria-invalid=true]{border-color:#ad4d39;background:#fff4ef}@media(max-width:760px){.navigation-name-grid{grid-template-columns:1fr}}
.ads-matrix-panel{background:#fff;border:1px solid #d0e2cc;padding:14px;border-radius:8px}.ads-period-toolbar{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin:12px 0;font-size:11px}.ads-period-toolbar label{display:flex;flex-direction:column;gap:3px}.ads-period-toolbar input,.ads-period-toolbar select,.ads-period-toolbar button{font-size:12px;padding:6px 8px;min-height:31px}.ads-matrix-scroll{overflow:auto}.ads-matrix{width:100%;table-layout:fixed;border-collapse:collapse;min-width:680px;font-size:12px}.ads-matrix thead th{background:#11602c;color:#fff;padding:8px;text-align:right}.ads-matrix th:first-child{width:155px;text-align:left}.ads-matrix tbody th,.ads-matrix tbody td{border:1px solid #d8e7d2;padding:4px 6px;text-align:right;height:35px}.ads-matrix tbody th{text-align:left;color:#295334;background:#f2f8ed}.ads-matrix input{width:100%;min-width:0;text-align:right;font-size:13px;padding:4px;border:1px solid transparent;background:transparent;box-sizing:border-box}.ads-matrix input:focus{border-color:#38844c;background:white;outline:none}.ads-matrix input:invalid{border-color:#b95840;background:#fff3ee}.ads-matrix td:last-child{font-weight:700;background:#e6f3dc}.ads-matrix .ads-cost-start>*{border-top:2px solid #a5c79b}.ads-matrix .ads-total-row>*{background:#eaf5e1;font-weight:700}.ads-month-totals{display:flex;gap:20px;align-items:center;flex-wrap:wrap;background:#f1f8ec;padding:10px;margin-top:12px;font-size:12px}.ads-month-totals span{color:#638366}.ads-legacy{font-size:11px;margin-top:10px}.ads-legacy button{padding:3px 8px;font-size:11px}#adsMatrixFeedback{font-size:12px;color:#a2442b}
/* One compact page title, aligned with the filter and content edges. */
main>header,.dashboard-mode main>header,.customer-grid-mode main>header{display:flex;align-items:center;justify-content:space-between;min-height:32px;padding:0 0 5px;margin:0 0 5px;gap:10px}main>header>div,.dashboard-mode main>header>div{display:flex;align-items:center;justify-content:flex-start;flex-direction:row;gap:0;min-width:0}main>header small,.dashboard-mode main>header small{display:none}main>header h1,.dashboard-mode main>header h1,.customer-grid-mode main>header h1{display:block;margin:0;padding:0;text-align:left;font-size:17px;line-height:23px;letter-spacing:.2px}main>header>button,.dashboard-mode main>header>button{padding:4px 9px;font-size:11px;min-height:26px}.navigation-name-grid input{text-transform:uppercase}
@media(max-width:650px){
body>aside{position:relative;left:auto;top:auto;width:100%;max-width:100vw;height:auto;padding:6px 9px;overflow:hidden}body>aside #nav{display:flex;flex-wrap:nowrap;gap:5px;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;align-items:stretch;padding:3px 0 6px;scrollbar-width:thin;scrollbar-color:#8ab991 #f0f6ed;-webkit-overflow-scrolling:touch}body>aside #nav button{display:inline-flex;flex:0 0 auto;width:max-content;min-width:max-content;max-width:none;align-items:center;justify-content:flex-start;gap:6px;margin:0;padding:8px 10px;min-height:36px;white-space:nowrap;font-size:11px;line-height:18px}body>aside #nav .nav-icon{flex:0 0 16px;width:16px;font-size:13px}body>aside #nav .nav-label{flex:0 0 auto;width:auto;white-space:nowrap;line-height:18px}main,.dashboard-mode main,.customer-grid-mode main{margin-left:0;max-width:100%;min-width:0}main>header,.dashboard-mode main>header,.customer-grid-mode main>header{min-width:0;gap:8px;min-height:34px}main>header h1,.dashboard-mode main>header h1,.customer-grid-mode main>header h1{font-size:16px;line-height:21px;overflow-wrap:anywhere}main>header>button{flex:0 0 auto;white-space:nowrap;font-size:10px;padding:4px 7px}body>aside .brand{gap:8px}body>aside .brand img{width:56px;height:45px}.navigation-name-grid label{grid-template-columns:110px minmax(0,1fr)}
}
.ads-order-controls{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.ads-order-controls>span{display:inline-flex;align-items:center;gap:4px;border:1px solid #d5e5d0;border-radius:5px;padding:4px 7px}.ads-order-controls button{padding:2px 7px}.ads-matrix-panel details{font-size:12px;margin:8px 0}.ads-matrix-panel summary{cursor:pointer;color:#17632c}#adsMatrixSaveStatus{font-size:12px;color:#216a34;background:#edf6e8;padding:7px 10px;border-radius:4px}
.care-pane-tabs button[data-care-tab="appointment"]{background:#08752f;color:#fff;border-color:#08752f;font-weight:700}.care-pane-tabs button[data-care-tab="appointment"]:hover,.care-pane-tabs button[data-care-tab="appointment"].selected{background:#045322;color:#fff;border-color:#045322;box-shadow:0 0 0 2px #b7ddbd}

.care-pane-tabs button[data-care-tab="appointment"]{background:#fff;color:#08752f;border-color:#08752f;font-weight:700}.care-pane-tabs button[data-care-tab="appointment"]:hover,.care-pane-tabs button[data-care-tab="appointment"].selected{background:#e8f5e8;color:#045322;border-color:#08752f;box-shadow:none}
.admin-data-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:5px 0 9px;font-size:11px}.admin-data-toolbar button{padding:5px 9px;font-size:11px}.admin-danger{color:#9d2923;background:#fff4f1;border:1px solid #dfb5ae}.admin-danger:hover{color:#fff;background:#a53028}.admin-trash-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px;border-bottom:1px solid #e0e9dd}#adminPinForm label{display:block;margin:12px 0}#adminPinForm input{display:block;width:100%;margin-top:5px}#adminPinError{color:#a33026}
.event-audience{border:1px solid #d5e5d0;border-radius:7px;padding:12px;margin:14px 0}.event-audience>label{display:block;margin:7px 0}.event-audience select{display:block;width:100%;margin-top:5px}.event-audience input[type=checkbox]{width:auto}#audiencePreview{color:#11632c;background:#edf6e9;padding:8px;border-radius:4px;font-weight:700}#audienceError,#eventSetupError{color:#a33c24}
.report-data-audit{padding:7px 10px;margin:5px 0 9px;border:1px solid #e2d7aa;background:#fff9e8;color:#71592b;border-radius:5px;font-size:11px;line-height:1.5}.report-data-audit button{font-size:11px;color:#71592b;padding:3px 6px}
