 :root {
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #071733;
    --muted: #64748b;

    --blue: #0046d5;
    --blue-2: #0b63f6;
    --blue-dark: #061845;
    --navy: #030b2f;

    --red: #e5232e;
    --border: #e6ebf2;

    --shadow: 0 22px 50px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.08);

    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1220px, calc(100% - 34px));
    margin: 0 auto;
}

/* TOPO */

.topbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
}

.nav {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-logo {
    display: flex;
    align-items: flex-start;
    font-weight: 950;
    line-height: .8;
    letter-spacing: -2px;
}

.brand-mb {
    font-size: 38px;
    color: var(--blue-dark);
}

.brand-plus {
    color: var(--red);
    font-size: 31px;
    margin-left: 2px;
    margin-top: -5px;
}

.brand-text strong {
    display: block;
    color: var(--blue-dark);
    font-size: 16px;
}

.brand-text span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

.menu a {
    color: #334155;
    font-weight: 800;
    font-size: 15px;
}

.menu a:hover {
    color: var(--blue);
}

.nav-button {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    padding: 14px 19px;
    border-radius: 13px;
    box-shadow: 0 10px 24px rgba(0, 70, 213, .24);
}

/* HERO */

.hero-new {
    position: relative;
    min-height: 520px;
    background:
        linear-gradient(
            90deg,
            rgba(3, 11, 47, .96) 0%,
            rgba(3, 11, 47, .90) 34%,
            rgba(3, 11, 47, .58) 58%,
            rgba(3, 11, 47, .12) 100%
        ),
        url("../img/banner-carreiras.png");
    background-size: cover;
    background-position: center right;
    overflow: hidden;
}

.hero-new::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 90px;
    background: linear-gradient(180deg, rgba(244, 247, 251, 0), var(--bg));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-text {
    width: min(640px, 100%);
    padding: 48px 0 125px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background: rgba(30, 89, 210, .48);
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 900;
    margin-bottom: 22px;
}

.hero-badge::before {
    content: "♙";
    font-size: 16px;
}

.hero-text h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 5.4vw, 68px);
    line-height: 1.02;
    letter-spacing: -2.4px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.hero-text h1 span {
    color: #5d70ff;
}

.hero-text p {
    margin: 24px 0 30px;
    color: rgba(255, 255, 255, .86);
    font-size: 20px;
    line-height: 1.55;
    max-width: 610px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    color: #ffffff;
    font-weight: 950;
    padding: 17px 28px;
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(0, 70, 213, .34);
}

.hero-button::before {
    content: "⌕";
    font-size: 25px;
    margin-right: 10px;
}

/* BUSCA */

.search-section {
    position: relative;
    z-index: 5;
    margin-top: -66px;
}

.search-card-modern {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 22px;
    display: grid;
    grid-template-columns: 1.5fr .85fr .85fr auto;
    gap: 18px;
    align-items: end;
}

.search-field label {
    display: block;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 9px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d9e1ec;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 15px;
    outline: none;
    font-size: 15px;
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 70, 213, .11);
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 45px;
}

.input-with-icon span {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blue-dark);
    font-size: 24px;
}

.search-button {
    border: 0;
    min-width: 170px;
    height: 49px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(0, 70, 213, .25);
}

/* SEÇÃO VAGAS */

.section {
    padding: 42px 0 72px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 24px;
}

.section-kicker {
    color: var(--blue);
    font-weight: 950;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .9px;
}

.section-head h2 {
    margin: 8px 0 0;
    font-size: 35px;
    letter-spacing: -1.1px;
    color: var(--blue-dark);
}

.jobs-count {
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    border-radius: 18px;
    padding: 14px 18px;
    text-align: center;
    min-width: 170px;
}

.jobs-count strong {
    display: block;
    color: var(--blue);
    font-size: 32px;
    line-height: 1;
}

.jobs-count span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.jobs-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.job-card-modern {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    padding: 22px;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    transition: .22s ease;
    min-height: 250px;
}

.job-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, .13);
    border-color: rgba(0, 70, 213, .22);
}

.job-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #edf3ff;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 25px;
    font-weight: 950;
}

.job-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.job-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.job-top h3 {
    margin: 0 0 5px;
    color: var(--blue-dark);
    font-size: 21px;
    line-height: 1.18;
}

.job-area,
.job-location,
.job-desc {
    color: var(--muted);
}

.job-area {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.job-status {
    white-space: nowrap;
    background: #e9f8ef;
    color: #13833d;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.job-location {
    margin: 20px 0 12px;
    font-size: 14px;
    font-weight: 800;
}

.job-desc {
    margin: 0;
    line-height: 1.45;
    font-size: 15px;
}

.job-footer {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.job-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.job-tags small {
    background: #eef4ff;
    color: var(--blue);
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 900;
    font-size: 12px;
}

.job-link {
    color: var(--blue);
    font-weight: 950;
    white-space: nowrap;
}

.empty {
    grid-column: 1 / -1;
    background: #ffffff;
    border-radius: var(--radius);
    padding: 42px;
    text-align: center;
    color: var(--muted);
    box-shadow: var(--shadow-soft);
}

/* PÁGINAS INTERNAS JÁ EXISTENTES */

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--blue);
    font-weight: 900;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 22px;
    align-items: start;
}

.detail-card,
.apply-box,
.form-card,
.success-card,
.admin-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 26px;
}

.detail-card h1 {
    font-size: 42px;
    margin: 14px 0;
    color: var(--blue-dark);
}

.detail-card h3 {
    margin-top: 28px;
    color: var(--blue-dark);
}

.detail-card p {
    color: var(--muted);
    line-height: 1.7;
}

.badge {
    display: inline-flex;
    background: #eef4ff;
    color: var(--blue);
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.apply-box {
    position: sticky;
    top: 104px;
}

.apply-box h2 {
    margin-top: 0;
    color: var(--blue-dark);
}

.full {
    width: 100%;
}

.narrow {
    width: min(860px, calc(100% - 32px));
}

.form-card h1,
.success-card h1 {
    margin-bottom: 8px;
    color: var(--blue-dark);
}

.modern-form {
    margin-top: 24px;
    display: grid;
    gap: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-weight: 700;
}

.check input {
    width: auto;
    margin-top: 4px;
}

.success-card {
    text-align: center;
    padding: 46px;
}

.success-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 42px;
    font-weight: 950;
}

button,
.btn-primary,
.btn-secondary,
.btn-danger {
    border: 0;
    cursor: pointer;
    border-radius: 14px;
    padding: 13px 18px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

button,
.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    color: white;
}

button:hover,
.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    background: #eef2f7;
    color: var(--text);
}

.btn-danger {
    background: #fee2e2;
    color: #991b1b;
}

.flashes {
    margin-top: 18px;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 10px;
    font-weight: 800;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

/* ADMIN */

.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 22px;
    align-items: start;
}

.admin-menu {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 18px;
    height: fit-content;
    position: sticky;
    top: 104px;
}

.admin-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 900;
    margin-bottom: 4px;
}

