/* ==========================================================================
   app.css - estilos propios del sistema (WMS / SAT)
   ========================================================================== */

:root {
    --app-header-h: 56px;
    --app-bg: #f4f6fb;
}

body {
    background-color: var(--app-bg);
}

.app-header .navbar {
    box-shadow: 0 1px 6px rgba(0, 0, 0, .15);
}

.app-header .navbar-brand {
    letter-spacing: .2px;
}

.app-header .navbar-nav .nav-link {
    padding-inline: .6rem;
    border-radius: .375rem;
}

.app-header .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, .08);
}

.app-main {
    min-height: calc(100vh - var(--app-header-h) - 60px);
}

/* Tarjetas del tablero --------------------------------------------------- */
.stat-card {
    border: 0;
    border-radius: .75rem;
    box-shadow: 0 2px 10px rgba(16, 24, 40, .06);
    transition: transform .15s ease, box-shadow .15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 24, 40, .12);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: .65rem;
    font-size: 1.35rem;
}

.stat-card .stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* Tablas ----------------------------------------------------------------- */
table.dataTable thead th {
    white-space: nowrap;
    font-size: .86rem;
}

.table-sm td,
.table-sm th {
    padding: .4rem .55rem;
}

/* Editor de lineas (documentos / formulas) ------------------------------- */
.linea-editor table input,
.linea-editor table select {
    min-width: 90px;
}

.linea-editor .num {
    text-align: right;
}

.doc-totales {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .6rem;
    padding: .85rem 1rem;
}

.doc-totales .fila {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .15rem 0;
}

.doc-totales .fila.total {
    border-top: 1px solid #e5e7eb;
    margin-top: .35rem;
    padding-top: .5rem;
    font-weight: 700;
    font-size: 1.05rem;
}

/* Utilidades ------------------------------------------------------------- */
.cursor-pointer {
    cursor: pointer;
}

.text-mono {
    font-family: "jetbrains-mono", monospace;
}

.ocfile-lg {
    --bs-offcanvas-width: 720px;
}
