/* ===== DESIGN SYSTEM — LIGHT THEME ===== */
:root {
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-light: #34D399;
  --primary-glow: rgba(16, 185, 129, 0.12);
  --primary-glow-strong: rgba(16, 185, 129, 0.22);
  --vacant: #9CA3AF;
  --vacant-light: #D1D5DB;
  --bg-dark: #F3F4F6;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F9FAFB;
  --bg-surface: #FFFFFF;
  --bg-modal: #FFFFFF;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --accent-gold: #D97706;
  --accent-gold-light: #FCD34D;
  --danger: #EF4444;
  --danger-dark: #DC2626;
  --border: rgba(0,0,0,0.08);
  --border-light: rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 16px rgba(16, 185, 129, 0.1);
  --font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --brick-color: #C0705A;
  --brick-dark: #A85D4A;
  --brick-mortar: #E8D5C4;
}

/* ===== LOCK SCREEN ===== */
.lock-screen {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a2332 0%, #0f1923 50%, #162230 100%);
}
.lock-screen.unlocked { display: none; }
.lock-card {
  background: rgba(255,255,255,0.06); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl); padding: 48px 40px;
  text-align: center; width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: lockFadeIn 0.5s ease;
}
@keyframes lockFadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.lock-icon { font-size: 3rem; color: var(--primary); margin-bottom: 16px; }
.lock-title { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.lock-desc { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 28px; }
.lock-input {
  width: 100%; padding: 14px 18px; border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm); background: rgba(255,255,255,0.08);
  color: #fff; font-family: var(--font); font-size: 0.95rem;
  outline: none; transition: all var(--transition-fast);
}
.lock-input::placeholder { color: rgba(255,255,255,0.3); }
.lock-input:focus { border-color: var(--primary); background: rgba(255,255,255,0.12); box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
.lock-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; margin-top: 14px; border: none;
  border-radius: var(--radius-sm); background: var(--primary);
  color: #fff; font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition-fast);
}
.lock-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.lock-error { color: #EF4444; font-size: 0.8rem; margin-top: 14px; min-height: 1.2em; }
@keyframes lockShake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
.lock-card.shake { animation: lockShake 0.4s ease; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-left { display: flex; align-items: center; gap: 16px; }
.header-icon {
  font-size: 2.2rem; color: var(--primary);
  background: var(--primary-glow); padding: 10px; border-radius: var(--radius-md);
}
.header-title {
  font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-primary);
}
.header-address { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.header-right { display: flex; gap: 8px; }

.btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition-fast);
}
.btn-icon:hover {
  background: var(--primary-glow); color: var(--primary);
  border-color: var(--primary-glow-strong); box-shadow: var(--shadow-glow);
}

/* ===== TAB NAV ===== */
.tab-nav {
  display: flex; gap: 4px; padding: 12px 32px;
  background: #FFFFFF; border-bottom: 1px solid var(--border);
}
.tab-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 24px; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-muted);
  font-family: var(--font); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition-fast); position: relative;
}
.tab-btn:hover { color: var(--text-secondary); background: rgba(0,0,0,0.03); }
.tab-btn.active { color: var(--primary); background: var(--primary-glow); }
.tab-btn.active::after {
  content: ''; position: absolute; bottom: -13px; left: 50%;
  transform: translateX(-50%); width: 40px; height: 3px;
  background: var(--primary); border-radius: 2px;
}
.tab-btn .material-icons-round { font-size: 1.2rem; }

/* ===== MAIN ===== */
.main-content { padding: 24px 32px 48px; max-width: 1200px; margin: 0 auto; }
.tab-panel { display: none; animation: fadeIn 0.3s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== SUMMARY CARDS ===== */
.summary-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.summary-card {
  display: flex; align-items: center; gap: 14px; padding: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.summary-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.summary-icon {
  font-size: 1.8rem; padding: 10px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.04); color: var(--text-muted);
}
.summary-card.occupied .summary-icon { background: var(--primary-glow); color: var(--primary); }
.summary-card.vacant .summary-icon { background: rgba(156,163,175,0.12); color: var(--vacant); }
.summary-card.revenue .summary-icon { background: rgba(217,119,6,0.1); color: var(--accent-gold); }
.summary-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; }
.summary-value { font-size: 1.5rem; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.summary-card.revenue .summary-value { color: var(--accent-gold); }

/* ===== BUILDING — BRICK STYLE ===== */
.building-wrapper {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.building-wrapper::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brick-color), var(--brick-dark), var(--brick-color));
}
.building-label {
  font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 20px; font-weight: 600;
}
.building { display: flex; flex-direction: column; gap: 4px; }

