/* Recursos Humanos - estilos admin e público */
.prh-admin,
.prh-public {
    --prh-primary: #0f766e;
    --prh-primary-dark: #115e59;
    --prh-accent: #d97706;
    --prh-danger: #b91c1c;
    --prh-bg: #f8fafc;
    --prh-card: #ffffff;
    --prh-border: #dbe2ea;
    --prh-text: #0f172a;
    --prh-muted: #475569;
    --prh-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    color: var(--prh-text);
}

.prh-public h1,
.prh-public h2,
.prh-public h3,
.prh-admin h1,
.prh-admin h2,
.prh-admin h3 {
    margin: 0 0 .35rem;
    line-height: 1.2;
}



.prh-public--full {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin-left: calc(50% - 50vw + 12px);
    margin-right: calc(50% - 50vw + 12px);
}

.prh-public p,
.prh-admin p {
    color: var(--prh-muted);
}

.prh-toolbar {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.prh-toolbar--between {
    justify-content: space-between;
}

.prh-toolbar--right {
    justify-content: flex-end;
}

.prh-actions {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
}

.prh-actions--top {
    margin-top: .35rem;
}

.prh-actions--wrap {
    flex-wrap: wrap;
}

.prh-btn,
.prh-btn-light,
.prh-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 42px;
    padding: .65rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: .18s ease;
}

.prh-btn {
    background: var(--prh-primary);
    color: #fff;
}
.prh-btn:hover { background: var(--prh-primary-dark); }

.prh-btn-light {
    background: #fff;
    color: var(--prh-primary-dark);
    border-color: var(--prh-border);
}
.prh-btn-light:hover {
    border-color: var(--prh-primary);
    color: var(--prh-primary-dark);
}

.prh-btn-danger {
    background: #fff;
    color: var(--prh-danger);
    border-color: #fecaca;
}
.prh-btn-danger:hover {
    background: #fef2f2;
}

.prh-tabs {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin: 1.25rem 0;
}

.prh-tab {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .75rem 1rem;
    background: #fff;
    color: var(--prh-primary-dark);
    border: 1px solid var(--prh-border);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.prh-tab.is-active {
    background: var(--prh-primary);
    border-color: var(--prh-primary);
    color: #fff;
}

.prh-tabs--public {
    margin-top: 1rem;
}

.prh-grid {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

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

.prh-grid--stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prh-card,
.prh-subcard,
.prh-mini-card,
.prh-stat-card {
    background: var(--prh-card);
    border: 1px solid var(--prh-border);
    border-radius: 22px;
    box-shadow: var(--prh-shadow);
}

.prh-card {
    padding: 1.25rem;
    margin: 1rem 0;
}

.prh-card--hero {
    padding: 1.5rem;
}

.prh-card--table {
    padding: 0;
    overflow: hidden;
}

.prh-card__section {
    padding: 1.25rem 1.25rem 0;
}

.prh-subcard {
    padding: 1rem;
    margin-top: 1rem;
}

.prh-kicker,
.prh-mini-card__kicker {
    display: inline-flex;
    margin-bottom: .5rem;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--prh-accent);
    font-weight: 700;
}

.prh-stat-card {
    padding: 1rem 1.1rem;
    min-height: 152px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prh-stat-card__label {
    color: var(--prh-muted);
    font-size: .92rem;
}

.prh-stat-card__value {
    font-size: 1.7rem;
}

.prh-stat-card__note {
    font-size: .88rem;
    color: var(--prh-muted);
}

.prh-alert {
    border-radius: 16px;
    padding: 1rem 1.1rem;
    margin: 1rem 0;
    font-weight: 600;
    border: 1px solid transparent;
}

.prh-alert--success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.prh-alert--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.prh-badge,
.prh-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid var(--prh-border);
    color: var(--prh-primary-dark);
    font-weight: 600;
}

.prh-chip-list {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.prh-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}

.prh-field { grid-column: span 12; }
.prh-field--2 { grid-column: span 2; }
.prh-field--3 { grid-column: span 3; }
.prh-field--4 { grid-column: span 4; }
.prh-field--6 { grid-column: span 6; }
.prh-field--8 { grid-column: span 8; }
.prh-field--12 { grid-column: span 12; }

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

.prh-label {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: .45rem;
    color: var(--prh-primary-dark);
}

.prh-input,
.prh-select,
.prh-textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--prh-border);
    color: var(--prh-text);
    border-radius: 14px;
    padding: .82rem .9rem;
    font: inherit;
}

