/* ================================================================
   DASHBOARD TABLER POLISH
   Sits on top of tabler.min.css + dashboard-core.css.
   Styles the new aside_menu.php / header.php markup and refines a
   handful of components so the whole app looks Tabler-modern.
   ================================================================ */

/* ----------------------------------------------------------------
   SIDEBAR — Tabler-flavored grouped navigation
   Outer .dash-aside-navbar positioning still comes from dashboard-core.css
   ---------------------------------------------------------------- */
.dash-aside-navbar {
    background: #182433;
    color: #94a3b8;
}

.dash-aside-navbar .sidebar-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 16px 12px 24px;
}

.dash-aside-navbar .sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.dash-aside-navbar .sidebar-brand img {
    max-height: 36px;
    filter: brightness(0) invert(1);
}

.dash-aside-navbar .sidebar-nav { flex: 1; }
.dash-aside-navbar .sidebar-nav-list,
.dash-aside-navbar .sidebar-nav-submenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dash-aside-navbar .sidebar-nav-item { margin: 2px 0; }

.dash-aside-navbar .sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
    cursor: pointer;
    line-height: 1.4;
}
.dash-aside-navbar .sidebar-nav-link:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
    text-decoration: none;
}
.dash-aside-navbar .sidebar-nav-link.active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,.30);
}

.dash-aside-navbar .sidebar-nav-icon {
    width: 22px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dash-aside-navbar .sidebar-nav-icon i {
    font-size: 16px;
    color: #64748b;
    transition: color .15s;
}
.dash-aside-navbar .sidebar-nav-link:hover .sidebar-nav-icon i,
.dash-aside-navbar .sidebar-nav-link.active .sidebar-nav-icon i {
    color: inherit;
}

.dash-aside-navbar .sidebar-nav-label { flex: 1; }

.dash-aside-navbar .sidebar-nav-caret {
    font-size: 11px;
    color: #64748b;
    transition: transform .2s;
}
.dash-aside-navbar .sidebar-nav-toggle[aria-expanded="true"] .sidebar-nav-caret {
    transform: rotate(180deg);
    color: #cbd5e1;
}

.dash-aside-navbar .sidebar-nav-submenu ul {
    padding: 4px 0 4px 38px;
}
.dash-aside-navbar .sidebar-nav-submenu li a {
    display: block;
    padding: 7px 12px;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
    line-height: 1.4;
}
.dash-aside-navbar .sidebar-nav-submenu li a:hover {
    background: rgba(255,255,255,.05);
    color: #fff;
    text-decoration: none;
}
.dash-aside-navbar .sidebar-nav-submenu li a.active {
    background: rgba(37,99,235,.18);
    color: #fff;
    font-weight: 600;
}

.dash-aside-navbar .sidebar-footer {
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 12px;
    margin-top: 8px;
}
.dash-aside-navbar .sidebar-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.dash-aside-navbar .sidebar-logout:hover {
    background: rgba(239,68,68,.12);
    color: #f87171;
    text-decoration: none;
}
.dash-aside-navbar .sidebar-logout .sidebar-nav-icon i { color: inherit; }

/* Close button (mobile) */
.dash-aside-navbar .sidebar-logo .close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dash-aside-navbar .sidebar-logo .close-btn:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

/* ----------------------------------------------------------------
   HEADER — refreshed avatar + dropdown
   ---------------------------------------------------------------- */
.dashboard-header { background: #fff; }

.dashboard-header .user-data { position: relative; }
.dashboard-header .user-avatar-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 0;
    padding: 4px 8px 4px 4px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s;
}
.dashboard-header .user-avatar-btn:hover { background: #f1f5f9; }
.dashboard-header .user-avatar-btn::after { display: none; }

.dashboard-body .dashboard-header .user-data .user-avatar-btn .user-avatar,
.dashboard-header .user-avatar-btn .user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    border: 0;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    cursor: pointer;
}
.dashboard-body .dashboard-header .user-data .user-avatar-btn .user-avatar.online::before,
.dashboard-header .user-avatar-btn .user-avatar.online::before { display: none; }
.dashboard-body .dashboard-header .user-data .user-avatar-btn .user-avatar.online::after,
.dashboard-header .user-avatar-btn .user-avatar.online::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
}
.dashboard-header .user-avatar-btn .user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}
.dashboard-header .user-avatar-btn .user-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
}
.dashboard-header .user-avatar-btn .user-role {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}

