:root{
  --erp-primary: #0b3b82;
  --erp-primary-dark: #0b3b82;
  --erp-accent: #f2b705;
  --erp-success: #16a34a;
  --erp-danger: #dc2626;
  --erp-bg: #eef4fb;
  --erp-surface: #ffffff;
  --erp-soft: #f7fbff;
  --erp-line: #cbdcf0;
  --erp-text: #001b44;
  --erp-theme-bg: #eef4fb;
  --erp-theme-card: #ffffff;
  --erp-theme-text: #001b44;
  --erp-theme-muted: #65758b;
  --erp-theme-line: #cbdcf0;
  --erp-theme-blue: #0b3f91;
  --erp-theme-blue-dark: #092f6f;
  --erp-theme-accent: #c89222;
  --erp-theme-shadow: 0 18px 45px rgba(15,42,82,.10);
  --lv-brand-active: 0;
  --lv-brand-navy: #07185f;
  --lv-brand-blue: #1e6fd4;
  --lv-brand-violet: #9d6ee1;
  --lv-brand-highlight: #b87bf3;
  --lv-brand-background: #f7f9fc;
  --lv-brand-card-text: #526782;
  --lv-brand-eyebrow-text: #496789;
  --lv-brand-gradient: linear-gradient(135deg,#07185f 0%,#1e6fd4 48%,#9d6ee1 78%,#b87bf3 100%);
}
/* Fondo administrativo compartido: el tema se carga en todas las pantallas ERP. */
@media screen{
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,:has(> main.wide-container)):not(.login-page):not(.lv-office-panel):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page){
  background-color:#edf5fc!important;
  background-image:linear-gradient(rgba(244,249,253,.30),rgba(244,249,253,.30)),url('assets/images/panel-office.png')!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-attachment:fixed!important;
 }
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,:has(> main.wide-container)):not(.login-page):not(.lv-office-panel):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page)>main.wide-container,
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,:has(> main.wide-container)):not(.login-page):not(.lv-office-panel):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page)>main.pc-shell,
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,:has(> main.wide-container)):not(.login-page):not(.lv-office-panel):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page)>main.table-map-shell{background-color:transparent!important;background-image:none!important}
}
@media screen and (max-width:700px){
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,:has(> main.wide-container)):not(.login-page):not(.lv-office-panel):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page){background-attachment:scroll!important;background-position:center top!important}
}

/* Superficies interiores traslúcidas, sin filtros costosos. */
@media screen{
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,:has(> main.wide-container)):not(.login-page):not(.lv-office-panel):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) :is(.module-card-link,.billing-menu-card,.inventory-operation-row,.accounting-menu-card,.reports-shortcuts a,.directory-hub>a){
  background-color:rgba(255,255,255,.42)!important;
  background-image:none!important;
  border-top-color:rgba(255,255,255,.82)!important;
  border-right-color:rgba(255,255,255,.82)!important;
  border-bottom-color:rgba(255,255,255,.82)!important;
  border-radius:14px!important;
  box-shadow:0 2px 7px rgba(27,67,104,.06),inset 0 1px 0 rgba(255,255,255,.55)!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 }
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,:has(> main.wide-container)):not(.login-page):not(.lv-office-panel):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) :is(.module-card-link,.billing-menu-card,.inventory-operation-row,.accounting-menu-card,.reports-shortcuts a,.directory-hub>a):hover{background-color:rgba(255,255,255,.67)!important}
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,:has(> main.wide-container)):not(.login-page):not(.lv-office-panel):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) :is(.topbar,.window-head,.map-overview,.dashboard-header){
  background-color:rgba(255,255,255,.66)!important;
  background-image:none!important;
  box-shadow:0 3px 10px rgba(27,67,104,.07)!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 }
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,:has(> main.wide-container)):not(.login-page):not(.lv-office-panel):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) :is(.card,.admin-window,.panel):has(.inventory-operation-layout,.billing-menu-grid,.directory-hub,.reports-shortcuts){
  background-color:rgba(255,255,255,.20)!important;
  background-image:none!important;
 }
}
@media screen and (prefers-reduced-transparency:reduce){
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,:has(> main.wide-container)):not(.login-page):not(.lv-office-panel):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) :is(.module-card-link,.billing-menu-card,.inventory-operation-row,.accounting-menu-card,.reports-shortcuts a,.directory-hub>a),html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,:has(> main.wide-container)):not(.login-page):not(.lv-office-panel):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) :is(.topbar,.window-head,.map-overview,.dashboard-header){background-color:#f8fbff!important}
}

/* Contenedores interiores: evita blanco opaco detrás de tarjetas transparentes. */
@media screen{
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,:has(> main.wide-container)):not(.login-page):not(.lv-office-panel):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) main :is(.card,.panel,.admin-window,.design-panel,.dashboard-card,.summary-card,.inventory-options-shell,.inventory-dashboard-panel,.cg-group,.cg-preview,.metric,.fund,[class$="-menu-card"],[class*="-menu-card "]){
  background-color:rgba(255,255,255,.42)!important;
  background-image:none!important;
  border-top-color:rgba(255,255,255,.82)!important;
  border-right-color:rgba(255,255,255,.82)!important;
  border-bottom-color:rgba(255,255,255,.82)!important;
  border-radius:14px!important;
  box-shadow:0 2px 7px rgba(27,67,104,.06)!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 }
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,:has(> main.wide-container)):not(.login-page):not(.lv-office-panel):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) main :is(.inventory-options-shell,.card,.panel,.admin-window,.design-panel):has(.inventory-operation-layout,.billing-menu-grid,.directory-hub,.reports-shortcuts,[class$="-menu-grid"]){
  background-color:rgba(255,255,255,.12)!important;
  background-image:none!important;
 }
}
@media screen and (prefers-reduced-transparency:reduce){
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,:has(> main.wide-container)):not(.login-page):not(.lv-office-panel):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) main :is(.card,.panel,.admin-window,.design-panel,.dashboard-card,.summary-card,.inventory-options-shell,.inventory-dashboard-panel,.cg-group,.cg-preview,.metric,.fund,[class$="-menu-card"],[class*="-menu-card "]){background-color:#f8fbff!important}
}

