/* Company pages and vehicle type editor */

.wk-te-company-view-panel h3 {
  margin: 0 0 12px;
  color: #10243d;
  font-size: 16px;
}

.wk-te-company-view-panel dl {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}

.wk-te-company-view-panel dt {
  color: #253a57;
  font-weight: 700;
}

.wk-te-company-view-panel dd {
  margin: 0;
  color: #4f6382;
}

.wk-te-company-page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.wk-te-company-page-actions .wk-te-btn,
.wk-te-company-page-actions .wk-te-profile-cancel {
  min-width: 156px;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
}

.wk-te-company-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  white-space: nowrap;
}

.wk-te-company-action-main,
.wk-te-company-action-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 9px;
  color: #333;
  border: 1px solid #d6d4d4;
  border-radius: 3px;
  background: #fff;
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
}

.wk-te-company-action-main {
  border-radius: 3px 0 0 3px;
}

.wk-te-company-action-toggle {
  width: 30px;
  padding-right: 0;
  padding-left: 0;
  border-left: 0;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
}

.wk-te-company-action-main:hover,
.wk-te-company-action-toggle:hover {
  color: #111;
  border-color: #bfc8d2;
  background: #f8fafc;
  text-decoration: none;
}

.wk-te-company-action-menu {
  min-width: 145px;
  padding: 5px 0;
  border: 1px solid #d6d4d4;
  border-radius: 3px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.wk-te-company-action-menu a,
.wk-te-company-action-menu button {
  display: block;
  width: 100%;
  padding: 8px 14px;
  color: #333;
  border: 0;
  background: transparent;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
}

.wk-te-company-action-menu a:hover,
.wk-te-company-action-menu button:hover {
  color: #262626;
  background: #f5f5f5;
  text-decoration: none;
}

.wk-te-company-action-menu form {
  margin: 0;
}

.wk-te-company-action-menu button {
  cursor: pointer;
}

.wk-te-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wk-te-confirm-modal.is-open {
  display: flex;
}

.wk-te-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.54);
}

.wk-te-confirm-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 24px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.wk-te-confirm-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  color: #777;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.wk-te-confirm-modal__dialog h3 {
  margin: 0 0 10px;
  color: #10243d;
  font-size: 20px;
  font-weight: 700;
}

.wk-te-confirm-modal__dialog p {
  margin: 0 0 8px;
  color: #4f6382;
}

.wk-te-confirm-modal__dialog strong {
  display: block;
  min-height: 20px;
  color: #10243d;
}

.wk-te-confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.wk-te-confirm-modal__cancel,
.wk-te-confirm-modal__delete {
  min-width: 92px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #d6d4d4;
  border-radius: 3px;
  font-weight: 700;
}

.wk-te-confirm-modal__cancel {
  color: #333;
  background: #fff;
}

.wk-te-confirm-modal__delete {
  background: #d9534f;
  color: #fff;
  border-color: #d43f3a;
}

