:root {
  --pms-bg: #f5f6f8;
  --pms-surface: #ffffff;
  --pms-soft: #eef6fb;
  --pms-soft-2: #f8fbfd;
  --pms-line: #d8dee5;
  --pms-line-soft: #e8edf2;
  --pms-ink: #34383d;
  --pms-muted: #76818c;
  --pms-heading: #2f6f91;
  --pms-link: #407fb2;
  --pms-green: #65ad5b;
  --pms-green-strong: #367b57;
  --pms-red: #e86f6d;
  --pms-red-strong: #c95351;
  --pms-blue: #4f84b8;
  --pms-cyan: #68bed8;
  --pms-amber: #eab252;
  --pms-purple: #7059c9;
  --pms-gray: #8e949b;
  --pms-shadow: 0 2px 8px rgba(45, 55, 72, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 1180px;
}

body {
  margin: 0;
  background: var(--pms-bg);
  color: var(--pms-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.pms-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.pms-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 96px;
  display: grid;
  grid-template-columns: auto minmax(620px, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 0 18px;
  border-top: 2px solid #c9c9c9;
  border-bottom: 1px solid var(--pms-line-soft);
  background: rgba(255, 255, 255, 0.98);
}

.pms-brand {
  min-width: 238px;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 0;
  color: #262b31;
}

.pms-brand-logo {
  width: 232px;
  height: auto;
  display: block;
  object-fit: contain;
}

.pms-main-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  overflow-x: auto;
  padding: 0 0 18px;
}

.main-nav-button {
  flex: 0 0 auto;
  min-height: 66px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #626b74;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav-button.active {
  background: #e7e7e7;
  color: #d22d2d;
}

.main-nav-button:hover {
  background: #f0f1f2;
}

.pms-utilities {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 96px;
  color: #56616b;
  white-space: nowrap;
}

.utility-button,
.utility-icon,
.bed-alert,
.user-menu {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 750;
}

.utility-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-megaphone {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 4px solid #111;
  border-left-width: 0;
  transform: skewY(-9deg);
}

.utility-icon {
  color: #3f7fba;
  font-size: 18px;
}

.bed-alert {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 42px;
  color: var(--pms-blue);
}

.bed-alert span {
  position: absolute;
  top: 3px;
  left: 8px;
  min-width: 34px;
  min-height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f39b30;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.bed-alert b {
  font-size: 17px;
}

.hotel-select select {
  width: 330px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--pms-line);
  border-radius: 4px;
  background: #fff;
  color: #69727c;
}

.user-menu {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3d80bd;
}

.user-menu span {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: currentColor;
}

.pms-subnav {
  position: sticky;
  top: 96px;
  z-index: 25;
  min-height: 52px;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding-left: 18px;
  background: #e5e5e5;
  border-bottom: 1px solid var(--pms-line-soft);
  overflow-x: auto;
}

.sub-nav-button {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--pms-link);
  font-weight: 750;
  white-space: nowrap;
}

.sub-nav-button.active {
  background: #fff;
  color: #333;
}

.sub-nav-button:hover {
  background: #f3f3f3;
}

.pms-content {
  min-width: 0;
  padding: 16px 18px 30px;
}

.api-access-panel {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 10px 16px;
  border: 1px solid #dbe8f1;
  border-radius: 4px;
  background: #f7fbfe;
  color: #4d5965;
}

.api-access-panel strong {
  display: inline-block;
  margin-right: 12px;
  color: var(--pms-heading);
  font-weight: 900;
}

.api-access-panel span,
.api-access-panel small {
  margin-right: 12px;
  color: #69737e;
  font-weight: 750;
}

.api-access-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.api-access-controls input {
  width: 230px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--pms-line);
  border-radius: 4px;
  background: #fff;
}

.pms-footer {
  min-height: 50px;
  display: grid;
  place-items: center;
  color: #818891;
  background: #fff;
  font-size: 13px;
}

