@import url('https://fonts.googleapis.com/css2?family=Saira:ital,wght@0,100..900;1,100..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&family=Space+Grotesk:wght@300..700&display=swap');

/* RESET BÁSICO */
*{
  font-family: 'Saira', sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #333;
}
/* PALETA Y UTILIDADES */
:root {
  --white: #ffffff;
  --cr-orange: #f58220;
  --cr-orange-dark: #d56a10;
  --cr-gray-light: #f7f7f7;
  --cr-gray-border: #dedede;
  --cr-text-soft: #777;
  --cr-radius-pill: 999px;
  --cr-radius-card: 18px;
  --shadow-soft: 0 10px 20px rgba(0, 0, 0, 0.12);
}
b{
  font-weight: 600;
}
.background-1{
  background-image: url('../../assets/img/bg_port.jpg');
  background-size: contain;
}
.text-center{
  text-align: center;
}
.text-right{
  text-align: right;
}
.w-100{
  width: 100%;
}
.d-flex{
  display: flex;
}
.justify-content-between{
  -ms-flex-pack: justify!important;
  justify-content: space-between !important;
}
.box-footer{
  /*position: absolute;*/
  bottom:0;
  left:50%;
  width: 100%;
  max-width: 100%;
  /*transform: translate(-50%, 0);*/
}
/* CONTENEDOR TIPO APP (MÓVIL) */
.app-shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.app-card {
  width: 100%;
  background: #fff;
  overflow: hidden;
}
.app-card-general{
  /*min-height: 100vh;*/
  width: 100%;
  position: relative;
  /*padding-bottom: 333px;*/
}
.banner-hero .logo{
  margin-bottom: 35px;
}
.decoration-top{
  margin: 0 auto;
  display: table;
  width: 100%;
}
.decoration-bottom{
  max-width: 100%;
  margin: 0 auto;
  display: table;
  width: 100%;
  pointer-events: none;
  position: relative;
  z-index: -1;
}
/* HERO / HEADER CON FONDO */
.app-hero {
  position: relative;
  padding: 32px 24px 18px;
  color: #fff;
  height: 270px;
  align-content: end;
}
.app-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), transparent 40%, rgba(0,0,0,0.15));
  pointer-events: none;
}

.app-hero__inner {
  position: relative;
  z-index: 1;
}

.app-hero__logo {
  text-align: center;
  margin-bottom: 40px;
  margin-top: 40px;
}

.app-hero__logo img {
  height: 110px;
}

.app-hero__title {
  font-size: 1.7rem;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.app-hero__subtitle {
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  margin-top: 4px;
  max-width: 400px;
  line-height: 1.2;
  margin-left: auto;
  margin-right: auto;
  color: var(--cr-orange);
}

/* CUERPO / CONTENIDO */
.app-body {
  padding: 22px 25px 20px;
  gap: 18px;
  position: relative;
  z-index: 2;
}

/* CAMPOS DE FORMULARIO */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--cr-text-soft);
}

.input-pill {
  width: 100%;
  border-radius: var(--cr-radius-pill);
  border: 1px solid var(--cr-gray-border);
  padding: 9px 10px;
  font-size: 0.88rem;
  outline: none;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.input-custom input,
.input-pill input{
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.9rem;
  width: 100%;
}
.input-custom input{
  padding: 4px 5px;
}
.input-custom{
  width: 100%;
  border-radius: var(--cr-radius-pill);
  border: 1px solid var(--cr-gray-border);
  padding: 9px 13px;
  font-size: 0.88rem;
  outline: none;
  background: #fff;
}
.input-pill__icon{
  height: 30px;
}
.input-pill__icon img{
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

/* BOTONES */
.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--cr-radius-pill);
  border: none;
  padding: 13px 15px;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 1px;
  background: var(--cr-orange);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
  box-shadow: 0 8px 16px rgba(245,130,32,0.25);
}

