/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef2ff;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warn: #f59e0b;
    --warn-light: #fef3c7;
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --text: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.1);
    --transition: .2s cubic-bezier(.4,0,.2,1);
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif,
                 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', EmojiOne, emoji;
}
body { background: var(--bg); color: var(--text); font-size: 15px; -webkit-tap-highlight-color: transparent; line-height: 1.5; }
a { color: inherit; text-decoration: none; }

/* ===== FLASH MESSAGES ===== */
#flash-messages { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 400px; }
.flash {
    padding: 14px 20px; border-radius: var(--radius-sm); font-weight: 500; font-size: 14px;
    box-shadow: var(--shadow-lg); animation: slideIn .3s ease; backdrop-filter: blur(8px);
}
.flash--success { background: var(--success-light); color: #065f46; border-left: 4px solid var(--success); }
.flash--error   { background: var(--danger-light); color: #991b1b; border-left: 4px solid var(--danger); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border-radius: var(--radius-sm); border: none; cursor: pointer;
    font-size: 14px; font-weight: 600; transition: all var(--transition);
    user-select: none; white-space: nowrap; letter-spacing: -.01em;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: scale(.97) translateY(0); }
.btn--primary  { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--danger   { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #dc2626; }
.btn--success  { background: var(--success); color: #fff; }
.btn--ghost    { background: transparent; color: var(--text-muted); border: 1.5px solid var(--border); }
.btn--ghost:hover { background: var(--border-light); border-color: var(--text-light); }
.btn--full     { width: 100%; }
.btn--sm       { padding: 6px 14px; font-size: 13px; border-radius: var(--radius-xs); }
.btn--xl       { padding: 18px 28px; font-size: 18px; border-radius: var(--radius); }

/* ===== FORMS ===== */
.form-group   { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label   { font-weight: 600; font-size: 13px; color: var(--text-muted); letter-spacing: .02em; }
.form-input {
    padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 15px; background: var(--surface); color: var(--text); transition: all var(--transition);
    appearance: none;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.form-input--lg   { padding: 16px 18px; font-size: 18px; border-radius: var(--radius); }
.form-input--sm   { padding: 8px 12px; font-size: 14px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form .form-input { flex: 1; min-width: 150px; }

/* ===== LOGIN PAGE ===== */
.login-page {
    display: flex; align-items: center; justify-content: center; min-height: 100vh;
    background: linear-gradient(135deg, #312e81 0%, #6366f1 50%, #818cf8 100%);
}
.login-wrapper { width: 100%; max-width: 400px; padding: 24px; }
.login-card {
    background: var(--surface); border-radius: 24px; padding: 44px 36px;
    box-shadow: 0 24px 48px rgba(0,0,0,.2);
}
.login-logo { text-align: center; margin-bottom: 36px; }
.login-logo__icon { font-size: 56px; display: block; }
.login-logo__title { font-size: 26px; font-weight: 800; margin-top: 8px; letter-spacing: -.03em; }
.login-logo__sub { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.login-logo__img {
    display: block;
    margin: 0 auto 8px;
    max-width: 240px;
    width: 80%;
    height: auto;
}

/* ===== POS LAYOUT ===== */
.pos-page { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.pos-layout { display: flex; flex-direction: column; height: 100%; }

/* Top bar */
.pos-topbar {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 10px 16px; flex-shrink: 0; height: 56px;
}
.pos-topbar__left  { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; min-width: 120px; }
.pos-topbar__icon  { font-size: 22px; }
.pos-topbar__logo  { height: 22px; width: auto; display: block; }
.pos-topbar__center { flex: 1; display: flex; align-items: center; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.pos-topbar__center::-webkit-scrollbar { display: none; }
.pos-topbar__right { display: flex; align-items: center; gap: 8px; min-width: fit-content; }

/* POS search input */
.pos-search { position: relative; flex: 0 1 260px; min-width: 180px; }
.pos-search input {
    width: 100%; padding: 7px 32px 7px 12px; border-radius: 99px;
    border: 1.5px solid var(--border); background: #fff; font-size: 13px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.pos-search input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light, #eef2ff);
}
.pos-search__clear {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; border-radius: 50%; border: 0;
    background: var(--border-light); color: var(--text-muted);
    cursor: pointer; display: inline-flex; align-items: center;
    justify-content: center; font-size: 11px; line-height: 1;
}
.pos-search__clear:hover { background: var(--border); color: var(--text); }
.pos-user { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* Category tabs */
.category-tabs { display: flex; gap: 6px; padding: 2px 0; }
.cat-tab {
    padding: 7px 16px; border-radius: 99px; border: 1.5px solid var(--border);
    background: transparent; font-size: 13px; font-weight: 600; cursor: pointer;
    white-space: nowrap; transition: all var(--transition); color: var(--text-muted);
}
.cat-tab:hover { background: var(--border-light); }
.cat-tab--active { background: var(--primary); color: #fff; border-color: var(--primary); }
.cat-tab:active  { transform: scale(.96); }

/* Main area */
.pos-main { display: flex; flex: 1; overflow: hidden; }

/* Product grid */
.pos-products { flex: 1; overflow-y: auto; padding: 16px; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.product-card {
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: 16px 12px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 6px; transition: all var(--transition); min-height: 90px;
    box-shadow: var(--shadow);
}
.product-card:hover  { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.12); transform: translateY(-2px); }
.product-card:active { transform: scale(.95) translateY(0); }
.product-card--added { background: var(--primary-light); border-color: var(--primary); }
.product-card__name  { font-size: 14px; font-weight: 600; line-height: 1.3; }
.product-card__price { font-size: 17px; font-weight: 800; color: var(--primary); }

/* Cart */
.pos-cart {
    width: 340px; min-width: 300px; display: flex; flex-direction: column;
    background: var(--surface); border-left: 1px solid var(--border);
}
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cart-title  { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.cart-items  { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.cart-empty  { text-align: center; color: var(--text-light); padding: 32px 0; font-size: 14px; }

.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg); border-radius: var(--radius-sm); padding: 10px 12px; }
.cart-item__info  { flex: 1; }
.cart-item__name  { font-size: 13px; font-weight: 600; display: block; }
.cart-item__price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
}
.cart-item__deal,
.cart-item__hint {
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}
.cart-item__deal {
    background: #dcfce7;
    color: #166534;
}
.cart-item__hint {
    background: #eff6ff;
    color: #2563eb;
}
.cart-item__qty   { display: flex; align-items: center; gap: 6px; }
.qty-btn  {
    width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--border);
    background: var(--surface); font-size: 16px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all .1s;
}
.qty-btn:hover { background: var(--border-light); }
.qty-btn:active { transform: scale(.9); }
.qty-val  { font-size: 15px; font-weight: 700; min-width: 18px; text-align: center; }

.cart-footer  { padding: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.cart-total   { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 600; }
.cart-total__amount { font-size: 22px; font-weight: 800; color: var(--primary); }

.payment-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn--pay  { padding: 14px; font-size: 15px; border-radius: var(--radius-sm); border: none; cursor: pointer; font-weight: 700; transition: all var(--transition); }
.btn--pay:active { transform: scale(.97); }
.btn--cash { background: var(--success-light); color: #065f46; }
.btn--cash:hover { background: #a7f3d0; }
.btn--card { background: var(--primary-light); color: var(--primary-dark); }
.btn--card:hover { background: #ddd6fe; }
.btn--employee-action { background: #ede9fe; color: #5b21b6; }
.btn--employee-action:hover:not(:disabled) { background: #ddd6fe; }
.btn--employee-action:disabled { opacity: .45; cursor: not-allowed; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: var(--surface); border-radius: 24px; padding: 40px; text-align: center; max-width: 360px; width: 90%; box-shadow: var(--shadow-lg); }
.modal--success .modal__icon { font-size: 56px; margin-bottom: 16px; }
.modal__title  { font-size: 22px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; }
.modal__amount { font-size: 32px; font-weight: 800; color: var(--primary); }
.modal__method { color: var(--text-muted); margin: 8px 0 24px; font-size: 15px; }

/* ===== ADMIN LAYOUT ===== */
.admin-page { height: 100vh; overflow: hidden; }
.admin-layout { display: flex; height: 100vh; }

/* Sidebar */
.admin-sidebar {
    width: 240px; background: #0f172a; color: #f1f5f9;
    display: flex; flex-direction: column; flex-shrink: 0;
}
.sidebar-logo {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; font-size: 17px; font-weight: 800;
    padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
    letter-spacing: -.02em;
}
.sidebar-logo__img {
    max-width: 100%;
    width: 160px;
    height: auto;
    /* Pokud je logo PNG s bílým neprůhledným pozadím, blend-mode "screen"
       udělá bílé pozadí "neviditelným" na tmavém sidebaru. Černé logo se
       pak invertuje na bílé filterem. */
    filter: brightness(0) invert(1);
    mix-blend-mode: screen;
}
.sidebar-nav   { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-link  {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; color: #94a3b8; font-size: 14px; font-weight: 500;
    border-radius: var(--radius-sm); transition: all var(--transition);
}
.sidebar-link:hover        { background: rgba(255,255,255,.06); color: #e2e8f0; }
.sidebar-link--active      { background: var(--primary); color: #fff; font-weight: 600; }
.sidebar-footer { padding: 12px 8px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 2px; }

/* Admin main */
.admin-main    { flex: 1; padding: 28px 32px; overflow-y: auto; background: var(--bg); }
.admin-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-title   { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.admin-cols    { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; margin-bottom: 20px; }
.admin-section {
    background: var(--surface); border-radius: var(--radius); padding: 24px;
    margin-bottom: 20px; box-shadow: var(--shadow); border: 1px solid var(--border-light);
}
.admin-section__title { font-size: 15px; font-weight: 700; margin-bottom: 16px; letter-spacing: -.01em; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card  {
    background: var(--surface); border-radius: var(--radius); padding: 22px;
    box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
    border: 1px solid var(--border-light); position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--border); border-radius: var(--radius) var(--radius) 0 0;
}
.stat-card--green::before { background: var(--success); }
.stat-card--warn::before { background: var(--warn); }
.stat-card__label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.stat-card__value { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
.data-table  { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
    text-align: left; padding: 10px 14px; background: var(--bg);
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--text-muted); border-bottom: 1.5px solid var(--border);
}
.data-table td { padding: 12px 14px; border-top: 1px solid var(--border-light); vertical-align: middle; }
.data-table tr:hover td { background: #fafbfc; }
.data-table tbody tr { transition: background var(--transition); }
.table-empty   { text-align: center; color: var(--text-light); padding: 32px !important; font-size: 14px; }
.row--inactive td { opacity: .4; }

/* Badges */
.badge {
    display: inline-flex; align-items: center; padding: 3px 10px;
    border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.badge--admin  { background: var(--warn-light); color: #92400e; }
.badge--employee { background: var(--primary-light); color: var(--primary-dark); }
.badge--retail { background: #dcfce7; color: #166534; }
.badge--internal { background: #ede9fe; color: #5b21b6; }

/* Toggle button */
.toggle-btn    { background: none; border: none; cursor: pointer; font-size: 20px; padding: 4px; transition: transform .15s; }
.toggle-btn:hover { transform: scale(1.15); }

/* Order items list */
.order-items-list { list-style: none; font-size: 13px; color: var(--text-muted); }
.order-items-list li + li { margin-top: 2px; }
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.orders-list .table-empty {
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 18px;
}
.order-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 12px 28px -28px rgba(15, 23, 42, 0.55);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    min-width: 0;
}
.order-row:hover {
    transform: translateY(-1px);
    border-color: #d6dbe5;
    box-shadow: 0 16px 34px -28px rgba(15, 23, 42, 0.6);
}
.order-row--cancelled {
    background: #fcfcfd;
}
.order-row--cancelled {
    opacity: 0.72;
}
.order-row__person {
    flex: 1 1 240px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.order-row__content {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.order-row__headline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 14px;
    min-width: 0;
}
.order-row__name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}
.order-row__meta {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.3;
}
.order-row__chips {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}
.order-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.order-chip--cancelled {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}
.order-row__items {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
    white-space: normal;
}
.order-item-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: #f8fafc;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
}
.order-item-chip small {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.order-row__total {
    flex: 0 0 auto;
    min-width: 110px;
    text-align: right;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1;
}
.order-row__total s {
    color: var(--text-muted);
}
.order-row__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.order-action-form {
    margin: 0;
}
.order-action-btn {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid #d7dee8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
    box-shadow: 0 10px 22px -24px rgba(15, 23, 42, 0.55);
}
.order-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px -24px rgba(15, 23, 42, 0.7);
}
.order-action-btn--cancel {
    background: #fff7ed;
    border-color: #fdba74;
    color: #c2410c;
}
.order-action-btn--cancel:hover {
    background: #ffedd5;
}
.order-action-btn--delete {
    background: #fff1f2;
    border-color: #fda4af;
    color: #be123c;
}
.order-action-btn--icon {
    width: 38px;
    min-width: 38px;
    padding: 0;
    gap: 0;
}
.order-action-btn--delete:hover {
    background: #ffe4e6;
}
.order-action-icon {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.order-date-form {
    display: flex;
    flex: 0 0 220px;
    min-width: 220px;
}
.order-date-form__fields {
    display: grid;
    grid-template-columns: minmax(136px, 1fr) 72px;
    gap: 6px;
    align-items: center;
    width: 100%;
}
.order-date-form__display,
.order-date-form__input {
    min-width: 0;
    height: 38px;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 11px;
    padding-right: 11px;
    border-radius: 12px;
    border-color: #d8dee8;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-variant-numeric: tabular-nums;
}
.order-date-form__display {
    border: 1px solid #d8dee8;
    text-align: left;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.order-date-form__display:hover {
    transform: translateY(-1px);
    border-color: #93c5fd;
    box-shadow: 0 12px 24px -18px rgba(37, 99, 235, 0.42);
    background: #ffffff;
}
.order-date-form__display-value {
    display: block;
    white-space: nowrap;
}
.order-date-form__input--date {
    min-width: 138px;
    letter-spacing: 0.01em;
}
.order-date-form__input--time {
    min-width: 0;
    text-align: center;
}
.order-date-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.order-date-modal[hidden] {
    display: none;
}
.order-date-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.44);
    backdrop-filter: blur(6px);
}
.order-date-modal__dialog {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 28px;
    box-shadow: 0 32px 60px -32px rgba(15, 23, 42, 0.58);
    padding: 22px 22px 18px;
}
.order-date-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}
.order-date-modal__title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}
.order-date-modal__subtitle {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.order-date-modal__close,
.order-date-modal__nav {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid #d7dee8;
    background: #f8fafc;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.order-date-modal__close:hover,
.order-date-modal__nav:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.35);
}
.order-date-modal__toolbar {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.order-date-modal__month {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    text-transform: capitalize;
}
.order-date-modal__weekdays,
.order-date-modal__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}
.order-date-modal__weekdays {
    margin-bottom: 10px;
}
.order-date-modal__weekdays span {
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.order-date-modal__day {
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.order-date-modal__day:hover {
    transform: translateY(-1px);
    border-color: #93c5fd;
    box-shadow: 0 14px 28px -24px rgba(37, 99, 235, 0.46);
    background: #eff6ff;
}
.order-date-modal__day--muted {
    color: #94a3b8;
    background: #fff;
}
.order-date-modal__day--today {
    border-color: #cbd5e1;
    box-shadow: inset 0 0 0 1px #cbd5e1;
}
.order-date-modal__day--selected {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 16px 30px -22px rgba(37, 99, 235, 0.7);
}
.order-date-modal__footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}
.order-date-modal__footer .btn {
    min-width: 120px;
}

/* ===== SHAKE & EXTRAS SECTIONS (POS) ===== */
.shake-section { padding: 16px; }
.section-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }

.shake-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 8px; }
.shake-card {
    background: linear-gradient(135deg, var(--primary-light), #f5f3ff);
    border: 1.5px solid #c7d2fe; border-radius: var(--radius); padding: 16px;
    cursor: pointer; display: flex; flex-direction: column; gap: 6px;
    text-align: center; transition: all var(--transition);
}
.shake-card:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.12); transform: translateY(-2px); }
.shake-card:active { transform: scale(.95); }
.shake-card__name { font-size: 15px; font-weight: 800; }
.shake-card__desc { font-size: 12px; color: var(--text-muted); }
.shake-card__price { font-size: 17px; font-weight: 800; color: var(--primary); }

.extras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.extra-btn {
    background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: var(--radius-sm);
    padding: 12px 8px; cursor: pointer; display: flex; flex-direction: column;
    gap: 4px; text-align: center; transition: all var(--transition);
}
.extra-btn:hover { border-color: var(--success); transform: translateY(-1px); }
.extra-btn:active { transform: scale(.95); }
.extra-btn__name { font-size: 13px; font-weight: 600; }
.extra-btn__price { font-size: 13px; color: var(--success); font-weight: 700; }

.protein-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.protein-card {
    background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
    padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.protein-card__name { font-size: 14px; font-weight: 700; }
.protein-card__price { font-size: 13px; color: var(--text-muted); }
.protein-card__controls { display: flex; align-items: center; gap: 8px; }

/* =============================================================
   MODERN POS CARDS — unified grid + card (Zboží / Shaky / Protein)
   ============================================================= */

.pos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}
.pos-grid--shake { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pos-grid--protein { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.pos-card {
    position: relative;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.pos-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(99, 102, 241, .25);
    border-color: var(--primary);
}
.pos-card:active { transform: scale(.97); }

.pos-card--shake {
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border-color: #c7d2fe;
}
.pos-card--warning {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    border-color: #fed7aa;
}

.pos-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pos-card__avatar {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.02em;
    flex-shrink: 0;
    box-shadow: 0 4px 10px -3px rgba(0,0,0,.15);
}

/* Deterministické barevné avatary — rozmanitost podle id%6 */
.avatar-c0 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.avatar-c1 { background: linear-gradient(135deg, #10b981, #059669); }
.avatar-c2 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.avatar-c3 { background: linear-gradient(135deg, #ef4444, #ec4899); }
.avatar-c4 { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.avatar-c5 { background: linear-gradient(135deg, #8b5cf6, #d946ef); }

.pos-card__price-badge {
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 99px;
    letter-spacing: -.01em;
    white-space: nowrap;
    box-shadow: 0 2px 6px -2px rgba(99, 102, 241, .4);
}
.pos-card--shake .pos-card__price-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.pos-card__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    letter-spacing: -.01em;
    /* max 2 řádky, pak ellipsis — drží karty stejně vysoké */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.pos-card__desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pos-card__pack {
    font-size: 11px;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 2px;
    font-weight: 600;
    line-height: 1.3;
    align-self: flex-start;
}

.pos-card__deal {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 850;
}

.pos-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.pos-card__meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-weight: 500;
}
.pos-card__unit-hint { color: #94a3b8; }

.pos-card__vat {
    background: #ecfeff;
    color: #0e7490;
    padding: 2px 7px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    margin-left: auto;
}

.pos-card--stock {
    min-height: 168px;
}
.pos-card--stock .pos-card__name {
    -webkit-line-clamp: 3;
    min-height: 3.9em;
}
.pos-card--stock .pos-card__pack {
    margin-top: 0;
}
.pos-card--stock .pos-card__meta {
    flex: 1;
    min-width: 0;
}
.pos-card--stock .pos-card__vat {
    margin-left: 0;
}
.pos-card--stock .pos-card__price-badge--stock {
    align-self: flex-end;
    margin-left: 0;
}

.stock-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px #dcfce7;
}
.stock-dot--low {
    background: #f59e0b;
    box-shadow: 0 0 0 2px #fef3c7;
    animation: pulseWarn 1.6s ease-in-out infinite;
}
@keyframes pulseWarn {
    0%, 100% { box-shadow: 0 0 0 2px #fef3c7; }
    50%      { box-shadow: 0 0 0 4px #fde68a; }
}

.pos-card__qty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}
.pos-card__qty .qty-val { flex: 1; text-align: center; font-weight: 800; font-size: 15px; }
.pos-card__qty .btn--sm { padding: 6px 12px; }

/* No-results hláška */
.pos-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
    background: var(--surface);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    margin-top: 20px;
}

/* ===== DISCOUNT (POS) ===== */
.discount-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border-light); flex-wrap: wrap; }
.discount-label { font-size: 12px; font-weight: 700; color: var(--text-muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.discount-btns { display: flex; flex-wrap: wrap; gap: 4px; }
.disc-btn {
    padding: 4px 10px; border-radius: 99px; border: 1.5px solid var(--border);
    background: transparent; font-size: 12px; font-weight: 700; cursor: pointer;
    color: var(--text-muted); transition: all var(--transition);
}
.disc-btn:hover { background: var(--border-light); }
.disc-btn--active { background: var(--warn); color: #fff; border-color: var(--warn); }
.disc-btn:active { transform: scale(.93); }

.cart-totals { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 13px; }
.cart-total-row--discount { color: var(--danger); font-weight: 600; }
.cart-total-row--total { font-size: 15px; font-weight: 700; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }

/* ===== PRODUCT TABLE ALIGNMENT ===== */
.data-table--products { table-layout: fixed; }
.data-table--products .col-name    { width: auto; }
.data-table--products .col-price   { width: 90px; text-align: right; }
.data-table--products .col-status  { width: 80px; text-align: center; }
.data-table--products .col-actions { width: 90px; text-align: right; }
.cell-right  { text-align: right; }
.cell-items  { max-width: 420px; line-height: 1.6; }
.order-item-chip {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin: 1px 2px 1px 0;
    white-space: nowrap;
}
.cell-center { text-align: center; }

/* ===== CANCELLED ORDER ===== */
.row--cancelled td { opacity: .4; }
.badge--cancelled { background: var(--danger-light); color: #991b1b; }

/* ===== CATEGORY HEADER ===== */
.category-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.category-header .admin-section__title { margin-bottom: 0; }
.category-actions { display: flex; gap: 6px; }
.cat-edit-form { align-items: center; }

/* ===== STOCK PAGE ===== */
.stock-add-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 140px; }
.form-row--flags { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }

.price-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid var(--border-light);
}
.price-editor + .price-editor { padding-top: 10px; }
.price-editor__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.price-editor__head span {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
}
.price-editor__head small {
    font-size: 12px;
    color: var(--text-light);
    text-align: right;
}
.price-editor__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 8px;
}
.price-editor__grid--sale {
    grid-template-columns: minmax(86px, .72fr) repeat(3, minmax(130px, 1fr));
}
.price-editor__grid--three {
    grid-template-columns: minmax(86px, .72fr) repeat(2, minmax(130px, 1fr));
}
.price-editor__grid--two {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
}
.price-editor--compact {
    padding: 0;
    border-top: 0;
}
.price-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.price-field span {
    font-size: 11px;
    font-weight: 750;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0;
}
.price-field .form-input {
    width: 100%;
    min-width: 0;
    padding: 10px 11px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 650;
}
.price-field--primary .form-input {
    border-color: rgba(16, 185, 129, .45);
    background: #f0fdf4;
    color: #065f46;
}
.price-field--primary .form-input:focus {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .14);
}
.price-field--derived .form-input,
.price-field .form-input[readonly] {
    background: #f8fafc;
    color: #64748b;
    border-color: var(--border-light);
}
.price-field:focus-within span {
    color: var(--text);
}

.conversion-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.conversion-box__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 8px;
}
.conversion-box__preview {
    padding: 10px 12px;
    border: 1px solid rgba(16, 185, 129, .25);
    border-radius: 8px;
    background: #f0fdf4;
    color: #065f46;
    font-size: 13px;
    font-weight: 700;
}
.price-tier-box {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(99, 102, 241, .16);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.price-tier-box__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.price-tier-box__head h3 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -.02em;
}
.price-tier-box__head p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}
.price-tier-box__base {
    flex-shrink: 0;
    padding: 7px 10px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: #fff;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 750;
}
.price-tier-form {
    display: grid;
    grid-template-columns: minmax(110px, .8fr) minmax(150px, 1fr) auto;
    align-items: end;
    gap: 10px;
}
.price-tier-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.price-tier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(16, 185, 129, .24);
    border-radius: 12px;
    background: #f0fdf4;
}
.price-tier-row div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.price-tier-row strong {
    color: #065f46;
    font-size: 14px;
}
.price-tier-row span,
.price-tier-empty {
    color: var(--text-muted);
    font-size: 13px;
}
.price-tier-empty {
    margin: 10px 0 0;
}
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; cursor: pointer; }
.checkbox-label input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--primary);
    border-radius: 4px; cursor: pointer;
}
.row--warning td { background: #fffbeb !important; }
.badge--danger { background: var(--danger-light); color: #991b1b; }

/* ===== STOCK DETAIL ===== */
.stock-status { display: flex; flex-direction: column; align-items: flex-end; }
.stock-status__val { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.stock-status__unit { font-size: 13px; color: var(--text-muted); }
.stock-status--ok .stock-status__val { color: var(--success); }
.stock-status--low .stock-status__val { color: var(--danger); }

/* ===== SHAKES PAGE (admin) ===== */
.shake-card--inactive { opacity: .5; }
.shake-card__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 12px; }
.shake-card__prices { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.shake-price-label { font-size: 13px; color: var(--text-muted); }
.shake-price-label--vat { font-size: 14px; color: var(--primary); font-weight: 600; }
.shake-price-form { border-top: 1px solid var(--border-light); padding-top: 16px; margin-bottom: 16px; }
.text-muted { color: var(--text-muted); font-size: 14px; }

/* ===== CREDIT TOPUP METHODS ===== */
.topup-methods { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-label { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ===== DASHBOARD LOW STOCK ===== */
.low-stock-list { margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--text-muted); }
.low-stock-list li { padding: 2px 0; }
.low-stock-list li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); margin-right: 8px; vertical-align: middle; }

/* ===== CUSTOMER PANEL (POS) ===== */
.customer-panel { padding: 10px 12px; border-bottom: 1px solid var(--border); position: relative; }
.customer-search-wrap { position: relative; }
.customer-dropdown {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    z-index: 100; max-height: 340px; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.customer-option {
    display: flex; flex-direction: column; width: 100%;
    padding: 12px 16px; border: none; background: none;
    cursor: pointer; text-align: left; border-bottom: 1px solid var(--border-light);
    transition: background .1s; min-height: 48px;
}
.customer-option--with-avatar {
    flex-direction: row; align-items: center; gap: 12px;
}
.customer-option__text {
    display: flex; flex-direction: column; flex: 1; min-width: 0;
}
.customer-option:last-child { border-bottom: none; }
.customer-option:hover, .customer-option:active { background: var(--primary-light); }
.customer-option--empty { color: var(--text-muted); font-size: 14px; text-align: center; cursor: default; }
.customer-option__name { font-weight: 600; font-size: 15px; }
.customer-option__meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.customer-selected {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    background: var(--primary-light); border-radius: var(--radius-sm); padding: 8px 12px;
}
.customer-selected__info { display: flex; flex-direction: column; gap: 2px; }
.customer-selected__name { font-weight: 700; font-size: 14px; }
.customer-selected__balance { font-size: 13px; color: var(--primary); font-weight: 600; }

/* Credit payment button */
.btn--credit { background: var(--warn-light); color: #854d0e; grid-column: span 2; }
.btn--credit:hover:not(:disabled) { background: #fef08a; }
.btn--credit:disabled { opacity: .35; cursor: not-allowed; }

/* ===== CREDIT BADGES ===== */
.credit-badge {
    display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 99px;
    font-size: 13px; font-weight: 700;
}
.credit-badge--ok   { background: var(--success-light); color: #065f46; }
.credit-badge--zero { background: var(--border-light); color: var(--text-muted); }
.credit-badge--lg   { font-size: 16px; padding: 8px 18px; }

/* Credit form quick buttons */
.credit-quick-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.credit-quick-btns .btn { flex: 1; min-width: 60px; }

/* Transaction badges */
.badge--topup  { background: var(--success-light); color: #065f46; }
.badge--usage  { background: var(--danger-light); color: #991b1b; }
.badge--refund { background: var(--warn-light); color: #92400e; }
.badge--debt   { background: #fee2e2; color: #991b1b; border: 1px dashed #f87171; }
.tx-positive   { color: var(--success); font-weight: 700; }
.tx-negative   { color: var(--danger); font-weight: 700; }

/* Info table (customer detail) */
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table td { padding: 10px 4px; border-bottom: 1px solid var(--border-light); }
.info-table td:first-child { color: var(--text-muted); font-weight: 600; width: 130px; font-size: 13px; }

/* ===== RESPONSIVE (iPad landscape) ===== */
@media (max-width: 768px) {
    .pos-cart { width: 280px; min-width: 260px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .pos-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .pos-grid--shake { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .pos-grid--protein { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .pos-card { padding: 12px 12px 10px; border-radius: 14px; }
    .pos-card__avatar { width: 36px; height: 36px; font-size: 15px; border-radius: 10px; }
    .pos-card__price-badge { font-size: 12px; padding: 5px 10px; }
    .admin-sidebar { width: 64px; }
    .admin-main { padding: 20px 16px; }
    .sidebar-logo span:last-child { display: none; }
    .sidebar-link { font-size: 0; padding: 12px; justify-content: center; }
    .sidebar-link::first-letter { font-size: 18px; }
    .sidebar-logo { justify-content: center; padding: 16px 8px; }
    .sidebar-logo span:first-child { font-size: 22px; }
    .sidebar-logo__img { width: 40px; }
}

@media (max-width: 600px) {
    .pos-main { flex-direction: column; }
    .pos-cart { width: 100%; min-width: unset; border-left: none; border-top: 1px solid var(--border); max-height: 50vh; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================================
   Admin — podtitulek + badge + sdílené komponenty
   ================================================================ */
.admin-subtitle {
    margin-top: 4px; font-size: 13px; color: var(--text-muted);
    font-weight: 500; letter-spacing: .01em;
}

.sidebar-link {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.sidebar-badge {
    background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 99px; min-width: 22px; text-align: center;
    line-height: 1.4;
}

.admin-panel {
    background: var(--surface); border-radius: var(--radius); padding: 22px;
    box-shadow: var(--shadow); border: 1px solid var(--border-light);
    margin-bottom: 20px;
}
.admin-panel__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 18px;
}
.admin-panel__title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.admin-panel__meta  { font-size: 13px; color: var(--text-muted); }
.admin-panel__meta strong { color: var(--text); font-weight: 700; }
.admin-panel__link {
    font-size: 13px; color: var(--primary); font-weight: 600; text-decoration: none;
}
.admin-panel__link:hover { color: var(--primary-dark); }
.admin-panel__empty { color: var(--text-muted); font-size: 14px; padding: 12px 0; }

.admin-section__hint {
    color: var(--text-muted); font-size: 13px; margin-bottom: 18px;
}

/* ================================================================
   Dashboard — KPI karty
   ================================================================ */
.kpi-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; margin-bottom: 22px;
}
.kpi-card {
    background: var(--surface); border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow); border: 1px solid var(--border-light);
    display: flex; flex-direction: column; gap: 10px; position: relative;
    overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi-card__head {
    display: flex; align-items: center; justify-content: space-between;
}
.kpi-card__label {
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .06em;
}
.kpi-card__icon {
    font-size: 20px; opacity: .85;
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--border-light);
}
.kpi-card__value {
    font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--text);
    line-height: 1.1;
}
.kpi-card__value small { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.kpi-card__foot {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-muted);
}
.kpi-card__hint { color: var(--text-light); }

.profit-card__meta {
    display: flex; flex-wrap: wrap; gap: 8px;
    font-size: 12px; color: var(--text-muted);
}
.profit-card__meta span {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 9px;
    background: var(--border-light);
    border-radius: 999px;
}
.profit-card__meta strong { color: var(--text); font-weight: 700; }

.profit-period-switcher {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.profit-period-switcher__btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 58px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    transition: all var(--transition);
}
.profit-period-switcher__btn:hover {
    border-color: var(--text-light);
    background: var(--border-light);
    color: var(--text);
}
.profit-period-switcher__btn.is-active {
    background: var(--primary-light);
    border-color: rgba(99, 102, 241, .25);
    color: var(--primary-dark);
}

.profit-range-form {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end;
}
.profit-range-form__field {
    display: flex; flex-direction: column; gap: 4px; flex: 1 1 120px;
    font-size: 11px; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .05em;
}
.profit-range-form__field .form-input {
    min-width: 0;
}

.kpi-card--accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: transparent; color: #fff;
}
.kpi-card--accent .kpi-card__label,
.kpi-card--accent .kpi-card__value,
.kpi-card--accent .kpi-card__value small,
.kpi-card--accent .kpi-card__foot,
.kpi-card--accent .kpi-card__hint { color: #fff; }
.kpi-card--accent .kpi-card__label { opacity: .85; }
.kpi-card--accent .kpi-card__hint  { opacity: .75; }
.kpi-card--accent .kpi-card__icon  { background: rgba(255,255,255,.2); }

.trend {
    display: inline-flex; align-items: center; gap: 4px;
    font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 99px;
}
.trend--up   { background: var(--success-light); color: #065f46; }
.trend--down { background: var(--danger-light);  color: #991b1b; }
.trend--flat { background: var(--border-light);  color: var(--text-muted); }
.kpi-card--accent .trend--up   { background: rgba(255,255,255,.2); color: #fff; }
.kpi-card--accent .trend--down { background: rgba(255,255,255,.2); color: #fff; }
.kpi-card--accent .trend--flat { background: rgba(255,255,255,.15); color: #fff; }

/* ================================================================
   Dashboard — dvojsloupec, týdenní graf a top-položky
   ================================================================ */
.dashboard-two-col {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px;
    margin-bottom: 20px;
}

.week-chart {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
    height: 240px; align-items: end;
}
.week-chart__bar {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    height: 100%;
}
.week-chart__value {
    font-size: 11px; font-weight: 700; color: var(--text-muted);
    white-space: nowrap;
}
.week-chart__col {
    flex: 1; width: 100%; background: var(--border-light);
    border-radius: var(--radius-xs); display: flex; align-items: flex-end;
    overflow: hidden; min-height: 4px;
}
.week-chart__fill {
    width: 100%; background: linear-gradient(180deg, #818cf8 0%, var(--primary) 100%);
    border-radius: var(--radius-xs);
    transition: height .4s cubic-bezier(.22,.61,.36,1);
    min-height: 2px;
}
.week-chart__bar--today .week-chart__fill {
    background: linear-gradient(180deg, #34d399 0%, var(--success) 100%);
}
.week-chart__bar--today .week-chart__value { color: var(--success); }
.week-chart__label {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    font-size: 11px; color: var(--text-muted); line-height: 1.2;
}
.week-chart__label strong { font-size: 12px; color: var(--text); font-weight: 700; }
.week-chart__label small  { font-size: 10px; color: var(--text-light); }
.week-chart__bar--today .week-chart__label strong { color: var(--success); }

.top-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.top-items__row {
    display: grid; grid-template-columns: 1fr auto;
    grid-template-rows: auto auto; gap: 4px 10px; align-items: center;
}
.top-items__info {
    grid-column: 1 / 2; display: flex; align-items: center; gap: 8px;
    font-size: 13px; min-width: 0;
}
.top-items__rank {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--primary-light); color: var(--primary);
    font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.top-items__name {
    font-weight: 600; color: var(--text); flex: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.top-items__qty {
    font-size: 12px; font-weight: 700; color: var(--text-muted); flex-shrink: 0;
}
.top-items__revenue {
    grid-column: 2 / 3; grid-row: 1 / 3;
    font-size: 13px; font-weight: 700; color: var(--text);
    white-space: nowrap;
}
.top-items__bar {
    grid-column: 1 / 2; grid-row: 2 / 3;
    height: 6px; background: var(--border-light); border-radius: 99px; overflow: hidden;
}
.top-items__fill {
    height: 100%; background: linear-gradient(90deg, var(--primary) 0%, #a5b4fc 100%);
    border-radius: 99px; transition: width .4s ease;
}

/* ================================================================
   K objednání — taby, search, karty, bottom bar
   ================================================================ */
.to-order-main { padding-bottom: 120px; /* prostor pro fixed bottom bar */ }

.to-order-tabs {
    display: flex; gap: 4px; margin-bottom: 20px;
    background: var(--surface); padding: 4px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-light); box-shadow: var(--shadow);
    width: fit-content;
}
.to-order-tab {
    background: transparent; border: none; cursor: pointer;
    padding: 10px 18px; border-radius: var(--radius-xs);
    font-size: 14px; font-weight: 600; color: var(--text-muted);
    transition: all var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.to-order-tab:hover { background: var(--border-light); color: var(--text); }
.to-order-tab.is-active {
    background: var(--primary); color: #fff;
}
.tab-count {
    background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
    padding: 2px 7px; border-radius: 99px; min-width: 20px; text-align: center;
}
.tab-count--info { background: var(--primary-light); color: var(--primary); }
.to-order-tab.is-active .tab-count--info {
    background: rgba(255,255,255,.25); color: #fff;
}

.to-order-panel { display: none; }
.to-order-panel.is-active { display: block; }

.to-order-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.to-order-toolbar__right { display: flex; gap: 8px; flex-wrap: wrap; }

.search-box {
    position: relative; flex: 1; min-width: 240px; max-width: 420px;
}
.search-box__icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-light); pointer-events: none;
}
.search-box__input {
    width: 100%; padding: 12px 40px 12px 40px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; background: var(--surface); color: var(--text);
    transition: all var(--transition);
}
.search-box__input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.search-box__clear {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--border-light); color: var(--text-muted);
    border: none; font-size: 16px; line-height: 1; cursor: pointer;
    display: none;
}
.search-box__clear:hover { background: var(--border); color: var(--text); }

.to-order-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

/* Karta je <label> obklopující skrytý checkbox */
.to-order-card {
    background: var(--surface); border-radius: var(--radius); padding: 18px;
    box-shadow: var(--shadow); border: 2px solid var(--border-light);
    display: grid; grid-template-columns: auto 1fr; gap: 14px;
    border-left: 4px solid var(--warn);
    cursor: pointer; transition: all var(--transition);
    position: relative;
}
.to-order-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.to-order-card--empty { border-left-color: var(--danger); }

.to-order-card__select {
    display: flex; align-items: flex-start; padding-top: 2px;
}
.to-order-card__select input[type="checkbox"] {
    position: absolute; opacity: 0; pointer-events: none;
}
.to-order-card__check-visual {
    width: 22px; height: 22px; border: 2px solid var(--border);
    border-radius: 6px; background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition); flex-shrink: 0;
}
.to-order-card__check-visual::after {
    content: ''; width: 6px; height: 11px;
    border: solid #fff; border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) translate(-1px, -1px);
    opacity: 0;
}
.to-order-card:has(input:checked) {
    border-color: var(--primary); border-left-color: var(--primary);
    background: linear-gradient(0deg, var(--primary-light) 0%, var(--surface) 60%);
}
.to-order-card:has(input:checked) .to-order-card__check-visual {
    background: var(--primary); border-color: var(--primary);
}
.to-order-card:has(input:checked) .to-order-card__check-visual::after { opacity: 1; }

.to-order-card__body {
    display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.to-order-card__head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
}
.to-order-card__name {
    flex: 1; min-width: 0;
    font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.01em;
    line-height: 1.25; margin: 0; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.to-order-state {
    --state-accent: #c87a00;
    --state-border: rgba(245, 158, 11, 0.22);
    --state-ring: rgba(245, 158, 11, 0.18);
    --state-soft: #fff6db;
    --state-title: #8a4b00;
    --state-detail: #ad6a00;
    flex-shrink: 0;
    min-width: 128px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--state-border);
    background: linear-gradient(135deg, var(--state-soft) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}
.to-order-state--danger {
    --state-accent: #dc2626;
    --state-border: rgba(239, 68, 68, 0.18);
    --state-ring: rgba(239, 68, 68, 0.16);
    --state-soft: #fff1f1;
    --state-title: #991b1b;
    --state-detail: #b42318;
}
.to-order-state__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 10px; font-weight: 700; color: var(--state-accent);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.to-order-state__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px var(--state-ring);
}
.to-order-state__title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--state-title);
}
.to-order-state__detail {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--state-detail);
}
.to-order-card__stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.to-order-stat {
    display: flex; flex-direction: column; gap: 2px;
    background: var(--bg); border-radius: var(--radius-sm); padding: 10px;
}
.to-order-stat__label {
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .04em;
}
.to-order-stat__value {
    font-size: 17px; font-weight: 800; color: var(--text); line-height: 1.2;
}
.to-order-stat__value small { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.to-order-stat__value--muted  { color: var(--text-muted); }
.to-order-stat__value--danger { color: var(--danger); }

.to-order-bar {
    height: 6px; background: var(--border-light); border-radius: 99px; overflow: hidden;
}
.to-order-bar__fill {
    height: 100%; background: linear-gradient(90deg, var(--danger) 0%, var(--warn) 100%);
    border-radius: 99px;
}

.to-order-card__foot {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 10px; flex-wrap: wrap; padding-top: 10px;
    border-top: 1px dashed var(--border);
}
.to-order-pack {
    display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 120px;
}
.to-order-pack__label {
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .04em;
}
.to-order-pack__value { font-size: 13px; font-weight: 600; color: var(--text); }
.to-order-pack__value small { color: var(--text-muted); font-weight: 500; }

.to-order-qty {
    display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
.to-order-qty__label {
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .04em;
}
.to-order-qty__controls {
    display: flex; align-items: center; gap: 4px;
    background: var(--bg); border-radius: var(--radius-sm); padding: 3px;
    border: 1.5px solid var(--border);
}
.to-order-qty__controls .qty-btn {
    width: 28px; height: 28px; border-radius: var(--radius-xs);
    border: none; background: var(--surface); color: var(--text);
    font-size: 16px; font-weight: 700; cursor: pointer; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.to-order-qty__controls .qty-btn:hover { background: var(--primary); color: #fff; }
.to-order-qty__input {
    width: 52px; text-align: center; border: none; background: transparent;
    font-size: 15px; font-weight: 700; color: var(--text);
    padding: 4px 2px;
    -moz-appearance: textfield;
}
.to-order-qty__input::-webkit-outer-spin-button,
.to-order-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}
.to-order-qty__input:focus { outline: none; }
.to-order-qty__hint { font-size: 11px; color: var(--text-light); }

.badge--warn   { background: var(--warn-light);   color: #92400e; }

.to-order-empty-search {
    text-align: center; padding: 40px 20px;
    color: var(--text-muted); background: var(--surface);
    border-radius: var(--radius); border: 1px dashed var(--border);
}

/* ---------- Fixed bottom bar ---------- */
.to-order-bottom-bar {
    position: fixed; left: 240px; right: 0; bottom: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0,0,0,.06);
    padding: 14px 32px; display: flex; align-items: center; gap: 16px;
    z-index: 50; backdrop-filter: blur(8px);
    animation: slideUpBar .25s ease;
}
@keyframes slideUpBar {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.to-order-bottom-bar__info {
    font-size: 14px; color: var(--text-muted);
}
.to-order-bottom-bar__info strong {
    color: var(--primary); font-size: 20px; font-weight: 800; margin-right: 4px;
}
.to-order-bottom-bar__note { flex: 1; max-width: 400px; }
.form-input--sm {
    padding: 9px 12px; font-size: 13px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--border); width: 100%;
    background: var(--surface); color: var(--text);
}
.form-input--sm:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

/* ---------- Objednáno — karty ---------- */
.to-order-ordered-list {
    display: flex; flex-direction: column; gap: 14px;
}
.ordered-card {
    background: var(--surface); border-radius: var(--radius); padding: 18px 20px;
    box-shadow: var(--shadow); border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary);
}
.ordered-card__head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 10px; flex-wrap: wrap;
}
.ordered-card__title {
    font-size: 16px; font-weight: 800; color: var(--text); margin: 0 0 4px;
    letter-spacing: -.01em;
}
.ordered-card__meta {
    font-size: 12px; color: var(--text-muted); margin: 0;
}
.ordered-card__actions {
    display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.ordered-card__note {
    background: var(--bg); padding: 8px 12px; border-radius: var(--radius-sm);
    font-size: 13px; color: var(--text-muted); font-style: italic;
    margin: 0 0 12px; border-left: 3px solid var(--border);
}
.ordered-items { list-style: none; padding: 0; margin: 0; }
.ordered-items__row {
    display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr;
    gap: 12px; align-items: center;
    padding: 10px 4px; border-top: 1px solid var(--border-light);
    font-size: 13px;
}
.ordered-items__row:first-child { border-top: none; padding-top: 0; }
.ordered-items__name { font-weight: 600; color: var(--text); }
.ordered-items__pack { color: var(--text-muted); font-size: 12px; }
.ordered-items__pack small { color: var(--text-light); }
.ordered-items__qty  { color: var(--text); font-weight: 600; }
.ordered-items__qty strong { color: var(--primary); font-size: 15px; }
.ordered-items__doses { color: var(--text-muted); text-align: right; font-size: 12px; }

/* Prázdný stav */
.empty-state {
    text-align: center; padding: 60px 20px;
    background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--border-light);
}
.empty-state__icon { font-size: 56px; margin-bottom: 12px; }
.empty-state__title { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.empty-state__text  { color: var(--text-muted); margin-bottom: 20px; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1100px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-two-col { grid-template-columns: 1fr; }
    .price-editor__grid,
    .price-editor__grid--sale,
    .price-editor__grid--three {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }
    .to-order-bottom-bar { left: 0; }
    .order-row {
        flex-wrap: wrap;
    }
    .order-row__content {
        flex: 1 1 calc(100% - 290px);
        min-width: 280px;
    }
    .order-row__headline {
        flex-wrap: wrap;
    }
    .order-row__actions {
        margin-left: auto;
    }
    .order-action-form {
        flex: 0 0 auto;
    }
}
@media (max-width: 640px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .price-editor__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
    .price-editor__head small { text-align: left; }
    .price-editor__grid,
    .price-editor__grid--sale,
    .price-editor__grid--three,
    .price-editor__grid--two {
        grid-template-columns: 1fr;
    }
    .conversion-box__row {
        grid-template-columns: 1fr;
    }
    .price-tier-box__head {
        flex-direction: column;
    }
    .price-tier-form {
        grid-template-columns: 1fr;
    }
    .price-tier-form .btn {
        width: 100%;
    }
    .week-chart { height: 180px; }
    .week-chart__value { display: none; }
    .to-order-card__head { flex-direction: column; }
    .to-order-state { width: 100%; min-width: 0; }
    .to-order-card__stats { grid-template-columns: 1fr 1fr; }
    .to-order-card__stats .to-order-stat:nth-child(3) { grid-column: 1 / -1; }
    .to-order-bottom-bar { flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
    .to-order-bottom-bar__note { max-width: none; order: 2; width: 100%; }
    .to-order-bottom-bar__info { order: 1; }
    .to-order-bottom-bar .btn { order: 3; width: 100%; }
    .ordered-items__row { grid-template-columns: 1fr 1fr; }
    .ordered-items__doses { text-align: left; }
    .to-order-tabs { width: 100%; }
    .to-order-tab { flex: 1; justify-content: center; }
    .order-row {
        padding: 12px;
        gap: 10px;
    }
    .order-date-form {
        flex: 1 1 100%;
        min-width: 0;
    }
    .order-row__content {
        flex: 1 1 100%;
    }
    .order-row__headline {
        flex-direction: column;
        align-items: flex-start;
    }
    .order-row__chips,
    .order-row__actions,
    .order-row__total {
        flex: 1 1 100%;
    }
    .order-row__chips {
        justify-content: flex-start;
    }
    .order-row__total {
        text-align: left;
    }
    .order-row__actions {
        margin-left: 0;
    }
    .order-action-form,
    .order-action-btn {
        width: 100%;
    }
    .order-date-form__fields {
        grid-template-columns: minmax(120px, 1fr) 72px;
    }
    .order-date-modal {
        padding: 16px;
    }
    .order-date-modal__dialog {
        width: min(100vw - 20px, 560px);
        padding: 18px;
        border-radius: 22px;
    }
    .order-date-modal__title {
        font-size: 20px;
    }
    .order-date-modal__month {
        font-size: 18px;
    }
    .order-date-modal__day {
        border-radius: 14px;
        font-size: 17px;
    }
}
