:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --sidebar: #111214;
  --sidebar-2: #1a1c20;
  --text: #17191d;
  --muted: #69707d;
  --muted-2: #9aa1ac;
  --line: #e4e7eb;
  --danger: #d71920;
  --danger-dark: #a90f14;
  --success: #1b8a5a;
  --warning: #c88718;
  --info: #2e63cf;
  --shadow: 0 12px 34px rgba(16, 24, 40, .08);
  --radius: 14px;
  --radius-sm: 9px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, var(--sidebar), #0b0c0e); color: #fff; display: flex; flex-direction: column; padding: 20px 14px 14px; border-right: 1px solid #24262b; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--danger); color: white; font-weight: 900; letter-spacing: -1px; box-shadow: 0 8px 25px rgba(215,25,32,.25); }
.brand strong { display: block; letter-spacing: .08em; font-size: 15px; }
.brand span { color: #8f96a3; font-size: 12px; }
.nav { display: grid; gap: 4px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 0; border-radius: 9px; background: transparent; color: #b9bec7; text-align: left; transition: .15s ease; }
.nav-item span { width: 22px; text-align: center; font-weight: 700; }
.nav-item em { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: #2a2d33; color: #fff; font-style: normal; font-size: 11px; }
.nav-item:hover { color: #fff; background: #1a1d21; }
.nav-item.active { color: #fff; background: rgba(215,25,32,.15); box-shadow: inset 3px 0 0 var(--danger); }
.nav-item.active span { color: #ff4850; }
.sidebar-section { margin-top: 22px; padding-top: 16px; border-top: 1px solid #26292f; }
.sidebar-label { font-size: 10px; color: #626a77; font-weight: 800; letter-spacing: .14em; padding: 0 12px 8px; }
.sidebar-footer { margin-top: auto; }
.unit-chip { display: grid; grid-template-columns: 34px 1fr 18px; gap: 8px; align-items: center; padding: 10px; border-radius: 10px; background: #1a1c20; border: 1px solid #26292f; }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #2a2d33; color: #fff; font-size: 11px; font-weight: 800; }
.avatar.small { width: 30px; height: 30px; border-radius: 50%; }
.unit-chip strong, .unit-chip span { display: block; }
.unit-chip strong { font-size: 12px; }
.unit-chip div > span { color: #868d98; font-size: 10px; margin-top: 2px; }
.prototype-badge { margin-top: 10px; padding: 8px; color: #777f8b; text-align: center; font-size: 9px; letter-spacing: .09em; }
.main { min-width: 0; }
.topbar { min-height: 76px; position: sticky; top: 0; z-index: 15; background: rgba(244,245,247,.92); backdrop-filter: blur(12px); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 28px; border-bottom: 1px solid var(--line); }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.eyebrow { font-size: 10px; color: var(--muted); font-weight: 800; letter-spacing: .1em; }
h1 { margin: 2px 0 0; font-size: 24px; letter-spacing: -.03em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.search-pill { border: 1px solid #dfe2e7; background: #fff; color: #6f7680; border-radius: 10px; min-width: 280px; padding: 9px 10px; display: flex; align-items: center; gap: 8px; box-shadow: 0 2px 8px rgba(16,24,40,.03); }
.search-pill kbd { margin-left: auto; background: #f2f3f5; border: 1px solid #e2e5e8; border-bottom-width: 2px; border-radius: 5px; font-size: 10px; padding: 2px 5px; }
.icon-btn { width: 38px; height: 38px; border: 1px solid #dde1e5; background: white; border-radius: 9px; }
#notificationsBtn { color: var(--danger); font-size: 11px; }
.user-chip { border: 0; background: transparent; display: flex; align-items: center; gap: 7px; color: #40454d; }
.user-chip b { color: #8d939c; font-size: 11px; }
.content { padding: 26px 28px 48px; max-width: 1600px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.page-head h2 { margin: 0; font-size: 20px; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { border: 1px solid #dfe2e7; background: white; color: #3d4249; padding: 9px 13px; border-radius: 9px; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn:hover { background: #fafafa; }
.btn.primary { background: var(--danger); color: #fff; border-color: var(--danger); box-shadow: 0 6px 18px rgba(215,25,32,.2); }
.btn.primary:hover { background: var(--danger-dark); }
.btn.dark { background: #1b1d21; color: #fff; border-color: #1b1d21; }
.btn.success { background: var(--success); color: #fff; border-color: var(--success); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 10px; font-size: 11px; }
.btn.danger-outline { border-color: #f3c1c3; color: var(--danger); background: #fff9f9; }
.cards { display: grid; gap: 14px; }
.cards.kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(16,24,40,.025); }
.card.pad { padding: 18px; }
.kpi-card { padding: 18px; position: relative; overflow: hidden; }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.kpi-value { margin-top: 9px; font-size: 27px; font-weight: 900; letter-spacing: -.04em; }
.kpi-trend { margin-top: 6px; font-size: 11px; font-weight: 700; }
.kpi-trend.up { color: var(--success); }
.kpi-trend.down { color: var(--danger); }
.kpi-accent { position: absolute; right: -18px; bottom: -32px; width: 86px; height: 86px; border-radius: 50%; background: rgba(215,25,32,.06); }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-top: 14px; }
.grid-2.equal { grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 14px; }
.card-head p { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.card-body { padding: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: #7a818b; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid #eef0f2; font-size: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfbfc; }
.money { font-variant-numeric: tabular-nums; font-weight: 800; }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.approved, .status.paid, .status.done { color: #16734b; background: #eaf7f1; }
.status.pending, .status.waiting { color: #9a6510; background: #fff6df; }
.status.rejected, .status.overdue { color: #b42328; background: #fff0f0; }
.status.open, .status.progress { color: #315ca8; background: #edf3ff; }
.status.draft { color: #68707a; background: #f0f2f4; }
.badge { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 6px; background: #f0f2f4; color: #505862; font-size: 10px; font-weight: 800; }
.badge.red { background: #fff0f0; color: var(--danger); }
.badge.green { background: #ebf8f1; color: var(--success); }
.badge.blue { background: #edf3ff; color: var(--info); }
.toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.field, .select { border: 1px solid #dfe2e7; background: #fff; border-radius: 9px; padding: 9px 11px; outline: none; color: #353a42; font-size: 12px; }
.field:focus, .select:focus { border-color: #a8afb9; box-shadow: 0 0 0 3px rgba(23,25,29,.05); }
.field.search { min-width: 230px; }
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 10px; color: #6d747e; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.col-12 { grid-column: span 12; } .col-11 { grid-column: span 11; } .col-10 { grid-column: span 10; } .col-9 { grid-column: span 9; } .col-8 { grid-column: span 8; } .col-7 { grid-column: span 7; } .col-6 { grid-column: span 6; } .col-5 { grid-column: span 5; } .col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; } .col-2 { grid-column: span 2; } .col-1 { grid-column: span 1; }
.input-wrap { position: relative; display: flex; gap: 7px; }
.input-wrap .field { width: 100%; }
.lookup-loading { display: none; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--danger); font-size: 11px; }
.lookup-loading.show { display: block; }
.vehicle-panel { margin-top: 12px; padding: 14px; background: #fbfbfc; border: 1px solid var(--line); border-radius: 11px; display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; }
.vehicle-icon { width: 70px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: #202226; color: #fff; font-size: 26px; }
.vehicle-panel h4 { margin: 0 0 4px; font-size: 14px; }
.vehicle-panel p { margin: 0; color: var(--muted); font-size: 11px; }
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.quote-main { display: grid; gap: 14px; }
.sticky { position: sticky; top: 96px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-title h3 { margin: 0; font-size: 14px; }
.line-items { display: grid; gap: 9px; }
.line-item { display: grid; grid-template-columns: minmax(0, 1.8fr) .8fr .7fr .8fr auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid #e7e9ed; border-radius: 10px; background: #fff; }
.line-item .name { font-weight: 800; font-size: 12px; }
.line-item .meta { color: var(--muted); font-size: 10px; margin-top: 3px; }
.autocomplete { position: relative; }
.autocomplete-menu { position: absolute; z-index: 50; top: calc(100% + 5px); left: 0; right: 0; background: #fff; border: 1px solid #dfe2e7; border-radius: 10px; box-shadow: var(--shadow); max-height: 320px; overflow-y: auto; display: none; }
.autocomplete-menu.show { display: block; }
.autocomplete-item { padding: 11px; border-bottom: 1px solid #eef0f2; cursor: pointer; }
.autocomplete-item:last-child { border-bottom: 0; }
.autocomplete-item:hover { background: #fafafa; }
.autocomplete-item-top { display: flex; justify-content: space-between; gap: 10px; }
.autocomplete-item strong { font-size: 12px; }
.autocomplete-item .supplier { color: var(--muted); font-size: 10px; margin-top: 3px; }
.stock-pill { color: #16734b; background: #eaf7f1; border-radius: 999px; padding: 4px 6px; font-size: 9px; font-weight: 800; }
.price-row { margin-top: 7px; display: flex; gap: 10px; color: #555d66; font-size: 10px; }
.price-row b { color: #1c1f23; }
.summary-list { display: grid; gap: 9px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.summary-row.total { padding-top: 12px; border-top: 1px dashed #d6d9dd; margin-top: 4px; font-size: 17px; font-weight: 900; }
.summary-row.discount { color: var(--success); }
.quote-actions { display: grid; gap: 8px; margin-top: 15px; }
.quote-actions .btn { width: 100%; }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding-bottom: 17px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:before { content: ''; position: absolute; left: 14px; top: 22px; width: 1px; height: calc(100% - 12px); background: #e4e7ea; }
.timeline-item:last-child:before { display: none; }
.timeline-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #f0f2f4; color: #5f6670; font-size: 10px; font-weight: 900; z-index: 1; }
.timeline-item.active .timeline-dot { background: var(--danger); color: #fff; }
.timeline-copy strong { display: block; font-size: 11px; }
.timeline-copy span { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.progress { height: 7px; background: #eceef1; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--danger); border-radius: inherit; }
.chart { height: 210px; display: flex; align-items: flex-end; gap: 10px; padding: 18px 4px 2px; }
.chart-bar { flex: 1; min-width: 20px; background: linear-gradient(180deg, #d71920, #a80e14); border-radius: 6px 6px 2px 2px; position: relative; opacity: .9; }
.chart-bar:hover { opacity: 1; }
.chart-bar span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 9px; color: #79808a; }
.chart-bar b { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 9px; white-space: nowrap; }
.funnel { display: grid; gap: 9px; }
.funnel-row { display: grid; grid-template-columns: 90px 1fr 42px; gap: 10px; align-items: center; font-size: 11px; }
.funnel-bar { height: 9px; background: #edf0f2; border-radius: 999px; overflow: hidden; }
.funnel-bar span { display: block; height: 100%; background: #2f3339; border-radius: inherit; }
.agenda-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; min-width: 920px; }
.day-col { background: #fafbfc; border: 1px solid #e5e7eb; border-radius: 10px; min-height: 500px; overflow: hidden; }
.day-head { padding: 10px; border-bottom: 1px solid #e5e7eb; background: white; }
.day-head strong { display: block; font-size: 11px; }
.day-head span { color: var(--muted); font-size: 10px; }
.appointment { margin: 8px; padding: 9px; border-radius: 8px; background: white; border: 1px solid #e1e5e8; border-left: 3px solid var(--danger); font-size: 10px; }
.appointment strong { display: block; font-size: 11px; margin-bottom: 3px; }
.appointment span { color: var(--muted); display: block; margin-top: 2px; }
.stock-low { color: var(--danger); font-weight: 900; }
.finance-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.mini-stat { background: #fafbfc; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; }
.mini-stat span { display: block; color: var(--muted); font-size: 10px; }
.mini-stat strong { display: block; margin-top: 5px; font-size: 16px; }
.report-card { padding: 18px; cursor: pointer; transition: .15s ease; }
.report-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.report-icon { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: #f5f0f0; color: var(--danger); font-weight: 900; }
.report-card h3 { margin: 12px 0 5px; font-size: 14px; }
.report-card p { color: var(--muted); margin: 0; font-size: 11px; line-height: 1.5; }
.unit-card { padding: 18px; }
.unit-card .unit-top { display: flex; justify-content: space-between; align-items: flex-start; }
.unit-card h3 { margin: 0; font-size: 15px; }
.unit-card p { color: var(--muted); font-size: 11px; }
.settings-list { display: grid; gap: 10px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #eef0f2; }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong { font-size: 12px; }
.setting-row p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.toggle { width: 38px; height: 22px; border-radius: 999px; background: #d9dde2; position: relative; border: 0; }
.toggle::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: white; top: 3px; left: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: .15s ease; }
.toggle.on { background: var(--success); }
.toggle.on::after { left: 19px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(15,17,20,.55); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(4px); }
.modal { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: white; border-radius: 16px; box-shadow: 0 28px 70px rgba(0,0,0,.25); }
.modal.wide { width: min(960px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-close { border: 0; background: #f2f3f5; width: 30px; height: 30px; border-radius: 8px; }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 8px; }
.toast { background: #181a1e; color: white; padding: 12px 14px; border-radius: 10px; box-shadow: var(--shadow); min-width: 260px; font-size: 11px; animation: toast-in .2s ease; }
.toast strong { display: block; font-size: 12px; margin-bottom: 2px; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
.quick-search { display: grid; gap: 8px; }
.quick-result { padding: 11px; border: 1px solid #e5e8eb; border-radius: 9px; cursor: pointer; }
.quick-result:hover { background: #fafafa; }
.quick-result strong { font-size: 12px; }
.quick-result span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.hero-quote { padding: 20px; border-radius: 16px; background: radial-gradient(circle at 80% 20%, rgba(215,25,32,.18), transparent 27%), linear-gradient(135deg, #191b1f, #0f1012); color: white; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.hero-quote h2 { margin: 0 0 8px; font-size: 22px; }
.hero-quote p { margin: 0; color: #aeb4bf; font-size: 12px; max-width: 600px; }
.hero-quote .btn { flex: 0 0 auto; }
.checkline { display: flex; align-items: center; gap: 8px; color: #5f6670; font-size: 11px; }
.checkline::before { content: '✓'; width: 18px; height: 18px; border-radius: 50%; background: #eaf7f1; color: var(--success); display: grid; place-items: center; font-weight: 900; }
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty-icon { width: 44px; height: 44px; margin: auto; border-radius: 50%; background: #f1f3f5; display: grid; place-items: center; }
.empty-state h3 { color: var(--text); font-size: 14px; }
.mobile-only { display: none; }
.print-only { display: none; }

@media (max-width: 1150px) {
  .cards.kpi { grid-template-columns: repeat(2, 1fr); }
  .quote-layout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; width: 250px; transform: translateX(-100%); transition: .2s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .mobile-only { display: inline-grid; place-items: center; }
  .content { padding: 18px 14px 40px; }
  .topbar { padding: 12px 14px; }
  .search-pill { min-width: 38px; width: 38px; padding: 9px; }
  .search-pill span, .search-pill kbd, .user-chip > span:not(.avatar) { display: none; }
  .cards.kpi, .grid-3, .finance-summary { grid-template-columns: 1fr 1fr; }
  .page-head { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid > * { grid-column: span 1 !important; }
  .line-item { grid-template-columns: 1fr 1fr; }
  .line-item > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .cards.kpi, .grid-3, .finance-summary { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media print {
  body { background: white; }
  .sidebar, .topbar, .no-print, .toast-root, .modal-backdrop { display: none !important; }
  .app-shell { display: block; }
  .content { padding: 0; max-width: none; }
  .print-only { display: block; }
  .card { box-shadow: none; border-color: #ddd; }
  .quote-layout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  @page { size: A4; margin: 12mm; }
}

/* ===== Redline ERP v2 — pricing, suppliers, team and hour-rate ===== */
.hidden { display: none !important; }
.page-head.compact { margin-bottom: 12px; }
.supplier-sync-strip { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.supplier-sync { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid #e2e5e9; border-radius: 999px; font-size: 9px; font-weight: 800; color: #4f5660; background: #fafbfc; }
.supplier-sync i { width: 7px; height: 7px; border-radius: 50%; background: #9aa1aa; }
.supplier-sync.connected i, .supplier-sync.internal i { background: var(--success); box-shadow: 0 0 0 3px rgba(30,145,95,.10); }
.supplier-sync.manual i { background: #d59a17; }
.autocomplete-menu.supplier-results { max-height: 560px; }
.supplier-loading { display: flex; align-items: center; gap: 12px; padding: 20px; }
.supplier-loading strong, .supplier-loading small { display: block; }
.supplier-loading small { color: var(--muted); margin-top: 3px; font-size: 10px; }
.spinner { width: 20px; height: 20px; border: 2px solid #e3e5e8; border-top-color: var(--danger); border-radius: 50%; animation: spin .8s linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.supplier-result-card { padding: 12px; border-bottom: 1px solid #e8ebee; }
.supplier-result-card:last-child { border-bottom: 0; }
.supplier-result-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.supplier-result-title strong { display: block; font-size: 12px; }
.supplier-result-title span:not(.badge) { display: block; font-size: 9px; color: var(--muted); margin-top: 3px; }
.offer-table { border: 1px solid #e5e8eb; border-radius: 9px; overflow: hidden; }
.offer-row { display: grid; grid-template-columns: 1.25fr .8fr .7fr 1fr .9fr auto; gap: 8px; align-items: center; padding: 9px 10px; font-size: 10px; border-top: 1px solid #edf0f2; }
.offer-row:first-child { border-top: 0; }
.offer-row.offer-head { background: #f6f7f8; color: #707782; text-transform: uppercase; letter-spacing: .03em; font-size: 8px; font-weight: 900; }
.offer-row.best-offer { background: #fbfefe; }
.offer-row span small { display: block; color: var(--success); font-size: 8px; margin-top: 2px; font-weight: 800; }
.quote-part-card { border: 1px solid #e3e6e9; border-radius: 12px; padding: 12px; background: #fff; margin-bottom: 9px; }
.quote-part-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.quote-part-main .name { font-size: 12px; font-weight: 900; }
.quote-part-main .meta { font-size: 9px; color: var(--muted); margin-top: 4px; }
.pricing-grid { display: grid; grid-template-columns: .55fr 1.35fr 1fr 1fr; gap: 9px; align-items: end; margin-top: 12px; padding-top: 11px; border-top: 1px solid #eef0f2; }
.pricing-field label { display: block; color: #6d747e; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.pricing-field .field, .pricing-field .select { width: 100%; }
.pricing-field input:disabled { background: #f2f4f6; color: #7f8790; }
.pricing-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 10px; font-size: 9px; color: #666e78; }
.profit-pill { border-radius: 999px; padding: 5px 8px; font-weight: 900; }
.profit-pill.good { background: #eaf7f1; color: #16734b; }
.profit-pill.warn { background: #fff6df; color: #916710; }
.profit-pill.bad { background: #fff0f0; color: #b21820; }
.settings-tabs { display: flex; gap: 6px; border-bottom: 1px solid #dde1e5; margin-bottom: 14px; overflow-x: auto; }
.tab-btn { border: 0; background: transparent; padding: 10px 13px; color: #626a74; font-size: 11px; font-weight: 800; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tab-btn.active { color: var(--danger); border-bottom-color: var(--danger); }
.settings-panel { min-height: 240px; }
.supplier-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.supplier-config { padding: 15px; }
.supplier-config-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.supplier-config-head > div:first-child { display: flex; gap: 10px; align-items: center; }
.supplier-config-head h3 { margin: 0; font-size: 13px; }
.supplier-config-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.supplier-logo { width: 34px; height: 34px; border-radius: 9px; background: #17191c; color: white; display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.api-badge { padding: 5px 7px; border-radius: 999px; font-size: 8px; font-weight: 900; background: #f0f2f4; color: #656d77; }
.api-badge.connected, .api-badge.internal { background: #eaf7f1; color: #16734b; }
.api-badge.manual { background: #fff6df; color: #8b6515; }
.supplier-config-actions { margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef0f2; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.checkbox-line { font-size: 9px; color: #555d66; display: flex; align-items: center; gap: 6px; }
.suffix-input { display: flex; align-items: center; gap: 6px; }
.suffix-input .field { width: 86px; text-align: right; }
.suffix-input span { color: var(--muted); font-size: 9px; min-width: 24px; }
.hour-mini { padding: 17px; border-radius: 12px; background: #141619; color: white; }
.hour-mini span, .hour-mini small { display: block; color: #aeb4bd; font-size: 10px; }
.hour-mini strong { display: block; font-size: 27px; margin: 6px 0; }
.hour-rate-hero { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 10px; margin-bottom: 14px; }
.hour-rate-hero > div { border: 1px solid #e1e4e8; background: white; border-radius: 13px; padding: 17px; }
.hour-rate-hero > div.featured { background: linear-gradient(135deg,#1a1c20,#101114); color: white; border-color: #111; }
.hour-rate-hero span, .hour-rate-hero small { display: block; font-size: 9px; color: var(--muted); line-height: 1.5; }
.hour-rate-hero .featured span, .hour-rate-hero .featured small { color: #aeb4bd; }
.hour-rate-hero strong { display: block; font-size: 24px; margin: 6px 0; }
.hour-layout { align-items: start; }
.cost-list { display: grid; gap: 7px; }
.cost-row { display: grid; grid-template-columns: 105px 1fr 115px auto; gap: 7px; align-items: center; }
.money-input { text-align: right; }
.hour-warning { margin-top: 14px; padding: 10px 12px; border-left: 3px solid #d59a17; background: #fff9e9; font-size: 9px; color: #745817; line-height: 1.55; }

@media (max-width: 1000px) {
  .supplier-config-grid { grid-template-columns: 1fr; }
  .offer-row { grid-template-columns: 1.1fr .8fr .7fr 1fr auto; }
  .offer-row > span:nth-child(5) { display: none; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .hour-rate-hero { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .offer-row { grid-template-columns: 1fr 1fr auto; }
  .offer-row > span:nth-child(3), .offer-row > span:nth-child(4), .offer-row > span:nth-child(5) { display: none; }
  .supplier-config-actions { align-items: flex-start; flex-direction: column; }
  .pricing-grid { grid-template-columns: 1fr; }
  .cost-row { grid-template-columns: 1fr 110px auto; }
  .cost-row > :first-child { display: none; }
}

/* ===== Redline ERP V4 — SaaS, CRM, technical intelligence ===== */
.product-rule { margin-top:10px; padding:10px 13px; border-radius:10px; background:#fff; border:1px solid var(--line); font-size:11px; color:#5f6670; }
.product-rule strong { color:var(--danger); }
.crm-mini { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:11px 0; border-bottom:1px solid #eef0f2; }
.crm-mini:last-child { border-bottom:0; }
.crm-mini strong,.crm-mini span,.crm-mini b { display:block; }
.crm-mini strong { font-size:11px; }
.crm-mini span { font-size:9px; color:var(--muted); margin-top:2px; }
.crm-mini > div:last-child { text-align:right; }
.customer-inline { margin-top:12px; padding:10px 12px; border-radius:9px; background:#f7f8fa; border:1px solid #e7eaed; display:flex; justify-content:space-between; gap:12px; font-size:10px; color:#59616b; }
.manual-fallback { margin-top:8px; font-size:10px; color:var(--muted); }
.link-btn { border:0; background:transparent; color:var(--danger); font:inherit; font-weight:800; padding:0; text-decoration:underline; }
.manual-item { border-style:dashed; background:#fffdf8; }
.manual-part-note { margin-bottom:14px; border-left:3px solid var(--warning); background:#fff8e8; padding:10px 12px; color:#745817; font-size:10px; line-height:1.5; }
.internal-summary { overflow:hidden; }
.privacy-note { margin-top:14px; padding:10px 12px; border-radius:9px; background:#f5f6f8; color:#626a74; font-size:9px; line-height:1.55; }
.quote-health { padding:13px; border-radius:11px; margin-bottom:12px; border:1px solid; }
.quote-health span,.quote-health strong,.quote-health small { display:block; }
.quote-health span { font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.05em; }
.quote-health strong { font-size:25px; margin:3px 0; }
.quote-health small { font-size:9px; line-height:1.4; }
.quote-health.excellent,.quote-health.good { background:#edf9f3; color:#166744; border-color:#cbead9; }
.quote-health.warn { background:#fff8e7; color:#805f14; border-color:#f0dfad; }
.quote-health.bad { background:#fff1f1; color:#9f2025; border-color:#f1c8ca; }
.assistant-card { border-color:#d9e3f8; background:linear-gradient(180deg,#fff,#fbfdff); }
.assistant-suggestion { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:10px 0; border-bottom:1px solid #e9eef8; }
.assistant-suggestion:last-child { border-bottom:0; }
.assistant-suggestion strong,.assistant-suggestion span { display:block; }
.assistant-suggestion strong { font-size:11px; }
.assistant-suggestion span { margin-top:3px; color:var(--muted); font-size:9px; line-height:1.4; }
.empty-tech { padding:16px; border:1px dashed #dfe3e7; border-radius:10px; color:var(--muted); font-size:10px; background:#fafbfc; }
.tech-quick-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.tech-spec { border:1px solid #e4e8ec; background:#fafbfc; padding:12px; border-radius:10px; }
.tech-spec span,.tech-spec strong,.tech-spec small { display:block; }
.tech-spec span { color:var(--muted); font-size:8px; font-weight:900; text-transform:uppercase; }
.tech-spec strong { margin:5px 0; font-size:15px; }
.tech-spec small { font-size:9px; color:#626a74; line-height:1.4; }
.tech-plan { margin-top:9px; border:1px solid #e4e8ec; border-radius:10px; padding:12px; }
.tech-plan > strong { font-size:10px; }
.tech-plan div { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.tech-plan div span { padding:5px 7px; border-radius:999px; background:#eef6f2; color:#216e4b; font-size:9px; font-weight:800; }
.tech-plan small { color:var(--muted); font-size:8px; }
.vehicle-panel.v3 { grid-template-columns:70px 1fr auto auto; }
.vehicle-km-box,.next-maint { padding:8px 10px; border-left:1px solid #e4e7eb; min-width:115px; }
.vehicle-km-box span,.vehicle-km-box strong,.vehicle-km-box small,.next-maint span,.next-maint strong,.next-maint small { display:block; }
.vehicle-km-box span,.next-maint span { font-size:8px; text-transform:uppercase; color:var(--muted); font-weight:900; }
.vehicle-km-box strong,.next-maint strong { font-size:14px; margin:3px 0; }
.vehicle-km-box small,.next-maint small { color:var(--muted); font-size:8px; }
.customer-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.customer-card { padding:16px; }
.customer-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.customer-card-head strong,.customer-card-head span { display:block; }
.customer-card-head strong { font-size:14px; }
.customer-card-head span { margin-top:3px; color:var(--muted); font-size:9px; }
.customer-meta { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0; }
.customer-meta span { background:#f1f3f5; border-radius:999px; padding:5px 7px; font-size:8px; color:#59616b; }
.vehicle-list { display:grid; gap:6px; }
.vehicle-list-item { width:100%; border:1px solid #e5e8eb; border-radius:9px; background:#fafbfc; padding:9px 10px; display:flex; justify-content:space-between; align-items:center; gap:12px; text-align:left; color:#40464e; }
.vehicle-list-item:hover { border-color:#cfd5db; background:#fff; }
.vehicle-list-item span { font-size:9px; }
.vehicle-list-item span:first-child { display:grid; gap:2px; }
.vehicle-list-item b { font-size:10px; }
.customer-card-foot { display:flex; gap:7px; margin-top:12px; padding-top:10px; border-top:1px solid #eef0f2; }
.crm-logic { padding:14px; border-radius:10px; background:#17191d; color:#d5dae2; font-size:10px; line-height:1.7; letter-spacing:.01em; }
.whatsapp-preview { padding:16px; border-radius:12px; background:#eaf7f1; border:1px solid #cbe7d9; color:#24483a; line-height:1.55; font-size:12px; margin-bottom:10px; }
.technical-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.technical-card { padding:16px; }
.technical-card-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.technical-card-head strong,.technical-card-head span { display:block; }
.technical-card-head strong { font-size:14px; }
.technical-card-head span:not(.badge) { margin-top:3px; color:var(--muted); font-size:9px; }
.tech-oil { margin-top:12px; padding:13px; border-radius:10px; background:#17191d; color:#fff; }
.tech-oil span,.tech-oil b,.tech-oil small { display:block; }
.tech-oil span { font-size:8px; color:#adb4be; text-transform:uppercase; }
.tech-oil b { font-size:20px; margin:4px 0; }
.tech-oil small { font-size:9px; color:#b8bec6; }
.tech-fluid-list { display:grid; gap:6px; margin-top:9px; }
.tech-fluid-list div { display:flex; justify-content:space-between; gap:10px; padding:7px 0; border-bottom:1px solid #eef0f2; font-size:9px; }
.tech-fluid-list span { color:var(--muted); }
.tech-next { margin-top:10px; padding:10px; background:#fbfbfc; border:1px solid #e7e9ec; border-radius:9px; }
.tech-next strong,.tech-next span,.tech-next small { display:block; }
.tech-next strong { font-size:11px; }
.tech-next span { color:var(--muted); font-size:9px; margin:2px 0 6px; }
.tech-next small { font-size:8px; margin-top:2px; }
.source-note { margin-top:9px; color:var(--muted); font-size:8px; line-height:1.4; }
.technical-card-foot { display:flex; gap:7px; margin-top:12px; }
.dashed-card { border-style:dashed; }
.platform-card { background:linear-gradient(180deg,#fff,#fafbfc); }
.timeline-list { display:grid; gap:0; }
.timeline-row { display:grid; grid-template-columns:105px 1fr; gap:12px; padding:11px 0; border-bottom:1px solid #edf0f2; }
.timeline-row > span { color:var(--muted); font-size:9px; }
.timeline-row strong,.timeline-row small { display:block; }
.timeline-row strong { font-size:10px; }
.timeline-row small { margin-top:3px; color:var(--muted); font-size:9px; }
.empty-state.compact { padding:22px; }
.empty-state.compact p { font-size:10px; }
.client-preview-shell { max-height:62vh; overflow:auto; background:#eef0f3; padding:18px; border-radius:12px; }
.client-preview-shell .client-doc { max-width:760px; margin:auto; background:#fff; padding:28px; border:1px solid #ddd; color:#17191d; }
.client-preview-shell .client-doc header { display:flex; justify-content:space-between; border-bottom:3px solid var(--danger); padding-bottom:15px; }
.client-preview-shell .client-logo { font-size:24px; font-weight:900; letter-spacing:.08em; }
.client-preview-shell header strong,.client-preview-shell header span,.client-preview-shell .doc-id small,.client-preview-shell .doc-id span { display:block; font-size:9px; }
.client-preview-shell .doc-id { text-align:right; }
.client-preview-shell .doc-id b { display:block; margin:3px 0; }
.client-preview-shell .doc-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:15px 0; }
.client-preview-shell .doc-grid div { border:1px solid #e5e8eb; padding:10px; }
.client-preview-shell .doc-grid small,.client-preview-shell .doc-grid strong,.client-preview-shell .doc-grid span { display:block; font-size:9px; }
.client-preview-shell section h3 { font-size:11px; }
.client-preview-shell table { width:100%; border-collapse:collapse; }
.client-preview-shell th,.client-preview-shell td { padding:8px; border-bottom:1px solid #e7e9ec; font-size:9px; }
.client-preview-shell .client-total { max-width:300px; margin:14px 0 0 auto; }
.client-preview-shell .client-total div { display:flex; justify-content:space-between; padding:5px 0; font-size:10px; }
.client-preview-shell .client-total .grand { border-top:2px solid #17191d; margin-top:4px; padding-top:9px; font-size:13px; }
.client-preview-shell .client-notes { margin-top:14px; padding:10px; background:#f7f8fa; }
.client-preview-shell .client-notes p { font-size:9px; }
.client-preview-shell footer { margin-top:15px; border-top:1px solid #ddd; padding-top:10px; font-size:8px; color:#69707d; text-align:center; }

@media (max-width: 1100px) {
  .vehicle-panel.v3 { grid-template-columns:70px 1fr; }
  .vehicle-km-box,.next-maint { border-left:0; border-top:1px solid #e4e7eb; }
  .customer-grid,.technical-grid { grid-template-columns:1fr; }
}
@media (max-width: 760px) {
  .tech-quick-grid { grid-template-columns:1fr; }
  .customer-inline { flex-direction:column; }
  .assistant-suggestion { align-items:flex-start; }
  .vehicle-list-item { align-items:flex-start; }
}

/* === V4 • Marketplace B2B / portal do distribuidor === */
.v4-offers .offer-row { grid-template-columns:1.3fr .72fr .62fr .9fr .72fr .9fr auto; }
.sponsored-offer { background:linear-gradient(90deg,#fffaf0 0,#fff 42%); box-shadow:inset 3px 0 0 #d8a11d; }
.sponsored-badge { display:inline-flex!important; width:max-content; padding:2px 5px; border-radius:999px; background:#fff1c7; color:#7b5500!important; border:1px solid #efd487; font-size:7px!important; line-height:1.2; font-weight:900; text-transform:uppercase; letter-spacing:.04em; }
.best-price-tag { color:#16734b!important; }
.stars,.supplier-rating-mini { color:#a87800!important; letter-spacing:.04em; }
.marketplace-disclosure { padding:8px 10px; background:#faf8f2; border-top:1px solid #ece3ca; color:#766642; font-size:8px; line-height:1.45; }
.purchase-release { border-color:#7d4bc1!important; color:#6c35b0!important; background:#f8f2ff!important; }
.purchase-release.done { color:#16734b!important; background:#eaf7f1!important; border-color:#cbe8d8!important; }
.status.awaiting_supplier,.status.technical_review { color:#9a6510; background:#fff6df; }
.status.confirmed,.status.separating { color:#315ca8; background:#edf3ff; }
.status.out_for_delivery { color:#6c35b0; background:#f5efff; }
.status.delivered { color:#16734b; background:#eaf7f1; }
.compat { display:inline-flex; align-items:center; padding:5px 8px; border-radius:999px; font-size:8px; font-weight:800; white-space:nowrap; }
.compat.pending { background:#f1f3f5; color:#66707a; }
.compat.confirmed { background:#eaf7f1; color:#16734b; }
.compat.divergence { background:#fff0f0; color:#b42328; }
.supplier-portal-shell { display:grid; gap:14px; }
.supplier-portal-banner { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:22px 24px; border-radius:14px; background:linear-gradient(125deg,#121417,#23262c); color:#fff; box-shadow:var(--shadow); }
.supplier-portal-banner > div:first-child { max-width:760px; }
.supplier-portal-banner span { font-size:8px; color:#ff8e92; font-weight:900; letter-spacing:.11em; }
.supplier-portal-banner h2 { margin:6px 0 5px; font-size:22px; }
.supplier-portal-banner p { margin:0; color:#b7bdc7; font-size:10px; line-height:1.55; }
.supplier-switch { min-width:210px; }
.supplier-switch label { display:block; font-size:8px; color:#aeb5bf; margin-bottom:5px; text-transform:uppercase; }
.supplier-portal-grid { align-items:start; }
.supplier-side-stack { display:grid; gap:14px; }
.supplier-order-list { display:grid; gap:10px; margin-top:10px; }
.supplier-order-card { border:1px solid #e4e7eb; border-radius:12px; padding:13px; background:#fff; }
.supplier-order-top { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.supplier-order-top > div > span,.supplier-order-top small,.supplier-order-top strong { display:block; }
.supplier-order-top > div > span { color:var(--muted); font-size:8px; font-weight:800; }
.supplier-order-top strong { margin:3px 0; font-size:13px; }
.supplier-order-top small { color:var(--muted); font-size:8px; line-height:1.45; }
.supplier-order-items { margin:10px 0; border-top:1px solid #eef0f2; }
.supplier-order-items > div { display:flex; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px solid #eef0f2; }
.supplier-order-items b,.supplier-order-items small { display:block; }
.supplier-order-items b { font-size:9px; }
.supplier-order-items small { color:var(--muted); font-size:8px; margin-top:2px; }
.fitment-confidence { color:#315ca8; background:#edf3ff; border-radius:999px; padding:4px 7px; height:max-content; font-size:8px; font-weight:800; }
.supplier-order-meta { display:flex; flex-wrap:wrap; gap:7px; }
.supplier-order-meta span { padding:5px 7px; border-radius:7px; background:#f6f7f8; font-size:8px; color:#68707a; }
.supplier-order-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:11px; }
.metric-bars { display:grid; gap:11px; margin-top:12px; }
.metric-bar > div:first-child { display:flex; justify-content:space-between; font-size:9px; margin-bottom:4px; }
.meter { height:6px; border-radius:999px; background:#eceff2; overflow:hidden; }
.meter span { display:block; height:100%; background:#22262b; border-radius:999px; }
.supplier-score-big { font-size:26px; font-weight:900; }
.supplier-footnote { margin-top:13px; padding-top:10px; border-top:1px solid #edf0f2; color:var(--muted); font-size:8px; line-height:1.5; }
.campaign-row { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid #edf0f2; }
.campaign-row strong,.campaign-row small { display:block; }
.campaign-row strong { font-size:10px; margin:4px 0 2px; }
.campaign-row small { color:var(--muted); font-size:8px; }
.purchase-detail-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.purchase-detail-head h3 { margin:7px 0 3px; }
.purchase-detail-head p { margin:0; color:#a87800; font-size:9px; }
.vehicle-validation-card { display:grid; grid-template-columns:1fr auto; gap:18px; margin:15px 0; padding:14px; border:1px solid #e4e7eb; border-radius:10px; background:#fafbfc; }
.vehicle-validation-card small,.vehicle-validation-card strong,.vehicle-validation-card span { display:block; }
.vehicle-validation-card small { color:var(--muted); font-size:8px; }
.vehicle-validation-card strong { margin:4px 0; }
.vehicle-validation-card span { font-size:9px; margin-top:2px; }
.purchase-items-detail { border-top:1px solid #e9ecef; }
.purchase-items-detail > div { display:grid; grid-template-columns:1fr 110px 110px; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #e9ecef; font-size:9px; }
.purchase-items-detail b,.purchase-items-detail small { display:block; }
.purchase-items-detail small { color:var(--muted); font-size:8px; }
.mileage-dashboard { display:grid; gap:14px; }
.mileage-chart { border:1px solid #e4e7eb; border-radius:12px; padding:12px; background:#fff; }
.mileage-chart-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:5px; }
.mileage-chart-head strong,.mileage-chart-head span,.mileage-chart-head b { display:block; }
.mileage-chart-head strong { font-size:11px; }
.mileage-chart-head span { color:var(--muted); font-size:8px; margin-top:2px; }
.mileage-chart-head > div:last-child { text-align:right; }
.mileage-chart-head b { font-size:10px; }
.mileage-chart svg { width:100%; height:auto; overflow:visible; }
.chart-grid { stroke:#e8ebee; stroke-width:1; }
.chart-axis { fill:#7c848e; font-size:8px; font-family:Arial,sans-serif; }
.chart-history { fill:none; stroke:#1d232a; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.chart-trend { fill:none; stroke:#d71920; stroke-width:2.5; stroke-dasharray:7 6; stroke-linecap:round; }
.chart-point { fill:#fff; stroke:#1d232a; stroke-width:2.5; }
.chart-future-point { fill:#fff; stroke:#d71920; stroke-width:2.5; }
.chart-legend { display:flex; gap:14px; justify-content:flex-end; font-size:8px; color:var(--muted); }
.chart-legend span { display:flex; align-items:center; gap:5px; }
.chart-legend i { width:18px; height:2px; background:#1d232a; }
.chart-legend i.trend { background:repeating-linear-gradient(90deg,#d71920 0 5px,transparent 5px 8px); }
.mileage-empty { padding:14px; border:1px dashed #d7dce1; border-radius:10px; color:var(--muted); font-size:9px; }
.timeline-title { margin-top:17px; }
.supplier-context .supplier-nav { background:#2b1d32; color:#fff; }
.supplier-context .topbar { border-bottom-color:#e6dced; }

@media (max-width: 1100px) {
  .v4-offers .offer-row { grid-template-columns:1.2fr .8fr .7fr .9fr .8fr auto; }
  .v4-offers .offer-row > span:nth-child(6) { display:none; }
  .supplier-portal-grid { grid-template-columns:1fr; }
}
@media (max-width: 760px) {
  .supplier-portal-banner { align-items:flex-start; flex-direction:column; }
  .supplier-switch { width:100%; min-width:0; }
  .v4-offers .offer-row { grid-template-columns:1.2fr .8fr .7fr auto; }
  .v4-offers .offer-row > span:nth-child(4),.v4-offers .offer-row > span:nth-child(5),.v4-offers .offer-row > span:nth-child(6) { display:none; }
  .mileage-chart-head { flex-direction:column; }
  .mileage-chart-head > div:last-child { text-align:left; }
  .vehicle-validation-card { grid-template-columns:1fr; }
  .purchase-items-detail > div { grid-template-columns:1fr auto; }
  .purchase-items-detail > div > span:nth-child(2) { display:none; }
}


/* ========================= V5 • OPERAÇÃO TÉCNICA ========================= */
.mechanic-context .mechanic-nav { background:#132a1c; color:#fff; }
.mechanic-context .topbar { border-bottom-color:#d9e8de; }
.mechanic-portal-banner { display:flex; justify-content:space-between; gap:24px; align-items:center; background:linear-gradient(135deg,#111714,#1d2b22); color:#fff; border-radius:14px; padding:18px 20px; margin-bottom:14px; }
.mechanic-portal-banner > div:first-child > span { color:#89d7a4; font-size:8px; font-weight:900; letter-spacing:.13em; }
.mechanic-portal-banner h2 { margin:5px 0 4px; font-size:20px; }
.mechanic-portal-banner p { margin:0; max-width:720px; color:#c7d2cb; font-size:9px; line-height:1.5; }
.mechanic-switch { min-width:190px; }
.mechanic-switch label { display:block; color:#9fb0a5; font-size:8px; margin-bottom:5px; }
.mechanic-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:14px; }
.mechanic-layout { display:grid; grid-template-columns:260px minmax(0,1fr); gap:14px; align-items:start; }
.mechanic-main-stack { display:grid; gap:14px; min-width:0; }
.mechanic-job-list { position:sticky; top:76px; }
.inspection-list-item { width:100%; border:1px solid #e4e8e5; background:#fff; border-radius:10px; padding:10px; margin-top:8px; text-align:left; display:flex; align-items:center; justify-content:space-between; gap:10px; cursor:pointer; }
.inspection-list-item:hover,.inspection-list-item.active { border-color:#4c8a62; box-shadow:0 0 0 2px rgba(76,138,98,.08); }
.inspection-list-item span,.inspection-list-item b,.inspection-list-item small { display:block; }
.inspection-list-item b { font-size:9px; }
.inspection-list-item small { color:var(--muted); font-size:8px; margin-top:3px; }
.inspection-list-item > span:last-child { text-align:right; }
.inspection-status { display:inline-block; font-style:normal; font-size:7px; font-weight:900; padding:3px 6px; border-radius:999px; text-transform:uppercase; }
.inspection-status.pending { background:#f3f4f5; color:#69707a; }
.inspection-status.in_progress { background:#fff2cc; color:#8b6500; }
.inspection-status.completed { background:#e5f5e9; color:#1c7138; }
.inspection-editor { overflow:hidden; }
.inspection-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; border-bottom:1px solid #edf0ee; padding-bottom:12px; }
.inspection-head h3 { margin:6px 0 3px; font-size:15px; }
.inspection-head p { margin:0; color:var(--muted); font-size:8px; }
.inspection-progress { min-width:150px; text-align:right; }
.inspection-progress strong { display:block; font-size:20px; }
.inspection-progress span { color:var(--muted); font-size:8px; }
.inspection-progress .progress { margin-top:6px; }
.inspection-progress .progress i { display:block; height:100%; background:#378b55; border-radius:999px; }
.inspection-reception { display:grid; grid-template-columns:1.2fr 1fr 1fr 1fr; gap:10px; margin:12px 0; padding:10px; background:#f7f9f7; border-radius:10px; }
.inspection-reception label,.inspection-reception div { font-size:8px; color:var(--muted); }
.inspection-reception label input { margin-top:4px; width:100%; }
.inspection-reception b { display:block; color:#20252a; margin-top:5px; font-size:9px; }
.checklist-sections { display:grid; gap:10px; }
.check-section { border:1px solid #e4e8e5; border-radius:11px; overflow:hidden; }
.check-section-title { display:flex; gap:8px; align-items:center; padding:9px 11px; background:#f6f8f6; border-bottom:1px solid #e9ecea; font-size:9px; }
.check-row { display:grid; grid-template-columns:minmax(190px,1fr) auto; gap:10px; align-items:center; padding:8px 10px; border-bottom:1px solid #f0f2f0; }
.check-row:last-child { border-bottom:0; }
.check-label { display:flex; gap:8px; align-items:center; font-size:9px; }
.check-current { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; background:#f1f3f2; font-size:9px; font-weight:900; flex:none; }
.check-current.ok { background:#dcf2e3; color:#176733; }.check-current.attention { background:#fff0bd; color:#8f6500; }.check-current.critical { background:#ffe0e0; color:#a52323; }.check-current.na { background:#eceff1; color:#737b84; }
.check-actions { display:flex; gap:4px; flex-wrap:wrap; justify-content:flex-end; }
.check-choice { border:1px solid #dfe3e1; background:#fff; border-radius:7px; padding:5px 7px; font-size:7px; font-weight:800; cursor:pointer; }
.check-choice:hover { background:#f7f8f8; }.check-choice.active.ok { background:#def3e5; color:#12622e; border-color:#acd7ba; }.check-choice.active.attention { background:#fff1bd; color:#805d00; border-color:#efd477; }.check-choice.active.critical { background:#ffe0e0; color:#a02020; border-color:#e8a7a7; }.check-choice.active.na { background:#e9ecef; color:#626a73; }
.inspection-notes { margin-top:12px; }
.inspection-notes label { display:flex; justify-content:space-between; gap:10px; font-size:9px; font-weight:800; margin-bottom:5px; }.inspection-notes label span { color:var(--muted); font-weight:400; font-size:8px; }.inspection-notes textarea { width:100%; min-height:70px; resize:vertical; }
.inspection-findings { margin-top:16px; border-top:1px solid #e9ecea; padding-top:14px; }
.finding-row { display:grid; grid-template-columns:auto minmax(0,1fr) 150px auto; gap:10px; align-items:center; padding:8px 0; border-bottom:1px solid #eef0ef; }
.finding-row b,.finding-row small { display:block; }.finding-row b { font-size:9px; }.finding-row small { color:var(--muted); font-size:8px; margin-top:2px; }.finding-row label { font-size:7px; color:var(--muted); }.finding-row label input { margin-top:3px; width:100%; }
.severity-dot { width:9px; height:9px; border-radius:50%; background:#c8cdd0; }.severity-dot.attention { background:#e5ad16; }.severity-dot.critical { background:#c82d2d; }
.manual-finding-box { display:grid; grid-template-columns:105px 1fr 95px auto; gap:7px; margin-top:10px; padding:9px; background:#f7f8f8; border-radius:9px; }
.inspection-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:13px; }.inspection-footer .privacy-note { margin:0; max-width:60%; }
.inspection-handoff { margin:10px 0; padding:10px; border:1px solid #cfe3d6; background:#f2faf5; border-radius:10px; }.inspection-handoff strong,.inspection-handoff span { display:block; }.inspection-handoff strong { font-size:9px; }.inspection-handoff span { font-size:8px; color:#52705c; margin-top:2px; }.inspection-finding-chips { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }.finding-chip { border:1px solid #b8d9c3; background:#fff; color:#26593a; border-radius:999px; padding:5px 8px; font-size:8px; cursor:pointer; }
.time-panel { border-top:3px solid #232a25; }.active-clock { text-align:right; }.active-clock span { display:block; font-size:7px; font-weight:900; color:#28814b; }.active-clock strong { display:block; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:18px; margin-top:2px; }
.time-order-list { display:grid; gap:7px; }.time-order { display:grid; grid-template-columns:minmax(160px,1.4fr) .65fr .65fr .55fr auto; gap:10px; align-items:center; border:1px solid #e4e7e5; border-radius:9px; padding:9px 10px; }.time-order > div:first-child b,.time-order > div:first-child span { display:block; }.time-order > div:first-child b { font-size:9px; }.time-order > div:first-child span { color:var(--muted); font-size:8px; margin-top:2px; }.time-order small { display:block; color:var(--muted); font-size:7px; }.time-order b { font-size:9px; }.text-danger { color:#b12828; }.time-rule { margin-top:9px; font-size:8px; color:var(--muted); }
.productivity-rule { border-left:3px solid #20252a; background:#f4f5f6; padding:9px 11px; margin-bottom:14px; font-size:9px; line-height:1.5; }
.productivity-layout { margin-top:14px; align-items:start; }.ranking-list { display:grid; gap:6px; }.ranking-row { display:grid; grid-template-columns:28px 1.4fr .7fr .8fr .7fr 48px; gap:9px; align-items:center; padding:9px 0; border-bottom:1px solid #edf0f2; }.rank-pos { width:25px; height:25px; border-radius:50%; display:grid; place-items:center; background:#20252a; color:#fff; font-weight:900; font-size:9px; }.rank-person { display:flex; align-items:center; gap:8px; }.rank-person > span:last-child b,.rank-person > span:last-child small { display:block; }.rank-person b { font-size:9px; }.rank-person small { font-size:7px; color:var(--muted); }.ranking-row > div:not(.rank-person) small { display:block; font-size:7px; color:var(--muted); }.ranking-row > div:not(.rank-person) b { font-size:9px; }.score-pill { width:38px; height:28px; display:grid; place-items:center; border-radius:8px; font-size:11px; font-weight:900; }.score-pill.good { background:#dff2e5; color:#186533; }.score-pill.warn { background:#fff0bd; color:#805d00; }.score-pill.bad { background:#ffe0e0; color:#a02020; }
.tech-performance-card { padding:11px 0; border-bottom:1px solid #edf0f2; }.tech-performance-card > div:first-child { margin-bottom:9px; }.tech-performance-card strong,.tech-performance-card span { display:block; }.tech-performance-card strong { font-size:10px; }.tech-performance-card span { color:var(--muted); font-size:8px; margin-top:2px; }

@media (max-width:1100px){.mechanic-kpis{grid-template-columns:repeat(2,1fr)}.mechanic-layout{grid-template-columns:220px minmax(0,1fr)}.check-row{grid-template-columns:1fr}.check-actions{justify-content:flex-start}.time-order{grid-template-columns:1fr .7fr .7fr auto}.time-order>div:nth-child(4){display:none}.ranking-row{grid-template-columns:28px 1.2fr .7fr .7fr 48px}.ranking-row>div:nth-child(5){display:none}}
@media (max-width:760px){.mechanic-portal-banner{flex-direction:column;align-items:flex-start}.mechanic-switch{width:100%}.mechanic-kpis{grid-template-columns:1fr 1fr}.mechanic-layout{grid-template-columns:1fr}.mechanic-job-list{position:static}.inspection-head,.inspection-footer{flex-direction:column;align-items:flex-start}.inspection-progress{width:100%;text-align:left}.inspection-reception{grid-template-columns:1fr 1fr}.manual-finding-box{grid-template-columns:1fr 1fr}.manual-finding-box #findingName{grid-column:1/-1}.finding-row{grid-template-columns:auto 1fr}.finding-row>label,.finding-row>span.muted{grid-column:2}.time-order{grid-template-columns:1fr 1fr}.time-order>div:first-child{grid-column:1/-1}.ranking-row{grid-template-columns:28px 1fr 48px}.ranking-row>div:nth-child(3),.ranking-row>div:nth-child(4),.ranking-row>div:nth-child(5){display:none}.productivity-layout{grid-template-columns:1fr}}

/* ========================= V6 • FLUXO OPERACIONAL + LOGÍSTICA ========================= */
:root { --demo-accent:#d32f2f; }
.flow-strip { display:flex; align-items:center; gap:5px; overflow-x:auto; padding:7px 8px; margin:-2px 0 14px; background:#f7f8f9; border:1px solid #e5e8eb; border-radius:11px; scrollbar-width:thin; }
.flow-strip-label { font-size:7px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; color:#858c94; padding:0 5px; }
.flow-step { flex:0 0 auto; display:flex; align-items:center; gap:5px; border:1px solid transparent; background:transparent; border-radius:8px; padding:5px 7px; color:#68707a; cursor:pointer; font-size:8px; }
.flow-step b { font-size:7px; color:#a0a6ad; }
.flow-step:hover { background:#fff; border-color:#dfe3e6; }
.flow-step.active { background:#20252a; color:#fff; border-color:#20252a; }
.flow-step.active b { color:#c9ced2; }
.demo-bar { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:8px 18px; background:color-mix(in srgb,var(--demo-accent) 8%,white); border-bottom:2px solid var(--demo-accent); }
.demo-bar > div:first-child { display:flex; align-items:center; gap:9px; }
.demo-bar b,.demo-bar small { display:block; }.demo-bar b { font-size:9px; }.demo-bar small { color:#6c727a; font-size:7px; margin-top:2px; }
.demo-logo { width:30px; height:30px; border-radius:8px; display:grid; place-items:center; color:#fff; font-weight:900; font-size:9px; box-shadow:0 2px 8px rgba(0,0,0,.10); }
.demo-logo.large { width:46px; height:46px; font-size:13px; border-radius:11px; }
.v6-offers .offer-row { grid-template-columns:1.25fr .78fr .55fr 1.35fr .65fr .72fr .72fr auto; }
.v6-offers .offer-row span small { color:#747b84; line-height:1.35; }
.fastest-offer { box-shadow:inset 3px 0 0 #2f7cd3; }
.fastest-tag { display:inline-block; color:#1f67ac; background:#e8f2ff; padding:2px 4px; border-radius:4px; margin-top:2px; }
.demo-partner-offer { outline:2px solid color-mix(in srgb,var(--demo-accent) 45%,transparent); outline-offset:-2px; }
.prequote-grid,.execution-board,.delivery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.prequote-card,.execution-card,.delivery-card { min-width:0; }
.prequote-findings { display:grid; gap:5px; margin:12px 0; }
.prequote-findings span { background:#f6f7f8; border-radius:7px; padding:7px 8px; font-size:8px; }
.prequote-findings b { display:inline-block; min-width:55px; color:#6e757e; font-size:7px; text-transform:uppercase; margin-right:6px; }
.execution-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin:12px 0 8px; }
.execution-metrics span { background:#f6f7f8; padding:7px; border-radius:8px; }
.execution-metrics small,.execution-metrics b { display:block; }.execution-metrics small { color:#818891; font-size:7px; }.execution-metrics b { font-size:10px; margin-top:2px; }
.delivery-checks { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin:12px 0; }
.delivery-checks span { font-size:8px; padding:7px; background:#f7f8f8; border-radius:7px; }
.demo-config { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:14px; border-left:4px solid var(--demo-accent); }
.demo-config > div:first-child { display:flex; gap:11px; align-items:center; }.demo-config h3 { margin:0 0 3px; font-size:13px; }.demo-config p { margin:0; color:#777e87; font-size:8px; }
.demo-controls { display:flex; gap:7px; align-items:center; min-width:360px; }.demo-controls .select { flex:1; }
.distributor-admin-grid .supplier-config { transition:.15s ease; }.supplier-config.demo-selected { border-color:var(--demo-accent); box-shadow:0 0 0 2px color-mix(in srgb,var(--demo-accent) 12%,transparent); }
.supplier-edit-form input[type="color"] { min-height:34px; padding:3px; }

@media (max-width:1180px){
  .v6-offers .offer-row { grid-template-columns:1.2fr .75fr .55fr 1.15fr .65fr .72fr auto; }
  .v6-offers .offer-row > span:nth-child(6) { display:none; }
}
@media (max-width:900px){
  .v6-offers .offer-row { grid-template-columns:1.25fr .8fr .65fr 1fr auto; }
  .v6-offers .offer-row > span:nth-child(5),.v6-offers .offer-row > span:nth-child(6),.v6-offers .offer-row > span:nth-child(7) { display:none; }
  .prequote-grid,.execution-board,.delivery-grid { grid-template-columns:1fr; }
  .demo-config { align-items:flex-start; flex-direction:column; }.demo-controls { width:100%; min-width:0; }
}
@media (max-width:640px){
  .v6-offers .offer-row { grid-template-columns:1.2fr .75fr auto; }
  .v6-offers .offer-row > span:nth-child(3),.v6-offers .offer-row > span:nth-child(4),.v6-offers .offer-row > span:nth-child(5),.v6-offers .offer-row > span:nth-child(6),.v6-offers .offer-row > span:nth-child(7) { display:none; }
  .demo-bar { align-items:flex-start; flex-direction:column; padding:8px 12px; }
  .delivery-checks { grid-template-columns:1fr; }
}

/* ===== V7 • MVP operacional ===== */
.login-screen{position:fixed;inset:0;z-index:5000;background:linear-gradient(135deg,#0c0d0f 0%,#17191e 62%,#2a1011 100%);display:flex;align-items:center;justify-content:center;padding:24px;color:#fff}
.login-screen.is-hidden{display:none}.login-shell{width:min(980px,100%);display:grid;grid-template-columns:1.1fr .9fr;gap:38px;align-items:center}.login-brand{display:flex;gap:22px;align-items:center}.login-mark{width:92px;height:92px;border-radius:24px;display:grid;place-items:center;background:#d71920;font-weight:900;font-size:32px;letter-spacing:.04em;box-shadow:0 24px 55px rgba(215,25,32,.25)}.login-brand h1{font-size:52px;margin:4px 0 6px}.login-brand p{max-width:460px;color:#b9bdc6;font-size:16px;line-height:1.5}.login-card{background:#fff;color:#17191d;border-radius:22px;padding:28px;box-shadow:0 24px 80px rgba(0,0,0,.35)}.login-card h2{margin:14px 0 6px}.login-card>p{color:#69707d;margin-bottom:18px}.login-card label{display:block;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;margin:12px 0 6px}.login-submit{width:100%;margin:16px 0}.login-profiles{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 14px}.login-profiles button{border:1px solid #e2e5e9;background:#f8f9fb;border-radius:12px;padding:11px;text-align:left;cursor:pointer}.login-profiles button:hover{border-color:#d71920;background:#fff4f4}.login-profiles b,.login-profiles span{display:block}.login-profiles span{font-size:10px;color:#747b86;margin-top:2px}.login-card small{color:#69707d}
.role-chip{display:inline-flex;gap:6px;align-items:center;border:1px solid #e3e6ea;border-radius:999px;padding:5px 9px;background:#fff;font-size:10px;font-weight:800;text-transform:uppercase}.rbac-denied{max-width:720px;margin:60px auto;text-align:center}.rbac-denied .lock{font-size:42px;margin-bottom:12px}.rbac-denied h2{margin:4px 0}.rbac-denied p{color:#69707d}
.v7-statusbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:9px 14px;background:#f7f8fa;border:1px solid #e5e7eb;border-radius:12px;margin-bottom:14px}.v7-statusbar>div{display:flex;gap:8px;align-items:center}.sync-dot{width:8px;height:8px;border-radius:50%;background:#10b981;box-shadow:0 0 0 3px rgba(16,185,129,.12)}.sync-dot.warn{background:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.13)}
.vitals-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.vital-card{background:#fff;border:1px solid #e7e9ed;border-radius:14px;padding:16px;position:relative;overflow:hidden}.vital-card small{display:block;color:#717884;font-size:10px;text-transform:uppercase;font-weight:800}.vital-card strong{display:block;font-size:24px;margin:5px 0}.vital-card span{font-size:10px;color:#5d6570}.vital-card:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#d71920}
.ops-board{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:12px;overflow:auto;padding-bottom:4px}.ops-col{background:#f5f6f8;border:1px solid #e5e7eb;border-radius:14px;padding:10px;min-height:340px}.ops-col-head{display:flex;justify-content:space-between;align-items:center;padding:4px 4px 10px}.ops-col-head b{font-size:12px}.ops-count{display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:#e8eaee;font-size:10px;font-weight:900}.ops-card{background:#fff;border:1px solid #e3e6ea;border-radius:12px;padding:11px;margin-bottom:8px;box-shadow:0 4px 12px rgba(24,28,34,.03)}.ops-card b,.ops-card span,.ops-card small{display:block}.ops-card span{font-size:11px;margin:5px 0}.ops-card small{color:#747b86;font-size:10px}.ops-card .mini-progress{height:4px;background:#eceff2;border-radius:99px;margin-top:8px;overflow:hidden}.ops-card .mini-progress i{display:block;height:100%;background:#d71920;border-radius:99px}
.agenda-toolbar{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-bottom:12px;flex-wrap:wrap}.agenda-view-toggle{display:flex;border:1px solid #dfe3e8;border-radius:10px;overflow:hidden}.agenda-view-toggle button{border:0;background:#fff;padding:8px 12px;font-size:11px;cursor:pointer}.agenda-view-toggle button.active{background:#17191d;color:#fff}.agenda-capacity{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.capacity-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:12px}.capacity-card small{color:#747b86;font-size:9px;text-transform:uppercase;font-weight:800}.capacity-card strong{display:block;margin:4px 0}.capacity-bar{height:6px;border-radius:999px;background:#eceff2;overflow:hidden}.capacity-bar span{height:100%;display:block;background:#d71920}.agenda-v7{display:grid;grid-template-columns:72px repeat(5,minmax(160px,1fr));border:1px solid #e4e7eb;border-radius:14px;overflow:auto;background:#fff}.agenda-v7>*{min-width:0}.agenda-corner,.agenda-day-head{padding:12px;border-bottom:1px solid #e6e8eb;background:#f7f8fa;font-size:11px;font-weight:800;position:sticky;top:0;z-index:1}.agenda-time{padding:12px 8px;border-right:1px solid #e6e8eb;border-bottom:1px solid #eff1f3;font-size:10px;color:#747b86}.agenda-cell{min-height:76px;padding:6px;border-right:1px solid #eff1f3;border-bottom:1px solid #eff1f3}.agenda-event{border-left:3px solid #d71920;background:#fff5f5;border-radius:8px;padding:7px;font-size:10px;cursor:pointer}.agenda-event b,.agenda-event span,.agenda-event small{display:block}.agenda-event span{margin:3px 0}.agenda-event small{color:#707782}.gcal-chip{display:inline-flex;gap:6px;align-items:center;border-radius:999px;padding:6px 10px;background:#f4f7ff;border:1px solid #dce4ff;color:#334c94;font-size:10px;font-weight:800}
.os-360{display:grid;grid-template-columns:330px 1fr;gap:14px}.os-list{display:flex;flex-direction:column;gap:8px}.os-list-item{padding:12px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;cursor:pointer}.os-list-item.active{border-color:#d71920;box-shadow:0 0 0 2px rgba(215,25,32,.07)}.os-list-item b,.os-list-item span,.os-list-item small{display:block}.os-list-item span{font-size:11px;margin:3px 0}.os-list-item small{font-size:10px;color:#747b86}.os-timeline{display:flex;gap:0;overflow:auto;margin:14px 0}.os-stage{flex:1;min-width:115px;border-top:3px solid #d8dce1;padding:10px 6px 0;position:relative}.os-stage.done{border-top-color:#16a34a}.os-stage.current{border-top-color:#d71920}.os-stage b{display:block;font-size:10px}.os-stage span{display:block;color:#747b86;font-size:9px;margin-top:3px}.os-stage:before{content:"";width:10px;height:10px;border-radius:50%;background:#d8dce1;position:absolute;top:-6px;left:4px}.os-stage.done:before{background:#16a34a}.os-stage.current:before{background:#d71920}.os-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.os-panel{border:1px solid #e6e8eb;border-radius:12px;padding:12px;background:#fff}.os-panel h4{margin:0 0 8px;font-size:12px}.os-panel .line{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid #f0f1f3;font-size:10px}.os-panel .line:last-child{border-bottom:0}
.users-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.user-card{background:#fff;border:1px solid #e4e7eb;border-radius:14px;padding:14px}.user-card-head{display:flex;gap:10px;align-items:center}.user-card h3{font-size:13px;margin:0}.user-card p{font-size:10px;color:#737a86;margin:3px 0 0}.perm-list{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.perm-list span{font-size:9px;padding:4px 6px;border-radius:999px;background:#f1f3f5;color:#505762}.integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.integration-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px}.integration-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.integration-card h3{font-size:14px;margin:0}.integration-card p{color:#69707d;font-size:11px;line-height:1.5}.infra-stack{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.infra-box{border:1px solid #e4e7eb;border-radius:12px;padding:12px;background:#fff}.infra-box small{font-size:9px;color:#747b86;text-transform:uppercase;font-weight:800}.infra-box b{display:block;margin-top:4px;font-size:12px}.security-check{display:flex;gap:9px;align-items:flex-start;padding:9px 0;border-bottom:1px solid #eff1f3}.security-check:last-child{border:0}.security-check i{width:18px;height:18px;border-radius:50%;background:#eaf8f0;color:#13844a;display:grid;place-items:center;font-size:10px;font-style:normal}.security-check div b,.security-check div span{display:block}.security-check div b{font-size:11px}.security-check div span{font-size:9px;color:#747b86;margin-top:2px}
@media(max-width:1100px){.vitals-grid,.users-grid{grid-template-columns:repeat(2,1fr)}.agenda-capacity,.infra-stack{grid-template-columns:repeat(2,1fr)}.os-360{grid-template-columns:1fr}.integration-grid{grid-template-columns:1fr}}
@media(max-width:760px){.login-shell{grid-template-columns:1fr}.login-brand{display:none}.login-card{padding:20px}.vitals-grid,.users-grid,.agenda-capacity,.infra-stack,.os-panels{grid-template-columns:1fr}.ops-board{grid-template-columns:repeat(4,240px)}}

/* ===================== V8 • BASELINE OPERACIONAL ===================== */
.remote-board{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:12px;align-items:start;overflow:auto;padding-bottom:4px}.remote-col{background:#f5f6f8;border:1px solid #e6e8ec;border-radius:14px;min-height:260px;padding:10px}.remote-card{background:#fff;border:1px solid #e2e5ea;border-radius:12px;padding:12px;margin-top:9px;box-shadow:0 1px 2px rgba(0,0,0,.03)}.remote-card>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}.remote-card>div:first-child span{font-size:11px;color:#6d7480}.remote-card small{display:block;color:#747b86;margin:5px 0}.remote-card p{font-size:12px;line-height:1.45;margin:8px 0;color:#333943}.remote-card>strong{display:block;font-size:15px;margin:7px 0}.remote-meta{display:flex;gap:6px;align-items:center;margin:8px 0}.report-section-title{display:flex;align-items:end;justify-content:space-between;margin:22px 2px 8px}.report-section-title h3{margin:0;font-size:15px}.report-section-title span{font-size:11px;color:#777}.tech-ingest-v8{margin-bottom:14px;border:1px solid #d7dbe1;background:linear-gradient(180deg,#fff,#fafbfc)}.tech-schema-v8{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:8px;margin:12px 0}.tech-schema-v8 span{display:flex;align-items:center;gap:8px;border:1px solid #e3e5e8;border-radius:9px;padding:8px 10px;font-size:11px;background:#fff}.tech-schema-v8 b{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#15171b;color:#fff;font-size:10px}.permission-matrix-v8{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}.permission-matrix-v8 section{border:1px solid #e3e5e8;border-radius:12px;padding:12px;background:#fafbfc}.permission-matrix-v8 h4{margin:0 0 8px;font-size:12px}.permission-toggle-v8{display:flex;align-items:center;justify-content:space-between;padding:7px 0;border-bottom:1px dashed #e5e7eb;font-size:11px;gap:12px}.permission-toggle-v8:last-child{border-bottom:0}.permission-toggle-v8 input{position:absolute;opacity:0;pointer-events:none}.permission-toggle-v8 i{width:34px;height:18px;background:#c9ced6;border-radius:999px;position:relative;flex:0 0 auto;transition:.2s}.permission-toggle-v8 i:after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:#fff;top:2px;left:2px;box-shadow:0 1px 2px rgba(0,0,0,.22);transition:.2s}.permission-toggle-v8 input:checked+i{background:#d71920}.permission-toggle-v8 input:checked+i:after{transform:translateX(16px)}.settings-panel textarea.field{width:100%;resize:vertical}.inspection-footer .danger-outline{border-color:#d5a1a3;color:#9d1d22}.audit-flag{font-size:10px;font-weight:800;letter-spacing:.05em;color:#9f1b20}.v7-statusbar .role-chip{white-space:nowrap}
@media(max-width:1100px){.remote-board{grid-template-columns:repeat(2,minmax(260px,1fr))}.permission-matrix-v8{grid-template-columns:1fr 1fr}.tech-schema-v8{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.remote-board{grid-template-columns:1fr}.permission-matrix-v8{grid-template-columns:1fr}.tech-schema-v8{grid-template-columns:1fr 1fr}}

/* =========================
   V9 — Operação & Dados
   ========================= */
.flow-step strong,.flow-step span,.operational-flow button,.ops-step b{font-size:13px!important}
.flow-step small,.operational-flow small{font-size:11px!important}
.data-state{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;background:#eef0f3;color:#58606d}
.data-state.good{background:#e8f7ee;color:#177a43}.data-state.warn{background:#fff4da;color:#9a6400}.data-state.bad{background:#fde8e8;color:#b42318}.data-state.neutral{background:#edf0f4;color:#68707c}
.v9-customer-card .customer-card-head{align-items:flex-start}.v9-customer-card .customer-meta{flex-wrap:wrap}
.quote-mode-v9{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 14px;background:#f8f9fb;border:1px solid #e5e7eb;border-radius:10px;margin-bottom:14px}.quote-mode-v9>label:last-of-type{display:flex;align-items:center;gap:8px;font-size:11px}.quote-mode-v9 .permission-toggle-v8{min-width:300px;flex:1}.quote-mode-v9 small{display:block;color:#6b7280;font-weight:400;margin-top:2px}
.checklist-mode-card{display:flex;justify-content:space-between;gap:18px;align-items:center;background:#fff;border:1px solid #e4e7eb;border-radius:12px;padding:14px 16px;margin-bottom:14px}.checklist-mode-card small,.checklist-mode-card strong,.checklist-mode-card span{display:block}.checklist-mode-card small{font-size:9px;color:#7a818d;font-weight:800;letter-spacing:.08em}.checklist-mode-card strong{font-size:15px;margin:3px 0}.checklist-mode-card span{font-size:11px;color:#646c78}.check-number-v9{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;border-radius:6px;background:#eef1f5;font-size:10px;color:#59616c;margin-right:5px}.inspection-reception{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important}
.delivery-check-v9{display:flex;align-items:center;gap:10px;padding:10px 4px;border-bottom:1px solid #eceff2;font-size:12px}.delivery-check-v9 input{width:17px;height:17px}.quality-os-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px}
.post-task-v9{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #edf0f3}.post-task-v9>div:first-child b,.post-task-v9>div:first-child span{display:block}.post-task-v9 span{font-size:11px;color:#69707c;margin-top:3px}.post-task-v9>div:last-child{display:flex;align-items:center;gap:8px}.post-task-v9.done{opacity:.6}
.date-filter-v9{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.date-filter-v9 .field{width:145px}.quick-period-v9{display:flex;gap:7px}
.report-list-v9{display:grid}.report-row-v9{display:flex;justify-content:space-between;gap:18px;padding:10px 4px;border-bottom:1px solid #edf0f3;font-size:12px}.report-row-v9 b{text-align:right}.report-row-v9.key{font-size:13px;background:#fafafa;padding:12px 9px;border-radius:7px}.report-row-v9.key b{font-size:15px}
.remote-lane-v9{background:#f4f8ff;border:1px solid #dbe9ff;border-radius:12px;padding:14px}.remote-mini-v9{display:flex;gap:8px;flex-wrap:wrap}.remote-mini-v9>span{background:#fff;border:1px solid #dce7f5;border-radius:8px;padding:8px 10px;font-size:10px}.remote-mini-v9 b{display:block;font-size:11px;margin-bottom:2px}
.ops-board-v9{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.ops-stage-v9{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e5e8ec;border-radius:10px;padding:12px}.ops-stage-v9>span{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;background:#121212;color:#fff;font-size:10px;font-weight:800}.ops-stage-v9>div{flex:1}.ops-stage-v9 b,.ops-stage-v9 small{display:block}.ops-stage-v9 small{font-size:9px;color:#737b86;margin-top:2px}.ops-stage-v9>strong{font-size:18px}
.checklist-model-grid-v9{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:14px;margin-top:14px}.model-items-v9{font-size:11px;color:#4f5762;line-height:1.6;padding-left:22px;margin:12px 0 0}
@media(max-width:760px){.checklist-mode-card{align-items:flex-start;flex-direction:column}.quote-mode-v9 .permission-toggle-v8{min-width:100%}.date-filter-v9{width:100%}.date-filter-v9 .field{width:130px}.quality-os-grid,.checklist-model-grid-v9{grid-template-columns:1fr}}

/* ========================= V10 • OPERAÇÃO ASSISTIDA ========================= */
.v10-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.v10-filter-card{border:1px solid #e2e5e9;background:#fff;border-radius:12px;padding:12px;text-align:left;cursor:pointer;transition:.16s;min-height:82px}.v10-filter-card:hover{border-color:#b8bec7;transform:translateY(-1px)}.v10-filter-card.active{border-color:#17191d;box-shadow:0 0 0 2px rgba(23,25,29,.07)}.v10-filter-card small,.v10-filter-card strong,.v10-filter-card span{display:block}.v10-filter-card small{font-size:9px;color:#69717d;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.v10-filter-card strong{font-size:22px;margin:4px 0 2px}.v10-filter-card span{font-size:9px;color:#7a818c}
.empty-state-v10{border:1px dashed #cfd4da;border-radius:14px;padding:28px;text-align:center;background:#fafbfc;grid-column:1/-1}.empty-state-v10 b,.empty-state-v10 span{display:block}.empty-state-v10 b{font-size:14px}.empty-state-v10 span{font-size:10px;color:#707782;margin:5px 0 12px}.empty-inline-v10{padding:12px;border:1px dashed #d9dde2;border-radius:9px;color:#727985;font-size:10px;background:#fafbfc}
.v10-timeline{margin-top:14px;border-top:1px solid #e9ecf0}.v10-timeline-row{display:grid;grid-template-columns:90px 90px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #edf0f3}.v10-timeline-row>span{font-size:10px;color:#6f7782}.v10-timeline-row>i{font-style:normal;font-size:9px;font-weight:800;text-transform:uppercase;background:#f1f3f5;border-radius:999px;padding:4px 7px;text-align:center}.v10-timeline-row b,.v10-timeline-row small{display:block}.v10-timeline-row b{font-size:11px}.v10-timeline-row small{font-size:9px;color:#747b86;margin-top:2px}
.v10-service-option{align-items:flex-start!important}.v10-service-option>div{min-width:0}.v10-service-option small{display:block;color:#7b828c;font-size:9px;line-height:1.35;margin-top:4px;white-space:normal}.v10-service-line{display:grid;grid-template-columns:minmax(260px,1fr) 65px 100px 105px auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #eceff2}.v10-service-main strong,.v10-service-main span,.v10-service-main small{display:block}.v10-service-main strong{font-size:11px}.v10-service-main span{font-size:9px;color:#68707b;margin-top:2px}.v10-service-main small{font-size:9px;color:#7b828d;line-height:1.35;margin-top:5px}.v10-service-line label{font-size:8px;color:#747c87}.v10-service-line label .field{margin-top:3px;width:100%}
.v10-schema{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.v10-schema span{font-size:9px;padding:5px 7px;border-radius:7px;background:#f1f3f5;border:1px solid #e2e5e9}.v10-internal-cost-row{display:grid;grid-template-columns:minmax(0,1fr) 130px auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #edf0f3}.v10-internal-cost-row b,.v10-internal-cost-row span{display:block}.v10-internal-cost-row b{font-size:11px}.v10-internal-cost-row span{font-size:9px;color:#747b85;margin-top:3px}.v10-internal-cost-row>strong{text-align:right;color:#a12626}
.v10-ops-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.v10-ops-card{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #e3e6ea;background:#fff;border-radius:12px;padding:12px;text-align:left;cursor:pointer}.v10-ops-card:hover{border-color:#aeb5bf}.v10-ops-card>span{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#17191d;color:#fff;font-size:9px;font-weight:900}.v10-ops-card b,.v10-ops-card small{display:block}.v10-ops-card b{font-size:11px}.v10-ops-card small{font-size:9px;color:#747b86;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v10-ops-card>strong{font-size:20px}.v10-drill-list>div{padding:10px 0;border-bottom:1px solid #edf0f3}.v10-drill-list b,.v10-drill-list span{display:block}.v10-drill-list b{font-size:12px}.v10-drill-list span{font-size:10px;color:#6f7681;margin-top:3px}.v10-dash-action{width:100%;display:flex;justify-content:space-between;align-items:center;border:0;border-bottom:1px solid #edf0f3;background:transparent;padding:10px 3px;cursor:pointer;text-align:left}.v10-dash-action span{font-size:11px}.v10-dash-action b{font-size:15px}
.v10-time-layout{align-items:start}.v10-time-grid{margin-top:10px;border-top:1px solid #e5e8eb}.v10-time-slot{display:grid;grid-template-columns:62px 1fr;min-height:28px;border-bottom:1px solid #eef0f2}.v10-time-slot time{font-size:9px;color:#707884;padding:7px 8px 0 0;text-align:right;border-right:1px solid #eef0f2}.v10-time-slot>div{padding:5px 8px}.v10-time-slot.lunch{background:#f5f6f8}.v10-time-slot.lunch span{font-size:9px;color:#777f89}.v10-entry{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf0f3}.v10-entry b,.v10-entry span{display:block}.v10-entry b{font-size:11px}.v10-entry span{font-size:9px;color:#757c86;margin-top:2px}.v10-entry>strong{font-size:12px;white-space:nowrap}
.v10-report-wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.v10-report-wrap h3{margin:0 0 8px}.v10-report-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 3px;border-bottom:1px solid #edf0f3}.v10-report-row span{font-size:10px;display:flex;align-items:center;gap:5px}.v10-report-row span i{font-style:normal;color:#8a919b;cursor:help}.v10-report-row b{font-size:11px;text-align:right}.v10-report-row.key{background:#f8f9fa;border-radius:7px;padding:11px 8px;margin:3px 0}.v10-report-row.key b{font-size:14px}
.v10-schedule-table{display:grid;gap:6px;margin-top:12px}.v10-schedule-table>div{display:grid;grid-template-columns:150px repeat(4,120px);gap:8px;align-items:center;border-bottom:1px solid #edf0f3;padding:7px 0}.v10-schedule-table label{font-size:10px;font-weight:700}.v10-schedule-table .field{width:100%}
@media(max-width:1100px){.v10-filter-grid{grid-template-columns:repeat(2,1fr)}.v10-ops-grid{grid-template-columns:repeat(2,1fr)}.v10-report-wrap{grid-template-columns:1fr 1fr}.v10-service-line{grid-template-columns:minmax(220px,1fr) 70px 100px 100px auto}.v10-schedule-table>div{grid-template-columns:120px repeat(4,1fr)}}
@media(max-width:760px){.v10-filter-grid,.v10-ops-grid,.v10-report-wrap{grid-template-columns:1fr}.v10-timeline-row{grid-template-columns:75px 75px 1fr}.v10-timeline-row button{grid-column:3}.v10-service-line{grid-template-columns:1fr 80px}.v10-service-line .v10-service-main{grid-column:1/-1}.v10-schedule-table>div{grid-template-columns:1fr 1fr}.v10-schedule-table>div label{grid-column:1/-1}.v10-time-layout{grid-template-columns:1fr!important}}
/* V10 — editor visual de modelos de checklist */
.v10-chk-editor-head,.v10-chk-row{display:grid;grid-template-columns:40px minmax(220px,2fr) minmax(130px,1fr) minmax(190px,1.2fr) 105px 75px 40px;gap:8px;align-items:center}.v10-chk-editor-head{padding:8px 4px;font-size:11px;font-weight:800;color:var(--muted);text-transform:uppercase}.v10-chk-row{padding:7px 0;border-top:1px solid var(--line)}.v10-chk-num{font-weight:800;color:var(--muted);text-align:center}.v10-mini-check{font-size:12px;display:flex;gap:5px;align-items:center}.v10-mini-check input{accent-color:var(--accent)}@media(max-width:1100px){.v10-chk-editor-head{display:none}.v10-chk-row{grid-template-columns:36px 1fr 1fr}.v10-chk-row>[data-chk-field="responseType"]{grid-column:2/4}.v10-mini-check{grid-column:auto}.v10-chk-row .icon-btn{grid-column:3}}
/* V10 — conferência final simples */
.v10-conference-list{display:grid;gap:8px;margin-top:10px}.v10-conference-item{display:grid;grid-template-columns:minmax(240px,1.4fr) 160px minmax(200px,1fr);gap:10px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.v10-conference-item>div{display:flex;flex-direction:column;gap:3px}.v10-conference-item small{color:var(--muted)}@media(max-width:850px){.v10-conference-item{grid-template-columns:1fr}.v10-conference-item .select,.v10-conference-item .field{width:100%}}
/* V10 — mapeamento de importação CSV */
.v10-map-wrap{margin:12px 0}.v10-map-wrap h4{margin:0 0 8px;font-size:12px}.v10-map-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v10-map-grid label{display:grid;gap:5px}.v10-map-grid label span{font-size:10px;font-weight:800;color:var(--muted)}@media(max-width:700px){.v10-map-grid{grid-template-columns:1fr}}
