/* ==============================
   Estilos Generales
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f9;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* ==============================
   Sidebar
   ============================== */
.sidebar {
    width: 250px;
    background-color: #000;
    color: white;
    padding: 20px;
    position: fixed;
    height: 100%;
    transform: translateX(-250px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar h2 {
    margin-bottom: 30px;
    font-size: 24px;
    text-align: center;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px;
    border-radius: 5px;
}

.sidebar ul li a:hover {
    background-color: #3b3b3b;
}

.sidebar ul li a.active {
    background-color: #3b3b3b;
    font-weight: bold;
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
        transform: translateX(-200px);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content.shifted {
        margin-left: 200px;
    }
}

/* ==============================
   Contenido Principal
   ============================== */
.main-content {
    margin-left: 0;
    flex: 1;
    padding: 20px;
    transition: margin-left 0.3s ease;
    width: 100%;
    position: relative;
}

.main-content.shifted {
    margin-left: 250px;
}

header {
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

header h1 {
    font-size: 28px;
    color: #000;
}

/* Secciones de Contenido */
.content-section {
    display: none;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.content-section.active {
    display: block;
}

.content-section h2 {
    margin-bottom: 15px;
    color: #000;
}

.content-section p {
    color: #7f8c8d;
}

/* ==============================
   Header
   ============================== */
header {
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    /* Alinea elementos a los extremos */
    align-items: center;
    /* Centra verticalmente */
}

header h1 {
    font-size: 28px;
    color: #000;
}

.menu-toggle {
    background: none;
    border: none;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle:hover {
    color: #3b3b3b;
}

/* Resto de los estilos se mantienen igual */
.metrics-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-end;
}

/* ==============================
   Métricas
   ============================== */
.metrics-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.metrics-filter .form-group {
    flex: 1;
    max-width: 200px;
}

.metrics-filter .form-group label {
    font-size: 14px;
    color: #000;
    font-weight: bold;
}

.metrics-filter .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.metrics-filter .form-group input:focus {
    outline: 1px solid #e0e0e0;
}

#metricsSearchButton {
    padding: 10px 20px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#metricsSearchButton:hover {
    background-color: #3b3b3b;
}

/* ESTILOS SECCION PREMIOS */

.awards-status-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    max-width: 500px;
    margin: 20px auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.awards-status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.awards-status-card h3 {
    text-align: center;
    font-size: 18px;
    color: #000;
    margin-bottom: 20px;
    font-weight: 600;
}

.awards-status-card .status-info {
    text-align: center;
}

.awards-status-card .status-info p {
    font-size: 14px;
    color: #000;
    margin: 8px 0;
}

.awards-status-card .status-info p strong {
    color: #000;
}

.awards-status-card .status-info span {
    color: #7f8c8d;
}

.search-btn {
    padding: 10px 20px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.search-btn:hover {
    background-color: #3b3b3b;
}

#logisticsAwardsTableContainer {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 10px;
} 

#exportAwardsExcel{
    margin-top: 15px;
}

#absencesTableContainer .metrics-table input[type="checkbox"] {
    transform: scale(1.2);
}
#absencesTableContainer { overflow-x: auto; }
#absencesTableContainer thead th[colspan] { background-color: #f0f0f0; }

.disabled{
    background-color: rgb(67, 67, 67);
}
.disabled:hover{
    background-color: rgb(67, 67, 67);
    cursor: not-allowed;
}
.metrics-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-top: 20px;
} 

.awards-table{
    table-layout: auto;
}

.metrics-table th,
.metrics-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metrics-table th {
    background-color: #000;
    color: white;
    padding: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #34495e;
}

.metrics-table td {
    font-size: 14px;
}

.metrics-table th:nth-child(1),
.metrics-table td:nth-child(1) {
    width: 20%;
    /* Fecha o Rango */
}

.metrics-table th:nth-child(2),
.metrics-table td:nth-child(2) {
    width: 20%;
    /* Usuario */
}

.metrics-table th:nth-child(3),
.metrics-table td:nth-child(3) {
    width: 20%;
    /* Pedidos Presentados/Cerrados */
}

.metrics-table th:nth-child(4),
.metrics-table td:nth-child(4) {
    width: 20%;
    /* Minutos Trabajados */
}

.metrics-table th:nth-child(5),
.metrics-table td:nth-child(5) {
    width: 20%;
    /* VELOCIDAD */
}