.btn-main:hover {
  background: var(--cr-orange-dark);
  transform: translateY(-1px);
}

.btn-main:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

.btn-main--full {
  width: 100%;
}

/* MINI NAV ICONO (LA TRES RAYITAS) */
.app-footer-icon {
  display: flex;
  justify-content: center;
  margin: 60px auto;
  width: 30px;
  cursor: pointer;
  height: 24px;
  position: relative;
  align-items: center;
}
.app-footer-icon span{
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: var(--cr-orange);
  position: relative;
}

.app-footer-icon::before,
.app-footer-icon::after{
  content: "";
  position: absolute;
  left: 0;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: var(--cr-orange);
}
.app-footer-icon::before {
  top:0;
}
.app-footer-icon::after {
  bottom:0;
}

/* LISTA DE PEDIDOS (CLIENTE) */
.orders-card {
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--cr-gray-border);
  padding: 12px 9px 8px 0;
  max-height: 370px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 25px;
}

.orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.orders-scroll{
  overflow-y: auto;
  padding-right: 4px;
}
.orders-scroll::-webkit-scrollbar {
    width: 8px;
}
.orders-scroll::-webkit-scrollbar-track {
  background: #d4d4d6;
  border-radius: 4px;
}
.orders-scroll::-webkit-scrollbar-thumb {
  background-color: #f58220 !important;
  border-radius: 4px;
}
.orders-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #f58220 !important;
}
.orders-scroll::-webkit-scrollbar-thumb:active {
  background-color: #f58220 !important;
}

.order-row {
  display: grid;
  grid-template-columns: 68px 1fr 60px 92px; /* id | odc | arrow | acciones */
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  font-size: 1.2rem;
  cursor: pointer;
  margin: 0 -2px;
  transition: background 0.12s ease, transform 0.05s ease;
}
.order-row:hover {
  background: #fdf3ea;
}
.order-row.activo{
  background: var(--cr-orange);
  color: #fff;
  transform: translateX(2px);
}
.order-row__id {
  font-weight: 700;
  color:var(--cr-orange);
}
.order-row.activo .order-row__id{
  color: var(--white);
}
.order-row_arrow {
  width:60px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.order-row__odc {
  font-size: 1.2rem;
}
.order-row__actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  align-items: center;
  height: 30px;
  align-items: end;
}
.badge-status {
  border-radius: 999px;
  color: #555;
  font-size: 1rem;
  position: relative;
  top: -4px;
}

/* TIMELINE DE ESTADOS DEL PEDIDO */
.status-steps {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 18px;
  position: relative;
}
.status-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}
.status-step__icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  /*background: #eee;*/
  background: #c1c1c1;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  position: relative;
  overflow: hidden;
}
.status-step__icon .mitad{
  background-color: var(--cr-orange);
  position: absolute;
  top:0;
  left:0;
  width: 50%;
  height: 100%;
}
.status-step__label {
  font-size: 0.8rem;
}
.status-steps .line{
  transform: translate(-50%, -50%);
  width: 10%;
  height: 3px;
  background: #cbcbcb;
  position: absolute;
  top: calc(50% - 15px);
  left: 25%;
}
.status-steps .line.line-1{
  left: 25%;
}
.status-steps .line.line-2{
  left: 50%;
}
.status-steps .line.line-3{
  left: 75%;
}
.status-steps .line.orange{
  background-color: var(--cr-orange);
}
.status-step--done .status-step__icon {
  background-color: var(--cr-orange);
  background-image: url('../../assets/img/check.svg');
  background-size: contain;
}
.status-step__icon .loading{
  background-image: url('../../assets/img/loading.gif') !important;
  background-size: 140%;
  background-position: center;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}
.status-step--current .status-step__icon {
  background-color: #c1c1c1;
}

