.dni-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.dni-search .secondary-button { padding: 10px 15px; }
#btnLookupDni { display: none; }
.locked-control { background: #f3f5f7 !important; color: #5f6f7d !important; cursor: not-allowed; }
.field-help { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.4; }
.field-help.success { color: var(--green); }
.field-help.error { color: var(--red); }
.field-help.loading { color: var(--blue); }
.access-group { padding: 9px 14px; background: #edf2f6; border-top: 1px solid var(--line); color: #34485a; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; }
.access-group.depth-1 { padding-left: 32px; background: #f7f9fb; text-transform: none; letter-spacing: 0; }
.access-group.depth-2 { padding-left: 48px; background: #fbfcfd; text-transform: none; letter-spacing: 0; }
.access-row.depth-1 { padding-left: 64px; }
.access-row.depth-2, .access-row.depth-3 { padding-left: 80px; }
.type-grid { grid-template-columns: repeat(4, 1fr); }
.cost-center-field { margin-top: 18px; }
.cost-center-field > strong { display: block; color: #3a4b5d; font-size: 12px; }
.cost-center-field > small { display: block; margin: 5px 0 11px; color: var(--muted); font-size: 10px; }
.cost-center-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.cost-center-actions .secondary-button { padding: 8px 12px; }
.cost-center-options { display: grid; grid-template-columns: 1fr 1fr; max-height: 270px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
.cost-center-options label { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; border-bottom: 1px solid #edf1f5; color: #3a4b5d; font-size: 10px; cursor: pointer; }
.cost-center-options label:nth-child(odd) { border-right: 1px solid #edf1f5; }
.cost-center-options label:has(input:checked) { background: #f1f8fd; }
.cost-center-options span { line-height: 1.35; }
.cost-center-options b { display: block; color: var(--blue); font-size: 9px; }
.access-year-field { margin-top: 16px; align-items: end; }
.year-note { align-self: center; color: var(--muted); font-size: 10px; line-height: 1.5; }
.access-ready { color: var(--muted); font-size: 9px; text-align: center; }
.existing-user-loaded .existing-lock { opacity: .68; }
.existing-user-loaded .existing-lock input,
.existing-user-loaded .existing-lock textarea,
.existing-user-loaded .existing-lock select,
.existing-user-loaded .existing-lock button,
.existing-user-loaded .existing-lock .cost-center-options { pointer-events: none; background-color: #f3f5f7; }
.existing-user-loaded .existing-lock.cost-center-editable { opacity: 1; }
.existing-user-loaded .existing-lock.cost-center-editable input,
.existing-user-loaded .existing-lock.cost-center-editable button,
.existing-user-loaded .existing-lock.cost-center-editable .cost-center-options { pointer-events: auto; background-color: #fff; }
.admin-access-tree { max-height: none; border-top: 1px solid var(--line); border-radius: 10px; }
.admin-access-tree .module-head { cursor: default; }
.admin-access-tree .access-row select { opacity: 1; pointer-events: none; }
@media (max-width: 620px) {
    .dni-search { grid-template-columns: 1fr; }
    .access-row.depth-1, .access-row.depth-2, .access-row.depth-3 { padding-left: 20px; }
    .type-grid, .cost-center-options { grid-template-columns: 1fr; }
}
