:root {
  --green: #5cb85c;
  --green-dark: #4a9d4a;
  /* themable slots (default = Service Program green) */
  --topbar-bg: #5cb85c;
  --accent: #5cb85c;
  --accent-dark: #4a9d4a;
  --sidebar: #34404a;
  --sidebar-hover: #2b353d;
  --sidebar-active: #5cb85c;
  --bg: #eceff1;
  --panel: #ffffff;
  --ink: #33414e;
  --muted: #8a97a4;
  --line: #dfe4e8;
  --link: #2f7bc4;
  --red: #d64545;
  --amber: #d98a1a;
  --shadow: 0 1px 3px rgba(30,50,70,.08);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 13px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { cursor: pointer; text-decoration: none; color: inherit; }
input, select, button, textarea { font-family: inherit; }

/* ================= THEME BY MODULE =================
   Books modules (QuickBooks Desktop look): navy chrome, QB-green actions.
   Service modules (Tasks/Routes): green Service-Program look (the default). */
body[data-mode="books"] {
  --topbar-bg: #21456e;     /* QuickBooks Desktop navy */
  --accent: #2ca01c;        /* QuickBooks green */
  --accent-dark: #238516;
  --sidebar: #1f3b5c;       /* navy icon bar */
  --sidebar-hover: #18304b;
  --link: #2568a8;
}
body[data-mode="books"] .brand-accent::after { content: " · Books"; font-weight: 400; opacity: .8; font-size: 13px; }
body[data-mode="service"] .brand-accent::after { content: " · Scheduling"; font-weight: 400; opacity: .85; font-size: 13px; }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; background: var(--topbar-bg); color: #fff; height: 50px; padding: 0 14px; gap: 14px; transition: background .2s; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.hamburger { font-size: 18px; cursor: pointer; opacity: .95; }
.brand { font-size: 18px; font-weight: 300; letter-spacing: .3px; }
.brand-accent { font-weight: 700; }
.search-wrap { flex: 0 1 360px; }
.search-wrap input { width: 100%; border: none; border-radius: 4px; padding: 7px 12px; font-size: 13px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.company-switch select { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; padding: 5px 8px; font-size: 13px; }
.company-switch select option { color: #333; }
.topbar-icon { cursor: pointer; font-size: 15px; opacity: .95; }
.user-chip { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.avatar { background: rgba(255,255,255,.25); border-radius: 50%; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }

/* Hub mode: no sidebar/search chrome, full-bleed cards */
body[data-mode="hub"] { --topbar-bg: #21456e; }
body[data-mode="hub"] .search-wrap, body[data-mode="hub"] #switchTop, body[data-mode="hub"] #hamburger { display: none; }
body[data-mode="hub"] .layout { display: block; }

/* ---------- QuickBooks-style menu bar (books mode) ---------- */
.menubar { display: flex; align-items: stretch; background: #eef1f4; border-bottom: 1px solid #d3dae1; height: 32px; padding: 0 8px; position: relative; z-index: 40; }
.menu { position: relative; display: flex; align-items: center; }
.menu-label { padding: 0 12px; height: 32px; display: flex; align-items: center; font-size: 13px; color: #33414e; cursor: pointer; user-select: none; }
.menu:hover .menu-label, .menu.open .menu-label { background: #21456e; color: #fff; }
.menu-drop { display: none; position: absolute; top: 32px; left: 0; min-width: 230px; background: #fff; border: 1px solid #c7d0d8; box-shadow: 0 8px 24px rgba(20,40,70,.18); border-radius: 0 0 5px 5px; padding: 4px 0; }
.menu.open .menu-drop { display: block; }
.menu-item { display: block; padding: 7px 16px; font-size: 13px; color: #33414e; white-space: nowrap; cursor: pointer; }
.menu-item:hover { background: #21456e; color: #fff; }
body[data-mode="service"] .menubar, body[data-mode="hub"] .menubar { display: none; }

/* ---------- Layout / sidebar ---------- */
.layout { display: flex; min-height: calc(100vh - 50px); }
.sidebar { width: 210px; background: var(--sidebar); flex-shrink: 0; padding-bottom: 20px; transition: margin-left .18s; }
.sidebar.collapsed { margin-left: -210px; }
.nav-section { color: #8b98a5; font-size: 11px; letter-spacing: .08em; padding: 16px 18px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 11px 18px; color: #cdd6de; font-size: 14px; border-left: 3px solid transparent; }
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active { background: var(--sidebar-hover); color: #fff; border-left-color: var(--accent); }
.ni-icon { width: 18px; text-align: center; font-size: 14px; }
.shared-tag { margin-left: auto; font-size: 9px; background: var(--accent); color: #fff; padding: 1px 7px; border-radius: 20px; font-weight: 700; }

/* Expandable sidebar groups (service project) */
.nav-group-head { display: flex; align-items: center; gap: 11px; padding: 11px 18px; color: #cdd6de; font-size: 14px; cursor: pointer; user-select: none; }
.nav-group-head:hover { background: var(--sidebar-hover); color: #fff; }
.nav-group-head .caret { margin-left: auto; font-size: 11px; transition: transform .15s; }
.nav-group.open .nav-group-head .caret { transform: rotate(90deg); }
.nav-group .nav-sub { display: none; }
.nav-group.open .nav-sub { display: block; padding: 2px 0 6px; background: rgba(0,0,0,.13); }
.nav-item.sub { padding: 8px 18px 8px 42px; font-size: 13px; color: #b6c2cd; }
.nav-item.sub:hover { background: var(--sidebar-hover); color: #fff; }

/* ---------- Content ---------- */
.content { flex: 1; padding: 18px 22px; overflow-x: auto; min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.breadcrumb h1 { font-size: 22px; font-weight: 400; margin: 0; color: #4a5763; }
.breadcrumb .crumbs { color: var(--muted); font-size: 12px; }
.breadcrumb .crumbs a { color: var(--link); }

/* Toolbar above grids */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filters select, .filters input { border: 1px solid var(--line); border-radius: 4px; padding: 6px 9px; font-size: 13px; background: #fff; }

/* ---------- Buttons ---------- */
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 7px 12px; border-radius: 4px; font-weight: 600; font-size: 13px; cursor: pointer; }
.btn:hover { background: #f2f5f7; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent-dark); }
.btn.primary:hover { background: var(--accent-dark); }
.btn.blue { background: var(--link); color: #fff; border-color: #2668a8; }
.btn.blue:hover { filter: brightness(.95); }
.btn.danger { color: var(--red); border-color: #eecaca; }
.btn.sm { padding: 4px 8px; font-size: 12px; }
.spacer { flex: 1; }

/* ---------- Cards / KPIs ---------- */
.grid { display: grid; gap: 14px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; box-shadow: var(--shadow); padding: 16px; }
.kpi .label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.kpi .value { font-size: 25px; font-weight: 700; margin-top: 5px; }
.kpi .value.green { color: var(--green-dark); } .kpi .value.red { color: var(--red); }
.mt { margin-top: 18px; }

/* ---------- Tables (dense, Service-Program style) ---------- */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { text-align: left; padding: 8px 11px; border-bottom: 1px solid #eef1f3; font-size: 13px; }
th { background: #f6f8f9; color: #6a7883; font-weight: 600; border-bottom: 1px solid var(--line); position: relative; }
th .funnel { color: #c2ccd3; font-size: 10px; margin-left: 5px; }
tbody tr:hover { background: #f5f9f5; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: none; }
.rowlink { color: var(--link); font-weight: 600; }
.rowlink:hover { text-decoration: underline; }
.empty { padding: 36px; text-align: center; color: var(--muted); white-space: normal; }
.rownum { color: #b6c0c8; width: 32px; }

/* ---------- Badges ---------- */
.badge { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 3px; text-transform: capitalize; }
.badge.paid, .badge.done, .badge.posted { background: #e3f6ec; color: var(--green-dark); }
.badge.draft, .badge.cancelled { background: #eef1f3; color: var(--muted); }
.badge.sent, .badge.scheduled { background: #e5f0fb; color: var(--link); }
.badge.overdue { background: #fbe6e6; color: var(--red); }
.badge.open { background: #fff3e0; color: #b5701a; }
.badge.in_progress { background: #fff2dc; color: var(--amber); }

/* geocode dot */
.geo-yes { color: var(--green); } .geo-no { color: #cfd6db; }

/* ---------- Pagination ---------- */
.pager { display: flex; align-items: center; gap: 4px; margin-top: 14px; }
.pager button { border: 1px solid var(--line); background: #fff; color: var(--link); min-width: 32px; height: 32px; border-radius: 3px; cursor: pointer; font-size: 13px; }
.pager button.on { background: var(--link); color: #fff; border-color: var(--link); }
.pager button:disabled { color: #c2ccd3; cursor: default; }
.pager .display { margin-left: auto; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* ---------- Modal / forms ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(20,35,50,.5); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 3000; overflow-y: auto; }
.modal { background: #fff; border-radius: 6px; width: 100%; max-width: 620px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: var(--topbar-bg); color: #fff; border-radius: 6px 6px 0 0; }
.modal-head h2 { margin: 0; font-size: 17px; font-weight: 500; }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.close-x { font-size: 21px; color: #fff; cursor: pointer; line-height: 1; opacity: .9; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; background: #fff; }
.field textarea { resize: vertical; min-height: 60px; }
.field-row { display: flex; gap: 12px; } .field-row .field { flex: 1; }

/* QuickBooks-style Write Check (green check) */
.chk-lbl { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.check-paper { background: linear-gradient(135deg, #e9f5ec, #f3faf4); border: 1px solid #bcdcc4; border-radius: 8px; padding: 20px 24px; }
.check-topline { text-align: right; margin-bottom: 16px; }
.check-topline input, .check-paper select, .card select[name=bank_account] { border: 1px solid #9cc7a6; border-radius: 4px; padding: 5px 7px; font-size: 13px; background: #fff; }
.check-pay { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.check-payee { flex: 1; border: none; border-bottom: 1px solid #8fbf9a; background: transparent; padding: 5px 6px; font-size: 15px; }
.check-dollar { font-size: 18px; font-weight: 700; color: #2a6b39; }
.check-amt { width: 140px; border: 1px solid #8fbf9a; border-radius: 4px; padding: 6px 9px; font-size: 15px; text-align: right; background: #fff; }
.check-words { border-bottom: 1px solid #8fbf9a; padding: 8px 0; margin-bottom: 16px; display: flex; align-items: baseline; gap: 10px; font-style: italic; color: #2f4636; }
.check-dots { flex: 1; border-bottom: 2px dotted #9cc7a6; }
.check-addr textarea { width: 100%; max-width: 340px; border: 1px solid #cfe4d4; border-radius: 5px; padding: 7px; background: rgba(255,255,255,.65); font: inherit; }
.check-memo { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.check-memo input { flex: 1; max-width: 360px; border: none; border-bottom: 1px solid #8fbf9a; background: transparent; padding: 5px 6px; }
.check-paper input:focus, .check-paper textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* QuickBooks-style invoice document — clean, gently color-separated */
.card.qb-inv { padding: 24px 26px; max-width: 940px; }
.qb-inv { font-size: 13px; }
.qb-inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; border-bottom: 3px solid var(--accent); padding-bottom: 16px; margin-bottom: 18px; }
.qb-inv-title { font-size: 34px; font-weight: 300; color: var(--topbar-bg); letter-spacing: .5px; }
.qb-inv-meta { display: grid; grid-template-columns: auto auto; gap: 9px 16px; background: #f5f8fc; border: 1px solid #e2e9f2; border-radius: 8px; padding: 14px 16px; }
.qb-inv-meta > div, .qb-inv-billto > div { display: flex; flex-direction: column; }
.qb-inv-meta label, .qb-inv-billto label, .qb-inv-msg label { font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .03em; }
.qb-inv-meta input, .qb-inv-meta select, .qb-inv-billto select { border: 1px solid var(--line); border-radius: 5px; padding: 6px 8px; font-size: 13px; background: #fff; }
.qb-inv-billto { display: flex; gap: 24px; margin-bottom: 18px; background: #f5f8fc; border: 1px solid #e2e9f2; border-radius: 8px; padding: 14px 16px; }
.qb-inv-billto select { min-width: 240px; }
.qb-billaddr { margin-top: 8px; font-size: 12px; color: #3a4652; line-height: 1.55; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; }
.qb-items { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #dbe3ec; border-radius: 8px; overflow: hidden; }
.qb-items th { background: #eaf0f7; text-align: left; padding: 9px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: #4a5b6d; border-bottom: 1px solid #dbe3ec; }
.qb-items th + th, .qb-items td + td { border-left: 1px solid #eef1f3; }
.qb-items tbody tr:nth-child(even) { background: #f9fbfd; }
.qb-items td { border-top: 1px solid #eef1f3; padding: 0; }
.qb-items tbody tr:first-child td { border-top: none; }
.qb-items input { width: 100%; border: none; padding: 8px 10px; background: transparent; font-size: 13px; }
.qb-items input:focus { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 3px; }
.qb-items .amt { padding: 8px 10px; font-variant-numeric: tabular-nums; }
.qb-items .close-x { display: block; text-align: center; }
.qb-inv-bottom { display: flex; gap: 24px; margin-top: 18px; align-items: flex-start; }
.qb-inv-msg { flex: 1; display: flex; flex-direction: column; }
.qb-inv-msg textarea { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; min-height: 44px; font: inherit; resize: vertical; }
.qb-inv-totals { width: 300px; flex-shrink: 0; background: #f5f8fc; border: 1px solid #e2e9f2; border-radius: 8px; padding: 12px 16px; }
.qb-inv-totals > div { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid #e5ebf2; }
.qb-inv-totals .tot { font-weight: 700; font-size: 15px; }
.qb-inv-totals .bal { font-weight: 800; font-size: 18px; color: var(--topbar-bg); border-bottom: none; margin: 8px -16px -12px; padding: 12px 16px; background: #e7eef7; border-radius: 0 0 8px 8px; }
.qb-inv-totals input { border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; background: #fff; }

/* invoice line items */
.line-items { width: 100%; border-collapse: collapse; margin-top: 6px; white-space: normal; }
.line-items th { background: none; padding: 4px 6px; border: none; }
.line-items td { padding: 4px 6px; border: none; }
.line-items input { padding: 6px 8px; }
.li-total { text-align: right; font-weight: 700; padding: 10px 6px 0; }

.muted { color: var(--muted); } .right { text-align: right; }
.flex { display: flex; gap: 8px; align-items: center; }
.info-banner { background: #e5f0fb; border: 1px solid #c9def2; color: #1d5c96; padding: 9px 13px; border-radius: 4px; font-size: 13px; margin-bottom: 14px; }
.pill-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.pill-toggle button { border: none; background: #fff; padding: 7px 13px; cursor: pointer; font-weight: 600; font-size: 13px; }
.pill-toggle button.on { background: var(--link); color: #fff; }
#map { height: 560px; border-radius: 5px; border: 1px solid var(--line); }
.stop-pin-in { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.racts { white-space: nowrap; }
.route-adv { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; background: #f6f8f9; border: 1px solid var(--line); border-radius: 5px; padding: 10px 12px; }
.route-adv label { font-size: 12px; font-weight: 600; color: var(--muted); }
.route-adv select, .route-adv input { border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; font-size: 13px; }
.ract { display: inline-block; padding: 0 3px; cursor: pointer; text-decoration: none; font-size: 14px; }
.ract:hover { transform: scale(1.15); }
.trip-stop { display: flex; gap: 9px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid #eef1f3; font-size: 13px; }
.trip-n { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--link); color: #fff; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* ---------- Home hub (the 3 projects) ---------- */
.hub { min-height: calc(100vh - 50px); background: linear-gradient(160deg, #223a5e, #2c5b8f 60%, #3a7d44); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; }
.hub-title { color: #fff; text-align: center; margin-bottom: 6px; font-size: 30px; font-weight: 300; }
.hub-sub { color: #d5e2f0; text-align: center; margin-bottom: 34px; font-size: 15px; }
.hub-cards { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.hub-card { position: relative; background: #fff; border-radius: 12px; width: 270px; padding: 28px 24px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .12s, box-shadow .12s; border-top: 5px solid var(--card-accent, #2c5b8f); }
.hub-newwin { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #8a97a4; font-size: 16px; background: #f2f5f7; border: 1px solid var(--line); }
.hub-newwin:hover { background: var(--card-accent, #2c5b8f); color: #fff; border-color: var(--card-accent, #2c5b8f); }
.hub-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.32); }
.hub-card .hc-icon { font-size: 40px; }
.hub-card h3 { margin: 12px 0 4px; font-size: 19px; color: #2a3742; }
.hub-card .hc-kind { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--card-accent, #2c5b8f); padding: 2px 9px; border-radius: 20px; margin-bottom: 10px; }
.hub-card p { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.hub-foot { color: #cdddf0; margin-top: 30px; font-size: 12px; text-align: center; }
.switch-project { display: block; margin: 4px 10px 10px; text-align: center; color: #aeb9c4; font-size: 12px; padding: 8px; border: 1px dashed #4a5763; border-radius: 6px; }
.switch-project:hover { color: #fff; border-color: var(--accent); }

/* ---------- Employee Center (QuickBooks-style) ---------- */
.ec-wrap { display: flex; gap: 14px; align-items: flex-start; }
.ec-list { flex: 0 0 230px; padding: 0; overflow: hidden; }
.ec-list-head { padding: 8px; border-bottom: 1px solid var(--line); }
.ec-list-head select { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; font-size: 13px; font-weight: 600; }
.ec-list-col { padding: 6px 12px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: #f6f8f9; border-bottom: 1px solid var(--line); }
.ec-names { max-height: 620px; overflow: auto; }
.emp-row { padding: 8px 12px; border-bottom: 1px solid #eef1f3; cursor: pointer; font-size: 13px; }
.emp-row:hover { background: #f5f9fc; }
.emp-row.on { background: #dff0d8; border-left: 3px solid var(--green); font-weight: 600; }
.ec-main { flex: 1; min-width: 0; }
.ec-top { display: flex; gap: 14px; align-items: flex-start; }
.ec-info { flex: 1; min-width: 0; }
.ec-title { font-size: 26px; font-weight: 400; color: #4a5763; margin: 0 0 14px; }
.ec-fields { width: 100%; border-collapse: collapse; font-size: 13px; }
.ec-fields td { padding: 4px 8px 4px 0; vertical-align: top; line-height: 1.5; }
.ec-lbl { color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; width: 90px; padding-right: 12px; }
.ec-reports { flex: 0 0 250px; }
.ec-rep-h { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 6px; }
.ec-rep { display: block; padding: 3px 0; font-size: 13px; }
.ec-txns { margin-top: 14px; padding: 0; overflow: hidden; }
.ec-tabs { display: flex; gap: 4px; background: #eef1f4; padding: 6px 8px 0; }
.ec-tabs span { padding: 6px 14px; font-size: 13px; font-weight: 600; border: 1px solid transparent; border-bottom: none; border-radius: 5px 5px 0 0; }
.ec-tabs span.on { background: #fff; border-color: var(--line); color: var(--ink); }
.prof-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 5px; border-bottom: 1px solid var(--line); padding-bottom: 3px; }

/* ---------- Payroll: Enter Payroll Information steps + Preview Paycheck ---------- */
.pay-steps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; }
.pay-steps span { color: var(--muted); font-weight: 600; }
.pay-steps span.on { color: #fff; background: var(--accent); padding: 5px 12px; border-radius: 20px; }
.pay-steps .pay-arrow { color: #c2ccd3; }
.pay-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.pay-info label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; display: block; margin-bottom: 3px; }
.pay-info input, .pay-info select { border: 1px solid var(--line); border-radius: 4px; padding: 5px 7px; }
.pd .pd-two { display: flex; gap: 18px; margin-top: 14px; }
.pd .pd-two > div { flex: 1; min-width: 0; }
.pd .qb-items th { background: #eaf0f7; }
.pd-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 2px solid var(--line); }
.pd-check { font-size: 16px; } .pd-check strong { color: var(--topbar-bg); font-size: 18px; }

/* ---------- QuickBooks-style Home workflow ---------- */
.qb-home { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.qb-band { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; }
.qb-band-head { background: #21456e; color: #fff; padding: 9px 14px; font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.qb-flow { display: flex; align-items: center; gap: 6px; padding: 22px 14px; flex-wrap: wrap; justify-content: center; }
.qb-step { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; width: 92px; text-align: center; }
.qb-step .qb-ic { width: 52px; height: 52px; border-radius: 10px; background: #eef4fb; border: 1px solid #d3e2f2; display: flex; align-items: center; justify-content: center; font-size: 24px; transition: .12s; }
.qb-step:hover .qb-ic { background: #2ca01c; border-color: #238516; transform: translateY(-2px); }
.qb-step .qb-lbl { font-size: 12px; color: #33414e; font-weight: 600; line-height: 1.2; }
.qb-arrow { color: #b7c6d6; font-size: 20px; }
.import-drop { border: 2px dashed var(--line); border-radius: 6px; padding: 22px; text-align: center; color: var(--muted); background: #fafbfc; }

/* ---------- Service-Program task dashboard ---------- */
.sp-dash { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.sp-col-left { flex: 1 1 330px; min-width: 300px; max-width: 400px; }
.sp-col-right { flex: 3 1 480px; min-width: 320px; display: flex; flex-direction: column; }
.sp-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.sp-head { display: flex; align-items: center; background: #f6f8f9; border-bottom: 1px solid var(--line); padding: 8px 12px; }
.sp-title { font-weight: 600; font-size: 13px; color: #4a5763; }
.sp-min { margin-left: auto; cursor: pointer; color: var(--muted); font-weight: 700; width: 22px; text-align: center; user-select: none; }
.sp-panel.collapsed .sp-body { display: none; }
.sp-body { padding: 14px; }
.unassigned-item { display: flex; gap: 9px; align-items: flex-start; padding: 8px 2px; border-bottom: 1px solid #eef1f3; cursor: pointer; }
.unassigned-item:hover { background: #f9fbfd; }
.u-date { background: #d64545; color: #fff; border-radius: 4px; text-align: center; padding: 4px 6px; font-size: 10px; font-weight: 700; line-height: 1.15; min-width: 40px; text-transform: uppercase; }
.cal-day-row { display: flex; border-bottom: 1px solid #eef1f3; min-height: 38px; }
.cal-day-time { width: 58px; flex-shrink: 0; padding: 5px 8px; color: var(--muted); font-size: 12px; border-right: 1px solid #eef1f3; }
.cal-day-slot { flex: 1; display: flex; flex-wrap: wrap; background: #fdfdf5; cursor: pointer; }
/* Assigned-to multi-tag input */
.at-box { position: relative; }
.at-input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
.at-drop { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-top: none; border-radius: 0 0 5px 5px; box-shadow: 0 8px 20px rgba(20,40,70,.15); z-index: 30; max-height: 220px; overflow: auto; }
.at-opt { padding: 7px 11px; font-size: 13px; cursor: pointer; }
.at-opt:hover { background: #21456e; color: #fff; }
.at-opt.at-add { color: var(--link); font-weight: 600; }
.at-opt.at-add:hover { background: var(--link); color: #fff; }
.at-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.at-chip { display: inline-flex; align-items: center; gap: 6px; background: #e5f0fb; color: var(--link); border: 1px solid #c9def2; border-radius: 20px; padding: 3px 6px 3px 11px; font-size: 12px; font-weight: 600; }
.at-x { cursor: pointer; width: 16px; height: 16px; border-radius: 50%; background: var(--link); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1; }
.at-x:hover { background: #d64545; }

/* Customer + address search dropdowns */
.cust-pick, .addr-pick { position: relative; }
.cust-drop, .addr-drop { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-top: none; border-radius: 0 0 5px 5px; box-shadow: 0 8px 22px rgba(20,40,70,.18); z-index: 200; max-height: 260px; overflow: auto; }
.cust-opt, .addr-opt { padding: 8px 11px; font-size: 13px; cursor: pointer; border-bottom: 1px solid #f2f5f7; line-height: 1.3; }
.cust-opt:hover, .addr-opt[data-i]:hover { background: #21456e; color: #fff; }
.cust-opt:hover .muted, .addr-opt[data-i]:hover .muted { color: #cfe0f2; }
.cust-add { color: var(--link); font-weight: 600; }
.cust-add:hover { background: var(--link); color: #fff; }

.cust-caret { text-align: center; color: var(--link); font-size: 17px; cursor: pointer; padding: 3px 0 7px; user-select: none; line-height: 1; }
.cust-caret:hover { color: #1858c4; }
.cust-info { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; background: #f9fbfd; }
.ci-row { padding: 3px 0; font-size: 13px; }

.fc-controls { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.fc-controls label { font-size: 12px; color: var(--muted); }
.fc-controls select { border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; font-size: 13px; }
#fcal { padding: 8px; }
#fcal .fc { font-size: 13px; }
#fcal .fc .fc-button-primary { background: var(--link); border-color: var(--link); }
#fcal .fc .fc-button-primary:not(:disabled).fc-button-active { background: #1a3d6b; border-color: #1a3d6b; }

/* Shared calendar toolbar */
.cal2-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.cal2-bar input[type=date], .cal2-bar select { border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; font-size: 13px; }
.cal2-bar #c2title { font-size: 15px; }

/* Employee-column DAY view */
.rday { display: flex; overflow: auto; max-height: 680px; }
.rday-timecol { flex: 0 0 54px; position: sticky; left: 0; background: #fff; z-index: 2; }
.rday-cols { display: flex; flex: 1; min-width: 0; }
.rday-col { flex: 1 1 160px; min-width: 150px; border-left: 1px solid #eef1f3; }
.rday-colhead { height: 34px; display: flex; align-items: center; justify-content: center; gap: 5px; font-weight: 700; font-size: 13px; background: #f6f8f9; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; }
.rday-time { display: flex; align-items: flex-start; justify-content: flex-end; padding: 1px 6px; font-size: 11px; color: var(--muted); box-sizing: border-box; }
.rday-colbody { position: relative; }
.rday-hline { border-bottom: 1px solid #eef1f3; box-sizing: border-box; }
.rday-events { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.rday-ev { position: absolute; left: 3px; right: 3px; border-radius: 4px; color: #fff; padding: 2px 5px; font-size: 11px; overflow: hidden; cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,.25); line-height: 1.25; }
.rday-ev:active { cursor: grabbing; }
.rev-time { font-weight: 700; } .rev-t { opacity: .96; }

.cal-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.cal-toolbar input[type=date] { border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; }
.cal-views { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.cal-views button { border: none; background: #fff; padding: 5px 12px; cursor: pointer; font-size: 12px; font-weight: 600; text-transform: capitalize; border-left: 1px solid var(--line); }
.cal-views button:first-child { border-left: none; }
.cal-views button.on { background: var(--link); color: #fff; }
.cal-agenda { display: grid; }
.cal-daycol { border-right: 1px solid #eef1f3; }
.cal-daycol:last-child { border-right: none; }
.cal-daycol-head { background: #f6f8f9; padding: 7px; font-size: 12px; font-weight: 700; text-align: center; border-bottom: 1px solid var(--line); }

/* ---------- Task calendar ---------- */
.cal-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f6f8f9; }
.cal-title { font-weight: 700; font-size: 15px; min-width: 170px; text-align: center; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); background: #eef1f4; }
.cal-dow div { padding: 6px 8px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; text-align: left; border-right: 1px solid #e4e8ec; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-cell { min-height: 96px; border-right: 1px solid #eef1f3; border-bottom: 1px solid #eef1f3; padding: 4px 5px; cursor: pointer; vertical-align: top; overflow: hidden; }
.cal-cell:hover { background: #f5f9f5; }
.cal-cell.empty { background: #fafbfc; cursor: default; }
.cal-cell.today { background: #eaf5ff; }
.cal-cell.today .cal-daynum { background: var(--link); color: #fff; }
.cal-daynum { font-size: 12px; font-weight: 600; color: #55636f; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.cal-task { font-size: 11px; padding: 2px 5px; margin: 2px 0; background: #fff; border: 1px solid #e4e8ec; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-task:hover { background: #f0f6ff; }
.cal-more { font-size: 10px; color: var(--muted); padding-left: 4px; }
.map-list { max-height: 560px; overflow-y: auto; }

/* ---------- Scheduling back/forward nav ---------- */
.nav-fb { display: flex; gap: 6px; padding: 8px 10px 4px; }
.fb-btn { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 5px; padding: 5px 8px; font-size: 12px; font-weight: 600; cursor: pointer; color: #33414d; }
.fb-btn:hover:not(:disabled) { background: #eef6ee; border-color: var(--green, #5cb85c); }
.fb-btn:disabled { opacity: .4; cursor: default; }

/* ---------- Receive Payments (Customer Payment page) ---------- */
.cust-pay { max-width: 1080px; }
.cp-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.cp-title { font-size: 26px; font-weight: 700; color: #33414d; }
.cp-balance { text-align: right; } .cp-balance .chk-lbl { color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.cp-balance #cpBal { font-size: 20px; font-weight: 700; color: var(--topbar-bg); }
.cp-top { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 14px; }
.cp-fields { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; flex: 1; min-width: 320px; }
.cp-fields > div { display: contents; }
.cp-fields label { color: #55636f; font-size: 12px; font-weight: 600; }
.cp-fields input, .cp-fields select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; }
.cp-methods { display: flex; gap: 6px; }
.cp-method { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 76px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 6px; background: #f6f8f9; cursor: pointer; font-size: 10px; font-weight: 700; color: #55636f; }
.cp-method .cpm-icon { font-size: 20px; }
.cp-method.sel { background: #e3f6ec; border-color: var(--green-dark); color: var(--green-dark); box-shadow: inset 0 0 0 1px var(--green-dark); }
.cp-grid { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.cp-grid th { background: #eef1f4; text-align: left; padding: 7px 10px; font-size: 11px; text-transform: uppercase; color: var(--muted); }
.cp-grid td { padding: 6px 10px; border-bottom: 1px solid #eef1f3; }
.cp-grid tbody tr:nth-child(even) { background: #f4f8fd; }
.cp-foot { display: flex; gap: 24px; align-items: flex-start; }
.cp-memo { flex: 1; min-height: 60px; border: 1px solid var(--line); border-radius: 4px; padding: 8px; }
.cp-summary { min-width: 260px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; }
.cp-summary > div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.cp-summary span { color: var(--muted); }

/* ---------- Create Statements ---------- */
.stmt-opts { display: flex; gap: 32px; flex-wrap: wrap; }
.stmt-col { flex: 1; min-width: 300px; }
.stmt-check { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; }
.stmt-check select { margin-left: 6px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; }
td strong.red, .num strong.red { color: var(--red); }

/* ---------- Task List color-coded rows ---------- */
.tl-row > td { border-top: 2px solid transparent; border-bottom: 2px solid transparent; }
.tl-row > td:first-child { border-left: 2px solid transparent; }
.tl-row > td:last-child { border-right: 2px solid transparent; }
.tl-red > td { border-top-color: #e05b5b; border-bottom-color: #e05b5b; background: #fdf1f1; }
.tl-red > td:first-child { border-left-color: #e05b5b; } .tl-red > td:last-child { border-right-color: #e05b5b; }
.tl-yellow > td { border-top-color: #e6b323; border-bottom-color: #e6b323; background: #fdf9ec; }
.tl-yellow > td:first-child { border-left-color: #e6b323; } .tl-yellow > td:last-child { border-right-color: #e6b323; }
.tl-green > td { border-top-color: #4caf50; border-bottom-color: #4caf50; background: #f2faf3; }
.tl-green > td:first-child { border-left-color: #4caf50; } .tl-green > td:last-child { border-right-color: #4caf50; }
.tl-done > td { color: var(--green-dark); background: #eaf7ee; font-style: italic; }
.tl-done > td { border-top-color: #cfe9d6; border-bottom-color: #cfe9d6; }
.tl-done .rowlink { color: var(--green-dark); }
.tl-cancel > td { color: var(--muted); background: #f6f7f8; text-decoration: line-through; }
.tl-complete { text-align: center; }
.tl-check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid #b7c1cb; border-radius: 50%; cursor: pointer; font-size: 13px; color: #fff; background: #fff; transition: all .12s; }
.tl-check:hover { border-color: var(--green-dark); }
.tl-check.on { background: var(--green-dark, #2ca01c); border-color: var(--green-dark, #2ca01c); }
.tl-legend { display: inline-flex; gap: 6px; margin-left: auto; align-items: center; }
.tl-key { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 3px; border: 2px solid; }
.tl-key.tl-red { color: #c0392b; border-color: #e05b5b; background: #fdf1f1; }
.tl-key.tl-yellow { color: #a67c09; border-color: #e6b323; background: #fdf9ec; }
.tl-key.tl-green { color: #2e7d32; border-color: #4caf50; background: #f2faf3; }
.tl-key.tl-done { color: var(--green-dark); border-color: #cfe9d6; background: #eaf7ee; font-style: italic; }

/* ---------- Projects income-vs-cost bars ---------- */
.pv-bars { min-width: 320px; }
.pv-barrow { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.pv-lbl { width: 48px; font-size: 11px; color: var(--muted); text-align: right; }
.pv-track { flex: 1; height: 12px; background: #eef1f4; border-radius: 3px; overflow: hidden; max-width: 260px; }
.pv-bar { display: block; height: 100%; border-radius: 3px; }
.pv-bar.inc { background: #4caf50; }
.pv-bar.cost { background: #2f6f8f; }
.pv-amt { font-size: 12px; font-weight: 600; min-width: 88px; }

/* ---------- Scheduling: top-bar customer search results ---------- */
.svc-search { display: flex; gap: 16px; align-items: flex-start; }
.ss-list { flex: 0 0 260px; max-height: 72vh; overflow: auto; }
.ss-cust { padding: 9px 11px; border: 1px solid var(--line); border-left: 3px solid transparent; border-radius: 6px; margin-bottom: 7px; cursor: pointer; background: #fff; }
.ss-cust:hover { background: #f6f9fb; }
.ss-cust.on { border-left-color: var(--green-dark, #2ca01c); background: #f0f8f2; }
.ss-cust .muted { font-size: 11px; }
.ss-count { float: right; background: #e7edf2; color: #45535f; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 8px; }
.ss-detail { flex: 1; min-width: 0; }
.ss-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.ss-head { display: flex; align-items: center; gap: 10px; }
.ss-head h2 { margin: 0; font-size: 20px; flex: 1; }
.ss-info { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 8px 0 4px; font-size: 13px; color: #45535f; }
.ss-sec { font-weight: 700; margin: 18px 0 6px; font-size: 15px; }

/* ---------- Scheduling: Post Invoices bar + page ---------- */
.post-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #f3f7fa; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; }
.post-bar label { font-size: 13px; color: var(--muted); }
.post-bar select { border: 1px solid var(--line); border-radius: 4px; padding: 6px 9px; font-size: 13px; background: #fff; }
.pb-count { font-weight: 700; font-size: 13px; min-width: 118px; }
.tl-pick { text-align: center; }
.pi-date, .pi-item, .pi-desc, .pi-amt, .pi-no { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 4px; padding: 5px 7px; font-size: 13px; }
.pi-amt { text-align: right; }

/* ---------- Scheduling: clickable Task # + Task Details page (TSP-style) ---------- */
.task-no { color: #2568a8; font-weight: 700; cursor: pointer; }
.task-no:hover { text-decoration: underline; }
.td-wrap { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0 0 18px; }
.td-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f7f9fb; border-radius: 8px 8px 0 0; }
.td-toolbar .btn { font-size: 12px; }
.td-status { margin-left: auto; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.td-cols { display: flex; gap: 26px; padding: 18px 22px; flex-wrap: wrap; }
.td-col { flex: 1; min-width: 320px; display: flex; flex-direction: column; gap: 12px; }
.td-field { display: flex; flex-direction: column; }
.td-field-row { display: flex; gap: 12px; }
.td-field-row .td-field { flex: 1; }
.td-field label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.td-field input, .td-field select, .td-field textarea { border: 1px solid var(--line); border-radius: 4px; padding: 7px 9px; font-size: 13px; background: #fff; width: 100%; box-sizing: border-box; }
.td-field input:disabled { background: #f2f4f6; color: #6a7681; }
.td-info { margin-top: 6px; background: #16232e; color: #cfe6ff; border-radius: 8px; padding: 14px 16px; font-size: 13px; line-height: 1.7; }
.td-info-title { font-weight: 700; color: #fff; margin-bottom: 4px; }

/* ---------- Post Invoices per-row Books select + routing table ---------- */
.pi-co, .rt-sel { border: 1px solid var(--line); border-radius: 4px; padding: 5px 7px; font-size: 13px; background: #fff; max-width: 220px; }

/* ---------- Resizable / reorderable table columns (Task List) ---------- */
table.adjustable th { cursor: grab; user-select: none; }
table.adjustable th.col-dragging { opacity: .5; cursor: grabbing; }
table.adjustable th.col-drop { box-shadow: inset 3px 0 0 var(--link); }
table.adjustable th, table.adjustable td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-resizer { position: absolute; top: 0; right: 0; width: 7px; height: 100%; cursor: col-resize; z-index: 3; }
.col-resizer:hover { background: var(--link); opacity: .35; }

/* ---------- Task List: double-click description box ---------- */
.desc-cell { cursor: pointer; }
.desc-cell:hover { background: #eef5fb; box-shadow: inset 0 0 0 1px var(--link); border-radius: 3px; }
.desc-box { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 5px; padding: 12px 14px; font: 14px/1.6 inherit; resize: vertical; }

/* ---------- Auth: login screen, user menu, users admin ---------- */
body[data-mode="login"] .search-wrap, body[data-mode="login"] .topbar-right, body[data-mode="login"] #hamburger { display: none; }
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 50px); padding: 20px; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 44px rgba(30,50,70,.14); padding: 32px 34px; width: 360px; max-width: 100%; }
.login-brand { font-size: 24px; font-weight: 300; color: var(--ink); }
.login-brand span { font-weight: 700; margin-left: 6px; }
.login-sub { color: var(--muted); margin: 4px 0 18px; }
.login-card label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 12px 0 4px; }
.login-card input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-size: 14px; }
.login-btn { width: 100%; margin-top: 18px; padding: 11px; font-size: 15px; }
.login-err { color: var(--red); font-size: 13px; min-height: 18px; margin-top: 8px; }

.user-chip { position: relative; }
.user-menu { position: absolute; right: 14px; top: 46px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(20,40,70,.18); min-width: 216px; padding: 6px 0; z-index: 60; color: var(--ink); }
.um-head { padding: 8px 14px 10px; font-weight: 700; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.um-role { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.um-item { display: block; padding: 9px 14px; font-size: 13px; cursor: pointer; color: var(--ink); }
.um-item:hover { background: #f2f5f7; }

.users-admin .ua-add { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.users-admin .ua-add input, .users-admin .ua-add select { border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; font-size: 13px; }
.users-admin .ua-add input { flex: 1; min-width: 130px; }
.ua-role { border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; font-size: 13px; }

/* ---------- Payments (Stripe) setup ---------- */
.pay-steps { padding-left: 20px; margin: 6px 0 18px; }
.pay-steps li { margin-bottom: 16px; line-height: 1.6; }
.pay-steps input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; font-size: 13px; margin-top: 6px; }
.pay-steps code { background: #eef1f4; border-radius: 3px; padding: 1px 5px; font-size: 12px; }
.pay-url { display: inline-block; background: #eef1f4; border: 1px solid var(--line); border-radius: 5px; padding: 6px 9px; font-family: monospace; font-size: 12px; word-break: break-all; }
