/**
 * Copyright (c) 2026 Mizicart. All rights reserved.
 * Private and confidential source code. Unauthorized use prohibited.
 */

html {
    color-scheme: light;
    --native-safe-top: max(env(safe-area-inset-top, 0px), 32px);
    --native-safe-bottom: env(safe-area-inset-bottom, 0px);
}
html.native-app,
html.partner-native-app {
    /* Android 3-button nav is ~48dp; env(safe-area-inset-bottom) is often 0 in WebView */
    --native-safe-bottom: max(env(safe-area-inset-bottom, 0px), 48px);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f4f6f8;
    color: #1a1a1a;
}

.login-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e8eaf6 0%, #fff8e1 50%, #f4f6f8 100%);
}

.login-screen.is-hidden {
    display: none !important;
    pointer-events: none !important;
}
html.native-app .login-screen {
    padding-top: var(--native-safe-top);
    box-sizing: border-box;
}

.dashboard {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    background: #f4f6f8;
    color: #1a1a1a;
}

.login-box {
    background: #fff;
    color: #111;
    padding: 32px;
    border-radius: 12px;
    width: min(360px, 92vw);
    text-align: center;
    box-shadow: 0 8px 32px rgba(26, 35, 126, 0.12);
}

.login-brand {
    margin: 0 0 16px;
}
.login-brand h1 {
    margin: 0;
    font-size: 0;
    line-height: 0;
}
.partner-app-splash {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: max(env(safe-area-inset-top, 0px), 24px) 20px max(env(safe-area-inset-bottom, 0px), 24px);
    box-sizing: border-box;
}
html.native-app .partner-app-splash,
html.partner-native-app .partner-app-splash {
    display: flex;
}
html.native-app body.partner-splash-on,
html.partner-native-app body.partner-splash-on {
    overflow: hidden;
}
@media (max-width: 900px) {
    .partner-app-splash {
        display: flex;
    }
    body.partner-splash-on {
        overflow: hidden;
    }
}
.partner-splash-thumb {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.partner-splash-thumb img {
    height: auto;
    width: min(86vw, 520px);
    max-width: 86%;
    object-fit: contain;
    display: block;
}
.login-brand-logo {
    display: block;
    height: clamp(34px, 9vw, 44px);
    max-height: 44px;
    max-width: min(210px, 70vw);
    width: auto;
    margin: 0 auto 10px;
    object-fit: contain;
}
.login-portal-sub {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: 700;
}
.login-box h2 { margin: 0 0 4px; }
.partner-server-url-wrap {
    display: block;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
}
.partner-server-url-wrap[hidden] {
    display: none !important;
}
.partner-server-url-wrap input {
    margin-top: 6px;
}
.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #111;
}
.login-box button {
    width: 100%;
    padding: 12px;
    background: #1a237e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}
.login-error {
    color: #c62828;
    font-size: 12px;
    min-height: 0;
    margin: 4px 0 0;
}
.login-error:empty { display: none; }
.login-field-error {
    display: none;
    color: #c62828;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 8px;
    text-align: left;
}
.login-field-error:not(:empty) { display: block; }
.login-box input.is-wrong {
    border-color: #c62828;
    background: #fff5f5;
}
.partner-forgot-link {
    display: inline-block;
    width: 100%;
    margin: 10px 0 4px;
    padding: 0;
    border: 0;
    background: none;
    color: #1565c0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}
.partner-forgot-panel {
    text-align: left;
}
.partner-forgot-panel h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #1a237e;
}
.partner-forgot-panel .partner-forgot-hint {
    margin: 0 0 12px;
    color: #666;
    font-size: 13px;
}
.partner-forgot-panel input,
.partner-forgot-panel .ps-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #111;
}
.partner-forgot-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.partner-forgot-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    background: #1a237e;
    color: #fff;
}
.partner-forgot-btn--secondary {
    background: #eceff1;
    color: #1a237e;
}
.partner-forgot-btn--green {
    background: #2e7d32;
    color: #fff;
}
.login-box .partner-forgot-btn--secondary {
    background: #eceff1;
    color: #1a237e;
}
.login-box .partner-forgot-btn--green {
    background: #2e7d32;
    color: #fff;
}
.login-box .partner-forgot-link {
    background: none;
    color: #1565c0;
    box-shadow: none;
}
.partner-forgot-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 12px 0;
}
.partner-forgot-username {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #e8f5e9;
    color: #1b5e20;
    font-size: 14px;
    font-weight: 700;
    word-break: break-all;
}
.partner-forgot-msg {
    min-height: 18px;
    margin: 8px 0 0;
    font-size: 12px;
    color: #c62828;
}
.partner-forgot-msg.is-ok { color: #2e7d32; }
.partner-forgot-dev {
    margin: 6px 0 0;
    font-size: 12px;
    color: #6a1b9a;
    word-break: break-all;
}
.partner-forgot-panel--settings {
    max-width: 420px;
}
.partner-forgot-panel--settings .partner-forgot-btn,
.partner-forgot-panel--settings input {
    max-width: 420px;
}

.partner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #1a237e;
    color: #fff;
}
.partner-header h1 { margin: 0; font-size: 20px; color: #fff; }
.partner-header p { margin: 4px 0 0; font-size: 12px; opacity: 0.85; color: #fff; }
.logout-btn {
    background: #eceff1;
    border: 1px solid #90a4ae;
    color: #111;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.partner-nav {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}
.partner-nav button {
    background: #f5f5f5;
    border: 1px solid #c5cae9;
    color: #1a237e;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
}
.partner-nav button.active { background: #ffd700; color: #111; border-color: #ffd700; }
.partner-nav button.hidden { display: none; }

.partner-overview-edit-nav-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eceff1;
    width: 100%;
}
/* Left: nav chips. Do NOT use width:100% — that pushed Request to next line. */
.partner-nav--inline {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    min-width: 0;
    width: auto;
}
/* Same line, far right; same height as Overview / Orders / Catalog */
.partner-nav-catreq-btn {
    margin-left: auto;
    flex: 0 0 auto;
    align-self: center;
    background: #1565c0;
    border: 1px solid #0d47a1;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
    box-sizing: border-box;
    white-space: nowrap;
}
.partner-nav-catreq-btn:hover {
    background: #1976d2;
    border-color: #1565c0;
    color: #fff;
}

.partner-main { padding: 20px; color: #1a1a1a; }
.partner-section h2 { margin-top: 0; color: #1a1a1a; }
#section-orders .partner-orders-title {
    margin: 0 0 12px;
    text-align: left;
}
.partner-trend-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    box-sizing: border-box;
}
.partner-trend-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.partner-trend-card h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #111;
}
.partner-trend-period {
    font-size: 11px;
    font-weight: 800;
    color: #546e7a;
}
.partner-trend-plot {
    position: relative;
    margin-top: 10px;
    max-height: 196px;
    padding: 8px 36px 0 4px;
    box-sizing: border-box;
    overflow: hidden;
}
.partner-trend-svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    overflow: visible;
    z-index: 2;
}
.partner-trend-plot.is-up { color: #2e7d32; }
.partner-trend-plot.is-down { color: #c62828; }
.partner-trend-plot.is-flat { color: #f9a825; }
.partner-trend-chart {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    height: 176px;
    max-height: 176px;
    overflow: visible;
    position: relative;
    z-index: 1;
}
.partner-trend-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.partner-trend-track {
    flex: 0 0 112px;
    width: 100%;
    height: 112px;
    max-height: 112px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 36px;
    box-sizing: border-box;
    overflow: hidden;
}
.partner-trend-bar {
    width: 28px;
    height: 0;
    max-height: 100%;
    min-height: 6px;
    border-radius: 7px 7px 2px 2px;
    box-sizing: border-box;
    background: #90a4ae;
}
.partner-trend-bar-name {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    color: #111;
    text-align: center;
    white-space: nowrap;
}
.partner-trend-pct {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    color: #111;
    text-align: center;
    white-space: nowrap;
}
.partner-trend-col.is-orders .partner-trend-bar { background: #1a237e; }
.partner-trend-col.is-orders .partner-trend-pct { color: #1a237e; }
.partner-trend-col.is-sales .partner-trend-bar { background: #f9a825; }
.partner-trend-col.is-sales .partner-trend-pct { color: #f57f17; }
.partner-trend-col.is-delivered .partner-trend-bar { background: #2e7d32; }
.partner-trend-col.is-delivered .partner-trend-pct { color: #2e7d32; }
.partner-trend-col.is-cancelled .partner-trend-bar { background: #c62828; }
.partner-trend-col.is-cancelled .partner-trend-pct { color: #c62828; }
.partner-trend-col.is-returns .partner-trend-bar { background: #ef6c00; }
.partner-trend-col.is-returns .partner-trend-pct { color: #ef6c00; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
#partner-stats.stat-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
#partner-stats .stat-card.hidden,
#partner-stats .stat-card[hidden] { display: none !important; }
@media (max-width: 1100px) {
    #partner-stats.stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    #partner-stats.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.stat-card h4 { margin: 0 0 8px; font-size: 12px; color: #111; font-weight: 800; }
.stat-card p { margin: 0; font-size: 24px; font-weight: 900; color: #1a237e; }
.stat-card p.is-zero { color: #111; }
.stat-card p.is-pending { color: #c62828; }
.stat-card--click {
    cursor: pointer;
    text-align: left;
    font: inherit;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.stat-card--click:hover {
    border-color: #ffd700;
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.08);
}
.stat-card-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #546e7a;
    font-weight: 600;
}
html, body, .partner-main, #section-overview { overflow-anchor: none; }
#partner-stock-alerts,
#partner-overview-analytics,
#partner-overview-ratings {
    min-height: 260px;
}
.partner-overview-mini-filters {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
}
.partner-overview-mini-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #c5cae9;
    border-radius: 999px;
    background: #fff;
    color: #1a237e;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}
.partner-overview-mini-filter:hover {
    border-color: #1a237e;
}
.partner-overview-mini-filter.is-active {
    background: #1a237e;
    border-color: #1a237e;
    color: #fff;
}
.partner-overview-mini-ico {
    display: inline-flex;
    width: 16px;
    height: 16px;
}
.partner-overview-mini-ico svg { display: block; }
.partner-stock-alerts--analytics {
    border-color: #e0e0e0;
    border-left-color: #111;
}
.partner-overview-ratings-period {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
    margin: 10px 0 8px;
}
.partner-overview-ratings-period[hidden] {
    display: none !important;
}
.partner-overview-period-btn {
    border: 1px solid #c5cae9;
    background: #fff;
    color: #1a237e;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
}
.partner-overview-period-btn:hover { border-color: #1a237e; }
.partner-overview-period-btn.is-active {
    background: #1a237e;
    border-color: #1a237e;
    color: #fff;
}
.partner-stock-alerts--ratings {
    border-color: #ffb74d;
    border-left-color: #f9a825;
}

.catalog-hint { font-size: 12px; color: #607d8b; margin: 0 0 12px; }
.partner-catalog-wrap { overflow-x: auto; }
.partner-catalog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}
.partner-catalog-table th,
.partner-catalog-table td {
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
    text-align: left;
    color: #1a1a1a;
}
.partner-catalog-table th { background: #e8eaf6; color: #1a237e; font-size: 11px; text-transform: uppercase; }
.partner-catalog-table tr:nth-child(even) { background: #fafafa; }
.partner-catalog-photo-cell {
    width: 148px;
    min-width: 132px;
    max-width: 168px;
    vertical-align: middle;
    padding: 8px;
}
.partner-catalog-photo {
    width: 132px;
    height: auto;
    min-height: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    overflow: visible;
    display: block;
    line-height: 0;
}
.partner-catalog-photo img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
    display: block;
}
.partner-catalog-photo--empty {
    height: 132px;
    font-size: 28px;
    line-height: 132px;
    text-align: center;
    background: #fffde7;
}
.partner-catalog-price-cell {
    white-space: nowrap;
    font-weight: 700;
    color: #111;
}
.partner-catalog-stock-cell {
    white-space: nowrap;
}
.partner-stock-left {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #1a237e;
    font-weight: 700;
}
.partner-stock-left-num { font-size: 16px; }
.partner-stock-left small { font-size: 11px; font-weight: 700; color: #546e7a; }
.partner-stock-left--low,
.partner-stock-left--low .partner-stock-left-num,
.partner-stock-left--low small {
    color: #c62828;
}
.partner-live-in-cell {
    font-size: 13px;
    font-weight: 600;
    color: #37474f;
    white-space: normal;
}
.partner-live-in-names {
    color: #111;
    font-weight: 600;
}
.partner-catalog-act-cell {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
}
.partner-catalog-table .partner-catalog-act-cell .partner-stock-btn,
.partner-catalog-table .partner-catalog-act-cell .partner-gallery-btn,
.partner-catalog-table .partner-catalog-act-cell .partner-hide-btn,
.partner-catalog-table .partner-catalog-act-cell .partner-edit-btn {
    margin: 0;
    min-width: 72px;
    display: inline-block;
}
.partner-catalog-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.partner-catalog-head-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.partner-add-product-btn { font-size:13px; padding:8px 14px; }
.partner-wallet-cards {
    --partner-wallet-chip-cols: 7;
    display: grid;
    grid-template-columns: repeat(var(--partner-wallet-chip-cols), minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 8px;
    margin: 12px 0 8px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}
.partner-wallet-card {
    display: block;
    width: 100%;
    min-width: 0;
    text-align: left;
    font-family: inherit;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    cursor: pointer;
}
.partner-wallet-card h4 {
    margin: 0 0 4px;
    font-size: 10px;
    color: #607d8b;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.partner-wallet-card p { margin: 0; font-size: 18px; font-weight: 800; color: #1a237e; }
.partner-wallet-card small {
    display: block;
    margin-top: 6px;
    color: #546e7a;
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
}
.partner-wallet-card--pack small { color: #1565c0; }
.partner-wallet-card--recovery small { color: #e64a19; }
.partner-wallet-card--recovery p { color: #c62828; }
.partner-wallet-card--total { border: 1px solid #ffd700; }
.partner-wallet-card.is-active {
    border: 2px solid #f9a825;
    background: #fffde7;
}
.partner-wallet-panel { margin-top: 8px; }
.partner-wallet-panel h3 { margin: 8px 0 10px; font-size: 16px; color: #1a237e; }
.partner-wallet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: flex-start;
    justify-content: space-between;
    margin: 16px 0;
}
.partner-wallet-actions-left {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}
.partner-wallet-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 200px;
}
.partner-wallet-btn {
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    padding: 12px 22px;
    border-radius: 24px;
    cursor: pointer;
}
.partner-wallet-btn--bank { background: #1565c0; }
.partner-wallet-btn--payout { background: #2e7d32; }
.partner-wallet-action-note {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #546e7a;
}
.partner-wallet-payout-row { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; margin:14px 0; }
.partner-wallet-payout-row label { flex:1; min-width:180px; font-size:12px; color:#1a1a1a; }
.partner-wallet-payout-row input { width:100%; padding:8px; margin-top:4px; border-radius:6px; border:1px solid #c5cae9; background:#fff; color:#111; }
.partner-statement {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #e0e4ea;
}
.partner-statement-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.partner-statement-head h3 {
    margin: 0;
    font-size: 16px;
    color: #1a237e;
}
.partner-statement-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    margin-left: auto;
}
#partner-statement-body {
    min-height: 280px;
}
#partner-statement-body.is-loading {
    opacity: 0.55;
    pointer-events: none;
}
.partner-statement-range {
    font-size: 12px;
    font-weight: 700;
    color: #546e7a;
    margin: 0 0 10px;
}
.partner-statement-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px;
}
.partner-statement-kpi {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 8px;
}
.partner-statement-kpi span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #666;
}
.partner-statement-kpi strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    color: #1a237e;
}
.partner-statement-kpi small {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: #78909c;
}
.partner-statement-table { margin-top: 4px; }
@media (max-width: 1100px) {
    .partner-statement-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .partner-statement-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.partner-desk-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
}
.partner-desk-head h2 {
    margin: 0;
    font-size: 20px;
    color: #1a237e;
}
.partner-desk-body {
    max-width: 960px;
    width: 100%;
}
#section-product-form .partner-desk-body {
    max-width: none;
    width: 100%;
}
#section-product-stock .partner-desk-body,
#section-product-gallery .partner-desk-body {
    max-width: 1100px;
}
.partner-add-card-page {
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none;
    border: 1px solid #e0e0e0;
    padding: 18px 20px 28px;
    border-radius: 12px;
    background: #fff;
}
.partner-add-channel-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px;
    border: 1px solid #c5cae9;
    border-radius: 10px;
    background: #f8f9ff;
}
.partner-add-channel-row--channels-only {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.partner-add-channel-opt {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 10px 12px;
    border: 1px solid #dce3f5;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    color: #1a237e;
    cursor: pointer;
    min-height: 44px;
}
.partner-add-channel-opt[hidden] {
    display: none !important;
}
.partner-add-channel-opt input {
    width: auto !important;
    margin: 0 !important;
    flex-shrink: 0;
}
.partner-add-channel-opt span {
    line-height: 1.2;
}
.partner-add-cat-row {
    margin: 0 0 12px;
}
.partner-add-cat-row-4,
.partner-add-cat-cascade {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
    align-items: start;
}
.partner-add-cat-levels-host {
    display: contents;
}
.partner-add-cat-cascade > input[type="hidden"],
.partner-add-cat-cascade > span[hidden] {
    display: none !important;
}
.partner-add-cat-cascade .partner-add-cat-col {
    flex: 1 1 160px;
    min-width: 140px;
    max-width: 220px;
}
.partner-add-cat-col label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #37474f;
}
.partner-add-cat-col select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #c5cae9;
    background: #fff;
    color: #111;
    font-family: inherit;
}
.partner-add-cat-col select:disabled {
    background: #f5f5f5;
    color: #90a4ae;
}
.partner-add-cat-photo-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}
.partner-add-cat-photo-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 88px;
    padding: 10px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
}
.partner-add-cat-photo-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
}
.partner-add-cat-photo-empty {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fafafa;
    border: 1px dashed #cfd8dc;
    color: #90a4ae;
    font-size: 22px;
}
.partner-add-cat-photo-name {
    font-size: 11px;
    font-weight: 700;
    color: #37474f;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 900px) {
    .partner-add-channel-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .partner-add-cat-photo-row {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 520px) {
    .partner-add-channel-row {
        grid-template-columns: 1fr;
    }
    .partner-add-cat-cascade > .partner-add-cat-col,
    .partner-add-cat-levels-host .partner-add-cat-col {
        flex: 1 1 100%;
        max-width: none;
    }
    .partner-add-cat-photo-row {
        grid-template-columns: 1fr;
    }
}
.partner-variant-box {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #c5cae9;
    border-radius: 10px;
    background: #f5f7ff;
}
.partner-variant-box > .partner-variant-title {
    margin: 0 0 6px;
    font-weight: 800;
    color: #1a237e;
    font-size: 14px;
}
.partner-size-unit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 10px 14px;
    align-items: start;
    margin: 0 0 8px;
}
.partner-size-unit-sizes > label,
.partner-size-unit-unit > label,
.partner-size-custom-row > label,
.partner-size-unit-add > label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #37474f;
    line-height: 1.2;
    min-height: 1.2em;
}
.partner-add-size-chart-hint {
    margin: 0 0 8px !important;
    font-size: 11px !important;
    color: #1565c0 !important;
    font-weight: 600;
}
.partner-size-ticks--grouped {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.partner-size-group {
    padding: 10px 10px 8px;
    border: 1px solid #e3e8f5;
    border-radius: 8px;
    background: #fafbff;
}
.partner-size-group-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    color: #1a237e;
}
.partner-size-group-ticks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.partner-size-add-spacer {
    visibility: hidden;
    user-select: none;
}
.partner-size-ticks-box {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #c5cae9;
    background: #fff;
    box-sizing: border-box;
}
.partner-size-ticks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}
#partner-add-size-extra-ticks:not(:empty),
#partner-add-color-extra-ticks:not(:empty) {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
}
.partner-colour-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
    display: inline-block;
}
.partner-colour-block {
    margin-top: 14px;
}
.partner-colour-block > label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #37474f;
}
.partner-colour-other-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 10px 14px;
    align-items: start;
    margin-top: 10px;
}
.partner-colour-other-input > label,
.partner-colour-other-add > label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #37474f;
    line-height: 1.2;
    min-height: 1.2em;
}
.partner-colour-other-input input {
    width: 100%;
}
@media (max-width: 720px) {
    .partner-size-unit-row,
    .partner-colour-other-row {
        grid-template-columns: 1fr;
    }
    .partner-size-add-spacer {
        display: none;
    }
}
.partner-size-tick {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0;
    background: transparent !important;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
}
.partner-size-tick input {
    width: auto !important;
    margin: 0 !important;
}
.partner-size-custom-row {
    margin-top: 0;
}
.partner-size-custom-row input[type="text"],
.partner-size-unit-unit select {
    width: 100%;
}
.partner-size-unit-add {
    margin-top: 0;
}
.partner-size-add-btn {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: #ffd700;
    color: #111;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}
@media (max-width: 720px) {
    .partner-size-unit-row {
        grid-template-columns: 1fr;
    }
    .partner-size-add-spacer {
        display: none;
    }
}
.partner-gallery-options-box {
    margin: 14px 0;
    padding: 14px;
    border: 1px dashed #1565c0;
    border-radius: 10px;
    background: #e3f2fd;
}
.partner-gallery-options-box strong {
    display: block;
    margin: 0 0 6px;
    color: #0d47a1;
}
.partner-add-inline-gallery {
    margin: 10px 0 16px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}
.partner-add-inline-gallery .pg-photo-grid {
    margin-top: 0;
}
.partner-add-card .partner-add-gallery-section-title,
.partner-add-gallery-section-title {
    display: block !important;
    margin: 10px 0 8px !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #37474f !important;
    text-align: left !important;
    line-height: 1.3 !important;
}
.partner-add-gallery-row-7,
.pg-photo-grid.partner-add-gallery-row-7 {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
}
.partner-add-gallery-row-7 .pg-slot,
.partner-add-gallery-row-7 .partner-add-gcard {
    flex: none;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
.partner-add-gallery-row-7 .pg-slot-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #0d47a1;
    margin: 0 0 6px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.partner-add-gallery-row-7 .pg-slot,
.partner-add-gallery-row-7 .partner-add-gcard {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.partner-add-gallery-row-7 .pg-slot-preview {
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
}
.partner-add-gallery-row-7 .pg-slot-thumb,
.partner-add-gallery-row-7 .pg-slot-video {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.partner-add-gcard-tick,
.partner-add-card .partner-add-gcard-tick,
.pg-slot-actions .partner-add-gcard-tick {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 !important;
    font-size: 11px;
    font-weight: 700;
    color: #1565c0;
    cursor: pointer;
    flex-shrink: 0;
}
.partner-add-gcard-tick[hidden] { display: none !important; }
.partner-add-gcard-tick input { width: 14px !important; height: 14px !important; }
.partner-add-min-qty-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 10px 0 4px;
}
.partner-add-min-qty-row label {
    margin: 0;
    font-weight: 700;
    font-size: 13px;
    color: #1a2b4a;
}
.partner-add-min-qty-row input {
    width: 88px;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #c5d0e0;
    border-radius: 8px;
}
.partner-add-stock-simple input {
    width: 120px;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #c5d0e0;
    border-radius: 8px;
}
.partner-add-stock-matrix-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
#partner-add-price-defaults-wrap[hidden] {
    display: none !important;
}
/* removed global Listing/Selling/Discount row — prices only in stock matrix */
.partner-add-fill-prices-btn {
    border: 1px solid #c5d0e0;
    background: #fff;
    color: #1a2b4a;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.partner-add-fill-prices-btn:hover {
    border-color: #f9a825;
    background: #fffde7;
}
.partner-add-stock-size-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.partner-add-stock-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 108px;
}
.partner-add-stock-cell-label {
    font-size: 12px;
    font-weight: 700;
    color: #1a2b4a;
}
.partner-add-stock-cell input {
    width: 72px;
    padding: 6px 8px;
    border: 1px solid #c5d0e0;
    border-radius: 8px;
}
.partner-add-stock-cell-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 96px;
}
.partner-add-stock-mini {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
    font-weight: 600;
    color: #5a6a82;
    text-align: left;
}
.partner-add-stock-mini input {
    width: 88px;
    padding: 4px 6px;
    border: 1px solid #c5d0e0;
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
}
.partner-add-stock-table-wrap {
    overflow-x: auto;
    margin-top: 6px;
}
.partner-add-stock-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 320px;
}
.partner-add-stock-table--priced {
    min-width: 480px;
}
.partner-add-stock-table--lines {
    min-width: 560px;
}
.partner-add-stock-table th,
.partner-add-stock-table td {
    border: 1px solid #e0e6ef;
    padding: 6px 8px;
    text-align: center;
    font-size: 13px;
    vertical-align: middle;
}
.partner-add-stock-table th {
    background: #f5f8fc;
    font-weight: 700;
}
.partner-add-stock-table td.partner-add-stock-color,
.partner-add-stock-table .partner-add-stock-color {
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
    background: #fafbfd;
}
.partner-add-stock-metric {
    text-align: left !important;
    font-size: 12px !important;
    font-weight: 600;
    color: #5a6a82;
    white-space: nowrap;
    min-width: 110px;
    background: #fcfdff;
}
.partner-add-stock-line-input {
    width: 84px !important;
    padding: 5px 6px !important;
    border: 1px solid #c5d0e0 !important;
    border-radius: 6px !important;
    text-align: center !important;
    font-size: 12px !important;
}
.partner-add-stock-metric-row:nth-child(4n) td {
    border-bottom-width: 2px;
    border-bottom-color: #cfd8e6;
}
.partner-add-stock-table input {
    width: 64px;
    padding: 5px 6px;
    border: 1px solid #c5d0e0;
    border-radius: 6px;
    text-align: center;
}
.partner-add-stock-table .partner-add-stock-mini input {
    width: 84px;
}
.partner-add-stock-total {
    margin: 8px 0 0;
}
.partner-gallery-colour-tab {
    border: 1px solid #c5d0e0;
    background: #fff;
    color: #1a2b4a;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.partner-gallery-colour-tab.is-active {
    border-color: #f9a825;
    background: #ffeb3b;
    color: #5d4037;
}
.partner-gallery-colour-tab:hover {
    border-color: #fbc02d;
}
.partner-gallery-colour-main {
    margin-left: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #b71c1c;
}
.partner-category-request-block {
    max-width: 640px;
}
.product-gallery-page .pg-photo-grid,
.product-stock-page .ps-stock-table {
    margin-top: 8px;
}
.product-gallery-page .pg-close-btn,
.product-stock-page .ps-actions .ps-close-btn {
    display: none;
}

.partner-ship-package-card {
    max-width: 560px;
    width: 100%;
}
.partner-pack-book-panel.partner-ship-package-card {
    max-width: none;
}
.partner-ship-courier-host {
    max-height: none;
    overflow: auto;
    border: 1px solid #c5cae9;
    border-radius: 8px;
    background: #fff;
}
.partner-ship-courier-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 8px 10px;
    border-bottom: 1px solid #eceff1;
    font-weight: 600;
    cursor: pointer;
}
.partner-ship-courier-row:last-child { border-bottom: 0; }
.partner-ship-courier-name { flex: 1 1 auto; }
.partner-ship-courier-inr { flex: 0 0 auto; font-weight: 800; }
.partner-ship-courier-eta { flex: 0 0 auto; color: #546e7a; font-size: 12px; }
.partner-ship-package-card label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin: 8px 0 4px;
    color: #37474f;
}
.partner-ship-package-card input[type="number"] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #c5cae9;
    box-sizing: border-box;
}
.partner-add-card { background:#fff; color:#111; border-radius:12px; padding:16px; width:min(100%,420px); max-height:90vh; overflow-y:auto; box-shadow: 0 12px 40px rgba(0,0,0,0.18); }
.partner-add-card-wide { width:min(100%,480px); }
.partner-add-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
#partner-add-tax-row[hidden] {
    display: none !important;
}
.partner-add-tax-gst-hint {
    margin: 0 0 8px;
    font-size: 11px;
    color: #546e7a;
    grid-column: 1 / -1;
}
.partner-add-grid.partner-add-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 640px) {
    .partner-add-grid.partner-add-grid-3 {
        grid-template-columns: 1fr;
    }
}
.partner-add-grid.partner-add-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
@media (max-width: 720px) {
    .partner-add-grid.partner-add-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}
.partner-listing-policy-box {
    margin: 12px 0 10px;
    padding: 12px;
    border: 1px solid #e8eaf6;
    border-radius: 10px;
    background: #f7fbff;
}
.partner-listing-policy-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.partner-listing-policy-cell {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    padding: 8px;
    border: 1px solid #c5cae9;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
}
.partner-listing-policy-cell input {
    margin-top: 2px;
    flex: 0 0 auto;
}
.partner-listing-open-box-note {
    margin: 8px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ffe082;
    background: #fff8e1;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.partner-open-box-ad-row {
    margin-top: 12px;
}

.partner-open-box-ad-row input[readonly] {
    background: #f7fbff;
    cursor: default;
}

@media (max-width: 720px) {
    .partner-listing-policy-row {
        grid-template-columns: 1fr 1fr;
    }
}
.partner-secure-pack-box {
    margin: 12px 0 10px;
    padding: 12px;
    border: 1px solid #e8eaf6;
    border-radius: 10px;
    background: #fffdf5;
}
.partner-secure-pack-fields label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #37474f;
}
.partner-secure-pack-fields input[type="number"] {
    width: 100%;
    max-width: 280px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #c5cae9;
    background: #fff;
    color: #111;
    box-sizing: border-box;
}
.partner-secure-pack-fields small.partner-muted {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
}
.partner-secure-pack-tick {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 0 !important;
    font-size: 12px;
    font-weight: 700;
    color: #37474f;
    cursor: pointer;
}
.partner-secure-pack-tick input {
    width: auto !important;
    margin-top: 2px;
}
.partner-add-highlights-block {
    margin: 12px 0 4px;
    padding: 12px 12px 10px;
    border: 1px solid #e8eaf6;
    border-radius: 10px;
    background: #fafbff;
}
.partner-add-hl-head {
    margin: 0 0 10px;
}
.partner-add-hl-title {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #1a237e;
    line-height: 1.25;
}
.partner-add-hl-head small.partner-muted {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
}
.partner-add-highlights-block label {
    margin-top: 0;
}
.partner-add-hl-points-label {
    display: block;
    margin: 12px 0 6px;
    font-size: 12px;
    font-weight: 700;
}
.partner-add-hl-points-row input {
    width: 100%;
    box-sizing: border-box;
}
.partner-add-hl-row input[readonly] {
    background: #f0f2f8;
    color: #333;
    cursor: default;
}
.partner-add-highlights-block small.partner-muted {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
}
.partner-add-all-details {
    margin: 14px 0 8px;
    padding: 12px 12px 14px;
    border: 1px solid #e0e4f0;
    border-radius: 10px;
    background: #fcfcfe;
}
.partner-add-all-details .partner-add-hl-title {
    color: #1a237e;
}
.partner-add-all-details > label {
    display: block;
    margin-top: 10px;
}
.partner-add-all-details > label:first-of-type {
    margin-top: 8px;
}
.partner-add-all-details textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 72px;
    resize: vertical;
}
.partner-add-ad-subhead {
    margin: 14px 0 6px;
    font-size: 12px;
    font-weight: 800;
    color: #111;
}
.partner-add-all-details #partner-add-specs-fields {
    display: block;
}
.partner-spec-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.partner-spec-field--span {
    grid-column: auto;
}

.partner-spec-field[hidden] {
    display: none !important;
}
.partner-extra-details {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}
.partner-extra-details-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 10px;
    margin-bottom: 8px;
}
.partner-extra-details-inline-hint {
    font-weight: 500;
    font-size: 11px;
    line-height: 1.35;
    max-width: 100%;
}
.partner-add-size-guide-wrap {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #e8eaf6;
    border-radius: 10px;
    background: #fafbff;
}
.partner-set-pieces {
    margin-top: 12px;
}
.partner-set-piece {
    margin-top: 10px;
}
.partner-set-piece-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.partner-set-piece-add {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.partner-set-piece-add input,
.partner-set-piece-add select {
    min-height: 32px;
}
.partner-add-size-guide-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.partner-add-size-guide-head .partner-add-gallery-section-title {
    margin: 0;
}
#partner-sg-unit {
    min-width: 88px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #c5cae9;
    padding: 0 8px;
    font-weight: 600;
}
.partner-sg-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 8px;
}
.partner-sg-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 12px;
}
.partner-sg-table th,
.partner-sg-table td {
    border: 1px solid #e0e0e0;
    padding: 6px;
    text-align: center;
}
.partner-sg-table thead th {
    background: #eef1ff;
    font-weight: 700;
    color: #1a237e;
}
.partner-sg-table tbody th {
    background: #f7f7f7;
    font-weight: 700;
    white-space: nowrap;
}
.partner-sg-table input {
    width: 100%;
    min-width: 52px;
    max-width: 72px;
    height: 34px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
    box-sizing: border-box;
}
#partner-add-extra-btn,
#partner-edit-extra-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 42px;
    margin-top: 10px;
    padding: 10px 20px;
    border: 1px solid #e6c200;
    border-radius: 10px;
    background: #FFD700;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    box-sizing: border-box;
}
#partner-add-extra-btn:hover,
#partner-edit-extra-btn:hover {
    background: #ffdf33;
    border-color: #d4b800;
}
#partner-add-extra-btn:active,
#partner-edit-extra-btn:active {
    background: #f0c800;
}
.partner-extra-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: end;
    margin-bottom: 8px;
}
.partner-extra-remove {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    margin-bottom: 2px;
}
@media (max-width: 640px) {
    .partner-spec-group-grid {
        grid-template-columns: 1fr 1fr;
    }
    .partner-extra-row {
        grid-template-columns: 1fr;
    }
}
.partner-ad-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
}
.partner-ad-tab {
    border: 1px solid #c5cae9;
    background: #fff;
    color: #1a237e;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.partner-ad-tab.is-active {
    background: #1a237e;
    border-color: #1a237e;
    color: #fff;
}
.partner-ad-tab[hidden] {
    display: none !important;
}
.partner-ad-panel > label {
    display: block;
    margin-top: 10px;
}
.partner-add-photo-preview { margin-top:8px; }
.partner-add-photo-preview img { max-width:100%; max-height:140px; border-radius:8px; object-fit:cover; border:1px solid #e0e0e0; }
.partner-add-cancel { background:#eceff1; color:#37474f; }
.partner-add-save { background:#ffd700; color:#111; }
.partner-add-draft { background:#e3f2fd; color:#0d47a1; border:1px solid #90caf9 !important; }
.partner-add-card label { display:block; font-size:12px; font-weight:700; margin:10px 0 4px; color:#37474f; }
.partner-add-card input, .partner-add-card select, .partner-add-card textarea { width:100%; padding:10px; border-radius:8px; border:1px solid #c5cae9; background:#fff; color:#111; font-family:inherit; }
.partner-add-card input[type="checkbox"],
.partner-add-card input[type="radio"] {
    width: auto !important;
    max-width: none;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none;
}
.partner-pause-tick {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 8px !important;
    padding: 10px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 10px;
    background: #eceff1;
    font-size: 12px;
    font-weight: 700;
    color: #37474f;
    cursor: pointer;
}
.partner-pause-tick[hidden] {
    display: none !important;
}
.partner-pause-tick input {
    margin-top: 2px;
}
.partner-shipping-package-box {
    margin: 12px 0 10px;
    padding: 12px;
    border: 1px solid #e8eaf6;
    border-radius: 10px;
    background: #f7fbff;
}
.partner-shipping-package-box .partner-add-hl-head {
    margin-bottom: 10px;
}
.partner-shipping-package-box > label {
    display: block;
    margin-top: 10px;
}
.partner-shipping-package-box > input[type="number"],
.partner-shipping-package-box > input[type="text"],
.partner-shipping-package-box > textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.partner-shipping-package-box #partner-add-vol-hint {
    display: block;
    margin-top: 8px;
}
.partner-add-extra { margin-top:8px; border:1px solid #e0e0e0; border-radius:8px; padding:0 10px 10px; background:#fafafa; }
.partner-product-weight-box {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #e8eaf6;
    border-radius: 10px;
    background: #f8fafc;
}
.partner-product-weight-box .partner-add-ad-subhead { margin-top: 0; }
.partner-photo-legal-box {
    margin: 14px 0 0;
    padding: 12px;
    border: 1px solid #ffe0b2;
    border-radius: 10px;
    background: #fff8e1;
}
.partner-photo-legal-text {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.45;
    color: #4e342e;
}
.partner-photo-legal-tick {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
}
.partner-photo-legal-tick input { margin-top: 3px; }
.partner-ad-panel[data-ad-panel="specs"] > .partner-add-extra {
    margin-top: 14px;
}
.partner-add-extra summary { cursor:pointer; font-weight:800; padding:10px 0; color:#1a237e; list-style: none; }
.partner-add-extra summary::-webkit-details-marker { display: none; }
.partner-add-extra summary::before {
    content: '▸ ';
    display: inline-block;
    transition: transform 0.15s ease;
}
.partner-add-extra[open] summary::before {
    transform: rotate(90deg);
}
.partner-attr-checks { display:flex; flex-wrap:wrap; gap:10px 16px; margin:6px 0 10px; }
.partner-attr-checks label, .partner-attr-check-row { display:flex !important; align-items:center; gap:8px; font-weight:600 !important; margin:6px 0 !important; }
.partner-attr-checks input, .partner-attr-check-row input { width:auto !important; }
.partner-spec-field { margin-bottom:4px; }
.partner-warranty-block { margin-bottom:8px; }
.partner-add-actions button { flex:1; padding:10px; border:none; border-radius:8px; font-weight:800; cursor:pointer; }
.partner-radius-tier-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.partner-tier-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 2px 0; }
.partner-tier-group-label { font-size: 12px; font-weight: 700; color: #607d8b; margin-right: 4px; }
.partner-tier-btn {
    background: #f5f5f5;
    border: 1px solid #c5cae9;
    color: #546e7a;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}
.partner-tier-btn:hover { border-color: #ffd700; color: #ffd700; }
.partner-tier-btn.active { background: #ffd700; border-color: #ffd700; color: #111; }
.partner-business-type-toggle { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 6px; }
.partner-business-type-opt { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 700; cursor: pointer; }
.partner-business-type-opt input { width: auto; margin: 0; }
.partner-meal-service-block { margin: 4px 0 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,215,0,.35); background: rgba(255,215,0,.08); }
.partner-meal-hint { margin: 0 0 8px; font-size: 11px; color: #ffd700; font-weight: 600; }
.partner-meal-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.partner-meal-checks label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 700; cursor: pointer; }
.partner-meal-checks input { width: auto; margin: 0; }
.partner-display-surfaces-block {
    margin: 8px 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(138, 180, 255, 0.4);
    background: rgba(21, 101, 192, 0.12);
}
.partner-display-surfaces-title { margin: 0 0 6px; font-size: 13px; color: #e3f2fd; }
.partner-display-surface-cards {
    display: grid;
    gap: 8px;
}
.partner-surface-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.22);
    cursor: pointer;
    font-weight: 600;
}
.partner-surface-card input { width: auto; margin: 3px 0 0; flex-shrink: 0; }
.partner-surface-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.partner-surface-card-body strong { font-size: 12px; color: #1a1a1a; line-height: 1.3; }
.partner-surface-card-body small { font-size: 11px; color: #546e7a; font-weight: 500; line-height: 1.35; }
.partner-surface-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.partner-surface-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    background: #37474f;
    color: #eceff1;
}
.partner-surface-badge--main { background: #1565c0; color: #fff; }
.partner-surface-badge--grocery { background: #2e7d32; color: #fff; }
.partner-surface-badge--wedding { background: #ad1457; color: #fff; }
.partner-stores-btn {
    background: #00838f;
    border: none;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    font-size: 11px;
    min-width: 92px;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.2;
}
.partner-stores-btn:hover { background: #006064; }
.partner-stores-cell { min-width: 120px; vertical-align: top; }
.partner-display-surfaces-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    align-items: center;
    justify-content: center;
}
.partner-surfaces-panel { max-width: 440px; width: calc(100% - 24px); }
.partner-catalog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}
.partner-catalog-actions .partner-stock-btn,
.partner-catalog-actions .partner-gallery-btn,
.partner-catalog-actions .partner-hide-btn,
.partner-catalog-actions .partner-edit-btn {
    margin: 0;
    min-width: 92px;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 11px;
    line-height: 1.2;
    box-sizing: border-box;
    text-align: center;
}
.partner-gallery-btn {
    background: #1565c0;
    border: none;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    font-size: 11px;
}
.partner-gallery-btn:hover { background: #1976d2; }
.partner-stock-btn {
    background: #2e7d32;
    border: none;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    font-size: 11px;
}
.partner-stock-btn:hover { background: #388e3c; }
.partner-edit-btn {
    background: #6a1b9a;
    border: none;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    font-size: 11px;
}
.partner-edit-btn:hover { background: #7b1fa2; }
.partner-hide-btn {
    background: #546e7a;
    border: none;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    font-size: 11px;
}
.partner-hide-btn:hover { background: #607d8b; }
.partner-hide-btn.partner-hide-btn--show {
    background: #00897b;
}
.partner-hide-btn.partner-hide-btn--show:hover { background: #26a69a; }
.partner-stock-ack-btn {
    background: #ff9800;
    border: none;
    color: #111;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}
.gallery-count { font-size: 11px; color: #607d8b; white-space: nowrap; }

.product-stock-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
}
.ps-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}
.ps-modal-panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px;
    color: #1a1a1a;
}
.ps-modal-panel--stock {
    width: min(1100px, 96vw);
    max-height: 78vh;
    overflow: auto;
    padding: 14px 16px;
}
.ps-modal-panel h4 { margin: 0 0 12px; color: #1a237e; font-size: 18px; }
.ps-modal-panel--stock h4 { margin: 0 0 10px; font-size: 17px; }
.ps-form { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.ps-stock-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 12px;
    font-size: 12px;
    table-layout: fixed;
}
.ps-stock-table th,
.ps-stock-table td {
    border: 1px solid #e0e0e0;
    padding: 6px 8px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}
.ps-stock-table th {
    background: #e8eaf6;
    color: #1a237e;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.ps-stock-table .ps-input {
    width: 72px;
    max-width: 72px;
    margin: 0;
    padding: 5px 8px;
    font-size: 13px;
}
.ps-stock-add-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.ps-stock-row-add-btn {
    flex: 0 0 auto;
    background: #1565c0;
    border: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}
.ps-stock-row-add-btn:hover { background: #1976d2; }
.ps-stock-row-add-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.ps-stock-added { font-weight: 800; color: #1565c0; }
.ps-stock-sold { font-weight: 800; color: #c62828; }
.ps-stock-left { font-weight: 800; color: #37474f; }
.ps-stock-empty {
    color: #b0bec5;
    font-weight: 600;
}
.ps-stock-qty {
    display: inline-block;
    min-width: 28px;
    font-weight: 900;
    font-size: 13px;
    text-align: center;
}
.ps-stock-qty--ok { color: #2e7d32; }
.ps-stock-qty--low { color: #ef6c00; }
.ps-stock-qty--out { color: #c62828; }
.ps-stock-status {
    display: inline-block;
    min-width: 52px;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
}
.ps-stock-status--ok {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #81c784;
}
.ps-stock-status--low {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffb74d;
}
.ps-stock-status--out {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}
.ps-stock-total-row td { background: #f5f7fa; }
.ps-stock-left-label {
    font-size: 11px;
    color: #607d8b;
    display: block;
    margin-bottom: 4px;
}
.ps-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ps-label { font-weight: 800; min-width: 72px; color: #111; }
.ps-input {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #c5cae9;
    background: #fff;
    color: #111;
    font-size: 14px;
}
.ps-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ps-save-btn {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}
.ps-close-btn {
    background: #ffd700;
    color: #111;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.product-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.pg-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}
.pg-modal-panel {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px;
    color: #1a1a1a;
}
.pg-modal-panel h4 { margin: 0 0 8px; color: #ffd700; }
.pg-3d-block {
    border: 1px dashed #42a5f5;
    border-radius: 10px;
    padding: 12px;
    margin: 12px 0;
    background: rgba(66, 165, 245, 0.08);
}
.pg-3d-block strong { display: block; margin-bottom: 8px; }
.pg-video-preview {
    display: block;
    width: 100%;
    max-height: 180px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #eceff1;
}
.pg-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin: 12px 0 16px;
}
.pg-slot {
    border: 1px solid #445;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    background: #e8eaf6;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.pg-slot-label { font-size: 11px; font-weight: 800; margin-bottom: 6px; color: #607d8b; }
.pg-slot--required .pg-slot-label { color: #0d47a1; }
.pg-slot--required { border-color: #90caf9; }
.pg-slot-preview {
    width: 100%;
    height: auto;
    min-height: 88px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff9e6;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    box-sizing: border-box;
}
.pg-slot-thumb {
    position: static;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    border-radius: 0;
    margin-bottom: 0;
    display: block;
    background: #fff9e6;
}
.pg-slot-empty {
    position: relative;
    width: 100%;
    height: 88px;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    border-radius: 0;
    margin-bottom: 0;
    font-size: 11px;
    color: #888;
}
.pg-slot-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: auto;
}
.pg-slot button {
    margin: 0;
    padding: 5px 8px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.pg-slot .pg-upload-btn { background: #1565c0; color: #fff; }
.pg-slot .pg-remove-btn { background: #c62828; color: #fff; }
.pg-close-btn {
    background: #ffd700;
    color: #111;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.partner-overview-rekyc {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ffb74d;
    background: #fff8e1;
    color: #e65100;
}
.partner-overview-rekyc strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}
.partner-overview-rekyc p {
    margin: 0;
    font-size: 12px;
    color: #bf360c;
    line-height: 1.4;
}
.partner-stock-alerts {
    margin-top: 20px;
    padding: 14px;
    border: 1px solid #ff9800;
    border-left: 4px solid #ff9800;
    border-radius: 10px;
    background: #ffffff;
}
.partner-stock-alerts h3 {
    margin: 0 0 10px;
    color: #111;
    font-size: 15px;
    font-weight: 800;
}
.partner-stock-alerts .partner-muted {
    color: #111;
}
.partner-stock-alert-item {
    background: #fff8f0;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
    padding: 10px 12px;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: baseline;
    color: #111;
}
.partner-stock-alert-item strong,
.partner-stock-alert-item span,
.partner-stock-alert-item small {
    color: #111;
}
.partner-stock-alert-item strong { font-weight: 800; }
.partner-stock-alert-item span { font-weight: 800; }
.partner-stock-alert-item small {
    flex: 1 1 100%;
    font-size: 11px;
}
.partner-stock-alerts .partner-stock-alert-item strong,
.partner-stock-alerts .partner-stock-alert-item span,
.partner-stock-alerts .partner-stock-alert-item small {
    color: #111;
}
.partner-delivery-actions {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}
.partner-booking-comms {
    flex: 1 1 100%;
    margin-top: 6px;
}
.partner-booking-comms-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.partner-booking-chat {
    margin-top: 8px;
    padding: 8px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #37474f;
}
.partner-booking-chat-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}
.partner-booking-chat-msg {
    padding: 6px 8px;
    border-radius: 8px;
    background: #e8eaf6;
    font-size: 12px;
    color: #eceff1;
}
.partner-booking-chat-msg--partner {
    align-self: flex-end;
    background: #1b5e20;
}
.partner-booking-chat-msg--user {
    align-self: flex-start;
}
.partner-booking-chat-compose {
    display: flex;
    gap: 6px;
}
.partner-booking-chat-input {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #455a64;
    background: #ffffff;
    color: #eceff1;
}
.partner-delivery-live-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    font-size: 11px;
    font-weight: 700;
}
.partner-delivery-map-link {
    color: #64b5f6;
    font-size: 12px;
    text-decoration: none;
}
.partner-delivery-map-link:hover { text-decoration: underline; }

.partner-cod-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.partner-cod-qr-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 16px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.partner-cod-qr-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}
.partner-cod-qr-img {
    display: block;
    margin: 12px auto;
    width: 220px;
    height: 220px;
    background: #fff;
}
.partner-cod-qr-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.partner-btn-upi-switch {
    background: #e8f5e9 !important;
    border: 1px solid #2e7d32 !important;
    color: #1b5e20 !important;
    font-weight: 700;
}
.partner-cod-upi-switch-title {
    margin: 0 0 8px;
    font-size: 1rem;
}
.partner-muted { color: #111; font-size: 12px; margin: 0; opacity: 0.85; }
.partner-profile-heading { margin: 0 0 10px; color: #111; font-size: 16px; }
.partner-profile-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 920px;
}
.partner-profile-close-btn {
    flex-shrink: 0;
}
.partner-profile-heading--spaced { margin: 18px 0 10px; }
.partner-profile-form .ps-label,
.partner-profile-form .partner-muted,
.partner-profile-form h3,
.partner-profile-meta,
.partner-profile-meta .partner-muted {
    color: #111;
}
.partner-profile-form .catalog-hint { color: #111; }

.partner-profile-layout { display: grid; gap: 20px; max-width: 920px; }
.partner-profile-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
}
.partner-profile-photo-stack {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}
.partner-profile-photo-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: #e8eaf6;
    cursor: pointer;
    flex-shrink: 0;
}
.partner-profile-photo-wrap.is-locked { cursor: default; }
.partner-profile-photo-wrap.is-rekyc { border: 3px solid #dc2626; }
.partner-profile-photo-stack .partner-rekyc-photo-badge {
    right: -10px;
    bottom: -4px;
}
.partner-store-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
}
.partner-store-section h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #1a237e;
}
.partner-store-rows,
.pcc-store-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.partner-store-row,
.pcc-store-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}
.pcc-store-row-name { font-weight: 700; }
.pcc-store-row-meta { font-size: 12px; color: #546e7a; }
.partner-store-desk-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
}
.partner-store-desk-bar h2 { margin: 0; font-size: 18px; }
.partner-store-hisab {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    margin: 0 0 14px;
}
.partner-store-hisab-chip {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
}
.partner-store-hisab-chip span {
    display: block;
    font-size: 11px;
    font-weight: 700;
}
.partner-store-hisab-chip strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
}
.partner-extra-store-card {
    margin: 0 0 16px;
    padding: 0 0 16px;
    border-bottom: 1px solid #e5e7eb;
}
.partner-store-kv { margin: 0; }
.partner-store-kv-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
}
.partner-store-kv-row:last-child { border-bottom: 0; }
.partner-store-kv-row dt {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}
.partner-store-kv-row dd {
    margin: 0;
    color: #111;
    font-size: 13px;
    word-break: break-word;
}
.partner-store-readonly-name {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
}
.partner-store-pending {
    margin: 8px 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff8e1;
    color: #e65100;
    font-size: 12px;
    font-weight: 700;
}
.partner-store-warn {
    color: #b91c1c;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 8px;
}
.partner-pickup-editor {
    margin-top: 12px;
}
#partner-store-pickup-section [data-partner-pickup-edit] {
    margin-top: 12px;
}
.partner-store-current {
    margin: 0 0 10px;
    font-size: 13px;
    color: #111;
}
.partner-profile-photo { width: 100%; height: 100%; object-fit: cover; }
.partner-profile-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}
.partner-profile-photo-edit {
    position: absolute;
    right: 4px;
    bottom: 4px;
    background: rgba(0,0,0,0.65);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.partner-profile-meta { flex: 1; min-width: 0; }
.partner-worker-services-block {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
}
.partner-worker-services-block h4 {
    margin: 0 0 8px;
    color: #ffd700;
    font-size: 13px;
}
.partner-worker-item-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.partner-worker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    background: #e8eaf6;
    border-radius: 6px;
    font-size: 12px;
}
.partner-worker-item-remove {
    border: none;
    background: #c62828;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
}
.partner-worker-add-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.partner-worker-add-row .ps-input { flex: 1; min-width: 120px; }
.partner-rating-summary { font-weight: 700; }
.partner-followers-line {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 700;
}
.partner-followers-line[hidden] {
    display: none;
}
.partner-rating-summary > span:not(.partner-star) {
    color: #111;
    font-weight: 500;
    font-size: 12px;
    margin-left: 6px;
}
.partner-review-stars {
    letter-spacing: 1px;
    font-size: 14px;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}
.partner-review-stars small { color: #111; margin-left: 4px; }
.partner-star--on { color: #ffb300; }
.partner-star--off { color: #bdbdbd; }
.partner-profile-form { max-width: 640px; width: 100%; }
.partner-profile-form .ps-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    row-gap: 4px;
    margin: 0;
    width: 100%;
}
.partner-profile-form .ps-label {
    min-width: 0;
    width: 100%;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    text-align: left;
}
.partner-profile-form .ps-input,
.partner-profile-form textarea.ps-input,
.partner-profile-form input[type="file"],
.partner-profile-form input[type="time"] {
    width: 100%;
    max-width: 100%;
    flex: none;
    box-sizing: border-box;
    color: #111;
    background: #fff;
    grid-column: 2;
}
.partner-profile-form .ps-row > .partner-muted,
.partner-profile-form .ps-row > .partner-signature-preview,
.partner-profile-form .ps-row > img.partner-signature-preview {
    grid-column: 2;
}
.partner-profile-form textarea.ps-input {
    align-self: start;
    min-height: 64px;
    resize: vertical;
}
.partner-profile-form .ps-row.partner-profile-check-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.partner-profile-form .ps-row.partner-profile-check-row .ps-label {
    width: auto;
    flex: 1;
}
.partner-profile-form .partner-quick-block,
.partner-profile-form .partner-radius-block {
    width: 100%;
    box-sizing: border-box;
}
.partner-profile-form .partner-quick-block .ps-row:not(.partner-profile-check-row),
.partner-profile-form .partner-radius-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    width: 100%;
}
.partner-profile-form .partner-tier-group {
    grid-column: 2;
    width: 100%;
}
.partner-profile-form .ps-save-btn {
    width: 100%;
    max-width: 220px;
    margin-left: calc(160px + 14px);
}
@media (max-width: 560px) {
    .partner-profile-form .ps-row,
    .partner-profile-form .partner-quick-block .ps-row:not(.partner-profile-check-row),
    .partner-profile-form .partner-radius-row {
        grid-template-columns: 1fr;
    }
    .partner-profile-form .ps-input,
    .partner-profile-form textarea.ps-input,
    .partner-profile-form input[type="file"],
    .partner-profile-form input[type="time"],
    .partner-profile-form .ps-row > .partner-muted,
    .partner-profile-form .partner-tier-group {
        grid-column: 1;
    }
    .partner-profile-form .ps-save-btn {
        margin-left: 0;
    }
}
.partner-reviews-block h3 { margin: 0 0 8px; color: #111; }
.partner-review-card {
    background: #e8eaf6;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
}
.partner-review-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 4px;
}
.partner-review-card p { margin: 6px 0; font-size: 13px; line-height: 1.45; color: #111; }
.partner-review-card.is-clickable { cursor: pointer; }
.partner-review-product {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}
.partner-review-card.is-open .partner-review-product {
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    margin-top: 10px;
    border: 1px solid #e0e0e0;
}
.partner-review-product-photo {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.partner-review-product-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.partner-review-product-ph { font-size: 22px; line-height: 1; }
.partner-review-product-meta {
    flex: 1 1 auto;
    min-width: 0;
}
.partner-review-product-meta > strong {
    display: block;
    color: #111;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}
.partner-review-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
    color: #111;
}
.partner-review-price span {
    font-size: 11px;
    font-weight: 700;
    color: #111;
}
.partner-review-price strong {
    font-size: 14px;
    font-weight: 800;
    color: #111;
}
.partner-review-delivered {
    flex: 0 0 auto;
    margin: 0;
    margin-left: auto;
    text-align: right;
    color: #111;
    line-height: 1.25;
}
.partner-review-delivered span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #111;
}
.partner-review-delivered strong {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 800;
    color: #111;
    white-space: nowrap;
}
.partner-review-mrp {
    color: #9e9e9e;
    text-decoration: line-through;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 600;
}
.partner-pa-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px;
}
.partner-pa-kpi {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    color: #111;
}
.partner-pa-kpi span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #111;
}
.partner-pa-kpi strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 800;
    color: #111;
}
.partner-pa-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    color: #111;
}
.partner-pa-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}
.partner-pa-card-head strong {
    font-weight: 800;
    color: #111;
}
.partner-pa-conv {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 800;
    color: #111;
}
.partner-pa-card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #111;
}
.partner-pa-table-wrap { overflow-x: auto; }
.partner-pa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
    color: #111;
}
.partner-pa-table th,
.partner-pa-table td {
    border: 1px solid #e0e0e0;
    padding: 8px 10px;
    text-align: left;
    color: #111;
}
.partner-pa-table th {
    font-weight: 800;
    background: #fff;
}
.partner-pa-table td:not(:first-child),
.partner-pa-table th:not(:first-child) {
    text-align: right;
    white-space: nowrap;
}

.partner-overview-store {
    margin: 0;
    padding: 8px 16px 12px;
    border-radius: 0;
    background: #fff;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    color: #111;
}
.partner-overview-store--top {
    position: relative;
    z-index: 2;
}
.partner-overview-store-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
    min-height: 40px;
    margin: 0 0 10px;
}
.partner-overview-topbar-spacer {
    min-width: 0;
}
.partner-overview-store-body {
    display: flex;
    gap: 14px;
    align-items: center;
    min-width: 0;
}
.partner-overview-store-text {
    flex: 1;
    min-width: 0;
    color: #111;
}
.partner-role-inline {
    margin: 0 0 4px;
    font-size: 12px;
    color: #111;
}
.partner-overview-qd-center {
    justify-self: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.partner-qd-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #37474f;
    white-space: nowrap;
}
.partner-qd-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid #c5cae9;
    border-radius: 999px;
    background: #f5f5f5;
    cursor: pointer;
    font: inherit;
    color: #111;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.partner-qd-switch[aria-checked="true"] {
    background: #e8f5e9;
    border-color: #66bb6a;
}
.partner-qd-switch[aria-checked="false"] {
    background: #eceff1;
    border-color: #90a4ae;
}
.partner-qd-switch:disabled {
    opacity: 0.55;
    cursor: wait;
}
.partner-qd-track {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #b0bec5;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.partner-qd-switch[aria-checked="true"] .partner-qd-track {
    background: #43a047;
}
.partner-qd-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}
.partner-qd-switch[aria-checked="true"] .partner-qd-knob {
    transform: translateX(20px);
}
.partner-qd-state {
    min-width: 28px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.partner-qd-switch[aria-checked="true"] .partner-qd-state {
    color: #1b5e20;
}
.partner-qd-switch[aria-checked="false"] .partner-qd-state {
    color: #546e7a;
}
.partner-store-logout {
    margin-left: 0;
    justify-self: end;
    flex-shrink: 0;
    align-self: center;
    padding: 6px 12px;
}
.partner-overview-topbar-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.partner-customize-btn {
    padding: 6px 12px;
    background: #e8eaf6;
    border-color: #7986cb;
    color: #1a237e;
}
.partner-customize-btn--on,
.partner-customize-btn[aria-pressed="true"] {
    background: #ffd700;
    border-color: #f9a825;
    color: #111;
}
body.partner-customize-mode .partner-nav-chip--customize {
    padding-top: 22px;
    outline: 1px dashed #7986cb;
}
.layout-ctrl-partner-nav {
    position: absolute;
    right: 2px;
    top: 2px;
    display: flex;
    gap: 2px;
    z-index: 6;
}
.layout-ctrl-partner-nav button {
    font-size: 10px !important;
    padding: 2px 5px !important;
    border: none !important;
    background: #42a5f5 !important;
    color: #000 !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-weight: 900 !important;
    line-height: 1 !important;
    min-width: 0 !important;
}
.partner-overview-photo-stack {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}
.partner-overview-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e8eaf6;
    border: 1px solid #c5cae9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    overflow: hidden;
    flex-shrink: 0;
}
.partner-overview-photo.is-rekyc,
.partner-overview-photo-stack.is-rekyc .partner-overview-photo {
    border: 3px solid #dc2626;
}
.partner-overview-photo img { width: 100%; height: 100%; object-fit: cover; }
.partner-rekyc-photo-badge {
    position: absolute;
    right: -8px;
    bottom: -6px;
    z-index: 2;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    pointer-events: none;
}
.partner-overview-store-text h3 { margin: 0 0 4px; color: #111; }
.partner-overview-store-text .partner-rating-summary > span:not(.partner-star) {
    color: #111;
}
.partner-store-edit-support-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.partner-store-edit-support-row .ps-save-btn {
    margin: 0;
}
.partner-edit-label-short { display: none; }
.partner-store-support-btn {
    margin-left: auto !important;
}
.partner-store-support-btn.hidden {
    display: none !important;
}
.partner-overview-store .ps-save-btn {
    background: #1a237e;
    color: #fff;
}
@media (max-width: 900px) {
    html, body, .dashboard {
        max-width: 100%;
        overflow-x: hidden;
    }
    .partner-overview-store {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: start;
        column-gap: 4px;
        row-gap: 6px;
        padding: var(--native-safe-top) calc(env(safe-area-inset-right, 0px) + 12px) 12px calc(env(safe-area-inset-left, 0px) + 16px);
        overflow-x: visible;
        max-width: 100%;
        box-sizing: border-box;
    }
    #partner-overview-store .partner-overview-store-body,
    #partner-overview-store .partner-overview-store-text,
    #partner-overview-store .partner-store-edit-support-row,
    #partner-overview-store .partner-overview-store-topbar,
    #partner-overview-store .partner-overview-topbar-actions {
        display: contents;
    }
    .partner-overview-store:has(#partner-quick-delivery-bar[hidden]) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    #partner-overview-store .partner-overview-photo-stack,
    #partner-overview-store .partner-overview-photo {
        width: 54px;
        height: 54px;
        font-size: 26px;
        margin: 0;
    }
    #partner-overview-store .partner-overview-photo-stack {
        grid-column: 1;
        grid-row: 1 / 3;
        overflow: visible;
    }
    #partner-overview-store .partner-overview-photo {
        overflow: hidden;
    }
    #partner-overview-store .partner-overview-photo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
    .partner-rekyc-photo-badge {
        right: -6px;
        bottom: -4px;
        font-size: 8px;
        padding: 2px 4px;
    }
    #partner-overview-store .partner-overview-store-text {
        display: contents;
    }
    #partner-overview-store .partner-overview-store-text h3,
    #partner-overview-store .partner-overview-store-text .partner-role-inline,
    #partner-overview-store .partner-overview-store-text .partner-rating-summary,
    #partner-overview-store .partner-overview-store-text .partner-followers-line {
        grid-column: 2 / -1;
        min-width: 0;
        margin: 0;
    }
    #partner-overview-store .partner-overview-store-text h3 {
        grid-row: 1;
        font-size: 14px;
        line-height: 1.2;
        word-break: break-word;
        margin: 8px 0 2px;
    }
    #partner-overview-store .partner-overview-store-text .partner-role-inline {
        grid-row: 2;
        margin: 0 0 2px;
    }
    #partner-overview-store .partner-overview-store-text .partner-rating-summary {
        grid-row: 3;
        align-self: center;
    }
    #partner-overview-store .partner-overview-store-text .partner-followers-line {
        grid-row: 4;
        font-size: 12px;
        font-weight: 700;
    }
    .partner-edit-label-full { display: none; }
    .partner-edit-label-short { display: inline; }
    #partner-overview-store #partner-store-edit-btn {
        grid-column: 1;
        grid-row: 3;
        align-self: center;
        justify-self: center;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 3px 8px;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;
        border-radius: 6px;
        border: 1px solid #c5c5c5;
        background: #fff;
        color: #111;
    }
    .partner-overview-topbar-spacer { display: none; }
    #partner-store-support-btn,
    #partner-quick-delivery-bar,
    #partner-customize-btn,
    .partner-store-logout {
        grid-row: 4;
        align-self: center;
        width: 100%;
        min-width: 0;
        margin: 0 !important;
        padding: 4px 4px;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.2;
        border-radius: 6px;
        white-space: nowrap;
        box-sizing: border-box;
    }
    #partner-store-support-btn { grid-column: 1; }
    #partner-quick-delivery-bar { grid-column: 2; }
    #partner-customize-btn { grid-column: 3; }
    .partner-store-logout {
        grid-column: 4;
        grid-area: unset;
        color: #c62828;
        border-color: #ef9a9a;
        background: #fff;
    }
    .partner-overview-store:has(#partner-quick-delivery-bar[hidden]) #partner-customize-btn { grid-column: 2; }
    .partner-overview-store:has(#partner-quick-delivery-bar[hidden]) .partner-store-logout { grid-column: 3; }
    #partner-quick-delivery-bar {
        justify-self: stretch;
        justify-content: center;
        gap: 4px;
        min-height: 0;
    }
    .partner-qd-label {
        display: none;
    }
    #partner-quick-delivery-toggle.partner-qd-switch {
        width: 100%;
        justify-content: center;
        padding: 3px 4px;
        gap: 4px;
    }
    #partner-quick-delivery-bar .partner-qd-track {
        width: 28px;
        height: 16px;
    }
    #partner-quick-delivery-bar .partner-qd-knob {
        width: 12px;
        height: 12px;
    }
    #partner-quick-delivery-bar .partner-qd-switch[aria-checked="true"] .partner-qd-knob {
        transform: translateX(12px);
    }
    #partner-quick-delivery-bar .partner-qd-state {
        min-width: 0;
        font-size: 10px;
    }
    .partner-overview-edit-nav-row {
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .partner-nav--inline {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .partner-nav--inline button,
    .partner-nav-catreq-btn {
        width: 100%;
        margin-left: 0;
        white-space: normal;
    }
    .partner-main {
        padding: 12px;
        max-width: 100%;
    }
}
.partner-settings-profile-block {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ffd700;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.partner-settings-profile-block h3 { margin: 0 0 6px; color: #1a237e; }

.partner-store-quick-edit {
    background: #e8eaf6;
    border: 1px solid #c5cae9;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.partner-store-quick-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.partner-store-quick-inner .ps-input {
    flex: 1;
    min-width: 180px;
    max-width: 320px;
}
.partner-category-request-block {
    background: #ffffff;
    border: 1px dashed #5c6bc0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.partner-category-request-block h3 { margin: 0 0 6px; color: #ffd700; font-size: 15px; }
.partner-category-request-form {
    display: grid;
    gap: 10px;
    max-width: 520px;
}
.partner-category-request-form label {
    display: grid;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #111;
}
.partner-category-request-form input,
.partner-category-request-form select,
.partner-category-request-form textarea {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #c5c5c5;
    background: #fff;
    color: #111;
}
.partner-category-request-form select {
    background-color: #fff;
    color-scheme: light;
}
.partner-catreq-row {
    padding: 6px 0;
    border-bottom: 1px solid #263238;
    font-size: 13px;
}
.partner-no-reviews {
    padding: 12px;
    border-radius: 8px;
    background: #e8eaf6;
    border: 1px dashed #455a64;
}
.partner-profile-photo-wrap { cursor: pointer; }
.partner-profile-photo-wrap.is-locked { cursor: default; }
.partner-signature-preview {
    max-height: 46px;
    max-width: 150px;
    display: block;
    margin: 6px 0 0;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
}
.partner-overview-signature {
    margin: 14px 0 18px;
    padding: 14px 16px;
    border: 1px solid #37474f;
    border-radius: 12px;
    background: #ffffff;
}
.partner-overview-signature h3 {
    margin: 0 0 6px;
    color: #ffd700;
    font-size: 16px;
}
.partner-overview-signature-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.partner-overview-signature-preview {
    min-width: 120px;
    min-height: 48px;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.partner-overview-signature-preview .partner-signature-preview {
    margin: 0;
}
.partner-overview-signature-upload {
    cursor: pointer;
    display: inline-block;
}
.partner-profile-form input[type="file"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #c5cae9;
    border-radius: 8px;
    color: #111;
    font-size: 14px;
}

.partner-support-box {
    max-width: none;
    padding: 0;
    border: none;
    background: transparent;
}
.partner-support-box-head { display: none; }
.partner-support-form { margin-bottom: 8px; }

/* Support as dedicated page — hide store chrome on mobile/desktop for clarity */
body.partner-support-page .partner-overview-store,
body.partner-support-page .partner-overview-store-topbar,
body.partner-support-page #partner-store-edit-nav-row,
body.partner-support-page .partner-stock-alerts,
body.partner-support-page #partner-stats {
    display: none !important;
}
body.partner-support-page #partner-overview-store {
    display: none !important;
}
body.partner-support-page #section-support {
    display: block !important;
    min-height: calc(100dvh - 24px);
}
.ps-sup-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 4px 24px;
}
.ps-sup-back {
    border: 1px solid #cfd8dc;
    background: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
}
.ps-sup-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.ps-sup-tab {
    border: 1px solid #cfd8dc;
    background: #fff;
    border-radius: 10px;
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 700;
    color: #37474f;
    cursor: pointer;
    min-height: 48px;
}
.ps-sup-tab.active {
    background: #1a237e;
    border-color: #1a237e;
    color: #fff;
}
.ps-sup-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px;
}
.ps-sup-panel--call {
    text-align: center;
    border-color: #c8e6c9;
    background: #f3faf4;
}
.ps-sup-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}
.ps-sup-toolbar-btn {
    border: 1px solid #cfd8dc;
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
}
.ps-sup-toolbar-btn--danger {
    border-color: #ef9a9a;
    color: #c62828;
}
.ps-sup-team-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(60dvh, 520px);
    overflow-y: auto;
}
.ps-sup-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: start;
    padding: 10px;
    border: 1px solid #eceff1;
    border-radius: 10px;
    background: #fafafa;
}
.ps-sup-item--team {
    border-color: #c5cae9;
    background: #f8f9ff;
}
.ps-sup-mark { margin-top: 2px; }
.ps-sup-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}
.ps-sup-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
}
.ps-sup-badge--team {
    background: #e8eaf6;
    color: #3949ab;
}
.ps-sup-subject {
    display: block;
    font-size: 13px;
}
.ps-sup-msg-text {
    margin: 0;
    font-size: 12px;
    color: #37474f;
    white-space: pre-wrap;
    word-break: break-word;
}
.ps-sup-del {
    border: 1px solid #ef9a9a;
    background: #fff;
    color: #c62828;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}
.ps-sup-msg {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #c5cae9;
    background: #fff;
    margin-bottom: 6px;
}
.ps-sup-msg-head {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 4px;
}
.ps-sup-thread { display: flex; flex-direction: column; gap: 6px; }
.ps-sup-call-number {
    margin: 8px 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: #1b5e20;
}
.ps-sup-notify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}
.ps-sup-btn--notify {
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.25);
}
.ps-sup-tab-notify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    margin-left: 4px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}
.ps-sup-row-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e53935;
    display: inline-block;
    flex-shrink: 0;
}
.ps-sup-item.is-unread {
    border-color: #ef9a9a;
    background: #fff5f5;
}
.ps-sup-item-open {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: inherit;
}
.ps-sup-preview {
    margin: 4px 0 0;
    font-size: 12px;
    color: #546e7a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ps-sup-open-title {
    margin: 0 0 10px;
    font-size: 15px;
    color: #1a237e;
}
.ps-sup-open-thread {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(50dvh, 420px);
    overflow-y: auto;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 10px;
    background: #f5f7fa;
}
.ps-sup-bubble {
    padding: 10px;
    border-radius: 10px;
    max-width: 92%;
}
.ps-sup-bubble--you {
    align-self: flex-end;
    background: #e3f2fd;
    border: 1px solid #90caf9;
}
.ps-sup-bubble--team {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #c5cae9;
}
.ps-sup-bubble-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 4px;
}
.ps-sup-badge--chat {
    background: #e3f2fd;
    color: #1565c0;
}
.ps-sup-back--inline {
    margin-bottom: 10px;
}
.partner-support-tickets { display: flex; flex-direction: column; gap: 8px; }
.partner-support-ticket {
    padding: 10px 12px;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #eceff1;
    font-size: 13px;
}
.partner-support-ticket small { color: #90a4ae; }

.partner-sub-status {
    padding: 12px 14px;
    border-radius: 8px;
    margin: 12px 0;
    font-size: 14px;
}
.partner-sub-active { background: #e8f5e9; color: #2e7d32; }
.partner-sub-expired { background: #fff3e0; color: #e65100; }
.partner-sub-plans { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.partner-sub-plan {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #37474f;
    border-radius: 8px;
}
.partner-sub-plan strong { flex: 1; }

.partner-return-detail-btn {
    margin-top: 6px;
    padding: 4px 8px;
    border: 1px solid #546e7a;
    border-radius: 6px;
    background: #263238;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
}
.partner-orders-list-table tr.partner-order-row {
    cursor: pointer;
}
.partner-orders-list-table tr.partner-order-row:hover,
.partner-orders-list-table tr.partner-order-row:focus {
    background: #e3f2fd;
    outline: none;
}
.partner-order-open-hint {
    color: #1565c0;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}
.partner-order-placed-dt {
    color: #455a64;
    font-size: 11px;
}
.partner-orders-filter-bar {
    --partner-filter-mix: linear-gradient(90deg, #FFD700 0%, #42a5f5 45%, #1565c0 100%);
    --partner-order-filter-cols: 7;
    display: grid;
    grid-template-columns: repeat(var(--partner-order-filter-cols), minmax(0, 1fr));
    grid-auto-rows: auto;
    align-items: stretch;
    gap: 8px;
    margin: 0 0 6px;
    padding: 2px 2px 4px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}
.partner-order-filter-btn,
.partner-orders-filter-bar .partner-order-filter-btn.partner-status--all,
.partner-orders-filter-bar .partner-order-filter-btn[class*="partner-status--"] {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111111 !important;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        var(--partner-filter-mix) border-box !important;
    box-shadow: none;
    filter: none;
}
body.partner-customize-mode .partner-order-filter--customize {
    padding-top: 22px;
    outline: 1px dashed #7986cb;
}
.layout-ctrl-partner-order-filter {
    position: absolute;
    right: 2px;
    top: 2px;
    display: flex;
    gap: 2px;
    z-index: 6;
}
.layout-ctrl-partner-order-filter button {
    font-size: 10px !important;
    padding: 2px 5px !important;
    border: none !important;
    background: #42a5f5 !important;
    color: #000 !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-weight: 900 !important;
    line-height: 1 !important;
    min-width: 0 !important;
}
.partner-order-filter-btn .partner-order-filter-count {
    display: inline-block;
    margin-left: 4px;
    min-width: 1.2em;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    color: #111111;
    font-size: 11px;
    font-weight: 800;
}
.partner-order-filter-btn .partner-order-filter-count.is-zero {
    color: #111111;
}
.partner-order-filter-btn .partner-order-filter-count.is-pending {
    color: #c62828;
    background: rgba(198, 40, 40, 0.12);
}
.partner-order-filter-btn.is-active,
.partner-orders-filter-bar .partner-order-filter-btn.is-active[class*="partner-status--"] {
    color: #111111 !important;
    border: 2px solid #f9a825 !important;
    background: #ffd700 !important;
    box-shadow: none;
}
.partner-orders-period-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 4px 0 14px;
    padding: 6px 0;
}
.partner-orders-store-bar {
    margin: 0 0 12px;
}
.partner-orders-store-bar label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
.partner-orders-store-bar select {
    min-width: 160px;
}
.partner-orders-period-label {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    white-space: nowrap;
    margin-right: 2px;
}
.partner-orders-period-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.partner-order-period-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
    border: none;
    background: transparent;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    white-space: nowrap;
    color: #666;
    font-family: inherit;
}
.partner-order-period-btn-label {
    font-size: 11px;
    font-weight: 700;
}
.partner-order-period-btn-count {
    font-size: 11px;
    font-weight: 800;
    color: #444;
}
.partner-order-period-btn-count.is-zero {
    color: #111;
}
.partner-order-period-btn.is-active {
    background: #c9a227;
    color: #000;
}
.partner-order-period-btn.is-active .partner-order-period-btn-count {
    color: #000;
}
.partner-status-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    background: #607d8b;
    white-space: nowrap;
}
/* Row status badges only (filters stay white + mix border) */
.partner-status-badge.partner-status--placed { background: #1976d2; color: #fff; }
.partner-status-badge.partner-status--confirmed { background: #3949ab; color: #fff; }
.partner-status-badge.partner-status--packed { background: #5e35b1; color: #fff; }
.partner-status-badge.partner-status--awaiting-pickup { background: #ef6c00; color: #fff; }
.partner-order-status-hint {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 500;
    max-width: 220px;
    line-height: 1.3;
    white-space: normal;
    text-align: right;
}
.partner-order-status-control-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.partner-status-badge.partner-status--out-for-delivery { background: #fb8c00; color: #fff; }
.partner-status-badge.partner-status--delivered { background: #2e7d32; color: #fff; }
.partner-status-badge.partner-status--undelivered { background: #e64a19; color: #fff; }
.partner-status-badge.partner-status--cancelled { background: #546e7a; color: #fff; }
.partner-status-badge.partner-status--returnpending,
.partner-status-badge.partner-status--returnrequested { background: #ef6c00; color: #fff; }
.partner-status-badge.partner-status--refundapproved { background: #f57c00; color: #fff; }
.partner-status-badge.partner-status--returnpickup { background: #fb8c00; color: #fff; }
.partner-status-badge.partner-status--refundprocessing { background: #ff9800; color: #fff; }
.partner-status-badge.partner-status--refundcompleted { background: #43a047; color: #fff; }
.partner-status-badge.partner-status--refundcancelled { background: #78909c; color: #fff; }
.partner-status-badge.partner-status--replacementpending,
.partner-status-badge.partner-status--replacementprocessing { background: #8e24aa; color: #fff; }
.partner-status-badge.partner-status--replacementcompleted { background: #2e7d32; color: #fff; }
.partner-status-badge.partner-status--replacementcancelled { background: #78909c; color: #fff; }
.partner-status-badge.partner-status--exchangepending,
.partner-status-badge.partner-status--exchangeprocessing { background: #c2185b; color: #fff; }
.partner-status-badge.partner-status--exchangecompleted { background: #2e7d32; color: #fff; }
.partner-status-badge.partner-status--exchangecancelled { background: #78909c; color: #fff; }
.partner-order-detail-head {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid #cfd8dc;
    border-radius: 10px;
    background: #fff;
    min-height: 52px;
    box-sizing: border-box;
}
.partner-order-detail-head-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding-right: 8px;
    flex: 1 1 auto;
}
.partner-order-detail-head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}
.partner-order-detail-head .partner-order-doc-btns {
    position: static;
    top: auto;
    right: auto;
    flex: 0 0 auto;
    margin-left: auto;
}
.partner-order-detail-head #order-detail-docs[hidden] {
    display: none !important;
}
.partner-order-detail-flat {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.partner-order-doc-btns {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}
.partner-order-doc-btns .partner-return-detail-btn {
    margin-top: 0;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}
@media (max-width: 720px) {
    .partner-order-detail-head {
        flex-direction: column;
        align-items: stretch;
    }
    .partner-order-detail-head .partner-order-doc-btns {
        margin-left: 0;
        justify-content: flex-end;
    }
    .partner-order-doc-btns .partner-return-detail-btn {
        padding: 7px 10px;
        font-size: 11px;
    }
}
.partner-order-meta-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 28px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    padding: 0 28px 0 40px;
}
.partner-order-meta-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 0;
    text-align: left;
}
.partner-order-meta-item--status {
    align-items: flex-start;
    text-align: left;
}
.partner-order-meta-item--update {
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
}
.partner-order-meta-label {
    font-size: 12px;
    font-weight: 600;
    color: #455a64;
    line-height: 1.2;
}
.partner-order-meta-value {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
    line-height: 1.25;
}
.partner-order-summary-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin: 0 0 8px;
}
.partner-order-summary-head h3 {
    margin: 0;
    font-size: 14px;
    color: #1a237e;
}
.partner-order-status-select {
    display: inline-block;
    margin: 0;
    min-width: 170px;
    min-height: 36px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #90a4ae;
    border-radius: 8px;
    background: #fff;
}
.partner-order-detail-block {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}
.partner-order-detail-block h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #1a237e;
}
.partner-order-address-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
.partner-order-address-card {
    background: #fff;
    border: 1px solid #cfd8dc;
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 0;
    font-size: 12.5px;
}
.partner-order-address-card h3 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 800;
    color: #1a237e;
}
.partner-order-address-card p {
    margin: 0 0 5px;
    line-height: 1.4;
    font-size: 12.5px;
}
.partner-order-address-card p:last-child {
    margin-bottom: 0;
}
.partner-order-address-name {
    font-weight: 700;
    color: #111;
    font-size: 12.5px;
}
.partner-order-address-full {
    color: #263238;
    word-break: break-word;
    font-size: 12px;
}
.partner-order-address-phone {
    color: #546e7a;
    font-size: 12px;
}
@media (max-width: 720px) {
    .partner-order-address-row {
        grid-template-columns: 1fr;
    }
}
.partner-order-item-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e0e0e0;
    display: block;
}
.partner-order-item-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.partner-order-items-table th,
.partner-order-items-table td {
    vertical-align: middle;
}
.partner-order-items-wrap {
    overflow-x: auto;
}
.partner-order-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.partner-order-items-table {
    margin-top: 4px;
}
.partner-order-vehicle-wrap {
    margin-top: 4px;
}
.partner-pack-desk-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
.partner-pack-desk-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
}
.partner-pack-desk-head strong {
    font-size: 14px;
}
.partner-pack-desk-meta {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}
.partner-pack-desk-err {
    margin: 10px 0 0;
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.4;
}
.partner-pack-book-panel {
    border: 1px solid #cfd8dc;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}
.partner-pack-book-panel #partner-ship-vol-hint {
    display: block;
    margin-top: 8px;
}
.partner-pack-desk-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    margin: 0;
    width: 100%;
}
.partner-pack-desk-actions .partner-return-detail-btn,
.partner-pack-desk-actions .partner-add-save {
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    border-radius: 8px;
    cursor: pointer;
}
.partner-pack-desk-actions .partner-add-save {
    border: none;
}
.partner-pack-desk-actions .partner-add-save:disabled {
    opacity: 0.6;
    cursor: wait;
}
@media (max-width: 900px) {
    .partner-ship-courier-host {
        max-height: min(36vh, 280px);
    }
}
.partner-pack-desk-actions .partner-return-detail-btn {
    box-sizing: border-box;
}
.partner-return-approve-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.partner-return-detail-btn.partner-btn-primary {
    background: #1565c0;
    border-color: #1976d2;
}
.partner-return-detail-btn.partner-btn-danger {
    background: #b71c1c;
    border-color: #c62828;
}
.partner-return-detail-btn.partner-btn-danger:hover {
    background: #c62828;
}
.partner-return-issue-box {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.35);
    background: rgba(255, 193, 7, 0.08);
}
.partner-return-issue-box strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffecb3;
    margin-bottom: 4px;
}
.partner-return-issue-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.partner-return-detail-row td {
    background: #ffffff;
    padding: 12px !important;
}

.partner-return-detail-card {
    font-size: 13px;
    line-height: 1.5;
}

.partner-return-detail-card h5 {
    margin: 12px 0 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #90caf9;
}

.partner-return-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin: 6px 0 10px;
}

.partner-return-items-table th,
.partner-return-items-table td {
    border: 1px solid #37474f;
    padding: 6px 8px;
    text-align: left;
}

.partner-return-media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.partner-return-media-thumb {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #546e7a;
    background: #ffffff;
}

.partner-return-media-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #ffffff;
}

.partner-return-media-video {
    max-width: 200px;
    max-height: 120px;
    border-radius: 8px;
    border: 1px solid #546e7a;
    object-fit: contain;
    background: #000;
}

.partner-return-media-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.partner-return-media-lightbox.is-open { display: flex; }
.partner-return-media-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}
.partner-return-media-lightbox-body {
    max-width: min(96vw, 960px);
    max-height: 90vh;
}
.partner-return-media-lightbox-body img,
.partner-return-media-lightbox-body video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    background: #000;
}

.partner-return-media-badge {
    display: inline-flex;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px dashed #546e7a;
    font-size: 11px;
}

.app-install-slot { margin-top: 12px; }
.app-install-banner { border: 1px solid rgba(255, 215, 0, 0.45); border-radius: 10px; padding: 10px 12px; background: rgba(255, 215, 0, 0.08); }
.app-install-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.app-install-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.app-install-btn { display: inline-block; padding: 8px 12px; border-radius: 8px; border: 1px solid #111; background: #ffd700; color: #111; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.app-install-btn--pwa { background: #eceff1; color: #ffd700; border-color: #ffd700; }
.app-install-hint { margin: 8px 0 0; font-size: 10px; color: #888; line-height: 1.35; }

.ph-licence-row { margin-top: 4px; }
.ph-dept-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #37474f;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
}
.ph-dept-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.ph-dept-head .ps-input { flex: 1; min-width: 160px; }
.ph-dept-subs { display: grid; gap: 6px; margin-bottom: 8px; }
.ph-dept-sub-row { display: flex; gap: 8px; align-items: center; }
.ph-dept-sub-row .ps-input { flex: 1; }
.ph-dept-remove-btn,
.ph-dept-add-sub-btn,
.ph-dept-add-btn {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #546e7a;
    background: #ffffff;
    color: #eceff1;
    cursor: pointer;
}
.ph-dept-add-btn { margin-top: 8px; }

.partner-cod-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.partner-cod-qr-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 16px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    color: #111;
}
.partner-cod-qr-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}
.partner-cod-qr-img {
    display: block;
    margin: 12px auto;
    width: 220px;
    height: 220px;
    background: #fff;
}
.partner-cod-qr-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.partner-btn-upi-switch {
    background: #e8f5e9 !important;
    border: 1px solid #2e7d32 !important;
    color: #1b5e20 !important;
    font-weight: 700;
}
.partner-cod-upi-switch-title {
    margin: 0 0 8px;
    font-size: 1rem;
}

.partner-drop-nav-link {
    color: #1565c0;
    font-weight: 700;
    text-decoration: none;
}
.partner-drop-nav-link:active {
    opacity: 0.85;
}

/* Partner image crop overlay */
.partner-crop-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);
    box-sizing: border-box;
}
.partner-crop-overlay.open {
    display: flex;
}
.partner-crop-card {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 14px;
    border: 1px solid #c5cae9;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    padding: 14px 14px 16px;
}
.partner-crop-head {
    font-size: 15px;
    font-weight: 800;
    color: #1a237e;
    margin: 0 0 10px;
}
.partner-crop-stage-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.partner-crop-stage {
    position: relative;
    width: 280px;
    height: 280px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #263238;
    touch-action: none;
    cursor: default;
}
.partner-crop-stage.partner-crop-stage--free {
    background: #1a1f24;
}
.partner-crop-stage.partner-crop-stage--wide {
    width: min(360px, 100%);
    height: 144px;
}
.partner-crop-stage.partner-crop-stage--product-gallery {
    width: min(560px, 100%);
    height: calc(min(560px, 100vw - 48px) * 271 / 360);
    max-height: none;
    background: #fff9e6;
}
.partner-crop-hint {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: #546e7a;
    line-height: 1.35;
}
.partner-crop-img {
    position: absolute;
    left: 0;
    top: 0;
    max-width: none;
    user-select: none;
    pointer-events: none;
    transform: none;
}
.partner-crop-box {
    position: absolute;
    box-sizing: border-box;
    border: 2px solid #ffd54f;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.48);
    cursor: move;
    touch-action: none;
}
.partner-crop-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #1a237e;
    border-radius: 2px;
    box-sizing: border-box;
    z-index: 2;
}
.partner-crop-handle--nw { left: -8px; top: -8px; cursor: nwse-resize; }
.partner-crop-handle--ne { right: -8px; top: -8px; cursor: nesw-resize; }
.partner-crop-handle--sw { left: -8px; bottom: -8px; cursor: nesw-resize; }
.partner-crop-handle--se { right: -8px; bottom: -8px; cursor: nwse-resize; }
.partner-crop-handle--n { left: 50%; top: -8px; margin-left: -8px; cursor: ns-resize; }
.partner-crop-handle--s { left: 50%; bottom: -8px; margin-left: -8px; cursor: ns-resize; }
.partner-crop-handle--e { right: -8px; top: 50%; margin-top: -8px; cursor: ew-resize; }
.partner-crop-handle--w { left: -8px; top: 50%; margin-top: -8px; cursor: ew-resize; }
.partner-crop-mask {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 2px rgba(255, 215, 0, 0.85);
    border-radius: inherit;
    pointer-events: none;
}
.partner-crop-zoom-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #37474f;
    margin: 0 0 12px;
}
.partner-crop-zoom-label input[type="range"] {
    flex: 1;
}
.partner-crop-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.partner-crop-btn {
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #90a4ae;
    background: #eceff1;
    color: #111;
}
.partner-crop-btn-primary {
    background: #1a237e;
    border-color: #1a237e;
    color: #fff;
}

.partner-app-tabbar,
.partner-app-menu,
.partner-app-home-head {
    display: none;
}

@media (max-width: 900px) {
    html, body, .dashboard {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        background: #f4f6f8;
        overflow-x: hidden;
    }
    #partner-store-edit-nav-row {
        display: none !important;
    }
    body.partner-customize-mode #partner-store-edit-nav-row {
        display: flex !important;
        flex-direction: column;
    }
    .partner-overview-store-topbar {
        display: none !important;
    }
    #partner-store-support-btn {
        display: none !important;
    }
    #partner-overview-store {
        display: none !important;
    }
    body.partner-customize-mode #partner-overview-store {
        display: block !important;
        padding: var(--native-safe-top) 12px 8px;
    }
    .partner-main {
        padding-top: calc(12px + var(--native-safe-top));
        padding-bottom: calc(54px + var(--native-safe-bottom, env(safe-area-inset-bottom, 0px)));
    }
    body.partner-customize-mode .partner-main {
        padding-top: 12px;
    }
    .partner-app-home-head:not([hidden]) {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
        width: 100%;
        margin: 0;
        padding: var(--native-safe-top) 12px 10px;
        background: #fff;
        border-bottom: 1px solid #e0e0e0;
        box-sizing: border-box;
        cursor: pointer;
    }
    .partner-app-home-logo {
        display: block;
        height: 28px;
        width: auto;
        max-width: 140px;
        object-fit: contain;
    }
    .partner-app-home-name-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        min-width: 0;
    }
    .partner-app-home-store-name {
        margin: 0;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        color: #111;
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: left;
    }
    .partner-app-home-rating {
        flex: 0 0 auto;
        margin: 0;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 1px;
        color: #2e7d32;
        white-space: nowrap;
        text-align: right;
        cursor: pointer;
    }
    body.partner-app-home-head-on .partner-main {
        padding-top: 12px;
    }
    #partner-customize-btn {
        display: none !important;
    }
    #section-overview .partner-overview-mini-filters,
    #section-overview #partner-overview-analytics,
    #section-overview #partner-overview-ratings,
    #section-overview #partner-overview-ratings-period {
        display: none !important;
    }
    #section-overview #partner-stock-alerts {
        display: block !important;
    }
    #section-overview .stat-card-hint {
        display: none;
    }
    #section-overview .partner-trend-card {
        width: auto;
        max-width: 100%;
        margin: 0 0 12px;
        padding: 10px 8px 8px;
        border: 1px solid #eee;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        box-sizing: border-box;
    }
    #section-overview .partner-trend-plot {
        margin-top: 8px;
        max-height: 148px;
        padding: 4px 18px 0 0;
        overflow: hidden;
    }
    #section-overview .partner-trend-svg {
        left: 0;
        width: 100%;
        top: 0;
        overflow: visible;
    }
    #section-overview .partner-trend-chart {
        height: 148px;
        max-height: 148px;
        gap: 4px;
        margin-top: 0;
        overflow: hidden;
    }
    #section-overview .partner-trend-track {
        flex: 0 0 92px;
        height: 92px;
        max-height: 92px;
        padding-top: 26px;
        overflow: hidden;
    }
    #section-overview .partner-trend-bar {
        width: 16px;
        max-width: 16px;
        padding: 0;
        border-radius: 5px 5px 2px 2px;
    }
    #section-overview .partner-trend-bar-name {
        writing-mode: horizontal-tb;
        transform: none;
        margin-top: 8px;
        font-size: 9px;
        font-weight: 800;
        color: #111;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #section-overview .partner-trend-pct {
        font-size: 10px;
    }
    #section-overview #partner-stats.stat-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        margin: 0;
        padding: 0;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        overflow: hidden;
    }
    #section-overview .stat-card[hidden] { display: none !important; }
    #section-overview .stat-card {
        flex: none;
        min-width: 0;
        min-height: 58px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin: 0;
        padding: 16px 14px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    #section-overview .stat-card[data-partner-stat="pending"],
    #section-overview .stat-card[data-partner-stat="ofd"],
    #section-overview .stat-card[data-partner-stat="returns"],
    #section-overview .stat-card[data-partner-stat="delivered"] {
        border-bottom: 1px solid #f0f0f0;
    }
    #section-overview .stat-card[data-partner-stat="pending"],
    #section-overview .stat-card[data-partner-stat="returns"],
    #section-overview .stat-card[data-partner-stat="cancelled"] {
        border-right: 1px solid #f0f0f0;
    }
    #section-overview .stat-card h4 {
        margin: 0;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        color: #111;
    }
    #section-overview .stat-card p {
        margin: 0;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        color: #111;
    }
    #section-overview .stat-card p.is-pending {
        color: #c62828;
    }
    #section-overview .stat-card p.is-zero {
        color: #111;
    }
    #section-overview #partner-stock-alerts {
        margin-top: 12px;
        min-height: 0;
        padding: 10px 12px;
        border: 1px solid #eee;
        border-left: 0;
        border-radius: 10px;
        background: #fff;
    }
    #section-overview .partner-stock-alerts h3 {
        margin: 0 0 8px;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        color: #111;
    }
    #section-overview .partner-stock-swipe {
        position: relative;
        overflow: hidden;
        margin: 0;
    }
    #section-overview .partner-stock-swipe-del {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 0;
        width: 76px;
        margin: 0;
        padding: 0;
        border: 0;
        background: #c62828;
        color: #fff;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
    }
    #section-overview .partner-stock-alert-item {
        margin: 0;
        padding: 8px 0;
        border: 0;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
        background: #fff;
        gap: 8px;
        font-size: 12px;
        position: relative;
        z-index: 1;
    }
    #section-overview .partner-stock-swipe:last-child .partner-stock-alert-item,
    #section-overview .partner-stock-alert-item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
    #section-overview .partner-stock-alert-item strong {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        color: #111;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    #section-overview .partner-stock-alert-item span {
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        color: #111;
        flex: 0 0 auto;
    }
    #section-overview .partner-stock-alert-item small,
    #section-overview .partner-stock-ack-btn {
        display: none;
    }
    #section-ratings #partner-overview-ratings,
    #section-ratings #partner-overview-ratings-period {
        display: block;
    }
    #section-ratings #partner-overview-ratings-period {
        display: flex;
    }
    .partner-app-tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 8000;
        align-items: stretch;
        justify-content: space-around;
        gap: 0;
        min-height: 54px;
        padding: 2px 4px calc(4px + var(--native-safe-bottom, env(safe-area-inset-bottom, 0px)));
        background: #fff;
        border-top: 1px solid #e0e0e0;
        box-sizing: content-box;
    }
    .partner-app-tab {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        margin: 0;
        padding: 6px 2px;
        border: 0;
        background: transparent;
        color: #546e7a;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.15;
        cursor: pointer;
    }
    .partner-app-tab-ico {
        font-size: 0;
        line-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
    }
    .partner-app-tab-ico svg {
        display: block;
        width: 26px;
        height: 26px;
        stroke-width: 1.9;
    }
    .partner-app-tab-lbl {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .partner-app-tab.is-active,
    .partner-app-tab.is-active .partner-app-tab-lbl,
    .partner-app-tab.is-active .partner-app-tab-ico {
        color: #f9a825 !important;
    }
    .partner-app-tab.is-active .partner-app-tab-ico svg {
        stroke: #f9a825 !important;
        color: #f9a825 !important;
    }
    .partner-app-menu {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: calc(54px + var(--native-safe-bottom, env(safe-area-inset-bottom, 0px)));
        z-index: 7500;
        overflow-y: auto;
        background: #fff;
        padding: var(--native-safe-top) 0 12px;
        box-sizing: border-box;
    }
    .partner-app-menu:not([hidden]) {
        display: block;
    }
    .partner-app-menu-profile {
        padding: 0 16px;
        border-bottom: 1px solid #eee;
        background: #fff;
    }
    .partner-app-menu .partner-overview-store-body {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        align-items: center;
        column-gap: 12px;
        row-gap: 2px;
        min-width: 0;
        padding: 10px 0;
    }
    .partner-app-menu .partner-overview-photo-stack {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 52px;
        height: auto;
        flex-shrink: 0;
        cursor: pointer;
        grid-column: 1;
        grid-row: 1 / 3;
    }
    .partner-app-menu .partner-overview-store-text {
        grid-column: 2;
        grid-row: 1 / 3;
    }
    .partner-app-menu .partner-app-menu-edit-rating {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
        margin: 4px 0 0;
    }
    .partner-app-menu .partner-overview-photo {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        font-size: 26px;
        overflow: hidden;
        border: 2px solid #ffd700;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        background: #f5f5f5;
    }
    .partner-app-menu .partner-overview-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .partner-app-menu .partner-rekyc-photo-badge {
        right: -8px;
        bottom: 22px;
        font-size: 8px;
        padding: 2px 4px;
    }
    .partner-app-menu .partner-overview-store-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        flex: 1;
        min-width: 0;
        padding: 0;
    }
    .partner-app-menu .partner-overview-store-text h3 {
        margin: 0;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.2;
        color: #111;
        word-break: break-word;
    }
    .partner-app-menu .partner-overview-store-text .partner-role-inline {
        margin: 0;
        font-size: 12px;
        font-weight: 600;
        color: #546e7a;
    }
    .partner-app-menu .partner-overview-store-text .partner-rating-summary {
        display: none;
    }
    .partner-app-menu .partner-overview-store-text .partner-followers-line {
        display: block;
        margin: 0;
        font-size: 12px;
        font-weight: 700;
    }
    .partner-app-menu .partner-app-menu-edit-rating .partner-rating-summary {
        display: block;
        flex: 1;
        min-width: 0;
        margin: 0;
        font-size: 13px;
        font-weight: 700;
        color: inherit;
    }
    .partner-app-menu .partner-app-menu-edit-rating .partner-star--on { color: #ffb300; }
    .partner-app-menu .partner-app-menu-edit-rating .partner-star--off { color: #bdbdbd; }
    .partner-app-menu .partner-app-menu-edit-rating .partner-rating-summary > span:not(.partner-star) {
        color: #111;
    }
    .partner-app-menu .partner-store-edit-support-row {
        display: none;
    }
    .partner-app-menu #partner-store-edit-btn {
        display: block;
        width: 52px;
        min-width: 52px;
        margin: 0;
        padding: 3px 6px;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        border-radius: 6px;
        border: 1px solid #c5c5c5;
        background: #fff;
        color: #111;
        cursor: pointer;
        box-sizing: border-box;
    }
    .partner-app-menu-item {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 44px;
        margin: 0;
        padding: 10px 16px;
        border: 0;
        background: #fff;
        color: #111;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.2;
        text-align: left;
        cursor: pointer;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }
    .partner-app-menu-ico {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }
    .partner-app-menu-ico svg {
        display: block;
        width: 20px;
        height: 20px;
    }
    .partner-app-menu-lbl {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .partner-app-menu-qd {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        font-weight: 800;
        color: #546e7a;
        flex: 0 0 auto;
    }
    .partner-app-menu-qd svg {
        display: block;
        width: 24px;
        height: 16px;
    }
    .partner-app-menu-qd.is-on {
        color: #1b5e20;
    }
    .partner-app-menu-qd.is-off {
        color: #546e7a;
    }
    .partner-app-menu-item--logout .partner-app-menu-lbl {
        color: #c62828;
    }

    #section-orders .partner-orders-title {
        margin: 0 0 10px;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.2;
        text-align: left;
        color: #111;
    }
    #section-orders .partner-orders-filter-bar {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        gap: 5px;
        margin: 0 0 18px;
        padding: 0;
        grid-template-columns: none;
        scrollbar-width: none;
    }
    #section-orders .partner-orders-filter-bar::-webkit-scrollbar {
        display: none;
    }
    #section-orders .partner-order-filter-btn {
        width: auto;
        flex: 0 0 auto;
        min-width: auto;
        padding: 4px 8px;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;
        border-radius: 999px;
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
    }
    #section-orders .partner-order-filter-btn .partner-order-filter-count {
        margin-left: 3px;
        min-width: 0;
        padding: 0 4px;
        font-size: 10px;
    }
    #section-orders .partner-orders-period-label {
        display: none;
    }
    #section-orders .partner-orders-period-bar {
        display: block;
        margin: 8px 0 0;
        padding: 0 0 10px;
        border-bottom: 1px solid #e0e0e0;
    }
    #section-orders #orders-content {
        margin-top: 10px;
    }
    #section-orders .partner-orders-period-strip {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        gap: 1px;
        scrollbar-width: none;
    }
    #section-orders .partner-orders-period-strip::-webkit-scrollbar {
        display: none;
    }
    #section-orders .partner-order-period-btn {
        flex: 0 0 auto;
        gap: 2px;
        padding: 2px 4px;
        font-size: 10px;
        border-radius: 6px;
    }
    #section-orders .partner-order-period-btn-label,
    #section-orders .partner-order-period-btn-count {
        font-size: 10px;
    }
    #section-orders .partner-order-empty-btn {
        display: inline-block;
        margin-top: 8px;
        padding: 8px 14px;
        border: 1px solid #eee;
        border-radius: 999px;
        background: #fff;
        font-size: 12px;
        font-weight: 800;
        color: #111;
        cursor: pointer;
    }
    #section-orders .partner-order-card {
        display: block;
        width: 100%;
        margin: 0 0 8px;
        padding: 12px 14px;
        border: 1px solid #eee;
        border-radius: 12px;
        background: #fff;
        text-align: left;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        font: inherit;
        color: inherit;
        cursor: pointer;
        box-sizing: border-box;
    }
    #section-orders .partner-order-card-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 6px;
    }
    #section-orders .partner-order-card-row:last-child {
        margin-bottom: 0;
    }
    #section-orders .partner-order-card-amt {
        font-weight: 800;
        color: #111;
        flex: 0 0 auto;
    }
    #section-orders .partner-order-card-sub {
        display: block;
        margin-top: 2px;
        font-size: 11px;
        font-weight: 600;
        color: #607d8b;
    }
    #section-order-detail .partner-order-doc-btns {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        width: 100%;
        gap: 6px;
        margin-left: 0;
    }
    #section-order-detail .partner-order-doc-btns .partner-return-detail-btn {
        width: 100%;
        min-width: 0;
        height: 28px;
        padding: 0 4px;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.1;
        border-radius: 6px;
        white-space: nowrap;
        box-sizing: border-box;
    }
    #section-order-detail .partner-order-detail-head {
        padding: 10px 12px;
        border-color: #eee;
        border-radius: 12px;
    }
    #section-order-detail .partner-order-meta-row {
        flex-wrap: wrap;
        gap: 12px 16px;
        padding: 12px 14px;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
    }
    #section-order-detail .partner-order-meta-item--update {
        margin-left: 0;
        align-items: stretch;
        width: 100%;
        text-align: left;
    }
    #section-order-detail .partner-order-status-select {
        width: 100%;
        min-width: 0;
    }

    #section-catalog .partner-catalog-head {
        margin: 0 0 10px;
        gap: 8px;
        flex-wrap: nowrap;
        align-items: center;
    }
    #section-catalog .partner-catalog-head h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.2;
        text-align: left;
        color: #111;
    }
    #section-catalog .partner-add-product-btn {
        font-size: 12px;
        font-weight: 700;
        padding: 6px 10px;
        white-space: nowrap;
    }
    #section-catalog .partner-catalog-wrap {
        overflow-x: hidden;
    }
    #section-catalog .catalog-hint {
        display: none;
    }
    #section-catalog .partner-catalog-card {
        margin: 0 0 8px;
        padding: 12px 14px;
        border: 1px solid #eee;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        box-sizing: border-box;
    }
    #section-catalog .partner-catalog-card-top {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    #section-catalog .partner-catalog-card .partner-catalog-photo {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
        height: 80px;
        min-height: 80px;
        max-height: 80px;
        border-radius: 8px;
        overflow: hidden;
        flex: 0 0 80px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    #section-catalog .partner-catalog-card .partner-catalog-photo img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
    }
    #section-catalog .partner-catalog-card .partner-catalog-photo--empty {
        height: 80px;
        max-height: 80px;
        line-height: 80px;
        font-size: 28px;
    }
    #section-catalog .partner-catalog-card-info {
        min-width: 0;
        flex: 1 1 auto;
    }
    #section-catalog .partner-catalog-card-info strong {
        display: block;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        color: #111;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    #section-catalog .partner-catalog-card-price {
        display: block;
        margin-top: 4px;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        color: #111;
    }
    #section-catalog .partner-catalog-card-meta {
        display: block;
        margin-top: 4px;
    }
    #section-catalog .partner-catalog-card-meta .partner-stock-left-num {
        font-size: 13px;
    }
    #section-catalog .partner-catalog-card-meta .partner-stock-left small {
        font-size: 10px;
    }
    #section-catalog .partner-catalog-card-status {
        display: block;
        margin-top: 4px;
        font-size: 11px;
        font-weight: 600;
        color: #607d8b;
    }
    #section-catalog .partner-catalog-card-acts {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 6px;
        margin-top: 10px;
    }
    #section-catalog .partner-catalog-card-acts .partner-stock-btn,
    #section-catalog .partner-catalog-card-acts .partner-gallery-btn,
    #section-catalog .partner-catalog-card-acts .partner-hide-btn,
    #section-catalog .partner-catalog-card-acts .partner-edit-btn,
    #section-catalog .partner-catalog-card-acts .gallery-count {
        width: 100%;
        min-width: 0;
        height: 28px;
        margin: 0;
        padding: 0 2px;
        font-size: 10px;
        font-weight: 700;
        line-height: 28px;
        border-radius: 6px;
        text-align: center;
        box-sizing: border-box;
    }

    #section-product-form .partner-add-gallery-row-7,
    #section-product-form .pg-photo-grid.partner-add-gallery-row-7,
    #section-product-gallery .partner-add-gallery-row-7,
    #section-product-gallery .pg-photo-grid.partner-add-gallery-row-7 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
        width: 100%;
    }
    #section-product-form .partner-add-gallery-row-7 .pg-slot,
    #section-product-form .partner-add-gallery-row-7 .partner-add-gcard,
    #section-product-gallery .partner-add-gallery-row-7 .pg-slot,
    #section-product-gallery .partner-add-gallery-row-7 .partner-add-gcard {
        padding: 6px;
        min-width: 0;
        overflow: hidden;
    }
    #section-product-form .partner-add-gallery-row-7 .pg-slot-label,
    #section-product-gallery .partner-add-gallery-row-7 .pg-slot-label {
        font-size: 10px;
        margin: 0 0 4px;
        white-space: nowrap;
    }
    #section-product-form .partner-add-gallery-row-7 .pg-slot-preview,
    #section-product-gallery .partner-add-gallery-row-7 .pg-slot-preview {
        min-height: 0;
        aspect-ratio: 1;
        margin-bottom: 6px;
    }
    #section-product-form .partner-add-gallery-row-7 .pg-slot-empty,
    #section-product-gallery .partner-add-gallery-row-7 .pg-slot-empty {
        height: auto;
        min-height: 0;
        aspect-ratio: 1;
        font-size: 10px;
    }
    #section-product-form .partner-add-gallery-row-7 .pg-slot-actions,
    #section-product-gallery .partner-add-gallery-row-7 .pg-slot-actions {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }
    #section-product-form .partner-add-gallery-row-7 .partner-add-gcard-tick,
    #section-product-gallery .partner-add-gallery-row-7 .partner-add-gcard-tick {
        flex: 0 0 auto;
        gap: 2px !important;
        margin: 0 !important;
        font-size: 9px !important;
        line-height: 1;
        max-width: 42px;
        overflow: hidden;
    }
    #section-product-form .partner-add-gallery-row-7 .partner-add-gcard-tick input,
    #section-product-gallery .partner-add-gallery-row-7 .partner-add-gcard-tick input {
        width: 12px !important;
        height: 12px !important;
        margin: 0 !important;
        flex-shrink: 0;
    }
    #section-product-form .partner-add-gallery-row-7 .pg-slot button,
    #section-product-gallery .partner-add-gallery-row-7 .pg-slot button {
        flex: 0 0 auto;
        min-width: 0;
        height: 22px;
        padding: 0 6px;
        font-size: 9px;
        line-height: 22px;
        border-radius: 5px;
    }
    #section-product-form .partner-add-gallery-row-7 .pg-remove-btn,
    #section-product-gallery .partner-add-gallery-row-7 .pg-remove-btn {
        width: 22px;
        padding: 0;
        font-size: 11px;
    }

    #section-wallet > h2 {
        margin: 0 0 10px;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.2;
        text-align: left;
        color: #111;
    }
    #section-wallet .partner-wallet-cards {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        grid-template-columns: none;
        gap: 6px;
        margin: 0 0 12px;
        padding: 0;
        scrollbar-width: none;
    }
    #section-wallet .partner-wallet-cards::-webkit-scrollbar {
        display: none;
    }
    #section-wallet .partner-wallet-card {
        flex: 0 0 auto;
        width: auto;
        min-width: 112px;
        padding: 8px 10px;
        border-radius: 10px;
        box-shadow: none;
    }
    #section-wallet .partner-wallet-card h4 {
        margin: 0 0 4px;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        text-transform: none;
        color: #111;
    }
    #section-wallet .partner-wallet-card p {
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        color: #111;
    }
    #section-wallet .partner-wallet-card small {
        display: none;
    }
    #section-wallet .partner-wallet-panel {
        margin: 0 0 12px;
    }
    #section-wallet .partner-wallet-panel h3 {
        display: none;
    }
    #section-wallet .partner-wallet-actions,
    #section-wallet .partner-wallet-actions-left,
    #section-wallet .partner-statement-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin: 0 0 8px;
        min-width: 0;
    }
    #section-wallet .partner-wallet-action {
        min-width: 0;
        gap: 4px;
    }
    #section-wallet .partner-wallet-btn {
        width: 100%;
        height: 28px;
        padding: 0 6px;
        font-size: 10px;
        border-radius: 6px;
        box-sizing: border-box;
    }
    #section-wallet .partner-wallet-action-note {
        font-size: 10px;
    }
    #section-wallet .partner-statement {
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid #e0e0e0;
    }
    #section-wallet .partner-statement-head h3 {
        margin: 0 0 10px;
        font-size: 18px;
        font-weight: 800;
        color: #111;
    }
    #section-wallet .partner-orders-period-label {
        display: none;
    }
    #section-wallet .partner-orders-period-bar {
        display: block;
        margin: 0 0 10px;
        padding: 0 0 8px;
        border-bottom: 1px solid #e0e0e0;
    }
    #section-wallet .partner-orders-period-strip {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1px;
        scrollbar-width: none;
    }
    #section-wallet .partner-order-period-btn {
        flex: 0 0 auto;
        padding: 2px 4px;
        font-size: 10px;
    }
    #section-wallet #partner-statement-body {
        min-height: 0;
    }
    #section-wallet .partner-statement-range {
        font-size: 10px;
        margin: 0 0 8px;
    }
    #section-wallet .partner-statement-kpis {
        grid-template-columns: 1fr 1fr;
        gap: 0;
        margin: 0 0 12px;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        overflow: hidden;
    }
    #section-wallet .partner-statement-kpi {
        padding: 12px 14px;
        border: 0;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        box-shadow: none;
        background: transparent;
    }
    #section-wallet .partner-statement-kpi:nth-child(odd) {
        border-right: 1px solid #f0f0f0;
    }
    #section-wallet .partner-statement-kpi:nth-last-child(-n+2) {
        border-bottom: 0;
    }
    #section-wallet .partner-statement-kpi span {
        font-size: 12px;
        font-weight: 600;
        color: #111;
    }
    #section-wallet .partner-statement-kpi strong {
        font-size: 13px;
        font-weight: 700;
        color: #111;
    }
    #section-wallet .partner-statement-kpi small {
        display: none;
    }
    #section-wallet .partner-wallet-line-card {
        margin: 0 0 8px;
        padding: 12px 14px;
        border: 1px solid #eee;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }
    #section-wallet .partner-wallet-line-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 6px;
    }
    #section-wallet .partner-wallet-line-row:last-child {
        margin-bottom: 0;
    }
    #section-wallet .partner-wallet-line-row strong,
    #section-wallet .partner-wallet-line-row span {
        font-size: 12px;
        font-weight: 700;
        color: #111;
    }
    #section-wallet .partner-wallet-line-row small,
    #section-wallet .partner-wallet-line-sub {
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: #607d8b;
    }
    #section-wallet .partner-wallet-line-btn {
        height: 24px;
        padding: 0 8px;
        border: 0;
        border-radius: 6px;
        background: #1565c0;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
    }

    .partner-section > h2 {
        margin: 0 0 10px;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.2;
        color: #111;
    }
    #section-settings .ps-form,
    #section-settings .partner-forgot-panel--settings,
    #section-settings .partner-forgot-panel--settings .partner-forgot-btn,
    #section-settings .partner-forgot-panel--settings input {
        max-width: 100%;
    }
    #section-settings .partner-forgot-panel h3 {
        font-size: 15px;
        font-weight: 800;
        color: #111;
    }
    #section-support .ps-sup-page {
        max-width: 100%;
        padding: 0 0 16px;
    }
    #section-support .ps-sup-back:not(.ps-sup-back--inline) {
        display: none;
    }
    #section-support .ps-sup-tabs {
        gap: 6px;
        margin-bottom: 12px;
    }
    #section-support .ps-sup-tab {
        padding: 8px 4px;
        font-size: 11px;
        border-radius: 8px;
    }
    #section-support .ps-form,
    #section-support .ps-input,
    #section-support .ps-save-btn {
        max-width: 100%;
    }
    #section-support .ps-input {
        font-size: 14px;
    }
    #section-ratings #partner-overview-ratings {
        min-height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
    #section-ratings #partner-overview-ratings-period {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        margin: 0 0 12px;
        padding: 0 0 2px;
        scrollbar-width: none;
    }
    #section-ratings #partner-overview-ratings-period::-webkit-scrollbar {
        display: none;
    }
    #section-ratings .partner-overview-period-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 11px;
        font-weight: 700;
        padding: 6px 10px;
    }
    #section-ratings #partner-overview-ratings-summary {
        margin: 0 0 10px;
        font-size: 13px;
        font-weight: 700;
    }
    #section-analytics h2 {
        margin: 0 0 12px;
        font-size: 16px;
        color: #111;
    }
    #section-analytics .partner-pa-kpis {
        gap: 6px;
        margin-bottom: 12px;
    }
    #section-analytics .partner-pa-kpi {
        padding: 10px 6px;
    }
    #section-analytics .partner-pa-kpi span {
        font-size: 10px;
    }
    #section-analytics .partner-pa-kpi strong {
        font-size: 16px;
    }
    #section-analytics .partner-pa-card {
        padding: 10px 12px;
        margin-bottom: 8px;
    }
}
