/* Workspace D3: stronger colour, contrast and depth. Behaviour stays in app.js. */
:root {
  --mc-paper: #edf1f8;
  --mc-paper-2: #e1e8f3;
  --mc-line: #c9d4e5;
  --mc-line-strong: #8d9fbb;
  --mc-ink: #15243c;
  --mc-text: #344156;
  --mc-muted: #425674;
  --mc-faint: #4e607a;
  --b-50: #fce5ee;
  --b-100: #fce5ee;
  --b-600: #b12756;
  --b-700: #8d1d43;
  --info: #245acd;
  --info-tint: #dce9ff;
  --warning: #995306;
  --warning-tint: #ffedc5;
  --success: #08785a;
  --success-tint: #d9f3e7;
  --danger: #b42d3c;
  --danger-tint: #fff0f1;
  --st-new: var(--info);
  --st-new-tint: var(--info-tint);
  --mc-shadow-sm: 0 3px 9px #20375912;
  --mc-shadow-md: 0 7px 22px #20375924;
  --mc-focus: 0 0 0 3px #245cc033;
}
body { background: var(--mc-paper); }
:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; }
.workspace-skip { position: fixed; top: -100px; inset-inline-start: 20px; z-index: 9999; padding: 12px 20px; background: white; color: var(--info); border-radius: 10px; }
.workspace-skip:focus { top: 8px; }
#dashboard > header { min-height: 72px; padding: 12px 28px; background: #fff; color: var(--mc-ink); border-bottom: 1px solid var(--mc-line); gap: 8px; }
#dashboard header h1 { color: var(--mc-ink); font-size: 20px; margin-inline-end: auto; min-width: 0; }
.header-brand { width: 38px; height: 38px; flex: 0 0 auto; margin-inline-end: 6px; border-radius: 12px; display: grid; place-items: center; background: var(--b-600); color: white; }
.header-brand .ico { width: 23px; height: 23px; }
.header-action, .header-action--settings, .header-action--sound { color: var(--mc-muted); background: var(--mc-paper); border: 1px solid var(--mc-line); min-height: 42px; border-radius: 10px; }
.header-action:hover, .header-action--sound:hover { background: #e9edf5; color: var(--mc-ink); }
.header-action--settings.is-active { background: var(--b-50); color: var(--b-600); border: 1px solid #eac2cf; }
.header-action--sound { color: var(--warning); background: var(--warning-tint); border-color: #f0d8ac; }
.header-action--busy.is-on { color: white; background: var(--danger); border-color: var(--danger); }
.status-dot.online { background: var(--success); box-shadow: 0 0 0 4px var(--success-tint); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-tint); }
#connection-status { margin-inline: 8px 4px; width: 10px; height: 10px; }
.tab-bar { top: 72px; background: #fff; gap: 6px; padding: 10px 18px; }
.tab-btn { color: var(--mc-muted); min-height: 44px; border-radius: 11px; }
.tab-btn .tab-icon { display: inline-flex; }
.tab-btn.active, .tab-btn.active[data-column] { background: var(--b-50); color: var(--b-600); box-shadow: inset -3px 0 var(--b-600); }
.tab-btn:hover:not(.active) { background: var(--mc-paper); color: var(--mc-ink); }
.nav-group-label, .nav-brand, .nav-footer { display: none; }
.tab-btn.tab-new-order { min-height: 46px; box-shadow: 0 4px 10px #962f501a; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 24px; padding: 24px; border-radius: 18px; background: radial-gradient(ellipse at 8% 0%, #486cc766, transparent 58%), linear-gradient(115deg, #303b76, #152a4b); box-shadow: 0 8px 24px #152a4b18; }
.workspace-eyebrow { display: flex; align-items: center; gap: 7px; color: #9ee9df; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.workspace-heading h2 { font-size: 30px; line-height: 1.25; color: #fff; letter-spacing: -.5px; }
.workspace-heading p { color: #d8e3f9; margin-top: 7px; font-size: 15px; }
.workspace-date { display: inline-flex; align-items: center; gap: 9px; background: #ffffff12; border: 1px solid #ffffff40; border-radius: 12px; padding: 10px 14px; color: #fff; font-size: 14px; white-space: nowrap; }
.workspace-date .ico { color: #9ee9df; }
.columns { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 24px 32px; gap: 18px; min-height: 60vh; align-items: start; }
.column { min-width: 0; }
.column[data-col="confirmed"] { --lane-color: var(--info); --lane-bg: #dfeaff; --lane-line: #adc7f4; }
.column[data-col="in-weighing"] { --lane-color: var(--warning); --lane-bg: #fff0ce; --lane-line: #eac778; }
.column[data-col="ready"] { --lane-color: var(--success); --lane-bg: #dbf3e8; --lane-line: #a1d6bd; }
.column[data-col="confirmed"], .column[data-col="in-weighing"], .column[data-col="ready"] { background: var(--lane-bg); border: 1px solid var(--lane-line); border-radius: 18px; padding: 0 12px 12px; min-height: 360px; }
.column-header.confirmed, .column-header.in-weighing, .column-header.ready { padding: 17px 14px; gap: 10px; min-height: 90px; background: var(--lane-color); border-radius: 17px 17px 0 0; border-bottom: 1px solid var(--lane-color); margin: -1px -13px 14px; color: #fff; }
.column-header.confirmed::before, .column-header.in-weighing::before, .column-header.ready::before { display: none; }
.lane-icon { width: 36px; height: 36px; display: grid; place-items: center; background: #ffffff18; border: 1px solid #ffffff55; border-radius: 11px; flex: 0 0 auto; }
.lane-copy { display: flex; flex-direction: column; gap: 2px; text-align: start; }
.lane-copy strong { color: #fff; font-size: 18px; line-height: 1.3; }
.lane-copy small { font-size: 12px; font-weight: 400; color: #fff; line-height: 1.4; }
.column-count, .column-count.is-zero { margin-inline-start: auto; border-radius: 9px; min-width: 30px; height: 30px; font-size: 15px; font-weight: 700; color: var(--lane-color); background: white; border: 1px solid var(--lane-line); }
.order-card { border: 1px solid #c7d3e5; border-radius: 13px; padding: 16px; box-shadow: var(--mc-shadow-sm); margin-bottom: 12px; }
.order-card:last-child { margin-bottom: 0; }
.order-card:hover { border-color: #a9b9cd; box-shadow: var(--mc-shadow-md); }
.order-card.status-CONFIRMED { border-inline-start: 4px solid var(--info); }
.order-card.status-IN_WEIGHING { border-inline-start: 4px solid #c58321; }
.order-card.status-READY { border-inline-start: 4px solid var(--success); }
.order-card.unviewed { border-inline-start: 4px solid var(--info); box-shadow: var(--mc-shadow-sm); }
.order-card .order-number { background: var(--mc-paper); color: var(--mc-muted); border-radius: 6px; padding: 2px 7px; font-size: 12px; }
.order-card .order-name { font-size: 20px; margin-block: 9px 6px; color: var(--mc-ink); }
.order-card .order-pickup { color: var(--mc-muted); font-size: 14px; }
.order-card .order-pickup .ico { color: var(--lane-color, var(--mc-muted)); }
.order-card .order-summary { border-top: 1px solid #edf0f5; padding-top: 10px; margin-top: 10px; }
.order-items-preview { line-height: 1.7; color: var(--mc-muted); }
.unviewed-badge { background: var(--info-tint); color: var(--info); }
.card-actions { padding-top: 10px; }
.card-action--ready { background: var(--success); border-color: var(--success); color: #fff; font-weight: 700; }
.card-action--ready:hover { background: #0e6047; color: white; }
/* "סמן כנאסף/כנמסר" is the filled one, like "מוכנה"; "...ושולם" is outlined (the 02.10 review, theme.css
   R11): a rushed tap must not mark money by habit, and the main tap must not look like the "שולם" chip. */
.card-action--collected { background: var(--success); border-color: var(--success); color: #fff; font-weight: 700; }
.card-action--collected:hover { background: #0e6047; color: white; }
.card-action--paid { background: #fff; border-color: var(--success); color: var(--success); }
.empty-state { background: #ffffffa6; border: 1px dashed #cbd4e1; border-radius: 12px; padding: 28px 16px; margin: 6px 0; line-height: 1.7; color: var(--mc-muted); }
.ready-section-header { color: var(--success); font-size: 13px; padding-inline: 2px; }
.column:not([data-col="confirmed"]):not([data-col="in-weighing"]):not([data-col="ready"]) { --section-color: var(--b-600); --section-tint: var(--b-50); }
.column[data-col="prep"] { --section-color: var(--warning) !important; --section-tint: var(--warning-tint) !important; }
.column[data-col="customers"], .column[data-col="conversations"] { --section-color: var(--success) !important; --section-tint: var(--success-tint) !important; }
.column[data-col="deliveries"] { --section-color: #076e94 !important; --section-tint: #d5f1fb !important; }
.column[data-col="archive"] { --section-color: #4c627d !important; --section-tint: #e0e8f1 !important; }
.column:not([data-col="confirmed"]):not([data-col="in-weighing"]):not([data-col="ready"]) > .column-header { padding: 14px 18px; margin-bottom: 18px; background: var(--section-color); color: #fff; border: 1px solid var(--section-color); border-inline-start: 4px solid var(--section-color); border-radius: 12px; font-size: 20px; line-height: 1.4; min-height: 56px; }
.column-subtitle, .inbox-intro, .settings-intro { margin-top: -6px; margin-bottom: 18px; }
.products-toolbar, .customers-toolbar, .archive-filters, .deliveries-filters, .prep-toolbar, .conversations-subtabs { padding: 14px; background: white; border: 1px solid var(--mc-line); border-radius: 12px; margin-bottom: 16px; }
.search-input, #product-search { background: #f8fafd; border-color: var(--mc-line-strong); min-height: 44px; }
.product-card, .customer-card, .delivery-card, .inbox-row, .settings-card, .chart-container, .pulse { border-color: var(--mc-line); box-shadow: var(--mc-shadow-sm); }
.product-category-header, .prep-category-title { padding: 12px 14px; background: #e6def9; border: 1px solid #c9b7e9; border-radius: 9px; margin-block: 18px 10px; color: #5b3193; }
.prep-category-title { background: #ffedc5; border-color: #eac778; color: #884804; }
.customer-card:hover, .product-card:hover { box-shadow: var(--mc-shadow-md); }
.customers-summary .stat { background: #f2edfc; border: 1px solid #dfd3f2; border-radius: 12px; padding: 12px 18px; }
.customers-summary .stat strong { color: #6d42a9; font-size: 24px; }
.customer-chip { background: var(--mc-paper); }
.stat-card { border-color: var(--mc-line); border-top: 3px solid var(--info); box-shadow: var(--mc-shadow-sm); }
.stat-card:nth-child(2) { border-top-color: var(--success); }
.stat-card:nth-child(3) { border-top-color: #a46b16; }
.stat-card:nth-child(4) { border-top-color: #8052bc; }
.stat-value { color: var(--mc-ink); }
.settings-card { border-radius: 16px; margin-bottom: 18px; }
.settings-card h3 { padding-bottom: 12px; border-bottom: 1px solid var(--mc-line); }
.settings-card h3 .ico { color: var(--b-600); }
.modal-content { border-radius: 20px; border: 1px solid var(--mc-line); box-shadow: 0 20px 80px #1c29403b; }
.modal-header { border-bottom: 1px solid var(--mc-line); padding-bottom: 16px; }
.modal-header h2 { color: var(--mc-ink); }
.mc-facts { padding: 16px; background: var(--mc-paper); border: 1px solid var(--mc-line); border-radius: 12px; }
.close-btn { background: var(--mc-paper); color: var(--mc-muted); border-radius: 10px; min-width: 44px; min-height: 44px; }
.btn-start { background: var(--info); border-color: var(--info); }
.btn-start:hover:not(:disabled) { background: #1e4c9d; border-color: #1e4c9d; }
.btn-done, .btn-collected { background: var(--success); border-color: var(--success); }
.btn-done:hover:not(:disabled), .btn-collected:hover:not(:disabled) { background: #0e6047; border-color: #0e6047; }
#modal-items th { background: #edf1f7; color: var(--mc-muted); }
.btn, .card-action, .stock-toggle { transition: background .15s, border-color .15s, box-shadow .15s; }
/* A clear, welcoming sign-in with real labels and no third-party assets. */
#login-screen { background: radial-gradient(ellipse at 15% 5%, #2c62a8, transparent 58%), radial-gradient(ellipse at 90% 95%, #78326b, transparent 55%), #142640; padding: 24px; }
.login-box { width: 440px; max-width: 100%; padding: 36px; border-radius: 24px; border: 1px solid #fff; box-shadow: 0 24px 80px #09142655; }
.login-brand { color: var(--b-600); font-weight: 700; font-size: 18px; margin-bottom: 26px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.login-brand .header-brand { margin: 0; }
.login-box h1 { font-size: 30px; color: var(--mc-ink); }
.login-box > p { font-size: 16px; margin-top: 8px; margin-bottom: 26px; color: var(--mc-muted); }
.login-box label { display: block; text-align: start; font-size: 14px; font-weight: 700; color: var(--mc-text); margin-bottom: 7px; }
.login-box input { font-size: 16px; min-height: 50px; text-align: start; border-color: var(--mc-line-strong); margin-bottom: 18px; }
.login-box button { min-height: 50px; font-size: 17px; }
.login-note { display: block; font-size: 13px; color: var(--mc-muted); margin-top: 22px; }
.tab-btn { --nav-color: #245acd; --nav-tint: #dce9ff; --nav-light: #a9ceff; }
.tab-btn[data-column="in-weighing"], .tab-btn[data-column="prep"] { --nav-color: #995306; --nav-tint: #ffedc5; --nav-light: #ffd28c; }
.tab-btn[data-column="ready"], .tab-btn[data-column="conversations"] { --nav-color: #08785a; --nav-tint: #d9f3e7; --nav-light: #85e2be; }
.tab-btn[data-column="deliveries"] { --nav-color: #076e94; --nav-tint: #d5f1fb; --nav-light: #83d8f6; }
.tab-btn[data-column="inbox"] { --nav-color: #a93856; --nav-tint: #fce1ea; --nav-light: #ffacc4; }
.tab-btn[data-column="customers"], .tab-btn[data-column="products"] { --nav-color: #743dc1; --nav-tint: #ecdefb; --nav-light: #d1b5ff; }
.tab-btn[data-column="analytics"] { --nav-color: #4f4dc5; --nav-tint: #e5e3ff; --nav-light: #b7b6ff; }
.tab-btn[data-column="archive"] { --nav-color: #4c627d; --nav-tint: #e0e8f1; --nav-light: #bacce4; }
.tab-btn.active, .tab-btn.active[data-column] { background: var(--nav-color); color: #fff; box-shadow: inset -3px 0 #ffffffb3; }
.tab-btn .tab-icon { color: var(--nav-color); }
.tab-btn.active .tab-icon { color: #fff; }
.column[data-col="analytics"] { --section-color: #4f4dc5 !important; --section-tint: #e5e3ff !important; }
.column[data-col="inbox"] { --section-color: #a93856 !important; --section-tint: #fce1ea !important; }
.stat-card { background: #dce9ff; border-color: #b4ccf8; border-top-width: 4px; }
.stat-card .stat-value { color: #204da7; }
.stat-card:nth-child(2) { background: #d9f3e7; border-color: #a1d6bd; }
.stat-card:nth-child(2) .stat-value { color: #08664d; }
.stat-card:nth-child(3) { background: #ffedc5; border-color: #eac778; }
.stat-card:nth-child(3) .stat-value { color: #884804; }
.stat-card:nth-child(4) { background: #ecdefb; border-color: #c9b7e9; }
.stat-card:nth-child(4) .stat-value { color: #6231a6; }
.settings-card { border-top: 4px solid #245acd; }
.settings-card:nth-child(2) { border-top-color: #995306; }
.settings-card:nth-child(3) { border-top-color: #08785a; }
.settings-card:nth-child(4) { border-top-color: #743dc1; }
@media (min-width: 1100px) {
  #tab-bar { position: fixed; top: 72px; bottom: 0; right: 0; width: 216px; background: linear-gradient(180deg, #182c4c, #111f37); display: flex; flex-direction: column; padding: 22px 14px 16px; border-left: 1px solid var(--mc-line); border-bottom: 0; overflow-y: auto; overflow-x: hidden; gap: 5px; }
  #tab-bar .tab-btn { width: 100%; flex: 0 0 auto; justify-content: flex-start; padding: 0 14px; min-height: 44px; font-size: 15px; color: #e2eafa; }
  #tab-bar .tab-icon { width: 26px; height: 28px; align-items: center; justify-content: center; color: var(--nav-light); border-radius: 8px; background: #ffffff0c; }
  #tab-bar .tab-btn:hover:not(.active) { background: #294366; color: #fff; }
  #tab-bar .tab-btn.active { background: var(--nav-color); color: #fff; border-color: #ffffff30; }
  #tab-bar .tab-btn.active .tab-icon { color: #fff; background: #ffffff18; }
  #tab-bar .tab-btn:focus-visible { outline-color: #b9d5ff; }
  #tab-bar .tab-btn.tab-new-order { order: -2; justify-content: center; margin-bottom: 8px; }
  #tab-bar .mobile-only-tab, #tab-bar .more-tab { display: none; }
  .nav-group-label { display: block; margin: 18px 14px 5px; font-size: 12px; color: #b6c6df; font-weight: 500; }
  .nav-footer { display: block; margin-top: auto; padding: 24px 14px 0; color: #b6c6df; font-size: 12px; }
  .nav-footer strong { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
  #dashboard > .columns, #dashboard > .workspace-heading, #dashboard > .busy-banner, #dashboard > .pulse-strip, #dashboard > .pull-indicator { margin-inline-start: 216px; }
  #tab-bar .tab-badge { position: static; margin-inline-start: auto; box-shadow: none; min-width: 22px; height: 22px; }
  #dashboard > .workspace-heading { margin-inline: 244px 28px; padding: 26px; }
  .columns { padding-inline: 28px; }
}
@media (min-width: 769px) and (max-width: 1099px) {
  .tab-bar { position: static; flex-wrap: wrap; padding: 10px 16px; }
  .tab-btn { font-size: 13px; padding-inline: 11px; }
  .workspace-heading { margin: 18px 16px; padding: 22px; }
  .columns { padding-inline: 16px; gap: 12px; }
  .column[data-col="confirmed"], .column[data-col="in-weighing"], .column[data-col="ready"] { padding-inline: 8px; }
  .column-header.confirmed, .column-header.in-weighing, .column-header.ready { gap: 6px; margin-inline: -9px; }
  .lane-icon { display: none; }
  .order-card { padding: 12px; }
  #dashboard > header { padding-inline: 16px; }
}
@media (max-width: 768px) {
  #dashboard > header { padding: 10px 14px; min-height: 60px; gap: 5px; }
  #dashboard header h1 { font-size: 16px; line-height: 1.4; }
  .header-brand { width: 30px; height: 30px; border-radius: 9px; margin-inline-end: 2px; }
  .header-brand .ico { width: 20px; height: 20px; }
  .header-action { padding: 0 8px; margin-inline-end: 0; min-height: 44px; flex-shrink: 0; }
  .fab-btn { top: auto; bottom: calc(88px + env(safe-area-inset-bottom)); left: 18px; width: 52px; height: 52px; border-radius: 16px; box-shadow: 0 5px 18px #78244040; }
  .workspace-heading { margin: 16px 12px 18px; padding: 20px 18px; align-items: flex-start; }
  .workspace-heading h2 { font-size: 25px; }
  .workspace-heading p { font-size: 14px; margin-top: 5px; }
  .workspace-eyebrow { font-size: 12px; }
  .workspace-date { display: none; }
  .columns { grid-template-columns: minmax(0, 1fr); padding: 0 12px 108px; min-height: auto; gap: 0; }
  .column-header.confirmed, .column-header.in-weighing, .column-header.ready { display: flex; min-height: 80px; margin-bottom: 12px; padding-block: 13px; }
  .column:not([data-col="confirmed"]):not([data-col="in-weighing"]):not([data-col="ready"]) > .column-header { display: none; }
  .column[data-col="confirmed"], .column[data-col="in-weighing"], .column[data-col="ready"] { min-height: 220px; }
  .order-card { padding: 15px; }
  #tab-bar { top: auto; bottom: 0; background: #fff; padding: 7px 4px calc(7px + env(safe-area-inset-bottom)); gap: 0; box-shadow: 0 -4px 20px #2435500a; border-top: 1px solid var(--mc-line); }
  #tab-bar .tab-btn { padding: 5px 2px; min-height: 52px; font-size: 11px; color: var(--mc-muted); border-radius: 10px; gap: 4px; box-shadow: none; }
  #tab-bar .tab-btn .tab-icon { padding: 2px 10px; }
  #tab-bar .tab-btn .ico { width: 21px; height: 21px; }
  #tab-bar .tab-btn.active { color: #fff; background: var(--nav-color); }
  #tab-bar .tab-btn.active .tab-icon { color: #fff; }
  #tab-bar .tab-btn.active .tab-icon { background: transparent; padding: 2px 10px; }
  #tab-bar .tab-btn[data-column="confirmed"].active { color: #fff; background: var(--info); }
  #tab-bar .tab-btn[data-column="in-weighing"].active { color: #fff; background: var(--warning); }
  #tab-bar .tab-btn[data-column="ready"].active { color: #fff; background: var(--success); }
  .more-sheet-panel { padding: 10px 16px calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  .more-sheet-title { font-size: 20px; padding: 12px 6px; color: var(--mc-ink); }
  .more-sheet-item { margin-bottom: 6px; padding: 12px; border: 1px solid var(--mc-line); border-radius: 12px; min-height: 48px; background: var(--mc-paper); }
  .more-sheet-icon { color: var(--b-600); }
  .customer-card-head { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; }
  .customers-toolbar { padding: 10px; }
  .customers-sort { gap: 5px; }
  .customers-sort .sort-btn { padding: 7px 6px; font-size: 12px; }
  .modal-content { border-radius: 18px 18px 0 0; }
  .login-box { padding: 28px 24px; }
  .login-box h1 { font-size: 27px; }
}
/* Keep dialog contents within their own viewport, including long names and notes. */
.modal-content, .modal-header h2, .mc-fact { min-width: 0; overflow-wrap: anywhere; }
.modal-header { gap: 10px; }
.modal-header .close-btn { flex: 0 0 auto; }
#modal-items td { overflow-wrap: anywhere; }
#modal-items .product-name { white-space: normal; overflow-wrap: anywhere; }
.numpad-header, .courier-list-header { gap: 10px; }
.numpad-header h3, .courier-list-header h3 { min-width: 0; overflow-wrap: anywhere; }
.numpad-header .close-btn, .courier-list-header .close-btn { flex: 0 0 auto; }
.handoff-modal-container { overflow-wrap: anywhere; }
.handoff-modal-header > div, .handoff-reply-bar input { min-width: 0; }
.handoff-reply-bar .btn { flex: 0 0 auto; width: auto; padding-inline: 14px; }
.product-modal-actions { flex-wrap: wrap; }
.order-notes, .order-items-preview, .prep-product-main, .prep-variants { min-width: 0; overflow-wrap: anywhere; }
.prep-product-name { white-space: normal; overflow-wrap: anywhere; }
.heatmap-table td:first-child { max-width: 240px; white-space: normal; overflow-wrap: anywhere; }
.chart-wrap { min-width: 0; }
.chart-wrap canvas { max-width: 100%; }
#modal-content .weighing-controls { gap: 4px; }
#modal-content .weighing-controls .weight-stepper { flex: 0 0 44px; width: 44px; min-width: 44px; height: 48px; padding: 0; }
#modal-content .weighing-controls .weight-input { flex: 0 0 72px; width: 72px; min-width: 0; height: 48px; padding-inline: 4px; }
/* "לא נשקל" in an empty box is a hint, never a weight: lighter and smaller than a saved value. */
#modal-content .weighing-controls .weight-input::placeholder { font-size: 14px; font-weight: 500; }
#modal-content .stepper-big .stepper-symbol { font-size: 34px; font-weight: 700; line-height: 1; }
#modal-content .stepper-small .stepper-symbol { font-size: 21px; font-weight: 500; line-height: 1; }
#modal-content .weighing-controls--unit .stepper-symbol { font-size: 24px; }
#modal-content .weighing-controls .weight-stepper.stepper-big { background: var(--info-tint); border-color: #8eafea; color: #204da7; }
#modal-content .weighing-controls .weight-stepper:hover { background: #cbdfff; }
@media (max-width: 1024px) {
  /* A separate line for the label leaves room for all five touch targets. */
  #modal-content tbody td.final-weight-cell { display: block; padding-block: 10px; }
  #modal-content tbody td.final-weight-cell::before { display: block; margin: 0 0 8px; }
  #modal-content .weighing-controls { display: grid; grid-template-columns: 44px 44px minmax(56px, 1fr) 44px 44px; width: 100%; max-width: 360px; margin-inline: auto; }
  #modal-content .weighing-controls--unit { grid-template-columns: 44px minmax(56px, 1fr) 44px; max-width: 224px; }
  #modal-content .weighing-controls .weight-input { width: 100%; max-width: none; }
  #modal-content tbody td[data-label="מוצר"] { flex-wrap: wrap; justify-content: flex-start; gap: 4px 8px; }
  #modal-content tbody td[data-label="מוצר"]::before { display: none; }
  #modal-content .product-name, #modal-content .pkg-meta { min-width: 0; max-width: 100%; }
}
@media (max-width: 768px) {
  .modal-content { max-height: 100dvh; }
  #order-modal .modal-content > * { flex-shrink: 0; }
  /* The confirm question takes the whole row of the phone's 2-column actions grid, text above its
     buttons: in one column it was squeezed to a letter or two per line. */
  #modal-actions .confirm-banner { grid-column: 1 / -1; flex-wrap: wrap; }
  .modal-content input, .modal-content select, .modal-content textarea { min-width: 0; max-width: 100%; }
  .delivery-card-foot .delivery-card-actions { flex-wrap: wrap; width: 100%; }
  .delivery-card-foot .delivery-card-actions .btn { flex: 1 1 110px; min-width: 0; padding-inline: 8px; }
  .delivery-card-foot .delivery-card-note { min-width: 0; }
  .archive-export-toolbar { padding: 10px; }
  .archive-btn-row { flex-wrap: wrap; }
  .archive-export-btn { flex: 1 1 110px; min-width: 0; padding-inline: 10px; white-space: normal; }
  .product-row .product-name { white-space: normal; overflow-wrap: anywhere; }
  .stat-value { overflow-wrap: anywhere; font-size: clamp(20px, 6vw, 26px); }
  /* Each table row becomes a labelled card; every day and total remains visible. */
  .analytics-table-wrap table, .analytics-table-wrap tbody { display: block; width: 100%; }
  .analytics-table-wrap thead { display: none; }
  .analytics-table-wrap tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; margin-bottom: 12px; }
  .analytics-table-wrap tbody td { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; padding: 8px; white-space: normal; overflow-wrap: anywhere; text-align: start; border: 0; border-radius: 6px; }
  .analytics-table-wrap tbody td::before { content: attr(data-label); margin: 0; font-size: 12px; font-weight: 400; color: inherit; white-space: normal; }
  .heatmap-table tbody tr { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .heatmap-table tbody td { padding: 8px 2px; }
  .heatmap-table tbody td:first-child { grid-column: 1 / -1; font-weight: 700; }
  .heatmap-table tbody td:first-child::before { display: none; }
  .heatmap-table tbody td:empty::after { content: "—"; }
}
/* Developer credit: one small muted line on the sign-in card, at the bottom of the side nav (desktop),
   at the end of the nav row (tablet) and at the bottom of the "עוד" sheet (phone - the bottom bar has no room). */
.app-credit { font-size: 12px; line-height: 1.5; color: var(--mc-muted); }
.app-credit a { color: var(--mc-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.app-credit a:hover { color: var(--info); }
.login-credit { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--mc-line); text-align: center; }
.more-sheet-credit { padding: 12px 6px 2px; text-align: center; }
.nav-footer-tag { display: block; }
@media (min-width: 1100px) {
  .nav-footer .app-credit { margin-top: 12px; color: #b6c6df; }
  .nav-footer .app-credit a { color: #fff; }
  .nav-footer .app-credit a:hover { color: #b9d5ff; }
}
@media (min-width: 769px) and (max-width: 1099px) {
  .nav-footer { display: flex; align-items: center; margin-inline-start: auto; padding-inline: 8px; }
  .nav-footer strong, .nav-footer-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .workspace-heading, .workspace-skip, #tab-bar, .nav-footer { display: none !important; }
  #dashboard > .columns { margin: 0; }
}
