/* ==========================================================
   VARIABLES GLOBALES
   ========================================================== */
:root {
    --primary-color: #FF1063;
    --primary-color-hover: #fff;
    --primary-color-dark: #e00956;
    --secondary-color: #4e73df;
    --text-color: #fff;
    --active-color: #4e73df;
    --badge-info: #17a2b8;
    --badge-warning: #ffc107;
    --badge-success: #28a745;
    --shadow-main: 0 2px 8px rgba(255,16,99,0.08);
    --shadow-secondary: 0 2px 8px rgba(78,115,223,0.15);
    --border-radius-main: 12px;
    --transition-main: all 0.5s ease;
}

/* ==========================================================
   TIPOGRAFÍA Y RESET
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@500&family=Play&family=Roboto:wght@300&display=swap');
* {
    padding: 0;
    margin: 0;
}
body {
    font-family: 'Play', sans-serif;
    /*font-family: "Poppins", sans-serif;*/
    font-weight: 400;
}

/* ==========================================================
   HEADER
   ========================================================== */
header {
    background: var(--primary-color);
    color: var(--text-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}
.header_logo img {
    height: 60px;
    width: 160px;
    margin-left: 15px;
}

/* ==========================================================
   BOTONES Y ESTADOS
   ========================================================== */
.btn-primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-weight: bold;
}
.btn-primary:hover {
    background-color: var(--primary-color-dark);
    border: 1px solid var(--primary-color-dark);
}
.btn-outline-success {
    border-color: var(--badge-success);
    color: var(--badge-success);
}
.btn-outline-success:hover {
    background: var(--badge-success);
    color: #fff;
}
.boton-cambio-categorias,
.volver-categorias {
    position: fixed;
    bottom: 15px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 10px;
    background-color: var(--primary-color);
    font-weight: bold;
    color: #fff;
}
.volver-categorias {
    left: 15px;
}
.boton-cambio-categorias {
    right: 15px;
}
.check-pedido {
    color: var(--primary-color);
    font-size: 90px;
    font-weight: bold;
}

/* ==========================================================
   TABLAS Y CARDS
   ========================================================== */
