/* Palette taken from the supplied black-and-gold logo. */
:root{color:#302c23;background:#f5f5f2;--green:#8a671c;--line:#e8e5db;--muted:#918777;--red:#b45548}
.sidebar{background:#11110f;color:#c3b997;padding-top:24px}
.brand{flex-direction:column;gap:12px;padding:0 0 35px;color:#eed495;font-size:19px;letter-spacing:2px;font-weight:600}
.brand-logo{width:110px;height:110px;object-fit:contain;display:block;border-radius:24px}
.nav-label{color:#81765a}
.nav-item{color:#bfb79e}
.nav-item svg{color:#a99b75}
.nav-item:hover{background:#232118}
.nav-item.active{color:#f2d790;background:#302a19;box-shadow:none}
.nav-item:focus-visible{outline:none;text-decoration:underline;text-underline-offset:5px}
.nav-item.active svg{color:#e8c873}
.nav-indicator{background:#d4af51}
.breadcrumb{color:#9b968b}.breadcrumb strong{color:#514935}.breadcrumb span{color:#d3cfc5}
.avatar{background:#f6edda;color:#8f6a20;border-color:#ead9ae}
.identity{color:#62543a}.identity svg{color:#a49a85}
main{padding-top:22px}
.page-meta{display:flex;justify-content:flex-end;min-height:27px;margin-bottom:17px}
.heading-date{color:#948b79}
.summary{gap:12px;margin-bottom:24px}
.summary-card{border-color:#e9e4d6;min-width:130px;padding:19px 17px}
.summary-card.balance{background:#faf4e3;border-color:#e8d6a8;min-width:190px}
.summary-label{color:#8d8061}
.summary-number,.summary-card:not(.balance) .summary-number{color:#4c3b17}
.summary-number .currency{color:#ae8b3f}
.stock-mark{color:#bb9e55;opacity:.17}
.ledger-panel{border-color:#e7e2d6;box-shadow:0 3px 12px #3b2c0903}
.table-toolbar{border-color:#ebe6d9}
.count{background:#f3efdf;color:#9b8657}
.search-box input,.table-actions>select{color:#776b51;border-color:#e7e2d5}
.search-box input:focus{border-color:#c0a258}
.search-box input::placeholder{color:#afa58f}
.search-box svg{color:#ab9f85}
.primary{color:#32270d;background:#dfbd66;border-color:#d7b65e}
.primary:hover{background:#d4af50;border-color:#cda74a}
button:focus-visible,a:focus-visible{outline-color:#c3a355}
td{border-color:#efede6}
tr:hover{background:#fdfbf5}
td input,td select{color:#554d3b}
td input:hover,td select:hover{border-color:#e8dfc8}
td input:focus,td select:focus{border-color:#b99b50;box-shadow:0 0 0 2px #c3a35519}
td input::placeholder{color:#c1bba9}
select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23a99a76' stroke-width='1.4'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E")}
.sign-button{background:#f8f0d7;border-color:#efdfb6;color:#9b741c}
.sign-button.minus{background:#fbefeb;border-color:#f0ddd5;color:#b1604c}
.creator{color:#8b8066}.mini-avatar{background:#f3efdf;color:#a1894c}
.cell-prefix:before{color:#a4936a}
.delete-row{color:#b7ac93}
.linked-row{background:#fcfaf4}
.linked-row td,.linked-text{color:#9a8c6a}
.linked-money.positive{color:#a27b26}.linked-money.negative{color:#b77964}
.linked-button,.link-badge{color:#ae955b}
.check-cell input.confirm-check{accent-color:#ac842c}
.check-cell input.confirm-check:focus-visible{outline-color:#c2a255}
.table-footer{color:#a59a80;border-color:#eae5d8}
.page-bottom{color:#a99a75;justify-content:flex-end}
.empty{color:#aa9b79}.empty-icon{background:#f7f3e7;color:#b5a16a}
.text-button{color:#a48536}
dialog{border-color:#e7daba;color:#554427;box-shadow:0 20px 80px #241a0a2b}
dialog::backdrop{background:#18150f70}
.dialog-logo{display:block;object-fit:contain;border-radius:18px;margin-bottom:22px}
dialog label,dialog p{color:#9c8a66}
dialog input{border-color:#e3d8ba;color:#5a492a}
dialog input:focus{border-color:#bc9b4c}
.secondary{background:#f7f4e9;border-color:#e8dfc7;color:#948263}
#toast{background:#62512b;box-shadow:0 4px 18px #3e2b1320}
#toast.error{background:#934b41}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
@media(min-width:1600px){main{padding-top:29px}.summary-card{padding:21px 22px}}
@media(max-width:1250px){.brand{font-size:17px;letter-spacing:1px}.summary-card{min-width:110px;padding:17px 13px}.summary-card.balance{min-width:170px}}
@media(max-width:850px){.brand{padding-bottom:30px}.brand-logo{width:48px;height:48px}.page-meta{margin-bottom:12px}.summary-card{min-width:130px}.summary-card.balance{min-width:190px}}
/* Spreadsheet grid and row locks. */
.table-scroll{min-height:440px}td{height:43px;border-right:1px solid #e8e5dc;border-bottom:1px solid #e8e5dc;padding:0 5px}td:last-child{border-right:0}tr:last-child td{border-bottom:1px solid #e8e5dc}td:first-child{padding-left:10px}td input,td select{height:33px;border-radius:0}.table-toolbar{min-height:66px;padding-top:14px;padding-bottom:14px}.summary-card{min-height:94px}.cell-prefix:before{top:13px}.draft-dot{top:19px;left:3px}
.blank-row:not(.first-blank) input:not(:focus)::placeholder{color:transparent}.blank-row:not(.first-blank) select:not(:focus){color:transparent;background-image:none}.blank-row:not(.first-blank) input[type=date]:not(:focus){color:transparent}.blank-row .creator,.blank-row .confirm-check,.blank-row .delete-row{visibility:hidden}.blank-row .cell-prefix:before{display:none}.blank-row:not(.first-blank) .sign-button{visibility:hidden}.blank-row:hover .sign-button{visibility:visible}.blank-row:hover select{color:#b4a781;background-image:inherit}.blank-row input:focus,.blank-row select:focus{color:#554d3b}.blank-row .delete-row{pointer-events:none}
.locked-row,.locked-row:hover{background:#eeeeeb}.locked-row td{background:#eeeeeb;color:#a7a79e}.locked-row input,.locked-row select{color:#a6a69c!important;cursor:not-allowed;border-color:transparent!important;box-shadow:none!important}.locked-row button{cursor:not-allowed;opacity:.4}.locked-row .mini-avatar{background:#e3e3df;color:#a6a69b}.locked-row .linked-money{color:#a6a69b}.locked-row td.remote-editing:after{border-color:#a1a19a}.locked-row td.remote-editing:before{background:#8a8a82;color:white}
input[type=date]::-webkit-calendar-picker-indicator{display:none!important}input[type=date]{cursor:pointer}
#ledger[data-page="inventory"]{min-width:850px}
@media(max-width:850px){.brand-logo{border-radius:12px}}
.locked-row .editing-meta{display:block;padding:0 5px;color:#84847c;font-size:11px;line-height:14px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.locked-row td.remote-editing:before,.locked-row td.remote-editing:after{display:none}
.locked-cell{background:#eeeeeb!important;position:relative}
.locked-cell>*{visibility:hidden!important}
.locked-cell:before,.locked-cell:after{display:none!important}
.locked-cell>.cell-editing-label{visibility:visible!important;position:absolute;inset:0;display:flex;flex-wrap:wrap;align-items:center;align-content:center;justify-content:center;column-gap:4px;row-gap:1px;padding:2px 3px;overflow:hidden;white-space:normal;color:#92928a;font-size:13px;line-height:14px;pointer-events:none}.cell-editor-name{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#77776e}.cell-editor-status{flex:0 0 auto;white-space:nowrap;font-size:12px}
.dropdown-trigger{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0;width:100%;height:33px;padding:0 6px;border:1px solid transparent;border-radius:0;background:transparent;color:#554d3b;font-size:14px;text-align:left;outline:none}
.dropdown-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.dropdown-trigger>svg{width:12px;height:12px;stroke:#a99a76;flex-shrink:0}.dropdown-trigger:hover{background:#fffdf6;border-color:#e8dfc8}.dropdown-trigger:focus-visible,.dropdown-trigger[aria-expanded=true]{border-color:#b99b50;box-shadow:inset 0 0 0 1px #b99b501a}.dropdown-trigger.is-placeholder{color:#b4a781}.dropdown-trigger:disabled{opacity:1;color:#a6a69c;cursor:not-allowed}
.filter-dropdown{height:36px;width:111px;padding:0 9px;border:1px solid #e7e2d5;border-radius:4px;color:#776b51;background:#fff}.filter-dropdown:focus-visible{outline:none}
.blank-row:not(.first-blank) .dropdown-trigger:not(:focus){color:transparent}.blank-row:not(.first-blank) .dropdown-trigger:not(:focus)>svg{opacity:0}.blank-row:not(.first-blank):hover .dropdown-trigger{color:#b4a781}.blank-row:not(.first-blank):hover .dropdown-trigger>svg{opacity:1}
.dropdown-menu{position:fixed;z-index:100;overflow:auto;overscroll-behavior:contain;background:#fffdf6;border:1px solid #d8c18d;border-radius:4px;padding:5px;box-shadow:0 7px 24px #3b2b1426;min-width:160px;color:#554727;font-size:14px;scrollbar-width:thin;scrollbar-color:#d7c59a #faf6ea}.dropdown-menu[hidden]{display:none}.dropdown-menu [role=option]{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;height:35px;padding:0 10px;border:0;border-radius:2px;background:transparent;color:#665536;font-size:14px;text-align:left;white-space:nowrap}.dropdown-menu [role=option]>span:first-child{overflow:hidden;text-overflow:ellipsis}.dropdown-menu [role=option].highlighted{background:#f3e8cb;color:#72551d}.dropdown-menu [role=option][aria-selected=true]{color:#956f20;font-weight:600}.option-check{color:#ae842d;font-size:13px}.locked-row .dropdown-trigger{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
/* Procurement, kits and employee ledgers. */
[hidden]{display:none!important}thead th{height:42px;border-right:1px solid #e8e5dc;border-bottom:1px solid #e1dccf;background:#f8f5ec;color:#7d6c45;font-size:14px;padding:0 10px}thead th:last-child{border-right:0}.computed-amount{text-align:right;padding-right:12px;color:#82724e;font-variant-numeric:tabular-nums}.computed-amount span{white-space:nowrap}.table-scroll{min-height:430px}
.employee-panel{margin-bottom:24px}.staff-scroll{min-height:0}.staff-table{min-width:820px}.staff-table td{height:51px;padding:0 10px}.staff-table input[type=date]{font-size:13px}.staff-table input[type=datetime-local]{font-size:13px;font-variant-numeric:tabular-nums;width:100%;cursor:pointer}.receipt-cell{display:flex;align-items:center;justify-content:space-between;gap:12px}.receipt-cell .confirm-check,.staff-table .check-cell .confirm-check,.history-table .confirm-check{width:17px;height:17px;accent-color:#ac842c;cursor:pointer;margin:0;flex-shrink:0}.fee-amount{font-variant-numeric:tabular-nums;white-space:nowrap;color:#75613a}.fee-plan{font-size:14px;color:#9b8552;white-space:nowrap}.employee-name{color:#55472d}.staff-exempt{color:#a39576;font-size:13px}.staff-exempt.small{display:inline-block;margin-left:7px;font-size:11px;background:#f3efdf;padding:2px 4px;border-radius:2px}.due-label{color:#b18a48;font-size:11px;margin-left:7px}.staff-actor{color:#8e8063;font-size:14px}.history-button{display:grid;place-items:center;color:#aa9665;background:transparent;padding:4px;border-radius:3px}.history-button svg{width:16px;height:16px}.history-button:hover{background:#f5efd9}.overdue-employee td{background:#fdfaf3}.history-empty{text-align:center;height:90px;color:#afa48b}.history-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.history-heading h2{margin:0;font-size:18px}#payments-dialog{width:1000px;max-width:94vw;padding:25px}.history-table{min-width:800px;table-layout:auto}.history-table td{height:48px;padding:8px 10px;font-size:13px}.history-settler{display:block;font-size:11px;color:#a0947a;margin-top:4px}#payments-dialog .table-scroll{max-height:55vh}#summary[data-page=employees] .balance{flex:0 0 280px}.staff-table .locked-cell>.cell-editing-label,.history-table .locked-cell>.cell-editing-label{font-size:13px}
.staff-table input[type=datetime-local]::-webkit-calendar-picker-indicator{display:none!important}

/* v6 inventory actions and empty amount cells */
.computed-amount.no-amount{text-align:center;padding:0 5px}.operation-cell{text-align:center}.operation-cell .sign-button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid #efdfb6;border-radius:3px;font-size:19px;line-height:1}.staff-table{min-width:720px}

/* Shared table palette and checkbox states for all three pages. */
.staff-table td,.history-table td{color:#554d3b;background:#fff;font-size:14px}
.staff-table tr:hover td,.history-table tr:hover td{background:#fdfbf5}
.staff-table input[type=date],.staff-table input[type=datetime-local]{font-size:14px;color:#554d3b}
.employee-name,.fee-amount{color:#554d3b}.fee-plan{color:#8d8061}
input.confirm-check,.check-cell input.confirm-check,.receipt-cell input.confirm-check,.staff-table .check-cell input.confirm-check,.history-table input.confirm-check{
 appearance:none;-webkit-appearance:none;display:inline-block;vertical-align:middle;flex-shrink:0;width:17px;height:17px;margin:0;padding:0;border:1px solid #c8ac68;border-radius:2px;background-color:#fffdf6;background-position:center;background-repeat:no-repeat;background-size:13px 13px;box-shadow:none;cursor:pointer;opacity:1
}
input.confirm-check:checked,.check-cell input.confirm-check:checked,.receipt-cell input.confirm-check:checked,.staff-table .check-cell input.confirm-check:checked,.history-table input.confirm-check:checked{
 border-color:#b18d3d;background-color:#b18d3d;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fffdf6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8 3.2 3.2L13 4.5'/%3E%3C/svg%3E")
}
input.confirm-check:not(:disabled):hover{border-color:#957021}
input.confirm-check:focus-visible,.check-cell input.confirm-check:focus-visible{outline:2px solid #c2a255;outline-offset:3px;box-shadow:none}
input.confirm-check:disabled,.check-cell input.confirm-check:disabled,.receipt-cell input.confirm-check:disabled,.staff-table .check-cell input.confirm-check:disabled,.history-table input.confirm-check:disabled{border-color:#e3dccb;background-color:#f8f6ef;cursor:default;opacity:1}
input.confirm-check:checked:disabled,.check-cell input.confirm-check:checked:disabled,.receipt-cell input.confirm-check:checked:disabled,.staff-table .check-cell input.confirm-check:checked:disabled,.history-table input.confirm-check:checked:disabled{border-color:#cdbb8e;background-color:#cdbb8e}
.staff-table .employee-draft input::placeholder{color:#c1bba9}.staff-table .employee-draft input:disabled{color:#a39576;cursor:wait}
.employee-delete-cell{text-align:center}.employee-delete-cell .delete-row{display:inline-flex;align-items:center;justify-content:center;padding:4px}
