/*
 * HEM Housekeeping — local HIG redesign.
 * The control layer uses restrained material; content stays on solid surfaces.
 */

:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --panel: #ffffff;
  --field: #ffffff;
  --button-bg: #ffffff;
  --ink: #1d1d1f;
  --label: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(60, 60, 67, 0.18);
  --line-strong: rgba(60, 60, 67, 0.32);
  --green: #0066cc;
  --green-dark: #0055b3;
  --blue: #0066cc;
  --amber: #b25000;
  --amber-dark: #8a3e00;
  --success: #248a3d;
  --success-dark: #1b6e30;
  --red: #d70015;
  --soft: #f2f2f7;
  --soft-green: #e9f3ff;
  --soft-success: #edf8ef;
  --soft-red: #fff0f1;
  --soft-amber: #fff5eb;
  --soft-blue: #e9f3ff;
  --overlay: rgba(0, 0, 0, 0.32);
  --shadow: none;
  --shadow-raised: 0 24px 70px rgba(0, 0, 0, 0.18);
  --radius: 14px;
  --radius-small: 10px;
  --tap: 44px;
  --ui-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --data-font: "SFMono-Regular", ui-monospace, Menlo, monospace;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --panel: #1c1c1e;
  --field: #2c2c2e;
  --button-bg: #2c2c2e;
  --ink: #f5f5f7;
  --label: #f5f5f7;
  --muted: #aeaeb2;
  --line: rgba(235, 235, 245, 0.18);
  --line-strong: rgba(235, 235, 245, 0.34);
  --green: #0a84ff;
  --green-dark: #409cff;
  --blue: #0a84ff;
  --amber: #ff9f0a;
  --amber-dark: #ffb340;
  --success: #30d158;
  --success-dark: #63da7b;
  --red: #ff453a;
  --soft: #2c2c2e;
  --soft-green: #142943;
  --soft-success: #17351f;
  --soft-red: #431b1d;
  --soft-amber: #3a2913;
  --soft-blue: #142943;
  --overlay: rgba(0, 0, 0, 0.58);
  --shadow-raised: 0 24px 70px rgba(0, 0, 0, 0.46);
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui-font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  display: none;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.hint,
.card-meta,
.today {
  color: var(--muted);
  line-height: 1.45;
}

button,
input,
select,
textarea,
.button-link,
.file-picker-button {
  border-radius: 9px;
  font: inherit;
}

button,
.button-link,
.file-picker-button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--button-bg);
  color: var(--ink);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 550;
  transition: background-color 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

button:hover,
.button-link:hover,
.file-picker-button:hover {
  border-color: var(--line-strong);
  background: var(--soft);
}

button:active,
.button-link:active,
.file-picker-button:active {
  transform: none;
  opacity: 0.72;
}

.primary,
.file-picker-button {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

.primary:hover,
.file-picker-button:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.danger {
  border-color: var(--line);
  background: transparent;
  color: var(--red);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.button-link:focus-visible,
.file-picker-button:focus-within,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--green) 28%, transparent);
  outline-offset: 2px;
  border-color: var(--green);
}

input,
select,
textarea {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  background: var(--field);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 16px;
  box-shadow: none;
}

textarea {
  line-height: 1.5;
  resize: vertical;
}

label {
  gap: 7px;
  margin-top: 14px;
  color: var(--label);
  font-size: 13px;
  font-weight: 600;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
}

legend {
  padding: 0 6px;
  color: var(--label);
  font-size: 13px;
  font-weight: 600;
}

.login-screen {
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background: var(--bg);
}

.login-card,
.tenant-unavailable {
  width: min(100%, 430px);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 32px;
  box-shadow: none;
}

.login-logo {
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
  border-radius: 16px;
}

.login-card h1 {
  margin-bottom: 24px;
  font-size: 30px;
}

.login-card .primary {
  width: 100%;
  margin-top: 18px;
}

.remember-login-hint {
  margin-top: 7px;
  font-size: 12px;
}