.admin-menu a:hover {
    background: #eef4ff;
    color: var(--blue);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.kpi {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 22px;
}

.kpi strong {
    display: block;
    font-size: 34px;
    color: var(--blue);
}

.kpi span {
    color: var(--muted);
    font-weight: 800;
}

.section-title {
    margin-top: 32px;
}

.table-card {
    overflow: auto;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

th {
    background: #f8fafc;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

td small {
    color: var(--muted);
}

.status {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--muted);
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

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

.actions form {
    margin: 0;
}

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

.admin-search {
    grid-template-columns: 1fr 220px auto;
}

/* RODAPÉ */

.footer {
    background: linear-gradient(135deg, #030b2f, #061845);
    color: #ffffff;
    padding-top: 30px;
    margin-top: 20px;
}

.footer-grid {
    min-height: 92px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    font-weight: 950;
    letter-spacing: -1px;
    font-size: 31px;
    line-height: .9;
}

.footer-logo span {
    color: #ffffff;
}

.footer-logo small {
    color: var(--red);
    font-size: 26px;
    margin-left: 1px;
}

.footer-brand p {
    margin: 0;
    color: rgba(255,255,255,.75);
    font-weight: 700;
}

.footer-message {
    text-align: center;
    color: rgba(255,255,255,.86);
}

.footer-message strong {
    color: #ffffff;
}

.footer-message strong::after {
    content: "";
}

.footer-message strong {
    color: #ffffff;
}

.footer-message strong + span {
    margin-left: 5px;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
}

.footer-links a {
    color: rgba(255,255,255,.72);
    font-weight: 700;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copy {
    border-top: 1px solid rgba(255,255,255,.10);
    text-align: center;
    padding: 16px;
    color: rgba(255,255,255,.58);
    font-size: 14px;
}

/* RESPONSIVO */

@media (max-width: 1020px) {
    .search-card-modern {
        grid-template-columns: 1fr 1fr;
    }

    .search-main {
        grid-column: 1 / -1;
    }

    .search-button {
        grid-column: 1 / -1;
        width: 100%;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 760px) {
    .nav {
        height: auto;
        padding: 16px 0;
        align-items: flex-start;
        gap: 16px;
        flex-direction: column;
    }

    .menu {
        width: 100%;
        gap: 10px;
        flex-wrap: wrap;
    }

    .menu a {
        font-size: 14px;
    }

    .hero-new {
        min-height: 560px;
        background-position: center right;
    }

    .hero-content {
        min-height: 560px;
    }

    .hero-text {
        padding-top: 44px;
        padding-bottom: 120px;
    }

    .hero-text h1 {
        font-size: 45px;
    }

    .hero-text p {
        font-size: 17px;
    }

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

    .jobs-grid-modern {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .apply-box,
    .admin-menu {
        position: static;
    }

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

    .page-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

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

    .job-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* =========================================================
   AJUSTES FINAIS - MB FARMÁCIAS
   Rodapé no final da tela + banner sem cortar a profissional
   ========================================================= */

/* Estrutura para manter o rodapé no final da página */
html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.topbar,
.footer {
    flex-shrink: 0;
}

/* Banner ajustado para NÃO cortar a pessoa.
   Use a imagem em: static/img/banner-carreiras.png */
.hero-new {
    position: relative;
    min-height: 520px;
    background-color: #030b2f;
    background-image:
        linear-gradient(
            90deg,
            rgba(3, 11, 47, .98) 0%,
            rgba(3, 11, 47, .94) 32%,
            rgba(3, 11, 47, .72) 54%,
            rgba(3, 11, 47, .26) 78%,
            rgba(3, 11, 47, .08) 100%
        ),
        url("../img/banner-carreiras.png");
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, auto 100%;
    background-position: center center, right center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-text {
    width: min(640px, 100%);
    padding: 48px 0 125px;
}

.hero-text h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 5.4vw, 68px);
    line-height: 1.02;
    letter-spacing: -2.4px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.search-section {
    position: relative;
    z-index: 5;
    margin-top: -58px;
}

/* Área administrativa com altura mínima mais confortável */
.admin-layout {
    min-height: 420px;
}

.section {
    padding: 46px 0 80px;
}

/* Rodapé final ajustado */
.footer {
    background: linear-gradient(135deg, #030b2f, #061845);
    color: #ffffff;
    margin-top: auto;
    padding: 0;
}

.footer-grid {
    min-height: 84px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    padding: 18px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    font-weight: 950;
    letter-spacing: -1px;
    line-height: .85;
}

.footer-logo span {
    color: #ffffff;
    font-size: 30px;
}

.footer-logo small {
    color: var(--red);
    font-size: 24px;
    margin-left: 2px;
    margin-top: -3px;
}

.footer-brand p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-weight: 800;
    font-size: 14px;
}

.footer-message {
    text-align: center;
    color: rgba(255, 255, 255, .86);
    font-size: 14px;
}

.footer-message strong {
    color: #ffffff;
}

.footer-message strong + span {
    margin-left: 5px;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
}

.footer-links a {
    color: rgba(255, 255, 255, .78);
    font-weight: 800;
    font-size: 13px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, .10);
    text-align: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, .56);
    font-size: 13px;
}

/* Responsivo final */
@media (max-width: 1020px) {
    .hero-new {
        min-height: 540px;
        background-size: 100% 100%, auto 100%;
        background-position: center center, 78% center;
    }

    .hero-content {
        min-height: 540px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 14px;
        padding: 22px 0;
    }

    .footer-brand,
    .footer-links {
        justify-content: center;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    .hero-new {
        min-height: 560px;
        background-image:
            linear-gradient(
                90deg,
                rgba(3, 11, 47, .98) 0%,
                rgba(3, 11, 47, .94) 48%,
                rgba(3, 11, 47, .75) 100%
            ),
            url("../img/banner-carreiras.png");
        background-size: 100% 100%, auto 100%;
        background-position: center center, 78% center;
    }

    .hero-content {
        min-height: 560px;
    }

    .hero-text {
        padding-top: 44px;
        padding-bottom: 120px;
    }

    .footer-copy {
        padding: 14px 16px;
    }
}
.fit-box {
    background: linear-gradient(135deg, #f8fbff, #ffffff);
    border: 1px solid #dbe7f8;
    border-radius: 22px;
    padding: 24px;
    display: grid;
    gap: 18px;
}

.fit-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 4px;
}

.fit-head h2 {
    margin: 0 0 6px;
    color: var(--blue-dark);
    font-size: 24px;
}

.fit-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.fit-box input,
.fit-box select {
    background: #ffffff;
}

.fit-admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 18px 0 26px;
}

.fit-admin-grid div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
}

.fit-admin-grid strong {
    display: block;
    color: var(--blue-dark);
    font-size: 13px;
    margin-bottom: 6px;
}

.fit-admin-grid span {
    display: block;
    color: var(--muted);
    line-height: 1.4;
}

@media (max-width: 760px) {
    .fit-admin-grid {
        grid-template-columns: 1fr;
    }
}

/* CANDIDATURA MAIS MODERNA */

.candidatura-card {
    padding: 34px;
}

.candidatura-head {
    margin-bottom: 10px;
}

.candidatura-head h1 {
    margin: 14px 0 8px;
    color: var(--blue-dark);
    font-size: 25px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.candidatura-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.candidatura-form {
    margin-top: 26px;
    gap: 22px;
}

.candidatura-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--blue-dark);
    font-weight: 800;
    font-size: 14px;
}

.upload-box {
    display: grid;
    gap: 8px;
}

.upload-box small {
    color: var(--muted);
    font-size: 12px;
}

.modern-fit {
    border-radius: 24px;
    border: 1px solid #dbe7f8;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    padding: 24px;
    gap: 22px;
}

.fit-hero {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 16px;
    align-items: start;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8eef8;
}

.fit-hero-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 900;
    color: var(--blue);
    background: #edf4ff;
    box-shadow: inset 0 0 0 1px #dbe7f8;
}

.fit-hero-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.fit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9f0ff;
    color: var(--blue);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.fit-hero h2 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 28px;
    letter-spacing: -0.5px;
}

.fit-hero p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.55;
    max-width: 680px;
}

.fit-group {
    background: #ffffff;
    border: 1px solid #e8eef8;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.fit-group h3 {
    margin: 0 0 16px;
    color: var(--blue-dark);
    font-size: 17px;
    letter-spacing: -0.2px;
}

.check-stack {
    display: grid;
    gap: 12px;
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-weight: 700;
    background: #f8fafc;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    padding: 12px 14px;
}

.check input {
    width: auto;
    margin-top: 4px;
}

@media (max-width: 760px) {
    .candidatura-card {
        padding: 22px;
    }

    .fit-hero {
        grid-template-columns: 1fr;
    }

    .fit-hero-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .fit-hero h2 {
        font-size: 23px;
    }

    .fit-group {
        padding: 16px;
    }
}

/* TELA DE SUCESSO DA CANDIDATURA */

.success-modern {
    text-align: center;
    padding: 44px;
}

.success-modern h1 {
    color: var(--blue-dark);
    font-size: 34px;
    margin: 18px 0 10px;
    letter-spacing: -0.8px;
}

.success-lead {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
    margin: 0 auto 22px;
    max-width: 620px;
}

.protocol-box {
    background: linear-gradient(135deg, #eef4ff, #ffffff);
    border: 1px solid #dbe7f8;
    border-radius: 20px;
    padding: 18px 20px;
    margin: 26px auto;
    max-width: 440px;
}

.protocol-box span {
    display: block;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 6px;
}

.protocol-box strong {
    display: block;
    color: var(--blue);
    font-size: 24px;
    letter-spacing: 0.5px;
}

.next-steps {
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e5edf7;
    border-radius: 22px;
    padding: 24px;
    margin-top: 24px;
}

.next-steps h2 {
    margin: 0 0 18px;
    color: var(--blue-dark);
    font-size: 22px;
}

.step-list {
    display: grid;
    gap: 14px;
}

.step-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    align-items: flex-start;
}

.step-item div {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: #ffffff;
    font-weight: 900;
}

.step-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

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

@media (max-width: 760px) {
    .success-modern {
        padding: 28px 20px;
    }

    .success-modern h1 {
        font-size: 27px;
    }

    .step-item {
        grid-template-columns: 1fr;
    }
}

/* PÁGINA DE SUCESSO - CANDIDATURA */

.success-page-wrap {
    display: flex;
    justify-content: center;
    padding-top: 48px;
    padding-bottom: 80px;
}

.success-panel {
    position: relative;
    overflow: hidden;
    width: min(860px, 100%);
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
    padding: 46px;
    text-align: center;
}

.success-top-glow {
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    height: 260px;
    background: radial-gradient(circle, rgba(0, 82, 204, 0.22), transparent 68%);
    pointer-events: none;
}

.success-check-area {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.success-check-ring {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eaf2ff, #ffffff);
    border: 1px solid #d9e7ff;
    box-shadow: 0 16px 34px rgba(0, 70, 213, 0.16);
}

.success-check {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    color: #ffffff;
    font-size: 34px;
    font-weight: 950;
}

.success-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: var(--blue);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
    margin-bottom: 18px;
}

.success-panel h1 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.success-subtitle {
    margin: 14px auto 0;
    max-width: 660px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.success-subtitle strong {
    color: var(--blue-dark);
}

.success-protocol-card {
    margin: 28px auto 0;
    max-width: 520px;
    background: linear-gradient(135deg, #f8fbff, #ffffff);
    border: 1px solid #dbe7f8;
    border-radius: 22px;
    padding: 20px;
}

.success-protocol-card span {
    display: block;
    color: var(--muted);
    font-weight: 850;
    font-size: 13px;
    margin-bottom: 8px;
}

.success-protocol-card strong {
    display: block;
    color: var(--blue);
    font-size: 26px;
    letter-spacing: 0.4px;
}

.success-protocol-card small {
    display: block;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.4;
}

.success-email-box {
    margin: 22px auto 0;
    max-width: 700px;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 14px;
    align-items: start;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e5edf7;
    border-radius: 20px;
    padding: 18px;
}

.success-email-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: var(--blue);
    font-size: 24px;
    font-weight: 900;
}

.success-email-box strong {
    color: var(--blue-dark);
}

.success-email-box p {
    margin: 5px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.success-next-card {
    margin-top: 28px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    border: 1px solid #dbe7f8;
    border-radius: 24px;
    padding: 26px;
    text-align: left;
}

.success-section-title {
    margin-bottom: 18px;
}

.success-section-title span {
    color: var(--blue);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.success-section-title h2 {
    margin: 6px 0 0;
    color: var(--blue-dark);
    font-size: 25px;
    letter-spacing: -0.5px;
}

.success-steps-grid {
    display: grid;
    gap: 14px;
}

.success-step {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e8eef8;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.success-step-number {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    font-weight: 950;
    font-size: 18px;
}

.success-step strong {
    display: block;
    color: var(--blue-dark);
    margin-bottom: 4px;
}

.success-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

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

@media (max-width: 760px) {
    .success-page-wrap {
        padding-top: 28px;
        padding-bottom: 48px;
    }

    .success-panel {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .success-panel h1 {
        font-size: 29px;
    }

    .success-email-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .success-email-icon {
        margin: 0 auto;
    }

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

    .success-step-number {
        width: 42px;
        height: 42px;
    }
}

/* CARD DE IA NO CANDIDATO */

.ia-card {
    margin-top: 24px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    border: 1px solid #dbe7f8;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.ia-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.ia-card-head h3 {
    margin: 10px 0 0;
    color: var(--blue-dark);
    font-size: 24px;
    letter-spacing: -0.4px;
}

.ia-score {
    min-width: 135px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e5edf7;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    padding: 16px;
    text-align: center;
}

.ia-score strong {
    display: block;
    color: var(--blue);
    font-size: 30px;
    line-height: 1;
}

.ia-score span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.ia-section {
    background: #ffffff;
    border: 1px solid #e8eef8;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
}

.ia-section h4,
.ia-grid h4 {
    margin: 0 0 8px;
    color: var(--blue-dark);
    font-size: 15px;
}

.ia-section p,
.ia-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

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

.ia-grid div {
    background: #ffffff;
    border: 1px solid #e8eef8;
    border-radius: 18px;
    padding: 18px;
}

.ia-disclaimer {
    display: block;
    margin-top: 18px;
    color: var(--muted);
    line-height: 1.4;
}

@media (max-width: 760px) {
    .ia-card-head {
        flex-direction: column;
    }

    .ia-score {
        width: 100%;
    }

    .ia-grid {
        grid-template-columns: 1fr;
    }
}
/* PAINEL POR VAGA */

.mini-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 30px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--blue);
    font-weight: 950;
}

.vaga-panel-hero {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #dbe7f8;
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    padding: 26px;
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.vaga-panel-hero h1 {
    margin: 14px 0 8px;
    color: var(--blue-dark);
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -0.8px;
}

.vaga-panel-hero p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.vaga-panel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vaga-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.vaga-stat-card {
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.vaga-stat-card strong {
    display: block;
    color: var(--blue);
    font-size: 30px;
    line-height: 1;
    margin-bottom: 8px;
}

.vaga-stat-card span {
    color: var(--muted);
    font-weight: 850;
    font-size: 13px;
}

.panel-block {
    margin-top: 26px;
}

.panel-block-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.panel-block-head h2 {
    margin: 8px 0 0;
    color: var(--blue-dark);
    font-size: 27px;
    letter-spacing: -0.5px;
}

.panel-block-head p {
    color: var(--muted);
    margin: 8px 0 0;
    max-width: 700px;
    line-height: 1.5;
}

.score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e9f8ef;
    color: #13833d;
    font-weight: 950;
    font-size: 13px;
}

.muted-text {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.ia-ranking-block {
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    border: 1px solid #dbe7f8;
    border-radius: 26px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.empty-ranking {
    background: #ffffff;
    border: 1px dashed #cbd8ec;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
}

.empty-ranking h3 {
    margin: 0 0 8px;
    color: var(--blue-dark);
}

.empty-ranking p {
    margin: 0;
    color: var(--muted);
}

.ranking-list {
    display: grid;
    gap: 14px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 22px;
    padding: 18px;
}

.ranking-position {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
}

.ranking-main {
    min-width: 0;
}

.ranking-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.ranking-top h3 {
    margin: 0 0 5px;
    color: var(--blue-dark);
    font-size: 20px;
}

.ranking-top p {
    margin: 0;
    color: var(--muted);
}

.ranking-score {
    min-width: 76px;
    height: 54px;
    border-radius: 17px;
    background: #eef4ff;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 950;
}

.ranking-reason {
    color: var(--muted);
    line-height: 1.5;
    margin: 14px 0;
}

.ranking-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .vaga-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .vaga-panel-hero,
    .panel-block-head {
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .vaga-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .ranking-top {
        flex-direction: column;
    }

    .ranking-score {
        width: 100%;
    }
}
/* DASHBOARD MODERNO RH */

.dashboard-modern {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dashboard-top-head h1 {
    margin: 8px 0 6px;
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: -1px;
    color: var(--blue-dark);
}

.dashboard-top-head p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

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

.dashboard-metric-card {
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: var(--blue);
    font-size: 24px;
    flex-shrink: 0;
}

.dashboard-metric-card span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.dashboard-metric-card strong {
    display: block;
    margin-top: 4px;
    color: var(--blue-dark);
    font-size: 38px;
    line-height: 1;
}

.dashboard-metric-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.4;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    padding: 22px;
}

.dashboard-chart-card {
    grid-column: span 2;
}

.dashboard-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-card-head h2 {
    margin: 8px 0 0;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--blue-dark);
}

.chart-wrap {
    height: 320px;
}

.pipeline-list {
    display: grid;
    gap: 16px;
}

.pipeline-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    font-size: 14px;
    color: var(--blue-dark);
    font-weight: 800;
}

.pipeline-bar-bg {
    width: 100%;
    height: 12px;
    background: #edf2fb;
    border-radius: 999px;
    overflow: hidden;
}

.pipeline-bar-fill {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #165DFF, #5B8FF9);
}

.top-vagas-list,
.ia-suggestions-list,
.alert-list-modern {
    display: grid;
    gap: 14px;
}

.top-vaga-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fbff;
    border: 1px solid #e8eef8;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

.top-vaga-item:hover {
    transform: translateY(-2px);
    border-color: #cfe0ff;
}

.top-vaga-item span {
    min-width: 40px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
}

.ia-suggestion-card {
    background: #f8fbff;
    border: 1px solid #e8eef8;
    border-radius: 22px;
    padding: 18px;
}

.ia-suggestion-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.ia-suggestion-top h3 {
    margin: 0 0 4px;
    font-size: 19px;
    color: var(--blue-dark);
}

.ia-suggestion-top p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.ia-suggestion-score {
    min-width: 74px;
    height: 52px;
    border-radius: 18px;
    background: #e9f8ef;
    color: #13833d;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 950;
}

.ia-suggestion-role {
    margin: 12px 0 6px;
    font-weight: 800;
    color: var(--blue);
}

.ia-suggestion-summary {
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 14px;
}

.alert-modern-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: start;
    background: #fff9f1;
    border: 1px solid #ffe5bd;
    border-radius: 20px;
    padding: 16px;
}

.alert-modern-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #fff1da;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.alert-modern-item strong {
    display: block;
    color: var(--blue-dark);
    margin-bottom: 4px;
}

.alert-modern-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.dashboard-table-block {
    margin-top: 4px;
}

@media (max-width: 1200px) {
    .dashboard-metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .dashboard-chart-card {
        grid-column: span 1;
    }
}

@media (max-width: 760px) {
    .dashboard-metric-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-top-head h1 {
        font-size: 34px;
    }

    .dashboard-card-head h2 {
        font-size: 24px;
    }

    .ia-suggestion-top {
        flex-direction: column;
    }

    .ia-suggestion-score {
        width: 100%;
    }
}

/* =========================================================
   DASHBOARD RH PRO - AJUSTE FINAL
   Mantém o restante do sistema e substitui apenas o visual
   do dashboard inicial.
   ========================================================= */

.dashboard-shell.container,
.dashboard-shell {
    width: min(1540px, calc(100vw - 42px));
    margin: 0 auto;
}

.dashboard-shell.section {
    padding-top: 34px;
    padding-bottom: 72px;
}

.dashboard-layout-pro {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.dashboard-sidebar-pro {
    position: sticky;
    top: 104px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e5edf7;
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.sidebar-section-title {
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 8px 12px 10px;
}

.dashboard-sidebar-pro a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-weight: 900;
    padding: 13px 14px;
    border-radius: 15px;
    margin-bottom: 5px;
    transition: .18s ease;
}

.dashboard-sidebar-pro a span {
    width: 24px;
    display: inline-grid;
    place-items: center;
    color: var(--blue);
}

.dashboard-sidebar-pro a:hover,
.dashboard-sidebar-pro a.active {
    background: #eef4ff;
    color: var(--blue);
}

.sidebar-help-card {
    margin-top: 18px;
    background: linear-gradient(135deg, #f8fbff, #ffffff);
    border: 1px solid #e5edf7;
    border-radius: 20px;
    padding: 16px;
}

.sidebar-help-card strong {
    display: block;
    color: var(--blue-dark);
    margin-bottom: 6px;
}

.sidebar-help-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.dashboard-content-pro {
    min-width: 0;
    display: grid;
    gap: 20px;
}

.dashboard-hero-pro {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #e5edf7;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    padding: 26px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.dashboard-hero-pro h1 {
    margin: 8px 0 6px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -1.5px;
    color: var(--blue-dark);
}

.dashboard-hero-pro p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
}

.dashboard-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-metrics-pro {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.metric-pro-card {
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
    display: grid;
    gap: 14px;
    min-height: 165px;
}

.metric-pro-icon {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: var(--blue);
    font-size: 23px;
    font-weight: 950;
}

.metric-pro-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.metric-pro-card strong {
    display: block;
    margin-top: 5px;
    color: var(--blue-dark);
    font-size: 38px;
    line-height: .95;
    letter-spacing: -1px;
}

.metric-pro-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.dashboard-grid-pro {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, .9fr);
    gap: 18px;
    align-items: stretch;
}

.dash-card-pro {
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    padding: 22px;
    min-width: 0;
}

.chart-card-pro {
    grid-column: span 2;
}

.dashboard-table-pro {
    grid-column: 1 / -1;
}

.dash-card-head-pro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.dash-card-head-pro h2 {
    margin: 8px 0 0;
    color: var(--blue-dark);
    font-size: 27px;
    line-height: 1.08;
    letter-spacing: -.6px;
}

.dash-mini-filter,
.dash-link {
    background: #f8fbff;
    border: 1px solid #e5edf7;
    color: var(--blue);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.chart-wrap-pro {
    height: 295px;
}

.pipeline-pro-list {
    display: grid;
    gap: 17px;
}

.pipeline-pro-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--blue-dark);
    font-weight: 950;
    font-size: 14px;
}

.pipeline-pro-row small {
    color: var(--muted);
    font-size: 12px;
}

.pipeline-pro-bg {
    height: 12px;
    background: #edf2fb;
    border-radius: 999px;
    overflow: hidden;
}

.pipeline-pro-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), #5b8ff9);
    min-width: 5px;
}

.top-jobs-pro-list,
.suggestions-pro-list,
.alerts-pro-list {
    display: grid;
    gap: 12px;
}

.top-job-pro-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    align-items: center;
    background: #f8fbff;
    border: 1px solid #e8eef8;
    border-radius: 18px;
    padding: 14px;
    transition: .18s ease;
}

