/* Schickmair CI — from the Claude Design handoff "Butcher Pre-order System".
   Warm farm-butchery palette: Bordeaux, cream, charcoal ink, ochre + sage accents.
   Headings: Bitter (serif) · Text: Hanken Grotesk. */

:root {
    --sk-bordeaux: #7C2B2A;
    --sk-bordeaux-dark: #5F1F1E;
    --sk-cream: #FBF6EE;
    --sk-card: #FFFFFF;
    --sk-ink: #2A211C;
    --sk-muted: #7C6C60;
    --sk-faint: #A89A8C;
    --sk-line: #ECE2D4;
    --sk-ochre: #C9893B;
    --sk-green: #5E7B4E;
    --sk-field: #FCFAF5;
    --sk-avatar-bg: #EFE2D2;
    --sk-note-bg: #FAF4E9;
}

body {
    font-family: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
    color: var(--sk-ink);
    background: var(--sk-cream);
}

h1, h2, h3, .sk-serif {
    font-family: "Bitter", Georgia, serif;
    color: var(--sk-ink);
}

h1 { font-size: 1.45rem; font-weight: 700; }

article.content { background: var(--sk-cream); }

/* ---- Section heading with icon ("Kunde", "Produkte", "Abholung") ---- */
.sk-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-family: "Bitter", serif;
    font-size: 16px;
    font-weight: 700;
}

.sk-section-title .bi { color: var(--sk-bordeaux); margin-right: 0; }

.sk-field-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--sk-muted);
    letter-spacing: .3px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

/* ---- Cards ---- */
.sk-card {
    background: var(--sk-card);
    border: 1px solid var(--sk-line);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(60, 40, 20, 0.04);
}

/* ---- Chips (products, recents, times) ---- */
.sk-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sk-cream);
    border: 1px solid var(--sk-line);
    color: var(--sk-ink);
    border-radius: 8px;
    padding: 11px 15px;
    min-height: 44px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.sk-chip .sk-plus { color: var(--sk-green); font-weight: 800; }

.sk-chip:hover { border-color: var(--sk-faint); }

.sk-chip-selected,
.sk-chip-selected:hover {
    background: var(--sk-bordeaux);
    border-color: var(--sk-bordeaux);
    color: #fff;
}

.sk-chip-selected .sk-plus { color: #fff; }

.sk-time-chip {
    background: #fff;
    border: 1px solid var(--sk-line);
    color: var(--sk-muted);
    border-radius: 8px;
    padding: 11px 16px;
    min-height: 44px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
    font-family: inherit;
}

.sk-time-chip.sk-chip-selected { color: #fff; }

/* ---- Pickup date picker (made the focal point of the Abholung section) ---- */
.sk-pickup-picker {
    background: #fff;
    border: 1px solid var(--sk-line);
    border-left: 4px solid var(--sk-bordeaux);
    border-radius: 12px;
    padding: 12px 14px 10px;
    max-width: 340px;
    box-shadow: 0 2px 8px rgba(124, 43, 42, 0.08);
}

.sk-pickup-picker .sk-field-label { color: var(--sk-bordeaux); }

/* Enlarge the date editor so it reads as the primary control. */
.sk-pickup-picker .sk-date-edit { width: 100%; font-size: 16px; }

.sk-pickup-picker .sk-date-edit .dxbl-edit-cm { font-variant-numeric: tabular-nums; }

.sk-pickup-picked {
    margin-top: 8px;
    font-family: "Bitter", serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--sk-ink);
}

.sk-quick-hint {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--sk-faint);
    margin-bottom: 8px;
}

/* ---- Customer list (tablet-friendly, selectable) ---- */
.sk-customer-row, .sk-history-row {
    cursor: pointer;
    transition: border-color .12s, box-shadow .12s;
}

.sk-customer-row:hover, .sk-history-row:hover,
.sk-customer-row:active, .sk-history-row:active {
    border-color: var(--sk-bordeaux);
    box-shadow: 0 3px 12px rgba(124, 43, 42, 0.12);
}

.sk-customer-name { font-family: "Bitter", serif; font-weight: 700; font-size: 16px; }
.sk-customer-count { font-family: "Bitter", serif; font-weight: 700; font-size: 18px; color: var(--sk-bordeaux); line-height: 1; }
.sk-history-num { font-family: "Bitter", serif; font-weight: 700; font-size: 15px; min-width: 5.5rem; }

/* ---- Statistics summary cards ---- */
.sk-stat-num { font-family: "Bitter", serif; font-weight: 700; font-size: 28px; color: var(--sk-bordeaux); line-height: 1.1; }

