@import url("/typography.css");
:root{font-family:var(--vf-font-family);color:#173b40;background:#f3f7f5;font-size:16px;line-height:1.5}
*{box-sizing:border-box}body{margin:0}a{color:#096e60}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}
button{padding:10px 15px;border:1px solid #bdcec8;border-radius:7px;color:#173b40;background:white;cursor:pointer}
button:hover{background:#edf5f1}button.primary{color:white;background:#117b6d;border-color:#117b6d}button:disabled{opacity:.6;cursor:wait}
input:not([type=checkbox]),select{width:100%;min-width:0;padding:11px;border:1px solid #aabeb6;border-radius:6px;background:white;color:#173b40}
label{display:block}label>input:not([type=checkbox]),label>select{display:block;margin-top:5px}input[type=checkbox]{width:18px;height:18px;vertical-align:middle}
input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid #67b8a8;outline-offset:2px}
.access-shell{max-width:1140px;margin:auto;padding:28px 24px 60px}.access-header,.toolbar,.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:space-between}
.access-header{padding-bottom:20px;border-bottom:1px solid #d6e4de;margin-bottom:24px}.brand{font-size:25px;font-weight:bold}.brand span{color:#117b6d}
h1{font-size:27px;line-height:1.25;margin:12px 0}h2{font-size:21px;margin:0 0 14px}p{margin:10px 0}.muted{color:#506d68}.card{background:white;border:1px solid #d6e4de;border-radius:12px;padding:24px;margin:20px 0}
.login-wrap{max-width:460px;margin:10vh auto;padding:0 18px}.login-wrap .card{padding:30px}.stack{display:grid;gap:18px}.login-wrap button{width:100%}.error{color:#a32d26;white-space:pre-wrap}.error:empty{display:none}
.notice{padding:14px 18px;background:#e8f3ee;border-radius:8px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:center}th,td{padding:13px 10px;border-bottom:1px solid #e0e9e5;overflow-wrap:break-word}th{font-size:14px;background:#f3f7f5}td .actions{justify-content:center}td button{font-size:14px;padding:7px 10px}
.pill{display:inline-block;padding:3px 10px;border-radius:20px;background:#e4f3eb;color:#176242;font-size:14px}.pill.off{background:#f4e9e7;color:#8f3830}
.pages{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:16px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.wide{grid-column:1/-1}
dialog{width:min(820px,calc(100vw - 28px));max-height:90vh;overflow:auto;border:1px solid #bdcec8;border-radius:12px;padding:26px;color:#173b40}dialog::backdrop{background:#173b4066}.dialog-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.dialog-title h2{margin:0}.grant{border:1px solid #d6e4de;border-radius:8px;padding:16px;margin:16px 0}.grant-controls{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}.checks{display:flex;gap:12px 20px;flex-wrap:wrap;margin:16px 0}.check{display:flex;align-items:center;gap:7px}.actions.end{justify-content:flex-end;margin-top:22px}.loading{text-align:center;padding:40px}#access-message:not(:empty){position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:12px 20px;background:#173b40;color:white;border-radius:8px;max-width:calc(100vw - 28px);z-index:5}
/* Personal access and the bounded order screen share the same phone layout. */
.access-shell,.login-wrap,.card,.grant,.formgrid>*,.grant-controls>*,.toolbar>*,.actions>*{min-width:0}
button{min-height:44px}button,input,select,textarea{max-width:100%}
input:not([type=checkbox]),select{min-height:46px;font-size:16px}
.dialog-title>button{flex:0 0 44px;font-size:24px;padding:3px}
.toolbar>label{flex:1 1 280px}.cell-value{min-width:0}
.select-selection-note{display:block;margin-top:6px;font-size:13px;line-height:1.4;color:#506d68;word-break:normal;overflow-wrap:normal}.select-selection-note[hidden]{display:none}
@media(max-width:1100px),(pointer:coarse){
 :root{font-size:15px}body{width:100%;min-width:0}
 .access-shell{padding:16px 12px max(32px,env(safe-area-inset-bottom))}
 .card{padding:16px;margin:16px 0}.access-header{align-items:flex-start;gap:12px;margin-bottom:18px;padding-bottom:14px}
 .access-header .actions{width:100%;justify-content:flex-start;gap:8px 14px}.access-header .actions>span{flex-basis:100%;font-weight:600}
 .access-header a{display:inline-flex;align-items:center;min-height:44px}.brand{font-size:24px}
 h1{font-size:24px}h2{font-size:20px}h3{font-size:17px;line-height:1.4}
 p,label,.notice,.error,.master-picker summary,.master-picker-options label{word-break:normal;overflow-wrap:break-word}
 .notice{padding:12px}.formgrid,.grant-controls{grid-template-columns:minmax(0,1fr);gap:14px}.wide{grid-column:auto}
 .toolbar{gap:12px}.toolbar>label,.toolbar>button{flex-basis:100%;width:100%}.toolbar h2{margin:0}
 .actions{gap:8px}.actions.end{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:20px}
 .actions.end>button{width:100%;padding:10px 8px;font-size:15px;line-height:1.35;white-space:normal;word-break:normal}
 .actions.end>button.primary{grid-column:1/-1}.actions.end>button:only-child{grid-column:1/-1}
 .pages{gap:10px;justify-content:space-between}.pages>span{white-space:nowrap;font-variant-numeric:tabular-nums}.pages>button{padding:10px 12px}
 .login-wrap{margin:5vh auto 28px;padding:0 16px}.login-wrap .card{padding:22px 18px}.login-wrap h1{font-size:24px}
 dialog{width:calc(100% - 16px);max-width:560px;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);margin:auto;padding:16px;overscroll-behavior:contain;scroll-padding:16px;border-radius:12px}
 .dialog-title{align-items:flex-start;margin-bottom:16px}.dialog-title h2{padding-top:7px;overflow-wrap:break-word}
 .grant{padding:14px;margin:14px 0}.grant .grant{padding:12px;margin:12px 0;background:#f8faf9}
 .checks{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin:12px 0}.check{min-height:44px;gap:10px}
 input[type=checkbox]{flex:0 0 20px;width:20px;height:20px}.master-picker summary{min-height:46px;font-size:16px}
 .master-picker-options{gap:2px;padding:8px}.master-picker-options label{min-height:44px;padding:4px;gap:10px}
 .table-wrap{overflow:visible;margin-top:16px}.mobile-cards,.mobile-cards tbody{display:block;width:100%;min-width:0}
 .mobile-cards thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .mobile-cards thead tr,.mobile-cards thead th{display:block;width:1px;height:1px;padding:0;border:0;overflow:hidden;white-space:nowrap}
 .mobile-cards tbody{display:grid;gap:14px}.mobile-cards tr{display:block;width:100%;padding:4px 12px;border:1px solid #d6e4de;border-radius:10px;background:#fff}
 .mobile-cards td{display:grid;grid-template-columns:minmax(130px,2fr) minmax(0,3fr);gap:12px;align-items:start;width:100%;padding:10px 0;text-align:left;font-size:14px;line-height:1.45;word-break:normal;overflow-wrap:break-word}
 .mobile-cards td::before{content:attr(data-label);font-size:13px;font-weight:600;color:#506d68;text-align:left;overflow-wrap:normal}
 .mobile-cards td:first-child .cell-value{font-weight:600}.mobile-cards td:last-child{border-bottom:0}
 .mobile-cards .cell-actions{display:block}.mobile-cards .cell-actions::before{display:none}
 .mobile-cards .cell-actions .actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.mobile-cards .cell-actions button{width:100%;min-height:44px;font-size:15px;padding:10px}
 #access-message:not(:empty){bottom:max(12px,env(safe-area-inset-bottom));width:calc(100% - 24px);max-width:560px;padding:12px 16px}
}
@media(max-width:359px){.access-shell{padding-left:8px;padding-right:8px}.card{padding:12px}.mobile-cards td{grid-template-columns:minmax(0,1fr);gap:4px}.actions.end{grid-template-columns:minmax(0,1fr)}}

.master-picker{position:relative;min-width:0}.master-picker summary{cursor:pointer;padding:10px 12px;border:1px solid #9abdb0;border-radius:8px;background:white;overflow-wrap:break-word}.master-picker-options{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid #d6e4de;border-radius:8px;background:white}.master-picker-options label{display:flex;align-items:center;gap:8px;overflow-wrap:break-word}.master-picker-options input{width:auto;flex:0 0 auto}

.staff-nav{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 24px}.staff-nav a{display:block;min-width:0;padding:12px 16px;border:1px solid #9abdb0;border-radius:8px;color:#164942;background:#fff;text-decoration:none;overflow-wrap:break-word}.staff-nav a[aria-current]{background:#dbf0e7;font-weight:700}.staff-filter{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.staff-filter label{flex:1;min-width:160px}.staff-filter button{min-height:44px}.staff-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}.staff-metrics h2{font-size:15px;font-weight:400;line-height:1.5}.staff-metrics strong{font-size:24px;white-space:normal;overflow-wrap:normal}.cell-value{min-width:0}.cell-value>div+div{margin-top:6px}
@media(max-width:1100px),(pointer:coarse){.staff-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:8px}.staff-nav a{min-height:44px}.staff-filter{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.staff-filter label{min-width:0}.staff-metrics strong{font-size:22px}}

@media(min-width:1101px) and (pointer:fine){.order-body .access-shell{max-width:1600px}.order-body #orders table{table-layout:fixed;width:100%}.order-body #orders th,.order-body #orders td{font-size:13px;line-height:1.5;padding:10px 5px;word-break:normal;overflow-wrap:break-word}.order-body #orders td button{font-size:13px;padding:7px 6px}.order-body #orders th{font-size:12px}}
@media(max-width:1100px),(pointer:coarse){.order-body #orders colgroup{display:none}}

/* Employee command forms: full labels and amounts on both screen sizes. */
#staff-edit-dialog{width:min(900px,calc(100vw - 28px))}
#staff-edit-form{margin-top:20px}#staff-edit-form textarea{display:block;width:100%;min-width:0;font:inherit;padding:11px;border:1px solid #aabeb6;border-radius:6px;color:inherit;resize:vertical}
.staff-repeat,.staff-multiselect{min-width:0;border:1px solid #d6e4de;border-radius:8px;padding:14px;margin:0}
.staff-repeat legend,.staff-multiselect legend{padding:0 6px;font-weight:600}
.staff-edit-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr) minmax(0,1.5fr) auto;align-items:end;gap:10px;padding:12px 0;border-bottom:1px solid #e0e9e5;margin-bottom:12px}
.staff-edit-row:has(label:nth-of-type(2):last-of-type){grid-template-columns:minmax(0,3fr) minmax(0,1fr) auto}
.staff-edit-row label{min-width:0}.staff-edit-row button{margin-bottom:0;align-self:center}.staff-multiselect{max-height:360px;overflow:auto}.staff-multiselect .check{padding:6px 0;overflow-wrap:anywhere}
.staff-edit-toolbar{margin-bottom:18px}.staff-edit-toolbar>label{flex:1 1 300px;min-width:0;max-width:600px}
#staff-edit-dialog select{min-width:0;width:100%;text-overflow:ellipsis}.staff-edit-row .select-selection-note{grid-column:1/-1}
@media(max-width:700px){#staff-edit-dialog{width:calc(100vw - 16px)}.staff-edit-row,.staff-edit-row:has(label:nth-of-type(2):last-of-type){grid-template-columns:minmax(0,1fr);gap:12px}.staff-edit-row button{justify-self:start}.staff-repeat,.staff-multiselect{padding:10px}.staff-edit-toolbar>label,.staff-edit-toolbar>button{width:100%;max-width:none}.staff-edit-row .select-selection-note{overflow-wrap:break-word}}

.staff-edit-row.staff-edit-many{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:700px){.staff-edit-row.staff-edit-many{grid-template-columns:minmax(0,1fr)}}

.role-tab[hidden],.role-direction[hidden]{display:none!important}

.cash-registry-controls {
 display:flex;
 flex-wrap:wrap;
 align-items:end;
 gap:12px;
 margin-bottom:16px;
}
.cash-registry-controls .staff-filter {
 display:flex;
 align-items:end;
 flex:0 1 auto;
 width:auto;
 gap:8px;
}
.cash-registry-controls .staff-filter label {min-width:0}
.cash-registry-controls .staff-filter label[hidden] {display:none!important}
.cash-registry-controls [data-cash-create] {margin-inline-start:auto}
.cash-registry-controls :is(button,input,select) {min-height:44px}
.cash-metrics {
 grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));
 gap:8px;
}
.cash-metrics .card {margin:0;padding:12px}
body[data-vf-front=bento] .access-shell .cash-metrics .card {margin:0;padding:12px}
.cash-metrics p {margin:0 0 4px}
.cash-metrics strong {
 display:block;
 font-size:clamp(16px,3vw,22px);
 font-variant-numeric:tabular-nums;
 text-align:center;
 overflow-wrap:break-word;
}
.cash-row-actions .actions {justify-content:flex-end;flex-wrap:wrap;gap:6px}
.cash-row-actions button {padding-inline:8px}
.cash-row-actions .actions:empty {display:none}
#message[data-cash-saved] {color:#225d3b}
@media(max-width:700px) {
 .cash-registry-controls .staff-filter {width:100%}
 .cash-registry-controls .staff-filter label {flex:1 1 130px}
 .cash-registry-controls .staff-filter.workspace-filter-fields>label:has(input[type=date]) {flex:1 1 calc(50% - 8px)}
}
@media(max-width:420px) {
 .cash-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}
}

.staff-payroll-controls {margin-bottom:8px}
.staff-payroll-actions {
 display:flex;
 flex-wrap:wrap;
 gap:8px;
 justify-content:flex-end;
 margin-inline-start:auto;
}
.staff-payroll-actions:empty {display:none}
.staff-payroll-status {margin:8px 0 12px;width:fit-content}
.staff-payroll-status.notice {padding:8px 12px}
.staff-fund-matrix .staff-fund-row {
 grid-template-columns:minmax(0,1.45fr) repeat(3,minmax(0,1fr));
 align-items:center;
 gap:8px 12px;
 margin:0;
 padding:8px 0;
}
.staff-fund-row>strong {font-size:13px;overflow-wrap:break-word}
.staff-fund-row input[type=number] {margin-top:0}
.staff-fund-matrix .staff-fund-row:not(:first-child) label>span {
 position:absolute;
 clip-path:inset(50%);
 width:1px;
 height:1px;
 overflow:hidden;
}
.staff-fund-total {margin:10px 0 0;font-size:13px}
@media(max-width:600px) {
 .staff-payroll-actions {width:100%}
 .staff-fund-matrix .staff-fund-row {grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}
 .staff-fund-row>strong {grid-column:1/-1}
 .staff-fund-matrix .staff-fund-row:not(:first-child) label>span {
  position:static;
  clip-path:none;
  width:auto;
  height:auto;
  overflow:visible;
 }
}

