/* Seller trip form, schedules, date picker, and map picker */

.wk-te-trip-schedules-shell {
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wk-te-trip-schedules-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.wk-te-trip-schedule-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.wk-te-trip-schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 24px;
  flex: 1;
}

.wk-te-trip-schedule-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.wk-te-trip-schedule-grid label span {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.wk-te-trip-schedule-grid input,
.wk-te-trip-schedule-grid select {
  width: 100%;
  height: 32px;
  padding: 4px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  font-size: 13px;
}

.wk-te-trip-schedule-grid select[name*="vehicle_type"] {
  max-width: 420px;
}

.wk-te-trip-time-pair label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wk-te-trip-time-pair label span {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.wk-te-trip-time-pair label span.required:before {
  content: "* ";
  color: #ef4444;
  font-weight: 700;
}

.wk-te-trip-time-pair input[type="time"] {
  width: 100%;
  height: 32px;
  padding: 4px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  transition: border-color 0.2s;
}

.wk-te-trip-time-pair input[type="time"]:focus {
  border-color: #3b82f6;
  outline: none;
}

.wk-te-trip-remove-time {
  width: 32px;
  height: 32px;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fee2e2;
  border-radius: 4px;
  background: #fff;
  color: #991b1b;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.wk-te-trip-remove-time:hover {
  background: #fef2f2;
  border-color: #ef4444;
  color: #b91c1c;
}

.wk-te-trip-schedules-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}

.wk-te-trip-schedules-footer .wk-te-admin-add-time,
.wk-te-trip-schedules-footer .wk-te-editor-subtle-btn {
  align-self: flex-start;
  height: 30px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 500;
  line-height: 28px;
  cursor: pointer;
}

.wk-te-trip-schedules-footer .wk-te-admin-add-time:hover,
.wk-te-trip-schedules-footer .wk-te-editor-subtle-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.wk-te-trip-schedules-calc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 0;
  width: 100%;
}

.wk-te-trip-editor-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #374151;
  font-size: 12.5px;
  font-weight: 400;
  cursor: pointer;
  width: auto;
}

.wk-te-trip-editor-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  cursor: pointer;
}

.wk-te-trip-duration-note {
  margin: 0;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 400;
  white-space: nowrap;
}

.wk-te-trip-duration-note b {
  color: #0f172a;
  font-weight: 600;
}

.wk-te-trip-auto-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  margin-top: 8px;
}

.wk-te-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}

.wk-te-checkbox-label input {
  width: 16px;
  height: 16px;
}

.wk-te-est-duration-label {
  font-size: 13px;
  color: #64748b;
}

.wk-te-est-duration-label strong {
  color: #0f172a;
}

.wk-te-date-range {
  display: flex;
  gap: 18px;
  width: 100%;
}

.wk-te-date-range > label {
  flex: 1 1 0;
  min-width: 0;
}

.wk-te-date-range.has-date-error [data-schedule-range-end] {
  border-color: #d9534f;
  box-shadow: 0 0 0 1px rgba(217, 83, 79, 0.15);
}

.wk-te-seller-form input.wk-te-datepicker-input {
  cursor: text;
  background: #fff;
}

.wk-te-datepicker {
  position: absolute;
  z-index: 10060;
  width: 356px;
  padding: 18px 20px 16px;
  border: 1px solid #d7e1ec;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 45, 61, 0.2);
  color: #001f3f;
  font-family: inherit;
}

.wk-te-datepicker-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-bottom: 16px;
}

.wk-te-datepicker-head strong {
  color: #001f3f;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.wk-te-datepicker-head button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f6;
  color: #001f3f;
  font-size: 34px;
  font-weight: 400;
  line-height: 26px;
}

.wk-te-datepicker-head button:hover,
.wk-te-datepicker-head button:focus {
  background: #e6ebef;
  outline: 0;
}

.wk-te-datepicker-weekdays,
.wk-te-datepicker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px 12px;
}

.wk-te-datepicker-weekdays {
  margin-bottom: 14px;
}

.wk-te-datepicker-weekdays span {
  color: #66727d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 30px;
  text-align: center;
}

