html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: row;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1.2rem;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.sidebar {
    width: 560px;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #ccc;
    transition: background-color 0.3s ease;
}

[data-bs-theme="light"] .sidebar {
    background-color: #f8f9fa;
}

[data-bs-theme="dark"] .sidebar {
    background-color: #212529;
}

.pedido-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: .25rem;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
}

.pedido-item-1a4 {
    /*background-color: #e0e0e0 !important;  gris tipo plateado */
    color: #90001a !important; /* negro tenue */
    font-weight: 500;
}

.pedido-item-5 {
    /*background-color: #e0e0e0 !important;  gris tipo plateado */
    color: dimgray !important; /* negro tenue */
    font-weight: 500;
}

.pedido-item:hover {
    background-color: #B4F7C3;
    color: black;
}

.pedido-item.selected {
    background-color: #28a745;
    color: white;
}

.pedido-item-nombre-cliente{
    display: block; /* que se comporte como bloque */
    /*white-space: nowrap;  no permite salto de línea */
     /* overflow: hidden;oculta lo que sobra */
    /* text-overflow: ellipsis; muestra "..." al final */
    max-width: 100%; /* ancho máximo (ajusta a tu diseño) */
}

.main-content {
    flex-grow: 1;
    height: 100vh;
    overflow-y: auto;
    overflow-x:auto;
    padding-bottom: 2rem;
    padding-left:2rem;
    padding-right:2rem;
    padding-top:.5rem;
}

.productos-table {
    /*max-height: 300px;*/
    overflow-y: auto;
}

.card .fs-3 {
    font-size: 2rem;
}

.card .text-muted {
    font-size: 0.9rem;
}

.logo-container {
    text-align: center;
    /*padding: 1rem 0;*/
    /*border-bottom: 1px solid #ccc;*/
}

    .logo-container img {
        max-height: 80px;
        max-width: 100%;
    }

.theme-toggle {
    position: fixed;
    top: .2rem;
    right: 2rem;
    z-index: 9999;
}

.theme-toggle-sidebar {
    display: flex;
    /*align-items: center;*/
    justify-content: center;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.5rem;
    /*border-bottom: 1px solid #dee2e6;*/
    cursor: pointer;
}

@media (max-width: 768px) {
        .main-content {
        padding: 1rem;
    }

    .pedido-item {
        font-size: 1.3rem;
    }

    .card .fs-3 {
        font-size: 1.5rem;
    }
}

.theme-toggle-sidebar-text-small {
    font-size: 0.8rem
}

.switch-check-auto-navegar{
    height:.8em;
    width: 1.5em !important;
}

.comentarios-item{
    font-size:2rem;
}