/* INFO DEL PEDIDO CLIENTE */
.order-detail-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  padding: 15px 20px 20px 20px;
}
.order-detail-title{
  font-weight: 400;
  font-size: 1.05rem;
}
.order-detail-title .numb{
  color: var(--cr-orange);
  font-weight: 400;
}
.order-detail-header a{
  color: var(--cr-orange);
  text-decoration: none;
}
.order-detail-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 0.8rem;
}

.order-detail-dates .pill-label {
  font-size: 0.7rem;
  color: var(--cr-text-soft);
  margin-bottom: 3px;
}

.order-detail-dates .pill-value {
  border-radius: var(--cr-radius-pill);
  border: 1px solid var(--cr-gray-border);
  padding: 6px 8px;
  text-align: center;
  font-size: 0.78rem;
}

/* NOTAS / HISTORIAL */
.notes-list {
  border-radius: 18px;
  border: 1px solid var(--cr-gray-border);
  padding: 15px 11px 15px 20px;
  background: #fafafa;
  font-size: 1rem;
}
.notes-list .inner{
  max-height: 175px;
  overflow-y: auto;
  padding-right: 10px;
}
.notes-list .inner::-webkit-scrollbar {
    width: 8px;
}
.notes-list .inner::-webkit-scrollbar-track {
  background: #d4d4d6;
  border-radius: 4px;
}
.notes-list .inner::-webkit-scrollbar-thumb {
  background-color: #f58220 !important;
  border-radius: 4px;
}
.notes-list .inner::-webkit-scrollbar-thumb:hover {
  background-color: #f58220 !important;
}
.notes-list .inner::-webkit-scrollbar-thumb:active {
  background-color: #f58220 !important;
}
.notes-list .inner ul {
  list-style: none;
}

.notes-list li {
  margin-bottom: 12px;
  padding-left: 16px;
  position: relative;
  line-height: 1.25;
}
.notes-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  border-radius: 100%;
  font-size: 22px;
  top: 0;
  height: 10px;
  line-height: 1.2;
  color: var(--cr-orange);
}

.d-flex{
  display: flex !important;
}
.btn-search{
  width: 33px;
  height: 33px;
}
.box-marca img{
  max-height: 35px;
}
.box-marca{
  margin-left: 20px;
  align-content: center;
}

/* PARCIALES (ACORDEÓN) */
.partial-list {
  /*border: 1px solid var(--cr-gray-border);*/
  background: #fff;
  overflow: hidden;
  margin-bottom: 100px;
}

.partial-item {
  border-bottom: 1px solid #eee;
}

.partial-item:last-child {
  border-bottom: none;
}

