:root {
    --primary: #b91c1c;
    --primary-dark: #7f1d1d;
    --primary-soft: #fee2e2;
    --sidebar: #7f1d1d;
    --sidebar2: #450a0a;
    --bg: #f8fafc;
    --border: #e5e7eb;
    --text: #111827;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Segoe UI, Arial, sans-serif;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--sidebar), var(--sidebar2));
    color: #fff;
    padding: 24px 18px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 35px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 14px;
    display: grid;
    place-items: center;
}

.brand strong {
    display: block;
    font-size: 20px;
}

.brand small {
    opacity: .8;
}

.menu span {
    display: block;
    font-size: 12px;
    opacity: .65;
    margin: 22px 8px 8px;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 6px;
    opacity: .92;
}

    .menu a:hover,
    .menu a.active {
        background: rgba(255,255,255,.14);
    }

.content {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
}

.topbar {
    height: 72px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .topbar .btn {
        border-radius: 12px;
    }

.user-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .user-box small {
        display: block;
        color: #667085;
    }

.badge.text-bg-primary,
.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

    .btn-primary:hover {
        background: var(--primary-dark) !important;
        border-color: var(--primary-dark) !important;
    }

.page-container {
    padding: 28px;
}

.page-title {
    margin-bottom: 22px;
    font-weight: 800;
}

.clean-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
    overflow: hidden;
}

.metric-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    min-height: 150px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
    transition: .2s ease;
}

    .metric-card:hover {
        transform: translateY(-3px);
    }

    .metric-card span {
        font-size: 32px;
    }

    .metric-card small {
        display: block;
        color: #475467;
        margin-top: 14px;
    }

    .metric-card strong {
        font-size: 30px;
        display: block;
        color: #111827;
    }

    .metric-card a {
        color: var(--primary);
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
    }

.table {
    margin-bottom: 0;
}

    .table thead th {
        background: #f9fafb;
        font-size: 14px;
        white-space: nowrap;
    }

    .table tbody td {
        white-space: nowrap;
    }

.status-badge {
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.card-header {
    border-bottom: 1px solid var(--border);
}

.form-control,
.form-select {
    border-radius: 12px;
    min-height: 44px;
}

.portal-hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.step-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    text-align: center;
}

/* Responsivo */
@media (max-width: 1199px) {
    .sidebar {
        width: 250px;
    }

    .content {
        margin-left: 250px;
        width: calc(100% - 250px);
    }
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        transition: .25s ease;
    }

        .sidebar.show {
            transform: translateX(0);
        }

    .content {
        margin-left: 0;
        width: 100%;
    }

    .page-container {
        padding: 18px;
    }

    .topbar {
        padding: 0 16px;
    }

    .user-box small {
        display: none;
    }
}

@media (max-width: 575px) {
    .page-title {
        font-size: 22px;
    }

    .metric-card {
        min-height: auto;
        padding: 18px;
    }

        .metric-card strong {
            font-size: 24px;
        }

    .topbar {
        height: 64px;
    }

    .user-box strong {
        font-size: 14px;
    }
}

.sidebar {
    transition: transform .25s ease;
}

.sidebar-overlay {
    display: none;
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1050;
        width: 280px;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .45);
        z-index: 1040;
    }

    .content {
        margin-left: 0;
        width: 100%;
    }

    .topbar {
        z-index: 1030;
    }

    .page-container {
        padding: 18px;
    }

    .user-box small {
        display: none;
    }
}

.menu a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.brand-icon i {
    font-size: 20px;
}



/* Cole no final do site.css */

.servidor-topbar {
    min-height: 72px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 38px;
    position: sticky;
    top: 0;
    z-index: 1000
}

.servidor-logout-form {
    margin: 0
}

.servidor-topbar .navbar-content {
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
}

.servidor-topbar .servidor-nav {
    flex-wrap: nowrap;
    gap: 1.25rem;
}

.servidor-topbar .servidor-nav .nav-link {
    color: #475467;
    white-space: nowrap;
}

.servidor-topbar .servidor-nav .nav-link.active {
    color: var(--primary-dark);
}

@media (min-width: 1200px) {
    .servidor-topbar .servidor-navbar-centralizada {
        flex-wrap: nowrap;
    }

    /* Laterais de mesma largura mantêm o menu no centro da navbar inteira. */
    .servidor-topbar .servidor-navbar-centralizada .servidor-navbar-prefeitura {
        flex: 1 1 0;
        min-width: 0;
    }

    .servidor-topbar .servidor-navbar-centralizada .navbar-left {
        flex: 0 0 auto;
    }

    .servidor-topbar .servidor-navbar-centralizada .navbar-right {
        flex: 1 1 0;
        flex-wrap: wrap;
        margin-left: 0;
    }

    .servidor-topbar .servidor-navbar-centralizada .prefeitura-navbar {
        max-width: 100%;
    }
}

