/* ==========================================================================
   Arus Kas (Kas Masuk / Kas Keluar / Kas Debet) - table & layout refinements
   ========================================================================== */

.cashflow-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #d7dce3;
    border-radius: 4px;
}

.cashflow-table.table {
    margin-bottom: 0;
    min-width: 760px;
    border-collapse: collapse;
}

.cashflow-table.table.table-bordered {
    border: none;
}

.cashflow-table.table.table-bordered > thead > tr > th,
.cashflow-table.table.table-bordered > tbody > tr > th,
.cashflow-table.table.table-bordered > tbody > tr > td,
.cashflow-table.table.table-bordered > thead > tr > td {
    border: 1px solid #d7dce3;
}

.cashflow-table.table > thead > tr > th {
    background-color: #f4f7fa;
    color: #4a5568;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .03em;
    white-space: nowrap;
    vertical-align: middle;
    padding: 12px 10px;
    border-bottom: 2px solid #188ae2 !important;
}

.cashflow-table.table > tbody > tr > td {
    padding: 10px;
    vertical-align: middle;
    font-size: 13px;
}

.cashflow-table.table.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #fbfcfd;
}

.cashflow-table.table > tbody > tr:hover > td {
    background-color: #f4f8fb;
}

.cashflow-table .col-no,
.cashflow-table .col-tgl,
.cashflow-table .col-aksi {
    text-align: center;
    white-space: nowrap;
}

.cashflow-table .col-currency {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    color: #ffffff !important;
    border: 1px solid transparent;
    text-decoration: none !important;
    cursor: pointer;
}

.btn-action i {
    font-size: 12px;
}

.btn-action-edit {
    background-color: #35b8e0;
    border-color: #35b8e0;
}

.btn-action-edit:hover,
.btn-action-edit:focus {
    background-color: #21afda;
    border-color: #21afda;
    color: #ffffff;
}

.btn-action-delete {
    background-color: #ff5b5b;
    border-color: #ff5b5b;
}

.btn-action-delete:hover,
.btn-action-delete:focus {
    background-color: #ff4242;
    border-color: #ff4242;
    color: #ffffff;
}

.btn-action-pay {
    background-color: #0284c7;
    border-color: #0284c7;
}

.btn-action-pay:hover,
.btn-action-pay:focus {
    background-color: #0270a8;
    border-color: #0270a8;
    color: #ffffff;
}

.btn-action-view {
    background-color: #94a3b8;
    border-color: #94a3b8;
}

.btn-action-view:hover,
.btn-action-view:focus {
    background-color: #7c8ca3;
    border-color: #7c8ca3;
    color: #ffffff;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
}

.status-badge-belum {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge-lunas {
    background: #dcfce7;
    color: #16a34a;
}

.cashflow-table .col-empty {
    text-align: center;
    padding: 20px 10px;
    color: #9aa5b1;
}

@media (max-width: 767px) {
    .cashflow-table.table > thead > tr > th,
    .cashflow-table.table > tbody > tr > td {
        padding: 8px 6px;
        font-size: 12px;
    }
}

/* ==========================================================================
   Laporan Kas - ringkasan (Debet / Kredit / Sisa Saldo / Forecast Margin)
   ========================================================================== */

.kas-summary-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.kas-summary-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.kas-summary-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #7b8794;
    margin-bottom: 4px;
}

.kas-summary-value {
    font-size: 21px;
    font-weight: 800;
    color: #1f2937;
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}

.kas-summary-value.kas-value-pos { color: #16a34a; }
.kas-summary-value.kas-value-neg { color: #dc2626; }

.kas-i-debet { background: #e0f2fe; color: #0284c7; }
.kas-i-kredit { background: #dcfce7; color: #16a34a; }
.kas-i-saldo { background: #ede9fe; color: #7c3aed; }
.kas-i-margin-pos { background: #dcfce7; color: #16a34a; }
.kas-i-margin-neg { background: #fee2e2; color: #dc2626; }
.kas-i-amber { background: #fef3c7; color: #d97706; }
.kas-i-teal { background: #ccfbf1; color: #0d9488; }

/* Kotak kartu KPI diberi warna blok penuh (bukan cuma ikonnya), per menu */
.kas-summary-card.kas-c-debet { background: #e0f2fe; border-left: 4px solid #0284c7; }
.kas-summary-card.kas-c-kredit { background: #dcfce7; border-left: 4px solid #16a34a; }
.kas-summary-card.kas-c-saldo { background: #ede9fe; border-left: 4px solid #7c3aed; }
.kas-summary-card.kas-c-margin-pos { background: #dcfce7; border-left: 4px solid #16a34a; }
.kas-summary-card.kas-c-margin-neg { background: #fee2e2; border-left: 4px solid #dc2626; }
.kas-summary-card.kas-c-amber { background: #fef3c7; border-left: 4px solid #d97706; }
.kas-summary-card.kas-c-teal { background: #ccfbf1; border-left: 4px solid #0d9488; }
.kas-summary-card[class*="kas-c-"] .kas-summary-icon { background: rgba(255,255,255,.65); }
.kas-summary-card[class*="kas-c-"] .kas-summary-title { color: #4b5563; }

/* ==========================================================================
   Sidebar navigation - dividers & icon alignment refinements
   ========================================================================== */

#sidebar-menu {
    border-top: 2px solid #93c5fd;
    margin-top: 2px;
}

/* Divider line between each top-level menu item */
#sidebar-menu > ul > li {
    border-bottom: 1px solid #bfdbfe;
}
#sidebar-menu > ul > li:last-child {
    border-bottom: none;
}
#sidebar-menu > ul > li.menu-title {
    border-bottom: 2px solid #93c5fd;
}

/* Divider line between each submenu item */
#sidebar-menu ul ul li {
    border-bottom: 1px solid #dbeafe;
}
#sidebar-menu ul ul li:last-child {
    border-bottom: none;
}

/* Keep submenu icons the same width/alignment as top-level icons */
#sidebar-menu ul ul a i {
    display: inline-block;
    width: 16px;
    text-align: center;
    vertical-align: middle;
    margin-right: 10px;
    font-size: 13px;
}
