/* Identidad del portal: elementos vectoriales, colores planos y sin recursos externos. */
body{--portal-navy:#243746;--portal-ink:#243746;--portal-line:#dce2e6}
body.session-locked .login-screen{background:#edf0f2;padding:32px 22px}
.portal-login-shell{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;display:grid;grid-template-columns:1.06fr 1fr;width:min(970px,100%);min-height:570px;background:#fff;border:1px solid #d8dfe4;border-radius:18px;overflow:hidden;box-shadow:0 20px 60px #182b3810}
.portal-cover{position:relative;display:flex;flex-direction:column;overflow:hidden;padding:46px 40px;background:#243746;color:#fff}
.portal-kicker{font-size:10px;letter-spacing:2.2px;color:#b9c5cc}.portal-cover h2{font-size:30px;line-height:1.28;letter-spacing:-.65px;max-width:350px;margin:36px 0 16px;color:#fff;font-weight:600}.portal-cover p{font-size:10px;letter-spacing:1.6px;color:#b9c5cc;margin:0}.portal-cover-foot{font-size:9px;letter-spacing:1.7px;margin-top:auto;padding-top:200px;color:#a4b4bf}
.portal-gears{position:absolute;left:20px;right:5px;bottom:55px;pointer-events:none;color:#6b7f8c;opacity:.5}.portal-gears svg{width:100%;height:280px;fill:none;stroke:currentColor;stroke-width:1;stroke-linejoin:round}
.portal-login-shell .login-card{align-self:center;width:100%;border:0;border-radius:0;box-shadow:none;padding:46px 42px;background:#fff}.login-card .login-mark{background:#edf1f4;color:#243746;border:1px solid #dce3e8;border-radius:12px;width:43px;height:43px;margin-bottom:24px}.login-card .eyebrow{font-size:11px;color:#425563;letter-spacing:1.2px;line-height:1.6}.login-card h1{font-size:26px;color:#243746;margin:14px 0 10px}.login-card p{font-size:11px;line-height:1.6;margin-bottom:26px}.login-card label{font-size:11px;color:#586b79}.login-card input{height:44px;background:#fafbfc;border:1px solid #d9e1e6;border-radius:7px}.login-card .primary{background:#243746;border-color:#243746;color:#fff;padding:13px}.login-card .primary:hover{background:#304b60}.login-card button:not(.primary){color:#425868;border-color:#d9e1e6}.login-card input:focus{outline:2px solid #b0c0cc;outline-offset:2px}
body>header h1,.worker-header h1{font-size:16px!important;letter-spacing:.4px;color:#263c4e}.worker-header small{font-size:9px;letter-spacing:1px}.worker-header .logo,body>header .logo{background:#243746;color:#fff;border-color:#243746}.worker-toolbar #workerReportsBtn{background:#243746;color:#fff;border-color:#243746}.worker-toolbar #workerNewRequest{background:#eef2f5;color:#334b60;border-color:#d9e2e8}.worker-toolbar{gap:9px}
#portalFileInfo{display:none!important}
body.portal-admin #srNightNote,body.portal-admin #srMailNotice{display:none!important}
body.portal-supervision #srEditor{display:none!important}
#portalReportSettings .check{display:flex;align-items:center;gap:10px;line-height:1.6}#portalReportSettings input{width:auto}#portalReportSettings small{display:block;font-size:11px;line-height:1.7;color:#788799;margin:10px 0}#portalReportSettings button{margin-top:10px}#portalPolicyMessage:empty{display:none}#portalPolicyMessage{font-size:11px;line-height:1.6;margin-top:12px}
#shiftReportsScreen .sr-day-actions{align-items:center;flex-wrap:nowrap;min-width:210px;width:100%}#shiftReportsScreen .portal-day-delete{margin-left:auto;flex-shrink:0;width:34px;height:34px;display:grid;place-items:center;padding:0;border-radius:7px;border:1px solid #ead5d8;background:#fff8f8;color:#ad4350;font-size:22px;line-height:1}.portal-day-delete:hover{background:#fae9ec!important;border-color:#d49ca4!important}.sr-history-wrap th:last-child{width:34%}.sr-history-wrap td:last-child{overflow:visible;max-width:none}
@media(max-width:720px){body.session-locked .login-screen{padding:18px 14px;align-items:center}.portal-login-shell{display:block;max-width:420px;min-height:0;border-radius:14px}.portal-cover{padding:22px 26px;min-height:155px}.portal-cover h2{font-size:20px;margin:17px 0 0;max-width:260px;line-height:1.3}.portal-cover p,.portal-cover-foot{display:none}.portal-gears{left:auto;right:-35px;bottom:-65px;width:180px;opacity:.35}.portal-gears svg{height:200px}.portal-login-shell .login-card{padding:27px 26px 30px}.login-card .login-mark{display:none}.login-card h1{font-size:24px}.login-card .eyebrow{font-size:10px}.worker-header h1,body>header h1{font-size:13px!important}.sr-history-wrap table{min-width:670px}#shiftReportsScreen .sr-day-actions{min-width:200px}.sr-header{padding:14px 16px}.sr-body{padding:16px 14px 30px}}

#shiftReportsScreen .portal-history-back{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:42px;padding:10px 16px;border:1px solid #d1dce4;border-radius:9px;background:#f2f6f8;color:#304b60;font-weight:600;letter-spacing:.4px;box-shadow:0 1px 2px #24374608;cursor:pointer}
#shiftReportsScreen .portal-history-back .ui-icon{width:18px;height:18px;flex-shrink:0;stroke-width:1.8}
#shiftReportsScreen .portal-history-back:hover{background:#e5edf2;border-color:#b1c2ce;color:#203b50}
#shiftReportsScreen .portal-history-back:active{background:#dbe7ee}
#shiftReportsScreen .portal-history-back:focus-visible{outline:2px solid #57788e;outline-offset:3px}
/* Configuracion: una tipografia y una jerarquia de lectura en todos los controles. */
#settingsSection,#settingsSection input,#settingsSection select,#settingsSection textarea,#settingsSection button,#cloudPasswordDialog,#cloudPasswordDialog input,#cloudPasswordDialog button{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
#settingsSection{max-width:1140px;color:#263c4e;font-size:14px;line-height:1.6;padding:4px 4px 32px}
#settingsSection .title-row{margin-bottom:24px}#settingsSection .title-row h2{font-size:25px;line-height:1.3;font-weight:650;letter-spacing:-.4px}#settingsSection .movement-subtitle{font-size:14px;color:#5b6d7c;margin-top:8px}
#settingsSection .settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
#settingsSection .settings-card{padding:26px;border:1px solid #dce3e8;border-radius:12px;box-shadow:none;background:#fff}
#settingsSection h3{font-size:17px;line-height:1.45;letter-spacing:.1px;font-weight:650;color:#263c4e;margin:0 0 20px}
#settingsSection h2,#settingsSection h3,#settingsSection summary,#settingsSection button{text-transform:uppercase}
#settingsSection .settings-heading span{font-size:13px;color:#5e7180;font-weight:400;letter-spacing:0}
#settingsSection label,#settingsSection .settings-option label,#settingsSection #portalReportSettings .check{font-size:14px;color:#344c5f;font-weight:500;line-height:1.6;margin-top:16px}
#settingsSection input:not([type=checkbox]),#settingsSection select,#settingsSection textarea{font-size:14px;line-height:1.55;min-height:43px;padding:10px 12px;border-radius:7px;border-color:#cdd8e0;background:#fbfcfd;color:#263c4e}
#settingsSection input[type=checkbox]{width:18px;height:18px;min-width:18px;flex-shrink:0;accent-color:#34546d}
#settingsSection button,#settingsSection #passwordSettingsBtn,#settingsSection #storageRefresh{font-size:14px!important;font-weight:550;line-height:1.45;min-height:42px;padding:10px 15px;border-radius:7px;border-color:#ccd8e0;color:#344f65;background:#f5f8fa;letter-spacing:.15px;white-space:normal}
#settingsSection button.primary{background:#2d495f;border-color:#2d495f;color:white}#settingsSection button:not(:disabled):hover{background:#e9eff3;border-color:#afc0cd}#settingsSection button.primary:not(:disabled):hover{background:#223d52;color:white}
#settingsSection button:focus-visible,#settingsSection summary:focus-visible{outline:2px solid #52758f;outline-offset:3px}
#settingsSection small,#settingsSection #portalReportSettings small,#settingsSection .settings-option small,#settingsSection .settings-help p{font-size:13px!important;line-height:1.65;color:#5e7180;margin-top:12px;letter-spacing:0}
#settingsSection .settings-action-row{margin:22px 0 20px}#settingsSection #passwordSettingsBtn{display:inline-flex;align-items:center;min-height:44px;padding:11px 17px}
#settingsSection .side-group{border:1px solid #e0e6eb;border-radius:8px;margin:16px 0 0;background:#fff}
#settingsSection .side-group summary{font-size:14px;line-height:1.5;font-weight:550;color:#344f65;min-height:48px;padding:14px 16px;gap:10px}
#settingsSection .side-group summary::after{content:'⌄';font-size:18px;margin-left:auto;color:#647b8d}#settingsSection .side-group[open]>summary::after{content:'⌃'}
#settingsSection .side-group summary .ui-icon:last-child{display:none}#settingsSection .side-group[open]>summary{border-bottom:1px solid #e6ebef;background:#f8fafb}
#settingsSection .side-group-content{padding:6px 18px 20px}#settingsSection .side-group-content button{margin-top:14px}
#settingsSection .settings-options{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;align-items:start}#settingsSection .settings-options>h3{grid-column:1/-1;margin-bottom:2px}
#settingsSection #reportRecipientsSettings{padding:0;border:0;background:transparent}#settingsSection #reportRecipientsSettings>h3{display:none}#settingsSection #reportRecipientsSettings textarea{width:100%;min-height:110px}
#settingsSection #portalReportSettings #portalPolicyMessage{font-size:13px;line-height:1.6}#settingsSection #portalReportSettings>button{margin-bottom:0}
#settingsSection #retentionCard{grid-column:1/-1}#settingsSection .storage-heading{font-size:14px;color:#344c5f;margin-top:0}#settingsSection #storageSummary{font-size:19px;line-height:1.5;font-weight:600;color:#2c465a;margin-top:12px}#settingsSection .storage-numbers{font-size:14px;color:#344c5f;margin-top:12px}#settingsSection #storageTime{font-size:12px!important;color:#6a7e8c}
#settingsSection .settings-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:12px;align-items:start}#settingsSection .settings-detail-grid>.side-group{margin:0}#settingsSection .settings-detail-grid summary{font-size:13px;align-items:center;flex-wrap:wrap}#settingsSection #retentionBadge,#settingsSection #manualDeleteBadge{font-size:11px;padding:2px 6px;background:#edf2f5;border-radius:4px;color:#466074}
#cloudPasswordDialog{font-size:14px;line-height:1.6}#cloudPasswordDialog h2{font-size:21px}#cloudPasswordDialog label{font-size:14px}#cloudPasswordDialog input,#cloudPasswordDialog button{font-size:14px;min-height:43px}
@media(max-width:1050px){#settingsSection .settings-detail-grid{grid-template-columns:1fr}#settingsSection .settings-detail-grid summary{font-size:14px}}
@media(max-width:850px){#settingsSection .settings-grid{grid-template-columns:1fr;gap:18px}#settingsSection .settings-options{display:block}#settingsSection .settings-card{padding:22px}#settingsSection h3{font-size:17px}#settingsSection .storage-numbers{gap:12px;flex-wrap:wrap}}
@media(max-width:540px){#settingsSection{padding-left:0;padding-right:0}#settingsSection .settings-card{padding:20px 17px}#settingsSection .title-row h2{font-size:23px}#settingsSection #passwordSettingsBtn{width:100%;justify-content:center}#settingsSection .side-group-content{padding-left:14px;padding-right:14px}}
#portalConfirmation{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #dbe3e9;border-radius:16px;color:#273e50;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 24px 80px #152a4130;overflow:auto}
#portalConfirmation::backdrop{background:#162a3d66;backdrop-filter:blur(3px)}
.portal-confirm-header{display:flex;align-items:center;justify-content:space-between;padding:24px 26px 0;gap:16px}.portal-confirm-symbol{width:44px;height:44px;display:grid;place-items:center;background:#fcf0f1;border:1px solid #f1d9dd;border-radius:12px;color:#aa4a57}.portal-confirm-symbol .ui-icon{width:21px;height:21px}
#portalConfirmationClose{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:7px;background:transparent;color:#718494;font-size:24px;padding:0}#portalConfirmationClose:hover{background:#eef2f5;color:#344f65}
.portal-confirm-body{padding:18px 26px 24px}.portal-confirm-body h2{margin:0 0 16px;font-size:20px;line-height:1.35;letter-spacing:-.25px;font-weight:650}.portal-confirm-body p{font-size:14px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere;margin:0;color:#526879}
.portal-confirm-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 26px;background:#f7f9fa;border-top:1px solid #e4eaee}.portal-confirm-actions button{font-family:inherit;font-size:14px;font-weight:550;padding:11px 19px;min-height:44px;border-radius:8px;letter-spacing:.2px}.portal-confirm-actions #portalConfirmationCancel{background:#fff;color:#415c70;border:1px solid #cdd9e2}.portal-confirm-actions #portalConfirmationAccept{background:#a64452;color:#fff;border:1px solid #a64452}.portal-confirm-actions #portalConfirmationAccept:hover{background:#923b47}#portalConfirmation button:focus-visible{outline:2px solid #5a7b94;outline-offset:3px}
@media(max-width:540px){.portal-confirm-header{padding:22px 22px 0}.portal-confirm-body{padding:17px 22px 23px}.portal-confirm-actions{padding:16px 22px}.portal-confirm-actions button{flex:1;padding:11px 12px}}
.portal-confirm-eyebrow{display:block;font-size:10px;font-weight:600;letter-spacing:1.4px;color:#7b8c99;margin-bottom:10px}#portalConfirmationDate{display:inline-flex;align-items:center;padding:8px 12px;margin:0 0 19px;border:1px solid #dde5eb;background:#f3f6f8;border-radius:7px;font-size:16px;font-weight:600;letter-spacing:.4px;color:#344f65}#portalConfirmationDate[hidden]{display:none}
/* Historial: filtros, acciones y tabla con una jerarquia comun. */
#shiftReportsScreen,#shiftReportsScreen input,#shiftReportsScreen select,#shiftReportsScreen textarea,#shiftReportsScreen button{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
#shiftReportsScreen #srHistory .sr-history-tools{display:block;margin:24px 0 20px;padding:0;background:transparent}
#shiftReportsScreen .portal-history-filters{display:grid;grid-template-columns:170px 170px minmax(240px,1fr);align-items:end;gap:16px}
#shiftReportsScreen .portal-history-filters label{font-size:12px;font-weight:600;color:#52697d;line-height:1.5;letter-spacing:.4px}
#shiftReportsScreen .portal-history-filters input{display:block;width:100%;max-width:none;min-width:0;height:46px;margin-top:8px;padding:11px 13px;font-size:14px;line-height:1.4;border:1px solid #d2dde6;border-radius:8px;background:#fff;color:#2e475b;box-shadow:none}
#shiftReportsScreen .portal-history-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding-top:16px}
#shiftReportsScreen .portal-history-actions button{min-height:42px;padding:10px 15px;font-size:13px;font-weight:500;line-height:1.5;letter-spacing:.1px;border-radius:7px}
#shiftReportsScreen .portal-history-actions #srRefresh{margin-right:auto;background:#f1f5f8;border-color:#d7e1e9;color:#3f5a6f}
#shiftReportsScreen #srHistory .sr-history-wrap{padding:8px 20px 18px;border-color:#dce4eb;box-shadow:none}
#shiftReportsScreen #srHistory table{table-layout:fixed;width:100%;min-width:760px;border-collapse:collapse}
#shiftReportsScreen #srHistory th,#shiftReportsScreen #srHistory td{position:static;left:auto;right:auto;min-width:0;max-width:none;width:auto;white-space:normal;text-align:left;padding:18px 14px;line-height:1.65;vertical-align:middle;font-family:inherit;overflow:visible;text-overflow:clip}
#shiftReportsScreen #srHistory th{font-size:11px;font-weight:600;letter-spacing:.65px;color:#62798c;background:#fff;border-bottom:1px solid #e0e7ed}
#shiftReportsScreen #srHistory td{font-size:13px;color:#344f64;border-bottom:1px solid #edf1f5}
#shiftReportsScreen #srHistory th:nth-child(1){width:17%}#shiftReportsScreen #srHistory th:nth-child(2){width:27%}#shiftReportsScreen #srHistory th:nth-child(3){width:27%}#shiftReportsScreen #srHistory th:nth-child(4){width:29%}
#shiftReportsScreen #srHistory td:first-child{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:500}
#shiftReportsScreen #srHistory .sr-turn-pill{font-size:10px;line-height:1.5;padding:5px 8px;margin:3px 5px 3px 0;white-space:nowrap}
#shiftReportsScreen #srHistory .sr-day-actions{min-width:0;gap:8px;flex-wrap:wrap}#shiftReportsScreen #srHistory .sr-day-actions>button:not(.portal-day-delete){font-size:12px;min-height:38px;padding:8px 12px;border-radius:7px}
#shiftReportsScreen #srHistory .portal-day-delete{width:34px;height:36px;margin-left:auto;font-size:22px;padding:0}
#shiftReportsScreen #srHistoryEmpty{padding:28px 14px 16px;margin:0;color:#637b8e;font-size:14px;line-height:1.6}
#shiftReportsScreen #srHistory .sr-pagination{margin-top:18px;gap:12px;color:#657d90;font-size:13px}#shiftReportsScreen #srHistory .sr-pagination button{min-height:40px;font-size:12px;padding:9px 13px}
@media(max-width:850px){#shiftReportsScreen .portal-history-filters{grid-template-columns:1fr 1fr;gap:14px}#shiftReportsScreen .portal-history-search{grid-column:1/-1}#shiftReportsScreen #srHistory .sr-history-wrap{padding-left:10px;padding-right:10px}}
@media(max-width:540px){#shiftReportsScreen .portal-history-actions{gap:8px}#shiftReportsScreen .portal-history-actions button{font-size:12px;flex:1;padding:10px}#shiftReportsScreen .portal-history-actions #srRefresh{margin-right:0}#shiftReportsScreen #srHistory .sr-pagination{gap:8px;flex-wrap:wrap}#shiftReportsScreen #srHistory .sr-pagination>span:first-child{flex-basis:100%;margin-bottom:4px}}
