/* =============================================================================
   Hôtel Gai Soleil — styles applicatifs
   ============================================================================= */

:root {
  --bg: #f3eee6;
  --bg-elevated: #faf7f2;
  --surface: #ffffff;
  --text: #2a2622;
  --text-muted: #6b635a;
  --border: #e4ddd3;
  --accent: #b8860b;
  --accent-soft: #f5ead0;
  --accent-dark: #8a6508;
  --sidebar-bg: #2c2925;
  --sidebar-text: #f3eee6;
  --sidebar-muted: #a89f94;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --warning: #b54708;
  --warning-bg: #fffaeb;
  --success: #067647;
  --success-bg: #ecfdf3;
  --orange: #c2410c;
  --shadow: 0 1px 3px rgba(42, 38, 34, 0.06), 0 4px 12px rgba(42, 38, 34, 0.04);
  --radius: 14px;
  --radius-sm: 10px;
  --sidebar-width: 260px;
  --touch: 48px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }

/* ----- Auth / login ----- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at top right, rgba(184, 134, 11, 0.12), transparent 50%),
    linear-gradient(160deg, #ebe4d8 0%, #f3eee6 45%, #e8e0d4 100%);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--border);
}

.login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.login-brand .brand-line {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  font-weight: 600;
}

.login-brand .brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--text);
  margin-top: 0.35rem;
  letter-spacing: 0.04em;
}

.login-form .form-group {
  margin-bottom: 1.15rem;
}

.login-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.login-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* ----- Shell ----- */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  padding: 1.5rem 0;
  transition: transform 0.25s ease;
}

.sidebar-brand {
  padding: 0 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.sidebar-brand .brand-line {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--sidebar-muted);
  font-weight: 600;
}

.sidebar-brand .brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.75rem;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  text-decoration: none;
  font-weight: 500;
  min-height: var(--touch);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-link.is-active {
  background: rgba(184, 134, 11, 0.28);
  color: #fff;
}

.nav-icon {
  display: flex;
  flex-shrink: 0;
  opacity: 0.9;
}

.sidebar-footer {
  padding: 1rem 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.sidebar-user {
  padding: 0 1rem 0.5rem;
  font-size: 0.85rem;
  color: var(--sidebar-muted);
  margin: 0;
}

.nav-logout {
  color: #e8c9c4;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 38, 34, 0.45);
  z-index: 35;
}

.main-wrap {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-title h1 {
  margin: 0;
  font-size: 1.35rem;
}

.topbar-brand {
  display: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.menu-toggle {
  display: none;
}

.content {
  padding: 1.5rem;
  max-width: 1100px;
  width: 100%;
}

/* ----- Forms & buttons ----- */
label {
  font-weight: 600;
  font-size: 0.92rem;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: var(--touch);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  font-size: 16px; /* évite le zoom iOS */
  color: var(--text);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(184, 134, 11, 0.45);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--touch);
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
  color: #fff;
}

.btn:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg);
  color: var(--text);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #912018;
  color: #fff;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  background: #05603a;
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  min-height: 56px;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch);
  height: var(--touch);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: center;
}

.search-bar .btn-group {
  width: 100%;
}

.search-bar .btn-group input {
  flex: 1 1 auto;
}

/* ----- Alerts ----- */
.alert {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 500;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #abefc6;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecdca;
}

.alert-info {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid #e8d5a8;
}

/* ----- Cards & stats ----- */
.page-intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
}

.stat-card .stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.stat-card.stat-todo .stat-value { color: var(--danger); }
.stat-card.stat-progress .stat-value { color: var(--orange); }
.stat-card.stat-done .stat-value { color: var(--success); }
.stat-card.stat-low .stat-value { color: var(--warning); }

