/* R42: RS Best national geometric motif, unified desktop/mobile/Android theme. */
:root {
  --bg: #f5f4ef;
  --card: #fff;
  --line: #e3e7e0;
  --text: #223a32;
  --muted: #6c7971;
  --brand: #123f36;
  --brand2: #256653;
  --gold: #b49a62;
  --shadow: 0 5px 22px #173a2b06;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #b49a62;
  outline-offset: 3px;
}
button:disabled {
  cursor: wait;
}
h1,
h2,
h3 {
  color: #173e32;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 28px;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 16px;
}
.note,
.muted,
small {
  color: var(--muted);
}
.red,
.error {
  color: #b4413a;
}
.green {
  color: #257458;
}
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #123f36;
  border-bottom: 1px solid #b49a6260;
  box-shadow: none;
}
.topin {
  max-width: none;
  height: 80px;
  padding: 12px 30px;
  gap: 16px;
  align-items: center;
}
.brandwrap {
  gap: 13px;
}
.brandlogo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: white;
  padding: 2px;
}
.brand {
  font-size: 23px;
  letter-spacing: -0.5px;
  font-weight: 750;
}
.sub {
  font-size: 9px !important;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-top: 1px;
}
.who {
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.94;
}
.who b {
  font-size: 13px;
}
.linkwhite {
  border-bottom: 1px solid #ffffff60;
  text-decoration: none;
}
#menu-toggle {
  display: none;
  border: 1px solid #ffffff40;
  background: transparent;
  color: white;
  border-radius: 9px;
  font-size: 22px;
  width: 40px;
  height: 40px;
  padding: 0;
  flex-shrink: 0;
}
#nav-backdrop {
  display: none;
}
.nav {
  position: fixed;
  top: 80px;
  bottom: 0;
  left: 0;
  width: 218px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  z-index: 35;
  overflow: auto;
  padding: 26px 14px 95px;
}
.nav:before {
  content: "BOSHQARUV";
  display: block;
  padding: 0 16px 14px;
  color: #89938d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}
.nav:after {
  content: "RS BEST HOSTEL";
  display: block;
  padding: 30px 16px 90px;
  color: #91a199;
  font-size: 9px;
  letter-spacing: 2px;
  background: url("/national-pattern.svg") no-repeat center bottom;
  background-size: 80px;
  opacity: 0.65;
}
.navin {
  max-width: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
  overflow: visible;
}
.navin .btn,
.navin button,
.navin a {
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #64756c;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  text-align: left;
  white-space: normal;
  padding: 11px 14px;
  min-height: 43px;
  text-decoration: none;
  gap: 12px;
  box-shadow: none;
}
.navin .active {
  background: #eaf1e9 !important;
  color: #164e3b !important;
  font-weight: 700 !important;
}
.navin button:hover,
.navin a:hover {
  background: #f2f5f0;
  color: #123f36;
}
.navin [data-page]:before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
  background: currentColor;
  mask: var(--nav-icon) center/contain no-repeat;
}
.workspace {
  margin-left: 218px;
  min-width: 0;
}
main {
  padding: 28px 30px 40px;
  max-width: 1560px;
  margin: auto;
}
footer {
  padding: 12px 30px 25px;
  max-width: 1560px;
  margin: auto;
  color: var(--muted);
  font-size: 11px;
}
.heading {
  margin-bottom: 22px;
}
#subtitle {
  font-size: 12px;
}
.card {
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 20px;
}
.card h2:first-child {
  margin-top: 0;
}
.stats {
  gap: 14px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
  border-radius: 12px;
  padding: 17px;
}
.stat .v,
.stat .value {
  color: #193d30;
}
.btn,
button.primary {
  border-radius: 9px;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none;
  min-height: 40px;
}
.btn.primary,
button.primary {
  background: #1d5844;
  border: 1px solid #1d5844;
  color: white;
}
.btn.primary:hover,
button.primary:hover {
  background: #123f36;
}
.btn.soft {
  background: #f2f6f0;
  color: #305a43;
  border: 1px solid #dfe9dc;
}
.btn.danger {
  background: #fff3f1;
  color: #b6413d;
  border: 1px solid #eedbd6;
}
.btn:hover {
  filter: none;
  box-shadow: 0 2px 7px #173a2b0b;
}
input,
select,
textarea {
  border: 1px solid #d9e1d8;
  background: #fcfdfa;
  color: #243d32;
  border-radius: 9px;
  min-height: 42px;
  padding: 10px 12px;
  box-shadow: none;
}
label {
  color: #5b6d61;
  font-size: 12px;
  line-height: 1.7;
}
input[type="checkbox"],
input[type="radio"] {
  min-height: 0;
  accent-color: #1d5844;
}
textarea {
  min-height: 85px;
}
table {
  border-collapse: collapse;
  background: #fff;
}
thead th {
  background: #f4f6f0;
  border-bottom: 1px solid #e1e5db;
  padding: 14px 13px;
  color: #657164;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
td {
  padding: 14px 13px;
  border-bottom: 1px solid #eef0ea;
  vertical-align: middle;
}
tbody tr:hover {
  background: #fafbf7;
}
.tablewrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 100%;
  overflow: auto;
}
.badge {
  border-radius: 7px;
}
.room {
  border-radius: 13px;
  border-color: var(--line);
  box-shadow: none;
  background: #fff;
}
.page > h1 {
  margin-top: 0;
}
.tabs button,
.subnav button {
  border-radius: 8px;
}
.close {
  border-radius: 50%;
  background: #f0f3ed;
  border: 0;
  color: #4c6254;
}
.modal,
dialog {
  border-radius: 18px;
  border: 1px solid #e0e6dc;
  box-shadow: 0 24px 80px #0b352340;
}
dialog::backdrop {
  background: #102b2375;
  backdrop-filter: blur(3px);
}
dialog input,
dialog select {
  max-width: 100%;
}
.login {
  background: #123f36 url("/national-pattern.svg") repeat;
  position: fixed;
  inset: 0;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.loginbox {
  width: 420px;
  max-width: 100%;
  padding: 38px;
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 24px 80px #082a2355;
  border: 1px solid #d0bc86;
}
.loginlogo {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}
.loginbox h1 {
  font-family: Georgia, serif;
  font-size: 28px;
  margin-bottom: 4px;
}
.loginbox .loginsub {
  margin-bottom: 25px;
}
.loginbox label {
  display: block;
  margin-top: 14px;
}
.loginbox .btn {
  width: 100%;
  margin-top: 24px;
}
.loginbox input {
  background: white;
}
.loginbox .note {
  font-size: 12px;
}
.payment-overview {
  margin-bottom: 28px;
}
.overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 24px;
  padding: 20px 0 24px;
  border-bottom: 1px solid #dcded2;
  position: relative;
}
.eyebrow {
  color: #9a814f;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2px;
}
.overview-heading h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 500;
  margin: 7px 0;
  color: #173f32;
  line-height: 1.15;
}
.overview-heading p {
  margin: 9px 0 0;
  color: #788073;
  font-size: 13px;
}
.overview-date {
  text-align: right;
  position: relative;
  font-size: 17px;
  font-weight: 650;
  padding: 18px 0 18px 75px;
  background: url("/national-pattern.svg") no-repeat left center;
  background-size: 62px;
}
.overview-date span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: #7d8677;
  margin-top: 5px;
}
.overview-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}
.overview-controls label {
  width: 180px;
}
.overview-controls input,
.overview-controls select {
  display: block;
  width: 100%;
  background: white;
  margin-top: 4px;
}
.overview-controls .primary {
  margin-left: auto;
}
.payment-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.payment-stat {
  border: 1px solid #e2e7de;
  border-radius: 15px;
  padding: 19px 18px 15px;
  text-align: left;
  display: flex;
  flex-direction: column;
  background: white;
  color: #284b3c;
  min-height: 160px;
  box-shadow: 0 4px 14px #173a2b03;
  transition:
    transform 0.16s,
    box-shadow 0.16s;
}
.payment-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 20px #173a2b0d;
  border-color: #b0bfa8;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
}
.stat-symbol {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  background: #edf3e9;
  font-size: 15px;
}
.payment-stat strong {
  font-size: 37px;
  letter-spacing: -1px;
  font-weight: 600;
  line-height: 1.1;
  margin: 17px 0 15px;
}
.payment-stat strong small {
  font-size: 11px;
  font-weight: 400;
  color: inherit;
  opacity: 0.7;
  letter-spacing: 0;
}
.stat-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #697966;
  line-height: 1.4;
}
.stat-bottom > span {
  font-size: 20px;
}
.payment-stat.is-paid {
  background: #173f33;
  color: #fff;
  border-color: #173f33;
}
.is-paid .stat-symbol {
  background: #315647;
  color: #e3d1a3;
}
.is-paid .stat-bottom {
  color: #b6cabc;
}
.is-partial .stat-symbol {
  color: #ab8130;
  background: #f8f1e2;
}
.is-unpaid .stat-symbol,
.is-debt .stat-symbol {
  color: #b2684a;
  background: #fbede5;
}
.is-debt strong {
  color: #b25c46;
}
.payment-insight {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e3d9;
}
.coverage {
  min-width: 210px;
  flex: 1;
  max-width: 400px;
}
.coverage > span {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6c7b6d;
}
.coverage b {
  color: #1f503a;
}
.coverage-track {
  height: 5px;
  background: #e3e9df;
  border-radius: 8px;
  margin: 9px 0 6px;
  overflow: hidden;
}
.coverage-track i {
  display: block;
  height: 100%;
  background: #65845e;
  border-radius: 8px;
}
.coverage small {
  font-size: 10px;
  color: #71806b;
}
.overview-amount {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 25px;
  border-left: 1px solid #dfe4d9;
}
.overview-amount > span {
  font-size: 11px;
  color: #6c7b64;
}
.overview-amount > b {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.5px;
}
.overview-unbilled {
  background: none;
  border: 0;
  font-size: 11px;
  color: #6c7b64;
  margin-left: auto;
  padding: 8px;
}
.overview-unbilled b {
  font-size: 20px;
  font-weight: 500;
  color: #455d42;
  margin-right: 5px;
}
.overview-unbilled span {
  margin-left: 12px;
}
.receipt-strip {
  display: flex;
  gap: 12px;
  padding: 17px 0 4px;
}
.receipt-strip button {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border: 1px solid #e1e5da;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 11px;
  color: #65755e;
  flex: 1;
  text-align: left;
  justify-content: space-between;
}
.receipt-strip b {
  font-size: 11px;
  color: #3a5e40;
  white-space: nowrap;
}
.status-explanation {
  font-size: 11px;
  color: #6c7b64;
  line-height: 1.6;
  margin: 10px 0 0;
  max-width: 1000px;
}
.status-issues {
  font-size: 12px;
  color: #a66f34;
  margin-top: 10px;
}
.status-dialog h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  margin: 8px 0 6px;
}
.status-dialog-tools {
  display: flex;
  align-items: end;
  gap: 16px;
  margin: 24px 0 12px;
}
.status-dialog-tools label {
  flex: 1;
}
.status-dialog-tools input {
  display: block;
  width: 100%;
  margin-top: 4px;
}
.status-wide {
  max-width: 1200px !important;
  width: calc(100% - 40px) !important;
}
.status-table table {
  min-width: 1100px;
}
.status-table small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.status-table td {
  font-size: 12px;
  white-space: nowrap;
}
.status-table td:first-child {
  white-space: normal;
  min-width: 195px;
}
.person-link {
  border: 0;
  background: transparent;
  color: #265c44;
  font: inherit;
  font-weight: 650;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: #ccdacc;
  text-underline-offset: 4px;
}
.status-pill {
  font-size: 10px;
  border-radius: 5px;
  padding: 4px 7px;
  display: inline-block;
  background: #eff2ed;
  color: #6c7766;
}
.status-pill.paid {
  background: #eaf4e8;
  color: #397b43;
}
.status-pill.partial {
  background: #faf1dc;
  color: #9c7936;
}
.status-pill.unpaid {
  background: #fff0e9;
  color: #a75e49;
}
.empty-list {
  text-align: center;
  padding: 35px !important;
}
.security-notice {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 16px;
  border-left: 3px solid #c29a5c;
}
.security-notice > b {
  font-size: 12px;
}
.security-notice p {
  font-size: 11px;
  margin: 4px 0;
  grid-column: 1;
}
.security-notice .toolbar {
  grid-column: 2;
  grid-row: 1/3;
  display: flex;
  gap: 7px;
  margin: 0;
}
.security-notice .btn {
  font-size: 11px;
  padding: 8px 11px;
  min-height: 36px;
}
@media (min-width: 1700px) {
  .nav {
    width: 248px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .workspace {
    margin-left: 248px;
  }
  main {
    padding: 36px 42px;
  }
  .payment-stat {
    padding: 24px;
    min-height: 180px;
  }
  .payment-stat strong {
    font-size: 44px;
  }
}
@media (max-width: 1150px) {
  .nav {
    width: 190px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .workspace {
    margin-left: 190px;
  }
  main {
    padding: 23px 21px;
  }
  .payment-stat-grid {
    gap: 10px;
  }
  .payment-stat {
    padding: 15px 12px;
  }
  .stat-top {
    font-size: 11px;
  }
  .overview-heading h1 {
    font-size: 31px;
  }
  .payment-insight {
    gap: 15px;
  }
  .overview-unbilled {
    max-width: 125px;
  }
  .receipt-strip {
    gap: 7px;
  }
  .receipt-strip button {
    gap: 7px;
    padding: 10px;
    font-size: 10px;
  }
  .receipt-strip b {
    font-size: 10px;
  }
}
@media (max-width: 800px) {
  .topin {
    height: 68px;
    padding: 10px 16px;
    gap: 10px;
    align-items: center;
  }
  .brandlogo {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }
  .brand {
    font-size: 18px;
  }
  .brandwrap {
    gap: 9px;
  }
  .sub {
    font-size: 7px !important;
    letter-spacing: 1.1px;
  }
  .who {
    font-size: 10px;
    line-height: 1.5;
    margin-left: auto;
  }
  .who b {
    font-size: 10px;
  }
  #menu-toggle {
    display: block;
    width: 34px;
    height: 36px;
    font-size: 20px;
  }
  .nav {
    top: 68px;
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: none;
    padding-top: 22px;
  }
  .workspace {
    margin-left: 0;
  }
  .menu-open .nav {
    transform: translateX(0);
    box-shadow: 15px 0 30px #112d2420;
  }
  .menu-open #nav-backdrop {
    display: block;
    position: fixed;
    inset: 68px 0 0 0;
    z-index: 34;
    background: #0c251d66;
    border: 0;
    backdrop-filter: blur(2px);
  }
  main {
    padding: 19px 16px 25px;
  }
  .overview-heading {
    padding: 9px 0 20px;
    margin-bottom: 18px;
  }
  .overview-heading h1 {
    font-size: 28px;
  }
  .overview-date {
    font-size: 12px;
    padding-left: 0;
    background: none;
  }
  .overview-date span {
    font-size: 9px;
  }
  .overview-heading p {
    font-size: 11px;
    max-width: calc(100% - 95px);
  }
  .overview-heading:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 23px;
    width: 80px;
    height: 80px;
    background: url("/national-pattern.svg") center/contain no-repeat;
    opacity: 0.7;
    pointer-events: none;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.4px;
  }
  .payment-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .payment-stat {
    min-height: 155px;
    padding: 17px;
  }
  .payment-stat strong {
    font-size: 37px;
  }
  .stat-top {
    font-size: 12px;
  }
  .stat-bottom {
    font-size: 10px;
  }
  .payment-insight {
    flex-wrap: wrap;
    gap: 18px;
  }
  .coverage {
    min-width: 45%;
    max-width: none;
  }
  .overview-amount {
    padding-left: 15px;
    margin-left: auto;
  }
  .overview-unbilled {
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .overview-unbilled span {
    margin-left: auto;
  }
  .receipt-strip {
    flex-wrap: wrap;
  }
  .receipt-strip button {
    font-size: 11px;
    flex: 1 1 45%;
    min-height: 54px;
    flex-direction: column;
    align-items: start;
    gap: 4px;
    padding: 11px 13px;
  }
  .receipt-strip button:last-child {
    flex-direction: row;
    align-items: center;
    flex-basis: 100%;
    min-height: 40px;
  }
  .receipt-strip b {
    font-size: 12px;
  }
  .overview-controls {
    flex-wrap: wrap;
    gap: 10px;
  }
  .overview-controls label {
    flex: 1;
    width: auto;
    min-width: 120px;
  }
  .overview-controls .primary {
    margin-left: 0;
  }
  .overview-controls > button {
    font-size: 12px;
  }
  .card {
    padding: 17px;
    border-radius: 13px;
    margin-bottom: 16px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stats .stat {
    padding: 13px;
  }
  .heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 18px;
  }
  .status-wide {
    width: calc(100% - 16px) !important;
    max-height: 92dvh !important;
    padding: 18px 14px !important;
  }
  .status-dialog h2 {
    font-size: 24px;
  }
  .status-dialog-tools {
    gap: 10px;
    flex-wrap: wrap;
  }
  .status-dialog-tools label {
    min-width: 180px;
  }
  .status-dialog-tools button {
    font-size: 12px;
  }
  footer {
    padding: 12px 16px 24px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  #toast {
    max-width: calc(100vw - 24px);
  }
  dialog {
    max-width: calc(100vw - 16px);
    max-height: 92dvh;
    overflow: auto;
  }
  .security-notice {
    display: block;
    padding: 12px;
  }
  .security-notice > b {
    font-size: 11px;
  }
  .security-notice p {
    font-size: 10px;
    line-height: 1.5;
    margin: 6px 0 9px;
  }
  .security-notice .toolbar {
    flex-wrap: nowrap;
    gap: 7px;
  }
  .security-notice .toolbar > * {
    flex: 1 1 45%;
    min-width: 0;
    font-size: 10px;
    padding: 7px;
    min-height: 33px;
  }
  .rs-native .top .brandwrap {
    display: none;
  }
  .rs-native .topin {
    height: 54px;
  }
  .rs-native .who {
    color: #425e4b;
    font-size: 11px;
  }
  .rs-native .who b {
    display: block;
    max-width: none;
    font-size: 12px;
  }
  .rs-native .who br {
    display: none;
  }
  .rs-native .top {
    background: #f5f4ef;
    border-bottom: 1px solid #e0e6dc;
  }
  .rs-native .linkwhite {
    color: #425e4b;
    border-color: #aab7a6;
  }
  .rs-native #menu-toggle {
    color: #245a45;
    border-color: #c8d3c2;
  }
  .rs-native .nav {
    top: 54px;
  }
  .rs-native .menu-open #nav-backdrop {
    top: 54px;
  }
}
@media (max-width: 450px) {
  .topin {
    padding: 9px 12px;
    gap: 8px;
  }
  .brand {
    font-size: 16px;
  }
  .brandlogo {
    width: 34px;
    height: 34px;
  }
  .sub {
    display: none;
  }
  .who {
    font-size: 9px;
  }
  .who b {
    max-width: 95px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .who br {
    display: none;
  }
  main {
    padding: 18px 12px;
  }
  .overview-heading {
    align-items: start;
    padding-top: 30px;
  }
  .overview-heading h1 {
    font-size: 28px;
    max-width: 240px;
  }
  .overview-heading p {
    max-width: 230px;
    line-height: 1.6;
  }
  .overview-date {
    position: absolute;
    right: 0;
    top: 6px;
    font-size: 10px;
    padding: 0;
  }
  .overview-date span {
    display: none;
  }
  .overview-heading .eyebrow {
    max-width: 215px;
    font-size: 8px;
    letter-spacing: 1px;
    position: absolute;
    top: 6px;
    left: 0;
  }
  .overview-controls label {
    flex-basis: 45%;
  }
  .overview-controls > button {
    flex: 1;
  }
  .payment-stat {
    padding: 15px 13px;
    min-height: 153px;
  }
  .stat-top {
    font-size: 11px;
    align-items: start;
  }
  .stat-symbol {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
  }
  .payment-stat strong {
    font-size: 36px;
    margin: 16px 0 12px;
  }
  .stat-bottom {
    font-size: 9px;
    min-height: 26px;
  }
  .payment-insight {
    gap: 15px;
  }
  .coverage {
    width: 100%;
    flex-basis: 100%;
  }
  .overview-amount {
    padding: 0;
    border: 0;
    margin: 0;
    flex: 1;
  }
  .overview-unbilled {
    flex: 1;
    width: auto;
    max-width: 150px;
    font-size: 10px;
    display: block;
    text-align: right;
  }
  .overview-unbilled span {
    margin-left: 5px;
  }
  .overview-amount > b {
    font-size: 22px;
  }
  .loginbox {
    padding: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .nav,
  .top,
  #menu-toggle,
  #nav-backdrop,
  footer,
  .overview-controls {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  main {
    padding: 0;
  }
  .payment-stat,
  .payment-overview {
    break-inside: avoid;
  }
}
.navin [data-page="dashboard"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2010%209-7%209%207v10H3Z%20M9%2020v-7h6v7%22%2F%3E%3C%2Fsvg%3E");
}
.navin [data-page="rooms"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%204v16m18-11v11M3%2016h18M3%209h14a4%204%200%200%201%204%204v3M6%209V6h5v3%22%2F%3E%3C%2Fsvg%3E");
}
.navin [data-page="students"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M4%2021v-3a8%208%200%200%201%2016%200v3%22%2F%3E%3C%2Fsvg%3E");
}
.navin [data-page="reservations"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%202v6m10-6v6M3%2011h18m-14%205h4%22%2F%3E%3C%2Fsvg%3E");
}
.navin [data-page="payments"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%2220%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M2%2010h20M6%2015h5%22%2F%3E%3C%2Fsvg%3E");
}
.navin [data-page="expenses"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%203h14v19l-3-2-4%202-4-2-3%202ZM8%208h8M8%2012h8M8%2016h4%22%2F%3E%3C%2Fsvg%3E");
}
.navin [data-page="cashbook"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M3%209h18m-5%204h5v4h-5Z%20M7%205V2h11v3%22%2F%3E%3C%2Fsvg%3E");
}
.navin [data-page="notifications"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%204h18v13H9l-6%204ZM7%208h10M7%2012h7%22%2F%3E%3C%2Fsvg%3E");
}
.navin [data-page="reports"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%202v19h19M7%2016V9m5%207V5m5%2011v-5%22%2F%3E%3C%2Fsvg%3E");
}
.navin [data-page="users"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M2%2021v-3a7%207%200%200%201%2014%200v3m1-18a4%204%200%200%201%200%208m2%203a7%207%200%200%201%203%207%22%2F%3E%3C%2Fsvg%3E");
}
.navin [data-page="settings"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%202%203%203h4v4l3%203-3%203v4h-4l-3%203-3-3H5v-4l-3-3%203-3V5h4Z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E");
}
.navin [data-page="audit"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M12%206v6l4%203%22%2F%3E%3C%2Fsvg%3E");
}

.occ-layout{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.occ-layout .stats{flex:1;min-width:230px}.occ-donut{width:174px;height:174px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.occ-donut>div{width:126px;height:126px;border-radius:50%;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center}.occ-donut strong{font-size:28px}.occ-label{display:flex;justify-content:space-between;gap:8px}.occ-track{height:12px;background:#e4ebe6;border-radius:8px;margin:6px 0 14px;overflow:hidden}.occ-track>div{height:100%;background:#126332;border-radius:8px}.occ-ranking{max-width:860px}#occupancyReport details{margin-top:20px}#occupancyReport .tablewrap{overflow:auto}

.occ-key{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:3px}.occ-green{background:#126332}.occ-gold{background:#d59b26}.occ-pale{background:#e4ebe6;border:1px solid #bacbc0}

.identity-gallery{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.identity-thumb{width:160px;background:white;border:1px solid #ccdace;border-radius:12px;padding:10px;cursor:zoom-in}.identity-thumb img{width:100%;height:110px;object-fit:contain}.identity-thumb span{display:block}.identity-view{max-width:95vw;width:1000px;max-height:95vh;overflow:auto}.identity-view>img{display:block;max-width:100%;height:auto;margin:15px auto}.identity-form{margin-bottom:16px}.profile img.photo{cursor:zoom-in}

/* R51: free places by room gender, inside the existing dashboard tile. */
#dashboardPage .free-place-breakdown { display: grid; gap: 5px; margin-top: 10px; font-size: 13px; line-height: 1.4; }
#dashboardPage .free-place-breakdown > span { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
#dashboardPage .free-place-breakdown > span[hidden] { display: none; }
#dashboardPage .free-place-breakdown strong { font-size: 14px; color: #146534; font-weight: 700; }

/* R58 · Uzbek koshin: eight-point khatam, islimiy leaves, lapis and turquoise. */
:root{--bg:#f5f3ec;--card:#fffefa;--line:#d6ddd9;--text:#203c51;--muted:#647780;--brand:#155e70;--brand2:#177f89;--gold:#b48d4c;--shadow:0 6px 22px #153d6310}
body{background:var(--bg);font-family:"Segoe UI",Arial,sans-serif}
h1,h2,h3{color:#153e64;letter-spacing:-.02em}
.top{background:#123759;border-bottom:0;box-shadow:0 4px 18px #143b6320;padding-bottom:16px}
.top::after{content:"";position:absolute;bottom:0;left:0;right:0;height:14px;background:url('/uzbek-koshin.svg') left center/52px 52px;border-top:1px solid #d4b879;border-bottom:1px solid #d4b879;pointer-events:none}
.topin{height:82px;min-height:82px;background:linear-gradient(90deg,#123759,#1a5270)}
.brandwrap,.brandtext{min-width:0}.brand{color:#fffaf0;font-family:Georgia,"Times New Roman",serif;font-size:27px;font-weight:700;letter-spacing:.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(55vw,650px)}
.brandtext .sub{display:none}.brandlogo,.loginlogo{object-fit:contain;background:#fffdf4;padding:5px;border:1px solid #d9bd85;border-radius:9px}
.nav{top:98px;background:#fffefa;border-right:1px solid #ccd7d9;padding-top:24px}
.nav::before{color:#74818a;letter-spacing:2px}.nav::after{content:"";height:150px;margin:26px 16px 0;padding:0;background:url('/uzbek-medallion.svg') center/132px no-repeat;opacity:.9}
.navin button,.navin a{color:#3e596a;border-radius:7px;font-weight:600}.navin button:hover,.navin a:hover{background:#eaf2f2;color:#143f64}
.navin button.active{background:#164a69!important;color:#fffaf0!important;box-shadow:inset 3px 0 #c6a568,0 3px 9px #12375915}
.overview-heading{padding:28px 30px;min-height:172px;border:1px solid #c6d8dd;border-radius:12px;background:#eaf2f2;overflow:hidden;margin-bottom:24px;isolation:isolate}
.overview-heading::before{content:"";position:absolute;right:165px;top:50%;width:160px;height:160px;transform:translateY(-50%);background:url('/uzbek-medallion.svg') center/contain no-repeat;opacity:.16;z-index:-1;pointer-events:none}
.overview-heading::after{content:"";position:absolute;left:0;top:0;bottom:0;width:8px;height:auto;right:auto;background:url('/uzbek-koshin.svg') center/70px;opacity:1;pointer-events:none}
.overview-heading h1{color:#143e62;font-family:Georgia,"Times New Roman",serif;font-size:36px;font-weight:500;max-width:640px}.overview-heading p{color:#4e6d7b}.eyebrow{color:#866332;letter-spacing:2px}.overview-date{color:#153e64;padding:12px 0 12px 22px;border-left:1px solid #b9ced2;background:none;font-size:17px;white-space:nowrap}.overview-date span{color:#567080}
.card,.stat,.roomcard,.room-card{background:#fffefa;border:1px solid #d6ddda;box-shadow:var(--shadow);border-radius:12px}.card{border-top:3px solid #318a91}
.payment-stat{position:relative;overflow:hidden;background:#fffefa;border:1px solid #cddbdc;border-top:3px solid #267b8b;border-radius:12px;box-shadow:var(--shadow);color:#173f62;min-height:175px}
.payment-stat::after{content:"";position:absolute;right:-24px;bottom:22px;width:112px;height:112px;background:url('/uzbek-medallion.svg') center/contain no-repeat;opacity:.07;pointer-events:none}
.payment-stat>*{position:relative;z-index:1}.payment-stat.is-paid{background:#174d6c;border-color:#174d6c;border-top-color:#c6a568;color:#fffaf0}.payment-stat.is-paid::after{opacity:.18}.is-paid .stat-bottom{color:#dbe9e9}.is-paid .stat-symbol{background:#326981;color:#ffe2a4}.stat-bottom{color:#526c7a}.payment-stat:hover{border-color:#168c97;box-shadow:0 8px 22px #153d631b}
.stat-symbol{border-radius:5px;background:#edf3f4}.payment-stat strong{font-variant-numeric:tabular-nums}.is-debt strong{color:#ae493e}
.stats>.stat{position:relative;overflow:hidden;border-top:3px solid #267b8b;padding:20px}.stats>.stat::after{content:"";position:absolute;right:-18px;top:18px;width:82px;height:82px;background:url('/uzbek-medallion.svg') center/contain no-repeat;opacity:.08;pointer-events:none}.stat>b{font-size:30px;font-variant-numeric:tabular-nums}.free-place-breakdown{color:#426575;line-height:1.8}
.btn{border-radius:7px;font-weight:600;min-height:38px}.btn.primary,.btn.greenbtn{background:#16677b;border:1px solid #16677b;color:#fff}.btn.soft{background:#eef4f3;color:#164c67;border-color:#c7d9d9}.btn:hover{filter:brightness(.97)}
input,select,textarea{background:#fffefb;border:1px solid #c8d4d5;border-radius:7px}input:focus,select:focus,textarea:focus{outline:2px solid #20889538;border-color:#288290}
table thead th{background:#e9f1f2;color:#204d6b;border-bottom:2px solid #bba274}tbody tr:nth-child(even){background:#f7f8f4}tbody tr:hover{background:#edf4f4}.building-head{background:#e8f1f2;border:1px solid #b9ced3;border-left:5px solid #1d7887;border-radius:9px}
.login{background:#153e64 url('/uzbek-koshin.svg') center/200px;min-height:100vh;position:relative}.loginbox{background:#fffdf6;border:1px solid #dfd3b9;border-top:5px solid #c4a46a;border-radius:15px;box-shadow:0 22px 70px #071d4970;padding:34px}.loginbox h1{font-family:Georgia,"Times New Roman",serif}.loginsub .note{display:none}
footer{border-top:1px solid #ccd8d9;color:#5f7580}.organisation-settings{margin-bottom:20px}.organisation-preview{width:72px;height:72px;object-fit:contain;border:1px solid #cbd4d3;border-radius:8px;background:#fff}.organisation-settings [role=status]{color:#24646e}.print-brand{display:flex;align-items:center;gap:12px}.print-brand img{width:48px;height:48px;object-fit:contain}
@media(max-width:1150px){.overview-heading h1{font-size:30px}.overview-heading{padding:24px}.overview-date{font-size:14px}}
@media(max-width:800px){.topin{height:66px;min-height:66px}.top{padding-bottom:10px}.top::after{height:9px}.nav{top:76px}.menu-open #nav-backdrop{inset:76px 0 0}.brand{font-size:20px;max-width:44vw}.brandlogo{width:42px;height:42px}.overview-heading{min-height:178px;padding:38px 20px 20px}.overview-heading .eyebrow{top:14px;left:20px;font-size:8px;letter-spacing:1.3px}.overview-heading h1{font-size:28px;max-width:270px}.overview-heading p{max-width:260px;font-size:12px}.overview-heading::before{width:130px;height:130px;right:-48px;opacity:.12}.overview-heading::after{width:5px}.overview-date{position:absolute;top:10px;right:14px;padding:0;border:0;font-size:10px}.overview-date span{display:none}.payment-stat{padding:16px 13px;min-height:166px}.payment-stat strong{font-size:34px}.stats>.stat{padding:15px}.stat>b{font-size:28px}.loginbox{padding:26px}.organisation-settings .grid2{grid-template-columns:1fr}.rs-native .topin{height:54px;min-height:54px}.rs-native .top{padding-bottom:1px;border-bottom:0;background:#123759}.rs-native .who,.rs-native .linkwhite,.rs-native #menu-toggle{color:#fffaf0}.rs-native .linkwhite,.rs-native #menu-toggle{border-color:#ffffff60}.rs-native .top::after{height:1px;border:0;background:#c4a46a}.rs-native .nav{top:55px}.rs-native.menu-open #nav-backdrop{top:55px}}
@media print{body{background:white}.card,.stat,.payment-stat{box-shadow:none}.top,.nav,.overview-heading::before,.overview-heading::after,.payment-stat::after,.stats>.stat::after{display:none!important}.overview-heading{background:white;border:0}}