.superadmin-entry {
  top: 18px;
  right: 18px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.app-shell {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 0 0 calc(88px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  padding: 8px 16px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.brand-lockup {
  gap: 10px;
  align-items: center;
}

.app-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.topbar h1 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.topbar .eyebrow {
  display: none;
}

.topbar-menu-button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-color: transparent;
  border-radius: 50%;
  background: transparent;
}

.user-box {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 12px;
  box-shadow: none;
}

.sync-status {
  min-height: 24px;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.sync-status.online {
  background: var(--soft-success);
  color: var(--success-dark);
}

.sync-status.offline {
  background: var(--soft-red);
  color: var(--red);
}

.workspace-shell {
  min-width: 0;
}

.tabs {
  position: fixed;
  z-index: 18;
  right: 10px;
  bottom: max(8px, env(safe-area-inset-bottom));
  left: 10px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  padding: 5px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 1 0 86px;
  min-width: 0;
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 550;
}

.tab:hover {
  border-color: transparent;
  background: var(--soft);
}

.tab.active {
  border-color: transparent;
  background: var(--soft-blue);
  color: var(--green);
  font-weight: 650;
}

main {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.view.active {
  animation: none;
}

.section-heading {
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: 30px;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
}

.layout,
.room-grid,
.revision-list,
.settings-layout,
.performance-grid {
  gap: 16px;
}

.panel,
.room-card,
.revision-card,
.quality-issue-card,
.laundry-alert,
.quick-contact,
.laundry-control {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
  box-shadow: none;
}

.panel-heading,
.room-card-head,
.focused-head,
.modal-head {
  gap: 12px;
}

.panel-heading {
  margin-bottom: 4px;
}

.panel-heading h2 {
  font-size: 19px;
}

.assignment-type-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin: 14px 0;
  border-radius: 10px;
  background: var(--soft);
  padding: 3px;
}

.assignment-type-tab {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.assignment-type-tab:hover {
  border-color: transparent;
}

.assignment-type-tab.active {
  border-color: transparent;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

#roomAssignmentPanel,
#additionalWorkAssignmentPanel {
  margin-top: 0;
  padding: 14px;
}

#assignmentRooms.room-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 2px;
}

.room-option {
  min-height: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.room-option:last-child {
  border-bottom: 1px solid var(--line);
}

.room-option__select {
  grid-template-columns: 20px minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
}

.room-option__select:has(.room-option__checkbox:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--green) 28%, transparent);
  outline-offset: -3px;
}

.room-option__mark {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-color: var(--line-strong);
  background: var(--panel);
}

.room-option__title {
  font-size: 16px;
  font-weight: 650;
}

.room-option__meta,
.room-option__occupancy-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.room-option__occupancy {
  padding: 7px 10px;
}

.room-option__occupancy-input {
  min-height: 30px;
  font-size: 16px;
  font-weight: 600;
}

.room-option:has(.room-option__checkbox:checked),
.room-option--selected {
  border-color: color-mix(in srgb, var(--green) 55%, var(--line));
  background: var(--soft-blue);
}

.room-option:has(.room-option__checkbox:checked) .room-option__mark,
.room-option--selected .room-option__mark {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 4px var(--panel);
}

.operations-panel {
  background: var(--panel);
}

.metrics strong {
  font-family: var(--ui-font);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.metrics span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.month-picker {
  gap: 4px;
}

.month-picker button {
  min-width: 40px;
  padding: 0 11px;
  font-size: 20px;
}

.month-picker select {
  min-height: 40px;
  padding-block: 7px;
  font-size: 14px;
}

#settingsButton.active {
  border-color: transparent;
  background: var(--soft-blue);
  color: var(--green);
}

.room-card,
.revision-card,
.quality-issue-card {
  overflow: visible;
}

.room-card.openable:hover {
  border-color: var(--line-strong);
  box-shadow: none;
  transform: none;
}

.assignment-card,
.assignment-card.ceka,
.assignment-card.uklizi-se,
.assignment-card.pozastaveno,
.assignment-card.hotovo,
.assignment-card.zkontrolovano,
.laundry-control,
.quick-contact {
  border-left-width: 1px;
  border-left-color: var(--line);
}

.additional-assignment {
  border-color: var(--line);
  background: var(--panel);
}

.room-number {
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.badge,
.status,
.priority {
  min-height: 26px;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.badge {
  background: var(--soft);
  color: var(--label);
}

.status.hotovo,
.status.zkontrolovano {
  background: var(--soft-success);
  color: var(--success-dark);
}

.status.uklizi-se,
.status.pozastaveno {
  background: var(--soft-amber);
  color: var(--amber-dark);
}

.status.ceka {
  background: var(--soft-blue);
  color: var(--green-dark);
}

.filters {
  gap: 4px;
  border-radius: 10px;
  background: var(--soft);
  padding: 3px;
}

.filter {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.filter.active {
  border-color: transparent;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

#receptionView .filters {
  gap: 4px;
  margin: 6px 0 0;
  padding: 3px;
  overflow-x: auto;
}

#receptionView .filter {
  min-height: 34px;
  padding: 0 12px;
}

.tools,
.row-actions,
.action-row,
.filters {
  gap: 8px;
}

.empty {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  padding: 34px 20px;
  color: var(--muted);
}

.list-row,
.admin-room-row,
.admin-inline-form {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 12px 2px;
}

.list-row:last-child,
.admin-room-row:last-child {
  border-bottom: 0;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft);
  font-weight: 600;
}

.table-wrap {
  overflow: hidden auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: none;
}

.table-wrap:has(> .empty:only-child),
.table-wrap:has(> .compact-empty:only-child) {
  border-color: transparent;
  background: transparent;
}

.table-wrap:has(.minibar-empty-row:only-child) {
  border-color: transparent;
  background: transparent;
}

.minibar-table:has(.minibar-empty-row:only-child) thead {
  display: none;
}

.minibar-table .minibar-empty-row td {
  border: 0;
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
}

.history-table,
.minibar-table,
.performance-table {
  border-collapse: collapse;
}

.history-table th,
.minibar-table th,
.performance-table th {
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.history-table td,
.minibar-table td,
.performance-table td,
.history-table th,
.minibar-table th,
.performance-table th {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.minibar-table tr.minibar-day-separator {
  background: var(--soft);
}

.minibar-table .minibar-day-separator td {
  border-top: 12px solid var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

.detail-modal,
.superadmin-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(860px, calc(100dvh - 32px));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--ink);
  padding: 24px;
  box-shadow: var(--shadow-raised);
}

.detail-modal::backdrop,
.superadmin-dialog::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(2px);
}

.detail-modal .modal-head {
  position: sticky;
  z-index: 2;
  top: -24px;
  margin: -24px -24px 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  padding: 20px 24px;
  backdrop-filter: blur(18px);
}

#roomDetailDialog {
  width: min(820px, calc(100% - 32px));
}

.history-detail-room h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.detail-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 4px 0 16px;
  font-family: var(--ui-font);
  font-size: 13px;
  line-height: 1.45;
}

.detail-meta > span {
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.history-detail-room {
  margin-top: 22px;
  padding-top: 22px;
}

.history-detail-room:first-child {
  margin-top: 0;
  padding-top: 0;
}

.history-check-actions,
.history-delete-actions {
  margin-top: 14px;
}

.modal-head > button {
  flex: 0 0 auto;
}

.live-notification {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

@media (min-width: 56rem) {
  .app-shell {
    padding-bottom: 0;
  }

  .topbar {
    min-height: 72px;
    padding: 10px 24px;
  }

  .topbar .eyebrow {
    display: block;
  }

  .app-logo {
    width: 46px;
    height: 46px;
  }

  .topbar h1 {
    font-size: 22px;
  }

  .topbar-menu-button {
    display: none;
  }

  .user-box {
    display: grid;
    grid-column: auto;
    min-width: 360px;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .user-actions button {
    min-height: 34px;
    background: transparent;
  }

  .workspace-shell {
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr);
    min-height: calc(100dvh - 72px);
  }

  .tabs {
    position: sticky;
    top: 72px;
    right: auto;
    bottom: auto;
    left: auto;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    height: calc(100dvh - 72px);
    overflow-y: auto;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: color-mix(in srgb, var(--panel) 72%, transparent);
    padding: 22px 12px;
    box-shadow: none;
  }

  .tab {
    flex: 0 0 auto;
    width: 100%;
    min-height: 38px;
    border-radius: 8px;
    padding: 0 12px;
    text-align: left;
    font-size: 14px;
  }

  .tab.active {
    background: var(--soft-blue);
    color: var(--green);
  }

  main {
    width: min(100%, 1360px);
    margin: 0;
    padding: 36px clamp(28px, 4vw, 56px) 64px;
  }

  .section-heading {
    display: flex;
    min-height: 42px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .room-grid,
  .revision-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
  }

  .detail-modal {
    width: min(960px, calc(100% - 48px));
    max-height: min(900px, calc(100dvh - 48px));
    padding: 28px;
  }

  .detail-modal .modal-head {
    top: -28px;
    margin: -28px -28px 22px;
    padding: 22px 28px;
  }
}

@media (max-width: 55.99rem) {
  button,
  .button-link,
  .file-picker-button {
    min-height: 44px;
  }

  main {
    padding-top: 22px;
  }

  .panel,
  .room-card,
  .revision-card,
  .quality-issue-card {
    padding: 16px;
  }

  #assignmentRooms.room-check-grid {
    grid-template-columns: 1fr;
  }

  .detail-modal {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    padding: 20px;
  }

  .detail-modal .modal-head {
    top: -20px;
    margin: -20px -20px 18px;
    padding: 18px 20px;
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }

  .history-table tr,
  .minibar-table tr {
    padding: 14px 16px;
  }

  .history-table td[data-label]::before,
  .minibar-table td[data-label]::before {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
  }
}

/*
 * Native parity v4
 * Mirrors the SwiftUI NavigationSplitView/List/Form hierarchy and spacing.
 */

:root {
  --native-canvas: #ffffff;
  --native-sidebar: #f7f7f8;
  --native-group: #efedf0;
  --native-group-hover: #e8e6e9;
  --native-toolbar: rgba(255, 255, 255, 0.9);
  --native-selection: #0a7df0;
  --native-separator: rgba(60, 60, 67, 0.18);
  --native-control: #e9e7e9;
  --native-control-hover: #dedcdf;
  --native-orange: #f09a55;
  --native-purple: #bf42b6;
  --native-green: #5ac878;
  --native-blue: #0a84ff;
  --native-content-max: 1100px;
  --native-sidebar-width: 228px;
}

body[data-theme="dark"] {
  --native-canvas: #1c1c1e;
  --native-sidebar: #242426;
  --native-group: #2c2c2e;
  --native-group-hover: #3a3a3c;
  --native-toolbar: rgba(28, 28, 30, 0.9);
  --native-selection: #0a84ff;
  --native-separator: rgba(84, 84, 88, 0.65);
  --native-control: #3a3a3c;
  --native-control-hover: #48484a;
}

.sf-symbol {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--sf-symbol) center / contain no-repeat;
  mask: var(--sf-symbol) center / contain no-repeat;
}

.ui-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: none;
}