/* Paleta administrativa suave compartida. Solo pantalla, sin filtros ni animaciones. */
@media screen {
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,.lv-office-panel,:has(> main.wide-container)):not(.login-page):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) {
  --erp-accent:#f5e8bd;
  --erp-primary:#294f70;
  --erp-soft:#edf4fa;
  --erp-line:#c7d8e6;
  --erp-theme-accent:#dac58e;
  --erp-theme-blue:#426d94;
  --erp-theme-blue-dark:#294f70;
 }
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,.lv-office-panel,:has(> main.wide-container)):not(.login-page):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) main :is(.bank-filter-panel,.bank-bottom-panel,.bank-linked-panel,.bank-manual-panel,.bank-side-panel,.bank-recon-card,.bank-summary-card,.cxc-action-panel,.cxc-dashboard-panel,.cxc-dash-card,.cxc-detail-card,.cxc-grid-card,.cxp-dashboard-panel,.cxp-dash-card,.cxp-detail-card,.payroll-card,.payroll-overview-card,.inventory-dashboard-panel,.inventory-kpi,.inventory-v2-kpi,.inventory-value-card,.cg-group,.cg-preview) {
  background:rgba(255,255,255,.68)!important;
  border-top-color:#c7d8e6!important;
  border-right-color:#c7d8e6!important;
  border-bottom-color:#c7d8e6!important;
  box-shadow:0 2px 7px rgba(27,67,104,.06)!important;
 }
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,.lv-office-panel,:has(> main.wide-container)):not(.login-page):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) main :is(.module-card-link,.billing-menu-card,.inventory-operation-row,.accounting-menu-card) {
  border-left-color:color-mix(in srgb,var(--module-accent,#7c9bb8) 48%,#dbe6ee)!important;
 }
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,.lv-office-panel,:has(> main.wide-container)):not(.login-page):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) :is(.main-button,button.main-button,.btn-primary,.report-icon-action,.cxc-btn,.cxp-btn,.rva-btn,.bank-primary-button,.btn-save,.cg-search-button,.cg-panel-link,.map-btn.primary):not(.danger):not(.btn-danger):not(.red):not(:disabled) {
  background:#dceaf5!important;
  border-color:#adc7dc!important;
  color:#294f70!important;
  box-shadow:0 1px 3px rgba(27,67,104,.06)!important;
  text-shadow:none!important;
 }
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,.lv-office-panel,:has(> main.wide-container)):not(.login-page):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) :is(.main-button,.btn-primary,.cxc-btn,.cxp-btn,.rva-btn,.bank-primary-button,.btn-save,.cg-search-button,.cg-panel-link,.map-btn.primary):not(.danger):not(.btn-danger):not(.red):hover:not(:disabled) { background:#cbdfee!important; }
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,.lv-office-panel,:has(> main.wide-container)):not(.login-page):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) :is(.main-button,.btn-primary,.btn-save):is(.gold,.warning),
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,.lv-office-panel,:has(> main.wide-container)):not(.login-page):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) .pc-shell .btn:not(.red):not(.green):not(:disabled) {
  background:#f5e8bd!important;border-color:#e0ce98!important;color:#655326!important;
 }
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,.lv-office-panel,:has(> main.wide-container)):not(.login-page):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) :is(.inventory-kpi,.inventory-v2-kpi,.bank-summary-card,.cxc-dash-card,.cxp-dash-card,.payroll-overview-card) :is(h2,h3,strong,b) { text-shadow:none; }
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,.lv-office-panel,:has(> main.wide-container)):not(.login-page):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) .map-top-strip { background:rgba(225,238,247,.78)!important;border-color:#c7d8e6!important;box-shadow:0 2px 7px rgba(27,67,104,.06)!important; }
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,.lv-office-panel,:has(> main.wide-container)):not(.login-page):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) .map-top-strip .map-brandbar { color:#294f70!important; }
}
@media screen and (prefers-reduced-transparency:reduce) {
 html body:is(.erp-screen,.erp-modern-home,.table-map-body,.lv-office-internal,.lv-office-panel,:has(> main.wide-container)):not(.login-page):not(.print-page):not(.print-body):not(.receipt-page):not(.invoice-print):not(.pdf-page) main :is(.bank-filter-panel,.bank-bottom-panel,.bank-linked-panel,.bank-manual-panel,.bank-side-panel,.bank-recon-card,.bank-summary-card,.cxc-action-panel,.cxc-dashboard-panel,.cxc-dash-card,.cxc-detail-card,.cxc-grid-card,.cxp-dashboard-panel,.cxp-dash-card,.cxp-detail-card,.payroll-card,.payroll-overview-card,.inventory-dashboard-panel,.inventory-kpi,.inventory-v2-kpi,.inventory-value-card,.cg-group,.cg-preview) {background:#f8fbff!important;}
}
