:root {
  /* IraqBeds palette: indigo ramp from the logo colour #404094 (500). */
  --brand-50: #f4f4f9;
  --brand-100: #e6e6f1;
  --brand-200: #cdcde3;
  --brand-300: #a9a9cf;
  --brand-400: #7575b2;
  --brand-500: #404094;
  --brand-600: #373781;
  --brand-700: #2f2f6f;
  --brand-800: #26265d;
  --brand-900: #1e1e4c;
  --brand-950: #18183f;
  --ink: var(--brand-900);
  --muted: #686b85;
  --brand: var(--brand-500);
  --brand-soft: var(--brand-100);
  --line: var(--brand-100);
  --paper: #fafbfe;
  --white: #fff;
  --sidebar: 244px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button,
a {
  transition:
    background 0.15s,
    color 0.15s;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #a9a9bc;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
  line-height: 1.65;
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: #727292;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.4px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.65px;
  font-weight: 500;
  color: #80809e;
  margin-top: 6px;
}
.brand-mark {
  background: var(--brand);
  color: white;
  border-radius: 10px;
  width: 37px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  letter-spacing: -3px;
  font-weight: 500;
  padding-right: 3px;
}
.brand-mark span {
  color: #ababbf;
}
.loading {
  height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
}
.loading-dots {
  margin-top: 10px;
  color: var(--brand);
}
/* Sign in */
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 46% 54%;
  /* Right half (sign-in form) is white; the left story panel has its own colour. */
  background: var(--white);
}
.login-story {
  padding: 44px 48px 28px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 760px;
}
.story-content {
  margin: auto 0;
  padding-top: 64px;
  position: relative;
}
.story-content h1 {
  font-family: 'Sansation', Inter, sans-serif;
  font-size: clamp(39px, 4.16vw, 62px);
  letter-spacing: -2px;
  font-weight: 500;
  line-height: 1.19;
  margin: 20px 0;
}
.story-content p {
  color: #6c6c8c;
  font-size: 14px;
  line-height: 1.9;
}
.story-footer {
  font-size: 11px;
  color: #717192;
  letter-spacing: 0.3px;
  margin-top: 28px;
}
.architecture {
  height: 245px;
  position: relative;
  margin-top: 36px;
  max-width: 390px;
}
.arch-back {
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 62%;
  height: 215px;
  border: 1px solid #bfbfdc;
  border-radius: 100px 100px 0 0;
  background: linear-gradient(120deg, #dedeed, #d3d3e7);
  transform: skewY(-6deg);
}
.arch-front {
  position: absolute;
  bottom: 0;
  left: 9%;
  width: 55%;
  height: 182px;
  background: #dbdbec;
  border: 1px solid #bfbfcd;
  border-radius: 95px 95px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 65px 28px 20px;
  box-shadow: 12px 5px 30px #58764b0b;
}
.arch-front i {
  border-radius: 20px 20px 0 0;
  background: #c3c3df;
  border: 1px solid #b6b6c6;
}
.arch-ground {
  position: absolute;
  height: 1px;
  bottom: 0;
  width: 100%;
  background: #c2c2d0;
}
.login-form-area {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 60px 40px;
}
.login-form {
  width: 100%;
  max-width: 350px;
}
.login-form h2 {
  font-size: 34px;
  letter-spacing: -1.2px;
  font-weight: 550;
  margin: 15px 0 10px;
}
.login-form > .muted {
  margin: 0 0 34px;
  font-size: 13px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin: 20px 0 9px;
}
input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d8d8e6;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  height: 46px;
}
/* Checkboxes and radios must not inherit the text-field box above. */
input:is([type='checkbox'], [type='radio']) {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--brand);
}
input::placeholder {
  color: #9898af;
  font-size: 12px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 48px;
}
.password-field button {
  position: absolute;
  right: 8px;
  top: 5px;
  height: 36px;
  width: 36px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: #7f7f9d;
}
.primary {
  border: 0;
  border-radius: 7px;
  background: var(--brand);
  color: white;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 550;
}
.primary:hover {
  background: var(--brand-600);
}
.primary:disabled {
  opacity: 0.6;
  cursor: wait;
}
.sign-in {
  width: 100%;
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
}
.login-note {
  font-size: 11px;
  color: #7f7f9c;
  text-align: center;
  line-height: 1.6;
  margin-top: 24px;
}
.login-bottom {
  position: absolute;
  bottom: 28px;
  color: #9292ab;
  font-size: 10px;
}
.login-bottom span {
  padding: 0 10px;
}
.error {
  color: #af413d;
  font-size: 12px;
  line-height: 1.5;
}
/* Panel */
.workspace {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--sidebar);
  background: var(--paper);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 29px 18px 20px;
  z-index: 30;
}
.sidebar > .brand {
  padding: 0 8px;
}
.workspace-badge {
  font-size: 10px;
  color: #696989;
  letter-spacing: 0.3px;
  margin: 28px 9px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.workspace-badge:before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-400);
}
nav {
  flex: 1;
  overflow-y: auto;
  margin-top: 4px;
}
.nav-group-title {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #9090aa;
  padding: 20px 13px 9px;
}
.nav-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  margin: 3px 0;
  border-radius: 7px;
  color: #5f5f7b;
  font-size: 12px;
  position: relative;
}
.nav-link:hover {
  background: #f4f4f9;
  color: var(--ink);
}
.nav-link.active {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 600;
}
.nav-link.active:after {
  content: '';
  height: 5px;
  width: 5px;
  background: var(--brand);
  border-radius: 50%;
  margin-left: auto;
}
.nav-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.sidebar-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #8b8ba6;
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8686a2;
  flex-shrink: 0;
}
.version {
  margin-left: auto;
  font-size: 9px;
  color: #a3a3b8;
}
.workspace-body {
  width: calc(100% - var(--sidebar));
  margin-left: var(--sidebar);
}
.topbar {
  height: 86px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #ffffffde;
  gap: 20px;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.hotel-context {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.hotel-context > div {
  min-width: 0;
}
.hotel-symbol {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #737393;
}
.hotel-context label {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #8d8da8;
  margin: 0 0 5px;
}
.hotel-context select {
  max-width: 270px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 550;
  padding: 0 22px 0 0;
  color: var(--ink);
  cursor: pointer;
  text-overflow: ellipsis;
}
.hotel-context select:disabled {
  opacity: 1;
  appearance: none;
  cursor: default;
}
.role-chip {
  font-size: 9px;
  color: #737393;
  border: 1px solid #dcdcec;
  border-radius: 5px;
  padding: 5px 8px;
  white-space: nowrap;
}
.profile-wrap {
  position: relative;
}
.profile-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 6px;
  border-radius: 8px;
}
.profile-toggle:hover {
  background: #f3f3f9;
}
.avatar {
  width: 34px;
  height: 34px;
  background: #e2e2f0;
  border: 1px solid #d2d2e7;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #4e4e66;
  font-size: 10px;
  font-weight: 600;
}
.profile-identity strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-identity small {
  display: block;
  color: #8787a3;
  font-size: 9px;
  margin-top: 4px;
}
.profile-toggle svg {
  width: 13px;
  color: #8686a1;
  margin-left: 7px;
}
.profile-menu {
  position: absolute;
  top: 54px;
  right: 0;
  width: 218px;
  background: white;
  box-shadow: 0 12px 42px #26382514;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  z-index: 40;
}
.menu-account {
  padding: 10px;
}
.menu-account strong {
  display: block;
  font-size: 12px;
}
.menu-account small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.profile-menu button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  padding: 10px;
  border-radius: 5px;
  text-align: left;
  font-size: 12px;
}
.profile-menu button:hover {
  background: var(--paper);
}
.menu-divider {
  height: 1px;
  background: var(--line);
  margin: 5px;
}
#logout {
  color: #a45c4e;
}
main {
  padding: 16px 40px 24px;
  max-width: 1500px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-weight: 550;
  letter-spacing: -1.25px;
  font-size: 31px;
  margin: 10px 0;
}
.page-heading .muted {
  font-size: 12px;
  margin: 0;
}
.context-pill {
  font-size: 10px;
  border: 1px solid #d8d8ea;
  border-radius: 6px;
  padding: 8px 10px;
  color: #696989;
  white-space: nowrap;
  background: #f8f8fb;
}
.canvas {
  border: 1px solid #dadaeb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}
.canvas-top,
.canvas-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  color: #8f8fa8;
  font-size: 9px;
  gap: 12px;
}
.canvas-top {
  letter-spacing: 1.2px;
  border-bottom: 1px solid #ebebf5;
}
.canvas-top > span:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
}
.canvas-top > span:last-child {
  letter-spacing: 0.6px;
}
.canvas-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 42px 20px 55px;
  background: radial-gradient(ellipse at center, #f6f8f150 0, white 65%);
}
.canvas-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #ececf5;
  color: #83839f;
  margin-bottom: 28px;
  border: 1px solid #ddddec;
  box-shadow: 0 0 0 9px #f6f6fa;
  transform: rotate(-5deg);
}
.canvas-icon svg {
  width: 30px;
  height: 30px;
  transform: rotate(5deg);
  stroke-width: 1.2;
}
.canvas-content > .eyebrow {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #8d8da7;
}
.canvas-content h2 {
  font-weight: 500;
  font-size: 23px;
  letter-spacing: -0.7px;
  margin: 12px 0;
}
.canvas-content p {
  color: #8484a0;
  font-size: 12px;
  line-height: 1.85;
  max-width: 360px;
  margin: 0;
}
.coming-next {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #8b8ba5;
}
.coming-next span {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: #acacbf;
}
.canvas-bottom {
  border-top: 1px solid #ebebf5;
  padding: 15px 24px;
  font-size: 9px;
}
.main-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #9595ae;
  gap: 15px;
  padding: 22px 2px;
}
.icon-button {
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.icon-button:hover {
  background: #e9e9f3;
}
svg {
  width: 18px;
  height: 18px;
  display: block;
}
.mobile-toggle {
  display: none;
}
.nav-overlay {
  position: fixed;
  inset: 0;
  border: 0;
  background: #13271a66;
  z-index: 29;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  width: min(430px, calc(100% - 32px));
  color: var(--ink);
  box-shadow: 0 18px 80px #13251b25;
}
dialog::backdrop {
  background: #192e243d;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-top h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  font-weight: 550;
  margin: 0;
}
.dialog-top button {
  font-size: 24px;
}
.profile-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.profile-row dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}
.profile-row dd {
  margin: 0;
  font-size: 13px;
}
.dialog-top + .muted,
#password-form > .muted {
  font-size: 12px;
}
#password-status {
  font-size: 12px;
  line-height: 1.5;
  color: #9a443d;
}
#password-form > .primary {
  width: 100%;
  margin-top: 8px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 12px;
  z-index: 100;
  box-shadow: 0 5px 25px #0002;
}
@media (min-width: 1500px) {
  .canvas {
    min-height: 520px;
  }
  main {
    padding-top: 18px;
  }
  .page-heading {
    margin-top: 45px;
  }
}
@media (max-width: 1050px) {
  :root {
    --sidebar: 218px;
  }
  .sidebar {
    padding: 25px 12px;
  }
  .topbar {
    padding: 0 22px;
  }
  .topbar-right {
    gap: 12px;
  }
  .role-chip {
    display: none;
  }
  main {
    padding: 13px 24px 26px;
  }
  .hotel-context select {
    max-width: 220px;
  }
  .login-story {
    padding: 35px 30px;
  }
  .story-content h1 {
    font-size: 47px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 244px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace-body {
    margin: 0;
    width: 100%;
  }
  .mobile-toggle {
    display: grid;
  }
  .topbar {
    height: 74px;
    padding: 0 16px;
  }
  .topbar-left {
    gap: 8px;
  }
  .hotel-symbol {
    display: none;
  }
  .hotel-context select {
    max-width: 180px;
    font-size: 11px;
  }
  .profile-identity {
    display: none;
  }
  .profile-toggle {
    gap: 2px;
  }
  .profile-toggle svg {
    margin: 0;
  }
  .topbar-right {
    gap: 5px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .context-pill {
    display: none;
  }
  main {
    padding: 12px 20px 24px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .canvas {
    min-height: 400px;
  }
  .canvas-top,
  .canvas-bottom {
    padding: 16px;
  }
  .canvas-bottom > span:last-child,
  .main-footer > span:last-child {
    display: none;
  }
  .canvas-content h2 {
    font-size: 21px;
  }
  .main-footer {
    font-size: 9px;
  }
  .login-layout {
    display: flex;
    flex-direction: column;
  }
  .login-story {
    min-height: 0;
    padding: 25px;
    background: var(--paper);
  }
  .story-content,
  .story-footer {
    display: none;
  }
  .login-form-area {
    flex: 1;
    padding: 45px 28px 95px;
    min-height: calc(100vh - 90px);
    align-items: flex-start;
  }
  .login-form {
    margin: auto;
  }
  .login-form h2 {
    font-size: 31px;
  }
  .login-bottom {
    bottom: 25px;
  }
  .brand {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
/* Master data */
.master-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 8px 0 20px;
}
.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding-left: 13px;
  width: 320px;
  max-width: 45%;
  gap: 5px;
}
.search-box > span {
  font-size: 24px;
  color: #8989a5;
}
.search-box input {
  border: 0;
  background: transparent;
  height: 40px;
  font-size: 12px;
  min-width: 0;
}
.toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.toolbar-actions select {
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  height: 41px;
  padding: 0 12px;
  font-size: 11px;
  color: #5a5a76;
}
.toolbar-actions .primary {
  padding: 12px 16px;
  font-size: 12px;
  white-space: nowrap;
}
.records-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.records-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 22px;
  border-bottom: 1px solid var(--line);
}
.records-card-heading strong {
  font-weight: 600;
  font-size: 13px;
}
.records-card-heading #record-count {
  font-size: 10px;
  color: #747494;
  background: #ededf6;
  border-radius: 5px;
  padding: 4px 7px;
  margin-left: 10px;
}
.records-scope {
  font-size: 10px;
  color: var(--muted);
}
.table-scroll {
  overflow: auto;
}
.records-table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}
.records-table th {
  font-size: 10px;
  font-weight: 500;
  color: #7f7f9d;
  background: #fbfbfd;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.records-table td {
  padding: 17px 20px;
  border-bottom: 1px solid #e9e9f3;
  font-size: 12px;
  color: #595974;
}
.records-table tr:last-child td {
  border-bottom: 0;
}
.records-table tbody tr:hover {
  background: #f9f9fc;
}
.records-table small,
.record-code {
  display: block;
  font-size: 10px;
  color: #8b8ba5;
  margin-top: 6px;
}
.record-name {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: #373748;
  font-size: 12px;
  font-weight: 550;
}
.record-name:hover {
  text-decoration: underline;
}
.status-pill {
  font-size: 9px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: #595974;
  background: #eaeaf4;
  padding: 5px 8px;
  border-radius: 5px;
}
.status-pill:before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7f7f9d;
}
.status-pill.inactive {
  background: #ebebf5;
  color: #82829f;
}
.status-pill.inactive:before {
  background: #9191ab;
}
.row-actions {
  text-align: right;
}
.text-button {
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #60607d;
  padding: 5px 7px;
  border-radius: 4px;
}
.text-button:hover {
  background: #e4e4f1;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 15px 22px;
  font-size: 10px;
  color: #8484a0;
  border-top: 1px solid var(--line);
}
.master-empty,
.master-loading {
  text-align: center;
  padding: 65px 20px 75px;
  color: var(--muted);
}
.master-empty h2 {
  color: var(--ink);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.5px;
}
.master-empty p {
  font-size: 12px;
  line-height: 1.8;
}
.empty-symbol {
  font-size: 32px;
  color: #7e7e9c;
  background: #ededf5;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 15px;
  margin: 0 auto 25px;
}
.secondary {
  background: white;
  border: 1px solid #dcddeb;
  color: #4e4e66;
  border-radius: 7px;
  padding: 11px 16px;
  font-size: 12px;
}
.secondary:hover {
  background: #f0f0f7;
}
.master-empty .secondary {
  margin-top: 14px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.record-dialog {
  width: min(740px, calc(100% - 30px));
  padding: 0;
  max-height: 90vh;
  overflow: auto;
}
.record-dialog-header {
  padding: 26px 28px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.record-dialog-header h2 {
  font-size: 24px;
  letter-spacing: -0.7px;
  font-weight: 550;
  margin: 9px 0 0;
}
.record-dialog-header .muted {
  font-size: 11px;
  margin-bottom: 0;
}
.record-dialog-header .icon-button {
  font-size: 25px;
  color: #7e7e9c;
}
.record-dialog-body {
  padding: 5px 28px;
}
.field-section {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.field-section:last-child {
  border-bottom: 0;
}
.field-section h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 9px;
  color: #444459;
}
.field-section > p {
  font-size: 11px;
  line-height: 1.6;
  color: #80809e;
  margin: 0 0 16px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 20px;
  margin: 0;
}
.form-field label {
  font-size: 11px;
  margin: 0 0 8px;
  color: #5e5e79;
}
.form-field input,
.form-field select {
  height: 42px;
  width: 100%;
  border: 1px solid #dcddeb;
  border-radius: 6px;
  background: white;
  padding: 9px 12px;
  font-size: 12px;
  color: #232351;
}
.form-field select:disabled {
  background: #f2f2f8;
  color: #6e6e8e;
}
.form-field small {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  color: #8b8ba6;
  margin-top: 6px;
}
.required-dot {
  color: #7f7f9c;
  margin-left: 2px;
}
.check-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 50px;
}
.check-field label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 5px 0;
}
.check-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  padding: 0;
}
.record-dialog-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 17px 28px;
  z-index: 1;
}
.record-dialog-footer > div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.record-dialog-footer .error {
  margin: 0 0 12px;
}
.detail-field {
  padding: 9px 0;
}
.detail-field dt {
  font-size: 10px;
  color: #7a7a98;
  margin-bottom: 8px;
}
.detail-field dd {
  margin: 0;
  color: #3c3c4e;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 11px;
  color: #6d6d8e;
}
.record-timestamps {
  font-size: 10px;
  color: #8c8ca7;
  line-height: 1.9;
  padding: 20px 0;
}
.record-dialog .primary {
  font-size: 12px;
}
.record-dialog [dir='auto'] {
  text-align: start;
}
@media (max-width: 760px) {
  .master-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .search-box {
    width: 100%;
    max-width: none;
  }
  .toolbar-actions {
    justify-content: space-between;
  }
  .records-card-heading {
    padding: 17px;
  }
  .records-scope {
    display: none;
  }
  .records-table td,
  .records-table th {
    padding: 14px;
  }
  .record-dialog-header {
    padding: 22px 20px;
  }
  .record-dialog-body {
    padding: 0 20px;
  }
  .record-dialog-footer {
    padding: 16px 20px;
  }
  .field-grid {
    gap: 17px 12px;
  }
  .table-footer {
    padding: 15px;
  }
  .table-footer span {
    display: none;
  }
}
@media (max-width: 460px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
  .record-dialog-header h2 {
    font-size: 22px;
  }
}
/* ARI range calendar */
.ari-welcome {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 55px 35px;
  text-align: center;
}
.ari-welcome h2 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.7px;
}
.ari-welcome p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.ari-welcome select {
  width: 350px;
  max-width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
}
.ari-welcome > div {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.ari-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}
.ari-filters {
  display: flex;
  gap: 16px;
  flex: 1;
}
.ari-filters > div {
  width: 240px;
  max-width: 45%;
}
.ari-filters label {
  font-size: 10px;
  margin: 0 0 8px;
  color: var(--muted);
}
.ari-filters select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  font-size: 12px;
  color: var(--ink);
}
.ari-toolbar .primary {
  white-space: nowrap;
  font-size: 12px;
}
.ari-calendar-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: white;
}
.ari-monthbar {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.month-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
}
.month-navigation h2 {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.4px;
  margin: 0;
  min-width: 150px;
  text-align: center;
}
.month-navigation .icon-button {
  font-size: 23px;
  color: #6f6f91;
}
.ari-monthbar input {
  width: 165px;
  height: 35px;
  font-size: 11px;
  padding: 5px 8px;
}
.ari-legend {
  padding: 0 24px 19px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 9px;
  color: #797997;
}
.ari-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ari-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.legend-open {
  background: #b5cba0;
}
.legend-stop {
  background: #dfb9a4;
}
.legend-unset {
  background: #e2e2ef;
}
.ari-weekdays,
.ari-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.ari-weekdays {
  background: #f5f5fa;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ari-weekdays span {
  padding: 12px;
  font-size: 10px;
  color: #7d7d9b;
  text-align: center;
}
.ari-day,
.ari-blank {
  min-height: 116px;
  border: 0;
  border-right: 1px solid #e2e2ef;
  border-bottom: 1px solid #e2e2ef;
  background: white;
  padding: 12px 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.ari-day:nth-child(7n),
.ari-blank:nth-child(7n) {
  border-right: 0;
}
.ari-day:hover {
  background: #ededf5;
  box-shadow: inset 0 0 0 1px #9a9ad4;
}
.ari-day .day-number {
  font-size: 11px;
  color: #6e6e8e;
}
.ari-day strong {
  font-weight: 550;
  font-size: 11px;
  color: #49623a;
  overflow-wrap: anywhere;
}
.ari-day .day-rooms {
  font-size: 10px;
  color: #7f7f9c;
}
.ari-day .day-flags {
  font-size: 8px;
  color: #767696;
  line-height: 1.6;
  min-height: 12px;
}
.ari-day.unset strong {
  font-weight: 400;
  color: #a3a3b9;
  font-size: 10px;
}
.ari-day.unset .day-rooms {
  color: #b2b2c4;
  font-size: 9px;
}
.ari-day.closed {
  background: #fcf6f0;
}
.ari-day.closed strong,
.ari-day.closed .day-rooms {
  color: #b28666;
}
.ari-day.conflict {
  background: #fff0eb;
}
.ari-day.conflict strong {
  color: #ac5545;
}
.ari-blank {
  background: #fafafc;
}
.ari-day.is-today .day-number {
  background: var(--brand);
  color: white;
  border-radius: 4px;
  padding: 3px 5px;
  align-self: start;
  margin-top: -3px;
  margin-left: -5px;
}
.ari-ranges {
  margin-top: 24px;
}
.ari-range-empty {
  padding: 32px 24px;
  color: #7e7e9c;
  font-size: 12px;
}
.ari-error,
.ari-conflict-note {
  padding: 15px 22px;
  font-size: 12px;
}
.ari-conflict-note {
  background: #fff3ed;
  color: #ae644c;
  margin: 0;
}
.ari-priority-help {
  margin: 17px 0 0 !important;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
#ari-range-count {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}
#ari-form .field-section > p {
  margin-top: 12px;
}
.ari-calendar-card > .secondary {
  margin: 0 20px 20px;
}
@media (max-width: 1000px) {
  .ari-day,
  .ari-blank {
    padding: 10px 7px;
    min-height: 108px;
  }
  .ari-day strong {
    font-size: 10px;
  }
  .ari-legend span:last-child {
    width: 100%;
  }
  .ari-filters {
    gap: 10px;
  }
  .ari-filters > div {
    max-width: 48%;
  }
}
@media (max-width: 600px) {
  .ari-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .ari-filters > div {
    width: 50%;
  }
  .ari-toolbar .primary {
    align-self: flex-end;
  }
  .ari-monthbar {
    padding: 14px 8px;
    flex-wrap: wrap;
  }
  .ari-monthbar input {
    width: 135px;
  }
  .month-navigation {
    gap: 2px;
  }
  .month-navigation h2 {
    font-size: 15px;
    min-width: 130px;
  }
  .ari-legend {
    padding: 0 12px 14px;
    gap: 12px;
  }
  .ari-day,
  .ari-blank {
    min-height: 100px;
    padding: 9px 4px;
    gap: 7px;
  }
  .ari-day strong {
    font-size: 9px;
  }
  .ari-day .day-rooms {
    font-size: 8px;
  }
  .ari-weekdays span {
    padding: 10px 4px;
    font-size: 9px;
  }
  .ari-day.is-today .day-number {
    margin-left: 0;
  }
  .ari-welcome {
    padding: 35px 18px;
  }
  .ari-welcome > div {
    flex-wrap: wrap;
  }
}
.ari-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ari-actions .secondary {
  white-space: nowrap;
}
.ari-mode-note {
  padding: 16px 0;
  font-size: 12px;
  line-height: 1.7;
  color: #646482;
  border-bottom: 1px solid var(--line);
}
.ari-context-menu {
  position: fixed;
  z-index: 150;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 35px #23351c24;
  min-width: 195px;
  padding: 6px;
}
.context-date {
  display: block;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #7c7c9a;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.ari-context-menu button {
  display: block;
  border: 0;
  background: white;
  width: 100%;
  padding: 11px;
  text-align: left;
  font-size: 12px;
  border-radius: 5px;
}
.ari-context-menu button:hover,
.ari-context-menu button:focus {
  background: #e9e9f3;
}
.ari-context-menu button:first-of-type {
  color: #9a654a;
}
#restrict-form input[type='number'] {
  margin-top: 9px;
}
@media (max-width: 1100px) {
  .ari-toolbar {
    flex-wrap: wrap;
  }
  .ari-actions {
    margin-left: auto;
  }
}
@media (max-width: 600px) {
  .ari-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .ari-actions button {
    font-size: 11px;
  }
}
.distribution-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
}
.distribution-tabs button {
  border: 0;
  background: transparent;
  padding: 14px 18px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.distribution-tabs button.selected {
  border-bottom-color: var(--brand);
  color: var(--brand);
  font-weight: 600;
}
.distribution-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 20px;
}
#distribution-page .toolbar-actions {
  flex-wrap: wrap;
}
#distribution-page code {
  overflow-wrap: anywhere;
}
#distribution-page .master-toolbar {
  flex-wrap: wrap;
}
.users-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.users-summary > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.users-summary strong {
  display: block;
  font-size: 26px;
  font-weight: 550;
}
.users-summary span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.user-hotels {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}
.user-hotels label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px;
  font-size: 12px;
}
.user-hotels input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.user-hotels small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.user-password {
  font-size: 16px;
  overflow-wrap: anywhere;
  user-select: all;
}
#users-page .master-toolbar,
#users-page .toolbar-actions {
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .users-summary {
    gap: 8px;
  }
  .users-summary > div {
    padding: 14px;
  }
  .users-summary strong {
    font-size: 22px;
  }
}
.credential-password {
  margin-top: 20px;
}
.credential-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.credential-actions button {
  font-size: 12px;
}
#credential-status {
  min-height: 20px;
  font-size: 12px;
}
.mapping-info-toolbar {
  display: flex;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.mapping-info-toolbar .form-field {
  min-width: 260px;
  max-width: 100%;
}
.mapping-info-toolbar > .muted {
  font-size: 12px;
  padding-bottom: 12px;
}
.mapping-info-table th,
.mapping-info-table td {
  min-width: 210px;
  vertical-align: top;
}
.mapping-info-table thead th {
  padding-top: 18px;
  padding-bottom: 18px;
}
.mapping-info-table th small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.mapping-info-table th strong {
  font-weight: 600;
}
.mapping-info-table .mapping-group th {
  background: var(--paper);
  font-size: 11px;
  color: var(--muted);
  padding-top: 12px;
  padding-bottom: 12px;
}
.mapping-info-table tbody th[scope='row'] {
  font-size: 12px;
  font-weight: 400;
}
.mapping-info-table code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.mapping-missing {
  font-size: 12px;
  color: #a77c55;
}
.mapping-info-note {
  margin-top: 18px;
}
.mapping-info-table th:first-child:not([colspan]) {
  position: sticky;
  left: 0;
  background: white;
  z-index: 1;
}
.push-steps {
  display: flex;
  gap: 28px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
}
.push-steps .selected {
  color: var(--brand);
  font-weight: 600;
}
.push-selection > .field-grid {
  padding: 24px;
}
.push-form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 24px 24px;
}
.push-form-bottom p {
  font-size: 12px;
  max-width: 65%;
  margin: 0;
}
.push-form-bottom button {
  white-space: nowrap;
}
.push-selection > .error {
  padding: 0 24px 18px;
}
.push-send {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  margin-top: 24px;
}
.push-send p {
  font-size: 12px;
  margin: 8px 0 0;
}
.push-send button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  white-space: nowrap;
}
.push-readiness,
.push-preview,
.push-gaps {
  margin-top: 24px;
}
.push-result-body {
  padding: 8px 24px 22px;
  font-size: 12px;
  line-height: 1.7;
}
.push-issues {
  padding: 12px 18px;
  border-radius: 8px;
  margin: 16px 0;
}
.push-issues h3 {
  font-size: 12px;
  margin: 0;
}
.push-issues ul {
  padding-left: 18px;
  margin-bottom: 0;
}
.push-errors {
  background: #fff2ed;
  color: #965941;
}
.push-warnings {
  background: #faf6e9;
  color: #8c743e;
}
.push-gaps summary {
  cursor: pointer;
  padding: 20px 24px;
  font-size: 12px;
}
.push-external-hotel {
  padding: 0 24px 14px;
  font-size: 12px;
}
@media (max-width: 600px) {
  .push-steps {
    gap: 15px;
    font-size: 10px;
  }
  .push-form-bottom {
    align-items: stretch;
    flex-direction: column;
  }
  .push-form-bottom p {
    max-width: 100%;
  }
  .push-send {
    flex-direction: column;
    align-items: stretch;
  }
}
.config-selectors {
  padding: 24px;
  margin-bottom: 22px;
}
.config-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.config-summary > div {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
  background: white;
}
.config-summary strong {
  display: block;
  font-size: 14px;
  margin: 12px 0;
}
.config-summary small {
  display: block;
  line-height: 1.6;
  color: var(--muted);
  font-size: 11px;
}
.config-section {
  margin-bottom: 22px;
}
.config-body {
  padding: 22px;
}
.config-body > .muted,
.config-save > .muted {
  font-size: 12px;
  line-height: 1.7;
}
.config-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.config-toggle input,
.config-room input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}
.config-time-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 12px;
  font-size: 12px;
}
.config-time-heading > span {
  color: var(--muted);
}
.config-times {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.config-times > div {
  display: flex;
  align-items: center;
  gap: 5px;
}
.config-times input {
  width: 120px;
}
.config-room {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 14px;
  padding: 16px;
}
.config-room-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  margin: 0;
}
.config-room small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.config-plans {
  padding: 12px 0 0 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.config-plans label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  margin: 0;
}
.config-plans small {
  display: block;
  margin-top: 5px;
}
.config-plans label:has(input:disabled) {
  opacity: 0.45;
}
.config-save {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.config-save > p {
  width: 100%;
  margin: 0;
}
.push-config-choice {
  padding: 0 24px 18px;
  font-size: 12px;
}
.push-config-choice label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.push-config-choice input {
  width: 16px;
  height: 16px;
}
@media (max-width: 700px) {
  .config-summary {
    grid-template-columns: 1fr;
  }
  .config-plans {
    grid-template-columns: 1fr;
  }
  .config-time-heading {
    flex-wrap: wrap;
  }
}

/* Manual RG Bridge XML workspace */
.mock-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.mock-actions select {
  width: auto;
  min-width: 160px;
}
.push-products {
  padding: 4px 24px 20px; /* same side gutter as the field grid above */
}
.push-products fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  margin: 12px 0;
  overflow: hidden;
}
/* Legend is floated so it renders as a header row inside the box instead of
   sitting on the border. */
