/* =========================================================================
   PropertyManagers — admin & auth shell (Jobick overrides)
   Same palette as public site (--pm-*), distinct “ops console” chrome:
   dark nav rail + light workspace. Scoped to body.pm-admin-theme.
   ========================================================================= */

body.pm-admin-theme {
    /* Mirror marketing tokens for gradients / one-off use */
    --pm-primary: #1a2744;
    --pm-primary-soft: #2c3d5c;
    --pm-primary-dark: #0d121c;
    --pm-primary-rgb: 26, 39, 68;
    --pm-accent: #c9a040;
    --pm-accent-soft: #f4ead4;
    --pm-accent-dark: #9a7424;
    --pm-bg: #f6f7f9;
    --pm-bg-alt: #eceef2;
    --pm-surface: #ffffff;
    --pm-text: #161c24;
    --pm-text-muted: #5c6575;
    --pm-border: #e2e5ea;

    /* Jobick / template variables consumed by style.css */
    --primary: #1a2744;
    --primary-hover: #2c3d5c;
    --primary-dark: #0d121c;
    --rgba-primary-1: rgba(26, 39, 68, 0.1);
    --rgba-primary-2: rgba(26, 39, 68, 0.18);
    --rgba-primary-3: rgba(26, 39, 68, 0.28);
    --rgba-primary-4: rgba(26, 39, 68, 0.38);
    --rgba-primary-5: rgba(26, 39, 68, 0.48);
    --rgba-primary-6: rgba(26, 39, 68, 0.58);
    --rgba-primary-7: rgba(26, 39, 68, 0.68);
    --rgba-primary-8: rgba(26, 39, 68, 0.78);
    --rgba-primary-9: rgba(26, 39, 68, 0.88);
    --secondary: #1e4a45;
    --title: #161c24;
    --text-dark: #161c24;
    --text-gray: #7a8499;
    --text: #5c6575;
    --body-bg: #eceef2;
    --light: #f6f7f9;
    --border: #e2e5ea;
    --card: #ffffff;
    --nav-headbg: #0d121c;
    --sidebar-bg: #121a2a;
    --headerbg: #f6f7f9;
    --font-family-base: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-family-title: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.pm-admin-theme,
body.pm-admin-theme .header,
body.pm-admin-theme .content-body {
    font-family: var(--font-family-base);
}

/* ---- Sidebar: light-on-dark (template assumed light sidebar) ---- */
body.pm-admin-theme .dlabnav .metismenu > li > a {
    color: rgba(255, 255, 255, 0.78);
}
body.pm-admin-theme .dlabnav .metismenu > li > a i {
    color: rgba(255, 255, 255, 0.45);
}
body.pm-admin-theme .dlabnav .metismenu > li:hover > a,
body.pm-admin-theme .dlabnav .metismenu > li:focus > a {
    color: #fff;
}
body.pm-admin-theme .dlabnav .metismenu > li:hover > a i,
body.pm-admin-theme .dlabnav .metismenu > li:focus > a i {
    color: var(--pm-accent);
}
body.pm-admin-theme .dlabnav .metismenu > li.mm-active > a {
    color: #fff;
    background: rgba(201, 160, 64, 0.14);
    box-shadow: inset 3px 0 0 var(--pm-accent);
}
body.pm-admin-theme .dlabnav .metismenu > li.mm-active > a i {
    color: var(--pm-accent);
}
body.pm-admin-theme .dlabnav .metismenu > li.mm-active > a:after {
    border-top-color: var(--pm-accent);
    border-left-color: var(--pm-accent);
}
body.pm-admin-theme .dlabnav .metismenu a {
    color: rgba(255, 255, 255, 0.72);
}
body.pm-admin-theme .dlabnav .metismenu ul a:hover,
body.pm-admin-theme .dlabnav .metismenu ul a:focus,
body.pm-admin-theme .dlabnav .metismenu ul a.mm-active {
    color: var(--pm-accent-soft);
}
body.pm-admin-theme .dlabnav .metismenu .has-arrow:after {
    border-top-color: rgba(255, 255, 255, 0.35);
    border-left-color: rgba(255, 255, 255, 0.35);
}

body.pm-admin-theme .dlabnav .header-info2 {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
body.pm-admin-theme .dlabnav .header-info2 span,
body.pm-admin-theme .dlabnav .header-info2 small {
    color: rgba(255, 255, 255, 0.88) !important;
}
body.pm-admin-theme .dlabnav .header-info2 i {
    color: rgba(255, 255, 255, 0.45);
}

body.pm-admin-theme .dlabnav .copyright p,
body.pm-admin-theme .dlabnav .copyright strong {
    color: rgba(255, 255, 255, 0.38);
}

body.pm-admin-theme .plus-box {
    background: linear-gradient(135deg, rgba(26, 39, 68, 0.95) 0%, rgba(30, 74, 69, 0.92) 100%);
    border: 1px solid rgba(201, 160, 64, 0.25);
}
body.pm-admin-theme .plus-box .plus-box-p {
    color: rgba(255, 255, 255, 0.62);
}

/* Logo strip */
body.pm-admin-theme .nav-header .brand-logo {
    color: #fff;
}

/* Mobile: keep logo strip solid so hamburger stays visible */
@media only screen and (max-width: 47.9375rem) {
    body.pm-admin-theme .nav-header {
        background-color: var(--nav-headbg) !important;
    }
    body.pm-admin-theme .hamburger .line {
        background: rgba(255, 255, 255, 0.82);
    }
}

/* Primary buttons: brass CTA (distinct from marketing pill, still on-brand) */
body.pm-admin-theme .btn-primary {
    background-color: var(--pm-accent-dark);
    border-color: var(--pm-accent-dark);
    color: #fff;
    font-weight: 600;
}
body.pm-admin-theme .btn-primary:hover,
body.pm-admin-theme .btn-primary:focus {
    background-color: var(--pm-accent);
    border-color: var(--pm-accent);
    color: #0d121c;
}

body.pm-admin-theme .btn-outline-primary {
    color: var(--pm-primary);
    border-color: rgba(var(--pm-primary-rgb), 0.35);
    font-weight: 600;
}
body.pm-admin-theme .btn-outline-primary:hover {
    background: var(--pm-primary);
    border-color: var(--pm-primary);
    color: #fff;
}

body.pm-admin-theme .text-primary {
    color: var(--pm-primary) !important;
}

/* Cards / tables in workspace */
body.pm-admin-theme .content-body .card {
    border-color: var(--pm-border);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 20, 28, 0.04), 0 8px 24px rgba(15, 20, 28, 0.06);
}
body.pm-admin-theme .content-body .table thead th {
    color: var(--pm-text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---- Standalone auth pages (login / register) ---- */
body.pm-admin-theme.pm-backend-auth {
    min-height: 100vh;
    background: linear-gradient(155deg, #0d121c 0%, #1a2744 42%, #243554 88%) !important;
    background-attachment: fixed;
}
body.pm-admin-theme.pm-backend-auth .fix-wrapper {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
body.pm-admin-theme.pm-backend-auth .card {
    border-radius: 18px;
    border: 1px solid var(--pm-border);
    box-shadow: 0 18px 50px rgba(13, 18, 28, 0.35);
}
body.pm-admin-theme.pm-backend-auth .card h4 {
    color: var(--pm-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}
body.pm-admin-theme.pm-backend-auth .form-label {
    font-weight: 500;
    color: var(--pm-text-muted);
}
body.pm-admin-theme.pm-backend-auth .btn-primary {
    border-radius: 12px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
