* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --bg: #f0f2f5;
  --surface: #fff;
  --border: #e0e0e0;
  --text: #202124;
  --text-muted: #5f6368;
  --band: #34a853;
  --booked: #fbbc04;
  --debt: #ea4335;
  --free: #e8f0fe;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  min-height: 100vh;
}

/* SCROLL BUTTONS */
.scroll-btns {
  position: fixed;
  right: 18px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 300;
}
.scroll-horiz {
  display: flex;
  gap: 6px;
}
.scroll-btn-sm {
  width: 36px !important;
  height: 36px !important;
  font-size: 13px !important;
}
.scroll-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26,115,232,.45);
  transition: all .18s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.scroll-btn:hover { background: var(--primary-dark); transform: scale(1.1); }
.scroll-btn:active { transform: scale(.95); }

/* HEADER */
.header {
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(26,115,232,.35);
}

.header-left { display: flex; align-items: center; gap: 8px; }

/* FILIAL TANLAGICH */
.branch-wrap { display: flex; align-items: center; gap: 5px; margin-left: 10px; }
.branch-select {
  background: rgba(255,255,255,.15); color: #fff;
  border: 1.5px solid rgba(255,255,255,.4); border-radius: 8px;
  padding: 6px 10px; font-size: 13px; font-weight: 600; cursor: pointer; max-width: 180px;
}
.branch-select option { color: #202124; }
.branch-add {
  background: rgba(255,255,255,.15); color: #fff;
  border: 1.5px solid rgba(255,255,255,.4); border-radius: 8px;
  width: 32px; height: 33px; cursor: pointer; font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.branch-add:hover, .branch-select:hover { background: rgba(255,255,255,.28); }
.logo { font-size: 22px; }
.logo-text { font-size: 18px; color: #fff; letter-spacing: -0.5px; }
.logo-text strong { font-weight: 800; }

.nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-btn {
  padding: 6px 18px;
  border: none;
  background: rgba(255,255,255,.15);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  transition: all .15s;
}
.nav-btn:hover { background: rgba(255,255,255,.28); color: #fff; }
.nav-btn.active { background: #fff; color: var(--primary); font-weight: 700; }

.header-right { display: flex; align-items: center; gap: 10px; min-width: 180px; justify-content: flex-end; }
.role-badge { font-size: 12px; padding: 4px 10px; border-radius: 12px; font-weight: 600; }
.role-badge.admin { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.3); }

/* BUTTONS */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  padding: 7px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
}
.btn-outline:hover { background: rgba(255,255,255,.28); }

/* Outside header */
.modal .btn-outline, .modal-footer .btn-outline,
.page .btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.modal .btn-outline:hover, .modal-footer .btn-outline:hover,
.page .btn-outline:hover { background: var(--free); }

.btn-checkout {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1.5px solid #2e7d32;
  padding: 7px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all .15s;
}
.btn-checkout:hover { background: #2e7d32; color: #fff; }

.btn-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: all .15s;
}
.btn-nav:hover { border-color: var(--primary); color: var(--primary); }

/* PAGES */
.page { display: none; padding: 20px; max-width: 1400px; margin: 0 auto; }
.page.active { display: block; }

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.page-toolbar h2 { font-size: 20px; font-weight: 700; color: var(--text); }
.toolbar-right { display: flex; align-items: center; gap: 10px; }

.search-input {
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  width: 220px;
  outline: none;
  transition: border-color .15s;
}
.search-input:focus { border-color: var(--primary); }

.week-label-wrap { position: relative; display: flex; align-items: center; }

.week-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  min-width: 140px;
  text-align: center;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  transition: all .15s;
  white-space: nowrap;
}
.week-label:hover { border-color: var(--primary); background: var(--free); }

.jump-date-input {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  background: transparent;
}

/* LEGEND ROW */
.legend-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.legend-row .legend { margin-bottom: 0; }

.btn-group-bron {
  background: linear-gradient(135deg, #1a73e8, #9c27b0);
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(26,115,232,.3);
  transition: opacity .15s;
  white-space: nowrap;
}
.btn-group-bron:hover { opacity: .88; }

/* GROUP BRON */
.group-info-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 4px; }

.grp-gender-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.grp-gender-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  flex: 1;
  min-width: 130px;
}
.grp-gender-box.male   { background: #e3f2fd; border-color: #1976d2; }
.grp-gender-box.female { background: #fce4ec; border-color: #e91e63; }
.grp-gender-box.male   .form-row label { color: #1976d2; }
.grp-gender-box.female .form-row label { color: #e91e63; }
.grp-gender-box .form-row { margin: 0; gap: 3px; }
.grp-gender-box .form-row input {
  width: 90px;
  padding: 6px 10px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
}
.grp-gender-icon { font-size: 26px; }
.grp-gender-plus, .grp-gender-eq {
  font-size: 20px;
  font-weight: 800;
  color: #9e9e9e;
}
.grp-total-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

/* Gender badges in rooms result */
.grp-gender-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}
.grp-gender-badge.male   { background: #e3f2fd; color: #1976d2; }
.grp-gender-badge.female { background: #fce4ec; color: #e91e63; }

/* Name section gender header */
.grp-name-section.male h4   { background: #e3f2fd; color: #1976d2; }
.grp-name-section.female h4 { background: #fce4ec; color: #e91e63; }

.grp-room-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--surface);
  transition: border-color .15s;
}
.grp-room-card.selected { border-color: var(--primary); background: #f0f4ff; }
.grp-room-card .grp-room-no { font-size: 20px; font-weight: 800; color: var(--primary); min-width: 48px; }
.grp-room-card .grp-room-info { flex: 1; }
.grp-room-card .grp-room-info small { color: var(--text-muted); font-size: 12px; }

.grp-name-section { margin-bottom: 16px; }
.grp-name-section h4 { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 8px; padding: 6px 10px; background: #e8f0fe; border-radius: 6px; }
.grp-name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.no-rooms-msg { text-align: center; color: var(--text-muted); padding: 24px; font-size: 14px; }

/* CHESS STATS */
.chess-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.cs-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}
.cs-chip .cs-num { font-size: 17px; font-weight: 800; }
.cs-chip.total  { border-color: #1a73e8; }
.cs-chip.total .cs-num { color: #1a73e8; }
.cs-chip.beds   { border-color: #9c27b0; }
.cs-chip.beds .cs-num { color: #9c27b0; }
.cs-chip.free   { border-color: #34a853; }
.cs-chip.free .cs-num { color: #34a853; }
.cs-chip.band   { border-color: #ea4335; }
.cs-chip.band .cs-num { color: #ea4335; }
.cs-chip.booked { border-color: #fbbc04; }
.cs-chip.booked .cs-num { color: #e37400; }
.cs-chip.checkout { border-color: #9e9e9e; }
.cs-chip.checkout .cs-num { color: #5f6368; font-size: 15px; }
.cs-chip.checkin { border-color: #1a73e8; background: #e8f0fe; }
.cs-chip.checkin .cs-num { color: #1a73e8; }
.cs-chip small { font-size: 11px; font-weight: 500; color: var(--text-muted); }

/* LEGEND */
.legend {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.leg {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.leg.band { background: #e6f4ea; color: #2e7d32; }
.leg.booked { background: #fef9e6; color: #856404; }
.leg.debt { background: #fce8e6; color: #b31412; }
.leg.free { background: #e8eaed; color: #3c4043; }

/* SHAXMATKA TABLE */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

.chess-table {
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 100%;
}

.chess-table th {
  background: #f1f3f4;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--border);
  white-space: nowrap;
  color: var(--text-muted);
  position: sticky;
  top: 0;
}

.chess-table th.room-header {
  text-align: left;
  min-width: 90px;
  position: sticky;
  left: 0;
  z-index: 10;
  background: #e8eaed;
  color: var(--text);
  box-shadow: 3px 0 6px rgba(0,0,0,.12);
  clip-path: inset(0px -10px 0px 0px);
}

.chess-table td {
  border: 1px solid var(--border);
  text-align: center;
  padding: 0;
  height: 40px;
  min-width: 52px;
}

.chess-table td.room-name {
  font-weight: 700;
  font-size: 13px;
  padding: 0 12px;
  text-align: left;
  position: sticky;
  left: 0;
  background: #f8f9fa;
  z-index: 5;
  white-space: nowrap;
  color: var(--text);
  box-shadow: 3px 0 6px rgba(0,0,0,.10);
  clip-path: inset(0px -10px 0px 0px);
}

.cell-inner {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: filter .1s;
  border-radius: 0;
}
.cell-inner:hover { filter: brightness(.9); }
.cell-inner.free { background: #fff; color: #bbb; }
.cell-inner.free:hover { background: #e8f0fe; color: var(--primary); }
.cell-inner.editing { background: #fff; padding: 0; }

.cell-edit-input {
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary);
  outline: none;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 0 2px;
  color: var(--text);
  border-radius: 0;
  box-shadow: 0 0 0 3px rgba(26,115,232,.2);
}
.cell-inner.band { background: #34a853; color: #fff; }

.free-spot-badge {
  display: inline-block;
  background: rgba(255,255,255,0.35);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 0 3px;
  border-radius: 4px;
  margin-left: 2px;
  vertical-align: middle;
  border: 1px solid rgba(255,255,255,0.5);
}
.cell-inner.booked { background: #fbbc04; color: #3c4043; }
.cell-inner.debt { background: #ea4335; color: #fff; }

/* DATA TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.data-table thead th {
  background: #f1f3f4;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}
.data-table tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
.data-table tbody tr:hover { background: #f8f9ff; }
.data-table tbody td {
  padding: 10px 12px;
  font-size: 13px;
  vertical-align: middle;
}

.status-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.status-YASHAMOQDA { background: #e6f4ea; color: #2e7d32; }
.status-BRON { background: #fef9e6; color: #856404; }
.status-KETGAN { background: #f1f3f4; color: #5f6368; }
.status-QARZDOR { background: #fce8e6; color: #b31412; }

.debt-text { color: #ea4335; font-weight: 700; }
.paid-text { color: #34a853; font-weight: 700; }

/* ACTION BUTTONS */
.action-btns { display: flex; gap: 6px; }
.btn-icon {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  transition: background .15s;
}
.btn-icon:hover { background: #e8eaed; }

/* STATS */
.stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.stat-card {
  flex: 1;
  min-width: 160px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid transparent;
}
.stat-card.green { border-color: #34a853; }
.stat-card.red { border-color: #ea4335; }
.stat-card.blue { border-color: var(--primary); }
.stat-val { font-size: 22px; font-weight: 800; color: var(--text); }
.stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-card.green .stat-val { color: #2e7d32; }
.stat-card.red .stat-val { color: #c62828; }
.stat-card.blue .stat-val { color: var(--primary); }

/* KASSA */
.kassa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kassa-col h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--text); }

/* MODAL */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.modal-bg.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: 12px;
  width: 460px;
  max-width: 96vw;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #f8f9fa;
}
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-muted); padding: 2px 6px; border-radius: 4px; }
.modal-close:hover { background: #e8eaed; color: var(--text); }

.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; max-height: 65vh; overflow-y: auto; }

.form-row { display: flex; flex-direction: column; gap: 4px; }
.form-row label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.form-row input, .form-row select {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s;
}
.form-row input:focus, .form-row select:focus { border-color: var(--primary); }

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: #f8f9fa;
}

/* DETAIL MODAL */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-item { background: #f8f9fa; padding: 10px 14px; border-radius: var(--radius); }
.detail-item .dlbl { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.detail-item .dval { font-size: 15px; font-weight: 700; margin-top: 2px; }

/* ===== QO'NG'IROQCHA (XABARNOMA) ===== */
.notif-wrap { position: relative; }
.notif-bell {
  position: relative;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  width: 38px; height: 34px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.notif-bell:hover { background: rgba(255,255,255,.28); }
.notif-bell.has-notif { animation: bellRing 1.4s ease-in-out infinite; }
@keyframes bellRing {
  0%,88%,100% { transform: rotate(0); }
  90% { transform: rotate(12deg); } 94% { transform: rotate(-10deg); } 97% { transform: rotate(6deg); }
}
.notif-badge {
  position: absolute; top: -6px; right: -6px;
  background: #ea4335; color: #fff;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #1557b0;
}
.notif-panel {
  position: absolute; top: 44px; right: 0;
  width: 330px; max-height: 70vh; overflow-y: auto;
  background: #fff; color: var(--text);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  z-index: 200;
  display: none;
  animation: notifPop .15s ease;
}
.notif-panel.show { display: block; }
@keyframes notifPop { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: translateY(0); } }
.notif-head {
  padding: 12px 16px; font-weight: 700; font-size: 14px;
  border-bottom: 1px solid var(--border);
  background: #f8f9fa; border-radius: 12px 12px 0 0;
  position: sticky; top: 0;
}
.notif-list { padding: 6px; }
.notif-empty { padding: 24px 16px; text-align: center; color: var(--text-muted); font-size: 13px; }
.notif-item {
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  border-left: 3px solid var(--booked); margin: 4px 2px; background: #fffbf0;
  transition: background .12s;
}
.notif-item:hover { background: #fff3d6; }
.notif-item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.notif-item-top b { font-size: 14px; }
.notif-room { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.notif-item-bot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.notif-debt { color: var(--debt); font-weight: 700; }
.notif-paid { color: var(--band); font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 700px) {
  .header { padding: 0 12px; gap: 10px; }
  .logo-text { display: none; }
  .nav-btn { padding: 5px 10px; font-size: 12px; }
  .page { padding: 12px; }
  .kassa-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 10px; }
  .chess-table td { min-width: 38px; }
  .modal { width: 98vw; }
  .notif-panel { width: 92vw; right: -8px; }
  .branch-select { max-width: 120px; font-size: 12px; padding: 5px 7px; }
  .branch-wrap { margin-left: 4px; }
}

/* RESIZE HANDLES */
.chess-table th,
.chess-table td.room-name { position: relative; }

.col-resizer {
  position: absolute;
  top: 0; right: 0;
  width: 5px;
  height: 100%;
  cursor: col-resize;
  z-index: 20;
  background: transparent;
  user-select: none;
}
.col-resizer:hover,
.col-resizer.resizing { background: var(--primary); opacity: .5; }

.row-resizer {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 5px;
  cursor: row-resize;
  z-index: 20;
  background: transparent;
  user-select: none;
}
.row-resizer:hover,
.row-resizer.resizing { background: var(--primary); opacity: .5; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* FIO FIELDS */
#fioFields { display: flex; flex-direction: column; gap: 12px; }
#fioFields .form-row label { color: var(--primary); }

/* XONALAR MODAL */
.add-room-form { background: #f8f9fa; border-radius: var(--radius); padding: 14px; margin-bottom: 4px; }
.add-room-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.add-room-row .form-row { min-width: 80px; }

.rooms-divider { height: 1px; background: var(--border); margin: 12px 0; }

.room-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--surface);
  gap: 10px;
  transition: border-color .15s;
}
.room-item:hover { border-color: var(--primary); }

.room-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  min-width: 46px;
}
.room-info { flex: 1; }
.room-info .rtype { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.room-info .rprice { font-size: 13px; font-weight: 700; color: var(--text); }

.room-edit-fields {
  display: none;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.room-item.editing .room-edit-fields { display: flex; }
.room-item.editing { border-color: var(--primary); background: #f0f4ff; }

.room-no-rooms {
  text-align: center;
  color: var(--text-muted);
  padding: 24px;
  font-size: 14px;
}