.servidor-topbar .servidor-navbar-prefeitura {
    min-width: 0;
}

.servidor-topbar .servidor-navbar-prefeitura .prefeitura-navbar {
    justify-content: flex-start;
    max-width: 100%;
}

.servidor-topbar .servidor-navbar-prefeitura .prefeitura-navbar-name {
    display: block;
    min-width: 0;
    text-align: left;
    overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
    .servidor-topbar .servidor-navbar-centralizada .servidor-navbar-prefeitura {
        flex: 1 1 15rem;
    }

    .servidor-topbar .servidor-navbar-centralizada .navbar-left {
        order: 3;
        flex: 0 0 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .servidor-topbar .navbar-left {
        flex-basis: 100%;
    }

    .servidor-topbar .prefeitura-navbar-actions {
        flex-wrap: wrap;
        flex-shrink: 1;
        max-width: 100%;
    }

    .servidor-topbar .prefeitura-navbar-name {
        display: block;
        overflow-wrap: anywhere;
    }
}

.prefeitura-navbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: .625rem;
    margin-left: auto;
    min-width: 0
}

.navbar-content {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0
}

.navbar-left {
    display: flex;
    align-items: center;
    min-width: 0
}

.navbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    margin-left: auto;
    min-width: 0
}

.prefeitura-navbar {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    min-width: 0
}

.prefeitura-navbar-logo {
    display: block;
    width: auto;
    height: 44px;
    max-width: 180px;
    object-fit: contain
}

.prefeitura-navbar-name {
    max-width: 320px;
    color: #344054;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: right
}

@media (max-width: 767px) {
    .prefeitura-navbar-actions {
        gap: .5rem;
        flex-shrink: 0
    }

    .prefeitura-navbar-logo {
        height: 34px;
        max-width: 110px
    }

    .prefeitura-navbar-name {
        display: none
    }
}

.servidor-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 42px;
    font-weight: 600;
    white-space: nowrap
}

.servidor-page {
    max-width: 1540px;
    margin: 0 auto;
    padding: 26px 30px 48px
}

.servidor-wizard-card, .servidor-main-card, .side-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15,23,42,.06)
}

.servidor-wizard-card {
    padding: 24px;
    margin-bottom: 18px;
    overflow-x: auto
}

.wizard {
    display: grid;
    grid-template-columns: repeat(9,minmax(110px,1fr));
    gap: 12px;
    align-items: start;
    min-width: 950px
}

.wizard-step {
    text-align: center;
    position: relative;
    color: #475569;
    font-size: 13px;
    font-weight: 700
}

    .wizard-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 22px;
        left: calc(50% + 32px);
        width: calc(100% - 50px);
        height: 1px;
        background: #e2e8f0
    }

    .wizard-step div {
        width: 48px;
        height: 48px;
        border-radius: 999px;
        border: 1px solid #dbe2ea;
        background: #f8fafc;
        display: grid;
        place-items: center;
        margin: 0 auto 10px;
        font-size: 16px
    }

    .wizard-step.active {
        color: var(--primary)
    }

        .wizard-step.active div {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
            box-shadow: 0 10px 22px rgba(185,28,28,.25)
        }

.servidor-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 360px;
    gap: 22px;
    align-items: start
}

.servidor-main-card {
    padding: 30px
}

    .servidor-main-card.full {
        max-width: 1180px;
        margin: 0 auto
    }

.life-proof-grid {
    display: grid;
    grid-template-columns: minmax(0,1.3fr) minmax(300px,.8fr);
    gap: 22px;
    margin-top: 22px
}

.selfie-box {
    min-height: 360px;
    border-radius: 14px;
    background: linear-gradient(135deg,#e2e8f0,#f8fafc);
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center
}


.face-ok {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ecfdf5;
    color: #15803d;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700
}

.selfie-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15,23,42,.65);
    color: #fff;
    text-align: center;
    padding: 12px
}

.orientation-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px
}

    .orientation-card h5 {
        font-weight: 800;
        margin-bottom: 18px
    }

    .orientation-card p {
        display: flex;
        gap: 12px;
        align-items: center;
        color: #475569
    }

    .orientation-card i {
        color: var(--primary);
        width: 18px;
        text-align: center
    }

.security-box {
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
    display: flex;
    gap: 12px;
    font-weight: 600
}

.servidor-side {
    display: grid;
    gap: 18px
}

.side-card {
    padding: 24px
}

