/* ==========================================================
   SIMARK ACCOUNT — BEHANCE-INSPIRED PROFILE EXPERIENCE
   This stylesheet is scoped to .account-page.
   ========================================================== */

.account-page {
    --simark-navy: #0b1c32;
    --simark-navy-2: #122d49;
    --simark-gold: #caa65e;
    --simark-gold-light: #ead7ad;
    --simark-ink: #1c2b3e;
    --simark-muted: #788596;
    --simark-line: #e8edf2;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--simark-ink);
    background: #f5f7fa;
    font-family: inherit;
}
.account-page * { box-sizing: border-box; }
.account-page a { text-decoration: none; }

.account-topbar {
    min-height: 82px;
    padding: 12px clamp(20px, 5vw, 76px);
    display: flex;
    align-items: center;
    gap: 28px;
    background: #fff;
    border-bottom: 1px solid #e9edf2;
}
.account-brand { display: flex; align-items: center; }
.account-brand-logo { display: block; width: 178px; max-height: 58px; object-fit: contain; }
.topbar-label { display: flex; flex-direction: column; gap: 4px; padding-left: 25px; border-left: 1px solid #e4e8ed; }
.topbar-label span { color: var(--simark-navy); font-size: 11px; font-weight: 800; letter-spacing: 1.8px; }
.topbar-label small { color: #9aa4b1; font-size: 9px; letter-spacing: 1.25px; }
.back-to-store { margin-left: auto; color: var(--simark-navy); font-size: 12px; font-weight: 750; }
.back-to-store span { color: #b58c43; margin-left: 7px; }

.account-shell { width: min(1180px, calc(100% - 48px)); margin: 48px auto 62px; flex: 1; }
.account-welcome { margin: 0 auto 28px; text-align: center; }
.section-kicker, .form-eyebrow { display: inline-block; color: #b38b45; font-size: 9px; font-weight: 850; letter-spacing: 2px; }
.account-welcome h1 { margin: 10px 0 8px; color: var(--simark-navy); font-size: clamp(28px, 4vw, 39px); letter-spacing: -1.2px; }
.account-welcome p { max-width: 580px; margin: 0 auto; color: var(--simark-muted); font-size: 14px; line-height: 1.7; }

#account-container { position: relative; width: 100%; margin: 0 auto; overflow: hidden; background: #fff; border: 1px solid #e8edf2; border-radius: 14px; box-shadow: 0 16px 48px rgba(17,39,64,.07); }
.auth-card-decoration { height: 4px; background: linear-gradient(90deg, var(--simark-navy), var(--simark-gold), var(--simark-navy)); }
#account-content { min-width: 0; }

.auth-layout { min-height: 510px; display: grid; grid-template-columns: .82fr 1.18fr; }
.auth-aside { position: relative; min-height: 510px; padding: 58px 48px; overflow: hidden; color: #fff; background: linear-gradient(145deg, #09182b, #173b5b); }
.auth-aside::before, .auth-aside::after { content: ""; position: absolute; border: 1px solid rgba(218,184,113,.22); border-radius: 50%; pointer-events: none; }
.auth-aside::before { width: 310px; height: 310px; right: -135px; bottom: -95px; }
.auth-aside::after { width: 220px; height: 220px; right: -90px; bottom: -50px; }
.auth-aside .section-kicker { color: #e2c58c; }
.auth-aside h2 { position: relative; z-index: 1; margin: 23px 0 15px; color: #fff; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; letter-spacing: -1.5px; }
.auth-aside p { position: relative; z-index: 1; max-width: 300px; color: #c3cfdb; font-size: 13px; line-height: 1.9; }
.auth-aside-mark { position: absolute; right: 42px; bottom: 25px; color: rgba(255,255,255,.08); font-size: 120px; font-weight: 900; line-height: 1; }
.auth-aside-mark span { color: rgba(215,181,109,.22); }
.auth-form-panel { width: min(100%, 490px); margin: auto; padding: 48px clamp(28px, 6vw, 72px); }
.auth-form-panel h2 { margin: 9px 0 6px; color: var(--simark-navy); font-size: 29px; letter-spacing: -.7px; }
.form-intro { margin: 0 0 25px; color: var(--simark-muted); font-size: 13px; }
.account-form label { display: block; margin: 16px 0 7px; color: #344357; font-size: 11px; font-weight: 800; }
.account-form input, .account-form select, .account-form textarea {
    display: block; width: 100%; min-height: 47px; padding: 12px 14px; color: #26364a;
    background: #fbfcfd; border: 1px solid #dfe5eb; border-radius: 6px; outline: none;
    font: inherit; font-size: 13px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.account-form input:focus, .account-form select:focus, .account-form textarea:focus { background: #fff; border-color: #c7a15c; box-shadow: 0 0 0 3px rgba(202,166,94,.13); }
.account-form input::placeholder { color: #aab3be; }
.password-field { position: relative; width: 100%; }
.password-field input { padding-right: 70px; }
.password-field .toggle-password { position: absolute; top: 50%; right: 10px; width: auto; min-height: 28px; margin: 0; padding: 4px 7px; color: #8a713f; background: transparent; border: 0; font-size: 10px; font-weight: 800; transform: translateY(-50%); cursor: pointer; }
.primary-account-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 16px; padding: 0 21px; color: #fff; background: var(--simark-navy); border: 1px solid var(--simark-navy); border-radius: 6px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; transition: .2s ease; }
.primary-account-button:hover { color: var(--simark-navy); background: var(--simark-gold-light); border-color: var(--simark-gold-light); transform: translateY(-1px); }
.primary-account-button:disabled { opacity: .6; cursor: wait; transform: none; }
.auth-form-panel .primary-account-button { width: 100%; margin-top: 23px; }
.auth-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--simark-line); color: #7c8795; font-size: 11px; }
.text-action { padding: 0; color: #9b7638; background: none; border: 0; font: inherit; font-weight: 850; cursor: pointer; }
.text-action:hover { text-decoration: underline; }
.account-alert { min-height: 18px; margin: 12px 0 0; color: #667487; font-size: 11px; line-height: 1.6; }
.account-alert.error { color: #b33a45; }
.account-alert.success { color: #28734d; }
.success-panel { max-width: 500px; margin: auto; padding: 70px 30px; text-align: center; }
.success-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 20px; color: #fff; background: #2e8058; border-radius: 50%; font-size: 25px; }
.success-panel h2 { margin: 10px 0; color: var(--simark-navy); font-size: 28px; }
.success-panel p { color: var(--simark-muted); font-size: 13px; line-height: 1.8; }
.success-panel .primary-account-button { margin-top: 18px; }

/* Logged-in customer workspace */
.customer-dashboard { min-height: 640px; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.account-sidebar { display: flex; flex-direction: column; min-height: 640px; padding: 27px 17px 20px; color: #fff; background: linear-gradient(180deg, #0b1c32, #102b46); }
.sidebar-profile { display: flex; align-items: center; gap: 11px; padding: 4px 8px 25px; border-bottom: 1px solid rgba(255,255,255,.12); }
.profile-avatar { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; color: #172b43; background: linear-gradient(145deg, #f0dfbb, #c9a35d); border-radius: 50%; font-size: 13px; font-weight: 900; }
.sidebar-profile-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sidebar-profile-text strong { overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile-text span { color: #aebdcb; font-size: 10px; }
.sidebar-caption { margin: 27px 10px 12px; color: #879bad; font-size: 9px; font-weight: 800; letter-spacing: 1.7px; }
.account-nav { display: grid; gap: 6px; }
.account-nav-link { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #c3cfda; background: transparent; border: 0; border-radius: 5px; text-align: left; font: inherit; font-size: 11px; cursor: pointer; transition: .2s; }
.account-nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.account-nav-link.active { color: #f2dba9; background: rgba(202,166,94,.14); box-shadow: inset 3px 0 #caa65e; }
.nav-icon { width: 18px; color: #d0b276; font-size: 16px; text-align: center; }
.sidebar-bottom { display: grid; gap: 8px; margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-store-link, .logout-link { display: flex; align-items: center; gap: 10px; min-height: 39px; padding: 0 10px; color: #bdc9d4; background: none; border: 0; font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
.sidebar-store-link:hover, .logout-link:hover { color: #f1d79e; }
.logout-link span { color: #d8b979; font-size: 16px; }

.account-workspace { min-width: 0; padding: 37px clamp(22px, 4vw, 48px) 45px; background: #fff; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 25px; border-bottom: 1px solid var(--simark-line); }
.workspace-heading h1 { margin: 8px 0 5px; color: var(--simark-navy); font-size: 27px; letter-spacing: -.7px; }
.workspace-heading p { margin: 0; color: var(--simark-muted); font-size: 11px; line-height: 1.6; }
.workspace-greeting { flex: 0 0 auto; padding: 9px 12px; color: #7d8794; background: #f7f8fa; border-radius: 4px; font-size: 10px; }
.workspace-greeting strong { color: var(--simark-navy); }
.account-tab-content { padding-top: 26px; }
.content-card { padding: 25px; background: #fff; border: 1px solid #e8edf2; border-radius: 8px; box-shadow: 0 5px 18px rgba(16,43,70,.025); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 19px; border-bottom: 1px solid var(--simark-line); }
.card-heading h2 { margin: 7px 0 5px; color: var(--simark-navy); font-size: 18px; }
.card-heading p { margin: 0; color: var(--simark-muted); font-size: 11px; line-height: 1.6; }
.card-heading-icon { width: 35px; height: 35px; display: grid; place-items: center; color: #a98443; background: #faf6ed; border: 1px solid #efe4ce; border-radius: 50%; font-size: 17px; }
.profile-form { padding-top: 7px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { min-width: 0; }
.field-hint { display: block; margin-top: 7px; color: #929dab; font-size: 9px; line-height: 1.5; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 22px; }
.profile-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 17px; padding: 15px 17px; background: #fbf8f1; border: 1px solid #f0e6d2; border-radius: 6px; }
.note-icon { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 19px; color: #8f6e34; border: 1px solid #c8a45f; border-radius: 50%; font-size: 11px; font-weight: 800; }
.profile-note p { margin: 0; color: #7d725d; font-size: 10px; line-height: 1.7; }
.security-card .account-form { max-width: 520px; padding-top: 5px; }
.security-card .form-field { margin-top: 15px; }
.security-card .form-actions { justify-content: flex-start; }
.account-email-card { margin-top: 17px; background: #fafbfd; }
.account-email-card h3 { margin: 8px 0 5px; color: var(--simark-navy); font-size: 15px; }
.account-email-card p { margin: 0; color: var(--simark-muted); font-size: 10px; line-height: 1.7; }

/* Orders */
.orders-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 19px; }
.orders-toolbar h2 { margin: 7px 0 5px; color: var(--simark-navy); font-size: 19px; }
.orders-toolbar p { margin: 0; color: var(--simark-muted); font-size: 11px; }
.outline-account-button { display: inline-flex; align-items: center; gap: 12px; padding: 10px 13px; color: var(--simark-navy); border: 1px solid #d9e0e7; border-radius: 5px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.outline-account-button:hover { border-color: var(--simark-gold); background: #fbf8f1; }
.customer-orders-list { display: grid; gap: 13px; }
.orders-loading { padding: 30px; color: var(--simark-muted); text-align: center; font-size: 12px; }
.customer-order-card { padding: 19px 20px 15px; background: #fff; border: 1px solid #e6ebf0; border-radius: 7px; transition: box-shadow .2s, border-color .2s; }
.customer-order-card:hover { border-color: #d9c49c; box-shadow: 0 7px 22px rgba(16,43,70,.06); }
.order-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-reference-label { color: #9aa4b0; font-size: 8px; font-weight: 800; letter-spacing: 1.4px; }
.order-card-top h3 { margin: 5px 0 0; color: var(--simark-navy); font-size: 15px; }
.order-status { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 30px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.order-status.pending { color: #86611d; background: #fff4dc; }
.order-status.processing { color: #225a82; background: #e6f2fb; }
.order-status.completed { color: #286448; background: #e7f4ec; }
.order-status.cancelled { color: #923e49; background: #fbeaec; }
.order-card-meta { display: flex; gap: 45px; margin-top: 17px; padding: 13px 0; border-top: 1px solid #f0f2f5; border-bottom: 1px solid #f0f2f5; }
.order-card-meta span { display: grid; gap: 5px; }
.order-card-meta small { color: #9aa4b0; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.order-card-meta strong { color: #344357; font-size: 11px; }
.order-product-summary { overflow: hidden; margin: 12px 0; color: #7b8795; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.order-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-card-bottom > span { color: #9aa4b0; font-size: 9px; }
.view-order-details-button { padding: 7px 0; color: #9a773d; background: none; border: 0; font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.view-order-details-button:hover { color: var(--simark-navy); }
.view-order-details-button span { margin-left: 7px; }
.empty-orders { padding: 50px 20px; border: 1px dashed #dfe5eb; border-radius: 8px; text-align: center; }
.empty-orders-icon { color: #c4a365; font-size: 34px; }
.empty-orders h3 { margin: 12px 0 7px; color: var(--simark-navy); font-size: 17px; }
.empty-orders p { margin: 0 0 18px; color: var(--simark-muted); font-size: 11px; }

/* Order detail modal */
.customer-order-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5,15,28,.72); backdrop-filter: blur(4px); }
.customer-order-modal-content { position: relative; width: min(100%, 540px); max-height: 88vh; overflow-y: auto; padding: 32px; background: #fff; border-radius: 10px; box-shadow: 0 25px 80px rgba(0,0,0,.25); }
.close-order-modal { position: absolute; top: 17px; right: 18px; width: 32px; height: 32px; color: #526174; background: #f3f5f7; border: 0; border-radius: 50%; font-size: 21px; cursor: pointer; }
.close-order-modal:hover { color: var(--simark-navy); background: #f2e7d1; }
.customer-order-modal-content h2 { margin: 8px 35px 20px 0; color: var(--simark-navy); font-size: 25px; }
.modal-order-reference { display: grid; gap: 5px; padding: 14px 16px; background: #f7f8fa; border-left: 3px solid var(--simark-gold); }
.modal-order-reference span { color: #99a3af; font-size: 8px; font-weight: 850; letter-spacing: 1.2px; }
.modal-order-reference strong { color: var(--simark-navy); font-size: 14px; }
.modal-order-info { margin: 17px 0; }
.modal-order-info p { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; margin: 0; border-bottom: 1px solid #edf0f3; font-size: 11px; }
.modal-order-info p > span { color: #8a96a4; }
.modal-order-info p > strong { color: #344357; text-align: right; }
.customer-order-modal-content h3 { margin: 22px 0 10px; color: var(--simark-navy); font-size: 13px; }
.order-modal-products { border-top: 1px solid #e9edf1; }
.order-modal-product { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid #edf0f3; color: #536174; font-size: 11px; }
.order-modal-product small { color: #8b96a4; }
.order-modal-product strong { color: var(--simark-navy); white-space: nowrap; }
.order-modal-total { display: flex; justify-content: space-between; gap: 15px; margin-top: 15px; padding-top: 14px; border-top: 2px solid var(--simark-gold); color: var(--simark-navy); font-size: 13px; }
.reorder-button { width: 100%; margin-top: 22px; }

.account-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 21px clamp(20px, 5vw, 76px); color: #aab6c3; background: #0b1c32; font-size: 10px; }
.account-footer a { color: #e0c58e; font-weight: 750; }
.account-footer a:hover { color: #fff; }

@media (max-width: 850px) {
    .customer-dashboard { grid-template-columns: 205px minmax(0, 1fr); }
    .account-sidebar { padding-left: 12px; padding-right: 12px; }
    .account-workspace { padding: 30px 24px 35px; }
    .auth-aside { padding: 48px 32px; }
    .auth-form-panel { padding: 42px 34px; }
}

@media (max-width: 650px) {
    .account-topbar { min-height: 72px; padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
    .account-brand-logo { width: 132px; max-height: 48px; }
    .topbar-label { padding-left: 12px; }
    .topbar-label span { font-size: 9px; letter-spacing: 1px; }
    .topbar-label small { font-size: 7px; letter-spacing: .7px; }
    .back-to-store { font-size: 10px; }
    .account-shell { width: calc(100% - 22px); margin: 28px auto 38px; }
    .account-welcome { margin-bottom: 20px; }
    .account-welcome h1 { font-size: 29px; }
    .account-welcome p { font-size: 12px; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-aside { min-height: 190px; padding: 28px 25px; }
    .auth-aside h2 { margin: 13px 0 8px; font-size: 32px; }
    .auth-aside p { max-width: 360px; margin-bottom: 0; font-size: 11px; }
    .auth-aside-mark { right: 20px; bottom: -1px; font-size: 85px; }
    .auth-form-panel { width: 100%; padding: 31px 24px 35px; }
    .customer-dashboard { display: block; }
    .account-sidebar { min-height: 0; padding: 14px 13px 12px; }
    .sidebar-profile { padding: 0 4px 12px; }
    .profile-avatar { width: 35px; height: 35px; flex-basis: 35px; font-size: 11px; }
    .sidebar-caption { margin: 13px 5px 8px; font-size: 8px; }
    .account-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
    .account-nav-link { min-height: 48px; justify-content: center; flex-direction: column; gap: 3px; padding: 5px 3px; text-align: center; font-size: 8px; }
    .nav-icon { font-size: 14px; }
    .account-nav-link.active { box-shadow: inset 0 -2px #caa65e; }
    .sidebar-bottom { grid-template-columns: 1fr 1fr; margin-top: 10px; padding-top: 8px; }
    .sidebar-store-link, .logout-link { justify-content: center; min-height: 32px; padding: 0 4px; font-size: 9px; }
    .account-workspace { padding: 25px 17px 30px; }
    .workspace-heading { align-items: flex-start; flex-direction: column; padding-bottom: 18px; }
    .workspace-heading h1 { font-size: 23px; }
    .workspace-greeting { display: none; }
    .account-tab-content { padding-top: 18px; }
    .content-card { padding: 18px 15px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .form-actions { justify-content: stretch; }
    .form-actions .primary-account-button { width: 100%; }
    .orders-toolbar { align-items: flex-start; flex-direction: column; }
    .customer-order-card { padding: 15px 13px 12px; }
    .order-card-meta { gap: 25px; }
    .customer-order-modal-content { padding: 27px 18px 20px; }
    .account-footer { flex-direction: column; text-align: center; font-size: 9px; }
}

@media (max-width: 380px) {
    .topbar-label { display: none; }
    .back-to-store { margin-left: auto; }
    .account-nav-link { font-size: 7px; }
    .order-card-meta { gap: 16px; }
}

/* SIMARK CUSTOMER ORDER STATUS POPUP */
.simark-status-popup {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 99999;
    width: min(390px, calc(100% - 30px));
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 19px;
    background: #0b1d35;
    color: #fff;
    border: 1px solid rgba(214, 180, 90, .65);
    border-radius: 13px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .25);
    animation: simarkPopupIn .35s ease;
}

.simark-popup-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #d6b45a;
    color: #071426;
    font-size: 22px;
    font-weight: bold;
}

.simark-popup-content {
    flex: 1;
    min-width: 0;
}

.simark-popup-content strong {
    display: block;
    color: #e4c36e;
    font-size: 14px;
    margin-bottom: 5px;
}

.simark-popup-content p {
    margin: 0 0 4px;
    font-size: 12px;
    color: #fff;
}

.simark-popup-content span {
    font-size: 12px;
    color: #bdc8d7;
}

.simark-popup-close {
    align-self: flex-start;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 23px;
    cursor: pointer;
}

@keyframes simarkPopupIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 550px) {
    .simark-status-popup {
        top: 12px;
        right: 15px;
        width: calc(100% - 30px);
        padding: 15px;
        border-radius: 11px;
    }
}


/* =====================================================
   SIMARK CUSTOMER DASHBOARD — MOBILE FIXED LAYOUT
   Only the active workspace content scrolls.
   Desktop remains unchanged.
   ===================================================== */

@media (max-width: 650px) {

    /* Apply these rules only when the customer is logged in */
    .account-page:has(.customer-dashboard) {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .account-page:has(.customer-dashboard) .account-topbar {
        flex: 0 0 72px;
        min-height: 72px;
    }

    .account-page:has(.customer-dashboard) .account-shell {
        flex: 1;
        min-height: 0;
        height: calc(100dvh - 72px);
        margin: 0 auto;
        display: flex;
        flex-direction: column;
    }

    .account-page:has(.customer-dashboard) .account-welcome,
    .account-page:has(.customer-dashboard) .account-footer {
        display: none;
    }

    .account-page:has(.customer-dashboard) #account-container {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .account-page:has(.customer-dashboard) #account-content {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .account-page:has(.customer-dashboard) .customer-dashboard {
        flex: 1;
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
    }

    /* Keep customer profile and navigation stationary */
    .account-page:has(.customer-dashboard) .account-sidebar {
        min-height: 0;
        overflow: hidden;
    }

    /* Only this workspace area scrolls */
    .account-page:has(.customer-dashboard) .account-workspace {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}


/* =====================================================
   SIMARK CUSTOMER DASHBOARD — DESKTOP FIXED LAYOUT
   Fixed header and sidebar; workspace scrolls.
   ===================================================== */

@media (min-width: 651px) {

    .account-page:has(.customer-dashboard) {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .account-page:has(.customer-dashboard) .account-topbar {
        flex: 0 0 82px;
    }

    .account-page:has(.customer-dashboard) .account-shell {
        flex: 1;
        min-height: 0;
        width: min(1180px, calc(100% - 48px));
        margin: 0 auto;
        display: flex;
        flex-direction: column;
    }

    .account-page:has(.customer-dashboard) .account-welcome,
    .account-page:has(.customer-dashboard) .account-footer {
        display: none;
    }

    .account-page:has(.customer-dashboard) #account-container {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .account-page:has(.customer-dashboard) #account-content {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .account-page:has(.customer-dashboard) .customer-dashboard {
        flex: 1;
        min-height: 0;
        height: 100%;
        grid-template-columns: 248px minmax(0, 1fr);
    }

    /* Fixed customer sidebar */
    .account-page:has(.customer-dashboard) .account-sidebar {
        min-height: 0;
        overflow: hidden;
    }

    /* Only the right workspace scrolls */
    .account-page:has(.customer-dashboard) .account-workspace {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}