.wk-te-datepicker-days button {
  min-width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #001f3f;
  font-size: 18px;
  font-weight: 500;
  line-height: 32px;
  text-align: center;
}

.wk-te-datepicker-days button.is-muted {
  color: #c4cbd1;
}

.wk-te-datepicker-days button.is-disabled,
.wk-te-datepicker-days button:disabled {
  color: #c4cbd1;
  cursor: not-allowed;
  opacity: 0.55;
}

.wk-te-datepicker-days button:hover,
.wk-te-datepicker-days button:focus {
  background: #edf7f6;
  color: #001f3f;
  outline: 0;
}

.wk-te-datepicker-days button.is-selected {
  background: #2ea69c;
  color: #fff;
}

.wk-te-route-city-field {
  position: relative;
  z-index: 1;
}

.wk-te-route-city-field.is-open {
  z-index: 10030;
}

.wk-te-seller-form .wk-te-route-city-input {
  padding-right: 32px;
}

.wk-te-route-city-field:after {
  content: "\f0d7";
  position: absolute;
  right: 11px;
  bottom: 14px;
  color: #607385;
  font-family: FontAwesome;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

.wk-te-route-city-select-field:after {
  content: none !important;
}

.wk-te-route-city-field.is-open .wk-te-route-city-input {
  border-color: #11a37f;
  background: #fffde8;
  box-shadow: 0 0 0 1px rgba(17, 163, 127, 0.14);
}

.wk-te-route-city-menu {
  position: absolute;
  z-index: 10031;
  top: calc(100% + 2px);
  left: 0;
  width: 100%;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid #8b949e;
  border-radius: 0 0 4px 4px;
  background: #f4f9fc;
  box-shadow: 0 8px 18px rgba(31, 45, 61, 0.16);
  scrollbar-color: #8a8a8a #f4f9fc;
  scrollbar-width: thin;
}

.wk-te-route-city-menu::-webkit-scrollbar {
  width: 18px;
}

.wk-te-route-city-menu::-webkit-scrollbar-track {
  background: #f4f9fc;
}

.wk-te-route-city-menu::-webkit-scrollbar-thumb {
  border: 3px solid #f4f9fc;
  border-radius: 10px;
  background: #8a8a8a;
}

.wk-te-route-city-menu button {
  display: block;
  width: 100%;
  min-height: 45px;
  padding: 11px 15px;
  border: 0;
  background: #f4f9fc;
  color: #3d4d5d;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
}

.wk-te-route-city-menu button:hover,
.wk-te-route-city-menu button:focus,
.wk-te-route-city-menu button.is-active {
  background: #1f6fd1;
  color: #ffffff;
  outline: 0;
}

.wk-te-place-picker {
  position: relative;
  cursor: pointer;
}

.wk-te-place-picker.is-active > span:first-child:after {
  content: "Active map point";
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #334dff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.wk-te-seller-form label .wk-te-place-control {
  position: relative;
  display: flex;
  width: 100%;
  margin-top: 6px;
}

.wk-te-seller-form label .wk-te-place-control .wk-te-place-input {
  flex: 1 1 auto;
  margin-top: 0;
  padding-right: 46px;
  border-radius: 3px;
}

.wk-te-seller-form label .wk-te-place-control .wk-te-place-search-btn {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 42px;
  height: calc(100% - 2px);
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid #d6d4d4;
  border-radius: 0 3px 3px 0;
  background: #fff;
  color: #334155;
}

.wk-te-place-picker.is-active .wk-te-place-input {
  border-color: #49a8a2;
  box-shadow: 0 0 0 1px rgba(73, 168, 162, 0.12);
}

.wk-te-trip-map-title {
  display: block;
  margin-bottom: 6px;
  color: #0b2545;
  font-size: 13px;
  font-weight: 700;
}

.wk-te-map-location {
  position: relative;
  width: 100%;
  height: 1154px;
  border: 1px solid #cfe3f5;
  border-radius: 4px;
  background: #eef6fb;
  overflow: hidden;
}

.wk-te-map-location.is-expanded {
  height: 1154px;
}

.wk-te-shared-place-map {
  position: absolute;
  inset: 0;
  background: #eef6fb;
}

.wk-te-map-search {
  position: absolute;
  z-index: 500;
  top: 10px;
  left: 50%;
  width: min(380px, calc(100% - 120px));
  display: flex;
  transform: translateX(-50%);
  box-shadow: 0 1px 4px rgba(31, 45, 61, 0.2);
}

.wk-te-map-search .form-control {
  height: 38px;
  border-radius: 3px 0 0 3px;
  background: #fff;
}

.wk-te-map-search .btn {
  width: 44px;
  height: 38px;
  border-radius: 0 3px 3px 0;
  background: #fff;
}

.wk-te-map-expand {
  position: absolute;
  z-index: 500;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 1px solid #d7dde5;
  border-radius: 3px;
  background: #fff;
  color: #4b5563;
  box-shadow: 0 1px 4px rgba(31, 45, 61, 0.2);
}

.wk-te-map-pin {
  background: transparent;
  border: 0;
}

.wk-te-map-pin span {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #e3342f;
  box-shadow: 0 2px 6px rgba(31, 45, 61, 0.35);
  transform: rotate(-45deg);
}

.wk-te-map-pin span:after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.wk-te-google-map-label,
.wk-te-map-label {
  padding: 4px 8px;
  border: 1px solid rgba(120, 18, 18, 0.18);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(31, 45, 61, 0.22);
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.wk-te-google-map-label {
  position: absolute;
  transform: translate(-50%, -45px);
  pointer-events: none;
}

.wk-te-map-label:before {
  display: none;
}

.wk-te-place-map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  color: #52677f;
  text-align: center;
}

.wk-te-place-note {
  margin: 10px 0 0;
  padding: 0;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.wk-te-trip-add-time {
  width: auto;
  min-width: 180px;
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid #2fa8a0;
  border-radius: 3px;
  background: #2fa8a0;
  color: #fff;
  font-weight: 700;
}

.wk-te-trip-add-time:hover,
.wk-te-trip-add-time:focus {
  border-color: #248c85;
  background: #248c85;
  color: #fff;
}

.wk-te-schedule-board-heading {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}

.wk-te-schedule-board-heading h2 {
  margin: 0 0 4px;
  color: #0b2545;
  font-size: 24px;
  font-weight: 800;
}

.wk-te-schedule-board-heading p {
  margin: 0;
  color: #6b7f98;
  font-size: 13px;
}

.wk-te-schedule-board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.wk-te-schedule-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #bcd0ff;
  border-radius: 6px;
  background: #fff;
  color: #315cf6;
  font-weight: 700;
}

.wk-te-schedule-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) minmax(210px, 1.5fr);
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 35, 60, 0.06);
}

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

