:root {
  --gold: #c8a052;
  --gold-light: #e0c882;
  --gold-dark: #9a7a32;
  --bg-dark: #1a1a1a;
  --bg-sidebar: #1e1c18;
  --bg-content: #f7f5f0;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #2c2416;
  --text-secondary: #6b5e4a;
  --text-muted: #968c7a;
  --border: #e5ded0;
  --success: #52c41a;
  --warning: #faad14;
  --error: #f5222d;
  --info: #1890ff;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --transition: all 0.25s ease;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: var(--bg-content);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
}
a {
  color: var(--gold-dark);
  text-decoration: none;
}
a:hover {
  color: var(--gold);
}
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--bg-sidebar);
  color: #c5bfb2;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.3);
  z-index: 10;
}
.sidebar-logo {
  padding: 20px 20px 16px;
  text-align: center;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.08);
}
.sidebar-logo .logo-icon {
  font-size: 36px;
  display: block;
}
.sidebar-logo .logo-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 2px;
  margin-top: 4px;
}
.sidebar-logo .logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.nav-group {
  padding: 0 12px;
  margin-top: 8px;
}
.nav-group-title {
  font-size: 11px;
  color: #5a5346;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 8px 8px 4px;
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  margin: 2px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  color: #a8a090;
  font-size: 14px;
  white-space: nowrap;
}
.nav-item:hover {
  background: rgba(200, 160, 82, 0.12);
  color: var(--gold-light);
}
.nav-item.active {
  background: rgba(200, 160, 82, 0.2);
  color: var(--gold);
  font-weight: 600;
}
.nav-item .nav-icon {
  font-size: 16px;
  margin-right: 10px;
  width: 20px;
  text-align: center;
}
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid hsla(0, 0%, 100%, 0.08);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.main-header {
  height: 54px;
  min-height: 54px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  z-index: 5;
}
.main-header .breadcrumb {
  font-size: 14px;
  color: var(--text-secondary);
}
.main-header .breadcrumb span {
  color: var(--text-primary);
  font-weight: 600;
}
.main-header .header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.main-header .header-time {
  font-size: 13px;
  color: var(--text-muted);
}
.main-header .header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
}
.main-header .header-user .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.main-content {
  flex: 1;
  overflow: hidden;
}
.main-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.page {
  padding: 24px;
}
.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--gold);
  border-radius: 2px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  cursor: default;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.stat-card .stat-icon.gold {
  background: oldlace;
  color: var(--gold);
}
.stat-card .stat-icon.green {
  background: #f0faf0;
  color: var(--success);
}
.stat-card .stat-icon.blue {
  background: #e8f4fd;
  color: var(--info);
}
.stat-card .stat-icon.red {
  background: #fef0ef;
  color: var(--error);
}
.stat-card .stat-info {
  flex: 1;
}
.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat-card .stat-change {
  font-size: 12px;
  margin-top: 4px;
}
.stat-card .stat-change.up {
  color: var(--success);
}
.stat-card .stat-change.down {
  color: var(--error);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table th,
table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table th {
  background: #faf8f3;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
table tbody tr {
  transition: var(--transition);
}
table tbody tr:hover {
  background: #fdfbf6;
}
table .text-right {
  text-align: right;
}
table .text-center {
  text-align: center;
}
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.badge-success {
  background: #f0faf0;
  color: #389e0d;
}
.badge-warning {
  background: #fffbe6;
  color: #d48806;
}
.badge-error {
  background: #fef0ef;
  color: #cf1322;
}
.badge-info {
  background: #e8f4fd;
  color: #096dd9;
}
.badge-processing {
  background: oldlace;
  color: #c8a052;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.4;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
}
.btn-primary:hover {
  background: var(--gold-dark);
}
.btn-outline {
  background: rgba(0, 0, 0, 0);
  color: var(--gold-dark);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(200, 160, 82, 0.08);
}
.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
}
.btn-lg {
  padding: 10px 24px;
  font-size: 15px;
}
.btn-danger {
  background: var(--error);
  color: #fff;
}
.btn-danger:hover {
  opacity: 0.85;
}
.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover {
  opacity: 0.85;
}
/* Button loading & disabled states */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn:active:not(:disabled) {
  transform: scale(0.97);
}
.btn .btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  margin-right: 6px;
}
.btn.loading .btn-spinner {
  display: inline-block;
}
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-primary);
  background: #fff;
  transition: var(--transition);
  font-family: inherit;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 160, 82, 0.12);
}
.form-textarea {
  min-height: 80px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-select {
  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='%236b5e4a' 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;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-bar .form-input,
.filter-bar .form-select {
  width: auto;
  min-width: 140px;
}
.filter-bar .btn {
  white-space: nowrap;
}
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header .modal-title {
  font-size: 17px;
  font-weight: 600;
}
.modal-close {
  cursor: pointer;
  font-size: 20px;
  color: var(--text-muted);
  background: none;
  border: none;
  line-height: 1;
}
.modal-close:hover {
  color: var(--text-primary);
}
.modal-body {
  padding: 24px;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.tab {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 2px solid rgba(0, 0, 0, 0);
  margin-bottom: -2px;
  transition: var(--transition);
}
.tab:hover {
  color: var(--gold);
}
.tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  font-weight: 600;
}
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-warning {
  background: #fffbe6;
  color: #ad6800;
  border: 1px solid #ffe58f;
}
.alert-info {
  background: #e8f4fd;
  color: #0050b3;
  border: 1px solid #91d5ff;
}
.alert-error {
  background: #fef0ef;
  color: #a8071a;
  border: 1px solid #ffa39e;
}
.alert-success {
  background: #f0faf0;
  color: #237804;
  border: 1px solid #b7eb8f;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.pagination .page-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.pagination .page-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.pagination .page-btn.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.pagination .page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.chart-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  padding: 0 4px;
}
.chart-bar .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border-radius: 4px 4px 0 0;
  min-width: 28px;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}
.chart-bar .bar:hover {
  filter: brightness(1.1);
}
.chart-bar .bar .bar-val {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.chart-bar .bar .bar-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}
.text-success {
  color: var(--success);
}
.text-warning {
  color: var(--warning);
}
.text-error {
  color: var(--error);
}
.text-muted {
  color: var(--text-muted);
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.mt-sm {
  margin-top: 8px;
}
.mt-md {
  margin-top: 16px;
}
.mb-sm {
  margin-bottom: 8px;
}
.mb-md {
  margin-bottom: 16px;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gap-sm {
  gap: 8px;
}
.gap-md {
  gap: 16px;
}
/* === Loading & Empty States === */
.skeleton {
  background: linear-gradient(90deg, #f0ece2 25%, #e8e4d8 50%, #f0ece2 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}
@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}
.skeleton-text:last-child {
  width: 60%;
}
.skeleton-row {
  height: 36px;
  margin-bottom: 4px;
}
.loading-row td {
  text-align: center;
  color: var(--text-muted);
  padding: 30px;
  font-size: 13px;
}
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
}
.empty-state .empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.6;
}
.empty-state .empty-text {
  font-size: 14px;
}
.empty-state .empty-hint {
  font-size: 12px;
  margin-top: 6px;
}
/* === Toast Notifications === */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  animation: toast-in 0.3s ease;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.toast-success {
  background: var(--success);
}
.toast.toast-error {
  background: var(--error);
}
.toast.toast-warning {
  background: var(--warning);
  color: #5c3d00;
}
.toast.toast-info {
  background: var(--info);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* === Responsive Enhancements === */
@media print {
  .sidebar,
  .main-header {
    display: none !important;
  }
  .main-content iframe {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .sidebar {
    width: 56px;
    min-width: 56px;
  }
  .sidebar-logo {
    padding: 10px 6px;
  }
  .sidebar .logo-name,
  .sidebar .logo-sub,
  .nav-group-title,
  .nav-item span:not(.nav-icon) {
    display: none;
  }
  .nav-item {
    padding: 10px;
    justify-content: center;
    margin: 1px 6px;
  }
  .main-header {
    padding: 0 12px;
    height: 48px;
    min-height: 48px;
  }
  .main-header .breadcrumb {
    font-size: 12px;
  }
  .main-header .header-time {
    display: none;
  }
  .page {
    padding: 12px;
  }
  .page-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .stat-cards {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stat-card {
    padding: 12px;
    gap: 10px;
  }
  .stat-card .stat-value {
    font-size: 20px;
  }
  .stat-card .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 8px;
  }
  .card {
    padding: 12px;
    margin-bottom: 12px;
  }
  .card-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }
  .card-title {
    font-size: 14px;
  }
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table {
    font-size: 11px;
  }
  table th,
  table td {
    padding: 8px 6px;
  }
  .btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .filter-bar {
    gap: 6px;
    flex-direction: column;
    align-items: stretch;
  }
  .filter-bar .form-input,
  .filter-bar .form-select {
    min-width: auto;
    width: 100% !important;
  }
  .modal {
    width: 95%;
    max-width: none;
  }
  .modal-body {
    padding: 16px;
  }
  .modal-header {
    padding: 12px 16px;
  }
  .pagination {
    gap: 3px;
  }
  .pagination .page-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
  .chart-section {
    grid-template-columns: 1fr;
  }
  .today-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .finance-summary {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .room-grid {
    grid-template-columns: 1fr;
  }
  .hotel-cards {
    grid-template-columns: 1fr;
  }
  .cleaning-grid {
    grid-template-columns: 1fr;
  }
  .device-grid {
    grid-template-columns: 1fr;
  }
  .room-board {
    flex-direction: column;
  }
  .room-column {
    min-width: 100%;
  }
  /* Settings responsive */
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    display: flex;
    overflow-x: auto;
    padding: 4px;
    gap: 2px;
    border-radius: var(--radius);
  }
  .settings-nav .sn-item {
    white-space: nowrap;
    padding: 8px 14px;
    border-left: none;
    border-bottom: 2px solid transparent;
    font-size: 13px;
  }
  .settings-nav .sn-item.active {
    border-left-color: transparent;
    border-bottom-color: var(--gold);
  }
}
@media (max-width: 480px) {
  .stat-cards {
    grid-template-columns: 1fr;
  }
  .finance-summary {
    grid-template-columns: 1fr;
  }
  .today-summary {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 48px;
    min-width: 48px;
  }
  .main-header {
    height: 44px;
    min-height: 44px;
    padding: 0 8px;
  }
  .page {
    padding: 8px;
  }
  .page-title {
    font-size: 14px;
  }
  .settings-panel {
    padding: 12px;
  }
  .summary-bar {
    flex-wrap: wrap;
    gap: 6px;
  }
  .summary-item-bar {
    flex: 1 1 calc(50% - 6px);
    min-width: 100px;
  }
}
.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.chart-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.alert-list {
  list-style: none;
}
.alert-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.alert-list li:last-child {
  border-bottom: none;
}
.alert-list .alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.alert-list .alert-dot.warn {
  background: var(--warning);
}
.alert-list .alert-dot.info {
  background: var(--info);
}
.alert-list .alert-dot.err {
  background: var(--error);
}
.alert-list .alert-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}
.progress-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}
.progress-bar .progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #c8a052, #e0c882);
}
.today-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.summary-item {
  text-align: center;
  padding: 12px;
  background: #faf8f3;
  border-radius: 6px;
}
.summary-item .num {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-dark);
}
.summary-item .lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.hotel-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.hotel-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.hotel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.hotel-card-img {
  height: 160px;
  background: linear-gradient(
    135deg,
    rgba(200, 160, 82, 0.1254901961),
    rgba(200, 160, 82, 0.031372549)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
}
.hotel-card-img .status-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.hotel-card-img .status-dot.online {
  background: var(--success);
  box-shadow: 0 0 8px rgba(82, 196, 26, 0.5);
}
.hotel-card-img .status-dot.offline {
  background: var(--error);
  box-shadow: 0 0 8px rgba(245, 34, 45, 0.5);
}
.hotel-card-body {
  padding: 16px 20px;
}
.hotel-card-body .hotel-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.hotel-card-body .hotel-addr {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.hotel-card-body .hotel-meta {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}
.hotel-card-body .hotel-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hotel-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hotel-card-footer .btn {
  font-size: 12px;
}
.room-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.room-toolbar .hotel-selector {
  display: flex;
}
.room-toolbar .hotel-selector .hs-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
}
.room-toolbar .hotel-selector .hs-btn:first-child {
  border-radius: 6px 0 0 6px;
}
.room-toolbar .hotel-selector .hs-btn:last-child {
  border-radius: 0 6px 6px 0;
}
.room-toolbar .hotel-selector .hs-btn.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.room-legend {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}
.room-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.room-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.room-legend .dot.vacant {
  background: var(--success);
}
.room-legend .dot.occupied {
  background: var(--info);
}
.room-legend .dot.cleaning {
  background: var(--warning);
}
.room-legend .dot.maintenance {
  background: #8c8c8c;
}
.room-floor {
  margin-bottom: 20px;
}
.room-floor-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.room-floor-title .floor-stat {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.room-box {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  border: 2px solid rgba(0, 0, 0, 0);
  transition: var(--transition);
  text-align: center;
  position: relative;
}
.room-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.room-box.vacant {
  border-color: #b7eb8f;
  background: #f6ffed;
}
.room-box.occupied {
  border-color: #91d5ff;
  background: #e6f7ff;
}
.room-box.cleaning {
  border-color: #ffe58f;
  background: #fffbe6;
}
.room-box.maintenance {
  border-color: #d9d9d9;
  background: #f5f5f5;
}
.room-box .room-no {
  font-size: 20px;
  font-weight: 700;
}
.room-box .room-type-name {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.room-box .room-price {
  font-size: 12px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-top: 4px;
}
.room-box .room-guest-name {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.room-box .room-timer {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.detail-panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: none;
}
.detail-panel.show {
  display: block;
}
.detail-panel .panel-row {
  display: flex;
  margin-bottom: 10px;
  font-size: 13px;
}
.detail-panel .panel-label {
  color: var(--text-muted);
  width: 80px;
  flex-shrink: 0;
}
.detail-row {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
  font-size: 13px;
}
.detail-row .detail-label {
  color: var(--text-muted);
  width: 70px;
  flex-shrink: 0;
}
.detail-row .detail-value {
  color: var(--text-primary);
}
.cleaning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.task-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.task-card .task-status {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.task-card .task-status.pending {
  background: #fffbe6;
  color: var(--warning);
}
.task-card .task-status.doing {
  background: #e8f4fd;
  color: var(--info);
}
.task-card .task-status.done {
  background: #f0faf0;
  color: var(--success);
}
.task-card .task-body {
  flex: 1;
}
.task-card .task-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.task-card .task-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.task-card .task-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.cleaner-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: center;
}
.cleaner-card .cleaner-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 10px;
}
.cleaner-card .cleaner-name {
  font-weight: 600;
  font-size: 14px;
}
.cleaner-card .cleaner-tasks {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.cleaner-card .cleaner-status {
  font-size: 11px;
  margin-top: 6px;
}
.finance-tabs {
  margin-bottom: 20px;
}
.finance-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.finance-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
}
.finance-card .fc-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.finance-card .fc-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}
.finance-card .fc-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.highlight-red {
  color: var(--error);
}
.highlight-green {
  color: var(--success);
}
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.device-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.device-card .device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.device-card .device-name {
  font-weight: 600;
  font-size: 15px;
}
.device-card .device-type {
  font-size: 11px;
  color: var(--text-muted);
}
.device-card .device-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.device-card .device-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dark);
  margin-top: 8px;
}
.status-dot-sm {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}
.status-dot-sm.online {
  background: var(--success);
}
.status-dot-sm.offline {
  background: var(--error);
}
.status-dot-sm.warning {
  background: var(--warning);
}
.device-chart-mini {
  height: 40px;
  margin-top: 8px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.device-chart-mini .dbar {
  flex: 1;
  background: #e0c882;
  border-radius: 2px 2px 0 0;
}
.settings-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
}
.settings-nav {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
}
.settings-nav .sn-item {
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  border-left: 3px solid rgba(0, 0, 0, 0);
  transition: var(--transition);
}
.settings-nav .sn-item:hover {
  background: #faf8f3;
  color: var(--gold);
}
.settings-nav .sn-item.active {
  background: oldlace;
  color: var(--gold-dark);
  font-weight: 600;
  border-left-color: var(--gold);
}
.settings-panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: none;
}
.settings-panel.show {
  display: block;
}
.settings-section {
  margin-bottom: 28px;
}
.settings-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: 0.3s;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--success);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}