body {
  font-size: 13px;
  line-height: 1.25;
}

button,
.button-link,
.file-picker-button {
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  background: var(--native-control);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
}

button:hover,
.button-link:hover,
.file-picker-button:hover {
  border-color: transparent;
  background: var(--native-control-hover);
}

button.icon-only {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  border-radius: 8px;
  padding: 0;
}

button.primary,
.button-link.primary,
.file-picker-button {
  background: var(--native-selection);
  color: #fff;
}

input,
select,
textarea {
  min-height: 28px;
  border: 1px solid rgba(60, 60, 67, 0.28);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
}

textarea {
  min-height: 74px;
  padding: 7px 8px;
  line-height: 1.35;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--native-sidebar-width) minmax(0, 1fr);
  min-height: 100dvh;
  overflow: hidden;
  background: var(--native-canvas);
}

.app-sidebar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  min-width: 0;
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--native-separator);
  background: color-mix(in srgb, var(--native-sidebar) 94%, transparent);
  backdrop-filter: saturate(160%) blur(26px);
  -webkit-backdrop-filter: saturate(160%) blur(26px);
}

.brand-lockup {
  display: flex;
  min-height: 118px;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid color-mix(in srgb, var(--native-separator) 42%, transparent);
  padding: 20px 22px 14px;
}

.app-logo {
  width: 42px;
  height: 52px;
  border-radius: 0;
  object-fit: contain;
}

.brand-lockup > div {
  display: grid;
  gap: 1px;
}

.brand-lockup strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.08;
}

.brand-lockup span {
  color: var(--muted);
  font-size: 10px;
}

.tabs {
  position: static;
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 8px 11px;
  box-shadow: none;
  backdrop-filter: none;
}

.tab {
  display: flex;
  min-height: 32px;
  flex: 0 0 32px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 9px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.tab .ui-icon {
  width: 16px;
  height: 16px;
}

.tab:hover {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.tab.active {
  background: var(--native-selection);
  color: #fff;
  font-weight: 500;
}

.user-box {
  display: grid;
  gap: 2px;
  min-height: 62px;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--native-separator) 42%, transparent);
  border-radius: 0;
  background: transparent;
  padding: 13px 18px 15px;
}

.user-box #todayLabel,
.user-box .sync-status {
  display: none;
}

.user-box .tenant-label {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-box #currentUserLabel {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.user-actions {
  display: none;
}

.app-detail {
  display: grid;
  min-width: 0;
  min-height: 100dvh;
  grid-template-rows: 51px minmax(0, 1fr);
  background: var(--native-canvas);
}

.topbar {
  position: sticky;
  z-index: 35;
  top: 0;
  display: flex;
  min-height: 51px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--native-separator);
  background: var(--native-toolbar);
  padding: 0 14px 0 16px;
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
}

.topbar h1 {
  min-width: 0;
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
}

.native-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

#refreshAppButton {
  border-radius: 50%;
  background: color-mix(in srgb, var(--native-canvas) 80%, transparent);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

#refreshAppButton.refreshing .sf-symbol {
  animation: native-spin 700ms linear infinite;
}

@keyframes native-spin {
  to { transform: rotate(360deg); }
}

.topbar-menu-button {
  display: none;
}

main {
  width: 100%;
  max-width: none;
  min-width: 0;
  height: calc(100dvh - 51px);
  overflow: auto;
  background: var(--native-canvas);
  margin: 0;
  padding: 16px;
}

.view {
  width: min(100%, var(--native-content-max));
  min-height: calc(100dvh - 83px);
  margin: 0;
}

.view > .section-heading:first-child {
  margin: 0;
}

#dashboardView > .native-page-heading,
#receptionView > .native-page-heading,
#historyView > .section-heading,
#minibarView > .section-heading,
#settingsView > .section-heading {
  height: 0;
  margin: 0;
}

#dashboardView > .native-page-heading > div,
#dashboardView > .native-page-heading #dashboardUpdated,
#receptionView > .native-page-heading > div,
#historyView > .section-heading > div:first-child,
#minibarView > .section-heading > div:first-child,
#settingsView > .section-heading > div:first-child,
#settingsView > .section-heading > .hint {
  display: none;
}

#receptionView #openAssignmentDialog {
  position: fixed;
  z-index: 50;
  top: 10px;
  right: 14px;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--native-canvas) 80%, transparent);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

body:not([data-view="reception"]) #openAssignmentDialog {
  display: none;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard-metrics > div {
  display: grid;
  min-height: 126px;
  align-content: start;
  gap: 7px;
  border: 0;
  border-radius: 15px;
  background: var(--native-group);
  padding: 15px 16px;
}

.dashboard-metrics > div:first-child {
  border: 0;
}

.dashboard-metrics .metric-symbol {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--native-blue);
  font-size: 20px;
}

