/* KARLUSON · волна 16 · кабинет КУРЬЕРА — стили (kl16-*).
   База — кит kl-wave14-roles.css + lk-* из kl-e1-account.css. Адаптив: 1440 / 390. */

/* ---------- шапка экрана ---------- */
.kl16-head { align-items: flex-start; gap: 12px; }
.kl16-head .lk-h1 { margin: 0; }
.kl16-kpis { margin: 4px 0 14px; }
.kl16-grid { align-items: start; }
.kl16-grid > .lk-card { min-width: 0; }

/* ---------- бейджи статуса ---------- */
.kl16-badge--ok { background: #e7f7ee; color: #17673c; border: 1px solid #b9e6cc; }
.kl16-badge--wait { background: #fff6e5; color: #8a5a00; border: 1px solid #f4dfae; }

/* ---------- гейт «Анкета на проверке» ---------- */
.kl16-gate {
  max-width: 620px;
  margin: 8px auto 0;
  padding: 28px 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e7e9ef;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
  text-align: center;
}
.kl16-gate__ico { font-size: 34px; line-height: 1; }
.kl16-gate__h { margin: 10px 0 6px; font-size: 22px; color: #1d2433; }
.kl16-gate__p { margin: 0 auto 14px; max-width: 46ch; color: #5a6273; font-size: 14px; line-height: 1.55; }
.kl16-gate__status { margin-bottom: 16px; }
.kl16-gate__btns { flex-wrap: wrap; }
.kl16-gate .lk-hint { margin: 14px 0 0; }
.kl16-gate .lk-link { border: 0; background: none; color: #2563eb; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* ---------- маршрут А → Б ---------- */
.kl16-route { display: grid; gap: 2px; margin: 10px 0 12px; }
.kl16-route .lk-route__p { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #1d2433; }
.kl16-route .lk-route__arw { color: #98a0b0; font-size: 13px; padding-left: 10px; }
.kl16-dot {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.kl16-dot--a { background: #2563eb; }
.kl16-dot--b { background: #16a34a; }
.kl16-orderline { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }

/* ---------- офферы ---------- */
.kl16-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kl16-offer { display: flex; flex-direction: column; }
.kl16-offer .lk-card__body { display: flex; flex-direction: column; gap: 4px; }
.kl16-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.kl16-meta .lk-chip { font-size: 12px; }
.kl16-offer__foot { margin-top: auto; gap: 8px; flex-wrap: wrap; }

/* ---------- активный заказ ---------- */
.kl16-active__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.kl16-actions { gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.kl16-steps { display: flex; gap: 8px; list-style: none; margin: 10px 0 6px; padding: 0; flex-wrap: wrap; }
.kl16-step {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: #f5f6f9; color: #6b7280; font-size: 13px; border: 1px solid #e7e9ef;
}
.kl16-step__n {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #dfe3ea; color: #4b5563; font-size: 11px; font-weight: 700;
}
.kl16-step.is-done { background: #e7f7ee; color: #17673c; border-color: #b9e6cc; }
.kl16-step.is-done .kl16-step__n { background: #16a34a; color: #fff; }
.kl16-step.is-cur { background: #eef3ff; color: #1d4ed8; border-color: #c3d4fb; font-weight: 600; }
.kl16-step.is-cur .kl16-step__n { background: #2563eb; color: #fff; }

/* ---------- блок геолокации курьера ---------- */
.kl16-geo {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 12px 0; padding: 12px 14px;
  border: 1px dashed #c7cfdd; border-radius: 14px; background: #fafbfd;
}
.kl16-geo__dot {
  width: 10px; height: 10px; border-radius: 50%; background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .16);
}
.kl16-geo__txt { display: flex; flex-direction: column; line-height: 1.35; font-size: 13px; color: #1d2433; }
.kl16-geo__val { color: #5a6273; font-size: 12px; }
.kl16-geo .lk-btn { margin-left: auto; }

/* ---------- анкета ---------- */
.kl16-statuscard { margin-bottom: 14px; }
.kl16-statusrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.kl16-formfoot { gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.kl16-docs { display: grid; gap: 8px; margin: 8px 0 4px; }
.kl16-doc {
  display: grid; grid-template-columns: 24px 1fr auto auto; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid #e7e9ef; border-radius: 12px; background: #fff; font-size: 13px;
}
.kl16-doc.is-on { border-color: #b9e6cc; background: #f6fcf8; }
.kl16-doc__ico { width: 24px; height: 24px; border-radius: 50%; background: #eef1f6; color: #6b7280; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.kl16-doc.is-on .kl16-doc__ico { background: #16a34a; color: #fff; }
.kl16-doc__name { font-weight: 600; color: #1d2433; }
.kl16-doc__st { color: #6b7280; font-size: 12px; }

/* ---------- заработок / выплаты ---------- */
.kl16-tablecard { padding-top: 0; }
.kl16-tablecard .lk-table { width: 100%; }
.kl16-sum { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: #17673c; }
.kl16-total {
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end;
  padding: 12px 4px 2px; font-size: 13px; color: #5a6273;
}
.kl16-total b { color: #1d2433; }

/* ---------- рейтинг ---------- */
.kl16-ratetop { margin-bottom: 14px; }
.kl16-ratetop__body { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.kl16-ratetop__val { font-size: 40px; font-weight: 700; line-height: 1; color: #1d2433; }
.kl16-ratetop__kpi { margin-left: auto; min-width: 190px; }
.kl16-stars { display: inline-flex; gap: 2px; font-size: 14px; color: #d5d9e2; }
.kl16-stars--big { font-size: 20px; }
.kl16-star.is-on { color: #f5a524; }
.kl16-reviews { display: grid; gap: 10px; }
.kl16-review { padding: 12px 14px; border: 1px solid #e7e9ef; border-radius: 12px; background: #fff; }
.kl16-review__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; font-size: 13px; }
.kl16-review__t { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: #3d4453; }

/* ---------- поддержка ---------- */
.kl16-textarea { resize: vertical; font: inherit; line-height: 1.5; }
.kl16-tickets { display: grid; gap: 10px; }
.kl16-ticket { padding: 12px 14px; border: 1px solid #e7e9ef; border-radius: 12px; background: #fafbfd; }
.kl16-contacts { margin-top: 4px; }
.kl16-contactrow { gap: 10px; flex-wrap: wrap; font-size: 13px; }

/* ---------- меню: заблокированные пункты (гейт) ---------- */
.lk-navitem.is-disabled { opacity: .45; cursor: not-allowed; position: relative; }
.lk-navitem.is-disabled::after {
  content: '🔒'; font-size: 11px; margin-left: auto; opacity: .85;
}
.lk-navitem.is-disabled:hover { background: transparent; }

/* ---------- тосты ---------- */
.kl16-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.kl16-toast {
  display: flex; align-items: center; gap: 10px;
  min-width: 240px; max-width: 360px; padding: 12px 14px;
  border-radius: 12px; background: #10261b; color: #eaf6ef; font-size: 13px; line-height: 1.4;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .25);
  transition: opacity .35s ease, transform .35s ease;
}
.kl16-toast--err { background: #33141a; color: #ffe9ec; }
.kl16-toast.is-out { opacity: 0; transform: translateY(6px); }
.kl16-toast__i {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .16); font-size: 12px; flex: 0 0 20px;
}

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .kl16-offers { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .kl16-grid, .lk-grid2 { grid-template-columns: 1fr !important; }
  .kl16-ratetop__kpi { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .kl16-head { flex-direction: column; }
  .kl16-head .lk-page__actions { width: 100%; }
  .kl16-head .lk-page__actions .lk-btn { flex: 1 1 auto; }
  .kl16-gate { padding: 22px 16px; border-radius: 16px; }
  .kl16-gate__h { font-size: 19px; }
  .kl16-gate__btns .lk-btn { width: 100%; }
  .kl16-doc { grid-template-columns: 22px 1fr; row-gap: 6px; }
  .kl16-doc__st { grid-column: 2; }
  .kl16-doc .lk-btn { grid-column: 2; justify-self: start; }
  .kl16-step { flex: 1 1 100%; justify-content: flex-start; }
  .kl16-actions .lk-btn, .kl16-offer__foot .lk-btn, .kl16-formfoot .lk-btn { flex: 1 1 100%; }
  .kl16-geo { align-items: flex-start; }
  .kl16-geo .lk-btn { margin-left: 0; width: 100%; }
  .kl16-toasts { left: 12px; right: 12px; bottom: 12px; }
  .kl16-toast { max-width: none; width: 100%; }
  .kl16-ratetop__val { font-size: 34px; }
  .kl16-total { justify-content: flex-start; }
  .kl16-tablecard { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .kl16-toast { transition: none; }
}