/* Roof */
.building::before {
  content: '🏢 그린빌';
  display: flex; align-items: center; justify-content: center;
  padding: 14px; font-size: 1.1rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brick-dark), #8B4535);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.floor { display: flex; align-items: stretch; gap: 0; }
.floor-label {
  display: flex; align-items: center; justify-content: center;
  width: 52px; min-height: 130px;
  background: var(--brick-color);
  font-size: 0.8rem; font-weight: 700; color: #FFF;
  flex-shrink: 0;
  border-right: 3px solid var(--brick-mortar);
  border-bottom: 3px solid var(--brick-mortar);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  /* Brick pattern */
  background-image:
    linear-gradient(to right, var(--brick-mortar) 2px, transparent 2px),
    linear-gradient(to bottom, var(--brick-mortar) 2px, transparent 2px);
  background-size: 40px 20px;
  background-color: var(--brick-color);
}
.floor-rooms {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; flex: 1;
  background: var(--brick-mortar); padding: 3px;
  border-bottom: 3px solid var(--brick-mortar);
}
.floor-rooms.single-room { grid-template-columns: 1fr; }

/* ===== ROOM CARD ===== */
.room-card {
  position: relative; padding: 14px 16px; cursor: pointer;
  transition: all var(--transition-normal); border: none;
  min-height: 130px; display: flex; flex-direction: column;
  background: #FFF;
}
.room-card.vacant { background: #F0F0F0; }
.room-card.vacant:hover { background: #E5E5E5; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.room-card.occupied {
  background: linear-gradient(135deg, #E6F9F1, #F0FDF9);
  border-left: 4px solid var(--primary);
}
.room-card.occupied:hover { background: linear-gradient(135deg, #D1F5E7, #E6F9F1); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.room-number { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.room-number span:first-child { font-weight: 700; font-size: 1.05rem; }
.room-tenant { font-weight: 400; font-size: 0.75rem; color: #777; }

/* STATUS DOT — 3X LARGER (30px) */
.room-status-dot {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.room-card.occupied .room-status-dot {
  background: var(--primary);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  animation: pulse 2s infinite;
}
.room-card.occupied .room-status-dot::after {
  content: ''; width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
}
.room-card.vacant .room-status-dot {
  background: var(--vacant-light);
  border: 2px solid var(--vacant);
}
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(16,185,129,0.4); } 50% { opacity: 0.7; box-shadow: 0 0 20px rgba(16,185,129,0.6); } }

.room-info { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.room-info-item { font-size: 0.72rem; color: var(--text-primary); display: flex; justify-content: space-between; }
.room-info-item .label { color: var(--text-secondary); font-weight: 500; }
.room-info-item .value { font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.room-card.vacant .room-empty {
  display: flex; align-items: center; justify-content: center;
  flex: 1; color: var(--text-muted); font-size: 0.8rem; opacity: 0.6;
}

/* ===== CHARTS ===== */
.charts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 24px; }
.chart-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: box-shadow var(--transition-fast); box-shadow: var(--shadow-sm);
}
.chart-card:hover { box-shadow: var(--shadow-md); }
.chart-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 20px;
}
.chart-title .material-icons-round { font-size: 1.2rem; color: var(--primary); }
.chart-container { position: relative; height: 280px; }
.table-hint { font-size: 0.72rem; font-weight: 400; color: var(--text-muted); margin-left: auto; opacity: 0.7; }

/* ===== TABLE ===== */
.table-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
}
.table-wrapper { overflow-x: auto; }
.room-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.85rem; }
.room-table thead th {
  background: #F9FAFB; padding: 12px 16px; font-weight: 600; font-size: 0.78rem;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em;
  text-align: left; white-space: nowrap; border-bottom: 2px solid var(--border);
}
.room-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.room-table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.room-table tbody tr { cursor: pointer; transition: background var(--transition-fast); }
.room-table tbody tr:hover { background: #F3F4F6; }
.room-table tbody tr.occupied { background: rgba(16, 185, 129, 0.04); }
.room-table tbody tr.occupied:hover { background: rgba(16, 185, 129, 0.08); }
.room-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.room-table td:first-child {
  font-weight: 600; color: var(--text-primary);
  position: sticky; left: 0; z-index: 2;
  background: #fff;
}
.room-table thead th:first-child {
  position: sticky; left: 0; z-index: 3;
  background: #F9FAFB;
}
.room-table tbody tr.occupied td:first-child { background: rgba(240, 253, 249, 1); }
.room-table tbody tr:hover td:first-child { background: #F3F4F6; }
.room-table tbody tr.occupied:hover td:first-child { background: rgba(16, 185, 129, 0.08); }
.room-table td.empty { color: var(--text-muted); opacity: 0.4; }

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(4px);
  z-index: 1000; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; animation: overlayFadeIn 0.2s ease; }
@keyframes overlayFadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: #FFFFFF; border: 1px solid var(--border);
  border-radius: var(--radius-xl); width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh; overflow-y: auto;
}
.modal-wide { max-width: 640px; }
@keyframes modalSlideIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 600; }
.modal-title .material-icons-round { color: var(--primary); }
.btn-close {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-muted); cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-close:hover { background: rgba(239,68,68,0.08); color: var(--danger); }
.modal-body { padding: 24px; }

