* {
  box-sizing: border-box;
}
:root {
  --ink: #1a2e3c;
  --muted: #73838e;
  --teal: #168577;
  --navy: #142e3c;
  --line: #e4eae9;
  --bg: #f5f7f7;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 'Segoe UI',
    Arial,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #42b7a3;
  outline-offset: 3px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  padding: 32px 20px;
  background: var(--navy);
  color: #e7eff1;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.brand small {
  display: block;
  color: #8ca8b4;
  font-size: 8px;
  letter-spacing: 1.9px;
  margin-top: 4px;
}
.brand-mark {
  width: 36px;
  height: 42px;
  border: 1px solid #54717c;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 26px;
  position: relative;
  color: #81d4bc;
}
.brand-mark span {
  position: absolute;
  bottom: 6px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #81d4bc;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #7895a2;
  margin: 52px 13px 13px;
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  border: 0;
  background: none;
  color: #a9bec8;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border-radius: 8px;
  font-size: 13px;
}
nav button.active {
  background: #294652;
  color: white;
}
nav button.active svg {
  color: #83d4bf;
}
.sidebar-note {
  margin: auto 12px 10px;
  border-top: 1px solid #2d4856;
  padding-top: 20px;
  font-size: 11px;
  color: #d2e4e7;
}
.sidebar-note p {
  font-size: 10px;
  color: #90aab7;
  margin: 6px 0;
}
.pulse {
  display: inline-block;
  background: #7ac9ac;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
}
.side-foot {
  font-size: 10px;
  color: #668792;
  margin: 20px 12px 0;
}
.workspace {
  margin-left: 230px;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 42px;
}
.breadcrumb {
  color: #8b989f;
  font-size: 12px;
}
.breadcrumb span {
  padding: 0 13px;
  color: #c1cbcc;
}
.breadcrumb strong {
  color: #52646f;
  font-weight: 500;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 19px;
}
.preview-pill {
  font-size: 9px;
  letter-spacing: 1.2px;
  background: #f1f5f4;
  padding: 5px 9px;
  border-radius: 5px;
  color: #6c7e83;
}
.avatar {
  height: 33px;
  width: 33px;
  border-radius: 50%;
  background: #e4efed;
  color: #3a726b;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 650;
}
main {
  max-width: 1550px;
  margin: auto;
  padding: 27px 42px 45px;
}
.preview-note {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  color: #8a7347;
  margin-bottom: 29px;
}
.preview-note svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 20px;
}
.eyebrow {
  font-size: 10px;
  color: #8b9b9d;
  letter-spacing: 1.8px;
  font-weight: 600;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 8px 0 9px;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 0;
}
.subtitle {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  border: 1px solid #dce4e2;
  background: white;
  color: #405761;
  padding: 9px 13px;
  border-radius: 7px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
}
.btn svg {
  width: 15px;
  height: 15px;
}
.btn.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.btn.danger {
  color: #aa5148;
  border-color: #e8cfc9;
}
.btn:hover {
  filter: brightness(0.98);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 35px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 20px;
  min-width: 0;
  position: relative;
}
.metric .label {
  font-size: 11px;
  color: #819098;
}
.metric .number {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-top: 7px;
}
.metric .hint {
  font-size: 10px;
  color: #8d9c9e;
  margin-top: 4px;
}
.metric-icon {
  float: right;
  color: #93a7aa;
  background: #f4f7f6;
  padding: 6px;
  border-radius: 7px;
}
.metric-icon svg {
  width: 16px;
  height: 16px;
}
.metric.highlight {
  background: #e9f3ef;
  border-color: #d6e9df;
}
.metric.highlight .number {
  color: #227c65;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  gap: 12px;
}
.section-head .sub {
  font-size: 11px;
  color: #8a9a9d;
}
.camp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.camp-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px;
  text-align: left;
  color: inherit;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  min-width: 0;
}
.camp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #203b4110;
  border-color: #a6c7bd;
}
.camp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.camp-top .camp-icon {
  background: #eef4f2;
  color: #63877f;
  border-radius: 9px;
  padding: 10px;
  display: grid;
}
.camp-title {
  display: flex;
  align-items: center;
  gap: 11px;
}
.camp-title small {
  display: block;
  color: #8d9b9e;
  font-size: 10px;
  margin-top: 3px;
}
.arrow {
  color: #849b9c;
  font-size: 19px;
}
.camp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 23px 0 18px;
}
.camp-stats label {
  color: #8b9b9c;
  font-size: 10px;
  display: block;
}
.camp-stats strong {
  font-size: 21px;
  font-weight: 600;
}
.camp-stats .green {
  color: #20856f;
}
.occupancy {
  border-top: 1px solid #edf1ef;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #7b9092;
  font-size: 10px;
}
.bar {
  height: 5px;
  background: #e9efec;
  border-radius: 10px;
  overflow: hidden;
  flex: 1;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: #4b9d87;
}
.camp-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  color: #7c8d91;
  font-size: 10px;
}
.camp-bottom b {
  font-weight: 500;
  color: #477666;
}
.mini-note {
  margin-top: 22px;
  padding: 16px 20px;
  display: flex;
  gap: 13px;
  border: 1px dashed #cbd9d4;
  border-radius: 10px;
  color: #7a8d8c;
  font-size: 11px;
}
.mini-note svg {
  flex-shrink: 0;
  color: #6c9990;
}
.mini-note strong {
  color: #536e69;
  font-weight: 600;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
select,
input {
  border: 1px solid #dfe7e3;
  background: #fff;
  color: #344f5c;
  border-radius: 7px;
  padding: 10px 12px;
  min-width: 0;
}
input::placeholder {
  color: #93a2a6;
}
input:focus,
select:focus {
  outline: 2px solid #87c6b5;
  outline-offset: 1px;
}
.search {
  flex: 1;
  max-width: 320px;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  background: white;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  color: #7d9195;
  background: #f9fbfa;
  font-size: 10px;
  font-weight: 600;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 14px 17px;
  border-bottom: 1px solid #eef2f0;
}
tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #fafcfb;
}
.link {
  border: 0;
  background: none;
  color: var(--teal);
  padding: 0;
  text-align: left;
}
.muted {
  color: #8e9c9e;
  font-size: 11px;
}
.pill {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 10px;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.pill.empty {
  background: #e4f3eb;
  color: #298065;
}
.pill.partial {
  background: #edf4f1;
  color: #598476;
}
.pill.full {
  background: #eaf0f4;
  color: #657f92;
}
.pill.held,
.pill.warning {
  background: #fff3dc;
  color: #977431;
}
.pill.closed {
  background: #f0f1f2;
  color: #8a9299;
}
.building-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin-bottom: 18px;
  padding-bottom: 3px;
}
.building-tab {
  border: 1px solid #dfe7e3;
  white-space: nowrap;
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 11px;
  color: #6d8589;
}
.building-tab.active {
  background: #1d7165;
  border-color: #1d7165;
  color: white;
}
.floor-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  margin: 2px 0 17px;
  border-bottom: 1px solid var(--line);
}
.floor-options {
  display: flex;
  gap: 6px;
}
.floor-options button {
  border: 0;
  background: transparent;
  padding: 6px 11px;
  color: #849497;
  border-radius: 5px;
  font-size: 12px;
}
.floor-options button.active {
  background: white;
  color: #265d53;
  box-shadow: 0 1px 4px #23423810;
}
.legend {
  display: flex;
  gap: 16px;
  color: #819194;
  font-size: 10px;
}
.legend i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #50a681;
  border-radius: 50%;
  margin-right: 5px;
}
.legend i.blue {
  background: #9fb2c4;
}
.legend i.amber {
  background: #d5af69;
}
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.room-card {
  border: 1px solid #dce6e1;
  border-radius: 10px;
  background: #fff;
  padding: 15px;
  text-align: left;
  color: inherit;
  min-height: 153px;
  transition: box-shadow 0.15s;
  position: relative;
}
.room-card.empty {
  background: #f9fdfb;
  border-color: #c8e0d2;
}
.room-card:hover {
  box-shadow: 0 4px 14px #23483812;
  border-color: #7db49e;
}
.room-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}
.room-num {
  font-size: 15px;
  font-weight: 650;
}
.room-card .muted {
  font-size: 9px;
  margin-top: 3px;
}
.beds {
  display: flex;
  gap: 7px;
  margin: 20px 0 11px;
}
.bed {
  width: 30px;
  height: 23px;
  border-radius: 4px;
  background: #e9eef3;
  color: #90a5b5;
  display: grid;
  place-items: center;
}
.bed.available {
  background: #e4f3e9;
  color: #55a57f;
}
.bed.held {
  background: #f8efdb;
  color: #cba760;
}
.bed svg {
  width: 18px;
  height: 18px;
}
.room-foot {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  font-size: 10px;
  color: #829493;
}
.room-foot strong {
  color: #4b6d62;
  font-weight: 500;
}
.empty-view {
  padding: 60px;
  text-align: center;
  color: #879b9b;
  background: #fff;
  border-radius: 10px;
  border: 1px dashed var(--line);
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
  color: #8a9b9b;
  font-size: 11px;
}
.pager div {
  display: flex;
  gap: 7px;
}
.back-btn {
  border: 0;
  background: none;
  color: #6f8c89;
  padding: 0;
  margin-bottom: 16px;
  font-size: 12px;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(560px, calc(100% - 24px));
  max-height: 90dvh;
  box-shadow: 0 25px 80px #102d3e35;
  color: var(--ink);
}
dialog::backdrop {
  background: #10283565;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 25px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font-size: 24px;
  margin: 5px 0;
}
.close-btn {
  background: #f0f4f2;
  border: 0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: #68817e;
}
.dialog-body {
  padding: 24px;
}
.dialog-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 22px;
}
.dialog-metrics div {
  padding: 12px;
  border-radius: 7px;
  background: #f4f8f6;
  color: #78908a;
  font-size: 11px;
}
.dialog-metrics strong {
  display: block;
  font-size: 22px;
  color: #356e5a;
}
.resident {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.resident .avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}
.resident-info {
  flex: 1;
  min-width: 0;
}
.resident-info b {
  font-size: 12px;
  display: block;
}
.resident-info small {
  font-size: 10px;
  color: #8a9c99;
}
.resident-actions {
  display: flex;
  gap: 5px;
}
.resident-actions button {
  border: 0;
  background: #f2f6f3;
  padding: 6px;
  border-radius: 5px;
  color: #7b9086;
  font-size: 10px;
}
.form-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.form-row > * {
  flex: 1;
  min-width: 0;
}
.dialog-body .notice {
  font-size: 11px;
  color: #927a4f;
  background: #fbf5e9;
  padding: 11px;
  border-radius: 7px;
  margin-bottom: 17px;
}
.add-person {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}
.add-person label {
  font-size: 12px;
  font-weight: 600;
}
.form-error {
  color: #ae514a;
  font-size: 12px;
  margin-top: 10px;
}
footer {
  max-width: 1550px;
  margin: auto;
  padding: 0 42px 25px;
  display: flex;
  gap: 14px;
  font-size: 9px;
  color: #9aaba9;
  letter-spacing: 1px;
}
footer span {
  letter-spacing: 0;
}
footer span:last-child {
  margin-left: auto;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #163b31;
  color: white;
  border-radius: 9px;
  padding: 13px 22px;
  font-size: 12px;
  z-index: 20;
  box-shadow: 0 5px 20px #12392925;
  display: none;
}
.toast.visible {
  display: block;
}
.loading {
  padding: 70px;
  text-align: center;
  color: #77918a;
}
@media (min-width: 1500px) {
  .camp-card {
    padding: 25px;
  }
  .camp-grid {
    gap: 20px;
  }
  .metric {
    padding: 23px;
  }
  .rooms-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 195px;
    padding: 28px 15px;
  }
  .workspace {
    margin-left: 195px;
  }
  .brand {
    font-size: 16px;
  }
  .topbar {
    padding: 0 26px;
  }
  main {
    padding: 25px 26px;
  }
  .camp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics {
    gap: 8px;
  }
  .metric {
    padding: 15px 12px;
  }
  .metric .number {
    font-size: 25px;
  }
  .metric-icon {
    display: none;
  }
  .rooms-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 740px) {
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    width: 100%;
    height: 63px;
    flex-direction: row;
    padding: 10px 16px;
    align-items: center;
    gap: 10px;
  }
  .brand small,
  .nav-label,
  .sidebar-note,
  .side-foot {
    display: none;
  }
  .brand {
    font-size: 15px;
  }
  .brand-mark {
    height: 31px;
    width: 28px;
    font-size: 21px;
  }
  .sidebar nav {
    display: flex;
    margin-left: auto;
    gap: 4px;
  }
  nav button {
    padding: 9px;
    font-size: 0;
    gap: 0;
  }
  nav svg {
    width: 20px;
    height: 20px;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 49px;
    padding: 0 18px;
  }
  .top-right {
    gap: 8px;
  }
  .avatar {
    height: 27px;
    width: 27px;
  }
  .preview-pill {
    font-size: 8px;
  }
  main {
    padding: 19px 17px 30px;
  }
  .preview-note {
    font-size: 10px;
    margin-bottom: 20px;
    align-items: flex-start;
  }
  .heading {
    align-items: flex-start;
    gap: 10px;
  }
  .eyebrow {
    font-size: 8px;
  }
  h1 {
    font-size: 25px;
  }
  .subtitle {
    font-size: 11px;
  }
  .heading .actions {
    flex-direction: column;
    align-items: flex-end;
  }
  .heading .actions .btn {
    font-size: 10px;
    padding: 8px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-bottom: 26px;
  }
  .metrics .metric:first-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .metrics .metric:first-child .number {
    grid-column: 2;
    grid-row: 1/3;
    text-align: right;
  }
  .metric {
    padding: 15px;
  }
  .metric .number {
    font-size: 28px;
    margin-top: 4px;
  }
  .metric .hint {
    font-size: 9px;
  }
  .camp-grid {
    grid-template-columns: 1fr;
  }
  .camp-card {
    padding: 20px;
  }
  .camp-stats {
    margin: 18px 0 14px;
  }
  .camp-stats strong {
    font-size: 23px;
  }
  .section-head h2 {
    font-size: 16px;
  }
  .section-head .sub {
    font-size: 10px;
  }
  .rooms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .room-card {
    padding: 12px;
    min-height: 148px;
  }
  .room-num {
    font-size: 14px;
  }
  .pill {
    font-size: 9px;
    padding: 3px 6px;
  }
  .legend {
    gap: 8px;
    font-size: 9px;
  }
  .floor-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .filters select {
    max-width: 100%;
    flex: 1;
  }
  .search {
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }
  .building-tabs {
    margin-bottom: 8px;
  }
  .building-tab {
    padding: 9px;
    font-size: 10px;
  }
  footer {
    padding: 0 17px 20px;
    font-size: 8px;
  }
  footer > span:not(:last-child) {
    display: none;
  }
  .dialog-head {
    padding: 20px;
  }
  .dialog-body {
    padding: 20px;
  }
  .form-row {
    flex-wrap: wrap;
  }
  .form-row > * {
    flex-basis: 40%;
  }
  .room-foot {
    font-size: 9px;
  }
  .beds {
    gap: 5px;
    flex-wrap: wrap;
  }
  .bed {
    width: 27px;
  }
  .mini-note {
    padding: 15px;
  }
  .toast {
    width: calc(100% - 30px);
    text-align: center;
  }
}
@media print {
  .sidebar,
  .topbar,
  .preview-note,
  .actions,
  .filters,
  .back-btn,
  footer,
  .pager {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  main {
    padding: 0;
  }
  .camp-card,
  .metric,
  .room-card {
    break-inside: avoid;
  }
  .camp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics {
    grid-template-columns: repeat(5, 1fr);
  }
  body {
    background: white;
  }
}
