:root {
    --bg: #f7f2ef;
    --surface: rgba(255, 252, 250, 0.92);
    --surface-alt: #f4ebe7;
    --text: #251d2c;
    --muted: #746b80;
    --primary: #8e5f70;
    --primary-dark: #6f4655;
    --border: rgba(142, 95, 112, 0.14);
    --success: #2b8a5b;
    --error: #c24848;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
    font: inherit;
    border-radius: 16px;
    border: 1px solid var(--border);
}
button, .button-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 0.78rem 1rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.96rem;
    line-height: 1.2;
    min-height: 42px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(111, 70, 85, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
button:hover, .button-link:hover { transform: translateY(-1px); box-shadow: 0 16px 28px rgba(111, 70, 85, 0.24); }
button:disabled, .button-link:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.button-secondary {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(142, 95, 112, 0.18);
    color: var(--text);
    padding: 0.72rem 0.95rem;
    box-shadow: 0 8px 22px rgba(37, 29, 44, 0.06);
}
.button-danger {
    background: linear-gradient(135deg, #c45757 0%, #a73d3d 100%);
    color: #fff;
    border: none;
    padding: 0.8rem 1rem;
}
.button-small {
    padding: 0.48rem 0.72rem;
    font-size: 0.88rem;
    min-height: 34px;
    border-radius: 15px;
}
.button-compact {
    padding: 0.5rem 0.78rem;
    min-height: 34px;
    font-size: 0.84rem;
    border-radius: 14px;
    font-weight: 700;
}
.button-subtle {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(142, 95, 112, 0.12);
    color: var(--muted);
    box-shadow: none;
}
.button-subtle:hover {
    box-shadow: 0 8px 18px rgba(37, 29, 44, 0.08);
}
.button-link--block { width: 100%; }
.container { width: min(1180px, calc(100% - 1.5rem)); margin: 0 auto; }
input, select, textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.78rem 0.9rem;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}
textarea { min-height: 120px; resize: vertical; }
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: 0;
    padding: 0;
}
.app-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 49;
    border: 0;
    padding: 0;
    background: rgba(15, 18, 39, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.app-nav-overlay[hidden] {
    display: none !important;
}
.app-nav-overlay.is-open { opacity: 1; }
.app-nav-overlay--light { background: rgba(31, 35, 64, 0.35); }
.mobile-nav-toggle,
.nav-close-button {
    display: none;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.12);
    color: inherit;
    box-shadow: none;
}
.nav-close-button {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    font-size: 1.35rem;
}
.nav-close-button--light {
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.site-header {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 70;
    padding-top: 0.75rem;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(118, 80, 94, 0.94) 0%, rgba(168, 124, 126, 0.9) 100%);
    border: 1px solid rgba(255,255,255,0.24);
    box-shadow: 0 18px 48px rgba(97, 61, 75, 0.2);
    backdrop-filter: blur(16px);
}
.header-leading {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}
.brand { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.brand span { font-weight: 500; }
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    position: relative;
    z-index: 71;
}
.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    color: rgba(255,255,255,0.92);
    font-weight: 700;
}
.main-nav a:hover,
.main-nav a.is-active {
    background: rgba(255,255,255,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.main-nav__mobile-header,
.main-nav__cart-link { display: none; }
.cart-badge {
    background: rgba(255,255,255,0.18);
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}
.cart-badge.is-active { background: rgba(255,255,255,0.28); }
.cart-badge span {
    background: #fff;
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}
.page-shell { padding: 1.35rem 0 4rem; }
.checkout-layout, .cart-layout, .admin-grid, .product-showcase { display: grid; gap: 1.5rem; }
.summary-card, .panel-card, .success-card, .auth-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,249,246,0.88) 100%);
    border: 1px solid rgba(255,255,255,0.62);
    border-radius: 30px;
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(37, 29, 44, 0.08);
}
.panel-card,
.summary-card,
.success-card,
.auth-card,
.product-card,
.product-showcase__content,
.delivery-info-card,
.stat-card {
    backdrop-filter: blur(8px);
}
.page-heading h1, .page-heading h2 { margin-bottom: 0.25rem; }
.page-heading p { color: var(--muted); }
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.page-heading--app {
    padding: 1.2rem 1.25rem;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(247,237,233,0.88) 100%);
    border: 1px solid rgba(255,255,255,0.76);
    box-shadow: 0 18px 40px rgba(37, 29, 44, 0.07);
}
.page-heading__content {
    display: grid;
    gap: 0.3rem;
    max-width: 760px;
}
.page-heading__eyebrow,
.summary-card__eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.35rem;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    background: rgba(142, 95, 112, 0.1);
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.page-heading__meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.page-heading__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.46rem 0.78rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(142, 95, 112, 0.12);
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 700;
}
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.product-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,248,244,0.9) 100%);
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(37, 29, 44, 0.06);
}
.product-card__body {
    display: grid;
    gap: 0.55rem;
}
.product-card__badge,
.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(142, 95, 112, 0.1);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
}
.product-card__title {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.product-card__price {
    margin: 0;
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}
.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}
.button-link--soft {
    width: 100%;
}
.product-card img, .product-showcase__image img, .cart-item img { border-radius: 18px; aspect-ratio: 1 / 1; object-fit: cover; }
.product-showcase { grid-template-columns: 1.1fr 1fr; align-items: start; }
.product-showcase--app {
    align-items: stretch;
}
.product-showcase__image--hero {
    position: sticky;
    top: 5.8rem;
    padding: 1rem;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(247,237,233,0.9) 100%);
    border: 1px solid rgba(255,255,255,0.75);
    box-shadow: 0 18px 40px rgba(37, 29, 44, 0.08);
}
.product-showcase__content {
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,248,244,0.9) 100%);
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 28px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    box-shadow: 0 18px 38px rgba(37, 29, 44, 0.07);
}
.product-showcase__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.product-showcase__price-row {
    display: flex;
    gap: 0.7rem;
    align-items: baseline;
    flex-wrap: wrap;
}
.product-showcase__price {
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    letter-spacing: -0.03em;
}
.product-showcase__price-note {
    color: var(--muted);
    font-weight: 700;
}
.product-showcase__description {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}
.product-showcase__purchase {
    padding: 1rem;
    border-radius: 24px;
    background: rgba(142, 95, 112, 0.06);
    border: 1px solid rgba(142, 95, 112, 0.12);
}
.product-showcase__delivery {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.product-showcase__delivery .delivery-info-card { margin: 0; }
.page-delivery-info {
    margin-top: 1.5rem;
}
.page-delivery-info .delivery-info-card { margin: 0; }
.delivery-info-card {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    padding: 1rem 1rem 1rem 1.15rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(250,241,236,0.92) 100%);
    border: 1px solid rgba(255,255,255,0.76);
    border-radius: 24px;
    box-shadow: 0 14px 28px rgba(111, 70, 85, 0.08);
    position: relative;
    overflow: hidden;
}
.delivery-info-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #25d366 0%, #128c7e 100%);
}
.delivery-info-card__header {
    display: grid;
    gap: 0.2rem;
}
.delivery-info-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.12);
    color: #128c7e;
    font-size: 0.74rem;
    font-weight: 700;
}
.delivery-info-card__header small {
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
}
.delivery-info-card__header h2,
.delivery-info-card__text,
.delivery-info-card__footer { margin: 0; }
.delivery-info-card__header h2 {
    margin-top: 0;
    font-size: 1.1rem;
}
.delivery-info-card__body {
    display: grid;
    gap: 0.25rem;
}
.delivery-info-card__text,
.delivery-info-card__footer {
    font-size: 0.94rem;
    line-height: 1.45;
}
.delivery-info-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.delivery-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
    box-shadow: 0 8px 18px rgba(18, 140, 126, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.delivery-contact-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 10px 22px rgba(18, 140, 126, 0.2);
}
.delivery-contact-link__icon {
    width: 0.82rem;
    height: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}