/* ---- Production day list ---- */
.sk-prod-day {
    color: var(--sk-ink);
    transition: border-color .12s, box-shadow .12s;
}

.sk-prod-day:hover {
    border-color: var(--sk-bordeaux);
    box-shadow: 0 3px 12px rgba(124, 43, 42, 0.12);
}

.sk-prod-day-date { font-family: "Bitter", serif; font-weight: 700; font-size: 15.5px; }

.sk-prod-day-num { font-family: "Bitter", serif; font-weight: 700; font-size: 20px; color: var(--sk-bordeaux); line-height: 1; }

/* ---- Day buttons ---- */
.sk-day-btn {
    flex: 1;
    min-width: 7.5rem;
    text-align: left;
    background: #fff;
    color: var(--sk-ink);
    border: 1px solid var(--sk-line);
    border-radius: 11px;
    padding: 13px 16px;
    cursor: pointer;
    font-family: inherit;
}

.sk-day-btn .sk-day-label { font-size: 14.5px; font-weight: 700; }
.sk-day-btn .sk-day-sub { font-size: 12px; color: var(--sk-faint); margin-top: 2px; }

.sk-day-btn-selected {
    background: var(--sk-ink);
    border-color: var(--sk-ink);
    color: #fff;
}

.sk-day-btn-selected .sk-day-sub { color: rgba(255, 255, 255, 0.65); }

/* ---- Selected order items ---- */
.sk-item-row {
    display: grid;
    grid-template-columns: 1fr 160px 1.2fr 44px;
    gap: 8px;
    align-items: center;
}

.sk-item-name { font-size: 14.5px; font-weight: 600; padding: 0 2px; }

.sk-remove-btn {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    border: 1px solid var(--sk-line);
    background: #fff;
    color: var(--sk-faint);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 22px;
    line-height: 1;
}

/* ---- Note chip ---- */
.sk-note {
    display: flex;
    gap: 7px;
    font-size: 13px;
    color: var(--sk-muted);
    background: var(--sk-note-bg);
    border: 1px solid var(--sk-line);
    border-radius: 9px;
    padding: 9px 11px;
}

/* ---- Summary panel ---- */
.sk-summary {
    background: #fff;
    border: 1px solid var(--sk-line);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: sticky;
    top: 1rem;
}

.sk-summary-header {
    padding: 16px 22px 12px;
    border-bottom: 1px solid var(--sk-line);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--sk-faint);
}

.sk-summary-body { flex: 1; padding: 18px 22px; }

.sk-summary-footer {
    padding: 14px 22px 18px;
    border-top: 1px solid var(--sk-line);
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.sk-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--sk-avatar-bg);
    color: var(--sk-bordeaux);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sk-pickup-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    background: var(--sk-cream);
    border-radius: 10px;
    padding: 10px 12px;
}

.sk-summary-item {
    display: flex;
    gap: 9px;
    font-size: 14px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--sk-line);
}

.sk-summary-item:last-child { border-bottom: none; }

/* ---- Buttons ---- */
.sk-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--sk-bordeaux) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 11px !important;
    padding: 13px !important;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(124, 43, 42, 0.3);
}

.sk-btn-primary:hover { background: var(--sk-bordeaux-dark) !important; }

.sk-btn-secondary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff !important;
    color: var(--sk-muted) !important;
    border: 1px solid var(--sk-line) !important;
    border-radius: 11px !important;
    padding: 11px !important;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

/* Generic bootstrap remaps so existing backoffice pages pick up the CI. */
.btn-primary, .btn-success {
    background-color: var(--sk-bordeaux);
    border-color: var(--sk-bordeaux);
}

.btn-primary:hover, .btn-success:hover,
.btn-primary:active, .btn-success:active {
    background-color: var(--sk-bordeaux-dark) !important;
    border-color: var(--sk-bordeaux-dark) !important;
}

.btn-outline-primary { color: var(--sk-bordeaux); border-color: var(--sk-bordeaux); }
.btn-outline-primary:hover { background-color: var(--sk-bordeaux); border-color: var(--sk-bordeaux); }

.card { border-color: var(--sk-line); border-radius: 14px; }
.card-header { background: #fff; font-family: "Bitter", serif; font-weight: 700; border-bottom-color: var(--sk-line); }

/* ---- DevExpress editor tuning to match the design fields ---- */
.sk-form .dxbl-text-edit,
.sk-form .dxbl-memo-edit {
    background: var(--sk-field);
    border-color: var(--sk-line);
    border-radius: 10px;
}

.sk-form .dxbl-text-edit:focus-within,
.sk-form .dxbl-memo-edit:focus-within {
    border-color: var(--sk-bordeaux);
    box-shadow: 0 0 0 1px rgba(124, 43, 42, 0.25);
}

/* ---- Two-column form layout ---- */
.sk-order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 700px) {
    .sk-order-layout { grid-template-columns: 1fr; }
    .sk-summary { position: static; }
}

