/* Visual theme, loaded after the base styles. Dark navigation, white working surfaces, brand olive as the accent. */
:root {
  --ink: #1a1c15; --muted: #6c7163; --line: #e6e8e1; --bg: #f3f4f0; --card: #ffffff;
  --olive: #74754d; --olive-2: #a5a472; --olive-dk: #4a4b31; --wash: #f4f4ea;
  --night: #15170f; --night-2: #1d2016; --gold: #c2b47a;
  --green: #17803d; --green-w: #e7f5ec; --red: #c2372b; --red-w: #fdecea;
  --amber: #a5630a; --amber-w: #fdf3dd; --blue: #2456c9; --blue-w: #e9f0ff;
  --shadow: 0 1px 2px rgba(22, 24, 15, .05), 0 10px 26px -20px rgba(22, 24, 15, .35);
  --head: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
}
body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .stat b, .company, .dtitle, .navgroup { font-family: var(--head); }
h1 { font-size: 25px; letter-spacing: -.02em; }
h2 { font-size: 18px; letter-spacing: -.01em; }
h3 { font-size: 14px; letter-spacing: -.005em; }
.head p { font-size: 13.5px; }

/* navigation */
.side { width: 252px; background: linear-gradient(180deg, var(--night-2), var(--night)); border-right: 0; padding: 20px 14px; color: rgba(255, 255, 255, .7); }
.brand { padding: 4px 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 6px; }
.brand img { width: 96px; }
.navgroup { color: rgba(255, 255, 255, .38); font-size: 10.5px; letter-spacing: .12em; padding: 18px 12px 7px; }
.navitem { display: flex; align-items: center; gap: 11px; color: rgba(255, 255, 255, .74); padding: 9px 12px; border-radius: 10px; font-weight: 500; position: relative; transition: background .15s, color .15s; }
.navitem:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.navitem.on { background: rgba(194, 180, 122, .16); color: #fff; }
.navitem.on::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.navitem.on .ico { opacity: 1; color: var(--gold); }
.sidefoot { padding: 16px 8px 0; }
.proto { background: rgba(194, 180, 122, .13); color: var(--gold); border: 1px solid rgba(194, 180, 122, .22); border-radius: 8px; }
.side .link { color: rgba(255, 255, 255, .6); }
.side .link:hover { color: #fff; }

/* top bar */
.top { background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 11px 30px; min-height: 60px; }
.crumb { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.crumb b { font-family: var(--head); font-size: 15px; }
.crumb span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who { gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--night); color: var(--gold); display: flex; align-items: center; justify-content: center; font: 700 12px var(--head); flex: none; }
.who .input.sm { border-radius: 9px; padding: 7px 9px; font-weight: 500; }
.content { padding: 28px 30px 70px; max-width: 1480px; }

/* surfaces */
.card, .stat, .clockcard { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.card { padding: 20px; }
.card.flush { padding: 0; }
.card h3 { margin-bottom: 12px; }
.stats { gap: 14px; margin-bottom: 20px; }
.stat { padding: 16px 18px 15px 20px; position: relative; overflow: hidden; gap: 3px; }
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--olive-2); }
.stat:has(b.warn)::before { background: var(--red); }
.stat span { font-size: 11px; letter-spacing: .06em; font-weight: 600; }
.stat b { font-size: 23px; letter-spacing: -.02em; line-height: 1.2; }
.stat small { font-size: 12px; }

/* controls */
.btn { border-radius: 10px; border-color: #dcdfd5; padding: 9px 15px; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:hover { border-color: var(--olive-2); box-shadow: 0 1px 2px rgba(22, 24, 15, .08); }
.btn:active { transform: translateY(1px); }
.btn.p { background: var(--night); border-color: var(--night); color: #fff; }
.btn.p:hover { background: var(--olive-dk); border-color: var(--olive-dk); }
.btn.s { border-radius: 8px; padding: 5px 10px; }
.btn.ok { color: var(--green); border-color: #bfe0cb; background: #fbfefc; }
.btn.bad { color: var(--red); border-color: #f0cdc8; background: #fffcfb; }
.input { border-radius: 10px; border-color: #dcdfd5; padding: 9px 11px; transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: #c9cdbf; }
.input:focus { outline: 0; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(165, 164, 114, .28); }
.input:disabled { background: #f4f5f1; }
.input.search { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c7163' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; padding-left: 36px; }
label { color: #5d6255; letter-spacing: .01em; }
.readonly { border-radius: 10px; background: #f7f8f3; border: 1px solid var(--line); }
.link { color: var(--olive-dk); }

/* tables */
.t th { background: #fafaf6; color: #6c7163; font-size: 10.5px; letter-spacing: .07em; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.t td { padding: 12px 16px; border-bottom: 1px solid #f0f1ec; }
.t tbody tr { transition: background .12s; }
.t tbody tr:hover td { background: #fbfbf7; }
.card.flush .t th:first-child, .card.flush .t td:first-child { padding-left: 20px; }
.t.boxed { border-radius: 12px; overflow: hidden; }
.t.boxed tbody tr:hover td { background: transparent; }
.duerow td, .t tbody tr.duerow:hover td { background: var(--amber-w); }
.empty { padding: 36px 16px !important; }
.badge { padding: 3px 10px 3px 9px; font-size: 11px; letter-spacing: .01em; }
.badge::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; opacity: .8; }
.b-grey { background: #eff0ea; color: #5a5f52; }
.bar { background: #e9eae2; height: 7px; border-radius: 6px; }
.bar i { background: linear-gradient(90deg, var(--olive), var(--olive-2)); border-radius: 6px; }

/* tabs as a segmented control */
.tabs { background: #e9eae3; padding: 4px; border-radius: 12px; display: inline-flex; gap: 2px; margin-bottom: 16px; max-width: 100%; }
.tabs button { border: 0; background: transparent; border-radius: 9px; padding: 7px 14px; color: #5d6255; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(22, 24, 15, .14); }

/* windows */
.modal-bg { background: rgba(18, 20, 12, .55); backdrop-filter: blur(3px); }
.modal { background: #fff; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); overflow: hidden; }
.mhead { padding: 18px 24px; background: #fff; }
.mbody { padding: 22px 24px; background: #fbfbf8; }
.mfoot { padding: 14px 24px; background: #fff; }
.line { border-radius: 12px; border-color: var(--line); box-shadow: 0 1px 2px rgba(22, 24, 15, .03); }
.termpick, .licres, .details { border-radius: 12px; border-color: var(--line); }
.upload { background: #f7f8f1; border: 1px dashed #c3c5a4; border-radius: 12px; }
.x { color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.x:hover { background: #f0f1ec; color: var(--ink); }
.toast { background: var(--night); border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); padding: 11px 20px; }

/* pipeline board */
.board { gap: 14px; }
.col { background: #eceee6; border-radius: 14px; padding: 12px; }
.lead { border-radius: 12px; border-left-width: 3px; box-shadow: 0 1px 2px rgba(22, 24, 15, .06); transition: transform .12s, box-shadow .12s; }
.lead:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(22, 24, 15, .35); }
.chip { background: #fff; border-color: var(--line); }
.event { border-bottom-color: #eff0ea; }

/* dashboard charts */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; margin-bottom: 20px; }
.charts .card { min-width: 0; }
.hbar { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-bottom: 11px; font-size: 13px; }
.hbar .lbl { color: #4f5448; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { height: 10px; background: #eeefe8; border-radius: 6px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--olive), var(--olive-2)); min-width: 2px; transition: width .4s; }
.hbar .track i.neg { background: var(--red); }
.hbar .track i.dark { background: var(--night); }
.hbar .val { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stack { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: #eeefe8; margin: 6px 0 14px; }
.stack i { display: block; height: 100%; }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.legend div { display: flex; justify-content: space-between; gap: 10px; }
.legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 8px; background: var(--c); }
.legend b { font-variant-numeric: tabular-nums; }
.t td.r, .totals b, .val, .stat b { font-variant-numeric: tabular-nums; }

/* printable documents keep their paper look */
.paper { border-radius: 6px; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .5); }
.docbar .btn { box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }

/* HR worker screen */
.clockcard { background: #fff; }
.btn.big { border-radius: 16px; box-shadow: 0 10px 24px -12px rgba(22, 24, 15, .5); }
.sim { border-radius: 12px; }
.sitebox { border-radius: 12px; border-color: var(--line); background: #fcfcfa; }

@media (max-width: 900px) {
  .top { padding: 10px 14px; }
  .content { padding: 18px 14px 70px; }
  .crumb span { display: none; }
  .side { box-shadow: 0 0 50px rgba(0, 0, 0, .5); }
  .hbar { grid-template-columns: 92px minmax(0, 1fr) auto; }
  .tabs { display: flex; flex-wrap: wrap; }
}
@media print {
  .t th { background: #fff; }
  .stat::before, .badge::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card, .stat { box-shadow: none; }
}

/* ---------- sign-in screen */
.login { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--bg); overflow-y: auto; }
.loginart { background: radial-gradient(1200px 600px at 10% -10%, #2b2f1f 0, transparent 60%), linear-gradient(160deg, var(--night-2), var(--night)); color: rgba(255, 255, 255, .78); padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.loginart img { width: 150px; margin-bottom: 18px; }
.loginart h1 { color: #fff; font-size: 34px; line-height: 1.15; max-width: 460px; }
.loginart p { max-width: 460px; font-size: 15px; line-height: 1.6; }
.loginart ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.loginart li { padding-left: 26px; position: relative; }
.loginart li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.loginbox { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; gap: 10px; max-width: 520px; width: 100%; margin: 0 auto; }
.loginbox h2 { font-size: 26px; }
.loginbox > p { margin-bottom: 10px; }
.userbtn { display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.userbtn:hover { transform: translateY(-1px); border-color: var(--olive-2); }
.userbtn span:last-child { display: flex; flex-direction: column; }
.userbtn b { font-family: var(--head); font-size: 15px; }
.userbtn .avatar { width: 42px; height: 42px; font-size: 14px; }

/* ---------- top bar tools */
.gsearch { position: relative; flex: 1 1 280px; max-width: 420px; }
.gsearch .input.search { max-width: none; margin: 0; background-color: #f6f7f3; border-color: transparent; }
.gsearch .input.search:focus { background-color: #fff; border-color: var(--olive); }
.topacts { display: flex; align-items: center; gap: 8px; }
.rel { position: relative; }
.addnew { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 11px; }
.addnew .ico { width: 16px; height: 16px; stroke-width: 2.4; opacity: 1; }
.bell { position: relative; padding: 8px 10px; display: inline-flex; }
.bell .ico { opacity: 1; }
.bell .count { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--red); color: #fff; font: 700 11px/19px var(--head); text-align: center; padding: 0 5px; }
.drop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .35); padding: 6px; min-width: 220px; max-height: 70vh; overflow-y: auto; }
.drop.right { left: auto; right: 0; }
.drop.wide { min-width: 360px; width: 100%; }
.drop.right.wide { width: 380px; max-width: 86vw; }
.drophead { font: 700 10.5px var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 6px; }
.dropitem { display: flex; align-items: baseline; gap: 9px; width: 100%; text-align: left; font: inherit; background: none; border: 0; border-radius: 9px; padding: 9px 10px; cursor: pointer; color: var(--ink); }
.dropitem:hover, .dropitem:focus { background: var(--wash); outline: 0; }
.dropitem small { margin-left: auto; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46%; }
.dropitem.alert { display: block; padding-left: 22px; position: relative; font-size: 13px; line-height: 1.4; }
.dropitem.alert::before, .attn::before { content: ''; position: absolute; left: 9px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.dropitem.alert.red::before, .attn.red::before { background: var(--red); }
.dropempty { padding: 14px 10px; color: var(--muted); font-size: 13px; }

/* ---------- dashboard */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; padding: 22px 24px; border-radius: 18px; background: radial-gradient(700px 240px at 0 0, #2d3120 0, transparent 70%), linear-gradient(120deg, var(--night-2), var(--night)); color: rgba(255, 255, 255, .72); }
.hero h1 { color: #fff; font-size: 26px; margin-bottom: 4px; }
.hero .btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.hero .btn:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); }
.charts .card.span2 { grid-column: span 2; }
.sec.nomargin { margin: 0 0 6px; }
.legend.row { flex-direction: row; gap: 16px; }
.cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; height: 210px; padding-top: 8px; }
.colm { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; min-width: 0; }
.pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 5px; border-bottom: 1px solid var(--line); }
.pair i { display: block; width: 34%; max-width: 30px; border-radius: 6px 6px 0 0; min-height: 2px; transition: height .5s; }
.pair i.in { background: linear-gradient(180deg, #2aa25a, var(--green)); }
.pair i.out { background: linear-gradient(180deg, #3a3d2b, var(--night)); }
.colm b { font-size: 12px; font-family: var(--head); }
.colm small { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.attn { display: block; width: 100%; text-align: left; font: inherit; font-size: 13px; line-height: 1.4; background: none; border: 0; border-bottom: 1px solid #eff0ea; padding: 9px 4px 9px 22px; position: relative; cursor: pointer; color: var(--ink); }
.attn:hover { background: #fafaf6; }
.attn:last-of-type { border-bottom: 0; }

/* ---------- reports */
.totalrow td { font-weight: 700; background: #fafaf6; border-top: 2px solid var(--line); }
.sthead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.stsum { text-align: right; display: flex; flex-direction: column; }
.stsum span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stsum b { font: 800 22px var(--head); font-variant-numeric: tabular-nums; }
.neg { color: var(--red); }
.track.wide { display: block; height: 9px; background: #eeefe8; border-radius: 6px; overflow: hidden; }
.track.wide i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--green), #2aa25a); }
.track.wide i.neg { background: var(--red); }
.quickadd { margin: -6px 0 12px; display: flex; }
.quickadd span { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; width: 100%; }
.quickadd .input { max-width: 340px; }

/* ---------- a tighter menu so every page is visible without scrolling */
.brand { padding: 2px 10px 12px; }
.brand img { width: 78px; }
.navgroup { padding: 11px 12px 4px; }
.navitem { padding: 6px 12px; font-size: 13.5px; }
.side { padding: 16px 14px; }

@media (max-width: 1100px) { .charts .card.span2 { grid-column: auto; } .gsearch { display: none; } }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .loginart { padding: 34px 24px; }
  .loginart h1 { font-size: 24px; }
  .loginart ul { display: none; }
  .loginbox { padding: 26px 20px 50px; }
  .topacts .export { display: none; }
  .hero { padding: 18px; }
  .cols { height: 170px; gap: 4px; }
  .colm small { display: none; }
  .navitem { padding: 11px 12px; font-size: 14px; }
  .drop.right.wide { right: -60px; }
}
@media print { .login, .hero .headbtns { display: none !important; } .hero { background: none; color: var(--ink); padding: 0; } .hero h1 { color: var(--ink); } .pair i, .track i, .hbar .track i { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.impbox { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.impcounts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; }
.impcounts b { font-family: var(--head); font-size: 16px; }

/* ---------- round 10 polish */
.crumb { flex: 0 0 auto; }
.crumb b { white-space: nowrap; }
.crumb span { display: none; }
.gsearch { flex: 1 1 260px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.charts { align-items: start; }
.hbar { grid-template-columns: 150px minmax(0, 1fr) auto; }
.colm b { margin-top: 4px; }
.subhead { margin: 4px 0 10px; }
input[type=checkbox], input[type=radio] { accent-color: var(--olive-dk); }
input[type=file] { font: inherit; font-size: 13px; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; margin-right: 10px; padding: 7px 13px; border-radius: 9px; border: 1px solid #dcdfd5; background: #fff; color: var(--ink); cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--olive-2); }
:root { --amber: #8a5200; --green: #136c33; }
.sthead + .scrollx .t td:first-child, .t td:first-child { white-space: nowrap; }
.card.flush .t td:first-child { white-space: normal; }
.side { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
@media (max-width: 1250px) { .crumb { display: none; } }
@media (max-width: 1100px) { .gsearch { display: block; } }
@media (max-width: 900px) {
  .crumb { display: flex; flex: 1; }
  .gsearch { order: 9; flex: 1 1 100%; max-width: none; }
  .drop.right.wide, .gsearch .drop.wide { position: fixed; left: 10px; right: 10px; top: 112px; width: auto; max-width: none; min-width: 0; }
  .hbar { grid-template-columns: 96px minmax(0, 1fr) auto; }
}
/* ---------- follow-ups, contacts and the payment split */
.grouphead { display: flex; justify-content: space-between; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--line); background: #fafaf6; font-family: var(--head); border-radius: 14px 14px 0 0; }
.grouphead span { background: #e9eae3; border-radius: 10px; padding: 1px 9px; font-size: 12px; font-weight: 700; }
.grouphead.late b { color: var(--red); }
.grouphead.late span { background: var(--red-w); color: var(--red); }
.namelink.plain { font-weight: 600; text-decoration: none; }
.namelink.plain:hover { text-decoration: underline; }
.event .btn.s { margin-left: auto; }
.event .links { margin-left: auto; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; }
.recgrid { margin-bottom: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.tranche .eq { color: var(--muted); }
.input.amt { width: 128px; }
.splitbtns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.splitbox { display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; background: #f7f8f1; border: 1px dashed #c3c5a4; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.splitbox > span { display: inline-flex; align-items: center; gap: 6px; }
/* ---------- round 11: one-row top bar at every laptop width */
.crumb { display: none; }
.gsearch { flex: 1 1 160px; }
.who .input.sm { max-width: 190px; }
.colm small { display: block; font-size: 10.5px; }
.tasks td:nth-child(4), .tasks td:nth-child(5) { white-space: nowrap; }
@media (max-width: 1100px) { .who .input.sm { max-width: 150px; } .topacts .export { display: none; } }
@media (max-width: 900px) { .crumb { display: flex; flex: 1; } .who .input.sm { max-width: none; } .colm small { display: none; } }
/* ---------- remaining QA items */
.hbar .lbl { white-space: normal; line-height: 1.25; }
.modal .stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.sideuser { display: none; }
@media (max-width: 900px) {
  .who { display: none; }
  .sideuser { display: flex; flex-direction: column; gap: 8px; padding: 14px 8px 4px; margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .sideuser .input.sm { width: 100%; background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .18); }
  .sideuser .input.sm option { color: #1a1c15; }
  .sideuser .btn.s { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; text-align: left; }
  .gsearch { order: 9; }
  .modal .stats { grid-template-columns: 1fr 1fr; }
}
@media print { .head p { display: none; } }
/* ---------- next level: insights, calendar, journey, credit, bilingual documents */
.insights { background: linear-gradient(135deg, #fff 60%, #f6f6ea); }
.insgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; margin-top: 8px; }
.insight { text-align: left; font: inherit; font-size: 13.5px; line-height: 1.45; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--olive-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.insight:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(22, 24, 15, .4); }
.insight.red { border-left-color: var(--red); }
.insight.amber { border-left-color: #d08a17; }
.insight.olive { border-left-color: var(--olive-2); }

.calwrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.calhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.calhead b { font: 700 17px var(--head); }
.calhead .legend span { font-size: 12px; color: var(--muted); }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calgrid.names span { padding: 8px 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: #fafaf6; border-bottom: 1px solid var(--line); }
.calcell { min-height: 104px; display: flex; flex-direction: column; gap: 3px; align-items: stretch; text-align: left; font: inherit; background: #fff; border: 0; border-right: 1px solid #f0f1ec; border-bottom: 1px solid #f0f1ec; padding: 7px 7px 8px; cursor: pointer; color: var(--ink); min-width: 0; }
.calcell:nth-child(7n) { border-right: 0; }
.calcell:hover { background: #fbfbf7; }
.calcell.dim { background: #fafaf8; color: #b3b6a9; }
.calcell.sel { box-shadow: inset 0 0 0 2px var(--olive); }
.calcell .num { font: 700 13px var(--head); align-self: flex-start; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.calcell.now .num { background: var(--night); color: var(--gold); }
.calev { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #eef0e2; color: var(--olive-dk); }
.calev.green { background: var(--green-w); color: var(--green); }
.calev.amber { background: var(--amber-w); color: var(--amber); }
.calev.red { background: var(--red-w); color: var(--red); }
.calev.grey { background: #eff0ea; color: #5a5f52; }
.calcell .more { font-size: 10.5px; color: var(--muted); }
.calday { position: sticky; top: 80px; }
.calday .btn { margin-top: 12px; }

.journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 2px 0 20px; }
.jstep { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding-top: 30px; font-size: 12px; min-width: 0; }
.jstep::before { content: ''; position: absolute; top: 10px; left: -50%; right: 50%; height: 3px; background: #e3e5db; }
.jstep:first-child::before { display: none; }
.jstep i { position: absolute; top: 0; width: 23px; height: 23px; border-radius: 50%; background: #fff; border: 3px solid #d7d9cf; z-index: 1; }
.jstep.done i { background: var(--green); border-color: var(--green); }
.jstep.done i::after { content: ''; position: absolute; left: 5px; top: 5px; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.jstep.part i { border-color: #d08a17; background: var(--amber-w); }
.jstep.done::before, .jstep.part::before { background: var(--green); }
.jstep b { font-family: var(--head); font-size: 13px; }
.jstep small { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.clientfacts { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.clientfacts b { color: var(--ink); margin-left: 4px; }
.clientfacts .btn { margin-left: auto; }
.creditnote { margin: -4px 0 12px; font-size: 13px; }
.holdcheck { align-self: center; margin-top: 8px; }
.settings h3, .card > h3 + label { margin-top: 2px; }

.paper { font-family: Inter, 'Noto Sans Arabic', system-ui, sans-serif; }
.dtitle.ar { margin: -16px 0 22px; font-family: 'Noto Sans Arabic', sans-serif; letter-spacing: 0; font-size: 18px; text-align: center; color: var(--olive-dk); direction: rtl; }
.dt th, .dmeta small, .dsec h4 { font-family: Inter, 'Noto Sans Arabic', sans-serif; }

@media (max-width: 1100px) { .calwrap { grid-template-columns: 1fr; } .calday { position: static; } }
@media (max-width: 900px) {
  .calcell { min-height: 62px; padding: 4px; }
  .calev { font-size: 0; padding: 0; width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
  .calcell { flex-direction: row; flex-wrap: wrap; align-content: flex-start; }
  .calcell .num { width: 100%; height: auto; justify-content: flex-start; background: none !important; color: inherit !important; }
  .calcell.now .num { font-weight: 800; text-decoration: underline; }
  .calcell .more { display: none; }
  .calhead .legend { display: none; }
  .journey { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .jstep small { display: none; }
  .clientfacts .btn { margin-left: 0; }
}
@media print { .jstep i, .calev, .insight { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* each bilingual label keeps to itself, so numbers beside it are not pulled into the Arabic */
.dmeta small, .dt th, .dtot span > span, .dsec h4, .sign div, .dco span { unicode-bidi: isolate; }
.dmeta b, .dmeta span { unicode-bidi: isolate; }

/* ---------- side tools, margin, approval */
.sidetools { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 8px 0; margin-top: auto; }
.sidetools + .sidefoot, .sideuser + .sidetools + .sidefoot { margin-top: 0; }
.sidetools .btn.s, .logintools .btn.s { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .85); font-family: Inter, 'Noto Sans Arabic', sans-serif; }
.sidetools .btn.s:hover { background: rgba(255, 255, 255, .15); }
.logintools { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 8px; }
.logintools .btn.s { background: #fff; border-color: var(--line); color: var(--ink); }
.lmargin { font-size: 12px; font-weight: 600; color: var(--green); white-space: nowrap; }
.lmargin.short { color: var(--red); }
.marginbox { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; background: var(--green-w); border: 1px solid #bfe0cb; border-radius: 12px; padding: 11px 14px; margin: 4px 0 6px; font-size: 13px; }
.marginbox.warn { background: var(--amber-w); border-color: #ecd49a; }
.marginbox b { margin-left: 4px; }
.marginbox .need { flex-basis: 100%; font-weight: 600; color: var(--amber); }
.prefbtns { margin-bottom: 10px; }

/* ---------- dark appearance */
html[data-theme=dark] {
  --ink: #ecede4; --muted: #a2a696; --line: #33372a; --bg: #12140e; --card: #1b1e15; --wash: #262a1d;
  --olive: #a5a472; --olive-2: #8d8c5e; --olive-dk: #c9c794; --night: #0c0d08; --night-2: #15170f;
  --green: #5fcf8a; --green-w: #15301f; --red: #ff8376; --red-w: #3a1a17; --amber: #f0b54f; --amber-w: #3a2c10; --blue: #8fb1ff; --blue-w: #18243f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 26px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
html[data-theme=dark] body { background: var(--bg); color: var(--ink); }
html[data-theme=dark] .top { background: rgba(21, 23, 15, .92); border-bottom-color: var(--line); }
html[data-theme=dark] .card, html[data-theme=dark] .stat, html[data-theme=dark] .clockcard, html[data-theme=dark] .modal, html[data-theme=dark] .mhead, html[data-theme=dark] .mfoot,
html[data-theme=dark] .drop, html[data-theme=dark] .line, html[data-theme=dark] .termpick, html[data-theme=dark] .licres, html[data-theme=dark] .details, html[data-theme=dark] .impbox,
html[data-theme=dark] .insight, html[data-theme=dark] .lead, html[data-theme=dark] .userbtn, html[data-theme=dark] .chip, html[data-theme=dark] .calcell { background: var(--card); color: var(--ink); border-color: var(--line); }
html[data-theme=dark] .mbody, html[data-theme=dark] .calcell.dim { background: #171a12; }
html[data-theme=dark] .calcell.dim { color: #686c5d; }
html[data-theme=dark] .insights { background: var(--card); }
html[data-theme=dark] .input, html[data-theme=dark] .readonly, html[data-theme=dark] .gsearch .input.search { background-color: #12140e; color: var(--ink); border-color: #3a3f2f; }
html[data-theme=dark] .input:disabled { background: #1f2218; color: var(--muted); }
html[data-theme=dark] .input:hover { border-color: #55593f; }
html[data-theme=dark] .btn { background: #23261a; color: var(--ink); border-color: #3a3f2f; }
html[data-theme=dark] .btn:hover { border-color: var(--olive); }
html[data-theme=dark] .btn.p { background: var(--olive); border-color: var(--olive); color: #12140e; }
html[data-theme=dark] .btn.p:hover { background: #c2c08a; border-color: #c2c08a; }
html[data-theme=dark] .btn.ok { background: #16261c; border-color: #2b5a3d; }
html[data-theme=dark] .btn.bad { background: #2a1714; border-color: #5c2a24; }
html[data-theme=dark] .t th, html[data-theme=dark] .grouphead, html[data-theme=dark] .totalrow td, html[data-theme=dark] .calgrid.names span { background: #20231a; color: var(--muted); border-color: var(--line); }
html[data-theme=dark] .t td { border-bottom-color: #282b20; }
html[data-theme=dark] .t tbody tr:hover td, html[data-theme=dark] .calcell:hover, html[data-theme=dark] .attn:hover, html[data-theme=dark] .dropitem:hover { background: #22251b; }
html[data-theme=dark] .duerow td, html[data-theme=dark] .t tbody tr.duerow:hover td { background: var(--amber-w); }
html[data-theme=dark] .tabs { background: #23261a; }
html[data-theme=dark] .tabs button { color: var(--muted); }
html[data-theme=dark] .tabs button.on { background: #3a3f2c; color: #fff; }
html[data-theme=dark] .col, html[data-theme=dark] .upload, html[data-theme=dark] .splitbox, html[data-theme=dark] .sitebox { background: #1f2218; border-color: #3a3f2f; }
html[data-theme=dark] .bar, html[data-theme=dark] .hbar .track, html[data-theme=dark] .stack, html[data-theme=dark] .track.wide, html[data-theme=dark] .grouphead span { background: #2c3023; }
html[data-theme=dark] .hbar .track i.dark, html[data-theme=dark] .pair i.out { background: #c9c794; }
html[data-theme=dark] .b-grey, html[data-theme=dark] .calev.grey { background: #2c3023; color: #c3c6b6; }
html[data-theme=dark] .calev { background: #2c3023; color: #d6d4a2; }
html[data-theme=dark] .x:hover { background: #2c3023; color: #fff; }
html[data-theme=dark] .login { background: var(--bg); }
html[data-theme=dark] .logintools .btn.s { background: #23261a; border-color: #3a3f2f; color: var(--ink); }
html[data-theme=dark] .avatar { background: var(--olive); color: #12140e; }
html[data-theme=dark] .calcell.now .num { background: var(--olive); color: #12140e; }
html[data-theme=dark] .event, html[data-theme=dark] .attn { border-bottom-color: #282b20; color: var(--ink); }
html[data-theme=dark] .namelink { color: var(--ink); }
html[data-theme=dark] .jstep i { background: var(--card); border-color: #4a4f3b; }
html[data-theme=dark] .jstep::before { background: #3a3f2f; }
html[data-theme=dark] .thumb, html[data-theme=dark] .qrbox > div { background: #fff; }
html[data-theme=dark] input[type=file]::file-selector-button { background: #23261a; color: var(--ink); border-color: #3a3f2f; }
html[data-theme=dark] .toast { background: #33372a; }
html[data-theme=dark] .modal-bg.printable .paper { background: #fff; color: #1c1c1c; }
html[data-theme=dark] .marginbox { border-color: #2b5a3d; }
html[data-theme=dark] .marginbox.warn { border-color: #6b5220; }
html[data-theme=dark] label { color: #b4b8a6; }
@media print { html[data-theme=dark] body, html[data-theme=dark] .card, html[data-theme=dark] .stat { background: #fff !important; color: #1c1c1c !important; } html[data-theme=dark] .t th, html[data-theme=dark] .t td { color: #1c1c1c !important; background: #fff !important; } }

/* ---------- Arabic interface, right to left */
html[dir=rtl] body, html[dir=rtl] .btn, html[dir=rtl] .input, html[dir=rtl] h1, html[dir=rtl] h2, html[dir=rtl] h3, html[dir=rtl] .navgroup, html[dir=rtl] .stat b, html[dir=rtl] .crumb b { font-family: 'Noto Sans Arabic', Inter, system-ui, sans-serif; letter-spacing: 0; }
html[dir=rtl] .navgroup, html[dir=rtl] .t th, html[dir=rtl] .stat span, html[dir=rtl] .drophead, html[dir=rtl] .details small { letter-spacing: 0; font-size: 12px; }
html[dir=rtl] .t th, html[dir=rtl] .t td { text-align: right; }
html[dir=rtl] .r, html[dir=rtl] .t th.r, html[dir=rtl] .t td.r, html[dir=rtl] .acts { text-align: left; }
html[dir=rtl] .navitem.on::before { left: auto; right: -14px; border-radius: 3px 0 0 3px; }
html[dir=rtl] .stat { padding: 16px 20px 15px 18px; }
html[dir=rtl] .stat::before { left: auto; right: 0; }
html[dir=rtl] .insight, html[dir=rtl] .lead { border-left: 1px solid var(--line); border-right: 4px solid var(--olive-2); text-align: right; }
html[dir=rtl] .insight.red, html[dir=rtl] .lead.late { border-right-color: var(--red); }
html[dir=rtl] .insight.amber { border-right-color: #d08a17; }
html[dir=rtl] .drop { left: auto; right: 0; }
html[dir=rtl] .drop.right { right: auto; left: 0; }
html[dir=rtl] .dropitem, html[dir=rtl] .attn, html[dir=rtl] .userbtn, html[dir=rtl] .calcell, html[dir=rtl] .namelink { text-align: right; }
html[dir=rtl] .dropitem small { margin-left: 0; margin-right: auto; text-align: left; }
html[dir=rtl] .dropitem.alert, html[dir=rtl] .attn { padding-left: 4px; padding-right: 22px; }
html[dir=rtl] .dropitem.alert::before, html[dir=rtl] .attn::before { left: auto; right: 9px; }
html[dir=rtl] .input.search { background-position: right 12px center; padding-left: 11px; padding-right: 36px; }
html[dir=rtl] .badge::before, html[dir=rtl] .legend span::before { margin-right: 0; margin-left: 6px; }
html[dir=rtl] .event .btn.s, html[dir=rtl] .event b, html[dir=rtl] .event .links, html[dir=rtl] .clientfacts .btn { margin-left: 0; margin-right: auto; }
html[dir=rtl] .clientfacts b, html[dir=rtl] .marginbox b { margin-left: 0; margin-right: 4px; }
html[dir=rtl] .bell .count { right: auto; left: -6px; }
html[dir=rtl] .jstep::before { left: 50%; right: -50%; }
html[dir=rtl] .loginart li { padding-left: 0; padding-right: 26px; }
html[dir=rtl] .loginart li::before { left: auto; right: 0; }
html[dir=rtl] .acts .btn { margin-left: 0; margin-right: 4px; }
html[dir=rtl] .calcell { border-right: 0; border-left: 1px solid #f0f1ec; }
html[dir=rtl] .calcell .num { align-self: flex-start; }
html[dir=rtl] .card.flush .t th:first-child, html[dir=rtl] .card.flush .t td:first-child { padding-left: 16px; padding-right: 20px; }
html[dir=rtl] .paper, html[dir=rtl] .docwrap { direction: ltr; text-align: left; }
html[dir=rtl] .docbar { direction: rtl; }
html[dir=rtl] input[type=number], html[dir=rtl] input[type=date], html[dir=rtl] input[type=time], html[dir=rtl] input[type=email] { direction: ltr; text-align: right; }
html[dir=rtl] .tranche, html[dir=rtl] .hbar .val, html[dir=rtl] .stat b, html[dir=rtl] .legend b { unicode-bidi: plaintext; }
@media (max-width: 900px) {
  html[dir=rtl] .side { left: auto; right: 0; transform: translateX(100%); }
  html[dir=rtl] .side.open { transform: none; }
}
/* English sentences inside the Arabic layout keep their own reading order, so full stops stay at the end */
html[dir=rtl] p, html[dir=rtl] td, html[dir=rtl] small, html[dir=rtl] .insight span, html[dir=rtl] .attn, html[dir=rtl] .dropitem, html[dir=rtl] .muted, html[dir=rtl] .hint, html[dir=rtl] .event span, html[dir=rtl] .toast, html[dir=rtl] .lead span, html[dir=rtl] .lead b, html[dir=rtl] h2, html[dir=rtl] label { unicode-bidi: plaintext; text-align: right; }
html[dir=rtl] td.r, html[dir=rtl] .acts { text-align: left; }

/* ---------- fixes after QA round 13 */
html[data-theme=dark] .hbar .lbl { color: #d3d5c6; }
html[data-theme=dark] .calev.green { background: var(--green-w); color: var(--green); }
html[data-theme=dark] .calev.amber { background: var(--amber-w); color: var(--amber); }
html[data-theme=dark] .calev.red { background: var(--red-w); color: var(--red); }
html[data-theme=dark] .calcell.dim { color: #9a9e8d; }
.calcell.dim { color: #73776a; }
.bell .count { background: #c0392b; }
.navgroup { color: rgba(255, 255, 255, .62); }
html[dir=rtl] .bd { unicode-bidi: plaintext; }
html[dir=rtl] .bd.bdr, html[dir=rtl] input[dir=auto], html[dir=rtl] textarea[dir=auto] { text-align: right; }
/* ---------- QA round 13, second pass */
.backnote { font-size: 12px; color: var(--red); margin: 3px 0 4px; white-space: normal; max-width: 320px; }
.insmore { margin-top: 10px; }
.card > p.muted, .card > .muted { color: #5c6154; }
html[data-theme=dark] .card > p.muted, html[data-theme=dark] .card > .muted { color: var(--muted); }
html[dir=rtl] .nw { white-space: nowrap; }
html[dir=rtl] .hbar .lbl { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
html[dir=rtl] .backnote { text-align: right; }

/* ---------- QA round 14 */
.calcell.dim { color: #6a6e61; }
.card p.muted { color: #5c6154; }
html[data-theme=dark] .card p.muted { color: var(--muted); }
html[data-theme=dark] .calcell.dim { color: #9a9e8d; }
html[dir=rtl] .t td.acts { white-space: normal; }

/* ---------- QA round 15 */
.colhead { color: #5c6154; }
html[data-theme=dark] .colhead { color: var(--muted); }

/* ---------- automation */
.autobar { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card, #fff); border: 1px solid var(--line); border-left: 4px solid var(--olive-2); border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; font: inherit; color: var(--ink); cursor: pointer; }
.autobar:hover { border-color: var(--olive-2); }
.autobar .ico { width: 20px; height: 20px; flex: none; stroke: var(--olive-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.autobar span { flex: 1; }
.autobar b { white-space: nowrap; color: var(--olive-dk); }
.autorule { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 10px; margin-bottom: 10px; }
.autorule.on { border-color: var(--olive-2); }
.autorule p { margin: 4px 0 0 26px; font-size: 13px; }
.autoacts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 2px 26px; }
.autolist { margin: 8px 0 4px 26px; padding-left: 18px; font-size: 13px; line-height: 1.55; }
.autolist.plainlist { margin-left: 0; }
.brief { white-space: pre-wrap; font: 13px/1.6 Inter, system-ui, sans-serif; background: var(--wash, #f6f6f1); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 10px 0 12px; direction: ltr; text-align: left; }
html[data-theme=dark] .autobar { background: var(--card); }
html[dir=rtl] .autobar { text-align: right; border-left: 1px solid var(--line); border-right: 4px solid var(--olive-2); }
html[dir=rtl] .autorule p, html[dir=rtl] .autoacts { margin-left: 0; margin-right: 26px; }
html[dir=rtl] .autolist { margin-left: 0; margin-right: 26px; padding-left: 0; padding-right: 18px; }
@media print { .autobar { display: none; } }

/* ---------- next stage */
.pricehint { display: block; flex-basis: 100%; font-size: 12px; color: var(--muted); margin-top: 4px; }
.pricehint.warn { color: var(--amber); font-weight: 600; }
.signpad { width: 100%; height: 200px; border: 1px dashed var(--line); border-radius: 12px; background: #fff; touch-action: none; display: block; }
.signed { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 4px; font-size: 11px; color: #555; }
.signed img { height: 56px; max-width: 220px; object-fit: contain; }
.donerow td { opacity: .55; }
.warntext { display: block; color: var(--amber); font-size: 12px; }
.countcam { width: 100%; max-height: 260px; border-radius: 12px; background: #000; margin: 8px 0; }
.modal.narrow { max-width: 560px; }
.modal.wide { max-width: 1080px; }

/* ---------- wide screens */
.content { max-width: none; }
@media (min-width: 1700px) { .content { padding-left: 36px; padding-right: 36px; } }

/* ---------- dashboard grid: whole rows on every screen width */
.charts { grid-auto-flow: row dense; }
@media (min-width: 1100px) { .content > section > .stats, .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .charts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .charts .dq { grid-column: span 3; } }
@media (min-width: 1500px) { .charts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .charts .dact, .charts .dq { grid-column: span 2; } }
@media (min-width: 2300px) { .stats { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.modal .stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.charts > * { min-width: 0; }
.charts .dq .t { display: block; overflow-x: auto; }
@media (max-width: 700px) { .charts { grid-template-columns: minmax(0, 1fr); } }
