/* RestAdmin — тема в стиле fastadoc.ru (яркая): Golos Text, синий + оранжевый, мягкие карточки */
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 700;font-display:swap;src:url(/static/fonts/golos-cyr.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 700;font-display:swap;src:url(/static/fonts/golos-lat-s.woff2) format('woff2');unicode-range:U+0020-007E,U+00A0,U+00AB,U+00B7,U+00BB,U+2010-2015,U+2018-201E,U+2022,U+2026,U+20AC,U+2192}

:root,[data-bs-theme=light]{
  --fd-ink:#21201f; --fd-ink-2:#6b6a68; --fd-line:#ebebeb; --fd-bg-2:#f7f7f5;
  --fd-blue:#0a68f5; --fd-blue-d:#0a4fc2; --fd-blue-l:#eaf1ff; --fd-blue-m:#d6e5ff;
  --fd-orange:#fc5c17; --fd-orange-l:#fff0e9;
  --tblr-font-sans-serif:'Golos Text',-apple-system,'Segoe UI',Roboto,sans-serif;
  --tblr-body-font-family:var(--tblr-font-sans-serif);
  --tblr-primary:#0a68f5; --tblr-primary-rgb:10,104,245; --tblr-primary-fg:#fff;
  --tblr-primary-lt:#eaf1ff; --tblr-primary-lt-rgb:234,241,255;
  --tblr-link-color:#0a68f5; --tblr-link-color-rgb:10,104,245;
  --tblr-link-hover-color:#0a4fc2; --tblr-link-hover-color-rgb:10,79,194;
  --tblr-body-color:#21201f; --tblr-body-bg:#f7f7f5;
  --tblr-border-color:#ebebeb; --tblr-border-radius:12px; --tblr-border-radius-lg:16px;
  --tblr-success:#16a34a; --tblr-success-rgb:22,163,74;
  --tblr-success-lt:#dcfce7; --tblr-success-lt-rgb:220,252,231;
}

