/*
 * Nuvioo Payroll console — styled after @nuvioo/core-ui (Ant Design 5 + Nuvioo layout).
 * Tokens: --primary #6b6cff / --secondary #f4f4ff (core-ui styles.css), border #eaecf0,
 * menu text #344054, breadcrumb #667085, AntD defaults for controls (radius 6, 32px height).
 */
:root {
  --primary: #6b6cff;
  --primary-hover: #8a8bff;
  --primary-active: #5455e0;
  --secondary: #f4f4ff;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --border: #eaecf0;
  --border-ctl: #d9d9d9;
  --split: #f0f0f0;
  --text: rgba(0, 0, 0, 0.88);
  --text-2: rgba(0, 0, 0, 0.65);
  --text-3: rgba(0, 0, 0, 0.45);
  --menu-text: #344054;
  --crumb: #667085;
  --green: #389e0d; --green-bg: #f6ffed; --green-bd: #b7eb8f;
  --amber: #d48806; --amber-bg: #fffbe6; --amber-bd: #ffe58f;
  --red: #cf1322; --red-bg: #fff2f0; --red-bd: #ffccc7;
  --blue: #0958d9; --blue-bg: #e6f4ff; --blue-bd: #91caff;
  --purple-bg: #f4f4ff; --purple-bd: #c9c9ff;
  --radius: 6px;
  --radius-lg: 8px;
  --rail-w: 72px;
  --panel-w: 264px;
  --header-h: 72px;
  --shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  --mono: "JetBrains Mono", SFMono-Regular, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 14px; line-height: 1.5715; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: 20px; font-weight: 600; margin: 0; color: var(--text); }
