/* ============================================================
   Alimentos Australes — CSS Override para Polaris Lynx
   Perfil: customers
   Referencia estética: catalog.alimentosaustrales.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #ff9000;
  --primary-light: #ffa733;
  --primary-dark: #e07f00;
  --primary-input: #f6f6f6;

  --radius: 12px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);

  --aa-color: #ff9000;
  --aa-background: #f6f6f6;
  --aa-card-background: #ffffff;
  --aa-text: #333333;
  --aa-text-muted: #666666;
  --aa-dark: #222222;

  --aa-warning: #ff9000;
  --aa-warning-background: #fff4e3;
  --aa-danger: #d2373c;
  --aa-success: #ff9000;

  --aa-badge-confirmado-background: #dcebfa;
  --aa-badge-confirmado-text: #2c6fb2;
  --aa-badge-entregado-background: #ffe9c7;
  --aa-badge-entregado-text: #b86200;

  --aa-quick-cart: #ff9000;
  --aa-quick-repeat: #ff9000;
  --aa-quick-alert: #ff9000;

  --aa-border: #ebebeb;
  --aa-progress-track: #e6e6e6;
  --aa-progress-fill: #ff9000;

  --theme-wrong: #d2373c;
  --theme-success: #ff9000;
  --theme-cancel: #c1594f;

  --fullmessage-background: #ff9000;
  --fullmessage-color: #ffffff;

  --calendar-cerrado: #ff9000;
  --calendar-con-pedido: #ff9000;
  --calendar-today: #222222;
}

/* ============================================================
   TIPOGRAFÍA
   Montserrat en todo, salvo íconos Font Awesome
   ============================================================ */
body.customers,
body.customers *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab) {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif !important;
}

body.customers {
  background: var(--aa-background) !important;
  color: var(--aa-text) !important;
  min-height: 100vh !important;
}

body.customers h1,
body.customers h2,
body.customers h3 {
  color: var(--aa-text) !important;
  font-weight: 700 !important;
}

body.customers a,
body.customers a:link,
body.customers a:visited {
  color: var(--aa-text) !important;
}

body.customers label,
body.customers .legend {
  color: var(--aa-text-muted) !important;
}

/* ============================================================
   BOTONES E INPUTS
   ============================================================ */
body.customers input[type='text'],
body.customers input[type='password'],
body.customers input[type='email'],
body.customers input[type='number'],
body.customers input[type='tel'],
body.customers input[type='date'],
body.customers select,
body.customers textarea {
  background: #fff !important;
  color: var(--aa-text) !important;
  border: 1px solid #dddddd !important;
  border-radius: var(--radius) !important;
  font-size: 1em !important;
}

body.customers input[type='text']:focus,
body.customers input[type='password']:focus,
body.customers input[type='email']:focus,
body.customers input[type='number']:focus,
body.customers input[type='tel']:focus,
body.customers input[type='date']:focus,
body.customers select:focus,
body.customers textarea:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(255, 144, 0, 0.18) !important;
}

body.customers input[type='button'],
body.customers input[type='submit'],
body.customers a.button {
  background: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  transition: background 0.2s, border-color 0.2s !important;
}

body.customers input[type='button']:hover,
body.customers input[type='submit']:hover,
body.customers a.button:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: #fff !important;
}

body.customers input[type='button'].disabled,
body.customers input[type='submit'].disabled,
body.customers a.button.disabled {
  background: #e6e6e6 !important;
  border-color: #e6e6e6 !important;
  color: #999 !important;
}

