:root {
    --bg-page: #f4f7fb;
    --bg-admin: #f5f6fa;
    --card-radius: 22px;
    --border-soft: #e7eaf0;
    --text-muted-2: #6b7280
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827
}

.bg-page {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, .12), transparent 26%), linear-gradient(180deg, #f7f9fc 0%, var(--bg-page) 100%)
}

.bg-admin {
    background: var(--bg-admin)
}

.auth-page {
    background: radial-gradient(circle at top, rgba(17, 24, 39, .08), transparent 30%), linear-gradient(180deg, #f9fafb 0%, #eef2f7 100%)
}

.card,
.hero-card,
.detail-section,
.print-document,
.auth-card {
    border-radius: var(--card-radius)
}

.hero-card {
    background: linear-gradient(135deg, #fff 0%, #f6f9ff 100%);
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 40px rgba(15, 23, 42, .06);
    padding: 2rem
}

.hero-card__content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center
}

.hero-card__aside {
    display: grid;
    gap: 1rem;
    min-width: 220px
}

.hero-stat {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 1rem 1.25rem
}

.hero-stat span {
    display: block;
    color: var(--text-muted-2);
    font-size: .875rem
}

.hero-stat strong {
    display: block;
    font-size: 1.05rem;
    margin-top: .25rem
}

.form-section {
    padding: 1.5rem;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    background: #fff;
    margin-bottom: 1.25rem
}

.section-header {
    margin-bottom: 1rem
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .25rem
}

.section-header p {
    margin-bottom: 0;
    color: var(--text-muted-2)
}

.field-error {
    color: #b42318;
    font-size: .875rem;
    margin-top: .35rem
}

.conditional-section.is-hidden {
    display: none
}

.dependent-card {
    background: #fbfcff;
    border-color: var(--border-soft) !important
}

.status-badge {
    padding: .5rem .7rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .01em
}

.status-recebido {
    background: #eff6ff;
    color: #1d4ed8
}

.status-em_analise {
    background: #fff7ed;
    color: #c2410c
}

.status-pendente {
    background: #fef2f2;
    color: #b91c1c
}

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

.status-enviado_contabilidade {
    background: #f5f3ff;
    color: #6d28d9
}

.status-demitido {
    background: #f3f4f6;
    color: #374151;
}

.status-cancelado {
    background: #fef2f2;
    color: #b91c1c;
}

.detail-section {
    background: #fff;
    border: 1px solid var(--border-soft);
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    margin-bottom: 1.25rem
}

.detail-section h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    font-weight: 700
}

.detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.detail-grid-single {
    grid-template-columns: 1fr
}

.detail-grid span {
    display: block;
    color: var(--text-muted-2);
    font-size: .83rem;
    margin-bottom: .2rem
}

.detail-grid strong {
    display: block;
    font-size: .96rem;
    line-height: 1.5
}

.print-body {
    background: #fff;
    color: #111827
}

.print-document {
    max-width: 1024px;
    margin: 0 auto;
    padding: 2rem
}

.print-header {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 2px solid #dbe2ea;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem
}

.print-header h1 {
    font-size: 1.85rem;
    margin-bottom: .35rem
}

.print-header p,
.print-meta span {
    color: var(--text-muted-2);
    display: block
}

.print-section {
    margin-bottom: 1.5rem;
    page-break-inside: avoid
}

.print-section h2 {
    font-size: 1.1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: .5rem;
    margin-bottom: .85rem
}

.print-grid {
    display: grid;
    gap: .75rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.print-card {
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    padding: .85rem 1rem;
    margin-bottom: .75rem
}

.print-list {
    padding-left: 1rem
}

.auth-card {
    width: min(100%, 460px)
}


@media (max-width:991px) {

    .hero-card__content,
    .print-header {
        flex-direction: column;
        align-items: flex-start
    }

    .hero-card__aside {
        width: 100%;
        min-width: unset;
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media (max-width:767px) {

    .hero-card,
    .form-section,
    .detail-section,
    .print-document {
        padding: 1.1rem
    }

    .detail-grid,
    .print-grid,
    .hero-card__aside {
        grid-template-columns: 1fr
    }
}

@media print {
    body {
        background: #fff !important
    }

    .print-document {
        padding: 0
    }

    .btn,
    nav {
        display: none !important
    }
}

.upload-preview {
    margin-top: .75rem;
    border: 1px dashed #d7deea;
    border-radius: 18px;
    background: #f8fbff;
    padding: .85rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    transition: .2s ease;
}

.upload-preview.is-empty {
    background: #fbfcfe;
}

.upload-preview__media {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #e9eef7;
    border: 1px solid #e3e8f2;
}

.upload-preview__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.upload-preview__meta {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.upload-preview__filename {
    font-weight: 600;
    color: #111827;
    word-break: break-word;
}

.upload-preview__hint {
    color: #6b7280;
    font-size: .88rem;
}

.attachment-thumb {
    width: 100%;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    background: #f8fafc;
    margin-bottom: .75rem;
}

.attachment-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.form-alert {
    border: 1px solid #f1c0c7;
    border-radius: 18px;
}

.form-alert__list {
    padding-left: 1.15rem;
}

.form-alert__list li + li {
    margin-top: .35rem;
}

.form-control.is-invalid,
.form-select.is-invalid,
.form-check-input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 .18rem rgba(220, 53, 69, .12);
}


.print-document--legal {
    max-width: 900px;
    color: #111827;
    font-size: 14px;
    line-height: 1.55;
}

.print-document--legal p {
    margin: 0 0 .28rem;
}

.print-legal-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.print-legal-paragraph {
    text-align: justify;
    margin-bottom: .9rem !important;
}

.print-legal-section-title {
    margin: 1rem 0 .5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.print-legal-box {
    border: 1px solid #dbe2ea;
    padding: .7rem .85rem;
    border-radius: 10px;
    margin-bottom: .75rem;
}

.print-legal-declaration {
    margin-top: 1rem !important;
}

.print-legal-signature {
    margin-top: 1.5rem;
    text-align: center;
}


.update-modal {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

.update-modal .modal-header,
.update-modal .modal-footer {
    background: #fff;
}

.update-modal .modal-body {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.update-modal__eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #2563eb;
    margin-bottom: .35rem;
}

.update-modal__block {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 18px;
    padding: 1rem 1.15rem;
}

.update-modal__list {
    padding-left: 1.1rem;
}

.update-modal__list li + li {
    margin-top: .8rem;
}
