/* סיגמא.דנט – colors taken from the logo */
:root {
  --navy: #013856; --navy-2: #0a4b70; --teal: #188b92; --teal-d: #026d75; --teal-l: #e3f3f4;
  --gold: #e4a533; --gold-d: #b97f17; --gold-l: #fdf3df;
  --ink: #1b2a35; --muted: #5f717e; --line: #dde6ea; --bg: #f5f8fa; --card: #fff;
  --danger: #c2413b; --danger-l: #fdecea; --ok: #1f8a4c; --ok-l: #e5f5ec;
  --radius: 12px; --shadow: 0 1px 2px rgba(1,56,86,.06), 0 6px 24px rgba(1,56,86,.07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Heebo', Arial, sans-serif; color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; }
a { color: var(--teal-d); }
img { max-width: 100%; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1440px; }
.wrap.narrow { max-width: 760px; }
.wrap.xnarrow { max-width: 460px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hint { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.nowrap { white-space: nowrap; }
.inline { display: inline; margin: 0; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.print-only { display: none; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand img { height: 46px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; flex-wrap: wrap; }
.nav > a:not(.btn) { color: var(--navy); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav > a:not(.btn):hover { background: var(--teal-l); }
.nav > a.active { background: var(--navy); color: #fff; }
.nav .btn { margin-inline-start: 4px; }
.menu-toggle { display: none; margin-inline-start: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; border: 2px solid transparent; border-radius: 10px; padding: 10px 20px; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .05s; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-d); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-d); color: #fff; }
.btn-outline { border-color: var(--teal); color: var(--teal-d); background: #fff; }
.btn-outline:hover { background: var(--teal-l); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-danger { background: #fff; color: var(--danger); border-color: #efc4c1; }
.btn-danger:hover { background: var(--danger-l); }
.btn-sm { padding: 6px 12px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 18px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--teal-d) 100%); color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; margin: 8px 0 16px; }
.hero .lead { font-size: 19px; color: #d7e8ee; max-width: 560px; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .02em; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-actions .btn-primary { background: #fff; color: var(--navy); }
.hero-actions .btn-primary:hover { background: var(--teal-l); }
.hero-art { justify-self: center; }
.hero-art img { width: 260px; border-radius: 50%; background: #fff; padding: 26px; box-shadow: 0 0 0 10px rgba(255,255,255,.08), 0 0 0 22px rgba(255,255,255,.05); }

/* sections */
.section { padding: 56px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title, .page-title { text-align: center; font-size: clamp(26px, 3.2vw, 34px); margin: 0 0 12px; }
.page-title { margin-top: 8px; }
.section-title::after { content: ''; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--gold); margin: 12px auto 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.service { border-top: 4px solid var(--teal); }
.service:nth-child(even) { border-top-color: var(--gold); }
.service h3 { margin: 10px 0 6px; font-size: 19px; }
.service p { margin: 0; color: var(--muted); }
.svc-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--teal-l); color: var(--teal-d); }
.service:nth-child(even) .svc-icon { background: var(--gold-l); color: var(--gold-d); }
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.about .section-title { text-align: right; }
.about .section-title::after { margin-right: 0; }
.info-list { list-style: none; margin: 0; padding: 24px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--line); }
.info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .lbl { color: var(--muted); }
.info-list a { font-weight: 700; direction: ltr; }

/* forms */
.form fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.form legend { font-weight: 800; color: var(--navy); font-size: 18px; margin-bottom: 12px; padding: 0; display: flex; align-items: center; gap: 8px; }
.form legend::before { content: ''; width: 6px; height: 20px; border-radius: 3px; background: var(--teal); }
.fld { display: block; margin-bottom: 14px; }
.fld > span { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.req { color: var(--danger); font-weight: 700; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input[dir=ltr] { text-align: left; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .tooth:focus-visible { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24,139,146,.2); }
textarea { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-4 { display: grid; grid-template-columns: 2fr 1.3fr 1.2fr .7fr; gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: center; margin: 8px 0 18px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }
.forgot { background: var(--gold-l); border: 1px solid #f1d49a; color: #7a5410; padding: 10px 14px; border-radius: 10px; font-size: 14px; text-align: center; margin: 16px 0 8px; }
.seg { display: flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 11px 6px; cursor: pointer; }
.seg input:checked + span { background: var(--teal); color: #fff; font-weight: 700; }
.seg input:focus-visible + span { box-shadow: inset 0 0 0 3px rgba(24,139,146,.35); }

/* flash */
.flash { padding: 14px 18px; border-radius: 10px; margin: 16px 0; font-weight: 500; }
.flash-success { background: var(--ok-l); color: #145c33; border: 1px solid #b9e2c9; }
.flash-error { background: var(--danger-l); color: #8f2a25; border: 1px solid #f2c4c0; }
.flash.big { font-size: 18px; text-align: center; }

/* doctor bar */
.doc-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 14px 20px; }
.doc-bar .lbl { color: #a9c8d6; }

/* mouth chart */
.mouth-wrap { overflow-x: auto; padding: 4px 0 8px; -webkit-overflow-scrolling: touch; }
.mouth { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-width: 600px; max-width: 860px; margin: 18px auto 8px; padding: 22px 0; }
.mouth::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--navy); transform: translateX(-1px); }
.mouth::after { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: var(--navy); }
.quad { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; padding: 8px 10px; }
.side-lbl { position: absolute; top: -4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.side-lbl.r { left: 4px; } .side-lbl.l { right: 4px; }
.tooth { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 0 4px; cursor: pointer; font: inherit; color: var(--navy); transition: background .12s, border-color .12s, transform .08s; min-width: 0; }
button.tooth:hover { border-color: var(--teal); background: var(--teal-l); }
.tooth .tn { font-size: 13px; font-weight: 800; }
.tooth-svg { width: 22px; height: 32px; }
.tooth-svg.lower { transform: scaleY(-1); }
.tooth-svg .crown { fill: #fff; stroke: var(--navy); stroke-width: 1.6; }
.tooth-svg .root { fill: none; stroke: #8aa3b2; stroke-width: 2.4; stroke-linecap: round; }
.tooth.sel, button.tooth.sel:hover { background: var(--teal); border-color: var(--teal-d); color: #fff; }
button.tooth.sel:hover { background: var(--teal-d); }
.tooth.sel .crown { fill: var(--gold); stroke: #fff; }
.tooth.sel .root { stroke: #d1ecee; }
.teeth-list { display: grid; gap: 8px; margin-top: 12px; }
.tooth-row { display: grid; grid-template-columns: 54px 1fr 1.4fr 40px; gap: 8px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.tr-num { background: var(--teal); color: #fff; font-weight: 800; border-radius: 8px; text-align: center; padding: 8px 0; }
.tr-del { background: none; border: 0; font-size: 18px; color: var(--muted); cursor: pointer; border-radius: 8px; height: 40px; }
.tr-del:hover { background: var(--danger-l); color: var(--danger); }
.shades { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.shade input { position: absolute; opacity: 0; }
.shade span { display: inline-block; min-width: 52px; text-align: center; padding: 7px 8px; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 14px; background: #fff; direction: ltr; }
.shade input:checked + span { background: var(--gold); border-color: var(--gold-d); color: var(--navy); }
.shade input:focus-visible + span { box-shadow: 0 0 0 3px rgba(228,165,51,.35); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px dashed #b9cdd6; border-radius: var(--radius); padding: 28px 16px; text-align: center; cursor: pointer; background: var(--bg); color: var(--navy); position: relative; }
.drop.over, .drop:hover { border-color: var(--teal); background: var(--teal-l); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 14px; }
.file-list li.err { border-color: #f2c4c0; background: var(--danger-l); }
.file-list button { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 16px; }
.progress { position: relative; height: 34px; background: var(--teal-l); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.progress .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--teal); transition: width .2s; }
.progress span { position: relative; display: block; text-align: center; line-height: 34px; font-weight: 700; color: var(--navy); }

/* tables */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { background: var(--navy); color: #fff; text-align: right; padding: 11px 12px; font-weight: 500; white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover { background: #f8fbfc; }
.tbl tr.frozen td { background: #fbf3f2; color: #8b6f6c; }
.tbl tr.done td { color: var(--muted); }
.tbl.compact th { position: static; }
.tbl .clip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .msg { max-width: 420px; white-space: pre-wrap; }
.tbl .actions { display: flex; gap: 6px; }
.ord-no { display: inline-block; font-weight: 800; background: var(--teal-l); color: var(--teal-d); padding: 3px 10px; border-radius: 8px; text-decoration: none; }
.ord-no:hover { background: var(--teal); color: #fff; }
.tchip { display: inline-block; background: var(--gold-l); color: #7a5410; border-radius: 6px; padding: 0 6px; margin: 1px; font-weight: 700; font-size: 13px; }
.teeth-cell { max-width: 200px; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.st-0 { background: #e6eef8; color: #1f4f8a; }
.st-1 { background: var(--gold-l); color: #8a5e10; }
.st-2 { background: var(--teal-l); color: var(--teal-d); }
.st-3 { background: var(--ok-l); color: #145c33; }
.st-frozen { background: var(--danger-l); color: var(--danger); }
.status-sel { width: auto; min-width: 150px; padding: 6px 10px; font-weight: 700; font-size: 14px; border-width: 1.5px; }
.status-sel.saved { box-shadow: 0 0 0 3px rgba(31,138,76,.3); }

/* admin */
.admin-head { display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.count { color: var(--muted); font-weight: 500; }
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 16px; margin-bottom: 16px; }
.filters .fld { margin: 0; min-width: 180px; }
.filters .grow { flex: 1; min-width: 260px; }
.fld-actions { display: flex; gap: 8px; padding-bottom: 2px; }
.content-sec { margin-bottom: 16px; }
.content-sec summary { font-weight: 800; color: var(--navy); font-size: 19px; cursor: pointer; margin-bottom: 12px; }
.sticky-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); text-align: center; }
.toolbar { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 10px; z-index: 50; box-shadow: var(--shadow); }
.toast.err { background: var(--danger); }

/* order sheet */
.order-sheet h3 { font-size: 17px; margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--teal-l); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 3px solid var(--teal); padding-bottom: 16px; flex-wrap: wrap; }
.sheet-logo { height: 58px; width: auto; }
.sheet-meta { text-align: left; }
.ord-big { font-size: 26px; font-weight: 800; color: var(--navy); }
.status-inline { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 6px; }
.sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dl { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; }
.dl dd[dir=ltr] { text-align: right; }
.shade-big { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0; direction: ltr; text-align: right; }
.notes-box { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 60px; }
.file-dl { padding-right: 18px; margin: 0; }
.file-dl a { font-weight: 700; word-break: break-all; }
.order-sheet .mouth { min-width: 560px; }
.order-sheet div.tooth { cursor: default; }

/* footer */
.site-footer { background: var(--navy); color: #cfe3ea; padding: 28px 0; margin-top: 40px; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-contact a { color: #fff; text-decoration: none; direction: ltr; }

/* responsive */
@media (max-width: 900px) {
  .hero-in, .about { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .sheet-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .menu-open .nav { display: flex; }
  .nav .btn, .nav form, .nav form .btn { width: 100%; margin: 4px 0 0; }
  .brand img { height: 38px; }
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .section { padding: 36px 0; }
  .hero-in { padding-top: 48px; padding-bottom: 56px; }
  .tooth-row { grid-template-columns: 46px 1fr 40px; }
  .tooth-row .tr-note { grid-column: 1 / -1; }
  .tooth-row .tr-del { grid-row: 1; grid-column: 3; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  /* compact mouth chart so the whole cross fits on a phone screen */
  .mouth, .order-sheet .mouth { min-width: 0; padding: 18px 0; }
  .quad { gap: 2px; padding: 6px 3px; }
  .tooth { border-radius: 6px; padding: 4px 0 3px; border-width: 1px; }
  .tooth .tn { font-size: 11px; letter-spacing: -.5px; }
  .tooth-svg { width: 14px; height: 22px; }
  .side-lbl { font-size: 11px; }
}

/* print – order sheet with logo */
@media print {
  /* margin 0 = the browser does not add its own date / time / page title / link to the printed page;
     the white margin of the page comes from the padding below (on every printed page) */
  @page { size: A4; margin: 0; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.45; }
  .section > .wrap { padding: 12mm !important; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .sheet-grid { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  .order-sheet h3 { margin: 12px 0 6px; font-size: 12pt; }
  .sheet-head { padding-bottom: 10px; }
  .sheet-logo { height: 46px; }
  .ord-big { font-size: 20pt; }
  .mouth { padding: 14px 0; }
  .tooth-svg { height: 24px; }
  .tbl td, .tbl th { padding: 5px 8px; }
  .order-sheet section, .tbl, .notes-box, .mouth { break-inside: avoid; }
  .site-header, .site-footer, .no-print, .flash { display: none !important; }
  .print-only { display: block; }
  .section { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .order-sheet .mouth { min-width: 0; max-width: 100%; margin: 6px 0; }
  .mouth-wrap { overflow: visible; }
  .tooth { padding: 2px 0; border-radius: 6px; }
  .tooth.sel { background: #fff !important; border: 2.5px solid #000 !important; color: #000 !important; }
  .tooth.sel .crown { fill: #555 !important; }
  .tbl th { background: #eee !important; color: #000; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
}

/* ---- v3: delivery date, notes thread, price list, admin edit ---- */
.due { white-space: nowrap; }
.due-soon { background: var(--gold-l); color: #8a5e10; border-radius: 6px; padding: 2px 8px; font-weight: 700; }
.due-late { background: var(--danger-l); color: var(--danger); border-radius: 6px; padding: 2px 8px; font-weight: 700; }
.nbadge { display: inline-block; min-width: 26px; text-align: center; background: #eef3f6; color: var(--muted); border-radius: 999px; padding: 1px 8px; font-size: 13px; font-weight: 700; }
.nbadge-new { background: var(--gold); color: var(--navy); }
a.nolink { text-decoration: none; }
.toolbar-actions { display: flex; gap: 8px; }
.notes-sec { margin-top: 8px; }
.notes-thread { display: grid; gap: 10px; margin-bottom: 14px; }
.note { border-radius: 12px; padding: 10px 14px; max-width: 85%; border: 1px solid var(--line); }
.note-lab { background: var(--gold-l); border-color: #f1d49a; margin-left: auto; }
.note-doctor { background: var(--teal-l); border-color: #bfe3e5; margin-right: auto; }
.note-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 4px; }
.note-body { white-space: normal; word-break: break-word; }
.note-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.note-form .fld { margin-bottom: 8px; }
.note-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.note-actions .hint { margin: 0; }
.forward-sec { margin-top: 18px; }
.forward-sec h3 { margin-top: 0; }
.danger-zone { margin-top: 18px; border-color: #efc4c1; }
.danger-zone h3 { margin-top: 0; color: var(--danger); }
.file-list.existing li.to-delete span { text-decoration: line-through; color: var(--muted); }
.del-file { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--danger); cursor: pointer; white-space: nowrap; }
.price-tbl td.price { font-weight: 800; color: var(--navy); white-space: nowrap; }
.price-edit td { padding: 6px; }
.price-edit input[type=text] { padding: 8px 10px; }
.price-edit input::placeholder { color: #a9b6bf; }
.price-edit td.handle { white-space: nowrap; width: 70px; }
.mv { background: #fff; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; padding: 4px 7px; color: var(--navy); font-size: 11px; }
.mv:hover { background: var(--teal-l); }
.price-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0 6px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .note { max-width: 100%; }
  .price-edit { min-width: 640px; }
}
@media print {
  .note-form, .forward-sec, .danger-zone { display: none !important; }
  .note { max-width: 100%; }
}

/* ---- v4: English translation page ---- */
.fwd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.en-form { text-align: left; }
.en-form .fld > span, .en-form legend { text-align: left; }
.en-form legend { flex-direction: row; }
.en-head { display: flex; align-items: center; gap: 16px; border-bottom: 3px solid var(--teal); padding-bottom: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.en-teeth td { padding: 6px; }
.en-teeth th { text-align: left; }
.en-teeth td.tn-cell { width: 60px; text-align: center; }
.en-files { list-style: none; padding: 0; margin: 0; }
.en-files .check { margin: 6px 0; }
.en-send { background: var(--bg); border: 1px solid var(--line) !important; border-radius: var(--radius); padding: 16px !important; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---- v5: summary report ---- */
.report-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 16px; }
.report-totals { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; min-width: 92px; padding: 8px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.stat-main { background: var(--navy); border-color: var(--navy); }
.stat-main .stat-n, .stat-main .stat-l { color: #fff; }
.stat-n { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-l { font-size: 13px; color: var(--muted); }
.nav > a.active:hover { background: var(--navy); color: #fff; }

/* ---- v6: secondary managers ---- */
.nav .who { color: var(--muted); font-size: 14px; padding: 0 8px; }
.perm-box { margin-bottom: 16px; }
.perm-box p { margin: 4px 0; }
.small-title { font-size: 22px; margin-top: 32px; }
.narrow-form { max-width: 720px; margin: 0 auto; }

/* ---- v7: per-doctor price lists ---- */
.price-old { text-decoration: line-through; color: var(--muted); font-weight: 400; font-size: 14px; margin-inline-end: 6px; }
.dp-discount { max-width: 520px; margin: 0 auto 16px; }
.pct-wrap { display: flex; align-items: center; gap: 8px; max-width: 180px; }
.pct-wrap span { font-weight: 800; color: var(--navy); }
.dp-table td.final { font-weight: 800; color: var(--teal-d); white-space: nowrap; }
.dp-table tr.dp-custom td:first-child { box-shadow: inset -4px 0 0 var(--gold); }
/* v202: final price ≤ the supplier cost – managers only */
.dpc-warn { display: flex; align-items: center; gap: 4px; margin-top: 3px; color: #c62828; font-weight: 700; white-space: nowrap; }
.dpc-warn[hidden] { display: none; }
.dp-table .dpc-warn, .dp-table .dpc-warn small { color: #c62828 !important; }
.dpc-warn small { font-size: .78rem; }
.dp-tri { flex: none; vertical-align: -3px; }
.dp-table tr.dp-low [data-final] { color: #c62828; font-weight: 800; }
.dp-table tr.dp-low .cprice { color: #c62828; border-color: #e57373; background: #fff5f5; font-weight: 700; }
.dp-table tr.dp-low td:first-child { box-shadow: inset -4px 0 0 #d32f2f; }
.dpc-note .dp-tri { margin-inline-end: 4px; }
.tbl .actions .btn + .btn, .tbl .actions .btn + form { margin-inline-start: 0; }

/* ---- v8: billing ---- */
.money { white-space: nowrap; font-variant-numeric: tabular-nums; direction: ltr; text-align: right; }
.estimate { margin-top: 12px; background: var(--gold-l); border: 1px solid #f1d49a; border-radius: 10px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.estimate strong { font-size: 20px; color: var(--navy); direction: ltr; }
.estimate small { color: #7a5410; }
.estimate .hint { flex-basis: 100%; margin: 0; }
.estimate[hidden] { display: none; }
.cost-sec { margin-top: 8px; }
.cost-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; background: var(--navy); color: #fff; border-radius: 10px; padding: 12px 16px; margin-top: 10px; }
.cost-total strong { font-size: 22px; direction: ltr; }
.cost-total small { color: #a9c8d6; }
.cost-total .pay-state { margin-inline-start: auto; }
.totals-tbl { margin: 14px 0 0 auto; margin-inline-start: auto; margin-inline-end: 0; border-collapse: collapse; min-width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.totals-tbl td { padding: 9px 14px; border-bottom: 1px solid var(--line); }
.totals-tbl tr.grand td { background: var(--navy); color: #fff; font-weight: 800; font-size: 17px; border-bottom: 0; }
.tabs { display: flex; gap: 6px; justify-content: center; margin: 4px 0 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 700; background: #fff; }
.tabs a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pay-sel { width: auto; min-width: 150px; padding: 6px 10px; font-weight: 700; font-size: 14px; }
.pay-sel.unpaid { background: var(--danger-l); color: var(--danger); border-color: #efc4c1; }
.pay-sel.paid { background: var(--ok-l); color: #145c33; border-color: #b9e2c9; }
.paynote-form { display: flex; gap: 6px; min-width: 240px; }
.paynote-form input { padding: 6px 10px; }
@media (max-width: 760px) { .totals-tbl { min-width: 0; width: 100%; } }
@media print { .estimate { display: none; } }
.vat-now { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 8px; }
.vat-now strong { font-size: 44px; color: var(--navy); line-height: 1.1; direction: ltr; }

/* ---- staff menu: compact; ☰ menu below 1280px ---- */
.staff .nav { gap: 2px; row-gap: 4px; }
.staff .nav > a:not(.btn) { padding: 7px 6px; font-size: 14px; }
.staff .header-in { max-width: 1440px; }  /* room for the whole staff menu on one line */
@media (min-width: 1280px) and (max-width: 1439px) { .staff .nav > a:not(.btn) { padding: 6px 4px; font-size: 13px; } .staff .brand img { max-height: 40px; } }
@media (max-width: 1279px) {
  .staff .menu-toggle { display: block; }
  .staff .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .staff.menu-open .nav { display: flex; }
  .staff .nav form, .staff .nav form .btn { width: 100%; margin: 4px 0 0; }
  .staff .nav .who { padding: 6px 12px; }
}

/* ---- v9: external suppliers + dollar rate ---- */
.rates-now { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rates-now .vat-now strong { font-size: 32px; }
.rates-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 12px 18px; margin: 10px 0 16px; }
.rates-bar strong { color: var(--navy); }
.rates-bar .btn { margin-inline-start: auto; }
.sup-tbl td.sup-notes { max-width: 260px; white-space: pre-line; color: var(--muted); font-size: 14px; }
.btn .cnt { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.65); font-size: 12px; text-align: center; }
.add-box { margin-top: 22px; }
.add-box > summary { list-style: none; display: inline-flex; cursor: pointer; margin-bottom: 12px; }
.add-box > summary::-webkit-details-marker { display: none; }
.svc-edit td { padding: 6px; vertical-align: middle; }
.svc-edit td.handle { white-space: nowrap; width: 70px; }
.svc-edit input[type=text] { padding: 8px 10px; }
.svc-edit input::placeholder { color: #a9b6bf; }
.svc-edit td.money { white-space: nowrap; text-align: center; color: var(--navy); }
.svc-edit td.c-total { background: var(--gold-l); }
.cur-wrap { display: flex; align-items: center; gap: 4px; min-width: 110px; }
.cur-wrap span { color: var(--muted); font-weight: 700; }
.cur-wrap input.auto { background: #f2f7f9; }
.svc-edit input.bad { border-color: var(--danger); background: #fff3f3; }
/* the service name gets the room – prices are short numbers */
.svc-edit .c-svc { width: 34%; min-width: 300px; }
.svc-edit .cur-wrap { min-width: 0; }
.svc-edit .cur-wrap input { width: 84px; }
.svc-edit td.money { font-size: 14px; }
.svc-edit input[name=snotes] { min-width: 230px; }
@media (max-width: 760px) {
  .svc-edit { min-width: 1000px; }
  .rates-now .vat-now strong { font-size: 24px; }
  .rates-bar .btn { margin-inline-start: 0; }
}

/* ---- v10: supplier price next to the doctor price ---- */
.sup-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; margin: 6px 0 16px; }
.sup-picker select { width: auto; flex: 0 1 340px; min-width: 220px; max-width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.sup-picker .muted { font-size: 14px; flex: 1 1 260px; }
.price-edit td.sup-price { white-space: nowrap; background: var(--gold-l); text-align: center; min-width: 130px; }
.price-edit td.sup-price strong { display: block; color: var(--navy); }
.price-edit td.sup-price small { display: block; color: var(--muted); font-size: 12px; }
.price-edit td.sup-price.below strong { color: var(--danger); }
@media (max-width: 760px) { .price-edit { min-width: 800px; } .sup-picker select { min-width: 0; width: 100%; } }

/* ---- v12: backup & restore ---- */
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.bk-card h2 { margin: 0 0 8px; color: var(--navy); font-size: 22px; }
.bk-card p { margin: 0 0 14px; }
.bk-danger { border-top: 4px solid var(--danger); }
.progress { position: relative; height: 26px; border-radius: 13px; background: #eef3f6; overflow: hidden; margin: 12px 0 4px; }
.progress .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--teal, #1a8c91); transition: width .2s; }
[dir=rtl] .progress .bar { inset: 0 0 0 auto; }
.progress .ptxt { position: relative; display: block; text-align: center; line-height: 26px; font-size: 14px; font-weight: 700; color: var(--navy); }
#restore-msg.flash { margin-top: 12px; }
#restore-msg .btn { margin-top: 10px; }
.bk-tbl .bk-err { font-size: 12px; color: var(--danger); max-width: 280px; white-space: normal; }
.bk-tbl tr.bk-restore td { background: var(--gold-l); }
.drive-state { border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; font-weight: 500; }
.drive-state.ok { background: #e6f5ec; color: #17603a; }
.drive-state.off { background: var(--gold-l); color: #7a5410; }
.drive-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.bk-help h3 { margin: 0 0 8px; color: var(--navy); font-size: 17px; }
.bk-help h3 + ol, .bk-help h3 + p { margin-top: 0; }
.bk-help ol { padding-inline-start: 20px; margin-bottom: 18px; }
.bk-help li { margin-bottom: 6px; font-size: 15px; }
.bk-help code.copy { display: block; background: #f2f6f8; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 6px 0; font-size: 13px; word-break: break-all; text-align: left; user-select: all; }
@media (max-width: 900px) { .bk-grid { grid-template-columns: 1fr; } }

/* ---- v13: site update ---- */
.upd-card { margin: 18px 0 8px; border-top: 4px solid var(--navy); }
.upd-ver { font-size: 15px; }
.upd-safe { margin: 0 0 14px; padding-inline-start: 20px; color: var(--muted); font-size: 14px; }
.upd-steps { padding-inline-start: 20px; }
.upd-steps li { margin-bottom: 8px; }
.upd-card code.copy { display: block; background: #f2f6f8; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 6px 0; font-size: 13px; text-align: left; user-select: all; word-break: break-all; }
.upd-versions { margin-top: 14px; }
.upd-versions summary { cursor: pointer; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.upd-hist { margin: 12px 0 0; padding-inline-start: 20px; color: var(--muted); font-size: 14px; }
#update-msg.flash { margin-top: 12px; }
#update-msg .btn { margin-top: 10px; }
.flash-info { background: var(--gold-l); color: #7a5410; border: 1px solid #f1d49a; }
.bk-warn { background: var(--gold-l); color: #7a5410; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.drive-state.bad { background: var(--danger-l); color: #8f2a25; }
.pc-steps li.done { color: #17603a; font-weight: 700; list-style: none; margin-inline-start: -18px; }
.bk-help h3, form.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 17px; }
.bk-one { max-width: 760px; margin: 0 auto; }
#backup-note { margin-top: 12px; font-size: 14px; }
.import-box { margin-top: 22px; }
.import-box h3 { margin: 0 0 6px; color: var(--navy); font-size: 17px; }
.import-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.import-row input[type=file] { max-width: 100%; }
.price-actions-start { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-danger-outline { background: #fff; color: var(--danger); border: 1.5px solid #f2c4c0; }
.btn-danger-outline:hover { background: var(--danger-l); }
.dp-table .dp-show { width: 64px; text-align: center; white-space: nowrap; }
.dp-table .dp-show input { width: 20px; height: 20px; accent-color: var(--teal); cursor: pointer; vertical-align: middle; }
.dp-table th.dp-show label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-weight: 700; }
.dp-table tr.dp-hidden td:not(.dp-show) { opacity: .45; }
.dp-table tr.dp-hidden td strong { text-decoration: line-through; }
td.receipt { font-weight: 700; color: var(--navy); white-space: nowrap; }
.th-note { font-weight: 400; opacity: .8; font-size: 12px; }
.admin-head .admin-new { margin-inline-start: auto; }
.by-lab { font-size: 13px; color: var(--teal-d); font-weight: 700; }
#doc-select { width: 100%; margin-top: 8px; padding: 4px; min-height: 180px; }
#doc-select option { padding: 6px 8px; border-radius: 6px; }
.otp-input { font-size: 30px; letter-spacing: 10px; text-align: center; font-weight: 700; }
.otp-card { margin-top: 10px; }
.qr-box { display: flex; justify-content: center; margin: 10px 0; }
.qr-box svg { border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
code.secret { font-size: 17px; letter-spacing: 2px; background: #f2f6f8; padding: 4px 10px; border-radius: 6px; user-select: all; }
.totp-setup h3, .recovery-card h3 { margin: 0 0 8px; color: var(--navy); }
.recovery-card { border: 2px dashed var(--gold); margin-bottom: 12px; }
.recovery-codes { columns: 2; font-family: monospace; font-size: 18px; font-weight: 700; }
.disable-otp { margin-top: 12px; }
.disable-otp summary { cursor: pointer; color: var(--danger); }
.qr-box { display: flex; justify-content: center; margin: 10px 0; }
.qr-box svg { border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
code.secret { font-size: 17px; letter-spacing: 2px; background: #f2f6f8; padding: 4px 10px; border-radius: 6px; user-select: all; }
.totp-setup h3, .recovery-card h3 { margin: 0 0 8px; color: var(--navy); }
.recovery-card { border: 2px dashed var(--gold); margin-bottom: 12px; }
.recovery-codes { columns: 2; font-family: monospace; font-size: 18px; font-weight: 700; }
.disable-otp { margin-top: 12px; }
.disable-otp summary { cursor: pointer; color: var(--danger); }
.forgot-link { font-weight: 700; }
.big-ok { font-size: 40px; margin: 0; }

/* ניהול קבצים */
.fm-top { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; margin-bottom: 18px; }
.fm-top h2 { margin: 0 0 12px; color: var(--navy); font-size: 21px; }
.fm-pct { font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.fm-pct strong { font-size: 34px; color: var(--navy); margin-inline-end: 6px; }
.fm-pct.fm-warn strong { color: #b7791f; }
.fm-pct.fm-bad strong { color: var(--danger); }
.fm-bar { height: 14px; border-radius: 999px; background: #e7eef2; overflow: hidden; }
.fm-bar span { display: block; height: 100%; border-radius: 999px; background: var(--navy); }
.fm-bar span.fm-warn { background: #d69e2e; }
.fm-bar span.fm-bad { background: var(--danger); }
.fm-sub { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.fm-parts { list-style: none; padding: 0; margin: 14px 0 10px; border-top: 1px solid var(--line); }
.fm-parts li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fm-measure { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fm-rule { margin: 4px 0 0; font-size: 15px; }
.fm-err { color: var(--danger); font-weight: 700; }
.fm-path { font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; unicode-bidi: plaintext; }
.fm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 12px; margin-bottom: 22px; }
.fm-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.fm-tile.main { background: var(--navy); border-color: var(--navy); }
.fm-tile.main .fm-tn, .fm-tile.main .fm-tl, .fm-tile.main .fm-tsize { color: #fff; }
.fm-tile.warn { border-color: #e2b75a; background: var(--gold-l); }
.fm-tile.gold { border-top: 4px solid var(--gold, #c9a227); }
.fm-tn { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.fm-tl { font-size: 14px; color: var(--muted); }
.fm-tsize { font-size: 13px; color: var(--muted); text-align: right; }
.fm-search { margin-top: 0; }
.fm-tbl .fm-name { max-width: 260px; word-break: break-all; }
.fs { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.fs-wait { background: var(--gold-l); color: #7a5410; }
.fs-ok { background: #e6f5ec; color: #17603a; }
.fs-hold { background: #eef2f6; color: #3d5566; }
.fs-go { background: #e3edf9; color: #1d4f8a; }
.fm-bottom { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; align-items: start; margin-top: 26px; }
.fm-set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.fm-settings .check { margin-bottom: 10px; }
.bk-help ul.fm-tree { background: #f2f6f8; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 8px 0; list-style: none; font-size: 14px; }
.fm-tree ul { list-style: none; padding-inline-start: 22px; margin: 2px 0; border-inline-start: 1px dashed #b9c8d2; }
.fm-tree li { margin: 2px 0 !important; }
@media (max-width: 860px) {
  .fm-top, .fm-bottom, .fm-set-grid { grid-template-columns: 1fr; }
}

/* automatic logout warning */
.idle-warn { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 1000; width: min(440px, calc(100% - 32px));
  background: #fff; border: 2px solid var(--gold); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 16px 18px; text-align: center; }
.idle-warn p { margin: 0 0 12px; font-weight: 500; }
.idle-warn b { color: var(--danger); font-size: 18px; }
@media print { .idle-warn { display: none; } }

/* manager permissions */
.perm-sum { max-width: 320px; font-size: 13px; line-height: 1.5; }
.perm-all { color: #17603a; font-weight: 700; }
.perm-tools { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 8px; }
.perm-rows { display: grid; gap: 6px; margin-bottom: 14px; }
.perm-row { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.perm-row:has(input:checked) { border-color: var(--teal, #1b8a8f); background: #eef8f8; }
.perm-row input { width: 20px; height: 20px; grid-row: span 2; margin: 0; }
.perm-name { font-weight: 700; color: var(--navy); }
.perm-row small { grid-column: 2; font-size: 13px; }
.perm-group { margin: 10px 2px 0; font-weight: 700; color: var(--teal, #1b8a8f); border-top: 1px solid var(--line); padding-top: 10px; } /* v275 */
.perm-fixed { background: #f2f6f8; border-radius: 8px; padding: 8px 12px; font-size: 14px; margin-bottom: 8px; }

/* supplier documents + forwarded orders */
.tbl td.sup-actions { display: table-cell; min-width: 300px; }
.sup-actions .btn { margin: 2px; }
.doc-tbl td { vertical-align: top; }
.doc-notes { max-width: 320px; font-size: 14px; white-space: normal; }
.doc-file { max-width: 220px; word-break: break-all; }
.tbl td.doc-actions { display: table-cell; white-space: nowrap; vertical-align: top; }
.doc-actions > * { display: inline-block; vertical-align: top; }
.doc-actions .btn, .doc-actions form { margin: 2px; }
.doc-edit { display: inline-block; vertical-align: top; }
.doc-edit summary { list-style: none; cursor: pointer; }
.doc-edit summary::-webkit-details-marker { display: none; }
.doc-edit[open] { display: block; margin: 6px 0; }
.doc-edit-form { white-space: normal; min-width: 260px; background: #f7fafb; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 6px; text-align: right; }
.fwd-work { max-width: 260px; font-size: 14px; }
.fwd-to { font-size: 13px; }
.fwd-log { margin-top: 14px; font-size: 14px; background: #f2f6f8; border-radius: 8px; padding: 8px 12px; }
.fwd-log ul { margin: 4px 0 0; padding-inline-start: 18px; }

/* archive now */
.fm-bulkbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 18px; margin-bottom: 12px; flex-wrap: wrap; }
.fm-bulkbar > div { flex: 1; min-width: 260px; font-size: 15px; }
.fm-bulkbar .cnt { background: rgba(255,255,255,.7); }
.fm-pick { width: 34px; text-align: center; }
.fm-pick input { width: 18px; height: 18px; }
.fm-tbl tr.fm-sel td { background: var(--gold-l); }
.fs-now { background: #fde8d4; color: #8a4310; }
.fm-now { color: #8a4310; font-weight: 700; font-size: 13px; }
.fm-cancel { padding: 2px 8px; margin-inline-start: 6px; font-size: 12px; }
.find-form { margin-top: 4px; }
.find-sent { margin: 0; padding-inline-start: 16px; font-size: 14px; }
.find-sent li { margin: 2px 0; }
.ro-val { padding: 10px 12px; background: #f2f6f8; border: 1px solid var(--line); border-radius: 10px; text-align: left; }
.otp-on { color: #17603a; font-weight: 700; font-size: 12px; }
.otp-reset { background: var(--gold-l); border-radius: 10px; padding: 10px 14px; margin: 8px 0 14px; }
.otp-reset p { margin: 0 0 6px; }
/* suppliers: the lab's own order */
.sup-move { white-space: nowrap; width: 64px; }
.sup-move .mv { width: 26px; height: 26px; border: 1px solid var(--line); background: #fff; border-radius: 6px; color: var(--navy); cursor: pointer; font-size: 11px; line-height: 1; padding: 0; margin: 0 1px; }
.sup-move .mv:hover:not(:disabled) { background: var(--teal-l); border-color: var(--teal); }
.sup-move .mv:disabled { opacity: .3; cursor: default; }

/* maintenance mode */
.maint-bar { position: relative; z-index: 60; background: #8f2a25; color: #fff; text-align: center; padding: 8px 16px; font-size: 14px; }
.maint-bar a { color: #ffe3a3; font-weight: 700; margin-inline-start: 6px; }
.maint-section { min-height: 60vh; display: flex; align-items: center; }
.maint-section .wrap { width: 100%; }
.maint-card { text-align: center; padding: 40px 28px; border-top: 5px solid var(--gold); }
.maint-icon { margin-bottom: 8px; }
.maint-msg { font-size: 19px; line-height: 1.7; color: var(--navy); max-width: 560px; margin: 0 auto 14px; }
.maint-try { color: #8f2a25; font-weight: 500; }
.maint-contact { color: var(--muted); }
.maint-sign { font-weight: 800; color: var(--navy); margin: 18px 0 0; }
.maint-admin { margin-top: 14px; font-size: 13px; }
.maint-admin a { color: var(--muted); }
.maint-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.maint-mode { display: flex; gap: 10px; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.maint-mode span { display: flex; flex-direction: column; }
.maint-mode small { color: var(--muted); font-size: 13px; }
.maint-mode:has(input:checked) { border-color: #1f8a4c; background: #e6f5ec; }
.maint-mode.off:has(input:checked) { border-color: #8f2a25; background: var(--danger-l); }
.maint-mode input { width: 18px; height: 18px; }

/* ---- order form: work catalog + arch chart ---- */
.of-wrap { display: grid; grid-template-columns: 230px 260px 1fr; gap: 14px; align-items: start; margin-top: 8px; }
.of-col { display: flex; flex-direction: column; gap: 6px; background: #f4f7f9; border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-height: 120px; }
.of-col.shake { animation: of-shake .35s; }
@keyframes of-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.of-col-title { font-weight: 800; color: var(--navy); padding: 2px 6px 6px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.of-placeholder { color: var(--muted); text-align: center; margin: auto; font-size: 14px; }
.of-btn { --c: var(--teal); display: flex; align-items: center; gap: 10px; width: 100%; text-align: right; background: #fff; border: 1.5px solid var(--line);
  border-radius: 12px; padding: 8px 10px; font: inherit; font-weight: 500; color: var(--navy); cursor: pointer; transition: border-color .12s, box-shadow .12s, background .12s; }
.of-btn:hover { border-color: var(--c); }
.of-btn.on { border-color: var(--c); box-shadow: inset -4px 0 0 var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); font-weight: 700; }
.of-btn.small { padding: 6px 10px; font-size: 15px; }
.of-ico-w { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.of-btn.small .of-ico-w { width: 30px; height: 30px; }
.of-ico { width: 30px; height: 30px; object-fit: contain; }
.of-btn.small .of-ico { width: 24px; height: 24px; }
.of-name { flex: 1; line-height: 1.3; }
.of-cnt { background: var(--c); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 800; min-width: 22px; padding: 1px 7px; text-align: center; }
.of-check { color: var(--c); font-weight: 800; }
.of-sub { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 8px 10px; margin: -2px 0 4px; }
.of-sub-title { font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.of-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.of-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 14px; color: var(--navy); cursor: pointer; }
.of-chip:hover { border-color: var(--teal); }
.of-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.of-chart { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 4px; }
.of-msg { min-height: 26px; text-align: center; font-size: 14px; color: var(--teal-d); font-weight: 500; padding: 2px 8px; }
.of-msg.bad { color: #a8322b; }
.arch { width: 100%; max-width: 480px; height: auto; display: block; margin: 0 auto; user-select: none; }
.ar-gum { fill: none; stroke: #e3e8ec; stroke-width: 62; stroke-linecap: round; stroke-linejoin: round; transition: stroke .15s; }
.arch:not(.arch-ro) .ar-gum { cursor: pointer; }
.ar-t { cursor: pointer; outline: none; }
.arch-ro .ar-t { cursor: default; }
.ar-shape { fill: #fbfcfd; stroke: #a7b4bd; stroke-width: 1.4; transition: fill .12s; }
.arch:not(.arch-ro) .ar-t:hover .ar-shape { fill: #e3f3f4; stroke: var(--teal); }
.arch:not(.arch-ro) .ar-t.sel:hover .ar-shape { filter: brightness(.92); }
.ar-t:focus-visible .ar-shape { stroke: var(--navy); stroke-width: 2.4; }
.ar-t.sel .ar-shape { stroke: rgba(0, 0, 0, .28); }
.ar-fis { fill: none; stroke: #c6d0d7; stroke-width: 1.1; stroke-linecap: round; pointer-events: none; }
.ar-t.sel .ar-fis { stroke: rgba(255, 255, 255, .75); }
.ar-n { font-size: 15px; fill: #7d8a94; text-anchor: middle; font-weight: 500; font-family: Heebo, Arial, sans-serif; }
.ar-t.sel .ar-n { fill: var(--navy); font-weight: 800; }
.ar-side, .ar-jaw { font-size: 14px; fill: #a3afb8; font-family: Heebo, Arial, sans-serif; }
.ar-link { stroke-width: 6; stroke-linecap: round; opacity: .9; pointer-events: none; }
.ar-links { pointer-events: none; }
.of-sum-title { margin: 18px 0 8px; color: var(--navy); font-size: 18px; }
.of-list { display: grid; gap: 8px; }
.of-row { display: grid; grid-template-columns: 96px minmax(0, 1.3fr) 110px minmax(0, 1fr) 40px; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.of-row-n { --c: var(--teal); background: var(--c); color: #fff; font-weight: 800; border-radius: 10px; text-align: center; padding: 6px 4px; font-size: 15px; }
.of-row-w { display: flex; flex-direction: column; line-height: 1.35; }
.of-row-cat { font-size: 12px; color: var(--muted); }
.of-legacy { color: var(--muted); font-size: 12px; }
.of-row-del { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: #a8322b; cursor: pointer; font-size: 15px; }
@media (max-width: 1100px) {
  .of-wrap { grid-template-columns: 1fr 1fr; }
  .of-chart { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .of-wrap { grid-template-columns: 1fr; }
  .of-cats { display: grid; grid-template-columns: 1fr 1fr; }
  .of-cats .of-placeholder { grid-column: 1 / -1; }
  .of-btn { padding: 6px 8px; gap: 6px; font-size: 14px; }
  .of-row { grid-template-columns: 80px minmax(0, 1fr) 36px; }
  .of-row-shade { grid-column: 1; grid-row: 2; }
  .of-row-note { grid-column: 2 / -1; grid-row: 2; }
  .of-row-del { grid-column: 3; grid-row: 1; }
  .imp-sel.imp-row { grid-template-columns: 1fr; }
}
@media print { .arch { max-width: 360px; } }

.sheet-arch { max-width: 420px; margin: 6px auto 10px; }
.el-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
@media print { .sheet-arch { max-width: 300px; } .ar-gum { stroke: #eef1f3 !important; } }

/* ---- עריכת דף הזמנה ---- */
.ofe-help { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.ofe-help strong { color: var(--navy); }
.ofe { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.ofe-h { font-weight: 800; color: var(--navy); margin: 0 0 10px; font-size: 17px; }
.ofe-cats { padding: 14px; position: sticky; top: 86px; }
.ofe-cat { --c: var(--teal); display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.ofe-cat.off { opacity: .5; }
.ofe-cat-pick { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 6px 8px; font: inherit; color: var(--navy); cursor: pointer; text-align: right; }
.ofe-cat.on .ofe-cat-pick { border-color: var(--c); box-shadow: inset -4px 0 0 var(--c); font-weight: 700; }
.ofe-cat-name { flex: 1; }
.ofe-cat-n { font-size: 12px; color: var(--muted); }
.ofe-mv { display: inline-flex; flex-direction: column; gap: 2px; }
.ofe-mv .mv { width: 24px; height: 18px; border: 1px solid var(--line); background: #fff; border-radius: 5px; color: var(--navy); cursor: pointer; font-size: 9px; line-height: 1; padding: 0; }
.ofe-mv .mv:disabled { opacity: .3; cursor: default; }
.ofe-main { padding: 18px; min-height: 300px; }
.ofe-cat-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; position: relative; }
.ofe-cat-input { flex: 1; font-size: 20px; font-weight: 700; color: var(--navy); }
.ofe-cat-opts { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.ofe-cat-opts .fld { margin: 0; }
.ofe-colors { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ofe-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.ofe-color.on { box-shadow: 0 0 0 2px var(--navy); }
.ofe-colors input[type=color] { width: 34px; height: 30px; padding: 0 2px; border-radius: 8px; }
.ofe-icon-btn { --c: var(--teal); border: 1.5px dashed var(--line); background: #fff; border-radius: 12px; padding: 3px; cursor: pointer; }
.ofe-icon-btn:hover { border-color: var(--c); }
.ofe-icon-btn .of-ico-w { color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.ofe-items { display: grid; gap: 10px; margin-bottom: 12px; }
.ofe-item { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fbfcfd; position: relative; }
.ofe-item.off { opacity: .6; }
.ofe-item-top { display: flex; align-items: center; gap: 8px; position: relative; }
.ofe-item-name { flex: 1; font-weight: 700; }
.ofe-x { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: #a8322b; cursor: pointer; flex: 0 0 auto; }
.check.small { font-size: 13px; white-space: nowrap; margin: 0; }
.ofe-item-price { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 0; padding-inline-start: 72px; }
.ofe-lbl { font-size: 13px; color: var(--muted); }
.ofe-price { width: auto; min-width: 220px; max-width: 100%; padding: 6px 8px; font-size: 14px; }
.ofe-warn { font-size: 12px; color: #8a4310; background: #fde8d4; border-radius: 999px; padding: 2px 10px; }
.ofe-mats { margin-top: 8px; padding-inline-start: 72px; display: grid; gap: 6px; justify-items: start; }
.ofe-mat { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ofe-mat.off { opacity: .55; }
.ofe-mat-name { width: 220px; padding: 6px 8px; font-size: 14px; }
.ofe-pop { position: absolute; z-index: 50; top: 52px; right: 0; width: 330px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px; }
.ofe-pop-t { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.ofe-pop-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ofe-pop-i { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px 2px; cursor: pointer; color: var(--teal-d); }
.ofe-pop-i.on, .ofe-pop-i:hover { border-color: var(--teal); background: var(--teal-l); }
.ofe-pop-i small { font-size: 10px; color: var(--muted); }
.ofe-pop-i .of-ico { width: 26px; height: 26px; }
.ofe-pop-up { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.ofe-pop-up input { margin-top: 4px; font-size: 13px; }
.ofe-pop-st { display: block; color: #a8322b; }
.ofe-bar { position: sticky; bottom: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 -6px 18px rgba(1,56,86,.08); padding: 10px 16px; margin-top: 16px; }
.ofe-dirty { color: #8a4310; font-weight: 700; }
.ofe-saved { color: #17603a; font-weight: 700; }
@media (max-width: 900px) {
  .ofe { grid-template-columns: 1fr; }
  .ofe-cats { position: static; }
  .ofe-cat-opts { grid-template-columns: 1fr; }
  .ofe-item-price, .ofe-mats { padding-inline-start: 0; }
  .ofe-mat-name { width: 150px; }
  .ofe-pop { width: 290px; }
}
.ofe-mat { flex-wrap: nowrap; }
.ofe-mat > * { flex: 0 0 auto; }
.ofe input.ofe-mat-name { width: 230px; }
.ofe select.ofe-price { width: auto; }
.ofe-item-top > input.ofe-item-name { width: auto; min-width: 0; }
@media (max-width: 900px) { .ofe-mat { flex-wrap: wrap; } .ofe input.ofe-mat-name { width: 150px; } }
.ofe > * { min-width: 0; }
@media (max-width: 900px) { .ofe { grid-template-columns: minmax(0, 1fr); } .ofe-item-top { flex-wrap: wrap; } .ofe-item-top > input.ofe-item-name { flex: 1 1 140px; } }
.arch text { direction: ltr; unicode-bidi: plaintext; }
@media (max-width: 640px) { .of-items:has(.of-placeholder) { min-height: 0; padding: 6px; } .of-chart { padding: 4px; } }
.ar-link { filter: brightness(.68); }
/* English or Hebrew names: each one in its own direction */
.of-name, .of-chip, .of-col-title, .of-row-w strong, .of-row-cat, .ofe-cat-name, .ofe-item-name, .ofe-mat-name, .ofe-cat-input, .ofe-price option { unicode-bidi: plaintext; }
.of-name, .ofe-cat-name { text-align: right; }
/* whole-jaw works: only "upper / lower jaw" can be chosen */
.of-jawbar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 2px 0 6px; }
.of-jawbar[hidden] { display: none; }
.of-jawbtn { border: 2px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 8px 18px; font: inherit; font-weight: 700; cursor: pointer; }
.of-jawbtn:hover { border-color: var(--teal); background: var(--teal-l); }
.of-jawbtn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.arch.jaw-mode .ar-t[data-tooth="18"], .arch.jaw-mode .ar-t[data-tooth="28"], .arch.jaw-mode .ar-t[data-tooth="38"], .arch.jaw-mode .ar-t[data-tooth="48"] { opacity: .35; }
.arch.jaw-mode .ar-t.hov .ar-shape { fill: #d4ecee; stroke: var(--teal); }
.arch.jaw-mode .ar-t.sel.hov .ar-shape { filter: brightness(.9); }
.arch.jaw-mode .ar-t .ar-n { pointer-events: none; }
.ar-t.jawsel .ar-shape { stroke: rgba(255, 255, 255, .55); }
.ofe-plink { font-size: 13px; color: var(--teal-d); background: var(--teal-l); border-radius: 999px; padding: 2px 10px; unicode-bidi: plaintext; }
.ofe-plink.new { color: #8a4310; background: #fde8d4; }
.pr-sync { font-size: 14px; margin-bottom: 14px; }
.pr-wt { font-weight: 600; color: var(--navy); unicode-bidi: plaintext; display: inline-block; text-align: right; }
.price-edit td.pr-name { min-width: 280px; }
/* contacts archive */
td.ct-actions { white-space: nowrap; }
td.ct-actions form { display: inline-block; margin-inline-end: 6px; }
.ct-del { color: #b42318; }
.ct-left { margin: 2px 0 0; }
/* "עדכון מחיר" on the doctor account page */
.cost-edit { margin-top: 6px; }
.cost-edit > summary { list-style: none; display: inline-block; cursor: pointer; }
.cost-edit > summary::-webkit-details-marker { display: none; }
.cost-edit[open] > summary.btn { background: var(--navy); border-color: var(--navy); color: #fff; opacity: 1; }
.cost-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; white-space: normal; }
.cost-in { display: inline-flex; align-items: center; gap: 4px; }
.cost-in input { width: 110px; padding: 6px 8px; }

/* v49: shade per work (system → shades) + implant company → implant → scan body */
.sh-box { margin: 18px 0 4px; padding: 12px 14px; border: 1px solid #f1d49a; background: var(--gold-l); border-radius: 12px; }
.sh-step { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sh-step + .sh-step { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #ecd29c; }
.sh-lbl { font-weight: 700; color: var(--navy); }
.sh-systems { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-sys { border: 1.5px solid var(--gold-d); background: #fff; color: var(--navy); border-radius: 999px; padding: 6px 16px; font: inherit; font-weight: 700; cursor: pointer; direction: ltr; }
.sh-sys.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.sh-chips { margin: 0; flex: 1 1 100%; }
.shade-chip { min-width: 52px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; direction: ltr; color: var(--navy); }
.shade-chip.on { background: var(--gold); border-color: var(--gold-d); }
.sh-hint { margin: 0; flex: 1 1 100%; }
.sh-free { margin-top: 14px; }
.of-row-shade { padding: 7px 6px; font-weight: 700; direction: ltr; min-width: 0; }
.of-row-shade:disabled { opacity: .6; font-weight: 400; font-size: 13px; }
.imp-sel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.imp-sel.imp-picker { grid-template-columns: 1fr; }
.imp-step { display: flex; align-items: center; gap: 6px; min-width: 0; }
.imp-n { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.imp-sel select { min-width: 0; width: 100%; padding: 5px 6px; font-size: 13px; direction: ltr; text-align: left; }
.imp-sel select.missing:not(:disabled) { border-color: var(--gold-d); background: #fff8ea; }
.of-row.imp-missing { border-color: var(--gold-d); }
.el-imp { margin-top: 4px; font-size: 13px; direction: ltr; text-align: left; color: var(--navy); background: #eef6f7; border-radius: 8px; padding: 4px 8px; }
.el-imp-l { color: var(--muted); }
/* editor: shade systems + implant library */
.ofe-imp-flag { white-space: nowrap; color: var(--teal-d); }
.ole-shades-card { padding: 14px; margin-bottom: 16px; }
.ole-sh-list, .ole-sb { margin: 8px 0 0; }
.ole-sh-list textarea, .ole-sb textarea { font-size: 14px; }
.ole-imp { margin-top: 0; }
.ole-sys-top { flex-wrap: wrap; }
.ole-sys-fields { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; min-width: 0; }
.ole-sys-fields input, .ole-sys-fields select { min-width: 0; padding: 6px 8px; font-size: 14px; direction: ltr; }
.ole-search { margin-bottom: 12px; }
@media (max-width: 760px) { .ole-sys-fields { grid-template-columns: 1fr; flex-basis: 100%; } }
.sh-step[hidden] { display: none; }
.imp-sel.imp-row { grid-column: 2 / -1; margin-top: 0; }
@media (max-width: 640px) { .imp-sel.imp-row { grid-column: 1 / -1; grid-template-columns: 1fr; } }
/* v50: "not seen yet" counters in the staff menu */
.nav a.has-news { position: relative; }
.nav-badge { position: absolute; top: -4px; inset-inline-end: -6px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: #d92d20; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px #fff;
  pointer-events: none; animation: nav-pop .35s ease-out; }
body.menu-open .nav-badge { position: static; display: inline-grid; margin-inline-start: 6px; vertical-align: 1px; }
@keyframes nav-pop { from { transform: scale(.4); } to { transform: scale(1); } }
.menu-toggle.has-news { position: relative; }
.menu-toggle.has-news::after { content: ''; position: absolute; top: 4px; inset-inline-end: 4px; width: 10px; height: 10px; border-radius: 50%; background: #d92d20; box-shadow: 0 0 0 2px #fff; }
@media (prefers-reduced-motion: reduce) { .nav-badge { animation: none; } }
/* v51: English page – comments + longer notes */
.en-comment { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; background: #fbfcfd; }
.en-comment textarea { margin-top: 6px; }
.en-note { min-height: 38px; resize: vertical; }
/* v53: "הצג" – view attached files */
.fv-btn { padding: 2px 10px; margin-inline-start: 6px; vertical-align: 1px; }
.file-dl li { margin-bottom: 6px; }
.fv-section .wrap { max-width: 1400px; }
.fv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 6px 0 10px; }
.fv-title { font-size: 22px; margin: 0; color: var(--navy); word-break: break-all; }
.fv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.fv-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--navy); text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.fv-chip.off { opacity: .5; }
.fv-msg { padding: 24px; line-height: 1.7; }
.fv-media { background: #24333d; border-radius: 14px; padding: 12px; text-align: center; }
.fv-media img, .fv-media video { max-width: 100%; max-height: 78vh; border-radius: 8px; background: #fff; }
.fv-media audio { width: 100%; max-width: 520px; }
.fv-pdf { width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.fv-text { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; max-height: 75vh; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.6; }
.fv-sheet td { white-space: nowrap; }
.fv-3d { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; }
.fv-stage { position: relative; height: 74vh; min-height: 380px; background: #24333d; border-radius: 14px; overflow: hidden; touch-action: none; }
.fv-stage canvas { display: block; width: 100%; height: 100%; }
.fv-stage.dcm { display: grid; place-items: center; background: #000; }
.fv-stage canvas.fv-dcm { width: 100%; height: 100%; object-fit: contain; }
.fv-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; text-align: center; padding: 20px; background: rgba(36, 51, 61, .75); z-index: 2; line-height: 1.7; }
.fv-loading.bad { background: #24333d; color: #ffd7d3; font-weight: 500; }
.fv-loading[hidden] { display: none; }
.fv-side { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; align-self: start; display: grid; gap: 10px; }
.fv-side-title { font-weight: 800; color: var(--navy); }
.fv-models { display: grid; gap: 6px; }
.fv-model { display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto; gap: 2px 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; cursor: pointer; }
.fv-sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0,0,0,.15); }
.fv-mname { font-size: 13px; font-weight: 700; word-break: break-all; text-align: left; }
.fv-minfo { grid-column: 1 / -1; color: var(--muted); font-size: 12px; direction: rtl; }
.fv-tools, .fv-views { display: flex; flex-wrap: wrap; gap: 6px; }
.fv-tools .btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.fv-help { margin: 0; }
.fv-slider { margin: 0; }
.fv-slider input { width: 100%; }
@media (max-width: 900px) { .fv-3d { grid-template-columns: 1fr; } .fv-stage { height: 60vh; } }
/* v54: incoming orders (Digilab) */
.inc-btn { margin-inline-start: auto; }
.nav-badge.inl { position: static; display: inline-grid; margin-inline-start: 6px; vertical-align: 1px; animation: none; }
.inc-banner { display: block; margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: #fff4e0; border: 1px solid #f1d49a; color: var(--navy); font-weight: 700; text-decoration: none; }
.inc-banner:hover { background: #ffeccb; }
.inc-nomatch { color: #8a4310; font-size: 13px; }
.inc-work { max-width: 280px; }
.inc-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-bottom: 14px; }
.inc-grid .card { padding: 16px; }
.inc-grid dd { white-space: pre-wrap; }
.inc-open { padding: 16px; display: grid; gap: 10px; max-width: 640px; }
.inc-ok { color: #17603a; font-weight: 700; margin: 0; }
.inc-warn { color: #8a4310; font-weight: 700; margin: 0; }
.inc-reject { margin: 10px 0 18px; }
.inc-raw summary { cursor: pointer; color: var(--muted); }
.inc-raw pre { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; max-height: 50vh; overflow: auto; font-size: 12px; }
.inc-fs { background: #fff8ea; border-radius: 12px; }
.inc-files li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
@media (max-width: 800px) { .inc-grid { grid-template-columns: 1fr; } }
.inc-sync { font-size: 14px; margin: 0 0 12px; }
.inc-sync.ok { color: #17603a; }
.inc-sync.bad { color: #8a4310; }
/* v55: "בדיקת תקינות חיבור עם תוכנת המחשב" */
.pcc { padding: 16px 18px; margin-bottom: 18px; }
.pcc-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.pcc-title { font-size: 19px; color: var(--navy); margin: 0; }
.pcc-head .hint { margin: 4px 0 0; }
.pcc-sum { margin-top: 14px; padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.pcc-sum.ok { background: #e7f6ec; color: #17603a; }
.pcc-sum.warn { background: #fff4e0; color: #8a4310; }
.pcc-sum.bad { background: #fdecea; color: #a8322b; }
.pcc-sub { font-size: 15px; color: var(--navy); margin: 14px 0 6px; }
.pcc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pcc-item { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fbfcfd; }
.pcc-ic { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: #9aa7b0; margin-top: 2px; }
.pcc-item.ok .pcc-ic { background: #2e9d5b; }
.pcc-item.warn .pcc-ic { background: var(--gold-d); }
.pcc-item.bad .pcc-ic { background: #c0392b; }
.pcc-txt { display: grid; gap: 2px; min-width: 0; }
.pcc-detail { color: var(--muted); font-size: 14px; word-break: break-word; }
.pcc-wait { margin-top: 14px; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; background: #eef6f7; color: var(--navy); }
.pcc-spin { flex: 0 0 18px; height: 18px; border: 3px solid #bfe1e3; border-top-color: var(--teal); border-radius: 50%; animation: pcc-rot 1s linear infinite; }
@keyframes pcc-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pcc-spin { animation: none; } }
.inc-diag { font-size: 14px; color: var(--teal-d); }
.dg-sum { padding: 14px 18px; margin-bottom: 14px; }
.dg-keys { font-size: 13px; word-break: break-word; }
.dg-pre { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; max-height: 70vh; overflow: auto; font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.inc-drop { margin: 6px 0 0; padding: 8px 12px; border-radius: 10px; background: #fdecec; border: 1px solid #f3c2c2; color: #a12828; font-weight: 700; }
.inc-doc { margin-top: 16px; }
.inc-doc h3 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inc-doc details { margin-top: 10px; }
.inc-doc .table-wrap { margin-top: 10px; }
.fv-html { height: 85vh; }
.inc-doc .tbl th, .inc-doc .tbl td { text-align: start; }
.inc-auto { margin: 8px 0 12px; padding: 10px 14px; border-radius: 12px; background: #eef8f2; border: 1px solid #bfe3cd; }
.inc-auto ul { margin: 6px 0 0; padding-inline-start: 18px; list-style: none; }
.inc-auto li { margin: 3px 0; }
.inc-auto li.bad { color: #a15c00; }
.inv-card { margin-top: 16px; } .inv-card p { margin: 0 0 8px; }
.inv-tag { color: #a15c00; font-weight: 600; }
.acc-print { margin: 6px 0 14px; }
.of-jawprice { margin: 8px 0 2px; padding: 8px 10px; border-radius: 10px; background: #eef8f2; border: 1px solid #bfe3cd; font-size: .9rem; }
.del-card { margin-top: 16px; border-color: #f3c2c2; background: #fff8f8; } .del-card p { margin: 0 0 10px; }
.dp-more { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 14px; }
.dp-more .hint { max-width: 640px; margin: 6px auto 0; }
.sup-def { margin-top: 4px; display: inline-block; }
.of-sum-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .of-sum-head .of-sum-title { margin: 0; }
#teeth-clear[hidden] { display: none !important; }
.of-sum-head { margin-top: 18px; margin-bottom: 8px; }
.pcc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pcc-head .pcc-sum { flex: 1; margin: 0; }
.pcc-details[hidden] { display: none !important; }
.pcc-details { margin-top: 10px; }
.pcc-head { margin-top: 14px; }
.bk-log > summary { list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.bk-log > summary::-webkit-details-marker { display: none; }
.bk-log-sum { flex: 1; }
.bk-log .cl, .bk-log[open] .op { display: none; }
.bk-log[open] .cl { display: inline; }
.bk-log[open] > summary { margin-bottom: 10px; }
.ofe-tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.ofe-tag.teeth { background: #e3f4f5; color: #12676c; }
.ofe-tag.jaw { background: #fbeaf2; color: #9b2f62; }
.ofe-tag.order { background: #eef0f3; color: #4c5a66; }
.ofe-cat-name .ofe-tag { margin-top: 3px; }
.cheap-box { margin: 6px 0 14px; padding: 10px 14px; border-radius: 12px; background: #eef8f2; border: 1px solid #bfe3cd; }
.cheap-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cheap-line.warn { color: #8a4310; }
.cheap-box:has(.warn) { background: #fff6e8; border-color: #f1d49a; }
.cheap-more { margin-top: 8px; }
.cheap-more summary { cursor: pointer; color: var(--teal-d); font-weight: 600; }
.cheap-more tr.best td { background: #e2f5e8; font-weight: 700; }
.nav a.nav-wa { display: inline-flex; align-items: center; gap: 4px; color: #128c4a; font-weight: 700; }
.nav a.nav-wa svg { width: 17px; height: 17px; flex: none; }
.nav a.nav-wa:hover { background: #e7f6ec; }
@media (max-width: 1499px) { .nav a.nav-wa span { display: none; } .nav a.nav-wa svg { width: 20px; height: 20px; } }

/* "הורדת תוכנת חשבוניות" (v89) */
.nav a.nav-fin { display: inline-flex; align-items: center; gap: 4px; color: var(--teal); font-weight: 700; }
.nav a.nav-fin svg { width: 17px; height: 17px; flex: none; }
.nav a.nav-fin:hover { background: #e6f3f4; }
.nav a.nav-fin.active { color: #fff; }
@media (max-width: 1499px) { .nav a.nav-fin span:not(.nav-dot) { display: none; } .nav a.nav-fin svg { width: 20px; height: 20px; } }
@media (max-width: 900px) { .nav a.nav-fin span:not(.nav-dot) { display: inline; } }
.fa-card { padding: 24px 18px; margin-bottom: 18px; }
.fa-ver { font-size: 17px; margin: 0 0 14px; }
.fa-sha { font-family: monospace; }

/* red dot on "תוכנת חשבוניות" while a new version was not opened yet (v90) */
.nav a.nav-fin.has-news { position: relative; }
.nav-dot { position: absolute; top: 2px; inset-inline-end: 0; width: 10px; height: 10px; border-radius: 50%; background: #d92d20;
  box-shadow: 0 0 0 2px #fff; pointer-events: none; animation: nav-pop .35s ease-out; }
body.menu-open .nav-dot { position: static; display: inline-block; margin-inline-start: 6px; }
@media (prefers-reduced-motion: reduce) { .nav-dot { animation: none; } }

/* the company's registered name and number (v91) */
.footer-legal { font-size: 12.5px; opacity: .85; margin-top: 2px; }
.sheet-brand { display: flex; flex-direction: column; gap: 4px; }
.sheet-legal { font-size: 12px; color: var(--muted); }

/* invoices / receipts from the accounting software: download + print (v92) */
.fin-doc-act .btn { margin-inline-start: 4px; }
.fin-print-frame { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
@media print { .fin-print .fin-print-frame { height: 100vh; border: 0; } }

/* select / unselect all files (v93) */
.fsel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 10px; }
.fsel-count { font-size: 13px; }
.file-dl .inc-pick { width: 18px; height: 18px; vertical-align: -3px; margin-inline-end: 4px; accent-color: var(--teal); }

/* v94: "כפל בהזמנה" – the same patient twice in incoming orders on the same day */
.dup-badge{display:inline-block;margin-inline-start:6px;padding:2px 8px;border-radius:999px;background:#dc2626;color:#fff;font-size:.78rem;font-weight:700;white-space:nowrap;vertical-align:middle;cursor:help}
.page-title .dup-badge{font-size:.9rem}
tr.dup-row td{background:#fef2f2}
tr.dup-row td:first-child{box-shadow:inset -4px 0 0 #dc2626}
.dup-flash a{font-weight:700;text-decoration:underline}

/* v95: the tooth number of a selected work can be changed (select in the number chip) */
select.of-row-tooth { appearance: none; -webkit-appearance: none; border: 0; cursor: pointer; width: 100%; font-family: inherit;
  background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23fff'/%3E%3C/svg%3E") no-repeat 8px center;
  padding-inline: 18px 6px; text-align-last: center; }
select.of-row-tooth:hover, select.of-row-tooth:focus-visible { filter: brightness(1.08); outline: 2px solid rgba(0,0,0,.25); outline-offset: 1px; }
select.of-row-tooth option, select.of-row-tooth optgroup { color: #111; background: #fff; font-weight: 600; }

/* v96: linked supplier services (Single units ↔ Bridge) */
.svc-twin { display: block; color: var(--teal); font-size: 11.5px; font-weight: 600; margin-top: 2px; }
@keyframes twinFlash { from { background: #e3f6f3; } to { background: transparent; } }
tr.twin-flash td { animation: twinFlash 1.2s ease-out; }

/* v98: an order sent again to the same supplier – only the last sending is listed */
.fwd-resent { color: #b45309; font-weight: 600; white-space: nowrap; }

/* v99: "ההזמנה כבר נשלחה" – a second click sends it again */
.resend-warn { background: #fff4e5; border: 2px solid #e8a33d; color: #7a3e00; border-radius: 10px; padding: 10px 14px; margin: 10px 0; line-height: 1.6; text-align: right; }
.btn.btn-resend { background: #c2410c; border-color: #c2410c; color: #fff; }

/* v100: status 5 "נמסר" + "הזמנות סגורות" */
.st-4 { background: #e7e9ee; color: #374151; }
.ord-tabs { margin: 0 0 14px; }
tr.row-leaving td { transition: opacity .6s, background .6s; opacity: 0; background: var(--ok-l); }

/* v101: "משיכה מחדש" of a handled incoming case */
.refetch-badge { display: inline-block; margin-inline-start: 6px; padding: 2px 8px; border-radius: 999px; background: #dc2626; color: #fff; font-size: .78rem; font-weight: 700; white-space: nowrap; vertical-align: middle; cursor: help; }
.inc-refetch { display: inline; margin-inline-start: 6px; }

/* v102: "הרצת מחיר", "חסימת מחירון", "הסתרת חשבון" */
.rerun-box, .vis-box { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 16px 0; text-align: right; }
.rerun-box > div, .vis-box > div { flex: 1 1 320px; }
.rerun-box h3, .vis-box h3 { margin: 0 0 6px; }

/* v104: the cheapest cost also in dollars */
.cheap-usd { color: var(--teal-d, #0f6e73); }

/* v105: "שינוי סטטוס הזמנות" – several orders at once */
.bulk-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; }
.bulk-bar select { width: auto; min-width: 190px; }
.bulk-count.on { color: var(--teal-d, #0f6e73); font-weight: 700; }
.bulk-cell { width: 34px; text-align: center; }
.bulk-cell input { width: 18px; height: 18px; cursor: pointer; }
.tbl tr.bulk-on td { background: #eef8f7; }

/* v110: company stamp + signature on official documents (order sheet) */
.doc-stamp { display: flex; flex-direction: column; align-items: center; width: 240px; margin: 26px 0 6px auto; margin-inline-start: auto; margin-inline-end: 0; break-inside: avoid; page-break-inside: avoid; }
[dir="rtl"] .doc-stamp, .doc-stamp { margin-right: auto; margin-left: 0; }
.doc-stamp img { width: 220px; height: auto; display: block; }
.doc-stamp span { color: var(--muted, #6b7c88); font-size: 12px; border-top: 1px solid #cfd8de; padding-top: 4px; margin-top: 2px; width: 100%; text-align: center; }
/* v111: "חותמות וחתימות" */
.stamp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 10px; }
.stamp-item { border: 1px solid var(--line, #e3e8ef); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; background: #fff; }
.stamp-prev { width: 190px; height: 130px; object-fit: contain; background: repeating-conic-gradient(#f3f5f7 0 25%, #fff 0 50%) 0 0/16px 16px; border-radius: 8px; }
.stamp-none { width: 190px; height: 130px; display: grid; place-items: center; color: #8a97a3; border: 2px dashed #d5dde4; border-radius: 8px; }
.stamp-who { display: flex; flex-direction: column; align-items: center; font-size: 14px; }
.stamp-who span { color: #6b7c88; font-size: 12.5px; }
.stamp-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.stamp-editor { margin-top: 16px; }
.stamp-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.stamp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stamp-compare figure { margin: 0; border: 1px solid var(--line, #e3e8ef); border-radius: 10px; padding: 10px; text-align: center; overflow: hidden; }
.stamp-compare figcaption { font-size: 13px; color: #6b7c88; margin-bottom: 6px; }
.stamp-compare img { max-width: 100%; max-height: 300px; transition: transform .2s; }
#stamp-out { background: repeating-conic-gradient(#f3f5f7 0 25%, #fff 0 50%) 0 0/16px 16px; }
.stamp-save { display: flex; gap: 10px; margin-top: 14px; }
@media (max-width: 640px) { .stamp-compare { grid-template-columns: 1fr; } }
/* v114: "אימות מספר הזמנות" + "הדפסת הזמנה" */
.verify-form p { margin-top: 0; }
.verify-form .row-flex { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.verify-ok { background: #e7f6ee; color: #1d7a45; font-weight: 700; border-radius: 10px; padding: 12px 16px; font-size: 16px; }
.verify-bad { background: var(--danger-l, #fdecec); color: var(--danger, #c0362c); font-weight: 700; border-radius: 10px; padding: 12px 16px; font-size: 16px; }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.vchip { background: #eef3f6; border-radius: 999px; padding: 4px 12px; font-size: 13.5px; }
.vchip.good { background: #e7f6ee; color: #1d7a45; }
.vchip.bad { background: var(--danger-l, #fdecec); color: var(--danger, #c0362c); }
.verify-tbl .vprob { color: var(--danger, #c0362c); font-weight: 600; }
.verify-res + h2 { margin-top: 18px; }
.print-list td:last-child { text-align: left; width: 1%; white-space: nowrap; }
.slip .slip-tbl td { vertical-align: top; }
.slip-teeth { width: 34%; text-align: right; }
.slip-imp { font-size: 12px; color: #4a5a66; margin-top: 2px; direction: ltr; text-align: right; }
.slip-main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; margin-top: 6px; }
.slip-main h3 { margin-top: 6px; }
.slip-shade { margin-top: 10px; font-size: 15px; border: 1.5px solid #c9d3da; border-radius: 8px; padding: 6px 12px; display: inline-block; }
.slip-chart .sheet-arch { max-width: 300px; margin: 0 auto; }
@media (max-width: 700px) { .slip-main { grid-template-columns: 1fr; } }
@media print {
  .slip-page .order-sheet { font-size: 10pt; }
  .slip-page .slip-main { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) !important; gap: 14px; }
  .slip-page .slip-chart .sheet-arch { max-width: 290px; }
  .slip-page .slip-tbl, .slip-page .slip-main section { break-inside: auto !important; }
  .slip-page .slip-tbl td, .slip-page .slip-tbl th { padding: 3px 6px; }
  .slip-page .sheet-grid { gap: 14px !important; }
  .slip-page .order-sheet h3 { margin: 6px 0 4px; }
}
/* v116: "הודפס בעבר" */
.printed-badge { display: inline-block; background: #fff4dc; color: #8a5e10; border: 1px solid #f0d9a6; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.print-list tr.was-printed td { background: #fffbf2; }
.printed-note { background: #fff4dc; color: #8a5e10; border: 1px solid #f0d9a6; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-weight: 600; }
.unprint-btn { color: #9a4a3a; margin-inline-start: 6px; }
/* v118: "חיפוש הזמנה" in a doctor's account */
.acc-search { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; }
.acc-search .fld { flex: 1 1 280px; margin: 0; }
.acc-count { padding-bottom: 10px; }
@media print { .acc-search { display: none; } }
/* v122: "עדכון במייל" in the users list */
.mail-upd { margin-top: 4px; }
.mail-upd label { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #1d7a45; cursor: pointer; white-space: nowrap; }
.mail-upd label.off { color: #9a4a3a; text-decoration: line-through; text-decoration-thickness: 1px; }
.mail-upd input { margin: 0; }
/* v123: "השוואת מחירים בין הספקים" */
.cmp-link { margin: 4px 0 18px; }
.cmp-tools { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; }
.cmp-tools .fld { flex: 1 1 260px; margin: 0; }
.cmp-wrap { overflow-x: auto; }
.cmp-tbl th.cmp-sup { text-align: center; min-width: 120px; }
.cmp-tbl td.cmp-work, .cmp-tbl th.cmp-work { position: sticky; right: 0; background: #fff; z-index: 1; min-width: 220px; }
.cmp-tbl thead th.cmp-work { background: var(--navy); z-index: 2; }
.cmp-tbl td.cmp-cell { text-align: center; white-space: nowrap; }
.cmp-tbl td.cmp-cell small { display: block; font-size: 11.5px; }
.cmp-tbl td.cmp-none { text-align: center; color: #b8c2ca; }
.cmp-tbl td.cmp-best { background: #e7f6ee !important; color: #1d7a45; font-weight: 700; }
.cmp-tbl td.cmp-worst { color: #9a4a3a; }
.cmp-tag { display: inline-block; margin-top: 3px; background: #1d7a45; color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 8px; font-weight: 600; }
.cmp-diff { color: #9a4a3a; }
.cmp-usd { display: none !important; color: #6b7c88; }
.cmp-tbl.show-usd .cmp-usd { display: block !important; }
.cmp-tbl tfoot td { background: #f3f6f8; font-weight: 600; }
@media print { .cmp-tools { display: none; } .cmp-tbl td.cmp-work { position: static; } }
/* v124: "הדפסת הזמנות מסומנות" */
.pp-bar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; }
.pp-pick { width: 1%; }
.print-list tr.pp-sel td { background: #eef8f7 !important; }
.slip-page-break + .slip-page-break { margin-top: 24px; }
@media print {
  .slip-page-break { break-after: page; page-break-after: always; }
  .slip-page-break:last-child { break-after: auto; page-break-after: auto; }
  .slip-page-break + .slip-page-break { margin-top: 0; }
}
/* v128: closing line on printed orders */
.thanks-line { text-align: center; margin: 22px 0 0; padding-top: 10px; border-top: 1px solid #dfe6eb; color: var(--teal, #188b92); font-size: 15px; font-weight: 600; }
@media print { .thanks-line { font-size: 12pt; break-inside: avoid; } }
/* v129: bulk unprint + barcode on slips */
.pp-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.slip-barcode { margin-top: 6px; display: inline-block; text-align: center; line-height: 1; }
.slip-barcode .barcode { display: block; height: 44px; width: auto; max-width: 230px; }
.slip-barcode .bc-num { font: 600 11px/1.2 monospace; letter-spacing: 2px; margin-top: 2px; }
@media print { .slip-barcode .barcode { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* v130: "שליחות והחזרות" – barcode scanning */
.sec-title { font-size: 20px; margin: 28px 0 10px; color: var(--navy, #0b3954); }
.dp-scan { padding: 18px; }
.dp-scan-top { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.dp-wedge { display: flex; gap: 8px; align-items: flex-end; flex: 1; min-width: 260px; }
.dp-wedge .fld { margin: 0; }
.dp-wedge input { font-size: 18px; letter-spacing: 1px; }
.dp-msg { min-height: 24px; margin: 12px 0 4px; font-weight: 600; }
.dp-msg.ok { color: #12805c; } .dp-msg.err { color: #c0392b; } .dp-msg.warn { color: #b26a00; } .dp-msg.info { color: #43617a; }
.dp-queue-head { display: flex; gap: 12px; align-items: baseline; margin-top: 6px; }
.dp-queue { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.dp-queue li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: #eaf7f1; border: 1px solid #bfe6d3; }
.dp-queue li.warn { background: #fff6e5; border-color: #f2d49b; }
.dp-queue li.halt { background: #fdecea; border-color: #f4a3a0; } .dp-warn.dp-halt { color: #b42318; font-weight: 600; } /* v270 */
.dp-queue li strong { font-size: 17px; min-width: 52px; }
.dp-warn { color: #b26a00; font-size: 13px; }
.dp-rm { margin-inline-start: auto; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: #8a99a6; padding: 2px 8px; }
.dp-rm:hover { color: #c0392b; }
.dp-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid #e3eaef; padding-top: 12px; margin-top: 6px; }
.dp-actions .chk { margin-inline-end: auto; display: flex; gap: 6px; align-items: center; }
.dp-ready tr.dp-in td { background: #eaf7f1; }
.dp-ready tr.dp-in .dp-add { visibility: hidden; }
.dp-ubar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
/* camera overlay */
body.dp-cam-open { overflow: hidden; }
.dp-cam { position: fixed; inset: 0; z-index: 9999; background: #000; display: flex; align-items: center; justify-content: center; }
.dp-cam[hidden] { display: none; }
.dp-cam video { width: 100%; height: 100%; object-fit: cover; }
.dp-aim { position: absolute; left: 8%; right: 8%; top: 32%; bottom: 32%; border: 3px solid rgba(255,255,255,.9); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); pointer-events: none; transition: border-color .15s; }
.dp-line { position: absolute; left: 4%; right: 4%; top: 50%; height: 2px; background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; animation: dpscan 1.6s ease-in-out infinite alternate; }
@keyframes dpscan { from { transform: translateY(-34px); } to { transform: translateY(34px); } }
.dp-cam.hit .dp-aim { border-color: #2ee59d; }
.dp-cam-top { position: absolute; top: 0; left: 0; right: 0; padding: 14px 16px calc(14px); padding-top: max(14px, env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 6px; align-items: center; color: #fff; text-align: center; background: linear-gradient(rgba(0,0,0,.6), transparent); font-weight: 600; }
.dp-cam-top #dp-cam-n { font-size: 20px; }
.dp-cam-top .ok { color: #7dffc4; } .dp-cam-top .err { color: #ff9b9b; } .dp-cam-top .warn { color: #ffd27a; }
.dp-cam-bar { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); display: flex; gap: 12px; justify-content: center; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.dp-cam-bar .btn-ghost { background: rgba(255,255,255,.2); color: #fff; }
@media (max-width: 700px) {
  .dp-scan-top > #dp-cam { width: 100%; font-size: 20px; padding: 18px; }
  .dp-actions > .btn { flex: 1; }
}
@media (max-width: 700px) {
  .dp-actions .chk { width: 100%; }
  #dp-ship { white-space: nowrap; font-size: 15px; padding-inline: 12px; }
  .dp-wedge { min-width: 0; width: 100%; }
}
/* v135: shipping labels */
.pp-acts { white-space: nowrap; }
.label-form .chk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 14px; margin: 8px 0 12px; }
.label-form .chk-line { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 4px 0; }
.label-form .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 14px; }
.label-form .lb-help { margin: 6px 0 14px; font-size: 14px; } .label-form .lb-help summary { cursor: pointer; font-weight: 600; color: var(--teal, #188b92); }
.label-form .lb-help ol { margin: 8px 0 0; padding-inline-start: 20px; line-height: 1.7; }
.label-form .row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.label-form .lb-custom[hidden] { display: none; }
/* v137: doctor label */
.dl-wrap { display: grid; grid-template-columns: minmax(280px, 1fr) 420px; gap: 18px; align-items: start; }
.dl-chks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 12px; margin-bottom: 12px; }
.dl-form .chk-line, .dl-chks .chk-line { display: flex; gap: 8px; align-items: center; font-size: 15px; margin: 4px 0; }
.dl-form .row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-prev { padding: 8px; background: #e9edf0; }
.dl-prev iframe { width: 100%; height: 620px; border: 0; background: #e9edf0; }
.label-form .lb-sub { font-size: 15px; margin: 14px 0 4px; color: var(--navy, #0b3954); }
@media (max-width: 900px) { .dl-wrap { grid-template-columns: 1fr; } .dl-prev iframe { height: 560px; } }
.g-steps { margin: 6px 0 10px; padding-inline-start: 20px; line-height: 1.8; }
/* v140: "אפליקציית סריקה" */
.app-dl { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
.app-qr-card { text-align: center; } #app-qr svg { width: 220px; height: 220px; }
.app-plats { display: grid; gap: 14px; } .app-plat h3 { margin: 0 0 6px; } .app-plat ol { margin: 0; padding-inline-start: 20px; line-height: 1.9; }
.app-plat.mine { border: 2px solid var(--teal, #188b92); }
@media (max-width: 800px) { .app-dl { grid-template-columns: 1fr; } }
/* v142: Analog */
.btn-ok { background: #e8f7ee; color: #12805c; border: 1px solid #9fd8b6; }
.btn-ok:hover { background: #d6f1e1; }
.ok-v { color: #12a150; font-weight: 800; }
.analog-btn { margin-inline-start: 4px; }
.an-sum { opacity: .75; font-weight: 600; }
.analog-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.analog-form h3 { flex-basis: 100%; margin: 0 0 4px; }
.an-fld { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.an-fld input { width: 120px; padding: 10px 12px; font-size: 18px; border: 1px solid #cfd9e0; border-radius: 10px; text-align: center; }
.analog-card { margin-top: 16px; } .analog-card h3 { margin: 0 0 10px; font-size: 16px; }
.an-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0; }
.an-tot { text-align: center; } .an-tot span { display: block; color: #5b7183; font-weight: 600; } .an-tot b { font-size: 44px; color: var(--navy, #0b3954); }
.an-in-row { display: block; margin: 6px 0 0; padding: 3px 8px; font-size: 12px; white-space: nowrap; text-align: center; }
/* v143: "חבילות מחו״ל" */
.in-scan { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.in-scan .dp-wedge { flex: 1; min-width: 260px; }
.pk-res { flex-basis: 100%; border-top: 1px solid #e3eaef; padding-top: 10px; }
.pk-res .err { color: #c0392b; font-weight: 700; }
.pk-list { margin: 6px 0 12px; padding-inline-start: 20px; line-height: 1.8; }
.in-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; }
.in-bar select, .in-bar input { padding: 9px 12px; border: 1px solid #cfd9e0; border-radius: 10px; font-size: 15px; }
.in-bar input { min-width: 220px; }
.trk { text-decoration: none; white-space: nowrap; } .trk:hover { text-decoration: underline; }
.rel-badge { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 12px; background: #fff3dc; color: #8a5a00; font-size: 12px; font-weight: 700; white-space: nowrap; }
.trk-line { margin-top: 4px; font-size: 14px; }
.in-bar select { width: auto !important; flex: 0 0 180px; }
.in-bar input { width: auto !important; flex: 1 1 220px; max-width: 320px; }
.in-bar .in-n { margin-inline-end: 6px; }
.in-scan .fld input { width: 100%; padding: 11px 12px; font-size: 16px; border: 2px solid var(--teal, #188b92); border-radius: 10px; }
/* v145: "פאנל מנהל" */
.pn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 980px; margin: 18px auto 0; }
.pn-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 26px 12px 20px; min-height: 170px;
  background: #fff; border: 1px solid #e3eaef; border-radius: 18px; box-shadow: 0 2px 8px rgba(11,57,84,.06); text-decoration: none; color: var(--navy, #0b3954);
  transition: transform .12s, box-shadow .12s, border-color .12s; text-align: center; }
.pn-tile:hover, .pn-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(11,57,84,.14); border-color: var(--teal, #188b92); }
.pn-ico { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--teal, #188b92), var(--navy, #0b3954)); box-shadow: 0 6px 14px rgba(24,139,146,.3); }
.pn-ico svg { width: 40px; height: 40px; }
.pn-lbl { font-weight: 700; font-size: 16px; line-height: 1.3; }
.pn-note { color: #c0392b; font-weight: 700; }
.pn-alert .pn-ico { background: linear-gradient(145deg, #e0483c, #8d241c); }
.nav-panel { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.nav-panel svg { width: 18px; height: 18px; }
.panel-back { margin-top: 18px; }
@media (max-width: 900px) { .pn-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .pn-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .pn-tile { min-height: 140px; padding: 18px 8px; } .pn-ico { width: 60px; height: 60px; } .pn-ico svg { width: 32px; height: 32px; } .pn-lbl { font-size: 14px; } }
.settings-one > h2.section-title { display: none; }
/* v148: "שליטה חיצונית לאתר" */
.ext-user { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ext-name { font: 800 26px/1.2 monospace; color: var(--navy, #0b3954); letter-spacing: 1px; }
.ext-links { display: grid; gap: 10px; margin: 14px 0; }
.ext-link { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; background: #fff; border: 1px solid #e3eaef; border-radius: 14px; text-decoration: none; color: var(--navy, #0b3954); }
.ext-link:hover { border-color: var(--teal, #188b92); box-shadow: 0 4px 14px rgba(11,57,84,.1); }
.ext-link small { grid-column: 1; color: #5b7183; } .ext-go { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 20px; color: var(--teal, #188b92); }
.ext-edit { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; } .ext-edit .fld { flex: 1; margin: 0; }
.ext-edit-box summary { cursor: pointer; font-weight: 600; color: var(--teal, #188b92); }
.ext-edit { margin-top: 10px; } .ext-edit input { width: 100%; padding: 10px 12px; border: 1px solid #cfd9e0; border-radius: 10px; font-size: 15px; }
.ext-site { position: relative; margin-bottom: 10px; }
.ext-su { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 16px 0; font-size: 14px; }
.ext-del { position: absolute; left: 44px; top: 10px; }
.ext-add summary { cursor: pointer; font-weight: 700; color: var(--teal, #188b92); }
.ext-add-form { margin-top: 10px; } .ext-add-form input { width: 100%; padding: 10px 12px; border: 1px solid #cfd9e0; border-radius: 10px; font-size: 15px; }
/* v150: "צפי הגעה" */
.in-eta { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.in-eta input { width: auto !important; flex: none !important; padding: 8px 10px; border: 1px solid #cfd9e0; border-radius: 10px; }
.in-more { display: inline-flex; gap: 4px; }
.eta-line { margin-top: 4px; font-size: 13px; color: #0c6b67; white-space: nowrap; }

/* v151 – אבטחת מידע */
.sec-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 18px 0; }
.sec-stat { background: #fff; border: 1px solid var(--line, #e3e6ea); border-radius: 12px; padding: 14px 10px; text-align: center; }
.sec-stat b { display: block; font-size: 28px; line-height: 1.1; }
.sec-stat span { font-size: 13px; color: #667085; }
.sec-stat.sec-bad b { color: #b42318; }
.sec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sec-card { margin-bottom: 16px; }
.sec-checks, .sec-list { list-style: none; padding: 0; margin: 0; }
.sec-chk { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #f0f1f3; }
.sec-chk:last-child { border-bottom: 0; }
.sec-chk small { display: block; color: #667085; }
.sec-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; }
.sec-chk.ok .sec-mark { background: #12b76a; }
.sec-chk.no .sec-mark { background: #f79009; }
.sec-list li { padding: 6px 0; line-height: 1.55; }
.sec-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; background: #eef2f6; white-space: nowrap; }
.sec-ok .sec-pill { background: #dcfae6; color: #067647; }
.sec-warn .sec-pill { background: #fef0c7; color: #93370d; }
.sec-bad .sec-pill { background: #fee4e2; color: #b42318; }
.sec-filter { margin-bottom: 10px; }
.sec-set { max-width: 460px; }
.sec-tbl td { vertical-align: middle; }
@media (max-width: 900px) { .sec-stats { grid-template-columns: repeat(3, 1fr); } .sec-cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sec-stats { grid-template-columns: repeat(2, 1fr); } }

/* v152 – קורא ברקודים USB */
.usb-toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: #0f2a44; color: #fff; padding: 12px 20px;
  border-radius: 12px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: .25s; z-index: 9999; }
.usb-toast.on { opacity: 1; transform: translate(-50%, 0); }
.usb-ready { animation: usbPulse 1s ease-in-out 3; }
@keyframes usbPulse { 50% { box-shadow: 0 0 0 6px rgba(42,157,143,.35); } }
.sc-card { margin-bottom: 16px; }
.sc-opt { display: block; padding: 8px 0; }
.sc-saved { color: #067647; font-weight: 700; }
.sc-test { width: 100%; font-size: 20px; padding: 12px; border: 2px dashed #2a9d8f; border-radius: 10px; }
.sc-res { margin-top: 10px; min-height: 24px; }
.sc-res.ok { color: #067647; }
.sc-steps li { margin-bottom: 10px; line-height: 1.6; }
.flash-info { background: #eef4ff; color: #1e3a8a; border: 1px solid #c7d7fe; }
.lb-mini-opts { margin: 6px 0 10px; padding: 8px 12px; background: #f6f8fa; border-radius: 8px; }
.le-card { margin-top: 16px; } .le-on { color: #067647; }

/* v159 – סריקה מהנייד */
.relay-btn.on { border-color: #12b76a; color: #067647; }
.relay-pill { position: fixed; bottom: 18px; left: 18px; z-index: 9998; background: #12b76a; color: #fff; border: 0; border-radius: 999px;
  padding: 9px 16px; font: 700 14px Arial, sans-serif; box-shadow: 0 6px 18px rgba(0,0,0,.18); cursor: pointer; }
.relay-pill[hidden] { display: none; }
.relay-modal { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.relay-box { background: #fff; border-radius: 14px; padding: 20px 22px; max-width: 480px; width: 100%; line-height: 1.6; }
.relay-box h3 { margin: 0 0 8px; } .relay-box ol { padding-right: 20px; } .relay-box .ok { color: #067647; }
.scan-list-bar { margin: 10px 0; padding: 10px 14px; border-radius: 10px; background: #eef4ff; border: 1px solid #c7d7fe; color: #1e3a8a; }

/* v162 – מהלך ההזמנה */
.oh-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.oh-sum > div { background: #fff; border: 1px solid var(--line, #e3e6ea); border-radius: 12px; padding: 12px; text-align: center; }
.oh-sum b { display: block; font-size: 20px; color: var(--navy, #0b3954); } .oh-sum span { font-size: 13px; color: #667085; }
.oh-list { list-style: none; padding: 0 12px 0 0; margin: 0; border-right: 3px solid #d0d7de; }
.oh-ev { position: relative; display: flex; gap: 10px; padding: 8px 14px 8px 0; }
.oh-dot { position: absolute; right: -21px; top: 13px; width: 13px; height: 13px; border-radius: 50%; background: #22a39f; border: 2px solid #fff; }
.oh-info .oh-dot { background: #98a2b3; }
.oh-btn { white-space: nowrap; }
.inc-transfer { margin: 12px auto; max-width: 900px; border-right: 4px solid #f0a020; } .inc-transfer ul { margin: 6px 0; padding-right: 20px; }

/* v165 – "הזמנות": tooth numbers side by side (a few rows instead of one long column) */
.tbl td.teeth-cell { min-width: 150px; max-width: 230px; white-space: normal; line-height: 1.15; }
.teeth-cell .tchip { margin: 1px 0; padding: 0 4px; font-size: 12px; }
.tbl td.shade-cell { min-width: 140px; max-width: 220px; white-space: normal; }
.shade-cell > span { display: block; text-align: right; unicode-bidi: plaintext; }

/* v166 – "ניהול הזמנות": the whole table fits the screen (no sideways scrolling) */
.wrap.ord-wrap { max-width: none; padding: 0 12px; }
.ord-wrap-t { overflow-x: visible; }
.tbl.ord-tbl { font-size: 13px; table-layout: auto; }
.ord-tbl th, .ord-tbl td { padding: 7px 5px; }
.ord-tbl th { white-space: normal; line-height: 1.2; }
.ord-tbl td.teeth-cell { min-width: 96px; max-width: 150px; }
.ord-tbl td.shade-cell { min-width: 90px; max-width: 140px; }
.ord-tbl td.clip { max-width: 170px; }
.ord-tbl td.nowrap { white-space: normal; }
.ord-tbl .tchip { font-size: 11.5px; }
.ord-tbl select { max-width: 120px; font-size: 13px; }
.ord-tbl .btn-sm { padding: 4px 8px; font-size: 12.5px; }
@media (max-width: 1100px) { .ord-wrap-t { overflow-x: auto; } }
/* v167 – "סוג העבודה": one line per kind of work */
.ord-tbl td.work-cell { min-width: 160px; max-width: 320px; }
.work-cell .wk { display: block; line-height: 1.35; } .work-cell .wk small { color: #667085; font-weight: 700; }

/* v168 – "ניהול הזמנות": compact rows, columns only as wide as their text (also on a very wide screen) */
.tbl.ord-tbl { width: auto; max-width: 100%; margin-inline: auto; font-size: 13px; }
.ord-wrap-t { width: fit-content; max-width: 100%; margin-inline: auto; }
.ord-tbl th, .ord-tbl td { padding: 3px 6px; line-height: 1.2; }
.ord-tbl th { padding: 6px; }
.ord-tbl td.teeth-cell { min-width: 0; max-width: none; }
.ord-tbl .tchips { display: flex; flex-wrap: wrap; gap: 1px 2px; max-width: 132px; }
.ord-tbl .tchip { margin: 0; padding: 0 3px; font-size: 11px; line-height: 1.35; }
.ord-tbl td.work-cell { min-width: 150px; max-width: 360px; }
.ord-tbl .work-cell .wk { line-height: 1.25; }
.ord-tbl .an-in-row { margin: 2px 0 0; padding: 1px 6px; font-size: 11px; }
.ord-tbl .ord-no { font-size: 13px; padding: 1px 6px; }
.ord-tbl .status-sel { padding: 2px 22px 2px 6px; font-size: 12.5px; height: auto; min-height: 0; }
.ord-tbl .btn-sm { padding: 2px 8px; font-size: 12px; }
.ord-tbl td.nowrap { white-space: nowrap; }

/* v169 – bigger text in "ניהול הזמנות" (rows stay compact) */
.tbl.ord-tbl { font-size: 15.5px; }
.ord-tbl th { font-size: 15px; }
.ord-tbl td { padding: 4px 7px; }
.ord-tbl .tchips { max-width: 168px; gap: 2px 3px; }
.ord-tbl .tchip { font-size: 13.5px; padding: 0 4px; }
.ord-tbl .ord-no { font-size: 15px; }
.ord-tbl .status-sel { font-size: 14.5px; }
.ord-tbl .btn-sm { font-size: 14px; padding: 3px 10px; }
.ord-tbl .an-in-row { font-size: 12.5px; }
.ord-tbl .work-cell .wk small { font-size: 12.5px; }
/* v172 "💻 הדפסה למחשב" – a print request from the phone */
.prelay-note { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 9000; background: #0b3954; color: #fff;
  padding: 10px 14px; border-radius: 12px; box-shadow: 0 8px 26px rgba(0,0,0,.3); display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 32px); flex-wrap: wrap; }
.prelay-note .link { color: #fff; }
.prelay-frame { position: fixed; width: 1px; height: 1px; left: -9999px; top: 0; border: 0; opacity: 0; }
/* v175 – the English order as it was sent to a supplier */
.fwd-view { margin-top: 4px; white-space: nowrap; }
.fwd-sent { text-align: left; font-family: Arial, "Segoe UI", sans-serif; overflow-x: auto; }
.fwd-sent-subj { border-bottom: 1px solid #e3eaee; padding-bottom: 8px; margin-bottom: 12px; }
.fwd-sent-meta { margin: 0; }
@media print { .no-print, .site-header, header.top, nav { display: none !important; } .fwd-sent { box-shadow: none; border: 0; } }
.fwd-sent-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.fwd-sent-meta > div { display: flex; gap: 6px; align-items: baseline; }
.fwd-sent-meta span { color: #6b7c88; font-size: .9rem; }
/* v179 – "הזמנות שהועברו": the whole table fits the screen (no side scrolling) */
.wrap.wide.fwd-wrap { max-width: 1700px; }
.fwd-tbl { font-size: 13.5px; }
.fwd-tbl th { padding: 9px 7px; white-space: normal; }
.fwd-tbl td { padding: 8px 7px; }
.fwd-tbl td:nth-child(2), .fwd-tbl td:nth-child(3) { min-width: 90px; }
.fwd-tbl .fwd-work { max-width: none; min-width: 200px; font-size: 13px; }
.fwd-tbl .fwd-to { font-size: 12.5px; word-break: break-all; min-width: 130px; }
.fwd-tbl .ct-del { white-space: nowrap; padding: 4px 8px; }
.fwd-tbl .fwd-view { font-size: 12px; padding: 3px 8px; }
/* v182 "🛑 עצירה" – an order with a problem (managers only) */
.halt-btn { border: 0; background: none; cursor: pointer; padding: 0 3px; font-size: 15px; line-height: 1; vertical-align: middle;
  filter: grayscale(1); opacity: .22; transition: opacity .15s; }
tr:hover .halt-btn, .halt-btn:focus-visible { opacity: .55; }
.halt-btn:hover { opacity: .9; }
.halt-btn.on { filter: none; opacity: 1; animation: halt-pulse 1.6s ease-in-out 2; }
.halt-btn.big { font-size: 20px; margin-inline-start: 10px; display: inline-flex; align-items: center; gap: 6px; opacity: .45; }
.halt-btn.big.on { opacity: 1; background: #fdecec; border: 1px solid #f3b4b4; border-radius: 999px; padding: 3px 10px 3px 6px; }
.halt-note { font-size: 14px; font-weight: 700; color: #b42318; }
tr:has(.halt-btn.on) td { background: #fff5f5; }
@keyframes halt-pulse { 50% { transform: scale(1.25); } }
@media print { .halt-btn:not(.on) { display: none; } }
/* v183 – the doctor sees "🛑 תקלה במידות" */
.dr-halt { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 6px; color: #b42318; font-weight: 700; white-space: nowrap;
  font-size: 14px; vertical-align: middle; background: #fdecec; border: 1px solid #f3b4b4; border-radius: 999px; padding: 1px 8px 1px 5px; }
.dr-halt small { font-size: 12px; }
.ord-big .dr-halt { font-size: 16px; }
.ord-big .dr-halt small { font-size: 13px; }
/* v185 – "מהלך ההזמנה": תקלה במידות / נפתרה */
.oh-halt .oh-dot { background: #d92d20; }
.oh-halt b { color: #b42318; }
.oh-fixed .oh-dot { background: #12b76a; }
.oh-fixed b { color: #067647; }
/* v187 – a new scan attached to an open order */
.new-file { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; background: #fff4e5; color: #b54708;
  border: 1px solid #fec84b; font-size: 12px; font-weight: 700; vertical-align: middle; }
.inc-attach { border: 2px solid #f79009; background: #fffaf0; }
.inc-attach h3 { margin-top: 0; color: #b54708; }
.att-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 14px; }
.att-ord { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.oh-scan .oh-dot { background: #f79009; }
.oh-scan b { color: #b54708; }
/* v188 – "שיוך להזמנה פתוחה" by order number */
.inc-attach-manual h3 { margin-top: 0; }
.inc-attach-manual .row-btns { align-items: flex-end; }
.inc-attach-manual .att-num { width: 160px; }
/* v191 – "🛑 הזמנות להמשך טיפול" */
.fu-btn { border-color: #f3b4b4; color: #b42318; }
.fu-card { margin-bottom: 12px; border-inline-start: 4px solid #d92d20; }
.fu-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.fu-since { color: #b42318; font-weight: 700; }
.fu-since small { font-weight: 400; }
.fu-acts { margin-inline-start: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.fu-more { margin-top: 10px; }
.fu-more summary { cursor: pointer; font-weight: 700; color: #0b3954; }
.fu-form { display: flex; gap: 8px; align-items: flex-end; margin: 10px 0; }
.fu-form textarea { flex: 1; min-height: 70px; padding: 8px 10px; border: 1px solid #d0d5dd; border-radius: 8px; font: inherit; }
.fu-list { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid #e4e7ec; }
.fu-n { padding: 6px 12px; }
.fu-when { font-size: 13px; color: #667085; }
.fu-body { white-space: pre-wrap; margin-top: 2px; }
.fu-print .fu-when { color: #b54708; }
.oh-body { white-space: pre-wrap; font-size: 14px; margin: 2px 0; }
.oh-fnote .oh-dot { background: #7a5af8; } .oh-fprint .oh-dot { background: #d92d20; }
.oh-fdispatch .oh-dot { background: #d92d20; } .oh-link { font-size: 13px; font-weight: 600; margin-inline-start: 6px; white-space: nowrap; } /* v270 */
.fu-dispatch .fu-when { color: #b42318; }
/* the follow-up document (printed like the order slip) */
.fu-print-box { margin: 10px 0 14px; border: 3px solid #d92d20; border-radius: 10px; padding: 10px 14px; }
.fu-print-title { margin: 0 0 6px; color: #d92d20; font-size: 20px; }
.fu-print-text { min-height: 90px; color: #d92d20; font-size: 26px; font-weight: 800; line-height: 1.35; white-space: pre-wrap; outline: none; }
.fu-print-text:empty::before { content: attr(data-placeholder); color: #f4a3a0; font-weight: 400; font-size: 18px; }
.fu-print-actions { text-align: center; margin: 18px 0 30px; }
@media print { .fu-print-text:empty { display: none; } .fu-print-box { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* v192 – the free text of the follow-up document: always red and bold, on screen and on paper */
.fu-print-text, .fu-print-text * { color: #d92d20 !important; font-weight: 800 !important;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media print { .fu-print-title, .fu-print-text, .fu-print-text * { color: #d92d20 !important; } .fu-print-text, .fu-print-text * { font-weight: 800 !important; } }
/* v193 – printings of the follow-up document */
.fu-hist { margin-top: 10px; }
.fu-hist h3 { margin-top: 0; }
.fu-hist .fu-list li { padding: 8px 12px; border-bottom: 1px solid #f2f4f7; }
.fu-red { color: #d92d20; font-weight: 700; }
.fu-fixed { color: #067647; }
.fu-card.fu-arch { border-inline-start-color: #12b76a; }

/* v203 – "🔒 הערות פנימיות" (managers only) */
.inote-btn { margin-inline-start: 4px; border: 1px solid #d0d7de; background: #fff; border-radius: 8px; padding: 1px 5px; cursor: pointer; font-size: 13px; line-height: 1.4; opacity: .55; }
.inote-btn:hover { opacity: 1; border-color: #6a5acd; }
.inote-btn.has { opacity: 1; background: #f1efff; border-color: #a99cf0; }
.inote-btn b { margin-inline-start: 2px; color: #4b3cc4; font-size: 12px; }
.inotes-sec { margin-top: 18px; border-inline-start: 5px solid #6a5acd; background: #fbfaff; }
.inotes-sec h3 { margin: 0 0 6px; color: #3d2fa8; }
.inote-list { display: grid; gap: 8px; margin-top: 10px; }
.inote { background: #fff; border: 1px solid #e2defa; border-radius: 10px; padding: 8px 12px; }
.inote-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 4px; }
.inote-body { white-space: normal; word-break: break-word; }
.inote-back { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.inote-dlg { background: #fff; border-radius: 14px; width: min(560px, 100%); max-height: 88vh; overflow: auto; padding: 16px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.inote-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.inote-top h3 { margin: 0; color: #3d2fa8; font-size: 18px; }
.inote-x { border: 0; background: transparent; font-size: 20px; cursor: pointer; color: #667085; }
.inote-dlg textarea { width: 100%; box-sizing: border-box; border: 1px solid #cfd5dc; border-radius: 8px; padding: 8px 10px; font: inherit; resize: vertical; }
.inote-acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0 4px; }
.oh-inote .oh-dot { background: #6a5acd; }
.oh-inote b { color: #3d2fa8; }
.vh-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* v205 – "📧 אימייל סורק" + "הקפאה" in "עריכת משתמש" */
.scan-ins { display: grid; gap: 8px; margin-bottom: 8px; }
.scan-in { width: 100%; box-sizing: border-box; border: 1px solid #cfd5dc; border-radius: 8px; padding: 9px 12px; font: inherit; }
.scan-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.scan-chip { border: 1px solid #b8c4ce; background: #fff; border-radius: 999px; padding: 5px 12px; cursor: pointer; font: inherit; font-size: 14px; }
.scan-chip:hover, .scan-chip.on { background: #e6f4f3; border-color: #22a39f; }
.scan-small { color: #5b6b78; font-size: 12px; }
.scan-hint { margin: -4px 0 10px; }
.frz-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-inline-start: 5px solid #5aa9e6; background: #f4f9fe; }
.frz-card p { margin: 0; flex: 1 1 320px; }
.frz-card.is-frozen { border-inline-start-color: #c0362c; background: #fff5f4; }

/* v206 – "ניהול משתמשים": the whole table on the screen, no sideways scrolling */
.users-wrap { overflow-x: visible; }
.users-tbl { width: 100%; table-layout: auto; font-size: 14px; }
.users-tbl th, .users-tbl td { padding: 8px 7px; white-space: normal; vertical-align: middle; }
.users-tbl .u-mail { word-break: break-all; min-width: 130px; }
.users-tbl td.actions { white-space: normal; width: 1%; }
.users-tbl .u-acts { display: grid; grid-template-columns: repeat(2, max-content); gap: 5px; }
.users-tbl .u-acts .btn { margin: 0; padding: 4px 9px; font-size: 13px; text-align: center; }
@media (max-width: 900px) {
  .users-wrap { overflow-x: visible; }
  .users-tbl thead { display: none; }
  .users-tbl, .users-tbl tbody, .users-tbl tr, .users-tbl td { display: block; width: 100%; box-sizing: border-box; }
  .users-tbl tr { border: 1px solid #e3e6ea; border-radius: 12px; margin-bottom: 10px; padding: 6px 4px; background: #fff; }
  .users-tbl td { padding: 3px 10px; border: 0; }
  .users-tbl td.actions { width: 100%; }
  .users-tbl .u-acts { display: flex; flex-wrap: wrap; }
}

/* v212 – "פורטל ספקים" (admin side) */
.portal-card { display: grid; gap: 10px; border-inline-start: 5px solid #188b92; background: #f5fbfb; }
.portal-url { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.portal-url input { flex: 1 1 260px; border: 1px solid #cfd5dc; border-radius: 8px; padding: 7px 10px; font: inherit; background: #fff; }
.btn-portal-on { background: #e7f6ee; border: 1px solid #7cc9a0; color: #1e7d4f; }
.btn-portal-off { background: #fdecea; border: 1px solid #f3b4ae; color: #c62828; }
.supfiles-sec { margin-top: 18px; border-inline-start: 5px solid #188b92; }
.supfiles-sec h3 { margin: 0 0 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sf-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.sf-list li { border: 1px solid #e3e8ee; border-radius: 10px; padding: 8px 10px; background: #fff; }
.sf-note { margin-top: 4px; font-size: 14px; color: #3b4b57; }
.sf-new { color: #b26a00; }
.sf-st { font-weight: 800; font-size: 14px; white-space: nowrap; }
.sf-st.ok { color: #1e7d4f; } .sf-st.bad { color: #c62828; }
.exo-tab.has { color: #c62828 !important; font-weight: 800; }
.exo-files { display: flex; gap: 5px; flex-wrap: wrap; }
.exo-files .btn { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
/* v213 – "🧩 שליחת Exocad" */
.exo-sec { margin-top: 18px; border-inline-start: 5px solid #e8a33d; background: #fffaf1; }
.exo-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.exo-head h3 { margin: 0 0 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.exo-head p { margin: 0; }
.exo-log { margin: 10px 0 0; padding-inline-start: 18px; font-size: 14px; color: #3b4b57; }
.exo-intro { background: #fffaf1; border: 1px solid #f2d49b; border-radius: 12px; padding: 10px 14px; max-width: 900px; margin: 0 auto 10px; }
.exo-acts { display: flex; gap: 5px; flex-wrap: wrap; white-space: nowrap; }
.exo-acts form { margin: 0; }
/* v216 – full editing of the teeth in "תרגום לאנגלית" / "שליחת Exocad" */
.en-teeth .en-tn { width: 92px; font-weight: 700; text-align: center; }
.en-teeth input[name=tooth_type] { width: 100%; min-width: 220px; }
.en-rm { border: 0; background: transparent; color: #c62828; font-size: 18px; cursor: pointer; padding: 4px 8px; }
.en-teeth-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 10px 0 4px; }
.en-all { display: flex; gap: 6px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.en-all input { border: 1px solid #cfd5dc; border-radius: 8px; padding: 5px 8px; min-width: 220px; }
.en-arch .ar-t { cursor: pointer; }
.en-row.en-flash td { background: #fff4d6; transition: background .3s; }
/* v217 – "טיפול לכל שן / ללסת" per work type in "עריכת דף הזמנה" */
.ofe-unit { border: 1px solid #cfd5dc; border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 13.5px; background: #fff; max-width: 210px; }
.inv-st { background: #fffaf1; border: 1px solid #f2d49b; border-radius: 8px; padding: 6px 10px; }
/* v221 – up to 4 emails per supplier */
.sup-mails { display: grid; gap: 8px; }
.sup-mail { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sup-mail input[type=email] { flex: 1 1 240px; border: 1px solid #cfd5dc; border-radius: 8px; padding: 8px 10px; font: inherit; }
.sup-mails-cell div { white-space: nowrap; font-size: 14px; }
.sup-mails-cell .on { color: #1e7d4f; } .sup-mails-cell .off { color: #8a99a6; }
/* v222 – "📤 המשך טיפול לספק" */
.rs-box { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid #e3e8ee; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; background: #f8fafb; }
.rs-box.hot { border-color: #e8a33d; background: #fff8ec; }
.rs-tg { display: block; padding: 6px 0; }
.oh-resend .oh-dot { background: #e8a33d; }
.rs-free { border: 2px solid #188b92 !important; border-radius: 12px; background: #f5fbfb; }
.rs-free textarea { min-height: 120px; }
/* v225 – an open order not sent yet to a supplier / Exocad */
.tbl tr.row-unsent > td { background: #f9d4d0; }
.tbl tr.row-unsent > td:first-child { box-shadow: inset -4px 0 0 #d32f2f; }
.tbl tr.row-unsent:hover > td { background: #f5c2bd; }
.unsent-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #8a2a24; }
.unsent-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: #f9d4d0; border: 1px solid #f1aaa5; }

/* v234 – "ממתין Exocad": a file from the supplier that no manager downloaded yet */
.exo-tbl tr.exo-row-new td { background: #fff1f1; }
.exo-newbadge { color: #c62828; font-weight: 800; font-size: 13px; white-space: nowrap; }
.exo-files .btn.exo-new { position: relative; overflow: visible; }
.exo-files .btn.exo-new::after { content: ''; position: absolute; top: -5px; left: -5px; width: 12px; height: 12px; border-radius: 50%;
  background: #e53935; border: 2px solid #fff; box-shadow: 0 0 0 1px #e53935; }
.exo-dot { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px; margin-inline-start: 6px; border-radius: 10px;
  background: #e53935; color: #fff; font-size: 12px; font-weight: 800; text-align: center; vertical-align: middle; }

/* v236 – "ממתין Exocad": each supplier file with its own 🗑, and "📦 הורדת הכל" */
.exo-file { display: inline-flex; align-items: center; gap: 2px; }
.exo-file form { margin: 0; }
.exo-file .exo-del { padding: 2px 6px; }
.exo-zip { font-weight: 600; }
/* v238: "ווטסאפ" – green tile in "פאנל מנהל" + the page (WhatsApp Web, daily report text to a supplier) */
.pn-wa .pn-ico { background: linear-gradient(145deg, #2fd366, #128c4a); box-shadow: 0 6px 14px rgba(18,140,74,.3); }
.pn-wa:hover, .pn-wa:focus-visible { border-color: #25d366; }
.btn-wa { background: #1faa59; color: #fff; border: 1px solid #1faa59; display: inline-flex; align-items: center; gap: 8px; }
.btn-wa:hover, .btn-wa:focus-visible { background: #128c4a; border-color: #128c4a; color: #fff; }
.btn-wa svg { width: 22px; height: 22px; flex: none; }
.wa-title-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #1faa59; color: #fff; vertical-align: middle; }
.wa-title-ico svg { width: 26px; height: 26px; }
.wa-connect { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-color: #bfe8cf; background: #f2fbf5; }
.wa-connect small { display: block; margin-top: 4px; }
.wa-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.wa-form .fld { margin: 0; }
.wa-res-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.wa-text { width: 100%; box-sizing: border-box; font-family: ui-monospace, Consolas, monospace; font-size: 14px; line-height: 1.5; padding: 12px; border: 1px solid #cfdbe3; border-radius: 10px; background: #fbfdfe; white-space: pre-wrap; }
.wa-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 640px) { .wa-form { grid-template-columns: 1fr; } }
.wa-form input[type=date] { width: 100%; box-sizing: border-box; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.wa-form select { width: 100%; }

/* v239 – "🔗 הזמנות מקושרות" */
.olink-ask { margin: 0 0 16px; border-inline-start: 5px solid #e0a800; background: #fff8e1; }
.olink-ask h3 { margin-top: 0; color: #8a6400; }
.olink-q { font-size: 17px; margin: 6px 0; }
.olink-picks { list-style: none; padding: 0; margin: 6px 0 10px; }
.olink-picks li { margin: 4px 0; }
.olink-box { margin: 0 0 16px; border-inline-start: 5px solid #188b92; background: #f3fbfb; }
.olink-box h3 { margin-top: 0; }
.olink-list { list-style: none; padding: 0; margin: 0; }
.olink-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.olink-un { display: inline; margin: 0; }
.olink-badge { margin-inline-start: 4px; border: 1px solid #9fd6d9; background: #eef9f9; border-radius: 8px; padding: 1px 5px; font-size: 13px; line-height: 1.4; text-decoration: none; }
.olink-badge b { margin-inline-start: 2px; color: #127077; font-size: 12px; }
.olink-badge.ask { background: #fff3c4; border-color: #e0a800; }

/* v240 – home page: "איך זה עובד – מהסריקה עד המרפאה" (Apple-style step tiles) */
.home-steps { padding: 72px 0 64px; background: #f2f5f7; border-bottom: 1px solid var(--line); }
.hs-head { margin-bottom: 34px; }
.hs-eyebrow { color: var(--gold-d); font-weight: 700; font-size: 18px; margin: 0 0 6px; }
.hs-head h2 { margin: 0; color: #1d1d1f; font-size: clamp(42px, 6.4vw, 76px); line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.hs-grad { background: linear-gradient(90deg, var(--gold) 0%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs-sub { margin: 16px 0 0; font-size: 20px; color: #6e6e73; }
.hs-bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hs-tile { position: relative; overflow: hidden; background: #fff; border-radius: 28px; padding: 28px 30px 26px; min-height: 176px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(15,40,60,.07); transition: transform .25s ease, box-shadow .25s ease; }
.hs-tile:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 40px rgba(15,40,60,.11); }
.hs-wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; min-height: 160px; }
.hs-n { position: absolute; left: 22px; top: 4px; font-size: 120px; font-weight: 900; line-height: 1; color: rgba(1,56,86,.065); letter-spacing: -4px; pointer-events: none; }
.hs-ic { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; flex: none; margin-bottom: 18px;
  background: linear-gradient(145deg, #1bb3a9, var(--navy)); box-shadow: 0 8px 18px rgba(15,138,143,.28); }
.hs-wide .hs-ic { width: 84px; height: 84px; border-radius: 24px; margin: 0; }
.hs-last .hs-ic { background: linear-gradient(145deg, #e8c26a, #c9962e); box-shadow: 0 8px 18px rgba(201,150,46,.3); }
.hs-ic svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hs-wide .hs-ic svg { width: 44px; height: 44px; }
.hs-txt { position: relative; }
.hs-step { display: block; font-size: 15px; font-weight: 600; color: var(--teal); margin-bottom: 2px; }
.hs-last .hs-step { color: var(--gold-d); }
.hs-tile h3 { margin: 0; color: #1d1d1f; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.hs-wide h3 { font-size: 35px; }
.hs-tile p { margin: 6px 0 0; font-size: 18px; color: #6e6e73; line-height: 1.45; }
.hs-perks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 12px; }
.hs-perks li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 18px; background: #fff; font-size: 17px; font-weight: 600; color: #1d1d1f;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(15,40,60,.06); }
.hs-perks i { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(145deg, #e8c26a, #c9962e); }
.hs-perks svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hs-join { margin-top: 18px; border-radius: 28px; padding: 26px 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--navy) 0%, #0d5b6a 60%, #0f8a8f 100%); color: #fff; }
.hs-join h3 { margin: 0; color: #fff; font-size: 27px; font-weight: 800; }
.hs-join p { margin: 4px 0 0; opacity: .8; font-size: 17px; }
.hs-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hs-tel { color: #e8c26a; font-size: 34px; font-weight: 800; text-decoration: none; direction: ltr; letter-spacing: .02em; }
@media (max-width: 700px) {
  .home-steps { padding: 44px 0 40px; }
  .hs-head h2 { font-size: 48px; }
  .hs-sub { font-size: 17px; }
  .hs-bento { grid-template-columns: 1fr; gap: 12px; }
  .hs-tile, .hs-wide { display: block; min-height: 0; padding: 22px 22px 20px; border-radius: 24px; }
  .hs-wide .hs-ic { width: 58px; height: 58px; border-radius: 17px; margin-bottom: 16px; }
  .hs-wide .hs-ic svg { width: 30px; height: 30px; }
  .hs-n { font-size: 92px; }
  .hs-tile h3, .hs-wide h3 { font-size: 25px; }
  .hs-tile p { font-size: 16.5px; }
  .hs-perks { flex-direction: column; gap: 10px; }
  .hs-join { padding: 24px; }
  .hs-tel { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .hs-tile { transition: none; } .hs-tile:hover { transform: none; } }

/* v243 "משיכת קבצים מהארכיון" */
.ap-search { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.ap-search .fld { margin: 0; flex: 1 1 240px; }
.ap-order h2 { margin: 0 0 8px; }
.ap-order p { margin: 6px 0; }
.ap-actions { margin: 14px 0 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.ap-wait { border: 2px solid var(--gold, #c9a227); text-align: center; }

/* v244 – "♻ עבודות חוזרות" */
.st-redo { background: #fde8e8; color: #b42318; font-weight: 700; border-color: #f3b4b0; }
select.st-redo { border: 1px solid #e5847d; }
.opt-redo { color: #b42318; font-weight: 700; }
.ord-tabs a.redo-tab { color: #b42318; }
.ord-tabs a.redo-tab.has { font-weight: 700; }
.ord-tabs a.redo-tab.active { border-color: #d92d20; color: #b42318; }
tr.row-redo > td { background: #fff5f5; }
.redo-why { margin-top: 4px; font-size: 12px; color: #b42318; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.redo-badge { display: inline-block; margin-top: 4px; font-size: 11px; padding: 1px 6px; border-radius: 8px; border: 1px solid #f3b4b0; color: #b42318; background: #fff; text-decoration: none; white-space: nowrap; }
.redo-hint { color: #8a1c13; }
.redo-sec { margin-top: 18px; border-inline-start: 5px solid #d92d20; background: #fffafa; }
.redo-sec:not(.on) { border-inline-start-color: #f3b4b0; }
.redo-sec h3 { margin: 0 0 8px; color: #b42318; }
.redo-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 10px; }
.redo-dl dt { font-weight: 700; color: #8a1c13; }
.redo-dl dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.redo-steps { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.redo-sec .row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.redo-sec .inline-form { display: inline; margin: 0; }
.redo-dlg .fld { display: grid; gap: 4px; margin: 8px 0; }
.redo-dlg textarea { width: 100%; box-sizing: border-box; }
.redo-dlg .inote-acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.redo-dlg .inote-msg { margin-inline-end: auto; color: #b42318; }
.ord-tabs a.redo-tab.active { background: #b42318; border-color: #b42318; color: #fff; }
select.redo-sel { min-width: 190px; }
/* v246 – "♻ עבודה חוזרת" in "הזמנה נכנסת" */
.inote-back[hidden] { display: none; }
.inc-redo { border-inline-start: 5px solid #d92d20; background: #fffafa; margin-top: 16px; }
.inc-redo .redo-check { font-size: 17px; color: #b42318; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.inc-redo .redo-check input { width: 20px; height: 20px; }
.redo-sugg-hint { color: #b42318; font-weight: 600; margin: 6px 0 0; }
.redo-dlg .att-list { display: grid; gap: 6px; margin-bottom: 6px; }
.redo-dlg input[name=order] { max-width: 180px; }
.redo-dlg h3 { color: #b42318; }

/* v249 – "💳 תשלום" of a redo (עבודות חוזרות) + "עלות עבודה חוזרת" lines in the doctor's account */
.redo-pay-btn { background: #fff7e6; border: 1px solid #f0c36d; color: #8a5a00; font-weight: 700; }
.redo-pay-btn.set-lab { background: #eef6ff; border-color: #9cc3ef; color: #1b4f8a; }
.redo-pay-btn.set-doctor { background: #fde8e8; border-color: #f3b4b0; color: #b42318; }
.pay-choices { display: grid; gap: 10px; margin: 10px 0; }
.pay-choice { display: grid; gap: 4px; text-align: start; padding: 12px 14px; border: 2px solid #d0d5dd; border-radius: 12px; background: #fff; cursor: pointer; font: inherit; }
.pay-choice b { font-size: 16px; color: #101828; }
.pay-choice small { color: #475467; line-height: 1.45; }
.pay-choice:hover:not([disabled]), .pay-choice:focus-visible { border-color: #3d2fa8; background: #f6f4ff; }
.pay-choice.on { border-color: #3d2fa8; box-shadow: inset 0 0 0 1px #3d2fa8; }
.pay-choice[disabled] { opacity: .5; cursor: not-allowed; }
.pay-doc b { color: #b42318; }
.pay-line { background: #fde8e8; color: #b42318; border-radius: 8px; padding: 8px 10px; font-weight: 700; margin: 6px 0; }
.pay-warn { color: #b42318; font-weight: 700; }
.pay-dlg input[type=number] { width: 100%; box-sizing: border-box; border: 1px solid #cfd5dc; border-radius: 8px; padding: 8px 10px; font: inherit; }
.redo-charge-row td { background: #fff6f5; }
.redo-charge-t { color: #b42318; }

/* ===== v252 – iPad (iPad Pro 13": 1032 × 1376 portrait, 1376 × 1032 landscape) =====
   EVERY rule here works ONLY on a touch screen without a mouse, 1000–1400px wide (= iPad 13" upright or sideways).
   A computer, a laptop, a phone or a smaller tablet see the site exactly as before. */
/* the hidden anti-spam field on the home page made the page wider than the screen (sideways scrolling) */
@media (hover: none) and (pointer: coarse) and (min-width: 1000px) and (max-width: 1400px) {
  input.hp { width: 1px; height: 1px; padding: 0; border: 0; top: 0; inset-inline-start: 0; }
}
/* "עריכת דף הזמנה" was wider than the iPad upright (1032px) – categories on top */
@media (hover: none) and (pointer: coarse) and (min-width: 1000px) and (max-width: 1400px) and (max-width: 1100px) {
  .ofe { grid-template-columns: minmax(0, 1fr); }
  .ofe-cats { position: static; }
  .ofe-mat { flex-wrap: wrap; }
}
@media (hover: none) and (pointer: coarse) and (min-width: 1000px) and (max-width: 1400px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  /* no 300ms double-tap delay, a soft tap colour */
  a, button, .btn, input, select, textarea, label, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(24, 139, 146, .18); }
  /* Safari on iPad zooms the whole page into a field whose text is smaller than 16px – keep fields at 16px */
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not(.hp), select, textarea { font-size: 16px !important; }
  /* date / time fields look like the other fields and are easy to tap */
  input[type=date], input[type=time], input[type=datetime-local], input[type=month] {
    min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-family: inherit; }
  /* bigger checkboxes and radio buttons */
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; accent-color: var(--teal); flex: none; }
  .seg input { width: auto; height: auto; }
  /* buttons: at least 44px (Apple's touch size), small buttons 38px */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 38px; padding: 8px 14px; }
  .ord-tbl .btn-sm { min-height: 36px; padding: 6px 10px; }
  summary { min-height: 40px; padding-block: 6px; }
  .mv { min-width: 34px; min-height: 34px; font-size: 13px; }
  .sup-move .mv { width: 36px; height: 36px; }
  .ofe-mv .mv { width: 34px; height: 28px; font-size: 12px; }
  .ofe-x { width: 40px; height: 40px; }
  .ofe-color { width: 34px; height: 34px; }
  .menu-toggle { padding: 14px 12px; }
  /* buttons that only showed on mouse hover are always visible on a touch screen */
  .halt-btn { opacity: .5; min-width: 34px; min-height: 34px; padding: 0 6px; font-size: 17px; }
  .inote-btn { opacity: .85; min-width: 34px; min-height: 32px; font-size: 15px; }
  .ord-no { display: inline-block; padding: 4px 2px; }
  .ord-tbl .ord-no { padding: 6px 6px; }
  .ord-tbl select, .ord-tbl .status-sel { max-width: none; min-height: 38px; padding: 4px 22px 4px 6px; }
  /* windows (internal notes, redo, payment…) fit the visible screen, also when the keyboard is open */
  .inote-back, .relay-modal { overscroll-behavior: contain; }
  .inote-dlg { max-height: calc(100dvh - 32px); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .inote-x { min-width: 44px; min-height: 44px; }
  /* order form: a bigger teeth chart (bigger teeth to tap) and bigger chips */
  .arch { max-width: 600px; }
  .of-chip { padding: 9px 16px; font-size: 15px; }
  .of-row-del { width: 44px; height: 44px; }
  /* tables that are wider than the screen scroll smoothly with a finger */
  .tbl-wrap, .ord-wrap-t, .mouth-wrap { -webkit-overflow-scrolling: touch; }
}
/* a finger has no "hover": a tooth that was tapped off does not stay coloured */
@media (hover: none) and (pointer: coarse) and (min-width: 1000px) and (max-width: 1400px) {
  .arch:not(.arch-ro) .ar-t:not(.sel):hover .ar-shape { fill: #fbfcfd; stroke: #a7b4bd; }
  .arch:not(.arch-ro) .ar-t.sel:hover .ar-shape { filter: none; }
}
/* iPad portrait: the orders table fits the screen – date / time and the order-number buttons go on two lines */
@media (hover: none) and (pointer: coarse) and (min-width: 1000px) and (max-width: 1400px) and (max-width: 1100px) {
  .ord-tbl td.nowrap:not(:last-child) { white-space: normal; }
}
/* the staff menu on an iPad: ☰ (also in landscape), opening as large buttons in 3 columns */
@media (hover: none) and (pointer: coarse) and (min-width: 1000px) and (max-width: 1400px) {
  .staff .menu-toggle { display: block; }
  .staff .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 16px 18px; max-height: calc(100dvh - 72px); overflow-y: auto; }
  .staff.menu-open .nav { display: grid; }
  .staff .nav > a:not(.btn) { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px 8px; font-size: 17px;
    border: 1px solid var(--line); border-radius: 12px; text-align: center; position: relative; }
  .staff .nav > a.active { border-color: var(--navy); }
  .staff .nav a.nav-wa span, .staff .nav a.nav-fin span:not(.nav-dot), .staff .nav a.nav-panel span:not(.nav-dot) { display: inline; }
  .staff .nav a svg { width: 22px; height: 22px; }
  .staff .nav .who { grid-column: 1 / -1; padding: 6px 12px; text-align: center; }
  .staff .nav form, .staff .nav form .btn { grid-column: 1 / -1; width: 100%; margin: 4px 0 0; min-height: 50px; font-size: 17px; }
}

/* v253 – the doctor's "ארכיון הזמנות": red dot "עבודה חוזרת" next to an order that came back and was delivered again */
.dr-redo-dot { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 6px; color: #b42318; font-size: 12px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.dr-redo-dot i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #d92d20; flex: none; }
/* v253 – a printed order in "♻ עבודות חוזרות": a big red "עבודה חוזרת" across the top of the page */
.redo-print-mark { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 0 0 12px; padding: 8px 16px;
  background: #d92d20; color: #fff; border: 4px solid #a50f0f; border-radius: 10px; text-align: center; line-height: 1.1;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.redo-print-mark .rpm-big { font-size: 40px; font-weight: 800; letter-spacing: .5px; }
.redo-print-mark.print-only { display: none; }
@media print {
  .redo-print-mark, .redo-print-mark.print-only { display: flex !important; break-inside: avoid; }
  .redo-print-mark .rpm-big { font-size: 34pt; }
}

/* v255 – the optional red note in the middle of a printed redo order (js/redo-print.js) */
.redo-print-note { margin: 12px 0; border: 3px solid #d92d20; border-radius: 10px; padding: 10px 14px; text-align: center;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.redo-print-note[hidden] { display: none !important; }
.redo-print-note .rpn-text { color: #d92d20 !important; font-size: 26px; font-weight: 800; line-height: 1.35; white-space: pre-wrap; }
.rpn-dlg textarea { color: #b42318; font-weight: 700; }
@media print { .redo-print-note .rpn-text { font-size: 20pt; color: #d92d20 !important; } }
/* v259: "⛔ מחיקה לצמיתות" of a doctor */
.btn-danger-solid { background: #b42318; color: #fff; border-color: #b42318; }
.btn-danger-solid:hover { background: #912018; }
.btn-danger-solid:disabled, .btn-danger-solid[disabled] { background: #e9b9b4; border-color: #e9b9b4; color: #fff; cursor: not-allowed; }
.purge-card { margin-top: 16px; border: 2px solid #b42318; border-inline-start-width: 6px; background: #fff5f4; }
.purge-card p { margin: 0 0 10px; }
.purge-title { color: #b42318; }
.purge-list { margin: 0 0 12px; padding-inline-start: 22px; line-height: 1.8; }
.purge-warn { background: #fff1c2; border-radius: 8px; padding: 8px 12px; }
.purge-form { margin-top: 16px; }
.purge-step { margin: 14px 0 4px; color: #b42318; }
.purge-form input.purge-good { border-color: #2e9e5b; box-shadow: 0 0 0 2px #d6f2e1; }

/* v260 – "תשלום על חשבון": an order that was paid in part */
.st-partial { background: #fff4d6; color: #8a5a00; }
.part-pay { display: block; margin-top: 3px; font-size: 12px; color: #6b5200; white-space: nowrap; }
.part-pay b { color: #8a3b00; }
.totals-tbl tr.paid-acc td { color: #145c33; font-weight: 700; background: #f1faf4; }

/* v261: חתימת מנהל – בחירה לפני הנפקה (שמורה / חתימה אישית) וחלון חתימה קטן בתחתית הדף (js/sign-pad.js) */
.doc-stamp[hidden], .doc-stamp img[hidden] { display: none; }
.sig-back { position: fixed; inset: 0; background: rgba(15, 25, 35, .35); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.sig-sheet { background: #fff; color: #1b2330; width: 100%; max-width: 620px; border-radius: 16px 16px 0 0; padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.25); max-height: 92vh; overflow: auto; direction: rtl; text-align: right; }
.sig-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sig-head h3 { margin: 0; font-size: 17px; }
.sig-x { background: none; border: 0; font-size: 20px; cursor: pointer; padding: 6px 10px; color: #5b6575; }
.sig-hint { margin: 0 0 10px; color: #5b6575; font-size: 14px; }
.sig-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sig-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px; border: 1.5px solid #dfe5eb; border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: inherit; min-height: 130px; }
.sig-opt:hover:not(:disabled), .sig-opt:focus-visible { border-color: #0f6e8c; background: #f2f8fa; }
.sig-opt:disabled { opacity: .55; cursor: default; }
.sig-opt small { color: #6b7c88; font-size: 12.5px; }
.sig-opt img { width: 150px; max-width: 100%; height: auto; }
.sig-none { margin-top: 10px; }
.sig-pad-wrap { position: relative; border: 2px dashed #9fb3c3; border-radius: 12px; background: #fff; height: 220px; overflow: hidden; }
.sig-pad-stamp { position: absolute; inset: 0; margin: auto; width: 62%; max-width: 330px; opacity: .35; pointer-events: none; }
.sig-pad { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sig-pad-hint { position: absolute; bottom: 8px; right: 12px; color: #8a9bb0; font-size: 13px; pointer-events: none; }
.sig-err { color: #c0362c; margin: 8px 0 0; font-size: 14px; }
.sig-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sig-acts .sig-back-btn { margin-inline-start: auto; }
@media (max-width: 560px) { .sig-opts { grid-template-columns: 1fr; } .sig-opt { min-height: 0; } .sig-pad-wrap { height: 200px; } }
@media print { .sig-back { display: none !important; } }

/* v269 – "🏢 רשתות מרפאות" */
.chain-tag { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; background: #e6f3f4; color: #0f6b71;
  font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; vertical-align: middle; }
a.chain-tag:hover { background: #d3eaec; }
.badge.chain-mode { background: #eef2f6; color: #013856; }
.badge.chain-mode.chain { background: #e6f3f4; color: #0f6b71; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid #dfe7ec; border-radius: 10px; cursor: pointer; background: #fff; }
.radio-card:has(input:checked) { border-color: #188b92; background: #f2fafa; }
.radio-card input { margin-top: 4px; }
.radio-card span { display: flex; flex-direction: column; gap: 4px; }
.radio-card small { color: #5b6b77; line-height: 1.45; }
.chain-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e6edf1; }
.chain-add .check { display: flex; gap: 6px; align-items: center; font-size: 14px; padding-bottom: 10px; }
.chain-leave { display: inline-flex; gap: 6px; align-items: flex-end; }
.chain-leave .inline-fld { margin: 0; }
.chain-leave .inline-fld span { font-size: 12px; }
.chain-leave input[type=date] { padding: 4px 6px; }
.chain-branch { padding: 0; overflow: hidden; margin-bottom: 16px; }
.chain-branch .table-wrap { margin: 0; border-radius: 0; box-shadow: none; }
.chain-branch-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 16px;
  background: #f2f8f9; border-bottom: 1px solid #dfe9ec; }
.chain-branch-head h3 { margin: 0; font-size: 17px; color: #013856; }
.chain-branch-head h3 small { font-weight: 400; margin-inline-start: 6px; }
.chain-branch-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; }
.chain-branch-sum .part-pay { display: inline; margin: 0; }
.chain-sum-tbl tfoot td { background: #013856; color: #fff; }
tr.inactive td { opacity: .6; }
@media (max-width: 700px) { .radio-cards { grid-template-columns: 1fr; } .chain-branch-head { padding: 10px 12px; } }
.chain-note { font-weight: 400; font-size: 15px; line-height: 1.6; }
