/*
 * SIL Connect — dashboard UI system (provider / coordinator / seeker portals).
 * Shell + components for the redesigned dashboards. Loaded site-wide after
 * dashboard-modern.css; shares the same --sc-* tokens as site-modern.css.
 */

:root {
    --dash-sidebar-w: 248px;
    --dash-topbar-h: 64px;
    --dash-bg: #f6f5f9;
    --dash-surface: #ffffff;
    --dash-border: #ecebf1;
    --dash-text: #16151c;
    --dash-muted: #71707d;
    --dash-primary: #481d63;
    --dash-primary-soft: #f3eef7;
    --dash-accent: #3ba23f;
    --dash-accent-soft: #eaf7eb;
    --dash-warn-soft: #fff4e5;
    --dash-warn: #b26a00;
    --dash-info-soft: #eef1ff;
    --dash-info: #4c4ddc;
    --dash-radius: 14px;
    --dash-radius-lg: 18px;
    --dash-shadow: 0 1px 2px rgba(20, 10, 30, 0.04), 0 8px 24px rgba(20, 10, 30, 0.05);
}

body.dash-body {
    background: var(--dash-bg);
    color: var(--dash-text);
}

/* ==========================================================
   SHELL
   ========================================================== */
.dash-shell {
    display: flex;
    min-height: 100vh;
}

.dash-sidebar {
    width: var(--dash-sidebar-w);
    flex-shrink: 0;
    background: var(--dash-surface);
    border-right: 1px solid var(--dash-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
}

.dash-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    text-decoration: none;
    border-bottom: 1px solid var(--dash-border);
}

.dash-sidebar-brand img { height: 38px; width: auto; }

.dash-sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.dash-sidebar-brand-text strong { font-size: 15px; font-weight: 800; color: var(--dash-text); }
.dash-sidebar-brand-text span { font-size: 11px; color: var(--dash-muted); font-weight: 600; }

.dash-sidebar-cta { padding: 16px 16px 8px; }

.dash-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px 16px;
}

.dash-nav-label {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dash-muted);
    padding: 16px 12px 6px;
    margin: 0;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--dash-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 2px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dash-nav-item i,
.dash-nav-item span.icon { width: 18px; text-align: center; font-size: 15px; color: var(--dash-muted); flex-shrink: 0; }

.dash-nav-item:hover { background: var(--dash-primary-soft); color: var(--dash-primary); }
.dash-nav-item:hover i { color: var(--dash-primary); }

.dash-nav-item.is-active {
    background: var(--dash-primary-soft);
    color: var(--dash-primary);
    font-weight: 700;
}
.dash-nav-item.is-active i { color: var(--dash-primary); }

.dash-nav-badge {
    margin-left: auto;
    background: var(--dash-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

.dash-sidebar-footer {
    border-top: 1px solid var(--dash-border);
    padding: 14px 16px;
}

.dash-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.dash-sidebar-user img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.dash-sidebar-user-meta { line-height: 1.2; min-width: 0; }
.dash-sidebar-user-meta strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--dash-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-sidebar-user-meta span { font-size: 11.5px; color: var(--dash-muted); }

/* Main column */
.dash-main {
    flex: 1;
    min-width: 0;
    margin-left: var(--dash-sidebar-w);
    display: flex;
    flex-direction: column;
}

.dash-topbar {
    height: var(--dash-topbar-h);
    background: var(--dash-surface);
    border-bottom: 1px solid var(--dash-border);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.dash-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--dash-bg);
    border-radius: 999px;
    padding: 9px 16px;
    width: min(360px, 100%);
}

.dash-search i { color: var(--dash-muted); font-size: 13px; }
.dash-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13.5px;
    width: 100%;
    color: var(--dash-text);
}

.dash-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.dash-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--dash-bg);
    color: var(--dash-text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

.dash-icon-btn:hover { background: var(--dash-primary-soft); color: var(--dash-primary); }

.dash-icon-btn .dash-dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dash-accent);
    border: 2px solid var(--dash-surface);
}

.dash-content { padding: 28px 24px 40px; flex: 1; }

.dash-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.dash-page-head h1 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--dash-text);
    letter-spacing: -0.01em;
}

.dash-page-head p { margin: 0; color: var(--dash-muted); font-size: 14px; }
.dash-page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ==========================================================
   BUTTONS
   ========================================================== */
.dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.2;
    white-space: nowrap;
}

