/* ============================================================================================================================
   Divine Air ERP - modern design system (owner 1 Dec 2026: "very unprofessional looks ... not like a modern, well designed
   CRM / ERP - whole software"). Loaded LAST, over app.css + theme_pro.css + the plug-in styles; every rule starts with "body"
   so it also wins over the styles the plug-ins add at run time.
   Direction: calm and dense like the best business software - light sidebar, white surfaces with thin borders (no glows, no heavy
   shadows), one brand blue used sparingly, quiet single-colour icons, 14 px text, one size for buttons / inputs / chips, clear
   tables with striped rows and an outline (owner's rule).
   ============================================================================================================================ */
:root {
  --brand: #2557d6; --brand-ink: #ffffff; --brand-soft: #edf2fd; --brand-line: #c9d7f7;
  --bg: #f5f6f8; --panel: #ffffff; --ink: #101828; --ink-2: #344054; --muted: #667085; --faint: #98a2b3;
  --line: #e4e7ec; --line-strong: #d0d5dd; --hover: #f2f4f7; --sel: #e8effd;
  --ok: #067647; --ok-soft: #ecfdf3; --warn: #b54708; --warn-soft: #fffaeb; --bad: #b42318; --bad-soft: #fef3f2;
  --radius: 10px; --shadow: 0 1px 2px rgba(16, 24, 40, .05); --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, .18);
  --row-alt: #f3f7fd; --tline: #d0d5dd; --tline-soft: #eaecf0; --thead-bg: #f9fafb;
}
body { background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body h1, body h2, body h3, body h4 { color: var(--ink); letter-spacing: -.01em; }

/* ---------------------------------------------------------------- sidebar: light, compact */
body .side { background: #fff; box-shadow: none; border-right: 1px solid var(--line); width: auto; }
body .side-h { padding: 16px 16px 10px; }
body .side .logo { color: var(--ink); font-size: 17px; font-weight: 750; letter-spacing: -.2px; }
body .side .logo small { color: var(--brand); font-size: 10.5px; letter-spacing: .12em; font-weight: 700; }
body .side .iconbtn { background: transparent; box-shadow: none; color: var(--muted); }
body .side .nfind { margin: 4px 12px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
body .side .nfind input { background: transparent; color: var(--ink); font-size: 13.5px; }
body .side .nlink, body .side .nhead, body .side .nscreens > summary { color: var(--ink-2); font-size: 13.5px; font-weight: 500; min-height: 34px; padding: 6px 10px; border-radius: 7px; margin: 1px 8px; }
body .side .nlink:hover, body .side .nhead:hover { background: var(--hover); color: var(--ink); }
body .side .nlink.on, body .side .nlink[aria-current], body .side .nlink.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
body .side .nhead { text-transform: none; letter-spacing: 0; font-weight: 600; }
body .side .nbub, body .side .gicon { background: transparent !important; box-shadow: none !important; color: var(--faint); width: 20px; height: 20px; }
body .side .gicon .ico, body .side .nbub { color: var(--muted); }
body .side .nlink.on .nbub { color: var(--brand); }
body .side .nsec, body .side .nlabel, body .side .pins-h { color: var(--faint); font-size: 11px; letter-spacing: .08em; }
body .side .foot, body .side .ucard { border-top: 1px solid var(--line); background: #fff; color: var(--ink); }
body .side .ucard .btn { background: #fff; border: 1px solid var(--line-strong); color: var(--ink-2); box-shadow: none; }
body .side .nstar { color: var(--faint); }

/* ---------------------------------------------------------------- top bar */
body .top { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); box-shadow: none; backdrop-filter: saturate(1.2) blur(6px); }
body .top .row { min-height: 56px; gap: 8px; }
body .top h2 { font-size: 17px; font-weight: 650; letter-spacing: -.2px; }
body .top .iconbtn { width: 36px; height: 36px; background: transparent; box-shadow: none; border: 1px solid transparent; border-radius: 8px; color: var(--ink-2); }
body .top .iconbtn:hover { background: var(--hover); border-color: var(--line); }
body .tsearch, body .top input[type=search], body .top .da-slot input { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; box-shadow: none; min-height: 36px; font-size: 13.5px; }
body .tsearch:focus-within { background: #fff; border-color: var(--brand-line); box-shadow: 0 0 0 3px rgba(37, 87, 214, .12); }
body .avatar { background: var(--brand); color: #fff; width: 32px; height: 32px; font-size: 12.5px; }
body .menubar { border-top: 1px solid var(--line); }
body .menubar .dd > button { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }

/* ---------------------------------------------------------------- buttons, inputs, chips: one size family */
body .btn { min-height: 34px; padding: 6px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; background: #fff; color: var(--ink-2);
  border: 1px solid var(--line-strong); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: background .12s, border-color .12s, color .12s; }
body .btn:hover { background: var(--hover); color: var(--ink); }
body .btn.primary, body button.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }
body .btn.primary:hover { background: #1d48b8; border-color: #1d48b8; }
body .btn.danger, body .btn.bad { color: var(--bad); border-color: #fecdca; }
body .btn:disabled, body .btn[disabled] { opacity: .5; box-shadow: none; }
body .wsc-btn { box-shadow: none !important; }
body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), body select, body textarea {
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
body input:focus, body select:focus, body textarea:focus { outline: none; border-color: #84a6ef; box-shadow: 0 0 0 3px rgba(37, 87, 214, .13); }
body .chip, body .wp5-tab, body .money-chip { border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; font-size: 13px; font-weight: 500; padding: 5px 12px; min-height: 30px; box-shadow: none; }
body .wp5-tab b { color: var(--faint); font-weight: 600; }
body .wp5-tab.on, body .money-chip.on { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); font-weight: 600; }
body .wp5-tab.on b { color: var(--brand); }
body .schip { border-radius: 999px; font-size: 12px; font-weight: 600; padding: 2px 9px; }

/* ---------------------------------------------------------------- cards and page surfaces */
body .card, body .gridwrap, body .tcard, body .money-card, body .led-card, body .hlp-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
body .content { padding-top: 20px; }
body .card h3, body .need-h h2, body .dsec-h, body .sec-grp-h b { font-size: 14.5px; font-weight: 650; }
body .dsec-h, body .need-h small, body .sec-grp-h small { color: var(--muted); }
body .empty, body .allclear, body .quiet { color: var(--muted); }

/* ---------------------------------------------------------------- Home */
body .hero h1, body [class*=hero] h1 { font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
body .hkpi { background: #fff; border: 1px solid var(--line); border-left: 1px solid var(--line) !important; border-radius: 12px; box-shadow: var(--shadow); }
body .hkpi::before, body .hkpi::after { display: none !important; }
body .hkpi-l { color: var(--muted); font-size: 12.5px; font-weight: 500; }
body .hkpi-i { color: var(--faint) !important; background: transparent !important; }
body .hkpi-v { font-size: 22px; font-weight: 700; letter-spacing: -.4px; color: var(--ink); }
body .hkpi small { color: var(--muted); }
body .ltile { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
body .ltile:hover { border-color: var(--brand-line); background: #fbfcff; box-shadow: var(--shadow); }
body .licon { background: var(--brand-soft) !important; color: var(--brand) !important; box-shadow: none !important; border-radius: 10px; }
body .licon .ico, body .licon svg { color: var(--brand) !important; stroke: var(--brand); }
body .llabel { color: var(--ink-2); font-weight: 600; font-size: 13px; }
body .lbadge { background: var(--bad); box-shadow: 0 0 0 2px #fff; font-size: 11px; }
body .nrow { border: 1px solid var(--line); background: #fff; border-radius: 10px; box-shadow: none; }
body .nrow:hover { background: var(--hover); }
body .nrow .nbub { background: var(--brand-soft) !important; color: var(--brand) !important; box-shadow: none !important; }
body .nrow.warn .nbub { background: var(--warn-soft) !important; color: var(--warn) !important; }
body .ncount-big { background: var(--bg); color: var(--ink-2); font-weight: 700; }
body .nrow.warn .ncount-big { background: var(--bad-soft); color: var(--bad); }

/* ---------------------------------------------------------------- lists */
body .list-tools .btn, body .list-tools select { min-height: 34px; }
body .list-tools .search { border-radius: 8px; }
body .count { color: var(--muted); font-size: 13px; }
body .pager .btn, body .pager select { min-height: 32px; }

/* ---------------------------------------------------------------- tables (striped rows + outline: owner's rule) */
body .grid th, body .dtable thead th, body .money-tbl th, body .led-tbl th { background: var(--thead-bg); color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1.5px solid var(--tline); }
body .grid td, body .dtable td, body .money-tbl td, body .led-tbl td { color: var(--ink); }
body .gridwrap, body .tscroll, body .money-tbl, body .led-tbl { border: 1px solid var(--tline); border-radius: 12px; }

/* ---------------------------------------------------------------- record page (one surface per block, fact sheet details) */
body .wsr .card, body .wsr-steps, body .wsr-tabs { border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; }
body .wsr-head { background: #fff; }
body .wsr-fact { background: var(--bg); border: 1px solid var(--line); }
body .wsr-node { background: #fff; border: 1px solid var(--line); box-shadow: none; }
body .wsr-node.self { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }
body .wsr-tab.on { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------------------------------------------------------------- forms (drawers, sheets) */
body .overlay { background: rgba(16, 24, 40, .35); backdrop-filter: blur(1px); }
body .drawer { background: var(--bg); box-shadow: var(--shadow-lg); }
body .drawer header { background: #fff; border-bottom: 1px solid var(--line); }
body .drawer header h3 { font-size: 17px; font-weight: 650; }
body .drawer footer { background: #fff; border-top: 1px solid var(--line); }
body .drawer .body > .fgrid, body .fsec { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
body .field > label { color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
body .field .ro { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }

/* ---------------------------------------------------------------- menus, toasts */
body .dd .menu { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); }
body #toast { border-radius: 10px; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 700px) {
  body .content { padding-top: 12px; }
  body .top .row { min-height: 52px; }
  body .side { width: min(300px, 86vw); }
}

/* ---------------------------------------------------------------- fixes after the first look */
body .side .logo, body .side .logo:visited { color: var(--ink) !important; }
body .side .ucard b, body .side .ucard-t b { color: var(--ink) !important; }
body .side .ucard small, body .side .ucard-t small { color: var(--muted) !important; }
body .side .nbub svg, body .side .gicon svg, body .side .ico svg { width: 18px !important; height: 18px !important; }
body .side .nbub, body .side .gicon { display: inline-flex; align-items: center; justify-content: center; }
body .side .nfind { background: var(--bg) !important; }
body .side .nfind input, body .tsearch input, body .search input[type=search], body .qcol + input { border: 0 !important; box-shadow: none !important; background: transparent !important; }
body .side .nfind input::placeholder { color: var(--faint); }
body .side .scrollbar, body .side * { scrollbar-color: #d0d5dd transparent; }
body .btn.primary, body .btn.primary:hover { background-image: none !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .12) !important; }
body [class*=hero] .btn:not(.primary) { box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
body .list-tools .search { border: 1px solid var(--line-strong); background: #fff; overflow: hidden; }
body .list-tools .search select.qcol { border: 0 !important; border-right: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; }

/* ---------------------------------------------------------------- sidebar: undo the old dark-sidebar colours (theme_pro .side block) */
body .side {
  --panel: #ffffff; --bg: #f5f6f8; --ink: #101828; --muted: #667085; --line: #e4e7ec; --line-strong: #d0d5dd;
  --hover: #f2f4f7; --btn2: #f2f4f7; --btn2-hover: #eaecf0; --brand-soft: #edf2fd; --brand: #2557d6;
  background: #fff; color: var(--ink); border-right: 1px solid var(--line);
}
body .side .logo, body .side .logo::first-line { color: #101828 !important; }
body .side .logo small { color: #2557d6 !important; }
body .side .nlink, body .side .nscreens > summary, body .side .nlink.sm { color: #344054; }
body .side .nlink:hover, body .side .nscreens > summary:hover, body .side .nhead:hover, body .side .nhead:hover .nl { color: #101828; background: #f2f4f7; }
body .side .nlink.on { background: #edf2fd; color: #2557d6; box-shadow: none; font-weight: 600; }
body .side .nlink.on .nbub, body .side .nlink.on .nl { color: #2557d6 !important; background: transparent !important; }
body .side .nlink.sm.on::before { background: #2557d6; }
body .side .nhead, body .side .nhead .nl { color: #475467; }
body .side .nbub, body .side .gicon, body .side .npins .nbub, body .side .nrecent .nbub, body .side .nhead .nbub, body .side .nhead .licon, body .side .licon.sm, body .side .ngrp:not(.home) .nbub {
  background: transparent !important; color: #667085 !important; box-shadow: none !important; width: 24px !important; height: 24px !important; padding: 2px !important; border-radius: 6px; }
body .side .nbub svg, body .side .gicon svg, body .side .licon svg { width: 18px !important; height: 18px !important; flex: none; }
body .side .nlink:hover .nbub { color: #101828 !important; }
body .side .nfind { background: #f5f6f8 !important; box-shadow: inset 0 0 0 1px #e4e7ec; border: 0; }
body .side .nfind input { color: #101828 !important; }
body .side .nfind input::placeholder { color: #98a2b3; }
body .side .ncount { background: #f2f4f7; color: #475467; }
body .side .nstar { color: #d0d5dd; }
body .side .nstar:hover { background: #f2f4f7; }
body .side .foot.ucard { border-top: 1px solid #e4e7ec; background: #fff; }
body .side .ucard-btns .btn { background: #fff; color: #344054; box-shadow: none; border: 1px solid #d0d5dd; }
body .side .ucard-btns .btn:hover { background: #f2f4f7; color: #101828; }
body .side .avatar { background: #2557d6; }
body .side .iconbtn, body .side .mini-toggle { color: #667085; }
body .side .iconbtn:hover { background: #f2f4f7 !important; color: #101828; }
body .side nav { scrollbar-color: #d0d5dd transparent; }
body .side .ngrp.home { border-bottom-color: #eaecf0; }
/* Home quick-create buttons: plain, the first one in brand blue without a glow */
body .tile-btn { background: #fff; border: 1px solid #d0d5dd; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); border-radius: 8px; padding: 6px 12px; font-size: 13.5px; color: #344054; }
body .tile-btn:hover { background: #f2f4f7; }
body .hero-new .tile-btn:first-child { background: #2557d6; border-color: #2557d6; color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
body .hero-new .tile-btn:first-child:hover { background: #1d48b8; }
/* record pages: read-only values are plain text, not boxes */
body .wsr-pane .field .ro, body .wsr-empty .field .ro { border: 0 !important; background: none !important; min-height: 0 !important; padding: 0 !important; font-size: 14.5px; font-weight: 500; color: #101828 !important; }
body .wsr-pane .field { border-bottom: 1px solid #f2f4f7; }
body .wsr-pane .field label, body .wsr-pane .field > .lbl { color: #667085; font-size: 12.5px; font-weight: 500; }
@media (max-width: 760px) {
  body .wsr-facts { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  body .wsr-fact { width: auto !important; min-width: 0; padding: 10px 12px !important; }
  body .wsr-fact .wsr-fv, body .wsr-fact b { font-size: 15px; overflow-wrap: anywhere; }
}
/* home number boxes all start on the left; page title never breaks inside a word */
body .hero-kpis .hkpi { align-items: flex-start !important; text-align: left !important; }
body .top h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* sidebar sub-links: dot sits in its own space, never over the text */
body .side .nlink.sm { padding-left: 36px !important; }
body .side .nlink.sm::before { left: 20px !important; background: #d0d5dd; }
/* supplier ledger header: name is the page title, not a section label */
body .led-head h3 { text-transform: none !important; letter-spacing: -0.01em !important; font-size: 22px !important; font-weight: 700 !important; color: #101828 !important; margin: 6px 0 4px !important; line-height: 1.25; }
body .led-head .led-sub:first-child { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #2557d6; background: #edf2fd; padding: 3px 8px; border-radius: 999px; }
body .led-head .led-sub { color: #475467; font-size: 13.5px; }
body .led-head a { font-size: 13.5px; font-weight: 500; color: #2557d6; text-decoration: none; }
body .led-head a:hover { text-decoration: underline; }
body .led-form label { color: #344054; font-size: 13px; font-weight: 500; }
/* card titles everywhere: dark, normal case, semi-bold (was small grey CAPITALS) */
body .card h3, body .content .own-wrap h3, body .content .service-wrap h3, body .wsr-ph, body .wsr-pane h3, body .wsr-rail h3 {
  text-transform: none !important; letter-spacing: -0.005em !important; color: #101828 !important; font-size: 15.5px !important; font-weight: 650 !important; }

/* ================================================================ 1 Dec 2026 owner: "a little colourful and presentable" + "minimum empty white space" */
/* colour per tint (soft background + strong colour), used by number boxes, section tiles, sidebar icons */
[data-tint="blue"]   { --tc: #2563eb; --tb: #eaf1ff; }
[data-tint="green"]  { --tc: #16a34a; --tb: #e8f7ee; }
[data-tint="orange"] { --tc: #ea580c; --tb: #fff1e8; }
[data-tint="indigo"] { --tc: #4f46e5; --tb: #eef0ff; }
[data-tint="purple"] { --tc: #9333ea; --tb: #f5ecff; }
[data-tint="red"]    { --tc: #dc2626; --tb: #fdecec; }
[data-tint="teal"]   { --tc: #0d9488; --tb: #e6f6f4; }
[data-tint="cyan"]   { --tc: #0891b2; --tb: #e5f6fa; }
[data-tint="grey"]   { --tc: #475467; --tb: #f2f4f7; }
[data-tint="slate"]  { --tc: #334155; --tb: #eef1f5; }
[data-tint="brown"]  { --tc: #a16207; --tb: #fbf3e2; }
[data-tint="pink"]   { --tc: #db2777; --tb: #fdecf4; }
/* home number boxes: coloured icon chip + thin coloured top line */
body .hkpi[data-tint] { border-top: 3px solid var(--tc) !important; }
body .hkpi[data-tint] .hkpi-i { background: var(--tb) !important; color: var(--tc) !important; width: 26px; height: 26px; border-radius: 7px; display: inline-grid; place-items: center; padding: 5px; margin-right: 6px; }
body .hkpi[data-tint] .hkpi-i svg { width: 16px; height: 16px; }
body .hkpi .hkpi-v { color: #101828; }
/* section tiles: icon in its own colour */
body .ltile[data-tint] .licon { background: var(--tb) !important; color: var(--tc) !important; }
body .ltile[data-tint]:hover { border-color: var(--tc) !important; box-shadow: 0 4px 12px rgba(16, 24, 40, .08); }
/* "Needs action" rows: coloured icon chips by meaning */
body .nrow .nbub { border-radius: 8px; }
body .nrow.warn .nbub { background: #fff1e8 !important; color: #ea580c !important; }
body .nrow.bad .nbub, body .nrow.danger .nbub { background: #fdecec !important; color: #dc2626 !important; }
body .nrow.good .nbub, body .nrow.ok .nbub { background: #e8f7ee !important; color: #16a34a !important; }
/* card titles: small brand bar on the left */
body .card > h3:first-child, body .card > summary .tt, body .wsr-pane h3 { position: relative; padding-left: 11px !important; }
body .card > h3:first-child::before, body .card > summary .tt::before, body .wsr-pane h3::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 3px; background: #2557d6; }
/* table headers: soft blue band instead of grey */
body .grid th, body .dtable thead th, body .money-tbl th, body .led-tbl th { background: #eef3fc !important; color: #344054 !important; }
/* status words in tables and on records as coloured pills */
body .wsr-status, body .chip.ok, body .pill-ok { background: #e8f7ee; color: #15803d; }
/* money tables: long names wrap so the table fits its card */
body .money-tbl td, body .money-tbl th { white-space: normal !important; }
body .money-tbl td.n, body .money-tbl th.n, body .money-tbl td.num { white-space: nowrap !important; }
body .money-tbl td:last-child { min-width: 0; }
body .money-tbl td:last-child .btn { margin: 2px; }
body .money-tbl td:last-child > * { white-space: normal; }

/* less empty space: tighter page edges, card padding and gaps */
body .content { padding: 14px 20px 40px !important; }
body .card { padding: 12px 14px 14px !important; }
body .hero, body .dgrid, body .dsec { gap: 10px !important; }
body .hero-kpis { gap: 10px !important; }
body .hkpi { padding: 10px 12px !important; }
body .card + .card, body .dsec + .dsec { margin-top: 10px; }
body .ltile { padding: 10px 4px 8px !important; }
body .wsr-pane .field { padding: 7px 0 8px !important; }
body .wsr-head, body .wsr-hero { padding: 14px 18px !important; }
@media (max-width: 760px) {
  body .content { padding: 10px 10px 90px !important; }
  body .card { padding: 10px 12px 12px !important; }
  /* button rows wrap on phones instead of running off the screen */
  body .compose-btns, body .hero-new { flex-wrap: wrap !important; overflow: visible !important; gap: 6px !important; }
  body .own-tabs { flex-wrap: wrap !important; overflow: visible !important; }
}
/* owner 1 Dec 2026: "all tables and rows ... less white space, minimum" - compact rows everywhere */
body .grid td, body .dtable td, body .dtable tbody th, body .money-tbl td, body .led-tbl td, body .items-grid td, body table.amc-tbl td { padding: 5px 8px !important; line-height: 1.35 !important; }
body .grid th, body .dtable thead th, body .money-tbl th, body .led-tbl th, body .items-grid th { padding: 6px 8px !important; line-height: 1.25 !important; }
body .grid td .btn, body .dtable td .btn, body .money-tbl td .btn, body .led-tbl td .btn { padding: 2px 8px !important; min-height: 26px !important; height: auto; font-size: 12.5px !important; }
body .grid td .btn + .btn { margin-left: 3px; }
body tr.wp5-foldrow td { padding-top: 0 !important; padding-bottom: 5px !important; line-height: 1.3 !important; }
body .grid tbody tr:not(.wp5-foldrow) > td { padding-top: 5px !important; }
body .mcards .mcard { padding: 8px 10px !important; margin-bottom: 6px !important; }
body .tcard.tfit-cards .tcards { gap: 6px !important; padding: 8px !important; }
body .tcard.tfit-cards .tcard-row { padding: 6px 9px !important; }
body .led-tbl td, body .money-tbl td { vertical-align: middle; }
/* the SECTIONS title on Home follows the new card-title look too */
body .launch > h3, body .launch-head h3, body .launch .lhead { text-transform: none !important; color: #101828 !important; font-size: 15.5px !important; letter-spacing: 0 !important; }
/* list rows, calm version (owner: "full cluttered", "no proper alignment") */
body .grid td, body .grid th { vertical-align: middle !important; }
body .grid th.num, body .grid td.num { text-align: right; }
body .gridwrap.wp5-fit .grid td:not(.wp5-nw):not(.num):not(.cbx):not(.da-ract) { min-width: 150px; }
body .grid td.da-ract { white-space: nowrap; width: 1%; }
body .grid td.da-ract > * { display: inline-flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
body .grid .wp5-ib { width: 28px; height: 28px; min-height: 28px !important; padding: 0 !important; display: inline-grid !important; place-items: center; border-radius: 7px; background: #fff; border: 1px solid #e4e7ec; }
body .grid .wp5-ib svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body .grid .wp5-ib-call { color: #2557d6; }
body .grid .wp5-ib-whatsapp { color: #16a34a; }
body .grid .wp5-ib:hover { background: #f2f4f7; }
/* status pills */
body .wp5-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; }
body .wp5-good { background: #e8f7ee; color: #15803d; }
body .wp5-warn { background: #fff4e5; color: #b54708; }
body .wp5-bad  { background: #fdecec; color: #b42318; }
body .wp5-info { background: #eaf1ff; color: #1d4ed8; }
body .wp5-grey { background: #f2f4f7; color: #475467; }
/* extra info under a row: quiet, small, lined up with the first data column */
body .grid tr.wp5-foldrow td { padding-left: 92px !important; font-size: 12.5px !important; color: #667085 !important; }
body .grid tr.wp5-foldrow .wp5-f { margin: 0 16px 0 0 !important; }
body .grid tr.wp5-foldrow .wp5-f b { color: #344054 !important; font-weight: 500 !important; }
body .grid tr.wp5-has-fold > td { border-bottom: 0 !important; }
body .wp5-fitnote { font-size: 12.5px; color: #667085; margin: 2px 0 6px; }
/* phone lists: compact toolbar, compact cards, icon buttons */
body .mcards .wp5-ib, body .mcard .wp5-ib { width: 34px; height: 34px; min-height: 34px !important; padding: 0 !important; display: inline-grid !important; place-items: center; border-radius: 8px; background: #fff; border: 1px solid #e4e7ec; }
body .mcard .wp5-ib svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body .mcard .wp5-ib-call { color: #2557d6; }
body .mcard .wp5-ib-whatsapp { color: #16a34a; }
@media (max-width: 760px) {
  body .toolbar .btn, body .ltools .btn, body .list-tools .btn, body .content > .bar .btn { min-height: 34px !important; padding: 5px 11px !important; font-size: 13.5px !important; }
  body .mcards .mcard { padding: 10px 12px !important; }
  body .mcard dl, body .mcard .mkv { gap: 2px 10px !important; margin: 4px 0 !important; }
  body .mcard a[href^="tel:"] { padding: 1px 8px !important; background: #eaf1ff; border-radius: 6px; }
  body .mcard .da-ract { margin-top: 6px !important; gap: 6px !important; }
}
@media (max-width: 760px) {
  body .mcard a.vlink, body .mcard a.vlink.tel { min-height: 28px !important; padding: 2px 8px !important; display: inline-flex; align-items: center; }
  body .content .chip { min-height: 32px !important; padding: 4px 11px !important; }
  body .mcard .mextra { margin: 4px 0 2px !important; }
}
/* phone: wide report tables as one card per row (ws_mobile.js adds .da-stack and the column names) */
@media (max-width: 760px) {
  body .da-stack, body .da-stack table { overflow: visible !important; border: 0 !important; background: none !important; }
  body .da-stack table, body .da-stack tbody, body .da-stack tr, body .da-stack td, body .da-stack tbody th { display: block; width: auto !important; min-width: 0 !important; }
  body .da-stack thead { display: none; }
  body .da-stack tbody tr { background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; padding: 8px 10px; margin: 0 0 8px; }
  body .da-stack tbody tr:nth-child(even) { background: #f7f9fd; }
  body .da-stack td, body .da-stack tbody th { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0 !important; border: 0 !important; text-align: right !important; white-space: normal !important; }
  body .da-stack td::before { content: attr(data-label); color: #667085; font-weight: 500; text-align: left; flex: none; max-width: 48%; }
  body .da-stack td:first-child, body .da-stack tbody th:first-child { font-weight: 650; color: #101828; text-align: left !important; justify-content: flex-start; font-size: 14.5px; }
  body .da-stack td:first-child::before { content: none; }
  body .da-stack td:empty, body .da-stack td[data-label=""]::before { display: none; }
  body .da-stack tfoot { display: block; }
  body .da-stack tfoot tr { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 10px; font-weight: 600; }
}
@media (max-width: 760px) { body .da-stack td:first-child, body .da-stack tbody th:first-child { display: block; } }
/* My work and similar rows: full text wraps instead of being cut with "…" */
body .mw-t b, body .mw-t small, body .mw-row small { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  /* list cards on phones: wrap instead of "…" */
  body .mcard b, body .mcard small, body .mcard dd { white-space: normal !important; text-overflow: clip !important; overflow-wrap: anywhere; }
}
