/* Shared trip schedule board and trip view primitives for admin and seller front office. */

:is(.wk-te-admin-schedule-table, .wk-te-schedule-table) {
  margin-bottom: 0;
  table-layout: auto;
  font-size: 12px;
}

:is(.wk-te-admin-schedule-table, .wk-te-schedule-table) > thead > tr > th,
:is(.wk-te-admin-schedule-table, .wk-te-schedule-table) > tbody > tr > td {
  padding: 10px 9px;
  vertical-align: middle;
  border-color: #edf2f7;
  word-break: normal;
  overflow-wrap: normal;
}

:is(.wk-te-admin-schedule-table, .wk-te-schedule-table) > thead > tr > th {
  background: #f5f8fd;
  color: #315176;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.wk-te-schedule-sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.wk-te-schedule-sort:hover,
.wk-te-schedule-sort.is-active {
  color: #315cf6;
}

.wk-te-schedule-sort-arrow {
  font-size: 8px;
  line-height: 1;
}

:is(.wk-te-admin-code-cell, .wk-te-schedule-code-cell) {
  min-width: 170px;
}

:is(.wk-te-admin-trip-code, .wk-te-schedule-code) {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
}

:is(.wk-te-admin-date-cell, .wk-te-schedule-date-cell) {
  min-width: 106px;
  white-space: nowrap;
}

:is(.wk-te-admin-time-cell, .wk-te-schedule-time-cell) {
  width: 110px;
  min-width: 110px;
  text-align: center;
  white-space: normal;
}

:is(.wk-te-admin-slot-list, .wk-te-slot-list) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 100px;
}

:is(.wk-te-admin-time-pill, .wk-te-slot-list span) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 64px;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 5px;
  color: #0b2545 !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap !important;
}

:is(.wk-te-admin-vehicle-cell, .wk-te-schedule-vehicle-cell, .wk-te-admin-vehicle-availability, .wk-te-vehicle-availability) {
  display: flex;
  align-items: center;
  gap: 8px;
}

:is(.wk-te-admin-vehicle-cell img, .wk-te-admin-vehicle-availability img, .wk-te-admin-vehicle-cell > span, .wk-te-admin-vehicle-availability > span, .wk-te-schedule-vehicle-cell img, .wk-te-vehicle-availability img, .wk-te-schedule-vehicle-fallback, .wk-te-vehicle-availability > span) {
  display: grid;
  place-items: center;
  width: 42px;
  max-width: 42px;
  height: 34px;
  max-height: 34px;
  flex: 0 0 42px;
  border: 1px solid #dbe5ee;
  border-radius: 5px;
  object-fit: cover;
  background: #f7fafc;
}

:is(.wk-te-admin-vehicle-cell > span, .wk-te-admin-vehicle-availability > span, .wk-te-schedule-vehicle-fallback, .wk-te-vehicle-availability > span) {
  color: #5f7188;
}

:is(.wk-te-admin-vehicle-cell strong, .wk-te-admin-vehicle-availability strong, .wk-te-schedule-vehicle-cell strong, .wk-te-vehicle-availability strong) {
  display: block;
  color: #0b2545;
  font-size: 12px;
}

:is(.wk-te-admin-vehicle-cell small, .wk-te-admin-vehicle-availability small, .wk-te-schedule-vehicle-cell small, .wk-te-vehicle-availability small) {
  color: #6b7f98;
  font-size: 11px;
}

:is(.wk-te-admin-direction, .wk-te-admin-status, .wk-te-admin-vehicle-availability em, .wk-te-direction-pill, .wk-te-status-pill, .wk-te-vehicle-availability em, .wk-te-upcoming-trip em) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 5px;
  background: #edf3ff;
  color: #315cf6;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

:is(.wk-te-admin-direction--return, .wk-te-direction-pill--return) {
  background: #f2edff;
  color: #7c3aed;
}

:is(.wk-te-admin-status.is-active, .wk-te-admin-vehicle-availability em, .wk-te-status-pill.is-active, .wk-te-vehicle-availability em.is-available) {
  background: #eaf8ee;
  color: #238a41;
}