.section-panel {
  min-width: 0;
  padding: 18px 20px 22px;
  border: 1px solid var(--pms-line-soft);
  border-radius: 4px;
  background: var(--pms-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.section-panel + .section-panel {
  margin-top: 14px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pms-line-soft);
}

.section-title h1,
.section-title h2 {
  margin: 0;
  color: var(--pms-heading);
  font-size: 23px;
  font-weight: 850;
}

.section-title small,
.title-note {
  color: #858c94;
  font-size: 14px;
  font-weight: 650;
}

.panel-title {
  margin: 0 0 12px;
  color: var(--pms-heading);
  font-size: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 90px;
  align-items: start;
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.form-column {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.field.stack {
  grid-template-columns: 1fr;
  align-items: start;
}

.field.full {
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.field label,
.field > span,
.field-label {
  color: #3d4248;
  font-weight: 800;
}

.field.required label::before,
.field.required > span::before,
.required-mark::before {
  content: "*";
  color: var(--pms-red);
}

.hint {
  color: #6f7780;
  font-size: 13px;
  font-weight: 650;
}

.control,
.field input,
.field select,
.field textarea,
.toolbar input,
.toolbar select,
.compact-input,
.wide-textarea,
.textarea-policy {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--pms-line);
  border-radius: 4px;
  background: #fff;
  color: #535a63;
}

.field input,
.field select,
.toolbar input,
.toolbar select,
.compact-input {
  padding: 0 12px;
}

.field textarea,
.wide-textarea,
.textarea-policy {
  padding: 10px 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.toolbar input:focus,
.toolbar select:focus,
.wide-textarea:focus,
.textarea-policy:focus,
.compact-input:focus {
  outline: 2px solid rgba(75, 132, 184, 0.16);
  border-color: var(--pms-blue);
}

.readonly,
input[readonly] {
  background: #ededed;
  color: #777f87;
}

.inline-controls {
  display: grid;
  grid-template-columns: minmax(90px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
}

.inline-controls.three {
  grid-template-columns: minmax(70px, 0.28fr) minmax(0, 1fr) minmax(90px, 0.38fr);
}

.unit-field {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
}

.unit-field .unit {
  display: grid;
  place-items: center;
  border: 1px solid var(--pms-line);
  background: #f0f1f2;
  color: #555d66;
  font-weight: 750;
}

.unit-field .unit:first-child {
  border-radius: 4px 0 0 4px;
  border-right: 0;
}

.unit-field .unit:last-child {
  border-radius: 0 4px 4px 0;
  border-left: 0;
}

.unit-field input {
  border-radius: 0;
}

.button-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #fff;
  color: #4f5862;
  font-weight: 800;
  white-space: nowrap;
}

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

.btn.green:hover {
  background: #559c4f;
}

.btn.blue {
  background: #56a6dc;
  color: #fff;
}

.btn.dark {
  background: #46413f;
  color: #fff;
}

.btn.gray {
  background: #758098;
  color: #fff;
}

.btn.outline {
  border-color: var(--pms-line);
  color: var(--pms-link);
}

.btn.danger-outline {
  border-color: #ef9a9a;
  color: #d44b49;
}

.btn.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 14px;
}

.btn.icon {
  width: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 999px;
}

.plus-float {
  width: 38px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--pms-green);
  color: #fff;
  font-size: 24px;
  font-weight: 850;
}

.policy-stack {
  display: grid;
  gap: 22px;
}

.textarea-policy {
  min-height: 150px;
  font-size: 16px;
}

.textarea-policy.tall {
  min-height: 170px;
}

.logo-uploader {
  width: 520px;
  max-width: 100%;
  min-height: 210px;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  border: 1px solid var(--pms-line);
  border-radius: 5px;
  background: #fff;
}

.logo-preview {
  width: 260px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 1px dashed #cfd6df;
  background: #fff54b;
  color: #191919;
  font-size: 42px;
  font-weight: 900;
  transform: rotate(-8deg);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.toolbar.tight {
  margin-bottom: 8px;
}

.toolbar input,
.toolbar select {
  width: 260px;
}

.toolbar .wide {
  width: 360px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.metric-card {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--pms-line-soft);
  border-radius: 6px;
  background: #f7fafc;
}

.metric-card span {
  color: #66717b;
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  color: #2e3a44;
  font-size: 23px;
  line-height: 1.1;
}

.metric-card small {
  color: #7a838c;
  font-weight: 650;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
  font-size: 16px;
}

.data-table.compact {
  font-size: 15px;
}

.data-table th,
.data-table td {
  min-height: 48px;
  padding: 12px 10px;
  border: 1px solid var(--pms-line-soft);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: #f6f6f6;
  color: #3d4248;
  font-weight: 850;
}

.data-table tbody tr:nth-child(odd) td {
  background: #eaf4fa;
}

.data-table.plain tbody tr:nth-child(odd) td {
  background: #fff;
}

.data-table.loose td {
  height: 74px;
}

.room-thumb {
  width: 108px;
  height: 68px;
  display: block;
  border: 1px solid var(--pms-line);
  object-fit: cover;
  background: #f1f3f5;
}

.switch {
  width: 76px;
  height: 34px;
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: #d9dde3;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.16s ease;
}

.switch.on {
  justify-content: flex-start;
  padding-left: 10px;
  background: var(--pms-green);
}

.switch.on::before {
  transform: translateX(42px);
}

.action-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.circle-action {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.circle-action.green {
  background: var(--pms-green);
}

.circle-action.blue {
  background: var(--pms-cyan);
}

.circle-action.navy {
  background: var(--pms-blue);
}

.circle-action.red {
  background: var(--pms-red-strong);
}

.price-layout {
  display: grid;
  gap: 18px;
}

.price-controls {
  display: grid;
  grid-template-columns: 160px minmax(260px, 470px) 80px 200px 100px 200px;
  align-items: center;
  gap: 12px 16px;
}

.weekday-price-grid {
  display: grid;
  grid-template-columns: 280px repeat(7, minmax(120px, 1fr));
  border: 1px solid var(--pms-line);
  overflow-x: auto;
}

.weekday-price-grid > div {
  min-height: 52px;
  padding: 9px 10px;
  border-right: 1px solid var(--pms-line);
  border-bottom: 1px solid var(--pms-line);
  background: #fff;
  font-weight: 800;
}

.weekday-price-grid > div:nth-child(n + 9) {
  background: #eef7fc;
}

.weekday-price-grid input {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--pms-line);
  border-radius: 4px;
}

.rate-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.rate-editor-grid label {
  display: grid;
  gap: 6px;
  color: #3d4248;
  font-weight: 850;
}

.rate-editor-grid input {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--pms-line);
  border-radius: 4px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 8px;
}

.calendar-title {
  font-size: 34px;
  font-weight: 850;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  border: 1px solid var(--pms-line);
  background: #fff;
}

.calendar-head,
.calendar-cell {
  border-right: 1px solid var(--pms-line);
  border-bottom: 1px solid var(--pms-line);
}

.calendar-head {
  min-height: 32px;
  display: grid;
  place-items: center;
  background: #f7f7f7;
  font-weight: 850;
}

.calendar-head.weekend {
  background: #f5dddd;
}

.calendar-cell {
  min-height: 112px;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
}

.calendar-cell.today {
  background: #fffbe6;
}

.calendar-cell.empty {
  background: #fafafa;
}

.calendar-day-number {
  min-height: 24px;
  padding: 2px 6px;
  text-align: right;
  font-weight: 750;
}

.calendar-rate {
  min-height: 70px;
  margin: 0 4px 7px;
  padding: 7px 8px;
  border: 0;
  border-radius: 3px;
  background: #4f8db4;
  color: #fff;
  text-align: left;
  font-weight: 800;
}

.calendar-rate small {
  display: block;
  font-weight: 700;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.check-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3e464e;
  font-weight: 750;
}

.check-pill input,
.inline-check input {
  width: 18px;
  height: 18px;
  accent-color: #6fa8ef;
}

.inline-check {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 750;
  white-space: nowrap;
}

.booking-page {
  padding-bottom: 94px;
}

.booking-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.booking-source-grid {
  display: grid;
  grid-template-columns: minmax(220px, 480px) minmax(220px, 480px) minmax(70px, 90px) minmax(160px, 240px) auto;
  gap: 14px 12px;
  align-items: start;
}

.hint.danger {
  color: #e16666;
  font-weight: 750;
}

.platform-ref-prefix input {
  text-align: center;
  background: #f5f7fa;
}

.source-action-field {
  align-self: end;
}

.guest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 26px;
}

.invoice-box {
  padding: 16px;
  border-left: 1px solid var(--pms-line-soft);
}

.invoice-box h3 {
  margin: 0 0 12px;
  color: var(--pms-heading);
  font-size: 22px;
}

.availability-grid {
  width: 100%;
  max-width: 1460px;
  display: grid;
  grid-template-columns: 180px repeat(7, minmax(140px, 1fr));
  border: 1px solid var(--pms-line);
  overflow-x: auto;
  background: #fff;
}

.availability-cell,
.availability-head {
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-right: 1px solid var(--pms-line);
  border-bottom: 1px solid var(--pms-line);
  text-align: center;
  font-weight: 800;
}

.availability-head {
  min-height: 62px;
  background: #f8f8f8;
}

.availability-head.weekend {
  color: #d84f4f;
}

.availability-cell.room-name {
  justify-content: start;
  text-align: left;
  background: #f9fcfe;
}

.availability-cell.selectable {
  border: 0;
  border-right: 1px solid var(--pms-line);
  border-bottom: 1px solid var(--pms-line);
  background: #fff;
  color: #333;
}

.availability-cell.selectable:hover {
  background: #ecf8ed;
}

.availability-cell.selectable.selected {
  outline: 3px solid #63b35f;
  outline-offset: -3px;
  background: #effbea;
}

.availability-cell.disabled {
  color: #999;
  background: #f4f4f4;
}

.availability-cell span,
.availability-cell small {
  display: block;
}

.reservation-empty {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pms-line);
  border-radius: 8px;
  background: #fff;
  color: #444;
  font-weight: 750;
}