.side-title {
    display: flex;
    justify-content: space-between;
    gap: 12px
}

    .side-title span {
        color: var(--primary);
        font-size: 14px;
        font-weight: 700
    }

.progress {
    height: 12px;
    border-radius: 999px;
    margin: 18px 0;
    background: #e5e7eb
}

.progress-bar {
    background: linear-gradient(90deg,var(--primary),var(--primary-dark));
    border-radius: 999px
}

.status-pill {
    display: inline-flex;
    padding: 8px 12px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700
}

.start-card {
    display: flex;
    gap: 22px;
    align-items: center;
    padding: 28px;
    border-radius: 16px;
    background: linear-gradient(135deg,#fff,#fff5f5);
    border: 1px solid #fee2e2;
    margin-top: 22px
}

.start-icon {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-size: 32px
}

.review-list {
    display: grid;
    gap: 12px;
    margin-top: 20px
}

    .review-list div {
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 14px 16px;
        display: flex;
        gap: 12px;
        align-items: center
    }

    .review-list i {
        color: #16a34a
    }

@media(max-width:1199px) {
    .servidor-grid {
        grid-template-columns: 1fr
    }

    .servidor-side {
        grid-template-columns: repeat(3,1fr)
    }

    .life-proof-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:767px) {
    .servidor-topbar {
        min-height: 64px;
        padding: 10px 16px
    }

    .servidor-page {
        padding: 16px
    }

    .servidor-main-card, .side-card {
        padding: 18px
    }

    .servidor-side {
        grid-template-columns: 1fr
    }

    .selfie-box {
        min-height: 280px
    }

    .start-card {
        flex-direction: column;
        text-align: center
    }
}
/* SELFIE / PROVA DE VIDA */

.selfie-box {
    position: relative;
    height: 360px;
    min-height: 360px;
    border-radius: 14px;
    background: linear-gradient(135deg,#e2e8f0,#f8fafc);
    overflow: hidden;
}

    .selfie-box video,
    .selfie-box img#preview {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 14px;
        z-index: 1;
    }

    .selfie-box video,
    .selfie-box img#preview {
        transform: scaleX(-1);
    }

