/* ═══════════════════════════════════════════════════════════════
   BAS Dashboard — Matching HTML Mockup Design
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables (from mockup) ──────────────────────────── */
:root {
    --burg: #800033;
    --burg2: #a02050;
    --dark: #24282a;
    --dark2: #33383b;
    --bg: #f4f5f6;
    --line: #d9dcdf;
    --muted: #74797d;
    --white: #fff;
    --ok: #267a4b;
    --warn: #a36a00;
    --danger: #9d2636;
    --blue: #315b7d;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 10px rgba(0,0,0,0.03);
    --transition: 0.2s ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Arial, sans-serif; color: var(--dark); background: var(--bg); }
button, input, select, textarea { font: inherit; }
a { text-decoration: none; color: inherit; }

/* ── App Shell (from mockup) ──────────────────────────────── */
/* Full-bleed breakout: the dashboard spans the whole viewport even when the
   theme/Elementor wraps the widget in a constrained column or container. */
.bas-dashboard-shell {
    width: 100vw;
    max-width: none !important;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    z-index: 1;
}

/* Portal pages are standalone apps — never show the public site's
   Elementor theme header/footer inside the dashboard. */
body.bas-portal-active .elementor-location-header,
body.bas-portal-active .elementor-location-footer,
body.bas-portal-active header[data-elementor-type="header"],
body.bas-portal-active footer[data-elementor-type="footer"],
body.bas-portal-active .site-header,
body.bas-portal-active .site-footer {
    display: none !important;
}

/* Proper width fix: expand every Elementor ancestor of the shell to 100%. */
body.bas-portal-active .elementor-widget-bas_dashboard,
body.bas-portal-active .elementor-widget-bas_dashboard > .elementor-widget-container,
body.bas-portal-active .elementor-column:has(> .elementor-widget-wrap > .elementor-widget-bas_dashboard),
body.bas-portal-active .elementor-column:has(> .elementor-widget-wrap > .elementor-widget-bas_dashboard) > .elementor-widget-wrap,
body.bas-portal-active .elementor-section:has(.bas-dashboard-shell),
body.bas-portal-active .elementor-section:has(.bas-dashboard-shell) > .elementor-container,
body.bas-portal-active .e-con:has(.bas-dashboard-shell),
body.bas-portal-active .e-con:has(.bas-dashboard-shell) .e-con-inner {
    width: 100% !important;
    max-width: none !important;
}

/* If a second full dashboard got embedded inside a portal page
   (e.g. the page template contains the dashboard widget again), hide
   the nested copy so the real page content keeps the space. */
.bas-dashboard-shell .bas-dashboard-shell,
.bas-dashboard-shell .elementor-widget-bas_dashboard {
    display: none !important;
}

/* Video review pages must never carry a duplicated full dashboard.
   Wherever a video review widget is present on the page, remove the
   dashboard widget (and its whole Elementor column) and let the video
   column expand to the full width — video gets ~70 %, comments ~30 %. */
body.bas-portal-active:has(.bas-video-review) .elementor-widget-bas_dashboard,
body.bas-portal-active:has(.bas-video-review) .elementor-column:has(> .elementor-widget-wrap > .elementor-widget-bas_dashboard),
body.bas-portal-active:has(.bas-video-review) .elementor-column:has(> .elementor-widget-wrap > .elementor-widget-bas_dashboard) > .elementor-widget-wrap {
    display: none !important;
}
body.bas-portal-active:has(.bas-video-review) .elementor-column:has(> .elementor-widget-wrap > .elementor-widget-bas_video_review),
body.bas-portal-active:has(.bas-video-review) .elementor-column:has(> .elementor-widget-wrap > .elementor-widget-bas_video_review) > .elementor-widget-wrap {
    width: 100% !important;
    max-width: none !important;
}

.bas-shell {
    display: grid;
    grid-template-columns: 225px 1fr;
    min-height: calc(100vh - 70px);
}

/* ── Sidebar (from mockup) ────────────────────────────────── */
.bas-sidebar {
    background: var(--dark);
    color: white;
    padding: 18px 12px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
}

.bas-sidebar::-webkit-scrollbar { width: 4px; }
.bas-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* Sidebar Logo */
.bas-sidebar-logo {
    padding: 0 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
}

.bas-sidebar-logo-text {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.3px;
}
.bas-sidebar-logo-text span { color: var(--burg); }

.bas-sidebar-role {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.6);
}

/* Home link — returns to the public website from the sidebar */
.bas-sidebar-home {
    margin: 4px 0 2px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}
.bas-sidebar-home:hover { background: #373c3f; }

/* Sidebar Navigation */
.bas-sidebar-nav {
    flex: 1;
    padding: 8px 0;
}

.bas-sidebar-section {
    padding: 0 0;
    margin-top: 16px;
}

.bas-sidebar-section:first-child { margin-top: 8px; }

.bas-sidebar-label {
    display: block;
    padding: 0 10px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #aeb3b6;
}

.bas-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    text-decoration: none;
    margin: 3px 0;
}

.bas-sidebar-link:hover { background: #373c3f; }

.bas-sidebar-link.active {
    background: #373c3f;
    border-left: 4px solid var(--burg);
    color: white;
}

.bas-sidebar-link .bas-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}
.bas-sidebar-link.active .bas-icon,
.bas-sidebar-link:hover .bas-icon { opacity: 1; }

.bas-sidebar-badge {
    margin-left: auto;
    padding: 1px 6px;
    background: var(--burg);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    min-width: 18px;
    text-align: center;
}

/* Sidebar Logout */
.bas-sidebar-footer {
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: auto;
}