body.customers a.button.inverted,
body.customers a.button.inverted.primary {
  background: #fff !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

body.customers a.button.primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

body.customers .primary,
body.customers .colorTheme {
  color: var(--primary) !important;
}

body.customers .backgroundTheme {
  background: var(--primary) !important;
}

body.customers .borderTheme {
  border-color: var(--primary) !important;
}

body.customers .material-big-button.button-add {
  background-color: var(--primary) !important;
}

body.customers .material-big-button.button-add:hover {
  background-color: var(--primary-dark) !important;
}

/* ============================================================
   LOGIN / RECUPERAR CONTRASEÑA / REGISTRO
   Tarjeta blanca sobre el fondo
   ============================================================ */
body.customers.outside {
  background-color: var(--aa-color) !important;
  background-image: url("https://images.squarespace-cdn.com/content/v1/5fbeaf49ec917750a3ca75d3/1606335788516-HU5HIU12D9HK4QGLQPDW/FB+background.jpg") !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: bottom !important;
  background-attachment: fixed !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  color: var(--aa-text) !important;
}

body.customers.outside #response {
  background: #fff !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18) !important;
  padding: 32px 28px 22px !important;
  width: 100% !important;
  max-width: 380px !important;
  margin: auto !important;
  box-sizing: border-box !important;
}

body.customers.outside #logo-header,
body.customers #logo {
  background-image: url("https://catalog.alimentosaustrales.com/wp-content/uploads/2026/08/Alimentos-Australes-Web-logo.png") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

body.customers.outside #logo-header {
  background-position: center !important;
  width: 130px !important;
  height: 130px !important;
  max-width: none !important;
  margin: 0 auto 20px auto !important;
}

body.customers.outside .bajada:empty {
  display: none !important;
}

body.customers.outside #response>p {
  color: var(--aa-text-muted) !important;
  font-size: 0.9em !important;
  line-height: 1.5 !important;
  text-align: center !important;
  margin: 0 0 20px 0 !important;
}

body.customers.outside #response>p b {
  color: var(--aa-text) !important;
}

body.customers.outside form table {
  width: 100% !important;
  border: 0 !important;
  border-collapse: collapse !important;
}

body.customers.outside form table tbody {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  width: 100% !important;
}

body.customers.outside form table tr {
  display: block !important;
  width: 100% !important;
}

body.customers.outside form table td {
  display: block !important;
  padding: 0 !important;
  text-align: left !important;
  text-transform: none !important;
}

body.customers.outside .form-label {
  color: var(--aa-text-muted) !important;
  font-size: 0.75em !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 6px 2px !important;
}

body.customers.outside input[type='text'],
body.customers.outside input[type='password'],
body.customers.outside input[type='email'],
body.customers.outside select {
  background: var(--primary-input) !important;
  color: var(--aa-text) !important;
  border: 1px solid var(--aa-border) !important;
  border-radius: var(--radius) !important;
  width: 100% !important;
  padding: 14px 16px !important;
  margin: 0 0 16px 0 !important;
  text-align: left !important;
  font-size: 1em !important;
}

body.customers.outside input[type='text']:focus,
body.customers.outside input[type='password']:focus,
body.customers.outside input[type='email']:focus,
body.customers.outside select:focus {
  background: #fff !important;
  border-color: var(--primary) !important;
}

body.customers.outside input[type='submit'] {
  background: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  color: #fff !important;
  width: 100% !important;
  padding: 15px !important;
  margin: 6px 0 0 0 !important;
  font-size: 0.9em !important;
  text-transform: uppercase !important;
}

body.customers.outside input[type='submit']:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

/* --- Enlaces debajo de "Ingresar" --- */
body.customers.login .form-label:has(a.forgot) {
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 1em !important;
}

body.customers.login a.forgot,
body.customers.login a.forgot:link,
body.customers.login a.forgot:visited {
  display: block !important;
  margin: 0 !important;
  font-size: 0.8em !important;
  font-weight: 500 !important;
  color: var(--aa-text-muted) !important;
  text-transform: none !important;
}

body.customers.login a.forgot:hover {
  color: var(--primary) !important;
}

/* "¿Olvidó su contraseña?" y "¿Primer acceso?" en una misma línea */
body.customers.login form table tr:has(a[href$="event=forgotpassword"]),
body.customers.login form table tr:has(a[href*="message=first"]) {
  width: auto !important;
  margin-top: 16px !important;
}