.booking-detail-list {
  display: grid;
  gap: 16px;
}

.booking-detail-card {
  overflow: hidden;
  border: 1px solid var(--pms-line);
  border-radius: 6px;
  background: #fff;
}

.booking-detail-title {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 58px;
  padding: 0 22px;
  border-bottom: 1px solid var(--pms-line);
  font-size: 16px;
}

.booking-detail-title strong {
  font-size: 18px;
}

.booking-detail-main-row {
  background: #eef8fd;
}

.booking-detail-card .data-table th,
.booking-detail-card .data-table td {
  text-align: center;
  vertical-align: middle;
}

.booking-meal-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: stretch;
  gap: 0;
  padding: 18px 22px;
  background: #f3fbff;
  border-top: 1px solid var(--pms-line-soft);
  border-bottom: 1px solid var(--pms-line-soft);
}

.booking-meal-row > strong {
  display: grid;
  place-items: center start;
}

.meal-table {
  background: #fff;
}

.round-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.round-action {
  min-width: 58px;
  border: 0;
  background: transparent;
  color: #3a4650;
  font-weight: 800;
  cursor: pointer;
}

.round-action span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin: 0 auto 5px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.round-action small {
  display: block;
  white-space: nowrap;
}

.round-action.green span {
  background: #5dab57;
}

.round-action.green.money span {
  background: #4f9b51;
}

.round-action.red span {
  background: #cf5a57;
}

.round-action.blue span {
  background: #4ba2d8;
}

.plan-modal {
  width: min(1000px, 92vw);
}

.charge-modal {
  width: min(980px, 92vw);
}

.modal-subtitle {
  margin: -4px 0 18px;
  color: #5d6873;
  font-weight: 800;
}

.charge-form-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 130px 150px minmax(260px, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.charge-form-grid .wide {
  min-width: 0;
}

.plan-modal-room {
  padding: 18px 22px 14px;
  border: 1px solid var(--pms-line-soft);
  border-radius: 6px;
  background: #fff;
}

.plan-modal-room h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.plan-modal-room span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 5px;
  background: #f4f4f4;
  font-weight: 800;
}

.stepper {
  display: inline-grid;
  grid-template-columns: 44px 90px 44px;
  min-height: 42px;
  border: 1px solid var(--pms-line);
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}

.stepper button,
.stepper input {
  border: 0;
  border-right: 1px solid var(--pms-line);
  background: #fff;
  text-align: center;
  font-weight: 850;
}

.stepper button {
  color: #4aa3df;
  font-size: 20px;
  cursor: pointer;
}

.stepper button:first-child {
  color: #c5cbd2;
}

.stepper button:last-child,
.stepper input:last-child {
  border-right: 0;
}

.total-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr)) auto auto auto;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--pms-line);
  background: #fff;
  box-shadow: 0 -2px 7px rgba(15, 23, 42, 0.08);
}

.total-item {
  min-height: 64px;
  display: grid;
  align-content: center;
  padding: 8px 14px;
  border-right: 1px solid var(--pms-line-soft);
  text-align: right;
  font-weight: 850;
}

.total-item span {
  color: #333;
  font-size: 14px;
}

.total-item strong {
  color: #44505b;
  font-size: 18px;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--pms-line);
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}

.segmented button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid var(--pms-line);
  background: #fff;
  color: var(--pms-link);
  font-weight: 800;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  background: #76808c;
  color: #fff;
}

.summary-numbers {
  margin-left: auto;
  color: #333;
  font-weight: 800;
  text-align: right;
}

