@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;500;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #333333;
    color: #ffffff;
    overflow-x: hidden;
    padding-top: 60px;
}

h1, h2, h3, h4 {
    margin: 0 0 15px 0;
    font-weight: 600;
}

/* === NAV minimalista === */
.nav-minimal-dark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #2c2c2c;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.nav-minimal-dark a {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-minimal-dark a:hover {
    color: #dddddd;
    text-decoration: none;
}

/* === Layout === */
.container {
    display: flex;
    gap: 15px;
    padding: 15px 40px 15px 15px;
    color: #333333;
}

/* === Secciones principales === */
.ventas-box,
.clientes-box,
.box,
.box-proveedores,
.box-pedidos {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ventas-box,
.box-pedidos {
    flex: 1.5;
}

.clientes-box,
.box-proveedores {
    flex: 1;
}

/* === Tablas === */
.scroll-table {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    color: #333;
}

.scroll-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.scroll-table th {
    background-color: #f4f4f4;
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.scroll-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.scroll-table tr:hover {
    background-color: #f9f9f9;
    color: #2c2c2c;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    background-color: #f2f2f2;
    font-weight: 500;
    text-align: left;
    padding: 8px 10px;
    white-space: nowrap;
    border-bottom: 1px solid #e0e0e0;
}

td {
    padding: 8px 10px;
    white-space: nowrap;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background-color: #f9f9f9;
}

/* === Botones y enlaces === */
a {
    color: #0077ff;
    text-decoration: none;
    font-weight: 500;
}
a:hover {
    text-decoration: underline;
}

button {
    padding: 5px 10px;
    border: none;
    background-color: #94c4f1;
    color: #0c0000;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #afafaf;
}

/* === Botones personalizados === */
.boton-accion {
    background-color: white;
    color: #333;
    border: 1px solid #ccc;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 6px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    display: inline-block;
}

.boton-accion:hover {
    background-color: #ffae00;
    color: #333;
    border-color: #ccc;
    text-decoration: none;
}

/* Hover para editar */
.boton-editar:hover {
    background-color: #ffae00;
    color: #333;
    border-color: #ffae00;
    text-decoration: none;
}

/* Hover para eliminar */
.boton-eliminar:hover {
    background-color: #ca0404;
    color: #333;
    border-color: #ca0404;
}

/* Hover historial */
.boton-historial:hover {
    background-color: #e0e0e0;
    color: #000;
    text-decoration: none;
}

/* === Acciones superiores === */
.acciones-pedidos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 12px;
}

.acciones-pedidos select {
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-family: 'Inter', sans-serif;
}

/* Input búsqueda */
#busquedaClientes {
    width: 50%;
    padding: 8px 10px;
    margin-top: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 320px;
    text-align: left;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    color: #2c2c2c;
}

.modal-content h2 {
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-content p {
    margin: 6px 0;
    font-size: 14px;
}

.close {
    float: right;
    cursor: pointer;
    font-size: 18px;
    color: #aaa;
}
.close:hover {
    color: #333;
}

/* === Espaciado final de títulos y acciones === */
.ventas-box h2,
.clientes-box h2 {
    margin-bottom: 10px;
}

.ventas-box .acciones-superiores,
.clientes-box .acciones-superiores {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* === Enlace activo en nav === */
.nav-minimal-dark a.activo {
    color: #333;
    background-color: #ffae00;
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: 600;
}

/* Menú Principal */
.menu-principal {
    padding: 40px 30px;
    text-align: center;
}

.menu-principal h1 {
    margin-bottom: 30px;
    font-size: 28px;
}

.menu-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.menu-card {
    background-color: #2c2c2c;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    font-weight: 500;
    color: #f2f2f2;
    transition: all 0.3s ease;
    min-width: 220px;
    text-decoration: none;
}

.card-link {
    text-decoration: none;
}

.menu-card:hover {
    background-color: #ffae00;
    color: #333;
    transform: translateY(-2px);
    cursor: pointer;
    text-decoration: none;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 20px;
}

/* Footer */
.footer-bar {
    background-color: #2c2c2c;
    color: #ffffff;
    text-align: center;
    padding: 15px 20px;
    font-size: 14px;
}

.card-link {
    text-decoration: none;
}

.card-link:hover {
    text-decoration: none;
}

.card-link div {
    text-decoration: none;
}

.analisis-box {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin: 30px 15px;
    font-size: 14px;
    color: #333;
}

.analisis-box h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.total-mes {
    background-color: #f8f9fa;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: 500;
}

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

.analisis-box th {
    background-color: #f2f2f2;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #ccc;
    font-weight: 600;
}

.analisis-box td {
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.analisis-box tr:hover {
    background-color: #f9f9f9;
}

.form-mes {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.form-mes label {
    font-weight: 600;
    font-size: 14px;
}

.form-mes input[type="month"] {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.form-wrapper {
    max-width: 500px;
    width: 100%;
    min-width: 320px;
    margin: 40px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    color: #333;
}

.form-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
}

.form-group select,
select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    background-color: white;
    appearance: none; /* Quitar estilo nativo */
    -webkit-appearance: none;
    -moz-appearance: none;
}


.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* === Botones de Filtrar / Restablecer en Historial === */
.btn-primario,
.btn-cancelar {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: white;
    transition: background-color 0.2s ease;
    display: inline-block;
    text-align: center;
    margin-bottom: 20px;
}

/* Filtrar */
.btn-primario {
    background-color: #ffae00;
    color: #333;
}

.btn-primario:hover {
    background-color: #c58700;
    text-decoration: none;
}

/* Restablecer */
.btn-cancelar {
    background-color: #dc3545;
    text-decoration: none;
    color: #333;
}

.btn-cancelar:hover {
    background-color: #b02a37;
    text-decoration: none;
}

.historial-wrapper {
    padding: 30px;
    max-width: 1100px;
    margin: auto;
    background-color: #2c2c2c;
    color: white;
}

.filtro-formulario {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filtro-formulario select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: 'Inter', sans-serif;
}

.btn-volver {
    display: inline-block;
    margin-top: 20px;
    color: #ffae00;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.btn-volver:hover {
    text-decoration: none;
}

.textmodal{
    color:#2c2c2c
}

/* === Tabla de Historial (Modo Oscuro) === */
.historial-wrapper table {
    width: 100%;
    border-collapse: collapse;
    color: #f0f0f0;
    background-color: #2e2e2e;
    border-radius: 8px;
    overflow: hidden;
}

.historial-wrapper th {
    background-color: #444;
    color: #fff;
    font-weight: 600;
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #666;
}

.historial-wrapper td {
    padding: 10px;
    border-bottom: 1px solid #444;
    color: #eaeaea;
}

.historial-wrapper tr:nth-child(even) {
    background-color: #383838;
}

.historial-wrapper tr:nth-child(odd) {
    background-color: #2e2e2e;
}

.historial-wrapper tr:hover {
    background-color: #505050;
}

.historial-wrapper td strong {
    color: #ffffff;
    font-weight: 600;
}