body.customers.login form table tr:has(a[href*="message=first"]) a.forgot {
  text-align: right !important;
}

/* "Registrarme" como botón secundario */
body.customers.login form table tr:has(a[href*="registrar_d_diner"]) {
  margin-top: 18px !important;
  padding-top: 18px !important;
  border-top: 1px solid var(--aa-border) !important;
}

body.customers.login a.forgot[href*="registrar_d_diner"],
body.customers.login a.forgot[href*="registrar_d_diner"]:link,
body.customers.login a.forgot[href*="registrar_d_diner"]:visited {
  border: 1px solid var(--primary) !important;
  border-radius: var(--radius) !important;
  color: var(--primary) !important;
  font-size: 0.9em !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  padding: 13px !important;
  transition: background 0.2s, color 0.2s !important;
}

body.customers.login a.forgot[href*="registrar_d_diner"]:hover {
  background: var(--primary) !important;
  color: #fff !important;
}

body.customers.outside #closure {
  margin-top: 20px !important;
  font-size: 0.7em !important;
  text-align: center !important;
}

body.customers.outside #closure a {
  color: #aaaaaa !important;
}

body.customers #install-button {
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
  color: var(--aa-text) !important;
  font-weight: 600 !important;
}

/* ============================================================
   TOPNAV Y MENÚ
   ============================================================ */
body.customers .topnav {
  background: none !important;
  box-shadow: none !important;
}

body.customers #logo {
  background-position: right center !important;
}

body.customers #hiddenLinks .menu {
  background: #fff !important;
  border-color: var(--aa-border) !important;
}

body.customers #hiddenLinks a,
body.customers #hiddenLinks span {
  color: var(--aa-text) !important;
  font-weight: 600 !important;
}

body.customers #hiddenLinks a:hover,
body.customers #hiddenLinks a:active {
  color: var(--primary) !important;
  background: var(--aa-warning-background) !important;
}

body.customers #hiddenLinks .menu i {
  color: var(--primary) !important;
}

body.customers #hiddenLinks .avatar {
  background: var(--primary) !important;
  color: #fff !important;
}

body.customers #message_counter {
  background: var(--primary) !important;
  color: #fff !important;
}

/* ============================================================
   HOME: NOTIFICACIONES, KPIs, PEDIDOS, ACCESOS RÁPIDOS
   ============================================================ */
body.customers #notifications .notification {
  background: var(--aa-warning-background) !important;
  border-left: 4px solid var(--aa-warning) !important;
  border-radius: var(--radius) !important;
  color: var(--primary-dark) !important;
}

body.customers #notifications .notification .notification-detail {
  color: var(--aa-text) !important;
}

body.customers .kpi {
  background: var(--aa-card-background) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}

body.customers .kpi .count {
  color: var(--aa-text) !important;
  font-weight: 700 !important;
}

body.customers .kpi .legend {
  color: var(--aa-text-muted) !important;
}

body.customers #kpi_deuda_vencida .count,
body.customers #kpi_deuda_vencida .legend {
  color: var(--aa-danger) !important;
}

/* Saludo del inicio */
body.customers.home #response h1,
body.customers #response:has(.kpis-grid) h1 {
  color: var(--primary) !important;
}

/* Deuda vencida: el importe en un solo renglón */
body.customers #kpi_deuda_vencida .count {
  font-size: clamp(17px, 5vw, 26px) !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
}

/* Crédito disponible: fondo naranja, texto blanco */
body.customers #kpi_credito {
  --aa-progress-track: rgba(255, 255, 255, 0.35);
  --aa-progress-fill: #ffffff;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

body.customers #kpi_credito,
body.customers #kpi_credito * {
  color: #fff !important;
}

body.customers #kpi_credito .progress {
  background: var(--aa-progress-track) !important;
}

