/* ===================================================================
   Cresco Analytics Platform — Global Styles

   Palette:
     Sidebar:   #2B2B2B (charcoal-black, sharp & modern)
     Accent:    #C8A055 (warm gold)
     Page BG:   #F5F2ED (warm off-white)
     Card BG:   #FFFFFF
     Borders:   #E8DFD0 (warm sand)
   =================================================================== */

/* --- Login Page --- */
.login-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2B2B2B;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.login-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-logo {
    width: 72px;
    height: auto;
    margin-bottom: 20px;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    color: #2B2B2B;
    margin: 0 0 6px 0;
}

.login-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0 0 32px 0;
}

.login-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 0;
    background: #C8A055;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
    box-sizing: border-box;
}

.login-btn:hover {
    background: #b5903e;
    color: #FFFFFF;
    text-decoration: none;
}

.login-footer {
    margin-top: 24px;
    font-size: 11px;
    color: #aaa;
    line-height: 1.6;
}

.login-help {
    color: #bbb;
}

/* --- Sidebar Logout Button --- */
.sidebar-user-section {
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.sidebar-user-email {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
}

.sidebar-logout-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-logout-btn:hover {
    background: rgba(200, 160, 85, 0.2);
    color: #C8A055;
    text-decoration: none;
}

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    background: #2B2B2B;
    color: #ffffff;
    padding: 0;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* --- Sidebar header with logo frame --- */
.sidebar-header {
    text-align: center;
    padding: 26px 20px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-frame {
    width: 90px;
    height: 90px;
    margin: 0 auto 10px auto;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-subtitle {
    margin: 0;
    font-size: 10px;
    color: #C8A055;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
}

/* --- Navigation sections --- */
.sidebar-nav {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 2px;
}

.nav-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.nav-section-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

.nav-section-arrow {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease;
}

.nav-section-items {
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.nav-section-items.collapsed {
    max-height: 0;
    opacity: 0;
}

/* --- Nav links --- */
.nav-link-sidebar {
    display: block;
    padding: 9px 16px;
    margin: 1px 12px;
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-link-sidebar:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.07);
}

.nav-link-sidebar.active {
    color: #FFFFFF !important;
    background: rgba(200, 160, 85, 0.15);
    border-left: 3px solid #C8A055;
    font-weight: 600;
}

/* --- Sidebar footer --- */
.sidebar-footer {
    padding: 14px 16px;
    background: #ffffff;
    text-align: center;
    border-top: 1px solid #E8E8E8;
}

.sidebar-powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.powered-text {
    font-size: 10px;
    color: #888888;
}

.cresco-footer-logo {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
}

.cresco-footer-name {
    font-size: 11px;
    font-weight: 700;
    color: #333333;
    letter-spacing: 0.5px;
}

/* --- Main content area --- */
.main-content {
    margin-left: 250px;
    padding: 20px 25px;
    background-color: #F5F2ED;
    min-height: 100vh;
}

/* --- KPI Cards --- */
.kpi-card {
    background: #FFFFFF;
    border: 1px solid #E8DFD0;
    border-radius: 10px;
    padding: 16px 18px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(44, 24, 16, 0.07);
    transition: box-shadow 0.2s ease;
}

.kpi-card:hover {
    box-shadow: 0 3px 8px rgba(44, 24, 16, 0.1);
}

.kpi-label {
    font-size: 11px;
    color: #9B8470;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 500;
}

.kpi-value {
    font-size: 22px;
    font-weight: 500;
    color: #1C1008;
    margin: 0;
    line-height: 1.2;
}

/* --- Filter toggle buttons --- */
.filter-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.filter-header .filter-label {
    white-space: nowrap;
    margin-bottom: 0;
}

.select-all-btn {
    font-size: 10px;
    color: #C8A055;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
    transition: color 0.15s ease;
}

.select-all-btn:hover {
    color: #A07830;
    text-decoration: underline;
}

/* --- Filter bar --- */
.filter-bar {
    background: #FFFFFF;
    border: 1px solid #E8DFD0;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(44, 24, 16, 0.07);
}

/* Filter layout: max 4 controls per row, each row stretched to fill the full
   width via flex-grow (so a wrapped row is never sparse/left-aligned):
       5 filters -> 4 + 1
       6 filters -> 4 + 2
       7 filters -> 4 + 3
   Responsive: 2-up below 992px, 1-up below 576px. */
.filter-bar .row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    align-items: start;
    margin: 0;
}

/* Each dbc.Col becomes a flex cell — neutralise Bootstrap col widths/gutters.
   flex-grow:1 stretches cells to fill the row; basis ~1/4 -> 4 per row max. */
.filter-bar .row > [class*="col"] {
    flex: 1 1 calc(25% - 15px);
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Responsive: collapse to 2-up then 1-up on narrower viewports. */
@media (max-width: 991px) {
    .filter-bar .row > [class*="col"] {
        flex-basis: calc(50% - 10px);
    }
}
@media (max-width: 575px) {
    .filter-bar .row > [class*="col"] {
        flex-basis: 100%;
    }
}

.filter-label {
    font-size: 11px;
    color: #9B8470;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    min-height: 16px;
}

/* Equal control height + consistent radius/border across dropdowns and the
   date-range field (reuses the date-picker tokens: radius 6px, border #D4C4B0). */
.filter-bar .Select-control {
    min-height: 36px;
    border-radius: 6px;
    border-color: #D4C4B0;
}

/* --- Dropdown styling --- */
.Select-control {
    border-radius: 6px !important;
    border-color: #D4C4B0 !important;
    background: #FFFFFF !important;
}

/* --- Compact date-range picker (sales / hourly pages) --- */
.compact-date-range .DateRangePickerInput {
    border-radius: 6px !important;
    border: 1px solid #D4C4B0 !important;
    background: #FFFFFF !important;
    height: 36px;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
}
.compact-date-range .DateInput {
    width: 45%;
    background: transparent;
}
.compact-date-range .DateInput_input {
    font-size: 12px !important;
    padding: 6px 8px !important;
    line-height: 1.2 !important;
    border: none !important;
    background: transparent !important;
    color: #2C1810;
}
.compact-date-range .DateInput_input__focused {
    border-bottom: 2px solid #4A7C59 !important;
}
.compact-date-range .DateRangePickerInput_arrow {
    color: #9B8470;
}
.compact-date-range .DateRangePickerInput_clearDates {
    padding: 4px;
    margin: 0 4px 0 0;
}
.compact-date-range .DateRangePickerInput_clearDates_svg {
    width: 10px;
    height: 10px;
    fill: #9B8470;
}
/* Single-calendar popover */
.compact-date-range .DateRangePicker_picker {
    z-index: 1050;
}
.compact-date-range .CalendarDay__selected,
.compact-date-range .CalendarDay__selected:hover {
    background: #4A7C59 !important;
    border-color: #4A7C59 !important;
}
.compact-date-range .CalendarDay__selected_span,
.compact-date-range .CalendarDay__hovered_span {
    background: #D9E5DD !important;
    border-color: #D9E5DD !important;
    color: #2C1810 !important;
}

/* --- Chart containers --- */
.chart-container {
    background: #FFFFFF;
    border: 1px solid #E8DFD0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(44, 24, 16, 0.07);
}

/* Ensure Plotly graphs fill their container */
.chart-container .js-plotly-plot,
.chart-container .plot-container {
    width: 100% !important;
}

.chart-container .js-plotly-plot .plotly .main-svg {
    width: 100% !important;
}

/* --- Page title --- */
.page-title {
    font-size: 20px;
    font-weight: 500;
    color: #2C1810;
    margin-bottom: 20px;
}

/* --- DataTable overrides --- */
.dash-spreadsheet-container .dash-spreadsheet-inner th {
    background-color: #2B2B2B !important;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    padding: 10px 12px !important;
}

.dash-spreadsheet-container .dash-spreadsheet-inner td {
    font-size: 12px;
    padding: 8px 12px !important;
}

/* Alternating row shading */
.dash-spreadsheet-container .dash-spreadsheet-inner tr:nth-child(even) td {
    background-color: #FAF8F5 !important;
}

/* --- Alert styling — warm tones instead of default blue --- */
.channel-notice {
    font-size: 13px;
    font-weight: 500;
    background-color: #FFF8EE !important;
    border-color: #E8D5B8 !important;
    color: #8B6914 !important;
}

.demo-disclaimer {
    font-size: 13px;
    font-weight: 500;
    background-color: #FFF8EE !important;
    border-color: #E8D5B8 !important;
    color: #8B6914 !important;
    border-radius: 8px;
}

/* --- Loading spinner --- */
._dash-loading {
    margin: 40px auto;
}

/* --- Chatbot page --- */
.chat-container {
    background: #FFFFFF;
    border: 1px solid #E8DFD0;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(44, 24, 16, 0.07);
}

/* --- Reporting page --- */
.section-heading {
    font-size: 16px;
    font-weight: 500;
    color: #2C1810;
    margin-bottom: 4px;
}

.section-desc {
    font-size: 13px;
    color: #9B8470;
    margin-bottom: 16px;
}

.report-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FBF7F0 50%, #F5EDE0 100%);
    border: 1px solid #E8DFD0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(44, 24, 16, 0.06);
    transition: all 0.25s ease;
    cursor: pointer;
    height: 100%;
}

.report-card:hover {
    box-shadow: 0 6px 18px rgba(44, 24, 16, 0.12);
    transform: translateY(-3px);
    border-color: #C8A055;
}

.report-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.report-name {
    font-size: 13px;
    font-weight: 600;
    color: #2C1810;
    margin-bottom: 4px;
}

.video-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FBF7F0 50%, #F5EDE0 100%);
    border: 1px solid #E8DFD0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(44, 24, 16, 0.06);
    transition: all 0.25s ease;
}

.video-card:hover {
    box-shadow: 0 6px 18px rgba(44, 24, 16, 0.12);
    transform: translateY(-3px);
    border-color: #C8A055;
}

.video-name {
    font-size: 14px;
    font-weight: 600;
    color: #2C1810;
    margin: 0;
}

/* Report tile grid — CSS grid for precise gap control */
.report-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Video tile grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.video-grid-item {
    min-width: 0;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Scrollbar styling --- */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

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

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* --- Builder page --- */
.builder-step-badge {
    display: inline-block;
    background: #C8A055;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 6px;
}

/* --- Gallery page --- */
.gallery-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FBF7F0 50%, #F5EDE0 100%);
    border: 1px solid #E8DFD0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(44, 24, 16, 0.06);
    transition: all 0.25s ease;
    height: 100%;
}

.gallery-card:hover {
    box-shadow: 0 6px 18px rgba(44, 24, 16, 0.12);
    transform: translateY(-2px);
    border-color: #C8A055;
}

.gallery-card-preview {
    border: 1px solid #f0ebe4;
    border-radius: 8px;
    overflow: hidden;
    background: #FFFFFF;
    min-height: 200px;
}

/* --- Portal selector dropdown (dark sidebar) --- */
.portal-dropdown .dash-dropdown .Select-control,
.portal-dropdown .dash-dropdown .Select-menu-outer,
.portal-dropdown .Select-control,
.portal-dropdown > div > div {
    background: #3a3a3a !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
}

.portal-dropdown .Select-value-label,
.portal-dropdown .Select-placeholder,
.portal-dropdown .dash-dropdown .Select-value-label,
.portal-dropdown input,
.portal-dropdown .Select-input > input,
.portal-dropdown span[class*="singleValue"],
.portal-dropdown div[class*="singleValue"],
.portal-dropdown div[class*="placeholder"] {
    color: #ffffff !important;
}

.portal-dropdown .Select-arrow,
.portal-dropdown svg {
    fill: rgba(255,255,255,0.5) !important;
    border-color: rgba(255,255,255,0.5) transparent transparent !important;
}

/* Dropdown menu (open state) */
.portal-dropdown .Select-menu-outer,
.portal-dropdown div[class*="menu"] {
    background: #3a3a3a !important;
    border-color: rgba(255,255,255,0.15) !important;
}

.portal-dropdown .Select-option,
.portal-dropdown div[class*="option"] {
    background: #3a3a3a !important;
    color: #ffffff !important;
}

.portal-dropdown .Select-option:hover,
.portal-dropdown .Select-option.is-focused,
.portal-dropdown div[class*="option"]:hover {
    background: #555555 !important;
    color: #ffffff !important;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
        flex-direction: column;
    }
    .main-content {
        margin-left: 0;
    }
}

