/* ── View Bills Styles ── */
@keyframes dch-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.dch-table-thead {
    background: #4f46e5 !important;
    border-bottom: 2px solid #4338ca !important;
}

.dch-table-th,
.dch-table-th-center {
    background: #4f46e5 !important;
    color: #ffffff !important;
    padding: 8px 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid #4338ca !important;
    border-radius: 0 !important;
}

.dch-table-td,
.dch-table-td-bold,
.dch-table-td-blue,
.dch-table-td-dark,
.dch-table-td-center {
    padding: 6px 4px !important;
    font-size: 13px !important;
}

.dch-btn-tr-icon .material-symbols-outlined,
.dch-btn-tr-icon-danger .material-symbols-outlined {
    font-size: 20px !important;
}

.dch-btn-tr-icon,
.dch-btn-tr-icon-danger {
    padding: 4px !important;
}

.dch-dropdown {
    position: relative;
    display: inline-block;
}

.dch-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    z-index: 99999;
    min-width: 155px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dch-dropdown-menu.drop-up {
    top: auto;
    bottom: calc(100% + 4px);
    margin-top: 0;
    margin-bottom: 0;
}

.dch-dropdown-item {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: 7px 12px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s ease;
    line-height: 1.2;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 6px;
}

.dch-dropdown-item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.dch-dropdown-item .material-symbols-outlined {
    font-size: 16px !important;
}

.dch-dropdown-item.text-success {
    color: #10b981;
}
.dch-dropdown-item.text-success:hover {
    background-color: #ecfdf5;
    color: #047857;
}

.dch-dropdown-item.text-danger {
    color: #ef4444;
}
.dch-dropdown-item.text-danger:hover {
    background-color: #fef2f2;
    color: #b91c1c;
}

.dch-dropdown-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
}
.dch-dropdown-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.nowrap-cell {
    white-space: nowrap;
}

.dch-table th,
.dch-table td {
    white-space: nowrap;
    vertical-align: middle !important;
    padding: 8px 10px !important;
}

.dch-table td:nth-child(1), .dch-table th:nth-child(1) {
    width: 45px !important;
    min-width: 45px !important;
    text-align: center !important;
}
.dch-table td:nth-child(2), .dch-table th:nth-child(2) {
    min-width: 80px !important;
}
.dch-table td:nth-child(3), .dch-table th:nth-child(3) {
    min-width: 100px !important;
}
.dch-table td:nth-child(4), .dch-table th:nth-child(4) {
    min-width: 160px !important;
}
.dch-table td:nth-child(5), .dch-table th:nth-child(5) {
    min-width: 100px !important;
}
.dch-table td:nth-child(6), .dch-table th:nth-child(6) {
    min-width: 140px !important;
}
.dch-table td:nth-child(7), .dch-table th:nth-child(7),
.dch-table td:nth-child(8), .dch-table th:nth-child(8),
.dch-table td:nth-child(9), .dch-table th:nth-child(9),
.dch-table td:nth-child(10), .dch-table th:nth-child(10),
.dch-table td:nth-child(11), .dch-table th:nth-child(11) {
    text-align: right !important;
    min-width: 85px !important;
}
.dch-table td:nth-child(12), .dch-table th:nth-child(12) {
    min-width: 110px !important;
}
.dch-table td:last-child, .dch-table th:last-child {
    width: 60px !important;
    min-width: 60px !important;
    text-align: center !important;
    padding: 4px 6px !important;
    position: relative;
}

.dch-table-inner {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}

.dch-page-container {
    width: 100% !important;
    max-width: 100% !important;
    min-height: calc(100vh - 58px) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 12px 18px 12px 18px !important;
    box-sizing: border-box !important;
    background: #f8fafc !important;
}

.dch-table-wrapper {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    background: white !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0 !important;
    margin-bottom: 10px !important;
    overflow: hidden !important;
    min-height: 200px !important;
}

.dch-fixed-bottom-footer {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    padding: 8px 14px 8px 14px !important;
    z-index: 40 !important;
}

.dch-summary-card {
    min-width: 120px !important;
    padding: 6px 10px !important;
    gap: 8px !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    display: flex;
    align-items: center;
}

