.genesis-label {
  color: #4c4c4e;
  min-height: auto !important;
  font-size: 14px !important;
  margin-bottom: 0px !important;
  min-height: 20px !important;
}

body {
  color: #4c4c4e;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  background-color: #fdfdfd;
  line-height: 1.6;
}

:root {
  --app-max-width: 1200px;
  --app-gap: 16px;
  --app-radius: 18px;
}

.view-main .page-content,
.panel .page-content {
  padding-inline: clamp(12px, 2vw, 24px);
}

.page-content {
  max-width: var(--app-max-width);
  margin: 0 auto;
}

body.update-required {
  background: #e6e6e6;
}

body.update-required .views,
body.update-required .panel,
body.update-required .panel-overlay,
body.update-required .statusbar-overlay,
body.update-required .popup,
body.update-required .popover {
  display: none !important;
}

.update-screen {
  position: fixed;
  inset: 0;
  background: #e6e6e6;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}

.update-screen-logo {
  width: min(240px, 60vw);
  height: auto;
}

body.update-required .update-screen {
  display: flex;
}

.card,
.card-header,
.card-content,
.card-footer,
.card-title,
.card-subtitle,
.item-title,
.item-after,
.list-block .item-title,
.list-block .item-after {
  color: #4c4c4e;
}

.popover-about {
  width: calc(100% - 24px);
  max-width: 420px;
  left: 50% !important;
  top: 50% !important;
  margin: 0;
  transform: translate(-50%, -50%) !important;
}

.popover-about .popover-angle {
  display: none;
}

.login-logo {
  text-align: center;
  padding: 10px;
}
.page-content #frm-acceder {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding-bottom: 24px;
}

.login-hero {
  width: 100vw;
  flex: 1;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.login-hero-image {
  width: 105%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page[data-page="index"] .page-content {
  height: 100vh;
  overflow: hidden;
}
.settings-button {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4c6796;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
  z-index: 1000;
}

.settings-button i {
  font-size: 20px;
}

.settings-button i {
  color: #4c6796 !important;
}

.login-card {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: min(420px, 90%);
  background: #fbf6ef;
  border-radius: 30px;
  padding: 24px 22px;

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  z-index: 2;
}


.login-title {
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 16px;
}

.login-empresa-sede {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 16px;

  background: #f1f3f7;
  border: 1px solid #d7dbe3;

  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.08);

  display: flex;
  flex-direction: column;
  gap: 6px;

  font-size: 13px;
  color: #4c6796;
}

.login-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-label {
  font-size: 12px;
  font-weight: 600;
  color: #5e5e5e;
}

.login-input {
  height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #e6e6e6;
  background: #f3f3f3;
  font-size: 15px;
  color: #2b2b2b;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.login-input:focus {
  border-color: #7c95bc;
  box-shadow: 0 0 0 3px rgba(124, 149, 188, 0.2);
}

.login-button {
  margin-top: 18px;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: #4c6796;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 6px 14px rgba(95, 97, 203, 0.35);
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
}

.login-button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(95, 97, 203, 0.3);
}

.login-status {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: #7a7a7a;
}

