/* Phase 13.1 — Releases top-level layout / toolbar owner.
   Original Nimbus /blocks: full-width page below one 60px filters toolbar. */

body.nimbus-page-releases .main {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body.nimbus-page-releases .main > .sidebar {
  display: flex;
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--color-app-background);
}

body.nimbus-page-releases .main > .sidebar > .stats,
body.nimbus-page-releases .main > .sidebar > .search {
  display: none;
}

/* Stops moves the shared search into #stopsListToolbar at bootstrap.
   Releases must hide that Stops-only toolbar rather than exposing it above the releases list. */
body.nimbus-page-releases #stopsListToolbar,
body.nimbus-page-releases #stopsBulkActions {
  display: none !important;
}

body.nimbus-page-releases .main > .map-wrap {
  display: none;
}

body.nimbus-page-releases #workList {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--color-app-background);
}

body.nimbus-page-releases #filters {
  height: var(--size-shell-bar-height);
  min-height: var(--size-shell-bar-height);
}

body.nimbus-page-releases #filters:empty {
  height: 0;
  min-height: 0;
}

.release-filter-layout {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.release-filter-strip {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 34px;
  height: 100%;
  min-width: 0;
  white-space: nowrap;
}

.release-filter-btn {
  flex: 0 0 auto;
}

.release-filter-btn .ui-filter-chip__label {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.release-filter-search {
  flex: 0 0 240px;
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  height: 36px;
  margin-left: auto;
}

.release-filter-search .ui-search__input {
  font-size: 14px;
  line-height: 18px;
}

/* Top-level Releases DOM already exists in releases.js.
   Phase 13.1 owns only page geometry; row styling follows in Phase 13.2. */
.nimbus-blocks-page,
.nimbus-blocks-list {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  box-sizing: border-box;
}

/* Phase 13.2 — Releases top-level collection list / row owner.
   Original /blocks evidence: 20px top/left spacing, 70px white collection row,
   1px #e6eaee border, 4px radius, 30px transport icon, 60x26 counters,
   36x36 add action. */

.nimbus-blocks-page {
  display: block;
  height: auto;
  min-height: 100%;
  padding: 0;
  background: var(--color-app-background);
}

.nimbus-blocks-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 20px 5px 20px 20px;
  box-sizing: border-box;
  background: var(--color-app-background);
}

.nimbus-blocks-collection-row {
  display: flex;
  flex: 0 0 70px;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  height: 70px;
  box-sizing: border-box;
  border: 1px solid #e6eaee;
  border-radius: 4px;
  background: #fff;
  color: #2d2c33;
  cursor: pointer;
}

.nimbus-blocks-collection-row:focus-visible {
  outline: 2px solid rgba(66, 133, 244, 0.42);
  outline-offset: 1px;
}

.nimbus-blocks-general {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  height: 70px;
  padding: 0 0 0 20px;
  border-right: 1px solid #e6eaee;
  box-sizing: border-box;
}

.nimbus-blocks-type {
  position: relative;
  display: inline-flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 18px;
  border-radius: 50%;
  color: #fff;
}

.nimbus-blocks-type > span {
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.nimbus-blocks-type-bus {
  background: #32a754;
}

.nimbus-blocks-type-bus > span {
  -webkit-mask-image: url("/nimbus-icons/transport-bus.svg");
  mask-image: url("/nimbus-icons/transport-bus.svg");
}

.nimbus-blocks-type-trolleybus {
  background: #7f65f1;
}

.nimbus-blocks-type-trolleybus > span {
  -webkit-mask-image: url("/nimbus-icons/transport-trolleybus.svg");
  mask-image: url("/nimbus-icons/transport-trolleybus.svg");
}

.nimbus-blocks-type-tram {
  background: #f06292;
}

.nimbus-blocks-type-tram > span {
  -webkit-mask-image: url("/nimbus-icons/transport-tram.svg");
  mask-image: url("/nimbus-icons/transport-tram.svg");
}

.nimbus-blocks-type-route_taxi {
  background: #ffaa00;
}

.nimbus-blocks-type-route_taxi > span {
  -webkit-mask-image: url("/nimbus-icons/transport-route-taxi.svg");
  mask-image: url("/nimbus-icons/transport-route-taxi.svg");
}

.nimbus-blocks-type-no_type,
.nimbus-blocks-type-all {
  background: #6779a8;
}

.nimbus-blocks-type-no_type > span,
.nimbus-blocks-type-all > span {
  width: 18px;
  height: 18px;
  -webkit-mask-image: url("/nimbus-icons/transport-no-type.svg");
  mask-image: url("/nimbus-icons/transport-no-type.svg");
}

.nimbus-blocks-number {
  flex: 0 1 auto;
  min-width: 0;
  margin-right: 18px;
  overflow: hidden;
  color: #2d2c33;
  font-size: 24px;
  font-weight: 400;
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nimbus-blocks-counters {
  position: absolute;
  top: 18px;
  right: 0;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
}

.nimbus-blocks-counter {
  position: relative;
  display: inline-flex;
  flex: 0 0 60px;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: 60px;
  height: 26px;
  box-sizing: border-box;
  padding: 8px 10px 0;
  color: #2d2c33;
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  cursor: default;
}

.nimbus-blocks-counter-icon {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  opacity: .7;
}

/* Exact counter glyphs supplied from the original Releases UI.
   Original row order from the recorded /blocks screen:
   first counter -> block/release glyph; second counter -> stops/routes glyph. */
.nimbus-blocks-counter:first-child .nimbus-blocks-counter-icon {
  background-image: url("/nimbus-icons/releases/blocks.svg");
}

.nimbus-blocks-counter:last-child .nimbus-blocks-counter-icon {
  background-image: url("/nimbus-icons/releases/stops-routes.svg");
}

.nimbus-blocks-add-cell {
  display: flex;
  flex: 0 0 76px;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 70px;
  box-sizing: border-box;
}

.nimbus-blocks-add {
  position: relative;
  display: inline-flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid rgba(153, 157, 168, 0.4);
  border-radius: 4px;
  background: #fff;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.nimbus-blocks-add::before {
  width: 20px;
  height: 20px;
  background: rgba(153, 157, 168, .7);
  content: "";
  -webkit-mask-image: url("/nimbus-icons/action-plus.svg");
  mask-image: url("/nimbus-icons/action-plus.svg");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 20px 20px;
  mask-size: 20px 20px;
}

.nimbus-blocks-add:hover,
.nimbus-blocks-add:focus-visible {
  border-color: #4285f4;
  outline: 0;
}

.nimbus-blocks-add:hover::before,
.nimbus-blocks-add:focus-visible::before {
  background: #4285f4;
}

@media (max-width: 1100px) {
  .nimbus-blocks-number {
    flex-basis: 260px;
    max-width: 320px;
  }

  .nimbus-blocks-general {
    padding-left: 14px;
    padding-right: 10px;
  }

  .nimbus-blocks-list {
    padding-left: 14px;
  }
}

/* Phase 13.3 — Releases selected collection screen / block-list owner.
   Grounded in the recorded original /collection/.../blocks state. */

.nimbus-collection-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--color-app-background);
}

.nimbus-collection-header {
  display: flex;
  flex: 0 0 60px;
  align-items: center;
  width: 100%;
  height: 60px;
  min-width: 0;
  padding: 0 20px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(153, 157, 168, 0.24);
  background: #fff;
}

.nimbus-collection-back {
  display: inline-flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0 20px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nimbus-collection-back img {
  display: block;
  width: 24px;
  height: 24px;
}

.nimbus-collection-header > .nimbus-blocks-type {
  margin-right: 15px;
}

.nimbus-collection-title {
  flex: 0 0 auto;
  max-width: 420px;
  margin-right: 20px;
  overflow: hidden;
  color: #2d2c33;
  font-size: 24px;
  font-weight: 400;
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nimbus-collection-filter {
  position: relative;
  display: inline-flex;
  flex: 0 0 240px;
  align-items: center;
  width: 240px;
  height: 36px;
  margin-top: -2px;
  padding: 0 30px 0 10px;
  box-sizing: border-box;
  border: 1px solid rgba(153, 157, 168, 0.4);
  border-radius: 4px;
  background: #fff;
  color: #2d2c33;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: default;
}

.nimbus-collection-filter::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 30px;
  height: 30px;
  background: url("/icons/runs/chevron-muted.svg") center / 30px 30px no-repeat;
  content: "";
  transform: translateY(-50%);
}

.nimbus-collection-header-spacer {
  flex: 1 1 auto;
  min-width: 20px;
}

.nimbus-collection-add {
  position: relative;
  display: inline-flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 20px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #32a754;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}

.nimbus-collection-add img {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.nimbus-collection-add:hover,
.nimbus-collection-add:focus-visible {
  background: #2b984b;
  outline: 0;
}

.nimbus-collection-search {
  flex: 0 0 240px;
  width: 240px;
  min-width: 240px;
  height: 36px;
}

.nimbus-collection-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  min-height: 0;
  padding: 20px 5px 20px 20px;
  overflow: hidden auto;
  box-sizing: border-box;
  background: var(--color-app-background);
}

.nimbus-collection-block-row {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e6eaee;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.nimbus-collection-block-head {
  display: flex;
  flex: 0 0 70px;
  align-items: center;
  min-width: 0;
  height: 70px;
  border-bottom: 1px solid #e6eaee;
  background: #fff;
}

.nimbus-collection-block-main {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  height: 100%;
  padding-left: 18px;
  box-sizing: border-box;
}

.nimbus-collection-block-main.nimbus-release-open-zone {
  cursor: pointer;
}

.nimbus-collection-block-main.nimbus-release-open-zone:focus-visible {
  outline: 2px solid rgba(66, 133, 244, 0.72);
  outline-offset: -2px;
}

.nimbus-collection-block-title-line {
  display: block;
  min-width: 0;
  height: 100%;
  line-height: 70px;
}

.nimbus-collection-block-number {
  padding-right: 9px;
  border-right: 2px solid #e6eaee;
  color: #2d2c33;
  font-size: 24px;
  font-weight: 400;
  vertical-align: middle;
}

.nimbus-collection-block-time,
.nimbus-collection-block-scheme {
  margin-left: 9px;
  color: rgba(45, 44, 51, 0.7);
  font-size: 14px;
  vertical-align: middle;
}

.nimbus-collection-block-time,
.nimbus-collection-block-scheme {
  cursor: pointer;
}

.nimbus-collection-collapse {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 69px;
  padding: 24px 12px;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  opacity: 1;
  cursor: pointer;
}

.nimbus-collection-collapse img {
  display: block;
  width: 24px;
  height: 24px;
  margin: auto;
  pointer-events: none;
  transition: transform 120ms ease;
}

.nimbus-collection-collapse:disabled {
  opacity: 0.5;
  cursor: default;
}

.nimbus-collection-block-row.is-expanded .nimbus-collection-collapse img {
  transform: rotate(180deg);
}

/*
 * Phase 13.5-r4-corrected:
 * The original block is never hidden by the chevron. The normal state is the
 * compact horizontal timetable. Expanding only unfolds the same timetable
 * into multiple visible rows and removes the compact horizontal navigator.
 */
.nimbus-collection-block-row.is-expanded .nimbus-original-timeline-scroll {
  height: auto;
  padding-bottom: 17px;
  overflow-x: hidden;
}

.nimbus-collection-block-row.is-expanded .nimbus-original-schedule-strip {
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.nimbus-collection-block-row.is-expanded .nimbus-original-timeline-navigator {
  display: none;
}

.nimbus-collection-block-actions {
  display: flex;
  flex: 0 0 77px;
  align-items: flex-start;
  justify-content: center;
  width: 77px;
  height: 69px;
  padding: 17px 20px;
  border-left: 1px solid #e6eaee;
}

.nimbus-collection-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(153, 157, 168, 0.4);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.nimbus-collection-delete img {
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.nimbus-collection-delete:hover,
.nimbus-collection-delete:focus-visible {
  border-color: #4285f4;
  outline: 0;
}

.nimbus-collection-block-body {
  min-width: 0;
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.nimbus-original-timeline {
  min-width: 0;
  overflow: hidden;
}

.nimbus-original-timeline-scroll {
  min-width: 0;
  height: 118px;
  padding: 1px 6px 14px 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.nimbus-original-timeline-scroll::-webkit-scrollbar {
  display: none;
}

.nimbus-original-schedule-strip {
  display: flex;
  align-items: flex-end;
  gap: 0;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
}

.nimbus-original-schedule-slot {
  flex: 0 0 144px;
  width: 144px;
  height: 100px;
  padding-top: 19px;
}

.nimbus-original-slot-hour {
  height: 21px;
  margin-bottom: 10px;
  padding: 2px 5px;
  border-left: 2px solid #e6eaee;
  box-sizing: border-box;
  color: #2d2c33;
  font-size: 14px;
  line-height: normal;
  white-space: nowrap;
}

.nimbus-original-slot-hour.is-empty {
  color: transparent;
  border-left: 0;
}

.nimbus-original-card {
  display: block;
  width: 130px;
  height: 50px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid rgba(153, 157, 168, 0.4);
  border-radius: 4px;
  background: #fff;
  color: #2d2c33;
  font-size: 12px;
  line-height: normal;
}

.nimbus-original-card span {
  display: block;
  overflow: hidden;
  color: #8492a6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nimbus-original-timeline-navigator {
  position: relative;
  width: 100%;
  height: 30px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}

.nimbus-original-timeline-slider {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  height: 30px;
  border: 2px solid #999da8;
  border-radius: 4px;
  background: rgba(153, 157, 168, 0.1);
  cursor: grab;
  touch-action: none;
  will-change: transform, width;
}

.nimbus-original-timeline-slider[hidden] {
  display: none;
}

.nimbus-original-timeline-slider.is-dragging {
  cursor: grabbing;
}

.nimbus-original-timeline-ruler {
  height: 100%;
  padding-top: 11px;
  pointer-events: none;
}

.nimbus-original-timeline-ruler-item {
  display: inline-block;
  width: 25%;
  padding: 0 0 6px 3px;
  border-left: 1px solid #999da8;
  color: rgba(45, 44, 51, 0.7);
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  vertical-align: middle;
}

.nimbus-original-timeline-ruler-item:last-child {
  position: relative;
  top: -22px;
  float: right;
  width: auto;
  padding-right: 3px;
  border-left: 0;
  border-right: 1px solid #999da8;
}

.nimbus-original-timeline-navigator.is-static .nimbus-original-timeline-ruler-item:first-child {
  width: 100%;
}

.nimbus-original-timeline-navigator.is-static .nimbus-original-timeline-ruler-item:not(:first-child):not(:last-child) {
  display: none;
}

.nimbus-collection-timeline-empty,
.nimbus-collection-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  box-sizing: border-box;
  color: rgba(45, 44, 51, 0.52);
  text-align: center;
}

.nimbus-blocks-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  color: #999da8;
  font-size: 24px;
  text-align: center;
}

.nimbus-blocks-page:has(.nimbus-blocks-empty),
.nimbus-blocks-list:has(> .nimbus-blocks-empty) {
  height: 100%;
}

.nimbus-blocks-list:has(> .nimbus-blocks-empty),
.nimbus-collection-list:has(> .nimbus-blocks-empty) {
  padding: 0;
}

.nimbus-blocks-collection-row:hover {
  border-color: #fff;
  box-shadow: 0 2px 10px rgba(45, 44, 51, 0.35);
}

@media (max-width: 1100px) {
  .nimbus-collection-title {
    max-width: 260px;
    font-size: 21px;
  }

  .nimbus-collection-filter {
    flex-basis: 200px;
    width: 200px;
  }

  .nimbus-collection-search {
    flex-basis: 210px;
    width: 210px;
    min-width: 210px;
  }
}

/* Phase 13.3-r1 — Original first-screen counter hover/focus states. */
.nimbus-blocks-counter:focus-visible {
  outline: 0;
}

.nimbus-blocks-counter-popover {
  position: fixed;
  z-index: 60;
  display: block;
  width: max-content;
  min-width: 240px;
  box-sizing: border-box;
  border: 0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 9px 36px rgba(0, 0, 0, .24);
  color: #2d2c33;
  font: 14px / normal Lato, sans-serif;
  text-align: left;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  user-select: text;
  pointer-events: auto;
}

.nimbus-blocks-counter:hover .nimbus-blocks-counter-popover,
.nimbus-blocks-counter:focus .nimbus-blocks-counter-popover,
.nimbus-blocks-counter:focus-within .nimbus-blocks-counter-popover {
  visibility: visible;
  opacity: 1;
}

.nimbus-blocks-counter-popover-title {
  display: block;
  padding: 10px 20px;
  box-sizing: border-box;
  border-bottom: 1px solid #e6eaee;
  background: #f8fafc;
  white-space: nowrap;
}

.nimbus-blocks-counter-popover-transport {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  vertical-align: middle;
  background: #6779a8;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.nimbus-blocks-counter-popover-transport-bus {
  background: #32a754;
  -webkit-mask-image: url("/nimbus-icons/transport-bus.svg");
  mask-image: url("/nimbus-icons/transport-bus.svg");
}

.nimbus-blocks-counter-popover-transport-trolleybus {
  background: #7f65f1;
  -webkit-mask-image: url("/nimbus-icons/transport-trolleybus.svg");
  mask-image: url("/nimbus-icons/transport-trolleybus.svg");
}

.nimbus-blocks-counter-popover-transport-tram {
  background: #f06292;
  -webkit-mask-image: url("/nimbus-icons/transport-tram.svg");
  mask-image: url("/nimbus-icons/transport-tram.svg");
}

.nimbus-blocks-counter-popover-transport-route_taxi {
  background: #ffaa00;
  -webkit-mask-image: url("/nimbus-icons/transport-route-taxi.svg");
  mask-image: url("/nimbus-icons/transport-route-taxi.svg");
}

.nimbus-blocks-counter-popover-transport-no_type,
.nimbus-blocks-counter-popover-transport-all {
  background: #6779a8;
  -webkit-mask-image: url("/nimbus-icons/transport-no-type.svg");
  mask-image: url("/nimbus-icons/transport-no-type.svg");
}

.nimbus-blocks-counter-popover-body {
  max-height: 480px;
  overflow: hidden auto;
}

.nimbus-blocks-release-popover-row {
  display: block;
  min-width: 240px;
  padding: 15px 20px 10px;
  box-sizing: border-box;
  white-space: nowrap;
}

.nimbus-blocks-release-popover-number {
  display: inline-block;
  min-width: 50px;
  padding: 2px 8px 2px 0;
  margin: -3px 10px 0 0;
  border-right: 2px solid #e6eaee;
  vertical-align: top;
  color: #2d2c33;
  font-size: 14px;
  line-height: normal;
}

.nimbus-blocks-release-popover-main {
  display: inline-block;
  min-width: 0;
}

.nimbus-blocks-release-popover-time {
  display: inline-block;
  max-width: 400px;
  overflow: hidden;
  color: #2d2c33;
  font-size: 14px;
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nimbus-blocks-release-popover-scheme {
  display: block;
  color: rgba(45, 44, 51, 0.7);
  font-size: 12px;
  line-height: normal;
}

.nimbus-blocks-route-popover-row {
  display: block;
  min-width: 240px;
  padding: 15px 20px 10px;
  box-sizing: border-box;
  white-space: nowrap;
}

.nimbus-blocks-route-popover-type {
  vertical-align: top;
}

.nimbus-blocks-route-popover-main {
  display: inline-block;
  min-width: 0;
}

.nimbus-blocks-route-popover-name {
  display: inline-block;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nimbus-blocks-route-popover-number {
  display: inline-block;
  min-width: 50px;
  padding: 2px 8px;
  margin: -3px 10px 0 0;
  border: 1px solid rgba(153, 157, 168, .4);
  border-radius: 4px;
  text-align: center;
  vertical-align: top;
  color: #2d2c33;
  font-size: 14px;
  line-height: normal;
}

.nimbus-blocks-route-popover-description {
  display: block;
  color: rgba(45, 44, 51, 0.7);
  font-size: 12px;
  line-height: normal;
}

.nimbus-blocks-counter-popover-empty {
  padding: 18px 14px;
  color: rgba(45, 44, 51, 0.52);
  font-size: 13px;
  line-height: 18px;
}

/* Phase 13.3-r3 — Releases search controls: real 36px input box.
   .ui-search is 36px border-box with 1px top/bottom borders, therefore its
   child input at height:100% resolves to the 34px content box. Keep the
   shared component untouched and correct only the two Releases search owners. */
.release-filter-search .ui-search__input,
.nimbus-collection-search .ui-search__input {
  height: 36px;
  min-height: 36px;
  margin-top: -1px;
  margin-bottom: -1px;
}

.nimbus-release-editor-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--color-app-background);
}

.nimbus-release-editor-header {
  display: flex;
  flex: 0 0 60px;
  align-items: center;
  min-width: 0;
  height: 60px;
  padding: 0 20px;
  box-sizing: border-box;
  border-bottom: 1px solid #e6eaee;
  background: #fff;
}

.nimbus-release-editor-back {
  display: inline-flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 25px;
  margin: 0 48px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nimbus-release-editor-back img {
  display: block;
  width: 24px;
  height: 25px;
}

.nimbus-release-editor-number {
  flex: 0 0 72px;
  width: 72px;
  height: 36px;
  padding: 0 8px;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2d2c33;
  font-size: 18px;
  line-height: 24px;
}

.nimbus-release-editor-number:focus {
  outline: 0;
  box-shadow: inset 0 -1px #4285f4;
}

.nimbus-release-editor-number.error {
  box-shadow: inset 0 -1px #f06292;
}

.nimbus-release-editor-pattern {
  flex: 0 0 220px;
  width: 220px;
  height: 36px;
  margin-left: 10px;
  padding: 0 32px 0 10px;
  box-sizing: border-box;
  border: 1px solid #d9dde6;
  border-radius: 4px;
  background: #fff;
  color: #2d2c33;
  font-size: 13px;
}

.nimbus-release-editor-spacer {
  flex: 1 1 auto;
  min-width: 16px;
}

.nimbus-release-editor-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.nimbus-release-editor-actions[hidden],
.nimbus-release-editor-message[hidden] {
  display: none;
}

.nimbus-release-editor-delete {
  width: 36px;
  height: 36px;
  border: 1px solid #e6eaee;
  border-radius: 4px;
  background: #fff url("/nimbus-icons/releases/delete.svg") center / 18px 18px no-repeat;
  cursor: pointer;
}

.nimbus-release-editor-message {
  min-height: 32px;
  padding: 8px 20px 0;
  box-sizing: border-box;
  color: #f06292;
  font-size: 13px;
  line-height: 18px;
}

.nimbus-release-editor-body {
  min-width: 0;
  padding: 16px 20px 20px;
  box-sizing: border-box;
}

.nimbus-release-editor-grid-scroll {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid #e6eaee;
  background: #fff;
}

.nimbus-release-editor-grid {
  display: grid;
  grid-template-columns: 56px repeat(var(--nimbus-release-editor-route-count), 376px);
  width: max-content;
  min-width: 100%;
  align-items: stretch;
  background: #fff;
}

.nimbus-release-editor-grid-corner {
  min-height: 48px;
  border-right: 1px solid #e6eaee;
  border-bottom: 1px solid #e6eaee;
  background: #fff;
}

.nimbus-release-editor-route-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 5px 12px 4px;
  box-sizing: border-box;
  border-right: 1px solid #e6eaee;
  border-bottom: 1px solid #e6eaee;
  background: #fff;
}

.nimbus-release-editor-route-head-line {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nimbus-release-editor-route-head-line > .nimbus-blocks-type {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-right: 7px;
  border-radius: 3px;
}

.nimbus-release-editor-route-head-line > .nimbus-blocks-type > span {
  width: 12px;
  height: 12px;
}

.nimbus-release-editor-route-main {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.nimbus-release-editor-route-number {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  margin-right: 8px;
  padding: 0 5px;
  box-sizing: border-box;
  border: 1px solid #d9dde6;
  border-radius: 3px;
  background: #fff;
  color: #2d2c33;
  font-size: 12px;
  line-height: 16px;
}

.nimbus-release-editor-route-description {
  min-width: 0;
  overflow: hidden;
  color: #2d2c33;
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nimbus-release-editor-route-secondary {
  display: block;
  min-height: 12px;
  margin: 1px 0 0 23px;
  color: rgba(45, 44, 51, 0.45);
  font-size: 11px;
  line-height: 12px;
}

.nimbus-release-editor-hour-label {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 76px;
  padding: 14px 9px 0 4px;
  box-sizing: border-box;
  border-right: 1px solid #e6eaee;
  border-bottom: 1px solid #e6eaee;
  background: #fff;
  color: #2d2c33;
  font-size: 11px;
  line-height: 16px;
}

.nimbus-release-editor-hour-cards {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 76px;
  padding: 12px 12px;
  box-sizing: border-box;
  border-right: 1px solid #e6eaee;
  border-bottom: 1px solid #e6eaee;
  background: #fff;
}

.nimbus-release-editor-schedule-card {
  display: inline-flex;
  flex: 0 0 102px;
  align-items: center;
  justify-content: center;
  width: 102px;
  height: 36px;
  min-height: 36px;
  padding: 0 6px;
  box-sizing: border-box;
  border: 1px solid #d9dde6;
  border-radius: 3px;
  background: #fff;
  color: #2d2c33;
  cursor: pointer;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}

.nimbus-release-editor-schedule-card.is-selected {
  border-color: #4285f4;
  background: rgba(66, 133, 244, 0.12);
}

.nimbus-release-editor-schedule-card.is-inactive {
  border-color: #e6eaee;
  background: #fff;
  color: rgba(45, 44, 51, 0.38);
  opacity: 1;
  cursor: default;
}

.nimbus-release-editor-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: rgba(45, 44, 51, 0.52);
  text-align: center;
}

@media (max-width: 1180px) {
  .nimbus-release-editor-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nimbus-release-editor-pattern {
    flex-basis: 150px;
    width: 150px;
  }
}
