:root{--navy:#0F274A;--blue:#2F80FF;--red:#EB5757;--green:#27AE60;--muted:#62748D;--border:#D6E1F0;--light:#EAF3FF;--page:#F5F7FC}
*{box-sizing:border-box}body.portal{margin:0;background:var(--page);font:15px/1.55 Arial,sans-serif;color:var(--navy)}.portal main a{color:#2069CF}.portal button,.portal input,.portal select,.portal textarea{font:inherit}.portal-topbar{background:white;border-bottom:1px solid var(--border)}.portal-header{max-width:1140px;margin:auto;padding:18px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.portal-brand{display:flex;align-items:center;gap:18px}.portal-brand img{width:170px;height:40px;object-fit:contain}.portal-brand span{font-size:13px;color:var(--muted);border-left:1px solid var(--border);padding-left:18px}.portal-main{max-width:1140px;margin:auto;padding:30px 24px 60px}.portal h1{font-size:28px;line-height:1.25;margin:0 0 8px}.portal h2{font-size:20px;margin:0 0 18px}.portal h3{font-size:17px}.portal-subtitle{color:var(--muted);margin:0 0 26px}.portal-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}.portal button,.portal-button{border:1px solid var(--border);border-radius:8px;background:var(--light);color:var(--navy);padding:10px 16px;min-height:44px;cursor:pointer;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;gap:8px}.portal button:hover{filter:brightness(.97)}.portal button.primary,.portal button[aria-current=page]{background:var(--navy);border-color:var(--navy);color:white}.portal button:disabled{opacity:.6;cursor:wait}.portal :focus-visible{outline:3px solid var(--blue);outline-offset:3px}.portal-card{background:white;border:1px solid var(--border);border-radius:12px;padding:24px;margin-bottom:20px}.portal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.portal-stat{border-top:8px solid var(--blue);margin:0}.portal-stat:nth-child(2){border-top-color:var(--green)}.portal-stat:nth-child(3){border-top-color:#F2C94C}.portal-stat strong{font-size:28px;display:block;line-height:1.4;margin:10px 0}.portal-muted{color:var(--muted);font-size:14px}.portal-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:20px}.portal-field{display:flex;flex-direction:column;gap:6px;min-width:140px;flex:1}.portal label{font-weight:600}.portal input:not([type=checkbox]),.portal select,.portal textarea{width:100%;border:1px solid #BFCFE3;border-radius:8px;padding:10px 12px;min-height:44px;background:white;color:var(--navy)}.portal textarea{resize:vertical;min-height:100px}.portal form>label{display:block;margin-top:14px}.portal-form{max-width:600px}.portal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px;flex-wrap:wrap}.portal table{width:100%;border-collapse:collapse}.portal th{background:var(--light);font-size:13px;text-align:left;padding:12px}.portal td{padding:12px;border-bottom:1px solid var(--border);vertical-align:top}.portal-table-wrap{overflow:auto}.portal-note{background:var(--light);border-radius:8px;padding:12px 16px;font-size:14px}.portal-error,.portal-admin-error{color:#A52323;background:#FFF0F0;border:1px solid #EB5757;border-radius:8px;padding:12px 16px}.portal-error:empty,.portal-admin-error:empty{display:none}.portal-success{color:#176D3B;background:#EBF8F0;padding:12px 16px;border-radius:8px}.portal-status{font-size:13px;border-radius:6px;padding:4px 9px;background:var(--light);display:inline-block}.portal-status.APPROVED{color:#176D3B;background:#EBF8F0}.portal-status.REJECTED,.portal-status.CANCELLED{color:#A52323;background:#FFF0F0}.portal-status.PENDING{color:#785400;background:#FFF5D8}.portal [hidden]{display:none!important}.portal-login{max-width:460px;margin:7vh auto;padding:24px}.portal-login .portal-card{padding:30px}.portal-login-logo{width:170px;height:40px;object-fit:contain;margin:0 0 24px}.portal-login button.primary{width:100%;margin-top:24px}.portal dialog{border:1px solid var(--border);border-radius:12px;max-width:650px;width:calc(100% - 32px);padding:24px;color:var(--navy);max-height:90vh;overflow:auto}.portal dialog::backdrop{background:#0F274A66}.portal-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.portal-dialog-heading h2{margin:0}.portal-message{border:1px solid var(--border);padding:16px;border-radius:10px;margin:12px 0;background:white}.portal-message.unread{border-left:5px solid var(--blue)}.portal-message p{white-space:pre-wrap;overflow-wrap:anywhere}.portal-envelope{width:22px;height:22px;display:inline-block;vertical-align:middle}.portal-mail-new{color:#EB5757!important;animation:portal-mail-blink 1s steps(1,end) infinite}.portal button[aria-current=page] .portal-mail-new{color:#EB5757!important}@keyframes portal-mail-blink{0%,100%{opacity:1}50%{opacity:0}}@media(prefers-reduced-motion:reduce){.portal-mail-new{animation:none}}.portal-days{display:flex;gap:8px;flex-wrap:wrap}.portal-days label{background:var(--light);padding:8px;border-radius:6px}.portal-days input{accent-color:var(--blue)}.portal-check{display:inline-flex;color:#188547;background:#EBF8F0;border-radius:50%;width:26px;height:26px;align-items:center;justify-content:center;font-size:18px;font-weight:700}.portal-access-box{border:1px solid var(--border);border-radius:8px;background:#F5F8FF;padding:14px;margin-top:18px}.portal-access-box input[type=checkbox]{width:auto;accent-color:#2F80FF}.portal-access-box .portal-seat-count{font-size:13px;margin:8px 0;color:#506683}.portal-access-box input[type=password]{width:100%}.portal-access-box[hidden]{display:none}.portal-license-summary{display:flex;gap:24px;flex-wrap:wrap;margin:16px 0}.portal-license-summary strong{font-size:24px;display:block}.portal-email-notice{background:#EAF3FF;color:#0F274A;padding:12px 16px;border-radius:8px;margin:12px 0}.portal-company-link{display:inline-flex;align-items:center;gap:6px}.portal-license-note{font-size:13px;color:#62748D}.portal-account-menu{display:flex;gap:10px;align-items:center}.portal-name{font-size:13px;color:var(--muted)}
@media(max-width:650px){.portal-header{padding:14px 16px;gap:12px}.portal-brand{gap:10px}.portal-brand img{width:140px;height:34px}.portal-brand span{padding-left:10px;font-size:12px}.portal-main{padding:24px 16px 40px}.portal h1{font-size:24px}.portal-grid{grid-template-columns:1fr}.portal-stat{padding:18px}.portal-stat strong{font-size:26px;margin:6px 0}.portal-tabs{display:grid;grid-template-columns:1fr 1fr}.portal-tabs button{padding:10px 8px;font-size:14px}.portal-card{padding:18px}.portal-toolbar>*{flex:1 1 140px}.portal-actions button{flex:1}.portal-login{margin:3vh auto;padding:16px}.portal-login .portal-card{padding:24px}.portal-name{display:none}}
@media print{.portal-topbar,.portal-tabs,.portal-toolbar,.portal-actions,button,#portalNotice{display:none!important}.portal-main{max-width:none;padding:0}.portal-card{border:0;padding:0}.portal table{font-size:10px}.portal th,.portal td{padding:5px}.portal-print-logo{display:block;width:85px;margin-bottom:12px}.portal-grid{display:none}}

.portal-company-link[hidden]{display:none!important}

.portal-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.rcp-topbar-right .portal-company-link{width:40px;height:40px;justify-content:center;border:1px solid #D6E1F0;background:#EAF3FF;border-radius:8px;color:#0F274A;flex:0 0 40px}

.portal-expired-check{color:#785400;background:#FFF5D8;display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;border-radius:50%}

/* Weekends, holidays and scheduled days off in the employee's own report. */
.portal #periodResult tr.portal-report-day-off > td{background-color:#E2E6EC}

.rcp-topbar-right .portal-company-link.active{background:var(--company-navy,#0A1D36);color:var(--company-surface,#fff);border-color:var(--company-navy,#0A1D36);box-shadow:inset 0 -3px 0 var(--company-accent,#2F80FF)}

/* Screen directions in employee dashboard and own punches. */
@media screen{.portal .portal-direction-in{color:#2F80FF;font-weight:700}.portal .portal-direction-out{color:#9B51E0;font-weight:700}}

/* Approved effective absences use the company detailed-report palette. */
@media screen{
.portal #periodResult .portal-report-absence:is([data-absence-type="ANNUAL_LEAVE"],[data-absence-type="PAID_LEAVE"],[data-absence-type="UNPAID_LEAVE"],[data-absence-type="SICK_LEAVE"],[data-absence-type="OTHER"]){color:#E67E22}
.portal #periodResult .portal-report-extra[data-status="CHECK"]{color:#F2C94C}
.portal #periodResult .portal-report-extra:is([data-status="LATE"],[data-status="LATE_AND_SHORTAGE"],[data-status="SHORTAGE"]){color:#EB5757}
.portal #periodResult .portal-report-extra[data-status="OVERTIME"]{color:#9B51E0}
}

/* Work / missing-punch labels in employee reports. */
@media screen{.portal #periodResult td[data-report-status="OK"]{color:#27AE60}.portal #periodResult td[data-report-status="NO_EVENTS"]{color:#EB5757}}

.portal #periodResult[data-own-report] table{min-width:max-content}.portal #periodResult[data-own-report] :is(th,td){white-space:nowrap;word-break:normal;overflow-wrap:normal}

/* Keep the employee's submitted comment separate from the administrator's decision. */
.portal .portal-employee-comment-label{font-weight:600;margin-top:14px}
.portal .portal-employee-comment-text{margin:6px 0 18px;background:#fff;color:var(--navy,#0F274A);white-space:pre-wrap;overflow-wrap:anywhere}
.portal .portal-decision-box{margin:20px 0;padding:18px;background:#EAF3FF;border:1px solid #BED8FC;border-radius:12px}
.portal .portal-decision-box>label{display:block;margin:14px 0 6px}
.portal .portal-decision-box>label:first-child{margin-top:0}
.portal .portal-decision-box .portal-days label{background:#fff;border:1px solid #CFE1F8}

/* Native history disclosure styled like the panel's light-blue action tiles. */
.portal .portal-request-history>summary{display:list-item;list-style:disclosure-closed inside;width:max-content;max-width:100%;min-height:44px;padding:10px 16px;border:1px solid var(--border,#D6E1F0);border-radius:8px;background:var(--light,#EAF3FF);color:var(--navy,#0F274A);font:inherit;cursor:pointer}
.portal .portal-request-history[open]>summary{list-style-type:disclosure-open}
.portal .portal-request-history>summary:hover{background:#DCECFF}
.portal .portal-request-history-content{clear:both;padding-top:12px}
.portal .portal-request-controls{display:flow-root;margin-top:22px}
.portal .portal-request-controls>#decisionSave{float:right;margin-left:12px;min-height:44px;padding:10px 16px;font:inherit}
@media(max-width:540px){
 .portal .portal-request-controls>#decisionSave{width:calc(50% - 6px);min-height:66px;padding:8px;font-size:14px}
 .portal .portal-request-controls .portal-request-history>summary{width:calc(50% - 6px);min-height:66px;padding:10px 8px;font-size:14px}
}

/* Own report identification: the same four symbols and brand colours as the company register. */
.portal .report-identification-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;font-size:12px;color:#6B7A90;margin:0 0 14px}
.portal .report-identification-legend>span,.portal .report-source-icons{display:inline-flex;align-items:center;gap:5px}
.portal .report-source-icon{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}
.portal .report-source-icon svg{display:block;width:23px;height:23px;flex-shrink:0}
.portal .source-card{color:#2F80FF}.portal .source-mobile{color:#9B51E0}.portal .source-fingerprint{color:#F2C94C}.portal .source-manual,.portal .report-source-unknown{color:#6B7A90}
.portal #periodResult .report-source-cell{white-space:nowrap}

body.portal:not([data-admin="true"]) #messageBody{height:50px;min-height:50px}
