:root{font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#202b38;background:#f4f6f9}*{box-sizing:border-box}body{margin:0}.top{background:#12263c;color:#fff;padding:20px 4%}.top-inner{max-width:1450px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:22px}.brand img{width:180px;max-width:30vw;height:auto;background:white;border-radius:5px;padding:5px}.brand small{color:#bcd1e6;font-size:12px}.brand h1{font-size:25px;margin:10px 0 0}.account{display:flex;gap:15px;align-items:center;font-size:13px}.outline{background:transparent;color:white;border:1px solid #aec2d8;border-radius:7px;padding:9px 14px;cursor:pointer}.shell{max-width:1500px;margin:auto;display:grid;grid-template-columns:210px minmax(0,1fr)}.sidebar{padding:26px 14px;border-right:1px solid #e0e5ed;min-height:calc(100vh - 120px)}.sidebar a{display:block;text-decoration:none;color:#253c53;padding:13px 14px;border-radius:8px;font-weight:600}.sidebar a:hover{background:#e5ecf4}.nav-note{color:#718195;font-size:12px;padding:20px 14px}.content{padding:28px;min-width:0}.heading{display:flex;justify-content:space-between}.heading h2,h2{margin:0 0 8px}.heading p,p{color:#526173;line-height:1.5}.notice{padding:16px;background:#fff1d9;border-radius:9px;margin:18px 0}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 28px}.stats .card strong{font-size:22px;display:block}.stats .card span{font-size:13px;color:#607087}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:15px}.card{background:#fff;border:1px solid #e0e5ed;border-radius:12px;padding:19px;box-shadow:0 2px 8px #14243b0a;margin-bottom:15px}.card h3{margin:0 0 10px;font-size:17px}.card p{font-size:14px;margin:0 0 10px}.pill{display:inline-block;background:#eef2f7;color:#607087;border-radius:10px;padding:4px 9px;font-size:11px}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;align-items:end}label{display:block;font-weight:600;font-size:13px}input,select{width:100%;padding:11px;margin-top:7px;border:1px solid #cbd4df;border-radius:7px;font:inherit;background:white}button{font:inherit;cursor:pointer}.primary{background:#173b5c;color:white;border:0;border-radius:7px;padding:12px 18px;font-weight:600}.primary:hover{background:#25577d}.secondary{background:#f2f5f9;border:1px solid #cbd4df;border-radius:7px;padding:8px 11px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}th,td{padding:12px;border-bottom:1px solid #e0e5ed;white-space:nowrap}th{color:#536579;background:#f8fafc}.login-wrap{max-width:520px;margin:45px auto;padding:0 18px}.login-card{background:#fff;border:1px solid #e0e5ed;border-radius:14px;padding:32px;box-shadow:0 4px 18px #14243b10}.login-card .login-logo{display:block;width:280px;max-width:100%;margin:0 auto 28px}.login-card h2{text-align:center}.login-card>p{text-align:center}.login-card label{margin:20px 0}.login-card .primary{width:100%}.muted{font-size:12px}.alert{padding:12px;border-radius:8px;background:#e9f5ea;margin-bottom:15px}.alert.error{background:#ffe7e7}@media(max-width:760px){.top-inner,.brand,.account{flex-wrap:wrap}.shell{display:block}.sidebar{min-height:0;display:flex;flex-wrap:wrap;border-right:0;border-bottom:1px solid #e0e5ed;padding:8px}.sidebar a{padding:9px}.nav-note{display:none}.content{padding:18px}.stats{grid-template-columns:1fr}.brand h1{font-size:20px}}

/* Employee login/access forms: scoped to avoid changing other portal forms. */
.employee-login-access .access-fields{display:grid;gap:18px;margin-top:18px;max-width:820px}
.employee-login-access .access-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:0;margin:0;padding:0;min-width:0}
.employee-login-access .access-options legend{font-size:13px;font-weight:600;margin-bottom:10px;padding:0}
.employee-login-access .access-option{display:flex;align-items:center;gap:10px;padding:12px;background:#f8fafc;border:1px solid #e0e5ed;border-radius:8px;line-height:1.4}
.employee-login-access .access-option input{width:18px;height:18px;flex:0 0 18px;margin:0;padding:0}
.employee-login-access .access-help{font-size:13px;line-height:1.6;margin:0;max-width:75ch}
.employee-login-access .access-actions{display:flex;justify-content:flex-start}
.employee-login-access .create-employee-login{border-top:1px solid #e0e5ed;margin-top:24px;padding-top:20px}
.employee-login-access .create-employee-login summary{cursor:pointer;font-weight:600;padding:4px 0}
.employee-login-access .create-employee-login[open] summary{margin-bottom:12px}
.employee-login-access .login-create-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px;max-width:820px;align-items:start}
.employee-login-access .access-full{grid-column:1/-1}
@media(max-width:660px){.employee-login-access .access-options,.employee-login-access .login-create-fields{grid-template-columns:minmax(0,1fr)}}

.employee-edit-heading{align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.employee-edit-heading a.secondary,.employee-edit-actions a.secondary{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;white-space:nowrap;text-decoration:none;color:#253c53;line-height:1.4}
.employee-edit-heading a.secondary{padding:11px 14px}
.employee-delete-section{margin-top:28px;border-color:#e7b0b0}
.employee-create-panel summary{display:inline-flex;align-items:center;list-style:none;cursor:pointer;width:fit-content}
.employee-create-panel summary::-webkit-details-marker{display:none}
.employee-create-panel:not([open]){padding:0;background:transparent;border:0;box-shadow:none}
.employee-create-panel[open] summary{margin-bottom:18px}
.employee-create-actions{grid-column:1/-1;display:flex;gap:12px;flex-wrap:wrap;align-items:center}

a.secondary{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;gap:8px;color:#253c53;text-decoration:none;line-height:1.4;vertical-align:middle}
a.secondary:hover{background:#e5ecf4;color:#173b5c}
.employee-list-heading{align-items:flex-start;gap:16px;flex-wrap:wrap}

.employee-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:18px;align-items:start}
.employee-form-full{grid-column:1/-1}
.employee-profile-grid .employee-edit-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}
.employee-pay-items{border:1px solid #e0e5ed;border-radius:8px;padding:16px;margin:0;min-width:0}
.pay-item-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:18px 0}
.pay-item-check{display:flex;gap:9px;align-items:center;font-weight:400;line-height:1.5}
.pay-item-check input{width:17px;height:17px;flex:0 0 17px;margin:0;padding:0}
@media(max-width:760px){.employee-profile-grid{grid-template-columns:minmax(0,1fr)}}

.rule-settings-table{table-layout:fixed}.rule-settings-table th,.rule-settings-table td{white-space:normal;overflow-wrap:anywhere}.rule-settings-table th{width:58%}
.timesheet-generation-form{display:grid;gap:16px;justify-items:start}.timesheet-generation-form label{width:100%;line-height:1.5}.timesheet-generation-form .primary{margin:0;line-height:1.4}.timesheet-generation-card>.timesheet-generation-note{margin:16px 0 0;line-height:1.6}
.rule-page form:not(.rule-shift-preview){display:grid;gap:16px;justify-items:start}.rule-page form>label,.rule-page .rule-editor{width:100%}.rule-page form>button{margin:0;line-height:1.4}.rule-page textarea{display:block;width:100%;margin-top:7px;padding:11px;border:1px solid #cbd4df;border-radius:7px;font:inherit}.rule-editor{display:grid;gap:14px}.rule-editor-section{min-width:0;margin:0;padding:14px;border:1px solid #e0e5ed;border-radius:8px}.rule-editor-section legend,.rule-editor-section summary{font-size:14px;font-weight:600}.rule-editor-section summary{cursor:pointer}.rule-editor-section[open] summary{margin-bottom:14px}.rule-field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;align-items:start}.rule-field-grid label{display:grid;grid-template-rows:minmax(36px,auto) 44px minmax(18px,auto);line-height:1.4}.rule-field-grid input,.rule-field-grid select{margin-top:0;height:44px;min-width:0}.rule-editor [hidden]{display:none!important}.rounding-example{display:block;padding:12px;margin:12px 0;background:#edf4fb;border-radius:7px;font-size:14px;line-height:1.6}.rule-editor-help summary{cursor:pointer;font-size:13px}.rule-editor-help p{margin-top:10px}.rule-shift-preview{align-items:start;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.rule-shift-preview label{display:grid;grid-template-rows:36px 44px minmax(20px,auto);line-height:1.4}.rule-shift-preview input,.rule-shift-preview select{margin:0;height:44px;min-width:0}.rule-shift-preview button{align-self:start;margin-top:36px;min-height:44px;line-height:1.3}.rule-page form>label{line-height:1.4}@media(max-width:520px){.rule-field-grid,.rule-shift-preview{grid-template-columns:minmax(0,1fr)}.rule-shift-preview button{margin-top:0}.rule-page form>button{max-width:100%}}
.rule-page form{margin-bottom:20px}.rule-page .card>form:last-child{margin-bottom:0}.rule-page form>button:not(.primary):not(.secondary){background:#f2f5f9;color:#253c53;border:1px solid #cbd4df;border-radius:7px;padding:10px 14px}.rule-shift-preview button{grid-column:1/-1;justify-self:start;margin-top:0}
.payroll-prep-page form:not([method=get]){display:grid;gap:16px;margin-top:16px;justify-items:start}.payroll-prep-page form>label,.payroll-prep-page form>.form-grid{width:100%}.payroll-prep-page .prep-check{display:flex;align-items:flex-start;gap:10px;font-weight:400;line-height:1.5}.payroll-prep-page .prep-check input{width:18px;height:18px;margin:2px 0 0;flex:0 0 18px}.prep-actions{display:flex;flex-wrap:wrap;gap:12px}.payroll-prep-page summary{cursor:pointer}.payroll-prep-page form>button{margin:0}
.leave-page form:not(.form-grid){display:grid;gap:16px;justify-items:start;margin-top:16px}.leave-page form>label{width:100%}.leave-page form>button{margin:0}.leave-page form:not(.form-grid)>button{padding:10px 14px;border:1px solid #cbd4df;border-radius:7px;background:#f2f5f9;color:#253c53}
.myob-file-page form{display:grid;gap:16px;justify-items:start}.myob-file-page form>label{width:100%}.myob-file-page form>button{margin:0}

.locked-correction-page form{display:grid;gap:16px;justify-items:start;margin-top:16px}.locked-correction-page form>label,.locked-correction-page form>.form-grid,.locked-correction-page form>fieldset{width:100%}.locked-correction-page form>button{margin:0}.locked-correction-page fieldset{min-width:0;border:1px solid #cbd4df;border-radius:8px;padding:16px}.locked-correction-page .correction-check{display:flex;align-items:flex-start;gap:10px;font-weight:400;line-height:1.5}.locked-correction-page .correction-check input{width:18px;height:18px;flex:0 0 18px;margin:2px 0 0}.locked-correction-page input[readonly]{background:#f2f5f9}

.locked-correction-page .rule-settings-table th{width:auto}.locked-correction-page .rule-settings-table th:first-child{width:52%}


.calendar-page{min-width:0}.calendar-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.calendar-navigation{display:flex;gap:8px;flex-wrap:wrap}.calendar-filters{display:grid;gap:18px}.calendar-filter-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;align-items:end}.calendar-filter-fields label{min-width:0}.calendar-filter-fields select,.calendar-filter-fields input{min-width:0}.calendar-scope{font-size:14px;margin:0;align-self:center}.calendar-types{display:flex;gap:10px;flex-wrap:wrap;border:0;margin:0;padding:0;min-width:0}.calendar-types legend{font-size:13px;margin-bottom:10px;font-weight:600}.calendar-check{display:flex;align-items:center;gap:8px;line-height:1.5;font-weight:400}.calendar-check input{width:17px;height:17px;flex:0 0 17px;margin:0;padding:0}.calendar-types .calendar-check{padding:7px 10px;border-radius:6px;border:1px solid #cbd4df}.calendar-filter-options{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.calendar-filter-options button{margin-left:auto}.calendar-note{font-size:13px}.calendar-month-title{margin:22px 0 14px}.calendar-weekdays,.calendar-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekdays{font-size:13px;font-weight:600;text-align:center;background:#e8eef5;padding:10px 0;border-radius:8px 8px 0 0}.calendar-month-grid{gap:1px;background:#cbd4df;border:1px solid #cbd4df;border-radius:0 0 8px 8px;overflow:hidden}.calendar-day{min-width:0;min-height:155px;padding:7px;background:#fff}.calendar-day h4{margin:0 0 7px}.calendar-outside{background:#f2f5f9}.calendar-outside .calendar-day-number{color:#607087}.calendar-day-number{border:0;border-radius:50%;width:34px;height:34px;background:transparent;font-weight:600;color:#253c53}.calendar-today .calendar-day-number{background:#173b5c;color:white}.calendar-day-number[aria-pressed=true]{outline:2px solid #497da8;outline-offset:2px}.calendar-cell-events,.calendar-agenda-events{list-style:none;margin:0;padding:0}.calendar-cell-events li{margin:4px 0}.calendar-event{display:block;width:100%;padding:6px;border:1px solid transparent;border-left:3px solid #526d87;border-radius:5px;min-width:0;text-align:left}.calendar-event-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:11px;font-weight:600;line-height:1.4}.calendar-event-status{display:block;font-size:10px;line-height:1.4;margin-top:3px;overflow-wrap:anywhere}.type-attendance{background:#edf4fc;color:#174b7b}.type-leave{background:#ebf6ef;color:#225b39}.type-holiday{background:#fff2da;color:#704b0a}.type-callout{background:#f2edfb;color:#5d3b86}.type-correction{background:#fceeed;color:#843c32}.calendar-pending{border:1px dashed currentColor}.calendar-rejected{background:#f1f2f4;color:#59616c}.calendar-more{border:0;background:transparent;padding:5px 2px;font-size:12px;color:#174b7b;text-align:left}.calendar-details{margin-top:20px;scroll-margin-top:16px}.calendar-details>button{margin:4px 0 14px}.calendar-agenda-item{border-radius:7px;padding:12px;border-left:4px solid currentColor;margin-top:12px;overflow-wrap:anywhere}.calendar-agenda-item h4{font-size:14px;margin:0 0 8px}.calendar-agenda-item p{font-size:13px;margin:5px 0;color:inherit}.calendar-page button:focus-visible,.calendar-page a:focus-visible{outline:3px solid var(--ui-focus,#249a73);outline-offset:2px}
@media(max-width:760px){.calendar-day{min-height:105px;padding:4px}.calendar-day-number{width:32px;height:36px}.calendar-cell-events{display:flex;gap:3px;flex-wrap:wrap}.calendar-cell-events li{margin:3px 0}.calendar-cell-events .calendar-event{width:10px;height:10px;padding:0;border:1px solid currentColor;border-radius:50%}.calendar-event-title,.calendar-event-status{display:none}.calendar-event.type-attendance{background:#3576ad}.calendar-event.type-leave{background:#418c60}.calendar-event.type-holiday{background:#b78321}.calendar-event.type-callout{background:#8861b0}.calendar-event.type-correction{background:#b7685f}.calendar-more{font-size:10px;line-height:1.3;padding:3px 0;overflow-wrap:anywhere;max-width:100%}.calendar-filter-options button{margin-left:0}.calendar-filter-fields{grid-template-columns:minmax(0,1fr)}.calendar-navigation a{padding:8px}.calendar-check{font-size:13px}}

.notification-form{display:grid;gap:18px}.notification-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.notification-grid label{display:grid;gap:6px;min-width:0}.notification-form details{border:1px solid #ccd7e5;border-radius:8px;padding:14px}.notification-check{display:flex;align-items:center;gap:8px}.notification-check input{width:auto}.notification-actions{padding-top:8px}.notification-recipient{display:flex;gap:10px;align-items:center}.notification-recipient input{min-width:180px}.notification-recipient button{flex-shrink:0}.notification-grid input,.notification-grid select{width:100%;min-width:0}@media(max-width:700px){.notification-grid{grid-template-columns:1fr}.notification-recipient{flex-wrap:wrap}}

.readiness-check{padding:18px 0;border-bottom:1px solid #dce3ee}.readiness-check summary{cursor:pointer;line-height:1.6}.readiness-check form{margin-top:18px}

.operations-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}.operations-table td:last-child{min-width:220px}.operations-table form{margin-bottom:12px}.operations-table details summary{line-height:1.6}

.microsoft-mail-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:18px 0}.microsoft-sign-in{background:white;color:#222;border:1px solid #737373;border-radius:5px;font-size:15px;font-weight:600;min-height:44px;padding:10px 18px}.microsoft-sign-in:hover{background:#f1f4f8}.microsoft-sign-in:disabled{opacity:.5;cursor:not-allowed}.microsoft-callback{overflow-wrap:anywhere}.microsoft-mail-card details{margin:18px 0}.microsoft-mail-card summary{cursor:pointer}
