 :root {
  --g: #6B1D2F;          /* Premium Velvet / Burgundy */
  --g2: #FBF6F7;         /* Soft Cream Background */
  --g3: #4A121F;         /* Dark Burgundy */
  --gold: #D4AF37;       /* Accent Gold */
  --ink: #1F191A;        /* Deep Charcoal Text */
  --mut: #7A6E71;        /* Muted Text */
  --line: #EFE6E8;       /* Clean Subtle Borders */
  --bg: #F8F5F6;         /* Body Background */
  --card: #FFFFFF;       /* Pure White Cards */
  --red: #D9383A;
  --amb: #D9822B;
  --r: 20px;             /* Smooth Rounded Corners */
  --sh: 0 4px 20px rgba(107, 29, 47, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", Roboto, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 22px; } h3 { font-size: 17px; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--mut); }
[hidden] { display: none !important; }

/* Main Layout */
#app { min-height: 100vh; display: flex; }
.side { display: none; }
.main { flex: 1; min-width: 0; padding: 20px 18px calc(90px + env(safe-area-inset-bottom)); max-width: 1000px; margin: 0 auto; width: 100%; }

/* Header & Top Bar */
.top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; background: var(--card); padding: 12px 16px; border-radius: 18px; box-shadow: var(--sh); border: 1px solid var(--line); }
.top .logo { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; background: var(--g2); border: 1px solid var(--line); }
.top .ttl { flex: 1; min-width: 0; }
.top .ttl b { font-size: 17px; color: var(--ink); display: block; }
.top .ttl small { color: var(--mut); font-size: 12px; }

/* Tabbar Navigation (Mobile) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--line); display: flex; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); z-index: 20; }
.tabbar button { flex: 1; border: 0; background: none; padding: 6px 2px; border-radius: 14px; color: var(--mut); font-size: 11px; font-weight: 500; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: all 0.2s ease; }
.tabbar button svg { width: 22px; height: 22px; stroke-width: 2; }
.tabbar button.on { color: var(--g); font-weight: 700; background: var(--g2); }

@media(min-width: 900px) {
  .tabbar { display: none; }
  .side { display: flex; flex-direction: column; gap: 6px; width: 240px; background: var(--card); border-right: 1px solid var(--line); padding: 24px 16px; position: sticky; top: 0; height: 100vh; }
  .side button { display: flex; gap: 12px; align-items: center; border: 0; background: none; padding: 12px 16px; border-radius: 14px; color: var(--mut); text-align: left; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
  .side button.on { background: var(--g); color: #fff; box-shadow: 0 4px 14px rgba(107,29,47,0.25); }
  .side svg { width: 20px; height: 20px; }
  .main { padding: 32px; }
}

/* Cards & Modern Grid */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; margin-bottom: 16px; border: 1px solid var(--line); }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media(min-width: 700px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); } }