.metrics-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.metrics-table tbody tr:hover {
    background-color: #e0e0e0;
}

.metrics-filter .metrics-mode {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.metrics-filter .radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    align-items: center;
}

.metrics-filter .radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #000;
    cursor: pointer;
}

.metrics-filter .radio-group input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.metrics-filter .radio-group input[type="radio"]:checked {
    background-color: #000;
}

.metrics-filter .radio-group input[type="radio"]:checked::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.metrics-filter .radio-group input[type="radio"]:hover {
    border-color: #34495e;
}

/* Ajuste para el input deshabilitado */
.metrics-filter .form-group input:disabled {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

.user-filter {
    position: relative;
    margin-left: 10px;
}

#userFilterButton {
    padding: 10px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

#userFilterButton:disabled {
    background-color: #7f8c8d;
    cursor: not-allowed;
}

#userFilterButton:hover:not(:disabled) {
    background-color: #3b3b3b;
}

.user-filter-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    min-width: 200px;
}

.user-filter-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
    z-index: 1001;
}

.user-filter-dropdown::after {
    content: '';
    position: absolute;
    top: -12px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #ddd;
    z-index: 1000;
}

.filter-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-bottom: 1px solid #ddd;
}

.filter-controls button {
    padding: 5px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-controls button:hover {
    background-color: #34495e;
}

.user-list {
    padding: 10px;
}

.user-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.user-checkbox input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #7f8c8d;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.user-checkbox input[type="checkbox"]:checked {
    background-color: #000;
    border-color: #000;
}

.user-checkbox input[type="checkbox"]:checked::after {
    content: '\2713';
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.user-checkbox span {
    font-size: 14px;
    color: #000;
}  

.checkbox-inline { 
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.checkbox-inline label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-inline input{
    cursor: pointer;
}

.metrics-table tbody tr.inactive-user {
    background-color: #ffcccc !important;
}



/* ESTILOS GESTIONAR CUENTAS */ 
.cuentas-select {
  border: 1px solid #000;
  border-radius: 0;
  background-color: #fff;
  color: #000;
  padding: 0.5em 1em;
  min-width: 150px;
}

.cuentas-select:focus {
  outline: none;
  box-shadow: 0 0 0 1px #000;
}
.cuentas-select {
  border: 1px solid #000;
  border-radius: 0;
  background-color: #fff;
  color: #000;
  padding: 0.5em 1em;
  min-width: 150px;
  text-align: center;
}

.cuentas-select:focus {
  outline: none;
  box-shadow: 0 0 0 1px #000;
}
.week-container{
    display: flex;
    justify-content: space-around;  
    align-items: center;
    margin-top: 20px;
}
.confirm-week-btn{
    padding: 10px 10px;
    border: 1px solid #000; 
    background-color: #fff;
    color: black;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.confirm-week-btn:hover{
    background-color: #e3e2e2;
} 

.presence-filter .metrics-mode,
.sanction-filter .metrics-mode {
    flex: 0 0 300px;
    max-width: 300px;
}


.presence-filter .search-btn,
.sanction-filter .search-btn {
    padding: 13px 20px;
    align-items: center;
}

.presence-filter .add-btn,
.sanction-filter .add-btn {
    padding: 4px 20px;
    border-radius: 5px;
    margin-top: 0;
}

/* Acciones en tabla de ausencias */
.absence-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.absence-actions .edit-btn {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.absence-actions .delete-btn {
    width: 16px;
    height: 16px;
    padding: 0;
    margin-left: 5px;
    background: transparent;
    border: none;
    color: red;
    font-size: 16px;
    line-height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#presencesTableContainer, 
#presenceSummaryTableContainer,
#sanctionsTableContainer { overflow-x: auto; }

/* Responsive Design */
@media (max-width: 768px) {
    .metrics-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .metrics-filter .form-group {
        max-width: none;
    }

    .metrics-filter .radio-group {
        flex-wrap: wrap;
    }

    .metrics-table {
        table-layout: auto;
    }

    .metrics-table th,
    .metrics-table td {
        white-space: normal;
        word-wrap: break-word;
    }

    .metrics-table th:nth-child(1),
    .metrics-table td:nth-child(1),
    .metrics-table th:nth-child(2),
    .metrics-table td:nth-child(2),
    .metrics-table th:nth-child(3),
    .metrics-table td:nth-child(3),
    .metrics-table th:nth-child(4),
    .metrics-table td:nth-child(4) {
        width: auto;
    }

    .presence-filter .metrics-mode,
    .sanction-filter .metrics-mode {
        flex: 1;
        max-width: none;
    }

}

#presenterMetrics,
#closerMetrics {
    margin-bottom: 30px;
}

#presenterMetrics h3,
#closerMetrics h3 {
    text-align: center;
    font-size: 18px;
    color: #000;
    margin-bottom: 15px;
}

.no-data {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    margin: 20px 0;
}

#chartsContainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Dos columnas */
    gap: 20px;
    margin-top: 30px;
}

.chart-wrapper {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    /* Asegurar que ocupe todo el ancho disponible */
    max-width: 600px;
    /* Limitar el ancho máximo */
    margin: 0 auto;
    /* Centrar el contenedor */
}

.chart-canvas {
    width: 100% !important;
    height: auto !important;
    /* Permitir que la altura se ajuste automáticamente */
}

#chartsContainer canvas {
    max-width: 600px;
    width: 100%;
    height: 400px;
    margin: 0 auto;
}

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

#chartsContainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.user-chart-wrapper {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.charts-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.line-chart,
.pie-chart {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.line-chart canvas,
.pie-chart canvas {
    width: 100% !important;
    height: auto !important;
}

@media (max-width: 768px) {
    .charts-row {
        flex-direction: column;
        align-items: center;
    }

    .line-chart,
    .pie-chart {
        max-width: 100%;
        width: 100%;
    }
}

#timeDistributionContainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.time-distribution-chart {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

@media (max-width: 768px) {
    #timeDistributionContainer {
        grid-template-columns: 1fr;
        align-items: center;
    }

    .time-distribution-chart {
        max-width: 100%;
        width: 100%;
    }
}

/* ==============================
   Gestionar Pedidos
   ============================== */

/* Estilos para la Búsqueda */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#searchInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#searchInput:focus {
    outline: 1px solid #e0e0e0;
}

