/* Файл: static/distribution.css */
/* Участвует в: distribution.html, app.css */
/* Назначение: стили экрана «Распределение заказов» — вход агента, панель геопозиции, карточки заказов агента,
   таблица назначения для админа (3 версии: таблица / таблица / карточки «подпись: значение») */

.dist-role { font-size: 12px; background: var(--ivory-deep); border: 1px solid var(--line); padding: 6px 12px; border-radius: 20px; }
.dist-login { max-width: 420px; margin: 30px auto; padding: 26px 24px; }
.dist-login__hint { font-size: 12px; color: var(--ink-soft); margin-top: 14px; line-height: 1.5; }
.dist-error { color: var(--danger); font-size: 13px; margin-bottom: 12px; }
.dist-h { font-family: var(--font-display); font-size: 18px; margin: 20px 0 12px; }

.dist-geo { padding: 18px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dist-geo__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ink-soft); flex-shrink: 0; }
.dist-geo__dot.on { background: var(--success); box-shadow: 0 0 0 0 rgba(58,125,92,.6); animation: geo-pulse 1.6s infinite; }
.dist-geo__dot.err { background: var(--danger); }
@keyframes geo-pulse { 70% { box-shadow: 0 0 0 12px rgba(58,125,92,0); } 100% { box-shadow: 0 0 0 0 rgba(58,125,92,0); } }
.dist-geo__text { flex: 1; min-width: 200px; }
.dist-geo__title { font-weight: 700; font-size: 15px; }
.dist-geo__sub { font-size: 12px; color: var(--ink-soft); margin-top: 3px; line-height: 1.45; }

.dist-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dist-order { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.dist-order__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.dist-order__num { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.dist-order__row { font-size: 13px; color: var(--ink-soft); margin: 4px 0; display: flex; gap: 8px; }
.dist-order__row b { color: var(--ink); font-weight: 600; }
.dist-order__row a { color: var(--bronze-deep); text-decoration: underline; }
.dist-order__actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.dist-order__actions .btn { flex: 1; }

.dist-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.dist-select { width: 190px; }
.dist-check { display: flex; align-items: center; gap: 8px; font-size: 13px; min-height: 44px; cursor: pointer; }
.dist-check input { width: 22px; height: 22px; }
.agent-select { min-width: 190px; padding: 8px 10px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; background: var(--white); }
.agent-select.assigned { border-color: var(--success); background: #F1F8F4; }

@media (max-width: 1024px) {
  .dist-cards { grid-template-columns: repeat(2, 1fr); }
  .dist-select { width: 160px; }
  .agent-select { min-width: 150px; }
}
@media (max-width: 768px) {
  .dist-cards { grid-template-columns: 1fr; }
  .dist-toolbar > * { flex: 1 1 100%; }
  .dist-select { width: 100%; }
  .dist-toolbar .search-box { order: 0; }
  .agent-select { width: 60%; min-width: 0; }
  .dist-login { margin: 14px auto; }
}
