@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #f9fbfa;
  --surface: #ffffff;
  --primary: #2d5a27;
  --secondary: #8b5e3c;
  --muted: #e2e8f0;
  --text: #0f172a;
  --accent-blue: #457b9d;
  --weekend: #d92c4c;
  --confirmed: #769471;
  --pending: #e9c46a;
  --issue: #e76f51;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

.hidden {
  display: none !important;
}

button {
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  background: var(--primary);
  color: #fff;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
}

button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--muted);
}

button.primary {
  background: #1d4ed8;
}

input,
select {
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  width: 100%;
}

label {
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: #111827;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  font-weight: 500;
  gap: 0.5rem;
}

.login-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.85)), url("/static/img/background.jpg") center/cover no-repeat;
  overflow: hidden;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: center;
}

.login-card h1 {
  margin: 0;
  font-size: 32px;
  color: var(--text);
}

.login-bears {
  position: absolute;
  bottom: 8px;
  left: 8px;
  max-width: 200px;
  width: 20vw;
  pointer-events: none;
  user-select: none;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.message {
  margin: 0.5rem 0 0;
  color: var(--issue);
  font-weight: 700;
}

.message.error {
  color: var(--issue);
}

.dashboard-layout {
  display: block;
  min-height: 100vh;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #d1d5db;
}

.status-dot.clean {
  background: #22c55e;
  border-color: #16a34a;
}

.status-dot.dirty {
  background: #f97316;
  border-color: #ea580c;
}

.status-dot.cleaning {
  background: #fbbf24;
  border-color: #f59e0b;
}

.status-dot.inspect {
  background: #9ca3af;
  border-color: #6b7280;
}

.tag-dropdown {
  position: absolute;
  top: 46px;
  left: 0;
  width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  padding: 10px 12px;
  z-index: 10;
}

.tag-dropdown.hidden {
  display: none;
}

.tag-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: #1f2937;
}

.tag-subtitle {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 8px;
  color: #374151;
}

.tag-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 6px;
}

.tag-item input {
  width: 16px;
  height: 16px;
}

.tag-item .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #d1d5db;
}

.dot.dirty {
  background: #f97316;
  border-color: #ea580c;
}

.dot.cleaning {
  background: #fbbf24;
  border-color: #f59e0b;
}

.dot.inspect {
  background: #9ca3af;
  border-color: #6b7280;
}

.dot.clean {
  background: #3b82f6;
  border-color: #2563eb;
}

.dot.verified {
  background: #22c55e;
  border-color: #16a34a;
}

.sidebar-section-title {
  font-weight: 700;
  font-size: 13px;
  color: #1f2937;
  margin-top: 6px;
}

.sidebar-tree {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.tree-category {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.tree-cat-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-weight: 700;
  color: #1f2937;
  border-bottom: 1px solid #e5e7eb;
}

.cat-bullet {
  color: #94a3b8;
}

.tree-rooms {
  display: flex;
  flex-direction: column;
}

.tree-room {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
}

.tree-room:first-child {
  border-top: none;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #d1d5db;
}

.status-dot.clean {
  background: #22c55e;
  border-color: #16a34a;
}

.status-dot.dirty {
  background: #f97316;
  border-color: #ea580c;
}

.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--muted);
  padding-top: 1rem;
}

.profile-chip {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-name {
  font-weight: 700;
}

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 6;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #fff;
  flex-shrink: 0;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.2px;
}

.brand-word {
  color: #d42527;
}

.brand-pms {
  color: #00a6e6;
}

.login-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  border: none;
  box-shadow: none;
  display: block;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
}