body.customers #kpi_credito .progress-bar {
  background: var(--aa-progress-fill) !important;
}

body.customers #pedidos_pendientes {
  background: transparent !important;
}

body.customers #pedidos_pendientes .pedido {
  background: var(--aa-card-background) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  color: var(--aa-text) !important;
}

body.customers #pedidos_pendientes .pedido .estado {
  border-radius: 999px !important;
  font-weight: 600 !important;
}

body.customers #pedidos_pendientes .pedido[data-estado="confirmado"] .estado {
  background: var(--aa-badge-confirmado-background) !important;
  color: var(--aa-badge-confirmado-text) !important;
}

body.customers #pedidos_pendientes .pedido[data-estado="entregado"] .estado {
  background: var(--aa-badge-entregado-background) !important;
  color: var(--aa-badge-entregado-text) !important;
}

body.customers .toolbar a {
  background: var(--aa-card-background) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  color: var(--aa-text) !important;
}

body.customers #toolbar a.customers_nuevo_pedido i {
  background: var(--aa-quick-cart) !important;
  color: #fff !important;
}

body.customers #toolbar a.customers_repetir_pedido i {
  background: var(--aa-quick-repeat) !important;
  color: #fff !important;
}

body.customers #toolbar a.customers_nuevo_reclamo i {
  background: var(--aa-quick-alert) !important;
  color: #fff !important;
}

/* ============================================================
   LISTAS, TARJETAS Y POPUPS
   ============================================================ */
body.customers .card-list li {
  background: var(--aa-card-background) !important;
  border: 0 !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}

body.customers ul.element-list li,
body.customers .x_mobile_list .option {
  border-color: var(--aa-border) !important;
}

body.customers .bottom_toolbar {
  background: #fff !important;
  border-top: 1px solid var(--aa-border) !important;
}

body.customers .popup_frame .popup_container,
body.customers #lynx_overlay {
  border-radius: 16px !important;
  color: var(--aa-text) !important;
}

body.customers .popup_frame .popup_container button {
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
}

body.customers .popup_frame .popup_container.confirm .yesno button.yes,
body.customers .popup_frame .popup_container.message .toolbar button.ok {
  background: var(--primary) !important;
  color: #fff !important;
}

body.customers .popup_frame .popup_container.confirm .yesno button.no,
body.customers .popup_frame .popup_container.message .toolbar button.cancel {
  background: #fff !important;
  color: var(--aa-text-muted) !important;
  border: 1px solid #dddddd !important;
}

body.customers .popup_frame .popup_container.error.message .toolbar button.ok {
  background: var(--theme-wrong) !important;
}

body.customers ul.checkbox_list li input:checked+span.value::before {
  color: var(--primary) !important;
}

body.customers .full_message {
  background-color: var(--primary) !important;
  color: #fff !important;
}

body.customers #qrcode_clock {
  background: var(--primary) !important;
}

body.customers #qrcode_chars span {
  border-color: var(--primary) !important;
}

/* ============================================================
   PEDIDO (customers_pedido)
   ============================================================ */
/* Botones primarios rellenos: texto siempre blanco */
body.customers button.primary,
body.customers .button.primary:not(.inverted),
body.customers .customers-review-actions .primary,
body.customers .customers-card .primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

body.customers button.primary:disabled {
  opacity: 0.7 !important;
}

body.customers .customers-review-actions button,
body.customers .customers-card .button {
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

body.customers .customers-review-actions button:not(.primary) {
  background: #fff !important;
  color: var(--aa-text) !important;
  border: 1px solid #dddddd !important;
}

/* --- Revisá tu pedido: casilla "Enviarme la confirmación" --- */
body.customers label.customers-email,
body.customers .customers-review-panel label:has(input[type="checkbox"]) {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 14px 0 0 0 !important;
  font-size: 0.85rem !important;
  color: var(--aa-text) !important;
  text-align: left !important;
  cursor: pointer !important;
}

body.customers label.customers-email input[type="checkbox"],
body.customers .customers-review-panel input[type="checkbox"] {
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--primary) !important;
  cursor: pointer !important;
}

