:root {
  --landlord-page-top: #e6f4ff;
  --landlord-page-bottom: #f7fbff;
  --landlord-card: #fff;
  --landlord-soft: #f7fbfe;
  --landlord-ink: #0d1b36;
  --landlord-secondary: #4e6687;
  --landlord-muted: #8ca1ba;
  --landlord-primary: #1269fe;
  --landlord-primary-soft: #e8f2ff;
  --landlord-cyan: #20c7c7;
  --landlord-success: #16b974;
  --landlord-success-soft: #ddf8ec;
  --landlord-warning: #ff9d3d;
  --landlord-warning-soft: #fff1d9;
  --landlord-danger: #ff4d5e;
  --landlord-danger-soft: #fff0f2;
  --landlord-purple: #7c5cff;
  --landlord-border: #ddeaf6;
  --landlord-divider: #eaf1f7;
  --landlord-shadow: 0 5px 18px rgba(48, 104, 146, 0.08);
}

html,
body {
  min-height: 100%;
}

body {
  color: var(--landlord-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: #d8efff;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.admin-app {
  width: min(100%, 390px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: clip;
  border-radius: 0;
  color: var(--landlord-ink);
  background:
    radial-gradient(circle at 78% 6%, rgba(116, 184, 255, 0.2), transparent 26%),
    linear-gradient(180deg, var(--landlord-page-top), var(--landlord-page-bottom));
  box-shadow: 0 0 50px rgba(37, 95, 153, 0.16);
}

.admin-header {
  position: absolute;
  z-index: 15;
  height: 36px;
  padding: 9px 38px 3px;
  background: transparent;
  color: var(--landlord-ink);
  font-size: 11px;
}

.admin-header .time {
  font-size: 12px;
  font-weight: 700;
}

.dynamic-island {
  visibility: visible !important;
  width: 76px;
  height: 23px;
  border-radius: 999px;
  background: #050505;
}

.admin-header .device-signal {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 2px;
  height: 14px;
}

.admin-header .device-signal i {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: currentColor;
}

.admin-header .device-signal i:nth-child(1) { height: 4px; }
.admin-header .device-signal i:nth-child(2) { height: 6px; }
.admin-header .device-signal i:nth-child(3) { height: 8px; }

.admin-header .device-signal b {
  margin: 0 2px;
  font-size: 12px;
  line-height: 9px;
  transform: rotate(-12deg);
}

.admin-header .device-signal em {
  position: relative;
  display: block;
  width: 18px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.admin-header .device-signal em::before {
  position: absolute;
  inset: 1px;
  border-radius: 1px;
  background: currentColor;
  content: "";
}

.admin-header .device-signal em::after {
  position: absolute;
  top: 2px;
  right: -3px;
  width: 2px;
  height: 3px;
  background: currentColor;
  content: "";
}

.admin-page {
  min-height: max(100dvh, 801px);
  padding: 0;
}

.landlord-page-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 91px;
  padding: 39px 18px 7px;
}

.landlord-page-header > div:first-child {
  min-width: 0;
}

.landlord-page-header h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 29px;
  letter-spacing: 0;
}

.landlord-page-header p {
  margin: 0;
  color: var(--landlord-secondary);
  font-size: 9px;
  line-height: 14px;
}

.landlord-icon-button,
.landlord-back {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--landlord-ink);
  font-size: 25px;
}

.landlord-page-header > .landlord-back {
  position: absolute;
  top: 42px;
  left: 14px;
}

.landlord-page-header:has(.landlord-back) > div:first-child {
  width: 100%;
  text-align: center;
}

.landlord-page-body {
  padding: 0 15px 12px;
}

.dashboard-body {
  padding-top: 2px;
  padding-bottom: 0;
}

.dashboard-greeting {
  position: relative;
  height: 88px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--landlord-shadow);
}

