:root {
  font-family: "Segoe UI", sans-serif;
  color: #202747;
  background: #f2f6f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #202747;
  --blue: #205c83;
  --yellow: #ffcc00;
  --blue-soft: #e4f0f6;
  --yellow-soft: #fff5c2;
  --muted: #778197;
  --border: #e7eaf0;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(ellipse at 8% 24%, #e7f1f6 0, transparent 36%), radial-gradient(ellipse at 94% 58%, #fff8df 0, transparent 28%); }
body::before { content: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { max-width: 1240px; padding: 0 36px; margin: 0 auto; }
.topbar { position: relative; height: 86px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid #e7eaf0; }
.topbar::after { position: absolute; right: 0; bottom: -2px; left: 0; height: 3px; background: linear-gradient(90deg, var(--yellow) 0 28%, var(--blue) 28% 100%); content: ""; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; }
.brand-logo { display: block; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; object-fit: contain; }
.powered-by-logo { grid-column: 2; width: 180px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-align: center; }
.brand strong, .brand small { display: block; }
.brand strong { font: 800 16px Manrope, sans-serif; letter-spacing: .1em; }
.brand small { margin-top: 2px; color: #66728a; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.topbar-right, .connection, .panel-actions { display: flex; align-items: center; gap: 15px; }
.topbar-right { grid-column: 3; justify-self: end; gap: 8px; }
.topbar-right .button { padding-right: 10px; padding-left: 10px; white-space: nowrap; }
.notification-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px; color: #fff; background: #d24d4d; font-size: 10px; }
.connection { color: #737f94; font-size: 12px; }
.app-version { color: #737f94; font-size: 11px; white-space: nowrap; }
.connection i { width: 7px; height: 7px; border-radius: 50%; background: #24ae7b; box-shadow: 0 0 0 4px #e2f5ed; }
.connection-error i { background: #db5858; box-shadow: 0 0 0 4px #ffeded; }
.auth-layout { display: grid; grid-template-columns: 1fr minmax(340px, 480px); gap: 80px; align-items: center; min-height: 650px; padding: 40px 5.7%; }
.intro { padding-bottom: 20px; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: "Segoe UI", sans-serif; }
.intro h1 { margin-bottom: 18px; color: var(--navy); font-size: clamp(44px, 5.7vw, 70px); line-height: 1.07; letter-spacing: -.055em; }
.intro h1 span { color: var(--blue); }
.intro-copy { max-width: 390px; color: #778197; font-size: 15px; line-height: 1.8; }
.customer-reference-image { display: block; width: min(100%, 420px); max-height: 145px; margin-top: 20px; border-radius: 12px; object-fit: cover; opacity: .88; }
.intro-note { display: flex; gap: 13px; align-items: center; margin-top: 58px; color: #6f7a90; font-size: 12px; line-height: 1.6; }
.note-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--navy); background: var(--yellow-soft); font-size: 20px; }
.auth-card, .panel { border: 1px solid #e1e8ed; border-top: 3px solid var(--blue); border-radius: 18px; background: linear-gradient(145deg, #fff 55%, #f7fbfd); box-shadow: 0 12px 35px #2639580d; }
.auth-card { border-top-color: var(--yellow); }
.auth-card { padding: 36px; }
h2 { margin-bottom: 8px; color: var(--navy); font-size: 22px; letter-spacing: -.035em; }
.muted { margin-bottom: 22px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.form-stack { display: grid; gap: 16px; }
.auth-hint { margin: -11px 0 -7px; color: #8490a2; font-size: 10px; line-height: 1.45; }
label { display: grid; gap: 7px; color: #465168; font-size: 12px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 0 12px; border: 1px solid #e2e6ed; border-radius: 8px; outline: none; color: #26334b; background: #fff; font-size: 13px; }
input, select { height: 43px; }
textarea { min-height: 88px; padding-top: 10px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #205c8326; }
input::placeholder { color: #a6adba; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 16px; border: 0; border-radius: 8px; font-size: 12px; font-weight: 700; transition: transform .15s, background .15s; }
.button:hover { filter: brightness(.97); }
.button-primary { color: var(--navy); background: var(--yellow); }
.button-primary:hover { background: #f2c000; }
.button-primary span { font-size: 17px; font-weight: 400; }
.button-wide { width: 100%; margin-top: 5px; }
.button-secondary { color: #41516f; background: #f0f2f7; }
.button-danger { color: #fff; background: #c64141; }
.button-quiet { color: #606c81; background: transparent; }
.button-small { min-height: 34px; padding: 0 12px; font-size: 11px; }
.auth-links { display: flex; justify-content: flex-end; margin-top: 19px; }
.text-button { padding: 0; border: 0; color: var(--blue); background: none; font-size: 12px; font-weight: 600; }
.welcome-row { display: flex; justify-content: space-between; align-items: center; margin: 54px 0 25px; }
.welcome-row::after { content: none; }
.welcome-row h1 { margin-bottom: 5px; color: var(--navy); font-size: 34px; letter-spacing: -.05em; }
.welcome-row .muted { margin: 0; }
.role-badge { order: 2; padding: 8px 12px; border: 1px solid #c7dce8; border-radius: 20px; color: var(--navy); background: var(--blue-soft); font-size: 11px; font-weight: 700; }
.admin-nav { display: flex; gap: 7px; overflow-x: auto; padding: 5px; margin: 0 0 20px; border: 1px solid #e9ecf1; border-radius: 12px; background: #fff; }
.admin-nav-button { flex: 0 0 auto; padding: 10px 16px; border: 0; border-radius: 8px; color: #657189; background: transparent; font-size: 12px; font-weight: 650; }
.admin-nav-button:hover { color: var(--navy); background: var(--blue-soft); }
.admin-nav-button.active { color: var(--navy); background: var(--yellow-soft); }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 54px; }
.admin-overview, #report-card, #user-list-card, #workshop-card { grid-column: 1 / -1; }
.admin-overview > .muted { margin-bottom: 19px; }
.overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.overview-metric { display: grid; gap: 12px; min-height: 100px; padding: 17px; border: 1px solid #e4ebef; border-radius: 11px; background: #f2f8fb; }
.overview-metric:nth-child(even) { border-color: #f0e5ad; background: #fff9df; }
.overview-metric span { color: #778197; font-size: 11px; }
.overview-metric strong { color: var(--navy); font-size: 27px; letter-spacing: -.04em; }
.overview-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.panel { min-width: 0; padding: 24px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-heading .eyebrow { margin-bottom: 5px; }
.panel-heading h2 { margin: 0; font-size: 19px; }
.panel-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; color: var(--navy); background: var(--yellow); font-size: 20px; }
.panel .muted { margin-bottom: 18px; }
.compact { gap: 12px; }
.compact input, .compact select { height: 39px; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.result-card { margin-top: 15px; padding: 13px; border: 1px solid #d6e5ee; border-radius: 9px; color: #263c50; background: #f1f7fa; font-size: 12px; overflow-wrap: anywhere; }
.result-card a { display: block; margin-top: 8px; color: var(--blue); }
.list-stack { display: grid; gap: 9px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; border: 1px solid #edf0f4; border-radius: 10px; }
.job-has-notes { cursor: pointer; flex-wrap: wrap; }
.job-has-notes:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.list-item-main { min-width: 0; }
.list-item strong, .list-item small { display: block; }
.list-item strong { overflow: hidden; color: #27334b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.list-item small { margin-top: 4px; color: #8993a5; font-size: 11px; }
.list-item .job-location { color: #1c2c49; font-size: 15px; font-weight: 750; }
.list-item .job-description { color: #627087; font-size: 12px; }
.list-item .job-notes-disclosure { flex: 1 0 100%; }
.job-notes-disclosure { display: block; }
.job-notes-indicator { display: inline-block !important; width: fit-content; padding: 3px 7px; border: 0; border-radius: 10px; color: var(--navy) !important; background: var(--yellow-soft); font-size: 9px !important; font-weight: 700; }
.job-notes-toggle { min-height: 0; }
.job-notes-content { display: block; margin: 6px 0 0; padding: 10px 12px; border-radius: 7px; color: #465168; background: #f7f8fb; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.job-notes-popover { position: relative; z-index: 5; }
.job-notes-popover .job-notes-content { position: absolute; top: 100%; left: 0; z-index: 5; width: max-content; max-width: min(280px, 75vw); box-shadow: 0 5px 18px #17254620; }
.list-meta { flex: 0 0 auto; color: #7a8496; font-size: 11px; text-align: right; }
.user-role-control { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.user-role-control select { width: auto; min-width: 136px; min-height: 34px; padding: 0 8px; font-size: 11px; }
.team-account-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.team-account-filters label { font-size: 11px; }
.team-account-filters select { height: 37px; }
.team-account-table-wrap { overflow-x: auto; border: 1px solid #e9ecf1; border-radius: 11px; background: #fff; }
.team-account-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.team-account-table th { padding: 8px 10px; color: #788398; background: #f7f8fb; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.team-account-table td { padding: 7px 10px; border-top: 1px solid #edf0f4; color: #526078; font-size: 10px; vertical-align: middle; }
.team-account-table tbody tr:hover { background: #fbfcfe; }
.team-account-identity { min-width: 190px; }
.team-account-identity strong { color: #27334b; font-size: 12px; }
.team-account-identity small { margin-top: 3px; }
.team-account-access { width: 82px; }
.team-account-branch { min-width: 110px; }
.team-account-table .user-role-control { gap: 5px; }
.team-account-table .user-role-control select { min-width: 120px; }
.account-access-badge { display: inline-flex; padding: 5px 8px; border-radius: 20px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.account-access-active { color: #18734f; background: #eaf8f1; }
.account-access-invited { color: #815d10; background: #fff7dc; }
.account-test-badge { display: inline-flex; margin-left: 5px; padding: 3px 6px; border-radius: 10px; color: #78520a; background: #fff2cc; font-size: 8px; font-weight: 700; vertical-align: middle; }
.workshop-table-wrap { overflow-x: auto; border: 1px solid #e4e9f0; border-radius: 9px; background: #fff; }
.workshop-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; text-align: left; }
.workshop-table th { padding: 7px 5px; color: #788398; background: #f7f8fb; font-size: 8px; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; overflow-wrap: anywhere; }
.workshop-table td { padding: 3px 4px; border-top: 1px solid #edf0f4; color: #58657b; font-size: 9px; line-height: 1.25; overflow-wrap: anywhere; vertical-align: middle; }
.workshop-table tbody tr:nth-child(even):not(.workshop-row-under-7-days):not(.workshop-row-under-14-days):not(.workshop-row-over-30-days):not(.workshop-row-over-60-days):not(.workshop-row-stale-status) { background: #fbfcfe; }
.workshop-table .table-date-cell { white-space: nowrap; font-size: 8px; font-variant-numeric: tabular-nums; }
.workshop-table .table-date-input { width: 100%; min-width: 0; padding-inline: 2px; border-radius: 4px; font-size: 8px; }
.workshop-has-actions .workshop-actions-heading, .workshop-has-actions .workshop-actions-cell { width: 7%; white-space: nowrap; }
.workshop-table tr.workshop-row-under-7-days td { background: #e4f6eb; }
.workshop-table tr.workshop-row-under-14-days td { background: #e5f1ff; }
.workshop-table tr.workshop-row-under-7-days td:first-child { box-shadow: inset 4px 0 #36a56d; }
.workshop-table tr.workshop-row-under-14-days td:first-child { box-shadow: inset 4px 0 #4387d6; }
.workshop-table tr.workshop-row-over-30-days td { background: #fff1d6; }
.workshop-table tr.workshop-row-over-60-days td { background: #ffe0df; }
.workshop-table tr.workshop-row-over-30-days td:first-child { box-shadow: inset 4px 0 #eaa32b; }
.workshop-table tr.workshop-row-over-60-days td:first-child { box-shadow: inset 4px 0 #dc4b45; }
.workshop-table tr.workshop-row-stale-status td { background: #fff2d9; }
.workshop-table tr.workshop-row-stale-status td:first-child { box-shadow: inset 4px 0 #d88b16; }
.workshop-stale-status-flag { display: block; width: fit-content; margin-top: 3px; padding: 2px 5px; border-radius: 999px; color: #754700; background: #ffe0a3; font-size: 9px; font-weight: 700; }
.workshop-table th:nth-child(1), .workshop-table td:nth-child(1) { width: 14%; }
.workshop-table th:nth-child(2), .workshop-table td:nth-child(2) { width: 8%; }
.workshop-table th:nth-child(3), .workshop-table td:nth-child(3) { width: 13%; }
.workshop-table th:nth-child(4), .workshop-table td:nth-child(4) { width: 9%; }
.workshop-table th:nth-child(5), .workshop-table td:nth-child(5) { width: 8%; }
.workshop-table th:nth-child(6), .workshop-table td:nth-child(6) { width: 10%; }
.workshop-table th:nth-child(7), .workshop-table td:nth-child(7) { width: 9%; }
.workshop-table th:nth-child(8), .workshop-table td:nth-child(8) { width: 13%; }
.workshop-table th:nth-child(9), .workshop-table td:nth-child(9) { width: 16%; }
.workshop-tracking-table th:nth-child(1), .workshop-tracking-table td:nth-child(1) { width: 12%; }
.workshop-tracking-table th:nth-child(2), .workshop-tracking-table td:nth-child(2) { width: 12%; }
.workshop-tracking-table th:nth-child(3), .workshop-tracking-table td:nth-child(3) { width: 9%; }
.workshop-tracking-table th:nth-child(4), .workshop-tracking-table td:nth-child(4) { width: 9%; }
.workshop-tracking-table th:nth-child(5), .workshop-tracking-table td:nth-child(5) { width: 13%; }
.workshop-tracking-table th:nth-child(6), .workshop-tracking-table td:nth-child(6) { width: 22%; }
.workshop-tracking-table th:nth-child(7), .workshop-tracking-table td:nth-child(7) { width: 15%; }
.workshop-tracking-table th:nth-child(8), .workshop-tracking-table td:nth-child(8) { width: 8%; }
#workshop-repairs-table.workshop-has-actions th:nth-child(1), #workshop-repairs-table.workshop-has-actions td:nth-child(1) { width: 13%; }
#workshop-repairs-table.workshop-has-actions th:nth-child(2), #workshop-repairs-table.workshop-has-actions td:nth-child(2) { width: 8%; }
#workshop-repairs-table.workshop-has-actions th:nth-child(3), #workshop-repairs-table.workshop-has-actions td:nth-child(3) { width: 11%; }
#workshop-repairs-table.workshop-has-actions th:nth-child(4), #workshop-repairs-table.workshop-has-actions td:nth-child(4) { width: 9%; }
#workshop-repairs-table.workshop-has-actions th:nth-child(5), #workshop-repairs-table.workshop-has-actions td:nth-child(5) { width: 8%; }
#workshop-repairs-table.workshop-has-actions th:nth-child(6), #workshop-repairs-table.workshop-has-actions td:nth-child(6) { width: 9%; }
#workshop-repairs-table.workshop-has-actions th:nth-child(7), #workshop-repairs-table.workshop-has-actions td:nth-child(7) { width: 12%; }
#workshop-repairs-table.workshop-has-actions th:nth-child(8), #workshop-repairs-table.workshop-has-actions td:nth-child(8) { width: 9%; }
#workshop-repairs-table.workshop-has-actions th:nth-child(9), #workshop-repairs-table.workshop-has-actions td:nth-child(9) { width: 14%; }
#run-up-table.workshop-has-actions th:nth-child(1), #run-up-table.workshop-has-actions td:nth-child(1) { width: 15%; }
#run-up-table.workshop-has-actions th:nth-child(2), #run-up-table.workshop-has-actions td:nth-child(2) { width: 9%; }
#run-up-table.workshop-has-actions th:nth-child(3), #run-up-table.workshop-has-actions td:nth-child(3) { width: 12%; }
#run-up-table.workshop-has-actions th:nth-child(4), #run-up-table.workshop-has-actions td:nth-child(4) { width: 10%; }
#run-up-table.workshop-has-actions th:nth-child(5), #run-up-table.workshop-has-actions td:nth-child(5) { width: 9%; }
#run-up-table.workshop-has-actions th:nth-child(6), #run-up-table.workshop-has-actions td:nth-child(6) { width: 10%; }
#run-up-table.workshop-has-actions th:nth-child(7), #run-up-table.workshop-has-actions td:nth-child(7) { width: 14%; }
#run-up-table.workshop-has-actions th:nth-child(8), #run-up-table.workshop-has-actions td:nth-child(8) { width: 13%; }
.workshop-tracking-table.workshop-has-actions th:nth-child(1), .workshop-tracking-table.workshop-has-actions td:nth-child(1) { width: 11%; }
.workshop-tracking-table.workshop-has-actions th:nth-child(2), .workshop-tracking-table.workshop-has-actions td:nth-child(2) { width: 11%; }
.workshop-tracking-table.workshop-has-actions th:nth-child(3), .workshop-tracking-table.workshop-has-actions td:nth-child(3) { width: 9%; }
.workshop-tracking-table.workshop-has-actions th:nth-child(4), .workshop-tracking-table.workshop-has-actions td:nth-child(4) { width: 9%; }
.workshop-tracking-table.workshop-has-actions th:nth-child(5), .workshop-tracking-table.workshop-has-actions td:nth-child(5) { width: 12%; }
.workshop-tracking-table.workshop-has-actions th:nth-child(6), .workshop-tracking-table.workshop-has-actions td:nth-child(6) { width: 19%; }
.workshop-tracking-table.workshop-has-actions th:nth-child(7), .workshop-tracking-table.workshop-has-actions td:nth-child(7) { width: 13%; }
.workshop-tracking-table.workshop-has-actions th:nth-child(8), .workshop-tracking-table.workshop-has-actions td:nth-child(8) { width: 8%; }
.workshop-row-remove { padding-inline: 7px; }
.workshop-cell-input { width: 100%; min-width: 0; height: 27px; padding: 0 4px; border-color: transparent; background: transparent; font-size: 9px; }
.workshop-cell-input:focus { border-color: var(--blue); background: #fff; }
.workshop-cell-saved { border-color: #69b58c; background: #f0faf4; }
body:has(#workshop-card:not(.hidden)) .shell { max-width: 1800px; }
.workshop-add-toggle { margin: 0 0 10px; }
.workshop-secondary-heading { margin-top: 22px; }
.workshop-add-form { display: grid; gap: 10px; margin: 0 0 18px; padding: 14px; border: 1px solid #e4ebef; border-radius: 10px; background: #f7fafc; }
.workshop-add-form .eyebrow { margin: 0; }
.workshop-customer-field { max-width: 520px; }
.workshop-entry-item { min-width: 0; margin: 0; padding: 12px; border: 1px solid #dce6eb; border-radius: 8px; background: #fff; }
.workshop-entry-item + .workshop-entry-item { margin-top: 10px; }
.workshop-entry-item legend { padding: 0 5px; color: var(--navy); font-size: 12px; font-weight: 700; }
.workshop-add-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.workshop-add-fields input { height: 36px; }
.workshop-add-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 800px) {
  .workshop-add-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.status-select { width: auto; min-width: 132px; height: 32px; padding: 0 8px; font-size: 11px; }
.inline-form { display: flex; align-items: end; gap: 10px; margin: 17px 0; }
.inline-form label { flex: 1; }
.inline-form input { height: 39px; }
.jobs-panel { grid-column: 1 / -1; }
.jobs-panel .panel-heading { margin-bottom: 17px; }
.technician-status-section { margin: 0 0 20px; padding: 14px; border: 1px solid #d4e4ed; border-radius: 10px; background: #eff7fa; }
.technician-status-section > .eyebrow { margin-bottom: 10px; }
.technician-status-item { display: grid; gap: 4px; padding: 10px 12px; border-left: 4px solid var(--blue); border-radius: 6px; background: #fff; }
.technician-status-item strong { color: var(--navy); font-size: 12px; }
.technician-status-item small { color: #54647b; font-size: 11px; }
.standby-personal-heading { margin: 16px 0 9px; }
.standby-roster-section { margin-top: 25px; padding-top: 20px; border-top: 1px solid #edf0f4; }
.standby-roster-form { max-width: 760px; margin: 15px 0 18px; padding: 14px; border: 1px solid #e4ebef; border-radius: 10px; background: #f6fafc; }
.standby-roster-form select[multiple] { min-height: 105px; padding: 6px; }
.standby-roster-form > .muted { font-size: 10px; }
.standby-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #d8e4ed; border-left: 4px solid #397aa1; border-radius: 8px; background: #f3f8fb; }
.standby-entry-main { display: grid; gap: 3px; }
.standby-entry strong { color: var(--navy); font-size: 12px; }
.standby-entry small { color: #607087; font-size: 10px; }
.job-dialog.status-dialog { width: min(650px, calc(100% - 28px)); }
.status-create-form { margin-bottom: 20px; padding: 14px; border: 1px solid #e4ebef; border-radius: 10px; background: #f6fafc; }
.status-list-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.status-list-heading .eyebrow { margin: 0; }
.technician-status-edit { display: grid; gap: 10px; padding: 12px; border: 1px solid #e4ebef; border-radius: 9px; background: #fff; }
.technician-status-edit > strong { color: var(--navy); font-size: 12px; }
.technician-status-edit label { font-size: 10px; }
.technician-status-edit input, .technician-status-edit select { height: 35px; font-size: 11px; }
.technician-status-edit .button { justify-self: end; }
.read-only-status { background: #f6f7f9; }
.read-only-job { opacity: .72; cursor: default; }
.read-only-dropzone { background: #f5f6f8; cursor: not-allowed; }
.welcome-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.developer-organization-tools { display: flex; align-items: end; gap: 10px; }
.developer-organization-tools > label { min-width: 155px; margin: 0; font-size: 10px; }
.developer-organization-tools select { height: 35px; font-size: 11px; }
.compact-inline-form { display: flex; align-items: end; gap: 6px; }
.compact-inline-form input { width: 165px; height: 35px; font-size: 11px; }
.compact-inline-form .button { white-space: nowrap; }
#organization-create-form { display: grid; grid-template-columns: repeat(2, minmax(145px, 1fr)); gap: 7px; width: min(570px, 54vw); align-items: end; }
#organization-create-form input { width: 100%; }
#organization-create-form label { display: grid; gap: 3px; margin: 0; font-size: 10px; }
#organization-create-form input[type=color] { height: 35px; padding: 3px; }
.client-downloads { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.client-download-links { display: flex; flex-wrap: wrap; gap: 8px; }
.client-downloads .muted { margin: 0; }
.developer-organization-tools.hidden { display: none; }
.report-controls { margin-bottom: 18px; padding: 14px; border: 1px solid #edf0f4; border-radius: 10px; background: #fafbfc; }
.report-controls .muted { margin-bottom: 10px; font-size: 11px; }
.report-controls .panel-actions { flex-wrap: wrap; gap: 10px; }
.report-date-field { display: grid; gap: 4px; color: #667189; font-size: 10px; }
.report-date-field input { width: auto; min-width: 145px; height: 34px; font-size: 11px; }
.calendar-panel { grid-column: 1 / -1; }
.calendar-toolbar, .calendar-controls, .calendar-heading, .date-nav, .view-switch, .calendar-legend, .calendar-legend span, .unassigned-heading, .dialog-heading, .dialog-actions { display: flex; align-items: center; }
.calendar-toolbar { justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.calendar-heading .eyebrow { margin-bottom: 5px; }
.calendar-heading h2 { margin: 0; font-size: 22px; }
.calendar-controls { justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.date-nav, .view-switch { gap: 4px; }
.view-switch { padding: 3px; border-radius: 9px; background: #edf1f4; }
.view-button { min-height: 31px; padding: 0 11px; border: 0; border-radius: 7px; color: #69758b; background: transparent; font-size: 11px; font-weight: 700; }
.view-button.active { color: var(--navy); background: var(--yellow-soft); box-shadow: 0 1px 4px #17254617; }
.calendar-legend { gap: 15px; flex-wrap: wrap; margin: 0 0 17px; color: #758097; font-size: 10px; }
.calendar-legend span { gap: 6px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.pending { background: #287ca8; }
.status-dot.accepted { background: var(--navy); }
.status-dot.in-progress { background: #e0ad00; }
.status-dot.completed { background: #31a778; }
.status-dot.unavailable { background: var(--yellow); box-shadow: 0 0 0 1px #d7ad00; }
.status-dot.standby { background: #397aa1; }
.drag-hint { margin-left: auto; }
.calendar-content { overflow-x: auto; }
.lane-calendar { display: grid; min-width: 630px; border-top: 1px solid #edf0f4; border-left: 1px solid #edf0f4; grid-template-columns: 190px repeat(var(--date-count), minmax(155px, 1fr)); }
.week-calendar { min-width: 1340px; grid-template-columns: 170px repeat(var(--date-count), minmax(165px, 1fr)); }
.lane-corner, .date-heading, .technician-heading, .technician-dropzone { min-width: 0; padding: 10px; border-right: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; }
.day-time-calendar { min-width: calc(180px + var(--day-width)); border-top: 1px solid #edf0f4; border-left: 1px solid #edf0f4; }
.day-time-header, .day-tech-row { display: grid; grid-template-columns: 180px var(--day-width); }
.day-time-header { position: sticky; top: 0; z-index: 2; }
.day-time-header .lane-corner { background: #fafbfc; }
.day-time-slots { display: grid; position: relative; grid-template-columns: repeat(24, var(--half-hour-width)); }
.day-time-slot { display: flex; align-items: center; min-height: 42px; padding: 0 5px; border-right: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; color: #68758c; background: #fafbfc; font-size: 9px; white-space: nowrap; }
.day-time-end-label { position: absolute; top: 15px; right: -48px; width: 46px; color: #68758c; font-size: 9px; white-space: nowrap; }
.day-tech-row .technician-heading { border-left: 0; }
.day-tech-timeline { position: relative; width: var(--day-width); min-height: 100px; padding: 0; background-color: #fff; background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(var(--half-hour-width) - 1px), #edf0f4 calc(var(--half-hour-width) - 1px), #edf0f4 var(--half-hour-width)); }
.day-tech-timeline.drop-active { background-color: var(--blue-soft); box-shadow: inset 0 0 0 2px #78a8c2; }
.lane-corner { display: flex; align-items: end; color: #8993a5; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.date-heading { color: #5c6880; background: #fafbfc; font-size: 11px; font-weight: 700; }
.technician-heading { display: flex; align-items: center; align-self: stretch; gap: 9px; color: #344159; background: #fbfcfd; font-size: 11px; font-weight: 700; }
.technician-avatar { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border-radius: 50%; color: var(--navy); background: var(--yellow-soft); font-size: 9px; }
.technician-dropzone { display: grid; align-content: start; gap: 7px; min-height: 107px; background: #fff; transition: background .15s, box-shadow .15s; }
.technician-dropzone.drop-active, .unassigned-content.drop-active, .month-day.drop-active, .month-tech-target.drop-active, .technician-month-drop.drop-active { background: var(--yellow-soft); box-shadow: inset 0 0 0 2px #d2ae18; }
.drop-hint { align-self: center; color: #a2aabb; font-size: 10px; text-align: center; }
.calendar-empty { grid-column: 2 / -1; padding: 24px; color: #778197; font-size: 12px; }
.technician-status-block { display: block; min-width: 0; padding: 5px 7px; border: 1px solid #e7d56d; border-left: 3px solid #c49b00; border-radius: 6px; color: #394052; background: #fff5c2; font-size: 9px; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; }
.technician-status-out-of-office { border-color: #bdd7e5; border-left-color: #287ca8; background: #eaf3f8; }
.technician-status-training { border-color: #c4ddcc; border-left-color: #43815b; background: #edf7ef; }
.technician-status-leave { border-color: #d0d2df; border-left-color: var(--navy); background: #eff0f5; }
.day-technician-status { position: absolute; z-index: 0; height: 26px; white-space: nowrap; pointer-events: none; }
.month-technician-status { padding: 4px; font-size: 8px; white-space: normal; overflow-wrap: anywhere; }
.technician-standby-block { display: block; min-width: 0; padding: 5px 7px; border: 1px solid #c2d6e4; border-left: 3px solid #397aa1; border-radius: 6px; color: #25425a; background: #e9f3f9; font-size: 9px; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; }
.day-technician-standby { position: absolute; z-index: 0; height: 22px; white-space: nowrap; pointer-events: none; }
.month-technician-standby { padding: 4px; font-size: 8px; white-space: normal; overflow-wrap: anywhere; }
.calendar-job { display: grid; position: relative; gap: 3px; min-width: 0; padding: 9px 9px 9px 11px; border: 1px solid transparent; border-left-width: 3px; border-radius: 8px; cursor: grab; }
.calendar-job:active { cursor: grabbing; }
.calendar-job.dragging { opacity: .45; }
.calendar-job strong { overflow: hidden; color: #24314a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-job small { overflow: hidden; color: #6e7b92; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-job .job-location { color: #1c2c49; font-size: 12px; font-weight: 750; }
.calendar-job .job-description { color: #627087; font-size: 9px; }
.calendar-job .job-type, .job-type { color: #397aa1; font-size: 9px; font-weight: 700; }
.calendar-job .job-notes-indicator { padding: 2px 5px; justify-self: start; font-size: 8px !important; }
.calendar-job .job-time { color: #596781; font-size: 9px; font-weight: 700; }
.day-calendar-job { position: absolute; z-index: 1; height: 68px; min-height: 68px; overflow: visible; padding-right: 14px; cursor: grab; touch-action: none; }
.day-calendar-job.moving { z-index: 10; opacity: .85; box-shadow: 0 8px 20px #17254630; }
.day-calendar-job .job-time, .day-calendar-job strong, .day-calendar-job small { pointer-events: none; }
.job-resize-handle { position: absolute; top: 0; right: -4px; bottom: 0; z-index: 2; width: 12px; padding: 0; border: 0; border-radius: 0 7px 7px 0; background: transparent; cursor: ew-resize; touch-action: none; }
.job-resize-handle::after { position: absolute; top: 50%; right: 4px; width: 3px; height: 24px; border-radius: 3px; background: #61739b; content: ""; transform: translateY(-50%); }
.status-pending { border-color: #cfdfeb; border-left-color: #287ca8; background: #f0f7fa; }
.status-accepted { border-color: #d8dbea; border-left-color: var(--navy); background: #f1f2f7; }
.status-in-progress { border-color: #ead98d; border-left-color: #c49b00; background: #fff9df; }
.status-completed { border-color: #d8eee3; border-left-color: #31a778; background: #eef9f3; }
.month-calendar { display: grid; min-width: 890px; grid-template-columns: repeat(7, minmax(120px, 1fr)); border-top: 1px solid #edf0f4; border-left: 1px solid #edf0f4; }
.month-weekday { padding: 9px; border-right: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; color: #8993a5; background: #fafbfc; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.month-day { display: grid; align-content: start; gap: 6px; min-height: 142px; padding: 7px; border-right: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; }
.month-day.outside-month { background: #fafbfc; }
.month-day-number { color: #647087; font-size: 10px; font-weight: 700; }
.month-day.outside-month .month-day-number { color: #b4bac5; }
.month-day .calendar-job { padding: 6px; }
.month-day .calendar-job strong { font-size: 9px; }
.month-day .calendar-job small { font-size: 8px; }
.technician-month-drop { width: fit-content; max-width: 100%; padding: 2px 5px; border: 1px solid #dfe5f5; border-radius: 8px; color: #51617f; background: #fff; font-size: 8px; text-align: left; }
.month-assign-details { color: #778197; font-size: 9px; }
.month-assign-details summary { cursor: pointer; }
.month-technician-targets { display: grid; gap: 4px; max-height: 105px; overflow-y: auto; padding: 5px; border: 1px solid #edf0f4; border-radius: 6px; background: #fff; }
.month-tech-target { padding: 4px 5px; border-radius: 4px; color: #42516b; font-size: 9px; }
.unassigned-section { margin-top: 25px; padding-top: 22px; border-top: 1px solid #edf0f4; }
.unassigned-heading { gap: 10px; margin-bottom: 7px; }
.unassigned-heading .eyebrow { margin-bottom: 4px; }
.unassigned-heading h3 { margin: 0; color: var(--navy); font: 700 17px "Segoe UI", sans-serif; }
.count-badge { display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 7px; border-radius: 14px; color: var(--navy); background: var(--yellow-soft); font-size: 11px; font-weight: 700; }
.unassigned-section .muted { margin-bottom: 12px; font-size: 11px; }
.unassigned-content { min-height: 55px; overflow-x: auto; border-radius: 8px; transition: background .15s, box-shadow .15s; }
.unassigned-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.unassigned-table th { padding: 7px 8px; border-bottom: 1px solid #e8ecf2; color: #8791a2; background: #f7f8fb; font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.unassigned-table td { padding: 6px 8px; border-bottom: 1px solid #edf0f4; color: #56627a; font-size: 9px; line-height: 1.3; vertical-align: middle; }
.unassigned-table tbody tr:nth-child(even) { background: #fbfcfe; }
.unassigned-table td.table-date-cell { white-space: nowrap; font-size: 8px; font-variant-numeric: tabular-nums; }
.scheduled-work-table { min-width: 850px; }
#job-list { min-width: 0; overflow-x: auto; }
.scheduled-work-table th, .scheduled-work-table td { padding: 5px 6px; }
.scheduled-work-table td .status-select { min-width: 90px; height: 30px; padding: 0 5px; font-size: 9px; }
.unassigned-table tbody tr { cursor: grab; }
.scheduled-work-table tbody tr { cursor: default; }
.unassigned-table tbody tr.status-pending { background: #f0f7fa; }
.unassigned-table tbody tr.status-accepted { background: #f1f2f7; }
.unassigned-table tbody tr.status-in-progress { background: #fff9df; }
.unassigned-table tbody tr.status-completed { background: #eef9f3; }
.unassigned-table tbody tr:active { cursor: grabbing; }
.unassigned-table tbody tr:hover { background: var(--blue-soft); }
.scheduled-work-table td:last-child { white-space: nowrap; }
.scheduled-work-table td:last-child .button + .button { margin-left: 6px; }
.unassigned-table td strong, .unassigned-table td small { display: block; }
.unassigned-table td strong { color: #29354c; font-size: 11px; }
.unassigned-table td small { margin-top: 4px; color: #8791a2; font-size: 9px; }
.empty-unassigned { margin: 0; padding: 17px; color: #8b95a7; font-size: 11px; text-align: center; }
.job-dialog { width: min(480px, calc(100% - 28px)); max-width: none; padding: 25px; border: 1px solid #e9ecf1; border-radius: 16px; color: var(--navy); box-shadow: 0 25px 80px #14213b40; }
.confirmation-dialog { width: min(430px, calc(100% - 28px)); }
.confirmation-dialog .dialog-actions { margin-top: 22px; }
.job-dialog::backdrop { background: #111b2db5; backdrop-filter: blur(3px); }
.dialog-heading { justify-content: space-between; margin-bottom: 8px; }
.dialog-heading .eyebrow { margin-bottom: 4px; }
.dialog-heading h2 { margin: 0; }
.dialog-close { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; color: #69758b; background: #f0f2f7; font-size: 22px; }
.job-dialog .muted { margin-bottom: 17px; font-size: 11px; }
.notification-item { display: grid; gap: 7px; padding: 13px; border: 1px solid #e9ecf1; border-radius: 9px; color: #465168; }
.notification-item strong { color: var(--navy); font-size: 12px; }
.notification-item p { margin: 0; font-size: 12px; line-height: 1.5; }
.notification-item small { color: #8791a2; font-size: 10px; }
.notification-item .text-button { justify-self: start; }
.notification-unread { border-color: #c7dce8; background: var(--blue-soft); }
.dialog-actions { justify-content: flex-end; gap: 9px; margin-top: 7px; }
.job-status-pending { border-left: 3px solid #287ca8; background: #f0f7fa; }
.job-status-accepted { border-left: 3px solid var(--navy); background: #f1f2f7; }
.job-status-in-progress { border-left: 3px solid #c49b00; background: #fff9df; }
.job-status-completed { border-left: 3px solid #31a778; background: #eef9f3; }
.message { margin: 14px 0; padding: 12px 14px; border-radius: 8px; color: #263c50; background: var(--blue-soft); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.message.error { color: #9c3434; background: #fff0ef; }
.message.success { color: #18734f; background: #eaf8f1; }
.message.warning { color: #815d10; background: #fff7dc; }
.job-acceptance { display: block; color: #18734f; font-size: 11px; margin-top: 4px; }
.job-scheduler { display: block; color: #68758c; font-size: 10px; margin-top: 3px; }
.calendar-job .job-scheduler { font-size: 8px; }
footer { display: flex; justify-content: space-between; padding: 20px 0 28px; border-top: 1px solid #e7eaf0; color: #949daf; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.hidden { display: none !important; }

@media (max-width: 800px) {
  .standby-entry { align-items: flex-start; }
  .welcome-actions, .developer-organization-tools { align-items: stretch; flex-direction: column; }
  .developer-organization-tools > label { min-width: 0; }
  .shell { padding: 0 20px; }
  .powered-by-logo { width: 120px; height: 32px; }
  .auth-layout { grid-template-columns: 1fr; gap: 12px; padding: 55px 0; }
  .intro { padding: 0 6px; }
  .intro h1 { font-size: 49px; }
  .intro-copy { max-width: 500px; }
  .intro-note { display: none; }
  .auth-card { max-width: 520px; width: 100%; justify-self: center; padding: 27px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-nav { margin-bottom: 15px; }
  .jobs-panel { grid-column: auto; }
  .calendar-toolbar { align-items: flex-start; flex-direction: column; }
  .calendar-controls { justify-content: flex-start; }
  .drag-hint { margin-left: 0; }
}

@media (max-width: 520px) {
  .shell { padding: 0 15px; }
  .topbar { height: auto; min-height: 70px; display: grid; grid-template-columns: 1fr auto; row-gap: 5px; padding: 7px 0 9px; }
  .topbar-right { grid-column: 2; grid-row: 1; }
  .powered-by-logo { grid-column: 1 / -1; grid-row: 2; justify-self: center; width: 170px; height: 32px; }
  .connection { display: none; }
  .auth-layout { padding: 36px 0; }
  .intro h1 { font-size: 43px; }
  .auth-card { padding: 23px 19px; }
  .welcome-row { margin: 35px 0 22px; }
  .welcome-row h1 { font-size: 28px; }
  .panel { padding: 19px 16px; }
  .admin-nav-button { padding: 9px 12px; font-size: 11px; }
  .overview-actions { align-items: stretch; flex-direction: column; }
  .overview-actions .button { width: 100%; }
  .field-pair { grid-template-columns: 1fr; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form .button { width: 100%; }
  .panel-actions { gap: 7px; }
  .panel-actions select { max-width: 110px; }
  .calendar-controls { gap: 6px; }
  .calendar-controls .button { padding: 0 10px; }
  .calendar-legend { gap: 10px; }
  .unassigned-table { min-width: 640px; }
  footer span:last-child { display: none; }
}

.report-overview { display: grid; gap: 18px; margin: 20px 0 25px; }
.report-period-card { min-width: 0; padding: 20px; border: 1px solid #e1e8ed; border-radius: 14px; background: #f8fbfc; }
.report-period-month { background: #fffdf4; border-color: #f0e7bd; }
.report-period-card > h3 { margin: 0 0 4px; color: var(--navy); font-size: 18px; }
.report-period-card > .muted { margin-bottom: 16px; }
.report-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

/* OWEM landing artwork behind the current sign-in experience. */
body:has(#auth-view:not(.hidden)) {
  min-height: 100vh;
  background: #05263e url("/owem-planner-landing.png") center center / 100% 100% no-repeat fixed;
}
body:has(#auth-view:not(.hidden)) .shell { max-width: none; min-height: 100vh; padding: 0; }
body:has(#auth-view:not(.hidden)) .topbar,
body:has(#auth-view:not(.hidden)) footer,
body:has(#auth-view:not(.hidden)) .intro { display: none; }
body:has(#auth-view:not(.hidden)) .auth-layout {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
  gap: 0;
  align-items: center;
  min-height: 100vh;
  padding: 32px max(4.8vw, 28px) 32px 0;
}
body:has(#auth-view:not(.hidden)) .auth-card {
  grid-column: 2;
  width: 100%;
  padding: 24px 26px;
  border: 1px solid #d9e5ec;
  border-radius: 15px;
  background: rgba(250, 253, 255, .97);
  box-shadow: 0 18px 50px #031a2d55;
}
body:has(#auth-view:not(.hidden)) .sign-in-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
body:has(#auth-view:not(.hidden)) .sign-in-brand { min-width: 0; gap: 8px; }
body:has(#auth-view:not(.hidden)) .sign-in-brand .brand-logo { width: 40px; height: 40px; }
body:has(#auth-view:not(.hidden)) .sign-in-brand strong { font-size: 17px; }
body:has(#auth-view:not(.hidden)) .sign-in-brand small { font-size: 9px; }
body:has(#auth-view:not(.hidden)) .sign-in-powered-logo { display: block; width: 135px; max-width: 40%; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-align: right; }

@media (max-width: 800px) {
  body:has(#auth-view:not(.hidden)) { background-attachment: scroll; background-position: 37% center; }
  body:has(#auth-view:not(.hidden)) .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    min-height: 100vh;
    padding: 24px;
  }
  body:has(#auth-view:not(.hidden)) .auth-card { grid-column: 1; justify-self: end; max-width: 440px; }
}
@media (max-width: 520px) {
  body:has(#auth-view:not(.hidden)) { background-position: 42% center; }
  body:has(#auth-view:not(.hidden)) .auth-layout { padding: 16px; }
  body:has(#auth-view:not(.hidden)) .auth-card { padding: 22px 18px; }
  body:has(#auth-view:not(.hidden)) .sign-in-powered-logo { width: 95px; height: 30px; }
}
.report-metric { display: grid; gap: 8px; padding: 13px; border: 1px solid #e4ebef; border-radius: 10px; background: #fff; }
.report-metric span { color: var(--muted); font-size: 11px; }
.report-metric strong { color: var(--navy); font-size: 23px; }
.report-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0 26px; }
.report-chart, .report-leaderboard { min-width: 0; padding: 15px; border: 1px solid #e6ebef; border-radius: 10px; background: #fff; }
.report-chart { min-height: 345px; padding: 20px; box-shadow: 0 8px 22px #20334c0a; }
.report-chart-completions { grid-column: 1 / -1; }
.report-chart-completions .report-pie-layout { grid-template-columns: minmax(210px, .7fr) minmax(0, 1.3fr); align-items: center; }
.report-chart-completions .report-pie-graphic { width: min(100%, 250px); }
.report-chart-completions .report-pie-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.report-leaderboard { display: block; }
.report-chart h4, .report-leaderboard h4 { margin: 0 0 13px; color: var(--navy); font-size: 13px; }
.report-chart .muted, .report-leaderboard .muted { margin: 0; font-size: 12px; }
.report-pie-layout { display: grid; justify-items: center; gap: 12px; }
.report-pie-graphic { width: min(100%, 215px); margin-inline: auto; }
.report-pie-graphic svg { display: block; width: 100%; overflow: visible; filter: drop-shadow(0 6px 9px #23354b18); }
.report-pie-graphic path { stroke: #fff; stroke-width: 1.5; transition: transform .18s, filter .18s; transform-origin: 70px 70px; }
.report-pie-graphic path:hover { transform: scale(1.055); filter: brightness(1.08); }
.report-pie-total { fill: var(--navy); font-size: 21px; font-weight: 800; }
.report-pie-caption { fill: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.report-period-month .report-pie-graphic { filter: sepia(.12) saturate(1.08); }
.report-pie-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px 12px; margin: 0; padding: 0; list-style: none; }
.report-pie-legend li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 7px; color: #57647a; font-size: 10px; text-transform: capitalize; }
.report-pie-legend li > i { width: 9px; height: 9px; border-radius: 3px; box-shadow: 0 1px 2px #17243b24; }
.report-pie-legend li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-pie-legend strong { color: var(--navy); font-size: 9px; white-space: nowrap; }
.leaderboard-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid #edf0f2; color: #465168; font-size: 11px; }
.leaderboard-row:first-of-type { border-top: 0; }
.leaderboard-rank { color: var(--blue); }
.leaderboard-rank-1 .leaderboard-rank { color: #c29300; }
.leaderboard-row b { color: var(--navy); font-size: 10px; white-space: nowrap; }
.scheduler-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 5px; margin: 0 0 18px; border: 1px solid #e6ebef; border-radius: 11px; background: #fff; }
.scheduler-tab { flex: 0 0 auto; padding: 9px 13px; border: 0; border-radius: 7px; color: #657189; background: transparent; font-size: 11px; font-weight: 700; }
.scheduler-tab.active { color: var(--navy); background: var(--yellow-soft); }
.scheduler-tab-panel.hidden { display: none; }
.standby-roster-section { padding: 18px; border: 1px solid #e4ebef; border-radius: 12px; background: #f8fbfc; }
.standby-roster-section > .muted { margin-bottom: 15px; }
.standby-calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; }
.standby-calendar-toolbar > strong { color: var(--navy); font-size: 13px; text-align: center; }
.standby-branch-field { max-width: 300px; margin: 0 0 15px; }
.standby-roster-layout { display: grid; grid-template-columns: minmax(170px, .28fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.standby-technician-source, .standby-week-slot { padding: 15px; border: 1px solid #e2e9ed; border-radius: 10px; background: #fff; }
.standby-technician-source > strong { color: var(--navy); font-size: 12px; }
.standby-technician-source .muted { margin: 7px 0 12px; font-size: 11px; }
.standby-technician-pool { display: flex; flex-wrap: wrap; gap: 7px; }
.standby-technician-chip { padding: 7px 10px; border: 1px solid #cbdde7; border-radius: 18px; color: var(--navy); background: var(--blue-soft); font-size: 11px; font-weight: 650; cursor: grab; }
.standby-technician-chip:active, .standby-assigned-chip:active { cursor: grabbing; }
.standby-calendar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.standby-week-slot { min-height: 150px; transition: border-color .15s, background .15s; }
.standby-week-slot.drop-active { border-color: var(--blue); background: #edf7fb; box-shadow: inset 0 0 0 2px #205c8324; }
.standby-week-heading { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid #edf0f2; }
.standby-week-heading strong { color: var(--navy); font-size: 12px; }
.standby-week-heading small { color: var(--muted); font-size: 10px; }
.standby-drop-hint { margin: 13px 0 0; color: #9aa4b2; font-size: 11px; }
.standby-assigned-chip { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; padding: 8px 9px; border: 1px solid #f0e3a3; border-radius: 8px; color: var(--navy); background: #fff9dd; font-size: 11px; cursor: grab; }
.standby-remove { width: 23px; height: 23px; flex: 0 0 auto; border: 0; border-radius: 6px; color: #7b5f00; background: #ffed9a; font-size: 17px; line-height: 1; }
.technician-status-management { padding: 18px; border: 1px solid #e4ebef; border-radius: 12px; background: #f8fbfc; }
.status-create-form { max-width: 580px; margin: 0 0 20px; padding: 15px; border: 1px solid #e4ebef; border-radius: 10px; background: #fff; }
.test-account-switcher { display: flex; align-items: end; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e7ebef; }
.test-account-switcher label { flex: 1; }
.status-list-heading { margin: 22px 0 10px; color: var(--navy); font-size: 13px; }
.technician-current-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(115px, .55fr) minmax(180px, 1.2fr); align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e4ebef; border-radius: 9px; background: #fff; }
.technician-current-identity { display: grid; gap: 4px; }
.technician-current-identity strong { color: var(--navy); font-size: 12px; }
.technician-current-identity small, .technician-current-period { color: var(--muted); font-size: 10px; }
.technician-current-state { justify-self: start; padding: 5px 9px; border-radius: 20px; color: #286345; background: #e6f4eb; font-size: 10px; font-weight: 750; }
.status-state-out-of-office { color: #236184; background: #e8f2f8; }
.status-state-training { color: #286345; background: #e6f4eb; }
.status-state-leave { color: #4b4e6b; background: #ececf4; }
.application-list { display: grid; gap: 10px; }
.application-card { display: grid; gap: 5px; padding: 15px; border: 1px solid #dfe8ed; border-radius: 10px; color: var(--navy); background: #fff; text-decoration: none; }
.application-card:hover { border-color: var(--blue); background: #f3f9fc; }
.application-card strong { font-size: 14px; }
.application-card span { color: var(--muted); font-size: 11px; }
@media (max-width: 900px) {
  .standby-roster-layout { grid-template-columns: 1fr; }
  .standby-technician-pool { min-height: 38px; }
  .report-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-leaderboard { grid-column: auto; }
}
@media (max-width: 640px) {
  .standby-calendar { grid-template-columns: 1fr; }
  .standby-calendar-toolbar { flex-wrap: wrap; }
  .standby-calendar-toolbar > strong { order: -1; width: 100%; }
  .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-charts { grid-template-columns: 1fr; }
  .report-chart-completions { grid-column: auto; }
  .report-chart-completions .report-pie-layout { grid-template-columns: 1fr; }
  .report-chart-completions .report-pie-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-leaderboard { grid-column: auto; }
  .report-chart { min-height: 0; }
  .technician-current-row { grid-template-columns: 1fr auto; gap: 7px; }
  .technician-current-period { grid-column: 1 / -1; }
  .test-account-switcher { align-items: stretch; flex-direction: column; }
}
