[hidden] {
  display: none !important;
}

:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #66716d;
  --line: #d9dfdc;
  --panel: #ffffff;
  --soft: #f5f7f6;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #b88a44;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(22, 33, 31, .12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Tahoma, Arial, sans-serif;
  background: var(--page);
  color: var(--ink);
}

button,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.topbar,
.mode-tabs,
.request-panel,
.status-strip,
.filters,
.operations,
.admin-panel,
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 8px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.2;
}

h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
select,
.tab,
.filter,
.primary-button,
.secondary-button,
.status-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.icon-button {
  width: 54px;
  font-weight: 800;
}

select {
  padding: 0 12px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
  padding: 8px;
  border-radius: 8px;
}

.tab {
  font-weight: 800;
}

.tab.active,
.filter.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 8px;
  background: #243532;
}

.hero img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  display: block;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 26, 24, .12), rgba(12, 26, 24, .72));
}

.hero-copy {
  position: absolute;
  z-index: 1;
  inset-inline-end: 28px;
  bottom: 26px;
  width: min(470px, calc(100% - 56px));
  color: white;
}

.hero-copy span {
  display: block;
  margin-bottom: 8px;
  color: #f0d6a6;
  font-weight: 800;
}

.hero-copy strong {
  display: block;
  font-size: 34px;
  line-height: 1.25;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.service-card {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: start;
}

.service-card.active {
  outline: 3px solid rgba(15, 118, 110, .2);
  border-color: var(--brand);
}

.service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e6f3f1;
  color: var(--brand-dark);
}

.service-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card strong {
  font-size: 18px;
}

.service-card span {
  color: var(--muted);
  font-size: 13px;
}

.service-card .service-time {
  align-self: flex-start;
  padding: 6px 8px;
  border-radius: 8px;
  background: #e6f3f1;
  color: var(--brand-dark);
  font-weight: 800;
}

.request-panel,
.status-strip,
.admin-panel {
  margin-top: 14px;
  padding: 18px;
  border-radius: 8px;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  outline-color: var(--brand);
}

.primary-button,
.secondary-button,
.status-button {
  padding: 0 16px;
  font-weight: 800;
}

.primary-button {
  width: 100%;
  margin-top: 12px;
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.secondary-button {
  background: var(--soft);
}

.staff-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
}

.filters,
.operations {
  border-radius: 8px;
  padding: 16px;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
}

.filter {
  text-align: start;
  padding: 0 12px;
  font-weight: 800;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-head span {
  color: var(--muted);
  font-size: 13px;
}

.order-list {
  display: grid;
  gap: 10px;
}
.order-card {
  display: grid;
  grid-template-columns: minmax(90px, 120px) 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.compact .order-card {
  grid-template-columns: 1fr auto;
}

.room-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-weight: 800;
}

.room-chip {
  background: #edf0ef;
}

.status-chip {
  background: #fff7e6;
  color: #8a5a00;
}

.status-chip.progress {
  background: #e6f3f1;
  color: var(--brand-dark);
}

.status-chip.done {
  background: #e9f7ed;
  color: #166534;
}

.order-main strong {
  display: block;
  margin-bottom: 4px;
}

.order-main p {
  margin: 0;
  color: var(--muted);
}

.order-actions {
  display: flex;
  gap: 8px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric {
  min-height: 112px;
  padding: 16px;
  border-radius: 8px;
}

.metric span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.metric strong {
  font-size: 30px;
}

.catalog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.catalog-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--soft);
}

.catalog-item strong {
  display: block;
  margin-bottom: 6px;
}

.catalog-item span {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  inset-inline: 18px;
  bottom: 18px;
  max-width: 520px;
  margin-inline: auto;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--brand-dark);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(90px);
  opacity: 0;
  transition: .2s ease;
  text-align: center;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

[dir="ltr"] .hero::after {
  background: linear-gradient(270deg, rgba(12, 26, 24, .12), rgba(12, 26, 24, .72));
}