.dashboard-greeting > picture,
.dashboard-greeting > img {
  position: absolute;
  left: auto;
  top: 0;
  right: 0;
  display: block;
  width: 47%;
  height: 100%;
  max-width: 47%;
  max-height: 100%;
  overflow: hidden;
  line-height: 0;
}

.dashboard-greeting > picture > img,
.dashboard-greeting > img {
  position: absolute;
  left: 0;
  inset: 0;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}

.dashboard-greeting > div {
  position: relative;
  z-index: 2;
  width: 69%;
  padding: 15px 13px;
}

.dashboard-greeting strong,
.dashboard-greeting span,
.dashboard-greeting small {
  display: block;
}

.dashboard-greeting strong {
  font-size: 16px;
  line-height: 23px;
}

.dashboard-greeting span,
.dashboard-greeting small {
  margin-top: 3px;
  color: var(--landlord-secondary);
  font-size: 9px;
  line-height: 14px;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.dashboard-kpis.occupancy {
  height: 89px;
  margin-top: 10px;
}

.dashboard-kpis.finance {
  height: 80px;
  margin-top: 8px;
}

.dashboard-kpi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--landlord-shadow);
}

.dashboard-kpi small,
.dashboard-kpi strong {
  display: block;
}

.dashboard-kpi small {
  color: var(--landlord-secondary);
  font-size: 10px;
  line-height: 15px;
  white-space: nowrap;
}

