/* Clearer contrast and type, plus workspace-owned agency portals. */
:root{--ink:#132f39;--muted:#485d66;--teal:#08757d;--line:#ccd9d7}body{font-size:15px;color:var(--ink)}.muted,.small,.statsnote,.footer,.reference,.sub{color:#485d66}.small,.statsnote,.footer,.reference{font-size:12px}.pagehead p,.panelhead p,.task p,.step p,.decision p,.demohelp p{font-size:13px;color:#435d63;line-height:1.65}.field{font-size:13px}.field small{color:#485d66;font-size:12px}.field input,.field select,.field textarea,.notes{font-size:14px;min-height:43px;border-color:#b6c9c6}.field input:disabled,.field select:disabled{color:#304f59;background:#edf3f1;opacity:1}.field.check input{min-height:auto}.btn{font-size:13px;min-height:39px}.btn.small{font-size:12px;min-height:34px}.navitem{font-size:14px;color:#d2e2e5}.navlabel{color:#b2cdd2;font-size:11px}.user small,.pilotcard{color:#c3d9dc}.pilotcard strong{color:white}.kpitop,.kpi .caption{font-size:13px;color:#485d66}.kpi .number{color:#102e38}.pipeitem{font-size:12px;color:#435963}.pipeitem .bar{height:6px}.panelhead h2{font-size:17px}th{font-size:11px;color:#3d5560}td{font-size:13px;color:#183640}td strong{font-size:14px}td .sub{font-size:12px;color:#485d66;line-height:1.5}.reference{font-weight:600;letter-spacing:.3px}.tablefoot{font-size:12px;color:#485d66}.task strong{font-size:14px}.notice,.rolehint{font-size:13px;color:#315b53}.notice.warn{color:#79571d}.rolehint{color:#35576e}.demo-banner{font-size:12px;color:#305b54}.demo-banner button{font-size:12px}.tag{font-size:12px;color:#345b4f;background:#edf4ef;border-color:#c7d9cf}.pill{font-size:12px;font-weight:700;padding:7px 10px;border:1px solid #0000000d}.pill.s0{color:#80530b;background:#fff0ce}.pill.s1{color:#51468c;background:#efebfd}.pill.s2{color:#235880;background:#e6f1fc}.pill.s3{color:#126455;background:#e0f3ec}.pill.s4{color:#185575;background:#e0f2fc}.pill.s5{color:#664182;background:#f0e9f8}.pill.s6{color:#795215;background:#fcf0d5}.pill.s7{color:#0f614e;background:#dcf2e8}.pill.s8{color:#365d50;background:#e8f1eb}.pill.hold{color:#825020;background:#fff0e0}.pill.cancel{color:#883b3b;background:#fbe5e5}.pill:before{width:6px;height:6px}.segmented button{font-size:13px;color:#43575f}.jobcard p,.cardfoot,.caljob{font-size:12px;color:#435b63}.jobcard h4{font-size:14px}.dlist{font-size:14px;grid-template-columns:116px minmax(0,1fr);gap:13px}.dlist dt{color:#435b63;font-weight:500}.dlist dd{overflow-wrap:anywhere}.dlist dd strong{font-size:15px}.detailsection h3{font-size:16px}.event{font-size:13px}.event time{font-size:12px;color:#485d66}.error{font-size:14px;font-weight:600}.detailgrid{gap:30px}.dialogbody{padding:25px 28px}.dialoghead{padding:23px 28px}.dialoghead .small{color:#485d66;font-size:13px}dialog{max-width:940px}.booking-badges{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:12px;margin-bottom:25px}.detailbadge{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px;text-align:left;min-height:88px;padding:14px 16px;border-radius:10px;border:1px solid #b9d1cd;background:#f3f8f6;color:#193d46}.detailbadge:hover{background:#e5f2ee;border-color:#20877e;box-shadow:0 2px 8px #16333c12}.detailbadge strong{font:700 15px Manrope,system-ui,sans-serif}.detailbadge>span,.detailbadge>span>span{font-size:12px;display:block;color:#365f63}.detailbadge .pill{font-size:14px;display:inline-flex}.agencybadge{flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;background:white}.agencybadge>span>span{margin-top:7px}.agency-logo{width:90px;height:42px;object-fit:contain;object-position:center;background:#fff;border-radius:4px;flex-shrink:0}.agency-inline{display:flex;align-items:center;gap:10px}.agency-inline .agency-logo{width:65px;height:29px}.agency-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.agency-brand{background:#fff;height:105px;padding:22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:flex-start}.agency-brand .agency-logo{width:180px;height:63px;max-width:100%}.agency-card .panelbody h2{font-size:20px}.agency-contacts{font-size:13px;color:#435b63;line-height:1.9;margin:13px 0 20px;overflow-wrap:anywhere}.agency-card .actions{align-items:stretch}.agency-card .actions .btn{flex:1}.agency-identity{display:flex;align-items:center;gap:22px}.agency-identity .agency-logo{width:155px;height:64px}.agency-identity p{color:#435b63;font-size:13px;margin-top:8px;line-height:1.6}.portal-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;border:1px solid var(--line);border-radius:12px;background:white;padding:24px;margin-bottom:18px}.portal-selectors{display:flex;gap:16px;min-width:360px}.portal-selectors .field{flex:1}.agent-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:20px}.agent-profile{padding:18px;border-radius:9px;border:1px solid var(--line);background:#f7faf8}.agent-profile>div{display:flex;align-items:center;gap:10px}.agent-profile p{font-size:14px;color:#3e5961;line-height:1.9;overflow-wrap:anywhere;margin:13px 0}.contact-preview{display:flex;flex-wrap:wrap;gap:9px 24px;border:1px solid #c8dcd5;background:#eef7f3;padding:14px 16px;border-radius:8px;font-size:14px;font-weight:400}.contact-preview strong{width:100%;font-weight:700}.contact-preview span{overflow-wrap:anywhere}.formsection{font-size:15px}.step h3,.decision label{font-size:14px}.stepnum{font-size:13px}.decision select{font-size:13px}.statsnote{line-height:1.7}.topbar .role{font-size:13px}.topbar .role select{font-size:13px}.team .tag{font-size:13px}.footer{line-height:1.6}.dayhead{font-size:13px;color:#485d66}
@media(max-width:1250px){.agency-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-heading{align-items:flex-start;flex-direction:column}.portal-selectors{width:100%;min-width:0}}
@media(max-width:800px){.agency-grid,.agent-list{grid-template-columns:1fr}.booking-badges{grid-template-columns:1fr 1fr}.agencybadge{grid-column:1/-1;min-height:80px}.detailbadge{min-height:80px;padding:12px}.detailgrid{gap:20px}.portal-heading{padding:18px}.agency-identity{gap:14px}.agency-identity .agency-logo{width:110px;height:52px}.portal-selectors{flex-wrap:wrap}.portal-selectors .field{min-width:160px}.dlist{font-size:14px;grid-template-columns:110px minmax(0,1fr)}.pipeitem{font-size:10px}.kpi .caption{font-size:12px}.field{font-size:13px}.dialogbody{padding:20px}.demo-banner .secondary{display:none}.topbar .workspace select{font-size:12px}}

.sidebar .small{color:#eaf4f5}.sidebar .user small{color:#c3d9dc}

.notification-bell{position:relative;overflow:visible}.notification-count{position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;padding:0 4px;border-radius:12px;background:#a52b24;color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid white}.reallocation-alerts{margin-bottom:24px;background:#fff6ed;border:1px solid #cf8759;border-left:5px solid #aa4a20;border-radius:10px;padding:17px 20px;color:#69321c}.reallocation-heading{display:flex;align-items:center;gap:10px;font-size:16px}.reallocation-heading svg{width:22px;height:22px;flex-shrink:0}.reallocation-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:14px;margin-top:14px;border-top:1px solid #e7c5aa}.reallocation-row strong{font-size:14px}.reallocation-row p{font-size:13px;margin:6px 0;line-height:1.6}.reallocation-row small{font-size:12px;color:#754c38}.reallocation-row .btn{background:#963d1b;color:#fff;border-color:#963d1b;flex-shrink:0}.reallocation-row .btn:hover{background:#793016}.reallocation-label{display:block;width:fit-content;margin-top:7px;padding:5px 8px;border-radius:5px;background:#fff1e3;color:#853a1b;border:1px solid #d8a580;font-size:12px;font-weight:700}.decline-notice{background:#fff6ed;border:1px solid #cf8759;color:#69321c;line-height:1.7}.decline-notice small{font-size:12px}.notification strong{display:block;margin-bottom:5px}
@media(max-width:800px){.reallocation-row{align-items:flex-start;flex-direction:column;gap:12px}.reallocation-row .btn{width:100%}.reallocation-alerts{padding:15px}.reallocation-heading{font-size:14px}}

/* Keep price and clerk controls aligned when a label wraps. */
.allocation-fields{align-items:end;grid-template-columns:repeat(2,minmax(0,1fr))}
.allocation-fields .field{min-width:0}
.allocation-fields input,.allocation-fields select{height:44px;min-height:44px}
@media(max-width:800px){.allocation-fields{grid-template-columns:1fr}}
/* Column filtering and sorting */
.column-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:8px 0;background:transparent;color:#234853;text-align:left;font:inherit;font-weight:700;text-transform:uppercase;letter-spacing:.4px;cursor:pointer;border-radius:4px}
.column-heading:hover,.column-heading.is-filtered{color:#006e75}.column-heading:focus-visible{outline:2px solid #08757d;outline-offset:4px}.column-indicator{font-size:16px;color:#08757d;white-space:nowrap}.table-controls-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:#f5f9f7;border-bottom:1px solid var(--line);font-size:12px;color:#36535d}.table-controls-summary .btn:disabled{opacity:.5;cursor:default}.column-menu{position:fixed;inset:auto;margin:0;width:330px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:auto;padding:20px;border:1px solid #b6ccc8;border-radius:12px;background:white;color:#132f39;box-shadow:0 12px 45px #102e3833}.column-menu::backdrop{background:transparent}.column-menu form{display:grid;gap:16px}.column-menu-title{display:flex;align-items:center;justify-content:space-between;font-size:15px}.column-menu-title .iconbtn{font-size:24px}.column-range{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.column-range input{min-width:0}.column-menu-help{font-size:12px;color:#485d66;line-height:1.6}.column-menu .actions{justify-content:space-between}.table-no-matches{padding:28px 20px}.tablewrap tr[hidden],.table-no-matches[hidden]{display:none}
@media(max-width:600px){.table-controls-summary{align-items:flex-start;flex-direction:column}.column-menu{padding:16px}}
.booking-scope{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:0 0 20px}.panel>.booking-scope{padding:16px 20px;margin:0;border-bottom:1px solid var(--line)}.booking-scope p{font-size:12px;line-height:1.6;color:#435b63}.booking-scope .segmented button{display:flex;align-items:center;gap:8px;padding:9px 14px}.booking-scope .segmented button.active{background:#08757d;color:white}.scope-count{display:inline-block;font-size:11px;min-width:20px;border-radius:4px;background:#0000000b;padding:2px 5px}.active .scope-count{background:#ffffff25}
.inspection-media{margin-top:28px;border:1px solid #b9d1cd;border-radius:12px;padding:22px;background:#f8fbfa;scroll-margin-top:115px}.media-heading{display:flex;justify-content:space-between;gap:15px;align-items:start;margin-bottom:18px}.media-heading h3{font-size:18px}.media-heading p{font-size:13px;line-height:1.6;color:#435b63;margin-top:8px}.media-upload{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.media-upload p{flex-basis:100%;font-size:12px;line-height:1.6;color:#435b63}.media-upload label{position:relative;overflow:hidden;cursor:pointer}.media-upload input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.media-upload label:focus-within{outline:3px solid #64b7ad;outline-offset:3px}.media-progress{font-size:13px;margin:12px 0}.media-file-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.media-file{border:1px solid #c9d9d5;border-radius:9px;padding:14px;background:#fff;min-width:0}.media-file strong{font-size:14px;overflow-wrap:anywhere;display:block;margin:12px 0 6px}.media-file-meta{font-size:12px;color:#435b63;margin-bottom:10px}.media-file.audio{grid-column:1/-1}.media-preview{font-size:13px;line-height:1.6;color:#435b63}.media-preview img{width:100%;height:175px;object-fit:contain;background:#edf3f1;border-radius:6px}.media-preview audio{width:100%;display:block}.media-download{display:inline-block;margin-top:8px;font-size:12px;font-weight:600;color:#006d75}.media-empty{grid-column:1/-1;padding:24px;border:1px dashed #aac7bf;border-radius:8px;font-size:14px;line-height:1.7;text-align:center}.media-instructions{margin:20px 0}.media-note{white-space:pre-wrap;font-size:14px;font-weight:400;line-height:1.7;padding:14px;background:#fff;border:1px solid #d3e0db;border-radius:8px}.media-check{font-size:14px;line-height:1.7;align-items:flex-start!important}.media-check input{margin-top:5px;flex-shrink:0;width:18px!important;height:18px;accent-color:#08757d}.media-send{display:flex;align-items:center;gap:16px;margin-top:18px}.media-send span{font-size:12px;color:#435b63;line-height:1.6}.inspection-media button:disabled{opacity:.5;cursor:wait}.pill.s5{color:#795215;background:#fcf0d5}.pill.s6{color:#235880;background:#e6f1fc}.pill.s7{color:#664182;background:#f0e9f8}.pill.s8{color:#795215;background:#fcf0d5}.pill.s9{color:#0f614e;background:#dcf2e8}.pill.s10{color:#365d50;background:#e8f1eb}
@media(max-width:600px){.inspection-media{padding:16px}.media-heading,.media-send{flex-direction:column}.media-file-grid{grid-template-columns:1fr}.media-preview img{height:200px}}

/* Returned reports remain distinct from first-draft work. */
.correction-label{display:block;width:fit-content;background:#fff0d6;color:#804b0b;border:1px solid #e7c17b;border-radius:5px;padding:4px 7px;font-size:11px;font-weight:700;margin-top:7px;white-space:normal}
.correction-alert{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff8e9;border:1px solid #e7c17b;border-left:4px solid #b76b16;border-radius:10px;padding:18px 20px;margin:0 0 24px;color:#67400c}
.correction-alert svg{width:19px;height:19px;vertical-align:middle;margin-right:8px}.correction-alert p{margin:5px 0 0;font-size:13px;line-height:1.5}.correction-alert .btn{flex-shrink:0}
.correction-kpi{border-color:#e7c17b;background:#fffaf0}.correction-queue-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 24px;border-top:1px solid #e8ecea}.correction-queue-row>div{min-width:0}.correction-queue-row strong{display:block;margin-top:10px}.correction-queue-row p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:14px;margin:9px 0}.correction-queue-row small{color:#596a68}.correction-queue-row .btn{flex-shrink:0}.correction-history{margin-top:24px}
@media(max-width:700px){.correction-alert,.correction-queue-row{align-items:stretch;flex-direction:column;gap:14px}.correction-queue-row{padding:18px}.correction-queue .panelhead{align-items:flex-start}.correction-alert .btn,.correction-queue-row .btn{align-self:flex-start}}

/* Report versions: typist upload, version list and full-history link */
.linkbtn{background:none;border:0;padding:6px 0;margin-top:4px;color:#0f6b6a;font:inherit;font-size:13px;font-weight:600;text-decoration:underline;cursor:pointer}
.linkbtn:hover{color:#0a4f4e}
.report-upload{border:1px solid #c9d9d5;border-radius:9px;padding:14px;margin:14px 0;background:#fff}
.report-upload h4{margin:0 0 10px;font-size:14px}
.report-upload .actions{margin-top:10px}
.report-upload label.btn input{display:none}
.report-staged{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:space-between}
.report-staged>div{min-width:0}
.report-staged strong{display:block;overflow-wrap:anywhere;font-size:14px}
.report-staged span{font-size:12px;color:#435b63}
.report-versions{margin-top:22px}
.report-versions h3{margin-bottom:10px}
.report-version{border:1px solid #c9d9d5;border-radius:9px;padding:12px 14px;margin-bottom:10px;background:#fff}
.report-version-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.report-version-head strong{overflow-wrap:anywhere;font-size:14px}
.report-version .media-file-meta{margin:6px 0 8px}
.report-version [data-report-link]{display:flex;gap:8px;flex-wrap:wrap;font-size:12px;color:#435b63}
.report-status.ok{background:#e3f3ec;color:#17603f}
.report-status.warn{background:#fdf0d8;color:#7a4a00}
.report-corrections-due p{margin:8px 0 4px}
.report-version a.btn,.report-staged a.btn{text-decoration:none}
/* Report version marker on status labels */
.version-tag{display:inline-block;margin-left:5px;padding:0 5px;border-radius:4px;background:rgba(255,255,255,.75);border:1px solid currentColor;font-size:10px;font-weight:700;line-height:15px;vertical-align:1px}
.pill:has(.version-tag),.correction-label:has(.version-tag){white-space:nowrap}

/* Keep preview identity controls usable at narrow widths. */
.topright{flex-wrap:wrap;gap:10px}.topbar{flex-wrap:wrap;gap:12px}.role select{max-width:190px}

.agency-logo-preview{min-height:80px;display:flex;align-items:center;margin:10px 0;padding:12px;border:1px solid #d5dfdc;border-radius:10px;background:#fff}.agency-logo-preview img{max-width:240px;max-height:100px;object-fit:contain}#agencyLogoFile{max-width:100%}#removeAgencyLogo[hidden]{display:none}

.landlord-fields{grid-column:1/-1;min-width:0;border:1px solid #c8dcd5;border-radius:10px;padding:18px;margin:0}.landlord-fields legend{padding:0 8px;font-weight:700}.landlord-fields[hidden],.landlord-fields label[hidden],#bookingForm label[hidden]{display:none}

.address-fields{grid-column:1/-1;min-width:0;border:1px solid #c8dcd5;border-radius:10px;padding:18px;margin:0}.address-fields legend{padding:0 8px;font-weight:700}.address-fields[hidden]{display:none}

.live-order-value{display:grid;grid-template-columns:minmax(220px,1fr) 2fr;gap:18px 28px;padding:22px;margin-bottom:24px}.live-value-total h2{font-size:16px;margin:0 0 8px}.live-value-total>strong{font-size:32px;line-height:1.2;font-variant-numeric:tabular-nums}.live-value-total p,.live-value-note{font-size:12px;color:var(--muted,#62746e);line-height:1.5;margin:6px 0 0}.live-value-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-content:center;margin:0}.live-value-breakdown dt{font-size:13px;line-height:1.4}.live-value-breakdown dd{margin:8px 0 0;font-size:20px;font-weight:650;font-variant-numeric:tabular-nums}.live-value-note{grid-column:1/-1;border-top:1px solid #dde8e3;padding-top:12px;margin:0}@media(max-width:700px){.live-order-value{grid-template-columns:1fr}.live-value-breakdown{grid-template-columns:1fr;gap:12px}.live-value-breakdown>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.live-value-breakdown dd{margin:0}}

/* Contextual help shares the same trigger in forms, dialogs and the workspace. */
.field-help { display:inline-flex; vertical-align:middle; text-transform:none; letter-spacing:normal; }
.help-trigger { display:inline-grid; place-items:center; width:26px; height:26px; padding:0; border:0; background:transparent; color:var(--teal); cursor:help; }
.help-trigger > span { border:1.5px solid currentColor; border-radius:50%; width:17px; height:17px; font:700 12px/15px Georgia,serif; text-align:center; }
.help-trigger:focus-visible { outline:2px solid currentColor; outline-offset:1px; border-radius:4px; }
.help-bubble { position:fixed; inset:auto; margin:0; z-index:100; box-sizing:border-box; width:max-content; max-width:min(19rem,calc(100vw - 16px)); padding:9px 12px; border:1px solid var(--line); border-radius:6px; background:white; color:var(--ink); box-shadow:0 3px 12px #0002; font:normal 14px/1.45 system-ui,sans-serif; text-align:left; white-space:normal; }
.help-bubble[hidden] { display:none; }
.preview-status { display:inline-flex; align-items:center; font-size:.8rem; }
@media print { .field-help { display:none; } }