.top-job-pro-item:hover {
    transform: translateY(-2px);
    border-color: #cfe0ff;
}

.top-job-position {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: var(--blue);
    font-weight: 950;
}

.top-job-title {
    color: var(--blue-dark);
    font-weight: 900;
    line-height: 1.25;
}

.top-job-pro-item strong {
    color: var(--blue);
    font-size: 20px;
}

.suggestion-pro-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    background: #f8fbff;
    border: 1px solid #e8eef8;
    border-radius: 20px;
    padding: 14px;
}

.suggestion-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    color: #ffffff;
    font-weight: 950;
    text-transform: uppercase;
}

.suggestion-info {
    min-width: 0;
}

.suggestion-topline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.suggestion-topline strong {
    display: block;
    color: var(--blue-dark);
    font-size: 15px;
    line-height: 1.15;
}

.suggestion-topline span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.suggestion-score {
    min-width: 56px;
    height: 38px;
    border-radius: 999px;
    background: #e9f8ef;
    color: #13833d;
    display: grid;
    place-items: center;
    font-weight: 950;
    font-size: 16px;
}

.suggestion-role {
    display: inline-block;
    color: var(--blue);
    font-weight: 950;
    margin-top: 8px;
}

.suggestion-pro-item p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alert-pro-item {
    display: grid;
    grid-template-columns: 46px 1fr 34px;
    gap: 12px;
    align-items: center;
    border-radius: 20px;
    padding: 14px;
    border: 1px solid transparent;
}