/* Notification header inside dropdown */
.dashboard-header .profile-notification .noti-header {
    padding: 12px 4px 10px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
}
.dashboard-header .profile-notification .noti-header h6 {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.dashboard-header .profile-notification .noti-btn { position: relative; }
.dashboard-header .profile-notification .noti-btn::after { display: none; }

/* ----------------------------------------------------------------
   BOOTSTRAP COMPONENT POLISH
   Tabler.min.css already restyles most Bootstrap components.
   Here we make sure custom classes and edge cases align.
   ---------------------------------------------------------------- */

/* Cards — softer borders + subtle shadow */
body .card,
body .card-modern,
body .content-card,
body .recent-job-tab {
    border-color: #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}

/* Tabler-style page header padding for the existing .page-header-row */
.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0 24px;
    gap: 16px;
}
.page-header-row h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
}
.page-header-row .page-date {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* Mobile bottom nav — preserve current look, tweak typography */
.mobile-bottom-nav {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 8px rgba(15,23,42,.06);
}

/* Sidebar scrollbar (subtle) */
.dash-aside-navbar::-webkit-scrollbar { width: 4px; }
.dash-aside-navbar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
.dash-aside-navbar::-webkit-scrollbar-track { background: transparent; }

/* ================================================================
   LOTUS CLEAN UI
   A restrained visual layer for the entire Dashboard. Page-level
   styles intentionally keep ownership of layout while these rules
   normalize shape, depth, density, and hierarchy across the app.
   ================================================================ */

:root {
    --sidebar-w: 252px;
    --header-h: 60px;
    --page-bg: #f5f6f8;
    --card-bg: #ffffff;
    --border: #dfe3e8;
    --ui-border-strong: #cfd5dc;
    --ui-surface-muted: #f8f9fb;
    --ui-sidebar: #111827;
    --ui-sidebar-hover: rgba(255,255,255,.055);
    --ui-sidebar-active: rgba(59,130,246,.14);

    --r: .25rem;
    --r-lg: .375rem;
    --r-xl: .5rem;
    --r-2xl: .625rem;
    --radius-sm: .25rem;
    --radius: .375rem;
    --radius-md: .375rem;
    --radius-lg: .5rem;
    --radius-xl: .625rem;

    --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
    --shadow-sm: 0 1px 2px rgba(15,23,42,.045);
    --shadow: 0 2px 6px rgba(15,23,42,.06);
    --shadow-md: 0 8px 20px rgba(15,23,42,.09);
    --shadow-lg: 0 16px 36px rgba(15,23,42,.12);
    --shadow-blue: none;
    --transition: background-color .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;

    --bs-border-radius: .375rem;
    --bs-border-radius-sm: .25rem;
    --bs-border-radius-lg: .5rem;
    --bs-border-radius-xl: .625rem;
    --tblr-border-radius: .375rem;
    --tblr-border-radius-sm: .25rem;
    --tblr-border-radius-lg: .5rem;
}

body {
    color: var(--slate-800);
    background: var(--page-bg);
    font-feature-settings: "kern";
    -webkit-font-smoothing: antialiased;
}

.main-page-wrapper,
.dashboard-body {
    background: var(--page-bg);
}

.dashboard-body {
    padding: calc(var(--header-h) + 26px) 28px 48px;
}

/* Shell ---------------------------------------------------------------- */
.dash-aside-navbar {
    background: var(--ui-sidebar);
    border-right: 1px solid rgba(255,255,255,.055);
}

.dash-aside-navbar .sidebar-inner {
    padding: 14px 10px 18px;
}

.dash-aside-navbar .sidebar-logo {
    min-height: 52px;
    padding: 3px 10px 13px;
    margin-bottom: 9px;
    border-bottom-color: rgba(255,255,255,.075);
}

.dash-aside-navbar .sidebar-brand img {
    max-height: 32px;
}

.dash-aside-navbar .sidebar-nav-item {
    margin: 1px 0;
}

.dash-aside-navbar .sidebar-nav-link {
    min-height: 40px;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #b8c1cf;
    font-size: 13.5px;
}

.dash-aside-navbar .sidebar-nav-link:hover {
    background: var(--ui-sidebar-hover);
}

.dash-aside-navbar .sidebar-nav-link.active {
    background: var(--ui-sidebar-active);
    box-shadow: inset 3px 0 0 #60a5fa;
}

.dash-aside-navbar .sidebar-nav-icon {
    width: 20px;
}

.dash-aside-navbar .sidebar-nav-icon i {
    font-size: 15px;
    color: #748197;
}

.dash-aside-navbar .sidebar-nav-submenu ul {
    padding: 3px 0 5px 35px;
}

.dash-aside-navbar .sidebar-nav-submenu li a {
    padding: 7px 10px;
    border-radius: 4px;
    color: #8e9bae;
    font-size: 13px;
}

.dash-aside-navbar .sidebar-nav-submenu li a.active {
    background: transparent;
    color: #fff;
}

.dash-aside-navbar .sidebar-footer {
    border-top-color: rgba(255,255,255,.075);
}

.dash-aside-navbar .sidebar-logout {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13.5px;
}

.dashboard-body .dashboard-header {
    height: var(--header-h);
    padding: 0 28px;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}

.dashboard-body .dashboard-header h4 {
    font-size: 14.5px;
    font-weight: 650;
    letter-spacing: -.015em;
}

.dashboard-body .dashboard-header .profile-notification .noti-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #fff;
    border-color: var(--border);
}