.dashboard-kpi strong {
  margin-top: 7px;
  overflow: hidden;
  font-size: 20px;
  line-height: 27px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-kpi strong i {
  margin-left: 3px;
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
}

.dashboard-kpi.primary strong { color: var(--landlord-primary); }
.dashboard-kpi.success strong { color: #137d68; }
.dashboard-kpi.warning strong { color: #ff6b20; }
.dashboard-kpi.muted strong { color: #243b60; }

.dashboard-card {
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--landlord-shadow);
}

.dashboard-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding: 7px 12px 3px;
}

.dashboard-card-head h2 {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

.dashboard-card-head span {
  color: var(--landlord-secondary);
  font-size: 9px;
}

.dashboard-todo {
  height: 123px;
  margin-top: 8px;
  overflow: hidden;
}

.dashboard-todo .todo-list {
  height: 89px;
  margin: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-width: none;
}

.dashboard-todo .todo-list::-webkit-scrollbar { display: none; }

.dashboard-todo .todo-row {
  min-height: 18px;
  padding: 2px 11px;
  border: 0;
  font-size: 9px;
  line-height: 14px;
}

.dashboard-todo .todo-row b {
  font-size: 9px;
}

.dashboard-todo .todo-row > span:last-child {
  font-size: 13px;
}

.dashboard-quick {
  height: 79px;
  margin-top: 8px;
  padding: 8px 8px 6px;
}

.dashboard-quick .quick-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.quick-action {
  min-width: 0;
  gap: 4px;
  color: var(--landlord-ink);
}

.quick-action span {
  width: 37px;
  height: 37px;
  border-radius: 9px;
  background: linear-gradient(145deg, #4d99ff, #1269fe);
  color: #fff;
  box-shadow: 0 5px 12px rgba(18, 105, 254, 0.2);
  font-size: 20px;
}

.quick-action:nth-child(2) span { background: linear-gradient(145deg, #46d8d7, #16b9bd); }
.quick-action:nth-child(3) span { background: linear-gradient(145deg, #ffb958, #ff8a23); }
.quick-action:nth-child(4) span { background: linear-gradient(145deg, #48d5bf, #16a982); }

.quick-action small {
  overflow: hidden;
  font-size: 8px;
  line-height: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-chart {
  height: 158px;
  margin-top: 9px;
  overflow: hidden;
}

.dashboard-chart .trend-chart {
  height: 116px;
  margin: 2px 9px 0;
  padding: 10px 5px 0;
  background: transparent;
}

.dashboard-chart .trend-col span {
  width: 22px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #75b5ff, #3f8eff);
}

.dashboard-chart .trend-col small {
  font-size: 8px;
}

.properties-body {
  padding-top: 2px;
}

.filter-pills {
  height: 38px;
  gap: 7px;
  padding: 0 1px 7px;
}

.filter-pill {
  min-width: 61px;
  height: 31px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--landlord-secondary);
  font-size: 10px;
}

.filter-pill:first-child,
.filter-pill.active {
  border-color: #a7ccfb;
  background: #fff;
  color: var(--landlord-primary);
}

.filter-pill b {
  font-size: 9px;
}

.property-search-state {
  width: 100%;
  height: 28px;
  margin-bottom: 6px;
  border: 1px solid #b9d7fb;
  border-radius: 8px;
  background: #f7fbff;
  color: var(--landlord-primary);
  font-size: 9px;
}

.property-search-state span {
  float: right;
}

.property-list {
  display: grid;
  align-content: start;
  gap: 7px;
  height: 527px;
  margin-top: 7px;
  overflow-y: auto;
  padding-bottom: 66px;
  scrollbar-width: none;
}

.property-list::-webkit-scrollbar { display: none; }

.property-row {
  position: relative;
  flex: 0 0 auto;
  grid-template-columns: 73px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 109px;
  padding: 10px 9px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--landlord-shadow);
}

.property-row > img {
  width: 73px;
  height: 87px;
  border-radius: 8px;
  object-fit: cover;
}

.property-row strong {
  font-size: 13px;
  line-height: 19px;
}

.property-row small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--landlord-secondary);
  font-size: 9px;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-row small i {
  color: var(--landlord-primary);
  font-style: normal;
}

.property-row .property-deposit-status {
  color: #b95a20;
  font-weight: 700;
}

.property-row .property-deposit-status.is-paid {
  color: #078b69;
}

.property-row .property-deposit-status.is-adjusting {
  color: #b95a20;
}

.property-row > em {
  padding: 4px 7px;
  border-radius: 7px;
  color: #079b65;
  background: var(--landlord-success-soft);
  font-size: 9px;
}

.property-row > em.status-vacant { color: var(--landlord-primary); background: var(--landlord-primary-soft); }
.property-row > em.status-expiring { color: #df7818; background: var(--landlord-warning-soft); }
.property-row > em.status-disabled { color: #77869c; background: #edf1f5; }

.property-action {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 76px;
  height: 30px;
  padding: 6px 12px;
  border: 1px solid var(--landlord-primary);
  border-radius: 8px;
  background: #fff;
  color: var(--landlord-primary);
  font-size: 10px;
  text-align: center;
}

.property-empty {
  min-height: 180px;
  background: rgba(255, 255, 255, 0.7);
}

.floating-action {
  position: absolute;
  right: 0;
  bottom: 77px;
  left: 0;
  z-index: 7;
  width: 200px;
  height: 48px;
  margin: auto;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #3c8cff, #1269fe);
  box-shadow: 0 9px 22px rgba(18, 105, 254, 0.25);
  font-size: 13px;
}

.billing-kit-body {
  padding-top: 0;
}

.billing-month-selector {
  margin-top: 6px;
  margin-bottom: 7px;
}

.billing-room-selector {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 56px;
  padding: 6px 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--landlord-ink);
  text-align: left;
  box-shadow: var(--landlord-shadow);
}

.billing-room-selector img {
  width: 48px;
  height: 43px;
  border-radius: 7px;
  object-fit: cover;
}

.billing-room-selector strong,
.billing-room-selector small {
  display: block;
}

.billing-room-selector strong {
  font-size: 12px;
  line-height: 18px;
}

.billing-room-selector small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--landlord-secondary);
  font-size: 8px;
  line-height: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-room-selector > b {
  font-size: 17px;
}

.billing-no-room {
  height: 56px;
  padding: 19px 8px;
}

.billing-month-selector {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px 34px;
  align-items: center;
  height: 46px;
  padding: 4px 0;
}

.billing-month-selector button {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--landlord-ink);
  font-size: 19px;
}

.billing-month-selector button:last-child {
  justify-self: end;
  border-radius: 7px;
  background: transparent;
  font-size: 14px;
}

.billing-month-selector strong {
  font-size: 15px;
  line-height: 22px;
  text-align: center;
}

.billing-utility-card {
  position: relative;
  min-height: 184px;
  height: auto;
  padding: 10px 11px 8px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--landlord-shadow);
}

.billing-utility-card + .billing-utility-card {
  margin-top: 7px;
}

.billing-utility-title {
  display: flex;
  align-items: center;
  height: 27px;
  gap: 7px;
}

.billing-utility-title > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: var(--landlord-warning);
  background: var(--landlord-warning-soft);
  font-size: 18px;
}

.billing-utility-card.water .billing-utility-title > span {
  color: var(--landlord-primary);
  background: var(--landlord-primary-soft);
  font-size: 11px;
}

.billing-utility-title strong {
  font-size: 13px;
  line-height: 20px;
}

.billing-utility-title em {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: #0d9c6a;
  background: var(--landlord-success-soft);
  font-size: 9px;
  font-style: normal;
}

.billing-utility-title em:not(.success) {
  color: #d87b1f;
  background: var(--landlord-warning-soft);
}

.billing-utility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 7px;
}

.billing-water-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 7px;
}

.billing-water-channel-grid > div {
  min-width: 0;
  padding: 6px 5px;
  border-radius: 7px;
  background: #eef8fa;
  text-align: center;
}

.billing-water-channel-grid small,
.billing-water-channel-grid b,
.billing-water-channel-grid span {
  display: block;
}

.billing-water-channel-grid small,
.billing-water-channel-grid span {
  color: var(--landlord-secondary);
  font-size: 9px;
  line-height: 13px;
}

.billing-water-channel-grid b {
  margin-top: 2px;
  font-size: 12px;
  line-height: 17px;
  overflow-wrap: anywhere;
}

.meter-channel-block[hidden] { display: none; }

.billing-utility-grid > div {
  min-width: 0;
  height: 42px;
  padding: 5px 4px;
  border-radius: 7px;
  background: #f4f8fc;
  text-align: center;
}

.billing-utility-grid small,
.billing-utility-grid b {
  display: block;
}

.billing-utility-grid small {
  color: var(--landlord-secondary);
  font-size: 8px;
  line-height: 12px;
}

.billing-utility-grid b {
  margin-top: 2px;
  overflow: hidden;
  font-size: 11px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-utility-grid b i {
  font-size: 7px;
  font-style: normal;
}

.billing-utility-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 27px;
  margin-top: 5px;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--landlord-danger-soft);
  color: var(--landlord-danger);
}

.billing-utility-total span,
.billing-utility-total strong {
  overflow: hidden;
  font-size: 8px;
  line-height: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-meter-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  margin-top: 5px;
  padding: 4px 9px;
  border: 1px solid #b8d8dc;
  border-radius: 6px;
  background: #f3fbfb;
  color: #17666c;
  font-size: 10px;
}

.meter-detail-reading-list { display: grid; gap: 8px; margin: 12px 0; }
.meter-detail-reading { display: grid; grid-template-columns: 1fr repeat(3, auto); align-items: center; gap: 8px; padding: 9px; border-radius: 8px; background: #f4f8fc; font-size: 12px; }
.meter-detail-reading strong { color: var(--landlord-ink); }
.meter-detail-reading span, .meter-detail-reading small { color: var(--landlord-secondary); }
.meter-detail-reading button { grid-column: 1 / -1; justify-self: start; border: 0; padding: 0; background: transparent; color: #17666c; font-size: 11px; }
.meter-detail-summary { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-block: 1px solid #e2ebef; color: var(--landlord-secondary); font-size: 12px; }
.meter-detail-summary strong { color: var(--landlord-ink); }
.meter-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.meter-detail-actions button { flex: 1 1 150px; }

.billing-utility-total strong {
  color: var(--landlord-ink);
  font-size: 11px;
}

.billing-utility-card > button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 27px;
  border: 0;
  background: transparent;
  color: transparent;
}

.billing-rent-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  align-items: center;
  height: 92px;
  margin-top: 7px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--landlord-shadow);
}

.billing-rent-identity {
  display: grid;
  grid-template-columns: 29px 1fr;
  align-items: center;
  gap: 6px;
}

.billing-rent-identity > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: var(--landlord-primary-soft);
  color: var(--landlord-primary);
  font-size: 18px;
}

.billing-rent-identity > strong {
  font-size: 13px;
}

.billing-rent-card em {
  grid-column: 1 / -1;
  width: max-content;
  margin-top: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--landlord-primary-soft);
  color: var(--landlord-primary);
  font-size: 8px;
  font-style: normal;
}

