:root {
  --gov-primary: #125a9e;
  --gov-primary-dark: #0b3d73;
  --gov-primary-deep: #092f59;
  --gov-blue-soft: #eaf3fb;
  --gov-green: #1f7a3f;
  --gov-red: #c62828;
  --gov-yellow: #e4b72b;
  --gov-orange: #ef7a24;
  --gov-purple: #663c96;
  --gov-bg: #f3f5f8;
  --gov-surface: #ffffff;
  --gov-text: #20252b;
  --gov-muted: #667085;
  --gov-border: #d9dee7;
  --gov-focus: #f0c929;
  --radius: .55rem;
  --shadow: 0 10px 28px rgba(17, 42, 70, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 14px; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--gov-text); background: var(--gov-bg); line-height: 1.45; font-size: 14px; }
a { color: var(--gov-primary-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--gov-focus); outline-offset: 3px; }
.gov-container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: #fff; padding: .75rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }
.national-line { height: 5px; background: linear-gradient(90deg, var(--gov-green) 0 42%, var(--gov-yellow) 42% 62%, #111 62% 76%, var(--gov-red) 76% 100%); }

.gov-header { background: linear-gradient(110deg, var(--gov-primary-dark), var(--gov-primary)); color: #fff; }
.gov-header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.gov-brand-link { display: flex; align-items: center; gap: .9rem; color: #fff; text-decoration: none; min-width: 0; }
.gov-emblem-slot { width: 54px; height: 54px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.09); flex: 0 0 auto; }
.gov-emblem-slot span { font-size: .9rem; font-weight: 800; letter-spacing: .08em; }
.gov-brand-copy strong { display: block; font-size: 17px; line-height: 1.1; }
.gov-brand-copy span { display: block; margin-top: .18rem; font-size: 11px; color: rgba(255,255,255,.86); }
.gov-header-right { display: flex; align-items: center; gap: 1.4rem; }
.anniversary-logo { width: 165px; max-height: 56px; object-fit: contain; background: #fff; padding: .25rem .4rem; border-radius: .35rem; }
.candidate-access { border-left: 1px solid rgba(255,255,255,.35); padding-left: 1.1rem; display: flex; flex-direction: column; align-items: flex-end; }
.candidate-label { font-size: 10px; color: rgba(255,255,255,.78); }
.header-login, .header-link-button { color: #fff; font-weight: 700; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.header-login:hover, .header-link-button:hover { text-decoration: underline; }

.gov-nav { background: #fff; border-bottom: 1px solid var(--gov-border); box-shadow: 0 3px 10px rgba(17,42,70,.06); }
.gov-nav-inner { display: flex; align-items: center; gap: .2rem; overflow-x: auto; }
.gov-nav a { color: var(--gov-primary-dark); text-decoration: none; font-size: 12px; font-weight: 600; padding: .72rem .82rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.gov-nav a:hover { color: var(--gov-primary); border-bottom-color: var(--gov-primary); }

.home-hero { position: relative; min-height: 300px; display: grid; align-items: center; overflow: hidden; background: linear-gradient(115deg, #155f9f 0%, #4b91c8 52%, #cbd9e7 100%); }
.home-hero::before { content: ""; position: absolute; inset: 0; opacity: .26; background-image: radial-gradient(circle at 82% 30%, #fff 0 3px, transparent 4px), linear-gradient(150deg, transparent 45%, rgba(255,255,255,.17) 46% 47%, transparent 48%); background-size: auto, 130px 130px; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,32,60,.83) 0%, rgba(9,62,105,.68) 55%, rgba(9,62,105,.16) 100%); }
.hero-content { position: relative; z-index: 1; color: #fff; padding-block: 2.8rem 3.8rem; text-align: center; }
.hero-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 10px; font-weight: 800; color: #d9ecff; margin: 0 0 .5rem; }
.home-hero h1 { margin: 0 auto .6rem; max-width: 820px; font-size: clamp(30px, 4vw, 42px); line-height: 1.08; text-shadow: 0 2px 7px rgba(0,0,0,.25); }
.hero-subtitle { max-width: 760px; margin: 0 auto; font-size: 14px; color: rgba(255,255,255,.95); }
.hero-actions { margin-top: 1.2rem; display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 7px; padding: .62rem .9rem; font-size: 12px; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--gov-primary); color: #fff; border-color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.btn-primary:hover { background: #0f4f8e; }
.btn-white { background: #fff; color: var(--gov-primary-dark); border-color: rgba(0,0,0,.1); }
.btn-large { min-width: 175px; padding: .72rem 1.1rem; font-size: 13px; }
.btn-sm { padding: .5rem .72rem; font-size: 11px; white-space: nowrap; }

.stats-wrap { position: relative; z-index: 3; margin-top: -30px; }
.stats-card { background: #fff; border: 1px solid rgba(15,74,128,.10); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; }
.stat-item { display: flex; align-items: center; justify-content: center; gap: .85rem; padding: 1rem; min-height: 88px; }
.stat-item + .stat-item { border-left: 1px solid var(--gov-border); }
.stat-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid #9bb9d6; border-radius: .5rem; color: var(--gov-primary-dark); font-size: 16px; font-weight: 800; background: var(--gov-blue-soft); }
.stat-item strong { display: block; font-size: 28px; line-height: 1; color: #315a86; }
.stat-item span { display: block; margin-top: .18rem; font-size: 11px; }

.home-dashboard-section { padding: 1.8rem 0 2.6rem; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.panel { background: #fff; border: 1px solid var(--gov-border); border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.03); padding: 1rem; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--gov-border); padding-bottom: .55rem; margin-bottom: .45rem; }
.panel-heading h2 { margin: 0; font-size: 16px; color: #272b31; }
.panel-heading a { font-size: 11px; font-weight: 700; text-decoration: none; }
.demo-label { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: var(--gov-muted); }
.competition-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; }
.competition-row + .competition-row { border-top: 1px solid #edf0f4; }
.competition-info h3 { margin: 0; font-size: 13px; font-weight: 650; }
.competition-info p { margin: .12rem 0; color: var(--gov-muted); font-size: 11px; }
.competition-meta { display: inline-block; font-size: 10px; color: var(--gov-green); background: #e9f6ed; padding: .16rem .4rem; border-radius: .22rem; }

.province-chart-wrap { min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 2.2rem; padding: 1rem .5rem; }
.pie-chart { width: 150px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--gov-primary) 0 35%, var(--gov-green) 35% 60%, var(--gov-orange) 60% 75%, var(--gov-purple) 75% 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.chart-legend { list-style: none; margin: 0; padding: 0; min-width: 180px; }
.chart-legend li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: .5rem; padding: .28rem 0; font-size: 11px; }
.legend-dot { width: 11px; height: 11px; display: inline-block; }
.dot-blue { background: var(--gov-primary); }.dot-green { background: var(--gov-green); }.dot-orange { background: var(--gov-orange); }.dot-purple { background: var(--gov-purple); }

.quick-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.service-tile { min-height: 128px; background: #fff; border: 1px solid var(--gov-border); border-radius: var(--radius); box-shadow: 0 7px 22px rgba(17,42,70,.07); text-decoration: none; color: var(--gov-text); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: .8rem; }
.service-tile:hover { border-color: #a9bfd5; transform: translateY(-1px); }
.service-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; margin-bottom: .45rem; color: #fff; background: linear-gradient(145deg, #1685dc, #0d4d8a); font-size: 16px; font-weight: 800; box-shadow: 0 5px 12px rgba(20,87,145,.22); }
.service-tile strong { font-size: 12px; }.service-tile small { color: var(--gov-muted); font-size: 10px; }

.gender-panel { min-height: 230px; }
.bar-chart { min-height: 185px; display: flex; align-items: flex-end; justify-content: space-around; gap: 2rem; padding: 1rem 2rem .5rem; border-bottom: 1px solid var(--gov-border); background-image: linear-gradient(to top, transparent 24%, #edf0f4 25%, transparent 26%, transparent 49%, #edf0f4 50%, transparent 51%, transparent 74%, #edf0f4 75%, transparent 76%); }
.bar-group { width: 145px; text-align: center; }
.bar-pair { height: 125px; display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.bar { width: 40px; display: block; }.bar-blue { background: linear-gradient(#2388df, #0c5fa9); }.bar-red { background: linear-gradient(#df3543, #a61527); }
.bar-60 { height: 105px; }.bar-40 { height: 70px; }.bar-25 { height: 44px; }
.bar-group strong { display: block; margin-top: .3rem; font-size: 11px; }.bar-group small { color: var(--gov-muted); font-size: 10px; }

.how-section { background: #fff; border-top: 1px solid var(--gov-border); padding: 2.1rem 0 2.5rem; }
.how-heading { text-align: center; margin-bottom: 1.2rem; }.how-heading h2 { margin: .2rem 0; color: var(--gov-primary-dark); font-size: 22px; }
.section-kicker { margin: 0; color: var(--gov-red); text-transform: uppercase; letter-spacing: .11em; font-size: 9px; font-weight: 800; }
.how-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
.how-steps div { border-top: 3px solid var(--gov-primary); background: var(--gov-bg); padding: .8rem; border-radius: .2rem; min-height: 78px; }
.how-steps b { display: block; color: var(--gov-primary); font-size: 16px; }.how-steps span { font-size: 11px; font-weight: 600; }

.gov-footer { background: #eef1f5; border-top: 1px solid var(--gov-border); color: #303641; padding-bottom: 1.6rem; }
.national-ribbon { height: 20px; display: grid; grid-template-columns: 2fr 1fr 2fr 1fr; gap: 3px; padding: 5px 2rem; background: #fff; }
.national-ribbon span:nth-child(1) { background: var(--gov-red); }.national-ribbon span:nth-child(2) { background: var(--gov-yellow); }.national-ribbon span:nth-child(3) { background: var(--gov-green); }.national-ribbon span:nth-child(4) { background: var(--gov-primary); }
.gov-footer-grid { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; }
.gov-footer-grid strong, .gov-footer-grid span { display: block; }.gov-footer-grid span { color: var(--gov-muted); font-size: 11px; }
.gov-footer-links { display: flex; gap: .85rem; flex-wrap: wrap; align-items: center; }.gov-footer-links a { font-size: 11px; text-decoration: none; }
.gov-copyright { border-top: 1px solid var(--gov-border); margin-top: 1rem; padding-top: 1rem; text-align: center; font-size: 10px; color: var(--gov-muted); }

/* Componentes existentes: autenticação e páginas internas */
.page-header { padding: 2.2rem 0; background: var(--gov-blue-soft); border-bottom: 1px solid var(--gov-border); }.page-header h1 { margin: .1rem 0; color: var(--gov-primary-dark); }
.empty-state { background: #fff; border: 1px dashed #afbac8; border-radius: var(--radius); padding: 2rem; text-align: center; }
.auth-shell { min-height: 58vh; display: grid; place-items: center; padding: 3rem 1rem; }.auth-card { width: min(440px,100%); background: #fff; border: 1px solid var(--gov-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }.auth-card h1 { color: var(--gov-primary-dark); }.auth-card label { display:block; font-weight:700; margin:.8rem 0 .3rem; }
input, select { width: 100%; padding: .6rem .75rem; font-size: 13px; min-height: 38px; border: 1px solid #b8c2cf; border-radius: .4rem; background: #fff; color: var(--gov-text); }.check-row { display:flex!important; align-items:center; gap:.55rem; font-weight:400!important; }.check-row input { width:auto; }.btn-block { width:100%; margin-top:.8rem; }.field-error,.validation-summary { color:var(--gov-red); font-size:.86rem; }


/* Densidade tipográfica inspirada no Health360 */
.page-header h1 { font-size: 22px; }
.page-header p, .empty-state, .auth-card { font-size: 13px; }
.auth-card h1 { font-size: 22px; }
.auth-card label { font-size: 12px; }

@media (max-width: 900px) {
  .gov-header-inner { padding-block: .8rem; align-items: flex-start; }
  .gov-header-right { gap: .7rem; }
  .anniversary-logo { width: 145px; }
  .stats-card { grid-template-columns: 1fr; }
  .stat-item + .stat-item { border-left: 0; border-top: 1px solid var(--gov-border); }
  .home-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .gov-container { width: min(100% - 1rem, 1180px); }
  .gov-header-inner { flex-direction: column; }
  .gov-header-right { width: 100%; justify-content: space-between; }
  .candidate-access { align-items: flex-end; }
  .gov-emblem-slot { width: 54px; height: 54px; }
  .anniversary-logo { width: 140px; max-height: 58px; }
  .hero-content { padding-block: 2.6rem 4rem; }
  .home-hero { min-height: 330px; }
  .stats-wrap { margin-top: -28px; }
  .competition-row { align-items: flex-start; flex-direction: column; }
  .province-chart-wrap { flex-direction: column; gap: 1rem; }
  .pie-chart { width: 155px; }
  .quick-services { grid-template-columns: 1fr; }
  .bar-chart { padding-inline: .5rem; gap: .7rem; }
  .bar-group { width: 120px; }
  .how-steps { grid-template-columns: 1fr; }
  .gov-footer-grid { flex-direction: column; }
}

/* ============================================================
   HOME - HERO INSTITUCIONAL
   ============================================================ */

.gov-home-hero {
    position: relative;
    width: 100%;
    height: 390px;
    overflow: hidden;
    background: #dce6ef;
}

.gov-home-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.gov-home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(10, 39, 70, 0.78) 0%, rgba(10, 39, 70, 0.48) 42%, rgba(10, 39, 70, 0.18) 70%, rgba(10, 39, 70, 0.10) 100% );
}

.gov-home-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

.gov-home-hero-inner {
    max-width: 610px;
    color: #ffffff;
}

.gov-home-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: rgba(255,255,255,.82);
}

.gov-home-hero h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -.5px;
    color: #ffffff;
}

.gov-home-hero p {
    max-width: 580px;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,.90);
}

.gov-home-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .gov-home-hero-actions .btn {
        min-height: 38px;
        padding: 8px 16px;
        border-radius: 7px;
        font-size: 12px;
        font-weight: 600;
    }

/* ============================================================
   ÁREA ADMINISTRATIVA - PADRÃO COMPACTO
   ============================================================ */
.gov-anniversary-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 72px;
    padding: 4px 14px;
    border-radius: 6px;
    background: #fff;
}

.gov-anniversary-logo {
    display: block;
    max-width: 190px;
    max-height: 62px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.gov-admin-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 40px;
}

.gov-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.gov-page-eyebrow {
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--gov-primary);
}

.gov-page-header h1 {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.35px;
    color: #101828;
}

.gov-page-header p {
    margin: 0;
    font-size: 12px;
    color: #667085;
}

.gov-admin-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
    margin-bottom: 16px;
    overflow: hidden;
}

.gov-card-header {
    min-height: 54px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eef1f4;
}

    .gov-card-header h2 {
        margin: 0;
        font-size: 13px;
        font-weight: 700;
        color: #101828;
    }

    .gov-card-header span {
        display: block;
        margin-top: 2px;
        font-size: 10px;
        color: #667085;
    }

.gov-card-body {
    padding: 18px;
}

.gov-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px 16px;
}

.gov-field-2 {
    grid-column: span 2;
}

.gov-field-3 {
    grid-column: span 3;
}

.gov-field-4 {
    grid-column: span 4;
}

.gov-field-6 {
    grid-column: span 6;
}

.gov-field-8 {
    grid-column: span 8;
}

.gov-field-12 {
    grid-column: span 12;
}

.form-label {
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #344054;
}

.form-control,
.form-select {
    min-height: 38px;
    border: 1px solid #dfe4ea;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 13px;
    color: #344054;
    background-color: #fff;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--gov-primary);
        box-shadow: 0 0 0 .18rem rgba(18, 90, 158, .10);
    }

.gov-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
}

    .gov-form-actions .btn {
        min-height: 36px;
        padding: 7px 14px;
        font-size: 12px;
    }

@media (max-width: 768px) {

    .gov-admin-page {
        width: min(100% - 24px, 1120px);
        padding-top: 18px;
    }

    .gov-page-header {
        flex-direction: column;
    }

    .gov-field-2,
    .gov-field-3,
    .gov-field-4,
    .gov-field-6,
    .gov-field-8,
    .gov-field-12 {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   ÁREA RESERVADA
   ============================================================ */

.reserved-nav {
    position: relative;
    z-index: 20;
    background: #ffffff;
    border-bottom: 1px solid #e8edf2;
    box-shadow: 0 2px 7px rgba(16, 24, 40, .035);
}

.reserved-nav-inner {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.reserved-nav-link {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: #344054;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
    .reserved-nav-link.active {
        color: var(--gov-primary);
        background: #edf5fb;
        box-shadow: inset 0 -2px 0 var(--gov-primary);
    }

    .reserved-nav-link:hover {
        background: #f5f8fb;
        color: var(--gov-primary);
    }

.reserved-nav-icon {
    width: 18px;
    color: #667085;
    text-align: center;
}

.reserved-nav-group {
    position: relative;
}

    .reserved-nav-group summary {
        list-style: none;
    }

        .reserved-nav-group summary::-webkit-details-marker {
            display: none;
        }

.reserved-nav-chevron {
    margin-left: 3px;
    font-size: 10px;
}

.reserved-nav-dropdown {
    position: absolute;
    top: 44px;
    left: 0;
    width: 230px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e4e9ef;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .10);
    z-index: 50;
}

    .reserved-nav-dropdown a {
        display: block;
        padding: 8px 10px;
        border-radius: 6px;
        font-size: 12px;
        color: #344054;
        text-decoration: none;
    }

        .reserved-nav-dropdown a:hover {
            background: #f2f6fa;
            color: var(--gov-primary);
        }

/* Utilizador no cabeçalho */

.reserved-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, .25);
}

.reserved-user-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    font-size: 12px;
    font-weight: 700;
}

.reserved-user-copy {
    min-width: 125px;
}

    .reserved-user-copy span,
    .reserved-user-copy strong {
        display: block;
    }

    .reserved-user-copy strong {
        margin-top: 1px;
        font-size: 11px;
        font-weight: 650;
        color: #fff;
    }

.reserved-label {
    font-size: 9px;
    color: rgba(255,255,255,.68);
    text-transform: uppercase;
    letter-spacing: .55px;
}

.reserved-logout {
    margin-left: 5px;
    padding: 5px 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 6px;
    color: #fff;
    font-size: 10px;
    cursor: pointer;
}

    .reserved-logout:hover {
        background: rgba(255,255,255,.10);
    }

/* Página reservada */

.reserved-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 42px;
}

.reserved-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

/* KPI */

.reserved-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.reserved-kpi-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16,24,40,.03);
    color: #101828;
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease;
}

    .reserved-kpi-card:hover {
        transform: translateY(-1px);
        border-color: #b9cee1;
    }

.reserved-kpi-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient( 145deg, #edf5fb, #e2eef8 );
    border: 1px solid #d4e4f1;
    color: var(--gov-primary);
    font-size: 13px;
    font-weight: 800;
}

.reserved-kpi-card {
    min-height: 96px;
    padding: 16px;
}

.reserved-kpi-label {
    display: block;
    font-size: 10px;
    font-weight: 650;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.reserved-kpi-value {
    display: block;
    margin: 2px 0;
    font-size: 24px;
    line-height: 1;
    color: #101828;
}

.reserved-kpi-card small {
    font-size: 10px;
    color: #98a2b3;
}

/* Cards */

.reserved-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.reserved-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16,24,40,.03);
    overflow: hidden;
}

.reserved-card-header {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eef1f4;
}

    .reserved-card-header h2 {
        margin: 0;
        font-size: 13px;
        font-weight: 700;
        color: #101828;
    }

    .reserved-card-header span {
        display: block;
        margin-top: 2px;
        font-size: 10px;
        color: #667085;
    }

.reserved-card-body {
    padding: 7px 14px;
}

.admin-shortcut {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 4px;
    color: #344054;
    text-decoration: none;
}

    .admin-shortcut + .admin-shortcut {
        border-top: 1px solid #f0f2f5;
    }

    .admin-shortcut strong,
    .admin-shortcut span {
        display: block;
    }

    .admin-shortcut strong {
        font-size: 12px;
        color: #101828;
    }

    .admin-shortcut div span {
        margin-top: 2px;
        font-size: 10px;
        color: #667085;
    }

    .admin-shortcut b {
        font-size: 18px;
        color: var(--gov-primary);
    }

.shortcut-action {
    font-size: 10px;
    font-weight: 700;
    color: var(--gov-primary);
}

/* ============================================================
   FORMULÁRIOS ADMINISTRATIVOS
   ============================================================ */

.gov-admin-page {
    width: min(1060px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 40px;
}

.gov-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.gov-page-eyebrow {
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .75px;
    color: var(--gov-primary);
}

.gov-page-header h1 {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.35px;
    color: #101828;
}

.gov-page-header p {
    margin: 0;
    font-size: 12px;
    color: #667085;
}

.gov-admin-card {
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16,24,40,.03);
    overflow: hidden;
}

.gov-card-header {
    min-height: 52px;
    padding: 11px 16px;
    border-bottom: 1px solid #eef1f4;
}

    .gov-card-header h2 {
        margin: 0;
        font-size: 13px;
        font-weight: 700;
        color: #101828;
    }

    .gov-card-header span {
        display: block;
        margin-top: 2px;
        font-size: 10px;
        color: #667085;
    }

.gov-card-body {
    padding: 16px;
}

.gov-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 13px 15px;
}

.gov-field-2 {
    grid-column: span 2;
}

.gov-field-3 {
    grid-column: span 3;
}

.gov-field-4 {
    grid-column: span 4;
}

.gov-field-5 {
    grid-column: span 5;
}

.gov-field-6 {
    grid-column: span 6;
}

.gov-field-8 {
    grid-column: span 8;
}

.gov-field-9 {
    grid-column: span 9;
}

.gov-field-12 {
    grid-column: span 12;
}

.form-label {
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #344054;
}

.form-control,
.form-select {
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #dfe4ea;
    border-radius: 7px;
    background: #fff;
    color: #344054;
    font-size: 12px;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--gov-primary);
        outline: 0;
        box-shadow: 0 0 0 .18rem rgba(18,90,158,.10);
    }

.gov-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 2px;
}

    .gov-form-actions .btn {
        min-height: 36px;
        padding: 7px 14px;
        font-size: 11px;
    }

@media (max-width: 900px) {

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

    .reserved-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {

    .reserved-user-copy {
        display: none;
    }

    .anniversary-logo {
        width: 120px;
    }

    .reserved-nav-inner {
        overflow-x: auto;
    }

    .reserved-page,
    .gov-admin-page {
        width: calc(100% - 24px);
        padding-top: 18px;
    }

    .reserved-kpi-grid {
        grid-template-columns: 1fr;
    }

    .gov-page-header {
        flex-direction: column;
    }

    .gov-field-2,
    .gov-field-3,
    .gov-field-4,
    .gov-field-5,
    .gov-field-6,
    .gov-field-8,
    .gov-field-9,
    .gov-field-12 {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   ADMIN - LAYOUT REFINADO
   ============================================================ */

.admin-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 48px;
}

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

.admin-breadcrumb {
    margin-bottom: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--gov-primary);
}

.admin-page-header h1 {
    margin: 0 0 5px;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -.4px;
    color: #101828;
}

.admin-page-header p {
    margin: 0;
    font-size: 12px;
    color: #667085;
}

.admin-primary-action {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 12px;
    white-space: nowrap;
}

/* Filtros */

.admin-filter-panel {
    margin-bottom: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16,24,40,.025);
}

    .admin-filter-panel .form-label {
        margin-bottom: 5px;
        font-size: 11px;
        font-weight: 600;
        color: #475467;
    }

    .admin-filter-panel .form-control,
    .admin-filter-panel .form-select {
        min-height: 38px;
        font-size: 12px;
    }

.admin-filter-actions {
    display: flex;
    gap: 6px;
}

    .admin-filter-actions .btn {
        min-height: 38px;
        font-size: 11px;
    }

/* Card de dados */

.admin-data-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16,24,40,.025);
}

.admin-data-header {
    min-height: 58px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eef1f4;
}

    .admin-data-header h2 {
        margin: 0;
        font-size: 13px;
        font-weight: 700;
        color: #101828;
    }

    .admin-data-header span {
        display: block;
        margin-top: 2px;
        font-size: 10px;
        color: #98a2b3;
    }

/* Tabela */

.admin-table {
    font-size: 12px;
}

    .admin-table thead th {
        padding: 10px 14px;
        background: #f8fafc;
        border-bottom: 1px solid #e9edf2;
        color: #667085;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .35px;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .admin-table tbody td {
        padding: 12px 14px;
        border-bottom: 1px solid #f0f2f5;
        color: #475467;
    }

    .admin-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .admin-table tbody tr:hover {
        background: #fafcfd;
    }

.admin-code {
    display: inline-flex;
    padding: 3px 7px;
    border-radius: 5px;
    background: #f2f4f7;
    color: #475467;
    font-size: 10px;
    font-weight: 700;
}

.admin-entity-name {
    font-size: 12px;
    font-weight: 650;
    color: #101828;
}

.admin-entity-subtitle {
    margin-top: 2px;
    font-size: 10px;
    color: #98a2b3;
}

/* Estados */

.admin-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 650;
}

    .admin-status.active {
        color: #157347;
        background: #eaf7ef;
    }

    .admin-status.inactive {
        color: #667085;
        background: #f2f4f7;
    }

/* Empty state */

.admin-empty-state {
    min-height: 240px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.admin-empty-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eaf3fb;
    color: var(--gov-primary);
    font-size: 15px;
    font-weight: 800;
}

.admin-empty-state strong {
    font-size: 13px;
    color: #101828;
}

.admin-empty-state p {
    max-width: 380px;
    margin: 5px 0 14px;
    font-size: 11px;
    color: #667085;
}

.admin-alert {
    font-size: 12px;
}

/* Responsivo */

@media (max-width: 768px) {

    .admin-shell {
        width: calc(100% - 24px);
        padding-top: 20px;
    }

    .admin-page-header {
        flex-direction: column;
    }

    .admin-primary-action {
        width: 100%;
    }

    .admin-filter-actions {
        width: 100%;
    }

        .admin-filter-actions .btn {
            flex: 1;
        }
}
.admin-count-badge {
    display: inline-flex;
    min-width: 30px;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 6px;
    background: #eef4fa;
    color: var(--gov-primary);
    font-size: 10px;
    font-weight: 700;
}
@media (min-width: 992px) {

    .admin-filter-actions {
        justify-content: flex-end;
    }

        .admin-filter-actions .btn:first-child {
            min-width: 72px;
        }
}
/* ============================================================
   SUBMENU ADMINISTRATIVO
   ============================================================ */

.admin-subnav {
    background: #f8fafc;
    border-bottom: 1px solid #e6ebf1;
}

.admin-subnav-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
}

.admin-subnav-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 2px solid transparent;
    color: #667085;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

    .admin-subnav-link:hover {
        color: var(--gov-primary);
        background: #f1f5f9;
    }

    .admin-subnav-link.active {
        color: var(--gov-primary);
        border-bottom-color: var(--gov-primary);
        background: #fff;
    }

.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    padding: 18px;
}

.admin-detail-item span {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .35px;
    color: #98a2b3;
}

.admin-detail-item strong {
    display: block;
    font-size: 12px;
    font-weight: 650;
    color: #101828;
}

.admin-detail-wide {
    grid-column: 1 / -1;
}

.admin-state-action {
    min-height: 80px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

    .admin-state-action strong {
        display: block;
        font-size: 12px;
        color: #101828;
    }

    .admin-state-action p {
        margin: 3px 0 0;
        font-size: 10px;
        color: #667085;
    }

@media (max-width: 768px) {

    .admin-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-detail-wide {
        grid-column: auto;
    }

    .admin-state-action {
        align-items: flex-start;
        flex-direction: column;
    }
}

.audit-json {
    margin: 0;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    color: #344054;
}
.competition-text {
    white-space: pre-line;
    font-size: 12px;
    line-height: 1.7;
    color: #475467;
}
/* =========================================================
   LISTAGEM PÚBLICA DE CONCURSOS
   ========================================================= */

.public-competition-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.public-competition-card-compact {
    display: flex;
    flex-direction: column;
    min-height: 265px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

    .public-competition-card-compact:hover {
        border-color: #b8c8dd;
        box-shadow: 0 5px 16px rgba(16, 24, 40, .07);
        transform: translateY(-1px);
    }

.public-competition-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.public-reference,
.public-type,
.public-status,
.public-status-open {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.public-reference {
    background: #eef4ff;
    color: #3538cd;
}

.public-type {
    background: #f2f4f7;
    color: #475467;
}

.public-status {
    background: #fef3f2;
    color: #b42318;
}

.public-status-open {
    background: #ecfdf3;
    color: #027a48;
}

.public-competition-card-body {
    flex: 1;
    padding-top: 12px;
}

.public-competition-card-compact h3 {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

    .public-competition-card-compact h3 a {
        color: #172b4d;
        text-decoration: none;
    }

        .public-competition-card-compact h3 a:hover {
            color: var(--gov-primary);
        }

.public-competition-institution {
    font-size: 12px;
    font-weight: 600;
    color: #475467;
}

.public-competition-unit {
    margin-top: 2px;
    font-size: 11px;
    color: #667085;
}

.public-competition-info-compact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

    .public-competition-info-compact > div {
        padding: 9px 8px;
        background: #f8fafc;
        border-radius: 7px;
    }

    .public-competition-info-compact span {
        display: block;
        margin-bottom: 3px;
        font-size: 9px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: #98a2b3;
    }

    .public-competition-info-compact strong {
        display: block;
        font-size: 11px;
        color: #344054;
    }

.public-competition-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
}

@media (max-width: 1199.98px) {
    .public-competition-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .public-competition-grid {
        grid-template-columns: 1fr;
    }

    .public-competition-card-compact {
        min-height: auto;
    }

    .public-competition-info-compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .public-competition-info-compact {
        grid-template-columns: 1fr;
    }

    .public-competition-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

        .public-competition-card-footer .btn {
            width: 100%;
        }
}
/* =========================================================
   DETALHE PÚBLICO DO CONCURSO
   ========================================================= */

.public-competition-detail-header {
    background: #f5f8fc;
    border-bottom: 1px solid #e6ebf1;
    padding: 28px 0;
}

.public-competition-detail-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.public-competition-detail-header h1 {
    margin: 12px 0 6px;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    color: #172b4d;
}

.public-competition-owner {
    margin: 0;
    font-size: 13px;
    color: #667085;
}

.public-back-link {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #475467;
    text-decoration: none;
}

    .public-back-link:hover {
        color: var(--gov-primary);
    }

.public-competition-detail-section {
    padding: 28px 0 50px;
    background: #f5f8fc;
}

/* =========================================================
   CARDS DO DETALHE
   ========================================================= */

.public-detail-card {
    margin-bottom: 14px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 10px;
}

    .public-detail-card h2 {
        margin: 0 0 15px;
        font-size: 15px;
        font-weight: 700;
        color: #1d2939;
    }

.public-detail-text {
    white-space: pre-line;
    font-size: 13px;
    line-height: 1.75;
    color: #475467;
}

/* =========================================================
   PERFIL DA VAGA
   ========================================================= */

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

    .public-detail-grid > div {
        min-width: 0;
    }

    .public-detail-grid span {
        display: block;
        margin-bottom: 3px;
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .02em;
        color: #98a2b3;
    }

    .public-detail-grid strong {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #344054;
    }

/* =========================================================
   CARD LATERAL DE CANDIDATURA
   ========================================================= */

.public-application-card {
    position: sticky;
    top: 84px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 10px;
}

    .public-application-card h2 {
        margin: 0 0 15px;
        font-size: 18px;
        font-weight: 700;
        color: #1d2939;
    }

.public-application-date {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 12px;
}

    .public-application-date span {
        color: #667085;
    }

    .public-application-date strong {
        color: #1d2939;
        font-weight: 700;
    }

.public-application-card .btn {
    min-height: 40px;
    font-size: 12px;
    font-weight: 700;
}

.public-application-help {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.6;
    color: #667085;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 991.98px) {
    .public-application-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .public-competition-detail-header {
        padding: 22px 0;
    }

        .public-competition-detail-header h1 {
            font-size: 24px;
        }

    .public-detail-grid {
        grid-template-columns: 1fr;
    }

    .public-detail-card {
        padding: 16px;
    }

    .public-application-card {
        padding: 16px;
    }
}

/* ============================================================
   CONCURSOS PÚBLICOS - TIPOGRAFIA COMPACTA FINAL
   Deve permanecer no FINAL do ficheiro CSS
   ============================================================ */

/* ------------------------------------------------------------
   Página pública - cabeçalho
   ------------------------------------------------------------ */

.public-competitions-hero {
    padding: 16px 0 12px;
    background: #f3f5f8;
    border-bottom: 0;
}

.public-competitions-hero-content {
    padding: 0;
}

.public-section-label {
    display: block;
    margin: 0 0 3px;
    font-size: 10px;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #667085;
}

.public-competitions-hero h1 {
    margin: 0 0 5px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.2px;
    color: #172b4d;
}

.public-competitions-hero p {
    margin: 0;
    max-width: 900px;
    font-size: 11px;
    line-height: 1.5;
    color: #667085;
}


/* ------------------------------------------------------------
   Área de pesquisa
   ------------------------------------------------------------ */

.public-competitions-section {
    padding: 14px 0 32px;
}

.public-competition-filter {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

    .public-competition-filter .form-label {
        margin-bottom: 4px;
        font-size: 10px;
        font-weight: 600;
        color: #344054;
    }

    .public-competition-filter .form-control,
    .public-competition-filter .form-select {
        min-height: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 7px;
    }

    .public-competition-filter .btn {
        min-height: 36px;
        height: 36px;
        padding: 6px 12px;
        font-size: 11px;
        font-weight: 650;
    }


/* ------------------------------------------------------------
   Cabeçalho "Concursos Disponíveis"
   ------------------------------------------------------------ */

.public-results-header {
    margin: 12px 0 9px;
}

    .public-results-header h2 {
        margin: 0;
        font-size: 17px;
        line-height: 1.25;
        font-weight: 700;
        letter-spacing: -.15px;
        color: #172b4d;
    }

    .public-results-header p {
        margin: 2px 0 0;
        font-size: 10px;
        line-height: 1.4;
        color: #667085;
    }


/* ------------------------------------------------------------
   Cards da listagem
   ------------------------------------------------------------ */

.public-competition-grid {
    gap: 12px;
}

.public-competition-card-compact {
    min-height: 245px;
    padding: 14px;
}

    /* TÍTULO DO CONCURSO NO CARD */
    .public-competition-card-compact h3 {
        margin: 0 0 6px;
        font-size: 12px;
        line-height: 1.35;
        font-weight: 700;
    }

        .public-competition-card-compact h3 a {
            font-size: inherit;
            line-height: inherit;
            font-weight: inherit;
            color: #172b4d;
            text-decoration: none;
        }

.public-competition-institution {
    font-size: 11px;
    font-weight: 600;
}

.public-competition-unit {
    margin-top: 1px;
    font-size: 10px;
}

.public-competition-card-body {
    padding-top: 10px;
}

.public-competition-info-compact {
    gap: 7px;
    margin-top: 14px;
}

    .public-competition-info-compact > div {
        padding: 8px 7px;
    }

    .public-competition-info-compact span {
        margin-bottom: 2px;
        font-size: 8px;
    }

    .public-competition-info-compact strong {
        font-size: 10px;
    }

.public-competition-card-footer {
    margin-top: 13px;
    padding-top: 10px;
}

.public-reference,
.public-type,
.public-status,
.public-status-open {
    min-height: 19px;
    padding: 2px 6px;
    font-size: 8px;
}

.public-competition-card-footer .btn {
    min-height: 29px;
    padding: 4px 8px;
    font-size: 10px;
}


/* ============================================================
   DETALHE PÚBLICO DO CONCURSO
   ============================================================ */

.public-competition-detail-header {
    padding: 20px 0 16px;
}

/* Breadcrumb "Voltar aos concursos" */

.public-back-link {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 500;
    color: #475467;
    text-decoration: none;
}

    .public-back-link:hover {
        color: var(--gov-primary);
    }

/* Referência / tipo / estado */

.public-competition-detail-header .public-competition-meta {
    margin-top: 9px !important;
}

/* Título principal do detalhe */

.public-competition-detail-header h1 {
    margin: 9px 0 4px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.2px;
    color: #172b4d;
}

.public-competition-owner {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: #667085;
}


/* ------------------------------------------------------------
   Conteúdo do detalhe
   ------------------------------------------------------------ */

.public-competition-detail-section {
    padding: 18px 0 36px;
}

.public-detail-card {
    margin-bottom: 10px;
    padding: 15px 16px;
}

    .public-detail-card h2 {
        margin: 0 0 8px;
        font-size: 13px;
        line-height: 1.25;
        font-weight: 700;
        color: #1d2939;
    }

.public-detail-text {
    font-size: 11px;
    line-height: 1.6;
    color: #475467;
}

.public-detail-grid {
    gap: 12px 16px;
}

    .public-detail-grid span {
        margin-bottom: 2px;
        font-size: 8px;
    }

    .public-detail-grid strong {
        font-size: 10px;
    }


/* ------------------------------------------------------------
   Candidatura lateral
   ------------------------------------------------------------ */

.public-application-card {
    top: 74px;
    padding: 15px 16px;
}

    .public-application-card h2 {
        margin: 0 0 10px;
        font-size: 14px;
        line-height: 1.25;
        font-weight: 700;
    }

.public-application-date {
    padding: 8px 0;
    font-size: 10px;
}

    .public-application-date strong {
        font-size: 10px;
    }

.public-application-card .btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 10px;
}

.public-application-help {
    margin-top: 7px;
    font-size: 9px;
    line-height: 1.5;
}


/* ------------------------------------------------------------
   Mobile
   ------------------------------------------------------------ */

@media (max-width: 767.98px) {

    .public-competitions-hero h1 {
        font-size: 20px;
    }

    .public-results-header h2 {
        font-size: 16px;
    }

    .public-competition-detail-header h1 {
        font-size: 20px;
    }

    .public-detail-card {
        padding: 14px;
    }

    .public-application-card {
        padding: 14px;
    }
}

/* ============================================================
   ÁREA DO CANDIDATO
   ============================================================ */

.candidate-page {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 42px;
}

.candidate-page-header {
    margin-bottom: 18px;
}

.candidate-breadcrumb {
    margin-bottom: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--gov-primary);
}

.candidate-page-header h1 {
    margin: 0 0 4px;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 700;
    color: #101828;
}

.candidate-page-header p {
    max-width: 700px;
    margin: 0;
    font-size: 11px;
    line-height: 1.55;
    color: #667085;
}

.candidate-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16,24,40,.025);
}

.candidate-card-header {
    min-height: 48px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eef1f4;
}

    .candidate-card-header h2 {
        margin: 0;
        font-size: 12px;
        font-weight: 700;
        color: #101828;
    }

    .candidate-card-header span {
        display: block;
        margin-top: 2px;
        font-size: 9px;
        color: #98a2b3;
    }

.candidate-card-body {
    padding: 16px;
}

.candidate-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 13px 15px;
}

.candidate-field-4 {
    grid-column: span 4;
}

.candidate-field-6 {
    grid-column: span 6;
}

.candidate-field-8 {
    grid-column: span 8;
}

.candidate-field-12 {
    grid-column: span 12;
}

.candidate-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

    .candidate-form-actions .btn {
        min-height: 36px;
        font-size: 11px;
    }

.candidate-alert {
    font-size: 11px;
}

@media (max-width: 767.98px) {

    .candidate-page {
        width: calc(100% - 24px);
        padding-top: 18px;
    }

    .candidate-field-4,
    .candidate-field-6,
    .candidate-field-8,
    .candidate-field-12 {
        grid-column: 1 / -1;
    }

    .candidate-form-actions {
        flex-direction: column-reverse;
    }

        .candidate-form-actions .btn {
            width: 100%;
        }
}

.application-summary-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
}

    .application-summary-grid > div {
        padding: 10px 12px;
        background: #f8fafc;
        border-radius: 7px;
    }

    .application-summary-grid span {
        display: block;
        margin-bottom: 2px;
        font-size: 8px;
        text-transform: uppercase;
        color: #98a2b3;
    }

    .application-summary-grid strong {
        display: block;
        font-size: 11px;
        color: #344054;
    }

@media (max-width: 767.98px) {
    .application-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CANDIDATURAS - ÁREA DO CANDIDATO
   ============================================================ */

.candidate-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.candidate-application-number {
    min-width: 180px;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
}

    .candidate-application-number span {
        display: block;
        margin-bottom: 2px;
        font-size: 8px;
        text-transform: uppercase;
        color: #98a2b3;
    }

    .candidate-application-number strong {
        font-size: 11px;
        color: #344054;
    }

.candidate-application-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

    .candidate-application-status > div {
        padding: 10px 12px;
        background: #fff;
        border: 1px solid #e5eaf0;
        border-radius: 8px;
    }

    .candidate-application-status span {
        display: block;
        margin-bottom: 3px;
        font-size: 8px;
        font-weight: 600;
        text-transform: uppercase;
        color: #98a2b3;
    }

    .candidate-application-status strong {
        font-size: 10px;
        color: #344054;
    }

.candidate-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef4ff;
    color: #3538cd;
    font-size: 9px;
    font-weight: 700;
}

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

.candidate-detail-wide {
    grid-column: 1 / -1;
}

.candidate-detail-grid span {
    display: block;
    margin-bottom: 3px;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    color: #98a2b3;
}

.candidate-detail-grid strong {
    display: block;
    font-size: 11px;
    color: #344054;
}

.candidate-text {
    white-space: pre-line;
    font-size: 11px;
    line-height: 1.65;
    color: #475467;
}

.candidate-empty-inline {
    padding: 8px 0;
    font-size: 10px;
    color: #98a2b3;
}

.candidate-empty-documents,
.candidate-empty-applications {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.candidate-empty-documents-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #eef4fa;
    color: var(--gov-primary);
    font-size: 9px;
    font-weight: 800;
}

.candidate-empty-documents strong,
.candidate-empty-applications strong {
    font-size: 12px;
    color: #101828;
}

.candidate-empty-documents p,
.candidate-empty-applications p {
    max-width: 420px;
    margin: 5px 0 12px;
    font-size: 10px;
    line-height: 1.5;
    color: #667085;
}

.candidate-summary-card {
    position: sticky;
    top: 80px;
}

.candidate-summary-item {
    padding: 9px 0;
    border-bottom: 1px solid #f0f2f5;
}

    .candidate-summary-item:first-child {
        padding-top: 0;
    }

    .candidate-summary-item:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .candidate-summary-item span {
        display: block;
        margin-bottom: 2px;
        font-size: 8px;
        text-transform: uppercase;
        color: #98a2b3;
    }

    .candidate-summary-item strong {
        font-size: 10px;
        color: #344054;
    }

.candidate-next-steps {
    display: grid;
    gap: 8px;
}

    .candidate-next-steps > div {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .candidate-next-steps b {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: #eef4fa;
        color: var(--gov-primary);
        font-size: 9px;
    }

    .candidate-next-steps span {
        font-size: 10px;
        color: #475467;
    }

/* Lista */

.candidate-applications-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.candidate-application-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
}

.candidate-application-card-header {
    min-height: 43px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #eef1f4;
}

    .candidate-application-card-header > div {
        display: flex;
        align-items: center;
        gap: 5px;
    }

.candidate-application-reference {
    font-size: 8px;
    font-weight: 700;
    color: #475467;
}

.candidate-application-number-small {
    font-size: 8px;
    color: #98a2b3;
}

.candidate-application-card-body {
    min-height: 105px;
    padding: 13px;
}

    .candidate-application-card-body h2 {
        margin: 0 0 5px;
        font-size: 12px;
        line-height: 1.4;
        color: #172b4d;
    }

    .candidate-application-card-body p {
        margin: 0;
        font-size: 10px;
        color: #667085;
    }

.candidate-application-card-footer {
    padding: 9px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eef1f4;
}

    .candidate-application-card-footer span {
        display: block;
        font-size: 8px;
        text-transform: uppercase;
        color: #98a2b3;
    }

    .candidate-application-card-footer strong {
        display: block;
        margin-top: 1px;
        font-size: 9px;
        color: #475467;
    }

@media (max-width: 767.98px) {

    .candidate-heading-row {
        flex-direction: column;
    }

    .candidate-application-number {
        width: 100%;
    }

    .candidate-application-status,
    .candidate-detail-grid,
    .candidate-applications-grid {
        grid-template-columns: 1fr;
    }

    .candidate-detail-wide {
        grid-column: auto;
    }

    .candidate-summary-card {
        position: static;
    }
}

/* ============================================================
   CANDIDATURA SUBMETIDA
   ============================================================ */

.candidate-submitted-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.candidate-submitted-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf7ef;
    color: #157347;
    font-size: 15px;
    font-weight: 800;
}

.candidate-submitted-box strong {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    color: #101828;
}

.candidate-submitted-box p {
    margin: 0 0 5px;
    font-size: 9px;
    line-height: 1.5;
    color: #667085;
}

.candidate-submitted-box span {
    display: block;
    font-size: 9px;
    font-weight: 600;
    color: #475467;
}

/* ============================================================
   DOCUMENTOS DA CANDIDATURA - LINHA HORIZONTAL
   ============================================================ */

.candidate-document-row {
    min-height: 58px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #edf0f3;
    border-radius: 7px;
}

.candidate-document-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #eaf3fb;
    color: var(--gov-primary);
    font-size: 8px;
    font-weight: 800;
}

.candidate-document-info {
    flex: 1 1 auto;
    min-width: 0;
}

    .candidate-document-info strong {
        display: block;
        margin: 0 0 2px;
        font-size: 10px;
        font-weight: 700;
        color: #344054;
    }

    .candidate-document-info span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 9px;
        color: #667085;
    }

.candidate-document-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-left: auto;
}

    .candidate-document-actions form {
        margin: 0;
    }

    .candidate-document-actions .btn {
        min-height: 30px;
        padding: 5px 9px;
        font-size: 9px;
        font-weight: 600;
        white-space: nowrap;
    }

@media (max-width: 767.98px) {

    .candidate-document-row {
        align-items: flex-start;
    }

    .candidate-document-actions {
        margin-left: auto;
        padding-left: 0;
    }
}

@media (max-width: 520px) {

    .candidate-document-row {
        flex-wrap: wrap;
    }

    .candidate-document-info {
        width: calc(100% - 42px);
    }

    .candidate-document-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 4px;
    }
}

.candidate-required-documents {
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #edf0f3;
    border-radius: 7px;
}

.candidate-required-documents-title {
    margin-bottom: 7px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #667085;
}

.candidate-required-document {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 0;
    font-size: 10px;
    color: #344054;
}

.candidate-required-state {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
}

    .candidate-required-state.complete {
        background: #eaf7ef;
        color: #157347;
    }

    .candidate-required-state.missing {
        background: #fef3f2;
        color: #b42318;
    }
/* ============================================================
   DOCUMENTOS OBRIGATÓRIOS DO CONCURSO
   ============================================================ */

.competition-document-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.competition-document-option {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e7ebef;
    border-radius: 7px;
    cursor: pointer;
}

    .competition-document-option:hover {
        background: #f2f6fa;
        border-color: #cbd8e5;
    }

    .competition-document-option input {
        width: 15px;
        height: 15px;
        min-height: 0;
        flex: 0 0 15px;
    }

    .competition-document-option span {
        font-size: 10px;
        font-weight: 600;
        color: #344054;
    }


/* Candidato */

.candidate-required-documents {
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #edf0f3;
    border-radius: 7px;
}

.candidate-required-documents-title {
    margin-bottom: 7px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: #667085;
}

.candidate-required-document {
    min-height: 28px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 0;
    font-size: 10px;
    color: #344054;
}

.candidate-required-state {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
}

    .candidate-required-state.complete {
        background: #eaf7ef;
        color: #157347;
    }

    .candidate-required-state.missing {
        background: #fef3f2;
        color: #b42318;
    }

.candidate-summary-complete {
    color: #157347 !important;
}

.candidate-summary-pending {
    color: #b54708 !important;
}

@media (max-width: 767.98px) {

    .competition-document-options {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   DETALHES DO CONCURSO
   ========================================================== */

.competition-details-page {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 34px 28px 50px;
}

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

.competition-details-heading {
    min-width: 0;
    flex: 1;
}

.competition-details-eyebrow {
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    color: #075da8;
}

.competition-details-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

    .competition-details-title-row h1 {
        margin: 0;
        font-size: 27px;
        line-height: 1.2;
        font-weight: 750;
        color: #12233f;
    }

.competition-details-reference {
    margin-top: 5px;
    font-size: 12px;
    color: #667085;
}

.competition-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf7ef;
    color: #157347;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.competition-details-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.competition-alert {
    margin-bottom: 18px;
}

.competition-details-card {
    margin-bottom: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 9px;
    box-shadow: 0 2px 5px rgba(16, 24, 40, .035);
}

.competition-card-header {
    min-height: 61px;
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #edf0f3;
}

    .competition-card-header h2 {
        margin: 0;
        font-size: 13px;
        line-height: 1.3;
        font-weight: 750;
        color: #17233d;
    }

    .competition-card-header p {
        margin: 3px 0 0;
        font-size: 10px;
        color: #98a2b3;
    }

.competition-card-body {
    padding: 17px 18px;
}

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

.competition-info-item {
    min-width: 0;
    padding: 12px 14px 12px 0;
    border-bottom: 1px solid #f0f2f5;
}

    .competition-info-item:nth-last-child(-n+2) {
        border-bottom: 0;
    }

.competition-info-wide {
    grid-column: 1 / -1;
}

.competition-info-item span {
    display: block;
    margin-bottom: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .35px;
    color: #98a2b3;
}

.competition-info-item strong {
    display: block;
    font-size: 11px;
    line-height: 1.45;
    font-weight: 650;
    color: #1d2939;
}

.competition-long-text {
    font-size: 11px;
    line-height: 1.7;
    color: #475467;
    white-space: pre-line;
}

.competition-empty-text {
    padding: 7px 0;
    font-size: 11px;
    color: #98a2b3;
}

.competition-content-label {
    margin-bottom: 8px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #667085;
}

.competition-content-divider {
    height: 1px;
    margin: 17px 0;
    background: #edf0f3;
}

.competition-date-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.competition-date-item {
    padding: 13px;
    background: #f8fafc;
    border: 1px solid #edf0f3;
    border-radius: 7px;
}

    .competition-date-item span {
        display: block;
        margin-bottom: 4px;
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
        color: #98a2b3;
    }

    .competition-date-item strong {
        font-size: 11px;
        color: #1d2939;
    }

.competition-sidebar {
    position: sticky;
    top: 90px;
}

.competition-summary-row {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #edf0f3;
}

    .competition-summary-row:last-child {
        border-bottom: 0;
    }

    .competition-summary-row span {
        font-size: 10px;
        color: #667085;
    }

    .competition-summary-row strong {
        max-width: 65%;
        text-align: right;
        font-size: 10px;
        color: #1d2939;
    }

.competition-summary-status {
    color: #157347 !important;
}

.competition-public-yes {
    color: #157347 !important;
}

.competition-public-no {
    color: #b54708 !important;
}

.competition-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .competition-actions form {
        margin: 0;
    }

    .competition-actions .btn {
        min-height: 38px;
        font-size: 10px;
        font-weight: 700;
    }

.competition-danger-separator {
    height: 1px;
    margin: 5px 0;
    background: #edf0f3;
}

@media (max-width: 991.98px) {

    .competition-details-page {
        padding: 25px 18px 40px;
    }

    .competition-sidebar {
        position: static;
    }
}

@media (max-width: 767.98px) {

    .competition-details-header {
        flex-direction: column;
    }

    .competition-details-header-actions {
        width: 100%;
    }

        .competition-details-header-actions .btn {
            flex: 1;
        }

    .competition-info-grid,
    .competition-date-grid {
        grid-template-columns: 1fr;
    }

    .competition-info-wide {
        grid-column: auto;
    }

    .competition-info-item {
        padding-right: 0;
    }

    .competition-details-title-row h1 {
        font-size: 22px;
    }
}

/* ==========================================================
   CANDIDATURAS DO CONCURSO
   ========================================================== */

.competition-applications-page {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 34px 28px 50px;
}

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

    .competition-applications-header h1 {
        margin: 2px 0 4px;
        font-size: 26px;
        font-weight: 750;
        color: #17233d;
    }

    .competition-applications-header p {
        margin: 0;
        font-size: 11px;
        color: #667085;
    }

.competition-application-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.competition-application-kpi {
    min-height: 100px;
    padding: 16px 17px;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 9px;
}

    .competition-application-kpi span {
        display: block;
        margin-bottom: 4px;
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
        color: #98a2b3;
    }

    .competition-application-kpi strong {
        display: block;
        font-size: 25px;
        line-height: 1.1;
        color: #17233d;
    }

    .competition-application-kpi small {
        display: block;
        margin-top: 5px;
        font-size: 9px;
        color: #98a2b3;
    }

.competition-applications-filter {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.competition-applications-filter-actions {
    display: flex;
    gap: 8px;
}

.competition-applications-table {
    margin: 0;
}

    .competition-applications-table thead th {
        padding: 12px 16px;
        background: #f8fafc;
        border-bottom: 1px solid #e7ebef;
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .3px;
        color: #667085;
    }

    .competition-applications-table tbody td {
        padding: 13px 16px;
        vertical-align: middle;
        border-bottom: 1px solid #edf0f3;
        font-size: 10px;
        color: #475467;
    }

    .competition-applications-table tbody tr:last-child td {
        border-bottom: 0;
    }

.competition-application-number {
    font-size: 10px;
    color: #174f87;
}

.competition-application-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef4fa;
    color: #174f87;
    font-size: 9px;
    font-weight: 700;
}

.competition-applications-empty {
    padding: 30px 20px;
    text-align: center;
}

    .competition-applications-empty strong {
        display: block;
        font-size: 12px;
        color: #344054;
    }

    .competition-applications-empty p {
        margin: 5px 0 0;
        font-size: 10px;
        color: #98a2b3;
    }

@media (max-width: 991.98px) {

    .competition-application-kpis {
        grid-template-columns: 1fr;
    }

    .competition-applications-filter {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {

    .competition-applications-page {
        padding: 24px 16px 40px;
    }

    .competition-applications-header {
        flex-direction: column;
    }
}

/* ==========================================================
   DETALHE ADMINISTRATIVO DA CANDIDATURA
   ========================================================== */

.competition-application-detail-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 26px 24px 42px;
}

.competition-app-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

    .competition-app-detail-header h1 {
        margin: 3px 0 4px;
        font-size: 25px;
        line-height: 1.2;
        font-weight: 750;
        color: #17233d;
    }

    .competition-app-detail-header p {
        margin: 0;
        font-size: 11px;
        color: #667085;
    }

.competition-application-detail-page > .row {
    --bs-gutter-x: 16px;
}

/*
 * Coluna principal ligeiramente mais larga,
 * mas sem ocupar toda a largura da janela.
 */
.competition-application-detail-page .col-lg-8 {
    flex: 0 0 auto;
    width: 68%;
}

.competition-application-detail-page .col-lg-4 {
    flex: 0 0 auto;
    width: 32%;
}

.competition-application-detail-page .competition-details-card {
    margin-bottom: 14px;
}

.competition-application-detail-page .competition-card-header {
    min-height: 54px;
    padding: 12px 16px;
}

    .competition-application-detail-page .competition-card-header h2 {
        font-size: 12px;
    }

    .competition-application-detail-page .competition-card-header p {
        font-size: 9px;
    }

.competition-application-detail-page .competition-card-body {
    padding: 14px 16px;
}

/* Dados do candidato */
.competition-application-detail-page .competition-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.competition-application-detail-page .competition-info-item {
    padding: 9px 12px 9px 0;
}

    .competition-application-detail-page .competition-info-item span {
        margin-bottom: 3px;
        font-size: 8px;
    }

    .competition-application-detail-page .competition-info-item strong {
        font-size: 10px;
        line-height: 1.4;
    }

/* Sidebar */
.competition-application-detail-page .competition-sidebar {
    top: 82px;
}

.competition-application-detail-page .competition-summary-row {
    min-height: 38px;
}

    .competition-application-detail-page .competition-summary-row span {
        font-size: 9px;
    }

    .competition-application-detail-page .competition-summary-row strong {
        font-size: 9px;
        max-width: 62%;
    }

/* Documentos */
.competition-application-detail-page .candidate-document-row {
    min-height: 52px;
    padding: 8px 9px;
}

.competition-application-detail-page .candidate-document-info strong {
    font-size: 9px;
}

.competition-application-detail-page .candidate-document-info span {
    font-size: 8px;
}

.competition-application-detail-page .candidate-document-actions .btn {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 8px;
}

/* Texto longo */
.competition-application-detail-page .competition-long-text,
.competition-application-detail-page .competition-empty-text {
    font-size: 10px;
}

/* Responsivo */
@media (max-width: 1199.98px) {

    .competition-application-detail-page {
        max-width: 1100px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 991.98px) {

    .competition-application-detail-page {
        max-width: 920px;
    }

        .competition-application-detail-page .col-lg-8,
        .competition-application-detail-page .col-lg-4 {
            width: 100%;
        }

        .competition-application-detail-page .competition-sidebar {
            position: static;
        }
}

@media (max-width: 767.98px) {

    .competition-application-detail-page {
        padding: 20px 14px 32px;
    }

    .competition-app-detail-header {
        flex-direction: column;
    }

        .competition-app-detail-header .btn {
            width: 100%;
        }

    .competition-application-detail-page .competition-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   ADMINISTRAÇÃO - CANDIDATURAS
   ========================================================== */

.admin-applications-filter {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) minmax(260px, 1.3fr) minmax(180px, .8fr) auto;
    align-items: end;
    gap: 12px;
}

.admin-applications-filter-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-application-secondary {
    margin-top: 3px;
    font-size: 8px;
    color: #98a2b3;
}

@media (max-width: 1199.98px) {

    .admin-applications-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-applications-filter-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 767.98px) {

    .admin-applications-filter {
        grid-template-columns: 1fr;
    }

    .admin-applications-filter-actions {
        justify-content: stretch;
    }

        .admin-applications-filter-actions .btn {
            flex: 1;
        }
}
/* ==========================================================
   TRIAGEM ADMINISTRATIVA
   ========================================================== */

.admin-review-info {
    margin-bottom: 12px;
    padding: 10px 11px;
    background: #f8fafc;
    border: 1px solid #edf0f3;
    border-radius: 7px;
}

    .admin-review-info p {
        margin: 0;
        font-size: 10px;
        line-height: 1.5;
        color: #667085;
    }

.admin-review-separator {
    height: 1px;
    margin: 14px 0;
    background: #edf0f3;
}

.admin-review-result {
    padding: 13px;
    border-radius: 7px;
}

    .admin-review-result strong {
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
    }

    .admin-review-result p {
        margin: 0;
        font-size: 10px;
        line-height: 1.5;
    }

    .admin-review-result.admitted {
        background: #ecfdf3;
        border: 1px solid #abefc6;
        color: #067647;
    }

    .admin-review-result.rejected {
        background: #fef3f2;
        border: 1px solid #fecdca;
        color: #b42318;
    }

/* ==========================================================
   AVALIAÇÃO
   ========================================================== */

.evaluation-filter-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) minmax(300px, 1.2fr) auto;
    gap: 12px;
    align-items: end;
}

.evaluation-filter-actions {
    display: flex;
    gap: 7px;
}

@media (max-width: 991.98px) {

    .evaluation-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .evaluation-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 767.98px) {

    .evaluation-filter-grid {
        grid-template-columns: 1fr;
    }

    .evaluation-filter-actions {
        grid-column: auto;
    }

        .evaluation-filter-actions .btn {
            flex: 1;
        }
}

/* ==========================================================
   COMPOSIÇÃO DO JÚRI
   ========================================================== */

.competition-jury-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 45px;
}

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

    .competition-jury-header h1 {
        margin: 3px 0 4px;
        font-size: 25px;
        line-height: 1.2;
        font-weight: 750;
        color: #17233d;
    }

    .competition-jury-header p {
        margin: 0;
        font-size: 11px;
        color: #667085;
    }

.jury-table {
    margin: 0;
}

    .jury-table thead th {
        padding: 11px 15px;
        background: #f8fafc;
        border-bottom: 1px solid #e7ebef;
        font-size: 8px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .35px;
        color: #667085;
    }

    .jury-table tbody td {
        padding: 12px 15px;
        vertical-align: middle;
        border-bottom: 1px solid #edf0f3;
        font-size: 10px;
        color: #475467;
    }

    .jury-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .jury-table tbody strong {
        font-size: 10px;
        color: #1d2939;
    }

.jury-role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef4fa;
    color: #174f87;
    font-size: 8px;
    font-weight: 750;
}

@media (max-width: 991.98px) {

    .competition-jury-page {
        max-width: 920px;
    }
}

@media (max-width: 767.98px) {

    .competition-jury-page {
        padding: 20px 14px 35px;
    }

    .competition-jury-header {
        flex-direction: column;
    }

        .competition-jury-header .btn {
            width: 100%;
        }
}

/* ==========================================================
   FICHA DE AVALIAÇÃO
   ========================================================== */

.evaluation-detail-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 45px;
}

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

    .evaluation-detail-header h1 {
        margin: 3px 0 4px;
        font-size: 25px;
        font-weight: 750;
        line-height: 1.2;
        color: #17233d;
    }

    .evaluation-detail-header p {
        margin: 0;
        font-size: 11px;
        color: #667085;
    }