.dashboard-metrics > div:nth-child(1) .metric-symbol { color: var(--native-orange); }
.dashboard-metrics > div:nth-child(3) .metric-symbol { color: var(--native-green); }
.dashboard-metrics > div:nth-child(4) .metric-symbol { color: var(--native-purple); }

.dashboard-metrics strong {
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}

.dashboard-metrics span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.native-list-section {
  margin-top: 24px;
}

.native-list-section > h3,
.dashboard-rooms-section .compact-heading h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.native-list,
.dashboard-rooms-section .native-assignment-list {
  overflow: hidden;
  border: 0;
  border-radius: 15px;
  background: var(--native-group);
}

.native-status-row,
.native-action-row,
.native-navigation-row,
.reception-card,
.room-card {
  border-bottom: 1px solid var(--native-separator);
}

.native-status-row:last-child,
.native-action-row:last-child,
.native-navigation-row:last-child,
.reception-card:last-child,
.room-card:last-child {
  border-bottom: 0;
}

.dashboard-rooms-section .compact-heading {
  align-items: center;
  margin: 0 0 10px;
}

.dashboard-rooms-section .compact-heading > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.dashboard-rooms-section .compact-heading h3 {
  margin: 0;
}

.dashboard-rooms-section .filters {
  display: none;
}

#checkAllFinishedRooms {
  background: var(--native-control);
  color: var(--ink);
}

.native-assignment-list .room-card,
.native-assignment-list .reception-card {
  border: 0;
  border-bottom: 1px solid var(--native-separator);
  border-radius: 0;
  background: transparent;
  padding: 12px 14px;
}

.native-assignment-list .room-card:last-child,
.native-assignment-list .reception-card:last-child {
  border-bottom: 0;
}

.native-reception-list {
  width: 100%;
}

#receptionView .native-list-section {
  margin-top: 0;
  padding-top: 10px;
}

#receptionView .native-list-section + .native-list-section {
  margin-top: 14px;
}

#receptionView .native-list-section > h3 {
  margin: 0;
  border-bottom: 1px solid var(--native-separator);
  padding: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

#receptionView .native-list {
  border-radius: 0;
  background: transparent;
}

#receptionView .native-action-row {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 6px 0;
}

#receptionView .native-action-row > div:first-child {
  display: none;
}

#receptionView .native-action-row .tools {
  width: 100%;
  justify-content: flex-start;
}

#receptionView .quick-contact .native-inline-field {
  flex: 1 1 260px;
  margin: 0;
}

#receptionView .quick-contact {
  flex-wrap: wrap;
}

#receptionView .quick-contact .tools {
  width: auto;
}

#receptionView .native-navigation-row {
  width: 100%;
  min-height: 43px;
  border-bottom: 1px solid var(--native-separator);
  border-radius: 0;
  background: transparent;
  padding: 6px 0;
}

#receptionView .native-navigation-row:hover {
  background: transparent;
}

#receptionView .native-row-icon {
  display: none;
}

#receptionView .native-navigation-row small {
  display: none;
}

#receptionView .native-chevron {
  display: none;
}

#receptionView #departureRooms {
  border-radius: 0;
}

#receptionView .native-empty-row {
  border-bottom: 1px solid var(--native-separator);
  padding: 9px 0;
  text-align: left;
}

#historyRooms.table-wrap,
#minibarView > .table-wrap {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.history-day-list,
.minibar-table tbody {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.history-day-row {
  min-height: 68px;
  border-bottom: 1px solid var(--native-separator);
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
}

.history-day-row:hover {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}

.history-day-row strong {
  font-size: 13px;
}

.history-day-row small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

#historyView .tools.inline,
#minibarView > .section-heading .tools.inline {
  position: fixed;
  z-index: 49;
  top: 10px;
  right: 52px;
  margin: 0;
}

#historyView .month-picker,
#minibarView .month-picker {
  display: none !important;
}

#minibarView #clearMinibar {
  display: none;
}

.minibar-table tbody tr:not(.minibar-day-separator):not(.minibar-empty-row) {
  min-height: 64px;
  border-bottom: 1px solid var(--native-separator);
  padding: 9px 0;
}

.minibar-table tr.minibar-day-separator,
.minibar-table .minibar-day-separator td {
  border-bottom: 1px solid var(--native-separator);
  background: transparent;
  padding: 18px 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.minibar-table tbody tr:not(.minibar-day-separator) td:first-child {
  font-size: 13px;
  font-weight: 700;
}

.minibar-table tbody tr:not(.minibar-day-separator) td:nth-child(2),
.minibar-table tbody tr:not(.minibar-day-separator) td:nth-child(3) {
  color: var(--muted);
  font-size: 11px;
}

.panel,
.settings-layout .panel,
.admin-forms .panel,
.admin-lists .panel,
.performance-panel,
.schedule-form {
  border: 0;
  border-radius: 12px;
  background: var(--native-group);
  box-shadow: none;
}

.settings-layout,
.admin-forms,
.admin-lists,
.performance-grid {
  gap: 14px;
}

.settings-layout {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  max-width: 900px;
}

.settings-layout .panel {
  padding: 16px;
}

.panel-heading {
  margin-bottom: 12px;
}

.panel-heading h2 {
  font-size: 15px;
  font-weight: 700;
}

.detail-modal,
.superadmin-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  border: 1px solid var(--native-separator);
  border-radius: 18px;
  background: var(--native-canvas);
  padding: 0;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

.detail-modal::backdrop,
.superadmin-dialog::backdrop {
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(2px);
}

.detail-modal .modal-head,
.superadmin-dialog .modal-head {
  position: sticky;
  top: 0;
  min-height: 69px;
  margin: 0;
  border-bottom: 1px solid var(--native-separator);
  background: var(--native-toolbar);
  padding: 19px 32px 16px;
}

.detail-modal .modal-head h2 {
  font-size: 17px;
  font-weight: 700;
}

.detail-modal .modal-head .eyebrow {
  display: none;
}

.detail-modal .modal-head > button {
  position: static;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  border-radius: 50%;
}

.assignment-dialog {
  width: min(760px, calc(100% - 32px));
}

.assignment-dialog #assignmentForm {
  display: grid;
  gap: 22px;
  padding: 24px 32px 0;
}

.assignment-dialog .modal-footer {
  position: sticky;
  bottom: 0;
  margin: 0 -32px;
  border-top: 1px solid var(--native-separator);
  background: var(--native-toolbar);
  padding: 17px 32px;
}

.assignment-dialog .room-check-grid {
  overflow: hidden;
  border: 1px solid var(--native-separator);
  border-radius: 10px;
}

.assignment-dialog .room-check-grid > * {
  min-height: 48px;
}