.dash-btn-primary { background: var(--dash-primary); color: #fff; }
.dash-btn-primary:hover { background: #35134a; color: #fff; }

.dash-btn-accent { background: var(--dash-accent); color: #fff; }
.dash-btn-accent:hover { background: #328e36; color: #fff; }

.dash-btn-ghost { background: var(--dash-surface); border-color: var(--dash-border); color: var(--dash-text); }
.dash-btn-ghost:hover { background: var(--dash-bg); color: var(--dash-text); }

.dash-btn-soft { background: var(--dash-primary-soft); color: var(--dash-primary); }
.dash-btn-soft:hover { background: #e9dff1; color: var(--dash-primary); }

.dash-btn-danger { background: #fdecec; color: #c0392b; }
.dash-btn-danger:hover { background: #f9d9d9; color: #c0392b; }

.dash-btn-block { width: 100%; }
.dash-btn-sm { padding: 7px 14px; font-size: 12.5px; }

/* ==========================================================
   CARDS / STATS
   ========================================================== */
.dash-card {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-lg);
    box-shadow: var(--dash-shadow);
}

.dash-card-pad { padding: 22px; }

.dash-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 0;
}

.dash-card-head h3 { font-size: 16px; font-weight: 800; margin: 0 0 2px; }
.dash-card-head p { font-size: 13px; color: var(--dash-muted); margin: 0; }

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.dash-stat {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-lg);
    box-shadow: var(--dash-shadow);
    padding: 20px;
}

.dash-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dash-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: var(--dash-primary-soft);
    color: var(--dash-primary);
}

.dash-stat-icon.is-green { background: var(--dash-accent-soft); color: var(--dash-accent); }
.dash-stat-icon.is-amber { background: var(--dash-warn-soft); color: var(--dash-warn); }
.dash-stat-icon.is-blue { background: var(--dash-info-soft); color: var(--dash-info); }

.dash-pill {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--dash-bg);
    color: var(--dash-muted);
    white-space: nowrap;
}

.dash-pill.is-up { background: var(--dash-accent-soft); color: var(--dash-accent); }
.dash-pill.is-down { background: #fdecec; color: #c0392b; }

.dash-stat-value {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.dash-stat-label { font-size: 13px; color: var(--dash-muted); font-weight: 600; }

/* Hero summary panel */
.dash-hero {
    background: linear-gradient(135deg, #4a1d66 0%, #2d0f3f 100%);
    color: #fff;
    border-radius: var(--dash-radius-lg);
    padding: 26px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dash-hero h2, .dash-hero p, .dash-hero span, .dash-hero strong { color: #fff !important; }
.dash-hero .dash-hero-eyebrow { font-size: 12px; opacity: 0.75; font-weight: 600; }
.dash-hero h2 { font-size: 22px; font-weight: 800; margin: 4px 0 6px; }
.dash-hero p { font-size: 13.5px; opacity: 0.85; margin: 0; max-width: 460px; }

/* ==========================================================
   TABLES
   ========================================================== */
.dash-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.dash-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.dash-table thead th {
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dash-muted);
    padding: 14px 22px;
    border-bottom: 1px solid var(--dash-border);
    white-space: nowrap;
}

.dash-table tbody td {
    padding: 16px 22px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--dash-border);
    vertical-align: middle;
}

.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table tbody tr:hover { background: #fafafc; }

.dash-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--dash-primary-soft);
    color: var(--dash-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    object-fit: cover;
}

.dash-cell-user { display: flex; align-items: center; gap: 10px; }
.dash-cell-user strong { font-weight: 700; font-size: 13.5px; }

.dash-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--dash-bg);
    color: var(--dash-muted);
    white-space: nowrap;
}

.dash-chip::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.dash-chip.is-new { background: var(--dash-accent-soft); color: var(--dash-accent); }
.dash-chip.is-progress { background: var(--dash-info-soft); color: var(--dash-info); }
.dash-chip.is-review { background: var(--dash-warn-soft); color: var(--dash-warn); }
.dash-chip.is-muted { background: var(--dash-bg); color: var(--dash-muted); }
.dash-chip.is-plain::before { display: none; }

/* ==========================================================
   TABS
   ========================================================== */
.dash-tabs {
    display: flex;
    gap: 22px;
    border-bottom: 1px solid var(--dash-border);
    margin-bottom: 22px;
    overflow-x: auto;
    scrollbar-width: none;
}

.dash-tabs::-webkit-scrollbar { display: none; }

.dash-tab {
    padding: 10px 2px 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--dash-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
}

.dash-tab.is-active { color: var(--dash-primary); border-bottom-color: var(--dash-primary); }

/* ==========================================================
   PROPERTY CARD GRID
   ========================================================== */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.dash-prop-card {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-lg);
    box-shadow: var(--dash-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dash-prop-thumb { position: relative; height: 168px; background: var(--dash-bg); flex-shrink: 0; }
.dash-prop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dash-prop-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.dash-prop-badge {
    background: rgba(255, 255, 255, 0.94);
    color: var(--dash-text);
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.dash-prop-badge.is-published { background: var(--dash-accent); color: #fff; }
.dash-prop-badge.is-draft { background: rgba(255, 255, 255, 0.94); color: var(--dash-muted); }
.dash-prop-badge.is-review { background: var(--dash-warn-soft); color: var(--dash-warn); }

.dash-prop-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }

.dash-prop-body h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dash-prop-body h4 a { color: inherit; text-decoration: none; }

.dash-prop-loc { font-size: 12.5px; color: var(--dash-muted); margin-bottom: 14px; }

.dash-prop-stats {
    display: flex;
    gap: 22px;
    padding: 12px 0;
    border-top: 1px solid var(--dash-border);
    margin-top: auto;
}

.dash-prop-stat .k { font-size: 11px; color: var(--dash-muted); font-weight: 600; display: block; }
.dash-prop-stat .v { font-size: 15px; font-weight: 800; }

.dash-prop-actions { display: flex; gap: 8px; align-items: center; }

/* ==========================================================
   FORMS / STEPPER
   ========================================================== */
.dash-form-card {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-lg);
    box-shadow: var(--dash-shadow);
    padding: 26px;
    max-width: 860px;
}

.dash-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    max-width: 860px;
}

.dash-step { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.dash-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--dash-bg);
    color: var(--dash-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 800;
}

.dash-step.is-active .dash-step-num { background: var(--dash-primary); color: #fff; }
.dash-step.is-done .dash-step-num { background: var(--dash-accent); color: #fff; }

.dash-step-label { font-size: 12.5px; font-weight: 700; color: var(--dash-muted); }
.dash-step.is-active .dash-step-label { color: var(--dash-primary); }

.dash-step-line { flex: 1; height: 2px; background: var(--dash-border); min-width: 20px; }

.dash-field { margin-bottom: 20px; }

.dash-field label,
.dash-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
    color: var(--dash-text);
}

.dash-field .form-control,
.dash-field input[type="text"],
.dash-field input[type="email"],
.dash-field input[type="tel"],
.dash-field input[type="number"],
.dash-field input[type="password"],
.dash-field input[type="url"],
.dash-field input[type="date"],
.dash-field select,
.dash-field textarea {
    width: 100%;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    background: var(--dash-surface);
    color: var(--dash-text);
    outline: none;
}

.dash-field .form-control:focus,
.dash-field input:focus,
.dash-field select:focus,
.dash-field textarea:focus {
    border-color: var(--dash-primary);
    box-shadow: 0 0 0 3px rgba(72, 29, 99, 0.08);
}

.dash-hint { font-size: 12px; color: var(--dash-muted); margin-top: 6px; }

.dash-choice-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.dash-choice {
    border: 1.5px solid var(--dash-border);
    border-radius: 12px;
    padding: 16px 14px;
    text-align: center;
    cursor: pointer;
    background: var(--dash-surface);
}

.dash-choice.is-selected { border-color: var(--dash-primary); background: var(--dash-primary-soft); }
.dash-choice i { font-size: 18px; color: var(--dash-primary); display: block; margin-bottom: 8px; }
.dash-choice strong { display: block; font-size: 13.5px; font-weight: 800; }
.dash-choice span { font-size: 11.5px; color: var(--dash-muted); }

.dash-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--dash-border);
    margin-top: 24px;
    padding-top: 20px;
}

/* Empty state */
.dash-empty { text-align: center; padding: 56px 20px; }
.dash-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--dash-primary-soft);
    color: var(--dash-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px;
}
.dash-empty h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.dash-empty p { font-size: 13.5px; color: var(--dash-muted); margin-bottom: 18px; }

/* ==========================================================
   RESPONSIVE — sidebar becomes a drawer, bottom nav takes over
   ========================================================== */
.dash-menu-btn { display: none; }
.dash-sidebar-backdrop { display: none; }

@media (max-width: 991.98px) {
    .dash-sidebar {
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        width: min(280px, 84vw);
        z-index: 2010;
    }

    .dash-sidebar.is-open { transform: translateX(0); }

    .dash-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(12, 6, 18, 0.45);
        z-index: 2000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
    }

    .dash-sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; }

    .dash-main { margin-left: 0; }
    .dash-menu-btn { display: flex; }
    .dash-topbar { padding: 0 16px; }
    .dash-content { padding: 20px 16px 88px; }

    .dash-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .dash-stat { padding: 16px; }
    .dash-stat-value { font-size: 24px; }

    .dash-page-head h1 { font-size: 21px; }
    .dash-hero { flex-direction: column; align-items: flex-start; padding: 20px; }
    .dash-form-card { padding: 18px; }
}

