/* =====================================================================
   Member dashboard — UI_HANDOFF.md §5 step 8.
   Sidebar, section shell and the Overview cards. Values from
   design/dashboard.html; shared pieces (card, pill, banner, buttons)
   come from mesteel.css.
   ===================================================================== */
.dash-wrap{padding-top:24px;padding-bottom:64px}

/* ---------- Title row ---------- */
/* In the content column now, so it lines up with the top of the
   sidebar rather than spanning the page above it. */
.dash-top{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:4px}
.dash-top .t{flex:1;min-width:0}
.dash-top h1{font-size:32px;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis}
.dash-top .pill{margin:0}

/* ---------- Layout ---------- */
.dash-grid{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;align-items:start}

.dash-side{display:flex;flex-direction:column;gap:16px;position:sticky;top:16px}
.side-nav{display:flex;flex-direction:column;gap:2px;background:#fff;border-radius:18px;padding:8px;box-shadow:var(--shadow)}
.side-nav button{display:flex;align-items:center;gap:10px;border:0;background:none;text-align:left;font:inherit;font-size:13.5px;font-weight:700;color:#475569;padding:10px 12px;border-radius:12px;cursor:pointer;min-height:44px;width:100%}
.side-nav button:hover{background:var(--bg);transform:none}
/* Solid blue when active, as the reference draws it — not a tint. */
.side-nav button[data-on="true"]{background:var(--blue);color:#fff}
.side-nav .l{flex:1;min-width:0}
.side-nav .c{font-size:10.5px;font-weight:800;background:var(--blue-10);color:var(--blue);border-radius:999px;padding:2px 7px;flex:none}
.side-nav button[data-on="true"] .c{background:rgba(255,255,255,.18);color:#fff}

.side-foot{background:linear-gradient(135deg,var(--blue),var(--navy));color:#fff;border-radius:18px;padding:18px}
.side-foot .k{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#93A9E8}
.side-foot .v{font-size:15px;font-weight:800;margin-top:6px}
.side-foot .bar{height:6px;border-radius:3px;background:rgba(255,255,255,.15);margin:12px 0 8px;overflow:hidden}
.side-foot .bar i{display:block;height:100%;background:#fff;border-radius:3px}
.side-foot .s{font-size:12px;color:#DCE3F5;margin-top:8px}
.side-foot.none{background:#fff;color:var(--ink);box-shadow:var(--shadow)}
.side-foot.none .k{color:var(--mute)}
.side-foot.none .s{color:var(--faint)}

.dash-main{display:flex;flex-direction:column;gap:16px;min-width:0}
.dash-h h2{font-size:22px;letter-spacing:-.02em}
.dash-sec{display:flex;flex-direction:column;gap:16px}
/* Borderless on the soft ground, as the reference draws them. */
.dash-wrap .card{border:0;box-shadow:var(--shadow)}
.dash-main .card{padding:20px 22px;display:flex;flex-direction:column;gap:12px}
.dash-main .card > b{font-size:15px}
.card.soon p{margin:0;color:var(--mute);font-size:14px;line-height:1.6}

.cards2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}

/* ---------- Completeness ring ---------- */
.ring{position:relative;width:150px;margin:4px auto 8px}
.ring svg{width:150px;height:150px;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:12;stroke-linecap:round}
.ring .track{stroke:#EEF2F9}
.ring .fill{stroke:var(--blue);transition:stroke-dasharray .5s ease}
/* flex, not grid: grid puts the bare "%" text node on its own row. */
.ring .pct{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:800;letter-spacing:-.03em;white-space:nowrap}
.todo{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.todo li{display:flex;justify-content:space-between;gap:12px;font-size:13.5px;color:#475569;padding:7px 10px;background:var(--bg);border-radius:10px}
.todo li b{color:var(--blue);flex:none}
.done-all{margin:0;font-size:13.5px;color:var(--green);font-weight:700}

.stat-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.stat-list li{display:flex;justify-content:space-between;gap:12px;font-size:14px;padding:10px 0;border-top:1px solid #F1F5F9}
.stat-list li:first-child{border-top:0}
.stat-list li span{color:var(--mute)}
.stat-list li b{font-variant-numeric:tabular-nums}

/* ---------- Responsive ---------- */
@media (max-width:1023px){
  .dash-grid{grid-template-columns:minmax(0,1fr)}
  .dash-side{position:static}
  /* The rail becomes a row of scrolling pills, as the pickers do. */
  .side-nav{flex-direction:row;overflow-x:auto;scrollbar-width:none;gap:4px;padding:6px}
  .side-nav::-webkit-scrollbar{display:none}
  .side-nav button{width:auto;flex:none;white-space:nowrap;border-radius:999px;border:1px solid var(--line);padding:0 14px;min-height:40px}
  .cards2{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:639px){
  .dash-top h1{font-size:24px}
  .dash-main .card{padding:18px}
}

/* ---------- Overview: KPIs and charts ----------
   Fed by company_views (migration 032). Everything here is countable
   from our own rows; nothing is drawn when there is nothing to draw. */
.kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.kpi{gap:6px}
.kpi .kh{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12.5px;color:var(--mute);font-weight:600}
.kpi .kh span:first-child{white-space:nowrap}
.kpi .d{font-size:11.5px;font-weight:800;padding:3px 8px;border-radius:999px}
.kpi .d.up{background:var(--green-10);color:var(--green)}
.kpi .d.dn{background:#FEE2E2;color:#B91C1C}
.kpi .kv{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.kpi .kv b{font-size:30px;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}
.kpi .kv svg{flex:none;overflow:visible}
.kpi .ks{font-size:12px;color:var(--faint);font-weight:600}

.empty-note b{font-size:15px}
.empty-note p{margin:0;font-size:13.5px;line-height:1.6;color:var(--mute)}
.empty-note p b{font-size:inherit;color:var(--ink)}

.cards2.wide-left{grid-template-columns:1.6fr minmax(0,1fr)}

.chart{display:flex;align-items:flex-end;gap:6px;height:170px;padding-top:8px}
.chart .col{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%}
/* Side by side, not stacked: an unlock always accompanies a view, so
   stacking them would draw a total that never happened. */
.chart .stack{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px}
.chart i{display:block;width:9px;border-radius:4px 4px 0 0;min-height:2px}
.chart i.v{background:var(--blue)}
.chart i.u{background:var(--green)}
.chart .col span{font-size:10.5px;color:var(--faint);font-weight:600;white-space:nowrap}
.legend{display:flex;gap:16px;font-size:12px;color:var(--mute);font-weight:600}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:10px;height:10px;border-radius:3px;display:block}
.legend i.v{background:var(--blue)}
.legend i.u{background:var(--green)}

.countries{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.countries li{display:flex;align-items:center;gap:10px;font-size:13.5px}
.countries .flag{width:18px;height:13px;border-radius:2px;object-fit:cover;flex:none;box-shadow:0 0 0 1px rgba(15,31,74,.12)}
.countries .nm{flex:0 0 34%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.countries .bar{flex:1;height:8px;border-radius:999px;background:var(--bg);overflow:hidden}
.countries .bar i{display:block;height:100%;background:var(--blue);border-radius:999px}
.countries li b{flex:none;font-variant-numeric:tabular-nums;color:var(--mute)}
.fine{margin:0;font-size:11.5px;color:var(--faint);line-height:1.5}

@media (max-width:1023px){
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cards2.wide-left{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:639px){
  .kpis{grid-template-columns:minmax(0,1fr)}
  .chart{height:140px}
  .chart .col span{display:none}
}

/* ---------- Section forms (profile, contacts, specs) ---------- */
.dash-main form.dash-sec{margin:0}
.ch{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.ch b{font-size:17px}
.dash-main .card .hint{margin:0;font-size:13.5px;line-height:1.55;color:#475569;text-wrap:pretty}

.g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.g2 .full{grid-column:1/-1}
/* Same field shell as the register wizard, on the softer dashboard ground. */
.fld{display:block;background:var(--bg);border-radius:14px;padding:12px 16px}
.fld:focus-within{box-shadow:0 0 0 2px var(--blue)}
.fld > span{display:block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.fld input,.fld textarea{width:100%;border:0;background:none;font:inherit;font-size:16px;font-weight:700;margin-top:3px;color:var(--ink);outline:0;padding:0}
.fld textarea{font-weight:600;font-size:15px;resize:vertical;min-height:84px;line-height:1.5}
.fld input[readonly]{color:var(--mute);cursor:not-allowed}

.socials{display:flex;flex-direction:column;gap:8px}
.fld.soc{display:flex;align-items:center;gap:12px;padding:10px 14px}
.fld.soc > span{width:80px;flex:none}
.fld.soc input{font-size:14.5px;font-weight:600;margin:0}

.logo-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.logo-box{width:64px;height:64px;border-radius:16px;background:var(--blue);color:#fff;font-weight:800;display:grid;place-items:center;flex:none;overflow:hidden}
.logo-box img{width:100%;height:100%;object-fit:contain;background:#fff}
.soon-note{font-size:12.5px;color:var(--faint);font-weight:600}

/* The save bar sticks to the bottom of the viewport so a long form never
   hides the button that commits it. */
.save-row{position:sticky;bottom:12px;display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap;background:#fff;border-radius:16px;padding:12px 16px;box-shadow:0 8px 24px rgba(15,31,74,.12);z-index:5}
.save-row .ok{color:var(--green);font-weight:700;font-size:13.5px;margin-right:auto}
.save-row .bad{color:var(--red);font-weight:600;font-size:13px;margin-right:auto;line-height:1.4}
.save-row .btn{min-height:44px}

@media (max-width:639px){
  .g2{grid-template-columns:minmax(0,1fr)}
  .fld.soc{flex-direction:column;align-items:stretch;gap:2px}
  .fld.soc > span{width:auto}
  .save-row{flex-direction:column-reverse;align-items:stretch}
  .save-row .btn{width:100%}
  .save-row .ok,.save-row .bad{margin:0;text-align:center}
}

/* ---------- Repeating row cards (contacts, departments) ---------- */
.row-card{background:var(--bg);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:10px}
.row-card .fld{background:#fff}
.rc-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.rc-head b{font-size:14.5px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rc-foot{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.rc-foot .fine{margin-right:auto}
.avatar.sm{width:34px;height:34px;border-radius:10px;font-size:11px}
.tick{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:var(--mute);white-space:nowrap;cursor:pointer}
.tick input{accent-color:var(--blue);width:16px;height:16px}
.link-add{border:0;background:none;color:var(--blue);font:inherit;font-size:13px;font-weight:700;cursor:pointer;padding:6px 0;min-height:32px}
.link-add.sell{color:var(--sell)}
.link-add.buy{color:var(--buy)}
.link-add:hover{color:var(--navy);transform:none}
.link-del{border:0;background:none;color:var(--red);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;padding:6px 0;min-height:32px}
.link-del:hover{text-decoration:underline;transform:none}
.empty-row{margin:0;padding:18px;background:var(--bg);border-radius:14px;color:var(--mute);font-size:13.5px;font-weight:600;text-align:center}
/* Inside a card the save bar is a plain row, not stuck to the viewport. */
.save-row.inline{position:static;box-shadow:none;background:none;padding:0}
.fld select{width:100%;border:0;background:var(--chevron) no-repeat right center/16px;font:inherit;font-size:16px;font-weight:700;margin-top:3px;color:var(--ink);outline:0;padding:0 24px 0 0;appearance:none;cursor:pointer}
/* The picker's own wrapper already spaces itself; no extra top margin here. */
.dash-sec .sel-wrap{margin-top:0}
.pane .hint2{display:block;font-size:12.5px;color:var(--mute);font-weight:600;margin-top:2px}

/* ---------- Media & documents ---------- */
.upload{position:relative;overflow:hidden;cursor:pointer}
.upload input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.media-tile{background:var(--bg);border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:8px}
.media-tile .thumb{aspect-ratio:4/3;border-radius:10px;background:#fff;display:grid;place-items:center;overflow:hidden}
.media-tile .thumb img{width:100%;height:100%;object-fit:cover}
.media-tile .ext{font-size:13px;font-weight:800;color:var(--faint);letter-spacing:.06em}
.media-tile .meta-row{display:flex;flex-direction:column;gap:2px;min-width:0}
.media-tile .meta-row b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.media-tile .meta-row span{font-size:11.5px;color:var(--faint);font-weight:600}
.media-tile .tile-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}
.badge{font-size:10.5px;font-weight:800;padding:3px 8px;border-radius:999px}
.badge.ok{background:var(--green-10);color:var(--green)}
.badge.wait{background:#FEF3C7;color:#92400E}
.dash-main p.bad{margin:0;color:var(--red);font-size:13px;font-weight:600}
/* Two numbers in one field (a rectangular section's W x H). */
.fld .pair{display:flex;align-items:center;gap:8px;margin-top:3px}
.fld .pair input{margin-top:0}
.fld .pair i{font-style:normal;color:var(--faint);font-weight:700;flex:none}

/* ---------- Read-only lists (offers, jobs) ---------- */
.list-rows{display:flex;flex-direction:column;gap:8px}
.lrow{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--bg);border-radius:12px;padding:12px 14px}
.lrow b{font-size:14px;flex:1;min-width:140px}
.lrow .fine{margin:0}

/* ---------- Invoices ---------- */
.table-wrap{overflow-x:auto}
table.inv{width:100%;border-collapse:collapse;font-size:13.5px;min-width:460px}
table.inv th{text-align:left;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);padding:0 12px 8px 0;white-space:nowrap}
table.inv td{padding:10px 12px 10px 0;border-top:1px solid #F1F5F9;white-space:nowrap}
table.inv .r{text-align:right;font-variant-numeric:tabular-nums;padding-right:16px}
.card.narrow{max-width:560px}

/* ---------- Tab row ----------
   Now used only by the moderation queue: the dashboard's own three
   pickers became sidebar links. */
.pick-tabs{display:flex;gap:6px;background:#fff;border-radius:14px;padding:6px;box-shadow:var(--shadow)}
.pick-tabs button{display:inline-flex;align-items:center;gap:8px;border:0;background:none;border-radius:10px;padding:0 16px;min-height:40px;font:inherit;font-size:13.5px;font-weight:700;color:#475569;cursor:pointer}
.pick-tabs button:hover{background:var(--bg);transform:none}
.pick-tabs button[data-on="true"]{background:var(--blue);color:#fff}
.pick-tabs .n{font-size:10.5px;font-weight:800;background:var(--blue-10);color:var(--blue);border-radius:999px;padding:2px 7px}
.pick-tabs button[data-on="true"] .n{background:rgba(255,255,255,.18);color:#fff}

/* ---------- Moderation queue ---------- */
.review-row{gap:10px}
.review-meta{display:flex;gap:14px;flex-wrap:wrap;font-size:12.5px;color:var(--mute);font-weight:600}
.review-body{margin:0;font-size:14px;line-height:1.6;color:#475569;
             display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.review-row .rc-foot{gap:10px;padding-top:4px;border-top:1px solid #F1F5F9;margin-top:2px}
.review-row .rc-foot .fine{margin-right:auto}

/* ---------- Marketplace listings in the dashboard ---------- */
.lrow .lk{flex:1;min-width:160px;font-size:14px;font-weight:700;color:var(--ink)}
.lrow .lk:hover{color:var(--blue)}
.badge.off{background:#F1F5F9;color:var(--mute)}
.reply-row{flex-direction:column;align-items:stretch;gap:8px}
.rr-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.rr-head b{font-size:14px}
.rr-head .fine:last-child{margin-left:auto}
.rr-msg{margin:0;font-size:14px;line-height:1.6;color:#334155;white-space:pre-line}
.rr-foot{display:flex;gap:14px;flex-wrap:wrap}

/* A combobox wearing the .fld shell, so a dropdown on a dashboard-styled
   form matches the text fields beside it. */
.fld .lbl{display:block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.fld.combo{--chev-inset:16px}
.fld .combo-row{margin-top:3px}
.fld .combo-row input{margin-top:0;font-size:16px;font-weight:700;color:var(--ink);width:100%;border:0;background:none;outline:0;padding:0}
.fld.combo.is-open{box-shadow:0 0 0 2px var(--blue),0 0 0 5px rgba(31,63,143,.12)}
/* Primary actions for a section, above its cards. */
.act-row{display:flex;gap:10px;flex-wrap:wrap}
.act-row .btn{min-height:44px}

/* The Offers and Inquiries sections carry the marketplace's own colours,
   the same way the composer does, so the two pages are told apart before
   the heading is read. */
.dash-sec[data-kind] .card .ch > b{color:var(--accent)}

/* ---------- The individual's page ----------
   Same shell as the company dashboard, one column narrower because a
   person owns three sections rather than twelve. */
.acct-grid{max-width:1000px}
.fld.chk{display:flex;align-items:center;gap:12px;cursor:pointer}
.fld.chk input{width:20px;height:20px;accent-color:var(--blue);margin:0;flex:none}
.fld.chk span{font-size:14px;font-weight:600;color:var(--ink)}

/* Free-text chips: skills, languages, products, activities. */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips:empty{display:none}
.chip{display:inline-flex;align-items:center;gap:8px;background:var(--blue-10);color:var(--blue);
      border-radius:999px;padding:6px 8px 6px 14px;font-size:13.5px;font-weight:700}
.chip button{border:0;background:none;color:inherit;font:inherit;font-size:16px;line-height:1;
             cursor:pointer;padding:0 4px;opacity:.6}
.chip button:hover{opacity:1;transform:none}
.chip-add{display:flex;gap:8px;margin-top:12px}
.chip-add input{flex:1;min-width:0;background:var(--bg);border:0;border-radius:12px;
                padding:11px 16px;font:inherit;font-size:14px;color:var(--ink)}
.chip-add input:focus{outline:none;box-shadow:0 0 0 2px var(--blue)}
/* Push the decide-on-it controls to the end of the application row. */
.rr-foot .sp{flex:1}
.rr-foot .link-add,.rr-foot .link-del{padding:2px 0}

/* ---------- Staff editing another company ----------
   Amber rather than red: this is a legitimate thing to be doing, and a
   red bar seen every day is a bar people stop seeing. */
.acting-bar{background:#FFF7ED;border-bottom:2px solid #FDBA74;padding:12px 0;
            position:sticky;top:0;z-index:60}
.acting-bar .wrap{display:flex;align-items:center;gap:16px;flex-wrap:wrap;
                  font-size:13.5px;color:#7C2D12}
.acting-bar b{font-size:14.5px;color:#9A3412}
.acting-bar .sp{flex:1}
.acting-bar a{font-weight:700;color:#9A3412;text-decoration:underline}

@media (max-width:767px){
  .acting-bar{position:static}
  .acting-bar .wrap{gap:8px}
  .acting-bar .sp{flex:0 0 100%}
}

/* The Paid column on the billing screen: the amount received, with the
   date it arrived underneath. An invoice history that shows only what
   was asked for is half the record.

   The amount is a <b> rather than a bare $ beside a span, because this
   is a column flex container and a loose text node is a flex item —
   which put the currency sign on a line of its own. */
table.inv .paid{display:inline-flex;flex-direction:column;align-items:flex-end;
  line-height:1.35;font-variant-numeric:tabular-nums}
table.inv .paid > b{font-weight:600;white-space:nowrap}
table.inv .paid i{font-style:normal;font-size:11.5px;font-weight:600;color:var(--mute);
  white-space:nowrap}
table.inv .unpaid{color:var(--line)}
table.inv .row-acts{display:inline-flex;gap:2px;justify-content:flex-end}

/* =====================================================================
   Saved lists
   ---------------------------------------------------------------------
   Folder first. A working member has 68 of these holding a thousand
   companies, filed under names like "shafting buyers saudi", so the
   folders are the navigation and the companies are what is inside one.
   ===================================================================== */

.folder-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.folder{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);
  background:#fff;color:#334155;font:inherit;font-size:13px;font-weight:600;
  border-radius:999px;padding:7px 8px 7px 13px;cursor:pointer;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.folder:hover{border-color:var(--blue);color:var(--blue)}
.folder i{font-style:normal;font-size:11.5px;font-weight:800;background:var(--bg);
  color:var(--mute);border-radius:999px;padding:2px 8px;min-width:22px;text-align:center}
.folder[data-on="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
.folder[data-on="true"] i{background:rgba(255,255,255,.2);color:#fff}

.saved-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.saved-co{display:flex;align-items:stretch;background:var(--bg);border-radius:14px;
  overflow:hidden;transition:background-color .15s ease}
.saved-co:hover{background:#E9EFF9}

.sc-main{display:flex;gap:11px;align-items:flex-start;flex:1;min-width:0;
  padding:12px 4px 12px 12px;color:inherit}
.sc-main:hover{color:inherit}
.sc-logo{flex:none;width:40px;height:40px;border-radius:11px;background:#fff;
  display:grid;place-items:center;font-size:13px;font-weight:800;color:var(--blue);
  overflow:hidden;border:1px solid var(--line)}
.sc-logo.img{padding:3px}
.sc-logo img{width:100%;height:100%;object-fit:contain}

.sc-t{display:flex;flex-direction:column;gap:3px;min-width:0}
.sc-t > b{font-size:13.5px;line-height:1.35;color:var(--ink)}
.sc-where{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--mute);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sc-where .flag{border-radius:2px;flex:none}
.sc-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.sc-tags .pill{font-size:10.5px;padding:2px 8px}
.sc-tags .pill.off{background:#FEF2F2;color:#B91C1C}
.sc-tags .pill.quiet{background:#fff;color:var(--mute);border:1px solid var(--line)}

/* Kept quiet until the row is under the cursor: one of these per company
   across a screenful of them is a lot of crosses otherwise. */
.sc-del{flex:none;width:34px;border:0;background:none;color:transparent;
  font-size:19px;line-height:1;cursor:pointer;transition:color .15s ease}
.saved-co:hover .sc-del{color:var(--mute)}
.sc-del:hover{color:var(--red)}
.sc-del:focus-visible{color:var(--red);outline:2px solid var(--blue);outline-offset:-2px}
.sc-del:disabled{cursor:default}

@media (max-width:639px){
  .saved-grid{grid-template-columns:1fr}
  .sc-del{color:var(--mute)}
}

/* ---------- Payment details ----------
   Under the table, not inside it: x-for renders one root per row, so a
   second <tr> cannot come out of the same loop, and a <div> is not valid
   in a <tbody> either. */
.pay-detail{background:var(--bg);border-radius:14px;padding:16px 18px;margin-top:14px}
.pd-head{display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin-bottom:12px}
.pd-head b{font-size:14px}
.pd-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.pd-grid > div{background:#fff;border-radius:11px;padding:10px 13px}
.pd-grid small{display:block;font-size:10.5px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--mute)}
.pd-grid b{display:block;font-size:14.5px;margin-top:3px;font-variant-numeric:tabular-nums}
.pay-detail .hint{margin:12px 0 0}

/* The open payment's own button stays lit while its panel is showing. */
table.inv .icon-btn[data-on="true"]{background:var(--blue-10);color:var(--blue)}

/* .icon-btn is defined in admin.css, which the member dashboard does not
   load. Same shape, so the two screens read alike. */
table.inv .icon-btn{display:inline-grid;place-items:center;width:32px;height:32px;
  flex:none;border:0;border-radius:9px;background:none;color:var(--mute);cursor:pointer;
  transition:background-color .15s ease,color .15s ease}
table.inv .icon-btn:hover{background:var(--blue-10);color:var(--blue)}
table.inv .icon-btn:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
table.inv .icon-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