.dch-summary-card.card-total { background: #f8fafc !important; border-color: #e2e8f0 !important; }
.dch-summary-card.card-gross { background: #f0f9ff !important; border-color: #e0f2fe !important; }
.dch-summary-card.card-discount { background: #fffbeb !important; border-color: #fef3c7 !important; }
.dch-summary-card.card-net { background: #eef2ff !important; border-color: #e0e7ff !important; }
.dch-summary-card.card-paid { background: #ecfdf5 !important; border-color: #d1fae5 !important; }
.dch-summary-card.card-balance { background: #fef2f2 !important; border-color: #fee2e2 !important; }

.dch-summary-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dch-summary-icon .material-symbols-outlined {
    font-size: 16px !important;
}
.dch-summary-content {
    display: flex;
    flex-direction: column;
    gap: 1px !important;
}
.dch-summary-label {
    font-size: 9px !important;
    font-weight: 750 !important;
    margin: 0 !important;
    letter-spacing: 0.03em;
    color: #64748b;
}
.dch-summary-value {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: #0f172a !important;
    white-space: nowrap;
}

.dch-footer-summary-container {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    gap: 10px !important;
}

.dch-pagination-container {
    padding: 6px 0 0 !important;
}

.dch-page-container .lab-header-card {
    background: transparent !important;
    border: none !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    box-shadow: none !important;
    padding: 8px 0 14px 0 !important;
    border-radius: 0 !important;
    margin-bottom: 16px !important;
}

/* ── View Bills Filter Row Grid & Dropdown Date Filter ── */
.dch-page-container .dch-filter-grid-row {
    display: grid;
    grid-template-columns: auto 1fr 1fr 180px auto;
    gap: 14px;
    align-items: flex-end;
    margin-bottom: 12px;
}

.dch-date-select {
    height: 38px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    width: 140px;
    background: #ffffff;
    color: #1e293b;
    cursor: pointer;
    padding: 0 8px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dch-date-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ── Sample Collection Style Header & Filters for View Bills ── */
.dch-page-container .sc-tabs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgb(79, 70, 229);
    margin-bottom: 12px;
    padding-bottom: 12px;
    gap: 16px;
    flex-wrap: wrap;
}

.dch-page-container .sc-legend-item.active-tab {
    background-color: #cbd5e1 !important;
    border: 1.5px solid #94a3b8 !important;
}

.dch-page-container .sc-filter-btn {
    height: 36px;
    padding: 0 16px;
    border-radius: 20px;
    border: 1.5px solid rgb(79, 70, 229);
    background: #f5f3ff;
    color: #4f46e5;
    font-size: 0.85rem;
    font-weight: 750;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    position: relative;
}

.dch-page-container .sc-filter-btn:hover {
    background: #ede9fe;
}

/* ── View Bills Top-Right Header Metrics ── */
.dch-header-metrics {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dch-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    height: 32px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dch-header-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.dch-header-badge .badge-lbl {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dch-header-badge .badge-val {
    font-size: 13px;
    font-weight: 800;
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    color: #0f172a;
    white-space: nowrap;
}

.dch-header-badge .badge-val small {
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
    margin-left: 3px;
}

/* Badge Color Themes */
.dch-header-badge.badge-total {
    border-color: #cbd5e1;
    background: #ffffff;
}
.dch-header-badge.badge-total .badge-lbl {
    color: #475569;
}

.dch-header-badge.badge-gross {
    border-color: #bae6fd;
    background: #f0f9ff;
}
.dch-header-badge.badge-gross .badge-lbl {
    color: #0284c7;
}
.dch-header-badge.badge-gross .badge-val {
    color: #0369a1;
}

.dch-header-badge.badge-discount {
    border-color: #fde68a;
    background: #fffbeb;
}
.dch-header-badge.badge-discount .badge-lbl {
    color: #d97706;
}
.dch-header-badge.badge-discount .badge-val {
    color: #b45309;
}

.dch-header-badge.badge-net {
    border-color: #c7d2fe;
    background: #eef2ff;
}
.dch-header-badge.badge-net .badge-lbl {
    color: #4f46e5;
}
.dch-header-badge.badge-net .badge-val {
    color: #3730a3;
}

.dch-header-badge.badge-paid {
    border-color: #a7f3d0;
    background: #ecfdf5;
}
.dch-header-badge.badge-paid .badge-lbl {
    color: #059669;
}
.dch-header-badge.badge-paid .badge-val {
    color: #047857;
}

.dch-header-badge.badge-balance {
    border-color: #fecaca;
    background: #fef2f2;
}
.dch-header-badge.badge-balance .badge-lbl {
    color: #dc2626;
}
.dch-header-badge.badge-balance .badge-val {
    color: #b91c1c;
}




