/* ================================================================ */
/* LAPORAN.CSS — Premium Style untuk Halaman Laporan                 */
/* ================================================================ */

/* ══════════════════════════════════════════════════════════════ */
/* DATE FILTER — Single Date (Harian)                            */
/* ══════════════════════════════════════════════════════════════ */

.lap-filter-single {
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.04) 0%, 
        rgba(217, 70, 239, 0.02) 100%);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lap-filter-date {
    flex: 1;
    min-width: 0;
}

.lap-filter-date label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.lap-filter-date input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ede9fe;
    border-radius: 10px;
    background: white;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1e1b4b;
    box-sizing: border-box;
    transition: all 0.2s;
}

.lap-filter-date input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.lap-filter-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
    transition: all 0.25s;
    white-space: nowrap;
    align-self: flex-end;
}

.lap-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.lap-filter-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ══════════════════════════════════════════════════════════════ */
/* SUMMARY HERO — Grand Total di Atas                            */
/* ══════════════════════════════════════════════════════════════ */

.lap-hero-total {
    position: relative;
    background: linear-gradient(135deg, 
        #6d28d9 0%, 
        #7c3aed 40%, 
        #d946ef 100%);
    border-radius: 20px;
    padding: 22px 24px;
    color: white;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 
        0 8px 20px rgba(124, 58, 237, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.lap-hero-total::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.lap-hero-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.lap-hero-value {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1.2px;
    line-height: 1;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lap-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.85;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.lap-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ══════════════════════════════════════════════════════════════ */
/* SUMMARY GRID — 2x2 Card                                       */
/* ══════════════════════════════════════════════════════════════ */

.lap-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.lap-summary-card {
    background: white;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(124, 58, 237, 0.08);
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.lap-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.lap-summary-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.lap-summary-content {
    flex: 1;
    min-width: 0;
}

.lap-summary-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 3px;
}

.lap-summary-value {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.3px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lap-summary-value.green { color: #16a34a; }
.lap-summary-value.orange { color: #d97706; }
.lap-summary-value.blue { color: #2563eb; }

/* ══════════════════════════════════════════════════════════════ */
/* BREAKDOWN LIST — Per Jenis                                    */
/* ══════════════════════════════════════════════════════════════ */

.lap-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    margin: 20px 0 12px;
    padding: 0 4px;
}

.lap-section-title i {
    color: #7c3aed;
    font-size: 13px;
}

.lap-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lap-breakdown-item {
    background: white;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(124, 58, 237, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.lap-breakdown-item:hover {
    border-color: rgba(124, 58, 237, 0.15);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.lap-breakdown-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.lap-breakdown-info {
    flex: 1;
    min-width: 0;
}

.lap-breakdown-name {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.lap-breakdown-meta {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.3;
}

.lap-breakdown-laba {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #16a34a;
    letter-spacing: -0.3px;
    text-align: right;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════ */
/* PER JENIS CARD — Detailed                                     */
/* ══════════════════════════════════════════════════════════════ */

.lap-jenis-card {
    background: white;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(124, 58, 237, 0.08);
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.04);
    transition: all 0.2s;
}

.lap-jenis-card:hover {
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.1);
}

.lap-jenis-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.lap-jenis-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.lap-jenis-info {
    flex: 1;
    min-width: 0;
}

.lap-jenis-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.lap-jenis-count {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.2;
}

.lap-jenis-laba {
    text-align: right;
    flex-shrink: 0;
}

.lap-jenis-laba-value {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #16a34a;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.lap-jenis-laba-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-top: 2px;
}

.lap-jenis-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(124, 58, 237, 0.1);
}

.lap-jenis-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lap-jenis-detail-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.lap-jenis-detail-value {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
}

/* Progress bar */
.lap-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.lap-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #d946ef);
    border-radius: 3px;
    transition: width 0.8s ease-out;
}

/* ══════════════════════════════════════════════════════════════ */
/* PER CABANG RANKING                                            */
/* ══════════════════════════════════════════════════════════════ */

.lap-cabang-card {
    background: white;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(124, 58, 237, 0.08);
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.04);
    position: relative;
    transition: all 0.2s;
}

.lap-cabang-card:hover {
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.1);
    transform: translateY(-1px);
}

.lap-cabang-card.rank-1 {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}

.lap-cabang-card.rank-2 {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
}

.lap-cabang-card.rank-3 {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-color: #fdba74;
}

.lap-cabang-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.lap-cabang-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.lap-cabang-rank.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.lap-cabang-rank.rank-2 {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.lap-cabang-rank.rank-3 {
    background: linear-gradient(135deg, #d97706, #92400e);
}

.lap-cabang-rank.other {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.lap-cabang-info {
    flex: 1;
    min-width: 0;
}

.lap-cabang-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    line-height: 1.2;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lap-cabang-meta {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
}

.lap-cabang-laba {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #16a34a;
    letter-spacing: -0.3px;
    text-align: right;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════ */
/* EXPORT BUTTONS                                                */
/* ══════════════════════════════════════════════════════════════ */

.lap-export-section {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 8px;
}

.lap-export-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s;
    color: white;
}

.lap-export-btn.pdf {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.lap-export-btn.pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.lap-export-btn.excel {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.lap-export-btn.excel:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.lap-export-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ══════════════════════════════════════════════════════════════ */
/* RESPONSIVE                                                    */
/* ══════════════════════════════════════════════════════════════ */

@media (max-width: 380px) {
    .lap-filter-single {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lap-filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .lap-summary-grid {
        gap: 8px;
    }
    
    .lap-summary-card {
        padding: 10px;
        gap: 8px;
    }
    
    .lap-summary-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .lap-summary-value {
        font-size: 13px;
    }
    
    .lap-hero-value {
        font-size: 26px;
    }
    
    .lap-breakdown-item {
        padding: 10px 12px;
    }
    
    .lap-breakdown-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .lap-jenis-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    
    .lap-cabang-rank {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .lap-export-section {
        flex-direction: column;
    }
}

/* ══════════════════════════════════════════════════════════════ */
/* PRINT STYLE — Untuk Export PDF via window.print()             */
/* ══════════════════════════════════════════════════════════════ */

@media print {
    body * {
        visibility: hidden;
    }
    
    #laporanContent,
    #laporanContent * {
        visibility: visible;
    }
    
    #laporanContent {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
    }
    
    .lap-export-section,
    .lap-filter-single,
    .lap-filter-card,
    .filter-card {
        display: none !important;
    }
    
    .lap-hero-total {
        background: white !important;
        color: #1e1b4b !important;
        box-shadow: none !important;
        border: 2px solid #7c3aed !important;
    }
    
    .lap-hero-value {
        color: #1e1b4b !important;
        text-shadow: none !important;
    }
    
    .lap-summary-card,
    .lap-breakdown-item,
    .lap-jenis-card,
    .lap-cabang-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
    }
    
    @page {
        margin: 1cm;
    }
}

/* ══════════════════════════════════════════════════════════════ */
/* CABANG BADGE — Header info cabang di hasil laporan           */
/* ══════════════════════════════════════════════════════════════ */

.lap-cabang-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.06) 0%, 
        rgba(217, 70, 239, 0.04) 100%);
    border: 1.5px solid rgba(124, 58, 237, 0.15);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.lap-cabang-badge::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.lap-cabang-badge-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.lap-cabang-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 
        0 4px 10px rgba(124, 58, 237, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
}

.lap-cabang-badge-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 8px 8px 50% 50%;
    pointer-events: none;
}

.lap-cabang-badge-info {
    flex: 1;
    min-width: 0;
}

.lap-cabang-badge-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 800;
    color: #7c3aed;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 2px;
}

.lap-cabang-badge-name {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lap-cabang-badge-zona {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 
        0 3px 8px rgba(124, 58, 237, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.lap-cabang-badge-zona i {
    font-size: 9px;
    opacity: 0.9;
}

/* ───────────────────────────────────────────── */
/* RESPONSIVE                                    */
/* ───────────────────────────────────────────── */

@media (max-width: 380px) {
    .lap-cabang-badge {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .lap-cabang-badge-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .lap-cabang-badge-name {
        font-size: 12px;
    }
    
    .lap-cabang-badge-zona {
        padding: 3px 8px;
        font-size: 9px;
    }
}

/* ══════════════════════════════════════════════════════════════ */
/* LAPORAN SALDO — Card per Akun                                 */
/* ══════════════════════════════════════════════════════════════ */

.lap-saldo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lap-saldo-item {
    background: white;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(124, 58, 237, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s;
}

.lap-saldo-item:hover {
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.lap-saldo-item-info {
    flex: 1;
    min-width: 0;
}

.lap-saldo-item-nama {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lap-saldo-item-meta {
    display: flex;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    flex-wrap: wrap;
}

.lap-saldo-masuk {
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.lap-saldo-keluar {
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.lap-saldo-item-meta i {
    font-size: 8px;
}

.lap-saldo-item-value {
    text-align: right;
    flex-shrink: 0;
}

.lap-saldo-item-saldovalue {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.3px;
}

.lap-saldo-item-awal {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════ */
/* LAPORAN PER KASIR — Card per Kasir                            */
/* ══════════════════════════════════════════════════════════════ */

.lap-kasir-card {
    background: white;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(124, 58, 237, 0.08);
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.04);
    transition: all 0.2s;
}

.lap-kasir-card:hover {
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.1);
}

.lap-kasir-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.lap-kasir-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.lap-kasir-rank.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.lap-kasir-rank.rank-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
.lap-kasir-rank.rank-3 { background: linear-gradient(135deg, #d97706, #92400e); }
.lap-kasir-rank.other { background: linear-gradient(135deg, #7c3aed, #a855f7); }

.lap-kasir-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
    flex-shrink: 0;
}

.lap-kasir-info {
    flex: 1;
    min-width: 0;
}

.lap-kasir-name {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lap-kasir-meta {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
}

.lap-kasir-laba {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #16a34a;
    flex-shrink: 0;
}

.lap-kasir-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed rgba(124, 58, 237, 0.1);
}

.lap-kasir-stat {
    text-align: center;
}

.lap-kasir-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
}

.lap-kasir-stat-value {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #1e1b4b;
}

.lap-kasir-stat.warning .lap-kasir-stat-value {
    color: #dc2626;
}

/* ══════════════════════════════════════════════════════════════ */
/* LAPORAN TOP PRODUK — List dengan Progress Bar                 */
/* ══════════════════════════════════════════════════════════════ */

.lap-top-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0 8px 0;
}

.lap-top-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lap-top-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 0 4px;
}

.lap-top-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.lap-top-rank {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 900;
    flex-shrink: 0;
}

.lap-top-rank.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.lap-top-rank.rank-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
.lap-top-rank.rank-3 { background: linear-gradient(135deg, #d97706, #92400e); }
.lap-top-rank.other { 
    background: rgba(148, 163, 184, 0.15); 
    color: #64748b;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.lap-top-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

.lap-top-name {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #1e1b4b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lap-top-count {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #1e1b4b;
    padding: 3px 10px;
    background: rgba(124, 58, 237, 0.06);
    border-radius: 8px;
    min-width: 44px;
    text-align: center;
}

.lap-top-persen {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    min-width: 44px;
    text-align: right;
}

/* Responsive */
@media (max-width: 380px) {
    .lap-kasir-stats {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .lap-kasir-stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0;
    }
    
    .lap-kasir-stat-label {
        margin-bottom: 0;
    }
    
    .lap-saldo-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .lap-saldo-item-value {
        text-align: left;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .lap-top-count, .lap-top-persen {
        font-size: 11px;
        min-width: 36px;
        padding: 2px 6px;
    }
}

/* ================================================================ */
/* LAPORAN SELISIH KAS — Card per Sesi                              */
/* ================================================================ */

/* ───────────────────────────────────────────── */
/* SUMMARY HERO — Total Selisih                   */
/* ───────────────────────────────────────────── */

.lap-selisih-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s;
}

.lap-selisih-hero.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 
        0 8px 24px rgba(245, 158, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lap-selisih-hero.danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 
        0 8px 24px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lap-selisih-hero.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 
        0 8px 24px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lap-selisih-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.lap-selisih-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.lap-selisih-hero-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.lap-selisih-hero-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lap-selisih-hero-value {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
    color: white;
    line-height: 1.1;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lap-selisih-hero-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.lap-selisih-hero-note i {
    font-size: 10px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ───────────────────────────────────────────── */
/* SECTION TITLE                                  */
/* ───────────────────────────────────────────── */

.lap-selisih-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    margin: 18px 0 10px;
    padding: 0 4px;
}

.lap-selisih-section-title i {
    color: #7c3aed;
    font-size: 12px;
}

.lap-selisih-section-title .lap-selisih-count-badge {
    margin-left: auto;
    padding: 3px 10px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: #7c3aed;
}

/* ───────────────────────────────────────────── */
/* CARD PER SESI                                  */
/* ───────────────────────────────────────────── */

.lap-selisih-card {
    background: white;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(124, 58, 237, 0.08);
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.04);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lap-selisih-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #dc2626;
}

.lap-selisih-card.over::before {
    background: #f59e0b;
}

.lap-selisih-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(124, 58, 237, 0.08),
        0 8px 20px rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.15);
}

.lap-selisih-card:active {
    transform: translateY(0) scale(0.98);
}

/* Header: nama kasir closing */
.lap-selisih-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.lap-selisih-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(124, 58, 237, 0.25);
}

.lap-selisih-card-info {
    flex: 1;
    min-width: 0;
}

.lap-selisih-card-nama {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    line-height: 1.2;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lap-selisih-card-waktu {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
}

.lap-selisih-card-waktu i {
    font-size: 9px;
}

/* Nominal selisih */
.lap-selisih-card-nominal {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.lap-selisih-card-nominal.under {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
}

.lap-selisih-card-nominal.over {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.lap-selisih-card-nominal i {
    font-size: 10px;
}

/* Detail baris: sistem & fisik */
.lap-selisih-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(248, 245, 255, 0.5);
    border-radius: 10px;
    margin-bottom: 10px;
}

.lap-selisih-card-detail-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.lap-selisih-card-detail-value {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
}

/* Footer: trx + durasi + arrow */
.lap-selisih-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px dashed rgba(124, 58, 237, 0.1);
}

.lap-selisih-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}

.lap-selisih-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
}

.lap-selisih-card-meta-item i {
    font-size: 9px;
    color: #94a3b8;
}

.lap-selisih-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: #7c3aed;
    flex-shrink: 0;
}

.lap-selisih-card-arrow i {
    font-size: 9px;
    transition: transform 0.2s;
}

.lap-selisih-card:hover .lap-selisih-card-arrow i {
    transform: translateX(3px);
}

/* ───────────────────────────────────────────── */
/* EMPTY STATE                                    */
/* ───────────────────────────────────────────── */

.lap-selisih-empty {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 14px;
    border: 2px dashed rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.lap-selisih-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.lap-selisih-empty-icon i {
    font-size: 28px;
    color: #22c55e;
}

.lap-selisih-empty-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #166534;
    margin-bottom: 4px;
}

.lap-selisih-empty-desc {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #15803d;
    line-height: 1.5;
}

/* ───────────────────────────────────────────── */
/* MODAL DETAIL SESI — Pakai bottom sheet        */
/* ───────────────────────────────────────────── */

/* Header modal */
.lap-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.04) 0%, 
        rgba(217, 70, 239, 0.02) 100%);
}

.lap-detail-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.lap-detail-header-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.lap-detail-header-icon.danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.lap-detail-header-icon::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 10px 10px 50% 50%;
    pointer-events: none;
}

.lap-detail-header-info {
    flex: 1;
    min-width: 0;
}

.lap-detail-header-title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.lap-detail-header-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.3;
}

/* Body modal */
.lap-detail-body {
    padding: 16px 20px 24px;
    max-height: calc(85vh - 100px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lap-detail-body::-webkit-scrollbar {
    width: 4px;
}

.lap-detail-body::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.2);
    border-radius: 2px;
}

/* Info sesi: dibuka/ditutup */
.lap-detail-info-card {
    background: linear-gradient(135deg, 
        rgba(248, 245, 255, 0.6) 0%, 
        rgba(250, 249, 255, 0.4) 100%);
    border: 1px solid rgba(124, 58, 237, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lap-detail-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.lap-detail-info-row i {
    font-size: 11px;
    color: #7c3aed;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.lap-detail-info-row strong {
    color: #1e1b4b;
    font-weight: 800;
}

/* Kasir terlibat */
.lap-detail-kasir-section {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.06) 0%, 
        rgba(37, 99, 235, 0.03) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
}

.lap-detail-kasir-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: #1e40af;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.lap-detail-kasir-header i {
    font-size: 10px;
}

.lap-detail-kasir-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lap-detail-kasir-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 6px;
    background: white;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #1e40af;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.08);
}

.lap-detail-kasir-chip-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 9px;
    flex-shrink: 0;
}

/* Note tanggung jawab */
.lap-detail-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #1e40af;
    line-height: 1.5;
}

.lap-detail-note i {
    font-size: 11px;
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Total selisih highlight */
.lap-detail-total {
    padding: 18px 20px;
    border-radius: 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lap-detail-total.under {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25);
}

.lap-detail-total.over {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.lap-detail-total::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.lap-detail-total-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.lap-detail-total-value {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    color: white;
    line-height: 1.1;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lap-detail-total-sub {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

/* Detail per akun */
.lap-detail-akun-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lap-detail-akun-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 4px;
    padding: 0 4px;
}

.lap-detail-akun-title i {
    color: #7c3aed;
    font-size: 11px;
}

.lap-detail-akun-title .lap-detail-akun-count {
    margin-left: auto;
    padding: 2px 8px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    color: #7c3aed;
}

.lap-detail-akun-item {
    background: white;
    border: 1px solid rgba(124, 58, 237, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    position: relative;
    overflow: hidden;
}

.lap-detail-akun-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #dc2626;
}

.lap-detail-akun-item.over::before {
    background: #f59e0b;
}

.lap-detail-akun-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.lap-detail-akun-nama {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lap-detail-akun-selisih {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: -0.2px;
    flex-shrink: 0;
}

.lap-detail-akun-selisih.under {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
}

.lap-detail-akun-selisih.over {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.lap-detail-akun-selisih i {
    font-size: 9px;
}

.lap-detail-akun-detail {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    background: rgba(248, 245, 255, 0.5);
    border-radius: 8px;
}

.lap-detail-akun-detail-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lap-detail-akun-detail-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.lap-detail-akun-detail-value {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
}

.lap-detail-akun-arrow {
    font-size: 9px;
    color: #cbd5e1;
    align-self: center;
}

/* Responsive */
@media (max-width: 380px) {
    .lap-selisih-hero {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .lap-selisih-hero-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    .lap-selisih-hero-value {
        font-size: 22px;
    }
    
    .lap-selisih-card {
        padding: 12px;
    }
    
    .lap-selisih-card-nominal {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .lap-detail-body {
        padding: 14px 16px 20px;
    }
    
    .lap-detail-total-value {
        font-size: 24px;
    }
}

/* ================================================================ */
/* LAPORAN SELISIH KAS — Versi Laporan JS v3.1                     */
/* ================================================================ */

/* Info blue (banner tanggung jawab cabang) */
.lap-info-blue {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #1e40af;
    line-height: 1.5;
    margin-bottom: 12px;
}

.lap-info-blue i {
    font-size: 11px;
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 1px;
}

.lap-info-blue strong {
    color: #1e3a8a;
    font-weight: 800;
}

/* Cabang info warning (di tab Kasir) */
.lap-cabang-info-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1.5px solid #fcd34d;
    border-radius: 12px;
    margin-bottom: 16px;
    position: relative;
}

.lap-cabang-info-warning i {
    font-size: 14px;
    color: #d97706;
    flex-shrink: 0;
}

.lap-cabang-info-warning-text {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #92400e;
    line-height: 1.4;
}

.lap-cabang-info-warning-text strong {
    font-weight: 800;
}

.lap-cabang-info-warning-badge {
    padding: 3px 10px;
    background: white;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: #d97706;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.15);
}

/* ══════════════════════════════════════════════════════════════ */
/* LIST PER SESI                                                   */
/* ══════════════════════════════════════════════════════════════ */

.lap-selisih-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.lap-selisih-item {
    background: white;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(124, 58, 237, 0.08);
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.04);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lap-selisih-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #dc2626;
}

.lap-selisih-item.over::before {
    background: #f59e0b;
}

.lap-selisih-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(124, 58, 237, 0.08),
        0 8px 20px rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.15);
}

.lap-selisih-item:active {
    transform: translateY(0) scale(0.98);
}

/* Header: nama + nominal */
.lap-selisih-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.lap-selisih-info {
    flex: 1;
    min-width: 0;
}

.lap-selisih-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.lap-selisih-name i {
    font-size: 11px;
    color: #7c3aed;
}

.lap-selisih-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.3;
}

.lap-selisih-time i {
    font-size: 9px;
}

.lap-selisih-value {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.3px;
    flex-shrink: 0;
    white-space: nowrap;
}

.lap-selisih-value.under {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
}

.lap-selisih-value.over {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.lap-selisih-value i {
    font-size: 10px;
}

/* Detail row: sistem & fisik */
.lap-selisih-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(248, 245, 255, 0.6);
    border-radius: 10px;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

/* Meta row: trx + durasi + link */
.lap-selisih-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px dashed rgba(124, 58, 237, 0.1);
    flex-wrap: wrap;
}

.lap-selisih-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
}

.lap-selisih-meta i {
    font-size: 9px;
    color: #94a3b8;
}

/* ══════════════════════════════════════════════════════════════ */
/* TOTAL SELISIH (dalam modal Swal)                               */
/* ══════════════════════════════════════════════════════════════ */

.lap-selisih-total {
    padding: 18px 20px;
    border-radius: 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lap-selisih-total.under {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25);
}

.lap-selisih-total.over {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.lap-selisih-total::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.lap-selisih-total > div {
    position: relative;
    z-index: 1;
    color: white;
}

/* ══════════════════════════════════════════════════════════════ */
/* DETAIL PER AKUN (dalam modal Swal)                             */
/* ══════════════════════════════════════════════════════════════ */

.lap-selisih-detail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lap-selisih-detail-item {
    background: white;
    border: 1px solid rgba(124, 58, 237, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    position: relative;
    overflow: hidden;
}

.lap-selisih-detail-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #dc2626;
}

.lap-selisih-detail-item.over::before {
    background: #f59e0b;
}

/* ══════════════════════════════════════════════════════════════ */
/* RESPONSIVE                                                      */
/* ══════════════════════════════════════════════════════════════ */

@media (max-width: 380px) {
    .lap-selisih-item {
        padding: 12px;
    }
    
    .lap-selisih-value {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .lap-selisih-header {
        gap: 8px;
    }
    
    .lap-selisih-detail-row {
        padding: 7px 10px;
        font-size: 10px;
    }
    
    .lap-selisih-meta span {
        font-size: 9px;
    }
}

.lap-selisih-detail-nominal {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: -0.2px;
    flex-shrink: 0;
    white-space: nowrap;
}

.lap-selisih-detail-nominal.under {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
}

.lap-selisih-detail-nominal.over {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.lap-selisih-detail-nominal i {
    font-size: 9px;
}

/* ================================================================ */
/* SWAL DETAIL SELISIH — Compact Popup (seperti popup lain)        */
/* ================================================================ */

.swal2-popup.selisih-detail-popup {
    /* ✅ Lebar compact seperti popup lain */
    width: 92vw !important;
    max-width: 400px !important;
    border-radius: 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 
        0 25px 50px rgba(30, 27, 75, 0.25),
        0 8px 20px rgba(30, 27, 75, 0.15) !important;
}

/* Title area */
.swal2-popup.selisih-detail-popup .swal2-title {
    padding: 20px 20px 12px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
    text-align: left !important;
}

/* HTML container — hilangkan padding bawaan */
.swal2-popup.selisih-detail-popup .swal2-html-container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Body scroll area */
.swal2-popup.selisih-detail-popup .swal2-html-container > div {
    max-height: 70vh;
    overflow-y: auto;
    padding: 16px 20px 20px !important;
}

/* Scrollbar tipis */
.swal2-popup.selisih-detail-popup .swal2-html-container > div::-webkit-scrollbar {
    width: 4px;
}

.swal2-popup.selisih-detail-popup .swal2-html-container > div::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.2);
    border-radius: 2px;
}

.swal2-popup.selisih-detail-popup .swal2-html-container > div::-webkit-scrollbar-track {
    background: transparent;
}

/* Close button */
.swal2-popup.selisih-detail-popup .swal2-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(241, 245, 249, 0.8) !important;
    color: #64748b !important;
    font-size: 18px !important;
    transition: all 0.2s !important;
    z-index: 10 !important;
}

.swal2-popup.selisih-detail-popup .swal2-close:hover {
    background: rgba(220, 38, 38, 0.1) !important;
    color: #dc2626 !important;
    transform: scale(1.1) !important;
}

/* Responsive mobile */
@media (max-width: 380px) {
    .swal2-popup.selisih-detail-popup {
        width: 94vw !important;
        max-width: 94vw !important;
    }
    
    .swal2-popup.selisih-detail-popup .swal2-title {
        padding: 16px 16px 10px !important;
    }
    
    .swal2-popup.selisih-detail-popup .swal2-html-container > div {
        padding: 14px 16px 16px !important;
        max-height: 75vh;
    }
    
    .swal2-popup.selisih-detail-popup .swal2-close {
        top: 12px !important;
        right: 12px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 16px !important;
    }
}

/* ================================================================ */
/* LAPORAN SALDO — ACCORDION PER KATEGORI                          */
/* ================================================================ */

.lap-saldo-accordion {
    background: white;
    border-radius: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(124, 58, 237, 0.08);
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.04);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lap-saldo-accordion:hover {
    border-color: rgba(124, 58, 237, 0.15);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

/* ───────────────────────────────────────────── */
/* HEADER (clickable)                             */
/* ───────────────────────────────────────────── */

.lap-saldo-accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
    position: relative;
}

.lap-saldo-accordion-header:hover {
    background: rgba(124, 58, 237, 0.02);
}

.lap-saldo-accordion-header:active {
    background: rgba(124, 58, 237, 0.05);
}

/* Icon kategori */
.lap-saldo-accordion-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.lap-saldo-accordion-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 8px 8px 50% 50%;
    pointer-events: none;
}

/* Info kategori */
.lap-saldo-accordion-info {
    flex: 1;
    min-width: 0;
}

.lap-saldo-accordion-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.lap-saldo-accordion-count {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.2;
}

/* Total kategori */
.lap-saldo-accordion-total {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #16a34a;
    letter-spacing: -0.3px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Arrow (rotate when open) */
.lap-saldo-accordion-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    font-size: 10px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lap-saldo-accordion.open .lap-saldo-accordion-arrow {
    transform: rotate(180deg);
    background: rgba(124, 58, 237, 0.15);
}

/* ───────────────────────────────────────────── */
/* BODY (collapsed by default)                    */
/* ───────────────────────────────────────────── */

.lap-saldo-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(248, 245, 255, 0.3);
}

.lap-saldo-accordion.open .lap-saldo-accordion-body {
    max-height: 2000px;  /* Cukup untuk banyak akun */
}

.lap-saldo-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 14px;
    border-top: 1px dashed rgba(124, 58, 237, 0.1);
}

/* Modifikasi item di dalam accordion */
.lap-saldo-accordion .lap-saldo-item {
    background: white;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(124, 58, 237, 0.06);
    transition: all 0.2s;
}

.lap-saldo-accordion .lap-saldo-item:hover {
    border-color: rgba(124, 58, 237, 0.15);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.06);
}

/* ───────────────────────────────────────────── */
/* RESPONSIVE                                     */
/* ───────────────────────────────────────────── */

@media (max-width: 380px) {
    .lap-saldo-accordion-header {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .lap-saldo-accordion-icon {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    
    .lap-saldo-accordion-label {
        font-size: 12px;
    }
    
    .lap-saldo-accordion-count {
        font-size: 9px;
    }
    
    .lap-saldo-accordion-total {
        font-size: 12px;
    }
    
    .lap-saldo-accordion-arrow {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }
    
    .lap-saldo-accordion-list {
        padding: 10px 12px 12px;
        gap: 6px;
    }
}