/* MiterCut demo: "What the shop sees" (MiterCut's Work orders, as in the app) and the test-card deposit page. */
body { background: var(--ground); }
.mcd-boot { padding: 40px; font-size: 18px; color: var(--ink-2); }
.mcd-banner { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; align-items: center; padding: 9px 16px; background: #1F2A2A; color: #F4F1EA; font-size: 15px; line-height: 1.35; text-align: center; }
.mcd-banner a { color: #9FD9D2; font-weight: 700; }

/* ---------- the app frame ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - 40px); }
.side { background: #1F2A2A; color: #E8E4DC; display: flex; flex-direction: column; padding: 18px 12px; gap: 4px; position: sticky; top: 0; height: calc(100vh - 40px); overflow: auto; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 14px; }
.brand img { width: 34px; height: 34px; }
.brand b { font-size: 19px; color: #fff; display: block; }
.brand span { font-size: 13px; color: #B9C2C0; }
.side h4 { margin: 12px 8px 4px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #9AA6A4; }
.side .nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 15.5px; font-weight: 700; color: #E8E4DC; cursor: default; }
.side .nav.on { background: rgba(255,255,255,0.1); }
.side .nav .count { background: rgba(255,255,255,0.16); border-radius: 999px; padding: 1px 9px; font-size: 13px; }
.side .demo-box { margin-top: auto; background: #FFF4E5; color: #5A3B0E; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.4; }
.side .demo-box b { display: block; font-size: 15px; margin-bottom: 4px; }
.side .demo-box a { color: #7A4B0C; font-weight: 700; display: block; margin-top: 8px; }
.side .side-btn { margin-top: 10px; display: block; text-align: center; border: 2px solid rgba(255,255,255,0.35); color: #fff; border-radius: 10px; padding: 9px 10px; font-weight: 700; font-size: 15px; text-decoration: none; }

.main { padding: 22px 26px 60px; min-width: 0; }
.crumbs { font-size: 14px; color: var(--ink-2); }
.crumbs a { color: var(--accent); text-decoration: none; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 8px 0 18px; flex-wrap: wrap; }
.head h1 { margin: 0; font-size: 30px; }
.head p { margin: 6px 0 0; font-size: 17px; color: var(--ink-2); }
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid var(--line-2); background: var(--panel); color: var(--ink); cursor: pointer; }
.bt.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.bt.primary:hover { background: var(--accent-dark); }
.panelbox { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.chip { border: 2px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 13px; font-size: 15px; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.callout { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--accent-soft); color: var(--accent-dark); border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; font-size: 16.5px; }
.callout.new { background: #E4F1E6; color: #1F4D2B; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { text-align: left; border: 1px solid var(--line); background: var(--ground); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; font-size: 15px; color: var(--ink); }
.card:hover { border-color: var(--line-2); }
.card.mine { border: 2px solid var(--accent); background: #F3F8F7; box-shadow: 0 0 0 4px rgba(31,95,91,0.08); }
.card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card .num { font-size: 19px; font-weight: 700; }
.card .name { font-size: 17px; font-weight: 700; margin-top: 4px; }
.card .ph, .card .due { color: var(--ink-2); }
.card .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.card .money { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.card .money > span { display: flex; flex-direction: column; gap: 1px; }
.card .money b { font-size: 17px; }
.card .money .bal b { color: #A1471B; }
.card .thumb { width: 100%; height: 120px; object-fit: contain; background: var(--wall); border-radius: 10px; margin: 8px 0 2px; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: #E9ECF6; color: #2E3C7A; }
.badge.waiting { background: #FCEBD8; color: #8A4A0E; }
.badge.work { background: #FBF0D5; color: #7A5A0A; }
.badge.ready { background: #E4F1E6; color: #1F4D2B; }
.badge.online { background: var(--accent-soft); color: var(--accent-dark); }
.new-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #C8794F; margin-right: 6px; animation: mcdpulse 1.6s ease-in-out infinite; }
@keyframes mcdpulse { 50% { opacity: 0.35; } }

/* ---------- the job panel ---------- */
.shade { position: fixed; inset: 0; background: rgba(20, 24, 24, 0.38); z-index: 20; }
.job { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: var(--ground); z-index: 21; overflow: auto; box-shadow: -18px 0 40px rgba(0,0,0,0.18); }
.job-head { position: sticky; top: 0; background: var(--panel); border-bottom: 1px solid var(--line); padding: 16px 22px 0; z-index: 2; }
.job-head .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.job-head h2 { margin: 2px 0; font-size: 24px; }
.job-head .tot { font-size: 16px; color: var(--ink-2); }
.job-head .tot b { color: var(--ink); }
.job-head .tot .bal { color: #A1471B; font-weight: 700; }
.tabs { display: flex; gap: 22px; margin-top: 12px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.tabs span { padding: 10px 2px; font-weight: 700; color: var(--ink-2); border-bottom: 3px solid transparent; }
.tabs span.on { color: var(--ink); border-color: var(--accent); }
.job-body { padding: 18px 22px 40px; display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin-top: 10px; font-size: 15.5px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pics figure { margin: 0; background: var(--wall); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pics img { max-width: 100%; max-height: 300px; object-fit: contain; }
.pics figcaption { font-size: 14px; color: var(--ink-2); }
.pics .none { min-height: 140px; display: grid; place-items: center; color: var(--ink-2); font-size: 15px; text-align: center; padding: 10px; }
.build { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; }
.build li { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.build li span { color: var(--ink-2); }
.money-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 16px; }
.money-rows div { display: flex; justify-content: space-between; gap: 10px; }
.money-rows .total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 8px; }
.money-rows .bal { color: #A1471B; font-weight: 700; }
.warn { background: #FFF4E5; border: 1px solid #F0C48A; color: #5A3B0E; border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.how { background: var(--accent-soft); color: var(--accent-dark); border-radius: 12px; padding: 12px 16px; font-size: 15.5px; line-height: 1.45; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; }
  .side h4, .side .nav, .side .demo-box { display: none; }
  .side .brand { padding: 0; }
  .side .side-btn { margin: 0 0 0 auto; }
  .main { padding: 16px 14px 50px; }
  .grid2, .pics { grid-template-columns: 1fr; }
}

/* ---------- the deposit page ---------- */
.pay-wrap { max-width: 620px; margin: 0 auto; padding: 22px 18px 60px; display: flex; flex-direction: column; gap: 16px; }
.pay-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pay-top b { font-size: 19px; }
.pay-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.pay-card h1 { margin: 0; font-size: 26px; }
.pay-card .mock { background: var(--wall); border-radius: 12px; padding: 10px; text-align: center; }
.pay-card .mock img { max-width: 100%; max-height: 320px; }
.test-card { border: 2px dashed var(--line-2); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.test-card .digits { font-size: 21px; letter-spacing: 0.08em; font-weight: 700; }
.pay-btn { min-height: 60px; font-size: 19px; width: 100%; }
.ok-big { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.ok-big .tick { width: 64px; height: 64px; border-radius: 50%; background: #E4F1E6; color: #1F4D2B; display: grid; place-items: center; font-size: 34px; font-weight: 700; }
.err { color: var(--danger); font-weight: 700; }

.pay-card a.small { color: var(--accent); font-weight: 700; }

/* ---------- the mocked-up screens (menu items) ---------- */
.side a.nav { text-decoration: none; cursor: pointer; }
.side a.nav:hover { background: rgba(255,255,255,0.06); }
.head-acts, .row-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.main > .panelbox, .main > section, .main > .grid2, .main > .grid3, .main > .cards, .main > .stats, .main > .how, .main > .hero, .main > .tiles, .main > .split, .main > .designer { margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.stats.wide { margin: 0 0 14px; }
.stat { background: #F3F0EA; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 22px; }
.stat span { font-size: 14px; color: var(--ink-2); }
.stat.warnish b { color: #A1471B; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); min-height: 220px; }
.hero-pic { background: var(--wall); display: grid; place-items: center; padding: 14px; }
.hero-pic img { max-height: 240px; max-width: 100%; }
.hero-side { background: #DCDCDA; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; padding: 20px; text-align: center; }
.hero-side h2 { margin: 0; font-size: 30px; }
.hero-side .bt.primary { background: #2E3E46; border-color: #2E3E46; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tile { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.tile b { color: var(--ink); font-size: 17px; }
.tile:hover { border-color: var(--line-2); }
.count-pill { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 13px; vertical-align: 2px; }
.panelbox[data-goto] { cursor: pointer; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plain { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; }
.plain li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; font-size: inherit; cursor: pointer; text-decoration: underline; }
.tbl-wrap { overflow-x: auto; margin-top: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl tr[hidden] { display: none; }
.search { width: 100%; min-height: 48px; border: 2px solid var(--line-2); border-radius: 12px; padding: 0 14px; font-size: 16px; margin: 4px 0 8px; background: var(--panel); }
.cards.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card.static { cursor: default; background: var(--panel); }
.card .row-acts { margin-top: 10px; }
.card .kv { grid-template-columns: 90px 1fr; font-size: 14.5px; }
.swatch { display: block; width: 100%; height: 90px; border-radius: 10px; object-fit: cover; object-position: center 20%; background: var(--wall); margin-bottom: 6px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; margin-top: 8px; }
.hbar { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; margin-top: 10px; font-size: 15px; }
.hbar i { display: block; height: 12px; border-radius: 6px; background: var(--accent); width: var(--w); min-width: 4px; }
.vbars { display: flex; align-items: flex-end; gap: 8px; height: 190px; margin-top: 14px; }
.vbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.vbar i { display: block; width: 100%; max-width: 46px; height: var(--h); background: var(--accent); border-radius: 6px 6px 0 0; }
.vbar.sofar i { background: repeating-linear-gradient(45deg, var(--accent), var(--accent) 6px, #3E7C77 6px, #3E7C77 12px); }
.split { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
.list .item { width: 100%; text-align: left; border: 1px solid var(--line); background: var(--ground); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; margin-top: 10px; }
.list .item.on { border: 2px solid var(--accent); background: #F3F8F7; }
.designer { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: start; }
.designer .canvas { text-align: center; background: var(--wall); }
.designer .canvas img { max-width: 100%; max-height: 520px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 40; background: #1F2A2A; color: #F4F1EA; border-radius: 14px; padding: 12px 16px; display: flex; gap: 14px; align-items: center; max-width: min(640px, calc(100vw - 24px)); font-size: 15.5px; box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.toast .linkish { color: #9FD9D2; }
@media (max-width: 900px) {
  .side .nav { display: inline-flex; padding: 6px 9px; font-size: 14px; }
  .side h4, .side .nav .count { display: none; }
  .side { gap: 2px; }
  .hero, .grid3, .split, .designer { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 90px 1fr auto; }
}