.link {
  color: var(--pms-link);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pill-button {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid var(--pms-line);
  border-radius: 4px;
  background: #fff;
  color: #424850;
  font-weight: 800;
}

.pill-button.blue {
  border-color: var(--pms-blue);
  background: var(--pms-blue);
  color: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 4px;
  background: #e9edf2;
  color: #46515c;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.pill.green {
  background: #d9f0dc;
  color: var(--pms-green-strong);
}

.pill.blue {
  background: #dfeefa;
  color: var(--pms-blue);
}

.pill.red {
  background: #f8dddd;
  color: var(--pms-red-strong);
}

.tag-dot {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.tag-dot.green {
  background: var(--pms-green);
}

.tag-dot.deep-green {
  background: var(--pms-green-strong);
}

.tag-dot.red {
  background: var(--pms-red-strong);
}

.tag-dot.blue {
  background: var(--pms-cyan);
}

.tag-dot.orange {
  background: #f1a676;
}

.tag-dot.purple {
  background: var(--pms-purple);
}

.tag-dot.gray {
  background: #9da3aa;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  background: #737b84;
  color: #fff;
  font-weight: 850;
}

.status-tag.red {
  background: var(--pms-red);
}

.status-tag.green {
  background: var(--pms-green-strong);
}

.status-tag.light-green {
  background: #a8dfbd;
}

.assignment-panel {
  padding: 14px 18px 18px;
}

.assignment-compact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.assignment-compact-header h1 {
  margin: 0;
  color: var(--pms-heading);
  font-size: 22px;
}

.assignment-compact-header p {
  margin: 3px 0 0;
  color: var(--pms-muted);
  font-size: 13px;
  font-weight: 750;
}

.assignment-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.assignment-toolbar.compact {
  min-height: 42px;
  margin-bottom: 10px;
}

.assignment-toolbar.compact select,
.assignment-toolbar.compact input {
  width: auto;
  min-height: 34px;
  padding: 0 10px;
}

.notice {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid #ecc36b;
  border-radius: 5px;
  background: #fffaf0;
  color: #3f4953;
  font-weight: 800;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-left: 10px;
}

.legend.compact {
  gap: 10px;
  margin-left: 4px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #333b44;
  font-size: 13px;
  font-weight: 800;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.legend-swatch.arrive {
  background: var(--pms-green);
}

.legend-swatch.in {
  background: var(--pms-green-strong);
}

.legend-swatch.maintenance {
  background: var(--pms-purple);
}

.legend-swatch.oos {
  background: var(--pms-cyan);
}

.legend-swatch.out {
  background: var(--pms-gray);
}

.assignment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}

.timeline-wrap {
  width: 100%;
  max-height: calc(100vh - 245px);
  overflow: auto;
  border: 1px solid var(--pms-line);
  border-radius: 5px;
  background: #fff;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 150px repeat(45, 62px);
  min-width: 2940px;
}

.timeline-corner,
.timeline-day,
.timeline-room,
.timeline-slot {
  min-height: 54px;
  border-right: 1px solid var(--pms-line-soft);
  border-bottom: 1px solid var(--pms-line-soft);
}

.timeline-corner,
.timeline-day {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: #f7f7f7;
  color: #303942;
  font-size: 13px;
  font-weight: 850;
}

.timeline-corner,
.timeline-room {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
}

.timeline-room {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 7px 8px;
  border-top: 0;
  border-left: 0;
  border-radius: 0;
  color: #333b44;
  text-align: left;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.timeline-room strong {
  color: #d24d4d;
  font-size: 19px;
  line-height: 1;
}

.timeline-room span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-room small {
  display: flex;
  gap: 4px;
  min-width: 0;
}

.timeline-day.weekend,
.timeline-slot.weekend {
  background: #f8dce2;
}

.timeline-slot {
  background: #fff;
}

.timeline-booking {
  min-height: 54px;
  align-self: stretch;
  z-index: 4;
  margin: 6px 3px;
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  background: #4d7f46;
  color: #fff;
  text-align: left;
  font-weight: 800;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(30, 41, 59, 0.16);
}

.timeline-booking.arrive,
.timeline-booking.due {
  background: #6bad5c;
}

.timeline-booking.in {
  background: #3d7b55;
}

.timeline-booking strong,
.timeline-booking span,
.timeline-booking small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-booking small {
  display: flex;
  gap: 5px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
}

.timeline-booking i {
  font-style: normal;
}

.timeline-booking .unpaid {
  color: #ffe2a8;
}

.mini-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e9edf2;
  color: #46515c;
  font-size: 11px;
  font-weight: 850;
}

.mini-status.arrive {
  background: #e4f3df;
  color: #357442;
}

.mini-status.due {
  background: #fff0cf;
  color: #96702c;
}

.mini-status.in {
  background: #dcefe4;
  color: #2f6d4c;
}

.mini-status.empty {
  background: #eef1f4;
  color: #6a7480;
}

.mini-status.maintenance {
  background: #ebe6fb;
  color: #604fbd;
}

.mini-status.out {
  background: #eceff3;
  color: #6c7682;
}

.mini-status.no-show {
  background: #fff1d5;
  color: #9b6b19;
}

.mini-status.house {
  background: #eef6fb;
  color: var(--pms-heading);
}

.mini-status.house.clean {
  background: #e9f7ef;
  color: #2f7d4b;
}

.mini-status.house.dirty {
  background: #ffe6e6;
  color: #b34a4a;
}

.mini-status.house.cleaning {
  background: #eef1ff;
  color: #5f4ac7;
}

.mini-status.house.inspect {
  background: #fff3d6;
  color: #93681f;
}

.assignment-workbench {
  position: sticky;
  top: 126px;
  display: grid;
  gap: 12px;
}

.assignment-side-section {
  border: 1px solid var(--pms-line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.side-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid var(--pms-line-soft);
  background: #f7fafc;
}

.side-section-title h2 {
  margin: 0;
  color: var(--pms-heading);
  font-size: 16px;
}

.side-section-title span {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e76767;
  color: #fff;
  font-weight: 900;
}

.assignment-order-list {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
  padding: 10px;
}

.assignment-order-list.compact {
  max-height: 240px;
}

.assignment-order-card {
  border: 1px solid var(--pms-line-soft);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.assignment-order-card.compact .assignment-order-actions {
  display: none;
}

.assignment-order-main {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 10px 10px 6px;
  border: 0;
  background: transparent;
  text-align: left;
}

.assignment-order-main strong {
  color: #303942;
  font-size: 14px;
}

.assignment-order-main span,
.assignment-order-main small {
  color: #687480;
  font-weight: 750;
}

.assignment-order-meta,
.assignment-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 10px 10px;
}

.assignment-empty {
  padding: 18px;
  color: var(--pms-muted);
  text-align: center;
  font-weight: 800;
}

.assignment-drawer {
  width: min(520px, 92vw);
  max-height: calc(100vh - 170px);
  margin-left: auto;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  overflow: auto;
}

.assignment-drawer-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pms-line-soft);
}

.assignment-drawer-header h2 {
  margin: 8px 0 2px;
  color: #303942;
  font-size: 24px;
}

.assignment-drawer-header p {
  margin: 0;
  color: var(--pms-muted);
  font-weight: 750;
}

.assignment-drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.assignment-drawer-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--pms-line-soft);
  border-radius: 6px;
  background: #f8fbfd;
}

