.amanta-asistencia-rrhh { color:#18212f; display:grid; gap:18px; min-width:0; padding-bottom:20px; font-size:14px; }
.amanta-asistencia-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; }
.amanta-asistencia-heading p { color:#64748b; font-size:11px; letter-spacing:1.4px; }
.amanta-asistencia-heading h1 { font-size:28px; font-weight:650; letter-spacing:-.6px; margin:4px 0; }
.amanta-asistencia-heading span { color:#64748b; }
.amanta-asistencia-heading a { border:1px solid #cbd5e1; border-radius:8px; color:#18212f; background:#fff; padding:9px 12px; text-decoration:none; white-space:nowrap; }
.amanta-asistencia-tabs { display:flex; flex-wrap:nowrap; gap:6px; min-width:0; overflow-x:auto; border-bottom:1px solid #dce3e9; }
.amanta-asistencia-tabs button { appearance:none; flex:none; white-space:nowrap; border:0; border-bottom:3px solid transparent; background:transparent; color:#64748b; font:inherit; font-weight:600; padding:10px 13px; cursor:pointer; }
.amanta-asistencia-tabs button[aria-current="page"] { color:#e83d1b; border-bottom-color:#f34322; }
.amanta-asistencia-tabs button:focus-visible,.amanta-asistencia-heading a:focus-visible { outline:2px solid #4f46e5; outline-offset:2px; }
.amanta-asistencia-panel { background:#fff; border:1px solid #dce3e9; border-radius:16px; min-height:180px; min-width:0; padding:20px; }
.amanta-asistencia-panel p[role="alert"] { color:#b91c1c; }
.amanta-asistencia-scroll { width:100%; overflow:auto; }
.amanta-asistencia-table { width:100%; border-collapse:collapse; min-width:820px; }
.amanta-asistencia-table th,.amanta-asistencia-table td { text-align:left; padding:10px 8px; border-bottom:1px solid #e2e8f0; vertical-align:top; }
.amanta-asistencia-table th { font-size:11px; color:#64748b; font-weight:650; }
.amanta-asistencia-state { border-radius:5px; padding:3px 7px; white-space:nowrap; font-size:12px; }
.amanta-asistencia-state.ok { background:#e7f7ee; color:#166534; }
.amanta-asistencia-state.pending { background:#fff3d6; color:#92400e; }
.amanta-asistencia-metrics { display:flex; gap:18px; flex-wrap:wrap; }
.amanta-asistencia-metrics>div { display:flex; flex-direction:column; border-left:2px solid #e2e8f0; padding-left:12px; }
.amanta-asistencia-metrics strong { font-size:26px; }
.amanta-asistencia-metrics span { font-size:12px; color:#64748b; }
.amanta-asistencia-metrics p { flex-basis:100%; }
@media(max-width:600px) { .amanta-asistencia-heading { align-items:start; flex-direction:column; } .amanta-asistencia-panel { padding:12px; } }

.amanta-asistencia-panel .amanta-asistencia-notice { color:#64748b; }

.amanta-asistencia-menu-button { display:none; }
@media(max-width:700px) {
  body:has(.amanta-asistencia-rrhh) .amanta-redesign-main.ml-64 { margin-left:0; }
  body:has(.amanta-asistencia-rrhh) .amanta-redesign-sidebar.sidebar-panel {
    transform:translateX(calc(-100% - 12px)); pointer-events:none;
  }
  body.amanta-asistencia-mobile-menu-open:has(.amanta-asistencia-rrhh) .amanta-redesign-sidebar.sidebar-panel {
    transform:translateX(0); pointer-events:auto; box-shadow:22px 0 54px #0003;
  }
  .amanta-asistencia-rrhh { gap:14px; }
  .amanta-asistencia-heading { align-items:flex-start; }
  .amanta-asistencia-heading h1 { font-size:26px; }
  .amanta-asistencia-heading a { align-self:flex-start; }
  .amanta-asistencia-menu-button {
    display:inline-flex; align-items:center; align-self:flex-start;
    min-height:40px; border:1px solid #cbd5e1; border-radius:8px;
    background:#fff; color:#18212f; padding:8px 12px;
    font:inherit; font-weight:600; cursor:pointer;
  }
  .amanta-asistencia-menu-button:focus-visible { outline:2px solid #4f46e5; outline-offset:2px; }
  /* Corte 11 (12/10/2026): la página trae su propio «☰ Menú» (abre la barra lateral de RRHH); el genérico de AppWebMenu se
     repetía arriba como texto suelto. Si alguien lo abre por otro camino sigue visible como «Cerrar menú». */
  body:has(.amanta-asistencia-rrhh) .amanta-management-menu[aria-expanded="false"] { display:none; }
}



.amanta-asistencia-requests > header {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.amanta-asistencia-requests > header h2 {margin:0}
.amanta-asistencia-requests > header p {margin:5px 0 0}
.amanta-asistencia-request-actions {display:flex;align-items:center;gap:6px;min-width:340px}
.amanta-asistencia-request-actions input {min-width:150px;flex:1}
.amanta-asistencia-request-actions button {white-space:nowrap}
@media (max-width: 640px) {
  .amanta-asistencia-requests > header {align-items:flex-start;flex-direction:column}
  .amanta-asistencia-request-actions {min-width:300px}
}

.amanta-asistencia-load-more {margin-top:12px;min-height:40px}

@media (max-width: 600px) {
  .amanta-inventory-purchase-modal {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 64px);
    max-height: 92dvh;
  }
  .amanta-inventory-purchase-modal > div:last-child {
    min-height: 0;
    max-height: none !important;
    overflow-y: auto;
  }
}

/* ASI-W14: acceso del personal por cédula. Cada sección cabe en una sola pantalla (sin desplazamiento): listas paginadas. */
.amanta-acceso{display:grid;gap:10px;min-width:0;font-size:14px;color:#18212f}
.amanta-acceso-head{display:flex;align-items:center;gap:12px;min-width:0}
.amanta-acceso-head h2{font-size:18px;margin:0;white-space:nowrap}
.amanta-acceso-chips{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto;min-width:0}
.amanta-acceso-chips span{border:1px solid #dce3e9;border-radius:999px;padding:3px 10px;font-size:12px;color:#475569;background:#f8fafc;white-space:nowrap}
.amanta-acceso-chips b{color:#18212f}
.amanta-acceso button,.amanta-acceso input,.amanta-acceso select,.amanta-acceso .amanta-acceso-button{box-sizing:border-box;height:38px;min-width:0;border:1px solid #cbd5e1;border-radius:8px;padding:0 12px;background:#fff;color:#18212f;font:inherit;font-size:13px}
.amanta-acceso input[type=checkbox]{height:18px;width:18px;padding:0;flex:none}
.amanta-acceso button,.amanta-acceso .amanta-acceso-button{cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.amanta-acceso button:disabled{opacity:.5;cursor:default}
.amanta-acceso button.primary,.amanta-acceso form>button[type=submit]{background:#d63a1e;border-color:#d63a1e;color:#fff;font-weight:600}
.amanta-acceso :focus-visible{outline:2px solid #d63a1e;outline-offset:2px}
.amanta-acceso input::placeholder{color:#94a3b8}
.amanta-acceso-refresh{width:38px;padding:0!important;flex:none}
.amanta-acceso-body{display:grid;gap:10px;min-width:0}
.amanta-acceso-split{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:12px;align-items:stretch}
.amanta-acceso-card{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid #dce3e9;border-radius:12px;min-width:0;background:#fff}
.amanta-acceso-card h3{font-size:15px;margin:0}
.amanta-acceso-card>button[type=submit]{margin-top:auto}
.amanta-acceso-link{display:grid;grid-template-columns:132px minmax(0,1fr);gap:14px;align-items:center}
.amanta-acceso-qr{width:132px;height:132px;border:1px solid #dce3e9;border-radius:8px;display:block}
.amanta-acceso-link-text{display:grid;gap:8px;min-width:0}
.amanta-acceso-link-text p{margin:0;font-size:12px;color:#64748b;line-height:1.35}
.amanta-acceso label{display:grid;gap:5px;min-width:0;font-weight:600;font-size:13px}
.amanta-acceso-actions{display:flex;gap:8px;flex-wrap:wrap}
.amanta-acceso-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.amanta-acceso label.amanta-acceso-check{display:flex;align-items:flex-start;gap:8px;font-weight:400;font-size:12px;color:#475569}
.amanta-acceso-warning,.amanta-acceso-ok,.amanta-acceso-error,.amanta-acceso-notice,.amanta-acceso-help{margin:0;border-radius:8px;padding:7px 12px;font-size:13px;line-height:1.35}
.amanta-acceso-warning{background:#fff3d6;color:#92400e}
.amanta-acceso-ok,.amanta-acceso-notice{background:#e7f7ee;color:#166534}
.amanta-acceso-error{background:#fde8e8;color:#b91c1c}
.amanta-acceso-help{background:#f1f5f9;color:#475569}
.amanta-acceso-warning a{color:inherit;font-weight:600}
.amanta-acceso-table{width:100%;border-collapse:collapse;table-layout:fixed}
.amanta-acceso-table th,.amanta-acceso-table td{text-align:left;padding:6px 8px;border-bottom:1px solid #e2e8f0;vertical-align:middle;font-size:13px;overflow:hidden;text-overflow:ellipsis}
.amanta-acceso-table th{font-size:11px;color:#64748b;font-weight:650;white-space:nowrap}
.amanta-acceso-table small{display:block;color:#64748b;font-size:11px}
.amanta-acceso-cell-action{text-align:right!important}
.amanta-acceso-review th:nth-child(1){width:15%}.amanta-acceso-review th:nth-child(2){width:18%}.amanta-acceso-review th:nth-child(3){width:19%}.amanta-acceso-review th:nth-child(4){width:16%}
.amanta-acceso-causes{display:flex;flex-wrap:wrap;gap:4px}
.amanta-asistencia-state.bad{background:#fde8e8;color:#b91c1c}
.amanta-acceso-inline{display:flex;gap:6px;align-items:center;min-width:0}
.amanta-acceso-inline input{flex:1 1 90px;min-width:0}
.amanta-acceso-table select{width:100%}
.amanta-acceso-rows{display:grid;gap:6px}
.amanta-acceso-row{display:grid;grid-template-columns:48px minmax(0,1fr) minmax(220px,auto);gap:12px;align-items:center;padding:6px 8px;border:1px solid #e2e8f0;border-radius:10px}
.amanta-acceso-photo{width:48px;height:48px;border-radius:8px;object-fit:cover;background:#e2e8f0;display:block}
.amanta-acceso-who{display:grid;gap:2px;min-width:0}.amanta-acceso-who span{font-size:12px;color:#64748b}
.amanta-acceso-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:12px;color:#64748b}
.amanta-acceso-pager span{margin-right:auto}
.amanta-acceso-causes+.amanta-acceso-causes{margin-top:2px}
@media(max-width:900px){.amanta-acceso-split{grid-template-columns:1fr}.amanta-acceso-chips{display:none}}


/* ASI-W14: en estas secciones el encabezado de la página y el cuadro se compactan para que la sección entera quepa en 1093x508. */
.amanta-asistencia-rrhh:where([data-nbh-acc]):not(.nbh-z){gap:8px;padding-bottom:6px}
.amanta-asistencia-rrhh:where([data-nbh-acc]):not(.nbh-z) .amanta-asistencia-heading h1{font-size:22px;margin:2px 0}
.amanta-asistencia-rrhh:where([data-nbh-acc]):not(.nbh-z) .amanta-asistencia-heading span{display:none}
.amanta-asistencia-rrhh:where([data-nbh-acc]):not(.nbh-z) .amanta-asistencia-panel{padding:12px;min-height:0}
.amanta-acceso-card{padding:10px 12px;gap:8px}
.amanta-acceso-link{grid-template-columns:116px minmax(0,1fr);gap:12px}
.amanta-acceso-qr{width:116px;height:116px}

/* ASI-W14: en teléfono las filas de las listas pasan a tarjetas (sin columnas recortadas). */
@media(max-width:700px){
 .amanta-acceso .amanta-acceso-table,.amanta-acceso .amanta-acceso-table tbody{display:block}
 .amanta-acceso .amanta-acceso-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .amanta-acceso .amanta-acceso-table tr{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;padding:6px 2px;border-bottom:1px solid #e2e8f0}
 .amanta-acceso .amanta-acceso-table td{display:block;padding:0;border:0;font-size:12px;line-height:1.3;height:auto;min-height:0;overflow:visible;text-overflow:clip;white-space:nowrap}
 .amanta-acceso .amanta-acceso-table td[data-label]::before{content:attr(data-label) " ";color:#64748b}
 .amanta-acceso .amanta-acceso-table .c-name{font-size:14px;font-weight:600;flex:1 1 120px;min-width:0;order:1;overflow:hidden;text-overflow:ellipsis}
 .amanta-acceso .amanta-acceso-table .c-state{order:2}
 .amanta-acceso .amanta-acceso-table .c-action{order:3}
 .amanta-acceso .amanta-acceso-table .c-ced,.amanta-acceso .amanta-acceso-table .c-alta,.amanta-acceso .amanta-acceso-table .c-uso{order:4}
 .amanta-acceso .amanta-acceso-review .c-mark,.amanta-acceso .amanta-acceso-review .c-name,.amanta-acceso .amanta-acceso-review .c-causes,.amanta-acceso .amanta-acceso-review .c-work,.amanta-acceso .amanta-acceso-review .c-note{flex:1 1 100%;order:0;white-space:normal}
 .amanta-acceso .amanta-acceso-review .c-mark{display:flex;gap:8px;align-items:baseline}.amanta-acceso .amanta-acceso-review .c-mark small{display:inline}
 .amanta-acceso .amanta-acceso-review .c-name{display:flex;gap:8px;align-items:baseline;font-size:14px}.amanta-acceso .amanta-acceso-review .c-name small{display:inline}
 .amanta-acceso .amanta-acceso-review .c-work select{width:100%}
 .amanta-acceso-row{grid-template-columns:48px minmax(0,1fr)}.amanta-acceso-row .amanta-acceso-inline{grid-column:1/-1}
 .amanta-acceso-pager button{min-width:84px}
 .amanta-acceso-link{grid-template-columns:96px minmax(0,1fr);gap:10px;justify-items:stretch;align-items:start}
 .amanta-acceso-qr{width:96px;height:96px}
 .amanta-acceso-link-text p{display:none}
 .amanta-acceso-fields{grid-template-columns:1fr 1fr}
 .amanta-acceso-actions{display:grid;grid-template-columns:1fr;gap:6px}
}

/* Pestaña «Obras» de Asistencia (09/10/2026): obras con y sin presupuesto, agrupadas por cliente, y su zona GPS con mapa; una sola pantalla, lista paginada. */
.amanta-obras-bar{display:flex;align-items:center;gap:10px;min-width:0}
.amanta-obras-bar input[type=search]{margin-left:auto;width:240px;max-width:40%}
.amanta-obras-groups{display:flex;gap:6px}
.amanta-acceso .amanta-obras-group.active{background:#18212f;border-color:#18212f;color:#fff}
.amanta-obras-group b{margin-left:4px}
.amanta-obras-table th:nth-child(2){width:28%}.amanta-obras-table th:nth-child(3){width:20%}
.amanta-obras-table tr.amanta-obras-client th{background:#f1f5f9;color:#334155;font-size:12px;font-weight:650;letter-spacing:.02em;padding:5px 8px;white-space:nowrap}
.amanta-obras-back{flex:none}
.amanta-obras-client-chip{border:1px solid #dce3e9;border-radius:999px;padding:3px 10px;font-size:12px;color:#475569;background:#f8fafc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:40%}
.amanta-obras-zone{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:14px;align-items:start}
.amanta-obras-mapwrap{display:grid;gap:6px;min-width:0}
.amanta-obras-map{width:100%;height:clamp(240px,calc(100vh - 250px),520px);border:1px solid #dce3e9;border-radius:12px;overflow:hidden;background:#e8eef2;z-index:0}
.amanta-obras-side{display:grid;gap:8px;min-width:0}
.amanta-obras-maplink{color:#d63a1e;font-weight:600;font-size:13px}
@media(max-width:900px){.amanta-obras-zone{grid-template-columns:1fr}.amanta-obras-map{height:clamp(200px,34vh,320px)}}
@media(max-width:700px){.amanta-obras-bar{flex-wrap:wrap}.amanta-obras-bar input[type=search]{width:100%;max-width:none;margin-left:0}}

/* Cambios de jornada pedidos por Residencia (ASI-W17): lista y detalle de una sola pantalla. */
.amanta-cambios-table th:nth-child(3){width:24%}.amanta-cambios-table th:nth-child(4){width:14%}
.amanta-cambios-detail{max-width:760px}
.amanta-cambios-detail th[scope=row]{width:30%;font-weight:600;color:#475569;white-space:normal}
.amanta-cambios-field{display:grid;gap:4px;font-weight:600;font-size:13px}
/* ASI-W21: motivo del fallo de una aplicación automática (solo RRHH lo ve). */
.amanta-cambios-fallo{color:#b91c1c;font-weight:600}

/* 12/10/2026 — Asistencia y Periodos de RRHH con el estilo de Administración (asistencia-admin-ui.js): título de página con el
   nombre de la ventana, cuadros de vidrio sobre el cielo, barra híbrida de Ingresos, paginador del historial y encabezados de
   tabla en mayúsculas. Todo cabe a 1366×768 sin desplazamiento (las listas se paginan). */
.amanta-asistencia-rrhh--admin{gap:10px}
.amanta-asistencia-rrhh--admin .amanta-asistencia-heading{align-items:end}
.amanta-asistencia-rrhh--admin .amanta-asistencia-heading h1{font-size:30px;font-weight:650;letter-spacing:-.6px;margin:2px 0 0}
.amanta-asistencia-rrhh--admin .amanta-asistencia-heading span{display:none}
.amanta-asistencia-rrhh--admin .amanta-asistencia-heading a{border-radius:999px;border-color:rgba(15,23,42,.08);box-shadow:0 6px 18px -12px rgba(15,23,42,.35)}
.amanta-asistencia-rrhh--admin .amanta-asistencia-panel{background:transparent;border:0;padding:0;min-height:0;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
.amanta-asis-admin{gap:10px}
.amanta-asis-cuadro{display:flex;flex-direction:column;min-width:0}
.amanta-asis-cuadro .amanta-asis-filtro{border-bottom:1px solid #e5e7eb}
.amanta-asis-filtro .amanta-compact-filter-bar{align-items:center}
.amanta-asis-filtro .amanta-date-range-trigger{height:44px;width:100%;border-radius:8px}
.amanta-asis-total{display:flex;flex-direction:column;justify-content:center;align-items:center;height:44px;min-width:0;padding:0 12px;text-align:center;border-radius:999px;background:rgba(0,0,0,.05)}
.amanta-asis-total p{margin:0;font-size:10px;font-weight:650;letter-spacing:.07em;text-transform:uppercase;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.amanta-asis-total strong{font-size:16px;line-height:1.15;font-weight:650;color:#18212f;white-space:nowrap}
.amanta-asis-total[data-tono=in] strong{color:#15803d}
.amanta-asis-total[data-tono=out] strong{color:#b91c1c}
.amanta-redesign-main .amanta-asis-total[data-tono=aviso]{background:rgba(245,158,11,.14)}
.amanta-asis-total[data-tono=aviso] strong{color:#92400e}
.amanta-asis-tabla-marco{min-width:0;overflow:hidden}
.amanta-asis-tabla{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;color:#18212f}
.amanta-asis-tabla thead th{height:40px;padding:0 10px;background:#fff;border-bottom:1px solid #e5e7eb;color:#8b8e97;font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.amanta-asis-tabla td{height:44px;padding:4px 10px;border-bottom:1px solid rgba(0,0,0,.06);text-align:center;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.amanta-asis-tabla-marco--continuo .amanta-asis-tabla--cuerpo td{height:var(--alto-fila,44px);padding-top:0;padding-bottom:0}
/* 23/10/2026: scroll FILA POR FILA (useFilasContinuas): el encabezado va en su tabla y las filas en otra, en una ventana de alto fijo; la primera fila no repite el borde del encabezado. */
.amanta-asis-tabla-marco--continuo .amanta-asis-tabla--cuerpo{margin:0}
.amanta-asis-tabla :is(td,th).c-left{text-align:left}
.amanta-asis-tabla td small{display:block;color:#64748b;font-size:11px;line-height:1.25;overflow:hidden;text-overflow:ellipsis}
.amanta-asis-tabla td>div{overflow:hidden;text-overflow:ellipsis}
.amanta-asis-tabla tbody tr:not(.amanta-obras-client):hover td{background:rgba(248,250,252,.7)}
.amanta-asis-tabla tr.amanta-asis-vacio td{height:120px;color:#64748b;font-size:14px}
.amanta-asis-tabla .amanta-economy-negative{color:#b91c1c;font-weight:600}
.amanta-asis-tabla .amanta-economy-positive{color:#15803d;font-weight:600}
.amanta-acceso .amanta-asis-tabla button,.amanta-asis-admin .amanta-asis-accion{height:34px;border-radius:999px;padding:0 14px;font-size:12.5px;font-weight:600}
.amanta-acceso .amanta-asis-tabla button.primary{background:#d63a1e;border-color:#d63a1e;color:#fff}
.amanta-acceso .amanta-asis-tabla button.amanta-asis-accion--definir{border-color:rgba(214,58,30,.35);color:#c2410c;background:#fff7f4}
.amanta-asis-paginador{min-height:38px}
.amanta-asis-cuadro-head{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #e5e7eb;min-width:0}
.amanta-asis-cuadro-title{min-width:0;flex:1}
.amanta-asis-cuadro-title p{margin:0;font-size:11px;font-weight:650;letter-spacing:.12em;text-transform:uppercase;color:#d63a1e;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.amanta-asis-cuadro-title h2{margin:0;font-size:19px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.amanta-asis-campos{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}
.amanta-acceso label.amanta-asis-campo{gap:4px}
.amanta-acceso label.amanta-asis-campo span{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b}
.amanta-acceso .amanta-asis-campo input{height:42px;border-radius:12px;border-color:#e2e8f0;width:100%}
.amanta-asis-nota{margin:0;font-size:12px;color:#64748b;line-height:1.35}
.amanta-asis-radio-alerta{color:#b45309;cursor:help}
.amanta-asis-pie{display:flex;justify-content:flex-end;gap:8px;margin-top:2px}
.amanta-acceso .amanta-asis-pie button{height:42px;border-radius:999px;padding:0 18px;font-weight:600}
.amanta-acceso .amanta-asis-pie button.primary{box-shadow:0 8px 22px -8px rgba(214,58,30,.55)}
.amanta-asistencia-state.muted{background:#f1f5f9;color:#475569}
/* Obras: el cliente encabeza su grupo y sus obras cuelgan debajo con una guía. */
.amanta-asis-tabla tr.amanta-obras-client th{height:40px;padding:0 12px;background:rgba(241,245,249,.85);border-bottom:1px solid #e2e8f0;text-align:left;text-transform:none;letter-spacing:0;color:#18212f}
.amanta-obras-client-label{display:flex;align-items:center;gap:8px;min-width:0}
.amanta-obras-client-mark{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:none;border-radius:999px;background:#18212f;color:#fff;font-size:11.5px;font-weight:700}
.amanta-obras-client-kicker{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#d63a1e}
.amanta-obras-client-label strong{font-size:13.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.amanta-obras-client-cont{font-size:11.5px;color:#64748b;font-weight:400}
.amanta-obras-client-count{margin-left:auto;font-size:12px;font-weight:500;color:#64748b;white-space:nowrap}
.amanta-obras-client-count b{color:#92400e;font-weight:600}
.amanta-obras-work td.c-name{position:relative;padding-left:44px}
.amanta-obras-branch{position:absolute;left:23px;top:0;bottom:50%;width:12px;border-left:1.5px solid #cbd5e1;border-bottom:1.5px solid #cbd5e1;border-bottom-left-radius:6px}
.amanta-obras-work-name{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis}
.amanta-asis-obras-editor .amanta-obras-form{padding:12px 16px 14px}
.amanta-asis-obras-editor .amanta-obras-zone{grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:16px}
.amanta-asis-obras-editor .amanta-obras-map{height:clamp(240px,calc(100vh - 262px),540px)}
.amanta-asis-obras-editor .amanta-obras-side{gap:9px}
@media(max-width:900px){.amanta-asis-obras-editor .amanta-obras-zone{grid-template-columns:1fr}}
@media(max-width:760px){.amanta-asis-filtro .amanta-compact-filter-bar{grid-template-columns:minmax(0,1fr) 44px!important}.amanta-asis-filtro .amanta-compact-filter-bar>:not(label):not(button[aria-label="Limpiar filtros"]){display:none}}
/* Enlace y ajustes (12/10/2026): datos del acceso arriba, enlace con QR y pasos del ingreso por cédula. */
.amanta-enlace{display:grid;gap:12px;min-width:0}
.amanta-enlace-datos{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));grid-auto-flow:column;gap:12px}
.amanta-acceso .amanta-enlace-dato{display:grid;gap:2px;padding:14px 18px;text-decoration:none;color:#18212f;min-width:0}
.amanta-enlace-dato span{font-size:12px;color:#64748b;font-weight:500}
.amanta-enlace-dato strong{font-size:28px;font-weight:650;line-height:1.15;color:#18212f}
.amanta-enlace-dato small{font-size:11.5px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.amanta-enlace-dato:hover{border-color:rgba(214,58,30,.35)}
.amanta-enlace-cuerpo{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:stretch}
.amanta-enlace-link{display:grid;grid-template-columns:184px minmax(0,1fr);gap:20px;align-items:center;padding:18px 20px}
.amanta-enlace .amanta-acceso-qr{width:184px;height:184px;border-radius:14px}
.amanta-enlace-texto{display:grid;gap:10px;min-width:0}
.amanta-enlace-texto p{margin:0;font-size:13px;color:#475569;line-height:1.45}
.amanta-enlace-acciones{justify-content:flex-start;flex-wrap:wrap}
.amanta-acceso .amanta-enlace-acciones :is(button,a){height:42px;border-radius:999px;padding:0 18px;font-weight:600}
.amanta-acceso .amanta-enlace-copiar{border-color:rgba(37,99,235,.25);background:#eff6ff;color:#1d4ed8}
.amanta-acceso .amanta-enlace-whatsapp{border-color:rgba(22,163,74,.3);background:#ecfdf3;color:#15803d}
.amanta-enlace-pasos ol{list-style:decimal;margin:0;padding:14px 20px 4px 40px;display:grid;gap:10px;font-size:13px;color:#334155}
.amanta-enlace-pasos li b{margin-right:4px;color:#18212f}
.amanta-enlace-pasos .amanta-acceso-warning,.amanta-enlace-pasos .amanta-acceso-ok{margin:10px 16px 16px}
@media(max-width:900px){.amanta-enlace-cuerpo{grid-template-columns:1fr}.amanta-enlace-datos{grid-auto-flow:row;grid-template-columns:1fr}.amanta-enlace-link{grid-template-columns:110px minmax(0,1fr)}.amanta-enlace .amanta-acceso-qr{width:110px;height:110px}}
/* Verificaciones pendientes (12/10/2026): detalle del pedido dentro del cuadro de Administración. */
.amanta-cambios-detalle .amanta-cambios-detail{padding:12px 16px 16px;max-width:none}
.amanta-cambios-detalle .amanta-cambios-detail>:is(table,label){max-width:820px}
.amanta-cambios-detalle .amanta-acceso-inline{gap:8px;padding-top:4px}
.amanta-acceso .amanta-cambios-detalle .amanta-acceso-inline :is(button,a){height:40px;border-radius:999px;padding:0 18px;font-weight:600}
.amanta-acceso .amanta-cambios-detalle input,.amanta-acceso .amanta-cambios-detalle select{height:42px;border-radius:12px;border-color:#e2e8f0}
/* Periodos de RRHH (12/10/2026): formato original de «Definir Quincena» (Pagos.js, pestaña quincena). */
.amanta-periodos{display:grid;gap:12px;min-width:0}
.amanta-periodos-activo{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:16px;align-items:stretch;padding:16px 20px}
.amanta-periodos-activo-texto{display:grid;gap:8px;min-width:0}
.amanta-management .amanta-periodos-eyebrow{margin:0;font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:rgba(214,58,30,.78)}
.amanta-periodos-titulo{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.amanta-management .amanta-periodos-titulo h2{margin:0;font-size:21px;font-weight:650;letter-spacing:-.3px}
.amanta-periodos-chip{display:inline-flex;align-items:center;border-radius:999px;padding:3px 12px;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;border:1px solid}
.amanta-periodos-chip--ok{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.amanta-periodos-chip--muted{background:#f1f5f9;border-color:#e2e8f0;color:#475569}
.amanta-periodos-chip--pending{background:#fff7ed;border-color:#fed7aa;color:#c2410c}
.amanta-management .amanta-periodos-detalle{margin:0;font-size:13px;color:#64748b}
.amanta-periodos-acciones{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.amanta-management .amanta-periodos-acciones>button{height:42px;border-radius:18px;border:1px solid #ead8d1;background:#fff;color:#374151;font-weight:600;font-size:13px;padding:0 13px}
.amanta-management .amanta-periodos-acciones>button:hover:not(:disabled){border-color:rgba(214,58,30,.25);background:#fff5f1}
.amanta-management .amanta-periodos-acciones>button.amanta-periodos-definir-boton{display:inline-flex;align-items:center;gap:8px;background:#d63a1e;border-color:#d63a1e;color:#fff;box-shadow:0 8px 22px -8px rgba(214,58,30,.55)}
.amanta-periodos-duracion{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:14px 18px;border-radius:18px;background:linear-gradient(135deg,rgba(254,226,226,.55),rgba(255,255,255,.7));border:1px solid rgba(254,202,202,.6)}
.amanta-periodos-duracion span{font-size:12px;color:#64748b}
.amanta-periodos-duracion strong{font-size:28px;font-weight:650;color:#b91c1c;line-height:1.1}
.amanta-periodos-duracion small{font-size:11.5px;color:#64748b;line-height:1.35}
.amanta-periodos-cuerpo{display:grid;grid-template-columns:300px minmax(0,1fr);gap:12px;align-items:start}
.amanta-periodos-calendario{padding:14px 16px 16px}
.amanta-periodos-calendario header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.amanta-periodos-calendario header strong{font-size:13px;font-weight:600}
.amanta-management .amanta-periodos-calendario header button{height:28px;width:28px;padding:0;border-radius:999px;font-size:16px;line-height:1}
.amanta-periodos-dias{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}
.amanta-periodos-dia-nombre{font-size:10px;font-weight:600;letter-spacing:.08em;color:#64748b;padding-bottom:2px}
.amanta-periodos-dia{display:flex;align-items:center;justify-content:center;height:30px;border-radius:10px;font-size:13px;font-weight:500;color:#18212f;border:1px solid transparent}
.amanta-periodos-dia.otro-mes{color:#cbd5e1}
.amanta-periodos-dia.en-rango{background:#fff1ec;border-color:#fbcbbb;color:#d63a1e;font-weight:600}
.amanta-periodos-registros .amanta-asis-tabla td{height:40px}
.amanta-management .amanta-periodos-registros input{height:44px}
.amanta-periodos-definir{display:grid;gap:14px;padding:4px 2px}
.amanta-periodos-fila{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.amanta-periodos-fila--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.amanta-periodos-campo{display:grid;gap:6px;min-width:0}
.amanta-periodos-campo--ancho{grid-column:1/-1}
.amanta-periodos-campo>span{font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#64748b}
.amanta-periodos-campo :is(input,select){height:46px;width:100%;border:1px solid #ead8d1;border-radius:16px;padding:0 14px;background:#fff;font:inherit;font-size:14px;font-weight:600;color:#18212f}
.amanta-periodos-resumen>div{display:grid;gap:4px;padding:12px 16px;border:1px solid #e5e7eb;border-radius:16px;background:#fafafa}
.amanta-periodos-resumen span{font-size:10.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#64748b}
.amanta-periodos-resumen strong{font-size:17px;font-weight:650}
.amanta-periodos-cerrar{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}
.amanta-periodos-cerrar input{width:18px;height:18px;accent-color:#d63a1e}
.amanta-periodos-cerrar small{font-weight:400;color:#64748b;font-size:12px}
.amanta-periodos-avisos{border:1px solid #fde68a;background:#fffbeb;border-radius:12px;padding:8px 14px;color:#92400e;font-size:12.5px}
.amanta-periodos-avisos p{margin:0}
.amanta-periodos-avisos p:first-child{font-size:10.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#b45309}
.amanta-periodos-definir footer{display:flex;justify-content:flex-end;gap:10px}
.amanta-periodos-definir footer button{height:46px;border-radius:999px;padding:0 20px;border:1px solid #e5e7eb;background:#fff;font-weight:600;font-size:14px;cursor:pointer}
.amanta-periodos-definir footer button.primary{background:#d63a1e;border-color:#d63a1e;color:#fff;box-shadow:0 8px 22px -8px rgba(214,58,30,.55)}
.amanta-periodos-definir footer button:disabled{opacity:.5;cursor:default}
@media(max-width:1100px){.amanta-periodos-activo,.amanta-periodos-cuerpo{grid-template-columns:1fr}}
.amanta-management .amanta-asis-filtro label>input{padding-left:36px}
.amanta-management .amanta-asis-filtro button[aria-label="Limpiar filtros"]{height:44px;width:44px;padding:0;display:inline-flex;align-items:center;justify-content:center}
/* La pantalla no se desplaza: los encabezados «que siguen» al desplazar no pintan un fondo blanco sobre el vidrio. */
:is(.amanta-periodos,.amanta-asis-admin) .amanta-following-header{background:transparent!important;box-shadow:none!important}
/* DOC-W48: pedidos de obra de Documentación móvil bajo los pedidos de equipos, con aire entre los dos cuadros. */
.amanta-doc-requests{margin-top:28px;padding-top:20px;border-top:1px solid rgba(15,23,42,.08)}

/* 20/10/2026 — «Habilitar marcación con la app»: a la izquierda la lista de Personal con su llave; a la derecha el enlace y los pasos, apilados (sin desplazamiento de la página). */
.amanta-personal-llave{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;min-width:0}
.amanta-personal-llave .amanta-asis-accion{white-space:nowrap;flex:0 0 auto}
.amanta-personal-aviso{color:#92400e;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.amanta-personal-table td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.amanta-personal-table th{white-space:normal;line-height:1.15}
.amanta-personal-llave .amanta-asis-accion{padding:0 12px;font-size:12px}
.amanta-personal-llave{gap:6px}.amanta-personal-table td:last-child{padding-left:4px;padding-right:4px}
/* 20/10/2026 — regla de estructura de pantalla: chips · filtros híbridos · cuadros de datos (+ cuadro especial). El cuadro especial reúne enlace, QR y pasos. */
.amanta-personal-filtros{overflow:visible}
.amanta-personal-filtros .amanta-asis-filtro{border-bottom:0}
/* Cuadro especial: vertical y compacto (columna angosta); con poca altura se ocultan la explicación y los pasos. */
@media(max-width:700px){
.amanta-personal-table col:nth-child(2),.amanta-personal-table col:nth-child(3),.amanta-personal-table col:nth-child(5),.amanta-personal-table th:nth-child(2),.amanta-personal-table td:nth-child(2),.amanta-personal-table th:nth-child(3),.amanta-personal-table td:nth-child(3),.amanta-personal-table th:nth-child(5),.amanta-personal-table td:nth-child(5){display:none}
.amanta-personal-table col:nth-child(1){width:38%}.amanta-personal-table col:nth-child(4){width:62%}
.amanta-personal-llave{flex-wrap:wrap;white-space:normal}.amanta-personal-llave .amanta-asis-accion{white-space:normal;height:auto;min-height:32px;padding:4px 10px;line-height:1.2}
.amanta-personal .amanta-asis-paginador{flex-wrap:wrap;justify-content:center;gap:6px}
}
.amanta-personal-table td{padding-top:5px;padding-bottom:5px}.amanta-enlace>.amanta-enlace-datos .amanta-enlace-dato{padding:11px 18px}
@media(max-width:700px){.amanta-personal-table td.amanta-personal-llave{overflow:visible}.amanta-personal-llave .amanta-asis-accion{max-width:100%}}
@media(max-width:700px){.amanta-personal-table .amanta-personal-llave{flex-direction:column;align-items:stretch;gap:4px}.amanta-personal-table .amanta-personal-llave .amanta-asis-accion{white-space:normal!important;width:100%;max-width:100%;overflow-wrap:anywhere;font-size:11px}}
@media(max-width:700px){.amanta-personal-table{width:100%!important;table-layout:fixed}.amanta-personal-table col:nth-child(1){width:36%!important}.amanta-personal-table col:nth-child(4){width:64%!important}}
.amanta-personal-table th{overflow:visible;text-overflow:clip;white-space:normal;line-height:1.1;padding-left:4px;padding-right:4px}
table.amanta-personal-table th{white-space:normal!important;text-overflow:clip!important;overflow:visible!important;line-height:1.1}
.amanta-enlace-dato--accion{cursor:pointer}.amanta-enlace-dato--accion[aria-pressed=true]{border-color:rgba(214,58,30,.5)}
.amanta-rechazada-motivo{height:32px;min-width:0;flex:1 1 110px;border:1px solid #cbd5e1;border-radius:8px;padding:0 8px;font-size:12px}
.amanta-rechazadas-table td.c-llave{overflow:visible}
table.amanta-rechazadas-table th,table.amanta-rechazadas-table td{padding-left:5px;padding-right:5px;font-size:12px}table.amanta-rechazadas-table td.c-llave{padding-left:3px;padding-right:3px}
@media(max-width:700px){table.amanta-rechazadas-table col:nth-child(2),table.amanta-rechazadas-table col:nth-child(4),table.amanta-rechazadas-table col:nth-child(5),table.amanta-rechazadas-table th:nth-child(2),table.amanta-rechazadas-table td:nth-child(2),table.amanta-rechazadas-table th:nth-child(4),table.amanta-rechazadas-table td:nth-child(4),table.amanta-rechazadas-table th:nth-child(5),table.amanta-rechazadas-table td:nth-child(5){display:none}table.amanta-rechazadas-table{width:100%!important;table-layout:fixed}table.amanta-rechazadas-table col:nth-child(1){width:30%!important}table.amanta-rechazadas-table col:nth-child(3){width:32%!important}table.amanta-rechazadas-table col:nth-child(6){width:38%!important}table.amanta-rechazadas-table td.c-llave{overflow:visible}table.amanta-rechazadas-table .amanta-personal-llave{flex-direction:column;align-items:stretch;gap:4px}table.amanta-rechazadas-table .amanta-personal-llave .amanta-asis-accion,table.amanta-rechazadas-table .amanta-rechazada-motivo{width:100%;max-width:100%}}
/* 21/10/2026 — UI-35 vertical: el cuadro especial (QR, enlace, botones y pasos) es una FRANJA a todo el ancho DEBAJO de la tabla de Personal; nada al costado. */
.amanta-enlace-cuerpo{align-items:start}
.amanta-enlace-franja{display:grid;grid-template-columns:auto minmax(0,1.8fr) minmax(0,1fr);gap:8px 18px;align-items:center;padding:10px 16px}
.amanta-enlace-especial .amanta-acceso-qr{width:92px;height:92px;border-radius:10px}
.amanta-enlace-franja-link{display:grid;gap:5px;min-width:0}
.amanta-enlace-franja-head{display:flex;align-items:baseline;gap:10px;min-width:0}
.amanta-enlace-franja-head p{margin:0;font-size:11px;font-weight:650;letter-spacing:.12em;text-transform:uppercase;color:#d63a1e;opacity:.8;white-space:nowrap}
.amanta-enlace-franja-head h2{margin:0;font-size:17px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.amanta-enlace-franja-desc{margin:0;font-size:12px;line-height:1.35;color:#475569}
.amanta-enlace-linea{display:flex;align-items:flex-end;gap:8px;min-width:0}
.amanta-enlace-linea label.amanta-asis-campo{flex:1 1 220px;min-width:0}
.amanta-enlace-linea .amanta-asis-campo input{height:36px}
.amanta-enlace-especial .amanta-enlace-acciones{flex:0 0 auto;margin-top:0;flex-wrap:nowrap;justify-content:flex-start}
.amanta-acceso .amanta-enlace-especial .amanta-enlace-acciones :is(button,a){height:36px;padding:0 14px;font-size:12px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.amanta-enlace-especial .amanta-enlace-pasos-lista{list-style:decimal;margin:0;padding:0 0 0 18px;display:grid;gap:3px;font-size:12px;color:#334155;min-width:0}
.amanta-enlace-especial .amanta-enlace-pasos-lista b{color:#18212f}
.amanta-enlace-especial>.amanta-acceso-warning,.amanta-enlace-especial>.amanta-acceso-ok{margin:0 16px 10px;font-size:12px;padding:5px 10px}
/* Poca altura: la franja se reduce a QR + enlace + botones (la explicación y los pasos se ocultan; el aviso de zona GPS se conserva). */
@media(max-height:780px) and (min-width:761px){
.amanta-enlace-franja{padding:8px 14px}
.amanta-enlace-especial .amanta-acceso-qr{width:64px;height:64px}
.amanta-enlace-franja-desc{display:none}
.amanta-enlace-especial .amanta-enlace-pasos-lista{font-size:11.5px;gap:1px}
.amanta-enlace-franja-link{gap:3px}
}
@media(max-height:600px) and (min-width:761px){
/* 1093x508: la pantalla cabe sin desplazar: tarjetas más bajas, franja de una sola banda (QR + enlace + botones) con el aviso de zona GPS en una línea debajo. */
.amanta-enlace,.amanta-enlace-cuerpo{gap:8px}
.amanta-enlace>.amanta-enlace-datos .amanta-enlace-dato{padding:3px 16px;gap:0}
.amanta-enlace>.amanta-enlace-datos .amanta-enlace-dato strong{font-size:20px;line-height:1.1}
.amanta-enlace>.amanta-enlace-datos .amanta-enlace-dato small{display:none}
.amanta-enlace-franja{grid-template-columns:auto minmax(0,1fr);padding:4px 12px}
.amanta-enlace .amanta-personal-table td{padding-top:1px;padding-bottom:1px}
.amanta-personal-filtros .amanta-asis-filtro{padding-top:2px;padding-bottom:2px}
.amanta-personal-filtros .amanta-compact-filter-bar>*{--alto:36px}
.amanta-personal-filtros :is(input[type=search],button[aria-label="Limpiar filtros"]){height:36px!important}
.amanta-personal-filtros button[aria-label="Limpiar filtros"]{width:36px!important}
.amanta-personal-filtros .amanta-asis-total{height:36px}
.amanta-personal-filtros [role=combobox],.amanta-personal-filtros .h-11{height:36px!important;min-height:36px}
.amanta-enlace .amanta-personal-table thead th{height:26px;padding-top:2px;padding-bottom:2px}
.amanta-enlace .amanta-personal .amanta-asis-paginador{padding-top:2px;padding-bottom:2px;min-height:32px}
.amanta-enlace .amanta-personal .amanta-asis-paginador :is(button,a){height:28px;min-width:28px}
.amanta-enlace-especial .amanta-acceso-qr{width:46px;height:46px}
.amanta-enlace-franja{padding:4px 12px}
.amanta-enlace-franja-link{display:flex;align-items:center;gap:10px}
.amanta-enlace-franja-head{flex:0 0 auto}
.amanta-enlace-franja-head p{display:none}
.amanta-enlace-franja-head h2{font-size:15px}
.amanta-enlace-linea{flex:1 1 auto}
.amanta-enlace-linea label.amanta-asis-campo>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.amanta-enlace-especial .amanta-enlace-pasos-lista{display:none}
.amanta-enlace-especial>.amanta-acceso-warning,.amanta-enlace-especial>.amanta-acceso-ok{margin:0 12px 5px;padding:2px 8px;font-size:11.5px;line-height:1.3}
.amanta-enlace-linea label.amanta-asis-campo{min-width:150px}
.amanta-enlace-linea .amanta-asis-campo input{height:32px}
.amanta-acceso .amanta-enlace-especial .amanta-enlace-acciones :is(button,a){height:32px}
}
/* Teléfono: la franja se apila y puede desplazarse como hasta ahora. */
@media(max-width:760px){
.amanta-enlace-franja{grid-template-columns:1fr;justify-items:center}
.amanta-enlace-franja-link{width:100%}
.amanta-enlace-linea{flex-direction:column;align-items:stretch}
.amanta-enlace-especial .amanta-enlace-acciones{flex-wrap:wrap}
.amanta-enlace-especial .amanta-enlace-pasos-lista{width:100%}
}
