.payroll-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.payroll-form label{display:block;margin:10px 0 5px}.payroll-form input:not([type=checkbox]),.payroll-form select,.payroll-form textarea{width:100%;max-width:720px}.payroll-form input[type=checkbox]{width:18px;min-height:18px;flex:0 0 18px}.payroll-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.payroll-form .actions{margin-top:20px}.payroll-field{margin:16px 0}.payroll-hash{font:11px monospace;overflow-wrap:anywhere;color:var(--muted)}.payroll-source-list{max-height:680px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.payroll-source{padding:14px;border:1px solid var(--line);border-radius:9px;min-width:0}.payroll-source img{display:block;width:100%}.payroll-source h3{font-size:14px}.payroll-source p{font-size:12px}.payroll-source form label{display:block;margin:10px 0}.payroll-source form input,.payroll-source form select{width:100%}#id_pages{max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:10px}#id_pages label{display:flex;align-items:center;gap:8px}.payroll-pages figure{margin:18px auto;max-width:850px}.payroll-pages img{width:100%;background:white}.payroll-pages figcaption{margin:8px 0;color:var(--muted)}.payroll-document{overflow:auto}.payroll-document.is-zoomed .payroll-pages figure{max-width:none;width:1200px}.payroll-evidence{border-left:3px solid var(--brand);padding:12px;margin:12px 0}.payroll-evidence p{overflow-wrap:anywhere}body.employee-portal{display:block}.employee-shell{max-width:1000px;margin:auto;padding:14px 14px 90px}.employee-top{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.employee-top img{width:115px}.employee-top form{margin:0}.employee-top span{font-weight:600}.employee-menu{position:sticky;bottom:10px;display:flex;justify-content:space-around;gap:8px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--paper);box-shadow:0 4px 20px #0002;z-index:5}.employee-menu a{padding:10px;text-align:center;color:var(--brand);font-weight:600}.employee-receipts{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.employee-receipts article{padding:14px;border:1px solid var(--line);border-radius:9px}.employee-receipts h3{font-size:16px}.employee-history{display:flex;gap:15px;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.employee-history p{margin:5px 0}.employee-portal h1{font-size:24px}.payroll-setup-key{font:18px monospace;overflow-wrap:anywhere;padding:14px;background:var(--brand-soft)}@media(max-width:700px){.payroll-fields,.payroll-source-list{grid-template-columns:1fr}.employee-history{align-items:flex-start;flex-direction:column}.employee-shell{padding:10px 10px 80px}.employee-portal h1{font-size:21px}.employee-portal .panel{padding:16px}.payroll-source-list{max-height:550px}.employee-menu a{font-size:12px;padding:8px}.payroll-nav a{font-size:12px}.payroll-evidence p{font-size:12px}}

.employee-portal.payroll-locked .employee-shell{visibility:hidden}

.employee-menu{position:fixed;left:50%;transform:translateX(-50%);width:min(972px,calc(100% - 28px));bottom:max(10px,env(safe-area-inset-bottom))}@media(max-width:700px){.employee-top{flex-wrap:nowrap;gap:8px}.employee-top img{width:85px}.employee-top span{font-size:12px}.employee-top button{padding:8px 10px;min-height:40px}}

.payroll-batch-table{font-size:13px}.payroll-batch-table td,.payroll-batch-table th{padding:9px 7px;vertical-align:middle}.payroll-batch-table .payroll-period{white-space:nowrap}.payroll-batch-table .button{padding:6px 10px;min-height:34px;font-size:12px}.payroll-bulk-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:16px}.payroll-bulk-actions label{display:flex;gap:10px;align-items:flex-start;max-width:700px}.payroll-bulk-stats{display:flex;gap:12px;flex-wrap:wrap}.payroll-bulk-stats span{padding:8px 12px;background:var(--brand-soft);border-radius:8px}.payroll-batch-source summary{font-weight:600;cursor:pointer}.payroll-batch-table input[type=checkbox]{width:18px;height:18px}@media(max-width:700px){.payroll-batch-table{min-width:700px}.payroll-bulk-actions button{width:100%}}