.evaluation-criterion {
    padding: 15px 0;
    border-bottom: 1px solid #edf0f3;
}

    .evaluation-criterion:first-child {
        padding-top: 0;
    }

    .evaluation-criterion:last-of-type {
        border-bottom: 0;
    }

.evaluation-criterion-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 11px;
}

    .evaluation-criterion-heading strong {
        display: block;
        font-size: 11px;
        color: #1d2939;
    }

    .evaluation-criterion-heading p {
        margin: 4px 0 0;
        max-width: 650px;
        font-size: 9px;
        line-height: 1.5;
        color: #667085;
    }

    .evaluation-criterion-heading > span {
        flex: 0 0 auto;
        font-size: 9px;
        color: #667085;
    }

    .evaluation-criterion-heading b {
        color: #174f87;
    }

.evaluation-criterion-fields {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 16px;
}

.evaluation-score-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.evaluation-score-field {
    width: 120px !important;
    min-width: 120px;
    max-width: 120px;
}

.evaluation-score-maximum {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-size: 10px;
    color: #667085;
}

    .evaluation-score-maximum strong {
        color: #17233d;
    }

.evaluation-criterion-max {
    flex: 0 0 auto;
    font-size: 10px;
    color: #667085;
    white-space: nowrap;
}

    .evaluation-criterion-max strong {
        color: #174f87;
    }

