/* ATSA: presentación únicamente. Bootstrap 5; componentes actualizados y apariencia del portal conservada. */
:root { --atsa-blue:#007eb8; --atsa-cyan:#00acec; --atsa-navy:#153c52; --atsa-ink:#203b4c; --atsa-muted:#68808f; --atsa-line:#dfe9ef; --atsa-bg:#f3f7fa; --atsa-radius:14px; }
html { min-height:100%; }
body.atsa-ui { background:var(--atsa-bg); color:var(--atsa-ink); font-family:"Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif; font-size:14px; line-height:1.55; -webkit-font-smoothing:antialiased; }
.atsa-ui a { color:#007cae; text-decoration:none; }
.atsa-ui a:hover { color:#005d88; }
.atsa-ui a:focus-visible,.atsa-ui button:focus-visible,.atsa-ui input:focus-visible { outline:3px solid #00acec; outline-offset:3px; }
.atsa-ui h1,.atsa-ui h2,.atsa-ui h3,.atsa-ui h4 { color:var(--atsa-navy); font-weight:650; letter-spacing:-.025em; }
.atsa-ui h2 { font-size:28px; margin-top:0; margin-bottom:22px; }
.atsa-ui h4 { font-size:18px; }
.atsa-ui hr { border-top-color:var(--atsa-line); }
.atsa-ui .text-muted,.atsa-ui small { color:var(--atsa-muted); }
.atsa-shell { min-height:100vh; }
/* Navegación: se conservan el collapse y todos los menús y destinos originales. */
.atsa-header.navbar { margin:0; border:0; border-top:4px solid var(--atsa-cyan); border-bottom:1px solid var(--atsa-line); border-radius:0; background:#fff; box-shadow:0 4px 18px rgba(20,66,90,.035); }
.atsa-header>.container-fluid { max-width:1560px; padding:0 34px; }
.atsa-header .navbar-header { min-height:82px; }
.atsa-header .atsa-brand { height:82px; display:flex; align-items:center; gap:13px; padding:0 25px 0 0; margin-left:0; color:var(--atsa-navy); }
.atsa-brand img { width:48px; height:48px; object-fit:contain; }
.atsa-brand-copy { display:flex; flex-direction:column; gap:3px; }
.atsa-brand-name { color:#077fae; font-size:11px; font-weight:750; letter-spacing:.14em; line-height:1.3; }
.atsa-brand-title { color:var(--atsa-navy); font-size:16px; font-weight:650; line-height:1.3; }
.atsa-header .navbar-nav { margin-top:15px; margin-bottom:15px; }
.atsa-header.navbar-default li.dropdown { background:transparent; }
.atsa-header.navbar-default .navbar-nav>li>a { color:#476476; padding:15px 17px; border-radius:9px; font-weight:600; font-size:13px; }
.atsa-header.navbar-default .navbar-nav>li>a:hover,.atsa-header.navbar-default .navbar-nav>li>a:focus,.atsa-header.navbar-default .navbar-nav>.open>a,.atsa-header.navbar-default .navbar-nav>.open>a:hover,.atsa-header.navbar-default .navbar-nav>.open>a:focus { background:#edf8fd; color:#007caf; }
.atsa-header .navbar-nav>li>a>.glyphicon,.atsa-header .navbar-nav>li>a>.fa { color:#0589be; }
.atsa-header .caret { margin-left:7px; color:#89a4b3; }
.atsa-header .dropdown-menu { margin-top:5px; padding:8px; min-width:240px; border:1px solid var(--atsa-line); border-radius:12px; box-shadow:0 12px 35px rgba(22,57,80,.12); }
.atsa-header .dropdown-menu>li>a,.atsa-header .dropdown-menu .dropdown-submenu>a { display:block; color:var(--atsa-ink); padding:11px 12px; white-space:normal; border-radius:6px; font-size:13px; }
.atsa-header .dropdown-menu>li>a:hover,.atsa-header .dropdown-menu .dropdown-submenu>a:hover { background:#edf8fd; color:#007caf; }
.atsa-header .dropdown-menu .divider { background:var(--atsa-line); margin:6px 0; }
.atsa-header .dropdown-user>a { min-width:145px; }
.atsa-header .userData { height:auto; min-height:38px; margin:-7px 8px -8px 0; max-width:240px; float:left; }
.atsa-header .userName { color:var(--atsa-navy); font-size:13px; line-height:21px; }
.atsa-header .bizName { color:#708996; font-size:11px; line-height:16px!important; max-width:240px; text-overflow:ellipsis; overflow:hidden; white-space:nowrap; }
.atsa-header .navbar-toggle { position:relative; margin-top:24px; margin-right:0; top:auto; right:auto; border:1px solid var(--atsa-line); border-radius:8px; background:#f7fbfd; }
.atsa-header.navbar-default .navbar-toggle .icon-bar,.atsa-header.navbar-default .navbar-toggle.collapsed .icon-bar { background:#167faa; }
.atsa-main { max-width:1560px; margin:0 auto; padding:34px 34px 48px; }
.atsa-page-context { margin-bottom:24px; display:flex; align-items:center; gap:8px; font-size:12px; color:#78909e; }
.atsa-context-dot { height:5px; width:5px; border-radius:50%; background:#abc0cc; }
.atsa-page-surface { background:#fff; border:1px solid var(--atsa-line); border-radius:var(--atsa-radius); padding:28px; box-shadow:0 5px 20px rgba(31,77,105,.025); }
.atsa-page-surface>.row:first-child { margin-bottom:6px; }
.atsa-page-surface>br { display:none; }
.atsa-page-surface>.row:first-child h2 { margin-top:6px; margin-bottom:16px; }
.atsa-footer { max-width:1560px; padding:0 34px 25px; margin:0 auto; display:flex; justify-content:space-between; gap:15px; color:#8398a5; font-size:11px; }
.atsa-footer strong { color:#67828f; font-weight:600; }
/* Campos, filtros y estados mantienen sus clases de validación. */
.atsa-ui label.control-label,.atsa-ui .form-group>label { color:#4d6b7e; font-size:12px; font-weight:650; }
.atsa-ui .form-control { min-height:41px; padding:9px 12px; border:1px solid #d4e2e9; border-radius:8px; color:#244659; background:#fff; box-shadow:none; font-size:13px; transition:border-color .15s,box-shadow .15s; }
.atsa-ui textarea.form-control { min-height:90px; }
.atsa-ui .form-control:focus { border-color:#09a0d1; box-shadow:0 0 0 3px rgba(0,172,236,.1); }
.atsa-ui .form-control[readonly],.atsa-ui .form-control[disabled] { background:#f4f8fa; color:#6b8492; }
.atsa-ui .form-horizontal { padding:6px 0 20px; }
.atsa-ui .form-horizontal:after { content:""; display:table; clear:both; }
.atsa-ui .form-horizontal .form-group { margin-bottom:24px; }
.atsa-ui .form-horizontal .control-label { padding-top:11px; }
.atsa-ui .input-group-addon { border-color:#d4e2e9; background:#f1f7fa; color:#678291; font-weight:600; font-size:12px; border-radius:8px; }
.atsa-ui .input-group .form-control { border-top-left-radius:0; border-bottom-left-radius:0; }
.atsa-ui .input-group-sm>.form-control,.atsa-ui .input-group-sm>.input-group-addon { height:35px; min-height:35px; padding-top:6px; padding-bottom:6px; }
.atsa-ui .has-error .form-control { border-color:#ce6c74; }
.atsa-ui .has-success .form-control { border-color:#55a38b; }
.atsa-ui .chosen-container { font-size:13px; }
.atsa-ui .chosen-container-single .chosen-single { height:41px; line-height:39px; border:1px solid #d4e2e9; border-radius:8px; background:#fff; box-shadow:none; color:#244659; padding-left:12px; }
.atsa-ui .chosen-container-single .chosen-single div { right:7px; }
.atsa-ui .chosen-container-single .chosen-single div b { background-position:0 11px; }
.atsa-ui .chosen-container-active.chosen-with-drop .chosen-single,.atsa-ui .chosen-container-active .chosen-single { border-color:#09a0d1; box-shadow:0 0 0 3px rgba(0,172,236,.1); background:#fff; }
.atsa-ui .chosen-container .chosen-drop { width:100%!important; border:1px solid #b8d8e7; border-radius:0 0 8px 8px; box-shadow:0 10px 22px rgba(29,66,90,.1); }
.atsa-ui .chosen-container .chosen-results li { padding:9px 10px; }
.atsa-ui .chosen-container .chosen-results li.highlighted { background:#007eb8; }
.atsa-ui .input-group .chosen-container-single .chosen-single { border-top-left-radius:0; border-bottom-left-radius:0; height:35px; line-height:33px; }
.atsa-ui .input-group .chosen-container-single .chosen-single div b { background-position:0 8px; }
/* Se preservan los colores semánticos de las acciones existentes. */
.atsa-ui .btn { font-size:13px; font-weight:600; border-radius:8px; padding:10px 16px; line-height:1.35; box-shadow:none; border-width:1px; transition:background-color .15s,border-color .15s,box-shadow .15s; cursor:pointer; }
.atsa-ui .btn:focus { outline-offset:3px; }
.atsa-ui .btn-primary { background:#007eb8; border-color:#007eb8; color:#fff; }
.atsa-ui .btn-primary:hover,.atsa-ui .btn-primary:focus { background:#00699a; border-color:#00699a; }
.atsa-ui .btn-info { background:#edf8ff; border-color:#bae0f2; color:#087cac; }
.atsa-ui .btn-info:hover,.atsa-ui .btn-info:focus { background:#dff3fc; border-color:#80c4e1; color:#04648d; }
.atsa-ui .btn-success { background:#16846d; border-color:#16846d; color:#fff; }
.atsa-ui .btn-success:hover,.atsa-ui .btn-success:focus { background:#106e5b; border-color:#106e5b; }
.atsa-ui .btn-warning { background:#fff5df; border-color:#efd69e; color:#92671b; }
.atsa-ui .btn-warning:hover,.atsa-ui .btn-warning:focus { background:#ffedc7; border-color:#e4bd6e; color:#7d5511; }
.atsa-ui .btn-danger { background:#fff0f0; border-color:#ecc9cd; color:#b34c5b; }
.atsa-ui .btn-danger:hover,.atsa-ui .btn-danger:focus { background:#fce1e5; border-color:#dca0aa; color:#983b49; }
.atsa-ui .btn-default { background:#fff; border-color:#d7e4ea; color:#516f80; }
.atsa-ui .btn-default:hover,.atsa-ui .btn-default:focus { background:#f2f7fa; border-color:#b9cfdc; color:#244b62; }
.atsa-ui .btn-sm { padding:8px 13px; font-size:12px; }
.atsa-ui .btn-xs { padding:6px 9px; font-size:11px; border-radius:6px; }
.atsa-ui .btn[disabled],.atsa-ui .btn.disabled { cursor:not-allowed; opacity:.52; box-shadow:none; }
.atsa-ui .text-danger { color:#b24c5b; }
.atsa-ui .text-success { color:#13826b; }
/* Tablas: el orden y el DOM de DataTables permanecen intactos. */
.atsa-ui .table { font-size:12px; width:100%; border-collapse:separate; border-spacing:0; margin-top:14px; margin-bottom:16px; }
.atsa-ui .table>thead>tr>th { background:#f2f7fa; border-bottom:1px solid #dce7ef; border-top:0; color:#607c8f; font-size:10px; font-weight:700; letter-spacing:.045em; text-transform:uppercase; padding:14px 13px; vertical-align:middle; line-height:1.5; }
.atsa-ui .table>thead>tr>th:first-child { border-top-left-radius:8px; }
.atsa-ui .table>thead>tr>th:last-child { border-top-right-radius:8px; }
.atsa-ui .table>tbody>tr>td { padding:16px 13px; border-top:0; border-bottom:1px solid #eaf0f4; vertical-align:middle; color:#3c5c6f; line-height:1.6; }
.atsa-ui .table>tbody>tr:not(.faltaMotivo):not(.estaOK):hover { background:#f7fbfe; }
.atsa-ui .table>tbody>tr:last-child>td { border-bottom:0; }
.atsa-ui .table .btn { margin:3px 0; white-space:nowrap; }
.atsa-ui .table .form-control { font-size:12px; padding-left:9px; padding-right:9px; }
.atsa-ui .table .input-group-addon { font-size:12px; padding-left:8px; padding-right:8px; }
.atsa-ui .dataTables_wrapper { margin-top:12px; }
.atsa-ui .dataTables_wrapper>.row { margin-left:0; margin-right:0; }
.atsa-ui .dataTables_wrapper>.row>div:first-child { padding-left:0; }
.atsa-ui .dataTables_wrapper>.row>div:last-child { padding-right:0; }
.atsa-ui div.dataTables_wrapper div.dataTables_filter { text-align:right; }
.atsa-ui div.dataTables_wrapper div.dataTables_filter label,.atsa-ui div.dataTables_wrapper div.dataTables_length label { font-size:12px; color:#6c8594; }
.atsa-ui div.dataTables_wrapper div.dataTables_filter input { width:220px; margin-left:10px; }
.atsa-ui div.dataTables_wrapper div.dataTables_length select { min-height:37px; margin:0 7px; width:76px; padding-top:6px; padding-bottom:6px; }
.atsa-ui div.dataTables_wrapper div.dataTables_info { font-size:11px; color:#78909d; padding-top:18px; }
.atsa-ui .pagination { margin-top:12px!important; }
.atsa-ui .pagination>li>a,.atsa-ui .pagination>li>span { border-color:#dde8ef; color:#638091; background:#fff; padding:7px 11px; font-size:11px; }
.atsa-ui .pagination>.active>a,.atsa-ui .pagination>.active>a:hover { background:#007eb8; border-color:#007eb8; color:#fff; }
.atsa-ui .pagination>.disabled>a { color:#a3b5c0; }
.atsa-ui .pagination>li:first-child>a { border-radius:7px 0 0 7px; }
.atsa-ui .pagination>li:last-child>a { border-radius:0 7px 7px 0; }
.atsa-ui .table tr.faltaMotivo { background:#fff1f2; }
.atsa-ui .table tr.estaOK { background:#ebf8f2; }
/* Modal, alertas y notificaciones: mismos botones y eventos Bootstrap/Noty. */
.atsa-ui .modal-content { border:1px solid #d9e6ee; border-radius:16px; box-shadow:0 25px 80px rgba(18,51,73,.22); }
.atsa-ui .modal-header { border-bottom:1px solid #e8eff4; padding:22px 24px; }
.atsa-ui .modal-title { color:var(--atsa-navy); font-size:18px; font-weight:650; }
.atsa-ui .modal-body { padding:25px 24px; font-size:14px; line-height:1.7; }
.atsa-ui .modal-footer { border-top:1px solid #e8eff4; background:#f8fbfd; padding:16px 24px; border-radius:0 0 16px 16px; }
.atsa-ui .modal-backdrop.in { opacity:.38; }
.atsa-ui .close { color:#6d8999; opacity:1; font-weight:400; font-size:28px; }
.atsa-ui .alert { border-radius:9px; font-size:12px; padding:13px 17px; }
.atsa-ui .alert-info { background:#eef8fd; color:#367c9d; border-color:#cce7f4; }
.atsa-ui .alert-danger { background:#fff1f3; color:#a34353; border-color:#edcfd5; }
.atsa-ui ul[id^="noty_"] { border-radius:12px!important; box-shadow:0 18px 60px rgba(21,64,90,.16)!important; overflow:hidden; }
.atsa-ui .noty_message { padding:20px!important; font-size:14px!important; }
.atsa-ui .noty_buttons { padding:12px 18px!important; background:#f7fafc!important; border-top:1px solid var(--atsa-line)!important; }
.atsa-ui .blockUI.blockMsg { border:1px solid var(--atsa-line)!important; border-radius:12px; box-shadow:0 15px 40px rgba(21,64,90,.12); }
/* Inicio: accesos a las pantallas existentes, sin cifras inventadas. */
.atsa-home { padding:9px 0 12px; }
.atsa-home-head { padding:24px 0 31px; display:flex; justify-content:space-between; gap:24px; align-items:flex-start; }
.atsa-eyebrow { font-size:10px; font-weight:750; letter-spacing:.14em; text-transform:uppercase; color:#0781b2; margin:0 0 12px; }
.atsa-home h1 { font-size:38px; line-height:1.22; margin:0 0 13px; }
.atsa-home-lead { color:#7a909d; max-width:620px; font-size:15px; line-height:1.8; margin:0; }
.atsa-home-mark { padding:10px 15px; border:1px solid #d7e8f0; border-radius:8px; background:#f5fafc; color:#577d91; font-size:11px; white-space:nowrap; }
.atsa-launch-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.atsa-launch-card { display:flex; flex-direction:column; padding:25px; border:1px solid #dce8f0; border-radius:12px; min-height:232px; color:var(--atsa-ink)!important; background:#fff; transition:border-color .15s,box-shadow .15s; }
.atsa-launch-card:hover { border-color:#87c8e2; box-shadow:0 8px 24px rgba(22,80,110,.07); }
.atsa-launch-icon { width:45px; height:45px; border-radius:10px; background:#eaf7fd; display:flex; align-items:center; justify-content:center; color:#0885b7; font-size:20px; margin-bottom:20px; }
.atsa-launch-icon.green { background:#eaf7f1; color:#34866e; }
.atsa-launch-icon.amber { background:#fcf4e4; color:#9e7938; }
.atsa-launch-card h3 { font-size:18px; margin:0 0 10px; }
.atsa-launch-card p { font-size:13px; color:#768c9a; line-height:1.75; margin:0 0 20px; }
.atsa-launch-action { margin-top:auto; color:#0781b2; font-weight:650; font-size:12px; display:flex; justify-content:space-between; align-items:center; }
.atsa-home-note { margin-top:26px; padding:20px 22px; border:1px solid #e2edf3; border-radius:10px; background:#f7fbfd; display:flex; align-items:center; gap:14px; font-size:12px; color:#6f8997; }
.atsa-home-note>.fa { color:#2195bd; font-size:19px; }
.atsa-home-note strong { display:block; font-size:13px; margin-bottom:3px; color:#466f84; }
/* Autenticación pública. No modifica acciones ni campos del formulario. */
.atsa-auth .atsa-page-context,.atsa-auth .atsa-footer { display:none; }
.atsa-auth .atsa-main { max-width:1220px; padding-top:42px; padding-bottom:42px; }
.atsa-auth .atsa-page-surface { background:transparent; padding:0; border:0; box-shadow:none; }
.atsa-auth-grid { display:grid; grid-template-columns:minmax(0,1fr) 430px; gap:70px; align-items:center; min-height:calc(100vh - 180px); }
.atsa-auth-copy { padding:18px 0 25px; }
.atsa-auth-copy h1 { font-size:44px; line-height:1.19; font-weight:650; margin:0 0 21px; max-width:540px; }
.atsa-auth-copy h1 span { color:#0084bb; }
.atsa-auth-copy>p { max-width:440px; font-size:15px; line-height:1.85; color:#78909e; margin-bottom:30px; }
.atsa-auth-feature { display:flex; align-items:center; gap:11px; margin:14px 0; color:#557789; font-size:13px; }
.atsa-auth-feature>.fa { width:27px; height:27px; text-align:center; line-height:27px; background:#e4f3fa; color:#0589b9; border-radius:7px; }
.atsa-auth-note { margin-top:48px; color:#96aab6; font-size:11px; }
.atsa-auth .card.card-container { width:100%; max-width:none; margin:0; padding:34px 36px; border:1px solid #dce8f0; border-top:3px solid #00acec; border-radius:15px; background:#fff; box-shadow:0 12px 40px rgba(33,88,116,.06); }
.atsa-auth .profile-img-card { display:block; width:62px; height:62px; margin:0 0 25px; border-radius:0; object-fit:contain; }
.atsa-auth .card h2 { font-size:24px; margin:0 0 8px; }
.atsa-auth .atsa-login-subtitle { font-size:12px; color:#8b9eaa; margin-bottom:26px; }
.atsa-auth .login-fields label { display:block; font-size:12px; color:#587284; font-weight:650; margin:0 0 8px; }
.atsa-auth .login-fields .form-control { min-height:46px; margin:0 0 19px; font-size:14px; }
.atsa-auth .login-fields .btn-signin { height:46px; min-height:46px; font-size:14px; margin-top:8px; margin-bottom:19px; cursor:pointer; background:#007eb8; border-color:#007eb8; border-radius:8px; }
.atsa-auth .login-fields .btn-signin:hover { background:#00699a; }
.atsa-auth .forgot-password { display:block; text-align:center; font-size:12px; margin-top:14px; }
.atsa-auth-links { display:flex; justify-content:center; gap:22px; border-top:1px solid #e7eef3; margin-top:24px; padding-top:21px; font-size:11px; }
.atsa-auth-links a { color:#7a929f; }
.atsa-login-error { margin:0 0 18px; }
.atsa-return { display:grid; place-items:center; min-height:100vh; padding:30px 20px; }
.atsa-return-card { max-width:560px; background:#fff; border:1px solid var(--atsa-line); border-top:3px solid var(--atsa-cyan); border-radius:16px; padding:36px; box-shadow:0 12px 40px rgba(25,66,88,.05); }
.atsa-return-card>img { width:58px; height:58px; object-fit:contain; margin-bottom:24px; }
.atsa-return-card h1 { font-size:27px; margin:0 0 18px; }
.atsa-return-card p { color:#708796; font-size:14px; line-height:1.85; margin-bottom:26px; }
/* El formulario original de recupero conserva su estructura y sus eventos. */
.atsa-recovery .container { width:auto; padding:0; }
.atsa-recovery .card.card-container { max-width:430px; margin:40px auto; }
.atsa-recovery .form-signin .form-control { min-height:46px; margin-bottom:18px!important; }
.atsa-recovery .btn-signin { height:46px!important; padding:12px!important; background:#16846d!important; }
/* Móvil: navegación plegable y tablas con scroll, sin ocultar columnas/acciones. */
@media (min-width:768px) and (max-width:1100px) {
 .atsa-header>.container-fluid { padding:0 22px; }
 .atsa-brand-title { font-size:13px; }
 .atsa-header .atsa-brand { padding-right:10px; }
 .atsa-brand img { width:40px; height:40px; }
 .atsa-header.navbar-default .navbar-nav>li>a { padding-left:11px; padding-right:11px; }
 .atsa-header .userData { max-width:145px; }
 .atsa-header .bizName { max-width:145px; }
 .atsa-auth-grid { gap:35px; grid-template-columns:minmax(0,1fr) 390px; }
 .atsa-auth-copy h1 { font-size:36px; }
}
@media (max-width:991px) {
 .atsa-page-surface { padding:22px; }
 .atsa-main { padding:25px 22px 35px; }
 .atsa-launch-grid { gap:13px; }
 .atsa-launch-card { padding:20px; }
 .atsa-home h1 { font-size:31px; }
 .atsa-home-mark { display:none; }
 .atsa-ui .form-horizontal .control-label { text-align:left; padding-bottom:8px; }
 .atsa-ui .form-horizontal>.row>div { margin-bottom:12px; }
 .atsa-ui #modalRendicionDetalle .modal-dialog { width:calc(100% - 40px)!important; max-width:900px; }
}
@media (max-width:767px) {
 .atsa-header>.container-fluid { padding:0 20px; }
 .atsa-header .navbar-header,.atsa-header .atsa-brand { min-height:74px; height:74px; }
 .atsa-header .atsa-brand { gap:10px; }
 .atsa-brand img { width:42px; height:42px; }
 .atsa-brand-name { font-size:9px; }
 .atsa-brand-title { font-size:13px; }
 .atsa-header .navbar-toggle { margin-top:20px; }
 .atsa-header .navbar-collapse { border-top-color:#e9f0f4; }
 .atsa-header .navbar-nav { margin:10px 0; }
 .atsa-header.navbar-default .navbar-nav>li>a { padding:12px; }
 .atsa-header.navbar-default .navbar-nav .open .dropdown-menu>li>a,.atsa-header .dropdown-menu .dropdown-submenu>a { color:#456b80!important; }
 .atsa-header .dropdown-menu { border:0; box-shadow:none; background:#f6fafc; margin-top:4px; margin-bottom:6px; min-width:0; }
 .atsa-header .navbar-nav.navbar-right { border-top:1px solid #e4edf3; padding-top:8px; }
 .atsa-header .userData,.atsa-header .bizName { max-width:240px; }
 .atsa-main { padding:24px 14px 30px; }
 .atsa-page-context { margin-bottom:15px; font-size:11px; }
 .atsa-page-surface { border-radius:12px; padding:20px 15px; }
 .atsa-ui h2 { font-size:23px; }
 .atsa-page-surface>.row:first-child { margin-bottom:16px; }
 .atsa-page-surface>.row:first-child .form-group { margin-top:10px; }
 .atsa-footer { padding:0 18px 20px; flex-direction:column; gap:4px; }
 .atsa-ui .dataTables_wrapper { overflow-x:auto; padding-bottom:8px; }
 .atsa-ui .dataTables_wrapper .table { min-width:800px; }
 .atsa-ui .dataTables_wrapper .dataTables_filter { text-align:left!important; margin-top:12px; }
 .atsa-ui .dataTables_wrapper .dataTables_filter input { max-width:180px; }
 .atsa-ui .dataTables_wrapper>.row>div { padding-left:0!important; padding-right:0!important; }
 .atsa-ui .table { font-size:12px; }
 .atsa-ui .table>thead>tr>th { padding:12px 10px; }
 .atsa-ui .table>tbody>tr>td { padding:12px 10px; }
 .atsa-ui .form-horizontal { padding-top:0; }
 .atsa-ui .form-horizontal .col-md-10.col-md-offset-1>.btn { margin-top:8px; }
 .atsa-ui .modal-dialog { margin:18px 12px; }
 .atsa-ui .modal-header,.atsa-ui .modal-body { padding:20px; }
 .atsa-ui .modal-footer { padding:15px 20px; }
 .atsa-ui #modalRendicionDetalle .modal-dialog { width:calc(100% - 24px)!important; }
 .atsa-ui .modal-body { overflow-x:auto; }
 .atsa-home-head { padding:4px 0 25px; }
 .atsa-home h1 { font-size:29px; }
 .atsa-home-lead { font-size:13px; }
 .atsa-launch-grid { grid-template-columns:1fr; gap:14px; }
 .atsa-launch-card { min-height:190px; padding:22px; }
 .atsa-launch-icon { margin-bottom:17px; }
 .atsa-home-note { align-items:flex-start; padding:17px; font-size:11px; }
 .atsa-auth .atsa-main { padding:26px 18px 40px; }
 .atsa-auth-grid { grid-template-columns:1fr; gap:25px; min-height:0; }
 .atsa-auth-copy { padding:8px 3px 0; }
 .atsa-auth-copy h1 { font-size:31px; margin-bottom:14px; max-width:100%; }
 .atsa-auth-copy>p { font-size:13px; margin:0; line-height:1.7; }
 .atsa-auth-feature,.atsa-auth-note { display:none; }
 .atsa-auth .card.card-container { padding:28px 25px; max-width:470px; margin:0 auto; }
 .atsa-auth .profile-img-card { width:51px; height:51px; margin-bottom:21px; }
 .atsa-return-card { padding:28px; }
}
@media (prefers-reduced-motion:reduce) { .atsa-ui * { transition:none!important; scroll-behavior:auto!important; } }
@media print {
 body.atsa-ui { background:#fff; }
 .atsa-header,.atsa-footer,.atsa-page-context,.atsa-home-mark { display:none!important; }
 .atsa-main { max-width:none; padding:0; }
 .atsa-page-surface { padding:0; border:0; box-shadow:none; }
}

/* La edición conserva todos sus campos y sus eventos. El selector de motivo
   mantiene altura compacta en escritorio y espacio para desplegarse en móvil. */
.atsa-liquidacion-form #tbl .chosen-container-single .chosen-single { line-height:31px; }
.atsa-liquidacion-form #tbl .chosen-container-single .chosen-single div b { background-position:0 5px; }
@media (max-width:767px) {
 .atsa-liquidacion-form .dataTables_wrapper { overflow:visible; }
 .atsa-liquidacion-form .dataTables_wrapper .table { min-width:0; }
 .atsa-liquidacion-form #tbl { display:block; }
 .atsa-liquidacion-form #tbl thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
 .atsa-liquidacion-form #tbl tbody { display:block; width:100%; }
 .atsa-liquidacion-form #tbl tbody tr { display:block; padding:10px 15px 15px; margin-bottom:16px; border:1px solid #dfe9ef; border-radius:10px; }
 .atsa-liquidacion-form #tbl tbody td { display:block; width:100%; border:0; padding:8px 0; white-space:normal; }
 .atsa-liquidacion-form #tbl tbody td:before { display:block; font-size:10px; font-weight:650; letter-spacing:.035em; color:#6c8595; margin-bottom:6px; }
 .atsa-liquidacion-form #tbl tbody td:nth-child(1):before { content:"PERSONA"; }
 .atsa-liquidacion-form #tbl tbody td:nth-child(2):before { content:"DNI"; }
 .atsa-liquidacion-form #tbl tbody td:nth-child(3):before { content:"HABERES REMUNERATIVOS"; }
 .atsa-liquidacion-form #tbl tbody td:nth-child(4):before { content:"CUOTA SINDICAL ATSA"; }
 .atsa-liquidacion-form #tbl tbody td:nth-child(5):before { content:"MOTIVO"; }
 .atsa-liquidacion-form .chosen-container { width:100%!important; }
 .atsa-liquidacion-form #tbl .chosen-container-single .chosen-single { height:35px!important; line-height:36px; }
 .atsa-liquidacion-form #tbl .chosen-container-single .chosen-single div b { background-position:0 8px; }
 .atsa-liquidacion-form .form-group { margin-left:0; margin-right:0; }
 .atsa-liquidacion-form .col-md-10.col-md-offset-1 { padding-left:0; padding-right:0; }
}

.atsa-monto { font-weight: 700; white-space: nowrap; }
.atsa-reporte-motivo { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 220px; max-width: 460px; }
#mp-test-guide ol { padding-left: 22px; }
#mp-test-guide li { margin: 8px 0; }
#mp-copy-area { margin: 12px 0; }
#reporte-motivo { resize: vertical; }