.assignment-drawer-grid span,
.assignment-drawer-section h3 {
  color: var(--pms-muted);
  font-size: 13px;
  font-weight: 850;
}

.assignment-drawer-grid strong {
  color: #303942;
}

.assignment-drawer-section {
  padding: 12px 0;
  border-top: 1px solid var(--pms-line-soft);
}

.assignment-drawer-section h3,
.assignment-drawer-section p {
  margin: 0;
}

.assignment-drawer-section p {
  margin-top: 6px;
  color: #3c4650;
  white-space: pre-wrap;
}

.assignment-drawer-actions {
  position: sticky;
  bottom: -22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 -22px -22px;
  padding: 14px 22px 22px;
  border-top: 1px solid var(--pms-line-soft);
  background: #fff;
}

.assignment-suggestion-modal {
  width: min(740px, 92vw);
}

.assignment-suggestion-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.assignment-suggestion-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--pms-line-soft);
  border-radius: 6px;
  background: #fff;
}

.assignment-suggestion-card div {
  display: grid;
  gap: 2px;
}

.assignment-suggestion-card strong {
  color: #d24d4d;
  font-size: 22px;
}

.assignment-suggestion-card span {
  color: #303942;
  font-weight: 850;
}

.assignment-suggestion-card small {
  color: var(--pms-muted);
  font-weight: 750;
}

.assignment2-panel {
  display: grid;
  min-height: calc(100vh - 186px);
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.assignment2-main {
  min-height: inherit;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
}

.assignment2-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 680px);
  align-items: center;
  gap: 12px 16px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--pms-line-soft);
}

.assignment2-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.assignment2-top h1 {
  margin: 0;
  color: var(--pms-heading);
  font-size: 20px;
}

.assignment2-range-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #e8f3fb;
  color: #2f6f91;
  font-size: 12px;
  font-weight: 850;
}

.assignment2-range-pill.soft {
  background: #f3f7fb;
  color: #5d6a76;
}

.assignment2-top p {
  margin: 2px 0 0;
  color: var(--pms-muted);
  font-size: 12px;
  font-weight: 750;
}

.assignment2-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: 8px;
}

.assignment2-search input,
.assignment2-controls input,
.assignment2-controls select {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--pms-line);
  border-radius: 5px;
  background: #fff;
}

.assignment2-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--pms-line-soft);
  background: #f8fafc;
}

.assignment2-viewmodes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assignment2-tree-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #c9d7e4;
  border-radius: 999px;
  background: #fff;
  color: #407fb2;
  font-size: 13px;
  font-weight: 850;
}

.assignment2-tree-button.active,
.assignment2-tree-button:hover {
  background: #e8f3fb;
  color: var(--pms-heading);
}

.assignment2-summarybar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--pms-line-soft);
  background: #fff;
}

.assignment2-summarychips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.assignment2-summarychip {
  min-width: 98px;
  min-height: 46px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 6px 12px;
  border: 1px solid #d9e2ea;
  border-radius: 999px;
  background: #f8fbfd;
  color: #31404c;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.assignment2-summarychip:hover {
  background: #eef6fb;
}

.assignment2-summarychip strong {
  color: var(--pms-heading);
  font-size: 20px;
  line-height: 1;
}

.assignment2-summarychip span {
  color: #667481;
  font-size: 11px;
  font-weight: 850;
}

.assignment2-summaryactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.assignment2-icon-button {
  min-width: 40px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #c9d7e4;
  border-radius: 999px;
  background: #fff;
  color: #407fb2;
  font-weight: 850;
}

.assignment2-icon-button.active,
.assignment2-icon-button:hover {
  background: #e8f3fb;
  color: var(--pms-heading);
}

.assignment2-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  color: #34404b;
  font-size: 13px;
  font-weight: 850;
}

.assignment2-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.assignment2-legend i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.assignment2-legend .arrive {
  background: #58c4e6;
}

.assignment2-legend .in {
  background: #48aa68;
}

.assignment2-legend .due {
  background: #5d8d50;
}

.assignment2-legend .out {
  background: #98a0a8;
}

.assignment2-legend .ooo {
  background: var(--pms-purple);
}

.assignment2-legend .oos {
  background: #4b82d9;
}

.assignment2-legend .no-show {
  background: var(--pms-amber);
}

.assignment2-body {
  min-height: 0;
  min-width: 0;
  display: flex;
  padding: 0 12px 12px;
}

.assignment2-calendar-shell {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  height: 100%;
  overflow: auto;
  border: 1px solid var(--pms-line);
  border-radius: 6px;
  background: #fff;
}

.assignment2-grid {
  display: grid;
  min-width: 2928px;
  position: relative;
}

.assignment2-corner,
.assignment2-date,
.assignment2-all-label,
.assignment2-type-label,
.assignment2-type-day,
.assignment2-room,
.assignment2-cell {
  border-right: 1px solid var(--pms-line-soft);
  border-bottom: 1px solid var(--pms-line-soft);
}

.assignment2-corner,
.assignment2-date {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 76px;
  background: #f4f6f8;
}

.assignment2-corner,
.assignment2-all-label,
.assignment2-type-label,
.assignment2-room {
  position: sticky;
  left: 0;
  z-index: 7;
}

.assignment2-corner {
  z-index: 12;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 0 12px;
  color: #26313c;
}

.assignment2-corner strong,
.assignment2-type-label button,
.assignment2-all-label button {
  font-weight: 900;
}

