.custody-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.custody-stat,.custody-card,.custody-entry,.custody-ledger{background:#fff;border:1px solid #dcdce2;border-radius:16px;padding:22px;min-width:0}
.custody-stat>span,.custody-stat>small{display:block;color:#686873}.custody-stat strong{display:block;font-size:28px;margin:12px 0 4px;overflow-wrap:anywhere}
.custody-heading{display:flex;align-items:center;gap:20px;margin-bottom:20px}.custody-heading h2{margin:0;overflow-wrap:anywhere}
.custody-entry{margin-bottom:20px}.custody-entry h3{margin:0 0 18px;font-size:20px}
.custody-fields{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:16px;align-items:start}
.custody-entry label{display:flex;flex-direction:column;gap:8px;font-size:14px;min-width:0}
.custody-entry input{width:100%;min-width:0;border:1px solid #c9cbd2;border-radius:8px;background:#fff;padding:11px 12px;font:inherit;color:#1d1d1f}
.custody-entry input:focus{outline:2px solid #0071e3;outline-offset:2px}.custody-entry input[readonly]{background:#f5f5f7}
.custody-entry small{font-size:11px;color:#686873}.custody-actions{display:flex;gap:8px;padding-top:28px}
.custody-create{display:flex;align-items:end;gap:16px}.custody-create label{flex:1;max-width:600px}
.custody-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.custody-card h2{font-size:22px;margin:0 0 22px;overflow-wrap:anywhere}
.custody-card p{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.custody-card-balance{border-top:1px solid #e5e5ea;padding-top:15px}.custody-card button{margin-top:12px}
.custody-ledger{padding:0;overflow:hidden}.custody-ledger h3{margin:0;padding:20px}
.custody-table{width:100%;min-width:760px;border-collapse:collapse;font-size:14px}
.custody-table th,.custody-table td{padding:14px 12px;border:1px solid #dde0e5;text-align:right;vertical-align:middle;overflow-wrap:anywhere}
.custody-table th{background:#f5f5f7;color:#52525b;font-weight:600}.custody-table td:nth-child(4){max-width:320px}
.custody-table .custody-advance td{background:#e3f5e8;color:#163d24}
.custody-table .custody-settlement td{background:#fff3cd;color:#51400b}
.custody-amount{font-weight:700;white-space:nowrap}.custody-table tfoot td,.custody-table tfoot th{background:#eef4fc;font-size:18px;padding:18px}
.custody-table tfoot strong{margin-inline-start:14px}.custody-icon{border:0;background:transparent;color:#0062bf;cursor:pointer;padding:6px}.custody-icon svg{width:18px;height:18px}
.custody-empty{text-align:center!important;padding:28px!important}.custody-entry button:disabled{opacity:.5;cursor:wait}
@media(max-width:1100px){.custody-fields{grid-template-columns:2fr 1fr 1fr}.custody-actions{grid-column:1/-1;padding-top:0}.custody-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.custody-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.custody-stat{padding:15px}.custody-stat strong{font-size:23px}.custody-fields{grid-template-columns:1fr 1fr}.custody-fields>label:first-child{grid-column:1/-1}.custody-cards{grid-template-columns:1fr}.custody-create{align-items:stretch;flex-direction:column}.custody-heading{flex-wrap:wrap}.custody-entry{padding:16px}.finance-toolbar .segmented{flex-wrap:wrap}}

.employee-print-table .employee-print-positive td{background:#e3f5e8}.employee-print-table .employee-print-negative td{background:#fff3cd}.employee-print-table th:first-child{width:5%}.employee-print-table th:nth-child(2){width:15%}.employee-print-table td{font-size:11px}.employee-print-table tfoot{font-weight:bold}.employee-print-table tr{print-color-adjust:exact;-webkit-print-color-adjust:exact}
.employee-files{display:grid;gap:6px;min-width:150px;max-width:240px;white-space:normal;overflow-wrap:anywhere}.employee-files a{display:flex;align-items:center;gap:4px}.employee-files svg{width:16px;height:16px;flex:none}.employee-files small{font-size:11px;color:var(--muted,#656575)}.employee-file-upload{position:relative;display:block;border:1px solid #c9ced8;border-radius:8px;padding:6px 10px;color:#0068d9;cursor:pointer;background:#fff;overflow:hidden;text-align:center}.employee-file-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.employee-file-upload:focus-within{outline:2px solid #0068d9}.employee-print-table td{overflow-wrap:anywhere}

/* Keep the ledger action heading and row controls on one line. */
.custody-table .custody-action-column{width:122px;min-width:122px;white-space:nowrap;overflow-wrap:normal;text-align:center}.custody-row-actions{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}.custody-row-actions button{flex:none}

.custody-entry .custody-draft-files{margin-top:8px;font-size:12px;color:#52525b;overflow-wrap:anywhere}
