/* Catalog area: catálogo, productos, inventario, preparación, devoluciones, courier. Prefixes: cat-, cr-, cc-. */

/* ── shared toolbar bits ── */
.cat-search { flex: 1 1 220px; max-width: 400px; }
.cat-search .inp { width: 100%; flex: 1; }
.cat-lsel { display: inline-flex; align-items: center; height: 34px; border: 1px solid #dcdfea; border-radius: 9px; background: #fff; padding-left: 10px; max-width: 100%; }
.cat-lsel > span { font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.cat-lsel .inp, .cat-lsel select.inp { border: 0; height: 32px; box-shadow: none !important; background-color: transparent; max-width: 180px; font-weight: 600; }
.cat-lsel input[type=date].inp { padding-right: 6px; }
.cat-lsel:focus-within { border-color: #8e91f8; box-shadow: 0 0 0 3px rgba(47,51,240,.12); }
.cat-switch { position: relative; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-weight: 600; font-size: 12.5px; user-select: none;
  color: var(--ink-2); height: 34px; padding: 0 11px; border: 1px solid #dcdfea; border-radius: 9px; background: #fff; white-space: nowrap; }
.cat-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cat-switch .trk { width: 30px; height: 17px; border-radius: 99px; background: #d5d8e6; position: relative; transition: background .15s; flex: none; }
.cat-switch .trk::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.cat-switch input:checked + .trk { background: var(--primary); }
.cat-switch input:checked + .trk::after { transform: translateX(13px); }
.cat-switch input:focus-visible + .trk { box-shadow: 0 0 0 3px rgba(47,51,240,.25); }
.cat-switch:has(input:checked) { border-color: #b9bbfb; background: var(--primary-soft); color: var(--primary); }
.cat-cb { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; vertical-align: middle; }
.cat-cnt { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 3px; border-radius: 99px; background: rgba(0,0,0,.07); font-size: 11px; line-height: 17px; }
.chips-filter button.on .cat-cnt { background: rgba(255,255,255,.25); }
.cat-x { cursor: pointer; font-size: 14px; margin-left: 2px; }
.cat-noimg { width: 100%; height: 100%; display: grid; place-items: center; color: #b4b9cf; background: #eef0f6; }
.cat-off td { opacity: .58; }
.cat-dim { opacity: .55; pointer-events: none; transition: opacity .15s; }
.cat-h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 8px; }
.cat-spin { animation: rot .8s linear infinite; }

/* ── catalog highlights ── */
.cat-hl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cat-hl .cat-premium { grid-column: 1 / -1; display: flex; gap: 18px 26px; align-items: center; flex-wrap: wrap; }
.cat-premium::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.28); pointer-events: none; }
.cat-bh { flex: 1 1 280px; min-width: 0; }
.cat-bh h3 { margin: 0 0 5px; font-size: 19px; font-weight: 900; color: #3b1fa8; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.cat-bh h3 svg { color: #f5b301; fill: #f5b301; }
.cat-bh p { margin: 0; color: #4c3d8f; font-size: 13px; max-width: 440px; line-height: 1.45; }
.cat-prem-list { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cat-prem { background: rgba(255,255,255,.82); border: 1px solid #d9d0ff; border-radius: 14px; padding: 10px 14px 10px 10px; display: flex; align-items: center; gap: 11px; min-width: 210px; flex: 1 1 210px; max-width: 280px; }
.cat-prem .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #c4b5fd; flex: none; }
.cat-prem .n { font-weight: 800; font-size: 13.5px; }
.cat-prem .linkbtn { font-size: 12px; margin-top: 2px; color: #5b2fd6; }
.cat-btitle { font-weight: 900; letter-spacing: .02em; font-size: 14.5px; display: flex; align-items: center; gap: 6px; }
.cat-bsub { font-size: 12.5px; margin: 2px 0 12px; font-weight: 600; }
.banner.mint .cat-btitle { color: #065f46; } .banner.mint .cat-bsub { color: #0b7a55; }
.banner.blue .cat-btitle { color: #fff; } .banner.blue .cat-btitle svg { color: #facc15; } .banner.blue .cat-bsub { color: #c7d2fe; }
.banner .hscroll { padding-bottom: 6px; }
.cat-mini { width: 146px; background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer; border: 1px solid rgba(12,16,53,.06);
  box-shadow: 0 2px 8px rgba(12,16,53,.10); color: var(--ink); transition: transform .12s, box-shadow .12s; }
.cat-mini:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(12,16,53,.16); }
.cat-mini .im { aspect-ratio: 1 / 1; background: #eef0f6; position: relative; }
.cat-mini .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-mini .b { padding: 7px 10px 9px; }
.cat-mini .pr { font-weight: 800; color: var(--primary); font-size: 13.5px; }
.cat-mini .nm { font-size: 12px; font-weight: 600; line-height: 1.3; height: 31px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cat-mini .sp { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.cat-24 { position: absolute; top: 7px; left: 7px; background: #facc15; color: #1e1b4b; font-weight: 900; font-size: 11px; padding: 2px 7px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.cat-24.static { position: static; }
.cat-san-dot { position: absolute; top: 7px; left: 7px; width: 22px; height: 22px; border-radius: 50%; background: #0f8a63; color: #fff; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.cat-tabs .tab { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) { .cat-hl { grid-template-columns: 1fr; } .cat-prem { max-width: none; } .banner .cat-btitle { font-size: 13.5px; } }

/* ── catalog cards ── */
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); }
.cat-card { transition: box-shadow .15s, transform .15s; }
.cat-card:hover { box-shadow: 0 10px 28px rgba(12,16,53,.12); transform: translateY(-1px); }
.cat-card .img { cursor: pointer; }
.cat-card .fav:hover { transform: scale(1.08); }
.cat-card .fav.on svg { fill: currentColor; }
.cat-badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.cat-bsan { background: #e3f8ee; color: #0b7a55; border: 1px solid #b8ebd3; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px;
  display: inline-flex; gap: 4px; align-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.cat-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; }
.cat-meta .chip { max-width: 62%; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 20px; }
.cat-stock { white-space: nowrap; color: var(--muted); }
.cat-stock b { color: var(--green); }
.cat-stock.low b { color: var(--red); }
.cat-name { font-weight: 800; font-size: 14px; line-height: 1.3; min-height: 36px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.cat-name:hover { color: var(--primary); }
.cat-line { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; min-width: 0; }
.cat-line > span { flex: none; }
.cat-line b { color: var(--ink-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cat-star { color: #f5b301; fill: #f5b301; flex: none; }
.cat-wa { width: 20px; height: 20px; border-radius: 50%; background: #25d366; color: #fff; display: inline-grid; place-items: center; flex: none; margin-left: auto; }
.cat-wa:hover { filter: brightness(.95); }
.cat-price { border: 1px solid var(--line); border-radius: 10px; padding: 7px 4px; background: #fafbfe; }
.cat-price > div { display: flex; flex-direction: column; gap: 1px; }
.cat-price > div + div { border-left: 1px solid var(--line); }
.cat-price b.sug { color: #2563eb; }
.cat-margin { font-size: 11.5px; color: var(--green); background: var(--green-soft); border-radius: 8px; padding: 4px 8px; text-align: center; font-weight: 600; }
.cat-margin.neg { color: var(--red); background: var(--red-soft); }
.cat-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.cat-actions.one { grid-template-columns: 1fr; }
.cat-actions .btn { padding: 0 6px; }
@media (max-width: 480px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .cat-card .body { padding: 10px; gap: 6px; }
  .cat-actions { grid-template-columns: 1fr; } .cat-name { font-size: 13px; } .cat-price b { font-size: 12.5px; } .cat-meta .chip { display: none; } }

/* ── product detail modal ── */
.cat-detail { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.cat-dimg { aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #eef0f6; border: 1px solid var(--line); position: relative; }
.cat-dimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-dfav { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer; color: var(--primary); box-shadow: var(--shadow); }
.cat-dfav.on { color: #e11d48; } .cat-dfav.on svg { fill: currentColor; }
.cat-dname { margin: 0; font-size: 19px; line-height: 1.25; }
.cat-dprice { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-dprice > div { flex: 1 1 130px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fafbfe; }
.cat-dprice span { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.cat-dprice b { font-size: 18px; }
.cat-dprice .hi { background: #eaf3ff; border-color: #c9defd; } .cat-dprice .hi b { color: #2563eb; }
.cat-dprice .gain { background: var(--green-soft); border-color: #bfe8d7; }
.cat-nos { background: #f6f7ff; border: 1px dashed #c9cdf5; border-radius: 12px; padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.cat-desc { white-space: pre-line; font-size: 13px; line-height: 1.6; color: var(--ink-2); background: #fafbfe; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
@media (max-width: 720px) { .cat-detail { grid-template-columns: 1fr; } .cat-dimg { width: min(240px, 100%); margin: 0 auto; } }

/* ── products table ── */
.cat-exp { width: 26px; height: 26px; border-radius: 7px; border: 1px solid #c9cdf5; background: #fff; color: var(--primary); display: inline-grid; place-items: center; cursor: pointer; }
.cat-exp:hover { background: var(--primary-soft); }
.cat-exp.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.cat-exp.hd { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.15); color: #fff; }
.cat-pname { display: flex; align-items: center; gap: 10px; min-width: 260px; }
.cat-pname .thumb { display: grid; place-items: center; }
.cat-pname .nm { display: inline-block; background: #eef3ff; border: 1px solid #dbe5ff; color: #1e3a8a; padding: 4px 10px; border-radius: 8px; font-weight: 700; font-size: 12.5px; line-height: 1.35; }
.cat-yn { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: #f1f2f7; color: #9aa0b8; }
.cat-yn.on { background: var(--green-soft); color: var(--green); }
.tbl tbody tr.cat-sub > td { background: #f3f7ff; padding: 6px 12px 14px 58px; }
.tbl tbody tr.cat-sub:hover > td { background: #f3f7ff; }
.cat-inner { border-radius: 10px; overflow: hidden; border: 1px solid #cfe0fe; background: #fff; overflow-x: auto; }
.cat-inner .tbl-inner td { background: #fff; }
@media (max-width: 720px) { .tbl tbody tr.cat-sub > td { padding-left: 12px; } }

/* product form */
.cat-pf-top { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; padding: 12px; border: 1px dashed #c9cdf5; border-radius: 12px; background: #fafbff; }
.cat-pf-img { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: #eef0f6; flex: none; border: 1px solid var(--line); }
.cat-pf-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-pf-checks { display: flex; gap: 10px 22px; flex-wrap: wrap; padding: 4px 0; }
.cat-skucard { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.cat-skucard.off { background: #f7f8fb; }
.cat-skuhead { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cat-skuhead .ellipsis { min-width: 0; flex: 1; }
.cat-skugrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 10px; }
.cat-skugrid .s2 { grid-column: span 2; } .cat-skugrid .s3 { grid-column: span 3; }
.cat-skugrid .field > label { font-size: 11px; }
.cat-skugrid .inp { width: 100%; } .cat-skugrid .num { text-align: right; }
@media (max-width: 640px) { .cat-skugrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cat-skugrid .s2, .cat-skugrid .s3 { grid-column: span 2; } .cat-skugrid .s2:nth-child(3) { grid-column: span 2; } }
/* light-blue inner table (override the outer .tbl header that cascades into it) */
.tbl .cat-inner .tbl-inner thead th { background: linear-gradient(180deg, #e3eeff, #d6e6ff); color: #1e40af; font-size: 10.5px; padding: 8px 10px; border-bottom: 1px solid #c4d8fb; }
.tbl .cat-inner .tbl-inner thead th::before { display: none; }
.tbl .cat-inner .tbl-inner tbody td { padding: 8px 10px; font-size: 12.5px; }

/* ── inventory / prep / returns ── */
.cat-kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-kchip { --c: var(--primary); display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c);
  border-radius: 12px; padding: 9px 14px; box-shadow: var(--shadow); min-width: 150px; flex: 1 1 150px; color: var(--c); cursor: default; }
.cat-kchip .v { font-size: 20px; font-weight: 800; color: var(--c); line-height: 1.15; }
.cat-kchip .l { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.cat-kchip > span.v + span.l { display: block; }
.cat-kchip:not(:has(svg)) { flex-direction: column; align-items: flex-start; gap: 0; }
.cat-kchip.on { box-shadow: 0 0 0 2px var(--c), var(--shadow); }
.cat-kchip.click { cursor: pointer; }
.cat-kchip.click:hover { background: #fafbff; }
.cat-ean .iconbtn, .cat-mini-copy .iconbtn { width: 22px; height: 22px; border-radius: 6px; vertical-align: middle; }
.cat-seg-full { display: flex; } .cat-seg-full button { flex: 1; }
.cat-avail { font-weight: 800; color: var(--green); }
.cat-avail.low { color: var(--red); background: var(--red-soft); padding: 2px 8px; border-radius: 6px; }
.cat-adj-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; text-align: center; }
.cat-adj-nums span { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cat-adj-nums b { font-size: 18px; }
.cat-after { height: 34px; display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 800; }
.cat-selrow td { background: #f1f2ff !important; }
.cat-prep .prodline + .prodline { margin-top: 3px; }
.cat-units { display: inline-block; min-width: 34px; padding: 3px 8px; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 800; text-align: center; }
.cat-hasbulk { padding-bottom: 76px; }
.cat-bulkwrap { position: fixed; left: 0; right: 0; bottom: 16px; z-index: 55; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.cat-bulk { pointer-events: auto; background: #11163f; color: #fff; border-radius: 14px; padding: 9px 10px 9px 16px; display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap; box-shadow: 0 16px 40px rgba(12,16,53,.35); max-width: 100%; animation: pop .16s ease; }
.cat-bulk .n { font-weight: 800; margin-right: 6px; white-space: nowrap; }
.cat-bulk .btn-ghost { color: #c7cbf5; }
.cat-bulk .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 720px) {
  .cat-bulkwrap { bottom: 8px; padding: 0 78px 0 8px; justify-content: flex-start; }
  .cat-bulk { padding: 8px; gap: 6px; } .cat-bulk .n { width: 100%; font-size: 12px; } .cat-hide-sm { display: none; }
  .cat-hasbulk { padding-bottom: 150px; }
  .cat-kchip { min-width: 0; flex: 1 1 140px; padding: 8px 10px; } .cat-kchip .v { font-size: 17px; }
  .cat-lsel { flex: 1 1 auto; } .cat-lsel .inp, .cat-lsel select.inp { max-width: none; flex: 1; }
}

/* ── courier route (mobile first) ── */
.cr-page { max-width: 760px; width: 100%; margin: 0 auto; padding-bottom: 70px; }
.cr-page.wide { max-width: 1100px; }
.cr-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cr-datenav { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; flex: 1 1 220px; box-shadow: var(--shadow); }
.cr-datenav input { border: 0; height: 38px; font-weight: 800; font-size: 15px; flex: 1; min-width: 0; text-align: center; background: transparent; outline: none; color: var(--ink); }
.cr-datenav button { width: 40px; height: 38px; border-radius: 9px; border: 0; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; cursor: pointer; flex: none; }
.cr-head > .btn { height: 46px; border-radius: 12px; }
.cr-head > .btn-icon { width: 46px; }
.cr-cour { height: 46px; border-radius: 12px; flex: 1 1 200px; }
.cr-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cr-chip { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; box-shadow: var(--shadow); min-width: 0; }
.cr-chip .l { font-size: 10.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-chip .v { font-size: 19px; font-weight: 800; white-space: nowrap; }
.cr-chip .s { font-size: 11px; font-weight: 600; }
.cr-chip.blue .v { color: var(--primary); }
.cr-chip.green .v { color: var(--green); }
.cr-group { display: flex; align-items: center; gap: 7px; margin: 8px 2px -4px; font-weight: 800; font-size: 13px; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.cr-group svg { color: var(--primary); }
.cr-gprov { font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 12px; }
.cr-stop { padding: 14px; display: flex; flex-direction: column; gap: 10px; border-left: 4px solid var(--primary); }
.cr-stop.late { border-left-color: var(--red); }
.cr-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cr-top .pill { height: 22px; padding: 0 8px; font-size: 10.5px; }
.cr-code { font-weight: 800; color: #2563eb; cursor: pointer; font-size: 14px; }
.cr-name { font-size: 17px; font-weight: 800; line-height: 1.25; }
.cr-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cr-btn { height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 15px; text-decoration: none !important; }
.cr-btn.call { background: var(--primary-soft); color: var(--primary); border: 1px solid #d5d8ff; }
.cr-btn.wa { background: #25d366; color: #fff; box-shadow: 0 4px 12px rgba(37,211,102,.3); }
.cr-btn:active { transform: translateY(1px); }
.cr-addr { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.cr-addr > svg { color: var(--red); margin-top: 1px; }
.cr-map { height: 42px; width: 100%; border-radius: 11px; text-decoration: none !important; }
.cr-items { background: #f7f8fc; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.cr-items .prodline { font-size: 13px; }
.cr-cod { border: 2px dashed #0f8a63; background: var(--green-soft); color: #065f46; border-radius: 12px; text-align: center; padding: 9px; font-size: 21px; font-weight: 900; letter-spacing: .01em;
  display: flex; align-items: center; justify-content: center; gap: 6px; }
.cr-cod.paid { border-color: #a78bfa; background: #f1ebff; color: #5b21b6; font-size: 15px; }
.cr-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; }
.cr-actions .btn { height: 52px; font-size: 14.5px; border-radius: 12px; white-space: normal; line-height: 1.15; font-weight: 800; }
.cr-ok { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 4px 12px rgba(15,138,99,.25); }
.cr-ok:hover { background: #0c7654; }
.cr-ko { background: #fff; color: #b45f00; border-color: #f6d9a8; }
.cr-ko:hover { background: var(--orange-soft); }
@media (max-width: 560px) {
  .cr-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-chip .v { font-size: 17px; }
  .cr-head > .btn { flex: none; }
}

/* ── courier cash ── */
.cc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cc-kpis .kpi .sub { font-size: 12px; font-weight: 600; }
.cc-kpis .kpi.hero .sub { color: #dfe1ff; }
.cc-days { display: none; }
.cc-day { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.cc-day .top { display: flex; justify-content: space-between; align-items: center; }
.cc-day .mid { display: flex; justify-content: space-between; align-items: baseline; }
.cc-day .mid b { font-size: 20px; }
.cc-day .split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 12.5px; border-top: 1px solid var(--line-2); padding-top: 8px; }
.cc-day .split span { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cc-daytot { background: linear-gradient(135deg, #2f33f0, #1f22c9); color: #fff; border: 0; }
.cc-daytot .split { border-top-color: rgba(255,255,255,.2); } .cc-daytot .split span { color: #c7cbff; }
@media (max-width: 1000px) { .cc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cc-table { display: none; }
  .cc-days { display: flex; flex-direction: column; gap: 8px; }
  .cc-kpis { gap: 8px; }
  .cc-kpis .kpi { padding: 10px 10px 9px; gap: 4px; }
  .cc-kpis .kpi .val { font-size: 18px; }
  .cc-kpis .kpi .ico { width: 28px; height: 28px; }
  .cc-kpis .kpi .lab { font-size: 10px; letter-spacing: .04em; }
  .cc-kpis .kpi .sub { font-size: 10.5px; }
  .cc-seg { width: 100%; } .cc-seg button { flex: 1; padding: 0 6px; }
  .cr-page .daterange { width: 100%; justify-content: space-between; } .cr-page .daterange input { width: auto; flex: 1; min-width: 0; }
}
