@font-face{font-family:Poppins;src:url("Poppins-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:Poppins;src:url("Poppins-Medium.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:Poppins;src:url("Poppins-SemiBold.ttf") format("truetype");font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:Poppins;src:url("Poppins-Bold.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:Poppins;src:url("Poppins-ExtraBold.ttf") format("truetype");font-weight:800;font-style:normal;font-display:swap;}
@font-face{font-family:Poppins;src:url("Poppins-Black.ttf") format("truetype");font-weight:900;font-style:normal;font-display:swap;}
:root{--tx-blue-dark:#052754;--tx-electric:#087aff;--tx-purple:#ff7600;--tx-bg:#f2f5fa;--tx-black:#061d50;--tx-white:#fff;--tx-muted:#6b7e9f;--bs-primary:#087aff;--bs-primary-rgb:8,122,255;--bs-link-color:#006eff;--bs-body-color:#061d50;--bs-body-bg:#f2f5fa}
body{background:#f2f5fa;color:#061d50}
.admin-sidebar{background:#052754!important;color:white!important;border-right:0!important}.admin-sidebar nav button{border-radius:9px!important;color:white!important}.admin-sidebar nav button.active{background:#087aff!important;box-shadow:inset 3px 0 #ff7600!important}.admin-sidebar nav button:hover{background:#123f77!important}.sidebar-profile{background:#052754!important;border-bottom:2px solid #ff7600!important}.admin-top{background:linear-gradient(115deg,#072f66,#032352 66%,#052b60)!important;color:white!important;border:0!important;box-shadow:none!important}.admin-top h1,.admin-top button,.admin-top .admin-user{color:white!important}.admin-content{background:#f2f5fa!important}.admin-content>.module-heading,.admin-content>.page-title{color:#006eff;border-bottom:2px solid #ff7600}.admin-content .card,.admin-content .panel{border-radius:14px;border-color:#e3ecf8;background:#fff}.tx-primary,.driver-primary{background:#087aff!important;color:#fff!important;border-color:#087aff!important;border-radius:10px!important}.tx-secondary{background:#eef5ff;color:#006eff;border-color:#d9e8ff}.modal-content,.tx-modal{border-radius:16px!important;background:white;color:#061d50}.modal-header{background:#052754!important;color:white!important;border-bottom:2px solid #ff7600!important}.modal-header .modal-title{color:white!important}.modal-header .btn-close{filter:invert(1)}.modal-body{background:white;color:#061d50}.form-control,.form-select{background:white;color:#061d50;border-color:#d9e5f5;border-radius:9px}.form-control:focus,.form-select:focus{border-color:#087aff;box-shadow:0 0 0 .2rem #087aff22}.login-shell{background:linear-gradient(125deg,#052754,#084c98)!important}.login-card{background:#fff!important;border-radius:18px!important;border-bottom:3px solid #ff7600!important}.login-logo{max-width:230px!important;height:auto!important;max-height:85px!important;object-fit:contain}.login-card h1{color:#006eff!important}.driver-header,.driver-top{background:linear-gradient(115deg,#072f66,#032352)!important;color:white!important}.driver-footer{background:#fff!important;color:#006eff!important;border-top:2px solid #ff7600!important}.driver-header-brand img{width:auto;max-width:180px;object-fit:contain}.tx-chat-page-head,.commerce-chat-head,.master-chat-head{background:#052754!important;color:white!important}.tx-message-form-page{border-top-color:#e3ecf8;background:#f4f8ff}.tx-bubble.outgoing,.tx-bubble.mine{background:#eaf3ff;color:#061d50}.tx-chat-messages{background-color:#f4f8ff}.tx-send-button{background:#087aff!important;color:#fff}.tx-menu-dot,.tx-unread-badge{background:#ff7600!important}.tx-product-modal-badges{color:#052754}.identity-login-logo{display:block;position:absolute;top:7vh;left:50%;transform:translateX(-50%);width:210px;height:auto}.login{position:relative;background:linear-gradient(125deg,#052754,#084c98)}.login>form{background:#fff;border-bottom:3px solid #ff7600;border-radius:18px;color:#061d50}.login>form h1{color:#006eff}.login>form button.primary{background:#087aff;color:white}
/* POS uses its existing per-commerce custom properties; only defaults adopt V7. */
body:not([data-sales-screen])>.commerce-brand{background:#052754}

/* V7 form and dialog components. */
.modal-content,.tx-modal{border:1px solid #dce6f3!important;border-radius:20px!important;box-shadow:0 22px 80px #00285833}.modal-header{background:#fff!important;color:#006eff!important;border-bottom:2px solid #ff7600!important}.modal-header .modal-title{color:#006eff!important;font-family:Poppins,Arial,sans-serif}.modal-header .btn-close{filter:none}.modal-body{background:#fff}.form-control,.form-select{min-height:42px;border:1px solid #d7e4f3;border-radius:10px;font-family:Poppins,Arial,sans-serif}

/* Cabecera azul, texto blanco, separador naranja y cuerpo blanco en todos los modales. */
html body .modal .modal-content,html body .modal .modal-body,html body .modal .modal-footer,html body .tx-system-modal-card,html body .tx-system-modal-body,html body dialog{background:#fff!important;color:#052754!important}
html body .modal .modal-header,html body .modal .tx-modal-header,html body .tx-system-modal-header,html body dialog .tx-dialog-header{background:#052754!important;color:#fff!important;border-bottom:3px solid #ff7600!important}
html body .modal .modal-header *,html body .modal .tx-modal-header *,html body .tx-system-modal-header *,html body dialog .tx-dialog-header *{color:#fff!important}
html body .modal .modal-header .btn-close{filter:invert(1) grayscale(1) brightness(2)!important;opacity:1!important}
html body .tx-system-modal-header{padding:18px 22px!important;text-align:left!important}
html body .tx-system-modal-header .tx-system-modal-title{margin:0!important;color:#fff!important;font-size:20px!important}
html body .tx-system-modal-card{overflow:hidden!important;padding:0!important}
html body dialog .tx-dialog-header{padding:18px 24px!important;margin:-24px -24px 20px!important}
html body dialog .tx-dialog-header :is(h1,h2,h3){margin:0!important}
@media(max-width:1100px){html body footer.v7-portal-shell{display:none!important}}

/* Unified V7 modal palette. */
body .modal .modal-content{border:0!important;background:#fff!important}
body .modal .modal-header,body .tx-system-modal-header,body .tx-bio-header,body dialog .tx-dialog-header{background:#087aff!important;color:#fff!important;border-bottom:3px solid #ff7600!important}
