/* =========================================================
   KRADPC MANAGEMENT / OWNER / DEVELOPER DASHBOARD SHELL
   Structural compatibility layer shared by tenant themes.
   Pickle Mania branding is owned by picklemania_theme.
   ========================================================= */


/* ---------------------------------------------------------
   MAIN MANAGEMENT AREA
   --------------------------------------------------------- */

.shell:not(.player-shell){
    background:#f8fafc !important;
    color:#172033 !important;
}

.shell:not(.player-shell) .content{
    background:#f8fafc !important;
}










.shell:not(.player-shell) .dewpoint-logo b{
    color:#c8ff2f !important;
}

.shell:not(.player-shell) .dewpoint-logo i{
    color:#ffd633 !important;
}


/* ---------------------------------------------------------
   TOP DASHBOARD HEADER
   --------------------------------------------------------- */

.shell:not(.player-shell) .content > header{
    background:#fff !important;
    color:#172033 !important;
    border-bottom:1px solid #e5e7eb !important;
}

.shell:not(.player-shell) .content > header small{
    color:#64748b !important;
}


/* ---------------------------------------------------------
   VENUE / COURT NAME UPPER RIGHT
   DEWPOINT LANDING-PAGE ACCENT
   --------------------------------------------------------- */

.shell:not(.player-shell) .content > header b,
.shell:not(.player-shell) .content > header strong{
    color:#65a30d !important;
}

.shell:not(.player-shell) .content > header small:last-child{
    color:#4d7c0f !important;
}


/* ---------------------------------------------------------
   DASHBOARD TITLE AREA
   --------------------------------------------------------- */

/*
 PM_CANONICAL_CMS_HEADING_NAMESPACE_V3

 Dashboard headings use dashboard text color.
 Headings belonging to the simulated website preview
 use their own CMS website theme colors.
 */
.shell:not(.player-shell) .content h1:not(.wcms-site-heading),
.shell:not(.player-shell) .content h2:not(.wcms-site-heading),
.shell:not(.player-shell) .content h3:not(.wcms-site-heading){
    color:#172033;
}


/* ---------------------------------------------------------
   DASHBOARD CARDS
   --------------------------------------------------------- */

.shell:not(.player-shell) .card,
.shell:not(.player-shell) .panel,
.shell:not(.player-shell) .stat-card,
.shell:not(.player-shell) article{
    background:#fff;
}

.shell:not(.player-shell) .owner-dashboard,
.shell:not(.player-shell) .owner-dashboard-redesign{
    background:#f8fafc !important;
}


/* ---------------------------------------------------------
   DEVELOPER MODE
   KEEP ITS OWN LIGHT PURPLE IDENTITY
   --------------------------------------------------------- */

.developer-mode-bar{
    background:
        linear-gradient(
            110deg,
            #f5f3ff,
            #eef2ff
        ) !important;

    border-color:#ddd6fe !important;
}






/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media(max-width:760px){

    .shell:not(.player-shell) .content{
        background:#f8fafc !important;
    }

    .shell:not(.player-shell) .mobile-menu-sheet{
        background:
            linear-gradient(
                180deg,
                var(--dp-sidebar),
                var(--dp-sidebar-2)
            ) !important;

        color:
            var(--kr-sidebar-text) !important;
    }

    .shell:not(.player-shell) .mobile-menu-sheet button{
        color:
            var(--kr-text) !important;
    }

    .shell:not(.player-shell) .mobile-menu-sheet button.active{
        color:
            var(--dp-accent-text) !important;
    }
}

/* =========================================================
   DEWPOINT DASHBOARD THEME PICKER
   ========================================================= */

:root{
    --dp-accent:var(--kr-accent);
    --dp-accent-2:var(--kr-accent-2);
    --dp-accent-soft:var(--kr-accent-soft);
    --dp-accent-text:var(--kr-accent-text);
    --dp-sidebar:var(--kr-sidebar);
    --dp-sidebar-2:var(--kr-sidebar-2);
}









.shell:not(.player-shell) .content > header b,
.shell:not(.player-shell) .content > header strong{
    color:var(--dp-accent-text) !important;
}