.delivery-contact-link__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.delivery-contact-link--group { background: #25d366; }
.delivery-contact-link--secretary { background: #128c7e; }
.inline-form, .stack-form { display: grid; gap: 1rem; }
.admin-form-card {
    display: grid;
    gap: 1.1rem;
}
.admin-form-card__header {
    display: grid;
    gap: 0.3rem;
}
.admin-form-card__header h2,
.admin-form-card__header h3 {
    margin: 0;
}
.admin-form-card__header p {
    margin: 0;
    color: var(--muted);
}
.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}
.admin-form-grid > .admin-form-grid__full {
    grid-column: 1 / -1;
}
.inline-form label, .stack-form label { display: grid; gap: 0.45rem; }
.stack-form > label:not(.inline-checkbox),
.inline-form > label:not(.inline-checkbox),
.filter-form__grid > label:not(.inline-checkbox),
.checkout-card__grid > label:not(.inline-checkbox) {
    padding: 0.9rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.68);
    border: 1px solid rgba(142, 95, 112, 0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.stack-form > label:not(.inline-checkbox) > span:first-child,
.inline-form > label:not(.inline-checkbox) > span:first-child,
.filter-form__grid > label:not(.inline-checkbox) > span:first-child,
.checkout-card__grid > label:not(.inline-checkbox) > span:first-child {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 800;
}
.inline-checkbox {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.56);
    border: 1px solid rgba(142, 95, 112, 0.1);
}
.inline-checkbox input { width: auto; }
input, select, textarea { width: 100%; padding: 0.9rem 1rem; background: #fff; }
.cart-layout, .checkout-layout, .admin-grid { grid-template-columns: 2fr 1fr; align-items: start; }
.cart-list, .summary-item, .summary-row { display: grid; gap: 0.75rem; }
.cart-list { gap: 1rem; }
.cart-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,248,244,0.9) 100%);
    border: 1px solid rgba(255,255,255,0.72);
}
.cart-item__meta {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.cart-item__meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(142, 95, 112, 0.08);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
}
.cart-item__content {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
}
.cart-item__content h3 {
    margin: 0;
}
.cart-item__unit-price {
    margin: 0;
    color: var(--muted);
}
.cart-item__quantity-form {
    gap: 0.5rem;
}
.cart-item__quantity-label {
    gap: 0.35rem !important;
}
.cart-item__actions {
    display: grid;
    justify-items: end;
    gap: 0.75rem;
    align-self: center;
}
.cart-item__line-total {
    font-size: 1.05rem;
    white-space: nowrap;
}
.cart-item__remove-form {
    margin: 0;
}
.quantity-control {
    display: grid;
    grid-template-columns: 40px minmax(58px, 72px) 40px;
    gap: 0.35rem;
    align-items: center;
}
.quantity-control__button {
    padding: 0.55rem;
    min-height: 40px;
}
.quantity-control input {
    text-align: center;
    padding: 0.6rem 0.35rem;
}
.summary-row, .summary-item { grid-template-columns: 1fr auto; align-items: center; }
.summary-row,
.summary-item {
    padding: 0.82rem 0;
    border-bottom: 1px dashed rgba(142, 95, 112, 0.16);
}
.summary-item:last-of-type,
.summary-row:last-of-type {
    border-bottom: 0;
}
.action-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.summary-note { color: var(--muted); font-size: 0.95rem; }
.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.admin-summary-tile {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.66);
    border: 1px solid rgba(142, 95, 112, 0.1);
}
.admin-summary-tile span {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 800;
}
.admin-summary-tile strong {
    font-size: 1rem;
    letter-spacing: -0.01em;
}
.admin-summary-tile--full {
    grid-column: 1 / -1;
}
.table-cell-stack {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}
.table-cell-stack strong {
    letter-spacing: -0.01em;
}
.table-cell-stack small {
    display: block;
}
.table-value {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}
.table-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    padding: 0.32rem 0.58rem;
    border-radius: 999px;
    background: rgba(42, 46, 81, 0.08);
    color: #2a2e51;
    font-size: 0.8rem;
    font-weight: 800;
}
.table-badge-row {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.cart-summary-card,
.checkout-summary-card {
    position: sticky;
    top: 5.8rem;
    display: grid;
    gap: 0.2rem;
}
.summary-card__total {
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(142, 95, 112, 0.16);
    font-size: 1.06rem;
}
.summary-card__actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.payment-waiting {
    display: grid;
    gap: 1rem;
}
.checkout-card {
    gap: 1.2rem;
}
.checkout-layout--single {
    grid-template-columns: 1fr;
}
.checkout-card__header {
    display: grid;
    gap: 0.3rem;
}
.checkout-card__header h2 {
    margin: 0;
}
.checkout-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}
.checkout-card__grid-full {
    grid-column: 1 / -1;
}
.checkout-card__note {
    margin: -0.15rem 0 0;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(142, 95, 112, 0.07);
    border: 1px solid rgba(142, 95, 112, 0.12);
    color: var(--text);
}
.payment-waiting__actions > * {
    flex: 1 1 240px;
}
.payment-waiting__fallback {
    margin: -0.15rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}
.payment-waiting__fallback-link {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.payment-status-panel {
    display: grid;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(249,240,236,0.92) 0%, rgba(243,231,227,0.88) 100%);
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}
.payment-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
}
.payment-status-badge--pending { background: rgba(158, 111, 113, 0.12); color: var(--primary-dark); }
.payment-status-badge--info { background: rgba(31, 35, 64, 0.08); color: var(--text); }
.payment-status-badge--success { background: rgba(43, 138, 91, 0.12); color: var(--success); }
.payment-status-badge--error { background: rgba(194, 72, 72, 0.12); color: var(--error); }
.flash {
    border-radius: 20px;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,248,244,0.9) 100%);
    border: 1px solid rgba(255,255,255,0.72);
}
.flash--success { border-color: rgba(43, 138, 91, 0.35); color: var(--success); }
.flash--error { border-color: rgba(194, 72, 72, 0.35); color: var(--error); }
.empty-state { padding: 2rem; background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,248,244,0.9) 100%); border-radius: 28px; border: 1px solid rgba(255,255,255,0.72); text-align: center; box-shadow: 0 18px 38px rgba(37, 29, 44, 0.06); }
.success-card { max-width: 720px; }