.bas-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    transition: all var(--transition);
    text-decoration: none;
    width: 100%;
}
.bas-sidebar-logout:hover { background: rgba(157,38,54,0.15); color: #ff6b6b; }

/* ── Main Content Area (from mockup) ──────────────────────── */
.bas-main {
    padding: 24px;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: calc(100vh - 70px);
    min-width: 0;
}

/* ── Top Header ────────────────────────────────────────────── */
.bas-top-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.bas-header-left { flex: 1; }
.bas-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bas-mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--dark);
}

.bas-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}
.bas-breadcrumb a { color: var(--muted); }
.bas-breadcrumb a:hover { color: var(--burg); }
.bas-breadcrumb-sep { color: var(--line); }
.bas-breadcrumb-current { color: var(--dark); font-weight: 600; }

.bas-header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--muted);
    transition: all var(--transition);
}
.bas-header-icon:hover { background: var(--bg); color: var(--dark); }

.bas-header-icon .bas-badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--white);
}

/* User Header */
.bas-header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition);
}
.bas-header-user:hover { background: var(--bg); }

.bas-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--burg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.bas-header-user-info { line-height: 1.3; }
.bas-header-user-name { font-size: 14px; font-weight: 600; color: var(--dark); }
.bas-header-user-role { font-size: 11px; color: var(--muted); }

/* User Dropdown */
.bas-dropdown { position: relative; }
.bas-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 200;
    padding: 4px;
    display: none;
}
.bas-dropdown-menu.show { display: block; }
.bas-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--dark);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.bas-dropdown-item:hover { background: var(--bg); }
.bas-dropdown-divider { height: 1px; background: var(--line); margin: 4px 0; }

/* ── Page Header ───────────────────────────────────────────── */
.bas-page-header h1 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}
.bas-page-header p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

/* ── Cards (from mockup) ───────────────────────────────────── */
.bas-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Card heads: both the PHP-rendered (.bas-card-header) and the
   JS-rendered component cards (.bas-card-head) share the same look. */
.bas-card-header,
.bas-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}
.bas-card-header h3,
.bas-card-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.bas-card-body {
    padding: 20px;
}
.bas-card-body-compact { padding: 0; }

/* ── KPI Cards (from mockup) ──────────────────────────────── */
.bas-dash-stats, .bas-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.bas-kpi, .bas-stat-card {
    padding: 18px;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}
.bas-kpi:hover, .bas-stat-card:hover {
    box-shadow: 0 6px 18px rgba(29,35,37,0.08);
}

.bas-kpi-label, .bas-stat-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.bas-kpi-value, .bas-stat-value {
    display: block;
    font-size: 27px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

/* ── Dashboard Grid (from mockup) ──────────────────────────── */
.bas-dash-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 16px;
    align-items: start;
}

.bas-bottom-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 16px;
    margin-top: 16px;
}

/* ── Tables (from mockup) ──────────────────────────────────── */
.bas-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.bas-table th {
    text-align: left;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(36,40,42,0.025);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--muted);
    white-space: nowrap;
}

.bas-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
    vertical-align: middle;
}

.bas-table tbody tr {
    transition: background 0.15s ease;
}
.bas-table tbody tr:hover { background: rgba(128,0,51,0.03); }
.bas-table tbody tr:last-child td { border-bottom: none; }
.bas-table td b { font-weight: 650; color: var(--dark); }
.bas-table .bas-sub { display: block; margin-top: 2px; }

/* Scroll wrapper around tables (the inline overflow-x:auto div) */
.bas-card > div[style*="overflow-x"],
.bas-card > div[style*="overflow-x:auto"] {
    border-radius: 0 0 var(--radius) var(--radius);
}
.bas-card > div[style*="overflow-x"] .bas-table:last-child tr:last-child td {
    border-bottom: none;
}

/* ── Buttons (from mockup) ─────────────────────────────────── */
/* One radius for every button — no more mixed small/large corners. */
.bas-btn, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.bas-btn:hover, .btn:hover { border-color: var(--burg); color: var(--burg); }
.bas-btn:active, .btn:active { transform: translateY(1px); }

.bas-btn-primary, .btn.primary {
    background: var(--burg);
    color: #fff;
    border-color: var(--burg);
}
.bas-btn-primary:hover, .btn.primary:hover { background: var(--burg2); border-color: var(--burg2); color: #fff; }
.bas-btn-primary:active, .btn.primary:active { background: var(--burg); }

.btn.dark { background: var(--dark); color: white; border-color: var(--dark); }
.bas-btn-sm, .btn.small { min-height: 32px; padding: 5px 12px; font-size: 12px; border-radius: 8px; }

/* Ghost button (used in notifications page) */
.bas-btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--muted);
}
.bas-btn-ghost:hover { border-color: var(--burg); color: var(--burg); }

/* ── Badges (from mockup) ──────────────────────────────────── */
.bas-badge, .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--white);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.5;
}