.partial-header {
  padding: 10px 12px;
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.partial-header .caret {
  display:inline-block;
  width:24px;
  height:24px;
  background: url('../../assets/img/arrow-top.svg') center/14px 14px no-repeat;
  transition: transform .25s ease;
  font-size:0;
}
.partial-item:not(.open) .partial-header .caret {
  transform: rotate(180deg); /* cerrado apunta abajo */
  filter: brightness(0) saturate(100%) invert(57%) sepia(68%) saturate(1853%) hue-rotate(346deg) brightness(99%) contrast(95%);
}
/* Acordeón cuerpo: animación altura dinámica controlada por JS */
.partial-body {
  height: 0;
  overflow: hidden;
  padding: 0 12px;
  font-size: 0.78rem;
  transition: height .3s ease;
}

.partial-body-inner {
  padding: 15px 20px;
  display: grid;
  gap: 6px;
  border: 1px solid #dfdfdf;
  margin: 9px 15px 23px 15px;
  border-radius: 20px;
  font-size: 16px;
}
.partial-body-inner .fila{
  display: flex;
  flex-wrap: wrap;
  margin: 3px 0;
}
.partial-body-inner .fila > *{
  flex-shrink: 0;
  width: 50%;
  flex: 0 0 auto;
}
.partial-item.open .partial-body {
  will-change: height;
}

.partial-meta-label {
    align-content: center;
}
.partial-meta-pill {
  border-radius: var(--cr-radius-pill);
  border: 1px solid var(--cr-gray-border);
  padding: 6px 18px;
  display: inline-block;
}
.borde-0{
  border:0 !important;
}
/* LOGO TRANSPORTISTA (placeholder) */
.carrier-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* BOTÓN “REGRESAR AL INICIO” */
.btn-back-wrapper {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

/* LOGIN (CLIENTE / VENDEDOR) CAMPOS CENTRADOS */
.login-form {
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  max-width: 450px;
}
.login-form .footer-form{
  margin-top:10px;
  margin-bottom: 20px;
  text-align: center;
}
.login-form .form-group {
  margin-bottom: 12px;
}

/* VISTA VENDEDOR: FORM DE CONSULTA */
.vendor-welcome {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 500;
}

/* TOGGLE CERRAR PEDIDO */
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.toggle-label-main {
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  width: 56px;
  height: 26px;
  display: inline-block;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ddd;
  border-radius: 999px;
  transition: 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--cr-orange);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(26px);
}

/* ÁREA DE COMENTARIOS (VENDEDOR) */
.comments-add {
  display: flex;
  gap: 8px;
  margin-top: -4px;
}

.comments-add input {
  width: 100%;
  min-height: 32px;
  border-radius: 0;
  border: 0;
  padding: 8px 10px;
  font-size: 0.8rem;
  resize: vertical;
  background: #fafafa;
  outline: 0;
}
.comments-add button {
  align-self: flex-start;
  font-size: 0.7rem;
  padding: 3px 15px;
  margin-top: 4px;
}

.comments-existing {
  margin-top: 8px;
}

.comments-existing .notes-list {
  max-height: 110px;
}
.notes-list .line {
  height: 2px;
  width: 100%;
  background: #cbcbcb;
  margin: 7px 0 19px 0;
}
.container-medio{
  max-width: 575px;
  width: 100%;
  margin: 0 auto;
}
.bt-main-medio {
  max-width: 280px;
  margin: 10px auto 0 auto;
}
.GroupCustom{
  display: flex;
}
.GroupCustom .form-label{
  width: 90px;
  align-content: center;
  color: var(--cr-orange);
  text-align: right;
  font-size: 1rem;
  padding-right: 12px;
}
/* ===== MENÚ LATERAL ===== */
.app-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(1px);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 90;
}
.app-overlay.is-visible {
  opacity: 1;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(135deg, #fff 0%, #fff 65%, #fef7f1 100%);
  box-shadow: 0 0 0 rgba(0,0,0,0), 0 12px 28px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(-105%);
  transition: transform 0.33s cubic-bezier(.7,.05,.36,1), box-shadow 0.3s ease;
  z-index: 100;
  border-right: 4px solid var(--cr-orange);
}
.side-menu.is-open {
  transform: translateX(0);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

.side-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 14px;
  border-bottom: 1px solid var(--cr-gray-border);
}
.side-menu__title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--cr-orange);
}
.side-menu__close {
  background: var(--cr-orange);
  color: #fff;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(245,130,32,0.35);
  transition: background .18s ease, transform .18s ease;
}
.side-menu__close:hover { background: var(--cr-orange-dark); }
.side-menu__close:active { transform: scale(.92); }

.side-menu__list {
  list-style: none;
  padding: 18px 0 28px;
  overflow-y: auto;
  flex: 1;
}
.side-menu__list::-webkit-scrollbar { width: 8px; }
.side-menu__list::-webkit-scrollbar-track { background: #f1f1f1; }
.side-menu__list::-webkit-scrollbar-thumb { background: var(--cr-orange); border-radius: 50px; }

.side-menu__link {
  display: block;
  padding: 14px 22px 12px 22px;
  font-size: .92rem;
  text-decoration: none;
  color: #333;
  position: relative;
  letter-spacing: .6px;
  font-weight: 500;
  transition: background .18s ease, color .18s ease, padding-left .25s ease;
}
.side-menu__link::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--cr-orange);
  border-radius: 50%;
  transform: translate(-140%, -50%);
  opacity: 0;
  transition: transform .3s cubic-bezier(.7,.05,.36,1), opacity .2s ease;
}
.side-menu__link:hover {
  background: #fff4eb;
  color: var(--cr-orange-dark);
  padding-left: 30px;
}
.side-menu__link:hover::after {
  transform: translate(0, -50%);
  opacity: 1;
}