.alert-pro-item.danger-soft {
    background: #fff5f5;
    border-color: #fecaca;
}

.alert-pro-item.warning-soft {
    background: #fff9eb;
    border-color: #fed7aa;
}

.alert-pro-item.info-soft {
    background: #f4f8ff;
    border-color: #bfdbfe;
}

.alert-pro-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: var(--blue);
    font-weight: 950;
}

.alert-pro-item strong {
    display: block;
    color: var(--blue-dark);
    line-height: 1.2;
}

.alert-pro-item p {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.35;
    font-size: 13px;
}

.alert-pro-item > span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: var(--blue);
    font-weight: 950;
}

.table-dashboard-pro {
    box-shadow: none;
    border: 1px solid #e5edf7;
}

.table-dashboard-pro table {
    min-width: 980px;
}

.table-dashboard-pro th {
    background: #f8fbff;
}

.empty-state-pro {
    color: var(--muted);
    background: #f8fbff;
    border: 1px dashed #cbd8ec;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    font-weight: 800;
}

@media (max-width: 1350px) {
    .dashboard-metrics-pro {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-grid-pro {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .chart-card-pro,
    .dashboard-table-pro {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .dashboard-layout-pro {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar-pro {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .dashboard-sidebar-pro a {
        margin-bottom: 0;
    }

    .sidebar-section-title,
    .sidebar-help-card {
        display: none;
    }

    .dashboard-hero-pro {
        flex-direction: column;
    }

    .dashboard-quick-actions {
        justify-content: flex-start;
    }

    .dashboard-grid-pro,
    .dashboard-metrics-pro {
        grid-template-columns: 1fr;
    }

    .chart-card-pro,
    .dashboard-table-pro {
        grid-column: auto;
    }

    .chart-wrap-pro {
        height: 260px;
    }
}
/* =========================================================
   ADMIN FULLSCREEN RH - MB FARMÁCIAS
   Cole este bloco NO FINAL do static/css/style.css
   ========================================================= */

body.admin-shell-body {
    background: #f4f7fb;
    min-height: 100vh;
    display: block;
    overflow-x: hidden;
}

body.admin-shell-body .topbar,
body.admin-shell-body .footer {
    display: none !important;
}

.rh-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background:
        radial-gradient(circle at top right, rgba(11,99,246,.08), transparent 28%),
        #f4f7fb;
}

.rh-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: rgba(255,255,255,.92);
    border-right: 1px solid #e5edf7;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: 18px 0 50px rgba(15,23,42,.04);
}

.rh-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rh-logo-mark {
    display: flex;
    align-items: flex-start;
    line-height: .8;
    letter-spacing: -2px;
    font-weight: 950;
}

.rh-logo-mark span {
    font-size: 42px;
    color: var(--blue-dark);
}

.rh-logo-mark small {
    color: var(--red);
    font-size: 30px;
    margin-left: 2px;
    margin-top: -5px;
}

.rh-sidebar-brand strong,
.rh-sidebar-user strong,
.rh-current-user strong {
    display: block;
    color: var(--blue-dark);
    font-weight: 950;
}

.rh-sidebar-brand p,
.rh-sidebar-user p,
.rh-current-user p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.rh-sidebar-menu {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.rh-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    color: #475569;
    font-weight: 900;
    transition: .18s ease;
}

.rh-menu-item span {
    width: 24px;
    color: #35537a;
    font-size: 18px;
}

.rh-menu-item:hover,
.rh-menu-item.active {
    background: #eef4ff;
    color: var(--blue);
    box-shadow: inset 4px 0 0 var(--blue);
}

.rh-sidebar-help,
.rh-sidebar-user {
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 14px 35px rgba(15,23,42,.05);
}

.rh-sidebar-help {
    margin-top: auto;
}

.rh-help-icon,
.rh-user-avatar-small,
.rh-current-user-avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--blue);
    font-weight: 950;
}

.rh-help-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
}