.billing-rent-card small,
.billing-rent-card b {
  display: block;
}

.billing-rent-card small {
  color: var(--landlord-secondary);
  font-size: 8px;
}

.billing-rent-card b {
  margin-top: 4px;
  font-size: 14px;
}

.billing-rent-card > button {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  color: transparent;
}

.billing-total-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  height: 58px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  background: rgba(241, 249, 255, 0.94);
}

.billing-total-card strong {
  font-size: 12px;
}

.billing-total-card > b {
  color: #0b2856;
  font-size: 17px;
}

.billing-total-card button {
  margin-left: 10px;
  border: 0;
  background: transparent;
  color: var(--landlord-secondary);
  font-size: 8px;
}

.billing-kit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  height: 47px;
  margin-top: 8px;
}

.billing-kit-actions button {
  height: 40px;
  border: 1px solid var(--landlord-primary);
  border-radius: 10px;
  background: #fff;
  color: var(--landlord-primary);
  font-size: 11px;
  font-weight: 600;
}

.billing-kit-actions button.primary {
  background: var(--landlord-primary);
  color: #fff;
}

.billing-room-option {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 62px;
  padding: 7px;
  border: 1px solid var(--landlord-border);
  border-radius: 10px;
  background: #fff;
  color: var(--landlord-ink);
  text-align: left;
}