@media (max-width: 480px) {
  .side-menu { max-width: 86%; }
}
.banner-hero .logo img{
  max-width: 100px;
}
.banner-hero .title-pedido{
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-top: 4px;
  max-width: 400px;
  line-height: 1.2;
  margin-left: auto;
  margin-right: auto;
  color: var(--cr-orange);
}
.banner-hero .subtitle-pedido{
  font-size: 1.6rem;
  text-align: center;
}
.badge-doc {
  width: 30px;
  height: 30px;
  background-size: contain;
  font-size: 0;
  background-color: transparent;
  margin: 0 3px;
  display: inline-block;
}
.badge-doc.badge-doc--pdf{
  background-image: url('../../assets/img/ico-pdf.svg');
}
.badge-doc.badge-doc--xml{
  background-image: url('../../assets/img/ico-xml.svg');
}
.order-row .order-row_arrow .arrow {
  background-image: url(../../assets/img/line-dashed.png);
  width: 80px;
  height: 15px;
  background-size: contain;
  background-repeat: no-repeat;
}
.order-row.activo .order-row_arrow .arrow{
  filter: brightness(0) invert(1);
}
.order-row.activo .badge-status{
  color: var(--white);
}
.btn-return-outline{
  padding: 8px 25px !important;
  font-size: 0.85rem !important;
  background: transparent !important;
  color: var(--cr-orange) !important;
  background: var(--cr-orange);
  border: 1px solid var(--cr-orange) !important;
}
.logo-foot{
  max-width: 70px;
  margin-top: 50px;
}
.return-app {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 40px;
  bottom: 15px;
  left: 55px;
}
.columnas-detail .fila{
  display: flex;
  flex-wrap: wrap;
  margin: 7px 0;
}
.columnas-detail .fila > *{
  flex-shrink: 0;
  width: 50%;
  flex: 0 0 auto;
}
.columnas-detail{
  max-width: 450px;
  margin: 0 auto 40px auto;
}
.search-text{
  padding-right: 20px;
}
.search-text .text{
  color:var(--cr-orange);
  position: relative;
  top: -1px;
  font-size: 13px;
}
.search-text .line{
  height: 12px;
  margin-left: 10px;
}
.search-text .search{
  height: 30px;
  margin: -14px 0 -10px 4px;
}
.toggle-cerrar{
  display: inline-block;
  border-radius: var(--cr-radius-pill);
  border: none;
  padding: 4px 11px;
  margin-left: 10px;
  font-size: 11px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  background: var(--cr-orange);
  color: #fff;
  min-width: 80px;
  cursor: pointer;
}
.d-none{
  display: none !important;
}
.labelCommet{
  margin: 0 0 5px 15px;
  font-size: 14px;
}
.spaceCommet{
  height: 40px;
}
@media (max-width: 575px){
  .banner-hero{
    padding-top: 25px;
  }
  .banner-hero .title-pedido {
    font-size: 28px;
  }
  .app-card-general {
    padding-bottom: 34vw;
  }
  .box-footer{
    position: absolute;
    transform: translate(-50%, 0);
  }
  .return-app {
    width: 28px;
    bottom: -1px;
    left: 26px;
  }
  .notes-list{
    margin-bottom: 15px;
    font-size: 0.9rem;
    padding-left: 10px;
  }
  .search-text .search {
    height: 26px;
  }
  .search-text .text {
    font-size: 12px;
  }
  .search-text .line{
    height: 10px;
  }
  .status-step__icon {
    width: 38px;
    height: 38px;
  }
  .status-step__label {
    font-size: 0.7rem;
  }
  .status-steps {
    margin-left: auto;
    margin-right: auto;
    max-width: 310px;
  }
  .columnas-detail .fila{
    margin-bottom: 11px;
  }
  .partial-meta-pill {
    padding: 2px 18px;
  }
  .order-detail-title{
    font-size: 0.9rem;
  }
  .order-detail-header{
    padding-left: 5px;
    padding-right: 5px;
    font-size: 0.9rem;
  }
  .app-hero {
    height: 230px;
    padding-bottom: 12px;
    background-size: cover;
  }
  .app-hero__title {
    font-size: 1.4rem;
  }
  .app-hero__logo img {
    height: 65px;
  }
  .bt-main-medio{
    max-width: 145px;
    margin: 10px auto 0 auto;
    font-size: 18px;
    padding: 6px 15px;
  }
  .input-pill {
    padding: 6px 10px;
  }
  .login-form{
    max-width: 290px;
  }
  .login-form .footer-form {
    margin-top: 25px;
  }
  .login-form .form-group {
    margin-bottom: 17px;
  }
  .banner-hero .logo img {
    max-width: 72px;
  }
  .banner-hero .logo {
    margin-bottom: 45px;
  }
  .vendor-welcome {
    font-size: 1.7rem;
    font-weight: 400;
    padding: 0 15px;
  }
  .app-hero__subtitle{
    padding: 0 15px;
    font-size: 1.6rem;
  }
  .GroupCustom .form-label {
    width: 105px;
    font-size: 1.25rem;
    padding-right: 12px;
    font-weight: 700;
  }
  .input-custom input,
  .input-pill input{
    font-size: 1.2rem;
  }
  .input-custom {
    padding: 3px 13px;
  }
  .containerFormTop {
    margin-top: 50px;
    max-width: 350px;
  }
  .containerFormTop .bt-main-medio{
    max-width: 145px;
    margin: 80px auto 0 auto;
    font-size: 18px;
    padding: 6px 15px;
  }
  .banner-hero .subtitle-pedido {
    font-size: 1.1rem;
    padding: 0 15px;
    font-weight: 300;
  }
  .logo-foot {
    max-width: 57px;
    margin-top: 54px;
  }
  .btn-return-outline {
    padding: 4px 25px !important;
    font-size: 0.8rem !important;
    color:#000 !important;
  }
  .partial-header{
    font-size: 1rem;
  }
  .partial-body-inner{
    margin: 9px 0 23px 0;
    font-size: 15px;
  }
  .btn-search {
    width: 26px;
    height: 26px;
  }
  .box-marca img {
    max-height: 27px;
  }
  .box-marca {
    margin-left: 16px;
  }
  .partial-meta-pill.borde-0{
    padding-left: 5px;
  }
  .orders-card{
    margin-bottom: 40px;
    margin-top: 15px;
  }
  .order-row {
    font-size: 1rem;
  }
  .order-row__odc {
    font-size: 1rem;
  }
  .order-row .order-row_arrow .arrow {
    width: 37px;
    height: 7px;
    position: relative;
    left: -12px;
  }
  .order-row{
    grid-template-columns: 55px 1fr 34px 72px;
    padding: 7px 5px 7px 10px;
    font-size: 1rem;
  }
  .badge-status{
    font-size: 0.9rem;
  }
}
@media (max-width: 480px){
  .app-body{
    padding-left: 20px;
    padding-right: 20px;
  }
  .columnas-detail {
    font-size: 15px;
  }
}
@media (max-width: 420px){
  .order-row .order-row_arrow .arrow{
    display: none;
  }
  .order-row {
    grid-template-columns: 55px 1fr 0px 72px;
    font-size: 0.9rem;
  }
  .order-row {
    font-size: 0.9rem;
  }
  .order-row__odc {
    font-size: 0.9rem;
  }
  .badge-status{
    font-size: 0.8rem;
  }
}
div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){
  background-color: var(--cr-orange) !important;
}
div:where(.swal2-icon).swal2-question {
  border-color: var(--cr-orange) !important;
  color: var(--cr-orange) !important;
}
.img-naranja{
  filter: brightness(0) saturate(100%) invert(69%) sepia(28%) saturate(7056%) hue-rotate(347deg) brightness(99%) contrast(94%);
}
.ico-menu{
  cursor: pointer;
}
.navMenuTop{
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  z-index: 2;
}
.container-inner{
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 36px;
  padding-left: 30px;
  padding-right: 30px;
}
.listaNavMenuTop li{
  display: inline-block;
  margin-right: 5px;
  margin-left: 10px;
}
.listaNavMenuLeft li{
  display: inline-block;
  margin-right: 5px;
  margin-left: 10px;
  list-style: none;
}
@media (max-width: 766px){
  .ico-menu{
    width:33px;
    height:33px;
  }
  .listaNavMenuTop li{
    margin-right: 5px;
  }
  .container-inner{
    padding-top: 9px;
    padding-left: 15px;
    padding-right: 15px;
  }
}
#pedidoSuggestions li{
  transition: background-color 0.1s;
  padding: 5px 7px;
}
#pedidoSuggestions li:hover{
  background-color: var(--cr-orange);
  color:#fff;
}