.wk-te-schedule-filters select,
.wk-te-schedule-filters input {
  min-height: 38px;
  border: 1px solid #d7e1ec;
  border-radius: 5px;
  color: #0b2545;
}

.wk-te-schedule-search-control {
  position: relative;
  display: block;
}

.wk-te-schedule-search-control input {
  width: 100%;
  padding-right: 42px;
}

.wk-te-board-search-btn {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 38px;
  height: 36px;
  border: 0;
  border-left: 1px solid #d7e1ec;
  border-radius: 0 5px 5px 0;
  background: #fff;
  color: #315cf6;
}

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

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

.wk-te-schedule-date-card,
.wk-te-schedule-stat {
  min-height: 76px;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 35, 60, 0.06);
}

.wk-te-schedule-date-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.wk-te-schedule-date-card strong {
  color: #315cf6;
  font-size: 17px;
}

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

.wk-te-schedule-date-card .wk-te-schedule-date-trigger {
  border: 0;
  background: transparent;
  padding: 0 8px;
}

.wk-te-schedule-date-card .wk-te-schedule-date-trigger:hover strong {
  text-decoration: underline;
}

.wk-te-schedule-date-card input[type="date"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

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

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

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

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

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

.wk-te-schedule-table-panel,
.wk-te-schedule-side section {
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 35, 60, 0.06);
}