.billing-room-option.active {
  border-color: #87b8f8;
  background: #f3f8ff;
}

.billing-room-option img {
  width: 52px;
  height: 48px;
  border-radius: 7px;
  object-fit: cover;
}

.billing-room-option strong,
.billing-room-option small {
  display: block;
}

.billing-room-option strong { font-size: 12px; }
.billing-room-option small { margin-top: 4px; color: var(--landlord-secondary); font-size: 9px; }
.billing-room-option > b { color: var(--landlord-primary); font-size: 9px; }

.landlord-message-body {
  position: relative;
  min-height: 651px;
  padding-top: 4px;
}

.admin-message-list {
  display: grid;
  gap: 7px;
}

.admin-message-row {
  grid-template-columns: 45px minmax(0, 1fr) auto 10px;
  align-items: center;
  gap: 9px;
  min-height: 89px;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--landlord-shadow);
}

.message-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--landlord-primary-soft);
  color: var(--landlord-primary);
  font-size: 20px;
}

.message-row-icon.water { color: #168bff; background: #e2f2ff; }
.message-row-icon.electricity { color: var(--landlord-warning); background: var(--landlord-warning-soft); }
.message-row-icon.rent_payment { color: var(--landlord-purple); background: #eee9ff; }
.message-row-icon.lease_expiry { color: var(--landlord-primary); background: #e8f2ff; }

.admin-message-row strong {
  font-size: 12px;
  line-height: 18px;
}

.admin-message-row strong i {
  min-width: 17px;
  height: 17px;
  font-size: 8px;
}

.admin-message-row small {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--landlord-secondary);
  font-size: 9px;
  line-height: 14px;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-message-row time {
  align-self: start;
  padding-top: 3px;
  color: var(--landlord-muted);
  font-size: 8px;
}

.admin-message-row > b {
  color: #1b355e;
  font-size: 20px;
}

.landlord-message-art,
.landlord-message-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 128px;
  color: var(--landlord-secondary);
  text-align: center;
}

.landlord-message-art {
  margin-top: 4px;
  background: linear-gradient(180deg, transparent, rgba(191, 227, 252, 0.34));
}

.landlord-message-art > span,
.landlord-message-empty > span {
  color: #68adf4;
  font-size: 30px;
  transform: rotate(-16deg);
}

.landlord-message-art strong,
.landlord-message-empty strong {
  font-size: 12px;
}

.landlord-message-art small,
.landlord-message-empty small {
  color: var(--landlord-muted);
  font-size: 9px;
}

.landlord-profile-body {
  padding-top: 4px;
}

.admin-profile-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 73px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--landlord-ink);
  text-align: left;
}

