* {
    box-sizing: border-box;
}

/* Override: tighten permission dropdown spacing to ensure visible change */
.users-create-form .users-permission-dropdown,
.users-table .users-permission-dropdown,
.users-permission-dropdown {
    gap: 0 !important;
    padding: 2px !important;
}

.users-create-form .users-permission-dropdown label,
.users-table .users-permission-dropdown label,
.users-permission-dropdown label {
    padding: 2px 6px !important;
    min-height: 18px !important;
    gap: 6px !important;
    line-height: 18px !important;
}

.users-permission-dropdown label input[type="checkbox"] {
    margin-right: 6px !important;
}


:root {
    --dash-bg: #f5f7fb;
    --dash-bg-soft: #eef6f7;
    --dash-surface: #ffffff;
    --dash-surface-soft: #f8fafc;
    --dash-line: #dbe5ee;
    --dash-line-strong: #c7d3df;
    --dash-text: #111827;
    --dash-text-soft: #334155;
    --dash-muted: #64748b;
    --dash-primary: #0f766e;
    --dash-primary-strong: #115e59;
    --dash-primary-soft: #e6fffa;
    --dash-primary-tint: rgba(20, 184, 166, 0.14);
    --dash-accent: #2563eb;
    --dash-accent-soft: #eff6ff;
    --dash-lime: #65a30d;
    --dash-lime-soft: #ecfccb;
    --dash-warning: #d97706;
    --dash-warning-soft: #fff7ed;
    --dash-danger: #dc2626;
    --dash-danger-soft: #fef2f2;
    --dash-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
    --dash-shadow-md: 0 18px 46px rgba(15, 23, 42, 0.1);
    --dash-gradient: linear-gradient(135deg, #0f766e, #2563eb);
    --dash-gradient-soft: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(37, 99, 235, 0.1));
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1f2937;
    background: #f4f7fb;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.72) rgba(248, 250, 252, 0.9);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.9);
}

*::-webkit-scrollbar-thumb {
    border: 2px solid rgba(248, 250, 252, 0.9);
    border-radius: 999px;
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8, #64748b);
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    color: #1d4ed8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.auth-shell {
    width: min(100% - 32px, 420px);
    margin: 48px auto;
}

body:has(.admin-dashboard) .auth-shell {
    width: 95%;
    margin: 24px auto;
}

body:has(.admin-dashboard) {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.13), transparent 32%),
        #f6f8fc;
}

.panel {
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.page {
    width: min(100% - 32px, 960px);
}

h1 {
    margin: 0 0 18px;
    font-size: 24px;
}

label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 500;
}

input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 11px 12px;
    font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #14b8a6;
    outline: 3px solid rgba(20, 184, 166, 0.18);
    outline-offset: 1px;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    padding: 0 16px;
    color: #fff;
    background: #2563eb;
    font-weight: 600;
    cursor: pointer;
}

.button.secondary {
    color: #1f2937;
    background: #e5e7eb;
}

.button-compact {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 13px;
}

.icon-action {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    background: #ffffff;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.icon-action:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
    text-decoration: none;
}

.logout-action {
    color: #dc2626;
}

.icon-action:focus-visible,
.admin-nav a:focus-visible,
.module-action:focus-visible,
.button:focus-visible {
    outline: 3px solid rgba(20, 184, 166, 0.22);
    outline-offset: 2px;
}

.icon-action svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 18px;
}

.muted {
    color: #64748b;
    font-size: 14px;
}

.error {
    margin: 0 0 14px;
    color: #b91c1c;
    font-weight: 600;
}

.alert {
    margin: 0 0 14px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px;
    background: #eff6ff;
    color: #1e40af;
}

.toast-wrap {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 1000;
    width: min(360px, calc(100vw - 32px));
    animation: toast-in 180ms ease-out;
}

.toast-wrap.is-hiding {
    animation: toast-out 200ms ease-in forwards;
}

.toast-message {
    display: grid;
    grid-template-columns: 34px 1fr 30px;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    border: 1px solid rgba(20, 184, 166, 0.24);
    border-radius: 8px;
    padding: 10px 10px 10px 12px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(12px);
}

.toast-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
}

.toast-icon svg,
.toast-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.toast-close {
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border-radius: 7px;
    color: #64748b;
    background: transparent;
}

.toast-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