@media (max-width: 575.98px) {
    .dash-search { display: none; }
    .dash-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-page-actions { width: 100%; }
    .dash-page-actions .dash-btn { flex: 1; }
}

/* ==========================================================
   LEGACY WRAPPER BRIDGE
   The existing dashboard pages wrap content in .dashboard_content_wrapper >
   .dashboard.dashboard_wrapper > (sidebar) + .dashboard__main > .dashboard__content.
   These rules adapt that structure to the new fixed sidebar + topbar shell so
   every page picks up the redesign without editing each file's markup.
   ========================================================== */
body.dash-body .dashboard_content_wrapper { padding: 0 !important; }

body.dash-body .dashboard.dashboard_wrapper {
    display: block;
    max-width: 100%;
    padding: 0 !important;
    margin: 0;
}

body.dash-body .dashboard__main {
    margin-left: var(--dash-sidebar-w);
    padding-left: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
}

body.dash-body .dashboard__content {
    background: var(--dash-bg) !important;
    padding: 28px 24px 40px !important;
    border-radius: 0 !important;
    max-width: 100% !important;
}

/* Legacy sidebar list styling is superseded by .dash-sidebar */
body.dash-body .dashboard__sidebar { display: none !important; }

@media (max-width: 991.98px) {
    body.dash-body .dashboard__main { margin-left: 0; }
    body.dash-body .dashboard__content { padding: 20px 16px 88px !important; }
}

