body{padding-top:42px}#live-status{position:fixed;top:0;left:0;right:0;z-index:10000;min-height:42px;background:#183b34;color:#fff;padding:8px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;font:13px system-ui}#live-status button{background:transparent;border:1px solid #a8c4b0;color:white;border-radius:6px;padding:4px 10px;cursor:pointer}#live-status[data-mode=error]{background:#a91a2a}#live-status[data-mode=pending]{background:#885600}.auth-page{min-height:calc(100vh - 42px);display:grid;place-items:center;padding:24px;background:#eef4f2}.auth-card{width:min(100%,440px);background:white;border:1px solid #d8e3df;padding:32px;border-radius:18px;box-shadow:0 16px 50px #173e3310}.auth-card h1{margin:10px 0;font-size:30px}.auth-card p{line-height:1.6;color:#526c63}.auth-card label{display:block;margin:18px 0 6px;font-weight:600}.auth-card input{width:100%;padding:12px;border:1px solid #a5b7af;border-radius:7px;font:inherit}.auth-card button{margin-top:18px}.auth-card .primary{width:100%;justify-content:center}.auth-card .auth-links{display:flex;gap:12px;flex-wrap:wrap}.auth-error{color:#a91a2a!important}.live-mask{position:fixed;inset:42px 0 0;z-index:9999;background:#ffffff80;display:grid;place-items:center;backdrop-filter:blur(2px)}.live-mask>div{background:white;border:1px solid #ccd9d3;padding:24px;border-radius:12px;max-width:480px}.phone-live{max-width:760px;margin:auto;padding:20px}.phone-live h1{font-size:25px}.phone-live .visit-card{background:white;border:1px solid #d4e0d9;padding:18px;margin:14px 0;border-radius:12px}.phone-live .visit-card p{line-height:1.5}.phone-live details{margin:12px 0}.phone-live label{display:block;font-weight:600;margin:14px 0 6px}.phone-live input,.phone-live textarea{width:100%;padding:12px;border:1px solid #a5b7af;border-radius:6px;font:inherit}.phone-live canvas{border:2px solid #617f71;width:100%;height:180px;background:white;touch-action:none;border-radius:6px}.phone-live .pending{border-left:5px solid #d99a00}.phone-live .sent{border-left:5px solid #0c8546}.phone-live .error{color:#a91a2a}.phone-live .button-row{flex-wrap:wrap}.profile-select:disabled{opacity:1;color:#183b34}.live-accounts{display:grid;gap:14px}.live-accounts article{border:1px solid #d2ddd8;padding:12px;border-radius:8px}

@media(min-width:761px){.sidebar{top:42px}}

