/* Bakesoft.App — модуль заказов: неделя, форма по техкарте, карточка, выдача, закупка. Токены — из app.css (:root). */

/* ---------- общие элементы ---------- */
.ok-ink { color: var(--ok); }
.bad-ink { color: var(--bad); }
.acc-ink { color: var(--acc); }
.sec-ink { color: var(--secink); }
.nowrap { white-space: nowrap; }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 2px; }
.seg a, .seg button { min-height: 40px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--ink2); border: 0; background: none; cursor: pointer; white-space: nowrap; }
.seg a:hover, .seg button:hover { background: var(--paper2); }
.seg .on { background: var(--ink); color: #fff; }
.seg .on:hover { background: var(--ink); }
.wknav { display: inline-flex; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.wknav a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--ink2); }
.wknav a:hover { background: var(--paper2); }
.wknav b { padding: 0 10px; font-weight: 800; font-size: 15px; white-space: nowrap; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fchips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchips a { flex: none; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); }
.fchips a.on { background: var(--acc); border-color: var(--acc); color: #fff; }
.fchips a small { font-weight: 800; opacity: .8; }
.fbar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 14px 0 4px; }
.fbar .lbl { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }

/* статус и оплата */
.chip.st-draft { background: var(--paper2); color: var(--muted); }
.chip.st-acc { background: var(--paper2); color: var(--ink2); }
.chip.st-work { background: var(--acc); color: #fff; }
.chip.st-ready { background: var(--oks); color: var(--ok); }
.chip.st-done { background: var(--paper2); color: var(--muted); }
.chip.st-cancel { background: var(--bads); color: var(--bad); }
.pay { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.pay.paid { color: var(--ok); }
.pay.none { color: var(--bad); }
.pay.due { color: var(--ink2); }

/* значок изделия */
.kic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.kic.t-honey { background: var(--secs); color: var(--secink); }
.kic.t-berry { background: var(--accs); color: var(--acc); }
.kic.t-mint { background: #E3F2EC; color: #2F7A64; }

/* ---------- сводка ---------- */
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
@media (min-width: 1100px) { .kpis { grid-template-columns: 1.15fr 1fr 1fr 1.1fr; gap: 14px; } }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow); min-width: 0; }
.kpi .si { width: 42px; height: 42px; border-radius: 13px; background: var(--accs); color: var(--acc); display: grid; place-items: center; flex: none; }
.kpi .kt { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.kpi .kt > b { font-size: 14px; font-weight: 800; }
.kpi .kt > span { font-size: 12.5px; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.kpi .kt > .kv { font-size: 26px; color: inherit; font-weight: 800; line-height: 1.15; white-space: nowrap; margin: 2px 0; }
.kpi.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.kpi.dark .si { background: color-mix(in srgb, #fff 12%, transparent); color: var(--sec); }
.kpi.dark .kt > span { color: color-mix(in srgb, #fff 72%, transparent); }
@media (max-width: 599px) {
    .kpi { padding: 12px; }
    .kpi .si { display: none; }
    .kpi .kt > .kv { font-size: 22px; }
}

/* ---------- карточка заказа ---------- */
.oc { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); }
.oc:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.oc.hot { border: 2px solid var(--acc); }
.oc.done { opacity: .62; }
.oc .oh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.oc .oh .kic { width: 32px; height: 32px; }
.oc .tm { font-size: 19px; font-weight: 800; }
.oc .no { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 700; }
.oc .ti { font-weight: 800; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.oc .dt { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.oc .cu { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink2); font-weight: 600; margin-top: 4px; overflow-wrap: anywhere; }
.oc .cu .ic { color: var(--muted); }
.hl { display: flex; gap: 6px; align-items: flex-start; background: var(--secs); color: var(--secink); border-radius: 10px; padding: 6px 9px; font-size: 13px; font-weight: 700; margin-top: 8px; overflow-wrap: anywhere; }
.hl .ic { margin-top: 1px; }
.oc .of { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; margin-top: 10px; }

/* ---------- неделя ---------- */
.wk { display: none; }
@media (min-width: 1024px) {
    .wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: start; }
    .content:has(> .wk), .content:has(.wk) { max-width: 1600px; }
    .wk .oc { padding: 10px; border-radius: 14px; }
    .wk .oc .tm { font-size: 16px; }
    .wk .oc .oh { gap: 6px; }
    .wk .oc .oh .kic { width: 28px; height: 28px; }
    .wk .oc .ti { font-size: 14px; }
    .wk .oc .dt, .wk .oc .cu { font-size: 12.5px; }
    .wk .hl { font-size: 12px; padding: 5px 7px; }
}
.wcol { background: var(--paper2); border-radius: 18px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wcol.today { background: var(--accs); outline: 2px solid color-mix(in srgb, var(--acc) 35%, transparent); }
.wcol .wh { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; padding: 2px 4px 4px; }
.wcol .wh b { font-size: 16px; font-weight: 800; }
.wcol .wh span { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.wcol .wh .cnt { margin-left: auto; min-width: 26px; height: 26px; border-radius: 99px; background: var(--paper); display: grid; place-items: center; font-size: 12.5px; font-weight: 800; }
.badge { font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--acc); color: #fff; }
.badge.soft { background: var(--paper); color: var(--acc); }
.wcol.past { align-items: center; text-align: center; }
.wcol.past .wh { flex-direction: column; gap: 0; }
.wcol.past .wh .cnt { display: none; }
.pastbox { background: var(--paper); border-radius: 14px; padding: 12px 6px; width: 100%; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.pastbox b { font-size: 22px; font-weight: 800; }
.pastbox span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.more { border: 1.5px dashed color-mix(in srgb, var(--ink) 25%, var(--line)); border-radius: 12px; }
.more > summary { list-style: none; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--ink2); cursor: pointer; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary .ic { transform: rotate(180deg); }
.more > div { display: flex; flex-direction: column; gap: 8px; padding: 0 0 8px; }
.wempty { color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; padding: 14px 4px; }

/* мобильная неделя: полоса дат + список дня */
.strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip a { flex: 1 0 46px; min-height: 64px; border-radius: 14px; background: var(--paper); border: 1.5px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-weight: 700; position: relative; }
.strip a small { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: capitalize; }
.strip a b { font-size: 18px; font-weight: 800; }
.strip a i { font-style: normal; font-size: 11px; font-weight: 800; color: var(--acc); }
.strip a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.strip a.on small, .strip a.on i { color: color-mix(in srgb, #fff 75%, transparent); }
.strip a.today:not(.on) { border-color: var(--acc); }
.daylist { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 1024px) { .wk-m { display: none; } }
.dayhead { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 10px; }
.dayhead h2 { font-size: 18px; }

/* список */
.olist .row { align-items: flex-start; }
.olist .row .tm { font-weight: 800; font-size: 16px; width: 54px; flex: none; }
.olist .row .rm .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* ---------- форма заказа ---------- */
.ofh { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.ofh .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cpick { position: relative; min-width: 0; flex: 1 1 340px; max-width: 520px; }
.cpick .cbox { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 8px 6px 14px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; }
.cpick .cbox:focus-within { border-color: var(--acc); }
.cpick input { border: 0; outline: 0; background: none; font-size: 16px; min-width: 0; flex: 1; min-height: 40px; }
.cpick .csel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.cpick .csel b { font-weight: 800; }
.cpick .csel span { color: var(--muted); font-weight: 600; font-size: 14px; }
.cpick .x { width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.cpick .x:hover { background: var(--paper2); }
.cpick .drop { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(46, 37, 48, .35); padding: 6px; max-height: 340px; overflow-y: auto; }
.cpick .drop button { width: 100%; text-align: left; border: 0; background: none; min-height: 48px; padding: 6px 10px; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; justify-content: center; }
.cpick .drop button:hover, .cpick .drop button.act { background: var(--paper2); }
.cpick .drop button b { font-weight: 800; font-size: 14.5px; }
.cpick .drop button span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cpick .qa { border-top: 1px solid var(--line); margin-top: 6px; padding: 10px 6px 4px; display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cpick .qa { grid-template-columns: 1fr 1fr auto; } }
.cpick .qa .input { min-height: 44px; font-size: 15px; }
.cnote { font-size: 13px; color: var(--secink); font-weight: 700; margin-top: 6px; }

.ofg { display: grid; gap: 14px; }
@media (min-width: 1200px) { .ofg { grid-template-columns: 300px minmax(0, 1fr) 320px; align-items: start; } }
@media (min-width: 1600px) { .ofg { grid-template-columns: 350px minmax(0, 1fr) 360px; } }
.content:has(.ofg), .content:has(.odg) { max-width: 1600px; }
.ofg > * { min-width: 0; }
.ofg .card + .card { margin-top: 14px; }
.ofg h2 { margin-bottom: 12px; }
.sub { font-size: 14px; font-weight: 700; margin: 16px 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sub small { color: var(--muted); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; text-align: left; border: 1.5px solid var(--line); background: var(--paper); border-radius: 16px; padding: 10px; min-height: 96px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.tile:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.tile.on { border: 2px solid var(--acc); background: color-mix(in srgb, var(--accs) 55%, var(--paper)); }
.tile.on::after { content: ""; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center no-repeat; }
.tile b { font-weight: 800; font-size: 14.5px; line-height: 1.2; overflow-wrap: anywhere; }
.tile span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.dchips { display: flex; flex-wrap: wrap; gap: 18px 6px; }
.dchip { min-width: 52px; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 800; font-size: 14px; cursor: pointer; position: relative; padding: 0 8px; }
.dchip.base { border-style: dashed; }
.dchip.base::after { content: "база"; position: absolute; left: 0; right: 0; bottom: -15px; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.dchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.dchips.has-base { padding-bottom: 12px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); padding: 3px; }
.stepper button { width: 44px; height: 44px; border-radius: 11px; border: 0; background: var(--paper2); font-size: 22px; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.stepper button:disabled { opacity: .4; cursor: default; }
.stepper output, .stepper input { width: 52px; text-align: center; font-weight: 800; font-size: 18px; border: 0; background: none; }
.wbox { border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 12px; min-height: 52px; display: flex; align-items: baseline; gap: 8px; background: var(--paper); }
.wbox b { font-size: 20px; font-weight: 800; white-space: nowrap; }
.wbox span { white-space: nowrap; }
.wbox span { font-size: 13px; color: var(--muted); font-weight: 600; }
.pair { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: end; }
.tiers { display: flex; flex-direction: column; gap: 8px; }
.tier { display: grid; grid-template-columns: 26px 1fr 1fr; gap: 6px 8px; align-items: center; background: var(--paper2); border-radius: 12px; padding: 8px; }
.tier .lv { font-weight: 800; color: var(--muted); text-align: center; }
.tier .input, .tier .select { min-height: 42px; font-size: 15px; padding: 0 10px; }
.tier .select { padding-right: 32px; }
.tier .fill { grid-column: 2 / 4; }
.tier label { font-size: 11.5px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 2px; }
.kbox { display: flex; gap: 12px; align-items: center; background: var(--paper2); border-radius: 16px; padding: 12px; margin-top: 16px; }
.kbox .ring { width: 62px; height: 62px; border-radius: 50%; border: 2px dashed var(--acc); display: grid; place-items: center; text-align: center; font-size: 11px; font-weight: 800; color: var(--acc); flex: none; line-height: 1.15; }
.kbox b { font-size: 15px; font-weight: 800; display: block; }
.kbox ul { list-style: none; font-size: 13px; color: var(--ink2); font-weight: 600; }

.tkh { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.tkh .cap { font-size: 12px; font-weight: 800; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; }
.tkh h2 { font-size: 18px; margin: 2px 0 0; }
.kpath { display: inline-flex; align-items: center; gap: 6px; background: var(--accs); border-radius: 14px; padding: 6px 8px; font-weight: 700; font-size: 13.5px; color: var(--acch); flex-wrap: wrap; }
.kpath b { background: var(--paper); border-radius: 10px; padding: 4px 10px; font-size: 18px; font-weight: 800; color: var(--acc); }
.calc-card { container-type: inline-size; container-name: calc; }
.tkcols { display: none; }
.tkl { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nm am" "stk cs"; gap: 4px 10px; padding: 10px 8px; border-top: 1px solid var(--line); align-items: center; border-radius: 10px; }
.tkl.short { background: color-mix(in srgb, var(--bads) 55%, var(--paper)); border-top-color: transparent; }
.tkl .nm { grid-area: nm; font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }
.tkl .am { grid-area: am; text-align: right; }
.tkl .am b { display: block; font-weight: 800; font-size: 15px; white-space: nowrap; }
.tkl .am small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tkl .stk { grid-area: stk; min-width: 0; }
.tkl .cs { grid-area: cs; text-align: right; font-weight: 800; white-space: nowrap; }
@container calc (min-width: 600px) {
    .tkcols { display: grid; grid-template-columns: minmax(0, 1.2fr) 140px minmax(0, 1.1fr) 64px; gap: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); padding: 10px 8px 6px; border-bottom: 1px solid var(--line); }
    .tkcols span:nth-child(2), .tkcols span:last-child { text-align: right; }
    .tkl { grid-template-columns: minmax(0, 1.2fr) 140px minmax(0, 1.1fr) 64px; grid-template-areas: "nm am stk cs"; }
}
.tkg { padding: 14px 8px 4px; font-size: 12.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--acc); }
.tkg small { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 6px; }
.stk .chip { height: 24px; font-size: 12px; }
.stk small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; padding-left: 4px; }
.tkfoot { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--line); margin-top: 10px; padding: 14px 8px 0; }
.tkfoot p { font-size: 13px; color: var(--muted); font-weight: 600; max-width: 420px; display: flex; gap: 8px; }
.tkfoot .tot { text-align: right; }
.tkfoot .tot span { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.tkfoot .tot b { font-size: 24px; font-weight: 800; }
.calc-err { background: var(--bads); color: var(--bad); border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 14px; margin-top: 10px; }
.calc-wait { opacity: .55; transition: opacity .15s; }

.costcap { font-size: 12px; font-weight: 800; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; }
.costbig { font-size: 34px; font-weight: 800; margin: 2px 0 12px; }
.cbar { display: flex; gap: 3px; height: 12px; border-radius: 99px; overflow: hidden; background: var(--paper2); }
.cbar i { display: block; height: 100%; border-radius: 3px; }
.c1 { background: var(--sec); } .c2 { background: var(--acc); } .c3 { background: #2F7A64; } .c4 { background: #8C6BB1; }
.clegend { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.clegend li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; font-size: 14px; }
.clegend li i { width: 10px; height: 10px; border-radius: 3px; }
.clegend li span { font-weight: 700; }
.clegend li span small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.clegend li b { font-weight: 800; white-space: nowrap; }
.ovr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ovr .field label { font-size: 12px; }
.ovr .input { min-height: 42px; font-size: 15px; padding: 0 10px; }
.ovr .hint { font-size: 11.5px; }
.pricecard { background: var(--ink); color: #fff; border-color: var(--ink); }
.pricecard .pr { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; font-size: 14.5px; color: color-mix(in srgb, #fff 80%, transparent); }
.pricecard .pr b { color: #fff; font-weight: 800; white-space: nowrap; }
.pricecard .mk { display: flex; align-items: center; gap: 6px; }
.pricecard .mk input { width: 64px; min-height: 36px; border-radius: 10px; border: 0; background: color-mix(in srgb, #fff 14%, transparent); color: #fff; font-weight: 800; text-align: center; font-size: 15px; }
.pricecard .final { border-top: 1px solid color-mix(in srgb, #fff 18%, transparent); margin-top: 8px; padding-top: 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.pricecard .final span { font-size: 15px; font-weight: 700; }
.pricecard .final small { display: block; font-size: 12.5px; color: color-mix(in srgb, #fff 65%, transparent); font-weight: 600; }
.pricecard .final b { font-size: 32px; font-weight: 800; white-space: nowrap; color: var(--sec); }
.pricecard .check { color: #fff; padding-top: 6px; min-height: 0; }
.pricecard .select { min-height: 40px; font-size: 14px; background-color: #fff; color: var(--ink); margin-top: 6px; }
.cnt { float: right; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 6px 0 12px; border-radius: 10px; background: var(--secs); color: var(--secink); font-weight: 800; font-size: 13.5px; }
.tag button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; color: var(--secink); border-radius: 8px; font-size: 18px; line-height: 1; }
.tagadd { display: flex; gap: 6px; }
.tagadd .input { min-height: 40px; font-size: 14.5px; }
.radios { display: flex; gap: 6px; flex-wrap: wrap; }
.radios label { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; background: var(--paper); padding: 0 10px; }
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.radios label:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--acc) 55%, transparent); }
.formbar { position: sticky; bottom: calc(var(--bn-h) + env(safe-area-inset-bottom)); z-index: 25; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--line); margin: 16px -16px 0; padding: 10px 16px; display: flex; gap: 8px; align-items: center; }
.formbar .tot { flex: 1; min-width: 0; }
.formbar .tot b { display: block; font-size: 20px; font-weight: 800; }
.formbar .tot span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
@media (min-width: 1024px) { .formbar { display: none; } }

/* ---------- карточка заказа ---------- */
.odg { display: grid; gap: 14px; }
@media (min-width: 1100px) { .odg { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.odg > * { min-width: 0; }
.flow { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 14px; }
.flow span { flex: 1 1 80px; text-align: center; font-size: 12.5px; font-weight: 800; padding: 8px 4px; border-radius: 10px; background: var(--paper2); color: var(--muted); }
.flow span.done { background: var(--oks); color: var(--ok); }
.flow span.cur { background: var(--acc); color: #fff; }
.actrow { display: flex; flex-wrap: wrap; gap: 8px; }
.actrow form { margin: 0; }
.money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.money div { background: var(--paper2); border-radius: 12px; padding: 10px; }
.money span { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.money b { font-size: 17px; font-weight: 800; white-space: nowrap; }
.inline { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin-top: 10px; }
.inline .input, .inline .select { min-height: 44px; font-size: 15px; }
.inline .btn { grid-column: 1 / -1; }
.frozen { display: flex; gap: 10px; align-items: flex-start; background: var(--secs); color: var(--secink); border-radius: 14px; padding: 10px 12px; font-size: 13.5px; font-weight: 700; margin-top: 12px; }
details.box > summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; gap: 6px; list-style: none; }
details.box > summary::-webkit-details-marker { display: none; }

/* ---------- сегодня к выдаче ---------- */
.tsum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--ink); color: #fff; border-radius: 20px; padding: 14px 6px; margin-bottom: 14px; }
.tsum div { padding: 0 10px; border-left: 1px solid color-mix(in srgb, #fff 18%, transparent); min-width: 0; }
.tsum div:first-child { border-left: 0; }
.tsum span { display: block; font-size: 12.5px; color: color-mix(in srgb, #fff 70%, transparent); font-weight: 700; }
.tsum b { font-size: 22px; font-weight: 800; white-space: nowrap; }
.tsum .due b { color: var(--sec); }
@media (max-width: 400px) { .tsum b { font-size: 18px; } .tsum div { padding: 0 6px; } }
.tl { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.tli { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; align-items: start; }
.tli .when { padding-top: 10px; }
.tli .when b { display: block; font-size: 19px; font-weight: 800; }
.tli .when small { display: block; font-size: 12px; font-weight: 800; color: var(--acc); line-height: 1.2; margin-top: 2px; }
.tli .when small.late { color: var(--bad); }
.tcard { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.tcard.next { border: 2px solid var(--acc); }
.tcard .th { display: flex; gap: 10px; align-items: flex-start; }
.tcard .th .kic { width: 44px; height: 44px; }
.tcard .th b { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.tcard .th .dt { color: var(--muted); font-weight: 600; }
.tcard .th .cu { font-size: 14px; color: var(--ink2); font-weight: 600; overflow-wrap: anywhere; }
.tcard .th .cu span { color: var(--muted); }
.tcard .tf { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.tcard .tf .paybox { flex: 1; min-width: 0; }
.tcard .tf .paybox span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.tcard .tf .paybox b { font-size: 18px; font-weight: 800; white-space: nowrap; }
.callbtn { width: 52px; height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); display: grid; place-items: center; flex: none; color: var(--ink); }
.callbtn:hover { background: var(--paper2); }
.issuebtn { min-height: 52px; padding: 0 22px; font-size: 16px; }
.issuebox { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.issuebox .radios label { min-height: 40px; font-size: 13.5px; }
.issuebox .btn { margin-top: 8px; }
.tdone { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; opacity: .75; }
.tdone .kic { width: 34px; height: 34px; }
.tdone .tt { flex: 1; min-width: 0; }
.tdone .tt b { display: block; font-weight: 800; font-size: 14.5px; overflow-wrap: anywhere; }
.tdone .chip { flex: none; }
.tdone .tt span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- закупка ---------- */
.pg { display: grid; gap: 14px; }
@media (min-width: 1100px) { .pg { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.pg > * { min-width: 0; }
.pline { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.pline:first-child { border-top: 0; }
.pline input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--acc); }
.pline b { font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }
.pline .meta { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.art { color: var(--acc); background: var(--accs); border-radius: 6px; padding: 1px 6px; font-weight: 800; font-size: 12.5px; }
.pline .cost { font-weight: 800; white-space: nowrap; }
.pline.covered { opacity: .6; }
.ptot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.ptot span { color: var(--muted); font-weight: 700; }
.ptot b { font-size: 26px; font-weight: 800; }
.partner { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; }
.partner .soon { position: absolute; top: 14px; right: 14px; background: var(--sec); color: var(--ink); font-weight: 800; font-size: 12px; border-radius: 99px; padding: 3px 10px; }
.partner h2 { padding-right: 64px; }
.partner p { color: color-mix(in srgb, #fff 72%, transparent); font-size: 14px; margin-top: 6px; }
.partner .btn { margin-top: 12px; background: color-mix(in srgb, #fff 14%, transparent); color: color-mix(in srgb, #fff 70%, transparent); }
.plist + .plist { margin-top: 14px; }
.plist .ph2 { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.plist .items { margin-top: 8px; }
.plist .items form { display: flex; align-items: center; gap: 10px; min-height: 44px; border-top: 1px solid var(--line); }
.plist .items form:first-child { border-top: 0; }
.plist .items button.cb { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; flex: none; color: #fff; }
.plist .items button.cb.on { background: var(--acc); border-color: var(--acc); }
.plist .items span { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.plist .items b { white-space: nowrap; font-size: 14px; }

/* ---------- главная ---------- */
.dash-list .row { min-height: 52px; padding: 8px 0; }
.dash-list .row .tm { font-weight: 800; width: 50px; flex: none; }
.money2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.money2 div { background: var(--paper2); border-radius: 14px; padding: 12px; }
.money2 span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.money2 b { font-size: 22px; font-weight: 800; white-space: nowrap; }
