.debtor-badge {
    background-color: #dc3545;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.good-badge {
    background-color: #28a745;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.negative-value {
    color: #ff6b6b;
    font-weight: bold;
}

.positive-value {
    color: #51cf66;
    font-weight: bold;
}

.daily-totals-line {
    font-size: 0.8em;
    line-height: 1.2;
}

#historicoList {
    max-height: 400px;
    overflow-y: auto;
}

.progress-bar {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.none {
    display: none;
}

.block {
    display: block;
}

.debtor {
    background-color: #dc3545;
}

.inputcard {
    flex: 0 0 80px;
    min-width: 80px;
    max-width: 80px;
}

.buttoncard {
    flex: 0 0 120px;
    min-width: 120px;
    max-width: 120px;
}

.input-rows-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-left: 15px;
    padding-right: 15px;
}

#cards-container {
    margin-top: 10px;
}

.text-success {
    color: #28a745 !important;
    /* Bootstrap green */
}

.text-danger {
    color: #dc3545 !important;
    /* Bootstrap red */
}

.text-white {
    color: #ffffff !important;
}

/* En desktop, todo en la misma línea */
.deuda-label {
    display: inline;
}

.deuda-amount {
    display: inline;
}

.boton-ancho {
    width: 200px;
}

/* Estilos para las tarjetas de impresoras - tamaño fijo */
.dashboard-box .card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
    height: 400px;
    display: flex;
    flex-direction: column;
}

.dashboard-box .card .card-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.dashboard-box .card .dates-container {
    height: 100%;
}

.dashboard-box .card .date-box {
    margin-bottom: 1rem;
}

/* Estilos para la tabla de usuarios */
.usuarios-container {
    max-width: 1200px;
    margin: 0 auto;
}

.table-usuarios {
    table-layout: fixed;
    width: 100%;
}

.table-usuarios .username-col {
    width: 25%;
}

.table-usuarios .number-col {
    width: 12.5%;
    text-align: right;
}

.table-usuarios .status-col {
    width: 12.5%;
    text-align: center;
}

.table-usuarios .actions-col {
    width: 12.5%;
    text-align: center;
    padding: 0.5rem 0.25rem;
}

.table-usuarios .actions-cell {
    text-align: center;
    padding: 0.5rem 0.25rem;
}

.table-usuarios .action-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin: 0 0.1rem;
}

@media (min-width: 768px) {
    .daily-totals-wrapper {
        display: inline-block;
        vertical-align: middle;
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .btn-group.flex-wrap {
        flex-direction: column;
    }

    .btn-group.flex-wrap>.btn {
        border-radius: var(--bs-border-radius) !important;
        margin-bottom: 0.5rem;
    }

    .btn-group.flex-wrap>.btn:last-child {
        margin-bottom: 0;
    }

    .dashboard-box .card .date-box h4 {
        font-size: 1rem;
        font-weight: bolder;
    }

    .dashboard-box .card .date-box p {
        font-size: 0.8rem;
        overflow-wrap: break-word;
    }

    .dashboard-box h2,
    .dashboard-box h3 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* En móvil permitir que el texto se ajuste mejor */
    .dashboard-box h3 {
        font-size: 1.1rem;
    }

    /* En móvil, las tarjetas ocupan todo el ancho */
    .dashboard-box .card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 200px;
    }

    /* Reduce el tamaño del título en las tarjetas de carga */
    #cards-container .card-header h3 {
        font-size: 1.2rem;
    }

    /* Ajustes para tabla en móvil */
    .usuarios-container {
        max-width: 100%;
        padding: 0;
    }

    .usuarios-container .container {
        border-radius: 0 !important;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-usuarios {
        min-width: 480px;
        font-size: 0.75rem;
    }

    .table-usuarios th {
        font-size: 0.7rem;
        padding: 0.4rem 0.2rem;
        white-space: nowrap;
        font-weight: 600;
    }

    .table-usuarios td {
        padding: 0.4rem 0.2rem;
        font-size: 0.75rem;
    }

    .table-usuarios .username-col {
        width: 95px;
        min-width: 95px;
    }

    .table-usuarios .number-col {
        width: 60px;
        min-width: 60px;
        font-size: 0.7rem;
    }

    .table-usuarios .status-col {
        width: 65px;
        min-width: 65px;
    }

    .table-usuarios .actions-col {
        width: 55px;
        min-width: 55px;
    }

    .table-usuarios .action-btn {
        padding: 0.15rem 0.3rem;
        font-size: 0.7rem;
    }

    .debtor-badge,
    .good-badge {
        font-size: 0.6rem;
        padding: 2px 4px;
        white-space: nowrap;
    }
}

/* Mejora la visibilidad de los interruptores (switches) en fondos oscuros */
.form-switch .form-check-input:checked {
    background-color: #198754;
    /* Verde de Bootstrap para 'success' */
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* Estilos para la página de edición de tickets */
.list-group-item-secondary .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.list-group-item-secondary .btn-outline-success {
    color: #198754;
    border-color: #198754;
}

/* Limita el ancho del input en la página de edición de tickets */
.edit-ticket-input {
    max-width: 120px;
}

/* Estilos para las etiquetas del formulario de edición de tickets */
.form-label-fixed-width {
    width: 90px;
    flex-shrink: 0;
    text-align: end;
    margin-right: 0.75rem;
}