/* The office layout is shared by the Windows WebView and the desktop browser. */
@media screen {
  .icon { display: none; }
  .section-heading, .calendar-month, .list-pager, .section-links, .facts, .device-heading {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px;
  }
  .section-heading, .calendar-month, .device-heading { justify-content: space-between; }
  .section-heading { margin-bottom: 15px; }
  .section-heading h2, .device-heading h2 { margin: 0; }
  .count { color: #53666b; background: #eef3f3; padding: 3px 9px; border-radius: 20px; font-size: 12px; white-space: nowrap; }
  .agenda-rail, .dashboard-work > * { min-width: 0; }
  .calendar-month { font-size: 14px; margin-bottom: 12px; }
  .calendar-month nav { display: flex; gap: 3px; }
  .calendar-month nav a, .calendar-grid a { display: grid; place-items: center; text-decoration: none; color: inherit; border-radius: 7px; }
  .calendar-month nav a { width: 28px; height: 28px; font-size: 21px; border: 1px solid #dce5e5; }
  .calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px 1px; text-align: center; }
  .calendar-grid > span { color: #596d70; font-size: 11px; font-weight: 600; padding: 3px 0; }
  .calendar-grid a { position: relative; min-height: 27px; font-size: 13px; font-variant-numeric: tabular-nums; }
  .calendar-grid a[aria-current] { background: #08645e; color: white; font-weight: 700; }
  .calendar-grid a:hover, .calendar-month a:hover { background: #e1f1ee; color: #084f49; }
  .calendar-grid a.has-jobs::after, .calendar-key span { width: 4px; height: 4px; border-radius: 50%; background: #0e7f73; }
  .calendar-grid a.has-jobs::after { content: ""; position: absolute; bottom: 1px; left: calc(50% - 2px); }
  .calendar-grid a.has-jobs[aria-current]::after { background: white; }
  .calendar-key { display: flex; align-items: center; gap: 7px; color: #52696a; font-size: 11px; border-top: 1px solid #e1e9e8; margin-top: 12px; padding-top: 10px; }
  .calendar-key span { width: 6px; height: 6px; }
  .record-link { font-weight: 650; text-decoration: none; }
  .record-link:hover, .row-action:hover { text-decoration: underline; }
  .subline { font-size: 12px; line-height: 1.4; }
  .list-pager { justify-content: flex-end; border-top: 1px solid #e1e8e6; padding-top: 12px; font-size: 13px; }
  .list-pager span { margin-right: auto; color: #52696a; }
  .list-pager a { padding: 5px 8px; }
  .last-call { font-size: 12px; }
  .last-call summary { color: #536a69; margin-bottom: 0; }
  .maintenance-list td time { display: block; margin-bottom: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .row-action { font-weight: 600; text-decoration: none; }
  .status, .tag { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 650; padding: 3px 8px; border-radius: 20px; background: #e5f2ed; color: #205b48; }
  .status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .status.SCHEDULED { background: #e7f0fa; color: #325c83; }
  .status.WAITING_PART, .tag.late { background: #fff0df; color: #824119; }
  .status.CANCELLED { background: #eef0f1; color: #526065; }
  .section-links { margin: 0 0 18px; gap: 4px 14px; }
  .section-links a { text-decoration: none; padding: 5px 0; border-bottom: 1px solid #abc9c2; font-size: 14px; }
  .section-links a:hover { border-color: #075e57; }
  .facts { align-items: start; gap: 12px 32px; margin: 16px 0; }
  .facts dt { color: #566b6c; font-size: 12px; }
  .facts dd { margin: 3px 0 0; font-weight: 600; }
  .search-band { margin: 0 0 18px; }
  .customer-search .search-label { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .customer-search label { position: relative; }
  .callback-panel .entries li { display: block; }
  .customer-heading .muted { margin: 4px 0; }
  .device-heading { margin-bottom: 12px; }
  .amount-summary { font-weight: 650; color: #154e49; padding: 12px 14px; background: #eff6f3; border-radius: 8px; }
}
@media screen and (min-width: 980px) {
  :root { background: #f5f7f8; color: #1c3038; font-family: "Segoe UI", Inter, Arial, sans-serif; }
  body:has(> .office-shell) { grid-template-columns: 204px minmax(0,1fr); }
  .office-shell { background: #fff; border-right: 1px solid #dce4e6; color: #203740; }
  .office-shell .bar { padding: 25px 13px 18px; gap: 23px; }
  .office-shell .brand { color: #133e44; border-bottom: 1px solid #e6ebed; padding: 0 6px 23px; gap: 8px; }
  .office-shell .brand img { width: 33px; height: 33px; }
  .office-shell nav { gap: 3px; }
  .office-shell nav a { display: flex; align-items: center; gap: 11px; color: #475960; font-size: 13px; font-weight: 550; padding: 11px 10px; border-radius: 7px; min-height: 40px; }
  .office-shell nav a:nth-child(4), .office-shell nav a:nth-child(7) { margin-top: 10px; }
  .office-shell nav a:hover { color: #145752; background: #f1f5f5; }
  .office-shell nav a[aria-current] { color: #09605a; background: #e3f1ee; box-shadow: none; }
  .office-shell .bar form { border-top: 1px solid #e6ebed; }
  .office-shell .quiet { color: #526368; border-color: transparent; padding-left: 4px; }
  .office-shell :focus-visible { outline-color: #137970; }
  .office-shell + main { width: min(calc(100% - 48px), 1390px); padding: 27px 0 60px; }
  .icon { font-family: "Segoe MDL2 Assets","Segoe Fluent Icons"; font-style: normal; font-size: 16px; font-weight: normal; line-height: 1; display: inline-flex; flex: none; align-items: center; justify-content: center; }
  .overview::before { content: "\E80F"; } .people::before { content: "\E77B"; } .calendar::before { content: "\E787"; }
  .box::before { content: "\E7B8"; } .catalog::before { content: "\E8F1"; } .wallet::before { content: "\E8C7"; }
  .import::before { content: "\E896"; } .team::before { content: "\E716"; } .help::before { content: "\E897"; }
  .exit::before { content: "\F3B1"; } .plus::before { content: "\E710"; } .forward::before { content: "\E72A"; }
  .clock::before { content: "\E823"; } .phone::before { content: "\E717"; } .search::before { content: "\E721"; }
  .photo::before { content: "\E91B"; } .chart::before { content: "\E8A5"; }
  h1 { font-size: 32px; line-height: 1.16; font-weight: 660; letter-spacing: -.04em; margin: 0 0 21px; }
  h2 { font-size: 18px; line-height: 1.35; letter-spacing: -.023em; font-weight: 650; }
  main { font-size: 14px; line-height: 1.45; }
  .page-heading { margin-bottom: 20px; }
  .page-heading time { display: block; margin-top: 5px; color: #5b6d71; font-size: 13px; }
  .daily-actions { gap: 8px; }
  button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #08635c; border-radius: 7px; padding: 8px 13px; min-height: 36px; font-size: 13px; font-weight: 600; }
  button.quiet, .button.quiet { color: #234a4a; background: #fff; border-color: #c9d7d5; }
  .panel { padding: 20px; border-color: #dce4e6; border-radius: 12px; box-shadow: 0 2px 4px #22363a05; }
  a, summary { color: #09635e; text-underline-offset: 3px; }
  .back { color: #577075; font-size: 12px; text-decoration: none; margin-bottom: 12px; }
  .back:hover { text-decoration: underline; }
  .muted, .subline, .entries span { color: #566a70; }
  .dashboard-work { display: grid; gap: 16px; grid-template-columns: minmax(0,1fr) clamp(206px,19vw,280px); align-items: start; }
  .home-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
  .home-metrics > div { position: relative; background: #fff; padding: 14px 15px; border: 1px solid #dce4e6; border-radius: 11px; }
  .home-metrics dt { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #52676c; }
  .home-metrics .icon { border-radius: 8px; width: 27px; height: 27px; color: #28716b; background: #e9f3ef; font-size: 14px; }
  .home-metrics dd { font-size: clamp(22px,2.15vw,32px); font-weight: 650; margin: 9px 0 0; letter-spacing: -.045em; }
  .metrics.home-metrics > .overdue { color: #fff; background: #145d58; border-color: #145d58; }
  .home-metrics .overdue dt, .home-metrics .overdue dd a:hover, .home-metrics .overdue dd a:focus-visible { color: #fff; }
  .home-metrics .overdue .icon { color: #fff; background: #ffffff22; }
  .home-metrics dd a::after { content: ""; position: absolute; inset: 0; border-radius: 11px; }
  .home-metrics div:has(a):hover { box-shadow: 0 2px 8px #123e391a; }
  .maintenance-list { padding: 17px 15px 13px; }
  .maintenance-list .section-heading { padding: 0 3px; }
  .maintenance-list .scroll { margin: 0 -4px; }
  .maintenance-list table { font-size: 13px; }
  table thead th { background: #f2f5f6; color: #4d6368; font-size: 12px; font-weight: 650; }
  td, th { padding: 10px 9px; }
  .maintenance-list td, .maintenance-list th { padding: 8px 6px; }
  .maintenance-list .row-action { display: inline-block; }
  .calendar-panel, .callback-panel { padding: 17px 15px; }
  .calendar-panel h2 { margin-bottom: 10px; }
  .customer-search { gap: 8px; align-items: center; }
  .customer-search label > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #697d80; pointer-events: none; }
  .customer-search input { padding-left: 37px; }
  .customer-search button { color: #185a54; background: #fff; border-color: #bdcecd; min-height: 39px; }
  input, select, textarea { border-color: #b9c9cb; color: #243a40; font-weight: 450; border-radius: 7px; }
  .stack { gap: 13px; }
  fieldset { border: 1px solid #d5e1df; border-radius: 8px; padding: 13px; }
  .customer-heading { padding: 18px 21px; background: #fff; border: 1px solid #dce4e6; border-radius: 12px; }
  .customer-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 10px 18px; }
  .customer-identity { grid-column: 1; display: flex; gap: 13px; align-items: flex-start; }
  .customer-avatar { display: grid; place-items: center; flex: 0 0 43px; height: 43px; border-radius: 12px; background: #e2efec; color: #12615b; }
  .customer-avatar .icon { font-size: 22px; }
  .customer-heading > .customer-actions { grid-column: 2; grid-row: 1; }
  .contact-options { grid-column: 1 / -1; margin: 0; }
  .contact-options:not([open]) summary { margin: 0; }
  .contact-options .stack { max-width: 540px; }
  .device-facts { gap: 10px 27px; padding-block: 11px; border-block: 1px solid #e0e7e7; }
  .device-card .scroll { margin-block: 8px 12px; }
  .device-card > details { border-top: 1px solid #e0e7e7; padding-top: 8px; }
  .customer-heading h1 { margin-bottom: 6px; }
  .customer-heading small { color: #566a70; }
  .visit-summary .facts { border-block: 1px solid #e1e9e9; padding-block: 12px; }
  .visit-summary p { margin: 6px 0; }
  .login { padding-top: 11vh; }
  .login .panel { padding: 26px; }
}
@media screen and (min-width: 980px) and (max-width: 1100px) {
  body:has(> .office-shell) { grid-template-columns: 184px minmax(0,1fr); }
  .office-shell + main { width: calc(100% - 32px); }
  .dashboard-work { gap: 12px; grid-template-columns: minmax(0,1fr) 200px; }
  .home-metrics > div { padding: 12px 10px; }
}
@media screen and (max-width: 979px) {
  .customer-avatar { display: none; }
  .contact-options { width: 100%; }
  .calendar-panel { max-width: 440px; }
  .calendar-grid a { min-height: 36px; }
  .maintenance-list .scroll { max-width: 100%; }
}

@media screen {
  .finance-day { margin: 0 0 16px; }
  .finance-day label { flex: 0 1 170px; }
}
