/* CEDIS KOH — Estilos personalizados */

:root {
    --koh-primary: #0d6efd;
    --koh-sidebar-w: 0px; /* Sistema sin sidebar lateral, nav horizontal */
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
    font-size: 0.9rem;
}

.footer {
    margin-top: auto;
}

/* Navbar */
.navbar-brand {
    font-size: 1rem;
    letter-spacing: .02em;
}

/* Cards */
.card {
    border-radius: .625rem;
}

.card-header {
    border-radius: .625rem .625rem 0 0 !important;
}

/* Tables */
.table th {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
}

.table td {
    vertical-align: middle;
}

/* Badges de estatus */
.badge {
    font-weight: 500;
    letter-spacing: .02em;
}

/* Formularios */
.form-label {
    font-size: .875rem;
}

/* Prioridad indicators en tabla */
tr[data-prioridad="critico"] td:first-child {
    border-left: 3px solid var(--bs-danger);
}
tr[data-prioridad="urgente"] td:first-child {
    border-left: 3px solid var(--bs-warning);
}

/* Timeline de historial */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: .45rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}
.timeline-item {
    position: relative;
    padding-bottom: 1rem;
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: -1.15rem;
    top: .25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px currentColor;
}

/* Semáforo en tabla */
.delay-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}

/* Responsive ajustes */
@media (max-width: 767.98px) {
    .container-fluid {
        padding-left: .75rem;
        padding-right: .75rem;
    }
    h2.h4 {
        font-size: 1rem;
    }
}

/* Print */
@media print {
    .navbar, .footer, .btn, form { display: none !important; }
    .card { border: 1px solid #dee2e6 !important; box-shadow: none !important; }
}