/* --- Buscador y categorías: aire a los costados --- */
body.customers .customers-catalog-header {
  padding: 0 12px !important;
  border-radius: 0 0 var(--radius) var(--radius) !important;
}

body.customers .customers-catalog-tools {
  padding: 10px 0 !important;
}

body.customers .customers-categories-open {
  padding: 0 16px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

body.customers .customers-categories-open i {
  color: var(--primary) !important;
}

body.customers .customers-search {
  height: 44px !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
}

body.customers .customers-search i {
  color: var(--primary) !important;
}

body.customers .customers-search input {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.customers .customers-campaign-filters {
  padding-bottom: 10px !important;
}

/* --- Panel de categorías: categorías padre en negrita y naranja --- */
body.customers .customers-category-filter {
  cursor: pointer !important;
}

body.customers .customers-category-filter:not(.subcategory):not([data-category=""]) {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

body.customers .customers-category-filter.subcategory {
  color: var(--aa-text) !important;
  font-weight: 500 !important;
}

/* --- Catálogo en grilla de fichas --- */
body.customers #response:has(#customers_pedido_catalog) {
  max-width: 1100px !important;
}

body.customers #customers_pedido_catalog {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
}

/* Escritorio: fichas más anchas */
@media (min-width: 768px) {
  body.customers #customers_pedido_catalog {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 16px !important;
  }

  body.customers .customers-product:not([hidden]) {
    padding: 16px !important;
  }
}

body.customers #customers_pedido_catalog> :not(.customers-product) {
  grid-column: 1 / -1 !important;
}

body.customers #customers_pedido_catalog .customers-category {
  margin: 18px 0 2px 0 !important;
  text-align: left !important;
}

/* --- Ficha de producto: datos, foto, presentación, cantidad, nota --- */
body.customers .customers-product:not([hidden]) {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 0 !important;
  box-sizing: border-box !important;
}

body.customers .customers-product.selected {
  box-shadow: 0 0 0 2px var(--primary), var(--shadow) !important;
}

body.customers .customers-product-main {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-bottom: 10px !important;
}

body.customers .customers-product-description {
  gap: 2px !important;
}

body.customers .customers-product h3 {
  text-align: left !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
  margin: 2px 0 0 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.5em !important;
}

body.customers .customers-description-brand,
body.customers .customers-description-presentation {
  font-size: 0.75rem !important;
}