.bas-badge-burg, .badge.burg { background: #f7eaf0; color: var(--burg); border-color: #e9c4d3; }
.bas-badge-ok, .badge.ok { background: #e9f4ee; color: var(--ok); border-color: #bedcc9; }
.bas-badge-warn, .badge.warn { background: #fff4da; color: var(--warn); border-color: #ead19a; }
.bas-badge-danger, .badge.danger { background: #fbe9ec; color: var(--danger); border-color: #f0c2cb; }
.bas-badge-blue, .badge.blue { background: #eaf1f7; color: var(--blue); border-color: #c6dbea; }
.bas-badge-grey, .bas-badge-muted, .badge.grey { background: var(--bg); color: var(--muted); border-color: var(--line); }

/* ── Tabs (from mockup) ────────────────────────────────────── */
.bas-tabs, .tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.bas-tab, .tab {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    transition: all var(--transition);
    text-decoration: none;
}
.bas-tab:hover, .tab:hover { color: var(--dark); border-color: var(--burg); }

.bas-tab.active, .tab.active {
    background: var(--burg);
    color: #fff;
    border-color: var(--burg);
}

/* Filter tabs (notifications page) */
.bas-filter-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: var(--bg);
}
.bas-filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.bas-filter-tab:hover { color: var(--dark); }
.bas-filter-tab.active {
    background: var(--white);
    border-color: var(--line);
    color: var(--burg);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ── Filter Bar ────────────────────────────────────────────── */
.bas-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    background: rgba(250,249,250,0.6);
}

.bas-filter-bar input,
.bas-filter-bar select {
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    background: var(--white);
    color: var(--dark);
}
.bas-filter-bar input:focus,
.bas-filter-bar select:focus {
    border-color: var(--burg);
    box-shadow: 0 0 0 3px rgba(128,0,51,0.08);
    outline: none;
}
.bas-filter-bar select { cursor: pointer; }

/* ── Search input ──────────────────────────────────────────── */
.bas-search-input {
    position: relative;
}
.bas-search-input:focus {
    border-color: var(--burg);
    box-shadow: 0 0 0 3px rgba(128,0,51,0.08);
    outline: none;
}

/* ── Pagination ────────────────────────────────────────────── */
.bas-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

/* ── Empty State ───────────────────────────────────────────── */
.bas-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--muted);
}
.bas-empty p { margin: 0; font-size: 13.5px; }
.bas-empty b {
    display: block;
    color: var(--dark);
    font-size: 15px;
    margin-bottom: 6px;
}

/* Empty state with icon (notifications page) */
.bas-empty-state {
    padding: 64px 24px;
    text-align: center;
}
.bas-empty-state-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    font-size: 26px;
    border-radius: 16px;
    background: var(--bg);
}
.bas-empty-state h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--dark);
}
.bas-empty-state p {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
}

/* ── Loading ───────────────────────────────────────────────── */
.bas-loading, .bas-widget-loading {
    padding: 40px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.bas-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--line);
    border-top-color: var(--burg);
    border-radius: 50%;
    animation: basSpin 0.6s linear infinite;
    display: inline-block;
    margin-right: 8px;
}
@keyframes basSpin { to { transform: rotate(360deg); } }

/* ── Toast ─────────────────────────────────────────────────── */
.bas-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: var(--dark);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    max-width: 360px;
}
.bas-toast.show { transform: translateY(0); opacity: 1; }

/* ── Activity Timeline ─────────────────────────────────────── */
.bas-timeline {
    padding: 0 20px 20px;
}

.bas-timeline-item {
    display: flex;
    gap: 14px;
    padding-bottom: 18px;
    position: relative;
}
.bas-timeline-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 14px;
    bottom: 0;
    width: 2px;
    background: var(--line);
    border-radius: 1px;
}
.bas-timeline-item:last-child { padding-bottom: 0; }
.bas-timeline-item:last-child::before { display: none; }

.bas-timeline-dot {
    position: relative;
    z-index: 1;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--burg);
    box-shadow: 0 0 0 3px #f7eaf0;
    flex-shrink: 0;
    margin-top: 4px;
}

.bas-timeline-content {
    flex: 1;
    min-width: 0;
    padding-bottom: 2px;
}

.bas-timeline-text {
    font-size: 13.5px;
    color: var(--dark);
}

.bas-timeline-date {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 3px;
    display: block;
}

/* Direct card content (panels that place h3/p/buttons straight
   inside the card instead of a card header) */
.bas-card > h3:first-child {
    margin: 20px 20px 6px;
    font-size: 15px;
    font-weight: 650;
    color: var(--dark);
}
.bas-card > p {
    margin: 0 20px;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
}
.bas-card > .bas-btn {
    margin: 6px 20px 20px;
}

/* ── Next Action Card ──────────────────────────────────────── */
.bas-dash-next-action {
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--burg);
}

.bas-dash-next-action h3:first-child {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 650;
    color: var(--dark);
}
.bas-dash-next-action p {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
}
.bas-dash-next-action .bas-btn {
    margin: 2px 0 0;
}

/* Activity card on the dashboard overview */
.bas-activity-card { margin-top: 20px; }
.bas-card > h3 + .bas-timeline { padding-top: 8px; }

/* ── Notification Items ────────────────────────────────────── */
.bas-notification-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    padding: 13px 16px 13px 18px;
    border-bottom: 1px solid var(--line);
    transition: background var(--transition);
}
.bas-notification-item:last-child { border-bottom: none; }
.bas-notification-item:hover { background: rgba(128,0,51,0.025); }
.bas-notification-item.unread,
.bas-notification-item.bas-unread {
    background: linear-gradient(90deg, rgba(128,0,51,0.055), rgba(128,0,51,0.015));
}
.bas-notification-item.unread::before,
.bas-notification-item.bas-unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--burg);
}

.bas-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2px;
}
.bas-notification-header b {
    font-size: 13px;
    font-weight: 650;
    color: var(--dark);
}
.bas-notification-time {
    font-size: 11px;
    white-space: nowrap;
}