/* ==========================================================
   LEGACY DASHBOARD COMPONENT RESTYLE
   Maps the existing dashboard markup (ps-widget cards, statistics_funfact
   tiles, table-style3 tables, form-style1 inputs, ud-btn buttons) onto the
   new design language, so every provider/coordinator page picks up the
   redesign without rewriting each view.
   ========================================================== */
body.dash-body .ps-widget,
body.dash-body .dashboard_title_area + .ps-widget {
    background: var(--dash-surface) !important;
    border: 1px solid var(--dash-border) !important;
    border-radius: var(--dash-radius-lg) !important;
    box-shadow: var(--dash-shadow) !important;
}

/* Stat tiles */
body.dash-body .statistics_funfact {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-lg);
    box-shadow: var(--dash-shadow);
    padding: 20px;
    margin-bottom: 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.dash-body .statistics_funfact:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(20, 10, 30, 0.09);
}

body.dash-body .statistics_funfact .details .text {
    font-size: 13px !important;
    color: var(--dash-muted);
    font-weight: 600;
    margin-bottom: 6px;
}

body.dash-body .statistics_funfact .details .title,
body.dash-body .statistics_funfact .title {
    font-size: 28px !important;
    font-weight: 800;
    color: var(--dash-text);
    line-height: 1.1;
}

body.dash-body .statistics_funfact .icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--dash-primary-soft);
    color: var(--dash-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

/* Section headings */
body.dash-body .dashboard_title_area h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--dash-text);
}

body.dash-body .dashboard_title_area p.text { color: var(--dash-muted); font-size: 14px; }

/* Tables */
body.dash-body .table-style3,
body.dash-body .packages_table table {
    border-collapse: collapse;
    width: 100%;
}

body.dash-body .table-style3 thead th,
body.dash-body .table-style3 .t-head th {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dash-muted) !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid var(--dash-border) !important;
    background: transparent !important;
    white-space: nowrap;
}

body.dash-body .table-style3 tbody td,
body.dash-body .table-style3 .t-body td {
    padding: 15px 18px !important;
    font-size: 13.5px !important;
    border-bottom: 1px solid var(--dash-border) !important;
    vertical-align: middle;
}