.evaluation-comments {
    margin-top: 17px;
    padding-top: 16px;
    border-top: 1px solid #edf0f3;
}

.evaluation-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 17px;
    padding-top: 16px;
    border-top: 1px solid #edf0f3;
}

.evaluation-total {
    text-align: center;
    padding: 8px 0 14px;
}

    .evaluation-total span {
        display: block;
        margin-bottom: 4px;
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
        color: #98a2b3;
    }

    .evaluation-total strong {
        display: block;
        font-size: 33px;
        line-height: 1.1;
        color: #174f87;
    }

    .evaluation-total small {
        display: block;
        margin-top: 4px;
        font-size: 9px;
        color: #98a2b3;
    }

.evaluation-progress {
    height: 6px;
    overflow: hidden;
    background: #edf0f3;
    border-radius: 999px;
}

.evaluation-progress-bar {
    height: 100%;
    background: #0c4f8a;
    border-radius: inherit;
    transition: width .2s ease;
}

@media (max-width: 767.98px) {

    .evaluation-detail-page {
        padding: 20px 14px 35px;
    }

    .evaluation-detail-header {
        flex-direction: column;
    }

        .evaluation-detail-header .btn {
            width: 100%;
        }

    .evaluation-criterion-heading {
        flex-direction: column;
    }

    .evaluation-criterion-fields {
        grid-template-columns: 1fr;
    }

    .evaluation-actions {
        flex-direction: column-reverse;
    }

        .evaluation-actions .btn {
            width: 100%;
        }
}

