/* Daily Billing page (admin) — brand: navy #0B1F3A / orange #F26B1D */
.db-toolbar {
    display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end;
    background: #fff; border: 1px solid var(--brand-border, #DCE3EE); border-radius: 12px;
    padding: 14px 16px; margin: 10px 0 16px; box-shadow: 0 1px 2px rgba(11,31,58,.05);
}
.db-field label { margin: 0 0 6px; font-size: .75rem; text-transform: uppercase; letter-spacing: .6px; color: #5A6B82; }
.db-field input[type=date], .db-field select { width: auto; min-width: 150px; margin: 0; }
.db-field button, .db-field .dispatch-filters button { margin: 0 6px 0 0; padding: 9px 12px; font-size: .88rem; }
.db-field .dispatch-filters { margin: 0; }
.db-presets button { background: #fff; color: #0B1F3A; border: 1px solid #C9D5E6; }
.db-presets button:hover { background: #FFF1E8; color: #D9560B; border-color: #F26B1D; }
.db-export { margin-left: auto; }
.db-export button { background: #0B1F3A; }
.db-export button:hover { background: #F26B1D; }

.db-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.db-card { background: #fff; border: 1px solid #DCE3EE; border-radius: 12px; padding: 12px 14px; }
.db-card-l { font-size: .72rem; text-transform: uppercase; letter-spacing: .8px; color: #5A6B82; font-weight: 700; }
.db-card-v { font-size: 1.35rem; font-weight: 800; color: #0B1F3A; margin-top: 2px; }
.db-card.accent { background: linear-gradient(135deg, #0B1F3A, #13315C); border-color: #0B1F3A; }
.db-card.accent .db-card-l { color: #A9BCD9; }
.db-card.accent .db-card-v { color: #fff; }
.db-card.accent { box-shadow: inset 0 -4px 0 #F26B1D; }

.db-day { margin-bottom: 22px; }
.db-day-head {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    background: #0B1F3A; color: #fff; padding: 10px 16px; border-radius: 12px 12px 0 0;
    border-bottom: 3px solid #F26B1D;
}
.db-day-name { font-weight: 800; font-size: 1.05rem; }
.db-day-head .db-muted { color: #A9BCD9; }
.db-day-total strong { color: #FFB27A; font-size: 1.1rem; margin-left: 6px; }
.db-cust { background: #fff; border: 1px solid #DCE3EE; border-top: 0; padding: 14px 16px 6px; }
.db-cust:last-child { border-radius: 0 0 12px 12px; }
.db-cust-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.db-cust-name { font-weight: 800; color: #0B1F3A; font-size: 1.02rem; flex: 1; min-width: 200px; }
.db-cust-name .status-badge { margin-left: 6px; vertical-align: middle; font-size: .72rem; }
.db-cust-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.db-cust-actions button { margin: 0; padding: 8px 12px; font-size: .85rem; width: auto; }
.db-cust-actions .submit-btn { margin: 0; padding: 8px 12px; font-size: .85rem; }
.db-btn-print { background: #0B1F3A; }
.db-btn-print:hover { background: #13315C; }
.db-cust-total { font-weight: 800; font-size: 1.15rem; color: #0B1F3A; min-width: 110px; text-align: right; }
.status-badge.db-open { background: #FFF1E8; color: #9A3D06; }
.db-muted { color: #5A6B82; font-weight: 500; }
.db-small { font-size: .78rem; }

.db-table { font-size: .88rem; }
.db-table .num { text-align: right; white-space: nowrap; }
.ticket-table .db-table th.num { text-align: right; }
.db-table tr.db-svc-row td { background: #EEF3FA; color: #0B1F3A; font-weight: 700; border-left: 4px solid #F26B1D; }
.db-table tr.db-sub-row td { background: #F8FAFD; font-weight: 600; color: #13315C; text-align: right; }
.db-table tr.db-sub-row td.num { font-weight: 800; }
.db-table tr.db-cust-row td { background: #FFF1E8; font-weight: 800; color: #0B1F3A; text-align: right; border-top: 2px solid #F26B1D; }
.db-table tr.db-billed td { opacity: .7; }
.ticket-table .db-table tbody tr.db-svc-row:hover, .ticket-table .db-table tbody tr.db-sub-row:hover { background: inherit; }

.db-grand {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    background: #F26B1D; color: #fff; border-radius: 12px; padding: 14px 18px; font-weight: 700;
    box-shadow: 0 6px 18px rgba(242,107,29,.3);
}
.db-grand strong { font-size: 1.4rem; }
.db-empty { background: #fff; border: 1px dashed #C9D5E6; border-radius: 12px; padding: 28px; text-align: center; color: #5A6B82; }

/* Sidebar feature item */
.side-pill { font-size: .62rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; background: #F26B1D; color: #fff; border-radius: 999px; padding: 2px 7px; }
.side-collapsed .side-pill { display: none; }

@media (max-width: 700px) {
    .db-export { margin-left: 0; }
    .db-cust-total { text-align: left; }
    .db-field input[type=date], .db-field select { min-width: 0; width: 100%; }
    .db-field { flex: 1 1 140px; }
}