.signature-pad{margin:15px 0}.signature-pad label{display:block;font-weight:600;margin-bottom:8px}.signature-pad canvas{width:100%;height:190px;background:#fff;border:2px solid var(--brand);border-radius:8px;touch-action:none;cursor:crosshair}.signature-preview{display:block;max-width:min(100%,360px);max-height:160px;object-fit:contain;background:white;padding:10px;border:1px solid var(--line);border-radius:6px;margin:12px 0}.signature-pad .actions{align-items:center}.signature-pad [role=status]{font-size:12px}@media(max-width:700px){.signature-pad canvas{height:180px}}
.payroll-auth-qr{display:block;width:230px;max-width:100%;height:auto;background:#fff;padding:10px;margin:16px 0}.payroll-workflow{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.payroll-workflow article{border:1px solid var(--line,#7a6637);border-radius:10px;padding:16px}.payroll-workflow h3{margin:0 0 8px}.payroll-back{display:inline-flex;margin-bottom:12px}
.payroll-sign-documents{max-height:360px;overflow:auto}.payroll-sign-documents thead{position:sticky;top:0;z-index:1}.payroll-sign-documents th{background:var(--surface,#262b26)}
body:has(.payroll-nav) .content>.heading{padding:18px 24px;margin-bottom:16px}body:has(.payroll-nav) .content>.heading .eyebrow{display:none}body:has(.payroll-nav) .content>.heading h1{font-size:1.55rem;margin:0 0 10px}

.employee-top-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.employee-top>span{flex:1;min-width:0;text-align:center}.employee-top .theme-icon{font-size:20px}@media(max-width:420px){.employee-top img{width:72px}.employee-top-actions{gap:6px}.employee-top-actions button{padding:8px}}

/* Personal portal: shared ZiZi geometry, compact profile and readable mobile fields. */
.employee-brand{position:relative;isolation:isolate;overflow:hidden}.employee-brand:before{content:"";position:absolute;inset:0 0 0 auto;width:45%;background-image:var(--hex-metal);background-position:right center;background-size:auto 220px;opacity:.22;z-index:-1;pointer-events:none}
.employee-portal .employee-heading{min-height:0;padding:24px;margin-bottom:18px;background-size:340px 100%,340px auto}.employee-heading>div{max-width:85%;min-width:0}.employee-heading h1{overflow-wrap:anywhere;margin-top:7px}.employee-heading p{margin:10px 0 0;color:var(--muted)}
.employee-data-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 24px;margin:20px 0 0}.employee-data-grid>div{min-width:0}.employee-data-grid dt{font-size:12px;color:var(--muted);margin-bottom:5px}.employee-data-grid dd{margin:0;overflow-wrap:anywhere;font-size:15px}.employee-data-wide{grid-column:span 2}.employee-data h2{font-size:18px;margin:0}.employee-menu a[aria-current=page]{background:var(--brand-soft);border-radius:8px}
@media(max-width:600px){.employee-data-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}.employee-portal .employee-heading{padding:20px 16px;background-size:240px 100%,240px auto}.employee-heading>div{max-width:100%}.employee-data-grid dd{font-size:14px}.employee-menu{gap:2px}.employee-menu a{flex:1}}
.employee-portal .employee-data{display:block}.employee-portal .employee-data>.section-title{display:block;width:100%;margin-bottom:16px}

/* Keep the complete white-and-gold logo readable in both themes. */
.employee-top>a{display:flex;align-items:center;justify-content:center;flex-shrink:0;background:#202323;border-radius:8px;padding:9px 10px}.employee-top>a img{display:block;height:auto}.employee-brand:before{content:none}
/* Fade the shared geometry through the full card height, without a cut-off strip. */
.employee-portal .employee-heading{position:relative;isolation:isolate;background-image:none}.employee-portal .employee-heading:after{content:"";position:absolute;inset:0 0 0 auto;width:42%;background-image:var(--hex-metal);background-repeat:no-repeat;background-position:right center;background-size:auto 100%;opacity:.3;mask-image:linear-gradient(to right,transparent,#000);pointer-events:none;z-index:-1}.employee-heading>div{max-width:100%}
@media(max-width:600px){.employee-top>a{padding:7px 8px}.employee-portal .employee-heading:after{width:38%;opacity:.2}}
html[data-theme] .employee-portal .employee-heading{background-image:none}

/* Transparent brand: gold stays gold; white lettering becomes ink in light mode. */
.employee-logo-filter{position:absolute;pointer-events:none}.employee-top>a{background:transparent;border-radius:0;padding:0}html[data-theme="light"] .employee-top>a img{filter:url(#employee-logo-light)}
@media(max-width:600px){.employee-top>a{padding:0}}

.employee-beneficiary{padding:16px 0;border-bottom:1px solid var(--line)}.employee-beneficiary:last-child{border-bottom:0;padding-bottom:0}.employee-beneficiary h3{font-size:16px;margin:0}.employee-beneficiary .employee-data-grid{margin-top:12px}

.employee-birthday-today{border-top:3px solid var(--brand)}.employee-birthday-name{font-weight:650}.employee-birthday-filter{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0}.employee-birthday-filter select{width:auto;min-width:140px}.employee-birthday-list{list-style:none;padding:0;margin:0}.employee-birthday-list li{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.employee-birthday-list li:last-child{border:0}.employee-birthday-list li>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.employee-birthday-day{background:var(--brand-soft);color:var(--brand);border-radius:8px;padding:8px;min-width:38px;text-align:center;font-weight:700}.employee-birthday-list strong{color:var(--brand);font-size:12px}.employee-birthday-notices{padding:0 8px 22px;color:var(--muted);font-size:13px}

.employee-heading .employee-legajo-line{display:flex;gap:10px 16px;align-items:center;flex-wrap:wrap}.employee-tenure{font-size:13px;color:var(--brand);background:var(--brand-soft);border-radius:7px;padding:5px 9px;font-weight:600}

/* Device settings belong to the header bell, separate from dashboard content. */
.employee-portal .employee-top{overflow:visible;z-index:10}.employee-notification-menu>summary{display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-height:40px;padding:0;list-style:none;border:1px solid var(--brand);border-radius:7px;color:var(--brand);cursor:pointer}.employee-notification-menu>summary::-webkit-details-marker{display:none}.employee-notification-menu[open]>summary{background:var(--brand-soft)}.employee-notification-popover{position:absolute;right:12px;top:calc(100% + 8px);width:min(310px,calc(100vw - 48px));padding:18px;background:var(--paper);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);z-index:12}.employee-notification-popover h2{font-size:17px;margin:0 0 10px}.employee-notification-popover p{font-size:13px;line-height:1.5;margin:0 0 12px;color:var(--muted)}.employee-notification-popover button[hidden]{display:none!important}.employee-notification-menu:not([open])>.employee-notification-popover{display:none}.employee-notification-menu summary:focus-visible{outline:2px solid var(--brand);outline-offset:3px}

.employee-portal details.employee-notification-menu{margin:0;padding:0;border:0;background:transparent;box-shadow:none}.employee-notification-menu>summary::before,.employee-notification-menu>summary::after{display:none}.employee-notification-menu>summary{gap:0}

.employee-menu .employee-help{font-size:12px;padding:8px;background:transparent;border:0;box-shadow:none;color:var(--brand);font-weight:600}.employee-menu .employee-help[hidden]{display:none!important}

/* Equal touch targets keep the personal portal aligned on small screens. */
.employee-portal .employee-menu{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:stretch;gap:6px;padding:6px}.employee-portal .employee-menu>:is(a,button){display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;height:auto;line-height:1.2;padding:8px 4px;margin:0;font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;box-sizing:border-box;border:0;border-radius:7px;text-decoration:none;white-space:normal;text-align:center;background:transparent;color:var(--brand);box-shadow:none}.employee-portal .employee-menu a[aria-current=page]{background:var(--brand-soft)}
@media(max-width:600px){.employee-portal{-webkit-text-size-adjust:100%;text-size-adjust:100%}.employee-shell{padding:10px 10px calc(86px + env(safe-area-inset-bottom))}.employee-portal .employee-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:10px;align-items:center}.employee-portal .employee-top>a{grid-column:1;grid-row:1;justify-content:flex-start;min-width:0}.employee-portal .employee-top>a img{width:78px}.employee-portal .employee-top>span{grid-column:1;grid-row:2;text-align:left;font-size:11px;line-height:1.2}.employee-portal .employee-top-actions{grid-column:2;grid-row:1/3;gap:7px;align-items:center}.employee-portal .employee-top-actions form{display:flex;margin:0}.employee-portal .employee-top-actions button,.employee-portal .employee-notification-menu>summary{display:flex;align-items:center;justify-content:center;min-width:40px;min-height:42px;height:42px;margin:0;padding:7px 9px;font-size:12px;line-height:1;box-shadow:none}.employee-portal .employee-top-actions .theme-toggle{width:40px;padding:0}.employee-portal .employee-top-actions .theme-label{display:none}.employee-portal .employee-menu{left:0;right:0;bottom:0;transform:none;width:auto;border-radius:0;padding:6px 8px max(6px,env(safe-area-inset-bottom));gap:6px}.employee-portal .employee-menu>:is(a,button){font-size:11px;min-height:46px}.employee-portal .employee-notification-popover{right:0;max-width:calc(100vw - 40px)}}