.assignment2-corner span {
  color: var(--pms-muted);
  font-size: 12px;
  font-weight: 750;
}

.assignment2-date {
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 8px 6px;
  color: #33404a;
}

.assignment2-date span {
  font-size: 15px;
  font-weight: 900;
}

.assignment2-date strong {
  font-size: 12px;
}

.assignment2-date small {
  min-width: 36px;
  min-height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #dbe3ea;
  color: #5d6873;
  font-size: 11px;
  font-weight: 850;
}

.assignment2-date.today,
.assignment2-type-day.today,
.assignment2-cell.today {
  background: #fff8c9;
}

.assignment2-date.anchor,
.assignment2-type-day.anchor,
.assignment2-cell.anchor {
  box-shadow: inset 0 0 0 2px rgba(64, 127, 178, 0.28);
}

.assignment2-date.weekend,
.assignment2-type-day.weekend,
.assignment2-cell.weekend {
  background: #f7d6dd;
}

.assignment2-type-label {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 10px;
  background: #fffef2;
}

.assignment2-all-label {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 10px;
  background: #f3f7fb;
  z-index: 9;
}

.assignment2-type-label button,
.assignment2-all-label button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #24303b;
  text-align: left;
}

.assignment2-tree-arrow {
  width: 16px;
  color: #617284;
  font-size: 12px;
  text-align: center;
}

.assignment2-type-label small,
.assignment2-all-label small {
  color: var(--pms-muted);
  font-size: 12px;
  font-weight: 760;
}

.assignment2-type-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.assignment2-type-meta .mini-status {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 860;
}

.assignment2-type-label.collapsed {
  background: #fbfcfe;
}

.assignment2-type-label.match {
  background: #f3f9ff;
}

.assignment2-type-day {
  position: relative;
  min-height: 70px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 7px 4px;
  background: #fff;
  color: #35404a;
}

.assignment2-type-day strong {
  min-width: 34px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e1e7ed;
  color: #5e6872;
  font-size: 13px;
}

.assignment2-type-day span {
  color: #5c6b7a;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.assignment2-type-day small {
  color: #728194;
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.assignment2-type-day.all-types {
  background: #f7fafc;
}

.assignment2-type-day.tight strong {
  background: #fff1ca;
  color: #9d6d17;
}

.assignment2-type-day.soldout strong {
  background: #ffe3e3;
  color: #b23a3a;
}

.assignment2-type-day[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 156px;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(24, 34, 45, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.45;
  text-align: left;
  white-space: pre-line;
  pointer-events: none;
  z-index: 40;
}

.assignment2-type-day[data-tooltip]:hover::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(24, 34, 45, 0.94);
  pointer-events: none;
  z-index: 40;
}

.assignment2-room {
  min-height: var(--assignment2-row-height, 48px);
  background: #fff;
}

.assignment2-room-label {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 0;
  background: #fff;
  text-align: left;
  box-shadow: inset 4px 0 0 transparent;
}

.assignment2-room-label.match {
  background: #fffef5;
}

.assignment2-room-label strong {
  color: #31404f;
  font-size: 17px;
  font-weight: 950;
}

.assignment2-room-label.arrive {
  box-shadow: inset 4px 0 0 #58c4e6;
}

.assignment2-room-label.arrive strong {
  color: #2e7b95;
}

.assignment2-room-label.in {
  box-shadow: inset 4px 0 0 #48aa68;
}

.assignment2-room-label.in strong {
  color: #2f7d4b;
}

.assignment2-room-label.due {
  box-shadow: inset 4px 0 0 #e97c6d;
}

.assignment2-room-label.due strong {
  color: #b75346;
}

.assignment2-room-label.out {
  box-shadow: inset 4px 0 0 #98a0a8;
}

.assignment2-room-label.out strong {
  color: #68737f;
}

.assignment2-room-label.empty {
  box-shadow: inset 4px 0 0 #d7dee6;
}

.assignment2-room-label.empty strong {
  color: #7b8794;
}

.assignment2-room-label.maintenance {
  box-shadow: inset 4px 0 0 #7562d8;
}

.assignment2-room-label.maintenance strong {
  color: #5f4ac7;
}

.assignment2-room-label.oos {
  box-shadow: inset 4px 0 0 #4b82d9;
}

.assignment2-room-label.oos strong {
  color: #396abc;
}

.assignment2-room-label span,
.assignment2-room-label small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment2-room-label span {
  color: #27313b;
  font-size: 13px;
  font-weight: 850;
}

.assignment2-room-label small {
  grid-column: 2;
  display: flex;
  gap: 5px;
  color: var(--pms-muted);
  font-size: 11px;
  font-weight: 750;
}

.assignment2-room-label small i {
  font-style: normal;
}

.assignment2-cell {
  min-height: var(--assignment2-row-height, 48px);
  border-top: 0;
  border-left: 0;
  border-radius: 0;
  background: #fff;
}

.assignment2-cell:hover {
  outline: 2px solid #f0b94a;
  outline-offset: -2px;
}

.assignment2-cell.match:not(.occupied) {
  background-image: linear-gradient(to bottom, rgba(255, 211, 102, 0.12), rgba(255, 255, 255, 0));
}

.assignment2-cell.occupied {
  cursor: default;
}

.assignment2-cell.blocked.oos {
  background: linear-gradient(180deg, rgba(75, 130, 217, 0.14), rgba(75, 130, 217, 0.07));
}

.assignment2-cell.blocked.ooo {
  background: linear-gradient(180deg, rgba(117, 98, 216, 0.18), rgba(117, 98, 216, 0.08));
}

.assignment2-main.drag-mode .assignment2-cell:not(.occupied):not(.blocked) {
  background-image: linear-gradient(to bottom, rgba(88, 196, 230, 0.05), rgba(255, 255, 255, 0));
  box-shadow: inset 0 0 0 1px rgba(88, 196, 230, 0.14);
}

.assignment2-cell.drag-over {
  background: linear-gradient(180deg, rgba(72, 170, 104, 0.16), rgba(72, 170, 104, 0.08)) !important;
  outline: 2px solid #48aa68;
  outline-offset: -2px;
}

.assignment2-bar {
  position: relative;
  z-index: 9;
  align-self: start;
  height: 28px;
  display: grid;
  align-content: center;
  gap: 0;
  margin: 8px 4px 0;
  padding: 0 16px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  text-align: left;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  transform: translateY(calc(var(--assignment2-lane, 0) * 30px));
}

.assignment2-bar::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e84848;
}