#searchButton {
    padding: 10px 20px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#searchButton:hover {
    background-color: #34495e;
}

/* Order Wrapper */
.order-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 15px;
    border: 2px solid #eeeeee;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Order Info */
.order-info {
    flex: 1;
    max-width: 40%;
}

.order-info h3 {
    text-align: center;
    font-size: 16px;
    color: #000;
    margin-bottom: 10px;
}

.order-info h3 span {
    font-size: 18px;
    font-weight: bold;
}

.order-field {
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 3px;
    cursor: pointer;
}

/* Campos no editables: eliminar cursor pointer */
.order-field:not([data-field="OrderID"]):not([data-field="Estado"]):not([data-field="Carrier"]):not([data-field="CarrierPreAsignado"]):not([data-field="IMPRESO"]):not([data-field="PRESENTADO"]):not([data-field="Presentador"]):not([data-field="DespachadoPor"]) {
    cursor: default;
}

/* Asegurar que el contenedor de ZPL no tenga cursor pointer */
.order-field[data-field="ZPL"] {
    cursor: default;
}

/* Solo el botón "Copiar ZPL" debe tener cursor pointer */
.order-field[data-field="ZPL"] .copy-btn {
    cursor: pointer;
}

/* Estilos para el campo ELIMINAR PEDIDO */
.order-field[data-field="ELIMINAR_PEDIDO"] {
    background-color: #ffeaea !important;
}

.order-field[data-field="ELIMINAR_PEDIDO"] dt {
    background-color: #ff5f6d;
    color: white;
    font-weight: bold;
}