.phone-live.team-mode{max-width:none}.team-read{margin-top:18px}.team-read-scroll{overflow:auto;border:1px solid #cbd8d0;background:white;border-radius:8px}.team-read-grid{min-width:calc(150px + var(--team-days)*26px)}.team-read-head,.team-read-row{display:flex;border-bottom:1px solid #d9e2dd}.team-read-head{height:44px;background:#eef4f0;font-size:10px}.team-read-person{width:150px;min-width:150px;position:sticky;left:0;z-index:2;background:#f4f8f5;padding:6px 8px;font-size:11px;display:flex;flex-direction:column;justify-content:center;border-right:1px solid #cbd8d0}.team-read-person small{color:#5d7469}.team-read-days{display:flex;position:relative;flex:1}.team-read-days>div:not(.team-read-booking){flex:1;border-right:1px solid #e3e9e6;text-align:center}.team-read-days>.weekend{background:#e4f0f8}.team-read-booking{position:absolute;height:20px;overflow:hidden;border-radius:3px;border:1px solid #fff;background:#d20c22;color:white;font-size:10px;font-weight:600}.team-read-booking i{position:absolute;top:0;bottom:0}.team-read-booking span{position:relative;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:2px 4px;z-index:1;text-shadow:0 1px 2px #0008}.team-read-booking.leave{background:#d6dbde;color:#24362e}.team-read-booking.leave span{text-shadow:none}

/* Keep staff navigation clear of the fixed server-status bar. */
@media(min-width:701px){.schedule-wide .sidebar{top:42px}.schedule-wide.compact-rows,.schedule-wide.compact-rows .main{height:calc(100dvh - 42px)}}
@media(max-width:700px){.schedule-wide.compact-rows{height:calc(100dvh - 42px)}.schedule-wide.compact-rows .main{height:calc(100dvh - 90px)}}

/* Paint Inspection Ltd identity: official logo, website red, charcoal and silver. */
:root{--pil-red:#c62127;--pil-red-dark:#a51a20;--pil-charcoal:#202124;--pil-silver:#aeb4ba;--ink:#22252a;--muted:#6c737b;--line:#dfe2e6;--bg:#f4f5f7;--green:#b72027;--green-light:#fff0f1}
body{background:var(--bg)}h1,h2,h3{color:#22252a}.sidebar,.schedule-wide .sidebar{background:var(--pil-charcoal);border-bottom:3px solid var(--pil-red)}.brand{flex-direction:column;align-items:flex-start;gap:13px;padding:0 8px 25px}.brand-logo{display:block;width:166px;height:auto;background:white;border-radius:5px;padding:7px;object-fit:contain}.brand-name{color:white;letter-spacing:-.2px}.brand-small{color:#bcc0c5}.nav-label,.side-note{color:#aeb4ba}.nav-item{color:#e0e2e6}.nav-item.active{background:#fff;color:#a71920;box-shadow:inset 3px 0 0 var(--pil-red)}.nav-item:hover:not(.active){background:#ffffff12}.nav-badge{background:#ffe8ea;color:#a31b22}.side-note strong{color:white}.schedule-wide .brand{flex-direction:row;align-items:center;padding:0;gap:12px}.schedule-wide .brand-logo{width:106px;padding:3px 5px;max-height:39px}.schedule-wide .brand-name{font-size:14px}.schedule-wide .sidebar{gap:20px}.primary{background:var(--pil-red);border-color:var(--pil-red);color:white}.primary:hover{background:var(--pil-red-dark);border-color:var(--pil-red-dark)}.secondary:hover{background:#f6f6f8;border-color:#bcc1c8}.text-button,a{color:#a51a20}.notification-dot{background:var(--pil-red)}.profile-select{background:#f1f2f4;color:#34373c!important}.prototype-banner{background:#f2f3f5;border-color:#e0e2e6;color:#666e76}.prototype-banner b{color:#a61c22}.segmented{background:#f3f4f6}.range-switch button.selected,.row-view-switch button.selected,.tabs button.active{background:#202124;color:white}.day-head.today .day-number{background:#202124}.avatar{background:#edf0f3;color:#41484f}.topbar{box-shadow:0 1px 0 #20212404}.panel,.stat{border-color:#dfe2e6}.panel-heading{background:#fcfcfd}.stat-icon{background:#fff0f1;color:#aa2026}.screen-note{color:#69717a}
#live-status{background:#202124}#live-status button{border-color:#73777d;background:#ffffff08}#live-status button:hover{background:#ffffff20}.auth-page{background:radial-gradient(ellipse at 0 0,#f5e7e9 0,transparent 55%),#f1f3f5}.auth-card{border:1px solid #dfe2e6;border-top:4px solid #c62127;border-radius:16px;box-shadow:0 18px 60px #20212412}.auth-logo{display:block;width:min(100%,250px);height:auto;margin:0 auto 25px}.auth-product{font-size:11px;font-weight:800;letter-spacing:2px;color:#b41e25;margin-bottom:12px}.auth-card h1{font-size:27px;color:#202124;letter-spacing:-.7px}.auth-card p{color:#656c75}.auth-card input:focus{outline-color:#c62127}.auth-card .auth-links button{margin-top:10px}.auth-error{color:#ab1921!important}.phone-live{background:#f4f5f7}.phone-brand{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 0 15px;margin-bottom:22px;border-bottom:3px solid #c62127}.phone-brand img{width:156px;max-width:58%;height:auto}.phone-brand span{font-size:11px;text-transform:uppercase;letter-spacing:1px;font-weight:800;color:#5b6169}.phone-live h1{font-size:27px}.phone-live .visit-card{border-color:#dce0e5;box-shadow:0 3px 12px #20212404}.phone-live input,.phone-live textarea{border-color:#bdc3cb}.phone-live canvas{border-color:#727880}.phone-calendar-day{background:#f1f3f5;color:#252a30}.phone-calendar-day.today{border-color:#333941}.phone-calendar-day.selected{background:#202124;color:white;outline-color:#202124}.phone-calendar-nav h2{color:#262a30}.phone-calendar-jump input{border-color:#cbd0d7}.phone-inbox{border-color:#dce0e5;background:#fff}.inspector-preview{background:#eceef1}.preview-phone-frame{border-color:#272a2f;box-shadow:0 18px 50px #20212425;background:#f4f5f7}.preview-phone-top{background:#202124;border-bottom:2px solid #c62127}.preview-toolbar p,.preview-notice{color:#626b75}.preview-toolbar select{border-color:#c4c9d0}.preview-phone-frame .phone-brand{margin-bottom:16px}.push-settings{background:#f6f6f8;border-color:#dce0e5}.notification-row.unread{border-left-color:#c62127;background:#fff8f8}.notification-row time{color:#69717a}.live-mask>div{border-color:#dce0e5}.team-read-person{background:#f1f2f4}
@media(max-width:700px){.phone-brand{gap:10px}.phone-brand img{width:150px}.auth-card{padding:25px}.schedule-wide .brand-logo{width:90px}.notification-centre-body{padding:16px}}
.date-slide-control input[type=range]{accent-color:#c62127}.callout,.selected-job{background:#f4f5f7;border-color:#dfe2e6}.job-result:hover,.job-result:focus-visible{background:#fff5f5;border-color:#c62127}.calendar-toolbar .week-title{color:#282c31}
/* Installation is available before sign-in and in both staff workspaces. */
body{padding-top:var(--live-bar-height,42px)}#live-status>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.live-status-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}#live-status [data-install-app]{background:#b72027;border-color:#d8474d;font-weight:700}.auth-install-button{width:100%;margin-top:22px!important}.phone-install-button{margin:4px 0 12px;width:100%;min-height:44px}.install-app-dialog{width:min(560px,calc(100vw - 24px));max-height:90dvh;border:1px solid #d9dde3;border-radius:16px;padding:0;color:#22252a;box-shadow:0 24px 90px #17191d40}.install-app-dialog::backdrop{background:#20212480;backdrop-filter:blur(3px)}.install-app-content{padding:25px}.install-app-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:23px}.install-app-head img{width:170px;max-width:58%;height:auto}.install-app-eyebrow{font-size:10px;font-weight:800;letter-spacing:1.7px;color:#b72027}.install-app-content h2{font-size:25px;margin:7px 0 9px}.install-app-content p{color:#626a74;font-size:13px}.install-native{width:100%;margin:15px 0 6px;min-height:44px}.install-platforms{display:flex;gap:6px;margin:19px 0 14px;flex-wrap:wrap}.install-platforms button{flex:1;padding:10px;white-space:nowrap;min-height:42px}.install-platforms .selected{background:#202124;color:white;border-color:#202124}.install-app-steps{padding-left:22px;margin:12px 0 20px}.install-app-steps li{padding:6px 0 6px 4px;line-height:1.65;font-size:13px}.install-app-steps li::marker{color:#b72027;font-weight:800}.install-app-link{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;border:1px solid #dfe2e6;background:#f5f6f8;border-radius:9px;padding:12px}.install-app-link span{font-size:11px;color:#6c737b}.install-app-link strong{font-size:13px}.install-app-link button{margin-left:auto}.install-app-note{font-size:12px!important;margin-top:16px!important}.install-app-content #install-app-feedback{font-weight:600;color:#8b1a21}
@media(min-width:701px){.schedule-wide .sidebar{top:var(--live-bar-height,42px)}}
@media(min-width:761px){.sidebar{top:var(--live-bar-height,42px)}}
@media(max-width:600px){#live-status{padding:7px 12px;gap:5px;flex-direction:column;align-items:stretch}#live-status>span:first-child{font-size:11px}.live-status-actions{flex-wrap:wrap;gap:5px}#live-status button{font-size:11px;padding:4px 7px}.install-app-content{padding:19px}.install-app-content h2{font-size:23px}.install-platforms button{font-size:11px}.install-app-head img{width:150px}}
/* Phone diary: readable bookings rather than empty compressed colour blocks. */
@media(max-width:700px){
 .schedule-wide .schedule-board:not(.dense-period) .calendar-scroll{overflow-x:auto;overflow-y:auto;max-width:100%;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
 .schedule-wide .schedule-board:not(.dense-period) .calendar{min-width:calc(110px + var(--day-count) * 92px);width:100%}
 .schedule-wide .schedule-board:not(.dense-period) .cal-head,.schedule-wide .schedule-board:not(.dense-period) .person-row{grid-template-columns:110px minmax(0,1fr)}
 .schedule-wide .schedule-board:not(.dense-period) .person{position:sticky;left:0;z-index:5;background:#fff;border-right:1px solid #dfe2e6}
 .schedule-wide .schedule-board:not(.dense-period) .resource-head{position:sticky;left:0;z-index:12;background:#f4f5f7}
 .schedule-wide .schedule-board:not(.dense-period) .booking .booking-content{display:block!important;min-width:0}
 .schedule-wide .schedule-board:not(.dense-period) .booking-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;line-height:1.3}
 .schedule-wide .schedule-board:not(.dense-period) .booking-meta{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;line-height:1.25;margin-top:3px}
 .schedule-wide:not(.compact-rows) .schedule-board:not(.dense-period) .booking-client{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .schedule-wide.compact-rows .schedule-board:not(.dense-period) .person-row{flex:none;min-height:calc(var(--booking-lanes,1) * 42px + 6px);max-height:none}
 .schedule-wide.compact-rows .schedule-board:not(.dense-period) .row-days{min-height:calc(var(--booking-lanes,1) * 42px + 5px)}
 .schedule-wide.compact-rows .schedule-board:not(.dense-period) .booking-layer{grid-auto-rows:42px;align-content:start;height:auto}
 .schedule-wide.compact-rows .schedule-board:not(.dense-period) .booking{height:40px;min-height:40px;max-height:40px;padding:3px}
 .schedule-wide .schedule-board:not(.dense-period) .calendar-footer:before{content:'Swipe sideways to see more dates.';font-weight:700;color:#a51a20}
}
/* Booking reassignment targets cover the whole staff row, including occupied cells. */
.booking[draggable=true]{cursor:grab}.booking[draggable=true]:active{cursor:grabbing}.booking.booking-dragging{opacity:.45}.person-row.booking-drop-target .row-days{outline:3px solid #c62127;outline-offset:-3px;background:#fff0f0}.person-row.booking-drop-target .person{box-shadow:inset 5px 0 #c62127;background:#fff0f0}
/* Bank holiday dates remain marked even when staff are working. */
.day-head.bank-holiday-date,.day-cell.bank-holiday-date,.team-read-days>.bank-holiday-date{background:#fff6b5}.bank-holiday-label{display:inline-block;font-size:9px;font-weight:800;line-height:1.2;padding:1px 3px;border-radius:3px;background:#ffff00;color:#252500;margin:1px}.phone-calendar-day.bank-holiday-date{background:#fff6b5;border-color:#d3bd31}.phone-calendar-day.bank-holiday-date.selected{outline:2px solid #c62127}.dense-period .bank-holiday-label{font-size:7px;padding:0 1px}#bank-holiday-date{max-width:100%;margin:8px 0;padding:10px;border:1px solid #ccd1d8;border-radius:7px}
.holiday-people-summary{border-top:1px solid #e2e5e9;margin:16px 0;padding-top:12px}.holiday-people-summary>strong{font-size:12px}.holiday-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.holiday-totals span{background:#fffbd7;padding:8px;border-radius:6px;font-size:11px;color:#5b5733}.holiday-totals b{display:block;font-size:21px;color:#222;margin-top:3px}.holiday-people-summary p{font-size:11px;color:#667078}.holiday-date-list{margin:10px 0 24px;max-height:280px;overflow:auto}.holiday-date-list>div{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:9px 0;border-bottom:1px solid #e2e5e9;font-size:12px}
.holiday-people-summary .holiday-allowance{font-weight:600;color:#555d66;margin:5px 0 8px}.holiday-people-summary .holiday-balance{font-size:12px;font-weight:700;color:#285d3d;margin:10px 0}.holiday-people-summary .over-allowance{color:#b71922!important;font-weight:700}.holiday-people-summary .holiday-totals b{font-size:19px}
.holiday-requests-dialog{width:min(820px,calc(100vw - 24px));max-height:90dvh;padding:0;border:1px solid #d5d9df;border-radius:14px;color:#22262c;box-shadow:0 24px 90px #16191d55}.holiday-requests-dialog::backdrop{background:#20212480}.hr-head{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:22px 24px;border-bottom:1px solid #dfe2e6}.hr-head h2{font-size:22px}.hr-eyebrow{font-size:10px;letter-spacing:1.2px;font-weight:800;color:#b72027;margin:0 0 5px}.hr-body{padding:20px 24px}.hr-navigation{margin-bottom:18px}.hr-request{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:16px 0;border-bottom:1px solid #e2e5e9}.hr-request p{font-size:13px;margin:5px 0}.hr-status-pending{background:#fff1bd;color:#765000}.hr-status-approved{background:#d9f3dd;color:#265d31}.hr-status-declined{background:#ffe1e1;color:#981e25}.hr-status-withdrawn{background:#e9ecf0;color:#5c626a}.hr-years{margin:14px 0;padding:14px;background:#fffbe1;border-radius:8px}.hr-years p{font-size:13px}.holiday-requests-dialog label{display:block;font-size:13px;font-weight:600}.holiday-requests-dialog input[type=date],.holiday-requests-dialog textarea{display:block;width:100%;margin:6px 0 16px;padding:11px;border:1px solid #cbd1d9;border-radius:7px;background:white;color:#222}.holiday-requests-dialog textarea{min-height:90px}.holiday-requests-dialog .inline-check{display:flex;gap:10px;margin:16px 0}.holiday-requests-dialog .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.holiday-requests-dialog .full{grid-column:1/-1}.hr-notice{font-weight:600;color:#28633a}.hr-list{margin:14px 0;max-height:50dvh;overflow:auto}.holiday-requests-dialog .button-row{flex-wrap:wrap;gap:9px}.holiday-requests-dialog button{min-height:40px}@media(max-width:600px){.hr-head,.hr-body{padding:17px}.hr-head h2{font-size:19px}.holiday-requests-dialog .form-grid{grid-template-columns:1fr}.hr-request{align-items:flex-start}.hr-request>button{flex-shrink:0}.live-status-actions [data-open-holidays]{font-size:11px}}
.monthly-queue-modes{display:inline-flex;margin:0 0 20px}.monthly-invoice-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:16px;border-bottom:1px solid #e0e4e9}.monthly-invoice-toolbar label{font-size:12px;font-weight:600}.monthly-invoice-toolbar input,.monthly-invoice-toolbar select{padding:9px 10px;border:1px solid #d7dde3;border-radius:7px;background:#fff}.monthly-invoice-panel>.stats{padding:16px 16px 0}.monthly-invoice-note{font-size:12px;color:#68727c;padding:0 16px 14px}.monthly-customer-table td:not(:first-child){font-variant-numeric:tabular-nums}.monthly-customer-table small,.monthly-visit-list small{display:block;color:#6b7480;font-size:11px;margin-top:4px}.monthly-customer-table td:first-child{min-width:220px}.monthly-customer-invoiced{background:#f1f6ff}.monthly-customer-invoiced .table-title{color:#1858d5}#dialog:has(.monthly-customer-detail){width:min(1180px,calc(100vw - 28px));max-width:none}.monthly-visit-list{max-height:44dvh;overflow:auto;margin:16px 0}.monthly-visit-list table{min-width:900px}.monthly-visit-list th{position:sticky;top:0;z-index:2;background:#f3f5f7}.monthly-selected-summary{padding:12px;background:#eff3f8;border-radius:7px;margin-bottom:16px}.monthly-selected-summary p{font-size:12px;color:#88530c}.monthly-customer-detail input[type=checkbox]{width:17px;height:17px;accent-color:#c62127}.monthly-customer-detail .form-grid{margin-top:14px}.monthly-customer-detail .badge{white-space:normal}.monthly-customer-table{min-width:850px}@media(max-width:700px){.monthly-invoice-toolbar{padding:12px}.monthly-invoice-toolbar .button-row{flex-wrap:wrap}.monthly-invoice-toolbar input[type=search]{width:100%}.monthly-queue-modes{max-width:100%;font-size:12px}}

#dialog:has(.cb-invoice-content){width:min(1160px,calc(100vw - 28px));max-width:1160px}.cb-invoice-content{padding:24px;max-height:88dvh;overflow:auto}.cb-invoice-content .form-grid{margin:18px 0;gap:16px}.cb-invoice-content label:not(.inline-check){display:block;font-weight:600}.cb-invoice-content input:not([type=checkbox]),.cb-invoice-content select,.cb-invoice-content textarea{display:block;width:100%;margin-top:7px;box-sizing:border-box}.cb-invoice-content textarea{min-width:280px;min-height:70px}.cb-invoice-content input[type=number]{min-width:110px}.cb-invoice-content .table-wrap{max-height:42dvh;overflow:auto}.cb-invoice-content .button-row{margin:18px 0;flex-wrap:wrap}.cb-invoice-content [role=alert]{color:#ad1a20}.cb-invoice-content h2{margin-top:0}.monthly-customer-detail~.dialog-footer{flex-wrap:wrap}

.auth-password-field{display:flex;align-items:stretch;border:1px solid #a5b7af;border-radius:7px;overflow:hidden}.auth-password-field:focus-within{outline:2px solid #c62127;outline-offset:2px}.auth-card .auth-password-field input{min-width:0;flex:1;border:0;border-radius:0;outline:none}.auth-card .auth-password-toggle{flex:none;margin:0;padding:0 14px;min-width:64px;min-height:44px;border:0;border-left:1px solid #dfe2e6;border-radius:0;background:#f1f3f5;color:#202124;font:inherit;font-weight:600;cursor:pointer}.auth-password-toggle:focus-visible{outline:2px solid #c62127;outline-offset:-3px}

.person-access{margin:12px 0}.person-access-badge{display:inline-block;padding:6px 9px;border:1px solid;border-radius:6px;font-size:13px;font-weight:700;line-height:1.4}.access-approved{background:#e0f5e8;color:#14552c;border-color:#82ba95}.access-pending{background:#fff3cd;color:#754b00;border-color:#d9ac42}.access-blocked,.access-loading{background:#eef0f2;color:#48505b;border-color:#b8bec6}.access-error{background:#fff0f0;color:#a91a2a;border-color:#d5959d}
/* Invoice controls match the rest of the workspace and remain legible on phones. */
.cb-invoice-content input:not([type=checkbox]),.cb-invoice-content select,.cb-invoice-content textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5d8;border-radius:8px;padding:10px 12px;font:inherit;background:#fff;color:#20262b;min-height:44px}
.cb-invoice-content label{display:grid;gap:7px;font-weight:650}
.cb-invoice-content label.inline-check{display:flex;align-items:center;font-weight:500}
.cb-invoice-content label small{font-weight:400;color:#596770;line-height:1.45}
.cb-invoice-content #cb-invoice-customer-search{display:flex;align-items:end;gap:12px;margin:18px 0}
.cb-invoice-content #cb-invoice-customer-search label{flex:1}
.cb-invoice-content #cb-settings-status{color:#596770;line-height:1.45}
.cb-invoice-content textarea{min-height:90px}
@media(max-width:600px){.cb-invoice-content #cb-invoice-customer-search{display:grid}.cb-invoice-content .table-wrap{overflow:auto}.cb-invoice-content td:first-child{min-width:220px}.cb-invoice-content td:last-child{min-width:140px}}
.history-filter{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:20px 0}.history-filter label{display:grid;gap:6px;font-weight:650}.history-filter label:first-child{flex:1 1 330px}.history-filter input:not([type=checkbox]),.history-filter select{padding:10px 12px;border:1px solid #cbd5d8;border-radius:8px;min-height:44px;background:#fff;font:inherit;color:#20262b}.history-filter .inline-check{display:flex;align-items:center;min-height:44px}.history-counts{font-weight:650}.history-dialog{padding:24px}.history-dialog header{display:flex;justify-content:space-between;align-items:start;gap:20px}.history-notes,.history-fields dd{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.history-notes{background:#f5f6f7;padding:16px;border-radius:8px}.history-fields{display:grid;grid-template-columns:minmax(130px,1fr) 3fr;gap:10px;margin:20px 0}.history-fields dt{font-weight:650}.history-fields dd{margin:0}#history-results td:nth-child(2){min-width:220px}#history-results td:nth-child(3){min-width:180px}@media(max-width:600px){.history-filter{display:grid}.history-filter label:first-child{min-width:0}.history-fields{display:block}.history-fields dd{margin:4px 0 16px}}

/* Signed timesheet library */
.sheet-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:20px 0}.sheet-filters label{display:flex;flex-direction:column;gap:6px;font-weight:600}.sheet-filters label:first-child{flex:1;min-width:240px}.sheet-filters input,.sheet-filters select{font:inherit;padding:10px;border:1px solid #d4dcdf;border-radius:7px;background:white;max-width:100%}.sheet-dialog{padding:24px}.sheet-dialog header{display:flex;justify-content:space-between;gap:16px;align-items:center}.sheet-signature{display:block;width:100%;max-height:180px;object-fit:contain;border:1px solid #d4dcdf;background:white}.sheet-notes{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.sheet-dialog .info-list{margin:20px 0}

.timesheet-visit-selection{border:1px solid #d4dcdf;border-radius:8px;padding:12px;margin:16px 0}.timesheet-visit-selection legend{font-weight:700}.timesheet-visit-selection .sheet-visit-option{display:flex;gap:10px;align-items:start;padding:10px 0}.sheet-visit-option input{width:22px!important;height:22px;flex:0 0 22px;margin:0}

.customer-signing-dates{padding:16px;background:#fff7d7;border:2px solid #c7202b;border-radius:8px;margin:18px 0}.customer-signing-dates p{white-space:pre-line}

/* Monthly customer reporting: six compact, equally sized metrics. */
.monthly-invoice-panel>.stats{grid-template-columns:repeat(3,minmax(0,1fr))}.monthly-customer-table{min-width:980px}.monthly-customer-table th{white-space:normal}.monthly-customer-table td:first-child{min-width:220px}.monthly-customer-table td:last-child{min-width:110px}
@media(max-width:760px){.monthly-invoice-panel>.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.booking-confirmation{padding:14px 16px;background:#f6f8fa;border:1px solid #dce2e6;border-radius:8px}.booking-confirmation input{width:20px;height:20px;accent-color:#c81928}.booking-confirmation p{margin:8px 0 0}.booking-action-summary{margin-bottom:18px}.booking-actions-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.booking-actions-main button{min-height:46px;text-align:left;padding:12px 14px}.booking-more-actions{border-top:1px solid #e0e5e8;margin-top:14px;padding-top:14px}.booking-more-actions summary{cursor:pointer;font-weight:600}.booking-more-actions:not([open]) .booking-actions-main{display:none}@media(max-width:600px){.booking-actions-main{grid-template-columns:1fr}}

/* Keep the date row visible below the fixed status/navigation bars. */
.schedule-wide:not(.compact-rows) .schedule-board>.panel{overflow:visible}
.schedule-wide:not(.compact-rows) .schedule-board .calendar-scroll{overflow:visible}
.schedule-wide:not(.compact-rows) .cal-head{position:sticky;top:calc(var(--live-bar-height,42px) + 48px);z-index:15;background:#fff;box-shadow:0 2px 5px #172b3220}
@media(max-width:700px){
 .schedule-wide:not(.compact-rows) .schedule-board .calendar-scroll{max-height:calc(100dvh - var(--live-bar-height,42px) - 56px);overflow:auto;-webkit-overflow-scrolling:touch}
 .schedule-wide:not(.compact-rows) .cal-head{top:0}
}
.team-read-scroll{max-height:72dvh}
.team-read-head{position:sticky;top:0;z-index:6}

/* Keep the monthly customer overview to five clear totals. */
.monthly-invoice-panel>.stats{grid-template-columns:repeat(5,minmax(0,1fr))}.monthly-customer-table{min-width:850px}.monthly-customer-table td{padding-top:16px;padding-bottom:16px}.monthly-customer-table th:not(:first-child):not(:last-child),.monthly-customer-table td:not(:first-child):not(:last-child){text-align:center}.monthly-customer-table td:last-child .secondary{white-space:nowrap}@media(max-width:900px){.monthly-invoice-panel>.stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.monthly-invoice-panel>.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.schedule-job-tools{display:flex;gap:8px;flex-wrap:nowrap;white-space:nowrap}

.booking[draggable="true"]{cursor:grab}.booking[draggable="true"]:active{cursor:grabbing}.booking-dragging{opacity:.55}.person-row.booking-drop-target .row-days{box-shadow:inset 0 0 0 2px #c62127}.day-cell.booking-drop-date{background:#ffe4e4!important;box-shadow:inset 0 0 0 2px #c62127}

#quote-job-link-options label{display:block;margin:14px 0;font-weight:600}#quote-job-link-options select{display:block;width:100%;margin-top:6px;padding:10px 12px;font:inherit;color:inherit;background:#fff;border:1px solid #cbd5d3;border-radius:8px}#quote-job-link-options h3{margin-bottom:12px}#quote-job-link-options p{font-weight:400;line-height:1.5}#quote-job-link-options button{margin-top:8px}

.phone-calendar-day.has-bookings{background:var(--phone-day-fill)!important;border:1px solid #7c858c;color:#172b32}.phone-calendar-day.has-bookings.selected{outline:3px solid #202124;outline-offset:1px;box-shadow:inset 0 0 0 2px white;color:#172b32}.phone-calendar-day.has-bookings>span:first-child{background:#fffffff0;color:#172b32;border-radius:4px;min-width:22px;padding:1px 4px;line-height:1.25}.phone-calendar-day.has-bookings .phone-day-dots{background:#fffffff0;border-radius:4px;padding:2px 3px;height:auto;min-height:8px}.phone-dot.invoiced{background:#1459d4}.phone-dot.absence{background:#999}

/* Monthly work: total and three activity categories, plus sheets and invoicing. */
.monthly-invoice-panel>.stats{grid-template-columns:repeat(6,minmax(0,1fr))}.monthly-customer-table{min-width:1040px}
@media(max-width:1100px){.monthly-invoice-panel>.stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.monthly-invoice-panel>.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Quotes is a persistent workspace page, with list and detail views. */
.quote-page-panel{padding:20px;margin-bottom:20px}.quote-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.quote-filters label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700}.quote-filters input,.quote-filters select{width:100%;min-height:42px;border:1px solid #d7dde3;border-radius:7px;padding:9px;background:#fff;color:#20272b}.quote-directory-table{min-width:900px}.quote-directory-table td{vertical-align:top}.quote-directory-table small{display:block;color:#6b7480;margin-top:6px}.quote-directory-table td:nth-child(3){min-width:200px;max-width:360px;white-space:normal}.quote-page-pagination{justify-content:space-between;margin-top:16px}.quote-detail-summary{display:grid;grid-template-columns:1fr 1fr;gap:24px}.quote-author-editor p{flex-basis:100%;margin:0}.quote-description{white-space:pre-wrap}.quote-page-panel summary{font-weight:700;cursor:pointer}
@media(max-width:900px){.quote-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.quote-page-panel{padding:14px}.quote-filters,.quote-detail-summary{grid-template-columns:1fr}.sidebar .nav-item span{font-size:9px}}

/* Schedule actions share the account bar; wrap cleanly on smaller screens. */
.schedule-wide .topbar,.schedule-wide.compact-rows .topbar{height:auto;min-height:52px;flex:0 0 auto;padding-top:7px;padding-bottom:7px;flex-wrap:wrap}
.schedule-wide .top-actions{gap:10px;flex:1;justify-content:flex-end;min-width:0;flex-wrap:wrap}
.schedule-top-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}
.schedule-top-controls>button{white-space:nowrap;padding:9px 12px}
.schedule-top-controls .row-view-switch{flex-shrink:0;margin:0}
.schedule-wide .topbar .profile-select{max-width:260px}
@media(max-width:1100px){.schedule-wide .topbar .crumb{display:none}.schedule-wide .top-actions{width:100%}.schedule-top-controls{flex:1}}
@media(max-width:700px){.schedule-wide .top-actions{gap:8px}.schedule-top-controls{flex:0 0 100%;order:3;gap:6px}.schedule-top-controls>button{padding:8px 10px;font-size:12px}.schedule-wide .topbar .profile-select{max-width:calc(100% - 50px)}.schedule-wide .topbar .icon-button{margin-left:auto}}

/* Keep date navigation and schedule filters together on one compact row. */
.schedule-wide .calendar-toolbar{flex-wrap:nowrap;justify-content:flex-start;gap:12px;overflow-x:auto;padding:8px 10px;scrollbar-width:thin}
.schedule-wide .calendar-toolbar>.button-row{flex:0 0 auto;flex-wrap:nowrap;gap:6px;white-space:nowrap}
.schedule-wide .calendar-toolbar .filters{flex:1 0 auto;width:auto;flex-wrap:nowrap;gap:7px}
.schedule-wide .calendar-toolbar .week-title{white-space:nowrap;margin:0 4px;font-size:13px}
.schedule-wide .calendar-toolbar .secondary{padding:8px 10px;white-space:nowrap;font-size:12px}
.schedule-wide .calendar-toolbar .icon-button{flex-shrink:0;width:32px;height:32px}
.schedule-wide .calendar-toolbar .filter-select{font-size:12px;padding:8px;max-width:180px}
.schedule-wide .calendar-toolbar .search-wrap{flex:1 0 155px;min-width:155px}
.schedule-wide .calendar-toolbar .search-wrap input{width:100%;min-width:155px;font-size:12px}
.schedule-wide .calendar-toolbar .schedule-date-jump input{min-width:125px;max-width:140px;font-size:12px}
.schedule-wide .calendar-toolbar .schedule-job-tools{flex-wrap:nowrap;gap:7px}
.schedule-wide.compact-rows .calendar-toolbar .filters{width:auto;flex-wrap:nowrap}

/* Use the same top navigation on every desktop admin page. */
@media(min-width:761px){
.admin-nav-top .sidebar{width:100%;height:48px;inset:var(--live-bar-height,42px) 0 auto;flex-direction:row;align-items:center;padding:6px 12px;gap:20px;overflow-x:auto;overflow-y:hidden}
.admin-nav-top .brand{flex-direction:row;align-items:center;padding:0;gap:12px;flex-shrink:0}
.admin-nav-top .brand-logo{width:106px;padding:3px 5px;max-height:39px}
.admin-nav-top .brand-name{font-size:14px;white-space:nowrap}
.admin-nav-top .brand-small,.admin-nav-top .nav-label,.admin-nav-top .side-note{display:none}
.admin-nav-top .sidebar nav{display:flex;gap:5px;flex-shrink:0}
.admin-nav-top .nav-item{display:flex;flex-direction:row;width:auto;padding:7px 10px;margin:0;gap:7px;font-size:11px;white-space:nowrap}
.admin-nav-top .nav-item svg{width:15px;height:15px}
.admin-nav-top .sidebar-bottom{margin:0 0 0 auto;padding:0;flex-shrink:0}
.admin-nav-top .main{margin-left:0;width:100%;padding-top:48px;min-width:0}
}

.calendar-subscribe-link{display:inline-flex;align-items:center;text-decoration:none;padding:10px 14px;border:1px solid var(--line);border-radius:8px;font-weight:600;color:var(--ink)}.calendar-help{margin:18px 0}.calendar-help summary{font-weight:700;cursor:pointer}.calendar-help p{margin:12px 0}

/* Keep every choice legible while manually selecting bookings. */
.calendar .booking.job-muted{opacity:.7;filter:none}
.manual-selection .calendar .booking.job-muted{opacity:1;filter:none}
.calendar .booking.job-match,.manual-selection .calendar .booking.job-match{outline:4px solid #005ce6;outline-offset:2px;box-shadow:0 0 0 2px #fff;z-index:3}
.calendar .booking.job-match::after{content:"✓";position:absolute;top:3px;right:3px;width:20px;height:20px;display:grid;place-items:center;background:#005ce6;color:#fff;border:2px solid #fff;border-radius:50%;font:800 14px/1 system-ui;box-shadow:0 1px 3px #102b4560;z-index:8;pointer-events:none}

/* CRM quote planning summary and readable follow-up list. */
.crm-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:20px}.crm-stage-card{padding:16px;text-align:left;display:flex;flex-direction:column;gap:8px;color:#252c31;border:1px solid #d9dfe5;cursor:pointer;min-height:100px}.crm-stage-card span{font-size:12px;font-weight:650}.crm-stage-card strong{font-size:27px;line-height:1.2}.crm-stage-card.selected{border:2px solid #bb1824;background:#fff5f5}.crm-table{min-width:1100px}.crm-table td{vertical-align:top}.crm-table td:nth-child(2){max-width:280px;overflow-wrap:anywhere}.crm-table td .button-row{flex-direction:column;align-items:stretch;gap:8px}.crm-table .badge{white-space:normal}.crm-table small{display:block;color:#697682;margin-top:7px;line-height:1.45}.crm-table td:last-child{min-width:140px}
@media(max-width:1000px){.crm-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.crm-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.crm-stage-card{padding:12px;min-height:85px}}

/* Holiday requests remain prominent independently of notification read state. */
#live-status button.has-pending-holidays{background:#c51e2b;border:2px solid #fff0b0;color:#fff;font-weight:800;box-shadow:0 0 0 1px #c51e2b;padding:5px 10px}
.holiday-attention{display:flex;align-items:center;gap:14px;background:#fff1cf;border:1px solid #e0b458;border-left:6px solid #b71f2b;border-radius:10px;padding:14px 18px;margin-bottom:18px;color:#3a2a16}.holiday-attention-count{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:50%;background:#b71f2b;color:white;font-size:20px;font-weight:850}.holiday-attention>div{flex:1;min-width:0}.holiday-attention strong{display:block;font-size:16px}.holiday-attention div>span{display:block;font-size:12px;line-height:1.6;margin-top:3px}.holiday-attention .primary{white-space:nowrap;min-height:40px}.holiday-attention-slot:empty{display:none}
@media(max-width:700px){.holiday-attention{flex-wrap:wrap;padding:12px;gap:10px}.holiday-attention>div{flex-basis:calc(100% - 50px)}.holiday-attention .primary{width:100%}.holiday-attention strong{font-size:14px}}
.hr-balance{padding:18px;margin:16px 0;border:1px solid #d7e0e6;border-radius:12px;background:#f7f9fb}.hr-balance-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.hr-balance-heading h3{margin:0}.hr-balance-heading select{padding:8px;border:1px solid #c9d2dc;border-radius:7px;background:white}.hr-balance-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.hr-balance-grid>div{display:flex;flex-direction:column;padding:13px;background:white;border:1px solid #dce2e7;border-radius:9px}.hr-balance-grid span{font-size:12px;min-height:30px;color:#53616d}.hr-balance-grid strong{font-size:28px;color:#20272d}.hr-balance-grid small{font-size:12px;color:#53616d}.hr-balance-grid .hr-balance-remaining{background:#edf6ef;border-color:#9ebfac}@media(max-width:600px){.hr-balance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hr-balance{padding:13px}}
.equipment-summary{display:flex;flex-wrap:wrap;gap:14px;margin:18px 0}.equipment-summary span{padding:12px 18px;background:white;border:1px solid #dce0e5;border-radius:9px}.equipment-summary strong{font-size:22px;margin-right:8px}.equipment-filters{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.equipment-filters label,.equipment-dialog label{display:grid;gap:6px;font-weight:600}.equipment-filters label:first-child{flex:1;min-width:240px}.equipment-filters input,.equipment-filters select,.equipment-dialog input,.equipment-dialog select,.equipment-dialog textarea{width:100%;min-height:44px;padding:10px;font:inherit;color:#202124;background:white;border:1px solid #cbd2d7;border-radius:7px;box-sizing:border-box}.equipment-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.equipment-card{background:white;border:1px solid #d9dfe3;border-radius:12px;padding:20px}.equipment-card h2{font-size:18px;line-height:1.4;margin:16px 0 8px}.equipment-card p{line-height:1.5;margin:9px 0;font-size:14px}.equipment-card-top{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.equipment-asset{font-weight:750;color:#a91c23}.equipment-awaiting{border:2px solid #b72027}.equipment-pending-label,.equipment-warning{color:#925800;font-weight:700}.equipment-dialog{width:min(850px,calc(100vw - 24px));max-height:90dvh;padding:0;border:1px solid #cbd2d7;border-radius:14px;color:#202124;box-shadow:0 20px 80px #0004}.equipment-dialog::backdrop{background:#17202399}.equipment-dialog>header{position:sticky;top:0;background:white;z-index:1;padding:20px;display:flex;gap:20px;align-items:center;justify-content:space-between;border-bottom:1px solid #ddd}.equipment-dialog h2{font-size:22px;margin:0}.equipment-dialog-body{padding:22px}.equipment-dialog-body p{line-height:1.6}.equipment-dialog textarea{min-height:100px}.equipment-details{display:grid;grid-template-columns:180px 1fr;gap:12px}.equipment-details dt{font-weight:700}.equipment-details dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.equipment-pending{padding:16px;border:2px solid #ba272c;border-radius:8px;background:#fff7f0;margin:20px 0}.equipment-history article{border-top:1px solid #ddd;padding:14px 0}.equipment-history p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.equipment-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.equipment-dialog [data-eq-feedback]{color:#ae2026;font-weight:650}.equipment-dialog button{min-height:44px}.equipment-dialog .button-row{flex-wrap:wrap}.equipment-dialog form>button{margin-top:16px}@media(max-width:600px){.equipment-form-grid,.equipment-details{display:block}.equipment-form-grid label{margin-bottom:14px}.equipment-details dd{margin:3px 0 15px}.equipment-dialog-body{padding:16px}.equipment-dialog header{padding:15px}.equipment-filters{display:grid}.equipment-dialog .page-head{display:block}}
.equipment-table-scroll{overflow:auto;background:white;border:1px solid #d9dfe3;border-radius:10px}.equipment-table{width:100%;border-collapse:collapse;font-size:13px}.equipment-table th{background:#f5f6f7;padding:14px;text-align:left;color:#626c74;font-size:11px;text-transform:uppercase;letter-spacing:.6px;white-space:nowrap}.equipment-table td{padding:14px;border-top:1px solid #e2e6e9;vertical-align:top;line-height:1.5}.equipment-table tbody tr:nth-child(even){background:#fafbfc}.equipment-table td:nth-child(2){min-width:180px;max-width:320px}.equipment-table small{display:block;margin-top:4px;color:#65717a}.equipment-table .equipment-warning{color:#925800}.equipment-table .equipment-row-action{white-space:nowrap}.equipment-row-pending{box-shadow:inset 4px 0 #ba272c}.equipment-table .equipment-pending-label{color:#925800}.equipment-dialog .equipment-table td{padding:10px}.equipment-table button{min-height:40px}@media(max-width:600px){.equipment-table-scroll{overflow:visible;border-radius:0;border-left:0;border-right:0}.equipment-table thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.equipment-table,.equipment-table tbody{display:block}.equipment-table tr{display:grid;grid-template-columns:1fr 1fr;padding:12px 0;border-top:1px solid #d9dfe3}.equipment-table td{display:block;border:0;padding:6px 12px;overflow-wrap:anywhere;min-width:0!important;max-width:none!important}.equipment-table td:before{content:attr(data-label);display:block;font-size:10px;color:#6a747d;margin-bottom:3px}.equipment-table td:nth-child(2){grid-column:1/-1;grid-row:2}.equipment-table td:first-child{grid-row:1;grid-column:1}.equipment-table td:nth-child(7){grid-row:1;grid-column:2}.equipment-table .equipment-row-action{grid-column:1/-1;text-align:right}.equipment-table .equipment-row-action:before{display:none}}
.equipment-table tbody tr.equipment-row-due{background:#fff7df;box-shadow:inset 4px 0 #d79600}.equipment-table tbody tr.equipment-row-urgent{background:#fff0ee;box-shadow:inset 4px 0 #bd262d}.equipment-row-urgent .equipment-warning{color:#aa1922}.equipment-row-due .equipment-warning{color:#875300}
#live-status button.has-equipment-alerts{background:#b72027;border-color:#efafb2;color:#fff;font-weight:750}.notification-scope-tabs{flex-wrap:wrap;margin:8px 0 16px}.notification-scope-tabs button{min-height:40px}

/* One aligned equipment toolbar on desktop, compact grids on smaller screens. */
.equipment-filters{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.85fr) minmax(0,1fr) minmax(0,1.1fr) minmax(0,.9fr) minmax(0,1.15fr);align-items:end;gap:10px}.equipment-filters label,.equipment-filters label:first-child{min-width:0;font-size:13px}.equipment-filters input,.equipment-filters select{min-width:0;height:44px;font-size:13px;padding:10px 9px}.equipment-filters input{overflow:hidden;text-overflow:ellipsis}@media(max-width:1100px){.equipment-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.equipment-filters{grid-template-columns:1fr}}

/* IRIS equipment connection: contained admin review controls. */
.iris-sync-state,.iris-match-review{padding:16px;border:1px solid #dce2e2;border-radius:12px;background:#f7f9f9;margin-bottom:18px}.iris-sync-filters{display:flex;gap:18px;align-items:end;flex-wrap:wrap;margin:16px 0}.iris-sync-filters label{max-width:100%}.iris-sync-filters input[type=search]{min-width:240px}.iris-checkbox{display:flex;align-items:center;gap:8px}.iris-checkbox input{width:18px;height:18px}.iris-match-review{min-width:230px;margin-top:10px}.iris-match-review h4{margin-top:0}
.equipment-dialog .iris-sync-filters .iris-checkbox{display:flex;align-items:center;gap:8px;min-height:44px;margin:0}.equipment-dialog .iris-sync-filters .iris-checkbox input{flex:0 0 18px;width:18px;height:18px;min-height:18px;padding:0;margin:0}
/* RAMS uses its own dialog so schedule forms and signatures remain separate. */
.rams-dialog{width:min(1120px,96vw);max-width:none;max-height:94dvh;padding:0;border:1px solid #d6dddd;border-radius:14px;background:#fff;color:#202326}.rams-dialog::backdrop{background:#102526a8;backdrop-filter:blur(3px)}.rams-dialog>header{position:sticky;top:0;background:#fff;z-index:3;display:flex;align-items:center;gap:18px;padding:16px 24px;border-bottom:1px solid #d8dddd}.rams-dialog>header img{width:120px;height:55px;object-fit:contain}.rams-dialog>header h2{flex:1;font-size:22px;margin:0}.rams-body{padding:24px}.rams-body table{border-collapse:collapse;width:100%;margin:16px 0;font-size:14px}.rams-body td,.rams-body th{padding:12px;text-align:left;border:1px solid #d6dddd;vertical-align:top;overflow-wrap:anywhere}.rams-body th{background:#f0f2f2}.rams-body form label{display:flex;flex-direction:column;gap:8px;margin:12px 0;font-weight:600}.rams-body form label.inline-check{flex-direction:row;align-items:center}.rams-body input:not([type=checkbox]),.rams-body textarea,.rams-body select{font:inherit;padding:12px;border:1px solid #c6d0ce;border-radius:7px;width:100%;box-sizing:border-box;background:#fff;color:#202326}.rams-body textarea{resize:vertical;line-height:1.5}.rams-body h3{margin:30px 0 14px}.rams-body h4{font-size:17px;margin:10px 0}.rams-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.rams-team-editor{border:1px solid #d7dede;border-radius:8px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:0 16px;margin:12px 0}.rams-body details{border:1px solid #d7dede;padding:14px;margin:12px 0;border-radius:8px}.rams-body summary{cursor:pointer;font-weight:700}.rams-risk,.rams-section{border-top:1px solid #d8dddd;padding:16px 0}.rams-pre{white-space:pre-wrap;line-height:1.6;overflow-wrap:anywhere}.rams-details{display:grid;grid-template-columns:180px 1fr;gap:12px 20px;line-height:1.5;margin:26px 0}.rams-details dt{font-weight:700}.rams-details dd{margin:0;overflow-wrap:anywhere}.rams-status{padding:12px 16px;background:#edf2ef;border-radius:7px;margin-bottom:18px}.rams-status.draft,.rams-status.withdrawn,.rams-status.superseded{background:#fff0da}.rams-signed{width:250px;height:70px;object-fit:contain;max-width:100%;border:1px solid #ddd}.rams-pad{display:block;width:100%;height:180px;background:white;border:2px solid #9aabaa;border-radius:8px;margin:18px 0;touch-action:none}.rams-save{position:sticky;bottom:-24px;padding:18px;background:white;border-top:1px solid #ddd;margin:20px -24px -24px}.rams-feedback{color:#a52c26;font-weight:600}.rams-body .button-row{flex-wrap:wrap}.rams-body p{line-height:1.6}
@media(max-width:650px){.rams-dialog{width:98vw;max-height:96dvh}.rams-body{padding:16px}.rams-dialog>header{padding:10px;gap:10px}.rams-dialog>header img{width:72px;height:42px}.rams-dialog>header h2{font-size:18px}.rams-form-grid,.rams-team-editor{grid-template-columns:1fr}.rams-details{grid-template-columns:1fr;gap:5px}.rams-details dd{margin-bottom:14px}.rams-body table{font-size:12px}.rams-body th,.rams-body td{padding:7px}.rams-save{bottom:-16px;margin:16px -16px -16px}}
.rams-electronic{padding:16px;border:1px solid #bbc8c5;border-radius:8px;background:#f5f7f6;font-size:16px}.rams-electronic strong{font-family:Georgia,serif;font-size:23px}
.rams-generated{display:block;width:min(600px,100%);height:120px;object-fit:contain;border:1px solid #c2cecb;background:#fff}
/* RAMS directory: a single card, aligned columns and a clear search toolbar. */
#rams-page .rams-index-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}#rams-page .rams-index-heading h1{margin:0 0 8px}#rams-page .rams-index-heading p{font-size:14px;color:#67727b;line-height:1.5;margin:0;max-width:760px}#rams-page .rams-index-heading .button-row{flex-shrink:0;display:flex;gap:10px;margin:0}#rams-page .rams-index-card{background:#fff;border:1px solid #d9dfe4;border-radius:12px;overflow:hidden}#rams-page .rams-index-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid #d9dfe4}#rams-page .rams-index-toolbar label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;width:min(520px,100%)}#rams-page .rams-index-toolbar input{font:inherit;font-size:14px;width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid #cdd5dc;border-radius:7px;background:#fff;color:#202326}#rams-page .rams-index-count{color:#707a82;font-size:13px;white-space:nowrap;padding-bottom:12px}#rams-page .rams-index-scroll{overflow:auto}#rams-page table{width:100%;min-width:980px;table-layout:fixed;border-collapse:collapse;font-size:14px;text-align:left}#rams-page th{padding:15px 22px;background:#f7f9fa;color:#6b757e;font-size:11px;text-transform:uppercase;letter-spacing:.07em;text-align:left;border-bottom:1px solid #dfe4e8}#rams-page td{padding:22px;vertical-align:middle;border-bottom:1px solid #e5e9ec;line-height:1.5;overflow-wrap:anywhere}#rams-page tr:last-child td{border-bottom:0}#rams-page th:nth-child(1){width:27%}#rams-page th:nth-child(2){width:18%}#rams-page th:nth-child(3){width:13%}#rams-page th:nth-child(4){width:15%}#rams-page th:nth-child(5){width:14%}#rams-page th:nth-child(6){width:13%}#rams-page td:first-child>strong{font-size:16px}#rams-page .rams-index-secondary{display:block;color:#74808a;font-size:12px;line-height:1.5;margin-top:5px}#rams-page .rams-index-badge{display:inline-block;background:#eef2f4;color:#596670;font-size:12px;font-weight:700;border-radius:5px;padding:4px 8px;text-transform:capitalize}#rams-page .rams-index-badge.draft{background:#fff1d9;color:#94621f}#rams-page .rams-index-badge.approved{background:#e4f1e8;color:#276644}#rams-page td:last-child{text-align:right}#rams-page td .secondary{white-space:nowrap;font-size:13px;padding:10px 14px}
.rams-spelling-list{max-height:52dvh;overflow:auto;border:1px solid #d9dfe4;border-radius:8px}.rams-spelling-item{display:grid;grid-template-columns:1.3fr 1fr;gap:20px;border-bottom:1px solid #e0e5e9;padding:16px}.rams-spelling-item:last-child{border-bottom:0}.rams-spelling-item p{font-size:13px;margin:7px 0;color:#4d5963}.rams-spelling-item small{font-size:11px;color:#78828a}.rams-spelling-item label{display:flex;flex-direction:column;gap:8px;font-size:12px}.rams-spelling-item input{font:inherit;padding:10px;border:1px solid #c6d0ce;border-radius:6px;width:100%;box-sizing:border-box}
@media(max-width:850px){#rams-page .rams-index-heading{align-items:flex-start;flex-direction:column;gap:16px}#rams-page .rams-index-toolbar{padding:16px;align-items:center}#rams-page .rams-index-heading .button-row{flex-wrap:wrap}.rams-spelling-item{grid-template-columns:1fr}}
.rams-correction-options{display:flex;flex-direction:column;gap:12px;align-items:flex-start}.rams-correction-options label{width:100%}.rams-correction-options>button{font-size:13px;padding:9px 12px}
/* Completed shift cancellation evidence, usable on inspector phones. */
.cancellation-dialog{width:min(860px,96vw);max-width:none;max-height:94dvh;overflow:auto;padding:0;border:1px solid #d4dcdf;border-radius:14px;background:#fff;color:#202326}.cancellation-dialog .sheet-dialog{padding:22px}.cancellation-dialog h2{font-size:23px}.cancellation-dialog form>label{display:flex;flex-direction:column;gap:8px;margin:18px 0;font-weight:600}.cancellation-dialog form>label.inline-check{flex-direction:row;align-items:flex-start}.cancellation-dialog input:not([type=checkbox]),.cancellation-dialog textarea,.cancellation-dialog select{font:inherit;font-size:16px;width:100%;box-sizing:border-box;padding:12px;border:1px solid #bcc9c6;border-radius:8px;background:white;color:#202326}.cancellation-dialog textarea{resize:vertical;line-height:1.5}.cancellation-dialog canvas{display:block;width:100%;height:170px;border:1px solid #7b8c86;border-radius:8px;background:#fff;touch-action:none}.cancellation-dialog [hidden]{display:none!important}.cancellation-dialog .button-row{display:flex;gap:10px;flex-wrap:wrap}.cancellation-dialog .info-list{display:grid;grid-template-columns:130px minmax(0,1fr);gap:9px 16px}.cancellation-dialog dd{margin:0;overflow-wrap:anywhere}.cancellation-dialog [data-cxl-status]{color:#b31c28;white-space:pre-wrap}.cancellation-dialog .rams-pre{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:600px){.cancellation-dialog .sheet-dialog{padding:16px}.cancellation-dialog .info-list{grid-template-columns:1fr;gap:4px}.cancellation-dialog dd{margin-bottom:10px}.cancellation-dialog header{align-items:flex-start}.cancellation-dialog h2{font-size:20px}}
.rams-approval-checklist{margin:20px 0}.rams-approval-gap{display:flex;gap:18px;justify-content:space-between;align-items:center;border:1px solid #d9dfdd;border-left:4px solid #bd2028;border-radius:8px;padding:16px;margin:12px 0;background:#fff}.rams-approval-gap p{margin:7px 0 0}.rams-approval-gap button{flex-shrink:0}.rams-approval-gap .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:600px){.rams-approval-gap{align-items:flex-start;flex-direction:column;gap:12px}}
.rams-coshh-table{overflow-x:auto}.rams-coshh-table table{table-layout:fixed;min-width:520px}.rams-coshh-table td,.rams-coshh-table th{font-size:13px;line-height:1.45;white-space:normal}.rams-coshh-table th{background:#e4e7e6}
.rams-method-choice{border:1px solid #dce3e0;border-radius:10px;padding:14px;margin:10px 0;background:#fff}.rams-method-choice:has(input[type=checkbox]:checked){border-left:5px solid #bd1924;background:#fff9f9}.rams-method-choice>.inline-check{font-weight:700}.rams-method-choice>details{margin:8px 0 0}.rams-inspection-choices>summary{font-weight:700}

.rams-project-kit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.rams-project-kit fieldset{min-width:0;border:1px solid #dce3e0;border-radius:12px;padding:18px}.rams-project-kit legend{font-size:1.15rem;font-weight:700;padding:0 7px}.rams-kit-options{display:grid;gap:8px;margin:16px 0}.rams-kit-options .inline-check{margin:0;padding:8px;border:1px solid #e4e8e7;border-radius:7px;display:flex;align-items:center;gap:10px}.rams-kit-options .inline-check:has(input:checked){background:#fff2f3;border-color:#bd1924}.rams-kit-options input{flex:0 0 auto}@media(max-width:650px){.rams-project-kit{grid-template-columns:1fr}}

.rams-template-heading{display:flex;justify-content:space-between;gap:20px;align-items:start}.rams-template-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.rams-template-card{background:#fff;border:1px solid #dce3e0;padding:24px;border-radius:14px}.rams-template-save{position:sticky;bottom:0;background:#fff;padding:14px;border-top:1px solid #dce3e0;z-index:2}[data-template-form]>details{background:#fff;border:1px solid #dce3e0;padding:14px;border-radius:10px;margin:10px 0}[data-template-form] details>label{margin:14px 0;display:block}[data-template-form] textarea,[data-template-form] input{width:100%;font:inherit;border:1px solid #bdc9c6;border-radius:8px;padding:12px}[data-template-form] summary{font-weight:700;cursor:pointer}.rams-team-choice{border-bottom:1px solid #dce3e0;padding:12px 10px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:14px}.rams-team-choice>.inline-check{margin:0;padding:7px 0;display:flex;align-items:center;gap:12px}.rams-team-choice:has(>.inline-check>input:checked){background:#fff2f3;border-left:4px solid #bd1924}.rams-team-info{min-width:100px;margin:0!important;border:0!important;padding:0!important}.rams-team-info>summary{padding:7px;cursor:pointer}.rams-team-info[open]{grid-column:1/-1}.rams-team-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:12px}@media(max-width:650px){.rams-template-cards,.rams-team-fields{grid-template-columns:1fr}.rams-template-heading{flex-wrap:wrap}}

.rams-sample-count{margin:12px 0;max-width:420px}.rams-sample-count[hidden]{display:none!important}.rams-sample-count input{max-width:270px}

.rams-file-name{overflow-wrap:anywhere;margin-bottom:0}.rams-dialog [data-rams-email-subject],.rams-dialog [data-rams-email-body]{width:100%}

.rams-index-card .rams-delete-button{color:#b3261e;border-color:#e3b9b4;}

/* Inspector home: compact shortcuts and a dedicated signing action strip. */
.phone-brand-tools{display:flex;flex-direction:column;align-items:flex-end;gap:7px;min-width:155px}.phone-brand-tools>span{font-size:15px;text-transform:none;letter-spacing:0;color:#202124}.phone-live .phone-quick-menu{margin:0;position:relative}.phone-quick-menu summary{display:flex;align-items:center;gap:16px;list-style:none;cursor:pointer;padding:9px 12px;border:1px solid #d5d9df;border-radius:8px;background:white;color:#353b43;font-size:13px;font-weight:650;min-height:40px}.phone-quick-menu summary::-webkit-details-marker{display:none}.phone-quick-menu[open] summary{border-color:#b72027}.phone-quick-options{position:absolute;right:0;top:calc(100% + 7px);width:245px;max-width:calc(100vw - 40px);padding:6px;z-index:10;background:white;border:1px solid #d5d9df;border-radius:10px;box-shadow:0 12px 30px #20212425}.phone-quick-options button{display:block;width:100%;min-height:46px;text-align:left;padding:10px;border:0;border-radius:6px;background:white;color:#202124;font:inherit;font-size:13px;cursor:pointer}.phone-quick-options button:hover,.phone-quick-options button:focus-visible{background:#f7ecec}.phone-quick-options button:disabled{color:#818893;cursor:default}.phone-action-bar{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid #d6dae0;border-radius:12px;overflow:hidden;background:white;margin:18px 0 0}.phone-action{display:grid;grid-template-columns:1fr auto;gap:4px 8px;align-items:center;padding:15px 13px;text-align:left;background:#fff;border:0;font:inherit;color:#40464e;cursor:pointer;min-height:90px}.phone-action+ .phone-action{border-left:1px solid #d6dae0}.phone-action>span{font-size:14px;font-weight:750;line-height:1.3}.phone-action>strong{display:grid;place-items:center;min-width:30px;height:30px;border-radius:50%;background:#edf0f3;color:#454c56;font-size:17px}.phone-action>small{grid-column:1/-1;font-size:11px;color:#65707d}.phone-action.needs-signing{background:#fff0ed;box-shadow:inset 0 4px #bd2027;color:#9a1821}.phone-action.needs-signing>strong{background:#bd2027;color:#fff}.phone-action.needs-signing>small{color:#9a1821;font-weight:650}.phone-action:disabled{cursor:default;opacity:.75}.phone-action:focus-visible{outline:3px solid #2676d1;outline-offset:-4px}.phone-action-status{font-size:12px;color:#66707c;margin:6px 0 14px}.phone-action-status:empty{display:none}.phone-actions-dialog{width:min(600px,calc(100vw - 24px));max-height:90dvh;padding:0;border:1px solid #d4d8df;border-radius:14px;color:#202124}.phone-actions-dialog::backdrop{background:#20212480}.phone-actions-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;border-bottom:1px solid #e0e3e7}.phone-actions-dialog h2{font-size:21px;margin:0}.phone-action-list{padding:18px}.phone-action-list article{border:1px solid #e0e3e7;border-left:4px solid #bd2027;padding:16px;border-radius:9px;margin:0 0 12px}.phone-action-list article p{font-size:13px;line-height:1.6;color:#626b77}.phone-action-list article button{min-height:44px}.phone-brand{align-items:center;margin-bottom:14px}

.phone-list-tools{margin:14px 0}.phone-list-tools p{font-size:12px;color:#64707c;margin:9px 0}.phone-list-more{width:100%;min-height:44px;margin:10px 0 20px}

.phone-home-utilities{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:14px 0}.phone-live .phone-offline-tools{margin:0;min-width:0;flex:1}.phone-offline-tools summary{cursor:pointer;color:#596372;font-size:12px;padding:10px 0;min-height:40px}.phone-offline-tools[open]{padding:0 12px 12px;border:1px solid #dce0e5;border-radius:9px;background:white}.phone-offline-tools[open]+.phone-notification-shortcut{display:none}.phone-offline-tools p{font-size:12px;line-height:1.6}.phone-live .phone-notification-shortcut{width:auto;min-height:40px;font-size:12px;padding:8px 12px}.phone-live .phone-action-bar{margin-top:16px}

.rams-method-types{border:1px solid #d9dde3;border-radius:8px;padding:12px 16px;margin:18px 0}.rams-method-types legend{font-weight:700;padding:0 5px}.rams-method-types .inline-check{display:inline-flex;margin:4px 24px 4px 0}

.rams-method-order{list-style:none;margin:18px 0;padding:6px;max-height:52vh;overflow:auto;border:1px solid #dce3e0;border-radius:12px;background:#f5f7f8}.rams-method-order li{display:flex;align-items:center;gap:14px;margin:7px 0;padding:12px 16px;background:#fff;border:2px solid transparent;border-radius:9px;box-shadow:0 1px 3px #00000012}.rams-method-order li>div{min-width:0}.rams-method-order li strong{display:block}.rams-method-order li span{display:block;color:#67717a;font-size:13px;margin-top:4px}.rams-order-handle{cursor:grab;border:1px solid #cbd3d7;background:#f7f8fa;color:#34454c;border-radius:8px;min-width:42px;min-height:42px;font-size:27px;line-height:1;flex-shrink:0}.rams-order-handle:active{cursor:grabbing}.rams-method-order li.dragging{opacity:.5}.rams-method-order li.drop-before{border-top-color:#bd1924}.rams-method-order li.drop-after{border-bottom-color:#bd1924}.rams-order-actions{position:sticky;bottom:0;background:white;padding:12px 0}

/* Admin training matrix */
.people-section-tabs{margin:0 0 20px}.training-head{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.training-head h2{margin:0}.training-head p{margin:8px 0 18px}.training-head .button-row{flex-wrap:wrap}.training-filters{display:grid;grid-template-columns:1fr .8fr 1fr 1.5fr 1fr;gap:14px;margin:8px 0 18px}.training-filters label,.training-dialog label{display:flex;flex-direction:column;gap:7px;font-weight:650}.training-filters input,.training-filters select,.training-dialog input:not([type=checkbox]),.training-dialog select,.training-dialog textarea{font:inherit;width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #cbd5d8;border-radius:8px;background:white;color:#25333b;min-width:0}.training-legend{display:flex;gap:9px;flex-wrap:wrap}.training-chip{padding:6px 9px;border-radius:6px;font-size:12px;font-weight:650}.training-scroll{max-height:68vh;overflow:auto;background:#fff;border:1px solid #d9dfe4;border-radius:12px;isolation:isolate}.training-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:100%;font-size:13px}.training-table th,.training-table td{box-sizing:border-box;border-right:1px solid #e1e6e9;border-bottom:1px solid #e1e6e9;text-align:left;padding:8px;white-space:normal;width:164px;min-width:164px;max-width:164px}.training-table thead th{position:sticky;top:0;z-index:3;background:#edf1f4;padding:14px 10px;font-size:12px;vertical-align:bottom;height:105px}.training-table th:first-child{position:sticky;left:0;background:#f4f6f8;z-index:2;width:180px;min-width:180px;max-width:180px;padding:14px}.training-table thead th:first-child{z-index:4}.training-table small{display:block;font-size:11px;line-height:1.4;font-weight:400;margin-top:5px}.training-cell{font:inherit;display:block;width:100%;height:78px;border:1px solid transparent;border-radius:7px;cursor:pointer;padding:8px;text-align:left;color:#25333b;background:#f8fafb}.training-cell:hover{border-color:#657e8e;box-shadow:0 0 0 2px #d2e1ee}.training-cell strong{font-size:12px}.training-empty{color:#81909b}.training-cell.expired,.training-cell.urgent,.training-chip.expired{background:#ffebe8;color:#94211a}.training-cell.due,.training-chip.due{background:#fff1cc;color:#775206}.training-cell.current,.training-chip.current{background:#e6f2e9;color:#285738}.training-cell.awaiting-evidence,.training-cell.booked,.training-chip.awaiting-evidence{background:#e7f0ff;color:#28528a}.training-cell.recorded,.training-chip.recorded{background:#eef2f4;color:#52646d}.training-cell.not-applicable,.training-cell.not-current,.training-chip.not-applicable{background:#f3f3f3;color:#767c81}.training-cell.review{background:#f3e9fa;color:#693b81}.training-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.training-dialog .training-check{display:flex;flex-direction:row;align-items:center;gap:10px;margin:20px 0}.training-check input{width:20px;height:20px}.training-source{margin:20px 0;background:#f4f6f8;padding:14px;border-radius:8px}.training-source pre{white-space:pre-wrap;font:inherit}.training-dialog .button-row{margin-top:20px}.training-history-list details{margin:12px 0;padding:12px;border:1px solid #d9dfe4;border-radius:8px}.training-dialog table{width:100%;border-collapse:collapse}.training-dialog th,.training-dialog td{padding:10px;text-align:left;border-bottom:1px solid #d9dfe4}.training-record-list{display:grid;gap:12px}@media(max-width:900px){.training-filters{grid-template-columns:1fr 1fr}.training-edit-grid{grid-template-columns:1fr}}
.own-certifications-dialog{max-width:620px;width:calc(100% - 24px);box-sizing:border-box}.own-certifications-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.own-certification{border:1px solid #d8e0e4;border-left:5px solid #6e8795;border-radius:9px;padding:16px;margin:12px 0;background:white}.own-certification h3{margin:0 0 10px;font-size:17px}.own-certification p{margin:10px 0 0}.own-certification.expired,.own-certification.urgent{border-left-color:#bd3025}.own-certification.due{border-left-color:#c18a0a}.own-certification.current{border-left-color:#39734d}.own-certification.awaiting-evidence{border-left-color:#426cb0}.training-chip.urgent{background:#ffebe8;color:#94211a}
.rams-accept-card{border:1px solid #d7dfe2;border-left:5px solid #c28b18;border-radius:9px;padding:18px;margin:14px 0;background:#fff}.rams-accept-card.accepted{border-left-color:#3c7b4e}.rams-accept-card>header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:0;margin:0 0 14px;border:0;background:transparent}.rams-accept-card h4{margin:0 0 8px;font-size:17px}.rams-accept-card [data-assessment-state]{font-size:13px;color:#667880}.rams-accept-card details{margin:0!important}.rams-accept-card textarea,.rams-accept-card select,.rams-accept-card input{box-sizing:border-box;width:100%;font:inherit;padding:10px;border:1px solid #cbd6da;border-radius:7px;background:#fff}.rams-accept-card label{display:grid;gap:7px;margin:14px 0}.rams-review-save{position:sticky;bottom:0;background:#fff;border-top:1px solid #d9dfe2;padding:16px 0;margin:20px 0 0}@media(max-width:600px){.rams-accept-card>header{align-items:flex-start;flex-direction:column}}
.toolbox-dialog .tbt-pdf{display:block;width:100%;height:60vh;border:1px solid #d5dde2;margin:14px 0;background:white}.tbt-library{display:grid;gap:12px;margin:20px 0}.tbt-library article{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;border:1px solid #d8dfe4;border-radius:10px;background:#fff}.tbt-library h3{font-size:17px;margin:0 0 8px}.tbt-library p{font-size:12px;color:#6e7b85;margin:0}.tbt-library .button-row{flex-shrink:0}.tbt-table{width:100%;border-collapse:collapse;background:#fff}.tbt-table th,.tbt-table td{text-align:left;padding:14px;border-bottom:1px solid #d9e0e4;font-size:13px}.tbt-table small{display:block;color:#74818c;margin-top:6px}.tbt-filters{grid-template-columns:1fr 1fr 1fr auto;align-items:end;margin:22px 0}.tbt-people{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.toolbox-dialog label:not(.inline-check){display:grid;gap:8px;margin:18px 0}.toolbox-dialog input:not([type=checkbox]),.toolbox-dialog textarea{box-sizing:border-box;width:100%;font:inherit;padding:11px;border:1px solid #cbd5db;border-radius:7px}.toolbox-dialog a.secondary{display:inline-block;padding:10px;cursor:pointer}.tbt-own-list article{padding:18px;border:1px solid #d6dfe3;border-radius:10px;margin:14px 0}.tbt-import-notes{margin-top:20px}.tbt-import-notes button{margin:4px}.phone-action-bar{grid-template-columns:repeat(3,1fr)}@media(max-width:650px){.tbt-library article{display:block}.tbt-library .button-row{margin-top:15px;flex-wrap:wrap}.tbt-filters{grid-template-columns:1fr 1fr}.tbt-people{grid-template-columns:1fr}.phone-action{padding:12px 8px;grid-template-columns:1fr}.phone-action>span{font-size:12px}.phone-action>strong{justify-self:start}.phone-action>small{font-size:10px}}

.tbt-area-tabs{margin-bottom:20px}.tbt-table small{display:block;color:#667780;margin-top:5px}

.tbt-pdf{overflow:auto;background:#e9edef;padding:12px;box-sizing:border-box}.tbt-pdf-page{margin:0 auto 18px;max-width:900px}.tbt-pdf-page p{font-size:12px;color:#53636b;margin:3px 0 8px}.tbt-pdf-page canvas{width:100%;height:auto;display:block;background:white;box-shadow:0 2px 5px #0002}

.equipment-calibration-choice{display:grid!important;grid-template-columns:auto 1fr;align-content:start;align-items:center;gap:10px;border:1px solid #d4dfdb;border-radius:10px;padding:12px}.equipment-calibration-choice input{width:20px!important;height:20px;accent-color:#c7202a}.equipment-calibration-choice small{grid-column:1 / -1;font-weight:400;color:#667780}.equipment-form-grid input[readonly]{background:#f0f2f3;color:#687580}

/* Staff contract labels are separate from the booking status colours. */
.staff-employment-badge{display:table;width:max-content;max-width:100%;background:#dff5f4;border:1px solid #86c9c6;color:#075d64;border-radius:4px;padding:2px 5px;margin:3px 0;font-size:9px;font-weight:700;line-height:1.2;white-space:nowrap}
.schedule-board .person.staff-self-employed{background:#edf9f8;border-left:4px solid #13868c}
.schedule-board .staff-self-employed .avatar{background:#13868c;color:#fff}
.person-status-row .staff-employment-badge{margin:0}
.schedule-wide.compact-rows .staff-employment-badge{font-size:8px;padding:1px 4px;margin:1px 0}
#schedule-person-scope{min-width:180px;max-width:205px}

/* Keep the employment label inside the staff column, below the name/grade. */
.schedule-board .person-info{min-width:0;flex:1}
.schedule-board .person .avatar,.schedule-board .person .staff-drag-handle{flex-shrink:0}
.schedule-board .person.staff-self-employed{display:grid;grid-template-columns:31px minmax(0,1fr);column-gap:6px;row-gap:3px}
.schedule-board .person.staff-self-employed:has(.staff-drag-handle){grid-template-columns:14px 31px minmax(0,1fr)}
.schedule-board .staff-self-employed .person-info{min-width:0;overflow-wrap:anywhere}
.schedule-board .staff-self-employed .avatar{width:31px;height:31px}
.schedule-board .staff-self-employed>.staff-employment-badge{display:block;grid-column:1 / -1;justify-self:start;min-width:0;max-width:100%;width:auto;margin:0;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
.schedule-board .staff-self-employed:has(.staff-drag-handle)>.staff-employment-badge{grid-column:2 / -1}
.schedule-wide.compact-rows .person.staff-self-employed{grid-template-columns:minmax(0,1fr);row-gap:1px}
.schedule-wide.compact-rows .person.staff-self-employed:has(.staff-drag-handle){grid-template-columns:14px minmax(0,1fr)}

.customer-visit-scope{display:flex;align-items:center;gap:12px;font-weight:700;margin-bottom:16px}.customer-visit-scope select{max-width:100%;padding:9px 12px;border:1px solid #cfdbd7;border-radius:8px;background:white;font:inherit}
.rams-risk-introduction{border:1px solid #d8dfe3;border-radius:10px;padding:18px;margin:24px 0;background:#fafbfc}.rams-risk-introduction>h3{margin-top:0}.rams-risk-introduction table{background:white}.rams-risk-band-key{display:flex;gap:8px;flex-wrap:wrap}.rams-risk-band-key span{padding:9px 18px;border-radius:5px;color:#202326;font-weight:650}
.rams-library-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:125px}.rams-library-actions button{white-space:normal;min-height:42px}.rams-library-actions button:disabled{opacity:.65;cursor:default}

/* Keep the product title with the utility buttons and every workspace in view. */
#live-status{gap:12px}.live-product-name{font-size:13px;white-space:nowrap;margin-right:5px}.live-status-actions{min-width:0;flex-shrink:1;flex-wrap:wrap;justify-content:flex-end}#live-status button{white-space:nowrap}
@media(min-width:761px){
#live-status>span:first-child{flex:0 0 auto}.live-status-actions{column-gap:5px;row-gap:5px}
.admin-nav-top .brand>div{display:none}.admin-nav-top .brand{gap:0}.admin-nav-top .sidebar{gap:10px;overflow:visible;height:auto;min-height:48px}
.admin-nav-top .sidebar nav{flex:1 1 auto;min-width:0;flex-wrap:wrap;column-gap:3px;row-gap:4px;justify-content:space-between}
.admin-nav-top .nav-item{padding:7px 8px;gap:6px;font-size:11px}
.admin-nav-top .sidebar-bottom{margin:0;flex-shrink:0}.admin-nav-top .main{padding-top:var(--pil-nav-height,48px)}
}
@media(min-width:761px) and (max-width:1199px){.admin-nav-top .sidebar nav{justify-content:flex-start}.admin-nav-top .brand-logo{width:92px}.admin-nav-top .nav-item{padding:7px 6px}}
@media(max-width:760px){.live-product-name{font-size:12px}.live-status-actions{justify-content:flex-start;flex-wrap:wrap}#live-status{flex-wrap:wrap}}