.wk-te-schedule-table-panel {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.wk-te-schedule-table {
  width: 100%;
  min-width: 1120px;
  margin-bottom: 0;
  background: #fff;
}

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

.wk-te-schedule-table-panel .wk-te-company-actions.open .dropdown-menu {
  position: fixed;
  z-index: 10000;
}

.wk-te-schedule-table > thead > tr > th,
.wk-te-schedule-table > tbody > tr > td {
  vertical-align: middle;
}

.wk-te-schedule-table > thead > tr > th {
  background: #f5f8fd;
  color: #315176;
  font-size: 11px;
}

.wk-te-schedule-table > tbody > tr > td,
.wk-te-schedule-table > tbody > tr:nth-child(odd) > td,
.wk-te-schedule-table > tbody > tr:nth-child(even) > td {
  background: #fff;
}

.wk-te-schedule-table > tbody > tr:hover > td {
  background: #f8fbff;
}

.wk-te-schedule-vehicle-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 140px;
}

.wk-te-schedule-vehicle-cell img,
.wk-te-vehicle-availability img,
.wk-te-schedule-vehicle-fallback,
.wk-te-vehicle-availability > span {
  width: 42px;
  height: 34px;
  border: 1px solid #dbe5ee;
  border-radius: 5px;
  object-fit: cover;
  background: #f7fafc;
}

.wk-te-schedule-vehicle-fallback,
.wk-te-vehicle-availability > span {
  display: grid;
  place-items: center;
  color: #5f7188;
}

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

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

.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;
}

.wk-te-direction-pill--return {
  background: #f2edff;
  color: #7c3aed;
}

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

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

.wk-te-seat-progress {
  min-width: 94px;
}

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

.wk-te-seat-progress span {
  display: block;
  height: 5px;
  margin: 4px 0;
  border-radius: 999px;
  background: #e7edf4;
  overflow: hidden;
}

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

.wk-te-schedule-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.wk-te-schedule-side section {
  padding: 14px;
}

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

.wk-te-side-heading h3 {
  margin: 0;
  color: #0b2545;
  font-size: 14px;
  font-weight: 800;
}

.wk-te-side-heading a {
  color: #315cf6;
  font-size: 11px;
  font-weight: 700;
}

.wk-te-upcoming-trip,
.wk-te-vehicle-availability {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid #edf2f7;
}

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

.wk-te-upcoming-trip > strong {
  padding: 4px 7px;
  border: 1px solid #bdd0ff;
  border-radius: 5px;
  color: #315cf6;
  font-size: 12px;
}

.wk-te-upcoming-trip b {
  display: block;
  color: #0b2545;
  font-size: 12px;
}

.wk-te-upcoming-trip span {
  color: #6b7f98;
  font-size: 11px;
}

.wk-te-side-empty {
  margin: 0;
  color: #6b7f98;
}

.wk-te-schedule-board-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 12px;
  color: #6b7f98;
}

.wk-te-schedule-pagination {
  margin: 0;
}

.wk-te-schedule-list-toolbar {
  margin: 14px 0 12px;
}

.wk-te-board-no-results {
  margin: 0;
  padding: 18px;
  color: #6b7f98;
  text-align: center;
}

.wk-te-company-view-panel {
  margin-bottom: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.wk-te-trip-editor-reference {
  display: block !important;
  grid-template-columns: none !important;
  padding: 0;
  border: 1px solid #e7e7e7;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.wk-te-company-create-panel.wk-te-trip-editor-reference.is-open {
  display: block !important;
}

.wk-te-trip-editor-reference .wk-te-trip-editor-title {
  display: block;
  width: 100%;
  padding: 12px 18px;
  background: #333;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  border-radius: 4px 4px 0 0;
}

.wk-te-trip-editor-reference .wk-te-trip-editor-body {
  display: block;
  width: 100%;
  padding: 16px 16px 0;
  border: 0;
  box-sizing: border-box;
}

.wk-te-trip-editor-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 20px;
  border-bottom: 1px solid #e5e7eb;
}

.wk-te-trip-editor-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.wk-te-trip-editor-tabs button i {
  font-size: 14px;
}

.wk-te-trip-editor-tabs button.is-active {
  background: #fff;
  color: #111827;
  border-color: #e5e7eb;
  border-bottom-color: #fff;
  margin-bottom: -1px;
}