.section {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.list-card-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.list-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.empty-state {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* ----- Status badges ----- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.status-badge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}

.status-todo {
  color: var(--danger);
  background: var(--danger-bg);
}

.status-progress {
  color: var(--orange);
  background: #fff7ed;
}

.status-done {
  color: var(--success);
  background: var(--success-bg);
}

.status-none {
  color: var(--text-muted);
  background: #f0ebe4;
}

.badge-warning {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--warning-bg);
  color: var(--warning);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid #fedf89;
}

.badge-issue {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--danger-bg);
  color: var(--danger);
  font-weight: 600;
  font-size: 0.85rem;
}

/* ----- Room grid ----- */
.rooms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .rooms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .rooms-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.room-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 160px;
}

.room-card .btn {
  margin-top: auto;
}

/* ----- Checklist ----- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: var(--touch);
  cursor: pointer;
}

.checklist-item input {
  width: 1.35rem;
  height: 1.35rem;
  accent-color: var(--success);
  flex-shrink: 0;
}

.checklist-item.is-done {
  background: var(--success-bg);
  border-color: #abefc6;
}

.checklist-item.is-done span {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* ----- Stock ----- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.filter-chip:hover {
  text-decoration: none;
  background: var(--bg);
}

.filter-chip.is-active {
  background: var(--sidebar-bg);
  color: #fff;
  border-color: var(--sidebar-bg);
}

.search-bar {
  margin-bottom: 1.25rem;
}

.stock-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .stock-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.stock-card.is-low {
  border-color: #fdb022;
  background: linear-gradient(180deg, #fffaf0 0%, #fff 40%);
}

.stock-card h3 {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.qty-controls .qty-value {
  min-width: 3rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.qty-btn {
  width: var(--touch);
  height: var(--touch);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}

.qty-btn:hover {
  background: var(--accent-soft);
}

.stock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.stock-actions a {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ----- Issues ----- */
.issue-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.issue-item {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.issue-item.is-open {
  border-color: #fecdca;
  background: var(--danger-bg);
}

.issue-item.is-resolved {
  opacity: 0.75;
}

/* ----- Prep checkboxes ----- */
.check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 560px) {
  .check-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.check-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: var(--touch);
  cursor: pointer;
}

.check-option input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--accent);
}

/* ----- Prep ménage du jour ----- */
.prep-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.prep-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}

.prep-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: var(--touch);
  cursor: pointer;
  margin-bottom: 0.85rem;
}

.prep-card-header input {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.prep-section {
  margin-bottom: 0.95rem;
}

.prep-section:last-child {
  margin-bottom: 0;
}

.prep-label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.choice-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.choice-row-type {
  flex-wrap: nowrap;
}

.choice-row-guests {
  flex-wrap: nowrap;
}

.choice-btn {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  cursor: pointer;
  margin: 0;
}

.choice-btn input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.choice-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.65rem 0.4rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.2;
  user-select: none;
}

.choice-btn-num span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  min-height: 52px;
  padding: 0.5rem 0.25rem;
}

.choice-btn input:checked + span {
  background: var(--sidebar-bg);
  border-color: var(--sidebar-bg);
  color: #fff;
}

.choice-btn input:focus-visible + span {
  outline: 2px solid rgba(184, 134, 11, 0.55);
  outline-offset: 2px;
}

.prep-card-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (max-width: 380px) {
  .choice-btn span {
    font-size: 0.78rem;
    min-height: 48px;
    padding: 0.55rem 0.25rem;
  }

  .choice-btn-num span {
    font-size: 1.1rem;
  }
}

/* ----- Type / personnes / consigne ----- */
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.type-chip {
  color: var(--accent-dark);
}

.badge-special {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--warning-bg);
  color: var(--warning);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid #fedf89;
}

.room-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0.85rem 0;
}

.room-status-heading {
  margin: 1.15rem 0 0.5rem;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.special-notice {
  margin: 0.85rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--warning-bg);
  border: 1px solid #f7c948;
  color: #7a3e00;
}

