:root {
    --rb-black: #1D1E1C;
    --rb-white: #FFFFFF;
    --rb-red: #E10B17;
    --rb-red-hover: #C90914;
    --rb-gray-900: #252724;
    --rb-gray-800: #2E2F2D;
    --rb-gray-100: #F5F5F5;
    --rb-font-family: 'Puffin Display Soft', puffin-display-soft, Puffin, puffin, system-ui, sans-serif;
    --rb-radius-btn: 9999px;
    --rb-radius-card: 0;
}

body.rb-app-shell,
body.rb-guest-body,
body.rb-customer-body {
    font-family: var(--rb-font-family);
}

/* =============================================================================
   App shell — dark sidebar + navbar (matches login binnenkomer)
   ============================================================================= */
body.rb-app-shell {
    --bs-primary: #E10B17;
    --bs-primary-rgb: 225, 11, 23;
    --bs-link-color: #E10B17;
    --bs-link-hover-color: #C90914;
}

body.rb-app-shell .sidebar,
body.rb-app-shell .sidebar-content,
body.rb-app-shell .sidebar-nav,
body.rb-app-shell .sidebar-item {
    background: var(--rb-black) !important;
    border-right: none;
}

body.rb-app-shell .sidebar {
    border-right: 1px solid var(--rb-gray-800);
}

body.rb-app-shell .sidebar-brand {
    padding: 1.25rem 1.5rem;
    background: var(--rb-black) !important;
    border-bottom: 3px solid var(--rb-red);
}