.wk-te-trip-editor-tabs button:hover:not(.is-active) {
  color: #111827;
  background: #f9fafb;
}

.wk-te-trip-editor-reference .wk-te-trip-tab-panel {
  display: none;
}

.wk-te-trip-editor-reference .wk-te-trip-tab-panel.is-active {
  display: block;
}

.wk-te-trip-slot-status {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #dbe5ee;
  border-radius: 4px;
  background: #fff;
  color: #6b7c8c;
  font-size: 12px;
  line-height: 16px;
}

.wk-te-trip-slot-status.is-available {
  border-color: #bde5d9;
  background: #f3fbf8;
  color: #17745f;
}

.wk-te-trip-slot-status.is-unavailable,
.wk-te-trip-slot-status.is-duplicate {
  border-color: #f1c4c4;
  background: #fff6f6;
  color: #9d2f2f;
}

.wk-te-trip-editor-reference .wk-te-trip-price-subtabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin: -6px 0 28px;
}

.wk-te-trip-editor-reference .wk-te-trip-price-subtabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  padding: 8px 14px;
  border: 1px solid transparent;
  background: #fff;
  color: #555;
  font-size: 11px;
  font-weight: 500;
}

.wk-te-trip-editor-reference .wk-te-trip-price-subtabs button.is-active {
  border-color: #e7e7e7;
  color: #333;
}

.wk-te-trip-editor-reference .wk-te-trip-price-panel {
  display: none;
}

.wk-te-trip-editor-reference .wk-te-trip-price-panel.is-active {
  display: block;
}

.wk-te-trip-editor-reference .wk-te-trip-editor-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wk-te-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  width: 100%;
  margin-bottom: 24px;
}

.wk-te-form-row:last-child {
  margin-bottom: 0;
}

.wk-te-form-col {
  flex: 1 1 0;
  min-width: 0;
}

.wk-te-trip-editor-reference .wk-te-trip-editor-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  width: 100%;
}

.wk-te-trip-editor-reference .wk-te-trip-editor-grid .wk-te-trip-editor-check {
  display: flex;
  flex-direction: row;
  width: auto;
}

.wk-te-trip-editor-reference .wk-te-trip-editor-grid label span {
  font-size: 12.25px;
  font-weight: 600;
  color: #374151;
}

.wk-te-trip-editor-reference .wk-te-trip-editor-grid label span.required:after {
  content: none;
}

.wk-te-date-range label {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

#wk-te-trip-vehicle-edit {
  max-width: 420px;
}

.wk-te-trip-editor-grid select[name="return_schedule_vehicle_type[]"] {
  max-width: 420px;
}

.wk-te-trip-editor-reference .wk-te-trip-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 24px;
}

.wk-te-trip-editor-reference .wk-te-trip-price-field small {
  display: block;
  margin-top: 7px;
  color: #999;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 14px;
}

.wk-te-trip-editor-reference .wk-te-trip-money-control {
  display: flex;
  width: 100%;
}

.wk-te-trip-editor-reference .wk-te-trip-money-control input {
  flex: 1 1 auto;
  min-width: 0;
}

.wk-te-trip-editor-reference .wk-te-trip-money-control em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  min-height: 33.5px;
  background: #49a8a2;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.wk-te-trip-editor-reference .wk-te-trip-tax-field {
  max-width: 50%;
}

.wk-te-trip-editor-reference .wk-te-trip-advance-payment {
  margin-top: 22px;
  padding: 0 14px 14px;
  border: 1px solid #ddd;
}

.wk-te-trip-editor-reference .wk-te-trip-advance-payment h3 {
  margin: -12px 0 18px;
  padding: 0 8px;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 600;
}

.wk-te-trip-editor-reference .wk-te-trip-advance-row {
  display: grid;
  grid-template-columns: 270px minmax(0, 380px);
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 12px;
}

.wk-te-trip-editor-reference .wk-te-trip-advance-row > label {
  text-align: right;
}

.wk-te-trip-editor-reference .wk-te-trip-advance-row small {
  grid-column: 2 / -1;
  color: #888;
  font-size: 11px;
  font-style: italic;
}

