body {
    background: #f6f7fb;
    color: #1f2937;
}

.sidebar {
    width: 250px;
    min-height: 100vh;
    background: #111827;
    position: sticky;
    top: 0;
}

.sidebar .nav-link {
    color: #cbd5e1;
    border-radius: 8px;
    padding: .7rem .85rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: #2563eb;
    color: #fff;
}

.brand-wrap {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo {
    display: block;
    width: 170px;
    height: 58px;
    object-fit: contain;
}

.brand-fallback {
    display: none;
}

.content {
    min-width: 0;
}

.stat-card,
.table-card {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.table-card {
    background: #fff;
    padding: 1rem;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #111827, #1d4ed8);
}

.login-card {
    width: min(420px, 92vw);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.login-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo {
    width: 220px;
    height: 82px;
    object-fit: contain;
}

.badge-soft {
    background: #e0ecff;
    color: #1d4ed8;
}

.form-control,
.form-select,
.btn {
    border-radius: 8px;
}

.monthly-grid {
    min-width: 1500px;
}

.monthly-grid th,
.monthly-grid td {
    vertical-align: top;
}

.sticky-service {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 260px;
    max-width: 260px;
}

.monthly-grid thead .sticky-service {
    z-index: 4;
}

.monthly-cell {
    min-width: 120px;
    border-radius: 8px;
    padding: .5rem;
    border: 1px solid transparent;
}

.monthly-paid {
    background: #dcfce7;
    border-color: #86efac;
}

.monthly-confirmed {
    box-shadow: inset 0 0 0 2px #16a34a;
}

.monthly-not_paid {
    background: #fee2e2;
    border-color: #fca5a5;
}

.monthly-partial {
    background: #fef3c7;
    border-color: #facc15;
}

.monthly-saving {
    opacity: .65;
}

@media (max-width: 900px) {
    .sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
    }

    .d-flex {
        display: block !important;
    }
}
