.table-maggies-pedidos {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table-maggies-pedidos th,
.table-maggies-pedidos td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    font-size: 14px
}

.table-maggies-pedidos th {
    background-color: #434343;
    color: yellow;
    text-align: center;
    font-size: 16px
}

/* Estilos de paginación */
.maggies-pedidos-simple-pagination {
    clear: both;
    margin: 20px 0;
    text-align: center;
}

.maggies-pedidos-simple-pagination .page-numbers {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    color: #333;
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    margin: 2px;
    padding: 6px 12px;
    text-decoration: none;
}

.maggies-pedidos-simple-pagination .page-numbers.current {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.edit-order-form {
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
    padding: 20px;
}

.edit-order-form-content label {
    display: block;
    margin: 0 0 10px;
}

.edit-order-form-content input[type="submit"],
.edit-order-form-content button {
    margin-top: 10px;
}
#edit-pedido-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}


#edit-pedido-modal .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}


#edit-order-items-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

#edit-order-items-modal .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}


.recibo {
  width: 80mm;
  font-family: "Arial", sans-serif;
  font-size: 12px;
}

.recibo h1 {
  font-size: 18px;
  text-align: center;
}

.recibo p {
  margin: 0 0 4px;
}

.cabecera-superior,
.cabecera-inferior,
.pie {
  text-align: center;
}

.cuerpo table {
  width: 100%;
  border-collapse: collapse;
}

.cuerpo th,
.cuerpo td {
  text-align: left;
  border-top: 1px solid #000;
  padding: 4px 0;
}

.pie {
  margin-top: 8px;
}

#product-search-container {
    position: relative;
}

.search-results {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    z-index: 1;
    display: none;
    width: 100%;
}

.search-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results li {
    padding: 5px 10px;
    cursor: pointer;
}

.search-results li:hover {
    background-color: #f1f1f1;
}

#search-pedidos-results {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    z-index: 1;
    display: none;
    width: 100%;
}

#search-pedidos-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#search-pedidos-results li {
    padding: 5px 10px;
    cursor: pointer;
}

#search-pedidos-results li:hover {
    background-color: #f1f1f1;
}

.order-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.order-modal-content {
    background-color: #f1f1f1;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 75%;
    max-width: 75%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    overflow-x: auto;
}

.order-modal-close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.order-modal-close:hover,
.order-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.order-info-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    white-space: nowrap;
}

.order-info-table th,
.order-info-table td {
    border: 1px solid #ddd;
    padding: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-info-table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #f2f2f2;
    color: black;
}

.order-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

.button:hover {
    background-color: #45a049;
}


#order-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

#order-info label {
    font-weight: bold;
}

#order-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.status-processing {
    background-color: #d4a707;
    color: white;
    font-weight: bold;
}

.status-canceled {
    background-color: #c0392b;
    color: white;
    font-weight: bold;
}

.status-completed {
    background-color: #27ae60;
    color: white;
    font-weight: bold;
}

.status-pending-payment {
    background-color: #2980b9;
    color: white;
    font-weight: bold;
}

.status-on-hold {
    background-color: #8e44ad;
    color: white;
    font-weight: bold;
}
.tipo-cierre[data-value="Venta Física"] {
    background-color: #8B0000; /* Rojo oscuro */
    color: #FFFFFF; /* Letras blancas */
    font-weight: bold; /* Negrita */
}

.tipo-cierre[data-value="Venta Online"] {
    background-color: #00008B; /* Azul oscuro */
    color: #FFFFFF; /* Letras blancas */
    font-weight: bold; /* Negrita */
}

.tipo-cierre[data-value="Venta WEB"] {
    background-color: #006400; /* Verde oscuro */
    color: #FFFFFF; /* Letras blancas */
    font-weight: bold; /* Negrita */
}
.order-status-text[data-status="completed"] {
    background-color: lightgreen;
    font-size: 16px;
}

.order-status-text[data-status="processing"] {
    background-color: #fbe4ac;
    font-size: 16px;
}

.order-status-text[data-status="cancelled"] {
    background-color: lightcoral;
    font-size: 16px;
}

.order-status-text[data-status="pending"] {
    background-color: lightcyan;
    font-size: 16px;
}

.order-status-text[data-status="failed"] {
    background-color: thistle;
    font-size: 16px;
}

.order-status-text[data-status="on-hold"] {
    background-color: lightgrey;
    font-size: 16px;
}
/* Asegúrate de que el texto sea legible en todos los estados */
.order-status-text {
    color: black;
}
#edit-pedido-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  width: 80%; /* Ajusta el ancho del modal aquí */
  max-width: 960px; /* Establece un ancho máximo para el modal */
  margin: 5% auto;
  padding: 20px;
  border-radius: 5px;
  position: relative;
}

.modal-body {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.left-column,
.right-column {
  float: left;
  width: 50%;
  box-sizing: border-box;
  padding: 0 10px;
}

.modal-content input[type="text"],
.modal-content input[type="date"],
.modal-content select {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal-content button {
  background-color: #3498db;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 5px;
  margin: 10px 0;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #2980b9;
}

.modal-content label {
  display: block;
  margin: 10px 0 5px;
}
/* Estilo para acomodar el contenido después de las columnas */
.modal-body::after {
  content: "";
  display: table;
  clear: both;
}