@media (max-width: 860px) {
  .topbar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .service-grid,
  .metrics,
  .catalog-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .staff-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .filters h2 {
    grid-column: 1 / -1;
  }

  .order-card {
    grid-template-columns: 1fr;
  }

  .order-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 9px;
  }

  h1 {
    font-size: 24px;
  }

  .hero-copy strong {
    font-size: 25px;
  }

  .service-grid,
  .metrics,
  .catalog-list,
  .mode-tabs {
    grid-template-columns: 1fr;
  }
}

.option-panel {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.section-head.tight {
  margin-bottom: 10px;
}

.section-head h3 {
  margin: 0;
  font-size: 18px;
}

.option-list {
  display: grid;
  gap: 12px;
}

.option-group {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.option-group legend {
  padding: 0 8px;
  color: var(--brand-dark);
  font-weight: 800;
}

.option-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.check-option {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.check-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.check-option:has(input:checked) {
  border-color: var(--brand);
  background: #e6f3f1;
  color: var(--brand-dark);
}

@media (max-width: 860px) {
  .option-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .option-items {
    grid-template-columns: 1fr;
  }
}
.check-option b {
  margin-inline-start: auto;
  color: var(--accent);
  font-size: 13px;
  white-space: nowrap;
}

.price-line {
  margin-top: 6px !important;
  color: var(--brand-dark) !important;
  font-weight: 800;
}
.billing-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.billing-panel select {
  width: 100%;
  margin-top: 8px;
}

.charge-line {
  margin-top: 6px !important;
  color: var(--ink) !important;
  font-weight: 800;
}

@media (max-width: 560px) {
  .billing-panel {
    grid-template-columns: 1fr;
  }
}
.room-display {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
}

.room-display strong {
  color: var(--ink);
  font-size: 18px;
}
.fixed-room-number {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 20px;
}
.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-tool {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.admin-tool h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.admin-tool input,
.admin-tool select,
.admin-row input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
}

.admin-list,
.admin-option-list {
  display: grid;
  gap: 8px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-row button,
.admin-card-head button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  font-weight: 800;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.admin-service-card {
  background: #fff;
}
.admin-option-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-option-row strong {
  line-height: 1.25;
  font-size: 16px;
}

.price-editor {
  display: grid;
  gap: 6px;
}

.price-editor span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.price-editor input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
}

.option-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.option-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 8px;
  font-weight: 800;
  line-height: 1.15;
}

@media (max-width: 520px) {
  .option-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-row,
  .admin-card-head {
    grid-template-columns: 1fr;
    display: grid;
  }
}
.admin-lock {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--page);
}

.admin-lock-box {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-lock-box h2 {
  margin: 0;
}

.admin-lock-box input {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.admin-lock-box p {
  margin: 0;
  color: var(--muted);
}
.delay-warning {
  margin-top: 6px !important;
  padding: 8px 10px;
  border: 1px solid #f4b740;
  border-radius: 8px;
  background: #fff7e6;
  color: #8a5a00 !important;
  font-weight: 800;
}

.estimate-control {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.estimate-control input {
  max-width: 160px;
}
.estimate-note,
.estimate-line {
  margin: 6px 0 0 !important;
  color: var(--brand-dark) !important;
  font-weight: 800;
}

.estimate-note {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e6f3f1;
}

.deadline-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.deadline-line b {
  padding: 5px 8px;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.deadline-line.late b {
  background: #b42318;
}
.staff-department-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.staff-department-card span {
  color: var(--muted);
  font-size: 13px;
}

.staff-department-card strong {
  color: var(--brand-dark);
  font-size: 20px;
}
.login-links a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.login-links a:hover {
  border-color: var(--brand);
}
.room-account-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.room-account-main,
.room-account-actions,
.room-account-credentials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.room-account-main {
  justify-content: space-between;
}

.room-account-main strong {
  font-size: 18px;
}

.room-current-badge,
.room-account-credentials span,
.room-account-credentials a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
}

.room-current-badge {
  background: #e6f3f1;
  color: var(--brand-dark);
}

.room-account-credentials b {
  color: var(--brand-dark);
}

.room-account-credentials a {
  background: #fff;
  color: var(--brand-dark);
  text-decoration: none;
}

.room-account-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  font-weight: 800;
}
.staff-account-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.staff-account-main,
.staff-account-actions,
.staff-account-credentials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.staff-account-main {
  justify-content: space-between;
}

.staff-account-main strong {
  font-size: 18px;
}

.staff-account-main span,
.staff-account-credentials span,
.staff-account-credentials a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
}

.staff-account-main span,
.staff-account-credentials b {
  color: var(--brand-dark);
}

.staff-account-credentials a {
  background: #fff;
  color: var(--brand-dark);
  text-decoration: none;
}

.staff-account-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  font-weight: 800;
}
.quantity-control {
  display: inline-grid;
  grid-template-columns: auto minmax(58px, 72px);
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.quantity-control small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quantity-control input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 560px) {
  .quantity-control {
    width: 100%;
    grid-template-columns: 1fr 72px;
    margin-inline-start: 0;
  }
}
.invoice-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.invoice-preview {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.invoice-print-area {
  display: grid;
  gap: 14px;
}

.invoice-head,
.invoice-total,
.invoice-signature {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.invoice-head h2,
.invoice-head p {
  margin: 0;
}

.invoice-head p {
  color: var(--muted);
  margin-top: 4px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invoice-table th,
.invoice-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.invoice-table th {
  background: var(--soft);
  font-weight: 800;
}

.invoice-total {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e6f3f1;
  color: var(--brand-dark);
  font-weight: 900;
}

.invoice-signature {
  margin-top: 18px;
}

.invoice-signature span {
  min-width: 180px;
  padding-top: 34px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  text-align: center;
}

@media print {
  body.printing-invoice * {
    visibility: hidden !important;
  }

  body.printing-invoice .invoice-print-area,
  body.printing-invoice .invoice-print-area * {
    visibility: visible !important;
  }

  body.printing-invoice .invoice-print-area {
    position: absolute;
    inset: 0;
    padding: 24px;
    background: #fff;
    color: #000;
  }

  body.printing-invoice .invoice-table th,
  body.printing-invoice .invoice-table td,
  body.printing-invoice .invoice-total {
    border-color: #999;
  }
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hotel-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

.logo-preview-box {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.logo-preview-box img {
  max-width: 180px;
  max-height: 76px;
  object-fit: contain;
}

.invoice-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.invoice-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}
.theme-admin-tool {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-admin-tool h3,
.theme-admin-tool button {
  grid-column: 1 / -1;
}

.theme-admin-tool input[type="color"] {
  min-height: 44px;
  padding: 4px;
}

.theme-admin-tool select {
  min-height: 44px;
}
.hero-dots {
  position: absolute;
  z-index: 2;
  inset-inline-start: 22px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  padding: 0;
}

.hero-dot.active {
  width: 24px;
  background: #fff;
}

.hero-admin-tool {
  grid-template-columns: 1fr;
}

.hero-admin-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.hero-admin-item {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hero-admin-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.hero-admin-item button {
  min-height: 36px;
}
.staff-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 140px 150px;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.insight-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.insight-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 13px;
}

.insight-card strong {
  display: block;
  font-size: 22px;
}

.order-card.new-arrival {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(184, 138, 68, .22), var(--shadow);
}

@media (max-width: 760px) {
  .staff-toolbar,
  .admin-insights {
    grid-template-columns: 1fr;
  }
}
.guest-smart-panel {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 12px;
  margin: 14px 0;
}

.room-mode-card,
.offers-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.room-mode-card h2,
.offers-card h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.room-mode-actions,
.offer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.offer-pill {
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.offer-pill:hover {
  border-color: var(--accent);
  color: var(--brand-dark);
}

.subtle-line,
.staff-note,
.rating-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.rating-line {
  color: var(--accent);
}

.status-button.danger,
.status-chip.closed {
  border-color: rgba(180, 35, 24, 0.25);
  color: var(--danger);
  background: rgba(180, 35, 24, 0.08);
}

.staff-toolbar input[type="date"] {
  min-height: 44px;
}

@media (max-width: 760px) {
  .guest-smart-panel {
    grid-template-columns: 1fr;
  }
}

.order-chat {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  display: grid;
  gap: 8px;
}

.order-chat h4 {
  margin: 0;
  font-size: .9rem;
}

.chat-message {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.chat-message strong {
  color: var(--brand-dark);
  font-size: .82rem;
}

.chat-message span {
  color: var(--ink);
  line-height: 1.45;
}

.chat-message small,
.chat-empty {
  color: var(--muted);
  font-size: .78rem;
  margin: 0;
}

.chat-message.guest {
  border-inline-start: 4px solid var(--accent);
}

.chat-message.staff,
.chat-message.admin {
  border-inline-start: 4px solid var(--brand);
}

.chat-send-button {
  justify-self: start;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.chat-compose input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

@media (max-width: 640px) {
  .chat-compose {
    grid-template-columns: 1fr;
  }

  .chat-send-button {
    width: 100%;
  }
}
.permission-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .1);
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 800;
  font-size: .78rem;
}
.availability-line {
  color: var(--brand-dark);
  font-weight: 800;
  font-size: .82rem;
}

.service-card.unavailable {
  opacity: .55;
  cursor: not-allowed;
  background: var(--soft);
}

.service-card.unavailable .availability-line {
  color: var(--danger);
}

.availability-admin-note {
  color: var(--muted);
  font-weight: 700;
}
/* modern-polish-v1 */
:root {
  --surface-strong: color-mix(in srgb, var(--panel) 88%, var(--brand) 12%);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

body {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand) 10%, transparent), transparent 34rem),
    linear-gradient(180deg, color-mix(in srgb, var(--page) 92%, #fff 8%), var(--page));
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hotel-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

.mode-tabs,
.admin-section-tabs {
  position: sticky;
  top: 106px;
  z-index: 16;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
}

.admin-section-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 14px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-section-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
}

.admin-section-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.tab,
.filter,
.primary-button,
.secondary-button,
.status-button,
.admin-section-tab,
.service-card,
.offer-pill {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

button:not(:disabled):hover,
.service-card:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(22, 33, 31, .12);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--brand) !important;
}

.hero {
  min-height: 330px;
  box-shadow: var(--shadow);
}

.hero img {
  min-height: 330px;
}

.hero-copy {
  bottom: 34px;
}

.hero-copy strong {
  text-shadow: 0 8px 26px rgba(0, 0, 0, .3);
}

.guest-smart-panel,
.metrics,
.service-grid {
  margin-top: 16px;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card {
  min-height: 158px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: transparent;
}

.service-card.active::before {
  background: var(--accent);
}

.service-card.active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 94%, var(--accent) 6%), var(--panel));
}

.service-card strong {
  font-size: 19px;
  line-height: 1.25;
}

.service-card > span:not(.service-icon):not(.service-time):not(.availability-line) {
  line-height: 1.45;
}

.request-panel {
  display: grid;
  gap: 12px;
}

.request-panel > div:first-child {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.status-strip,
.operations,
.admin-panel,
.request-panel,
.filters {
  border-color: color-mix(in srgb, var(--line) 75%, var(--brand) 25%);
}

.staff-layout {
  grid-template-columns: minmax(220px, 260px) 1fr;
  align-items: start;
}

.filters {
  position: sticky;
  top: 106px;
  max-height: calc(100vh - 126px);
  overflow: auto;
}

.staff-toolbar {
  align-items: stretch;
}

.staff-toolbar input,
.staff-toolbar select {
  background: #fff;
}

.staff-room-board {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--soft) 82%, #fff 18%);
}

.staff-room-board-head,
.selected-room-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-room-board-head h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.staff-room-board-head p,
.selected-room-strip span {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.staff-room-board-head > b {
  min-width: 36px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}

.staff-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.staff-room-card {
  position: relative;
  display: grid;
  gap: 7px;
  text-align: start;
  min-height: 126px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(22, 33, 31, .06);
}

.staff-room-card:hover,
.staff-room-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 20%, transparent), 0 10px 24px rgba(22, 33, 31, .08);
}

.staff-room-card.has-active {
  border-inline-start: 5px solid var(--accent);
}

.staff-room-card.has-late {
  border-inline-start: 5px solid var(--danger);
}

.staff-room-card strong {
  font-size: 1.3rem;
}

.staff-room-card small {
  color: var(--muted);
  min-height: 20px;
}

.room-card-alert {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7e6;
  color: #8a5a00;
  font-size: .78rem;
  font-weight: 900;
}

.staff-room-card.has-late .room-card-alert {
  background: rgba(180, 35, 24, .09);
  color: var(--danger);
}

.room-card-counts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.room-card-counts b {
  color: var(--brand-dark);
}

.room-card-counts em {
  font-style: normal;
  color: var(--danger);
}
.staff-order-section {
  display: grid;
  gap: 10px;
}

.staff-order-section + .staff-order-section {
  margin-top: 14px;
}

.staff-section-title,
.archive-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.staff-section-title h3 {
  margin: 0;
  font-size: 1rem;
}

.staff-section-title b,
.archive-section summary b {
  min-width: 34px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
}

.archive-section {
  margin-top: 14px;
}

.archive-section summary {
  cursor: pointer;
  font-weight: 800;
}

.archive-hint {
  margin: 8px 0;
  color: var(--muted);
  font-size: .9rem;
}
.order-card {
  border-inline-start: 4px solid var(--line);
  box-shadow: 0 10px 26px rgba(22, 33, 31, .07);
}

.order-card:has(.status-chip:not(.done):not(.closed)) {
  border-inline-start-color: var(--accent);
}

.status-chip {
  white-space: nowrap;
}

.order-actions .status-button {
  min-width: 96px;
}

.admin-panel > .section-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-dashboard {
  align-items: start;
}

.admin-tool {
  background: color-mix(in srgb, var(--soft) 78%, #fff 22%);
  box-shadow: 0 10px 26px rgba(22, 33, 31, .06);
}

.admin-tool h3 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.admin-tool label {
  display: grid;
  gap: 6px;
}

.catalog-list {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.admin-service-card {
  box-shadow: 0 10px 26px rgba(22, 33, 31, .06);
}

.admin-card-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
}

.admin-card-head > div {
  display: grid;
  gap: 8px;
}

.admin-option-row {
  background: color-mix(in srgb, var(--panel) 92%, var(--soft) 8%);
}

@media (max-width: 980px) {
  .admin-section-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mode-tabs,
  .admin-section-tabs,
  .topbar,
  .filters {
    position: static;
  }

  .staff-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    max-height: none;
  }
}

@media (max-width: 620px) {
  .admin-section-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .hero,
  .hero img {
    min-height: 280px;
  }

  .admin-card-head,
  .order-card {
    grid-template-columns: 1fr;
  }
}
/* professional-tools-v1 */
.qr-preview {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.qr-preview img {
  width: 220px;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.qr-preview a {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--brand-dark);
  font-weight: 800;
}

.reports-tool .invoice-actions,
.audit-tool .invoice-actions,
.qr-tool .invoice-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.audit-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.audit-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.audit-row strong {
  color: var(--brand-dark);
}

.audit-row span {
  color: var(--ink);
}

.audit-row small {
  color: var(--muted);
  font-weight: 700;
}



.super-dashboard {
  display: grid;
  gap: 14px;
}

.super-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.super-hero h2 {
  margin: 2px 0 6px;
  font-size: 1.5rem;
}

.super-hero span {
  color: var(--muted);
}

.super-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 10px;
  min-width: min(520px, 100%);
}

.metric.mini {
  min-height: 84px;
  padding: 12px;
}

.super-hotel-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.super-hotel-form h3,
.super-hotel-form button {
  grid-column: 1 / -1;
}

.super-hotels-panel .section-head input {
  max-width: 280px;
}

.super-hotel-list {
  display: grid;
  gap: 10px;
}

.super-hotel-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, .8fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22, 33, 31, .06);
}

.super-hotel-card.paused {
  border-inline-start-color: var(--accent);
}

.super-hotel-card.expired {
  border-inline-start-color: var(--danger);
}

.super-hotel-main,
.super-links,
.super-actions {
  display: grid;
  gap: 8px;
}

.super-hotel-main strong {
  font-size: 1.18rem;
}

.super-hotel-main small,
.super-hotel-main p {
  margin: 0;
  color: var(--muted);
}

.subscription-chip {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  background: #e9f7ed;
  color: #166534;
}

.subscription-chip.paused {
  background: #fff7e6;
  color: #8a5a00;
}

.subscription-chip.expired {
  background: rgba(180, 35, 24, .09);
  color: var(--danger);
}

.super-links a,
.super-links button,
.super-actions button {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  text-align: center;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.super-actions .danger {
  color: var(--danger);
  background: rgba(180, 35, 24, .08);
}

@media (max-width: 900px) {
  .super-hero,
  .super-hotel-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .super-metrics,
  .super-hotel-form {
    grid-template-columns: 1fr;
  }
}
body[data-role="guest"] .mode-tabs, body[data-role="staff"] .mode-tabs, body[data-role="admin"] .mode-tabs, body[data-role="superadmin"] .mode-tabs { display: none !important; }


.staff-presence-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.staff-presence-panel > div:first-child {
  display: grid;
  gap: 4px;
}
.staff-presence-panel span,
.staff-account-main small {
  color: var(--muted);
  font-weight: 700;
}
.presence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.presence-button,
.presence-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  font-weight: 900;
}
.presence-button.active,
.presence-badge.online {
  border-color: #15803d;
  background: #dcfce7;
  color: #166534;
}
.presence-badge.away {
  border-color: #b7791f;
  background: #fef3c7;
  color: #92400e;
}
.presence-badge.offline {
  border-color: var(--line);
  background: #f1f5f4;
  color: var(--muted);
}

.staff-presence-panel[hidden] { display: none !important; }

.assignment-line { color: var(--brand-dark); font-weight: 800; }
.assignment-line b { color: var(--ink); }

.logout-button { min-width: 74px; padding-inline: 14px; }
body[data-role="guest"] .logout-button { display: inline-flex; }

.report-meta {
  margin-top: 10px;
  display: grid;
  gap: 7px;
  max-width: 100%;
}

.report-meta p {
  margin: 0;
}

.work-order-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.work-order-line strong {
  margin: 0;
  color: var(--brand-dark);
  font-size: .92rem;
}

.work-order-line small {
  color: var(--muted);
  font-weight: 800;
}

.report-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .12);
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 900;
}

.report-image-link {
  width: min(100%, 260px);
  display: grid;
  gap: 6px;
  margin-top: 4px;
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.report-image-link img {
  width: 100%;
  height: 150px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.report-image-link span {
  font-size: .8rem;
}

@media (max-width: 760px) {
  .report-image-link {
    width: min(100%, 220px);
  }

  .report-image-link img {
    height: 128px;
  }
}
.report-time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.report-time-row {
  margin: 0;
}

.report-time-row input {
  min-height: 42px;
}

@media (max-width: 760px) {
  .report-time-grid {
    grid-template-columns: 1fr;
  }
}
.qr-link-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.qr-preview .qr-link {
  overflow-wrap: anywhere;
  text-align: center;
}

.qr-link-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 760px) {
  .qr-link-actions {
    grid-template-columns: 1fr;
  }
}