.ops-dashboard {
  color: #193746;
  display: grid;
  gap: 12px;
}
#root header[data-page='dashboard'] {
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px !important;
}
#root header[data-page='dashboard'] > div:first-child {
  margin-right: 0;
}
#root header[data-page='dashboard'] > div:last-child {
  margin-left: auto;
  gap: 8px;
}
#root header[data-page='dashboard'] h1 {
  font-size: 15px;
  line-height: 24px;
}
#root header[data-page='dashboard'] button[title^='Komut Paleti'] span,
#root header[data-page='dashboard'] button[title^='Komut Paleti'] kbd,
#root header[data-page='dashboard'] button[title^='Sürüm Günlüğü'] span,
#root header[data-page='dashboard'] button[title='Verileri Yenile'],
#root header[data-page='dashboard'] .dashboard-account > span,
#root header[data-page='dashboard'] button[title='Yeni İş Emri (C)'] kbd {
  display: none;
}
#root header[data-page='dashboard'] .dashboard-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 7px;
}
#root header[data-page='dashboard'] .dashboard-account:focus-visible {
  outline: 2px solid #006d73;
  outline-offset: 2px;
}
body:has(.ops-dashboard) #root main {
  padding: 12px !important;
}
body:has(.ops-dashboard) #root [data-slot='sidebar-inset'] {
  padding: 0 !important;
}
.ops-dashboard * {
  box-sizing: border-box;
}
.ops-dashboard h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
  color: #163b4b;
}
.ops-dashboard p {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.55;
  color: #4b6474;
}
.ops-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ops-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #006d73;
}
.ops-intro p {
  margin-bottom: 0;
}
.ops-card {
  background: #f5f8fa;
  border: 1px solid #adc2ce;
  border-radius: 17px;
  padding: 22px;
  min-width: 0;
}
.ops-map-card {
  container-type: inline-size;
  overflow: hidden;
  padding: 0;
}
.ops-map-toolbar {
  gap: 10px;
  padding: 10px 14px;
  background: #184658;
}
#root .ops-map-toolbar h2 {
  color: #fff;
  font-size: 16px;
}
.ops-map-controls {
  gap: 8px 16px;
  padding: 7px 14px;
  background: #edf3f6;
  border-bottom: 1px solid #c3d3dd;
}
.ops-dashboard .ops-map-controls select {
  padding: 5px 8px;
  margin-left: auto;
}
.ops-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.ops-map-surface {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #b3c7d3;
}
.ops-daily {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  min-width: 0;
  padding: 9px 10px;
  border-top: 1px solid #b3c8d4;
  background: #e7eff4;
}
.ops-daily h2 {
  font-size: 15px;
  line-height: 1.35;
}
.ops-daily-list {
  min-height: 0;
  max-height: 320px;
  overflow-y: auto;
  padding: 2px;
  scrollbar-gutter: stable;
}
.ops-daily-list .ops-order {
  margin-bottom: 5px;
  padding: 5px 8px;
  border: 1px solid #cadbe5;
  line-height: 1.3;
  border-radius: 9px;
  background: #f5f9fb;
}
.ops-daily-list .ops-order p {
  margin: 1px 0;
  line-height: 1.3;
}
.ops-daily-list .ops-order > b {
  margin-top: 2px;
}
.ops-daily-list .ops-order-link {
  margin-top: 2px;
}
.ops-daily-list .ops-empty {
  padding: 6px 2px;
}
.ops-map-notes {
  padding: 0 14px;
  border-top: 1px solid #c3d3dd;
}
.ops-map-label {
  fill: #153d50;
  stroke: #f4f9fd;
  stroke-width: 2px;
  paint-order: stroke;
  font:
    700 12px 'Segoe UI',
    sans-serif;
  pointer-events: none;
}
@container (min-width: 760px) {
  .ops-map-layout {
    --ops-map-layout-height: clamp(310px, calc(100dvh - 225px), 500px);
    --ops-map-caption-height: 30px;
    --ops-daily-min-width: clamp(260px, 26cqw, 340px);
    /* Limit the map column to the SVG's width at the available height. */
    grid-template-columns:
      minmax(
        0,
        min(
          calc((var(--ops-map-layout-height) - var(--ops-map-caption-height)) * 1030 / 468),
          calc(100% - var(--ops-daily-min-width))
        )
      )
      minmax(var(--ops-daily-min-width), 1fr);
    height: var(--ops-map-layout-height);
  }
  .ops-map-caption {
    flex: 0 0 var(--ops-map-caption-height);
    align-items: center;
  }
  .ops-map-layout .ops-map {
    flex: 1 1 0;
    height: 0;
    max-height: none;
  }
  .ops-daily {
    border-top: 0;
    border-left: 1px solid #b3c8d4;
  }
  .ops-daily-list {
    flex: 1 1 auto;
    max-height: none;
  }
}
.ops-map-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}
.ops-map-actions select {
  min-width: 0;
  max-width: 100%;
}
.ops-note {
  padding: 12px 16px;
  background: #dfebee;
  border: 1px solid #aac4cd;
  border-radius: 10px;
  font-size: 13px;
}
.ops-error {
  background: #fff3dd;
  border-color: #d6b368;
}
.ops-button,
.ops-dashboard select {
  padding: 9px 12px;
  border: 1px solid #9fb7c6;
  border-radius: 9px;
  font-size: 12px;
  background: #fff;
  color: #173f50;
  cursor: pointer;
}
.ops-button:hover {
  background: #deebee;
}
.ops-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
}
.ops-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ops-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}