/* Notifications page: icon + text row layout */
.bas-notification-item:has(> .bas-notification-icon) {
    flex-direction: row;
    align-items: flex-start;
    gap: 13px;
}
.bas-notification-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 17px;
    border-radius: 10px;
    background: var(--bg);
}
.bas-notification-icon.primary { background: #f7eaf0; }
.bas-notification-icon.blue { background: #eaf1f7; }
.bas-notification-icon.ok { background: #e9f4ee; }
.bas-notification-icon.warn { background: #fff4da; }
.bas-notification-icon.muted { background: var(--bg); }
.bas-notification-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bas-notification-text p {
    margin: 0;
    font-size: 13px;
    color: var(--dark2);
}
.bas-notification-text p:first-child { font-weight: 600; }
.bas-notification-text .bas-notification-time {
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--muted);
}
.bas-notification-item .bas-btn-ghost {
    flex-shrink: 0;
    margin-top: 2px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
}

/* ── Version Timeline ──────────────────────────────────────── */
.bas-version-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 8px;
    background: var(--white);
    transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.bas-version-item:last-child { margin-bottom: 0; }
.bas-version-item:hover {
    border-color: #d7a7bb;
    background: #fffafc;
    box-shadow: 0 3px 10px rgba(128, 0, 51, 0.07);
}
.bas-version-item.bas-version-current {
    border-color: #e9c4d3;
    background: #fffafc;
}

/* Light actions inside a version row (Review / Veröffentlichen) —
   soft secondary style, not a dark solid fill. */
.bas-version-item .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 14px;
    border: 1px solid #d9dcdf;
    border-radius: 8px;
    background: #fff;
    color: #33383b;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.bas-version-item .button:hover {
    border-color: #800033;
    color: #800033;
    background: #fdf6f9;
    box-shadow: 0 2px 6px rgba(128, 0, 51, 0.08);
}

.bas-version-number {
    font-size: 15px;
    font-weight: 800;
    color: var(--burg);
    min-width: 48px;
}

.bas-version-meta {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 3px;
}

.bas-version-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bas-version-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Project Workspace ─────────────────────────────────────── */
.bas-project-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    margin-top: 20px;
}

/* Left rail: Videos → Aufgaben → Dateien stacked under each other,
   so the tall “Kommentare” card on the right no longer leaves a
   dead gap below the short Videos card. */
.bas-workspace-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}
.bas-project-workspace > section { min-width: 0; }
.bas-project-workspace .bas-card { margin-bottom: 0; }
.bas-workspace-col .bas-card { margin-bottom: 0; }

/* ── Form Elements ─────────────────────────────────────────── */
.bas-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.bas-field {
    margin-bottom: 14px;
}
.bas-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark);
}
.bas-field input,
.bas-field select,
.bas-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13.5px;
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.bas-field textarea { min-height: 105px; }
.bas-field input:focus,
.bas-field select:focus,
.bas-field textarea:focus {
    outline: none;
    border-color: var(--burg);
    box-shadow: 0 0 0 3px rgba(128,0,51,0.08);
}

/* ── File Drop ─────────────────────────────────────────────── */
.bas-file-drop {
    border: 2px dashed var(--line);
    border-radius: 10px;
    padding: 28px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all var(--transition);
}
.bas-file-drop:hover { border-color: var(--burg); background: #f7eaf0; }

/* ── Video Grid (from mockup) ──────────────────────────────── */
.bas-video-grid {
    display: grid;
    grid-template-columns: minmax(600px, 1.65fr) minmax(340px, 0.85fr);
    gap: 16px;
}

.bas-video-card {
    padding: 15px;
}

.bas-review-video {
    height: 430px;
    background: linear-gradient(145deg, #353b3e, #111);
    border-radius: 9px;
    position: relative;
    overflow: hidden;
}

.bas-video-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 11px 0;
}

.bas-video-controls input[type=range] {
    flex: 1;
    accent-color: var(--burg);
}

/* ── Annotation Tools ──────────────────────────────────────── */
.bas-annotation-tools {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.bas-tool {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition);
}
.bas-tool:hover { border-color: var(--burg); }
.bas-tool.active {
    color: var(--burg);
    border-color: var(--burg);
    background: #f7eaf0;
}

/* ── Scenes Grid ───────────────────────────────────────────── */
.bas-scenes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
    margin-top: 12px;
}

.bas-scene {
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 9px;
    font-size: 11px;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--white);
}
.bas-scene:hover { border-color: var(--burg); }
.bas-scene.active { outline: 2px solid var(--burg); }

/* ── Comments Panel ────────────────────────────────────────── */
.bas-comments {
    display: flex;
    flex-direction: column;
    min-height: 650px;
}

.bas-comments h3 {
    padding: 15px;
    margin: 0;
    border-bottom: 1px solid var(--line);
}

.bas-comment-list {
    flex: 1;
    overflow: auto;
    padding: 11px;
    max-height: 505px;
}

.bas-comment {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 9px;
    cursor: pointer;
    transition: border-color var(--transition);
}
.bas-comment:hover { border-color: #b8bbbe; }

.bas-comment-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #777;
    margin-bottom: 6px;
}

.bas-reply {
    margin: 8px 0 0 16px;
    border-left: 3px solid #ddd;
    padding-left: 9px;
    font-size: 12px;
}

.bas-compose {
    padding: 11px;
    border-top: 1px solid var(--line);
    margin-top: auto;
}
.bas-compose textarea {
    width: 100%;
    height: 78px;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 8px;
    resize: none;
}

/* ── Packages Grid ─────────────────────────────────────────── */
.bas-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.bas-package {
    padding: 26px;
    position: relative;
}

/* ── Project Grid / Cards (Video prüfen, Projektdateien) ───── */
.bas-pg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
    padding: 20px;
}
.bas-pg-grid:only-child { padding: 0; }

.bas-pg-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    margin-bottom: 0;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.bas-pg-card:hover {
    box-shadow: 0 8px 22px rgba(29,35,37,0.09);
    border-color: #c9cdd1;
}