h2 { font-size: 16px; font-weight: 600; margin: 0; color: var(--text); }
h3 { font-size: 14px; font-weight: 600; margin: 0; color: var(--text); }
p { margin: 0; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.mono { font-family: var(--mono); font-size: 12px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ================= Layout (core-ui Layout / Sider / Header) ================= */
.app-layout { display: flex; height: 100vh; }
.sider { display: flex; flex: none; background: #fff; border-right: 1px solid var(--border); height: 100vh; }
.modules-menu {
  width: var(--rail-w); min-width: var(--rail-w); background: var(--secondary);
  display: flex; flex-direction: column; align-items: center; padding: 8px 0;
}
.modules-menu .module-item {
  width: 100%; height: 64px; display: flex; align-items: center; justify-content: center;
  color: var(--menu-text); border: 0; background: none; position: relative;
}
.modules-menu .module-item:hover { color: var(--primary); }
.modules-menu .module-item.active { background: #fff; color: var(--primary); }
.modules-menu .spacer { flex: 1; }
.modules-menu [data-tip]:hover::after {
  content: attr(data-tip); position: absolute; left: 64px; white-space: nowrap; z-index: 50;
  background: rgba(0, 0, 0, 0.85); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: var(--radius);
}
.menu-item-container { width: var(--panel-w); display: flex; flex-direction: column; height: 100vh; }
.logo { display: block; margin: 20px 24px 16px; }
.logo img { max-width: 160px; height: auto; display: block; }
.menu-section-wrapper { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 24px; }
.menu-section-wrapper::-webkit-scrollbar { width: 6px; }
.menu-section-wrapper::-webkit-scrollbar-thumb { background: #a7adb2; border-radius: 16px; }
.menu-section-nuvioo { padding: 0 16px; margin-bottom: 18px; }
.menu-section-nuvioo > label {
  display: block; margin: 0 0 6px 11px; padding-bottom: 2px; text-transform: uppercase;
  color: var(--primary); font-weight: 700; font-size: 13px; line-height: 24px; border-bottom: 1px solid #d0d5dd;
}
.menu-section-nuvioo .menu-list { list-style: none; margin: 0; padding: 0; }
.menu-section-nuvioo .menu-item {
  display: block; padding: 8px 11px; margin-bottom: 2px; border-radius: var(--radius);
  color: #000; font-weight: 500; font-size: 14px; line-height: 22px;
}
.menu-section-nuvioo .menu-item:hover, .menu-section-nuvioo .menu-item.selected { background: var(--secondary); color: var(--primary); }
.sb-company { margin: 0 16px 16px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); }
.sb-back { font-size: 12px; color: var(--crumb); }
.sb-name { font-weight: 600; font-size: 16px; margin: 4px 0 2px; color: #000; }
.sb-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--crumb); margin-top: 2px; }

.main-layout { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; }
.nuvioo-header {
  min-height: var(--header-h); background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 25px 0 32px; gap: 16px;
}
.header-left { display: flex; align-items: center; min-width: 0; flex: 1; }
/* core-ui hides the breadcrumb (and its divider) below ~1200px; the search box shrinks too. */
@media (max-width: 1280px) {
  .header-left .separator, .nuvioo-breadcrumbs-container { display: none; }
  .search-trigger { width: 200px; }
}
.header-left h1 { flex: none; font-size: 24px; font-weight: 600; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.nuvioo-header .separator { margin: 0 24px; align-self: stretch; display: flex; align-items: center; }
.nuvioo-header .separator span { display: block; border-left: 1px solid var(--border); height: 32px; }
.nuvioo-breadcrumbs-container { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; min-width: 0; }
.nuvioo-breadcrumbs-container .module-section { font-weight: 500; font-size: 15px; color: var(--crumb); }
.nuvioo-breadcrumbs-container .module-item { font-weight: 500; font-size: 15px; color: var(--primary); }
.nuvioo-breadcrumbs-container .crumb-sep { color: #d0d5dd; }
.header-right { display: flex; align-items: center; gap: 10px; flex: none; }
.search-trigger {
  display: flex; align-items: center; gap: 8px; width: 260px; height: 32px; padding: 0 10px;
  background: var(--surface-2); border: 1px solid var(--border-ctl); border-radius: var(--radius); color: var(--text-3);
}
.search-trigger:hover { border-color: var(--primary); }
.search-trigger kbd { margin-left: auto; font-size: 11px; background: #fff; border: 1px solid var(--border-ctl); border-radius: 4px; padding: 0 4px; }
.header-btn { height: 32px; padding: 0 14px; border: 0; border-radius: var(--radius); background: var(--surface-2); color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.header-btn:hover { color: var(--primary); }
.env-tag { font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 0 8px; line-height: 22px; border-radius: 4px; border: 1px solid var(--amber-bd); background: var(--amber-bg); color: var(--amber); }
.env-tag.live { border-color: var(--green-bd); background: var(--green-bg); color: var(--green); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 600; }
.content { flex: 1; overflow-y: auto; padding: 24px; }
.page { max-width: 1180px; margin: 0 auto; }
.page.wide { max-width: 1400px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; min-height: 36px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-desc { color: var(--text-2); margin: -8px 0 16px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; }
.breadcrumb .sep { color: var(--text-3); font-weight: 400; }
.breadcrumb .dim { color: var(--crumb); }

/* ================= Buttons (AntD Button) ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 4px 15px;
  border-radius: var(--radius); border: 1px solid var(--primary); background: var(--primary); color: #fff;
  font-weight: 400; white-space: nowrap; box-shadow: 0 2px 0 rgba(107, 108, 255, 0.1); transition: all .2s;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn:active { background: var(--primary-active); }
.btn:disabled, .btn.disabled { background: rgba(0,0,0,.04); border-color: var(--border-ctl); color: rgba(0,0,0,.25); box-shadow: none; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--text); border-color: var(--border-ctl); box-shadow: 0 2px 0 rgba(0,0,0,.02); }
.btn-outline:hover { background: #fff; color: var(--primary-hover); border-color: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: rgba(0,0,0,.04); color: var(--text); border-color: transparent; }
.btn-danger { background: #ff4d4f; border-color: #ff4d4f; box-shadow: 0 2px 0 rgba(255,38,5,.06); }
.btn-danger:hover { background: #ff7875; border-color: #ff7875; }
.btn-blue { background: var(--primary); border-color: var(--primary); }
.btn-sm { height: 24px; padding: 0 7px; font-size: 14px; border-radius: 4px; }
.btn-link { background: none; border: 0; color: var(--primary); padding: 0; }
.btn-link:hover { color: var(--primary-hover); }
.btn-link:disabled { color: rgba(0,0,0,.25); cursor: not-allowed; }
.icon-btn { width: 32px; height: 32px; border-radius: var(--radius); border: 1px solid transparent; background: none; display: grid; place-items: center; color: var(--text-2); }
.icon-btn:hover { background: rgba(0,0,0,.06); color: var(--text); }
.icon-btn.bordered { border-color: var(--border-ctl); background: #fff; }
.icon-btn.bordered:hover { border-color: var(--primary-hover); color: var(--primary-hover); }
.copy-btn { border: 0; background: none; color: var(--text-3); padding: 0 2px; vertical-align: middle; }
.copy-btn:hover { color: var(--primary); }

/* ================= Cards ================= */
.card { background: var(--surface); border: 1px solid var(--split); border-radius: var(--radius-lg); }
.card-pad { padding: 20px 24px; }
.card + .card, .stack > * + * { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 24px 0; min-height: 40px; }
.card-head .actions { margin-left: auto; display: flex; gap: 8px; }
.card-desc { color: var(--text-2); padding: 4px 24px 0; }
.card-body { padding: 14px 24px 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.grid-4 > div { padding: 18px 24px; border-right: 1px solid var(--split); }
.grid-4 > div:last-child { border-right: 0; }
.stat-label { color: var(--text-3); font-size: 14px; margin-bottom: 6px; }
.stat-value { display: flex; align-items: center; gap: 8px; font-weight: 500; flex-wrap: wrap; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--split); }
.kv:last-child { border-bottom: 0; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0; }
.kv-grid dt { color: var(--text-3); font-size: 12px; }
.kv-grid dd { margin: 2px 0 0; }
.split { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.split > * { min-width: 0; } /* let wide tables scroll inside their column instead of pushing the aside off-screen */
.divider { border-top: 1px solid var(--split); margin: 20px 0; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ================= Alerts (AntD Alert) ================= */
.banner { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: var(--radius-lg); background: var(--blue-bg); border: 1px solid var(--blue-bd); margin-bottom: 16px; }
.banner .go { margin-left: auto; font-weight: 500; white-space: nowrap; }
.banner.warn { background: var(--amber-bg); border-color: var(--amber-bd); }
.banner.danger { background: var(--red-bg); border-color: var(--red-bd); }
.banner.ok { background: var(--green-bg); border-color: var(--green-bd); }
.info-dot { width: 16px; height: 16px; border-radius: 50%; background: #1677ff; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }

/* ================= Tags & status (AntD Tag / Badge) ================= */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 20px; padding: 0 7px; border-radius: 4px; border: 1px solid var(--border-ctl); background: var(--surface-2); color: var(--text); white-space: nowrap; }
.badge.green { background: var(--green-bg); border-color: var(--green-bd); color: var(--green); }
.badge.amber { background: var(--amber-bg); border-color: var(--amber-bd); color: var(--amber); }
.badge.red { background: var(--red-bg); border-color: var(--red-bd); color: var(--red); }
.badge.blue { background: var(--purple-bg); border-color: var(--purple-bd); color: var(--primary); }
.dot-status { display: inline-flex; align-items: center; gap: 8px; }
.dot-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dot-status.green { color: #52c41a; } .dot-status.amber { color: #faad14; } .dot-status.red { color: #ff4d4f; } .dot-status.gray { color: #d9d9d9; }
.dot-status span { color: var(--text); }

/* ================= Tabs / Segmented ================= */
.tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--split); margin-bottom: 16px; overflow-x: auto; }
.tab { padding: 12px 0; color: var(--text); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.tab:hover { color: var(--primary-hover); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.seg { display: inline-flex; background: rgba(0,0,0,.04); border-radius: var(--radius-lg); padding: 2px; }
.seg button { border: 0; background: none; padding: 3px 11px; border-radius: var(--radius); color: var(--text-2); }
.seg button.active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 1px 6px -1px rgba(0,0,0,.02), 0 2px 4px rgba(0,0,0,.02); }
.count { font-size: 12px; background: rgba(0,0,0,.06); border-radius: 10px; padding: 0 7px; color: var(--text-2); }
.tab.active .count { background: var(--secondary); color: var(--primary); }

/* ================= Tables (AntD Table) ================= */
.table-wrap { background: var(--surface); border: 1px solid var(--split); border-radius: var(--radius-lg); overflow: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 600; color: var(--text); padding: 12px 16px; border-bottom: 1px solid var(--split); white-space: nowrap; background: var(--surface-2); position: sticky; top: 0; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--split); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .rownum { color: var(--text-3); width: 40px; }
.tbl tfoot td { font-weight: 600; border-top: 1px solid var(--split); background: var(--surface-2); }
.empty { text-align: center; padding: 32px 16px; color: var(--text-3); }
.empty strong { display: block; color: var(--text-2); margin-bottom: 4px; font-weight: 500; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.filters .field { min-width: 160px; margin: 0; }

/* ================= Forms (AntD Form / Input / Select) ================= */
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; color: var(--text); }
.field .hint { font-size: 14px; color: var(--text-3); margin-top: 4px; }
.field .err { font-size: 14px; color: #ff4d4f; margin-top: 4px; }
.field .err:empty, .field .hint:empty { display: none; }
.input, .select, textarea.input {
  width: 100%; height: 32px; border: 1px solid var(--border-ctl); border-radius: var(--radius); padding: 4px 11px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
textarea.input { height: auto; min-height: 72px; }
.input:hover, .select:hover { border-color: var(--primary-hover); }
.input:focus, .select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(107, 108, 255, 0.12); }
.input[readonly], .input:disabled, .select:disabled { background: rgba(0,0,0,.04); color: rgba(0,0,0,.25); border-color: var(--border-ctl); cursor: not-allowed; }
.input.invalid, .select.invalid { border-color: #ff4d4f; }
.input-group { display: flex; align-items: center; gap: 6px; }
.input-group .input { flex: 1; }
.suffix { color: var(--text-3); }
.check { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; cursor: pointer; }
.check input, .radio-card input { accent-color: var(--primary); margin-top: 3px; }
.inline-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.inline-field .btns { display: flex; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.radio-card { display: flex; gap: 10px; border: 1px solid var(--border-ctl); border-radius: var(--radius-lg); padding: 10px 14px; cursor: pointer; margin-bottom: 8px; background: #fff; }
.radio-card:hover:not(:disabled) { border-color: var(--primary-hover); }
.radio-card.selected { border-color: var(--primary); background: var(--secondary); }
.radio-card small { display: block; color: var(--text-3); }
.radio-card:disabled { opacity: .5; cursor: not-allowed; }
.toggle { position: relative; width: 44px; height: 22px; display: inline-block; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: rgba(0,0,0,.25); border-radius: 22px; transition: .2s; cursor: pointer; }
.toggle span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 2px 4px rgba(0,35,11,.2); }
.toggle input:checked + span { background: var(--primary); }
.toggle input:checked + span::before { transform: translateX(22px); }
.toggle input:disabled + span { opacity: .4; cursor: not-allowed; }
.seg-toggle { display: inline-flex; border: 1px solid var(--border-ctl); border-radius: var(--radius); overflow: hidden; }
.seg-toggle button { border: 0; background: #fff; padding: 0 15px; height: 30px; }
.seg-toggle button + button { border-left: 1px solid var(--border-ctl); }
.seg-toggle button.active { background: var(--primary); color: #fff; }

/* ================= Drawer / Modal / Dropdown / Message ================= */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 100vw; background: #fff; z-index: 1001; display: flex; flex-direction: column; box-shadow: var(--shadow); animation: slideIn .2s ease-out; }
.drawer.wide { width: 640px; }
.drawer.xl { width: min(1100px, 92vw); }
.drawer-head { display: flex; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--split); gap: 12px; flex-direction: row-reverse; }
.drawer-head h2 { flex: 1; font-size: 16px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px; }
.drawer-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--split); }
@keyframes slideIn { from { transform: translateX(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 520px; max-width: 92vw; max-height: 88vh; background: #fff; border-radius: var(--radius-lg); z-index: 1001; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.modal.wide { width: 760px; }
.modal-head { padding: 20px 24px 8px; display: flex; align-items: center; gap: 8px; }
.modal-head h2 { flex: 1; }
.modal-body { padding: 8px 24px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 24px 20px; }
.menu { position: fixed; z-index: 1050; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 4px; min-width: 220px; }
.menu button { display: flex; width: 100%; align-items: center; gap: 8px; text-align: left; border: 0; background: none; padding: 5px 12px; border-radius: 4px; line-height: 22px; }
.menu button:hover:not(:disabled) { background: rgba(0,0,0,.04); }
.menu button:disabled { color: rgba(0,0,0,.25); cursor: not-allowed; }
.menu button.danger { color: #ff4d4f; }
.menu button.danger:hover:not(:disabled) { background: #ff4d4f; color: #fff; }
.menu button.danger:disabled { color: rgba(255,77,79,.35); }
.menu .sep { border-top: 1px solid var(--split); margin: 4px 0; }
.menu .menu-title { padding: 6px 12px 2px; font-size: 12px; color: var(--text-3); }
.toast-root { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 1100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #fff; color: var(--text); padding: 9px 12px 9px 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow); position: relative; animation: drop .2s; }
.toast::before { content: "✓"; position: absolute; left: 12px; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: #52c41a; color: #fff; font-size: 10px; display: grid; place-items: center; }
.toast.error::before { content: "!"; background: #ff4d4f; }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ================= Domain specific ================= */
.timeline { list-style: none; padding: 0; margin: 12px 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; color: var(--text-3); }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #d9d9d9; background: #fff; }
.timeline li::after { content: ""; position: absolute; left: 5px; top: 17px; bottom: 0; width: 2px; background: var(--split); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--text); }
.timeline li.done::before { border-color: var(--primary); background: var(--primary); }
.timeline li.done::after { background: var(--primary); }
.timeline li.fail::before { border-color: #ff4d4f; background: #ff4d4f; }
.step-card { display: flex; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--split); }
.step-card:last-child { border-bottom: 0; }
.step-num { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-ctl); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; color: var(--text-3); }
.step-num.done { background: var(--primary); color: #fff; border-color: var(--primary); }
.param { padding: 16px 0; border-bottom: 1px solid var(--split); }
.param:last-child { border-bottom: 0; }
.param-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.param-desc { color: var(--text-3); font-size: 13px; max-width: 760px; margin-bottom: 8px; }
.param-ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.param-ctrl .input, .param-ctrl .select { max-width: 300px; }
.credit-bar { height: 8px; background: rgba(0,0,0,.06); border-radius: 100px; overflow: hidden; margin: 10px 0 8px; }
.credit-bar > div { height: 100%; background: var(--primary); }
.big-money { font-size: 24px; font-weight: 600; }
.report-card { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--split); }
.report-card:last-child { border-bottom: 0; }
.report-card .txt { flex: 1; }
.editor-table td { padding: 6px 8px; }
.editor-table th { padding: 8px; }
.money-input { text-align: right; font-variant-numeric: tabular-nums; }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.summary-strip > div { padding: 16px 24px; border-right: 1px solid var(--split); }
.summary-strip > div:last-child { border-right: 0; }
.summary-strip .v { font-size: 20px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.wizard { max-width: 400px; margin: 24px auto; }
.wizard-card { border: 1px solid var(--split); border-radius: 12px; padding: 24px; background: #fff; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.wizard-card .opt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.wizard-card .opt { border: 1px solid var(--border-ctl); border-radius: var(--radius-lg); padding: 12px 8px; cursor: pointer; }
.wizard-card .opt.selected { border-color: var(--primary); background: var(--secondary); color: var(--primary); }
.wizard-card .big { font-size: 18px; font-weight: 500; margin: 2px 0 12px; }
.wizard-card .lbl { font-size: 12px; color: var(--text-3); }
.wizard-card .field { text-align: left; }
.modal.search-modal { top: 96px; transform: translateX(-50%); width: 600px; }
.search-results button { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; background: none; padding: 8px 12px; border-radius: var(--radius); text-align: left; }
.search-results button:hover, .search-results button.hl { background: var(--secondary); }
.code-block { background: var(--surface-2); border: 1px solid var(--split); border-radius: var(--radius); padding: 12px; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-all; }

@media (max-width: 990px) {
  .menu-item-container { display: none; }
  .modules-menu { width: 56px; min-width: 56px; }
  .header-left .separator, .nuvioo-breadcrumbs-container, .search-trigger span { display: none; }
  .search-trigger { width: auto; }
  .content { padding: 12px; }
  .grid-2, .split, .form-row { grid-template-columns: 1fr; }
  .grid-4, .summary-strip { grid-template-columns: 1fr 1fr; }
}
/* The option already in effect (e.g. current payment method): primary look, not clickable. */
.btn.is-current:disabled { background: var(--primary); border-color: var(--primary); color: #fff; opacity: .85; cursor: default; }
