/*
 * Custom application styles loaded into every admin panel page
 * (see AdminPanelProvider render hook). Add any custom CSS here.
 */

.ct-border-b {
    border-bottom: 1px solid #e5e7eb;
}

.ct-border-t {
    border-top: 2px solid #e5e7eb;
}

.dark .ct-border-b {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.dark .ct-border-t {
    border-top-color: rgba(255, 255, 255, 0.05);
}

@supports (color: color-mix(in lab, red, red)) {
    .dark .ct-border-b {
        border-bottom-color: color-mix(in oklab, var(--color-white) 5%, transparent);
    }

    .dark .ct-border-t {
        border-top-color: color-mix(in oklab, var(--color-white) 5%, transparent);
    }
}

.ct-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ct-income {
    color: #059669;
}

.dark .ct-income {
    color: #34d399;
}

.ct-expense {
    color: #dc2626;
}

.dark .ct-expense {
    color: #f87171;
}

/* ===== Brand logo sizing ===== */
.app-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-brand-logo {
    height: 2.5rem;
    width: 2.5rem;
    object-fit: contain;
}

.app-brand-name {
    font-weight: 600;
    font-size: 1rem;
}

/* Login (simple) page: logo stacked on top of the label, larger */
.fi-simple-main .app-brand {
    flex-direction: column;
    gap: 0.75rem;
}

.fi-simple-main .app-brand-logo {
    height: 5rem;
    width: 5rem;
}

.fi-simple-main .app-brand-name {
    font-size: 1.25rem;
}

/* Remove default inline-start margin on the brand logo */
.fi-logo {
    margin-inline-start: 0 !important;
}

/* ===== Period closing preview (Generate Potongan & Tunjangan) ===== */
.pc-wrap {
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 0.5rem 0;
}

.pc-table {
    width: 100%;
    border-collapse: collapse;
}

.pc-empty,
.pc-note {
    color: #6b7280;
}

.pc-note {
    margin-top: 0.5rem;
    color: #9ca3af;
}

.pc-th,
.pc-td,
.pc-tf {
    padding: 0.375rem 0.5rem;
}

.pc-th {
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #d1d5db;
}

.pc-td {
    border-bottom: 1px solid #f3f4f6;
}

.pc-tf {
    font-weight: 600;
    border-top: 2px solid #d1d5db;
}

.pc-right {
    text-align: right;
}

.pc-muted {
    color: #d1d5db;
}

.pc-skipped {
    color: #9ca3af;
}