.wk-te-trip-editor-reference .wk-te-trip-switch {
  display: inline-grid;
  grid-template-columns: 80px 80px;
  width: 160px;
  min-height: 30px;
  border-radius: 3px;
  overflow: hidden;
}

.wk-te-trip-editor-reference .wk-te-trip-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wk-te-trip-editor-reference .wk-te-trip-switch label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin: 0;
  border: 1px solid #cfcfcf;
  background: #f7f7f7;
  color: #aaa;
  font-size: 12px;
  font-weight: 600;
}

.wk-te-trip-editor-reference .wk-te-trip-switch input:checked + label {
  border-color: #43a7c5;
  background: #43a7c5;
  color: #fff;
}

.wk-te-trip-editor-reference .wk-te-trip-radio-list {
  display: grid;
  gap: 6px;
}

.wk-te-trip-editor-reference .wk-te-trip-radio-list label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.wk-te-trip-editor-reference .wk-te-trip-radio-list input {
  width: auto;
  height: auto;
  min-height: 0;
}

.wk-te-trip-editor-reference .wk-te-trip-specific-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}

.wk-te-trip-editor-reference .wk-te-trip-secondary-btn,
.wk-te-trip-editor-reference .wk-te-trip-danger-btn {
  min-height: 32px;
  padding: 7px 12px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.wk-te-trip-editor-reference .wk-te-trip-secondary-btn {
  background: #2f80c9;
}

.wk-te-trip-editor-reference .wk-te-trip-danger-btn {
  background: #c9302c;
}

.wk-te-trip-editor-reference .wk-te-trip-specific-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #e3e3e3;
  background: #fafafa;
}

.wk-te-trip-editor-reference .wk-te-trip-specific-form[hidden],
.wk-te-trip-editor-reference [hidden] {
  display: none !important;
}

.wk-te-trip-editor-reference .wk-te-trip-price-table {
  width: 100%;
  border-collapse: collapse;
}

.wk-te-trip-editor-reference .wk-te-trip-price-table th,
.wk-te-trip-editor-reference .wk-te-trip-price-table td {
  padding: 9px 10px;
  border: 1px solid #e5e5e5;
  color: #333;
  font-size: 12px;
  vertical-align: middle;
}

.wk-te-trip-editor-reference .wk-te-trip-price-table th {
  background: #f7f7f7;
  font-weight: 700;
}

.wk-te-trip-editor-reference .wk-te-trip-price-help {
  margin: 0 0 12px;
  color: #6b7c8c;
  font-size: 12px;
}

.wk-te-trip-editor-reference .wk-te-trip-rule-actions {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 12px;
}

.wk-te-trip-editor-reference .wk-te-trip-empty-rules {
  padding: 13px 14px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  color: #777;
  font-size: 12px;
}

.wk-te-trip-editor-reference .wk-te-trip-rule-value {
  display: flex;
  gap: 8px;
}

.wk-te-trip-editor-reference .wk-te-trip-rule-value input {
  flex: 1 1 auto;
}

.wk-te-trip-editor-reference .wk-te-trip-rule-remove {
  flex: 0 0 34px;
  width: 34px;
  height: 33.5px;
  min-height: 33.5px;
  padding: 0;
  border: 1px solid #d9534f;
  background: #fff;
  color: #d9534f;
  font-size: 18px;
  line-height: 1;
}

.wk-te-trip-editor-reference .wk-te-trip-rule-remove:hover {
  background: #d9534f;
  color: #fff;
}

.wk-te-trip-editor-reference label {
  display: block;
  margin: 0;
  color: #333;
  font-size: 12.25px;
  font-weight: 500;
}

.wk-te-trip-editor-reference label > span:first-child,
.wk-te-trip-editor-reference .wk-te-trip-recurrence > span,
.wk-te-trip-editor-reference .wk-te-trip-run-on > span {
  display: block;
  margin-bottom: 6px;
}

.wk-te-trip-editor-reference .required:before {
  content: "* ";
  color: #e22;
}