:is(.wk-te-admin-status.is-inactive, .wk-te-status-pill.is-inactive, .wk-te-vehicle-availability em.is-muted) {
  background: #eef2f6;
  color: #78879a;
}

:is(.wk-te-admin-seat-slot-list, .wk-te-seat-slot-list) {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

:is(.wk-te-schedule-seats-cell) {
  min-width: 140px;
  width: 140px;
}

:is(.wk-te-admin-seat-progress strong, .wk-te-seat-progress strong, .wk-te-seat-progress small) {
  display: block;
  color: #315176;
  font-size: 11px;
}

:is(.wk-te-admin-seat-progress span, .wk-te-seat-progress span) {
  display: block;
  border-radius: 999px;
  background: #e7edf4;
  overflow: hidden;
}

.wk-te-admin-seat-progress span {
  height: 6px;
  margin: 4px 0;
}

.wk-te-seat-progress span {
  height: 5px;
  margin: 4px 0;
}

:is(.wk-te-admin-seat-progress i, .wk-te-seat-progress i) {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #43a047;
}

:is(.wk-te-admin-side, .wk-te-schedule-side) {
  display: grid;
  min-width: 0;
}

:is(.wk-te-admin-upcoming, .wk-te-upcoming-trip, .wk-te-vehicle-availability) {
  align-items: center;
  border-top: 1px solid #edf2f7;
}

.wk-te-upcoming-trip {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
}

:is(.wk-te-admin-upcoming:first-of-type, .wk-te-admin-vehicle-availability:first-of-type, .wk-te-upcoming-trip:first-of-type, .wk-te-vehicle-availability:first-of-type) {
  border-top: 0;
}

:is(.wk-te-admin-upcoming-times, .wk-te-upcoming-times) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

:is(.wk-te-admin-upcoming-times strong, .wk-te-upcoming-times strong, .wk-te-upcoming-trip > strong) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 3px 6px;
  border: 1px solid #bdd0ff;
  border-radius: 5px;
  background: #f5f8ff;
  color: #315cf6;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.wk-te-upcoming-info {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
}


:is(.wk-te-admin-upcoming span, .wk-te-admin-side-empty, .wk-te-admin-board-empty, .wk-te-upcoming-trip span, .wk-te-side-empty, .wk-te-board-no-results) {
  color: #6b7f98;
}

.wk-te-upcoming-info > span {
  display: block;
  font-size: 11px;
  line-height: 1.25;
}

.wk-te-upcoming-trip .wk-te-route-icon {
  width: 22px;
  height: 14px;
  margin: 0 5px;
  color: #2f9b8f;
  font-size: 16px;
  line-height: 14px;
  vertical-align: -2px;
}

.wk-te-upcoming-trip .wk-te-route-icon i {
  color: #2f9b8f;
}

:is(.wk-te-admin-seat-card, .wk-te-seller-trip-card) {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 36, 61, 0.06);
}

:is(.wk-te-admin-seat-card h3, .wk-te-admin-seat-card-head h3, .wk-te-seller-trip-card h3, .wk-te-seller-trip-card-head h3) {
  margin: 0;
  color: #10243d;
  font-size: 15px;
  font-weight: 800;
}

:is(.wk-te-admin-seat-card h3, .wk-te-admin-seat-card-head h3, .wk-te-seller-trip-card h3, .wk-te-seller-trip-card-head h3) i {
  margin-right: 7px;
  color: #2f9b8f;
}

:is(.wk-te-admin-seat-card-head, .wk-te-seller-trip-card-head) {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 16px;
}

:is(.wk-te-admin-seat-card-head span, .wk-te-seller-trip-card-head span) {
  color: #6b7c8c;
  font-size: 12px;
  padding:16px 0 0 16px;
}

:is(.wk-te-admin-slot-buttons, .wk-te-seller-trip-slot-buttons) {
  display: flex;
  gap: 12px;
  padding: 0px 16px 16px 16px;
}

.wk-te-admin-slot-buttons {
  overflow-x: auto;
}