.content-producto .buttons-row .button {
  height: 52px;
  line-height: 52px;
  font-size: 16px;
}
.btn-cerrar-modal {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-cerrar-float {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 9999;
}
.cant-prod-menos,
.cant-prod-mas,
.cant-prod-mas-adicion,
.cant-prod-menos-adicion {
  width: 52px;
  height: 52px;
  line-height: 52px;
  font-size: 18px;
}

.btn-prefactura {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-pedido {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-domicilio {
  border-radius: 50%;
}

.descripcion-pedido {
  width: 100%;
  max-width: 520px;
}

.descripcion-pedido label {
  display: block;
  margin-bottom: 6px;
}

.descripcion-pedido textarea {
  width: 100%;
  box-sizing: border-box;
}
.botones-centrados {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.fila-botones {
  display: flex;
  gap: 15px; /* Espacio entre botones */
  justify-content: center; /* centra los botones en la fila */
  width: 100%;
  flex-wrap: nowrap;
}

/* Fila con botón Menú */
.fila-menu {
  display: flex;
  justify-content: center; /* Centra el botón */
}

/* Estilo común para los botones */
.btn {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

/* Botón Cancelar */
.btn.cancelar {
  background-color: #5b307d;
  color: white;
  border-radius: 20px;
}
.btn.cancelar:hover {
  background-color: #a979d4;
}

/* Botón Enviar */
.btn.enviar {
  background-color: #7c95bc;
  color: white;
  border-radius: 20px;
}
.btn.enviar {
  background-color: #4c6796;
}
.btn.enviar:disabled {
  background-color: #bfc7d4;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.8;
}
.btn.enviar:disabled {
  background-color: #bfc7d4;
}

/* Botón Menú */

.btn-menu {
  background-color: #e1e1e1;
  color: white;
  margin-top: 20px;
  border-radius: 20px;
  text-align: center;
  padding: 10px 60px 10px; /* más espacio a los lados */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px; /* opcional, ajusta tamaño del texto */
}

/* Igualar tamaño de botones de pedido con "Nuestro Menú" */
.buttons-pedido-wrapper .btn,
.buttons-pedido-wrapper .btn-menu {
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Botones cancelar/enviar siempre en la misma fila y adaptables */
.buttons-pedido-wrapper .fila-botones .btn {
  flex: 1 1 0;
  width: clamp(140px, 42vw, 240px);
}

.btn-menu:hover {
  background-color: #7c95bc;
}

.btn-menu:hover {
  background-color: #7c95bc;
}

.preloader {
  background-image: url("../img/loader.jpg");
  background-size: 32;
  background-repeat: no-repeat;
  background-position: center;
}

.modal .modal-title,
.modal .modal-text {
  text-align: center;
}

.lbl-estado {
  text-align: center;
  font-style: italic;
  font-weight: bold;
  margin-top: 10px;
  font-size: 12px;
}

.navbar-inner .left {
  margin-left: 10px;
}

.navbar-inner .right {
  margin-right: 10px;
}

.navbar-inner .center {
  width: 100%;
  text-align: center;
}

.navbar-inner i.fa {
  color: #fff;
}

.panel-right > .content-block {
  padding: 0px;
  margin: 0px;
}

.panel-right .content-block-title {
  margin: 10px;
  padding-top: 10px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  padding-bottom: 0px;
  margin-bottom: -18px;
}

.content-block-menu
  .list-block:not(.media-list)
  .accordion-item-expanded:not(.media-item)
  > .item-link
  .item-inner {
  background-image: none;
  padding-left: 5px;
}

.content-block-menu .list-block .item-link .item-inner {
  background-image: none;
  padding-left: 5px;
}

.content-block-menu .list-block .item-has-child > .item-link .item-inner {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%2060%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'm60%2061.5-38.25%2038.25-9.75-9.75%2029.25-28.5-29.25-28.5%209.75-9.75z'%20fill%3D'%23c7c7cc'%2F%3E%3C%2Fsvg%3E");
  padding-left: 5px;
}

.content-block-menu
  .list-block:not(.media-list)
  .item-has-child.accordion-item-expanded:not(.media-item)
  > .item-link
  .item-inner {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%2060%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'm60%2061.5-38.25%2038.25-9.75-9.75%2029.25-28.5-29.25-28.5%209.75-9.75z'%20transform%3D'translate(115%2C%2030)%20rotate(90)'%20fill%3D'%23c7c7cc'%2F%3E%3C%2Fsvg%3E");
  padding-left: 5px;
}

.content-block-menu .image-categoria {
  width: 40px;
  height: 40px;
}

/* Categorias en formato card */
.content-block-menu .categorias-list {
  padding: 0;
}

.content-block-menu .categorias-grid {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.content-block-menu .categorias-grid > li {
  list-style: none;
  width: 33.3333%;
  padding: 6px;
  box-sizing: border-box;
}

.content-block-menu .categoria-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 10px 8px;
  border: 1px solid #b680fa;
  border-radius: 8px;
  background: rgba(117, 65, 198, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.content-block-menu .categoria-card .item-inner {
  background-image: none;
  padding: 0;
}

.content-block-menu .categoria-card .item-title {
  font-size: 14px;
  font-weight: bold;
  color: #7a3d6f;
  white-space: normal;
  line-height: 1.2;
  margin-top: 6px;
  text-align: center;
  width: 100%;
}

.content-block-menu .categoria-card-image img.image-categoria {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  filter: brightness(0) saturate(100%) invert(19%) sepia(36%) saturate(1350%)
    hue-rotate(254deg) brightness(90%) contrast(95%);
}

.content-block-menu .item-has-child > .item-link.categoria-card .item-inner {
  background-image: none;
}

.content-block-menu .categoria-card.categoria-activa {
  border-color: #4c6796;
  box-shadow: 0 4px 10px rgba(76, 103, 150, 0.25);
  border: 3px solid #4c6796;
  background: #aac2e4;
}

.content-block-menu .categoria-card.categoria-activa .item-title,
.content-block-menu .categoria-hija-item.categoria-activa .item-title {
  color: #4c6796;
}

.content-block-menu .categoria-card.categoria-activa img.image-categoria {
  filter: brightness(0) saturate(100%) invert(38%) sepia(18%) saturate(1034%)
    hue-rotate(183deg) brightness(92%) contrast(90%);
}

.content-block-menu .accordion-item-expanded > .item-link.categoria-card {
  border-color: #4c6796;
  box-shadow: 0 4px 10px rgba(76, 103, 150, 0.25);
  border-top: 3px solid #4c6796;
  background: #aac2e4;
}

.content-block-menu
  .accordion-item-expanded
  > .item-link.categoria-card
  .item-title {
  color: #4c6796;
}

.content-block-menu
  .accordion-item-expanded
  > .item-link.categoria-card
  img.image-categoria {
  filter: brightness(0) saturate(100%) invert(38%) sepia(18%) saturate(1034%)
    hue-rotate(183deg) brightness(92%) contrast(90%);
}

.content-block-menu .categoria-children .categorias-grid {
  margin-top: 6px;
  width: 100%;
}

.content-block-menu .categorias-hijos-list,
.content-block-menu .categorias-hijos-list > li {
  padding: 0;
}

.content-block-menu .categoria-hija-item .item-link,
.content-block-menu .categoria-hija-item .item-inner {
  padding: 0;
}

.content-block-menu .categoria-hija-item .item-title {
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
  padding: 0;
  color: #8d95a4;
}

@media only screen and (max-width: 768px) {
  .content-block-menu .categorias-grid > li {
    width: 33.3333%;
  }
}

.list-products .content-product-title {
  text-align: center;
  margin: 5px;
  font-size: 25px;
  font-weight: bold;
  margin-bottom: -25px;
  padding-top: 10px;
}

.list-products .image-producto {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.image-producto-detalle {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.cards-products {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  padding: 0 14px 10px;
}

.product-card {
  border-radius: 20px;
  border: 1px solid rgba(76, 76, 78, 0.08);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(76, 76, 78, 0.05);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(76, 76, 78, 0.12);
}

.product-card-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
}

.product-card-media {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(117, 65, 198, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-media .image-producto {
  width: 42px;
  height: 42px;
  filter: brightness(0) saturate(100%) invert(19%) sepia(36%) saturate(1350%)
    hue-rotate(254deg) brightness(90%) contrast(95%);
}
.product-card-info {
  flex: 1;
  min-width: 0;
}

.product-card-title-row {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.product-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #2e2f38;
  line-height: 1.2;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  flex: 1;
  min-width: 0;
}

.product-card-price {
  font-size: 16px;
  font-weight: 650;
  color: rgb(76, 103, 150);
  white-space: nowrap;
}

.product-card-description {
  margin-top: 4px;
  font-size: 14px;
  color: #686c78;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  line-height: 1.3;
  max-height: calc(1.3em * 2);
}

.accordion-level-2 {
  margin-left: 10px !important;
}

.accordion-level-3 {
  margin-left: 20px !important;
}

.accordion-level-4 {
  margin-left: 30px !important;
}

.accordion-level-5 {
  margin-left: 40px !important;
}

.list-block.media-list .item-link .item-title-row {
  background-image: none;
  padding-right: 0px;
}

.list-products .item-title-row .item-after {
  font-size: 17px;
  color: rgba(117, 65, 198, 0.08);
}

.content-producto {
  margin: 0px;
}

.content-producto .list-block.list-variaciones .label {
  width: 80% !important;
}

.content-producto-nombre {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 5px;
  text-shadow: 1px 2px 2px #aaa;
}

.content-producto-detalles {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-producto-imagen {
  text-align: center;
}

.content-producto-imagen img,
.image-producto {
  max-width: 100px; /* o el tamaño que quieras */
  max-height: 100px;
  object-fit: contain;
}

.content-producto-valor {
  font-size: 22px;
  font-weight: bold;
}

.content-producto-valor-centered {
  text-align: center;
  margin-top: 8px;
}

.content-producto-descripcion {
  font-size: 16px;
  text-align: center;
  margin-top: 8px;
  max-width: 90%;
}

.content-producto-cantidad-precio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.content-producto-cantidad-precio .buttons-row {
  margin: 0;
}

.content-producto .list-block.accordion-list {
  margin: 15px 0;
}

.content-producto .tabs {
  padding: 5px;
  border: 1px solid #5b307d;
  border-radius: 0px 0px 5px 5px;
  margin-top: 0px;
  margin-bottom: 15px;
}

.content-producto .tab-button {
  margin-bottom: 0px;
  padding: 7px;
  margin-top: 5px;
}

.content-producto .tab-button .tab-link {
  border: 1px solid #5b307d;
  margin-top: 5px;
  border-bottom: 0px;
  border-radius: 5px 5px 0px 0px;
  text-transform: uppercase;
  margin-left: 5px;
  margin-right: 0px;
  padding: 10px;
}

.content-producto .tab-button .tab-link.active {
  border-bottom: 1px solid rgb(239, 239, 244);
  text-shadow: 0px 0px 20px;
  background-color: rgb(239, 239, 244);
}

.content-producto .list-block.list-variaciones .item-inner,
.content-producto .list-block.list-variaciones .item-content,
.content-producto .list-block.list-variaciones .item-input {
  min-height: 20px;
  padding: 0px;
}

.content-producto .list-block.list-variaciones .item-input {
  margin-bottom: 1px;
  margin-top: 1px;
}

.content-producto-cantidad {
  margin-left: auto;
  margin-right: auto;
  display: table;
}

.content-producto-cantidad .cant-prod-menos,
.content-producto-cantidad .cant-prod-mas {
  width: 36px !important;
  height: 36px;
  line-height: 36px;
  border-radius: 150%;
  padding: 0;
  margin-left: 0px;
  margin-right: 0px;
}

.content-producto-cantidad .cant-products {
  width: 64px;
  height: 36px;
  margin-top: 0px;
  margin-left: -2px;
  margin-right: -3px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  border: none;
  background: transparent;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
}

.item-inner .content-producto-cantidad-adicion {
  margin-left: -73px;
  margin-right: 0px;
  display: table;
}

.item-inner .content-producto-cantidad-adicion .cant-prod-menos-adicion,
.item-inner .content-producto-cantidad-adicion .cant-prod-mas-adicion {
  min-width: 40px !important;
  margin-left: 0px;
  margin-right: 0px;
}

.item-inner .content-producto-cantidad-adicion .cant-products-adicion {
  width: 30px;
  height: 38px;
  margin-top: 2px;
  margin-left: -2px;
  margin-right: -3px;
  text-align: center;
  /*font-size: 20px;
  font-weight: bold;*/
}

.item-text {
  text-overflow: ellipsis;
  overflow: hidden;
  display: block;
  white-space: nowrap;
}

.item-after {
  color: #5b307d;
  text-align: right;
  width: 100%;
  display: block;
  font-size: 18px;
  font-weight: bold;
}

.list-cuenta .item-media {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(117, 65, 198, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-cuenta .item-media .image-producto {
  width: 42px;
  height: 42px;
  filter: brightness(0) saturate(100%) invert(19%) sepia(36%) saturate(1350%)
    hue-rotate(254deg) brightness(90%) contrast(95%);
}

.list-cuenta .item-total,
.item-total {
  font-size: 22px;
  color: #5b307d;
  display: block;
  text-align: right;
  font-weight: bold;
  margin: 5px;
}

.item-text-adicionar,
.item-text-cambiar,
.item-text-quitar {
  font-size: 10px;
}

.content-block {
  margin-top: 0px;
  padding-bottom: 15px;
}

.content-pedido-title {
  text-align: center;
  margin: 5px;
  font-size: 25px;
  font-weight: bold;
  margin-bottom: -30px;
  margin-top: 10px;
}

.content-block-title {
  margin-top: 10px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #4c4c4e;
}

.panel-left-bottom {
  position: absolute;
  bottom: 0px;
  width: 100%;
}

.panel-left-bottom .button {
  margin-top: 5px;
}

.panel-left-top .button {
  margin-bottom: 5px;
}

#btn-buscar {
  width: 65px;
  float: right;
}

#txt-buscador-producto {
  float: left;
  width: calc(100% - 65px);
}

.resultado-busqueda {
  height: calc(100vh - 140px);
  overflow: hidden;
  overflow-y: auto;
  padding-top: 0;
}

.elevation-3 {
  box-shadow:
    0px 3px 3px -2px rgba(76, 76, 78, 0.2),
    0px 3px 4px 0px rgba(76, 76, 78, 0.14),
    0px 1px 8px 0px rgba(76, 76, 78, 0.12);
}

.open-popup-categorias {
  bottom: 0;
  left: 0;
  margin-bottom: 0;
  width: -webkit-fill-available;
}

.card-bordered {
  border-width: 3px !important;
  border-style: solid !important;
}

.card-bordered-red {
  border-color: #4c6796 !important;
}

.card-bordered-blue {
  border-color: #7c95bc !important;
}

.bg-color-blue-dark {
  background-color: #4c6796 !important;
}

.bg-color-blue {
  background-color: #4c6796 !important;
}

.bg-color-blue-triiba {
  background-color: #4c6796 !important;
}

.bg-color-purple-triiba {
  background-color: #5b307d !important;
}

.button.button-fill.color-blue {
  background-color: #4c6796 !important;
}

.button.button-fill.color-blue-exp {
  background-color: #7c95bc !important;
}

.button.button-fill.color-purple-triiba {
  background: #4c6796 !important;
  color: #fff;
}


.button-circle {
  width: 50px;
  height: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; 
  background-color: #4c6796; 
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.button.button-fill.color-blue-cancel,
.button.button-raised.button-fill.color-blue-cancel,
.button.color-blue-cancel {
  background-color: #4c6796 !important;
  color: #fff;
}

.card-header-sectores::after {
  background-color: transparent !important;
}

.sector-card .card-header-sectores {
  justify-content: end;
  padding: 5px;
  min-height: 0;
}

.sector-card .sector-icon {
  font-size: 48px;
  padding: 10px;
}

.sector-card .sector-title {
  font-size: x-large;
  padding: 5px;
}

.sector-svg {
  filter: brightness(0) saturate(100%) invert(38%) sepia(18%) saturate(1034%)
    hue-rotate(183deg) brightness(92%) contrast(90%);
}

#btn-buscar-mesas {
  margin-left: 8px;
}

.mesas-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mesas-search-row #txt-buscador-mesas {
  flex: 1;
  width: 100%;
}

.btn-small {
  height: 26px !important;
  font-size: 13px !important;
}

/* .card-resizable {
  width: 233px;
} */

@media only screen and (min-width: 768px) {
  .md-mx-5 {
    margin: 0px 5px 0px 5px;
  }
}

@media only screen and (max-width: 768px) {
  .title-mesas {
    line-height: 1 !important;
    white-space: normal !important;
    padding-left: 45px;
  }
  #btn-buscar-mesas {
    margin: 0;
  }
  .card-resizable {
    width: unset !important;
  }

  .text-large {
    font-size: large !important;
  }
}
.btn-volver-flotante {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 10;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-buscar-flotante {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 10;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #4c6796 !important;
  color: #f0f0f0 !important;
  border-radius: 50%;
}

/* Mesa desactivada → azul */
.mesa-desactivada .mesa-icon {
  color: #ffffff; /* azul */
}

.mesa-item:not(.mesa-desactivada):not(.mesa-ocupada) .mesa-icon {
  color: #e1e1e1;
}
.mesa-ocupada .mesa-icon {
  color: #4c6796;
}
.header-categorias {
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
}

.titulo-categorias {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: bold;
}

/* Contenedor de la card */
.mesa-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 0;
  margin: 0;
  border-style: solid;
  border-radius: 8px;
  transition: border-color 0.2s ease;
  padding: 4px;
  border-width: 3px;
}
.row.no-gutter .mesa-item {
  width: 100%;
  height: 100%; /* ocupa todo el alto disponible */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* separa header, contenido y footer */
  align-items: center;
  padding: 10px; /* opcional */
  box-sizing: border-box;
}

.mesa-item {
  width: 100%;
}
.mesa-item.mesa-abierta {
  border-color: #4c6796;
  box-shadow: 0 4px 15px rgba(76, 103, 150, 0.5); /* azul */
}

/* Opcional: shadow más sutil para mesas cerradas */
.mesa-item.mesa-cerrada {
  border-color: #e1e1e1;
  box-shadow: 0 4px 12px rgba(124, 149, 188, 0.3); /* azul suave */
}
/* Header: Mesero */
.mesa-item .card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
}
.nombre-mesero {
  font-weight: bold;
  font-size: 12px;
}

/* Nombre de la mesa */
.mesa-item .card-content {
  font-size: 14px;
  border: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Footer: Total */
.mesa-item .card-footer {
  font-weight: bold;
  font-size: 14px;
  padding: 0;
  color: #4c6796;
}

/* Footer según estado de la mesa */
.mesa-item.mesa-abierta .card-footer {
  color: #4c6796; /* azul */
}

.mesa-item.mesa-cerrada .card-footer {
  color: #e1e1e1; /* gris */
}

.mesa-item.mesa-ocupada .card-footer {
  color: #ffffff; /* blanco */
}

/* Card resizable adaptativa */
.mesa-item.card-resizable {
  width: 110;
}

@media only screen and (max-width: 768px) {
  .mesa-item.card-resizable {
    width: 100% !important;
  }
}
.mesa-item .mesa-icon img {
  width: 60px;
  height: 60px;
  margin: 0;
  transition: transform 0.2s ease;
}

/* Icono azul cuando la mesa está abierta */
.mesa-item.mesa-abierta .mesa-icon img {
  filter: brightness(0) saturate(100%) invert(38%) sepia(16%) saturate(1040%)
    hue-rotate(182deg) brightness(92%) contrast(88%);
}

/* Contenedor base de sector */
.sector-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 8px;
  margin: 5px;
  border-width: 4px;
  border-style: solid;
  border-radius: 8px;
  transition: border-color 0.2s ease;
  /* min-width: 180px;
  flex: 1 1 180px; */
  box-sizing: border-box;
}

/* Sector abierto → azul */
.sector-item.sector-abierto {
  border-color: #4c6796;
  box-shadow: 0 4px 15px rgba(76, 103, 150, 0.5);
}

/* Sector cerrado → gris o azul */
.sector-item.sector-cerrado {
  border-color: #e1e1e1;
  box-shadow: 0 4px 12px rgba(124, 149, 188, 0.3);
}

/* Header */
.sector-item .card-header {
  width: 100%;
  font-weight: bold;
  font-size: 12px;
  padding: 0;
  text-align: center;
}

/* Footer */
.sector-item .card-footer {
  font-weight: bold;
  font-size: 14px;
  color: #4c6796; /* por defecto azul, opcional */
}

/* Footer según estado */
.sector-item.sector-abierto .card-footer {
  color: #ffffff; /* blanco sobre azul */
}

.sector-item.sector-cerrado .card-footer {
  color: #e1e1e1; /* gris */
}

.sectores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 5px;
}

.sector-icon img {
  width: 60px;
  height: 60px;
  display: block;
  margin: 0 auto;
}

/* CONTENEDOR GENERAL */
.list-pedido {
  padding: 10px 14px 20px;
}

/* CONTENEDOR DE CARDS */
.cards-pedido {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

/* CARD INDIVIDUAL */
.pedido-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 10px;
}

/* CONTENIDO INTERNO */
.pedido-card-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* IMAGEN */
.pedido-card-media {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(117, 65, 198, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pedido-card-media img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  filter: brightness(0) saturate(100%) invert(19%) sepia(36%) saturate(1350%)
    hue-rotate(254deg) brightness(90%) contrast(95%);
}

/* INFO */
.pedido-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* FILA TITULO + PRECIO */
.pedido-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* TITULO */
.pedido-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

/* PRECIO */
.pedido-card-total {
  font-size: 16px;
  font-weight: 650;
  color: #4c6796;
  white-space: nowrap;
}

/* DESCRIPCIÓN */
.pedido-card-description {
  font-size: 12px;
  color: #777;
  margin-top: 3px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* TOTAL GENERAL */
.pedido-total {
  margin-top: 15px;
  padding: 12px;
  background: linear-gradient(135deg, #7c95bc, #4c6796);
  border-radius: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 12px rgba(124, 149, 188, 0.3);
}
.swipeout-content.pedido-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(76, 76, 78, 0.06);
  padding: 10px;
  margin-bottom: 6px; /* separa cards */
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.swipeout-content.pedido-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 76, 78, 0.08);
}

.pedido-card-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pedido-card-media {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(117, 65, 198, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pedido-card-media img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  filter: brightness(0) saturate(100%) invert(19%) sepia(36%) saturate(1350%)
    hue-rotate(254deg) brightness(90%) contrast(95%);
}

.pedido-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pedido-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pedido-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.pedido-card-total {
  font-size: 16px;
  font-weight: 650;
  color: #4c6796;
}

.pedido-card-description {
  font-size: 12px;
  color: #777;
  margin-top: 3px;
}

/* Detalles del producto */
.producto-back-floating {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #4c6796;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.producto-back-floating:active {
  transform: scale(0.96);
}

.producto-header {
  width: 100%;
  height: 30vh;
  min-height: 200px;
  max-height: 400px;

  background: #f5f5f5;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.producto-header-img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.producto-info {
  padding: 16px;
}

.producto-precio-base {
  font-size: 22px;
  font-weight: bold;
}

.producto-titulo {
  font-size: 20px;
  font-weight: 600;
  margin-top: 5px;
}

.producto-descripcion {
  color: #777;
  margin-top: 5px;
}

.opciones-grupo {
  padding: 16px;
}

.opciones-titulo {
  font-weight: bold;
  margin-bottom: 10px;
}

.opcion-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(76, 76, 78, 0.06);
}

.opcion-select {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
}

/* Contenedor principal del adicional */
.opcion-adicional {
  display: grid;
  grid-template-columns: 1fr 200px; /* texto flexible | contador fijo */
  align-items: center;
  gap: 10px;
}

/* Evita que el texto empuje el contador */
.adicional-info {
  min-width: 0;
}

.adicional-nombre {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Columna fija del contador */
.adicional-contador {
  width: 200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.adicional-precio {
  color: #777;
}

.adicional-contador {
  display: flex;
  align-items: center;
}

.contador-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  font-size: 18px;
  background: #5b307d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.contador-btn,
.cant-prod-menos,
.cant-prod-mas,
.cant-prod-menos-adicion,
.cant-prod-mas-adicion {

  width: 40px;
  aspect-ratio: 1 / 1;
  
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border-radius: 50%;
}

.contador-input {
  width: 40px;
  text-align: center;
  border: none;
  font-weight: bold;
  background: transparent;
}

.producto-footer {
  position: relative;
  margin-top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  padding: 14px;
  padding-bottom: calc(5px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  flex-direction: row;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -6px 16px rgba(76, 76, 78, 0.08);
}

.producto-detalle {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#frmProducto {
  display: flex;
  flex-direction: column;

  flex: 1;
}

.producto-opciones {
  padding-bottom: 0;
}

.btn-agregar {
  flex: 1;
  background: #4c6796;
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 30px;
  height: 50px;
  font-size: 16px;
}
.cantidad-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f5;
  padding: 6px 10px;
  border-radius: 30px;
}

@media only screen and (max-width: 768px) {
  .login-card {
    margin-top: -200px;
  }
  .login-hero {
    height: 85%;
  }

  .login-title {
    font-size: 22px;
  }
  .row.sectores-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .mesa-item .card-content {
    font-size: 12px !important;
    white-space: normal;
  }
  .btn.cancelar,
  .btn.enviar {
    font-size: 12px;
    padding: 8px 16px;
  }
}

/* Card contenedora */
.observacion-card {
  padding: clamp(10px, 3vw, 16px);
  border-radius: clamp(12px, 3vw, 18px);
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(76, 103, 150, 0.12);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Header */
.observacion-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: clamp(13px, 3.5vw, 16px);
  color: #4c6796;
  margin-bottom: 6px;
}

.observacion-header i {
  font-size: clamp(14px, 4vw, 18px);
}

/* Textarea */
.observacion-textarea {
  width: 100%;
  min-height: clamp(60px, 15vw, 100px);
  max-height: 35vh;
  resize: none;
  padding: clamp(10px, 3vw, 14px);
  border-radius: clamp(10px, 3vw, 14px);
  border: 1px solid #e4e7ec;
  background: #f8fafc;
  font-size: clamp(14px, 3.8vw, 16px);
  font-family: inherit;
  color: #2b2b2b;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  overflow-y: auto;
}

/* Focus */
.observacion-textarea:focus {
  border-color: #7c95bc;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 149, 188, 0.12);
}
/* Hint */
.observacion-hint {
  margin-top: 4px;
  font-size: clamp(11px, 3vw, 13px);
  color: #8a8f98;
}
.buscador-card {
  width: 100%;
  height: 100%;
  margin: 20px auto;
  background: rgba(117, 65, 198, 0.08);
  border-radius: 30px;
  padding: 10px 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.content-modal {
  height: 100%;
}

.buscador-inner {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.buscador-input {
  flex: 1;
  height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(117, 65, 198, 0.08);;
  background: #f3f3f3;
  font-size: 15px;
  color: #2b2b2b;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.buscador-input:focus {
  border-color: #7c95bc;
  box-shadow: 0 0 0 3px rgba(124, 149, 188, 0.2);
}

.buscador-button {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 999px;
  background-color: #4c6796;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.buscador-button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(76,103,150,0.3);
}

.resultado-busqueda {
  margin-top: 12px;
  flex: 1;
  overflow-y: auto;
}
/* Datos Prefactura */
.pedido-linea {
  display: flex;
  gap: 20px; /* espacio entre Caja y Mesa */
}
.pedido-linea p {
  margin: 0; /* quitar margen vertical para que queden alineados */
}
.empresa-info {
  text-align: center;
  padding: 30px;
  line-height: 0.5;
}
.empresa-info p {
  margin: 0;
  font-size: 13px;
  line-height: 1.1;
  word-break: break-word;
}
.prefactura-content {
  font-size: 14px;
  line-height: 1;
  padding: 0 20px;
}
.prefactura-content hr {
  border: none;
  border-top: 1px dashed black;
  margin: 4px 0;
}
.linea-dato {
  display: flex;
  justify-content: space-between;
  line-height: 1;
}

.linea-dato span:first-child {
  font-weight: bold;
}
.linea-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 12px;
    margin-top: 5px;
  }

.total-final {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 16px;
    margin-top: 5px;
  }

.footer-content {
  text-align: center;
  padding: 0 10px;
  line-height: 1;
  margin: 0;
}
.empresa-footer {
  text-align: center;
  padding: 10px;
  line-height: 0.5;
}
.tabla-prefactura {
  width: 100%;
  border-collapse: collapse;
}

.tabla-prefactura thead tr {
  border-top: 1px dashed #000;
  border-bottom: 1px dashed #000;
  
}

.tabla-prefactura th {
  padding: 4px 0;
  font-size: 13px;
}