.wk-te-trip-editor-reference input[type="text"],
.wk-te-trip-editor-reference input[type="number"],
.wk-te-trip-editor-reference input[type="time"],
.wk-te-trip-editor-reference select {
  width: 100%;
  height: 33.5px;
  min-height: 33.5px;
  margin: 0;
  padding: 7px 10.5px;
  border: 1px solid #ccc;
  border-radius: 0;
  background-color: #fff;
  color: #555;
  font-size: 12.25px;
  box-shadow: none;
}

.wk-te-trip-editor-reference .wk-te-trip-form-section {
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}

.wk-te-trip-editor-reference .wk-te-trip-form-section h3 {
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  margin: 0;
  padding: 0;
}

.wk-te-trip-editor-reference .wk-te-trip-editor-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  width: auto;
}

.wk-te-trip-editor-reference .wk-te-trip-editor-check input {
  margin: 0;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.wk-te-trip-editor-reference .wk-te-trip-editor-check span {
  margin: 0;
  color: #374151;
  font-size: 12.5px;
  font-weight: 400;
}

.wk-te-trip-editor-reference .wk-te-trip-duration-note {
  margin: 0;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 400;
  white-space: nowrap;
  flex: 0 0 auto;
}

.wk-te-trip-editor-reference .wk-te-trip-duration-note b {
  color: #0f172a;
  font-weight: 600;
}

.wk-te-trip-editor-reference input.wk-te-auto-arrival-readonly {
  background: #f5f7fa;
  color: #526171;
  cursor: not-allowed;
  pointer-events: none;
}

.wk-te-trip-editor-reference .wk-te-trip-recurrence,
.wk-te-trip-editor-reference .wk-te-trip-run-on {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.wk-te-trip-editor-reference .wk-te-trip-recurrence > span,
.wk-te-trip-editor-reference .wk-te-trip-run-on > span {
  margin-bottom: 8px;
}

.wk-te-trip-editor-reference .wk-te-trip-pill {
  min-width: 40px;
  height: 32px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid #13364f;
  border-radius: 100px;
  background: #fff;
  color: #13364f;
  font-size: 12px;
  line-height: 18px;
}

.wk-te-trip-editor-reference .wk-te-trip-pill.is-active {
  border-color: #1ca89e;
  background: rgba(48, 161, 153, 0.1);
  color: #1ca89e;
}

.wk-te-trip-editor-reference .wk-te-trip-pill:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wk-te-trip-editor-reference .wk-te-trip-wide {
  width: 100%;
}

.wk-te-trip-editor-reference .wk-te-map-location {
  height: 260px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  overflow: hidden;
}

.wk-te-form-row--schedule {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.wk-te-form-row--places {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
}

.wk-te-form-row--places .wk-te-form-col {
  flex: 1 1 0;
  min-width: 0;
}

.wk-te-trip-editor-reference .wk-te-map-search {
  top: 8px;
  width: min(290px, calc(100% - 100px));
  display: none;
}

.wk-te-trip-editor-reference .wk-te-map-search .form-control,
.wk-te-trip-editor-reference .wk-te-map-search .btn {
  height: 32px;
  min-height: 32px;
}

.wk-te-trip-editor-reference .wk-te-map-expand {
  display: none;
}

.wk-te-trip-editor-reference .wk-te-place-picker {
  display: block;
  width: 100%;
}

.wk-te-trip-editor-reference .wk-te-place-picker .wk-te-place-control {
  display: flex;
  width: 100%;
  margin-top: 6px;
}

.wk-te-trip-editor-reference
  .wk-te-place-picker
  .wk-te-place-control
  .wk-te-place-input {
  height: 36px;
  min-height: 36px;
  padding: 7px 40px 7px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  box-shadow: none;
  transition: border-color 0.2s;
}

.wk-te-trip-editor-reference
  .wk-te-place-picker
  .wk-te-place-control
  .wk-te-place-input:focus {
  border-color: #1ca89e;
  outline: 0;
}

.wk-te-trip-editor-reference
  .wk-te-place-picker
  .wk-te-place-control
  .wk-te-place-search-btn {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 36px;
  height: 34px;
  min-height: 34px;
  border: 0;
  border-left: 1px solid #d1d5db;
  border-radius: 0 4px 4px 0;
  background: #fff;
  color: #6b7280;
  font-size: 14px;
}

.wk-te-trip-editor-reference .wk-te-place-picker.is-active .wk-te-place-input {
  border-color: #1ca89e;
  box-shadow: none;
}

.wk-te-trip-editor-reference .wk-te-trip-hidden-field {
  display: none !important;
}

.wk-te-trip-editor-reference .wk-te-trip-switch {
  position: relative;
  display: inline-grid !important;
  grid-template-columns: 80px 80px;
  width: 160px;
  height: 30px;
  min-height: 30px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  vertical-align: middle;
}

.wk-te-trip-editor-reference .wk-te-trip-switch input[type="radio"] {
  display: none !important;
}

.wk-te-trip-editor-reference .wk-te-trip-switch label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 30px;
  min-height: 30px;
  margin: 0 !important;
  padding: 0;
  border: 1px solid #d5d5d5;
  background: linear-gradient(#f8f8f8, #eeeeee);
  color: #aaa;
  font-size: 12px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
}

.wk-te-trip-editor-reference
  .wk-te-trip-switch
  input[type="radio"]:checked
  + label,
.wk-te-trip-editor-reference .wk-te-trip-switch label.is-checked {
  border-color: #43a7c5;
  background: #43a7c5;
  color: #fff;
}

.wk-te-trip-editor-reference .wk-te-trip-advance-row {
  grid-template-columns: 390px minmax(0, 380px);
  gap: 8px 12px;
  margin-bottom: 16px;
}

.wk-te-trip-editor-reference .wk-te-trip-advance-row > label {
  align-self: center;
  margin-bottom: 0 !important;
  text-align: right;
}

.wk-te-trip-editor-reference .wk-te-trip-advance-row > label:before {
  content: "* ";
  color: #e22;
}

.wk-te-trip-editor-reference .wk-te-trip-radio-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.wk-te-trip-editor-reference .wk-te-trip-radio-list label {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin: 0 !important;
  line-height: 16px;
}

.wk-te-trip-editor-reference .wk-te-trip-radio-list input[type="radio"] {
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
}

.wk-te-trip-editor-reference .wk-te-trip-advance-row .wk-te-trip-money-control {
  max-width: 380px;
}

.wk-te-trip-editor-reference .wk-te-trip-advance-percent em {
  border: 1px solid #c8d6df;
  border-left: 0;
  background: #f5f8fa;
  color: #333;
  font-weight: 400;
}

.wk-te-trip-editor-reference .wk-te-trip-return-section {
  margin: 16px 18px 0;
}

.wk-te-trip-editor-reference .wk-te-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 0;
  padding: 16px;
  border-top: 0;
}

.wk-te-trip-editor-reference .wk-te-trip-save-actions {
  display: inline-flex;
  gap: 6px;
}

.wk-te-trip-editor-reference .wk-te-form-actions .wk-te-btn {
  min-height: 32px;
  min-width: 52px;
  padding: 7px 14px;
  border: 0;
  border-radius: 0;
  background: #5cb85c;
  color: #fff;
  font-size: 12.25px;
  font-weight: 500;
}

.wk-te-trip-editor-reference .wk-te-profile-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 66px;
  padding: 7px 14px;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  color: #333;
  font-size: 12.25px;
  font-weight: 500;
}

@media (max-width: 767px) {
  .wk-te-form-row {
    flex-direction: column;
    gap: 14px;
  }

  .wk-te-trip-schedule-head {
    display: none;
  }

  .wk-te-trip-schedule-row,
  .wk-te-trip-schedules[data-wk-te-schedule-group="outbound"]
    .wk-te-trip-schedule-row {
    flex-direction: column;
    align-items: stretch;
  }

  .wk-te-trip-remove-time {
    align-self: flex-end;
  }

  .wk-te-trip-editor-reference .wk-te-trip-duration-note {
    text-align: left;
  }

  .wk-te-trip-editor-reference .wk-te-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .wk-te-trip-editor-reference .wk-te-trip-save-actions {
    justify-content: flex-end;
  }
}