.sk-page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.sk-page-header .sk-subtitle { font-size: 12.5px; color: var(--sk-faint); margin-top: 2px; }

/* ---- Settings tab bar ---- */
.sk-tabs {
    border-bottom: 1px solid var(--sk-line);
    gap: 2px;
    flex-wrap: wrap;
}

.sk-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 9px 16px;
    margin-bottom: -1px;
    color: var(--sk-muted);
    font-weight: 600;
    font-size: 14.5px;
}

.sk-tabs .nav-link:hover {
    color: var(--sk-ink);
    background: var(--sk-cream);
}

.sk-tabs .nav-link .fa-solid { color: var(--sk-faint); margin-right: 4px; }

.sk-tabs .nav-link.active {
    color: var(--sk-bordeaux);
    border-bottom-color: var(--sk-bordeaux);
    background: transparent;
}

.sk-tabs .nav-link.active .fa-solid { color: var(--sk-bordeaux); }

/* ---- Navigation loading indicator (see wwwroot/nav-loading.js) ---- */
.sk-nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.sk-nav-progress.is-active,
.sk-nav-progress.is-done { opacity: 1; }

.sk-nav-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--sk-bordeaux), var(--sk-ochre));
    box-shadow: 0 0 8px rgba(124, 43, 42, 0.5);
    transition: width .2s ease;
}

/* Indeterminate "trickle": creeps toward 90% while the page loads. */
.sk-nav-progress.is-active .sk-nav-progress-fill {
    width: 90%;
    transition: width 8s cubic-bezier(.1, .7, .1, 1);
}

.sk-nav-progress.is-done .sk-nav-progress-fill { width: 100%; }

.sk-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(251, 246, 238, 0.8);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease;
}

.sk-nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.sk-nav-spinner {
    width: 46px;
    height: 46px;
    border: 4px solid rgba(124, 43, 42, 0.2);
    border-top-color: var(--sk-bordeaux);
    border-radius: 50%;
    animation: sk-nav-spin .8s linear infinite;
}

@keyframes sk-nav-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Order form redesign: three steps (Kunde → Produkte → Abholung) + summary
   ========================================================================== */
.sk-order-layout { grid-template-columns: minmax(0, 1fr) 380px; }

.sk-wizard {
    background: #fff;
    border: 1px solid var(--sk-line);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sk-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    background: #F3ECE4;
    border-radius: 14px;
    padding: 4px;
    margin: 12px 12px 0;
}

.sk-step {
    min-height: 56px;
    border: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    text-align: left;
    background: transparent;
    color: var(--sk-ink);
    font-family: inherit;
    min-width: 0;
}