body.has-drawer-open { overflow: hidden; }

.admin-body { background: radial-gradient(circle at top, rgba(172, 131, 145, 0.18), transparent 28%), linear-gradient(180deg, #f7f0ed 0%, #f1e7e4 100%); }
.admin-layout { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.admin-grid--single { grid-template-columns: 1fr; }
.admin-grid--3col { grid-template-columns: repeat(3, 1fr); }
.sidebar {
    background: linear-gradient(180deg, #241f37 0%, #302745 52%, #3b304f 100%);
    color: #fff;
    padding: 2rem 1.2rem;
    display: grid;
    align-content: start;
    gap: 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar__mobile-header,
.admin-mobile-bar { display: none; }
.sidebar nav { display: grid; gap: 0.35rem; }
.sidebar nav a, .brand--admin {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
}
.sidebar-subnav-link { padding-left: 1.8rem !important; font-size: 0.92em; opacity: 0.92; }
.sidebar-nav-footer-link { margin-top: 0.85rem; }
.nav-group-label { padding: 0.6rem 0.9rem 0.2rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.5; margin-top: 0.5rem; }
.sidebar nav a:hover, .brand--admin:hover { background: rgba(255,255,255,0.1); }
.sidebar nav a.is-active {
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(247,236,231,0.95) 100%);
    color: #362737;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(16, 18, 39, 0.18);
}
.sidebar-user { padding: 1rem 0.9rem; background: rgba(255,255,255,0.08); border-radius: 20px; }
.sidebar form button { width: 100%; }
.admin-content { padding: 2rem; min-width: 0; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.admin-header--hero {
    padding: 1.15rem 1.2rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(250,242,238,0.9) 100%);
    border: 1px solid rgba(255,255,255,0.78);
    box-shadow: 0 16px 34px rgba(37, 29, 44, 0.06);
}
.dashboard-toolbar {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    flex-wrap: wrap;
}
.dashboard-toolbar--compact {
    align-items: end;
}
.dashboard-toolbar__field {
    display: grid;
    gap: 0.35rem;
    min-width: 220px;
    padding: 0.8rem 0.9rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.68);
    border: 1px solid rgba(142, 95, 112, 0.12);
}
.dashboard-toolbar__field span {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 800;
}
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,248,244,0.9) 100%);
    padding: 1.25rem;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,0.7);
    display: grid;
    gap: 0.35rem;
    box-shadow: 0 14px 32px rgba(37, 29, 44, 0.06);
}
.stats-grid--summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card strong { font-size: 1.8rem; }
.stat-card small { color: var(--muted); }
.delivery-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}
.delivery-summary-card {
    display: grid;
    gap: 0.55rem;
    padding: 0.85rem 0.95rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(250,242,238,0.92) 100%);
    border: 1px solid rgba(255,255,255,0.82);
    box-shadow: 0 14px 30px rgba(37, 29, 44, 0.06);
}
.delivery-summary-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.delivery-summary-card__header h2 {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}
.delivery-summary-card__header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
}
.delivery-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}
.delivery-summary-stats--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.delivery-summary-card__stat {
    padding: 0.62rem 0.55rem;
    gap: 0.12rem;
    border-radius: 16px;
    min-height: 92px;
    align-content: start;
    justify-items: center;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.34);
}
.delivery-summary-card__stat span {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
}
.delivery-summary-card__stat strong {
    font-size: 1.12rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.delivery-summary-card__stat small {
    font-size: 0.62rem;
    line-height: 1.15;
    max-width: 12ch;
    opacity: 0.84;
}
.admin-filter-popover {
    position: relative;
    display: block;
    margin-bottom: 1rem;
}
.admin-filter-popover__toggle {
    appearance: none;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.82);
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(250,242,238,0.92) 100%);
    color: var(--text);
    border-radius: 24px;
    padding: 0.75rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    box-shadow: 0 18px 32px rgba(37, 29, 44, 0.1);
    backdrop-filter: blur(18px);
    transition: transform 0.12s ease, box-shadow 0.16s ease;
    text-align: left;
    min-height: 56px;
    font: inherit;
}
.admin-filter-popover__toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 36px rgba(37, 29, 44, 0.14);
}
.admin-filter-popover__toggle:focus-visible {
    outline: 2px solid #2a2e51;
    outline-offset: 2px;
}
.admin-filter-popover__toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 46px;
    padding: 0.65rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #2a2e51 0%, #3a3f70 100%);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(37, 29, 44, 0.22);
}
.admin-filter-popover__toggle-copy {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
    flex: 1 1 auto;
}
.admin-filter-popover__toggle-copy strong {
    font-size: 1rem;
    letter-spacing: -0.01em;
    color: var(--text);
}
.admin-filter-popover__toggle-copy small {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 32ch;
}
.admin-filter-popover__toggle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    background: rgba(37, 29, 44, 0.08);
    border: 1px solid rgba(37, 29, 44, 0.08);
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}
.admin-filter-popover__toggle-badge.is-active {
    background: #ffaf73;
    border-color: rgba(42, 46, 81, 0.16);
    color: #2a2e51;
}
.admin-filter-popover__overlay {
    display: none;
}
.admin-filter-popover__panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    z-index: 40;
    width: min(680px, calc(100vw - 2rem));
    max-height: calc(100vh - 6rem);
    overflow: auto;
    border: 1px solid rgba(255,255,255,0.82);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,242,238,0.96) 100%);
    box-shadow: 0 24px 48px rgba(37, 29, 44, 0.22);
    backdrop-filter: blur(22px);
    padding: 0.95rem;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    pointer-events: none;
}
.admin-filter-popover.is-open .admin-filter-popover__panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.admin-filter-popover__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.55rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid rgba(37, 29, 44, 0.08);
}
.admin-filter-popover__panel-header strong {
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    color: var(--text);
}
.admin-filter-popover__close {
    appearance: none;
    background: rgba(37, 29, 44, 0.06);
    border: 1px solid rgba(37, 29, 44, 0.08);
    color: var(--text);
    width: 32px;
    height: 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.admin-filter-popover__close:hover {
    background: rgba(37, 29, 44, 0.1);
}
.admin-filter-popover__form {
    display: grid;
    gap: 0.7rem;
}
.admin-filter-popover__form .filter-form__grid {
    gap: 0.65rem;
}
.admin-filter-popover__form .filter-form__grid > label {
    padding: 0.78rem 0.82rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(255,255,255,0.75);
    box-shadow: 0 8px 18px rgba(37, 29, 44, 0.04);
}
.admin-filter-popover__form input,
.admin-filter-popover__form select {
    min-height: 40px;
    padding: 0.72rem 0.82rem;
    background: rgba(255,255,255,0.9);
}
.admin-filter-popover__form .filter-actions {
    padding-top: 0.1rem;
}
.stat-card--paid {
    background: rgba(43, 138, 91, 0.1);
    border-color: rgba(43, 138, 91, 0.2);
    color: #2b8a5b;
}
.stat-card--delivered {
    background: rgba(31, 111, 178, 0.1);
    border-color: rgba(31, 111, 178, 0.2);
    color: #1f6fb2;
}
.stat-card--sold {
    background: rgba(122, 92, 213, 0.1);
    border-color: rgba(122, 92, 213, 0.2);
    color: #7a5cd5;
}
.panel-card__header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.panel-card__header > div h2,
.panel-card h2 {
    letter-spacing: -0.02em;
}
.table-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.68);
    background: rgba(255,255,255,0.54);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    padding: 0.15rem;
}
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: 0.95rem 0.65rem; border-bottom: 1px solid rgba(142, 95, 112, 0.12); text-align: left; }
th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 800;
    background: rgba(255,255,255,0.46);
}
tbody tr:hover {
    background: rgba(255,255,255,0.42);
}
td small {
    color: var(--muted);
    line-height: 1.4;
}
.table-secondary {
    color: var(--muted);
}
.table-empty {
    padding: 1.4rem 1rem !important;
    text-align: center;
    color: var(--muted);
}
.table-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.table-actions--compact > *,
.filter-actions--compact > * {
    flex: 0 0 auto;
}
.table-actions form { margin: 0; }
.panel-card__header--stack { flex-direction: column; align-items: stretch; }
.filter-form { display: grid; gap: 1rem; }
.filter-form--compact { gap: 0.75rem; }
.filter-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}
.filter-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.filter-actions--compact {
    align-items: center;
}
.admin-inline-form {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.35rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.68);
    border: 1px solid rgba(142, 95, 112, 0.1);
}
.admin-inline-form input,
.admin-inline-form select {
    min-width: 180px;
    padding: 0.72rem 0.85rem;
}
.panel-card__toolbar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}
.info-card {
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.68);
    border: 1px solid rgba(142, 95, 112, 0.12);
}
.info-card strong {
    font-size: 0.84rem;
    color: var(--muted);
}
.info-card span {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}
.birthday-highlight-card {
    background: linear-gradient(180deg, rgba(255,250,247,0.95) 0%, rgba(248,239,234,0.92) 100%);
    border: 1px solid rgba(255,255,255,0.76);
    border-radius: 24px;
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
    box-shadow: 0 16px 32px rgba(111, 70, 85, 0.08);
}
.birthday-highlight-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.birthday-highlight-card__actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.birthday-highlight-card__actions > * {
    flex: 0 0 auto;
}
.birthday-highlight-card__message {
    background: rgba(255,255,255,0.82);
    border-radius: 18px;
    padding: 0.85rem;
    border: 1px solid rgba(255,255,255,0.72);
    white-space: pre-line;
}
.dashboard-panel-grid,
.dashboard-panel-stack {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.dashboard-panel-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.coordinator-sales-tree {
    display: grid;
    gap: 0.85rem;
}
.filter-actions > *,
.action-row > * {
    flex: 1 1 220px;
}
.coordinator-dashboard-layout {
    display: grid;
    gap: 1.5rem;
}
.coordinator-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}
.coordinator-dashboard-summary .stat-card strong {
    font-size: 1.6rem;
}
.coordinator-filter-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}
.coordinator-sales-chart {
    display: grid;
    gap: 0.85rem;
}
.coordinator-sales-chart__row {
    display: grid;
    grid-template-columns: minmax(160px, 1.5fr) minmax(220px, 3fr) auto;
    gap: 0.9rem;
    align-items: center;
}
.coordinator-sales-chart__label {
    display: grid;
    gap: 0.12rem;
}
.coordinator-sales-chart__label strong {
    line-height: 1.15;
}
.coordinator-sales-chart__label small {
    color: var(--muted);
}
.coordinator-sales-chart__track {
    height: 14px;
    border-radius: 999px;
    background: rgba(42, 46, 81, 0.08);
    overflow: hidden;
}
.coordinator-sales-chart__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2a2e51 0%, #7a5cd5 100%);
}
.coordinator-sales-chart__value {
    min-width: 132px;
    text-align: right;
    font-weight: 700;
}
.coordinator-sales-header {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
}
.coordinator-sales-money-option {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(142, 95, 112, 0.12);
}
.coordinator-sales-money-option input {
    width: 1rem;
    height: 1rem;
}
.coordinator-sales-tree {
    display: grid;
    gap: 0.75rem;
}
.coordinator-sales-node {
    display: grid;
    gap: 0.7rem;
}
.coordinator-sales-node__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    margin-left: calc(var(--sales-depth, 0) * 1rem);
    border: 1px solid var(--border);
    border-left-width: 4px;
    border-radius: 18px;
    background: #fff;
}
.coordinator-sales-node__row--nucleus { border-left-color: #2a2e51; }
.coordinator-sales-node__row--sector {
    border-left-color: #7a5cd5;
    background: rgba(122, 92, 213, 0.06);
}
.coordinator-sales-node__row--congregation {
    border-left-color: #f0a202;
    background: rgba(240, 162, 2, 0.09);
}
.coordinator-sales-node__row--customer {
    border-left-color: #2b8a5b;
    background: rgba(43, 138, 91, 0.08);
}
.coordinator-sales-node__main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}
.coordinator-sales-node__text {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}
.coordinator-sales-node__eyebrow,
.coordinator-sales-node__meta {
    color: var(--muted);
    font-size: 0.8rem;
}
.coordinator-sales-node__text strong {
    line-height: 1.2;
    word-break: break-word;
}
.coordinator-sales-node__row--sector .coordinator-sales-node__text strong,
.coordinator-sales-node__row--sector .coordinator-sales-toggle {
    color: #5d43b3;
}
.coordinator-sales-node__row--congregation .coordinator-sales-node__text strong,
.coordinator-sales-node__row--congregation .coordinator-sales-toggle {
    color: #a56400;
}
.coordinator-sales-node__row--customer .coordinator-sales-node__text strong,
.coordinator-sales-node__row--customer .coordinator-sales-toggle {
    color: #2b8a5b;
}
.coordinator-sales-node__stats {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.coordinator-sales-node__stats span {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    background: rgba(42, 46, 81, 0.06);
    font-size: 0.82rem;
    font-weight: 600;
}
.coordinator-sales-money[hidden] {
    display: none !important;
}
.coordinator-sales-node__children {
    display: grid;
    gap: 0.75rem;
}
.coordinator-sales-node__children[hidden] {
    display: none !important;
}
.coordinator-sales-toggle {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #f7f2f0;
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.coordinator-sales-toggle--static {
    border-style: dashed;
    background: transparent;
    opacity: 0.55;
}
.table-meta {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}
.form-help {
    margin: -0.2rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}
.form-help--card {
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(142, 95, 112, 0.07);
    border: 1px solid rgba(142, 95, 112, 0.1);
}
.permission-fieldset {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-alt);
}
.permission-fieldset legend {
    padding: 0 0.35rem;
    font-weight: 700;
}
.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}
.permission-card {
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}
.permission-card input {
    width: auto;
    margin-top: 0.2rem;
}
.permission-card strong {
    display: block;
    margin-bottom: 0.2rem;
}
.permission-card small,
.user-table__identity small,
.user-security-note,
.screen-tag-list small {
    color: var(--muted);
}
.user-table__identity {
    display: grid;
    gap: 0.15rem;
    min-width: 200px;
}
.screen-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.screen-tag,
.user-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}
.screen-tag {
    background: rgba(42, 46, 81, 0.08);
    color: #2a2e51;
}
.user-pill--role {
    background: rgba(122, 92, 213, 0.12);
    color: #7a5cd5;
}
.user-pill--active {
    background: rgba(43, 138, 91, 0.12);
    color: #2b8a5b;
}
.user-pill--inactive {
    background: rgba(194, 72, 72, 0.12);
    color: #c24848;
}
.user-pill--neutral {
    background: rgba(42, 46, 81, 0.08);
    color: #2a2e51;
}
.user-pill--warning {
    background: rgba(240, 162, 2, 0.16);
    color: #9f6700;
}
.user-pill--info {
    background: rgba(31, 111, 178, 0.12);
    color: #1f6fb2;
}
.user-pill--accent {
    background: rgba(122, 92, 213, 0.12);
    color: #7a5cd5;
}
.user-form-note {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(42, 46, 81, 0.06);
    color: var(--text);
}
.user-table__identity {
    display: grid;
    gap: 0.25rem;
    min-width: 180px;
}
.user-table__identity strong {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.user-form-note strong {
    display: block;
    margin-bottom: 0.25rem;
}
.product-image-library {
    display: grid;
    gap: 0.75rem;
}
.product-image-library__header,
.product-image-library__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.product-image-library__panel {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px dashed var(--border);
    border-radius: 18px;
    background: var(--surface-alt);
}
.product-image-library__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}
.product-image-option {
    display: grid;
    gap: 0.5rem;
    padding: 0.65rem;
    background: #fff;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    border: 1px solid var(--border);
}
.product-image-option img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.product-image-option span {
    font-size: 0.82rem;
    color: var(--muted);
    word-break: break-word;
}
.product-image-option.is-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(158, 111, 113, 0.15);
}
.image-preview-box {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px dashed var(--border);
    border-radius: 18px;
    background: var(--surface-alt);
}
.image-preview {
    width: min(180px, 100%);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--border);
}
.image-preview-path {
    margin: 0;
    word-break: break-all;
}
.table-product {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.75rem;
    align-items: center;
    min-width: 240px;
}
.table-product__content {
    display: grid;
    gap: 0.22rem;
    min-width: 0;
}
.table-product__image {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 0.75rem;
    text-align: center;
    padding: 0.35rem;
}
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.54);
    border: 1px solid rgba(255,255,255,0.7);
}
.pagination__info {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}
.pagination__links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.pagination__links > * {
    min-width: 104px;
}
.delivery-order-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: #2a2e51;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.delivery-order-link:hover {
    color: #1f6fb2;
}
.delivery-row--priority td {
    background: rgba(255, 196, 61, 0.12);
}
.delivery-show-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.82);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(250,242,238,0.92) 100%);
    box-shadow: 0 18px 32px rgba(37, 29, 44, 0.1);
    backdrop-filter: blur(18px);
}
.delivery-show-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.delivery-show-card--items { grid-column: 1 / -1; }
.delivery-item-total {
    border-top: 1px dashed rgba(37, 29, 44, 0.1);
    padding-top: 0.4rem !important;
    margin-top: 0.15rem;
}
.delivery-show-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #2a2e51 0%, #3a3f70 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(37, 29, 44, 0.22);
    transition: transform 0.12s ease, box-shadow 0.16s ease;
    flex-shrink: 0;
}
.delivery-show-back:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(37, 29, 44, 0.28);
}
.delivery-show-header__title {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}
.delivery-show-header__title strong {
    font-size: 1rem;
    letter-spacing: -0.01em;
    color: var(--text);
}
.delivery-show-header__title small {
    color: var(--muted);
    font-size: 0.78rem;
}
.delivery-items-table__empty { text-align: center; color: var(--muted); }
.delivery-row.is-row-link,
.admin-row.is-row-link { cursor: pointer; transition: background-color 0.12s ease, transform 0.12s ease, box-shadow 0.16s ease; }
.delivery-row.is-row-link:hover td,
.admin-row.is-row-link:hover td { background: rgba(168, 124, 126, 0.06); }
.delivery-row.is-row-link:focus-visible,
.admin-row.is-row-link:focus-visible {
    outline: 2px solid #2a2e51;
    outline-offset: -2px;
}
.delivery-row--priority td:first-child {
    box-shadow: inset 4px 0 0 #f0a202;
}
.delivery-priority-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(240, 162, 2, 0.16);
    color: #a56400;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.delivery-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #524a48;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}
