/* Metal Padrão — Sistema de Vendas */

:root {
  /* Brand */
  --mp-yellow: #ffc431;
  --mp-yellow-deep: #f0a800;
  --mp-yellow-soft: #fff3c4;
  --mp-black: #0d0d0d;
  --mp-ink: #1a1a1a;

  /* Neutrals (warm cool) */
  --bg-app: #f5f5f3;
  --bg-card: #ffffff;
  --bg-subtle: #fafaf8;
  --bg-row-hover: #faf8f0;
  --border: #e6e5e0;
  --border-strong: #d6d4cc;
  --text-1: #1a1a1a;
  --text-2: #555555;
  --text-3: #8a8a85;
  --text-4: #aaaaa5;

  /* Status */
  --st-prev: #9aa0a6;
  --st-comp: #b07a16;
  --st-fat:  #1d7a3b;

  /* Sizing */
  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 14px;
  --sidebar-w: 248px;
  --sidebar-w-collapsed: 64px;
  --topbar-h: 60px;

  /* Densidade */
  --row-h: 56px;
  --row-py: 14px;

  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

[data-density="compact"] {
  --row-h: 44px;
  --row-py: 9px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-app);
  color: var(--text-1);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ========== Login ========== */

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-app);
}
.login__brand {
  background: var(--mp-yellow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px;
  color: var(--mp-ink);
}
.login__brand::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,.04) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
.login__logo {
  height: 38px;
  position: relative;
}
.login__copy {
  position: relative;
  max-width: 460px;
}
.login__copy h1 {
  font-size: 56px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.login__copy h1 em {
  font-style: normal;
  background: var(--mp-ink);
  color: var(--mp-yellow);
  padding: 0 10px;
  display: inline-block;
}
.login__copy p {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(0,0,0,.7);
  margin: 0;
  max-width: 420px;
}
.login__meta {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.login__form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.login__form {
  width: 100%;
  max-width: 380px;
}
.login__form h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.login__form .sub {
  color: var(--text-2);
  font-size: 14px;
  margin: 0 0 28px;
}
.login__form .field { margin-bottom: 14px; }
.login__demo {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
}
.login__demo b { color: var(--text-1); }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login__brand { padding: 32px; min-height: 280px; }
  .login__copy h1 { font-size: 36px; }
}

/* ========== Shell ========== */

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}
.shell[data-sidebar="collapsed"] { grid-template-columns: var(--sidebar-w-collapsed) 1fr; }

.sidebar {
  background: var(--mp-black);
  color: #d5d5d3;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar__brand {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  min-height: var(--topbar-h);
}
.sidebar__logo {
  width: 32px; height: 32px;
  background: var(--mp-yellow);
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
}
.sidebar__logo svg { width: 22px; height: 22px; }
.sidebar__brand-text {
  display: flex; flex-direction: column;
  line-height: 1.1;
}
.sidebar__brand-text b { color: #fff; font-weight: 700; letter-spacing: 0.01em; font-size: 13px;}
.sidebar__brand-text small { font-size: 10px; color: rgba(255,255,255,.5); letter-spacing: 0.18em; text-transform: uppercase; }

.sidebar__section-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: 18px 24px 6px;
  font-weight: 600;
}
.shell[data-sidebar="collapsed"] .sidebar__section-label { padding: 14px 8px 4px; text-align: center; font-size: 0; }
.shell[data-sidebar="collapsed"] .sidebar__section-label::before {
  content: "";
  display: block;
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: 4px 12px;
}

.sidebar__nav { display: flex; flex-direction: column; padding: 4px 12px; gap: 1px; flex: 1; overflow-y: auto; }
.sidebar__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.72);
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  font-size: 13.5px;
  position: relative;
}
.sidebar__item:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar__item--active {
  background: var(--mp-yellow);
  color: var(--mp-ink);
}
.sidebar__item--active:hover { background: var(--mp-yellow); color: var(--mp-ink); }
.sidebar__item--soon { color: rgba(255,255,255,.35); cursor: not-allowed; }
.sidebar__item--soon:hover { background: transparent; color: rgba(255,255,255,.35); }
.sidebar__item-soon {
  font-size: 9px; padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.55);
  margin-left: auto;
  letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 700;
}
.sidebar__item-label { flex: 1; }
.shell[data-sidebar="collapsed"] .sidebar__item { justify-content: center; padding: 11px; }
.shell[data-sidebar="collapsed"] .sidebar__item-label,
.shell[data-sidebar="collapsed"] .sidebar__item-soon,
.shell[data-sidebar="collapsed"] .sidebar__brand-text { display: none; }