.bas-pg-card-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2px;
}

.bas-pg-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.35;
}
.bas-pg-card-title a { color: inherit; }
.bas-pg-card-title a:hover { color: var(--burg); }

.bas-pg-card-number,
.bas-pg-card-company {
    font-size: 12.5px;
}

.bas-pg-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--dark2);
}
.bas-pg-meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}
.bas-pg-meta-item b { font-weight: 700; }

.bas-pg-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
}

/* Pagination for project grids */
.bas-pg-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.bas-pg-pagination .button { min-height: 32px; }
.bas-pg-pagination .bas-btn-active {
    background: var(--burg);
    color: #fff;
    border-color: var(--burg);
}

.bas-pg-cols-2 .bas-pg-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.bas-pg-cols-4 .bas-pg-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ── SPA View Panels ───────────────────────────────────────── */
.bas-view-panel {
    animation: basFadeIn 0.2s ease;
}
@keyframes basFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Utility ───────────────────────────────────────────────── */
.bas-sub { font-size: 12px; color: var(--muted); }
.bas-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE (from mockup)
   ═══════════════════════════════════════════════════════════════ */

/* ── Sidebar Overlay (mobile) ────────────────────────────── */
.bas-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}
.bas-sidebar-overlay.show { display: block; }

/* Tablet/Laptop (≤1100px) */
@media (max-width: 1100px) {
    .bas-shell {
        grid-template-columns: 1fr;
    }
    .bas-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: none;
        width: 280px;
    }
    .bas-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.2);
    }
    .bas-main {
        padding: 24px;
    }
    .bas-mobile-toggle {
        display: flex;
        position: relative;
        z-index: 101;
    }
    .bas-dash-stats,
    .bas-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bas-dash-grid,
    .bas-bottom-grid,
    .bas-video-grid {
        grid-template-columns: 1fr;
    }
    .bas-project-workspace {
        grid-template-columns: 1fr;
    }
}