.delivery-status__dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #8a817e;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}
.delivery-status--paid {
    color: #2b8a5b;
}
.delivery-status--paid .delivery-status__dot {
    background: #2b8a5b;
}
.delivery-status--awaiting-payment {
    color: #c24848;
}
.delivery-status--awaiting-payment .delivery-status__dot {
    background: #c24848;
}
.delivery-status--delivered {
    color: #1f6fb2;
}
.delivery-status--delivered .delivery-status__dot {
    background: #1f6fb2;
}
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.auth-card { width: min(480px, 100%); }
.login-tip { margin-top: 1rem; padding: 1rem; background: var(--surface-alt); border-radius: 18px; display: grid; gap: 0.25rem; }

@media (max-width: 900px) {
    .container { width: min(1180px, calc(100% - 1rem)); }
    button, .button-link {
        padding: 0.74rem 0.95rem;
        min-height: 42px;
        border-radius: 18px;
        font-size: 0.94rem;
    }
    .button-small {
        padding: 0.46rem 0.68rem;
        min-height: 34px;
        font-size: 0.86rem;
        border-radius: 14px;
    }
    .button-compact {
        padding: 0.46rem 0.68rem;
        min-height: 34px;
        font-size: 0.82rem;
        border-radius: 13px;
    }
    .checkout-layout, .cart-layout, .admin-grid, .product-showcase { grid-template-columns: 1fr; }
    .product-showcase__image--hero,
    .cart-summary-card,
    .checkout-summary-card {
        position: static;
        top: auto;
    }
    .checkout-card__grid {
        grid-template-columns: 1fr;
    }
    .admin-form-grid,
    .admin-summary-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-toolbar,
    .dashboard-toolbar__field {
        width: 100%;
    }
    .admin-layout { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .delivery-summary-grid { grid-template-columns: 1fr; }
    .delivery-summary-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .delivery-summary-stats--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .coordinator-dashboard-summary { grid-template-columns: 1fr; }
    .coordinator-sales-header { align-items: stretch; }
    .coordinator-sales-chart__row { grid-template-columns: 1fr; }
    .coordinator-sales-chart__value { min-width: 0; text-align: left; }
    .coordinator-sales-node__row { align-items: flex-start; }
    .coordinator-sales-node__stats { justify-content: flex-start; }
    .cart-item { grid-template-columns: 90px 1fr; }
    .cart-item__actions {
        grid-column: 2;
        justify-items: start;
    }
    .quantity-control { grid-template-columns: 38px minmax(54px, 68px) 38px; }
    .pagination { align-items: flex-start; }
    .site-header {
        padding-top: 0.6rem;
    }
    .page-shell { padding: 1rem 0 2.5rem; }
    .header-inner {
        padding: 0.7rem 0.8rem;
        border-radius: 26px;
        gap: 0.75rem;
    }
    .mobile-nav-toggle,
    .nav-close-button,
    .admin-mobile-bar,
    .sidebar__mobile-header,
    .main-nav__mobile-header { display: flex; }
    .mobile-nav-toggle {
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        min-width: 46px;
        min-height: 46px;
        padding: 0.65rem 0.85rem;
        border-radius: 18px;
        background: rgba(255,255,255,0.16);
        border: 1px solid rgba(255,255,255,0.18);
    }
    .mobile-nav-toggle--admin {
        background: linear-gradient(180deg, #2a2e51 0%, #3a3f70 100%);
        color: #fff;
        border-color: transparent;
    }
    .mobile-nav-toggle__label { display: none; }
    .main-nav {
        position: fixed;
        top: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
        width: min(82vw, 320px);
        z-index: 60;
        display: grid;
        align-content: start;
        gap: 0.5rem;
        padding: 1rem;
        background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(250,242,238,0.94) 100%);
        color: var(--text);
        border: 1px solid rgba(255,255,255,0.82);
        border-radius: 28px;
        box-shadow: 20px 0 44px rgba(37, 29, 44, 0.16);
        backdrop-filter: blur(22px);
        transform: translateX(-105%);
        transition: transform 0.22s ease;
    }
    .main-nav.is-open { transform: translateX(0); }
    .main-nav a {
        justify-content: flex-start;
        color: var(--text);
        background: transparent;
        border-radius: 18px;
        padding: 0.9rem 1rem;
    }
    .main-nav a.is-active,
    .main-nav a:hover { background: var(--surface-alt); }
    .main-nav__mobile-header {
        align-items: center;
        justify-content: space-between;
        padding-bottom: 0.35rem;
        border-bottom: 1px solid var(--border);
        margin-bottom: 0.35rem;
    }
    .main-nav__cart-link { display: inline-flex; }
    .sidebar {
        position: fixed;
        top: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
        width: min(82vw, 320px);
        height: auto;
        z-index: 60;
        padding: 1rem;
        border-radius: 30px;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        box-shadow: 20px 0 44px rgba(16, 18, 39, 0.28);
    }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar__mobile-header {
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.35rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }
    .admin-content {
        padding: 0.9rem 0.75rem 1.2rem;
    }
    .admin-mobile-bar {
        align-items: center;
        gap: 0.85rem;
        margin-bottom: 1rem;
        padding: 0.75rem 0.85rem;
        background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(250,242,238,0.92) 100%);
        border: 1px solid rgba(255,255,255,0.82);
        border-radius: 24px;
        box-shadow: 0 18px 32px rgba(37, 29, 44, 0.1);
        backdrop-filter: blur(18px);
        position: sticky;
        top: 0.6rem;
        z-index: 20;
    }
    .admin-mobile-bar--trigger {
        width: 100%;
        justify-content: flex-start;
        color: var(--text);
        text-align: left;
    }
    .admin-mobile-bar__title {
        display: grid;
        gap: 0.12rem;
    min-width: 0;
    }
    .admin-mobile-bar__title small { color: var(--muted); }
    .admin-header,
    .panel-card__header { align-items: stretch; }
    .summary-card, .panel-card, .success-card, .auth-card {
        padding: 1rem;
        border-radius: 26px;
        box-shadow: 0 16px 28px rgba(31, 35, 64, 0.08);
    }
    .stat-card {
        border-radius: 22px;
        padding: 1rem;
    }
    .panel-card.panel-card--flush-mobile {
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        overflow: visible;
    }
    .panel-card--flush-mobile > .panel-card__header,
    .panel-card--flush-mobile > .pagination {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }
    .table-responsive--cards-mobile {
        overflow: visible !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    .table-responsive--cards-mobile > .delivery-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        background: transparent;
        table-layout: fixed;
    }
    .delivery-table thead { display: none !important; }
    .delivery-table tbody {
        display: grid;
        gap: 0.55rem;
        width: 100%;
    }
    .delivery-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, auto);
        gap: 0.45rem 0.6rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.75rem 0.85rem;
        border: 1px solid rgba(255,255,255,0.82);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(250,242,238,0.94) 100%);
        box-shadow: 0 12px 24px rgba(37, 29, 44, 0.07);
        backdrop-filter: blur(14px);
    }
    .delivery-table .delivery-row--priority {
        border-color: rgba(240, 162, 2, 0.45);
        box-shadow: 0 14px 28px rgba(240, 162, 2, 0.16), inset 4px 0 0 #f0a202;
    }
    .delivery-table .delivery-row--priority td {
        background: transparent;
        box-shadow: none;
    }
    .delivery-table .delivery-row.is-row-link:active {
        transform: scale(0.985);
        box-shadow: 0 8px 18px rgba(37, 29, 44, 0.1);
    }
    .delivery-table .delivery-row.is-row-link:hover td { background: transparent; }
    .delivery-table td {
        display: flex !important;
        flex-direction: column;
        gap: 0.1rem;
        padding: 0 !important;
        border: 0 !important;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        font-size: 0.78rem !important;
        line-height: 1.25;
    }
    .delivery-table td::before {
        content: attr(data-label);
        font-size: 0.58rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--muted);
        font-weight: 700;
    }
    .delivery-table td strong,
    .delivery-table td .table-value,
    .delivery-table td .table-cell-stack strong {
        font-size: 0.82rem !important;
        font-weight: 700;
        line-height: 1.2;
    }
    .delivery-table td .table-secondary {
        font-size: 0.76rem !important;
    }
    .delivery-table td[data-area="number"] strong,
    .delivery-table td[data-area="number"] .table-cell-stack strong {
        font-size: 0.92rem !important;
    }
    .delivery-table td[data-area="customer"] strong,
    .delivery-table td[data-area="customer"] .table-cell-stack strong {
        font-size: 0.86rem !important;
    }
    .delivery-table td[data-area="total"] .table-value {
        font-size: 0.9rem !important;
        color: var(--text);
    }
    .delivery-table .delivery-status {
        font-size: 0.72rem !important;
        gap: 0.3rem;
        flex-direction: row !important;
        align-items: center;
    }
    .delivery-table .delivery-status__dot {
        width: 0.5rem;
        height: 0.5rem;
    }
    .delivery-table .delivery-priority-badge {
        font-size: 0.58rem;
        padding: 0.12rem 0.4rem;
        letter-spacing: 0.04em;
    }
    .delivery-table td[data-area="number"] { grid-column: 1 / 2; grid-row: 1; }
    .delivery-table td[data-area="status"] {
        grid-column: 2 / 3;
        grid-row: 1;
        align-items: flex-end;
        text-align: right;
    }
    .delivery-table td[data-area="customer"] { grid-column: 1 / -1; }
    .delivery-table td[data-area="date"] { grid-column: 1 / -1; }
    .delivery-table td[data-area="sector"] { grid-column: 1 / 2; }
    .delivery-table td[data-area="congregation"] { grid-column: 2 / 3; align-items: flex-end; text-align: right; }
    .delivery-table td[data-area="email"] { grid-column: 1 / -1; }
    .delivery-table td[data-area="phone"] { grid-column: 1 / 2; }
    .delivery-table td[data-area="total"] {
        grid-column: 2 / 3;
        align-items: flex-end;
        text-align: right;
    }
    .delivery-table td[data-area="number"] .delivery-priority-badge {
        margin-left: 0;
        margin-top: 0.18rem;
        align-self: flex-start;
    }
    .delivery-table td[data-area="number"] .table-cell-stack {
        gap: 0.1rem;
    }
    .delivery-table .delivery-table__empty {
        grid-column: 1 / -1;
        display: block !important;
        text-align: center;
        padding: 1.2rem;
        color: var(--muted);
        font-size: 0.85rem !important;
    }
    .delivery-table .delivery-table__empty::before { content: none !important; }

    .table-responsive--cards-mobile > .admin-cards-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        background: transparent;
        table-layout: fixed;
    }
    .admin-cards-table thead { display: none !important; }
    .admin-cards-table tbody {
        display: grid;
        gap: 0.55rem;
        width: 100%;
    }
    .admin-cards-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0.45rem 0.6rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.75rem 0.85rem;
        border: 1px solid rgba(255,255,255,0.82);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(250,242,238,0.94) 100%);
        box-shadow: 0 12px 24px rgba(37, 29, 44, 0.07);
        backdrop-filter: blur(14px);
    }
    .admin-cards-table td {
        display: flex !important;
        flex-direction: column;
        gap: 0.1rem;
        padding: 0 !important;
        border: 0 !important;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        font-size: 0.78rem !important;
        line-height: 1.25;
    }
    .admin-cards-table td::before {
        content: attr(data-label);
        font-size: 0.58rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--muted);
        font-weight: 700;
    }
    .admin-cards-table td strong {
        font-size: 0.82rem !important;
        font-weight: 700;
        line-height: 1.2;
    }
    .admin-cards-table td .table-secondary {
        font-size: 0.76rem !important;
    }
    .admin-cards-table td[data-area="title"] {
        grid-column: 1 / -1;
        font-size: 0.86rem !important;
        font-weight: 700;
    }
    .admin-cards-table td[data-area="title"] strong { font-size: 0.92rem !important; }
    .admin-cards-table td[data-area="full"] { grid-column: 1 / -1; }
    .admin-cards-table td[data-area="end"] {
        grid-column: 2 / 3;
        align-items: flex-end;
        text-align: right;
    }
    .admin-cards-table td[data-area="actions"] {
        grid-column: 1 / -1;
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.4rem;
        padding-top: 0.55rem !important;
        margin-top: 0.1rem;
        border-top: 1px dashed rgba(37, 29, 44, 0.1) !important;
    }
    .admin-cards-table td[data-area="actions"]::before { content: none !important; }
    .admin-cards-table td[data-area="actions"] .table-actions,
    .admin-cards-table td[data-area="actions"] > .table-actions--compact {
        width: 100%;
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    .admin-cards-table td[data-area="actions"] .table-actions > *,
    .admin-cards-table td[data-area="actions"] > form {
        flex: 1 1 calc(50% - 0.2rem);
        min-width: 0;
    }
    .admin-cards-table td[data-area="actions"] form { display: flex; }
    .admin-cards-table td[data-area="actions"] form > button,
    .admin-cards-table td[data-area="actions"] form > a,
    .admin-cards-table td[data-area="actions"] > a,
    .admin-cards-table td[data-area="actions"] > button {
        width: 100%;
        text-align: center;
        justify-content: center;
        font-size: 0.76rem;
        padding: 0.5rem 0.6rem;
    }
    .admin-cards-table .admin-cards-table__empty {
        grid-column: 1 / -1;
        display: block !important;
        text-align: center;
        padding: 1.2rem;
        color: var(--muted);
        font-size: 0.85rem !important;
    }
    .admin-cards-table .admin-cards-table__empty::before { content: none !important; }
    .admin-cards-table .admin-row.is-row-link {
        cursor: pointer;
        transition: transform 0.12s ease, box-shadow 0.16s ease;
    }
    .admin-cards-table .admin-row.is-row-link:active {
        transform: scale(0.985);
        box-shadow: 0 8px 18px rgba(37, 29, 44, 0.1);
    }

    .delivery-show-header {
        padding: 0.68rem 0.78rem;
        border-radius: 22px;
        gap: 0.7rem;
        margin-bottom: 0.9rem;
    }
    .delivery-show-back {
        padding: 0.55rem 0.7rem;
        font-size: 0.8rem;
        border-radius: 16px;
    }
    .delivery-show-back span { display: none; }
    .delivery-show-header__title strong { font-size: 0.95rem; }
    .delivery-show-header__title small { font-size: 0.72rem; }
    .delivery-show-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }
    .delivery-show-card {
        padding: 0.85rem 0.95rem !important;
        border-radius: 22px !important;
        overflow: hidden;
    }
    .delivery-show-card.panel-card--flush-mobile {
        padding: 0 !important;
        border-radius: 0 !important;
        overflow: visible;
    }
    .delivery-show-card h2 {
        font-size: 0.95rem !important;
        margin-bottom: 0.4rem;
    }
    .delivery-show-card .summary-item {
        grid-template-columns: 1fr !important;
        gap: 0.1rem !important;
    }
    .delivery-show-card .summary-row {
        padding: 0.45rem 0 !important;
        font-size: 0.8rem;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
        align-items: start !important;
        gap: 0.6rem !important;
    }
    .delivery-show-card .summary-row > span {
        font-size: 0.7rem;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 700;
    }
    .delivery-show-card .summary-row > strong {
        font-size: 0.84rem;
        font-weight: 700;
        text-align: right;
        overflow-wrap: anywhere;
        word-break: break-word;
        min-width: 0;
    }
    .delivery-show-card .stack-form > label {
        font-size: 0.8rem;
    }
    .delivery-show-card textarea {
        font-size: 0.88rem;
        padding: 0.65rem 0.75rem;
        min-height: 120px;
    }
    .delivery-show-card .action-row.delivery-show-actions {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.7rem;
    }
    .delivery-show-card .action-row.delivery-show-actions > button {
        flex: 1 1 calc(50% - 0.25rem);
        width: auto;
        min-width: 0;
        font-size: 0.85rem;
        padding: 0.7rem 0.6rem;
        min-height: 44px;
    }
    .delivery-show-card .action-row.delivery-show-actions > .form-help {
        flex: 1 1 100%;
        font-size: 0.78rem;
        margin-top: 0.1rem;
    }
    .delivery-show-card--items > .panel-card__header {
        padding: 0 0.25rem;
        margin-bottom: 0.5rem;
    }
    .delivery-show-card--items > .panel-card__header h2 {
        font-size: 0.95rem !important;
        margin: 0 0 0.15rem;
    }
    .delivery-show-card--items > .panel-card__header .table-meta {
        font-size: 0.74rem;
    }
    .admin-cards-table td.delivery-item-total {
        align-items: flex-end !important;
        text-align: right;
    }
    .admin-cards-table td.delivery-item-total .table-value {
        font-size: 0.92rem !important;
        color: var(--text);
    }
    .table-responsive--cards-mobile > .delivery-items-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        background: transparent;
        table-layout: fixed;
    }
    .delivery-items-table thead { display: none !important; }
    .delivery-items-table tbody {
        display: grid;
        gap: 0.5rem;
        width: 100%;
    }
    .delivery-items-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, auto);
        gap: 0.4rem 0.6rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.7rem 0.8rem;
        border: 1px solid rgba(255,255,255,0.82);
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(250,242,238,0.94) 100%);
        box-shadow: 0 8px 18px rgba(37, 29, 44, 0.06);
    }
    .delivery-items-table td {
        display: flex !important;
        flex-direction: column;
        gap: 0.08rem;
        padding: 0 !important;
        border: 0 !important;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        font-size: 0.8rem !important;
        line-height: 1.25;
    }
    .delivery-items-table td::before {
        content: attr(data-label);
        font-size: 0.58rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--muted);
        font-weight: 700;
    }
    .delivery-items-table td[data-area="product"] {
        grid-column: 1 / -1;
        font-weight: 700;
        font-size: 0.86rem !important;
    }
    .delivery-items-table td[data-area="qty"] { grid-column: 1 / 2; }
    .delivery-items-table td[data-area="unit"] { grid-column: 2 / 3; align-items: flex-end; text-align: right; }
    .delivery-items-table td[data-area="line-total"] {
        grid-column: 1 / -1;
        align-items: flex-end;
        text-align: right;
        font-weight: 700;
        font-size: 0.9rem !important;
        color: var(--text);
    }
    .delivery-items-table .delivery-items-table__empty {
        grid-column: 1 / -1;
        display: block !important;
        text-align: center;
        padding: 1rem;
        color: var(--muted);
        font-size: 0.85rem !important;
    }
    .delivery-items-table .delivery-items-table__empty::before { content: none !important; }
}