.nav-center {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.nav-link {
  color: #1f3b8a;
  font-weight: 600;
  cursor: pointer;
}

.nav-link.active {
  text-decoration: underline;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.search-area {
  flex: 1;
}

.search-area input {
  width: 100%;
  border: 1px solid #d8dce3;
  background: #f8fafc;
}

.weather-chip {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: #e8f1ff;
  color: #1f2937;
  font-weight: 600;
}

.icon-bar {
  display: flex;
  gap: 6px;
  align-items: center;
}

.icon-btn {
  border: 1px solid #d8dce3;
  border-radius: 10px;
  padding: 6px 8px;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
}

.avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fbbf24;
  color: #111827;
  display: grid;
  place-items: center;
  font-weight: 700;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  position: relative;
}

.list-block {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.list-item {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.list-sub {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #475569;
}

.avatar-menu {
  position: absolute;
  top: 46px;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  min-width: 210px;
  padding: 8px 0;
  z-index: 20;
}

.avatar-menu.hidden {
  display: none;
}

.avatar-menu-item {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
}

.avatar-menu-item:hover {
  background: #f3f4f6;
}

.avatar-menu-item.danger {
  color: #b91c1c;
}

.avatar-menu-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 6px 0;
}

.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(#fdfdfd, #f6f7fb);
  flex-wrap: wrap;
  position: sticky;
  top: 56px;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.view-switch {
  display: flex;
  gap: 6px;
}

.pill-tab {
  border: 1px solid #d5d8e0;
  background: #f9fafb;
  color: #334155;
  padding: 6px 12px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pill-tab.active {
  background: #e9efff;
  border-color: #cbd5ff;
  color: #1d4ed8;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.compact {
  padding: 6px 10px;
  border-radius: 8px;
}

.ghost.icon {
  font-size: 14px;
}

.nav-controls.compact {
  display: flex;
  gap: 6px;
}

.filters-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}
.search-input {
  min-width: 200px;
  padding: 8px 10px;
  border: 1px solid #d8dce3;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 13px;
}

.inline-field {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-field .ghost.compact {
  padding: 6px 10px;
  border-radius: 8px;
}

.icon-ghost {
  border: 1px solid #d8dce3;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 30;
}

.detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(480px, 90vw);
  height: 100vh;
  background: #fff;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.18);
  z-index: 31;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow-y: auto;
  border-left: 1px solid #e5e7eb;
}

.detail-meta {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin-bottom: 12px;
  font-size: 13px;
}

.detail-meta .label {
  color: #475569;
}

.detail-meta .value {
  font-weight: 700;
  text-align: right;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.detail-close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.detail-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill-button {
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid #d8dce3;
  background: #f8fafc;
  color: #1f2937;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-button[data-status="new"] {
  background: #eef2ff;
  color: #312e81;
  border-color: #c7d2fe;
}

.pill-button[data-status="checked"] {
  background: #e5f3d6;
  color: #1f2f0f;
  border-color: #c8e2a3;
}

.pill-button[data-status="stay"] {
  background: #c5f1e0;
  color: #064e3b;
  border-color: #7ce0c5;
}

.pill-button[data-status="cancelled"] {
  background: #fff5f5;
  color: #b91c1c;
  border-color: #fca5a5;
}

.pill-button[data-status="pending"] {
  background: #fff7e6;
  color: #92400e;
  border-color: #fcd9a5;
}

.pill-button:hover {
  filter: brightness(0.95);
}

.pill-button.active {
  box-shadow: 0 0 0 2px rgba(0, 98, 227, 0.2);
}

.pill-button.active[data-status="new"] {
  background: #d9e0ff;
  border-color: #7c8cf8;
}

.pill-button.active[data-status="checked"] {
  background: #d8efbe;
  border-color: #8ec858;
}

.pill-button.active[data-status="stay"] {
  background: #a7e8d0;
  border-color: #26a07a;
  color: #034330;
}

.pill-button.active[data-status="cancelled"] {
  background: #ffe0e0;
  border-color: #f87171;
  color: #9f1239;
}

.pill-button.active[data-status="pending"] {
  background: #ffe2b8;
  border-color: #f59e0b;
}

.pill-button.danger {
  color: #b91c1c;
  border-color: #fca5a5;
  background: #fff5f5;
}

.detail-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.detail-block {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #f8fafc;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  margin: 4px 0;
}

.detail-label {
  color: #475569;
}

.detail-value {
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

.filter-select {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.filter-select select {
  min-width: 190px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  font-size: 13px;
}

.checkbox.compact {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  margin-right: 6px;
}

.filters-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  flex-wrap: wrap;
  background: #fbfcff;
}

.status-legend {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status-legend.compact {
  gap: 6px;
}

.legend-item {
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  background: #f1f5f9;
  font-weight: 600;
  font-size: 12px;
}

.legend-item.confirmed {
  background: var(--confirmed);
  color: #fff;
}

.legend-item.waiting {
  background: var(--pending);
  color: #1e293b;
}

.legend-item.today {
  background: var(--accent-blue);
  color: #fff;
}

.legend-item.issue {
  background: var(--issue);
  color: #fff;
}

.board-shell {
  padding: 0 12px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-section {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.board-wrapper {
  width: 100%;
  overflow: auto;
}

.board-header {
  background: var(--surface);
  border: 1px solid #e6e9f0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.board-body {
  background: var(--surface);
  border: 1px solid #e6e9f0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
  position: relative;
}
.weekend-band {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #f3f4f7;
  z-index: 1;
  pointer-events: none;
}

.header-row {
  display: grid;
  border-bottom: 1px solid #e6e9f0;
}

.header-row:last-child {
  border-bottom: none;
}

.header-row .cell {
  padding: 7px 6px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  border-right: 1px solid var(--muted);
  position: relative;
}

.header-row .cell:last-child {
  border-right: none;
}

.header-row .label {
  text-align: left;
  font-weight: 700;
  background: #f8fafc;
  color: #1f2937;
  position: sticky;
  left: 0;
  z-index: 10;
}

.header-row .weekend {
  background: #f3f4f7;
  color: var(--weekend);
}

.header-row .day-num {
  color: #1f2937;
  font-weight: 700;
}

.header-row .day-week {
  color: #606c7b;
  font-size: 11px;
  margin-top: 2px;
}

.category-block {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--muted);
}

.category-block:last-child {
  border-bottom: none;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 6px;
  font-weight: 800;
  font-size: 13px;
  color: var(--primary);
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0fdf4;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.quota-row,
.row-grid {
  display: grid;
}

.quota-row {
  font-size: 0.85rem;
  background: #f9fafc;
}

.quota-label,
.quota-cell {
  padding: 6px 8px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  text-align: center;
  font-weight: 700;
}

.quota-label {
  text-align: left;
  background: #f1f5f9;
}

.row-grid {
  position: relative;
  border-bottom: 1px solid #edf0f5;
  grid-auto-rows: 26px;
  z-index: 2;
}

.row-grid:last-child {
  border-bottom: none;
}

.room-cell {
  padding: 4px 8px;
  background: #f8fafc;
  border-right: 1px solid #e9edf4;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  grid-row: 1;
  position: sticky;
  left: 0;
  z-index: 9;
}

.room-cell.dirty {
  background: #fff2f0;
}

.room-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  background: #22c55e;
}

.day-cell {
  min-height: 26px;
  border-right: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
  grid-row: 1;
}

.day-cell.weekend {
  background: transparent;
}

.day-cell.today,
.header-row .today {
  background: #ffe5e9;
  border-left: 1px solid #d92c4c;
  border-right: 1px solid #d92c4c;
}
.day-cell.past-hour,
.header-row .past-hour {
  background: #ffe5e9;
  color: #6b7280;
}

.today-line {
  position: absolute;
  top: 0;
  width: 2px;
  background: #d92c4c;
  opacity: 0.9;
  pointer-events: none;
}

.booking {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  padding: 6px 10px;
  padding-right: 44px;
  align-self: stretch;
  margin: 2px 2px;
  color: #0f172a;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  cursor: grab;
  position: relative;
  font-size: 11px;
  align-items: flex-start;
  min-width: 48px;
  min-height: 26px;
  grid-row: 1;
}

.booking.confirmed {
  background: var(--confirmed);
  color: #fff;
}

.booking.pending,
.booking.new {
  background: #c5e7ff;
  color: #0f1f38;
}

.booking.checked {
  background: #e5f3d6;
  color: #1f2f0f;
}

.booking.stay {
  background: #b9e6d3;
  color: #0f2f28;
}

.booking.cancelled {
  background: #ffe4e6;
  color: #b91c1c;
}

.booking.pending {
  background: var(--pending);
}

.booking.debt {
  box-shadow: inset 0 4px 0 var(--issue);
}

.booking-guest {
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.day-cell.drop-hover {
  outline: 2px dashed var(--primary);
  outline-offset: -2px;
}

.booking-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  background: rgba(255, 255, 255, 0.85);
  color: #111827;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.booking-badge.badge-debt {
  background: #fee2e2;
  color: #b91c1c;
}

.booking-badge.badge-paid {
  background: #e8f5e9;
  color: #14532d;
}

.booking-source {
  position: static;
  font-size: 12px;
  opacity: 0.85;
}

.resize-handle {
  position: absolute;
  top: 0;
  width: 8px;
  height: 100%;
  cursor: ew-resize;
  opacity: 0.6;
  background: rgba(15, 23, 42, 0.06);
}

.resize-handle.left {
  left: 0;
}

.resize-handle.right {
  right: 0;
}

.booking-tooltip {
  position: fixed;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  min-width: 240px;
  max-width: 320px;
  font-size: 13px;
  z-index: 1000;
}

.booking-tooltip.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.hidden {
  display: none;
}

.modal-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  min-width: 360px;
  max-width: 520px;
  width: 90%;
  padding: 14px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.tip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 700;
  color: #111827;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.status-badge.confirmed {
  background: #e8f4ea;
  color: #256134;
}

.status-badge.pending {
  background: #fff4e0;
  color: #b7791f;
}

.status-badge.maintenance {
  background: #f3f4f6;
  color: #374151;
}

.tip-id {
  font-weight: 600;
  color: #4b5563;
}

.tip-dates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  font-size: 12px;
  color: #374151;
  margin-bottom: 8px;
}

.tip-dates .nights {
  text-align: center;
  font-weight: 700;
}

.tip-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 4px;
}

.tip-row strong {
  color: #111827;
  font-weight: 700;
}

@media (max-width: 960px) {
  .sidebar {
    display: none;
  }
  .topbar {
    flex-wrap: wrap;
  }
  .controls-bar {
    gap: 8px;
  }
  .filters-inline {
    flex-direction: column;
    align-items: flex-start;
  }
}
.category-row .room-cell,
.cat-cell {
  background: #f3f4f6;
  font-weight: 800;
}

.free-row .room-cell,
.free-cell {
  background: #f9fafc;
  font-weight: 700;
}

.tariff-grid {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tariff-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tariff-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.tariff-cat-name {
  font-size: 16px;
  font-weight: 800;
}

.tariff-meta {
  color: #6b7280;
  font-size: 13px;
  margin-top: 2px;
}

.tariff-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tariff-table {
  width: 100%;
  border-collapse: collapse;
}

.tariff-table th,
.tariff-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 13px;
}

.tariff-table th {
  background: #f8fafc;
  font-weight: 700;
}

.tariff-row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.dash-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.03); }
.dash-card.wide { grid-column: span 2; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.stat-tile { border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px; text-align: center; background: #f8fafc; }
.stat-tile .stat-value { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.stat-tile .stat-label { font-size: 12px; color: #4b5563; }
.stat-tile.danger { background: #fff5f5; border-color: #fecdd3; }
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ring { --occ: 0; width: 160px; height: 160px; margin: 0 auto; border-radius: 50%; background: conic-gradient(#22c55e calc(var(--occ) * 1%), #e5e7eb 0); display: flex; align-items: center; justify-content: center; }
.ring-value { background: #fff; width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; box-shadow: inset 0 0 0 1px #e5e7eb; }
.stat-inline { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.cat-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f1f5f9; }


.analytics-wrap { max-width: 1200px; margin: 0 auto; }


.view-switch {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

