:root{--ink:#12384b;--muted:#708993;--blue:#075985;--cyan:#0b8e9f;--green:#07977d;--red:#bf4c48;--line:#dcebee;--bg:#eaf4f7;--white:#fff;--shadow:0 18px 48px rgba(18,61,82,.12)}
*{box-sizing:border-box}html,body{width:100%;min-height:100%;margin:0;overflow-x:hidden}body{background:linear-gradient(145deg,#e9f5f7,#f7fafb 48%,#eaf1f5);color:var(--ink);font:15px/1.45 Inter,system-ui,-apple-system,"Segoe UI",sans-serif}button,input{font:inherit}button{cursor:pointer}.hidden{display:none!important}#app{min-height:100vh}

/* Login */
.login{min-height:100vh;max-width:460px;margin:auto;padding:clamp(42px,9vh,90px) 28px 32px;display:flex;flex-direction:column}.brand-mark{width:68px;height:68px;border-radius:22px;background:linear-gradient(135deg,var(--blue),var(--cyan));display:grid;place-items:center;color:#fff;font-weight:850;letter-spacing:.06em;box-shadow:var(--shadow);margin-bottom:24px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:800;color:var(--cyan);margin:0 0 8px}.login h1{font-size:clamp(38px,10vw,54px);line-height:1.03;letter-spacing:-.055em;margin:0}.login h1 span{color:var(--blue)}.lead{color:var(--muted);font-size:17px;margin:20px 0 32px}.login form{display:grid;gap:16px}.login label{font-weight:700;font-size:13px}.login input{display:block;width:100%;margin-top:7px;padding:16px;border:1px solid #cad9df;border-radius:14px;background:#fff;outline:none}.login input:focus{border-color:var(--cyan);box-shadow:0 0 0 4px #0ea5a41a}.primary{border:0;border-radius:15px;padding:16px;color:#fff;background:linear-gradient(135deg,var(--blue),#087a91);font-weight:800;box-shadow:0 10px 25px #07598535}.error{color:var(--red);text-align:center;min-height:20px}.fine{margin-top:auto;text-align:center;color:#91a0a8;font-size:12px}

/* Empleado: una sola implementación aislada */
#employeeView.employee-premium{width:100%;max-width:520px;min-height:100dvh;margin:0 auto;padding:0 0 calc(100px + env(safe-area-inset-bottom));position:relative;background:var(--bg);box-shadow:0 0 45px rgba(16,65,88,.1)}.premium-cover{position:relative;background:linear-gradient(145deg,#055f88,#07899f 58%,#18a2b1);color:#fff}.premium-header{min-height:72px;padding:max(14px,env(safe-area-inset-top)) 20px 10px;display:flex;align-items:center;justify-content:space-between;gap:12px}.premium-brand{display:flex;align-items:center;gap:10px;min-width:0}.premium-logo{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:13px;background:#fff;color:#087c91;font-size:23px;font-weight:950;box-shadow:0 7px 20px rgba(0,0,0,.13)}.premium-brand>div:last-child{display:flex;flex-direction:column;min-width:0}.premium-brand strong{font-size:18px;line-height:1;letter-spacing:.07em}.premium-brand small{margin-top:5px;font-size:7px;letter-spacing:.18em;opacity:.82;white-space:nowrap}.connection{display:inline-flex;gap:7px;align-items:center;border-radius:99px;font-weight:850}.connection i{width:8px;height:8px;border-radius:50%;background:#22b36c}.premium-connection{flex:0 0 auto;padding:7px 10px;background:rgba(255,255,255,.94);color:#147b50;box-shadow:0 5px 18px rgba(0,0,0,.08);font-size:11px}.premium-connection.offline{background:#fff2dc;color:#9b6210}.premium-connection.offline i{background:#e89a21}.premium-welcome{padding:4px 20px 13px}.premium-welcome>div>span{display:block;font-size:10px;font-weight:900;letter-spacing:.18em;opacity:.87}.premium-welcome h1{margin:3px 0 0;color:#fff;font-size:27px;line-height:1.05;letter-spacing:-.035em}.premium-welcome h1 strong{color:#5ee1ed}.premium-welcome p{margin:4px 0 0;color:rgba(255,255,255,.82);font-size:13px}.premium-photo{position:relative;height:138px;overflow:hidden}.premium-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}.premium-photo-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(3,67,94,.02),rgba(2,29,42,.58))}.premium-site-caption{position:absolute;left:20px;bottom:24px;z-index:2;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.42)}.premium-site-caption span{display:block;margin-bottom:3px;font-size:10px;font-weight:900;letter-spacing:.16em}.premium-site-caption strong{display:block;max-width:320px;font-size:18px;line-height:1.15}
.premium-main-card{position:relative;z-index:5;margin:-16px 12px 0;padding:14px;border-radius:25px;background:#fff;box-shadow:var(--shadow)}.premium-location{min-height:92px;padding:12px;display:flex;align-items:center;gap:12px;border:1px solid #d6e9ed;border-radius:20px;background:linear-gradient(135deg,#fbffff,#f0fafb)}.premium-location-icon{width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;border-radius:17px;background:#dcf5ed;color:#07866e;font-size:28px}.premium-location-copy{min-width:0;flex:1}.premium-location-copy>span{display:block;color:#6f8a94;font-size:11px;font-weight:900;letter-spacing:.12em}.premium-location-copy>strong{display:block;margin-top:3px;color:#113d59;font-size:16px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.premium-location-copy p{margin:4px 0 0;color:#19855c;font-size:12px;font-weight:700;line-height:1.25}.premium-map{width:48px;height:58px;flex:0 0 48px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:15px;background:#e7f5fa;color:#075985}.premium-map b{font-size:22px;line-height:1}.premium-map small{margin-top:3px;font-size:9px;font-weight:850}.premium-clock{padding:20px 4px 17px;text-align:center}.premium-clock>span{display:block;color:#7e969f;font-size:11px;font-weight:900;letter-spacing:.18em}.premium-clock>strong{display:block;margin-top:1px;color:#076c95;font-size:68px;line-height:.98;letter-spacing:-.065em}.premium-clock p{margin:7px 0 0;color:#163f52;font-size:14px;font-weight:750;text-transform:capitalize}.premium-clock small{display:block;margin-top:3px;color:#8ca0a8;font-size:10px}
.punch:disabled{filter:none;opacity:.55}.premium-punch{width:100%;min-height:92px;margin:0;padding:13px 58px 13px 13px;border:0;border-radius:24px;display:flex;align-items:center;justify-content:flex-start;gap:14px;position:relative;color:#fff;text-align:left;background:linear-gradient(135deg,#05b48e,#008f8d 56%,#087b91);box-shadow:0 13px 30px rgba(2,145,137,.25)}.premium-punch.exit{background:linear-gradient(135deg,#dc6255,#c44440 56%,#a93338);box-shadow:0 13px 30px rgba(184,57,56,.22)}.premium-punch:active{transform:scale(.99)}.premium-punch-icon{width:60px;height:60px;flex:0 0 60px;display:grid;place-items:center;border-radius:19px;background:rgba(255,255,255,.17);font-size:30px;font-weight:900}.premium-punch-copy{min-width:0;display:flex;flex-direction:column}.premium-punch-copy b{color:#fff;font-size:18px;line-height:1.15;letter-spacing:.02em}.premium-punch-copy small{margin-top:5px;color:#fff;font-size:12px;opacity:.9}.premium-punch-next{position:absolute;right:14px;top:50%;width:42px;height:42px;transform:translateY(-50%);display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.16);font-size:32px;line-height:1}.premium-feedback{min-height:0;margin:7px 0 0;text-align:center;color:var(--red);font-size:12px;font-weight:650}.premium-last{margin:14px 0 0;padding:13px;min-height:82px;display:flex;align-items:center;gap:12px;border:1px solid #dcebee;border-radius:19px;background:#f9fcfd}.premium-last-icon{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border-radius:14px;background:#e3f3f9;color:#075985;font-size:24px}.premium-last-copy{min-width:0;flex:1}.premium-last-copy>span{display:block;color:#718b95;font-size:10px;font-weight:900;letter-spacing:.13em}.premium-last-copy>strong{display:block;margin-top:3px;color:#173d51;font-size:14px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.premium-last-copy>small{display:block;margin-top:3px;color:#82979f;font-size:11px}.premium-last-arrow{flex:0 0 24px;color:#075985;font-size:27px}

/* Historial y cuenta */
.premium-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 2px 14px}.premium-section-heading span{color:#6f8a94;font-size:10px;font-weight:900;letter-spacing:.15em}.premium-section-heading h2{margin:2px 0 0;color:#123f54;font-size:28px;line-height:1.1}.premium-refresh{width:44px;height:44px;border:0;border-radius:14px;background:#e6f4f7;color:#076c95;font-size:24px;font-weight:800}.premium-refresh:disabled{opacity:.5}.premium-panel-status{margin:0 2px 12px;color:#6f8791;font-size:13px}.premium-history-list{display:grid;gap:9px}.premium-history-item{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid #dcebee;border-radius:18px;background:#fbfefe}.premium-history-icon{width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;border-radius:13px;background:#def5ec;color:#07866e;font-size:22px;font-weight:900}.premium-history-item.exit .premium-history-icon{background:#fde9e7;color:#b74642}.premium-history-copy{min-width:0;flex:1}.premium-history-copy>span{display:block;color:#768f99;font-size:10px;font-weight:850;text-transform:capitalize}.premium-history-copy>strong{display:block;color:#173d51;font-size:15px}.premium-history-copy>small{display:block;margin-top:2px;color:#718791;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.premium-history-time{text-align:right}.premium-history-time>strong{display:block;color:#075985;font-size:17px}.premium-history-time>small{display:block;margin-top:3px;color:#178151;font-size:9px;font-weight:850}.premium-history-time>small.review{color:#a45b19}.premium-account-card{display:flex;align-items:center;gap:14px;padding:16px;border-radius:20px;background:linear-gradient(135deg,#edfafa,#e8f3f8)}.premium-account-initial{width:58px;height:58px;flex:0 0 58px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(135deg,#087590,#08a18f);color:#fff;font-size:26px;font-weight:950}.premium-account-card strong{display:block;color:#123f54;font-size:18px}.premium-account-card span{display:block;margin-top:3px;color:#66808b;font-size:13px}.premium-account-data{margin:13px 0 0}.premium-account-data>div{padding:13px 4px;border-bottom:1px solid #e4edef}.premium-account-data dt{color:#778f99;font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.premium-account-data dd{margin:3px 0 0;color:#173d51;font-size:15px;font-weight:750}.premium-logout{width:100%;margin-top:18px;padding:15px;border:1px solid #f0d4d2;border-radius:16px;background:#fff7f6;color:#aa3f3c;font-weight:850}
.premium-nav{position:fixed;z-index:20;left:50%;bottom:max(8px,env(safe-area-inset-bottom));transform:translateX(-50%);width:calc(min(520px,100%) - 20px);min-height:74px;padding:7px;display:flex;justify-content:space-around;border:1px solid #dce9ec;border-radius:24px;background:rgba(255,255,255,.97);box-shadow:0 10px 35px rgba(24,68,86,.18);backdrop-filter:blur(18px)}.premium-nav button{flex:1;min-height:58px;padding:5px;border:0;border-radius:18px;background:transparent;color:#7c929c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.premium-nav button b{font-size:25px;line-height:1}.premium-nav button span{font-size:11px;font-weight:800}.premium-nav button.active{color:#087d91;background:#e5f7f5}

/* Cámara, confirmación y administración */
.camera-modal{position:fixed;inset:0;z-index:100;background:#071e28;color:#fff;display:flex;flex-direction:column;overflow:hidden;padding:max(18px,env(safe-area-inset-top)) 18px max(24px,env(safe-area-inset-bottom))}.camera-top{display:flex;justify-content:space-between;align-items:center;min-height:44px}.camera-top strong{font-size:13px;letter-spacing:.12em;color:#bfe7ea}.camera-top button{width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:28px}.camera-message{text-align:center;margin:15px 0 18px}.camera-message h2{margin:0;font-size:27px}.camera-message p{margin:6px 0 0;color:#b6cbd3;font-size:14px}.camera-frame{position:relative;width:min(100%,430px);flex:1;min-height:360px;max-height:620px;margin:auto;overflow:hidden;border-radius:30px;background:#102f3a;box-shadow:0 24px 60px rgba(0,0,0,.35)}.camera-frame video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}.face-guide{position:absolute;width:min(68vw,270px);height:min(86vw,340px);max-height:70%;left:50%;top:48%;transform:translate(-50%,-50%);border:3px solid rgba(255,255,255,.88);border-radius:48% 48% 44% 44%/42% 42% 52% 52%;box-shadow:0 0 0 999px rgba(3,20,27,.25),0 0 30px rgba(14,165,164,.35)}.camera-countdown{position:absolute;left:50%;bottom:25px;transform:translateX(-50%);min-width:58px;height:58px;padding:0 16px;border-radius:30px;background:rgba(7,31,41,.78);display:grid;place-items:center;font-size:23px;font-weight:900}.camera-status{min-height:54px;display:flex;justify-content:center;align-items:center;gap:9px;color:#d7e8ec;font-size:13px}.camera-dot{width:9px;height:9px;border-radius:50%;background:#20d19a;box-shadow:0 0 0 5px rgba(32,209,154,.12)}.modal{position:fixed;inset:0;z-index:110;background:#0a2631cc;display:grid;place-items:center;padding:20px}.modal>div{width:min(390px,100%);background:#fff;border-radius:28px;padding:30px;text-align:center}.success{width:78px;height:78px;border-radius:50%;display:grid;place-items:center;background:#e6f7ef;color:#14a45f;font-size:42px;margin:auto}.modal h2{margin:20px 0 8px}.modal strong{font-size:42px;color:var(--blue)}.modal .primary{width:100%;margin-top:15px}.shell{max-width:520px;min-height:100vh;margin:auto;background:rgba(255,255,255,.9);padding:24px 22px 100px;box-shadow:var(--shadow);position:relative}.shell header{display:flex;justify-content:space-between;align-items:flex-start;margin:4px 0 18px}.shell h2{font-size:28px;margin:0}.muted{margin:3px 0;color:var(--muted)}.icon{border:0;width:42px;height:42px;border-radius:13px;background:#e9f2f5;color:var(--blue)}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.metric{padding:16px;border-radius:18px;background:#fff;border:1px solid #e5edf0}.metric strong{display:block;font-size:28px}.metric span{color:var(--muted);font-size:12px}.staff{background:#fff;border:1px solid #e5edf0;border-radius:20px;padding:17px;margin:16px 0}.staff h3{margin:0 0 10px}.person{display:flex;justify-content:space-between;gap:10px;padding:13px 0;border-top:1px solid #edf1f3}.person small{display:block;color:var(--muted)}.badge{white-space:nowrap;font-size:11px;font-weight:800;padding:6px 9px;border-radius:20px;background:#edf1f3;height:max-content}.badge.in{background:#e6f7ef;color:#178151}.badge.out{background:#eef2fa;color:#46638a}.badge.missing{background:#fff0e3;color:#a45b19}.admin-clock{color:var(--muted)}
@media(max-width:380px){.premium-header,.premium-welcome{padding-left:15px;padding-right:15px}.premium-brand small{letter-spacing:.1em}.premium-photo{height:126px}.premium-site-caption{left:16px}.premium-main-card{margin-left:9px;margin-right:9px}.premium-location{gap:9px}.premium-location-icon{width:48px;height:48px;flex-basis:48px}.premium-location-copy>strong{font-size:14px}.premium-clock>strong{font-size:60px}.premium-punch-copy b{font-size:16px}.premium-punch-copy small{font-size:11px}}@media(max-height:700px){.camera-message{margin:6px 0 10px}.camera-frame{min-height:300px}}@media(min-width:700px){body{padding:0}.login,.shell{min-height:calc(100vh - 56px);margin-top:28px;margin-bottom:28px;border-radius:30px}.login{background:#ffffffcc;box-shadow:var(--shadow)}}

/* Cabecera definitiva sin fotografía */
.premium-photo{height:58px;background:linear-gradient(145deg,#055f88,#07899f 58%,#18a2b1)}
.premium-site-caption{left:20px;bottom:16px;text-shadow:none}
.premium-site-caption span{display:inline;margin:0 7px 0 0;font-size:9px;opacity:.8}
.premium-site-caption strong{display:inline;font-size:14px}
.premium-main-card{margin-top:-12px}
@media(max-width:380px){.premium-photo{height:58px}}

/* Administración PRESENTIA */
.admin-app{min-height:100vh;display:grid;grid-template-columns:240px minmax(0,1fr);background:#f2f6f8;color:#153b4d}.admin-sidebar{position:sticky;top:0;height:100vh;padding:26px 17px 20px;display:flex;flex-direction:column;background:linear-gradient(180deg,#07546b,#086d78);color:#fff}.admin-brand{display:flex;align-items:center;gap:11px;padding:0 7px 28px}.admin-brand>b{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:#fff;color:#087184;font-size:24px}.admin-brand strong,.admin-brand span{display:block}.admin-brand strong{font-size:17px;letter-spacing:.05em}.admin-brand span{margin-top:3px;font-size:11px;opacity:.76}.admin-nav{position:static;height:auto;padding:0;display:grid;gap:7px;background:none;border:0}.admin-nav button{min-height:50px;padding:0 13px;border:0;border-radius:14px;display:flex;align-items:center;gap:11px;background:transparent;color:rgba(255,255,255,.8);text-align:left;font-size:14px;font-weight:750}.admin-nav button b{width:26px;font-size:20px;text-align:center}.admin-nav button.active{background:rgba(255,255,255,.16);color:#fff}.admin-logout{margin-top:auto;padding:13px;border:1px solid rgba(255,255,255,.25);border-radius:14px;background:transparent;color:#fff;font-weight:750}.admin-content{min-width:0;padding:0 30px 40px}.admin-topbar{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #dce6e9}.admin-topbar span,.admin-topbar strong{display:block}.admin-topbar span{color:#799099;font-size:11px;font-weight:850;letter-spacing:.12em}.admin-topbar strong{margin-top:2px;font-size:17px}.admin-clock{color:#52717e;font-size:14px;font-weight:750;text-align:right}.admin-panel{max-width:1420px;margin:0 auto;padding-top:28px}.admin-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.admin-heading>div>span,.admin-actions label>span{color:#758e98;font-size:11px;font-weight:900;letter-spacing:.12em}.admin-heading h1{margin:4px 0 0;font-size:32px;line-height:1.1;letter-spacing:-.035em}.admin-heading p{margin:7px 0 0;color:#647f8a;font-size:15px}.admin-refresh,.admin-print{min-height:44px;padding:0 16px;border:1px solid #cfe0e4;border-radius:13px;background:#fff;color:#076982;font-weight:800}.admin-metrics{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:13px;margin-bottom:18px}.admin-metric{min-height:108px;padding:17px;border:1px solid #dce8eb;border-radius:18px;background:#fff;box-shadow:0 7px 22px rgba(21,65,82,.05)}.admin-metric span{display:block;color:#607d88;font-size:14px;font-weight:750}.admin-metric strong{display:block;margin-top:8px;color:#123f54;font-size:30px;line-height:1}.admin-metric.green{border-left:5px solid #19a974}.admin-metric.blue{border-left:5px solid #2694c3}.admin-metric.amber{border-left:5px solid #efa83a}.admin-metric.slate{border-left:5px solid #778b98}.admin-filters{display:grid;grid-template-columns:minmax(260px,1fr) 210px 190px;gap:12px;margin:18px 0}.admin-filters label,.admin-actions label,.admin-search{display:flex;flex-direction:column;gap:6px}.admin-filters label>span,.admin-search>span{color:#607b87;font-size:12px;font-weight:800}.admin-filters input,.admin-filters select,.admin-search input,.admin-actions input{width:100%;height:46px;padding:0 13px;border:1px solid #ccdde2;border-radius:13px;background:#fff;color:#153b4d;font-size:15px;outline:none}.admin-filters input:focus,.admin-search input:focus,.admin-actions input:focus{border-color:#168ca0;box-shadow:0 0 0 3px rgba(22,140,160,.12)}.admin-search-wide{max-width:640px;margin-bottom:18px}.admin-table-wrap{overflow:auto;border:1px solid #d9e6e9;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(19,58,74,.05)}.admin-table{width:100%;border-collapse:collapse;min-width:780px}.admin-table th{padding:14px 15px;background:#f5f9fa;color:#597581;font-size:13px;text-align:left;white-space:nowrap}.admin-table td{padding:14px 15px;border-top:1px solid #e5edef;color:#284d5d;font-size:14px;vertical-align:middle}.admin-table td>strong,.admin-table td>small{display:block}.admin-table td>strong{font-size:15px;color:#153b4d}.admin-table td>small{margin-top:3px;color:#78909a;font-size:12px}.admin-badge{display:inline-block;padding:6px 9px;border-radius:99px;font-size:12px;font-weight:850;white-space:nowrap}.admin-badge.in{background:#dff6eb;color:#11744f}.admin-badge.out{background:#e6f0f8;color:#356b91}.admin-badge.missing{background:#fff1d9;color:#9c6516}.admin-badge.review{background:#ffe6dc;color:#a54c31}.admin-row-action{padding:8px 11px;border:1px solid #cfe0e4;border-radius:10px;background:#fff;color:#076982;font-weight:800;white-space:nowrap}.admin-empty,.admin-loading{padding:25px;text-align:center;color:#6c858f;font-size:15px}.admin-employee-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:12px}.admin-person-card{min-height:82px;padding:13px;border:1px solid #d9e6e9;border-radius:17px;background:#fff;display:flex;align-items:center;gap:12px;text-align:left;color:#153b4d}.admin-person-avatar,.admin-detail-avatar{display:grid;place-items:center;background:linear-gradient(135deg,#087590,#08a18f);color:#fff;font-weight:900}.admin-person-avatar{width:50px;height:50px;flex:0 0 50px;border-radius:15px;font-size:17px}.admin-person-card>span:nth-child(2){min-width:0;flex:1}.admin-person-card strong,.admin-person-card small{display:block}.admin-person-card strong{font-size:16px}.admin-person-card small{margin-top:4px;color:#6d8791;font-size:13px}.admin-person-card>b{font-size:27px;color:#16859a}.admin-back{margin-bottom:18px;padding:10px 13px;border:0;background:transparent;color:#08758b;font-size:14px;font-weight:850}.admin-detail-head{padding:20px;display:flex;align-items:center;gap:16px;border:1px solid #d8e7ea;border-radius:20px;background:#fff}.admin-detail-avatar{width:68px;height:68px;flex:0 0 68px;border-radius:21px;font-size:23px}.admin-detail-head span{color:#718a94;font-size:11px;font-weight:900;letter-spacing:.12em}.admin-detail-head h1{margin:3px 0 0;font-size:28px}.admin-detail-head p{margin:5px 0 0;color:#617b86;font-size:14px}.admin-detail-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:15px 0}.admin-detail-metrics article{padding:17px;border:1px solid #dce8eb;border-radius:17px;background:#fff}.admin-detail-metrics span{color:#66808b;font-size:13px;font-weight:750}.admin-detail-metrics strong{display:block;margin-top:6px;font-size:27px}.admin-actions{display:flex;align-items:flex-end;gap:10px}.admin-actions label{min-width:180px}
@media(max-width:900px){.admin-app{grid-template-columns:1fr}.admin-sidebar{position:relative;height:auto;padding:14px}.admin-brand{padding:0 2px 14px}.admin-nav{grid-template-columns:repeat(3,1fr)}.admin-nav button{justify-content:center}.admin-logout{position:absolute;right:14px;top:17px;width:auto;margin:0}.admin-content{padding:0 14px 30px}.admin-topbar{display:none}.admin-metrics{grid-template-columns:repeat(2,1fr)}.admin-filters{grid-template-columns:1fr 1fr}.admin-search{grid-column:1/-1}.admin-heading{margin-top:4px}.admin-table th,.admin-table td{padding:12px;font-size:13px}}
@media(max-width:560px){.admin-brand span,.admin-nav button span{display:none}.admin-nav button{min-height:46px}.admin-heading{display:block}.admin-heading h1{font-size:28px}.admin-refresh{margin-top:14px}.admin-metrics{gap:8px}.admin-metric{min-height:91px;padding:13px}.admin-metric strong{font-size:25px}.admin-filters{grid-template-columns:1fr}.admin-search{grid-column:auto}.admin-employee-grid{grid-template-columns:1fr}.admin-detail-metrics{grid-template-columns:1fr}.admin-actions{margin-top:14px;align-items:stretch;flex-direction:column}.admin-actions label{min-width:0}}
@media print{.admin-sidebar,.admin-topbar,.admin-nav,.admin-heading p,.admin-print,.admin-refresh,.admin-row-action{display:none!important}.admin-app{display:block}.admin-content{padding:0}.admin-panel{padding:0}.admin-table-wrap{box-shadow:none}.admin-table th,.admin-table td{font-size:12px;padding:8px}.admin-panel.hidden{display:none!important}}

/* =========================================================
   PRESENTIA ADMIN · AJUSTE VISUAL TIEMPO REAL
   ========================================================= */

/* Tipografia mas limpia */
.admin-heading h1{
    font-size:34px;
    font-weight:600;
    letter-spacing:-.025em;
    color:#073653;
}

.admin-heading>div>span{
    font-size:12px;
    font-weight:600;
    letter-spacing:.16em;
    color:#52798b;
}

.admin-heading p{
    font-size:16px;
    font-weight:400;
    color:#688591;
}

.admin-topbar strong{
    font-weight:600;
}

.admin-nav button{
    font-weight:500;
}

.admin-table th{
    font-weight:600;
}

.admin-table td>strong{
    font-weight:500;
}


/* RESUMENES GRANDES */
.admin-metrics{
    gap:16px;
    margin-bottom:22px;
}

.admin-metric{
    min-height:116px;
    padding:18px 20px;
    border-radius:17px;
    border:1px solid transparent !important;
    border-left:0 !important;
    box-shadow:none;
    display:flex;
    align-items:center;
    gap:17px;
}


/* Fondos con mas presencia */
.admin-metric.green{
    background:#dff7eb;
    border-color:#bcebd3 !important;
}

.admin-metric.blue{
    background:#e1f1ff;
    border-color:#bddff8 !important;
}

.admin-metric.amber{
    background:#fff0d6;
    border-color:#f5d59b !important;
}

.admin-metric.red,
.admin-metric.slate{
    background:#ffe2df;
    border-color:#f4c0bb !important;
}


/* ICONOS */
.admin-metric-icon{
    flex:0 0 62px;
    width:62px;
    height:62px;
    border-radius:50%;
    display:grid;
    place-items:center;
    font-size:31px;
    line-height:1;
    font-weight:500;
}

.admin-metric.green .admin-metric-icon{
    background:#19b978;
    color:#fff;
}

.admin-metric.blue .admin-metric-icon{
    background:#3295e8;
    color:#fff;
}

.admin-metric.amber .admin-metric-icon{
    background:#f2a300;
    color:#fff;
}

.admin-metric.red .admin-metric-icon,
.admin-metric.slate .admin-metric-icon{
    background:#ed4c4c;
    color:#fff;
}


/* TEXTO */
.admin-metric-copy{
    min-width:0;
}

.admin-metric .admin-metric-copy span{
    display:block;
    margin:0;
    color:#173f54;
    font-size:17px;
    line-height:1.15;
    font-weight:500;
}

.admin-metric .admin-metric-copy strong{
    display:block;
    margin-top:7px;
    color:#07385a;
    font-size:36px;
    line-height:.95;
    font-weight:600;
}


/* Colores sutilmente relacionados al estado */
.admin-metric.green .admin-metric-copy strong{
    color:#08734e;
}

.admin-metric.blue .admin-metric-copy strong{
    color:#1268a7;
}

.admin-metric.amber .admin-metric-copy strong{
    color:#a76700;
}

.admin-metric.red .admin-metric-copy strong,
.admin-metric.slate .admin-metric-copy strong{
    color:#b43737;
}


/* Botones menos pesados */
.admin-refresh,
.admin-print,
.admin-row-action{
    font-weight:500;
}


/* Etiquetas y filtros */
.admin-filters label>span,
.admin-search>span{
    font-weight:500;
    font-size:13px;
}


/* Adaptacion */
@media(max-width:1100px){
    .admin-metric{
        padding:15px;
        gap:12px;
    }

    .admin-metric-icon{
        width:52px;
        height:52px;
        flex-basis:52px;
        font-size:26px;
    }

    .admin-metric .admin-metric-copy span{
        font-size:15px;
    }

    .admin-metric .admin-metric-copy strong{
        font-size:31px;
    }
}


/* PRESENTIA - Badges de marcación más claros */
.admin-table .admin-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:36px;
    padding:7px 14px;
    border-radius:18px;
    font-size:15px;
    line-height:1;
    font-weight:500;
    letter-spacing:0;
    white-space:nowrap;
    border:1px solid transparent;
}

/* Entrada */
.admin-table .admin-badge.in{
    background:#e0f7ed;
    color:#07885c;
    border-color:#bdebd8;
}

/* Salida */
.admin-table .admin-badge.out{
    background:#e2f1ff;
    color:#147cc1;
    border-color:#c3e1f8;
}

/* A revisar */
.admin-table .admin-badge.review{
    background:#fff0e8;
    color:#d65b20;
    border-color:#ffd4bf;
}

/* Sin entrada */
.admin-table .admin-badge.missing{
    background:#fff3d9;
    color:#b86c00;
    border-color:#f7dda6;
}

/* Estado normal */
.admin-table .admin-badge.valid,
.admin-table .admin-badge.ok{
    background:#e0f7ed;
    color:#07885c;
    border-color:#bdebd8;
}


/* PRESENTIA - ajuste definitivo etiquetas Tiempo Real */
.admin-table td .admin-badge{
    min-height:38px !important;
    padding:8px 15px !important;
    border-radius:20px !important;
    font-size:16px !important;
    font-weight:400 !important;
    line-height:1 !important;
    letter-spacing:0 !important;
    box-shadow:none !important;
}

.admin-table td .admin-badge.in{
    background:#d9f5e9 !important;
    color:#087d57 !important;
    border:1px solid #aee5cd !important;
}

.admin-table td .admin-badge.out{
    background:#dcebfa !important;
    color:#1677b8 !important;
    border:1px solid #afd4ef !important;
}

.admin-table td .admin-badge.review{
    background:#ffe6dc !important;
    color:#c84b1d !important;
    border:1px solid #f5bca5 !important;
}

.admin-table td .admin-badge.missing{
    background:#fff0cf !important;
    color:#a96300 !important;
    border:1px solid #efce87 !important;
}



/* PRESENTIA · etiquetas definitivas Tiempo Real */
.admin-table tbody td .admin-badge{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:40px !important;
    padding:0 17px !important;
    border-radius:999px !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:16px !important;
    font-weight:400 !important;
    line-height:1 !important;
    letter-spacing:0 !important;
    text-transform:none !important;
}

.admin-table tbody td .admin-badge.in{
    background:#dff7ed !important;
    color:#087b57 !important;
    border:1px solid #a9e4cb !important;
}

.admin-table tbody td .admin-badge.out{
    background:#e0effc !important;
    color:#1478b8 !important;
    border:1px solid #afd6f1 !important;
}

.admin-table tbody td .admin-badge.review{
    background:#ffe5d9 !important;
    color:#c65325 !important;
    border:1px solid #f4b99f !important;
}

.admin-table tbody td .admin-badge.missing{
    background:#fff0cf !important;
    color:#a86809 !important;
    border:1px solid #edcf8c !important;
}

/* PRESENTIA · ajuste fino final Entrada / Salida / Revisión */
.admin-table tbody td .admin-badge{
    min-height:34px !important;
    padding:0 13px !important;
    gap:7px !important;
    font-size:14px !important;
    font-weight:400 !important;
}

.admin-punch-arrow{
    width:20px;
    height:20px;
    flex:0 0 20px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    font-size:15px;
    font-weight:400;
    line-height:1;
}

.admin-badge.in .admin-punch-arrow{
    background:#16a572;
    color:#fff;
}

.admin-badge.out .admin-punch-arrow{
    background:#278fd2;
    color:#fff;
}


/* ===== PRESENTIA - FICHA POR CICLOS ===== */

.admin-detail-section{
    margin-top:22px;
}

.admin-period-filter{margin-bottom:18px;padding:14px;border:1px solid #d7e5eb;border-radius:16px;background:#fff;box-shadow:0 4px 15px rgba(15,67,87,.035)}
.admin-period-presets{display:flex;flex-wrap:wrap;gap:8px}
.admin-period-presets button,.admin-period-apply{min-height:40px;padding:0 15px;border:1px solid #c8dce3;border-radius:11px;background:#f7fafb;color:#315d70;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.admin-period-presets button.active{border-color:#087b8d;background:#087b8d;color:#fff}
.admin-custom-range{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #e1ebee}
.admin-custom-range.hidden{display:none}
.admin-custom-range label{min-width:180px;display:flex;flex-direction:column;gap:5px}
.admin-custom-range label span{color:#607b87;font-size:12px;font-weight:700}
.admin-custom-range input{height:42px;padding:0 11px;border:1px solid #c8dce3;border-radius:11px;color:#153b4d;font:inherit}
.admin-period-apply{border-color:#168ca0;background:#e9f7f8;color:#076982}

.admin-detail-section-title{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    margin-bottom:14px;
}

.admin-detail-section-title h2{
    margin:0 0 5px;
    font-size:24px;
    font-weight:600;
    color:#073b57;
}

.admin-detail-section-title p{
    margin:0;
    font-size:15px;
    font-weight:400;
    color:#587486;
}

.admin-cycle-day{
    margin-bottom:18px;
    border:1px solid #d5e4e9;
    border-radius:17px;
    overflow:hidden;
    background:#fff;
}

.admin-cycle-day-head{
    min-height:52px;
    padding:0 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    background:#e4f7f4;
    color:#073b57;
}

.admin-cycle-day-head strong{
    font-size:16px;
    font-weight:600;
}

.admin-cycle-day-head span{
    font-size:15px;
    font-weight:400;
}

.admin-cycle-day-head span b{
    margin-left:4px;
    font-size:18px;
    font-weight:600;
}

.admin-cycle-day .admin-table-wrap{
    border:0;
    border-radius:0;
    box-shadow:none;
}

.admin-cycle-table{
    margin:0;
}

.admin-cycle-table th{
    font-size:13px;
    font-weight:500;
    color:#496a7b;
    background:#f7fafb;
}

.admin-cycle-table td{
    padding-top:15px;
    padding-bottom:15px;
    font-size:15px;
    font-weight:400;
    vertical-align:middle;
}

.admin-cycle-number{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:27px;
    height:27px;
    border-radius:50%;
    background:#eaf4fa;
    color:#17658b;
    font-size:13px;
    font-weight:500;
}

.cycle-entry{
    color:#008a5a;
    font-size:15px;
    font-weight:400;
}

.cycle-exit{
    color:#1674b8;
    font-size:15px;
    font-weight:400;
}

.cycle-missing{
    color:#c66a32;
    font-size:14px;
    font-weight:400;
}

.cycle-duration{
    color:#073b57;
    font-size:16px;
    font-weight:600;
}

.admin-cycle-table .admin-badge{
    font-size:13px !important;
    font-weight:400 !important;
    padding:6px 12px !important;
}

.admin-period-total{
    min-height:76px;
    margin-top:20px;
    padding:0 22px;
    display:grid;
    grid-template-columns:1fr auto auto;
    align-items:center;
    gap:28px;
    border:1px solid #9ecdf3;
    border-radius:17px;
    background:#eaf5ff;
    color:#073b57;
}

.admin-period-total span{
    font-size:18px;
    font-weight:500;
}

.admin-period-total strong{
    font-size:28px;
    font-weight:600;
    white-space:nowrap;
}

.admin-period-total small{
    font-size:14px;
    font-weight:400;
    color:#42677d;
    white-space:nowrap;
}

@media(max-width:800px){
    .admin-cycle-day-head{
        align-items:flex-start;
        flex-direction:column;
        padding:13px 16px;
        gap:4px;
    }

    .admin-period-total{
        grid-template-columns:1fr;
        gap:5px;
        padding:16px;
    }
}

/* =========================================================
   PRESENTIA - FICHA EMPLEADO PREMIUM
   ========================================================= */

.admin-detail-head{
    padding:22px 26px;
    border:1px solid #d7e5eb;
    border-radius:18px;
    background:#fff;
    box-shadow:0 5px 18px rgba(15,67,87,.045);
}

.admin-detail-avatar{
    width:62px;
    height:62px;
    border-radius:16px;
    background:#1198a2;
    font-size:23px;
    font-weight:500;
}

.admin-detail-head span{
    color:#54758a;
    font-size:13px;
    font-weight:500;
    letter-spacing:.06em;
}

.admin-detail-head h1{
    margin:3px 0 4px;
    color:#063f62;
    font-size:29px;
    line-height:1.1;
    font-weight:500;
}

.admin-detail-head p{
    color:#5e7b8d;
    font-size:14px;
    font-weight:400;
}

/* 4 tarjetas superiores */
.admin-detail-metrics{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin:14px 0 20px;
}

.admin-detail-metrics article{
    min-height:94px;
    padding:17px 19px;
    border:1px solid #d8e5eb;
    border-radius:16px;
    background:#fff;
    box-shadow:0 4px 15px rgba(15,67,87,.035);
}

.admin-detail-metrics article span{
    display:block;
    color:#57758a;
    font-size:14px;
    font-weight:400;
    margin-bottom:7px;
}

.admin-detail-metrics article strong{
    display:block;
    color:#063f62;
    font-size:26px;
    line-height:1;
    font-weight:500;
}

/* cuarta tarjeta: sede */
.admin-detail-metrics article:last-child strong{
    font-size:16px;
    line-height:1.3;
}

/* título */
.admin-detail-section-title{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin:0 0 13px;
}

.admin-detail-section-title h2{
    margin:0 0 4px;
    color:#073f61;
    font-size:25px;
    font-weight:500;
}

.admin-detail-section-title p{
    margin:0;
    color:#617d8e;
    font-size:14px;
    font-weight:400;
}

/* bloque de cada día */
.admin-cycle-day{
    margin-bottom:16px;
    overflow:hidden;
    border:1px solid #d4e5e9;
    border-radius:16px;
    background:#fff;
}

.admin-cycle-day-head{
    min-height:48px;
    padding:0 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:linear-gradient(90deg,#e2f7f4 0%,#edfafa 100%);
    border-bottom:1px solid #d8eceb;
    color:#064a67;
}

.admin-cycle-day-head strong{
    font-size:15px;
    font-weight:500;
}

.admin-cycle-day-head span{
    font-size:14px;
    font-weight:400;
}

.admin-cycle-day-head b{
    margin-left:5px;
    color:#063f62;
    font-size:18px;
    font-weight:500;
}

/* tabla */
.admin-cycle-table th{
    padding:12px 14px;
    color:#355f78;
    font-size:13px;
    font-weight:500;
}

.admin-cycle-table td{
    padding:13px 14px;
    color:#174d69;
    font-size:14px;
    font-weight:400;
    vertical-align:middle;
}

.admin-cycle-table tbody tr:hover{
    background:#f8fcfd;
}

.admin-cycle-number{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:25px;
    height:25px;
    border-radius:50%;
    background:#e8f4fa;
    color:#176388;
    font-size:12px;
    font-weight:500;
}

/* Entrada / salida con flechas limpias */
.cycle-entry,
.cycle-exit{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    font-weight:400;
    white-space:nowrap;
}

.cycle-entry{
    color:#058b50;
}

.cycle-exit{
    color:#0875bd;
}

.cycle-entry::before{
    content:"→";
    color:#0aae55;
    font-size:22px;
    line-height:1;
    font-weight:400;
}

.cycle-exit::before{
    content:"→";
    color:#ef4141;
    font-size:22px;
    line-height:1;
    font-weight:400;
}

.cycle-duration{
    color:#073f61;
    font-size:15px;
    font-weight:500;
}

.cycle-missing{
    color:#d06a38;
    font-weight:400;
}

/* estados más finos */
.admin-cycle-table .admin-badge{
    padding:6px 13px;
    border-radius:999px;
    font-size:13px;
    font-weight:400 !important;
}

.admin-cycle-table .admin-badge.review{
    color:#c85524;
    background:#fff0e9;
    border:1px solid #ffc1a6;
}

/* total del período */
.admin-period-total{
    min-height:72px;
    display:flex;
    align-items:center;
    gap:22px;
    padding:15px 20px;
    margin-top:18px;
    border:1px solid #9acfff;
    border-radius:16px;
    background:linear-gradient(90deg,#edf7ff,#e4f2ff);
    color:#073f61;
}

.admin-period-total span{
    font-size:17px;
    font-weight:500;
}

.admin-period-total strong{
    margin-left:auto;
    font-size:29px;
    font-weight:500;
}

.admin-period-total small{
    font-size:13px;
    font-weight:400;
    color:#4d7188;
}

/* responsive */
@media(max-width:1000px){
    .admin-detail-metrics{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:650px){
    .admin-detail-metrics{
        grid-template-columns:1fr;
    }

    .admin-cycle-table{
        min-width:850px;
    }

    .admin-period-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
    .admin-period-presets button,.admin-period-apply,.admin-custom-range label{width:100%;min-width:0}
}

/* ===== PRESENTIA · RESUMEN MENSUAL V23 ===== */
.monthly-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) 210px auto;align-items:end;gap:12px;margin:0 0 18px;padding:17px;border:1px solid #d4e4e9;border-radius:18px;background:#fff;box-shadow:0 6px 20px rgba(15,67,87,.045)}
.monthly-toolbar label{display:flex;flex-direction:column;gap:7px}.monthly-toolbar label span{color:#577482;font-size:12px;font-weight:700}.monthly-toolbar input{width:100%;height:46px;padding:0 13px;border:1px solid #c9dce2;border-radius:12px;background:#fbfdfe;color:#153b4d;font:inherit;outline:none}.monthly-toolbar input:focus{border-color:#168d9e;box-shadow:0 0 0 3px rgba(22,141,158,.12)}
.monthly-export-actions{display:flex;gap:8px}.monthly-pdf{border-color:#087c8f;background:#087c8f;color:#fff}
.monthly-result-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:22px 2px 11px}.monthly-result-head strong,.monthly-result-head span{display:block}.monthly-result-head strong{color:#073f61;font-size:20px}.monthly-result-head span{margin-top:3px;color:#688391;font-size:13px}.monthly-result-head small{color:#698490;font-size:12px}
.monthly-row-actions{display:flex;align-items:center;gap:7px}.monthly-primary{border-color:#b9dce2;background:#eff9fa}.monthly-icon-action{width:35px;height:35px;display:grid;place-items:center;border:0;border-radius:10px;color:#fff;font:inherit;font-weight:800;cursor:pointer}.monthly-icon-action.whatsapp{background:#1faa68}.monthly-icon-action.email{background:#287da8}
@media(max-width:850px){.monthly-toolbar{grid-template-columns:1fr 1fr}.monthly-search{grid-column:1/-1}.monthly-export-actions{justify-content:flex-end}.monthly-result-head{align-items:flex-start;flex-direction:column;gap:4px}}
@media(max-width:560px){.monthly-toolbar{grid-template-columns:1fr}.monthly-search{grid-column:auto}.monthly-export-actions{justify-content:stretch}.monthly-export-actions button{flex:1}.monthly-result-head small{display:none}}
@media print{.monthly-toolbar,.monthly-export-actions,.monthly-row-actions,.monthly-result-head small{display:none!important}.monthly-result-head{margin:0 0 12px}.monthly-table-wrap{display:block!important}.monthly-table th:last-child,.monthly-table td:last-child{display:none}.monthly-table{min-width:0}}


/* Alerta visible cuando el empleado está fuera de la geocerca */
.premium-feedback:not(:empty){
    margin:14px 0 4px;
    padding:15px 18px;
    min-height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #f0a6a1;
    border-radius:17px;
    background:#fff1f0;
    color:#b63e38;
    font-size:15px;
    font-weight:500;
    line-height:1.35;
    text-align:center;
    box-shadow:0 5px 16px rgba(182,62,56,.08);
}

.premium-feedback:not(:empty)::before{
    content:"⚠";
    flex:0 0 auto;
    margin-right:10px;
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#e85c54;
    color:#fff;
    font-size:17px;
    font-weight:600;
}

/* ===== PRESENTIA · SELECTOR DE PERÍODO V21 ===== */
.admin-period-filter{
    position:relative;
    margin:0 0 24px;
    padding:18px 20px 19px;
    overflow:hidden;
    border:1px solid #cfe1e7;
    border-radius:18px;
    background:linear-gradient(135deg,#ffffff 0%,#f7fbfc 100%);
    box-shadow:0 7px 22px rgba(15,67,87,.055);
}

.admin-period-filter::before{
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:4px;
    background:linear-gradient(180deg,#0a96a2,#08728b);
}

.admin-period-filter-head{
    display:flex;
    align-items:center;
    gap:11px;
    margin-bottom:15px;
}

.admin-period-filter-icon{
    width:38px;
    height:38px;
    flex:0 0 38px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:#e5f6f6;
    color:#08788b;
    font-size:20px;
    font-weight:700;
}

.admin-period-filter-head strong,
.admin-period-filter-head small{display:block}
.admin-period-filter-head strong{color:#073f61;font-size:15px;font-weight:650}
.admin-period-filter-head small{margin-top:2px;color:#688391;font-size:12px;font-weight:400}

.admin-period-presets{
    display:inline-flex;
    max-width:100%;
    padding:4px;
    gap:3px;
    border:1px solid #d7e5e9;
    border-radius:14px;
    background:#edf4f6;
}

.admin-period-presets button{
    min-height:42px;
    padding:0 18px;
    border:0;
    border-radius:10px;
    background:transparent;
    color:#486b7a;
    font-family:inherit;
    font-size:14px;
    font-weight:550;
    line-height:1;
    cursor:pointer;
    transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.admin-period-presets button:hover{background:rgba(255,255,255,.75);color:#07667b}
.admin-period-presets button:focus-visible{outline:3px solid rgba(17,151,163,.2);outline-offset:2px}
.admin-period-presets button.active{
    background:#fff;
    color:#00788a;
    box-shadow:0 3px 10px rgba(17,76,94,.12),inset 0 0 0 1px rgba(8,132,148,.18);
}

.admin-period-presets button.active::before{
    content:"";
    display:inline-block;
    width:7px;
    height:7px;
    margin-right:8px;
    border-radius:50%;
    background:#0ca18f;
    box-shadow:0 0 0 3px rgba(12,161,143,.12);
    vertical-align:1px;
}

.admin-custom-range{
    display:grid;
    grid-template-columns:minmax(180px,230px) minmax(180px,230px) auto;
    align-items:end;
    gap:12px;
    margin-top:16px;
    padding:16px 0 0;
    border-top:1px solid #deeaed;
}

.admin-custom-range.hidden{display:none}
.admin-custom-range label{min-width:0;display:flex;flex-direction:column;gap:7px}
.admin-custom-range label span{color:#527180;font-size:12px;font-weight:650}
.admin-custom-range input{
    width:100%;
    height:45px;
    padding:0 13px;
    border:1px solid #c8dce3;
    border-radius:12px;
    background:#fff;
    color:#123f54;
    font-family:inherit;
    font-size:14px;
    outline:none;
    transition:border-color .18s ease,box-shadow .18s ease;
}
.admin-custom-range input:focus{border-color:#1594a2;box-shadow:0 0 0 3px rgba(21,148,162,.12)}

.admin-period-apply{
    min-height:45px;
    padding:0 20px;
    border:0;
    border-radius:12px;
    background:linear-gradient(135deg,#07859a,#087086);
    color:#fff;
    font-family:inherit;
    font-size:14px;
    font-weight:650;
    cursor:pointer;
    box-shadow:0 5px 13px rgba(8,112,134,.19);
    transition:transform .18s ease,box-shadow .18s ease;
}
.admin-period-apply:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(8,112,134,.25)}
.admin-period-apply:focus-visible{outline:3px solid rgba(17,151,163,.22);outline-offset:2px}

@media(max-width:760px){
    .admin-period-filter{padding:16px}
    .admin-period-presets{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
    .admin-period-presets button{width:100%;padding:0 10px}
    .admin-custom-range{grid-template-columns:1fr 1fr}
    .admin-period-apply{grid-column:1/-1;width:100%}
}

/* PRESENTIA · Vinculación obligatoria del primer teléfono */
.device-binding-gate{
    position:fixed;
    inset:0;
    z-index:10000;
    display:grid;
    place-items:center;
    padding:20px;
    background:rgba(7,45,58,.76);
    backdrop-filter:blur(8px);
}

.device-binding-gate.hidden{
    display:none;
}

.device-binding-card{
    width:min(100%,460px);
    padding:30px;
    border:1px solid rgba(255,255,255,.6);
    border-radius:24px;
    background:#fff;
    box-shadow:0 26px 70px rgba(4,35,47,.28);
    color:#173f4e;
    text-align:center;
}

.device-binding-icon{
    width:66px;
    height:66px;
    margin:0 auto 16px;
    display:grid;
    place-items:center;
    border-radius:21px;
    background:#e3f6f1;
    color:#087d70;
    font-size:34px;
}

.device-binding-card > span{
    color:#718b95;
    font-size:11px;
    font-weight:850;
    letter-spacing:.12em;
}

.device-binding-card h2{
    margin:6px 0 10px;
    font-size:28px;
    letter-spacing:-.025em;
}

.device-binding-card > p{
    margin:0;
    color:#5e7883;
    font-size:15px;
    line-height:1.55;
}

.device-binding-note{
    margin:20px 0;
    padding:14px;
    border:1px solid #cce4df;
    border-radius:13px;
    background:#f2faf8;
    color:#285f59;
    font-size:13px;
    line-height:1.45;
}

.device-binding-card .primary{
    width:100%;
    min-height:50px;
}

.device-binding-card .device-binding-status{
    min-height:21px;
    margin-top:13px;
    color:#a4513d;
    font-size:13px;
}

.device-binding-logout{
    margin-top:8px;
    padding:8px 10px;
    border:0;
    background:transparent;
    color:#657e88;
    font:inherit;
    font-size:13px;
    font-weight:700;
}

@media(max-width:560px){
    .device-binding-card{
        padding:25px 20px;
        border-radius:20px;
    }

    .device-binding-card h2{
        font-size:25px;
    }
}

@media(max-width:480px){
    .admin-period-filter-head small{font-size:11px}
    .admin-custom-range{grid-template-columns:1fr}
    .admin-period-apply{grid-column:auto}
}

/* ===== PRESENTIA · INDICADORES DE ENTRADA Y SALIDA V22 ===== */
.cycle-entry,
.cycle-exit{
    gap:10px;
    font-weight:500;
}

.cycle-entry::before,
.cycle-exit::before{
    content:"➜";
    width:28px;
    height:28px;
    flex:0 0 28px;
    display:inline-grid;
    place-items:center;
    border-radius:50%;
    color:#fff;
    font-size:17px;
    font-weight:800;
    line-height:1;
    text-shadow:0 1px 1px rgba(0,0,0,.08);
}

.cycle-entry::before{
    background:linear-gradient(135deg,#14b979,#07925d);
    box-shadow:0 3px 8px rgba(7,146,93,.22),inset 0 0 0 1px rgba(255,255,255,.22);
}

.cycle-exit::before{
    background:linear-gradient(135deg,#ff725f,#e84b43);
    box-shadow:0 3px 8px rgba(232,75,67,.22),inset 0 0 0 1px rgba(255,255,255,.22);
}

@media(max-width:650px){
    .cycle-entry::before,
    .cycle-exit::before{
        width:26px;
        height:26px;
        flex-basis:26px;
        font-size:16px;
    }
}

/* ===== PRESENTIA · ACCIONES DETALLE MENSUAL ===== */
.monthly-detail-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:24px;
    margin:22px 0 16px;
    padding:20px 22px;
    background:#fff;
    border:1px solid #d4e4e9;
    border-radius:18px;
    box-shadow:0 6px 20px rgba(15,67,87,.045);
}

.monthly-detail-identity > span{
    display:block;
    margin-bottom:5px;
    color:#62808e;
    font-size:11px;
    font-weight:700;
    letter-spacing:.08em;
}

.monthly-detail-identity h2{
    margin:0 0 5px;
    color:#073f61;
    font-size:22px;
    font-weight:600;
}

.monthly-detail-identity p{
    margin:0;
    color:#587582;
    font-size:13px;
}

.monthly-detail-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:8px;
}

.monthly-detail-action{
    height:40px;
    padding:0 15px;
    border:1px solid #bfd7de;
    border-radius:11px;
    background:#fff;
    color:#0a5970;
    font:inherit;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    transition:.15s ease;
}

.monthly-detail-action:hover{
    transform:translateY(-1px);
    box-shadow:0 4px 12px rgba(15,67,87,.10);
}

.monthly-detail-action.pdf{
    border-color:#087c8f;
    background:#087c8f;
    color:#fff;
}

.monthly-detail-action.whatsapp{
    border-color:#19a966;
    background:#19a966;
    color:#fff;
}

.monthly-detail-action.email{
    border-color:#287da8;
    background:#287da8;
    color:#fff;
}

.monthly-detail-action.close{
    background:#f5f8f9;
    border-color:#d3e0e4;
    color:#607985;
}

@media(max-width:850px){
    .monthly-detail-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .monthly-detail-actions{
        width:100%;
        justify-content:flex-start;
    }
}

@media(max-width:560px){
    .monthly-detail-action{
        flex:1 1 calc(50% - 8px);
    }

    .monthly-detail-action.close{
        flex-basis:100%;
    }
}


/* ===== PRESENTIA · IMPRESIÓN INFORME INDIVIDUAL ===== */
@media print {

    body.printing-monthly-detail .admin-sidebar,
    body.printing-monthly-detail .admin-topbar,
    body.printing-monthly-detail .admin-heading,
    body.printing-monthly-detail #reportMetrics,
    body.printing-monthly-detail .monthly-toolbar,
    body.printing-monthly-detail .monthly-result-head,
    body.printing-monthly-detail .monthly-table-wrap,
    body.printing-monthly-detail #reportEmpty,
    body.printing-monthly-detail .monthly-detail-actions {
        display:none !important;
    }

    body.printing-monthly-detail .admin-app,
    body.printing-monthly-detail .admin-content,
    body.printing-monthly-detail [data-admin-panel="reports"] {
        display:block !important;
        width:100% !important;
        max-width:none !important;
        margin:0 !important;
        padding:0 !important;
        background:#fff !important;
    }

    body.printing-monthly-detail #monthlyEmployeeDetail {
        display:block !important;
        width:100% !important;
        margin:0 !important;
        padding:0 !important;
    }

    body.printing-monthly-detail .monthly-detail-head {
        margin:0 0 18px !important;
        padding:0 0 14px !important;
        border:0 !important;
        border-bottom:2px solid #173f52 !important;
        border-radius:0 !important;
        box-shadow:none !important;
    }

    body.printing-monthly-detail .monthly-detail-identity > span {
        font-size:10px !important;
    }

    body.printing-monthly-detail .monthly-detail-identity h2 {
        font-size:22px !important;
    }

    body.printing-monthly-detail .admin-cycle-day {
        break-inside:avoid;
        page-break-inside:avoid;
        margin-bottom:14px !important;
    }

    body.printing-monthly-detail .admin-table-wrap {
        overflow:visible !important;
        border-radius:0 !important;
        box-shadow:none !important;
    }

    body.printing-monthly-detail .admin-cycle-table {
        width:100% !important;
        min-width:0 !important;
    }

    body.printing-monthly-detail .admin-cycle-table th,
    body.printing-monthly-detail .admin-cycle-table td {
        padding:7px 8px !important;
        font-size:11px !important;
    }

    body.printing-monthly-detail .admin-period-total {
        break-inside:avoid;
        page-break-inside:avoid;
        margin-top:18px !important;
    }
}


/* ===== PRESENTIA · REPORTE MENSUAL COMPACTO ===== */

.monthly-detail-table-wrap{
    margin-top:16px;
    border:1px solid #d4e4e9;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 5px 18px rgba(15,67,87,.04);
}

.monthly-detail-table{
    min-width:850px;
}

.monthly-detail-table thead th{
    padding:12px 14px;
    background:#08738c;
    color:#fff;
    border:0;
    font-size:12px;
    font-weight:600;
    letter-spacing:.01em;
}

.monthly-detail-table tbody td{
    padding:11px 14px;
    border-top:1px solid #e2ecef;
    color:#294f60;
    font-size:13px;
    vertical-align:middle;
}

.monthly-detail-table tbody tr:nth-child(even){
    background:#f7fafb;
}

.monthly-detail-table tbody tr:hover{
    background:#f0f7f8;
}

.monthly-detail-table td:first-child strong{
    color:#123f54;
    font-weight:600;
}

.monthly-detail-table td:first-child small{
    display:block;
    margin-top:2px;
    color:#7a929c;
    font-size:10px;
}

.monthly-detail-table .cycle-entry{
    color:#12855d;
    font-weight:600;
}

.monthly-detail-table .cycle-exit{
    color:#28759a;
    font-weight:600;
}

.monthly-detail-table .cycle-duration{
    color:#173f52;
    font-weight:600;
}

/* Impresión compacta del informe individual */
@media print{

    body.printing-monthly-detail #monthlyEmployeeDetail{
        font-size:10px !important;
    }

    body.printing-monthly-detail .monthly-detail-table-wrap{
        margin-top:10px !important;
        border:1px solid #bfd4da !important;
        border-radius:7px !important;
        overflow:visible !important;
        box-shadow:none !important;
    }

    body.printing-monthly-detail .monthly-detail-table{
        width:100% !important;
        min-width:0 !important;
        table-layout:auto !important;
        border-collapse:collapse !important;
    }

    body.printing-monthly-detail .monthly-detail-table thead{
        display:table-header-group;
    }

    body.printing-monthly-detail .monthly-detail-table thead th{
        padding:6px 7px !important;
        background:#08738c !important;
        color:#fff !important;
        font-size:9px !important;
        font-weight:600 !important;
        -webkit-print-color-adjust:exact;
        print-color-adjust:exact;
    }

    body.printing-monthly-detail .monthly-detail-table tbody td{
        padding:5px 7px !important;
        font-size:9px !important;
        line-height:1.2 !important;
        border-top:1px solid #dbe6e9 !important;
    }

    body.printing-monthly-detail .monthly-detail-table tbody tr{
        break-inside:avoid;
        page-break-inside:avoid;
    }

    body.printing-monthly-detail .monthly-detail-table tbody tr:nth-child(even){
        background:#f5f8f9 !important;
        -webkit-print-color-adjust:exact;
        print-color-adjust:exact;
    }

    body.printing-monthly-detail .admin-badge{
        padding:3px 6px !important;
        font-size:8px !important;
    }

    body.printing-monthly-detail .admin-period-total{
        margin-top:12px !important;
        padding:11px 14px !important;
    }
}


/* ===== PRESENTIA · CABECERA PROFESIONAL INFORME MENSUAL ===== */

.monthly-report-summary{
    display:grid;
    grid-template-columns:minmax(280px,1.6fr) repeat(3,minmax(145px,.7fr));
    gap:12px;
    margin:0 0 18px;
}

.monthly-report-person,
.monthly-report-stat{
    min-height:128px;
    padding:18px 20px;
    border:1px solid #d6e5e9;
    border-radius:16px;
    background:#fff;
    box-shadow:0 5px 18px rgba(15,67,87,.04);
}

.monthly-report-person{
    background:linear-gradient(135deg,#f8fcfd,#fff);
}

.monthly-report-person > span{
    display:block;
    margin-bottom:5px;
    color:#668491;
    font-size:10px;
    font-weight:700;
    letter-spacing:.11em;
}

.monthly-report-person h3{
    margin:0 0 10px;
    color:#073f61;
    font-size:21px;
    font-weight:600;
}

.monthly-report-person p{
    margin:3px 0;
    color:#567481;
    font-size:12px;
}

.monthly-report-person p b{
    color:#294f60;
    font-weight:600;
}

.monthly-report-stat{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.monthly-report-stat span{
    color:#66818d;
    font-size:12px;
    font-weight:500;
}

.monthly-report-stat strong{
    display:block;
    margin-top:9px;
    color:#073f61;
    font-size:27px;
    line-height:1;
    font-weight:600;
}

.monthly-report-stat.warning{
    border-left:4px solid #e69539;
}

.monthly-report-stat.warning strong{
    color:#b85f1d;
}

@media(max-width:1000px){
    .monthly-report-summary{
        grid-template-columns:repeat(3,1fr);
    }

    .monthly-report-person{
        grid-column:1/-1;
    }
}

@media(max-width:600px){
    .monthly-report-summary{
        grid-template-columns:1fr;
    }

    .monthly-report-person{
        grid-column:auto;
    }

    .monthly-report-stat{
        min-height:90px;
    }
}

/* Impresión */
@media print{

    body.printing-monthly-detail .monthly-report-summary{
        display:grid !important;
        grid-template-columns:1.55fr .7fr .7fr .7fr !important;
        gap:7px !important;
        margin:0 0 11px !important;
    }

    body.printing-monthly-detail .monthly-report-person,
    body.printing-monthly-detail .monthly-report-stat{
        min-height:76px !important;
        padding:9px 11px !important;
        border:1px solid #cbdde2 !important;
        border-radius:7px !important;
        box-shadow:none !important;
        break-inside:avoid;
        page-break-inside:avoid;
    }

    body.printing-monthly-detail .monthly-report-person h3{
        margin:2px 0 5px !important;
        font-size:15px !important;
    }

    body.printing-monthly-detail .monthly-report-person p{
        margin:1px 0 !important;
        font-size:8px !important;
    }

    body.printing-monthly-detail .monthly-report-stat span{
        font-size:8px !important;
    }

    body.printing-monthly-detail .monthly-report-stat strong{
        margin-top:6px !important;
        font-size:18px !important;
    }
}


/* ===== PRESENTIA · CORRECCION GRID CABECERA EN IMPRESION ===== */
@media print {
    body.printing-monthly-detail .monthly-report-person{
        grid-column:auto !important;
    }

    body.printing-monthly-detail .monthly-report-summary{
        grid-template-columns:1.65fr .72fr .72fr .72fr !important;
        align-items:stretch !important;
    }

    body.printing-monthly-detail .monthly-report-person,
    body.printing-monthly-detail .monthly-report-stat{
        min-width:0 !important;
    }
}


/* ===== PRESENTIA · ENCABEZADO INSTITUCIONAL DEL INFORME ===== */

.monthly-print-brand{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin:22px 0 16px;
    padding:18px 20px;
    border-bottom:2px solid #08738c;
}

.monthly-print-brand-left{
    display:flex;
    align-items:center;
    gap:13px;
}

.monthly-print-logo{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    flex:0 0 48px;
    border-radius:14px;
    background:linear-gradient(135deg,#08738c,#0793a3);
    color:#fff;
    font-size:27px;
    font-weight:700;
}

.monthly-print-brand-left strong,
.monthly-print-brand-left span,
.monthly-print-brand-right strong,
.monthly-print-brand-right span,
.monthly-print-brand-right small{
    display:block;
}

.monthly-print-brand-left strong{
    color:#073653;
    font-size:22px;
    font-weight:650;
    letter-spacing:.025em;
}

.monthly-print-brand-left span{
    margin-top:2px;
    color:#5f7d8a;
    font-size:12px;
}

.monthly-print-brand-right{
    text-align:right;
}

.monthly-print-brand-right strong{
    color:#073653;
    font-size:17px;
    font-weight:600;
}

.monthly-print-brand-right span{
    margin-top:3px;
    color:#527585;
    font-size:12px;
}

.monthly-print-brand-right small{
    margin-top:3px;
    color:#77909a;
    font-size:11px;
}

@media(max-width:600px){
    .monthly-print-brand{
        align-items:flex-start;
        flex-direction:column;
    }

    .monthly-print-brand-right{
        text-align:left;
    }
}

/* Versión compacta para PDF / impresión */
@media print{

    body.printing-monthly-detail .monthly-print-brand{
        display:flex !important;
        margin:0 0 10px !important;
        padding:0 0 9px !important;
        border-bottom:2px solid #08738c !important;
        break-inside:avoid;
        page-break-inside:avoid;
    }

    body.printing-monthly-detail .monthly-print-logo{
        width:34px !important;
        height:34px !important;
        flex-basis:34px !important;
        border-radius:8px !important;
        font-size:20px !important;
        -webkit-print-color-adjust:exact;
        print-color-adjust:exact;
    }

    body.printing-monthly-detail .monthly-print-brand-left{
        gap:8px !important;
    }

    body.printing-monthly-detail .monthly-print-brand-left strong{
        font-size:16px !important;
    }

    body.printing-monthly-detail .monthly-print-brand-left span{
        font-size:8px !important;
    }

    body.printing-monthly-detail .monthly-print-brand-right strong{
        font-size:12px !important;
    }

    body.printing-monthly-detail .monthly-print-brand-right span{
        font-size:8px !important;
    }

    body.printing-monthly-detail .monthly-print-brand-right small{
        font-size:7px !important;
    }
}


/* =========================================================
   PRESENTIA · ADMINISTRACIÓN DE CENTROS / GEOCERCAS
   ========================================================= */

.admin-centers-panel{
    max-width:1500px;
}

.centers-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
    margin-bottom:24px;
}

.centers-heading > div > span{
    display:block;
    margin-bottom:7px;
    color:#07859a;
    font-size:11px;
    font-weight:800;
    letter-spacing:.12em;
}

.centers-heading h1{
    margin:0;
    color:#12384b;
    font-size:32px;
    line-height:1.08;
    letter-spacing:-.025em;
}

.centers-heading p{
    margin:8px 0 0;
    color:#708894;
    font-size:14px;
}

.centers-new{
    min-height:44px;
    padding:0 18px;
    border:0;
    border-radius:10px;
    background:#087b8f;
    color:#fff;
    font:inherit;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 5px 15px rgba(8,123,143,.18);
}

.centers-new:hover{
    background:#066b7d;
}

.centers-metrics{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
    margin-bottom:20px;
}

.centers-metrics article{
    min-height:112px;
    padding:18px 20px;
    border:1px solid #dce8eb;
    border-radius:14px;
    background:#fff;
    box-shadow:0 5px 18px rgba(28,66,80,.045);
}

.centers-metrics span,
.centers-metrics small{
    display:block;
}

.centers-metrics span{
    color:#6e8792;
    font-size:12px;
    font-weight:700;
}

.centers-metrics strong{
    display:block;
    margin:7px 0 4px;
    color:#123d50;
    font-size:28px;
    line-height:1;
}

.centers-metrics small{
    color:#93a5ad;
    font-size:11px;
}

.centers-workspace{
    display:grid;
    grid-template-columns:minmax(300px,360px) minmax(0,1fr);
    gap:20px;
    align-items:start;
}

.centers-list-card,
.center-editor-card{
    border:1px solid #dce8eb;
    border-radius:16px;
    background:#fff;
    box-shadow:0 8px 26px rgba(28,66,80,.055);
}

.centers-list-card{
    padding:18px;
}

.centers-list-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:14px;
}

.centers-list-head h2{
    margin:0;
    color:#153d50;
    font-size:18px;
}

.centers-list-head span{
    display:block;
    margin-top:3px;
    color:#8ba0a9;
    font-size:11px;
}

.centers-search{
    display:block;
    margin-bottom:14px;
}

.centers-search > span{
    display:none;
}

.centers-search input{
    width:100%;
    height:42px;
    padding:0 13px;
    border:1px solid #d7e5e8;
    border-radius:9px;
    outline:none;
    background:#f9fbfc;
    color:#183d4c;
    font:inherit;
    font-size:13px;
}

.centers-search input:focus{
    border-color:#58aeb9;
    box-shadow:0 0 0 3px rgba(8,123,143,.08);
}

.centers-list{
    display:flex;
    flex-direction:column;
    gap:9px;
}

.center-list-item{
    width:100%;
    padding:14px;
    border:1px solid #e1eaed;
    border-radius:11px;
    background:#fff;
    text-align:left;
    cursor:pointer;
    transition:.16s ease;
}

.center-list-item:hover{
    border-color:#a8cfd5;
    background:#fbfdfd;
}

.center-list-item.active{
    border-color:#1590a0;
    background:#f1fafb;
    box-shadow:0 0 0 2px rgba(21,144,160,.07);
}

.center-list-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
}

.center-list-top strong{
    color:#173e50;
    font-size:13px;
}

.center-status{
    flex:0 0 auto;
    padding:4px 7px;
    border-radius:999px;
    background:#e9f8f2;
    color:#23815f;
    font-size:9px;
    font-weight:800;
    text-transform:uppercase;
}

.center-status.inactive{
    background:#f1f3f4;
    color:#7d8c92;
}

.center-list-item > span{
    display:block;
    margin-top:6px;
    overflow:hidden;
    color:#758d97;
    font-size:11px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.center-list-meta{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:9px;
    color:#52737f;
    font-size:10px;
    font-weight:700;
}

.centers-empty{
    margin:18px 0 4px;
    color:#7b929b;
    font-size:12px;
    text-align:center;
}

.center-editor-card{
    padding:24px;
}

.center-editor-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    margin-bottom:22px;
}

.center-editor-head > div > span{
    display:block;
    margin-bottom:5px;
    color:#0b8799;
    font-size:10px;
    font-weight:800;
    letter-spacing:.11em;
}

.center-editor-head h2{
    margin:0;
    color:#123d50;
    font-size:23px;
}

.center-editor-head p{
    margin:5px 0 0;
    color:#7c929b;
    font-size:12px;
}

.center-location-btn{
    min-height:38px;
    padding:0 13px;
    border:1px solid #bdd8dd;
    border-radius:9px;
    background:#fff;
    color:#087b8f;
    font:inherit;
    font-size:11px;
    font-weight:700;
    cursor:pointer;
}

.center-location-btn:hover{
    background:#f4fafb;
}

.center-form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.center-field{
    display:block;
}

.center-field-wide{
    grid-column:1/-1;
}

.center-field span{
    display:block;
    margin-bottom:6px;
    color:#496b79;
    font-size:11px;
    font-weight:700;
}

.center-field input{
    width:100%;
    height:42px;
    padding:0 12px;
    border:1px solid #d4e2e6;
    border-radius:8px;
    outline:none;
    background:#fff;
    color:#173d4d;
    font:inherit;
    font-size:13px;
}

.center-field input:focus{
    border-color:#58aeb9;
    box-shadow:0 0 0 3px rgba(8,123,143,.07);
}

.center-map-preview{
    position:relative;
    height:260px;
    margin-top:18px;
    overflow:hidden;
    border:1px solid #d7e5e8;
    border-radius:12px;
    background:
        linear-gradient(35deg,transparent 46%,rgba(177,201,207,.28) 47%,rgba(177,201,207,.28) 49%,transparent 50%) 0 0/95px 95px,
        linear-gradient(-28deg,transparent 47%,rgba(177,201,207,.20) 48%,rgba(177,201,207,.20) 50%,transparent 51%) 20px 10px/125px 105px,
        #f4f8f8;
}

.center-map-grid{
    position:absolute;
    inset:0;
    opacity:.45;
    background:
        linear-gradient(90deg,rgba(198,216,220,.34) 1px,transparent 1px) 0 0/46px 46px,
        linear-gradient(rgba(198,216,220,.34) 1px,transparent 1px) 0 0/46px 46px;
}

.center-geofence{
    position:absolute;
    left:50%;
    top:48%;
    width:150px;
    height:150px;
    transform:translate(-50%,-50%);
    display:grid;
    place-items:center;
    border:2px solid rgba(5,139,157,.58);
    border-radius:50%;
    background:rgba(10,151,168,.13);
    box-shadow:0 0 0 8px rgba(10,151,168,.04);
    transition:width .2s ease,height .2s ease;
}

.center-pin{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border:5px solid rgba(255,255,255,.92);
    border-radius:50%;
    background:#087f92;
    color:#fff;
    font-size:20px;
    box-shadow:0 5px 16px rgba(20,70,85,.22);
}

.center-map-caption{
    position:absolute;
    left:14px;
    right:14px;
    bottom:12px;
    padding:10px 12px;
    border:1px solid rgba(215,229,232,.9);
    border-radius:9px;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(6px);
}

.center-map-caption strong,
.center-map-caption span{
    display:block;
}

.center-map-caption strong{
    color:#173e50;
    font-size:11px;
}

.center-map-caption span{
    margin-top:2px;
    color:#82959d;
    font-size:9px;
}

.center-radius-block{
    margin-top:18px;
    padding:16px;
    border:1px solid #e0eaed;
    border-radius:11px;
    background:#fbfcfc;
}

.center-radius-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
}

.center-radius-head span,
.center-radius-head small{
    display:block;
}

.center-radius-head span{
    color:#365e6e;
    font-size:12px;
    font-weight:800;
}

.center-radius-head small{
    margin-top:3px;
    color:#8da0a8;
    font-size:10px;
}

.center-radius-head strong{
    color:#087b8f;
    font-size:18px;
}

.center-radius-block input[type="range"]{
    width:100%;
    margin:16px 0 7px;
    accent-color:#087f92;
}

.center-radius-block p{
    margin:0;
    color:#879ba3;
    font-size:10px;
    line-height:1.45;
}

.center-form-message{
    min-height:18px;
    margin:12px 0 0;
    color:#b34a4a;
    font-size:11px;
}

.center-form-message.success{
    color:#23815f;
}

.center-form-actions{
    display:flex;
    justify-content:flex-end;
    gap:9px;
    margin-top:6px;
}

.center-cancel,
.center-save{
    min-height:40px;
    padding:0 17px;
    border-radius:9px;
    font:inherit;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}

.center-cancel{
    border:1px solid #d2e0e4;
    background:#fff;
    color:#607b86;
}

.center-save{
    border:1px solid #087b8f;
    background:#087b8f;
    color:#fff;
}

.center-save:hover{
    background:#066b7d;
}

@media(max-width:1050px){
    .centers-workspace{
        grid-template-columns:300px minmax(0,1fr);
    }
}

@media(max-width:850px){
    .centers-heading,
    .center-editor-head{
        flex-direction:column;
    }

    .centers-new,
    .center-location-btn{
        width:100%;
    }

    .centers-metrics{
        grid-template-columns:1fr;
    }

    .centers-workspace{
        grid-template-columns:1fr;
    }

    .center-form-grid{
        grid-template-columns:1fr;
    }

    .center-field-wide{
        grid-column:auto;
    }
}

@media(max-width:560px){
    .center-editor-card,
    .centers-list-card{
        padding:15px;
    }

    .centers-heading h1{
        font-size:27px;
    }

    .center-map-preview{
        height:220px;
    }

    .center-form-actions{
        flex-direction:column-reverse;
    }

    .center-cancel,
    .center-save{
        width:100%;
    }
}


/* PRESENTIA · corrección mensaje guardado Centros */
.center-form-message:empty{
    display:none !important;
}

.center-form-message{
    min-height:0 !important;
    margin:12px 0 0 !important;
    padding:0 !important;
    border-radius:0 !important;
    background:transparent !important;
}

.center-form-message.success{
    display:block;
    padding:9px 12px !important;
    border:1px solid #cce9de !important;
    border-radius:8px !important;
    background:#f0faf6 !important;
    color:#23815f !important;
}

/* PRESENTIA · Centros: anular estilo circular global .success */
.center-form-message.success{
    width:auto !important;
    height:auto !important;
    min-height:0 !important;
    display:block !important;
    place-items:initial !important;
    margin:12px 0 0 !important;
    padding:9px 12px !important;
    border:1px solid #cce9de !important;
    border-radius:8px !important;
    background:#f0faf6 !important;
    color:#23815f !important;
    font-size:11px !important;
    text-align:left !important;
}

.center-form-message:empty{
    display:none !important;
}

/* ===== PRESENTIA · CENTROS · MAPA REAL ===== */

.center-real-map{
    position:relative;
    height:330px;
    background:#eef4f5;
}

#centerLeafletMap{
    position:absolute;
    inset:0;
    z-index:1;
}

.center-real-map .center-map-caption{
    z-index:500;
    pointer-events:none;
}

.center-real-map .leaflet-control-attribution{
    font-size:9px;
}

.center-real-map .leaflet-control-zoom{
    border:0;
    box-shadow:0 3px 12px rgba(20,60,75,.15);
}

@media(max-width:560px){
    .center-real-map{
        height:280px;
    }
}


/* PRESENTIA · marcador propio para centros */
.presentia-map-marker-wrap{
    background:transparent !important;
    border:0 !important;
}

.presentia-map-marker{
    position:relative;
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border:4px solid #fff;
    border-radius:50% 50% 50% 10%;
    background:#087f92;
    color:#fff;
    box-shadow:0 5px 16px rgba(13,63,79,.32);
    transform:rotate(-45deg);
}

.presentia-map-marker span{
    display:block;
    transform:rotate(45deg);
    font-size:20px;
    line-height:1;
}


/* =========================================================
   PRESENTIA · CENTROS · AJUSTE TIPOGRÁFICO DEFINITIVO
   Más legible, menos negrita
   ========================================================= */

.centers-heading > div > span{
    font-size:12px !important;
    font-weight:600 !important;
    letter-spacing:.10em !important;
}

.centers-heading h1{
    font-size:32px !important;
    font-weight:600 !important;
    letter-spacing:-.025em !important;
}

.centers-heading p{
    font-size:15px !important;
    font-weight:400 !important;
}

.centers-new{
    font-size:14px !important;
    font-weight:600 !important;
}

/* Métricas */
.centers-metrics span{
    font-size:14px !important;
    font-weight:500 !important;
}

.centers-metrics strong{
    font-size:30px !important;
    font-weight:600 !important;
}

.centers-metrics small{
    font-size:12px !important;
    font-weight:400 !important;
}

/* Lista izquierda */
.centers-list-head h2{
    font-size:20px !important;
    font-weight:600 !important;
}

.centers-list-head span{
    font-size:13px !important;
    font-weight:400 !important;
}

.centers-search input{
    font-size:14px !important;
}

.center-list-top strong{
    font-size:15px !important;
    font-weight:600 !important;
}

.center-status{
    font-size:10px !important;
    font-weight:600 !important;
}

.center-list-item > span{
    font-size:13px !important;
    font-weight:400 !important;
}

.center-list-meta{
    font-size:12px !important;
    font-weight:500 !important;
}

/* Editor */
.center-editor-head > div > span{
    font-size:11px !important;
    font-weight:600 !important;
    letter-spacing:.10em !important;
}

.center-editor-head h2{
    font-size:25px !important;
    font-weight:600 !important;
}

.center-editor-head p{
    font-size:14px !important;
    font-weight:400 !important;
}

.center-location-btn{
    font-size:13px !important;
    font-weight:500 !important;
}

/* Campos */
.center-field span{
    font-size:13px !important;
    font-weight:500 !important;
}

.center-field input{
    font-size:15px !important;
    font-weight:400 !important;
}

/* Mapa */
.center-map-caption strong{
    font-size:13px !important;
    font-weight:600 !important;
}

.center-map-caption span{
    font-size:11px !important;
    font-weight:400 !important;
}

/* Radio */
.center-radius-head span{
    font-size:14px !important;
    font-weight:600 !important;
}

.center-radius-head small{
    font-size:11px !important;
    font-weight:400 !important;
}

.center-radius-head strong{
    font-size:20px !important;
    font-weight:600 !important;
}

.center-radius-block p{
    font-size:11px !important;
    font-weight:400 !important;
}

/* Mensajes y acciones */
.center-form-message,
.center-form-message.success{
    font-size:13px !important;
    font-weight:400 !important;
}

.center-cancel,
.center-save{
    font-size:14px !important;
    font-weight:600 !important;
}

@media(max-width:560px){
    .centers-heading h1{
        font-size:28px !important;
    }

    .center-editor-head h2{
        font-size:23px !important;
    }
}


/* ===== PRESENTIA · CENTROS · MAPA AMPLIABLE ===== */

.center-real-map{
    position:relative;
}

.center-map-expand{
    position:absolute;
    z-index:800;
    top:12px;
    right:12px;
    min-height:38px;
    padding:0 14px;
    border:1px solid #c9dfe4;
    border-radius:11px;
    background:rgba(255,255,255,.96);
    color:#086f83;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    box-shadow:0 4px 14px rgba(16,67,84,.12);
}

.center-map-expand:hover{
    background:#f4fafb;
}

.center-real-map.map-expanded{
    position:fixed !important;
    inset:18px !important;
    z-index:2000 !important;
    width:auto !important;
    height:auto !important;
    margin:0 !important;
    border-radius:20px !important;
    background:#fff;
    box-shadow:0 20px 70px rgba(0,25,35,.32);
}

.center-real-map.map-expanded #centerLeafletMap{
    height:100% !important;
    min-height:0 !important;
}

.center-real-map.map-expanded .center-map-caption{
    z-index:850;
}

.center-real-map.map-expanded .center-map-expand{
    z-index:900;
}

body.center-map-open{
    overflow:hidden;
}

@media(max-width:600px){
    .center-real-map.map-expanded{
        inset:8px !important;
        border-radius:15px !important;
    }

    .center-map-expand{
        top:9px;
        right:9px;
        min-height:36px;
        padding:0 11px;
        font-size:12px;
    }
}

/* ==========================================
   PRESENTIA · Gestión de empleados
   ========================================== */

.employee-management-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
}

.employee-management-heading .admin-primary-action{
    flex:0 0 auto;
    margin-top:4px;
}

.admin-primary-action{
    border:0;
    border-radius:12px;
    padding:12px 18px;
    min-height:44px;
    font:inherit;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    background:#0f766e;
    color:#fff;
    box-shadow:0 4px 12px rgba(15,118,110,.16);
    transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
}

.admin-primary-action:hover{
    background:#0d6963;
    box-shadow:0 6px 16px rgba(15,118,110,.20);
}

.admin-primary-action:active{
    transform:translateY(1px);
}

.employee-management-toolbar{
    margin:22px 0 20px;
}

.employee-management-toolbar .admin-search{
    margin:0;
}

@media (max-width:700px){
    .employee-management-heading{
        flex-direction:column;
        gap:16px;
    }

    .employee-management-heading .admin-primary-action{
        width:100%;
        margin-top:0;
    }
}

/* ==========================================
   PRESENTIA · Editor de empleados
   ========================================== */

.employee-editor-heading{
    margin-top:18px;
    margin-bottom:22px;
}

.employee-editor-card{
    max-width:980px;
    background:#fff;
    border:1px solid #dbe5e9;
    border-radius:18px;
    padding:26px;
    box-shadow:0 8px 24px rgba(15,55,70,.05);
}

.employee-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px 22px;
}

.employee-form-grid label{
    display:flex;
    flex-direction:column;
    gap:7px;
}

.employee-form-grid label > span{
    font-size:13px;
    font-weight:600;
    color:#345665;
}

.employee-form-grid input,
.employee-form-grid select{
    width:100%;
    min-height:46px;
    padding:10px 13px;
    border:1px solid #ccdce2;
    border-radius:11px;
    background:#fff;
    color:#173b4a;
    font:inherit;
    font-size:15px;
    outline:none;
    transition:border-color .15s ease,box-shadow .15s ease;
}

.employee-form-grid input:focus,
.employee-form-grid select:focus{
    border-color:#0f8b87;
    box-shadow:0 0 0 3px rgba(15,139,135,.10);
}

.employee-form-status{
    margin-top:24px;
    padding-top:20px;
    border-top:1px solid #e4ecef;
}

.employee-active-toggle{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-size:14px;
    font-weight:600;
    color:#294d5b;
    cursor:pointer;
}

.employee-active-toggle input{
    width:18px;
    height:18px;
    accent-color:#0f8b87;
}

.employee-form-message{
    min-height:20px;
    margin:16px 0 0;
    font-size:14px;
}

.employee-form-actions{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:12px;
    margin-top:22px;
}

.employee-form-actions .employee-cancel{
    margin:0;
    min-height:44px;
}

@media (max-width:760px){
    .employee-editor-card{
        padding:20px 16px;
    }

    .employee-form-grid{
        grid-template-columns:1fr;
        gap:16px;
    }

    .employee-form-actions{
        flex-direction:column-reverse;
    }

    .employee-form-actions button{
        width:100%;
    }
}

/* PRESENTIA · Centros habilitados por empleado */
.employee-sites-section{
    margin-top:24px;
    padding-top:22px;
    border-top:1px solid #e4ecef;
}

.employee-sites-heading{
    display:flex;
    flex-direction:column;
    gap:4px;
    margin-bottom:14px;
}

.employee-sites-heading > span{
    font-size:14px;
    font-weight:600;
    color:#294d5b;
}

.employee-sites-heading small{
    font-size:13px;
    font-weight:400;
    color:#6b8490;
}

.employee-sites-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.employee-site-option{
    display:flex;
    align-items:center;
    gap:11px;
    min-height:48px;
    padding:11px 13px;
    border:1px solid #d8e4e8;
    border-radius:11px;
    background:#f9fbfc;
    cursor:pointer;
    transition:border-color .15s ease,background .15s ease;
}

.employee-site-option:hover{
    border-color:#9fc7c5;
    background:#f5faf9;
}

.employee-site-option input{
    width:18px;
    height:18px;
    flex:0 0 auto;
    accent-color:#0f8b87;
}

.employee-site-option span{
    font-size:14px;
    font-weight:500;
    color:#294d5b;
}

.employee-sites-loading{
    font-size:13px;
    color:#78909a;
}

@media(max-width:760px){
    .employee-sites-grid{
        grid-template-columns:1fr;
    }
}

/* PRESENTIA · Confirmación de guardado de empleado */
.employee-form-message.success{
    display:block;
    padding:12px 14px;
    margin-top:18px;
    border:1px solid #b9ded6;
    border-radius:10px;
    background:#f1faf7;
    color:#176b5d;
    font-size:14px;
    font-weight:500;
    line-height:1.4;
}

/* PRESENTIA · Acceso del empleado */
.employee-access-section{
    margin-top:24px;
    padding:22px;
    border:1px solid #d7e6e9;
    border-radius:15px;
    background:#f8fbfc;
}

.employee-access-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
}

.employee-access-heading > div{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.employee-access-heading > div > span{
    color:#294d5b;
    font-size:16px;
    font-weight:750;
}

.employee-access-heading small,
.employee-access-secret small{
    color:#6b8490;
    font-size:13px;
    line-height:1.45;
}

.employee-access-badge{
    flex:0 0 auto;
    padding:7px 10px;
    border-radius:99px;
    background:#edf2f4;
    color:#617983;
    font-size:12px;
    font-weight:750;
}

.employee-access-badge.active{
    background:#dff5ec;
    color:#176b55;
}

.employee-access-summary{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin-top:18px;
}

.employee-access-summary > div{
    padding:13px 14px;
    border:1px solid #e0e9ec;
    border-radius:11px;
    background:#fff;
}

.employee-access-summary span,
.employee-access-secret > span{
    display:block;
    color:#78909a;
    font-size:11px;
    font-weight:750;
    letter-spacing:.06em;
    text-transform:uppercase;
}

.employee-access-summary strong{
    display:block;
    margin-top:5px;
    color:#244b5a;
    font-size:14px;
}

.employee-access-secret{
    margin-top:16px;
    padding:16px;
    border:1px solid #abd9cd;
    border-radius:12px;
    background:#effaf6;
}

.employee-access-secret strong{
    display:block;
    margin:5px 0 4px;
    color:#126b58;
    font-size:28px;
    letter-spacing:.14em;
}

.employee-access-message{
    min-height:18px;
    margin:14px 0 0;
    color:#a34f32;
    font-size:13px;
}

.employee-access-message.success{
    color:#176b55;
}

.employee-access-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:14px;
}

.admin-secondary-action,
.admin-danger-action{
    min-height:42px;
    padding:0 14px;
    border-radius:11px;
    background:#fff;
    font:inherit;
    font-size:13px;
    font-weight:750;
}

.admin-secondary-action{
    border:1px solid #bcd4da;
    color:#176a7c;
}

.admin-danger-action{
    border:1px solid #e2c3bd;
    color:#a14c3b;
}

.employee-detail-edit{
    margin-left:auto;
    flex:0 0 auto;
}

@media(max-width:760px){
    .employee-access-heading{
        flex-direction:column;
    }

    .employee-access-summary{
        grid-template-columns:1fr;
    }

    .employee-access-actions button{
        width:100%;
    }

    .employee-detail-edit{
        width:100%;
        margin-left:0;
    }
}

/* Visor privado de selfie - Administración */
.admin-selfie-modal{
    position:fixed;
    inset:0;
    z-index:130;
    display:grid;
    place-items:center;
    padding:24px;
    background:rgba(6,30,41,.82);
    backdrop-filter:blur(8px);
}

.admin-selfie-modal.hidden{
    display:none;
}

.admin-selfie-card{
    width:min(460px,100%);
    max-height:calc(100vh - 48px);
    overflow:auto;
    background:#fff;
    border-radius:26px;
    box-shadow:0 28px 80px rgba(0,0,0,.35);
}

.admin-selfie-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    padding:20px 20px 15px;
}

.admin-selfie-header span{
    display:block;
    color:#78909a;
    font-size:9px;
    font-weight:900;
    letter-spacing:.15em;
}

.admin-selfie-header h2{
    margin:4px 0 0;
    color:#123f54;
    font-size:22px;
}

.admin-selfie-header button{
    width:40px;
    height:40px;
    flex:0 0 40px;
    border:0;
    border-radius:50%;
    background:#edf5f7;
    color:#315866;
    font-size:27px;
    line-height:1;
    cursor:pointer;
}

.admin-selfie-photo{
    margin:0 20px;
    overflow:hidden;
    border-radius:20px;
    background:#e8f0f2;
}

.admin-selfie-photo img{
    display:block;
    width:100%;
    max-height:520px;
    object-fit:contain;
    background:#0b2631;
}

.admin-selfie-info{
    padding:17px 20px 22px;
}

.admin-selfie-info strong{
    display:block;
    color:#123f54;
    font-size:18px;
}

.admin-selfie-info span{
    display:block;
    margin-top:5px;
    color:#718791;
    font-size:13px;
}

.admin-row-actions{
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:wrap;
}

.admin-selfie-action{
    white-space:nowrap;
}

/* ==================================================
   PRESENTIA · ONBOARDING / INSTALACIÓN
   ================================================== */

.install-welcome{
    min-height:100dvh;
    padding:24px 18px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:
        radial-gradient(circle at 50% 0%,rgba(14,165,233,.13),transparent 38%),
        linear-gradient(180deg,#f7fbfd 0%,#eef6f8 100%);
}

.install-welcome.hidden{
    display:none !important;
}

.install-card{
    width:100%;
    max-width:430px;
    text-align:center;
    padding:30px 24px 24px;
}

.install-brand{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:11px;
    margin-bottom:38px;
    text-align:left;
}

.install-logo{
    width:45px;
    height:45px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#075985;
    color:#fff;
    font-size:23px;
    font-weight:800;
    box-shadow:0 8px 20px rgba(7,89,133,.18);
}

.install-brand strong{
    display:block;
    color:#0f2f3c;
    font-size:18px;
    letter-spacing:.8px;
}

.install-brand span{
    display:block;
    margin-top:2px;
    color:#78909a;
    font-size:9px;
    font-weight:700;
    letter-spacing:1.5px;
}

.install-icon{
    width:78px;
    height:78px;
    margin:0 auto 21px;
    border-radius:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#e1f5ee;
    color:#16805e;
    font-size:38px;
    font-weight:700;
}

.install-eyebrow{
    margin:0 0 10px;
    color:#16805e;
    font-size:11px;
    font-weight:800;
    letter-spacing:1.4px;
}

.install-card h1{
    margin:0;
    color:#123746;
    font-size:34px;
    line-height:1.08;
    letter-spacing:-1.2px;
}

.install-card h1 span{
    color:#16805e;
}

.install-lead{
    max-width:350px;
    margin:17px auto 27px;
    color:#607984;
    font-size:15px;
    line-height:1.55;
}

.install-steps{
    margin:0 0 27px;
    padding:18px;
    border:1px solid #dce9ed;
    border-radius:20px;
    background:rgba(255,255,255,.78);
    text-align:left;
}

.install-steps div{
    display:flex;
    align-items:center;
    gap:13px;
    min-height:43px;
    color:#385661;
    font-size:13px;
    font-weight:600;
}

.install-steps b{
    flex:0 0 28px;
    width:28px;
    height:28px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#e4f4ef;
    color:#16805e;
    font-size:12px;
}

.install-main-button{
    width:100%;
    min-height:55px;
    border-radius:16px;
    font-size:14px;
    letter-spacing:.4px;
}

.install-continue{
    width:100%;
    margin-top:12px;
    padding:12px;
    border:0;
    background:transparent;
    color:#54727e;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
}

.install-help{
    margin:12px auto 0;
    color:#607984;
    font-size:13px;
    line-height:1.45;
}

.install-card .fine{
    margin-top:27px;
    color:#94a7ae;
    font-size:11px;
}

@media(max-width:380px){
    .install-welcome{
        padding:16px 14px;
    }

    .install-card{
        padding:20px 12px;
    }

    .install-brand{
        margin-bottom:25px;
    }

    .install-icon{
        width:66px;
        height:66px;
        border-radius:20px;
        font-size:31px;
    }

    .install-card h1{
        font-size:29px;
    }
}

/* =========================================
   PRESENTIA · Instalación para empleados
   ========================================= */

.employee-install-section{
    margin-top:22px;
    padding:20px;
    border:1px solid #dce8ee;
    border-radius:18px;
    background:linear-gradient(145deg,#f8fbfc 0%,#f1f7f9 100%);
}

.employee-install-heading{
    margin-bottom:16px;
}

.employee-install-heading > div{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.employee-install-heading span{
    font-size:11px;
    font-weight:800;
    letter-spacing:.09em;
    color:#16836f;
}

.employee-install-heading strong{
    font-size:17px;
    color:#17313b;
}

.employee-install-heading small{
    font-size:13px;
    line-height:1.45;
    color:#6a7d85;
}

.employee-install-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.employee-install-actions button{
    min-height:76px;
    border-radius:14px;
    padding:13px 15px;
    text-align:left;
    cursor:pointer;
    transition:transform .15s ease,box-shadow .15s ease;
}

.employee-install-actions button:hover{
    transform:translateY(-1px);
    box-shadow:0 7px 18px rgba(15,45,55,.09);
}

.employee-install-actions button b,
.employee-install-actions button span{
    display:block;
}

.employee-install-actions button b{
    margin-bottom:5px;
    font-size:14px;
}

.employee-install-actions button span{
    font-size:12px;
    font-weight:500;
}

.employee-install-whatsapp{
    border:1px solid #bce7d5;
    background:#effbf5;
    color:#16704f;
}

.employee-install-whatsapp span{
    color:#4c7968;
}

.employee-install-qr{
    border:1px solid #cbdfe9;
    background:#f4f9fc;
    color:#15566f;
}

.employee-install-qr span{
    color:#5b7885;
}

.employee-install-note{
    margin:13px 2px 0;
    font-size:11px;
    line-height:1.45;
    color:#829198;
}

@media(max-width:600px){
    .employee-install-section{
        padding:16px;
    }

    .employee-install-actions{
        grid-template-columns:1fr;
    }
}

/* ===== PRESENTIA · GUÍA INSTALACIÓN IPHONE ===== */

body.modal-open{
    overflow:hidden;
}

.iphone-install-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
}

.iphone-install-modal.hidden{
    display:none;
}

.iphone-install-backdrop{
    position:absolute;
    inset:0;
    background:rgba(5,30,42,.72);
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
}

.iphone-install-dialog{
    position:relative;
    z-index:1;
    width:min(100%,430px);
    max-height:92vh;
    overflow-y:auto;
    background:#fff;
    border-radius:28px;
    padding:30px 22px 22px;
    box-shadow:0 24px 70px rgba(0,35,50,.30);
    text-align:center;
}

.iphone-install-close{
    position:absolute;
    right:16px;
    top:13px;
    width:38px;
    height:38px;
    border:0;
    border-radius:50%;
    background:#eef5f6;
    color:#31515d;
    font-size:27px;
    line-height:1;
    cursor:pointer;
}

.iphone-install-symbol{
    width:66px;
    height:66px;
    margin:4px auto 17px;
    border-radius:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#e7f7f1;
    color:#087f62;
    font-size:38px;
    font-weight:700;
}

.iphone-install-eyebrow{
    margin:0 0 7px;
    color:#078268;
    font-size:12px;
    font-weight:800;
    letter-spacing:1.5px;
}

.iphone-install-dialog h2{
    margin:0 0 23px;
    color:#123b49;
    font-size:27px;
    line-height:1.12;
}

.iphone-install-guide{
    display:flex;
    flex-direction:column;
    gap:11px;
    text-align:left;
}

.iphone-install-step{
    display:flex;
    gap:13px;
    padding:15px;
    background:#f5f9fa;
    border:1px solid #e1ecef;
    border-radius:17px;
}

.iphone-install-step>b{
    flex:0 0 34px;
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#dff5ed;
    color:#087d62;
    font-size:15px;
}

.iphone-install-step div{
    min-width:0;
}

.iphone-install-step strong{
    display:block;
    color:#173f4c;
    font-size:15px;
    margin-bottom:4px;
}

.iphone-install-step span{
    display:block;
    color:#637b84;
    font-size:13px;
    line-height:1.4;
}

.iphone-install-finish{
    margin:16px 0;
    padding:12px 14px;
    border-radius:14px;
    background:#e9f8f1;
    color:#087a5f;
    font-size:13px;
    font-weight:700;
}

.iphone-install-understood{
    width:100%;
    min-height:52px;
    border-radius:15px;
    font-weight:800;
}

@media(max-width:480px){
    .iphone-install-modal{
        padding:12px;
        align-items:flex-end;
    }

    .iphone-install-dialog{
        width:100%;
        border-radius:27px 27px 20px 20px;
        padding:27px 18px 18px;
    }

    .iphone-install-dialog h2{
        font-size:24px;
    }
}


/* PRESENTIA · Copiar enlace para instalación en Safari */
.iphone-copy-link{
    width:100%;
    min-height:48px;
    margin:2px 0 1px;
    padding:12px 16px;
    border:0;
    border-radius:14px;
    background:#075985;
    color:#fff;
    font-size:13px;
    font-weight:800;
    letter-spacing:.35px;
    cursor:pointer;
    box-shadow:0 7px 18px rgba(7,89,133,.18);
    -webkit-tap-highlight-color:transparent;
}

.iphone-copy-link:active{
    transform:scale(.985);
}

/* PRESENTIA · Acceso individual durante instalación */
.install-access{
    width:100%;
    margin:26px 0 24px;
    padding:22px 18px 18px;
    background:#fff;
    border:1px solid #dce9ed;
    border-radius:22px;
    box-shadow:0 12px 30px rgba(18,59,73,.08);
    text-align:left;
}

.install-access-title{
    margin:0 0 5px;
    color:#123b49;
    font-size:20px;
    font-weight:750;
    text-align:center;
}

.install-access-subtitle{
    margin:0 auto 18px;
    max-width:310px;
    color:#667e87;
    font-size:14px;
    line-height:1.45;
    text-align:center;
}

.install-access-data{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.install-access-data>div{
    min-width:0;
    padding:14px 12px;
    background:#f3f8fa;
    border:1px solid #e1ecef;
    border-radius:15px;
    text-align:center;
}

.install-access-data span{
    display:block;
    margin-bottom:6px;
    color:#71878f;
    font-size:10px;
    font-weight:800;
    letter-spacing:1.2px;
}

.install-access-data strong{
    display:block;
    color:#123b49;
    font-size:20px;
    font-weight:800;
    letter-spacing:.4px;
    overflow-wrap:anywhere;
}

@media(max-width:390px){
    .install-access{
        padding:19px 14px 15px;
    }

    .install-access-data{
        grid-template-columns:1fr;
    }
}

/* PRESENTIA · Refinamiento menú administrativo */
.admin-nav{
    gap:8px;
}

.admin-nav button{
    min-height:52px;
    padding:0 15px;
    gap:12px;
    border-radius:13px;
    font-size:15px;
    font-weight:500;
    letter-spacing:.01em;
    color:rgba(255,255,255,.86);
    transition:background .18s ease,color .18s ease,transform .18s ease;
}

.admin-nav button b{
    width:24px;
    font-size:17px;
    font-weight:400;
    opacity:.88;
}

.admin-nav button:hover{
    background:rgba(255,255,255,.08);
    color:#fff;
}

.admin-nav button.active{
    background:rgba(255,255,255,.14);
    color:#fff;
    box-shadow:inset 3px 0 0 rgba(255,255,255,.82);
}

.admin-nav button.active span{
    font-weight:600;
}

.admin-logout{
    font-size:14px;
    font-weight:500;
    letter-spacing:.01em;
}

/* PRESENTIA · Tiempo Real · estados profesionales 2026 */
.admin-table tbody td .admin-badge{
    min-height:28px !important;
    padding:0 10px !important;
    gap:5px !important;
    border-radius:8px !important;
    font-family:inherit !important;
    font-size:12px !important;
    font-weight:500 !important;
    letter-spacing:.01em !important;
    box-shadow:none !important;
}

/* Entrada / Trabajando */
.admin-table tbody td .admin-badge.in{
    background:#edf9f4 !important;
    color:#187454 !important;
    border:1px solid #ccecdf !important;
}

/* Salida / Ya salió */
.admin-table tbody td .admin-badge.out{
    background:#eef6fb !important;
    color:#326f91 !important;
    border:1px solid #d0e5f0 !important;
}

/* Sin entrada */
.admin-table tbody td .admin-badge.missing{
    background:#fff8e9 !important;
    color:#94681e !important;
    border:1px solid #f1dfb8 !important;
}

/* A revisar */
.admin-table tbody td .admin-badge.review{
    background:#fff1ed !important;
    color:#a95740 !important;
    border:1px solid #efd2c8 !important;
}

/* Cuando Tipo todavía no tiene marcación */
.admin-table tbody td .admin-badge.missing:empty{
    background:transparent !important;
    border-color:transparent !important;
}

/* Acciones de la fila */
.admin-table .admin-row-action{
    min-height:32px;
    padding:0 11px;
    border:1px solid #d6e3e7;
    border-radius:9px;
    background:#fff;
    color:#356777;
    font-size:12px;
    font-weight:500;
    letter-spacing:.005em;
    box-shadow:none;
    cursor:pointer;
    transition:
        background .16s ease,
        border-color .16s ease,
        color .16s ease;
}

.admin-table .admin-row-action:hover{
    background:#f4f9fa;
    border-color:#b9d3da;
    color:#075f73;
}

.admin-table .admin-selfie-action{
    background:#f5fafb;
    color:#24677a;
}

/* PRESENTIA · icono limpio para acción Selfie */
.admin-selfie-action{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
}

.admin-camera-icon{
    position:relative;
    width:15px;
    height:11px;
    flex:0 0 15px;
    border:1.5px solid currentColor;
    border-radius:3px;
    opacity:.82;
}

.admin-camera-icon::before{
    content:"";
    position:absolute;
    width:5px;
    height:3px;
    left:4px;
    top:-4px;
    border:1.5px solid currentColor;
    border-bottom:0;
    border-radius:2px 2px 0 0;
}

.admin-camera-icon::after{
    content:"";
    position:absolute;
    width:4px;
    height:4px;
    left:4px;
    top:2px;
    border:1.5px solid currentColor;
    border-radius:50%;
}

/* PRESENTIA · Tiempo Real · color definitivo */
.admin-table tbody td .admin-badge{
    min-height:30px !important;
    padding:0 11px !important;
    font-size:13px !important;
    font-weight:550 !important;
}

/* Entrada / Trabajando */
.admin-table tbody td .admin-badge.in{
    background:#d9f7e9 !important;
    color:#087a50 !important;
    border-color:#9fe3c5 !important;
}

/* Salida / Ya salió */
.admin-table tbody td .admin-badge.out{
    background:#dcefff !important;
    color:#086da8 !important;
    border-color:#a8d5f3 !important;
}

/* Sin entrada */
.admin-table tbody td .admin-badge.missing{
    background:#fff0cc !important;
    color:#a86600 !important;
    border-color:#edcc7d !important;
}

/* A revisar */
.admin-table tbody td .admin-badge.review{
    background:#ffe2dc !important;
    color:#b8442d !important;
    border-color:#f1b5a8 !important;
}

/* PRESENTIA · acción principal Ver ficha */
.admin-table .admin-profile-action{
    background:#ffffff;
    color:#075f73;
    border-color:#bfd8df;
    font-weight:600;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
}

.admin-table .admin-profile-action span{
    font-size:15px;
    line-height:1;
    transition:transform .16s ease;
}

.admin-table .admin-profile-action:hover{
    background:#edf7f8;
    border-color:#8fc2cc;
    color:#064f60;
}

.admin-table .admin-profile-action:hover span{
    transform:translateX(2px);
}

/* PRESENTIA · Tiempo Real · acciones alineadas a la derecha */
.admin-table tbody td:last-child{
    text-align:right;
    white-space:nowrap;
}

.admin-table tbody td:last-child .admin-row-action{
    margin-left:10px;
}

.admin-table tbody td:last-child .admin-row-action:first-child{
    margin-left:0;
}

/* PRESENTIA · Tiempo Real · acciones al extremo derecho */
.admin-table th:last-child,
.admin-table td:last-child{
    width:230px;
    min-width:230px;
    text-align:right !important;
    padding-right:22px !important;
}

.admin-table tbody td:last-child .admin-row-action{
    margin-left:12px;
}

/* PRESENTIA · QR de instalación */
.admin-qr-modal{
    position:fixed;
    inset:0;
    z-index:1200;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:rgba(15,23,42,.58);
    backdrop-filter:blur(5px);
}

.admin-qr-modal.hidden{
    display:none;
}

.admin-qr-card{
    width:min(440px,100%);
    background:#fff;
    border-radius:24px;
    box-shadow:0 24px 70px rgba(15,23,42,.24);
    overflow:hidden;
}

.admin-qr-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    padding:24px 26px 18px;
    border-bottom:1px solid #e8edf3;
}

.admin-qr-header span{
    display:block;
    margin-bottom:5px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.12em;
    color:#64748b;
}

.admin-qr-header h2{
    margin:0;
    font-size:22px;
    color:#0f172a;
}

.admin-qr-header button{
    width:38px;
    height:38px;
    flex:0 0 38px;
    border:0;
    border-radius:12px;
    background:#f1f5f9;
    color:#475569;
    font-size:26px;
    line-height:1;
    cursor:pointer;
}

.admin-qr-body{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:24px 26px 28px;
    text-align:center;
}

.admin-qr-body p{
    margin:0 0 18px;
    color:#475569;
    font-size:14px;
}

.admin-qr-code{
    width:320px;
    max-width:100%;
    aspect-ratio:1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(15,23,42,.08);
}

.admin-qr-code svg{
    display:block;
    width:100%;
    height:100%;
}

.admin-qr-body strong{
    margin-top:18px;
    font-size:18px;
    color:#0f172a;
}

.admin-qr-body > span{
    margin-top:6px;
    font-size:12px;
    color:#64748b;
}

@media (max-width:520px){
    .admin-qr-modal{
        padding:14px;
    }

    .admin-qr-card{
        border-radius:20px;
    }

    .admin-qr-code{
        width:280px;
    }
}

/* PRESENTIA · transición limpia mientras inicia la cámara */
.camera-modal.camera-preparing .face-guide,
.camera-modal.camera-preparing .camera-countdown {
    opacity: 0;
    visibility: hidden;
}

/* Android WebView: no mostrar el video vacío durante la inicialización */
@media (pointer: coarse) {
    .camera-modal.camera-preparing #cameraVideo,
    .camera-modal.camera-preparing .face-guide,
    .camera-modal.camera-preparing .camera-countdown {
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

/* ===== Navegación inferior refinada ===== */
.premium-nav{
    min-height:78px;
    padding:7px 9px;
}

.premium-nav button{
    min-height:60px;
    gap:5px;
    color:#78909a;
}

.premium-nav button svg{
    width:24px !important;
    height:24px !important;
    max-width:24px !important;
    max-height:24px !important;
    display:block !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:1.8 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
}

.premium-nav button svg *{
    fill:none !important;
    stroke:currentColor !important;
}

.premium-nav button span{
    font-size:13px;
    line-height:1.15;
    font-weight:700;
}

.premium-nav button.active{
    color:#087f91;
    background:#e5f7f5;
}

.premium-nav button.active svg{
    stroke-width:2.1 !important;
}

/* Más espacio debajo del botón de marcación */
.employee-tab-panel[data-panel="home"]{
    padding-bottom:30px !important;
}


/* ===== Historial mensual ===== */
.premium-history-month{
    display:grid;
    grid-template-columns:46px 1fr 46px;
    align-items:center;
    gap:8px;
    margin:0 0 12px;
    padding:7px;
    border:1px solid #dcebee;
    border-radius:18px;
    background:#f7fbfc;
}

.premium-history-month strong{
    text-align:center;
    color:#173d51;
    font-size:15px;
    font-weight:800;
}

.premium-history-month button{
    width:42px;
    height:42px;
    border:0;
    border-radius:13px;
    background:#e6f4f7;
    color:#087d91;
    font-size:29px;
    line-height:1;
}

.premium-history-month button:disabled{
    opacity:.28;
}

.premium-history-list{
    display:block;
}

.premium-history-day{
    margin:0 0 17px;
}

.premium-history-day-title{
    margin:0 3px 7px;
    color:#66838e;
    font-size:11px;
    line-height:1.3;
    font-weight:900;
    letter-spacing:.055em;
    text-transform:uppercase;
}

.premium-history-day .premium-history-item{
    margin-bottom:7px;
}

.premium-history-empty{
    padding:26px 18px;
    border:1px dashed #cfdee2;
    border-radius:18px;
    background:#f9fcfd;
    text-align:center;
}

.premium-history-empty strong{
    display:block;
    color:#173d51;
    font-size:15px;
}

.premium-history-empty span{
    display:block;
    margin-top:4px;
    color:#78909a;
    font-size:12px;
}

/* ==================================================
   PRESENTIA · INSTALACIÓN COMPACTA EN CELULAR
   Mantiene diseño y contenido, reduce altura vertical
   ================================================== */

@media(max-width:600px){
    .install-welcome{
        padding:12px 18px 18px;
        align-items:flex-start;
    }

    .install-card{
        padding:14px 24px 20px;
    }

    .install-brand{
        margin-bottom:14px;
    }

    .install-icon{
        width:64px;
        height:64px;
        margin:0 auto 12px;
        border-radius:20px;
        font-size:32px;
    }

    .install-eyebrow{
        margin-bottom:6px;
    }

    .install-lead{
        margin:11px auto 15px;
        line-height:1.4;
    }

    .install-access{
        margin-top:0;
    }

    .install-steps{
        margin-bottom:14px;
        padding:11px 16px;
    }

    .install-steps div{
        min-height:36px;
    }

    .install-main-button{
        min-height:52px;
    }
}

/* PRESENTIA · DISTANCIA AL CENTRO */
.premium-geo-distance{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    width:max-content;
    max-width:100%;
    margin:11px auto 2px;
    padding:7px 12px;
    border-radius:14px;
    font-size:12px;
    line-height:1.2;
    transition:.2s ease;
}

.premium-geo-distance .premium-geo-dot{
    flex:0 0 8px;
    width:8px;
    height:8px;
    border-radius:50%;
}

.premium-geo-distance div{
    text-align:left;
}

.premium-geo-distance strong{
    display:block;
    font-size:12px;
    font-weight:700;
}

.premium-geo-distance small{
    display:block;
    margin-top:3px;
    font-size:10px;
    font-weight:500;
    opacity:.72;
}

.premium-geo-distance.checking{
    color:#607984;
    background:#f3f7f8;
}

.premium-geo-distance.checking .premium-geo-dot{
    background:#94a7ae;
}

.premium-geo-distance.inside{
    color:#167257;
    background:#edf8f4;
}

.premium-geo-distance.inside .premium-geo-dot{
    background:#1b9a72;
}

.premium-geo-distance.outside{
    color:#a34a45;
    background:#fff3f1;
}

.premium-geo-distance.outside .premium-geo-dot{
    background:#d9685f;
}

/* PRESENTIA · estabilizar indicador GPS sin mover Inicio */
.premium-geo-distance{
    box-sizing:border-box;
    height:47px;
    min-height:47px;
    max-height:47px;
    margin:11px auto 2px;
    transition:none !important;
    overflow:hidden;
}

.premium-geo-distance strong,
.premium-geo-distance small,
.premium-geo-distance .premium-geo-dot{
    transition:none !important;
}

/* PRESENTIA · ESTADO PREVIO DE ÁREA */
.premium-area-status{
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:calc(100% - 28px);
    height:38px;
    min-height:38px;
    max-height:38px;
    margin:10px 14px 2px;
    padding:0 12px;
    border-radius:12px;
    overflow:hidden;
}

.premium-area-status .premium-area-dot{
    flex:0 0 9px;
    width:9px;
    height:9px;
    border-radius:50%;
}

.premium-area-status strong{
    display:block;
    font-size:12px;
    line-height:1;
    font-weight:650;
    white-space:nowrap;
}

.premium-area-status.checking{
    color:#607984;
    background:#f3f7f8;
}

.premium-area-status.checking .premium-area-dot{
    background:#94a7ae;
}

.premium-area-status.inside{
    color:#167257;
    background:#edf8f4;
}

.premium-area-status.inside .premium-area-dot{
    background:#1b9a72;
}

.premium-area-status.outside{
    color:#a34a45;
    background:#fff3f1;
}

.premium-area-status.outside .premium-area-dot{
    background:#d9685f;
}

/* PRESENTIA · separar estado de área del botón de marcación */
#areaStatus{
    margin-top:24px;
    margin-bottom:0;
}


/* PRESENTIA · estado de área más cerca del borde inferior */
#areaStatus{
    margin-top:45px;
    margin-bottom:0;
}


/* PRESENTIA · estado de área junto al borde inferior */
#areaStatus{
    margin-top:65px;
    margin-bottom:0;
}


/* PRESENTIA · mantener alto y acercar cartel al borde inferior */
#areaStatus{
    position:relative;
    top:18px;
    margin-top:47px;
    margin-bottom:0;
}


/* PRESENTIA · Listado mensual legible y compacto en A4 */
.monthly-detail-table .cycle-entry::before,
.monthly-detail-table .cycle-exit::before { content:none; display:none; }
.monthly-detail-table .cycle-entry,
.monthly-detail-table .cycle-exit { font-size:inherit; gap:0; font-variant-numeric:tabular-nums; }
.monthly-detail-table tbody td { padding:7px 10px; }
.monthly-detail-table td:nth-child(5) { white-space:nowrap; }
@page presentia-monthly { size:A4 portrait; margin:10mm; }
@media print {
    body.printing-monthly-detail { page:presentia-monthly; margin:0!important; background:#fff!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-print-brand { margin:0 0 6px!important; padding:0 0 6px!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-head { margin:0 0 8px!important; padding:0 0 6px!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-identity > span { display:none!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-identity h2 { margin:0 0 3px!important; font-size:15pt!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-identity p { margin:0!important; font-size:9pt!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-report-summary { margin:0 0 8px!important; gap:6px!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-report-person,
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-report-stat { min-height:0!important; padding:6px 8px!important; border-radius:3px!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-report-person > span,
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-report-stat span { font-size:8pt!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-report-person h3 { margin:0 0 3px!important; font-size:11pt!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-report-person p { margin:0!important; font-size:8pt!important; line-height:1.25!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-report-stat strong { margin-top:4px!important; font-size:13pt!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table-wrap { margin-top:0!important; width:100%!important; overflow:visible!important; border-radius:0!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table { width:100%!important; min-width:0!important; table-layout:fixed!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table th,
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table td { padding:3px 5px!important; font-size:9pt!important; line-height:1.2!important; vertical-align:middle!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table th { background:#edf3f5!important; color:#17384a!important; font-size:8pt!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table th:nth-child(1) { width:15%; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table th:nth-child(2) { width:12%; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table th:nth-child(3) { width:11%; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table th:nth-child(4) { width:16%; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table th:nth-child(5) { width:10%; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table th:nth-child(6) { width:23%; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table th:nth-child(7) { width:13%; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table td:nth-child(1),
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table td:nth-child(3),
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table td:nth-child(4),
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table td:nth-child(5) { white-space:nowrap!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table td:nth-child(6) { overflow-wrap:anywhere; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table td small { margin:0!important; font-size:7pt!important; line-height:1.1!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table .cycle-entry,
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table .cycle-exit,
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table .cycle-duration { font-size:inherit!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table .cycle-entry::before,
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table .cycle-exit::before { content:none!important; display:none!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table .admin-badge { display:inline!important; min-height:0!important; height:auto!important; line-height:1.2!important; padding:0!important; border:0!important; background:none!important; font-size:8pt!important; white-space:nowrap!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .admin-period-total { display:flex!important; align-items:baseline!important; gap:8px!important; margin-top:7px!important; padding:5px 0!important; border-radius:0!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .admin-period-total strong { font-size:11pt!important; }
    body.printing-monthly-detail #monthlyEmployeeDetail .admin-period-total span,
    body.printing-monthly-detail #monthlyEmployeeDetail .admin-period-total small { font-size:8pt!important; }
}

@media print {
 body.printing-monthly-detail #monthlyEmployeeDetail .monthly-detail-table td strong { font-size:9pt!important; line-height:1.2!important; }
 body.printing-monthly-detail #monthlyEmployeeDetail .admin-period-total { min-height:0!important; height:auto!important; background:none!important; }
}

/* PRESENTIA · Tiempo real · Diseño aprobado */
#adminView .admin-sidebar { background:#07566a; }
#adminView .admin-sidebar, #adminView .admin-sidebar *, #adminView .admin-topbar, #adminView .admin-topbar * { font-weight:400!important; }
#adminView .admin-nav svg { width:22px;height:22px;flex:0 0 22px; }
#adminView .presentia-live, #adminView .presentia-live * { font-weight:400!important; }
#adminView .presentia-live .admin-heading h1 { font-size:34px;letter-spacing:-.02em; }
#adminView .presentia-live .live-indicator { display:inline-flex;align-items:center;gap:7px;margin-left:16px;color:#087a58;font-size:13px;letter-spacing:0;text-transform:none; }
#adminView .presentia-live .live-indicator i { width:8px;height:8px;border-radius:50%;background:#12a875; }
#adminView .presentia-live .admin-metrics { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
#adminView .presentia-live .admin-metric { background:#fff!important;border:1px solid #d9e4eb!important;border-radius:12px;box-shadow:none!important;min-height:116px;padding:22px 24px;gap:20px; }
#adminView .presentia-live .admin-metric-icon { background:none!important;border-radius:0!important;box-shadow:none!important;width:44px;height:44px;flex:0 0 44px; }
#adminView .presentia-live .admin-metric-icon svg { width:38px;height:38px; }
#adminView .presentia-live .admin-metric.green .admin-metric-icon { color:#087a58; }
#adminView .presentia-live .admin-metric.blue .admin-metric-icon { color:#153b4d; }
#adminView .presentia-live .admin-metric.red .admin-metric-icon { color:#d9564c; }
#adminView .presentia-live .admin-metric-copy span { color:#183d50;font-size:16px; }
#adminView .presentia-live .admin-metric-copy strong { color:#12344b!important;font-size:38px;line-height:1.15; }
#adminView .presentia-live .admin-filters { margin-top:24px;margin-bottom:22px; }
#adminView .presentia-live .admin-filters input, #adminView .presentia-live .admin-filters select { border-radius:9px; }
#adminView .presentia-live .admin-table-wrap { border:1px solid #dce6ec;border-radius:12px;box-shadow:none; }
#adminView .presentia-live .admin-table thead th { background:#f7fafc;color:#52697e;font-size:13px; }
#adminView .presentia-live .admin-table tbody td { padding:18px 15px;font-size:14px;color:#23465e; }
#adminView .presentia-live .admin-table tbody td strong { color:#15364d;font-size:15px; }
#adminView .presentia-live .admin-table tbody td small { font-size:12px;color:#6f8498; }
#adminView .presentia-live .live-type { display:inline-flex;align-items:center;gap:8px;white-space:nowrap;min-height:34px;padding:6px 11px;border:1px solid #b8dfe5;border-radius:7px;color:#086678;background:#f0fafb;font-size:13px;line-height:1.2; }
#adminView .presentia-live .live-type.in::before { content:"→";font-size:18px;line-height:1; }
#adminView .presentia-live .live-type.out { background:#f4f7fb;border-color:#cad8e8;color:#426784; }
#adminView .presentia-live .live-type.out::before { content:"←";font-size:18px;line-height:1; }
#adminView .presentia-live .live-type.missing { color:#718492;background:#f8fafb;border-color:#dce5eb; }
#adminView .presentia-live .live-status { display:inline-flex;align-items:center;gap:8px;white-space:nowrap;color:#087451;font-size:14px; }
#adminView .presentia-live .live-status::before { content:"";width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#10ad79; }
#adminView .presentia-live .live-status.out { color:#426784; }
#adminView .presentia-live .live-status.out::before { background:#5c8fb8; }
#adminView .presentia-live .live-status.review { color:#ac5b2d; }
#adminView .presentia-live .live-status.review::before { background:#df9251; }
#adminView .presentia-live .admin-row-actions { gap:12px; }
#adminView .presentia-live .admin-row-action { background:transparent!important;border:0!important;border-radius:4px;box-shadow:none!important;padding:6px 4px!important;color:#075985;min-height:32px; }
#adminView .presentia-live .admin-profile-action { border-left:1px solid #dce6ec!important;border-radius:0;padding-left:14px!important; }
#adminView .presentia-live .admin-row-action:hover { background:#f0f6f9!important; }
#adminView .presentia-live .admin-row-action:focus-visible { outline:2px solid #08788c;outline-offset:2px; }
@media(max-width:760px) {
 #adminView .presentia-live .admin-metrics { gap:8px; }
 #adminView .presentia-live .admin-metric { min-height:94px;padding:14px 10px;gap:8px; }
 #adminView .presentia-live .admin-metric-icon { width:26px;flex-basis:26px; }
 #adminView .presentia-live .admin-metric-icon svg { width:25px;height:25px; }
 #adminView .presentia-live .admin-metric-copy span { font-size:12px; }
 #adminView .presentia-live .admin-metric-copy strong { font-size:28px; }
 #adminView .presentia-live .live-indicator { margin-left:8px; }
}

/* PRESENTIA · Tiempo real · Contraste de encabezado y tipos */
#adminView .presentia-live .admin-table thead th {
 background:#07566a!important;color:#fff!important;border-bottom:0;font-size:14px;
}
#adminView .presentia-live .admin-table tbody td:first-child strong {
 color:#17212b!important;font-weight:500!important;font-size:15px;
}
#adminView .presentia-live .live-type.in {
 background:#e2f4eb;border-color:#70b99a;color:#146545;
}
#adminView .presentia-live .live-type.out {
 background:#fbe8e2;border-color:#d99a88;color:#a33f29;
}

/* PRESENTIA · Ficha de empleado · Diseño consistente con Tiempo real */
@media screen {
 #adminView #employeeDetail, #adminView #employeeDetail * { font-weight:400!important; }
 #adminView #employeeDetail .admin-detail-head { border-radius:12px;box-shadow:none;background:#fff; }
 #adminView #employeeDetail .admin-detail-head h1 { color:#17212b;font-weight:500!important; }
 #adminView #employeeDetail .admin-detail-avatar { background:#07566a;border-radius:12px; }
 #adminView #employeeDetail .admin-detail-metrics article { border-radius:12px;box-shadow:none;background:#fff; }
 #adminView #employeeDetail .admin-detail-metrics strong { color:#183d50;font-size:27px; }
 #adminView #employeeDetail .admin-period-filter { background:#fff;box-shadow:none;border-radius:12px; }
 #adminView #employeeDetail .admin-period-filter-icon { background:#edf5f7;box-shadow:none;color:#07566a; }
 #adminView #employeeDetail .admin-detail-section-title h2 { font-size:25px; }
 #adminView #employeeDetail .admin-cycle-day { border:1px solid #dce6ec;border-radius:12px;box-shadow:none;background:#fff;overflow:hidden; }
 #adminView #employeeDetail .admin-cycle-day-head { background:#f0f6f8;color:#153b4d;border-bottom:1px solid #dce6ec;padding:14px 18px; }
 #adminView #employeeDetail .admin-cycle-day-head strong { color:#17212b;font-weight:500!important; }
 #adminView #employeeDetail .admin-cycle-day-head b { color:#153b4d; }
 #adminView #employeeDetail .admin-cycle-table thead th { background:#07566a!important;color:#fff!important;border-bottom:0;font-size:14px;padding:13px 15px; }
 #adminView #employeeDetail .admin-cycle-table tbody td { padding:16px 15px;color:#23465e;font-size:14px; }
 #adminView #employeeDetail .cycle-entry,
 #adminView #employeeDetail .cycle-exit { display:inline-flex;align-items:center;gap:8px;border:1px solid #70b99a;border-radius:7px;min-height:34px;padding:6px 11px;color:#146545;background:#e2f4eb;font-size:13px;line-height:1.2;white-space:nowrap; }
 #adminView #employeeDetail .cycle-exit { background:#fbe8e2;border-color:#d99a88;color:#a33f29; }
 #adminView #employeeDetail .cycle-entry::before,
 #adminView #employeeDetail .cycle-exit::before { display:inline;content:"→";width:auto;height:auto;flex:0 0 auto;border:0;border-radius:0;background:none;box-shadow:none;text-shadow:none;color:inherit;font-size:18px;line-height:1; }
 #adminView #employeeDetail .cycle-exit::before { content:"←"; }
 #adminView #employeeDetail .cycle-missing { color:#8f5a36;font-size:13px; }
 #adminView #employeeDetail .cycle-duration { color:#183d50; }
 #adminView #employeeDetail .admin-cycle-number { background:#f1f5f8;color:#52697e; }
 #adminView #employeeDetail .admin-cycle-table .admin-badge { display:inline-flex;align-items:center;gap:8px;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none;font-size:14px!important;white-space:nowrap; }
 #adminView #employeeDetail .admin-cycle-table .admin-badge::before { content:"";width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#10ad79; }
 #adminView #employeeDetail .admin-cycle-table .admin-badge.in { color:#087451!important; }
 #adminView #employeeDetail .admin-cycle-table .admin-badge.review { color:#ac5b2d!important; }
 #adminView #employeeDetail .admin-cycle-table .admin-badge.review::before { background:#df9251; }
 #adminView #employeeDetail .admin-period-total { background:#fff;border-radius:12px;box-shadow:none; }
}

/* PRESENTIA · Resumen mensual · Diseño consistente con Tiempo real */
@media screen {
 #adminView [data-admin-panel="reports"], #adminView [data-admin-panel="reports"] * { font-weight:400!important; }
 #adminView [data-admin-panel="reports"] .admin-heading h1 { font-size:34px;letter-spacing:-.02em; }
 #adminView [data-admin-panel="reports"] .admin-metrics { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px; }
 #adminView [data-admin-panel="reports"] .admin-metric { display:flex;align-items:center;background:#fff!important;border:1px solid #d9e4eb!important;border-radius:12px;box-shadow:none!important;min-height:116px;padding:22px 20px;gap:17px; }
 #adminView [data-admin-panel="reports"] .admin-metric-icon { display:grid;place-items:center;background:none!important;border-radius:0!important;box-shadow:none!important;width:42px;height:42px;flex:0 0 42px;color:#07566a; }
 #adminView [data-admin-panel="reports"] .admin-metric-icon svg { width:36px;height:36px; }
 #adminView [data-admin-panel="reports"] .admin-metric.amber .admin-metric-icon { color:#a96532; }
 #adminView [data-admin-panel="reports"] .admin-metric-copy span { color:#183d50;font-size:15px; }
 #adminView [data-admin-panel="reports"] .admin-metric-copy strong { margin-top:7px;color:#12344b!important;font-size:34px;line-height:1.15;white-space:nowrap; }
 #adminView [data-admin-panel="reports"] .monthly-toolbar { border-color:#dce6ec;border-radius:12px;box-shadow:none; }
 #adminView [data-admin-panel="reports"] .monthly-toolbar label span { color:#607b87; }
 #adminView [data-admin-panel="reports"] .monthly-toolbar input { border-radius:9px; }
 #adminView [data-admin-panel="reports"] .monthly-result-head strong { color:#17212b;font-weight:500!important; }
 #adminView [data-admin-panel="reports"] .monthly-table-wrap { border:1px solid #dce6ec;border-radius:12px;box-shadow:none; }
 #adminView [data-admin-panel="reports"] .monthly-table thead th { background:#07566a!important;color:#fff!important;border-bottom:0;font-size:14px; }
 #adminView [data-admin-panel="reports"] .monthly-table tbody td { padding:18px 15px;color:#23465e;font-size:14px; }
 #adminView [data-admin-panel="reports"] .monthly-table tbody td:first-child strong { color:#17212b!important;font-weight:500!important;font-size:15px; }
 #adminView [data-admin-panel="reports"] .monthly-table .admin-badge { display:inline-flex;align-items:center;gap:8px;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none;font-size:14px!important;white-space:nowrap; }
 #adminView [data-admin-panel="reports"] .monthly-table .admin-badge::before { content:"";width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#10ad79; }
 #adminView [data-admin-panel="reports"] .monthly-table .admin-badge.in { color:#087451!important; }
 #adminView [data-admin-panel="reports"] .monthly-table .admin-badge.review { color:#ac5b2d!important; }
 #adminView [data-admin-panel="reports"] .monthly-table .admin-badge.review::before { background:#df9251; }
 #adminView [data-admin-panel="reports"] .monthly-primary { min-height:32px;padding:6px 4px!important;border:0!important;border-radius:4px;background:transparent!important;box-shadow:none!important;color:#075985; }
 #adminView [data-admin-panel="reports"] .monthly-primary:hover { background:#f0f6f9!important; }
 #adminView [data-admin-panel="reports"] .monthly-primary:focus-visible { outline:2px solid #08788c;outline-offset:2px; }
 #adminView [data-admin-panel="reports"] .monthly-pdf { background:#07566a;color:#fff;border-color:#07566a; }
}
@media screen and (max-width:900px) {
 #adminView [data-admin-panel="reports"] .admin-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media screen and (max-width:560px) {
 #adminView [data-admin-panel="reports"] .admin-metrics { gap:8px; }
 #adminView [data-admin-panel="reports"] .admin-metric { min-height:94px;padding:14px 10px;gap:8px; }
 #adminView [data-admin-panel="reports"] .admin-metric-icon { width:28px;flex-basis:28px; }
 #adminView [data-admin-panel="reports"] .admin-metric-icon svg { width:27px;height:27px; }
 #adminView [data-admin-panel="reports"] .admin-metric-copy span { font-size:12px; }
 #adminView [data-admin-panel="reports"] .admin-metric-copy strong { font-size:27px; }
}

/* PRESENTIA · Empleados · Tarjetas de directorio refinadas */
@media screen {
 #adminView [data-admin-panel="employees"], #adminView [data-admin-panel="employees"] * { font-weight:400!important; }
 #adminView [data-admin-panel="employees"] .admin-heading h1 { font-size:34px;letter-spacing:-.02em; }
 #adminView [data-admin-panel="employees"] .admin-primary-action { font-weight:500!important; }
 #adminView [data-admin-panel="employees"] .admin-search input { border-radius:9px; }
 #adminView [data-admin-panel="employees"] .admin-employee-grid { gap:12px; }
 #adminView [data-admin-panel="employees"] .admin-person-card { min-height:82px;padding:14px;border:1px solid #d9e4eb;border-radius:12px;background:#fff;gap:14px;box-shadow:none;transition:border-color .15s ease,background .15s ease,transform .15s ease; }
 #adminView [data-admin-panel="employees"] .admin-person-card:hover { border-color:#b9d2dc;background:#fbfdfe;transform:translateY(-1px); }
 #adminView [data-admin-panel="employees"] .admin-person-card:focus-visible { outline:2px solid #08788c;outline-offset:2px; }
 #adminView [data-admin-panel="employees"] .admin-person-avatar { width:48px;height:48px;flex:0 0 48px;border:1px solid #c5dce4;border-radius:10px;background:#edf5f7;color:#07566a;font-size:15px;font-weight:500!important;letter-spacing:.02em; }
 #adminView [data-admin-panel="employees"] .admin-person-card strong { color:#17212b;font-size:15px;font-weight:500!important;line-height:1.3; }
 #adminView [data-admin-panel="employees"] .admin-person-card small { margin-top:5px;color:#6f8493;font-size:12px;line-height:1.35; }
 #adminView [data-admin-panel="employees"] .admin-person-card > b { width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#f1f6f8;color:#497184;font-size:20px;font-weight:400!important;line-height:1;transition:background .15s ease,color .15s ease; }
 #adminView [data-admin-panel="employees"] .admin-person-card:hover > b { background:#e3eff3;color:#07566a; }
}

/* PRESENTIA · Usuarios administrativos */
@media screen {
 #adminView [data-admin-panel="users"], #adminView [data-admin-panel="users"] * { font-weight:400!important; }
 #adminView .admin-users-heading h1 { font-size:34px;letter-spacing:-.02em; }
 #adminView .admin-users-heading .admin-primary-action { font-weight:500!important; }
 #adminView .admin-users-summary { display:grid;grid-template-columns:repeat(2,minmax(0,220px));gap:14px;margin:0 0 20px; }
 #adminView .admin-users-summary article { padding:18px 20px;border:1px solid #d9e4eb;border-radius:12px;background:#fff; }
 #adminView .admin-users-summary span { display:block;color:#607b87;font-size:13px; }
 #adminView .admin-users-summary strong { display:block;margin-top:7px;color:#12344b;font-size:30px; }
 #adminView .admin-users-table-wrap { border-color:#dce6ec;border-radius:12px;box-shadow:none; }
 #adminView .admin-users-table thead th { background:#07566a!important;color:#fff!important;font-size:14px; }
 #adminView .admin-users-table tbody td { padding:17px 15px;color:#23465e; }
 #adminView .admin-users-table tbody td:first-child strong { color:#17212b;font-weight:500!important; }
 #adminView .admin-users-status { display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font-size:14px; }
 #adminView .admin-users-status::before { content:"";width:8px;height:8px;border-radius:50%;background:#10ad79; }
 #adminView .admin-users-status.inactive { color:#758491; }
 #adminView .admin-users-status.inactive::before { background:#9aa8b2; }
 #adminView .admin-users-actions { display:flex;align-items:center;gap:10px; }
 #adminView .admin-users-action { min-height:32px;padding:6px 8px;border:0;border-radius:5px;background:transparent;color:#075985;font:inherit;cursor:pointer; }
 #adminView .admin-users-action:hover { background:#f0f6f9; }
 #adminView .admin-users-action.toggle { color:#8b4e2c; }
 #adminView .admin-users-action.activate { color:#087451; }
 #adminView .admin-users-action:disabled { color:#9aa8b2;cursor:not-allowed;background:transparent; }
 #adminView .admin-users-modal { position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:20px; }
 #adminView .admin-users-modal.hidden { display:none; }
 #adminView .admin-users-backdrop { position:absolute;inset:0;border:0;background:rgba(12,37,49,.38); }
 #adminView .admin-users-form { position:relative;width:min(100%,520px);padding:24px;border:1px solid #d9e4eb;border-radius:14px;background:#fff;box-shadow:0 18px 50px rgba(9,42,56,.18); }
 #adminView .admin-users-form-head { display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px; }
 #adminView .admin-users-form-head span { color:#607b87;font-size:11px;letter-spacing:.12em; }
 #adminView .admin-users-form-head h2 { margin:4px 0 0;color:#17212b;font-size:25px;font-weight:500!important; }
 #adminView .admin-users-form-head p { margin:6px 0 0;color:#6f8493;font-size:13px; }
 #adminView .admin-users-form-head button { width:34px;height:34px;border:0;border-radius:8px;background:#f1f5f7;color:#526c79;font-size:22px;cursor:pointer; }
 #adminView .admin-users-form label { display:flex;flex-direction:column;gap:7px;margin-top:14px;color:#526c79;font-size:13px; }
 #adminView .admin-users-form input, #adminView .admin-users-form select { width:100%;height:44px;padding:0 12px;border:1px solid #cbdde4;border-radius:9px;background:#fff;color:#17212b;font:inherit;outline:none; }
 #adminView .admin-users-form input:focus, #adminView .admin-users-form select:focus { border-color:#168ca0;box-shadow:0 0 0 3px rgba(22,140,160,.12); }
 #adminView .admin-users-form small { color:#7c909a;font-size:12px; }
 #adminView .admin-users-message { min-height:20px;margin:14px 0 0;color:#a33f29;font-size:13px; }
 #adminView .admin-users-form-actions { display:flex;justify-content:flex-end;gap:10px;margin-top:16px; }
 #adminView .admin-users-form-actions .admin-back { margin:0; }
}

@media screen {
 #adminView.admin-readonly [data-admin-panel="centers"] .centers-new,
 #adminView.admin-readonly [data-admin-panel="centers"] .center-form-actions,
 #adminView.admin-readonly [data-admin-panel="centers"] .center-location-btn,
 #adminView.admin-readonly [data-admin-panel="employees"] .admin-primary-action,
 #adminView.admin-readonly [data-employee-edit],
 #adminView.admin-readonly [data-admin-panel="employee-editor"] { display:none!important; }
}
@media screen and (max-width:700px) {
 #adminView .admin-users-heading { flex-direction:column; }
 #adminView .admin-users-heading .admin-primary-action { width:100%; }
 #adminView .admin-users-summary { grid-template-columns:1fr 1fr; }
}

/* PRESENTIA · Inicio de sesión refinado */
@media screen {
 #loginView, #loginView * { font-weight:400!important; }
 #loginView.login { max-width:460px;padding-left:28px;padding-right:28px; }
 #loginView .login-identity { display:flex;align-items:center;gap:13px;margin-bottom:34px; }
 #loginView .brand-mark { width:54px;height:54px;flex:0 0 54px;margin:0;border:1px solid #07566a;border-radius:13px;background:#07566a;color:#fff;box-shadow:none;font-size:25px;font-weight:500!important;letter-spacing:0; }
 #loginView .login-identity > div:last-child { min-width:0; }
 #loginView .login-identity strong, #loginView .login-identity span { display:block; }
 #loginView .login-identity strong { color:#12344b;font-size:15px;font-weight:500!important;letter-spacing:.06em;line-height:1.2; }
 #loginView .login-identity span { margin-top:4px;color:#667f8c;font-size:13px;line-height:1.2; }
 #loginView h1 { color:#17212b;font-size:clamp(37px,9vw,47px);font-weight:600!important;line-height:1.06;letter-spacing:-.035em; }
 #loginView h1 span { color:#07566a;font-weight:600!important; }
 #loginView .lead { margin:17px 0 29px;color:#667f8c;font-size:15px;line-height:1.5; }
 #loginView form { gap:15px; }
 #loginView form label { color:#344f5e;font-size:13px;font-weight:400!important; }
 #loginView form input { height:50px;margin-top:7px;padding:0 14px;border:1px solid #cbdde4;border-radius:10px;background:#fff;color:#17212b;font-size:15px;font-weight:400!important;box-shadow:none; }
 #loginView form input::placeholder { color:#8a9aa3;font-weight:400!important;opacity:1; }
 #loginView form input:focus { border-color:#168ca0;box-shadow:0 0 0 3px rgba(22,140,160,.12); }
 #loginView form .primary { min-height:52px;margin-top:1px;border-radius:10px;background:#07566a;box-shadow:none;font-size:15px;font-weight:500!important; }
 #loginView form .primary:hover { background:#064b5d; }
 #loginView .error { margin:0;color:#a33f29;font-size:13px; }
 #loginView .fine { color:#8a9ba5;font-size:11px;letter-spacing:.01em; }
}
@media screen and (max-width:520px) {
 #loginView.login { padding-top:42px; }
 #loginView .login-identity { margin-bottom:28px; }
}

/* PRESENTIA · Cambio de contraseña y auditoría */
@media screen {
 #adminView .admin-password { margin-top:auto;min-height:42px;padding:0 12px;border:0;border-radius:10px;background:rgba(255,255,255,.09);color:#fff;font:inherit;font-size:13px;font-weight:400; }
 #adminView .admin-password:hover { background:rgba(255,255,255,.15); }
 #adminView .admin-logout { margin-top:8px; }
 #adminView .admin-audit-heading h1 { font-size:34px;letter-spacing:-.02em; }
 #adminView .admin-audit-summary { display:grid;grid-template-columns:repeat(2,minmax(0,220px));gap:14px;margin-bottom:18px; }
 #adminView .admin-audit-summary article { padding:18px 20px;border:1px solid #d9e4eb;border-radius:12px;background:#fff; }
 #adminView .admin-audit-summary span { display:block;color:#607b87;font-size:13px;font-weight:400; }
 #adminView .admin-audit-summary strong { display:block;margin-top:7px;color:#12344b;font-size:30px;font-weight:400; }
 #adminView .admin-audit-search { max-width:640px;margin:0 0 18px; }
 #adminView .admin-audit-search input { border-radius:9px; }
 #adminView .admin-audit-table-wrap { border-color:#dce6ec;border-radius:12px;box-shadow:none; }
 #adminView .admin-audit-table thead th { background:#07566a!important;color:#fff!important;font-size:14px;font-weight:400; }
 #adminView .admin-audit-table tbody td { padding:15px;color:#23465e;font-size:13px; }
 #adminView .admin-audit-table tbody td:nth-child(2) strong { color:#17212b;font-weight:500; }
 #adminView .admin-audit-table tbody td small { color:#718794;font-size:11px; }
 #adminView .admin-audit-action { display:inline-flex;align-items:center;gap:8px;color:#284d5d;white-space:nowrap; }
 #adminView .admin-audit-action::before { content:"";width:7px;height:7px;border-radius:50%;background:#6f91a2; }
 #adminView #adminPasswordModal .admin-users-form input { font-weight:400!important; }
 #adminView #adminPasswordModal .admin-users-message.success { color:#087451; }
}
@media screen and (max-width:700px) {
 #adminView .admin-audit-summary { grid-template-columns:1fr 1fr; }
}

/* Confirmación de jornada pendiente. */
.attendance-choice {width:min(460px,calc(100% - 32px));max-height:90dvh;overflow:auto;box-sizing:border-box;border:0;border-radius:20px;padding:26px;color:#173b4b;background:#fff;box-shadow:0 18px 70px #002d4260;font-family:inherit;}
.attendance-choice::backdrop {background:#082e44a6;}
.attendance-choice h2 {margin:0 0 16px;font-size:23px;line-height:1.2;}
.attendance-choice p {line-height:1.5;font-size:15px;}
.attendance-choice-actions {display:grid;gap:12px;margin:22px 0;}
.attendance-choice button {min-height:48px;padding:12px 16px;border:1px solid #bacbd2;border-radius:12px;background:#f2f7f9;color:#173b4b;font:inherit;font-weight:600;cursor:pointer;}
.attendance-choice button[data-attendance-action="NEW_ENTRY"] {background:#08687a;color:#fff;border-color:#08687a;}
.attendance-choice button:focus-visible {outline:3px solid #e8a12d;outline-offset:3px;}
.attendance-choice #attendanceChoiceNote {font-size:13px;color:#536b78;}
.attendance-choice #attendanceChoiceCancel {width:100%;background:#fff;}

.exit-correction-link {display:block;margin:12px auto;padding:8px 12px;border:0;background:transparent;color:#075e72;font:inherit;font-size:13px;text-decoration:underline;cursor:pointer;}
.exit-correction-link.hidden {display:none;}
#exitCorrectionTime {display:block;box-sizing:border-box;width:100%;margin:12px 0;padding:12px;border:1px solid #adbec8;border-radius:10px;font:inherit;color:#173b4b;background:#fff;}
#exitCorrectionError {color:#a62f26;}
[data-admin-panel="corrections"] td small {display:block;color:#667f8b;}
[data-admin-panel="corrections"] td button {padding:8px;border:1px solid #b8cbd3;border-radius:8px;background:#f1f7f8;color:#174452;cursor:pointer;margin:3px;}
/* Jornadas y Novedades: panel opcional, aislado de la operación de fichadas. */
.hours-warning{margin:0 0 16px;padding:12px 16px;border:1px solid #f1d28a;border-radius:12px;background:#fff8e7;color:#76520d;font-size:13px}
.hours-warning:empty{display:none}.hours-toolbar{align-items:end}.hours-toolbar a{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.hours-table-wrap{max-height:62vh}.hours-table{min-width:1450px}.hours-table td:nth-child(4){max-width:280px;white-space:normal;font-size:12px}
