:root {
    --hr-black: #000000;
    --hr-bg: #fafafa;
    --hr-surface: #ffffff;
    --hr-soft: #f3f3f3;
    --hr-soft-2: #eeeeee;
    --hr-border: #e5e5e5;
    --hr-border-strong: #d4d4d4;
    --hr-text: #000000;
    --hr-muted: #6b6b6b;
    --hr-faint: #9a9a9a;
    --hr-title-font: "Unbounded", system-ui, sans-serif;
    --hr-body-font: "Poppins", system-ui, sans-serif;
    --hr-shadow: 0 22px 60px rgba(0, 0, 0, 0.07);
    --hr-shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.045);
}

* {
    letter-spacing: 0;
}

body {
    background: var(--hr-bg);
    color: var(--hr-text);
    font-family: var(--hr-body-font);
    font-size: 13px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-mark,
.admin-sidebar,
.admin-nav,
.hr-breadcrumb,
.table th,
.hr-card > h2,
.stat-card span,
.metric-card span,
.modal-title {
    font-family: var(--hr-title-font);
}

.text-muted {
    color: var(--hr-muted) !important;
}

p,
.small,
.login-version,
.admin-navbar__brand span,
.admin-navbar__user span,
.table-card__toolbar p,
.stat-card small,
.hr-table td span:not(.status-badge),
.status-badge,
.hr-alert,
.modal-kicker,
.toast-body,
.form-label {
    font-size: 13px !important;
}

.login-shell {
    align-items: center;
    background: var(--hr-bg);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-panel {
    background: var(--hr-surface);
    border: 1px solid var(--hr-border);
    border-radius: 8px;
    box-shadow: var(--hr-shadow);
    max-width: 460px;
    padding: 36px;
    width: 100%;
}

.login-brand {
    align-items: center;
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.login-brand h1 {
    color: var(--hr-black);
    font-size: 1.2rem;
    margin: 0;
}

.login-brand p {
    color: var(--hr-muted);
    margin: 4px 0 0;
}

.login-description {
    color: var(--hr-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.brand-mark {
    align-items: center;
    background: var(--hr-black);
    border-radius: 8px;
    color: var(--hr-surface);
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 700;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.brand-mark--small {
    height: 38px;
    width: 38px;
}

.brand-mark--sidebar {
    background: var(--hr-surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--hr-black);
    font-size: 2rem;
    height: 92px;
    width: 92px;
}

.login-version {
    color: var(--hr-muted);
    font-size: 0.875rem;
    margin-top: 24px;
    text-align: center;
}

.client-login-shell {
    align-items: center;
    background: var(--hr-bg);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.client-login-card {
    background: var(--hr-surface);
    border: 1px solid var(--hr-border);
    border-radius: 8px;
    box-shadow: var(--hr-shadow-soft);
    max-width: 520px;
    padding: 42px;
    width: 100%;
}

.client-login-brand,
.client-portal-brand {
    align-items: center;
    display: flex;
    gap: 14px;
}

.client-login-brand {
    margin-bottom: 34px;
}

.client-login-brand strong,
.client-portal-brand strong,
.client-hero h1,
.client-section-heading h2,
.client-documents-panel h3,
.client-metric-card span {
    font-family: var(--hr-title-font);
}

.client-login-brand strong,
.client-portal-brand strong {
    color: var(--hr-black);
    display: block;
    font-size: 0.98rem;
}

.client-login-brand span:not(.brand-mark),
.client-portal-brand span:not(.brand-mark) {
    color: var(--hr-muted);
    display: block;
    font-size: 13px;
    margin-top: 2px;
}

.client-login-card h1 {
    font-family: var(--hr-title-font);
    font-size: 1.55rem;
    margin-bottom: 10px;
}

.client-login-card p {
    color: var(--hr-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.btn {
    border-radius: 8px;
    font-family: var(--hr-body-font);
    font-size: 13px;
    font-weight: 600;
    min-height: 42px;
}

/* ===========================================
   BOTÓN PRINCIPAL
=========================================== */

.btn-primary{
    background:#D4AF37;
    border:1px solid #D4AF37;
    color:#fff;
    font-weight:600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active{
    background:#E5C158;
    border-color:#E5C158;
    color:#fff;
}

/* ===========================================
   BOTONES SECUNDARIOS
=========================================== */

.btn-light,
.btn-outline-secondary{
    background:#D4AF37;
    border:1px solid #D4AF37;
    color:#fff;
    font-weight:600;
    transition:.25s ease;
}

.btn-light:hover,
.btn-outline-secondary:hover,
.btn-light:focus,
.btn-outline-secondary:focus{
    background:#E5C158;
    border-color:#E5C158;
    color:#fff;
    transform:translateY(-2px);
    box-shadow:0 10px 22px rgba(212,175,55,.35);
}

/* ===========================================
   TODOS LOS BOTONES
=========================================== */

.btn-icon {
    align-items: center;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    min-height: 42px;
    padding: 0;
    width: 42px;
}

.btn-action {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    white-space: nowrap;
}

.form-label {
    color: var(--hr-black);
    font-weight: 600;
}

.form-control,
.form-select {
    background: var(--hr-surface);
    border-color: var(--hr-border);
    border-radius: 8px;
    color: var(--hr-text);
    font-size: 13px;
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hr-black);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.08);
}

.admin-shell {
    background: var(--hr-bg);
    display: flex;
    min-height: 100vh;
}

.client-portal-body {
    background: var(--hr-bg);
}

.client-portal-container {
    margin: 0 auto;
    max-width: 1180px;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
}

.client-portal-header {
    background: var(--hr-surface);
    border-bottom: 1px solid var(--hr-border);
}

.client-portal-header__inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 76px;
}

.client-portal-nav {
    align-items: center;
    display: flex;
    gap: 8px;
}

.client-portal-main {
    padding-bottom: 42px;
    padding-top: 32px;
}

.client-hero {
    align-items: flex-end;
    background: var(--hr-surface);
    border: 1px solid var(--hr-border);
    border-radius: 8px;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 32px;
}

.client-hero__eyebrow,
.client-hero__company span {
    color: var(--hr-muted);
    display: block;
    font-family: var(--hr-title-font);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.client-hero h1 {
    font-size: 2rem;
    margin: 0 0 10px;
}

.client-hero p {
    color: var(--hr-muted);
    font-size: 14px;
    margin: 0;
}

.client-hero__company {
    border-left: 1px solid var(--hr-border);
    min-width: 260px;
    padding-left: 24px;
}

.client-hero__company strong {
    display: block;
    font-size: 1rem;
    line-height: 1.4;
}

.client-hero__company small {
    color: var(--hr-muted);
}

.client-metrics {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 26px;
}

.client-metric-card {
    background: var(--hr-surface);
    border: 1px solid var(--hr-border);
    border-radius: 8px;
    padding: 20px;
}

.client-metric-card span {
    color: var(--hr-muted);
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.client-metric-card strong {
    color: var(--hr-black);
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.client-section-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.client-section-heading h2 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.client-section-heading p {
    color: var(--hr-muted);
    margin: 0;
}

.client-documents-panel {
    padding: 24px;
}

.client-documents-panel h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.client-company-summary {
    background: var(--hr-surface);
    border: 1px solid var(--hr-border);
    border-radius: 8px;
    min-width: 240px;
    padding: 14px 16px;
    text-align: right;
}

.client-company-summary span {
    color: var(--hr-black);
    display: block;
    font-weight: 700;
    line-height: 1.35;
}

.client-company-summary small {
    color: var(--hr-muted);
    display: block;
    margin-top: 4px;
}

.admin-sidebar {
    background: var(--hr-black);
    border-right: 1px solid #1f1f1f;
    color: var(--hr-surface);
    flex: 0 0 292px;
    padding: 28px 22px;
    transition: margin-left 0.2s ease;
}

.admin-sidebar.is-collapsed {
    margin-left: -292px;
}

.admin-sidebar__brand {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 34px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-nav__section {
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--hr-title-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 20px 12px 8px;
    text-transform: uppercase;
}

.admin-nav__section:first-child {
    margin-top: 0;
}

.admin-nav__link {
    align-items: center;
    border-radius: 12px;
    color: #FFFFFF;
    display: flex;
    font-family: var(--hr-title-font);
    font-size: 13px;
    font-weight: 500;
    gap: 12px;
    letter-spacing: .2px;
    padding: 12px 16px;
    text-decoration: none;
    transition: .25s;
}

.admin-nav__link:hover {
    background: rgba(255, 255, 255, .08);
    color: #FFFFFF;
}

.admin-nav__link.active {
    background: #D4AF37;
    color: #ffffff;
}

.admin-nav__link--logout {
    color: #FFFFFF;
}

.admin-nav__icon {
    color: currentColor;
    fill: currentColor;
    flex: 0 0 auto;
    font-size: 16px;
    height: 16px;
    opacity: 1;
    width: 16px;
}

.admin-nav__link span {
    min-width: 0;
}

.admin-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.admin-navbar {
    align-items: center;
    background: var(--hr-surface);
    border-bottom: 1px solid var(--hr-border);
    display: flex;
    justify-content: space-between;
    min-height: 76px;
    padding: 14px 30px;
}

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

.admin-navbar__brand strong {
    color: var(--hr-black);
    display: block;
    font-family: var(--hr-title-font);
    font-size: 0.95rem;
    font-weight: 700;
}

.admin-navbar__brand span {
    color: var(--hr-muted);
    display: block;
    font-size: 0.86rem;
    margin-top: 2px;
}

.admin-navbar__user {
    text-align: right;
}

.admin-navbar__user strong {
    color: var(--hr-black);
    font-weight: 700;
}

.admin-content {
    padding: 30px;
}

.page-heading {
    margin-bottom: 24px;
}

.page-heading__row {
    align-items: flex-end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.page-heading h1 {
    color: var(--hr-black);
    font-size: clamp(1.45rem, 2vw, 2rem);
    margin: 0 0 8px;
}

.page-heading p {
    color: var(--hr-muted);
    margin: 0;
}

.hr-breadcrumb {
    align-items: center;
    color: var(--hr-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.72rem;
    gap: 8px;
    margin-bottom: 12px;
}

.hr-breadcrumb a {
    color: var(--hr-black);
    text-decoration: none;
}

.hr-card,
.metric-card,
.content-panel {
    background: var(--hr-surface);
    border: 1px solid var(--hr-border);
    border-radius: 8px;
    box-shadow: var(--hr-shadow-soft);
}

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

.client-summary-grid {
    align-items: stretch;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-card,
.content-panel {
    padding: 20px;
}

.metric-card {
    min-height: 132px;
}

.client-summary-grid .metric-card {
    min-height: 116px;
    padding: 16px 18px;
}

.metric-card span {
    color: var(--hr-muted);
    display: block;
    font-size: 0.74rem;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.client-summary-grid .metric-card span {
    font-size: 0.68rem;
    margin-bottom: 14px;
}

.metric-card strong {
    color: var(--hr-black);
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.client-summary-grid .metric-card strong {
    font-size: 1.75rem;
}

.client-company-card {
    display: grid;
    gap: 1px;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    margin-bottom: 18px;
    overflow: hidden;
    padding: 0;
}

.client-company-card > div {
    background: var(--hr-surface);
    min-width: 0;
    padding: 22px;
}

.client-company-card span,
.client-search-panel span {
    color: var(--hr-muted);
    display: block;
    font-family: var(--hr-title-font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.client-company-card strong {
    color: var(--hr-black);
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.client-company-card small {
    color: var(--hr-muted);
    display: block;
    margin-top: 8px;
}

.client-search-panel {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    margin-bottom: 18px;
    padding: 24px;
}

.client-search-panel p {
    color: var(--hr-muted);
    margin: 0;
}

.client-document-toolbar {
    margin-bottom: 0;
    max-width: none;
    width: 100%;
}

.client-document-toolbar .form-label {
    color: var(--hr-muted);
    font-family: var(--hr-title-font);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.stat-card {
    min-height: 138px;
    padding: 20px;
}

.stat-card span {
    color: var(--hr-muted);
    display: block;
    font-size: 0.74rem;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.stat-card strong {
    color: var(--hr-black);
    display: block;
    font-size: 2.2rem;
    line-height: 1;
}

.stat-card small {
    color: var(--hr-muted);
    display: block;
    margin-top: 10px;
}

.table-card {
    overflow: hidden;
}

.table-card__toolbar {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 20px;
}

.table-card__toolbar h2 {
    color: var(--hr-black);
    font-size: 1rem;
    margin: 0 0 6px;
}

.table-card__toolbar p {
    color: var(--hr-muted);
    margin: 0;
}

.search-control {
    max-width: 360px;
    width: 100%;
}

.search-control label {
    color: var(--hr-black);
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.hr-table {
    min-width: 900px;
}

.hr-table thead th {
    background: var(--hr-soft);
    color: var(--hr-black);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 14px 18px;
    text-transform: uppercase;
}

.hr-table tbody td,
.table td {
    border-color: var(--hr-soft-2);
    color: var(--hr-text);
    font-size: 13px;
    padding: 16px 18px;
    vertical-align: middle;
}

.hr-table td strong {
    color: var(--hr-black);
    display: block;
    font-weight: 700;
}

.hr-table td span:not(.status-badge) {
    color: var(--hr-muted);
    display: block;
    font-size: 0.86rem;
    margin-top: 2px;
}

.table-empty td {
    color: var(--hr-muted);
    padding: 34px 18px;
    text-align: center;
}

.status-badge {
    background: var(--hr-soft);
    border: 1px solid var(--hr-border);
    border-radius: 999px;
    color: var(--hr-black);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    justify-content: center;
    min-width: 86px;
    padding: 7px 12px;
}

.status-badge--success,
.status-badge--warning,
.status-badge--muted {
    background: var(--hr-soft);
    color: var(--hr-black);
}

.status-badge--active {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.status-badge--pending {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.status-badge--expired {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.status-badge--void {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.hr-alert {
    border: 1px solid var(--hr-border);
    border-radius: 8px;
    margin: 0 20px 20px;
    padding: 14px 16px;
}

.hr-alert--info {
    background: var(--hr-bg);
    color: var(--hr-black);
}

.hr-alert--success {
    background: #f7f7f7;
    color: var(--hr-black);
}

.hr-alert--error {
    background: #ffffff;
    border-color: #cfcfcf;
    color: var(--hr-black);
}

.empty-state {
    padding: 48px 24px;
    text-align: center;
}

.empty-state h3 {
    color: var(--hr-black);
    font-size: 1rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--hr-muted);
    margin: 0 auto;
    max-width: 420px;
}

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

.document-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 220px;
}

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

.document-actions [data-copy-code] {
    display: none !important;
}

.hr-modal {
    border: 0;
    border-radius: 8px;
    overflow: visible;
}

.hr-modal form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
}

.document-modal-shell .document-modal-dialog {
    display: flex;
    height: min(90vh, calc(100vh - 2rem));
    max-height: 90vh;
}

.document-modal-shell .hr-modal {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 90vh;
    overflow: visible;
}

.document-modal-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
}

.hr-modal .modal-header {
    background: var(--hr-black);
    color: var(--hr-surface);
    flex-shrink: 0;
    padding: 22px 24px;
}

.hr-modal .modal-title {
    font-size: 1.15rem;
}

.modal-kicker {
    color: #d4d4d4;
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.hr-modal .btn-close {
    filter: invert(1) grayscale(1);
}

.hr-modal .modal-body,
.hr-modal .modal-footer {
    padding: 24px;
}

.hr-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.document-modal-body:focus {
    outline: none;
}

#documentModal .document-modal-body .stat-card span {
    color: var(--hr-muted);
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

#documentModal .document-modal-body .stat-card strong {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere;
}

#documentModal .document-modal-body .stat-card small {
    color: var(--hr-muted);
    font-size: 13px;
}

.hr-modal .modal-footer {
    background: var(--hr-surface);
    border-top: 1px solid var(--hr-border);
    flex-shrink: 0;
}

.document-viewer-dialog {
    max-width: min(960px, calc(100vw - 24px));
}

.document-viewer-shell .hr-modal {
    max-height: 90vh;
    overflow: hidden;
}

.document-viewer-shell .document-viewer-body {
    overflow: hidden;
    padding: 16px;
}

.document-viewer-shell .document-preview {
    background: #1f1f1f;
    border: 1px solid var(--hr-border);
    border-radius: 8px;
    height: min(78vh, calc(90vh - 112px));
    margin: 0 auto;
    max-width: 900px;
    overflow: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.document-viewer-shell .document-preview iframe {
    border: 0;
    display: block;
    height: 100%;
    min-height: 100%;
    width: 100%;
}

.validation-page {
    background: var(--hr-bg);
    min-height: 100vh;
    padding: 48px 20px;
}

.validation-shell {
    margin: 0 auto;
    max-width: 980px;
    width: 100%;
}

.validation-hero {
    margin: 0 auto 28px;
    max-width: 720px;
    text-align: center;
}

.validation-logo {
    align-items: center;
    background: var(--hr-black);
    border-radius: 10px;
    color: var(--hr-surface);
    display: inline-flex;
    font-family: var(--hr-title-font);
    font-size: 1.4rem;
    font-weight: 700;
    height: 64px;
    justify-content: center;
    margin-bottom: 22px;
    text-decoration: none;
    width: 64px;
}

.validation-kicker,
.validation-result__eyebrow {
    color: var(--hr-muted);
    font-family: var(--hr-title-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.validation-hero h1 {
    font-family: var(--hr-title-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
    text-align: center;
}

.validation-subtitle {
    color: var(--hr-text);
    font-family: var(--hr-title-font);
    font-size: 20px !important;
    font-weight: 600;
    margin: 0 0 16px;
    text-align: center;
}

.validation-hero p {
    color: var(--hr-muted);
    font-size: 15px !important;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 660px;
}

.validation-search,
.validation-result {
    background: var(--hr-surface);
    border: 1px solid var(--hr-border);
    border-radius: 10px;
    box-shadow: var(--hr-shadow-soft);
    margin: 0 auto 22px;
    max-width: 860px;
    padding: 24px;
}

.validation-search label {
    color: var(--hr-text);
    display: block;
    font-family: var(--hr-title-font);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.validation-search__row {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.validation-search .form-control {
    border-radius: 8px;
    font-size: 15px;
    min-height: 48px;
}

.validation-result {
    border-left: 4px solid var(--hr-black);
}

.validation-result--expired {
    border-left-color: #777777;
}

.validation-result--missing {
    border-left-color: #b8b8b8;
}

.validation-result__header {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.validation-result h2 {
    font-family: var(--hr-title-font);
    font-size: 1.4rem;
    margin: 0;
}

.validation-result p {
    color: var(--hr-muted);
    line-height: 1.7;
    margin: 10px 0 0;
}

.validation-status {
    background: var(--hr-black);
    border-radius: 999px;
    color: var(--hr-surface);
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    white-space: nowrap;
}

.validation-result--expired .validation-status {
    background: #666666;
}

.validation-details {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 22px;
}

.validation-details div {
    background: var(--hr-bg);
    border: 1px solid var(--hr-border);
    border-radius: 8px;
    min-width: 0;
    padding: 14px;
}

.validation-details dt {
    color: var(--hr-muted);
    font-family: var(--hr-title-font);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.validation-details dd {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    overflow-wrap: anywhere;
}

.validation-file-message {
    background: var(--hr-bg);
    border: 1px solid var(--hr-border);
    border-radius: 8px;
    color: var(--hr-muted);
    padding: 14px;
}

.public-document-viewer .document-preview {
    height: min(78vh, 860px);
    max-width: 900px;
}

.hr-toast {
    background: var(--hr-black);
    border: 0;
    border-radius: 8px;
    color: var(--hr-surface);
    box-shadow: var(--hr-shadow);
}

.hr-loader {
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    color: var(--hr-surface);
    display: flex;
    gap: 12px;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 2000;
}

.hr-loader[hidden] {
    display: none;
}

.hr-loader__spinner {
    animation: hr-spin 0.8s linear infinite;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--hr-surface);
    border-radius: 50%;
    height: 28px;
    width: 28px;
}

@keyframes hr-spin {
    to {
        transform: rotate(360deg);
    }
}

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

    .client-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .client-company-card,
    .client-search-panel {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        bottom: 0;
        left: 0;
        position: fixed;
        top: 0;
        z-index: 1040;
    }

    .admin-sidebar.is-collapsed {
        margin-left: -292px;
    }

    .client-shell .admin-sidebar {
        margin-left: -292px;
    }

    .client-shell .admin-sidebar.is-open {
        margin-left: 0;
    }

    .page-heading__row,
    .table-card__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

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

    .client-hero__company {
        border-left: 0;
        border-top: 1px solid var(--hr-border);
        min-width: 0;
        padding-left: 0;
        padding-top: 20px;
        width: 100%;
    }

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

    .client-company-summary {
        min-width: 0;
        text-align: left;
        width: 100%;
    }

    .search-control {
        max-width: none;
    }

    .validation-search__row,
    .validation-details {
        grid-template-columns: 1fr;
    }

    .validation-result__header {
        flex-direction: column;
    }
}

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

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

    .client-company-card > div,
    .client-search-panel {
        padding: 18px;
    }

    .client-document-toolbar {
        max-width: none;
    }

    .login-panel {
        padding: 28px 22px;
    }

    .login-brand {
        align-items: flex-start;
    }

    .client-login-card {
        padding: 30px 22px;
    }

    .client-portal-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .client-portal-header__inner,
    .client-portal-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .client-portal-header__inner {
        gap: 16px;
        padding-bottom: 18px;
        padding-top: 18px;
    }

    .client-portal-nav .btn {
        width: 100%;
    }

    .client-hero {
        padding: 24px;
    }

    .client-hero h1 {
        font-size: 1.45rem;
    }

    .client-metrics {
        grid-template-columns: 1fr;
    }

    .admin-navbar {
        align-items: flex-start;
        gap: 12px;
        padding: 16px 18px;
    }

    .admin-navbar__brand {
        align-items: flex-start;
    }

    .admin-navbar__user {
        font-size: 0.86rem;
    }

    .admin-content {
        padding: 20px 18px;
    }

    .page-heading__row .btn {
        width: 100%;
    }

    .modal-dialog {
        margin: 10px;
    }

    .document-modal-shell .document-modal-dialog {
        height: calc(100vh - 20px);
        max-height: calc(100vh - 20px);
    }

    .hr-modal {
        max-height: calc(100vh - 20px);
    }

    .hr-modal .modal-header,
    .hr-modal .modal-body,
    .hr-modal .modal-footer {
        padding: 18px;
    }

    .document-viewer-shell .document-preview {
        height: calc(90vh - 104px);
    }

    .document-viewer-shell .document-preview iframe {
        height: 100%;
        min-height: 100%;
    }

    .document-actions {
        min-width: 180px;
    }
}

/* ===========================================
   BOTÓN MENÚ (☰)
=========================================== */

.btn.btn-icon.btn-outline-secondary{
    color:#FFFFFF !important;
}

.btn.btn-icon.btn-outline-secondary span{
    color:#FFFFFF !important;
    font-size:20px;
    font-weight:700;
}