.rh-sidebar-help p {
    margin: 4px 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.rh-sidebar-help a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 38px;
    border-radius: 12px;
    color: var(--blue);
    background: #f8fbff;
    font-weight: 950;
    border: 1px solid #e5edf7;
}

.rh-sidebar-user {
    display: flex;
    gap: 12px;
    align-items: center;
}

.rh-user-avatar-small {
    width: 36px;
    height: 36px;
}

.rh-main {
    min-width: 0;
}

.rh-topbar {
    height: 76px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #e5edf7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 25;
}

.rh-search {
    width: min(520px, 48vw);
    height: 42px;
    background: #ffffff;
    border: 1px solid #dbe7f8;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    box-shadow: 0 8px 24px rgba(15,23,42,.04);
}

.rh-search input {
    border: 0;
    box-shadow: none;
    padding: 0;
    height: 38px;
    font-size: 14px;
}

.rh-search kbd {
    background: #f1f5f9;
    color: var(--muted);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    white-space: nowrap;
}

.rh-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rh-icon-button {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    border: 1px solid #e5edf7;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
}

.rh-icon-button em {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--blue);
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    font-style: normal;
}

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

.rh-current-user-avatar {
    width: 42px;
    height: 42px;
    background: var(--blue);
    color: #fff;
}

.rh-logout {
    height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    color: #fff !important;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rh-flashes {
    width: min(1500px, calc(100% - 56px));
    margin: 18px auto 0;
}

.rh-content {
    width: min(1500px, calc(100% - 56px));
    margin: 0 auto;
    padding: 26px 0 38px;
}

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

.rh-page-title span {
    color: var(--blue);
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
}

.rh-page-title h1 {
    margin: 6px 0 6px;
    color: var(--blue-dark);
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -1px;
}

.rh-page-title p {
    margin: 0;
    color: var(--muted);
}

.rh-date-pill {
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--muted);
    font-weight: 850;
    box-shadow: 0 8px 24px rgba(15,23,42,.04);
}