.wk-te-seller-trip-slot-buttons {
  flex-wrap: wrap;
}

:is(.wk-te-admin-slot-card, .wk-te-seller-trip-slot-card) {
  min-width: 172px;
  min-height: 92px;
  padding: 12px 16px;
  border: 1px solid #dfe7ef;
  border-radius: 6px;
  background: #fff;
  color: #10243d;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

:is(.wk-te-admin-slot-card, .wk-te-seller-trip-slot-card).is-active {
  border-color: #1ca89e;
  background: #f4fcfb;
  box-shadow: 0 0 0 2px rgba(28, 168, 158, 0.12);
}

:is(.wk-te-admin-slot-card, .wk-te-seller-trip-slot-card) strong,
:is(.wk-te-admin-slot-card, .wk-te-seller-trip-slot-card) span,
:is(.wk-te-admin-slot-card, .wk-te-seller-trip-slot-card) em {
  display: block;
}

:is(.wk-te-admin-slot-card, .wk-te-seller-trip-slot-card) strong {
  font-size: 13px;
  font-weight: 800;
}

:is(.wk-te-admin-slot-card, .wk-te-seller-trip-slot-card) span {
  margin-top: 6px;
  color: #1ca89e;
  font-size: 11px;
  font-weight: 800;
}

:is(.wk-te-admin-slot-card, .wk-te-seller-trip-slot-card) em {
  margin-top: 8px;
  color: #10243d;
  font-style: normal;
  font-size: 12px;
}

:is(.wk-te-admin-seat-summary, .wk-te-seller-trip-summary) {
  font-size: 12px;
}

:is(.wk-te-admin-seat-summary, .wk-te-seller-trip-summary) > thead > tr > th {
  color: #7c8da3;
  font-size: 11px;
  font-weight: 800;
  border-bottom: 1px solid #edf1f5;
}

:is(.wk-te-admin-seat-summary, .wk-te-seller-trip-summary) > tbody > tr > td {
  padding: 9px 8px;
  border-top: 1px solid #edf1f5;
  color: #10243d;
  font-size: 12px;
}

:is(.wk-te-admin-seat-summary, .wk-te-seller-trip-summary) > tbody > tr {
  cursor: pointer;
}

:is(.wk-te-admin-seat-summary, .wk-te-seller-trip-summary) > tbody > tr.is-active > td:first-child,
:is(.wk-te-admin-seat-summary, .wk-te-seller-trip-summary) > tbody > tr.is-active > td:last-child {
  color: #0f766e;
  font-weight: 800;
}

:is(.wk-te-admin-seat-empty, .wk-te-seller-trip-empty) {
  color: #6b7c8c;
  font-size: 12px;
}

:is(.wk-te-admin-seat-panel, .wk-te-seller-seat-panel) {
  display: none;
}

:is(.wk-te-admin-seat-panel, .wk-te-seller-seat-panel).is-active {
  display: block;
}

:is(.wk-te-admin-seat-layout-scroll, .wk-te-seller-seat-layout-scroll) {
  overflow-x: auto;
  padding: 10px 0 4px;
}

:is(.wk-te-admin-seat-summary, .wk-te-seller-trip-summary) > tbody > tr.is-active > td {
  background: #f4fcfb;
  border-top-color: #c8ebe8;
}

:is(.wk-te-admin-trip-view, .wk-te-seller-trip-view) {
  background: #f5f7fa;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wk-te-admin-trip-view > .panel-heading,
.wk-te-seller-trip-view-heading {
  border-bottom: 1px solid #dfe7ef;
  background: #fff;
}

.wk-te-admin-trip-view > .panel-heading {
  margin: 0;
  border-top: 0;
  border-right: 0;
  border-left: 0;
}

#content.bootstrap .wk-te-admin-trip-view > .panel-heading,
#content.bootstrap .wk-te-admin-seat-card h3:not(.modal-title) {
  margin: 0;
}

:is(.wk-te-admin-trip-view-heading, .wk-te-seller-trip-view-heading) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 12px 16px;
  border-bottom: 1px solid #dfe7ef;
  background: #fff;
  border-radius: 8px 8px 0 0;
}