/* ==========================================================
   CLASSIFICAÇÃO / RANKING
   ========================================================== */

.ranking-generation-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

    .ranking-generation-bar strong {
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
        color: #1d2939;
    }

    .ranking-generation-bar p {
        margin: 0;
        font-size: 9px;
        line-height: 1.5;
        color: #667085;
    }

.ranking-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #eef4fa;
    color: #174f87;
    font-size: 11px;
    font-weight: 800;
}

.ranking-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 750;
    white-space: nowrap;
}

    .ranking-status.selected {
        background: #ecfdf3;
        color: #067647;
    }

    .ranking-status.outside {
        background: #f2f4f7;
        color: #475467;
    }

    .ranking-status.tie {
        background: #fffaeb;
        color: #b54708;
    }

    .ranking-status.neutral {
        background: #eef4fa;
        color: #175cd3;
    }

@media (max-width: 767.98px) {

    .ranking-generation-bar {
        flex-direction: column;
        align-items: stretch;
    }

        .ranking-generation-bar .btn {
            width: 100%;
        }
}

/* ==========================================================
   DESEMPATE
   ========================================================== */

.tie-break-candidates {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tie-break-candidate {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

    .tie-break-candidate:hover {
        border-color: #98a2b3;
        background: #f9fafb;
    }

.tie-break-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tie-break-candidate-info strong {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    color: #1d2939;
}

.tie-break-candidate-info span {
    display: block;
    font-size: 9px;
    color: #667085;
}

.tie-break-score {
    text-align: right;
}

    .tie-break-score strong {
        display: block;
        font-size: 14px;
        color: #174f87;
    }

    .tie-break-score span {
        display: block;
        margin-top: 1px;
        font-size: 8px;
        color: #98a2b3;
    }

.tie-break-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #edf0f3;
}

@media (max-width: 575.98px) {

    .tie-break-candidate {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .tie-break-score {
        grid-column: 2;
        text-align: left;
    }

    .tie-break-actions .btn {
        width: 100%;
    }
}

/* ==========================================================
   PUBLICAÇÃO DE RESULTADOS
   ========================================================== */

.result-publication-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.result-publication-state {
    padding: 12px 14px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #f9fafb;
}

    .result-publication-state span {
        display: block;
        margin-bottom: 5px;
        font-size: 9px;
        color: #667085;
    }

    .result-publication-state strong {
        display: block;
        font-size: 11px;
        color: #1d2939;
    }

.result-publication-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #edf0f3;
}

@media (max-width: 767.98px) {

    .result-publication-grid {
        grid-template-columns: 1fr;
    }

    .result-publication-actions {
        flex-direction: column;
    }

        .result-publication-actions form,
        .result-publication-actions .btn {
            width: 100%;
        }
}

/* ==========================================================
   INSTITUIÇÕES COM VAGAS - ÁREA PÚBLICA
   ========================================================== */

.public-institution-grid {
    display: grid;
    grid-template-columns: repeat( 3, minmax(0, 1fr) );
    gap: 14px;
    padding: 16px;
}

.public-institution-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.public-institution-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #edf0f3;
}