.rh-kpi-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.rh-kpi-card,
.rh-card {
    background: #ffffff;
    border: 1px solid #e5edf7;
    box-shadow: 0 14px 40px rgba(15,23,42,.06);
}

.rh-kpi-card {
    border-radius: 22px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.rh-kpi-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: var(--blue);
    font-size: 25px;
    font-weight: 950;
    flex-shrink: 0;
}

.rh-kpi-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 850;
    font-size: 13px;
}

.rh-kpi-card strong {
    display: block;
    color: var(--blue-dark);
    font-size: 32px;
    line-height: 1;
    margin-top: 4px;
}

.rh-kpi-card small {
    display: block;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.3;
}

.rh-dashboard-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.15fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.rh-card {
    border-radius: 22px;
    padding: 18px;
    min-width: 0;
}

.rh-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.rh-card-head.with-link a {
    color: var(--blue);
    font-weight: 950;
    font-size: 13px;
}

.rh-card h2 {
    margin: 0 0 4px;
    color: var(--blue-dark);
    font-size: 20px;
    letter-spacing: -0.25px;
}

.rh-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.rh-card-funnel,
.rh-card-chart,
.rh-card-topjobs {
    min-height: 290px;
}

.rh-funnel-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: center;
    height: calc(100% - 50px);
}