.order-field[data-field="ELIMINAR_PEDIDO"] dd {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.order-field[data-field="ELIMINAR_PEDIDO"] .switch {
    margin: 0 auto;
}

.order-field[data-field="ELIMINAR_PEDIDO"] .slider {
    background-color: #ccc;
}

.order-field[data-field="ELIMINAR_PEDIDO"] input:checked+.slider {
    background-color: #ff5f6d;
}

.order-field[data-field="ELIMINAR_PEDIDO"] input:checked+.slider:before {
    transform: translateX(24px);
}

.order-wrapper.delete-pending {
    border: 2px solid #ff5f6d;
    background-color: #ffeaea;
    opacity: 0.8;
}

.order-field:hover {
    background-color: #e0e0e0;
}

.order-field dt {
    flex: 1;
    background-color: #000;
    color: white;
    padding: 5px;
    border-radius: 3px;
    text-align: center;
    font-weight: bold;
}

.order-field dd {
    flex: 2;
    padding: 5px;
    text-align: center;
}

.order-field:nth-child(odd) {
    background-color: #fff;
}

.order-field:nth-child(odd):hover {
    background-color: #e0e0e0;
}

.order-field:nth-child(even) {
    background-color: #f5f5f5;
}

.order-field:nth-child(even):hover {
    background-color: #e0e0e0;
}

.order-field[data-field="IMPRESO"] dd,
.order-field[data-field="PRESENTADO"] dd {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.editable-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    outline: none;
    vertical-align: middle;
}

.editable-checkbox:checked {
    background-color: #000;
}

.editable-checkbox:checked::after {
    content: '\2713';
    color: white;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.editable-checkbox:hover {
    border-color: #34495e;
}

.no-disponible {
    font-weight: bold;
    color: red;
}

/* Ajuste para campos deshabilitados con "No disponible" */
.order-field[data-disabled="true"] .no-disponible {
    color: #a0a0a0;
}

/* Products Info */
.products-info {
    flex: 1;
    max-width: 60%;
}

.products-info h3 {
    text-align: center;
    font-size: 16px;
    color: #000;
    margin-bottom: 10px;
}

.products-info table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.products-info th,
.products-info td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.products-info th {
    background-color: #000;
    color: white;
    padding: 12px;
}

.products-info td {
    font-size: 14px;
}

.products-info th:nth-child(1),
.products-info td:nth-child(1) {
    width: 54%;
}

.products-info th:nth-child(2),
.products-info td:nth-child(2) {
    width: 14%;
}

.products-info th:nth-child(3),
.products-info td:nth-child(3) {
    width: 24%;
}

.products-info th:nth-child(4),
.products-info td:nth-child(4) {
    width: auto;
}

.products-info tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.products-info tbody tr:nth-child(even) {
    background-color: #fff;
}

.products-info tbody tr:hover {
    background-color: #e0e0e0;
}

.products-info .editable {
    display: inline-block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 2px 10px;
    box-sizing: border-box;
}

/* Estilos para campos deshabilitados */
.order-field[data-disabled="true"] {
    cursor: not-allowed;
    color: #a0a0a0;
}

.order-field[data-disabled="true"] .editable,
.order-field[data-disabled="true"] .editable-checkbox {
    pointer-events: none;
}

.order-field[data-disabled="true"] .editable {
    color: #a0a0a0;
    cursor: not-allowed;
}

.order-field[data-disabled="true"] .checkbox-label {
    color: #a0a0a0;
}

.order-field[data-disabled="true"] .editable-checkbox {
    background-color: #d3d3d3;
    border-color: #a0a0a0;
}

.order-field[data-disabled="true"] .editable-checkbox:checked {
    background-color: #d3d3d3;
}

.order-field[data-disabled="true"] .editable-checkbox:checked::after {
    color: #a0a0a0;
}

/* ==============================
   Elementos Interactivos
   ============================== */
.copy-btn {
    padding: 5px 10px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.copy-btn:hover {
    background-color: #34495e;
}

.error {
    color: red;
    font-weight: bold;
}

.editable {
    cursor: pointer;
    padding: 2px 10px;
    display: inline-block;
    text-align: center;
}

.edit-input,
.edit-textarea,
.edit-select {
    width: 100%;
    text-align: center;
    border: none;
    outline: 1px solid #ffe2e2;
    font-size: inherit;
    padding: 2px;
    box-sizing: border-box;
}

.edit-input:focus,
.edit-select:focus,
.edit-textarea:focus {
    outline: 1px solid #ffe2e2;
}

.order-info .edit-input,
.order-info .edit-select {
    width: 90%;
    max-width: 90%;
    box-sizing: border-box;
}

.add-btn,
.delete-btn {
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.add-btn {
    font-size: 16px;
    padding: 5px 10px;
    margin-top: 10px;
    background-color: #000;
}

.delete-btn {
    font-size: 12px;
    padding: 5px 5px;
    background-color: transparent;
}

.add-btn:hover {
    background-color: #34495e;
}

.delete-btn:hover {
    scale: 1.1;
}

.deleted {
    opacity: 0.5;
}

/* ==============================
   Estilos para Cambios
   ============================== */
.modified {
    background-color: #ffe2e2 !important;
}

/* ==============================
   Acciones Globales
   ============================== */
.global-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.global-actions button {
    width: 120px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

#globalSaveBtn {
    background-color: #000;
    color: white;
}

#globalSaveBtn:hover:not(:disabled) {
    background-color: #34495e;
}

#globalCancelBtn {
    background-color: #7f8c8d;
    color: white;
}

#globalCancelBtn:hover:not(:disabled) {
    background-color: #95a5a6;
}

.global-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #e0e0e0;
}

