/* ========== СТИЛИ ДЛЯ СТРАНИЦЫ ПЛАНИРОВОК (plan.css) ========== */

* { box-sizing: border-box; }
body { background: #f0f2f5; font-family: Roboto, sans-serif; margin: 0; padding: 20px; }
.wrapper {
    max-width: 96vw;
  margin: 0 auto;
    margin-top: 0px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-top: 40px;}

/* Переключение корпусов */
.building-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab { padding: 8px 16px; background: #e9ecef; border-radius: 30px; cursor: pointer; }
.tab.active { background: #3498db; color: white; }
.mobile-select { display: none; margin-bottom: 20px; width: 100%; padding: 10px; }
@media (max-width: 768px) {
    .building-tabs { display: none; }
    .mobile-select { display: block; }
}

/* Панель администратора */
.admin-panel { text-align: right; margin-bottom: 15px; }
.admin-btn { background: #ffc107; padding: 6px 12px; border-radius: 20px; text-decoration: none; color: #000; display: inline-block; }

/* Фильтры */
.filters { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.room-btn { padding: 6px 14px; background: #e9ecef; border-radius: 20px; cursor: pointer; }
.room-btn.active { background: #2ecc71; color: white; }
select { padding: 6px 12px; border-radius: 20px; }

/* Таблица квартир */
.flats-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { border: 1px solid #ddd; padding: 8px 4px; text-align: center; vertical-align: middle; }
th { background: #f8f9fa; }
.flat-cell { cursor: pointer; background: #e2e3e5; }
.flat-cell.developer { background: #d4edda; }
.flat-cell.owner { background: #cce5ff; }
.flat-cell.booked { background: #ffe5b4; }
.flat-number { font-weight: bold; font-size: 14px; }
.flat-price { font-size: 11px; color: #2c3e50; }
.flat-type { font-size: 10px; color: #555; }
.repair-badge { font-size: 9px; background: rgba(0,0,0,0.6); color: white; display: inline-block; padding: 2px 4px; border-radius: 4px; margin-top: 4px; }

/* Модальные окна (общие) */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); justify-content: center; align-items: center; }
.modal-content { background: white; max-width: 500px; width: 90%; border-radius: 12px; padding: 20px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; margin-bottom: 15px; }
.close, .close-sync { cursor: pointer; font-size: 24px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 4px; font-weight: 500; }
.form-group input, .form-group select { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 6px; }
button[type="submit"] { background: #3498db; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; }
.readonly-input { background: #e9ecef; cursor: not-allowed; }

/* Кнопка синхронизации */
#syncBtn { cursor: pointer; }