/* ERYANI V39 · nómina compacta, dorado + fondos claros, nunca selects negros. */
#empleados,#v38PayrollCalendar,#v39PortalPreview{color-scheme:light!important;--salary-gold:#d5a12b;--salary-ink:#22354d;--salary-border:#e8d8af}
#empleados input,#empleados select,#empleados select option,#v38PayrollCalendar input,#v38PayrollCalendar select,#v38PayrollCalendar select option,#v39PortalPreview select,#v39PortalPreview select option,#v39PortalPreview input{background-color:#fffdf8!important;color:#24374b!important;color-scheme:light!important;border-color:#dccba5!important}
#empleados select:focus,#v38PayrollCalendar select:focus,#v39PortalPreview select:focus{outline:2px solid #d5a12b!important;outline-offset:2px}
#empleados .v37-head{padding:15px 22px!important;min-height:76px!important;margin-bottom:11px!important;border-radius:17px!important}
#empleados .v37-head h2{font-size:clamp(19px,2.25vw,26px)!important;margin:0!important;letter-spacing:-.015em}
#empleados .v37-head-actions{gap:8px!important;align-items:center!important}
#empleados .v37-head-actions button{font-family:inherit!important;min-height:42px!important;padding:9px 14px!important}
#empleados .v37-head-actions #v37Sync{min-width:44px!important;width:44px!important;padding:0!important;font-size:28px!important;line-height:1!important;background:#fffdf8!important;color:#875c0d!important;border:1px solid #ebd49e!important}
#empleados .v37-status:not(.error){display:none!important}
#empleados .v37-status.error{margin:8px 0 12px!important}
#empleados .v37-metrics{grid-template-columns:repeat(6,minmax(0,1fr))!important}
#empleados .v37-metric{padding:14px!important;min-width:0}
#empleados .v37-metric strong{white-space:normal!important;font-size:clamp(16px,1.7vw,24px)!important}
#empleados .v37-days{margin-top:13px}
#empleados .v39-share-inputs{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-top:8px}
#empleados .v39-share-inputs select{font-size:12px;min-width:116px;flex:1;padding:7px}
#empleados .v39-share-inputs .v39-rate-box,#empleados .v39-share-inputs .v39-fixed-box{display:flex;align-items:center;gap:4px;background:#fff;padding:3px 6px;border:1px solid #eadcb9;border-radius:9px}
#empleados .v39-share-inputs input{width:76px;min-height:30px;padding:6px}
#empleados .v39-share-inputs .v39-rate-box:has(input:disabled),#empleados .v39-share-inputs .v39-fixed-box:has(input:disabled){display:none}
#empleados .v39-salary-section{margin:0 0 15px;padding:19px;border:1px solid #e8d9b9;border-radius:19px;background:linear-gradient(135deg,#fffdf8,#fff9ec);box-shadow:0 7px 27px #9b74160b}
#empleados .v39-salary-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding-bottom:13px;border-bottom:1px solid #ecdfc1}
#empleados .v39-salary-head small{font-size:11px;letter-spacing:.12em;font-weight:900;color:#a57920}
#empleados .v39-salary-head h3{margin:3px 0;color:#22354d;font-size:clamp(19px,2vw,25px)}
#empleados .v39-salary-head p{margin:3px 0;color:#657587;font-size:12px}
#empleados .v39-salary-week-nav{display:flex;align-items:center;gap:9px;color:#29445a}
#empleados .v39-salary-week-nav button{border:1px solid #e7d4a6;border-radius:10px;background:#fff7e5;color:#9b6a0c;min-width:40px;min-height:40px;font-size:20px;font-weight:900;cursor:pointer}
#empleados .v39-salary-stat{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:13px 0}
#empleados .v39-salary-stat>div{padding:14px;background:white;border:1px solid #ecdfca;border-radius:12px}
#empleados .v39-salary-stat small,#empleados .v39-salary-stat strong{display:block}
#empleados .v39-salary-stat small{font-size:11px;font-weight:800;color:#6d7281}
#empleados .v39-salary-stat strong{margin-top:6px;font-size:clamp(17px,1.8vw,24px);color:#9b7317;overflow-wrap:anywhere}
#empleados .v39-salary-stat .v39-negative{color:#b82e36}
#empleados .v39-salary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#empleados .v39-form{padding:15px;border-radius:14px;border:1px solid #eaddbf;background:#fff;display:flex;flex-direction:column;gap:10px;min-width:0}
#empleados .v39-form h4{margin:0;color:#25364b;font-size:16px}
#empleados .v39-form>p:not(.v39-helper){font-size:12px;color:#66778a;margin:0}
#empleados .v39-form label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:850;color:#6b5940}
#empleados .v39-form label>span:not(.v39-money-input){display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#empleados .v39-form input,#empleados .v39-form select{width:100%;min-height:40px;background:#fffdf7;border:1px solid #dccba5;border-radius:10px;padding:9px 11px;font-size:14px;color:#24364d}
#empleados .v39-form #v39CalculatePercent{width:95px}
#empleados .v39-form #v39UseSuggestion{background:#fff4d9;color:#74531b;border:1px solid #ead5a4;padding:9px 11px;font-size:12px;border-radius:10px;cursor:pointer}
#empleados .v39-form .v39-helper{color:#8b6d34;font-size:11px;margin:0;line-height:1.4}
#empleados .v39-form .v39-money-input{display:flex;align-items:center;gap:7px;color:#98691c;font-size:17px;font-weight:900}
#empleados .v39-form .v39-money-input input{width:100%}
#empleados .v39-form .v39-gold{background:#d5a12b;border:1px solid #c79425;color:#24354a;border-radius:11px;padding:12px 15px;cursor:pointer;font-weight:900;font-size:13px}
#empleados .v39-form [role=status]{margin:0;min-height:14px;font-size:11px;color:#725523;font-weight:700}
#empleados .v39-ledgers{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
#empleados .v39-ledgers>div{min-width:0}
#empleados .v39-ledgers h4{color:#263b50;font-size:14px;margin:0 0 9px}
#empleados .v39-ledger-row{display:flex;align-items:center;gap:8px;border:1px solid #eadfc7;border-radius:10px;background:white;margin:6px 0;padding:9px 11px;flex-wrap:wrap}
#empleados .v39-ledger-row>div{flex:1;min-width:120px}
#empleados .v39-ledger-row b,#empleados .v39-ledger-row small{display:block}
#empleados .v39-ledger-row b{font-size:12px;color:#304355}
#empleados .v39-ledger-row small{color:#78818b;font-size:11px}
#empleados .v39-ledger-row strong{color:#99711d;font-size:14px}
#empleados .v39-ledger-row button{border:1px solid #ead7b3;background:#fff7e7;color:#875b1a;border-radius:8px;padding:7px 9px;cursor:pointer;font-size:12px}
#empleados .v39-empty{font-size:12px;color:#78818b}
#v38PayrollCalendar .v39-percent-field,#v38PayrollCalendar .v39-dollar-field{display:flex;align-items:center;gap:6px;min-height:36px;font-size:12px}
#v38PayrollCalendar .v39-percent-field:has(input:disabled),#v38PayrollCalendar .v39-dollar-field:has(input:disabled){display:none}
#v38PayrollCalendar .v38-share-grid select{padding:8px;border:1px solid #e4d4b3;border-radius:10px;background:#fffdf8;color:#26384e;min-width:100px;font-weight:800}
#v38PayrollCalendar .v39-day-salary{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;margin-top:15px;padding:13px;border:1px solid #ebd9b4;border-radius:10px;background:#fff9e7;color:#725522;font-size:13px}
#v38PayrollCalendar .v39-day-salary button{padding:9px 12px;background:#d5a12b;color:#23354d;border:1px solid #c8941e;border-radius:9px;font-weight:900;cursor:pointer}
#v39PortalPreview[hidden]{display:none!important}
body.v39-preview-open{overflow:hidden}
#v39PortalPreview{position:fixed;inset:0;z-index:12000;background:#23364fc4;display:grid;place-items:center;padding:15px;color-scheme:light}
#v39PortalPreview *{box-sizing:border-box}
#v39PortalPreview .v39-preview-dialog{width:min(970px,100%);max-height:calc(100dvh - 30px);overflow:auto;padding:20px;background:#fffefa;border:1px solid #e6d7b9;border-radius:21px;box-shadow:0 25px 75px #15243b4d;color:#26384f}
#v39PortalPreview .v39-preview-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid #eadcc2;padding-bottom:13px}
#v39PortalPreview .v39-preview-dialog>header small{font-weight:850;color:#a47b1b;letter-spacing:.1em}
#v39PortalPreview .v39-preview-dialog h2{margin:4px 0;font-size:22px;color:#22364c}
#v39PortalPreview .v39-preview-dialog header p{margin:5px 0 0;font-size:12px;color:#74808c}
#v39PortalPreview #v39PreviewClose{border:0;border-radius:10px;background:#fff3d9;font-size:24px;cursor:pointer;width:42px;height:42px;color:#72501b}
#v39PortalPreview .v39-preview-tools{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:13px 0}
#v39PortalPreview .v39-preview-tools label{display:grid;gap:4px;flex:1;min-width:190px;font-weight:800;font-size:11px;color:#79674a}
#v39PortalPreview .v39-preview-tools select,#v39PortalPreview .v39-preview-tools input{border:1px solid #e8d9b6;padding:10px;border-radius:11px;min-height:39px;font-weight:800;max-width:100%}
#v39PortalPreview .v39-preview-tools button{padding:10px 12px;border-radius:10px;border:1px solid #e5d4ae;background:#fff6e1;color:#72531c;font-weight:800;cursor:pointer}
#v39PortalPreview .v39-preview-modes{display:flex;gap:5px}
#v39PortalPreview .v39-preview-tools>div:last-child{display:flex;align-items:center;gap:4px}
#v39PortalPreview .v39-preview-worker{background:#f7fafc;border:1px solid #dfe8e9;border-radius:16px;padding:17px}
#v39PortalPreview .v39-preview-welcome h3{margin:4px 0;font-size:23px;color:#203a58}
#v39PortalPreview .v39-preview-welcome p,#v39PortalPreview .v39-preview-welcome small{color:#718393;font-size:12px}
#v39PortalPreview .v39-preview-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0}
#v39PortalPreview .v39-preview-cards article{background:white;border:1px solid #dae5eb;border-radius:12px;padding:15px}
#v39PortalPreview .v39-preview-cards small{display:block;color:#728192;font-size:11px}
#v39PortalPreview .v39-preview-cards strong{display:block;margin-top:6px;color:#a37a1a;font-size:clamp(18px,2.4vw,24px)}
#v39PortalPreview .v39-preview-ledger{background:white;border-radius:12px;padding:15px}
#v39PortalPreview .v39-preview-ledger h4{margin:0 0 9px;color:#22364f}
#v39PortalPreview .v39-preview-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f2;gap:9px;padding:9px 0}
#v39PortalPreview .v39-preview-row>div:last-child{text-align:right}
#v39PortalPreview .v39-preview-row b,#v39PortalPreview .v39-preview-row small{display:block}
#v39PortalPreview .v39-preview-row b{color:#253e55;font-size:13px}
#v39PortalPreview .v39-preview-row small{color:#687b8d;font-size:11px}
#v39PortalPreview .v39-preview-row strong{color:#9e731b;font-size:16px}
#v39PortalPreview #v39PreviewStatus{font-size:11px;color:#707d88}
#v39PortalPreview footer{display:flex;justify-content:flex-end}
#v39PortalPreview footer a{color:#765b1d;font-size:12px;font-weight:800}
@media(max-width:1180px){#empleados .v37-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:800px){#empleados .v39-salary-grid,#empleados .v39-ledgers{grid-template-columns:1fr}#empleados .v39-salary-stat{grid-template-columns:1fr 1fr}}
@media(max-width:610px){#empleados .v37-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}#empleados .v37-head{padding:13px!important}#empleados .v39-salary-section{padding:12px}#empleados .v39-salary-head{align-items:stretch}#v39PortalPreview{padding:5px}#v39PortalPreview .v39-preview-dialog{padding:12px;border-radius:13px}#v39PortalPreview .v39-preview-cards{grid-template-columns:1fr}#v39PortalPreview .v39-preview-tools>div:last-child{width:100%}#v39PortalPreview .v39-preview-tools input{flex:1}#v39PortalPreview .v39-preview-row{align-items:start}}

#empleados .v39-salary-stat .v39-salary-warning{grid-column:1/-1;color:#a63c27;font-size:12px;background:#fff1e9;border:1px solid #f2c9b8;padding:10px 12px;border-radius:9px;margin:0}