.dashboard-body .dashboard-header .profile-notification .noti-btn:hover {
    background: var(--ui-surface-muted);
    border-color: var(--ui-border-strong);
}

.dashboard-header .user-avatar-btn {
    min-height: 40px;
    padding: 3px 7px 3px 3px;
    border-radius: 6px;
}

.dashboard-body .dashboard-header .user-data .user-avatar-btn .user-avatar,
.dashboard-header .user-avatar-btn .user-avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
}

.dashboard-header .user-avatar-btn .user-name {
    font-size: 13px;
}

.dashboard-header .user-avatar-btn .user-role {
    font-size: 11px;
}

/* Page hierarchy ------------------------------------------------------- */
.page-header-row {
    padding: 0 0 20px;
    margin-bottom: 0;
}

.page-header-row h2,
.main-title,
.dashboard-body .main-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.03em;
}

.page-header-row .page-date,
.page-date {
    margin-top: 3px;
    color: var(--slate-500);
    font-size: 12.5px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.dash-title-two,
.content-card-title {
    font-weight: 650;
    letter-spacing: -.01em;
}

/* Flat content surfaces ------------------------------------------------ */
body .card,
body .card-modern,
body .content-card,
body .recent-job-tab,
.dashboard-body .card-box,
.dashboard-body .border-15,
.dashboard-body .border-20,
.dashboard-body .border-30 {
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.dashboard-body .section-card,
.dashboard-body .form-card,
.dashboard-body .panel,
.dashboard-body .inspection-section-card,
.dashboard-body .inspection-selector,
.dashboard-body .property-header-card,
.dashboard-body .unit-header-card,
.dashboard-body .message-card,
.dashboard-body .tenant-card,
.dashboard-body .unit-card,
.dashboard-body .loan-card,
.dashboard-body .property-card,
.dashboard-body .proj-card,
.dashboard-body .summary-card,
.dashboard-body .lease-info-card,
.dashboard-body .empty-state {
    border-radius: 8px !important;
    box-shadow: none !important;
}

.dashboard-body .section-card,
.dashboard-body .form-card,
.dashboard-body .panel,
.dashboard-body .inspection-section-card,
.dashboard-body .property-header-card,
.dashboard-body .unit-header-card,
.dashboard-body .message-card,
.dashboard-body .loan-card,
.dashboard-body .property-card,
.dashboard-body .proj-card {
    border-color: var(--border) !important;
}

.content-card-header {
    min-height: 52px;
    padding: 14px 18px;
    border-bottom-color: var(--border);
}

.dashboard-body .proj-hero {
    border-radius: 8px !important;
    background: #172033 !important;
}

.dashboard-body .metric-card:hover,
.dashboard-body .card-modern:hover,
.dashboard-body .proj-card:hover,
.dashboard-body .unit-card:hover,
.dashboard-body .tenant-card:hover,
.dashboard-body .property-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Metrics -------------------------------------------------------------- */
.metric-grid {
    gap: 12px;
    margin-bottom: 22px;
}

.metric-card,
.dashboard-body .stat-item,
.dashboard-body .metric-item,
.dashboard-body .summary-card {
    border-radius: 8px !important;
    box-shadow: none !important;
}

.metric-card {
    padding: 16px;
    align-items: center;
}

.metric-icon,
.dashboard-body .empty-state-icon,
.prop-empty-icon {
    border-radius: 6px !important;
}

.metric-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.metric-value {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.025em;
}

.metric-label {
    margin-top: 4px;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

/* Buttons -------------------------------------------------------------- */
.btn,
.btn-two,
.dashboard-body .btn-two,
.btn-modern-primary,
.btn-modern-secondary,
.dashboard-body .dash-btn-one,
.dashboard-body .dash-btn-two,
.dashboard-body .dash-cancel-btn,
.dashboard-body .btn-custom,
.dashboard-body .collect-btn,
.dashboard-body .update-btn,
.dashboard-body .btn-start-inspection,
.dashboard-body .btn-save-inspection,
.dashboard-body .btn-cancel-inspection,
.dashboard-body .camera-button,
.btn-login,
.btn-google {
    border-radius: 6px !important;
    box-shadow: none !important;
}

.btn-two,
.dashboard-body .btn-two {
    height: 36px;
    padding: 0 14px;
    line-height: 36px;
    font-size: 13px;
}

.btn:hover,
.btn-two:hover,
.dashboard-body .btn-two:hover,
.btn-modern-primary:hover,
.dashboard-body .btn-custom:hover,
.btn-login:hover {
    transform: none !important;
    box-shadow: none !important;
}

.btn-view-all {
    padding: 3px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--blue-600);
}

.btn-view-all:hover {
    background: transparent;
    color: var(--blue-700);
}

/* Forms --------------------------------------------------------------- */
.dashboard-body .dash-input-wrapper input,
.dashboard-body .dash-input-wrapper textarea,
.dashboard-body .dash-input-wrapper select,
.dashboard-body input.form-control,
.dashboard-body textarea.form-control,
.dashboard-body select.form-select,
.form-control,
.form-select,
.nice-select,
.input-group-text {
    border-radius: 6px !important;
    border-color: var(--ui-border-strong);
    box-shadow: none;
}

.dashboard-body input.form-control,
.dashboard-body select.form-select,
.form-control,
.form-select,
.nice-select {
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.form-control:focus,
.form-select:focus,
.nice-select:focus,
.dashboard-body .dash-input-wrapper input:focus,
.dashboard-body .dash-input-wrapper textarea:focus,
.dashboard-body .dash-input-wrapper select:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 2px rgba(37,99,235,.11) !important;
}

.form-label,
.dashboard-body label.form-label,
.dashboard-body .dash-input-wrapper label {
    color: var(--slate-700);
    font-size: 12.5px;
    font-weight: 600;
}

.form-check-input:not([type="radio"]) {
    border-radius: 3px;
}

.dashboard-body .period-selector,
.dashboard-body .scope-selection,
.dashboard-body .property-selection,
.dashboard-body .method-selector,
.dashboard-body .add-cost-row,
.dashboard-body .search-box {
    border-radius: 6px !important;
}

/* Tables --------------------------------------------------------------- */
.dashboard-body table {
    font-size: 13.5px;
}

.property-list-table th,
.saved-search-table th,
.dashboard-body table th,
.report-table thead th {
    padding: 10px 14px !important;
    background: var(--ui-surface-muted) !important;
    color: var(--slate-600) !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.property-list-table td,
.saved-search-table td,
.dashboard-body table td,
.report-table tbody td {
    padding: 12px 14px !important;
    border-bottom-color: #e8ebef !important;
    color: var(--slate-700);
}

.dashboard-body table tbody tr:hover > * {
    background: #fafbfc !important;
}

/* Status labels -------------------------------------------------------- */
.badge,
.badge-pill-blue,
.property-type-badge,
.property-status,
.prop-chip,
.status-active,
.status-inactive,
.status-pending,
.dashboard-body .pill,
.dashboard-body .status-pill,
.dashboard-body .type-pill,
.dashboard-body .status-badge,
.dashboard-body .priority-badge,
.dashboard-body .proj-badge,
.dashboard-body .payback-pill,
.dashboard-body .file-pill,
.dashboard-body .unit-type-badge,
.dashboard-body .tenant-status,
.dashboard-body .lease-status,
.dashboard-body .wo-status,
.dashboard-body .payment-status,
.dashboard-body .low-income-badge,
.dashboard-body .occupancy-badge,
.dashboard-body .filter-badge,
.dashboard-body .badge-unread,
.dashboard-body .primary-badge,
.dashboard-body .update-type-badge,
.dashboard-body .inspection-type-badge,
.dashboard-body .condition-badge,
.dashboard-body .draft-badge,
.dashboard-body .rounded-pill {
    border-radius: 4px !important;
}

.prop-chip,
.property-status,
.status-active,
.status-inactive,
.status-pending {
    padding: 3px 7px;
    font-weight: 600;
}

/* Menus, alerts, and overlays ----------------------------------------- */
.dropdown-menu,
.action-dots .dropdown-menu,
.dashboard-body .dashboard-header .profile-notification .dropdown-menu,
.dashboard-body .dashboard-header .user-data .user-name-data .dropdown-menu,
.nice-select.open .list {
    border-radius: 8px;
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}

.dropdown-item,
.action-dots .dropdown-item,
.nice-select .option {
    border-radius: 4px;
}

.alert,
.alert-modern,
.alert-success,
.alert-danger,
.alert-info,
.alert-warning,
.alert-error,
.default-creds {
    border-radius: 6px !important;
}

.modal-content,
.remove-account-popup,
.dashboard-body .photo-modal-content {
    border-radius: 8px !important;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-radius: 8px 8px 0 0;
}

/* Login --------------------------------------------------------------- */
body.login-page,
.login-bg {
    background: #f3f5f7;
}

.login-container {
    max-width: 410px;
    padding: 36px 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(15,23,42,.10);
}

.login-container .login-header {
    margin-bottom: 28px;
}

.login-container .app-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 6px;
    background: var(--blue-600);
    box-shadow: none;
    font-size: 18px;
}

.login-container h1,
.login-container h4 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.03em;
}

.login-container p {
    color: var(--slate-500);
}

.login-container .form-control {
    min-height: 44px;
    border-width: 1px;
}

.btn-google,
.btn-login {
    min-height: 44px;
}

.pw-login summary {
    color: var(--slate-600);
    font-size: 13px;
}

/* Mobile -------------------------------------------------------------- */
.mobile-bottom-nav {
    background: rgba(255,255,255,.98);
    border-top-color: var(--border);
    box-shadow: none;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    :root {
        --sidebar-w: 220px;
    }
}

@media (max-width: 767.98px) {
    .dashboard-body {
        margin-left: 0;
        padding: calc(var(--header-h) + 22px) 22px 82px;
    }

    .dashboard-body .dashboard-header {
        left: 0;
        padding: 0 22px;
    }

    .dash-aside-navbar .sidebar-nav-link,
    .dash-aside-navbar .sidebar-logout {
        min-height: 48px;
    }
}

@media (max-width: 1024px) {
    .dashboard-body input.form-control,
    .dashboard-body select.form-select,
    .form-control,
    .form-select,
    .nice-select {
        min-height: 52px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

@media (max-width: 575.98px) {
    .dashboard-body {
        padding: calc(var(--header-h) + 18px) 14px 82px;
    }

    .dashboard-body .dashboard-header {
        padding: 0 14px;
    }

    .page-header-row h2,
    .main-title,
    .dashboard-body .main-title {
        font-size: 21px;
    }

    .metric-card {
        padding: 13px 12px;
    }

    .login-container {
        padding: 30px 24px;
    }
}

/* Page-local theme normalization -------------------------------------- */
.dashboard-body .page-header,
.dashboard-body .form-header,
.dashboard-body .settings-header,
.dashboard-body .messages-header,
.dashboard-body .inspection-header,
.dashboard-body .page-head,
.dashboard-body > .position-relative > .property-header,
.dashboard-body > .position-relative > .unit-header {
    padding: 0 0 20px !important;
    margin-bottom: 22px !important;
    color: var(--slate-900) !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.dashboard-body .page-header p,
.dashboard-body .form-header p,
.dashboard-body .settings-header p,
.dashboard-body .messages-header p,
.dashboard-body .inspection-header p,
.dashboard-body .page-head p,
.dashboard-body > .position-relative > .property-header p,
.dashboard-body > .position-relative > .unit-header p {
    color: var(--slate-500) !important;
    opacity: 1 !important;
}

.dashboard-body .page-title,
.dashboard-body .form-title,
.dashboard-body .messages-title,
.dashboard-body .inspection-title,
.dashboard-body .property-title,
.dashboard-body .unit-title,
.dashboard-body .page-head h1,
.dashboard-body .proj-hero h1 {
    margin-bottom: 5px !important;
    color: inherit;
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: -.03em;
}

.dashboard-body .property-header-card,
.dashboard-body .unit-header-card,
.dashboard-body .proj-hero {
    padding: 24px !important;
    margin-bottom: 22px !important;
    color: var(--slate-900) !important;
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.dashboard-body .property-header-card .property-address,
.dashboard-body .unit-header-card .unit-address,
.dashboard-body .proj-hero .meta {
    color: var(--slate-500) !important;
    opacity: 1 !important;
}

.dashboard-body .property-header-card .metric-item,
.dashboard-body .unit-header-card .metric-item,
.dashboard-body .proj-hero .metric {
    padding: 14px !important;
    color: var(--slate-800) !important;
    background: var(--ui-surface-muted) !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    backdrop-filter: none !important;
}

.dashboard-body .property-header-card .metric-label,
.dashboard-body .unit-header-card .metric-label,
.dashboard-body .proj-hero .metric small {
    color: var(--slate-500) !important;
    opacity: 1 !important;
}

.dashboard-body .section-title {
    margin-bottom: 18px !important;
    padding-bottom: 11px !important;
    color: var(--slate-900) !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 17px !important;
    font-weight: 650 !important;
    letter-spacing: -.015em;
}

.dashboard-body .metric-card.primary,
.dashboard-body .metric-card.success,
.dashboard-body .metric-card.warning,
.dashboard-body .metric-card.info {
    color: var(--slate-900) !important;
    background: #fff !important;
    border: 1px solid var(--border) !important;
}

.dashboard-body .metric-card.primary { border-left: 3px solid var(--blue-600) !important; }
.dashboard-body .metric-card.success { border-left: 3px solid var(--green-600) !important; }
.dashboard-body .metric-card.warning { border-left: 3px solid var(--yellow-600) !important; }
.dashboard-body .metric-card.info    { border-left: 3px solid #0284c7 !important; }

.dashboard-body .metric-card.primary .metric-value,
.dashboard-body .metric-card.success .metric-value,
.dashboard-body .metric-card.warning .metric-value,
.dashboard-body .metric-card.info .metric-value,
.dashboard-body .metric-card.primary .metric-label,
.dashboard-body .metric-card.success .metric-label,
.dashboard-body .metric-card.warning .metric-label,
.dashboard-body .metric-card.info .metric-label {
    color: inherit !important;
}

.dashboard-body .btn-primary-custom {
    color: #fff !important;
    background: var(--blue-600) !important;
    border: 1px solid var(--blue-600) !important;
}

.dashboard-body .btn-success-custom {
    color: #fff !important;
    background: var(--green-700) !important;
    border: 1px solid var(--green-700) !important;
}

.dashboard-body .btn-warning-custom {
    color: #fff !important;
    background: #b45309 !important;
    border: 1px solid #b45309 !important;
}

.dashboard-body .btn-danger-custom {
    color: #fff !important;
    background: #b91c1c !important;
    border: 1px solid #b91c1c !important;
}

.dashboard-body .btn-secondary-custom {
    color: var(--slate-700) !important;
    background: #fff !important;
    border: 1px solid var(--ui-border-strong) !important;
}

.dashboard-body .filter-section,
.dashboard-body .thread-view,
.dashboard-body .results-section,
.dashboard-body .work-order-card,
.dashboard-body .work-order-item,
.dashboard-body .note-item,
.dashboard-body .bill-item,
.dashboard-body .message-body,
.dashboard-body .chat-messages,
.dashboard-body .unit-selection-card,
.dashboard-body .file-pill {
    border-radius: 6px !important;
    box-shadow: none !important;
}

.dashboard-body .filter-section,
.dashboard-body .thread-view,
.dashboard-body .work-order-card {
    border-color: var(--border) !important;
}

.dashboard-body .message-card:hover,
.dashboard-body .work-order-card:hover,
.dashboard-body .unit-selection-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.dashboard-body .chat-message {
    border-radius: 8px !important;
}

.action-btn {
    border-radius: 6px;
    box-shadow: none;
}

@media (max-width: 575.98px) {
    .dashboard-body .page-header,
    .dashboard-body .form-header,
    .dashboard-body .settings-header,
    .dashboard-body .messages-header,
    .dashboard-body .inspection-header,
    .dashboard-body .page-head,
    .dashboard-body > .position-relative > .property-header,
    .dashboard-body > .position-relative > .unit-header {
        padding-bottom: 16px !important;
        margin-bottom: 18px !important;
    }

    .dashboard-body .property-header-card,
    .dashboard-body .unit-header-card,
    .dashboard-body .proj-hero {
        padding: 18px !important;
    }

    .dashboard-body .page-title,
    .dashboard-body .form-title,
    .dashboard-body .messages-title,
    .dashboard-body .inspection-title,
    .dashboard-body .property-title,
    .dashboard-body .unit-title,
    .dashboard-body .page-head h1,
    .dashboard-body .proj-hero h1 {
        font-size: 22px !important;
    }
}
