/* Taxi yellow-white theme overrides (must win over any cached/old admin.css) */
:root {
  --taxi-yellow: #F7C948 !important;
  --taxi-yellow-dark: #E5B22E !important;
  --taxi-yellow-soft: #FFF6D6 !important;
  --taxi-ink: #1A1A1A !important;
  --brand: #F7C948 !important;
  --brand-dark: #E5B22E !important;
  --brand-soft: #FFF6D6 !important;
  --brand-ring: rgba(247, 201, 72, 0.35) !important;
  --accent: #F7C948 !important;
  --accent-dark: #E5B22E !important;
  --btn-primary: #F7C948 !important;
}

.btn-primary,
.btn-accent,
.login-card .btn-primary {
  background: #F7C948 !important;
  color: #1A1A1A !important;
  border-color: #E5B22E !important;
}

.btn-primary:hover:not(:disabled),
.btn-accent:hover:not(:disabled),
.login-card .btn-primary:hover:not(:disabled) {
  background: #E5B22E !important;
  color: #1A1A1A !important;
}

.brand-mark,
.brand-logo,
.lp-logo {
  background: #F7C948 !important;
  border: 1px solid #E5B22E !important;
  color: #1A1A1A !important;
}

.badge {
  background: #1A1A1A !important;
  color: #F7C948 !important;
}

.subnav {
  background: #F7C948 !important;
  border-bottom-color: #E5B22E !important;
}

.nav-item.active {
  background: #FFF6D6 !important;
  color: #1A1A1A !important;
  border-color: color-mix(in srgb, #F7C948 55%, #E8E4D9) !important;
}

/* Дополнения к taxi yellow-white стилю для карточек заявок */

.form-row { margin-bottom: 14px; }

.orders-grid {
  display: grid;
  gap: 14px;
}

.order-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  user-select: text;
  -webkit-user-select: text;
}

.order-card .selectable,
.order-field div,
.driver-line,
.driver-line .drv-name,
.driver-line .drv-car,
.driver-line .drv-plate,
.price-tag {
  user-select: text;
  -webkit-user-select: text;
}

.order-actions,
.order-actions .btn,
.badge-status {
  user-select: none;
  -webkit-user-select: none;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.order-card-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.order-id {
  font-size: 12px;
  color: var(--text-muted);
  font-family: ui-monospace, Consolas, monospace;
}

.order-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 16px;
  margin-bottom: 14px;
}

.order-field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.order-field div {
  font-size: 14px;
  font-weight: 550;
}

.order-field .loc-city-select {
  width: 100%;
  max-width: 220px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--taxi-ink, #1A1A1A);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  cursor: pointer;
}

.order-field .loc-city-select:focus {
  outline: none;
  border-color: var(--taxi-yellow-dark, #E5B22E);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 30%, transparent);
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.timer-pill {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--taxi-ink, #1A1A1A);
}

.timer-pill.warn {
  background: #fff7ed;
  color: #c2410c;
}

.timer-pill.danger {
  background: #fef2f2;
  color: #b91c1c;
}

.badge-status {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 650;
  background: var(--bg-soft);
  color: var(--text);
}

.badge-status.queued { background: #e2e8f0; }
.badge-status.searching { background: var(--brand-soft); color: var(--taxi-ink, #1A1A1A); }
.badge-status.awaiting_assign { background: #fff7ed; color: #c2410c; }
.badge-status.awaiting_client { background: #fef9c3; color: #854d0e; }
.badge-status.assigned { background: #dcfce7; color: #166534; }
.badge-status.cancelled,
.badge-status.no_car,
.badge-status.incomplete { background: #fee2e2; color: #991b1b; }

.driver-line,
.order-timer {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.order-timer {
  color: var(--taxi-ink, #1A1A1A);
  font-variant-numeric: tabular-nums;
}

.subnav span {
  cursor: pointer;
  user-select: none;
}

.meta-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  overflow: auto;
}

.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  width: min(440px, 100%);
  overflow: hidden;
}

.modal-card-wide {
  width: min(560px, 100%);
}

.btn-add-order {
  min-width: 42px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 14px;
}

.price-tag {
  font-weight: 750;
  color: var(--taxi-ink, #1A1A1A);
}

.confirm-hint {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.reject-reason-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  text-align: left;
}

.reject-reason-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--taxi-ink, #1A1A1A);
  cursor: pointer;
  user-select: none;
}

.reject-reason-opt:hover {
  border-color: var(--taxi-yellow-dark, #E5B22E);
  background: var(--brand-soft);
}

.reject-reason-opt:has(input:checked) {
  border-color: var(--taxi-yellow-dark, #E5B22E);
  background: color-mix(in srgb, var(--taxi-yellow, #F7C948) 28%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--taxi-yellow, #F7C948) 50%, transparent);
}

.reject-reason-opt input {
  width: 16px;
  height: 16px;
  accent-color: var(--taxi-yellow-dark, #E5B22E);
  cursor: pointer;
  flex-shrink: 0;
}

.confirm-card-reject {
  width: min(400px, 100%);
}

.create-preview {
  margin-top: 4px;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.create-calc {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--taxi-ink, #1A1A1A);
}

.create-calc-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-top-color: var(--taxi-yellow-dark, #E5B22E);
  border-radius: 50%;
  animation: create-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes create-spin {
  to { transform: rotate(360deg); }
}

.modal-card header {
  padding: 16px 18px 0;
}

.modal-card header h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.modal-body {
  padding: 14px 18px 8px;
}

.modal-footer {
  padding: 12px 18px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Confirm modal — taxi yellow */
.confirm-modal {
  z-index: 220;
}

.confirm-card {
  width: min(360px, 100%);
  position: relative;
  border: 1px solid color-mix(in srgb, var(--taxi-yellow, #F7C948) 55%, var(--border));
  box-shadow: 0 18px 48px rgba(26, 26, 26, 0.22);
}

.confirm-accent {
  height: 5px;
  background: linear-gradient(90deg, var(--taxi-yellow, #F7C948), var(--taxi-yellow-dark, #E5B22E));
}

.confirm-body {
  padding: 22px 22px 8px;
  text-align: center;
}

.confirm-title {
  margin: 0;
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--taxi-ink, #1A1A1A);
  line-height: 1.35;
}

.confirm-card .modal-footer {
  justify-content: center;
  padding-top: 8px;
  padding-bottom: 20px;
}

.confirm-card .modal-footer .btn {
  min-width: 96px;
}

.driver-fake {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border-radius: 11px;
}

/* Hide cancelled checkbox */
.hide-cancelled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.hide-cancelled:hover {
  border-color: var(--taxi-yellow-dark, #E5B22E);
  background: var(--brand-soft);
}

.hide-cancelled input {
  width: 16px;
  height: 16px;
  accent-color: var(--taxi-yellow, #F7C948);
  cursor: pointer;
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
}