body{
  font-family:var(--tblr-font-sans-serif); font-size:15px; color:var(--fd-ink);
  background:
    radial-gradient(900px 420px at 12% -80px,#d6e5ff 0%,rgba(214,229,255,0) 70%),
    radial-gradient(700px 380px at 92% -60px,#ffe3d4 0%,rgba(255,227,212,0) 70%),
    linear-gradient(#f4f6ff 0,#f7f7f5 360px) !important;
}
h1,h2,h3,h4,.card-title{font-family:var(--tblr-font-sans-serif); font-weight:650; letter-spacing:-.01em}

/* Шапка: плавающая белая «таблетка» */
.page>.navbar{
  background:#fff !important; margin:14px auto 6px; max-width:1180px; width:calc(100% - 24px);
  border:1px solid var(--fd-line) !important; border-radius:999px; padding:6px 10px;
  box-shadow:0 10px 30px -14px rgba(10,40,120,.28),0 2px 6px rgba(10,40,120,.06);
  position:sticky; top:10px; z-index:50;
}
.navbar-brand{
  font-weight:700; font-size:19px; letter-spacing:-.02em; color:var(--fd-ink) !important;
  display:flex; align-items:center; gap:10px; padding-left:6px;
}
.navbar-brand::before{
  content:"R"; display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:10px; color:#fff; font-weight:700; font-size:17px;
  background:linear-gradient(135deg,#0a68f5,#4a8dff); box-shadow:0 6px 14px -4px rgba(10,104,245,.55);
}
.navbar .nav-link{
  color:var(--fd-ink-2) !important; font-weight:500; font-size:14.5px;
  border-radius:999px; padding:8px 14px !important; transition:background .15s,color .15s;
}
.navbar .nav-link:hover{background:var(--fd-blue-l); color:var(--fd-blue) !important}
.navbar .nav-link.active{background:var(--fd-blue-l); color:var(--fd-blue) !important}

/* Карточки */
.card{
  border:1px solid var(--fd-line); border-radius:16px; background:#fff;
  box-shadow:0 12px 32px -20px rgba(10,40,120,.25),0 1px 3px rgba(10,40,120,.05);
}
.card-header{border-bottom:1px solid var(--fd-line); background:transparent}
.page-body{margin-top:18px}

/* Кнопки */
.btn{font-family:inherit; font-weight:600; border-radius:12px; padding:.55rem 1.1rem; transition:transform .12s,box-shadow .15s,background .15s}
.btn:active{transform:translateY(1px)}
.btn-primary{
  background:var(--fd-blue); border-color:var(--fd-blue); color:#fff;
  box-shadow:0 8px 20px -8px rgba(10,104,245,.65);
}
.btn-primary:hover,.btn-primary:focus{background:var(--fd-blue-d); border-color:var(--fd-blue-d); box-shadow:0 10px 24px -8px rgba(10,104,245,.75)}
.btn-outline-primary{color:var(--fd-blue); border-color:var(--fd-blue-m); background:#fff}
.btn-outline-primary:hover{background:var(--fd-blue); border-color:var(--fd-blue); color:#fff}
.btn-success,.btn-warning{border-radius:12px}
.btn-warning{background:var(--fd-orange); border-color:var(--fd-orange); color:#fff; box-shadow:0 8px 20px -8px rgba(252,92,23,.65)}
.btn-lg{padding:.8rem 1.4rem; font-size:16px}

/* Поля */
.form-control,.form-select{
  border:1.5px solid #c9d3e6; border-radius:12px; background:#fff; min-height:42px; font-family:inherit;
  transition:border-color .15s,box-shadow .15s;
}
.form-control:focus,.form-select:focus{border-color:var(--fd-blue); box-shadow:0 0 0 4px rgba(10,104,245,.14)}
.form-label{font-weight:600; font-size:13.5px; color:var(--fd-ink)}

/* Таблицы */
.table-responsive{border:1px solid var(--fd-line); border-radius:14px; background:#fff; overflow:auto}
.table{margin-bottom:0; --tblr-table-bg:transparent}
.table thead th{
  background:var(--fd-bg-2) !important; color:var(--fd-ink-2); font-size:12px; font-weight:650;
  text-transform:uppercase; letter-spacing:.04em; border-bottom:1px solid var(--fd-line);
}
.table tbody tr:hover>*{background:#fafcff}
.table-bordered>:not(caption)>*>*{border-color:var(--fd-line)}
.sort-th:hover{background-color:var(--fd-blue-l) !important}
.bg-success-lt{background:#dcfce7 !important; color:#14532d !important; font-weight:650}

/* Бейджи, алерты */
.badge{border-radius:999px; font-weight:600; padding:.35em .7em}
.alert{border-radius:12px; border:1px solid var(--fd-line)}
.alert-danger{background:#fff1ef; border-color:#ffd5cf; color:#b42318}
.alert-success{background:#ecfdf3; border-color:#b7ebcb; color:#14532d}

/* Страница входа */
.page-center{
  background:
    radial-gradient(800px 460px at 15% -60px,#d6e5ff 0%,rgba(214,229,255,0) 70%),
    radial-gradient(700px 420px at 90% -40px,#ffe3d4 0%,rgba(255,227,212,0) 70%),
    #f7f7f5 !important;
}
.page-center .card{border-radius:22px; box-shadow:0 30px 70px -30px rgba(10,60,160,.35),0 2px 8px rgba(10,40,120,.06)}
.page-center h2{font-size:26px; font-weight:700; letter-spacing:-.02em}
.page-center h2::before{
  content:"R"; display:flex; align-items:center; justify-content:center; margin:0 auto 14px;
  width:52px; height:52px; border-radius:16px; color:#fff; font-size:26px; font-weight:700;
  background:linear-gradient(135deg,#0a68f5,#4a8dff); box-shadow:0 12px 26px -8px rgba(10,104,245,.6);
}

@media (max-width:767px){
  .page>.navbar{border-radius:22px; top:6px; margin-top:8px}
  .navbar-nav{padding:8px 0}
}

.text-muted,.page-center .text-muted{color:#4b5563 !important}
.page-center .text-muted.text-center.mb-4{font-size:15px}
.page-center .card-body{padding:34px 32px}
.page-center .container-tight{padding-top:12px;padding-bottom:12px}
.form-control::placeholder{color:#9aa3b2}

/* Страница заказа: аккордеон категорий, поля количества */
.category-card{
  border:1px solid var(--fd-line) !important; border-radius:14px !important; margin-bottom:10px;
  overflow:hidden; background:#fff; box-shadow:0 8px 22px -16px rgba(10,40,120,.28);
}
.category-toggle{
  min-height:52px; font-weight:650; letter-spacing:.02em; color:var(--fd-ink);
  background:#fff; border:0 !important; transition:background .15s,color .15s;
}
.category-toggle:hover{background:var(--fd-blue-l)}
.category-toggle.open{background:var(--fd-blue-l) !important; color:var(--fd-blue-d)}
.category-toggle.has-filled{background:#dcfce7 !important; color:#14532d}
.category-card .cat-progress{color:#4b5563 !important; font-weight:500}
.category-toggle .cat-chevron{font-size:1.5rem; color:var(--fd-blue)}
.category-body{border-top:1px solid var(--fd-line)}
.qty-input{border:1.5px solid #c9d3e6 !important; border-radius:10px !important; font-weight:600}
.qty-input:focus{border-color:var(--fd-blue) !important; box-shadow:0 0 0 4px rgba(10,104,245,.16) !important}
.qty-btn{border-radius:10px !important; background:var(--fd-blue-l); color:var(--fd-blue); border:1.5px solid var(--fd-blue-m); font-weight:700}
.qty-btn:hover{background:var(--fd-blue); color:#fff; border-color:var(--fd-blue)}
tr.filled{background:#ecfdf3 !important}
tr.filled>*{background:transparent !important}
.navbar-toggler{border:1.5px solid #c9d3e6; border-radius:12px; padding:6px 9px}
.navbar-toggler-icon{filter:brightness(.35) contrast(1.6)}
.page-body .container-xl{padding-left:16px !important; padding-right:16px !important}

/* Контраст: шапка таблицы, единицы, нули */
.qty-table thead th{color:#374151 !important; background:#eef2fb !important}
.qty-table td:nth-child(2){color:#374151; font-weight:500; vertical-align:middle}
.qty-table td{vertical-align:middle}
.qty-input{color:var(--fd-ink) !important}
.qty-input[value="0"],.qty-input:placeholder-shown{color:#6b7280 !important}
.qty-btn{background:#d6e5ff !important; border-color:#9bbcf5 !important}
tr.filled{background:#d9f7e4 !important}
.navbar-toggler{border-color:#8da2c9; border-width:2px}
.btn-primary.btn-lg{box-shadow:0 12px 26px -10px rgba(10,104,245,.8)}

/* Неподвижный фон (псевдоэлемент: background-attachment:fixed глючит на мобильных) */
html,body{background-color:#f7f7f5}
body{background:none !important}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(900px 420px at 12% -80px,#d6e5ff 0%,rgba(214,229,255,0) 70%),
    radial-gradient(700px 380px at 92% -60px,#ffe3d4 0%,rgba(255,227,212,0) 70%),
    linear-gradient(#f4f6ff 0,#f7f7f5 360px)}
.page,.page-wrapper{background:transparent}
@media (max-width:767px){
  .page-body .container-xl,.navbar .container-xl{padding-left:6px !important;padding-right:6px !important}
  .page-body{margin-top:10px}
  .page-body .card-body{padding:8px 4px}
  .qty-table td:nth-child(3){padding-right:12px !important}
}

/* Страница ресторана: поиск в шапке, инфо-меню, плавающая кнопка */
.order-nav .container-xl{flex-wrap:wrap}
.order-nav .order-search{flex:1 1 auto;margin:0;padding:0;min-width:0}
.order-nav .order-search::before{display:none}
.order-nav #prod-search{font-size:16px !important;width:100%;border-radius:999px;padding-left:16px}
.order-nav .navbar-toggler{margin-left:10px;flex:0 0 auto}
.order-nav .order-info{font-size:14px}
.order-nav .navbar-collapse{flex-basis:100%}
@media (max-width:767px){
  input,select,textarea,.form-control,.form-select{font-size:16px !important}
  .float-submit{position:fixed;left:8px;right:8px;bottom:10px;width:auto !important;z-index:60;margin:0 !important;
    box-shadow:0 12px 30px -8px rgba(10,104,245,.85)}
  .page-body{padding-bottom:84px}
}

.order-nav .order-search{position:relative}
.order-nav #prod-search{padding-right:40px}
.order-nav #prod-search::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
#prod-clear{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:30px;height:30px;border:0;border-radius:50%;
  background:#e5e9f2;color:#374151;display:none;align-items:center;justify-content:center;padding:0;font-size:16px}

.save-toast{position:fixed;left:50%;transform:translateX(-50%);bottom:84px;z-index:70;max-width:calc(100% - 24px);
  background:#000;color:#fff;padding:10px 18px;border-radius:14px;font-size:15px;font-weight:500;text-align:center;
  box-shadow:0 8px 24px rgba(0,0,0,.35);transition:opacity .4s;pointer-events:none}
.save-toast.hide{opacity:0}

/* Столбец «Количество»: заголовок по центру */
.qty-table th:nth-child(3){text-align:center !important}
/* Степпер: -/+ на едином фоне, поле цифры белое без скруглений */
.qty-stepper{background:#d6e5ff;border-radius:12px;overflow:hidden;align-items:stretch}
.qty-stepper .qty-btn{background:transparent !important;border:0 !important;border-radius:0 !important;box-shadow:none;color:var(--fd-blue)}
.qty-stepper .qty-btn:hover{background:rgba(10,104,245,.14) !important;color:var(--fd-blue)}
.qty-stepper .qty-input{border-radius:0 !important;border:0 !important;border-top:1.5px solid #9bbcf5 !important;border-bottom:1.5px solid #9bbcf5 !important;background:#fff}
.qty-stepper .qty-input:focus{box-shadow:none !important;border-color:var(--fd-blue) !important}
/* Шапка страницы ресторана по ширине таблицы товаров */
.order-nav{width:calc(100% - 12px) !important;max-width:1308px !important;margin:10px auto 6px !important;padding:6px 6px 6px 6px !important;border-radius:14px !important;top:6px}
.order-nav .container-xl{padding-left:0 !important;padding-right:0 !important}
.order-nav .navbar-toggler{border:0 !important;padding:2px 2px 2px 6px;margin-left:8px;margin-right:0}
.order-nav #prod-search{border-radius:10px}

/* Названия товаров: плотнее межстрочный интервал при переносе */
.qty-table td:first-child{line-height:1.15}
.qty-table td:first-child{font-size:calc(1.225rem - 1px) !important;line-height:1.05 !important}

/* Отступ слева у названий, категорий и заголовка «Продукт» */
.qty-table td:first-child,.qty-table th:first-child{padding-left:14px !important}
.category-toggle{padding-left:14px !important}
/* Шире кнопки − и + (за счёт колонки названия) */
.qty-stepper{max-width:168px !important}
.qty-stepper .qty-btn{min-width:48px !important;padding-left:10px !important;padding-right:10px !important}
.qty-table td:first-child,.qty-table th:first-child{padding-left:10px !important}
.category-toggle{padding-left:10px !important}

/* Выбранные позиции: светло-голубой вместо зелёного */
.category-toggle.has-filled{background:#d6e5ff !important;color:#0a3d91 !important}
tr.filled,tr.filled>td{background:#eaf2ff !important}
.bg-success-lt{background:#d6e5ff !important;color:#0a3d91 !important}
.category-toggle.has-filled{background:var(--fd-blue-l) !important;color:var(--fd-blue-d) !important}
tr.filled,tr.filled>td{background:var(--fd-blue-l) !important}
.bg-success-lt{background:var(--fd-blue-l) !important;color:var(--fd-blue-d) !important}

/* Названия категорий: синий шрифт */
.category-toggle,.category-toggle.open,.category-toggle.has-filled,.category-toggle *{color:var(--fd-blue) !important}

/* Кнопка «Показать только выбранное» + тени кнопок без обрезки (мобильная версия) */
.float-filter{display:none}
@media (max-width:767px){
  .float-submit{bottom:22px !important;box-shadow:0 8px 18px -6px rgba(10,104,245,.7) !important}
  .float-filter{display:block;position:fixed;left:8px;right:8px;bottom:84px;z-index:60;width:auto;
    background:#fff;color:var(--fd-blue);border:1px solid #d6e5ff;border-radius:12px;font-weight:700;
    box-shadow:0 8px 18px -6px rgba(10,104,245,.45)}
  .float-filter:active,.float-filter:focus{background:#fff;color:var(--fd-blue)}
  .page-body{padding-bottom:150px}
  .save-toast{bottom:150px}
  body.only-sel-on:not(.searching) .category-card:not(.exp) .qty-table tr:not(.filled){display:none !important}
  body.only-sel-on:not(.searching) .category-card.no-sel{display:none !important}
  }

/* Кнопки в шапке (десктоп) */
body.only-sel-on:not(.searching) .category-card:not(.exp) .qty-table tr:not(.filled){display:none !important}
body.only-sel-on:not(.searching) .category-card.no-sel{display:none !important}
.order-actions{display:none}
@media (min-width:768px){
  .order-actions{display:flex;gap:10px;margin-left:12px;flex:0 0 auto}
  .order-actions .btn{white-space:nowrap;font-weight:700;border-radius:10px;box-shadow:0 6px 14px -6px rgba(10,104,245,.55)}
  .order-actions .js-only-sel{background:#fff;color:var(--fd-blue);border:1px solid #d6e5ff}
}
@media (min-width:768px){ .float-submit{display:none !important} }

/* Названия категорий: чёрный шрифт */
.category-toggle,.category-toggle.open,.category-toggle.has-filled,.category-toggle *{color:#000 !important}

/* Шапка поиска: контур и тень как у белой кнопки */
.order-nav{border:1px solid #d6e5ff !important;box-shadow:0 8px 18px -6px rgba(10,104,245,.45) !important;background:#fff !important}

/* Фиксированные колонки: ширина не зависит от того, какие строки видны */
.qty-table{table-layout:fixed;width:100%}
.qty-table td:nth-child(2),.qty-table th:nth-child(2){width:52px !important;white-space:nowrap;text-align:left;padding-left:4px !important;padding-right:4px !important}
.qty-table td:nth-child(3),.qty-table th:nth-child(3){width:192px !important}
.qty-table td:first-child{overflow-wrap:anywhere}

/* Лёгкие иконки вместо шрифта Tabler Icons (было ~460 КБ) */
.ti{display:inline-block;width:1em;height:1em;background:currentColor;vertical-align:-.125em;-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
.ti-chevron-down{--i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 9l6 6l6 -6%22/%3E%3C/svg%3E")}
.ti-x{--i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M18 6l-12 12%22/%3E%3Cpath d=%22M6 6l12 12%22/%3E%3C/svg%3E")}
.ti-plus{--i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 5l0 14%22/%3E%3Cpath d=%22M5 12l14 0%22/%3E%3C/svg%3E")}
.ti-minus{--i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12l14 0%22/%3E%3C/svg%3E")}
.ti-info-circle{--i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0%22/%3E%3Cpath d=%22M12 9h.01%22/%3E%3Cpath d=%22M11 12h1v4h1%22/%3E%3C/svg%3E")}

/* Мобильная: степпер правее (прижат к правому краю с небольшим отступом) */
@media (max-width:767px){
  .qty-table td:nth-child(3){padding-right:5px !important;padding-left:0 !important}
  .qty-table .qty-stepper{margin-left:auto}
}

/* Уже поле с цифрой; колонка количества уже, ед. изм. ближе к кнопкам */
.qty-stepper{max-width:none !important;width:max-content}
.qty-stepper .qty-input{flex:0 0 40px !important;width:40px !important;min-width:0 !important;padding-left:2px !important;padding-right:2px !important}
.qty-table td:nth-child(3),.qty-table th:nth-child(3){width:150px !important}
.qty-table td:nth-child(2),.qty-table th:nth-child(2){text-align:right !important;padding-right:10px !important}

/* Без скруглений у списка товаров в категориях (первая строка выглядела кривой) */
.category-body,.category-body.table-responsive,.category-body .qty-table,.category-body .qty-table tr,.category-body .qty-table td,.category-body .qty-table th{border-radius:0 !important}
.category-body.table-responsive{border-top:0 !important}

/* Выбранные строки: почти как hover */
tr.filled,tr.filled>td{background:#f3f7ff !important}

/* Выбранные строки и категории с выбранными: очень светлый, как hover */
tr.filled,tr.filled>td{background:#f8fbff !important}
.category-toggle.has-filled{background:#f8fbff !important}

/* Hover категории: как у строк таблицы */
.category-toggle:hover,.category-toggle.open:hover,.category-toggle.has-filled:hover{background:#fafcff !important}

/* Поле количества с кратностью: только кнопки */
.qty-input[readonly]{cursor:default;caret-color:transparent;background:#fff}

/* Страница сортировки */
.sort-list{list-style:none;margin:0;padding:0}
.sort-list li{display:flex;align-items:center;gap:10px;padding:10px 12px;border-top:1px solid var(--fd-line);background:#fff;touch-action:manipulation}
.sort-cat-h{display:flex;align-items:center;gap:10px;background:var(--fd-blue-l);color:#000}
.drag-h{cursor:grab;color:#9aa4b2;font-size:1.4rem;line-height:1;padding:4px 6px;touch-action:none;user-select:none}
.sort-cat .sortable-ghost{opacity:.4;background:#eaf1ff}
.sort-status{position:sticky;top:8px;z-index:50;display:none;width:max-content;margin:0 0 8px auto;background:#000;color:#fff;padding:6px 14px;border-radius:14px;font-size:14px}
.sort-status.show{display:block}

.mv-btn{width:40px;height:40px;border:0;border-radius:10px;background:#fff;color:var(--fd-blue);font-size:1.3rem;line-height:1;padding:0;
  box-shadow:0 4px 10px -4px rgba(10,104,245,.45);touch-action:manipulation;margin-left:6px}
.mv-btn:active{background:#eaf1ff}
.sort-cat-h .ms-auto{margin-right:6px}

/* Метки: фильтр и две нижние кнопки */
body:not(.searching) .tag-hide,body:not(.searching) .tag-empty{display:none !important}
.tag-panel{position:fixed;z-index:80;display:flex;flex-wrap:wrap;gap:8px;background:#fff;border:1px solid #d6e5ff;border-radius:14px;padding:10px;
  box-shadow:0 8px 18px -6px rgba(10,104,245,.45);max-width:calc(100% - 16px)}
.tag-chip{border:1px solid #d6e5ff;background:#fff;color:#000;border-radius:999px;padding:8px 14px;font-weight:600;touch-action:manipulation}
.tag-chip span{color:#8a94a6;font-weight:500;margin-left:4px}
.tag-chip.on{background:#d6e5ff;border-color:var(--fd-blue)}
.tag-reset{color:var(--fd-blue)}
.js-tag-btn.tag-on{background:#eaf1ff !important}
.float-filter-row{display:none}
@media (max-width:767px){
  .float-filter-row{display:flex;gap:8px;position:fixed;left:8px;right:8px;bottom:84px;z-index:60}
  .float-filter-btn{flex:1 1 0;min-width:0;background:#fff;color:var(--fd-blue);border:1px solid #d6e5ff;border-radius:12px;font-weight:700;
    font-size:.95rem;padding:.55rem .4rem;line-height:1.15;white-space:normal;box-shadow:0 8px 18px -6px rgba(10,104,245,.45)}
  .float-filter-btn:active,.float-filter-btn:focus{background:#fff;color:var(--fd-blue)}
  .float-filter-btn.tag-on{background:#eaf1ff}
  .tag-panel{left:8px;right:8px;bottom:150px}
}
@media (min-width:768px){
  .tag-panel{top:76px;right:16px}
  .order-actions .js-tag-btn{background:#fff;color:var(--fd-blue);border:1px solid #d6e5ff}
}

/* Цена победителя под ед. изм. (только админ) */
.win-price{font-size:10px;line-height:1.1;color:#8a94a6;font-weight:500;margin-top:1px;white-space:nowrap}

/* Мобильная панель: три синие кнопки-иконки в одну строку */
.float-ic .ic{width:26px;height:26px;display:block;margin:0 auto}
.float-ic .ic-on{display:none}
.float-ic.is-on .ic-off{display:none}
.float-ic.is-on .ic-on{display:block}
@media (max-width:767px){
  .float-filter-row{bottom:14px !important;gap:10px !important;left:8px !important;right:8px !important}
  .float-ic{flex:1 1 0;min-width:0;height:54px;border:0 !important;border-radius:14px !important;color:#fff !important;
    background:linear-gradient(135deg,#0a68f5,#4a8dff) !important;padding:0 !important;display:flex;align-items:center;justify-content:center;
    box-shadow:0 8px 18px -6px rgba(10,104,245,.7) !important;touch-action:manipulation}
  .float-ic:active,.float-ic:focus{color:#fff !important;background:var(--fd-blue-d) !important}
  .float-ic.tag-on,.float-ic.is-on{background:var(--fd-blue-d) !important}
  .page-body{padding-bottom:96px !important}
  .tag-panel{bottom:84px !important}
  .save-toast{bottom:84px !important}
}

/* В режиме корзины (только выбранное) подсветку выбранных не показываем */
body.only-sel-on tr.filled,body.only-sel-on tr.filled>td{background:#fff !important}
body.only-sel-on .category-toggle.has-filled{background:#fff !important}
body.only-sel-on .category-toggle.has-filled:hover,body.only-sel-on .category-toggle.open.has-filled{background:#fff !important}

/* Уведомление «не внесли изменений»: большой значок сверху */
.save-toast .toast-ico{font-size:44px;line-height:1.1;margin-bottom:4px}

/* Нижние кнопки-иконки: графитово-серые вместо синих */
@media (max-width:767px){
  .float-ic{background:linear-gradient(135deg,#3a3f47,#555b65) !important;color:#fff !important;
    box-shadow:0 8px 18px -6px rgba(40,44,52,.7) !important}
  .float-ic:active,.float-ic:focus{background:#23272d !important;color:#fff !important}
  .float-ic.tag-on,.float-ic.is-on{background:#23272d !important}
}

/* Нижние кнопки: цвет как у уведомления (чёрный) */
@media (max-width:767px){
  .float-ic{background:#000 !important;color:#fff !important;box-shadow:0 8px 24px rgba(0,0,0,.35) !important}
  .float-ic:active,.float-ic:focus{background:#000 !important;color:#fff !important}
  .float-ic.tag-on,.float-ic.is-on{background:#2a2a2a !important}
}

/* Значки-эмодзи и счётчик у корзины */
.float-ic .emo{font-size:26px;line-height:1;font-style:normal}
.cart-count{font-size:20px;font-weight:700;line-height:1;color:#fff;margin-left:8px;min-width:1ch}

/* Эмодзи на светлой подложке, чтобы корзина и плюс не сливались с чёрным */
.float-ic .emo{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;
  background:#fff;font-size:22px;line-height:1}
.float-ic .emo.ic-on{background:#fff}
.cart-count{margin-left:10px}

/* Исправление: скрытая иконка не должна показываться; корзина читаемее на светлом круге */
.float-ic .emo.ic-on{display:none}
.float-ic.is-on .emo.ic-off{display:none}
.float-ic.is-on .emo.ic-on{display:inline-flex}
.float-ic .emo.ic-off{background:#ffd54a;filter:none}

/* Возврат к белым значкам без кругов; счётчик рядом с корзиной */
.float-ic .ic{width:26px;height:26px;display:block}
.float-ic .ic-off,.float-ic .ic-on{display:flex;align-items:center}
.float-ic .ic-on{display:none}
.float-ic.is-on .ic-off{display:none}
.float-ic.is-on .ic-on{display:flex}

/* Строки вне экрана не рисуются, пока не подъехали к видимой области (поиск, метки и счётчики работают по DOM как раньше) */
.qty-table tbody tr{content-visibility:auto;contain-intrinsic-size:auto 62px}

.win-price.win-none{color:#c2c8d2}

/* Логотип без надписи слева от поиска */
.order-nav .order-logo{flex:0 0 auto;margin:0 10px 0 0;padding:0;display:flex;align-items:center}
.order-nav .order-logo img{width:34px;height:34px;display:block}

/* Логотип без надписи: убираем старый квадрат «R» у .navbar-brand */
.navbar-brand.site-logo::before,.navbar-brand.order-logo::before{display:none !important;content:none !important}
.navbar-brand.site-logo{padding:0 !important;margin:0 !important;display:flex;align-items:center}
.navbar-brand.site-logo img{width:34px;height:34px;display:block}

/* Шапка остальных страниц: как у магазина, без поиска (логотип слева, «i» справа) */
.plain-nav .navbar-toggler{margin-left:auto !important}
.plain-nav .navbar-nav{padding:8px 0 4px}

/* Меню: подсветка текущей страницы и выход отдельным цветом */
.navbar .nav-link.active{background:var(--fd-blue-l);color:var(--fd-blue) !important}
.navbar .nav-link.nav-logout{color:#8a94a6 !important}

/* Подпись включённого фильтра рядом с иконкой (мелко) */
.float-ic .tag-cap{font-size:11px;font-weight:700;line-height:1;margin-left:8px;color:#fff;text-transform:uppercase;letter-spacing:.02em;max-width:64px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.float-ic .tag-cap:empty{display:none}

/* Подпись фильтра: по центру кнопки вместе со значком, с отступами */
.float-ic{padding:0 8px !important;gap:6px;justify-content:center}
.float-ic .tag-cap{margin-left:0 !important;max-width:calc(100% - 40px);font-size:10px}

/* Подпись фильтра вплотную к значку */
.float-ic.js-tag-btn{gap:4px !important}
.float-ic.js-tag-btn .tag-cap{margin-left:0 !important}

/* Значок фильтра без автополей: подпись вплотную */
.float-ic .ic{margin-left:0 !important;margin-right:0 !important}

/* Выравнивание: полоса прокрутки всегда на месте (шапка одной ширины на всех страницах) */
html{overflow-y:scroll}
/* Прайсы и настройки: таблицы по ширине экрана, цены в одну строку */
#price-compare-table td,#price-compare-table th,.table-sm td,.table-sm th{padding:8px 6px;font-size:14px}
#price-compare-table td:nth-child(n+3),#price-compare-table th:nth-child(n+3){white-space:nowrap}
#price-compare-table td:nth-child(2),#price-compare-table th:nth-child(2){width:1%;white-space:nowrap}
@media (max-width:576px){
  .table-sm td,.table-sm th{padding:7px 4px;font-size:12px}
  #price-compare-table td,#price-compare-table th{padding:8px 5px;font-size:13px}
}

/* Настройки: таблица партий влезает в экран (перебиваем стили Tabler) */
@media (max-width:576px){
  .table-responsive > table.table-sm > thead > tr > th,
  .table-responsive > table.table-sm > tbody > tr > td{padding:7px 4px !important;font-size:11.5px !important;line-height:1.25}
  .table-responsive > table.table-sm th{white-space:normal}
}

@media (max-width:576px){
  .table-responsive > table.table-sm > thead > tr > th,
  .table-responsive > table.table-sm > tbody > tr > td{padding:6px 3px !important;font-size:10.5px !important;letter-spacing:-.01em}
  .table-responsive > table.table-sm th{font-size:9.5px !important}
}

/* ===== Десктоп = как мобильная версия: нижняя панель чёрных значков, панель меток, уведомление ===== */
@media (min-width:768px){
  .order-actions{display:none !important}
  .float-submit{display:none !important}
  .float-filter-row{display:flex !important;gap:10px;position:fixed;left:50%;transform:translateX(-50%);bottom:14px;width:420px;max-width:calc(100% - 16px);z-index:60}
  .float-ic{flex:1 1 0;min-width:0;height:54px;border:0 !important;border-radius:14px !important;background:#000 !important;color:#fff !important;
    padding:0 8px !important;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(0,0,0,.35) !important;cursor:pointer}
  .float-ic:hover,.float-ic:active,.float-ic:focus{background:#000 !important;color:#fff !important}
  .float-ic.tag-on,.float-ic.is-on{background:#2a2a2a !important}
  .page-body{padding-bottom:96px !important}
  .tag-panel{top:auto !important;right:auto !important;left:50% !important;transform:translateX(-50%);bottom:84px !important;width:420px;max-width:calc(100% - 16px)}
  .save-toast{bottom:84px !important}
  .page>.navbar{border-radius:22px;top:6px;margin-top:8px}
}

/* Сумма заказа под количеством (мелко, как подпись метки) */
.cart-nums{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;line-height:1.05;margin-left:8px;min-width:0}
.cart-nums .cart-count{margin:0 !important;position:static !important}
.cart-sum{font-size:10px;font-weight:700;opacity:.85;white-space:nowrap;margin-top:2px}
.cart-sum:empty{display:none}

/* Десктоп: пункты меню в шапке, «Заказ» с подменю ресторанов */
.desk-menu{display:none}
@media (min-width:768px){
  .desk-menu{display:flex;align-items:center;gap:4px;margin-left:12px;flex:0 0 auto}
  .desk-menu .nav-link{padding:8px 12px;border-radius:10px;font-weight:600;color:#1d273b;white-space:nowrap}
  .desk-menu .nav-link:hover{background:#f3f7ff}
  .desk-menu .dropdown-toggle::after{margin-left:6px}
  .desk-menu .dropdown-menu{border-radius:12px;border:1px solid #d6e5ff;box-shadow:0 10px 24px rgba(10,104,245,.18);padding:6px;min-width:230px;max-height:70vh;overflow:auto}
  .desk-menu .dropdown-item{border-radius:8px;padding:8px 12px;white-space:normal}
  .desk-menu .dropdown-item:hover{background:#f3f7ff}
  .desk-menu .dropdown-item.active,.desk-menu .dropdown-item:active{background:#f3f7ff;color:#0a68f5}
  .plain-nav .navbar-toggler,.plain-nav .navbar-collapse{display:none !important}
  .plain-nav .desk-menu{margin-left:auto}
  .order-nav .navbar-collapse .navbar-nav{display:none !important}
  .order-nav .order-search{max-width:460px}
  .order-nav .desk-menu{margin-left:auto}
}
@media (max-width:767px){.desk-menu{display:none !important}}

/* Прайсы: закреплённая первая строка (шапка) под навигацией */
.table-responsive:has(#price-compare-table){overflow:visible !important}
#price-compare-table thead th{position:sticky;top:70px;z-index:5;background:#eef2fb !important;box-shadow:0 1px 0 #d0d7e6}

/* Прайсы: при прокрутке вверх страница притягивается к шапке таблицы */
html:has(#price-compare-table){scroll-snap-type:y proximity}
#price-compare-table{scroll-snap-align:start;scroll-margin-top:70px}

/* Прайсы: заголовок и загрузка файла в шапке страницы */
.plain-nav .nav-tools{display:flex;align-items:center;gap:10px;margin-left:10px;min-width:0}
.plain-nav .nav-title{font-size:18px;font-weight:700;color:#1b2a4a;line-height:1}
.plain-nav .nav-upload{margin:0}
.plain-nav .nav-file-btn{margin:0;padding:6px 12px;font-size:13px;font-weight:600;color:#0a68f5;background:#fff;border:1.5px solid #c9d3e6;border-radius:10px;cursor:pointer;white-space:nowrap}
.plain-nav .nav-file-btn:hover{background:#eef4ff}
@media (max-width:576px){.plain-nav .nav-tools{gap:8px;margin-left:8px}.plain-nav .nav-title{font-size:16px}.plain-nav .nav-file-btn{padding:5px 9px;font-size:12px}}
/* заголовок таблицы закреплён под шапкой, а шапка теперь выше блока с заголовком */

/* Прайсы: таблица прокручивается внутри блока; шапка и колонка «Продукт» закреплены */
html:has(#price-compare-table){scroll-snap-type:none}
.table-responsive:has(#price-compare-table){overflow:auto !important;max-height:calc(100vh - 96px);-webkit-overflow-scrolling:touch}
#price-compare-table{border-collapse:separate;border-spacing:0;border-top:1px solid #d0d7e6;border-left:1px solid #d0d7e6}
#price-compare-table th,#price-compare-table td{border:0 !important;border-right:1px solid #d0d7e6 !important;border-bottom:1px solid #d0d7e6 !important}
#price-compare-table thead th{position:sticky;top:0 !important;z-index:5;background:#eef2fb !important}
#price-compare-table tbody tr{background:#fff}
#price-compare-table th:first-child,#price-compare-table td:first-child{position:sticky;left:0;z-index:4}
#price-compare-table tbody td:first-child{background:inherit}
#price-compare-table thead th:first-child{z-index:7}

/* Прайсы: ячейки компактнее; победитель — обычный шрифт, слегка зелёный фон */
#price-compare-table td.bg-success-lt{background:#eaf6ee !important;color:inherit !important;font-weight:400 !important}
#price-compare-table th,#price-compare-table td{padding:4px 6px !important;line-height:1.3 !important}
@media (max-width:576px){#price-compare-table th,#price-compare-table td{padding:3px 5px !important}}

/* Прайсы: одинаковая ширина колонок поставщиков, полное имя — по наведению (title) */
#price-compare-table{table-layout:fixed;width:100%;min-width:calc(150px + 54px + var(--n) * 96px)}
#price-compare-table col.c-unit{width:54px}
#price-compare-table col.c-sup{width:96px}
#price-compare-table thead th:nth-child(n+3){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:default}
#price-compare-table th:nth-child(n+3),#price-compare-table td:nth-child(n+3){width:auto;text-align:right}
@media (min-width:768px){
  #price-compare-table{min-width:calc(260px + 54px + var(--n) * 120px)}
  #price-compare-table col.c-sup{width:120px}
}

/* Прайсы: строки категорий — мелкие, ненавязчивые */
#price-compare-table tbody tr.cat-row td{background:#f3f5fa !important;color:#6b6a68;font-size:11px !important;font-weight:600;letter-spacing:.04em;text-transform:uppercase;padding:2px 6px !important;line-height:1.2 !important;text-align:left !important;position:sticky;left:0;z-index:4}

#price-compare-table tbody tr.cat-row td{position:static !important}
#price-compare-table tbody tr.cat-row .cat-lbl{position:sticky;left:6px;display:inline-block}

/* Прайсы: красным только название товара без цен; наведение подсвечивает всю строку, включая название */
#price-compare-table tbody tr.no-price td:first-child{color:#c0392b;font-weight:600}
#price-compare-table tbody tr:not(.cat-row):hover > td{background:#eaf1ff !important}
#price-compare-table tbody tr:not(.cat-row):hover > td.bg-success-lt{background:#d6edde !important}

/* Прайсы: наведение мягче */
#price-compare-table tbody tr:not(.cat-row):hover > td{background:#f5f8fd !important}
#price-compare-table tbody tr:not(.cat-row):hover > td.bg-success-lt{background:#e1f1e7 !important}

/* Прайсы: ничья — тёмно-зелёный; легенда */
#price-compare-table td.bg-success-lt.bg-tie{background:#a9dbbb !important}
#price-compare-table tbody tr:not(.cat-row):hover > td.bg-success-lt.bg-tie{background:#9fd4b1 !important}
.price-legend{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;font-size:12px;color:#6b6a68;margin:0 0 8px;line-height:1.3}
.price-legend b{color:#21201f;font-weight:600}
.price-legend .lg{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px;border:1px solid rgba(0,0,0,.08)}
.price-legend .lg-win{background:#eaf6ee}
.price-legend .lg-tie{background:#a9dbbb}
.price-legend .lg-pin{background:#eaf6ee;box-shadow:inset 0 0 0 1px #6fbf8a}
.price-legend .lg-red{color:#c0392b;font-weight:600;margin-right:-8px}

/* Прайсы: легенда — отдельные плашки, число в бейдже */
.price-legend{gap:6px 8px}
.price-legend .lg-item{display:inline-flex;align-items:center;gap:6px;padding:3px 4px 3px 9px;border:1px solid #e3e8f3;border-radius:999px;background:#fff;color:#6b6a68;white-space:nowrap}
.price-legend .lg-item .lg{margin-right:0}
.price-legend .lg-item:not(:has(.lg-n)){padding-right:10px}
.price-legend .lg-red{color:#c0392b;font-weight:600;margin:0}
.price-legend .lg-n{font-style:normal;font-weight:600;font-size:11px;color:#21201f;background:#eef2fb;border-radius:999px;padding:1px 7px}
.price-legend .lg-n-red{color:#c0392b;background:#fdecec}

/* Прайсы: фильтр по колонкам поставщиков, как в Excel */
#price-compare-table thead th:nth-child(n+3){padding-right:22px !important}
#price-compare-table button.flt{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:16px;height:16px;padding:0;border:1px solid #b8c2d8;border-radius:3px;background:#fff;cursor:pointer}
#price-compare-table button.flt::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-30%);border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid #5a6a85}
#price-compare-table button.flt:hover{background:#eef2fb}
#price-compare-table button.flt.on{background:#0a68f5;border-color:#0a68f5}
#price-compare-table button.flt.on::after{border-top-color:#fff}
#flt-menu{display:none;position:fixed;z-index:10000;min-width:170px;background:#fff;border:1px solid #d0d7e6;border-radius:8px;box-shadow:0 8px 22px rgba(20,30,60,.18);padding:8px 10px;font-size:13px}
#flt-menu .flt-t{font-weight:600;color:#21201f;margin-bottom:4px;padding-bottom:4px;border-bottom:1px solid #eef0f6}
#flt-menu label{display:flex;align-items:center;gap:6px;margin:0;padding:3px 0;cursor:pointer;white-space:nowrap}
#flt-menu label em{margin-left:auto;padding-left:14px;font-style:normal;color:#8a93a6;font-size:12px}
#flt-menu .flt-reset{margin-top:6px;width:100%;border:1px solid #d0d7e6;background:#f7f9fd;border-radius:6px;padding:3px 0;font-size:12px;color:#445;cursor:pointer}

/* Прайсы: стрелка сортирует по победителю; повторный клик — наоборот */
#flt-menu{display:none !important}
#price-compare-table button.flt.up::after{transform:translate(-50%,-70%) rotate(180deg)}

/* Прайсы: правка цены двойным кликом (админ) */
#price-compare-table td[data-s]{cursor:cell;touch-action:manipulation;-webkit-user-select:none;user-select:none}
#price-compare-table td.editing{padding:0 !important;background:#fff !important;box-shadow:inset 0 0 0 2px #0a68f5}
#price-compare-table td .pe-in{width:100%;min-width:0;box-sizing:border-box;border:0;outline:0;background:transparent;text-align:right;font:inherit;padding:4px 6px;-webkit-user-select:text;user-select:text}
#price-compare-table td.pe-busy{opacity:.55}
#price-compare-table td.pe-ok{animation:peok 1.3s ease-out}
@keyframes peok{0%{box-shadow:inset 0 0 0 2px #2fb344}100%{box-shadow:inset 0 0 0 2px rgba(47,179,68,0)}}
@media (max-width:576px){#price-compare-table td .pe-in{font-size:16px !important;padding:2px 5px}}

/* Compact receipt-like cart counter */
.cart-nums{display:flex;flex-direction:column;align-items:center;gap:1px;line-height:1.05}
.cart-count{font-size:14px !important;font-weight:600;line-height:1.05;margin-left:0 !important}
.cart-sum{font-size:9px !important;font-weight:400;line-height:1;white-space:nowrap}

/* Desktop: compact table, name close to price/stepper */
@media (min-width: 768px) {
  .category-body .qty-table, .qty-table { width: 640px !important; max-width: 100% !important; margin-left: 0 !important; margin-right: auto !important; }
}

/* Desktop: whole order block centered on the same axis as the floating buttons */
@media (min-width: 768px) {
  .category-card { width: 640px !important; max-width: calc(100% - 16px) !important; margin-left: auto !important; margin-right: auto !important; }
  .category-body .qty-table, .qty-table { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
}

/* Order page: remove outer white card around the whole list */
.page-body .card:has(#order-form){background:transparent !important;border:0 !important;box-shadow:none !important;border-radius:0 !important}
.page-body .card:has(#order-form) > .card-body{padding:0 !important}

/* Doubled left padding for text (product names, category titles) */
.qty-table td:first-child,.qty-table th:first-child{padding-left:20px !important}
.category-toggle{padding-left:20px !important}

/* All pages: no outer white card, doubled left padding for text */
.page-body > .container-xl > .card,.page-body .container-xl > .card{background:transparent !important;border:0 !important;box-shadow:none !important;border-radius:0 !important}
.page-body .container-xl > .card > .card-body{padding-left:20px !important;padding-right:0 !important}
.table td:first-child,.table th:first-child{padding-left:20px !important}

/* Page title (h1) lives in the header */
.plain-nav h1.nav-title{margin:0;font-size:18px;font-weight:700;color:#1b2a4a;line-height:1;white-space:nowrap}
@media (max-width:576px){.plain-nav h1.nav-title{font-size:16px}}
/* Prices legend: white badges, darker text */
.price-legend .lg-item{background:#fff !important;color:#21201f !important;border-color:#c9d3e6 !important;font-weight:500}
.price-legend .lg-item .lg-red{color:#c0392b !important}

/* Table headers: dark graphite, white text, everywhere */
.table thead th,.table thead td,.qty-table thead th,table thead th,
.table > thead > tr > th{background:#2f343b !important;color:#fff !important;border-color:#2f343b !important}
.table thead th a,.table thead th .sort,.table thead th i{color:#fff !important}

/* Bolder filter arrows */
#price-compare-table button.flt{width:20px;height:20px;border:1.5px solid #8a96b0;border-radius:4px}
#price-compare-table button.flt::after{transform:translate(-50%,-25%);border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid #21201f}
#price-compare-table button.flt.on::after{border-top-color:#fff}
.sort-th{font-weight:800}

/* Table headers v2: graphite everywhere incl. prices; clean hover */
#price-compare-table thead th,#price-compare-table thead th:first-child{background:#2f343b !important;color:#fff !important;box-shadow:none !important;border-right:1px solid #444b54 !important;border-bottom:1px solid #2f343b !important}
#price-compare-table{border-top:1px solid #2f343b !important;border-left:1px solid #2f343b !important}
#price-compare-table thead th:hover{background:#3b4149 !important}
.table thead th:hover,.qty-table thead th:hover,.sort-th:hover{background:#3b4149 !important;color:#fff !important}
.sort-th:hover{background-color:#3b4149 !important}
#price-compare-table thead th b,#price-compare-table thead th span{color:#fff !important}
#price-compare-table button.flt{background:#fff !important}

/* Bolder sort/filter arrows v2 */
.sort-th .sort-ico{display:inline-block;vertical-align:-3px;margin-left:4px;color:#fff}
#price-compare-table button.flt{width:24px !important;height:24px !important;border:2px solid #21201f !important;border-radius:5px !important}
#price-compare-table button.flt::after{border-left:7px solid transparent !important;border-right:7px solid transparent !important;border-top:10px solid #000 !important;transform:translate(-50%,-30%) !important}
#price-compare-table button.flt.up::after{transform:translate(-50%,-70%) rotate(180deg) !important}
#price-compare-table button.flt.on{background:#0a68f5 !important;border-color:#fff !important}
#price-compare-table button.flt.on::after{border-top-color:#fff !important}
#price-compare-table thead th:nth-child(n+3){padding-right:30px !important}

/* Prices: sort icon same as Orders */
#price-compare-table button.flt{width:30px !important;height:24px !important;border:0 !important;border-radius:5px !important;background:transparent !important;color:#fff !important;display:flex;align-items:center;justify-content:center;right:2px !important}
#price-compare-table button.flt::after{display:none !important;content:none !important}
#price-compare-table button.flt:hover{background:rgba(255,255,255,.18) !important}
#price-compare-table button.flt.on{background:#0a68f5 !important;border:0 !important}
#price-compare-table button.flt .sort-ico{display:block;color:#fff}
#price-compare-table thead th:nth-child(n+3){padding-right:36px !important}

/* Supplier + price live in the unit column (same font as the unit) */
.unit-offer{display:none}
@media (min-width: 768px) {
  .unit-plain{display:none}
  .unit-offer{display:inline}
  .qty-offer-price,.qty-offer-supplier{display:none !important}
  .qty-offer{display:block !important;min-width:0 !important}
  .qty-table td:nth-child(2),.qty-table th:nth-child(2){width:210px !important;text-align:left !important;white-space:nowrap !important;padding-left:6px !important;padding-right:6px !important;overflow:hidden;text-overflow:ellipsis}
  .category-card{width:780px !important}
}

/* Unit column (supplier price / unit): slightly lighter text */
.qty-table td:nth-child(2){color:#6b7280 !important;font-weight:400 !important}

/* Supplier on its own second line, lighter */
.u-sup{display:block;font-size:11px;color:#9aa1ad;line-height:1.2;margin-top:1px}
.u-pw{color:#6b7280}

/* Desktop: product name and price on one line (no wrapping, no fixed column split) */
@media (min-width: 768px) {
  .category-card{width:fit-content !important;min-width:640px;max-width:calc(100% - 16px) !important}
  .qty-table{table-layout:auto !important;width:auto !important;min-width:100% !important}
  .qty-table td:first-child{white-space:nowrap !important;overflow-wrap:normal !important;width:1% !important;padding-right:14px !important}
  .qty-table td:nth-child(2),.qty-table th:nth-child(2){width:auto !important;white-space:nowrap !important}
  .qty-table td:nth-child(3),.qty-table th:nth-child(3){width:150px !important}
}

/* Product name on order page: slightly smaller (was calc(1.225rem - 1px) ~ 18.6px) */
.qty-table td:first-child{font-size:17px !important}

/* Cart button: sum has the same font as the count */
.cart-sum{font-size:14px !important;font-weight:600 !important;opacity:1 !important;line-height:1.05 !important;margin-top:1px !important}

/* Prices: round refresh button pinned to the right edge of the legend row */
.price-legend{width:100%}
.price-legend .price-refresh{margin-left:auto;flex:0 0 auto;width:34px;height:34px;border-radius:50%;border:1.5px solid #c9d3e6;background:#fff;color:#21201f;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;transition:background .15s,transform .3s}
.price-legend .price-refresh:hover{background:#eef2fb}
.price-legend .price-refresh:active{transform:rotate(180deg)}

/* Refresh button: icon only (no round cover), spins while loading */
.price-legend .price-refresh{width:34px !important;height:34px !important;border:0 !important;background:transparent !important;border-radius:0 !important;box-shadow:none !important;color:#21201f}
.price-legend .price-refresh:hover{background:transparent !important;color:#0a68f5}
.price-legend .price-refresh:active{transform:none !important}
.price-legend .price-refresh svg{width:24px;height:24px;stroke-width:2.8}
.price-legend .price-refresh.spin svg{animation:price-spin .7s linear infinite}
@keyframes price-spin{to{transform:rotate(360deg)}}

/* Refresh button: a bit smaller */
.price-legend .price-refresh{width:28px !important;height:28px !important}
.price-legend .price-refresh svg{width:19px !important;height:19px !important}

/* No inner scrollbars on tables: the page itself scrolls */
.table-responsive,.table-responsive:has(#price-compare-table),.category-body,.category-body.table-responsive{overflow:visible !important;max-height:none !important}
#price-compare-table thead th{top:72px !important}

/* Prices: table fits the page width, symmetric edges, same outer line on both sides */
.page-body .container-xl > .card > .card-body:has(#price-compare-table){padding-left:20px !important;padding-right:20px !important}
#price-compare-table{min-width:0 !important;width:100% !important;table-layout:fixed;border-right:0}
#price-compare-table col.c-name{width:15% !important}
#price-compare-table col.c-unit{width:52px !important}
#price-compare-table col.c-sup{width:auto !important}
#price-compare-table th:nth-child(n+3),#price-compare-table td:nth-child(n+3){padding-left:3px !important;padding-right:5px !important;font-size:13px}
#price-compare-table thead th:nth-child(n+3){padding-right:30px !important;font-size:12px}
#price-compare-table thead th:last-child{border-right:1px solid #2f343b !important}
#price-compare-table tbody td:last-child{border-right:1px solid #d0d7e6 !important}

/* Logout link: small, plain text under the content (all pages) */
.page-logout{text-align:center;padding:18px 0 28px}
.page-logout a{display:inline-block;font-size:13px;font-weight:500;color:#6b7280;text-decoration:none;background:transparent !important;border:0 !important;box-shadow:none !important;border-radius:0 !important;padding:2px 4px}
.page-logout a:hover{color:#21201f;text-decoration:underline}
.page-body{padding-bottom:96px}


/* Logout confirmation dialog */
.logout-dlg[hidden]{display:none !important}
.logout-dlg{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,.45);padding:16px}
.logout-box{background:#fff;border-radius:22px;padding:28px 28px 22px;max-width:380px;width:100%;box-shadow:0 18px 50px rgba(0,0,0,.25);text-align:center}
.logout-ttl{font-size:18px;font-weight:700;color:#0f172a;margin-bottom:8px}
.logout-txt{font-size:14px;color:#475569;line-height:1.5;margin-bottom:20px}
.logout-btns{display:flex;gap:10px}
.logout-btns > *{flex:1;display:inline-flex;align-items:center;justify-content:center;height:46px;border-radius:50px;font-size:14px;font-weight:600;cursor:pointer;text-decoration:none;border:0}
.logout-no{background:#eef2fb;color:#0f172a}
.logout-no:hover{background:#dfe6f5}
.logout-yes{background:#000;color:#fff !important}
.logout-yes:hover{background:#1e293b}

/* Legend: no white badges, plain markers + text; red item is pure red */
.price-legend .lg-item{background:transparent !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;padding:0 !important;gap:6px;color:#21201f !important;font-weight:500}
.price-legend .lg-item:not(:has(.lg-n)){padding:0 !important}
.price-legend .lg-n{background:transparent !important;padding:0 !important;color:#21201f;font-size:12px;font-weight:700;margin-left:2px}
.price-legend .lg-red,.price-legend .lg-item .lg-red{color:red !important;font-weight:600}
.price-legend .lg-n-red{color:red !important;background:transparent !important}
.price-legend{gap:6px 22px}

/* Products without a price: pure red names (same red as the legend) */
#price-compare-table tbody tr.no-price td:first-child,
#price-compare-table tbody tr.no-price td:first-child *{color:red !important;font-weight:600}

/* Prices: sticky table header sticks exactly to the top line of the window */
#price-compare-table thead th{top:0 !important}
html:has(#price-compare-table){scroll-snap-type:none !important}
#price-compare-table{scroll-margin-top:0 !important}

/* Search clear (x): draw the icon with the mask, never the theme font/display */
#prod-clear{background:#e5e9f2 !important;color:#374151 !important;font-size:15px !important;line-height:1}
#prod-clear i.ti,#prod-clear .ti{display:block !important;width:15px !important;height:15px !important;font-size:15px !important;font-family:inherit}
#prod-clear:hover{background:#d6dcea !important}

/* "Выйти" inside the i panel of order pages */
.info-logout{margin-top:10px;padding-top:10px;border-top:1px solid #e3e8f3}
.info-logout a{font-size:13px;font-weight:500;color:#6b7280;text-decoration:none}
.info-logout a:hover{color:#21201f;text-decoration:underline}

/* Sorting page: small font, compact category cards, two columns, width just above the longest name */
.sort-page{max-width:calc(42ch + 110px);margin:0 auto}
.sort-page > p{font-size:12px;margin-bottom:8px}
.sort-page #cats{display:block}
.sort-page #cats > .sort-cat{display:block;margin:0 0 8px !important}
.sort-page .sort-cat{margin:0 !important}
.sort-page .sort-cat-h{padding:6px 10px;font-size:12px;gap:6px}
.sort-page .sort-cat-h strong{font-size:12px}
.sort-page .sort-cat .card-body,.sort-page .sort-cat ul{font-size:12px}
.sort-page .sort-cat li{font-size:12px;line-height:1.25;padding:3px 8px;display:flex;align-items:center;gap:6px}
.sort-page .drag-h{font-size:14px;padding:2px 4px}
.sort-page .sort-cat .text-muted{font-size:11px}
@media (max-width:700px){.sort-page{max-width:100%}}

/* Settings: minimum order sums per supplier */
.minsum-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px 18px}
.minsum-grid .form-label,.minsum-form .form-label{font-size:13px;margin-bottom:4px}

/* Search clear (x): anchor to the INPUT edge (wrapper has 16px side padding) */
.order-nav .order-search #prod-clear{right:calc(16px + 8px) !important}

/* Home: order total is the first line of the "Ресторан" cell, larger */
.rest-total{display:inline-block;font-size:22px;font-weight:700;line-height:1.2;margin-bottom:4px;white-space:nowrap}

/* Home total: thousands spacing and the rouble sign come from CSS, so copying gives a plain number */
.rest-total .g + .g{margin-left:.28em}
.rest-total::after{content:"\20BD";margin-left:.32em;-webkit-user-select:none;user-select:none}

/* Search: rounded outer cover, rectangular input fitted inside (inner radius = outer radius - padding) */
.order-nav .order-search{background:#fff !important;border:1px solid #d9deea !important;border-radius:16px !important;padding:6px !important;box-shadow:none !important}
.order-nav #prod-search{border-radius:10px !important;padding-left:14px !important;padding-right:44px !important;box-shadow:none !important}
.order-nav .order-search #prod-clear{right:14px !important;border-radius:8px}

/* Prices: each supplier header cell has its own dark colour; long names fade smoothly into the cell colour */
#price-compare-table thead th:nth-child(n+3){--hb:#2f343b;--hc:var(--hb);background:var(--hc) !important;position:sticky;overflow:hidden;white-space:nowrap;text-overflow:clip}
#price-compare-table thead th:nth-child(3){--hb:#1f3a5f}
#price-compare-table thead th:nth-child(4){--hb:#3d2a5c}
#price-compare-table thead th:nth-child(5){--hb:#1f4d3f}
#price-compare-table thead th:nth-child(6){--hb:#5c2a2f}
#price-compare-table thead th:nth-child(7){--hb:#4d3a1c}
#price-compare-table thead th:nth-child(8){--hb:#1b4a55}
#price-compare-table thead th:nth-child(9){--hb:#4a2850}
#price-compare-table thead th:nth-child(10){--hb:#2c4a22}
#price-compare-table thead th:nth-child(11){--hb:#53321f}
#price-compare-table thead th:nth-child(12){--hb:#2a3d66}
#price-compare-table thead th:nth-child(n+3):hover{--hc:color-mix(in srgb,var(--hb),#fff 16%)}
#price-compare-table thead th:nth-child(n+3)::after{content:"";position:absolute;top:0;bottom:0;right:0;width:48px;pointer-events:none;
  background:linear-gradient(to right,transparent,var(--hc) 62%)}
#price-compare-table thead th:nth-child(n+3) .flt{position:absolute;z-index:2}

/* Prices: brighter, saturated header colours (white text keeps contrast >= 4.5:1) */
#price-compare-table thead th:nth-child(3){--hb:#1d4ed8}
#price-compare-table thead th:nth-child(4){--hb:#7e22ce}
#price-compare-table thead th:nth-child(5){--hb:#047857}
#price-compare-table thead th:nth-child(6){--hb:#b91c1c}
#price-compare-table thead th:nth-child(7){--hb:#b45309}
#price-compare-table thead th:nth-child(8){--hb:#0e7490}
#price-compare-table thead th:nth-child(9){--hb:#a21caf}
#price-compare-table thead th:nth-child(10){--hb:#4d7c0f}
#price-compare-table thead th:nth-child(11){--hb:#c2410c}
#price-compare-table thead th:nth-child(12){--hb:#4338ca}

/* Prices: warm tones (amber / orange / red) are spread apart; neighbours never share a hue family */
#price-compare-table thead th:nth-child(3){--hb:#1d4ed8}
#price-compare-table thead th:nth-child(4){--hb:#b45309}
#price-compare-table thead th:nth-child(5){--hb:#047857}
#price-compare-table thead th:nth-child(6){--hb:#7e22ce}
#price-compare-table thead th:nth-child(7){--hb:#b91c1c}
#price-compare-table thead th:nth-child(8){--hb:#0e7490}
#price-compare-table thead th:nth-child(9){--hb:#4d7c0f}
#price-compare-table thead th:nth-child(10){--hb:#a21caf}
#price-compare-table thead th:nth-child(11){--hb:#4338ca}
#price-compare-table thead th:nth-child(12){--hb:#c2410c}

/* Prices: Метро (teal) and Мясо no longer look alike: Мясо is orange, olive moved to the spare slot */
#price-compare-table thead th:nth-child(9){--hb:#c2410c}
#price-compare-table thead th:nth-child(12){--hb:#4d7c0f}

/* Prices: Мясо is red, Голдекс took the orange */
#price-compare-table thead th:nth-child(9){--hb:#b91c1c}
#price-compare-table thead th:nth-child(7){--hb:#c2410c}

/* Prices: Метро is blue, Фадак took the teal */
#price-compare-table thead th:nth-child(8){--hb:#1d4ed8}
#price-compare-table thead th:nth-child(3){--hb:#0e7490}

/* Prices: ИП Мишина = light orange (dark text); the rest are spread so neighbours differ. Мясо stays red, Метро blue */
#price-compare-table thead th:nth-child(3){--hb:#0e7490}
#price-compare-table thead th:nth-child(4){--hb:#7e22ce}
#price-compare-table thead th:nth-child(5){--hb:#047857}
#price-compare-table thead th:nth-child(6){--hb:#be185d}
#price-compare-table thead th:nth-child(7){--hb:#4d7c0f}
#price-compare-table thead th:nth-child(8){--hb:#1d4ed8}
#price-compare-table thead th:nth-child(9){--hb:#b91c1c}
#price-compare-table thead th:nth-child(10){--hb:#fb923c;color:#1f1300 !important}
#price-compare-table thead th:nth-child(10) b,#price-compare-table thead th:nth-child(10) span{color:#1f1300 !important}

/* Prices: colours pinned to supplier NAMES (they no longer move with column order) */
#price-compare-table thead th[title="Метро"]{--hb:#1d4ed8}
#price-compare-table thead th[title="Мельница"]{--hb:#b91c1c}
#price-compare-table thead th[title*="Мишин"]{--hb:#fb923c;color:#1f1300 !important}
#price-compare-table thead th[title*="Мишин"] b,#price-compare-table thead th[title*="Мишин"] span{color:#1f1300 !important}

/* Prices: ИП Мишина header text is white like the others */
#price-compare-table thead th[title*="Мишин"],#price-compare-table thead th[title*="Мишин"] b,#price-compare-table thead th[title*="Мишин"] span{color:#fff !important}

/* Prices: Лима = sky blue (white text keeps contrast ~4.8) */
#price-compare-table thead th[title="Лима"]{--hb:#0284c7}

/* Prices: product column fits the longest name on one line; supplier columns share the rest equally */
@media (min-width:900px){
  #price-compare-table col.c-name{width:250px !important}
  #price-compare-table tbody td:first-child{white-space:nowrap}
}

/* Prices: product column is wider than the longest name (~220px text + paddings); supplier columns share the rest equally */
@media (min-width:900px){
  #price-compare-table col.c-name{width:292px !important}
  #price-compare-table tbody td:first-child{white-space:nowrap;overflow:hidden;text-overflow:clip}
}
/* supplier names: smooth fade into the cell colour; the beginning stays readable (icon keeps its own room) */
#price-compare-table thead th:nth-child(n+3){padding-right:30px !important}
#price-compare-table thead th:nth-child(n+3)::after{width:36px !important;background:linear-gradient(to right,transparent,var(--hc) 78%) !important}

/* Prices: category label - boldest, white on a black plate */
#price-compare-table tbody tr.cat-row td{background:#000 !important;border-color:#000 !important}
#price-compare-table tbody tr.cat-row .cat-lbl{color:#fff !important;font-weight:900 !important;letter-spacing:.08em;font-size:11.5px}

/* Prices: long product names glide left/right on hover (set by script via --shift) */
#price-compare-table tbody td:first-child{position:relative}
#price-compare-table tbody td:first-child .nm{display:inline-block;white-space:nowrap;transform:translateX(0);transition:transform 0s}
#price-compare-table tbody td:first-child:hover .nm.ov{transform:translateX(var(--shift));transition:transform var(--dur,1.4s) ease-in-out}

/* Prices: week-over-week price arrows (demo): green down = cheaper, red up = pricier */
#price-compare-table td .tr{display:inline-block;width:0;height:0;margin-left:4px;vertical-align:1px;border-left:4px solid transparent;border-right:4px solid transparent}
#price-compare-table td .tr-dn{border-top:6px solid #16a34a}
#price-compare-table td .tr-up{border-bottom:6px solid #dc2626}

/* Prices: search lives in the "Продукт" header cell */
#price-compare-table thead th.pr-q-th{position:sticky;cursor:text}
#price-compare-table thead th.pr-q-th .pr-q{display:none;width:calc(100% - 4px);height:24px;border:0;border-radius:6px;background:rgba(255,255,255,.14);color:#fff;font:inherit;font-size:12px;padding:0 8px;outline:none}
#price-compare-table thead th.pr-q-th .pr-q::placeholder{color:rgba(255,255,255,.6)}
#price-compare-table thead th.pr-q-th.open .pr-q,#price-compare-table thead th.pr-q-th.has-q .pr-q{display:block}
#price-compare-table thead th.pr-q-th.open .pr-q-lbl,#price-compare-table thead th.pr-q-th.has-q .pr-q-lbl{display:none}

/* Prices: slide is driven by script on hover (measured at hover time); the old CSS-only rule is disabled */
#price-compare-table tbody td:first-child:hover .nm.ov{transform:none}
#price-compare-table tbody td:first-child{overflow:hidden}
#price-compare-table tbody td:first-child .nm{will-change:transform}

/* Prices: search field is shown right in the header cell (instead of the "Продукт" label), with a clear button */
#price-compare-table thead th.pr-q-th{cursor:text;padding:4px 6px !important}
#price-compare-table thead th.pr-q-th .pr-q-wrap{position:relative;display:block}
#price-compare-table thead th.pr-q-th .pr-q-lbl{display:none !important}
#price-compare-table thead th.pr-q-th .pr-q{display:block !important;width:100%;height:26px;border:0;border-radius:6px;background:rgba(255,255,255,.16);color:#fff;font:inherit;font-size:12px;padding:0 26px 0 9px;outline:none;box-sizing:border-box}
#price-compare-table thead th.pr-q-th .pr-q:focus{background:rgba(255,255,255,.26)}
#price-compare-table thead th.pr-q-th .pr-q::placeholder{color:rgba(255,255,255,.7);text-transform:none}
#price-compare-table thead th.pr-q-th .pr-q-x{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:20px;height:20px;border:0;border-radius:50%;background:rgba(255,255,255,.28);color:#fff;font-size:15px;line-height:18px;padding:0;cursor:pointer}
#price-compare-table thead th.pr-q-th .pr-q-x[hidden]{display:none}
#price-compare-table thead th.pr-q-th .pr-q-x:hover{background:rgba(255,255,255,.5)}

/* Prices: bigger trend arrows */
#price-compare-table td .tr{margin-left:5px;vertical-align:0;border-left-width:6px;border-right-width:6px}
#price-compare-table td .tr-dn{border-top-width:9px}
#price-compare-table td .tr-up{border-bottom-width:9px}

/* Prices: category plates are grey with black bold text */
#price-compare-table tbody tr.cat-row td{background:#d4d7dc !important;border-color:#d4d7dc !important}
#price-compare-table tbody tr.cat-row .cat-lbl{color:#000 !important;font-weight:900 !important}

/* Prices legend: the counter next to "нет цены" is black */
.price-legend .lg-n.lg-n-red,.price-legend .lg-n-red{color:#000 !important}

/* Prices: Excel export button next to the refresh circle */
.price-legend .price-xls{margin-left:auto;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border-radius:50px;background:#000;color:#fff !important;font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}
.price-legend .price-xls:hover{background:#fff;color:#000 !important;box-shadow:inset 0 0 0 1.5px #000}
.price-legend .price-xls + .price-refresh{margin-left:8px !important}

/* Home: per-order Excel button, black pill like on the prices page */
.order-xls{display:inline-flex;align-items:center;gap:6px;margin-top:8px;height:28px;padding:0 14px;border-radius:50px;background:#000;color:#fff !important;font-size:12px;font-weight:600;text-decoration:none !important;white-space:nowrap;transition:background-color .2s,color .2s}
.order-xls:hover{background:#fff;color:#000 !important;box-shadow:inset 0 0 0 1.5px #000}

/* Prices search: darker box, bigger text */
#price-compare-table thead th.pr-q-th .pr-q{height:32px;background:rgba(0,0,0,.55) !important;font-size:15px !important;font-weight:500;padding:0 32px 0 12px !important}
#price-compare-table thead th.pr-q-th .pr-q:focus{background:rgba(0,0,0,.72) !important}
#price-compare-table thead th.pr-q-th .pr-q::placeholder{font-size:15px;color:rgba(255,255,255,.7)}
#price-compare-table thead th.pr-q-th .pr-q-x{width:22px;height:22px;background:rgba(255,255,255,.22)}

/* Home: smaller Excel button */
.order-xls{height:22px !important;padding:0 10px !important;gap:4px !important;font-size:11px !important;margin-top:6px !important}
.order-xls svg{width:11px;height:11px}

/* Home: two Excel buttons (full / short) side by side */
.order-xls-row{display:inline-flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.order-xls-row .order-xls{margin-top:0 !important}

/* "Скопировано": the same black pill as the sorting-page status, top right */
.copy-toast{position:fixed;top:14px;right:16px;z-index:2000;display:none;background:#000;color:#fff;padding:6px 14px;border-radius:14px;font-size:14px;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.copy-toast.show{display:block}

/* Prices: supplier names and "Ед." centred both ways in the header; unit values centred in rows */
#price-compare-table thead th:nth-child(n+2){text-align:center !important;vertical-align:middle !important}
#price-compare-table thead th:nth-child(n+3){padding-left:30px !important;padding-right:30px !important}
#price-compare-table thead th:nth-child(2){padding-left:4px !important;padding-right:4px !important}
#price-compare-table thead th:nth-child(n+3) .flt{top:50% !important;transform:translateY(-50%)}
#price-compare-table tbody td:nth-child(2){text-align:center !important}

/* Prices: keep the icon out of the text: smaller icon in the right corner, text centred in the remaining room, fade stays */
#price-compare-table thead th:nth-child(n+3){padding-left:22px !important;padding-right:22px !important;font-size:12px}
#price-compare-table thead th:nth-child(n+3) .flt{right:3px !important;width:18px !important;height:18px !important}
#price-compare-table thead th:nth-child(n+3) .flt svg{width:13px !important;height:11px !important}
#price-compare-table thead th:nth-child(n+3)::after{display:none !important}

/* Prices: no arrows in supplier cells; the whole header cell is the sort button */
#price-compare-table thead th:nth-child(n+3) .flt{display:none !important}
#price-compare-table thead th:nth-child(n+3){padding-left:8px !important;padding-right:8px !important;cursor:pointer;user-select:none}
/* sorted state: a bright bar under the name and a small arrow in front of it */
#price-compare-table thead th.sorted{box-shadow:inset 0 -3px 0 #fff !important}
#price-compare-table thead th.sorted::before{content:"\2193";margin-right:5px;font-weight:900}
#price-compare-table thead th.sorted.sorted-up::before{content:"\2191"}
