/* Arthwise – CA firm portal. Simple, friendly, phone-first. */
:root {
  --brand: #0f766e; --brand-2: #115e59; --brand-soft: #e6f4f2; --accent: #f59e0b;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #f6f8fa; --card: #ffffff;
  --red: #dc2626; --red-soft: #fef2f2; --amber: #b45309; --amber-soft: #fffbeb; --green: #15803d; --green-soft: #f0fdf4; --blue: #1d4ed8; --blue-soft: #eff6ff;
  --radius: 14px; --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; font-size: .85em; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 14px/1 var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: #f8fafc; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn.danger { color: var(--red); border-color: #fecaca; }
.btn.danger:hover { background: var(--red-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: #eef2f6; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.block { display: flex; width: 100%; }
.btn.wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-btn { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; }

/* Forms */
.form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff;
  font: 400 15px/1.4 var(--font); color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(15, 118, 110, .25); border-color: var(--brand); }
label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
label.check input { width: 20px; min-height: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.hint { font-size: 13px; color: var(--muted); margin: -4px 0 0; font-weight: 400; }
.alert { background: var(--red-soft); color: var(--red); border: 1px solid #fecaca; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.note { background: var(--amber-soft); border: 1px solid #fde68a; padding: 12px 14px; border-radius: 10px; font-size: 14px; color: #78350f; }
.note.info { background: var(--blue-soft); border-color: #bfdbfe; color: #1e3a8a; }
.note.ok { background: var(--green-soft); border-color: #bbf7d0; color: #14532d; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; display: grid; gap: 10px; }
legend { font-weight: 700; font-size: 13px; padding: 0 6px; color: var(--ink-2); }

/* Badges & pills */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: var(--ink-2); white-space: nowrap; }
.pill.red { background: var(--red-soft); color: var(--red); } .pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.green { background: var(--green-soft); color: var(--green); } .pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.teal { background: var(--brand-soft); color: var(--brand); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 1.05rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty b { display: block; color: var(--ink-2); margin-bottom: 4px; font-size: 15px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: block; color: inherit; text-decoration: none !important; }
.stat:hover { border-color: #cbd5e1; }
.stat .n { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.stat .l { font-size: 13px; color: var(--muted); }
.stat.red .n { color: var(--red); } .stat.amber .n { color: var(--amber); } .stat.green .n { color: var(--green); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.list .sub { font-size: 13px; color: var(--muted); }
.date-chip { flex: none; width: 52px; text-align: center; border-radius: 10px; background: #f1f5f9; padding: 6px 0; line-height: 1.1; }
.date-chip b { display: block; font-size: 18px; }
.date-chip span { font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.date-chip.red { background: var(--red-soft); } .date-chip.red b { color: var(--red); }
.date-chip.amber { background: var(--amber-soft); } .date-chip.amber b { color: var(--amber); }

/* Tables (become cards on phones) */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #f8fafc; }
@media (max-width: 760px) {
  table.t.cards thead { display: none; }
  table.t.cards, table.t.cards tbody, table.t.cards tr, table.t.cards td { display: block; width: 100%; }
  table.t.cards tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; background: #fff; }
  table.t.cards td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.t.cards td::before { content: attr(data-l); color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; }
  table.t.cards td.main { font-weight: 700; font-size: 15px; text-align: left; }
  table.t.cards td.main::before { display: none; }
}

/* Tabs / segmented filters */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; text-decoration: none; }
.tabs .on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: #0b1f1d; color: #cbd5e1; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #14b8a6, #0f766e); display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.brand-mark.big { width: 52px; height: 52px; font-size: 22px; border-radius: 14px; margin-bottom: 14px; }
.side .brand b { display: block; font-size: 14px; line-height: 1.2; }
.side .brand small { color: #94a3b8; font-size: 12px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #cbd5e1; font-weight: 500; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.on { background: rgba(20, 184, 166, .16); color: #fff; }
.nav a svg { width: 20px; height: 20px; flex: none; opacity: .9; }
.nav a .count { margin-left: auto; }
.nav .sep { height: 1px; background: rgba(255, 255, 255, .08); margin: 10px 8px; }
.side .me { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.side .me b { color: #fff; display: block; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 16px 28px; background: rgba(246, 248, 250, .9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.topbar h1 { margin: 0; font-size: 1.35rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .back { display: none; }
.content { padding: 4px 28px 40px; max-width: 1200px; }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.cols > div > .card + .card { margin-top: 16px; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } }
.demo-bar { background: var(--amber); color: #111; text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; }

/* Mobile shell: bottom navigation */
.bottom-nav { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { padding: 12px 16px; }
  .topbar .back { display: inline-flex; }
  .content { padding: 4px 16px 96px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a, .bottom-nav button { display: grid; justify-items: center; gap: 2px; font: 600 11px var(--font); color: var(--muted); text-decoration: none; padding: 4px 0; background: none; border: 0; position: relative; cursor: pointer; }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav .on { color: var(--brand); }
  .bottom-nav .count { position: absolute; top: 0; left: 55%; height: 17px; min-width: 17px; font-size: 10px; }
}

/* Sheet / modal */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s ease; }
.sheet { background: #fff; border-radius: 18px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.sheet.wide { max-width: 760px; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.sheet-head h2 { margin: 0; flex: 1; font-size: 1.1rem; }
.sheet-body { padding: 18px; }
.sheet-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; }
@media (max-width: 640px) {
  .overlay { align-items: flex-end; padding: 0; }
  .sheet { border-radius: 18px 18px 0 0; max-height: 92vh; animation: up .2s ease; }
  .sheet-foot .btn { flex: 1; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
.menu { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 50; min-width: 180px; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; font: 500 14px var(--font); cursor: pointer; color: var(--ink); }
.menu button:hover { background: #f1f5f9; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 200;
  font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: calc(100vw - 32px); animation: up .2s ease; }
.toast.err { background: var(--red); }
@media (max-width: 860px) { .toast { bottom: 84px; } }

/* Kanban */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.lane { background: #eef2f6; border-radius: 14px; padding: 10px; min-height: 120px; }
.lane h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 4px 6px 10px; display: flex; justify-content: space-between; }
.task { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.task:hover { border-color: #94a3b8; }
.task .title { font-weight: 600; font-size: 14px; }
.task .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.task .move { display: flex; gap: 4px; margin-top: 8px; }
.task.high { border-left: 4px solid var(--red); }
@media (max-width: 860px) { .board { grid-template-columns: repeat(4, 80vw); scroll-snap-type: x mandatory; } .lane { scroll-snap-align: start; } }

/* Chat */
.chat { display: grid; gap: 10px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; background: #f1f5f9; }
.msg.mine { margin-left: auto; background: var(--brand-soft); }
.msg .who { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.msg .body { white-space: pre-wrap; word-wrap: break-word; }

/* Upload drop zone */
.drop { border: 2px dashed #cbd5e1; border-radius: 14px; padding: 24px; text-align: center; color: var(--muted); cursor: pointer; background: #fafcfd; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop b { color: var(--brand); }
.file-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 800; flex: none; text-transform: uppercase; }

/* Search box */
.search { position: relative; flex: 1; min-width: 180px; }
.search input { padding-left: 38px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }

/* Invoice print */
.invoice-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; max-width: 820px; }
.invoice-doc .ih { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid var(--brand); padding-bottom: 16px; margin-bottom: 16px; }
.invoice-doc h2 { color: var(--brand); margin: 0 0 4px; font-size: 1.4rem; }
.invoice-doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.invoice-doc th { background: #f1f5f9; text-align: left; padding: 8px; font-size: 12px; text-transform: uppercase; }
.invoice-doc td { padding: 8px; border-bottom: 1px solid var(--line); }
.invoice-doc .tot td { border: 0; padding: 4px 8px; }
.invoice-doc .grand td { font-weight: 800; font-size: 16px; border-top: 2px solid var(--ink); }
.stamp { display: inline-block; border: 3px solid currentColor; padding: 4px 12px; border-radius: 8px; font-weight: 800; transform: rotate(-6deg); letter-spacing: .1em; }
@media print {
  body { background: #fff; }
  .side, .topbar, .bottom-nav, .no-print, .demo-bar { display: none !important; }
  .shell { display: block; } .content { padding: 0; max-width: none; }
  .invoice-doc { border: 0; padding: 0; }
}

/* ---------- Auth pages ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 10% -10%, #ccfbf1, transparent), radial-gradient(900px 500px at 110% 110%, #fef3c7, transparent), var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 20px 60px rgba(15, 23, 42, .1); border: 1px solid var(--line); }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 1.5rem; }
.auth-card h3 { margin-top: 8px; font-size: 1rem; }
.demo-logins { display: grid; gap: 8px; margin-top: 16px; }
.demo-logins button { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fafcfd; cursor: pointer; font: inherit; }
.demo-logins button:hover { border-color: var(--brand); }
.demo-logins b { display: block; }

/* ---------- Public website ---------- */
.site-nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.site-nav .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.site-nav .logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; text-decoration: none; min-width: 0; }
.site-nav .logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-nav nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav nav a { color: var(--ink-2); font-weight: 500; }
@media (max-width: 760px) { .site-nav nav { display: none; } .site-nav .btn.primary { margin-left: auto; } }
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, #f0fdfa, #fff); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.03em; line-height: 1.1; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; }
.hero .tag { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero .btn { min-height: 50px; padding: 0 22px; font-size: 15px; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 30px 60px rgba(15, 118, 110, .12); }
.hero-card .list > li { padding: 10px 0; }
@media (max-width: 860px) { .hero { padding: 40px 0; } .hero .wrap { grid-template-columns: 1fr; } }
.section { padding: 64px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; }
.section .sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 36px; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.service .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; }
.service h3 { margin-bottom: 6px; }
.service p { color: var(--muted); margin: 0; font-size: 14px; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { counter-increment: s; padding: 20px; border-radius: 16px; background: var(--bg); }
.step::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; }
.contact .info li { display: flex; gap: 12px; padding: 10px 0; }
.contact .info svg { width: 20px; color: var(--brand); flex: none; margin-top: 2px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.footer { padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); z-index: 40; }
.wa-float svg { width: 30px; height: 30px; }

/* Filing rows: status + actions drop under the text on phones */
.list > li.frow .acts { display: flex; align-items: center; gap: 8px; flex: none; }
@media (max-width: 640px) {
  .list > li.frow { flex-wrap: wrap; row-gap: 6px; }
  .list > li.frow .grow { flex: 1 1 calc(100% - 64px); }
  .list > li.frow .acts { width: 100%; padding-left: 64px; }
  .list > li.frow .acts .pill { margin-right: auto; }
  .invoice-doc { padding: 16px; }
  .invoice-doc .ih > div:last-child { text-align: left !important; }
  .invoice-doc table { font-size: 12px; }
  .invoice-doc th, .invoice-doc td { padding: 6px 4px; }
  .demo-bar { font-size: 12px; padding: 4px 10px; }
}
