/* Contable — complementos minimalistas sobre Bootstrap 5 */

:root {
    --contable-font-size: 0.875rem;
}

body {
    font-size: var(--contable-font-size);
}

h1, .h1 {
    font-size: 1.35rem;
    font-weight: 600;
}

h2, .h2 {
    font-size: 1.15rem;
}

h3, .h3 {
    font-size: 1rem;
    font-weight: 600;
}

/* Formularios compactos */
.form-label {
    margin-bottom: 0.15rem;
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
}

.form-control-sm,
.form-select-sm {
    font-size: 0.8125rem;
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 1rem;
}

/* Tablas */
.table > :not(caption) > * > * {
    padding: 0.35rem 0.5rem;
}

.table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--bs-secondary-color);
    white-space: nowrap;
}

.table-detail th {
    width: 180px;
    font-weight: 500;
    color: var(--bs-secondary-color);
    background: transparent;
}

/* Búsqueda de clientes (factura) */
.cliente-buscar {
    position: relative;
    margin-bottom: 0.75rem;
}

.cliente-resultados {
    position: absolute;
    z-index: 1050;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-sm);
    box-shadow: var(--bs-box-shadow-sm);
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.cliente-resultados .list-group-item {
    font-size: 0.8125rem;
    padding: 0.4rem 0.65rem;
    cursor: pointer;
}

.cliente-resultados .list-group-item:hover {
    background: var(--bs-tertiary-bg);
}

/* Tarjetas de estadísticas */
.stat-card {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-body-bg);
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Paginación */
.pagination {
    --bs-pagination-padding-x: 0.55rem;
    --bs-pagination-padding-y: 0.2rem;
    --bs-pagination-font-size: 0.8rem;
}

/* Login */
.login-wrapper {
    max-width: 360px;
    margin: 2rem auto;
}

/* Impresión (layout imprimir) */
.factura-print table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.factura-print th,
.factura-print td {
    border: 1px solid #ccc;
    padding: 6px 8px;
}

.factura-print .sin-borde td {
    border: none;
}