.sidebar__footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar__user { flex: 1; display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.sidebar__user b { color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.sidebar__user small { color: rgba(255,255,255,.45); font-size: 11px; }
.shell[data-sidebar="collapsed"] .sidebar__user { display: none; }

.icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  width: 32px; height: 32px;
  border-radius: 7px;
  display: grid; place-items: center;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(0,0,0,.05); }
.sidebar .icon-btn { color: rgba(255,255,255,.55); }
.sidebar .icon-btn:hover { background: rgba(255,255,255,.07); color: #fff; }

/* ========== Topbar ========== */

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--topbar-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar__crumb {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.topbar__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.topbar__search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-3);
  min-width: 260px;
  font-size: 13px;
}
.topbar__search input {
  border: 0; background: transparent; outline: none; flex: 1;
}
.topbar__actions { display: flex; align-items: center; gap: 6px; }

/* ========== Page ========== */

.page { padding: 24px 24px 60px; min-width: 0; }
.page__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page__head h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.page__head p { color: var(--text-2); margin: 0; font-size: 14px; }
.page__actions { display: flex; gap: 8px; align-items: center; }

/* ========== Tabs / pill nav ========== */

.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 9px;
  border: 1px solid var(--border);
}
.tabs__item {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.tabs__item:hover { color: var(--text-1); }
.tabs__item--active { background: var(--mp-ink); color: #fff; }
.tabs__item--active:hover { color: #fff; }

/* ========== Filter bar ========== */

.filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.filterbar .input { min-width: 0; }
.filterbar > .input { flex: 0 0 280px; }

.chip {
  padding: 7px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
}
.chip:hover { color: var(--text-1); border-color: var(--border-strong); }
.chip--on {
  background: var(--mp-ink);
  border-color: var(--mp-ink);
  color: #fff;
}

/* ========== KPIs ========== */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--kpi-accent, var(--mp-yellow));
}
.kpi__head {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.kpi__value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.kpi__sub {
  font-size: 12px;
  color: var(--text-2);
}

/* ========== Card ========== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.card__title { font-weight: 700; font-size: 14px; }
.card__body { padding: 18px; }

/* ========== Buttons ========== */

.btn {
  appearance: none;
  border: 0;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 8px;
  padding: 0 16px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.btn--full { width: 100%; justify-content: center; }
.btn--primary { background: var(--mp-ink); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--accent { background: var(--mp-yellow); color: var(--mp-ink); }
.btn--accent:hover { background: var(--mp-yellow-deep); }
.btn--ghost { background: transparent; color: var(--text-1); }
.btn--ghost:hover { background: var(--bg-subtle); }
.btn--outline { background: var(--bg-card); color: var(--text-1); border: 1px solid var(--border); }
.btn--outline:hover { border-color: var(--text-1); }
.btn--danger { background: transparent; color: #c0392b; }
.btn--danger:hover { background: #fdecea; }
.btn--sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; }
.btn--lg { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn--disabled, .btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ========== Form fields ========== */

.field {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.field--span-12 { grid-column: span 12; }
.field--span-8  { grid-column: span 8; }
.field--span-6  { grid-column: span 6; }
.field--span-4  { grid-column: span 4; }
.field--span-3  { grid-column: span 3; }
.field__label {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--text-2);
}
.field__label em { color: #c0392b; font-style: normal; margin-left: 2px; }
.field__hint { color: var(--text-3); font-weight: 500; }
.field__error { color: #c0392b; font-size: 12px; font-weight: 500; }

.input {
  display: flex; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  transition: border-color 0.12s, box-shadow 0.12s;
  position: relative;
}
.input:focus-within {
  border-color: var(--mp-ink);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.input input, .input select, .input textarea {
  border: 0; background: transparent; outline: none; width: 100%;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.input--select { padding-right: 8px; cursor: pointer; }
.input--select select { appearance: none; cursor: pointer; padding-right: 4px; }
.input__prefix, .input__suffix {
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.input__prefix { margin-right: 8px; }
.input__suffix { margin-left: 8px; }
.input--textarea { height: auto; padding: 10px 12px; }
.input--textarea textarea { resize: vertical; min-height: 64px; font-family: inherit; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.form-section {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.form-section:first-child { border-top: 0; padding-top: 0; }
.form-section__title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 12px;
}

/* ========== Badge / status ========== */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--badge-bg, var(--bg-subtle));
  color: var(--badge-fg, var(--text-2));
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.badge--sm { padding: 2px 7px; font-size: 10.5px; }
.badge__dot { width: 6px; height: 6px; border-radius: 99px; flex-shrink: 0; }

.cnpj-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--bg-subtle);
  color: var(--text-2);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  border: 1px solid var(--border);
}
.cnpj-pill[data-cnpj="padrao"]   { background: #1a1a1a;    color: var(--mp-yellow); border-color: #1a1a1a; }
.cnpj-pill[data-cnpj="ffc"]      { background: #e9e9e6;    color: #333; border-color: #d4d3cd; }
.cnpj-pill[data-cnpj="quantico"] { background: #fff3c4;    color: #6b4d00; border-color: #f0d781; }

.avatar {
  border-radius: 99px;
  display: grid; place-items: center;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--mp-ink);
  font-size: 11px;
  text-transform: none;
  flex-shrink: 0;
}

/* ========== Table ========== */

.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  overflow-y: hidden;
}
.tbl { width: 100%; min-width: 960px; border-collapse: collapse; font-size: 13.5px; }
.tbl thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 12px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tbl thead th.num { text-align: right; }
.tbl tbody td {
  padding: var(--row-py) 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  height: var(--row-h);
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; transition: background 0.08s; }
.tbl tbody tr:hover { background: var(--bg-row-hover); }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.tbl td.muted { color: var(--text-3); }
.tbl .op-tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-1);
  letter-spacing: 0.02em;
}
.tbl tfoot td {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 13px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.client-cell { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.client-cell b { font-weight: 700; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-cell small { color: var(--text-3); font-size: 11.5px; }

.cnpj-stack { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.faturado-mini-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-subtle);
  width: 90px;
  border: 1px solid var(--border);
}
.faturado-mini-bar > span {
  height: 100%;
}

/* Cards grid view */
.vendas-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.vcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vcard:hover { border-color: var(--text-1); }
.vcard__head { display: flex; align-items: center; gap: 8px; }
.vcard__op {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 13px;
  background: var(--mp-yellow);
  color: var(--mp-ink);
  padding: 2px 7px;
  border-radius: 4px;
}
.vcard__cliente { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.vcard__desc { color: var(--text-2); font-size: 13px; }
.vcard__row { display: flex; justify-content: space-between; gap: 8px; }
.vcard__row b { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; }
.vcard__row small { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.vcard__foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vcard__progress {
  height: 4px;
  background: var(--bg-subtle);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}
.vcard__progress > span {
  display: block;
  height: 100%;
  background: var(--mp-yellow);
}

/* ========== Empty ========== */

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-2);
}
.empty__icon {
  width: 56px; height: 56px;
  border-radius: 99px;
  background: var(--bg-subtle);
  display: grid; place-items: center;
  margin: 0 auto 14px;
  color: var(--text-3);
}
.empty__title { font-size: 16px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.empty__hint { font-size: 13px; }

/* ========== Modal & Drawer ========== */

.modal-overlay, .drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(13, 13, 13, 0.32);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: flex;
  animation: fadeIn 0.16s ease;
}
.modal-overlay { align-items: center; justify-content: center; padding: 20px; }
.drawer-overlay { justify-content: flex-end; }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideRight { from { transform: translateX(20px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal--lg { max-width: 720px; }
.modal__head, .drawer__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.modal__head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.modal__body, .drawer__body { padding: 20px; overflow-y: auto; flex: 1; }
.modal__foot, .drawer__foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  background: var(--bg-subtle);
}

.drawer {
  width: 540px;
  max-width: 100vw;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  animation: slideRight 0.22s ease;
  box-shadow: -20px 0 60px rgba(0,0,0,.12);
}
.drawer__title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.drawer__sub { color: var(--text-2); font-size: 13px; margin-top: 2px; }

/* ========== Detail ========== */

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.detail-cell {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
}
.detail-cell__label {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 4px;
}
.detail-cell__value {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 22px 0 10px;
}
.section-head h4 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-2);
}

.row-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  overflow: hidden;
}
.row-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.row-list__item:last-child { border-bottom: 0; }
.row-list__item b { font-variant-numeric: tabular-nums; }
.row-list__date {
  width: 60px;
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-right: 1px solid var(--border);
  padding-right: 12px;
}
.row-list__main { flex: 1; min-width: 0; }
.row-list__main b { display: block; font-weight: 700; }
.row-list__main small { color: var(--text-3); }
.row-list__value { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ========== Faturamento split ========== */

.split-fatur {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.split-row {
  display: grid;
  grid-template-columns: 110px 1fr 130px 110px 32px;
  gap: 10px;
  align-items: center;
}
.split-row .input { height: 36px; }

/* ========== Responsive ========== */

@media (max-width: 900px) {
  .shell { grid-template-columns: 0 1fr; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    transform: translateX(-100%);
    transition: transform 0.22s;
    z-index: 50;
  }
  .shell[data-mobile-nav="open"] .sidebar { transform: translateX(0); }
  .page { padding: 16px; }
  .topbar { padding: 0 14px; }
  .topbar__search { display: none; }
  .topbar__title { font-size: 16px; }
  .form-grid > .field { grid-column: span 12 !important; }
  .login__brand { display: none; }
  .login { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .split-row { grid-template-columns: 1fr 1fr; }
  .drawer { width: 100%; }
}

.menu-toggle { display: none; }
@media (max-width: 900px) { .menu-toggle { display: grid; } }
