/* ========== ЛОГИСТИКА ========== */
.logistics-container{background:transparent;padding:20px 0}
.logistics-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap;gap:12px}
.logistics-header h2{margin:0;font-size:1.5rem;font-weight:700;color:#1e293b;display:flex;align-items:center;gap:10px}
body.dark-theme .logistics-header h2{color:#e2e8f0}
.logistics-stats{display:flex;gap:20px;margin-bottom:20px;flex-wrap:wrap}
.stats-card{background:#fff;border-radius:12px;box-shadow:0 4px 6px -1px rgba(0,0,0,0.05);padding:12px 20px;display:flex;flex-direction:column;align-items:center;min-width:120px;border:1px solid #e2e8f0}
body.dark-theme .stats-card{background:#1e293b;border-color:#334155}
.stats-label{font-size:.8rem;color:#64748b;font-weight:500}
body.dark-theme .stats-label{color:#94a3b8}
.stats-value{font-size:1.6rem;font-weight:700;color:#1e293b}
body.dark-theme .stats-value{color:#e2e8f0}
.logistics-table-wrapper{overflow-x:auto;background:#fff;border-radius:16px;box-shadow:0 4px 6px -1px rgba(0,0,0,0.05);padding:0}
body.dark-theme .logistics-table-wrapper{background:#1e293b}
.logistics-table{width:100%;border-collapse:collapse;font-size:.85rem;min-width:1200px}
.logistics-table th{background:#f8fafc;padding:10px 12px;text-align:left;font-weight:600;color:#475569;border-bottom:2px solid #e2e8f0;white-space:nowrap}
body.dark-theme .logistics-table th{background:#0f172a;color:#94a3b8;border-bottom-color:#334155}
.logistics-table td{padding:10px 12px;border-bottom:1px solid #f1f5f9;color:#1e293b}
body.dark-theme .logistics-table td{color:#e2e8f0;border-bottom-color:#334155}
.logistics-table tbody tr:hover td{background:#f8fafc}
body.dark-theme .logistics-table tbody tr:hover td{background:#334155}
.logistics-row{cursor:pointer}
.logistics-row:hover{background:#f0f9ff}
body.dark-theme .logistics-row:hover{background:#1e3a5f}
.loading-cell{text-align:center;padding:40px!important;color:#94a3b8}

/* Таблица автобусов в модалке */
.buses-table{font-size:.8rem}
.buses-table th,.buses-table td{padding:6px 4px;vertical-align:middle}
.buses-table td .badge{font-size:.65rem;padding:2px 8px}
.buses-row{cursor:pointer}
.buses-row:hover{background:#f8fafc}
body.dark-theme .buses-row:hover{background:#334155}

/* Правая панель школы */
.school-item{transition:all .2s}
.school-item:hover{box-shadow:0 4px 12px rgba(0,0,0,0.06);transform:translateY(-1px)}
body.dark-theme .school-item{background:#0f172a!important;border-color:#334155!important}
body.dark-theme .school-item strong{color:#e2e8f0}

/* Кнопки в школах */
.assign-school-btn{background:#3b82f6}
.assign-school-btn:hover{background:#2563eb}
.unassign-school-btn{background:#ef4444}
.unassign-school-btn:hover{background:#dc2626}

/* Модалка автобусов */
#busesModal .modal-content{width:95%;max-width:1600px}
#busesModal .modal-header{border-bottom:1px solid #e2e8f0}
body.dark-theme #busesModal .modal-header{border-bottom-color:#334155}
#busesModal #busesInfo{background:#f8fafc}
body.dark-theme #busesModal #busesInfo{background:#0f172a}
#busesModal #busesInfo div{font-size:.9rem}
#busesModal #busesInfo strong{color:#1e293b}
body.dark-theme #busesModal #busesInfo strong{color:#e2e8f0}
#busesModal #busesInfo #remainingToDistribute{color:#3b82f6}
body.dark-theme #busesModal #busesInfo #remainingToDistribute{color:#60a5fa}
#busesModal .close-modal{font-size:1.5rem;line-height:1;background:none;border:none;cursor:pointer;padding:0 4px}

/* Модалка детали автобуса */
#busDetailModal .modal-content{background:#fff}
body.dark-theme #busDetailModal .modal-content{background:#1e293b}
#busDetailModal .modal-header{border-bottom:1px solid #e2e8f0}
body.dark-theme #busDetailModal .modal-header{border-bottom-color:#334155}
#busDetailModal .modal-content > div:nth-child(2){background:#f8fafc}
body.dark-theme #busDetailModal .modal-content > div:nth-child(2){background:#0f172a}
#busDetailModal table{font-size:.85rem;border-collapse:separate;border-spacing:0 4px}
#busDetailModal table th{background:#f1f5f9;font-weight:600;padding:8px 12px;border-radius:8px 8px 0 0}
#busDetailModal table td{background:white;padding:8px 12px;border-radius:0;box-shadow:0 1px 3px rgba(0,0,0,0.05)}
#busDetailModal table tbody tr:last-child td{border-radius:0 0 8px 8px}
body.dark-theme #busDetailModal table th{background:#0f172a;color:#e2e8f0}
body.dark-theme #busDetailModal table td{background:#1e293b;color:#e2e8f0}

/* Кнопка удаления участника */
.delete-person-btn{transition:color .2s}
.delete-person-btn:hover{color:#dc2626!important}

/* Адаптивность */
@media(max-width:1024px){
  #busesModal .modal-content{flex-direction:column;max-width:100%}
  #busesModal .modal-content > div:first-child{border-right:none;border-bottom:1px solid #e2e8f0}
}
/* Фиксированная высота модалки автобусов */
#busesModal .modal-content {
  height: 90vh;
  max-height: 90vh;
}
#busesModal {
  align-items: center;
  justify-content: center;
}

/* Увеличенные кнопки в детальной модалке */
#busDetailModal .btn {
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 8px;
}
/* Увеличение отступов в строках таблицы логистики */
.logistics-table td,
.logistics-table th {
  padding: 20px 16px !important;
}
.logistics-table td strong {
  font-weight: 700;
}