.sk-step-current { background: #fff; box-shadow: 0 1px 4px rgba(60, 30, 20, .12); }

.sk-step-num {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    background: #E8DFD5;
    color: var(--sk-muted);
}

.sk-step-num.sk-step-done { background: #E6D3CF; color: var(--sk-bordeaux); }
.sk-step-current .sk-step-num { background: var(--sk-bordeaux); color: #fff; }

.sk-step-text { display: flex; flex-direction: column; min-width: 0; }
.sk-step-label { font-weight: 700; font-size: 15px; }
.sk-step-hint { font-size: 12px; color: var(--sk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sk-wizard-body { padding: 18px 20px 22px; flex: 1; min-width: 0; }

.sk-wizard-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-top: 1px solid var(--sk-line);
}

.sk-nav-btn {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 12px;
    border: 0;
    background: #F6F0EA;
    color: var(--sk-ink);
    font-weight: 600;
    font-size: 15.5px;
    font-family: inherit;
}

.sk-nav-btn:disabled { opacity: .4; }
.sk-nav-next { background: #fff; border: 1.5px solid var(--sk-bordeaux); color: var(--sk-bordeaux); font-weight: 700; }

/* ---- Step 1: customer ---- */
.sk-customer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.sk-customer-pick {
    min-height: 68px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--sk-line);
    color: var(--sk-ink);
    font-family: inherit;
}

.sk-customer-pick:hover { border-color: var(--sk-bordeaux); }

.sk-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sk-muted);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.sk-divider::before, .sk-divider::after { content: ""; flex: 1; height: 1px; background: var(--sk-line); }

/* ---- Step 2: product picker ---- */
.sk-picker-head {
    position: sticky;
    top: 3.5rem;
    z-index: 2;
    background: #fff;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sk-line);
}

.sk-cat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sk-cat-chips::-webkit-scrollbar { display: none; }

.sk-cat-chip {
    min-height: 44px;
    flex-shrink: 0;
    padding: 0 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border: 1px solid var(--sk-line);
    background: #fff;
    color: var(--sk-ink);
    font-family: inherit;
}

.sk-cat-chip-on { background: var(--sk-ink); border-color: var(--sk-ink); color: #fff; }

.sk-cat-badge {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    font-size: 12px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    background: var(--sk-bordeaux);
    color: #fff;
}

.sk-cat-chip-on .sk-cat-badge { background: #fff; color: var(--sk-ink); }

.sk-group-title {
    margin: 18px 0 10px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--sk-muted);
}

.sk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }

.sk-tile {
    position: relative;
    min-height: 92px;
    border-radius: 14px;
    padding: 12px 12px 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--sk-line);
    box-shadow: 0 1px 2px rgba(60, 30, 20, .05);
    color: var(--sk-ink);
    font-family: inherit;
}

.sk-tile-on { background: #F7E9E6; border: 2px solid var(--sk-bordeaux); box-shadow: none; }
.sk-tile-off { opacity: .5; }
.sk-tile:disabled { cursor: not-allowed; }

.sk-tile-name { font-weight: 700; font-size: 15.5px; line-height: 1.25; padding-right: 26px; }
.sk-tile-sub { font-size: 13px; color: var(--sk-muted); line-height: 1.3; }

.sk-tile-mark {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: #F3ECE4;
    color: var(--sk-bordeaux);
}

.sk-tile-on .sk-tile-mark { background: var(--sk-bordeaux); color: #fff; }

/* ---- Step 3: pickup ---- */
.sk-day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sk-day-grid .sk-day-btn { min-height: 72px; min-width: 0; border-radius: 14px; }
.sk-day-grid .sk-day-label { font-size: 16.5px; }
.sk-day-grid .sk-day-sub { font-size: 14px; }

.sk-time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.sk-time-grid .sk-time-chip { min-height: 50px; border-radius: 12px; font-size: 16px; color: var(--sk-ink); }
.sk-time-grid .sk-time-on { background: var(--sk-bordeaux); border-color: var(--sk-bordeaux); color: #fff; }

.sk-dashed-btn {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px dashed #D3C3B4;
    background: none;
    color: var(--sk-bordeaux);
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ---- Summary ---- */
.sk-sum-customer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 12px;
    border: 0;
    background: none;
    width: 100%;
    font-family: inherit;
}

.sk-sum-customer .sk-avatar { width: 46px; height: 46px; font-size: 16px; }
.sk-sum-change { font-size: 13px; font-weight: 600; color: var(--sk-bordeaux); }

.sk-sum-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 18px 12px; }

.sk-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--sk-line);
    border-radius: 14px;
    padding: 4px;
}

.sk-stepper button, .sk-mini-stepper button {
    border: 0;
    border-radius: 10px;
    background: #F6F0EA;
    color: var(--sk-ink);
    font-weight: 700;
    font-family: inherit;
}

.sk-stepper button { width: 44px; height: 44px; font-size: 21px; }
.sk-stepper-val { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.sk-stepper-val b { font-size: 19px; font-variant-numeric: tabular-nums; }
.sk-stepper-val small { font-size: 11.5px; color: var(--sk-muted); }

.sk-sum-pickup {
    grid-column: 1 / -1;
    border: 1px solid var(--sk-line);
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 14px;
    min-height: 46px;
    color: var(--sk-ink);
    font-family: inherit;
}

.sk-sum-pickup small { font-size: 12px; color: var(--sk-muted); margin-right: auto; }
.sk-sum-pickup b { font-size: 15px; }
.sk-sum-pickup span { font-size: 14px; font-weight: 700; color: var(--sk-bordeaux); }

.sk-sum-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 10px 18px 8px;
    border-top: 1px solid var(--sk-line);
    font-size: 13px;
    color: var(--sk-muted);
}

.sk-sum-head span:first-child { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

.sk-sum-lines { padding: 0 10px; max-height: 46vh; overflow-y: auto; }

.sk-sum-empty {
    margin: 8px;
    padding: 22px 16px;
    border: 1px dashed #DCCFC2;
    border-radius: 14px;
    text-align: center;
    color: var(--sk-muted);
    font-size: 14px;
}

.sk-line { padding: 10px 8px; border-bottom: 1px solid var(--sk-line); display: flex; flex-direction: column; gap: 6px; }
.sk-line:last-child { border-bottom: 0; }
.sk-line-name { flex: 1; font-weight: 700; font-size: 15px; min-width: 0; }
.sk-line-amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.sk-line-remove {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 0;
    background: none;
    color: var(--sk-faint);
    font-size: 22px;
    line-height: 1;
}

.sk-line-remove:hover { background: #F6F0EA; color: var(--sk-ink); }

.sk-mini-stepper { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--sk-line); border-radius: 10px; padding: 2px; }
.sk-mini-stepper button { width: 36px; height: 36px; border-radius: 8px; }
.sk-mini-stepper span { min-width: 72px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

.sk-line-note-btn {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    border: 0;
    background: #F6F0EA;
    color: var(--sk-muted);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sk-line-note { font-size: 13.5px; font-style: italic; color: var(--sk-muted); background: var(--sk-note-bg); border-radius: 8px; padding: 6px 10px; }

.sk-sum-note { padding: 10px 18px 12px; border-top: 1px solid var(--sk-line); }

/* Portrait tablet: the summary (with the amounts) stays on the right instead of
   dropping below the products. To make room the product tiles get slimmer and the
   summary narrower; it sticks under the top bar and its lines scroll inside it, so
   amounts and the save button are always in view. Landscape and desktop (wider than
   1100px) are unchanged. */
@media (max-width: 1100px) {
    .sk-order-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }
    .sk-order-layout .sk-summary { top: 4.25rem; max-height: calc(100vh - 5rem); }

    .sk-wizard-body { padding: 12px 12px 16px; }
    .sk-steps { margin: 10px 10px 0; }
    .sk-step { min-height: 48px; padding: 0 8px; gap: 8px; }
    .sk-step-num { width: 26px; height: 26px; font-size: 13px; }
    .sk-step-label { font-size: 14px; }
    .sk-wizard-footer { padding: 10px 12px; }

    .sk-cat-chip { min-height: 40px; padding: 0 12px; font-size: 13.5px; }
    .sk-group-title { margin: 12px 0 6px; }
    .sk-tiles { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 7px; }

    .sk-tile {
        min-height: 54px;
        border-radius: 12px;
        padding: 7px 34px 7px 10px;
        justify-content: center;
        gap: 1px;
    }

    .sk-tile-name { font-size: 14px; line-height: 1.2; padding-right: 0; overflow-wrap: anywhere; }
    .sk-tile-sub { font-size: 11.5px; line-height: 1.2; }
    .sk-tile-mark { top: 50%; right: 7px; transform: translateY(-50%); width: 22px; height: 22px; font-size: 13px; }

    .sk-sum-customer { padding: 10px 12px 8px; gap: 10px; }
    .sk-sum-customer .sk-avatar { width: 38px; height: 38px; font-size: 14px; }
    .sk-sum-controls { padding: 0 12px 8px; gap: 6px; }
    .sk-stepper button { width: 34px; height: 38px; font-size: 19px; }
    .sk-stepper-val b { font-size: 17px; }
    .sk-stepper-val small { font-size: 10.5px; }
    .sk-sum-pickup { padding: 7px 12px; min-height: 40px; }
    .sk-sum-head { padding: 8px 12px 6px; }
    .sk-sum-lines { padding: 0 6px; flex: 1 1 auto; min-height: 110px; max-height: none; }
    .sk-line { padding: 8px 6px; gap: 5px; }
    .sk-line-name { font-size: 14px; }
    .sk-mini-stepper span { min-width: 58px; font-size: 13.5px; }
    .sk-line-note-btn { padding: 0 8px; }
    .sk-sum-note { padding: 8px 12px; }
    .sk-summary-footer { padding: 10px 12px 12px; gap: 7px; }
}

/* Phones: one column, summary below the steps. */
@media (max-width: 700px) {
    .sk-order-layout { grid-template-columns: 1fr; }
    .sk-order-layout .sk-summary { position: static; max-height: none; }
    .sk-sum-lines { max-height: none; overflow: visible; }
    .sk-picker-head { top: 0; }
}

@media (max-width: 640.98px) {
    .sk-customer-grid { grid-template-columns: 1fr; }
    .sk-step-hint { display: none; }
    .sk-picker-head { position: static; }
}

/* ==========================================================================
   Product administration redesign: categories · product list · edit panel
   ========================================================================== */
.sk-set-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.sk-set-search { width: 260px; max-width: 100%; min-height: 44px; border-radius: 10px; border-color: var(--sk-line); }

.sk-seg { display: flex; background: #F1E9E0; border-radius: 10px; padding: 3px; }

.sk-seg button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    background: transparent;
    color: var(--sk-muted);
    font-family: inherit;
}

.sk-seg .sk-seg-on { background: #fff; color: var(--sk-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

.sk-set-save {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    border: 0;
    background: var(--sk-bordeaux);
    color: #fff;
    font-weight: 700;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(124, 43, 42, .25);
}

.sk-set-save:hover { background: var(--sk-bordeaux-dark); }
.sk-set-save:disabled { opacity: .6; }

.sk-set-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }

/* ---- Category sidebar ---- */
.sk-set-cats {
    flex: 1 1 210px;
    max-width: 250px;
    background: #fff;
    border: 1px solid var(--sk-line);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sk-set-cats-title, .sk-set-lbl {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--sk-muted);
}

.sk-set-cats-title { padding: 8px 10px 6px; }
.sk-set-lbl { margin-bottom: 6px; }

.sk-set-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 500;
    text-align: left;
    background: transparent;
    color: var(--sk-ink);
    font-family: inherit;
}

.sk-set-cat:hover { background: #F3ECE4; }
.sk-set-cat-on, .sk-set-cat-on:hover { background: #F7E9E6; color: var(--sk-bordeaux); font-weight: 700; }
.sk-set-cat-off { color: #8A7A70; }
.sk-set-cat-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sk-set-count {
    min-width: 26px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 8px;
    background: #F1E9E0;
    color: var(--sk-muted);
}

.sk-set-cat-on .sk-set-count { background: var(--sk-bordeaux); color: #fff; }
.sk-set-tag { font-size: 11px; color: var(--sk-muted); border: 1px solid #D9CCBF; border-radius: 6px; padding: 1px 6px; }
.sk-set-hint { margin: 8px 10px 4px; font-size: 12px; line-height: 1.45; color: var(--sk-muted); }
.sk-grip { color: #B3A498; cursor: grab; font-size: 14px; line-height: 1; user-select: none; }

/* ---- Product list ---- */
.sk-set-list { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sk-set-group { background: #fff; border: 1px solid var(--sk-line); border-radius: 14px; overflow: hidden; }
.sk-set-group-off .sk-prow-name { color: #8A7A70; }

.sk-set-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 16px;
    border-bottom: 1px solid #F2EBE3;
    background: #FDFBF8;
}

.sk-set-group-name {
    font-family: "Bitter", serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--sk-ink);
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    padding: 4px 6px;
    margin-left: -6px;
    min-width: 0;
    flex: 0 1 18rem;
}

.sk-set-group-name:hover { border-color: var(--sk-line); }
.sk-set-group-name:focus { outline: none; border-color: var(--sk-bordeaux); background: #fff; }

.sk-prow {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 118px 96px 52px;
    gap: 12px;
    align-items: center;
    padding: 4px 16px;
    border-bottom: 1px solid #F2EBE3;
}

.sk-prow:hover { background: #FBF8F4; }
.sk-prow-on, .sk-prow-on:hover { background: #F7E9E6; box-shadow: inset 3px 0 0 var(--sk-bordeaux); }

.sk-prow-head, .sk-prow-head:hover {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--sk-muted);
    background: #fff;
}

.sk-prow-pick {
    background: none;
    border: 0;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    color: var(--sk-ink);
    font-family: inherit;
}

.sk-prow-name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-prow-dim { color: #8A7A70; text-decoration: line-through; }
.sk-prow-sub { font-size: 12.5px; color: var(--sk-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-prow-qty { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; }
.sk-prow-qty-none { font-size: 13px; color: var(--sk-muted); }

.sk-opt {
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: 8px;
    background: #F4ECE4;
    color: var(--sk-muted);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sk-opt-days { background: #FCEFD9; color: #7A4A0B; }
.sk-opt-sizes { background: #EAF0F7; color: #234A73; }

.sk-set-add {
    width: 100%;
    min-height: 46px;
    border: 0;
    background: none;
    color: var(--sk-bordeaux);
    font-weight: 600;
    text-align: left;
    padding: 0 16px;
    font-family: inherit;
}

.sk-set-add:hover { background: #FBF8F4; }

/* ---- Switch ---- */
.sk-switch {
    position: relative;
    width: 44px;
    height: 26px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    flex-shrink: 0;
    background: #CFC4BA;
}

.sk-switch span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    transition: left .15s;
}

.sk-switch-on { background: var(--sk-bordeaux); }
.sk-switch-on span { left: 21px; }
.sk-switch:focus-visible, .sk-set-cat:focus-visible, .sk-prow-pick:focus-visible { outline: 2px solid var(--sk-bordeaux); outline-offset: 2px; }

.sk-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 0;
    background: #F6F0EA;
    color: var(--sk-muted);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.sk-icon-btn:hover { color: var(--sk-ink); }

/* ---- Edit panel ---- */
.sk-set-edit {
    flex: 1 1 340px;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--sk-line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(60, 30, 20, .06);
    position: sticky;
    top: 4.5rem;
}

.sk-set-edit-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 20px; border-bottom: 1px solid #F2EBE3; }
.sk-set-edit-body { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 20px; }
.sk-set-edit .form-control, .sk-set-edit .form-select { min-height: 44px; border-radius: 10px; border-color: #E3D8CC; }
.sk-set-edit .form-control-sm { min-height: 36px; }
.sk-set-edit .form-control:focus, .sk-set-edit .form-select:focus { border-color: var(--sk-bordeaux); box-shadow: 0 0 0 3px rgba(124, 43, 42, .12); }
.sk-set-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sk-set-preview { background: #F8F3EC; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45; color: #5B4B43; }
.sk-set-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }

.sk-set-days button {
    min-height: 40px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #E3D8CC;
    background: #fff;
    color: #8A7A70;
    font-family: inherit;
    padding: 0;
}

.sk-set-days .sk-day-on { border-color: var(--sk-bordeaux); background: #F7E9E6; color: var(--sk-bordeaux); }
.sk-set-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid #F2EBE3; padding-top: 16px; }
.sk-set-block { border-top: 1px solid #F2EBE3; padding-top: 16px; }

.sk-size-add {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px dashed #B9C7D8;
    background: none;
    color: #234A73;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
}

.sk-set-delete {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #E8C7C3;
    background: #fff;
    color: #9B1C1C;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 900px) {
    .sk-set-cats, .sk-set-edit { max-width: none; }
    .sk-set-edit { position: static; }
    .sk-prow { grid-template-columns: 22px minmax(0, 1fr) 52px; }
    .sk-prow > :nth-child(3), .sk-prow > :nth-child(4) { display: none; }
}

/* ---- Sorting on touch screens: ▲▼ buttons instead of dragging ---- */
.sk-set-cat-row { padding: 0 6px 0 10px; }

.sk-set-cat-main {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: none;
    padding: 0;
    text-align: left;
    color: inherit;
    font: inherit;
}

.sk-prow-sort { display: flex; align-items: center; }
.sk-move { display: none; flex-direction: column; gap: 2px; }

.sk-move button {
    width: 30px;
    height: 22px;
    border: 0;
    border-radius: 6px;
    background: #F1E9E0;
    color: var(--sk-muted);
    font-size: 10px;
    line-height: 1;
    padding: 0;
}

.sk-move button:disabled { opacity: .35; }

/* Any touch-capable device (tablets, touch laptops): show the buttons. */
@media (any-pointer: coarse) {
    .sk-move { display: flex; }
    .sk-set-cat-row .sk-grip, .sk-prow-sort .sk-grip { display: none; }
    .sk-prow { grid-template-columns: 32px minmax(0, 1fr) 118px 96px 52px; }
    .sk-prow, .sk-set-cat-row { padding-top: 3px; padding-bottom: 3px; }
}

@media (any-pointer: coarse) and (max-width: 900px) {
    .sk-prow { grid-template-columns: 32px minmax(0, 1fr) 52px; }
}

/* ---- Help popup ------------------------------------------------------------------- */
.sk-help-link { font-size: 14px; font-weight: 700; color: var(--sk-muted); background: transparent; border: 1px solid var(--sk-line, #ECE2D4);
    border-radius: 999px; padding: .35rem .85rem; margin-left: 1.25rem; white-space: nowrap; }
.sk-help-link:hover { color: var(--sk-bordeaux, #7C2B2A); border-color: var(--sk-bordeaux, #7C2B2A); }
.sk-help-dialog { border: 0; border-radius: 14px; padding: 0; width: min(44rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3); color: var(--sk-ink, #2B211B); }
.sk-help-dialog::backdrop { background: rgba(40, 28, 20, .55); }
.sk-help-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center;
    padding: .75rem 1.25rem; background: #fff; border-bottom: 1px solid var(--sk-line, #ECE2D4);
    font-family: "Bitter", serif; font-size: 1.15rem; font-weight: 700; }
.sk-help-dialog-body { padding: 1rem 1.25rem 1.25rem; font-size: 15.5px; }
.sk-help-topic-title { font-family: "Bitter", serif; font-size: 1.45rem; font-weight: 700; margin-bottom: .6rem; }
.sk-help-more { border-top: 1px solid var(--sk-line, #ECE2D4); padding: .2rem 0; }
.sk-help-more > summary { font-weight: 700; padding: .65rem 0; cursor: pointer; }
.sk-help-item { margin-left: .25rem; }
.sk-help-item > summary { padding: .45rem 0; cursor: pointer; }
.sk-help-item[open] { background: #FBF6EE; border-radius: 8px; padding: 0 .6rem .4rem; margin-bottom: .4rem; }
.sk-help-group { font-family: "Bitter", serif; font-size: 1.05rem; font-weight: 700; margin: 1rem 0 .5rem; }
.sk-help-points { padding-left: 1.2rem; }
.sk-help-points li { margin-bottom: .4rem; }
.sk-help-steps { padding-left: 1.4rem; margin-bottom: 0; }
.sk-help-steps > li { margin-bottom: 1rem; }
.sk-help-steps > li:last-child { margin-bottom: 0; }
.sk-help-step-title { font-weight: 700; margin-bottom: .15rem; }

/* ---- Guidance in the order form --------------------------------------------------- */
.sk-step-lead { font-size: 14.5px; color: var(--sk-muted); background: #FBF6EE; border: 1px solid var(--sk-line, #ECE2D4);
    border-radius: 8px; padding: .55rem .75rem; margin-bottom: 1rem; }
.sk-open-points { font-size: 13.5px; border: 1px solid #E9C46A; background: #FFF8E1; border-radius: 8px; padding: .5rem .6rem;
    display: flex; flex-direction: column; gap: .25rem; }
.sk-open-title { font-weight: 700; }
.sk-open-point { display: flex; justify-content: space-between; align-items: center; gap: .5rem; width: 100%; min-height: 36px;
    background: transparent; border: 0; border-top: 1px solid rgba(0, 0, 0, .06); padding: .2rem 0; text-align: left; color: inherit; }
.sk-open-go { font-weight: 700; color: var(--sk-bordeaux, #7C2B2A); white-space: nowrap; }
.sk-open-done { border-color: #B7DFC0; background: #EEF8F0; color: #1E6B34; font-weight: 700; }

/* ---- Typed amounts, read-back, print problem ------------------------------------- */
.sk-mini-stepper .sk-amount-input { width: 62px; height: 36px; border: 1px solid var(--sk-line, #ECE2D4); border-radius: 8px;
    text-align: center; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; background: #fff; }
.sk-mini-stepper .sk-amount-input:focus { outline: 2px solid var(--sk-bordeaux, #7C2B2A); outline-offset: 0; }
.sk-mini-stepper span.sk-amount-unit { min-width: 0; padding: 0 4px; font-weight: 600; color: var(--sk-muted); }

.sk-readback-backdrop { position: fixed; inset: 0; z-index: 1050; background: rgba(40, 28, 20, .55);
    display: flex; align-items: center; justify-content: center; padding: 1rem; }
.sk-readback { background: #fff; border-radius: 14px; width: 100%; max-width: 34rem; max-height: calc(100vh - 2rem); overflow-y: auto;
    padding: 1.25rem 1.25rem 1rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.sk-readback-title { font-family: "Bitter", serif; font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; }
.sk-readback-row { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--sk-line, #ECE2D4); font-size: 16px; }
.sk-readback-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--sk-muted); padding-top: .2rem; }
.sk-readback-pickup { font-size: 1.3rem; font-weight: 700; line-height: 1.3; color: var(--sk-bordeaux, #7C2B2A); }
.sk-readback-lines { margin: 0; padding-left: 1.1rem; }
.sk-readback-buttons { display: grid; grid-template-columns: 1fr 1.4fr; gap: .75rem; margin-top: 1rem; }
.sk-readback-buttons button { min-height: 56px; font-size: 17px; }

/* ---- Read-back groups, freshly added line ------------------------------------------ */
.sk-readback-kind { font-family: "Bitter", serif; font-weight: 700; font-size: 1.05rem; margin-top: .5rem; }
.sk-readback-kind:first-child { margin-top: 0; }
.sk-readback-category { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--sk-muted); margin-top: .3rem; }
.sk-line-new { animation: sk-line-flash 1.6s ease-out; }
@keyframes sk-line-flash { from { background: #FFE9A8; } to { background: transparent; } }

/* ---- Print buttons of an order ------------------------------------------------------ */
.sk-print-panel { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.sk-print-panel .btn { min-height: 44px; background: #fff; }
.sk-print-label { font-weight: 700; margin-right: .25rem; }
