html {
    font-size: 16px;
}

body {
    background-color: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

.footer {
    background-color: #fff;
    line-height: 48px;
    font-size: 0.85rem;
}

/* Cards e tabelas */
.card {
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.table thead th {
    background-color: #f8f9fa;
    white-space: nowrap;
}

/* Wizard público em cards */
.wizard-step {
    display: none;
}

    .wizard-step.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-indicator {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.step-dot {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 0.5rem 0.25rem;
    border-radius: 8px;
    background-color: #e9ecef;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
}

    .step-dot.active {
        background-color: #0d6efd;
        color: #fff;
    }

    .step-dot.done {
        background-color: #198754;
        color: #fff;
    }

/* text-bg-* (Bootstrap 5.3+) replicados para Bootstrap 5.1 */
.text-bg-primary { color: #fff !important; background-color: #0d6efd !important; }
.text-bg-secondary { color: #fff !important; background-color: #6c757d !important; }
.text-bg-success { color: #fff !important; background-color: #198754 !important; }
.text-bg-danger { color: #fff !important; background-color: #dc3545 !important; }
.text-bg-warning { color: #000 !important; background-color: #ffc107 !important; }
.text-bg-info { color: #000 !important; background-color: #0dcaf0 !important; }
.text-bg-dark { color: #fff !important; background-color: #212529 !important; }

/* Status badges */
.badge-sla-cumprido {
    background-color: #d1e7dd;
    color: #0f5132;
}

.badge-sla-atrasado {
    background-color: #f8d7da;
    color: #842029;
}

/* Timeline de histórico */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1.25rem;
}

    .timeline-item::before {
        content: "";
        position: absolute;
        left: 0.55rem;
        top: 0.25rem;
        width: 0.75rem;
        height: 0.75rem;
        border-radius: 50%;
        background-color: #0d6efd;
    }

    .timeline-item::after {
        content: "";
        position: absolute;
        left: 0.9rem;
        top: 1.1rem;
        bottom: 0;
        width: 2px;
        background-color: #dee2e6;
    }

    .timeline-item:last-child::after {
        display: none;
    }

/* QRCode de impressão */
.qr-print {
    text-align: center;
    padding: 0.5rem;
}

    .qr-print img {
        max-width: 140px;
        height: auto;
    }

@media print {
    body {
        background: #fff;
    }

    .no-print {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

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