#sec-home-fbs{--hf-line:var(--card-border,#334155);--hf-muted:var(--text-dim,#94a3b8);--hf-card:var(--card-bg,#172334);font-size:14px}
#sec-home-fbs *{box-sizing:border-box}
#sec-home-fbs .hf-location{display:flex;justify-content:space-between;gap:18px;padding:16px 18px;background:var(--card-bg,#172334);border:1px solid var(--card-border,#334155);border-radius:10px;margin-bottom:18px}
.hf-location strong{display:block;margin-top:5px;font-size:15px}
#sec-home-fbs .hf-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
#sec-home-fbs .hf-summary button{text-align:left;padding:16px;background:transparent}
.hf-summary strong{display:block;font-size:25px;line-height:1.25;margin-bottom:5px}
.hf-summary span{font-size:13px}
#sec-home-fbs .hf-summary .is-current{border-color:#3b9dca;background:rgba(62,151,194,.1)}
.hf-workflow{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:12px;color:var(--text-dim,#94a3b8);margin-bottom:22px;line-height:1.5}
.hf-product{display:flex;align-items:center;gap:12px;min-width:220px}
.hf-product-name{line-height:1.45;margin:4px 0;max-width:240px;font-size:13px}
.hf-photo{display:flex;flex:none;width:64px;height:76px;background:#fff;border-radius:6px;overflow:hidden;align-items:center;justify-content:center;color:#555;font-size:12px;text-align:center}
.hf-photo img{width:64px;height:76px;object-fit:contain}
.hf-time{min-width:180px;line-height:1.7;font-size:13px}
#sec-home-fbs .hf-link{border:0;background:transparent;color:#62b8df;padding:5px 0;font-size:12px;display:block;text-align:left}
.hf-ok{color:#83cfa9}
.hf-warn{color:#f7ba75}
.hf-bottom{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-top:18px}
.hf-help{display:inline-flex;align-items:center;justify-content:center;border:1px solid currentColor;width:16px;height:16px;border-radius:50%;font-size:11px;line-height:1;cursor:help;vertical-align:middle;color:var(--text-dim,#94a3b8);flex-shrink:0}
.hf-help:focus-visible{outline:2px solid #62b8df;outline-offset:3px}
#hf-tooltip{position:fixed;z-index:100000;background:#253444;color:#fff;border:1px solid #64748b;box-shadow:0 8px 24px #0005;border-radius:8px;padding:10px 12px;max-width:min(310px,calc(100vw - 20px));font-size:13px;line-height:1.5;pointer-events:none;font-weight:400;white-space:normal}
.hf-header,.hf-toolbar,.hf-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hf-header{justify-content:space-between;margin-bottom:20px}
.hf-header h2{font-size:24px;margin:0 0 7px}
.hf-muted{color:var(--text-dim,#94a3b8);font-size:13px;line-height:1.5}
.hf-badge{border:1px solid var(--card-border,#334155);border-radius:20px;padding:7px 12px;font-size:13px}
.hf-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--card-border,#334155);margin-bottom:18px}
.hf-tabs button{border:0!important;border-radius:0!important;padding:12px 18px!important;background:transparent!important}
.hf-tabs button[aria-selected="true"]{border-bottom:2px solid #3b9dca!important;color:var(--text,#e2e8f0)}
.hf-toolbar{justify-content:space-between;margin-bottom:14px}
#sec-home-fbs button,.hf-dialog button{font:inherit;background:var(--card-bg,#172334);color:inherit;border:1px solid var(--card-border,#334155);border-radius:7px;padding:8px 12px;cursor:pointer}
#sec-home-fbs button:hover,.hf-dialog button:hover{border-color:#3b9dca}
#sec-home-fbs button:disabled,.hf-dialog button:disabled{opacity:.45;cursor:not-allowed}
#sec-home-fbs .hf-primary,.hf-dialog .hf-primary{background:#17688e;border-color:#278ab5;color:#fff}
#sec-home-fbs input:not([type=checkbox]),#sec-home-fbs select,.hf-dialog input:not([type=file]){font:inherit;color:inherit;background:var(--card-bg,#172334);border:1px solid var(--card-border,#334155);padding:9px 12px;border-radius:7px}
#sec-home-fbs input[type=checkbox]{width:17px;height:17px;accent-color:#268bb7;cursor:pointer}
.hf-table-wrap{overflow:auto;border:1px solid var(--card-border,#334155);border-radius:9px}
.hf-table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}
.hf-table th{padding:12px 14px;font-size:12px;font-weight:600;color:var(--text-dim,#94a3b8);background:var(--card-bg,#172334);white-space:nowrap}
.hf-table td{padding:14px;border-top:1px solid var(--card-border,#334155);vertical-align:middle}
.hf-table .hf-title{min-width:190px;max-width:360px;line-height:1.4}
.hf-table .hf-city{min-width:105px;max-width:170px;overflow-wrap:anywhere;line-height:1.4}
.hf-table .hf-actions{min-width:170px}
.hf-table a{color:#62b8df}
.hf-label-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hf-empty{padding:38px 20px;text-align:center;line-height:1.7;color:var(--text-dim,#94a3b8)}
.hf-status{display:inline-block;padding:4px 8px;background:rgba(62,151,194,.12);border-radius:5px;white-space:nowrap;font-size:12px}
.hf-note{padding:12px 14px;border:1px solid var(--card-border,#334155);border-radius:8px;margin:12px 0;line-height:1.55;font-size:13px}
.hf-note:empty{display:none}
.hf-note[data-kind=error]{color:#ffb9a8;border-color:#955041;background:rgba(149,80,65,.1)}
.hf-note[data-kind=success]{color:#98d8bd;border-color:#386e5a}
#sec-home-fbs .hf-dialog{position:fixed;inset:0;margin:auto;transform:none;height:fit-content;background:var(--bg,#111827);color:var(--text,#e2e8f0);border:1px solid var(--card-border,#334155);border-radius:12px;padding:24px;width:min(640px,95vw);max-height:85vh;max-height:85dvh;overflow:auto;font-size:14px;font-weight:400}
.hf-dialog .hf-pack-summary{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}
.hf-pack-summary span{padding:9px 12px;border:1px solid var(--card-border,#334155);border-radius:7px;font-weight:600}
.hf-dialog .hf-pack-list{max-height:180px;overflow:auto;line-height:1.8;margin:12px 0}
.hf-dialog::backdrop{background:rgba(0,0,0,.65)}
.hf-dialog h3{margin:0 0 12px;font-size:20px}
.hf-dialog footer{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}
.hf-dialog p{line-height:1.6}
.hf-dialog .hf-table-wrap{max-height:45vh;margin-top:15px}
.hf-file-help{font-size:13px;color:var(--text-dim,#94a3b8);line-height:1.6}
.hf-select-count{font-size:13px;color:var(--text-dim,#94a3b8)}
.hf-source-notes{display:flex;flex-wrap:wrap;gap:5px 22px;margin:12px 0 18px;font-size:13px;line-height:1.5}
#sec-home-fbs .hf-summary.hf-return-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
.hf-scope{font-size:12px;line-height:1.5;margin-top:8px;color:var(--text-dim,#94a3b8);max-width:270px}
.hf-return-detail{min-width:170px;max-width:260px;overflow-wrap:anywhere;line-height:1.6}
.hf-returns-table .hf-actions{margin-top:10px}
.hf-attention-list{display:grid;gap:12px}
.hf-attention-item{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;gap:18px;align-items:center;border:1px solid var(--card-border,#334155);border-radius:9px;padding:16px;line-height:1.6}
.hf-timeline{list-style:none;padding:0;margin:18px 0}
.hf-timeline li{padding:0 0 20px 18px;border-left:2px solid var(--card-border,#334155);line-height:1.6;overflow-wrap:anywhere}
.hf-field{display:grid;gap:8px;margin:16px 0}
#sec-home-fbs .hf-field textarea{font:inherit;color:inherit;background:var(--card-bg,#172334);border:1px solid var(--card-border,#334155);border-radius:7px;padding:10px;resize:vertical}
@media(min-width:1500px){#sec-home-fbs .hf-summary{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:850px){.hf-attention-item{grid-template-columns:1fr}.hf-tabs button{padding:10px!important}.hf-dialog footer{flex-wrap:wrap}#sec-home-fbs .hf-summary.hf-return-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.hf-header h2{font-size:21px}.hf-toolbar{align-items:stretch}.hf-toolbar>input{width:100%}.hf-table td{padding:11px}#sec-home-fbs .hf-dialog{padding:18px}.hf-badge{font-size:12px}.hf-actions{gap:7px}}
@media(max-width:700px){#sec-home-fbs .hf-summary{grid-template-columns:repeat(2,minmax(0,1fr))}#sec-home-fbs .hf-location{flex-direction:column}.hf-toolbar .hf-actions{width:100%}.hf-toolbar input{min-width:0;width:100%}.hf-workflow{gap:6px 16px}#sec-home-fbs{min-width:0}.hf-table-wrap{max-width:100%}.hf-summary strong{font-size:22px}}

.hf-stepper{display:inline-flex;align-items:center;border:1px solid var(--border,#2b3442);border-radius:8px;overflow:hidden}
.hf-stepper button{width:32px;height:34px;border:0;border-radius:0;background:transparent;font-size:18px;cursor:pointer;color:inherit}
.hf-stepper button:disabled{opacity:.35;cursor:default}
.hf-stepper input{width:64px;height:34px;border:0;border-left:1px solid var(--border,#2b3442);border-right:1px solid var(--border,#2b3442);border-radius:0;text-align:center;font-size:16px;font-weight:700;background:transparent;color:inherit;-moz-appearance:textfield}
.hf-stepper input::-webkit-outer-spin-button,.hf-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.hf-save{margin-left:8px;height:34px}
.hf-title > .hf-link{display:block;margin-top:4px}
.hf-save[hidden]{display:none!important}

.hf-seg{display:inline-flex;border:1px solid var(--border,#2b3442);border-radius:8px;overflow:hidden;margin-left:10px}
.hf-seg button{border:0;border-radius:0;background:transparent;color:inherit;padding:8px 14px;cursor:pointer;font-weight:600;opacity:.7}
.hf-seg button+button{border-left:1px solid var(--border,#2b3442)}
.hf-seg button.hf-on{background:var(--accent,#2563eb);color:#fff;opacity:1}
/* 29.10.2026: колонка «Отправка» закреплена справа — кнопка «Передать в доставку» всегда видна даже при широкой таблице */
#sec-home-fbs .hf-table th:last-child,#sec-home-fbs .hf-table td:last-child{position:sticky;right:0;z-index:1;background:#1a1a2e;box-shadow:-10px 0 12px -8px rgba(0,0,0,.6)}
[data-theme="light"] #sec-home-fbs .hf-table th:last-child,[data-theme="light"] #sec-home-fbs .hf-table td:last-child{background:#fff}

/* 01.11.2026 блоки списка заказов: собрать / короба */
.hf-table tr.hf-grp td{padding:12px 14px;font-size:14px;border-top:2px solid rgba(148,163,184,.35);background:rgba(148,163,184,.08)}
.hf-table tr.hf-grp td strong{margin-right:12px}
.hf-table tr.hf-grp td span{opacity:.8;font-size:13px}
.hf-table tr.hf-grp.todo td{background:rgba(59,130,246,.14);border-top-color:rgba(59,130,246,.6)}
.hf-table tr.hf-grp.pack td{background:rgba(245,158,11,.12);border-top-color:rgba(245,158,11,.6)}
.hf-table tr.hf-grp.go td{background:rgba(34,197,94,.12);border-top-color:rgba(34,197,94,.6)}

/* ===== Заказы v2 (01.11.2026) ===== */
#sec-home-fbs .hf-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:10px;margin-bottom:14px}
#sec-home-fbs .hf-stages button{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;text-align:left;background:transparent}
#sec-home-fbs .hf-stages button span{font-size:14px;font-weight:600}
#sec-home-fbs .hf-stages button strong{font-size:24px;line-height:1}
#sec-home-fbs .hf-stages .is-current{border-color:#3b9dca;background:rgba(62,151,194,.14);box-shadow:inset 0 -3px 0 #3b9dca}
#sec-home-fbs .hf-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
#sec-home-fbs .hf-hint{font-size:13px;color:var(--text-dim,#94a3b8);line-height:1.5;max-width:760px}
#sec-home-fbs #hf-search{width:300px}
.hf-list{border:1px solid var(--card-border,#334155);border-radius:10px;overflow:hidden}
.hf-row{display:grid;grid-template-columns:22px minmax(220px,1fr) 90px 130px 190px 80px;align-items:center;gap:14px;padding:8px 14px;border-top:1px solid var(--card-border,#334155)}
.hf-list>.hf-row:first-child{border-top:0}
.hf-row.is-sel{background:rgba(62,151,194,.10)}
.hf-row.hf-boxrow{grid-template-columns:minmax(200px,1fr) minmax(200px,1.2fr) 130px 190px auto 80px}
.hf-row.hf-flat{grid-template-columns:minmax(200px,1.3fr) 150px minmax(130px,1fr) 170px minmax(130px,1fr) 70px}
.hf-row input[type=checkbox]{width:18px;height:18px;cursor:pointer}
.hf-mini{display:flex;align-items:center;gap:10px;min-width:0}
.hf-mini .hf-photo{width:40px;height:48px;border-radius:5px}
.hf-mini .hf-photo img{width:40px;height:48px}
.hf-mini>div{min-width:0}
.hf-mini-name{font-size:12px;color:var(--text-dim,#94a3b8);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:320px}
.hf-cnt{display:flex;align-items:baseline;gap:6px}
.hf-cnt b{font-size:22px}
.hf-cnt span{font-size:12px;color:var(--text-dim,#94a3b8)}
.hf-old{display:flex;flex-direction:column;gap:3px;font-size:12px}
.hf-take{display:flex;align-items:center;gap:8px}
.hf-step{display:flex;align-items:center}
#sec-home-fbs .hf-step button{padding:5px 10px;border-radius:6px 0 0 6px;line-height:1.2}
#sec-home-fbs .hf-step button:last-child{border-radius:0 6px 6px 0}
#sec-home-fbs .hf-step input{width:46px;text-align:center;padding:5px 4px!important;border-radius:0!important;border-left:0!important;border-right:0!important;font-weight:700}
#sec-home-fbs .hf-more{justify-self:end;white-space:nowrap}
.hf-age{display:inline-block;width:fit-content;padding:2px 8px;border-radius:20px;font-size:12px;font-weight:600;background:rgba(148,163,184,.16)}
.hf-age.soon{background:rgba(245,158,11,.22);color:#f59e0b}
.hf-age.late{background:rgba(239,68,68,.22);color:#f87171}
.hf-sub{background:rgba(148,163,184,.06);border-top:1px dashed var(--card-border,#334155);padding:4px 14px 8px 50px}
.hf-oline{display:flex;align-items:center;gap:14px;padding:6px 0;font-size:13px;flex-wrap:wrap}
.hf-oline+.hf-oline{border-top:1px solid rgba(148,163,184,.12)}
.hf-oid{font-weight:600;min-width:96px}
.hf-ocity{min-width:120px;font-size:13px}
.hf-oact{margin-left:auto;display:flex;gap:12px}
.hf-boxid{display:flex;flex-direction:column;gap:2px;min-width:0}
.hf-boxid .hf-muted{font-size:12px}
.hf-bst{display:flex;flex-direction:column;gap:3px}
.hf-bact{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.hf-pill{display:inline-block;width:fit-content;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:600;background:rgba(148,163,184,.16)}
.hf-pill.ok{background:rgba(34,197,94,.18);color:#4ade80}
.hf-pill.warn{background:rgba(245,158,11,.2);color:#f59e0b}
.hf-pill.go{background:rgba(59,157,202,.2);color:#60b8e0}
#sec-home-fbs .hf-btnlink{display:inline-block;padding:8px 12px;border:1px solid var(--card-border,#334155);border-radius:7px;text-decoration:none;color:inherit;background:var(--card-bg,#172334)}
#sec-home-fbs .hf-btnlink.hf-primary{background:#17688e;border-color:#278ab5;color:#fff}
.hf-actbar{position:sticky;bottom:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px;padding:12px 16px;border:1px solid #3b9dca;border-radius:10px;background:var(--bg,#111827);box-shadow:0 -6px 18px rgba(0,0,0,.25)}
.hf-actbar.is-empty{border-color:var(--card-border,#334155)}
.hf-legend{display:flex;gap:6px}
#sec-home-fbs .hf-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
[data-theme="light"] .hf-actbar{background:#fff}
[data-theme="light"] .hf-age.soon{color:#b45309}
[data-theme="light"] .hf-age.late{color:#b91c1c}
[data-theme="light"] .hf-pill.ok{color:#15803d}
[data-theme="light"] .hf-pill.warn{color:#b45309}
[data-theme="light"] .hf-pill.go{color:#1d6f96}
@media (max-width:1100px){
  #sec-home-fbs .hf-stages{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hf-row,.hf-row.hf-boxrow,.hf-row.hf-flat{grid-template-columns:1fr 1fr;row-gap:8px}
  .hf-row>input[type=checkbox]{grid-column:1/-1}
}

.hf-actbar.is-fixed{position:fixed;bottom:14px;margin:0}
#sec-home-fbs.hf-has-bar #hf-body{padding-bottom:84px}
.hf-row.hf-flat .hf-pill{white-space:nowrap}
.hf-row.hf-flat{padding-top:6px;padding-bottom:6px}
.hf-row.hf-flat{grid-template-columns:minmax(200px,1.3fr) 130px minmax(130px,1fr) 200px minmax(150px,1fr) 70px}

.hf-thumbs{display:flex;gap:8px;flex-wrap:wrap;min-width:0}
.hf-thumb{display:flex;flex-direction:column;align-items:center;gap:3px;width:62px}
.hf-thumb .hf-photo,.hf-thumb .hf-photo img{width:44px;height:52px;border-radius:5px}
.hf-thumb span{font-size:11px;font-weight:600;text-align:center;line-height:1.15;max-width:62px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hf-thumb b{display:block;font-weight:700;color:var(--text-dim,#94a3b8)}
.hf-oart{display:inline-flex;align-items:center;gap:8px;min-width:150px}
.hf-oart .hf-photo,.hf-oart .hf-photo img{width:30px;height:36px;border-radius:4px}
.hf-thumbs{gap:6px;flex-wrap:nowrap;overflow:hidden}
.hf-thumb{width:52px;flex:0 0 52px}
.hf-thumb .hf-photo,.hf-thumb .hf-photo img{width:36px;height:44px}
.hf-thumb span{max-width:52px;font-size:10.5px}
.hf-row.hf-boxrow{grid-template-columns:minmax(180px,auto) minmax(200px,1.2fr) 120px 150px auto 80px}

#sec-home-fbs #sec-bcheck{padding:0;margin-top:14px}
#sec-home-fbs #sec-bcheck .b-head h2{display:none}
#sec-home-fbs.hf-scan-on .hf-tabs button[data-tab][aria-selected="true"]{border-bottom-color:transparent!important;color:inherit}

/* 02.11.2026: первый час после заказа */
.hf-ready{display:flex;flex-direction:column;gap:4px;align-items:flex-start;min-width:150px}
.hf-ready1h{display:inline-block;padding:2px 8px;border-radius:20px;font-size:12px;font-weight:600;background:rgba(34,197,94,.18);color:#4ade80;white-space:nowrap}
.hf-wait1h{display:inline-block;padding:2px 8px;border-radius:20px;font-size:12px;font-weight:600;background:rgba(148,163,184,.16);color:#94a3b8;white-space:nowrap}
.hf-row.is-fresh{opacity:.55}
.hf-row.is-fresh .hf-take{pointer-events:none}
@media (min-width:1101px){.hf-row:has(> .hf-ready){grid-template-columns:22px minmax(220px,1fr) 90px 130px 160px 190px 80px}}
[data-theme="light"] .hf-ready1h{color:#15803d}
.hf-boxedit{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px 0 6px;border-bottom:1px dashed var(--card-border,#334155);margin-bottom:4px}
#sec-home-fbs .hf-bact.hf-bact4{display:flex;flex-wrap:nowrap;gap:6px}
#sec-home-fbs .hf-bact.hf-bact4>*{padding:5px 9px!important;font-size:12px!important;line-height:1.3!important;min-height:0!important}
#sec-home-fbs .hf-bact.hf-bact4>[data-action=toggle]{order:9}
#sec-home-fbs .hf-bact.hf-bact4>*{white-space:nowrap;text-align:center;justify-content:center}
@media (min-width:1101px){#sec-home-fbs .hf-row.hf-boxrow{grid-template-columns:minmax(150px,auto) minmax(140px,1fr) 100px 110px max-content 0}}
#sec-home-fbs .hf-sub .hf-ocity{width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sec-home-fbs .hf-oact{display:inline-flex;align-items:center;gap:10px}
#sec-home-fbs .hf-sbtn{padding:3px 9px!important;font-size:12px!important;line-height:1.3!important;min-height:0!important;border-radius:6px}
#sec-home-fbs .hf-sub .hf-age{min-width:76px;text-align:center;box-sizing:border-box}
#sec-home-fbs .hf-sbtn{min-width:126px;text-align:center}
#sec-home-fbs .hf-sbtn{display:inline-flex;justify-content:center;align-items:center}#sec-home-fbs .hf-sbtn[data-action=box-drop]{color:#fdba74;border-color:rgba(253,186,116,.45)}
#sec-home-fbs .hf-stno{min-width:130px;font-weight:700;color:#93c5fd;white-space:nowrap}
#sec-home-fbs .hf-sub .hf-oline{gap:10px}#sec-home-fbs .hf-sub .hf-ocity{width:170px}#sec-home-fbs .hf-stno{min-width:0}#sec-home-fbs .hf-sub .hf-oact{margin-left:auto}