@media (max-width: 600px) {
    .site-header {
        padding-top: 0.5rem;
    }
    .header-inner {
        flex-wrap: nowrap;
        padding: 0.62rem 0.72rem;
        border-radius: 24px;
    }
    .header-leading {
        width: auto;
        flex: 1;
        justify-content: flex-start;
        gap: 0.7rem;
        min-width: 0;
    }
    .brand {
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .brand span { display: none; }
    .cart-badge {
        width: 48px;
        min-width: 48px;
        min-height: 48px;
        justify-content: center;
        padding: 0;
        font-size: 0;
        border-radius: 18px;
        background: rgba(255,255,255,0.16);
    }
    .cart-badge::before {
        content: '🛒';
        font-size: 1.05rem;
        line-height: 1;
    }
    .cart-badge span {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 22px;
        min-height: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 0.35rem;
        box-shadow: 0 8px 18px rgba(31, 35, 64, 0.16);
    }
    .stats-grid { grid-template-columns: 1fr; }
    .delivery-summary-grid { grid-template-columns: 1fr; }
    .delivery-summary-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .delivery-summary-stats--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .delivery-summary-card {
        padding: 0.78rem 0.8rem;
    }
    .delivery-summary-card__header p {
        display: none;
    }
    .delivery-summary-card__stat {
        min-height: 82px;
        padding: 0.55rem 0.36rem;
    }
    .delivery-summary-card__stat span {
        font-size: 0.67rem;
    }
    .delivery-summary-card__stat strong {
        font-size: 1rem;
    }
    .delivery-summary-card__stat small {
        font-size: 0.58rem;
        max-width: 10ch;
    }
    .admin-filter-popover__toggle-copy small {
        max-width: none;
        white-space: normal;
    }
    .admin-filter-popover__overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(20, 18, 38, 0.42);
        backdrop-filter: blur(2px);
        z-index: 49;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
    }
    .admin-filter-popover.is-open .admin-filter-popover__overlay {
        opacity: 1;
        pointer-events: auto;
    }
    .admin-filter-popover__panel {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        width: auto;
        max-height: calc(100vh - 8rem);
        z-index: 50;
        border-radius: 22px;
    }
    .coordinator-sales-node__row { margin-left: 0; }
    .table-product { grid-template-columns: 1fr; }
    .filter-form__grid { grid-template-columns: 1fr; }
    .admin-inline-form {
        align-items: stretch;
    }
    .admin-inline-form input,
    .admin-inline-form select {
        min-width: 0;
        width: 100%;
    }
    .page-heading--app {
        padding: 1rem;
    }
    .page-heading__meta {
        width: 100%;
    }
    .page-heading__chip {
        flex: 1 1 140px;
    }
    .action-row,
    .filter-actions:not(.filter-actions--compact) { flex-direction: column; }
    .action-row > *,
    .filter-actions:not(.filter-actions--compact) > * { width: 100%; }
    .payment-waiting__fallback {
        font-size: 0.89rem;
    }
    .birthday-highlight-card__actions {
        flex-direction: row;
    }
    .birthday-highlight-card__actions > * {
        flex: 1 1 calc(50% - 0.4rem);
    }
    .filter-actions--compact > * {
        width: auto;
    }
    .table-actions--compact > * {
        flex: 1 1 calc(50% - 0.4rem);
    }
    .admin-mobile-bar {
        padding: 0.68rem 0.75rem;
        border-radius: 22px;
        top: 0.45rem;
    }
    .admin-mobile-bar__title strong {
        font-size: 0.95rem;
    }
    .admin-mobile-bar__title small {
        font-size: 0.76rem;
    }
    .sidebar,
    .main-nav {
        top: 0.55rem;
        left: 0.55rem;
        bottom: 0.55rem;
        width: min(86vw, 320px);
        border-radius: 28px;
    }
}