.wk-te-amenity-group {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.wk-te-amenity-group:last-child {
  border-bottom: 0;
}

.wk-te-amenity-group-title {
  margin: 0 0 10px;
  color: #10243d;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wk-te-amenity-help {
  margin-bottom: 15px;
  color: #64748b;
  font-size: 13px;
}

.wk-te-amenity-table-wrapper {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.wk-te-amenity-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.wk-te-amenity-table th {
  background: #f8fafc;
  padding: 8px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}

.wk-te-amenity-table th:last-child {
  border-right: 0;
}

.wk-te-amenity-table td {
  padding: 6px 12px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  font-size: 12px;
  color: #1e293b;
  vertical-align: middle;
}

.wk-te-amenity-table td:last-child {
  border-right: 0;
}

.wk-te-amenity-table .wk-te-col-selected {
  width: 50px;
  text-align: center;
}
.wk-te-amenity-table .wk-te-col-name {
  font-weight: 700;
  color: #334155;
}
.wk-te-amenity-table .wk-te-col-icon {
  width: 60px;
  text-align: center;
  font-size: 14px;
}

.wk-te-amenity-table .wk-te-checkbox-custom {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #10243d;
}

.wk-te-amenity-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid #d6d4d4;
  border-radius: 3px;
  background: #fff;
  color: #333;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.wk-te-amenity-edit-btn:hover {
  background: #f8fafc;
  border-color: #bfc8d2;
  color: #111;
  text-decoration: none;
}

.wk-te-amenity-edit-btn i {
  font-size: 12px;
}

.wk-te-amenity-footer-help {
  margin-top: 15px;
  color: #64748b;
  font-size: 12px;
}

.wk-te-vehicle-notice {
  padding: 15px;
  border-radius: 4px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
  font-style: italic;
}

.wk-te-confirm-modal__delete:hover {
  border-color: #cf3e3e;
  background: #cf3e3e;
}

.wk-te-vehicle-editor-shell {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.wk-te-vehicle-editor {
  margin: 0;
}

.wk-te-vehicle-editor-panel {
  border: 0;
  border-radius: 0;
  background: #fff;
}

.wk-te-vehicle-editor-panel--readonly .wk-te-readonly-fieldset input,
.wk-te-vehicle-editor-panel--readonly .wk-te-readonly-fieldset select,
.wk-te-vehicle-editor-panel--readonly .wk-te-readonly-fieldset textarea,
.wk-te-vehicle-editor-panel--readonly .wk-te-readonly-fieldset button {
  cursor: not-allowed;
}

.wk-te-vehicle-editor-panel--readonly .wk-te-readonly-fieldset input,
.wk-te-vehicle-editor-panel--readonly .wk-te-readonly-fieldset select,
.wk-te-vehicle-editor-panel--readonly .wk-te-readonly-fieldset textarea {
  background: #f7f9fb;
  color: #4d5f75;
}

.wk-te-readonly-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.wk-te-vehicle-editor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid #d8d8d8;
  list-style: none;
}

.wk-te-vehicle-editor-tabs li {
  min-height: 24px;
  padding: 0;
  color: #333;
  border: 0;
  font-size: 12px;
  text-transform: none;
}

.wk-te-vehicle-editor-tabs li.is-active {
  color: #1e9cf0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.wk-te-vehicle-editor-tabs button {
  width: auto;
  height: auto;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  font-size: inherit;
  text-transform: inherit;
}

.wk-te-vehicle-editor-tabs i {
  margin-right: 3px;
}

.wk-te-vehicle-editor-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: -18px -22px 18px;
  padding: 18px 18px 16px;
  color: #333;
  border-bottom: 1px solid #e5e5e5;
}

.wk-te-vehicle-editor-body {
  padding: 0;
}

.wk-te-vehicle-tab-panel {
  display: none;
}

.wk-te-vehicle-tab-panel.is-active {
  display: block;
}

.wk-te-vehicle-field {
  margin-bottom: 14px;
}

.wk-te-vehicle-field label {
  display: block;
  margin: 0 0 7px;
  color: #001a3f;
  font-weight: 600;
}

.wk-te-vehicle-field input[type="text"],
.wk-te-vehicle-field select,
.wk-te-vehicle-field textarea {
  width: 100%;
  height: 32px;
  padding: 6px 10px;
  color: #10243d;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.wk-te-vehicle-field textarea {
  height: auto;
  min-height: 58px;
  resize: vertical;
}

.wk-te-vehicle-field--language {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
}

.wk-te-vehicle-field--language label {
  margin-bottom: 0;
}

.wk-te-vehicle-field--language select {
  width: auto;
  min-width: 118px;
}

.wk-te-vehicle-field--language small {
  flex-basis: 100%;
}

.wk-te-vehicle-field--narrow select,
.wk-te-vehicle-field--narrow input[type="text"] {
  max-width: 745px;
}

.wk-te-vehicle-field small,
.wk-te-vehicle-required-note {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 12px;
  font-style: italic;
}

.wk-te-vehicle-required-note {
  margin: 20px 0 0;
  color: #111;
  font-weight: 600;
}