.push-room-heading {
  float: left;
  width: 100%;
  padding: 14px 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.push-room-heading label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin: 0;
}
.push-room-plans {
  clear: both;
  padding: 12px 18px 12px 44px;
}
.mock-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 22px 6px 0;
}
.mock-xml-list {
  padding: 0 24px 24px;
}
.mock-xml-list details,
#mock-attempts details {
  border-top: 1px solid #e1e1ef;
  padding: 16px 0;
}
.mock-xml-list summary,
#mock-attempts summary {
  cursor: pointer;
  font-weight: 600;
}
.mock-xml-list textarea {
  width: 100%;
  resize: vertical;
  min-height: 280px;
  font:
    12px/1.7 ui-monospace,
    monospace;
  background: #f6f6fa;
  white-space: pre;
  overflow: auto;
  padding: 14px;
  border: 1px solid #d9d9eb;
  border-radius: 8px;
}
.mock-xml-list p {
  overflow-wrap: anywhere;
}
#mock-attempts pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f6f6fa;
  padding: 12px;
  font-size: 12px;
}
.mock-snapshot {
  margin-top: 24px;
}
#mock-more {
  margin: 14px 24px;
}

/* IraqBeds branding and readable operational hierarchy */
:root {
  font-size: 15px;
  --sidebar: 264px;
  --muted: #5e5e7b;
}
.iraqbeds-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  letter-spacing: normal;
}
.iraqbeds-wordmark {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -1px;
  color: var(--brand-500);
  line-height: 1.1;
}
.iraqbeds-brand .brand-logo {
  display: block;
  width: 205px;
  max-width: 100%;
  height: auto;
  max-height: 85px;
  object-fit: contain;
  object-position: left center;
}
.brand-tagline {
  font-size: 12px;
  line-height: 1.5;
  color: #585873;
  font-weight: 500;
  letter-spacing: 0;
}
.login-story .iraqbeds-brand {
  align-items: center;
}
.login-story .iraqbeds-brand .brand-logo {
  width: 444px;
  max-width: 100%;
  max-height: none;
  object-position: center;
}
.login-story .iraqbeds-wordmark {
  font-size: 42px;
}
.login-story .brand-tagline {
  font-size: 15px;
}
.workspace-badge {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 23px 8px 8px;
  line-height: 1.5;
}
.workspace-badge:before {
  display: none;
}
.sidebar-bottom {
  font-size: 12px;
  gap: 5px;
  flex-wrap: wrap;
  color: #5e5e79;
}
.sidebar-bottom a {
  font-weight: 700;
  color: var(--brand-500);
}
.sidebar-bottom a:hover {
  text-decoration: underline;
}
.nav-link {
  font-size: 14px;
  padding: 11px 13px;
}
.nav-group-title {
  font-size: 10px;
  color: #656584;
}
.nav-link svg {
  width: 19px;
  height: 19px;
}
.topbar {
  min-height: 94px;
  height: auto;
  padding-top: 15px;
  padding-bottom: 15px;
  gap: 16px;
}
.topbar-right {
  gap: 14px;
}
.topbar-left {
  flex: 1;
}
.hotel-context {
  width: 100%;
}
.hotel-context > div {
  flex: 1;
}
.hotel-context label {
  font-size: 10px;
  color: #61617e;
}
.hotel-context select {
  font-size: 17px;
  font-weight: 650;
  width: 100%;
  max-width: 350px;
  min-height: 32px;
}
.hotel-context select option {
  font-size: 17px;
  font-weight: 500;
  padding: 10px;
}
.hotel-symbol {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: #ededf6;
  color: #323275;
  border-color: #d5d5e8;
}
.hotel-symbol svg {
  width: 24px;
  height: 24px;
}
.role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 10px 13px;
  color: var(--brand-500);
  background: #ededf5;
  border: 1px solid #d4d4e8;
  border-radius: 8px;
}
.profile-identity strong {
  font-size: 14px;
}
.profile-identity small {
  font-size: 11px;
  color: #5f5f7b;
}
.avatar {
  font-size: 12px;
  width: 38px;
  height: 38px;
}
.page-heading {
  flex-wrap: wrap;
  align-items: center;
}
.page-heading h1 {
  font-size: 32px;
  margin: 0 0 10px;
}
.page-heading .muted {
  font-size: 14px;
}
.context-pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  white-space: normal;
  max-width: 100%;
  padding: 11px 15px;
  background: #eeeef6;
  border: 1px solid #d5d5e9;
  color: var(--brand-700);
  border-radius: 11px;
}
.property-badge-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #d5d5e8;
  color: #2e2e6b;
  border-radius: 9px;
}
.property-badge-icon svg {
  width: 23px;
  height: 23px;
}
.records-table th {
  font-size: 13px;
  font-weight: 600;
  color: #5b5b76;
}
.records-table td {
  font-size: 14px;
  color: #434358;
}
.record-name {
  font-size: 16px;
  font-weight: 650;
  color: var(--brand-700);
  line-height: 1.4;
}
.records-table .hotel-name-cell {
  font-size: 15px;
  font-weight: 600;
}
.records-table small,
.record-code {
  font-size: 12px;
  font-weight: 400;
  color: #666685;
}
.records-card-heading strong {
  font-size: 16px;
}
.records-scope {
  font-size: 13px;
  font-weight: 550;
}
.status-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 9px;
}
.record-count-link {
  display: inline-flex;
  box-sizing: border-box;
  width: 44px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6d6e9;
  border-radius: 8px;
  background: #efeff7;
  color: var(--brand-700);
  font-size: 14px;
  font-weight: 650;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.record-count-link:hover {
  background: #dedeed;
  text-decoration: underline;
}
label,
.form-field label {
  font-size: 13px;
  color: #4e4e65;
}
.form-field input,
.form-field select {
  font-size: 15px;
  height: 46px;
}
.form-field select option,
select option {
  font-size: 15px;
}
.check-field input {
  width: 18px;
  height: 18px;
}
.form-field small {
  font-size: 12px;
  color: #636381;
}
.field-section h3 {
  font-size: 15px;
}
.field-section > p {
  font-size: 13px;
  color: #61617f;
}
.detail-field dt {
  font-size: 12px;
}
.detail-field dd {
  font-size: 15px;
}
.primary,
.secondary,
.record-dialog .primary,
.toolbar-actions .primary {
  font-size: 14px;
}
.text-button {
  font-size: 13px;
}
.search-box input,
.toolbar-actions select {
  font-size: 14px;
}
.records-card-heading #record-count,
#ari-range-count {
  font-size: 12px;
}
.error {
  font-size: 14px;
}
.record-dialog-header .muted {
  font-size: 13px;
}
.ari-filters > div {
  width: 280px;
  max-width: 48%;
  min-width: 0;
}
.ari-filters label {
  font-size: 13px;
  color: #4e4e66;
}
.ari-filters select {
  font-size: 17px;
  font-weight: 600;
  min-height: 49px;
  padding: 12px 14px;
}
.ari-filters select option {
  font-size: 17px;
  font-weight: 500;
}
.ari-toolbar {
  flex-wrap: wrap;
}
.ari-toolbar .primary {
  font-size: 14px;
}
.ari-product-context {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #efeff6;
  border: 1px solid #dbdbeb;
  border-left: 4px solid #3b3b8b;
  border-radius: 8px;
  padding: 13px 16px;
  margin-top: 18px;
  line-height: 1.5;
}
.ari-product-context strong {
  font-size: 19px;
  color: var(--brand-700);
}
.ari-product-context > span {
  font-size: 16px;
  font-weight: 600;
  color: #4d4d65;
}
.inventory-input {
  display: flex;
  align-items: center;
  gap: 13px;
}
.inventory-input input {
  min-width: 0;
  flex: 1;
  width: 0;
  font-size: 19px;
  font-weight: 650;
}
.inventory-input strong {
  font-size: 23px;
  font-weight: 750;
  color: var(--brand-500);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-right: 8px;
}
.restriction-switches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.restriction-switches .check-field {
  min-height: 48px;
  background: #f5f5f9;
  border: 1px solid #dadaeb;
  border-radius: 8px;
  padding: 10px;
}
.restriction-switches label {
  font-size: 14px;
  font-weight: 650;
  margin: 0;
  gap: 8px;
}
.restriction-switches input {
  flex-shrink: 0;
}
.stay-limits {
  margin-top: 19px;
}
.ari-overrides-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 120px;
  padding: 26px;
  margin: 0;
  font-size: 14px;
}
.ari-day strong {
  font-size: 13px;
  font-weight: 650;
}
.ari-day .day-number {
  font-size: 13px;
}
.ari-day .day-rooms {
  font-size: 11px;
  color: #575772;
}
.ari-day .day-flags {
  font-size: 10px;
}
.ari-legend {
  font-size: 11px;
}
.ari-weekdays span {
  font-size: 12px;
}
.push-result-body {
  font-size: 14px;
}
.login-form > .muted {
  font-size: 15px;
}
.login-note {
  font-size: 12px;
}
.login-bottom {
  font-size: 12px;
}
@media (max-width: 1200px) {
  .topbar {
    padding-left: 22px;
    padding-right: 22px;
    flex-wrap: wrap;
  }
  .hotel-context select {
    max-width: 290px;
  }
  .role-chip {
    font-size: 11px;
    padding: 9px;
  }
  .profile-identity strong {
    max-width: 125px;
  }
  .topbar-right {
    gap: 9px;
  }
  .ari-filters {
    min-width: 280px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 264px;
  }
  .topbar {
    padding: 12px 16px;
    gap: 12px;
  }
  .topbar-left {
    min-width: 180px;
  }
  .topbar-right {
    margin-left: auto;
  }
  .role-chip {
    display: inline-flex;
    font-size: 10px;
    padding: 8px 9px;
  }
  .hotel-context select {
    font-size: 16px;
    max-width: 100%;
  }
  .context-pill {
    display: inline-flex;
    font-size: 15px;
    width: 100%;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .profile-identity {
    display: block;
  }
  .profile-identity strong {
    font-size: 13px;
    max-width: 125px;
  }
  .profile-identity small {
    font-size: 10px;
  }
  .page-heading {
    gap: 17px;
  }
  .ari-day strong {
    font-size: 11px;
  }
  .ari-day .day-rooms {
    font-size: 10px;
  }
  .ari-day .day-flags {
    font-size: 9px;
  }
  .ari-filters {
    min-width: 0;
    width: 100%;
  }
  .ari-filters > div {
    width: 50%;
  }
  .records-scope {
    display: block;
  }
  .records-card-heading {
    flex-wrap: wrap;
  }
  .login-story .brand-logo {
    width: 205px !important;
  }
}
@media (max-width: 460px) {
  .restriction-switches {
    gap: 6px;
  }
  .restriction-switches .check-field {
    padding: 8px 6px;
  }
  .restriction-switches label {
    font-size: 12px;
    gap: 5px;
  }
  .ari-product-context strong {
    font-size: 17px;
  }
  .ari-product-context > span {
    font-size: 15px;
  }
  .ari-filters select {
    font-size: 15px;
    padding: 10px 8px;
  }
  .topbar-left {
    flex-basis: 100%;
  }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .profile-identity strong {
    max-width: 180px;
  }
  .records-scope {
    overflow-wrap: anywhere;
  }
  .context-pill {
    font-size: 14px;
  }
  .stay-limits {
    grid-template-columns: 1fr 1fr;
  }
}

/* ARI views share property, product and month filters. */
.ari-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.ari-tabs [role='tab'] {
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 550;
  color: #61617f;
  white-space: nowrap;
}
.ari-tabs [aria-selected='true'] {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 700;
  background: #ededf5;
  border-radius: 8px 8px 0 0;
}
.ari-shared-monthbar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 18px;
}
#ari-panel-ranges {
  margin-top: 0;
}
#ari-panel-calendar .ari-legend {
  padding-top: 18px;
}
#ari-load-state:not(:empty) {
  padding: 12px 0;
  color: var(--muted);
}
#ari-load-state .ari-error {
  padding: 0;
}
#ari-overrides .records-card-heading {
  flex-wrap: wrap;
}
#ari-overrides .records-card-heading small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 600px) {
  .ari-tabs {
    gap: 0;
  }
  .ari-tabs [role='tab'] {
    font-size: 13px;
    padding: 12px 10px;
  }
}