/* ===================================================================
   Sheets Loader Animation (Supply Chain page)
   All classes prefixed with sl- to avoid conflicts
   =================================================================== */
.sl-wrapper {
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.sl-card {
    --bg-color: #2B2B2B;
    background-color: var(--bg-color);
    padding: 1.25rem 2.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sl-loader {
    color: rgba(255, 255, 255, 0.5);
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 25px;
    letter-spacing: 0.02em;
    box-sizing: content-box;
    height: 40px;
    padding: 10px 10px;
    display: flex;
    border-radius: 8px;
}

.sl-loader p {
    margin: 0;
    line-height: 40px;
}

.sl-words {
    overflow: hidden;
    position: relative;
}

.sl-words::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        var(--bg-color, #111) 10%,
        transparent 30%,
        transparent 70%,
        var(--bg-color, #111) 90%
    );
    z-index: 20;
}

.sl-word {
    display: block;
    height: 100%;
    padding-left: 6px;
    color: #C8A055;
    animation: sl_spin 4s infinite;
}

@keyframes sl_spin {
    10% {
        transform: translateY(-102%);
    }
    25% {
        transform: translateY(-100%);
    }
    35% {
        transform: translateY(-202%);
    }
    50% {
        transform: translateY(-200%);
    }
    60% {
        transform: translateY(-302%);
    }
    75% {
        transform: translateY(-300%);
    }
    85% {
        transform: translateY(-402%);
    }
    100% {
        transform: translateY(-400%);
    }
}

/* ===================================================================
   Admin Dashboard Styles
   =================================================================== */

.admin-page-title {
    font-size: 18px;
    font-weight: 700;
    color: #2B2B2B;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #C8A055;
}

.admin-filter-bar {
    background: #FFFFFF;
    border: 1px solid #E8DFD0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(44, 24, 16, 0.07);
}

.admin-filter-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    display: block;
}

.admin-dropdown .Select-control {
    font-size: 12px;
}

.admin-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #E8DFD0;
    border-radius: 6px;
    font-size: 12px;
    color: #2B2B2B;
    background: #FFFFFF;
    outline: none;
    transition: border-color 0.2s;
}

