/* Fresh local Office frontend: presentation over the existing process handlers.
   Loaded after native styles. The approved Home and non-Office views are excluded.
   Source palette/spacing: editable-source/system-workflow-v2.html, 19 Oct 2026.
   Native warnings, report contents, permission gates and calendar sizing remain. */
@media (min-width: 1001px) {
  body.toza-new-site.office-shell:not(.office-home) #main {
    --ink: #173332;
    --muted: #526866;
    --line: #d7e3df;
    --border: #d7e3df;
    --teal: #076f68;
    --surface: #fff;
    --bg: #f3f6f5;
    max-width: none;
    min-width: 0;
    padding: 20px 22px 24px;
    background: #f3f6f5;
    color: #173332;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
  }

  body.toza-new-site.office-shell:not(.office-home) #main > .page-heading {
    align-items: center;
    gap: 16px;
    margin: -20px -22px 16px;
    padding: 17px 22px 14px;
    background: #fff;
    border-bottom: 1px solid #d7e3df;
  }
  body.toza-new-site.office-shell:not(.office-home) #main > .page-heading h1,
  body.toza-new-site.office-shell:not(.office-home) #main > h1 {
    margin: 0 0 5px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
  }
  body.toza-new-site.office-shell:not(.office-home) #main > .page-heading .lead {
    max-width: 90ch;
    margin: 0;
    font-size: 13px;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .page-heading .kicker {
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .06em;
  }
  body.toza-new-site.office-shell:not(.office-home) #main :is(.panel, .card) {
    padding: 18px 20px;
    margin-bottom: 16px;
    border-color: #d7e3df;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
  }
  body.toza-new-site.office-shell:not(.office-home) #main :is(.panel, .card) > h2 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
  }
  body.toza-new-site.office-shell:not(.office-home) #main :is(.toolbar, .section-title) {
    gap: 7px;
  }
  body.toza-new-site.office-shell:not(.office-home) #main :is(.settings-grid, .customer-detail-grid) {
    gap: 16px;
  }

  /* Reuse existing button semantics and colours; compact only process controls.
     In particular, no rule hides or recolours a technical hold or danger action. */
  body.toza-new-site.office-shell:not(.office-home) #main :is(.page-heading, .toolbar, .section-title, .customer-directory-tools, .finance-toolbar) > :is(button, .button),
  body.toza-new-site.office-shell:not(.office-home) #main :is(form, .job-planning-wizard) :is(button, .button) {
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .secondary {
    background: #f3f6f5;
    color: #173332;
    border: 1px solid #d7e3df;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .field {
    gap: 5px;
    margin-bottom: 12px;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .field > span {
    font-size: 12px;
    font-weight: 500;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .field > :is(input, select, textarea) {
    min-height: 34px;
    padding: 6px 8px;
    border-color: #bdcec9;
    border-radius: 4px;
    background: #fff;
    color: #173332;
    font-size: 13px;
    line-height: 1.5;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .field > textarea {
    min-height: 88px;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .customer-directory-tools {
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto;
    gap: 12px;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .customer-directory-tools > .button {
    margin-bottom: 12px;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .customer-directory-row {
    padding: 12px 10px;
    border-bottom-color: #d7e3df;
    font-size: 13px;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .customer-directory-row:hover {
    background: #f3f6f5;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .customer-directory-row > span {
    margin-top: 3px;
    font-size: 12px;
    color: #526866;
  }
  body.toza-new-site.office-shell:not(.office-home) #main :is(.finance-record, .message-summary) {
    padding: 12px 0;
    border-bottom-color: #d7e3df;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .pl-toolbar {
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 12px;
    background: #fff;
  }

  /* The scheduler keeps native grid geometry, chip limits, scroll regions,
     tooltips and status classes. These are surface/typography adaptations. */
  body.toza-new-site.office-shell:not(.office-home) #main:has(.scheduler-bookings-calendar) {
    padding: 8px 14px 20px;
    background: #e9e9e9;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .scheduler-page-heading {
    margin: -8px -14px 8px;
    padding: 12px 14px;
    min-height: 49px;
    border-bottom: 1px solid #bfc5ca;
    background: #fff;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .scheduler-page-heading h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .scheduler-bookings-calendar {
    padding: 8px 10px;
    border: 1px solid #bfc5ca;
    border-radius: 2px;
    background: #e9e9e9;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .scheduler-bookings-calendar .sc-heading {
    align-items: center;
    gap: 8px;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .scheduler-bookings-calendar .sc-period {
    margin: 2px 0;
    font-size: 14px;
    font-weight: 600;
  }
  body.toza-new-site.office-shell:not(.office-home) #main :is(.sc-view-tabs, .sc-date-navigation) > button {
    min-height: 28px;
    padding: 4px 7px;
    border: 1px solid #bfc5c9;
    border-radius: 2px;
    font-size: 12px;
    line-height: 1.35;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .sc-view-tabs > button[aria-selected="true"] {
    background: #337eae;
    color: #fff;
    border-color: #2b6b94;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .sc-main-tools .field > :is(input, select) {
    min-height: 28px;
    padding: 4px 6px;
    border-color: #bfc5c9;
    border-radius: 2px;
    font-size: 12px;
    line-height: 1.35;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .sc-queue-pane {
    border: 1px solid #b8bec2;
    border-radius: 0;
    background: #f4f4f4;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .sc-queue-details > summary {
    min-height: 33px;
    padding: 8px 10px;
    background: #252525;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .sc-week {
    border-spacing: 0;
    background: #e9e9e9;
    font-size: 11px;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .sc-week :is(th, td) {
    border-color: #c6cbd0;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .sc-week th {
    background: #f6f6f6;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .sc-week th:first-child {
    background: #dedede;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .sc-booking {
    margin: 0 0 5px;
    padding: 5px 6px;
    border-radius: 2px;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .sc-booking :is(h4, .sc-booking-time) {
    font-size: 11px;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .sc-booking p {
    font-size: 10px;
    line-height: 1.3;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .sc-list {
    font-size: 12px;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .sc-list :is(th, td) {
    padding: 8px 7px;
    border-color: #c8d0d6;
  }
  body.toza-new-site.office-shell:not(.office-home) #main .sc-list th {
    background: #e9edf0;
    color: #435360;
    font-weight: 600;
  }
}