/* Mobile (≤700px) */
@media (max-width: 700px) {
    .bas-dash-stats,
    .bas-stat-grid {
        grid-template-columns: 1fr;
    }
    .bas-form-grid {
        grid-template-columns: 1fr;
    }
    .bas-scenes-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bas-main {
        padding: 16px;
    }
    .bas-top-header {
        flex-direction: column;
    }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    .bas-main {
        padding: 12px;
    }
    .bas-top-header {
        padding: 0 12px;
    }
    .bas-header-user-info {
        display: none;
    }
    .bas-card-header {
        padding: 12px 16px;
    }
    .bas-card-body {
        padding: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Portal dashboard refinement — scoped to the BAS shell so site-wide
   WordPress/Elementor styles remain untouched.
   ═══════════════════════════════════════════════════════════════ */
.bas-dashboard-shell {
    --bas-surface: #ffffff;
    --bas-surface-soft: #faf9fa;
    --bas-ink: #202426;
    --bas-ink-muted: #697176;
    --bas-border: rgba(36, 40, 42, .10);
    --bas-brand-soft: rgba(128, 0, 51, .10);
    --bas-brand-glow: rgba(128, 0, 51, .20);
    background:
        radial-gradient(circle at 88% -12%, rgba(128, 0, 51, .12), transparent 27rem),
        linear-gradient(180deg, #f9f9fa 0%, #f1f3f4 100%);
    overflow: clip;
}

.bas-dashboard-shell .bas-shell {
    grid-template-columns: 272px minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
}

.bas-dashboard-shell .bas-sidebar {
    display: flex;
    flex-direction: column;
    padding: 20px 14px 16px;
    background:
        radial-gradient(circle at 12% 4%, rgba(160, 32, 80, .42), transparent 16rem),
        linear-gradient(165deg, #2e3437 0%, #202426 44%, #171a1c 100%);
    box-shadow: 12px 0 38px rgba(19, 23, 24, .12);
}

.bas-dashboard-shell .bas-sidebar-logo {
    padding: 2px 8px 20px;
    margin: 0 0 14px;
    border-bottom-color: rgba(255, 255, 255, .12);
}

.bas-dashboard-shell .bas-brand-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bas-dashboard-shell .bas-brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--burg2), var(--burg));
    box-shadow: 0 9px 20px rgba(0, 0, 0, .26);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .06em;
}

.bas-dashboard-shell .bas-sidebar-logo-text {
    font-size: 14px;
    line-height: 1.15;
    letter-spacing: .04em;
}

.bas-dashboard-shell .bas-sidebar-logo-text span { color: #efc8d9; }

.bas-dashboard-shell .bas-sidebar-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 13px;
}

.bas-dashboard-shell .bas-sidebar-kicker {
    color: rgba(255, 255, 255, .44);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.bas-dashboard-shell .bas-sidebar-role {
    margin: 0;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .76);
    font-size: 9px;
}

.bas-dashboard-shell .bas-sidebar-nav { padding: 2px 0 16px; }
.bas-dashboard-shell .bas-sidebar-section { margin-top: 22px; }
.bas-dashboard-shell .bas-sidebar-section:first-child { margin-top: 0; }
.bas-dashboard-shell .bas-sidebar-label {
    padding: 0 11px 7px;
    color: rgba(255, 255, 255, .38);
    font-size: 9px;
    letter-spacing: .13em;
}

.bas-dashboard-shell .bas-sidebar-link {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    min-height: 43px;
    width: 100%;
    gap: 11px;
    margin: 2px 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
    white-space: nowrap;
    text-align: left;
    line-height: 1.2;
    vertical-align: middle;
}

/* Icon sits on one centered line with its label; never stacks above it. */
.bas-dashboard-shell .bas-sidebar-link .bas-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.bas-dashboard-shell .bas-sidebar-link .bas-sidebar-badge { margin-left: auto; flex: 0 0 auto; }

.bas-dashboard-shell .bas-sidebar-link::before {
    position: absolute;
    left: -7px;
    width: 3px;
    height: 18px;
    border-radius: 0 3px 3px 0;
    background: #f2ccdc;
    content: '';
    opacity: 0;
    transform: scaleY(.45);
    transition: opacity .2s ease, transform .2s ease;
}

.bas-dashboard-shell .bas-sidebar-link:hover {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.bas-dashboard-shell .bas-sidebar-link.active {
    border: 1px solid rgba(239, 200, 217, .16);
    border-left: 1px solid rgba(239, 200, 217, .16);
    background: linear-gradient(90deg, rgba(128, 0, 51, .68), rgba(128, 0, 51, .24));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 8px 18px rgba(0, 0, 0, .12);
    color: #fff;
}

.bas-dashboard-shell .bas-sidebar-link.active::before { opacity: 1; transform: scaleY(1); }
.bas-dashboard-shell .bas-sidebar-link .bas-icon { opacity: .8; }
.bas-dashboard-shell .bas-sidebar-link.active .bas-icon { color: #f6dce7; }
/* Notification count badge — polished brand pill. */
.bas-dashboard-shell .bas-sidebar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 19px;
    min-width: 19px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c9407e 0%, #a02050 55%, #7a0031 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .3),
        inset 0 -1px 2px rgba(0, 0, 0, .3),
        0 2px 6px rgba(0, 0, 0, .4);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
    color: #fff;
    text-shadow: 0 1px 1px rgba(80, 0, 25, .5);
}

/* On the active (burgundy) link keep the pill crisp with a light ring. */
.bas-dashboard-shell .bas-sidebar-link.active .bas-sidebar-badge {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .3),
        inset 0 -1px 2px rgba(0, 0, 0, .3),
        0 0 0 1px rgba(246, 220, 231, .35),
        0 2px 6px rgba(0, 0, 0, .4);
}
.bas-dashboard-shell .bas-sidebar-footer {
    padding: 14px 0 4px;
    border-top-color: rgba(255, 255, 255, .1);
}

/* Logout — same row design as the nav links. */
.bas-dashboard-shell .bas-sidebar-logout {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    min-height: 43px;
    width: 100%;
    gap: 11px;
    margin: 2px 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
    white-space: nowrap;
    text-align: left;
    line-height: 1.2;
    vertical-align: middle;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.bas-dashboard-shell .bas-sidebar-logout .bas-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    opacity: .8;
}

.bas-dashboard-shell .bas-sidebar-logout:hover {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(157, 38, 54, .16);
    color: #ffb3c0;
}

.bas-dashboard-shell .bas-sidebar-logout:hover .bas-icon { color: #ffb3c0; opacity: 1; }

.bas-dashboard-shell .bas-main {
    max-width: none;
    margin: 0;
    padding: 26px clamp(20px, 3vw, 52px) 44px;
    min-width: 0;
}

.bas-dashboard-shell .bas-top-header {
    position: relative;
    z-index: 40;
    align-items: center;
    min-height: 46px;
    margin: 0 0 18px;
    padding: 5px 8px 5px 16px;
    border: 1px solid var(--bas-border);
    border-radius: 13px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 8px 22px rgba(31, 36, 38, .045);
    backdrop-filter: blur(14px);
}

/* Keep the utility header compact even when the active Elementor theme adds
   generic button padding/display rules. Those rules previously turned the
   member control into a tall wrapped block on standalone review pages. */
.bas-dashboard-shell .bas-header-left {
    min-width: 0;
}
.bas-dashboard-shell .bas-header-right {
    flex: 0 0 auto;
    min-width: 0;
}
.bas-dashboard-shell button.bas-header-icon {
    display: inline-flex !important;
    flex: 0 0 36px;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}
.bas-dashboard-shell button.bas-header-icon > svg {
    display: block !important;
    flex: 0 0 18px;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    color: currentColor;
    visibility: visible !important;
    opacity: 1 !important;
}

.bas-dashboard-shell .bas-breadcrumb { font-size: 12px; }
.bas-dashboard-shell .bas-breadcrumb-current { color: var(--bas-ink); }
.bas-dashboard-shell .bas-header-icon {
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 10px;
}
.bas-dashboard-shell .bas-header-icon:hover {
    border-color: var(--bas-border);
    background: var(--bas-surface-soft);
    color: var(--burg);
}

.bas-dashboard-shell .bas-header-user {
    appearance: none;
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 3px 7px 3px 3px !important;
    gap: 8px !important;
    border: 1px solid transparent;
    border-radius: 10px !important;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1 !important;
    white-space: nowrap;
    text-align: left;
}
.bas-dashboard-shell .bas-header-user:hover,
.bas-dashboard-shell .bas-header-user[aria-expanded="true"] {
    border-color: var(--bas-border);
    background: var(--bas-surface-soft);
}
.bas-dashboard-shell .bas-avatar {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    font-size: 11px;
    background: linear-gradient(135deg, var(--burg2), var(--burg));
    box-shadow: 0 4px 10px var(--bas-brand-glow);
}
.bas-dashboard-shell .bas-header-user-info {
    display: block;
    min-width: 0;
    max-width: 170px;
    line-height: 1.15;
}
.bas-dashboard-shell .bas-header-user-name,
.bas-dashboard-shell .bas-header-user-role {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bas-dashboard-shell button.bas-header-user > svg {
    display: block !important;
    flex: 0 0 14px;
    width: 14px !important;
    min-width: 14px !important;
    height: 14px !important;
}
.bas-dashboard-shell .bas-dropdown-menu {
    margin-top: 6px;
    padding: 6px;
    border-color: var(--bas-border);
    border-radius: 11px;
    box-shadow: 0 16px 34px rgba(24, 29, 31, .14);
}

.bas-dashboard-shell .bas-page-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
}
.bas-dashboard-shell .bas-page-header h1 {
    color: var(--bas-ink);
    font-size: clamp(25px, 2.4vw, 34px);
    font-weight: 760;
    letter-spacing: -.035em;
}
.bas-dashboard-shell .bas-page-header p { max-width: 58ch; font-size: 13px; }

.bas-dashboard-shell .bas-card,
.bas-dashboard-shell .bas-kpi,
.bas-dashboard-shell .bas-stat-card {
    border-color: var(--bas-border);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(29, 35, 37, .045);
}
.bas-dashboard-shell .bas-card { background: rgba(255, 255, 255, .94); }
.bas-dashboard-shell .bas-card-header,
.bas-dashboard-shell .bas-card-head { padding: 17px 20px; }
.bas-dashboard-shell .bas-card-header h3,
.bas-dashboard-shell .bas-card-head h3 { font-size: 14px; letter-spacing: -.01em; }
.bas-dashboard-shell .bas-card-body { padding: 20px; }
.bas-dashboard-shell .bas-kpi,
.bas-dashboard-shell .bas-stat-card {
    position: relative;
    overflow: hidden;
    padding: 19px;
}
.bas-dashboard-shell .bas-kpi::after,
.bas-dashboard-shell .bas-stat-card::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--burg), #c2577f);
    content: '';
    opacity: .8;
}
.bas-dashboard-shell .bas-dash-stats,
.bas-dashboard-shell .bas-stat-grid {
    gap: 16px;
    margin-bottom: 20px;
}
.bas-dashboard-shell .bas-kpi,
.bas-dashboard-shell .bas-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding: 20px 22px;
    min-height: 104px;
}
.bas-dashboard-shell .bas-kpi-value,
.bas-dashboard-shell .bas-stat-value {
    color: var(--bas-ink);
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -.02em;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    margin: 0;
}
.bas-dashboard-shell .bas-kpi-label,
.bas-dashboard-shell .bas-stat-label {
    margin: 0 0 2px;
    color: #8b9296;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.3;
}

