@import url('fonts.css');

:root {
  --ink: #1e302d;
  --muted: #7f8981;
  --teal: #1e5a50;
  --teal-dark: #123d36;
  --gold: #c6a568;
  --gold-light: #efe3c9;
  --bg: #f5f3ed;
  --line: #e8e4d9;
  --white: #fffefa;
  --fc-border-color: #e8e4d9;
  --fc-button-bg-color: #1e5a50;
  --fc-button-border-color: #1e5a50;
  --fc-button-hover-bg-color: #123d36;
  --fc-button-hover-border-color: #123d36;
  --fc-button-active-bg-color: #123d36;
  --fc-button-active-border-color: #123d36;
  --fc-today-bg-color: #f7f3e9;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  background: radial-gradient(ellipse at 85% 0%, #eee8d9 0, transparent 38%), var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible { outline: 3px solid #d9bd7f; outline-offset: 3px; }
input:focus, textarea:focus, select:focus { outline: 2px solid #c4aa70; outline-offset: 1px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: 'Manrope', Arial, sans-serif; }
h1 { font-size: clamp(25px, 2.4vw, 34px); font-weight: 800; letter-spacing: -1.25px; line-height: 1.25; color: #1c302d; }
h2 { font-size: 17px; font-weight: 750; letter-spacing: -.45px; }
h3 { font-size: 16px; }
small { font-size: 12px; color: var(--muted); }
.app-shell { min-height: 100vh; display: flex; }

/* Premium navigation shell */
.sidebar {
  width: 272px; flex-shrink: 0; color: #f2eee3;
  background: linear-gradient(164deg, #173c36 0%, #102f2b 55%, #0d2825 100%);
  border-right: 1px solid rgba(198,165,104,.23);
  padding: 27px 18px 0; position: fixed; inset: 0 auto 0 0;
  display: flex; flex-direction: column; z-index: 20; overflow-y: auto;
  box-shadow: 8px 0 28px rgba(18,43,38,.08);
}
.brand { text-decoration: none; color: #fffdf7; display: flex; align-items: center; gap: 12px; padding: 0 9px; }
.brand-symbol {
  width: 45px; height: 47px; color: #183c34; border-radius: 13px;
  display: grid; place-items: center; background: linear-gradient(145deg, #f2e6ca, #c6a568);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 6px 18px rgba(0,0,0,.15);
}
.brand b { font-family: 'Manrope', Arial, sans-serif; font-size: 30px; letter-spacing: -1.8px; line-height: 1; }
.brand-dot { color: #d6b779; }
.brand small { display: block; color: #bdc9bd; font-size: 8px; font-weight: 700; letter-spacing: 1.25px; margin-top: 7px; }
.workspace { display: flex; gap: 10px; align-items: center; border: 1px solid rgba(226,215,188,.13); border-radius: 12px; padding: 13px 10px; margin-top: 31px; background: rgba(255,255,255,.045); }
.workspace-icon { color: #d1b477; flex-shrink: 0; }
.workspace strong { color: #f6f2e8; font-size: 11px; display: block; }
.workspace small { display: block; font-size: 9px; margin-top: 4px; color: #a9b8ad; }
.nav-group { margin-top: 17px; }
.nav-label { font-size: 9px; letter-spacing: 1.5px; color: #899f94; font-weight: 700; padding: 0 13px; margin: 15px 0 8px; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav :is(button,a.nav-link) {
  position: relative; border: 1px solid transparent; background: none; text-align: left;
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 9px;
  color: #bbc8be; font-weight: 500; font-size: 12px;
}
.sidebar nav :is(button,a.nav-link):hover { background: rgba(255,255,255,.07); color: #fffdf7; }
.sidebar nav :is(button,a.nav-link).selected { color: #fffdf7; background: linear-gradient(90deg, rgba(198,165,104,.21), rgba(198,165,104,.08)); border-color: rgba(198,165,104,.18); font-weight: 700; }
.sidebar nav :is(button,a.nav-link).selected:before { content: ''; position: absolute; left: -19px; width: 3px; height: 22px; background: #d7b978; border-radius: 0 3px 3px 0; }
.sidebar nav :is(button,a.nav-link).selected svg { color: #e1c482; }
.sidebar nav em { font-size: 10px; font-style: normal; background: #d4b671; color: #193e35; margin-left: auto; padding: 3px 7px; border-radius: 20px; font-weight: 700; }
.sidebar-note { margin-top: auto; padding: 20px 11px; font-size: 10px; font-weight: 600; color: #d0d8cf; }
.sidebar-note p { color: #98ada1; font-size: 10px; line-height: 1.7; margin-top: 8px; font-weight: 400; }
.tiny-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #d0b06d; margin-right: 6px; box-shadow: 0 0 0 4px rgba(208,176,109,.12); }
.sidebar-footer { border-top: 1px solid rgba(233,224,204,.13); margin: 0 -18px; padding: 17px 19px; display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.08); }
.sidebar-footer strong { color: #f4f1e7; font-size: 10px; }
.sidebar-footer small { color: #9eafa4; font-size: 9px; display: block; margin-top: 5px; }
.avatar { height: 34px; width: 34px; border-radius: 50%; background: linear-gradient(145deg,#e6d5ad,#bb9c60); display: grid; place-items: center; font-size: 11px; color: #193e35; font-weight: 800; flex-shrink: 0; }
.avatar.light { background: #eadfca; color: #65583d; }

.main-shell { margin-left: 272px; flex: 1; min-width: 0; }
.topbar { height: 76px; background: rgba(255,254,250,.86); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding: 0 clamp(20px, 3vw, 44px); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; }
.breadcrumb { display: flex; gap: 11px; align-items: center; font-size: 11px; color: #9a9a8e; }
.breadcrumb strong { font-weight: 700; color: #435950; }
.top-right { display: flex; align-items: center; gap: 14px; }
.date-label { display: flex; gap: 8px; align-items: center; color: #777d70; font-size: 10px; }
.date-label svg { color: #a58a53; }
.icon-btn { border: 0; background: transparent; padding: 8px; border-radius: 8px; color: #81877d; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: #f0eadc; color: var(--teal); }
.icon-btn.danger, .danger { color: #b85f50; }
.icon-btn.danger:hover, .danger:hover { color: #a43e31; background: #fcf0eb; }
.mobile-menu { display: none; }
main { padding: 36px clamp(20px, 3vw, 44px) 0; max-width: 1680px; margin: auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 28px; }
.eyebrow { color: #a28d5d; letter-spacing: 1.6px; font-size: 9px; font-weight: 800; margin-bottom: 9px; text-transform: uppercase; }
.page-heading p { color: #82877d; font-size: 12px; margin-top: 10px; line-height: 1.7; }
.heading-actions { display: flex; gap: 9px; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #fffefa; border: 1px solid #ded8ca; border-radius: 9px; padding: 10px 14px; font-size: 11px; font-weight: 700; color: #53665b; white-space: nowrap; min-height: 40px; box-shadow: 0 2px 5px rgba(35,49,39,.025); }
.btn:hover { background: #f5f0e5; border-color: #d2c29e; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg,#245f53,#17453d); border-color: #1d5449; color: #fffdf6; box-shadow: 0 5px 12px rgba(30,90,80,.18); }
.btn.primary svg { color: #dfc484; }
.btn.primary:hover { background: linear-gradient(135deg,#1d5449,#103c35); box-shadow: 0 7px 16px rgba(30,90,80,.23); }
.btn.compact { font-size: 10px; padding: 7px 10px; min-height: 32px; }
.delete-btn { background: #a94738; color: white; border-color: #a94738; }
.delete-btn:hover { background: #903c30; border-color: #903c30; }
.text-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; background: none; border: 0; color: #a08854; padding: 6px; font-weight: 700; }
.text-btn:hover { color: var(--teal); }

.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin-bottom: 24px; }
.stat { background: linear-gradient(145deg,#fffefa,#fbfaf5); border: 1px solid var(--line); border-radius: 14px; padding: 19px 20px 17px; min-height: 142px; box-shadow: 0 7px 24px rgba(42,50,37,.035); position: relative; overflow: hidden; }
.stat:after { content: ''; position: absolute; width: 78px; height: 78px; right: -35px; bottom: -43px; border: 1px solid rgba(198,165,104,.22); border-radius: 50%; box-shadow: 0 0 0 11px rgba(198,165,104,.035),0 0 0 22px rgba(198,165,104,.025); }
.stat-label { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #777f74; position: relative; z-index: 1; }
.stat-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.teal { background: #e7f0eb; color: #407468; }
.blue { background: #e9f0ef; color: #57888a; }
.amber { background: #f5ecd9; color: #a78345; }
.violet { background: #eeedf4; color: #837aa1; }
.stat>strong { display: block; font-size: 31px; font-family: 'Manrope',Arial,sans-serif; letter-spacing: -1px; margin-top: 9px; color: #203b34; position: relative; z-index: 1; }
.stat>strong small { font-family: 'DM Sans',Arial,sans-serif; font-size: 11px; margin-left: 8px; font-weight: 500; color: #8b8d80; }
.stat p { margin-top: 9px; font-size: 9px; color: #929388; line-height: 1.5; position: relative; z-index: 1; }
.red-text { color: #b86355; }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 19px; margin-bottom: 22px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 22px; box-shadow: 0 7px 24px rgba(42,50,37,.035); }
.dashboard-grid .panel { margin: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; padding: 21px 23px; gap: 12px; }
.panel-heading p { font-size: 10px; color: #929286; margin-top: 7px; line-height: 1.5; }
.room-bar { padding: 10px 23px; width: 100%; border: 0; background: none; display: flex; align-items: center; text-align: left; gap: 14px; }
.room-bar:hover { background: #f9f7f0; }
.room-number { height: 35px; width: 35px; border-radius: 10px; background: #f1eee3; color: #9b8657; display: grid; place-items: center; flex-shrink: 0; }
.tone1,.tone4 { background: #e9f0ec; color: #6f9187; }
.tone2,.tone5 { background: #f4ede1; color: #a89171; }
.room-bar-info { flex: 1; min-width: 0; }
.room-bar-info strong { font-size: 11px; font-weight: 600; }
.bar-track { display: block; height: 5px; background: #efede6; border-radius: 6px; margin-top: 9px; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg,#b99a5d,#d6be89); }
.room-total { text-align: right; width: 45px; }
.room-total strong { display: block; font-size: 14px; }
.room-total small { font-size: 9px; }
.distribution-footer { border-top: 1px solid #efede6; margin-top: 16px; padding: 15px 23px; font-size: 9px; color: #94958a; }
.agenda-panel { border: 1px solid #dcd2bb; background: linear-gradient(150deg,#f1ecdf,#e9e5d8); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 8px 24px rgba(42,50,37,.045); }
.agenda-panel .panel-heading { padding-bottom: 18px; }
.agenda-panel .eyebrow { color: #9a8352; font-size: 8px; }
.agenda-panel h2 { font-size: 21px; letter-spacing: -.7px; color: #29443a; }
.agenda-icon { border: 1px solid #d2c39f; color: #987e48; display: grid; place-items: center; height: 43px; width: 43px; border-radius: 12px; background: rgba(255,255,255,.3); }
.agenda-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #9b906f; padding: 22px 15px 26px; }
.agenda-empty h3 { color: #53634e; font-size: 14px; margin-top: 15px; }
.agenda-empty p { color: #898b7a; font-size: 11px; margin: 10px 0 21px; line-height: 1.8; }
.agenda-empty .btn { background: #fbf8ef; color: #6e704f; border-color: #d8ccad; }
.agenda-link { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 16px 23px; background: none; border: 0; border-top: 1px solid #d9d0bc; color: #816f45; font-size: 10px; font-weight: 700; }
.agenda-link:hover { background: rgba(255,255,255,.26); }
.agenda-item { border: 0; background: none; margin: 0 22px; border-bottom: 1px solid #d8d0bd; padding: 16px 0; display: flex; align-items: center; gap: 13px; text-align: left; color: var(--ink); }
.agenda-item>div:nth-child(2) { flex: 1; min-width: 0; }
.agenda-item strong { font-size: 12px; }
.agenda-item p,.agenda-item small { font-size: 10px; margin-top: 6px; color: #7b8170; }
.agenda-date { width: 41px; text-align: center; border: 1px solid #d4c5a3; border-radius: 8px; padding: 7px 4px; background: rgba(255,255,255,.28); flex-shrink: 0; }
.agenda-date b { display: block; font-size: 18px; color: #365347; }
.agenda-date small { font-size: 9px; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; white-space: nowrap; text-align: left; font-size: 11px; }
th { background: #f8f6ef; color: #87877b; font-size: 9px; letter-spacing: .45px; font-weight: 800; padding: 13px 21px; border-top: 1px solid #efede6; border-bottom: 1px solid #eae7dd; text-transform: uppercase; }
td { padding: 16px 21px; border-bottom: 1px solid #f0eee8; color: #657269; }
td strong { font-size: 11px; color: #314b40; font-weight: 700; }
td small { font-size: 9px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfbf7; }
.item-cell { display: flex; gap: 10px; align-items: center; }
.item-cell small { display: block; margin-top: 4px; font-size: 9px; }
.small-icon { width: 34px; height: 34px; display: grid; place-items: center; background: #f3f0e6; border: 1px solid #ece8dc; color: #a38c56; border-radius: 9px; flex-shrink: 0; }
.badge { display: inline-block; padding: 5px 9px; border-radius: 20px; font-size: 9px; line-height: 1; font-weight: 700; }
.badge.green { background: #eaf2e9; color: #55784d; }
.badge.amber { background: #f7efdd; color: #9e7938; }
.badge.red { background: #f9eae3; color: #ae5a46; }
.badge.gray { background: #eeefeb; color: #738179; }
.right { text-align: right; }
.block { display: block; margin-top: 5px; }
.empty { padding: 34px 15px 40px; text-align: center; }
.empty-icon { display: inline-grid; place-items: center; background: #f4f0e5; color: #aa945d; width: 56px; height: 56px; border: 1px dashed #d9c99f; border-radius: 15px; }
.empty h3 { font-size: 14px; margin-top: 15px; color: #52694f; }
.empty p { color: #929488; font-size: 11px; line-height: 1.8; margin: 8px 0 18px; }
.empty .btn { padding: 8px 12px; }
.main-footer { display: flex; justify-content: space-between; color: #99998c; font-size: 9px; padding: 8px 0 23px; }
.filters { display: flex; align-items: center; gap: 10px; padding: 18px 21px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.search { display: flex; gap: 9px; align-items: center; border: 1px solid #e5e0d4; border-radius: 9px; background: #fffefa; padding: 0 11px; flex: 1; min-width: 220px; color: #9a926f; height: 40px; }
.search:focus-within { border-color: #c4aa70; box-shadow: 0 0 0 3px rgba(196,170,112,.12); }
.search input { border: 0; background: none; outline: none; width: 100%; height: 100%; font-size: 11px; color: var(--ink); }
.search input::placeholder { color: #aaa99c; }
.filters select { border: 1px solid #e5e0d4; border-radius: 9px; padding: 9px 11px; color: #68756b; background: #fffefa; font-size: 11px; max-width: 200px; min-height: 40px; }
.list-caption { padding: 14px 21px; font-size: 10px; color: #777f73; }
.list-caption span { color: #a4a498; }
.room-search { padding: 0; border: 0; margin-bottom: 23px; }
.room-search .search { flex: none; width: 360px; }
.room-search>span { font-size: 10px; color: #8e8c7c; margin-left: auto; }
.room-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; margin-bottom: 26px; }
.room-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 21px 0; overflow: hidden; box-shadow: 0 7px 24px rgba(42,50,37,.035); }
.room-card-top { display: flex; justify-content: space-between; align-items: center; }
.room-card-icon { display: grid; place-items: center; width: 46px; height: 46px; background: #f3eee0; color: #a1864b; border-radius: 12px; }
.room-card h2 { margin-top: 18px; }
.room-card p { font-size: 10px; color: #929387; margin-top: 7px; }
.room-card-stats { display: flex; gap: 26px; padding: 23px 0; }
.room-card-stats b { font-size: 22px; font-family: Manrope,Arial,sans-serif; font-weight: 800; display: block; color: #29463c; }
.room-card-stats small { font-size: 9px; display: block; margin-top: 5px; }
.room-card-link { display: flex; align-items: center; justify-content: space-between; background: #f8f6ef; border: 0; border-top: 1px solid var(--line); width: calc(100% + 42px); margin-left: -21px; padding: 14px 21px; color: #8e7848; font-size: 10px; font-weight: 700; }
.room-card-link:hover { background: #f0ebdd; }
.loan-strip { display: flex; gap: 30px; align-items: center; border: 1px solid #ded5be; border-radius: 12px; background: linear-gradient(110deg,#f0ecdf,#e9e4d4); padding: 17px 21px; margin-bottom: 21px; }
.loan-strip span { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #777d67; }
.loan-strip b { color: #516744; font-size: 15px; }
.calendar-wrap { padding: 5px 22px 22px; }
.fc { font-size: 12px; }
.fc .fc-toolbar-title { font-size: 21px; letter-spacing: -.5px; font-family: Manrope,Arial,sans-serif; color: #29463c; }
.fc .fc-button { font-size: 11px!important; padding: 8px 11px!important; box-shadow: none!important; border-radius: 7px!important; }
.fc .fc-col-header-cell-cushion { padding: 12px; color: #7a8778; font-weight: 700; }
.fc .fc-daygrid-day-number { padding: 9px; font-size: 11px; color: #687d6b; }
.fc .fc-daygrid-day-frame { min-height: 90px; }
.fc .fc-daygrid-event { padding: 3px 4px; font-size: 10px; border-radius: 5px; cursor: pointer; }
.fc .fc-toolbar { gap: 10px; }
.calendar-legend { display: flex; gap: 22px; margin-top: 20px; font-size: 9px; color: #85887a; }
.calendar-legend span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; background: #24786f; border-radius: 50%; display: inline-block; }
.legend-dot.brown { background: #b9874e; }
.legend-dot.gray-dot { background: #a4b7ad; }
.segmented { display: flex; background: #eeece3; border-radius: 8px; padding: 3px; }
.segmented :is(button,a) { border: 0; background: none; border-radius: 6px; padding: 7px 12px; font-size: 10px; color: #8d8d80; }
.segmented :is(button,a).active { background: #fffefa; box-shadow: 0 2px 6px rgba(25,40,31,.08); color: #566d55; font-weight: 700; }
tfoot td { background: #f1f0e5; color: #537344; font-weight: 700; border-top: 1px solid #e2decf; }
.report-note { display: flex; gap: 12px; background: #f1ecde; border: 1px solid #e3dac5; border-radius: 11px; padding: 16px 20px; color: #817b63; font-size: 11px; line-height: 1.7; margin-bottom: 22px; }
.report-note svg { flex-shrink: 0; color: #9d844f; }
.error-banner,.form-error { padding: 13px 15px; background: #fff0eb; border: 1px solid #efd3ca; border-radius: 9px; color: #a85443; font-size: 12px; line-height: 1.6; margin-bottom: 15px; }
.error-banner { display: flex; justify-content: space-between; gap: 10px; }
.error-banner button { background: none; border: 0; color: #984833; text-decoration: underline; }
.loading { padding: 15px; border: 1px solid #e2dfd4; border-radius: 9px; margin-bottom: 20px; color: #8b8b7c; font-size: 12px; background: #fffefa; }
.spin { animation: rotate 1s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 24px; left: calc(50% + 100px); transform: translateX(-50%); border: 1px solid #d8c99f; background: #fffefa; box-shadow: 0 10px 30px rgba(25,45,37,.14); color: #527049; padding: 14px 22px; border-radius: 11px; display: flex; align-items: center; gap: 9px; font-size: 12px; z-index: 80; max-width: 90vw; }
.modal-overlay { position: fixed; inset: 0; background: rgba(16,38,33,.68); backdrop-filter: blur(5px); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 25px; overflow-y: auto; }
.modal { background: #fffefa; border: 1px solid #e6dfce; border-radius: 16px; width: 600px; max-width: 100%; max-height: calc(100dvh - 50px); overflow: auto; box-shadow: 0 22px 80px rgba(11,29,25,.28); }
.modal-header { padding: 22px 25px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 22px; }
.modal-body { padding: 23px 25px; }
.modal-body>p { font-size: 13px; line-height: 1.8; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 25px; border-top: 1px solid var(--line); background: #faf8f1; }
.modal-footer>.danger { margin-right: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-grid .field { margin-bottom: 0; }
.field>span { font-size: 11px; color: #66745f; font-weight: 700; }
.field i { font-style: normal; color: #b38e72; }
.field input,.field select,.field textarea { background: #fcfbf7; border: 1px solid #e2ddcf; border-radius: 8px; padding: 10px 11px; min-height: 41px; color: #435b4d; font-size: 12px; width: 100%; }
.field textarea { resize: vertical; }
.full { grid-column: 1/-1; }
.form-info { font-size: 11px!important; color: #6e7d68; background: #f3f0e5; border: 1px solid #e6dfcc; border-radius: 9px; padding: 13px; margin-bottom: 20px!important; line-height: 1.7!important; }
.return-info { padding: 18px; background: #f3f0e5; border-radius: 9px; margin-bottom: 22px; border: 1px solid #e8e0cb; }
.return-info strong { font-size: 16px; }
.return-info p { font-size: 12px; margin: 8px 0; }
.return-info small { font-size: 10px; }
.nav-backdrop { display: none; }

@media (min-width: 1500px) {
  main { padding-top: 43px; }
  .stat { padding: 22px; min-height: 153px; }
  .stat>strong { font-size: 36px; }
  .room-bar { padding-top: 14px; padding-bottom: 14px; }
}
@media (max-width: 1150px) {
  .sidebar { width: 236px; padding-left: 15px; padding-right: 15px; }
  .main-shell { margin-left: 236px; }
  .sidebar-footer { margin: 0 -15px; }
  .brand { padding: 0 5px; }
  .workspace strong { font-size: 10px; }
  .workspace small { font-size: 8px; }
  main { padding: 28px 24px 0; }
  .topbar { padding: 0 24px; }
  .stat { padding: 16px; }
  .stats { gap: 11px; }
  .stat-label { font-size: 10px; }
  .stat p { font-size: 8px; }
  .stat-icon { width: 29px; height: 29px; }
  .dashboard-grid { gap: 15px; }
  .room-grid { grid-template-columns: repeat(2,1fr); }
  .page-heading p { font-size: 11px; }
  .btn { padding: 9px 11px; }
  .loan-strip { gap: 18px; }
}
@media (max-width: 850px) {
  .sidebar { width: 278px; transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.visible { transform: translateX(0); }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(17,38,33,.55); backdrop-filter: blur(2px); z-index: 19; }
  .main-shell { margin-left: 0; }
  .mobile-menu { display: inline-flex; }
  .topbar { height: 66px; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .stat p { font-size: 10px; }
  .stat-label { font-size: 12px; }
  .stat { padding: 18px; }
  .page-heading { align-items: flex-start; }
  .heading-actions { padding-top: 13px; }
  .toast { left: 50%; }
  .loan-strip { flex-wrap: wrap; }
  .dashboard-grid { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 600px) {
  main { padding: 22px 15px 0; }
  .topbar { padding: 0 13px; }
  .top-right { gap: 7px; }
  .date-label { display: none; }
  .breadcrumb { gap: 7px; font-size: 10px; }
  .page-heading { display: block; margin-bottom: 21px; }
  .heading-actions { padding-top: 15px; }
  .heading-actions .btn { flex: 1; }
  h1 { font-size: 25px; }
  .page-heading p { font-size: 11px; }
  .stats { gap: 9px; margin-bottom: 17px; }
  .stat { padding: 13px; min-height: 132px; border-radius: 12px; }
  .stat-label { font-size: 10px; gap: 5px; }
  .stat>strong { font-size: 27px; }
  .stat p { font-size: 9px; line-height: 1.6; margin-top: 7px; }
  .stat-icon { width: 27px; height: 27px; }
  .dashboard-grid { display: block; }
  .distribution { margin-bottom: 16px!important; }
  .agenda-panel { min-height: 320px; margin-bottom: 17px; }
  .panel-heading { padding: 17px; }
  .panel-heading h2 { font-size: 15px; }
  .panel-heading p { font-size: 9px; }
  .room-bar { padding: 10px 16px; }
  .room-grid { grid-template-columns: 1fr; gap: 13px; }
  .room-search .search { width: 100%; }
  .room-search>span { margin-left: 0; }
  .filters { padding: 14px; }
  .filters .search { flex-basis: 100%; min-width: 0; }
  .filters select { max-width: none; flex: 1; font-size: 10px; }
  .main-footer { display: block; line-height: 1.8; font-size: 8px; }
  .main-footer span { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .modal-overlay { padding: 10px; align-items: flex-start; }
  .modal { max-height: calc(100dvh - 20px); margin: auto 0; }
  .modal-header { padding: 18px; }
  .modal-body { padding: 18px; }
  .modal-footer { padding: 14px 18px; }
  .calendar-wrap { padding: 0 10px 15px; }
  .fc .fc-toolbar { flex-wrap: wrap; justify-content: center; gap: 9px; }
  .fc .fc-toolbar-title { font-size: 18px; }
  .fc .fc-toolbar-chunk:nth-child(2) { order: -1; width: 100%; text-align: center; }
  .fc .fc-col-header-cell-cushion { padding: 9px 2px; font-size: 10px; }
  .fc .fc-daygrid-day-frame { min-height: 65px; }
  .fc .fc-daygrid-event { font-size: 8px; padding: 2px; }
  .calendar-legend { gap: 10px; flex-wrap: wrap; font-size: 8px; }
  .segmented :is(button,a) { padding: 6px 8px; font-size: 9px; }
  .loan-strip { padding: 14px; gap: 12px; }
  .room-card { padding-left: 17px; padding-right: 17px; }
  .table-wrap { margin-left: -1px; margin-right: -1px; }
  .toast { bottom: 14px; width: calc(100% - 28px); justify-content: center; }
}
@media print {
  .sidebar,.topbar,.heading-actions,.main-footer,.btn,.filters,.icon-btn,.toast { display: none!important; }
  .main-shell { margin: 0; }
  main { padding: 0; max-width: none; }
  .app-shell { display: block; }
  body { background: white; }
  .stats { grid-template-columns: repeat(4,1fr); }
  .panel { break-inside: avoid; border-radius: 0; box-shadow: none; }
  .table-wrap { overflow: visible; }
  table { white-space: normal; }
  th,td { padding: 9px; font-size: 10px; }
  .page-heading { margin-bottom: 20px; }
  .stat { padding: 12px; box-shadow: none; }
  .stat>strong { font-size: 24px; }
  .stat-label { font-size: 10px; }
  h1 { font-size: 23px; }
}
