:root{--blue:#07365e;--blue2:#0a69bb;--cyan:#0aa4c4;--ink:#172534;--muted:#708090;--line:#dfe6ec;--bg:#f4f7f9;--green:#19805b;--amber:#a86500;--red:#aa3a49;--purple:#6847a4;--shadow:0 12px 35px rgba(28,48,66,.08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.hidden{display:none!important}.view{display:none}.view.active{display:block}.employee-mode #homeView,.employee-mode #employeesView,.employee-mode #requestsView,.employee-mode #externalView{display:none!important}body[data-personal-mode="developer"] #employeePortal,body[data-personal-mode="direction"] #employeePortal{display:none!important}body[data-personal-mode="employee"] #homeView,body[data-personal-mode="employee"] #employeesView,body[data-personal-mode="employee"] #requestsView,body[data-personal-mode="employee"] #externalView{display:none!important}button,input,select,textarea{font:inherit}.app-shell{width:min(1500px,100%);margin:auto;padding:0 26px 40px}.app-head{min-height:84px;display:grid;grid-template-columns:auto 1fr auto auto;gap:14px;align-items:center}.back-btn{width:44px;height:44px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--blue);font-size:22px;cursor:pointer}.head-copy span,.eyebrow,.feature-kicker{display:block;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.head-copy h1{margin:3px 0 0;font-size:23px}.primary-btn,.quiet-btn,.small-btn,.text-back{border:0;cursor:pointer;font-weight:850}.primary-btn{min-height:44px;border-radius:13px;background:var(--blue2);color:#fff;padding:0 16px}.quiet-btn,.small-btn{min-height:42px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--blue);padding:0 14px}.text-back{background:transparent;color:var(--blue2);padding:0;margin-bottom:7px}.small-action{min-height:37px;padding:0 12px;font-size:11px}.small-action:disabled{opacity:.5;cursor:not-allowed}.mode-switch{display:flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid var(--line);border-radius:14px;background:#fff}.mode-switch span{font-size:10px;font-weight:900;text-transform:uppercase;color:var(--muted)}.mode-switch select{border:0;background:transparent;color:var(--ink);font-weight:900;outline:none}.access-card,.loading-view{margin:30px auto;max-width:680px;padding:26px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:var(--shadow);text-align:center}.access-card p{color:var(--muted)}.welcome-row,.view-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:20px 0}.welcome-row h2,.view-head h2{margin:4px 0 0;font-size:30px}.welcome-row p{margin:5px 0 0;color:var(--muted)}.employee-portal{display:grid;gap:18px}.employee-dashboard{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:14px}.feature-card,.today-card,.detail-card,.day-detail,.pending-strip{border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:var(--shadow)}.feature-card{padding:20px}.feature-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.feature-head h3{margin:4px 0 0;font-size:20px}.vacation-values{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:22px 0}.vacation-values div{padding:14px 10px;border-radius:16px;background:#f6f9fb}.vacation-values strong,.vacation-values span{display:block}.vacation-values strong{font-size:24px;color:var(--blue)}.vacation-values span{margin-top:4px;color:var(--muted);font-size:10px;font-weight:750}.feature-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:13px;border-top:1px solid #edf1f4}.feature-foot span{color:var(--muted);font-size:11px}.rotation-current{margin:21px 0 12px}.rotation-current span,.rotation-current strong,.rotation-current small{display:block}.rotation-current span,.rotation-current small{color:var(--muted);font-size:11px}.rotation-current strong{margin:4px 0;font-size:26px;text-transform:capitalize}.mini-week{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.mini-day{padding:8px 3px;border-radius:10px;background:#f6f9fb;text-align:center;font-size:9px;font-weight:850}.mini-day.mine{background:#eaf4fd;color:var(--blue2)}.mini-day.none{color:#a8b3bd}.overtime-summary{margin:24px 0 12px}.overtime-summary strong,.overtime-summary span{display:block}.overtime-summary strong{font-size:30px;color:var(--amber)}.overtime-summary span{color:var(--muted);font-size:11px}.mini-list{display:grid;gap:6px}.mini-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:12px;background:#f7f9fb;font-size:10px}.employee-action-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.employee-action{min-height:116px;border:1px solid var(--line);border-radius:19px;background:#fff;text-align:left;padding:17px;cursor:pointer;box-shadow:var(--shadow)}.employee-action>span{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#edf4fa;color:var(--blue);font-size:9px;font-weight:950}.employee-action strong,.employee-action small{display:block}.employee-action strong{margin-top:13px;font-size:14px}.employee-action small{margin-top:5px;color:var(--muted);font-size:10px}.today-card{padding:20px}.section-title{padding-bottom:13px;border-bottom:1px solid #edf1f4}.compact-list,.record-list{display:grid;gap:9px}.compact-list{padding-top:12px}.compact-item,.record-item{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #e5ebf0;border-radius:16px;background:#fff;padding:13px 15px}.compact-item button{border:0;background:none}.compact-item strong,.compact-item small,.record-item strong,.record-item small{display:block}.compact-item small,.record-item small{margin-top:4px;color:var(--muted);font-size:11px}.empty{padding:24px;text-align:center;color:#8290a0;font-size:13px}.empty.small{padding:10px}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;background:#edf3f8;color:#536476;font-size:9px;font-weight:900;text-transform:uppercase;white-space:nowrap}.pill.aprobado,.pill.pagada,.pill.paid{background:#e7f7ef;color:#187350}.pill.pendiente{background:#fff3df;color:#9b5c00}.pill.rechazado,.pill.rechazada{background:#fff0f1;color:#a73745}.pill.devuelto{background:#edf3f8;color:#55697b}.pill.reposicion,.pill.compensada{background:#eeeafb;color:#624b9d}.pending-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 20px;margin-bottom:16px}.pending-strip>div:first-child span,.pending-strip>div:first-child strong{display:block}.pending-strip span{color:var(--muted);font-size:10px;font-weight:850;text-transform:uppercase}.pending-strip strong{font-size:28px;color:var(--blue)}#pendingBreakdown{color:var(--muted);font-size:12px}.home-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.management-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-card{min-height:142px;border:1px solid var(--line);border-radius:20px;background:#fff;text-align:left;padding:18px;cursor:pointer;box-shadow:var(--shadow)}.home-card:hover{border-color:#a7c9e4}.card-icon{display:grid;place-items:center;width:44px;height:44px;margin-bottom:18px;border-radius:14px;background:#edf4fa;color:var(--blue);font-size:9px;font-weight:950}.home-card.vacation .card-icon{background:#e8f7f2;color:var(--green)}.home-card.rotation .card-icon{background:#eaf3ff;color:#1765a7}.home-card.overtime .card-icon{background:#fff2df;color:var(--amber)}.home-card.external .card-icon{background:#f0ebfa;color:var(--purple)}.home-card.absence .card-icon{background:#fff0f1;color:var(--red)}.home-card.justification .card-icon{background:#f3f0e8;color:#7b6531}.home-card strong,.home-card small{display:block}.home-card strong{font-size:17px}.home-card small{margin-top:7px;color:var(--muted);font-size:11px}.search-row{display:flex;gap:14px;align-items:center;margin-bottom:15px}.search-row input{flex:1;min-height:48px;border:1px solid var(--line);border-radius:15px;background:#fff;padding:0 15px;outline:none}.tiny-check{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;font-weight:750}.split-layout{display:grid;grid-template-columns:minmax(310px,.82fr) minmax(440px,1.18fr);gap:17px;align-items:start}.record-list.wide{max-width:980px}.record-item{width:100%;text-align:left;cursor:pointer}.record-item:hover,.record-item.selected{border-color:#9cc5e7;background:#f7fbff}.record-main{min-width:0}.record-main strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.record-side{text-align:right}.detail-card{position:sticky;top:16px;min-height:280px;padding:22px}.detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding-bottom:17px;border-bottom:1px solid #edf1f5}.detail-head h3{margin:5px 0 0;font-size:23px}.detail-actions{display:flex;gap:8px}.detail-table{display:grid;margin-top:8px}.detail-row{display:grid;grid-template-columns:165px 1fr;gap:15px;padding:12px 0;border-bottom:1px solid #edf1f5}.detail-row span{color:var(--muted);font-size:11px;font-weight:750}.detail-row strong{font-size:13px;overflow-wrap:anywhere}.detail-section{margin-top:20px}.detail-section h4{margin:0 0 10px;font-size:13px}.filters{display:flex;gap:7px;margin-bottom:16px;overflow-x:auto;padding-bottom:2px}.filter{min-height:38px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#667586;padding:0 14px;font-size:11px;font-weight:850;white-space:nowrap;cursor:pointer}.filter.active{border-color:var(--blue2);background:#eaf4fd;color:var(--blue2)}.view-note{margin:-8px 0 18px;color:var(--muted);font-size:12px}.rotation-weeks{display:grid;grid-template-columns:repeat(5,minmax(190px,1fr));gap:10px;overflow-x:auto;padding-bottom:4px}.rotation-week{min-width:190px;border:1px solid var(--line);border-radius:18px;background:#fff;padding:14px}.rotation-week h3{margin:0 0 3px;font-size:14px}.rotation-week>small{color:var(--muted)}.rotation-day{display:flex;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px solid #edf1f4;font-size:11px}.rotation-day:last-child{border-bottom:0}.rotation-day span{text-transform:capitalize;color:var(--muted)}.rotation-day.none strong{color:#adb6bf;font-weight:650}.calendar-toolbar{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;max-width:520px;margin:0 auto 15px}.calendar-toolbar button{height:42px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--blue);font-size:22px;cursor:pointer}.calendar-toolbar strong{text-align:center;text-transform:capitalize}.calendar-legend{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-bottom:13px}.calendar-legend span{border-radius:999px;padding:5px 8px;font-size:9px;font-weight:850}.calendar-legend .vacation{background:#e7f7ef;color:#187350}.calendar-legend .absence{background:#fff0f1;color:#a73745}.calendar-legend .justification{background:#f3f0e8;color:#7b6531}.calendar-legend .overtime{background:#fff3df;color:#9b5c00}.calendar-legend .rotation{background:#eaf3ff;color:#1765a7}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}.calendar-weekday{padding:11px;text-align:center;background:#f6f8fa;color:#718092;font-size:10px;font-weight:900;text-transform:uppercase}.calendar-day{min-height:104px;border:0;border-top:1px solid #edf1f5;border-right:1px solid #edf1f5;background:#fff;padding:9px;text-align:left;cursor:pointer}.calendar-day:nth-child(7n){border-right:0}.calendar-day.outside{background:#f8fafb;color:#adb7c0}.calendar-day.today{box-shadow:inset 0 0 0 2px var(--cyan)}.calendar-day.selected{background:#edf7ff}.day-number{display:block;font-size:11px;font-weight:900}.day-dots{display:flex;gap:4px;flex-wrap:wrap;margin-top:9px}.day-dot{width:7px;height:7px;border-radius:50%;background:#7b8792}.day-dot.vacation{background:var(--green)}.day-dot.absence{background:var(--red)}.day-dot.justification{background:#8c7438}.day-dot.overtime{background:var(--amber)}.day-dot.rotation{background:#1765a7}.day-detail{margin-top:16px;padding:16px}.head-buttons{display:flex;gap:8px}.modal-backdrop{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:18px;background:rgba(7,21,36,.58);backdrop-filter:blur(5px)}.modal-card{display:flex;flex-direction:column;width:min(760px,100%);max-height:calc(100dvh - 36px);overflow:hidden;border-radius:25px;background:#fff;box-shadow:0 35px 100px rgba(0,0,0,.35)}.modal-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:21px 22px 17px;border-bottom:1px solid var(--line)}.modal-card h2{margin:4px 0 0;font-size:23px}.modal-card header button{width:39px;height:39px;border:1px solid var(--line);border-radius:50%;background:#fff;color:#546577;font-size:23px;cursor:pointer}.modal-body{min-height:0;overflow:auto;padding:20px 22px 24px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field>span{color:#627183;font-size:11px;font-weight:850}.control{width:100%;min-height:47px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);padding:10px 12px;outline:none}.control:focus{border-color:#8ebce7;box-shadow:0 0 0 4px rgba(10,105,187,.08)}textarea.control{min-height:82px;resize:vertical}.form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:9px;margin-top:4px;padding-top:16px;border-top:1px solid #edf1f5}.info-box{grid-column:1/-1;padding:13px 14px;border-radius:14px;background:#edf6fd;color:#36536b;font-size:11px;line-height:1.5}.warning-box{grid-column:1/-1;padding:13px 14px;border-radius:14px;background:#fff6e9;color:#73531c;font-size:11px;line-height:1.5}.attachment-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.attachment-link{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:6px 9px;color:var(--blue2);font-size:10px;text-decoration:none}.danger-btn{min-height:43px;border:1px solid #efc7cc;border-radius:13px;background:#fff6f7;color:var(--red);padding:0 14px;font-weight:850;cursor:pointer}.toast{position:fixed;left:50%;bottom:25px;z-index:100010;transform:translateX(-50%);max-width:min(520px,calc(100% - 30px));padding:12px 17px;border-radius:14px;background:#17324b;color:#fff;font-size:12px;font-weight:750;box-shadow:0 18px 50px rgba(0,0,0,.28)}
@media(max-width:1100px){.employee-dashboard{grid-template-columns:1fr 1fr}.overtime-feature{grid-column:1/-1}.management-grid{grid-template-columns:repeat(3,1fr)}.rotation-weeks{grid-template-columns:repeat(5,220px)}}
.attendance-action{position:relative;padding-right:145px}.attendance-peek{position:absolute;right:12px;top:13px;width:122px;margin:0;padding:8px 0 8px 9px;border-left:1px solid #edf1f4}.attendance-peek-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:6px}.attendance-peek-head b{font-size:8px;color:#708090;text-transform:uppercase;letter-spacing:.04em}.attendance-peek-head em{font-size:8px;color:#9aa7b2;font-style:normal;font-weight:700}.attendance-peek-week{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.attendance-peek-day{position:relative;display:grid;place-items:center;min-height:34px;border-radius:8px;background:#f7f9fb;color:#758493}.attendance-peek-day b{font-size:7px;text-transform:uppercase}.attendance-peek-day em{font-size:9px;font-style:normal;font-weight:900;color:#42576a}.attendance-peek-day i{width:4px;height:4px;margin-top:1px;border-radius:50%;background:#d3dbe2}.attendance-peek-day small{display:block;max-width:100%;margin-top:1px;overflow:hidden;text-overflow:ellipsis;font-size:6px;white-space:nowrap;color:#708090}.attendance-peek-day.present i{background:var(--green)}.attendance-peek-day.vacation i{background:var(--green)}.attendance-peek-day.absence i{background:var(--red)}.attendance-peek-day.justification i{background:#8c7438}.attendance-peek-day.rotation i{background:#1765a7}.attendance-peek-day.today{box-shadow:inset 0 0 0 1px #9bc9eb}.day-dot.attendance{background:var(--green)}.calendar-legend .attendance{background:#e7f7ef;color:#187350}
@media(max-width:900px){.management-grid,.home-grid{grid-template-columns:repeat(2,1fr)}.split-layout{grid-template-columns:1fr}.detail-card{position:static}.employee-action-grid{grid-template-columns:repeat(2,1fr)}.calendar-day{min-height:86px}}
@media(max-width:680px){.app-shell{padding:0 14px 32px}.app-head{min-height:76px;grid-template-columns:auto 1fr auto;gap:9px}.head-copy span{display:none}.head-copy h1{font-size:19px}.back-btn{width:40px;height:40px}.mode-switch{grid-column:1/-1;grid-row:2;width:100%;justify-content:space-between}.app-head>.primary-btn{min-height:40px;padding:0 11px;font-size:11px}.welcome-row,.view-head{margin:14px 0 16px}.welcome-row h2,.view-head h2{font-size:23px}.employee-dashboard{grid-template-columns:1fr}.overtime-feature{grid-column:auto}.vacation-values strong{font-size:21px}.employee-action-grid{grid-template-columns:1fr 1fr}.management-grid{grid-template-columns:1fr 1fr}.home-card{min-height:132px;padding:15px}.pending-strip{align-items:flex-start;flex-direction:column;gap:7px}.search-row{align-items:stretch;flex-direction:column}.split-layout{display:block}.record-list+.detail-card{margin-top:14px}.detail-row{grid-template-columns:120px 1fr}.calendar-legend{justify-content:flex-start}.calendar-grid{border-radius:15px}.calendar-weekday{padding:8px 2px;font-size:8px}.calendar-day{min-height:60px;padding:6px}.day-dot{width:6px;height:6px}.modal-backdrop{place-items:end center;padding:0}.modal-card{width:100%;max-height:94dvh;border-radius:24px 24px 0 0}.modal-body{padding:17px}.form-grid{grid-template-columns:1fr}.field.full,.form-actions,.info-box,.warning-box{grid-column:auto}.form-actions{flex-wrap:wrap}.form-actions button{flex:1}.control{font-size:16px}.head-buttons{flex-direction:column}.rotation-weeks{grid-template-columns:repeat(5,210px)}.attendance-action{padding-right:15px}.attendance-peek{position:static;width:auto;margin-top:10px;padding:9px 0 0;border-left:0;border-top:1px solid #edf1f4}}

/* v3.2.24 · estados históricos y notificaciones persistentes */
.pill.borrador{background:#fff6e9;color:#73531c}
.pill.cancelado{background:#eef1f4;color:#5f6d79}
.pill.anulado{background:#f1f1f1;color:#555;text-decoration:line-through}
.record-item.annulled{opacity:.68;background:#f8f8f8}
.record-item.notification-item.unread{border-color:#9fc7e8;background:#f5fbff;box-shadow:inset 3px 0 0 #0a69bb}
.record-item.notification-item.unread strong{color:#07365e}
.audit-list{display:grid;gap:10px}.audit-event{border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:#fff}.audit-event strong,.audit-event small{display:block}.audit-event small{margin-top:3px;color:var(--muted);font-size:10px}.audit-event p{margin:7px 0 0;color:#536476;font-size:11px;line-height:1.4}