.developer-view-switcher button.active{
    background:
        linear-gradient(
            90deg,
            var(--dp-accent),
            var(--dp-accent-2)
        ) !important;
}


/* ---------------------------------------------------------
   THEME PICKER
   --------------------------------------------------------- */

.dewpoint-theme-panel{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:14px 16px;
    margin:0 0 12px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    box-shadow:0 6px 18px rgba(15,23,42,.05);
}

.dewpoint-theme-copy{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.dewpoint-theme-copy strong{
    font-size:12px;
    letter-spacing:.10em;
    color:#111827;
}

.dewpoint-theme-copy small{
    color:#64748b;
    font-size:12px;
}

.dewpoint-theme-options{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}

.dewpoint-theme-options button{
    border:2px solid transparent;
    border-radius:999px;
    padding:8px 12px;
    font-size:11px;
    font-weight:800;
    cursor:pointer;
    background:#f8fafc;
}

.dewpoint-theme-options button.active{
    border-color:#111827;
    box-shadow:0 0 0 2px #fff inset;
}

.dewpoint-theme-options .theme-red{
    background:#dc2626;
    color:#fff;
}

.dewpoint-theme-options .theme-black{
    background:#111827;
    color:#fff;
}

.dewpoint-theme-options .theme-yellow{
    background:#facc15;
    color:#111827;
}

.dewpoint-theme-options .theme-pink{
    background:#ec4899;
    color:#fff;
}

.dewpoint-theme-options .theme-blue{
    background:#2563eb;
    color:#fff;
}

.dewpoint-theme-options .theme-green{
    background:#16a34a;
    color:#fff;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media(max-width:760px){

    .dewpoint-theme-panel{
        align-items:flex-start;
        flex-direction:column;
    }

    .dewpoint-theme-options{
        width:100%;
        flex-wrap:nowrap;
        overflow-x:auto;
        padding-bottom:2px;
    }

    .dewpoint-theme-options button{
        flex:0 0 auto;
    }
}








/* ---------------------------------------------------------
   COLOR BOX PICKER
   --------------------------------------------------------- */

.dewpoint-theme-panel{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:22px;

    margin:0 0 14px;
    padding:16px 18px;

    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;

    box-shadow:
        0 8px 25px rgba(15,23,42,.05);
}

.dewpoint-theme-copy{
    display:flex;
    flex-direction:column;
    gap:4px;

    min-width:160px;
}

.dewpoint-theme-copy strong{
    font-size:12px;
    letter-spacing:.11em;
    color:#111827;
}

.dewpoint-theme-copy small{
    font-size:12px;
    color:#64748b;
}

.dewpoint-theme-options{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:10px;
}

.dewpoint-theme-options .theme-box{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:5px;

    min-width:52px;

    padding:5px;

    border:1px solid transparent;
    border-radius:12px;

    background:transparent;

    cursor:pointer;

    transition:
        transform .15s ease,
        background .15s ease,
        border-color .15s ease;
}

.dewpoint-theme-options .theme-box:hover{
    transform:translateY(-2px);
    background:#f8fafc;
}

.dewpoint-theme-options .theme-box.active{
    background:#f8fafc;
    border-color:#cbd5e1;
}

.theme-swatch{
    display:flex;
    align-items:center;
    justify-content:center;

    width:38px;
    height:38px;

    border-radius:10px;

    color:#fff;

    font-size:18px;
    font-weight:900;

    border:2px solid rgba(255,255,255,.9);

    box-shadow:
        0 0 0 1px rgba(15,23,42,.15),
        0 4px 10px rgba(15,23,42,.12);
}

.dewpoint-theme-options small{
    font-size:9px;
    font-weight:800;
    letter-spacing:.03em;
    color:#475569;
}


/* SWATCH COLORS */

.swatch-red{
    background:#dc2626;
}

.swatch-black{
    background:#111827;
}

.swatch-yellow{
    background:#facc15;
    color:#111827;
}

.swatch-pink{
    background:#ec4899;
}

.swatch-blue{
    background:#2563eb;
}

.swatch-green{
    background:#16a34a;
}

.swatch-purple{
    background:#7c3aed;
}

.swatch-orange{
    background:#f97316;
}

.swatch-teal{
    background:#0d9488;
}

.swatch-cyan{
    background:#06b6d4;
}

.swatch-gray{
    background:#6b7280;
}

.swatch-brown{
    background:#92400e;
}



.shell:not(.player-shell) .content > header b,
.shell:not(.player-shell) .content > header strong{
    color:var(--dp-accent-text) !important;
}

.developer-view-switcher button.active{
    background:
        linear-gradient(
            90deg,
            var(--dp-accent),
            var(--dp-accent-2)
        ) !important;
}


/* MOBILE */

@media(max-width:760px){

    .dewpoint-theme-panel{
        flex-direction:column;
        gap:12px;
    }

    .dewpoint-theme-options{
        justify-content:flex-start;

        width:100%;

        flex-wrap:nowrap;

        overflow-x:auto;

        padding:2px 2px 8px;

        -webkit-overflow-scrolling:touch;
    }

    .dewpoint-theme-options .theme-box{
        flex:0 0 auto;
    }
}

/* =========================================================
   PLAYMEU OWNER DASHBOARD V6 — PHASE 1 CANONICAL SHELL
   Scoped to .owner-shell-v6 so existing Manager/Staff/Admin
   presentation remains unchanged during this phase.
   ========================================================= */
:root{
    --pm-owner-header-h:60px;
    --pm-owner-sidebar-w:248px;
    --pm-owner-sidebar-collapsed-w:72px;
    --pm-owner-navy:#081728;
    --pm-owner-sidebar:#0b1c31;
    --pm-owner-sidebar-2:#09182a;
    --pm-owner-lime:#b8f23c;
    --pm-owner-bg:#f5f7fb;
    --pm-owner-text:#14233a;
    --pm-owner-muted:#718096;
    --pm-owner-line:#e6ebf2;
}

main.shell.owner-shell-v6{
    display:block !important;
    min-height:100vh !important;
    background:var(--pm-owner-bg) !important;
    color:var(--pm-owner-text) !important;
}

main.shell.owner-shell-v6 > .content{
    width:auto !important;
    min-width:0 !important;
    min-height:100vh !important;
    margin:0 0 0 var(--pm-owner-sidebar-w) !important;
    padding:calc(var(--pm-owner-header-h) + 16px) 18px 24px !important;
    background:var(--pm-owner-bg) !important;
    transition:margin-left .2s ease !important;
}

main.shell.owner-shell-v6.owner-shell-collapsed > .content{
    margin-left:var(--pm-owner-sidebar-collapsed-w) !important;
}

main.shell.owner-shell-v6 > .content > header.owner-topbar-v6{
    position:fixed !important;
    z-index:1000 !important;
    inset:0 0 auto 0 !important;
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    width:100% !important;
    height:var(--pm-owner-header-h) !important;
    min-height:var(--pm-owner-header-h) !important;
    margin:0 !important;
    padding:0 14px !important;
    background:var(--pm-owner-navy) !important;
    color:#fff !important;
    border:0 !important;
    border-bottom:1px solid rgba(255,255,255,.06) !important;
    box-shadow:none !important;
}

.owner-topbar-left{display:flex;align-items:center;gap:9px;min-width:286px}
.owner-topbar-menu-toggle,
.owner-topbar-notifications{
    display:grid;place-items:center;width:36px;height:36px;min-width:36px;padding:0;
    border:0;border-radius:8px;background:transparent;color:#fff;font-size:19px;cursor:pointer;
}
.owner-topbar-menu-toggle:hover,.owner-topbar-notifications:hover{background:rgba(255,255,255,.08)}
.owner-topbar-brand{display:flex;align-items:center;gap:9px;padding:0;border:0;background:transparent;color:#fff;text-align:left;cursor:pointer}
.owner-topbar-mark{display:grid;place-items:center;width:35px;height:35px;border-radius:9px;background:var(--pm-owner-lime);color:#10213a;font-size:12px;font-weight:900;letter-spacing:-.04em}
.owner-topbar-brand-copy{display:flex;flex-direction:column;gap:2px}
.owner-topbar-brand-copy b{color:#fff !important;font-size:15px !important;line-height:1.05;font-weight:850}
.owner-topbar-brand-copy small{color:#9eb0c5 !important;font-size:9px !important;line-height:1.2;letter-spacing:.12em;text-transform:uppercase}
.owner-topbar-search{display:flex;align-items:center;gap:9px;width:min(500px,42vw);height:36px;margin-left:12px;padding:0 11px;border:1px solid rgba(255,255,255,.10);border-radius:10px;background:rgba(255,255,255,.05);color:#aab9cb}
.owner-topbar-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#fff;font-size:12px}
.owner-topbar-search input::placeholder{color:#aab9cb}
.owner-topbar-search kbd{margin-left:auto;padding:2px 6px;border:1px solid rgba(255,255,255,.14);border-radius:6px;background:rgba(255,255,255,.05);color:#d4deea;font-size:9px;font-family:inherit}
.owner-topbar-actions{position:relative;display:flex;align-items:center;gap:5px;margin-left:auto}
.owner-topbar-notifications{position:relative;font-size:16px}
.owner-notification-dot{position:absolute;right:7px;top:5px;width:8px;height:8px;border:2px solid var(--pm-owner-navy);border-radius:50%;background:#f24d61}
.owner-profile-menu-v6{position:relative}
.owner-profile-menu-v6 > summary{display:flex;align-items:center;gap:7px;min-height:40px;padding:4px 7px;border-radius:9px;color:#fff;cursor:pointer;list-style:none}
.owner-profile-menu-v6 > summary::-webkit-details-marker{display:none}
.owner-profile-menu-v6 > summary:hover{background:rgba(255,255,255,.08)}
.owner-topbar-avatar{display:grid;place-items:center;width:31px !important;height:31px !important;min-width:31px !important;border-radius:50%;overflow:hidden;background:#1d5cb7;color:#fff;font-size:10px;font-weight:850}
.owner-topbar-owner-copy{display:flex;flex-direction:column;gap:2px;min-width:0;text-align:left}
.owner-topbar-owner-copy b{max-width:180px;color:#fff !important;font-size:11px !important;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.owner-topbar-owner-copy small{max-width:180px;color:#aebdd0 !important;font-size:9px !important;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.owner-topbar-caret{color:#aebdd0;font-size:11px}
.owner-profile-dropdown-v6{position:absolute;top:44px;right:0;width:225px;overflow:hidden;border:1px solid var(--pm-owner-line);border-radius:12px;background:#fff;color:var(--pm-owner-text);box-shadow:0 18px 60px rgba(11,28,49,.22)}
.owner-profile-dropdown-head{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border-bottom:1px solid var(--pm-owner-line)}
.owner-profile-dropdown-head b{color:var(--pm-owner-text) !important;font-size:11px !important}
.owner-profile-dropdown-head small{color:var(--pm-owner-muted) !important;font-size:9px !important}
.owner-profile-dropdown-v6 button{display:flex;align-items:center;gap:9px;width:100%;padding:11px 14px;border:0;background:#fff;color:var(--pm-owner-text);font-size:11px;text-align:left;cursor:pointer}
.owner-profile-dropdown-v6 button:hover{background:#f7f9fc}
.owner-profile-dropdown-v6 button i{width:18px;font-style:normal;text-align:center}
.owner-profile-dropdown-v6 button.danger{color:#b52e44;border-top:1px solid var(--pm-owner-line)}

main.shell.owner-shell-v6 .developer-mode-bar{
    margin:0 0 11px !important;
}

.owner-mobile-overlay-v6{display:none}

@media(max-width:820px){
    main.shell.owner-shell-v6 > .content,
    main.shell.owner-shell-v6.owner-shell-collapsed > .content{
        width:100% !important;
        margin-left:0 !important;
        padding:calc(var(--pm-owner-header-h) + 12px) 12px 22px !important;
    }
    .owner-topbar-left{min-width:auto}
    .owner-topbar-search{display:none}
    .owner-topbar-owner-copy{display:none}
    .owner-mobile-overlay-v6{
        position:fixed;z-index:850;top:var(--pm-owner-header-h);left:0;right:0;bottom:0;
        display:block;border:0;background:rgba(6,17,31,.42);cursor:default;
    }
}