body.dash-body .table-style3 tbody tr:hover { background: #fafafc; }

/* Buttons */
body.dash-body .ud-btn.btn-thm,
body.dash-body .ud-btn.btn-dark {
    background: var(--dash-primary) !important;
    border-color: var(--dash-primary) !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding: 11px 20px !important;
    box-shadow: none !important;
}

body.dash-body .ud-btn.btn-thm:hover,
body.dash-body .ud-btn.btn-dark:hover { background: #35134a !important; }

body.dash-body .ud-btn.btn-transparent,
body.dash-body .ud-btn.btn-thm-border {
    border: 1px solid var(--dash-border) !important;
    color: var(--dash-text) !important;
    background: var(--dash-surface) !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}

/* Forms */
body.dash-body .form-style1 label,
body.dash-body .form-style2 label,
body.dash-body label.heading-color {
    font-size: 13px;
    font-weight: 700;
    color: var(--dash-text);
    margin-bottom: 7px;
}

body.dash-body .form-control,
body.dash-body select.form-select,
body.dash-body textarea.form-control {
    border: 1px solid var(--dash-border) !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    padding: 11px 14px !important;
    background: var(--dash-surface) !important;
    color: var(--dash-text) !important;
    box-shadow: none !important;
}

body.dash-body .form-control:focus,
body.dash-body textarea.form-control:focus {
    border-color: var(--dash-primary) !important;
    box-shadow: 0 0 0 3px rgba(72, 29, 99, 0.08) !important;
}

/* Listing cards inside dashboards */
body.dash-body .listing-style1 {
    border-radius: var(--dash-radius-lg);
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow);
    overflow: hidden;
}

/* Hide the legacy in-page dashboard navigation bar; the sidebar replaces it */
body.dash-body .dashboard_navigationbar { display: none !important; }

/* Pagination */
body.dash-body .page-item .page-link {
    border-radius: 9px !important;
    border: 1px solid var(--dash-border) !important;
    color: var(--dash-text) !important;
    margin: 0 3px;
    font-size: 13.5px;
}

body.dash-body .page-item.active .page-link {
    background: var(--dash-primary) !important;
    border-color: var(--dash-primary) !important;
    color: #fff !important;
}


/* ==========================================================
   RECORD CARDS
   Replaces data tables across the portals. Vertical media card for records
   with imagery (properties, listings), and a compact variant for records
   without (enquiries, payments, locations).
   ========================================================== */
.dash-record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.dash-record {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 1px 2px rgba(20, 10, 30, 0.04);
}

.dash-record:hover {
    transform: translateY(-4px);
    border-color: #ded9e6;
    box-shadow: 0 18px 40px -12px rgba(45, 15, 63, 0.22);
}

/* ---- Media ---- */
.dash-record-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #efecf4 0%, #e6e1ee 100%);
    overflow: hidden;
}

.dash-record-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.dash-record:hover .dash-record-media img { transform: scale(1.05); }

.dash-record-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 8, 30, 0.32) 0%, rgba(20, 8, 30, 0) 42%);
    pointer-events: none;
}

.dash-record-media-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b3aac2;
    font-size: 30px;
}

.dash-record-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}

.dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dash-text);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(20, 10, 30, 0.12);
}