table td {
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
table {
    width: 100%;
    overflow: auto;
    overflow-y: scroll;
    overflow-x: scroll;
}
.card .card-title {
    margin-top: 12px;
}
.sumatoria {
    background-color: #fff;
    color: #000;
    font-size: 30px;
    position: fixed;
    top: 5px;
    left: 45%;
    border-radius: 10px;
    padding: 5px;
    height: 60px;
}
.contenedor {
    margin-top: 80px;
    width: 100%;
}

/* ==========================================================
   MODAL Y FORMULARIOS
   ========================================================== */
.modal-title {
    font-weight: bold;
}
.acciones {
    display: flex;
}
.acciones input {
    margin-top: 5px;
    height: 40px;
    width: 60px;
    font-weight: bold;
    color: black;
    text-align: center;
}
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
.acciones .button { 
    border: none;
    background-color: #04AA6D;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
    margin: 5px;
    border-radius: 5px;
}
.button:hover {background: #eee;}
.sucess:hover {background-color: #04AA6D; color: white}
.success {color: white;}

/* ==========================================================
   ESTADOS DE PEDIDO Y PAGOS
   ========================================================== */
.espera, .no_pagado {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
    background: #ffdde0;
    color: #b71c1c;
}
.anticipado {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
    background: #e3f2fd;
    color: #0d47a1;
}
.realizado {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
    background: #d1ecf1;
    color: #0c5460;
}
.procesado {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
    background: #cce5ff;
    color: #004085;
}
.en-camino {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
    background: #fffde7;
    color: #f9a825;
}
.entregado, .pagado {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
    background: #d4edda;
    color: #155724;
}

/* ==========================================================
   BARRA DE ESTADO DE PEDIDO
   ========================================================== */
.barra-estado {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1em;
    margin-left: 5rem;
}
.paso-estado {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    width: 100%;
}
.punto-estado {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    background: #fff;
    margin-right: 10px;
    z-index: 1;
    transition: border-color 0.3s, background 0.3s;
}
.punto-estado.activo {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
}
.linea-estado {
    width: 3px;
    height: 30px;
    background: var(--primary-color);
    position: absolute;
    left: 7px;
    top: 18px;
    z-index: 0;
}
.paso-estado:last-child .linea-estado {
    display: none;
}
.texto-estado {
    font-size: 14px;
}
.fecha-estado {
    font-size: 12px;
    color: #888;
    margin-left: 5px;
}

/* ==========================================================
   IMÁGENES DE PRODUCTO
   ========================================================== */
.imagen_producto img {
    margin-top: 5px;
}
.imagen_producto {
    text-align: center;
}

/* ==========================================================
   OTROS
   ========================================================== */
.truck {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary-color);
    font-weight: bold;
    padding: 10px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
}
#select-estado {
    padding: 20px;
}
.buscador-wrapper {
    position: relative;
    width: 340px;
    margin-bottom: 24px;
  }
  .buscador-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 1.08em;
    border: 1.5px solid var(--primary-color, #ff1063);
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s;
    box-shadow: 0 2px 8px rgba(255,16,99,0.04);
  }
  .buscador-input:focus {
    border-color: #e40c58;
    background: #fff0f6;
  }
  .buscador-dropdown {
    position: absolute;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 1.5px solid var(--primary-color, #ff1063);
    border-top: none;
    z-index: 9999;
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 16px rgba(255,16,99,0.08);
  }
  .buscador-dropdown li {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #fff0f6;
    font-size: 1.05em;
    transition: background 0.15s, color 0.15s;
  }
  .buscador-dropdown li:last-child {
    border-bottom: none;
  }
  .buscador-dropdown li:hover, .buscador-dropdown li:focus {
    background-color: #fff0f6;
    color: var(--primary-color, #ff1063);
    font-weight: 600;
  }
  .buscador-dropdown li[aria-selected="true"] {
    background: var(--primary-color, #ff1063);
    color: #fff;
  }
  .info-seleccion {
    margin-top: 28px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(255,16,99,0.06);
    padding: 24px 28px;
    min-width: 320px;
    max-width: 420px;
    border-left: 4px solid var(--primary-color, #ff1063);
  }
  h2 {
    color: var(--primary-color, #ff1063);
    font-weight: 700;
    margin-bottom: 28px;
  }
  h4 {
    color: var(--primary-color, #ff1063);
    font-weight: 600;
    margin-bottom: 12px;
  }
  strong {
    color: var(--primary-color, #ff1063);
  }
      .activo-badge {
      background: #e6ffe6;
      color: #1a8c1a;
      border-radius: 8px;
      padding: 0.2em 0.8em;
      font-weight: 600;
      font-size: 0.95em;
    }
    .inactivo-badge {
      background: #ffe6e6;
      color: #c00;
      border-radius: 8px;
      padding: 0.2em 0.8em;
      font-weight: 600;
      font-size: 0.95em;
    }   
        body {
      background-color: #f2f4f8;
      font-family: 'Inter', sans-serif;
    }
    .form-card {
      background: #fff;
      border-radius: 16px;
      padding: 30px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.08);
      margin-bottom: 40px;
    }
    .section-title {
      color: var(--primary-color, #FF1063);
      font-weight: 600;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 0.5em;
    }
    .uil {
      font-size: 1.2em;
    }
    .badge {
      font-size: 1em;
      margin-right: 0.5em;
    }
    .info-label {
      font-weight: 500;
      color: #555;
      margin-bottom: 0.2em;
      display: flex;
      align-items: center;
      gap: 0.4em;
    }
    .info-value {
      font-size: 1.1em;
      color: #222;
      margin-bottom: 1em;
    }
    .activo-badge {
      background: #e6ffe6;
      color: #1a8c1a;
      border-radius: 8px;
      padding: 0.3em 1em;
      font-weight: 600;
    }
    .inactivo-badge {
      background: #ffe6e6;
      color: #c00;
      border-radius: 8px;
      padding: 0.3em 1em;
      font-weight: 600;
    }
        body {
      background-color: #f2f4f8;
      box-sizing: border-box;
      font-family: 'Inter', sans-serif;
    }
    .form-card {
      background: #ffffff;
      border-radius: 16px;
      padding: 30px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      margin-bottom: 40px;
    }
    .form-section-title {
      color: var(--primary-color);
      margin-bottom: 20px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.5em;
    }
    label {
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 0.4em;
    }
    .btn-primary {
      background-color: var(--primary-color) !important;
      border-color:  var(--primary-color);
    }
    .btn-primary:hover {
      background-color: #e40c58;
    }
    .input-group-text {
      background: #f2f4f8;
      border: none;
    }
    .uil {
      font-size: 1.2em;
    }
    /*disabled color button*/
    .btn:disabled {
      background-color: #ff015a;
      color: #fff;
      border: #ff0059;
      cursor: not-allowed;
    }
        /* Colores del sistema para los badges de entorno */
    .entorno-badge.entorno-pos {
      background: var(--primary-color);
      color: var(--text-color);
    }
    .entorno-badge.entorno-electronica {
      background: var(--secondary-color);
      color: var(--text-color);
    }
    .text-primary {
      color: var(--primary-color) !important;
    }
        .btn-outline-primary {
      color: #FF1063;
      border-color: #FF1063;
    }	
    .text-primary {
      color: #ff1064 !important;
    }
    .btn-primary:disabled {
      background-color: #ff1064;
      color: #fff;
      border: #ff0059;
      cursor: not-allowed;
    }

    .bg-primary{
      background-color: #FF1063 !important;
    }
    .btn-outline-primary:hover {
      background-color: #FF1063;
      color: #fff;
      border: 1px solid #FF1063;
    }
    .btn-primary:hover {
      background-color: #ffffff !important;
      border: 1px solid #ff1063 !important;
      color: #FF1063;
    }
    .progress-bar{
      background-color: #FF1063;
      
    }