body.rb-app-shell .sidebar-brand-text {
    color: var(--rb-white) !important;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

body.rb-app-shell .sidebar-header {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-top: 1rem;
}

body.rb-app-shell .sidebar-link,
body.rb-app-shell a.sidebar-link,
body.rb-app-shell .sidebar-link span {
    color: rgba(255, 255, 255, 0.72) !important;
    background: transparent !important;
    font-weight: 500;
    border-radius: 0 !important;
    border-left: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}

body.rb-app-shell .sidebar-link i,
body.rb-app-shell .sidebar-link svg,
body.rb-app-shell a.sidebar-link i,
body.rb-app-shell a.sidebar-link svg {
    color: inherit !important;
    stroke: currentColor;
}

body.rb-app-shell .sidebar-link:hover,
body.rb-app-shell .sidebar-link:hover i,
body.rb-app-shell .sidebar-link:hover svg {
    color: var(--rb-white) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

body.rb-app-shell .sidebar-item.active > .sidebar-link,
body.rb-app-shell .sidebar-item.active .sidebar-link,
body.rb-app-shell .sidebar-item.active > .sidebar-link:hover {
    color: var(--rb-white) !important;
    background: var(--rb-red) !important;
    background-image: none !important;
    border-left: none !important;
}

body.rb-app-shell .sidebar-item.active .sidebar-link i,
body.rb-app-shell .sidebar-item.active .sidebar-link svg {
    color: inherit !important;
}

/* Subitems: inspringing, zelfde kleur als hoofditems */
body.rb-app-shell .sidebar-subitem .sidebar-link {
    padding-left: 2.75rem !important;
    color: rgba(255, 255, 255, 0.72) !important;
    background: transparent !important;
}

body.rb-app-shell .sidebar-subitem .sidebar-link:hover {
    color: var(--rb-white) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

body.rb-app-shell .sidebar-subitem.active > .sidebar-link,
body.rb-app-shell .sidebar-subitem.active .sidebar-link {
    color: var(--rb-white) !important;
    background: var(--rb-red) !important;
}

body.rb-app-shell .sidebar-item {
    position: relative;
}

body.rb-app-shell .rb-sidebar-badge {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
    color: var(--rb-white);
    background: var(--rb-red);
    border-radius: 9999px;
}

body.rb-app-shell .navbar-bg {
    background: var(--rb-gray-900) !important;
    border-bottom: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.rb-app-shell .navbar-bg .hamburger,
body.rb-app-shell .navbar-bg .hamburger::before,
body.rb-app-shell .navbar-bg .hamburger::after {
    background: var(--rb-white) !important;
}

body.rb-app-shell .navbar-bg .nav-link,
body.rb-app-shell .navbar-bg .nav-icon {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.rb-app-shell .navbar-bg #timerTaskLink {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* User menu trigger — hide Bootstrap's chunky caret */
body.rb-app-shell .rb-user-menu-toggle::after {
    display: none !important;
    content: none !important;
    border: none !important;
}

body.rb-app-shell .rb-user-menu-toggle {
    gap: 0.5rem;
    padding: 0.35rem 0.5rem !important;
    border-radius: 6px;
    transition: background 0.15s ease;
}

body.rb-app-shell .rb-user-menu-toggle:hover,
body.rb-app-shell .rb-user-menu-toggle.show {
    background: rgba(255, 255, 255, 0.08);
}

body.rb-app-shell .rb-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

body.rb-app-shell .rb-user-name {
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.rb-app-shell .rb-user-chevron {
    width: 16px !important;
    height: 16px !important;
    opacity: 0.65;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.15s ease;
}

body.rb-app-shell .rb-user-menu-toggle.show .rb-user-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

body.rb-app-shell .rb-user-menu {
    min-width: 220px;
    margin-top: 0.5rem !important;
    padding: 0.35rem 0;
    border-radius: 0;
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

body.rb-app-shell .rb-user-menu-header {
    padding: 0.65rem 1rem 0.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.25rem;
}

body.rb-app-shell .rb-user-menu-header strong {
    display: block;
    font-size: 0.9rem;
    color: #111;
}

body.rb-app-shell .rb-user-menu-header small {
    display: block;
    color: #6c757d;
    font-size: 0.78rem;
}

body.rb-app-shell .rb-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    color: #212529;
}

body.rb-app-shell .rb-user-menu .dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #6c757d;
}

body.rb-app-shell .rb-user-menu .dropdown-item:hover,
body.rb-app-shell .rb-user-menu .dropdown-item:focus {
    background: #fff5f5;
    color: #212529;
}

body.rb-app-shell .rb-user-menu .dropdown-item.text-danger {
    color: var(--rb-red) !important;
}

body.rb-app-shell .rb-user-menu .dropdown-item.text-danger svg {
    color: var(--rb-red);
}

body.rb-app-shell .rb-user-menu .dropdown-item:active {
    background-color: var(--rb-red);
    color: var(--rb-white) !important;
}

body.rb-app-shell .rb-user-menu .dropdown-item:active svg {
    color: var(--rb-white);
}

body.rb-app-shell .rb-user-menu .dropdown-divider {
    margin: 0.35rem 0;
    border-color: #eee;
}

/* Light content mode (default) */
body.rb-app-shell.rb-content-light .main {
    background-color: var(--rb-gray-100);
}

body.rb-app-shell.rb-content-light .content {
    background-color: var(--rb-gray-100);
    color: #212529;
}

body.rb-app-shell.rb-content-light .card {
    background-color: var(--rb-white);
    border-radius: var(--rb-radius-card);
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

body.rb-app-shell.rb-content-light .card-header {
    background: var(--rb-white);
    border-bottom: 2px solid var(--rb-gray-100);
    font-weight: 600;
}

body.rb-app-shell.rb-content-light .footer {
    background: transparent;
    border-top: 1px solid #e5e5e5;
}

/* Dark content mode (profile setting) */
body.rb-app-shell.rb-content-dark .main,
body.rb-app-shell.rb-content-dark .content {
    background-color: var(--rb-black);
    color: rgba(255, 255, 255, 0.9);
}

body.rb-app-shell.rb-content-dark .card {
    background: var(--rb-gray-900);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--rb-gray-800);
    border-radius: 0;
}

body.rb-app-shell.rb-content-dark .card-header {
    background: var(--rb-gray-900);
    border-bottom-color: var(--rb-gray-800);
    color: var(--rb-white);
}

body.rb-app-shell.rb-content-dark .table {
    color: rgba(255, 255, 255, 0.88);
    --bs-table-bg: transparent;
}

body.rb-app-shell.rb-content-dark .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.rb-app-shell.rb-content-dark .border-bottom {
    border-color: var(--rb-gray-800) !important;
}

body.rb-app-shell.rb-content-dark .form-control,
body.rb-app-shell.rb-content-dark .form-select {
    background: var(--rb-gray-800);
    border-color: #333;
    color: var(--rb-white);
}

/* Shared app UI polish */
body.rb-app-shell .h1,
body.rb-app-shell .h2,
body.rb-app-shell h1,
body.rb-app-shell h2.h2,
body.rb-app-shell h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.rb-app-shell .border-bottom {
    border-color: #e8e8e8 !important;
}

body.rb-app-shell .btn {
    border-radius: var(--rb-radius-btn);
}

body.rb-app-shell .btn-group > .btn,
body.rb-app-shell .input-group > .btn {
    border-radius: 0;
}

body.rb-app-shell .btn-group > .btn:first-child {
    border-top-left-radius: var(--rb-radius-btn);
    border-bottom-left-radius: var(--rb-radius-btn);
}

body.rb-app-shell .btn-group > .btn:last-child {
    border-top-right-radius: var(--rb-radius-btn);
    border-bottom-right-radius: var(--rb-radius-btn);
}

body.rb-app-shell .input-group > .btn:first-child {
    border-top-left-radius: var(--rb-radius-btn);
    border-bottom-left-radius: var(--rb-radius-btn);
}

body.rb-app-shell .input-group > .btn:last-child {
    border-top-right-radius: var(--rb-radius-btn);
    border-bottom-right-radius: var(--rb-radius-btn);
}

body.rb-app-shell .btn-primary {
    background-color: var(--rb-red);
    border-color: var(--rb-red);
    font-weight: 600;
}

body.rb-app-shell .btn-primary:hover,
body.rb-app-shell .btn-primary:focus,
body.rb-app-shell .btn-primary:active {
    background-color: var(--rb-red-hover);
    border-color: var(--rb-red-hover);
}

body.rb-app-shell .btn-outline-primary {
    color: var(--rb-red);
    border-color: var(--rb-red);
}

body.rb-app-shell .btn-outline-primary:hover {
    background-color: var(--rb-red);
    border-color: var(--rb-red);
    color: var(--rb-white);
}

/* Dropdowns in tables: .table-responsive clips overflow — fixed popper + z-index */
body.rb-app-shell .table-responsive .dropdown-menu {
    z-index: 1060;
}

body.rb-app-shell .table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    border-bottom-width: 2px;
}

body.rb-app-shell .badge.bg-primary,
body.rb-app-shell .bg-primary {
    background-color: var(--rb-red) !important;
}

body.rb-app-shell .pagination .page-item.active .page-link {
    background-color: var(--rb-red);
    border-color: var(--rb-red);
}

body.rb-app-shell a:not(.btn):not(.sidebar-link):not(.nav-link):not(.dropdown-item):not(.page-link) {
    color: var(--rb-red);
}

body.rb-app-shell a:not(.btn):not(.sidebar-link):not(.nav-link):not(.dropdown-item):not(.page-link):hover {
    color: var(--rb-red-hover);
}

/* Page header accent line (dashboard, lists) */
body.rb-app-shell .content > .container-fluid > .border-bottom,
body.rb-app-shell .content .border-bottom.mb-3,
body.rb-app-shell .content .border-bottom.mb-2 {
    border-bottom: 2px solid var(--rb-gray-100) !important;
    padding-bottom: 0.75rem;
    position: relative;
}

body.rb-app-shell.rb-content-light .content > .container-fluid > .d-flex.border-bottom > :is(h1, h2, .h1, .h2)::after,
body.rb-app-shell.rb-content-light .content > .container-fluid > .border-bottom.mb-3 > :is(h1, h2, .h1, .h2)::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--rb-red);
    margin-top: 0.5rem;
}

/* Legacy alias */
body.rb-content-light .content {
    background-color: var(--rb-gray-100);
    color: #212529;
}

body.rb-content-light .card {
    background-color: var(--rb-white);
}

/* Stat numbers (dashboard) */
.rb-stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--rb-red);
    letter-spacing: -0.02em;
}