.bas-dashboard-shell .bas-btn,
.bas-dashboard-shell .btn {
    min-height: 38px;
    border-radius: 8px;
    font-size: 12.5px;
}
.bas-dashboard-shell .bas-btn-sm,
.bas-dashboard-shell .btn.small {
    min-height: 32px;
    border-radius: 8px;
}
.bas-dashboard-shell .bas-btn-primary,
.bas-dashboard-shell .btn.primary {
    box-shadow: 0 7px 15px rgba(128, 0, 51, .18);
}
.bas-dashboard-shell .bas-btn-primary:hover,
.bas-dashboard-shell .btn.primary:hover { transform: translateY(-1px); }
/* ── Tables: clean header band, airy rows, aligned actions ── */
.bas-dashboard-shell .bas-table {
    min-width: 620px;
    margin-bottom: 0;
}

/* Kill theme defaults (full 1px cell borders + odd-row zebra) so only
   our hairline row separators remain — no more grid/accordion look. */
.bas-dashboard-shell .bas-table th,
.bas-dashboard-shell .bas-table td {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.bas-dashboard-shell .bas-table thead th {
    padding: 12px 18px;
    border-top: 0 !important; /* never a line above the header band */
    border-bottom: 1px solid var(--bas-border);
    background: linear-gradient(180deg, #fbfafa, #f7f6f7);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .1em;
    color: #8b9296;
    text-transform: uppercase;
    white-space: nowrap;
}

.bas-dashboard-shell .bas-table thead th:first-child { padding-left: 20px; }
.bas-dashboard-shell .bas-table thead th:last-child { padding-right: 20px; }

.bas-dashboard-shell .bas-table tbody td {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(36, 40, 42, .06);
    font-size: 13.5px;
    line-height: 1.35;
    color: #3d4346;
    vertical-align: middle;
}
.bas-dashboard-shell .bas-table tbody td:first-child { padding-left: 20px; }
.bas-dashboard-shell .bas-table tbody td:last-child { padding-right: 20px; }

.bas-dashboard-shell .bas-table tbody tr {
    transition: background .16s ease;
}
.bas-dashboard-shell .bas-table tbody tr:hover {
    background: rgba(128, 0, 51, .045);
}
.bas-dashboard-shell .bas-table tbody tr:last-child td {
    border-bottom: none;
}

/* First cell: project name + number */
.bas-dashboard-shell .bas-table tbody td b {
    display: block;
    color: var(--bas-ink);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -.01em;
}
.bas-dashboard-shell .bas-table .bas-sub {
    display: block;
    margin-top: 3px;
    color: #8a9094;
    font-size: 12px;
    letter-spacing: 0;
}

/* Badges sit centered in their cell, versions use tabular numerals */
.bas-dashboard-shell .bas-table td .bas-badge {
    vertical-align: middle;
}
.bas-dashboard-shell .bas-table td:not(:first-child):not(:last-child) {
    font-variant-numeric: tabular-nums;
}

/* Action column: right-aligned, keeps its buttons on one line */
.bas-dashboard-shell .bas-table th:last-child,
.bas-dashboard-shell .bas-table td:last-child {
    text-align: right;
    white-space: nowrap;
}
.bas-dashboard-shell .bas-table th:last-child { font-weight: 750; }

/* Round the table into the card's bottom corners */
.bas-dashboard-shell .bas-card > div[style*="overflow-x"] {
    border-radius: 0 0 16px 16px;
}
.bas-dashboard-shell .bas-filter-bar { gap: 10px; padding: 13px 20px; background: rgba(250, 249, 250, .68); }
.bas-dashboard-shell .bas-filter-bar input,
.bas-dashboard-shell .bas-filter-bar select { min-height: 38px; border-radius: 8px; }
.bas-dashboard-shell .bas-timeline { padding: 20px; }
.bas-dashboard-shell .bas-timeline-dot { box-shadow: 0 0 0 5px var(--bas-brand-soft); }
.bas-dashboard-shell .bas-notification-item.unread,
.bas-dashboard-shell .bas-notification-item.bas-unread { background: linear-gradient(90deg, rgba(128, 0, 51, .06), transparent); }
.bas-dashboard-shell .bas-view-panel { animation: basPremiumFade .24s ease both; }

/* ── Project / video-picker cards: polished, aligned, modern ── */
.bas-portal .bas-pg-grid {
    gap: 18px;
    padding: 20px;
}
.bas-portal .bas-card > .bas-pg-grid:only-child { padding: 20px; }

.bas-portal .bas-pg-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 20px 18px;
    border: 1px solid var(--bas-border, rgba(36, 40, 42, .1));
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #fdfbfc 100%);
    box-shadow: 0 6px 18px rgba(29, 35, 37, .05);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bas-portal .bas-pg-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--burg), #c2577f);
    content: '';
    opacity: .75;
}
.bas-portal .bas-pg-card:hover {
    border-color: rgba(128, 0, 51, .28);
    box-shadow: 0 14px 30px rgba(128, 0, 51, .10);
    transform: translateY(-2px);
}