.assignment-type-tabs,
.revision-tabs,
.filters {
  min-height: 28px;
  border-radius: 7px;
  background: var(--native-control);
  padding: 2px;
}

.assignment-type-tab,
.revision-filter,
.filter {
  min-height: 24px;
  border-radius: 5px;
  background: transparent;
  padding: 0 12px;
}

.assignment-type-tab.active,
.revision-filter.active,
.filter.active {
  background: var(--native-canvas);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

body[data-role="housekeeping"] .app-shell {
  display: block;
  background: var(--bg);
}

body[data-role="housekeeping"] .app-sidebar {
  position: fixed;
  z-index: 60;
  top: auto;
  right: 8px;
  bottom: max(8px, env(safe-area-inset-bottom));
  left: 8px;
  display: block;
  width: auto;
  height: 62px;
  overflow: visible;
  border: 1px solid var(--native-separator);
  border-radius: 22px;
  background: color-mix(in srgb, var(--native-sidebar) 90%, transparent);
  box-shadow: 0 9px 34px rgba(0, 0, 0, 0.14);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
}

body[data-role="housekeeping"] .brand-lockup,
body[data-role="housekeeping"] .user-box {
  display: none;
}

body[data-role="housekeeping"] .tabs {
  display: grid;
  height: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
  padding: 4px;
}

body[data-role="housekeeping"] .tab {
  display: flex;
  min-height: 52px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border-radius: 18px;
  color: var(--muted);
  padding: 4px;
  font-size: 10px;
  text-align: center;
}

body[data-role="housekeeping"] .tab .ui-icon {
  width: 20px;
  height: 20px;
}

body[data-role="housekeeping"] .tab.active {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--native-blue);
  font-weight: 600;
}

body[data-role="housekeeping"] .app-detail {
  min-height: 100dvh;
  background: var(--bg);
}

body[data-role="housekeeping"] .topbar {
  background: color-mix(in srgb, var(--panel) 90%, transparent);
}

body[data-role="housekeeping"] .topbar h1 {
  font-size: 17px;
  text-align: center;
}

body[data-role="housekeeping"] main {
  height: calc(100dvh - 51px);
  background: var(--bg);
  padding: 16px 16px calc(88px + env(safe-area-inset-bottom));
}

body[data-role="housekeeping"] .view {
  width: min(100%, 760px);
  margin: 0 auto;
}

body[data-role="housekeeping"] #housekeepingView > .section-heading {
  display: none;
}

body[data-role="housekeeping"] .housekeeping-segment {
  width: 100%;
  margin: 0 0 18px;
}

body[data-role="housekeeping"] .native-list-section > h3 {
  margin-left: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

body[data-role="housekeeping"] .native-list-section,
body[data-role="housekeeping"] .housekeeping-extra-work {
  margin-top: 18px;
}

body[data-role="housekeeping"] .housekeeping-extra-work {
  border-radius: 12px;
  background: var(--panel);
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
    overflow: visible;
  }

  .app-sidebar {
    position: fixed;
    z-index: 60;
    top: auto;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    display: block;
    width: auto;
    height: 62px;
    overflow: visible;
    border: 1px solid var(--native-separator);
    border-radius: 22px;
    background: color-mix(in srgb, var(--native-sidebar) 90%, transparent);
    box-shadow: 0 9px 34px rgba(0, 0, 0, 0.14);
  }

  .brand-lockup,
  .user-box {
    display: none;
  }

  .tabs {
    display: grid;
    height: 100%;
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
    overflow-x: auto;
    padding: 4px;
  }

  .tab {
    min-height: 52px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    border-radius: 18px;
    padding: 4px;
    font-size: 9px;
    text-align: center;
  }

  .tab.active {
    background: color-mix(in srgb, var(--ink) 8%, transparent);
    color: var(--native-blue);
  }

  .app-detail {
    min-height: 100dvh;
  }

  .topbar-menu-button {
    display: none;
  }

  main {
    height: calc(100dvh - 51px);
    padding: 14px 14px calc(88px + env(safe-area-inset-bottom));
  }

  .view {
    min-height: calc(100dvh - 153px);
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-metrics > div {
    min-height: 112px;
  }

  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #receptionView #openAssignmentDialog {
    right: 14px;
  }

  .detail-modal,
  .superadmin-dialog,
  .assignment-dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 10px);
    margin: auto 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
  }

  .detail-modal .modal-head,
  .assignment-dialog .modal-head {
    padding: 16px 18px;
  }

  .assignment-dialog #assignmentForm {
    padding: 18px 18px 0;
  }

  .assignment-dialog .modal-footer {
    margin: 0 -18px;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  }
}

@media (prefers-contrast: more) {
  :root {
    --native-separator: rgba(60, 60, 67, 0.45);
  }

  body[data-theme="dark"] {
    --native-separator: rgba(235, 235, 245, 0.48);
  }
}

/*
 * Native parity v3
 * Information architecture and grouped lists follow the SwiftUI clients.
 */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.native-page-heading {
  margin-bottom: 20px;
}

.native-page-heading .eyebrow {
  display: none;
}

.native-page-heading h2 {
  font-size: 30px;
}

.dashboard-metrics.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.dashboard-metrics.metrics > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  min-height: 96px;
  border-right: 1px solid var(--line);
  padding: 16px 18px;
}

.dashboard-metrics.metrics > div:last-child {
  border-right: 0;
}

.dashboard-metrics .metric-symbol {
  grid-row: 1 / span 2;
  align-self: start;
  color: var(--green);
  font-size: 18px;
  line-height: 1.4;
}

.dashboard-metrics strong {
  align-self: end;
  font-size: 28px;
  line-height: 1;
}

.dashboard-metrics strong + span {
  align-self: start;
  color: var(--muted);
  font-size: 13px;
}

.native-list-section {
  margin: 0 0 28px;
}

.native-list-section > h3,
.compact-heading h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.015em;
}

.native-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.native-status-row,
.native-action-row,
.native-navigation-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.native-status-row:last-child,
.native-action-row:last-child,
.native-navigation-row:last-child {
  border-bottom: 0;
}

.native-status-row > div,
.native-action-row > div:first-child,
.native-navigation-row > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.native-status-row strong,
.native-action-row strong,
.native-navigation-row strong {
  font-size: 14px;
  font-weight: 650;
}

.native-status-row span,
.native-navigation-row small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.native-status-icon,
.native-row-icon {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.native-row-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 18px;
  font-weight: 500;
}

.native-chevron {
  color: var(--muted);
  font-size: 24px;
  font-weight: 300;
}

.native-navigation-row:hover {
  background: var(--soft);
}

