/* Consultas: screen-only appearance; no document/print or business-rule changes. */
@media screen {
  :is(.orders-module:has(.sales-record-layout),.customers-page,.reports-tabs-page,.fic-page) { --navy-900:#101e3d; --body:#101e3d; --muted:#647da5; --border:#c7d5e8; --border-soft:#dce5f0; --card:#fff; --surface:#f5f7fa; color:var(--navy-900); font-size:13px; line-height:1.4; }
  :root[data-theme='dark'] :is(.orders-module:has(.sales-record-layout),.customers-page,.reports-tabs-page,.fic-page) { --navy-900:#e7efff; --body:#e7efff; --muted:#a4b0c2; --border:#34445d; --border-soft:#303a49; --card:#171f2d; --surface:#1e293b; }
  body :is(.orders-module:has(.sales-record-layout),.customers-page,.reports-tabs-page,.fic-page), body :is(.orders-module:has(.sales-record-layout),.customers-page,.reports-tabs-page,.fic-page) * { font-family:'ERP Plex UI',system-ui,'Segoe UI',sans-serif !important; font-synthesis:none; -webkit-font-smoothing:antialiased; }
  .orders-module:has(.sales-record-layout) .orders-topbar h1, .customers-page .customers-title h1, .reports-tabs-page .reports-title h1, .fic-page .fic-head h1 { font-size:18px; font-weight:600; letter-spacing:0; line-height:1.3; }
  .orders-module:has(.sales-record-layout) .orders-subtitle, .customers-page .customers-title span, .reports-tabs-page .reports-title p, .fic-page .fic-head p { font-size:12px; color:var(--muted); }
  .orders-module:has(.sales-record-layout) :is(.orders-list-panel,.orders-table,.sales-record-stats>div), .customers-page :is(.customers-panel,.customers-stat), .reports-tabs-page :is(.reports-panel,.reports-kpi,.reports-brief-card), .fic-page .fic-filters { border-radius:3px; box-shadow:none; }
  .orders-module:has(.sales-record-layout) .orders-toolbar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
  .orders-module:has(.sales-record-layout) .orders-search-box { flex:1 1 220px; min-width:0; height:34px; box-sizing:border-box; border-radius:3px; padding:0 9px; box-shadow:none; }
  .orders-module:has(.sales-record-layout) .orders-search-box input { min-width:0; font-size:13px; }
  .orders-module:has(.sales-record-layout) .orders-filter-selects { display:flex; gap:8px; flex-wrap:wrap; }
  .orders-module:has(.sales-record-layout) .orders-filter-selects select { width:164px; max-width:100%; height:34px; box-sizing:border-box; border:1px solid var(--border); border-radius:3px; padding:0 9px; background:var(--card); color:var(--navy-900); font-size:13px; font-weight:500; }
  .orders-module:has(.sales-record-layout) .sales-record-row-customer strong, .customers-page .customers-name strong { font-size:14px; font-weight:600; letter-spacing:0; }
  .orders-module:has(.sales-record-layout) .sales-record-row-customer span, .customers-page .customers-name span { font-size:12px; }
  .orders-module:has(.sales-record-layout) .sales-record-row-total strong { font-size:14px; font-weight:600; font-style:normal; }
  .orders-module:has(.sales-record-layout) .sales-record-stats strong, .customers-page .customers-stat strong { font-size:20px; font-weight:600; letter-spacing:0; }
  .orders-module:has(.sales-record-layout) :is(.sales-record-date-header,.orders-fixed-pagination) { font-size:12px; }
  .orders-module:has(.sales-record-layout) :is(.sales-date-presets button,.orders-secondary-button,.sra-btn,.quo-usar) { border-radius:3px; box-shadow:none; }
  .customers-page .customers-toolbar { grid-template-columns:minmax(0,1fr) 148px; gap:8px; padding:10px 12px 0; }
  .customers-page .customers-toolbar :is(input,select), .customers-page .customers-header .customers-primary { height:34px; box-sizing:border-box; border-radius:3px; font-size:13px; box-shadow:none; }
  .customers-page .customers-toolbar input { font-weight:400; }
  .customers-page .customers-toolbar select { font-weight:500; }
  .customers-page .customers-pill { border-radius:3px; }
  .customers-page .customers-table-head, .reports-tabs-page .reports-head, .fic-page .fic-table th { font-size:10px; font-weight:600; color:var(--muted); letter-spacing:.04em; }
  .reports-tabs-page .reports-filters { flex-wrap:wrap; gap:8px; }
  .reports-tabs-page :is(.reports-range,.reports-dates) { padding:0; height:34px; box-sizing:border-box; gap:0; border-radius:3px; box-shadow:none; }
  .reports-tabs-page .reports-range button { height:32px; border-radius:2px; font-size:12px; padding:0 10px; box-shadow:none; }
  .reports-tabs-page .reports-date-button { font-size:12px; border-radius:3px; box-shadow:none; }
  .reports-tabs-page .reports-section-tabs { border-radius:3px; box-shadow:none; gap:4px; }
  .reports-tabs-page .reports-section-tabs button { min-height:34px; border-radius:3px; font-size:13px; font-weight:600; box-shadow:none; }
  .reports-tabs-page .reports-panel h2 { font-size:13px; font-weight:600; letter-spacing:0; }
  .reports-tabs-page .reports-kpi strong { font-size:18px; font-weight:600; letter-spacing:0; white-space:normal; overflow-wrap:anywhere; }
  .reports-tabs-page .reports-kpis.compact .reports-kpi strong { font-size:16px; }
  .reports-tabs-page { background:var(--surface); }
  .reports-tabs-page .reports-section-tabs { grid-template-columns:repeat(auto-fit,minmax(85px,1fr)); }
  .reports-tabs-page .reports-row { font-size:13px; }
  .reports-tabs-page .reports-pill { border-radius:3px; }
  .fic-page .fic-filter-main { grid-template-columns:minmax(180px,1fr) 148px 164px; gap:8px; }
  .fic-page .fic-filters :is(input,select,button), .fic-page .fic-head button { height:34px; min-height:34px; box-sizing:border-box; font-size:13px; border-radius:3px; box-shadow:none; }
  .fic-page .fic-table { font-size:13px; }
  .fic-page .fic-customer { font-size:14px; font-weight:600; }
  .fic-page .fic-customer small { font-size:12px; font-weight:400; }
  .fic-page .fic-state { border-radius:3px; }
  :is(.orders-module:has(.sales-record-layout),.customers-page,.reports-tabs-page,.fic-page) button:focus-visible { outline:2px solid #ff690c !important; outline-offset:-2px; }
  .orders-module:has(.sales-record-layout) .orders-search-box:focus-within, .orders-module:has(.sales-record-layout) .orders-filter-selects select:focus, .customers-page .customers-toolbar :is(input,select):focus, .fic-page .fic-filters :is(input,select):focus { outline:1px solid #ff690c !important; outline-offset:-1px; border-color:#ff690c; box-shadow:none; }
  .orders-module:has(.sales-record-layout) .orders-search-box input:focus { outline:none !important; box-shadow:none; }
  @media (max-width:820px) { .fic-page .fic-filter-main { grid-template-columns:repeat(2,minmax(0,1fr)); } .fic-page .fic-filter-main label:first-child { grid-column:1/-1; } .fic-page .fic-filters :is(input,select,button), .fic-page .fic-head button { min-height:44px; height:auto; } }
  @media (max-width:500px) { .customers-page .customers-toolbar { grid-template-columns:minmax(0,1fr); } .orders-module:has(.sales-record-layout) .orders-filter-selects { width:100%; } .orders-module:has(.sales-record-layout) .orders-filter-selects select { flex:1; min-width:0; } }
}