.assignment2-bar span,
.assignment2-bar small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment2-bar span {
  font-size: 13px;
  font-weight: 900;
}

.assignment2-bar small {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.assignment2-bar.arrive {
  background: #58c4e6;
}

.assignment2-bar.in {
  background: #48aa68;
}

.assignment2-bar.due {
  background: #5d8d50;
}

.assignment2-bar.out {
  background: #98a0a8;
}

.assignment2-bar.ooo {
  background: var(--pms-purple);
}

.assignment2-bar.oos {
  background: #4b82d9;
}

.assignment2-bar.no-show {
  background: var(--pms-amber);
}

.assignment2-bar.match {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.88), 0 0 0 4px rgba(64, 127, 178, 0.22);
}

.assignment2-bar.same-day {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45), 0 2px 5px rgba(15, 23, 42, 0.18);
}

.assignment2-dragdock {
  display: grid;
  gap: 10px;
  padding: 10px 14px 4px;
  border-bottom: 1px solid var(--pms-line-soft);
  background: #f8fbff;
}

.assignment2-dragdock-head {
  display: grid;
  gap: 3px;
}

.assignment2-dragdock-head strong {
  color: var(--pms-heading);
  font-size: 15px;
}

.assignment2-dragdock-head small {
  color: var(--pms-muted);
  font-size: 12px;
  font-weight: 750;
}

.assignment2-dragcards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.assignment2-dragcards .assignment-empty {
  min-height: 96px;
  flex: 1 0 100%;
}

.assignment2-drag-card {
  flex: 0 0 220px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #d7e4ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  cursor: grab;
}

.assignment2-drag-card strong {
  color: #213142;
  font-size: 15px;
  font-weight: 900;
}

.assignment2-drag-card span {
  color: #3573a2;
  font-size: 12px;
  font-weight: 850;
}

.assignment2-drag-card small {
  color: #6d7b88;
  font-size: 11px;
  font-weight: 760;
}

.assignment2-drag-card.dragging,
body.assignment2-dragging .assignment2-drag-card.dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.assignment2-workbench {
  display: none;
}

.assignment2-workbench section {
  border: 1px solid var(--pms-line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.assignment2-workbench h2 {
  margin: 0;
  padding: 11px 12px;
  border-bottom: 1px solid var(--pms-line-soft);
  background: #f8fafc;
  color: var(--pms-heading);
  font-size: 16px;
}

.assignment2-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
}

.assignment2-action-grid button {
  display: grid;
  gap: 2px;
  min-height: 62px;
  border: 1px solid var(--pms-line-soft);
  border-radius: 6px;
  background: #fbfdff;
  color: #35404a;
}

.assignment2-action-grid strong {
  color: var(--pms-heading);
  font-size: 20px;
}

.assignment2-action-grid span {
  color: var(--pms-muted);
  font-size: 12px;
  font-weight: 800;
}

.assignment2-mini-list {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  padding: 10px;
}

.assignment2-mini-list button,
.assignment2-candidate-list article {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--pms-line-soft);
  border-radius: 6px;
  background: #fff;
  text-align: left;
}

.assignment2-mini-list b,
.assignment2-candidate-list strong {
  color: #27313b;
}

.assignment2-mini-list span,
.assignment2-candidate-list span,
.assignment2-candidate-list small {
  color: var(--pms-muted);
  font-size: 12px;
  font-weight: 750;
}

.assignment2-slot-modal {
  width: min(780px, 92vw);
}

.assignment2-block-modal {
  width: min(720px, 92vw);
}

.assignment2-queue-modal {
  width: min(880px, 92vw);
}

.assignment2-queue-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.assignment2-queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--pms-line-soft);
  border-radius: 8px;
  background: #fff;
}

.assignment2-queue-item > button {
  display: grid;
  gap: 3px;
  border: 0;
  background: transparent;
  text-align: left;
}

.assignment2-queue-item strong {
  color: #26313c;
  font-size: 18px;
}

.assignment2-queue-item span,
.assignment2-queue-item small {
  color: var(--pms-muted);
  font-weight: 750;
}

.assignment2-queue-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.assignment2-slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.assignment2-summaryactions .btn[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
}

.assignment2-candidate-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.assignment2-candidate-list article {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.assignment2-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  background: #fff;
}

.audit-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.audit-box {
  min-width: 250px;
  padding: 10px 12px;
  background: #fff8df;
  color: #3d4248;
  font-weight: 800;
}

.audit-highlight {
  background: #e9999c !important;
}

.room-toolbar {
  display: grid;
  grid-template-columns: 42px 250px repeat(6, auto) minmax(280px, 1fr) auto repeat(3, 76px);
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 10px 18px;
  background: #f2f3f4;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 22px;
  padding: 18px;
}

.room-card {
  min-height: 260px;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid #e1e4e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--pms-shadow);
}

.room-card.empty {
  min-height: 112px;
}

.room-card.maintenance {
  min-height: 150px;
  border-color: #f0b8b8;
  background: #fffafa;
}

.room-card-header {
  min-height: 52px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
}

.room-number {
  padding-left: 16px;
  font-size: 27px;
  font-weight: 900;
}

.room-status-band {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 13px;
  color: #fff;
  font-size: 25px;
  font-weight: 850;
}

.room-status-band.due {
  background: var(--pms-red);
}

.room-status-band.in {
  background: var(--pms-green-strong);
}

.room-status-band.arrive {
  background: #a6dfbd;
}

.room-status-band.maintenance {
  background: #a85a58;
}

.room-card-body {
  padding: 10px 16px;
}

.room-card-body small {
  display: block;
  color: #adb4bd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-ops-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.assign-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.assign-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--pms-line);
  border-radius: 5px;
  background: #fff;
  color: #3d4248;
  text-align: left;
}