.native-empty-row {
  margin: 0;
  padding: 15px 14px;
  color: var(--muted);
  font-size: 13px;
}

.native-reception-list {
  max-width: 1000px;
}

.housekeeping-segment {
  max-width: 620px;
  margin: 0 auto 28px;
}

.housekeeping-alert-section:not(:has(#laundryAlert > *)):not(:has(#quickContactAlert > *)):not(:has(#qualityIssueAlerts > *)) {
  display: none;
}

#housekeepingRooms {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

#housekeepingRooms > .room-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

#housekeepingRooms > .room-card:last-child {
  border-bottom: 0;
}

#housekeepingRooms > .empty {
  width: 100%;
}

.completed-housekeeping-list {
  width: 100%;
  border: 0;
  border-radius: 0;
}

.quick-action-list .native-action-row {
  grid-template-columns: minmax(230px, 1fr) auto;
}

.quick-action-list .quick-contact {
  grid-template-columns: minmax(230px, 1fr) minmax(230px, 0.8fr) auto;
}

.native-inline-field {
  margin: 0;
}

.native-inline-field input {
  min-height: 36px;
}

.dashboard-rooms-section .compact-heading {
  align-items: end;
  margin-bottom: 10px;
}

.dashboard-rooms-section .compact-heading > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.native-assignment-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.native-assignment-list .reception-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.native-assignment-list .reception-card:last-child {
  border-bottom: 0;
}

.assignment-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: min(860px, calc(100dvh - 32px));
  padding-bottom: 0;
}

.assignment-dialog #assignmentForm {
  display: grid;
  gap: 18px;
}

.assignment-dialog .panel-heading {
  margin: 0;
}

.assignment-dialog fieldset {
  min-width: 0;
}

.assignment-dialog .modal-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 4px -26px 0;
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 16px 26px;
}

#historyRooms.table-wrap {
  overflow: visible;
  border: 0;
  background: transparent;
}

.history-day-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.history-day-row > span:first-child {
  display: grid;
  gap: 3px;
}

.history-day-row small {
  white-space: normal;
}

.history-day-row small:last-child {
  font-size: 12px;
}

#minibarView > .table-wrap {
  border: 0;
  background: transparent;
}

.minibar-table thead {
  display: none;
}

.minibar-table,
.minibar-table tbody {
  display: block;
  width: 100%;
}

.minibar-table tbody {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.minibar-table tbody:has(.minibar-empty-row:only-child) {
  border: 0;
  background: transparent;
}

.minibar-table .minibar-empty-row {
  display: block;
}

.minibar-table .minibar-empty-row td {
  display: block;
  padding: 40px 20px;
  text-align: center;
}

.minibar-table tbody tr:not(.minibar-day-separator):not(.minibar-empty-row) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
}

.minibar-table tbody tr:not(.minibar-day-separator) td {
  border: 0;
  padding: 0;
}

.minibar-table tbody tr:not(.minibar-day-separator) td:first-child {
  grid-column: 1;
  grid-row: 1;
  font-weight: 650;
}

.minibar-table tbody tr:not(.minibar-day-separator) td:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  color: var(--muted);
  font-size: 12px;
}