.admin-input:focus {
    border-color: #C8A055;
}

.admin-btn {
    padding: 7px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-btn-primary {
    background: #C8A055;
    color: #FFFFFF;
}

.admin-btn-primary:hover {
    background: #b8903f;
}

.admin-btn-secondary {
    background: #2B2B2B;
    color: #FFFFFF;
}

.admin-btn-secondary:hover {
    background: #444;
}

.admin-kpi-card {
    background: #FFFFFF;
    border: 1px solid #E8DFD0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(44, 24, 16, 0.07);
}

.admin-kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: #2B2B2B;
    line-height: 1.2;
}

.admin-kpi-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.admin-card {
    background: #FFFFFF;
    border: 1px solid #E8DFD0;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(44, 24, 16, 0.07);
}

.admin-info-banner {
    background: rgba(200, 160, 85, 0.1);
    border: 1px solid #C8A055;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #5a4a2a;
    margin-bottom: 16px;
}

.admin-portal-card {
    background: #FFFFFF;
    border: 1px solid #E8DFD0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(44, 24, 16, 0.07);
    transition: box-shadow 0.2s;
}

.admin-portal-card:hover {
    box-shadow: 0 4px 12px rgba(44, 24, 16, 0.12);
}

/* DataTable filter row — white text on dark header */
.dash-spreadsheet .dash-filter input {
    color: #FFFFFF !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 4px;
}

