.taxi-shift-panel {
  width: min(100%, 650px);
  margin: 24px auto 30px;
  padding: 23px 25px 20px;
  border: 1px solid #ffffffe8;
  border-radius: 28px;
  background: linear-gradient(145deg, #fffffff1, #edf5e9ed);
  box-shadow: 0 14px 34px #51684a38, 0 2px 3px #fff inset;
  color: #243622;
}
.taxi-shift-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.taxi-shift-head .message-label { margin: 0 0 4px; color: #73856c; }
.taxi-shift-head h2 { margin: 0 0 18px; font-size: 22px; letter-spacing: -.04em; }
.taxi-shift-close { width: 35px; height: 35px; border: 1px solid #cfddc7; border-radius: 50%; background: #f7fbf4; color: #475943; font-size: 27px; line-height: 1; }
.taxi-shift-close:hover { background: #e9f3e2; }
.taxi-shift-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.top-actions #taxi-shortcut { display: none !important; }
.taxi-native-setup { margin: 15px 0; padding: 15px; border: 1px solid #b4c99f; border-radius: 15px; background: #f5faee; }
.taxi-native-setup strong { display: block; color: #294e31; }
.taxi-native-setup p { margin: 8px 0; font-size: 13px; line-height: 1.5; }
.taxi-native-setup a, .taxi-native-setup button { display: inline-block; margin: 7px 8px 7px 0; padding: 10px 13px; border: 0; border-radius: 10px; background: #2d6038; color: white; font-weight: 700; text-decoration: none; }
.taxi-native-setup output { display: block; margin-top: 8px; font-weight: 800; }
.taxi-pair-prompt { max-width: min(580px, 96%); }
.taxi-pair-prompt .message-body { border-color: #e6c25a; background: linear-gradient(145deg,#fff9dc,#f3edce); }
.taxi-pair-prompt strong { display: block; font-size: 18px; line-height: 1.3; }
.taxi-pair-prompt p { margin: 9px 0 14px; font-size: 14px; line-height: 1.5; }
.taxi-pair-prompt button { padding: 11px 15px; border: 0; border-radius: 12px; background: #285a36; color: white; font-weight: 800; }
.taxi-shift-switch-row strong { display: block; font-size: 19px; }
.taxi-shift-switch-row strong em { margin-left: 3px; color: #71846c; font-size: 12px; font-style: normal; font-weight: 800; }
.taxi-shift-switch-row small { display: block; margin-top: 3px; color: #687b62; font-size: 11px; line-height: 1.4; }
.taxi-shift-switch-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.taxi-switch-track { position: relative; display: block; flex: none; width: 59px; height: 33px; border: 1px solid #a6b3a0; border-radius: 99px; background: #c8d3c3; box-shadow: 0 2px 4px #62705b33 inset; transition: background .2s; }
.taxi-switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 25px; height: 25px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px #52634b55; transition: transform .2s; }
.taxi-shift-switch-row input:checked + .taxi-switch-track { background: #4b9e50; border-color: #438c49; }
.taxi-shift-switch-row input:checked + .taxi-switch-track::after { transform: translateX(26px); }
.taxi-shift-switch-row input:focus-visible + .taxi-switch-track { outline: 2px solid #345f34; outline-offset: 3px; }
.taxi-shift-switch-row input:disabled + .taxi-switch-track { opacity: .52; cursor: not-allowed; }
.taxi-shift-status { min-height: 30px; margin: 13px 0 18px; padding: 7px 12px; border-radius: 10px; background: #e8eee3; color: #596b53; font-size: 12px; font-weight: 800; }
.taxi-shift-status.is-working { background: #d6efce; color: #2a6d32; }
.taxi-shift-status.is-error { background: #f8e7df; color: #a34937; }
.top-actions .taxi-toggle.has-new-order, .top-actions .taxi-shortcut.has-new-order {
  border-color: #b92525; background: #ee4242; color: #fff;
  animation: ibeza-taxi-new-order 1s ease-in-out infinite;
}
@keyframes ibeza-taxi-new-order {
  50% { background: #ff8981; box-shadow: 0 0 0 5px #f4515180, 0 0 18px #cf2929; }
}
@media (prefers-reduced-motion: reduce) {
  .top-actions .taxi-toggle.has-new-order, .top-actions .taxi-shortcut.has-new-order { animation: none; }
}
.taxi-shift-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.taxi-shift-times .taxi-time-group { min-width: 0; }
.taxi-shift-times label { display: grid; gap: 7px; color: #52644d; font-size: 12px; font-weight: 800; }
.taxi-shift-times input { width: 100%; min-height: 45px; padding: 9px 11px; border: 1px solid #b7cbb0; border-radius: 11px; background: #fff; color: #233d27; font: inherit; font-size: 17px; }
.taxi-shift-times input:disabled { opacity: .65; }
.taxi-shift-duration { margin: 13px 0 8px; color: #2f6136; font-size: 13px; font-weight: 800; }
.taxi-shift-hint { margin: 0; color: #798672; font-size: 11px; line-height: 1.5; }
.taxi-fleet-info { padding: 8px; margin: 6px 0; border: 1px solid #edc34f; border-radius: 10px; background: #fff3bd; color: #493c15; line-height: 1.2; }
.taxi-fleet-info p { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 6px; margin: 0 0 5px; }
.taxi-fleet-info strong { display: block; font-size: 16px; font-weight: 900; line-height: 1.2; }
.taxi-fleet-info span { display: block; margin: 0; font-size: 16px; font-weight: 800; }
.taxi-fleet-info .taxi-fleet-free { color: #176635; }
.taxi-fleet-info .taxi-fleet-soon { color: #a24300; padding-top: 5px; border-top: 1px solid #deb348; }
.taxi-fleet-info small { display: block; color: #675724; font-size: 9px; line-height: 1.2; }
.taxi-history { margin: 12px 0; min-width: 0; }
.taxi-order-form .taxi-history { grid-column: 1 / -1; }
.taxi-history-list { display: grid; gap: 10px; margin-top: 10px; }
.taxi-history-item { padding: 12px; border: 1px solid #e4e7df; border-radius: 13px; background: #fff; overflow-wrap: anywhere; }
.taxi-history-item p { margin: 4px 0; font-size: 13px; }
.taxi-history-item ol { margin: 8px 0 0; padding-left: 20px; font-size: 12px; color: #68715f; }
@media (max-width: 560px) {
  .taxi-shift-panel { margin: 17px auto 25px; padding: 20px 18px 18px; border-radius: 23px; }
  .taxi-shift-head h2 { font-size: 20px; }
  .taxi-shift-times { gap: 9px; }
}

/* Compact worker setup, with availability controlled by the shift panel. */
#taxi-work-panel { margin-top: 8px; padding-top: 8px; }
#taxi-work-panel .taxi-native-setup { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; }
#taxi-work-panel .taxi-native-setup strong { font-size: 14px; }
#taxi-work-panel .taxi-native-setup p { margin: 6px 0; font-size: 12px; line-height: 1.4; }
#taxi-work-panel .taxi-native-setup[data-connected="true"] > p:first-of-type { display: none; }
#taxi-work-panel .taxi-native-setup a, #taxi-work-panel .taxi-native-setup button { margin: 5px 5px 5px 0; padding: 8px 10px; font-size: 12px; }
#taxi-work-panel #taxi-native-status { margin: 6px 0 0; padding: 8px 10px; font-size: 12px; border-radius: 10px; }
#taxi-worker-step-two > h4 { margin: 8px 0; font-size: 14px; }
#taxi-work-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px 10px; }
#taxi-work-form .registration-field { min-width: 0; margin: 0; font-size: 12px; }
#taxi-work-form .registration-field > span:first-child { margin-bottom: 4px; }
#taxi-work-form .taxi-type-heading { min-height: 23px; margin-bottom: 4px; }
#taxi-work-form .registration-field input, #taxi-work-form .registration-field select { min-height: 40px; height: 40px; padding: 8px; border-radius: 10px; font-size: 16px; }
#taxi-work-form > .registration-check, #taxi-work-form > .registration-status { grid-column: 1 / -1; margin: 0; }
#taxi-work-form > .registration-check { padding: 10px 12px; min-height: 40px; }
#taxi-worker-step-two .gateway-card { margin: 6px 0 10px; padding: 10px 12px; border-radius: 12px; }
#taxi-worker-step-two .gateway-card h4 { margin: 0 0 5px; font-size: 14px; }
#taxi-worker-step-two .gateway-card p { margin: 5px 0; font-size: 12px; }
#taxi-work-form .taxi-type-field { z-index: 2; }
#taxi-type-help { width: min(310px, calc(100vw - 80px)); right: auto; }

#taxi-work-form .registration-field > span:first-child,
#taxi-work-form .taxi-type-heading {
  display: flex;
  align-items: center;
  min-height: 28px;
  height: 28px;
  margin: 0 0 4px;
  line-height: 14px;
}
#gateway-taxi-status:empty { display: none; }

.top-actions #taxi-toggle:not(.has-new-order) { background: #f8faf8; color: #526158; border-color: #dae2dc; box-shadow: none; }
.top-actions #taxi-toggle.is-shift-enabled:not(.has-new-order) { background: linear-gradient(135deg,#fff69a,#ffe86a); color: #2d290b; border-color: #e7ce45; box-shadow: 0 0 0 3px #fffbea; }
#taxi-shift-panel { padding: 12px 14px; border-radius: 18px; }
#taxi-shift-panel .taxi-shift-head { align-items: center; margin-bottom: 10px; }
#taxi-shift-panel #taxi-shift-status { margin: 0; min-height: 0; padding: 7px 10px; font-size: 16px; font-variant-numeric: tabular-nums; }
.taxi-shift-controls { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 10px; align-items: end; }
.taxi-shift-controls > label:not(.taxi-shift-switch-row) { display: grid; gap: 4px; font-size: 12px; font-weight: 700; min-width: 0; }
.taxi-shift-controls input[type=time] { box-sizing: border-box; width: 100%; min-width: 0; height: 42px; padding: 8px; border: 1px solid #b7cbb0; border-radius: 10px; background: #fff; color: #233d27; font: inherit; font-size: 16px; }
.taxi-shift-controls input[type=time]:disabled { background: #f0f4ee; color: #526158; }
.taxi-shift-controls .taxi-shift-switch-row { height: 42px; }
#taxi-shift-panel [hidden], #taxi-history-panel [hidden] { display: none !important; }

#taxi-shift-panel { position: fixed; z-index: 65; margin: 0; box-sizing: border-box; overflow-y: auto; background: #f7fbf5; box-shadow: 0 10px 26px #203d302b; }

.taxi-fare-price { color: #07833f; font-weight: 800; font-size: .95em; white-space: normal; }
.taxi-input-fare { grid-column: 1; grid-row: 3; margin: 0; font-size: 12px; align-self: center; }
.taxi-place-options { position: absolute; left: 10px; right: 10px; z-index: 35; max-height: 170px; overflow-y: auto; padding: 5px; border: 1px solid #b8d8c6; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px #164f3526; }
.taxi-place-options[hidden] { display: none; }
.taxi-order-form .taxi-place-options button { display: block; width: 100%; min-width: 0; min-height: 36px; margin: 0; padding: 7px 9px; background: #fff; color: #164f35; border-radius: 7px; text-align: left; font-size: 14px; }
.taxi-order-form .taxi-place-options button:hover { background: #edf7f0; }
#admin-taxi-zone-map { height: 320px; width: 100%; margin: 10px 0; border-radius: 14px; background: #eaf1e8; }
.admin-zone-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
#admin-taxi-fares-form input, #admin-taxi-fares-form select { max-width: 100%; min-height: 38px; padding: 7px; border: 1px solid #bdd4c5; border-radius: 9px; font: inherit; }
#admin-taxi-fare-rows { display: grid; gap: 7px; margin: 10px 0; }
#admin-taxi-fare-rows label { display: grid; grid-template-columns: minmax(0,1fr) 95px 18px; gap: 6px; align-items: center; font-size: 13px; }
#admin-taxi-fare-rows input { width: 100%; }
#admin-taxi-fares-form [type=submit] { margin: 10px 0; }

.taxi-apk-notice strong { display: block; margin-bottom: 7px; }
.taxi-apk-notice a { color: #07833f; font-weight: 800; text-decoration: underline; }
#taxi-native-setup a[href*="ibeza-taxi.apk"] { white-space: normal; }

#taxi-shift-set-end{grid-column:2;grid-row:2;margin:0;padding:8px 10px;min-height:34px;border:0;border-radius:10px;background:#087443;color:#fff;font:inherit;font-size:13px;font-weight:750;cursor:pointer}
#taxi-shift-set-end:disabled{opacity:.45;cursor:default}