body.customers .customers-description-brand,
body.customers .customers-description-presentation {
  min-height: 1.35em !important;
  line-height: 1.35em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.customers .customers-stock {
  align-self: flex-start !important;
}

/* Foto cuadrada; sin imagen queda el recuadro gris */
body.customers .customers-product-carousel {
  margin: 0 0 10px 0 !important;
  border: 1px solid var(--aa-border) !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  background: #fff !important;
}

body.customers .customers-product-slide:not([hidden]) {
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
}

body.customers .customers-product-photo:has(.customers-no-image) {
  background: #e3e3e3 !important;
}

body.customers .customers-no-image {
  color: #9a9a9a !important;
  font-size: 0.8rem !important;
}

body.customers .customers-product-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

body.customers .customers-product-info {
  font-size: 0.8rem !important;
}

body.customers .customers-carousel-controls button {
  min-height: 2rem !important;
  color: var(--primary) !important;
  cursor: pointer !important;
}

body.customers .customers-campaign {
  margin: 0 0 10px 0 !important;
  padding: 6px 8px !important;
  border-radius: 6px !important;
  background: var(--aa-warning-background) !important;
  color: var(--primary-dark) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}

body.customers .customers-campaign i {
  color: var(--primary) !important;
}

/* Orden fijo dentro de la ficha: la promo va debajo de la foto
   para que todas las fotos de una fila arranquen a la misma altura */
body.customers .customers-product-main {
  order: 1 !important;
}

body.customers .customers-product-carousel {
  order: 2 !important;
}

body.customers .customers-campaign {
  order: 3 !important;
}

body.customers .customers-product-order {
  order: 4 !important;
}

body.customers .customers-quantity-rule {
  order: 5 !important;
}

body.customers .customers-tax {
  order: 6 !important;
}

body.customers textarea.customers-item-note {
  order: 7 !important;
}

/* Presentación y cantidad, abajo de la foto */
body.customers .customers-product-order {
  margin: auto 0 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

body.customers .customers-product select.customers-presentation {
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  font-size: 0.82rem !important;
  background: #fff !important;
}

body.customers .customers-qty {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

body.customers .customers-qty button {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--primary) !important;
  color: #fff !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

body.customers .customers-qty button:hover {
  background: var(--primary-dark) !important;
}

body.customers .customers-qty button:disabled {
  background: #e3e3e3 !important;
  cursor: not-allowed !important;
}

body.customers .customers-qty input.customers-quantity {
  width: 48px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  border: 1px solid #dddddd !important;
  border-radius: 10px !important;
  font-size: 0.95rem !important;
  -moz-appearance: textfield !important;
}

body.customers .customers-qty input.customers-quantity::-webkit-outer-spin-button,
body.customers .customers-qty input.customers-quantity::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

body.customers .customers-quantity-rule {
  min-height: 0 !important;
  margin-top: 6px !important;
  font-size: 0.72rem !important;
  text-align: center !important;
  color: var(--aa-text-muted) !important;
}

body.customers .customers-quantity-rule {
  min-height: 2.6em !important;
  line-height: 1.3em !important;
}

body.customers .customers-tax {
  margin: 6px 0 0 0 !important;
  font-size: 0.72rem !important;
  text-align: center !important;
}

body.customers textarea.customers-item-note {
  width: 100% !important;
  min-height: 3rem !important;
  margin: 10px 0 0 0 !important;
  padding: 10px 12px !important;
  font-size: 0.82rem !important;
  resize: vertical !important;
}

/* Etiqueta de stock disponible: sin verde */
body.customers .customers-stock:not(.low_stock):not(.no_stock) {
  background: var(--aa-badge-entregado-background) !important;
  color: var(--aa-badge-entregado-text) !important;
}

body.customers .customers-stock {
  font-weight: 600 !important;
}

/* ============================================================
   RECLAMOS (customers_reclamos)
   ============================================================ */
body.customers .customers-claims-header,
body.customers .customers-history-header {
  margin-bottom: 20px !important;
}

body.customers .customers-claims-header h1,
body.customers .customers-history-header h1 {
  text-align: left !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
}

body.customers .customers-claims-header p,
body.customers .customers-history-header p {
  color: var(--aa-text-muted) !important;
  font-size: 0.9rem !important;
}

body.customers #customers_claim_new,
body.customers .customers-claim-primary {
  background: var(--primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--radius) !important;
  padding: 12px 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 4px 12px rgba(255, 144, 0, 0.28) !important;
  transition: background 0.2s !important;
}

body.customers #customers_claim_new:hover,
body.customers .customers-claim-primary:hover {
  background: var(--primary-dark) !important;
}

body.customers #customers_claim_notice:not(:empty) {
  background: var(--aa-warning-background) !important;
  border-left: 4px solid var(--primary) !important;
  border-radius: var(--radius) !important;
  color: var(--aa-text) !important;
  padding: 12px 16px !important;
}

body.customers .customers-claim-panel,
body.customers .customers-claim-card {
  background: var(--aa-card-background) !important;
  border: 0 !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  padding: 20px !important;
  margin-bottom: 14px !important;
}

body.customers .customers-claim-panel h2,
body.customers #customers_claim_history h2 {
  text-align: left !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--aa-text-muted) !important;
  margin: 0 0 14px 0 !important;
}