@keyframes toast-in {
    from {
        transform: translateY(-8px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    to {
        transform: translateY(-8px);
        opacity: 0;
    }
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.admin-dashboard {
    display: grid;
    grid-template-columns: 248px 1fr;
    min-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

.admin-sidebar {
    padding: 20px 14px;
    border-right: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 54%, #eefdfa 100%);
}

.admin-brand {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    padding: 0 8px 20px;
}

.admin-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.admin-brand strong,
.admin-brand small {
    display: block;
}

.admin-brand strong {
    font-weight: 600;
}

.admin-brand small {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.admin-nav {
    display: grid;
    gap: 6px;
}

.admin-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.admin-nav a:hover,
.admin-nav a.is-active {
    color: #0f766e;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.11), rgba(20, 184, 166, 0.13));
    text-decoration: none;
}

.admin-nav svg,
.module-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.admin-main {
    min-width: 0;
    padding: 12px 18px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    min-height: 40px;
    margin-bottom: 12px;
}

.admin-user-summary {
    margin: 0;
    line-height: 1.28;
}

.admin-user-summary strong {
    color: var(--dash-text);
    font-weight: 700;
}

.admin-user-summary span {
    font-size: 12px;
}

.admin-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.stat-card,
.admin-module {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.stat-card {
    display: grid;
    gap: 6px;
    padding: 16px;
}

.stat-card span {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.stat-card strong {
    color: #0f766e;
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
}

.stat-card small {
    color: #64748b;
    font-size: 12px;
}

.overview-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid rgba(20, 184, 166, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.98) 54%, rgba(240, 253, 250, 0.96)),
        #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.overview-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.overview-hero h2 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 600;
}

.overview-hero p {
    max-width: 620px;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.overview-hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    color: #ffffff;
    background: #0f766e;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.overview-hero-action svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.overview-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-card {
    position: relative;
    overflow: hidden;
    min-height: 126px;
    padding: 17px;
}

.overview-card::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -22px;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.11);
}

.overview-card.is-orders::after {
    background: rgba(59, 130, 246, 0.12);
}

.overview-card.is-revenue::after {
    background: rgba(132, 204, 22, 0.16);
}

.overview-card.is-attention::after {
    background: rgba(245, 158, 11, 0.15);
}

.overview-card strong {
    font-size: 25px;
}

.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 16px;
    margin-top: 16px;
}

.overview-grid.is-secondary {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.overview-module-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.overview-module-head h3 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
}

.overview-module-head p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.overview-module-head > span {
    color: #0f766e;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.overview-revenue-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    margin-left: 0;
}

.overview-revenue-total {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    color: #0f766e;
    background: #ecfdf5;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.overview-bars {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(58px, 1fr);
    gap: 10px;
    align-items: end;
    overflow-x: auto;
    min-height: 230px;
    padding-top: 6px;
    padding-bottom: 4px;
}

.overview-bar-item {
    display: grid;
    gap: 6px;
    min-width: 0;
    text-align: center;
}

.overview-bar-value {
    min-width: 0;
    overflow: hidden;
    color: #0f766e;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-bar-track {
    position: relative;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f5f9;
}

.overview-bar-track span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 12%;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #22c55e, #0f766e);
}

.overview-bar-item strong {
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.overview-bar-item small {
    color: #64748b;
    font-size: 11px;
}

.overview-status-list,
.overview-product-list,
.overview-insights {
    display: grid;
    gap: 12px;
}

.overview-status-row {
    display: grid;
    gap: 7px;
}

.overview-status-row > div:first-child,
.overview-product-row > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.overview-status-row span,
.overview-product-row strong,
.overview-insights span {
    min-width: 0;
    overflow: hidden;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-status-row strong,
.overview-product-row em,
.overview-insights strong {
    color: #0f172a;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

.overview-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #f1f5f9;
}

.overview-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #14b8a6;
}

.overview-status-row.is-new .overview-progress span { background: #06b6d4; }
.overview-status-row.is-confirmed .overview-progress span { background: #3b82f6; }
.overview-status-row.is-shipping .overview-progress span { background: #f59e0b; }
.overview-status-row.is-completed .overview-progress span { background: #22c55e; }
.overview-status-row.is-cancelled .overview-progress span { background: #94a3b8; }

.overview-product-row {
    position: relative;
    display: grid;
    gap: 7px;
    overflow: hidden;
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.overview-product-row span {
    color: #0f766e;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.overview-product-row i {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #84cc16, #14b8a6);
}

.overview-insights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-insights div {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.overview-insights strong {
    color: #0f766e;
    font-size: 22px;
}

.overview-empty {
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    background: #f8fafc;
    font-size: 13px;
    text-align: center;
}

.admin-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.admin-module {
    display: grid;
    gap: 14px;
    padding: 14px;
}

.admin-section {
    margin-top: 16px;
}

.module-head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.module-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #0f766e;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.11), rgba(20, 184, 166, 0.14));
}

.module-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
    font-weight: 600;
}

.module-head p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.product-create-button {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 7px;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.16);
    white-space: nowrap;
}

.product-create-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    fill: none;
}

.module-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #eef2f7;
}

.module-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #eef2f7;
    color: #64748b;
    font-size: 13px;
}

.module-list strong {
    color: #334155;
    font-weight: 500;
    text-align: right;
}

.module-action {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    padding: 0 14px;
    border-radius: 7px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(20, 184, 166, 0.18);
}

.module-action:hover {
    text-decoration: none;
    background: linear-gradient(135deg, #1d4ed8, #0f766e);
}

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

.settings-section-title {
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
    color: #0f766e;
    font-size: 14px;
    font-weight: 600;
}

.settings-collapsible {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.settings-collapsible summary {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    padding: 0 14px;
    color: #0f766e;
    background: #f8fafc;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
}

.settings-collapsible summary::-webkit-details-marker {
    display: none;
}

.settings-collapsible summary:hover {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.settings-collapsible summary svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: transform 160ms ease;
}

.settings-collapsible[open] summary svg {
    transform: rotate(180deg);
}

.settings-collapsible .settings-grid {
    margin-top: 14px;
}

.settings-grid label,
.settings-grid .settings-picker-box {
    display: grid;
    gap: 7px;
    margin: 0;
}

.settings-grid .settings-wide {
    grid-column: 1 / -1;
}

.settings-homepage-status { grid-column: 1; }
.settings-maintenance { grid-column: 2; }

.settings-grid:has(.settings-shop-rating) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.settings-grid:has(.settings-shop-rating) > label:not(.settings-shop-rating):not(.settings-shop-items):not(.settings-shop-sold):not(.settings-shop-reply):not(.settings-shop-warehouse):not(.settings-shop-like):not(.settings-shop-comment):not(.settings-shop-share),
.settings-grid:has(.settings-shop-rating) > .settings-picker-box {
    grid-column: 1 / -1;
}

.settings-grid:has(.settings-shop-rating) .settings-shop-logo {
    grid-column: 1 / 3;
}

.settings-grid:has(.settings-shop-rating) .settings-search-placeholder {
    grid-column: 3 / 7;
}

.settings-shop-rating { grid-column: 1 / 3; }
.settings-shop-items { grid-column: 3 / 5; }
.settings-shop-sold { grid-column: 5 / 7; }
.settings-shop-reply { grid-column: 1 / 4; }
.settings-shop-warehouse { grid-column: 4 / 7; }
.settings-shop-like { grid-column: 1 / 3; }
.settings-shop-comment { grid-column: 3 / 5; }
.settings-shop-share { grid-column: 5 / 7; }

.settings-shop-logo {
    grid-column: 1;
}

.settings-search-placeholder {
    grid-column: 2 / -1;
}

.settings-grid label span,
.settings-grid .settings-picker-box > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
}

.settings-grid input,
.settings-grid textarea,
.settings-grid select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 11px 12px;
    color: #0f172a;
    background: #ffffff;
    font: inherit;
    font-size: 14px;
}

.settings-grid input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.settings-grid input[type="number"]::-webkit-outer-spin-button,
.settings-grid input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.settings-grid input:focus,
.settings-grid textarea:focus,
.settings-grid select:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
    outline: 0;
}

.settings-grid .choices {
    margin: 0;
    font-size: 14px;
}

.settings-grid .choices__inner {
    min-height: 43px;
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 7px 38px 7px 12px;
    color: #0f172a;
    background: #ffffff;
    font-size: 14px;
}

.settings-grid .choices.is-focused .choices__inner,
.settings-grid .choices.is-open .choices__inner {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.settings-grid .choices[data-type*="select-one"]::after {
    right: 14px;
    border-color: #64748b transparent transparent;
}

.settings-grid .choices[data-type*="select-one"].is-open::after {
    border-color: transparent transparent #14b8a6;
}

.settings-grid .choices__list--single {
    padding: 0;
}

.settings-grid .choices__list--dropdown,
.settings-grid .choices__list[aria-expanded] {
    z-index: 20;
    overflow: hidden;
    border-color: #14b8a6;
    border-radius: 7px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.settings-grid .choices__list--dropdown .choices__item,
.settings-grid .choices__list[aria-expanded] .choices__item {
    color: #334155;
    font-size: 14px;
}

.settings-grid .choices__list--dropdown .choices__item--selectable.is-highlighted,
.settings-grid .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    color: #0f766e;
    background: #ecfdf5;
}

.settings-grid input[type="color"] {
    height: 43px;
    padding: 5px;
}

.settings-grid textarea {
    resize: vertical;
}

.settings-wide {
    grid-column: 1 / -1;
}

.settings-picker {
    position: relative;
}

.image-select-box {
    width: 43px;
    min-height: 43px;
    display: block;
    padding: 0;
    color: #475569;
    background: transparent;
    font-weight: 500;
}

.image-select-box:hover {
    color: #0f766e;
    text-decoration: none;
}

.image-select-box:focus-visible {
    outline: 3px solid rgba(20, 184, 166, 0.22);
    outline-offset: 3px;
}

.image-select-preview {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    color: #0f766e;
    background: linear-gradient(135deg, #ffffff, #f0fdfa);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.image-select-box.is-empty .image-select-preview {
    border-style: dashed;
    border-color: rgba(20, 184, 166, 0.5);
}

.image-select-box:hover .image-select-preview {
    border-color: #14b8a6;
    background: #ecfdf5;
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.12);
}

.image-select-preview img {
    width: auto;
    height: 100%;
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.image-select-preview svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.settings-picker-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.picker-button {
    min-height: 43px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 0 12px;
    color: #0f766e;
    background: #ecfdf5;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.picker-button:hover {
    border-color: #14b8a6;
    background: #dffaf4;
}

.image-picker-modal[hidden] {
    display: none;
}

.image-picker-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(15, 23, 42, 0.46);
}

.image-picker-dialog {
    width: min(100%, 760px);
    max-height: min(82dvh, 720px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.image-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.image-picker-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 600;
}

.image-picker-close {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    margin-left: auto;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    background: #ffffff;
}

.image-picker-close:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

.image-picker-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    fill: none;
}

.image-picker-panel {
    display: grid;
    grid-template-columns: repeat(4, 150px);
    align-content: start;
    justify-content: center;
    gap: 10px;
    overflow-y: auto;
    padding: 14px;
    background: #f8fafc;
}

.image-option {
    width: 150px;
    height: 174px;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: 136px 16px;
    align-items: start;
    justify-content: stretch;
    gap: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 7px;
    color: #334155;
    background: #ffffff;
    font-weight: 500;
    text-align: left;
}

.image-option:hover {
    border-color: #14b8a6;
    background: #f0fdfa;
}

.image-option.is-selected,
.multi-image-option.is-selected {
    border-color: #14b8a6;
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.image-option img {
    width: 100%;
    height: 136px;
    display: block;
    border-radius: 5px;
    object-fit: cover;
    background: #f1f5f9;
}

.image-option span {
    min-width: 0;
    overflow: hidden;
    color: #475569;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-picker-empty {
    grid-column: 1 / -1;
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.multi-image-field {
    display: block;
}

.multi-image-selected {
    position: relative;
    min-height: 43px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 6px 54px 6px 8px;
    background: #ffffff;
}

.multi-image-thumb {
    width: 36px;
    height: 36px;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #f1f5f9;
}

.multi-image-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.multi-image-empty {
    padding: 0 6px;
    color: #94a3b8;
    font-size: 13px;
}

.multi-image-add {
    position: absolute;
    right: 6px;
    top: 50%;
    width: 36px;
    height: 36px;
    min-height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: 7px;
    color: #0f766e;
    background: #ecfdf5;
    transform: translateY(-50%);
}

.multi-image-add:hover {
    border-color: #14b8a6;
    background: #dffaf4;
}

.multi-image-add svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.multi-image-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.shop-gallery-selected {
    position: static;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 8px;
    align-items: stretch;
    border: 0;
    padding: 0;
    background: transparent;
}

.shop-gallery-selected .product-image-add {
    position: static;
    transform: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.admin-table th {
    color: #475569;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-table td {
    color: #1f2937;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: #047857;
    background: #d1fae5;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-pill.is-hidden {
    color: #667085;
    background: #eef2f7;
}

.users-panel {
    margin-top: 18px;
}

.users-create-form {
    display: grid;
    grid-template-columns: minmax(150px, 0.9fr) minmax(220px, 1.15fr) minmax(170px, 0.9fr) 120px 180px 158px;
    gap: 10px;
    align-items: end;
    margin: 18px 0;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.users-create-form label,
.users-row-form,
.users-password-form,
.users-permission-menu {
    min-width: 0;
}

.users-create-form label {
    display: grid;
    gap: 6px;
}

.users-create-form label,
.users-create-form .users-permission-menu {
    align-self: end;
    align-content: end;
}

.users-create-form span {
    color: #475569;
    font-size: 12px;
    font-weight: 500;
}

.users-permission-menu {
    position: relative;
    display: grid;
    gap: 6px;
}

.users-permission-caption {
    color: #475569;
    font-size: 12px;
    font-weight: 500;
}

.users-permission-toggle {
    width: 100%;
    min-height: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.users-permission-toggle span {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-overflow: ellipsis;
}

/* Prevent the permission toggle/button from expanding when many items are selected */
.users-permission-menu,
.users-permission-toggle,
.users-create-form .users-permission-toggle,
.users-table .users-permission-toggle {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.users-permission-toggle span {
    display: inline-block !important;
    max-width: calc(100% - 36px) !important; /* leave room for caret */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.users-permission-menu.is-open .users-permission-toggle,
.users-permission-toggle:hover {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.users-permission-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 160ms ease;
}

.users-permission-menu.is-open .users-permission-caret {
    transform: rotate(180deg);
}

.users-permission-dropdown {
    position: fixed;
    top: var(--users-permission-top, 0);
    left: var(--users-permission-left, 0);
    z-index: 40;
    width: var(--users-permission-width, 210px);
    max-width: calc(100vw - 10px);
    display: grid;
    gap: 0;
    max-height: none;
    overflow: visible;
    margin: 0;
    padding: 2px;
    border: 1px solid #10b981;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.users-permission-dropdown[hidden] {
    display: none;
}

.users-permission-dropdown label {
    display: grid !important;
    grid-template-columns: 12px minmax(0, max-content);
    align-items: center;
    gap: 6px;
    min-height: 20px;
    padding: 0 6px;
    border-radius: 7px;
    color: #334155;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
}

.users-permission-dropdown label:hover {
    background: #ecfdf5;
    color: #047857;
}

.users-permission-dropdown input {
    width: 12px !important;
    min-width: 12px !important;
    max-width: 12px !important;
    height: 12px !important;
    min-height: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 12px;
    accent-color: #10b981;
}

.users-create-form input,
.users-create-form select,
.users-table input,
.users-table select {
    width: 100%;
    min-width: 0;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 10px;
    color: #0f172a;
    background: #ffffff;
    font-size: 13px;
    outline: 0;
}

.users-create-form input:focus,
.users-create-form select:focus,
.users-table input:focus,
.users-table select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.users-create-button {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    min-height: 36px;
    height: 36px;
    padding: 0 14px;
    white-space: nowrap;
    align-self: end;
}

/* Allow grid alignment to manage vertical placement; no manual offset */
.users-create-form > .users-permission-menu,
.users-create-form > .users-create-button {
    margin-top: 0;
}

.users-create-button span {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.users-table {
    min-width: 1240px;
    table-layout: fixed;
}

.users-table td {
    height: 72px;
    vertical-align: middle;
}

.users-table th:nth-child(1),
.users-table td:nth-child(1) {
    width: 260px;
}

.users-table th:nth-child(2),
.users-table td:nth-child(2) {
    width: 120px;
}

.users-table th:nth-child(3),
.users-table td:nth-child(3) {
    width: 150px;
}

.users-table th:nth-child(4),
.users-table td:nth-child(4) {
    width: 150px;
}

.users-table th:nth-child(5),
.users-table td:nth-child(5),
.users-table th:nth-child(6),
.users-table td:nth-child(6) {
    width: 170px;
    white-space: nowrap;
}

.users-table th:nth-child(7),
.users-table td:nth-child(7) {
    width: 360px;
}

.users-table td strong {
    display: inline-flex;
    align-items: center;
    max-width: 260px;
    color: #0f172a;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.users-row-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px 8px;
}

.users-row-form input[type="text"] {
    grid-column: 1 / -1;
}

.users-table select + .status-pill {
    display: none;
}

.users-current-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-left: 6px;
    padding: 0 8px;
    border-radius: 999px;
    color: #047857;
    background: #d1fae5;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
}

.users-role-pill,
.users-permission-all {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.users-role-pill.is-admin {
    color: #7c2d12;
    background: #ffedd5;
}

.users-role-pill.is-staff {
    color: #075985;
    background: #e0f2fe;
}

.users-permission-all {
    color: #047857;
    background: #d1fae5;
}

.users-actions {
    display: grid;
    grid-template-columns: 64px minmax(190px, 1fr) 54px;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.users-password-form {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) 64px;
    gap: 8px;
}

.users-actions > .button,
.users-actions .button,
.users-actions .danger-button {
    width: 100%;
    height: 36px;
    min-height: 36px;
    padding: 0 10px;
}

.users-actions .danger-button {
    border-radius: 8px;
}

.users-create-form .users-permission-dropdown input[type="checkbox"],
.users-table .users-permission-dropdown input[type="checkbox"],
.users-permission-dropdown input[type="checkbox"] {
    width: 12px !important;
    min-width: 12px !important;
    max-width: 12px !important;
    height: 12px !important;
    min-height: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 3px;
    justify-self: start;
    accent-color: #10b981;
}

.users-permission-dropdown label span {
    display: inline-block;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
}

.users-create-form .choices.user-status-active,
.users-create-form .choices.user-status-disabled,
.users-table .choices.user-status-active,
.users-table .choices.user-status-disabled {
    width: 112px;
    height: 36px;
    margin: 0;
}

.users-create-form .choices.user-status-active,
.users-create-form .choices.user-status-disabled {
    margin: 0;
}

.users-create-form .choices.user-status-active .choices__inner,
.users-create-form .choices.user-status-disabled .choices__inner,
.users-table .choices.user-status-active .choices__inner,
.users-table .choices.user-status-disabled .choices__inner {
    min-height: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 28px 0 12px;
    font-size: 12px;
    font-weight: 600;
}

.users-create-form .choices.user-status-active.is-open .choices__inner,
.users-create-form .choices.user-status-disabled.is-open .choices__inner,
.users-table .choices.user-status-active.is-open .choices__inner,
.users-table .choices.user-status-disabled.is-open .choices__inner {
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.users-create-form .choices.user-status-active .choices__inner,
.users-table .choices.user-status-active .choices__inner {
    border-color: #a7f3d0;
    color: #047857;
    background: #d1fae5;
}

.users-create-form .choices.user-status-disabled .choices__inner,
.users-table .choices.user-status-disabled .choices__inner {
    border-color: #e2e8f0;
    color: #667085;
    background: #f1f5f9;
}

.users-create-form .choices.user-status-active[data-type*="select-one"]::after,
.users-create-form .choices.user-status-disabled[data-type*="select-one"]::after,
.users-table .choices.user-status-active[data-type*="select-one"]::after,
.users-table .choices.user-status-disabled[data-type*="select-one"]::after {
    right: 11px;
    border-color: currentColor transparent transparent;
}

.users-create-form .choices.user-status-active.is-open[data-type*="select-one"]::after,
.users-create-form .choices.user-status-disabled.is-open[data-type*="select-one"]::after,
.users-table .choices.user-status-active.is-open[data-type*="select-one"]::after,
.users-table .choices.user-status-disabled.is-open[data-type*="select-one"]::after {
    margin-top: -7px;
    border-color: transparent transparent currentColor;
}

.users-create-form .choices.user-status-active .choices__list--single,
.users-create-form .choices.user-status-disabled .choices__list--single,
.users-table .choices.user-status-active .choices__list--single,
.users-table .choices.user-status-disabled .choices__list--single {
    padding: 0;
}

.users-create-form .choices.user-status-active .choices__list--dropdown,
.users-create-form .choices.user-status-active .choices__list[aria-expanded],
.users-create-form .choices.user-status-disabled .choices__list--dropdown,
.users-create-form .choices.user-status-disabled .choices__list[aria-expanded],
.users-table .choices.user-status-active .choices__list--dropdown,
.users-table .choices.user-status-active .choices__list[aria-expanded],
.users-table .choices.user-status-disabled .choices__list--dropdown,
.users-table .choices.user-status-disabled .choices__list[aria-expanded] {
    min-width: 112px;
    margin-top: 0;
    border: 1px solid currentColor;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.users-create-form .choices.user-status-active .choices__list--dropdown,
.users-create-form .choices.user-status-active .choices__list[aria-expanded],
.users-table .choices.user-status-active .choices__list--dropdown,
.users-table .choices.user-status-active .choices__list[aria-expanded] {
    color: #047857;
    background: #d1fae5;
}

.users-create-form .choices.user-status-disabled .choices__list--dropdown,
.users-create-form .choices.user-status-disabled .choices__list[aria-expanded],
.users-table .choices.user-status-disabled .choices__list--dropdown,
.users-table .choices.user-status-disabled .choices__list[aria-expanded] {
    color: #667085;
    background: #f1f5f9;
}

.users-create-form .choices.user-status-active .choices__list--dropdown .choices__item,
.users-create-form .choices.user-status-active .choices__list[aria-expanded] .choices__item,
.users-create-form .choices.user-status-disabled .choices__list--dropdown .choices__item,
.users-create-form .choices.user-status-disabled .choices__list[aria-expanded] .choices__item,
.users-table .choices.user-status-active .choices__list--dropdown .choices__item,
.users-table .choices.user-status-active .choices__list[aria-expanded] .choices__item,
.users-table .choices.user-status-disabled .choices__list--dropdown .choices__item,
.users-table .choices.user-status-disabled .choices__list[aria-expanded] .choices__item {
    padding: 8px 10px;
    font-size: 12px;
    color: inherit;
    text-align: center;
}

.users-create-form .choices.user-status-active .choices__list--dropdown .choices__item--selectable.is-highlighted,
.users-create-form .choices.user-status-active .choices__list[aria-expanded] .choices__item--selectable.is-highlighted,
.users-table .choices.user-status-active .choices__list--dropdown .choices__item--selectable.is-highlighted,
.users-table .choices.user-status-active .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    color: #047857;
    background: #a7f3d0;
}

.users-create-form .choices.user-status-disabled .choices__list--dropdown .choices__item--selectable.is-highlighted,
.users-create-form .choices.user-status-disabled .choices__list[aria-expanded] .choices__item--selectable.is-highlighted,
.users-table .choices.user-status-disabled .choices__list--dropdown .choices__item--selectable.is-highlighted,
.users-table .choices.user-status-disabled .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    color: #475569;
    background: #e2e8f0;
}

@media (max-width: 1180px) {
    .users-create-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .users-create-button {
        width: 100%;
    }
}

.products-table {
    min-width: 1160px;
}

.products-table .status-column {
    text-align: center;
    vertical-align: middle;
}

.products-table .default-column {
    text-align: center;
    vertical-align: middle;
}

.products-table .number-column {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.products-table .head-center {
    text-align: center;
}

.products-table .left-middle {
    text-align: left;
    vertical-align: middle;
}

.orders-table {
    min-width: 1040px;
}

.orders-table td {
    vertical-align: middle;
}

.orders-table tr.is-focused > td {
    background: #ecfdf5;
}

.orders-table tr.is-focused [data-order-detail-trigger]:hover {
    background: #dcfce7;
}

.orders-table td strong,
.orders-table td span {
    display: block;
}

.orders-table td strong {
    margin-bottom: 3px;
    font-weight: 600;
}

.orders-table td span {
    color: #64748b;
    font-size: 12px;
}

.orders-table .number-column,
.orders-table .status-column {
    text-align: center;
    white-space: nowrap;
}

.orders-table .order-check-column {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    padding-right: 8px;
    padding-left: 12px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
}

.orders-table .order-check-column input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.orders-table .order-code-column {
    width: 118px;
    max-width: 118px;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
}

.orders-table .order-address-column {
    max-width: 320px;
    color: #475569;
    line-height: 1.45;
}

.orders-table [data-order-detail-trigger] {
    cursor: pointer;
}

.orders-table [data-order-detail-trigger]:hover {
    background: #f8fafc;
}

.orders-table [data-order-copy-value] {
    cursor: copy;
}

.orders-table [data-order-copy-value]:hover {
    color: #0f766e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.orders-table .order-products-cell {
    position: relative;
    width: 220px;
    max-width: 220px;
}

.order-products-trigger {
    width: 100%;
    display: block;
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.order-products-trigger strong,
.order-products-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-products-popover {
    position: fixed;
    z-index: 40;
    width: min(420px, calc(100vw - 16px));
    max-height: min(360px, calc(100vh - 16px));
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.order-products-popover[hidden] {
    display: none;
}

.order-product-popover-item {
    display: grid;
    gap: 3px;
    padding: 8px;
    border-radius: 7px;
    background: #f8fafc;
}

.order-product-popover-item + .order-product-popover-item {
    margin-top: 6px;
}

.order-product-popover-head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.order-product-popover-head img {
    grid-column: 1;
    grid-row: 1;
}

.order-product-popover-head strong {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.order-product-popover-head img {
    width: 38px;
    height: 38px;
    display: block;
    border-radius: 7px;
    object-fit: cover;
    background: #e2e8f0;
}

.order-product-popover-item span,
.order-product-popover-item small {
    color: #64748b;
    font-size: 12px;
}

.order-product-popover-item span {
    overflow: hidden;
    padding-left: 8px;
    border-left: 2px solid #e2e8f0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-detail-dialog {
    width: 60vw;
    height: 80vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.orders-detail-dialog .image-picker-close {
    width: 38px;
    height: 38px;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: #ffffff;
}

.orders-detail-body {
    overflow-y: auto;
}

.orders-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 0;
}

.orders-detail-grid .is-full {
    grid-column: 1 / -1;
}

.orders-detail-grid .is-ip {
    grid-column: 1 / 2;
}

.orders-detail-grid .is-url {
    grid-column: 2 / -1;
}

.orders-detail-grid div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.orders-detail-grid dt {
    color: #64748b;
    font-size: 12px;
}

.orders-detail-grid dd {
    min-width: 0;
    margin: 0;
    color: #0f172a;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.orders-detail-grid .is-highlight dd {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.orders-detail-body h4 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
}

.orders-detail-products {
    display: grid;
    gap: 8px;
}

.orders-detail-products .order-product-popover-item {
    border-color: #e2e8f0;
    background: #f8fafc;
}

@media (max-width: 720px) {
    .orders-detail-dialog {
        width: 90vw;
    }

    .orders-detail-grid .is-ip,
    .orders-detail-grid .is-url {
        grid-column: 1 / -1;
    }
}

.orders-table .status-pill {
    display: inline-flex;
}

.orders-module-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.orders-head-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.orders-search-form {
    flex: 1 1 320px;
    min-width: 220px;
    max-width: 460px;
}

.orders-search-form label {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    border: 1px solid #d9dee8;
    border-radius: 7px;
    padding: 0 10px;
    color: #64748b;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.orders-search-form svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.orders-search-form input {
    min-width: 0;
    border: 0;
    padding: 0;
    color: #0f172a;
    background: transparent;
    font-size: 13px;
    outline: 0;
}

.orders-search-form label:focus-within {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.orders-right-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.orders-action-menu {
    position: relative;
    flex: 0 0 auto;
}

.orders-refresh-button {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #d9dee8;
    border-radius: 7px;
    color: #0f766e;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.orders-refresh-button:hover {
    border-color: #14b8a6;
    color: #0f766e;
    background: #ecfdf5;
    text-decoration: none;
}

.orders-refresh-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.orders-action-button {
    height: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #d9dee8;
    border-radius: 7px;
    padding: 0 12px;
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    font-size: 13px;
    font-weight: 500;
}

.orders-action-caret {
    width: 0;
    height: 0;
    border-top: 5px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.orders-action-menu.is-open .orders-action-caret {
    border-top: 0;
    border-bottom: 5px solid currentColor;
}

.orders-action-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 330;
    min-width: 178px;
    overflow: visible;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.orders-action-dropdown[hidden] {
    display: none;
}

.orders-action-dropdown button[hidden] {
    display: none;
}

.orders-action-submenu[hidden],
.orders-sub-dropdown[hidden] {
    display: none;
}

.orders-action-submenu {
    position: relative;
}

.orders-action-dropdown button {
    width: 100%;
    min-height: 34px;
    justify-content: flex-start;
    border: 0;
    border-radius: 0;
    padding: 0 12px;
    color: #0f172a;
    background: transparent;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.orders-action-dropdown button:hover,
.orders-action-submenu.is-open > button {
    color: #0f766e;
    background: #ecfdf5;
}

.orders-action-dropdown > .is-first-visible > button,
.orders-action-dropdown > button.is-first-visible,
.orders-sub-dropdown > button:first-child {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.orders-action-dropdown > .is-last-visible > button,
.orders-action-dropdown > button.is-last-visible,
.orders-sub-dropdown > button:last-child {
    border-bottom-right-radius: 7px;
    border-bottom-left-radius: 7px;
}

.orders-action-submenu > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.orders-action-subcaret {
    width: 0;
    height: 0;
    border-left: 5px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.orders-action-submenu.is-left .orders-action-subcaret {
    border-right: 5px solid currentColor;
    border-left: 0;
}

.orders-sub-dropdown {
    position: absolute;
    top: 0;
    left: calc(100% + 6px);
    z-index: 340;
    min-width: 126px;
    overflow: hidden;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.orders-action-submenu.is-left .orders-sub-dropdown {
    right: calc(100% + 6px);
    left: auto;
}

.orders-date-filter {
    position: relative;
    margin-left: auto;
}

.orders-date-input {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.orders-date-display {
    position: relative;
    height: 38px;
    width: max-content;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #d9dee8;
    border-radius: 7px;
    padding: 0 8px 0 10px;
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    font-size: 14px;
    white-space: nowrap;
}

.orders-date-display::after {
    content: "";
    position: absolute;
    left: var(--orders-date-underline-left, 12px);
    bottom: 0;
    width: var(--orders-date-underline-width, 70px);
    height: 2px;
    border-radius: 999px;
    background: #16a34a;
    opacity: 0;
    transition: left 0.18s ease, opacity 0.18s ease;
}

.orders-date-filter.is-open .orders-date-display,
.orders-date-display:focus-within {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.orders-date-filter.is-open .orders-date-display::after,
.orders-date-display:focus-within::after {
    opacity: 1;
}

.orders-date-display input {
    width: 68px;
    border: 0;
    padding: 0;
    color: #0f172a;
    background: transparent;
    font: inherit;
    outline: 0;
}

.orders-date-display input:last-of-type {
    width: 68px;
}

.orders-date-calendar {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border: 0;
    padding: 0;
    color: #475569;
    background: transparent;
}

.orders-date-calendar svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    grid-area: 1 / 1;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.orders-date-picker {
    position: fixed;
    z-index: 320;
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 16px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.orders-date-picker[hidden] {
    display: none;
}

.orders-date-months {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 6px 8px 8px;
}

.orders-date-month {
    min-width: 0;
}

.orders-date-month-head {
    height: 22px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.orders-date-nav {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.orders-date-nav.is-next {
    justify-content: flex-end;
}

.orders-date-month-head button {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 0;
    padding: 0;
    color: #c4c8cf;
    background: transparent;
    font-size: 13px;
    line-height: 1;
}

.orders-date-month-title {
    text-align: center;
}

.orders-date-weekdays,
.orders-date-grid {
    display: grid;
    grid-template-columns: repeat(7, 30px);
    gap: 0;
    justify-content: center;
}

.orders-date-weekdays {
    margin-top: 6px;
    margin-bottom: 3px;
    color: #2f3338;
    font-size: 11px;
}

.orders-date-weekdays span {
    text-align: center;
}

.orders-date-day {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: #2f3338;
    background: transparent;
    font-size: 12px;
    line-height: 1;
}

.orders-date-day:not(.is-selected):hover {
    color: #15803d;
    background: #f0fdf4;
    box-shadow: inset 0 0 0 1px #22c55e;
}

.orders-date-day.is-muted {
    color: #c3c6cb;
}

.orders-date-day.is-in-range {
    background: #e9f8ee;
}

.orders-date-day.is-selected {
    color: #ffffff;
    background: #16a34a;
}

.orders-date-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #eef2f7;
}

.orders-date-presets button {
    min-height: 30px;
    border: 1px solid #22c55e;
    border-radius: 6px;
    padding: 0 10px;
    color: #16a34a;
    background: #ffffff;
    font-size: 12px;
}

.orders-date-presets button:hover {
    background: #f0fdf4;
}

.order-status-form {
    width: 100px;
    margin: 0 auto;
    color: #047857;
    background: transparent;
}

.order-status-select {
    width: 100%;
    height: 32px;
    display: block;
    border: 1px solid rgba(4, 120, 87, 0.16);
    border-radius: 999px;
    padding: 0 28px 0 14px;
    color: inherit;
    background-color: transparent;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 14px) 13px, calc(100% - 10px) 13px;
    background-repeat: no-repeat;
    background-size: 4px 4px, 4px 4px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 600;
    line-height: 32px;
    text-align: center;
    text-align-last: center;
    white-space: nowrap;
    cursor: pointer;
    outline: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.order-status-select:focus {
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.order-status-new {
    color: #4338ca;
    border-color: rgba(67, 56, 202, 0.16);
    background: transparent;
}

.order-status-confirmed {
    color: #0369a1;
    border-color: rgba(3, 105, 161, 0.16);
    background: transparent;
}

.order-status-shipping {
    color: #854d0e;
    border-color: rgba(133, 77, 14, 0.16);
    background: transparent;
}

.order-status-completed {
    color: #047857;
    border-color: rgba(4, 120, 87, 0.16);
    background: transparent;
}

.order-status-cancelled {
    color: #991b1b;
    border-color: rgba(153, 27, 27, 0.16);
    background: transparent;
}

.products-table .product-code-column {
    width: 160px;
    min-width: 160px;
}

.products-table .product-name-column {
    width: 260px;
    min-width: 220px;
}

.products-table .product-name-column span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.35;
}

.products-table .actions-column {
    text-align: center;
    vertical-align: middle;
}

.product-status-dot {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
}

.product-status-dot span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.14);
}

.product-status-dot.is-active span {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.product-status-dot.is-hidden span {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.default-product-button {
    width: 30px;
    height: 30px;
    min-height: 30px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    color: #94a3b8;
    background: #ffffff;
}

.default-product-button:hover,
.default-product-button.is-active {
    border-color: rgba(245, 158, 11, 0.45);
    color: #f59e0b;
    background: #fffbeb;
}

.default-product-button svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
    fill: currentColor;
}

.product-field-status,
.product-field-code,
.product-field-price,
.product-field-old-price,
.product-field-discount,
.product-field-rating,
.product-field-sold,
.product-default-star-field {
    min-width: 0;
}

.product-field-status {
    grid-column: span 3;
}

.product-field-code {
    grid-column: span 3;
}

.product-default-star-field {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    min-height: 43px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.product-default-star-head {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    justify-self: center;
    align-self: center;
}

.product-default-star-field input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.product-default-star-field > span {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    color: #94a3b8;
    background: #ffffff;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.product-default-star-field input:checked + span {
    border-color: rgba(245, 158, 11, 0.45);
    color: #f59e0b;
    background: #fffbeb;
}

.product-default-star-field:hover > span {
    border-color: #cbd5e1;
    color: #64748b;
    background: #f8fafc;
}

.product-default-star-field:hover input:checked + span,
.product-default-star-field input:checked + span {
    border-color: rgba(245, 158, 11, 0.45);
    color: #f59e0b;
    background: #fffbeb;
}

.product-default-star-field input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.product-default-star-field svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
    fill: currentColor;
}

.product-field-price,
.product-field-old-price {
    grid-column: span 3;
}

.product-field-discount,
.product-field-rating,
.product-field-sold {
    grid-column: span 2;
}

.product-variants-field,
.product-size-weights-field,
.product-discounts-field,
.product-shipping-field,
.product-reviews-field {
    display: grid;
    gap: 10px;
}

.product-reviews-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
}

.product-description-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-import-button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(20, 184, 166, 0.38);
    border-radius: 7px;
    color: #0f766e;
    background: #ecfdf5;
    cursor: pointer;
}

.product-import-button:hover {
    border-color: #14b8a6;
    color: #ffffff;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.product-import-button svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.product-size-weights-head {
    align-items: center;
}

.product-size-weights-head > span,
.product-discounts-head > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-discounts-head select,
.product-discounts-head .choices {
    width: 250px;
    min-width: 250px;
    height: 32px;
    min-height: 32px;
    margin: 0;
    font-size: 12px;
}

.product-discounts-head .choices__inner {
    height: 32px;
    min-height: 32px;
    padding: 3px 30px 3px 10px;
    font-size: 12px;
}

.product-size-weights-head input {
    width: min(200px, 58%);
    max-width: 250px;
    min-width: 172px;
    height: 32px;
    min-height: 32px;
    margin: 0 0 0 auto;
    padding: 4px 10px;
    font-size: 12px;
}

.product-size-weights-head input.is-attribute-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.product-size-weights-head input.is-attribute-alert {
    animation: attribute-input-alert 0.18s ease-in-out 3;
}

@keyframes attribute-input-alert {
    0%,
    100% {
        border-color: #ef4444;
        transform: translateX(0);
    }

    50% {
        border-color: #dc2626;
        transform: translateX(2px);
    }
}

.product-reviews-list {
    display: grid;
    gap: 10px;
}

.product-variants-list {
    display: grid;
    gap: 8px;
}

.product-size-weights-list {
    display: grid;
    gap: 8px;
}

.product-discounts-list {
    display: grid;
    gap: 8px;
}

.product-shipping-cards {
    display: grid;
    gap: 8px;
}

.product-variant-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) minmax(100px, 120px) 30px;
    gap: 7px;
    align-items: center;
    padding: 6px 8px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.product-variant-image {
    width: 34px;
    height: 34px;
    min-height: 34px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1.5px dashed rgba(20, 184, 166, 0.42);
    border-radius: 8px;
    padding: 0;
    color: #0f766e;
    background: #ecfdf5;
}

.product-variant-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-variant-image svg,
.product-variant-delete svg,
.product-variant-add svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.product-variant-row input {
    width: 100%;
    min-width: 0;
    height: 34px;
    min-height: 34px;
}

.product-variant-delete,
.product-variant-add {
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 7px;
}

.product-variant-delete {
    width: 28px;
    height: 28px;
    min-height: 28px;
    justify-self: end;
    border: 1px solid #fecaca;
    color: #dc2626;
    background: #fef2f2;
}

.product-variant-add {
    width: 100%;
    height: 46px;
    min-height: 46px;
    justify-self: stretch;
    border: 1.5px dashed rgba(20, 184, 166, 0.45);
    border-radius: 8px;
    color: #0f766e;
    background: rgba(236, 253, 245, 0.72);
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.product-variant-add svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.product-variant-add:hover,
.product-variant-add:focus-visible {
    border-color: #14b8a6;
    color: #0f766e;
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.product-size-weight-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px;
    gap: 7px;
    align-items: center;
    padding: 6px 8px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.product-size-weight-row input {
    width: 100%;
    min-width: 0;
    height: 34px;
    min-height: 34px;
}

.product-size-weight-delete,
.product-size-weight-add {
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 7px;
}

.product-size-weight-delete {
    width: 28px;
    height: 28px;
    min-height: 28px;
    justify-self: end;
    border: 1px solid #fecaca;
    color: #dc2626;
    background: #fef2f2;
}

.product-size-weight-delete svg,
.product-size-weight-add svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.product-size-weight-add {
    width: 100%;
    height: 46px;
    min-height: 46px;
    justify-self: stretch;
    border: 1.5px dashed rgba(20, 184, 166, 0.45);
    border-radius: 8px;
    color: #0f766e;
    background: rgba(236, 253, 245, 0.72);
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.product-size-weight-add svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.product-size-weight-add:hover,
.product-size-weight-add:focus-visible {
    border-color: #14b8a6;
    color: #0f766e;
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.product-discount-row {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) auto minmax(86px, 0.8fr) 72px 30px;
    gap: 7px;
    align-items: center;
    padding: 6px 8px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.product-shipping-card {
    display: grid;
    grid-template-columns: 24px auto minmax(86px, 0.8fr) minmax(130px, 1fr) minmax(100px, 1fr);
    gap: 7px;
    align-items: center;
    min-height: 48px;
    padding: 6px 8px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.product-shipping-card.is-free {
    grid-template-columns: 24px auto minmax(130px, 1fr) minmax(100px, 1fr);
}

.product-shipping-card input,
.product-shipping-card select {
    height: 34px;
    min-height: 34px;
}

.product-shipping-toggle {
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: grid;
    place-items: center;
    gap: 0;
    cursor: pointer;
}

.product-shipping-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.product-shipping-toggle span {
    width: 18px;
    height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: inset 0 0 0 2px #ffffff;
}

.product-shipping-toggle input:checked + span {
    border-color: #14b8a6;
    background: #14b8a6;
}

.product-shipping-toggle input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.product-shipping-label {
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.product-shipping-card .choices {
    height: 34px;
    min-height: 34px;
    margin: 0;
}

.product-shipping-card .choices__inner {
    height: 34px;
    min-height: 34px;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 12px;
}

.product-discount-row input,
.product-discount-row select {
    height: 34px;
    min-height: 34px;
}

.product-discount-label {
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.product-discount-row .choices {
    height: 34px;
    min-height: 34px;
    margin: 0;
}

.product-discount-row .choices__inner {
    height: 34px;
    min-height: 34px;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 12px;
}

.product-discount-delete,
.product-discount-add {
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 7px;
}

.product-discount-delete {
    width: 28px;
    height: 28px;
    min-height: 28px;
    justify-self: end;
    border: 1px solid #fecaca;
    color: #dc2626;
    background: #fef2f2;
}

.product-discount-delete svg,
.product-discount-add svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.product-discount-add {
    width: 100%;
    height: 46px;
    min-height: 46px;
    justify-self: stretch;
    border: 1.5px dashed rgba(20, 184, 166, 0.45);
    border-radius: 8px;
    color: #0f766e;
    background: rgba(236, 253, 245, 0.72);
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.product-discount-add svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.product-discount-add:hover,
.product-discount-add:focus-visible {
    border-color: #14b8a6;
    color: #0f766e;
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.product-review-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.product-review-avatar {
    width: 46px;
    height: 46px;
    min-height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    padding: 0;
    color: #0f766e;
    background: #ecfdf5;
}

.product-review-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-review-avatar svg,
.product-review-delete svg,
.product-review-add svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.product-review-text {
    display: grid;
    gap: 6px;
    align-items: stretch;
}

.product-review-top {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) repeat(3, minmax(58px, 120px));
    gap: 6px;
    align-items: start;
}

.product-review-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(64px, 120px) 26px;
    gap: 6px;
    align-items: center;
}

.product-review-row input {
    height: 26px;
    min-height: 26px;
    padding: 3px 7px;
    font-size: 12px;
    line-height: 18px;
}

.product-review-row input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.product-review-row input[type="number"]::-webkit-outer-spin-button,
.product-review-row input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.product-review-text input[data-review-comment] {
    width: 100%;
}

.product-review-text input[data-review-time] {
    width: 100%;
    max-width: 120px;
    min-width: 0;
    text-align: center;
}

.product-review-reaction {
    width: 100%;
    max-width: 120px;
    justify-self: stretch;
    height: 26px;
    min-height: 26px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    border: 1px solid #dbeafe;
    border-radius: 7px;
    margin: 0;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-review-reaction span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 6px 0 0 6px;
    background: #f8fafc;
    pointer-events: none;
}

.product-review-reaction span svg {
    width: 12px;
    height: 12px;
    display: block;
}

.product-review-reaction input {
    width: 100%;
    min-width: 0;
    height: 22px;
    min-height: 22px;
    border: 0 !important;
    border-radius: 0 6px 6px 0;
    padding: 2px 3px 2px 0;
    text-align: center;
    font-weight: 600;
    line-height: 18px;
    outline: 0;
    box-shadow: none !important;
    background: transparent !important;
}

.product-review-reaction input:focus {
    border: 0 !important;
    outline: 0;
    box-shadow: none !important;
}

.product-review-reaction:focus-within {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.product-review-delete,
.product-review-add {
    width: 32px;
    height: 32px;
    min-height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 7px;
}

.product-review-delete {
    width: 26px;
    height: 26px;
    min-height: 26px;
    justify-self: end;
    align-self: center;
    border: 1px solid #fecaca;
    color: #dc2626;
    background: #fef2f2;
}

.product-review-add {
    width: 100%;
    height: 64px;
    min-height: 64px;
    justify-self: stretch;
    border: 1.5px dashed rgba(20, 184, 166, 0.45);
    border-radius: 8px;
    color: #0f766e;
    background: rgba(236, 253, 245, 0.72);
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.product-review-add svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.product-review-add:hover,
.product-review-add:focus-visible {
    border-color: #14b8a6;
    color: #0f766e;
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.pagination-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: #64748b;
    font-size: 13px;
}

.pagination-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.pagination-actions a,
.pagination-actions span {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 10px;
    color: #475569;
    background: #ffffff;
}

.pagination-actions a:hover,
.pagination-actions .is-current {
    border-color: #14b8a6;
    color: #0f766e;
    background: #ecfdf5;
    text-decoration: none;
}

.pagination-actions span:not(.is-current) {
    color: #cbd5e1;
    background: #f8fafc;
}

.orders-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #0f172a;
    font-size: 14px;
}

.orders-pagination-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.orders-page-number,
.orders-page-arrow,
.orders-page-ellipsis {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #0f172a;
    background: transparent;
    font-size: 14px;
    text-decoration: none;
}

.orders-page-number.is-current {
    border-color: #16a34a;
    color: #16a34a;
    background: #ffffff;
}

.orders-page-arrow {
    color: #64748b;
    font-size: 20px;
}

.orders-page-arrow.is-disabled {
    color: #cbd5e1;
}

.orders-page-number:hover,
.orders-page-arrow:hover {
    border-color: #bbf7d0;
    color: #16a34a;
    text-decoration: none;
}

.orders-per-page-form {
    margin: 0 0 0 8px;
}

.orders-per-page-form select {
    width: auto;
    min-width: 104px;
    height: 34px;
    border: 1px solid #d9dee8;
    border-radius: 6px;
    padding: 0 28px 0 10px;
    color: #0f172a;
    background-color: #ffffff;
    font-size: 14px;
    white-space: nowrap;
}

.auth-shell .orders-per-page-form .choices {
    width: max-content;
    min-width: 104px;
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
}

.auth-shell .orders-per-page-form .choices__inner {
    min-height: 34px;
    border-color: #d9dee8;
    border-radius: 6px;
    padding: 5px 30px 5px 10px;
    background: #ffffff;
    font-size: 14px;
    white-space: nowrap;
}

.auth-shell .orders-per-page-form .choices__list--single {
    width: max-content;
    min-width: 74px;
    padding: 0;
    white-space: nowrap;
}

.auth-shell .orders-per-page-form .choices__list--dropdown,
.auth-shell .orders-per-page-form .choices__list[aria-expanded] {
    min-width: 100%;
    width: max-content;
}

body:has(.admin-dashboard) {
    color: var(--dash-text);
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 32%),
        linear-gradient(180deg, var(--dash-bg), var(--dash-bg-soft));
}

body:has(.admin-dashboard) a {
    color: var(--dash-primary);
}

body:has(.admin-dashboard) .overview-hero-action {
    color: #ffffff;
    background: var(--dash-gradient);
}

body:has(.admin-dashboard) .overview-hero-action:hover {
    color: #ffffff;
    text-decoration: none;
}

body:has(.admin-dashboard) input,
body:has(.admin-dashboard) select,
body:has(.admin-dashboard) textarea {
    border-color: var(--dash-line-strong);
    color: var(--dash-text);
    background: var(--dash-surface);
}

body:has(.admin-dashboard) input:focus,
body:has(.admin-dashboard) select:focus,
body:has(.admin-dashboard) textarea:focus {
    border-color: var(--dash-primary);
    outline-color: var(--dash-primary-tint);
}

.admin-dashboard {
    border-color: rgba(199, 211, 223, 0.86);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--dash-shadow-md);
}

.admin-sidebar {
    border-right-color: var(--dash-line);
    background: linear-gradient(180deg, #ffffff 0%, #f5fbfb 48%, #f3f7ff 100%);
}

.admin-brand-mark,
.product-create-button,
.module-action {
    background: var(--dash-gradient);
}

.admin-brand-mark,
.product-create-button,
.module-action {
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.16);
}

.admin-brand small,
.admin-topbar .muted,
.module-head p,
.stat-card span,
.stat-card small,
.overview-hero p,
.overview-module-head p,
.admin-table th,
.orders-table td span {
    color: var(--dash-muted);
}

.admin-nav a:not(.is-active) {
    color: var(--dash-muted);
}

.admin-nav a:hover,
.admin-nav a.is-active {
    color: var(--dash-primary-strong);
    background: var(--dash-gradient-soft);
}

.admin-main {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
}

.admin-module,
.stat-card,
.overview-hero,
.table-wrap,
.confirm-dialog,
.image-picker-dialog {
    border-color: var(--dash-line);
    background: var(--dash-surface);
    box-shadow: var(--dash-shadow-sm);
}

.module-icon,
.overview-revenue-total,
.status-pill,
.picker-button,
.orders-refresh-button,
.product-import-button,
.product-size-weight-add,
.product-variant-add,
.product-review-add {
    color: var(--dash-primary-strong);
    background: var(--dash-primary-soft);
    border-color: rgba(20, 184, 166, 0.34);
}

.module-icon,
.overview-hero {
    background: var(--dash-gradient-soft);
}

.module-head h2,
.overview-hero h2,
.overview-module-head h3,
.admin-topbar h1,
.admin-table td {
    color: var(--dash-text);
}

.stat-card strong,
.overview-eyebrow,
.overview-module-head > span,
.settings-section-title,
.overview-product-row span,
.overview-insights strong,
.orders-page-number.is-current {
    color: var(--dash-primary);
}

.overview-card::after {
    background: rgba(20, 184, 166, 0.1);
}

.overview-card.is-orders::after {
    background: rgba(37, 99, 235, 0.1);
}

.overview-card.is-revenue::after,
.overview-card.is-attention::after {
    background: rgba(101, 163, 13, 0.12);
}

.overview-bar-track,
.overview-progress,
.multi-image-preview,
.product-image-preview,
.product-variant-image,
.settings-grid label,
.settings-grid .settings-picker-box,
.overview-insights div,
.overview-empty {
    background: var(--dash-surface-soft);
}

.overview-bar-track span,
.overview-product-row i,
.overview-status-row.is-completed .overview-progress span {
    background: linear-gradient(180deg, var(--dash-lime), var(--dash-primary));
}

.overview-bar-value {
    color: var(--dash-primary-strong);
}

.overview-status-row.is-new .overview-progress span,
.overview-status-row.is-confirmed .overview-progress span {
    background: linear-gradient(90deg, var(--dash-accent), var(--dash-primary));
}

.overview-status-row.is-shipping .overview-progress span {
    background: var(--dash-warning);
}

.overview-status-row.is-cancelled .overview-progress span {
    background: #94a3b8;
}

.admin-table th {
    background: var(--dash-surface-soft);
}

.admin-table th,
.admin-table td,
.module-list,
.module-list li {
    border-color: var(--dash-line);
}

.orders-page-number.is-current {
    border-color: var(--dash-primary);
    background: var(--dash-surface);
}

.orders-page-number:hover,
.orders-page-arrow:hover,
.pagination-actions a:hover,
.pagination-actions .is-current {
    border-color: rgba(20, 184, 166, 0.42);
    color: var(--dash-primary-strong);
    background: var(--dash-primary-soft);
}

.settings-grid input:focus,
.settings-grid textarea:focus,
.settings-grid select:focus,
.settings-grid .choices.is-focused .choices__inner,
.settings-grid .choices.is-open .choices__inner,
.auth-shell .choices.is-focused .choices__inner,
.auth-shell .choices.is-open .choices__inner {
    border-color: var(--dash-primary);
    box-shadow: 0 0 0 3px var(--dash-primary-tint);
}

.settings-grid .choices__list--dropdown,
.settings-grid .choices__list[aria-expanded],
.auth-shell .choices__list--dropdown,
.auth-shell .choices__list[aria-expanded] {
    border-color: var(--dash-primary);
}

.settings-grid .choices__list--dropdown .choices__item--selectable.is-highlighted,
.settings-grid .choices__list[aria-expanded] .choices__item--selectable.is-highlighted,
.auth-shell .choices__list--dropdown .choices__item--selectable.is-highlighted,
.auth-shell .choices__list[aria-expanded] .choices__item--selectable.is-highlighted,
.orders-action-dropdown button:hover,
.orders-action-submenu.is-open > button {
    color: var(--dash-primary-strong);
    background: var(--dash-primary-soft);
}

.delete-button,
.orders-delete-confirm,
.status-pill.is-danger {
    color: var(--dash-danger);
    border-color: #fecaca;
    background: var(--dash-danger-soft);
}

.table-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.table-icon-action {
    width: 34px;
    height: 34px;
    min-height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 0;
    color: #2563eb;
    background: #eff6ff;
}

.table-icon-action:hover {
    border-color: #93c5fd;
    background: #dbeafe;
}

.table-icon-action.danger {
    border-color: #fecaca;
    color: #dc2626;
    background: #fef2f2;
}

.table-icon-action.danger:hover {
    border-color: #fca5a5;
    background: #fee2e2;
}

.table-icon-action svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.product-dialog {
    width: 95vw;
    height: 95vh;
    max-width: none;
    max-height: 95vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) 64px;
}

.product-form {
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
    align-content: start;
    align-items: stretch;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 84px;
    scroll-padding-bottom: 96px;
}

.product-form-main {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-content: start;
    gap: 18px;
}

#product-edit-modal .product-form {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

#product-edit-modal .product-form-main {
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.product-form label {
    display: grid;
    gap: 7px;
    margin: 0;
}

.product-form label span {
    color: #334155;
    font-size: 13px;
    font-weight: 500;
}

.product-form input,
.product-form select,
.product-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 11px 12px;
    color: #0f172a;
    background: #ffffff;
    font: inherit;
    font-size: 14px;
}

.product-form input:focus,
.product-form select:focus,
.product-form textarea:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
    outline: 0;
}

.product-form textarea {
    min-height: 128px;
    line-height: 1.5;
    resize: vertical;
}

.rich-editor {
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
}

.rich-editor:focus-within {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 7px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.rich-editor-toolbar button {
    width: 32px;
    height: 32px;
    min-height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #dbeafe;
    border-radius: 7px;
    color: #0f766e;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.rich-color-control {
    width: 32px;
    height: 32px;
    min-height: 32px;
    display: grid;
    place-items: center;
    margin: 0;
    border: 1px solid #dbeafe;
    border-radius: 7px;
    background: #ffffff;
}

.rich-color-control input {
    width: 22px;
    height: 22px;
    min-height: 22px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
}

.rich-editor-toolbar button:hover {
    border-color: #14b8a6;
    background: #ecfdf5;
}

.rich-editor-toolbar button.is-active,
.rich-editor-toolbar button[aria-pressed="true"] {
    border-color: #14b8a6;
    color: #ffffff;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    box-shadow: 0 8px 18px rgba(20, 184, 166, 0.22);
}

.rich-editor-toolbar button.is-active:hover,
.rich-editor-toolbar button[aria-pressed="true"]:hover {
    border-color: #0f766e;
    background: linear-gradient(135deg, #0f766e, #115e59);
}

.rich-editor-toolbar svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.rich-editor-body {
    min-height: 180px;
    padding: 12px;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.6;
    outline: 0;
}

.rich-editor-body:empty::before {
    content: "Nhập mô tả sản phẩm";
    color: #94a3b8;
}

.rich-editor-body p {
    margin: 0 0 10px;
}

.rich-editor-body ul,
.rich-editor-body ol {
    margin: 0 0 10px;
    padding-left: 22px;
}

.rich-editor-body img {
    width: clamp(82px, 28%, 180px);
    max-width: 100%;
    height: auto;
    display: inline-block;
    margin: 4px;
    border-radius: 7px;
    background: #f1f5f9;
    vertical-align: middle;
}

.product-form .choices {
    margin: 0;
}

.product-form .choices__inner {
    min-height: 43px;
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 7px 38px 7px 12px;
    background: #ffffff;
}

.product-form .choices.is-focused .choices__inner,
.product-form .choices.is-open .choices__inner {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.product-form .product-discounts-head .choices {
    height: 32px;
    min-height: 32px;
}

.product-form .product-discounts-head .choices__inner {
    height: 32px;
    min-height: 32px;
    padding: 3px 30px 3px 10px;
}

.product-form .product-discount-row .choices,
.product-form .product-shipping-card .choices {
    height: 34px;
    min-height: 34px;
}

.product-form .product-discount-row .choices__inner,
.product-form .product-shipping-card .choices__inner {
    height: 34px;
    min-height: 34px;
    padding: 3px 30px 3px 10px;
}

.product-form .product-discounts-head .choices__list--single,
.product-form .product-discount-row .choices__list--single,
.product-form .product-shipping-card .choices__list--single {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
}

.product-form .product-discounts-head .choices__item,
.product-form .product-discount-row .choices__item,
.product-form .product-shipping-card .choices__item {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-form-wide {
    grid-column: 1 / -1;
}

.product-description-field {
    align-self: start;
    width: 100%;
    height: 100%;
    min-height: min(500px, calc(95vh - 178px));
    max-height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.product-description-field .rich-editor {
    min-height: 0;
    max-height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.product-description-field .rich-editor-body {
    min-height: 0;
    overflow-y: auto;
}

.product-images-field {
    display: grid;
    gap: 10px;
}

.product-images-selected {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 8px;
}

.product-image-row {
    position: relative;
    aspect-ratio: 1;
    display: block;
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    cursor: zoom-in;
}

.product-image-row img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-image-delete,
.product-image-add {
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 7px;
}

.product-image-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 19px;
    height: 19px;
    min-height: 19px;
    border: 1px solid #fecaca;
    color: #dc2626;
    background: rgba(254, 242, 242, 0.72);
    opacity: 0.58;
    backdrop-filter: blur(4px);
    transition: opacity 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.product-image-delete:hover,
.product-image-delete:focus-visible {
    background: #fef2f2;
    opacity: 1;
    transform: scale(1.04);
}

.product-image-delete svg,
.product-image-add svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.product-image-add {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    min-height: 74px;
    justify-self: stretch;
    border: 1.5px dashed rgba(20, 184, 166, 0.45);
    color: #0f766e;
    background: rgba(236, 253, 245, 0.72);
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.product-image-add svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.product-image-add:hover,
.product-image-add:focus-visible {
    border-color: #14b8a6;
    color: #0f766e;
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.product-image-picker-button {
    width: 96px;
    height: 96px;
    min-height: 96px;
    display: grid;
    place-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0;
    color: #0f766e;
    background: linear-gradient(135deg, #ffffff, #f0fdfa);
}

.product-image-picker-button:hover {
    border-color: #14b8a6;
    background: #ecfdf5;
}

.product-image-picker-preview {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 7px;
}

.product-image-picker-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-image-picker-preview svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.product-image-lightbox[hidden] {
    display: none;
}

.product-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.68);
}

.product-image-lightbox-dialog {
    width: min(96vw, 980px);
    max-height: 94vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
}

.product-image-lightbox-body {
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 14px;
    background: #0f172a;
}

.product-image-lightbox-body img {
    max-width: 100%;
    max-height: calc(94vh - 84px);
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

.product-modal-footer {
    z-index: 2;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 18px;
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.gallery-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.gallery-upload-form {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.gallery-folder-actions {
    margin-left: auto;
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.gallery-upload-form .choices {
    min-width: 130px;
    margin: 0;
}

.gallery-upload-form .choices__inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: 8px;
    padding: 6px 34px 6px 10px;
    background: #ffffff;
}

.auth-shell .choices {
    overflow: visible;
}

.auth-shell .choices__inner {
    transition: border-color 0.16s ease, border-radius 0.16s ease, box-shadow 0.16s ease;
}

.auth-shell .choices.is-open .choices__inner {
    border-color: #14b8a6;
    border-bottom-color: rgba(20, 184, 166, 0.35);
    border-radius: 7px 7px 0 0;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.auth-shell .choices.is-flipped.is-open .choices__inner {
    border-top-color: rgba(20, 184, 166, 0.35);
    border-bottom-color: #14b8a6;
    border-radius: 0 0 7px 7px;
}

.auth-shell .choices__list--dropdown,
.auth-shell .choices__list[aria-expanded] {
    top: calc(100% - 1px);
    z-index: 80;
    overflow: hidden;
    margin-top: 0;
    border: 1px solid #14b8a6;
    border-top: 0;
    border-radius: 0 0 7px 7px;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.auth-shell .choices.is-flipped .choices__list--dropdown,
.auth-shell .choices.is-flipped .choices__list[aria-expanded] {
    top: auto;
    bottom: calc(100% - 1px);
    border-top: 1px solid #14b8a6;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    box-shadow: 0 -18px 34px rgba(15, 23, 42, 0.12);
}

.auth-shell .choices__list--dropdown .choices__item,
.auth-shell .choices__list[aria-expanded] .choices__item {
    padding: 8px 12px;
}

.auth-shell .choices__list--dropdown .choices__item--selectable.is-highlighted,
.auth-shell .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    color: #0f766e;
    background: #ecfdf5;
}

.auth-shell .order-status-form .choices {
    width: 100px;
    margin: 0;
    background: transparent;
    font-size: 12px;
    overflow: visible;
}

.auth-shell .order-status-form .choices__inner {
    min-height: 32px;
    display: flex;
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 0 24px 0 10px;
    color: inherit;
    background-color: #e0e7ff;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
}

.auth-shell .order-status-form.order-status-new .choices__inner {
    background-color: #e0e7ff;
}

.auth-shell .order-status-form.order-status-new .choices__list--dropdown,
.auth-shell .order-status-form.order-status-new .choices__list[aria-expanded] {
    background-color: #eef2ff;
}

.auth-shell .order-status-form.order-status-confirmed .choices__inner {
    background-color: #e0f2fe;
}

.auth-shell .order-status-form.order-status-confirmed .choices__list--dropdown,
.auth-shell .order-status-form.order-status-confirmed .choices__list[aria-expanded] {
    background-color: #f0f9ff;
}

.auth-shell .order-status-form.order-status-shipping .choices__inner {
    background-color: #fef3c7;
}

.auth-shell .order-status-form.order-status-shipping .choices__list--dropdown,
.auth-shell .order-status-form.order-status-shipping .choices__list[aria-expanded] {
    background-color: #fffbeb;
}

.auth-shell .order-status-form.order-status-completed .choices__inner {
    background-color: #d1fae5;
}

.auth-shell .order-status-form.order-status-completed .choices__list--dropdown,
.auth-shell .order-status-form.order-status-completed .choices__list[aria-expanded] {
    background-color: #ecfdf5;
}

.auth-shell .order-status-form.order-status-cancelled .choices__inner {
    background-color: #fee2e2;
}

.auth-shell .order-status-form.order-status-cancelled .choices__list--dropdown,
.auth-shell .order-status-form.order-status-cancelled .choices__list[aria-expanded] {
    background-color: #fef2f2;
}

.auth-shell .order-status-form .choices__list--single {
    width: 100%;
    padding: 0;
    text-align: center;
}

.auth-shell .order-status-form .choices__item {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-shell .order-status-form .choices[data-type*="select-one"]::after {
    right: 10px;
    border-color: currentColor transparent transparent;
}

.auth-shell .order-status-form .choices[data-type*="select-one"].is-open::after {
    border-color: transparent transparent currentColor;
}

.auth-shell .order-status-form .choices.is-open .choices__inner {
    border-radius: 999px;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent);
}

.auth-shell .order-status-form .choices__list--dropdown,
.auth-shell .order-status-form .choices__list[aria-expanded] {
    z-index: 260;
    width: 100px;
    min-width: 100px;
    margin-top: 6px;
    border-color: currentColor;
    border-top: 1px solid currentColor;
    border-radius: 12px;
    background: #f0fdf4;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.auth-shell .order-status-form .choices__list--dropdown .choices__item,
.auth-shell .order-status-form .choices__list[aria-expanded] .choices__item {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: inherit;
    background: transparent;
    font-size: 12px;
    text-align: center;
}

.auth-shell .order-status-form .choices.is-flipped .choices__list--dropdown,
.auth-shell .order-status-form .choices.is-flipped .choices__list[aria-expanded] {
    margin-top: 0;
    margin-bottom: 6px;
    border-bottom: 1px solid currentColor;
    border-radius: 12px;
}

.auth-shell .order-status-form .choices__list--dropdown .choices__item--selectable.is-highlighted,
.auth-shell .order-status-form .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    color: inherit;
    background: rgba(16, 185, 129, 0.16);
}

.gallery-groups {
    display: grid;
    gap: 16px;
}

.gallery-group {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.gallery-group-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    min-height: 48px;
    padding: 8px 10px 8px 12px;
    cursor: pointer;
    list-style: none;
    background: #f8fafc;
}

.gallery-group-head::-webkit-details-marker {
    display: none;
}

.gallery-group-head > span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-group-head > span svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: #64748b;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: transform 160ms ease;
}

.gallery-group[open] .gallery-group-head > span > svg:first-child {
    transform: rotate(90deg);
}

.gallery-group-head strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
}

.gallery-group-head small {
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
}

.gallery-grid-scroll {
    max-height: 537px;
    overflow-y: auto;
    padding: 12px;
}

.gallery-group .gallery-empty {
    padding: 14px 12px;
}

.gallery-group h3 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
}

/* Legacy container support for older markup. */
.gallery-group-legacy {
    display: grid;
    gap: 12px;
}

.upload-icon-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
    display: grid;
    place-items: center;
    margin: 0;
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: 8px;
    padding: 0;
    color: #0f766e;
    background: #ecfdf5;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.upload-icon-button:hover {
    border-color: #14b8a6;
    background: #dffaf4;
}

.upload-icon-button svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.folder-delete-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0;
    color: #dc2626;
    background: #fef2f2;
}

.folder-delete-button:hover {
    border-color: #fca5a5;
    background: #fee2e2;
}

.folder-delete-button[hidden] {
    display: none;
}

.folder-delete-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 150px);
    justify-content: start;
    gap: 12px;
}

.gallery-item {
    position: relative;
    width: 150px;
    min-height: 171px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    color: #334155;
    background: #ffffff;
    text-align: left;
}

.gallery-item:hover {
    border-color: #14b8a6;
    background: #f0fdfa;
}

.gallery-preview-button {
    width: 100%;
    display: grid;
    gap: 7px;
    min-height: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    text-align: left;
}

.gallery-preview-button:hover {
    text-decoration: none;
}

.gallery-preview-button img {
    width: 100%;
    height: 132px;
    display: block;
    border-radius: 6px;
    object-fit: cover;
    background: #f1f5f9;
}

.gallery-preview-button span {
    overflow: hidden;
    color: #475569;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-delete-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 23px;
    height: 23px;
    min-height: 23px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(248, 113, 113, 0.44);
    border-radius: 8px;
    color: #dc2626;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
    opacity: 0.58;
    transition: opacity 160ms ease, transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.gallery-check {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    margin: 0;
    opacity: 0.58;
    transition: opacity 160ms ease, transform 160ms ease;
}

.gallery-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gallery-check span {
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(20, 184, 166, 0.55);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.gallery-check span::after {
    content: "";
    width: 7px;
    height: 4px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    opacity: 0;
    transform: rotate(-45deg) translate(1px, -1px);
}

.gallery-item:hover .gallery-check,
.gallery-item:focus-within .gallery-check,
.gallery-check:has(input:checked) {
    opacity: 1;
    transform: translateY(0);
}

.gallery-check:has(input:checked) span {
    border-color: #14b8a6;
    background: #14b8a6;
}

.gallery-check:has(input:checked) span::after {
    opacity: 1;
}

.gallery-item:hover .gallery-delete-button,
.gallery-item:focus-within .gallery-delete-button {
    opacity: 1;
    transform: translateY(0);
}

.gallery-delete-button:hover {
    border-color: #ef4444;
    background: #fef2f2;
}

.gallery-delete-button svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.danger-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.gallery-empty {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(15, 23, 42, 0.62);
}

.confirm-modal[hidden] {
    display: none;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1120;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(15, 23, 42, 0.55);
}

.confirm-dialog {
    width: min(100%, 420px);
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
}

.confirm-modal .orders-detail-dialog {
    width: 60vw;
    height: 80vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

@media (max-width: 720px) {
    .confirm-modal .orders-detail-dialog {
        width: 90vw;
    }
}

#product-edit-modal .product-dialog {
    width: 90vw;
    height: 95vh;
    max-width: none;
    max-height: 95vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) 64px;
}

#product-edit-modal {
    z-index: 1110;
}

#product-image-picker {
    z-index: 1130;
}

#product-avatar-picker {
    z-index: 1140;
}

#product-import-modal {
    z-index: 1125;
}

.product-import-dialog {
    width: min(100%, 520px);
}

#product-import-modal .confirm-head {
    grid-template-columns: 43px minmax(0, 1fr) 43px;
}

#product-edit-modal .confirm-head {
    grid-template-columns: minmax(0, 1fr) auto 43px;
}

#product-edit-modal .confirm-head h3 {
    grid-column: 1;
    justify-self: start;
}

.product-import-body {
    max-height: min(68vh, 520px);
    overflow-y: auto;
}

.product-import-list {
    display: grid;
    gap: 8px;
}

.product-import-source {
    width: 100%;
    display: grid;
    gap: 3px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 10px 12px;
    color: #0f172a;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    text-align: left;
    cursor: pointer;
}

.product-import-source:hover {
    border-color: #14b8a6;
    background: #ecfdf5;
}

.product-import-source span {
    color: #0f766e;
    font-size: 12px;
}

.product-import-source strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.confirm-head {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr) 43px;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.confirm-head > .image-picker-close {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
}

.confirm-head h3 {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 600;
}

.confirm-body {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.confirm-body p {
    margin: 0;
    color: #334155;
    line-height: 1.55;
}

.confirm-body strong {
    color: #0f172a;
    font-weight: 600;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.danger-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    padding: 0 15px;
    color: #ffffff;
    background: #dc2626;
    font-weight: 600;
    cursor: pointer;
}

.danger-button:hover {
    background: #b91c1c;
}

.gallery-lightbox-dialog {
    width: min(100%, 860px);
    max-height: min(88vh, 760px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
}

.gallery-lightbox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.gallery-lightbox-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 600;
}

.gallery-lightbox-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    overflow-y: auto;
    padding: 18px;
}

.gallery-lightbox-body img {
    width: 100%;
    max-height: 62vh;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    background: #f1f5f9;
}

.rename-form {
    display: grid;
    align-content: start;
    gap: 14px;
}

.rename-form label {
    display: grid;
    gap: 7px;
    margin: 0;
}

.rename-form label span {
    color: #334155;
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 760px) {
    .gallery-toolbar {
        flex-direction: column;
    }

    .gallery-lightbox-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .orders-head-actions {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .orders-search-form {
        max-width: none;
        flex-basis: 100%;
    }

    .orders-right-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-left: 0;
    }

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

    .product-form {
        grid-template-columns: 1fr;
        padding-bottom: 18px;
        scroll-padding-bottom: 18px;
    }

    #product-edit-modal .product-form {
        display: block;
        height: auto;
        max-height: none;
        overflow-y: auto;
    }

    #product-edit-modal .product-form-main {
        overflow: visible;
        padding-right: 0;
    }

    .product-description-field {
        height: clamp(360px, calc(95vh - 178px), 720px);
        margin-top: 18px;
        min-height: 0;
        max-height: calc(95vh - 178px);
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        overflow: hidden;
    }

    .product-description-field .rich-editor {
        min-height: clamp(180px, calc(95vh - 210px), 300px);
        max-height: none;
        display: grid;
        overflow: hidden;
    }

    .product-description-field .rich-editor-body {
        min-height: clamp(120px, calc(95vh - 300px), 240px);
        overflow-y: auto;
    }

    .product-review-row {
        grid-template-columns: 48px minmax(0, 1fr) 32px;
    }
}

@media (max-width: 720px) {
    .toast-wrap {
        top: 12px;
        right: 12px;
        width: calc(100vw - 24px);
    }

    .image-picker-modal {
        align-items: start;
        padding: 10px;
    }

    .image-picker-dialog {
        width: 100%;
        max-height: calc(100dvh - 20px);
        border-radius: 8px;
    }

    .image-picker-head {
        padding: 12px;
    }

    .image-picker-head h3 {
        font-size: 16px;
    }

    .image-picker-panel {
        grid-template-columns: repeat(2, 150px);
        gap: 8px;
        padding: 10px;
    }

    .image-option {
        width: 150px;
        height: 174px;
        gap: 5px;
        padding: 6px;
        border-radius: 7px;
    }

    .image-option img {
        height: 136px;
    }

    .multi-image-actions {
        padding: 10px;
    }

    body:has(.admin-dashboard) .auth-shell {
        width: min(100% - 18px, 1180px);
        margin: 10px auto;
    }

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

    .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .admin-nav {
        grid-template-columns: 1fr;
    }

    .admin-main {
        padding: 12px;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        min-height: 0;
        margin-bottom: 10px;
    }

    .multi-image-field {
        grid-template-columns: 1fr;
    }

    .product-form {
        grid-template-columns: 1fr;
        padding-bottom: 14px;
        scroll-padding-bottom: 14px;
    }

    #product-edit-modal .product-form {
        display: block;
        height: auto;
        max-height: none;
        overflow-y: auto;
    }

    #product-edit-modal .product-form-main {
        overflow: visible;
        padding-right: 0;
    }

    .product-form-main {
        gap: 12px;
    }

    .product-description-field {
        height: clamp(300px, calc(95vh - 158px), 640px);
        margin-top: 14px;
        min-height: 0;
        max-height: calc(95vh - 158px);
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        overflow: hidden;
    }

    .product-description-field .rich-editor {
        min-height: clamp(160px, calc(95vh - 210px), 260px);
        max-height: none;
        display: grid;
        overflow: hidden;
    }

    .product-description-field .rich-editor-body {
        min-height: clamp(110px, calc(95vh - 270px), 200px);
        overflow-y: auto;
    }

    .product-review-row {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 6px;
        padding: 6px;
    }

    .product-variant-row {
        grid-template-columns: 28px minmax(0, 1fr) minmax(100px, 120px) 26px;
        gap: 5px;
        padding: 5px 6px;
    }

    .product-variant-image {
        width: 28px;
        height: 28px;
        min-height: 28px;
    }

    .product-variant-row input {
        height: 28px;
        min-height: 28px;
        font-size: 12px;
    }

    .product-variant-delete {
        width: 26px;
        height: 26px;
        min-height: 26px;
    }

    .product-variant-add {
        height: 38px;
        min-height: 38px;
    }

    .product-size-weight-row {
        grid-template-columns: minmax(0, 1fr) 26px;
        gap: 5px;
        padding: 5px 6px;
    }

    .product-size-weight-row input {
        height: 28px;
        min-height: 28px;
        font-size: 12px;
    }

    .product-size-weight-delete {
        width: 26px;
        height: 26px;
        min-height: 26px;
    }

    .product-size-weight-add {
        height: 38px;
        min-height: 38px;
    }

    .product-discount-row {
        grid-template-columns: minmax(58px, 1fr) auto minmax(54px, 0.8fr) 58px 26px;
        gap: 5px;
        padding: 5px 6px;
    }

    .product-discount-row input,
    .product-discount-row select,
    .product-discount-row .choices,
    .product-discount-row .choices__inner {
        min-height: 28px;
        height: 28px;
        font-size: 12px;
    }

    .product-shipping-card,
    .product-shipping-card.is-free {
        grid-template-columns: 20px minmax(72px, auto) minmax(68px, 1fr) minmax(78px, 1fr);
        gap: 5px;
        min-height: 38px;
        padding: 5px 6px;
    }

    .product-shipping-card:not(.is-free) {
        grid-template-columns: 20px minmax(48px, auto) minmax(58px, 0.85fr) minmax(78px, 1fr) minmax(62px, 0.85fr);
    }

    .product-shipping-card input,
    .product-shipping-card select,
    .product-shipping-card .choices,
    .product-shipping-card .choices__inner {
        min-height: 28px;
        height: 28px;
        font-size: 12px;
    }

    .product-shipping-toggle {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }

    .product-shipping-toggle span {
        width: 16px;
        height: 16px;
    }

    .product-shipping-label {
        font-size: 12px;
    }

    .product-form .product-discount-row .choices,
    .product-form .product-discount-row .choices__inner,
    .product-form .product-shipping-card .choices,
    .product-form .product-shipping-card .choices__inner {
        min-height: 28px;
        height: 28px;
    }

    .product-discount-delete {
        width: 26px;
        height: 26px;
        min-height: 26px;
    }

    .product-discount-add {
        height: 38px;
        min-height: 38px;
    }

    .product-discounts-head select,
    .product-discounts-head .choices {
        width: 200px;
        min-width: 200px;
        height: 32px;
        min-height: 32px;
    }

    .product-size-weights-head input {
        width: min(172px, 58%);
        max-width: 200px;
        min-width: 150px;
    }

    .product-review-avatar {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }

    .product-review-text {
        gap: 5px;
    }

    .product-review-top {
        grid-template-columns: minmax(76px, 1fr) repeat(3, minmax(44px, 1fr));
        gap: 5px;
    }

    .product-review-bottom {
        grid-template-columns: minmax(0, 1fr) minmax(54px, 90px) 24px;
        gap: 5px;
    }

    .product-review-text input[data-review-time] {
        max-width: 90px;
    }

    .product-review-row input {
        height: 24px;
        min-height: 24px;
        padding: 2px 6px;
        font-size: 12px;
        line-height: 18px;
    }

    .product-review-reaction input {
        height: 20px;
        min-height: 20px;
        padding: 1px 2px 1px 0;
        line-height: 18px;
    }

    .product-review-reaction {
        height: 24px;
        min-height: 24px;
        grid-template-columns: 17px minmax(0, 1fr);
    }

    .product-review-reaction span {
        width: 100%;
        height: 100%;
    }

    .product-review-reaction span svg {
        width: 11px;
        height: 11px;
    }

    .product-review-delete {
        width: 24px;
        height: 24px;
        min-height: 24px;
    }

    .product-review-add {
        height: 56px;
        min-height: 56px;
    }

    .product-review-add svg {
        width: 24px;
        height: 24px;
    }

    .pagination-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .pagination-actions {
        justify-content: flex-start;
    }

    .admin-stats,
    .admin-content-grid,
    .overview-stats,
    .overview-grid,
    .overview-grid.is-secondary,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .overview-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .overview-hero-action {
        width: 100%;
    }

    .overview-module-head {
        align-items: stretch;
        flex-direction: column;
    }

    .overview-revenue-filter {
        justify-content: flex-start;
    }

    .overview-revenue-filter .orders-date-display {
        width: 100%;
    }

    .overview-bars {
        gap: 7px;
    }

    .overview-bar-track {
        height: 124px;
    }

    .overview-insights {
        grid-template-columns: 1fr;
    }

    .settings-grid:has(.settings-shop-logo) {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .settings-grid:has(.settings-homepage-status) {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .settings-homepage-status {
        grid-column: 1 / 4 !important;
    }

    .settings-maintenance {
        grid-column: 4 / 7 !important;
    }

    .settings-grid:has(.settings-shop-logo) > label,
    .settings-grid:has(.settings-shop-logo) > .settings-picker-box {
        grid-column: 1 / -1;
    }

    .settings-shop-logo {
        grid-column: 1 / 3 !important;
    }

    .settings-search-placeholder {
        grid-column: 3 / 7 !important;
    }

    .settings-grid:has(.settings-shop-rating) {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .settings-grid:has(.settings-shop-rating) > label:not(.settings-shop-rating):not(.settings-shop-items):not(.settings-shop-sold):not(.settings-shop-reply):not(.settings-shop-warehouse):not(.settings-shop-like):not(.settings-shop-comment):not(.settings-shop-share) {
        grid-column: 1 / -1;
    }

    .settings-wide {
        grid-column: auto;
    }

    .settings-shop-rating { grid-column: 1 / 3; }
    .settings-shop-items { grid-column: 3 / 5; }
    .settings-shop-sold { grid-column: 5 / 7; }
    .settings-shop-reply { grid-column: 1 / 4; }
    .settings-shop-warehouse { grid-column: 4 / 7; }
    .settings-shop-like { grid-column: 1 / 3; }
    .settings-shop-comment { grid-column: 3 / 5; }
    .settings-shop-share { grid-column: 5 / 7; }
}

body:has(.admin-dashboard) .admin-module,
body:has(.admin-dashboard) .stat-card,
body:has(.admin-dashboard) .settings-grid label,
body:has(.admin-dashboard) .settings-grid .settings-picker-box,
body:has(.admin-dashboard) .table-wrap,
body:has(.admin-dashboard) .product-dialog,
body:has(.admin-dashboard) .confirm-dialog,
body:has(.admin-dashboard) .image-picker-dialog,
body:has(.admin-dashboard) .gallery-item,
body:has(.admin-dashboard) .overview-product-row {
    border-color: var(--dash-line);
    background-color: var(--dash-surface);
    box-shadow: var(--dash-shadow-sm);
}

body:has(.admin-dashboard) .product-create-button,
body:has(.admin-dashboard) .module-action,
body:has(.admin-dashboard) .product-save-button {
    color: #ffffff;
    background: var(--dash-gradient);
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.16);
}

body:has(.admin-dashboard) .orders-delete-confirm,
body:has(.admin-dashboard) .danger-button {
    color: var(--dash-danger);
    border-color: #fecaca;
    background: var(--dash-danger-soft);
}

body:has(.admin-dashboard) .logout-action {
    color: var(--dash-danger);
}

body:has(.admin-dashboard) .logout-action:hover {
    color: var(--dash-danger);
    border-color: #fecaca;
    background: var(--dash-danger-soft);
}

body:has(.admin-dashboard) .module-icon,
body:has(.admin-dashboard) .orders-refresh-button,
body:has(.admin-dashboard) .product-import-button,
body:has(.admin-dashboard) .image-select-box,
body:has(.admin-dashboard) .multi-image-add,
body:has(.admin-dashboard) .product-image-add,
body:has(.admin-dashboard) .product-review-add,
body:has(.admin-dashboard) .product-variant-add,
body:has(.admin-dashboard) .product-size-weight-add {
    border-color: rgba(20, 184, 166, 0.34);
    color: var(--dash-primary-strong);
    background: var(--dash-primary-soft);
}

body:has(.admin-dashboard) .product-import-button:hover,
body:has(.admin-dashboard) .orders-refresh-button:hover,
body:has(.admin-dashboard) .product-review-add:hover,
body:has(.admin-dashboard) .product-review-add:focus-visible,
body:has(.admin-dashboard) .product-variant-add:hover,
body:has(.admin-dashboard) .product-variant-add:focus-visible,
body:has(.admin-dashboard) .product-size-weight-add:hover,
body:has(.admin-dashboard) .product-size-weight-add:focus-visible {
    border-color: var(--dash-primary);
    color: var(--dash-primary-strong);
    background: #dffaf4;
    box-shadow: 0 0 0 3px var(--dash-primary-tint);
}

body:has(.admin-dashboard) .admin-table th,
body:has(.admin-dashboard) .orders-search-form label,
body:has(.admin-dashboard) .orders-date-display,
body:has(.admin-dashboard) .orders-date-picker,
body:has(.admin-dashboard) .orders-action-dropdown,
body:has(.admin-dashboard) .orders-sub-dropdown,
body:has(.admin-dashboard) .choices__inner,
body:has(.admin-dashboard) .choices__list--dropdown,
body:has(.admin-dashboard) .choices__list[aria-expanded] {
    border-color: var(--dash-line);
    background: var(--dash-surface);
}

body:has(.admin-dashboard) .orders-date-filter.is-open .orders-date-display,
body:has(.admin-dashboard) .orders-date-display:focus-within,
body:has(.admin-dashboard) .orders-search-form label:focus-within,
body:has(.admin-dashboard) .choices.is-focused .choices__inner,
body:has(.admin-dashboard) .choices.is-open .choices__inner {
    border-color: var(--dash-primary);
    box-shadow: 0 0 0 3px var(--dash-primary-tint);
}

body:has(.admin-dashboard) .orders-date-display::after,
body:has(.admin-dashboard) .orders-date-day.is-selected,
body:has(.admin-dashboard) .gallery-check:has(input:checked) span {
    background: var(--dash-primary);
}

body:has(.admin-dashboard) .orders-date-day.is-in-range,
body:has(.admin-dashboard) .orders-date-day:not(.is-selected):hover {
    background: var(--dash-primary-soft);
}

body:has(.admin-dashboard) .orders-date-calendar {
    color: var(--dash-text-soft);
    border-radius: 6px;
}

body:has(.admin-dashboard) .orders-date-calendar:hover,
body:has(.admin-dashboard) .orders-date-month-head button:hover {
    color: var(--dash-primary-strong);
    background: var(--dash-primary-soft);
}

body:has(.admin-dashboard) .orders-date-month-head,
body:has(.admin-dashboard) .orders-date-weekdays,
body:has(.admin-dashboard) .orders-date-day {
    color: var(--dash-text-soft);
}

body:has(.admin-dashboard) .orders-date-month-head button {
    border-radius: 6px;
    color: var(--dash-muted);
    background: transparent;
}

body:has(.admin-dashboard) .orders-date-day:not(.is-selected):hover {
    color: var(--dash-primary-strong);
    box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.42);
}

body:has(.admin-dashboard) .orders-date-day.is-muted {
    color: #b8c2cc;
}

body:has(.admin-dashboard) .orders-date-day.is-selected {
    color: #ffffff;
    background: var(--dash-gradient);
}

body:has(.admin-dashboard) .orders-date-presets {
    border-top-color: var(--dash-line);
}

body:has(.admin-dashboard) .orders-date-presets button {
    border-color: rgba(20, 184, 166, 0.42);
    color: var(--dash-primary-strong);
    background: var(--dash-surface);
}

body:has(.admin-dashboard) .orders-date-presets button:hover {
    border-color: var(--dash-primary);
    color: var(--dash-primary-strong);
    background: var(--dash-primary-soft);
}

@media (max-width: 350px) {
    .image-picker-panel {
        grid-template-columns: repeat(1, 150px);
    }
}
