:root { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #172033; background: #f3f5f8; }
* { box-sizing: border-box; } body { margin: 0; min-height: 100vh; }
button, input { font: inherit; } main { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 70px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.kicker { margin: 0 0 7px; color: #3867d6; font-size: .75rem; font-weight: 800; letter-spacing: .13em; }
h1, h2, h3, p { margin-top: 0; } h1 { margin-bottom: 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.035em; } .page-head p:last-child { margin: 0; color: #687180; }
.panel { margin-top: 16px; padding: 24px; border: 1px solid #dfe3e9; border-radius: 14px; background: white; box-shadow: 0 8px 24px #1b2b4510; }
.panel.disabled { opacity: .48; pointer-events: none; }.step-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; }
.step-head > span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: #172033; color: white; font-size: .85rem; font-weight: 800; }
.step-head h2, .queue-head h2 { margin: 1px 0 3px; font-size: 1.12rem; }.step-head p, .queue-head p { margin: 0; color: #737c8a; font-size: .9rem; }
.drop-zone { min-height: 205px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed #b5becb; border-radius: 11px; background: #fafbfd; text-align: center; cursor: pointer; transition: .15s; }
.drop-zone.compact { min-height: 160px; }.drop-zone:hover, .drop-zone.dragging { border-color: #3867d6; background: #f6f8ff; }.drop-zone.busy { opacity: .55; pointer-events: none; }
.drop-zone svg { width: 38px; fill: none; stroke: #3867d6; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.drop-zone strong { margin-top: 13px; }.drop-zone span { margin-top: 4px; color: #747d8b; font-size: .9rem; }
.load-actions { display: flex; gap: 9px; margin-top: 18px; }.load-actions button { padding: 9px 13px; border: 1px solid #3867d6; border-radius: 8px; background: #3867d6; color: white; cursor: pointer; }.load-actions .secondary { border-color: #cfd5dd; background: white; color: #313a49; }
.loading, .alert { margin-top: 14px; padding: 13px 14px; border-radius: 9px; }.loading { display: flex; align-items: center; gap: 10px; background: #f4f7fd; }.alert.error { color: #982828; background: #fff2f2; border: 1px solid #f0caca; }
.spinner { width: 20px; height: 20px; border: 3px solid #dbe2ef; border-top-color: #3867d6; border-radius: 50%; animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.identity-card { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px; border: 1px solid #d8e6df; border-radius: 10px; background: #f6fbf8; }.avatar { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 50%; background: #dceee5; color: #176746; font-weight: 850; }.identity-card > div:nth-child(2) { flex: 1; min-width: 0; }.identity-card small { color: #688074; font-size: .7rem; font-weight: 800; letter-spacing: .08em; }.identity-card h3 { margin: 3px 0 2px; }.identity-card p { margin: 0; color: #5c6877; }
.badge { display: inline-block; padding: 6px 9px; border-radius: 99px; font-size: .76rem; font-weight: 750; white-space: nowrap; }.success { color: #176746; background: #dff2e8; }.warning { color: #855107; background: #fff0d5; }.danger { color: #9b2929; background: #fde3e3; }.neutral { color: #556070; background: #e9edf2; }
.secondary { padding: 9px 13px; border: 1px solid #cfd5dd; border-radius: 8px; background: white; color: #313a49; cursor: pointer; }.secondary:hover { background: #f7f8fa; }.secondary:disabled { opacity: .45; cursor: not-allowed; }
.queue-head { display: flex; justify-content: space-between; gap: 18px; }.count { color: #566171; font-size: .85rem; font-weight: 700; }.progress { height: 7px; margin: 16px 0 18px; overflow: hidden; border-radius: 99px; background: #e8ebf0; }.progress span { display: block; width: 0; height: 100%; background: #3867d6; transition: width .25s; }
.summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }.summary span { padding: 7px 10px; border-radius: 7px; background: #f0f2f5; color: #4f5968; font-size: .82rem; font-weight: 650; }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: .88rem; } th { padding: 10px; border-bottom: 1px solid #dfe3e9; color: #6c7583; font-size: .72rem; text-align: left; text-transform: uppercase; white-space: nowrap; } td { padding: 13px 10px; border-bottom: 1px solid #edf0f3; vertical-align: middle; } td:first-child { max-width: 210px; font-weight: 650; overflow-wrap: anywhere; } td .sub { display: block; margin-top: 3px; color: #858d99; font-size: .75rem; }.detail-button { border: 0; background: none; color: #3867d6; font-weight: 700; cursor: pointer; }
.records-section { margin-top: 28px; }.records-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }.records-head h2 { margin: 0; font-size: 1.45rem; }.records-head > span { color: #687180; font-weight: 700; }.records-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.record-card { overflow: hidden; border: 1px solid #dfe3e9; border-radius: 14px; background: white; box-shadow: 0 8px 24px #1b2b4510; }.record-card-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; }.record-identity { flex: 1; min-width: 0; }.record-identity h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }.record-identity p { margin: 3px 0 0; color: #6e7785; font-size: .84rem; }.record-meta { padding: 9px 18px; border-top: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; background: #fafbfc; color: #626c7a; font-size: .8rem; font-weight: 700; }.document-list { padding: 5px 18px 12px; }.document-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #edf0f3; }.document-row:last-child { border-bottom: 0; }.document-row > div { min-width: 0; }.document-row strong, .document-row small { display: block; }.document-row strong { font-size: .86rem; }.document-row small { margin-top: 3px; color: #828a96; font-size: .75rem; overflow-wrap: anywhere; }.unassigned { margin-top: 16px; border-color: #edd5aa; }.unassigned > h2 { margin-bottom: 5px; font-size: 1.1rem; }.unassigned > p { color: #737c8a; font-size: .9rem; }
dialog { width: min(720px, calc(100% - 28px)); max-height: 82vh; padding: 0; border: 0; border-radius: 13px; box-shadow: 0 24px 70px #10182855; } dialog::backdrop { background: #17203380; }.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 20px; border-bottom: 1px solid #e1e5ea; }.dialog-head small { color: #78818e; font-size: .7rem; font-weight: 800; letter-spacing: .08em; }.dialog-head h2 { margin: 4px 0 0; font-size: 1.15rem; }.dialog-head button { border: 0; background: none; color: #6c7583; font-size: 1.7rem; cursor: pointer; } pre { max-height: 60vh; margin: 0; padding: 20px; overflow: auto; background: #171b24; color: #e8ecf3; font: .8rem/1.55 Consolas, monospace; white-space: pre-wrap; }
.document-row { justify-content: flex-start; padding: 12px 3px; border-radius: 8px; cursor: pointer; }.document-row:hover { background: #f7f9fc; }.document-copy { flex: 1; min-width: 0; }.document-summary { display: block; margin-top: 3px; color: #566171; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.document-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 9px; background: #eef3ff; color: #3867d6; }.document-icon svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
dialog { width: min(760px, calc(100% - 28px)); max-height: 88vh; border-radius: 16px; }.dialog-head { position: sticky; top: 0; z-index: 2; padding: 20px 22px; background: white; }.detail-heading { display: flex; align-items: center; gap: 13px; }.detail-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 11px; color: #3867d6; background: #edf3ff; }.detail-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.dialog-head p { margin: 3px 0 0; color: #7d8693; font-size: .78rem; overflow-wrap: anywhere; }.detail-content { padding: 20px 22px 25px; overflow: auto; }.detail-status { display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px; border-radius: 10px; }.detail-status > span { display: grid; place-items: center; flex: 0 0 23px; }.detail-status svg, .detail-warning > svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.detail-status strong, .detail-status span { display: block; }.detail-status div span { margin-top: 2px; font-size: .82rem; line-height: 1.45; }.detail-section { margin-top: 22px; }.detail-section h3 { margin-bottom: 10px; color: #646e7c; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e5e8ed; border-radius: 11px; }.detail-field { min-width: 0; padding: 13px 15px; border-right: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; }.detail-field:nth-child(even) { border-right: 0; }.detail-field.wide { grid-column: 1 / -1; border-right: 0; }.detail-field span, .detail-field strong { display: block; }.detail-field span { color: #7b8491; font-size: .75rem; }.detail-field strong { margin-top: 4px; color: #273142; font-size: .9rem; line-height: 1.4; overflow-wrap: anywhere; }.operation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.operation-card { padding: 14px; border: 1px solid #e3e7ec; border-radius: 11px; background: #fafbfc; }.operation-card > strong { display: block; margin-bottom: 9px; font-size: .9rem; }.operation-card p { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; color: #737c89; font-size: .78rem; }.operation-card p b { color: #323c4b; text-align: right; }.detail-warning { display: flex; gap: 11px; margin-top: 20px; padding: 14px; border: 1px solid #efd7a8; border-radius: 10px; color: #84530b; background: #fff9ed; }.detail-warning > svg { flex: 0 0 20px; }.detail-warning strong { font-size: .88rem; }.detail-warning ul { margin: 6px 0 0; padding-left: 18px; color: #755b32; font-size: .82rem; line-height: 1.5; }
[hidden] { display: none !important; }
@media (max-width: 760px) { .records-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { main { padding-top: 24px; }.page-head { display: block; }.page-head button { margin-top: 16px; }.panel { padding: 17px; }.identity-card { align-items: flex-start; flex-wrap: wrap; }.identity-card .badge { margin-left: 62px; }.queue-head, .records-head { display: block; }.count, .records-head > span { display: block; margin-top: 6px; } }
@media (max-width: 560px) { .detail-grid, .operation-list { grid-template-columns: 1fr; }.detail-field { border-right: 0; }.detail-heading { align-items: flex-start; }.detail-content { padding: 16px; } }

/* Dirección visual: interfaz editorial, sobria y centrada en los documentos. */
:root { font-family: "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; color: #151923; background: #f5f6f8; --ink: #151923; --muted: #707786; --line: #e5e7ec; --accent: #4b5ee8; --accent-soft: #eef0ff; }
body { background: #f5f6f8; } main { width: min(1160px, calc(100% - 36px)); padding-top: 38px; }
.page-head { align-items: center; margin-bottom: 28px; }.page-head h1 { margin-bottom: 6px; font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 720; letter-spacing: -.055em; }.page-head p:last-child { max-width: 640px; color: #6d7482; font-size: .98rem; line-height: 1.55; }.kicker { display: inline-flex; margin-bottom: 12px; padding: 5px 9px; border: 1px solid #dfe2ea; border-radius: 99px; background: #fff; color: #626a78; font-size: .68rem; letter-spacing: .1em; }
.panel { padding: 26px; border-color: #e5e7ec; border-radius: 20px; box-shadow: 0 1px 2px #10182808, 0 12px 30px #10182805; }.step-head > span { background: #1d2230; }.step-head h2, .queue-head h2 { font-size: 1.05rem; letter-spacing: -.015em; }
.drop-zone { min-height: 220px; border: 1px dashed #b8beca; border-radius: 16px; background: #fafbfc; }.drop-zone:hover, .drop-zone.dragging { border-color: var(--accent); background: #f7f7ff; }.drop-zone svg { color: var(--accent); stroke: currentColor; }.load-actions button { border-color: #202536; border-radius: 10px; background: #202536; }.load-actions .secondary { border-color: #d9dce3; background: #fff; }
.progress { background: #eceef2; }.progress span { background: var(--accent); }.summary span { padding: 8px 11px; border-radius: 99px; background: #f0f1f4; color: #4d5563; }.record-card { border-color: #e4e6eb; border-radius: 20px; box-shadow: 0 1px 2px #10182808, 0 12px 28px #10182805; }.record-card-head { padding: 20px 20px 16px; }.record-card .avatar { background: #202536; color: #fff; }.record-identity h3 { font-size: 1.02rem; letter-spacing: -.02em; }.record-meta { padding: 10px 20px; border-color: #eceef2; background: #f9fafb; }.document-list { padding: 7px 15px 14px; }.document-row { padding: 12px 8px; border-color: #eef0f3; transition: background .14s ease, transform .14s ease; }.document-row:hover { background: #f7f8fa; transform: translateX(2px); }.document-icon { border-radius: 10px; background: var(--accent-soft); color: var(--accent); }.document-summary { color: #697180; }.badge { padding: 6px 10px; font-weight: 650; }.success { color: #17654b; background: #e3f3ec; }.warning { color: #845515; background: #fff0d8; }.danger { color: #9e3a42; background: #fbe7e9; }
.detail-button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border-radius: 8px; transition: background .14s; }.detail-button:hover { background: var(--accent-soft); }.detail-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

dialog { width: min(850px, calc(100% - 28px)); max-height: min(900px, 92vh); overflow: hidden; border: 1px solid #ffffff80; border-radius: 24px; background: #fff; box-shadow: 0 30px 90px #12182635; } dialog::backdrop { background: #1118278f; backdrop-filter: blur(5px); }.dialog-head { position: sticky; padding: 25px 28px 22px; border-color: #eceef2; }.detail-heading { gap: 15px; }.detail-icon { flex-basis: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }.detail-icon svg { width: 25px; }.dialog-head small { color: #858c99; font-size: .67rem; font-weight: 700; letter-spacing: .11em; }.dialog-head h2 { margin-top: 5px; font-size: 1.35rem; font-weight: 720; letter-spacing: -.035em; }.dialog-head p { color: #8a919d; }.dialog-head button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #6f7683; font-size: 1.45rem; transition: background .14s; }.dialog-head button:hover { background: #f1f2f5; }
.detail-content { max-height: calc(92vh - 96px); padding: 24px 28px 32px; }.detail-status { position: relative; gap: 13px; padding: 17px 18px; border: 1px solid transparent; border-radius: 15px; }.detail-status.success { border-color: #cfe9dd; background: #edf8f3; }.detail-status.warning { border-color: #f0d9ae; background: #fff8eb; }.detail-status.danger { border-color: #f0cdd1; background: #fff1f2; }.detail-status > span { margin-top: 1px; }.detail-status strong { font-size: .95rem; letter-spacing: -.01em; }.detail-status div span { max-width: 650px; margin-top: 4px; color: #596171; font-size: .84rem; }
.detail-section { margin-top: 26px; }.detail-section h3 { margin: 0 0 11px 2px; color: #717886; font-size: .72rem; font-weight: 720; letter-spacing: .09em; }.detail-grid { gap: 8px; overflow: visible; border: 0; border-radius: 0; }.detail-field { min-height: 76px; padding: 14px 15px; border: 1px solid #eceef2 !important; border-radius: 13px; background: #fafbfc; }.detail-field.wide { min-height: auto; padding: 16px; background: #f6f7f9; }.detail-field span { color: #7d8491; font-size: .77rem; }.detail-field strong { margin-top: 6px; color: #1b202b; font-size: .94rem; font-weight: 650; letter-spacing: -.012em; }.operation-list { gap: 9px; }.operation-card { padding: 16px; border-color: #e8eaf0; border-radius: 14px; background: #fafbfc; }.operation-card > strong { font-size: .94rem; }.operation-card p { padding-top: 7px; border-top: 1px solid #eceef2; }.detail-warning { border-color: #efdcb9; border-radius: 14px; background: #fffaef; }

@media (max-width: 680px) { main { width: min(100% - 22px, 1160px); }.page-head h1 { font-size: 2.15rem; }.panel { padding: 18px; border-radius: 17px; }.dialog-head { padding: 19px 18px 17px; }.detail-content { padding: 18px; }.detail-icon { flex-basis: 42px; height: 42px; }.dialog-head h2 { font-size: 1.12rem; } }

/* Ficha de lectura rápida: sin tarjetas repetidas, jerarquía horizontal. */
dialog { width: min(980px, calc(100% - 28px)); }.dialog-head { padding: 22px 28px 19px; }.detail-heading { flex: 1; min-width: 0; }.detail-meta { display: flex; align-items: center; gap: 9px; margin-top: 5px; }.detail-meta p { min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.detail-meta .badge { padding: 4px 8px; font-size: .69rem; }
.detail-content { padding: 0 28px 25px; }.detail-lead { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 11px 0; border-bottom: 1px solid #e9ebef; background: transparent !important; }.detail-lead > span { display: grid; place-items: center; flex: 0 0 21px; }.detail-lead svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.detail-lead p { margin: 0; color: #5e6674; font-size: .84rem; line-height: 1.4; }.detail-lead.success { color: #21805f; }.detail-lead.warning { color: #a46a18; }.detail-lead.danger { color: #bd4c56; }
.detail-section { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: start; gap: 18px; margin: 0; padding: 20px 0; border-bottom: 1px solid #e9ebef; }.detail-section h3 { margin: 4px 0 0; color: #858c98; font-size: .7rem; line-height: 1.35; }.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }.detail-field { min-height: 0; padding: 3px 17px 5px; border: 0 !important; border-left: 1px solid #e8eaf0 !important; border-radius: 0; background: transparent; }.detail-field:nth-child(3n+1) { padding-left: 0; border-left: 0 !important; }.detail-field:nth-child(n+4) { margin-top: 18px; }.detail-field.wide { grid-column: 1 / -1; margin-top: 17px; padding: 14px 0 0; border-top: 1px solid #eceef2 !important; border-left: 0 !important; background: transparent; }.detail-field span { font-size: .73rem; }.detail-field strong { margin-top: 4px; font-size: .91rem; line-height: 1.3; }.operation-list { grid-column: 2; }.detail-warning { margin-top: 18px; }

@media (max-width: 760px) { .detail-section { grid-template-columns: 1fr; gap: 10px; }.detail-section h3 { margin: 0; }.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.detail-field:nth-child(3n+1) { padding-left: 17px; border-left: 1px solid #e8eaf0 !important; }.detail-field:nth-child(2n+1) { padding-left: 0; border-left: 0 !important; }.detail-field:nth-child(n+3) { margin-top: 16px; }.detail-field.wide { padding-left: 0; }.operation-list { grid-column: 1; } }
@media (max-width: 520px) { .detail-meta { align-items: flex-start; flex-direction: column; gap: 6px; }.detail-grid { grid-template-columns: 1fr; }.detail-field, .detail-field:nth-child(3n+1), .detail-field:nth-child(2n+1) { margin-top: 0; padding: 8px 0; border-left: 0 !important; }.detail-field + .detail-field { border-top: 1px solid #eff0f3 !important; }.detail-content { padding: 0 18px 22px; } }

/* Vista final inspirada en una ficha documental: grupos únicos con iconografía funcional. */
dialog { width: min(1040px, calc(100% - 30px)); border-color: #e8e9ed; background: #fdfdfd; }.dialog-head { padding: 24px 30px 21px; }.detail-icon { flex-basis: 52px; height: 52px; border-radius: 15px; background: #f0f1f7; color: #5d68a5; }.dialog-head h2 { font-size: 1.48rem; }.detail-meta { margin-top: 7px; }.detail-meta .badge { margin-left: 3px; }
.detail-content { padding: 0 30px 30px; }.detail-lead { min-height: 58px; margin: 18px 0 4px; padding: 13px 17px; border: 1px solid #e7e8ec; border-radius: 14px; }.detail-lead.success { color: #42725f; background: #f2f7f5 !important; border-color: #dce9e3; }.detail-lead.warning { color: #886b3b; background: #faf7f1 !important; border-color: #ebe2d1; }.detail-lead.danger { color: #9a4d55; background: #faf3f4 !important; border-color: #ecdadd; }.detail-lead > div { min-width: 0; }.detail-lead strong { display: block; color: currentColor; font-size: .86rem; }.detail-lead p { margin-top: 2px; color: #454c59; font-size: .84rem; }
.detail-section { display: block; margin: 0; padding: 18px 0 0; border: 0; }.detail-section h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 9px; color: #1e2430; font-size: .93rem; letter-spacing: -.015em; text-transform: none; }.detail-section h3 > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: #f0f1f5; color: #64708e; }.detail-section h3 svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }.detail-section h3 b { font-weight: 690; }
.detail-grid { display: grid; overflow: hidden; gap: 0; border: 1px solid #e5e7eb; border-radius: 15px; background: #fff; }.detail-grid.cols-1 { grid-template-columns: 1fr; }.detail-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }.detail-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }.detail-field { display: flex; align-items: center; gap: 12px; min-height: 66px; margin: 0 !important; padding: 12px 16px !important; border: 0 !important; border-left: 1px solid #e9eaee !important; border-radius: 0; background: #fff; }.detail-field:nth-child(3n+1) { border-left: 0 !important; }.cols-2 .detail-field:nth-child(odd), .cols-1 .detail-field { border-left: 0 !important; }.cols-3 .detail-field:nth-child(n+4), .cols-2 .detail-field:nth-child(n+3) { border-top: 1px solid #e9eaee !important; }.detail-field.wide { grid-column: 1 / -1; border-top: 1px solid #e9eaee !important; border-left: 0 !important; }.field-icon { display: grid !important; place-items: center; flex: 0 0 24px; color: #737d96 !important; }.field-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }.field-copy { min-width: 0; }.detail-field .field-copy > span { color: #747b88; font-size: .75rem; }.detail-field .field-copy > strong { margin-top: 2px; color: #171c27; font-size: .94rem; font-weight: 670; line-height: 1.25; }.section-vigencia .detail-grid { border-color: #e2e4eb; background: #f5f6fa; }.section-vigencia .detail-field { background: #f5f6fa; }.section-vigencia .field-icon, .section-vigencia h3 > span { color: #5967a7 !important; background: #eff0f7; }
.operation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }.operation-card { border-radius: 15px; background: #fff; }.detail-warning { border-radius: 14px; }

@media (max-width: 760px) { .detail-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }.cols-3 .detail-field:nth-child(3n+1) { border-left: 1px solid #e9eaee !important; }.cols-3 .detail-field:nth-child(odd) { border-left: 0 !important; }.cols-3 .detail-field:nth-child(n+3) { border-top: 1px solid #e9eaee !important; }.detail-section { padding-top: 16px; } }
@media (max-width: 520px) { .dialog-head { padding: 18px; }.detail-content { padding: 0 18px 22px; }.detail-grid.cols-2, .detail-grid.cols-3 { grid-template-columns: 1fr; }.detail-field, .cols-2 .detail-field, .cols-3 .detail-field { border-left: 0 !important; }.detail-field + .detail-field { border-top: 1px solid #e9eaee !important; }.operation-list { grid-template-columns: 1fr; } }

/* Documento original y extracción en una sola vista. */
dialog { width: min(1380px, calc(100% - 30px)); }.detail-body { display: grid; grid-template-columns: minmax(360px, 42%) minmax(0, 1fr); height: calc(92vh - 101px); min-height: 520px; }.detail-body.without-preview, .detail-body.preview-collapsed { grid-template-columns: 1fr; }.detail-body.preview-collapsed .preview-panel { display: none; }.preview-panel { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border-right: 1px solid #e3e5e9; background: #f1f2f4; }.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 47px; padding: 0 14px 0 17px; border-bottom: 1px solid #dfe1e5; color: #626a77; font-size: .75rem; font-weight: 650; }.preview-head > div { display: flex; align-items: center; gap: 5px; }.preview-head button, .preview-head a { padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: #59658f; font: inherit; text-decoration: none; cursor: pointer; }.preview-head button:hover, .preview-head a:hover { background: #e4e6eb; }.preview-content { flex: 1; min-height: 0; padding: 12px; }.preview-content iframe { width: 100%; height: 100%; border: 1px solid #d9dce2; border-radius: 9px; background: white; }.preview-content img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }.detail-body .detail-content { max-height: none; overflow-y: auto; }.detail-body.without-preview .detail-content, .detail-body.preview-collapsed .detail-content { width: min(1040px, 100%); margin: 0 auto; }
.detail-meta #show-preview { padding: 4px 8px; border: 0; border-radius: 7px; background: #eef0f5; color: #59658f; font-size: .7rem; font-weight: 650; cursor: pointer; }
@media (max-width: 900px) { .detail-body { grid-template-columns: minmax(300px, 38%) minmax(0, 1fr); }.detail-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }.cols-3 .detail-field:nth-child(3n+1) { border-left: 1px solid #e9eaee !important; }.cols-3 .detail-field:nth-child(odd) { border-left: 0 !important; }.cols-3 .detail-field:nth-child(n+3) { border-top: 1px solid #e9eaee !important; } }
@media (max-width: 760px) { .detail-body { display: block; height: calc(92vh - 90px); min-height: 0; }.preview-panel { height: 48%; border-right: 0; border-bottom: 1px solid #e3e5e9; }.detail-body:not(.preview-collapsed) .detail-content { height: 52%; }.detail-body.preview-collapsed .detail-content { height: 100%; }.preview-content { padding: 8px; } }

/* Navegación y primera vista de gestión de trabajadores. */
.app-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 0 max(24px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid #e4e6ea; background: #ffffffed; backdrop-filter: blur(12px); }.brand { display: inline-flex; align-items: center; gap: 10px; color: #1b202b; text-decoration: none; }.brand > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #202536; color: white; font-weight: 750; }.brand strong { font-size: .91rem; }.app-nav nav { display: flex; gap: 5px; }.app-nav nav a { padding: 8px 11px; border-radius: 9px; color: #69717f; font-size: .84rem; font-weight: 620; text-decoration: none; }.app-nav nav a:hover { background: #f3f4f6; }.app-nav nav a.active { background: #eceef4; color: #242b3b; }
.primary-link { display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 10px; background: #202536; color: white; font-size: .85rem; font-weight: 650; text-decoration: none; }.workers-head { margin-bottom: 20px; }.workers-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }.workers-stats article { padding: 17px 18px; border: 1px solid #e4e6eb; border-radius: 15px; background: white; }.workers-stats strong, .workers-stats span { display: block; }.workers-stats strong { font-size: 1.55rem; letter-spacing: -.04em; }.workers-stats span { margin-top: 3px; color: #747c89; font-size: .78rem; }.workers-panel { margin-top: 12px; }.worker-tools { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; }.worker-tools label { display: grid; gap: 6px; color: #747c89; font-size: .72rem; font-weight: 650; }.worker-tools .search-box { flex: 1; }.worker-tools input, .worker-tools select { min-height: 41px; padding: 0 12px; border: 1px solid #dfe2e7; border-radius: 10px; outline: none; background: white; color: #252b37; }.worker-tools input:focus, .worker-tools select:focus { border-color: #7984af; box-shadow: 0 0 0 3px #7984af18; }.workers-table td strong, .workers-table td small { display: block; }.workers-table td strong { font-size: .87rem; }.workers-table td small { margin-top: 3px; color: #858d99; font-size: .74rem; }.workers-empty { padding: 48px 20px; color: #737b88; text-align: center; }
@media (max-width: 720px) { .app-nav { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 18px; }.app-nav nav { width: 100%; }.app-nav nav a { flex: 1; text-align: center; }.workers-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }.worker-tools { align-items: stretch; flex-direction: column; }.workers-head .primary-link { margin-top: 16px; } }

/* Expedientes visuales en gestión de trabajadores. */
.workers-panel { padding: 20px; background: #f9fafb; }.workers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.worker-card { overflow: hidden; border: 1px solid #e1e4e9; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px #10182808; }.worker-card > header { display: flex; align-items: center; gap: 12px; padding: 17px 18px 14px; }.worker-avatar { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 13px; background: #252b3a; color: white; font-size: .78rem; font-weight: 750; }.worker-identity { flex: 1; min-width: 0; }.worker-identity h2 { margin: 0; color: #1a202c; font-size: .98rem; letter-spacing: -.02em; }.worker-identity p { margin: 4px 0 0; color: #7a8290; font-size: .77rem; }.worker-attention { margin: 0 18px 14px; padding: 10px 12px; border-left: 3px solid #d8dce3; border-radius: 0 9px 9px 0; background: #f6f7f9; }.worker-attention p { margin: 0; color: #5d6572; font-size: .78rem; line-height: 1.45; }.worker-attention p + p { margin-top: 3px; }.worker-attention.danger { border-color: #c66a73; background: #fbf4f5; }.worker-attention.warning { border-color: #b89355; background: #faf7f1; }.worker-attention.clear { border-color: #6d9988; background: #f2f7f5; }.worker-card-meta { padding: 9px 18px; border-top: 1px solid #eceef1; border-bottom: 1px solid #eceef1; background: #fafbfc; color: #737b88; font-size: .72rem; font-weight: 650; }.worker-documents { padding: 5px 10px 10px; }.worker-document { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 8px; border: 0; border-bottom: 1px solid #eff0f3; border-radius: 8px; background: transparent; color: inherit; text-align: left; cursor: pointer; }.worker-document:last-child { border-bottom: 0; }.worker-document:hover { background: #f5f6f8; }.worker-document-icon { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 9px; background: #f0f1f5; color: #66718e; }.worker-document-icon svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.worker-document-copy { flex: 1; min-width: 0; }.worker-document-copy strong, .worker-document-copy small { display: block; }.worker-document-copy strong { color: #242a35; font-size: .8rem; }.worker-document-copy small { margin-top: 3px; overflow: hidden; color: #848b97; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }.worker-document .badge { font-size: .68rem; }.workers-empty { border: 1px dashed #d9dce2; border-radius: 14px; background: white; }
#worker-document-dialog .detail-body { grid-template-columns: minmax(340px, 42%) minmax(0, 1fr); }#worker-document-dialog .detail-content { padding-top: 18px; }#worker-document-dialog .preview-head a { margin-left: auto; }
@media (max-width: 880px) { .workers-grid { grid-template-columns: 1fr; } }

/* Expedientes compactos: el detalle vive en un panel lateral. */
.workers-grid { display: block; overflow: hidden; border: 1px solid #e2e5ea; border-radius: 15px; background: #fff; }
.worker-list-row { display: grid; grid-template-columns: minmax(230px, 1.35fr) 82px minmax(190px, 1fr) auto 22px; align-items: center; gap: 18px; width: 100%; padding: 14px 17px; border: 0; border-bottom: 1px solid #eceef2; background: #fff; color: inherit; text-align: left; cursor: pointer; transition: background .15s ease; }
.worker-list-row:last-child { border-bottom: 0; }
.worker-list-row:hover { background: #f8f9fb; }
.worker-list-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.worker-list-row .worker-avatar { flex-basis: 38px; height: 38px; border-radius: 11px; }
.worker-list-row .worker-identity h2 { overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.worker-list-count strong, .worker-list-count small { display: block; }
.worker-list-count strong { color: #232936; font-size: .9rem; }
.worker-list-count small, .worker-list-summary { color: #7b8492; font-size: .72rem; }
.worker-list-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.worker-list-arrow { color: #9299a5; font-size: 1.55rem; line-height: 1; }
.worker-drawer-layer { position: fixed; z-index: 80; inset: 0; }
.worker-drawer-layer[hidden] { display: none; }
.worker-drawer-backdrop { position: absolute; inset: 0; border: 0; background: rgb(20 25 35 / 28%); opacity: 0; backdrop-filter: blur(2px); transition: opacity .18s ease; }
.worker-drawer { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; width: min(480px, 100%); height: 100%; overflow-y: auto; background: #fff; box-shadow: -18px 0 45px rgb(22 28 40 / 14%); transform: translateX(100%); transition: transform .18s ease; }
.worker-drawer-layer.open .worker-drawer-backdrop { opacity: 1; }
.worker-drawer-layer.open .worker-drawer { transform: translateX(0); }
.worker-drawer-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid #e9ebef; background: rgb(255 255 255 / 96%); backdrop-filter: blur(10px); }
.worker-drawer-head .worker-identity small { color: #8a92a0; font-size: .63rem; font-weight: 750; letter-spacing: .08em; }
.worker-drawer-head .worker-identity h2 { margin-top: 3px; font-size: 1rem; }
.worker-drawer-close { align-self: flex-start; padding: 4px 8px; border: 0; background: transparent; color: #737c89; font-size: 1.55rem; cursor: pointer; }
.worker-drawer-summary { padding: 16px 20px 4px; }
.worker-drawer-summary p { margin: 0; padding: 11px 13px; border-radius: 11px; background: #f4f6f8; color: #5f6875; font-size: .78rem; }
.worker-drawer-summary p.danger { background: #fbf0f1; color: #a6424d; }
.worker-drawer-summary p.warning { background: #faf5ea; color: #866629; }
.worker-drawer-summary p.clear { background: #f1f7f4; color: #39745e; }
.worker-focus-alert { position: relative; padding: 15px 16px 16px; overflow: hidden; border: 1px solid #efcdd1; border-radius: 14px; background: linear-gradient(135deg, #fff8f8, #fdf0f1); }.worker-focus-alert::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: #cf3f4c; content: ""; }.worker-focus-alert.proximo_vencer { border-color: #eadcc3; background: linear-gradient(135deg, #fffaf1, #faf4e8); }.worker-focus-alert.proximo_vencer::before { background: #c78c32; }.worker-focus-alert.revision { border-color: #ddd9e9; background: linear-gradient(135deg, #faf9fd, #f3f1f8); }.worker-focus-alert.revision::before { background: #77679a; }
.worker-focus-alert .worker-focus-kicker { display: block; margin-bottom: 6px; color: #b62f3b; font-size: .61rem; font-weight: 800; letter-spacing: .09em; }.worker-focus-alert.proximo_vencer .worker-focus-kicker { color: #94702f; }.worker-focus-alert.revision .worker-focus-kicker { color: #665487; }.worker-focus-alert strong { display: block; color: #282d38; font-size: .93rem; }.worker-focus-alert p { margin: 5px 0 13px; padding: 0; background: transparent; color: #68707d; font-size: .75rem; line-height: 1.45; }.worker-focus-alert .primary-action { width: 100%; padding: 9px 12px; }
.worker-drawer-section-head { display: flex; justify-content: space-between; padding: 18px 20px 7px; color: #242a35; font-size: .8rem; }
.worker-drawer-section-head span { color: #8a919d; font-size: .7rem; }
.worker-drawer .worker-documents { padding: 0 12px 20px; }
.worker-files-head > div { display: flex; align-items: center; gap: 7px; }
.worker-folder-back { display: grid; place-items: center; width: 25px; height: 25px; padding: 0; border: 1px solid #e2e5ea; border-radius: 7px; background: #fff; color: #697280; cursor: pointer; }
.worker-folder-back:hover { border-color: #cfd4dc; background: #f7f8fa; color: #252b36; }
.worker-folder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 3px 20px 24px !important; }
.worker-folder-card { display: flex; min-width: 0; min-height: 116px; padding: 15px; border: 1px solid #e4e7ec; border-radius: 14px; background: #fff; color: inherit; text-align: left; box-shadow: 0 1px 2px rgb(16 24 40 / 3%); cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.worker-folder-card:hover { border-color: #ccd2dc; box-shadow: 0 8px 20px rgb(24 32 48 / 7%); transform: translateY(-1px); }
.worker-folder-icon { display: grid; place-items: center; flex: 0 0 37px; height: 37px; margin-right: 11px; border-radius: 10px; background: #f3f5f8; color: #5d6880; }
.worker-folder-icon svg, .worker-folder-empty svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.worker-folder-copy { display: flex; min-width: 0; flex-direction: column; }
.worker-folder-copy strong { color: #252b36; font-size: .82rem; }
.worker-folder-copy small { margin-top: 3px; color: #8a919c; font-size: .67rem; line-height: 1.35; }
.worker-folder-meta { margin-top: auto; padding-top: 12px; color: #667080; font-size: .66rem; font-weight: 650; }
.worker-folder-files { margin: 0 20px 24px; padding: 3px 7px 7px !important; border: 1px solid #e5e8ed; border-radius: 13px; background: #fff; }
.worker-folder-empty { display: grid; min-height: 160px; place-items: center; align-content: center; gap: 6px; color: #8b93a0; text-align: center; }
.worker-folder-empty svg { width: 28px; margin-bottom: 3px; }
.worker-folder-empty strong { color: #515966; font-size: .78rem; }
.worker-folder-empty span { font-size: .68rem; }
.worker-folder-upload { display: grid; width: calc(100% - 8px); min-height: 105px; margin: 9px 4px 4px; padding: 15px; place-items: center; align-content: center; gap: 4px; border: 1px dashed #cfd5df; border-radius: 11px; background: #fafbfc; color: #687386; font: inherit; text-align: center; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.worker-folder-upload:hover, .worker-folder-upload.dragging { border-color: #7f8dab; background: #f3f6fa; transform: translateY(-1px); }.worker-folder-upload > span { display: grid; width: 34px; height: 34px; margin-bottom: 3px; place-items: center; border-radius: 9px; background: #eef2f7; color: #53627e; }.worker-folder-upload svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.worker-folder-upload strong { color: #343b48; font-size: .75rem; }.worker-folder-upload small { color: #89919e; font-size: .65rem; }
.worker-upload-dialog { width: min(680px, calc(100% - 28px)); padding: 0; overflow: hidden; border: 1px solid #e1e5eb; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgb(20 26 38 / 24%); }.worker-upload-dialog::backdrop { background: rgb(25 30 40 / 48%); backdrop-filter: blur(4px); }.worker-upload-dialog header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #e8ebef; }.worker-upload-dialog header small { color: #8490a1; font-size: .62rem; font-weight: 800; letter-spacing: .09em; }.worker-upload-dialog h2 { margin: 3px 0 0; color: #252b37; font-size: 1rem; }.worker-upload-dialog header button { border: 0; background: transparent; color: #737d8b; font-size: 1.35rem; cursor: pointer; }.worker-upload-preview { height: 310px; padding: 14px; background: #f2f4f7; }.worker-upload-preview > div, .worker-upload-preview iframe, .worker-upload-preview img { width: 100%; height: 100%; }.worker-upload-preview iframe { border: 0; background: #fff; }.worker-upload-preview img { object-fit: contain; }.worker-upload-info { display: grid; grid-template-columns: auto 1fr auto; gap: 3px 10px; padding: 16px 20px; }.worker-upload-info > span { grid-row: 1 / 3; align-self: center; padding: 5px 8px; border-radius: 7px; background: #eef2f6; color: #56647b; font-size: .65rem; font-weight: 750; }.worker-upload-info strong { overflow: hidden; color: #2a303c; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }.worker-upload-info small { color: #89919e; font-size: .67rem; }.worker-upload-info p { grid-column: 1 / -1; margin: 8px 0 0; color: #6d7684; font-size: .72rem; line-height: 1.45; }.worker-upload-info .form-error { color: #9b2929; }.worker-upload-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid #e8ebef; background: #fafbfc; }.worker-upload-dialog footer .secondary { padding: 9px 13px; border: 1px solid #d7dce4; border-radius: 9px; background: #fff; color: #535d6c; cursor: pointer; }
@media (max-width: 560px) { .worker-upload-preview { height: 240px; }.worker-upload-info { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }.worker-upload-info small { grid-column: 2; }.worker-upload-dialog footer { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 14px; }.worker-upload-dialog footer button { width: 100%; } }
.worker-upload-suggestion { margin: 0 20px 18px; padding: 14px; border: 1px solid #dce2ec; border-radius: 12px; background: #f6f8fb; }.worker-upload-suggestion > small { color: #667795; font-size: .6rem; font-weight: 800; letter-spacing: .08em; }.worker-upload-suggestion > strong { display: block; margin-top: 5px; color: #29313e; font-size: .86rem; }.worker-upload-suggestion > p { margin: 5px 0 12px; color: #6c7685; font-size: .72rem; }.worker-upload-suggestion > div { display: flex; justify-content: flex-end; gap: 8px; }.worker-upload-suggestion .secondary { padding: 9px 12px; border: 1px solid #d6dce5; border-radius: 9px; background: #fff; color: #505b6b; cursor: pointer; }
@media (max-width: 560px) { .worker-upload-suggestion { margin: 0 14px 14px; }.worker-upload-suggestion > div { display: grid; grid-template-columns: 1fr; }.worker-upload-suggestion button { width: 100%; } }

/* Jerarquía visual dentro de una carpeta del expediente. */
.worker-folder-files { display: grid; gap: 18px; padding: 0 !important; border: 0; background: transparent; }
.worker-folder-saved, .worker-folder-add { overflow: hidden; border: 1px solid #e3e7ed; border-radius: 14px; background: #fff; box-shadow: 0 3px 12px rgb(24 32 48 / 4%); }
.worker-folder-saved-head, .worker-folder-add-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid #edf0f3; background: #f8f9fb; }
.worker-folder-saved-head span, .worker-folder-add-head span { color: #687386; font-size: .59rem; font-weight: 800; letter-spacing: .09em; }
.worker-folder-saved-head small, .worker-folder-add-head small { color: #969da8; font-size: .62rem; }
.worker-folder-saved .worker-document { margin: 0; padding: 13px 12px; border-radius: 0; background: #fff; }.worker-folder-saved .worker-document:hover { background: #f7f8fa; }.worker-folder-saved .worker-document-icon { background: #eef1f5; color: #596780; }
.worker-folder-saved .worker-folder-empty { min-height: 120px; }
.worker-folder-add { border-style: solid; box-shadow: none; }.worker-folder-add-head { border-bottom: 0; background: #fff; }.worker-folder-add .worker-folder-upload { width: calc(100% - 20px); min-height: 92px; margin: 0 10px 10px; padding: 12px; border-color: #d5dae3; background: #fafbfc; }.worker-folder-add .worker-folder-upload > span { width: 30px; height: 30px; }.worker-folder-add .worker-folder-upload:hover, .worker-folder-add .worker-folder-upload.dragging { border-color: #8290aa; background: #f2f5f9; }
.worker-selection-bar { min-height: 34px; margin: 2px 20px 10px; padding: 4px 1px; border: 0; border-radius: 0; background: transparent; color: #747d8b; }.worker-selection-bar .danger-action { padding: 5px 8px; border-color: transparent; background: transparent; }.worker-selection-bar .danger-action:not(:disabled) { border-color: #ebcdd1; background: #fff; }
@media (max-width: 560px) { .worker-folder-files { gap: 14px; }.worker-folder-saved-head, .worker-folder-add-head { padding: 9px 11px; }.worker-folder-add-head small { display: none; }.worker-selection-bar { margin-right: 12px; margin-left: 12px; } }
.worker-version-history { margin: 7px 4px 2px; border-top: 1px solid #eceef2; }
.worker-version-history > summary { display: flex; align-items: center; gap: 9px; padding: 12px 8px 9px; color: #747d8a; list-style: none; cursor: pointer; }
.worker-version-history > summary::-webkit-details-marker { display: none; }
.worker-version-history > summary::after { margin-left: auto; content: '›'; color: #98a0ab; font-size: 1.1rem; transform: rotate(90deg); transition: transform .16s ease; }
.worker-version-history[open] > summary::after { transform: rotate(-90deg); }
.worker-version-history > summary span:not(.history-clock) { display: flex; min-width: 0; flex-direction: column; }
.worker-version-history > summary strong { color: #626b78; font-size: .72rem; font-weight: 690; }
.worker-version-history > summary small { margin-top: 2px; color: #959ca6; font-size: .64rem; }
.history-clock { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #f1f3f6; color: #7d8795; font-size: .84rem; }
.worker-version-history-rows { padding: 0 3px 4px 14px; border-left: 1px solid #e5e8ed; }
.worker-document.historical { opacity: .68; }
.worker-document.historical:hover, .worker-document.historical:focus-visible { opacity: 1; }
.worker-document.historical .worker-document-icon { background: #f5f6f8; color: #89919d; }
.document-version-section { opacity: .9; }
.document-version-section .detail-grid { background: #fafbfc; }
.document-version-section .detail-field { background: #fafbfc; }
.worker-compliance { margin: 0 20px 4px; overflow: hidden; border: 1px solid #e5e8ed; border-radius: 12px; }
.worker-requirement { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 13px; border-bottom: 1px solid #eceef2; }
.worker-requirement.critical { background: #fffafa; }.worker-requirement.critical .badge { background: #fde7e9; color: #b92f3c; }.worker-requirement.targeted { position: relative; background: #fff4f5; }.worker-requirement.targeted::before { position: absolute; inset: 7px auto 7px 0; width: 3px; border-radius: 3px; background: #cf3f4c; content: ""; }
.worker-requirement:last-child { border-bottom: 0; }
.worker-requirement strong, .worker-requirement small { display: block; }
.worker-requirement strong { color: #252b36; font-size: .79rem; }
.worker-requirement small { margin-top: 3px; color: #858d99; font-size: .68rem; }
.drawer-open { overflow: hidden; }
.detail-warning.informational { border-color: #dce2e9; background: #f5f7f9; color: #596575; }
@media (max-width: 1100px) {
  .worker-list-row { grid-template-columns: minmax(0, 1fr) auto 18px; gap: 10px; }
  .worker-list-count, .worker-list-summary { display: none; }
}
@media (max-width: 760px) { #worker-document-dialog .detail-body { display: block; }#worker-document-dialog .preview-panel { height: 42%; }#worker-document-dialog .detail-content { height: 58%; } }
@media (max-width: 680px) {
  .workers-head { display: grid; gap: 17px; }.workers-head .head-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }.workers-head .head-actions button, .workers-head .head-actions a { justify-content: center; width: 100%; margin: 0; }
  .workers-panel { padding: 13px; }.worker-tools { gap: 9px; }.worker-tools input, .worker-tools select { width: 100%; }
  .worker-list-row { grid-template-columns: minmax(0, 1fr) auto 14px; padding: 13px 11px; }.worker-list-row .worker-avatar { flex-basis: 35px; height: 35px; }.worker-list-row .worker-identity h2 { font-size: .83rem; }.worker-list-row .worker-identity p { overflow-wrap: anywhere; font-size: .68rem; }
  .worker-drawer { width: 100%; }.worker-drawer-head { padding: 16px 15px; }.worker-drawer-summary { padding: 13px 14px 3px; }.worker-drawer-actions { display: grid; grid-template-columns: 1fr 1.25fr; padding: 11px 14px 0; }.worker-drawer-actions button { width: 100%; padding-right: 8px; padding-left: 8px; }
  .worker-drawer-section-head { padding: 17px 14px 7px; }.worker-compliance { margin-right: 14px; margin-left: 14px; }.worker-drawer .worker-documents { padding-right: 7px; padding-left: 7px; }.worker-folder-grid { padding-right: 14px !important; padding-left: 14px !important; }.worker-folder-files { margin-right: 14px; margin-left: 14px; }
}
@media (max-width: 390px) { .workers-head .head-actions, .worker-drawer-actions { grid-template-columns: 1fr; }.workers-stats article { padding: 14px; }.worker-document .badge { max-width: 92px; text-align: center; }.worker-folder-grid { grid-template-columns: 1fr; }.worker-folder-card { min-height: 98px; } }

/* Revisión humana persistente. */
.review-section { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 17px 18px; border: 1px solid #dfe3ea; border-radius: 14px; background: #f8f9fb; }
.review-section strong { display: block; color: #202634; }.review-section p { max-width: 600px; margin: 4px 0 0; color: #687180; font-size: .82rem; line-height: 1.45; }
.review-actions { display: flex; flex: 0 0 auto; gap: 8px; }.review-actions button, .review-form button { padding: 9px 12px; border: 1px solid #202536; border-radius: 9px; background: #202536; color: white; font-weight: 650; cursor: pointer; }
.review-actions button.secondary { border-color: #d6dae2; background: white; color: #414958; }
.review-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; padding: 18px; border: 1px solid #e1e4ea; border-radius: 14px; background: white; }
.review-form label { color: #6f7785; font-size: .76rem; text-transform: capitalize; }.review-form label.wide { grid-column: 1 / -1; }
.review-form input, .review-form select { display: block; width: 100%; margin-top: 5px; padding: 9px 10px; border: 1px solid #d8dce4; border-radius: 8px; background: #fff; color: #1d2430; }
.review-form > button { grid-column: 1 / -1; justify-self: end; }
@media (max-width: 680px) { .review-section { align-items: stretch; flex-direction: column; }.review-actions { flex-wrap: wrap; }.review-form { grid-template-columns: 1fr; }.review-form label.wide { grid-column: 1; } }

/* Gestión operativa de trabajadores y vencimientos. */
.head-actions, .worker-drawer-actions { display: flex; align-items: center; gap: 9px; }
.primary-action { padding: 10px 14px; border: 1px solid #202536; border-radius: 9px; background: #202536; color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.primary-action:disabled { opacity: .55; cursor: wait; }
.worker-drawer-actions { padding: 12px 20px 0; }
.small-dialog { width: min(520px, calc(100% - 28px)); }
.small-dialog .form-body { display: grid; gap: 14px; padding: 20px; }
.small-dialog label { display: grid; gap: 6px; color: #687180; font-size: .78rem; font-weight: 650; }
.small-dialog input, .small-dialog select { min-height: 42px; padding: 0 11px; border: 1px solid #d9dde4; border-radius: 9px; background: #fff; color: #222936; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fff0f0; color: #9b2929; font-size: .8rem; }
.expiration-list { overflow: hidden; border: 1px solid #e2e5ea; border-radius: 14px; }
.expiration-row { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) auto; align-items: center; gap: 18px; padding: 15px 17px; border-bottom: 1px solid #eceef2; background: #fff; }
.expiration-row:last-child { border-bottom: 0; }
.expiration-row strong, .expiration-row small { display: block; }
.expiration-row strong { color: #242a35; font-size: .86rem; }
.expiration-row small { margin-top: 4px; color: #818996; font-size: .73rem; }
@media (max-width: 650px) { .expiration-row { grid-template-columns: 1fr auto; }.expiration-row > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }.head-actions { align-items: stretch; flex-direction: column; } }

/* Estructura de panel privado. */
.app-shell { --sidebar-width: 258px; min-height: 100vh; background: #f5f6f8; color: #202532; font-size: 16px; }
.app-sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; display: flex; width: var(--sidebar-width); flex-direction: column; padding: 16px 13px; border-right: 1px solid #e3e6eb; background: #fff; transition: width .22s ease, transform .22s ease; }
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 4px 0 3px; }
.sidebar-brand .brand { min-width: 0; }
.sidebar-brand .brand > span:first-child { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; }
.sidebar-brand .brand .nav-label { display: flex; min-width: 0; flex-direction: column; }
.sidebar-brand .brand > .nav-label { width: auto; height: auto; border-radius: 0; background: transparent; color: #202532; place-items: initial; }
.sidebar-brand .brand strong { font-size: .9rem; }
.sidebar-brand .brand small { margin-top: 2px; color: #969daa; font-size: .71rem; font-weight: 500; }
#sidebar-collapse, #sidebar-open { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: #7a8290; cursor: pointer; }
#sidebar-collapse:hover, #sidebar-open:hover { background: #f1f3f6; color: #252b37; }
#sidebar-collapse svg, #sidebar-open svg, .app-sidebar svg, .upload-card svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-nav { display: flex; flex: 1; flex-direction: column; gap: 5px; margin-top: 28px; }
.nav-section { margin: 17px 11px 6px; color: #a0a6b1; font-size: .66rem; font-weight: 800; letter-spacing: .11em; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 12px; border-radius: 10px; color: #69717f; font-size: .86rem; font-weight: 620; text-decoration: none; transition: background .15s ease, color .15s ease, transform .15s ease; }
.sidebar-nav a:hover { background: #f4f5f7; color: #242a36; transform: translateX(2px); }
.sidebar-nav a.active { background: #252b3a; color: #fff; box-shadow: 0 5px 14px rgb(32 37 52 / 13%); }
.sidebar-nav a svg { flex: 0 0 19px; }
.sidebar-account { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 9px 10px; border: 1px solid #e6e8ed; border-radius: 12px; background: #fafbfc; }
.account-icon { display: grid; place-items: center; flex: 0 0 31px; height: 31px; border-radius: 9px; background: #eef1f5; color: #5c6575; }
.account-icon svg { width: 17px; }
.sidebar-account .nav-label { display: flex; min-width: 0; flex-direction: column; }
.sidebar-account strong { font-size: .78rem; }.sidebar-account small { margin-top: 2px; color: #8a919d; font-size: .68rem; }
.sidebar-account .account-copy { min-width: 0; }.sidebar-account .account-copy strong, .sidebar-account .account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.sidebar-account .account-copy a { margin-top: 6px; color: #6c7584; font-size: .66rem; font-weight: 650; text-decoration: none; }.sidebar-account .account-copy a:hover { color: #242b38; }
.shell-content { min-height: 100vh; margin-left: var(--sidebar-width); transition: margin-left .22s ease; }
.shell-content main { width: min(1180px, calc(100% - 56px)); margin: 0 auto; padding: 48px 0 76px; }
.mobile-bar { display: none; }
.sidebar-backdrop { position: fixed; z-index: 45; inset: 0; background: rgb(22 27 38 / 35%); backdrop-filter: blur(2px); }
.sidebar-collapsed { --sidebar-width: 78px; }
.sidebar-collapsed .app-sidebar { align-items: stretch; }
.sidebar-collapsed .nav-label { display: none !important; }
.sidebar-collapsed .sidebar-brand { justify-content: center; padding: 0; }
.sidebar-collapsed .sidebar-brand .brand > span:first-child { margin: 0; }
.sidebar-collapsed #sidebar-collapse { position: absolute; top: 64px; left: 22px; transform: rotate(180deg); }
.sidebar-collapsed .sidebar-nav { margin-top: 61px; }
.sidebar-collapsed .sidebar-nav a { justify-content: center; padding: 0; }
.sidebar-collapsed .sidebar-nav a:hover { transform: none; }
.sidebar-collapsed .sidebar-account { justify-content: center; padding: 8px; }

/* Centro de importación. */
.eyebrow { margin: 0 0 9px; color: #6e7787; font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.upload-head { align-items: flex-end; }
.upload-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.upload-card { padding: 0; overflow: hidden; border-radius: 18px; }
.upload-card-head { display: flex; align-items: center; gap: 13px; padding: 20px 22px; border-bottom: 1px solid #e8eaee; }
.upload-card-head h2 { margin: 0 0 3px; font-size: 1rem; }.upload-card-head p { margin: 0; color: #77808e; font-size: .82rem; }
.upload-card-icon { display: grid; place-items: center; flex: 0 0 39px; height: 39px; border-radius: 11px; background: #eef1f7; color: #4f5e82; }
.privacy-chip { margin-left: auto; padding: 6px 9px; border-radius: 99px; background: #eef6f2; color: #39705b; font-size: .7rem; font-weight: 700; }
.professional-drop { min-height: 300px; margin: 22px; border: 1.5px dashed #cbd1db; border-radius: 14px; background: #fafbfc; }
.professional-drop:hover, .professional-drop.dragging { border-color: #6574a6; background: #f7f8fc; }
.drop-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 0 15px !important; border-radius: 15px; background: #eef1f8; color: #536394 !important; }
.drop-icon svg { width: 27px; stroke: currentColor; }
.professional-drop strong { margin: 0; color: #232936; font-size: 1rem; }.professional-drop > span:not(.drop-icon) { font-size: .82rem; }
.professional-drop .load-actions button { min-height: 42px; border-color: #252b3a; border-radius: 9px; background: #252b3a; }
.professional-drop .load-actions .secondary { border-color: #d3d8e0; background: #fff; }
.processing-card { border-radius: 18px; }
.queue-actions { display: flex; align-items: center; gap: 10px; }.queue-actions .secondary { padding: 7px 10px; font-size: .75rem; }
.processing-card.complete:not(.expanded) .table-wrap { display: none; }
.processing-card.complete .progress { height: 4px; margin-bottom: 14px; }
.processing-card { margin-top: 22px; padding: 0; overflow: hidden; border: 1px solid #e2e6ec; background: #fff; }
.processing-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 23px; padding: 25px 27px 21px; background: linear-gradient(135deg, #fff 0%, #fafbfe 100%); }
.progress-ring { position: relative; display: grid; width: 112px; height: 112px; place-items: center; border-radius: 50%; background: conic-gradient(#344a82 calc(var(--progress) * 1%), #e9ecf2 0); transition: background .25s ease; }
.progress-ring::before { position: absolute; width: 88px; height: 88px; border-radius: 50%; background: #fff; content: ''; }
.progress-ring > div { position: relative; z-index: 1; display: grid; justify-items: center; }
.progress-ring strong { color: #242b39; font-size: 1.35rem; letter-spacing: -.04em; }.progress-ring span { margin-top: 1px; color: #89909b; font-size: .61rem; text-transform: uppercase; }
.processing-copy h2 { margin: 2px 0 6px; color: #242a36; font-size: 1.2rem; }.processing-copy > p:not(.eyebrow) { margin: 0; color: #727b89; font-size: .81rem; }
.processing-metrics { display: flex; gap: 7px; margin-top: 13px; }.processing-metrics span { padding: 6px 9px; border-radius: 99px; background: #f0f2f6; color: #596474; font-size: .68rem; font-weight: 650; }
.processing-card > .progress { height: 4px; margin: 0; border-radius: 0; }.processing-card > .summary { margin: 18px 24px 4px; }
.processing-card .table-wrap { margin: 15px 24px 24px; overflow: auto; border: 1px solid #e6e9ee; border-radius: 12px; }
.processing-card table { min-width: 880px; }.processing-card thead { background: #f8f9fb; }.processing-card tbody tr:hover { background: #fafbfc; }
.processing-card.complete:not(.expanded) .table-wrap { display: none; }.processing-card:not(.complete) .queue-actions #queue-toggle { display: none; }
.selection-bar { display: flex; align-items: center; gap: 12px; margin: 14px 24px 0; padding: 10px 12px; border: 1px solid #dfe4ec; border-radius: 10px; background: #f7f8fb; color: #444e5e; font-size: .74rem; }.selection-bar[hidden] { display: none; }.selection-bar strong { margin-right: auto; }
.danger-action { padding: 7px 10px; border: 1px solid #e2bdc1; border-radius: 8px; background: #fff; color: #a13d47; font-size: .7rem; font-weight: 700; cursor: pointer; }.danger-action:hover { background: #fbebed; }
.check-column { width: 36px; text-align: center; }.check-column input, .worker-document-check, .selection-bar input { width: 15px; height: 15px; accent-color: #344a82; cursor: pointer; }
.processing-card td:last-child { display: flex; align-items: center; gap: 4px; }.icon-danger { display: grid; width: 27px; height: 27px; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #9b6570; font-size: 1.1rem; cursor: pointer; }.icon-danger:hover { background: #fae9eb; color: #a72e3a; }
.worker-selection-bar { margin: 3px 20px 9px; }.worker-selection-bar label { display: flex; align-items: center; gap: 6px; }.worker-document-check { flex: 0 0 auto; }.worker-document-delete { display: grid; flex: 0 0 25px; height: 25px; place-items: center; border-radius: 7px; color: #a17a80; font-size: 1.05rem; }.worker-document-delete:hover { background: #fae9eb; color: #a72e3a; }
.expiration-empty-state { display: grid; justify-items: center; padding: 52px 24px; color: #747d8a; text-align: center; }
.expiration-empty-state > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 13px; border-radius: 50%; background: #eaf4ef; color: #39755e; font-size: 1rem; font-weight: 800; }
.expiration-empty-state strong { color: #29303b; font-size: .92rem; }.expiration-empty-state p { max-width: 430px; margin: 6px 0 0; font-size: .8rem; line-height: 1.5; }
.expiration-empty-state.error { color: #9b2929; }

@media (max-width: 840px) {
  .app-shell { --sidebar-width: 0px; }
  .app-sidebar { width: 265px; transform: translateX(-100%); box-shadow: 18px 0 40px rgb(20 26 38 / 16%); }
  .sidebar-mobile-open .app-sidebar { transform: translateX(0); }
  .sidebar-collapsed .nav-label { display: flex !important; }
  .sidebar-collapsed .sidebar-brand { justify-content: space-between; }.sidebar-collapsed #sidebar-collapse { position: static; transform: none; }
  .sidebar-collapsed .sidebar-nav { margin-top: 28px; }.sidebar-collapsed .sidebar-nav a { justify-content: flex-start; padding: 0 12px; }
  .mobile-bar { position: sticky; z-index: 35; top: 0; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; border-bottom: 1px solid #e4e7eb; background: rgb(255 255 255 / 94%); backdrop-filter: blur(12px); }
  .mobile-bar > span:nth-child(2) { flex: 1; font-size: .86rem; font-weight: 700; }.local-pill { padding: 4px 7px; border-radius: 99px; background: #eef1f4; color: #6f7784; font-size: .67rem; }
  .shell-content main { width: min(100% - 26px, 1180px); padding-top: 28px; }
  .professional-drop { min-height: 250px; margin: 15px; }.upload-card-head { padding: 17px; }.privacy-chip { display: none; }
  .processing-hero { grid-template-columns: auto 1fr; padding: 20px; }.processing-hero .queue-actions { grid-column: 1 / -1; }.progress-ring { width: 88px; height: 88px; }.progress-ring::before { width: 68px; height: 68px; }.progress-ring strong { font-size: 1.08rem; }
}
@media (max-width: 520px) { .processing-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }.processing-metrics { justify-content: center; flex-wrap: wrap; }.processing-hero .queue-actions { justify-content: center; }.processing-card .table-wrap { margin-right: 12px; margin-left: 12px; }.selection-bar { margin-right: 12px; margin-left: 12px; }.worker-selection-bar { margin-right: 14px; margin-left: 14px; } }

/* Bandeja de revisión por excepción. */
.review-page-head { align-items: flex-end; }.review-total { padding: 8px 12px; border-radius: 99px; background: #eef1f6; color: #4e5a70; font-size: .75rem; font-weight: 750; }
.review-toolbar { display: flex; gap: 12px; margin-bottom: 18px; padding: 15px 18px; }.review-toolbar label { color: #727b88; font-size: .7rem; font-weight: 700; }.review-toolbar label:first-child { flex: 1; }.review-toolbar input, .review-toolbar select { display: block; width: 100%; min-width: 210px; margin-top: 5px; padding: 9px 10px; border: 1px solid #dce0e7; border-radius: 9px; background: #fff; color: #27303c; }
.review-queue { display: grid; gap: 16px; }.review-card { overflow: hidden; border: 1px solid #e1e5eb; border-radius: 18px; background: #fff; box-shadow: 0 7px 24px rgb(28 36 50 / 5%); }
.review-card-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #e9ecf0; }.review-card-head > div:nth-child(2) { min-width: 0; flex: 1; }.review-card-head small { color: #7e8795; font-size: .64rem; font-weight: 750; text-transform: uppercase; }.review-card-head h2 { margin: 3px 0 0; overflow: hidden; color: #252c38; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }.review-card-head p { margin: 3px 0 0; overflow: hidden; color: #8a929e; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.review-file-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 11px; background: #f0f2f6; color: #596781; }.review-file-icon svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.review-card-body { display: grid; grid-template-columns: minmax(280px, 38%) minmax(0, 1fr); min-height: 370px; }.review-mini-preview { min-height: 370px; border-right: 1px solid #e8ebef; background: #f2f3f5; }.review-mini-preview iframe, .review-mini-preview img { width: 100%; height: 100%; min-height: 370px; border: 0; object-fit: contain; }
.review-decision-form { display: flex; min-width: 0; flex-direction: column; gap: 13px; padding: 20px; }.review-decision-form label { color: #687281; font-size: .7rem; font-weight: 650; }.review-decision-form input, .review-decision-form select { display: block; width: 100%; margin-top: 5px; padding: 9px 10px; border: 1px solid #dce0e7; border-radius: 8px; background: #fff; color: #26303d; }.review-form-grid, .review-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }.review-decision-form details { padding: 10px 12px; border: 1px solid #e4e7ec; border-radius: 10px; background: #fafbfc; }.review-decision-form summary { color: #4e5867; font-size: .72rem; font-weight: 700; cursor: pointer; }.review-fields { margin-top: 12px; }.review-fields label { text-transform: capitalize; }
.review-decision-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; }.review-decision-actions button { padding: 9px 11px; border-radius: 8px; cursor: pointer; }.reject-action { border: 1px solid #ddd5c6; background: #fff; color: #7c6740; font-weight: 700; }.delete-review-action { border: 1px solid #ebcdd1; background: #fbf1f2; color: #a33b47; font-weight: 700; }.delete-review-action:hover { background: #f8e5e8; }.review-empty { display: grid; justify-items: center; padding: 60px 20px; text-align: center; }.review-empty > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: #e7f3ed; color: #34735a; font-weight: 800; }.review-empty h2 { margin: 13px 0 4px; }.review-empty p, .review-no-results { color: #747e8c; font-size: .8rem; }.review-no-results { text-align: center; }
.split-dialog { width: min(760px, calc(100% - 30px)); }.split-help { margin: 0; color: #687281; font-size: .78rem; }.split-group { display: grid; grid-template-columns: .7fr 1.3fr 1.2fr auto; align-items: end; gap: 9px; margin-bottom: 9px; padding: 11px; border: 1px solid #e3e6eb; border-radius: 10px; }.split-group button { width: 34px; height: 36px; border: 0; border-radius: 8px; background: #f7e9eb; color: #a33e48; cursor: pointer; }
@media (max-width: 1100px) {
  .review-card-body { display: block; min-height: 0; }
  .review-mini-preview { height: 420px; min-height: 0; border-right: 0; border-bottom: 1px solid #e8ebef; }
  .review-mini-preview iframe, .review-mini-preview img { height: 100%; min-height: 0; max-height: none; }
  .review-decision-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 7px; }
  .review-decision-actions button { min-height: 44px; white-space: normal; }
}
@media (max-width: 760px) {
  .review-page-head { align-items: flex-start; flex-direction: column; gap: 13px; }
  .review-toolbar { display: block; }
  .review-toolbar label + label { display: block; margin-top: 10px; }
  .review-toolbar input, .review-toolbar select { min-width: 0; }
  .review-mini-preview { height: 300px; }
  .review-form-grid, .review-fields, .split-group { grid-template-columns: 1fr; }
  .review-decision-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-decision-actions .primary-action { grid-column: 1 / -1; }
  .review-card-head { align-items: flex-start; flex-wrap: wrap; }
  .review-card-head .badge { margin-left: 51px; }
}
@media (max-width: 460px) {
  .review-card-head .badge { margin-left: 0; }
  .review-mini-preview { height: 250px; }
  .review-decision-form { padding: 15px; }
  .review-decision-actions { grid-template-columns: 1fr; }
  .review-decision-actions .primary-action { grid-column: 1; }
}

/* Panel de alertas operativas. */
.nav-count { display: grid; place-items: center; min-width: 24px; height: 24px; margin-left: auto; padding: 0 7px; border-radius: 99px; background: #d92d35; color: #fff; font-size: .7rem; font-weight: 800; box-shadow: 0 4px 10px rgb(217 45 53 / 24%); }
.nav-count[hidden], .sidebar-collapsed .nav-count { display: none; }
.alert-page-head { margin-bottom: 28px; animation: alert-enter .42s ease both; }
.alert-page-head .eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px; background: #eceff4; color: #535d6e; }
.alert-page-head .eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: #677595; box-shadow: 0 0 0 4px rgb(103 117 149 / 10%); }
.alert-title-row { display: flex; align-items: center; gap: 17px; }
.alert-title-row h1 { margin: 0 0 5px; font-size: clamp(2rem, 4vw, 2.7rem); }
.alert-title-row p { margin: 0; color: #737d8d; font-size: .96rem; }
.alert-title-icon { display: grid; place-items: center; flex: 0 0 58px; height: 58px; border-radius: 17px; background: linear-gradient(145deg, #eef0f5, #e5e8ef); color: #2f384a; box-shadow: inset 0 1px #fff, 0 8px 22px rgb(37 43 58 / 7%); }
.alert-title-icon svg, .metric-icon svg, .alert-filters svg, .modern-alert-row svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.expiration-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric-card { position: relative; display: flex; align-items: center; gap: 15px; min-height: 104px; padding: 18px 20px; overflow: hidden; border: 1px solid #e1e5eb; border-radius: 16px; background: linear-gradient(145deg, #fff, #fafbfc); box-shadow: 0 8px 24px rgb(27 39 58 / 5%); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; animation: alert-enter .42s ease both; }
.metric-card:nth-child(2) { animation-delay: .04s; }.metric-card:nth-child(3) { animation-delay: .08s; }.metric-card:nth-child(4) { animation-delay: .12s; }.metric-card:nth-child(5) { animation-delay: .16s; }
.metric-card:hover { transform: translateY(-3px); border-color: #d3d9e3; box-shadow: 0 14px 30px rgb(27 39 58 / 9%); }
.metric-card.danger::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: #d92d35; content: ""; }
.metric-icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 12px; background: #f1f3f6; color: #465165; }
.metric-card.danger .metric-icon { background: #fff0f1; color: #c72c35; }.metric-card.missing-card .metric-icon { background: #fff5e8; color: #a96513; }.metric-card.success-card .metric-icon { background: #edf7f2; color: #39765e; }
.metric-card > div > span, .metric-card strong { display: block; }.metric-card > div > span { color: #505968; font-size: .82rem; font-weight: 650; }.metric-card strong { margin-top: 2px; color: #171c27; font-size: 1.8rem; line-height: 1; letter-spacing: -.04em; }
.alerts-table-card { padding: 22px 24px 14px; border: 1px solid #dfe4ea; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgb(28 39 58 / 6%); animation: alert-enter .46s .08s ease both; }
.alerts-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.alerts-toolbar h2 { margin: 0; font-size: 1.25rem; }.alerts-toolbar > div:first-child p { margin: 4px 0 0; color: #8a929e; font-size: .73rem; }
.alert-filters { display: flex; gap: 10px; }
.alert-search, .alert-select { display: flex; align-items: center; min-height: 43px; border: 1px solid #dde1e7; border-radius: 11px; background: #fff; color: #667084; transition: border .15s, box-shadow .15s; }
.alert-search:focus-within, .alert-select:focus-within { border-color: #8b96b3; box-shadow: 0 0 0 3px rgb(99 113 151 / 10%); }
.alert-search { width: min(330px, 34vw); padding: 0 13px; }.alert-select { padding-left: 13px; }
.alert-filters svg { flex: 0 0 19px; width: 19px; }
.alert-search input, .alert-select select { height: 41px; border: 0; outline: 0; background: transparent; color: #27303d; font: inherit; font-size: .8rem; }
.alert-search input { width: 100%; padding: 0 9px; }.alert-select select { min-width: 190px; padding: 0 34px 0 10px; font-weight: 650; }
.alert-table-head, .modern-alert-row { display: grid; grid-template-columns: minmax(230px, 1.45fr) minmax(190px, 1fr) minmax(140px, .8fr) 120px 30px; align-items: center; gap: 15px; }
.alert-table-head { min-height: 42px; padding: 0 16px; border-radius: 9px; background: #f1f3f6; color: #687183; font-size: .72rem; font-weight: 750; }
.expiration-list.modern-list { overflow: visible; border: 0; border-radius: 0; }
.modern-alert-row { position: relative; min-height: 76px; padding: 10px 16px; border-bottom: 1px solid #eceff2; background: transparent; animation: alert-row-enter .35s calc(var(--row-index) * 35ms) ease both; transition: background .15s ease, transform .15s ease; }
.modern-alert-row::before { position: absolute; top: 13px; bottom: 13px; left: 0; width: 3px; border-radius: 3px; background: #aab2bf; opacity: .8; content: ""; }
.modern-alert-row.state-vencido::before { background: #d92d35; }.modern-alert-row.state-faltante::before { background: #d39331; }.modern-alert-row.state-proximo_vencer::before { background: #63799f; }.modern-alert-row.state-revision::before { background: #7b6c9f; }
.modern-alert-row:hover, .modern-alert-row:focus-visible { z-index: 2; border-radius: 10px; background: #f8f9fb; transform: translateX(3px); }.modern-alert-row { cursor: pointer; outline: none; }.modern-alert-row:focus-visible { box-shadow: 0 0 0 3px rgb(76 94 131 / 14%); }
.modern-alert-row > div { min-width: 0; }
.alert-person, .alert-document { display: flex; align-items: center; gap: 11px; min-width: 0; }
.alert-person > span:last-child, .alert-document > span:last-child { min-width: 0; }.alert-person strong, .alert-person small, .alert-document strong, .alert-document small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-person strong, .alert-document strong { color: #202631; font-size: .83rem; }.alert-person small, .alert-document small { margin-top: 3px; color: #7e8795; font-size: .71rem; }
.row-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 11px; background: #f0f2f5; color: #657084; }.row-icon.simple { background: transparent; }
.document-kind { display: grid; place-items: center; flex: 0 0 42px; height: 38px; border: 1px solid transparent; border-radius: 11px; font-size: .65rem; font-weight: 850; letter-spacing: .035em; }
.document-kind.kind-identity { border-color: #dbe5f6; background: #edf3fc; color: #365d9c; }.document-kind.kind-os10 { border-color: #e1dcf1; background: #f2effa; color: #67539a; }
.row-icon svg { width: 19px; }
.alert-date { display: flex; align-items: center; gap: 9px; color: #3b4453; }.alert-date svg { width: 19px; }.alert-date strong { font-size: .8rem; }.alert-date.danger-text { color: #c72c35; }
.alert-row-actions { position: relative; }.row-action { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #667083; font-size: 1rem; font-weight: 800; letter-spacing: 1px; cursor: pointer; }.row-action:hover { background: #e9edf2; color: #242b38; }
.alert-action-menu { position: absolute; z-index: 8; top: 34px; right: 0; display: none; width: 158px; padding: 6px; border: 1px solid #dfe3e9; border-radius: 11px; background: #fff; box-shadow: 0 14px 34px rgb(24 32 47 / 16%); }.alert-action-menu.open { display: grid; }.alert-action-menu a, .alert-action-menu button { padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: #303846; font: inherit; font-size: .76rem; font-weight: 650; text-align: left; text-decoration: none; cursor: pointer; }.alert-action-menu a:hover, .alert-action-menu button:hover { background: #f1f3f6; }
@keyframes alert-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes alert-row-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .alert-page-head, .metric-card, .alerts-table-card, .modern-alert-row { animation: none; }.metric-card, .modern-alert-row { transition: none; } }
@media (max-width: 1050px) { .expiration-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }.alert-table-head, .modern-alert-row { grid-template-columns: minmax(210px, 1.25fr) minmax(180px, 1fr) 125px 105px 28px; } }
@media (max-width: 1000px) {
  .alerts-toolbar { align-items: stretch; flex-direction: column; }
  .alert-filters { width: 100%; }.alert-search { flex: 1; width: auto; }.alert-select { flex: 0 0 220px; }.alert-select select { width: 100%; min-width: 0; }
  .alert-table-head { display: none; }
  .modern-alert-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 14px; min-height: 0; padding: 16px 12px; }
  .alert-person { grid-column: 1; grid-row: 1; }.alert-document { grid-column: 1; grid-row: 2; padding-left: 49px; }.alert-date { grid-column: 1; grid-row: 3; padding-left: 49px; }
  .modern-alert-row > div:nth-child(4) { grid-column: 2; grid-row: 1; align-self: center; }.alert-row-actions { grid-column: 2; grid-row: 2; align-self: center; }
  .alert-person strong, .alert-document strong, .alert-person small, .alert-document small { white-space: normal; overflow-wrap: anywhere; }
  .row-icon.simple { display: none; }
}
@media (max-width: 760px) { .alert-title-icon { display: none; }.alert-title-row p { font-size: .84rem; }.alerts-toolbar { align-items: stretch; flex-direction: column; }.alert-filters { flex-direction: column; }.alert-search { width: 100%; }.alert-select select { width: 100%; }.alert-table-head { display: none; }.modern-alert-row { grid-template-columns: 1fr auto; gap: 10px; padding: 15px 10px; }.alert-document, .alert-date { grid-column: 1; }.modern-alert-row > div:nth-child(4) { grid-column: 2; grid-row: 1; }.alert-row-actions { grid-column: 2; grid-row: 2; }.expiration-stats { gap: 9px; }.metric-card { min-height: 88px; padding: 14px; }.metric-card strong { font-size: 1.45rem; }.alerts-table-card { padding: 17px 14px; } }
@media (max-width: 520px) {
  .alert-page-head { margin-bottom: 20px; }.alert-page-head .eyebrow { font-size: .62rem; }.alert-title-row h1 { font-size: 1.75rem; line-height: 1.08; }.alert-title-row p { margin-top: 8px; line-height: 1.45; }
  .expiration-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }.metric-card { align-items: flex-start; flex-direction: column; gap: 9px; min-width: 0; }.metric-card > div { min-width: 0; }.metric-card > div > span { font-size: .72rem; line-height: 1.25; overflow-wrap: anywhere; }.metric-icon { flex-basis: 34px; width: 34px; height: 34px; }.metric-icon svg { width: 19px; }
  .alerts-table-card { margin-right: -2px; margin-left: -2px; border-radius: 15px; }.alerts-toolbar h2 { font-size: 1.08rem; }.alert-filters { gap: 8px; }.alert-select { flex-basis: auto; width: 100%; }
  .modern-alert-row { padding: 15px 7px; }.alert-document, .alert-date { padding-left: 0; }.alert-date { margin-top: 2px; }.modern-alert-row .badge { font-size: .66rem; }
}

/* Escena de acceso inspirada en la identidad corporativa. */
.login-page { position: relative; isolation: isolate; overflow: hidden; background: #eef2f8; }
.login-page::before { position: fixed; z-index: -3; inset: 0 auto 0 0; width: 46%; background: #1e2b45; clip-path: polygon(0 0, 92% 0, 69% 30%, 78% 55%, 61% 82%, 0 100%); content: ""; }
.login-page::after { position: fixed; z-index: -4; inset: 0; background: linear-gradient(145deg, #f8f9fc 0%, #edf1f8 58%, #dbe3f1 100%); content: ""; }
.login-visual { position: fixed; z-index: -1; left: clamp(30px, 6vw, 120px); top: 50%; width: min(27vw, 430px); transform: translateY(-47%); filter: drop-shadow(0 28px 30px rgb(5 15 35 / 28%)); }
.login-visual svg { display: block; width: 100%; height: auto; }
.login-compact { position: relative; width: min(520px, calc(100% - 40px)); margin-left: clamp(230px, 30vw, 520px); border-color: rgb(255 255 255 / 78%); border-radius: 25px; background: rgb(255 255 255 / 93%); box-shadow: 0 30px 75px rgb(31 47 77 / 19%); backdrop-filter: blur(14px); }
.login-compact-brand { min-height: 166px; border-bottom: 0; }
.login-compact-brand::after { bottom: 7px; width: 50px; height: 3px; background: #e6b416; }
.login-compact-brand img { width: 230px; height: 118px; }
.login-compact-content { padding: 23px 46px 38px; }
.login-compact-content h1 { font-size: 2.15rem; }
.login-compact-copy { max-width: 390px; margin-top: 12px; }
.login-compact-footer { padding: 18px 32px; background: rgb(248 249 252 / 78%); }
@media (max-width: 980px) {
  .login-page::before { width: 36%; opacity: .92; }
  .login-visual { left: 18px; width: 29vw; }
  .login-compact { margin-left: 20vw; }
}
@media (max-width: 760px) {
  .login-page { overflow: auto; padding: 22px; background: #edf1f7; }
  .login-page::before { width: 100%; height: 185px; clip-path: polygon(0 0, 100% 0, 100% 54%, 72% 100%, 0 78%); }
  .login-visual { display: none; }
  .login-compact { width: min(500px, 100%); min-height: 0; margin: 55px 0 20px; border: 1px solid rgb(255 255 255 / 80%); border-radius: 22px; box-shadow: 0 22px 55px rgb(27 40 65 / 18%); }
}
@media (max-width: 520px) {
  .login-page { padding: 15px; }
  .login-page::before { height: 150px; }
  .login-compact { min-height: 0; margin-top: 36px; border-radius: 19px; }
  .login-compact-brand { min-height: 139px; }
  .login-compact-brand img { width: 195px; height: 99px; }
  .login-compact-content { padding: 22px 24px 31px; }
  .login-compact-content h1 { font-size: 1.8rem; }
}

/* Variante compacta del acceso: una sola decisión, sin contenido promocional. */
.login-compact { width: min(470px, 100%); overflow: hidden; border: 1px solid #d9dee6; border-radius: 18px; background: #fff; box-shadow: 0 22px 55px rgb(30 39 56 / 10%); text-align: left; }
.login-compact-brand { position: relative; display: flex; align-items: center; justify-content: center; min-height: 150px; padding: 24px 32px; border-bottom: 1px solid #e5e8ec; }
.login-compact-brand::after { position: absolute; bottom: -1px; width: 42px; height: 2px; border-radius: 2px; background: #e1b51f; content: ""; }
.login-compact-brand img { width: 190px; height: 100px; object-fit: contain; object-position: center; }
.login-compact-brand span { color: #858d99; font-size: .67rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.login-compact-content { padding: 36px 32px 34px; text-align: center; }
.login-compact-content h1 { margin: 0; color: #202532; font-size: 2rem; line-height: 1.15; letter-spacing: -.04em; }
.login-compact-copy { max-width: 350px; margin: 13px auto 27px; color: #6d7684; font-size: .85rem; line-height: 1.6; }
.login-compact .login-primary-action { width: 100%; box-sizing: border-box; }
.login-security-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 17px 0 0; color: #7d8591; font-size: .69rem; }
.login-security-note svg { width: 15px; height: 15px; fill: none; stroke: #657060; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-compact-footer { display: flex; justify-content: center; padding: 16px 32px; border-top: 1px solid #e5e8ec; background: #fafbfc; color: #9299a4; font-size: .64rem; }
@media (max-width: 520px) {
  .login-compact { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .login-compact-brand { min-height: 125px; padding: 18px 22px; }
  .login-compact-brand img { width: 165px; height: 86px; }
  .login-compact-brand span { display: none; }
  .login-compact-content { padding: 34px 22px; }
  .login-compact-content h1 { font-size: 1.8rem; }
  .login-compact-footer { margin-top: auto; padding: 15px 22px; }
}
@media (max-width: 360px) { .expiration-stats { grid-template-columns: 1fr; }.metric-card { flex-direction: row; align-items: center; }.alert-person { padding-right: 4px; }.modern-alert-row > div:nth-child(4) { align-self: start; } }

/* Acceso privado con Microsoft Entra ID. */
.login-page { display: grid; min-height: 100vh; margin: 0; padding: 24px; place-items: center; background: radial-gradient(circle at 50% 10%, #fff 0, #f4f6f9 45%, #eceff4 100%); color: #202532; font-family: Inter, "Segoe UI", Arial, sans-serif; }
.login-card { width: min(420px, 100%); padding: 38px; border: 1px solid #dde2e9; border-radius: 24px; background: rgb(255 255 255 / 92%); box-shadow: 0 24px 70px rgb(30 39 56 / 12%); text-align: center; backdrop-filter: blur(16px); }
.login-brand { display: block; width: min(210px, 72%); height: auto; margin: 0 auto 24px; object-fit: contain; }.login-brand.denied { display: grid; width: 52px; height: 52px; border-radius: 15px; place-items: center; background: #b83542; color: #fff; font-size: 1.25rem; font-weight: 800; box-shadow: 0 9px 22px rgb(32 39 55 / 18%); }

/* Marca corporativa y selección masiva de trabajadores. */
.brand-logo { display: block; flex: 0 0 44px; width: 44px; height: 38px; object-fit: contain; }
.sidebar-brand .brand-logo { margin-right: 1px; }
.sidebar-collapsed .sidebar-brand .brand-logo { width: 48px; height: 42px; margin: 0; }
.workers-selection-bar { margin: -4px 0 13px; }
.workers-selection-bar label { display: flex; align-items: center; gap: 7px; }
.workers-selection-bar .danger-action:disabled { opacity: .45; cursor: not-allowed; }
.worker-list-row { grid-template-columns: 28px minmax(230px, 1.35fr) 82px minmax(190px, 1fr) auto 22px; }
.worker-row-check { width: 16px; height: 16px; margin: 0; accent-color: #344a82; cursor: pointer; }
.worker-list-row:has(.worker-row-check:checked) { background: #f3f5fa; box-shadow: inset 3px 0 #596b9d; }
@media (max-width: 1100px) { .worker-list-row { grid-template-columns: 28px minmax(0, 1fr) auto 18px; } }
@media (max-width: 680px) { .worker-list-row { grid-template-columns: 25px minmax(0, 1fr) auto 14px; }.workers-selection-bar { align-items: stretch; flex-wrap: wrap; }.workers-selection-bar strong { flex: 1; }.workers-selection-bar .danger-action { width: 100%; } }

/* Confirmación destructiva integrada. */
.confirm-dialog { width: min(470px, calc(100% - 30px)); padding: 0; overflow: hidden; border: 1px solid #e5dfe1; border-radius: 20px; background: #fff; color: #202532; box-shadow: 0 28px 80px rgb(22 27 38 / 24%); }
.confirm-dialog::backdrop { background: rgb(25 29 39 / 48%); backdrop-filter: blur(4px); }
.confirm-dialog-icon { display: grid; width: 48px; height: 48px; margin: 25px 25px 0; place-items: center; border-radius: 14px; background: #fbecef; color: #b63f4d; }
.confirm-dialog-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.confirm-dialog-copy { padding: 17px 25px 22px; }
.confirm-dialog-copy > small { color: #a8434e; font-size: .67rem; font-weight: 800; letter-spacing: .1em; }
.confirm-dialog-copy h2 { margin: 7px 0 8px; color: #202532; font-size: 1.35rem; letter-spacing: -.025em; }
.confirm-dialog-copy > p { margin: 0; color: #626b79; font-size: .87rem; line-height: 1.55; }
.confirm-dialog-warning { display: grid; gap: 4px; margin-top: 18px; padding: 13px 14px; border: 1px solid #eee3d7; border-radius: 11px; background: #fbf8f3; }
.confirm-dialog-warning strong { color: #654f37; font-size: .78rem; }
.confirm-dialog-warning span { color: #796c5e; font-size: .76rem; line-height: 1.45; }
.confirm-dialog-error { margin-top: 13px !important; padding: 10px 12px; border-radius: 9px; background: #fbecef; color: #9f3440 !important; font-size: .77rem !important; }
.confirm-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 25px; border-top: 1px solid #eceef1; background: #fafbfc; }
.confirm-dialog-actions button { min-height: 40px; padding: 0 15px; border-radius: 9px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.confirm-dialog-actions .secondary { border: 1px solid #d8dce3; background: #fff; color: #4f5866; }
.confirm-danger { border: 1px solid #ad3744; background: #ad3744; color: #fff; box-shadow: 0 4px 11px rgb(173 55 68 / 16%); }
.confirm-danger:hover { background: #962f3a; }
.confirm-dialog-actions button:disabled { opacity: .55; cursor: wait; }
#review-action-dialog[data-action="reject"] .confirm-dialog-icon { background: #faf4e8; color: #98712e; }
#review-action-dialog[data-action="reject"] .confirm-dialog-copy > small { color: #8c6829; }
#review-action-dialog[data-action="reject"] .confirm-danger { border-color: #66583f; background: #66583f; box-shadow: none; }
#review-action-dialog[data-action="reject"] .confirm-danger:hover { background: #554a36; }
@media (max-width: 480px) { .confirm-dialog-icon { margin: 20px 20px 0; }.confirm-dialog-copy { padding: 15px 20px 20px; }.confirm-dialog-actions { display: grid; grid-template-columns: 1fr; padding: 14px 20px 20px; }.confirm-dialog-actions .confirm-danger { grid-row: 1; } }
.login-kicker { margin: 0 0 10px; color: #788190; font-size: .67rem; font-weight: 800; letter-spacing: .12em; }.login-card h1 { margin: 0; font-size: 2rem; }.login-copy { margin: 12px auto 25px; color: #6c7584; font-size: .88rem; line-height: 1.55; }
.microsoft-login { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 48px; padding: 0 17px; border-radius: 11px; background: #242a3a; color: #fff; font-size: .88rem; font-weight: 700; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }.microsoft-login:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgb(30 38 55 / 18%); }.microsoft-login.centered { margin-top: 8px; }
.microsoft-login > span { display: grid; grid-template-columns: 7px 7px; gap: 2px; }.microsoft-login i { width: 7px; height: 7px; background: #f35325; }.microsoft-login i:nth-child(2) { background: #81bc06; }.microsoft-login i:nth-child(3) { background: #05a6f0; }.microsoft-login i:nth-child(4) { background: #ffba08; }.login-card > small { display: block; margin-top: 16px; color: #8a929f; font-size: .69rem; line-height: 1.45; }
.login-setup { padding: 16px; border: 1px solid #ecd7b6; border-radius: 12px; background: #fff9ef; color: #765a29; text-align: left; }.login-setup strong { font-size: .82rem; }.login-setup p { margin: 6px 0 10px; font-size: .75rem; }.login-setup code { display: block; overflow-wrap: anywhere; color: #654b20; font-size: .7rem; }
@media (max-width: 520px) { .login-page { padding: 14px; }.login-card { padding: 29px 22px; border-radius: 19px; }.login-card h1 { font-size: 1.7rem; } }

/* Portal de acceso corporativo. */
.login-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); width: min(1080px, 100%); min-height: 650px; overflow: hidden; border: 1px solid #d9dee6; border-radius: 22px; background: #fff; box-shadow: 0 24px 65px rgb(30 39 56 / 11%); text-align: left; }
.login-overview { display: flex; flex-direction: column; min-width: 0; padding: 42px 48px 34px; border-right: 1px solid #e2e5ea; background: #fff; }
.login-company { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.login-company img { width: 172px; height: 74px; object-fit: contain; object-position: left center; }
.login-company > span { color: #7b8493; font-size: .68rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.login-overview-copy { width: min(500px, 100%); margin: auto 0; padding: 42px 0 36px; }
.login-section-label { margin: 0 0 12px; color: #777f8c; font-size: .67rem; font-weight: 800; letter-spacing: .13em; }
.login-overview h1 { margin: 0; color: #202532; font-size: clamp(2.4rem, 4.5vw, 3.65rem); line-height: .98; letter-spacing: -.055em; }
.login-lead { max-width: 480px; margin: 21px 0 34px; color: #606a79; font-size: .98rem; line-height: 1.7; }
.login-capabilities { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.login-capabilities li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid #e7e9ed; }
.login-capabilities li:last-child { border-bottom: 1px solid #e7e9ed; }
.login-capability-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; background: #f3f4f6; color: #353d4c; }
.login-capability-icon svg, .login-access-icon svg, .login-assurance svg, .login-action-arrow { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.login-capability-icon svg { width: 21px; height: 21px; }
.login-capabilities strong, .login-capabilities small { display: block; }
.login-capabilities strong { margin-bottom: 3px; color: #262c37; font-size: .84rem; }
.login-capabilities small { color: #798291; font-size: .73rem; line-height: 1.45; }
.login-overview-footer { display: flex; align-items: center; gap: 9px; color: #858d99; font-size: .69rem; }
.login-overview-footer > span { width: 7px; height: 7px; border-radius: 50%; background: #e2b51e; box-shadow: 0 0 0 4px #fff7d7; }
.login-access { display: flex; flex-direction: column; min-width: 0; padding: 46px 42px 30px; background: #f7f8fa; }
.login-access-inner { width: min(370px, 100%); margin: auto; }
.login-access-icon { display: grid; width: 48px; height: 48px; margin-bottom: 27px; place-items: center; border: 1px solid #d9dee6; border-radius: 13px; background: #fff; color: #283142; box-shadow: 0 6px 16px rgb(31 40 57 / 5%); }
.login-access-icon svg { width: 23px; height: 23px; }
.login-access h2 { margin: 0; color: #202532; font-size: 2rem; line-height: 1.12; letter-spacing: -.035em; }
.login-access-copy { margin: 15px 0 29px; color: #697382; font-size: .85rem; line-height: 1.65; }
.login-primary-action { position: relative; min-height: 52px; border: 1px solid #202635; border-radius: 9px; background: #202635; box-shadow: none; }
.login-primary-action:hover { background: #151a26; box-shadow: 0 8px 18px rgb(28 34 48 / 13%); }
.login-action-arrow { position: absolute; right: 17px; width: 17px; height: 17px; }
.login-assurance { display: grid; gap: 9px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #dfe3e8; }
.login-assurance span { display: flex; align-items: center; gap: 8px; color: #6f7886; font-size: .72rem; }
.login-assurance svg { width: 16px; height: 16px; color: #4b755f; }
.login-access-footer { display: flex; justify-content: space-between; gap: 18px; padding-top: 28px; color: #9299a4; font-size: .65rem; }
.login-access .login-setup { margin-top: 4px; }
@media (max-width: 820px) {
  .login-page { align-items: start; padding: 18px; }
  .login-shell { grid-template-columns: 1fr; min-height: 0; border-radius: 18px; }
  .login-overview { padding: 27px 28px 24px; border-right: 0; border-bottom: 1px solid #e2e5ea; }
  .login-company img { width: 145px; height: 60px; }
  .login-company > span, .login-overview-footer { display: none; }
  .login-overview-copy { width: 100%; margin: 0; padding: 28px 0 0; }
  .login-overview h1 { font-size: 2.35rem; }
  .login-lead { margin: 15px 0 21px; font-size: .86rem; }
  .login-capabilities { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .login-capabilities li { display: block; padding: 12px; border: 1px solid #e4e7eb !important; border-radius: 10px; }
  .login-capability-icon { width: 34px; height: 34px; margin-bottom: 10px; }
  .login-capabilities small { display: none; }
  .login-access { padding: 34px 28px 25px; }
  .login-access-inner { width: 100%; }
  .login-access-icon { display: none; }
}
@media (max-width: 520px) {
  .login-page { padding: 0; background: #fff; }
  .login-shell { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .login-overview { padding: 20px 21px 22px; }
  .login-company img { width: 128px; height: 52px; }
  .login-overview-copy { padding-top: 20px; }
  .login-overview h1 { font-size: 2rem; }
  .login-lead { margin-bottom: 18px; line-height: 1.55; }
  .login-capabilities { display: block; }
  .login-capabilities li { display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 9px 0; border-width: 1px 0 0 !important; border-radius: 0; }
  .login-capabilities li:last-child { border-bottom-width: 1px !important; }
  .login-capability-icon { margin: 0; background: transparent; }
  .login-access { padding: 29px 21px 22px; }
  .login-access h2 { font-size: 1.65rem; }
  .login-access-copy { margin: 12px 0 22px; }
  .login-access-footer { padding-top: 25px; }
}

/* Espacio de trabajo de una importación: el progreso no alarga la página. */
body.import-workspace-open { overflow: hidden; }
.import-workspace { position: fixed; z-index: 70; inset: 0; display: grid; padding: 28px; place-items: center; }
.import-workspace[hidden] { display: none; }
.import-workspace-backdrop { position: absolute; inset: 0; background: rgb(24 30 42 / 46%); backdrop-filter: blur(7px); animation: workspace-fade .2s ease both; }
.import-workspace-shell { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(1240px, 100%); height: min(850px, calc(100vh - 56px)); overflow: hidden; border: 1px solid rgb(255 255 255 / 72%); border-radius: 24px; background: #f7f8fa; box-shadow: 0 34px 100px rgb(18 24 36 / 28%); animation: workspace-enter .28s cubic-bezier(.2,.8,.2,1) both; }
.import-workspace-topbar { display: grid; grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr); align-items: center; gap: 18px; min-height: 76px; padding: 13px 20px; border-bottom: 1px solid #e2e6ec; background: rgb(255 255 255 / 94%); }
.workspace-heading { display: flex; align-items: center; gap: 11px; min-width: 0; }
.workspace-heading > div { min-width: 0; }.workspace-heading small, .workspace-heading strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-heading small { color: #7c8492; font-size: .61rem; font-weight: 800; letter-spacing: .11em; }.workspace-heading strong { margin-top: 3px; color: #202634; font-size: .9rem; }
.workspace-live-dot { position: relative; flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: #50689f; box-shadow: 0 0 0 5px #edf1f8; }
.workspace-live-dot::after { position: absolute; inset: -5px; border: 1px solid #7e91bb; border-radius: inherit; content: ""; animation: workspace-pulse 1.7s ease-out infinite; }
.import-workspace.complete .workspace-live-dot { background: #378064; box-shadow: 0 0 0 5px #eaf5f0; }.import-workspace.complete .workspace-live-dot::after { display: none; }
.workspace-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid #e0e4ea; border-radius: 12px; background: #f3f5f8; }
.workspace-tabs button { min-height: 35px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: #697283; font: inherit; font-size: .77rem; font-weight: 700; cursor: pointer; }
.workspace-tabs button.active { background: #fff; color: #222936; box-shadow: 0 2px 8px rgb(31 40 57 / 9%); }.workspace-tabs button:disabled { opacity: .43; cursor: not-allowed; }
.workspace-window-actions { display: flex; justify-self: end; align-items: center; gap: 8px; }
.workspace-minimize { width: 39px; height: 39px; padding: 0 0 8px; border: 1px solid #dce1e8; border-radius: 10px; background: #fff; color: #596374; font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.workspace-minimize:hover { border-color: #c8cfda; background: #f6f8fb; color: #252d3a; }
.workspace-finish { min-height: 39px; }
.workspace-launcher { position: fixed; z-index: 72; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 12px; width: min(355px, calc(100vw - 28px)); padding: 11px 14px; border: 1px solid #dce2eb; border-radius: 16px; background: rgb(255 255 255 / 96%); color: #202735; box-shadow: 0 16px 48px rgb(20 28 42 / 20%); text-align: left; cursor: pointer; backdrop-filter: blur(12px); animation: workspace-enter .22s ease both; }
.workspace-launcher[hidden] { display: none; }
.workspace-launcher > span:last-child { min-width: 0; }.workspace-launcher strong, .workspace-launcher small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.workspace-launcher strong { font-size: .8rem; }.workspace-launcher small { margin-top: 3px; color: #748092; font-size: .69rem; }
.launcher-progress { display: grid; flex: 0 0 45px; width: 45px; height: 45px; place-items: center; border-radius: 50%; background: conic-gradient(#5069a8 calc(var(--progress, 0) * 1%), #e8ebf1 0); }
.launcher-progress::before { grid-area: 1 / 1; width: 35px; height: 35px; border-radius: 50%; background: #fff; content: ""; }.launcher-progress b { z-index: 1; grid-area: 1 / 1; font-size: .66rem; }
.import-workspace.minimized { pointer-events: none; }.import-workspace.minimized .import-workspace-backdrop, .import-workspace.minimized .import-workspace-shell { display: none; }.import-workspace.minimized .workspace-launcher { pointer-events: auto; }
.import-workspace-content { min-width: 0; min-height: 0; overflow: hidden; }
.import-workspace[data-view="files"] #records-panel, .import-workspace[data-view="records"] #queue-panel { display: none; }
.import-workspace #queue-panel, .import-workspace #records-panel { width: 100%; height: 100%; min-height: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.import-workspace .processing-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.import-workspace .processing-hero { flex: 0 0 auto; grid-template-columns: auto minmax(0, 1fr); padding: 20px 25px 18px; background: linear-gradient(115deg, #fff 0%, #f8faff 100%); }
.import-workspace .progress-ring { width: 82px; height: 82px; }.import-workspace .progress-ring::after { width: 62px; height: 62px; }.import-workspace .progress-ring > div strong { font-size: 1.08rem; }
.import-workspace .queue-actions { display: none; }
.import-workspace .progress { flex: 0 0 auto; }
.import-workspace .summary { flex: 0 0 auto; margin: 13px 24px 0; }
.import-workspace .selection-bar { flex: 0 0 auto; margin: 12px 24px 0; }
.import-workspace .processing-card .table-wrap { flex: 1 1 auto; min-height: 0; margin: 14px 24px 22px; overflow: auto; overscroll-behavior: contain; }
.import-workspace .processing-card.complete:not(.expanded) .table-wrap { display: block; }
.import-workspace .records-section { padding: 24px; overflow: auto; overscroll-behavior: contain; background: #f7f8fa; }
.import-workspace .records-head { margin-top: 0; }
@keyframes workspace-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes workspace-enter { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes workspace-pulse { 0% { opacity: .8; transform: scale(.7); } 80%, 100% { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .import-workspace-backdrop, .import-workspace-shell, .workspace-live-dot::after { animation: none; } }
@media (max-width: 760px) {
  .import-workspace { padding: 0; }
  .import-workspace-shell { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .import-workspace-topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; min-height: 0; padding: 11px 14px 10px; }
  .workspace-heading small { display: none; }.workspace-heading strong { margin: 0; font-size: .82rem; }
  .workspace-tabs { grid-column: 1 / -1; grid-row: 2; width: 100%; }.workspace-tabs button { flex: 1; }
  .workspace-window-actions { grid-column: 2; grid-row: 1; }.workspace-minimize { width: 35px; height: 35px; }.workspace-finish { min-height: 35px; padding: 0 11px; }
  .import-workspace .processing-hero { grid-template-columns: 66px minmax(0, 1fr); gap: 13px; padding: 15px 14px 13px; }
  .import-workspace .progress-ring { width: 64px; height: 64px; }.import-workspace .progress-ring::after { width: 48px; height: 48px; }.import-workspace .progress-ring > div strong { font-size: .9rem; }.import-workspace .progress-ring > div span { display: none; }
  .import-workspace .processing-copy .eyebrow { display: none; }.import-workspace .processing-copy h2 { font-size: 1rem; }.import-workspace .processing-copy > p { margin-top: 3px; font-size: .72rem; line-height: 1.35; }
  .import-workspace .processing-metrics { gap: 5px; margin-top: 7px; }.import-workspace .processing-metrics span { padding: 5px 7px; font-size: .65rem; }
  .import-workspace .summary { margin: 10px 12px 0; overflow-x: auto; flex-wrap: nowrap; }.import-workspace .summary span { flex: 0 0 auto; }
  .import-workspace .selection-bar { margin: 10px 12px 0; }
  .import-workspace .processing-card .table-wrap { margin: 10px 12px 12px; }
  .import-workspace .records-section { padding: 17px 13px; }
  .workspace-launcher { right: 14px; bottom: 14px; }
}

/* Resultado de importación en formato maestro-detalle. */
.import-workspace .records-section { display: flex; flex-direction: column; overflow: hidden; }
.import-workspace .records-head { flex: 0 0 auto; align-items: center; margin: 0 0 16px; }
.import-workspace .records-head .kicker { margin-bottom: 4px; }.import-workspace .records-head h2 { font-size: 1.25rem; }.import-workspace .records-head > span { font-size: .76rem; }
.records-browser { display: grid; grid-template-columns: minmax(245px, 30%) minmax(0, 1fr); flex: 1 1 auto; min-height: 0; overflow: hidden; border: 1px solid #e0e4ea; border-radius: 17px; background: #fff; box-shadow: 0 8px 28px rgb(27 38 55 / 5%); }
.records-index { display: flex; min-height: 0; flex-direction: column; border-right: 1px solid #e7eaf0; background: #f8f9fb; }
.records-search { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin: 14px; padding: 0 11px; border: 1px solid #dde2e9; border-radius: 10px; background: #fff; color: #7c8797; }
.records-search:focus-within { border-color: #929eb7; box-shadow: 0 0 0 3px rgb(81 101 148 / 9%); }.records-search > span { font-size: 1.1rem; }.records-search input { width: 100%; height: 39px; border: 0; outline: 0; background: transparent; color: #252c39; font: inherit; font-size: .76rem; }
.records-browser .records-grid { display: flex; min-height: 0; padding: 0 9px 12px; overflow-y: auto; flex-direction: column; gap: 3px; overscroll-behavior: contain; }
.records-browser .record-card { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 10px; overflow: visible; border: 0; border-radius: 11px; background: transparent; box-shadow: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .14s ease, color .14s ease; }
.records-browser .record-card:hover { background: #eef1f5; }.records-browser .record-card.active { background: #e9edf5; box-shadow: inset 3px 0 #526995; }
.records-browser .record-card .avatar { flex-basis: 38px; width: 38px; height: 38px; background: #e9edf3; color: #4d5b73; font-size: .72rem; }.records-browser .record-card.active .avatar { background: #273044; color: #fff; }
.records-browser .record-identity h3 { overflow: hidden; margin: 0; color: #232a36; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }.records-browser .record-identity p { overflow: hidden; margin: 3px 0 0; color: #7d8796; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.record-count { display: grid; min-width: 25px; height: 25px; padding: 0 6px; border-radius: 99px; place-items: center; background: #fff; color: #667286; font-size: .66rem; font-weight: 800; }.record-card.active .record-count { background: #dce3f0; color: #34486f; }
.record-card.unassigned-record .avatar { background: #fff0dc; color: #98611d; }
.record-detail { min-width: 0; min-height: 0; padding: 23px 25px; overflow-y: auto; overscroll-behavior: contain; }
.record-detail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid #e9ecf1; }.record-detail-head small { color: #7f8998; font-size: .61rem; font-weight: 800; letter-spacing: .11em; }.record-detail-head h3 { margin: 5px 0 3px; color: #202632; font-size: 1.16rem; letter-spacing: -.025em; }.record-detail-head p { margin: 0; color: #747e8d; font-size: .76rem; }
.detail-document-count { flex: 0 0 auto; padding: 6px 9px; border-radius: 99px; background: #f0f2f5; color: #657082; font-size: .68rem; font-weight: 750; }
.record-detail .compact-documents { padding: 8px 0 0; }.record-detail .document-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 11px; min-height: 67px; padding: 10px 7px; border-bottom: 1px solid #edf0f3; border-radius: 0; }
.record-detail .document-row:hover { background: #f8f9fb; transform: none; }.record-detail .document-copy { min-width: 0; }.record-detail .document-copy strong { overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }.record-detail .document-summary { display: block; overflow: hidden; margin-top: 3px; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }.record-detail .document-copy small { display: none; }.record-detail .badge { max-width: 180px; overflow: hidden; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.record-detail-empty { display: grid; min-height: 100%; place-items: center; color: #7a8492; font-size: .8rem; text-align: center; }
@media (max-width: 760px) {
  .import-workspace .records-section { padding: 14px 12px; }
  .import-workspace .records-head { margin-bottom: 10px; }.import-workspace .records-head h2 { font-size: 1.05rem; }
  .records-browser { display: flex; flex-direction: column; border-radius: 14px; }
  .records-index { flex: 0 0 auto; border-right: 0; border-bottom: 1px solid #e7eaf0; }
  .records-search { margin: 10px 10px 7px; }.records-search input { height: 35px; }
  .records-browser .records-grid { display: flex; padding: 0 10px 9px; overflow-x: auto; overflow-y: hidden; flex-direction: row; }
  .records-browser .record-card { grid-template-columns: 31px minmax(120px, 1fr) auto; flex: 0 0 215px; padding: 8px; background: #fff; border: 1px solid #e5e8ed; }.records-browser .record-card.active { box-shadow: inset 0 -3px #526995; }
  .records-browser .record-card .avatar { width: 31px; height: 31px; flex-basis: 31px; }
  .record-detail { padding: 17px 14px; }.record-detail-head h3 { font-size: 1rem; }.record-detail .document-row { grid-template-columns: 36px minmax(0, 1fr); }.record-detail .document-row > .badge { grid-column: 2; justify-self: start; margin-top: -5px; }
}

/* Expediente lateral: acciones livianas y adaptación móvil. */
.worker-drawer { width: min(520px, 100%); }
.worker-drawer-head .worker-identity { flex: 1; min-width: 0; }.worker-drawer-head .worker-identity h2, .worker-drawer-head .worker-identity p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.worker-drawer-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.worker-drawer-tools button { display: grid; width: 37px; height: 37px; padding: 0; border: 1px solid transparent; border-radius: 10px; place-items: center; background: transparent; color: #687386; cursor: pointer; transition: background .14s ease, color .14s ease, border-color .14s ease; }
.worker-drawer-tools button:hover { border-color: #e0e4ea; background: #f4f6f9; color: #242c39; }.worker-drawer-tools button:focus-visible { outline: 3px solid rgb(76 97 145 / 14%); }
.worker-drawer-tools svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.worker-drawer-tools .worker-drawer-close { padding-bottom: 3px; border: 0; font-size: 1.4rem; }
.worker-drawer-tools button.loading { position: relative; color: transparent; cursor: wait; }.worker-drawer-tools button.loading::after { position: absolute; width: 15px; height: 15px; border: 2px solid #cbd2dd; border-top-color: #4e6088; border-radius: 50%; content: ""; animation: worker-spin .7s linear infinite; }
.worker-focus-alert { padding: 13px 14px; }.worker-focus-alert p { margin-bottom: 9px; }
.worker-focus-action { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: #a52f3a; font: inherit; font-size: .73rem; font-weight: 750; cursor: pointer; }.worker-focus-alert.proximo_vencer .worker-focus-action { color: #876323; }.worker-focus-alert.revision .worker-focus-action { color: #67558a; }
.worker-folder-card { min-height: 96px; padding: 13px; }.worker-folder-meta { padding-top: 8px; }
@keyframes worker-spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .worker-drawer-head { gap: 9px; padding: 13px 12px; }.worker-drawer-head .worker-avatar { flex-basis: 38px; width: 38px; height: 38px; }.worker-drawer-head .worker-identity small { font-size: .57rem; }.worker-drawer-head .worker-identity h2 { max-width: none; font-size: .89rem; }.worker-drawer-head .worker-identity p { font-size: .7rem; }
  .worker-drawer-tools { gap: 1px; }.worker-drawer-tools button { width: 33px; height: 33px; border-radius: 8px; }.worker-drawer-tools svg { width: 16px; }
  .worker-drawer-summary { padding: 11px 12px 2px; }.worker-focus-alert { padding: 12px 13px; border-radius: 12px; }.worker-focus-alert strong { font-size: .85rem; }.worker-focus-alert p { font-size: .7rem; }
  .worker-drawer-section-head { padding: 15px 12px 6px; }.worker-compliance { margin-right: 12px; margin-left: 12px; }.worker-requirement { align-items: flex-start; padding: 10px 11px; }.worker-requirement > div { min-width: 0; }.worker-requirement strong, .worker-requirement small { overflow-wrap: anywhere; }.worker-requirement .badge { flex: 0 0 auto; }
  .worker-folder-grid { gap: 8px; padding-right: 12px !important; padding-left: 12px !important; }.worker-folder-card { min-height: 88px; padding: 11px; }.worker-folder-icon { flex-basis: 33px; height: 33px; margin-right: 9px; }.worker-folder-meta { padding-top: 6px; }
  .worker-folder-files { margin-right: 12px; margin-left: 12px; }
}
@media (max-width: 410px) {
  .worker-drawer-head .worker-avatar { display: none; }.worker-drawer-head { gap: 6px; }.worker-drawer-tools button { width: 31px; }
  .worker-folder-grid { grid-template-columns: 1fr; }.worker-folder-card { min-height: 76px; }
  .worker-requirement { flex-wrap: wrap; }.worker-requirement .badge { margin-left: auto; }
}

/* Pendiente principal del expediente: señal puntual, sin tarjeta de alerta pesada. */
.worker-focus-alert, .worker-focus-alert.proximo_vencer, .worker-focus-alert.revision { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 14px; overflow: visible; border: 1px solid #e4e8ee; border-radius: 13px; background: #fff; box-shadow: 0 7px 22px rgb(25 35 51 / 5%); }
.worker-focus-alert::before { display: none; }
.worker-focus-mark { display: grid; width: 40px; height: 40px; border-radius: 11px; place-items: center; background: #f9ecee; color: #b53642; }
.worker-focus-alert.proximo_vencer .worker-focus-mark { background: #f8f2e7; color: #906a27; }.worker-focus-alert.revision .worker-focus-mark { background: #f1eef7; color: #68568c; }
.worker-focus-mark svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.worker-focus-copy { min-width: 0; }
.worker-focus-alert .worker-focus-kicker, .worker-focus-alert.proximo_vencer .worker-focus-kicker, .worker-focus-alert.revision .worker-focus-kicker { display: block; margin: 0 0 3px; color: #8a92a0; font-size: .57rem; font-weight: 800; letter-spacing: .09em; }
.worker-focus-alert strong { overflow: hidden; color: #252c38; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.worker-focus-alert p { overflow: hidden; margin: 3px 0 0; color: #727b89; font-size: .68rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.worker-focus-action, .worker-focus-alert.proximo_vencer .worker-focus-action, .worker-focus-alert.revision .worker-focus-action { min-height: 34px; padding: 0 11px; border: 1px solid #dfe3e9; border-radius: 9px; background: #f7f8fa; color: #333c49; font: inherit; font-size: .69rem; font-weight: 720; white-space: nowrap; cursor: pointer; transition: border-color .14s ease, background .14s ease; }
.worker-focus-action:hover { border-color: #cdd3dc; background: #f0f2f5; }
@media (max-width: 430px) {
  .worker-focus-alert, .worker-focus-alert.proximo_vencer, .worker-focus-alert.revision { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .worker-focus-mark { width: 36px; height: 36px; }.worker-focus-action, .worker-focus-alert.proximo_vencer .worker-focus-action, .worker-focus-alert.revision .worker-focus-action { grid-column: 2; justify-self: start; min-height: 31px; margin-top: 2px; }
  .worker-focus-alert strong, .worker-focus-alert p { white-space: normal; }
}

/* Identidad neutra: icono de persona en vez de iniciales y bloques oscuros. */
.worker-avatar, .worker-list-row .worker-avatar, .worker-drawer-head .worker-avatar { width: 34px; height: 34px; flex-basis: 34px; border-radius: 0; background: transparent; color: #69758a; }
.worker-avatar svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.records-browser .record-card .avatar, .records-browser .record-card.active .avatar { width: 34px; height: 34px; flex-basis: 34px; border-radius: 0; background: transparent; color: #69758a; }
.records-browser .record-card .avatar svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.record-card.unassigned-record .avatar { background: transparent; color: #8b6a35; }
.worker-focus-alert strong, .worker-focus-alert p { overflow: visible; text-overflow: clip; white-space: normal; }
@media (max-width: 410px) { .worker-drawer-head .worker-avatar { display: grid; width: 30px; height: 30px; flex-basis: 30px; }.worker-avatar svg { width: 21px; } }

/* Ajustes finales de la carpeta: controles secundarios con menor peso. */
.worker-selection-bar { min-height: 34px; margin: 2px 20px 10px; padding: 4px 1px; border: 0; border-radius: 0; background: transparent; color: #747d8b; box-shadow: none; }
.worker-selection-bar .danger-action { padding: 5px 8px; border-color: transparent; background: transparent; }.worker-selection-bar .danger-action:not(:disabled) { border-color: #ebcdd1; background: #fff; }
.worker-folder-saved .worker-document-delete { opacity: 0; transition: opacity .14s ease; }.worker-folder-saved .worker-document:hover .worker-document-delete, .worker-folder-saved .worker-document:focus-within .worker-document-delete { opacity: 1; }
.worker-folder-saved .worker-document-check { opacity: .55; }.worker-folder-saved .worker-document-check:checked, .worker-folder-saved .worker-document:hover .worker-document-check { opacity: 1; }
@media (max-width: 560px) { .worker-selection-bar { margin-right: 12px; margin-left: 12px; }.worker-folder-saved .worker-document-delete { opacity: .7; } }

/* Vencimientos interactivos y listado de lectura rápida. */
.expiration-stats .metric-card[role="button"] { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; }.expiration-stats .metric-card[role="button"]:focus-visible { outline: 3px solid rgb(68 88 128 / 18%); outline-offset: 2px; }
.metric-card.selected { border-color: #7887a5; background: linear-gradient(145deg, #fff, #f1f4f8); box-shadow: 0 14px 32px rgb(35 50 75 / 13%); transform: translateY(-2px); }.metric-card.selected::after { position: absolute; top: 10px; right: 11px; display: grid; width: 20px; height: 20px; border-radius: 50%; place-items: center; background: #263246; color: #fff; content: '✓'; font-size: .65rem; font-weight: 800; }.metric-card.danger.selected { border-color: #d66b74; }.metric-card.missing-card.selected { border-color: #d6a054; }
.active-alert-filter { display: inline-flex; align-items: center; gap: 5px; margin: -7px 0 13px; padding: 6px 9px; border: 1px solid #d9dfe8; border-radius: 99px; background: #f4f6f9; color: #4b586d; font: inherit; font-size: .68rem; font-weight: 700; cursor: pointer; }.active-alert-filter[hidden] { display: none; }.active-alert-filter b { color: #7f8998; font-size: .85rem; }
.expiration-list.modern-list { display: grid; gap: 9px; padding-top: 10px; }.modern-alert-row { min-height: 82px; border: 1px solid #e5e8ed; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgb(26 35 50 / 3%); }.modern-alert-row:last-child { border-bottom: 1px solid #e5e8ed; }.modern-alert-row.state-vencido { border-color: #efd7da; background: linear-gradient(90deg, #fff8f8, #fff 18%); }.modern-alert-row.state-faltante { border-color: #eadfcf; background: linear-gradient(90deg, #fffaf2, #fff 18%); }.modern-alert-row.state-proximo_vencer { background: linear-gradient(90deg, #f7f9fc, #fff 18%); }.modern-alert-row.state-revision { background: linear-gradient(90deg, #faf8fd, #fff 18%); }.modern-alert-row::before { top: 11px; bottom: 11px; left: -1px; width: 4px; }.modern-alert-row:hover, .modern-alert-row:focus-visible { border-color: #cfd5df; background-color: #f8f9fb; box-shadow: 0 8px 20px rgb(25 35 52 / 8%); }
@media (max-width: 760px) { .expiration-list.modern-list { gap: 8px; }.modern-alert-row { padding: 14px 11px; }.metric-card.selected::after { top: 8px; right: 8px; } }

/* Gestión de trabajadores: KPI con lectura semántica e iconografía propia. */
.workers-head .head-actions > * { display: inline-flex; align-items: center; gap: 8px; }.workers-head .head-actions svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.workers-stats .worker-stat-card { position: relative; display: flex; min-width: 0; min-height: 94px; align-items: center; gap: 14px; padding: 16px 17px; overflow: hidden; border-color: #dfe4eb; background: linear-gradient(145deg, #fff, #fafbfc); box-shadow: 0 6px 20px rgb(26 37 55 / 4%); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.worker-stat-icon { display: grid !important; width: 42px; height: 42px; flex: 0 0 42px; margin: 0 !important; border-radius: 12px; place-items: center; background: #eef2f6; color: #58677e; }.worker-stat-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }.worker-stat-card > div { min-width: 0; }.workers-stats .worker-stat-card strong { color: #1e2531; font-size: 1.6rem; line-height: 1; }.workers-stats .worker-stat-card > div > span { margin-top: 5px; color: #737d8c; font-size: .73rem; font-weight: 650; }
.worker-stat-card.tone-people .worker-stat-icon { background: #edf2f8; color: #506987; }.worker-stat-card.tone-documents .worker-stat-icon { background: #f0eff8; color: #665e8b; }.worker-stat-card.tone-review .worker-stat-icon { background: #fff5e7; color: #a36b1c; }.worker-stat-card.tone-alerts .worker-stat-icon { background: #fcedef; color: #bd3946; }
.worker-stat-card[role="button"] { cursor: pointer; }.worker-stat-card[role="button"]::after { position: absolute; right: 13px; bottom: 12px; color: #9aa2ae; content: '›'; font-size: 1.15rem; }.worker-stat-card[role="button"]:hover { border-color: #cbd2dd; box-shadow: 0 11px 26px rgb(27 39 58 / 8%); transform: translateY(-2px); }.worker-stat-card[role="button"]:focus-visible { outline: 3px solid rgb(70 91 132 / 16%); outline-offset: 2px; }.worker-stat-card.selected { border-color: #7d8aa3; background: linear-gradient(145deg, #fff, #f1f4f8); box-shadow: 0 10px 26px rgb(31 45 69 / 10%); }.worker-stat-card.selected::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: #53647f; content: ''; }
.worker-list-row { position: relative; }.worker-list-row:focus-visible { z-index: 1; outline: 3px solid rgb(70 91 132 / 14%); outline-offset: -3px; }.worker-list-row:hover .worker-list-arrow { color: #44536b; transform: translateX(2px); }.worker-list-arrow { transition: color .14s ease, transform .14s ease; }
@media (max-width: 680px) { .workers-stats .worker-stat-card { min-height: 82px; padding: 13px; }.worker-stat-icon { width: 36px; height: 36px; flex-basis: 36px; }.worker-stat-icon svg { width: 18px; }.workers-stats .worker-stat-card strong { font-size: 1.35rem; }.worker-stat-card[role="button"]::after { right: 9px; bottom: 8px; } }
@media (max-width: 390px) { .workers-stats .worker-stat-card { padding: 12px 10px; gap: 9px; }.worker-stat-icon { width: 32px; height: 32px; flex-basis: 32px; }.workers-stats .worker-stat-card > div > span { font-size: .67rem; } }

/* Auditoría y trazabilidad multiusuario. */
.audit-head { margin-bottom: 20px; }.audit-panel { padding: 20px; }.audit-tools { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; }.audit-tools label { display: grid; gap: 6px; color: #727c8b; font-size: .7rem; font-weight: 700; }.audit-tools input, .audit-tools select { min-height: 42px; padding: 0 12px; border: 1px solid #dce1e8; border-radius: 10px; background: #fff; color: #27303d; }.audit-caption { margin: 15px 0 8px; color: #8a929e; font-size: .72rem; }.audit-list { display: grid; gap: 8px; }.audit-row { display: grid; grid-template-columns: 38px minmax(210px, 1.2fr) minmax(190px, 1fr) 170px; align-items: center; gap: 13px; min-height: 72px; padding: 11px 13px; border: 1px solid #e3e7ed; border-radius: 12px; background: #fff; }.audit-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #eef2f6; color: #617087; }.audit-mark svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }.audit-main, .audit-context, .audit-meta { display: grid; min-width: 0; gap: 3px; }.audit-main strong { color: #252c38; font-size: .8rem; text-transform: capitalize; }.audit-main span, .audit-context span, .audit-context small, .audit-meta { overflow: hidden; color: #778190; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }.audit-context span { color: #4f5b6c; font-weight: 700; }.audit-meta { justify-items: end; }.audit-meta time { color: #3f4958; font-size: .72rem; font-weight: 650; }.audit-documento .audit-mark { background: #eef2f8; color: #536b90; }.audit-trabajador .audit-mark { background: #edf6f2; color: #497761; }.audit-sesion .audit-mark { background: #f2eff8; color: #6a5b8e; }
@media (max-width: 800px) { .audit-row { grid-template-columns: 36px minmax(0, 1fr) auto; }.audit-context { grid-column: 2; }.audit-meta { grid-column: 3; grid-row: 1 / 3; }.audit-tools { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .audit-panel { padding: 13px; }.audit-row { grid-template-columns: 34px minmax(0, 1fr); padding: 10px; }.audit-meta { grid-column: 2; grid-row: auto; justify-items: start; }.audit-main span { white-space: normal; overflow-wrap: anywhere; } }
.audit-reason { display: grid; gap: 6px; margin-top: 16px; color: #606a79; font-size: .72rem; font-weight: 700; }.audit-reason textarea { min-height: 76px; resize: vertical; padding: 10px 11px; border: 1px solid #d9dee6; border-radius: 9px; color: #29313e; font: inherit; font-size: .78rem; line-height: 1.4; }

/* Ajustes finales de la escena de acceso (deben prevalecer sobre la base compacta). */
.login-page .login-compact { width: min(520px, calc(100% - 40px)); margin-left: clamp(230px, 30vw, 520px); border-color: rgb(255 255 255 / 78%); border-radius: 25px; background: rgb(255 255 255 / 93%); box-shadow: 0 30px 75px rgb(31 47 77 / 19%); backdrop-filter: blur(14px); }
.login-page .login-compact-brand { min-height: 166px; border-bottom: 0; }
.login-page .login-compact-brand::after { bottom: 7px; width: 50px; height: 3px; }
.login-page .login-compact-brand img { width: 230px; height: 118px; }
.login-page .login-compact-content { padding: 23px 46px 38px; }
.login-page .login-compact-footer { padding: 18px 32px; background: rgb(248 249 252 / 78%); }
@media (max-width: 980px) { .login-page .login-compact { margin-left: 20vw; } }
@media (max-width: 760px) { .login-page .login-compact { width: min(500px, 100%); min-height: 0; margin: 55px 0 20px; border-radius: 22px; } }
@media (max-width: 520px) {
  .login-page .login-compact { min-height: 0; margin-top: 36px; border-radius: 19px; }
  .login-page .login-compact-brand { min-height: 139px; }
  .login-page .login-compact-brand img { width: 195px; height: 99px; }
  .login-page .login-compact-content { padding: 22px 24px 31px; }
}

/* Alta guiada de trabajador y lenguaje de progreso corporativo. */
#worker-form-dialog:has(#worker-form-step-two:not([hidden])) { width: min(650px, calc(100% - 28px)); }
.worker-form-steps { display: grid; grid-template-columns: max-content minmax(45px, 1fr) max-content; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e5e7eb; background: #fafafa; }
.worker-form-steps > div { display: flex; align-items: center; gap: 8px; color: #8a9099; }
.worker-form-steps > div span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #d8dce2; border-radius: 50%; background: #fff; font-size: .69rem; font-weight: 800; }
.worker-form-steps > div strong { font-size: .72rem; }
.worker-form-steps > i { height: 2px; overflow: hidden; border-radius: 2px; background: #dfe2e7; }
.worker-form-steps > i::after { display: block; width: 0; height: 100%; background: #e0ae14; content: ""; transition: width .25s ease; }
.worker-form-steps.second > i::after { width: 100%; }
.worker-form-steps > div.active { color: #20242d; }.worker-form-steps > div.active span { border-color: #e0ae14; background: #f3c52d; color: #17191e; box-shadow: 0 0 0 4px #fff5cb; }
.worker-form-steps > div.complete span { border-color: #242832; background: #242832; color: #fff; }
.worker-form-stage[hidden] { display: none !important; }
.worker-form-next { min-height: 44px; margin-top: 3px; background: #20242d; }
.worker-document-stage { padding: 21px 22px 22px; }
.worker-stage-intro { margin-bottom: 17px; }.worker-stage-intro small { color: #8d7424; font-size: .61rem; font-weight: 800; letter-spacing: .11em; }.worker-stage-intro h3 { margin: 5px 0; color: #20242d; font-size: 1.25rem; }.worker-stage-intro p { margin: 0; color: #727a87; font-size: .75rem; line-height: 1.5; }
.worker-initial-required { overflow: hidden; border: 1px solid #dde1e7; border-radius: 13px; }
.worker-initial-requirement { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 65px; padding: 10px 12px; border-bottom: 1px solid #e8eaee; background: #fff; }.worker-initial-requirement:last-child { border-bottom: 0; }
.worker-initial-requirement > div { display: flex; align-items: center; gap: 11px; min-width: 0; }.worker-initial-requirement > div > span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 9px; background: #fff6d5; color: #8a6a0b; }.worker-initial-requirement svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }.worker-initial-requirement strong, .worker-initial-requirement small { display: block; }.worker-initial-requirement strong { color: #292e37; font-size: .79rem; }.worker-initial-requirement small { margin-top: 3px; color: #818894; font-size: .67rem; }
.worker-initial-requirement > button { min-height: 34px; padding: 0 12px; border: 1px solid #d5d9df; border-radius: 8px; background: #fff; color: #343a45; font: inherit; font-size: .7rem; font-weight: 750; cursor: pointer; }.worker-initial-requirement > button:hover { border-color: #d9aa13; background: #fffaf0; }
.worker-initial-requirement.uploaded { background: #fcfbf5; }.worker-initial-requirement.uploaded > div > span { background: #242832; color: #f2c42c; }.worker-initial-requirement.uploaded small { color: #6f725e; }
.worker-initial-folders { margin-top: 19px; }.worker-initial-section-head { display: flex; justify-content: space-between; margin-bottom: 9px; }.worker-initial-section-head strong { color: #333944; font-size: .75rem; }.worker-initial-section-head span { color: #9097a2; font-size: .66rem; }
.worker-initial-folder-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }.worker-initial-upload { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 61px; padding: 9px; border: 1px dashed #d2d6dc; border-radius: 10px; background: #fafbfc; color: #4d5664; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }.worker-initial-upload:hover, .worker-initial-upload.dragging { border-color: #d2a40f; background: #fff9e7; transform: translateY(-1px); }.worker-initial-upload > svg { width: 18px; flex: 0 0 18px; fill: none; stroke: #6d7480; stroke-width: 1.6; }.worker-initial-upload span { min-width: 0; }.worker-initial-upload strong, .worker-initial-upload small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.worker-initial-upload strong { font-size: .7rem; }.worker-initial-upload small { margin-top: 2px; color: #979da7; font-size: .59rem; }.worker-initial-upload b { display: none; }
.worker-initial-progress { margin-top: 14px; padding: 11px 12px; border: 1px solid #e3d28f; border-radius: 10px; background: #fffaf0; }.worker-initial-progress > div { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 8px; font-size: .68rem; }.worker-initial-progress span { overflow: hidden; color: #555b65; text-overflow: ellipsis; white-space: nowrap; }.worker-initial-progress strong { flex: 0 0 auto; color: #514318; }.worker-initial-progress > i { position: relative; display: block; height: 4px; overflow: hidden; border-radius: 99px; background: #242832; }.worker-initial-progress > i::after { position: absolute; width: 38%; height: 100%; border-radius: inherit; background: #f1c328; content: ""; animation: worker-upload-progress 1.15s ease-in-out infinite; }
.worker-stage-actions { display: flex; justify-content: flex-end; margin-top: 17px; }.worker-stage-actions .primary-action { min-width: 155px; background: #20242d; }
@keyframes worker-upload-progress { from { left: -40%; } to { left: 105%; } }

/* Amarillo, negro y blanco para procesos activos; éxito y error conservan su semántica. */
.progress-ring { background: conic-gradient(#f0c328 calc(var(--progress) * 1%), #252a34 0); }
.progress span { background: #e5b717; }
.launcher-progress { background: conic-gradient(#f0c328 calc(var(--progress, 0) * 1%), #252a34 0); }
.workspace-live-dot { background: #edbd1f; box-shadow: 0 0 0 5px #fff4cb; }.workspace-live-dot::after { border-color: #e7b719; }
.worker-drawer-tools button.loading::after { border-color: #ece3c3; border-top-color: #d5a609; }
@media (max-width: 620px) { .worker-form-steps > div strong { display: none; }.worker-initial-folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.worker-document-stage { padding: 18px 15px; } }

/* Resumen y detalle de auditoría. */
.audit-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.audit-stats article { display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 15px; border: 1px solid #dde2e9; border-radius: 14px; background: #fff; box-shadow: 0 7px 18px rgb(29 39 56 / 4%); }
.audit-stat-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 10px; background: #f1f3f6; color: #566273; }.audit-stat-icon.warning { background: #fff4d2; color: #8b6812; }.audit-stat-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.audit-stats strong, .audit-stats small { display: block; }.audit-stats strong { color: #202631; font-size: 1.5rem; line-height: 1; }.audit-stats small { margin-top: 5px; color: #7d8591; font-size: .68rem; }
.audit-row { position: relative; }.audit-row.destructive { border-left: 3px solid #c74450; }.audit-row.destructive .audit-mark { background: #fbedef; color: #b93b47; }
.audit-details { grid-column: 2 / -1; padding-top: 4px; }.audit-details summary { width: max-content; color: #58687f; font-size: .67rem; font-weight: 750; cursor: pointer; }.audit-details > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; margin-top: 10px; padding: 11px 13px; border-radius: 9px; background: #f7f8fa; }.audit-details p { display: grid; gap: 2px; margin: 0; min-width: 0; }.audit-details strong { color: #747d8a; font-size: .61rem; text-transform: uppercase; }.audit-details span { overflow-wrap: anywhere; color: #3c4552; font-size: .7rem; }
@media (max-width: 900px) { .audit-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }.audit-details { grid-column: 2 / -1; } }
@media (max-width: 520px) { .audit-stats { gap: 8px; }.audit-stats article { min-height: 72px; padding: 11px; }.audit-stat-icon { width: 34px; height: 34px; flex-basis: 34px; }.audit-stats strong { font-size: 1.25rem; }.audit-details { grid-column: 2; }.audit-details > div { grid-template-columns: 1fr; } }