/* ===== FORM ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.input-unit { display: flex; align-items: center; gap: 8px; }
.input-unit .unit { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.form-group input, .form-group select {
  width: 100%; padding: 10px 14px;
  border: 1px solid #D1D5DB; border-radius: var(--radius-sm);
  background: #FFFFFF; color: var(--text-primary);
  font-family: var(--font); font-size: 0.9rem;
  transition: all var(--transition-fast); outline: none;
}
.input-unit input { flex: 1; }
.form-group input:focus, .form-group select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}
.form-group input::placeholder { color: var(--text-muted); opacity: 0.5; }
.form-group select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.form-group select option { background: #fff; color: var(--text-primary); }

.modal-actions {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
}
.btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 22px; border: none; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition-fast);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; box-shadow: 0 2px 8px rgba(16,185,129,0.25);
}
.btn-primary:hover { box-shadow: 0 4px 16px rgba(16,185,129,0.35); transform: translateY(-1px); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: rgba(239,68,68,0.06); border-color: var(--danger); }
.btn .material-icons-round { font-size: 1.1rem; }

/* ===== TREND ===== */
.trend-chart-container { position: relative; height: 320px; }
.trend-empty {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 48px 24px; color: var(--text-muted); font-size: 0.9rem;
}
.trend-empty .material-icons-round { font-size: 1.3rem; opacity: 0.6; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  background: #FFFFFF; border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  color: var(--text-primary); font-size: 0.85rem;
  animation: toastIn 0.3s ease; min-width: 260px;
}
.toast.success { border-left: 3px solid var(--primary); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--accent-gold); }
.toast .material-icons-round { font-size: 1.2rem; }
.toast.success .material-icons-round { color: var(--primary); }
.toast.error .material-icons-round { color: var(--danger); }
.toast.info .material-icons-round { color: var(--accent-gold); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(20px); } }

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(243, 244, 246, 0.92); backdrop-filter: blur(8px);
  z-index: 3000; align-items: center; justify-content: center;
  flex-direction: column;
}
.loading-overlay.visible { display: flex; animation: fadeIn 0.3s ease; }
.loading-content { text-align: center; }
.loading-spinner {
  width: 48px; height: 48px; border: 4px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-message {
  color: var(--text-secondary); font-size: 0.95rem; font-weight: 500;
}

/* ===== CONNECTION STATUS ===== */
.connection-status {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 500;
  background: rgba(0,0,0,0.04); color: var(--text-muted);
  transition: all var(--transition-normal);
}
.connection-status.connected {
  background: var(--primary-glow); color: var(--primary);
}
.connection-status.disconnected {
  background: rgba(239,68,68,0.08); color: var(--danger);
}
.connection-status .status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-muted); flex-shrink: 0;
}
.connection-status.connected .status-dot {
  background: var(--primary);
  box-shadow: 0 0 6px rgba(16,185,129,0.5);
  animation: pulse 2s infinite;
}
.connection-status.disconnected .status-dot {
  background: var(--danger);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) { .charts-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .header { padding: 16px 20px; flex-direction: column; gap: 12px; }
  .header-right { width: 100%; justify-content: flex-end; }
  .tab-nav { padding: 10px 20px; }
  .main-content { padding: 16px 16px 40px; }
  .summary-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .summary-card { padding: 14px; }
  .summary-value { font-size: 1.2rem; }
  .building-wrapper { padding: 16px; }
  .floor-rooms { grid-template-columns: repeat(2, 1fr) !important; }
  .floor-label { width: 38px; font-size: 0.7rem; min-height: 80px; }
  .room-card { padding: 10px 12px; min-height: 90px; }
  .room-number span:first-child { font-size: 0.9rem; }
  .room-info-item { font-size: 0.65rem; }
  .room-status-dot { width: 22px; height: 22px; }
  .modal, .modal-wide { max-width: 100%; border-radius: var(--radius-lg); }
  .chart-container { height: 220px; }
  .trend-chart-container { height: 250px; }
}
@media (max-width: 480px) {
  .summary-cards { grid-template-columns: repeat(2, 1fr); }
  .summary-card { padding: 10px; gap: 8px; }
  .summary-icon { font-size: 1.4rem; padding: 6px; }
  .summary-value { font-size: 1.1rem; }
  .summary-label { font-size: 0.68rem; }
  .header-title { font-size: 1.15rem; }
}

