:root {
  --ink: #17231f;
  --muted: #6f7d76;
  --line: #e4e9e6;
  --soft: #f4f7f5;
  --paper: #ffffff;
  --forest: #14261f;
  --forest-2: #1d352b;
  --accent: #c8f04a;
  --accent-dark: #91b918;
  --teal: #169b84;
  --blue: #4b72e6;
  --orange: #eb8b3c;
  --red: #df5a5a;
  --shadow: 0 18px 48px rgba(19, 40, 31, .11);
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: #edf1ef;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 244px;
  display: flex;
  flex-direction: column;
  padding: 25px 18px 18px;
  color: #dce6e1;
  background:
    radial-gradient(circle at 15% 75%, rgba(200, 240, 74, .07), transparent 34%),
    var(--forest);
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 3px 29px; }
.brand [hidden] { display: none !important; }
.brand-copy { min-width: 0; flex: 1; }
.brand strong { display: -webkit-box; overflow: hidden; color: white; font-size: 14px; line-height: 1.16; letter-spacing: -.35px; text-transform: uppercase; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.brand small { display: block; margin-top: 1px; color: #82958c; font-size: 10px; text-transform: uppercase; letter-spacing: 1.7px; }
.brand-mark { width: 34px; height: 34px; display: flex; align-items: flex-end; gap: 3px; padding: 8px; border-radius: 10px; background: var(--accent); }
.brand-mark span { flex: 1; display: block; border-radius: 3px 3px 1px 1px; background: var(--forest); }
.brand-mark span:nth-child(1) { height: 9px; }
.brand-mark span:nth-child(2) { height: 17px; }
.brand-mark span:nth-child(3) { height: 13px; }
.main-nav { display: grid; gap: 5px; }
.nav-item { width: 100%; height: 47px; display: flex; align-items: center; gap: 13px; padding: 0 13px; border: 0; border-radius: 12px; color: #9caea6; background: transparent; cursor: pointer; text-align: left; transition: .2s ease; }
.nav-item svg { width: 19px; }
.nav-item span { flex: 1; font-size: 14px; font-weight: 600; }
.nav-item b { display: grid; place-items: center; min-width: 23px; height: 21px; padding: 0 5px; border-radius: 7px; color: #b8c7c0; background: #263d33; font-size: 11px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item.active { color: var(--forest); background: var(--accent); }
.nav-item.active b { color: white; background: var(--forest); }
.sidebar-bottom { margin-top: auto; }
.plan-card { margin: 16px 3px; padding: 15px; border: 1px solid #30463d; border-radius: 15px; background: rgba(255,255,255,.035); }
.plan-icon { width: 33px; height: 33px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 10px; color: var(--accent); background: rgba(200,240,74,.1); }
.plan-icon svg { width: 18px; }
.plan-card strong { color: #f8fbf9; font-size: 13px; }
.plan-card p { margin: 6px 0 12px; color: #84988e; font-size: 11px; line-height: 1.45; }
.plan-card button { padding: 0; border: 0; color: var(--accent); background: none; font-size: 11px; font-weight: 700; cursor: pointer; }
.user-card { display: flex; align-items: center; gap: 9px; padding: 14px 8px 2px; border-top: 1px solid #2c4138; }
.avatar { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: var(--forest); background: #d3e6dc; font-size: 12px; font-weight: 800; }
.user-card div:nth-child(2) { min-width: 0; flex: 1; }
.user-card strong, .user-card small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card strong { color: white; font-size: 12px; }
.user-card small { margin-top: 3px; color: #7d9087; font-size: 10px; }
.user-card button { border: 0; color: #7f9289; background: none; cursor: pointer; }

.main-content { min-width: 0; grid-column: 2; }
.topbar { position: sticky; top: 0; z-index: 20; height: 75px; display: flex; align-items: center; gap: 18px; padding: 0 30px; border-bottom: 1px solid #e0e6e3; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.search-box { position: relative; width: min(460px, 42vw); display: flex; align-items: center; }
.search-box > svg { position: absolute; left: 14px; width: 18px; color: #86938d; pointer-events: none; }
.search-box input { width: 100%; height: 42px; padding: 0 61px 0 42px; border: 1px solid #dfe6e2; border-radius: 12px; outline: none; color: var(--ink); background: #f7f9f8; font-size: 13px; transition: .2s ease; }
.search-box input:focus { border-color: #9fc534; box-shadow: 0 0 0 3px rgba(200,240,74,.18); background: white; }
.search-box kbd { position: absolute; right: 11px; padding: 3px 6px; border: 1px solid #dfe5e2; border-radius: 6px; color: #8b9791; background: white; font-family: inherit; font-size: 10px; }
.search-results { position: absolute; top: 49px; left: 0; right: 0; display: none; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.search-results.open { display: block; }
.search-result { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.search-result:hover { background: var(--soft); }
.search-result .result-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--teal); background: #e9f6f2; }
.search-result .result-icon svg { width: 17px; }
.search-result strong, .search-result small { display: block; }
.search-result strong { font-size: 12px; }
.search-result small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.language-switch { display: flex; align-items: center; gap: 2px; height: 36px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.language-switch button { height: 28px; min-width: 31px; padding: 0 6px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.language-switch button.active { color: var(--forest); background: var(--accent); }
.today-chip { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; color: #5e6d65; background: white; font-size: 12px; font-weight: 600; }
.today-chip svg { width: 16px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; }
.icon-btn:hover { background: var(--soft); }
.notification-btn { position: relative; }
.notification-btn i { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: var(--red); }
.logout-btn svg { width: 18px; color: #607169; }
.primary-btn { height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 0; border-radius: 11px; color: white; background: var(--forest); box-shadow: 0 7px 18px rgba(20,38,31,.16); font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.primary-btn:hover { transform: translateY(-1px); background: #21392f; }
.primary-btn svg { width: 16px; }
.primary-btn.accent { color: var(--forest); background: var(--accent); box-shadow: none; }
.mobile-menu { display: none; }

.view-root { padding: 29px 30px 45px; }
.view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 5px; color: var(--teal); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; }
.view-head h1 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.7px; }
.view-head p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.head-actions { display: flex; align-items: center; gap: 9px; }
.secondary-btn { height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; color: #425149; background: white; font-size: 12px; font-weight: 700; cursor: pointer; }
.secondary-btn:hover { border-color: #c9d4ce; background: #fafcfb; }
.secondary-btn.active { border-color: #b7ef4a; color: var(--forest); background: #f3ffd8; }
.secondary-btn svg { width: 16px; }
.danger-btn { color: #9d2f26; border-color: #f0c8c3; background: #fff7f6; }
.danger-btn:hover { border-color: #e6aaa3; background: #fff0ee; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 17px; }
.metric-card { position: relative; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.metric-card.highlight { color: white; border-color: var(--forest); background: var(--forest); }
.metric-card.highlight::after { content: ""; position: absolute; width: 110px; height: 110px; right: -33px; bottom: -47px; border: 22px solid rgba(200,240,74,.11); border-radius: 50%; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 600; }
.highlight .metric-top { color: #9eb0a7; }
.metric-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--teal); background: #edf7f4; }
.metric-icon svg { width: 16px; }
.highlight .metric-icon { color: var(--accent); background: rgba(200,240,74,.1); }
.metric-value { display: flex; align-items: baseline; gap: 7px; margin-top: 13px; }
.metric-value strong { font-size: 27px; line-height: 1; letter-spacing: -.8px; }
.metric-value small { color: var(--muted); font-size: 10px; }
.highlight .metric-value small { color: #82968c; }
.metric-trend { display: inline-flex; align-items: center; gap: 4px; margin-top: 11px; color: var(--teal); font-size: 10px; font-weight: 700; }
.metric-trend.neutral { color: var(--muted); }
.highlight .metric-trend { color: var(--accent); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 17px; }
.stack { display: grid; align-content: start; gap: 17px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 18px 13px; }
.panel-head h2 { margin: 0; font-size: 14px; letter-spacing: -.15px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.text-btn { display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; color: var(--teal); background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.text-btn svg { width: 13px; }
.schedule-list { padding: 0 10px 10px; }
.schedule-row { display: grid; grid-template-columns: 62px 4px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 8px; border-top: 1px solid #edf0ee; cursor: pointer; }
.schedule-row:hover { background: #fafcfb; }
.schedule-time strong, .schedule-time small { display: block; }
.schedule-time strong { font-size: 12px; }
.schedule-time small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.schedule-line { width: 4px; height: 38px; border-radius: 5px; background: var(--teal); }
.schedule-line.orange { background: var(--orange); }
.schedule-line.blue { background: var(--blue); }
.schedule-info { min-width: 0; }
.schedule-info strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-info span { display: flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--muted); font-size: 9px; }
.schedule-info svg { width: 11px; height: 11px; }
.team-pill { display: flex; align-items: center; gap: 7px; padding: 5px 8px 5px 5px; border-radius: 9px; background: var(--soft); font-size: 9px; font-weight: 700; }
.mini-avatar { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: white; background: var(--teal); font-size: 8px; font-weight: 800; }
.mini-avatar.blue { background: var(--blue); }
.mini-avatar.orange { background: var(--orange); }
.team-loads { padding: 3px 18px 17px; }
.team-load-row { margin-top: 14px; }
.team-load-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; font-size: 10px; }
.team-load-meta strong { font-size: 11px; }
.team-load-meta span { color: var(--muted); }
.progress { height: 6px; border-radius: 6px; background: #edf1ef; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.progress i.blue { background: var(--blue); }
.progress i.orange { background: var(--orange); }
.quick-card { position: relative; min-height: 155px; padding: 20px; border: 0; border-radius: var(--radius); color: white; background: linear-gradient(135deg, #246b5b, #173f35); overflow: hidden; }
.quick-card::before { content: ""; position: absolute; inset: -45px -25px auto auto; width: 145px; height: 145px; border: 28px solid rgba(255,255,255,.05); border-radius: 50%; }
.quick-card h2 { position: relative; margin: 0; font-size: 17px; }
.quick-card p { position: relative; max-width: 260px; margin: 8px 0 18px; color: #b9d1c8; font-size: 11px; line-height: 1.55; }
.quick-card button { position: relative; height: 36px; padding: 0 13px; border: 0; border-radius: 10px; color: var(--forest); background: var(--accent); font-size: 10px; font-weight: 800; cursor: pointer; }
.attention-list { padding: 0 10px 10px; }
.attention-item { display: flex; align-items: center; gap: 10px; padding: 11px 8px; border-top: 1px solid #edf0ee; cursor: pointer; }
.attention-item:hover { background: #fafcfb; }
.attention-icon { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--orange); background: #fff3e9; }
.attention-icon.red { color: var(--red); background: #fdeeee; }
.attention-icon svg { width: 17px; }
.attention-item > div:nth-child(2) { min-width: 0; flex: 1; }
.attention-item strong, .attention-item small { display: block; }
.attention-item strong { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attention-item small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.attention-item > svg { width: 14px; color: #a1aca6; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.filter-tabs { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.filter-tab { height: 31px; padding: 0 11px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.filter-tab.active { color: var(--ink); background: #edf2ef; }
.toolbar .compact-search { margin-left: auto; width: 220px; }
.compact-search { position: relative; }
.compact-search svg { position: absolute; top: 10px; left: 11px; width: 15px; color: #88968f; }
.compact-search input { width: 100%; height: 36px; padding: 0 12px 0 34px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: white; font-size: 11px; }
.data-panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.order-row { display: grid; grid-template-columns: 92px minmax(170px, 1.1fr) minmax(180px, 1.4fr) 115px 105px 32px; gap: 13px; align-items: center; padding: 15px 17px; border-top: 1px solid #edf0ee; cursor: pointer; }
.order-row:first-child { border-top: 0; }
.order-row:hover { background: #fafcfb; }
.order-code strong { display: block; font-size: 11px; }
.order-code small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.order-object strong, .order-object small, .order-task strong, .order-task small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-object strong, .order-task strong { font-size: 11px; }
.order-object small, .order-task small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.status { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-width: 76px; height: 25px; padding: 0 9px; border-radius: 8px; color: #55625c; background: #edf1ef; font-size: 9px; font-weight: 800; }
.status.in-progress { color: #187361; background: #e5f5f0; }
.status.scheduled { color: #4c68bd; background: #edf0fb; }
.status.waiting { color: #b66e2d; background: #fff0e3; }
.status.done { color: #63706a; background: #eef1ef; }
.priority { display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 700; }
.priority i { width: 7px; height: 7px; border-radius: 50%; background: #9da9a3; }
.priority.high i { background: var(--red); }
.priority.medium i { background: var(--orange); }
.priority.low i { background: var(--teal); }
.row-arrow { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #89968f; background: white; }
.row-arrow svg { width: 13px; }
.empty-state { padding: 55px 20px; text-align: center; }
.empty-state svg { width: 36px; height: 36px; color: #a4b0aa; }
.empty-state h3 { margin: 12px 0 5px; font-size: 14px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 11px; }

.objects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.object-card { padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: white; cursor: pointer; transition: .2s ease; }
.object-card:hover { transform: translateY(-2px); border-color: #c9d7d0; box-shadow: 0 12px 30px rgba(20,38,31,.07); }
.object-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.object-type { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 12px; color: var(--teal); background: #e9f6f2; }
.object-type.commercial { color: var(--blue); background: #edf0fb; }
.object-type svg { width: 19px; }
.health { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 700; }
.health i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.health.attention i { background: var(--orange); }
.health.critical i { background: var(--red); }
.object-card h3 { margin: 14px 0 5px; font-size: 13px; }
.object-address { display: flex; gap: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.object-address svg { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 1px; }
.equipment-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0; }
.equipment-tag { padding: 5px 7px; border-radius: 7px; color: #526159; background: var(--soft); font-size: 8px; font-weight: 700; }
.object-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid #edf0ee; color: var(--muted); font-size: 9px; }
.object-card-foot strong { color: var(--ink); }

.teams-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.team-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.team-card-head { display: flex; align-items: center; gap: 11px; }
.team-avatar { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; color: white; background: var(--teal); font-size: 12px; font-weight: 800; }
.team-avatar.blue { background: var(--blue); }
.team-avatar.orange { background: var(--orange); }
.team-card-head h3 { margin: 0; font-size: 13px; }
.team-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.team-status { margin-left: auto; width: 8px; height: 8px; border: 2px solid #d9eee8; border-radius: 50%; background: var(--teal); }
.team-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 17px 0; }
.team-stat { padding: 9px; border-radius: 10px; background: var(--soft); text-align: center; }
.team-stat strong, .team-stat small { display: block; }
.team-stat strong { font-size: 13px; }
.team-stat small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.next-job { padding-top: 14px; border-top: 1px solid var(--line); }
.next-job > small { display: block; margin-bottom: 7px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .9px; }
.next-job div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.next-job strong { font-size: 10px; }
.next-job span { color: var(--teal); font-size: 9px; font-weight: 800; }
.dispatch-toolbar { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(145px, .45fr) minmax(145px, .45fr) minmax(210px, auto) auto; align-items: end; gap: 14px; margin-bottom: 18px; padding: 18px 20px; overflow: hidden; }.dispatch-toolbar > div strong, .dispatch-toolbar > div small { display: block; }.dispatch-toolbar > div small { margin-top: 5px; color: var(--muted); }.dispatch-toolbar label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }.dispatch-toolbar input[type="date"] { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; }.dispatch-toolbar .dispatch-check { display: flex; align-items: center; align-self: center; gap: 8px; line-height: 1.35; text-transform: none; }.dispatch-check input { width: auto; }.company-schedule { display: flex; align-items: end; gap: 9px; margin-bottom: 18px; padding-block: 10px; }.company-schedule > strong { align-self: center; }.company-schedule label { display: grid; gap: 4px; }.company-schedule label span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }.company-schedule .company-address { min-width: 220px; flex: 1; margin-left: auto; }.company-schedule input { width: 100%; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; }.specialization-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }.specialization-picker legend { padding: 0 5px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }.specialization-picker label { display: flex; align-items: center; gap: 7px; font-size: 10px; }.specialization-picker input { width: auto; }
.dispatch-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(270px, .8fr); gap: 18px; }.dispatch-section-head { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 10px; }.dispatch-section-head h2 { margin: 0; font-size: 15px; }.dispatch-section-head > span { min-width: 24px; padding: 4px 8px; border-radius: 999px; background: #e9f0ec; text-align: center; font-size: 10px; font-weight: 800; }.vehicle-head { margin-top: 22px; }
.dispatch-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }.dispatch-team-card { min-width: 0; }.icon-delete { margin-left: auto; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 8px; background: #f0f3f1; color: #67766f; cursor: pointer; }.member-list { display: flex; flex-wrap: wrap; gap: 7px; min-height: 54px; margin: 15px 0; padding: 7px; border: 1px dashed transparent; border-radius: 10px; }.member-list > p { color: var(--muted); font-size: 10px; }.member-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 8px; border-radius: 10px; background: #edf4f0; font-size: 10px; font-weight: 750; cursor: grab; }.member-chip small { color: var(--muted); font-size: 8px; }.member-chip button { width: 17px; height: 17px; padding: 0; border: 0; border-radius: 50%; background: #d9e6df; color: #53645b; cursor: pointer; }.team-add-member { display: flex; gap: 7px; }.team-add-member select { min-width: 0; flex: 1; height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 0 8px; font-size: 9px; }.team-add-member button { padding-inline: 11px; }.team-vehicle { display: flex; align-items: center; gap: 7px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }.team-vehicle svg { width: 15px; }.team-vehicle strong { color: var(--ink); }.team-vehicle span { margin-left: auto; }.team-driver-vehicle { display: grid; grid-template-columns: 1fr 1fr auto; gap: 7px; align-items: end; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }.team-driver-vehicle > strong { grid-column: 1 / -1; font-size: 9px; }.team-driver-vehicle select { min-width: 0; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; font-size: 9px; }.team-driver-vehicle button { min-height: 36px; padding-inline: 10px; }.drag-hint { display: block; margin: -3px 0 9px; color: var(--muted); line-height: 1.4; }.employee-drop-zone { min-height: 72px; padding: 6px; border: 1px dashed transparent; border-radius: 12px; }.employee-card { cursor: grab; }.dragging { opacity: .42; }.drag-over { border-color: var(--teal); background: #edf7f2; }
.team-card-actions { display: flex; gap: 6px; margin-left: auto; }.team-card-actions .icon-delete { margin-left: 0; }.new-object-fields { padding: 12px; border: 1px dashed #c9d4ce; border-radius: 12px; background: #fafcfb; }.new-object-fields.full { grid-column: 1 / -1; }.new-object-fields .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-lock { display: inline-flex; align-items: center; margin-left: 6px; padding: 3px 7px; border-radius: 999px; color: var(--forest); background: #eef8df; font-size: 8px; font-weight: 800; vertical-align: middle; }
.permanent-team .member-list { border-color: #dcebd3; background: #fbfdf7; }
.field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.35; }.address-suggestions { display: grid; gap: 6px; margin-top: 7px; }.address-suggestions[hidden] { display: none; }.address-suggestions button { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 10px; line-height: 1.35; text-align: left; cursor: pointer; }.address-suggestions button:hover { border-color: var(--lime); background: var(--soft); }.equipment-draft { grid-column: 1 / -1; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }.equipment-draft .section-title { margin-bottom: 10px; align-items: start; }.equipment-draft-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: white; }.equipment-draft-row .form-field { min-width: 0; } .equipment-row-remove { grid-column: 1 / -1; justify-self: end; }.equipment-draft-row label { overflow-wrap: anywhere; }.empty-inline { margin: 0; color: var(--muted); font-size: 11px; }
.employee-list, .vehicle-list { display: grid; gap: 8px; }.employee-card, .vehicle-card { width: 100%; min-height: 74px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: white; }.employee-avatar, .vehicle-card > div:first-child { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #edf4f0; color: var(--teal); font-size: 10px; font-weight: 800; }.employee-avatar svg, .vehicle-card > div:first-child svg { width: 18px; height: 18px; }.employee-card strong, .employee-card small, .employee-card span, .vehicle-card strong, .vehicle-card small, .vehicle-card span { display: block; }.employee-card strong, .vehicle-card strong { font-size: 10px; }.employee-card small, .vehicle-card small { margin-top: 3px; color: var(--muted); font-size: 8px; }.employee-card span, .vehicle-card span { margin-top: 4px; color: var(--teal); font-size: 8px; font-weight: 750; }.vehicle-actions { display: flex; gap: 4px; }.vehicle-actions .icon-delete { margin-left: 0; }
.route-plans { margin-top: 24px; }.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }.route-card { padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }.route-card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }.route-card-head strong, .route-card-head small { display: block; }.route-card-head small { margin-top: 4px; color: var(--muted); font-size: 8px; }.route-card-head b { color: var(--teal); }.route-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }.route-context { display: grid; gap: 4px; margin-top: 10px; color: var(--muted); font-size: 8px; }.route-context b { color: var(--ink); }.route-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 13px 0; }.route-metrics span { padding: 8px; border-radius: 9px; background: var(--soft); color: var(--muted); font-size: 8px; text-align: center; }.route-metrics strong { display: block; color: var(--ink); font-size: 11px; }.route-card ol { margin: 0; padding: 0; list-style: none; }.route-card li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid #edf0ee; }.route-card li time { color: var(--teal); font-weight: 800; }.route-card li strong, .route-card li small { display: block; font-size: 9px; }.route-card li small { margin-top: 3px; color: var(--muted); }.route-card li.late { color: #a13c32; }.navigation-links { display: flex; gap: 5px; }.waze-link, .google-link { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 9px; border-radius: 8px; color: #fff; font-size: 9px; font-weight: 800; text-decoration: none; }.waze-link { background: #1f8fdf; }.waze-link:hover { background: #1475bd; }.google-link { background: #3c7d46; }.google-link:hover { background: #2d6336; }.team-plan-options { display: grid; gap: 12px; margin-bottom: 18px; }.team-plan-option { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }.team-plan-option legend { padding: 0 6px; font-weight: 800; }.team-plan-option .location-btn { align-self: end; min-height: 38px; }.planning-task-list { display: grid; gap: 12px; }.planning-task { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }.planning-task legend { padding: 0 6px; font-weight: 800; }.planning-task p { margin: 0 0 4px; }.planning-task > small { display: block; margin-bottom: 12px; color: var(--muted); }
.route-delete-btn { min-height: 28px; padding: 0 9px; border: 1px solid #f0c8c3; border-radius: 8px; color: #9d2f26; background: #fff7f6; font-size: 9px; font-weight: 800; cursor: pointer; }
.route-delete-btn:hover { border-color: #e6aaa3; background: #fff0ee; }
.dispatch-section-head { justify-content: flex-start; gap: 8px; }
.route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.route-card-head { align-items: flex-start; }
.route-card-title { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.route-card-title > div { min-width: 0; }
.route-card-title strong { overflow-wrap: anywhere; }
.route-card-title .route-delete-btn, .danger-icon-btn { width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0; border: 1px solid #f2c7c3; border-radius: 8px; color: #b8322d; background: #fff7f5; font-size: 16px; font-weight: 800; line-height: 1; cursor: pointer; }
.route-card-title .route-delete-btn:hover, .danger-icon-btn:hover { border-color: #e6aaa3; background: #fff0ee; }
.route-card-actions { min-width: 150px; }
.route-card li { grid-template-columns: 66px minmax(0, 1fr) auto; }
.route-card li time { white-space: nowrap; line-height: 1.25; }
.route-card li.done { opacity: 0.78; }
.route-card li.arrived { background: #fffaf0; border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.route-card li.active { background: #f3faf7; border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.route-stop-state-row { display: flex; align-items: center; gap: 7px; margin-top: 6px; }
.route-stop-state-row .route-stop-status { margin-top: 0; }
.route-stop-state-row .route-stop-remove { flex: 0 0 28px; }
.route-stop-status { display: inline-flex; margin-top: 5px; padding: 3px 7px; border-radius: 999px; background: #eef4f1; color: var(--teal); font-size: 8px; font-weight: 800; }
.route-stop-btn, .route-stop-remove { min-height: 28px; border-radius: 8px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 9px; font-weight: 800; cursor: pointer; }
.route-stop-btn { padding: 0 8px; }
.route-stop-btn:disabled { cursor: default; opacity: 0.55; }
.route-stop-remove { width: 28px; padding: 0; color: #b8322d; border-color: #f2c7c3; background: #fff7f5; }
.route-edit-row { display: grid; gap: 7px; margin: 12px 0; padding: 10px; border: 1px dashed var(--line); border-radius: 12px; background: #fbfdfc; }
.route-edit-row label { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.route-edit-row > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.route-edit-row select { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 9px; }
.route-edit-row small { color: var(--muted); font-size: 9px; }
.route-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.route-metrics span { min-width: 0; white-space: nowrap; }
.route-metrics strong { display: inline; margin-right: 3px; }
.route-metrics span:last-child strong { color: var(--teal); font-size: 13px; }
.navigation-links .waze-link, .navigation-links .google-link, .route-card-actions .google-link { border: 0; cursor: pointer; }
.route-stop-contact { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--muted); font-size: 8px; }
.route-stop-contact b { color: var(--ink); }
.route-stop-contact small { color: var(--muted); font-size: 8px; }
.route-stop-contact a { width: 26px; height: 26px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: white; background: var(--teal); }
.route-stop-contact a svg { width: 13px; }
.route-choice-summary { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 10px; }
.route-choice-summary b { color: var(--ink); }
.eta-warning { margin-top: 12px; padding: 12px; border: 1px solid #f0c8c3; border-radius: 12px; color: #9d2f26; background: #fff7f6; font-size: 10px; font-weight: 800; line-height: 1.45; }
.route-choice-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.route-choice-actions .primary-btn, .route-choice-actions .secondary-btn { width: 100%; min-height: 38px; }

.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 17px; }
.doc-categories { align-self: start; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.doc-category { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; text-align: left; }
.doc-category span { flex: 1; }
.doc-category b { font-size: 9px; }
.doc-category svg { width: 16px; }
.doc-category.active { color: var(--ink); background: var(--soft); }
.docs-list { border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.doc-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 100px 120px 32px; gap: 12px; align-items: center; padding: 14px 16px; border-top: 1px solid #edf0ee; }
.doc-row:first-child { border-top: 0; }
.pdf-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--red); background: #fdeeee; font-size: 8px; font-weight: 900; }
.doc-name strong, .doc-name small { display: block; }
.doc-name strong { font-size: 11px; }
.doc-name small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.doc-meta { color: var(--muted); font-size: 9px; }
.doc-open { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: white; cursor: pointer; }
.docs-panel { display: grid; gap: 12px; }
.doc-search { position: relative; }
.doc-search svg { position: absolute; top: 13px; left: 14px; width: 16px; color: #819089; }
.doc-search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 1px solid var(--line); border-radius: 14px; outline: none; background: white; font-size: 12px; }
.doc-search input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(190, 242, 64, .18); }
.docs-tree { display: grid; gap: 14px; padding: 14px; }
.doc-manufacturer { border: 1px solid var(--line); border-radius: 16px; background: #fbfdfc; overflow: hidden; }
.doc-manufacturer summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
.doc-manufacturer summary::-webkit-details-marker { display: none; }
.doc-manufacturer summary::after { content: "›"; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: white; font-size: 18px; transition: transform .2s ease; }
.doc-manufacturer[open] summary { border-bottom: 1px solid var(--line); }
.doc-manufacturer[open] summary::after { transform: rotate(90deg); }
.doc-manufacturer summary strong { font-size: 15px; }
.doc-manufacturer summary small { margin-left: auto; color: var(--muted); font-size: 9px; font-weight: 800; }
.doc-model { margin: 12px; border: 1px solid #e6ece8; border-radius: 13px; background: white; overflow: hidden; }
.doc-model header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--soft); }
.doc-model header strong { font-size: 12px; }
.doc-model header small { color: var(--muted); font-size: 9px; font-weight: 800; }
.doc-model .doc-row { border-top: 1px solid #edf0ee; }
.doc-model .doc-row:first-of-type { border-top: 0; }
.doc-open svg { width: 13px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 39; visibility: hidden; opacity: 0; background: rgba(10,24,18,.28); backdrop-filter: blur(2px); transition: .25s ease; }
.drawer-backdrop.open { visibility: visible; opacity: 1; }
.detail-drawer { position: fixed; top: 0; right: 0; z-index: 40; width: min(520px, 100%); height: 100vh; padding: 0; background: white; box-shadow: -22px 0 55px rgba(17,34,27,.16); transform: translateX(105%); transition: .3s ease; overflow-y: auto; }
.detail-drawer.open { transform: translateX(0); }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.drawer-head h2 { margin: 0; font-size: 19px; letter-spacing: -.4px; }
.drawer-head p { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.drawer-head p svg { width: 12px; }
.modal-head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.modal-head-leading { display: flex; align-items: center; flex: 0 0 auto; padding-top: 2px; }
.modal-head-copy { min-width: 0; }
.header-danger-btn { min-height: 34px; padding: 0 10px; border: 1px solid #f0c8c3; border-radius: 10px; color: #9d2f26; background: #fff7f6; font-size: 10px; font-weight: 800; cursor: pointer; }
.header-danger-btn:hover { border-color: #e6aaa3; background: #fff0ee; }
.close-btn { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.close-btn svg { width: 16px; }
.drawer-body { padding: 20px 24px 35px; }
.drawer-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.drawer-action { height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 9px; font-weight: 700; cursor: pointer; }
.drawer-action:hover { border-color: #bed0c7; background: var(--soft); }
.drawer-action svg { width: 17px; color: var(--teal); }
.section-block { margin-top: 21px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.section-title h3 { margin: 0; font-size: 12px; }
.section-title button { padding: 0; border: 0; color: var(--teal); background: none; font-size: 9px; font-weight: 800; cursor: pointer; }
.equipment-item { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 7px; }
.equipment-item-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; color: var(--teal); background: #e9f6f2; }
.equipment-item-icon svg { width: 17px; }
.equipment-item > div:nth-child(2) { min-width: 0; flex: 1; }
.equipment-item strong, .equipment-item small { display: block; }
.equipment-item strong { font-size: 11px; }
.equipment-item small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.equipment-item .status { min-width: auto; }
.history-item { position: relative; display: grid; grid-template-columns: 55px 1fr; gap: 13px; padding: 0 0 17px; }
.history-item:not(:last-child)::before { content: ""; position: absolute; left: 49px; top: 13px; bottom: -2px; width: 1px; background: var(--line); }
.history-date { color: var(--muted); font-size: 8px; text-align: right; }
.history-content { position: relative; padding-left: 11px; }
.history-content::before { content: ""; position: absolute; left: -2px; top: 2px; width: 7px; height: 7px; border: 2px solid white; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.history-content strong { display: block; font-size: 10px; }
.history-content p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.history-content small { display: block; margin-top: 6px; color: #8a9891; font-size: 8px; }
.contact-card { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--soft); }
.contact-card > div:nth-child(2) { flex: 1; }
.contact-card strong, .contact-card small { display: block; }
.contact-card strong { font-size: 10px; }
.contact-card small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.contact-card a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--teal); }
.contact-card a svg { width: 14px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; visibility: hidden; display: grid; place-items: center; padding: 20px; opacity: 0; background: rgba(10,24,18,.45); backdrop-filter: blur(4px); transition: .22s ease; }
.modal-backdrop.open { visibility: visible; opacity: 1; }
.modal { width: min(590px, 100%); max-height: calc(100vh - 40px); border-radius: 20px; background: white; box-shadow: 0 28px 90px rgba(10,24,18,.25); overflow-y: auto; transform: translateY(12px) scale(.98); transition: .22s ease; }
.modal-backdrop.open .modal { transform: none; }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 21px 23px 15px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); }
.modal-head h2 { margin: 0; font-size: 18px; letter-spacing: -.3px; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.modal-body { padding: 19px 23px 23px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #5d6b64; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .65px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #dce4e0; border-radius: 10px; outline: none; color: var(--ink); background: #fafcfb; font-size: 11px; }
.form-field input, .form-field select { height: 40px; padding: 0 11px; }
.form-field textarea { min-height: 84px; padding: 10px 11px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #9fc534; box-shadow: 0 0 0 3px rgba(200,240,74,.16); background: white; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.quote-banner { display: flex; align-items: center; gap: 13px; padding: 15px; border-radius: 13px; color: white; background: var(--forest); }
.quote-banner-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--forest); background: var(--accent); }
.quote-banner-icon svg { width: 19px; }
.quote-banner strong, .quote-banner small { display: block; }
.quote-banner strong { font-size: 12px; }
.quote-banner small { margin-top: 4px; color: #9eb0a7; font-size: 9px; }
.quote-table { margin-top: 15px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.quote-row { display: grid; grid-template-columns: 1fr 55px 80px 85px; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 10px; }
.quote-row:first-child { border-top: 0; }
.quote-row.header { color: var(--muted); background: var(--soft); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.quote-row strong:last-child { text-align: right; }
.quote-row-tech { grid-template-columns: minmax(0, 1fr) 80px; }
.quote-total { display: flex; justify-content: flex-end; gap: 20px; padding: 14px 2px 2px; }
.quote-total span { color: var(--muted); font-size: 10px; }
.quote-total strong { font-size: 17px; }
.quote-editor { gap: 14px; }
.quote-settings { display: grid; grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(120px, .45fr)); gap: 10px; }
.quote-editor-table { margin-top: 0; background: #fff; }
.quote-editor-head, .quote-editor-row { display: grid; grid-template-columns: minmax(180px, 1fr) 82px 110px 115px 34px; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.quote-editor-head { border-top: 0; color: var(--muted); background: var(--soft); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.quote-editor-head.quote-tech, .quote-editor-row.quote-tech { grid-template-columns: minmax(180px, 1fr) 90px 34px; }
.quote-editor-row input { width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.quote-editor-row strong { text-align: right; font-size: 11px; }
.quote-add-row { justify-self: start; }
.quote-summary { display: grid; gap: 8px; justify-self: end; min-width: 280px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); }
.quote-summary > div { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 10px; }
.quote-summary strong { color: var(--ink); }
.quote-summary .quote-grand-total { padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink); font-size: 12px; font-weight: 800; }
.quote-summary .quote-grand-total strong { color: var(--teal); font-size: 18px; }
.quote-settings-tech, .parts-settings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quote-technician-note { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 10px; }
.quote-technician-note strong { color: var(--ink); }
.parts-editor-head, .parts-editor-row { display: grid; grid-template-columns: minmax(150px, 1fr) 70px minmax(130px, .8fr) minmax(130px, .8fr) 34px; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.parts-editor-head { border-top: 0; color: var(--muted); background: var(--soft); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.parts-editor-row input { width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.timer-box { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px; border-radius: 14px; color: white; background: var(--forest); }
.timer-box small, .timer-box strong { display: block; }
.timer-box small { color: #93a79d; font-size: 9px; }
.timer-box strong { margin-top: 5px; font-variant-numeric: tabular-nums; font-size: 25px; letter-spacing: .5px; }
.timer-button { width: 43px; height: 43px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--forest); background: var(--accent); cursor: pointer; }
.timer-button svg { width: 18px; }
.order-modal-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.meta-card { padding: 11px; border-radius: 10px; background: var(--soft); }
.meta-card small, .meta-card strong { display: block; }
.meta-card small { color: var(--muted); font-size: 8px; }
.meta-card strong { margin-top: 4px; font-size: 10px; }
.order-schedule-form { display: grid; gap: 10px; margin: 14px 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfc; }
.order-schedule-form .form-grid { gap: 10px; }
.order-schedule-form button { justify-self: end; }
.schedule-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.schedule-load-hint { padding: 10px 12px; border-radius: 10px; color: #56655e; background: #eef5f2; font-size: 10px; font-weight: 700; line-height: 1.45; }
.work-summary { padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.work-summary h3 { margin: 0 0 7px; font-size: 10px; }
.work-summary p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.order-contact-wrap { margin: -4px 0 14px; }
.call-contact-btn { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 12px; color: white; background: var(--teal); }
.call-contact-btn svg { width: 18px; height: 18px; }
.order-primary-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-items: stretch; }
.order-primary-actions button { flex: 1 1 150px; min-width: 140px; max-width: 100%; justify-content: center; padding: 0 10px; white-space: normal; line-height: 1.2; }
.order-primary-actions svg { width: 18px; height: 18px; min-width: 18px; flex: 0 0 18px; overflow: visible; }
.roadmap { display: grid; gap: 12px; }
.roadmap-step { display: grid; grid-template-columns: 34px 1fr; gap: 11px; }
.roadmap-num { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: var(--forest); background: var(--accent); font-size: 10px; font-weight: 900; }
.roadmap-step h3 { margin: 1px 0 5px; font-size: 11px; }
.roadmap-step p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.diagnostic-intro { display: flex; gap: 12px; padding: 13px; border-radius: 12px; color: #33554a; background: #eaf6f2; }
.diagnostic-intro svg { width: 20px; flex: 0 0 auto; color: var(--teal); }
.diagnostic-intro strong, .diagnostic-intro small { display: block; }
.diagnostic-intro strong { font-size: 11px; }
.diagnostic-intro small { margin-top: 4px; font-size: 9px; line-height: 1.45; }
.safety-note { display: flex; gap: 9px; margin-top: 13px; padding: 11px; border: 1px solid #f2d1b5; border-radius: 11px; color: #895329; background: #fff5ec; font-size: 9px; line-height: 1.45; }
.safety-note strong { display: block; margin-bottom: 3px; }
.diagnostic-results { display: grid; gap: 13px; margin-top: 16px; }
.media-capture { margin-top: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fafcfb; }
.media-capture-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.media-capture-head strong, .media-capture-head small { display: block; }
.media-capture-head strong { font-size: 10px; }
.media-capture-head small { max-width: 310px; margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.record-button, .upload-button { height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; padding: 0 11px; border: 1px solid #cfdad4; border-radius: 9px; color: #315348; background: white; font-size: 8px; font-weight: 800; cursor: pointer; }
.record-button svg, .upload-button svg { width: 14px; }
.record-button.recording { color: white; border-color: var(--red); background: var(--red); animation: recordPulse 1.3s infinite; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@keyframes recordPulse { 50% { box-shadow: 0 0 0 5px rgba(223,90,90,.12); } }
.audio-preview { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.audio-preview:empty { display: none; }
.audio-preview audio { width: min(100%, 330px); height: 34px; }
.audio-preview button { padding: 0; border: 0; color: var(--red); background: none; font-size: 8px; font-weight: 800; cursor: pointer; }
.photo-preview { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.photo-preview:empty { display: none; }
.photo-preview figure { position: relative; aspect-ratio: 1; margin: 0; border-radius: 8px; background: #e8eeeb; overflow: hidden; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview figcaption { position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 5px; color: white; background: rgba(20,38,31,.8); font-size: 7px; font-weight: 800; }
.object-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.object-photo-grid figure { position: relative; aspect-ratio: 1; margin: 0; border-radius: 10px; background: #e8eeeb; overflow: hidden; }
.object-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.object-photo-grid figcaption { position: absolute; right: 5px; bottom: 5px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; color: white; background: rgba(20,38,31,.8); font-size: 8px; font-weight: 800; }
.evidence-note { margin: 8px 0 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.diagnostic-loading { display: grid; justify-items: center; gap: 7px; margin-top: 16px; padding: 24px 15px; border-radius: 12px; background: var(--soft); text-align: center; }
.diagnostic-loading strong { font-size: 10px; }
.diagnostic-loading small { color: var(--muted); font-size: 8px; }
.spinner { width: 25px; height: 25px; border: 3px solid #dbe5e0; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.diagnostic-summary { padding: 14px; border-radius: 12px; color: white; background: var(--forest); }
.diagnostic-summary strong { font-size: 12px; }
.diagnostic-summary p { margin: 6px 0 0; color: #b8c9c1; font-size: 9px; line-height: 1.5; }
.source-list { display: grid; gap: 7px; }
.source-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; border-radius: 8px; color: #4d5e56; background: var(--soft); font-size: 8px; }
.source-actions { display: flex; gap: 5px; flex: 0 0 auto; }
.source-actions button { padding: 5px 7px; border: 0; border-radius: 6px; color: white; background: var(--forest); font-size: 7px; font-weight: 800; cursor: pointer; }
.form-check { display: flex; align-items: center; gap: 9px; color: #44574e; font-size: 10px; font-weight: 700; }
.form-check input { width: auto; }
.map-address-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.map-address-row .secondary-btn { white-space: nowrap; }
.location-update-btn { min-height: 30px; height: auto; padding: 6px 9px; font-size: 9px; }
.live-location-link { background: #0f766e; }
.team-location-state { color: var(--teal); }
.auth-locked .app-shell { filter: blur(5px); pointer-events: none; user-select: none; }
.auth-screen { position: fixed; inset: 0; z-index: 2147483000; display: grid !important; place-items: center; padding: 20px; background: rgba(18, 38, 30, .78); backdrop-filter: blur(12px); }
.auth-card { width: min(420px, 100%); display: grid; gap: 15px; padding: 30px; border-radius: 22px; background: white; box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.auth-card .brand { margin-bottom: 8px; }.auth-card h1 { margin: 0; color: var(--forest); font-size: 25px; }
.auth-card label { display: grid; gap: 7px; color: #52645b; font-size: 10px; font-weight: 800; }
.auth-card input { padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.auth-card > button { padding: 12px; border: 0; border-radius: 10px; color: white; background: var(--forest); font-weight: 900; cursor: pointer; }
.auth-error { min-height: 18px; margin: 0; color: #ad382f; font-size: 9px; }
.quick-card > button + button { margin-left: 7px; background: rgba(255,255,255,.16); }
.review-list { display: grid; gap: 12px; }.review-report { padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.review-report div:first-child { display: grid; gap: 4px; }.review-report small { color: #65776e; }.review-report p { color: #4f6158; font-size: 9px; line-height: 1.5; }
.review-actions { display: flex; justify-content: flex-end; gap: 7px; }
.impersonation-banner { position: sticky; top: 0; z-index: 900; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 9px 16px; color: #402d00; background: #ffd96a; box-shadow: 0 4px 16px rgba(64,45,0,.16); font-size: 10px; }
.impersonation-banner strong { text-transform: uppercase; letter-spacing: .06em; }.impersonation-banner button { padding: 6px 10px; border: 1px solid rgba(64,45,0,.25); border-radius: 7px; color: #402d00; background: rgba(255,255,255,.48); font-weight: 850; cursor: pointer; }
@media (max-width: 700px) { .impersonation-banner { flex-wrap: wrap; gap: 6px 10px; text-align: center; } }
.diagnostic-section { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.diagnostic-section h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 11px; }
.diagnostic-section h3 svg { width: 15px; color: var(--teal); }
.check-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 23px; color: #536159; font-size: 9px; line-height: 1.5; }
.check-list li::before { content: attr(data-step); position: absolute; left: 0; top: 0; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 5px; color: var(--forest); background: var(--accent); font-size: 7px; font-weight: 900; }
.cause-list { display: grid; gap: 7px; }
.cause-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; background: var(--soft); font-size: 9px; }
.cause-row b { color: var(--teal); font-size: 8px; }
.tech-assistant-card { position: relative; padding: 17px; border-radius: var(--radius); color: white; background: linear-gradient(135deg, #15382e, #1d5a49); overflow: hidden; }
.tech-assistant-card::after { content: ""; position: absolute; right: -35px; bottom: -50px; width: 125px; height: 125px; border: 24px solid rgba(200,240,74,.09); border-radius: 50%; }
.tech-assistant-card h3 { position: relative; margin: 0; font-size: 14px; }
.tech-assistant-card p { position: relative; margin: 7px 0 14px; color: #b8d0c6; font-size: 9px; line-height: 1.5; }
.tech-assistant-card button { position: relative; z-index: 1; height: 34px; padding: 0 12px; border: 0; border-radius: 9px; color: var(--forest); background: var(--accent); font-size: 9px; font-weight: 800; cursor: pointer; }
.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 9px; min-width: 260px; padding: 12px 14px; border-radius: 12px; color: white; background: var(--forest); box-shadow: var(--shadow); font-size: 10px; font-weight: 700; animation: toastIn .25s ease; }
.toast svg { width: 16px; color: var(--accent); }
.network-status { position: fixed; left: 50%; bottom: 18px; z-index: 80; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 10px 14px; border-radius: 999px; color: #14261f; background: #c7ff3d; box-shadow: 0 16px 42px rgba(20,38,31,.18); font-size: 10px; font-weight: 900; text-align: center; }
.network-status.offline { color: white; background: #b8322d; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1080px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .objects-grid, .teams-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dispatch-layout { grid-template-columns: 1fr; }
  .dispatch-toolbar { grid-template-columns: 1fr 150px 150px; }
  .route-grid { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 84px minmax(160px, 1fr) minmax(170px, 1fr) 95px 30px; }
  .order-row .priority { display: none; }
  .today-chip { display: none; }
}

@media (max-width: 780px) {
  .app-shell { display: block; }
  .sidebar { width: min(280px, 84vw); transform: translateX(-105%); transition: .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .mobile-backdrop { position: fixed; inset: 0; z-index: 25; visibility: hidden; opacity: 0; background: rgba(10,24,18,.35); transition: .2s ease; }
  .mobile-backdrop.open { visibility: visible; opacity: 1; }
  .main-content { min-height: 100vh; }
  .topbar { height: 66px; padding: 0 15px; gap: 10px; }
  .mobile-menu { display: grid; flex: 0 0 auto; }
  .search-box { width: auto; flex: 1; }
  .search-box input { padding-right: 12px; }
  .search-box kbd, .notification-btn { display: none; }
  .profile-language .language-switch { box-shadow: none; }
  .primary-btn span { display: none; }
  .primary-btn { width: 40px; padding: 0; }
  .view-root { padding: 22px 15px 35px; }
  .view-head { align-items: center; }
  .view-head h1 { font-size: 22px; }
  .view-head p:not(.eyebrow) { display: none; }
  .head-actions .secondary-btn span { display: none; }
  .metrics { gap: 9px; }
  .metric-card { padding: 14px; }
  .metric-value strong { font-size: 23px; }
  .metric-top > span { font-size: 10px; }
  .schedule-row { grid-template-columns: 52px 3px 1fr; gap: 9px; }
  .schedule-row .team-pill { display: none; }
  .objects-grid, .teams-grid { grid-template-columns: 1fr; }
  .dispatch-toolbar { grid-template-columns: 1fr; }
  .dispatch-toolbar .primary-btn { width: 100%; padding: 0 16px; }
  .equipment-draft-row { grid-template-columns: 1fr; }
  .new-object-fields .form-grid { grid-template-columns: 1fr; }
  .company-schedule { flex-wrap: wrap; }
  .company-schedule strong { width: 100%; }
  .dispatch-teams { grid-template-columns: 1fr; }
  .team-driver-vehicle { grid-template-columns: 1fr; }
  .team-driver-vehicle > strong { grid-column: auto; }
  .map-address-row { grid-template-columns: 1fr; }
  .map-address-row .secondary-btn { width: 100%; }
  .toolbar { flex-wrap: wrap; }
  .filter-tabs { max-width: 100%; overflow-x: auto; }
  .toolbar .compact-search { width: 100%; margin-left: 0; }
  .order-row { grid-template-columns: 70px 1fr 30px; gap: 8px; padding: 13px; }
  .order-row .order-task, .order-row .status { display: none; }
  .order-primary-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-layout { grid-template-columns: 1fr; }
  .doc-categories { display: flex; overflow-x: auto; }
  .doc-category { width: auto; white-space: nowrap; }
  .doc-row { grid-template-columns: 40px 1fr 30px; }
  .doc-row .doc-meta { display: none; }
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 130px; }
  .metric-icon { display: none; }
  .metric-value { margin-top: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .specialization-picker { grid-template-columns: 1fr; }
  .route-card li { grid-template-columns: 42px minmax(0, 1fr); }
  .navigation-links { grid-column: 2; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .drawer-body { padding-inline: 17px; }
  .drawer-head { padding-inline: 17px; }
  .quote-row { grid-template-columns: 1fr 45px 66px; }
  .quote-row > :nth-child(3) { display: none; }
  .media-capture-head { align-items: flex-start; flex-direction: column; }
  .record-button, .upload-button { width: 100%; }
  .photo-preview { grid-template-columns: repeat(3, 1fr); }
}
.sidebar-company-logo { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; background: white; }
.auth-link { border: 0; background: transparent; color: #2f7c5a; cursor: pointer; font-weight: 700; }
.profile-company { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 14px; border-radius: 14px; background: #f3f6f4; }.profile-company img { width: 72px; height: 54px; object-fit: contain; }.profile-language { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: white; }.profile-language > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .9px; }.profile-company-settings { margin-bottom: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fafcfb; }.profile-company-settings h3 { margin: 0 0 14px; }.profile-company-settings > button { margin-top: 12px; }.service-category-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }.service-category-picker legend { padding: 0 5px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }.service-category-picker label { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; }.service-category-picker input { width: auto; }.dispatch-loading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }.dispatch-loading small { color: var(--muted); }

.dashboard-head{align-items:flex-end}.dashboard-periods{display:flex;gap:6px;padding:5px;background:#fff;border:1px solid var(--line);border-radius:16px}.dashboard-period{border:0;background:transparent;padding:11px 18px;border-radius:12px;font-weight:800;color:var(--muted);cursor:pointer}.dashboard-period.active{background:var(--ink);color:#fff}.dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.dashboard-kpi{min-height:150px;padding:22px;border-radius:24px;background:#fff;border:1px solid var(--line);display:flex;flex-direction:column}.dashboard-kpi span{font-weight:800;color:var(--muted)}.dashboard-kpi strong{font-size:32px;margin:18px 0 8px}.dashboard-kpi small{line-height:1.35;color:var(--muted)}.dashboard-kpi.dark{background:var(--ink);color:#fff;border-color:var(--ink)}.dashboard-kpi.dark span,.dashboard-kpi.dark small{color:#c9d6d1}.dashboard-kpi.green strong,.dashboard-kpi.profit strong,.positive b{color:#009c82}.dashboard-kpi.loss strong,.negative b{color:#d95555}.dashboard-section{padding:22px;margin-bottom:18px}.team-economy-head,.team-economy-row{display:grid;grid-template-columns:minmax(210px,1.7fr) repeat(6,minmax(92px,1fr));gap:10px;align-items:center}.team-economy-head{padding:0 14px 12px;color:var(--muted);font-size:11px;font-weight:900;text-transform:uppercase}.team-economy-row{padding:16px 14px;border-top:1px solid var(--line)}.team-economy-row>div,.team-economy-row>span{display:flex;flex-direction:column;gap:4px}.team-economy-row small{font-size:11px;color:var(--muted)}.dashboard-lower{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:18px}.dashboard-alerts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.dashboard-alerts button{border:1px solid var(--line);background:#f4f7f5;border-radius:17px;padding:18px;text-align:left;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;cursor:pointer}.dashboard-alerts strong{font-size:26px}.dashboard-alerts svg{width:18px;height:18px}.dashboard-part{display:grid;grid-template-columns:34px 1fr auto;gap:12px;align-items:center;padding:13px 0;border-top:1px solid var(--line)}.dashboard-part:first-child{border-top:0}.dashboard-part div{display:flex;flex-direction:column;gap:4px}.dashboard-part small{color:var(--muted)}.dashboard-part .urgency{width:30px;height:30px;border-radius:10px;background:#edf4f1;display:grid;place-items:center;font-weight:900}.dashboard-part .urgency.urgent{background:#fff0e8;color:#d66a26}.dashboard-empty{padding:28px;text-align:center;color:var(--muted)}
@media(max-width:1100px){.dashboard-kpis{grid-template-columns:repeat(2,1fr)}.team-economy-head{display:none}.team-economy-row{grid-template-columns:repeat(3,1fr)}.team-economy-row>div{grid-column:1/-1}.dashboard-lower{grid-template-columns:1fr}}
@media(max-width:680px){.dashboard-head{align-items:flex-start}.dashboard-periods{width:100%}.dashboard-period{flex:1;padding:10px 6px}.dashboard-kpis{grid-template-columns:1fr}.dashboard-kpi{min-height:125px}.team-economy-row{grid-template-columns:repeat(2,1fr)}.dashboard-alerts{grid-template-columns:1fr}.dashboard-part{grid-template-columns:30px 1fr}.dashboard-part>b{grid-column:2}}

.contractor-toolbar{display:flex;justify-content:flex-end;margin-bottom:16px}.contractor-toolbar .compact-search{width:min(420px,100%)}.contractor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.contractor-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;min-height:230px}.contractor-card.inactive{opacity:.55}.contractor-card-head{display:grid;grid-template-columns:48px 1fr auto;gap:13px;align-items:center;margin-bottom:18px}.contractor-card-head h3{margin:0 0 4px;font-size:18px}.contractor-card-head small{color:var(--green);font-weight:800}.contractor-mark{width:48px;height:48px;border-radius:15px;background:#e6f4ef;color:var(--green);display:grid;place-items:center}.contractor-mark svg{width:24px;height:24px}.contractor-details{display:grid;grid-template-columns:1fr 1fr;gap:12px}.contractor-details span,.contractor-details a{display:flex;flex-direction:column;gap:4px;color:var(--ink);min-width:0;overflow-wrap:anywhere}.contractor-details b{font-size:10px;text-transform:uppercase;color:var(--muted)}.contractor-card>p{border-top:1px solid var(--line);padding-top:14px;color:var(--muted)}
@media(max-width:1100px){.contractor-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.contractor-grid{grid-template-columns:1fr}.contractor-details{grid-template-columns:1fr}}
