/* Muskoka Order Portal - look and feel matched to muskokacabco.com */
:root {
  --ink: #1a1a1a;
  --charcoal: #282c2b;
  --slate: #363c3a;
  --sage: #919b92;
  --sage-soft: #e8ece8;
  --bronze: #967f5f;
  --bronze-dark: #7a6649;
  --bg: #f4f4f2;
  --card: #ffffff;
  --line: #dcdfdb;
  --muted: #6b706e;
  --danger: #b3261e;
  --danger-soft: #fbeceb;
  --ok: #3d7a4f;
  --ok-soft: #e7f2ea;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  font-size: 15px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { min-height: 100vh; line-height: 1.45; }
a { color: var(--bronze-dark); }
h1, h2, h3 { font-weight: 600; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }

/* ---- top bar ---- */
.topbar { background: var(--charcoal); color: #fff; position: sticky; top: 0; z-index: 30; }
.topbar .inner { max-width: 1400px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 22px; }
.topbar img.logo { height: 38px; display: block; }
.topbar .tag { font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; color: var(--sage); border-left: 1px solid #4a514f; padding-left: 16px; }
.topbar nav { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.topbar nav a, .topbar nav button { color: #e9e9e7; text-decoration: none; background: none; border: 0; font: inherit; padding: 8px 12px; border-radius: var(--radius); cursor: pointer; }
.topbar nav a:hover, .topbar nav button:hover, .topbar nav a.active { background: var(--slate); color: #fff; }
.topbar .who { color: var(--sage); font-size: .85rem; padding: 0 6px; }

@media (max-width: 760px) {
  .topbar .inner { flex-wrap: wrap; gap: 6px 10px; padding: 8px 16px; }
  .topbar .tag, .topbar .who { display: none; }
  .topbar nav { margin-left: 0; width: 100%; gap: 2px; }
  .topbar nav a, .topbar nav button { padding: 6px 8px; font-size: .88rem; }
  main { padding: 16px 16px 80px; }
  .steps { margin-left: 0; }
}
main { max-width: 1400px; margin: 0 auto; padding: 24px 20px 80px; }

/* ---- buttons / forms ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 500; padding: 9px 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--sage); }
.btn.primary { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.btn.primary:hover { background: var(--bronze-dark); border-color: var(--bronze-dark); }
.btn.dark { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.btn.small { padding: 5px 10px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

label.field { display: block; margin-bottom: 14px; }
label.field > span.lbl { display: block; font-weight: 500; margin-bottom: 4px; font-size: .9rem; }
label.field .req { color: var(--bronze); }
input[type=text], input[type=password], input[type=email], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sage); outline-offset: 0; border-color: var(--sage); }
textarea { min-height: 70px; resize: vertical; }
.help { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.err { font-size: .84rem; color: var(--danger); margin-top: 4px; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--danger); }
.fixed-val { padding: 9px 11px; background: var(--sage-soft); border-radius: var(--radius); font-weight: 500; }
.door-pic { margin: 14px 0 0; text-align: center; }
.door-pic img { max-width: 100%; max-height: 340px; object-fit: contain; border: 1px solid var(--line, #d9dbd8); border-radius: var(--radius); background: #fff; }
.door-pic-none { display: flex; align-items: center; justify-content: center; height: 140px; border: 1px dashed var(--line, #d9dbd8); border-radius: var(--radius); color: var(--muted); font-size: .85rem; }
.door-pic figcaption { margin-top: 6px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.order-tools { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 14px; }
.order-tools .tabs { display: flex; gap: 4px; background: var(--card); border-radius: 99px; padding: 3px; box-shadow: var(--shadow); }
.order-tools .tabs button { font: inherit; font-size: .9rem; border: 0; background: none; padding: 6px 16px; border-radius: 99px; cursor: pointer; color: inherit; }
.order-tools .tabs button.on { background: var(--charcoal, #282c2b); color: #fff; }
.order-tools .tabs button.on .muted { color: #c9cfca; }
.order-tools label { display: flex; align-items: center; gap: 6px; }
.order-tools select { width: auto; }
.order-tools input[type=search] { flex: 1 1 220px; max-width: 320px; margin-left: auto; }
.browse-row { margin: -4px 0 14px; }
.doorbrowser { z-index: 60; }
.dialog.wide { max-width: 1180px; }
.cards.doorgrid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.doorgrid .pcard .img { height: 250px; }
.doorgrid .pcard .img img { max-height: 230px; }
.doorgrid .pcard.chosen { border-color: var(--bronze); }
.doorgrid .pcard .code { font-size: .9rem; }
.cards.finishgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.finishgrid .pcard .img.swatch { height: 150px; padding: 0; overflow: hidden; }
.finishgrid .pcard .img.swatch img { width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.finishgrid .pcard.chosen { border-color: var(--bronze); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { font: inherit; font-size: .85rem; border: 1px solid var(--line); background: var(--card); color: inherit; border-radius: 99px; padding: 5px 14px; cursor: pointer; }
.chip-btn:hover { border-color: var(--bronze); }
.chip-btn.on { background: var(--charcoal, #282c2b); border-color: var(--charcoal, #282c2b); color: #fff; }
@media (max-width: 560px) { .cards.doorgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .doorgrid .pcard .img { height: 190px; } .doorgrid .pcard .img img { max-height: 170px; } }
.door-thumb { display: block; margin-top: 6px; max-height: 110px; max-width: 100%; border: 1px solid var(--line, #d9dbd8); border-radius: 4px; background: #fff; }
.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-group label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 7px 14px; cursor: pointer; }
.radio-group label.on { border-color: var(--bronze); background: #f6f1ea; font-weight: 500; }
.radio-group input { accent-color: var(--bronze); margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.notice { border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.notice.error { background: var(--danger-soft); color: var(--danger); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.info { background: var(--sage-soft); color: var(--slate); }
.notice.warn { background: var(--danger-soft); color: var(--danger); border-left: 4px solid var(--danger); }
.kick-flag { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 4px; background: var(--danger-soft); color: var(--danger); font-size: 12px; font-weight: 600; }
tr.kick-wrong td { background: var(--danger-soft); }
/* ---- import a dealer's cabinet list ---- */
.imp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 12px; }
.imp-head h2 { margin: 0; }
.imp-upload { max-width: 760px; }
.imp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 12px; }
.imp-counts { display: flex; gap: 6px; flex-wrap: wrap; }
.imp-chip { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.imp-chip.ok { background: var(--ok-soft); color: var(--ok); }
.imp-chip.check { background: #fff3cd; color: #8a6200; }
.imp-chip.none { background: var(--danger-soft); color: var(--danger); }
.imp-chip.skip { background: #ececec; color: #666; }
.imp-chip.added { background: var(--sage-soft); color: var(--slate); }
.imp-table td { vertical-align: top; }
.imp-table tr.imp-check td { background: #fffbea; }
.imp-table tr.imp-none td { background: #fdf1f0; }
.imp-table tr.imp-skip td, .imp-table tr.imp-added td { color: #8a8f8b; }
.imp-table td.arrow { color: var(--sage); font-size: 18px; }
.imp-table .imp-code { display: flex; gap: 8px; align-items: flex-start; }
.imp-others { margin-top: 4px; }
/* the Muskoka code in an import row: a big picture you click to choose another code */
.imp-pickbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 112px; flex: none; padding: 6px; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; color: inherit; }
.imp-pickbtn:hover:not(:disabled) { border-color: var(--bronze); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.imp-pickbtn:disabled { cursor: default; }
.imp-table .imp-pickbtn img, .imp-table .imp-pickbtn .imp-noimg { width: 96px; height: 96px; border: 0; display: flex; align-items: center; justify-content: center; color: var(--sage); font-size: .8rem; }
.imp-pickbtn.empty .imp-noimg { font-size: 2rem; }
.imp-pickcode { font-weight: 600; font-size: .85rem; word-break: break-all; text-align: center; }
.imp-change { font-size: .75rem; color: var(--bronze-dark); text-decoration: underline; }
/* the code picker dialog: sections on the left, cards on the right */
.picker-layout { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; }
.picker-layout.with-subs { grid-template-columns: 170px 210px 1fr; }
.picker-layout .sections, .picker-layout .side-subs-col { top: 0; }
.picker-layout .side-subs-col { max-height: none; box-shadow: none; border: 1px solid var(--line); }
@media (max-width: 860px) { .picker-layout.with-subs { grid-template-columns: 170px 1fr; } }
@media (max-width: 700px) { .picker-layout { grid-template-columns: 1fr; } .picker-layout .sections { position: static; flex-direction: row; flex-wrap: wrap; } }
.imp-others button { font: inherit; padding: 1px 7px; margin: 2px 2px 0 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; cursor: pointer; }
.imp-others button:hover { border-color: currentColor; }
.imp-table .imp-code img, .imp-table .imp-noimg { width: 44px; height: 44px; object-fit: contain; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 4px; display: inline-block; }
.imp-table input[data-imp="code"] { width: 150px; }
.imp-rem { display: block; margin-top: 4px; }
.intdr-head { margin: 6px 0 6px; }
.intdr-row { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.intdr-row input { width: 64px; flex: none; }
.intdr-row span { font-size: 14px; }

/* ---- login ---- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-side { background: var(--charcoal) center/cover; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-side::after { content: 'MUSKOKA'; position: absolute; right: -40px; bottom: 40px; font-size: 140px; font-weight: 700; letter-spacing: -4px; color: rgba(255,255,255,.04); writing-mode: vertical-rl; }
.login-side img { height: 52px; align-self: flex-start; }
.login-side .slogan { font-size: 2.6rem; font-weight: 600; line-height: 1.1; max-width: 12ch; }
.login-side .slogan small { display: block; font-size: 1rem; font-weight: 400; color: var(--sage); margin-top: 14px; letter-spacing: .02em; }
.login-side .slogan .made-in { display: block; max-width: none; margin-top: 22px; font-size: .95rem; font-weight: 500; color: #fff; letter-spacing: .03em; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); }
.login-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.login-form .card { width: 100%; max-width: 380px; }
@media (max-width: 820px) { .login-wrap { grid-template-columns: 1fr; } .login-side { min-height: 220px; padding: 28px; } .login-side .slogan { font-size: 1.8rem; } }

/* ---- page header ---- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--bronze); font-weight: 600; margin-bottom: 4px; }

/* ---- stepper ---- */
.order-bar { background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius); padding: 12px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.order-bar .job { font-weight: 600; }
.steps { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.steps a { text-decoration: none; color: var(--muted); padding: 7px 14px; border-radius: 99px; font-size: .9rem; border: 1px solid transparent; }
.steps a .n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: .75rem; margin-right: 6px; }
.steps a.active { color: var(--ink); border-color: var(--bronze); font-weight: 500; }
.steps a.active .n { background: var(--bronze); color: #fff; }
.spec-chips { display: flex; gap: 6px; flex-wrap: wrap; font-size: .8rem; }
.chip { background: var(--sage-soft); color: var(--slate); border-radius: 99px; padding: 3px 10px; }

/* ---- catalog ---- */
.cat-layout { display: grid; grid-template-columns: 190px 230px 1fr; gap: 16px; align-items: start; }
.sections { position: sticky; top: 74px; display: flex; flex-direction: column; gap: 4px; }
.sections button { text-align: left; font: inherit; border: 0; background: none; padding: 10px 14px; border-radius: var(--radius); cursor: pointer; color: var(--slate); display: flex; justify-content: space-between; }
.sections button:hover { background: var(--sage-soft); }
.sections button.on { background: var(--charcoal); color: #fff; }
.sections button .cnt { color: var(--sage); font-size: .8rem; }
/* the open section's categories, listed under it in the left column */
/* second column: the open main category's categories */
.side-subs-col { position: sticky; top: 74px; max-height: calc(100vh - 90px); overflow-y: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 6px; }
.side-subs-col.empty { visibility: hidden; }
.side-subs-head { font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 10px 8px; }
.side-subs { display: flex; flex-direction: column; gap: 1px; }
.side-subs button { font: inherit; font-size: .88rem; text-align: left; border: 0; background: none; border-radius: var(--radius); cursor: pointer; display: flex; justify-content: space-between; padding: 7px 10px; color: var(--slate); gap: 8px; align-items: baseline; line-height: 1.25; }
.side-subs button:hover { background: var(--sage-soft); }
.side-subs button .cnt { color: var(--muted); font-size: .76rem; flex: none; }
.side-subs button.on { background: var(--sage-soft); color: var(--charcoal); font-weight: 600; box-shadow: inset 3px 0 0 var(--bronze); }
.cat-layout .sections { max-height: calc(100vh - 90px); overflow-y: auto; }
/* wide screens use the side list; the row of buttons on top is only kept for phones */
@media (min-width: 861px) { .subcats { display: none !important; } }
@media (max-width: 860px) { .side-subs, .side-subs-col { display: none; } }
.subcats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.subcats button { font: inherit; font-size: .86rem; border: 1px solid var(--line); background: #fff; padding: 6px 12px; border-radius: 99px; cursor: pointer; color: var(--slate); }
.subcats button.on { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.search-row { display: flex; gap: 10px; margin-bottom: 14px; }
.search-row input { max-width: 380px; }
.cat-title { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.cat-title h3 { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pcard { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; border: 2px solid transparent; transition: border-color .12s, transform .12s; text-align: left; font: inherit; padding: 0; color: inherit; }
.pcard:hover, .pcard:focus-visible { border-color: var(--bronze); transform: translateY(-1px); outline: none; }
.pcard .img { height: 170px; display: grid; place-items: center; padding: 10px; border-bottom: 1px solid var(--line); background: #fff; border-radius: var(--radius) var(--radius) 0 0; }
.pcard .img img { max-width: 100%; max-height: 150px; object-fit: contain; }
.pcard .noimg { color: var(--sage); font-size: .8rem; text-align: center; }
.pcard .body { padding: 10px 12px 12px; }
.pcard .code { font-weight: 600; font-size: 1rem; word-break: break-word; }
.pcard .desc { font-size: .8rem; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .meta { font-size: .72rem; color: var(--sage); margin-top: 6px; }
.pcard .incart { font-size: .72rem; color: var(--ok); font-weight: 600; }
@media (max-width: 860px) { .cat-layout { grid-template-columns: 1fr; } .sections { position: static; flex-direction: row; overflow-x: auto; } .sections button { white-space: nowrap; } }

/* ---- dialog ---- */
.overlay { position: fixed; inset: 0; background: rgba(26,26,26,.55); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 30px 16px; overflow-y: auto; }
.dialog { background: var(--card); border-radius: 8px; width: 100%; max-width: 980px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dialog.narrow { max-width: 480px; }
.dialog .dhead { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.dialog .dhead h2 { margin: 0; }
.dialog .dbody { padding: 22px; }
/* tall windows: header and buttons stay put, the middle scrolls (mouse wheel works anywhere inside) */
.overlay > .dialog { display: flex; flex-direction: column; max-height: calc(100vh - 60px); }
.overlay > .dialog > .dhead, .overlay > .dialog > .dfoot { flex: none; }
.overlay > .dialog > .dbody { flex: 1 1 auto; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.dialog .dfoot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; align-items: center; flex-wrap: wrap; }
.x { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.line-layout { display: grid; grid-template-columns: 300px 1fr; gap: 26px; }
.line-layout .pic { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; place-items: center; min-height: 220px; }
.line-layout .pic img { max-width: 100%; max-height: 320px; }
.line-layout ul.bullets { padding-left: 18px; margin: 12px 0; font-size: .86rem; color: var(--slate); }
@media (max-width: 760px) { .line-layout { grid-template-columns: 1fr; } }
.custom-flag { display: inline-block; background: var(--danger); color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; }
.changed-flag { display: inline-block; background: var(--bronze); color: #fff; font-weight: 600; font-size: .72rem; padding: 2px 7px; border-radius: 4px; }
details.override { border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 14px; margin-top: 8px; }
details.override summary { cursor: pointer; font-weight: 500; color: var(--slate); }
details.override[open] { background: #fbfaf8; }
.size-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 560px) { .size-row { grid-template-columns: 1fr; } }

/* ---- tables ---- */
table.list { width: 100%; border-collapse: collapse; background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
table.list th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--charcoal); padding: 10px; font-weight: 500; }
table.list td { padding: 10px; border-top: 1px solid var(--line); vertical-align: top; }
table.list tr.bad td { background: var(--danger-soft); }
.solo { display: flex; flex-direction: column; }
.solo .solo-title { font-weight: 600; font-size: .95rem; margin: 0 0 6px 2px; }
.solo .pcard { flex: 1; }
table.list tr.pickrow td.thumb { width: 54px; padding: 4px 6px; }
table.list tr.pickrow td.thumb img { width: 46px; height: 46px; object-fit: contain; background: #fff; }
/* second-level heading (e.g. 3" wide / 84" high): a small sage tag */
table.list tr.subhead2 td { padding: 10px 10px 4px 12px; border-top: 1px solid var(--line); background: var(--card); }
table.list tr.subhead2 td span { display: inline-block; background: var(--sage-soft); color: var(--charcoal); border-left: 3px solid var(--sage);
  font-weight: 600; font-size: .92rem; padding: 3px 12px; border-radius: 0 4px 4px 0; }
/* the catalog's note under a heading (e.g. how a filler is edged) */
table.list tr.subnote td { font-size: .85rem; color: var(--muted); font-style: italic; padding: 4px 12px 8px; border-top: 0; background: var(--bg); }
table.list tr.subhead td { background: var(--line); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 7px 10px; }
table.list td.thumb { width: 70px; }
table.list td.thumb img { width: 60px; height: 60px; object-fit: contain; background: #fff; }
table.list .code { font-weight: 600; }
table.list .opts { font-size: .84rem; color: var(--slate); }
table.list .actions { white-space: nowrap; text-align: right; }
.table-wrap { overflow-x: auto; }
.status { font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; }
.status.draft { background: #f3ecdf; color: var(--bronze-dark); }
.status.submitted { background: var(--ok-soft); color: var(--ok); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 22px; font-size: .9rem; }
.summary-grid div b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--charcoal); color: #fff; padding: 11px 20px; border-radius: var(--radius); z-index: 80; box-shadow: var(--shadow); }
.sticky-foot { position: sticky; bottom: 0; background: rgba(244,244,242,.96); padding: 12px 0; margin-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* attached documents on the order review page */
.attach-list { list-style: none; margin: 0; padding: 0; }
.attach-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.attach-list li:first-child { border-top: 0; }
.attach-list li a { color: var(--charcoal); font-weight: 500; word-break: break-all; }
.attach-list li .btn { margin-left: auto; }


/* Add accessory (cabinet window) */
.override.acc summary { font-weight: 600; }
.acc-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }   /* no inner scroll area - the window scrolls as one */
.acc-row { display: grid; grid-template-columns: 96px 1fr 70px; gap: 14px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.acc-pic img { width: 92px; height: 92px; object-fit: cover; border-radius: 4px; display: block; }
.acc-txt b { font-size: 1rem; line-height: 1.3; }
.acc-txt .small { font-size: .85rem; margin-top: 3px; }
.acc-row .accqty { width: 64px; font-size: 1rem; padding: 8px; }
.acc-zoom-btn { position: relative; border: 0; padding: 0; background: none; cursor: zoom-in; display: block; }
.acc-zoom-btn:hover img { outline: 2px solid var(--bronze); }
.acc-zoom-hint { position: absolute; right: 3px; bottom: 3px; background: rgba(255,255,255,.9); border-radius: 50%; width: 22px; height: 22px; font-size: 12px; line-height: 22px; text-align: center; }
.acc-zoom { position: fixed; inset: 0; z-index: 2000; background: rgba(20,22,21,.72); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.acc-zoom-card { background: var(--card); border-radius: 10px; max-width: 760px; width: 100%; max-height: 92vh; overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.acc-zoom-card img { width: 100%; max-height: 62vh; object-fit: contain; background: #fff; display: block; border-radius: 10px 10px 0 0; }
.acc-zoom-txt { padding: 14px 20px 18px; }
.acc-zoom-txt h3 { margin: 0 0 6px; font-size: 1.2rem; }
.acc-zoom-txt p { margin: 4px 0; }


/* Custom Cabinet Configurator link (mock-up for now) under Tall */
.sections a.mockup-link { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: var(--radius); color: var(--bronze-dark); text-decoration: none; border: 1px dashed var(--bronze); margin: 2px 0; }
.sections a.mockup-link:hover { background: #faf7f2; }
.sections a.mockup-link .cnt { color: var(--bronze); font-size: .75rem; }


/* ---------- Accounts (People / Companies / Pricing levels & security) ---------- */
.adm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line, #ddd); margin: 0 0 16px; flex-wrap: wrap; }
.adm-tabs a { padding: 9px 16px; text-decoration: none; color: var(--slate); border-bottom: 3px solid transparent; font-weight: 600; }
.adm-tabs a.on { border-bottom-color: var(--bronze, #9a7b4f); color: var(--ink, #222); }
.adm-filter { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.adm-filter input { flex: 1 1 240px; } .adm-filter select { flex: 0 1 300px; }
.grid2.adm-grid { grid-template-columns: minmax(0, 2.3fr) minmax(280px, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid2.adm-grid { grid-template-columns: 1fr; } }
.type-owner { font-weight: 700; color: var(--bronze-dark, #7a5c33); } .type-staff { font-weight: 600; }
.pct { display: flex; align-items: center; gap: 4px; } .pct input { width: 90px; text-align: right; }
.lv-table input.lv-name { min-width: 170px; } .lv-table input.lv-notes { min-width: 160px; }
.lv-table td { vertical-align: middle; }
.lv-add { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; } .lv-add > input { flex: 1 1 260px; }
.audit { max-height: 300px; overflow-y: auto; font-size: .9rem; } .audit div { padding: 4px 0; border-bottom: 1px solid #eee; }

/* Closets: the whole Closet System sheet */
.closet-banner { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; background: #fff; border: 1px solid #e2e2dc; border-radius: var(--radius); padding: 10px 14px; margin: 0 0 16px; cursor: pointer; font: inherit; color: inherit; }
.closet-banner:hover { border-color: var(--bronze, #9a7b4f); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.closet-banner img { width: 260px; max-width: 45%; height: auto; flex: none; }
.closet-banner b { display: block; font-size: 1.05rem; margin-bottom: 4px; } .closet-banner .small { color: var(--slate); }
.dialog.sheet-dialog { max-width: 1500px; width: 96vw; }
.sheet-dialog .dhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sheet-dialog .dbody { overflow: auto; max-height: 80vh; }
.sheet-dialog .dbody img { width: 100%; height: auto; cursor: zoom-in; display: block; }
.sheet-dialog .dbody img.zoomed { width: 2800px; max-width: none; cursor: zoom-out; }

/* interior (box) colour: current swatch beside the "See all interior colours" button */
.int-cur { display: inline-flex; width: 34px; height: 34px; border-radius: 4px; overflow: hidden; border: 1px solid #ccc; vertical-align: middle; margin-right: 8px; }
.int-cur img { width: 100%; height: 100%; object-fit: cover; }
.int-white { display: block; width: 100%; height: 100%; background: #f7f7f5; box-shadow: inset 0 0 0 1px #e2e2de; }
.swatch .int-white { min-height: 120px; }

/* ---------- review process: stages, prices, changes, messages ---------- */
.status.st-review { background: #e6eef7; color: #2b5a8a; }
.status.st-returned { background: #fdf1dc; color: #8a5a00; }
.status.st-submitted { background: var(--ok-soft); color: var(--ok); }
.status.turn { box-shadow: 0 0 0 2px #c9863a; }
tr.your-turn td { background: #fffaf0; }
.turn-pill { display: inline-block; background: #c9863a; color: #fff; font-size: .75rem; padding: 2px 9px; border-radius: 99px; vertical-align: middle; font-weight: 600; }
.ord-sec { margin-bottom: 26px; } .ord-sec h2 { margin: 0 0 2px; font-size: 1.15rem; } .ord-sec > p { margin: 0 0 8px; }
td.num, th.num { text-align: right; white-space: nowrap; }
.notice.turn { background: #fff6e8; color: #6b4a12; border-left: 4px solid #c9863a; }
.price-in { width: 92px; text-align: right; }
.round-flag { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 600; color: #8a5a00; background: #fdf1dc; border-radius: 4px; padding: 1px 7px; }
.round-flag.added { color: #2b5a8a; background: #e6eef7; } .round-flag.priced { color: var(--ok); background: var(--ok-soft); }
tr.round-changed td:first-child { box-shadow: inset 3px 0 0 #c9863a; }
.thread { max-height: 320px; overflow-y: auto; margin-bottom: 10px; }
.thread .msg { padding: 7px 10px; border-radius: 6px; margin-bottom: 6px; background: #f6f6f3; }
.thread .msg.muskoka { background: #f4efe6; }
.thread .msg-text { white-space: pre-wrap; margin-top: 3px; }
.msg-new { display: flex; gap: 8px; align-items: flex-end; } .msg-new textarea { flex: 1; }
.deliv-choice { display: flex; gap: 18px; padding: 4px 0; } .deliv-choice label { display: flex; gap: 6px; align-items: center; font-weight: 400; }
.order-total { font-size: 1.05rem; }

/* who is signed in (top bar): name, company, and a Muskoka tag for staff */
.who-tag { display: inline-block; background: #967f5f; color: #fff; font-size: .68rem; padding: 1px 7px; border-radius: 99px; margin-left: 4px; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; }