/* ==============================
   Login Overlay
   ============================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
}

.login-overlay.active {
    display: block;
}

.container.blur {
    filter: blur(5px);
    pointer-events: none;
}

/* Estilos para Gestionar Productos */
.product-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 15px;
    border: 2px solid #eeeeee;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-info {
    flex: 1;
}

.product-info h3 {
    text-align: center;
    font-size: 16px;
    color: #000;
    margin-bottom: 10px;
}

.product-info h3 .highlight {
    font-size: 18px;
    font-weight: bold;
}

.product-info table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.product-info tbody tr {
    height: 100px;
}

.product-info th,
.product-info td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-info th {
    background-color: #000;
    color: white;
    padding: 12px;
}

.product-info td {
    font-size: 14px;
}

.product-info th:nth-child(1),
.product-info td:nth-child(1) {
    width: 15%;
}

.product-info th:nth-child(2),
.product-info td:nth-child(2) {
    width: 10%;
}

.product-info th:nth-child(3),
.product-info td:nth-child(3) {
    width: 15%;
}

.product-info th:nth-child(4),
.product-info td:nth-child(4) {
    width: 35%;
}

.product-info th:nth-child(5),
.product-info td:nth-child(5) {
    width: 15%;
}

.product-info th:nth-child(6),
.product-info td:nth-child(6) {
    width: 10%;
}

.product-info tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.product-info tbody tr:hover {
    background-color: #f0f0f0;
}

.product-info .editable {
    display: inline-block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 2px 10px;
    box-sizing: border-box;
}

.image-container {
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.image-container img[src*="placeholder"] {
    opacity: 0.7;
    border: 1px dashed #ccc;
}

.product-info .description-box {
    width: 100%;
    height: 90px;
    resize: none;
    padding: 5px;
    border: none;
    border-radius: 3px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

.product-info .description-box::-webkit-scrollbar {
    width: 8px;
}

.product-info .description-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.product-info .description-box::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 4px;
}

.product-info .description-box::-webkit-scrollbar-thumb:hover {
    background: #34495e;
}

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

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #000;
}

input:checked+.slider:before {
    transform: translateX(24px);
}

#productSearchInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#productSearchInput:focus {
    outline: 1px solid #e0e0e0;
}

#productSearchButton {
    padding: 10px 20px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#productSearchButton:hover {
    background-color: #34495e;
}

#productGlobalSaveBtn {
    background-color: #000;
    color: white;
}

#productGlobalSaveBtn:hover:not(:disabled) {
    background-color: #34495e;
}

#productGlobalCancelBtn {
    background-color: #7f8c8d;
    color: white;
}

#productGlobalCancelBtn:hover:not(:disabled) {
    background-color: #95a5a6;
}

/* Estilos para el botón de agregar producto */
.add-product-btn {
    padding: 10px 20px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 15px;
}

.add-product-btn:hover {
    background-color: #34495e;
}

/* Estilos para el Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

.modal-content h3 {
    text-align: center;
    font-size: 20px;
    color: #000;
    margin-bottom: 20px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    color: #000;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #000;
    outline: none;
}

.form-group textarea {
    height: 80px;
    resize: none;
}

.form-group .switch {
    align-self: flex-start;
}

.submit-btn {
    background-color: #000;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #34495e;
}

/* Estilos para la fila de ID y SKU */
.form-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.form-group-id {
    flex: 0 0 100px;
}

.form-group-sku {
    flex: 1;
}

/* Estilos para el switch */
.switch-group {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
}

.switch-label {
    font-size: 14px;
    color: #000;
    font-weight: bold;
}

.form-group-url {
    flex: 1;
    max-width: 90%;
}

.modal-form .form-group label,
.modal-form .switch-label {
    font-size: 12px;
    color: #000;
    font-weight: bold;
}