/* Modern KPI Cards */
.kpi { background: var(--card); border-radius: 18px; border: 1px solid var(--line); padding: 16px; box-shadow: var(--sh); position: relative; overflow: hidden; }
.kpi small { color: var(--mut); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; display: block; }
.kpi b { font-size: 20px; display: block; margin-top: 4px; color: var(--ink); font-weight: 800; }
.kpi.g { background: linear-gradient(135deg, var(--g) 0%, var(--g3) 100%); color: #fff; border: 0; }
.kpi.g small { color: rgba(255, 255, 255, 0.8); }
.kpi.g b { color: #fff; }

.neg { color: var(--red) !important; }
.pos { color: #27ae60 !important; }

/* List Item Rows */
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); transition: background 0.2s ease; }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .grow b { font-size: 15px; color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .grow span { color: var(--mut); font-size: 13px; display: block; margin-top: 1px; }

.thumb { width: 48px; height: 48px; border-radius: 14px; background: var(--g2); object-fit: cover; flex: none; display: grid; place-items: center; color: var(--g); font-weight: 700; font-size: 16px; border: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--g2); color: var(--g); }
.pill.red { background: #FDF2F2; color: var(--red); }
.pill.amb { background: #FEF8EC; color: var(--amb); }
.pill.gray { background: #F3F4F6; color: var(--mut); }
.empty { text-align: center; color: var(--mut); padding: 36px 16px; }
.sec { display: flex; align-items: center; justify-content: space-between; margin: 22px 4px 10px; }
.sec h3 { color: var(--ink); font-size: 18px; }
.sec a { color: var(--g); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }

/* Buttons & Quick Actions */
.btn { border: 0; background: var(--g); color: #fff; padding: 13px 20px; border-radius: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 4px 12px rgba(107,29,47,0.18); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:active { transform: scale(0.98); }
.btn.sec2 { background: var(--g2); color: var(--g); box-shadow: none; border: 1px solid var(--line); }
.btn.line { background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: none; }
.btn.red { background: #FDF2F2; color: var(--red); box-shadow: none; }
.btn.wa { background: #25D366; color: #fff; box-shadow: 0 4px 12px rgba(37,211,102,0.2); }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; }

.qa { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin: 0 -2px 14px; -webkit-overflow-scrolling: touch; }
.qa::-webkit-scrollbar { display: none; }
.qa .btn { white-space: nowrap; flex: none; }

/* Form Controls */
label { display: block; font-size: 13px; font-weight: 600; color: var(--mut); margin: 12px 0 6px; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 15px; color: var(--ink); transition: border 0.2s ease; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 3px rgba(107, 29, 47, 0.1); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.search { margin-bottom: 12px; }
.seg { display: flex; background: var(--g2); padding: 4px; border-radius: 14px; gap: 4px; margin: 10px 0; border: 1px solid var(--line); }
.seg button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 10px; color: var(--mut); font-weight: 600; font-size: 13px; cursor: pointer; transition: all 0.2s ease; }
.seg button.on { background: var(--g); color: #fff; box-shadow: 0 2px 8px rgba(107,29,47,0.2); }

/* Modals & Overlays */
#modal-root .ov { position: fixed; inset: 0; background: rgba(31, 25, 26, 0.6); backdrop-filter: blur(4px); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
#modal-root .sheet { background: #fff; width: 100%; max-width: 620px; max-height: 90vh; overflow: auto; border-radius: 28px 28px 0 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,0.15); }
@media(min-width: 700px) { #modal-root .ov { align-items: center; } #modal-root .sheet { border-radius: 24px; } }
.sheet .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; position: sticky; top: -20px; background: #fff; padding: 10px 0; z-index: 2; border-bottom: 1px solid var(--line); }
.x { border: 0; background: var(--g2); color: var(--g); width: 36px; height: 36px; border-radius: 50%; font-size: 18px; font-weight: bold; cursor: pointer; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; z-index: 99; font-weight: 600; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.toast.err { background: var(--red); }

/* Charts */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 130px; padding-top: 10px; }
.chart .c { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.chart .bars { display: flex; align-items: flex-end; gap: 3px; flex: 1; min-height: 0; width: 100%; justify-content: center; }
.chart .bar { width: 45%; border-radius: 6px 6px 0 0; min-height: 3px; }
.chart .bar.s { background: var(--g); }
.chart .bar.p { background: var(--gold); }
.chart small { color: var(--mut); font-size: 11px; font-weight: 600; }
.legend { display: flex; gap: 16px; font-size: 12px; font-weight: 600; color: var(--mut); margin-top: 12px; justify-content: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* Tables & Invoices */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--mut); font-weight: 600; font-size: 12px; text-transform: uppercase; }
td.n, th.n { text-align: right; }
.tw { overflow-x: auto; }

.inv { background: #fff; color: #111; padding: 24px; font-size: 13px; line-height: 1.5; border: 1px solid var(--line); border-radius: 16px; }
.inv .h { display: flex; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--brand, #6B1D2F); padding-bottom: 14px; margin-bottom: 14px; }
.inv .h img { max-height: 64px; max-width: 150px; object-fit: contain; display: block; margin-bottom: 6px; }
.inv .h h1 { font-size: 20px; margin: 0; font-weight: 800; }
.inv .t { font-size: 22px; font-weight: 800; color: var(--brand, #6B1D2F); text-align: right; }
.inv table th { background: #F8F5F6; color: #333; }
.inv .tot { margin-left: auto; width: min(280px, 100%); margin-top: 10px; }
.inv .tot div { display: flex; justify-content: space-between; padding: 4px 0; }
.inv .tot .gt { font-weight: 800; font-size: 16px; border-top: 2px solid #111; margin-top: 6px; padding-top: 8px; }
.inv .st { display: inline-block; padding: 3px 12px; border-radius: 99px; font-weight: 700; font-size: 12px; }
.inv .ft { margin-top: 20px; padding-top: 12px; border-top: 1px solid #EFE6E8; color: #666; font-size: 12px; }

/* ===== Dashboard (colourful tiles) ===== */
.hello { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 4px 2px 18px; }
.hello small { color: var(--mut); font-size: 14px; display: block; }
.hello h1 { font-size: 28px; letter-spacing: -0.03em; margin: 2px 0; color: var(--ink); }
.hello .dt { text-align: right; color: var(--mut); font-size: 13px; }
.hello .av { width: 52px; height: 52px; border-radius: 50%; background: var(--g); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; margin: 0 0 6px auto; overflow: hidden; }
.hello .av img { width: 100%; height: 100%; object-fit: cover; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { border-radius: 20px; padding: 16px; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; border: 0; text-align: left; }
.tile .ic { font-size: 22px; }
.tile b { display: block; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.tile span { color: #5b5154; font-size: 13px; }
.t1 { background: #E3F6EA; } .t2 { background: #DFF3F1; } .t3 { background: #E1EEFF; } .t4 { background: #FFF1D6; }
.t5 { background: #FBE3EA; } .t6 { background: #EAE5FA; } .t7 { background: #FFE8DC; } .t8 { background: #F3EAD0; }
.sec2h { font-size: 19px; font-weight: 800; margin: 24px 2px 12px; color: var(--ink); }
.qa2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qb { border: 0; border-radius: 20px; padding: 20px 10px; color: #fff; font-weight: 700; font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.qb i { font-style: normal; font-size: 26px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; }
.qb.a { background: linear-gradient(135deg, var(--g), var(--g3)); } .qb.b { background: linear-gradient(135deg, #E0A526, #C27A12); }
.qb.c { background: linear-gradient(135deg, #2F8F6B, #1F6B4F); } .qb.d { background: linear-gradient(135deg, #5B6BC0, #3F4C9A); }
.pill.blue { background: #E1EEFF; color: #2457A6; }
.dv { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.dv .btn { flex: 1; min-width: 120px; }
.ask { display: grid; gap: 10px; margin-top: 8px; }
.ask .btn { padding: 18px; font-size: 16px; }
.authlogo { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 14px; display: block; box-shadow: var(--sh); }

/* ===== Left drawer menu (replaces bottom tab bar) ===== */
.tabbar { display: none !important; }
.main { padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
.side { display: flex; flex-direction: column; gap: 4px; position: fixed; top: 0; bottom: 0; left: 0; width: 280px; max-width: 84vw; background: #fff; z-index: 60;
  padding: calc(18px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom)); transform: translateX(-104%); transition: transform .25s ease; box-shadow: 10px 0 40px rgba(0,0,0,.18); overflow-y: auto; height: auto; }
.side.open { transform: none; }
.scrim { position: fixed; inset: 0; background: rgba(31,25,26,.5); z-index: 55; display: none; }
.scrim.open { display: block; }
.side .sbrand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.side .sbrand .logo { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; }
.side .sbrand b { display: block; font-size: 16px; } .side .sbrand small { color: var(--mut); font-size: 12px; }
.side button { display: flex; gap: 14px; align-items: center; border: 0; background: none; padding: 13px 14px; border-radius: 14px; color: var(--ink); font-weight: 600; font-size: 15px; text-align: left; cursor: pointer; }
.side button .em { width: 26px; text-align: center; font-size: 19px; }
.side button.on { background: var(--g); color: #fff; box-shadow: 0 4px 14px rgba(107,29,47,.25); }
.side button.lo { margin-top: auto; color: var(--red); }
.menu-btn { border: 0; background: var(--g2); color: var(--g); width: 42px; height: 42px; border-radius: 14px; font-size: 20px; cursor: pointer; flex: none; }
.top { gap: 12px; }
@media (min-width: 900px) {
  .side { position: sticky; transform: none; height: 100vh; width: 250px; box-shadow: none; border-right: 1px solid var(--line); flex: none; }
  .scrim, .scrim.open { display: none !important; } .menu-btn { display: none; } .top .logo { display: none; }
}

/* ===== Professional invoice ===== */
.inv { padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: #1b1b1b; font-size: 13px; }
.inv .ih { background: var(--brand, #6B1D2F); color: #fff; padding: 22px 24px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.inv .ib { display: flex; gap: 14px; align-items: center; }
.inv .ib img { height: 56px; width: 56px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; }
.inv .ih h1 { font-size: 20px; margin: 0 0 4px; font-weight: 800; color: #fff; } .inv .sm { font-size: 12px; opacity: .88; line-height: 1.5; }
.inv .it { text-align: right; } .inv .tt { font-size: 24px; font-weight: 800; letter-spacing: .08em; } .inv .no { font-size: 14px; margin: 2px 0 8px; opacity: .92; }
.inv .st { display: inline-block; padding: 4px 14px; border-radius: 99px; font-weight: 800; font-size: 11px; letter-spacing: .04em; }
.inv .im { display: flex; gap: 24px; flex-wrap: wrap; padding: 18px 24px 6px; }
.inv .im > div { flex: 1; min-width: 150px; line-height: 1.5; } .inv .im small { display: block; color: #8a7f82; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; } .inv .im b { display: block; font-size: 14px; }
.inv table { margin: 14px 0 0; } .inv table th { background: var(--brand, #6B1D2F); color: #fff; padding: 10px 12px; font-size: 11px; border: 0; }
.inv table td { padding: 11px 12px; border-bottom: 1px solid #eee; } .inv table tbody tr:nth-child(even) td { background: #faf7f8; }
.inv .tot { width: min(300px, 100%); margin: 14px 24px 0 auto; padding-right: 0; }
.inv .tot .gt { border-top: 2px solid var(--brand, #6B1D2F); font-weight: 800; font-size: 16px; margin-top: 6px; padding-top: 8px; }
.inv .tot .bd { background: #faf1f3; border-radius: 10px; padding: 10px 12px; margin-top: 8px; color: var(--brand, #6B1D2F); font-size: 15px; }
.inv .pays { margin: 12px 24px 0; font-size: 12px; color: #555; }
.inv .ft { margin: 22px 0 0; padding: 14px 24px 20px; background: #faf7f8; border-top: 1px solid #eee; color: #666; font-size: 12px; text-align: center; }
.inv .payi { margin: 16px 24px 0; padding: 12px 14px; border: 1px dashed var(--brand, #6B1D2F); border-radius: 12px; background: #fffdf6; font-size: 13px; line-height: 1.6; }
.inv .payi b { display: block; margin-bottom: 4px; color: var(--brand, #6B1D2F); }

/* ===== Delivery tracker ===== */
.trk { display: flex; gap: 8px; margin: 4px 0 10px; }
.trk button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--mut); font-weight: 600; font-size: 12px; cursor: pointer; opacity: .6; }
.trk button i { font-style: normal; font-size: 22px; }
.trk button.done { opacity: 1; background: var(--g2); color: var(--g); border-color: var(--g); }
.trk button.cur { background: var(--g); color: #fff; box-shadow: 0 4px 12px rgba(107,29,47,.25); }

/* ===== logo sits on white (its own colour), never cropped ===== */
.top .logo, .side .sbrand .logo { object-fit: contain; background: #fff; padding: 2px; }
.hello .av { background: #fff; border: 1px solid var(--line); color: var(--g); } .hello .av img { object-fit: contain; }

/* ===== A4 invoice: white header so any logo looks right ===== */
.inv .ih { background: #fff; color: #1b1b1b; border-top: 10px solid var(--brand, #6B1D2F); border-bottom: 1px solid #eee; }
.inv .ih h1 { color: #1b1b1b; } .inv .sm { opacity: 1; color: #6b6266; }
.inv .ib img { height: auto; width: auto; max-height: 70px; max-width: 150px; background: none; padding: 0; border-radius: 0; object-fit: contain; }
.inv .tt { color: var(--brand, #6B1D2F); } .inv .no { color: #555; opacity: 1; }

/* ===== Receipt (bill) — narrow roll-paper style ===== */
.rc { background: #fff; color: #111; max-width: 340px; margin: 0 auto; padding: 18px 16px 20px; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--sh);
  font: 12.5px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.rc .rh { text-align: center; } .rc .rh img { max-height: 64px; max-width: 160px; object-fit: contain; display: block; margin: 0 auto 6px; }
.rc .rh b { font-size: 16px; display: block; } .rc .rl { border-top: 1px dashed #777; margin: 10px 0; }
.rc .rt { text-align: center; font-weight: 800; letter-spacing: .2em; margin: 2px 0 6px; }
.rc .rr { display: flex; justify-content: space-between; gap: 10px; } .rc .rr span:last-child { text-align: right; white-space: nowrap; }
.rc .ri { margin-bottom: 6px; } .rc .ri > div:first-child { font-weight: 700; }
.rc .rg { font-size: 15px; font-weight: 800; border-top: 1px solid #111; margin-top: 4px; padding-top: 4px; } .rc .rb { font-weight: 800; }
.rc .rf { text-align: center; margin-top: 4px; }

/* ===== printing ===== */
#print-root { display: none; }
@media print {
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block !important; }
  body.printing { background: #fff !important; }
  #print-root .inv, #print-root .rc { box-shadow: none; border: 0; border-radius: 0; margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-root .rc { max-width: none; }
}

.inv .ih { border-top-color: var(--brand, #6B1D2F); }
.rc .rh { margin: -18px -16px 0; padding: 16px 16px 12px; }

/* ===== Reports hub ===== */
.rtop { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; } .rtop b { font-size: 20px; }
.rsum { background: linear-gradient(135deg, var(--g), var(--g3)); color: #fff; border-radius: 22px; padding: 18px; margin-bottom: 16px; box-shadow: 0 8px 22px rgba(107,29,47,.25); }
.rsum .rs1 { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.rsum .rs1 button { border: 0; background: rgba(255,255,255,.2); color: #fff; padding: 6px 12px; border-radius: 99px; font-weight: 600; }
.rsum .rs3 { display: flex; margin-top: 14px; } .rsum .rs3 > div { flex: 1; text-align: center; border-left: 1px solid rgba(255,255,255,.3); } .rsum .rs3 > div:first-child { border: 0; text-align: left; }
.rsum small { display: block; opacity: .85; font-size: 12px; } .rsum .rs3 b { font-size: 20px; }
.rgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; } @media(min-width: 700px) { .rgrid { grid-template-columns: repeat(4, 1fr); } }
.rcd { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; box-shadow: var(--sh); }
.rcd i { font-style: normal; font-size: 26px; width: 52px; height: 52px; border-radius: 50%; background: var(--g2); display: grid; place-items: center; }
.bar2 { height: 6px; border-radius: 99px; background: #f0e6e8; margin-top: 6px; overflow: hidden; } .bar2 i { display: block; height: 100%; background: var(--g); border-radius: 99px; }

/* ===== PDF documents for lists & reports ===== */
.repdoc { background: #fff; color: #111; padding: 22px; font-size: 12px; }
#rep-doc { background: #fff; }
.rdh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 3px solid var(--g); padding-bottom: 10px; margin-bottom: 14px; }
.rdh b { font-size: 18px; } .rdh span { color: #666; font-size: 12px; }
.rdt-h { margin: 16px 0 6px; color: var(--g); font-size: 14px; }
.rdt { width: 100%; border-collapse: collapse; } .rdt th { background: var(--g); color: #fff; text-align: left; padding: 7px 8px; font-size: 11px; }
.rdt td { padding: 6px 8px; border-bottom: 1px solid #eee; } .rdt tbody tr:nth-child(even) td { background: #faf7f8; }