/* Formulario de nuevo reclamo */
body.customers #customers_claim_form label {
  color: var(--aa-text-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin: 16px 0 6px 2px !important;
}

body.customers #customers_claim_form input,
body.customers #customers_claim_form textarea {
  width: 100% !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  background: var(--primary-input) !important;
  border: 1px solid var(--aa-border) !important;
  border-radius: var(--radius) !important;
}

body.customers #customers_claim_form input:focus,
body.customers #customers_claim_form textarea:focus {
  background: #fff !important;
  border-color: var(--primary) !important;
}

body.customers .customers-claim-actions {
  margin-top: 20px !important;
  gap: 10px !important;
}

body.customers .customers-claim-actions button {
  width: auto !important;
  margin: 0 !important;
  border-radius: var(--radius) !important;
  padding: 12px 20px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

body.customers .customers-claim-actions button[type="button"],
body.customers #customers_claim_cancel {
  background: #fff !important;
  color: var(--aa-text-muted) !important;
  border: 1px solid #dddddd !important;
}

body.customers .customers-claim-actions button[type="submit"],
body.customers .customers-claim-actions input[type="submit"] {
  background: var(--primary) !important;
  color: #fff !important;
  border: 0 !important;
}

/* Tarjetas de reclamo */
body.customers .customers-claim-date,
body.customers .customers-claim-number {
  font-size: 0.78rem !important;
  color: var(--aa-text-muted) !important;
}

body.customers .customers-claim-card h3 {
  text-align: left !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin: 4px 0 8px 0 !important;
}

body.customers .customers-claim-state {
  background: var(--aa-warning-background) !important;
  color: var(--primary-dark) !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
}

body.customers .customers-claim-state.is-resolved {
  background: #eeeeee !important;
  color: var(--aa-text-muted) !important;
}

body.customers .customers-claim-description {
  color: var(--aa-text) !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
}

body.customers .customers-claim-resolution {
  background: #fafafa !important;
  border-left: 3px solid var(--primary) !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 10px 14px !important;
}

body.customers .customers-claim-resolution strong {
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--primary-dark) !important;
}

body.customers a.customers-claim-link,
body.customers a.customers-claim-back {
  color: var(--primary) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
}

body.customers a.customers-claim-link::after {
  content: ' →';
}

body.customers .customers-claim-empty {
  text-align: center !important;
  padding: 24px !important;
}

/* Paginación (reclamos e historial) */
body.customers #customers_claim_pagination,
body.customers .customers-history-pagination {
  color: var(--aa-text-muted) !important;
  font-size: 0.85rem !important;
}

body.customers #customers_claim_pagination button,
body.customers .customers-history-pagination button {
  width: auto !important;
  margin: 0 !important;
  padding: 8px 16px !important;
  background: #fff !important;
  color: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

body.customers #customers_claim_pagination button:disabled,
body.customers .customers-history-pagination button:disabled {
  color: #bbbbbb !important;
  border-color: #dddddd !important;
}

/* ============================================================
   HISTORIAL (customers_historial)
   ============================================================ */
body.customers a.customers-history-download,
body.customers a.customers-history-download:link,
body.customers a.customers-history-download:visited,
body.customers a.customers-history-download i {
  color: #fff !important;
}

body.customers a.customers-history-download {
  background: var(--primary) !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}

body.customers a.customers-history-download:hover {
  background: var(--primary-dark) !important;
}

body.customers .customers-history-item {
  border: 0 !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}

body.customers .customers-history-badge {
  background: var(--aa-warning-background) !important;
  color: var(--primary-dark) !important;
  font-weight: 600 !important;
}

body.customers .customers-history-target {
  background: var(--aa-warning-background) !important;
}

body.customers .customers-history-target button {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

body.customers .customers-history-tabs button[aria-selected="true"] {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

body.customers_pedido article[hidden] {
  display: none !important;
}