.prh-textarea {
    min-height: 120px;
    resize: vertical;
}

.prh-checkbox {
    display: inline-flex;
    gap: .55rem;
    align-items: center;
    font-weight: 600;
    color: var(--prh-text);
}

.prh-table-wrapper {
    width: 100%;
    overflow: auto;
}

.prh-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
}

.prh-table th,
.prh-table td {
    padding: .85rem .9rem;
    border-bottom: 1px solid var(--prh-border);
    vertical-align: top;
    text-align: left;
}

.prh-table th {
    background: #f8fafc;
    color: var(--prh-primary-dark);
    position: sticky;
    top: 0;
    z-index: 1;
}

.prh-table tr:hover td {
    background: #fbfdff;
}

.prh-link {
    color: var(--prh-primary-dark);
    text-decoration: none;
}
.prh-link:hover {
    text-decoration: underline;
}

.prh-help-list,
.prh-list-summary {
    display: grid;
    gap: .7rem;
}

.prh-help-item {
    padding: .85rem 1rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--prh-border);
}

.prh-search-box {
    display: grid;
    gap: 1rem;
}

.prh-search-box__header p {
    margin-bottom: 0;
}

.prh-empty-state {
    padding: 1.2rem;
    border: 1px dashed var(--prh-border);
    border-radius: 18px;
    background: #f8fafc;
    display: grid;
    gap: .35rem;
}

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

.prh-mini-card {
    padding: 1rem;
}

.prh-mini-card__meta {
    display: grid;
    gap: .35rem;
    color: var(--prh-muted);
    margin-bottom: .75rem;
}

.prh-definition-list {
    display: grid;
    gap: .75rem;
}

.prh-definition-list > div {
    display: grid;
    gap: .25rem;
    padding: .85rem 1rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--prh-border);
}

.prh-chart {
    width: 100%;
    min-height: 260px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(15,118,110,.04), rgba(255,255,255,1));
    border: 1px solid var(--prh-border);
    padding: 1rem;
}

.prh-chart__empty {
    color: var(--prh-muted);
}

.prh-chart__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: .75rem;
    align-items: end;
    min-height: 200px;
}

.prh-chart__bar-wrap {
    display: grid;
    gap: .45rem;
    justify-items: center;
}

.prh-chart__bar {
    width: 100%;
    max-width: 48px;
    min-height: 10px;
    border-radius: 14px 14px 8px 8px;
    background: linear-gradient(180deg, var(--prh-primary), var(--prh-primary-dark));
}

.prh-chart__label {
    font-size: .8rem;
    color: var(--prh-muted);
    text-align: center;
}

.prh-chart__value {
    font-size: .78rem;
    color: var(--prh-primary-dark);
    font-weight: 700;
    text-align: center;
}

@media (max-width: 1080px) {
    .prh-grid--2,
    .prh-grid--stats,
    .prh-card-grid {
        grid-template-columns: 1fr 1fr;
    }
    .prh-field--2,
    .prh-field--3,
    .prh-field--4,
    .prh-field--6,
    .prh-field--8 {
        grid-column: span 6;
    }
}

@media (max-width: 720px) {
    .prh-grid--2,
    .prh-grid--stats,
    .prh-card-grid {
        grid-template-columns: 1fr;
    }
    .prh-form-grid {
        grid-template-columns: 1fr;
    }
    .prh-field,
    .prh-field--2,
    .prh-field--3,
    .prh-field--4,
    .prh-field--6,
    .prh-field--8,
    .prh-field--12 {
        grid-column: auto;
    }
    .prh-table {
        min-width: 760px;
    }
    .prh-public--full {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}