/* ==============================
   Gestionar Usuarios
   ============================== */
.users-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.superuser-assignment,
.create-user {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.superuser-assignment:hover,
.create-user:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.superuser-assignment h3,
.create-user h3 {
    text-align: center;
    font-size: 18px;
    color: #000;
    margin-bottom: 20px;
    font-weight: 600;
}

.superuser-form,
.create-user-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    color: #000;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group select.edit-select,
.form-group input.edit-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group select.edit-select:focus,
.form-group input.edit-input:focus {
    border-color: #000;
    background-color: #ffffff;
    outline: none;
}

.submit-btn {
    background-color: #000;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.submit-btn:hover {
    background-color: #34495e;
}

.get-password {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.get-password:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.get-password h3 {
    text-align: center;
    font-size: 18px;
    color: #000;
    margin-bottom: 20px;
    font-weight: 600;
}

.get-password-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.get-password-form .form-group input[readonly] {
    background-color: #e0e0e0;
    cursor: default;
}

.reassign-branch, .assign-role {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reassign-branch, .assign-role:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.reassign-branch, .assign-role h3 {
    text-align: center;
    font-size: 18px;
    color: #000;
    margin-bottom: 20px;
    font-weight: 600;
}

.reassign-branch, .assign-role-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}



/* Responsive Design */
@media (max-width: 768px) {
    .users-container {
        flex-direction: column;
        align-items: center;
    }

    .superuser-assignment,
    .create-user,
    .get-password {
        width: 100%;
        max-width: 350px;
    }
}

/* ==============================
   Despachos en Rendimientos - Diseño Moderno
   ============================== */
#dispatchContainer {
    margin-top: 40px;
    padding: 20px 0;
}

.dispatch-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #1a2a44;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    position: relative;
    text-transform: uppercase;
}

.dispatch-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #000, #5a9bd5);
    margin: 10px auto;
    border-radius: 2px;
}

.dispatch-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 0 10px;
}

.dispatch-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.dispatch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #000, #5a9bd5);
    transition: height 0.3s ease;
}

.dispatch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #f9fafc;
}

.dispatch-card:hover::before {
    height: 8px;
}

.dispatch-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

.dispatch-card p {
    font-size: 16px;
    font-weight: 500;
    color: #5a9bd5;
    margin: 0;
    transition: color 0.3s ease;
}

.dispatch-card:hover p {
    color: #000;
}

.dispatch-card::after {
    content: '\f0d1';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: rgba(90, 155, 213, 0.2);
    transition: color 0.3s ease, transform 0.3s ease;
}

.dispatch-card:hover::after {
    color: rgba(90, 155, 213, 0.5);
    transform: scale(1.1);
}

/* Responsividad */
@media (max-width: 768px) {
    .dispatch-cards {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
        padding: 0 5px;
    }

    .dispatch-title {
        font-size: 20px;
    }

    .dispatch-card {
        padding: 15px;
    }

    .dispatch-card h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .dispatch-card p {
        font-size: 14px;
    }

    .dispatch-card::after {
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .dispatch-cards {
        grid-template-columns: 1fr;
    }

    .dispatch-card {
        padding: 12px;
    }

    .dispatch-title {
        font-size: 18px;
    }
}

/* ==============================
   Botón Flotante (Burbuja)
   ============================== */
.floating-bubble {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    z-index: 1000;
}

.floating-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #e04f5d, #e0a361);
}

.floating-bubble span {
    font-size: 24px;
}

.floating-bubble:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    opacity: 0.6;
    transform: scale(1);
    box-shadow: none;
}

@media (max-width: 768px) {
    .floating-bubble {
        width: 50px;
        height: 50px;
        bottom: 70px;
        right: 15px;
        font-size: 20px;
    }
}

/* ==============================
   Cargar Stock de Productos
   ============================== */
.stock-upload-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.stock-upload-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#products {
    position: relative;
    min-height: calc(100vh - 80px);
}

.stock-upload-container h3 {
    text-align: center;
    font-size: 18px;
    color: #000;
    margin-bottom: 20px;
    font-weight: 600;
}

.stock-upload-container .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.stock-upload-container .form-group label {
    font-size: 12px;
    color: #000;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-upload-container .form-group input[type="file"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.stock-upload-container .form-group input[type="file"]:focus {
    border-color: #000;
    outline: none;
}

