/* GLOBAL RESET */

* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f0ee;
    color: #20252a;
}

.account-controls {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding-left: 16px;
}

.account-menu-button {
    display: inline-flex;
    max-width: 220px;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: #383e43;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.account-menu-button:hover,
.account-menu-button:focus-visible { background: #454c52; outline: none; }
.account-controls.open .account-menu-button {
    border-color: #ef7d48;
    box-shadow: 0 0 0 2px rgba(219,97,40,.2);
}
.account-menu-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-caret { color: #ef7d48; font-size: 11px; transition: transform .15s ease; }
.account-controls.open .account-menu-caret { transform: rotate(180deg); }

.account-menu {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 8px);
    right: 0;
    width: max-content;
    min-width: 205px;
    padding: 7px;
    border: 1px solid #c9cfd3;
    border-top: 3px solid #db6128;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(15,22,27,.24);
}

.account-menu[hidden] { display: none; }
.account-menu a,
.account-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 10px 11px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #252a30;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
}
.account-menu a:hover,
.account-menu a:focus-visible,
.account-menu button:hover,
.account-menu button:focus-visible {
    background: #f7e8df;
    color: #a94316;
    outline: none;
}
.account-menu-divider { height: 1px; margin: 6px 4px; background: #e1e4e6; }
.account-menu .account-logout { color: #8e3028; }

.shop-notifications { position: relative; margin-left: auto; }
.shop-notifications + .account-controls { margin-left: 0; }
.shop-notification-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: #383e43; color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 750; }
.shop-notifications.open .shop-notification-button, .shop-notification-button:focus-visible { border-color: #ef7d48; outline: none; box-shadow: 0 0 0 2px rgba(219,97,40,.2); }
.shop-notification-badge { min-width: 19px; padding: 2px 5px; border-radius: 20px; background: #db6128; color: #fff; font-size: 11px; text-align: center; }
.shop-notification-menu { position: absolute; z-index: 1001; top: calc(100% + 8px); right: 0; width: min(390px, calc(100vw - 24px)); max-height: 480px; overflow-y: auto; padding: 7px; border: 1px solid #c9cfd3; border-top: 3px solid #db6128; border-radius: 9px; background: #fff; box-shadow: 0 14px 35px rgba(15,22,27,.24); color: #252a30; }
.shop-notification-menu[hidden] { display: none; }
.shop-notification-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px; }
.shop-notification-heading button { border: 0; background: transparent; color: #b84f20; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.shop-notification-item { display: grid; gap: 4px; margin-top: 4px; padding: 10px 11px; border-left: 4px solid #9ba5ac; border-radius: 6px; background: #f5f6f7; color: #252a30; text-decoration: none; }
.shop-notification-item.unread { background: #fff1e9; }
.shop-notification-item.severity-attention { border-left-color: #d38a16; }
.shop-notification-item.severity-critical { border-left-color: #b52f2f; }
.shop-notification-item span, .shop-notification-item small { color: #65707a; }
.shop-notification-item:focus-visible, .shop-notification-item:hover { outline: 2px solid rgba(219,97,40,.35); }
.shop-notification-empty { margin: 0; padding: 16px; color: #65707a; }

@media (max-width: 700px) {
    .account-controls { padding-left: 4px; }
    .account-menu-button { max-width: 150px; }
    .shop-notification-button { font-size: 0; }
    .shop-notification-button::before { content: "Alerts"; font-size: 12px; }
}

.public-login-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 16px;
    background: #db6128;
    border: 1px solid #ef7d48;
    border-radius: 7px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.public-login-link:hover {
    background: #ef6c2f;
}

.nav-login {
    margin-top: 16px;
    border: 1px solid rgba(219, 97, 40, 0.55);
    color: #f28a59;
}


/* SIDEBAR */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 180px;
    height: 100vh;
    background: #2f3438;
    border-right: 1px solid #444;
    border-bottom: 1px solid #3e4348;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.25);
    color: #f1f1f1;
}

.sidebar-inner {
    padding: 50px 14px 20px;
}

.sidebar-brand {
    margin-bottom: 20px;
    color: #db6128;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}


/* SIDEBAR NAVIGATION */

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: block;
    padding: 10px;
    border-radius: 6px;
    color: #6eb6c8;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border 0.15s ease;
}

    .nav-item:hover {
        background: #255258;
        color: #ffffff;
    }

    .nav-item.active {
        padding-left: 7px;
        background: #252d3d;
        border-left: 3px solid #db6128;
        color: #ffffff;
    }


/* APP WRAPPER */

.app {
    min-height: 100vh;
    margin-left: 180px;
    background: #f3f0ee;
}


/* TOP NAVBAR */

.navbar {
    min-height: 60px;
    background: #262a2e;
    border-bottom: 1px solid #3e4348;
}

.navbar-inner {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.navbar-brand {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    color: #db6128;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}

    .navbar-brand::after {
        content: "";
        width: 100%;
        height: 2px;
        margin-top: 4px;
        background: #db6128;
    }


/* PAGE CONTENT */

.page-content {
    padding: 24px 28px 50px 32px;
}

.dashboard-header {
    margin-bottom: 18px;
    padding: 16px 18px;
    background: #f3f0ee;
    border-left: 3px solid #6eb6c8;
    border-bottom: 3px solid #6eb6c8;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


/* DASHBOARD LAYOUT */

.dashboard-page {
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 30px;
    align-items: start;
}

.kpi-grid,
.dashboard-grid,
.module-grid {
    display: grid;
    gap: 20px;
}

.kpi-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* CARDS AND PANELS */

.dashboard-panel,
.kpi-card,
.module-card {
    min-width: 0;
    margin-top: 10px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #cfc6bc;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.10), 0 14px 28px rgba(0, 0, 0, 0.06);
}

    .dashboard-panel > *:first-child,
    .kpi-card > *:first-child,
    .module-card > *:first-child {
        margin-top: 0;
    }

.kpi-card {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kpi-value {
    font-size: 34px;
    font-weight: 700;
}

.kpi-label {
    color: #5e564d;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* TABLET */

@media (max-width: 1000px) {
    .kpi-grid,
    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-page {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


/* MOBILE */

@media (max-width: 760px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        box-shadow: none;
    }

    .sidebar-inner {
        padding: 14px 16px;
    }

    .sidebar-brand {
        margin-bottom: 12px;
    }

    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-item,
    .nav-item.active {
        margin: 0;
        padding: 8px 10px;
        border-left: none;
    }

        .nav-item.active {
            border-bottom: 3px solid #db6128;
        }

    .app {
        margin-left: 0;
    }

    .navbar {
        min-height: 56px;
    }

    .navbar-inner {
        min-height: 56px;
        padding: 10px 16px;
    }

    .page-content {
        padding: 18px 14px 40px;
    }

    .dashboard-header {
        padding: 14px;
    }

    .dashboard-page {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .kpi-grid,
    .dashboard-grid,
    .module-grid {
        grid-column: 1;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dashboard-panel,
    .kpi-card,
    .module-card {
        width: 100%;
        margin-top: 0;
        padding: 18px;
    }
}
/* =========================================================
   LONG SHIFT LANDING PAGE
   Main content only
   ========================================================= */

.page-content {
    padding: 38px 34px 60px;
    min-height: calc(100vh - 60px);
    background: linear-gradient( to bottom, #eef3f3 0%, #e4ecec 50%, #d7e3e4 100% );
}

/* INTRO */

.landing-intro {
    margin-bottom: 28px;
    padding: 28px 30px;
    background: linear-gradient( to right, #e9c9b3 0%, #f1ddd0 48%, #f8eee7 100% );
    border: 1px solid #cfb19d;
    border-radius: 12px;
    box-shadow: 0 5px 14px rgba(64, 42, 28, 0.10);
}

.landing-eyebrow {
    margin: 0 0 8px;
    color: #db6128;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.landing-intro h1 {
    margin: 0 0 10px;
    color: #252a30;
    font-size: 36px;
    line-height: 1.15;
}

.landing-description {
    max-width: 720px;
    margin: 0;
    color: #645d56;
    font-size: 16px;
    line-height: 1.6;
}


/* WORKSPACES */

.workspace-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.workspace-card {
    min-width: 0;
    min-height: 300px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fffdf9;
    border: 1px solid #7f7469;
    border-radius: 10px;
    box-shadow: 0 5px 12px rgba(45, 35, 27, 0.18), 0 14px 28px rgba(45, 35, 27, 0.08);
    color: inherit;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
a.workspace-card:hover {
    transform: translateY(-3px);
    background: #fffaf3;
    box-shadow: 0 8px 18px rgba(58, 44, 31, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
a.workspace-card:focus-visible {
    outline: 3px solid rgba(110, 182, 200, 0.45);
    outline-offset: 3px;
}

.workspace-card-top {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient( to bottom, #dff5f6 0%, #b8e1e4 100% );
    border-bottom: 1px solid #8fc5cb;
}

.workspace-number {
    color: #376b71;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.workspace-status {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

    .workspace-status.available {
        background: #e3ddd4;
        color: #5a5148;
    }

    .workspace-status.planned {
        background: #ddd4ca;
        color: #786f66;
    }

.workspace-card-content {
    flex: 1;
    padding: 30px 22px 24px;
    background: #fffdf9;
}

    .workspace-card-content h2 {
        margin: 0 0 12px;
        color: #2f2b27;
        font-size: 25px;
    }

    .workspace-card-content p {
        margin: 0;
        color: #675e55;
        line-height: 1.55;
    }
.workspace-card-action {
    margin: 0;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eee4d8;
    border-top: 1px solid #b8aa9b;
    color: #b94f1f;
    font-size: 14px;
    font-weight: 800;
}

a.workspace-card:hover .workspace-card-action {
    background: #db6128;
    color: #ffffff;
}

    a.workspace-card:hover .workspace-card-action {
        background: #db6128;
        color: #ffffff;
    }

.workspace-card-disabled {
    background: #c9c5c0;
    border-color: #99938d;
    box-shadow: none;
    opacity: 0.72;
}

    .workspace-card-disabled .workspace-card-content {
        background: #c9c5c0;
    }

    .workspace-card-disabled .workspace-card-top {
        background: #73797e;
    }

    .workspace-card-disabled .workspace-card-action {
        background: #aaa49e;
        color: #625d58;
    }


/* LOWER INFORMATION */

.landing-lower {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.landing-info-panel {
    padding: 22px 24px;
    background: #e8e4e0;
    border-left: 4px solid #db6128;
    border-radius: 8px;
}

.panel-label {
    margin: 0 0 8px;
    color: #db6128;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.landing-info-panel h2 {
    margin: 0 0 9px;
    color: #2c3136;
    font-size: 19px;
}

.landing-info-panel p:last-child {
    margin: 0;
    color: #625c56;
    line-height: 1.5;
}


/* TABLET */

@media (max-width: 1050px) {
    .workspace-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-card-disabled {
        grid-column: 1 / -1;
        min-height: 220px;
    }

        .workspace-card-disabled .workspace-card-content {
            padding-top: 28px;
        }
}


/* MOBILE */

@media (max-width: 760px) {
    .page-content {
        padding: 26px 16px 42px;
    }

    .landing-intro h1 {
        font-size: 30px;
    }

    .workspace-grid,
    .landing-lower {
        grid-template-columns: 1fr;
    }

    .workspace-card,
    .workspace-card-disabled {
        grid-column: auto;
        min-height: 260px;
    }

    .workspace-card-content {
        padding-top: 32px;
    }
}

/* Shared workspace identity: one product name, one module label. */
.app-header .app-brand { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; line-height: 1.05; white-space: nowrap; }
.app-header .app-brand .brand-title { display: block; color: #e66b32; font-size: 22px; font-weight: 800; }
.app-header .app-brand .brand-module { display: block; color: #f5f6f7; font-size: 11px; font-weight: 600; line-height: 1.1; letter-spacing: .01em; }