.ari-day {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.ari-day.range-selected {
  background: #dddded;
  box-shadow: inset 0 0 0 2px #7a7a99;
}
.ari-day.range-endpoint {
  background: #c6c6e0;
  box-shadow: inset 0 0 0 2px var(--brand-500);
}
.ari-legend .ari-drag-hint {
  width: 100%;
  color: #4a4a61;
  font-size: 13px;
}

/* Shared error presentation for forms, loading failures and operational checks. */
.error:not(:empty),
.ari-conflict-note,
.push-errors {
  background: #fff0f0;
  border: 1px solid #efb8b8;
  border-left: 4px solid #cc4545;
  border-radius: 9px;
  color: #922b2b;
  font-size: 16px !important;
  font-weight: 500;
  line-height: 1.65;
  padding: 15px 18px !important;
  overflow-wrap: anywhere;
  text-align: left;
  white-space: normal;
}
.error:empty {
  display: none;
}
.push-errors h3 {
  font-size: 16px;
  color: inherit;
}
.push-errors li {
  margin: 6px 0;
}
.push-selection > .error {
  margin: 0 24px 20px;
}
#history-error:not(:empty) {
  margin: 16px 24px;
}
.ari-conflict-note {
  margin: 12px;
}
.toast.error {
  width: max-content;
  max-width: min(640px, calc(100vw - 32px));
  box-shadow: 0 8px 30px #6f20201c;
}
.record-dialog-footer .error {
  max-height: 30vh;
  overflow-y: auto;
}
@media (max-width: 460px) {
  .error:not(:empty),
  .ari-conflict-note,
  .push-errors {
    font-size: 15px !important;
    padding: 12px 14px !important;
  }
}