:is(.wk-te-admin-trip-view-heading, .wk-te-seller-trip-view-heading) > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #10243d;
  font-weight: 800;
}

:is(.wk-te-admin-trip-view-heading, .wk-te-seller-trip-view-heading) em {
  padding: 3px 10px;
  border-radius: 999px;
  background: #dff7e8;
  color: #15935f;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

:is(.wk-te-admin-trip-view-heading, .wk-te-seller-trip-view-heading) em.is-inactive {
  background: #fee2e2;
  color: #b91c1c;
}

:is(.wk-te-admin-trip-view-actions, .wk-te-seller-trip-view-actions) {
  display: inline-flex;
  gap: 8px;
}

:is(.wk-te-admin-trip-view-actions a, .wk-te-seller-trip-view-actions a) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #bcd0ff;
  border-radius: 6px;
  background: #fff;
  color: #315cf6;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
}

:is(.wk-te-admin-trip-view-actions a:hover, .wk-te-seller-trip-view-actions a:hover) {
  background: #edf3ff;
}

:is(.wk-te-admin-trip-view-actions a i, .wk-te-seller-trip-view-actions a i) {
  font-size: 13px;
}

:is(.wk-te-admin-trip-overview, .wk-te-seller-trip-overview) {
  padding: 16px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #fff;
}

:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 0.85fr 0.85fr;
  gap: 0;
  max-width: none;
  padding-right: 0;
  border-right: 0;
}

:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) .wk-te-trip-fact-column {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 0 28px;
  border-left: 1px solid #edf1f5;
}

:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) .wk-te-trip-fact-column:first-child {
  padding-left: 0;
  border-left: 0;
}

:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) .wk-te-trip-fact-column:last-child {
  padding-right: 0;
}

:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) .wk-te-trip-fact-column > div {
  display: grid;
  grid-template-columns: 18px 110px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) i {
  color: #66788f;
  font-size: 14px;
  text-align: center;
}

:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) span {
  color: #42566d;
  font-size: 12px;
  font-weight: 700;
}

:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) strong {
  min-width: 0;
  color: #0e1a25;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) .wk-te-trip-date-fact {
  align-items: start;
}

:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) .wk-te-trip-date-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) .wk-te-trip-date-pills > span,
:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) .wk-te-trip-date-pills > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #dbe5ee;
  border-radius: 5px;
  background: #fff;
  color: #17355f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) .wk-te-trip-date-pills > span.is-selected,
:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) .wk-te-trip-date-pills > a.is-selected {
  border-color: #49a8a2;
  background: #eefafa;
  color: #0f766e;
}

:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) .wk-te-trip-date-pills > span.has-bookings,
:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) .wk-te-trip-date-pills > a.has-bookings {
  border-color: #bdd0ff;
  background: #f5f8ff;
  color: #315cf6;
}

:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) .wk-te-trip-date-pills small {
  color: inherit;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.78;
}

:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) .wk-te-trip-date-pills > strong {
  white-space: nowrap;
}

:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) .wk-te-trip-selected-date-column {
  justify-items: center;
}

:is(.wk-te-admin-trip-facts, .wk-te-seller-trip-facts) .wk-te-trip-selected-date {
  color: #2f9b8f;
  font-size: 14px;
}

