:root {
  --bg: #f7f7f2;
  --surface: #fff;
  --ink: #262b27;
  --muted: #747b73;
  --line: #e5e8df;
  --orange: #b65c35;
  --olive: #607457;
  --nav: #fdfcf8;
  --radius: 8px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    13px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
button:disabled {
  cursor: default;
}
button,
a {
  touch-action: manipulation;
}
button:not(:disabled):hover,
a:hover {
  filter: brightness(0.94);
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #bc7953;
  outline-offset: 3px;
}
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}
#sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 210px;
  background: var(--nav);
  border-right: 1px solid var(--line);
  padding: 27px 14px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.brand-icon {
  font: 32px Georgia;
  color: var(--orange);
  width: 29px;
  line-height: 1;
}
.brand small {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 1.7px;
  font-weight: 400;
  color: var(--muted);
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #92988e;
  margin: 39px 13px 12px;
}
#nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  margin: 3px 0;
  border-radius: 6px;
  font-size: 12px;
  color: #666f65;
}
#nav a.active {
  color: #a3502d;
  background: #f2e8de;
  font-weight: 600;
}
#nav a.active:before {
  content: "";
  position: absolute;
  left: 0;
  height: 18px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--orange);
}
#nav .icon {
  width: 17px;
  height: 17px;
}
#nav em {
  font-size: 10px;
  font-style: normal;
  background: #e7d5c4;
  padding: 0 6px;
  border-radius: 4px;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 15px 11px 0;
  color: #697263;
  font-size: 11px;
}
.sidebar-bottom small {
  display: block;
  color: #92998b;
  font-size: 10px;
  margin-top: 4px;
}
.workspace {
  margin-left: 210px;
  min-height: 100dvh;
}
header {
  height: 60px;
  border-bottom: 1px solid var(--line);
  background: #fffefa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.breadcrumb {
  font-size: 11px;
  color: #888f84;
}
.breadcrumb span {
  margin: 0 12px;
  color: #c2c8b9;
}
.breadcrumb b {
  color: #454e41;
  font-weight: 500;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #eeede4;
  font-size: 10px;
  letter-spacing: 0.4px;
  color: #72664e;
}
main {
  padding: 24px 28px 36px;
  max-width: 1700px;
  margin: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 23px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.6px;
}
h2 {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.15px;
}
h3 {
  font-size: 12px;
  margin: 22px 0 12px;
}
p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.page-title > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.page-meta {
  font-size: 11px;
  color: var(--muted);
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}
.primary {
  background: var(--orange);
  color: white;
  border: 1px solid var(--orange);
}
.primary .icon {
  width: 15px;
  height: 15px;
}
.secondary {
  background: white;
  border: 1px solid #dfe3d7;
}
.secondary .icon {
  width: 15px;
  height: 15px;
}
.danger {
  background: #fff3ed;
  color: #a34d35;
  border: 1px solid #ebd5c9;
}
.small-button {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 10px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #e0e4d9;
  border-radius: 5px;
  width: 31px;
  height: 31px;
  flex-shrink: 0;
}
.icon-button .icon {
  width: 15px;
  height: 15px;
}
.table-action {
  font-size: 10px;
  color: #8c5b3c;
  font-weight: 500;
  padding: 5px 3px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.table-action .icon {
  width: 13px;
  height: 13px;
}
.cancel-action {
  color: #888c83;
}
.subtle-link {
  font-size: 10px;
  color: #727b6a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.subtle-link .icon {
  width: 13px;
  height: 13px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  margin-bottom: 18px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px;
}
.panel-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.count {
  font-size: 10px;
  color: #7c8573;
  font-weight: 400;
}
.operational-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #e2e6d9;
  border-radius: 7px;
  background: #f0f2e9;
  margin-bottom: 20px;
  padding: 17px 22px;
}
.operational-strip > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 0 18px;
}
.operational-strip > div:first-child {
  padding-left: 0;
}
.operational-strip > div + div {
  border-left: 1px solid #dce1d2;
}
.operational-strip strong {
  font-size: 27px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -1px;
}
.operational-strip span {
  color: #6b7563;
  font-size: 11px;
}
.operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr);
  gap: 18px;
}
.unit-board {
  padding: 0 18px 8px;
}
.unit-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  min-height: 68px;
}
.unit-line + .unit-line {
  border-top: 1px solid #f0f1eb;
}
.unit-number {
  font-size: 13px;
  color: #a3a997;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  width: 27px;
}
.unit-name {
  flex: 1;
  min-width: 0;
}
.record-link {
  font-weight: 550;
  font-size: 11px;
  text-align: left;
  line-height: 1.45;
}
.record-link:hover {
  text-decoration: underline;
  color: var(--orange);
}
.unit-name small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.unit-next {
  width: 83px;
}
.unit-next small {
  display: block;
  font-size: 9px;
  color: #8e9686;
}
.unit-next span {
  font-size: 10px;
  color: #5c6655;
}
.unit-status {
  width: 90px;
}
.state-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 500;
}
.state-tag:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.state-tag.free {
  color: #617f50;
}
.state-tag.staying {
  color: #557143;
}
.state-tag.confirmed {
  color: #5c7883;
}
.state-tag.tentative {
  color: #a47d45;
}
.state-tag.canceled,
.state-tag.completed {
  color: #8a8e85;
}
.state-tag.blocked {
  color: #7d7d74;
}
.operational-alert {
  background: #f8f7f0;
  color: #7f765d;
  font-size: 10px;
  padding: 11px 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.operational-alert .icon {
  width: 13px;
  height: 13px;
}
.operational-alert a {
  margin-left: auto;
  text-decoration: underline;
}
.segmented {
  display: flex;
  align-items: center;
  background: #f3f4ee;
  border-radius: 5px;
  padding: 3px;
  gap: 2px;
}
.segmented button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #7a8272;
  font-size: 10px;
  padding: 7px 9px;
  border-radius: 4px;
  flex: 1;
  white-space: nowrap;
}
.segmented button.selected {
  background: white;
  color: #34462b;
  box-shadow: 0 1px 3px #00000010;
  font-weight: 550;
}
.segmented button > span {
  font-size: 9px;
  color: #8c9584;
}
.today-operations > .segmented {
  margin: 0 18px;
}
.operations-list {
  padding: 5px 18px 10px;
}
.operation-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 0;
}
.operation-row + .operation-row {
  border-top: 1px solid var(--line);
}
.operation-row > div {
  flex: 1;
}
.operation-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.initial {
  display: grid;
  place-items: center;
  border: 1px solid #e7e8df;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 11px;
  background: #f9f8f2;
  color: #8e8d76;
  flex-shrink: 0;
}
.empty-state {
  padding: 28px 18px;
  text-align: center;
  font-size: 11px;
  color: #92998a;
}
.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}
th {
  padding: 10px 14px;
  font-size: 9px;
  font-weight: 500;
  color: #838c78;
  background: #f9faf6;
  white-space: nowrap;
  border-block: 1px solid #ecede6;
}
td {
  padding: 13px 14px;
  border-bottom: 1px solid #eef0e8;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.numeric {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.row-actions {
  white-space: nowrap;
  width: 60px;
  text-align: right;
}
.row-actions .table-action + .table-action {
  margin-left: 9px;
}
.due-amount {
  color: #9e603d;
  font-weight: 500;
}
.paid-text {
  color: #647b53;
  font-size: 10px;
}
.responsive-table {
  width: 100%;
  overflow: auto;
}
.finance-brief .panel-head {
  padding-bottom: 8px;
}
.period-caption {
  display: block;
  font-size: 9px;
  color: var(--muted);
  padding: 0 18px;
}
.finance-dl {
  margin: 18px;
}
.finance-dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.finance-dl dt {
  color: var(--muted);
  font-size: 11px;
}
.finance-dl dd {
  margin: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.finance-dl .cash-result {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.cash-result dd {
  font-size: 18px;
  font-weight: 600;
}
.receivables-link {
  background: #f7f6ef;
  margin: 0 12px 12px;
  padding: 13px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 5px;
  font-size: 10px;
}
.receivables-link > span {
  flex: 1;
}
.receivables-link small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 3px;
}
.receivables-link b {
  font-size: 12px;
  font-weight: 550;
}
.receivables-link .icon {
  width: 12px;
  height: 12px;
}
.filter-bar {
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-bar > select {
  width: auto;
  max-width: 200px;
}
.filter-bar > label {
  margin: 0;
  font-size: 10px;
}
.filter-bar > label input {
  width: 145px;
}
.search-field {
  position: relative;
  min-width: 200px;
  flex: 1;
  max-width: 330px;
}
.search-field .icon {
  position: absolute;
  left: 11px;
  top: 10px;
  width: 15px;
  height: 15px;
  color: #8e9883;
}
.search-field input {
  padding-left: 33px;
}
.filter-bar .date-filter {
  display: flex;
  gap: 9px;
}
.date-filter label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}
.date-filter label input {
  margin: 0;
  width: 130px;
  font-size: 10px;
}
.list-caption {
  padding: 2px 18px 13px;
  font-size: 10px;
  color: #8d9585;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.list-caption span {
  font-size: 9px;
  color: #a2a99a;
}
input,
select,
textarea {
  display: block;
  background: #fff;
  border: 1px solid #dce1d4;
  border-radius: 5px;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.4;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #d9b395;
  outline-offset: 1px;
}
select {
  padding-right: 25px;
}
input[type="date"] {
  min-width: 0;
}
label {
  display: block;
  font-size: 10px;
  color: #6b7562;
  margin-bottom: 14px;
}
label > input,
label > select,
label > textarea {
  margin-top: 6px;
}
textarea {
  min-height: 72px;
  resize: vertical;
}
.calendar-toolbar {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.period-navigation {
  display: flex;
  align-items: center;
  gap: 7px;
}
.period-navigation > b {
  margin-left: 9px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.period-navigation > b span {
  font-weight: 400;
  color: #919989;
  font-size: 10px;
}
.calendar-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}
.calendar-controls select {
  width: 155px;
}
.calendar-controls .segmented button {
  padding: 5px 9px;
}
.date-query {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px 15px;
}
.date-query label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 10px;
}
.date-query input {
  width: 137px;
  margin: 0;
  font-size: 10px;
}
.date-query > span {
  margin-left: auto;
  font-size: 10px;
  color: #959e8c;
}
.timeline-scroll {
  overflow: auto;
  border-block: 1px solid var(--line);
}
.timeline {
  display: grid;
  grid-template-columns: 145px repeat(var(--days), minmax(59px, 1fr));
  grid-template-rows: 56px;
  grid-auto-rows: 74px;
  min-width: calc(145px + var(--days) * 59px);
  position: relative;
}
.timeline-corner {
  position: sticky;
  left: 0;
  z-index: 5;
  background: #f8f9f4;
  padding: 11px 18px;
  font-size: 10px;
  border-right: 1px solid var(--line);
}
.timeline-corner small {
  display: block;
  font-size: 9px;
  color: #9ba38e;
}
.timeline-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-right: 1px solid #ecede5;
  background: #fafbf7;
  border-bottom: 1px solid var(--line);
}
.timeline-date span {
  font-size: 8px;
  color: #8f9885;
}
.timeline-date b {
  font-weight: 500;
  font-size: 13px;
}
.timeline-date.is-today {
  background: #eef1e5;
  color: #607151;
}
.timeline-date.is-today b {
  font-weight: 700;
}
.timeline-unit {
  padding: 17px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid #e8ece1;
  background: #fff;
  position: sticky;
  left: 0;
  z-index: 4;
}
.timeline-unit button {
  font-size: 11px;
  font-weight: 550;
}
.timeline-unit small {
  display: block;
  font-size: 9px;
  color: #909a83;
  margin-top: 3px;
}
.timeline-track {
  position: relative;
  border-bottom: 1px solid #e8ece1;
  min-width: 0;
}
.timeline-cells {
  display: grid;
  grid-template-columns: repeat(var(--days), 1fr);
  height: 100%;
}
.timeline-cell {
  border-right: 1px solid #eff1e8;
  width: 100%;
  height: 100%;
  position: relative;
  background: #fff;
}
.timeline-cell.is-today {
  background: #f6f8f0;
}
.timeline-cell:not(:disabled):hover {
  background: #f4e6d7;
}
.timeline-cell.in-selection {
  background: #f6e1cb;
}
.timeline-cell.in-selection:after {
  content: "+";
  font-size: 20px;
  color: #c7966b;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.booking-bar {
  position: absolute;
  top: 14px;
  height: 45px;
  text-align: left;
  overflow: hidden;
  border-radius: 4px;
  padding: 6px 10px;
  z-index: 2;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: filter 0.15s;
}
.booking-bar > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  font-weight: 550;
}
.booking-bar small {
  font-size: 8px;
  opacity: 0.75;
  display: block;
  margin-top: 2px;
}
.booking-bar.confirmed {
  background: #e5edf0;
  color: #4e6d7b;
  border-color: #ccdde2;
}
.booking-bar.staying {
  background: #76896a;
  color: #fff;
  border-color: #6b7e60;
}
.booking-bar.tentative {
  background: #faf1df;
  color: #9a783f;
  border: 1px dashed #cbb78f;
}
.booking-bar.blocked {
  color: #7b7b70;
  background: repeating-linear-gradient(
    135deg,
    #f3f2ec,
    #f3f2ec 5px,
    #eae9e1 5px,
    #eae9e1 7px
  );
  border: 1px solid #e0dfd5;
}
.calendar-key {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 9px;
  padding: 13px 18px;
  color: #89917e;
  flex-wrap: wrap;
}
.key-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.key-item:before {
  content: "";
  width: 10px;
  height: 7px;
  background: #e5edf0;
  border-radius: 2px;
  border: 1px solid #ccdde2;
}
.key-item.staying:before {
  background: #76896a;
  border-color: #76896a;
}
.key-item.tentative:before {
  background: #faf1df;
  border: 1px dashed #cbb78f;
}
.key-item.blocked:before {
  background: #eae9e1;
  border-color: #e0dfd5;
}
.selection-tray {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fafaf6;
  border-top: 1px solid var(--line);
  padding: 11px 18px;
  min-height: 55px;
  font-size: 10px;
  color: #939b88;
}
.selection-tray > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.selection-tray .icon {
  width: 14px;
  height: 14px;
}
.selection-tray > div:first-child {
  display: flex;
  gap: 12px;
  align-items: center;
}
.selection-tray b {
  color: #6d765f;
}
.query-results {
  margin-top: 22px;
}
.results-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
}
.results-label span {
  font-size: 10px;
  color: var(--muted);
}
.availability-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: white;
}
.availability-strip > div {
  padding: 15px 17px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}