/* ===== EXPIRING ROOM (move-out within 1 month) ===== */
.room-card.expiring {
  background: linear-gradient(135deg, #FEF9E7, #FDF6B2) !important;
  border-left: 4px solid #F59E0B !important;
}
.room-card.expiring:hover {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A) !important;
}
.room-card.expiring .room-status-dot {
  background: #F59E0B !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important;
}

/* ===== ACTION SELECT POPUP ===== */
.action-select-modal { max-width: 380px; }
.action-select-body {
  display: flex; flex-direction: column; gap: 12px; padding: 20px 24px 24px;
}
.action-select-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--bg-card);
  cursor: pointer; transition: all var(--transition-fast);
  font-family: var(--font); text-align: left;
}
.action-select-btn:hover {
  background: var(--primary-glow); border-color: var(--primary);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.action-select-btn .material-icons-round {
  font-size: 1.6rem; color: var(--primary); flex-shrink: 0;
}
.action-select-btn span:nth-child(2) {
  font-size: 0.95rem; font-weight: 600; color: var(--text-primary);
}
.action-desc {
  display: block; font-size: 0.72rem !important; font-weight: 400 !important;
  color: var(--text-muted) !important; margin-top: 2px;
}

/* ===== REPAIR TABLE CELLS ===== */
.repair-cell { text-align: center; font-size: 0.75rem; color: var(--text-muted); min-width: 60px; }
.repair-cell.has-data { background: rgba(239, 68, 68, 0.04); color: var(--text-primary); }
.repair-keyword { display: block; font-size: 0.65rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70px; }
.repair-cost-sm { display: block; font-weight: 600; font-size: 0.72rem; color: #EF4444; margin-top: 2px; }
.room-col { font-weight: 600 !important; }
.total-col { font-weight: 700; color: #EF4444 !important; text-align: center; }
tr.has-repairs { background: rgba(239, 68, 68, 0.02); }
tr.has-repairs:hover { background: rgba(239, 68, 68, 0.06) !important; }

/* Repair detail */
.repair-detail-total {
  text-align: right; font-size: 1rem; font-weight: 700;
  color: #EF4444; padding: 16px 0 0; margin-top: 12px;
  border-top: 2px solid var(--border);
}
.cost-cell { font-weight: 600; color: var(--text-primary) !important; text-align: right; }
.btn-delete-repair {
  display: flex; align-items: center; justify-content: center;
  border: none; background: none; color: var(--text-muted);
  cursor: pointer; padding: 4px; border-radius: 4px;
  transition: all var(--transition-fast);
}
.btn-delete-repair:hover { color: #EF4444; background: rgba(239, 68, 68, 0.08); }
