/* General styles for body and container */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

/* Estilos para el resumen de postventas */
.status-counts {
    margin-bottom: 20px;
}

.status-summary {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 16px;
    color: #333;
}

.status-summary span {
    font-weight: bold;
    margin: 0;
}


/* Dashboard container styles */
.dashboard-container {
    text-align: center;
    padding: 50px 20px;
}

.dashboard-container h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #4a4a4a;
}

/* Button container styles */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Button styles */
.button-container button {
    width: 250px;
    padding: 15px 20px;
    font-size: 1.2rem;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-container button:hover {
    background-color: #0056b3;
}

/* Responsive styles */
@media (min-width: 768px) {
    .button-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .button-container button {
        width: 200px;
    }
}

/* === Estilos para el recuadro de búsqueda === */
.search-container {
    width: 60%;
    margin: 20px auto;
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Ajustes para que los inputs y selects sean más responsivos */
.search-container select,
.search-container input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    width: 200px;
}

/* Botón de búsqueda */
.search-container button {
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.search-container button:hover {
    background-color: #0056b3;
}

/* Ajustes solicitados para el dashboard */
.dashboard-container.dashboard-page {
    width: min(1504px, calc(100% - 24px));
    min-height: 1098px;
    margin: 0 auto;
    padding: 24px 12px;
}

.dashboard-page .status-counts {
    text-align: left;
    margin-bottom: 12px;
}

.dashboard-page .status-counts h3 {
    margin: 0 0 6px;
}

.dashboard-page .status-summary {
    justify-content: flex-start;
    gap: 14px;
}

.dashboard-page .search-container {
    width: 100%;
    margin: 10px 0 16px;
    padding: 10px;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 10px;
    background: #fff;
    box-shadow: none;
}

.dashboard-page .filters-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 10px;
    flex: 1;
}

.dashboard-page .filters-form label {
    font-size: 13px;
    font-weight: 600;
}

.dashboard-page .filters-form input,
.dashboard-page .filters-form select {
    height: 34px;
    padding: 6px 8px;
    width: 220px;
    font-size: 13px;
}

.dashboard-page .btn-import {
    height: 34px;
    padding: 0 12px;
    white-space: nowrap;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.dashboard-page .table-frame {
    width: 100%;
    overflow-x: auto;
}

.dashboard-page table {
    width: 100%;
    margin-top: 0;
    background: #fff;
    box-shadow: none;
}

.dashboard-page thead {
    background: #fff;
    color: #222;
}

.dashboard-page th,
.dashboard-page td {
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.2;
    border: 1px solid #d6d6d6;
    background: #fff;
}

.dashboard-page tr:nth-child(even),
.dashboard-page tr:hover {
    background: #fff;
}

.dashboard-page tr:nth-child(even) td,
.dashboard-page tr:hover td {
    background: #fff;
}

.dashboard-page .ver-detalle {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.dashboard-page .pagination {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.dashboard-page .pagination nav > div:first-child {
    display: none;
}

.dashboard-page .pagination nav > div:last-child {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-page .pagination nav > div:last-child > div:first-child {
    display: none;
}

.dashboard-page .pagination nav > div:last-child > div:last-child {
    display: flex;
    align-items: center;
}

.dashboard-page .pagination nav a,
.dashboard-page .pagination nav span[aria-current="page"] > span,
.dashboard-page .pagination nav span[aria-disabled="true"] > span {
    min-width: 34px;
    height: 34px;
    margin: 0 2px;
    padding: 0 10px;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.dashboard-page .pagination nav span[aria-current="page"] > span {
    background: #f3f3f3;
    font-weight: 700;
}

.dashboard-page .pagination nav svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .dashboard-container.dashboard-page {
        min-height: auto;
    }

    .dashboard-page .search-container {
        align-items: stretch;
    }

    .dashboard-page .filters-form {
        width: 100%;
    }
}

.btn-importar {
    background-color: #17a2b8;
}

.btn-importar:hover {
    background-color: #138496;
}

/* === Tabla de Casos === */
.tabla-container {
    width: 80%;
    margin: 0 auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

thead {
    background-color: rgb(63, 169, 176);
    color: white;
}

th,
td {
    padding: 12px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 14px;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-container {
        width: 90%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .search-container select,
    .search-container input {
        width: 100%;
    }

    .button-container {
        flex-direction: column;
        align-items: center;
    }

    .tabla-container {
        width: 95%;
    }

    th,
    td {
        font-size: 12px;
        padding: 8px;
    }
}

/* Estilos para la tabla */
.tabla-container {
    width: 80%;
    margin: 20px auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

thead {
    background-color: rgb(63, 169, 176);
    color: white;
}

th,
td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

/* Botón de Ver Detalle */
.ver-detalle {
    padding: 8px 12px;
    font-size: 14px;
    color: white;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ver-detalle:hover {
    background-color: #218838;
}

/* Contenedor de búsqueda */
.search-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.search-container select,
.search-container input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.search-container button {
    padding: 8px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.search-container button:hover {
    background-color: #0056b3;
}