.rb-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    font-weight: 600;
}

.rb-stat-card {
    border-left: 4px solid var(--rb-red);
}

/* CTA */
.btn-rb-primary {
    background-color: var(--rb-red);
    border-color: var(--rb-red);
    color: var(--rb-white);
    border-radius: var(--rb-radius-btn);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
}

.btn-rb-primary:hover,
.btn-rb-primary:focus {
    background-color: var(--rb-red-hover);
    border-color: var(--rb-red-hover);
    color: var(--rb-white);
}

/* Guest / login layout */
.rb-guest-body {
    background-color: var(--rb-black);
    min-height: 100vh;
    color: var(--rb-white);
    overflow-x: hidden;
}

.rb-guest-hero {
    position: relative;
    min-height: 100vh;
    background-color: var(--rb-black);
    overflow: visible;
}

.rb-guest-hero::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(42vw, 520px);
    height: min(42vh, 420px);
    background-color: var(--rb-red);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    pointer-events: none;
    z-index: 0;
}

.rb-guest-row {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    align-items: center;
}

.rb-guest-copy {
    color: var(--rb-white);
}

.rb-guest-form-col {
    position: relative;
    z-index: 2;
}

.rb-guest-headline {
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
}

.rb-guest-headline-lead,
.rb-guest-headline-accent {
    display: block;
    max-width: 100%;
    overflow-wrap: break-word;
}