/* Customizable dropdowns (Chrome/Edge 135+). Other browsers keep the native
   select, so nothing breaks there. Font sizes come from typography.css. */
@supports (appearance: base-select) {
  select,
  ::picker(select) {
    appearance: base-select;
  }
  select {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #dcddeb;
    border-radius: 7px;
    background-color: white;
    color: var(--ink);
    cursor: pointer;
  }
  select::picker-icon {
    color: var(--brand);
    transition: rotate 0.15s;
  }
  select:open::picker-icon {
    rotate: 180deg;
  }
  select:disabled {
    cursor: default;
  }
  ::picker(select) {
    margin-block: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    box-shadow: 0 14px 34px rgb(30 30 76 / 16%);
    max-height: min(440px, 60vh);
  }
  select option {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 6px;
    gap: 10px;
    color: var(--ink);
    line-height: 1.35;
  }
  select option:hover,
  select option:focus-visible {
    background: var(--brand-soft);
    outline: none;
  }
  select option:checked {
    color: var(--brand);
    font-weight: var(--weight-semibold);
  }
  select option::checkmark {
    color: var(--brand);
  }
  select option:disabled {
    color: #9292ab;
    cursor: default;
  }
}

/* External channel codes in the mapping lists. */
.external-code {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid #efe2a8;
  border-radius: 6px;
  background: #fff8db;
  color: #5c4a12;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
/* Mapping Status: "Not mapped", "No room types" etc. open the matching form. */
.mapping-action {
  padding: 2px 8px;
  border: 1px dashed currentColor;
  border-radius: 6px;
  background: transparent;
  color: #b3261e;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.mapping-action:hover {
  background: #fdecea;
}

/* Standard message boxes: .error = light red (above), .alert = light yellow. */
.alert:not(:empty),
.push-warnings {
  background: #fff8e1;
  border: 1px solid #f0dc9a;
  border-left: 4px solid #d6a51c;
  border-radius: 9px;
  color: #6f5412;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  padding: 13px 16px;
  overflow-wrap: anywhere;
}
.alert:empty {
  display: none;
}

/* Status tags: small but readable. Build them with badge() in common.js. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-inline-start: 4px;
  padding: 1px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: middle;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-success {
  background: #edf6ef;
  border-color: #c9e2cf;
  color: #2f6b45;
}
.badge-muted {
  background: #f0f0f6;
  border-color: #d9d9e6;
  color: #60607c;
}
.badge-warning {
  background: #fff8e1;
  border-color: #f0dc9a;
  color: #7a5a0f;
}
.badge-danger {
  background: #fdeeee;
  border-color: #f1c4c4;
  color: #a12f2f;
}

/* Channel integration settings (distribution channel form) */
.integration-section h4 {
  margin: 16px 0 8px;
  color: #444459;
}
.integration-section .distribution-tabs {
  margin-bottom: 12px;
}
.integration-actions {
  display: flex;
  justify-content: flex-end;
}

/* Push Config toolbar ("View ARI rules") */
.config-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 16px;
}