.wk-te-trip-date-picker {
  min-width: 150px;
  min-height: 34px;
  padding: 5px 30px 5px 10px;
  border: 1px solid #49a8a2;
  border-radius: 5px;
  background: #eefafa;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

:is(.wk-te-trip-date-selector, .wk-te-seller-trip-date-selector) {
  display: grid;
  gap: 8px;
  margin: 14px 0 12px;
}

:is(.wk-te-trip-date-selector, .wk-te-seller-trip-date-selector) > span {
  color: #42566d;
  font-size: 12px;
  font-weight: 700;
}

:is(.wk-te-trip-date-selector, .wk-te-seller-trip-date-selector) > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

:is(.wk-te-trip-date-selector, .wk-te-seller-trip-date-selector) a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #dbe5ee;
  border-radius: 5px;
  background: #fff;
  color: #17355f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

:is(.wk-te-trip-date-selector, .wk-te-seller-trip-date-selector) a.is-selected {
  border-color: #49a8a2;
  background: #eefafa;
  color: #0f766e;
}

:is(.wk-te-trip-date-selector, .wk-te-seller-trip-date-selector) a.has-bookings {
  border-color: #bdd0ff;
  background: #f5f8ff;
  color: #315cf6;
}

:is(.wk-te-trip-date-selector, .wk-te-seller-trip-date-selector) a small {
  color: inherit;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.78;
}

:is(.wk-te-admin-slot-card, .wk-te-seller-trip-slot-card) small {
  display: block;
  margin-top: 4px;
  color: #42566d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.wk-te-admin-trip-view .wk-te-admin-seat-view,
.wk-te-seller-trip-seat-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
}

:is(.wk-te-admin-seat-main, .wk-te-seller-trip-seat-main, .wk-te-admin-seat-side, .wk-te-seller-trip-side) {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

:is(.wk-te-admin-booked-seat-panel, .wk-te-seller-booked-seat-panel) {
  display: none;
  margin-top: 14px;
}

:is(.wk-te-admin-booked-seat-panel, .wk-te-seller-booked-seat-panel).is-active {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin:0;
}

:is(.wk-te-admin-booked-seat, .wk-te-seller-booked-seat) {
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fbfdff;
  overflow: hidden;
}

:is(.wk-te-admin-booked-seat, .wk-te-seller-booked-seat) header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #eef6ff;
  color: #10243d;
}

:is(.wk-te-admin-booked-seat, .wk-te-seller-booked-seat) header strong {
  font-size: 13px;
  font-weight: 900;
}

:is(.wk-te-admin-booked-seat, .wk-te-seller-booked-seat) header span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

:is(.wk-te-admin-booked-seat, .wk-te-seller-booked-seat) dl {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px 10px;
  margin: 0;
  padding: 12px;
}

:is(.wk-te-admin-booked-seat, .wk-te-seller-booked-seat) dt,
:is(.wk-te-admin-booked-seat, .wk-te-seller-booked-seat) dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

:is(.wk-te-admin-booked-seat, .wk-te-seller-booked-seat) dt {
  color: #66788f;
  font-weight: 800;
}

:is(.wk-te-admin-booked-seat, .wk-te-seller-booked-seat) dd {
  color: #10243d;
  font-weight: 700;
  overflow-wrap: anywhere;
}

:is(.wk-te-admin-booked-status, .wk-te-seller-booked-status) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

:is(.wk-te-admin-booked-status, .wk-te-seller-booked-status) span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #42566d;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

:is(.wk-te-admin-booked-status, .wk-te-seller-booked-status) span.is-success {
  background: #dff7e8;
  color: #0f766e;
}

/* =============================================
   Shared schedule board layout (admin + front)
   ============================================= */

.wk-te-schedule-filter-form {
  width: 100%;
}

:is(.wk-te-schedule-filters) {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: #fff;
}

:is(.wk-te-schedule-filters label) {
  display: grid;
  gap: 6px;
  margin: 0;
  color: #315176;
  font-size: 12px;
  font-weight: 700;
}

:is(.wk-te-schedule-filters select,
  .wk-te-schedule-filters input) {
  width: 100%;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #d7e1ec;
  border-radius: 5px;
  background: #fff;
  color: #0b2545;
  font-size: 12px;
  line-height: 1.4;
}

:is(.wk-te-schedule-list-toolbar) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

:is(.wk-te-schedule-list-toolbar label) {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #333;
  font-weight: 400;
}

:is(.wk-te-schedule-list-toolbar select,
  .wk-te-schedule-list-toolbar input) {
  height: 32px;
  border: 1px solid #d6d4d4;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

:is(.wk-te-schedule-list-toolbar select) {
  min-width: 110px;
}

:is(.wk-te-schedule-search-control) {
  position: relative;
  display: inline-flex;
}

:is(.wk-te-schedule-search-control input) {
  width: 100%;
  min-width: 190px;
  padding-right: 40px;
}

:is(.wk-te-board-search-btn) {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  padding: 0 10px;
  border: 1px solid #d7e1ec;
  border-left: 0;
  border-radius: 0 4px 4px 0;
  background: #fff;
  color: #315cf6;
  cursor: pointer;
}

:is(.wk-te-board-search-btn:hover) {
  background: #edf3ff;
}

:is(.wk-te-schedule-summary) {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

:is(.wk-te-schedule-date-card,
  .wk-te-schedule-stat) {
  min-height: 74px;
  border: 1px solid #dbe5ee;
  border-radius: 6px;
  background: #fff;
}

:is(.wk-te-schedule-date-card) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
}

:is(.wk-te-schedule-date-card strong) {
  color: #315cf6;
  font-size: 14px;
}

:is(.wk-te-schedule-date-card a,
  .wk-te-schedule-date-card > button:not(.wk-te-schedule-date-trigger)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #dbe5ee;
  border-radius: 5px;
  background: #fff;
  color: #17355f;
  text-decoration: none;
}

:is(.wk-te-schedule-date-card a:hover) {
  background: #edf3ff;
}

:is(.wk-te-schedule-date-card .is-disabled) {
  color: #a9b6c5;
  cursor: not-allowed;
}

:is(.wk-te-schedule-date-card .wk-te-schedule-date-trigger) {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  flex: 1 1 auto;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid #49a8a2;
  border-radius: 0;
  background: #fff;
  color: #0b2545;
  text-align: left;
  cursor: pointer;
}

:is(.wk-te-schedule-date-card .wk-te-schedule-date-trigger:hover strong) {
  color: #315cf6;
}

:is(.wk-te-schedule-date-card input[type="date"]) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:is(.wk-te-schedule-stat) {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 9px;
  align-items: center;
  padding: 9px 12px;
}

:is(.wk-te-schedule-stat i) {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #edf3ff;
  color: #315cf6;
}

:is(.wk-te-schedule-stat span,
  .wk-te-schedule-stat small) {
  color: #6b7f98;
  font-size: 12px;
}

:is(.wk-te-schedule-stat strong) {
  color: #0b2545;
  font-size: 20px;
  line-height: 1;
}

:is(.wk-te-schedule-board-grid) {
  display: grid;
  grid-template-columns: minmax(800px, 1fr) 300px;
  gap: 12px;
  align-items: start;
}

:is(.wk-te-schedule-table-panel,
  .wk-te-schedule-side section) {
  border: 1px solid #dbe5ee;
  border-radius: 6px;
  background: #fff;
  overflow: visible;
}

:is(.wk-te-schedule-table-panel.table-responsive) {
  overflow-x: auto;
  overflow-y: visible;
}

:is(.wk-te-schedule-vehicle-fallback) {
  display: grid;
  place-items: center;
  width: 42px;
  max-width: 42px;
  height: 34px;
  max-height: 34px;
  flex: 0 0 42px;
  border: 1px solid #dbe5ee;
  border-radius: 5px;
  background: #f7fafc;
  color: #5f7188;
}

:is(.wk-te-table-note) {
  display: block;
  margin-top: 4px;
  color: #6b7f98;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

:is(.wk-te-route-icon) {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 18px;
  margin: 0 5px;
  vertical-align: -3px;
}

:is(.wk-te-route-icon--go) {
  color: #10243d;
  line-height: 18px;
}

:is(.wk-te-route-icon--round) {
  width: 26px;
  height: 24px;
}

:is(.wk-te-route-icon--round i) {
  position: absolute;
  left: 0;
  color: #17355f;
  font-size: 18px;
  line-height: 1;
}

:is(.wk-te-route-icon--round i:first-child) {
  top: 0;
}

:is(.wk-te-route-icon--round i:last-child) {
  top: 10px;
}

:is(.wk-te-schedule-side) {
  display: grid;
  gap: 10px;
}

:is(.wk-te-schedule-side section) {
  padding: 12px;
}

:is(.wk-te-side-heading) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

:is(.wk-te-side-heading h3) {
  margin: 0 !important;
  padding: 0 !important;
  color: #0b2545;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: none !important;
}

:is(.wk-te-schedule-board-footer) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 12px 0 0;
  border-top: 1px solid #edf0f4;
  color: #666;
  font-size: 13px;
}

:is(.wk-te-schedule-pagination) {
  display: inline-flex;
}

:is(.wk-te-schedule-pagination a,
  .wk-te-schedule-pagination span) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid #d6d4d4;
  border-left: 0;
  background: #fff;
  color: #555;
  text-decoration: none;
}

:is(.wk-te-schedule-pagination a:first-child,
  .wk-te-schedule-pagination span:first-child) {
  border-left: 1px solid #d6d4d4;
}

:is(.wk-te-schedule-pagination .is-active) {
  color: #fff;
  border-color: #49a8a2;
  background: #49a8a2;
}

:is(.wk-te-schedule-pagination .is-disabled) {
  color: #aaa;
}

:is(.wk-te-company-actions) {
  display: inline-flex;
  align-items: stretch;
  justify-content: flex-end;
  min-width: 84px;
  white-space: nowrap;
}

:is(.wk-te-company-actions .wk-te-company-action-main,
  .wk-te-company-actions .btn) {
  min-height: 28px;
  border-color: #d6d4d4;
  background: #fff;
  color: #1f344f;
  box-shadow: none;
}

:is(.wk-te-company-actions .wk-te-company-action-main) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid #d6dce4;
  border-radius: 4px 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

:is(.wk-te-company-actions .wk-te-company-action-toggle) {
  width: 28px;
  padding: 4px 0;
  border: 1px solid #d6dce4;
  border-left: 0;
  border-radius: 0 4px 4px 0;
  background: #fff;
  color: #1f344f;
}

:is(.wk-te-company-actions .icon-search) {
  margin-right: 3px;
}

:is(.wk-te-company-actions.open .dropdown-menu) {
  position: fixed;
  z-index: 10000;
}

/* Admin-only: date range picker (calendar) */
.wk-te-admin-date-range {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 350px;
  min-width: 260px;
  flex: 1 1 auto;
}

.wk-te-admin-calendar {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 50;
  width: 286px;
  transform: translateX(-50%);
  padding: 12px 10px 10px;
  border: 1px solid #d6d4d4;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 36, 61, 0.18);
}

.wk-te-admin-calendar[hidden] {
  display: none;
}

.wk-te-admin-calendar-head {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  margin-bottom: 14px;
}

.wk-te-admin-calendar-head strong {
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
}

.wk-te-admin-calendar-head button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f6f7f8;
  color: #0b2545;
}

.wk-te-admin-calendar-head button:disabled {
  color: #bec7d1;
  cursor: not-allowed;
}

.wk-te-admin-calendar-weekdays,
.wk-te-admin-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.wk-te-admin-calendar-weekdays {
  margin-bottom: 8px;
}

.wk-te-admin-calendar-weekdays span {
  color: #6f7178;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.wk-te-admin-calendar-days {
  background: #e5e5e5;
}

.wk-te-admin-calendar-days span,
.wk-te-admin-calendar-days button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-size: 14px;
  font-weight: 400;
}

.wk-te-admin-calendar-days .is-empty {
  background: #fff;
}

.wk-te-admin-calendar-days button:hover:not(:disabled) {
  outline: 2px solid #49a8a2;
  outline-offset: -2px;
}

.wk-te-admin-calendar-days button.is-disabled {
  color: #c2c2c2;
  background: #fff;
  cursor: not-allowed;
}

.wk-te-admin-calendar-days button.is-in-range {
  background: #e5e5e5;
}

.wk-te-admin-calendar-days button.is-selected,
.wk-te-admin-calendar-days button.is-range-start,
.wk-te-admin-calendar-days button.is-range-end {
  background: #49a8a2;
  color: #fff;
}