.wk-te-lang-flag {
  color: #777;
  font-size: 10px;
  font-weight: 700;
}

.wk-te-rich-editor {
  border: 1px solid #aaa;
  background: #fff;
}

.wk-te-rich-editor__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  min-height: 32px;
  padding: 8px 10px;
  border-bottom: 1px solid #c7c7c7;
  color: #111;
  font-size: 13px;
}

.wk-te-rich-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  min-height: 31px;
  padding: 3px 4px;
  border-bottom: 1px solid #bdbdbd;
  background: linear-gradient(#f8f8f8, #e0e0e0);
}

.wk-te-rich-editor__toolbar span,
.wk-te-rich-editor__toolbar strong,
.wk-te-rich-editor__toolbar em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid #c7c7c7;
  border-radius: 2px;
  background: #f7f7f7;
  color: #111;
  font-size: 12px;
  line-height: 1;
}

.wk-te-rich-editor textarea {
  display: block;
  width: 100%;
  min-height: 92px;
  padding: 10px;
  border: 0;
  resize: vertical;
}

.wk-te-vehicle-form-row {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.wk-te-vehicle-form-row > label {
  margin: 8px 0 0;
  color: #333;
  font-weight: 400;
  text-align: right;
}

.wk-te-vehicle-form-row input[type="text"],
.wk-te-vehicle-form-row input[type="number"],
.wk-te-vehicle-form-row select,
.wk-te-vehicle-form-row textarea {
  width: min(840px, 100%);
  height: 32px;
  padding: 6px 10px;
  color: #10243d;
  border: 1px solid #c7d6df;
  border-radius: 2px;
  background: #f5fafc;
  box-shadow: none;
}

.wk-te-vehicle-form-row textarea {
  height: auto;
  min-height: 104px;
  resize: vertical;
}

.wk-te-vehicle-form-row small {
  display: block;
  margin-top: 7px;
  color: #777;
  font-style: italic;
}

.wk-te-vehicle-gallery-wrap {
  width: 100%;
}

.wk-te-vehicle-gallery-table {
  width: 100%;
  border-collapse: collapse;
}

.wk-te-vehicle-gallery-table th,
.wk-te-vehicle-gallery-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #d6e9f8;
  color: #253a57;
  text-align: center;
  vertical-align: middle;
}

.wk-te-vehicle-gallery-table th {
  font-weight: 400;
}

.wk-te-vehicle-gallery-table img {
  width: 130px;
  height: 70px;
  padding: 3px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
}

.wk-te-vehicle-gallery-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #333;
  border: 1px solid #d6d4d4;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.wk-te-vehicle-gallery-icon:hover {
  border-color: #bfc8d2;
  background: #f8fafc;
}

.wk-te-input-addon {
  position: relative;
  width: min(840px, 100%);
}

.wk-te-input-addon input {
  padding-right: 36px !important;
}

.wk-te-input-addon > span {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-left: 1px solid #c7d6df;
  color: #333;
  background: #f5f5f5;
}

.wk-te-input-addon small {
  position: static;
  display: block;
  width: 100%;
}

.wk-te-vehicle-inner-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 18px;
  border-bottom: 1px solid #d6d4d4;
}

.wk-te-vehicle-inner-tabs button {
  padding: 12px 14px;
  color: #1e9cf0;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  font-size: 12px;
  text-transform: uppercase;
}

.wk-te-vehicle-inner-tabs button.is-active {
  color: #333;
  border-color: #d6d4d4;
  background: #fff;
}

.wk-te-price-tab-panel {
  display: none;
}

.wk-te-price-tab-panel.is-active {
  display: block;
}

.wk-te-vehicle-help {
  margin: 0 0 18px;
  color: #777;
  font-style: italic;
}

.wk-te-price-rules-table {
  width: 100%;
  border-collapse: collapse;
}

.wk-te-price-rules-table th,
.wk-te-price-rules-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #d6e9f8;
  color: #253a57;
  vertical-align: middle;
}