/* In-page help (help.js): round "?" button at the right of a card heading */
.card-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.help-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  margin-left: auto;
  padding: 5px 10px 5px 7px;
  border: 1px solid #d7d7ea;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.card-heading-actions .help-button {
  margin-left: 0;
}
.help-button:hover {
  background: #e0e0ee;
  border-color: #c0c0dd;
}
.help-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.help-button svg {
  display: block;
}
@media (max-width: 700px) {
  .help-button span {
    display: none;
  }
  .help-button {
    padding: 5px;
  }
}

/* Shared info dialog (help topics, ARI rules) */
.info-dialog {
  width: min(640px, calc(100% - 30px));
}
.info-body {
  line-height: 1.6;
  color: var(--ink);
}
.info-body h4 {
  margin: 20px 0 6px;
  color: #444459;
}
.info-body p {
  margin: 0 0 12px;
}
.info-body dl {
  margin: 0 0 12px;
}
.info-body dt {
  margin-top: 10px;
  color: var(--brand);
}
.info-body dd {
  margin: 2px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--brand-soft);
}
.info-body ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

/* Push Center gaps table: "Fill the gap" */
.gap-action {
  text-align: right;
  white-space: nowrap;
}
.secondary.compact {
  padding: 6px 12px;
}

/* Push History: Manual / Automatic tabs */
.history-tabs {
  margin-bottom: 18px;
}

