:root{
  --ml-ink:#07090b;--ml-ink-2:#0d1114;--ml-paper:#f4f2ed;--ml-surface:#fff;
  --ml-text:#121416;--ml-muted:#697078;--ml-line:#dcdeda;
  --ml-pink:#ec168c;--ml-cyan:#13c0eb;--ml-lime:#a8db32;--ml-amber:#ffab22;--ml-purple:#9d44ef;
  --ml-shadow:0 18px 55px rgba(7,9,11,.09);--ml-radius:16px;--ml-radius-sm:10px;
}

/* Release 111: continuidad oscura completa en operación, compras, acceso y asistencia */
.cash-user-audit .erp-table-wrap td:last-child,
.cash-user-audit .erp-table-wrap th:last-child,
#cashV2Workspace .erp-table-wrap td:last-child,
#cashV2Workspace .erp-table-wrap th:last-child{display:table-cell!important;align-items:initial!important;justify-content:initial!important;vertical-align:middle!important}

.auth-shell{background:#111416!important;color:#f7f8f8!important;border-color:#333a40!important}
.auth-card{background:#202428!important;color:#f7f8f8!important;border:1px solid #3b4248!important;box-shadow:0 24px 70px #0009!important}
.auth-card h1,.auth-card h2,.auth-card strong,.auth-card label{color:#f7f8f8!important}
.auth-card p,.auth-card small,.secure-note{color:#aab4ba!important}
.auth-card input,.auth-card select{background:#15191c!important;color:#fff!important;border-color:#465058!important}
.auth-card input::placeholder{color:#7e8991!important}

.purchase-alert-panel,.purchase-batch,.material-consolidated,.apparel-consolidated,
.material-provider,.material-row,.purchase-list>article,.purchase-summary article,
.purchase-accumulate,.purchase-accumulate.recommended,.material-supply-summary,
.apparel-fields,.catalog-model-list span,.apparel-requests-dialog article,
.purchase-order-dialog form,.material-supply-dialog form,.apparel-supply-dialog form{
  background:#202428!important;color:#f5f7f8!important;border-color:#3c444a!important
}
.purchase-alert-panel>header,.purchase-batch>header,.material-consolidated>header,.apparel-consolidated>header,
.material-provider-heading,.material-list-head,.provider-divider td,.provider-size-header th,
.apparel-table-wrap th,.supply-head,.apparel-supply-dialog .dialog-actions{
  background:#171b1e!important;color:#edf2f4!important;border-color:#3b444a!important
}
.purchase-alert-panel h3,.purchase-batch h3,.material-consolidated h3,.apparel-consolidated h3,
.material-row b,.apparel-table-wrap b,.purchase-list b,.purchase-summary strong{color:#fff!important}
.purchase-alert-panel p,.purchase-alert-panel small,.purchase-batch small,.material-consolidated small,
.apparel-consolidated small,.material-row span,.material-row small,.purchase-expense-note{color:#9eabb2!important}
.apparel-table-wrap td,.material-row,.apparel-requests-dialog article{border-color:#3b444a!important}
.apparel-table-wrap .size-column,.apparel-table-wrap .size-column-alt,
.apparel-table-wrap td:nth-child(even){background:#24292d!important}
.apparel-table-wrap td:nth-child(odd){background:#202428!important}
.purchase-receipt-fields input,.purchase-receipt-fields select,.material-supply-summary input,
.apparel-supply-sizes input,.catalog-editor input,.purchase-toolbar input,.purchase-toolbar select{
  background:#15191c!important;color:#fff!important;border-color:#465058!important
}
.apparel-row-actions .secondary,.purchase-actions .secondary{background:#30373c!important;color:#fff!important}

#attendance-mobile,.attendance-mobile,.attendance-view{background:#15191c!important;color:#f6f8f9!important}
.attendance-heading,.attendance-grid,.attendance-action-card,.attendance-history,.attendance-today,
.attendance-admin,.attendance-list article,.attendance-review-list article,.attendance-dialog form,
.attendance-location,.attendance-status{background:#202428!important;color:#f6f8f9!important;border-color:#3c444a!important}
.attendance-heading h2,.attendance-action-card h3,.attendance-history h3,.attendance-today h3,
.attendance-admin h3,.attendance-list strong,.attendance-review-list strong,.attendance-clock{color:#fff!important}
.attendance-heading p,.attendance-action-card p,.attendance-history p,.attendance-today p,
.attendance-list small,.attendance-review-list small,.attendance-clock-label,.attendance-gps-state{color:#9eabb2!important}
.attendance-dialog input,.attendance-dialog select,.attendance-dialog textarea,
.attendance-refresh,.attendance-type{background:#15191c!important;color:#fff!important;border-color:#465058!important}
.attendance-dialog footer{background:#202428!important;border-color:#3c444a!important}
@media(max-width:760px){
  #attendance-mobile,.attendance-mobile,.attendance-view{background:#15191c!important;background-image:none!important}
  .attendance-heading,.attendance-action-card,.attendance-history,.attendance-today,.attendance-admin{border-radius:16px!important;box-shadow:none!important}
}
/* Jerarquía ligera y uniforme en la navegación de escritorio y móvil. */
body #app.shell>aside nav button,
body #app.shell>aside nav .ml-nav-group-toggle,
body #app.shell>aside nav .ml-nav-group-items>button{font-weight:400!important;letter-spacing:0!important;text-shadow:none!important}
body #app.shell>aside nav .ml-nav-group-toggle{font-weight:400!important;letter-spacing:.045em!important}
body #app.shell>aside nav button b:not(.purchase-nav-badge):not(.critical-alert-badge){font-weight:400!important}
body #app.shell>aside nav>button,
body #app.shell>aside nav .ml-nav-group-items>button{min-height:38px!important;font-size:11px!important;line-height:1.25!important;font-weight:400!important}
body #app.shell>aside nav .ml-nav-group-toggle{min-height:35px!important;font-size:11px!important;line-height:1.2!important;font-weight:520!important;text-transform:none!important;letter-spacing:.015em!important}
body #app.shell>aside nav .ml-nav-group-toggle>span>i{position:static!important;width:17px!important;min-width:17px!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#8adcf4!important;font-size:14px!important;line-height:1!important;text-align:center!important;transform:none!important}
.order-file-route{flex:1 1 100%!important;display:grid!important;grid-template-columns:minmax(180px,260px) minmax(220px,1fr)!important;align-items:center!important;gap:5px 12px!important;padding:13px!important;border:1px solid #424a50!important;border-radius:11px!important;background:#1b2024!important;color:#eef2f3!important}
.order-file-route>span{font-size:10px!important;font-weight:520!important;letter-spacing:.035em!important;text-transform:uppercase!important}
.order-file-route select{min-width:0!important;padding:10px 12px!important;border:1px solid #4b555c!important;border-radius:8px!important;background:#171b1e!important;color:#fff!important}
.order-file-route small{grid-column:1/-1!important;color:#9ca7ad!important;font-size:10px!important;font-weight:400!important}
@media(max-width:650px){.order-file-route{grid-template-columns:1fr!important}.order-file-route small{grid-column:auto!important}}
/* Dashboard respirable cuando el área útil se reduce por la barra lateral. */
@media(max-width:1460px){
  body .workspace .dashboard-command{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:stretch!important;gap:14px!important;padding:19px 21px!important}
  body .workspace .dashboard-command>div:first-child{max-width:620px!important}
  body .workspace .dashboard-filters{display:grid!important;grid-template-columns:minmax(120px,1fr) minmax(120px,1fr) auto auto!important;align-items:end!important;width:100%!important;gap:9px!important}
  body .workspace .dashboard-filters button{grid-column:auto!important;white-space:nowrap!important}
}
@media(max-width:650px){
  body .workspace .dashboard-command{gap:12px!important;padding:15px 13px!important}
  body .workspace .dashboard-command h2{font-size:21px!important;line-height:1.12!important}
  body .workspace .dashboard-command p:last-child{max-width:34ch!important;line-height:1.45!important}
  body .workspace .dashboard-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:7px!important}
  body .workspace .dashboard-filters button{grid-column:auto!important;min-height:36px!important;padding:0 8px!important;font-size:10px!important}
  body .workspace .dashboard-history-strip{padding:10px 12px!important}
}

/* Cierre definitivo del sistema de acciones: prevalece sobre estilos heredados. */
body #app .content button.ml-btn-primary,
body #app .workspace button.ml-btn-primary,
body dialog button.ml-btn-primary{
  min-height:38px!important;
  border:1px solid #ed168c!important;
  border-radius:9px!important;
  background:#d51778!important;
  background-image:none!important;
  color:#fff!important;
  box-shadow:0 6px 16px rgba(213,23,120,.22)!important;
  font-weight:520!important;
}
body #app .content button.ml-btn-primary:hover,
body #app .content button.ml-btn-primary:focus-visible,
body #app .workspace button.ml-btn-primary:hover,
body #app .workspace button.ml-btn-primary:focus-visible,
body dialog button.ml-btn-primary:hover,
body dialog button.ml-btn-primary:focus-visible{
  border-color:#ff58b3!important;background:#ed168c!important;color:#fff!important;
  box-shadow:0 8px 21px rgba(237,22,140,.3)!important;outline:none!important
}
body #app .content button.ml-btn-secondary,
body #app .workspace button.ml-btn-secondary,
body dialog button.ml-btn-secondary{
  min-height:38px!important;
  border:1px solid #56616a!important;
  border-radius:9px!important;
  background:#282f34!important;
  background-image:none!important;
  color:#edf1f3!important;
  box-shadow:0 3px 10px rgba(0,0,0,.2)!important;
  font-weight:460!important;
}
body #app .content button.ml-btn-secondary:hover,
body #app .content button.ml-btn-secondary:focus-visible,
body #app .workspace button.ml-btn-secondary:hover,
body #app .workspace button.ml-btn-secondary:focus-visible,
body dialog button.ml-btn-secondary:hover,
body dialog button.ml-btn-secondary:focus-visible{
  border-color:#737f88!important;background:#343c42!important;color:#fff!important;
  box-shadow:inset 3px 0 0 #ed168c,0 4px 12px rgba(0,0,0,.24)!important;outline:none!important
}
body #app .content button.ml-btn-danger,
body #app .workspace button.ml-btn-danger,
body dialog button.ml-btn-danger{
  min-height:38px!important;border:1px solid #e0686e!important;border-radius:9px!important;
  background:#913238!important;background-image:none!important;color:#fff!important;
  box-shadow:0 5px 14px rgba(120,30,36,.25)!important;font-weight:520!important
}
/* Navegación y filtros: grises delineados; sólo la selección usa magenta. */
body #app :is(.commercial-tabs,.commercial-process-flow,.erp-tabs,.erp-module-list,.hr-tabs,.hr-loan-tabs,.fiscal-tabs,.access-tabs,.approval-toolbar,.order-workspace-switch,.department-stage-tabs,.transfer-department-tabs,.production-filters,.preview-workspace-filters,.dashboard-filters,.dashboard-series) button{
  border:1px solid #4d5860!important;background:#20262b!important;color:#dce2e5!important;
  box-shadow:0 2px 7px rgba(0,0,0,.2)!important;font-weight:450!important
}
body #app :is(.commercial-tabs,.commercial-process-flow,.erp-tabs,.erp-module-list,.hr-tabs,.hr-loan-tabs,.fiscal-tabs,.access-tabs,.approval-toolbar,.order-workspace-switch,.department-stage-tabs,.transfer-department-tabs,.production-filters,.preview-workspace-filters,.dashboard-filters,.dashboard-series) button:hover{
  border-color:#737f88!important;background:#30383e!important;box-shadow:inset 2px 0 0 rgba(237,22,140,.78)!important
}
body #app :is(.commercial-tabs,.commercial-process-flow,.erp-tabs,.erp-module-list,.hr-tabs,.hr-loan-tabs,.fiscal-tabs,.access-tabs,.approval-toolbar,.order-workspace-switch,.department-stage-tabs,.transfer-department-tabs,.production-filters,.preview-workspace-filters,.dashboard-filters,.dashboard-series) button.active,
body #app :is(.commercial-tabs,.commercial-process-flow,.erp-tabs,.erp-module-list,.hr-tabs,.hr-loan-tabs,.fiscal-tabs,.access-tabs,.approval-toolbar,.order-workspace-switch,.department-stage-tabs,.transfer-department-tabs,.production-filters,.preview-workspace-filters,.dashboard-filters,.dashboard-series) button[aria-selected=true]{
  border-color:#ed168c!important;background:#2a1624!important;color:#fff!important;
  box-shadow:inset 3px 0 0 #ed168c,0 4px 12px rgba(237,22,140,.14)!important
}
/* Jerarquías particulares de los flujos mostrados en la auditoría. */
body #app #attendanceCheckinButton,
body #app .attendance-main-button,
body #app .sale-pay,
body #app .heading button[onclick*="openOrder"],
body #app .cash-actions button:last-child{border-color:#ed168c!important;background:#d51778!important;color:#fff!important}
body #app .sale-quote{border-color:#56616a!important;background:#282f34!important;color:#edf1f3!important}
@media(max-width:650px){
  body #app .content button.ml-btn-primary,body #app .content button.ml-btn-secondary,body #app .content button.ml-btn-danger,
  body #app .workspace button.ml-btn-primary,body #app .workspace button.ml-btn-secondary,body #app .workspace button.ml-btn-danger{
    min-height:36px!important;padding:8px 12px!important;font-size:11px!important
  }
}
.sales-search-tools{display:grid;gap:10px;margin:0 0 12px;padding:10px;border:1px solid #3b454c;border-radius:11px;background:#1c2125}
.sales-search-main{display:flex;align-items:center;gap:10px}.sales-search-tools input{flex:1;margin:0!important;background:#171c20!important;color:#f3f5f6!important}.sales-search-tools span{min-width:110px;color:#9eaaaf;font-size:11px;text-align:right}
.sales-row-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:330px}.sales-row-actions button{margin:0!important;white-space:nowrap}.sale-invoice-button{border-color:#dc0a7a!important;background:#dc0a7a!important;color:#fff!important}.sale-delete-button{font-size:11px!important}
.sale-invoice-dialog{width:min(940px,calc(100vw - 28px));max-height:92vh}.sale-invoice-dialog form{display:grid;gap:14px}.sale-invoice-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #3b464d;border-radius:12px;background:#171c20}.sale-invoice-summary div{display:grid;gap:4px}.sale-invoice-summary span{color:#9facb2;font-size:10px;text-transform:uppercase}.sale-invoice-summary b{font-weight:550}.sale-invoice-steps{display:grid;gap:12px}.sale-invoice-steps>section{padding:14px;border:1px solid #3b464d;border-radius:13px;background:#1c2226}.sale-invoice-steps header{display:flex;align-items:center;gap:10px;margin-bottom:12px}.sale-invoice-steps header>span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#08a9cf;color:#071014;font-weight:700}.sale-invoice-steps header div{display:grid;gap:2px}.sale-invoice-steps header small{color:#a8b2b7}.sale-invoice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.sale-invoice-steps label{display:grid;gap:6px;color:#c5cdd1;font-size:11px}.sale-invoice-steps input,.sale-invoice-steps select{width:100%;min-width:0}.sale-invoice-items{display:grid;gap:5px}.sale-invoice-items div{display:flex;justify-content:space-between;gap:20px;padding:7px 9px;border-bottom:1px solid #343d42}.sale-invoice-items b{font-weight:550}.sale-invoice-warning{margin-top:10px;padding:9px 11px;border-radius:9px;background:#173329;color:#9ce0c2;font-size:11px}.sale-invoice-warning.attention{background:#3b2c16;color:#ffd38a}
.sales-filter-row{display:grid;grid-template-columns:minmax(145px,.75fr) minmax(220px,1.35fr) minmax(190px,1fr) minmax(180px,.9fr) auto;gap:9px;align-items:end}.sales-filter-row label{display:grid;gap:5px;color:#aeb8bd;font-size:9px;font-weight:500;text-transform:uppercase}.sales-filter-row select{box-sizing:border-box;width:100%;height:38px;border:1px solid #465159;border-radius:8px;background:#171c20;color:#eef2f4;padding:0 10px;font:inherit;text-transform:none}.sales-filter-row button{height:38px;border:1px solid #59656d!important;border-radius:8px!important;background:#272e33!important;color:#eef2f4!important;font-weight:500!important}
.clone-sale-button{margin-left:6px!important;border:1px solid #4b575f!important;background:#252c31!important;color:#e9edef!important;font-weight:500!important}
.sale-pending-choice{width:100%!important;border:1px solid #59656d!important;background:#272e33!important;color:#fff!important;font-weight:500!important}
#customerCommercialName{margin-top:8px!important}
@media(max-width:900px){.sales-filter-row{grid-template-columns:1fr 1fr}.sales-filter-row button{grid-column:1/-1}.sales-search-main{align-items:stretch;flex-direction:column}.sales-search-tools span{text-align:left}.sale-invoice-grid{grid-template-columns:1fr 1fr}.sale-invoice-summary{grid-template-columns:1fr 1fr}}@media(max-width:560px){.sales-filter-row{grid-template-columns:1fr}.sales-filter-row button{grid-column:auto}.commercial-table td b,.commercial-table td strong{font-weight:500!important}.sale-invoice-grid,.sale-invoice-summary{grid-template-columns:1fr}.sale-invoice-dialog{width:100vw;max-height:100vh}.sales-row-actions{min-width:260px}}

.commission-rules,.commission-rate-list label,.commission-run-list article,.commission-new-run,
.commission-payroll-head,.my-commission-summary,.my-commission-list article,.my-commission-card{
  background:#202428!important;color:#f6f8f9!important;border-color:#3c444a!important
}
.commission-rules h3,.commission-run-list strong,.my-commission-list strong,.my-commission-card strong{color:#fff!important}
.commission-rules p,.commission-run-list small,.my-commission-list small,.my-commission-card small{color:#9eabb2!important}
html,body{background:var(--ml-paper)!important;color:var(--ml-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;-webkit-font-smoothing:antialiased}
body:before{content:"";position:fixed;z-index:-1;inset:0;background:radial-gradient(circle at 84% 0,#13c0eb0d,transparent 24%),radial-gradient(circle at 28% 100%,#ec168c0b,transparent 25%)}
button,input,select,textarea{font:inherit}button{letter-spacing:0!important}.hidden{display:none!important}

/* Estructura principal */
.shell{background:var(--ml-paper)!important}.shell>aside{position:relative!important;width:246px!important;padding:22px 14px 16px!important;background:radial-gradient(circle at 0 0,#3c0b312e,transparent 35%),radial-gradient(circle at 100% 100%,#06374652,transparent 38%),var(--ml-ink)!important;border-right:1px solid #ffffff12!important;color:#fff!important;box-shadow:18px 0 55px #07090b18!important}
.shell>aside:before{content:"";position:absolute;left:14px;right:14px;top:84px;height:2px;background:linear-gradient(90deg,var(--ml-cyan),var(--ml-purple),var(--ml-pink),var(--ml-amber),var(--ml-lime));border-radius:99px;box-shadow:0 0 16px #ec168c55}
.shell>aside .brand{height:48px!important;margin:0 5px 28px!important;padding:0!important;background:none!important;border:0!important}.shell>aside .brand img{width:125px!important;height:45px!important;max-width:none!important;object-fit:contain!important;object-position:left center}.shell>aside .brand span{display:none!important}
.shell>aside nav{display:flex!important;flex-direction:column!important;gap:3px!important;overflow-y:auto!important;padding:2px 0!important;scrollbar-width:thin;scrollbar-color:#ffffff24 transparent}
.shell>aside nav>button,.ml-nav-group-toggle{min-height:38px!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;margin:0!important;padding:9px 11px!important;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:#aeb5b8!important;font-size:12px!important;font-weight:560!important;text-align:left!important;box-shadow:none!important;transform:none!important}
.shell>aside nav>button:hover,.ml-nav-group-toggle:hover{background:#ffffff0b!important;color:#fff!important;border-color:#ffffff0d!important}.shell>aside nav>button.active,.ml-nav-group-toggle.active{background:#ffffff12!important;color:#fff!important;border-color:#ffffff16!important;box-shadow:inset 3px 0 0 var(--ml-cyan)!important}
.shell>aside nav>button:nth-child(5n+2).active{box-shadow:inset 3px 0 0 var(--ml-pink)!important}.shell>aside nav>button:nth-child(5n+3).active{box-shadow:inset 3px 0 0 var(--ml-amber)!important}.shell>aside nav>button:nth-child(5n+4).active{box-shadow:inset 3px 0 0 var(--ml-lime)!important}.shell>aside nav>button:nth-child(5n+5).active{box-shadow:inset 3px 0 0 var(--ml-purple)!important}
.shell>aside nav i,.purchase-nav-badge,.critical-alert-badge{margin-left:auto!important;min-width:20px!important;height:18px!important;padding:2px 6px!important;border:0!important;border-radius:999px!important;background:var(--ml-pink)!important;color:#fff!important;font-size:9px!important;font-style:normal!important;text-align:center!important}
.control-version{margin:13px 4px 7px!important;padding:10px 11px!important;border:1px solid #ffffff13!important;border-radius:10px!important;background:#ffffff08!important;color:#929a9e!important}.control-version b{color:#fff!important}.connection{margin:0 5px!important;color:#858d91!important;font-size:10px!important}.connection span{background:var(--ml-lime)!important;box-shadow:0 0 12px #a8db3299!important}
.workspace{min-width:0!important;background:transparent!important}.workspace>header{min-height:78px!important;padding:14px 30px!important;background:rgba(244,242,237,.88)!important;border-bottom:1px solid #d8dbd7!important;backdrop-filter:blur(18px)!important}.workspace>header h1{margin:2px 0 0!important;color:var(--ml-ink)!important;font-size:21px!important;letter-spacing:-.035em!important}.workspace>header .eyebrow{color:#777e82!important}.content{padding:25px 30px 45px!important;background:transparent!important}

/* Tipografía, encabezados y superficies */
.eyebrow{color:var(--ml-cyan)!important;font-size:9px!important;font-weight:800!important;letter-spacing:.18em!important}.eyebrow.green{color:#6b951c!important}
h1,h2,h3,h4{letter-spacing:-.035em!important}.heading,.erp-top,.fiscal-hero,.attendance-heading,.hr-section-heading,.department-heading,.trainer-heading{position:relative!important;margin-bottom:18px!important;padding:21px 23px!important;border:1px solid #1a1e2114!important;border-radius:var(--ml-radius)!important;background:radial-gradient(circle at 0 0,#3c0b3138,transparent 34%),radial-gradient(circle at 100% 100%,#0637465c,transparent 38%),var(--ml-ink)!important;color:#fff!important;box-shadow:var(--ml-shadow)!important;overflow:hidden!important}
.heading:after,.erp-top:after,.fiscal-hero:after,.attendance-heading:after,.hr-section-heading:after{content:"";position:absolute;left:23px;bottom:0;width:170px;height:3px;background:linear-gradient(90deg,var(--ml-cyan),var(--ml-purple),var(--ml-pink),var(--ml-amber));border-radius:99px}
.heading h2,.erp-top h2,.fiscal-hero h2,.attendance-heading h2,.hr-section-heading h2,.department-heading h2{margin:3px 0!important;color:#fff!important;font-size:25px!important}.heading p:not(.eyebrow),.erp-top p:not(.eyebrow),.fiscal-hero p:not(.eyebrow){color:#aeb5b8!important}.panel{background:transparent!important;border:0!important;box-shadow:none!important}
article,.card,.admin-section,.erp-settings-section,.dashboard-chart-card,.dashboard-source-card,.fiscal-settings-grid>article,.attendance-action-card,.hr-sheet,.commission-policy,.commission-new-run,.commission-preview,.purchase-batch{border-color:var(--ml-line)!important;border-radius:var(--ml-radius)!important;background:rgba(255,255,255,.94)!important;box-shadow:0 8px 30px rgba(7,9,11,.045)!important}

/* Botones */
button:not(.chat-contact):not(.chat-bubble):not(.order-light),input[type=submit]{border-radius:9px!important;font-weight:650!important;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease!important}
.heading button,.erp-top button,.fiscal-hero button,.sale-add,.sale-pay,.fiscal-actions button:not(.secondary),.dialog-actions button:last-child,.employee-actions button:last-child,.admin-shortcuts button,.attendance-main-button{border:1px solid #ffffff22!important;background:#fff!important;color:var(--ml-ink)!important;box-shadow:0 7px 22px #0003!important}
.dialog-actions button:last-child,.employee-actions button:last-child{background:var(--ml-ink)!important;color:#fff!important;border-color:var(--ml-ink)!important;box-shadow:0 7px 18px #07090b22!important}
button:hover:not(:disabled){transform:translateY(-1px)}button:active:not(:disabled){transform:translateY(0)}button:disabled{opacity:.45!important;cursor:not-allowed!important}
button.outline,button.secondary,.sale-soft,.sale-quote,.attendance-refresh{background:#fff!important;color:#26312d!important;border:1px solid #d7dfdb!important;box-shadow:none!important}.danger,.danger-outline,.quote-delete{border-color:#ec168c55!important;background:#fff0f7!important;color:#b10d68!important}.danger:hover,.danger-outline:hover{background:#ffe1f1!important}
.profile,.icon{border:1px solid #d7deda!important;background:#fff!important;color:var(--ml-ink)!important;box-shadow:0 7px 20px #07090b0b!important}.profile{background:var(--ml-ink)!important;color:#fff!important}

/* Formularios */
label{color:#4f5955!important;font-size:11px!important;font-weight:650!important}input,select,textarea{min-height:40px!important;border:1px solid #d6deda!important;border-radius:9px!important;background:#fff!important;color:var(--ml-text)!important;box-shadow:0 1px 0 #fff inset!important;outline:none!important}textarea{padding-top:10px!important}input:focus,select:focus,textarea:focus{border-color:var(--ml-cyan)!important;box-shadow:0 0 0 3px #13c0eb1c!important}input[type=checkbox],input[type=radio]{min-height:auto!important;accent-color:var(--ml-pink)!important}.form-section,.product-form-section-grid>section{border:1px solid var(--ml-line)!important;border-radius:13px!important;background:#fbfcfb!important}.form-section h3,.product-form-section-grid h3{color:var(--ml-ink)!important}

/* Pestañas y submenús */
.commercial-tabs,.erp-tabs,.fiscal-tabs,.hr-tabs,.access-tabs,.department-stage-tabs,.hr-loan-tabs,.order-workspace-switch,.dashboard-series,.approval-toolbar{gap:4px!important;padding:5px!important;border:1px solid #d9dfdc!important;border-radius:12px!important;background:#e9ece9!important;box-shadow:none!important;overflow:auto!important}
.commercial-tabs button,.erp-tabs button,.fiscal-tabs button,.hr-tabs button,.access-tabs button,.department-stage-tabs button,.hr-loan-tabs button,.order-workspace-switch button,.dashboard-series button,.approval-toolbar button{min-height:34px!important;padding:8px 13px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#69726f!important;font-size:11px!important;white-space:nowrap!important;box-shadow:none!important}.commercial-tabs button.active,.erp-tabs button.active,.fiscal-tabs button.active,.hr-tabs button.active,.access-tabs button.active,.department-stage-tabs button.active,.hr-loan-tabs button.active,.order-workspace-switch button.active,.dashboard-series button.active,.approval-toolbar button.active{background:var(--ml-ink)!important;color:#fff!important;box-shadow:0 5px 16px #07090b22!important}
.erp-shell>aside,.admin-module-list,.erp-module-list{padding:8px!important;border:1px solid var(--ml-line)!important;border-radius:13px!important;background:#fff!important}.erp-module-list button{border-radius:9px!important;color:#59635f!important}.erp-module-list button.active{background:var(--ml-ink)!important;color:#fff!important}

/* Tablas y listas */
table{border-collapse:separate!important;border-spacing:0!important;width:100%!important}thead th{padding:10px 11px!important;background:var(--ml-ink)!important;color:#e9edeb!important;border:0!important;font-size:9px!important;font-weight:750!important;letter-spacing:.06em!important;text-transform:uppercase!important}thead th:first-child{border-radius:9px 0 0 0!important}thead th:last-child{border-radius:0 9px 0 0!important}tbody td{padding:10px 11px!important;border-color:#e3e7e4!important;background:#fff!important;font-size:11px!important}tbody tr:hover td{background:#fafbf9!important}.commercial-table,.erp-table-wrap,.order-table-wrap,.bulk-price-table-wrap,.apparel-table-wrap,.hr-attendance-table,.hr-payroll-table,.hr-loan-table{border:1px solid var(--ml-line)!important;border-radius:12px!important;background:#fff!important;box-shadow:0 8px 25px #07090b08!important;overflow:auto!important}
.commercial-status,.erp-status,.purchase-status,.incident-status,.production-status,.fiscal-status,.commission-run-status,.attendance-status,.pill{padding:5px 8px!important;border-radius:999px!important;font-size:9px!important;font-weight:750!important;letter-spacing:.04em!important}.pending,.draft,.review{background:#fff1d8!important;color:#8e5b00!important}.validated,.approved,.complete,.paid,.ready{background:#eaf7ca!important;color:#426c08!important}.cancelled,.rejected,.critical{background:#ffe2f1!important;color:#a70c61!important}

/* Ventas y documentos */
.commercial-process-flow{padding:10px 16px!important;border:1px solid #daddd9!important;border-radius:13px!important;background:#fff!important;box-shadow:0 8px 25px #07090b07!important}.sale-workspace{color:var(--ml-text)!important}.sale-titlebar{border-radius:16px!important;background:radial-gradient(circle at 0 0,#3c0b3142,transparent 34%),radial-gradient(circle at 100% 100%,#06374668,transparent 40%),var(--ml-ink)!important;color:#fff!important;box-shadow:var(--ml-shadow)!important}.sale-titlebar h2,.sale-titlebar p{color:#fff!important}.sale-titlebar p:last-child{color:#abb3b6!important}.sale-capture-card,.sale-products-card,.sale-profit,.sale-totals{border-color:var(--ml-line)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 10px 32px #07090b0a!important}.sale-capture-card>header>span,.sale-products-card>header>span,.sale-profit>header>span{background:var(--ml-ink)!important;color:#fff!important}.sale-products-card>header>span{background:var(--ml-pink)!important}.sale-profit>header>span{background:var(--ml-cyan)!important;color:#071014!important}.sale-grand-total{border-color:#cdd9d3!important}.sale-grand-total strong{color:var(--ml-pink)!important}.sale-pay{background:linear-gradient(100deg,#fff,#e9fbff)!important}.quote-document{font-family:Inter,ui-sans-serif,system-ui,sans-serif!important}.quote-brand{border-color:var(--ml-ink)!important}.quote-lines th{background:var(--ml-ink)!important}.quote-total strong{color:var(--ml-pink)!important}

/* Chats, producción, compras y RH */
.chat-workspace{border:1px solid var(--ml-line)!important;border-radius:16px!important;background:#fff!important;box-shadow:var(--ml-shadow)!important;overflow:hidden!important}.chat-list{background:#f7f6f2!important;border-color:#e0e3df!important}.chat-thread>header,.chat-details{background:#fff!important;border-color:#e0e3df!important}.chat-contact{border-radius:9px!important}.chat-contact.active{background:var(--ml-ink)!important;color:#fff!important}.chat-contact.active small,.chat-contact.active time{color:#aeb5b8!important}.chat-bubble.human{background:var(--ml-ink)!important;color:#fff!important}.chat-bubble.ai{background:#eefaff!important;border:1px solid #cceff7!important}.chat-composer{background:#f7f6f2!important}
.production-job,.design-job,.department-job,.order-card,.purchase-batch,.material-row,.apparel-row{border-left:3px solid var(--ml-cyan)!important}.design-job{border-left-color:var(--ml-purple)!important}.purchase-batch,.material-row,.apparel-row{border-left-color:var(--ml-amber)!important}.production-job.blocked,.design-job.blocked,.order-card.late{border-left-color:var(--ml-pink)!important}.department-thumb{border-radius:10px!important}.finish-chips span,.provider-pill{border-radius:999px!important}
.hr-avatar{background:linear-gradient(145deg,var(--ml-cyan),var(--ml-purple))!important;color:#fff!important}.hr-summary article:nth-child(4n+1),.dashboard-kpi:nth-child(4n+1),.commercial-metrics article:nth-child(4n+1){border-top:3px solid var(--ml-cyan)!important}.hr-summary article:nth-child(4n+2),.dashboard-kpi:nth-child(4n+2),.commercial-metrics article:nth-child(4n+2){border-top:3px solid var(--ml-pink)!important}.hr-summary article:nth-child(4n+3),.dashboard-kpi:nth-child(4n+3),.commercial-metrics article:nth-child(4n+3){border-top:3px solid var(--ml-amber)!important}.hr-summary article:nth-child(4n+4),.dashboard-kpi:nth-child(4n+4),.commercial-metrics article:nth-child(4n+4){border-top:3px solid var(--ml-lime)!important}

/* Modales y avisos */
dialog{max-width:calc(100vw - 24px)!important;border:1px solid #ffffff18!important;border-radius:18px!important;background:#fff!important;box-shadow:0 30px 100px #07090b66!important}dialog::backdrop{background:#07090bb8!important;backdrop-filter:blur(6px)!important}.employee-heading,.sale-modal-heading,.department-detail-dialog>header,.dashboard-detail-heading{margin:-1px -1px 18px!important;padding:21px 23px!important;border-radius:17px 17px 0 0!important;background:radial-gradient(circle at 0 0,#3c0b3140,transparent 36%),radial-gradient(circle at 100% 100%,#06374665,transparent 42%),var(--ml-ink)!important;color:#fff!important}.employee-heading h2,.sale-modal-heading h2,.employee-heading p,.sale-modal-heading p{color:#fff!important}.employee-heading .eyebrow,.sale-modal-heading .eyebrow{color:var(--ml-cyan)!important}.order-close,.ml-notice-close{background:#ffffff0c!important;color:#fff!important;border:1px solid #ffffff18!important}.ml-notice-card{border-radius:17px!important;border-top:3px solid var(--ml-cyan)!important}.ml-notice-card.warning{border-top-color:var(--ml-amber)!important}.ml-notice-card.danger{border-top-color:var(--ml-pink)!important}

/* Acceso */
.auth{background:radial-gradient(circle at 12% 20%,#3c0b31,transparent 28%),radial-gradient(circle at 88% 76%,#063746,transparent 30%),var(--ml-ink)!important}.auth-identity{background:transparent!important;color:#fff!important}.auth-identity:after{content:"";display:block;width:190px;height:3px;margin-top:22px;background:linear-gradient(90deg,var(--ml-cyan),var(--ml-purple),var(--ml-pink),var(--ml-amber),var(--ml-lime))}.auth-card{border:1px solid #3b444a!important;border-radius:22px!important;background:#202428!important;color:#f7f8f8!important;box-shadow:0 35px 100px #0008!important}.auth-card h1,.auth-card h2,.auth-card label{color:#fff!important}.auth-card>p,.auth-card small{color:#aab4ba!important}.auth-card input{background:#15191c!important;color:#fff!important;border-color:#465058!important}.auth-card button[type=submit]{background:#07090b!important;color:#fff!important;border:1px solid #00aee9!important}.secure-note{color:#9faab0!important}.secure-note span{color:#92c82c!important}

/* Móvil */
@media(max-width:900px){.shell>aside{width:100%!important;box-shadow:none!important}.shell>aside:before{top:68px}.shell>aside .brand{margin-bottom:17px!important}.shell>aside nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;max-height:none!important}.shell>aside nav>button{min-height:42px!important}.content{padding:16px 12px 34px!important}.workspace>header{padding:12px 16px!important}.heading,.erp-top,.fiscal-hero,.attendance-heading,.hr-section-heading{padding:18px!important}.sale-titlebar,.sale-capture-card,.sale-products-card,.sale-profit,.sale-totals{border-radius:13px!important}.customer-duplicate-rows article{grid-template-columns:1fr!important}.commercial-tabs,.erp-tabs,.fiscal-tabs,.hr-tabs{position:sticky;top:0;z-index:12}.chat-workspace{border-radius:12px!important}}
@media(max-width:560px){.shell>aside nav{grid-template-columns:1fr!important}.shell>aside nav>button{min-height:38px!important}.content{padding:12px 8px 30px!important}.heading h2,.erp-top h2,.fiscal-hero h2{font-size:21px!important}.heading,.erp-top,.fiscal-hero{border-radius:12px!important}.dashboard-kpis,.commercial-metrics,.cash-kpis,.commission-kpis,.fiscal-metrics,.hr-summary{grid-template-columns:1fr 1fr!important}.dialog-actions{flex-wrap:wrap!important}.dialog-actions button{flex:1!important}.employee-heading,.sale-modal-heading{padding:17px!important}}

/* Correcciones de usabilidad detectadas en la auditoría integral. */
.sale-product-dialog form{box-sizing:border-box!important;width:100%!important;max-width:none!important;padding:0!important}
.sale-product-dialog .sale-modal-heading{width:auto!important}
.sale-product-dialog .dialog-actions,.commercial-dialog .dialog-actions{position:sticky!important;bottom:0!important;z-index:5!important;margin:18px -2px -2px!important;padding:13px 2px 2px!important;background:linear-gradient(180deg,#ffffff00,#fff 24%)!important}
.commercial-dialog form{box-sizing:border-box!important}
@media(max-width:650px){.sale-product-dialog{padding:14px!important}.sale-product-dialog .sale-modal-heading{margin:-1px -1px 14px!important}.sale-product-dialog .dialog-actions{gap:8px!important}.sale-product-dialog .dialog-actions button{min-height:44px!important}}
@media(max-width:620px){.hr-full-dialog .hr-form-nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;overflow:visible!important;padding:9px 12px!important}.hr-full-dialog .hr-form-nav button{min-width:0!important;padding:8px 5px!important;font-size:10px!important;line-height:1.2!important;white-space:normal!important}.hr-full-dialog main{overflow-x:hidden!important;padding:16px!important}.hr-full-dialog header{padding:17px 16px!important}.hr-full-dialog footer{position:sticky!important;bottom:0!important;z-index:4!important;padding:11px 16px!important}.hr-full-dialog footer button{flex:1!important;min-height:42px!important}.hr-full-dialog footer .danger[hidden]{display:none!important}}
@media(max-width:620px){body:has(.hr-full-dialog[open]){overflow:hidden!important}.hr-full-dialog{overflow:hidden!important}.hr-full-dialog form{height:100dvh!important;max-height:100dvh!important}.hr-full-dialog main{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important}.hr-full-dialog header,.hr-full-dialog .hr-form-nav,.hr-full-dialog footer{flex:0 0 auto!important}}

/* El buscador de clientes debe flotar sobre el resto de la captura de venta. */
.sale-capture-card{position:relative!important;z-index:30!important;overflow:visible!important}
.sale-capture-card>header{border-radius:16px 16px 0 0}
.sale-capture-card .sale-fields,.sale-capture-card .sale-customer,.sale-capture-card .sale-customer>div,.sale-customer-search{overflow:visible!important}
.sale-customer-search{z-index:35!important}
.sale-customer-suggestions{z-index:1000!important;max-height:min(360px,55vh)!important;overscroll-behavior:contain;box-shadow:0 22px 60px rgba(7,9,11,.28)!important}
.sale-products-card{position:relative;z-index:1}
@media(max-width:650px){.sale-customer-suggestions{position:fixed!important;z-index:2000!important;top:auto!important;right:10px!important;bottom:12px!important;left:10px!important;max-height:52vh!important}}

.customer-full-dialog{width:min(900px,96vw)!important;max-height:92vh!important;overflow:auto!important}
.customer-full-dialog form{display:grid;gap:14px}
.customer-form-section{padding:16px;border:1px solid var(--ml-line);border-radius:13px;background:#fff}
.customer-form-section h3{margin:0 0 12px;color:var(--ml-ink);font-size:14px}
.customer-fiscal-fields{border-left:4px solid var(--ml-cyan);background:#f8fcfd}
.customer-fiscal-fields>p{margin:-5px 0 14px;color:#687874;font-size:11px}
.customer-fiscal-fields.inactive{opacity:.52;background:#f5f6f6}
.customer-fiscal-fields.inactive select,.customer-fiscal-fields.inactive input{background:#f1f3f2}
.customer-directory-results article{grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto!important}
@media(max-width:650px){.customer-full-dialog{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}.customer-form-section{padding:13px}.customer-directory-results article{grid-template-columns:1fr!important}.customer-directory-results article button{width:100%}}

/* Auditoria movil integral: tableros, pestañas y superficies densas. */
@media(max-width:650px){
  html,body,.workspace,.content,.view,.ml-dashboard{max-width:100%!important;min-width:0!important}
  .workspace .view header{height:auto!important;min-height:0!important}
  .ml-dashboard,.dashboard-command,.dashboard-kpis,.dashboard-main-grid,.dashboard-insights,.dashboard-chart-card,.dashboard-alert-stack{box-sizing:border-box!important;width:100%!important;min-width:0!important}
  .dashboard-command{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:stretch!important;gap:14px!important;padding:17px 15px!important}
  .dashboard-command>div,.dashboard-filters,.dashboard-filters label{min-width:0!important}
  .dashboard-filters{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;width:100%!important;gap:8px!important}
  .dashboard-filters input,.dashboard-filters button{box-sizing:border-box!important;width:100%!important;min-width:0!important}
  .dashboard-filters button{grid-column:1/-1!important}
  .dashboard-kpis,.dashboard-main-grid,.dashboard-alert-stack,.dashboard-insights{grid-template-columns:minmax(0,1fr)!important}
  .dashboard-chart-card>header{min-width:0!important}
  .dashboard-series{box-sizing:border-box!important;max-width:100%!important}
  .dashboard-chart{box-sizing:border-box!important;overflow:hidden!important;padding-inline:8px!important}
  .dashboard-chart svg{max-width:100%!important}
  .dashboard-source-card{grid-column:auto!important}
  .commercial-tabs,.erp-tabs,.fiscal-tabs,.hr-tabs,.access-tabs,.department-stage-tabs,.hr-loan-tabs,.order-workspace-switch,.dashboard-series,.approval-toolbar,.commercial-process-flow{
    scrollbar-width:none!important;-ms-overflow-style:none!important;overscroll-behavior-inline:contain!important
  }
  .commercial-tabs::-webkit-scrollbar,.erp-tabs::-webkit-scrollbar,.fiscal-tabs::-webkit-scrollbar,.hr-tabs::-webkit-scrollbar,.access-tabs::-webkit-scrollbar,.department-stage-tabs::-webkit-scrollbar,.hr-loan-tabs::-webkit-scrollbar,.order-workspace-switch::-webkit-scrollbar,.dashboard-series::-webkit-scrollbar,.approval-toolbar::-webkit-scrollbar,.commercial-process-flow::-webkit-scrollbar{display:none!important}
  .my-commission-list{border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
  .my-commission-list header{display:none!important}
  .my-commission-list article{display:grid!important;grid-template-columns:1fr auto!important;gap:6px 12px!important;min-width:0!important;margin-bottom:9px!important;padding:14px!important;border:1px solid var(--ml-line)!important;border-radius:13px!important;background:#fff!important}
  .my-commission-list article b,.my-commission-list article span:nth-child(2){grid-column:1/-1!important}
  .my-commission-list article span:nth-child(3):before{content:"Cobrado: ";color:var(--ml-muted);font-size:9px}
  .my-commission-list article span:nth-child(4):before{content:"Base: ";color:var(--ml-muted);font-size:9px}
  .my-commission-list article strong{grid-column:1/-1!important;margin-top:5px!important;padding-top:9px!important;border-top:1px solid var(--ml-line)!important;text-align:right!important}
}
.customer-directory-search{display:flex;align-items:end;gap:12px;margin:14px 24px 0;padding:13px 14px;border:1px solid var(--ml-line);border-radius:12px;background:#fff}.customer-directory-search label{display:grid;flex:1;gap:5px}.customer-directory-search input{width:100%;box-sizing:border-box}.customer-directory-search>small{padding-bottom:10px;color:var(--ml-muted);white-space:nowrap}
@media(max-width:650px){.customer-directory-search{align-items:stretch;flex-direction:column;gap:4px;margin:10px 14px 0}.customer-directory-search>small{padding:0}.customer-directory-results{padding-top:10px!important}}
.ml-prompt-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 20px));padding:0!important;overflow:hidden}.ml-prompt-dialog form{display:grid;gap:14px;padding:0 20px 20px}.ml-prompt-dialog .employee-heading{margin:0 -20px 0!important}.ml-prompt-dialog>form>p{margin:0;color:var(--ml-muted);line-height:1.5}.ml-prompt-dialog label{display:grid;gap:6px}.ml-prompt-dialog textarea{box-sizing:border-box;width:100%;resize:vertical}.ml-prompt-dialog .dialog-actions{margin-top:2px}

/* Versión mono oscuro: continuidad visual y acciones M&L coherentes. */
:root{--ml-paper:#171a1d;--ml-surface:#22262a;--ml-text:#f1f3f4;--ml-muted:#a4abb0;--ml-line:#3a3f43}
html,body,.shell,.workspace{background:#171a1d!important;color:var(--ml-text)!important}
body:before{background:radial-gradient(circle at 84% 0,#13c0eb12,transparent 25%),radial-gradient(circle at 28% 100%,#ec168c0d,transparent 28%)!important}
.workspace>header{background:transparent!important;border-color:transparent!important;box-shadow:none!important;backdrop-filter:none!important}.workspace>header h1{color:#fff!important}.workspace>header .eyebrow{color:#9ba3a8!important}.content{background:#171a1d!important}
.direction-live-summary{display:flex;align-items:center;gap:9px;margin-left:auto}.direction-live-card{position:relative;display:flex;align-items:center;gap:10px;min-width:162px;height:56px;padding:8px 12px;border:1px solid #3a4248;border-radius:12px;background:#1c2024;box-shadow:0 8px 22px rgba(0,0,0,.14);overflow:hidden;transition:border-color .25s,transform .25s}.direction-live-card:after{content:"";position:absolute;inset:auto 0 0;height:2px;background:linear-gradient(90deg,#12bce9,#df1180);opacity:.65}.direction-live-mark{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border:1px solid #35434b;border-radius:9px;background:#11161a;font-size:15px;font-style:normal}.direction-live-mark.cyan{color:#10bfe9}.direction-live-mark.magenta{color:#e41482}.direction-live-card div{display:grid;min-width:0}.direction-live-card small{color:#909ba2;font-size:8px;font-weight:500;letter-spacing:.105em;text-transform:uppercase;line-height:1.15}.direction-live-card strong{margin-top:2px;color:#f4f6f7;font-size:15px;font-weight:570;letter-spacing:-.025em;line-height:1.15;white-space:nowrap}.direction-live-card em{margin-top:2px;color:#839097;font-size:8px;font-style:normal;white-space:nowrap}.direction-live-card em i{display:inline-block;width:5px;height:5px;margin-right:3px;border-radius:50%;background:#38c889;box-shadow:0 0 0 3px rgba(56,200,137,.1)}.direction-live-summary.is-loading{opacity:.68}.direction-live-summary.is-offline .direction-live-card{border-color:#70424a}.direction-live-card.just-updated{border-color:#df1180;transform:translateY(-1px);box-shadow:0 8px 28px rgba(223,17,128,.18)}
@media(min-width:901px){.workspace>header{gap:10px!important}.workspace>header>.direction-live-summary,.workspace>header>div:last-child{height:56px!important;align-self:center!important;align-items:center!important}.workspace>header>div:last-child{margin-left:0!important}.workspace>header .branch-context{box-sizing:border-box!important;height:56px!important;margin:0!important}.workspace>header .icon,.workspace>header .profile{align-self:center!important;margin:0!important}}
@media(max-width:1180px){.direction-live-card{min-width:145px;padding-inline:9px}.direction-live-mark{display:none}}
@media(max-width:900px){.workspace>header{flex-wrap:wrap!important}.direction-live-summary{order:3;width:100%;margin:0;gap:6px}.direction-live-card{flex:1 1 0;min-width:0;height:48px}.direction-live-card strong{font-size:13px}.direction-live-card em{font-size:7px}}

/* Componentes creados dinámicamente: conservar el tema oscuro de Control. */
.apparel-fields input.other-entry,
.apparel-fields input.other-entry:hover,
.apparel-fields input.other-entry:focus{
  background:#171c20!important;
  color:#f4f7f8!important;
  border-color:#b7832e!important;
  caret-color:#f4f7f8!important;
  box-shadow:none!important;
}
.apparel-fields input.other-entry::placeholder{
  color:#8f9aa0!important;
  opacity:1!important;
}
.branch-card>header,
.branch-card>footer{
  background:transparent!important;
  color:#edf0f1!important;
  border:0!important;
  box-shadow:none!important;
}
.branch-card>header small{color:#12bfe9!important}
.branch-card>header h3{color:#f4f7f8!important}
.branch-card>header .pill{
  background:#193a31!important;
  color:#91dfbd!important;
  border-color:#2d6d57!important;
}
.account-menu,.account-menu>header{background:#202428!important;background-image:none!important;color:#f2f5f6!important;border-color:#414a50!important;box-shadow:none!important}
.account-menu>header b{color:#f4f7f8!important}.account-menu>header small{color:#9da8ae!important}
.account-menu>button{background:#293138!important;color:#f2f5f6!important;border-color:#4b565e!important}
#unlockUser{border-color:#2f7960!important;background:#1c4939!important;color:#a7e9ce!important}
.panel,.view,.sale-workspace{color:var(--ml-text)!important}.sale-workspace{background:#1b1e21!important;border-color:#373c40!important}
article,.card,.admin-section,.erp-settings-section,.dashboard-chart-card,.dashboard-source-card,.fiscal-settings-grid>article,.attendance-action-card,.attendance-today,.attendance-history,.attendance-admin,.hr-sheet,.commission-policy,.commission-new-run,.commission-preview,.purchase-batch,.sale-capture-card,.sale-products-card,.sale-profit,.commercial-table,.erp-table-wrap,.order-table-wrap,.bulk-price-table-wrap,.apparel-table-wrap,.customer-form-section,.form-section,.product-form-section-grid>section{background:#22262a!important;border-color:#3a3f43!important;color:#edf0f1!important;box-shadow:0 10px 32px #0003!important}
tbody td{background:#22262a!important;border-color:#393e42!important;color:#edf0f1!important}tbody tr:hover td{background:#282d31!important}thead th{background:#090b0d!important}
label,.form-section h3,.product-form-section-grid h3,.customer-form-section h3{color:#d5d9db!important}input,select,textarea{background:#191c1f!important;border-color:#41474c!important;color:#f3f4f5!important;box-shadow:none!important}input::placeholder,textarea::placeholder{color:#747c82!important}
.commercial-tabs,.erp-tabs,.fiscal-tabs,.hr-tabs,.access-tabs,.department-stage-tabs,.hr-loan-tabs,.order-workspace-switch,.dashboard-series,.approval-toolbar{background:#111416!important;border-color:#3b4044!important}.commercial-tabs button,.erp-tabs button,.fiscal-tabs button,.hr-tabs button,.access-tabs button,.department-stage-tabs button,.hr-loan-tabs button,.order-workspace-switch button,.dashboard-series button,.approval-toolbar button{color:#a9b0b4!important}.commercial-tabs button.active,.erp-tabs button.active,.fiscal-tabs button.active,.hr-tabs button.active,.access-tabs button.active,.department-stage-tabs button.active,.hr-loan-tabs button.active,.order-workspace-switch button.active,.dashboard-series button.active,.approval-toolbar button.active{background:#050607!important;color:#fff!important;box-shadow:inset 0 -3px 0 var(--ml-cyan)!important}
.erp-shell>aside,.admin-module-list,.erp-module-list,.chat-list,.chat-thread>header,.chat-details,.chat-composer{background:#202428!important;border-color:#393f43!important;color:#edf0f1!important}
.chat-workspace{background:#1b1e21!important;border-color:#3a3f43!important}.chat-contact.active,.chat-bubble.human{background:#090b0d!important}.chat-bubble.ai{background:#17313a!important;border-color:#26505c!important;color:#eefbff!important}
.customer-fiscal-fields{background:#1b2529!important;border-left-color:var(--ml-cyan)!important}.customer-fiscal-fields.inactive{background:#1d2023!important}
.sale-capture-card>header,.sale-products-card>header,.sale-profit>header,.admin-section>header{background:#1c2023!important;border-color:#373c40!important}.sale-fields,.sale-actions{background:#22262a!important;border-color:#393f43!important}
.sale-totals{background:radial-gradient(circle at 100% 0,#07374680,transparent 45%),#080a0c!important;border-color:#3b4246!important;color:#fff!important}.sale-totals span,.sale-totals b{color:#fff!important}.sale-grand-total strong{color:var(--ml-pink)!important}
.content button:not(.outline):not(.secondary):not(.danger):not(.danger-outline):not(.danger-text):not(.order-close):not(.ml-notice-close):not(.chat-contact):not(.chat-bubble):not(.order-light),dialog button:not(.outline):not(.secondary):not(.danger):not(.danger-outline):not(.danger-text):not(.order-close):not(.ml-notice-close){background:#080a0c!important;border-color:#080a0c!important;color:#fff!important;box-shadow:0 7px 18px #0004!important}
.heading button,.erp-top button,.fiscal-hero button,.attendance-heading button{background:#fff!important;color:#080a0c!important;border-color:#fff!important}.sale-add,.sale-pay,.story-card footer button:first-child,.quote-builder>header button{background:var(--ml-pink)!important;border-color:var(--ml-pink)!important;color:#fff!important}
button.outline,button.secondary,.sale-soft,.sale-quote,.attendance-refresh{background:#282d31!important;color:#e9edef!important;border-color:#4a5055!important}.danger,.danger-outline,.danger-text,.quote-delete{background:#361527!important;color:#ff74bd!important;border-color:#7b2755!important}
.story-toolbar a,.commercial-list a,.catalog-grid a,.production-file.linked{color:#51d8f7!important}.story-state:not(.published){background:#17313a!important;color:#6ee1fa!important}.story-state.published{background:#090b0d!important;color:#fff!important}
.sale-live-dot{background:var(--ml-cyan)!important;box-shadow:0 0 0 7px #13c0eb20!important}.commission-policy,.designer-load article,.admin-control-top,.erp-not-ready{background:#202428!important;color:#d9dddf!important}.commission-policy{border-left:3px solid var(--ml-cyan)!important}.commission-policy b,.commission-requirements article>b{background:#080a0c!important;color:#fff!important}
.designer-load article b,.erp-catalog-summary b,.cash-kpis b,.commission-kpis b,.order-workspace-copy b,.fiscal-metrics b,.fiscal-folio b,.fiscal-sale-summary strong{color:#fff!important}
.attendance-main-button{background:linear-gradient(110deg,#080a0c,#12303a)!important;color:#fff!important}.attendance-main-button.clock_out{background:linear-gradient(110deg,#080a0c,#351329)!important}.attendance-type,.admin-section>header>b,.admin-alert>span,.production-area{background:#17313a!important;color:#68dcf5!important}
.commercial-status.validated,.commercial-status.converted,.fiscal-status.stamped,.attendance-status.accepted,.attendance-status.approved,.production-status.ready,.production-meta .gate.ok{background:#263916!important;color:#bce76c!important}
dialog{background:#202428!important;color:#eef1f2!important}dialog form{color:#eef1f2!important}.ml-notice-card{background:#22262a!important;color:#f2f4f5!important}
@media(max-width:650px){.content button,dialog button{min-height:40px}.heading button,.erp-top button,.fiscal-hero button{box-shadow:none!important}}
.sale-selected-customer{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:9px 12px!important;margin-top:8px!important;padding:10px 12px!important;border:1px solid #3b4246!important;border-radius:10px!important;background:#1a1e21!important;color:#eef1f2!important}.sale-selected-customer>div b,.sale-selected-customer>div small{display:block}.sale-selected-customer>div small{margin-top:3px;color:#9fa7ac}.sale-selected-customer>button{min-height:34px!important}.sale-customer-history{grid-column:1/-1;display:grid;gap:6px;padding-top:10px;border-top:1px solid #373d41}.sale-customer-history>header{display:flex;justify-content:space-between;gap:10px;padding:2px 3px 7px}.sale-customer-history>header small{color:#929ba0}.sale-customer-history>button{display:grid!important;grid-template-columns:135px minmax(150px,1fr) auto!important;align-items:center!important;gap:12px!important;text-align:left!important;background:#24292d!important;border:1px solid #3d4449!important}.sale-customer-history>button span:first-child b,.sale-customer-history>button span:first-child small{display:block}.sale-customer-history>button small{color:#9aa3a8}.sale-customer-history>button strong{color:var(--ml-cyan)}.sale-customer-history>p{margin:4px;color:#9ea6ab}
@media(max-width:650px){.sale-selected-customer{grid-template-columns:1fr!important}.sale-selected-customer>button{width:100%}.sale-customer-history>button{grid-template-columns:1fr auto!important}.sale-customer-history>button>span:nth-child(2){grid-column:1/-1;grid-row:2}}

/* Auditoría oscura completa: ninguna superficie operativa conserva el tema claro heredado. */
.hero{background:radial-gradient(circle at 0 0,#12313b66,transparent 40%),#202428!important;border-color:#3b4247!important;color:#f2f4f5!important}.hero h2,.hero strong{color:#fff!important}.hero p:last-child{color:#adb5ba!important}.hero .eyebrow.green{color:var(--ml-lime)!important}
.branch-context{background:#22262a!important;border-color:#41474c!important;color:#eef1f2!important}.branch-context span{color:#aab2b6!important}.branch-context select{background:#15181b!important;color:#fff!important;color-scheme:dark!important}
.commercial-process-flow{background:#202428!important;border-color:#3b4146!important}.commercial-process-flow>*{background:#080a0c!important;color:#eef1f2!important;border-color:#2e3438!important}.commercial-process-flow .active{box-shadow:inset 0 3px 0 var(--ml-amber)!important}
#commercial .commercial-tabs{background:#111416!important;border-color:#3b4145!important}.sale-table-wrap,.sale-bottom,.sale-profit-stats,.sale-profit-stats>div,.sale-profit>label,.sale-modal-summary,.quote-builder{background:#202428!important;border-color:#3a4044!important;color:#eef1f2!important}.sale-table-wrap th{background:#080a0c!important;color:#e9edef!important}.sale-empty{color:#a4adb2!important}.sale-actions{background:#1c2023!important;border-color:#393f43!important}
.erp-shell{background:#1b1e21!important;border-color:#3a4044!important}.erp-shell>main,#erpRecords,.cash-top{background:#1b1e21!important;color:#eef1f2!important}.erp-module-list{background:#15181b!important;border-color:#393f43!important}.erp-module-list button{color:#b7bec2!important}.erp-module-list button span{background:#2b3034!important;color:#eaf0f2!important}.erp-module-list button:hover{background:#252a2e!important}.erp-toolbar,.erp-import-bar,.erp-catalog-summary,.commercial-section-tools{background:#202428!important;border-color:#3a4044!important;color:#eef1f2!important}.erp-toolbar label,.erp-import-bar small,.commercial-section-tools small{color:#9da6ab!important}.erp-catalog-summary span,.erp-check{background:#22272b!important;border-color:#3d4448!important;color:#cbd1d4!important}.erp-catalog-summary b,.commercial-section-tools b{color:#fff!important}
.erp-settings-form,.erp-settings-form>header,.erp-settings-form>footer,.erp-settings-section,.erp-setting-toggle,.erp-setting-upload,.erp-setting-preview{background:#202428!important;border-color:#3b4246!important;color:#e9edef!important}.erp-setting-toggle:hover{background:#272c30!important;border-color:#50585d!important}.erp-settings-form h3,.erp-settings-section h4,.erp-setting-toggle b,.erp-setting-field b{color:#f2f4f5!important}.erp-setting-toggle small,.erp-setting-field small,.erp-settings-form header p,.erp-settings-form>footer span{color:#9fa8ad!important}.erp-setting-preview img{background:#16191c!important}
.cash-shift-banner,.cash-actions,.cash-method-summary,.cash-user-audit,.cash-action-dialog,.cash-shift-dialog{background:#202428!important;border-color:#3b4246!important;color:#eef1f2!important}.cash-shift-banner.closed,.cash-shift-banner.open{background:#202428!important}.cash-actions>button,.cash-method-summary>article,.cash-user-audit>article{background:#22272b!important;border-color:#3c4347!important;color:#eef1f2!important}.cash-method-summary header,.cash-user-audit header{background:#1b1f22!important;border-color:#3a4044!important}.cash-method-summary h3,.cash-user-audit h3{color:#fff!important}
.designer-load{background:#202428!important;border-color:#3a4145!important;color:#eef1f2!important}.designer-load>header{background:#202428!important;border-color:#3a4145!important}.designer-load>header b{color:#f3f5f6!important}.designer-load>header small{color:#a4adb2!important}.designer-load article{background:#161a1d!important;border:1px solid #353c40!important;color:#eaf0f2!important}
.production-job,.design-job,.department-job{background:#202428!important;border-color:#3d4448!important;color:#eef1f2!important}.production-job>header,.design-job>header,.department-job>header,.department-row-main{background:#202428!important;border-color:#3c4347!important}.production-job h3,.design-job h3,.department-job h3,.department-row-main h3{color:#fff!important}.production-job header p,.design-job header p,.department-job header p{color:#a0a9ae!important}.production-comments,.design-brief,.department-comments,.department-specs,.department-files,.department-row-files,.production-order-context,.production-file-note{background:#181c1f!important;border-color:#3a4145!important;color:#d4dade!important}.production-comments p,.design-brief p,.department-comments p{color:#d4dade!important}.production-meta,.production-job>footer,.design-job>footer,.department-job>footer{background:#202428!important;border-color:#3b4246!important;color:#a6afb4!important}.production-filters button{background:#22272b!important;border-color:#41484d!important;color:#bac2c6!important}.production-filters button.active{background:#080a0c!important;border-color:var(--ml-cyan)!important;color:#fff!important}
.department-toolbar,.department-stage-tabs,.transfer-department-tabs,.production-machine-box,.production-stats,.production-stat-departments,.production-people-table,.production-upload-grid,.production-paste-preview{background:#202428!important;border-color:#3b4246!important;color:#eef1f2!important}.department-search{background:#191c1f!important;border-color:#41474c!important;color:#fff!important}.department-detail-dialog,.production-job-dialog{background:#202428!important;color:#eef1f2!important}.department-detail-metrics>article,.production-stat-departments>article{background:#181c1f!important;border-color:#3b4246!important}
.story-card,.story-copy,.story-card footer,.story-preview.empty{background:#202428!important;border-color:#3b4246!important;color:#eef1f2!important}.story-copy h3,.story-copy p{color:#eef1f2!important}.story-copy small,.story-copy span{color:#a2abb0!important}.story-toolbar{color:#eef1f2!important}
.approval-card,.approval-card blockquote,.approval-resolution,.access-user-bar,.payroll-access,.permission-table,.special-permissions label{background:#202428!important;border-color:#3b4246!important;color:#eef1f2!important}.approval-card header p,.approval-card small,.approval-meta,.access-user-bar small,.special-permissions small{color:#9fa8ad!important}.permission-table article{border-color:#3a4145!important}
.attendance-view{background:#171a1d!important}.attendance-action-card p,.attendance-today p,.attendance-admin p,.attendance-gps-state,.attendance-list small,.attendance-list p,.attendance-review-list small,.attendance-review-list p{color:#a3acb1!important}.attendance-clock,.attendance-today>b{color:#fff!important}.attendance-today>div{border-color:#3a4145!important}.attendance-today em{background:#302819!important;color:#ffd36c!important}
.fiscal-list article,.fiscal-settings-grid>article,.fiscal-sale-summary{background:#202428!important;border-color:#3b4246!important;color:#eef1f2!important}.fiscal-list small,.fiscal-settings-grid small,.fiscal-settings-grid dt,.fiscal-toolbar p,.fiscal-help,.fiscal-sale-summary small{color:#9fa8ad!important}.fiscal-series,.fiscal-actions,.fiscal-dialog header{border-color:#3a4145!important}.fiscal-warning{background:#302819!important;color:#ffd36c!important}.fiscal-empty{border-color:#485055!important;color:#9fa8ad!important}
.dashboard-kpi,.dashboard-chart-card,.dashboard-insights>article,.dashboard-alert-stack button,.dashboard-alert-stack button.urgent,.dashboard-rank>span{background:#202428!important;border-color:#3b4246!important;color:#eef1f2!important}.dashboard-kpi b,.dashboard-insights b,.dashboard-rank b,.dashboard-rank strong,.dashboard-alert-stack b{color:#f2f4f5!important}.dashboard-kpi small,.dashboard-kpi em,.dashboard-insights small,.dashboard-rank span,.dashboard-alert-stack span,.dashboard-alert-stack small{color:#9fa8ad!important}.dashboard-chart-card>header,.dashboard-insights article>header,.dashboard-rank,.dashboard-source-card>div{border-color:#3a4145!important}.dashboard-chart .grid{stroke:#343a3e!important}.dashboard-chart text{fill:#a8b0b5!important}.dashboard-chart circle{fill:#202428!important}body:has(#commercial-dashboard:not(.hidden)) .workspace{background:#171a1d!important}
.order-board,.order-summary article,.order-card,.order-production-history,.design-versions-list article{background:#202428!important;border-color:#3b4246!important;color:#eef1f2!important}.order-board{border-color:#3b4246!important}.order-card b,.order-production-history>b,.order-production-history strong{color:#f1f4f5!important}.order-card small,.order-card footer,.order-production-history small,.design-versions-list small{color:#9fa8ad!important}
.commercial-list article,.catalog-grid article,.commercial-metrics article,.customer-directory-search,.customer-directory-results article{background:#202428!important;border-color:#3b4246!important;color:#eef1f2!important}.catalog-grid h3,.commercial-list b{color:#f1f4f5!important}.catalog-grid p,.catalog-grid footer small,.commercial-list small{color:#a0a9ae!important}
@media(max-width:720px){body:has(#attendance-mobile:not(.hidden)){background:#171a1d!important}#attendance-mobile{background:linear-gradient(165deg,#080a0c 0,#172f38 235px,#171a1d 236px)!important}.attendance-dialog footer{background:#202428!important}}
.attendance-admin>header,.attendance-history>header{background:#202428!important;color:#f4f6f7!important;border:0!important;border-bottom:1px solid #3b4348!important;border-radius:12px 12px 0 0!important;box-shadow:none!important}.attendance-admin>header p,.attendance-history>header p{color:#a8b2b7!important}.attendance-admin>header button{background:#282d31!important;color:#fff!important;border:1px solid #4a5359!important}.attendance-review-list article{background:#22272b!important;color:#f4f6f7!important;border-color:#3c454a!important}.attendance-review-list article span{color:#dfe5e8!important}
.hr-payroll-live{margin:0 0 18px;padding:20px;border:1px solid #3a4146;border-radius:16px;background:#1d2125;color:#f4f6f7}.hr-payroll-live>header{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:15px;padding:0!important;background:transparent!important;border:0!important;color:#fff!important}.hr-payroll-live h3{margin:3px 0;color:#fff!important;font-size:25px}.hr-payroll-live p{margin:3px 0;color:#aab3b8!important}.payroll-live-status{display:grid;min-width:125px;padding:12px 15px;border:1px solid #424b50;border-radius:12px;background:#272c30;text-align:center}.payroll-live-status b{font-size:25px}.payroll-live-status span{font-size:10px;color:#aeb7bc}.payroll-live-status.warning{border-color:#7d5d1f;background:#302819}.payroll-live-status.warning b{color:#ffd36c}.hr-payroll-live td small{display:block;margin-top:3px;color:#9fa9ae!important}.hr-payroll-live td strong,.hr-payroll-live td b{color:#fff!important}.hr-payroll-live .payroll-live-issue{background:#302819!important}.hr-payroll-live .payroll-live-issue b{color:#ffd36c!important}.payroll-live-rest,.payroll-live-wait{color:#7f8a90;font-size:10px}.hr-payroll-live>footer{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-top:14px;color:#aab3b8;font-size:11px}.hr-payroll-live>footer button{background:#2b3135!important;color:#fff!important;border:1px solid #4a5359!important}@media(max-width:720px){.hr-payroll-live{padding:14px}.hr-payroll-live>header,.hr-payroll-live>footer{align-items:stretch;flex-direction:column}.payroll-live-status{grid-template-columns:auto 1fr;align-items:center;text-align:left}.hr-payroll-live .hr-payroll-table{overflow:auto}}

/* Cierre de cascada: Mi asistencia conserva el mismo lienzo oscuro en móvil. */
@media(max-width:720px){
  body:has(#attendance-mobile:not(.hidden)),#attendance-mobile,.attendance-mobile,.attendance-view{background:#15191c!important;background-image:none!important}
  #attendance-mobile .attendance-heading,#attendance-mobile .attendance-action-card,#attendance-mobile .attendance-history,
  #attendance-mobile .attendance-today,#attendance-mobile .attendance-admin,#attendance-mobile .attendance-list article,
  #attendance-mobile .attendance-review-list article{background:#202428!important;color:#f6f8f9!important;border-color:#3c444a!important}
}

/* Release 135: cierre de contraste en operación, asistencia y comisiones */
.department-row-main,.department-row-main header,.department-row-main p,.department-row-main small,
.department-row-files,.attendance-action-card,.attendance-action-card header,
.attendance-action-card header>div,.attendance-action-card>div{
  background:#202428!important;color:#fff!important
}
.department-row-main h3,.department-row-main b,.attendance-action-card h3,
.attendance-action-card b,.attendance-action-card small{color:#fff!important}
.department-row-main p,.department-row-main small,.attendance-action-card p{color:#cbd2d6!important}
.production-order-card [class*="missing"],.production-order-card [class*="unlinked"],
.production-board [class*="missing"],.cash-register-shell .negative,
.cash-register-shell .expense,.cash-register-shell [class*="danger"]{color:#ff8078!important}
.commission-card,.commission-card *,.commission-summary,.commission-summary *,
.commission-detail,.commission-detail *{color:#fff!important}

/* Release 133: contraste operativo verificado campo por campo. */
.cash-user-audit table,.cash-user-audit tbody,.cash-user-audit tr,.cash-user-audit td,
.cash-user-audit td b,.cash-user-audit .cash-positive,.cash-user-audit .cash-negative{
  color:#fff!important
}

/* Release 152: contraste completo en Lonas, estadísticas y fichas de personal */
.department-row-files,
.department-row-files a,
.department-row-files a b,
.department-row-files a small,
.department-row-files a span{
  background:#181c1f!important;color:#eef2f3!important;border-color:#3b4449!important
}
.department-row-files a{display:grid!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}
.department-row-files a small{display:block!important;max-width:100%!important;overflow-wrap:anywhere!important;white-space:normal!important;opacity:.92!important}
.department-row-files a span{color:#59d8f5!important}
.department-row-finishes{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:6px!important;margin-top:8px!important;color:#cbd2d5!important}
.department-row-finishes span{padding:4px 8px!important;border:1px solid #435058!important;border-radius:999px!important;background:#15282d!important;color:#bceefa!important;font-size:11px!important}
.production-stats,.production-stats summary,.production-stat-departments,.production-stat-departments article,.production-people-table,.production-people-table>div,.production-people-head,.production-stat-note{
  background:#1b1f22!important;color:#edf1f2!important;border-color:#3b4449!important
}
.production-stats summary{padding:14px!important}.production-stat-departments article{background:#171b1e!important}.production-stat-departments span,.production-stat-departments small,.production-people-table span,.production-stat-note{color:#b4bdc1!important}
.user-card,.user-card header,.user-card header>div,.user-card header b,.user-card header small{
  background:#202428!important;color:#eef2f3!important;border-color:#3d454a!important
}
.user-card header{padding:0!important}.user-card header b{font-size:15px!important}.user-card header small{display:inline!important;margin-left:4px!important;color:#b9c2c6!important}.user-card .pill{background:#dff3e8!important;color:#176441!important}
.cash-user-audit td{background:#202428!important;border-color:#3d454a!important}
.cash-user-audit td:nth-child(3),.cash-user-audit td:nth-child(5){font-weight:600!important}
.cash-user-audit td:nth-child(7){color:#dce2e5!important;font-variant-numeric:tabular-nums}
.cash-user-audit thead th{background:#080a0c!important;color:#fff!important;border-color:#3d454a!important}

#myCommissionContent,.my-commission-list,.my-commission-list article,
.commission-run-list,.commission-run-list article,.commission-detail-list,.commission-detail-list article,
.commission-preview,.commission-preview table,.commission-preview tbody,.commission-preview tr,.commission-preview td{
  background:#202428!important;color:#fff!important;border-color:#3d454a!important
}
.my-commission-list article span,.my-commission-list article b,.my-commission-list article strong,
.commission-run-list article span,.commission-run-list article b,.commission-run-list article strong,
.commission-detail-list article span,.commission-detail-list article b,.commission-detail-list article strong,
.commission-preview td,.commission-preview td b{color:#fff!important}

.department-detail-dialog #departmentDetailBody>section{background:#202428!important;color:#f6f8f9!important}
.department-detail-dialog h2,.department-detail-dialog h3,.department-detail-dialog p,
.department-detail-dialog .eyebrow,.department-detail-metrics span,.department-detail-metrics b,
.department-detail-files a,.department-detail-files a b,.department-detail-files small,
.finish-chips span{color:#fff!important}
.department-detail-metrics span,.department-detail-files a,.finish-chips span{
  background:#171b1e!important;border:1px solid #414a50!important
}
.department-detail-visual{background:#0d1012!important;color:#c6ced2!important}
.department-detail-close{background:#080a0c!important;color:#fff!important;border:1px solid #00b9f2!important}

/* Release 119: navegación web utilizable y cierre visual de captura de ventas. */
@media(min-width:761px){
  .shell{height:100dvh!important;min-height:0!important;overflow:hidden!important}
  .shell>aside{box-sizing:border-box!important;height:100dvh!important;min-height:0!important;overflow:hidden!important}
  .shell>aside nav{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;padding-right:4px!important}
  .shell>aside nav::-webkit-scrollbar{width:6px}.shell>aside nav::-webkit-scrollbar-thumb{background:#ffffff22;border-radius:99px}
  .workspace{height:100dvh!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain}
}
.sale-product-name{display:block;color:#eef1f2!important;font-weight:400!important;line-height:1.35}
.sale-line-total{color:#fff!important;font-weight:500!important;white-space:nowrap}
.sale-table-wrap td{color:#dce2e5!important}
.sale-table-wrap td:nth-child(5),.sale-table-wrap td:nth-child(7),.sale-table-wrap td:nth-child(8),.sale-table-wrap td:nth-child(9){color:#f5f7f8!important}
.sale-edit-price{display:inline-flex!important;align-items:center!important;gap:6px!important;padding:6px 8px!important;border:1px solid #4a545a!important;border-radius:7px!important;background:#292f33!important;color:#fff!important;font-size:11px!important;font-weight:500!important;white-space:nowrap}
.sale-edit-price span{color:#67d5f5!important;font-size:8px!important;font-weight:500!important;text-transform:uppercase;letter-spacing:.04em}
.sale-edit-price:hover,.sale-edit-price:focus-visible{border-color:#00b9f2!important;background:#31383d!important;outline:none!important}
.sale-remove-item{background:#361527!important;color:#ff74bd!important;border:1px solid #7b2755!important}
.sale-totals{background:#202428!important;border:1px solid #41494e!important;color:#fff!important}
.sale-totals>.eyebrow{color:#aeb7bc!important}.sale-totals>div{border-color:#465058!important}.sale-totals>div span{color:#c9d0d4!important}.sale-totals>div b{color:#fff!important}
.sale-grand-total strong{color:#fff!important;text-shadow:none!important}
.sale-totals .sale-pay,.sale-totals .sale-quote{min-height:42px!important;border:1px solid #59636a!important;background:#30363b!important;color:#fff!important;box-shadow:none!important;font-weight:500!important}
.sale-totals .sale-pay:hover,.sale-totals .sale-quote:hover,.sale-totals .sale-pay:focus-visible,.sale-totals .sale-quote:focus-visible{background:#3a4248!important;border-color:#778188!important;outline:none!important}
.sale-totals .sale-pay small{color:#aeb7bc!important}

/* Actualización agrupada: asistencia sin superficies claras y cierre BBVA. */
#attendance-mobile .attendance-heading,#attendance-mobile .attendance-grid,#attendance-mobile .attendance-action-card,
#attendance-mobile .attendance-action-card header,#attendance-mobile .attendance-today,#attendance-mobile .attendance-history,
#attendance-mobile .attendance-history header,#attendance-mobile .attendance-list,#attendance-mobile .attendance-list article,
#attendance-mobile .attendance-admin,#attendance-mobile .attendance-review-list,#attendance-mobile .attendance-review-list article,
.attendance-dialog,.attendance-dialog form,.attendance-dialog header,.attendance-dialog footer{
  background:#202428!important;background-image:none!important;color:#f5f7f8!important;border-color:#3d454a!important
}
#attendance-mobile input,#attendance-mobile select,#attendance-mobile textarea,
.attendance-dialog input,.attendance-dialog select,.attendance-dialog textarea{
  background:#15191c!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#4b555b!important;color-scheme:dark!important
}
#attendance-mobile .empty,#attendance-mobile .attendance-gps-state,#attendance-mobile .attendance-clock-label,
#attendance-mobile .attendance-list small,#attendance-mobile .attendance-list p{color:#aeb7bc!important}
.cash-bbva-reminder{display:grid;gap:4px;padding:14px 16px;border:1px solid #d99b2b!important;border-left:4px solid #f4b63d!important;border-radius:12px;background:#302819!important;color:#fff!important}
.cash-bbva-reminder b{color:#ffd36c!important}.cash-bbva-reminder span{color:#f5f1e4!important}
#approvalBadge.hidden{display:none!important}

/* Captura de producto: los importes deben conservar contraste aun mientras se consulta el precio. */
#saleProductDialog .sale-product-grid label{color:#cbd2d6!important}
#saleProductDialog #saleUnitPrice{border:1px solid #65717a!important;background:#111518!important;color:#fff!important;opacity:1!important;font-size:15px!important;font-weight:650!important;font-variant-numeric:tabular-nums;caret-color:#16c6ee!important;box-shadow:inset 3px 0 0 #16c6ee!important}
#saleProductDialog #saleUnitPrice:focus{border-color:#16c6ee!important;outline:none!important;box-shadow:inset 3px 0 0 #16c6ee,0 0 0 3px #16c6ee20!important}
#saleProductDialog #saleUnitPrice:disabled{background:#181d20!important;color:#f2f5f6!important;-webkit-text-fill-color:#f2f5f6!important;opacity:1!important;cursor:wait}
#saleProductDialog .sale-modal-summary span{color:#aeb7bc!important}
#saleProductDialog .sale-modal-summary b,#saleProductDialog .sale-modal-summary strong{color:#fff!important;font-weight:600!important;font-variant-numeric:tabular-nums}
#saleProductDialog #saleItemTotal{color:#65dcf5!important;font-size:18px!important}

/* Hallazgos de la revisión visual publicada */
.chat-workspace,.chat-list,.chat-list>header,.chat-thread,.chat-thread>header,.chat-details,
.chat-contact,.chat-search,.chat-messages,.chat-empty,.customer-record,.chat-details section,
.trainer-conversation>header,.shadow-layout>aside>header,
.dashboard-chart-card>header,.dashboard-insights>article>header,.dashboard-source-card>header,
#attendance-mobile>.attendance-heading,.attendance-heading{
  background:#202428!important;background-image:none!important;color:#f5f7f8!important;border-color:#3b444a!important
}
.chat-contact.active{background:#101c22!important;box-shadow:inset 3px 0 0 #00b9f2!important}
.chat-contact:hover{background:#272d31!important}
.chat-contact b,.chat-thread>header b,.chat-details h3,.trainer-conversation>header b,
.shadow-layout>aside>header h2,.dashboard-chart-card>header b,.dashboard-insights>article>header b,
.dashboard-source-card>header b{color:#fff!important}
.chat-contact small,.chat-contact time,.chat-thread>header small,.chat-details p,
.trainer-conversation>header small,.dashboard-chart-card>header small,
.dashboard-insights>article>header small,.dashboard-source-card>header small{color:#9faab0!important}
.chat-search input,.customer-record input,.customer-record textarea,.chat-details select{
  background:#15191c!important;color:#fff!important;border-color:#465058!important
}
.trainer-conversation>header,.shadow-layout>aside>header{border-bottom:1px solid #3b444a!important}
.attendance-heading>header,.attendance-heading header{background:transparent!important;color:inherit!important}

/* Release 112B: comisiones, administración, servicios, IA y avisos */
.my-commission-hero{background:radial-gradient(circle at 0 0,#3d0b3345,transparent 40%),linear-gradient(120deg,#07090b,#102c37)!important;color:#fff!important;border:1px solid #394248!important}
.commission-motivation,.my-commission-note,.my-commission-list,.my-commission-list header,.my-commission-list article,
.commission-policy,.commission-rules,.commission-requirements,.commission-rate-list label,
.commission-new-run,.commission-preview,.commission-run-list article,.commission-payroll-head,
.commission-detail-list article,.commission-dialog form,.commission-pay-dialog form,.commission-detail-dialog{
  background:#202428!important;background-image:none!important;color:#f5f7f8!important;border-color:#3b444a!important
}
.my-commission-note{border-left:3px solid #f4b63d!important;color:#e8d89b!important}
.my-commission-list header,.commission-payroll-head{background:#15191c!important;color:#b8c1c6!important}
.my-commission-list article strong,.commission-pending{color:#67d5f5!important}
.my-commission-list article,.commission-run-list article,.commission-detail-list article{border-color:#3b444a!important}

.admin-body,.admin-control-top,.admin-command-grid,.admin-section,.admin-kpi,.admin-alert,
.admin-alert-list article,.admin-approval-list article,.admin-payables article,.admin-audit article,
.admin-shortcuts button,.admin-scope,.admin-empty-good,.erp-shell main{
  background:#202428!important;background-image:none!important;color:#f4f7f8!important;border-color:#3b444a!important
}
.admin-control-top,.admin-section>header,.admin-command-grid>header{background:#171b1e!important}
.admin-kpi b,.admin-section h3,.admin-alert b,.admin-payables b,.admin-audit b{color:#fff!important}
.admin-kpi small,.admin-section p,.admin-alert small,.admin-payables small,.admin-audit small{color:#9faab0!important}

.service-grid,.services-view{background:#15191c!important;color:#f4f7f8!important}
.service-card,.service-card.urgent,.service-values,.usage-panel,.service-alert,.service-ok{
  background:#202428!important;background-image:none!important;color:#f4f7f8!important;border-color:#3b444a!important
}
.service-card header,.service-card footer{background:transparent!important;border-color:#3b444a!important}
.service-card h3,.service-values strong{color:#fff!important}
.service-card header small,.service-values label,.services-intro,.service-notes{color:#9faab0!important}
.service-values input,.service-notes{background:#15191c!important;color:#fff!important;border-color:#465058!important}
.service-state.ok{background:#123b30!important;color:#8ce5c1!important}.service-state.warn{background:#483317!important;color:#ffd27d!important}
.service-card footer a,.service-card footer button{background:#07090b!important;color:#fff!important;border-color:#465058!important}

.shadow-lab,.shadow-layout,.shadow-layout>aside,#shadowThread,.shadow-contact,.shadow-empty,
.shadow-messages,.shadow-message,.shadow-message.customer,.shadow-message.seller,.shadow-message.ai,
.trainer-layout>section,.trainer-layout>aside,.trainer-conversation,.trainer-chat,.trainer-message,
.trainer-message.assistant,.trainer-composer,.knowledge-rule,.whatsapp-state,.qr-card,.ai-emergency{
  background:#202428!important;background-image:none!important;color:#f4f7f8!important;border-color:#3b444a!important
}
.shadow-warning{background:#171b1e!important;color:#f5f7f8!important;border-color:#ed168c!important}
.shadow-contact.active{background:#101b20!important;box-shadow:inset 3px 0 0 #00b9f2!important}
.shadow-message.ai,.trainer-message.assistant{background:#102a32!important;border-color:#176078!important}
.shadow-message p,.trainer-message p,.knowledge-rule p,.shadow-empty span{color:#d8dfe2!important}
.shadow-contact small,.shadow-contact time,.trainer-message b,.knowledge-rule>span{color:#9faab0!important}
.trainer-composer textarea{background:#15191c!important;color:#fff!important;border-color:#465058!important}

dialog,.ml-notice-dialog,.notice-dialog{background:#202428!important;color:#f5f7f8!important;border-color:#414a50!important}
.ml-notice-card,.notice-card{background:#202428!important;color:#f5f7f8!important}
.ml-notice-card>header,.notice-card>header{background:radial-gradient(circle at 0 0,#3c0b3140,transparent 36%),radial-gradient(circle at 100% 100%,#06374665,transparent 42%),#07090b!important;color:#fff!important}
.ml-notice-card>#mlNoticeMessage,.notice-card .message{background:#202428!important;color:#dce2e5!important}
.ml-notice-card>footer,.notice-card>footer{background:#202428!important;border-color:#3b444a!important}
.ml-notice-card>footer button,.notice-card>footer button{background:#07090b!important;color:#fff!important;border:1px solid #00aee9!important}
.ml-notice-card>footer button.outline,.notice-card>footer button.outline{background:#272d31!important;color:#fff!important;border-color:#4a545a!important}
.operational-alert,.operational-alert.urgent,.operational-alert.critical,.operational-alert.context,
.alert-panel,.alert-list article,.alert-summary,.alert-empty{
  background:#202428!important;background-image:none!important;color:#f5f7f8!important;border-color:#4b555b!important
}
.operational-alert{border-left-color:#f4b63d!important}.operational-alert.urgent,.operational-alert.critical,.operational-alert.context{border-left-color:#ed168c!important}
.operational-alert p,.operational-alert>span,.alert-list small,.alert-summary small{color:#a9b2b7!important}
.operational-alert>div button{background:#272d31!important;color:#fff!important;border-color:#4a545a!important}
.operational-alert>div button:last-child{background:#07090b!important;border-color:#00aee9!important}
.alert-sound-toggle{background:#202428!important;color:#fff!important;border-color:#465058!important}
.conversation.alert-warning,.conversation.alert-urgent,.conversation.alert-critical,.conversation.alert-context{background:#202428!important}

/* Los estilos inyectados por cada módulo no deben reactivar fondos claros. */
.view:not(.hidden) article,.view:not(.hidden) section,.view:not(.hidden) aside{border-color:#3b444a}

/* Release 112: cierre visual de Dashboard y Recursos Humanos */
body:has(#commercial-dashboard:not(.hidden)) .workspace,
body:has(#commercial-dashboard:not(.hidden)) .content,.ml-dashboard{background:#15191c!important;color:#f4f7f8!important}
.dashboard-command,.dashboard-kpi,.dashboard-chart-card,.dashboard-insights>article,
.dashboard-alert-stack button,.dashboard-alert-stack button.urgent,.dashboard-rank>span,
.dashboard-detail-dialog,.dashboard-detail-dialog table,.dashboard-detail-dialog tbody,
.dashboard-detail-dialog tr,.dashboard-source-card>div{
  background:#202428!important;background-image:none!important;color:#f4f7f8!important;border-color:#3b444a!important
}
.dashboard-chart-card>header,.dashboard-insights article>header,.dashboard-detail-dialog td,
.dashboard-rank,.dashboard-source-card>div{border-color:#3b444a!important}
.dashboard-series button,.dashboard-insights header button,.dashboard-filters button{
  background:#15191c!important;color:#f5f7f8!important;border-color:#465058!important
}
.dashboard-series button.active{background:#07090b!important;border-color:#00b9f2!important}
.dashboard-kpi b,.dashboard-chart-card b,.dashboard-insights b,.dashboard-alert-stack b,
.dashboard-rank b,.dashboard-rank strong,.dashboard-detail-dialog b{color:#fff!important}
.dashboard-kpi small,.dashboard-kpi em,.dashboard-chart-card small,.dashboard-insights small,
.dashboard-alert-stack span,.dashboard-alert-stack small,.dashboard-rank span,.dashboard-source-card small{color:#a1abb1!important}
.dashboard-chart .grid{stroke:#363e43!important}.dashboard-chart text{fill:#aab4ba!important}.dashboard-chart circle{fill:#202428!important}

#hrContent,.hr-content,.hr-section{background:#15191c!important;color:#f4f7f8!important}
.hr-summary article,.hr-employees>article,.hr-incident-list article,.hr-payroll-runs article,
.hr-sheet>section,.hr-full-dialog form,.hr-incident-dialog form,.incident-cards article,
.hr-loan-table,.hr-loan-table article,.hr-loan-list>article,.hr-loan-dialog form,
.hr-attendance-toolbar,.hr-attendance-table,.hr-attendance-table table,.hr-attendance-table tbody,
.hr-attendance-table td,.hr-termination-capture,.hr-concept-switches label,
.hr-termination-result,.hr-termination-result table,.hr-termination-result tbody,
.hr-termination-list>article,.hr-payroll-table,.hr-payroll-table table,
.hr-payroll-detail,.hr-payroll-detail-table,.hr-payroll-detail-table table,.hr-payroll-payment form{
  background:#202428!important;background-image:none!important;color:#f4f7f8!important;border-color:#3b444a!important
}
.hr-full-dialog header,.hr-incident-dialog header,.hr-full-dialog footer,.hr-incident-dialog footer,
.hr-form-nav,.loan-head,.hr-attendance-table th,.hr-termination-result header,
.hr-termination-result footer,.hr-payroll-table thead,.hr-payroll-detail-table thead{
  background:#171b1e!important;background-image:none!important;color:#f4f7f8!important;border-color:#3b444a!important
}
.hr-payroll-capture{background:#080a0c!important;background-image:linear-gradient(110deg,#080a0c,#102934)!important;color:#fff!important}
.hr-tabs,.hr-form-nav,.hr-loan-tabs{border-color:#3b444a!important}
.hr-tabs button,.hr-form-nav button,.hr-loan-tabs button{background:#171b1e!important;color:#b7c0c5!important;border-color:#414a50!important}
.hr-tabs button.active,.hr-form-nav button.active,.hr-loan-tabs button.active{
  background:#07090b!important;color:#fff!important;border-color:#00b9f2!important;box-shadow:inset 0 -2px 0 #ed168c!important
}
.hr-modern-grid input,.hr-modern-grid select,.hr-modern-grid textarea,.hr-toolbar input,.hr-toolbar select,
.hr-payroll-capture input,.hr-payroll-capture select,.hr-payroll-table input,.hr-payroll-detail-table input,
.hr-loan-form-grid input,.hr-loan-form-grid select,.hr-loan-form-grid textarea,
.hr-attendance-toolbar input,.hr-attendance-toolbar select,.hr-attendance-table input,
.hr-termination-capture input,.hr-termination-capture select,.hr-custom-concept input,
.hr-payroll-payment input,.hr-payroll-payment select{
  background:#15191c!important;color:#fff!important;border-color:#465058!important;color-scheme:dark!important
}
.hr-modern-grid label,.hr-loan-form-grid label>span,.hr-sheet h3,.hr-full-dialog main h3,
.hr-section-heading h3,.hr-summary b,.hr-employees h3,.hr-loan-table b,.hr-loan-list b,
.hr-termination-list b,.hr-payroll-table b,.hr-payroll-detail-table b{color:#fff!important}
.hr-section-heading p,.hr-summary span,.hr-employees small,.hr-loan-table small,.hr-loan-list small,
.hr-loan-dialog header p,.hr-loan-form-grid label>small,.hr-attendance-table small,
.hr-termination-list small,.hr-payroll-runs small,.hr-help{color:#9faab0!important}
.hr-schedule-modern>div,.hr-schedule>div,.money-field i,.hr-loan-help,.hr-incident-dialog aside{
  background:#252b2f!important;color:#dbe1e4!important;border-color:#424b50!important
}
.hr-full-dialog footer button,.hr-incident-dialog footer button,.hr-loan-dialog footer button,
.hr-period-shortcuts button{background:#242a2e!important;color:#fff!important;border-color:#465058!important}
.hr-full-dialog footer button:last-child,.hr-incident-dialog footer button:last-child,
.hr-loan-dialog footer button:last-child,.hr-payroll-table footer button,.hr-payroll-capture button{
  background:#07090b!important;color:#fff!important;border:1px solid #00aee9!important
}
.hr-payroll-table th,.hr-payroll-table td,.hr-payroll-detail-table th,.hr-payroll-detail-table td,
.hr-attendance-table th,.hr-attendance-table td,.hr-termination-result th,.hr-termination-result td,
.hr-loan-table article{border-color:#3b444a!important}
.hr-attendance-table td:first-child{background:#202428!important}
.incident-icon,.incident-status,.attendance-status{filter:saturate(.85) brightness(.8)}
.empty{background:#202428!important;color:#a8b2b7!important;border-color:#3b444a!important}

@media(max-width:720px){
  #attendance-mobile,.attendance-mobile,.attendance-view,.attendance-grid{background:#15191c!important;background-image:none!important}
  .attendance-action-card,.attendance-today,.attendance-history,.attendance-admin,
  .attendance-list article,.attendance-review-list article,.attendance-dialog form{
    background:#202428!important;color:#f6f8f9!important;border-color:#3c444a!important
  }
}

/* Excepciones antiguas y controles flotantes que no viven dentro de .content. */
.account-menu button{
  min-height:36px!important;
  border:1px solid #414c54!important;
  border-radius:7px!important;
  background:#1b2024!important;
  color:#e3e8eb!important;
  box-shadow:none!important;
  font-weight:430!important;
}
.account-menu button:hover,.account-menu button:focus-visible{
  border-color:#69757e!important;background:#282f34!important;color:#fff!important;box-shadow:inset 2px 0 0 #ed168c!important;outline:none!important
}
.password-field .toggle-password{
  display:grid!important;place-items:center!important;width:32px!important;height:32px!important;border:1px solid #465159!important;border-radius:7px!important;background:#171c20!important;color:#bfc8cd!important
}
.password-field .toggle-password:hover,.password-field .toggle-password:focus-visible{border-color:#ed168c!important;color:#fff!important;outline:none!important}
dialog header>button:not(.ml-btn-primary):not(.ml-btn-secondary):not(.ml-btn-danger),
dialog .order-close,dialog .department-detail-close,dialog .ml-notice-close{
  min-width:32px!important;min-height:32px!important;border:1px solid #465159!important;border-radius:8px!important;background:#20262a!important;color:#edf1f3!important;box-shadow:none!important
}
dialog header>button:hover,dialog header>button:focus-visible{border-color:#ed168c!important;background:#2a2029!important;color:#fff!important;outline:none!important}
.content a[target="_blank"]:not(.production-file):not(.linked){
  display:inline-flex;align-items:center;min-height:34px;padding:0 11px;border:1px solid #465159;border-radius:7px;background:#1b2024;color:#dce3e6;text-decoration:none
}
.content a[target="_blank"]:not(.production-file):not(.linked):hover{border-color:#69757e;background:#282f34;color:#fff;box-shadow:inset 2px 0 0 #ed168c}
.erp-shell.cash-focus-shell{grid-template-columns:minmax(0,1fr)!important}
.erp-shell.cash-focus-shell>main{width:100%!important;min-width:0!important}
.cash-method-summary>div,.cash-method-summary .erp-empty{background:#202428!important;color:#aeb8bd!important}

/* Release 140: el encabezado móvil debe caber sin ensanchar el área de trabajo. */
@media(max-width:650px){
  .workspace>header{min-width:0;padding:0 12px!important;gap:8px}
  .workspace>header>div:first-child{min-width:0;flex:1 1 auto}
  .workspace>header>div:first-child h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:19px}
  .workspace>header>div:last-child{min-width:0;max-width:58%;margin-left:auto;gap:5px!important}
  .workspace>header .branch-context{min-width:0;margin-right:0;padding:5px 6px;gap:4px}
  .workspace>header .branch-context span{display:none}
  .workspace>header .branch-context select{min-width:0;width:126px;max-width:32vw;padding:8px 5px;font-size:10px}
  .workspace>header .icon,.workspace>header .profile{flex:0 0 34px;width:34px;height:34px}
}
:root{--chat-module-disabled:1}[data-view="conversations"],#conversations{display:none!important}
.order-dialog,
.order-dialog form{
  color:#eef3f6!important;
  background:#151a1e!important;
}
.order-dialog .employee-heading{
  border-color:#343d44!important;
  background:linear-gradient(120deg,#07090b,#07171d)!important;
}
.order-dialog .employee-heading h2,
.order-dialog .employee-heading p,
.order-dialog .form-section h3,
.order-dialog label,
.order-dialog b,
.order-dialog strong{
  color:#f4f7f9!important;
}
.order-dialog .employee-heading p,
.order-dialog small,
.order-dialog .dialog-help{
  color:#aab5bc!important;
}
.order-dialog .form-section,
.order-dialog .order-production-panel,
.order-dialog .order-history,
.order-dialog .order-assignment-actions{
  border-color:#343d44!important;
  background:#1d2328!important;
}
.order-dialog input,
.order-dialog select,
.order-dialog textarea{
  border-color:#46515a!important;
  background:#11161a!important;
  color:#f6f8fa!important;
  opacity:1!important;
}
.order-dialog input::placeholder,
.order-dialog textarea::placeholder{
  color:#7f8d96!important;
}
.order-dialog option{
  background:#11161a!important;
  color:#f6f8fa!important;
}
.order-dialog input:disabled,
.order-dialog select:disabled,
.order-dialog textarea:disabled,
.order-dialog input[readonly],
.order-dialog textarea[readonly]{
  color:#f6f8fa!important;
  -webkit-text-fill-color:#f6f8fa!important;
  background:#151b20!important;
  opacity:1!important;
}
.order-dialog select:disabled option{
  color:#f6f8fa!important;
  -webkit-text-fill-color:#f6f8fa!important;
}
.order-dialog .dialog-actions{
  border-color:#343d44!important;
  background:#151a1e!important;
}
.order-dialog button{
  color:#f7f9fa!important;
}
.order-dialog .dialog-actions button:not(.danger),
.order-dialog .order-popout{
  border:1px solid #46515a!important;
  background:#252c32!important;
}
.order-dialog .dialog-actions button[type="submit"]{
  border-color:#d51778!important;
  background:#d51778!important;
}

/* Diseño · versiones y retroalimentación */
.design-dialog,
.design-versions-dialog{
  box-sizing:border-box!important;
  width:min(640px,calc(100vw - 32px))!important;
  max-width:640px!important;
  max-height:min(760px,calc(100vh - 32px))!important;
  margin:auto!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #39434b!important;
  border-radius:18px!important;
  background:#151a1e!important;
  color:#f4f7f9!important;
  box-shadow:0 28px 80px rgba(0,0,0,.62)!important;
}
.design-dialog form{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto auto!important;
  width:100%!important;
  max-height:inherit!important;
  margin:0!important;
  padding:0!important;
  background:#151a1e!important;
}
.design-dialog .employee-heading,
.design-versions-dialog .employee-heading{
  position:relative!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:20px!important;
  margin:0!important;
  padding:22px 58px 20px 24px!important;
  border-bottom:1px solid #343d44!important;
  background:linear-gradient(120deg,#07090b,#071820)!important;
}
.design-dialog .employee-heading h2,
.design-versions-dialog .employee-heading h2{
  margin:5px 0 6px!important;
  color:#f7f9fa!important;
}
.design-dialog .employee-heading p,
.design-versions-dialog .employee-heading p{
  margin:0!important;
  color:#a8b4bb!important;
}
.design-dialog .order-close,
.design-versions-dialog .order-close{
  position:absolute!important;
  top:16px!important;
  right:16px!important;
  width:34px!important;
  height:34px!important;
  padding:0!important;
  border:1px solid #45515a!important;
  border-radius:9px!important;
  background:#20272c!important;
  color:#fff!important;
}
.design-dialog-fields{
  display:grid!important;
  gap:16px!important;
  overflow:auto!important;
  padding:22px 24px!important;
  background:#1b2126!important;
}
.design-dialog-fields label{
  display:grid!important;
  gap:8px!important;
  margin:0!important;
  color:#eef3f6!important;
  font-size:12px!important;
  font-weight:600!important;
}
.design-dialog-fields input,
.design-dialog-fields textarea{
  box-sizing:border-box!important;
  width:100%!important;
  margin:0!important;
  padding:12px 14px!important;
  border:1px solid #46525b!important;
  border-radius:10px!important;
  background:#11161a!important;
  color:#f7f9fa!important;
  -webkit-text-fill-color:#f7f9fa!important;
  opacity:1!important;
}
.design-dialog-fields textarea{
  min-height:110px!important;
  resize:vertical!important;
}
.design-dialog-fields input::placeholder,
.design-dialog-fields textarea::placeholder{
  color:#78868f!important;
  -webkit-text-fill-color:#78868f!important;
}
.design-dialog>.error,
.design-dialog form>.error{
  min-height:0!important;
  margin:0!important;
  padding:0 24px!important;
  color:#ff80b4!important;
  background:#1b2126!important;
}
.design-dialog .dialog-actions,
.design-versions-dialog .dialog-actions{
  display:flex!important;
  justify-content:flex-end!important;
  gap:10px!important;
  margin:0!important;
  padding:16px 24px 20px!important;
  border-top:1px solid #343d44!important;
  background:#151a1e!important;
}
.design-dialog .dialog-actions button,
.design-versions-dialog .dialog-actions button{
  min-width:120px!important;
  padding:11px 16px!important;
  border:1px solid #46515a!important;
  border-radius:9px!important;
  background:#252c32!important;
  color:#f7f9fa!important;
}
.design-dialog .dialog-actions button[type="submit"]{
  border-color:#d51778!important;
  background:#d51778!important;
}
@media(max-width:600px){
  .design-dialog,.design-versions-dialog{width:calc(100vw - 16px)!important;max-height:calc(100vh - 16px)!important;border-radius:14px!important}
  .design-dialog .employee-heading,.design-versions-dialog .employee-heading{padding:18px 52px 16px 18px!important}
  .design-dialog-fields{padding:18px!important}
  .design-dialog .dialog-actions,.design-versions-dialog .dialog-actions{padding:14px 18px 17px!important}
  .design-dialog .dialog-actions button{flex:1!important;min-width:0!important}
}

/* Diseño · carga de previos (pegar captura / Drive / Canva) */
#designPreviewUploadDialog.preview-dialog{
  box-sizing:border-box!important;
  width:min(700px,calc(100vw - 32px))!important;
  max-width:700px!important;
  max-height:calc(100dvh - 32px)!important;
  margin:auto!important;
  padding:0!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  border:1px solid #39434b!important;
  border-radius:18px!important;
  background:#1c2227!important;
  color:#f4f7f9!important;
}
#designPreviewUploadForm{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#1c2227!important;
}
#designPreviewUploadDialog .employee-heading{
  box-sizing:border-box!important;
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:22px 58px 20px 24px!important;
  border-bottom:1px solid #343d44!important;
  background:linear-gradient(120deg,#07090b,#071820)!important;
}
#designPreviewUploadDialog .employee-heading>div{
  min-width:0!important;
}
#designPreviewUploadDialog .employee-heading h2{
  margin:5px 0 6px!important;
  color:#fff!important;
}
#designPreviewUploadDialog .employee-heading p{
  max-width:100%!important;
  margin:0!important;
  color:#a9b5bc!important;
  overflow-wrap:anywhere!important;
}
#designPreviewUploadDialog .order-close{
  position:absolute!important;
  top:16px!important;
  right:16px!important;
  width:34px!important;
  height:34px!important;
  padding:0!important;
  border:1px solid #45515a!important;
  border-radius:9px!important;
  background:#20272c!important;
  color:#fff!important;
}
#designPreviewUploadDialog .design-paste-zone{
  box-sizing:border-box!important;
  width:auto!important;
  min-width:0!important;
  margin:22px 24px 4px!important;
  padding:22px!important;
  border-color:#59666f!important;
  background:#151b1f!important;
}
#designPreviewUploadDialog .design-paste-zone input[type="file"]{
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:12px 0 0!important;
  padding:9px!important;
  overflow:hidden!important;
  border:1px solid #46525b!important;
  border-radius:9px!important;
  background:#11161a!important;
  color:#eef3f6!important;
}
#designPreviewUploadDialog>form>img{
  box-sizing:border-box!important;
  width:calc(100% - 48px)!important;
  max-height:260px!important;
  margin:16px 24px 0!important;
  object-fit:contain!important;
}
#designPreviewUploadDialog form>label{
  box-sizing:border-box!important;
  display:grid!important;
  gap:8px!important;
  width:auto!important;
  min-width:0!important;
  margin:16px 24px 0!important;
  color:#eef3f6!important;
  font-size:12px!important;
  font-weight:600!important;
}
#designPreviewUploadDialog form>label input,
#designPreviewUploadDialog form>label textarea{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:12px 14px!important;
  border:1px solid #46525b!important;
  border-radius:10px!important;
  background:#11161a!important;
  color:#f7f9fa!important;
  -webkit-text-fill-color:#f7f9fa!important;
}
#designPreviewUploadDialog form>label textarea{
  min-height:100px!important;
  resize:vertical!important;
}
#designPreviewUploadDialog .error{
  margin:8px 24px 0!important;
  color:#ff80b4!important;
}
#designPreviewUploadDialog .dialog-actions{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  width:100%!important;
  margin:20px 0 0!important;
  padding:16px 24px 20px!important;
  border-top:1px solid #343d44!important;
  background:#151a1e!important;
}
#designPreviewUploadDialog .dialog-actions button{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:12px 14px!important;
  border:1px solid #46515a!important;
  border-radius:9px!important;
  background:#252c32!important;
  color:#fff!important;
}
#designPreviewUploadDialog .dialog-actions button[type="submit"]{
  border-color:#d51778!important;
  background:#d51778!important;
}
@media(max-width:700px){
  #designPreviewUploadDialog.preview-dialog{width:calc(100vw - 16px)!important;height:auto!important;max-height:calc(100dvh - 16px)!important;margin:auto!important;border-radius:14px!important}
  #designPreviewUploadDialog .employee-heading{padding:18px 52px 16px 18px!important}
  #designPreviewUploadDialog .design-paste-zone{margin:18px 18px 2px!important;padding:18px 12px!important}
  #designPreviewUploadDialog form>label{margin:15px 18px 0!important}
  #designPreviewUploadDialog>form>img{width:calc(100% - 36px)!important;margin:15px 18px 0!important}
  #designPreviewUploadDialog .dialog-actions{padding:14px 18px 17px!important}
}

/* Venta · buscador de clientes: misma matriz oscura y lectura ligera. */
.sale-customer-suggestions{
  padding:6px!important;
  border:1px solid #3a444c!important;
  background:#161b1f!important;
  box-shadow:0 22px 60px rgba(0,0,0,.55)!important;
  scrollbar-color:#68747d #111518;
}
.sale-customer-suggestions.open{display:grid!important;gap:3px!important}
.sale-customer-suggestions button{
  border:1px solid transparent!important;
  background:#1d2328!important;
  color:#e8edf0!important;
  font-weight:400!important;
  line-height:1.25!important;
}
.sale-customer-suggestions button:hover,
.sale-customer-suggestions button:focus-visible{
  border-color:#59656e!important;
  background:#283037!important;
}
.sale-customer-suggestions b{
  color:#f3f5f6!important;
  font-weight:400!important;
  letter-spacing:0!important;
}
.sale-customer-suggestions span,
.sale-customer-suggestions small,
.sale-customer-suggestions p{
  color:#aeb9c0!important;
  font-weight:400!important;
}
.sale-urgent-option,.sale-file-source{min-width:180px!important}
.sale-check-line{display:flex!important;align-items:center!important;gap:9px!important;min-height:42px;padding:0 12px;border:1px solid #46515a;border-radius:9px;background:#181d21;color:#eef2f4;font-weight:400}
.sale-check-line input{width:16px!important;height:16px!important;margin:0!important;accent-color:#e0167d}
.sale-file-source select{font-weight:400!important}
.sale-urgent-option:has(input:checked) .sale-check-line{border-color:#e0167d;background:rgba(224,22,125,.13);color:#ff9dcb}

/* Maquila externa · formulario completamente integrado a la matriz oscura. */
#outsourcingDialog.outsourcing-dialog{
  width:min(760px,calc(100vw - 24px))!important;
  max-height:min(820px,calc(100dvh - 24px))!important;
  padding:0!important;
  border:1px solid #3d4850!important;
  border-radius:18px!important;
  background:#151a1e!important;
  color:#f1f4f5!important;
  box-shadow:0 30px 90px rgba(0,0,0,.7)!important;
  overflow-x:hidden!important;
}
#outsourcingDialog::backdrop{background:rgba(2,4,6,.78)!important;backdrop-filter:blur(4px)}
#outsourcingDialog form{box-sizing:border-box!important;width:100%!important;min-width:0!important;margin:0!important;background:#151a1e!important;color:#f1f4f5!important;overflow-x:hidden!important}
#outsourcingDialog .employee-heading,#outsourcingDialog .form-grid,#outsourcingDialog .dialog-actions{box-sizing:border-box!important;width:100%!important;min-width:0!important}
#outsourcingDialog .employee-heading{
  margin:0!important;padding:22px 24px!important;
  border-bottom:1px solid #344047!important;
  background:linear-gradient(110deg,#080a0d,#07161b)!important;
}
#outsourcingDialog .employee-heading h2{margin:4px 0!important;color:#fff!important;font-weight:600!important}
#outsourcingDialog .employee-heading p:not(.eyebrow){color:#a8b3ba!important}
#outsourcingDialog .form-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:16px!important;padding:22px 24px 8px!important;background:#151a1e!important}
#outsourcingDialog label{display:grid!important;gap:7px!important;color:#c7d0d5!important;font-size:11px!important;font-weight:500!important}
#outsourcingDialog label.wide{grid-column:1/-1!important}
#outsourcingDialog input,#outsourcingDialog textarea,#outsourcingDialog select{
  box-sizing:border-box!important;width:100%!important;
  border:1px solid #46515a!important;border-radius:9px!important;
  background:#1c2227!important;color:#f4f6f7!important;
  box-shadow:none!important;font-weight:400!important;
}
#outsourcingDialog input::placeholder,#outsourcingDialog textarea::placeholder{color:#77848d!important;opacity:1!important}
#outsourcingDialog input:focus,#outsourcingDialog textarea:focus{border-color:#19bdec!important;outline:2px solid rgba(25,189,236,.14)!important}
#outsourcingDialog .error{margin:8px 24px 0!important;color:#ff80b4!important}
#outsourcingDialog .dialog-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:14px 0 0!important;padding:16px 24px 20px!important;border-top:1px solid #344047!important;background:#151a1e!important}
#outsourcingDialog .dialog-actions button{margin:0!important;padding:12px!important;border:1px solid #46515a!important;border-radius:9px!important;background:#252c32!important;color:#fff!important;font-weight:500!important}
#outsourcingDialog .dialog-actions button[type="submit"]{border-color:#d51778!important;background:#d51778!important}
@media(max-width:640px){#outsourcingDialog .form-grid{grid-template-columns:1fr!important;padding:18px!important}#outsourcingDialog label.wide{grid-column:auto!important}#outsourcingDialog .dialog-actions{padding:14px 18px 17px!important}}

/* Maquila externa · panel dentro de Compras. */
#outsourcingPanel.outsourcing-panel{
  border:1px solid #3b454d!important;
  background:#1d2328!important;
  color:#eef2f4!important;
}
#outsourcingPanel.outsourcing-panel>header{
  margin:0!important;padding:16px 18px!important;
  border:0!important;border-bottom:1px solid #39434b!important;
  background:linear-gradient(110deg,#101519,#07161b)!important;
  color:#eef2f4!important;
}
#outsourcingPanel.outsourcing-panel>header h3{color:#fff!important;font-weight:600!important}
#outsourcingPanel.outsourcing-panel>header small{color:#9eabb3!important}
#outsourcingPanel.outsourcing-panel>header strong{background:#129fd3!important;color:#fff!important}

/* Pie uniforme de modales: sin halos, degradados ni franjas claras. */
dialog .dialog-actions,dialog form>.dialog-actions,dialog footer.dialog-actions{
  background:#171c20!important;background-image:none!important;border-top:1px solid #3b454c!important;
  box-shadow:none!important;filter:none!important;
}
dialog .dialog-actions::before,dialog .dialog-actions::after,dialog form>.dialog-actions::before,dialog form>.dialog-actions::after{
  content:none!important;display:none!important;background:none!important;box-shadow:none!important;
}
dialog .dialog-actions button{box-shadow:none!important;font-weight:500!important}

/* Mobile hierarchy: lighter, compact and legible without flattening amounts or states. */
@media(max-width:760px){
  .shell>aside nav button,.ml-nav-group-items>button{font-weight:400!important;letter-spacing:0!important}
  .content h1,.content h2,.content h3,dialog h2,dialog h3{font-weight:600!important;letter-spacing:-.015em!important}
  .content label,dialog label,.content button,dialog button{font-weight:500!important}
  .sale-product-name,.sale-product-suggestions b,.customer-search-results b,.commercial-table td b,
  .quote-lines td b,.dossier-section b{font-weight:400!important}
  .content small,dialog small{font-weight:400!important}
}
.quote-client h2,.quote-client b,.quote-lines td b,.quote-lines td strong,.quote-conditions h3,.customer-phone-line{font-weight:400!important}
.customer-phone-line{margin:5px 0 0!important;color:#4f5b60!important;font-size:12px!important;letter-spacing:.02em!important}
#outsourcingPanel.outsourcing-panel>div{background:#1d2328!important;color:#eef2f4!important}
#outsourcingPanel.outsourcing-panel .empty{margin:0!important;padding:54px 18px!important;background:#1d2328!important;color:#bdc7cc!important;text-align:center!important}
#outsourcingPanel.outsourcing-panel article{background:#1d2328!important;color:#eef2f4!important}
#outsourcingPanel.outsourcing-panel article.ready{background:#252a2e!important}

#purchases>.heading button[onclick="openPurchaseDialog()"]{
  padding:12px 18px!important;
  border:1px solid #52606a!important;
  border-radius:10px!important;
  background:#242b31!important;
  color:#f5f7f8!important;
  box-shadow:0 8px 22px rgba(0,0,0,.24)!important;
  font-weight:500!important;
}
#purchases>.heading button[onclick="openPurchaseDialog()"]:hover{
  border-color:#75838d!important;
  background:#303840!important;
}

/* Acciones principales de RH: deben leerse claramente como botones. */
#hr.hr-view>.heading>div:last-child{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
#hr.hr-view>.heading>div:last-child>button{
  min-height:42px;
  padding:10px 16px!important;
  border:1px solid #59636a!important;
  border-radius:10px!important;
  background:#242a2e!important;
  color:#f7f9fa!important;
  box-shadow:0 5px 14px rgba(0,0,0,.28)!important;
  font-weight:750!important;
}
#hr.hr-view>.heading>div:last-child>button:hover{
  border-color:#13bce8!important;
  background:#2b3237!important;
  transform:translateY(-1px);
}
#hr.hr-view>.heading>div:last-child>button:focus-visible{
  outline:2px solid #e41886!important;
  outline-offset:2px;
}
@media(max-width:620px){
  #hr.hr-view>.heading>div:last-child{width:100%}
  #hr.hr-view>.heading>div:last-child>button{flex:1 1 145px}
}
.hero,.metrics{display:none!important}
#app aside nav [data-view="conversations"],#app aside nav [data-view="stories"],#app aside nav [data-view="brain"],#app aside nav [data-view="whatsapp-admin"]{display:none!important}
html.whatsapp-enabled #app aside nav [data-view="conversations"],html.whatsapp-enabled #app aside nav [data-view="stories"],html.whatsapp-enabled #app aside nav [data-view="brain"],html.whatsapp-enabled #app aside nav [data-view="whatsapp-admin"]{display:block!important}
html.whatsapp-enabled #conversations:not(.hidden){display:block!important}
/* Release 179: menú móvil compacto e indicadores unidos a cada opción. */
@media(max-width:760px){
  body #app.shell>aside{width:min(72vw,218px)!important;padding:13px 9px 12px!important}
  body #app.shell>aside:before{left:10px!important;right:10px!important;top:64px!important}
  body #app.shell>aside .brand{height:39px!important;margin:0 4px 16px!important}
  body #app.shell>aside .brand img{width:108px!important;height:38px!important}
  body #app.shell>aside nav{height:calc(100dvh - 116px)!important;padding:0 2px 12px 0!important}
  body #app.shell>aside nav .ml-nav-group-toggle{min-height:32px!important;padding:6px 8px!important;font-size:9px!important}
  body #app.shell>aside nav .ml-nav-group-items{gap:1px!important}
  body #app.shell>aside nav .ml-nav-group-items>button,
  body #app.shell>aside nav>button{min-height:34px!important;padding:7px 9px!important;font-size:11px!important;line-height:1.2!important}
  body #app.shell>aside nav .ml-nav-group-toggle>span>i{position:static!important;width:15px!important;min-width:15px!important;height:auto!important;margin:0!important;padding:0!important;background:transparent!important;color:var(--ml-cyan)!important;border-radius:0!important;font-size:12px!important;line-height:1!important;text-align:center!important;transform:none!important}
  body #app.shell>aside nav .ml-nav-group-items>button{position:relative!important;padding-right:35px!important}
  body #app.shell>aside nav .ml-nav-group-items>button>i,
  body #app.shell>aside nav .ml-nav-group-items>button>.purchase-nav-badge,
  body #app.shell>aside nav .ml-nav-group-items>button>.critical-alert-badge{position:absolute!important;top:50%!important;right:8px!important;margin:0!important;transform:translateY(-50%)!important}
}
/* Tanda 184: jerarquía fina, cortes y avisos compactos. */
#app>aside nav button{font-size:12px!important;font-weight:430!important;line-height:1.15!important}
#app>aside nav .nav-group-toggle{font-weight:560!important}
.erp-module-list button,.erp-tabs button,.admin-shortcuts button{font-weight:430!important}
.erp-module-list button small{font-weight:520!important;letter-spacing:.04em!important}
.admin-control-top h2,.admin-section h3{font-weight:560!important}
.admin-kpis article b,.admin-kpis article strong{font-weight:580!important}
.admin-shortcuts button{font-size:13px!important;line-height:1.25!important}
.critical-service-health{display:none!important}
.receipt-paid-stamp img{display:block!important;width:82px!important;max-height:34px!important;object-fit:contain!important;margin:0 auto 3px!important;filter:sepia(1) saturate(12) hue-rotate(315deg) brightness(.82)!important;mix-blend-mode:multiply}
.cash-bbva-reminder{padding:11px 13px!important;border:1px solid #d99d2b66!important;border-radius:12px!important;background:#d99d2b12!important;color:#eef1f2!important}
.cash-bbva-reminder label{display:flex!important;align-items:flex-start!important;gap:10px!important;margin:0!important}.cash-bbva-reminder input{width:auto!important;margin-top:3px!important;accent-color:#e2a72d}.cash-bbva-reminder b,.cash-bbva-reminder small{display:block!important}.cash-bbva-reminder small{margin-top:3px;color:#b9c1c5!important;font-weight:400!important}
.cash-cut-history{margin-top:16px;border:1px solid #3b444a;border-radius:14px;overflow:hidden;background:#1f2428}.cash-cut-history>header{padding:15px 18px;border-bottom:1px solid #3b444a}.cash-cut-history>header b,.cash-cut-history>header small{display:block}.cash-cut-history>header b{font-weight:560}.cash-cut-history>header small{margin-top:3px;color:#89969c}.cash-cut-card{border-bottom:1px solid #343d42}.cash-cut-card:last-child{border-bottom:0}.cash-cut-card>summary{display:grid;grid-template-columns:minmax(150px,1fr) 1fr 1fr auto;align-items:center;gap:14px;padding:14px 18px;cursor:pointer;list-style:none}.cash-cut-card>summary::-webkit-details-marker{display:none}.cash-cut-card>summary div small,.cash-cut-card>summary div b{display:block}.cash-cut-card>summary div b{margin-top:3px;font-weight:560}.cash-cut-card>summary span{color:#aab4b9;font-size:12px}.cash-cut-card>summary em{padding:5px 9px;border-radius:99px;background:#343b40;color:#dce2e5;font-size:11px;font-style:normal}.cash-cut-card>summary em.balanced{background:#174d3a;color:#b9ead7}.cash-cut-detail{padding:0 18px 18px}.cash-cut-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.cash-cut-kpis article{padding:11px;border:1px solid #3b444a;border-radius:10px;background:#252b2f}.cash-cut-kpis span,.cash-cut-kpis b{display:block}.cash-cut-kpis span{color:#8f9ba1;font-size:10px}.cash-cut-kpis b{margin-top:4px;font-weight:560}.cash-cut-actions{display:flex;justify-content:flex-end;margin:12px 0}
@media(max-width:760px){.ml-notice-dialog{width:min(350px,calc(100vw - 24px))!important}.ml-notice-card>header{grid-template-columns:34px 1fr 28px!important;gap:9px!important;padding:14px!important}.ml-notice-card>header>span{width:32px!important;height:32px!important;border-radius:10px!important;font-size:16px!important}.ml-notice-card header h2{font-size:15px!important;font-weight:560!important}.ml-notice-card header p{font-size:8px!important}.ml-notice-card>#mlNoticeMessage{padding:14px!important;font-size:12px!important;line-height:1.4!important}.ml-notice-card>footer{padding:0 14px 14px!important;gap:7px!important}.ml-notice-card>footer button{min-width:0!important;padding:9px 11px!important;font-size:12px!important}.cash-shift-dialog{width:calc(100vw - 18px)!important;max-height:calc(100dvh - 18px)!important;margin:auto!important}.cash-shift-dialog form{max-height:calc(100dvh - 20px)!important;overflow:auto!important}.cash-shift-dialog .employee-heading{padding:16px 48px 13px 15px!important}.cash-shift-dialog .employee-heading h2{font-size:18px!important}.cash-shift-dialog .form-grid{padding:13px 15px!important;gap:10px!important}.cash-shift-dialog .dialog-actions{position:sticky;bottom:0;padding:10px 15px!important;background:#202428!important;border-top:1px solid #3b444a}.cash-close-methods{grid-template-columns:1fr 1fr!important}.cash-cut-card>summary{grid-template-columns:1fr auto;gap:7px;padding:12px}.cash-cut-card>summary span{grid-column:1}.cash-cut-card>summary em{grid-column:2;grid-row:1/3}.cash-cut-detail{padding:0 12px 12px}.cash-cut-kpis{grid-template-columns:1fr 1fr}.cash-cut-actions button{width:100%}}

/* Un solo lenguaje para la navegación: acento magenta, sin estados verdes. */
#app>aside nav button.active,#app>aside nav .ml-nav-group-items>button.active,.ml-mobile-quick>button.active{background:linear-gradient(90deg,rgba(237,22,140,.10),rgba(9,26,35,.96))!important;color:#fff!important;border-color:rgba(237,22,140,.18)!important;box-shadow:inset 3px 0 0 #ed168c!important}
#app>aside nav .ml-nav-group-items>button.active:before{display:none!important}
.ml-mobile-quick>button.active:after{background:#ed168c!important}
#app>aside nav button:hover,#app>aside nav .ml-nav-group-toggle:hover,#app>aside nav .ml-nav-group-items>button:hover{background:linear-gradient(90deg,rgba(237,22,140,.075),rgba(15,23,29,.94))!important;color:#fff!important;border-color:rgba(237,22,140,.12)!important;box-shadow:inset 2px 0 0 rgba(237,22,140,.72)!important}
#app>aside nav button.active:hover,#app>aside nav .ml-nav-group-items>button.active:hover{background:linear-gradient(90deg,rgba(237,22,140,.14),rgba(9,26,35,.98))!important;box-shadow:inset 3px 0 0 #ed168c!important}
.cash-cut-history,.cash-cut-history>header,.cash-cut-history>div,.cash-cut-card,.cash-cut-card>summary,.cash-cut-detail{background:#1f2428!important;background-image:none!important;color:#eef2f4!important}
.cash-cut-history>header{border-bottom:1px solid #3b444a!important;box-shadow:none!important}.cash-cut-history>header b{color:#f3f5f6!important}.cash-cut-history>header small{color:#9ba6ac!important}
#cashWorkspace .erp-table-wrap{scrollbar-color:#59636a #1a1f22!important}#cashWorkspace .erp-table-wrap::-webkit-scrollbar{height:8px!important;background:#1a1f22!important}#cashWorkspace .erp-table-wrap::-webkit-scrollbar-thumb{border-radius:8px!important;background:#59636a!important}

/* Centro administrativo y Caja: menor densidad tipográfica. */
.erp-module-list button{font-size:11px!important;font-weight:400!important;line-height:1.25!important;letter-spacing:0!important}
.erp-module-list button span{font-size:12px!important;font-weight:400!important}
.erp-module-list button small{padding:2px 5px!important;font-size:7px!important;font-weight:500!important;letter-spacing:.03em!important;opacity:.72!important}
.erp-tabs button{font-size:10px!important;font-weight:450!important;letter-spacing:0!important}
.cash-shift-banner b,.cash-actions button span,.cash-method-summary header b,.cash-user-audit header b{font-weight:520!important}
.cash-actions button{font-size:13px!important;line-height:1.25!important}.cash-actions button b{font-weight:500!important}
.cash-shift-banner>div>div>b{font-size:15px!important}.cash-shift-banner small{font-size:11px!important;font-weight:400!important}
.cash-shift-banner>button{font-weight:500!important;font-size:12px!important}

/* Ficha Agregar producto: composición compacta y consistente. */
#saleProductDialog{box-sizing:border-box!important;width:min(720px,calc(100vw - 28px))!important;max-height:calc(100dvh - 28px)!important;padding:18px 20px 0!important;overflow:auto!important;background:#202428!important;color:#eef2f4!important}
#saleProductDialog .sale-modal-heading{margin:-18px -20px 16px!important;padding:18px 20px!important}
#saleProductDialog label{color:#b7c0c5!important;font-size:10px!important;font-weight:480!important;letter-spacing:0!important}
#saleProductDialog .sale-product-search-label>small{color:#8f9ba1!important;font-weight:400!important}
#saleProductDialog #saleProductSearch{height:42px!important;background:#151a1e!important;color:#f5f7f8!important;border-color:#56616a!important;font-weight:400!important}
#saleProductDialog .sale-product-suggestions{max-height:272px!important;border:1px solid #4b555c!important;border-radius:10px!important;background:#111518!important;box-shadow:0 18px 45px #0008!important;scrollbar-color:#5f6970 #161b1f!important}
#saleProductDialog .sale-product-suggestions button{min-height:48px!important;padding:8px 12px!important;border:0!important;border-bottom:1px solid #30383d!important;border-radius:0!important;background:#0b0e10!important;color:#e7ecef!important;box-shadow:none!important;font-weight:400!important}
#saleProductDialog .sale-product-suggestions button:hover,#saleProductDialog .sale-product-suggestions button:focus-visible{background:linear-gradient(90deg,rgba(237,22,140,.10),#12191e)!important;box-shadow:inset 3px 0 0 #ed168c!important}
#saleProductDialog .sale-product-suggestions b{color:#f0f3f5!important;font-size:11px!important;font-weight:430!important;line-height:1.25!important;text-transform:none!important}
#saleProductDialog .sale-product-suggestions small{color:#8f9ba1!important;font-size:8px!important;font-weight:400!important}
#saleProductDialog .sale-product-suggestions strong{min-width:78px!important;color:#75dff4!important;font-size:12px!important;font-weight:540!important;text-align:right!important;font-variant-numeric:tabular-nums!important}
#saleProductDialog .sale-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:12px 0!important}
#saleProductDialog .sale-product-grid input,#saleProductDialog textarea{min-height:40px!important;background:#171c20!important;color:#f3f6f7!important;border-color:#465159!important;font-weight:400!important}
#saleProductDialog .sale-check,#saleProductDialog .sale-copy-comments{font-weight:400!important;color:#c1c9cd!important}
#saleProductDialog .sale-modal-summary{display:grid!important;grid-template-columns:repeat(3,minmax(86px,auto))!important;justify-content:end!important;align-items:end!important;gap:20px!important;margin:14px 0!important;padding:12px 14px!important;border:1px solid #3d474e!important;border-radius:10px!important;background:#191e22!important}
#saleProductDialog .sale-modal-summary span{color:#929da3!important;font-size:9px!important;font-weight:400!important;text-align:left!important}
#saleProductDialog .sale-modal-summary b,#saleProductDialog .sale-modal-summary strong{margin-top:4px!important;color:#f3f6f7!important;font-size:16px!important;font-weight:540!important;text-align:left!important}
#saleProductDialog #saleItemTotal{color:#75dff4!important;font-size:19px!important;font-weight:560!important}
#saleProductDialog .dialog-actions{position:sticky!important;z-index:8!important;bottom:0!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:16px -20px 0!important;padding:14px 20px calc(14px + env(safe-area-inset-bottom))!important;border-top:1px solid #3a444b!important;background:#202428!important;background-image:none!important;box-shadow:0 -10px 24px #111518b8!important}
#saleProductDialog .dialog-actions::before,#saleProductDialog .dialog-actions::after{display:none!important}
#saleProductDialog .dialog-actions button{min-height:42px!important;margin:0!important;border:1px solid #4b565e!important;border-radius:9px!important;background:#282f34!important;color:#edf1f3!important;font-size:13px!important;font-weight:480!important;box-shadow:none!important}
#saleProductDialog .dialog-actions button[type=submit]{border-color:#d51778!important;background:#d51778!important;color:#fff!important}
@media(max-width:650px){#saleProductDialog{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;padding:14px 14px 0!important;border-radius:0!important}#saleProductDialog .sale-modal-heading{margin:-14px -14px 12px!important;padding:15px 52px 14px 15px!important}#saleProductDialog .sale-product-grid{grid-template-columns:1fr 1fr!important;gap:8px!important}#saleProductDialog .sale-product-suggestions{max-height:238px!important}#saleProductDialog .sale-modal-summary{grid-template-columns:repeat(3,1fr)!important;justify-content:stretch!important;gap:8px!important}#saleProductDialog .dialog-actions{margin:14px -14px 0!important;padding:11px 14px calc(11px + env(safe-area-inset-bottom))!important}#saleProductDialog .dialog-actions button{font-size:12px!important}}

/* Jerarquía de acciones: magenta avanza; gris acompaña. */
.sale-add,.sale-pay,#commercial .sale-products-card .sale-add,.purchases-view>.heading>button:not(.outline),button[onclick^="openPurchaseDialog"],button[onclick*="openPurchaseDialog("]{border:1px solid #ed168c!important;background:#d51778!important;background-image:none!important;color:#fff!important;box-shadow:0 7px 18px rgba(213,23,120,.24)!important;font-weight:520!important}
dialog form .dialog-actions button[type="submit"],dialog form>footer button[type="submit"],dialog form .employee-actions button[type="submit"],#completeSaleButton,#cashShiftSubmit,#bulkPriceSave:not(:disabled){border:1px solid #ed168c!important;background:#d51778!important;background-image:none!important;color:#fff!important;box-shadow:0 7px 18px rgba(213,23,120,.22)!important;font-weight:520!important}
.sale-quote,dialog .dialog-actions button[type="button"]:not(.danger):not(.order-close),dialog form>footer button[type="button"]:not(.danger):not(.order-close){border:1px solid #4b555d!important;background:#282e33!important;background-image:none!important;color:#edf1f3!important;box-shadow:none!important;font-weight:450!important}
.sale-add:hover,.sale-pay:hover,dialog form .dialog-actions button[type="submit"]:hover,dialog form>footer button[type="submit"]:hover{background:#ed168c!important;border-color:#ff4eae!important;box-shadow:0 8px 22px rgba(237,22,140,.3)!important}
button:disabled{box-shadow:none!important}

/* Prioridad alineada con los demás campos de la venta. */
.sale-fields>.sale-urgent-option{box-sizing:border-box!important;min-width:0!important;align-self:start!important;gap:6px!important}
.sale-fields>label{align-self:start!important;align-content:start!important;height:auto!important}
.sale-fields>.sale-urgent-option>span:first-child{height:12px!important;color:#b7c0c5!important;font-size:9px!important;font-weight:500!important;line-height:12px!important;text-transform:uppercase!important}
.sale-fields>.sale-urgent-option .sale-urgent-toggle{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;width:100%!important;height:42px!important;min-height:42px!important;padding:0 13px!important;border:1px solid #4b565e!important;border-radius:8px!important;background:#272d32!important;color:#e8edef!important;box-shadow:none!important;font-family:inherit!important;font-size:10px!important;font-weight:500!important;line-height:1!important;text-transform:uppercase!important;white-space:nowrap!important;cursor:pointer!important}
.sale-fields>.sale-urgent-option .sale-urgent-toggle i{display:block!important;width:8px!important;height:8px!important;border:1px solid #7e8990!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important}
.sale-fields>.sale-urgent-option .sale-urgent-toggle:hover{border-color:#69757e!important;background:#31383d!important}
.sale-fields>.sale-urgent-option .sale-urgent-toggle.active{border-color:#ed168c!important;background:#d51778!important;color:#fff!important;box-shadow:0 6px 16px rgba(213,23,120,.22)!important}
.sale-fields>.sale-urgent-option .sale-urgent-toggle.active i{border-color:#fff!important;background:#fff!important;box-shadow:0 0 0 3px rgba(255,255,255,.18)!important}
@media(min-width:1051px){.sale-fields:has(.sale-urgent-option){grid-template-columns:minmax(270px,1.5fr) minmax(170px,.8fr) minmax(190px,.9fr) minmax(180px,.85fr) minmax(175px,.8fr)!important}}

/* Acciones compactas del cliente seleccionado */
.sale-selected-customer{grid-template-columns:minmax(120px,1fr) auto auto!important;align-items:center!important}
.sale-selected-customer>div:first-child{grid-column:1!important;grid-row:1!important}
.sale-selected-customer>.outline:not(.dossier-button),.sale-selected-customer>.dossier-button{grid-row:1!important;width:auto!important;min-width:138px!important;margin:0!important;white-space:nowrap!important}
.sale-selected-customer>.outline:not(.dossier-button){grid-column:2!important}
.sale-selected-customer>.dossier-button{grid-column:3!important}
.sale-selected-customer>.sale-customer-history{grid-column:1/-1!important;grid-row:2!important}
.sale-fields>.sale-selected-customer{grid-column:1/-1!important;width:100%!important;box-sizing:border-box!important;margin:0!important;padding:12px 14px!important}
@media(max-width:650px){
  .sale-selected-customer{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  .sale-selected-customer>div:first-child{grid-column:1/-1!important}
  .sale-selected-customer>.outline:not(.dossier-button),.sale-selected-customer>.dossier-button{grid-row:2!important;width:100%!important;min-width:0!important}
  .sale-selected-customer>.outline:not(.dossier-button){grid-column:1!important}
  .sale-selected-customer>.dossier-button{grid-column:2!important}
  .sale-selected-customer>.sale-customer-history{grid-row:3!important}
}

/* Sistema semántico global de botones. */
button.ml-btn-primary{border:1px solid #ed168c!important;background:#d51778!important;background-image:none!important;color:#fff!important;box-shadow:0 6px 16px rgba(213,23,120,.22)!important;font-weight:520!important}
button.ml-btn-primary:hover,button.ml-btn-primary:focus-visible{border-color:#ff58b3!important;background:#ed168c!important;color:#fff!important;box-shadow:0 8px 21px rgba(237,22,140,.3)!important;outline:none!important}
button.ml-btn-secondary{border:1px solid #4b565e!important;background:#272d32!important;background-image:none!important;color:#e8edef!important;box-shadow:none!important;font-weight:450!important}
button.ml-btn-secondary:hover,button.ml-btn-secondary:focus-visible{border-color:#69757e!important;background:#333a40!important;color:#fff!important;box-shadow:inset 2px 0 0 rgba(237,22,140,.7)!important;outline:none!important}
button.ml-btn-danger{border:1px solid #d9565c!important;background:#8f2f35!important;background-image:none!important;color:#fff!important;box-shadow:0 6px 15px rgba(143,47,53,.22)!important;font-weight:520!important}
button.ml-btn-danger:hover,button.ml-btn-danger:focus-visible{border-color:#ff777c!important;background:#aa3940!important;color:#fff!important;outline:none!important}
button.ml-btn-primary:disabled,button.ml-btn-secondary:disabled,button.ml-btn-danger:disabled{border-color:#424b51!important;background:#24292d!important;color:#737e84!important;box-shadow:none!important;opacity:.7!important;cursor:not-allowed!important}
#mlNoticeDialog #mlNoticeAccept.ml-btn-primary{border-color:#ed168c!important;background:#d51778!important;color:#fff!important}
#mlNoticeDialog[data-kind="danger"] #mlNoticeAccept{border-color:#d9565c!important;background:#8f2f35!important;color:#fff!important}
#mlNoticeDialog #mlNoticeCancel{border-color:#4b565e!important;background:#272d32!important;color:#e8edef!important}

/* Ninguna acción dentro del contenido puede desaparecer visualmente contra el fondo. */
.content button:not(.order-close):not(.ml-notice-close):not(.ml-btn-primary):not(.ml-btn-secondary):not(.ml-btn-danger){
  border-width:1px!important;
  border-style:solid!important;
  border-color:#3f4a52!important;
}

/* Pestañas y filtros deben percibirse como controles, sin competir con la acción principal. */
:is(.commercial-tabs,.commercial-process-flow,.erp-tabs,.erp-module-list,.hr-tabs,.hr-loan-tabs,.fiscal-tabs,.access-tabs,.approval-toolbar,.order-workspace-switch,.department-stage-tabs,.transfer-department-tabs,.production-filters,.preview-workspace-filters,.dashboard-filters) button{
  min-height:34px!important;
  border:1px solid #3f4a52!important;
  border-radius:8px!important;
  background:#171c20!important;
  background-image:none!important;
  color:#cbd2d6!important;
  box-shadow:0 2px 7px rgba(0,0,0,.18)!important;
  font-weight:450!important;
}
:is(.commercial-tabs,.commercial-process-flow,.erp-tabs,.erp-module-list,.hr-tabs,.hr-loan-tabs,.fiscal-tabs,.access-tabs,.approval-toolbar,.order-workspace-switch,.department-stage-tabs,.transfer-department-tabs,.production-filters,.preview-workspace-filters,.dashboard-filters) button:hover,
:is(.commercial-tabs,.commercial-process-flow,.erp-tabs,.erp-module-list,.hr-tabs,.hr-loan-tabs,.fiscal-tabs,.access-tabs,.approval-toolbar,.order-workspace-switch,.department-stage-tabs,.transfer-department-tabs,.production-filters,.preview-workspace-filters,.dashboard-filters) button:focus-visible{
  border-color:#69757e!important;
  background:#242b30!important;
  color:#fff!important;
  box-shadow:inset 2px 0 0 #ed168c,0 3px 9px rgba(0,0,0,.2)!important;
  outline:none!important;
}
:is(.commercial-tabs,.commercial-process-flow,.erp-tabs,.erp-module-list,.hr-tabs,.hr-loan-tabs,.fiscal-tabs,.access-tabs,.approval-toolbar,.order-workspace-switch,.department-stage-tabs,.transfer-department-tabs,.production-filters,.preview-workspace-filters,.dashboard-filters) button.active,
:is(.commercial-tabs,.commercial-process-flow,.erp-tabs,.erp-module-list,.hr-tabs,.hr-loan-tabs,.fiscal-tabs,.access-tabs,.approval-toolbar,.order-workspace-switch,.department-stage-tabs,.transfer-department-tabs,.production-filters,.preview-workspace-filters,.dashboard-filters) button[aria-selected="true"]{
  border-color:#ed168c!important;
  background:#261321!important;
  color:#fff!important;
  box-shadow:inset 3px 0 0 #ed168c,0 4px 12px rgba(237,22,140,.13)!important;
}
@media(max-width:650px){
  :is(.commercial-tabs,.commercial-process-flow,.erp-tabs,.erp-module-list,.hr-tabs,.hr-loan-tabs,.fiscal-tabs,.access-tabs,.approval-toolbar,.order-workspace-switch,.department-stage-tabs,.transfer-department-tabs,.production-filters,.preview-workspace-filters,.dashboard-filters) button{
    min-height:32px!important;padding:7px 11px!important;font-size:10px!important;white-space:nowrap!important
  }
}

/* Garantía final: estas reglas cierran la cascada y no pueden ser anuladas por módulos antiguos. */
body #app .content button.ml-btn-primary,body #app .workspace button.ml-btn-primary,body dialog button.ml-btn-primary{min-height:38px!important;border:1px solid #ed168c!important;border-radius:9px!important;background:#d51778!important;background-image:none!important;color:#fff!important;box-shadow:0 6px 16px rgba(213,23,120,.22)!important;font-weight:520!important}
body #app .content button.ml-btn-primary:hover,body #app .content button.ml-btn-primary:focus-visible,body #app .workspace button.ml-btn-primary:hover,body #app .workspace button.ml-btn-primary:focus-visible,body dialog button.ml-btn-primary:hover,body dialog button.ml-btn-primary:focus-visible{border-color:#ff58b3!important;background:#ed168c!important;color:#fff!important;box-shadow:0 8px 21px rgba(237,22,140,.3)!important;outline:none!important}
body #app .content button.ml-btn-secondary,body #app .workspace button.ml-btn-secondary,body dialog button.ml-btn-secondary{min-height:38px!important;border:1px solid #56616a!important;border-radius:9px!important;background:#282f34!important;background-image:none!important;color:#edf1f3!important;box-shadow:0 3px 10px rgba(0,0,0,.2)!important;font-weight:460!important}
body #app .content button.ml-btn-secondary:hover,body #app .content button.ml-btn-secondary:focus-visible,body #app .workspace button.ml-btn-secondary:hover,body #app .workspace button.ml-btn-secondary:focus-visible,body dialog button.ml-btn-secondary:hover,body dialog button.ml-btn-secondary:focus-visible{border-color:#737f88!important;background:#343c42!important;color:#fff!important;box-shadow:inset 3px 0 0 #ed168c,0 4px 12px rgba(0,0,0,.24)!important;outline:none!important}
body #app .content button.ml-btn-danger,body #app .workspace button.ml-btn-danger,body dialog button.ml-btn-danger{min-height:38px!important;border:1px solid #e0686e!important;border-radius:9px!important;background:#913238!important;background-image:none!important;color:#fff!important;box-shadow:0 5px 14px rgba(120,30,36,.25)!important;font-weight:520!important}
body #app :is(.commercial-tabs,.commercial-process-flow,.erp-tabs,.erp-module-list,.hr-tabs,.hr-loan-tabs,.fiscal-tabs,.access-tabs,.approval-toolbar,.order-workspace-switch,.department-stage-tabs,.transfer-department-tabs,.production-filters,.preview-workspace-filters,.dashboard-filters,.dashboard-series) button{border:1px solid #4d5860!important;background:#20262b!important;color:#dce2e5!important;box-shadow:0 2px 7px rgba(0,0,0,.2)!important;font-weight:450!important}
body #app :is(.commercial-tabs,.commercial-process-flow,.erp-tabs,.erp-module-list,.hr-tabs,.hr-loan-tabs,.fiscal-tabs,.access-tabs,.approval-toolbar,.order-workspace-switch,.department-stage-tabs,.transfer-department-tabs,.production-filters,.preview-workspace-filters,.dashboard-filters,.dashboard-series) button:hover{border-color:#737f88!important;background:#30383e!important;box-shadow:inset 2px 0 0 rgba(237,22,140,.78)!important}
body #app :is(.commercial-tabs,.commercial-process-flow,.erp-tabs,.erp-module-list,.hr-tabs,.hr-loan-tabs,.fiscal-tabs,.access-tabs,.approval-toolbar,.order-workspace-switch,.department-stage-tabs,.transfer-department-tabs,.production-filters,.preview-workspace-filters,.dashboard-filters,.dashboard-series) button.active,body #app :is(.commercial-tabs,.commercial-process-flow,.erp-tabs,.erp-module-list,.hr-tabs,.hr-loan-tabs,.fiscal-tabs,.access-tabs,.approval-toolbar,.order-workspace-switch,.department-stage-tabs,.transfer-department-tabs,.production-filters,.preview-workspace-filters,.dashboard-filters,.dashboard-series) button[aria-selected=true]{border-color:#ed168c!important;background:#2a1624!important;color:#fff!important;box-shadow:inset 3px 0 0 #ed168c,0 4px 12px rgba(237,22,140,.14)!important}
body #app #attendanceCheckinButton,body #app .attendance-main-button,body #app .sale-pay,body #app .heading button[onclick*="openOrder"],body #app .cash-actions button:last-child{border-color:#ed168c!important;background:#d51778!important;color:#fff!important}
body #app .sale-quote{border-color:#56616a!important;background:#282f34!important;color:#edf1f3!important}
@media(max-width:650px){body #app .content button.ml-btn-primary,body #app .content button.ml-btn-secondary,body #app .content button.ml-btn-danger,body #app .workspace button.ml-btn-primary,body #app .workspace button.ml-btn-secondary,body #app .workspace button.ml-btn-danger{min-height:36px!important;padding:8px 12px!important;font-size:11px!important}}

/* Cobranza: pie oscuro continuo, sin restos de la matriz clara. */
#receivablePaymentDialog .dialog-actions{position:sticky!important;bottom:0!important;z-index:8!important;margin:16px -20px -20px!important;padding:14px 20px 20px!important;border-top:1px solid #3b454c!important;background:#202428!important;background-image:none!important;box-shadow:none!important;filter:none!important}
#receivablePaymentDialog .dialog-actions::before,#receivablePaymentDialog .dialog-actions::after{content:none!important;display:none!important}
#receivablePaymentDialog .dialog-actions button{margin:0!important;border-radius:9px!important}

/* El previo pertenece a Diseño; la entrega final sólo recibe archivos productivos. */
.production-upload-grid label:has(#productionFilePreview),.production-upload-grid label:has(#productionFileReference),#productionPastePreview{display:none!important}
.order-workflow-path{display:grid;grid-template-columns:repeat(5,1fr);grid-column:1/-1;overflow:hidden;border:1px solid #39444b;border-radius:10px;background:#151a1e}
.order-workflow-path span{padding:9px 7px;border-right:1px solid #39444b;color:#8f9ba2;font-size:9px;text-align:center}.order-workflow-path span:last-child{border-right:0}.order-workflow-path span.active{color:#fff;box-shadow:inset 0 -2px #ed168c}
.order-request-files{display:grid;grid-template-columns:minmax(210px,1fr) minmax(210px,1fr) auto;align-items:end;gap:10px;grid-column:1/-1;padding:13px;border:1px solid #3a454c;border-radius:11px;background:#1b2125}.order-request-files>div:first-child b,.order-request-files>div:first-child small{display:block}.order-request-files small{color:#909ca3;font-weight:400}.order-request-files input{box-sizing:border-box;width:100%}.order-request-files button{margin:0!important}.order-request-files #orderReferenceList{display:flex;flex-wrap:wrap;gap:6px;grid-column:1/-1}.order-request-files #orderReferenceList span{padding:6px 8px;border-radius:7px;background:#252c31;color:#dfe4e6;font-size:10px}
@media(max-width:700px){.order-workflow-path{grid-template-columns:1fr}.order-workflow-path span{border-right:0;border-bottom:1px solid #39444b;text-align:left}.order-request-files{grid-template-columns:1fr}.order-request-files #orderReferenceList{grid-column:auto}}

/* Fichas de Diseño: cliente primero, lectura ligera y asignación inequívoca. */
.design-job>header.design-card-refined{align-items:flex-start;padding:17px 18px 15px!important}
.design-card-identity{min-width:0;flex:1}
.design-customer-name{margin:0!important;color:#fff!important;font-size:16px!important;font-weight:560!important;line-height:1.25!important;letter-spacing:.005em}
.design-order-number{display:block;margin-top:4px;color:#8f9aa0;font-size:10px;font-weight:400}
.design-job-description{margin:13px 0 0!important;color:#d7dde0!important;font-size:12px!important;font-weight:400!important;line-height:1.5!important}
.design-card-assignment{display:grid;justify-items:end;gap:4px;min-width:116px;text-align:right}
.design-card-assignment .design-stage{margin-bottom:8px;font-weight:560!important}
.design-card-assignment>span:not(.design-stage){color:#7f8a90;font-size:9px;font-weight:400;text-transform:uppercase;letter-spacing:.08em}
.design-card-assignment strong{color:#e7edf0;font-size:12px;font-weight:520}
.design-brief>span{display:block;margin-bottom:5px;color:#9ca6ab;font-size:9px;font-weight:500;text-transform:uppercase;letter-spacing:.08em}
.design-brief p{font-weight:400!important}
.design-job .production-meta,.design-job .production-meta span{font-weight:400!important}
.design-job>footer button{font-weight:520!important}
@media(max-width:560px){.design-job>header.design-card-refined{gap:14px}.design-card-assignment{justify-items:start;min-width:0;text-align:left}.design-card-assignment .design-stage{margin-bottom:3px}.design-customer-name{font-size:15px!important}.design-job-description{font-size:11px!important}}

/* La descripción nunca compite horizontalmente con el estado o el diseñador. */
.design-job>header.design-card-refined{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:13px!important;height:auto!important;min-height:0!important;overflow:visible!important}
.design-card-identity{grid-column:1/-1!important;width:100%!important;min-width:0!important}
.design-job-description{display:block!important;width:100%!important;height:auto!important;min-height:0!important;overflow-wrap:anywhere!important;white-space:pre-line!important}
.design-card-assignment{grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;justify-items:start!important;width:100%!important;min-width:0!important;text-align:left!important}
.design-card-assignment .design-stage{grid-row:1/3;max-width:100%!important;margin:0!important;white-space:normal!important;line-height:1.35!important}
.design-card-assignment>span:not(.design-stage),.design-card-assignment>strong{grid-column:2;justify-self:end}
.design-brief{position:relative!important;clear:both!important;margin-top:0!important}
@media(max-width:560px){.design-card-assignment{grid-template-columns:1fr!important;gap:5px!important}.design-card-assignment .design-stage,.design-card-assignment>span:not(.design-stage),.design-card-assignment>strong{grid-column:1!important;grid-row:auto!important;justify-self:start!important}}

/* Alta y edición de cliente: pie oscuro continuo, sin resplandor de la matriz anterior. */
#customerDialog form{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;box-sizing:border-box!important}
#customerDialog .employee-heading,#customerDialog .customer-form-section,#customerDialog .dialog-actions,#customerDialog .error{width:auto!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}
#customerDialog .dialog-actions{position:sticky!important;bottom:0!important;z-index:8!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:0!important;padding:15px 20px 20px!important;border-top:1px solid #3b454c!important;background:#202428!important;background-image:none!important;box-shadow:none!important;filter:none!important}
#customerDialog .dialog-actions::before,#customerDialog .dialog-actions::after{content:none!important;display:none!important}
#customerDialog .dialog-actions button{width:100%!important;min-height:44px!important;margin:0!important;border-radius:9px!important;background-image:none!important;box-shadow:none!important;font-weight:500!important}
#customerDialog .dialog-actions button:first-child{border:1px solid #56616a!important;background:#282f34!important;color:#edf1f3!important}
#customerDialog .dialog-actions button[type="submit"]{border:1px solid #ed168c!important;background:#d51778!important;color:#fff!important;box-shadow:0 6px 16px rgba(213,23,120,.2)!important}
#customerDialog .dialog-actions button[type="submit"]:hover,#customerDialog .dialog-actions button[type="submit"]:focus-visible{background:#ed168c!important;border-color:#ff58b3!important}
@media(max-width:560px){#customerDialog .dialog-actions{padding:12px 14px calc(14px + env(safe-area-inset-bottom))!important}}

/* Finalizar venta: resumen legible y pie sin la luz blanca heredada. */
#saleCheckoutDialog .sale-modal-summary{display:grid!important;grid-template-columns:minmax(0,1.45fr) minmax(150px,.72fr)!important;gap:10px!important;margin:18px 0 16px!important;padding:10px!important;border:1px solid #414b52!important;border-radius:13px!important;background:#171c20!important;background-image:none!important;color:#fff!important;box-shadow:none!important}
#saleCheckoutDialog .sale-summary-duo{display:grid!important;grid-template-columns:1fr 1fr!important;gap:0!important;min-width:0!important;overflow:hidden!important;border:1px solid #31537a!important;border-radius:12px!important;background:linear-gradient(135deg,#172e55 0%,#1d4b91 100%)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important}
#saleCheckoutDialog .sale-summary-duo>span{border:0!important;border-radius:0!important;background:transparent!important}
#saleCheckoutDialog .sale-summary-duo>span+span{border-left:1px solid rgba(255,255,255,.16)!important}
#saleCheckoutDialog .sale-modal-summary span{display:grid!important;gap:6px!important;min-width:0!important;padding:10px 12px!important;border:1px solid #333d44!important;border-radius:9px!important;background:#20262b!important;color:#9eabb2!important;font-size:10px!important;font-weight:420!important;text-align:left!important}
#saleCheckoutDialog .sale-modal-summary .sale-summary-duo>span{border:0!important;border-radius:0!important;background:transparent!important;color:#b9cbea!important}
#saleCheckoutDialog .sale-modal-summary .sale-summary-duo>span+span{border-left:1px solid rgba(255,255,255,.16)!important}
#saleCheckoutDialog .sale-modal-summary :is(b,strong){display:block!important;margin:0!important;color:#f4f7f8!important;font-size:19px!important;font-weight:560!important;line-height:1.1!important;text-align:left!important}
#saleCheckoutDialog #checkoutBalance{color:#ffb8dc!important}
#saleCheckoutDialog .dialog-actions{position:sticky!important;bottom:0!important;z-index:8!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:16px 0 0!important;padding:14px 0 0!important;border-top:1px solid #3b454c!important;background:#202428!important;background-image:none!important;box-shadow:none!important;filter:none!important}
#saleCheckoutDialog .dialog-actions::before,#saleCheckoutDialog .dialog-actions::after{content:none!important;display:none!important}
#saleCheckoutDialog .dialog-actions button{min-height:48px!important;margin:0!important;border-radius:9px!important;background-image:none!important}
#saleCheckoutDialog .dialog-actions button:first-child{border:1px solid #56616a!important;background:#282f34!important;color:#edf1f3!important;box-shadow:none!important}
#saleCheckoutDialog #completeSaleButton{border:1px solid #ed168c!important;background:#d51778!important;color:#fff!important;box-shadow:0 6px 16px rgba(213,23,120,.2)!important}
@media(max-width:600px){#saleCheckoutDialog .sale-modal-summary{grid-template-columns:1fr!important}#saleCheckoutDialog .sale-summary-duo{grid-template-columns:1fr 1fr!important}#saleCheckoutDialog .sale-modal-summary>span{grid-template-columns:1fr auto!important;align-items:center!important}#saleCheckoutDialog .sale-modal-summary :is(b,strong){font-size:17px!important}}

/* Release 299: controles claros para operadores y cierre de matrices blancas. */
.department-row-files{display:flex!important;flex-wrap:wrap!important;gap:8px!important;padding:8px!important;background:#15191c!important}
.department-row-files a{display:grid!important;gap:3px!important;box-sizing:border-box!important;min-width:180px!important;max-width:100%!important;min-height:50px!important;padding:9px 12px!important;border:1px solid #59656c!important;border-radius:9px!important;background:linear-gradient(180deg,#2b3338,#22292e)!important;color:#fff!important;box-shadow:0 3px 9px rgba(0,0,0,.28)!important;text-decoration:none!important;cursor:pointer!important;overflow:hidden!important}
.department-row-files a:hover,.department-row-files a:focus-visible{border-color:#25c4ec!important;background:linear-gradient(180deg,#344047,#283238)!important;box-shadow:inset 3px 0 #20bce9,0 5px 13px rgba(0,0,0,.34)!important;outline:none!important}
.department-row-files a b{background:transparent!important;color:#fff!important;font-size:11px!important;font-weight:650!important}
.department-row-files a small{display:block!important;max-width:100%!important;background:transparent!important;color:#c9d1d5!important;font-size:9px!important;line-height:1.3!important;overflow-wrap:anywhere!important;white-space:normal!important}
.department-row-files a span{display:none!important}
.block-report-summary,.block-report-summary header,.block-report-summary header>div,.block-ranking,.block-ranking article,.block-report-list,.block-report-list>div{background:#1b1f22!important;background-image:none!important;color:#eef2f3!important;border-color:#3b454b!important}
.block-report-summary header{padding:14px 16px!important}.block-report-summary header b{color:#fff!important}.block-report-summary header small,.block-ranking small,.block-report-list small{color:#aeb8bd!important}.block-ranking p{margin:0!important;padding:18px 12px!important;background:#1b1f22!important;color:#eef2f3!important}.block-ranking article{background:#171b1e!important}

/* Release 300: elimina fondos rectangulares heredados alrededor de controles operativos. */
.department-row-files{padding:0!important;background:transparent!important;background-image:none!important;border:0!important}
.department-heading .production-machine-box,.production-machine-box{padding:0!important;background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important}

/* Release 301: ficha de captura equilibrada y aprovechando todo el ancho. */
.ml-prompt-dialog{width:min(620px,calc(100vw - 28px))!important;max-width:620px!important}
.ml-prompt-dialog form{box-sizing:border-box!important;width:100%!important;max-width:none!important;gap:0!important;padding:0 24px 22px!important;background:#202428!important}
.ml-prompt-dialog .employee-heading{box-sizing:border-box!important;width:auto!important;margin:0 -24px 0!important;padding:22px 24px 20px!important;background:linear-gradient(120deg,#080a0d,#061820)!important}
.ml-prompt-dialog .employee-heading>div{min-width:0!important;max-width:calc(100% - 54px)!important}
.ml-prompt-dialog .employee-heading h2{margin:6px 0 0!important;line-height:1.15!important}
.ml-prompt-dialog>form>#mlPromptMessage{max-width:540px!important;margin:0!important;padding:18px 0 16px!important;color:#aeb8bd!important;font-size:14px!important;line-height:1.55!important}
.ml-prompt-dialog label{gap:7px!important;margin:0!important;color:#f1f3f4!important}
.ml-prompt-dialog textarea{min-height:96px!important;padding:13px 14px!important;border:1px solid #465159!important;border-radius:10px!important;background:#171c20!important;color:#fff!important;line-height:1.45!important}
.ml-prompt-dialog textarea:focus{border-color:#16bde9!important;box-shadow:0 0 0 3px rgba(22,189,233,.12)!important;outline:none!important}
.ml-prompt-dialog .dialog-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:16px 0 0!important;padding:16px 0 0!important;border-top:1px solid #3b454c!important;background:transparent!important}
.ml-prompt-dialog .dialog-actions button{width:100%!important;min-height:48px!important;margin:0!important;border-radius:9px!important}
@media(max-width:520px){.ml-prompt-dialog form{padding:0 16px 16px!important}.ml-prompt-dialog .employee-heading{margin:0 -16px!important;padding:18px 16px!important}.ml-prompt-dialog .dialog-actions{grid-template-columns:1fr!important}.ml-prompt-dialog>form>#mlPromptMessage{padding:15px 0!important}}

/* Release 302: acceso administrativo discreto al instalador operativo. */
.operational-install-shortcut{display:flex!important;align-items:center!important;gap:7px!important;margin:-2px 4px 10px!important;padding:7px 9px!important;border-radius:8px!important;color:#84969f!important;font-size:9px!important;text-decoration:none!important;transition:.18s ease!important}
.operational-install-shortcut span{color:#28c0e5!important;font-size:12px!important}.operational-install-shortcut:hover,.operational-install-shortcut:focus-visible{background:#ffffff0b!important;color:#dce5e9!important;outline:1px solid #ffffff1c!important}
@media(max-width:760px){.operational-install-shortcut{display:none!important}}

/* Release 304: contraste inequívoco de importes en movimientos de Caja. */
.cash-user-audit .erp-table-wrap tbody td.cash-positive,
.cash-user-audit .erp-table-wrap tbody td.cash-positive b,
#cashWorkspace .erp-table-wrap tbody td.cash-positive,
#cashWorkspace .erp-table-wrap tbody td.cash-positive b{color:#8fe8bd!important;opacity:1!important;filter:none!important;text-shadow:none!important}
.cash-user-audit .erp-table-wrap tbody td.cash-negative,
.cash-user-audit .erp-table-wrap tbody td.cash-negative b,
#cashWorkspace .erp-table-wrap tbody td.cash-negative,
#cashWorkspace .erp-table-wrap tbody td.cash-negative b{color:#ff9b9f!important;opacity:1!important;filter:none!important;text-shadow:none!important}

/* Pie compacto y oscuro del asistente de facturación desde Ventas realizadas. */
.sale-invoice-dialog .dialog-actions{position:sticky!important;bottom:0!important;z-index:8!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:16px 0 0!important;padding:14px 0 0!important;border-top:1px solid #3b454c!important;background:#202428!important;background-image:none!important;box-shadow:none!important;filter:none!important}
.sale-invoice-dialog .dialog-actions::before,.sale-invoice-dialog .dialog-actions::after{content:none!important;display:none!important}
.sale-invoice-dialog .dialog-actions button{width:100%!important;min-height:46px!important;margin:0!important;border-radius:9px!important;background-image:none!important;box-shadow:none!important;font-size:13px!important;font-weight:500!important}
.sale-invoice-dialog .dialog-actions button:first-child{border:1px solid #56616a!important;background:#282f34!important;color:#edf1f3!important}
.sale-invoice-dialog .dialog-actions button[type="submit"]{border:1px solid #ed168c!important;background:#d51778!important;color:#fff!important;box-shadow:0 6px 16px rgba(213,23,120,.2)!important}
.sale-invoice-dialog .dialog-actions button[type="submit"]:hover{background:#ed168c!important;border-color:#ff58b3!important}
.clone-sale-button,.dossier-sale-entry button[onclick*="cloneMlSale"]{display:none!important}

/* Composición final del asistente Facturar venta. */
#saleInvoiceDialog{box-sizing:border-box!important;width:min(920px,calc(100vw - 24px))!important;max-width:920px!important;max-height:calc(100dvh - 24px)!important;overflow-x:hidden!important;background:#202428!important}
#saleInvoiceDialog>.employee-heading{box-sizing:border-box!important;width:100%!important;margin:0!important;padding:20px 24px 18px!important}
#saleInvoiceDialog #saleInvoiceForm{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0!important;padding:18px 24px 0!important;gap:12px!important;overflow-x:hidden!important}
#saleInvoiceDialog .sale-invoice-summary{grid-template-columns:1.25fr repeat(3,1fr)!important;gap:8px!important;margin:0!important;padding:12px 14px!important}
#saleInvoiceDialog .sale-invoice-summary div{padding:2px 0!important}
#saleInvoiceDialog .sale-invoice-steps{gap:10px!important}
#saleInvoiceDialog .sale-invoice-steps>section{padding:14px!important}
#saleInvoiceDialog .sale-invoice-steps header{margin:0 0 11px!important}
#saleInvoiceDialog .sale-invoice-steps header>span{width:28px!important;height:28px!important;flex:0 0 28px!important}
#saleInvoiceDialog .sale-invoice-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
#saleInvoiceDialog .sale-invoice-steps>section:nth-child(2) .sale-invoice-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#saleInvoiceDialog .sale-invoice-steps input,#saleInvoiceDialog .sale-invoice-steps select{height:43px!important;padding:0 12px!important;border-radius:9px!important;font-size:12px!important}
#saleInvoiceDialog #saleInvoiceError{margin:0!important;min-height:0!important}
#saleInvoiceDialog #saleInvoiceForm>.dialog-actions{position:sticky!important;bottom:0!important;z-index:10!important;grid-template-columns:1fr 1fr!important;gap:10px!important;width:auto!important;margin:4px -24px 0!important;padding:13px 24px calc(15px + env(safe-area-inset-bottom))!important;border-top:1px solid #3b454c!important;background:#202428!important;background-image:none!important}
#saleInvoiceDialog #saleInvoiceForm>.dialog-actions button{min-height:46px!important;margin:0!important;border-radius:9px!important;font-size:13px!important;font-weight:500!important}
#saleInvoiceDialog #saleInvoiceForm>.dialog-actions button:first-child{border:1px solid #56616a!important;background:#282f34!important;color:#edf1f3!important;box-shadow:none!important}
#saleInvoiceDialog #saleInvoiceForm>.dialog-actions button:last-child{border:1px solid #ed168c!important;background:#d51778!important;color:#fff!important;box-shadow:0 6px 16px rgba(213,23,120,.2)!important}
#saleInvoiceDialog #saleInvoiceForm>.dialog-actions button:last-child:hover{background:#ed168c!important;border-color:#ff58b3!important}
@media(max-width:700px){#saleInvoiceDialog{width:100vw!important;max-width:none!important;max-height:100dvh!important;height:100dvh!important;border-radius:0!important}#saleInvoiceDialog>.employee-heading{padding:17px 18px 15px!important}#saleInvoiceDialog #saleInvoiceForm{padding:14px 14px 0!important}#saleInvoiceDialog .sale-invoice-summary{grid-template-columns:1fr 1fr!important}#saleInvoiceDialog .sale-invoice-grid,#saleInvoiceDialog .sale-invoice-steps>section:nth-child(2) .sale-invoice-grid{grid-template-columns:1fr 1fr!important}#saleInvoiceDialog #saleInvoiceForm>.dialog-actions{margin:4px -14px 0!important;padding:11px 14px calc(13px + env(safe-area-inset-bottom))!important}}@media(max-width:430px){#saleInvoiceDialog .sale-invoice-summary,#saleInvoiceDialog .sale-invoice-grid,#saleInvoiceDialog .sale-invoice-steps>section:nth-child(2) .sale-invoice-grid{grid-template-columns:1fr!important}#saleInvoiceDialog #saleInvoiceForm>.dialog-actions{grid-template-columns:1fr!important}}
/* Correcciones claras dentro del flujo de facturas. */
.sale-invoice-warning.attention{display:flex;align-items:center;justify-content:space-between;gap:14px}
.sale-invoice-warning.attention>div{display:grid;gap:3px}
.sale-invoice-warning.attention b{font-weight:600}
.sale-invoice-warning.attention span{color:#f0d7aa}
.sale-invoice-warning.attention button{flex:0 0 auto;white-space:nowrap}
@media(max-width:720px){.sale-invoice-warning.attention{align-items:stretch;flex-direction:column}}
/* Ventana fiscal compacta, sin franja clara ni desplazamiento lateral. */
#fiscalTaxCorrectionDialog{width:min(660px,calc(100vw - 32px))!important;max-width:660px!important;max-height:90dvh!important;padding:0!important;overflow:hidden!important;border:1px solid #435058!important;background:#20262a!important;color:#edf1f3!important}
#fiscalTaxCorrectionDialog>.employee-heading{box-sizing:border-box!important;width:100%!important;padding:18px 22px!important;background:linear-gradient(120deg,#0b0c10 20%,#071c22 100%)!important}
#fiscalTaxCorrectionDialog form{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:18px 22px 0!important;overflow-x:hidden!important}
#fiscalTaxCorrectionDialog .fiscal-tax-original,#fiscalTaxCorrectionDialog .fiscal-tax-option,#fiscalTaxCorrectionDialog .fiscal-tax-safety{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important}
#fiscalTaxCorrectionDialog .fiscal-tax-original b{max-width:55%!important;text-align:right!important;overflow-wrap:anywhere!important}
#fiscalTaxCorrectionDialog .fiscal-tax-option span{min-width:0!important}
#fiscalTaxCorrectionDialog .fiscal-tax-option em{white-space:normal!important;overflow-wrap:anywhere!important}
#fiscalTaxCorrectionDialog .dialog-actions{position:sticky!important;bottom:0!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;width:auto!important;max-width:none!important;margin:4px -22px 0!important;padding:12px 22px 14px!important;border-top:1px solid #3e484e!important;background:#171c20!important;box-shadow:0 -8px 22px #0a0d0f55!important}
#fiscalTaxCorrectionDialog .dialog-actions button{min-width:0!important;border-radius:10px!important;background:#282f34!important;border:1px solid #56616a!important;color:#edf1f3!important;box-shadow:none!important}
#fiscalTaxCorrectionDialog .dialog-actions button:last-child{background:#d51778!important;border-color:#ed168c!important;color:#fff!important}
#fiscalTaxCorrectionDialog .dialog-actions button:last-child:hover{background:#ed168c!important}
.fiscal-delivery-dialog{width:min(640px,calc(100vw - 28px))}.fiscal-delivery-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px}.fiscal-delivery-summary div{display:grid;gap:4px;padding:12px;border:1px solid #3b464d;border-radius:11px;background:#171c20}.fiscal-delivery-summary span{color:#9facb2;font-size:10px;text-transform:uppercase}.fiscal-delivery-summary b{font-weight:550;overflow-wrap:anywhere}.fiscal-delivery-actions{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:9px;margin:14px 0}.fiscal-delivery-actions .primary{background:#d70a78;border-color:#f02691}.fiscal-delivery-dialog>p{color:#aeb8bd;font-size:12px;line-height:1.5}
@media(max-width:620px){#fiscalTaxCorrectionDialog{width:100vw!important;max-width:none!important;max-height:100dvh!important;height:100dvh!important;border-radius:0!important}#fiscalTaxCorrectionDialog>.employee-heading{padding:16px!important}#fiscalTaxCorrectionDialog form{padding:14px 14px 0!important}#fiscalTaxCorrectionDialog .dialog-actions{grid-template-columns:1fr!important;margin-left:-14px!important;margin-right:-14px!important;padding-left:14px!important;padding-right:14px!important}.fiscal-delivery-summary,.fiscal-delivery-actions{grid-template-columns:1fr}}
.fiscal-tax-correction{width:min(660px,calc(100vw - 28px))}.fiscal-tax-correction form{display:grid;gap:12px}.fiscal-tax-original{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border:1px solid #3b464d;border-radius:12px;background:#171c20}.fiscal-tax-original span{color:#aab5ba}.fiscal-tax-original b{font-size:19px;font-weight:600}.fiscal-tax-option{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:11px;padding:13px;border:1px solid #435058;border-radius:12px;background:#1c2226;cursor:pointer}.fiscal-tax-option:has(input:checked){border-color:#13afd2;box-shadow:0 0 0 1px #13afd255}.fiscal-tax-option input{margin-top:3px}.fiscal-tax-option span{display:grid;gap:4px}.fiscal-tax-option b{font-weight:600}.fiscal-tax-option small{color:#aeb8bd}.fiscal-tax-option em{color:#6ed7ee;font-size:12px;font-style:normal}.fiscal-tax-safety{margin:0;padding:10px 12px;border-left:3px solid #e3a430;background:#3b2c16;color:#f0d7aa;font-size:11px}.fiscal-tax-note.resolved{color:#8bd9b6}

/* Price scope dialog: scoped overrides for legacy sale modal/footer rules. */
#priceDecisionDialog{box-sizing:border-box!important;width:min(640px,calc(100vw - 28px))!important;max-width:calc(100vw - 28px)!important;max-height:calc(100dvh - 28px)!important;padding:0!important;border:1px solid #414b52!important;border-radius:16px!important;background:#202428!important;color:#edf1f3!important;overflow:auto!important}
#priceDecisionDialog #priceDecisionForm{box-sizing:border-box!important;display:grid!important;gap:16px!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0 22px 18px!important}
#priceDecisionDialog .sale-modal-heading{margin:0 -22px!important;padding:20px 22px!important;border-radius:0!important;background:linear-gradient(110deg,#100b10,#061a20)!important}
#priceDecisionDialog .sale-modal-heading h2{margin:6px 0 0!important;font-size:21px!important;line-height:1.3!important;font-weight:600!important}
#priceDecisionDialog .eyebrow{font-size:9px!important;margin:0!important}
#priceDecisionDialog #priceDecisionSummary{margin:0!important;font-size:13px!important;line-height:1.55!important;color:#b9c3c9!important;overflow-wrap:anywhere!important}
#priceDecisionDialog #priceDecisionSummary b{font-size:13px!important;font-weight:600!important;color:#edf1f3!important}
#priceDecisionDialog .price-scope-options{display:grid!important;gap:10px!important;margin:0!important;min-width:0!important}
#priceDecisionDialog .price-scope-options label{box-sizing:border-box!important;display:flex!important;align-items:flex-start!important;gap:11px!important;min-width:0!important;margin:0!important;padding:12px 14px!important;background:#191e22!important;border:1px solid #46525a!important;border-radius:10px!important;cursor:pointer!important}
#priceDecisionDialog .price-scope-options label.hidden{display:none!important}
#priceDecisionDialog .price-scope-options label:has(input:checked){border-color:#13afd2!important;background:#142b32!important;box-shadow:0 0 0 1px #13afd233!important}
#priceDecisionDialog .price-scope-options label:focus-within{outline:2px solid #68d8f0;outline-offset:2px}
#priceDecisionDialog .price-scope-options input[type="radio"]{appearance:auto!important;flex:0 0 16px!important;box-sizing:border-box!important;width:16px!important;height:16px!important;min-height:0!important;margin:2px 0 0!important;padding:0!important;accent-color:#13afd2!important}
#priceDecisionDialog .price-scope-options span{display:grid!important;gap:4px!important;min-width:0!important}
#priceDecisionDialog .price-scope-options b{font-size:13px!important;line-height:1.4!important;font-weight:500!important;color:#edf1f3!important}
#priceDecisionDialog .price-scope-options small{display:block!important;font-size:12px!important;line-height:1.45!important;font-weight:400!important;color:#b5c0c7!important;overflow-wrap:anywhere!important}
#priceDecisionDialog #priceDecisionForm>label{margin:0!important;font-size:12px!important;line-height:1.4!important;font-weight:400!important;color:#c3cbd0!important}
#priceDecisionDialog #priceDecisionReason{box-sizing:border-box!important;min-width:0!important;width:100%!important;margin:6px 0 0!important;padding:10px 12px!important;min-height:42px!important;font-size:13px!important;font-weight:400!important;background:#191e22!important;border:1px solid #46525a!important;border-radius:9px!important;color:#edf1f3!important}
#priceDecisionDialog #priceDecisionForm>.dialog-actions{position:sticky!important;bottom:-18px!important;z-index:2!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:0 -22px -18px!important;padding:14px 22px 18px!important;border-top:1px solid #3b454c!important;background:#202428!important;background-image:none!important;box-shadow:none!important;filter:none!important}
#priceDecisionDialog .dialog-actions::before,#priceDecisionDialog .dialog-actions::after{content:none!important;display:none!important}
#priceDecisionDialog #priceDecisionForm>.dialog-actions button{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:11px 14px!important;border-radius:9px!important;background:#282f34!important;background-image:none!important;border:1px solid #56616a!important;color:#edf1f3!important;box-shadow:none!important;font-size:13px!important;font-weight:500!important;line-height:1.4!important}
#priceDecisionDialog #priceDecisionForm>.dialog-actions button[type="submit"]{background:#d51778!important;border-color:#ed168c!important;color:#fff!important}
#priceDecisionDialog #priceDecisionForm>.dialog-actions button[type="submit"]:hover{background:#ed168c!important}
@media(max-width:480px){#priceDecisionDialog #priceDecisionForm{padding:0 16px 14px!important;gap:13px!important}#priceDecisionDialog .sale-modal-heading{margin:0 -16px!important;padding:17px 16px!important}#priceDecisionDialog .sale-modal-heading h2{font-size:19px!important}#priceDecisionDialog #priceDecisionForm>.dialog-actions{margin:0 -16px -14px!important;padding:12px 16px 14px!important;bottom:-14px!important}}

/* El encabezado del historial pertenece a la ficha, no al encabezado blanco del workspace. */
.workspace .sale-customer-history>header{
  height:auto!important;
  min-height:0!important;
  padding:2px 3px 7px!important;
  background:transparent!important;
  border-bottom:0!important;
  color:#eef1f2!important;
}
.workspace .sale-customer-history>header small{color:#a9b9c2!important}