.face-placeholder {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .face-placeholder i {
        width: 160px;
        height: 160px;
        border: 3px dashed #22c55e;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 72px;
        color: #64748b;
    }

.face-ok {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 6;
    background: #ecfdf5;
    color: #15803d;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.selfie-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    background: rgba(15,23,42,.65);
    color: #fff;
    text-align: center;
    padding: 12px;
}

.selfie-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

    .selfie-loading span {
        font-size: 14px;
        color: #64748b;
    }

@media(max-width:767px) {
    .selfie-box {
        height: 280px;
        min-height: 280px;
    }

    .face-placeholder i {
        width: 120px;
        height: 120px;
        font-size: 52px;
    }
}

.empty-state {
    padding: 40px;
    text-align: center;
    border: 1px dashed #d6dbe3;
    border-radius: 12px;
    background: #fafbfc;
}

    .empty-state i {
        font-size: 40px;
        color: #9aa4b2;
        margin-bottom: 12px;
    }

.document-section h5 {
    font-weight: 800;
    margin-bottom: 16px;
}

.document-card {
    display: grid;
    grid-template-columns: 1fr minmax(360px, 520px);
    gap: 18px;
    align-items: center;
    padding: 18px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

.document-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.document-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 18px;
}

.document-info strong {
    display: inline-block;
    font-size: 15px;
}

.document-info small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.document-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .document-actions .form-control {
        flex: 1;
    }

    .document-actions .btn {
        white-space: nowrap;
    }

@media(max-width: 991px) {
    .document-card {
        grid-template-columns: 1fr;
    }

    .document-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.review-section {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
    background: #fff;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

    .review-header h5 {
        margin: 0;
        font-weight: 800;
    }

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

    .review-grid small {
        display: block;
        color: #64748b;
        font-size: 12px;
        margin-bottom: 4px;
    }

    .review-grid strong {
        display: block;
        color: #111827;
        font-size: 14px;
    }

@media(max-width: 991px) {
    .review-grid {
        grid-template-columns: 1fr;
    }
}


.success-page {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-card {
    max-width: 700px;
    width: 100%;
    text-align: center;
    background: #fff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, .08);
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 999px;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
}

.success-card h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.success-description {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 32px;
}

.success-info {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.info-item {
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px;
}

    .info-item span {
        display: block;
        color: #64748b;
        font-size: 12px;
        margin-bottom: 6px;
    }

    .info-item strong {
        font-size: 16px;
    }

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

@media (max-width:768px) {

    .success-card {
        padding: 24px;
    }

    .success-info {
        grid-template-columns: 1fr;
    }

    .success-actions {
        flex-direction: column;
    }
}

.servidor-dashboard {
    display: grid;
    gap: 24px;
}

.profile-card,
.dashboard-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15,23,42,.06);
}

.profile-card {
    display: flex;
    gap: 28px;
    align-items: center;
    padding: 32px;
}

.profile-photo {
    position: relative;
    width: 132px;
    height: 132px;
    cursor: pointer;
    display: block;
}

    .profile-photo img {
        width: 132px;
        height: 132px;
        border-radius: 999px;
        object-fit: cover;
        border: 5px solid #fff;
        box-shadow: 0 12px 28px rgba(15,23,42,.18);
    }

    .profile-photo span {
        position: absolute;
        right: 8px;
        bottom: 8px;
        width: 38px;
        height: 38px;
        border-radius: 999px;
        background: var(--primary);
        color: #fff;
        display: grid;
        place-items: center;
        border: 3px solid #fff;
    }

.profile-info h1 {
    margin: 0;
    font-weight: 800;
}

.status-active {
    display: inline-flex;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 13px;
    font-weight: 700;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

    .profile-grid small {
        display: block;
        color: #64748b;
        margin-bottom: 4px;
    }

    .profile-grid strong {
        display: block;
        color: #111827;
    }

.dashboard-card {
    padding: 24px;
}

    .dashboard-card h5 {
        font-weight: 800;
        margin-bottom: 0;
    }

@media(max-width: 991px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 575px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

.profile-photo-placeholder {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 5px solid #fff;
    box-shadow: 0 12px 28px rgba(15,23,42,.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .profile-photo-placeholder i {
        font-size: 56px;
        color: #94a3b8;
    }

.correcao-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 20px;
}

    .correcao-header h2 {
        margin-bottom: 6px;
        font-weight: 800;
    }

    .correcao-header p {
        margin: 0;
        color: #64748b;
    }

.correcao-count {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    white-space: nowrap;
}

.correcao-alert {
    display: flex;
    gap: 10px;
    align-items: center;
    border-radius: 14px;
}

.correcao-list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.correcao-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 16px;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .04);
}

.correcao-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fef3c7;
    color: #b45309;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.correcao-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

    .correcao-top small {
        color: #b45309;
        font-weight: 700;
    }

.correcao-content h5 {
    margin: 0 0 4px;
    font-weight: 800;
}

.correcao-content p {
    margin: 0;
    color: #475569;
}

.correcao-action {
    white-space: nowrap;
}

@media(max-width: 768px) {
    .correcao-header {
        flex-direction: column;
    }

    .correcao-card {
        grid-template-columns: 1fr;
    }

    .correcao-action .btn {
        width: 100%;
    }
}

.table-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #eef2ff;
    color: #2563eb;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.rec-table tbody tr {
    transition: .15s ease;
}

    .rec-table tbody tr:hover {
        background: #f8fafc;
    }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}

.status-enviado {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-corrigido {
    background: #ede9fe;
    color: #6d28d9;
}

.status-correcaosolicitada {
    background: #fef3c7;
    color: #b45309;
}

.status-aprovado {
    background: #dcfce7;
    color: #15803d;
}

.status-reprovado {
    background: #fee2e2;
    color: #b91c1c;
}

.status-naoiniciado {
    background: #f1f5f9;
    color: #475569;
}

.status-empreenchimento {
    background: #e0f2fe;
    color: #0369a1;
}

.rec-filter-grid {
    display: grid;
    grid-template-columns: minmax(320px, 2fr) minmax(200px, 1fr) minmax(160px, .8fr) minmax(180px, .8fr);
    gap: 16px;
    align-items: end;
}

.filter-field .form-label {
    margin-bottom: 8px;
    font-weight: 600;
}

.filter-actions {
    display: flex;
    align-items: end;
}

    .filter-actions .btn {
        height: 44px;
    }

@media (max-width: 992px) {
    .rec-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .rec-filter-grid {
        grid-template-columns: 1fr;
    }
}
.autocomplete-field { position: relative; }
.autocomplete-menu { display:none; position:absolute; z-index:1050; top:100%; left:calc(var(--bs-gutter-x) * .5); right:calc(var(--bs-gutter-x) * .5); max-height:15rem; overflow-y:auto; background:#fff; border:1px solid #ced4da; border-radius:.375rem; box-shadow:0 .5rem 1rem rgba(0,0,0,.15); }
.autocomplete-menu.show { display:block; }
.autocomplete-option { width:100%; padding:.55rem .75rem; border:0; background:#fff; text-align:left; }
.autocomplete-option:hover, .autocomplete-option.active { background:#e9ecef; }
.autocomplete-status { padding:.55rem .75rem; color:#6c757d; }
