/* ============================================================
   Joint Property Manager — Styles
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
    --nav-h: 56px;
}

/* ── Base ───────────────────────────────────────────────── */
body { background: #f4f6f9; }

/* ── Main content (full width, no sidebar push) ─────────── */
.main-content {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    flex-direction: column;
}

.main-content > .p-4 { flex: 1; }

/* ── Page header ────────────────────────────────────────── */
.page-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    min-height: 54px;
}

.page-header h5 { font-size: 1rem; color: #212529; }

/* ── Offcanvas sidebar ──────────────────────────────────── */
.sidebar-offcanvas { border-right: 1px solid #dee2e6; }

/* Section heading */
.sidebar-heading {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6c757d;
    padding: 16px 16px 4px;
}

/* Nav-pills overrides for sidebar */
.sidebar-nav .nav-pills .nav-link {
    color: #343a40;
    font-size: .875rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.sidebar-nav .nav-pills .nav-link:hover {
    background-color: #f0f2f5;
    color: #0d6efd;
}

.sidebar-nav .nav-pills .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
}

.sidebar-nav .nav-pills .nav-link .nav-icon {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* ── User avatar ────────────────────────────────────────── */
.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-avatar-lg {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

/* ── Cards ──────────────────────────────────────────────── */
.card { border: 1px solid #e9ecef; border-radius: 8px; }

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: .6rem 1rem;
    font-size: .875rem;
}

/* ── Tables ─────────────────────────────────────────────── */
.table th {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6c757d;
}

/* ── Stat / KPI boxes ───────────────────────────────────── */
.small-box {
    border-radius: 8px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.small-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 .4rem .8rem rgba(0,0,0,.12) !important;
}

/* ── Nav tabs ────────────────────────────────────────────── */
.nav-tabs .nav-link { color: #6c757d; font-size: .875rem; font-weight: 500; }
.nav-tabs .nav-link.active { font-weight: 600; color: #0d6efd; }

/* ── Badge helpers ───────────────────────────────────────── */
.badge.bg-success-subtle   { background-color: #d1e7dd !important; }
.badge.bg-danger-subtle    { background-color: #f8d7da !important; }
.badge.bg-warning-subtle   { background-color: #fff3cd !important; }
.badge.bg-secondary-subtle { background-color: #e2e3e5 !important; }
.badge.bg-info-subtle      { background-color: #cff4fc !important; }

/* ── Login page ──────────────────────────────────────────── */
.login-page { background: #f4f6f9; }
.login-card { max-width: 420px; width: 100%; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { font-size: .8rem; }

/* ── Accordion in settlement report ─────────────────────── */
.accordion-button:not(.collapsed) {
    background-color: #eef2ff;
    color: #0d6efd;
}

/* ── Dropdown user info header ──────────────────────────── */
.dropdown-menu .border-bottom { border-color: #e9ecef !important; }