.admin-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e7f2ff;
  color: var(--landlord-primary);
  font-size: 29px;
}

.admin-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-profile-card > span:nth-child(2) {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 7px;
}

.admin-profile-card strong {
  font-size: 14px;
  line-height: 20px;
}

.admin-profile-card em {
  justify-self: start;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--landlord-warning-soft);
  color: #d8731f;
  font-size: 8px;
  font-style: normal;
}

.admin-profile-card small,
.admin-profile-card b {
  grid-column: 1 / -1;
  margin-top: 1px;
  font-size: 9px;
  line-height: 13px;
}

.admin-profile-card small { color: var(--landlord-secondary); }
.admin-profile-card b { color: var(--landlord-success); }
.admin-profile-card > i { font-size: 18px; font-style: normal; }

.admin-profile-banner {
  position: relative;
  height: 64px;
  margin: 8px 0 0;
  overflow: hidden;
  padding: 13px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, #4288f3, #79b8ff);
}

.admin-profile-banner strong,
.admin-profile-banner small {
  position: relative;
  z-index: 2;
}

.admin-profile-banner strong {
  font-size: 13px;
  line-height: 20px;
}

.admin-profile-banner small {
  margin-top: 2px;
  color: #eaf5ff;
  font-size: 9px;
}

.admin-profile-banner img {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}

.admin-service-group {
  margin-top: 10px;
  min-height: 129px;
  padding: 12px 11px 9px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--landlord-shadow);
}

.admin-service-head {
  min-height: 23px;
}

.admin-service-head strong,
.admin-service-group.account-group > strong {
  font-size: 13px;
  line-height: 20px;
}

.admin-service-items {
  min-height: 78px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 0;
}

.admin-service-items.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-service-items.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.admin-service-items button {
  min-width: 0;
  gap: 5px;
  border-right: 0;
}

.admin-service-items span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--landlord-primary-soft);
  color: var(--landlord-primary);
  font-size: 21px;
}

