.employee-row { cursor: pointer; }
.employee-secondary-grid { margin-top: 18px; }
#employee-form textarea[name=address] { min-height: 44px; height: 44px; resize: vertical; }
#employee-form input[name=work_email]:disabled { background: #eef1f6; color: #718096; cursor: not-allowed; }
.employee-id-preview[role=button] { cursor: zoom-in; }
.employee-id-viewer { width: min(1100px, calc(100vw - 32px)); max-height: 92vh; padding: 22px; border: 1px solid var(--line); border-radius: 14px; }
.employee-id-viewer::backdrop { background: #102b5280; }
.employee-id-viewer header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.employee-id-viewer h2 { margin: 0; }
.employee-id-viewer img { display: block; width: 100%; max-height: calc(92vh - 130px); object-fit: contain; }
.employee-scan-dialog { max-height: 90vh; overflow-y: auto; }
.employee-scan-dialog:focus { outline: none; }
.employee-id-card img { display: block; width: 100%; max-height: 280px; object-fit: contain; margin: 18px 0; border-radius: 8px; }
.employee-id-card img[hidden] { display: none; }
.employee-id-card [hidden] { display: none; }
.employee-id-card [data-recrop]:not([hidden]) { display: flex; justify-content: center; width: fit-content; margin-inline: auto; text-align: center; }
.employee-id-card p { margin-bottom: 0; font-size: 12px; }
.employee-id-card [data-id-status]:empty { display: none; }
.employee-id-loading:not([hidden]) { display: flex; justify-content: center; align-items: center; min-height: 160px; margin: 18px 0; }
.employee-id-loading::after { content: ''; width: 32px; height: 32px; border: 3px solid #dbe7ff; border-top-color: #075fff; border-radius: 50%; animation: employee-id-spin .8s linear infinite; }
@keyframes employee-id-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .employee-id-loading::after { animation-duration: 2s; } }
@media(max-width:760px) { .employee-id-grid { grid-template-columns: 1fr; } }
.employee-welcome-dialog { --employee-controls-width: min(100%, 248px); width: min(350px, calc(100vw - 32px)); max-height: 85vh; overflow-y: auto; color: #102b52; text-align: center; }
.employee-welcome-dialog::backdrop { background: #102b5266; backdrop-filter: blur(2px); }
.employee-welcome-dialog > * { margin-block: 0; }
.employee-welcome-dialog[open] { display: grid; }
.employee-welcome-dialog .logo { display: block; width: min(100%, 170px); height: auto; max-height: 85px; object-fit: contain; margin-inline: auto; }
.employee-welcome-dialog .employee-welcome-divider { width: var(--employee-controls-width); height: 1px; margin-inline: auto; }
.access-screen .employee-welcome-dialog .access-heading > p { font-size: 14px; }
.employee-welcome-dialog .employee-link-controls { display: grid; width: var(--employee-controls-width); gap: 20px; margin-inline: auto; }
.employee-welcome-dialog .access-field { text-align: left; }
.employee-welcome-dialog :is(#employee-cedula, #confirmation-error) { text-align: center; }
.access-screen .employee-welcome-dialog .access-field label { margin-bottom: 10px; }
.employee-welcome-dialog .employee-link-actions { display: flex; align-items: stretch; justify-content: center; gap: 12px; }
.employee-welcome-dialog .employee-logout { display: flex; margin: 0; }
.employee-welcome-dialog .employee-link-actions:has(> button) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.access-screen .employee-welcome-dialog .employee-link-actions .access-button { padding-inline: 10px; text-align: center; }
.employee-welcome-dialog .employee-link-actions:has(> button) .employee-logout button { width: 100%; }
@media (max-width: 420px) {
  .employee-welcome-dialog .employee-link-actions:has(> button) { grid-template-columns: minmax(0, 1fr); }
}