.rb-guest-headline-lead {
    color: var(--rb-white) !important;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

.rb-guest-headline-accent {
    color: var(--rb-red) !important;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.rb-guest-sublead {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 36rem;
}

.rb-guest-features {
    color: rgba(255, 255, 255, 0.85);
}

.rb-guest-rabbit,
.rb-brand-rabbit--hero {
    max-height: 280px;
    width: auto;
}

.rb-brand-rabbit--empty {
    width: 72px;
    height: auto;
}

.rb-asset-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--rb-red);
    border-radius: 0;
    box-sizing: border-box;
    text-align: center;
}

.rb-asset-placeholder--light {
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.rb-asset-placeholder--dark {
    color: #5c5c5c;
    border-color: var(--rb-red);
    background: rgba(225, 11, 23, 0.05);
}

.rb-asset-placeholder--sm {
    min-width: 7rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.5rem;
}

.rb-asset-placeholder--md {
    min-width: 9rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
}

.rb-asset-placeholder--lg {
    min-width: 11rem;
    min-height: 11rem;
    padding: 1rem;
}

.rb-asset-placeholder__text {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.35;
}

.rb-brand-rabbit-placeholder--hero {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.rb-brand-rabbit-placeholder--empty {
    margin-left: auto;
    margin-right: auto;
}

.rb-empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.rb-empty-state--compact {
    padding: 1.5rem 1rem;
}

.rb-empty-state__title {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.rb-empty-state--compact .rb-empty-state__title {
    margin-top: 0.75rem;
    font-size: 1rem;
}

.rb-empty-state__description {
    color: #666;
    margin-bottom: 1rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.rb-empty-state--compact .rb-brand-rabbit--empty,
.rb-empty-state--compact .rb-brand-rabbit-placeholder--empty {
    transform: scale(0.85);
}

.rb-command-palette-empty {
    padding: 1.5rem;
    text-align: center;
    color: #666;
}

.rb-command-palette-empty img,
.rb-command-palette-empty .rb-brand-rabbit-placeholder {
    margin: 0 auto 0.5rem;
    transform: scale(0.8);
}

.rb-onboarding-rabbit {
    max-width: 120px;
    margin: 0 auto 1rem;
    display: block;
}

.rb-login-card {
    background: var(--rb-white);
    color: #212529;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.rb-login-card .form-control {
    border-radius: 0;
    border-color: #dee2e6;
}

.rb-login-card .form-control:focus {
    border-color: var(--rb-red);
    box-shadow: 0 0 0 0.2rem rgba(225, 11, 23, 0.15);
}

.rb-customer-body {
    --rb-customer-bg: #f3f4f6;
    --rb-customer-surface: #ffffff;
    --rb-customer-ink: #1d1e1c;
    --rb-customer-muted: #5c5f5b;
    --rb-customer-line: #e6e8e6;
    background:
        radial-gradient(ellipse 80% 50% at 0% -10%, rgba(225, 11, 23, 0.07), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(29, 30, 28, 0.04), transparent 50%),
        var(--rb-customer-bg);
    color: var(--rb-customer-ink);
    min-height: 100vh;
}

.rb-customer-nav {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid var(--rb-customer-line);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.rb-customer-nav .navbar-brand {
    margin-right: 1.5rem;
}

.rb-customer-nav-link {
    color: var(--rb-customer-ink) !important;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.45rem 0.65rem !important;
    border-radius: 0;
    position: relative;
}

.rb-customer-nav-link:hover,
.rb-customer-nav-link:focus {
    color: var(--rb-red) !important;
}

.rb-customer-logout {
    border-radius: var(--rb-radius-btn);
    font-weight: 600;
    border-color: #c8cbc7;
    color: var(--rb-customer-ink);
}

.rb-customer-logout:hover {
    background: var(--rb-customer-ink);
    border-color: var(--rb-customer-ink);
    color: var(--rb-white);
}

.rb-customer-main {
    max-width: 1100px;
}

body.rb-customer-body .card {
    background: var(--rb-customer-surface);
    border: 1px solid var(--rb-customer-line);
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(29, 30, 28, 0.03);
}

body.rb-customer-body .card-header {
    background: transparent;
    border-bottom-color: var(--rb-customer-line);
    font-weight: 700;
}

body.rb-customer-body .rb-stat-card .rb-stat-number {
    color: var(--rb-red);
}

body.rb-customer-body .list-group-item {
    border-color: var(--rb-customer-line);
}

body.rb-customer-body .list-group-item-action:hover {
    background: #fafafa;
}

/* Command palette */
.rb-command-palette {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    background: rgba(0, 0, 0, 0.55);
}

.rb-command-palette.show {
    display: flex;
}

.rb-command-palette-dialog {
    width: min(560px, 92vw);
    background: var(--rb-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.rb-command-palette-input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #eee;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    outline: none;
}

.rb-command-palette-results {
    max-height: 320px;
    overflow-y: auto;
}

.rb-command-palette-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}

.rb-command-palette-item:hover,
.rb-command-palette-item.active {
    background: #fff5f5;
}

.rb-command-palette-item small {
    color: #6c757d;
    display: block;
}

/* Timer reminder banner */
.rb-timer-reminder {
    background: #fff3cd;
    border-left: 4px solid var(--rb-red);
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    display: none;
}

.rb-timer-reminder.show {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Collapsible list filters — hidden on mobile until toggled */
.rb-collapsible-filters .rb-filters-toggle {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0;
    border-radius: var(--rb-radius-btn);
    font-weight: 600;
}

.rb-collapsible-filters .rb-filters-toggle .rb-filters-toggle-chevron {
    width: 16px;
    height: 16px;
    margin-left: auto;
    transition: transform 0.15s ease;
}

.rb-collapsible-filters .rb-filters-toggle[aria-expanded="true"] .rb-filters-toggle-chevron {
    transform: rotate(180deg);
}

.rb-collapsible-filters .rb-filters-collapse:not(.show) {
    margin-top: 0;
}

.rb-collapsible-filters .rb-filters-collapse.show {
    margin-top: 0.75rem;
}

@media (min-width: 768px) {
    .rb-collapsible-filters .rb-filters-collapse.collapse {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
    }

    .rb-collapsible-filters .rb-filters-collapse.show {
        margin-top: 0;
    }
}

/* =============================================================================
   Customer dashboard — light page header + news
   ============================================================================= */
.rb-dash-hero,
.rb-dns-hero {
    background: var(--rb-customer-surface, #fff);
    color: var(--rb-customer-ink, #1d1e1c);
    border: 1px solid var(--rb-customer-line, #e6e8e6);
    border-top: 3px solid var(--rb-red);
    box-shadow: 0 10px 30px rgba(29, 30, 28, 0.04);
}

.rb-dash-hero-inner,
.rb-dns-hero-inner {
    padding: 1.5rem 1.35rem;
}

@media (min-width: 768px) {
    .rb-dash-hero-inner,
    .rb-dns-hero-inner {
        padding: 2rem 1.75rem;
    }
}

.rb-dash-kicker,
.rb-dns-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rb-red);
}

.rb-dash-title,
.rb-dns-title {
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--rb-customer-ink, #1d1e1c);
    word-break: break-word;
}

.rb-dash-lead,
.rb-dns-lead {
    max-width: 40rem;
    color: var(--rb-customer-muted, #5c5f5b);
    font-size: 1.02rem;
    line-height: 1.5;
}

.rb-dns-back {
    color: var(--rb-customer-muted, #5c5f5b) !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.rb-dns-back:hover {
    color: var(--rb-red) !important;
}

.rb-news-list {
    display: grid;
    gap: 1rem;
}

.rb-news-item {
    background: var(--rb-customer-surface, #fff);
    border: 1px solid var(--rb-customer-line, #e6e8e6);
    border-left: 3px solid #d5d8d4;
    padding: 1.25rem 1.35rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rb-news-item:hover {
    border-color: #d0d3cf;
    box-shadow: 0 8px 24px rgba(29, 30, 28, 0.05);
}

.rb-news-item.is-pinned {
    border-left-color: var(--rb-red);
    box-shadow: 0 8px 24px rgba(225, 11, 23, 0.06);
}

.rb-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--rb-customer-muted, #5c5f5b);
}

.rb-news-badge {
    display: inline-block;
    background: #fff0f1;
    color: var(--rb-red);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
}

.rb-news-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.015em;
    color: var(--rb-customer-ink, #1d1e1c);
}

.rb-news-excerpt {
    color: var(--rb-customer-muted, #5c5f5b);
    margin-bottom: 0.75rem;
}

.rb-news-body {
    color: #333;
    line-height: 1.55;
    white-space: normal;
}

.rb-news-empty {
    background: var(--rb-customer-surface, #fff);
    border: 1px dashed #d5d8d4;
    padding: 1.5rem;
    color: var(--rb-customer-muted, #5c5f5b);
}

/* =============================================================================
   Customer DNS
   ============================================================================= */
.rb-dns-hero-meta,
.rb-dns-domain-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.rb-dns-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--rb-customer-line, #e6e8e6);
    background: #f7f8f7;
    color: var(--rb-customer-ink, #1d1e1c);
    font-size: 0.75rem;
    font-weight: 600;
}

.rb-dns-chip.is-live {
    border-color: #f5c2c5;
    background: #fff0f1;
    color: var(--rb-red);
}

.rb-dns-chip.is-count {
    border-color: #d5d8d4;
    background: var(--rb-customer-surface, #fff);
}

.rb-dns-form-panel {
    background: var(--rb-customer-surface, #fff);
    border: 1px solid var(--rb-customer-line, #e6e8e6);
    border-left: 3px solid var(--rb-red);
}

.rb-dns-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.rb-dns-form-body {
    padding: 1.25rem;
}

.rb-dns-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    position: sticky;
    top: 4.25rem;
    z-index: 5;
    background: rgba(243, 244, 246, 0.9);
    backdrop-filter: blur(8px);
    padding: 0.55rem 0;
}

.rb-dns-filter {
    border: 1px solid var(--rb-customer-line, #e6e8e6);
    background: var(--rb-customer-surface, #fff);
    color: var(--rb-customer-ink, #1d1e1c);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.rb-dns-filter:hover {
    border-color: #c8cbc7;
}

.rb-dns-filter.is-active {
    background: var(--rb-red);
    border-color: var(--rb-red);
    color: var(--rb-white);
}

.rb-dns-filter-count {
    font-size: 0.72rem;
    opacity: 0.75;
}

.rb-dns-sections {
    display: grid;
    gap: 1.25rem;
}

.rb-dns-section-head {
    margin-bottom: 0.55rem;
}

.rb-dns-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.95rem;
}

.rb-dns-section-count {
    color: #888;
    font-weight: 600;
    font-size: 0.8rem;
}

.rb-dns-type {
    display: inline-flex;
    min-width: 3.2rem;
    justify-content: center;
    padding: 0.15rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: var(--rb-black);
    color: var(--rb-white);
}

.rb-dns-type-mx,
.rb-dns-type-srv {
    background: var(--rb-red);
}

.rb-dns-type-txt,
.rb-dns-type-caa {
    background: #555;
}

.rb-dns-type-cname,
.rb-dns-type-alias {
    background: #2e2f2d;
}

.rb-dns-rows {
    display: grid;
    gap: 0.5rem;
}

.rb-dns-row {
    display: grid;
    gap: 0.75rem;
    background: var(--rb-white);
    border: 1px solid #ececec;
    padding: 0.9rem 1rem;
}

@media (min-width: 768px) {
    .rb-dns-row {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

.rb-dns-row:hover {
    border-color: #ddd;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.rb-dns-row-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
}

.rb-dns-row-name code {
    font-size: 0.92rem;
    color: #1d1e1c;
    background: #f3f3f3;
    padding: 0.1rem 0.35rem;
}

.rb-dns-proxied {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rb-red);
    background: #fff0f1;
    padding: 0.12rem 0.35rem;
}

.rb-dns-row-content {
    color: #333;
    font-size: 0.92rem;
    word-break: break-word;
    line-height: 1.4;
}

.rb-dns-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.4rem;
    color: #888;
    font-size: 0.78rem;
}

.rb-dns-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .rb-dns-row-actions {
        justify-content: flex-end;
    }
}

.rb-dns-empty {
    background: var(--rb-white);
    border: 1px dashed #ddd;
    padding: 1.5rem;
}

.rb-dns-domain-grid {
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 768px) {
    .rb-dns-domain-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.rb-dns-domain-card {
    display: block;
    background: var(--rb-white);
    border: 1px solid #ececec;
    border-left: 3px solid var(--rb-black);
    padding: 1.15rem 1.2rem;
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rb-dns-domain-card:hover {
    border-left-color: var(--rb-red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rb-dns-domain-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    letter-spacing: -0.015em;
}

.rb-dns-domain-card .rb-dns-chip {
    border-color: #e5e5e5;
    background: #f7f7f7;
    color: #444;
}

.rb-dns-domain-card .rb-dns-chip.is-live {
    border-color: #f5c2c5;
    background: #fff0f1;
    color: var(--rb-red);
}

.rb-dns-domain-cta {
    display: inline-block;
    margin-top: 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rb-red);
}

/* Shared mailbox usage bar (customer + Orbit) */
.cp-usage {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 7.5rem;
}

.cp-usage-track {
    flex: 1 1 auto;
    min-width: 4.5rem;
    height: 0.5rem;
    overflow: hidden;
    border: 1px solid #e2e4e0;
    background: #f4f3ef;
}

.cp-usage-fill {
    height: 100%;
}

.cp-usage-fill.is-ok { background: #1f9d55; }
.cp-usage-fill.is-mid { background: #d97706; }
.cp-usage-fill.is-high { background: #e10b17; }

.cp-usage-label {
    flex: 0 0 auto;
    font-size: 0.75rem;
    color: #5e615c;
    white-space: nowrap;
}