.dash-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.dash-badge.is-live { color: #1d7a35; }
.dash-badge.is-off { color: #6d6b78; }
.dash-badge.is-warn { color: #a35b00; }
.dash-badge.is-plain::before { display: none; }
.dash-badge.is-solid { background: var(--dash-primary); color: #fff; }
.dash-badge.is-solid::before { display: none; }

/* ---- Body ---- */
.dash-record-body {
    padding: 18px 18px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dash-record-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 6px;
    color: var(--dash-text);
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dash-record-title a { color: inherit; text-decoration: none; }
.dash-record-title a:hover { color: var(--dash-primary); }

.dash-record-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--dash-muted);
    margin: 0 0 16px;
}

.dash-record-sub i { font-size: 12px; }

/* ---- Stats strip ---- */
.dash-record-stats {
    display: flex;
    gap: 26px;
    padding: 14px 0;
    margin-top: auto;
    border-top: 1px solid var(--dash-border);
}

.dash-record-stat { min-width: 0; }

.dash-record-stat dt {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--dash-muted);
    margin: 0 0 3px;
}

.dash-record-stat dd {
    font-size: 16px;
    font-weight: 800;
    color: var(--dash-text);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.dash-record-stat dd a { color: var(--dash-primary); text-decoration: none; font-size: 13.5px; font-weight: 700; }
.dash-record-stat dd.is-text { font-size: 13.5px; font-weight: 600; }

/* ---- Footer actions ---- */
.dash-record-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-top: 1px solid var(--dash-border);
    background: #fcfcfd;
}

.dash-record-actions form { margin: 0; display: inline-flex; }
.dash-record-actions .dash-btn { padding: 8px 16px; font-size: 13px; }
.dash-record-actions .dash-spacer { margin-left: auto; }

.dash-icon-action {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
    color: var(--dash-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    transition: all 0.15s ease;
}

.dash-icon-action:hover {
    background: var(--dash-primary-soft);
    color: var(--dash-primary);
    border-color: var(--dash-primary-soft);
}

.dash-icon-action.is-danger:hover { background: #fdecec; color: #c0392b; border-color: #fdecec; }

/* ==========================================================
   COMPACT RECORD (no imagery: enquiries, payments, locations)
   ========================================================== */
.dash-record-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }

.dash-record.is-compact { flex-direction: row; align-items: center; gap: 18px; padding: 18px; }
.dash-record.is-compact:hover { transform: none; box-shadow: 0 8px 24px -10px rgba(45, 15, 63, 0.2); }

.dash-record.is-compact .dash-record-body { padding: 0; }
.dash-record.is-compact .dash-record-title { margin-bottom: 4px; font-size: 15px; }
.dash-record.is-compact .dash-record-sub { margin-bottom: 0; }

.dash-record-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dash-primary-soft);
    color: var(--dash-primary);
    font-weight: 800;
    font-size: 15px;
    overflow: hidden;
}

.dash-record-avatar img { width: 100%; height: 100%; object-fit: cover; }

.dash-record.is-compact .dash-record-stats {
    border-top: none;
    padding: 0;
    margin: 0 0 0 auto;
    gap: 30px;
    align-items: center;
    flex-shrink: 0;
}

.dash-record.is-compact .dash-record-actions {
    border-top: none;
    background: transparent;
    padding: 0;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .dash-record.is-compact { flex-wrap: wrap; }
    .dash-record.is-compact .dash-record-body { flex: 1 1 100%; order: 1; }
    .dash-record-avatar { order: 0; }
    .dash-record.is-compact .dash-record-stats {
        order: 2;
        margin: 12px 0 0;
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid var(--dash-border);
        gap: 24px;
    }
    .dash-record.is-compact .dash-record-actions { order: 3; width: 100%; margin-top: 12px; }
}

@media (max-width: 575.98px) {
    .dash-record-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .dash-record-stats { gap: 20px; }
    .dash-record-actions { flex-wrap: wrap; }
    .dash-record-actions .dash-btn { flex: 1; }
}

/* ==========================================================
   IMAGE UPLOAD (property add / edit)
   CSS-only restyle. The upload JS sets background-image on .image and
   toggles #uploadContent / #image_Preview — none of that is changed here.
   ========================================================== */
body.dash-body .profile-images {
    position: relative;
    border: 2px dashed #ddd7e6;
    border-radius: 14px;
    background: #fbfafc;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
    min-height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dash-body .profile-images:hover {
    border-color: var(--dash-primary);
    background: var(--dash-primary-soft);
}

/* The preview surface — JS paints a background-image onto this */
body.dash-body .profile-images .image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
}

body.dash-body .profile-images .remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(20, 10, 30, 0.62);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 3;
    backdrop-filter: blur(4px);
}

body.dash-body .profile-images .remove-image:hover { background: #c0392b; }

body.dash-body .single-file-input {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

body.dash-body .single-file-input input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

body.dash-body .single-file-input .btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent !important;
    border: none !important;
    color: var(--dash-muted) !important;
    font-size: 12.5px !important;
    font-weight: 700;
    pointer-events: none;
}

body.dash-body .single-file-input .btn::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 26px;
    color: var(--dash-primary);
    opacity: 0.55;
}

/* Floor plan / large drop zone */
body.dash-body .upload-img {
    border: 2px dashed #ddd7e6 !important;
    border-radius: 16px !important;
    background: #fbfafc;
    padding: 38px 24px !important;
    transition: border-color 0.2s ease, background 0.2s ease;
}

body.dash-body .upload-img:hover { border-color: var(--dash-primary) !important; background: var(--dash-primary-soft); }

body.dash-body .upload-img .icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: var(--dash-primary-soft);
    color: var(--dash-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 18px !important;
}

body.dash-body .upload-img .title { font-size: 16px !important; font-weight: 800; }
body.dash-body .upload-img .text { font-size: 13px; color: var(--dash-muted); }

/* ==========================================================
   LEGACY SB-ADMIN BRIDGE (coordinator pages)
   The coordinator views are built on Bootstrap admin markup
   (.container-fluid page heads, .card.shadow panels, .btn-sm actions,
   Bootstrap alerts/tabs/badges). These rules map that markup onto the
   dashboard design system so every page modernises without a rewrite.
   ========================================================== */

/* ---- Page head ---- */
body.dash-body .dash-content > .container-fluid,
body.dash-body .dash-content .container-fluid { padding: 0 !important; max-width: 100% !important; }

body.dash-body .dash-content h1.h3 {
    font-size: 26px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
    color: var(--dash-text) !important;
    margin-bottom: 0 !important;
}

body.dash-body .dash-content .text-gray-800 { color: var(--dash-text) !important; }