/* Channel form: automatic push pause */
.auto-push-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.auto-push-controls input {
  flex: 1;
}
.auto-push-controls button {
  flex: none;
}

/* Push History → Automatic: period, dates and status filters */
.history-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.period-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.period-chips button {
  border: 1px solid #dcddeb;
  background: white;
  color: #4e4e66;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.period-chips button:hover {
  background: #f0f0f7;
}
.period-chips button.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.history-filter-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.history-filter-fields .form-field {
  margin: 0;
  min-width: 150px;
}
.history-filter-fields .form-field[hidden] {
  display: none;
}
.history-filter-fields input,
.history-filter-fields select {
  height: 38px;
  padding: 6px 10px;
}

/* Shared pager (common.js pager()) */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
}
.pager-range {
  color: var(--muted);
}
.pager > div {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pager button {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #dcddeb;
  border-radius: 7px;
  background: white;
  color: #4e4e66;
  cursor: pointer;
}
.pager button:hover:not(:disabled) {
  background: #f0f0f7;
}
.pager button.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.pager button:disabled {
  opacity: 0.4;
  cursor: default;
}
.pager-gap {
  padding: 0 4px;
  color: var(--muted);
}

/* Push Review (info dialog, wide) */
.info-dialog.info-dialog-wide {
  width: min(1100px, calc(100% - 30px));
}
.review-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}
.review-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.info-body .review-summary dd {
  border: 0;
  padding: 0;
  margin: 4px 0 0;
}
.info-body .review-summary dt {
  margin: 0;
}
.review-attempt {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 0 12px;
  overflow: hidden;
}
.review-attempt summary {
  cursor: pointer;
  padding: 12px 14px;
  background: var(--paper);
  font-weight: 600;
}
.review-message {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.info-body .review-message h4 {
  margin: 0 0 10px;
}
.review-message h4 small {
  font-weight: 400;
  color: var(--muted);
}
.review-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 800px) {
  .review-pair {
    grid-template-columns: 1fr;
  }
}
.review-xml {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.review-xml-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #fafafc;
}
.review-xml-heading a {
  margin-left: auto;
}
.review-xml pre {
  margin: 0;
  padding: 12px;
  height: 50vh;
  min-height: 340px;
  overflow: auto;
  background: #f6f6fa;
  white-space: pre;
}
.review-no-response {
  padding: 10px;
}
.review-errors {
  margin: 10px 0 0;
}

/* Reservations: list */
.res-filters .history-filter-fields {
  align-items: flex-end;
}
.res-search {
  min-width: 240px;
}
.res-review-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin: 0;
}
.res-row {
  cursor: pointer;
}
.res-row:hover,
.res-row:focus-visible {
  background: #f5f5fa;
  outline: none;
}

/* Reservations: detail */
.res-detail {
  display: grid;
  gap: 18px;
}
.res-detail .records-card {
  margin: 0;
}
.res-back {
  justify-self: start;
}
.res-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
}
.res-summary {
  padding: 18px 22px 0;
  margin: 0;
}
.res-alert {
  margin: 16px 22px 0;
}
.res-ids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding: 18px 22px 22px;
  margin: 0;
}
.res-ids dt {
  color: var(--muted);
}
.res-ids dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.res-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 900px) {
  .res-columns {
    grid-template-columns: 1fr;
  }
}
.res-guest {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.res-guest:last-child {
  border-bottom: 0;
}
.res-guest small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.res-extras {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}
.res-timeline {
  list-style: none;
  margin: 0;
  padding: 6px 22px 18px;
}
.res-timeline li {
  position: relative;
  padding: 12px 0 12px 20px;
  border-left: 2px solid var(--line);
}
.res-timeline li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}
.res-timeline-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.res-timeline-head .text-button {
  margin-left: auto;
}
.res-changes {
  border-collapse: collapse;
}
.res-changes th,
.res-changes td {
  padding: 4px 10px 4px 0;
  text-align: left;
  vertical-align: top;
}
.res-changes th {
  color: var(--muted);
  font-weight: 500;
}
.res-before {
  color: #9a3b32;
  text-decoration: line-through;
}
.res-after {
  color: var(--brand);
  font-weight: 600;
}

/* Reservations: simulator */
.sim-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 10px;
}
.sim-room {
  position: relative;
  padding: 12px 40px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 10px;
}
.sim-remove {
  position: absolute;
  top: 8px;
  right: 8px;
}
.sim-options {
  display: grid;
  gap: 8px;
}
.sim-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.sim-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.int-webhook-url {
  grid-column: 1 / -1;
}
.int-webhook-url input {
  background: var(--paper);
}

/* Record dialog: photos (photos.js) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.photo-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--paper);
}
.photo-card img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}
.photo-card figcaption {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 6px 8px 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px 4px 6px;
}
.photo-actions .text-button {
  padding: 3px 6px;
}
.danger-text {
  color: #b3261e;
}
.photo-upload {
  display: inline-flex;
  cursor: pointer;
}

/* Record dialog: rate plan agency sections (ratePlanExtras.js) */
.policy-mode,
.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 12px;
}
.policy-mode label,
.check-list label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.mini-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}
.mini-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  padding: 4px 6px 4px 0;
}
.mini-table td {
  padding: 4px 6px 4px 0;
  vertical-align: middle;
}
.mini-table input,
.mini-table select {
  height: 36px;
  padding: 4px 8px;
}
.mini-table input[type='number'] {
  width: 90px;
}
.penalty-cell,
.age-range,
.date-range {
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-field.penalty-cell {
  flex-wrap: wrap;
}
.form-field.penalty-cell label {
  width: 100%;
}
.form-field.penalty-cell input {
  width: 110px;
}
.age-range input {
  width: 64px !important;
}
.date-range input {
  width: 150px;
}
.plain-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}
.form-field textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  border: 1px solid #d8d8e6;
  border-radius: 7px;
  font: inherit;
  resize: vertical;
}
.record-photo-hint {
  padding: 0 22px;
}
.mini-table-scroll {
  overflow-x: auto;
  margin-bottom: 8px;
}
.mini-table-scroll .mini-table {
  min-width: 760px;
}
.mini-table select {
  min-width: 130px;
}
.country-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 4px 12px;
  max-height: 320px;
  overflow: auto;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.country-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.country-list label[hidden] {
  display: none;
}

/* Agencies: wallets and access */
.wallet-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  padding: 18px 22px;
}
.wallet-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}
.wallet-card.inactive {
  opacity: 0.6;
}
.wallet-currency {
  color: var(--muted);
  font-weight: 600;
}
.wallet-balance {
  font-size: 22px;
}
.wallet-balance.negative,
.amount-out {
  color: #b3261e;
}
.amount-in {
  color: var(--brand);
}
.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.ledger-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 22px;
  border-top: 1px solid var(--line);
}
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
}
.access-grid select[multiple] {
  width: 100%;
  height: auto;
  padding: 6px;
}
.wide-field {
  grid-column: 1 / -1;
}
.audit-json {
  max-width: 480px;
  max-height: 240px;
  overflow: auto;
  font-size: 11px;
  background: #f6f6fa;
  padding: 8px;
}