.public-institution-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #f2f4f7;
    font-size: 17px;
}

.public-institution-card-header span {
    display: block;
    margin-bottom: 4px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #667085;
}

.public-institution-card-header h2 {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #1d2939;
}

.public-institution-stats {
    display: grid;
    grid-template-columns: repeat( 2, minmax(0, 1fr) );
    border-bottom: 1px solid #edf0f3;
}

    .public-institution-stats > div {
        padding: 13px 16px;
    }

        .public-institution-stats > div + div {
            border-left: 1px solid #edf0f3;
        }

    .public-institution-stats span,
    .public-institution-deadline span {
        display: block;
        margin-bottom: 4px;
        font-size: 8px;
        color: #667085;
    }

    .public-institution-stats strong {
        font-size: 16px;
        color: #174f87;
    }

.public-institution-deadline {
    padding: 13px 16px;
}

    .public-institution-deadline strong {
        font-size: 10px;
        color: #344054;
    }

.public-institution-actions {
    margin-top: auto;
    padding: 0 16px 16px;
}

    .public-institution-actions .btn {
        width: 100%;
    }


/* ==========================================================
   CONCURSOS POR INSTITUIÇÃO
   ========================================================== */

.public-competition-list {
    display: flex;
    flex-direction: column;
}

.public-competition-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border-bottom: 1px solid #edf0f3;
}

    .public-competition-item:last-child {
        border-bottom: 0;
    }