.minibar-table tbody tr:not(.minibar-day-separator) td:nth-child(3) {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.minibar-table tr.minibar-day-separator,
.minibar-table .minibar-day-separator td {
  display: block;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 18px 14px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}

.minibar-reception-alert {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.minibar-reception-alert:last-child {
  border-bottom: 0;
}

button.primary:disabled,
.primary[aria-disabled="true"] {
  background: var(--soft);
  color: var(--muted);
  opacity: 1;
}

@media (min-width: 56rem) {
  body[data-role="admin"] #settingsButton,
  body[data-role="reception"] #settingsButton {
    display: none;
  }
}

@media (max-width: 55.99rem) {
  .dashboard-metrics.metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-metrics.metrics > div:nth-child(2) {
    border-right: 0;
  }

  .dashboard-metrics.metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .quick-action-list .native-action-row,
  .quick-action-list .quick-contact,
  .departure-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .native-status-icon {
    display: none;
  }

  .native-action-row .tools,
  .departure-row button {
    justify-content: flex-start;
  }

  .dashboard-rooms-section .compact-heading,
  .dashboard-rooms-section .compact-heading > div:first-child {
    display: grid;
    align-items: start;
  }

  .assignment-dialog .modal-footer {
    margin-right: -18px;
    margin-left: -18px;
    padding: 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

/*
 * HIG redesign v2
 * Structure first: grouped content, one accent, plain lists and familiar controls.
 */

:root {
  --bg: #f2f2f7;
  --panel: #ffffff;
  --field: #ffffff;
  --button-bg: #e9e9ee;
  --ink: #1d1d1f;
  --label: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(60, 60, 67, 0.18);
  --line-strong: rgba(60, 60, 67, 0.3);
  --green: #007aff;
  --green-dark: #0066d6;
  --blue: #007aff;
  --success: #248a3d;
  --success-dark: #1f7a35;
  --amber: #9a6700;
  --amber-dark: #7a5200;
  --red: #d70015;
  --soft: #f2f2f7;
  --soft-green: #eaf3ff;
  --soft-blue: #eaf3ff;
  --soft-success: #edf7ef;
  --soft-amber: #fff5df;
  --soft-red: #fff0f1;
  --radius: 12px;
  --radius-small: 9px;
  --shadow: none;
  --shadow-raised: 0 22px 70px rgba(0, 0, 0, 0.22);
  --ui-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --data-font: var(--ui-font);
}

body[data-theme="dark"] {
  --bg: #000000;
  --panel: #1c1c1e;
  --field: #2c2c2e;
  --button-bg: #2c2c2e;
  --ink: #f5f5f7;
  --label: #f5f5f7;
  --muted: #aeaeb2;
  --line: rgba(235, 235, 245, 0.18);
  --line-strong: rgba(235, 235, 245, 0.32);
  --green: #0a84ff;
  --green-dark: #409cff;
  --blue: #0a84ff;
  --success: #30d158;
  --success-dark: #30d158;
  --amber: #ffd60a;
  --amber-dark: #ffd60a;
  --red: #ff453a;
  --soft: #2c2c2e;
  --soft-green: #132a44;
  --soft-blue: #132a44;
  --soft-success: #16351f;
  --soft-amber: #382f10;
  --soft-red: #431b1d;
}

html,
body {
  background: var(--bg);
}

body {
  font-family: var(--ui-font);
  letter-spacing: 0;
}

h1,
h2,
h3,
strong {
  letter-spacing: -0.02em;
}

h1 {
  font-size: 30px;
  font-weight: 700;
}

h2 {
  font-size: 28px;
  font-weight: 700;
}

h3 {
  font-size: 17px;
  font-weight: 650;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.hint,
.card-meta,
.today {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.ui-icon {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button,
.button-link,
.file-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: var(--button-bg);
  color: var(--ink);
  padding: 0 13px;
  font-size: 14px;
  font-weight: 550;
  box-shadow: none;
}

button:hover,
.button-link:hover,
.file-picker-button:hover {
  border-color: transparent;
  background: color-mix(in srgb, var(--button-bg) 76%, var(--ink));
}

button:active,
.button-link:active,
.file-picker-button:active {
  transform: none;
  opacity: 0.68;
}

button.icon-only {
  width: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 50%;
}

button.icon-only .ui-icon {
  width: 17px;
  height: 17px;
}

button.primary,
.button-link.primary,
.file-picker-button {
  border: 0;
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

button.primary:hover,
.button-link.primary:hover,
.file-picker-button:hover {
  background: var(--green-dark);
}

button.danger,
.danger {
  border: 0;
  background: transparent;
  color: var(--red);
}

button.danger:hover,
.danger:hover {
  background: var(--soft-red);
}

button:disabled,
.button-link[aria-disabled="true"] {
  opacity: 0.38;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.button-link:focus-visible,
.file-picker-button:focus-within,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--green) 30%, transparent);
  outline-offset: 2px;
}

input,
select,
textarea {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 9px 11px;
  font-family: var(--ui-font);
  font-size: 15px;
  box-shadow: none;
}

textarea {
  line-height: 1.45;
}

label {
  gap: 6px;
  margin-top: 13px;
  color: var(--label);
  font-size: 13px;
  font-weight: 550;
}

fieldset {
  margin-top: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.login-screen {
  background: var(--bg);
}

.login-card,
.tenant-unavailable {
  width: min(100%, 390px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 30px;
  box-shadow: none;
}

.login-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  border-radius: 14px;
}

.login-card h1 {
  margin-bottom: 22px;
  font-size: 28px;
}

.login-card .primary {
  min-height: 42px;
}

.app-shell {
  min-height: 100dvh;
  padding: 0;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  padding: 8px 18px;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.brand-lockup {
  gap: 10px;
}

.app-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.topbar h1 {
  font-size: 19px;
  font-weight: 650;
}

.topbar .eyebrow {
  display: none;
}

.topbar-menu-button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  background: transparent;
}

.user-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 12px;
  box-shadow: none;
}

.user-actions {
  gap: 4px;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  padding: 0;
  color: var(--muted) !important;
  font-size: 12px;
  font-weight: 500;
}

.sync-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
}

.sync-status.online::before {
  background: var(--success);
}

.sync-status.offline::before {
  background: var(--red);
}

.workspace-shell {
  min-width: 0;
}

.tabs {
  position: fixed;
  z-index: 25;
  right: 8px;
  bottom: max(8px, env(safe-area-inset-bottom));
  left: 8px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  padding: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  scrollbar-width: none;
}

.tab {
  display: flex;
  flex: 1 0 76px;
  flex-direction: column;
  gap: 3px;
  min-height: 50px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 550;
}

.tab .ui-icon {
  width: 19px;
  height: 19px;
}

.tab:hover {
  background: var(--soft);
}

.tab.active {
  background: transparent;
  color: var(--green);
  font-weight: 600;
}

main {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 24px 16px calc(94px + env(safe-area-inset-bottom));
}

.view.active {
  animation: none;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
}

.layout,
.room-grid,
.revision-list,
.settings-layout,
.performance-grid {
  gap: 16px;
}

.panel,
.room-card,
.revision-card,
.quality-issue-card,
.laundry-alert,
.quick-contact,
.laundry-control {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 17px;
  box-shadow: none;
}

.panel-heading,
.room-card-head,
.focused-head,
.modal-head {
  gap: 12px;
}

.panel-heading {
  margin-bottom: 8px;
}

.panel-heading h2 {
  font-size: 18px;
  font-weight: 650;
}

.panel-heading .hint {
  font-size: 12px;
}

.assignment-type-tabs,
.filters,
.revision-segmented {
  gap: 2px;
  border: 0;
  border-radius: 9px;
  background: var(--soft);
  padding: 2px;
}

.assignment-type-tab,
.filter,
.revision-filter {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.assignment-type-tab.active,
.filter.active,
.revision-filter.active {
  border: 0;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

#assignmentRooms.room-check-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 7px;
  border: 0;
  background: transparent;
  padding: 0;
}

.room-option {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.room-option:last-child {
  border-bottom: 1px solid var(--line);
}

.room-option__select {
  grid-template-columns: 18px minmax(0, auto) minmax(0, 1fr);
  gap: 8px;
  padding: 9px 11px;
}

.room-option__mark {
  width: 16px;
  height: 16px;
  border-color: var(--line-strong);
}

.room-option__title {
  font-size: 15px;
  font-weight: 600;
}

.room-option__meta,
.room-option__occupancy-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.room-option__occupancy {
  padding: 6px 9px;
}

.room-option__occupancy-input {
  min-height: 28px;
  font-size: 15px;
  font-weight: 550;
}

.room-option:has(.room-option__checkbox:checked),
.room-option--selected {
  border-color: var(--green);
  background: var(--soft-blue);
}

.room-option:has(.room-option__checkbox:checked) .room-option__mark,
.room-option--selected .room-option__mark {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 4px var(--panel);
}

.operations-panel {
  background: var(--panel);
}

.metrics {
  margin: 14px 0 2px;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.metrics div {
  min-height: 72px;
  border-left: 1px solid var(--line);
  background: transparent;
  padding: 12px;
}

.metrics div:first-child {
  border-left: 0;
}

.metrics strong {
  font-family: var(--ui-font);
  font-size: 26px;
  font-weight: 650;
}

.metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.laundry-control,
.quick-contact {
  margin-top: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 16px 0;
}

.quick-contact:last-child,
.laundry-control:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.room-grid,
.revision-list {
  grid-template-columns: 1fr;
}

.room-card,
.revision-card,
.quality-issue-card {
  overflow: visible;
}

.room-card.openable:hover {
  border-color: var(--line-strong);
  box-shadow: none;
  transform: none;
}

.assignment-card,
.assignment-card.ceka,
.assignment-card.uklizi-se,
.assignment-card.pozastaveno,
.assignment-card.hotovo,
.assignment-card.zkontrolovano,
.additional-assignment {
  border-left-width: 1px;
  border-left-color: var(--line);
  background: var(--panel);
}

.room-number {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.badge,
.priority {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  padding: 0;
  color: var(--muted) !important;
  font-size: 12px;
  font-weight: 550;
}

.status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
}

.status.hotovo::before,
.status.zkontrolovano::before {
  background: var(--success);
}

.status.uklizi-se::before,
.status.pozastaveno::before {
  background: var(--amber);
}

.status.ceka::before {
  background: var(--muted);
}

.note {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.requirements {
  color: var(--muted);
  font-size: 13px;
}

.card-meta {
  gap: 4px 16px;
  font-size: 12px;
}

.actions,
.action-row,
.row-actions,
.tools {
  gap: 7px;
}

.reception-card .actions,
.revision-card .actions {
  margin-top: 0;
}

.empty,
.compact-empty {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
}

.list-row,
.admin-room-row,
.admin-inline-form,
.additional-work-row,
.tenant-admin-row {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 12px 2px;
}

.list-row:last-child,
.admin-room-row:last-child,
.additional-work-row:last-child,
.tenant-admin-row:last-child {
  border-bottom: 0;
}

.chip {
  gap: 7px;
  border: 0;
  border-radius: 8px;
  background: var(--soft);
  padding: 5px 6px 5px 10px;
  font-weight: 550;
}

.chip button.icon-only {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  background: transparent;
}

.table-wrap {
  overflow: hidden auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: none;
}

.history-table,
.minibar-table,
.performance-table {
  border-collapse: collapse;
}

.history-table th,
.minibar-table th,
.performance-table th {
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0;
  text-transform: none;
}

.history-table td,
.minibar-table td,
.performance-table td,
.history-table th,
.minibar-table th,
.performance-table th {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.history-table tbody tr:last-child td,
.minibar-table tbody tr:last-child td,
.performance-table tbody tr:last-child td {
  border-bottom: 0;
}

.minibar-table tr.minibar-day-separator,
.minibar-table .minibar-day-separator td {
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.month-picker {
  gap: 3px;
}

.month-picker button.icon-only,
.month-picker button {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
}

.month-picker select {
  min-height: 36px;
  border-color: var(--line);
  background: var(--panel);
  padding-block: 6px;
  font-size: 13px;
}

.performance-bar-fill,
.performance-progress,
.schedule-shift-indicator {
  background: var(--green) !important;
}

.performance-card,
.performance-pause-card,
.schedule-calendar,
.schedule-form {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: none;
}

.settings-layout {
  align-items: start;
}

.developer-card {
  min-height: 76px;
}

.developer-logo {
  max-width: 96px;
}

.detail-modal,
.superadmin-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(860px, calc(100dvh - 32px));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  padding: 24px;
  box-shadow: var(--shadow-raised);
}

.detail-modal::backdrop,
.superadmin-dialog::backdrop {
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(2px);
}

.detail-modal .modal-head {
  position: sticky;
  z-index: 2;
  top: -24px;
  margin: -24px -24px 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  padding: 18px 24px;
  backdrop-filter: blur(18px);
}

.modal-head h2 {
  font-size: 24px;
}

.detail-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 4px 0 16px;
  font-family: var(--ui-font);
  font-size: 13px;
}

.detail-meta > span {
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.history-detail-room {
  margin-top: 20px;
  padding-top: 20px;
}

.live-notification {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

@media (min-width: 56rem) {
  .app-shell {
    padding-bottom: 0;
  }

  .topbar {
    min-height: 64px;
    padding: 8px 20px;
  }

  .topbar-menu-button {
    display: none;
  }

  .user-box {
    display: flex;
    grid-column: auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .user-box #todayLabel {
    display: none;
  }

  .user-box .tenant-label {
    max-width: 230px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-box #currentUserLabel {
    font-size: 13px;
    font-weight: 600;
  }

  .user-actions button {
    min-height: 36px;
    background: transparent;
  }

  .workspace-shell {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    min-height: calc(100dvh - 64px);
  }

  .tabs {
    position: sticky;
    top: 64px;
    right: auto;
    bottom: auto;
    left: auto;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    height: calc(100dvh - 64px);
    overflow-y: auto;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: color-mix(in srgb, var(--panel) 74%, transparent);
    padding: 18px 10px;
    box-shadow: none;
    backdrop-filter: none;
  }

  .tab {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    border-radius: 8px;
    padding: 0 11px;
    text-align: left;
    font-size: 14px;
  }

  .tab .ui-icon {
    width: 17px;
    height: 17px;
  }

  .tab.active {
    background: var(--soft);
    color: var(--green);
  }

  main {
    width: min(100%, 1440px);
    margin: 0;
    padding: 32px clamp(26px, 3.5vw, 52px) 60px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  #receptionView > .layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    align-items: start;
  }

  #receptionView .operations-panel {
    position: sticky;
    top: 86px;
  }

  .reception-card,
  .revision-card {
    display: grid;
    grid-template-columns: minmax(170px, 0.7fr) minmax(240px, 1.25fr) minmax(190px, auto);
    align-items: start;
    gap: 8px 18px;
    padding: 15px 17px;
  }

  .reception-card .room-card-head,
  .revision-card .room-card-head {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: grid;
    align-content: start;
  }

  .reception-card > .note,
  .revision-card > .note {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .reception-card > .requirements,
  .revision-card > .requirements {
    grid-column: 2;
    grid-row: 2;
  }

  .reception-card > .card-meta,
  .revision-card > .card-meta {
    grid-column: 1 / 3;
    grid-row: 3;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .reception-card > .actions,
  .revision-card > .actions,
  .revision-card > details {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .reception-card .action-row {
    justify-content: flex-end;
  }

  .detail-modal,
  .superadmin-dialog {
    padding: 26px;
  }

  .detail-modal .modal-head {
    top: -26px;
    margin: -26px -26px 20px;
    padding: 19px 26px;
  }
}

@media (max-width: 55.99rem) {
  .app-shell {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  button,
  .button-link,
  .file-picker-button {
    min-height: 44px;
  }

  button.icon-only {
    width: 44px;
    min-width: 44px;
  }

  main {
    padding-top: 20px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading .tools.inline {
    align-items: flex-end;
  }

  .panel,
  .room-card,
  .revision-card,
  .quality-issue-card {
    padding: 15px;
  }

  #assignmentRooms.room-check-grid {
    grid-template-columns: 1fr;
  }

  .detail-modal,
  .superadmin-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    padding: 18px;
  }

  .detail-modal .modal-head {
    top: -18px;
    margin: -18px -18px 18px;
    padding: 16px 18px;
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }

  .history-table tr,
  .minibar-table tr {
    padding: 13px 15px;
  }

  .history-table td[data-label]::before,
  .minibar-table td[data-label]::before {
    color: var(--muted);
    font-size: 11px;
    font-weight: 550;
    letter-spacing: 0;
    text-transform: none;
  }
}