.rh-funnel-bars {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.rh-funnel-shape {
    height: 32px;
    border-radius: 6px;
    clip-path: polygon(5% 0, 95% 0, 85% 100%, 15% 100%);
    background: linear-gradient(90deg, #0b63f6, #76a7ff);
}

.rh-funnel-2 { opacity: .80; }
.rh-funnel-3 { opacity: .62; }
.rh-funnel-4 { opacity: .45; }
.rh-funnel-5 { opacity: .30; }

.rh-funnel-legend {
    display: grid;
    gap: 10px;
}

.rh-funnel-legend div {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 8px;
    align-items: center;
    font-size: 13px;
}

.rh-funnel-legend strong { color: var(--blue-dark); }
.rh-funnel-legend em { color: #334155; font-style: normal; font-weight: 900; }
.rh-dot { width: 8px; height: 8px; background: var(--blue); border-radius: 50%; }

.rh-chart-box {
    height: 230px;
}

.rh-topjob-list,
.rh-ia-list,
.rh-interview-list,
.rh-alert-list {
    display: grid;
    gap: 10px;
}

.rh-topjob-item {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #e8eef8;
    border-radius: 14px;
    background: #fbfdff;
}

.rh-topjob-item span {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: var(--blue);
    font-weight: 950;
}

.rh-topjob-item strong {
    color: var(--blue-dark);
    font-size: 13px;
}

.rh-topjob-item em {
    font-style: normal;
    color: var(--blue);
    font-weight: 950;
}

.rh-card-ia,
.rh-card-interviews,
.rh-card-alerts {
    min-height: 286px;
}

.rh-ia-item {
    display: grid;
    grid-template-columns: 42px 1fr 58px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #e8eef8;
    border-radius: 16px;
    background: #fbfdff;
}

.rh-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: var(--blue);
    font-weight: 950;
}

.rh-ia-info strong,
.rh-interview-item strong {
    color: var(--blue-dark);
    display: block;
    font-size: 13px;
}

.rh-ia-info span,
.rh-ia-info small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.rh-ia-score {
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #e9f8ef;
    color: #13833d;
    font-weight: 950;
}

.rh-ia-item a {
    grid-column: 2 / -1;
    color: var(--blue);
    font-weight: 950;
    font-size: 12px;
}

.rh-interview-item {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid #e8eef8;
    border-radius: 16px;
    background: #fbfdff;
}

.rh-date-box {
    width: 44px;
    height: 48px;
    border-radius: 14px;
    background: #eef4ff;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-weight: 950;
    line-height: 1;
}

.rh-date-box span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
}

.rh-online-pill {
    background: #e9f8ef;
    color: #13833d;
    font-size: 12px;
    font-weight: 950;
    padding: 6px 10px;
    border-radius: 999px;
}

.rh-alert-item {
    display: grid;
    grid-template-columns: 44px 1fr 34px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #e8eef8;
    background: #fbfdff;
}

.rh-alert-item > div {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 950;
}

.rh-alert-item.danger > div { background: #fff0f0; color: #dc2626; }
.rh-alert-item.warning > div { background: #fff7e6; color: #d97706; }
.rh-alert-item.info > div { background: #eef4ff; color: var(--blue); }

.rh-alert-item strong {
    color: var(--blue-dark);
    display: block;
    font-size: 13px;
}

.rh-alert-item em {
    background: #eef2f7;
    border-radius: 999px;
    color: #334155;
    font-weight: 950;
    min-width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    font-style: normal;
}

.rh-table-card {
    margin-top: 16px;
}

.rh-table-wrap {
    overflow: auto;
}

.rh-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.rh-table th {
    color: var(--muted);
    background: #f8fbff;
    border-bottom: 1px solid #e5edf7;
    padding: 12px 14px;
    font-size: 12px;
    text-transform: uppercase;
    text-align: left;
}

.rh-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e5edf7;
    vertical-align: middle;
}

.rh-table td strong,
.rh-table td small {
    display: block;
}

.rh-table td small {
    margin-top: 3px;
    color: var(--muted);
}

.rh-status,
.rh-score-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 950;
}

.rh-status { background: #eef4ff; color: var(--blue); }
.rh-score-mini { background: #e9f8ef; color: #13833d; }
.rh-muted { color: var(--muted); }

.rh-table-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    background: #eef2f7;
    color: var(--blue-dark);
    font-weight: 950;
}

.rh-empty-mini {
    color: var(--muted);
    background: #fbfdff;
    border: 1px dashed #cbd8ec;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    font-weight: 850;
}

@media (max-width: 1280px) {
    .rh-shell { grid-template-columns: 240px 1fr; }
    .rh-kpi-row { grid-template-columns: repeat(3, 1fr); }
    .rh-dashboard-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .rh-shell { grid-template-columns: 1fr; }
    .rh-sidebar { position: static; height: auto; }
    .rh-topbar { position: static; height: auto; padding: 16px; flex-direction: column; align-items: stretch; }
    .rh-search { width: 100%; }
    .rh-top-actions { flex-wrap: wrap; }
    .rh-content, .rh-flashes { width: min(100% - 28px, 1500px); }
    .rh-kpi-row, .rh-dashboard-grid { grid-template-columns: 1fr; }
    .rh-funnel-layout { grid-template-columns: 1fr; }
    .rh-current-user { display: none; }
}
/* =========================================================
   AJUSTE PIPELINE + DROPDOWNS TOPO RH
   ========================================================= */

/* Cores do funil por status */
.rh-funnel-bars .rh-funnel-shape:nth-child(1) {
    background: linear-gradient(90deg, #0b63f6, #408cff);
}

.rh-funnel-bars .rh-funnel-shape:nth-child(2) {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.rh-funnel-bars .rh-funnel-shape:nth-child(3) {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.rh-funnel-bars .rh-funnel-shape:nth-child(4) {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

.rh-funnel-bars .rh-funnel-shape:nth-child(5) {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.rh-funnel-legend div:nth-child(1) .rh-dot {
    background: #0b63f6;
}

.rh-funnel-legend div:nth-child(2) .rh-dot {
    background: #f59e0b;
}

.rh-funnel-legend div:nth-child(3) .rh-dot {
    background: #8b5cf6;
}

.rh-funnel-legend div:nth-child(4) .rh-dot {
    background: #16a34a;
}

.rh-funnel-legend div:nth-child(5) .rh-dot {
    background: #ef4444;
}

.rh-funnel-legend div {
    min-height: 28px;
    padding: 4px 0;
}

.rh-funnel-legend strong {
    font-weight: 950;
}

.rh-funnel-legend em {
    font-size: 13px;
}

/* Remove opacidade antiga do funil */
.rh-funnel-2,
.rh-funnel-3,
.rh-funnel-4,
.rh-funnel-5 {
    opacity: 1 !important;
}

/* Dropdown topo */
.rh-dropdown-wrap {
    position: relative;
}

.rh-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    padding: 12px;
    z-index: 999;
    display: none;
}

.rh-dropdown-panel.show {
    display: block;
}

.rh-dropdown-head {
    padding: 10px 12px 12px;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 8px;
}

.rh-dropdown-head strong {
    display: block;
    color: var(--blue-dark);
    font-size: 16px;
    font-weight: 950;
}

.rh-dropdown-head span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
    font-weight: 800;
}

.rh-dropdown-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 16px;
    transition: 0.18s ease;
    color: inherit;
}

.rh-dropdown-item:hover {
    background: #f8fbff;
}

.rh-dropdown-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 950;
    background: #eef4ff;
    color: var(--blue);
}

.rh-dropdown-item.danger .rh-dropdown-icon {
    background: #fee2e2;
    color: #dc2626;
}

.rh-dropdown-item.warning .rh-dropdown-icon {
    background: #fef3c7;
    color: #d97706;
}

.rh-dropdown-item.info .rh-dropdown-icon {
    background: #e0f2fe;
    color: #0369a1;
}

.rh-dropdown-item strong {
    display: block;
    color: var(--blue-dark);
    font-size: 14px;
    margin-bottom: 3px;
}

.rh-dropdown-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.rh-dropdown-empty {
    padding: 18px 14px;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
}

.rh-icon-button {
    cursor: pointer;
}

.rh-icon-button:hover {
    border-color: #cfe0ff;
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .rh-dropdown-panel {
        right: -80px;
        width: 320px;
    }
}


/* =========================================================
   ADMIN PERFORMANCE EQUILIBRADO + TELAS AJUSTADAS
   Mantém visual moderno sem usar efeitos pesados que travam o navegador.
   ========================================================= */

body.admin-shell-body .rh-topbar {
    backdrop-filter: none !important;
    background: #ffffff !important;
}

body.admin-shell-body .rh-sidebar {
    background: #ffffff !important;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.035) !important;
}

body.admin-shell-body .rh-card,
body.admin-shell-body .rh-kpi-card,
body.admin-shell-body .table-card,
body.admin-shell-body .admin-card,
body.admin-shell-body .dashboard-card,
body.admin-shell-body .dashboard-metric-card,
body.admin-shell-body .vaga-panel-hero,
body.admin-shell-body .vaga-stat-card,
body.admin-shell-body .rh-sidebar-help,
body.admin-shell-body .rh-sidebar-user {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045) !important;
}

body.admin-shell-body .rh-menu-item,
body.admin-shell-body .rh-icon-button,
body.admin-shell-body .btn-primary,
body.admin-shell-body .btn-secondary,
body.admin-shell-body .btn-danger,
body.admin-shell-body .rh-table-button,
body.admin-shell-body .banco-talento-card,
body.admin-shell-body .top-vaga-item {
    transition: none !important;
}

body.admin-shell-body .rh-menu-item:hover,
body.admin-shell-body .btn-primary:hover,
body.admin-shell-body .btn-secondary:hover,
body.admin-shell-body .btn-danger:hover,
body.admin-shell-body .top-vaga-item:hover,
body.admin-shell-body .job-card-modern:hover {
    transform: none !important;
}

.rh-sidebar-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 78px !important;
    padding: 4px 8px 10px !important;
}

.rh-sidebar-logo {
    display: block !important;
    width: 205px !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

.rh-menu {
    display: grid;
    gap: 8px;
}

.rh-content {
    width: min(1500px, calc(100% - 56px));
    margin: 0 auto;
    padding: 30px 0 42px;
}

.rh-page-title {
    align-items: center;
}

.rh-page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Formulários de filtros em grid */
.candidatos-filtros-card,
.banco-filtros-card {
    padding: 18px !important;
    margin-bottom: 18px;
}

.candidatos-filtros-form,
.banco-filtros-form {
    display: grid;
    gap: 14px;
    align-items: end;
}

.candidatos-filtros-form {
    grid-template-columns: minmax(280px, 1.5fr) 220px 220px auto;
}

.banco-filtros-form {
    grid-template-columns: minmax(280px, 1.6fr) 180px repeat(3, minmax(150px, 1fr));
}

.banco-filtros-form .full,
.candidatos-filtros-form .full {
    width: 100%;
}

.candidatos-filtros-form label,
.banco-filtros-form label {
    display: block;
    margin-bottom: 7px;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 900;
}

.candidatos-filtros-form input,
.candidatos-filtros-form select,
.banco-filtros-form input,
.banco-filtros-form select {
    height: 44px;
    padding: 0 13px;
    border-radius: 13px;
    font-size: 14px;
}

.candidatos-filter-actions,
.banco-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Banco de talentos */
.banco-talentos-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.banco-talentos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin-top: 18px;
}

.banco-talento-card {
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.banco-talento-top {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 12px;
    align-items: start;
}

.banco-talento-top h2 {
    margin: 0 0 4px;
    color: var(--blue-dark);
    font-size: 18px;
    line-height: 1.2;
}

.banco-talento-top p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.banco-score {
    min-width: 54px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #e9f8ef;
    color: #13833d;
    font-weight: 950;
}

.banco-score.muted {
    background: #eef4ff;
    color: var(--blue);
}

.banco-talento-info {
    display: grid;
    gap: 7px;
}

.banco-talento-info p {
    margin: 0;
    color: #40506a;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.banco-talento-info strong {
    color: var(--blue-dark);
}

.banco-resumo-ia {
    background: #f8fbff;
    border: 1px solid #e8eef8;
    border-radius: 16px;
    padding: 13px;
    min-height: 92px;
}

.banco-resumo-ia strong {
    display: block;
    color: var(--blue-dark);
    margin-bottom: 6px;
}

.banco-resumo-ia p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 13px;
}

.banco-resumo-ia.vazio {
    border-style: dashed;
}

.banco-talento-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.banco-talento-actions form {
    margin: 0;
}

.banco-talento-actions .btn-primary,
.banco-talento-actions .btn-secondary,
.banco-talento-actions .btn-danger {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 13px;
}

.banco-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 34px !important;
}

/* Candidaturas */
.candidatos-page .rh-table-card,
.vagas-admin-page .rh-table-card {
    padding: 0 !important;
    overflow: hidden;
}

.rh-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.rh-table {
    width: 100%;
    border-collapse: collapse;
}

.candidatos-page .rh-table {
    min-width: 1080px;
}

.rh-table th,
.rh-table td {
    text-align: left;
    vertical-align: middle;
}

.table-vaga-link,
.admin-inline-link {
    color: var(--blue) !important;
    font-weight: 950 !important;
    text-decoration: none !important;
}

.table-vaga-link:hover,
.admin-inline-link:hover {
    text-decoration: underline !important;
}

/* Vagas admin sem menu lateral antigo */
.vagas-admin-page {
    max-width: 1100px;
    margin: 0 auto;
}

.vagas-admin-card {
    margin-top: 12px;
}

.vagas-admin-table {
    min-width: 880px;
}

.vagas-admin-table td:first-child strong {
    display: block;
    max-width: 270px;
    color: var(--blue-dark);
    line-height: 1.2;
}

.vagas-admin-table td:first-child small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.vagas-row-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.vagas-row-actions form {
    margin: 0;
}

.vagas-row-actions .btn-primary,
.vagas-row-actions .btn-secondary,
.vagas-row-actions .btn-danger {
    height: 38px;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 12px;
    font-size: 13px;
}

.mini-count {
    min-width: 34px;
    height: 30px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #eef4ff;
    color: var(--blue);
    font-weight: 950;
}

@media (max-width: 1300px) {
    .banco-talentos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .banco-filtros-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .banco-filtros-form .full {
        grid-column: 1 / -1;
    }

    .candidatos-filtros-form {
        grid-template-columns: 1fr 180px 180px auto;
    }
}

@media (max-width: 900px) {
    .rh-content {
        width: min(100% - 28px, 1500px);
    }

    .rh-page-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .candidatos-filtros-form,
    .banco-filtros-form {
        grid-template-columns: 1fr;
    }

    .banco-talentos-grid,
    .banco-talentos-kpis {
        grid-template-columns: 1fr;
    }

    .candidatos-filter-actions,
    .banco-filter-actions,
    .vagas-row-actions {
        flex-wrap: wrap;
    }
}
/* Ícone fixo de mensagens no topo admin */
.rh-mail-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #061845 !important;
    line-height: 1 !important;
}