.public-competition-main {
    min-width: 0;
    flex: 1;
}

.public-competition-reference {
    margin-bottom: 3px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #667085;
}

.public-competition-main h2 {
    margin: 0 0 12px;
    font-size: 13px;
    color: #1d2939;
}

.public-competition-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

    .public-competition-meta span {
        display: block;
        margin-bottom: 2px;
        font-size: 8px;
        color: #98a2b3;
    }

    .public-competition-meta strong {
        font-size: 9px;
        color: #344054;
    }

.public-competition-open {
    color: #067647 !important;
}

.public-competition-actions {
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {

    .public-institution-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {

    .public-institution-grid {
        grid-template-columns: 1fr;
    }

    .public-competition-item {
        align-items: stretch;
        flex-direction: column;
    }

    .public-competition-actions,
    .public-competition-actions .btn {
        width: 100%;
    }
}

.public-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.public-status-open {
    background: #ecfdf3;
    color: #067647;
}

.public-status-upcoming {
    background: #eff8ff;
    color: #175cd3;
}

.public-status-closed {
    background: #f2f4f7;
    color: #475467;
}

.public-status-provisional {
    background: #fffaeb;
    color: #b54708;
}

.public-status-final {
    background: #ecfdf3;
    color: #067647;
}

/* ==========================================================
   CARDS - CONCURSOS PÚBLICOS
   ========================================================== */

.public-competition-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 16px;
}

.public-competition-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .public-competition-card:hover {
        transform: translateY(-2px);
        border-color: #d0d5dd;
        box-shadow: 0 8px 20px rgba(16, 24, 40, .06);
    }

.public-competition-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #edf0f3;
}