/* Admin two-factor dialogs (mfaAdmin.js) */
.mfa-form {
  display: grid;
  gap: 8px;
}
.mfa-remember {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.mfa-qr {
  display: block;
  margin: 8px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.mfa-codes {
  columns: 2;
  line-height: 2;
}
.translation-table textarea {
  width: 100%;
  min-width: 260px;
  padding: 6px 8px;
  border: 1px solid #d8d8e6;
  border-radius: 6px;
  font: inherit;
  resize: vertical;
}
.translation-table td:nth-child(2) {
  max-width: 320px;
}

/* Travel agents → Agency bookings: status tabs inside the card */
#agencies-page .connected-tab-content .booking-filters {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

/* Agencies → wallet active switch */
.wallet-currency {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch-track {
  position: relative;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: #c3c3df;
  transition: background 0.15s;
  flex: none;
}
.switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
  transition: transform 0.15s;
}
.switch input:checked + .switch-track {
  background: var(--brand);
}
.switch input:checked + .switch-track::after {
  transform: translateX(13px);
}
[dir='rtl'] .switch input:checked + .switch-track::after {
  transform: translateX(-13px);
}
.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.wallet-card.inactive .wallet-balance,
.wallet-card.inactive small {
  opacity: 0.55;
}

/* Agencies → pricing & access lists and picker */
.access-lists {
  display: grid;
  gap: 12px;
  align-content: start;
}
.access-list-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.access-list-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.access-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
}
.access-chip {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eaeaf3;
}
.access-chip small {
  display: inline;
  font-size: 11px;
}
.access-chip.more {
  background: transparent;
  border: 1px dashed var(--line);
}
.access-picker-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 140px;
  gap: 8px;
  margin: 12px 0 8px;
}
.access-picker-tools input,
.access-picker-tools select {
  height: 40px;
  border: 1px solid #dcddeb;
  border-radius: 6px;
  padding: 0 10px;
  background: white;
  min-width: 0;
}
.access-picker-bulk {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.access-picker-bulk span {
  margin-inline-end: auto;
}
.access-picker-list {
  max-height: 46vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.access-picker-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.access-picker-item:last-child {
  border-bottom: 0;
}
.access-picker-item:hover {
  background: #f5f5f9;
}
.access-picker-item input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--brand);
}
.access-picker-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.access-picker-list > .muted {
  padding: 12px;
  margin: 0;
}
@media (max-width: 700px) {
  .access-picker-tools {
    grid-template-columns: 1fr;
  }
}

/* Agencies → agency users: filter tabs and permission checkboxes */
.user-filter-tabs {
  margin: 0;
  padding: 0 12px;
}
.form-field .permission-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 16px;
  margin: 4px 0 0;
}
.form-field .permission-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  margin: 0;
}
.form-field .permission-list input[type='checkbox'] {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  flex: none;
  accent-color: var(--brand);
}

/* Travel agents → Agency bookings: filters, clickable rows, detail dialog */
.booking-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(200px, 1.5fr) 150px 150px auto;
  gap: 10px;
  align-items: end;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.booking-filters label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}
.booking-filters input,
.booking-filters select {
  height: 38px;
  border: 1px solid #dcddeb;
  border-radius: 6px;
  padding: 0 10px;
  background: white;
  min-width: 0;
  font-size: 13px;
}
.booking-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 38px;
}
.clickable-row {
  cursor: pointer;
}
.clickable-row:hover td,
.clickable-row:focus td {
  background: #f5f5f9;
}
.clickable-row:focus {
  outline: none;
}
.booking-detail .field-section h3 {
  font-size: 13px;
  margin: 0 0 8px;
}
.booking-detail dd small,
.booking-detail li small {
  color: var(--muted);
  font-size: 11px;
}
.booking-room {
  margin-bottom: 10px;
}
.booking-room ul {
  margin: 4px 0;
  padding-inline-start: 18px;
}
.booking-notice {
  background: #fff6e0;
  border: 1px solid #f0d99a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}
.booking-moves {
  width: 100%;
  font-size: 12px;
}
.booking-moves th {
  text-align: start;
  font-weight: 500;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .booking-filters {
    grid-template-columns: 1fr 1fr;
  }
}

/* Travel agents → Agency wallet */
.wallet-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.wallet-page-head .res-back {
  margin: 0;
}
.wallet-agency-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-inline-start: auto;
}
.wallet-agency-pick select,
.wallet-search {
  height: 36px;
  border: 1px solid #dcddeb;
  border-radius: 6px;
  padding: 0 10px;
  background: white;
  font-size: 13px;
}
.wallet-search {
  width: 220px;
}
.button-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* Travel agents → Agencies list: compact wallet balances */
.wallet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.wallet-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eaeaf3;
  font-size: 12px;
  white-space: nowrap;
}
.wallet-chip.negative {
  background: #fbecea;
  color: #af413d;
}
.wallet-chip.inactive {
  opacity: 0.5;
  text-decoration: line-through;
}

/* Sidebar: tagline and today's date, bold and centred */
body aside.sidebar .brand-tagline {
  align-self: stretch;
  text-align: center;
  font-weight: var(--weight-bold, 700);
}
body aside.sidebar .workspace-badge {
  justify-content: center;
  text-align: center;
  font-weight: var(--weight-bold, 700);
}

/* Sign-in: "Iraq / Accommodation / Gateway", one word per line, flag after Iraq */
.story-title > span {
  display: block;
}
.story-title strong {
  font-weight: 700;
}
.story-title-first {
  display: flex !important;
  align-items: center;
  gap: 0.3em;
}
.iraq-flag {
  height: 0.8em;
  width: 1.2em;
  flex: none;
  border-radius: 3px;
}
.story-footer a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.story-footer a:hover {
  text-decoration: underline;
}

/* Dashboard: one screen, no scrolling on a laptop */
.dash-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.dash-periods {
  display: inline-flex;
  border: 1px solid var(--brand-200);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.dash-periods button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.dash-periods button + button {
  border-inline-start: 1px solid var(--brand-200);
}
.dash-periods button.selected {
  background: var(--brand-500);
  color: #fff;
  font-weight: 600;
}
.dash-updated {
  margin-inline-start: auto;
  font-size: 12px;
  color: var(--muted);
}
.dash-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-200);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-600);
  cursor: pointer;
}
.dash-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dash-icon.active {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
}
.dash-icon.spinning svg {
  animation: dash-spin 0.8s linear infinite;
}
@keyframes dash-spin {
  to {
    transform: rotate(360deg);
  }
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dash-kpi-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.dash-group-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
}
.dash-card {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
a.dash-card:hover {
  border-color: var(--brand-300);
}
.dash-alert.warning {
  background: #fff8e1;
  border-color: #f0d99a;
}
.dash-alert.warning .dash-value {
  color: #7a5a0f;
}
.dash-alert.danger {
  background: #fdecea;
  border-color: #efb8b8;
}
.dash-alert.danger .dash-value {
  color: #a12f2f;
}
.dash-label,
.dash-note {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-value {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-up {
  color: #1f6b3f;
}
.dash-down {
  color: #a12f2f;
}
.dash-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.dash-columns .records-card,
.dash-occ {
  margin: 0;
}
.dash-columns .records-card-heading {
  padding: 10px 14px;
  min-height: 0;
}
.dash-list {
  list-style: none;
  margin: 0;
  padding: 0 14px 8px;
}
.dash-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--brand-50);
  font-size: 12px;
  min-width: 0;
}
.dash-list li:first-child {
  border-top: 0;
}
.dash-list li > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-list small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-list a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.dash-list-side {
  text-align: end;
  flex: none;
}
.dash-occ {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 10px !important;
  padding: 8px 14px;
}
.dash-occ-head {
  display: grid;
  gap: 2px;
  font-size: 12px;
}
.dash-occ-head span {
  font-size: 11px;
  color: var(--muted);
}
.occ-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 4px;
}
.occ-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.occ-pct {
  font-size: 10px;
  color: var(--muted);
}
.occ-bar {
  position: relative;
  width: 100%;
  height: 28px;
  background: var(--brand-50);
  border-radius: 4px;
  overflow: hidden;
}
.occ-bar i {
  position: absolute;
  inset: auto 0 0 0;
  background: var(--brand-400);
}
.occ-date {
  font-size: 10px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .dash-kpis,
  .dash-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .dash-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-occ {
    grid-template-columns: 1fr;
  }
  .dash-updated {
    margin-inline-start: 0;
    width: 100%;
    order: 3;
  }
}
.dash-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-inline-end: 6px;
  vertical-align: 1px;
  background: #a9a9cf;
}
.dash-dot.success {
  background: #2f8f57;
}
.dash-dot.warning {
  background: #d6a51c;
}
.dash-dot.danger {
  background: #cc4545;
}
.dash-cur {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-inline-start: 3px;
}

#scheduler-page {
  display: grid;
  gap: 16px;
}
#scheduler-page .sch-body {
  padding: 18px 22px;
}
#scheduler-page .sch-body p {
  margin: 0 0 6px;
}
#scheduler-page .sch-body p:last-child {
  margin-bottom: 0;
}
#scheduler-page .sch-alerts {
  margin: 0;
  padding-left: 40px;
}

.snapshot-dialog {
  width: min(1000px, calc(100% - 30px));
}
.snapshot-dialog .mock-snapshot {
  margin-top: 0;
  border: 0;
  border-radius: 0;
}
.snapshot-dialog .mock-actions a[href='#history'] {
  display: none;
}

/* Push Review buttons (Manual and Automatic history) */
.secondary.push-review,
.secondary.compact[data-review-run] {
  background: #d4a72c;
  border-color: #b98f1c;
  color: #2b2100;
  font-weight: 600;
}
.secondary.push-review:hover,
.secondary.compact[data-review-run]:hover {
  background: #e2b73c;
}

/* Push Review modal: fixed size so switching tabs or opening items never
   resizes it; only the body scrolls. */