body.dash-body .dash-content .d-sm-flex.justify-content-between.mb-4,
body.dash-body .dash-content .d-sm-flex.align-items-center.justify-content-between.mb-4 {
    margin-bottom: 24px !important;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---- Panels ---- */
body.dash-body .dash-content .card {
    border: 1px solid var(--dash-border) !important;
    border-radius: var(--dash-radius-lg) !important;
    box-shadow: var(--dash-shadow) !important;
    background: var(--dash-surface) !important;
}

body.dash-body .dash-content .card.shadow { box-shadow: var(--dash-shadow) !important; }

body.dash-body .dash-content .card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--dash-border) !important;
    padding: 18px 22px !important;
    border-radius: var(--dash-radius-lg) var(--dash-radius-lg) 0 0 !important;
}

body.dash-body .dash-content .card-header h6,
body.dash-body .dash-content .card-header .m-0 {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--dash-text) !important;
    letter-spacing: -0.01em;
}

body.dash-body .dash-content .card-header .text-secondary,
body.dash-body .dash-content .card-header .text-primary { color: var(--dash-text) !important; }

body.dash-body .dash-content .card-body { padding: 22px !important; }

/* ---- Buttons ---- */
body.dash-body .dash-content .btn {
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 10px 18px !important;
    box-shadow: none !important;
    border: 1px solid transparent !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.dash-body .dash-content .btn-sm {
    padding: 8px 14px !important;
    font-size: 12.5px !important;
}

body.dash-body .dash-content .btn-primary {
    background: var(--dash-primary) !important;
    border-color: var(--dash-primary) !important;
    color: #fff !important;
}
body.dash-body .dash-content .btn-primary:hover { background: #35134a !important; border-color: #35134a !important; }

body.dash-body .dash-content .btn-secondary,
body.dash-body .dash-content .btn-light,
body.dash-body .dash-content .btn-outline-secondary {
    background: var(--dash-surface) !important;
    border-color: var(--dash-border) !important;
    color: var(--dash-text) !important;
}
body.dash-body .dash-content .btn-secondary:hover,
body.dash-body .dash-content .btn-light:hover,
body.dash-body .dash-content .btn-outline-secondary:hover { background: var(--dash-bg) !important; }

body.dash-body .dash-content .btn-success { background: var(--dash-accent) !important; border-color: var(--dash-accent) !important; color: #fff !important; }
body.dash-body .dash-content .btn-info { background: var(--dash-info-soft) !important; color: var(--dash-info) !important; }
body.dash-body .dash-content .btn-warning { background: var(--dash-warn-soft) !important; color: var(--dash-warn) !important; }
body.dash-body .dash-content .btn-danger { background: #fdecec !important; color: #c0392b !important; }
body.dash-body .dash-content .btn-danger:hover { background: #f9d9d9 !important; color: #c0392b !important; }

/* Icon-only action buttons in row/card action groups */
body.dash-body .dash-content .btn-sm > i:only-child { margin: 0; }

/* ---- Alerts ---- */
body.dash-body .dash-content .alert {
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    font-size: 13.5px !important;
    font-weight: 600;
}
body.dash-body .dash-content .alert-success { background: var(--dash-accent-soft) !important; color: #1d7a35 !important; }
body.dash-body .dash-content .alert-danger { background: #fdecec !important; color: #c0392b !important; }
body.dash-body .dash-content .alert-warning { background: var(--dash-warn-soft) !important; color: var(--dash-warn) !important; }
body.dash-body .dash-content .alert-info { background: var(--dash-info-soft) !important; color: var(--dash-info) !important; }

/* ---- Forms ---- */
body.dash-body .dash-content label,
body.dash-body .dash-content .form-label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--dash-text) !important;
    margin-bottom: 7px !important;
}

body.dash-body .dash-content .form-control,
body.dash-body .dash-content .form-select {
    border: 1px solid var(--dash-border) !important;
    border-radius: 10px !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    background: var(--dash-surface) !important;
    color: var(--dash-text) !important;
    box-shadow: none !important;
    height: auto !important;
}

body.dash-body .dash-content .form-control:focus,
body.dash-body .dash-content .form-select:focus {
    border-color: var(--dash-primary) !important;
    box-shadow: 0 0 0 3px rgba(72, 29, 99, 0.08) !important;
}

body.dash-body .dash-content .form-text,
body.dash-body .dash-content .text-muted { color: var(--dash-muted) !important; }

body.dash-body .dash-content .input-group-text {
    border: 1px solid var(--dash-border) !important;
    background: var(--dash-bg) !important;
    border-radius: 10px 0 0 10px !important;
    color: var(--dash-muted) !important;
}

/* ---- Badges ---- */
body.dash-body .dash-content .badge {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 999px !important;
    letter-spacing: 0;
}
body.dash-body .dash-content .badge.bg-success { background: var(--dash-accent-soft) !important; color: #1d7a35 !important; }
body.dash-body .dash-content .badge.bg-primary { background: var(--dash-primary-soft) !important; color: var(--dash-primary) !important; }
body.dash-body .dash-content .badge.bg-warning { background: var(--dash-warn-soft) !important; color: var(--dash-warn) !important; }
body.dash-body .dash-content .badge.bg-info { background: var(--dash-info-soft) !important; color: var(--dash-info) !important; }
body.dash-body .dash-content .badge.bg-secondary { background: var(--dash-bg) !important; color: var(--dash-muted) !important; }
body.dash-body .dash-content .badge.bg-danger { background: #fdecec !important; color: #c0392b !important; }

/* ---- Tabs ---- */
body.dash-body .dash-content .nav-tabs {
    border-bottom: 1px solid var(--dash-border) !important;
    gap: 22px;
}

body.dash-body .dash-content .nav-tabs .nav-link {
    border: none !important;
    border-bottom: 2px solid transparent !important;
    padding: 10px 2px 14px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: var(--dash-muted) !important;
    background: transparent !important;
}

body.dash-body .dash-content .nav-tabs .nav-link.active {
    color: var(--dash-primary) !important;
    border-bottom-color: var(--dash-primary) !important;
}

/* ---- List groups ---- */
body.dash-body .dash-content .list-group-item {
    border-color: var(--dash-border) !important;
    padding: 14px 18px !important;
    font-size: 14px;
}

/* ---- Mobile: give the page head and actions room to breathe ---- */
@media (max-width: 575.98px) {
    body.dash-body .dash-content h1.h3 { font-size: 21px !important; }
    body.dash-body .dash-content .card-body { padding: 16px !important; }
    body.dash-body .dash-content .card-header { padding: 16px !important; }
    body.dash-body .dash-content .d-sm-flex.justify-content-between .btn { width: 100%; }
}

/* Page-head subtitle used by the coordinator index/create views */
body.dash-body .dash-content .dash-page-sub {
    margin: 4px 0 0 !important;
    font-size: 14px;
    color: var(--dash-muted);
}

/* ---- Sub-list inside a record card (e.g. service coverage locations) ---- */
.dash-subitems {
    list-style: none;
    margin: 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--dash-border);
}

.dash-subitem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-size: 14px;
    color: var(--dash-text);
}

.dash-subitem + .dash-subitem { border-top: 1px dashed var(--dash-border); }

.dash-subitem-name {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-subitem form { margin: 0; display: inline-flex; }

.dash-subitem-empty {
    padding: 14px 0 0;
    margin: 0;
    border-top: 1px solid var(--dash-border);
    font-size: 14px;
    color: var(--dash-muted);
}

/* ==========================================================================
   Account menu — the topbar avatar opens this instead of jumping straight to
   profile settings. Anchored to .dash-account, which is the only positioned
   ancestor inside the topbar.
   ========================================================================== */
.dash-account {
    position: relative;
}

.dash-account-btn {
    padding: 0;
    overflow: hidden;
}

.dash-account-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.dash-account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    padding: 6px;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
    box-shadow: var(--dash-shadow);
    z-index: 1040;

    /* visibility (not display) so the menu can animate and still be
       inert — and untabbable — while closed */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.dash-account.is-open .dash-account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dash-account-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--dash-border);
}

.dash-account-head img {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.dash-account-head-meta {
    min-width: 0;            /* let long provider names ellipsis, not overflow */
}

.dash-account-head-meta strong {
    display: block;
    font-size: 14px;
    line-height: 1.3;
    color: var(--dash-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-account-head-meta span {
    font-size: 12px;
    color: var(--dash-muted);
}

.dash-account-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dash-text);
    text-decoration: none;
}

.dash-account-item i {
    width: 16px;
    text-align: center;
    color: var(--dash-muted);
}

.dash-account-item:hover,
.dash-account-item:focus-visible {
    background: var(--dash-primary-soft);
    color: var(--dash-primary);
}

.dash-account-item:hover i,
.dash-account-item:focus-visible i {
    color: var(--dash-primary);
}

.dash-account-item.is-danger,
.dash-account-item.is-danger i {
    color: #b4232a;
}

.dash-account-item.is-danger:hover,
.dash-account-item.is-danger:focus-visible {
    background: #fdecec;
    color: #b4232a;
}

.dash-account-sep {
    height: 1px;
    margin: 6px 4px;
    background: var(--dash-border);
}

@media (prefers-reduced-motion: reduce) {
    .dash-account-menu { transition: none; }
}
