.portal-body{min-height:100vh;background:#f7f8f5}.auth-page{width:min(1220px,calc(100% - 64px));min-height:100vh;margin:auto;display:flex;flex-direction:column;padding:28px 0 18px}.portal-brand{display:inline-flex;width:max-content;align-items:center;gap:10px;color:var(--hema-green-dark);font-size:18px;font-weight:700;letter-spacing:-.04em}.portal-brand img{width:auto;height:40px;object-fit:contain}.auth-layout{flex:1;display:grid;grid-template-columns:1.08fr .92fr;align-items:center;gap:clamp(44px,9vw,130px);padding:45px 5% 55px}.auth-intro{position:relative;min-height:490px;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.auth-intro .eyebrow{position:relative;z-index:2;margin-bottom:24px}.auth-intro h1{position:relative;z-index:2;margin:0;font-size:clamp(44px,5.4vw,68px);font-weight:600;line-height:1.04;letter-spacing:-.075em}.auth-intro h1 span{color:var(--hema-green)}.auth-intro>p:not(.eyebrow){position:relative;z-index:2;max-width:410px;margin:22px 0;color:#6d736c;font-size:14px;line-height:1.8}.auth-orbit{position:absolute;right:0;bottom:12px;width:185px;height:185px;display:grid;place-items:center;border:1px solid #dce6d6;border-radius:50%;color:var(--hema-green);font-size:38px;font-weight:700;opacity:.75}.auth-orbit:before,.auth-orbit:after{content:"";position:absolute;inset:19px;border:1px solid rgba(243,182,199,.8);border-radius:50%;transform:rotate(47deg) scaleX(1.7)}.auth-orbit:after{transform:rotate(-48deg) scaleX(1.7);border-color:rgba(76,140,43,.24)}.auth-orbit i,.auth-orbit b,.auth-orbit em{position:absolute;z-index:1;width:8px;height:8px;border-radius:50%;background:var(--hema-pink)}.auth-orbit i{top:18px;left:82px}.auth-orbit b{right:18px;top:92px;background:var(--hema-green)}.auth-orbit em{left:22px;bottom:53px;width:6px;height:6px}.auth-orbit span{position:relative;z-index:2}.back-to-site{position:absolute;left:0;bottom:4px;color:#666d66;font-size:10px}.back-to-site:hover,.back-link:hover{color:var(--hema-green)}.auth-card{width:100%;max-width:460px;margin-left:auto;padding:clamp(28px,4vw,48px);background:#fff;border:1px solid #e5e8e2;box-shadow:0 18px 60px rgba(30,45,25,.055)}.auth-card-heading{margin-bottom:29px}.auth-card-heading .eyebrow{margin-bottom:11px}.auth-card-heading h2{margin:0;font-size:32px;font-weight:600;line-height:1.2;letter-spacing:-.055em}.auth-card-heading>p:last-child,.auth-explanation{margin:9px 0 0;color:#777d76;font-size:11px}.auth-form{display:grid;gap:19px}.field-group{display:grid;gap:8px}.field-group label,.field-label-row label{font-size:10px;font-weight:600;color:#313630}.field-label-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.field-label-row a{color:var(--link-blue);font-size:9px}.field-group input{width:100%;height:47px;padding:0 13px;border:1px solid #dfe3dc;border-radius:2px;background:white;color:var(--ink);font:400 11px var(--font);outline:none;transition:border .2s,box-shadow .2s}.field-group input::placeholder{color:#a0a59f}.field-group input:focus{border-color:var(--hema-green);box-shadow:0 0 0 3px rgba(76,140,43,.1)}.password-wrap{position:relative}.password-wrap input{padding-right:47px}.password-toggle{position:absolute;top:50%;right:10px;display:grid;place-items:center;width:28px;height:28px;padding:4px;border:0;background:transparent;color:#6f756e;transform:translateY(-50%);cursor:pointer}.password-toggle:hover{color:var(--hema-green)}.password-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.remember-row{position:relative;display:inline-flex;width:max-content;align-items:center;gap:9px;color:#656b64;font-size:10px;cursor:pointer}.remember-row input{position:absolute;width:1px;height:1px;opacity:0}.custom-check{width:16px;height:16px;border:1px solid #bfc6bc;border-radius:2px;background:#fff}.remember-row input:checked+.custom-check{background:var(--hema-green);border-color:var(--hema-green)}.remember-row input:checked+.custom-check:after{content:"✓";display:block;color:#fff;font-size:11px;line-height:14px;text-align:center}.remember-row input:focus-visible+.custom-check{outline:3px solid rgba(76,140,43,.18)}.auth-submit{width:100%;height:48px;min-height:48px;margin-top:2px;border:0;cursor:pointer}.auth-submit span{margin-left:auto}.auth-security{display:flex;align-items:center;justify-content:center;gap:7px;margin:24px 0 0;color:#969c95;font-size:8px}.auth-security span{color:var(--hema-green);font-size:14px}.field-error{color:#a3303a;font-size:9px}.alert{margin:0 0 18px;padding:11px 13px;font-size:10px;line-height:1.6}.alert-success{border:1px solid #dce8d5;background:#f4f8f0;color:#36572a}.alert-error{border:1px solid #f2d3d5;background:#fff5f5;color:#923b42}.auth-footer{display:flex;justify-content:space-between;border-top:1px solid #e4e7e1;padding-top:13px;color:#8b918a;font-size:8px}.auth-page-centered{align-items:center;justify-content:center}.auth-page-centered>.portal-brand{align-self:flex-start}.auth-card-narrow{margin:48px auto;max-width:490px}.small-auth-title{margin:0;font-size:35px;font-weight:600;line-height:1.12;letter-spacing:-.06em}.auth-card-narrow .auth-explanation{max-width:370px;margin:13px 0 23px;font-size:11px;line-height:1.8}.back-link{display:inline-block;margin-top:21px;color:var(--link-blue);font-size:10px}.admin-app{min-height:100vh;background:#f7f8f5}.admin-topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;background:#fff;border-bottom:1px solid #e5e8e2}.admin-topbar .portal-brand img{height:36px}.admin-topbar .portal-brand{font-size:16px}.admin-topbar .portal-brand i{margin-left:3px;padding:4px 6px;background:var(--hema-green-soft);color:var(--hema-green-dark);font-size:7px;font-style:normal;font-weight:700;letter-spacing:.09em}.admin-user{display:flex;align-items:center;gap:10px}.admin-avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--hema-green-soft);color:var(--hema-green-dark);font-size:12px;font-weight:700}.admin-user-name{display:grid;color:#333932;font-size:10px;font-weight:600;line-height:1.45}.admin-user-name small{color:#828880;font-size:8px;font-weight:400}.admin-user form{margin-left:15px}.logout-button{border:0;background:transparent;color:#52644b;font:500 9px var(--font);cursor:pointer}.logout-button:hover{color:var(--hema-green)}.admin-layout{min-height:calc(100vh - 72px);display:grid;grid-template-columns:220px 1fr}.admin-sidebar{position:relative;padding:31px 15px;background:#fff;border-right:1px solid #e5e8e2}.sidebar-caption{margin:0 0 13px 11px;color:#939990;font-size:8px;font-weight:700;letter-spacing:.13em}.sidebar-link{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-height:41px;margin-bottom:3px;padding:0 11px;color:#686f67;font-size:10px}.sidebar-link.is-active{background:var(--hema-green-soft);color:var(--hema-green-dark);font-weight:600}.sidebar-icon{width:17px;color:var(--hema-green);font-size:15px;text-align:center}.sidebar-link.is-disabled{opacity:.68;cursor:default}.sidebar-link small{margin-left:auto;color:#9aa096;font-size:7px}.sidebar-bottom{position:absolute;left:15px;right:15px;bottom:25px;padding-top:17px;border-top:1px solid #eceeea}.sidebar-bottom a{display:block;padding:5px 11px;color:var(--link-blue);font-size:9px}.admin-main{width:min(1120px,100%);margin:auto;padding:43px clamp(24px,5vw,70px) 50px}.admin-welcome-row{display:flex;justify-content:space-between;align-items:end;gap:20px}.admin-welcome-row .eyebrow{margin-bottom:12px}.admin-welcome-row h1{margin:0;font-size:34px;font-weight:600;line-height:1.15;letter-spacing:-.06em}.admin-subtitle{margin:10px 0 0;color:#6c736b;font-size:11px}.admin-date{padding-bottom:4px;color:#81877f;font-size:9px}.admin-next-step{position:relative;display:flex;align-items:center;gap:24px;margin-top:34px;padding:25px 28px;border:1px solid #e1e7dc;background:linear-gradient(110deg,#fff 50%,#f1f6ed)}.next-step-mark{width:55px;height:55px;flex:0 0 55px;display:grid;place-items:center;border-radius:50%;background:#fff;border:1px solid #dce6d5;color:var(--hema-green);font-size:23px;font-weight:600}.admin-next-step .eyebrow{margin-bottom:9px;font-size:8px}.admin-next-step h2{margin:0;font-size:19px;font-weight:600;letter-spacing:-.04em}.admin-next-step>div:last-child>p:last-child{max-width:620px;margin:7px 0 0;color:#70776f;font-size:10px;line-height:1.7}.admin-section-title{display:flex;justify-content:space-between;align-items:end;margin:38px 0 15px}.admin-section-title .eyebrow{margin-bottom:5px}.admin-section-title h2{margin:0;font-size:17px;font-weight:600;letter-spacing:-.03em}.admin-section-title>span{color:#858b83;font-size:8px}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.module-card{min-height:90px;display:flex;align-items:center;gap:14px;padding:16px;background:#fff;border:1px solid #e5e8e2}.module-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:10px;font-size:15px}.module-card h3{margin:0 0 3px;font-size:11px;font-weight:600}.module-card p{margin:0;color:#7b8179;font-size:8px;line-height:1.5}.module-status{margin-left:auto;white-space:nowrap;color:#899086;font-size:7px}.admin-footnote{display:flex;align-items:center;gap:8px;margin:20px 0 0;color:#878d85;font-size:8px}.admin-footnote span{width:14px;height:14px;display:grid;place-items:center;border:1px solid #d8ddd5;border-radius:50%;font-size:8px}@media(max-width:850px){.auth-layout{gap:35px;padding-inline:0}.auth-intro h1{font-size:51px}.auth-orbit{width:140px;height:140px;right:6px}.admin-layout{grid-template-columns:190px 1fr}.admin-topbar{padding-inline:22px}.admin-main{padding-inline:30px}}@media(max-width:650px){.auth-page{width:calc(100% - 36px);padding-top:17px}.auth-layout{display:block;padding:55px 0 35px}.auth-intro{min-height:unset;margin-bottom:30px}.auth-intro h1{font-size:43px}.auth-intro>p:not(.eyebrow){font-size:11px;margin:13px 0 0}.auth-orbit{width:90px;height:90px;right:8px;bottom:4px;font-size:22px;opacity:.45}.auth-orbit:before,.auth-orbit:after{inset:9px}.auth-orbit i{top:8px;left:40px}.auth-orbit b{right:8px;top:43px}.auth-orbit em{left:9px;bottom:25px}.back-to-site{position:static;display:inline-block;margin-top:18px;font-size:9px}.auth-card{max-width:none;margin:0;padding:25px 21px}.auth-card-heading h2{font-size:28px}.auth-footer{margin-top:auto}.auth-page-centered{padding-top:18px}.auth-card-narrow{margin:35px auto;padding:27px 22px}.small-auth-title{font-size:31px}.admin-topbar{height:62px;padding:0 14px}.admin-topbar .portal-brand img{height:31px}.admin-topbar .portal-brand i{display:none}.admin-user{gap:7px}.admin-user-name{display:none}.admin-user form{margin-left:3px}.logout-button{font-size:8px}.admin-layout{display:block;min-height:calc(100vh - 62px)}.admin-sidebar{display:flex;gap:5px;overflow-x:auto;padding:9px 12px;border-right:0;border-bottom:1px solid #e5e8e2}.sidebar-caption,.sidebar-bottom{display:none}.sidebar-link{width:max-content;min-width:max-content;min-height:34px;margin:0;padding:0 10px;font-size:9px}.sidebar-link small{display:none}.sidebar-icon{font-size:12px}.admin-main{padding:29px 18px 35px}.admin-welcome-row{display:block}.admin-welcome-row h1{font-size:29px}.admin-date{display:block;margin-top:10px}.admin-next-step{gap:13px;margin-top:24px;padding:18px 15px}.next-step-mark{width:42px;height:42px;flex-basis:42px;font-size:18px}.admin-next-step h2{font-size:15px}.admin-next-step>div:last-child>p:last-child{font-size:9px}.admin-section-title{margin-top:30px}.module-grid{grid-template-columns:1fr}.module-card{min-height:77px;padding:12px}.module-status{font-size:7px}}@media(max-width:370px){.admin-topbar .portal-brand span{font-size:14px}.admin-avatar{width:27px;height:27px}.module-card{gap:9px}.module-status{font-size:6px}}

/* Administración de catálogos */
.admin-main-content{min-width:0}.resource-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:26px}.resource-heading h1,.resource-form-heading h1{margin:0;font-size:34px;font-weight:600;letter-spacing:-.06em}.resource-heading .eyebrow,.resource-form-heading .eyebrow{margin:30px 0 10px}.resource-add{white-space:nowrap}.module-card-link{color:inherit;text-decoration:none;transition:border-color .2s,transform .2s,box-shadow .2s}.module-card-link:hover{border-color:#b8caaa;transform:translateY(-2px);box-shadow:0 8px 24px rgba(30,45,25,.06)}.resource-table-wrap{overflow-x:auto;background:#fff;border:1px solid #e5e8e2}.resource-table{width:100%;border-collapse:collapse;text-align:left}.resource-table th{padding:13px 15px;background:#fafbf9;border-bottom:1px solid #e5e8e2;color:#757c73;font-size:8px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}.resource-table td{padding:13px 15px;border-bottom:1px solid #edf0eb;color:#343a32;font-size:9px;vertical-align:middle}.resource-table tr:last-child td{border-bottom:0}.actions-column{text-align:right}.row-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;white-space:nowrap}.row-actions form{margin:0}.table-action{padding:0;border:0;background:transparent;color:var(--link-blue);font:500 9px var(--font);text-decoration:none;cursor:pointer}.table-action:hover{text-decoration:underline}.table-action-danger{color:#a33b44}.resource-empty{display:flex;flex-direction:column;align-items:center;margin-top:24px;padding:55px 20px;background:#fff;border:1px solid #e5e8e2;text-align:center}.resource-empty h2{margin:17px 0 0;font-size:18px;letter-spacing:-.04em}.resource-empty p{margin:7px 0 20px;color:#747b72;font-size:10px}.resource-pagination{display:flex;justify-content:center;margin-top:20px}.resource-pagination nav{display:flex;gap:5px}.resource-pagination a,.resource-pagination span[aria-current],.resource-pagination span[aria-disabled]{display:inline-flex;min-width:28px;height:28px;align-items:center;justify-content:center;padding:0 8px;border:1px solid #e1e5de;background:#fff;color:#62695f;font-size:9px;text-decoration:none}.resource-pagination span[aria-current]{background:var(--hema-green);border-color:var(--hema-green);color:white}.resource-form-heading{margin-bottom:20px}.resource-form-heading .back-link{margin:0 0 4px}.resource-form-heading .eyebrow{margin:20px 0 8px}.resource-form{padding:25px;background:#fff;border:1px solid #e5e8e2}.resource-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 18px}.resource-fields .field-group{min-width:0}.field-wide{grid-column:1/-1}.resource-input{width:100%;min-height:43px;padding:10px 12px;border:1px solid #dfe3dc;border-radius:2px;background:#fff;color:var(--ink);font:400 10px var(--font);outline:none}.resource-input:focus{border-color:var(--hema-green);box-shadow:0 0 0 3px rgba(76,140,43,.1)}select.resource-input{padding-right:30px}.resource-textarea{min-height:92px;resize:vertical}.resource-checkbox{grid-column:1/-1;margin-top:5px}.required-mark{color:#a33b44}.field-help{color:#858b83;font-size:8px;line-height:1.5}.resource-form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:25px;padding-top:18px;border-top:1px solid #eceeea}.button-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border:1px solid #dce2d8;background:#fff;color:#535b50;font:500 10px var(--font);text-decoration:none}.button-secondary:hover{border-color:#aab9a2}.permission-section{margin-top:27px;padding-top:22px;border-top:1px solid #eceeea}.permission-heading h2{margin:0;font-size:16px;letter-spacing:-.03em}.permission-heading p{margin:6px 0 15px;color:#777e75;font-size:9px;line-height:1.6}.permission-list{border:1px solid #e5e8e2}.permission-row{display:grid;grid-template-columns:1fr 120px 120px;align-items:center;gap:10px;min-height:43px;padding:8px 13px;border-bottom:1px solid #edf0eb;color:#555c53;font-size:9px}.permission-row:last-child{border-bottom:0}.permission-header{min-height:34px;background:#fafbf9;color:#757c73;font-size:8px;font-weight:700;text-transform:uppercase}.permission-row strong{color:#333932;font-weight:500}.permission-row label{display:flex;align-items:center;gap:6px}.permission-row input{accent-color:var(--hema-green)}@media(max-width:850px){.resource-table th,.resource-table td{padding:11px 10px}.resource-form{padding:21px}}@media(max-width:650px){.resource-heading{align-items:flex-start;flex-direction:column}.resource-heading h1,.resource-form-heading h1{font-size:29px}.resource-add{align-self:stretch}.resource-fields{grid-template-columns:1fr}.field-wide,.resource-checkbox{grid-column:auto}.resource-form{padding:18px}.resource-form-actions{position:sticky;bottom:0;background:#fff}.permission-row{grid-template-columns:minmax(0,1fr) 82px 82px;gap:6px;padding-inline:8px;font-size:8px}.permission-row label{gap:3px}.resource-table{min-width:650px}}

/* HEMA portal UI system — refresh approved 2026-10 */
.portal-body{--ui-radius-sm:7px;--ui-radius-md:10px;--ui-radius-lg:14px;--ui-shadow:0 10px 30px rgba(26,45,20,.06);font-size:15px;line-height:1.55;background:#f5f7f3;color:#181c18}
.portal-body :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid rgba(50,99,30,.42);outline-offset:2px}
.portal-body .button,.portal-body .button-secondary,.portal-body .logout-button,.portal-body .table-action{border-radius:var(--ui-radius-sm)}
.portal-body .button{min-height:46px;padding-inline:18px;font-size:14px;gap:12px}
.portal-body .button-primary{background:var(--hema-green-dark);color:#fff}
.portal-body .button-primary:hover{background:#264f18}
.portal-body .button-secondary{min-height:44px;font-size:14px}
.portal-body .field-group label,.portal-body .field-label-row label{font-size:14px;color:#242a23}
.portal-body .field-label-row a,.portal-body .back-link{font-size:13px}
.portal-body .field-group input,.portal-body .resource-input{min-height:48px;height:auto;padding:11px 14px;border:1px solid #cbd3c7;border-radius:var(--ui-radius-sm);font-size:14px;background:#fff}
.portal-body .field-group input{height:48px}
.portal-body .resource-textarea{height:auto;min-height:112px}
.portal-body .field-group input:focus,.portal-body .resource-input:focus{border-color:var(--hema-green-dark);box-shadow:0 0 0 3px rgba(50,99,30,.14)}
.portal-body .field-group input::placeholder{color:#687166}
.portal-body .field-error{display:block;font-size:12px;line-height:1.5}
.portal-body .field-help{font-size:12px;line-height:1.5}
.portal-body .auth-card{border-radius:var(--ui-radius-lg);box-shadow:var(--ui-shadow)}
.portal-body .auth-card-heading h2{font-size:32px}
.portal-body .auth-access-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 12px;margin-bottom:18px}
.portal-body .auth-access-heading .eyebrow{flex:0 0 auto;margin:0;line-height:1.5}
.portal-body .auth-secondary-access{margin-left:auto;text-decoration:none}
.portal-body .auth-secondary-access:hover{text-decoration:underline}
.portal-body .login-page{padding-top:20px;padding-bottom:12px}
.portal-body .login-page .auth-layout{padding-top:24px;padding-bottom:28px}
.portal-body .login-page .auth-intro{min-height:350px}
.portal-body .login-page .auth-intro .eyebrow{margin-bottom:16px}
.portal-body .login-page .auth-intro>p:not(.eyebrow){margin-top:16px;margin-bottom:0}
.portal-body .login-page .back-to-site{position:static;align-self:flex-start;margin-top:16px}
.portal-body .login-page .auth-card{padding:28px 32px}
.portal-body .login-page .auth-card-heading{margin-bottom:20px}
.portal-body .login-page .auth-access-heading{margin-bottom:14px}
.portal-body .login-page .auth-form{gap:14px}
@media(max-width:650px){.portal-body .login-page .auth-layout{padding-top:20px;padding-bottom:20px}.portal-body .login-page .auth-intro{min-height:0;margin-bottom:22px}.portal-body .login-page .auth-card{padding:24px 21px}}
.portal-body .auth-card-heading>p:last-child,.portal-body .auth-explanation{font-size:14px;line-height:1.55}
.portal-body .auth-security,.portal-body .auth-footer{font-size:12px}
.portal-body .auth-security{color:#596256}
.portal-body .auth-footer{padding-top:15px}
.portal-body .auth-card-narrow .auth-explanation{font-size:14px}
.portal-body .remember-row{min-height:30px;font-size:14px;gap:10px}
.portal-body .custom-check{width:20px;height:20px;border-radius:4px}
.portal-body .remember-row input:checked+.custom-check:after{font-size:14px;line-height:18px}
.portal-body .field-label-row a{font-weight:500}
.portal-body .alert{border-radius:var(--ui-radius-sm);font-size:13px;padding:13px 15px}
.portal-body .alert-warning{background:#fff7e9;border:1px solid #e6cd9f;color:#71582b;line-height:1.65;overflow-wrap:anywhere}
.portal-body .password-wrap input{padding-right:52px}
.portal-body .password-toggle{width:36px;height:36px}

.portal-body .admin-topbar{position:sticky;top:0;z-index:30;height:72px;padding-inline:28px;background:rgba(255,255,255,.97);backdrop-filter:blur(12px)}
.portal-body .admin-topbar .portal-brand{font-size:18px}
.portal-body .admin-topbar .portal-brand img{height:39px}
.portal-body .admin-topbar .portal-brand i{font-size:10px;padding:5px 8px;border-radius:4px}
.portal-body .admin-user{gap:12px}
.portal-body .admin-avatar{width:38px;height:38px;font-size:15px}
.portal-body .admin-user-name{font-size:14px}
.portal-body .admin-user-name small{font-size:12px}
.portal-body .logout-button{min-height:40px;padding:0 10px;font-size:13px}
.portal-body .admin-layout{grid-template-columns:254px minmax(0,1fr);min-height:calc(100vh - 72px)}
.portal-body .admin-sidebar{position:sticky;top:72px;display:flex;flex-direction:column;gap:5px;height:calc(100vh - 72px);min-height:0;overflow-y:auto;overflow-x:hidden;padding:25px 15px 18px;background:#fff;border-right:1px solid #e1e7de}
.portal-body .sidebar-caption{margin:0 0 9px 10px;font-size:11px;letter-spacing:.1em}
.portal-body .sidebar-link{min-height:44px;margin:0;padding:0 11px;border-radius:var(--ui-radius-sm);font-size:14px;gap:11px}
.portal-body .sidebar-icon{width:20px;font-size:17px}
.portal-body .sidebar-link small{font-size:11px}
.portal-body .sidebar-link.is-active{background:#eaf2e5;color:#274e1b}
.portal-body .sidebar-group{border-radius:var(--ui-radius-sm)}
.portal-body .sidebar-group>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 11px;border-radius:var(--ui-radius-sm);color:#475044;font-size:14px;font-weight:600;cursor:pointer;list-style:none}
.portal-body .sidebar-group>summary::-webkit-details-marker{display:none}
.portal-body .sidebar-group>summary>span{color:#687463;font-size:17px;transition:transform .18s}
.portal-body .sidebar-group[open]>summary>span{transform:rotate(180deg)}
.portal-body .sidebar-group>summary:hover{background:#f4f7f1}
.portal-body .sidebar-group-links{display:grid;gap:3px;margin:0 0 8px 13px;padding-left:8px;border-left:1px solid #e0e7dc}
.portal-body .sidebar-group-links .sidebar-link{font-size:13px}
.portal-body .sidebar-bottom{position:static;margin-top:auto;padding-top:15px;border-top:1px solid #e8ece5}
.portal-body .sidebar-bottom .sidebar-caption{margin-bottom:8px}
.portal-body .sidebar-bottom a{min-height:40px;display:flex;align-items:center;padding:0 10px;border-radius:var(--ui-radius-sm);font-size:13px}
.portal-body .admin-main{width:min(1280px,100%);padding:42px clamp(24px,4vw,58px) 56px}
.portal-body .admin-welcome-row h1,.portal-body .resource-heading h1,.portal-body .resource-form-heading h1{font-size:clamp(29px,3vw,36px);line-height:1.2;letter-spacing:-.045em}
.portal-body .admin-subtitle{font-size:15px;line-height:1.6;color:#596256}
.portal-body .admin-welcome-row .eyebrow,.portal-body .resource-heading .eyebrow,.portal-body .resource-form-heading .eyebrow{font-size:11px;margin-bottom:12px}
.portal-body .admin-date{font-size:13px;color:#596256}
.portal-body .admin-next-step{gap:22px;margin-top:30px;padding:25px 28px;border-radius:var(--ui-radius-md);box-shadow:0 5px 20px rgba(27,46,20,.035)}
.portal-body .admin-next-step .eyebrow{font-size:11px}
.portal-body .admin-next-step h2{font-size:22px;line-height:1.35}
.portal-body .admin-next-step>div:last-child>p:last-child{font-size:14px;line-height:1.65}
.portal-body .admin-section-title{margin:34px 0 16px}
.portal-body .admin-section-title .eyebrow{font-size:11px}
.portal-body .admin-section-title h2{font-size:21px}
.portal-body .module-grid{gap:14px}
.portal-body .module-card{min-height:102px;gap:14px;padding:18px;border-radius:var(--ui-radius-md);box-shadow:0 3px 12px rgba(27,46,20,.025)}
.portal-body .module-icon{width:42px;height:42px;flex-basis:42px;border-radius:12px;font-size:18px}
.portal-body .module-card h3{font-size:15px;line-height:1.35}
.portal-body .module-card p{font-size:13px;line-height:1.45}
.portal-body .module-status{font-size:12px;color:#4f5d49}
.portal-body .admin-footnote{margin-top:22px;font-size:12px}
.portal-body .admin-footnote span{width:20px;height:20px;font-size:11px}
.portal-body .resource-heading{align-items:center;margin-bottom:28px}
.portal-body .resource-heading .admin-subtitle{max-width:720px}
.portal-body .resource-add{min-width:150px}
.portal-body .resource-table-wrap{border:1px solid #dde4d9;border-radius:var(--ui-radius-md);box-shadow:0 4px 18px rgba(28,45,23,.035)}
.portal-body .resource-table{border-radius:var(--ui-radius-md);overflow:hidden}
.portal-body .resource-table th{padding:15px 16px;background:#f1f5ee;color:#35432f;font-size:12px;letter-spacing:.035em}
.portal-body .resource-table td{padding:15px 16px;font-size:14px;line-height:1.45}
.portal-body .resource-table tbody tr:hover{background:#fbfcfa}
.portal-body .resource-table .appointment-past{color:#b42318}
.portal-body .resource-input[type="file"]{padding:8px;cursor:pointer}
.portal-body .resource-input[type="file"]::file-selector-button{margin-right:12px;padding:8px 12px;border:0;border-radius:8px;background:#e8f1e1;color:#315c25;font:inherit;cursor:pointer}
.portal-body .row-actions{gap:8px}
.portal-body .table-action{min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0 9px;font-size:13px}
.portal-body .table-action:hover{background:#eff5eb;text-decoration:none}
.portal-body .table-action-danger:hover{background:#fff0f0}
.portal-body .resource-empty{padding:56px 24px;border-radius:var(--ui-radius-md);box-shadow:0 4px 18px rgba(28,45,23,.035)}
.portal-body .resource-empty h2{font-size:22px}
.portal-body .resource-empty p{font-size:14px}
.portal-body .resource-form-heading{margin-bottom:22px}
.portal-body .resource-form-heading .back-link{display:inline-flex;align-items:center;min-height:36px;margin-bottom:10px}
.portal-body .resource-form{padding:30px;border:1px solid #dfe5dc;border-radius:var(--ui-radius-md);box-shadow:0 4px 18px rgba(28,45,23,.035)}
.portal-body .resource-fields{gap:23px 22px}
.portal-body .resource-form-actions{gap:12px;margin-top:28px;padding-top:20px}
.portal-body .permission-section{margin-top:30px;padding-top:25px}
.portal-body .permission-heading h2{font-size:20px}
.portal-body .permission-heading p{font-size:13px;line-height:1.6}
.portal-body .permission-list{overflow:hidden;border-radius:var(--ui-radius-sm)}
.portal-body .permission-row{min-height:50px;padding:10px 15px;font-size:13px}
.portal-body .permission-header{min-height:42px;font-size:11px}
.portal-body .permission-row input{width:18px;height:18px}
.portal-body .resource-pagination a,.portal-body .resource-pagination span[aria-current],.portal-body .resource-pagination span[aria-disabled]{min-width:40px;height:40px;border-radius:5px;font-size:13px}
.portal-body .field-wide{grid-column:1/-1}
.admin-nav-toggle{display:none}
.admin-scrim{display:block;position:fixed;inset:0;z-index:39;border:0;background:rgba(20,30,18,.45);opacity:0;pointer-events:none;transition:opacity .2s}
.admin-scrim.is-visible{opacity:1;pointer-events:auto}
@media(max-width:1000px){.portal-body .admin-main{padding-inline:28px}.portal-body .resource-form{padding:24px}.portal-body .resource-table th,.portal-body .resource-table td{padding-inline:12px}}
@media(max-width:760px){
    .portal-body .admin-topbar{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;height:66px;padding:0 15px}
    .portal-body .admin-topbar .portal-brand{font-size:16px;gap:7px}
    .portal-body .admin-topbar .portal-brand img{height:34px}
    .portal-body .admin-topbar .portal-brand i{font-size:9px}
    .admin-nav-toggle{width:42px;height:42px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid #dce4d8;border-radius:8px;background:#fff;cursor:pointer}
    .admin-nav-toggle span{width:18px;height:2px;border-radius:2px;background:#345c28}
    .portal-body .admin-user{gap:7px}
    .portal-body .admin-avatar{width:34px;height:34px}
    .portal-body .admin-user-name{display:none}
    .portal-body .admin-user form{margin-left:0}
    .portal-body .logout-button{min-height:38px;padding-inline:7px;font-size:12px}
    .portal-body .admin-layout{display:block;min-height:calc(100vh - 66px)}
    .portal-body .admin-sidebar{position:fixed;top:0;bottom:0;left:0;z-index:40;width:min(310px,86vw);height:100dvh;min-height:100dvh;padding:24px 16px;transform:translateX(-105%);transition:transform .22s ease;box-shadow:14px 0 35px rgba(25,40,20,.13)}
    .portal-body .admin-sidebar.is-open{transform:translateX(0)}
    .portal-body .admin-main{padding:30px 20px 42px}
    .portal-body .admin-welcome-row{align-items:flex-start}
    .portal-body .admin-date{margin-top:8px}
    .portal-body .resource-heading{align-items:flex-start;flex-direction:column}
    .portal-body .resource-add{align-self:flex-start;min-width:160px}
    .portal-body .resource-table-wrap{overflow:visible;border:0;background:transparent;box-shadow:none}
    .portal-body .resource-table,.portal-body .resource-table tbody{display:block;width:100%;min-width:0;overflow:visible}
    .portal-body .resource-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
    .portal-body .resource-table tbody tr{display:block;margin-bottom:14px;padding:8px 15px;background:#fff;border:1px solid #dfe5dc;border-radius:var(--ui-radius-md);box-shadow:0 3px 12px rgba(28,45,23,.035)}
    .portal-body .resource-table tbody td{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;padding:10px 0;border-bottom:1px solid #edf0eb;text-align:right;font-size:14px;overflow-wrap:anywhere}
    .portal-body .resource-table tbody td:before{content:attr(data-label);flex:0 0 42%;color:#56614f;font-size:12px;font-weight:600;text-align:left}
    .portal-body .resource-table tbody td:last-child{border-bottom:0}
    .portal-body .resource-table .row-actions{justify-content:flex-end;align-items:center}
    .portal-body .resource-table .row-actions:before{margin-right:auto}
    .portal-body .resource-pagination{overflow-x:auto;justify-content:flex-start;padding-bottom:3px}
    .portal-body .resource-form{padding:20px}
    .portal-body .resource-fields{grid-template-columns:1fr;gap:19px}
    .portal-body .field-wide{grid-column:auto}
    .portal-body .resource-form-actions{position:static;flex-wrap:wrap}
    .portal-body .resource-form-actions .button{flex:1}
    .portal-body .permission-row{grid-template-columns:minmax(0,1fr) 94px 94px;gap:8px;padding:9px 10px;font-size:12px}
    .portal-body .permission-header{font-size:10px}
    .portal-body .permission-row label{font-size:11px}
    .portal-body .auth-page{width:calc(100% - 36px)}
    .portal-body .auth-layout{padding-top:45px}
    .portal-body .auth-intro>p:not(.eyebrow){font-size:14px}
    .portal-body .auth-security{font-size:11px}
}
@media(max-width:420px){
    .portal-body .admin-topbar{grid-template-columns:40px minmax(0,1fr) auto;gap:7px;padding-inline:10px}
    .portal-body .admin-topbar .portal-brand img{height:30px}
    .portal-body .admin-topbar .portal-brand span{font-size:15px}
    .portal-body .admin-topbar .portal-brand i{display:none}
    .admin-nav-toggle{width:38px;height:38px}
    .portal-body .logout-button{font-size:11px}
    .portal-body .admin-main{padding-inline:15px}
    .portal-body .module-card{gap:10px;padding:14px}
    .portal-body .module-card p{max-width:190px}
    .portal-body .module-status{font-size:11px}
    .portal-body .permission-row{grid-template-columns:minmax(0,1fr) 78px 78px;gap:5px;padding-inline:8px;font-size:11px}
    .portal-body .permission-row label{gap:4px;font-size:10px}
    .portal-body .permission-row input{width:16px;height:16px}
}
@media(prefers-reduced-motion:reduce){.portal-body *, .portal-body *:before, .portal-body *:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* Cabecera, títulos de ventana y acciones de los catálogos. */
.portal-body .admin-topbar{gap:18px}
.portal-body .admin-topbar .admin-role-badge{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#f8e8ed;color:#75394b;font-size:11px;font-weight:700;letter-spacing:.025em}
.portal-body .admin-user{min-width:0}
.portal-body .admin-user-details{display:grid;min-width:0;gap:2px}
.portal-body .admin-user-line{display:flex;align-items:baseline;gap:10px;min-width:0}
.portal-body .admin-user-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#273025;font-size:14px;font-weight:600}
.portal-body .admin-user-company{max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#596256;font-size:12px}
.portal-body .admin-user-role{color:#6b7368;font-size:11px}
.portal-body .logout-button{width:44px;height:44px;min-height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:var(--ui-radius-sm);background:#fff;color:#40573a;cursor:pointer;transition:background .18s,color .18s}
.portal-body .logout-button:hover{background:#f2f6ef;color:#274e1b}
.portal-body .logout-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.portal-body .admin-main{padding-top:30px}
.portal-body .admin-page-title{margin:0;color:#9c5064;font-size:clamp(29px,3vw,36px);font-weight:650;line-height:1.18;letter-spacing:-.045em}
.portal-body .page-heading-copy{display:grid;gap:5px}
.portal-body .page-heading-copy .admin-subtitle{max-width:760px;margin:0;font-size:14px;line-height:1.5}
.portal-body .resource-heading{align-items:center;margin-bottom:24px}
.portal-body .resource-heading .page-heading-copy{padding-left:14px;border-left:3px solid var(--hema-pink)}
.portal-body .resource-form-heading{display:grid;gap:14px;margin-bottom:20px}
.portal-body .resource-form-heading .back-link{width:max-content;margin:0}
.portal-body .resource-form-heading .page-heading-copy{padding-left:14px;border-left:3px solid var(--hema-pink)}
.portal-body .admin-welcome-row{align-items:center}
.portal-body .admin-welcome-row .admin-subtitle{margin-top:5px}
.portal-body .admin-welcome-row .admin-date{align-self:center}
.portal-body .row-actions{gap:6px}
.portal-body .row-actions form{display:flex;align-items:center}
.portal-body .table-action.action-icon{width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border:1px solid transparent;border-radius:9px;background:transparent;color:#315c25;transition:background .16s,border-color .16s,color .16s}
.portal-body .table-action.action-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.portal-body .table-action.action-view:hover{border-color:#d7e1d1;background:#f0f5ed;color:#315c25}
.portal-body .table-action.action-edit:hover{border-color:#d7e1d1;background:#f0f5ed;color:#315c25}
.portal-body .table-action.action-delete{color:#a33b44}
.portal-body .table-action.action-delete:hover{border-color:#f0d4d6;background:#fff1f1;color:#8d2732}
.portal-body .resource-detail-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}
.portal-body .resource-detail-heading>div:first-child{display:grid;gap:12px;min-width:0}
.portal-body .resource-detail-heading .back-link{width:max-content;margin:0}
.portal-body .resource-detail-heading .page-heading-copy{padding-left:14px;border-left:3px solid var(--hema-pink)}
.portal-body .resource-detail-heading .button-secondary{gap:9px}
.portal-body .resource-detail-heading .button-secondary svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.portal-body .resource-detail-card{padding:25px;background:#fff;border:1px solid #dfe5dc;border-radius:var(--ui-radius-md);box-shadow:0 4px 18px rgba(28,45,23,.035)}
.portal-body .resource-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin:0}
.portal-body .resource-detail-item{min-width:0;padding:15px 0;border-bottom:1px solid #edf0eb}
.portal-body .resource-detail-item dt{margin-bottom:5px;color:#687166;font-size:12px;font-weight:600}
.portal-body .resource-detail-item dd{margin:0;color:#242a23;font-size:15px;line-height:1.55;overflow-wrap:anywhere;white-space:pre-wrap}
.portal-body .resource-detail-item:last-child:nth-child(odd){grid-column:1/-1}

@media(max-width:760px){
    .portal-body .admin-topbar{gap:9px}
    .portal-body .admin-user{gap:6px}
    .portal-body .admin-user-name{font-size:12px}
    .portal-body .admin-user-company{max-width:clamp(70px,18vw,140px);font-size:11px}
    .portal-body .admin-user-role{font-size:10px}
    .portal-body .admin-avatar{display:none}
    .portal-body .logout-button{width:40px;height:40px;min-height:40px}
    .portal-body .resource-details{gap:0 18px}
}

@media(max-width:650px){
    .portal-body .admin-topbar .admin-role-badge{display:none}
    .portal-body .admin-user-line{gap:6px}
    .portal-body .admin-user-company{max-width:clamp(64px,20vw,100px)}
    .portal-body .admin-main{padding-top:24px}
    .portal-body .resource-heading{align-items:flex-start;flex-direction:row}
    .portal-body .resource-heading .resource-add{align-self:center;min-width:0}
    .portal-body .resource-detail-heading{align-items:flex-start}
    .portal-body .resource-detail-heading .button-secondary{flex:0 0 auto}
    .portal-body .resource-detail-card{padding:18px}
    .portal-body .resource-details{grid-template-columns:1fr}
    .portal-body .resource-detail-item:last-child:nth-child(odd){grid-column:auto}
}

@media(max-width:430px){
    .portal-body .admin-user-line{display:grid;gap:0}
    .portal-body .admin-user-company{max-width:clamp(80px,27vw,118px)}
    .portal-body .resource-heading{gap:10px}
    .portal-body .resource-heading .resource-add{padding-inline:12px;font-size:12px}
}

/* Icon and navigation refinements */
.portal-body .sidebar-link{width:100%;min-width:0}
.portal-body .sidebar-icon{display:grid;place-items:center;flex:0 0 20px;color:#4b7d36}
.portal-body .sidebar-icon svg,.portal-body .module-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.portal-body .module-icon svg{width:22px;height:22px}
.portal-body .module-icon.icon-green{background:#e9f1e4;color:#356524}
.portal-body .module-icon.icon-pink{background:#fff0f3;color:#9c5064}
.portal-body .sidebar-group>summary{width:100%}
.portal-body .sidebar-group-links .sidebar-link{width:100%}
.portal-body .sidebar-group-links .sidebar-icon{flex-basis:20px}
.portal-body .sidebar-bottom a:hover{background:#f4f7f1;color:#254e18}
body.admin-nav-open{overflow:hidden}
@media(max-width:760px){
    .portal-body .admin-sidebar{display:flex;overflow-y:auto;overflow-x:hidden;flex-direction:column;align-items:stretch;gap:5px}
    .portal-body .sidebar-group{width:100%;flex:0 0 auto}
    .portal-body .sidebar-group-links{width:auto;margin-left:13px;overflow:visible}
    .portal-body .sidebar-group-links .sidebar-link{width:100%;min-width:0}
    .portal-body .sidebar-link{width:100%;min-width:0;min-height:44px;flex:0 0 auto}
    .portal-body .admin-scrim.is-visible{display:block}
}
@media(max-width:760px){.portal-body .admin-sidebar>.sidebar-caption,.portal-body .admin-sidebar>.sidebar-bottom{display:block}.portal-body .admin-sidebar>.sidebar-bottom{position:static;margin-top:auto}.admin-nav-toggle{width:44px;height:44px}}

/* Listados: encabezados alineados arriba y tablas compactas con acciones accesibles. */
.portal-body .resource-heading{align-items:flex-start}
.portal-body .resource-heading .resource-add{align-self:flex-start;margin-top:0}
.portal-body .resource-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#aebda5 #edf1ea}
.portal-body .resource-table-wrap::-webkit-scrollbar{height:10px}
.portal-body .resource-table-wrap::-webkit-scrollbar-track{background:#edf1ea;border-radius:8px}
.portal-body .resource-table-wrap::-webkit-scrollbar-thumb{background:#aebda5;border:2px solid #edf1ea;border-radius:8px}
.portal-body .resource-table{min-width:760px;table-layout:auto}
.portal-body .resource-table th{padding:12px 11px;white-space:nowrap}
.portal-body .resource-table td{max-width:240px;padding:11px;overflow-wrap:anywhere}
.portal-body .resource-table .actions-column,.portal-body .resource-table .row-actions{position:sticky;right:0;z-index:2;min-width:148px;background:#fff}
.portal-body .resource-table .actions-column{z-index:3;background:#f1f5ee}
.portal-body .resource-table .row-actions{box-shadow:-8px 0 12px rgba(28,45,23,.07)}
.portal-body .resource-table tbody tr:hover .row-actions{background:#fbfcfa}
.portal-body .resource-pagination-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}
.portal-body .resource-pagination-summary{margin:0;color:#596256;font-size:13px}
.portal-body .resource-pagination{margin-top:0}
@media(max-width:760px){
    .portal-body .resource-heading{align-items:flex-start}
    .portal-body .resource-heading .resource-add{align-self:flex-start}
    .portal-body .resource-table{min-width:0}
    .portal-body .resource-table .actions-column,.portal-body .resource-table .row-actions{position:static;min-width:0;box-shadow:none}
    .portal-body .resource-pagination-footer{align-items:flex-start;flex-direction:column}
}

.portal-body .checkbox-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 9px}
.portal-body .money-input-wrap{position:relative}
.portal-body .money-input-display{position:absolute;inset:0;display:flex;align-items:center;padding:0 38px 0 14px;pointer-events:none;overflow:hidden;white-space:nowrap;color:#283025;font-size:inherit}
.portal-body .money-input-wrap.has-display:not(:focus-within) input{color:transparent;caret-color:transparent}
.portal-body .money-input-wrap:focus-within .money-input-display,.portal-body .money-input-wrap:not(.has-display) .money-input-display{visibility:hidden}
.portal-body .checkbox-select-all{min-height:34px;padding-inline:12px;font-size:12px}
.portal-body .service-selection-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;padding:12px;border:1px solid #dfe5dc;border-radius:var(--ui-radius-sm);background:#fff}
.portal-body .service-selection-list label{display:flex;align-items:flex-start;gap:9px;min-width:0;color:#343a32;font-size:14px;line-height:1.4;cursor:pointer}
.portal-body .service-selection-list input{width:18px;height:18px;flex:0 0 18px;margin:1px 0 0;accent-color:var(--hema-green)}
.portal-body .portal-user-page{width:min(1000px,calc(100% - 48px));min-height:100vh;padding:28px 0;gap:36px}
.portal-body .portal-user-header{display:flex;align-items:center;justify-content:space-between;gap:20px}
.portal-body .portal-user-card{width:100%;max-width:820px;margin:auto;padding:clamp(25px,5vw,48px);border:1px solid #e1e7de;border-radius:var(--ui-radius-lg);background:#fff;box-shadow:var(--ui-shadow)}
.portal-body .portal-user-card h1{margin:0;font-size:clamp(30px,4vw,42px);font-weight:650;letter-spacing:-.05em;line-height:1.15}
.portal-body .portal-user-intro{max-width:620px;margin:12px 0 28px;color:#596256;font-size:15px;line-height:1.65}
.portal-body .portal-user-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0 0 25px;padding:14px 18px;border:1px solid #e6ebe3;border-radius:var(--ui-radius-md);background:#fafbf9}
.portal-body .portal-user-details>div{min-width:0;padding:12px 0;border-bottom:1px solid #e6ebe3}
.portal-body .portal-user-details>div:nth-last-child(-n+2){border-bottom:0}
.portal-body .portal-user-details dt{margin-bottom:4px;color:#687166;font-size:12px;font-weight:600}
.portal-body .portal-user-details dd{display:flex;flex-wrap:wrap;gap:6px;margin:0;color:#242a23;font-size:14px;overflow-wrap:anywhere}
.portal-body .portal-user-services{grid-column:1/-1}
.portal-body .portal-user-details .portal-service-tag{padding:4px 9px;border-radius:999px;background:#eaf2e5;color:#315c25;font-size:12px}
.portal-body .portal-user-card .text-link{font-size:14px}
.portal-body .login-forgot-link{display:inline-block;align-self:end;margin-top:4px;color:var(--link-blue);font-size:13px;text-align:right}
@media(max-width:650px){.portal-body .service-selection-list{grid-template-columns:1fr}.portal-body .portal-user-page{width:calc(100% - 32px)}.portal-body .portal-user-header{align-items:flex-start}.portal-body .portal-user-header .button{min-height:40px;padding-inline:12px;font-size:12px}.portal-body .portal-user-details{grid-template-columns:1fr}.portal-body .portal-user-details>div:nth-last-child(-n+2){border-bottom:1px solid #e6ebe3}.portal-body .portal-user-details>div:last-child{border-bottom:0}}

/* Mantén el contenido de cada pantalla alineado al inicio del área de trabajo. */
.portal-body .admin-layout{align-items:start}
.portal-body .admin-sidebar{align-self:stretch;max-height:calc(100vh - 72px);overflow-y:auto;padding-bottom:90px}
.portal-body .admin-main{align-self:start;margin:0 auto}
.portal-body .resource-heading,
.portal-body .resource-form-heading,
.portal-body .resource-detail-heading,
.portal-body .admin-welcome-row{align-items:flex-start}
.portal-body .resource-heading .resource-add{align-self:flex-start}
.portal-body .admin-welcome-row{margin-bottom:26px}
.portal-body .admin-welcome-row .admin-date{padding-top:8px}
.portal-body .sidebar-empty{display:block;padding:10px 11px;color:#828880;font-size:10px;line-height:1.5}
@media(max-width:650px){.portal-body .admin-sidebar{max-height:none;overflow-y:visible;padding-bottom:9px}.portal-body .admin-main{margin:0 auto}.portal-body .admin-welcome-row{display:flex;align-items:flex-start}.portal-body .admin-welcome-row .admin-date{margin-top:0;padding-top:5px}}

/* Título de cada ventana dentro de la misma franja de identidad. */
.portal-body .admin-topbar{display:grid;grid-template-columns:calc(254px + clamp(24px,4vw,58px) + max(0px,calc((100vw - 1534px)/2)) - 46px) minmax(0,1fr) auto}
.portal-body .admin-page-title-inline{flex:1 1 auto;min-width:0;margin:0;padding-left:0;border:0;color:#9c5064;font-size:clamp(19px,2vw,25px);font-weight:650;line-height:1.2;letter-spacing:-.035em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-body .admin-topbar .portal-brand{display:flex;width:100%;min-width:0;max-width:100%;align-items:center;overflow:visible;font-size:16px;line-height:1.15}
.portal-body .admin-topbar .portal-brand span{display:block;flex:1 1 auto;min-width:0;overflow:visible;overflow-wrap:normal;word-break:normal;hyphens:none;text-overflow:clip;white-space:normal;line-height:1.15;text-wrap:balance}
.portal-body .resource-actions-row{justify-content:flex-end}
@media(max-width:1000px){.portal-body .admin-topbar{grid-template-columns:252px minmax(0,1fr) auto;gap:12px;padding-inline:18px}.portal-body .admin-user{gap:8px}.portal-body .admin-user-details{max-width:32vw}.portal-body .admin-user-line{gap:6px}.portal-body .admin-user-company{max-width:140px}.portal-body .admin-avatar{display:none}.portal-body .admin-page-title-inline{padding-left:0;font-size:19px}}
@media(max-width:760px){.portal-body .admin-topbar{grid-template-columns:44px minmax(100px,1.2fr) minmax(40px,1fr) auto;gap:9px;padding-inline:14px}.portal-body .admin-topbar .portal-brand{gap:7px;font-size:14px}.portal-body .admin-topbar .portal-brand img{height:30px;max-width:34px}.portal-body .admin-page-title-inline{padding-left:0;font-size:17px}.portal-body .admin-user-details{max-width:25vw}.portal-body .admin-avatar{display:grid;width:30px;height:30px;font-size:12px}.portal-body .admin-user-name{display:block;font-size:11px}}
@media(max-width:650px){.portal-body .admin-topbar{grid-template-columns:40px minmax(88px,1.1fr) minmax(30px,.8fr) auto;gap:7px;padding-inline:10px}.portal-body .admin-topbar .portal-brand{gap:6px;font-size:12px}.portal-body .admin-topbar .portal-brand img{height:27px;max-width:30px}.portal-body .admin-page-title-inline{padding-left:0;font-size:15px}.portal-body .admin-user-details{max-width:27vw}.portal-body .admin-avatar{width:27px;height:27px}.portal-body .admin-user-name{font-size:10px}.portal-body .resource-actions-row{justify-content:flex-start}}
.portal-choice-list{display:grid;gap:9px}
.portal-choice-card{display:flex;align-items:center;gap:12px;min-height:68px;padding:11px 13px;border:1px solid #dfe5dc;border-radius:10px;background:#fff;cursor:pointer;transition:border-color .18s,background .18s,box-shadow .18s}
.portal-choice-card:has(input:checked){border-color:#78a366;background:#f4f8f1;box-shadow:0 0 0 2px rgba(76,140,43,.09)}
.portal-choice-card input{position:absolute;width:1px;height:1px;opacity:0}
.portal-choice-card input:focus-visible+.portal-choice-logo{outline:3px solid rgba(76,140,43,.2)}
.portal-choice-logo{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;overflow:hidden;border-radius:9px;background:#f4f7f1;color:#315c25;font-weight:700}
.portal-choice-logo img{width:100%;height:100%;object-fit:contain}
.portal-choice-copy{display:grid;min-width:0;gap:3px}
.portal-choice-copy strong,.portal-choice-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-choice-copy strong{color:#293227;font-size:13px}
.portal-choice-copy small{color:#757d71;font-size:11px}
.portal-choice-check{width:18px;height:18px;flex:0 0 18px;margin-left:auto;border:1px solid #bac5b5;border-radius:50%}
.portal-choice-card:has(input:checked) .portal-choice-check{border:5px solid var(--hema-green)}
.portal-choice-logout{margin-top:16px;text-align:center}

/* HEMA dashboards */
.portal-body .dashboard-welcome-card{margin-top:24px;border-radius:var(--ui-radius-md)}
.portal-body .dashboard-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}
.portal-body .dashboard-stat-card{display:flex;align-items:flex-start;gap:13px;min-width:0;padding:17px;background:#fff;border:1px solid #e1e7de;border-radius:var(--ui-radius-md);box-shadow:0 3px 12px rgba(28,45,23,.025)}
.portal-body .dashboard-stat-icon{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:12px;font-size:20px}
.portal-body .dashboard-stat-icon.icon-pink{background:#fff0f3;color:#9c5064}
.portal-body .dashboard-stat-icon.icon-green{background:#e9f1e4;color:#356524}
.portal-body .dashboard-stat-card p{margin:0;color:#596256;font-size:13px;line-height:1.4}
.portal-body .dashboard-stat-card strong{display:block;margin-top:7px;color:#20271f;font-size:28px;font-weight:700;line-height:1.1;letter-spacing:-.04em}
.portal-body .dashboard-stat-card small{display:block;margin-top:6px;color:#858d82;font-size:11px;line-height:1.45}
.portal-body .dashboard-stat-grid.platform-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.portal-body .dashboard-scope-note{margin:12px 0 0;color:#66705f;font-size:12px;line-height:1.6}
.portal-body .dashboard-chart-caption{margin:6px 0 0;color:#66705f;font-size:12px;line-height:1.5}
.portal-body .dashboard-chart-total{flex-shrink:0;padding:8px 12px;border-radius:12px;background:#edf3e8;color:#466039;text-align:right;font-size:12px}
.portal-body .dashboard-chart-total strong{display:block;margin-top:4px;font-size:22px;line-height:1.2;font-variant-numeric:tabular-nums}
.portal-body .dashboard-chart-link{flex-shrink:0;font-size:12px}
.portal-body .dashboard-average-legend{display:flex;align-items:center;gap:8px;margin:0 0 18px;color:#596256;font-size:12px}
.portal-body .dashboard-average-legend i{display:block;height:14px;border-left:2px dashed #4b5445}
.portal-body .dashboard-portal-bars{max-height:330px;overflow-y:auto;padding:3px 8px 5px 0;scrollbar-width:thin;scrollbar-color:#a8b69e #f3f6ef}
.portal-body .dashboard-portal-bars:focus-visible{outline:2px solid var(--hema-green);outline-offset:4px;border-radius:4px}
.portal-body .dashboard-portal-bars .dashboard-bar-row>div{font-size:13px;align-items:flex-start}
.portal-body .dashboard-portal-bars .dashboard-bar-row>div>span{min-width:0;overflow-wrap:anywhere}
.portal-body .dashboard-portal-bars .dashboard-bar-row strong{flex-shrink:0;font-size:13px;font-variant-numeric:tabular-nums}
.portal-body .dashboard-comparison-track{display:block;position:relative}
.portal-body .dashboard-average-marker{position:absolute;top:-3px;bottom:-3px;border-left:2px dashed #4b5445;transform:translateX(-1px)}
.portal-body .dashboard-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.portal-body .dashboard-panel{min-width:0;padding:20px;background:#fff;border:1px solid #e1e7de;border-radius:var(--ui-radius-md);box-shadow:0 3px 12px rgba(28,45,23,.025)}
.portal-body .dashboard-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}
.portal-body .dashboard-panel-heading .eyebrow{margin:0 0 4px;color:#778170;font-size:10px}
.portal-body .dashboard-panel-heading h2{margin:0;color:#222920;font-size:18px;line-height:1.3;letter-spacing:-.025em}
.portal-body .dashboard-donut-layout{display:flex;align-items:center;justify-content:center;gap:28px;min-height:176px}
.portal-body .dashboard-donut{width:150px;height:150px;flex:0 0 150px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--hema-green) 0 var(--client-share),var(--hema-pink) var(--client-share) 100%);position:relative}
.portal-body .dashboard-donut:before{content:"";position:absolute;inset:19px;border-radius:50%;background:#fff}
.portal-body .dashboard-donut>div{position:relative;z-index:1;display:grid;justify-items:center}
.portal-body .dashboard-donut strong{color:#252b23;font-size:29px;line-height:1.1}
.portal-body .dashboard-donut span{color:#737b70;font-size:12px}
.portal-body .dashboard-legend{display:grid;gap:13px;min-width:125px}
.portal-body .dashboard-legend p{display:grid;grid-template-columns:12px 1fr auto;align-items:center;gap:8px;margin:0;color:#596256;font-size:13px}
.portal-body .dashboard-legend i{width:10px;height:10px;border-radius:50%;background:var(--hema-green)}
.portal-body .dashboard-legend i.legend-employee{background:var(--hema-pink)}
.portal-body .dashboard-legend strong{color:#242a23;font-size:14px}
.portal-body .dashboard-bars{display:grid;gap:15px}
.portal-body .dashboard-bar-row>div{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px;color:#454d42;font-size:12px}
.portal-body .dashboard-bar-row strong{color:#2b3328;font-size:12px}
.portal-body .dashboard-bar-track,.portal-body .portal-service-bar-track{height:9px;display:block;overflow:hidden;border-radius:99px;background:#edf1ea}
.portal-body .dashboard-bar-track>span,.portal-body .portal-service-bar-track>span{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#4c8c2b,#a8c994)}
.portal-body .dashboard-bar-row:nth-child(even) .dashboard-bar-track>span{background:linear-gradient(90deg,#d889a0,#f3b6c7)}
.portal-body .dashboard-empty-chart{margin:35px 0;color:#7b8378;font-size:13px;text-align:center}
.portal-body .dashboard-pending-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.portal-body .dashboard-pending-card{display:flex;align-items:flex-start;gap:12px;padding:15px;background:#fbfaf7;border:1px dashed #d9d9cf;border-radius:var(--ui-radius-md)}
.portal-body .dashboard-pending-card>span{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:9px;background:#f3f0e8;color:#7d745e}
.portal-body .dashboard-pending-card p{margin:0;color:#50574d;font-size:12px}
.portal-body .dashboard-pending-card strong{display:block;margin-top:5px;color:#806e43;font-size:13px}
.portal-body .dashboard-pending-card small{display:block;margin-top:4px;color:#80877c;font-size:11px;line-height:1.45}
.portal-body .admin-section-title{margin-top:30px}

.portal-body .dashboard-page{gap:20px}
.portal-body .portal-user-header-actions{display:flex;align-items:center;gap:14px;color:#596256;font-size:13px}
.portal-body .portal-dashboard-welcome{padding:26px 30px;background:linear-gradient(115deg,#fff 42%,#f0f6ec);border:1px solid #e0e8da;border-radius:var(--ui-radius-md)}
.portal-body .portal-dashboard-welcome .eyebrow{margin:0 0 8px;color:#607357;font-size:11px}
.portal-body .portal-dashboard-welcome h1{margin:0;color:#20271f;font-size:clamp(28px,3.4vw,38px);letter-spacing:-.05em;line-height:1.15}
.portal-body .portal-dashboard-welcome>div>p:last-child{max-width:760px;margin:9px 0 0;color:#626b5e;font-size:14px;line-height:1.6}
.portal-body .portal-dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.portal-body .portal-dashboard-metrics.is-employee{grid-template-columns:repeat(3,minmax(0,1fr))}
.portal-body .portal-metric-card{display:flex;align-items:flex-start;gap:12px;min-width:0;padding:16px;background:#fff;border:1px solid #e0e6dc;border-radius:var(--ui-radius-md);box-shadow:0 3px 12px rgba(28,45,23,.025)}
.portal-body .portal-metric-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:11px;background:#e9f1e4;color:#356524;font-size:18px}
.portal-body .portal-metric-icon svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.portal-body .metric-pending .portal-metric-icon{background:#fff2e9;color:#a06c48}
.portal-body .portal-metric-card p{margin:0;color:#596256;font-size:12px;line-height:1.4}
.portal-body .portal-metric-card strong{display:block;margin-top:7px;color:#283025;font-size:18px;line-height:1.3}
.portal-body .portal-metric-card>div,.portal-body .dashboard-stat-card>div{min-width:0;flex:1 1 0}
.portal-body .portal-metric-card strong,.portal-body .dashboard-stat-card strong{min-width:0;white-space:nowrap;overflow-wrap:normal;word-break:normal;font-variant-numeric:tabular-nums}
.portal-body .metric-ready strong{font-size:27px}
.portal-body .portal-metric-card small{display:block;margin-top:5px;color:#878e84;font-size:10px;line-height:1.4}
.portal-body .portal-dashboard-metrics:has(>.metric-simple){gap:8px}
.portal-body .portal-metric-card.metric-simple{display:grid;grid-column:auto;grid-row:span 2;grid-template-columns:30px minmax(0,1fr);grid-template-rows:subgrid;column-gap:8px;row-gap:4px;padding:10px 12px}
.portal-body .portal-metric-card.metric-simple>div{display:contents}
.portal-body .portal-metric-card.metric-simple .portal-metric-icon{grid-column:1;grid-row:1;width:30px;height:30px;border-radius:9px}
.portal-body .portal-metric-card.metric-simple .portal-metric-icon svg{width:20px;height:20px}
.portal-body .portal-metric-card.metric-simple p{grid-column:2;grid-row:1;align-self:center}
.portal-body .portal-metric-card.metric-simple strong{grid-column:1/-1;grid-row:2;align-self:center;margin-top:0;text-align:center}
.portal-body .portal-metric-card.metric-simple small{grid-column:1/-1;grid-row:3;align-self:start;margin-top:0;text-align:center}
.portal-body .portal-dashboard-panels{display:grid;grid-template-columns:1.05fr .95fr;gap:14px}
.portal-body .portal-dashboard-panels.is-single{grid-template-columns:1fr}
.portal-body .portal-dashboard-panel{min-width:0;padding:21px;background:#fff;border:1px solid #e0e6dc;border-radius:var(--ui-radius-md);box-shadow:0 3px 12px rgba(28,45,23,.025)}
.portal-body .portal-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.portal-body .portal-panel-heading .eyebrow{margin:0 0 4px;color:#778170;font-size:10px}
.portal-body .portal-panel-heading h2{margin:0;color:#222920;font-size:18px;line-height:1.3;letter-spacing:-.025em}
.portal-body .portal-count-badge{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#eaf2e5;color:#315c25;font-size:14px;font-weight:700}
.portal-body .portal-service-bars{display:grid;gap:12px;margin-bottom:17px}
.portal-body .portal-service-bar-row>div{display:flex;justify-content:space-between;gap:10px;margin-bottom:5px;color:#50584c;font-size:11px}
.portal-body .portal-service-bar-row strong{color:#394533}
.portal-body .portal-service-bar-track{height:7px}
.portal-body .portal-service-list,.portal-body .portal-pending-list{display:grid;gap:0;margin:0;padding:0;list-style:none}
.portal-body .portal-service-list li,.portal-body .portal-pending-list li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #edf0eb;color:#374033;font-size:12px}
.portal-body .portal-service-list small{color:#7d8579;font-size:11px}
.portal-body .portal-data-note,.portal-body .portal-empty-note{margin:14px 0 0;padding:10px 12px;border-radius:8px;background:#f6f7f3;color:#788073;font-size:11px;line-height:1.5}
.portal-body .portal-pending-badge{padding:5px 9px;border-radius:999px;background:#fff2e9;color:#926647;font-size:10px;font-weight:600;white-space:nowrap}
.portal-body .portal-pending-panel{background:#fffefd}
.portal-body .portal-pending-list li{align-items:center}
.portal-body .portal-pending-list b{color:#92754c;font-size:10px;white-space:nowrap}
.portal-body .portal-dashboard-footer{display:flex;justify-content:space-between;gap:15px;padding-top:14px;border-top:1px solid #e4e9e1;color:#828a7f;font-size:11px}
.portal-body .portal-dashboard-footer a{color:var(--link-blue)}
.portal-body .portal-settings-logo-preview{display:flex;align-items:center;gap:12px;margin:4px 0 12px;color:#66705f;font-size:12px}
.portal-body .portal-settings-logo-preview img{width:64px;height:64px;object-fit:contain;padding:7px;border:1px solid #e1e7de;border-radius:12px;background:#fff}
.portal-body .portal-settings-form{max-width:900px}
.portal-body .portal-close-section{max-width:900px;margin-top:24px;padding:24px;border:1px solid #e7c9d2;border-radius:var(--ui-radius-md);background:#fff}
.portal-body .portal-close-section h2{margin:0 0 12px;font-size:20px;color:#713448}
.portal-body .portal-close-section p{color:#596256;font-size:14px;line-height:1.65}
.portal-body .portal-close-alternative{margin:18px 0;padding:16px;border-radius:var(--ui-radius-sm);background:#f0f6ec;color:#315c25;font-size:14px}
.portal-body .portal-close-alternative p{margin:6px 0 0}
.portal-body .portal-close-alternative a{color:var(--link-blue);text-decoration:underline}
.portal-body .portal-close-button{border:1px solid #dca5b7;background:#fff0f4;color:#713448;cursor:pointer}
.portal-body .portal-close-button:hover{background:#f8dce5;border-color:#cd849b}
.portal-body .portal-close-confirmation summary{width:max-content;list-style:none}
.portal-body .portal-close-confirmation summary::-webkit-details-marker{display:none}
.portal-body .portal-close-confirmation>form{margin-top:18px;padding-top:16px;border-top:1px solid #eadbe0}
.portal-body .portal-close-acknowledgement{display:flex;align-items:flex-start;gap:10px;color:#454d42;font-size:14px;line-height:1.6}
.portal-body .portal-close-acknowledgement input{width:18px;height:18px;flex:0 0 18px;margin-top:3px;accent-color:var(--hema-green)}
.portal-body .portal-inactive-note{color:#596256;font-size:14px;line-height:1.65}
.portal-body .portal-inactive-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:24px}
.portal-body .portal-inactive-actions form{margin:0}
.portal-body .portal-choice-copy .portal-choice-inactive{color:#b42332;font-weight:600;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.5;overflow-wrap:anywhere}
.portal-choice-card-disabled{cursor:not-allowed;background:#f8f8f6;border-color:#e2e3df}
.portal-choice-card-disabled .portal-choice-check{background:#eceee9;border-color:#d2d7cd}
.portal-choice-card-disabled .portal-choice-logo{filter:grayscale(1)}
.work-section-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;margin:26px 0 16px}
.work-section-heading h2{font-size:20px;margin:0;color:#293227}
.work-table-note{display:block;margin-top:6px;color:#70776f;font-size:13px}
.work-conditions{margin-top:8px;max-width:360px;font-size:13px;white-space:normal}
.work-conditions summary{cursor:pointer;color:var(--link-blue)}
.work-conditions dl{margin-top:12px}
.work-conditions dt{font-weight:600;margin-top:8px}
.work-conditions dd{margin:3px 0;overflow-wrap:anywhere}
.work-metrics{margin-top:20px}
.work-entry-description{min-width:180px;max-width:480px;white-space:normal!important;overflow-wrap:anywhere}
.work-review-actions{display:flex;flex-wrap:wrap;gap:8px}
.portal-body .auth-submit:disabled{cursor:not-allowed;opacity:.5}
.portal-body .pending-invitations{margin-top:28px}
.portal-body .pending-invitations h2{margin:0;font-size:20px;color:#323d2d}
.portal-body .pending-invitations>p{margin:8px 0 16px;color:#596256;font-size:13px;line-height:1.6}
.portal-body .invitation-date{display:block;margin-top:4px;font-size:12px;color:#66705f}
.portal-body .setup-wizard-card{width:100%;max-width:800px}
.portal-body .setup-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0 28px;padding:0;list-style:none}
.portal-body .setup-steps li,.portal-body .setup-steps a{display:flex;align-items:center;gap:7px;min-width:0;color:#65705e;font-size:12px;font-weight:600;line-height:1.4}
.portal-body .setup-steps a{text-decoration:none}
.portal-body .setup-steps span{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:#edf0ea;color:#65705e}
.portal-body .setup-steps .is-current{color:#315c25}
.portal-body .setup-steps .is-current span{background:var(--hema-green);color:#fff}
.portal-body .setup-steps .is-complete span{background:#e9f2e4;color:#315c25}
.portal-body .setup-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:10px}
.portal-body .setup-actions>.button-primary{margin-left:auto}
.portal-body .setup-catalog-mode{display:grid;gap:14px;margin:0;padding:18px;border:1px solid #dfe7d9;border-radius:14px}
.portal-body .setup-catalog-mode legend{padding:0 6px;color:#323d2d;font-size:14px;font-weight:600}
.portal-body .setup-catalog-mode label{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.5}
.portal-body .setup-catalog-mode input,.portal-body .setup-catalog-item input{accent-color:var(--hema-green);width:18px;height:18px;flex:0 0 18px;margin-top:2px}
.portal-body .setup-catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px 0}
.portal-body .setup-catalog-toolbar p{margin:0;color:#65705e;font-size:13px;line-height:1.5}
.portal-body .setup-catalog-toolbar button{flex-shrink:0}
.portal-body .setup-catalog-list{display:grid;gap:12px}
.portal-body .setup-catalog-item{padding:16px;border:1px solid #e2e8dd;border-radius:14px;background:#fcfdfb}
.portal-body .setup-catalog-item label{display:flex;align-items:flex-start;gap:10px;cursor:pointer;font-size:14px;line-height:1.5}
.portal-body .setup-catalog-item small{display:block;color:#66705f;font-size:12px;font-weight:400;margin-top:3px}
.portal-body .setup-service-choice{margin:14px 0 0 28px}
.portal-body .setup-note{margin:16px 0 0;padding:12px;border-radius:10px;background:#f6f7f3;color:#65705e;font-size:13px;line-height:1.6}
.portal-body .setup-empty-catalog{padding:22px;border:1px solid #e2e8dd;border-radius:14px;background:#f7faf4}
.portal-body .setup-empty-catalog p{color:#65705e;font-size:14px;line-height:1.6}
.portal-body .setup-confirm-brand{display:flex;align-items:center;gap:18px;padding:20px;border:1px solid #e2e8dd;border-radius:14px;background:#fbfcfa}
.portal-body .setup-confirm-brand img{width:80px;height:80px;object-fit:contain}
.portal-body .setup-confirm-brand strong{min-width:0;font-size:20px;overflow-wrap:anywhere}
.portal-body .setup-summary{margin:8px 0 0}
.portal-body .setup-summary>div{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:13px 0;border-bottom:1px solid #e7ece3;font-size:14px;line-height:1.5}
.portal-body .setup-summary dt{color:#65705e}
.portal-body .setup-summary dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.portal-body .setup-confirm-list{display:grid;gap:10px;padding-left:20px;font-size:14px;line-height:1.5}
.portal-body .setup-confirm-list span{display:block;color:#65705e;font-size:13px}
.portal-body .activity-template-row{min-width:0;margin:20px 0;padding:18px;border:1px solid #dfe7d9;border-radius:14px}
.portal-body .activity-template-row legend{padding:0 8px;color:#466039;font-size:14px;font-weight:600}
.portal-body .activity-template-row>.text-link{display:inline-block;margin-top:16px;color:#9c5064}
.portal-body [hidden]{display:none!important}
@media(max-width:600px){.portal-body .setup-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.portal-body .setup-catalog-toolbar{align-items:flex-start;flex-direction:column}.portal-body .setup-summary>div{grid-template-columns:1fr;gap:3px}.portal-body .setup-service-choice{margin-left:0}.portal-body .setup-actions>.button{flex:1 1 100%}}
.portal-body .portal-settings-fields{grid-template-columns:minmax(0,1fr)}
.portal-body .portal-settings-logo-field{gap:10px}
.portal-body .portal-settings-logo-editor{display:grid;grid-template-columns:minmax(190px,240px) minmax(0,1fr);align-items:center;gap:22px;padding:20px;border:1px solid #e4e9e1;border-radius:var(--ui-radius-sm);background:#fbfcfa}
.portal-body .portal-settings-logo-preview{min-height:150px;display:flex;flex-direction:column;justify-content:center;gap:12px;margin:0;padding:16px;border:1px solid #e3e8df;border-radius:var(--ui-radius-sm);background:#fff;text-align:center}
.portal-body .portal-settings-logo-preview img{width:100%;height:98px;padding:0;border:0;border-radius:0;background:transparent;object-fit:contain}
.portal-body .portal-settings-logo-preview span{font-size:12px;font-weight:600}
.portal-body .portal-settings-logo-upload{display:grid;gap:10px;min-width:0}
.portal-body .portal-settings-logo-upload .resource-input{min-height:48px;padding:10px;background:#fff}
.portal-body .portal-copyright{display:block;width:100%;padding:15px 20px 18px;border-top:1px solid #e5e9e2;color:#70786d;font-size:12px;line-height:1.5;text-align:center}
.portal-body>.auth-page{min-height:calc(100vh - 54px)}
.portal-body .portal-registry-logo{width:42px;height:42px;display:grid;place-items:center;padding:5px;border:1px solid #e3e8df;border-radius:10px;background:#fff}
.portal-body .portal-registry-logo img{width:100%;height:100%;object-fit:contain}
.portal-body .portal-registry-status{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:600}
.portal-body .portal-registry-status.is-active{background:#e9f2e4;color:#356524}
.portal-body .portal-registry-status.is-inactive{background:#f5e9e9;color:#8e4343}
@media(max-width:1100px){.portal-body .dashboard-stat-grid,.portal-body .dashboard-stat-grid.platform-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-body .portal-dashboard-metrics,.portal-body .portal-dashboard-metrics.is-employee{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.portal-body .dashboard-chart-grid,.portal-body .portal-dashboard-panels{grid-template-columns:1fr}.portal-body .dashboard-pending-grid{grid-template-columns:1fr}.portal-body .portal-user-header-actions{gap:8px;font-size:11px}.portal-body .portal-user-header-actions>span{max-width:48vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-body .portal-user-header-actions .button{min-height:38px;padding-inline:10px;font-size:11px}.portal-body .portal-dashboard-welcome{padding:21px 18px}}
@media(max-width:600px){.portal-body .portal-settings-logo-editor{grid-template-columns:1fr;gap:16px;padding:14px}.portal-body .portal-settings-logo-preview{min-height:130px}.portal-body .portal-settings-logo-preview img{height:80px}}
@media(max-width:480px){.portal-body .dashboard-stat-grid,.portal-body .dashboard-stat-grid.platform-summary-grid,.portal-body .portal-dashboard-metrics{grid-template-columns:1fr}.portal-body .dashboard-donut-layout{gap:18px;flex-wrap:wrap}.portal-body .dashboard-donut{width:126px;height:126px;flex-basis:126px}.portal-body .portal-service-list li,.portal-body .portal-pending-list li{align-items:flex-start;flex-direction:column;gap:4px}}
.service-conditional-field { display: contents; }
.service-conditional-field[hidden] { display: none !important; }
.service-advanced { margin-top: 20px; border-top: 1px solid #dfe5de; padding-top: 14px; }
.service-advanced > summary { color: #386729; font-weight: 600; cursor: pointer; padding: 8px 0; }
.service-advanced .resource-fields { margin-top: 14px; }
.service-next-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin: 18px 0 24px; }
.service-next-form .field-group { width: min(260px, 100%); }
.portal-body .resource-readonly { display:block; box-sizing:border-box; min-height:46px; padding:12px 14px; border:1px solid #e1e6dd; border-radius:12px; background:#f5f7f2; color:#414b3b; font-size:15px; line-height:1.4; overflow-wrap:break-word; }
.portal-body .service-form-conditions { margin-top:20px; }
.portal-body .service-list-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) auto; align-items:end; gap:14px; margin:0 0 20px; padding:16px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.portal-body .service-list-filter { display:grid; gap:7px; min-width:0; }
.portal-body .service-list-filter label { font-size:13px; font-weight:600; color:#414b3b; }
.portal-body .service-list-filter select { width:100%; min-width:0; height:44px; padding:0 12px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); font:400 14px var(--font); }
.portal-body .service-list-filter select:focus-visible { outline:2px solid var(--hema-green); outline-offset:2px; }
.portal-body .service-list-filter select:disabled { background:#f5f7f2; color:#414b3b; opacity:1; }
.portal-body .service-list-filter-actions { display:flex; flex-wrap:wrap; gap:8px; }
.portal-body .service-list-filter-actions .button { min-height:44px; padding:0 14px; cursor:pointer; }
@media(max-width:1250px){.portal-body .service-list-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-body .service-list-filter-actions{grid-column:1/-1}}
@media(max-width:600px){.portal-body .service-list-filters{grid-template-columns:1fr;padding:14px}}
.portal-body .service-charge-preview { display:grid; gap:6px; padding:14px 18px; border:1px solid #dfe5de; border-radius:12px; background:#f4f8f0; color:#315c25; }
.portal-body .service-charge-preview strong { font-size:14px; }
.portal-body .service-charge-preview output { font-size:22px; font-weight:700; }
.portal-body .service-charge-preview small { font-size:12px; color:#596256; line-height:1.5; }
.portal-body .service-agenda { min-width:0; padding:20px; border:1px solid #dfe5de; border-radius:16px; background:#fff; }
.portal-body .agenda-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.portal-body .agenda-heading h2 { margin:0; font-size:18px; color:#315c25; }
.portal-body .agenda-heading small { color:#626b5e; font-size:12px; }
.portal-body .agenda-inputs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:16px 0; }
.portal-body .agenda-toolbar { display:flex; gap:14px; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.portal-body .agenda-toolbar .button { min-width:40px; padding:8px 12px; }
.portal-body .agenda-day-control { display:flex; align-items:center; gap:8px; font-size:13px; }
.portal-body .agenda-day-control .resource-input { width:160px; min-height:40px; }
.portal-body .agenda-feedback { font-size:14px; color:#315c25; min-height:22px; margin:14px 0; }
.portal-body .agenda-feedback.is-error { color:#a32e46; }
.portal-body .agenda-calendar { max-height:400px; overflow:auto; border:1px solid #dfe5de; border-radius:12px; overscroll-behavior:contain; }
.portal-body .agenda-week { display:grid; grid-template-columns:60px repeat(var(--agenda-days,7),minmax(82px,1fr)); min-width:calc(60px + var(--agenda-days,7) * 82px); }
.portal-body .agenda-empty-week { grid-column:1/-1; padding:20px; margin:0; color:#596256; font-size:14px; }
.portal-body .agenda-hour-heading,.portal-body .agenda-day-heading { position:sticky; top:0; z-index:2; background:#f0f5ed; padding:10px 4px; text-align:center; font-size:12px; font-weight:600; border-bottom:1px solid #dfe5de; }
.portal-body .agenda-hour { height:28px; padding:6px 5px; box-sizing:border-box; text-align:right; font-size:11px; background:#fafcf8; color:#596256; }
.portal-body .agenda-slot { height:28px; min-height:0; border:0; border-right:1px solid #e4e9e1; border-bottom:1px solid #eef1eb; border-radius:0; background:#fff; color:#315c25; font:inherit; font-size:11px; padding:0 4px; cursor:pointer; }
.portal-body .agenda-slot:hover:not(:disabled),.portal-body .agenda-slot:focus-visible { background:#e8f1e1; outline:2px solid #386729; outline-offset:-2px; }
.portal-body .agenda-slot:disabled { cursor:not-allowed; opacity:1; }
.portal-body .agenda-slot.is-busy { background:#f8dce4; color:#8b3e55; }
.portal-body .agenda-slot.is-unavailable { background:repeating-linear-gradient(135deg,#f0f1ee,#f0f1ee 5px,#e7e9e4 5px,#e7e9e4 6px); color:#687062; }
.portal-body .agenda-day-heading.is-holiday { background:#faedf0; color:#893e53; }
.portal-body .agenda-holiday-label { display:block; font-size:11px; font-weight:500; margin-top:3px; }
.portal-body .agenda-slot.is-selected { background:#d4e9c6; color:#315c25; font-weight:600; }
@media(max-width:650px){.portal-body .service-agenda{padding:14px}.portal-body .agenda-inputs{grid-template-columns:1fr 1fr}.portal-body .agenda-inputs>.field-group:last-child{grid-column:1/-1}.portal-body .agenda-day-control{width:100%}.portal-body .agenda-calendar{max-height:340px}}

/* Navegación común: grupos desplegables y accesos auxiliares al pie. */
.portal-body .admin-sidebar{padding-bottom:20px}
.portal-body .sidebar-navigation{display:grid;gap:5px;width:100%;flex:0 0 auto}
.portal-body .sidebar-group>summary>.sidebar-group-label,
.portal-body .sidebar-group[open]>summary>.sidebar-group-label{display:flex;align-items:center;gap:11px;min-width:0;font-size:inherit;color:inherit;transform:none;transition:none}
.portal-body .sidebar-group>summary>.sidebar-group-chevron{display:grid;place-items:center;flex:0 0 18px;margin-left:8px}
.portal-body .sidebar-group-chevron svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.portal-body .sidebar-option-label{min-width:0;overflow-wrap:break-word;line-height:1.4;padding:8px 0}
.portal-body .sidebar-group-links{margin-top:3px}
.portal-body .sidebar-link[aria-current="page"] .sidebar-icon{color:#9c5064}
.portal-body .sidebar-link:focus-visible,
.portal-body .sidebar-group>summary:focus-visible{outline:2px solid var(--hema-green);outline-offset:-2px;background:#f4f7f1}
.portal-body .sidebar-bottom{display:grid;gap:4px;width:100%;flex:0 0 auto;margin-top:auto}
.portal-body .sidebar-bottom .sidebar-link{min-height:44px;padding:0 11px;color:#596451}
@media(max-width:760px){.portal-body .admin-sidebar{height:100dvh;max-height:100dvh;overflow-y:auto;padding-bottom:20px}.portal-body .sidebar-navigation .sidebar-link{font-size:14px}.portal-body .sidebar-navigation .sidebar-group-links .sidebar-link{font-size:13px}}