.ops-map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1030 / 468;
  max-height: calc(100dvh - 210px);
  min-height: 0;
}
.ops-map path {
  cursor: pointer;
  transition: opacity 0.12s;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ops-map path:hover {
  opacity: 0.75;
  stroke: #163b4b;
  stroke-width: 2;
}
.ops-map path:focus-visible {
  outline: none;
  stroke: #0b354e;
  stroke-width: 3;
}
.ops-map-caption {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 11px;
  color: #365366;
  border-top: 1px solid #9fb8c8;
}
.ops-dashboard .ops-muted {
  font-size: 11px;
  color: #536b7b;
}
.ops-counters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ops-counter {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  background: #164554;
  border-radius: 8px;
  color: #fff;
}
.ops-counter span {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.3px;
}
.ops-counter strong {
  font-size: 20px;
  line-height: 1;
}
.ops-counter-green {
  background: #22664f;
}
.ops-order {
  padding: 14px 0;
  border-bottom: 1px solid #d4e0e7;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ops-order:last-child {
  border-bottom: 0;
}
.ops-order > b {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}
.ops-order .ops-row {
  gap: 6px;
}
.ops-order p {
  font-size: 12px;
}
.ops-status {
  border-left: 4px solid;
  background: #e3edf2;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 700;
}
.ops-order-link {
  display: inline-block;
  color: #006d73;
  font-size: 12px;
  font-weight: 750;
  margin-top: 8px;
  text-decoration: none;
}
.ops-order-link:hover {
  text-decoration: underline;
}
.ops-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px 24px;
}
.ops-empty {
  padding: 25px 0;
}
.ops-queue-reason {
  display: block;
  margin-top: 7px;
  color: #9b371f;
  font-size: 11px;
  font-weight: 650;
}
.ops-maintenance-marker {
  cursor: pointer;
}
.ops-maintenance-marker circle {
  fill: #fff4bf;
  stroke: #927128;
  stroke-width: 1;
}
.ops-maintenance-marker text {
  fill: #5d4716;
  font:
    700 9px 'Segoe UI',
    sans-serif;
  pointer-events: none;
}
.ops-maintenance-marker.urgent circle {
  fill: #ffdb9a;
  stroke: #a95e12;
}
.ops-maintenance-marker.overdue circle {
  fill: #f4c6c0;
  stroke: #9b3a31;
}
.ops-maintenance-marker:focus-visible circle {
  stroke: #292f78;
  stroke-width: 2;
}
.ops-maintenance-counts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.ops-maintenance-label {
  display: inline-block;
  text-decoration: none;
  border: 1px solid #c4b77a;
  background: #fff6cf;
  color: #6b541e;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 12px;
}
.ops-maintenance-label.urgent {
  border-color: #d29b54;
  background: #ffebcc;
  color: #78430b;
}
.ops-maintenance-label.overdue,
.ops-maintenance-label.due {
  border-color: #c98c85;
  background: #f9e1dd;
  color: #852e25;
}
.ops-maintenance-missing {
  font-size: 12px;
  color: #465f72;
  padding: 7px 0;
}
.ops-city-maintenance {
  border-top: 1px solid #b1c4d0;
  margin-top: 20px;
  padding-top: 18px;
}
.ops-city-maintenance h3 {
  font-size: 15px;
}
.ops-city-maintenance button {
  margin-top: 8px;
}
.ops-maintenance-summary h2 {
  font-size: 16px;
}
@media (max-width: 650px) {
  body:has(.ops-dashboard) #root main {
    padding: 8px !important;
  }
  #root header[data-page='dashboard'] {
    padding: 6px 10px !important;
  }
  .ops-card {
    padding: 12px;
  }
  .ops-map-card {
    padding: 0;
  }
  .ops-map-toolbar {
    align-items: stretch;
  }
  .ops-map-actions {
    width: 100%;
    gap: 6px;
  }
  .ops-map-actions select {
    flex: 1 1 100%;
  }
  .ops-map-actions .ops-button {
    padding: 7px 9px;
  }
  .ops-map {
    max-height: none;
  }
  .ops-service-grid {
    grid-template-columns: 1fr;
  }
  .ops-counter {
    gap: 7px;
    padding: 6px 8px;
  }
  .ops-counter span {
    font-size: 8px;
  }
  .ops-counter strong {
    font-size: 18px;
  }
}
@media (max-width: 420px) {
  .endmed-workspace-frame #root header[data-page='dashboard'] button[title='Anasayfaya Git'],
  .endmed-workspace-frame #root header[data-page='dashboard'] button[aria-label='Menüyü Aç'] {
    display: none;
  }
}
@media (max-height: 500px) and (min-width: 651px) {
  .ops-map {
    max-height: none;
  }
}
