@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@500;600;700;800&display=swap");

/* Lucky look: bright pastels, rounded and friendly. Loaded after style.css. */
:root {
  --paper: #f4fbf7;
  --surface: #ffffff;
  --ink: #33475b;
  --muted: #5e7080;
  --line: #e1f1e8;
  --line-strong: #cfe9dc;
  --brand: #5fcfa0;
  --brand-dark: #2f6b53;
  --brand-soft: #d6f3e4;
  --side: #ffffff;
  --side-hover: #eaf7f0;
  --danger: #b3342b;
  --danger-soft: #ffe1ec;
  --marigold: #ffd84d;
  --radius: 28px;
  --radius-sm: 16px;
  --display: "Fredoka", "Nunito", ui-rounded, "SF Pro Rounded", "Avenir Next Rounded", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, sans-serif;
}
body { font-weight: 600; }
h1, h2, h3 { font-weight: 600; letter-spacing: 0; }
:focus-visible { outline: 3px solid #f2a65a; }

/* ---------- sidebar ---------- */
.side { background: #fff; color: var(--ink); border-right: 2px solid var(--line); }
.brand { color: var(--ink); font: 700 22px/1.1 var(--display); }
.brand .brand-mark { display: inline-flex !important; }
.brand-mark svg { display: block; }
.find input { background: var(--paper); border: 2px solid var(--line-strong); color: var(--ink); border-radius: 999px; padding: 0 18px; }
.find input::placeholder { color: var(--muted); }
.find input:focus { border-color: #5fcfa0; box-shadow: 0 0 0 3px #d6f3e4; }
.nav a, .side-foot a { color: var(--ink); border-radius: 16px; font-weight: 700; }
.nav a:hover, .side-foot a:hover { background: var(--side-hover); color: var(--ink); }
.nav a.on { background: #cff1e0; color: #1e4a3a; }
.nav .badge { background: #fff1b8; color: #6b5200; }

/* ---------- buttons, fields ---------- */
.btn, button { border-radius: 999px; background: #5fcfa0; border-color: #5fcfa0; color: #143d2e; font-weight: 800; }
.btn:hover, button:hover { background: #4cbf90; border-color: #4cbf90; }
.btn.secondary, button.secondary { background: #fff; color: #24493a; border: 2px solid var(--line-strong); }
.btn.secondary:hover, button.secondary:hover { background: #eaf7f0; }
.btn.amber, button.amber { background: #ffd84d; border-color: #ffd84d; color: #4f3d00; }
.btn.amber:hover, button.amber:hover { background: #f5c92c; border-color: #f5c92c; }
.btn.danger, button.danger { background: #fff; color: var(--danger); border: 2px solid #f1c1cf; }
.btn.danger:hover, button.danger:hover { background: var(--danger-soft); }
input, select, textarea { border: 2px solid var(--line-strong); border-radius: 16px; font-weight: 600; }
input:focus, select:focus, textarea:focus { border-color: #5fcfa0; box-shadow: 0 0 0 3px #d6f3e4; }
label { font-weight: 800; }
.flash { display: flex; align-items: center; gap: 12px; border-radius: 22px; border-left-width: 0; font-weight: 700; background: #d6f3e4; color: #24493a; }
.flash.error { background: #ffe1ec; color: #6b2444; }
.flash.sale { background: #fff1b8; color: #4f3d00; }
.flash-lucky { flex: none; margin: -10px 0; }

/* ---------- cards and tables ---------- */
.card, .table-wrap, .panel, .bulk .form-grid { border: 2px solid var(--line); border-radius: 28px; }
.tbl th { background: #f4fbf7; color: var(--muted); }
.tbl tbody tr:hover { background: #f4fbf7; }
.tab { border: 2px solid var(--line); border-radius: 999px; font-weight: 800; }
.tab:hover { border-color: var(--line-strong); }
.tab.on { background: #5fcfa0; border-color: #5fcfa0; color: #143d2e; }
.tab .n { background: #eaf7f0; }
.tab.on .n { background: #fff; color: #143d2e; }
.tab-problem .n { background: #ffe1ec; color: #8a3358; }
.tab-problem.on { background: #ffc8dd; border-color: #ffc8dd; color: #6b2444; }
.tab-problem.on .n { background: #fff; color: #6b2444; }
.seg { background: #e1f1e8; border-radius: 999px; }
.seg a { border-radius: 999px; }
.chip { background: #eaf0f4; }
.st-ordered { background: #eaf0f4; color: #3e515b; }
.st-in_stock { background: #d4ecff; color: #1f5280; }
.st-listed { background: #d6f3e4; color: #1e5a3e; }
.st-pending { background: #fff1b8; color: #6b5200; }
.st-sold { background: #e7dfff; color: #4b3c8c; }
.src-pallet { background: #ffe3d1; color: #8a4b22; }
.src-influencer { background: #e7dfff; color: #4b3c8c; }
.sku-tag { border-color: #5b6b7c; border-radius: 6px 16px 16px 6px; color: var(--ink); }
.sku-tag::before { border-color: #5b6b7c; }
a.sku-tag:hover { background: #fff6d8; }
.pipeline .count { background: #eaf7f0; }
.pipeline a:hover .count { background: #d6f3e4; }
.pipeline .count.warn, .tab-problem .n { background: #ffe1ec; color: #8a3358; }
.callout { background: #fff1b8; border-left-color: #ffd84d; border-radius: 20px; }
.preview.ok { background: #d6f3e4; border-color: #b8ddd2; }
.sale-line { background: #f3eeff; border-radius: 16px; }
.amazon-chip { background: #fff1b8; border-color: #f2dc86; color: #6b5200; }

/* ---------- Lucky animation ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.5); } 50% { opacity: 1; transform: scale(1); } }
@keyframes sway { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes wave { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
@keyframes drip { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
@keyframes grow { from { width: 0; } }
@keyframes hop { 0%, 100% { transform: translate(-50%, 0); } 40% { transform: translate(-50%, -12px); } }
.lucky .bob { animation: bob 2.6s ease-in-out infinite; }
.lucky .wl, .lucky .wr { transform-box: fill-box; animation: flap .45s ease-in-out infinite alternate; }
.lucky .wl { transform-origin: 100% 100%; }
.lucky .wr { transform-origin: 0% 100%; animation-direction: alternate-reverse; }
@keyframes flap { from { transform: rotate(-7deg); } to { transform: rotate(9deg); } }
.lucky .twinkle { animation: twinkle 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.lucky .sway, .clover-icon .sway { animation: sway 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.lucky .wave { animation: wave 1s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.lucky .drip { animation: drip 2s ease-in infinite; }
.lucky.still *, .lucky.still { animation: none !important; }
.goal-bar .fill { animation: grow 1.6s ease-out; }
.hopper { animation: hop 1.3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- home hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 30px 36px; margin-bottom: 22px; border-radius: 32px; background: #d6f3e4; color: #24493a; overflow: hidden; }
.hero-behind { background: #e7dfff; color: #35286e; }
.hero-reached { background: #fff1b8; color: #4f3d00; }
.hero-goals { background: #fff1b8; color: #4f3d00; padding: 22px 32px; }
.hero-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; }
.hero h1 { font-size: 42px; line-height: 1.1; font-weight: 700; color: inherit; }
.hero p { margin: 0; font-size: 18px; line-height: 1.5; max-width: 480px; font-weight: 600; }
.hero-chip { align-self: flex-start; background: #fff; border-radius: 999px; padding: 5px 14px; font-weight: 800; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hero .btn.secondary { color: inherit; border-color: transparent; }
.hero-art { flex: 0 0 280px; position: relative; display: flex; justify-content: center; padding-top: 34px; }
.hero-art::before { content: ""; position: absolute; left: 30px; right: 30px; top: 50px; bottom: 0; border-radius: 50%; background: rgba(255,255,255,.55); }
.hero-art .lucky { position: relative; }
.hero-art.small-art { flex-basis: 150px; padding-top: 0; }
.hero-art.small-art::before { top: 10px; }
.bubble { position: absolute; top: 0; right: 0; z-index: 2; background: #fff; border-radius: 20px 20px 20px 4px; padding: 7px 14px; font-weight: 800; font-size: 15px; box-shadow: 0 4px 0 rgba(0,0,0,.08); color: inherit; }
.empty .lucky { display: block; margin: 0 auto 6px; }

/* ---------- goal bar ---------- */
.goal-card { padding: 24px 28px; }
.goal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.goal-head a { font-weight: 800; }
.goal-bar { --t: 46px; position: relative; height: 128px; margin: 8px 6px 0; }
.goal-bar.two-rows { --t: 82px; height: 164px; }
.goal-bar .track { position: absolute; left: 0; right: 0; top: var(--t); height: 30px; border-radius: 15px; background: #e8f3ee; }
.goal-bar .fill { position: absolute; left: 0; top: var(--t); height: 30px; border-radius: 15px; background: #8fddb8; }
.hopper { position: absolute; top: var(--t); width: 30px; height: 30px; z-index: 2; }
.flag { z-index: 1; position: absolute; transform: translateX(-50%); border-radius: 999px; padding: 5px 14px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.flag-base { top: 0; background: #e7dfff; color: #4b3c8c; }
.flag-goal { top: 0; background: #fff1b8; color: #6b5200; }
.flag.edge-l { transform: none; }
.flag.edge-r { transform: translateX(-100%); }
.two-rows .flag-base { top: 36px; }
.flag-pace { top: calc(var(--t) + 52px); background: #ffe3d1; color: #8a4b22; }
.line { position: absolute; transform: translateX(-1.5px); }
.line-base { top: calc(var(--t) - 16px); height: 52px; border-left: 3px dashed #b7a6f0; }
.two-rows .line-base { top: 68px; height: calc(var(--t) - 36px); }
.line-goal { top: 32px; height: calc(var(--t) + 20px); border-left: 3px dashed #e8c44a; }
.line-pace { top: var(--t); height: 50px; border-left: 3px dashed #f2a65a; }
.goal-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.gs { flex: 1 1 200px; border-radius: 20px; padding: 14px 18px; }
.gs .k { font-weight: 800; font-size: 14px; }
.gs .v { font: 600 22px/1.25 var(--display); margin-top: 2px; }
.gs-base { background: #f3eeff; color: #4b3c8c; }
.gs-goal { background: #fff8d9; color: #6b5200; }
.gs-pace { background: #e6f6ee; color: #2f6b53; }
.gs .v { color: var(--ink); }

/* ---------- catch-up plan ---------- */
.plan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; align-items: center; gap: 14px; background: #f4fbf7; border-radius: 20px; padding: 12px 14px; flex-wrap: wrap; }
.plan .grow { flex: 1 1 180px; }
.step { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 18px var(--display); color: #33475b; vertical-align: middle; margin-right: 6px; }
.plan .step { margin-right: 0; }
.s1, .s-butter { background: #ffd84d; color: #5a4500; }
.s2, .s-pink { background: #ffc8dd; color: #6b2444; }
.s3 { background: #c9e8ff; color: #183f63; }
.s-lav { background: #e7dfff; color: #4b3c8c; }
.good-news { background: #e6f6ee; border-color: #e6f6ee; }
.good-news h2 { color: #24493a; }

/* ---------- stat tiles ---------- */
.stats { background: none; border: 0; gap: 16px; }
.stat { border: 0 !important; border-radius: 28px; padding: 20px 24px; }
.stat .num { font: 700 38px/1.1 var(--display); letter-spacing: 0; }
.stat .lbl { color: inherit; font-weight: 700; opacity: .85; }
.t-sky { background: #d4ecff; color: #183f63; }
.t-butter { background: #fff1b8; color: #4f3d00; }
.t-mint { background: #d6f3e4; color: #24493a; }
.t-lav { background: #e7dfff; color: #35286e; }

/* ---------- goals page ---------- */
.goals-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.goals-main { flex: 3 1 420px; min-width: 0; }
.goals-side { flex: 2 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }
.goals-main h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cost-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; margin-bottom: 10px; }
.cost-row input { background: #f4fbf7; }
.cost-amt { text-align: right; font-weight: 800; }
.link-btn { background: none; border: 0; min-height: 0; padding: 6px 0; color: #2f6b53; font-weight: 800; text-decoration: underline; border-radius: 6px; }
.link-btn:hover { background: none; color: #1e4a3a; }
.goal-input { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.goal-input label { margin: 0; font-size: 16px; }
.goal-input input { width: 170px; font: 700 26px var(--display); text-align: right; }
input[type=range] { accent-color: #5fcfa0; padding: 0; border: 0; box-shadow: none; }
.slider-scale { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: var(--muted); }
.hint-box { margin-top: 12px; background: #f3eeff; color: #4b3c8c; border-radius: 18px; padding: 12px 16px; font-weight: 700; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; cursor: pointer; position: relative; margin: 0; }
.switch > span { display: flex; flex-direction: column; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.switch i { flex: none; width: 52px; height: 30px; border-radius: 15px; background: #d9e3de; position: relative; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: #8fddb8; }
.switch input:checked + i::after { transform: translateX(22px); }
.switch input:focus-visible + i { outline: 3px solid #f2a65a; outline-offset: 2px; }
.sum { display: flex; flex-direction: column; gap: 6px; border-radius: 28px; padding: 24px 26px; }
.sum .k { font-weight: 800; font-size: 15px; }
.sum .big { font: 700 46px/1.05 var(--display); }
.sum-lav { background: #e7dfff; color: #35286e; }
.sum-mint { background: #d6f3e4; color: #24493a; }
.save-btn { width: 100%; min-height: 52px; font-size: 17px; }

@media (max-width: 760px) {
  .hero { padding: 22px 20px; }
  .hero h1 { font-size: 32px; }
  .hero-art { flex-basis: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .goals-side { position: static; }
  .flag { font-size: 12px; padding: 4px 10px; }
  .tabbar a.on { color: #2f6b53; }
  .tabbar .badge { background: #fff1b8; color: #6b5200; }
}

/* goal slider */
input[type=range] { -webkit-appearance: none; appearance: none; height: 12px; border-radius: 6px; background: #e1f1e8; min-height: 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #5fcfa0; border: 4px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #5fcfa0; border: 4px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; }
input[type=range]::-moz-range-track { height: 12px; border-radius: 6px; background: #e1f1e8; }

.side-note { font-size: 13px; font-weight: 700; color: var(--muted); padding: 4px 12px 8px; }

/* ---------- sales browser ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.period-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 18px; }
.period-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1 1 220px; justify-content: center; }
.period-label h2 { font-size: 26px; text-align: center; }
.btn.disabled { opacity: .45; pointer-events: none; }
.jump { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.jump input { width: auto; min-height: 36px; padding: 4px 10px; }
.seg.tight { margin: 0; }
.seg.tight a { padding: 6px 14px; }
.sales-tiles .stat { display: flex; flex-direction: column; gap: 4px; }
.sales-tiles .vs { font-size: 13px; opacity: .8; }
.chg { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 800; background: #ffffffaa; color: #33475b; white-space: nowrap; }
.chg-up { background: #cdf0dc; color: #1e5a3e; }
.chg-down { background: #ffd9e6; color: #8a3358; }
.chg-flat, .chg-new { background: #eef2f4; color: #4a5c6a; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.chart-head h2 { margin: 0; }
.chart-ctl { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.src-form select { min-height: 38px; padding: 4px 12px; width: auto; }
.legend { display: flex; gap: 18px; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.legend .sw { display: inline-block; width: 14px; height: 14px; border-radius: 5px; margin-right: 6px; vertical-align: -2px; }
.sw.cur, .bar.cur { background: #6fd6a8; }
.sw.prev, .bar.prev { background: #cfc2f5; }
.bars { display: flex; align-items: stretch; gap: 8px; height: 240px; padding-top: 6px; }
.bars.dense { gap: 3px; }
.bar-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.bar-col .pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.bar { flex: 1 1 0; max-width: 28px; min-height: 3px; border-radius: 8px 8px 3px 3px; }
.bars.dense .bar { border-radius: 4px 4px 2px 2px; }
.bar-col.future .bar { background: #e8f3ee; }
.bar-col.now .bar.cur { background: #ffb3cd; }
.bar-label { font-size: 12px; font-weight: 800; color: var(--muted); margin-top: 6px; }
.bars.dense .bar-label { font-size: 10px; }
.bar-val { font-size: 12px; font-weight: 800; min-height: 16px; color: var(--ink); }
.table-wrap.flat { border: 0; border-radius: 0; background: none; }
.cmp .sub2 { font-weight: 600; font-size: 12px; color: var(--muted); margin-top: 2px; white-space: normal; }
.cmp td:first-child { font-weight: 800; }
@media (max-width: 760px) {
  .period-label { order: -1; flex-basis: 100%; }
  .jump { margin-left: 0; }
  .bars { height: 190px; }
  .tabbar { grid-template-columns: repeat(5, 1fr); }
}

.lucky-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.lucky-card { border-radius: 28px; padding: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lucky-card h2 { font-size: 22px; } .lucky-card p { margin: 0; font-size: 15px; }
.tone-mint { background: #d6f3e4; } .tone-butter { background: #fff1b8; } .tone-sky { background: #d4ecff; }
.tone-lav { background: #e7dfff; } .tone-pink { background: #ffe1ec; } .tone-peach { background: #ffe3d1; }
.side-note a { color: inherit; }
.gs .s { font-size: 14px; font-weight: 700; margin-top: 4px; color: var(--muted); }
.gs-base .s { color: #4b3c8c; } .gs-goal .s { color: #6b5200; } .gs-pace .s { color: #2f6b53; }

/* ---------- orders, deliveries, shelving ---------- */
.st-delivered { background: #ffe3d1; color: #8a4b22; }
.nav .badge { background: #fff1b8; color: #6b5200; }
.sr { position: absolute; left: -9999px; }
.order-list, .ship-list { list-style: none; margin: 0; padding: 0; }
.order-row, .ship-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.order-row:first-child, .ship-row:first-child { border-top: 0; }
.o-main, .s-main { flex: 1 1 260px; min-width: 0; }
.o-name { font-weight: 800; overflow-wrap: anywhere; }
.o-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; color: var(--muted); font-size: 14px; align-items: center; }
.o-cost { font-weight: 800; min-width: 70px; text-align: right; }
.o-eta { display: flex; gap: 8px; align-items: center; }
.o-eta input { width: 158px; }
.s-field { flex: 0 1 170px; }
.s-field label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.s-field input { width: 100%; }
.sticky-save { position: sticky; bottom: 12px; display: flex; justify-content: center; padding: 10px; }
.sticky-save button { box-shadow: 0 6px 18px rgba(60, 90, 80, .22); min-width: 240px; }
.order-entry { margin-top: 18px; display: grid; gap: 8px; }
.oe-head, .oe-row { display: grid; gap: 8px; grid-template-columns: 2.4fr 1.6fr .8fr 1fr 1.4fr .5fr; }
.oe-head { font-weight: 800; font-size: 13px; }
.oe-head i { font-weight: 500; color: var(--muted); }
.oe-row input { width: 100%; min-width: 0; }
@media (max-width: 820px) {
  .oe-head { display: none; }
  .oe-row { grid-template-columns: 1fr 1fr; padding: 12px 0; border-top: 1px solid var(--line); }
  .oe-row input:first-child { grid-column: 1 / -1; }
  .o-cost { text-align: left; }
  .tabbar { grid-template-columns: repeat(7, 1fr); }
  .tabbar a { font-size: 10.5px; }
}

.more { position: relative; }
.more summary { cursor: pointer; font-weight: 800; color: var(--muted); font-size: 14px; padding: 6px 4px; }
.more[open] { display: flex; flex-direction: column; gap: 6px; }
textarea#payload { width: 100%; font-family: ui-monospace, monospace; font-size: 13px; }

/* ---------- search box, pictures, pickups ---------- */
.find { position: relative; }
.suggest { position: absolute; left: 0; right: -140px; top: calc(100% + 6px); z-index: 30; background: #fff; border: 2px solid #d9efe6; border-radius: 18px; box-shadow: 0 10px 28px rgba(60, 90, 80, .2); overflow: hidden; min-width: 280px; }
.suggest[hidden] { display: none; }
.suggest a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); font-size: 14px; }
.suggest a:first-child { border-top: 0; }
.suggest a:hover { background: #f0faf5; }
.suggest .s-sku { font-weight: 800; flex: 0 0 auto; }
.suggest .s-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.suggest .s-shelf { flex: 0 0 auto; min-width: 44px; text-align: center; background: #2f6b53; color: #fff; font-weight: 800; font-size: 17px; line-height: 1; padding: 6px 8px; border-radius: 10px; }
.suggest .s-shelf.ov, .shelf-badge.ov { background: #c9661f; }
.suggest .s-shelf.none { background: #e9edf0; color: #8a99a3; }
.suggest .s-all { justify-content: center; font-weight: 800; color: #2f6b53; }
.thumb { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: #eef6f2; border: 1px solid #d9efe6; border-radius: 14px; overflow: hidden; color: #9bbdae; text-decoration: none; }
.thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.thumb img + .ph { display: none; }
.thumb .ph { display: inline-flex; }
.item-line { display: flex; gap: 12px; align-items: flex-start; }
.item-text { min-width: 0; }
a.name-link { color: inherit; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
a.name-link:hover { color: #2f6b53; text-decoration: underline; }
.pickup-edit .pe-form { display: grid; gap: 8px; margin: 8px 0; width: 210px; max-width: 100%; text-align: left; }
.pickup-edit .pe-form input, .pickup-edit .pe-form select { width: 100%; box-sizing: border-box; min-width: 0; }
.pickup-edit label { display: grid; gap: 3px; font-size: 13px; font-weight: 800; }

.slot-picker { display: grid; gap: 6px; }
.slot-picker input, .slot-picker select { width: 100%; box-sizing: border-box; min-width: 0; }
.slot-picker .slot-note { font-weight: 600; }
.pickup-edit { position: relative; }
.pickup-edit .pe-form { position: absolute; right: 0; top: 100%; z-index: 20; width: 240px; padding: 14px; margin: 6px 0 0; background: #fff; border: 2px solid var(--line, #cfe8dc); border-radius: 16px; box-shadow: 0 12px 30px rgba(40,70,60,.18); }
.pickup-edit .slot-note { display: none; }
td.go { overflow: visible; }
@media (max-width: 760px) { .pickup-edit .pe-form { position: static; width: auto; box-shadow: none; padding: 0; border: 0; } }

@media (max-width: 760px) { html, body { overflow-x: hidden; } }

/* ---- Today page */
.today-head { display: flex; align-items: center; gap: 16px; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; margin: 16px 0 20px; }
@media (max-width: 860px) { .today-grid { grid-template-columns: 1fr; } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist a, .checklist li > .tl { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #f3faf6; text-decoration: none; color: inherit; border: 2px solid #d8efe3; }
.checklist .tick { flex: 0 0 26px; height: 26px; border-radius: 9px; border: 2.5px solid #7bcfae; display: grid; place-items: center; font-weight: 900; color: #fff; background: #fff; }
.checklist li.done .tick { background: #5dd0a0; border-color: #5dd0a0; }
.checklist li.done a { opacity: .6; }
.checklist .tl { display: grid; gap: 2px; flex: 1; min-width: 0; }
.checklist .tl small { color: #5b6f78; font-weight: 600; }
.pk { display: flex; gap: 14px; padding: 12px 0; border-top: 2px solid #e6f3ec; }
.pk:first-of-type { border-top: 0; }
.pk-time { flex: 0 0 62px; text-align: center; font-weight: 900; font-size: 20px; line-height: 1.1; color: #2f4858; background: #e8f7ef; border-radius: 14px; padding: 8px 4px; align-self: flex-start; }
.pk-time small { display: block; font-size: 12px; font-weight: 800; color: #5b6f78; }
.pk.missed .pk-time, .pk.overdue .pk-time { background: #ffe3ea; }
.pk.now .pk-time { background: #ffe9a8; }
.pk-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.pk-actions { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-top: 6px; }
.pk .pickup-edit .pe-form { position: static; width: 100%; box-shadow: none; padding: 10px 0 0; border: 0; min-width: 0; }
.chip.warn { background: #ffe3ea; color: #8a1f43; margin-left: 6px; }
.chip.ok { background: #d9f3e5; color: #17603f; margin-left: 6px; }
.today-settings { margin-bottom: 24px; }
.inline-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.inline-form input { width: 90px; }
#lucky-toasts { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 84px; display: grid; gap: 10px; pointer-events: none; max-width: 520px; margin: 0 auto; }
@media (min-width: 761px) { #lucky-toasts { left: auto; right: 24px; bottom: 24px; width: 380px; } }
.toast { pointer-events: auto; position: relative; background: #fff; border: 3px solid #5dd0a0; border-radius: 18px; padding: 12px 40px 12px 16px; box-shadow: 0 12px 30px rgba(40,70,60,.22); display: grid; gap: 3px; }
.toast.warn { border-color: #ff8fab; }
.toast button { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: #5b6f78; }
.today-nudge { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 16px; border-radius: 20px; background: #fff7d6; border: 2.5px solid #ffd95e; text-decoration: none; color: #3a3320; }
.today-nudge span:nth-child(2) { display: grid; flex: 1; }
.today-nudge small { font-weight: 600; color: #6b5f2e; }
.today-nudge .go { font-weight: 900; }
.today-nudge .i { width: 26px; height: 26px; }
.today-head { justify-content: flex-start; text-align: left; }
.today-head > div { text-align: left; }

/* ---- pallets */
.pallet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pallet-card { display: grid; gap: 10px; text-decoration: none; color: inherit; }
.bar { height: 12px; border-radius: 99px; background: #e2f2ea; overflow: hidden; }
.bar.big { height: 18px; margin-bottom: 8px; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, #5dd0a0, #ffd95e); border-radius: 99px; }
.pallet-row { flex-wrap: wrap; align-items: flex-start; content-visibility: auto; contain-intrinsic-size: auto 150px; }   /* the whole-pallet page has hundreds of rows; skip drawing the off-screen ones */
.shots { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.shot { display: grid; gap: 4px; font-size: 12px; font-weight: 800; padding: 8px 10px; border: 2px dashed #7bcfae; border-radius: 14px; background: #f3faf6; cursor: pointer; max-width: 150px; }
.shot input { font-size: 11px; max-width: 130px; }
.mini-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.mini-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 2px solid #d8efe3; }
.mini-photos.big img { width: 140px; height: 140px; }
.mini-photos a { text-decoration: none; display: grid; gap: 2px; color: #5b6f78; }
ul.plain { list-style: none; padding: 0; display: grid; gap: 10px; }
@media (max-width: 760px) { .pallet-row .s-field, .pallet-row .shots { width: 100%; } .shot { max-width: none; flex: 1; } }

.today-pallets { margin-bottom: 20px; }
.pal-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 12px 0; border-top: 2px solid #e6f3ec; }
.pal-row:first-of-type { border-top: 0; }
.pal-main { flex: 1 1 260px; min-width: 0; display: grid; gap: 6px; }
.pal-goal input { width: 72px; }

.cdot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px;vertical-align:middle}
.cdot.pink{background:#f06fa8}.cdot.purple{background:#8a5cf0}
.colorpick{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.cp{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;border:2px solid transparent;cursor:pointer;font-weight:600}
.cp.pink{background:#fde4ef;border-color:#f06fa8}.cp.purple{background:#ece4fd;border-color:#8a5cf0}
.cp input{width:auto;margin:0}
.colorbar,.colorask{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;margin-bottom:12px}

.range-card summary{cursor:pointer}.range-form{display:grid;gap:10px;margin-top:12px;max-width:420px}
.gaps{border-color:#f0c36a}.gap-row{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:6px 0}

.view-switch{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.pallet-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:8px 0}.pallet-tools input[type=search]{flex:1;min-width:220px}
.pallet-tools a.on{font-weight:800;text-decoration:underline}
.type-head{list-style:none;font-weight:800;padding:14px 4px 4px;border-bottom:2px solid #d9efe6;position:sticky;top:0;background:inherit}

.bonus{color:#2f7a3b;font-weight:700;display:flex;align-items:center;gap:2px}
.bonus-pill{display:inline-flex;align-items:center;gap:4px;background:#e4f6e0;color:#2f7a3b;border-radius:999px;padding:2px 10px;font-weight:700}

/* ---------- Lucky pictures ---------- */
img.lucky { display: inline-block; object-fit: contain; animation: luckyFloat 3.2s ease-in-out infinite; transform-origin: 50% 90%; user-select: none; -webkit-user-drag: none; }
img.lucky.face-cry, img.lucky.face-shock { animation-name: luckyShake; animation-duration: 1.4s; }
img.lucky.face-sleep { animation-name: luckyBreathe; animation-duration: 4s; }
img.lucky.face-cool, img.lucky.face-music, img.lucky.face-heart { animation-name: luckyHop; animation-duration: 1.6s; }
img.lucky:hover { animation-name: luckyHop; animation-duration: .6s; }
img.lucky.still { animation: none; }
@keyframes luckyFloat { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-3px) rotate(1.5deg); } }
@keyframes luckyHop { 0%,100% { transform: translateY(0) scale(1,1); } 30% { transform: translateY(-3px) scale(.98,1.03); } 55% { transform: translateY(0) scale(1.02,.97); } }
@keyframes luckyShake { 0%,100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-3px) rotate(-2deg); } 40% { transform: translateX(3px) rotate(2deg); } 60% { transform: translateX(-2px) rotate(-1deg); } 80% { transform: translateX(2px) rotate(1deg); } }
@keyframes luckyBreathe { 0%,100% { transform: scale(1,1); } 50% { transform: scale(1.03,1.05); } }
@media (prefers-reduced-motion: reduce) { img.lucky { animation: none !important; } }
.flash-lucky img.lucky, .flash img.lucky { vertical-align: middle; margin-right: 8px; }

.lucky-tile { display: inline-block; flex: none; border-radius: 26%; overflow: hidden; background: radial-gradient(circle at 40% 30%, #FFF8D6, #FFE9A0); box-shadow: 0 4px 14px rgba(120,80,0,.14), inset 0 0 0 3px rgba(255,255,255,.7); line-height: 0; }
.lucky-tile img.lucky { transform-origin: 50% 60%; }
.flash-lucky .lucky-tile { border-radius: 30%; box-shadow: none; }
.hero-art .lucky-tile { position: relative; }
.empty .lucky-tile { display: block; margin: 0 auto 6px; }
.lucky-tile img.lucky { width: 112%; height: 112%; max-width: none; margin: -4% 0 0 -6%; }
.today-head { display: flex; align-items: center; gap: 14px; }
@media (max-width: 720px) { .today-head .lucky-tile { width: 76px !important; height: 76px !important; } }

.shelf-group{margin:10px 0;border-top:2px solid #e4f1ec;padding-top:8px}.shelf-group summary{cursor:pointer;font-size:16px}
.si-row{display:grid;grid-template-columns:140px 1fr auto;gap:10px;align-items:start;padding:10px 0;border-bottom:1px solid #eef5f2}
.si-item{margin:2px 0}.si-actions{display:flex;gap:6px;flex-wrap:wrap}
@media (max-width:720px){.si-row{grid-template-columns:1fr}}
.tabs[hidden]{display:none!important}

.st-loss{background:#f6dcdc;color:#8a2a2a}
.dupe-card{border-color:#f0c36a;background:#fffaf0}.dupe-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.dup-row{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #eef5f2}
.dup-side{min-width:0}.dup-arrow{font-size:20px;color:#8a9aa2}.dup-actions{grid-column:1/-1;display:flex;gap:6px;flex-wrap:wrap}
@media (max-width:720px){.dup-row{grid-template-columns:1fr}.dup-arrow{display:none}}
.merge-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media (max-width:720px){.merge-grid{grid-template-columns:1fr}}
.merge-card{border:3px solid #e1ece7;border-radius:16px;padding:12px 14px;background:#fff}.merge-card.on{border-color:#4aa86a;background:#f4fbf6}
.merge-tbl td,.merge-tbl th{padding:8px 10px;vertical-align:top;text-align:left}.merge-tbl tr.conflict{background:#fff6dd}
.merge-tbl label{display:flex;gap:6px;align-items:flex-start;font-weight:500}.merge-tbl input[type=radio]{width:auto;margin-top:4px}
.refund-sum{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:12px 0}
.refund-sum div{background:#fff;border:2px solid #e6f0ec;border-radius:14px;padding:10px 12px}.refund-sum b{display:block;font-size:20px}
.choice{display:flex;gap:10px;align-items:flex-start;border:2px solid #e1ece7;border-radius:14px;padding:10px 12px;margin:6px 0;cursor:pointer}
.choice input{width:auto;margin-top:5px}.choice.on{border-color:#4aa86a;background:#f4fbf6}
.effect{background:#f4fbf6;border:2px dashed #9fd5b2;border-radius:14px;padding:10px 14px;margin:12px 0}
.chip.refunded{background:#fde4ef;color:#9a2f63}
.neg-text{color:#a33}
.loss-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fdeeee;border-radius:12px;padding:10px 14px;margin:10px 0}
.choice .merge-card{border:0;padding:0;background:none}

.head-lucky{flex:none;margin-right:14px}.page-head > .head-lucky + div{flex:1;min-width:0}
.hero-art{flex-basis:210px}.hero-art::before{left:20px;right:20px;top:40px}
.hero-art.small-art{flex-basis:130px}
.toast{grid-template-columns:auto 1fr;column-gap:12px;align-items:center}
.toast .t-face{grid-row:1 / span 3;display:block}
.toast .t-actions{display:flex;gap:8px;align-items:center;margin-top:6px;flex-wrap:wrap}
.toast .t-actions button{position:static;font-size:14px;font-weight:800;border:2px solid #5dd0a0;border-radius:999px;padding:4px 14px;background:#fff;color:#1f3b33}

.toast.urgent{border-color:#ff7a59}.toast.warn .t-actions button{border-color:#ff8fab}.toast.urgent .t-actions button{border-color:#ff7a59;background:#fff1ec}
.toast.nag{animation:toastBuzz .6s ease-in-out 3}
@keyframes toastBuzz{0%,100%{transform:translateX(0)}15%{transform:translateX(-5px) rotate(-.6deg)}35%{transform:translateX(5px) rotate(.6deg)}55%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@media (prefers-reduced-motion:reduce){.toast.nag{animation:none}}

/* pickups by day: each weekday has its own color */
:root{--d0:#cfe3ff;--d0b:#4f86d6;--d1:#ffd3e4;--d1b:#e0568f;--d2:#cdeeda;--d2b:#3fa56a;--d3:#ffe0bf;--d3b:#e58a2b;--d4:#e3d6fb;--d4b:#8a5cd6;--d5:#c6eeee;--d5b:#2fa3a3;--d6:#fff2b8;--d6b:#d1ad1a}
.day-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 8px;padding:8px 14px;border-radius:14px;border-left:10px solid var(--c2,#9aa);background:var(--c1,#eef)}
.day-head h2{margin:0;font-size:20px}.day-count{font-weight:700;font-size:14px;color:#456}
.day-badge{display:inline-block;margin-left:8px;padding:2px 12px;border-radius:999px;background:#fff;font-size:13px;font-weight:800;vertical-align:middle}
.day-head.day-today{box-shadow:0 0 0 3px var(--c2)}
.day-0{--c1:var(--d0);--c2:var(--d0b)}.day-1{--c1:var(--d1);--c2:var(--d1b)}.day-2{--c1:var(--d2);--c2:var(--d2b)}.day-3{--c1:var(--d3);--c2:var(--d3b)}
.day-4{--c1:var(--d4);--c2:var(--d4b)}.day-5{--c1:var(--d5);--c2:var(--d5b)}.day-6{--c1:var(--d6);--c2:var(--d6b)}
.day-earlier{--c1:#f9d6d6;--c2:#c94c4c}.day-none{--c1:#e9edf0;--c2:#8a99a3}
.table-wrap[class*="day-"]{border-left:10px solid var(--c2);border-radius:14px}
.table-wrap[class*="day-"] .tbl tbody tr{background:linear-gradient(90deg,var(--c1) 0,transparent 55%)}
@media (max-width:760px){.table-wrap[class*="day-"] .tbl tbody tr{background:var(--c1)}}

/* home: today's goal is the star, the month story sits small underneath */
.today-goal{background:rgba(255,255,255,.72);border-radius:22px;padding:14px 20px 16px;max-width:520px}
.tg-label{font-weight:800;font-size:14px;text-transform:uppercase;letter-spacing:.06em;opacity:.75}
.tg-nums{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:2px 0 8px}
.tg-big{font-size:52px;line-height:1;font-weight:800;color:inherit}
.tg-of{font-size:22px;font-weight:700}
.tg-bar{height:16px;border-radius:999px;background:rgba(0,0,0,.1);overflow:hidden}
.tg-line{margin-top:8px;font-size:18px;font-weight:600;line-height:1.4}
.tg-sub{display:block;font-size:14px;font-weight:600;opacity:.8;margin-top:2px}
.hero:not(.hero-none) .month-note{font-size:14px;line-height:1.45;opacity:.85;font-weight:500;max-width:520px}
@media (max-width:720px){.tg-big{font-size:42px}.tg-of{font-size:18px}}

.today-goal{position:relative}
.tg-bar{position:relative}.tg-fill{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#5dd0a0,#3fa56a);transition:width .6s}
.tg-bar .tg-fill{background:linear-gradient(90deg,#5dd0a0,#3fa56a)}
.today-goal.done .tg-fill{background:linear-gradient(90deg,#ffd45a,#ffb020)}
.tg-tick{position:absolute;top:-3px;bottom:-3px;width:4px;margin-left:-2px;background:#35286e;border-radius:2px;opacity:.75}
.tg-flag{position:relative;height:22px}.tg-flag span{position:absolute;right:0;transform:translateX(0);white-space:nowrap;font-size:13px;font-weight:800;background:#fff;border-radius:999px;padding:1px 10px}
.tg-flag-top{margin-bottom:2px;width:0}.tg-flag-top span{right:auto;left:0;transform:translateX(-100%);}
.tg-end{text-align:right;font-size:13px;font-weight:800;margin-top:4px}.tg-end span{background:#fff;border-radius:999px;padding:1px 10px}

/* ---------- shelf badge: quick to read on every page ---------- */
.shelf-badge{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;flex:none;min-width:64px;padding:6px 10px 7px;border-radius:14px;background:#2f6b53;color:#fff;font-family:var(--display);font-weight:700;font-size:28px;line-height:1;letter-spacing:.01em;text-align:center}
.shelf-badge small{font-size:9px;letter-spacing:.16em;font-weight:700;opacity:.85;margin-bottom:3px}
.shelf-badge.none{background:#eef1f3;color:#8a99a3;border:2px dashed #b9c4cc;padding:4px 8px 5px}
.shelf-badge.big{min-width:104px;padding:10px 18px 12px;border-radius:22px;font-size:54px}
.shelf-badge.big small{font-size:12px;margin-bottom:4px}
.shelf-badge.sm{min-width:46px;padding:4px 8px 5px;border-radius:11px;font-size:20px}
.shelf-badge.sm small{display:none}
.sku-shelf-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:6px}
.item-line .shelf-badge{align-self:center}
.pk-shelf{display:flex;align-items:center;gap:10px}
.row-list .shelf-badge{margin-right:2px}
.shelf-quick{display:flex;gap:6px;margin-top:8px;align-items:center}
.shelf-quick input{width:84px;text-transform:uppercase;font-weight:800;text-align:center}
.same-num{border-top:2px dashed var(--line-strong);padding:12px 0}
.same-num:first-of-type{border-top:0}
.sn-head{margin-bottom:6px;font-size:17px}
.sn-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:6px 0}
.sn-text{flex:1 1 240px;min-width:0}
.sn-actions{margin-top:6px;display:flex;gap:12px;align-items:center}
@media (max-width:760px){.shelf-badge{min-width:56px;font-size:24px}.shelf-badge.big{min-width:88px;font-size:44px}}

/* today: delist list and my to-do */
.todo-row{display:flex;align-items:center;gap:12px;padding:8px 0;border-top:1px dashed var(--line-strong);flex-wrap:wrap}
.todo-row:first-child{border-top:0}
.todo-row>span:first-child,.todo-text{flex:1 1 220px;min-width:0}
.todo-row.done .todo-text{text-decoration:line-through;opacity:.55}
.todo-check{width:30px;height:30px;padding:0;border-radius:10px;border:2.5px solid #7bcfae;background:#fff;color:#fff;font-weight:900;display:grid;place-items:center;cursor:pointer}
.todo-row.done .todo-check{background:#5dd0a0;border-color:#5dd0a0}
.todo-add{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 10px}
.todo-add input[name=text]{flex:1 1 240px}.todo-who{flex:0 1 150px}

/* shelf recount: hints in Problem solve and the list of numbers Lucky doesn't know */
.recount-hint{flex-wrap:wrap;margin-top:6px;gap:8px}
.ol-list{margin-top:8px;max-height:520px;overflow:auto}
.ol-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:6px 0;border-top:1px dashed var(--line-strong)}
.ol-row:first-child{border-top:0}

.flyp-card{margin:0 0 12px;padding:10px 14px}
.chip.flyp-done{background:#e4f5e8;color:#1f6b36}
.chip.flyp-bad{background:#fde8e6;color:#9a2b22;white-space:normal}
.flyp-chips{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.flyp-chips .chip{text-decoration:none;color:inherit;border:1px solid #d9d2c3;background:#fff}
.flyp-chips .chip.on{background:#2b2b2b;color:#fff;border-color:#2b2b2b}
.chip.flyp-done,.chip.flyp-bad{white-space:normal;max-width:100%}
.flyp-note{max-width:230px;line-height:1.3}
.flyp-card .small form{margin-top:6px}
.pk-today{margin-bottom:12px}
.pk-day{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.pk-day h3{margin:0}
.pk-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #e6e0d2}
.tbl td.num.go{white-space:normal;min-width:150px}
.tbl td.num.go .btn,.tbl td.num.go form{margin:0 0 4px 4px;vertical-align:middle}
@media (min-width:821px){.tbl td,.tbl th{padding-left:9px;padding-right:9px}.tbl td.num.go{padding-right:14px}}
/* long item names wrap inside their cell instead of stretching the table off the screen */
.name-cell .item-text{max-width:min(520px,100%)}
.name-cell .name{display:block;white-space:normal;max-width:none;overflow-wrap:anywhere}

/* schedule pickup + today's pending total */
.suggest .s-row { display: flex; align-items: stretch; border-top: 1px solid var(--line); }
.suggest .s-row:first-child { border-top: 0; }
.suggest .s-row a { border-top: 0; }
.suggest .s-row .s-main { flex: 1 1 auto; min-width: 0; }
.suggest .s-row .s-pk { flex: 0 0 auto; justify-content: center; font-weight: 800; font-size: 13px; color: #8a4b00; background: #fff1d6; border-left: 1px solid var(--line); padding: 9px 12px; }
.suggest .s-row .s-pk:hover { background: #ffe3ad; }
.o-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pk-stats { display: flex; gap: 18px; flex-wrap: wrap; align-items: stretch; justify-content: space-between; margin-bottom: 12px; }
.pk-stats .pk-big, .pk-stats .pk-side { flex: 1 1 220px; }
.pk-stats .pk-side { border-left: 2px dashed #e6d9bf; padding-left: 18px; }
.pk-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a4b00; }
.pk-amt { font-size: 38px; font-weight: 900; line-height: 1.1; color: #2f6b53; }
.pk-amt.sm { font-size: 26px; color: #456; }
.day-total { margin-left: auto; font-weight: 900; font-size: 18px; color: #2f6b53; }
.day-total small { font-weight: 600; font-size: 12px; color: #6b7d88; }
@media (max-width: 640px) { .pk-stats .pk-side { border-left: 0; padding-left: 0; border-top: 2px dashed #e6d9bf; padding-top: 10px; } .pk-amt { font-size: 32px; } }

.suggest { position: fixed; right: auto; min-width: 0; max-height: 80vh; overflow-y: auto; }

/* box size and weight on the pallet page and item page */
.box-group { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; flex: 1 1 100%; padding-top: 4px; border-top: 1px dashed #d8efe3; }
.box-group.flat { flex: none; border-top: 0; padding-top: 0; }
.box-label { font-size: 13px; font-weight: 800; align-self: center; margin-right: 4px; color: #2f6b53; }
.box-in { display: grid; gap: 3px; font-size: 12px; font-weight: 800; }
.box-in small { font-weight: 600; color: #6b7d88; margin-left: 3px; }
.box-in input { width: 84px; }
.box-note { margin-top: 2px; }
