/* ATS embed.css — scoped to #ats-module, acento RRHH violeta */
#ats-module {
  --navy:#1e3d70;--navy2:#2a5298;--green:#4C7D38;--green-d:#456B34;--orange:#d4621a;
  --red:#c0392b;--bg:#f5f5f5;--border:#e0e0e0;--text:#1f2937;
  --muted:#9ca3af;--light:#f5f5f5;
  font-family:Calibri,"Segoe UI",Arial,sans-serif;
}
#ats-module .login-card{width:380px;background:#fff;border-radius:16px;border:.5px solid var(--border);overflow:hidden;box-shadow:0 8px 32px rgba(30,61,112,.12)}
#ats-module .login-header{background:var(--navy);padding:28px 32px}
#ats-module .login-sub{color:rgba(255,255,255,.65);font-size:13px;margin-top:8px}
#ats-module .login-body{padding:28px 32px;display:flex;flex-direction:column;gap:16px}
#ats-module .f-label{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;display:block;margin-bottom:5px}
#ats-module .inp{width:100%;padding:9px 12px;border:1.5px solid var(--border);border-radius:5px;font-size:14px;outline:none;font-family:inherit}
#ats-module .inp:focus{border-color:var(--navy)}
#ats-module .btn-login{background:var(--navy);color:#fff;border:none;border-radius:8px;padding:11px;font-size:14px;font-weight:600;cursor:pointer;width:100%}
#ats-module .btn-login:hover{background:var(--navy2)}
#ats-module .login-hint{font-size:12px;color:var(--muted);text-align:center}
#ats-module .login-err{font-size:13px;color:var(--red);display:none}
#ats-module .topbar{background:var(--navy);padding:0 20px;height:52px;display:flex;align-items:center;gap:16px;flex-shrink:0}
#ats-module .topbar-sep{width:.5px;height:36px;background:rgba(255,255,255,.2)}
#ats-module .topbar-user{font-size:12px;color:rgba(255,255,255,.7)}
#ats-module .btn-sm{font-size:12px;padding:5px 12px;border:.5px solid rgba(255,255,255,.3);border-radius:8px;background:rgba(255,255,255,.1);cursor:pointer;color:#fff}
#ats-module .btn-sm:hover{background:rgba(255,255,255,.2)}
#ats-module .btn-white{background:#fff;color:var(--navy);border-color:#fff;font-weight:600}
#ats-module .btn-white:hover{background:#f0f2f7}
#ats-module .navtabs{background:#fff;border-bottom:.5px solid var(--border);display:flex;padding:0 20px;flex-shrink:0}
#ats-module .navtab{font-size:13px;padding:10px 18px;cursor:pointer;border-bottom:2px solid transparent;color:var(--muted);white-space:nowrap}
#ats-module .navtab.active{color:var(--navy);border-bottom-color:var(--navy);font-weight:500}
#ats-module .statsbar{background:var(--white,#fff);border-bottom:.5px solid var(--border);padding:12px 20px;display:flex;gap:12px;overflow-x:auto;flex-shrink:0;align-items:center}
#ats-module .statsbar .kpi-chip .kv{font-size:24px}
.kpi-chip.muted .kv{color:var(--gray-3,#9e9e9e)}
#ats-module .stat{display:flex;flex-direction:column;gap:1px;min-width:70px}
#ats-module .stat-val{font-size:20px;font-weight:700}
#ats-module .stat-val--navy  {color:#1e3d70}
#ats-module .stat-val--green {color:#4d7a38}
#ats-module .stat-val--danger{color:#c43b1a}
#ats-module .stat-val--amber {color:#d4621a}
#ats-module .stat-val--muted {color:#6b7280}
html[data-theme="dark"] #ats-module .stat-val--navy  {color:#5b92d4}
html[data-theme="dark"] #ats-module .stat-val--green {color:#5a9e48}
html[data-theme="dark"] #ats-module .stat-val--danger{color:#e57373}
html[data-theme="dark"] #ats-module .stat-val--amber {color:#ffb74d}
html[data-theme="dark"] #ats-module .stat-val--muted {color:#7a88b0}
#ats-module .stat-lbl{font-size:10px;color:var(--muted);white-space:nowrap}
#ats-module .tab-view{flex:1;overflow:hidden;display:flex;flex-direction:column}
#ats-module .kanban-wrap{flex:1;overflow-x:auto;overflow-y:hidden;padding:16px;display:flex;align-items:stretch}
#ats-module .kanban{display:flex;gap:12px;min-width:max-content;align-items:stretch;min-height:0}
#ats-module .stage{width:215px;flex-shrink:0;display:flex;flex-direction:column;min-height:0}
#ats-module .stage-head{height:44px;border-radius:8px 8px 0 0;padding:0 12px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}
#ats-module .stage-head-label{font-size:11px;color:#fff;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:162px}
#ats-module .stage-cnt{font-size:10px;background:rgba(255,255,255,.25);color:#fff;border-radius:20px;padding:1px 7px;flex-shrink:0}
#ats-module .stage-body{background:rgba(255,255,255,.65);border-radius:0 0 8px 8px;border:.5px solid rgba(0,0,0,.08);border-top:none;flex:1;overflow-y:auto;padding:8px;display:flex;flex-direction:column;gap:7px;min-height:200px;transition:background .15s}
#ats-module .stage-body.drag-over{background:rgba(30,61,112,.08);border:1.5px dashed var(--navy);border-top:none}
#ats-module .card-hidden{display:none}
#ats-module .card{background:#fff;border-radius:8px;border:1px solid var(--border);padding:10px;cursor:grab;transition:border-color .15s,box-shadow .15s;user-select:none}
#ats-module .card:hover{border-color:var(--navy);box-shadow:0 3px 10px rgba(0,0,0,.1)}
#ats-module .card.dragging{opacity:.4;cursor:grabbing;transform:rotate(1.5deg)}
#ats-module .card-name{font-size:12px;font-weight:600;color:var(--navy);margin-bottom:2px}
#ats-module .card-pos{font-size:11px;color:var(--muted);margin-bottom:7px}
#ats-module .card-foot{display:flex;align-items:center;justify-content:space-between}
#ats-module .card-resp{display:flex;align-items:center;gap:4px;font-size:10px;color:var(--muted)}
#ats-module .av{width:18px;height:18px;border-radius:50%;background:#e8edf5;display:flex;align-items:center;justify-content:center;font-size:8px;font-weight:700;color:var(--navy)}
#ats-module .chip{font-size:10px;padding:2px 7px;border-radius:20px;font-weight:500;background:#e8edf5;color:var(--navy)}
#ats-module .card-drag-hint{font-size:10px;color:#ccc;padding:6px 8px;text-align:center;border:.5px dashed #e0e4ed;border-radius:8px}
#ats-module .stage-add{font-size:11px;color:#bbb;padding:6px 8px;cursor:pointer;border-radius:8px;display:flex;align-items:center;gap:5px}
#ats-module .stage-add:hover{background:rgba(0,0,0,.05);color:#666}
#ats-module .ct-wrap{flex:1;overflow-y:auto;padding:20px}
#ats-module .ct-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap;gap:12px}
#ats-module .ct-title{font-size:16px;font-weight:600;color:var(--navy)}
#ats-module .ct-stats{display:flex;gap:12px;flex-wrap:wrap}
#ats-module .ct-stat{background:#fff;border:1px solid var(--border);border-radius:8px;padding:10px 16px;text-align:center}
#ats-module .ct-stat-n{font-size:22px;font-weight:700;color:var(--navy)}
#ats-module .ct-stat-l{font-size:10px;color:var(--muted)}
#ats-module .ct-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
#ats-module .ct-card{background:#fff;border:1px solid var(--border);border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:10px}
#ats-module .ct-card-top{display:flex;align-items:center;gap:10px}
#ats-module .ct-av{width:44px;height:44px;border-radius:50%;background:#e8edf5;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;color:var(--navy);flex-shrink:0;overflow:hidden}
#ats-module .ct-card-name{font-size:14px;font-weight:600;color:var(--navy)}
#ats-module .ct-card-pos{font-size:11px;color:var(--muted)}
#ats-module .ct-card-date{font-size:10px;color:var(--muted);margin-top:1px}
#ats-module .ct-prog{margin-top:2px}
#ats-module .ct-prog-lbl{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:3px}
#ats-module .ct-prog-bar{background:#eee;border-radius:100px;height:4px;overflow:hidden}
#ats-module .ct-prog-fill{height:100%;border-radius:100px;background:var(--navy);transition:width .5s}
#ats-module .ct-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
#ats-module .ct-badge{font-size:10px;font-weight:500;padding:2px 8px;border-radius:100px;background:#e8edf5;color:var(--navy)}
#ats-module .ct-badge.done{background:#e8f5ee;color:#1e7e34}
#ats-module .btn-onboard{font-size:12px;padding:6px 14px;border:none;border-radius:5px;background:var(--green);color:#fff;cursor:pointer;font-weight:600}
#ats-module .btn-onboard:hover{background:var(--green-d)}
#ats-module .btn-onboard.view{background:#e8edf5;color:var(--navy)}
#ats-module .btn-onboard.view:hover{background:#d0daea}
#ats-module .ct-empty{text-align:center;padding:60px 20px;color:var(--muted)}
#ats-module .ct-empty-icon{font-size:48px;margin-bottom:12px}
#ats-module .desc-wrap{flex:1;overflow-y:auto;padding:20px}
#ats-module .desc-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px}
#ats-module .desc-title{font-size:16px;font-weight:600;color:var(--navy);white-space:nowrap}
#ats-module .desc-search{flex:1;max-width:340px;padding:8px 12px;border:1.5px solid var(--border);border-radius:5px;font-size:13px;outline:none;font-family:inherit}
#ats-module .desc-search:focus{border-color:var(--navy)}
#ats-module .desc-list{display:flex;flex-direction:column;gap:8px}
#ats-module .desc-item{background:#fff;border:1px solid var(--border);border-radius:8px;padding:12px 16px;display:flex;align-items:center;gap:12px}
#ats-module .desc-av{width:36px;height:36px;border-radius:50%;background:#fcebeb;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:var(--red);flex-shrink:0}
#ats-module .desc-info{flex:1;min-width:0}
#ats-module .desc-name{font-size:13px;font-weight:500;color:var(--text)}
#ats-module .desc-pos{font-size:11px;color:var(--muted)}
#ats-module .desc-reason{font-size:11px;color:var(--muted);font-style:italic;margin-top:2px}
#ats-module .desc-actions{display:flex;gap:8px;flex-shrink:0}
#ats-module .btn-reactivar{font-size:11px;padding:5px 12px;border:.5px solid var(--green);border-radius:8px;background:#fff;color:var(--green);cursor:pointer;font-weight:500}
#ats-module .btn-reactivar:hover{background:#eaf3de}
#ats-module .btn-ver{font-size:11px;padding:5px 12px;border:.5px solid var(--border);border-radius:8px;background:#fff;color:var(--text);cursor:pointer}
#ats-module .btn-ver:hover{border-color:var(--navy);color:var(--navy)}
#ats-module .desc-empty{text-align:center;padding:60px 20px;color:var(--muted)}
#ats-module .overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:100;align-items:flex-start;justify-content:flex-end}
#ats-module .overlay.open{display:flex}
#ats-module .panel{width:min(450px,100vw);height:100%;background:#fff;border-left:.5px solid var(--border);display:flex;flex-direction:column;overflow:hidden}
#ats-module .panel-top{background:var(--navy);padding:14px 16px;display:flex;align-items:flex-start;justify-content:space-between;flex-shrink:0}
#ats-module .panel-name{font-size:15px;font-weight:700;color:#fff}
#ats-module .panel-pos{font-size:11px;color:rgba(255,255,255,.65);margin-top:2px}
#ats-module .btn-close{background:rgba(255,255,255,.15);border:none;border-radius:50%;width:28px;height:28px;cursor:pointer;color:#fff;font-size:15px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
#ats-module .stage-sel-bar{background:var(--light);border-bottom:.5px solid var(--border);padding:10px 16px;display:flex;align-items:center;gap:10px;flex-shrink:0}
#ats-module .stage-sel-lbl{font-size:11px;color:var(--muted);white-space:nowrap}
#ats-module .sel{flex:1;font-size:13px;padding:6px 8px;border:1.5px solid var(--border);border-radius:5px;background:#fff;cursor:pointer;font-family:inherit}
#ats-module .btn-mover{font-size:11px;padding:6px 12px;border:none;border-radius:5px;background:var(--green);color:#fff;cursor:pointer;white-space:nowrap;font-weight:600}
#ats-module .move-error{display:none;margin:8px 12px 0;padding:10px 12px;background:#fff3cd;border:.5px solid #f59e0b;border-radius:8px;font-size:12px;color:#7a5200;line-height:1.6}
#ats-module .move-error.show{display:block}
#ats-module .panel-scroll{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:10px;display:flex;flex-direction:column;gap:8px}
#ats-module .section{border:.5px solid var(--border);border-radius:10px;overflow:hidden;flex-shrink:0}
#ats-module .section.stage-current{border-color:var(--navy);border-width:2px}
#ats-module .section.stage-done{border-color:#b8d9a8}
#ats-module .section.danger{border-color:#f0c4c4}
#ats-module .sec-head{background:var(--light);padding:10px 14px;border-bottom:.5px solid var(--border);font-size:12px;font-weight:600;color:var(--navy);letter-spacing:.03em;display:flex;align-items:center;gap:8px;cursor:pointer;user-select:none}
#ats-module .sec-head:hover{background:#eef0f5}
#ats-module .section.stage-current .sec-head{background:#1e3d70;color:#fff;border-bottom-color:var(--navy)}
#ats-module .section.stage-current .sec-head .chevron{color:rgba(255,255,255,.6)}
#ats-module .section.stage-done .sec-head{background:#f0f8ee;color:#2d6a1f}
#ats-module .section.danger .sec-head{background:#fff0f0;border-color:#f0c4c4;color:var(--red);cursor:default}
#ats-module .sec-head .chevron{margin-left:auto;font-size:10px;transition:transform .2s;color:var(--muted)}
#ats-module .section.open .chevron{transform:rotate(180deg)}
#ats-module .stage-badge{font-size:9px;padding:2px 7px;border-radius:20px;font-weight:700;letter-spacing:.02em;white-space:nowrap}
#ats-module .stage-badge.cur{background:rgba(255,255,255,.25);color:#fff}
#ats-module .stage-badge.done{background:#d4edda;color:#1e7e34}
#ats-module .stage-badge.inc{background:#fff3cd;color:#854f0b}
#ats-module .stage-badge.fut{background:#f0f2f7;color:var(--muted)}
#ats-module .sec-body{display:none;padding:12px 14px;flex-direction:column;gap:9px}
#ats-module .section.open .sec-body{display:flex}
#ats-module .stage-stepper{display:flex;align-items:center;gap:0;padding:10px 14px;background:#fff;border-radius:10px;border:.5px solid var(--border);overflow-x:auto;scrollbar-width:none}
#ats-module .stage-stepper::-webkit-scrollbar{display:none}
#ats-module .step-item{display:flex;align-items:center;flex-shrink:0}
#ats-module .step-dot{width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;flex-shrink:0;transition:all .2s}
#ats-module .step-dot.done{background:var(--green);color:#fff}
#ats-module .step-dot.cur{background:var(--navy);color:#fff;box-shadow:0 0 0 3px rgba(30,61,112,.2)}
#ats-module .step-dot.inc{background:#f59e0b;color:#fff}
#ats-module .step-dot.fut{background:#e8edf5;color:var(--muted)}
#ats-module .step-line{width:16px;height:2px;background:#e8edf5;flex-shrink:0}
#ats-module .step-line.done{background:var(--green)}
#ats-module .f-row{display:flex;flex-direction:column;gap:3px}
#ats-module .f-lbl2{font-size:11px;color:var(--navy);text-transform:uppercase;letter-spacing:.04em;font-weight:700}
#ats-module .f-req{color:var(--red);margin-left:2px}
#ats-module .f-inp{width:100%;padding:8px 10px;border:1.5px solid var(--border);border-radius:5px;font-size:13px;outline:none;font-family:inherit;color:var(--text)}
#ats-module .f-inp:focus{border-color:var(--navy)}
#ats-module .date-input{width:100%;padding:8px 10px;border:1.5px solid var(--border);border-radius:5px;font-size:13px;outline:none;font-family:inherit;color:var(--text);cursor:pointer;background:#fff}
#ats-module .date-input:focus{border-color:var(--navy)}
#ats-module .date-input::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.5;filter:invert(25%) sepia(80%) saturate(500%) hue-rotate(195deg)}
#ats-module .date-input::-webkit-calendar-picker-indicator:hover{opacity:1}
#ats-module .f-ta{width:100%;padding:8px 10px;border:1.5px solid var(--border);border-radius:5px;font-size:13px;outline:none;font-family:inherit;min-height:80px;resize:vertical;color:var(--text)}
#ats-module .f-ta:focus{border-color:var(--navy)}
#ats-module .f-sel{width:100%;padding:8px 10px;border:1.5px solid var(--border);border-radius:5px;font-size:13px;font-family:inherit;background:#fff;cursor:pointer;color:var(--text)}
#ats-module .grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#ats-module .upload-box{border:.5px dashed #d1d5db;border-radius:8px;overflow:hidden}
#ats-module .upload-box-top{padding:8px 12px;display:flex;align-items:center;justify-content:space-between;background:var(--light)}
#ats-module .upload-box-lbl{font-size:11px;color:var(--muted)}
#ats-module .btn-attach{font-size:11px;padding:4px 10px;border:.5px solid var(--navy);border-radius:6px;background:#fff;color:var(--navy);cursor:pointer;font-weight:600}
#ats-module .btn-attach:hover{background:#e8edf5}
#ats-module .file-list{padding:0}
#ats-module .file-item{display:flex;align-items:center;justify-content:space-between;padding:6px 12px;border-top:.5px solid var(--border);font-size:11px;color:var(--text)}
#ats-module .file-item-name{display:flex;align-items:center;gap:5px;overflow:hidden}
#ats-module .file-item-name span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
#ats-module .file-del{background:none;border:none;cursor:pointer;color:var(--muted);font-size:13px;padding:0 2px}
#ats-module .file-del:hover{color:var(--red)}
#ats-module .file-hidden{display:none}
#ats-module .panel-footer{padding:12px 16px;border-top:.5px solid var(--border);background:#fff;flex-shrink:0;display:flex;gap:8px}
#ats-module .btn-save-panel{flex:1;background:var(--green);color:#fff;border:none;border-radius:5px;padding:10px;font-size:13px;font-weight:600;cursor:pointer}
#ats-module .btn-save-panel:hover{background:var(--green-d)}
#ats-module .btn-delete{padding:10px 14px;border:.5px solid #f0c4c4;border-radius:8px;background:#fff;cursor:pointer;color:var(--red);font-size:13px;font-weight:600;white-space:nowrap}
#ats-module .btn-delete:hover{background:#fff0f0}
#ats-module .modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:300;align-items:center;justify-content:center}
#ats-module .modal-overlay.open{display:flex}
#ats-module .modal-box{background:#fff;border-radius:14px;width:380px;max-width:95vw;overflow:hidden;border:.5px solid var(--border)}
#ats-module .modal-head{background:var(--red);padding:14px 18px;display:flex;align-items:center;justify-content:space-between}
#ats-module .modal-head-title{font-size:14px;font-weight:600;color:#fff}
#ats-module .modal-body{padding:18px;display:flex;flex-direction:column;gap:14px}
#ats-module .modal-msg{font-size:13px;color:var(--text);line-height:1.6}
#ats-module .modal-actions{display:flex;gap:8px;justify-content:flex-end}
#ats-module .btn-cancelm{font-size:13px;padding:9px 18px;border:.5px solid #d1d5db;border-radius:8px;background:#fff;cursor:pointer;color:var(--text)}
#ats-module .btn-confirmdel{font-size:13px;padding:9px 18px;border:none;border-radius:8px;background:var(--red);color:#fff;cursor:pointer;font-weight:600}
#ats-module .email-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:200;align-items:center;justify-content:center}
#ats-module .email-overlay.open{display:flex}
#ats-module .email-modal{background:#fff;border-radius:14px;width:500px;max-width:95vw;overflow:hidden;border:.5px solid var(--border)}
#ats-module .email-head{background:var(--navy);padding:16px 18px;display:flex;align-items:center;justify-content:space-between}
#ats-module .email-head-title{font-size:14px;font-weight:600;color:#fff}
#ats-module .email-body-wrap{padding:18px;display:flex;flex-direction:column;gap:14px}
#ats-module .warning-box{background:#fff8e6;border:.5px solid #f59e0b;border-radius:8px;padding:10px 12px;font-size:12px;color:#7a5200}
#ats-module .email-preview{border:.5px solid var(--border);border-radius:10px;overflow:hidden}
#ats-module .email-prev-head{background:var(--light);padding:10px 12px;border-bottom:.5px solid var(--border)}
#ats-module .email-prev-row{display:flex;gap:8px;font-size:12px;margin-bottom:3px}
#ats-module .email-prev-row span:first-child{color:var(--muted);min-width:42px}
#ats-module .email-prev-body{padding:12px 14px;font-size:12px;color:var(--text);line-height:1.7;white-space:pre-line;max-height:180px;overflow-y:auto}
#ats-module .email-sig{border-top:.5px solid var(--border);padding:10px 12px;display:flex;align-items:center;gap:8px}
#ats-module .sig-bar{display:flex;flex-direction:column;width:4px;height:26px;border-radius:2px;overflow:hidden}
#ats-module .email-actions{display:flex;gap:8px;justify-content:flex-end}
#ats-module .btn-cancel{font-size:13px;padding:9px 18px;border:.5px solid #d1d5db;border-radius:8px;background:#fff;cursor:pointer;color:var(--text)}
#ats-module .btn-send{font-size:13px;padding:9px 18px;border:none;border-radius:8px;background:var(--navy);color:#fff;cursor:pointer;font-weight:600}
#ats-module .btn-send:hover{background:var(--navy2)}
#ats-module .toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(80px);background:var(--navy);color:#fff;font-size:13px;padding:10px 20px;border-radius:8px;z-index:500;transition:transform .3s;white-space:nowrap;pointer-events:none;box-shadow:0 4px 16px rgba(0,0,0,.2)}
#ats-module .toast.show{transform:translateX(-50%) translateY(0)}
#ats-module .ob-topbar{background:var(--navy);padding:10px 20px;display:flex;align-items:center;gap:16px;flex-shrink:0}
#ats-module .ob-back{font-size:12px;padding:5px 14px;border:.5px solid rgba(255,255,255,.3);border-radius:8px;background:rgba(255,255,255,.1);cursor:pointer;color:#fff}
#ats-module .ob-back:hover{background:rgba(255,255,255,.2)}
#ats-module .ob-scroll{flex:1;overflow-y:auto}
#ats-module .ob-app{max-width:680px;margin:0 auto;padding:12px;font-family:'DM Sans',sans-serif}
#ats-module .ob-hero{background:linear-gradient(135deg,#0D2E5E 0%,#1A4B8C 60%,#2563B0 100%);border-radius:20px;padding:28px 28px 22px;color:#fff;position:relative;overflow:hidden;margin-bottom:20px}
#ats-module .ob-hero::before{content:'';position:absolute;top:-40px;right:-40px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.06)}
#ats-module .ob-hero::after{content:'';position:absolute;bottom:-60px;left:30%;width:240px;height:240px;border-radius:50%;background:rgba(255,255,255,.04)}
#ats-module .ob-hero-badge{font-size:11px;font-weight:500;letter-spacing:2px;text-transform:uppercase;color:rgba(255,255,255,.65);margin-bottom:6px}
#ats-module .ob-hero-name{font-family:'Sora',sans-serif;font-size:26px;font-weight:700;margin-bottom:3px}
#ats-module .ob-hero-role{font-size:13px;color:rgba(255,255,255,.75);margin-bottom:20px}
#ats-module .ob-hero-stats{display:flex;gap:14px;position:relative;z-index:1;flex-wrap:wrap}
#ats-module .ob-hero-stat{background:rgba(255,255,255,.12);border-radius:12px;padding:9px 14px;text-align:center;min-width:64px}
#ats-module .ob-hero-stat-num{font-family:'Sora',sans-serif;font-size:20px;font-weight:700}
#ats-module .ob-hero-stat-lbl{font-size:10px;color:rgba(255,255,255,.65);margin-top:1px}
#ats-module .ob-prog-wrap{margin-top:18px;position:relative;z-index:1}
#ats-module .ob-prog-lbl{display:flex;justify-content:space-between;font-size:12px;color:rgba(255,255,255,.7);margin-bottom:5px}
#ats-module .ob-prog-bar{background:rgba(255,255,255,.2);border-radius:100px;height:6px;overflow:hidden}
#ats-module .ob-prog-fill{height:100%;border-radius:100px;background:#5DCE82;transition:width .7s ease}
#ats-module .ob-hero-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:6px;position:relative;z-index:1}
#ats-module .ob-hero-left{flex:1}
#ats-module .ob-hero-right{display:flex;flex-direction:column;align-items:center;gap:4px;margin-left:12px}
#ats-module .ob-photo-wrap{width:58px;height:58px;border-radius:50%;border:2.5px solid rgba(255,255,255,.5);overflow:hidden;background:rgba(255,255,255,.15);cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}
#ats-module .ob-photo-wrap img{width:100%;height:100%;object-fit:cover;display:none}
#ats-module .ob-photo-icon{font-size:24px}
#ats-module .ob-photo-hint{font-size:9px;color:rgba(255,255,255,.45)}
#ats-module .ob-photo-input{display:none}
#ats-module .ob-btn-row{display:flex;gap:6px;position:relative;z-index:1;margin-bottom:16px}
#ats-module .ob-edit-btn{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.3);color:#fff;border-radius:100px;padding:5px 12px;font-family:'DM Sans',sans-serif;font-size:12px;font-weight:500;cursor:pointer}
#ats-module .ob-edit-btn:hover{background:rgba(255,255,255,.28)}
#ats-module .ob-days-nav{display:flex;gap:8px;margin-bottom:18px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
#ats-module .ob-days-nav::-webkit-scrollbar{display:none}
#ats-module .ob-day-tab{flex-shrink:0;padding:7px 15px;border-radius:100px;font-family:'DM Sans',sans-serif;font-size:13px;font-weight:500;cursor:pointer;border:1.5px solid #ddd;background:#fff;color:#666;transition:all .2s;white-space:nowrap}
#ats-module .ob-day-tab.active{background:#1A4B8C;color:#fff;border-color:#1A4B8C}
#ats-module .ob-day-tab:hover:not(.active){border-color:#bbb;color:#333}
#ats-module .ob-day-tab.resumen-tab.active{background:#2563B0;border-color:#2563B0}
#ats-module .ob-day-tab.config-tab{border-style:dashed;color:#888}
#ats-module .ob-day-tab.config-tab.active{background:#6B46C1;border-color:#6B46C1;color:#fff;border-style:solid}
#ats-module .ob-day-header{border-radius:14px;padding:14px 18px;margin-bottom:14px;display:flex;align-items:center;gap:14px}
#ats-module .ob-day-icon{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
#ats-module .ob-day-header-text h3{font-family:'Sora',sans-serif;font-size:15px;font-weight:600;margin-bottom:2px}
#ats-module .ob-day-header-text p{font-size:12px;opacity:.72}
#ats-module .ob-tasks-list{display:flex;flex-direction:column;gap:9px}
#ats-module .ob-task-card{background:#fff;border:.5px solid #e8e8e8;border-radius:12px;padding:12px 14px;transition:all .2s;position:relative;overflow:hidden}
#ats-module .ob-task-card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;border-radius:3px 0 0 3px;background:#e0e0e0;transition:background .3s}
#ats-module .ob-task-card.done::before{background:#1E7E34}
#ats-module .ob-task-card.skip::before{background:#c0392b}
#ats-module .ob-task-top{display:flex;align-items:flex-start;gap:11px}
#ats-module .ob-task-check{width:22px;height:22px;border-radius:50%;border:2px solid #ccc;flex-shrink:0;margin-top:1px;display:flex;align-items:center;justify-content:center;transition:all .2s;cursor:pointer}
#ats-module .ob-task-card.done .ob-task-check{background:#1E7E34;border-color:#1E7E34}
#ats-module .ob-task-card.skip .ob-task-check{background:#c0392b;border-color:#c0392b}
#ats-module .ob-check-icon{color:#fff;font-size:11px;display:none;font-weight:700}
#ats-module .ob-task-card.done .ob-check-icon, #ats-module .ob-task-card.skip .ob-check-icon{display:block}
#ats-module .ob-task-body{flex:1;min-width:0}
#ats-module .ob-task-title{font-size:14px;font-weight:500;color:#222;margin-bottom:4px;line-height:1.4}
#ats-module .ob-task-card.done .ob-task-title{text-decoration:line-through;color:#999}
#ats-module .ob-task-meta{display:flex;gap:7px;flex-wrap:wrap}
#ats-module .ob-tag{font-size:11px;padding:2px 8px;border-radius:100px;font-weight:500;background:#f0f0f0;color:#666}
#ats-module .ob-tag.area{background:#E8F0FB;color:#1A4B8C}
#ats-module .ob-tag.skip-tag{background:#FCEBEB;color:#A32D2D}
#ats-module .ob-task-actions{display:flex;gap:6px;flex-shrink:0;align-items:flex-start}
#ats-module .ob-btn-sm{font-size:11px;padding:3px 9px;border-radius:100px;border:.5px solid #ccc;background:transparent;color:#888;cursor:pointer;font-family:'DM Sans',sans-serif;font-weight:500;transition:all .15s}
#ats-module .ob-btn-sm:hover{background:#f5f5f5}
#ats-module .ob-btn-sm.danger:hover{background:#FCEBEB;color:#A32D2D;border-color:#E24B4A}
#ats-module .ob-btn-sm.note-btn:hover{background:#E6F1FB;color:#185FA5;border-color:#85B7EB}
#ats-module .ob-note-area{margin-top:10px;padding-top:10px;border-top:.5px solid #eee;display:none}
#ats-module .ob-note-area.open{display:block}
#ats-module .ob-note-input{width:100%;font-family:'DM Sans',sans-serif;font-size:13px;padding:8px 10px;border-radius:8px;border:.5px solid #ccc;background:#f9f9f9;color:#222;resize:none;min-height:56px;transition:border .15s}
#ats-module .ob-note-input:focus{outline:none;border-color:#1A4B8C}
#ats-module .ob-note-saved{font-size:11px;color:#1E7E34;margin-top:4px;display:none}
#ats-module .ob-day-summary{margin-top:14px;background:#f5f5f5;border-radius:12px;padding:13px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}
#ats-module .ob-day-summary-text{font-size:13px;color:#666}
#ats-module .ob-btn-complete{font-size:13px;padding:7px 16px;border-radius:100px;border:none;background:#1A4B8C;color:#fff;cursor:pointer;font-family:'DM Sans',sans-serif;font-weight:500;white-space:nowrap}
#ats-module .ob-btn-complete:hover{background:#2563B0}
#ats-module .ob-btn-complete:disabled{background:#1E7E34;cursor:default}
#ats-module .ob-resumen-wrap{display:flex;flex-direction:column;gap:16px}
#ats-module .ob-res-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
#ats-module .ob-res-card{border-radius:12px;padding:14px 12px;text-align:center;background:#f5f5f5}
#ats-module .ob-res-card-num{font-family:'Sora',sans-serif;font-size:28px;font-weight:700}
#ats-module .ob-res-card-lbl{font-size:11px;color:#888;margin-top:2px}
#ats-module .ob-res-card.green .ob-res-card-num{color:#1E7E34}
#ats-module .ob-res-card.amber .ob-res-card-num{color:#BA7517}
#ats-module .ob-res-card.red .ob-res-card-num{color:#A32D2D}
#ats-module .ob-res-donut-row{display:flex;align-items:center;gap:20px}
#ats-module .ob-res-legend{display:flex;flex-direction:column;gap:8px;flex:1}
#ats-module .ob-legend-item{display:flex;align-items:center;gap:8px;font-size:13px}
#ats-module .ob-legend-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
#ats-module .ob-res-days-title, #ats-module .ob-res-notes-title{font-family:'Sora',sans-serif;font-size:14px;font-weight:600;color:#222;margin-bottom:10px}
#ats-module .ob-res-day-row{background:#fff;border:.5px solid #e8e8e8;border-radius:10px;padding:12px 14px;margin-bottom:8px}
#ats-module .ob-res-day-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
#ats-module .ob-res-day-name{font-size:13px;font-weight:500;color:#222}
#ats-module .ob-res-day-pct{font-size:12px;font-weight:500}
#ats-module .ob-res-day-bar{background:#eee;border-radius:100px;height:5px;overflow:hidden}
#ats-module .ob-res-day-fill{height:100%;border-radius:100px;transition:width .6s ease}
#ats-module .ob-res-note-item{border-left:3px solid #1A4B8C;padding:8px 12px;margin-bottom:8px;background:#f5f5f5;border-radius:0 8px 8px 0}
#ats-module .ob-res-note-task{font-size:12px;font-weight:500;color:#222;margin-bottom:2px}
#ats-module .ob-res-note-text{font-size:12px;color:#666;line-height:1.5}
#ats-module .ob-res-no-notes{font-size:13px;color:#aaa;font-style:italic}
#ats-module .ob-firma-section{margin-top:18px;border:1px solid #e8e8e8;border-radius:14px;overflow:hidden}
#ats-module .ob-firma-header{background:#f8f8f8;padding:12px 16px;border-bottom:1px solid #e8e8e8;display:flex;align-items:center;justify-content:space-between}
#ats-module .ob-firma-title{font-family:'Sora',sans-serif;font-size:13px;font-weight:600;color:#1A4B8C}
#ats-module .ob-firma-subtitle{font-size:11px;color:#999;margin-top:1px}
#ats-module .ob-firma-body{padding:14px 16px;display:flex;flex-direction:column;gap:14px}
#ats-module .ob-firma-slot{display:flex;flex-direction:column;gap:6px}
#ats-module .ob-firma-slot-lbl{font-size:11px;font-weight:500;color:#888;text-transform:uppercase;letter-spacing:.5px}
#ats-module .ob-firma-canvas-wrap{position:relative;border:1.5px dashed #ccc;border-radius:10px;background:#fafafa;overflow:hidden;touch-action:none}
#ats-module .ob-firma-canvas-wrap.signed{border-color:#1E7E34;border-style:solid;background:#f6fdf8}
#ats-module .ob-firma-canvas-wrap.active{border-color:#1A4B8C;border-style:solid}
#ats-module .ob-firma-canvas{display:block;width:100%;height:100px;cursor:crosshair}
#ats-module .ob-firma-placeholder{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:12px;color:#ccc;pointer-events:none;text-align:center;line-height:1.5;transition:opacity .2s}
#ats-module .ob-firma-canvas-wrap.signed .ob-firma-placeholder, #ats-module .ob-firma-canvas-wrap.active .ob-firma-placeholder{opacity:0}
#ats-module .ob-firma-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
#ats-module .ob-firma-clear-btn{font-size:11px;padding:3px 10px;border-radius:100px;border:1px solid #ddd;background:#fff;color:#999;cursor:pointer;font-family:'DM Sans',sans-serif;transition:all .15s}
#ats-module .ob-firma-clear-btn:hover{border-color:#E24B4A;color:#A32D2D;background:#FCEBEB}
#ats-module .ob-firma-check{font-size:11px;color:#1E7E34;font-weight:500}
#ats-module .ob-firma-badge{display:inline-flex;align-items:center;gap:5px;background:#E8F5EE;color:#1E7E34;border-radius:100px;padding:4px 10px;font-size:11px;font-weight:500}
#ats-module .ob-firma-badge.pending{background:#FFF4E5;color:#BA7517}
#ats-module .ob-firma-name-input{font-family:'DM Sans',sans-serif;font-size:13px;padding:7px 10px;border:1px solid #ddd;border-radius:8px;color:#222;background:#fff;width:100%}
#ats-module .ob-firma-name-input:focus{outline:none;border-color:#1A4B8C}
#ats-module .ob-editor-wrap{display:flex;flex-direction:column;gap:20px}
#ats-module .ob-editor-section{border:1px solid #e8e8e8;border-radius:14px;overflow:hidden}
#ats-module .ob-editor-section-header{background:#f8f8f8;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8e8e8}
#ats-module .ob-editor-section-title{font-family:'Sora',sans-serif;font-size:14px;font-weight:600;color:#1A4B8C}
#ats-module .ob-editor-section-body{padding:16px;display:flex;flex-direction:column;gap:12px}
#ats-module .ob-field-row{display:flex;flex-direction:column;gap:4px}
#ats-module .ob-field-row label{font-size:12px;font-weight:500;color:#888;text-transform:uppercase;letter-spacing:.5px}
#ats-module .ob-field-input{font-family:'DM Sans',sans-serif;font-size:14px;padding:8px 12px;border:1px solid #ddd;border-radius:8px;color:#222;background:#fff;width:100%;transition:border .15s}
#ats-module .ob-field-input:focus{outline:none;border-color:#1A4B8C}
#ats-module .ob-two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#ats-module .ob-day-editor{border:1px solid #e8e8e8;border-radius:12px;overflow:hidden}
#ats-module .ob-day-editor-head{display:flex;align-items:center;gap:10px;padding:10px 14px;cursor:pointer;background:#f8f8f8;border-bottom:1px solid #e8e8e8;user-select:none}
#ats-module .ob-day-editor-head:hover{background:#f0f0f0}
#ats-module .ob-day-editor-head-icon{font-size:16px}
#ats-module .ob-day-editor-head-text{flex:1}
#ats-module .ob-day-editor-head-label{font-size:13px;font-weight:600;color:#1A4B8C}
#ats-module .ob-day-editor-head-sub{font-size:11px;color:#888}
#ats-module .ob-day-editor-head-arrow{font-size:12px;color:#aaa;transition:transform .2s}
#ats-module .ob-day-editor-head-arrow.open{transform:rotate(180deg)}
#ats-module .ob-day-editor-body{padding:12px;display:none}
#ats-module .ob-day-editor-body.open{display:block}
#ats-module .ob-day-meta-row{display:grid;grid-template-columns:48px 1fr;gap:8px;margin-bottom:12px}
#ats-module .ob-task-editor-list{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
#ats-module .ob-task-editor-row{display:flex;align-items:center;gap:6px;background:#f9f9f9;border:1px solid #eee;border-radius:8px;padding:6px 8px}
#ats-module .ob-task-editor-row input{flex:1;border:none;background:transparent;font-family:'DM Sans',sans-serif;font-size:13px;color:#222}
#ats-module .ob-task-editor-row input:focus{outline:none}
#ats-module .ob-task-editor-row .area-input{font-size:11px;color:#1A4B8C;min-width:0;flex:.6}
#ats-module .ob-task-delete-btn{background:none;border:none;color:#ccc;cursor:pointer;font-size:14px;padding:0 2px;transition:color .15s;flex-shrink:0}
#ats-module .ob-task-delete-btn:hover{color:#E24B4A}
#ats-module .ob-task-drag-handle{color:#ccc;cursor:grab;font-size:14px;flex-shrink:0}
#ats-module .ob-btn-add-task{font-size:12px;padding:6px 14px;border-radius:100px;border:1.5px dashed #ccc;background:transparent;color:#888;cursor:pointer;font-family:'DM Sans',sans-serif;font-weight:500;transition:all .15s;width:100%}
#ats-module .ob-btn-add-task:hover{border-color:#1A4B8C;color:#1A4B8C;background:#E8F0FB}
#ats-module .ob-editor-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
#ats-module .ob-btn-save{font-size:14px;padding:10px 24px;border-radius:100px;border:none;background:#1A4B8C;color:#fff;cursor:pointer;font-family:'DM Sans',sans-serif;font-weight:500}
#ats-module .ob-btn-save:hover{background:#2563B0}
#ats-module .ob-btn-reset{font-size:14px;padding:10px 24px;border-radius:100px;border:1.5px solid #ddd;background:transparent;color:#888;cursor:pointer;font-family:'DM Sans',sans-serif;font-weight:500}
#ats-module .ob-btn-reset:hover{border-color:#E24B4A;color:#A32D2D;background:#FCEBEB}
#ats-module .ob-export-btn{font-size:12px;padding:5px 12px;border-radius:100px;border:1px solid #ddd;background:#fff;color:#666;cursor:pointer;font-family:'DM Sans',sans-serif}
#ats-module .ob-export-btn:hover{background:#1A4B8C;color:#fff;border-color:#1A4B8C}
#ats-module .ob-save-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(80px);background:#1E7E34;color:#fff;padding:10px 20px;border-radius:100px;font-family:'DM Sans',sans-serif;font-size:13px;font-weight:500;transition:transform .3s ease;z-index:9999;pointer-events:none}
#ats-module .ob-save-toast.show{transform:translateX(-50%) translateY(0)}
#ats-module .search-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:400;padding:60px 20px 20px;align-items:flex-start;justify-content:center}
#ats-module .search-overlay.open{display:flex}
#ats-module .search-box{background:#fff;border-radius:16px;width:100%;max-width:600px;overflow:hidden;border:.5px solid var(--border);box-shadow:0 16px 48px rgba(0,0,0,.2)}
#ats-module .search-input-wrap{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:.5px solid var(--border)}
#ats-module .search-input-wrap i{font-size:20px;color:var(--muted)}
#ats-module .search-inp{flex:1;border:none;outline:none;font-size:15px;font-family:inherit;color:var(--text);background:transparent}
#ats-module .search-inp::placeholder{color:var(--muted)}
#ats-module .search-close{background:none;border:.5px solid var(--border);border-radius:6px;padding:2px 8px;font-size:11px;color:var(--muted);cursor:pointer}
#ats-module .search-results{max-height:420px;overflow-y:auto}
#ats-module .search-empty{padding:32px;text-align:center;color:var(--muted);font-size:13px}
#ats-module .search-result-item{display:flex;align-items:center;gap:12px;padding:11px 18px;border-bottom:.5px solid var(--border);cursor:pointer;transition:background .1s}
#ats-module .search-result-item:hover{background:var(--light)}
#ats-module .search-result-item:last-child{border-bottom:none}
#ats-module .sr-av{width:36px;height:36px;border-radius:50%;background:#e8edf5;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:var(--navy);flex-shrink:0}
#ats-module .sr-info{flex:1;min-width:0}
#ats-module .sr-name{font-size:13px;font-weight:500;color:var(--text)}
#ats-module .sr-sub{font-size:11px;color:var(--muted)}
#ats-module .sr-stage{font-size:10px;padding:2px 8px;border-radius:20px;font-weight:500;white-space:nowrap;flex-shrink:0}
#ats-module .dash-wrap{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:20px}
#ats-module .dash-title{font-size:16px;font-weight:600;color:var(--navy)}
#ats-module .kpi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
#ats-module .kpi-card{background:#fff;border:1px solid var(--border);border-radius:8px;padding:14px 16px}
#ats-module .kpi-val{font-size:28px;font-weight:700;margin-bottom:2px}
#ats-module .kpi-lbl{font-size:11px;color:var(--muted)}
#ats-module .kpi-sub{font-size:11px;margin-top:4px;font-weight:500}
#ats-module .dash-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#ats-module .dash-card{background:#fff;border:1px solid var(--border);border-radius:8px;padding:16px}
#ats-module .dash-card-title{font-size:12px;font-weight:600;color:var(--navy);letter-spacing:.04em;margin-bottom:14px;text-transform:uppercase}
#ats-module .chart-bar-row{display:flex;align-items:center;gap:8px;margin-bottom:8px}
#ats-module .chart-bar-label{font-size:11px;color:var(--text);min-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ats-module .chart-bar-track{flex:1;background:#f0f2f7;border-radius:100px;height:8px;overflow:hidden}
#ats-module .chart-bar-fill{height:100%;border-radius:100px;background:var(--navy);transition:width .6s ease}
#ats-module .chart-bar-val{font-size:11px;font-weight:500;color:var(--muted);min-width:24px;text-align:right}
#ats-module .funnel-row{display:flex;align-items:center;gap:10px;margin-bottom:6px}
#ats-module .funnel-label{font-size:11px;color:var(--text);min-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ats-module .funnel-bar-wrap{flex:1;background:#f0f2f7;border-radius:4px;height:22px;overflow:hidden;position:relative}
#ats-module .funnel-bar-fill{height:100%;border-radius:4px;transition:width .6s ease;display:flex;align-items:center;padding-left:8px}
#ats-module .funnel-bar-n{font-size:11px;font-weight:600;color:#fff}
#ats-module .busq-wrap{flex:1;overflow-y:auto;padding:20px}
#ats-module .busq-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px;flex-wrap:wrap}
#ats-module .busq-title{font-size:16px;font-weight:600;color:var(--navy)}
#ats-module .btn-nueva-busq{font-size:13px;padding:7px 16px;border:none;border-radius:5px;background:var(--green);color:#fff;cursor:pointer;font-weight:600;display:flex;align-items:center;gap:6px}
#ats-module .btn-nueva-busq:hover{background:var(--green-d)}
#ats-module .busq-tabs{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}
#ats-module .busq-tab-btn{font-size:12px;padding:5px 14px;border:.5px solid var(--border);border-radius:20px;background:#fff;color:var(--muted);cursor:pointer}
#ats-module .busq-tab-btn.active{background:var(--navy);color:#fff;border-color:var(--navy)}
#ats-module .busq-grid{display:flex;flex-direction:column;gap:10px}
#ats-module .busq-card{background:#fff;border:1px solid var(--border);border-radius:8px;padding:14px 16px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
#ats-module .busq-card:hover{border-color:var(--navy)}
#ats-module .busq-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
#ats-module .busq-card-info{flex:1;min-width:0}
#ats-module .busq-card-title{font-size:14px;font-weight:600;color:var(--navy)}
#ats-module .busq-card-sub{font-size:12px;color:var(--muted);margin-top:2px}
#ats-module .busq-status{font-size:11px;padding:3px 10px;border-radius:20px;font-weight:500;white-space:nowrap}
#ats-module .busq-status.activa{background:#e8f5e9;color:#2e7d32}
#ats-module .busq-status.cerrada{background:#fce4ec;color:#b71c1c}
#ats-module .busq-status.suspendida{background:#fff3e0;color:#e65100}
#ats-module .busq-pipeline{display:flex;gap:6px;flex-wrap:wrap}
#ats-module .busq-pip-stage{display:flex;align-items:center;gap:4px;font-size:11px;background:#f0f2f7;border-radius:6px;padding:3px 8px;color:var(--text)}
#ats-module .busq-pip-stage span{font-weight:600;color:var(--navy)}
#ats-module .busq-card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:10px;padding-top:10px;border-top:.5px solid var(--border)}
#ats-module .busq-card-meta{font-size:11px;color:var(--muted);display:flex;gap:12px}
#ats-module .busq-actions{display:flex;gap:6px}
#ats-module .btn-busq-sm{font-size:11px;padding:4px 10px;border:.5px solid var(--border);border-radius:6px;background:#fff;color:var(--text);cursor:pointer}
#ats-module .btn-busq-sm:hover{border-color:var(--navy);color:var(--navy)}
#ats-module .btn-busq-sm.primary{background:var(--navy);color:#fff;border-color:var(--navy)}
#ats-module .busq-modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:300;align-items:center;justify-content:center}
#ats-module .busq-modal-overlay.open{display:flex}
#ats-module .busq-modal{background:#fff;border-radius:14px;width:520px;max-width:95vw;overflow:hidden;border:.5px solid var(--border)}
#ats-module .busq-modal-head{background:var(--navy);padding:14px 18px;display:flex;align-items:center;justify-content:space-between}
#ats-module .busq-modal-title{font-size:14px;font-weight:600;color:#fff}
#ats-module .busq-modal-body{padding:18px;display:flex;flex-direction:column;gap:12px}
#ats-module .busq-modal-footer{display:flex;gap:8px;justify-content:flex-end}
#ats-module .busq-detalle-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:100;align-items:flex-start;justify-content:flex-end}
#ats-module .busq-detalle-overlay.open{display:flex}
#ats-module .busq-detalle-panel{width:500px;height:100%;background:#fff;border-left:.5px solid var(--border);display:flex;flex-direction:column;overflow:hidden}
#ats-module .bd-top{background:var(--navy);padding:14px 16px;display:flex;align-items:flex-start;justify-content:space-between;flex-shrink:0}
#ats-module .bd-title{font-size:14px;font-weight:700;color:#fff}
#ats-module .bd-sub{font-size:11px;color:rgba(255,255,255,.65);margin-top:2px}
#ats-module .bd-scroll{flex:1;overflow-y:auto;padding:12px}
#ats-module .bd-stages{display:flex;flex-direction:column;gap:8px}
#ats-module .bd-stage-row{background:var(--light);border:.5px solid var(--border);border-radius:10px;overflow:hidden}
#ats-module .bd-stage-head{padding:8px 12px;font-size:11px;font-weight:600;color:#fff;display:flex;align-items:center;justify-content:space-between}
#ats-module .bd-stage-body{padding:8px}
#ats-module .bd-cand-item{display:flex;align-items:center;gap:8px;padding:7px 8px;background:#fff;border-radius:8px;margin-bottom:5px;border:.5px solid var(--border);cursor:pointer}
#ats-module .bd-cand-item:hover{border-color:var(--navy)}
#ats-module .bd-cand-item:last-child{margin-bottom:0}
#ats-module .bd-cand-name{font-size:12px;font-weight:500;color:var(--text);flex:1}
#ats-module .bd-cand-pos{font-size:11px;color:var(--muted)}
#ats-module .bd-add-cand{font-size:12px;padding:6px 12px;border:1.5px dashed var(--border);border-radius:8px;background:transparent;color:var(--muted);cursor:pointer;width:100%;margin-top:6px}
#ats-module .bd-add-cand:hover{border-color:var(--navy);color:var(--navy)}
#ats-module .bd-footer{padding:12px 16px;border-top:.5px solid var(--border);background:#fff;flex-shrink:0;display:flex;gap:8px}
#ats-module .busq-empty{text-align:center;padding:60px 20px;color:var(--muted)}

/* ── RRHH module identity — violet accent ─────────── */
#ats-module { background:var(--bg); }
#ats-module .navtab.active { color:#7c3aed; border-bottom-color:#7c3aed; font-weight:600; }
#ats-module .navtabs { border-bottom:.5px solid var(--border); }
#ats-module .ats-header { display:flex; align-items:center; gap:10px; padding:10px 20px 0; }
#ats-module .ats-badge { font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; background:#ede9fe; color:#7c3aed; border-radius:20px; padding:3px 10px; }

/* ── Dark mode ──────────────────────────────────────────── */
html[data-theme="dark"] #ats-module {
  --navy:#5b92d4; --navy2:#4a7bbf; --green:#5a9e48; --red:#e57373;
  --bg:#13151f; --border:#2d3252; --text:#ccd5f0; --muted:#7a88b0; --light:#1a1e2d;
  background:#13151f;
}
html[data-theme="dark"] #ats-module .navtabs{background:#1a1e2d;}
html[data-theme="dark"] #ats-module .statsbar{background:#1e2235;}
html[data-theme="dark"] #ats-module .stage-body{background:rgba(255,255,255,.05);}
html[data-theme="dark"] #ats-module .stage-body.drag-over{background:rgba(91,146,212,.08);}
html[data-theme="dark"] #ats-module .card{background:#1e2235;}
html[data-theme="dark"] #ats-module .sec-body{background:#1e2235;}
html[data-theme="dark"] #ats-module .stage-stepper{background:#1e2235;}
html[data-theme="dark"] #ats-module .ct-stat{background:#1e2235;}
html[data-theme="dark"] #ats-module .ct-card{background:#1e2235;}
html[data-theme="dark"] #ats-module .desc-item{background:#1e2235;}
html[data-theme="dark"] #ats-module .panel{background:#1a1e2d;}
html[data-theme="dark"] #ats-module .panel-footer{background:#1a1e2d;}
html[data-theme="dark"] #ats-module .modal-box{background:#1e2235;}
html[data-theme="dark"] #ats-module .email-modal{background:#1e2235;}
html[data-theme="dark"] #ats-module .search-box{background:#1e2235;}
html[data-theme="dark"] #ats-module .kpi-card{background:#1e2235;}
html[data-theme="dark"] #ats-module .dash-card{background:#1e2235;}
html[data-theme="dark"] #ats-module .busq-card{background:#1e2235;}
html[data-theme="dark"] #ats-module .busq-modal{background:#1e2235;}
html[data-theme="dark"] #ats-module .busq-detalle-panel{background:#1a1e2d;}
html[data-theme="dark"] #ats-module .bd-footer{background:#1a1e2d;}
html[data-theme="dark"] #ats-module .bd-cand-item{background:#1e2235;}
html[data-theme="dark"] #ats-module .ob-task-card{background:#1e2235;}
html[data-theme="dark"] #ats-module .ob-res-day-row{background:#1e2235;border-color:#2d3252;}
html[data-theme="dark"] #ats-module .ob-res-note-item{background:#1a1e2d;}
html[data-theme="dark"] #ats-module .ob-res-card{background:#1a1e2d;}
html[data-theme="dark"] #ats-module .ob-day-summary{background:#1a1e2d;}
html[data-theme="dark"] #ats-module .ob-day-tab{background:#1e2235;border-color:#2d3252;color:#7a88b0;}
html[data-theme="dark"] #ats-module .ob-firma-section{border-color:#2d3252;}
html[data-theme="dark"] #ats-module .ob-firma-header{background:#1a1e2d;border-color:#2d3252;}
html[data-theme="dark"] #ats-module .ob-firma-canvas-wrap{background:#13151f;border-color:#2d3252;}
html[data-theme="dark"] #ats-module .ob-firma-name-input{background:#13151f;color:#ccd5f0;border-color:#2d3252;}
html[data-theme="dark"] #ats-module .ob-firma-clear-btn{background:#1e2235;color:#7a88b0;border-color:#2d3252;}
html[data-theme="dark"] #ats-module .ob-editor-section{border-color:#2d3252;}
html[data-theme="dark"] #ats-module .ob-editor-section-header{background:#1a1e2d;border-color:#2d3252;}
html[data-theme="dark"] #ats-module .ob-day-editor{border-color:#2d3252;}
html[data-theme="dark"] #ats-module .ob-day-editor-head{background:#1a1e2d;border-color:#2d3252;}
html[data-theme="dark"] #ats-module .ob-task-editor-row{background:#1a1e2d;border-color:#2d3252;}
html[data-theme="dark"] #ats-module .ob-task-editor-row input{color:#ccd5f0;}
html[data-theme="dark"] #ats-module .ob-note-input{background:#13151f;color:#ccd5f0;border-color:#2d3252;}
html[data-theme="dark"] #ats-module .ob-note-area{border-top-color:#2d3252;}
html[data-theme="dark"] #ats-module .ob-export-btn{background:#1e2235;color:#7a88b0;border-color:#2d3252;}
/* inputs */
html[data-theme="dark"] #ats-module .sel{background:#13151f;color:#ccd5f0;}
html[data-theme="dark"] #ats-module .f-inp{background:#13151f;color:#ccd5f0;}
html[data-theme="dark"] #ats-module .f-ta{background:#13151f;color:#ccd5f0;}
html[data-theme="dark"] #ats-module .f-sel{background:#13151f;color:#ccd5f0;}
html[data-theme="dark"] #ats-module .date-input{background:#13151f;color:#ccd5f0;}
html[data-theme="dark"] #ats-module .desc-search{background:#13151f;color:#ccd5f0;border-color:#2d3252;}
html[data-theme="dark"] #ats-module .ob-field-input{background:#13151f;color:#ccd5f0;border-color:#2d3252;}
html[data-theme="dark"] #ats-module .search-inp{background:transparent;color:#ccd5f0;}
/* buttons con bg blanco */
html[data-theme="dark"] #ats-module .btn-reactivar{background:#1e2235;}
html[data-theme="dark"] #ats-module .btn-ver{background:#1e2235;}
html[data-theme="dark"] #ats-module .btn-attach{background:#1e2235;}
html[data-theme="dark"] #ats-module .btn-delete{background:#1e2235;}
html[data-theme="dark"] #ats-module .btn-cancelm{background:#1e2235;color:#ccd5f0;border-color:#2d3252;}
html[data-theme="dark"] #ats-module .btn-cancel{background:#1e2235;color:#ccd5f0;border-color:#2d3252;}
html[data-theme="dark"] #ats-module .busq-tab-btn{background:#1e2235;}
html[data-theme="dark"] #ats-module .btn-busq-sm{background:#1e2235;}
html[data-theme="dark"] #ats-module .btn-white{background:#1e2235;color:#ccd5f0;border-color:#2d3252;}
/* section heads */
html[data-theme="dark"] #ats-module .sec-head:hover{background:#1e2a3a;}
html[data-theme="dark"] #ats-module .section.stage-done .sec-head{background:#1a2820;color:#5a9e48;}
html[data-theme="dark"] #ats-module .section.danger .sec-head{background:#2a1515;color:#e57373;}
html[data-theme="dark"] #ats-module .move-error{background:#2a1e08;border-color:#f59e0b;color:#ffb74d;}
html[data-theme="dark"] #ats-module .warning-box{background:#2a1e08;border-color:#f59e0b;color:#ffb74d;}
/* tracks / chips / avatares */
html[data-theme="dark"] #ats-module .chart-bar-track{background:#2d3252;}
html[data-theme="dark"] #ats-module .funnel-bar-wrap{background:#2d3252;}
html[data-theme="dark"] #ats-module .ct-prog-bar{background:#2d3252;}
html[data-theme="dark"] #ats-module .ob-res-day-bar{background:#2d3252;}
html[data-theme="dark"] #ats-module .step-dot.fut{background:#2d3252;}
html[data-theme="dark"] #ats-module .step-line{background:#2d3252;}
html[data-theme="dark"] #ats-module .busq-pip-stage{background:#2d3252;}
html[data-theme="dark"] #ats-module .chip{background:#2d3252;}
html[data-theme="dark"] #ats-module .av{background:#2d3252;}
html[data-theme="dark"] #ats-module .ct-av{background:#2d3252;}
html[data-theme="dark"] #ats-module .sr-av{background:#2d3252;}
html[data-theme="dark"] #ats-module .stage-badge.fut{background:#2d3252;}
html[data-theme="dark"] #ats-module .upload-box{border-color:#2d3252;}
/* textos hardcodeados */
html[data-theme="dark"] #ats-module .ob-task-title{color:#ccd5f0;}
html[data-theme="dark"] #ats-module .ob-res-days-title,
html[data-theme="dark"] #ats-module .ob-res-notes-title{color:#ccd5f0;}
html[data-theme="dark"] #ats-module .ob-res-day-name{color:#ccd5f0;}
html[data-theme="dark"] #ats-module .ob-res-note-task{color:#ccd5f0;}
html[data-theme="dark"] #ats-module .ob-res-note-text{color:#7a88b0;}
html[data-theme="dark"] #ats-module .ob-day-summary-text{color:#7a88b0;}
/* acento violeta en dark */
html[data-theme="dark"] #ats-module .ats-badge{background:#3b2f72;color:#c4b5fd;}
html[data-theme="dark"] #ats-module .navtab.active{color:#a78bfa;border-bottom-color:#a78bfa;}