.special-notice strong {
  display: block;
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.pillow-chip {
  color: var(--accent-dark);
  font-weight: 700;
}

/* ----- Vrai tableau HTML des chambres ----- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #cfc6ba;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(42, 38, 34, 0.04), 0 8px 24px rgba(42, 38, 34, 0.05);
}

.rooms-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  background: #fff;
  font-size: 0.94rem;
}

.rooms-table th,
.rooms-table td {
  border: 1px solid #ddd4c8;
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.rooms-table thead th {
  background: linear-gradient(180deg, #f4eee5 0%, #ebe3d7 100%);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5c534a;
  border-bottom: 1px solid #cfc6ba;
}

.rooms-table tbody tr:nth-child(even) {
  background: #faf7f2;
}

.rooms-table tbody tr:hover {
  background: #f3eadc;
}

.rooms-table .td-room {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}

.rooms-table .td-center {
  text-align: center;
}

.rooms-table .muted-dash {
  color: #a89f94;
}

.rooms-table .consigne-yes {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #fffaeb;
  color: #b54708;
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid #fedf89;
}

.rooms-table .td-status {
  text-align: center;
}

.rooms-table .td-status.status-todo {
  background: #fef3f2;
}

.rooms-table .td-status.status-progress {
  background: #fff7ed;
}

.rooms-table .td-status.status-done {
  background: #ecfdf3;
}

.rooms-table .td-status.status-none {
  background: #f5f1ea;
}

.rooms-table tbody tr:nth-child(even) .td-status.status-todo {
  background: #fdecea;
}

.rooms-table tbody tr:nth-child(even) .td-status.status-progress {
  background: #ffedd5;
}

.rooms-table tbody tr:nth-child(even) .td-status.status-done {
  background: #d1fadf;
}

.rooms-table .status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.88rem;
}

.rooms-table .status-dot::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.rooms-table .status-dot.status-todo {
  color: #b42318;
}

.rooms-table .status-dot.status-progress {
  color: #c2410c;
}

.rooms-table .status-dot.status-done {
  color: #067647;
}

.rooms-table .status-dot.status-none {
  color: #6b635a;
}

.rooms-table .col-actions {
  white-space: nowrap;
}

.rooms-table .inline-form {
  display: inline-block;
  margin: 0 0.4rem 0 0;
  vertical-align: middle;
}

.rooms-table .btn-open,
.btn-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: auto;
  min-height: 36px;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(180deg, #c9a017 0%, #b8860b 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.35;
  white-space: nowrap;
  cursor: pointer;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(138, 101, 8, 0.25);
}

.rooms-table .btn-open:hover,
.btn-open:hover {
  background: linear-gradient(180deg, #b8860b 0%, #8a6508 100%);
  color: #fff;
  text-decoration: none;
}

.rooms-table .btn-open-secondary {
  background: #fff;
  color: #5c534a;
  border: 1px solid #d0c7bb;
  box-shadow: none;
  font-weight: 600;
}

.rooms-table .btn-open-secondary:hover {
  background: #f7f1e8;
  color: var(--text);
  border-color: #b8860b;
}

.rooms-table .btn-done {
  display: inline-block;
  width: auto;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border: none;
  border-radius: 8px;
  background: #067647;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.35;
  vertical-align: middle;
}

.rooms-table .btn-done:hover {
  background: #05603a;
}

.btn-done-lg {
  background: #067647;
  color: #fff;
  border: none;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.btn-done-lg:hover {
  background: #05603a;
  color: #fff;
}

/* ----- History ----- */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.history-item {
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.delta-neg { color: var(--danger); font-weight: 700; }
.delta-pos { color: var(--success); font-weight: 700; }

/* ----- Utility ----- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--text-muted); }

/* ----- Mobile ----- */
@media (max-width: 860px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-overlay.is-visible {
    display: block;
  }

  .main-wrap {
    margin-left: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar-brand {
    display: block;
  }

  .content {
    padding: 1rem;
  }

  .btn-group .btn {
    flex: 1 1 100%;
  }
}
