/* Identidad visual de Baransu. Se carga después de los estilos de cada módulo. */
:root {
  color-scheme: light;
  --ink: #202938;
  --muted: #657084;
  --paper: #f4f5f8;
  --panel: #fff;
  --line: #dfe3eb;
  --gold: #425b93;
  --gold-dark: #314675;
  --green: #287457;
  --red: #a5414c;
  --cream: #f4f5f8;
  --shadow: 0 3px 12px rgb(31 43 67 / 3%);
  --font-ios: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
body { background: var(--paper); font-family: var(--font-ios); line-height: 1.5; }
.developer-access { display: block; margin: 20px 0 14px; padding: 12px; border-top: 1px solid var(--line); color: var(--gold-dark); font-size: 12px; text-decoration: none; }
.developer-access[hidden] { display: none; }
.developer-access:hover { background: #eaf0fc; }
.developer-access i { margin-right: 7px; }
.developer-page main { max-width: 1200px; margin: 0 auto; }
.developer-workspace { margin-top: 22px; }
.developer-page a.secondary { text-decoration: none; white-space: nowrap; }
.developer-tag { padding: 5px 10px; border-radius: 5px; background: #eaf0fc; color: var(--gold-dark); font-size: 12px; }
.developer-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 24px 0; }
.developer-steps li { padding: 17px; background: #f7f8fb; border: 1px solid var(--line); border-radius: 7px; }
.developer-steps strong, .developer-steps span { display: block; }
.developer-steps span { margin-top: 8px; color: var(--muted); font-size: 12px; }
.developer-pending { padding: 18px; border-left: 3px solid #8a9dbf; background: #edf2fb; border-radius: 5px; }
.developer-pending p, .developer-note { color: var(--muted); font-size: 12px; }
.developer-file { display: grid; gap: 8px; margin-top: 24px; font-size: 13px; }
.developer-file input { padding: 14px; border: 1px dashed var(--line); border-radius: 6px; }
.installation-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.installation-form label { display: grid; gap: 6px; font-size: 12px; flex: 1; min-width: 180px; }
.installation-form input { padding: 10px; border: 1px solid var(--line); border-radius: 5px; }
.developer-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.developer-buttons button:disabled, .developer-file input:disabled { cursor: not-allowed; }
.count-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.count-settings[hidden], #countReview[hidden] { display: none; }
.count-settings label { display: grid; gap: 7px; font-size: 12px; color: var(--muted); }
.count-settings select { padding: 10px; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 5px; }
.count-filter { display: flex; align-items: center; gap: 8px; margin: 20px 0 12px; font-size: 12px; }
.count-table { min-width: 950px; width: 100%; }
.count-table td, .count-table th { padding: 12px 10px; font-size: 12px; }
.count-table input { width: 88px; padding: 7px; border: 1px solid var(--line); border-radius: 4px; }
.count-table .count-error { color: var(--red); }
.count-table .count-good { color: var(--green); }
.count-table td:last-child { min-width: 230px; white-space: normal; }
.count-history { display: grid; gap: 9px; }
.count-history button { text-align: left; }
.count-status-error { color: var(--red); }
.count-confirm { max-width: 540px; width: calc(100% - 32px); padding: 25px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; }
.count-confirm::backdrop { background: #20293866; }
.count-confirm h2 { margin-top: 0; font-size: 23px; }
.count-confirm p { font-size: 13px; line-height: 1.7; }
@media (max-width: 700px) { .count-settings { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .developer-steps { grid-template-columns: 1fr; } }
button, input, select, textarea { font-size: 13px; }
button { transition: background-color .15s, border-color .15s; }
.sidebar {
  width: 244px; padding: 26px 16px 18px; background: #fff;
  color: var(--ink); border-right: 1px solid var(--line); overflow-y: auto;
}
.brand { gap: 11px; padding: 0 8px 24px; border-bottom-color: var(--line); }
.brand img { width: 43px; height: 43px; object-fit: contain; border-radius: 0; }
.brand strong { font: 700 18px var(--font-ios); letter-spacing: .09em; }
.brand span { font-size: 11px; color: var(--muted); }
.sidebar nav { margin-top: 22px; gap: 5px; }
.nav-item { position: relative; border-radius: 7px; padding: 12px; color: #535d6e; font-size: 13px; font-weight: 500; }
.nav-item i { width: 26px; margin-right: 4px; font-size: 15px; }
.nav-item:hover { color: var(--gold-dark); background: #f3f5f9; }
.nav-item.active { color: #314675; background: #eaf0fc; font-weight: 650; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 2px; background: var(--gold); }
.session-card { color: var(--ink); border-color: var(--line); background: #f8f9fb; border-radius: 8px; }
.session-card small, .source-card small { color: var(--muted); }
.session-card button { color: #4b5870; background: white; border-color: var(--line); border-radius: 5px; }
.source-card { border-color: var(--line); border-radius: 8px; padding: 12px; margin-top: auto; }
.source-card strong { font-size: 11px; font-weight: 600; }
.source-card small { font-size: 10px; }
.status-dot { background: #4b9875; box-shadow: 0 0 0 3px #edf6f1; }
.sidebar-toggle { left: 226px; top: 23px; width: 32px; height: 32px; border-radius: 7px; border-color: var(--line); color: #56637a; background: white; box-shadow: var(--shadow); font-size: 23px; }
.sidebar-toggle:hover { background: #eaf0fc; }
main { margin-left: 244px; max-width: none; padding: 30px 34px 60px; }
.topbar { padding: 23px 25px; border: 1px solid var(--line); border-radius: 12px; background: #fff; gap: 20px; align-items: center; }
.topbar h1 { font-size: clamp(25px, 2.6vw, 34px); font-weight: 650; line-height: 1.2; letter-spacing: -.035em; }
.topbar p:last-child { font-size: 12px; margin-top: 9px; line-height: 1.6; }
.eyebrow { color: #6c7690; font-size: 10px; letter-spacing: .08em; font-weight: 600; margin-bottom: 9px; }
.actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 460px; }
.primary, .secondary, .auth-form button { min-height: 38px; padding: 9px 13px; border-radius: 6px; font-size: 12px; font-weight: 600; box-shadow: none; }
.primary, .auth-form button { color: white; background: var(--gold); border: 1px solid var(--gold); }
.primary:hover, .auth-form button:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.secondary, .print-button, .user-edit-button { color: #454e63; background: #fff; border-color: var(--line); }
.secondary:hover, .user-edit-button:hover { background: #f1f4fa; border-color: #b8c4d9; }
:is(body) :is(button, input, select, textarea, a):focus-visible { outline: 2px solid #425b93; outline-offset: 3px; }
:is(body) input, :is(body) select, :is(body) textarea { color: var(--ink); background-color: #fff; border-color: #d5dce7; accent-color: var(--gold); }
input::placeholder, textarea::placeholder { color: #8690a0; }
.filters { margin: 20px 0; background: white; border-radius: 8px; padding: 13px 16px; }
.filters label { font-size: 11px; font-weight: 600; }
.filters input { border-radius: 5px; padding: 7px 10px; font-size: 12px; }
.updated-at { font-size: 11px; }
.kpi-grid { gap: 14px; }
.kpi, .panel, .center-card { background: white; border-color: var(--line); box-shadow: var(--shadow); border-radius: 9px; }
.kpi { position: relative; min-height: 128px; padding: 19px 20px; border-top: 3px solid #8a9dbf; }
.kpi:nth-child(2) { border-top-color: #98b6ae; }
.kpi:nth-child(3) { border-top-color: #b0a5c7; }
.kpi:nth-child(4) { border-top-color: #c4b18e; }
.kpi span { font-size: 12px; font-weight: 500; }
.kpi strong { font-size: clamp(24px, 2.5vw, 32px); font-weight: 650; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 11px; }
.panel { padding: 23px; }
.panel-head h2 { font-size: 19px; font-weight: 650; }
.panel-head p { font-size: 12px; line-height: 1.6; }
.sales-goal-head { flex-wrap: wrap; gap: 20px; }
.sales-goal-form { margin-left: auto; }
.sales-goal-form { grid-template-columns: repeat(2, minmax(135px, 1fr)); max-width: 640px; }
.sales-goal-form input, .point-goal-form select { min-width: 0; }
.point-goal-form { max-width: none; margin: 0 0 18px; }
.point-goal-form select { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.seller-period-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.sales-goal-form label { font-size: 11px; }
.sales-goal-summary > div, .cash-system-summary > div, .cash-close-totals > div,
.compare-kpi, .user-form, .user-form fieldset, .user-switches, .marketing-form,
.activity-card, .cash-sale-products, .ie-review, .receipt-account { background: #f7f8fb; border-color: var(--line); border-radius: 7px; }
.sales-goal-summary span { font-size: 11px; }
.sales-goal-summary strong { font-size: 20px; font-weight: 650; }
.sales-goal-progress { height: 16px; background: #e9edf4; }
.sales-goal-progress > div { background: #607caf; font-size: 10px; }
.sales-goal-grid-head strong { font-size: 12px; }
.sales-goal-grid-head small { font-size: 11px; }
.sales-goal-day { border-radius: 6px; padding: 11px 8px; }
.sales-goal-day > span { font-size: 10px; }
.sales-goal-day > strong { font-size: 12px; }
.sales-goal-day > small { font-size: 10px; }
.sales-goal-day.behind { background: #fcfaf5; }
.sales-goal-day > div, .progress { background: #e9edf4; }
.sales-goal-day > div i, .progress i { background: #607caf; }
.chart-note { color: #4f6080; background: #edf2fb; border-radius: 6px; }
.chart-note i { color: var(--gold); }
.sales-bar-track { border-color: var(--line); border-radius: 6px; background: repeating-linear-gradient(90deg, #f1f4f9 0, #f1f4f9 calc(25% - 1px), #dce3ee 25%); }
.sales-bar-fill { border-radius: 5px; background: #718bb7; box-shadow: none; }
.sales-bar-data { background: #314675; border-radius: 4px; text-shadow: none; backdrop-filter: none; }
.sales-bar-month strong { font-size: 14px; }
.sales-bar-data strong { font-size: 19px; }
.rank-number, .center-card .token, .receipt-account-avatar { background: #eaf0fc; color: var(--gold-dark); }
table { font-variant-numeric: tabular-nums; }
thead th { color: #55627a; background: #f4f6fa; font-weight: 600; }
tbody tr:hover { background: #f6f8fc; }
td, th { border-color: var(--line); }
.compare-intro { background: #fff; }
.compare-intro h2, .marketing-toolbar h2 { font-size: 25px; }
.compare-period, .compare-tabs { background: #f0f3f9; border-color: var(--line); }
.compare-tabs button.active { color: var(--gold-dark); box-shadow: 0 1px 4px #23335212; }
.calendar-weekdays, .cash-sales-preview-head { background: #f0f3f9; }
.calendar-day.selected, .calendar-day:hover { background: #edf2fb; }
.calendar-event, .user-badge { color: #425b93; background: #eaf0fc; }
.calendar-day.today > b, .day-count { color: white; background: var(--gold); }
.product-list-wrap thead th, .daily-product-grid thead th,
.daily-product-grid thead .product-cell, .daily-product-grid tfoot th,
.daily-product-grid tfoot td, .daily-product-grid tfoot .product-cell,
.daily-product-grid .column-total { background: #eef2f8; color: var(--ink); }
.daily-product-grid .row-total, .daily-product-grid .grand-total { background: var(--gold-dark); color: white; }
.badge.c, .decision.good, .user-badge.active, .seller-goal-badge.reached,
.compare-badge.good, .calendar-event.status-completada, .sales-goal-day.reached { background: #edf6f0; color: #286447; }
.badge.p, .decision.reorder, .decision.warning, .user-badge.admin,
.seller-goal-badge.pending, .compare-badge.alert, .message { background: #fff5e1; color: #805a20; }
.badge.a, .decision.urgent, .user-badge.inactive, .compare-badge.review,
.message.error, .auth-message.error, .calendar-event.status-cancelada { background: #fceef0; color: #943745; }
.modal-dialog, .day-sales-dialog, .sale-receipt-dialog { background: #fff; color: var(--ink); border-color: var(--line); border-radius: 10px; }
.modal-backdrop, .day-sales-dialog::backdrop, .sale-receipt-dialog::backdrop { background: #20293866; }
.loading { background: #f4f5f8eb; }
.auth-page { background: #f4f5f8; }
.auth-page::before { display: none; }
.auth-card { border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 10px; background: #fff; box-shadow: 0 12px 36px #2533520a; }
.auth-form h1 { color: var(--ink); font-size: 29px; font-weight: 650; }
.auth-eyebrow { color: var(--gold); letter-spacing: .08em; }
.auth-form input { border-radius: 6px; }
.auth-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #425b9314; }
.auth-footer { color: var(--muted); font-size: 10px; }
@media (min-width: 1051px) and (max-width: 1300px) {
  main { padding: 26px 24px 50px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .actions { justify-content: flex-start; max-width: none; }
}
@media (max-width: 1050px) {
  .sidebar { width: auto; padding: 20px 24px; }
  .sidebar nav { margin-top: 16px; }
  .source-card { margin-top: 14px; }
  .sidebar-toggle, .sidebar-collapsed .sidebar-toggle { left: auto; right: 14px; top: 18px; }
  main { margin-left: 0; padding: 24px; }
  .sales-goal-form { margin-left: 0; }
}
@media (max-width: 700px) {
  .sales-goal-form { grid-template-columns: 1fr; width: 100%; }
  main { padding: 16px 12px 36px; }
  .sidebar { padding: 18px 14px; }
  .topbar, .panel { padding: 18px; }
  .topbar h1 { font-size: 26px; }
  .actions { max-width: none; justify-content: flex-start; }
  .actions button { flex: 1 1 140px; }
  .nav-item { padding: 11px 8px; font-size: 12px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { min-height: 120px; padding: 14px; }
  .kpi strong { font-size: 24px; overflow-wrap: anywhere; }
  .kpi span, .kpi small { font-size: 10px; }
  .auth-card { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