.assign-item:hover {
  border-color: var(--pms-blue);
  background: #f4f9fc;
}

.assign-item strong {
  color: var(--pms-link);
}

.room-card-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 16px;
}

.room-card-info strong {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  background: #737b84;
  color: #fff;
  font-size: 14px;
}

.guest-name {
  margin: 6px 0 0;
  color: #29313a;
  font-size: 21px;
  font-weight: 760;
}

.guest-phone {
  margin-top: 4px;
  color: #6d7d95;
  font-size: 20px;
  font-weight: 750;
}

.room-type-note {
  align-self: end;
  padding: 0 18px 14px;
  color: #c5c9ce;
  text-align: right;
}

.small-red-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 24px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pms-red);
  color: var(--pms-red);
  font-weight: 850;
}

.pms-dialog {
  width: min(1840px, calc(100vw - 96px));
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(10, 15, 20, 0.28);
}

.pms-dialog::backdrop {
  background: rgba(0, 0, 0, 0.54);
}

.dialog-body {
  padding: 24px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #a0a6ad;
  font-size: 28px;
}

.guest-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 22px;
  padding-top: 78px;
}

.modal-actions-top {
  position: absolute;
  top: 40px;
  left: 24px;
  display: flex;
  gap: 12px;
}

.modal-card {
  min-width: 0;
  min-height: 520px;
  padding: 24px;
  background: #f7f7f7;
}

.modal-card.white {
  background: #fff;
}

.modal-title {
  margin: 0 0 4px;
  color: #333;
  font-size: 24px;
  font-weight: 900;
}

.modal-title .link {
  font-size: 21px;
}

.big-room-number {
  display: grid;
  place-items: center;
  height: 115px;
  color: rgba(0, 0, 0, 0.08);
  font-size: 120px;
  font-weight: 900;
}

.detail-pairs {
  display: grid;
  gap: 8px;
}

.detail-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
}

.detail-row dt {
  color: #555d66;
  font-weight: 800;
}

.detail-row dd {
  margin: 0;
  text-align: right;
}

.modal-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.progress-button {
  min-height: 72px;
  border: 0;
  border-radius: 4px;
  background: #47413e;
  color: #fff;
  font-weight: 850;
}

.compact-progress {
  margin-top: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.progress-button.danger {
  background: #9b4948;
}

.progress-button:disabled {
  cursor: not-allowed;
  background: #d6dbe0;
  color: #707984;
}

.progress-button small {
  display: block;
  margin-top: 4px;
  color: #d8e1d9;
}

.progress-button:disabled small {
  color: #707984;
}

.order-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
  padding: 10px;
  border: 1px solid var(--pms-line-soft);
  border-radius: 4px;
  background: var(--pms-soft-2);
}

.order-ledger span {
  display: grid;
  gap: 2px;
  color: #717b85;
  font-weight: 800;
}

.order-ledger b {
  color: #333b44;
  font-size: 18px;
}

.modal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.modal-form label {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.modal-form input,
.modal-form select,
.modal-notes textarea {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--pms-line);
  border-radius: 4px;
  background: #fff;
}

.modal-notes textarea {
  width: 100%;
  min-height: 350px;
  padding: 12px;
  resize: vertical;
}

.modal-status-tabs {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 30px;
}

.modal-status-tabs button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  background: #eef0f3;
  color: #555d66;
  font-weight: 850;
}

.modal-status-tabs button.active {
  background: #46413f;
  color: #fff;
}

.placeholder-page {
  min-height: 560px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pms-line-soft);
  border-radius: 4px;
  background: #fff;
  color: var(--pms-muted);
}

.placeholder-page strong {
  display: block;
  margin-bottom: 8px;
  color: var(--pms-heading);
  font-size: 24px;
}

.pms-toast {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 100;
  min-width: 240px;
  max-width: 420px;
  min-height: 42px;
  display: none;
  align-items: center;
  padding: 10px 14px;
  border-radius: 6px;
  background: #26313d;
  color: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  font-weight: 750;
}

.pms-toast.show {
  display: flex;
}

@media (max-width: 1320px) {
  html {
    min-width: 980px;
  }

  .pms-topbar {
    grid-template-columns: auto minmax(420px, 1fr);
  }

  .pms-utilities {
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-height: 46px;
    padding-bottom: 8px;
  }

  .pms-subnav {
    top: 142px;
  }

  .form-grid,
  .booking-columns {
    grid-template-columns: 1fr;
  }

  .room-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 760px) {
  html {
    min-width: 0;
  }

  .pms-topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px;
  }

  .pms-brand {
    min-height: 52px;
  }

  .pms-brand-logo {
    width: 210px;
  }

  .pms-main-nav,
  .pms-utilities,
  .pms-subnav {
    overflow-x: auto;
  }

  .pms-utilities {
    flex-wrap: nowrap;
  }

  .hotel-select select {
    width: 240px;
  }

  .pms-subnav {
    position: static;
    padding-left: 0;
  }

  .pms-content {
    padding: 12px;
  }

  .field,
  .price-controls,
  .booking-source-grid,
  .guest-grid,
  .form-grid.three,
  .form-grid.four,
  .metric-grid,
  .two-column,
  .room-toolbar,
  .charge-form-grid,
  .assignment-layout,
  .assignment-drawer-grid,
  .assignment2-panel,
  .assignment2-main,
  .assignment2-top,
  .assignment2-body,
  .assignment2-search,
  .assignment2-summarybar {
    grid-template-columns: 1fr;
  }

  .assignment-workbench,
  .assignment2-workbench {
    position: static;
  }

  .assignment2-controls {
    overflow-x: auto;
  }

  .assignment2-summarybar,
  .assignment2-summaryactions,
  .assignment2-summarychips {
    display: grid;
  }

  .assignment2-queue-item {
    grid-template-columns: 1fr;
  }

  .assignment2-queue-meta {
    justify-content: flex-start;
  }

  .room-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .total-bar {
    grid-template-columns: 1fr;
    position: static;
  }

  .pms-dialog {
    width: calc(100vw - 20px);
  }
}