.wk-te-price-rules-table th {
  font-weight: 600;
}

.wk-te-price-rules-table input,
.wk-te-price-rules-table select {
  width: 100%;
  height: 32px;
  padding: 6px 10px;
  border: 1px solid #c7d6df;
  border-radius: 2px;
  background: #f5fafc;
  box-shadow: none;
}

.wk-te-vehicle-section-title {
  margin: 18px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
  color: #333;
  font-size: 18px;
  font-weight: 400;
}

.wk-te-vehicle-notice,
.wk-te-vehicle-alert,
.wk-te-vehicle-info {
  margin: 10px 0 20px;
  padding: 14px 18px;
  border: 1px solid #dbe5ee;
  border-radius: 2px;
  background: #fbfcfd;
  color: #4f6382;
}

.wk-te-vehicle-alert {
  border-color: #ffe6a3;
  background: #fff4d5;
  color: #a1740f;
}

.wk-te-vehicle-info {
  border-color: #bce8f1;
  background: #d9edf7;
  color: #31708f;
}

.wk-te-vehicle-simple-table {
  width: 100%;
  margin-bottom: 0;
}

.wk-te-unit-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
}

.wk-te-add-unit {
  min-width: 92px;
  min-height: 34px;
  font-weight: 700;
}

.wk-te-add-unit i {
  margin-right: 5px;
}

.wk-te-vehicle-simple-table th,
.wk-te-vehicle-simple-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #d6e9f8;
  text-align: left;
  vertical-align: middle;
}

.wk-te-vehicle-simple-table th:last-child,
.wk-te-vehicle-simple-table td:last-child {
  width: 38%;
  text-align: center;
}

.wk-te-unit-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f6f29;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.wk-te-unit-status-icon.is-disabled {
  color: #9b2f2f;
}

.wk-te-unit-status-icon:hover,
.wk-te-unit-status-icon:focus {
  background: #f2f7f2;
  outline: 1px solid #d7e7d7;
}

.wk-te-vehicle-switch {
  display: inline-flex;
}

.wk-te-vehicle-switch input {
  position: absolute;
  opacity: 0;
}

.wk-te-vehicle-switch label {
  min-width: 72px;
  height: 25px;
  margin: 0;
  padding: 5px 18px;
  color: #999;
  border: 1px solid #d6d4d4;
  background: linear-gradient(#fff, #eee);
  font-size: 12px;
  line-height: 1;
  text-align: center;
}

.wk-te-vehicle-switch input:checked + label {
  color: #fff;
  border-color: #3aa4c5;
  background: #43a6cf;
}

.wk-te-vehicle-switch input[value="0"]:checked + label {
  border-color: #d37a82;
  background: #df8b94;
}

.wk-te-remove-price-rule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.wk-te-remove-price-rule:hover {
  border-color: #ef4444;
  background: #fef2f2;
  color: #ef4444;
}

.wk-te-vehicle-section-title {
  margin: 18px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
  color: #333;
  font-size: 18px;
  font-weight: 400;
}

.wk-te-vehicle-editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding: 0;
  border-top: 0;
}

.wk-te-vehicle-cancel,
.wk-te-vehicle-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 59px;
  min-height: 28px;
  padding: 6px 12px;
  color: #333;
  border: 1px solid #d6d4d4;
  border-radius: 0;
  background: #fff;
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
}

.wk-te-vehicle-save {
  min-width: 58px;
  color: #fff;
  border-color: #3c9b3c;
  background: #43a047;
  cursor: pointer;
}

.wk-te-vehicle-save-group {
  display: flex;
  gap: 6px;
}

.wk-te-vehicle-cancel:hover {
  color: #333;
  background: #f8fafc;
  text-decoration: none;
}

.wk-te-vehicle-save:hover {
  color: #fff;
  border-color: #318331;
  background: #3b913f;
}

.wk-te-vehicle-save:disabled {
  border-color: #b7b7b7;
  background: #b7b7b7;
  cursor: not-allowed;
}