.snapshot-dialog[open] {
  display: flex;
  flex-direction: column;
  height: min(88vh, 860px);
  overflow: hidden;
}
.snapshot-dialog .record-dialog-header {
  flex: none;
}
#snapshot-dialog-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 22px 20px;
  overflow: hidden;
}
.snapshot-dialog .mock-snapshot {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.snapshot-dialog .mock-snapshot > .records-card-heading {
  flex: none;
  padding: 14px 0;
  border-bottom: 0;
}
.snapshot-dialog .snap-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}
.snapshot-dialog .snap-content .push-result-body,
.snapshot-dialog .snap-content .mock-xml-list {
  padding: 0;
}
.snapshot-dialog .snap-content .mock-xml-list > details {
  border-top: 0;
  padding: 0;
}
.snapshot-dialog .mock-xml-list textarea {
  height: 52vh;
  min-height: 320px;
  resize: none;
}

.history-filters-compact {
  padding: 10px 22px;
}

/* Reservation modal: compact layout */
#info-dialog .info-body:has(.res-detail) {
  padding: 12px 20px 14px;
}
.res-detail {
  gap: 10px;
}
.res-detail .records-card-heading {
  padding: 10px 16px;
  gap: 10px;
}
.res-detail .records-card-heading .eyebrow {
  font-size: 10px;
}
.res-detail .res-title {
  margin: 2px 0 0;
  font-size: 18px;
  gap: 8px;
}
.res-detail .res-summary {
  padding: 10px 16px 0;
  gap: 8px;
}
.res-detail .config-summary > div {
  padding: 8px 12px;
}
.res-detail .config-summary strong {
  margin: 3px 0 2px;
}
.res-detail .config-summary small {
  line-height: 1.3;
}
.res-detail .res-alert {
  margin: 10px 16px 0;
}
.res-detail .res-ids {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px 12px;
  padding: 10px 16px 12px;
}
.res-detail .res-ids dt {
  margin: 0;
  font-size: 11px;
}
.res-detail .res-ids dd {
  margin: 1px 0 0;
  padding-left: 8px;
  font-size: 12px;
  line-height: 1.35;
}
.res-detail .records-table th,
.res-detail .records-table td {
  padding-top: 7px;
  padding-bottom: 7px;
}
.res-detail .res-columns {
  gap: 10px;
}
.res-detail .push-result-body {
  padding: 8px 16px;
}
.res-detail .res-guest {
  padding: 6px 0;
}
.res-detail .res-timeline li {
  padding-top: 8px;
  padding-bottom: 8px;
}
#info-dialog:has(.res-detail) .record-dialog-header {
  padding: 12px 20px;
}
#info-dialog:has(.res-detail) .record-dialog-header h2 {
  font-size: 18px;
  margin-top: 3px;
}
#info-dialog:has(.res-detail) .record-dialog-footer {
  padding: 10px 20px;
}
.res-detail .records-table th,
.res-detail .records-table td {
  padding-left: 10px;
  padding-right: 10px;
}

.record-dialog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pdf-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
}
.pdf-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Reservation Inbox: resolve panel */
.res-resolve {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfd;
  padding: 12px 14px;
  margin: 0 0 12px;
  display: grid;
  gap: 10px;
}
.res-resolve-head p {
  margin: 3px 0 4px;
}
.res-action {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.res-action textarea {
  width: 100%;
}
.res-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.res-map-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 2fr);
  align-items: center;
  gap: 10px;
}
.res-resolved {
  margin: 0;
}

/* Agency modal: fixed size, tabs, grouped overview */
.agency-dialog {
  width: min(1000px, calc(100% - 30px));
}
.agency-dialog[open] {
  display: flex;
  flex-direction: column;
  height: min(88vh, 860px);
  overflow: hidden;
}
.agency-dialog .record-dialog-header {
  flex: none;
  padding: 14px 22px;
}
.agency-dialog .record-dialog-header h2 {
  font-size: 20px;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
#agency-dialog-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 22px 20px;
  overflow: hidden;
}
.ag-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}
.ag-panel {
  display: grid;
  gap: 12px;
}
.ag-panel[hidden] {
  display: none;
}
.ag-panel.ag-groups {
  display: block;
  columns: 2;
  column-gap: 12px;
}
.ag-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 12px;
  break-inside: avoid;
}
.ag-group h3 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ag-group dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.ag-group dl > div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 10px;
}
.ag-group dt {
  color: var(--muted);
  font-size: 12px;
}
.ag-group dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.ag-wide {
  column-span: all;
}
.ag-notes {
  margin: 0;
  white-space: pre-wrap;
}
@media (max-width: 800px) {
  .ag-panel.ag-groups {
    columns: 1;
  }
}

/* Agency modal → Pricing & access: three lists side by side, markups below */
#agency-dialog .access-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}
#agency-dialog .access-lists {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
#agency-dialog .access-list-row {
  flex-direction: column;
  justify-content: space-between;
}
#agency-dialog .access-list-row .compact {
  align-self: flex-start;
}
#agency-dialog #access-markups .mini-table td:first-child {
  width: 100%;
}
#agency-dialog #access-markups .mini-table select {
  width: 100%;
  min-width: 0;
  text-overflow: clip;
}
@media (max-width: 900px) {
  #agency-dialog .access-lists {
    grid-template-columns: 1fr;
  }
}
#agency-dialog .access-grid {
  padding-top: 18px;
}
#agency-dialog #access-markups .mini-table td:nth-child(2) {
  white-space: nowrap;
}

/* Small (i) icon with a tooltip on hover/focus */
.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  margin-left: 6px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  vertical-align: 1px;
  cursor: help;
}
.info-tip:hover,
.info-tip:focus-visible {
  color: var(--brand);
  border-color: var(--brand);
}
.info-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: -6px;
  top: calc(100% + 8px);
  z-index: 5;
  width: max-content;
  max-width: 230px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #23233a;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  box-shadow: 0 6px 20px #0003;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s;
}
.info-tip:hover::after,
.info-tip:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.access-chip .chip-remove {
  border: 0;
  background: transparent;
  padding: 0 0 0 4px;
  margin-left: 2px;
  font-size: 14px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.access-chip .chip-remove:hover,
.access-chip .chip-remove:focus-visible {
  color: #b42318;
}

.markups-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.markups-head .sim-heading {
  margin: 0;
}
.markup-add-button {
  padding: 6px 12px;
  border: 1px solid #ecd98a;
  border-radius: 8px;
  background: #fff7d6;
  color: #5c4500;
  font-weight: 600;
  cursor: pointer;
}
.markup-add-button:hover {
  background: #ffefb0;
}

/* Agency booking modal */
#record-dialog.booking-dialog {
  width: min(960px, calc(100% - 30px));
}
.booking-detail {
  display: grid;
  gap: 14px;
  padding-top: 16px;
  padding-bottom: 18px;
}
.booking-detail .booking-notice {
  margin: 0;
}
.bk-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.bk-tiles > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  background: #fbfbfd;
}
.bk-tiles strong {
  display: block;
  margin: 4px 0 2px;
  font-size: 15px;
}
.bk-tiles small {
  color: var(--muted);
}
.bk-grid {
  columns: 2;
  column-gap: 12px;
}
.bk-grid .ag-group {
  margin: 0 0 12px;
  break-inside: avoid;
}
.bk-grid .ag-wide {
  column-span: all;
}
.bk-rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.bk-rooms .booking-room {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}
.bk-rooms .booking-room ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.bk-grid .booking-moves {
  width: 100%;
}
@media (max-width: 800px) {
  .bk-tiles {
    grid-template-columns: 1fr;
  }
  .bk-grid {
    columns: 1;
  }
}

/* Two explicit columns of cards (no CSS columns, so spacing stays even) */
.ag-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.ag-col {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.ag-cols .ag-group,
.bk-grid .ag-group,
.ag-panel.ag-groups .ag-group {
  margin: 0;
}
.ag-panel.ag-groups {
  display: grid;
  columns: auto;
  gap: 12px;
}
.bk-grid {
  columns: auto;
  display: grid;
  gap: 12px;
}
.bk-grid .ag-wide,
.ag-panel.ag-groups .ag-wide {
  column-span: none;
}
#settings-tab-body > .records-card + .records-card {
  margin-top: 16px;
}
@media (max-width: 800px) {
  .ag-cols {
    grid-template-columns: 1fr;
  }
}

/* Booking actions dialog (cancel, no-show, requests) */
.action-dialog {
  width: min(560px, calc(100% - 30px));
}
.action-body {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.action-body p {
  margin: 0;
}
.action-money {
  margin: 0;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  background: #fbfbfd;
}
.action-money > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.action-money dt {
  color: var(--muted);
}
.action-money dd {
  margin: 0;
}
.action-check {
  margin: 0;
}
button.danger {
  background: #b42318;
  color: #fff;
  border: 1px solid #b42318;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
}
button.danger:hover {
  background: #912018;
}
.action-body .action-check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-body .action-check input {
  width: 16px;
  height: 16px;
}

.pay-form .field-grid {
  margin-bottom: 14px;
}
.pay-currencies {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.pay-webhook {
  margin: 12px 0;
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* Sign-in pages (admin, hotel, agency): background image and light text. */
.login-layout.has-bg .login-story {
  background:
    linear-gradient(180deg, rgb(10 10 40 / 0.35), rgb(10 10 40 / 0.55)),
    var(--login-bg) center / cover no-repeat;
  color: #fff;
}
.login-layout.has-bg .architecture {
  display: none;
}
.login-layout.has-bg .login-story .story-content h1,
.login-layout.has-bg .login-story .story-content p,
.login-layout.has-bg .login-story .story-title strong,
.login-layout.has-bg .login-story .story-footer,
.login-layout.has-bg .login-story .story-footer a {
  color: #fff;
}
.login-layout.has-bg .login-story .brand-logo {
  background: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  box-sizing: content-box;
  width: auto;
  max-width: 240px;
  height: auto;
}