.rh-mail-icon svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
}

/* =========================================================
   LOGO PÚBLICO OTIMIZADO - HEADER DO PORTAL DE CARREIRAS
   Use o arquivo: static/img/logo-mb-farmacias.png
   ========================================================= */

.public-brand,
.topbar .brand.public-brand,
.topbar .brand {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-direction: row !important;
    gap: 18px !important;
    min-width: 0 !important;
    height: 86px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.public-header-logo,
.topbar .brand img.public-header-logo {
    display: block !important;
    width: 225px !important;
    max-width: 225px !important;
    height: auto !important;
    object-fit: contain !important;
    image-rendering: auto !important;
    transform: translateZ(0) !important;
}

.public-brand-subtitle {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #061845 !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    letter-spacing: -0.1px !important;
}

.topbar .nav {
    min-height: 86px !important;
    align-items: center !important;
}

@media (max-width: 900px) {
    .public-brand,
    .topbar .brand.public-brand,
    .topbar .brand {
        height: auto !important;
        gap: 10px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .public-header-logo,
    .topbar .brand img.public-header-logo {
        width: 170px !important;
        max-width: 170px !important;
    }

    .public-brand-subtitle {
        font-size: 14px !important;
        margin-top: -6px !important;
    }
}
/* =========================================================
   AJUSTE LOGO RODAPÉ - PORTAL PÚBLICO
   ========================================================= */

.footer {
    padding-top: 0 !important;
}

.footer-grid {
    min-height: 96px !important;
    padding: 18px 0 !important;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 28px !important;
}

.footer-brand-image,
.footer-brand {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.public-footer-logo {
    width: 120px !important;
    max-width: 120px !important;
    height: auto !important;
    object-fit: contain !important;
    filter: none !important;
}

.footer-brand-image p,
.footer-brand p {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
}

.footer-message {
    font-size: 15px !important;
    text-align: center !important;
}

.footer-links {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 22px !important;
}

.footer-copy {
    padding: 12px 16px !important;
    font-size: 13px !important;
}
/* =========================================================
   MAPA DA VAGA - PÁGINA PÚBLICA
   ========================================================= */

.job-location-card {
    margin-top: 26px;
    background: #ffffff;
    border: 1px solid #dbe7f8;
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.job-location-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.job-location-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: #eef4ff;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 24px;
    flex-shrink: 0;
}

.job-location-head h2 {
    margin: 6px 0 4px;
    color: var(--blue-dark);
    font-size: 27px;
    letter-spacing: -0.4px;
}

.job-location-head p {
    margin: 0;
    color: var(--muted);
}

.job-location-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.job-location-info {
    background: #f8fbff;
    border: 1px solid #e5edf7;
    border-radius: 20px;
    padding: 20px;
}

.job-location-info strong {
    display: block;
    color: var(--blue-dark);
    margin-bottom: 14px;
    font-size: 16px;
}

.job-location-info p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 700;
}

.job-location-info .btn-secondary {
    margin-top: 16px;
}

.job-map-box {
    min-height: 320px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #dbe7f8;
    background: #eef4ff;
}

.job-map-box iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

.vaga-location-admin-box {
    margin-top: 12px;
}

@media (max-width: 900px) {
    .job-location-grid {
        grid-template-columns: 1fr;
    }

    .job-map-box,
    .job-map-box iframe {
        min-height: 280px;
    }
}
/* =========================================================
   PAINEL DE USUÁRIOS / RECRUTADORES
   ========================================================= */

.usuarios-page,
.usuario-form-page {
    width: min(1500px, calc(100vw - 84px));
    margin: 0 auto;
}

.usuarios-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.usuarios-actions form {
    margin: 0;
}

.usuarios-actions .btn-secondary,
.usuarios-actions .btn-danger,
.usuarios-actions button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 13px;
    white-space: nowrap;
}

.usuario-form-card {
    max-width: 900px;
}

.usuario-ativo-check {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .usuarios-page,
    .usuario-form-page {
        width: min(100% - 28px, 1500px);
    }

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

    .usuarios-actions .btn-secondary,
    .usuarios-actions .btn-danger,
    .usuarios-actions button {
        width: 100%;
    }
}
/* =========================================================
   AJUSTE NOTEBOOK 15" / 100% - ADMIN SEM CORTAR
   ========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.rh-shell {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.rh-main {
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
}

.rh-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

/* Corrige páginas que estavam usando 100vw dentro do painel */
.rh-dashboard,
.usuarios-page,
.usuario-form-page,
.vagas-admin-page,
.vaga-painel-page,
.admin-page-clean {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Dá respiro interno sem estourar a tela */
.rh-dashboard {
    padding-left: 28px !important;
    padding-right: 28px !important;
}

/* Cards/tabelas nunca podem ultrapassar a tela */
.rh-card,
.rh-table-card,
.form-card,
.detail-card {
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Tabela com rolagem interna, não na página inteira */
.rh-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

/* Ajuste específico da tela de usuários */
.usuarios-page .rh-page-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.usuarios-page .rh-page-title .form-actions {
    margin-left: auto;
}

.usuarios-page .rh-table {
    min-width: 980px;
}

.usuarios-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.usuarios-actions form {
    margin: 0;
}

.usuarios-actions .btn-secondary,
.usuarios-actions .btn-danger,
.usuarios-actions button {
    height: 38px;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 12px;
    font-size: 13px;
    white-space: nowrap;
}

/* Topbar mais adaptável em notebook */
.rh-topbar {
    max-width: 100%;
    overflow: visible;
}

.rh-search {
    min-width: 280px;
    max-width: 520px;
    width: 42vw;
}

.rh-top-actions {
    min-width: 0;
    flex-shrink: 0;
}

/* Notebook 1366px / 15 polegadas */
@media (max-width: 1400px) {
    .rh-sidebar {
        width: 240px !important;
    }

    .rh-main {
        margin-left: 240px !important;
    }

    .rh-dashboard {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .rh-search {
        max-width: 460px;
        width: 38vw;
    }

    .rh-current-user strong {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
    }
}

/* Telas menores */
@media (max-width: 1180px) {
    .rh-sidebar {
        width: 220px !important;
    }

    .rh-main {
        margin-left: 220px !important;
    }

    .rh-dashboard {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .rh-search {
        max-width: 360px;
        width: 34vw;
    }

    .rh-current-user {
        display: none;
    }
}