/* ===== MODAL DE BÚSQUEDA GLOBAL ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 200;
}
.search-overlay.is-visible {
  opacity: 1;
}

.search-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 201;
  overflow: hidden;
}
.search-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.search-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 2px solid var(--cr-orange);
  background: linear-gradient(135deg, #fff 0%, #fef9f5 100%);
}
.search-modal__title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--cr-orange);
}
.search-modal__close {
  background: var(--cr-orange);
  color: #fff;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(245, 130, 32, 0.3);
  transition: background 0.18s ease, transform 0.18s ease;
}
.search-modal__close:hover {
  background: var(--cr-orange-dark);
}
.search-modal__close:active {
  transform: scale(0.92);
}

.search-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}
.search-input {
  width: 100%;
  padding: 14px 48px 14px 16px;
  border: 2px solid #e3e3e3;
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fafafa;
}
.search-input:focus {
  border-color: var(--cr-orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.1);
}
.search-loader {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid #f3f3f3;
  border-top: 2.5px solid var(--cr-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.search-results {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
}
.search-results::-webkit-scrollbar {
  width: 8px;
}
.search-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.search-results::-webkit-scrollbar-thumb {
  background: var(--cr-orange);
  border-radius: 10px;
}

.search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #999;
  text-align: center;
  gap: 12px;
}
.search-empty p {
  font-size: 0.9rem;
  margin: 0;
}

.search-result-item {
  padding: 14px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fafafa;
}
.search-result-item:hover {
  border-color: var(--cr-orange);
  background: #fff;
  box-shadow: 0 4px 12px rgba(245, 130, 32, 0.15);
}
.search-result-item.selected {
  border-color: var(--cr-orange);
  background: #fff4eb;
  box-shadow: 0 4px 16px rgba(245, 130, 32, 0.25);
}
.search-result-item__pedido {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.search-result-item__ref {
  font-size: 0.85rem;
  color: #777;
}

.search-modal__footer {
  padding: 16px 20px;
  border-top: 1px solid #e8e8e8;
  background: #fafafa;
}

@media (max-width: 540px) {
  .search-modal {
    width: 95%;
    max-height: 90vh;
  }
}
.searchMenu-click{
  background: rgba(255, 255, 255, 0.39);
  border-radius: 50%;
  border: 1px solid #fff;
}
.menu-click{
  border-radius: 50%;
  border: 1px solid #fff;
}