.admin-service-items button:nth-child(2) span { color: #16aaa7; background: #e1faf8; }
.admin-service-items button:nth-child(3) span { color: #ff8650; background: #fff0e7; }
.admin-service-items button:nth-child(4) span { color: var(--landlord-purple); background: #eee9ff; }

.admin-service-items small {
  overflow: hidden;
  font-size: 9px;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-service-group.account-group {
  min-height: 79px;
  height: 79px;
  padding: 5px 11px 4px;
}

.admin-service-group.account-group > strong {
  line-height: 16px;
}

.admin-account-items {
  margin-top: 0;
}

.admin-account-items button {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 12px;
  align-items: center;
  width: 100%;
  min-height: 27px;
  padding: 3px 2px;
  border: 0;
  border-top: 1px solid var(--landlord-divider);
  background: transparent;
  color: var(--landlord-ink);
  text-align: left;
}

.admin-account-items span {
  color: #245796;
  font-size: 18px;
}

.admin-account-items b {
  font-size: 10px;
}

.admin-account-items i {
  color: var(--landlord-secondary);
  font-size: 15px;
  font-style: normal;
}

.admin-account-items button.danger span,
.admin-account-items button.danger b {
  color: var(--landlord-danger);
}

.admin-state {
  min-height: 260px;
  margin: 8px 0;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
}

.admin-nav {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 20;
  width: min(100%, 390px);
  min-height: 59px;
  padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(221, 234, 246, 0.9);
  border-radius: 12px 12px 0 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -5px 18px rgba(48, 104, 146, 0.08);
  transform: translateX(-50%);
}

.admin-nav-item {
  min-height: 47px;
  gap: 1px;
  color: #526c91;
  font-size: 8px;
}

.admin-nav-item > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  font-size: 20px;
}

.admin-nav-item small {
  font-size: 8px;
  line-height: 12px;
}

.admin-nav-item.active {
  color: var(--landlord-primary);
}

.admin-badge {
  top: 0;
  right: 25%;
}

@media (max-width: 340px) {
  .admin-header { padding-inline: 29px; }
  .landlord-page-body { padding-inline: 12px; }
  .property-row { grid-template-columns: 67px minmax(0, 1fr) auto; gap: 7px; }
  .property-row > img { width: 67px; }
  .billing-utility-grid { gap: 3px; }
  .billing-utility-grid > div { padding-inline: 2px; }
}

@media (min-width: 700px) {
  .admin-app {
    min-height: 801px;
    margin: 24px auto;
    border-radius: 28px;
  }

  .admin-nav {
    border-radius: 12px 12px 28px 28px;
  }
}
/* Period preparation is separate from tenant-visible receivables. */
.billing-period-state { width: 100%; margin: 0 0 16px; padding: 12px 0; border-block: 1px solid #a7d8d6; color: #183c43; overflow-wrap: anywhere; }
.billing-period-state > strong { display: block; font-size: 15px; line-height: 24px; }
.billing-period-state p { margin: 6px 0; font-size: 12px; line-height: 20px; }
.billing-period-state dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 16px; margin: 10px 0; }
.billing-period-state dl > div { display: flex; justify-content: space-between; gap: 8px; min-width: 0; font-size: 12px; }
.billing-period-state dd { margin: 0; font-variant-numeric: tabular-nums; }
.period-send-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; max-width: 100%; margin: 8px 0; padding: 8px 12px; border: 1px solid #00868d; border-radius: 6px; background: #e7f9f7; color: #165b60; font-size: 13px; }
.period-send-button:disabled { opacity: .6; cursor: default; }
.period-send-button .ui-icon { width: 16px; height: 16px; }
.billing-period-state details { margin-top: 8px; font-size: 12px; }
.billing-dispatch-history { margin: 18px 0; padding: 16px; border: 1px solid #cce5e3; border-radius: 12px; background: #fff; color: #183c43; overflow-wrap: anywhere; min-width: 0; }
.billing-dispatch-history header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.billing-dispatch-history h3 { margin: 0; font-size: 16px; }
.billing-dispatch-history [data-dispatch-refresh] { flex-shrink: 0; min-height: 36px; border: 1px solid #a7d8d6; border-radius: 6px; background: #f2fbfa; color: #165b60; padding: 6px 10px; font-size: 12px; }
.billing-dispatch-history p { margin: 6px 0; font-size: 13px; line-height: 1.7; }
.billing-dispatch-history ol { list-style: none; padding: 0; margin: 12px 0; }
.billing-dispatch-history li { padding: 12px 0; border-top: 1px solid #e1eeed; }
.billing-dispatch-history li strong { font-size: 13px; line-height: 1.7; }
.billing-dispatch-history small, .billing-dispatch-history details, .dispatch-history-period { font-size: 12px; color: #60787d; line-height: 1.7; }
.billing-dispatch-history .is-success { color: #17694d; }
.billing-dispatch-history .is-error, .billing-dispatch-history [data-dispatch-refresh-note]:not(:empty) { color: #a34429; }
.billing-dispatch-history .is-pending { color: #725724; }