/* Title with a small brand tick before the name */
.bas-portal .bas-pg-card-title {
    margin: 0 0 6px !important; /* kill theme h3 margins that shove the title right */
    padding-left: 13px;
    position: relative;
    color: var(--bas-ink);
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -.01em;
    line-height: 1.3;
}
.bas-portal .bas-pg-card-title::before {
    position: absolute;
    left: 0;
    top: .12em;
    width: 4px;
    height: 1em;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--burg), #c2577f);
    content: '';
}
.bas-portal .bas-pg-card-title a { color: inherit; text-decoration: none; }
.bas-portal .bas-pg-card-title a:hover { color: var(--burg); }

/* Project number under the title */
.bas-portal .bas-pg-card > .bas-sub,
.bas-portal .bas-pg-card .bas-pg-card-number,
.bas-portal .bas-pg-card .bas-pg-card-company {
    margin: 5px 0 0 13px;
    color: #8b9294;
    font-size: 12px;
    letter-spacing: .03em;
}

/* Meta: stat groups aligned from the left under a hairline */
.bas-portal .bas-pg-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    column-gap: 30px;
    row-gap: 10px;
    margin: 14px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--bas-border, rgba(36, 40, 42, .1));
}
.bas-portal .bas-pg-meta-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
}
.bas-portal .bas-pg-meta-item .bas-sub {
    margin: 0;
    color: #a0a6a9;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1.3;
    text-transform: uppercase;
}
.bas-portal .bas-pg-meta-item b {
    color: var(--bas-ink);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.25;
    white-space: nowrap;
}

/* Footer: hairline + full-width action button pinned to card bottom */
.bas-portal .bas-pg-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 14px 0 0;
}
.bas-portal .bas-pg-card-footer .bas-btn {
    width: 100%;
    flex: 1;
}

/* Consistent radius for all interactive elements inside the shell */
.bas-dashboard-shell .bas-dropdown-item,
.bas-dashboard-shell .bas-tool,
.bas-dashboard-shell .bas-tab,
.bas-dashboard-shell .bas-filter-tab { border-radius: 8px; }
@keyframes basPremiumFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
    .bas-dashboard-shell .bas-sidebar { width: 292px; }
    .bas-dashboard-shell .bas-main { padding: 20px clamp(16px, 3vw, 32px) 36px; }
}

@media (max-width: 700px) {
    .bas-dashboard-shell .bas-main { padding: 12px 14px 30px; }
    .bas-dashboard-shell .bas-top-header { align-items: center; flex-direction: row; margin-bottom: 18px; padding: 7px 8px; }
    .bas-dashboard-shell .bas-header-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
    .bas-dashboard-shell .bas-breadcrumb { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .bas-dashboard-shell .bas-page-header { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
    .bas-dashboard-shell .bas-page-header h1 { font-size: 26px; }
    .bas-dashboard-shell .bas-page-header-actions:empty { display: none; }
    .bas-dashboard-shell .bas-card,
    .bas-dashboard-shell .bas-kpi,
    .bas-dashboard-shell .bas-stat-card { border-radius: 13px; }
}

@media (max-width: 480px) {
    .bas-dashboard-shell .bas-header-right { gap: 2px; }
    .bas-dashboard-shell .bas-header-icon { width: 34px; height: 34px; }
    .bas-dashboard-shell .bas-header-user { padding-right: 4px; }
    .bas-dashboard-shell .bas-avatar { width: 32px; height: 32px; }
    .bas-dashboard-shell .bas-card-header,
    .bas-dashboard-shell .bas-card-head,
    .bas-dashboard-shell .bas-card-body { padding-left: 15px; padding-right: 15px; }
    .bas-dashboard-shell .bas-table th,
    .bas-dashboard-shell .bas-table td { padding-left: 15px; padding-right: 15px; }
}