.dash-spreadsheet .dash-filter input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}

.dash-spreadsheet .dash-filter input:focus {
    background-color: rgba(255, 255, 255, 0.18) !important;
    border-color: #C8A055 !important;
    outline: none;
}


/* ===================================================================
   Quick-start Guide page
   =================================================================== */

.guide-hero {
    background: linear-gradient(135deg, #F5F2ED 0%, #EDE6DA 50%, #E8DFD0 100%);
    border-radius: 14px;
    padding: 36px 32px;
    margin-bottom: 24px;
    border: 1px solid #E8DFD0;
}

/* Accordion theming */
.guide-accordion .accordion-item {
    border: 1px solid #E8DFD0;
    margin-bottom: 8px;
    border-radius: 10px !important;
    overflow: hidden;
}

.guide-accordion .accordion-button {
    font-size: 15px;
    font-weight: 600;
    color: #2C1810;
    background: #FFFFFF;
    padding: 16px 20px;
    box-shadow: none !important;
}

.guide-accordion .accordion-button:not(.collapsed) {
    color: #2C1810;
    background: linear-gradient(135deg, #FFFFFF 0%, #FBF7F0 100%);
    border-bottom: 1px solid #E8DFD0;
}

.guide-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: #C8A055;
}

.guide-accordion .accordion-button::after {
    filter: none;
}

.guide-accordion .accordion-body {
    font-size: 13px;
    color: #4A3F35;
    line-height: 1.7;
    padding: 20px 24px;
}

/* Subheadings inside accordion sections */
.guide-subheading {
    color: #2C1810;
    font-weight: 600;
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 12px;
}

/* Body text */
.guide-body-text {
    color: #4A3F35;
    font-size: 13px;
    line-height: 1.7;
}

/* Bullet lists */
.guide-list {
    color: #4A3F35;
    font-size: 13px;
    line-height: 1.8;
    padding-left: 20px;
}

/* Tip callout */
.guide-tip {
    background: rgba(200, 160, 85, 0.1);
    border: 1px solid rgba(200, 160, 85, 0.35);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #5a4a2a;
    margin: 16px 0;
    line-height: 1.6;
}

/* Screenshot/video placeholder */
.guide-placeholder {
    background: rgba(200, 160, 85, 0.06);
    border: 2px dashed rgba(200, 160, 85, 0.3);
    border-radius: 10px;
    padding: 32px 20px;
    margin: 16px 0;
    text-align: center;
}

/* Dashboard overview cards */
.guide-dashboard-card {
    background: #FFFFFF;
    border: 1px solid #E8DFD0;
    border-radius: 10px;
    transition: all 0.25s ease;
    height: 100%;
}

.guide-dashboard-card:hover {
    border-color: #C8A055;
    box-shadow: 0 4px 12px rgba(44, 24, 16, 0.10);
    transform: translateY(-2px);
}

/* Numbered step rows */
.guide-step {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

/* Contact button */
.guide-contact-btn {
    font-size: 13px;
    border-color: #C8A055;
    color: #C8A055;
}

/* ===========================================================================
   Piccadilly Parlour — light "Marshmallow Blue" theme.
   Scoped under .portal-piccadilly (set on #app-shell by a portal-id callback)
   so NO other portal is affected. Tokens: pale-blue sidebar #DCE7F2, accent
   #7FA8D0, slate text #34465A, soft blue-white bg #F4F8FC, card border #E3ECF5.
   =========================================================================== */
/* Sidebar → dark navy with light text */
.portal-piccadilly .sidebar {
    background: #1C2B4A;
    color: #E8EEF6;
}
.portal-piccadilly .sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.portal-piccadilly .sidebar-subtitle {
    color: #9FC0E0;
}
.portal-piccadilly .sidebar-portal-label {
    color: rgba(255, 255, 255, 0.6) !important;
}
.portal-piccadilly .nav-section-label {
    color: rgba(255, 255, 255, 0.78);
}
.portal-piccadilly .nav-section-arrow {
    color: rgba(255, 255, 255, 0.45);
}
.portal-piccadilly .nav-section-header:hover {
    background: rgba(127, 168, 208, 0.16);
}
.portal-piccadilly .nav-link-sidebar {
    color: rgba(255, 255, 255, 0.6) !important;
}
.portal-piccadilly .nav-link-sidebar:hover {
    color: #FFFFFF !important;
    background: rgba(127, 168, 208, 0.18);
}
/* Active item: clearly-visible light-blue pill with dark text */
.portal-piccadilly .nav-link-sidebar.active {
    color: #15233D !important;
    background: #7FA8D0;
    border-left: 3px solid #BFD6EE;
    font-weight: 600;
}
.portal-piccadilly .sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
}
/* Faded items → readable on navy */
.portal-piccadilly .sidebar-user-section {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.portal-piccadilly .sidebar-user-email {
    color: rgba(255, 255, 255, 0.72);
}
.portal-piccadilly .sidebar-logout-btn {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.85);
}
.portal-piccadilly .sidebar-logout-btn:hover {
    background: rgba(127, 168, 208, 0.30);
    color: #FFFFFF;
}
/* Footer "Powered by Cresco" → sits cleanly on navy */
.portal-piccadilly .sidebar-footer {
    background: #16223B;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.portal-piccadilly .powered-text {
    color: rgba(255, 255, 255, 0.55);
}
.portal-piccadilly .cresco-footer-name {
    color: rgba(255, 255, 255, 0.9);
}

/* Main content → soft blue-white */
.portal-piccadilly .main-content {
    background-color: #F4F8FC;
}
.portal-piccadilly .page-title {
    color: #34465A;
}

/* Cards / filter bar / chart containers → light, soft blue borders */
.portal-piccadilly .filter-bar,
.portal-piccadilly .kpi-card,
.portal-piccadilly .chart-container {
    border-color: #E3ECF5;
}
.portal-piccadilly .filter-label,
.portal-piccadilly .kpi-label {
    color: #6B7E90;
}
.portal-piccadilly .kpi-value {
    color: #2A3A4A;
}
.portal-piccadilly .select-all-btn {
    color: #7FA8D0;
}
.portal-piccadilly .select-all-btn:hover {
    color: #5A87B8;
}

/* Date-range picker selected day → blue */
.portal-piccadilly .compact-date-range .CalendarDay__selected,
.portal-piccadilly .compact-date-range .CalendarDay__selected:active,
.portal-piccadilly .compact-date-range .CalendarDay__selected:hover {
    background: #7FA8D0 !important;
    border-color: #7FA8D0 !important;
}
.portal-piccadilly .compact-date-range .CalendarDay__selected_span {
    background: #D6E5F2 !important;
    border-color: #D6E5F2 !important;
    color: #34465A !important;
}

/* DataTable header → pale blue with slate text */
.portal-piccadilly .dash-spreadsheet-container .dash-spreadsheet-inner th {
    background-color: #C9DCEE !important;
    color: #2A3A4A !important;
}