.public-competition-card-reference {
    margin-bottom: 5px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #667085;
}

.public-competition-card-top h2 {
    margin: 0 0 5px;
    font-size: 13px;
    line-height: 1.4;
    color: #1d2939;
}

.public-competition-card-institution {
    font-size: 9px;
    color: #667085;
}

.public-competition-card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid #edf0f3;
}

    .public-competition-card-stats > div {
        padding: 12px 14px;
    }

        .public-competition-card-stats > div + div {
            border-left: 1px solid #edf0f3;
        }

    .public-competition-card-stats span {
        display: block;
        margin-bottom: 3px;
        font-size: 8px;
        color: #98a2b3;
    }

    .public-competition-card-stats strong {
        display: block;
        font-size: 10px;
        color: #344054;
    }

.public-competition-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto;
    padding: 14px 16px;
}

    .public-competition-card-actions .btn {
        min-width: 105px;
    }

@media (max-width: 1199.98px) {

    .public-competition-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {

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

    .public-competition-card-top {
        flex-direction: column;
    }

    .public-competition-card-actions {
        flex-direction: column;
    }

        .public-competition-card-actions .btn {
            width: 100%;
        }
}
/* ==========================================================
   CANDIDATURAS - ÁREA DO CANDIDATO
   ========================================================== */

.candidate-application-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 16px;
}

.candidate-application-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

    .candidate-application-card:hover {
        transform: translateY(-1px);
        border-color: #d0d5dd;
        box-shadow: 0 8px 20px rgba(16, 24, 40, .05);
    }

.candidate-application-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid #edf0f3;
}

.candidate-application-number {
    margin-bottom: 5px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #667085;
}

.candidate-application-card-header h2 {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.4;
    color: #1d2939;
}

.candidate-application-institution {
    font-size: 9px;
    color: #667085;
}


/* ==========================================================
   ESTADOS DA CANDIDATURA
   ========================================================== */

