/* Shared interface rules copied from the user-approved jindi-ops UI.
   Only selector aliases adapt the diary app structure; no business data or code is imported. */
:root {
  --tblr-primary: #066fd1;
  --tblr-primary-rgb: 6, 111, 209;
  --tblr-font-sans-serif:
    Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  --ink: #182433;
  --line: #e5e9ef;
  --blue-bg: #eaf3fe;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: #f6f8fb;
  font-family: var(--tblr-font-sans-serif);
  font-size: 14px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #90c0f4;
  outline-offset: 3px;
}
.ti {
  font-size: 20px;
  vertical-align: middle;
}
.shell {
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 10px 36px;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: var(--ink);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: 0.4px;
}
.brand-icon {
  width: 40px;
  height: 42px;
  border-radius: 10px;
  background: var(--blue-bg);
  color: var(--tblr-primary);
  display: grid;
  place-items: center;
}
.brand-icon .ti {
  font-size: 27px;
}
.brand small {
  display: block;
  color: #8993a3;
  font-size: 11px;
  font-weight: 450;
  letter-spacing: 1.5px;
  margin-top: 3px;
}
.nav-caption {
  font-size: 11px;
  color: #9ba4b2;
  letter-spacing: 1px;
  margin: 4px 14px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  background: none;
  border-radius: 7px;
  text-align: left;
  gap: 11px;
  color: #566171;
  margin-bottom: 5px;
  font-weight: 550;
}
.nav-item.selected {
  background: var(--blue-bg);
  color: var(--tblr-primary);
}
.nav-end {
  margin-left: auto;
  font-size: 11px;
}
.nav-end .ti {
  font-size: 15px;
}
.sidebar-note {
  display: flex;
  gap: 8px;
  color: #8893a2;
  font-size: 11px;
  line-height: 1.8;
  margin: 24px 10px;
}
.sidebar-note .ti {
  font-size: 17px;
}
.sidebar-note small {
  display: block;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-bottom > button {
  background: none;
  border: 0;
  color: #687588;
  padding: 12px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.account {
  margin: 12px 6px 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 12px;
}
.account small {
  display: block;
  font-size: 10px;
  color: #8c96a3;
  margin-top: 3px;
}
.avatar {
  background: #edf2f8;
  color: #58708c;
}
.workspace {
  margin-left: 224px;
}
.topbar {
  height: 67px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.breadcrumb-label {
  font-size: 12px;
  color: #9aa3af;
  display: flex;
  align-items: center;
  gap: 14px;
}
.breadcrumb-label strong {
  font-weight: 450;
  color: #526071;
}
.breadcrumb-label .ti {
  font-size: 13px;
}
.demo-label {
  color: #788596;
  font-size: 11px;
}
.icon-btn {
  width: 33px;
  height: 33px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: #748297;
  border-radius: 6px;
  padding: 0;
}
.icon-btn:hover {
  background: #f2f5f9;
  color: var(--ink);
}
.menu-button {
  display: none;
}
.main {
  max-width: 1700px;
  margin: 0 auto;
  padding: 26px 32px 16px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.1px;
  color: #929cad;
  margin-bottom: 4px;
  display: block;
}
h1 {
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  font-weight: 650;
  margin: 0;
}
.page-head p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #8792a1;
}
.btn {
  gap: 7px;
  box-shadow: none;
  min-height: 35px;
  font-weight: 500;
}
.new-button {
  height: 39px;
  padding-inline: 17px;
  border-radius: 6px;
}
.new-button .ti {
  font-size: 17px;
}
.card {
  border-color: var(--line);
  box-shadow: 0 1px 2px #18243303;
  border-radius: 9px;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  color: #a3adba;
  font-size: 10px;
  margin-top: 25px;
  padding-bottom: 8px;
}
.mobile-room-list,
.mobile-nav {
  display: none;
}
.card-footer {
  font-size: 11px;
}
.booking-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0;
  width: 480px;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: #fff;
  color: var(--ink);
  box-shadow: -12px 0 50px #1a2f4e14;
  overflow: hidden;
}
.booking-dialog[open] {
  display: flex;
  flex-direction: column;
}
.booking-dialog::backdrop {
  background: #152c484d;
  backdrop-filter: blur(1px);
}
.sheet-header {
  padding: 23px 25px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.sheet-header h2 {
  font-size: 22px;
  margin: 0;
  font-weight: 650;
}
.sheet-body {
  padding: 24px 25px;
  overflow: auto;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
}
.booking-dialog .form-control {
  min-height: 42px;
  border-color: #dce3ec;
  border-radius: 6px;
  font-size: 14px;
}
.booking-dialog .form-control:focus {
  border-color: #85b7ed;
  box-shadow: 0 0 0 3px #066fd114;
}
.sheet-actions {
  border-top: 1px solid var(--line);
  padding: 17px 25px;
  background: #fff;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  flex-shrink: 0;
}
.sheet-actions > .btn {
  width: 100%;
  min-height: 43px;
}
.sheet-actions > span {
  width: 100%;
  font-size: 11px;
  color: #75849a;
  margin-bottom: 2px;
}
.sheet-actions > small {
  font-size: 10px;
  color: #9ca8b7;
  text-align: center;
}
.nav-scrim {
  display: none;
}
@media (min-width: 1600px) {
  .main {
    padding: 30px 46px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 195px;
  }
  .workspace {
    margin-left: 195px;
  }
  .topbar {
    padding: 0 22px;
  }
  .main {
    padding: 24px 22px 16px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 180px;
    padding-inline: 10px;
  }
  .brand {
    margin-inline: 7px;
    font-size: 18px;
  }
  .workspace {
    margin-left: 180px;
  }
}
@media (max-width: 767px) {
  .sidebar {
    transform: translateX(-100%);
    width: 230px;
    transition: transform 0.18s ease;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: #102b4555;
    z-index: 25;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    padding: 0 16px;
    height: 56px;
  }
  .menu-button {
    display: inline-grid;
  }
  .topbar > div {
    gap: 8px;
  }
  .breadcrumb-label {
    font-size: 11px;
    gap: 8px;
  }
  .breadcrumb-label > strong,
  .breadcrumb-label > .ti {
    display: none;
  }
  .demo-label {
    font-size: 10px;
  }
  .main {
    padding: 23px 16px 90px;
  }
  .page-head {
    margin-bottom: 19px;
    align-items: center;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .page-head p {
    font-size: 11px;
    margin-top: 5px;
  }
  .page-head .eyebrow {
    display: none;
  }
  .new-button {
    font-size: 12px;
    height: 36px;
    padding-inline: 11px;
  }
  .new-button .ti {
    font-size: 15px;
  }
  .workspace-footer {
    font-size: 9px;
    gap: 10px;
  }
  .mobile-nav {
    display: flex;
    justify-content: space-around;
    position: fixed;
    inset: auto 0 0 0;
    background: #fffffff5;
    backdrop-filter: blur(10px);
    border-top: 1px solid #e6ebf2;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 15;
  }
  .mobile-nav a {
    border: 0;
    background: none;
    color: #929daf;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
    padding: 2px 25px;
  }
  .mobile-nav a.active {
    color: var(--tblr-primary);
  }
  .mobile-nav .ti {
    font-size: 21px;
  }
  .booking-dialog {
    width: 100vw;
    max-width: 100vw;
    border: 0;
  }
  .sheet-header {
    padding: 18px 20px;
  }
  .sheet-header h2 {
    font-size: 23px;
  }
  .sheet-body {
    padding: 21px 20px;
  }
  .sheet-actions {
    padding: 14px 20px max(18px, env(safe-area-inset-bottom));
  }
  .booking-dialog .form-control {
    font-size: 16px;
    min-height: 43px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 767px) {
  .booking-dialog {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
  }
  .quantity-row small,
  .stay-hint,
  .sheet-actions > small {
    font-size: 11px;
  }
}
.metric-card {
  padding: 20px;
  gap: 12px;
  min-width: 0;
}
.metric-card > span {
  font-size: 12px;
  color: #66758a;
}
.metric-card > strong {
  font-size: 22px;
  font-weight: 600;
  color: #182433;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}
.metric-card > small {
  color: #8490a1;
  font-size: 11px;
}
@media (max-width: 767px) {
  .metric-card {
    padding: 14px;
    gap: 9px;
  }
  .metric-card > strong {
    font-size: 18px;
  }
  .mobile-nav a {
    padding: 2px 18px;
  }
}

.card-header {
  gap: 12px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 767px) {
  .heading-actions {
    gap: 7px;
  }
  .heading-actions > .btn {
    padding: 8px 10px;
    font-size: 12px;
  }
}
body.sheet-open { overflow: hidden; }

@media (max-width: 767px) {
  .sidebar:not(.is-open) { visibility: hidden; }
  .topbar { height: 44px; }
  .main { padding: 18px 16px 100px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 18px; }
  .page-head h1 { font-size: 24px; }
  .page-head p { color: #5b6e85; font-size: 13px; }
  .heading-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .heading-actions.context-unneeded-actions { display: none; }
  .heading-actions .btn { width: 100%; height: 44px; font-size: 15px; }
  .form-control, .form-select, .order-toolbar .form-select { font-size: 16px; min-height: 46px; }
  .form-label, .form-section .form-label, .optional-fields .form-label { font-size: 14px; color: #31475f; }
  .form-select { padding-right: 30px; }
  .mobile-nav { min-height: 66px; height: auto; padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav a { flex: 1; min-width: 0; min-height: 58px; padding: 6px 0; font-size: 13px; }
  .sheet-header { padding: 8px 16px; align-items: center; }
  .sheet-header .eyebrow { display: none; }
  .sheet-header h2 { font-size: 21px; }
  .sheet-header .icon-btn { min-width: 44px; min-height: 44px; }
  .sheet-body { padding: 18px 16px; }
  .sheet-actions { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .sheet-actions > .btn { font-size: 15px; min-height: 46px; }
  .sheet-actions > small { font-size: 12px; line-height: 1.5; }
  .sheet-actions .text-link { min-height: 36px; font-size: 13px; }
  .metric-card { padding: 14px; }
  .metric-card > span { color: #4a6078; font-size: 13px; }
  .metric-card > strong { font-size: 20px; margin: 8px 0; overflow-wrap: anywhere; }
  .metric-card > small { color: #62758b; font-size: 11px; }
}

@media (min-width: 1000px) { .booking-dialog.bill-dialog { width: min(1160px, 95vw); max-width: 95vw; } }