.stock-table-container {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.stock-table-container table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.stock-table-container th,
.stock-table-container td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
}

.stock-table-container th {
    background-color: #000;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.stock-table-container tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.stock-table-container tbody tr:hover {
    background-color: #e0e0e0;
}

.stock-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.submit-btn:disabled {
    background-color: #7f8c8d !important;
    opacity: 0.6;
    cursor: not-allowed;
    color: #e0e0e0 !important;
}

.submit-btn:disabled:hover {
    background-color: #7f8c8d !important;
    transform: none;
}

@media (max-width: 768px) {
    .stock-table-container {
        max-height: 300px;
    }

    .stock-table-container th,
    .stock-table-container td {
        font-size: 12px;
        padding: 8px;
    }

    .stock-actions {
        flex-direction: column;
        align-items: center;
    }

    .stock-actions button {
        width: 100%;
    }

    .stock-upload-container .form-group {
        margin-bottom: 20px;
    }
}

/* ==============================
   Estilos para la tabla de CSV
   ============================== */
#csvStockPreview table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7em;
    text-align: center;
}

#csvStockPreview table th,
#csvStockPreview table td {
    padding: 6px 8px;
    border: 1px solid #ddd;
}

#csvStockPreview table th {
    position: sticky;
    top: 0;
    background-color: #2980b9;
    color: #fff;
    font-weight: bold;
    z-index: 10;
}

#csvStockPreview table tbody tr:nth-child(odd) {
    background-color: #ecf6fc;
}

#csvStockPreview table tbody tr:nth-child(even) {
    background-color: #fff;
}

.csv-preview-container {
    max-height: 280px;
    overflow-y: auto;
    width: 100%;
}

.csv-preview-container table {
    width: 100%;
    border-collapse: collapse;
}

.csv-preview-note {
    padding: 8px;
    text-align: center;
    font-size: 0.8em;
    background: #f7faff;
    color: #555;
}

.csv-preview-note a#showAllBtn {
    color: #2980b9;
    text-decoration: underline;
    cursor: pointer;
}

.small-button {
    padding: 4px 10px;
    font-size: 0.85em;
    line-height: 1.2;
    border-radius: 2px;
    margin-top: 20px;
}

#uploadStockButton {
    background-color: #3498db;
    color: #fff;
}

#uploadStockButton:disabled {
    background-color: #cccccc;
    color: #555555;
    opacity: 0.75;
}

#uploadStockButton:hover:not(:disabled) {
    background-color: #2980b9;
}

#clearStockButton {
    background-color: #e74c3c;
    color: #fff;
}

#clearStockButton:disabled {
    background-color: #cccccc;
    color: #555555;
    opacity: 0.75;
}

#clearStockButton:hover:not(:disabled) {
    background-color: #c0392b;
}

#uploadDbButton {
    background-color: #27ae60;
    color: #fff;
}

#uploadDbButton:disabled {
    background-color: #cccccc;
    color: #555555;
    opacity: 0.75;
}

#uploadDbButton:hover:not(:disabled) {
    background-color: #1e8449;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2980b9;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
} 

/* SWITCH */
 .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e74c3c;
    transition: .4s;
    border-radius: 34px;
    }

    .slider::before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    }

    #paymentSwitch:checked + .slider,
    #dynamicAwardsCheck:checked + .slider {
    background-color: #2ecc71;
    }

    #paymentSwitch:not(:checked) + .slider,
    #dynamicAwardsCheck:not(:checked) + .slider {
    background-color: #e74c3c;
    }

    #paymentSwitch:checked + .slider::before,
    #dynamicAwardsCheck:checked + .slider::before {
    transform: translateX(26px);
    }

    #paymentSwitch:not(:checked) + .slider::before,
    #dynamicAwardsCheck:not(:checked) + .slider::before {
    transform: translateX(0);
    }

.payment-toggle-container {
    display: flex;
    align-items: center;
    padding:5px;
    gap: 10px;
}

.payment-toggle-container .switch {
    width: 52px;
    height: 28px;
}

.payment-toggle-container .slider {
    border-radius: 28px;
}

.payment-toggle-container .slider:before {
    height: 24px;
    width: 24px;
    top: 2px;
    left: 2px;
    bottom: auto;
}

.payment-toggle-container input:checked + .slider:before {
    transform: translateX(24px);
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.last-update-text {
    font-size: 14px;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
} 