.candidate-status {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.candidate-status-draft {
    background: #f2f4f7;
    color: #475467;
}

.candidate-status-submitted {
    background: #eff8ff;
    color: #175cd3;
}

.candidate-status-review {
    background: #fffaeb;
    color: #b54708;
}

.candidate-status-admitted {
    background: #ecfdf3;
    color: #067647;
}

.candidate-status-rejected {
    background: #fef3f2;
    color: #b42318;
}

.candidate-status-evaluation {
    background: #eef4ff;
    color: #3538cd;
}

.candidate-status-selected {
    background: #ecfdf3;
    color: #067647;
}

.candidate-status-not-selected {
    background: #fef3f2;
    color: #b42318;
}

.candidate-status-withdrawn {
    background: #f2f4f7;
    color: #667085;
}

.candidate-status-default {
    background: #f2f4f7;
    color: #475467;
}


/* ==========================================================
   DADOS DA CANDIDATURA
   ========================================================== */

.candidate-application-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid #edf0f3;
}

    .candidate-application-info > div {
        padding: 12px 14px;
    }

        .candidate-application-info > div + div {
            border-left: 1px solid #edf0f3;
        }

    .candidate-application-info span {
        display: block;
        margin-bottom: 3px;
        font-size: 8px;
        color: #98a2b3;
    }

    .candidate-application-info strong {
        display: block;
        font-size: 9px;
        color: #344054;
    }


/* ==========================================================
   RESULTADO DA CANDIDATURA
   ========================================================== */

.candidate-result-panel {
    margin: 14px;
    padding: 13px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #f9fafb;
}

.candidate-result-panel-title {
    margin-bottom: 12px;
}

.candidate-result-data {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

    .candidate-result-data span {
        display: block;
        margin-bottom: 3px;
        font-size: 8px;
        color: #98a2b3;
    }

    .candidate-result-data strong {
        display: block;
        font-size: 11px;
        color: #344054;
    }

.candidate-result-positive {
    color: #067647 !important;
}

.candidate-result-negative {
    color: #b42318 !important;
}


/* ==========================================================
   ACÇÕES
   ========================================================== */

.candidate-application-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto;
    padding: 14px 16px;
    border-top: 1px solid #edf0f3;
}


/* ==========================================================
   RESPONSIVO
   ========================================================== */

@media (max-width: 991.98px) {

    .candidate-application-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {

    .candidate-application-card-header {
        flex-direction: column;
    }

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

        .candidate-application-info > div + div {
            border-left: 0;
            border-top: 1px solid #edf0f3;
        }

    .candidate-result-data {
        grid-template-columns: 1fr;
    }

    .candidate-application-actions {
        flex-direction: column;
    }

        .candidate-application-actions .btn {
            width: 100%;
        }
}

/* ==========================================================
   BADGE DE NOTIFICAÇÕES
   ========================================================== */

.candidate-notification-nav-text {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.candidate-notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #d92d20;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
}


/* ==========================================================
   LISTA DE NOTIFICAÇÕES
   ========================================================== */

.candidate-notification-list {
    display: flex;
    flex-direction: column;
}

.candidate-notification-item {
    display: grid;
    grid-template-columns: 5px minmax(0, 1fr);
    border-bottom: 1px solid #edf0f3;
    background: #fff;
}

    .candidate-notification-item:last-child {
        border-bottom: 0;
    }

    .candidate-notification-item.unread {
        background: #f9fbfd;
    }

.candidate-notification-marker {
    background: transparent;
}

.candidate-notification-item.unread
.candidate-notification-marker {
    background: #175cd3;
}

.candidate-notification-content {
    padding: 14px 16px;
}

.candidate-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 5px;
}

    .candidate-notification-header strong {
        font-size: 10px;
        color: #1d2939;
    }

    .candidate-notification-header span {
        flex: 0 0 auto;
        font-size: 8px;
        color: #98a2b3;
    }

.candidate-notification-content p {
    margin: 0;
    font-size: 9px;
    line-height: 1.6;
    color: #667085;
}

.candidate-notification-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 9px;
}

@media (max-width: 575.98px) {

    .candidate-notification-header {
        flex-direction: column;
    }
}
/* ==========================================================
   HOME PÚBLICA - DADOS REAIS
   ========================================================== */

.public-home-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.public-home-panel {
    overflow: hidden;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    background: #fff;
}

.public-home-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 17px;
    border-bottom: 1px solid #e8ebef;
}

    .public-home-panel-header h2 {
        margin: 0;
        font-size: 15px;
        color: #172b4d;
    }

    .public-home-panel-header a {
        font-size: 9px;
        font-weight: 700;
        text-decoration: none;
    }

.public-home-data-label {
    font-size: 8px;
    letter-spacing: .08em;
    color: #667085;
}

.public-home-featured-list {
    display: flex;
    flex-direction: column;
}

.public-home-featured-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 17px;
    border-bottom: 1px solid #edf0f3;
}

    .public-home-featured-item:last-child {
        border-bottom: 0;
    }

.public-home-featured-main {
    min-width: 0;
    flex: 1;
}

.public-home-featured-title {
    font-size: 11px;
    color: #101828;
}

.public-home-featured-institution {
    margin-top: 2px;
    font-size: 9px;
    color: #667085;
}

.public-home-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
}

    .public-home-featured-meta span {
        display: inline-flex;
        padding: 3px 6px;
        border-radius: 4px;
        background: #f2f4f7;
        font-size: 8px;
        color: #475467;
    }

.public-home-featured-actions {
    flex: 0 0 auto;
}

.public-home-empty {
    padding: 28px 18px;
    text-align: center;
}

    .public-home-empty strong {
        display: block;
        margin-bottom: 5px;
        font-size: 11px;
        color: #344054;
    }

    .public-home-empty p {
        margin: 0;
        font-size: 9px;
        color: #98a2b3;
    }


/* ==========================================================
   ESTATÍSTICAS
   ========================================================== */

.home-statistics-list {
    padding: 16px 18px;
}

.home-statistic-row + .home-statistic-row {
    margin-top: 13px;
}

.home-statistic-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 9px;
}

    .home-statistic-header span {
        color: #344054;
    }

    .home-statistic-header strong {
        color: #101828;
    }

.home-statistic-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eaecf0;
}

.home-statistic-value {
    height: 100%;
    border-radius: inherit;
    background: #1967a8;
}

.home-statistic-row small {
    display: block;
    margin-top: 4px;
    font-size: 8px;
    color: #98a2b3;
}


/* ==========================================================
   ACESSOS RÁPIDOS
   ========================================================== */

.public-home-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.public-home-link-card {
    display: block;
    padding: 17px;
    border: 1px solid #dfe4ea;
    border-radius: 9px;
    background: #fff;
    text-decoration: none;
}

    .public-home-link-card strong {
        display: block;
        margin-bottom: 5px;
        font-size: 11px;
        color: #174f87;
    }

    .public-home-link-card span {
        font-size: 9px;
        line-height: 1.5;
        color: #667085;
    }

@media (max-width: 991.98px) {

    .public-home-content-grid {
        grid-template-columns: 1fr;
    }

    .public-home-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {

    .public-home-featured-item {
        align-items: stretch;
        flex-direction: column;
    }

    .public-home-featured-actions,
    .public-home-featured-actions .btn {
        width: 100%;
    }
}
/* ==========================================================
   HOME - DISTRIBUIÇÃO POR GÉNERO
   ========================================================== */

.gender-distribution {
    padding: 20px;
}

.gender-distribution-summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e8ebef;
}

    .gender-distribution-summary strong {
        font-size: 26px;
        line-height: 1;
        color: #174f87;
    }

    .gender-distribution-summary span {
        font-size: 9px;
        color: #667085;
    }

.gender-distribution-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gender-distribution-item {
    width: 100%;
}

.gender-distribution-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.gender-distribution-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gender-distribution-dot {
    display: block;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #1764a3;
}

.gender-distribution-name strong {
    font-size: 11px;
    color: #172b4d;
}

.gender-distribution-values {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-align: right;
}

    .gender-distribution-values strong {
        font-size: 12px;
        color: #174f87;
    }

    .gender-distribution-values span {
        font-size: 8px;
        color: #98a2b3;
    }

.gender-distribution-track {
    width: 100%;
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9eef3;
}

.gender-distribution-bar {
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
    background: #1764a3;
    transition: width .3s ease;
}

@media (max-width: 575.98px) {

    .gender-distribution-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .gender-distribution-values {
        text-align: left;
    }
}
/* ==========================================================
   HOME - DUAS COLUNAS INDEPENDENTES
   ========================================================== */

.home-dashboard-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.home-dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* ==========================================================
   PÁGINAS INSTITUCIONAIS
   ========================================================== */

.public-information-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 48px;
}

.public-information-header {
    margin-bottom: 22px;
}

    .public-information-header h1 {
        margin: 5px 0 6px;
        font-size: 26px;
        color: #172b4d;
    }

    .public-information-header p {
        max-width: 760px;
        margin: 0;
        font-size: 11px;
        line-height: 1.6;
        color: #667085;
    }

.public-information-content {
    font-size: 10px;
    line-height: 1.75;
    color: #475467;
}

    .public-information-content h2 {
        margin: 0 0 12px;
        font-size: 15px;
        color: #172b4d;
    }

    .public-information-content h3 {
        margin: 22px 0 7px;
        font-size: 11px;
        color: #174f87;
    }

    .public-information-content p {
        max-width: 900px;
    }

    .public-information-content ul {
        padding-left: 20px;
    }

    .public-information-content li + li {
        margin-top: 5px;
    }

.public-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.public-contact-item {
    padding: 10px 0;
    border-bottom: 1px solid #edf0f3;
}

    .public-contact-item:last-child {
        border-bottom: 0;
    }

    .public-contact-item span {
        display: block;
        margin-bottom: 3px;
        font-size: 8px;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #98a2b3;
    }

    .public-contact-item strong {
        font-size: 10px;
        color: #344054;
    }

@media (max-width: 767.98px) {

    .public-information-page {
        padding: 24px 16px 36px;
    }

    .public-contact-grid {
        grid-template-columns: 1fr;
    }
}
.gov-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.gov-brand-emblem {
    width: 62px;
    height: 62px;
    object-fit: contain;
    flex: 0 0 62px;
}

.gov-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .gov-brand-text strong {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.2;
        color: #fff;
    }

    .gov-brand-text small {
        margin-top: 3px;
        font-size: 11px;
        color: rgba(255,255,255,.9);
    }