:root {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: #19273e;
  background: #f4f6fb;
  font-synthesis: none;
  font-size: 14px;
  --navy: #111d33;
  --primary: #2f60e9;
  --border: #e6ebf3;
  --muted: #6d7b93;
  --text: #19273e;
  --sidebar: 228px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #3568fa; outline-offset: 3px; }
a { text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
svg { flex: 0 0 auto; vertical-align: middle; }
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar); background: var(--navy); color: #aebbd3; display: flex; flex-direction: column; }
.brand { display: flex; gap: 12px; align-items: center; padding: 23px 21px 24px; color: #fff; }
.brand-mark { height: 39px; width: 39px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg,#4679fb,#2858e9); color: #fff; box-shadow: inset 0 1px 0 #ffffff40, 0 4px 18px #345ff452; }
.brand strong { display: block; font-size: 21px; line-height: 1.2; letter-spacing: .07em; }
.brand small { display: block; font-size: 11px; color: #a8b7d1; margin-top: 5px; white-space: nowrap; }
.sidebar nav { overflow: auto; padding: 7px 13px 18px; }
.nav-group + .nav-group { margin-top: 24px; }
.nav-group > p { color: #8493b0; font-size: 12px; font-weight: 550; margin: 0 11px 8px; }
.nav-item { display: flex; align-items: center; gap: 11px; color: #bdc9df; border: 0; padding: 0 11px; background: transparent; border-radius: 8px; height: 42px; width: 100%; text-align: left; margin: 3px 0; font-weight: 550; white-space: nowrap; }
.nav-item svg { color: #9aaccc; }
.nav-item:hover { background: #ffffff0e; color: #fff; }
.nav-item.selected { background: #24426f; color: #f5f8ff; box-shadow: inset 3px 0 0 #6b99ff; }
.nav-item.selected svg { color: #a5c3ff; }
.nav-item small { margin-left: auto; background: #ffffff12; border-radius: 6px; color: #c7d9f9; padding: 2px 6px; font-size: 11px; }
.sidebar-bottom { margin-top: auto; padding: 15px 13px 17px; }
.workspace-label { display: flex; gap: 8px; align-items: center; padding: 10px; border: 1px solid #ffffff14; background: #ffffff05; border-radius: 8px; }
.workspace-label > span { height: 30px; width: 30px; flex: 0 0 auto; display: grid; place-items: center; color: #afc8f4; background: #25395b; border-radius: 7px; }
.workspace-label > div { min-width: 0; }
.workspace-label strong, .workspace-label small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.workspace-label strong { font-size: 12px; color: #e4ecfa; }
.workspace-label small { font-size: 11px; color: #a4b4cf; margin-top: 4px; }
.main-shell { margin-left: var(--sidebar); min-height: 100vh; }
.topbar { height: 65px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 27px; position: relative; z-index: 10; }
.breadcrumbs, .top-actions { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.breadcrumbs strong { color: var(--text); font-weight: 650; }
.breadcrumbs > button { display: none; }
.top-actions { gap: 13px; }
.top-separator { height: 26px; width: 1px; background: var(--border); }
.quick-search { display: flex; align-items: center; gap: 8px; color: #687892; background: #f6f8fc; border: 1px solid #edf0f7; border-radius: 8px; padding: 7px 9px; }
.quick-search span { min-width: 92px; text-align: left; }
kbd { font: 11px system-ui,sans-serif; color: #72829d; background: #fff; border: 1px solid #e8edf4; border-radius: 4px; padding: 2px 5px; }
.icon-button { background: transparent; border: 0; color: #536581; display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 7px; padding: 0; position: relative; }
.icon-button:hover, .quick-search:hover { background: #eef3fc; color: #2c5ad0; }
.notice i { position: absolute; width: 8px; height: 8px; background: #fb785d; border: 1.5px solid #fff; border-radius: 50%; right: 7px; top: 7px; }
.profile { display: flex; gap: 9px; align-items: center; background: transparent; border: 0; padding: 0; color: #67748b; text-align: left; }
.profile strong, .profile small { display: block; white-space: nowrap; }
.profile strong { color: var(--text); font-weight: 650; }
.profile small { color: var(--muted); margin-top: 3px; font-size: 11px; }
.avatar { display: inline-grid; place-items: center; height: 33px; width: 33px; min-width: 33px; border-radius: 50%; font-weight: 700; font-size: 13px; }
.tone-0 { background: #e8efff; color: #3566df; }
.tone-1 { background: #e4efff; color: #2d62c2; }
.tone-2 { background: #e1f6ef; color: #168470; }
.tone-3 { background: #f0eaff; color: #7753d6; }
.tone-4 { background: #fff1dd; color: #a7620b; }
.tone-5 { background: #ffeaf0; color: #b34469; }
.popover-anchor { position: relative; }
.popover { position: absolute; z-index: 30; right: 0; top: calc(100% + 13px); min-width: 205px; background: #fff; padding: 7px; border: 1px solid var(--border); box-shadow: 0 12px 32px #1a2e5229; border-radius: 10px; }
.popover > strong { display: block; margin: 7px 9px; color: var(--text); }
.menu-caption { color: var(--muted); font-size: 12px; padding: 8px 9px 5px; }
.menu-row { display: flex; text-align: left; align-items: center; gap: 8px; padding: 9px; width: 100%; border: 0; background: #fff; border-radius: 6px; white-space: nowrap; }
.menu-row:hover, .menu-row.current { color: #2458d2; background: #edf3ff; }
.menu-row span { margin-left: auto; color: var(--muted); font-size: 12px; }
#main-content { padding: 24px 27px 38px; max-width: 1760px; margin: 0 auto; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.page-head h1 { font-size: 27px; line-height: 1.32; letter-spacing: -.025em; font-weight: 750; }
.page-head p { color: var(--muted); margin-top: 6px; line-height: 1.55; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn, .date-control { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 13px; font-weight: 650; white-space: nowrap; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: #394a65; }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 4px #2557d22a; }
.btn.primary:hover { background: #2452d2; }
.btn.secondary:hover, .btn.small:hover { color: #2356d2; border-color: #bfcff4; background: #f8faff; }
.btn.small { font-size: 13px; min-height: 32px; padding: 0 10px; font-weight: 600; }
.btn.danger-text { color: #b62e48; }
.date-control { color: #5c6c86; font-size: 13px; font-weight: 550; }
.hero { overflow: hidden; border-radius: 13px; min-height: 143px; background: linear-gradient(105deg,#1747bf 0%,#285ad9 55%,#3c6cf1 100%); color: #fff; display: flex; position: relative; align-items: center; padding: 21px 25px; box-shadow: 0 4px 9px #194dd01b; }
.hero-copy { position: relative; z-index: 1; }
.hero-label { color: #e4edff; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; font-size: 12px; font-weight: 600; border-radius: 5px; background: #ffffff20; }
.hero-label svg { color: #c8ddff; }
.hero h2 { font-size: 26px; margin: 7px 0 5px; letter-spacing: .01em; }
.hero p { color: #e5eeff; line-height: 1.55; }
.hero p b { color: #fff; }
.hero-art { position: absolute; inset: 0 0 0 auto; width: min(49%,520px); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(90deg,#ffffff0b 1px,transparent 1px),linear-gradient(#ffffff0b 1px,transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg,transparent,#000); }
.orbit { position: absolute; width: 280px; height: 100px; right: 72px; top: 23px; border: 1px solid #c6dbff2e; border-radius: 50%; transform: rotate(-20deg); }
.orbit.two { scale: 1.28; }
.orbit.three { scale: 1.57; }
.orbit.four { scale: 1.89; }
.hero-tile { position: absolute; right: 163px; top: 31px; width: 100px; height: 85px; border-radius: 19px; transform: rotate(-19deg) skewX(10deg); border: 1px solid #a5c4ff75; background: #a6c1ff2b; }
.tile-a { translate: 3px 15px; background: #204bbc87; }
.tile-b { translate: 1px 8px; background: #5176e9; }
.tile-c { display: grid; place-items: center; color: #f1f6ff; background: linear-gradient(140deg,#a7c4ff7a,#507bec74); box-shadow: inset 0 1px 12px #bdd6ff3d; }
.tile-c svg { transform: skewX(-10deg); }
.hero-float { display: grid; place-items: center; position: absolute; width: 43px; height: 43px; border: 1px solid #c8deff66; background: #80a3ff37; border-radius: 10px; color: #d6e6ff; transform: rotate(-17deg); }
.float-a { right: 293px; top: 52px; }
.float-b { right: 101px; top: 62px; }
.spark { position: absolute; width: 6px; height: 6px; rotate: 45deg; background: #c5dfff; box-shadow: 0 0 13px #d1ddff; border-radius: 1px; }
.spark-a { right: 69px; top: 35px; }
.spark-b { right: 270px; top: 29px; width: 4px; height: 4px; }
.spark-c { right: 344px; top: 96px; width: 4px; height: 4px; opacity: .7; }
.kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin: 15px 0; }
.kpi { border: 1px solid var(--border); background: #fff; text-align: left; border-radius: 11px; color: var(--text); padding: 14px 15px 13px; min-width: 0; box-shadow: 0 2px 3px #17305c05; }
.kpi:hover { border-color: #b6c8f8; background: #fcfdff; }
.kpi-top { display: flex; align-items: center; gap: 9px; }
.kpi-icon { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; }
.kpi-icon.amber { background: #fff2dd; color: #b76b09; }
.kpi-icon.blue { background: #eaf0ff; color: #2d5fde; }
.kpi-icon.purple { background: #f0eaff; color: #7250cd; }
.kpi-icon.green { background: #e2f6ef; color: #118268; }
.kpi-label { color: #53637d; font-weight: 650; }
.kpi > strong { font-size: 30px; display: block; line-height: 1.1; font-variant-numeric: tabular-nums; margin: 7px 0 4px; letter-spacing: -.035em; }
.kpi > strong small { font-size: 17px; margin-left: 2px; }
.kpi > small { color: var(--muted); font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.66fr) minmax(0,1fr); gap: 15px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 11px; min-width: 0; box-shadow: 0 2px 3px #17305c05; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; gap: 9px; }
.panel-head h2 { font-size: 17px; line-height: 1.3; font-weight: 730; }
.panel-head p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.segmented { display: flex; padding: 3px; background: #f4f6fa; gap: 2px; border-radius: 7px; flex-shrink: 0; }
.segmented button { background: transparent; border: 0; color: #66768f; border-radius: 5px; padding: 5px 8px; font-size: 12px; white-space: nowrap; }
.segmented button.active { background: #fff; color: #2557d0; box-shadow: 0 1px 3px #22396a17; font-weight: 700; }
.legend { display: flex; gap: 15px; padding: 0 18px 8px; color: #5b6b84; font-size: 12px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: #3263ee; }
.legend span + span i { background: #24ae98; }
.chart-area { height: 172px; margin: 0 14px 10px; position: relative; }
.chart-area canvas { width: 100%; height: 100%; display: block; }
.chart-tooltip { pointer-events: none; position: absolute; top: 12px; color: #263656; background: #fff; border: 1px solid var(--border); box-shadow: 0 6px 18px #25395722; border-radius: 7px; padding: 7px 10px; font-size: 12px; }
.chart-tooltip strong, .chart-tooltip span { display: block; white-space: nowrap; }
.chart-tooltip span { margin-top: 3px; color: var(--muted); }
.load-list { padding: 0 17px 10px; }
.load-row { display: grid; grid-template-columns: minmax(91px,1.14fr) minmax(28px,1fr) 66px; gap: 10px; align-items: center; min-height: 41px; }
.load-person { display: flex; align-items: center; gap: 8px; min-width: 0; }
.load-person div { min-width: 0; }
.load-person strong, .load-person small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.load-person strong { font-weight: 650; font-size: 13px; }
.load-person small { color: var(--muted); margin-top: 2px; font-size: 11px; }
.load-track { height: 6px; border-radius: 10px; background: #edf0f7; overflow: hidden; min-width: 0; }
.load-track span { display: block; height: 100%; border-radius: inherit; }
.cool { background: #4e7bf2; }
.warm { background: #f3ad4a; }
.hot { background: #e56a59; }
.load-number { font-size: 12px; text-align: right; color: #65748e; white-space: nowrap; font-variant-numeric: tabular-nums; }
.recent, .space-top { margin-top: 15px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { color: #5d6c84; background: #f7f9fd; }
th, td { padding: 11px 13px; border-bottom: 1px solid #edf0f6; white-space: nowrap; }
th { font-size: 12px; font-weight: 700; }
td { color: #374760; font-size: 13px; }
th:first-child, td:first-child { padding-left: 17px; }
th:last-child, td:last-child { padding-right: 17px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcff; }
.action-cell { text-align: right; }
.cell-title, .cell-secondary { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.cell-title { color: #273751; font-weight: 650; }
.cell-secondary { color: var(--muted); font-size: 12px; margin-top: 4px; }
.cell-person { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.cell-person > .avatar { width: 26px; min-width: 26px; height: 26px; font-size: 11px; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.table-link { color: #2858ce; padding: 0; border: 0; background: none; font-weight: 650; text-align: left; }
.table-link:hover { text-decoration: underline; }
.order-number { font-size: 12px; font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 3px 7px; font-size: 12px; font-weight: 650; }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pending, .priority-high { color: #9e5c0b; background: #fff3db; }
.assigned, .type-install { color: #2956c6; background: #eaf0ff; }
.working { color: #116b9f; background: #e4f4ff; }
.review, .type-maintenance { color: #6d45b8; background: #f1eaff; }
.closed { color: #187563; background: #e3f7ef; }
.type-repair { color: #127c76; background: #e2f6f3; }
.priority-urgent { color: #b83b45; background: #ffecef; }
.priority-normal, .priority-low { color: #5d6b82; background: #f0f3f8; }
.empty { text-align: center; min-height: 150px; padding: 25px 14px; display: grid; place-content: center; justify-items: center; gap: 7px; color: var(--muted); }
.empty > div { background: #edf3ff; color: #4070db; border-radius: 12px; padding: 10px; }
.empty strong { color: #41536c; }
.empty p { font-size: 13px; }
.toolbar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; padding: 14px 16px; }
input, select, textarea { background: #fff; border: 1px solid #dce4f0; color: #263854; border-radius: 7px; min-height: 38px; padding: 8px 10px; outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: #76859e; opacity: 1; }
select { appearance: none; padding-right: 29px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%2361718d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.search-field { display: flex; align-items: center; gap: 7px; padding: 0 10px; color: #627492; border: 1px solid #dce4f0; background: #fff; border-radius: 7px; min-width: 0; }
.search-field:focus-within { outline: 2px solid #3568fa; outline-offset: 2px; }
.search-field input { padding-left: 0; border: none; min-width: 0; width: 240px; outline: none; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); padding: 12px 17px; font-size: 13px; border-top: 1px solid var(--border); }
.pagination > div { display: flex; align-items: center; gap: 10px; }
.pagination b { color: #415371; }
.dispatch-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 15px; }
.rating-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
.mini-stat { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.mini-stat small, .mini-stat strong { display: block; }
.mini-stat small { color: var(--muted); }
.mini-stat strong { color: var(--text); font-size: 22px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.date-switch, .table-actions { display: flex; align-items: center; gap: 5px; }
.date-switch button:first-child svg { transform: rotate(180deg); }
.schedule-wrap { overflow-x: auto; padding: 0 17px 15px; }
.schedule { min-width: 720px; padding-right: 4px; }
.schedule-row { display: grid; grid-template-columns: 130px minmax(470px,1fr) 112px; min-height: 54px; align-items: stretch; border-bottom: 1px solid #edf1f7; }
.schedule-row > div:first-child, .schedule-row > div:last-child { padding: 8px 8px 8px 0; align-content: center; }
.schedule-row > div:last-child { padding-left: 14px; }
.schedule-header { color: #556580; font-size: 12px; min-height: 35px; background: #f7f9fd; }
.schedule-header > div:first-child { padding-left: 8px; }
.schedule-track { position: relative; background-image: repeating-linear-gradient(to right, #e8edf6 0 1px, transparent 1px calc(100% / var(--grid-count, 10))); border-right: 1px solid #e8edf6; }
.schedule-header .schedule-track { background: none; }
.schedule-header .schedule-track span { position: absolute; transform: translateX(-50%); top: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.schedule-header .schedule-track span:first-child { transform: none; margin-left: 3px; }
.schedule-header .schedule-track span:last-child { transform: translateX(-100%); }
.schedule-booking { position: absolute; display: block; top: 12px; height: 30px; text-align: left; font-size: 12px; font-weight: 650; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid #aabdff; background: #e6edff; color: #234eb7; border-radius: 6px; }
.schedule-booking.repair { border-color: #a4dcd4; background: #e3f7f3; color: #126e63; }
.schedule-booking.maintenance { border-color: #cfc2fd; background: #f0eaff; color: #6846b8; }
.schedule-booking:hover { filter: saturate(1.9); }
.schedule-usage { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 12px; }
.table-load { display: flex; align-items: center; gap: 8px; }
.table-load .load-track { width: 72px; }
.table-load b { min-width: 32px; font-variant-numeric: tabular-nums; }
.score { display: inline-flex; gap: 5px; align-items: center; color: #99620e; font-weight: 700; }
.star-text { color: #b87311; letter-spacing: 1px; white-space: nowrap; }
.star-text span { color: #8895a9; }
dialog { border: 1px solid #e4eaf4; border-radius: 14px; padding: 0; width: min(calc(100% - 28px), 570px); max-width: none; max-height: min(90vh,805px); color: var(--text); box-shadow: 0 20px 70px #0717324d; background: #fff; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #14223a65; }
.modal-top { padding: 19px 21px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; border-bottom: 1px solid #eaf0f7; }
.modal-top h2 { font-size: 20px; line-height: 1.4; }
.modal-top p { margin-top: 5px; color: var(--muted); line-height: 1.5; font-size: 13px; }
.modal-top button { flex-shrink: 0; }
.modal-form { min-height: 0; display: flex; flex-direction: column; }
.form-body { padding: 17px 21px; overflow: auto; min-height: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 13px; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.field > span { color: #445673; font-weight: 650; }
.field > span b { color: #bb3948; }
.field.wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; }
.field textarea { resize: vertical; }
.form-info { display: flex; align-items: center; gap: 8px; color: #365a9e; padding: 10px 11px; border: 1px solid #e0e9fb; border-radius: 8px; background: #f0f5ff; margin-bottom: 14px; overflow-wrap: anywhere; }
.form-error { color: #a82b42; background: #fff0f2; border-radius: 6px; padding: 9px 11px; margin: 12px 0 0; line-height: 1.5; }
.modal-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; border-top: 1px solid #eaf0f7; padding: 13px 21px; background: #fff; }
.drawer { margin: 0 0 0 auto; inset: 0 0 0 auto; width: min(100%,530px); height: 100%; max-height: 100%; border-radius: 0; }
.drawer-content { padding: 18px 21px; overflow: auto; flex: 1; }
.drawer-tags { display: flex; gap: 7px; }
.details-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; padding: 14px; border: 1px solid #ebeff7; border-radius: 8px; background: #f8faff; }
.details-grid dt { color: var(--muted); font-size: 12px; }
.details-grid dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.detail-block { border-top: 1px solid var(--border); margin-top: 13px; padding-top: 12px; }
.detail-block h3 { font-size: 15px; margin-bottom: 8px; }
.detail-block p { color: #495b76; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.timeline { margin: 8px 0 0; padding: 0 0 0 10px; list-style: none; border-left: 2px solid #dce7fc; }
.timeline li { padding: 0 0 13px 6px; position: relative; }
.timeline li::before { content: ''; background: #5080ed; width: 7px; height: 7px; border-radius: 50%; position: absolute; top: 6px; left: -14px; }
.timeline small { color: var(--muted); display: block; margin-top: 3px; }
.timeline p { margin-top: 4px; }
.global-search-body { padding: 15px 20px 20px; overflow: auto; }
.global-search-body .search-field { margin-bottom: 10px; }
.global-search-body input { width: 100%; }
.search-hit { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid #edf0f6; padding: 10px 5px; background: #fff; text-align: left; }
.search-hit:hover { background: #f5f8ff; }
.search-hit > span:nth-child(2) { flex: 1; }
.search-hit small { display: block; margin-top: 4px; color: var(--muted); }
#toasts { position: fixed; z-index: 90; right: 17px; bottom: 17px; display: grid; gap: 8px; max-width: calc(100vw - 34px); }
.toast { display: flex; align-items: center; gap: 8px; background: #172941; color: #fff; border-radius: 8px; padding: 11px 14px; box-shadow: 0 6px 22px #13264738; }
.toast svg { color: #80dbc0; }
.toast.error svg { color: #ff8e9f; }
.mobile-cover { display: none; }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.boot-mark { background: var(--primary); color: #fff; border-radius: 15px; font-size: 27px; font-weight: 750; padding: 10px 13px; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(310px, 39%) minmax(0,1fr); }
.auth-brand { display: flex; flex-direction: column; min-height: 100%; position: relative; overflow: hidden; background: radial-gradient(ellipse at 78% 73%,#22499c 0%,transparent 55%),#111d33; color: #fff; }
.auth-brand .brand { padding: 32px; }
.auth-message { margin: auto 0; padding: 32px clamp(25px,5vw,72px) 55px; position: relative; z-index: 1; overflow: hidden; }
.auth-message > span { color: #aac2fa; font-weight: 650; }
.auth-message h1 { position: relative; z-index: 1; font-size: clamp(31px,4.2vw,59px); line-height: 1.2; margin-top: 10px; }
.auth-decoration { position: absolute; right: 23px; bottom: 22px; color: #a6beff40; rotate: -15deg; }
.auth-content { display: grid; place-items: center; padding: 25px; }
.auth-card { margin: 0 auto; max-width: 560px; width: 100%; padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: 13px; }
.auth-card h2 { font-size: 23px; }
.auth-card > p { color: var(--muted); margin: 7px 0 20px; line-height: 1.5; }
.auth-submit { width: 100%; margin-top: 12px; }
@media (max-width: 1130px) {
  :root { --sidebar: 193px; }
  #main-content { padding-inline: 18px; }
  .topbar { padding-inline: 18px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); }
  .load-row { gap: 6px; }
  .hero-art { right: -35px; }
}
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .load-row { grid-template-columns: minmax(110px,160px) 1fr 70px; }
  .kpis { gap: 8px; }
  .kpi { padding-inline: 9px; }
  .kpi-top { gap: 5px; }
  .kpi-icon { width: 29px; height: 29px; }
  .dispatch-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
}
@media (max-width: 720px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .mobile-cover { display: block; border: 0; position: fixed; inset: 0; z-index: 19; background: #14224070; }
  .main-shell { margin-left: 0; }
  .breadcrumbs > button { display: inline-grid; }
  .breadcrumbs { gap: 5px; }
  .breadcrumbs > span { display: none; }
  .breadcrumbs > svg { display: none; }
  .topbar { padding: 0 12px; height: 54px; }
  .top-actions { gap: 7px; }
  .quick-search { background: transparent; border: 0; min-height: 35px; }
  .quick-search span, .quick-search kbd { display: none; }
  #main-content { padding: 17px 12px 27px; }
  .page-head { align-items: flex-start; margin-bottom: 13px; }
  .page-head h1 { font-size: 23px; }
  .page-head p { font-size: 13px; }
  .page-actions { justify-content: flex-end; }
  .page-actions .date-control { display: none; }
  .hero { min-height: 130px; padding: 15px; }
  .hero-art { opacity: .48; width: 100%; right: -130px; }
  .hero h2 { font-size: 23px; }
  .hero p { max-width: 350px; }
  .rating-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .auth-shell { display: block; }
  .auth-brand .brand { padding: 16px 20px; }
  .auth-message { display: none; }
  .auth-content { padding: 15px; }
}
@media (max-width: 485px) {
  .kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kpi { padding-inline: 12px; }
  .page-head { flex-wrap: wrap; }
  .page-head p { max-width: 100%; }
  .date-switch { flex-wrap: wrap; justify-content: flex-end; }
  .date-switch .btn { display: none; }
  .date-switch input { max-width: 120px; padding-inline: 4px; }
  .panel-head { padding-inline: 12px; }
  .panel-head h2 { font-size: 16px; }
  .profile div { display: none; }
  .profile .avatar { height: 29px; width: 29px; min-width: 29px; }
  .toolbar { padding-inline: 11px; }
  .toolbar .search-field { flex-basis: 100%; }
  .toolbar input { width: 100%; }
  .auth-card { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; } }

.brand > strong { font-size: 16px; letter-spacing: .015em; white-space: nowrap; }
.sidebar .brand { padding-inline: 16px; gap: 8px; }
.sidebar .brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.auth-shell { grid-template-columns: minmax(310px, 46%) minmax(0,1fr); background: #f7f8f6; }
.auth-brand { isolation: isolate; background: #11241f; }
.auth-image { position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg,#11241ff0 0%,#11241f70 75%),url("/field-service.webp") 57% center / cover no-repeat; }
.auth-brand .brand { width: max-content; }
.auth-brand .brand-mark { background: #176b55; box-shadow: none; }
.auth-brand .brand strong { font-size: 18px; }
.auth-message { padding-block: 45px; }
.auth-message h1 { font-size: clamp(30px,4vw,58px); font-weight: 740; letter-spacing: -.05em; }
.auth-card { max-width: 470px; padding: 33px; border-color: #dfe7e2; box-shadow: 0 12px 32px #1a332614; }
.auth-card h2 { font-size: 26px; color: #172e25; margin-top: 18px; }
.auth-card > p { color: #536b60; }
.auth-card .field > span { color: #324b41; }
.auth-card .field input { border-color: #d6e2db; min-height: 43px; }
.auth-card .btn.primary { background: #156b55; border-color: #156b55; box-shadow: none; }
.auth-card .btn.primary:hover { background: #105743; }
.auth-home, .auth-links a { color: #15604d; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.auth-links { display: flex; gap: 12px; margin-top: 17px; }
@media (max-width: 720px) {
  .auth-shell { display: block; }
  .auth-brand .brand { padding: 15px 18px; }
  .auth-card { padding: 22px; }
}