.availability-strip > div + div {
  border-left: 1px solid var(--line);
}
.availability-strip b {
  font-size: 11px;
  font-weight: 550;
}
.availability-strip .table-action {
  margin-top: 3px;
}
.mobile-calendar {
  display: none;
}
.unit-management {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.managed-unit {
  padding: 21px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.managed-unit:nth-child(3n) {
  border-right: 0;
}
.managed-unit-name {
  display: flex;
  gap: 9px;
  align-items: center;
}
.managed-unit-name h2 {
  font-size: 13px;
}
.managed-unit-name .state-tag {
  margin-left: auto;
}
.managed-unit-name small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.managed-unit > p {
  font-size: 10px;
  min-height: 36px;
  margin: 17px 0;
}
.next-booking {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
}
.next-booking small {
  font-size: 9px;
  color: #959b8c;
}
.next-booking .record-link {
  font-size: 10px;
}
.guest-record {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 20px;
  text-align: left;
  width: 100%;
  border-top: 1px solid #ecede6;
}
.guest-record > div:first-of-type {
  flex: 1;
}
.guest-record b {
  font-size: 11px;
  font-weight: 550;
}
.guest-record small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.guest-record > .icon {
  width: 14px;
  height: 14px;
  color: #9ba38e;
  margin-left: 20px;
}
.guest-history-count {
  width: 200px;
}
.guest-history-count b {
  font-size: 10px;
  font-weight: 400;
}
.money-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #f9faf5;
  padding: 20px 22px;
  border-block: 1px solid var(--line);
}
.money-strip > div {
  padding: 0 22px;
}
.money-strip > div:first-child {
  padding-left: 0;
}
.money-strip > div + div {
  border-left: 1px solid #e3e7da;
}
.money-strip span {
  display: block;
  color: #818b74;
  font-size: 10px;
}
.money-strip strong {
  font-size: 25px;
  letter-spacing: -0.8px;
  font-weight: 550;
  display: block;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.money-strip small {
  display: block;
  font-size: 9px;
  color: #929a86;
  margin-top: 4px;
}
.money-strip > div:last-child strong {
  color: #5d7450;
}
.module-tabs {
  display: flex;
  gap: 24px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.module-tabs button {
  padding: 16px 0 13px;
  position: relative;
  font-size: 11px;
  color: #929b86;
  white-space: nowrap;
}
.module-tabs button.active {
  color: #4f6044;
  font-weight: 600;
}
.module-tabs button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #718265;
}
.module-tabs button span {
  padding: 1px 5px;
  background: #f1f2ec;
  border-radius: 3px;
  font-size: 9px;
  margin-left: 3px;
}
.income {
  color: #5d7b4b;
}
.outgoing {
  color: #6f7268;
}
.ledger-description b {
  font-weight: 500;
  font-size: 11px;
}
.ledger-action {
  text-align: right;
}
.table-note {
  padding: 13px 19px;
  background: #fdfdfb;
  color: #8c957e;
  font-size: 10px;
}
.cancel-review > p {
  padding: 0 18px 10px;
  font-size: 10px;
}
.cancel-review-row {
  padding: 13px 18px;
  display: flex;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.cancel-review-row > div {
  flex: 1;
}
.cancel-review-row small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.cancel-review-row > span {
  font-size: 11px;
  color: #9c6e47;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  max-width: 1040px;
}
.settings-panel dl {
  margin: 0 18px 18px;
  font-size: 11px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
}
.settings-panel dt,
.settings-panel dd {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid #eef0e7;
}
.settings-panel dt {
  color: #909985;
}
.settings-panel dd {
  color: #56614b;
}
.settings-panel dd button {
  margin-left: 6px;
}
.settings-panel > p {
  padding: 0 18px 16px;
  font-size: 11px;
}
.data-settings {
  grid-column: 1/-1;
}
.data-settings .actions {
  padding: 0 18px 20px;
}
.data-settings > .subtle-link {
  margin: 0 18px 20px;
}
.muted {
  color: #909886;
  font-size: 10px;
}
#mobile-nav {
  display: none;
}
dialog {
  border: 1px solid #dce1d4;
  border-radius: 9px;
  width: min(570px, calc(100% - 28px));
  max-height: 92dvh;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 12px 60px #22301826;
}
dialog::backdrop {
  background: #26302250;
  backdrop-filter: blur(1px);
}
dialog.drawer {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(570px, 100%);
  border-radius: 0;
  border: 0;
  border-left: 1px solid #e1e6d8;
}
#modal-content {
  padding: 0 24px 0;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 21px 0;
  position: sticky;
  top: 0;
  z-index: 5;
  background: white;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.modal-head h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
}
.modal-head .icon-button {
  border: 0;
  color: #8e9880;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: white;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  z-index: 4;
}
.form-error {
  color: #a3462b;
  background: #fff4ee;
  border: 1px solid #efcfbd;
  padding: 10px;
  font-size: 11px;
  margin-top: 13px;
  border-radius: 5px;
}
.form-error:empty {
  display: none;
}
.reservation-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #f1f3e9;
  padding: 15px 12px;
  border-radius: 5px;
  margin: 6px 0 20px;
}
.reservation-summary small {
  display: block;
  color: #8c967d;
  font-size: 8px;
}
.reservation-summary b {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-top: 5px;
}
.helper {
  font-size: 10px;
  margin: 14px 0;
  color: #909985;
}
.payment-history {
  margin-top: 21px;
}
.payment-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid #ecefe4;
  font-size: 10px;
}
.payment-line small {
  display: block;
  font-size: 9px;
  color: #949c88;
  margin-top: 3px;
}
.payment-line b {
  font-size: 11px;
  font-weight: 500;
  color: #758467;
}
.history {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
.history small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 5px;
}
.history .badge {
  font-size: 9px;
  color: #78866c;
}
.text-button {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #94613f;
}
.badge {
  font-size: 10px;
  color: #7d856e;
}
.form-hint {
  background: #f6f7ef;
  padding: 12px;
  font-size: 10px;
  color: #818d73;
  border-radius: 5px;
  margin: 10px 0;
}
.settlement-info {
  padding-bottom: 20px;
}
.settlement-info strong {
  display: block;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 10px;
}
.inline-guest {
  grid-column: 1/-1;
  margin-bottom: 16px;
}
.inline-guest input {
  font-size: 11px;
}
.inline-guest > details {
  margin-top: 9px;
  font-size: 10px;
  color: #a4714e;
}
.inline-guest summary {
  cursor: pointer;
}
.inline-guest details > div {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.inline-guest details > small {
  display: block;
  color: #70815f;
  font-size: 10px;
  margin-top: 5px;
}
.more-menu > a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.more-menu > a > span {
  flex: 1;
}
.more-menu > a > .icon:last-child {
  width: 14px;
  height: 14px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 8px);
  background: #35452c;
  color: white;
  box-shadow: 0 4px 20px #0002;
  font-size: 11px;
  padding: 12px 18px;
  border-radius: 6px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  max-width: 90%;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1500px) {
  .operations-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  }
  .lower-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .timeline {
    grid-template-columns: 165px repeat(var(--days), minmax(70px, 1fr));
  }
}
@media (max-width: 1200px) {
  #sidebar {
    width: 185px;
    padding-inline: 10px;
  }
  .workspace {
    margin-left: 185px;
  }
  .brand {
    font-size: 17px;
    gap: 8px;
  }
  .brand small {
    font-size: 7px;
  }
  main {
    padding: 22px;
  }
  .operations-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(270px, 1fr);
  }
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .finance-brief {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    padding: 12px 18px;
  }
  .finance-brief .panel-head {
    padding: 0;
    grid-column: 1;
  }
  .finance-brief > .period-caption {
    padding: 0;
    grid-column: 1;
    font-size: 8px;
  }
  .finance-dl {
    grid-column: 2;
    grid-row: 1/3;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin: 0;
  }
  .finance-dl > div {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .finance-dl .cash-result {
    border: 0;
    padding: 8px 0;
    margin: 0;
  }
  .finance-dl dt {
    font-size: 9px;
  }
  .finance-dl dd {
    font-size: 15px;
  }
  .finance-brief .receivables-link {
    grid-column: 1/-1;
    margin: 14px 0 0;
  }
  .unit-next {
    width: 64px;
  }
  .unit-line {
    gap: 8px;
  }
  .unit-management {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .managed-unit:nth-child(3n) {
    border-right: 1px solid var(--line);
  }
  .managed-unit:nth-child(2n) {
    border-right: 0;
  }
  .calendar-toolbar {
    flex-wrap: wrap;
  }
  .calendar-controls {
    margin-left: auto;
  }
  .date-query > span {
    display: none;
  }
  .operational-strip span {
    font-size: 10px;
  }
  .operational-strip > div {
    padding: 0 14px;
  }
}
@media (max-width: 900px) {
  #sidebar {
    width: 166px;
  }
  .workspace {
    margin-left: 166px;
  }
  .brand {
    font-size: 15px;
    padding: 0 7px;
    gap: 6px;
  }
  .brand-icon {
    font-size: 28px;
    width: 24px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1.4px;
  }
  #nav a {
    font-size: 11px;
    padding: 11px 10px;
    gap: 10px;
  }
  .nav-label {
    margin-top: 30px;
  }
  .operations-grid {
    grid-template-columns: 1fr;
  }
  .operational-strip {
    padding: 16px;
  }
  .operational-strip > div {
    flex-direction: column;
    gap: 5px;
    padding: 0 10px;
  }
  .operational-strip span {
    font-size: 9px;
  }
  .today-operations {
    min-height: 180px;
  }
  .operation-row {
    padding: 13px 0;
  }
  .calendar-controls {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
  .managed-unit {
    padding: 18px;
  }
  .managed-unit-name {
    flex-wrap: wrap;
  }
  .managed-unit-name .state-tag {
    margin-left: 0;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .data-settings {
    grid-column: 1;
  }
  .unit-next {
    width: 100px;
  }
  .unit-status {
    width: 110px;
  }
  .money-strip {
    padding: 18px;
  }
  .money-strip > div {
    padding: 0 15px;
  }
  .money-strip strong {
    font-size: 21px;
  }
  .money-strip small {
    font-size: 8px;
  }
}
@media (max-width: 700px) {
  #sidebar {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  header {
    height: 49px;
    padding: 0 17px;
    background: #fdfcf8;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb span {
    margin: 0 9px;
  }
  .header-right {
    font-size: 10px;
    gap: 12px;
  }
  .avatar {
    width: 25px;
    height: 25px;
    font-size: 9px;
  }
  main {
    padding: 21px 16px 95px;
  }
  .page-title {
    margin-bottom: 18px;
    gap: 10px;
    align-items: center;
  }
  h1 {
    font-size: 21px;
  }
  .page-meta {
    font-size: 10px;
  }
  .page-title .actions {
    gap: 6px;
    flex-wrap: nowrap;
  }
  .page-title .primary,
  .page-title .secondary {
    font-size: 10px;
    padding: 8px 10px;
    min-height: 36px;
  }
  .page-title .secondary .icon {
    display: none;
  }
  .page-title .actions > .secondary {
    display: none;
  }
  .page-title .icon {
    width: 14px;
    height: 14px;
  }
  .operational-strip {
    padding: 14px 13px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 17px;
  }
  .operational-strip > div {
    padding: 0 9px;
    gap: 5px;
  }
  .operational-strip > div:first-child {
    padding-left: 0;
  }
  .operational-strip strong {
    font-size: 24px;
  }
  .operational-strip span {
    font-size: 8px;
    line-height: 1.4;
  }
  .panel {
    margin-bottom: 16px;
    border-radius: 7px;
  }
  .panel-head {
    padding: 15px 14px;
  }
  .panel-head h2 {
    font-size: 12px;
  }
  .subtle-link {
    font-size: 9px;
  }
  .operations-grid {
    gap: 0;
  }
  .unit-board {
    padding: 0 14px 3px;
  }
  .unit-line {
    padding: 11px 0;
    min-height: 65px;
    gap: 8px;
  }
  .unit-number {
    font-size: 11px;
    width: 21px;
  }
  .unit-name small {
    font-size: 9px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .record-link {
    font-size: 11px;
  }
  .unit-status {
    width: 76px;
  }
  .state-tag {
    font-size: 8px;
    gap: 4px;
  }
  .state-tag:before {
    width: 4px;
    height: 4px;
  }
  .unit-next {
    width: 56px;
  }
  .unit-next small {
    font-size: 8px;
    line-height: 1.5;
  }
  .unit-next span {
    font-size: 9px;
  }
  .unit-line > .icon-button {
    width: 27px;
    height: 29px;
  }
  .unit-line > .icon-button .icon {
    width: 12px;
    height: 12px;
  }
  .operational-alert {
    font-size: 9px;
    padding: 10px 14px;
    gap: 6px;
  }
  .operational-alert .icon {
    width: 12px;
    height: 12px;
  }
  .today-operations > .segmented {
    margin: 0 14px;
  }
  .segmented button {
    padding: 7px 6px;
    font-size: 10px;
  }
  .operations-list {
    padding: 3px 14px 7px;
  }
  .operation-row {
    gap: 10px;
  }
  .operation-row small {
    font-size: 9px;
  }
  .operation-row .small-button {
    font-size: 9px;
    padding: 7px 9px;
    min-height: 33px;
  }
  .lower-grid {
    gap: 0;
  }
  .initial {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }
  .empty-state {
    font-size: 10px;
    padding: 23px 14px;
  }
  .finance-brief {
    display: block;
    padding: 0;
  }
  .finance-brief .panel-head {
    padding: 15px 14px 7px;
  }
  .finance-brief > .period-caption {
    padding: 0 14px;
    font-size: 9px;
  }
  .finance-dl {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin: 16px 14px 18px;
  }
  .finance-dl dt {
    font-size: 8px;
  }
  .finance-dl dd {
    font-size: 16px;
  }
  .finance-dl .cash-result dd {
    font-size: 18px;
  }
  .finance-brief .receivables-link {
    margin: 0 10px 10px;
    padding: 12px;
  }
  .finance-dl > div {
    padding: 0;
  }
  .finance-dl .cash-result {
    padding: 0;
  }
  .receivables-link > span {
    font-size: 9px;
  }
  .receivables-link b {
    font-size: 12px;
  }
  .responsive-table {
    overflow: visible;
  }
  .responsive-table table,
  .responsive-table tbody {
    display: block;
    width: 100%;
  }
  .responsive-table thead {
    display: none;
  }
  .responsive-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 15px 14px;
    border-top: 1px solid var(--line);
    position: relative;
  }
  .responsive-table td {
    display: block;
    padding: 0;
    border: 0;
    font-size: 10px;
    white-space: normal;
    min-width: 0;
  }
  .responsive-table td small {
    font-size: 9px;
  }
  .responsive-table td[data-label] {
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 10px;
  }
  .responsive-table td[data-label]:before {
    content: attr(data-label);
    font-size: 8px;
    color: #939d85;
    font-weight: 400;
  }
  .responsive-table td.numeric {
    text-align: left;
  }
  .reservation-table .reservation-person {
    grid-column: 1/-1;
    max-width: calc(100% - 100px);
    margin-bottom: 3px;
  }
  .reservation-table .record-link {
    font-size: 12px;
  }
  .reservation-table .reservation-state {
    position: absolute;
    right: 14px;
    top: 16px;
  }
  .reservation-table .row-actions {
    width: auto;
    grid-column: 1/-1;
    display: flex;
    justify-content: flex-end;
    margin-top: -2px;
  }
  .reservation-table .row-actions .table-action {
    font-size: 10px;
  }
  .reservation-table tr:has(.cancel-action) .row-actions {
    justify-content: space-between;
  }
  .table-action {
    min-height: 28px;
    font-size: 10px;
  }
  .filter-bar {
    padding: 14px;
    gap: 10px;
  }
  .filter-bar .search-field {
    max-width: none;
    flex-basis: 100%;
    min-width: 0;
  }
  .filter-bar > select {
    max-width: none;
    flex: 1;
    min-width: calc(50% - 10px);
    width: auto;
  }
  .filter-bar .date-filter {
    width: 100%;
    gap: 10px;
  }
  .date-filter label {
    flex: 1;
    display: block;
    font-size: 9px;
  }
  .date-filter label input {
    width: 100%;
    margin-top: 5px;
    font-size: 13px;
  }
  .filter-bar > .table-action {
    margin-left: auto;
  }
  .list-caption {
    padding: 0 14px 12px;
    font-size: 9px;
  }
  .list-caption span {
    display: none;
  }
  input,
  select,
  textarea {
    font-size: 16px;
    min-height: 41px;
    padding: 9px 10px;
  }
  .filter-bar select {
    font-size: 12px;
  }
  .filter-bar input[type="date"] {
    font-size: 13px;
  }
  .search-field .icon {
    top: 13px;
  }
  .search-field input {
    font-size: 13px;
    padding-left: 33px;
  }
  .calendar-toolbar {
    padding: 14px;
    gap: 12px;
  }
  .period-navigation {
    width: 100%;
    gap: 7px;
    justify-content: flex-start;
  }
  .period-navigation .small-button {
    font-size: 10px;
    min-height: 32px;
  }
  .period-navigation b {
    font-size: 11px;
    margin-left: auto;
  }
  .period-navigation b span {
    font-size: 9px;
  }
  .calendar-controls {
    display: block;
  }
  .calendar-controls select {
    width: 100%;
    font-size: 12px;
    min-height: 36px;
  }
  .desktop-calendar,
  .desktop-only {
    display: none !important;
  }
  .date-query {
    padding: 0 14px 14px;
    gap: 12px;
  }
  .date-query label {
    display: block;
    flex: 1;
    font-size: 9px;
  }
  .date-query input {
    font-size: 13px;
    width: 100%;
    margin-top: 5px;
    min-height: 39px;
  }
  .mobile-calendar {
    display: block;
  }
  .week-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 0 14px 14px;
  }
  .week-strip button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    min-height: 47px;
    border-radius: 5px;
    background: #f7f8f1;
    color: #8b957c;
  }
  .week-strip button small {
    font-size: 8px;
  }
  .week-strip button b {
    font-size: 13px;
    font-weight: 500;
  }
  .week-strip .selected {
    background: #7b8a6b;
    color: white;
  }
  .mobile-availability {
    padding: 0 14px;
  }
  .mobile-unit {
    position: relative;
    padding: 15px 0;
    border-top: 1px solid var(--line);
  }
  .mobile-unit > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
  }
  .mobile-unit b {
    font-size: 12px;
    font-weight: 550;
  }
  .mobile-unit > .table-action {
    position: absolute;
    right: 0;
    bottom: 10px;
    font-size: 9px;
  }
  .mobile-unit > small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    margin: 6px 88px 1px 0;
    line-height: 1.5;
  }
  .mobile-unit .state-tag {
    font-size: 9px;
  }
  .calendar-key {
    gap: 10px;
    padding: 12px 14px;
    font-size: 8px;
    background: #fcfcf8;
  }
  .key-item {
    gap: 4px;
  }
  .key-item:before {
    width: 7px;
    height: 6px;
  }
  .selection-tray {
    display: none;
  }
  .query-results {
    display: none;
  }
  .unit-management {
    grid-template-columns: 1fr;
  }
  .managed-unit {
    padding: 18px 15px;
    border-right: 0 !important;
  }
  .managed-unit-name {
    flex-wrap: nowrap;
  }
  .managed-unit-name .state-tag {
    margin-left: auto;
    font-size: 9px;
  }
  .managed-unit-name h2 {
    font-size: 13px;
  }
  .managed-unit p {
    min-height: 0;
    font-size: 10px;
    margin: 13px 0;
  }
  .managed-unit .actions {
    justify-content: space-between;
  }
  .managed-unit .small-button {
    font-size: 10px;
    min-height: 33px;
  }
  .next-booking {
    margin-bottom: 13px;
  }
  .next-booking .record-link {
    font-size: 11px;
  }
  .filter-bar > label {
    flex: 1;
    font-size: 9px;
  }
  .filter-bar > label input {
    width: 100%;
    min-width: 0;
  }
  .filter-bar > .muted {
    font-size: 9px;
    width: 100%;
  }
  .guest-record {
    padding: 15px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .guest-record .initial {
    width: 29px;
    height: 29px;
  }
  .guest-record b {
    font-size: 11px;
  }
  .guest-record small {
    font-size: 9px;
  }
  .guest-record > div:first-of-type {
    min-width: 160px;
  }
  .guest-record .guest-history-count {
    width: auto;
    flex-basis: calc(100% - 45px);
    padding-left: 39px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .guest-history-count b {
    font-size: 9px;
  }
  .guest-history-count small {
    font-size: 8px;
    margin: 0;
  }
  .guest-record > .icon {
    width: 13px;
    height: 13px;
    margin: 0;
  }
  .finance-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .finance-filters > select {
    grid-column: 1;
    max-width: none;
    width: 100%;
    font-size: 11px;
  }
  .finance-filters > .table-action {
    justify-self: end;
  }
  .money-strip {
    padding: 16px 14px;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
  }
  .money-strip > div {
    padding: 0;
    border: 0 !important;
  }
  .money-strip span {
    font-size: 9px;
  }
  .money-strip strong {
    font-size: 22px;
    margin-top: 4px;
  }
  .money-strip small {
    font-size: 8px;
  }
  .money-strip > div:last-child {
    grid-column: 1/-1;
    border-top: 1px solid #e3e7da !important;
    padding-top: 12px;
    margin-top: 3px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1px;
  }
  .money-strip > div:last-child strong {
    grid-column: 2;
    grid-row: 1/3;
    font-size: 26px;
    margin: 0;
  }
  .money-strip > div:last-child small {
    margin: 0;
  }
  .module-tabs {
    gap: 18px;
    padding: 0 14px;
  }
  .module-tabs button {
    font-size: 10px;
    padding: 14px 0 12px;
  }
  .module-tabs button span {
    font-size: 8px;
  }
  .ledger .ledger-description {
    grid-column: 1/-1;
    margin-bottom: 4px;
    max-width: calc(100% - 85px);
  }
  .ledger .ledger-description b {
    font-size: 11px;
  }
  .ledger .numeric {
    position: absolute;
    right: 14px;
    top: 15px;
  }
  .ledger .numeric:before {
    display: none !important;
  }
  .ledger .ledger-action {
    grid-column: 2;
    display: flex;
    justify-content: flex-end;
  }
  .ledger tr {
    padding-block: 15px 10px;
    gap: 7px 12px;
  }
  .ledger td[data-label] {
    font-size: 9px;
  }
  .table-note {
    padding: 12px 14px;
    font-size: 9px;
  }
  .receivable-table tr {
    gap: 8px 12px;
  }
  .receivable-table td:first-child {
    grid-column: 1/-1;
    margin-bottom: 5px;
  }
  .receivable-table td:nth-child(2) {
    grid-column: 1/-1;
  }
  .receivable-table td:nth-child(6) {
    font-size: 9px;
    color: #76836b;
  }
  .receivable-table td:nth-child(7) {
    grid-column: 2;
    display: flex;
    justify-content: flex-end;
  }
  .receivable-table .small-button {
    font-size: 10px;
    min-height: 32px;
  }
  .cancel-review > p {
    padding: 0 14px 12px;
    font-size: 10px;
  }
  .cancel-review-row {
    padding: 13px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .cancel-review-row > div {
    flex-basis: 50%;
  }
  .cancel-review-row > span {
    font-size: 10px;
  }
  .cancel-review-row .table-action {
    margin-left: auto;
  }
  .settings-grid {
    display: block;
  }
  .settings-panel dl {
    margin: 0 14px 15px;
    grid-template-columns: 1fr 1.4fr;
    font-size: 10px;
  }
  .settings-panel > p {
    padding: 0 14px 14px;
    font-size: 11px;
  }
  .settings-panel dd button {
    padding: 4px 0;
    margin: 4px 0 0;
  }
  .data-settings .actions {
    padding: 0 14px 18px;
    gap: 8px;
  }
  .data-settings > .subtle-link {
    margin: 0 14px 20px;
  }
  .data-settings .primary,
  .data-settings .secondary,
  .data-settings .danger {
    font-size: 10px;
    min-height: 38px;
  }
  #mobile-nav {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #fffefa;
    border-top: 1px solid #e1e5d8;
    padding: 9px 4px max(10px, env(safe-area-inset-bottom));
    height: calc(65px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px #00000003;
  }
  #mobile-nav > a,
  #mobile-nav > button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: #8c977f;
    font-size: 9px;
    min-width: 58px;
    min-height: 44px;
  }
  #mobile-nav .icon {
    width: 19px;
    height: 19px;
  }
  #mobile-nav .active {
    color: #a85c36;
  }
  dialog {
    max-height: 95dvh;
    width: calc(100% - 20px);
    border-radius: 9px;
  }
  dialog.drawer {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
  }
  #modal-content {
    padding: 0 18px;
  }
  .modal-head {
    padding: 17px 0;
    margin-bottom: 18px;
  }
  .modal-head h2 {
    font-size: 17px;
  }
  .modal-head .icon-button {
    width: 34px;
    height: 34px;
  }
  .form-grid {
    gap: 0 12px;
  }
  .form-grid label {
    font-size: 10px;
  }
  .form-grid input,
  .form-grid select {
    font-size: 16px;
    min-height: 43px;
  }
  .reservation-summary {
    grid-template-columns: 1fr 1fr;
    gap: 13px 10px;
    padding: 14px;
    margin: 3px 0 18px;
  }
  .reservation-summary small {
    font-size: 9px;
  }
  .reservation-summary b {
    font-size: 14px;
    margin-top: 4px;
  }
  .inline-guest input {
    font-size: 16px;
  }
  .inline-guest > details {
    font-size: 10px;
  }
  .modal-footer {
    padding: 14px 0 max(14px, env(safe-area-inset-bottom));
    gap: 10px;
  }
  .modal-footer button {
    min-height: 42px;
    padding: 9px 15px;
    font-size: 12px;
  }
  .helper,
  .form-hint {
    font-size: 10px;
  }
  .form-error {
    font-size: 11px;
  }
  .history {
    font-size: 10px;
    line-height: 1.6;
  }
  #toast {
    bottom: 85px;
    max-width: calc(100% - 30px);
    font-size: 11px;
    padding: 11px 15px;
  }
  .payment-line {
    font-size: 10px;
  }
  .payment-line b {
    font-size: 12px;
  }
}
@media (max-width: 360px) {
  main {
    padding-inline: 12px;
  }
  .unit-next {
    display: none;
  }
  .unit-status {
    width: 80px;
  }
  .page-title .primary {
    font-size: 9px;
    padding: 8px;
  }
  .operational-strip span {
    font-size: 7px;
  }
  .module-tabs {
    gap: 13px;
  }
  .module-tabs button {
    font-size: 9px;
  }
  .guest-record > div:first-of-type {
    min-width: 130px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Operational text stays legible at normal desktop density. */
@media (min-width: 701px) {
  #nav a {
    font-size: 13px;
  }
  .record-link,
  table {
    font-size: 12px;
  }
  th {
    font-size: 10px;
  }
  .state-tag {
    font-size: 10px;
  }
  .unit-name small {
    font-size: 11px;
  }
  .booking-bar > span {
    font-size: 11px;
  }
  .booking-bar small {
    font-size: 9px;
  }
  .timeline-date span {
    font-size: 9px;
  }
  .timeline-unit button {
    font-size: 12px;
  }
  .ledger-description b {
    font-size: 12px;
  }
  .guest-record b {
    font-size: 12px;
  }
  .panel-head h2 {
    font-size: 14px;
  }
  .page-meta {
    font-size: 12px;
  }
  .filter-bar input,
  .filter-bar select {
    font-size: 12px;
  }
  .operational-strip span {
    font-size: 12px;
  }
  .operational-strip > div {
    align-items: center;
  }
  .unit-status {
    width: 98px;
  }
}
.mobile-range {
  display: none;
}
@media (max-width: 700px) {
  .desktop-range {
    display: none;
  }
  .mobile-range {
    display: block;
  }
}
dialog.drawer {
  max-width: 100vw;
}
.record-link,
.guest-record b,
.ledger-description {
  overflow-wrap: anywhere;
}
/* Presentation finishing: the established layout and palette are retained. */
:root {
  --muted: #626e5b;
}
.page-meta,
.period-caption,
.muted,
.nav-label,
.unit-number,
.unit-name small,
.unit-next small,
.unit-next span,
.record-link + small,
th,
td small,
.table-note,
.list-caption,
.list-caption span,
.empty-state,
.money-strip span,
.money-strip small,
.finance-dl dt,
.receivables-link small,
.guest-record small,
.next-booking small,
.managed-unit-name small,
.timeline-corner small,
.timeline-date span,
.timeline-unit small,
.calendar-key,
.date-query > span,
.segmented button,
.segmented button > span,
.responsive-table td[data-label]:before,
.form-hint,
.helper,
.payment-line small,
.reservation-summary small,
.settings-panel dt,
.sidebar-bottom small {
  color: #65715c;
}
.state-tag.free,
.state-tag.staying,
.paid-text {
  color: #4f693e;
}
.state-tag.confirmed {
  color: #486774;
}
.state-tag.tentative {
  color: #886127;
}
.state-tag.canceled,
.state-tag.completed,
.state-tag.blocked {
  color: #62675e;
}
.calendar-key,
.reservation-summary small,
.unit-next small,
.timeline-date span,
.timeline-unit small,
.list-caption span,
.receivables-link small,
.managed-unit-name small {
  font-size: 10px;
}
.today-operations {
  align-self: start;
  min-height: 230px;
  display: flex;
  flex-direction: column;
}
.today-operations .operations-list {
  flex: 1;
}
.today-operations .operations-list.is-sparse {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 112px;
}
.br-date {
  display: flex;
  align-items: stretch;
  position: relative;
  width: 100%;
  min-width: 0;
  margin-top: 6px;
  border: 1px solid #dce1d4;
  border-radius: 5px;
  background: #fff;
}
.br-date:focus-within {
  outline: 2px solid #d9b395;
  outline-offset: 1px;
}
.br-date .br-date-display {
  border: 0;
  border-radius: 5px 0 0 5px;
  width: 100%;
  min-width: 0;
  padding: 8px 7px 8px 10px;
  margin: 0;
  outline: none;
}
.br-date .br-date-display::placeholder {
  color: #72796e;
  opacity: 1;
  font-size: 11px;
}
.br-date-display[aria-invalid="true"] {
  color: #9b4530;
}
.br-date-toggle {
  flex-shrink: 0;
  width: 32px;
  padding: 0 6px;
  color: #65715c;
  display: grid;
  place-items: center;
  border-radius: 0 5px 5px 0;
}
.br-date-toggle:hover {
  background: #f2f4eb;
}
.br-date-toggle .icon {
  width: 15px;
  height: 15px;
}
.date-query .br-date {
  width: 148px;
  margin-top: 0;
}
.date-filter .br-date {
  width: 145px;
  margin-top: 0;
}
.date-query .br-date input,
.date-filter .br-date input {
  width: 100%;
}
.filter-bar > label .br-date {
  width: 155px;
}
#br-date-picker {
  margin: auto;
  width: min(352px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 32px);
  padding: 18px;
  border-radius: 9px;
  overflow-y: auto;
}
.br-picker-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13px;
}
.br-picker-navigation {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 74px 30px;
  gap: 6px;
  align-items: center;
}
.br-picker-navigation select {
  padding: 7px 5px;
  font-size: 12px;
  min-width: 0;
}
.br-picker-navigation .icon-button {
  width: 30px;
  height: 34px;
}
.br-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  padding: 13px 0 10px;
}
.br-days > span {
  font-size: 10px;
  text-align: center;
  color: #66725e;
  padding: 6px 0;
}
.br-days > button {
  display: grid;
  place-items: center;
  min-height: 35px;
  font-size: 12px;
  border-radius: 4px;
}
.br-days > button:not(:disabled):hover {
  background: #f0e6dc;
}
.br-days > button.is-today {
  box-shadow: inset 0 0 0 1px #8c9a7c;
}
.br-days > button.is-selected {
  background: #b65c35;
  color: white;
}
.br-days > button:disabled {
  color: #aab0a3;
}
.br-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.br-picker-footer > span {
  font-size: 10px;
  color: #65715c;
}
@media (max-width: 700px) {
  .state-tag,
  .calendar-key,
  .unit-name small,
  .unit-next small,
  .unit-next span,
  .reservation-summary small,
  .receivables-link small,
  .table-note,
  .mobile-unit > small,
  .responsive-table td[data-label]:before,
  .operation-row small,
  .money-strip small,
  .list-caption,
  .guest-record small,
  .period-caption {
    font-size: 10px;
  }
  .today-operations {
    min-height: 0;
  }
  .today-operations .operations-list.is-sparse {
    min-height: 100px;
  }
  .date-query label .br-date,
  .date-filter label .br-date,
  .filter-bar > label .br-date {
    width: 100%;
    margin-top: 5px;
  }
  .date-query .br-date input,
  .date-filter .br-date input {
    font-size: 14px;
  }
  .br-date-toggle {
    width: 30px;
    min-height: 40px;
  }
  .br-picker-navigation select {
    font-size: 13px;
  }
  .br-days > button {
    min-height: 38px;
    font-size: 14px;
  }
  .mobile-unit > small {
    margin-right: 90px;
  }
}
.breadcrumb,
.subtle-link,
.operational-strip span,
.week-strip button {
  color: #65715c;
}
.booking-bar.staying,
.week-strip .selected {
  background: #667b58;
  color: #fff;
}
.booking-bar small {
  opacity: 1;
}
