:root {
  --navy-950: #132927;
  --navy-900: #1a3733;
  --navy-800: #28524b;
  --navy-700: #356a61;
  --gold: #b98a45;
  --gold-soft: #f3e8d4;
  --teal: #2b806e;
  --red: #b83a31;
  --orange: #c47a2c;
  --blue: #547c91;
  --ink: #202b29;
  --muted: #707a76;
  --line: #e1ded5;
  --surface: #fffefb;
  --canvas: #f3f1eb;
  --shadow: 0 14px 40px rgba(25, 47, 43, .09);
}

/* WhatsApp tenant notices */
.whatsapp-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.75fr); gap: 16px; align-items: start; }
.whatsapp-control, .whatsapp-preview { overflow: hidden; }
.whatsapp-control > .panel-head::after { content: "حساب الإرسال المعتمد: Alrajhi_Aqar · +966555066836"; display: block; flex-basis: 100%; margin-top: 10px; padding: 10px 13px; border: 1px solid #bce3cf; border-radius: 10px; color: #126c48; background: #effbf4; font-weight: 900; direction: rtl; }
.whatsapp-control > .panel-head { flex-wrap: wrap; }
.whatsapp-mark { padding: 7px 12px; border-radius: 999px; color: #126c48; background: #dcf8e9; font-weight: 900; font-size: 11px; }
.whatsapp-property-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 16px 0; }
.whatsapp-message-options { margin: 16px 0 0; padding: 13px; border: 1px solid #ead8de; border-radius: 12px; background: #fffafb; }
.whatsapp-message-options label { display: grid; gap: 7px; max-width: 430px; color: var(--navy-900); font-weight: 800; }
.whatsapp-property-row > label { display: grid; gap: 7px; min-width: min(100%,330px); font-weight: 800; color: var(--navy-900); }
.whatsapp-summary { display: flex; gap: 8px; flex-wrap: wrap; }
.whatsapp-summary span { min-width: 88px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfc; color: #6c7775; font-size: 10px; }
.whatsapp-summary strong { display: block; margin-top: 3px; color: var(--navy-950); font-size: 18px; }
.whatsapp-bulk-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; margin-bottom: 12px; border-radius: 12px; background: #f2f8f5; }
.whatsapp-bulk-actions label { display: flex; align-items: center; gap: 7px; font-weight: 800; }
.whatsapp-recipient-check, .whatsapp-select-all { width: 17px; height: 17px; accent-color: #18895e; }
.whatsapp-message-preview { padding: 20px; border: 1px solid #cde6d9; border-radius: 15px; background: linear-gradient(145deg,#f6fff9,#edf9f2); color: #163a31; font-size: 14px; font-weight: 700; line-height: 2; white-space: normal; }
.whatsapp-preview .settings-notice { margin-top: 13px; line-height: 1.8; }
.whatsapp-empty { min-height: 260px; display: grid; place-content: center; gap: 8px; text-align: center; color: #6e7d79; border: 1px dashed #cfdad7; border-radius: 14px; background: #fafcfb; }
.whatsapp-empty strong { color: var(--navy-950); font-size: 16px; }

/* Independent external Ejar contract receipts */
.external-receipt-notice { margin: 0 0 15px; padding: 13px 17px; display: flex; align-items: center; gap: 12px; border: 1px solid #d5b46a; border-radius: 12px; color: #694c0f; background: linear-gradient(135deg,#fffaf0,#fff5d9); }
.external-receipt-notice strong { white-space: nowrap; font-size: 12px; }
.external-receipt-notice span { font-size: 11px; line-height: 1.7; }
.external-receipt-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
.external-receipt-layout { display: grid; grid-template-columns: minmax(340px,.8fr) minmax(0,1.45fr); gap: 16px; align-items: start; }
.external-receipt-form { position: sticky; top: 82px; }
.external-receipt-register { min-width: 0; }
.external-receipt-total { padding: 15px 17px; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg,#772039,#982f50); }
.external-receipt-total strong { font-size: 21px; }
.external-receipt-total small { grid-column: 1 / -1; color: #f3dce4; }
.external-receipt-submit { display: flex; gap: 8px; }
.external-contract-receipt .external-receipt-independence { margin: 10px 0; padding: 8px 10px; text-align: center; border-radius: 8px; color: #77530d; background: #fff6da; font-size: 10px; font-weight: 800; }
.external-receipt-heading { margin: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.external-receipt-heading .receipt-number { margin: 0; }
.external-receipt-date { text-align: left; }
.external-receipt-date span, .external-receipt-date strong { display: block; }
.external-receipt-date span { color: var(--muted); font-size: 9px; }
.external-receipt-date strong { margin-top: 3px; color: var(--navy-950); font-size: 11px; }
.external-receipt-breakdown { margin-top: 14px; overflow: hidden; border: 1px solid #e1d5cd; border-radius: 11px; background: #fff; }
.external-receipt-breakdown h3 { margin: 0; padding: 10px 13px; color: #fff; background: linear-gradient(135deg,#741b38,#922b4b); font-size: 12px; }
.external-receipt-breakdown > div { padding: 10px 13px; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid #eee4df; }
.external-receipt-breakdown span { color: var(--muted); font-size: 10px; }
.external-receipt-breakdown strong { color: var(--navy-950); font-size: 11px; }
.external-receipt-breakdown small { display: block; padding: 8px 13px; color: #77530d; background: #fff6da; font-size: 9px; line-height: 1.7; }
.external-receipt-notes { margin: 10px 0 0; }
.external-receipt-footer { margin-top: 15px; padding-top: 9px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #d9d0ca; color: #6f7775; font-size: 9px; }
.external-receipt-footer strong { color: #741b38; }
.external-contract-receipt .receipt-total { margin-top: 12px; }
@media (max-width: 1120px) { .external-receipt-layout { grid-template-columns: 1fr; } .external-receipt-form { position: static; } }
@media (max-width: 700px) { .external-receipt-kpis { grid-template-columns: 1fr; } .external-receipt-notice { align-items: flex-start; flex-direction: column; } }
@media (max-width: 1040px) { .whatsapp-layout { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .whatsapp-property-row, .whatsapp-bulk-actions { align-items: stretch; flex-direction: column; } .whatsapp-summary { display: grid; grid-template-columns: repeat(3,1fr); } }

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 8% 3%, rgba(185,138,69,.08), transparent 24%), linear-gradient(145deg, #f7f5ef, var(--canvas)); font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
body, button, input, select, textarea { font-variant-numeric: lining-nums tabular-nums; }
input[type="number"], input[type="date"], input[type="tel"] { direction: ltr; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 252px; min-height: 100vh; position: fixed; inset: 0 0 0 auto; z-index: 30; padding: 12px 10px; overflow-y: auto; color: #741b38; background: linear-gradient(180deg,#fffdfd 0%,#fbf4f6 54%,#f7ecef 100%); display: flex; flex-direction: column; border-left: 1px solid #e5cbd2; box-shadow: -12px 0 32px rgba(83,20,43,.13); }
.sidebar::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 8% 2%,rgba(155,49,80,.08),transparent 28%); }
.sidebar::after { content: ""; position: absolute; inset: 5px; pointer-events: none; border: 1px solid rgba(132,32,61,.07); border-radius: 16px; }
.brand { display: flex; gap: 11px; align-items: center; margin-bottom: 10px; padding: 10px 11px; position: relative; z-index: 1; border: 1px solid #8f2949; border-radius: 13px; background: linear-gradient(145deg,#982c4d,#721a35); box-shadow: 0 5px 13px rgba(89,20,43,.18), inset 0 1px rgba(255,255,255,.2); }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border: 2px solid rgba(255,231,199,.65); border-radius: 15px; background: #fff; box-shadow: 0 7px 15px rgba(36,2,11,.25), inset 0 0 0 3px rgba(112,25,45,.08); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 16px; letter-spacing: -.2px; color: #fff; text-shadow: 0 2px 5px rgba(35,0,9,.3); }
.brand span { font-size: 12px; color: #f6dfe5; margin-top: 3px; }
.main-nav { display: grid; gap: 4px; position: relative; z-index: 1; padding: 0; }
.nav-item { width: 100%; min-height: 42px; border: 1px solid #e4bac6; border-radius: 10px; padding: 0 10px; display: flex; align-items: center; gap: 9px; color: #761c38; background: linear-gradient(180deg,#fffdfd,#fff5f7); text-align: right; font-weight: 700; text-shadow: none; box-shadow: 0 2px 5px rgba(106,23,49,.05), inset 0 1px #fff; transition: transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease; }
.nav-item:hover { color: #6e1734; background: linear-gradient(180deg,#fff,#fbe9ee); border-color: #c97990; transform: translateX(-2px); box-shadow: 0 5px 12px rgba(106,23,49,.12),inset 0 1px #fff; }
.nav-item:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(106,23,49,.09); }
.nav-item.active { color: #fff; background: linear-gradient(135deg,#982f50,#791d39); border-color: #721932; text-shadow: 0 1px 2px rgba(42,3,17,.25); box-shadow: 0 5px 12px rgba(107,22,48,.24),inset 0 1px rgba(255,255,255,.22); transform: none; }
.nav-item.active .nav-icon { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); box-shadow: none; }
.nav-icon { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 7px; font-size: 17px; color: #8b2a48; background: transparent; box-shadow: none; }
.nav-featured { margin-top: 0; border-color: #d79aab; }
.nav-item em { margin-right: auto; min-width: 23px; height: 23px; display: grid; place-items: center; border-radius: 20px; background: #8c2947; color: #fff; box-shadow: 0 2px 5px rgba(91,18,41,.18); font-size: 10px; font-weight: 900; font-style: normal; text-shadow: none; }
.nav-item.active em { background: #fff; color: #7d203d; box-shadow: none; }
.sidebar-foot { margin-top: auto; padding: 13px 5px 3px; position: relative; z-index: 1; border-top: 1px solid #e3c8cf; }
.sidebar-foot small { color: #8b5c69; font-size: 11px; }
.logout-button { width: 100%; min-height: 42px; margin-top: 11px; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #751a35; border-radius: 10px; color: #fff; background: linear-gradient(135deg,#922b4a,#721a35); box-shadow: 0 4px 10px rgba(91,18,41,.18),inset 0 1px rgba(255,255,255,.2); font-size: 12px; font-weight: 900; text-shadow: 0 1px 2px rgba(42,3,17,.25); transition: transform .16s ease,box-shadow .16s ease,background .16s ease; }
.logout-button:hover { color: #fff; border-color: #67142d; background: linear-gradient(135deg,#a23758,#7c203d); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(91,18,41,.24),inset 0 1px rgba(255,255,255,.22); }
.logout-button:active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(50,4,20,.22); }
.logout-button:focus-visible { outline: 3px solid rgba(145,43,74,.22); outline-offset: 3px; }
.privacy-note { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; color: #741b38; }
.privacy-note span { width: 7px; height: 7px; border-radius: 50%; background: #8d2948; box-shadow: 0 0 0 4px rgba(141,41,72,.1); }

.app-main { width: calc(100% - 252px); margin-right: 252px; min-width: 0; }
.topbar { height: 76px; position: sticky; top: 0; z-index: 20; padding: 0 30px; display: flex; align-items: center; gap: 20px; background: rgba(255,254,250,.88); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(190,184,170,.55); box-shadow: 0 8px 28px rgba(35,51,47,.035); }
.global-search { flex: 1; max-width: 640px; height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border-radius: 12px; border: 1px solid #dedbd2; background: #f7f5ef; color: #7c8581; }
.global-search:focus-within { border-color: #8fb4c7; background: white; box-shadow: 0 0 0 3px rgba(23,68,94,.07); }
.global-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.global-search kbd { padding: 3px 8px; border-radius: 6px; background: #edf1f3; color: #89959c; font-size: 10px; white-space: nowrap; }
.topbar-actions { margin-right: auto; display: flex; align-items: center; gap: 14px; }
.topbar-datetime { min-width: 292px; min-height: 58px; padding: 7px 14px; display: flex; align-items: center; gap: 11px; border: 1px solid #d9c9bd; border-radius: 14px; color: #30131d; background: linear-gradient(145deg,#fffefa,#f8f0e8); box-shadow: 0 8px 20px rgba(82,29,47,.1),inset 0 1px rgba(255,255,255,.9); direction: rtl; }
.topbar-clock-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg,#922b4a,#6f1731); box-shadow: 0 5px 12px rgba(111,23,49,.22); font-size: 21px; }
.topbar-datetime-copy { min-width: 0; display: grid; gap: 2px; }
.topbar-datetime-copy strong { color: #741b38; font-family: Tahoma,Arial,sans-serif; font-size: 20px; font-weight: 900; line-height: 1.15; letter-spacing: 1.2px; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.topbar-datetime-copy small { color: #56645f; font-size: 10.5px; font-weight: 800; line-height: 1.35; white-space: nowrap; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--navy-800); font-size: 20px; box-shadow: 0 5px 14px rgba(24,49,45,.045); }
.icon-button:hover { border-color: #c8d4da; background: #f8fafb; }
.notification-button { position: relative; }
.notification-button b { position: absolute; top: -6px; left: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--red); border: 2px solid white; font-size: 9px; }
.user-chip { display: flex; align-items: center; gap: 9px; }
.user-chip > span:not(.avatar) { display: grid; }
.user-chip strong { font-size: 12px; }
.user-chip small { font-size: 10px; color: var(--muted); }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--navy-900); color: #fff; font-size: 12px; font-weight: 700; }
.menu-button { display: none; }

main { padding: 30px; max-width: 1680px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-title-wrap { display: flex; align-items: center; gap: 16px; min-width: 0; }
.dashboard-logo { width: 154px; height: 66px; padding: 2px; object-fit: contain; border: 1px solid #ead2c4; border-radius: 14px; background: #7b1832; box-shadow: 0 8px 22px rgba(104,18,42,.18); }
.eyebrow { display: block; margin-bottom: 4px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.page-head h1 { margin: 0; color: var(--navy-950); font-size: clamp(23px, 2.3vw, 32px); letter-spacing: -.7px; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.print-header, .print-footer { display: none; }
.date-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; color: #56645f; background: var(--surface); font-size: 12px; box-shadow: 0 5px 16px rgba(24,49,45,.04); }
.primary-button, .secondary-button, .soft-button, .danger-button { min-height: 42px; padding: 0 17px; border-radius: 10px; border: 0; font-weight: 700; font-size: 13px; transition: .2s; }
.primary-button { color: white; background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); box-shadow: 0 8px 20px rgba(26,55,51,.18); }
.primary-button:hover { background: var(--navy-950); transform: translateY(-1px); }
.primary-button.gold { background: var(--gold); color: var(--navy-950); }
.secondary-button { color: var(--navy-800); background: var(--surface); border: 1px solid #d2cec4; }
.soft-button { color: var(--navy-700); background: #e8f0ed; }
.danger-button { color: var(--red); background: #fff0f0; }
.button-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.kpi-card { position: relative; overflow: hidden; min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, #fffefb, #faf8f2); box-shadow: 0 10px 28px rgba(28,52,47,.055); }
.kpi-card::after { content: ""; position: absolute; top: -26px; left: -21px; width: 88px; height: 88px; border-radius: 50%; background: var(--kpi-color, #edf3f5); opacity: .18; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.kpi-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: var(--kpi-bg, #edf3f5); color: var(--kpi-fg, var(--navy-700)); }
.kpi-value { margin-top: 14px; color: var(--navy-950); font-size: 25px; font-weight: 800; line-height: 1; }
.kpi-meta { display: flex; gap: 5px; align-items: center; margin-top: 9px; color: var(--muted); font-size: 10px; }
.trend-up { color: var(--teal); font-weight: 700; }
.trend-warn { color: var(--orange); font-weight: 700; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .8fr); gap: 20px; }
.stack { display: grid; gap: 20px; align-content: start; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 30px rgba(28,52,47,.055); overflow: hidden; }
.panel-pad { padding: 20px; }
.panel-head { min-height: 64px; padding: 15px 19px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 15px; color: var(--navy-950); }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.link-button { padding: 0; border: 0; background: none; color: var(--navy-700); font-weight: 700; font-size: 11px; }
.link-button:hover { color: var(--gold); }

.chart-shell { padding: 20px; }
.bar-chart { height: 190px; display: flex; align-items: flex-end; gap: 12px; padding: 15px 5px 0; border-bottom: 1px solid var(--line); background: linear-gradient(#fff 24%, #f1f4f5 25%, #fff 26%, #fff 49%, #f1f4f5 50%, #fff 51%, #fff 74%, #f1f4f5 75%, #fff 76%); }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; min-width: 20px; }
.bar { width: min(28px, 70%); min-height: 8px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, var(--navy-700), var(--navy-900)); transition: .3s; position: relative; }
.bar:hover { filter: brightness(1.12); }
.bar:hover::after { content: attr(data-value); position: absolute; top: -27px; right: 50%; transform: translateX(50%); padding: 3px 6px; border-radius: 5px; background: var(--navy-950); color: white; font-size: 9px; white-space: nowrap; }
.bar-col small { color: var(--muted); font-size: 9px; }
.chart-legend { display: flex; justify-content: space-between; margin-top: 15px; color: var(--muted); font-size: 10px; }
.chart-legend strong { color: var(--navy-900); font-size: 13px; }

.alert-list { display: grid; }
.alert-item { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 14px 18px; border-bottom: 1px solid #edf0f2; }
.alert-item:last-child { border: 0; }
.alert-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-size: 15px; }
.alert-icon.red { background: #fff0f0; color: var(--red); }
.alert-icon.orange { background: #fff4e6; color: var(--orange); }
.alert-icon.blue { background: #ebf3fb; color: var(--blue); }
.alert-copy strong, .alert-copy span { display: block; }
.alert-copy strong { font-size: 11px; }
.alert-copy span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 0 9px; border-radius: 20px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status-pill.overdue, .status-pill.vacant, .status-pill.cancelled { color: #bd3c3c; background: #ffeded; }
.status-pill.pending, .status-pill.expiring, .status-pill.partial { color: #b66b17; background: #fff2df; }
.status-pill.paid, .status-pill.occupied, .status-pill.active { color: #15735f; background: #e5f6f1; }
.status-pill.available { color: #376da8; background: #eaf2fb; }
.status-pill.scheduled { color: #6d4fa0; background: #f0eafb; }
.status-pill.suspended { color: #8d5a12; background: #fff0d6; }
.status-pill.expired, .status-pill.renewed { color: #59656c; background: #edf1f3; }
.status-pill.residential { color: #176c60; background: #e7f5f1; }
.status-pill.commercial { color: #8a4e12; background: #fff0d9; }
.contract-tax-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 14px; border: 1px solid #d6e3e8; border-radius: 12px; background: #f5fafb; }
.contract-tax-summary span { color: var(--muted); font-size: 10px; }
.contract-tax-summary strong { display: block; margin-top: 5px; color: var(--navy-900); font-size: 12px; }
.contract-tax-summary.taxable { border-color: #e8c795; background: #fffaf2; }
.contract-tax-summary.taxable span:last-child strong { color: #8a4e12; }
.contract-tax-summary.exempt { display: flex; align-items: center; justify-content: space-between; border-color: #b9ded5; background: #f0faf7; }
.contract-actions { flex-wrap: nowrap; gap: 4px; }
.contract-renew-action { color: #15735f; background: #e5f6f1; }
.contract-renew-action:hover { color: #0d5949; background: #d4eee7; }
.contract-stop-action { color: #9b651c; background: #fff2df; }
.contract-stop-action:hover { color: #75480e; background: #ffe7c4; }
.contract-operation-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 14px; border: 1px solid #d6e3e8; border-radius: 12px; background: #f5fafb; }
.contract-operation-summary span { color: var(--muted); font-size: 9px; }
.contract-operation-summary strong { display: block; margin-top: 5px; color: var(--navy-900); font-size: 11px; }
.contract-operation-warning { display: grid; gap: 7px; padding: 15px; border: 1px solid #f1c8c8; border-radius: 12px; color: #782b2b; background: #fff4f4; }
.contract-operation-warning strong { font-size: 12px; }
.contract-operation-warning span { color: #74535a; font-size: 10px; line-height: 1.7; }

.occupancy { padding: 18px; display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 20px; }
.donut { --value: 75; width: 112px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) calc(var(--value) * 1%), #e8edef 0); position: relative; }
.donut::before { content: ""; position: absolute; width: 75%; height: 75%; border-radius: 50%; background: white; }
.donut span { position: relative; font-size: 20px; font-weight: 800; color: var(--navy-950); }
.occupancy-stats { display: grid; gap: 10px; }
.stat-row { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.stat-row strong { color: var(--ink); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-left: 5px; }
.vacant-units-panel { overflow: hidden; }
.vacant-count { min-width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #9d1739, #6f1028); box-shadow: 0 7px 16px rgba(125,17,47,.22); font-size: 13px; font-weight: 800; }
.vacant-units-list { display: grid; max-height: 330px; overflow: auto; scrollbar-width: thin; scrollbar-color: #c9d4d1 transparent; }
.vacant-unit-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #edf0f2; background: linear-gradient(90deg, rgba(255,255,255,.3), rgba(245,250,248,.65)); }
.vacant-unit-row:last-child { border-bottom: 0; }
.vacant-unit-copy { min-width: 0; display: grid; gap: 4px; }
.vacant-unit-copy strong { color: var(--navy-950); font-size: 12px; font-weight: 800; }
.vacant-unit-copy span { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.vacant-unit-copy small { color: var(--muted); font-size: 9px; font-weight: 600; }
.vacant-ready { padding: 7px 9px; border: 1px solid #b9e0d4; border-radius: 20px; color: #126d5a; background: #e7f7f2; font-size: 9px; font-weight: 800; white-space: nowrap; }
.vacant-units-empty { min-height: 118px; display: grid; place-content: center; gap: 6px; padding: 20px; text-align: center; }
.vacant-units-empty strong { color: var(--navy-950); font-size: 12px; }
.vacant-units-empty span { color: var(--muted); font-size: 10px; }
.vacant-units-link { width: 100%; min-height: 43px; border: 0; border-top: 1px solid var(--line); color: var(--navy-700); background: #fbfcfa; font-size: 10px; font-weight: 800; }
.vacant-units-link:hover { color: #fff; background: var(--navy-800); }

.toolbar { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-bottom: 0; border-radius: 15px 15px 0 0; background: rgba(255,254,251,.92); }
.toolbar-group { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.field-inline { height: 39px; min-width: 170px; padding: 0 12px; border: 1px solid #dfe5e8; border-radius: 9px; color: var(--ink); background: #fafcfc; outline: 0; font-size: 11px; }
.field-inline:focus { border-color: #8fb4c7; background: white; }
.contract-selection-summary, .unit-selection-summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: #173a35; background: #f7fbfa; font-size: 12px; }
.contract-selection-summary span, .unit-selection-summary span { padding: 5px 10px; border: 1px solid #d5e4e0; border-radius: 8px; background: #fff; }
.contract-fees-summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 15px; color: #fff; background: #6f1731; font-size: 12px; font-weight: 900; }
.contract-fees-summary strong { color: #fff; font-size: 14px; }
.contract-document-action { color: #fff; border-color: #a67a32; background: linear-gradient(145deg,#c69a4a,#956c28); }
.modal.rental-contract-modal { width: min(980px,100%); }
.rental-contract-document { direction: rtl; color: #172523; font-family: Tahoma,Arial,sans-serif; line-height: 1.65; }
.rental-contract-brand { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 8px 0 16px; border-bottom: 3px solid #7a1831; text-align: center; }
.rental-contract-brand img { width: 155px; height: 55px; object-fit: contain; }
.rental-contract-brand span, .rental-contract-brand small { display: block; color: #63706d; font-weight: 700; }
.rental-contract-brand h1 { margin: 3px 0; color: #7a1831; font-size: 25px; }
.rental-contract-reference { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin: 12px 0; }
.rental-contract-reference > div, .rental-contract-grid > div { padding: 9px 11px; border: 1px solid #ded3cc; border-radius: 9px; background: #fbf8f5; }
.rental-contract-reference span, .rental-contract-reference strong, .rental-contract-grid span, .rental-contract-grid strong { display: block; }
.rental-contract-reference span, .rental-contract-grid span { color: #6a7472; font-size: 11.5px; font-weight: 800; }
.rental-contract-reference strong, .rental-contract-grid strong { margin-top: 2px; color: #421522; font-size: 14px; }
.rental-contract-intro { margin: 12px 0; padding: 11px 14px; border-right: 4px solid #c6943e; border-radius: 8px; background: #fff9ef; font-size: 13.5px; font-weight: 700; }
.rental-contract-parties, .rental-contract-section { margin-top: 14px; }
.rental-contract-parties h2, .rental-contract-section h2 { margin: 0 0 9px; padding: 7px 11px; color: #fff; border-radius: 8px; background: #6f1731; font-size: 16px; }
.rental-contract-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rental-contract-parties h2 { grid-column: 1 / -1; }
.rental-party { padding: 12px; border: 1px solid #ddd3cb; border-radius: 10px; background: #fff; }
.rental-party > b { display: block; margin-bottom: 7px; color: #7a1831; font-size: 15px; }
.rental-party dl { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0; }
.rental-party dl div { padding: 6px 8px; border-radius: 7px; background: #f8f5f2; }
.rental-party dt { color: #707a78; font-size: 10.5px; font-weight: 700; }
.rental-party dd { margin: 1px 0 0; font-size: 13px; font-weight: 900; }
.rental-contract-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.rental-contract-grid .wide { grid-column: span 2; }
.rental-contract-finance { width: 100%; border-collapse: collapse; font-size: 13px; }
.rental-contract-finance th, .rental-contract-finance td { padding: 9px; border: 1px solid #d9ceca; }
.rental-contract-finance th { width: 18%; color: #6f1731; background: #f7edef; }
.rental-contract-finance td { font-weight: 800; }
.rental-contract-finance small { display: block; margin-top: 2px; color: #687472; }
.rental-contract-terms ol { margin: 0; padding: 0 24px 0 0; }
.rental-contract-terms li { margin-bottom: 8px; padding: 8px 10px; border-bottom: 1px dashed #d9ceca; font-size: 13px; line-height: 1.75; }
.rental-contract-terms li strong { color: #6f1731; }
.rental-contract-terms li span { display: block; }
.rental-contract-signatures { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 25px; }
.rental-contract-signatures > div { min-height: 105px; padding: 12px; border: 1px solid #cfc4bc; border-radius: 10px; text-align: center; }
.rental-contract-signatures span, .rental-contract-signatures strong, .rental-contract-signatures em { display: block; }
.rental-contract-signatures span { color: #6f1731; font-weight: 900; }
.rental-contract-signatures strong { margin: 8px 0 18px; }
.rental-contract-signatures em { color: #64706d; font-size: 10px; }
.rental-contract-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 15px; padding-top: 8px; border-top: 1px solid #cfc8c2; color: #66716f; font-size: 9px; }
@media(max-width:760px){.rental-contract-reference,.rental-contract-grid,.rental-contract-signatures{grid-template-columns:1fr 1fr}.rental-contract-parties{grid-template-columns:1fr}.rental-contract-grid .wide{grid-column:span 2}.rental-contract-signatures>div:last-child{grid-column:1/-1}}
.table-card { overflow: auto; border: 1px solid var(--line); border-radius: 0 0 15px 15px; background: var(--surface); box-shadow: 0 10px 28px rgba(28,52,47,.045); }
.data-table { width: 100%; border-collapse: collapse; min-width: 830px; }
.data-table th { padding: 13px 15px; text-align: right; color: #69756f; background: #f1efe8; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 700; white-space: nowrap; }
.units-table { min-width: 1280px; }
.utility-number { direction: ltr; text-align: center !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table td { padding: 14px 15px; border-bottom: 1px solid #edf0f2; font-size: 11px; vertical-align: middle; }
.data-table tbody tr:hover { background: #f8f6f0; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.dues-table th { font-size: 11.5px; font-weight: 800; }
.dues-table td { font-size: 12.5px; font-weight: 600; line-height: 1.55; }
.dues-table .entity strong { font-size: 12.5px; font-weight: 800; }
.dues-table .entity small { font-size: 10.5px; font-weight: 600; }
.dues-table .money { font-size: 13px; font-weight: 900; }
.dues-table .status-pill,
.dues-table .soft-button { font-size: 11px; font-weight: 800; }
.dues-selection-summary { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border: 1px solid #ead5b7; border-top: 0; color: #5b172b; background: linear-gradient(90deg,#fffaf0,#f8ead2); }
.dues-selection-summary span { color: #8b6a38; font-size: 11px; font-weight: 800; }
.dues-selection-summary strong { padding: 5px 10px; border-radius: 8px; color: #5b172b; background: rgba(255,255,255,.75); font-size: 12px; }
.dues-selection-summary small { margin-right: auto; color: #746552; font-size: 10px; font-weight: 700; }
.dues-table.owner-filtered,
.dues-table.property-filtered { min-width: 720px; }
@media (max-width: 700px) {
  .dues-selection-summary { align-items: flex-start; flex-direction: column; }
  .dues-selection-summary small { margin-right: 0; }
}
.entity { display: flex; align-items: center; gap: 10px; }
.entity-avatar { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--navy-700); background: #eaf1f4; font-weight: 800; font-size: 11px; }
.entity strong, .entity small { display: block; }
.entity strong { font-size: 11px; color: var(--ink); }
.entity small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.money { direction: rtl; font-weight: 800; color: var(--navy-900); white-space: nowrap; }
.muted { color: var(--muted); }
.row-actions { display: flex; gap: 5px; }
.row-action { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #62737e; }
.row-action:hover { color: var(--navy-700); border-color: #a9bec9; }
.empty-state { padding: 42px 20px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--navy-900); }
.empty-workspace { min-height: 430px; padding: 48px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-workspace-mark { width: 86px; height: 86px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 24px; color: var(--gold); background: var(--navy-950); box-shadow: 0 15px 34px rgba(12,34,50,.18); }
.empty-workspace-mark svg { width: 51px; height: 51px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.empty-workspace h2 { margin: 0; color: var(--navy-950); font-size: 23px; }
.dashboard-welcome { min-height: 220px; margin-bottom: 20px; padding: 30px 34px; display: flex; align-items: center; justify-content: space-between; gap: 32px; overflow: hidden; position: relative; border-radius: 20px; color: white; background: linear-gradient(125deg, #102421, var(--navy-800) 68%, #6f352f); box-shadow: 0 20px 48px rgba(19,41,39,.18); }
.dashboard-welcome::after { content: ""; position: absolute; width: 260px; height: 260px; left: -65px; top: -100px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 84px rgba(255,255,255,.02); }
.welcome-copy { position: relative; z-index: 1; max-width: 650px; }
.welcome-copy .section-kicker { color: #e6bd6d; }
.welcome-copy h2 { margin: 8px 0 7px; font-size: clamp(24px,3vw,36px); }
.welcome-copy p { max-width: 620px; margin: 0 0 20px; color: #c2d1d9; font-size: 14px; line-height: 1.8; }
.welcome-brand { width: 190px; flex: 0 0 auto; position: relative; z-index: 1; padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.96); text-align: center; box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.welcome-brand img { width: 100%; height: 92px; object-fit: contain; border-radius: 12px; }
.welcome-brand span { display: block; margin-top: 5px; color: #a9271d; font-size: 11px; font-weight: 800; }
.empty-dashboard-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,.65fr); gap: 20px; }
.quick-start-panel .setup-grid { width: 100%; padding: 18px; }
.setup-grid button { align-content: center; }
.setup-grid small { color: var(--muted); font-size: 9px; font-weight: 400; }
.readiness-list { padding: 8px 18px 18px; }
.readiness-list div { padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); font-size: 11px; }
.readiness-list div:last-child { border-bottom: 0; }
.readiness-list span { color: var(--ink); font-weight: 700; }
.readiness-list strong { color: var(--teal); font-size: 10px; }
.setup-grid { width: min(740px, 100%); display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.setup-grid button { min-height: 100px; padding: 14px; display: grid; place-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 13px; color: var(--navy-900); background: #f9fbfb; }
.setup-grid button:hover { border-color: #9fb9c5; background: #f2f7f8; transform: translateY(-2px); }
.setup-grid strong { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--navy-800); font-size: 12px; }
.setup-grid span { font-size: 10px; font-weight: 700; }

.payment-layout { display: grid; grid-template-columns: minmax(430px, .92fr) minmax(0, 1.38fr); gap: 22px; align-items: start; }
.receipt-search-panel { margin-bottom: 20px; padding: 20px 22px; border-color: #dacbd0; background: linear-gradient(135deg,#fffdfc,#fbf7f4); }
.receipt-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.receipt-search-heading h2 { margin: 3px 0 4px; color: var(--navy-950); font-size: 18px; }
.receipt-search-heading p { margin: 0; color: var(--muted); }
.receipt-search-count { padding: 8px 12px; border-radius: 999px; color: #6b1733; background: #f7e9ee; font-size: 11px; font-weight: 900; white-space: nowrap; }
.receipt-search-box { display: flex; align-items: center; gap: 10px; padding: 6px 13px; border: 1px solid #ccb9c0; border-radius: 13px; background: #fff; }
.receipt-search-box > span { color: #8b2345; font-size: 20px; font-weight: 900; }
.receipt-search-box .form-control { height: 42px; border: 0; box-shadow: none; background: transparent; font-weight: 800; }
.receipt-search-results { margin-top: 14px; max-height: 360px; overflow: auto; }
.receipt-search-hint { padding: 11px 14px 0; color: var(--muted); font-size: 11px; }
.receipt-search-open { min-height: 34px; padding: 7px 12px; white-space: nowrap; font-size: 10px; }
.expense-layout { display: grid; grid-template-columns: minmax(310px,.7fr) minmax(0,1.45fr); gap: 20px; align-items: start; }
.expense-form { padding: 22px; }
.expense-form h2 { margin: 4px 0 18px; color: var(--navy-950); font-size: 18px; }
.expense-filter-row { padding: 13px 15px; display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: #fbfcfc; }
.expense-filter-row .field-inline { min-width: 135px; flex: 1; }
.payment-form { position: relative; overflow: hidden; padding: 0; border-color: #e5d8dc; background: #fffdfc; }
.payment-form::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg,#5e102b,#9a2d50,#d2a34c); }
.payment-form-header { padding: 26px 24px 20px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid #eee4e6; background: linear-gradient(135deg,#fff 0%,#fff9f6 100%); }
.payment-form-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; color: #fff; background: linear-gradient(145deg,#8b2345,#5e102b); font-size: 19px; font-weight: 900; box-shadow: 0 10px 20px rgba(94,16,43,.2); }
.payment-form-header h2 { margin: 3px 0 2px; font-size: 20px; color: var(--navy-950); }
.payment-form-header p { margin: 0; color: var(--muted); font-size: 9px; }
.payment-entry-form { padding: 20px 22px 24px; gap: 15px; }
.payment-ledger-empty { min-height: 290px; display: grid; place-content: center; text-align: center; padding: 38px; border: 1px dashed #c7d9de; background: linear-gradient(145deg,#f7fbfc,#fff); }
.payment-ledger-empty h2 { margin: 12px 0 7px; color: var(--navy-950); }
.payment-ledger-empty p { max-width: 540px; margin: 0 auto; color: var(--muted); line-height: 1.9; }
.ledger-empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto; border-radius: 18px; background: #e7f2f5; color: var(--navy-950); font-size: 25px; }
.account-ledger-head { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 20px 22px; }
.account-ledger-head h2 { margin: 4px 0; color: var(--navy-950); }
.account-ledger-head p { margin: 0; color: var(--muted); }
.ledger-totals { display: grid; grid-template-columns: repeat(3,minmax(105px,1fr)); gap: 9px; }
.ledger-totals span { min-width: 112px; padding: 11px 13px; border-radius: 12px; background: #f2f7f8; color: var(--muted); font-size: 11px; }
.ledger-totals strong { display: block; margin-top: 5px; color: var(--navy-950); font-size: 15px; }
.payment-lookup { grid-column: 1 / -1; padding: 17px; border: 1px solid #dfcbd2; border-radius: 15px; background: linear-gradient(135deg,#fff8fa,#fff); box-shadow: 0 8px 20px rgba(78,27,43,.045); }
.payment-lookup-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.payment-lookup-head > div { display: flex; align-items: center; gap: 9px; }
.payment-lookup-head strong { color: #4d1426; font-size: 12px; }
.payment-lookup-head span { color: var(--muted); font-size: 9px; }
.payment-step-number { width: 24px; height: 24px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: #fff !important; background: #7d1838; font-size: 10px !important; font-weight: 900; box-shadow: 0 4px 10px rgba(125,24,56,.16); }
.payment-lookup-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.payment-entry-form .form-control { height: 46px; border-color: #dfd7d2; border-radius: 11px; background: #fcfaf7; }
.payment-entry-form .form-control:focus { border-color: #9a2d50; box-shadow: 0 0 0 3px rgba(154,45,80,.08); }
.payment-account-summary { margin-top: -2px; }
.payment-account-summary .contract-summary { min-height: 62px; display: grid; align-content: center; border: 1px solid #d8e4e8; border-radius: 13px; background: #f5fafb; }
.payment-entry-section { padding: 19px; border: 1px solid #e8e0dc; border-radius: 15px; background: #fff; }
.payment-entry-section.full { grid-column: 1 / -1; }
.payment-section-title { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.payment-section-title strong,.payment-section-title small { display: block; }
.payment-section-title strong { color: #4d1426; font-size: 12px; }
.payment-section-title small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.payment-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; align-items: start; }
.amount-input-wrap { position: relative; }
.amount-input-wrap .form-control { padding-left: 46px; font-size: 16px; font-weight: 800; color: #5e102b; direction: ltr; text-align: right; }
.payment-amount-field > label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.payment-amount-field > label small { color: #9a6b20; font-size: 8px; font-weight: 600; }
.payment-amount-field .amount-input-wrap .form-control { height: 60px; border-width: 2px; font-size: 23px; }
.payment-amount-field .amount-input-wrap .form-control[readonly] { cursor: not-allowed; color: #a32639; border-color: #e3aab2; background: #fff1f2; }
.payment-amount-field .amount-input-wrap > span { font-size: 12px; }
.amount-input-wrap > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #8f785e; font-size: 10px; font-weight: 800; }
.payment-amount-field { grid-row: span 2; }
.payment-notes-field { grid-column: 1 / -1; }
.payment-notes-field textarea.form-control { min-height: 66px; }
.quick-amounts { margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.quick-amounts button { flex: 1; min-width: 65px; padding: 7px 8px; border: 1px solid #e3cbd3; border-radius: 8px; color: #6d1734; background: #fff8fa; font-size: 9px; font-weight: 800; transition: .18s; }
.quick-amounts button:hover { color: #fff; border-color: #7d1838; background: #7d1838; transform: translateY(-1px); }
.quick-amounts button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.payment-submit-area { padding-top: 2px; }
.payment-submit-area .payment-total { margin-bottom: 10px; border: 1px solid #ead9c0; border-radius: 12px; background: linear-gradient(135deg,#fffaf1,#fff); }
.payment-submit-area .primary-button { min-height: 48px; border-radius: 12px; background: linear-gradient(135deg,#7d1838,#5e102b); box-shadow: 0 10px 22px rgba(94,16,43,.18); }
.section-kicker { color: var(--gold); font-size: 10px; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-group { display: grid; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { color: #4f5f68; font-size: 10px; font-weight: 700; }
.hijri-date-hint { display: block; margin-top: 6px; color: #9a6b20; font-size: 11px; font-weight: 700; }
.hijri-date-hint:empty { display: none; }
.form-control { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #ddd9cf; border-radius: 9px; outline: 0; color: var(--ink); background: #faf9f5; font-size: 12px; }
textarea.form-control { min-height: 80px; padding-top: 11px; resize: vertical; }
.form-control:focus { border-color: #78a5b9; background: #fff; box-shadow: 0 0 0 3px rgba(23,68,94,.06); }
.property-photo-box { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: center; padding: 13px; border: 1px dashed #b9cbd3; border-radius: 13px; background: #f8fbfc; }
.property-photo-preview { height: 126px; display: grid; place-items: center; align-content: center; gap: 5px; overflow: hidden; border-radius: 11px; color: var(--navy-700); background: #eaf2f5; }
.property-photo-preview span { font-size: 35px; }
.property-photo-preview small { color: var(--muted); font-size: 10px; }
.property-photo-preview.has-image { background: #dde6ea; }
.property-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.property-photo-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.property-photo-actions .secondary-button { display: inline-flex; align-items: center; justify-content: center; }
.map-search-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.property-map-field > small { color: var(--muted); font-size: 9px; }
.national-address-head { margin-top: 4px; padding: 12px 14px; border-radius: 10px; background: #eef5f7; }
.national-address-head strong, .national-address-head span { display: block; }
.national-address-head strong { color: var(--navy-900); font-size: 12px; }
.national-address-head span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.property-detail-image { width: 100%; max-height: 260px; margin-bottom: 14px; object-fit: cover; border-radius: 13px; border: 1px solid var(--line); }
.contract-summary { margin: 15px 0; padding: 14px; border-radius: 12px; border: 1px solid #dce8ec; background: #f4f9fa; display: grid; gap: 9px; }
.contract-summary.empty { color: var(--muted); text-align: center; font-size: 11px; }
.summary-line { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 10px; }
.summary-line strong { color: var(--navy-950); }
.receipt-payment-description { direction: rtl; }
.receipt-payment-description .summary-line { display: grid; grid-template-columns: minmax(130px, .35fr) minmax(0, 1fr); align-items: start; gap: 16px; text-align: right; }
.receipt-payment-description .summary-line span,
.receipt-payment-description .summary-line strong { text-align: right; }
.receipt-payment-description .summary-line strong { line-height: 1.8; }
@media (max-width: 520px) {
  .receipt-payment-description .summary-line { grid-template-columns: 1fr; gap: 5px; }
}
.payment-total { margin: 16px 0; padding: 15px; border-radius: 12px; background: var(--navy-950); color: white; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.payment-total span { color: #b6c9d3; font-size: 10px; }
.payment-total strong { color: #fff; font-size: 20px; }
.wide { width: 100%; }
.quick-amounts { display: flex; gap: 6px; flex-wrap: wrap; }
.quick-amounts button { padding: 6px 10px; border: 1px solid #dbe4e8; border-radius: 7px; background: #fff; color: var(--navy-700); font-size: 9px; }
.due-allocation { margin-top: 3px; display: grid; gap: 7px; }
.due-choice { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid #dfe7ea; border-radius: 9px; background: #fff; cursor: pointer; }
.due-choice:has(input:checked) { border-color: #93b5c4; background: #f1f7f9; box-shadow: inset 3px 0 var(--gold); }
.due-choice input { accent-color: var(--navy-800); }
.due-choice span { font-size: 10px; color: var(--muted); }
.due-choice strong { font-size: 10px; color: var(--navy-950); }
.receipt { direction: rtl; color: var(--ink); }
.receipt-brand { padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px; text-align: center; color: var(--navy-950); background: #fffdf9; }
.receipt-brand img { width: 220px; max-width: 100%; height: 84px; display: block; margin: 0 auto 7px; object-fit: contain; border-radius: 12px; }
.receipt-brand strong, .receipt-brand span { display: block; }
.receipt-brand strong { font-size: 15px; }
.receipt-brand span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.receipt-number { display: inline-flex; margin: 14px 0; padding: 7px 11px; border: 1px solid #efc4c0; border-radius: 8px; color: #b4232c; background: #fff2f0; font-size: 12px; font-weight: 900; direction: ltr; }
.receipt-number-inline { margin-top: 3px; color: #b4232c; font-weight: 800; direction: ltr; unicode-bidi: isolate; }
.receipt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.receipt-cell { padding: 11px 12px; background: #fff; }
.receipt-cell span, .receipt-cell strong { display: block; }
.receipt-cell span { margin-bottom: 3px; color: var(--muted); font-size: 9px; }
.receipt-cell strong { font-size: 11px; color: var(--navy-950); }
.receipt-allocations { margin-top: 14px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.receipt-allocations h3 { margin: 0; padding: 10px 12px; color: var(--navy-950); background: #f6f8f9; font-size: 11px; }
.receipt-allocation-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 10px; }
.receipt-schedule-table { margin: 0; border: 0; border-radius: 0; }
.receipt-schedule-table .data-table { min-width: 720px; }
.receipt-schedule-table .data-table th { padding: 9px 8px; font-size: 10px; white-space: normal; }
.receipt-schedule-table .data-table td { padding: 10px 8px; font-size: 10px; vertical-align: middle; }
.receipt-schedule-table td small { display: block; margin-top: 3px; }
.receipt-total { margin-top: 14px; padding: 14px; display: flex; align-items: center; justify-content: space-between; border-radius: 11px; color: white; background: var(--navy-950); }
.receipt-total strong { color: var(--gold); font-size: 18px; }
.receipt-approval { margin-top: 16px; padding: 14px; border: 1px solid #d7c7bd; border-radius: 13px; background: linear-gradient(145deg,#fffdfa,#faf6f2); break-inside: avoid; }
.receipt-amount-box { min-height: 66px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 2px solid #9b1c38; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 3px #faedf0; }
.receipt-amount-box span { color: #5a1828; font-size: 13px; font-weight: 900; }
.receipt-amount-box strong { color: #9b1c38; font-size: 22px; font-weight: 950; direction: ltr; unicode-bidi: isolate; }
.receipt-signatures { margin-top: 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.receipt-signature { min-height: 112px; padding: 11px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #e1d5cd; border-radius: 10px; background: white; text-align: center; }
.receipt-signature span { color: #5a1828; font-size: 12px; font-weight: 900; }
.receipt-signature strong { width: 100%; color: #151515; font-size: 11px; font-style: normal; }
.receipt-signature i { width: 78%; border-bottom: 1px solid #776d67; }
.receipt-stamp img { display: none; }
@media (max-width: 520px) {
  .receipt-signatures { grid-template-columns: 1fr; }
  .receipt-amount-box { align-items: flex-start; flex-direction: column; }
}
.expense-voucher-number { color: #a9271d; direction: ltr; unicode-bidi: isolate; }
.expense-voucher-browser { padding: 0; overflow: hidden; }
.expense-voucher-browser > .panel-head { padding: 20px 22px; }
.voucher-filter-bar { margin: 0 22px 18px; display: grid; grid-template-columns: minmax(230px,1fr) minmax(230px,1fr) minmax(155px,.52fr) minmax(155px,.52fr) auto; align-items: end; gap: 12px; }
.voucher-search-box { margin: 0; padding: 10px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid #ead8cf; border-radius: 14px; background: #fffaf6; }
.voucher-search-box span { color: #8e2638; font-size: 22px; }
.voucher-search-box .form-control { border: 0; background: transparent; box-shadow: none; font-size: 15px; }
.voucher-date-field { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.voucher-date-field .form-control { min-height: 48px; background: #fff; }
.expense-voucher-clear-dates { min-height: 48px; }
.voucher-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
.expense-voucher-print-context { display: none; }
.expense-voucher-statement { margin-top: 14px; padding: 16px; border: 1px solid #ead8cf; border-radius: 11px; background: #fffaf6; }
.expense-voucher-statement span,.expense-voucher-statement strong { display: block; }
.expense-voucher-statement span { margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.voucher-signatures { margin-top: 28px; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.voucher-signatures div { min-height: 74px; padding: 12px; border-top: 1px solid var(--line); text-align: center; }
.voucher-signatures span,.voucher-signatures strong { display: block; }
.voucher-signatures span { color: var(--muted); font-size: 10px; }
.voucher-signatures strong { margin-top: 18px; color: var(--navy-950); font-size: 11px; }
.settlement-control { border-top: 4px solid #7b1930; }
.settlement-preview { margin-top: 18px; }
.settlement-amount-field { padding: 13px; border: 2px solid #8f1d3b; border-radius: 13px; background: linear-gradient(145deg,#fffafb,#f8edf1); }
.settlement-amount-field label { color: #67142c; font-size: 14px; font-weight: 900; }
.settlement-amount-field .form-control { height: 54px; color: #102f2b; border-color: #c995a5; background: #fff; font-size: 20px; font-weight: 900; text-align: center; }
.settlement-amount-field small { display: block; margin-top: 7px; color: #68575c; font-size: 11px; font-weight: 700; line-height: 1.6; }
.settlement-impact { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: #d8c28f; background: #fff9e9; }
.settlement-impact strong { color: #74182d; }
.settlement-impact span { color: var(--navy-950); }
.danger-notice { margin-top: 10px; border-color: #efc4c0; color: #9b1c26; background: #fff2f0; }
.deduction { color: #b4232c; }

.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.report-type-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 11px; margin-bottom: 16px; }
.report-type-card { min-height: 106px; padding: 15px; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; align-items: center; gap: 3px 10px; border: 1px solid var(--line); border-radius: 14px; text-align: right; color: var(--ink); background: #fff; }
.report-type-card > span { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--navy-700); background: #eaf2f5; font-size: 17px; }
.report-type-card strong { align-self: end; color: var(--navy-950); font-size: 12px; }
.report-type-card small { align-self: start; color: var(--muted); font-size: 8px; line-height: 1.5; }
.report-type-card:hover { border-color: #9fb9c5; transform: translateY(-1px); }
.report-type-card.active { border-color: var(--gold); background: linear-gradient(135deg,#fffaf0,#fff); box-shadow: inset 0 -3px var(--gold); }
.report-type-card.active > span { color: #8d641d; background: var(--gold-soft); }
.report-filter-panel { margin-bottom: 18px; padding: 16px; display: grid; grid-template-columns: minmax(220px,1.5fr) minmax(150px,.8fr) minmax(150px,.8fr) auto; align-items: end; gap: 11px; }
.report-filter-panel.has-owner-property { grid-template-columns: minmax(210px,1.35fr) minmax(190px,1.2fr) minmax(145px,.75fr) minmax(145px,.75fr) auto; }
.report-filter-panel.cashbox-filter-panel { grid-template-columns: minmax(180px,1fr) minmax(180px,1fr) auto; }
.report-tenant-search-group { position: relative; }
.report-tenant-search-group small { display: block; margin-top: 5px; color: #6b7471; font-size: 10px; font-weight: 700; }
.report-tenant-search { padding-left: 38px; border-color: #b8cbc7; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236f1731' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 12px center; }
.report-tenant-search:focus { border-color: #7a1831; box-shadow: 0 0 0 3px rgba(122,24,49,.1); }
.report-prompt { min-height: 230px; display: grid; place-content: center; }
.selected-report { display: grid; gap: 18px; }
.report-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
.settlement-formula { padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-color: #e3c4c1; background: linear-gradient(135deg,#fff7f6,#fff); }
.settlement-formula strong { color: #8f1f28; font-size: 13px; }
.settlement-formula span { color: var(--navy-950); font-size: 11px; }
.settlement-formula b { color: #8f1f28; font-size: 14px; }
.report-title-card { padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #dce6e9; border-radius: 15px; background: linear-gradient(120deg,#f7fafb,#fff); }
.report-title-card h2 { margin: 0; color: var(--navy-950); font-size: 16px; }
.report-section { break-inside: avoid; }
.compact-payment-summary, .compact-report-heading, .compact-report-total { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.compact-payment-summary span, .compact-report-heading > div, .compact-report-total span { display: grid; gap: 5px; padding: 14px 16px; border: 1px solid #e2d8cf; border-radius: 14px; background: #fffdf9; color: #687174; font-size: 13px; }
.compact-payment-summary strong, .compact-report-heading strong, .compact-report-total strong { color: #102f2b; font-size: 16px; }
.compact-payment-report { direction: rtl; color: #102f2b; }
.compact-report-brand { display: flex; align-items: center; gap: 16px; padding-bottom: 15px; border-bottom: 2px solid #7a1831; }
.compact-report-brand img { width: 190px; height: 72px; object-fit: contain; border-radius: 11px; }
.compact-report-brand strong, .compact-report-brand span { display: block; }
.compact-report-brand strong { color: #7a1831; font-size: 18px; }
.compact-report-brand span { margin-top: 4px; color: #52615f; }
.compact-report-heading { grid-template-columns: 1fr 1fr; margin: 16px 0 12px; }
.compact-report-total { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.compact-report-total span:last-child { border-color: #d8b06d; background: #fff8e9; }
.compact-report-total span:last-child strong { color: #7a1831; font-size: 21px; }
.compact-report-table { overflow: auto; }
.compact-report-table .data-table { min-width: 920px; }
.compact-report-footer { display: flex; justify-content: space-between; gap: 18px; margin-top: 14px; padding-top: 10px; border-top: 1px solid #ddd3ca; color: #697270; font-size: 12px; }
.owner-statement-report { direction: rtl; color: #102f2b; }
.owner-report-brand { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 3px solid #7a1831; }
.owner-report-brand img { width: 185px; height: 70px; object-fit: contain; }
.owner-report-brand strong, .owner-report-brand span { display: block; }
.owner-report-brand strong { color: #7a1831; font-size: 19px; }
.owner-report-brand span { margin-top: 3px; color: #53615f; font-size: 14px; }
.owner-report-identity { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 10px; margin: 14px 0; }
.owner-report-identity > div { padding: 11px 13px; border: 1px solid #ddd3ca; border-radius: 12px; background: #fffdf9; }
.owner-report-identity span, .owner-report-identity strong { display: block; }
.owner-report-identity span { color: #6d7775; font-size: 12px; }
.owner-report-identity strong { margin-top: 4px; color: #102f2b; font-size: 14px; line-height: 1.5; }
.owner-report-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.owner-report-summary > div { display: grid; gap: 4px; padding: 11px 13px; border-radius: 12px; background: #edf7f4; border: 1px solid #cfe5df; }
.owner-report-summary > div.deduct { background: #fff2f1; border-color: #f0d0cc; }
.owner-report-summary span { color: #596763; font-size: 11px; }
.owner-report-summary strong { color: #0d554b; font-size: 16px; }
.owner-report-summary .deduct strong { color: #a62a34; }
.owner-report-balance { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 16px; margin: 13px 0 16px; padding: 14px 18px; border-radius: 13px; color: white; background: linear-gradient(135deg,#0d4d45,#12332f); }
.owner-report-balance.negative { background: linear-gradient(135deg,#8d2430,#5f1822); }
.owner-report-balance span { font-size: 14px; }
.owner-report-balance strong { grid-row: 1 / 3; grid-column: 2; font-size: 24px; color: #f2c978; }
.owner-report-balance small { opacity: .82; font-size: 10px; }
.owner-report-table { margin-top: 13px; }
.owner-report-section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; padding: 0 3px; }
.owner-report-section-title h3 { margin: 0; color: #7a1831; font-size: 14px; }
.owner-report-section-title span { color: #61706d; font-size: 11px; }
.owner-report-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 14px; padding-top: 9px; border-top: 1px solid #d8d0c9; color: #697270; font-size: 10px; }
.owner-deposits-report { direction: rtl; color: #101010; }
.owner-grouped-payments-report { direction: rtl; color: #101010; }
.grouped-payments-button { color: #fff; border-color: #8f1d3b; background: linear-gradient(135deg,#8f1d3b,#641126); box-shadow: 0 7px 16px rgba(122,24,49,.2); }
.grouped-payment-balances { margin-top: 16px; padding: 16px; border: 1px solid #dbc9bd; border-radius: 16px; background: linear-gradient(145deg,#fffdfa,#f8f3ee); }
.grouped-balance-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.grouped-balance-grid > div { display: grid; gap: 6px; padding: 14px; border: 1px solid #ded8d0; border-radius: 13px; background: #fff; }
.grouped-balance-grid span { color: #252525; font-size: 12px; font-weight: 800; }
.grouped-balance-grid strong { color: #102f2b; font-size: 18px; font-weight: 900; }
.grouped-balance-grid small { color: #4d5553; font-weight: 700; }
.grouped-balance-grid .owner-balance { border-color: #b8d7e6; background: #eef7fb; }
.grouped-balance-grid .owner-balance strong { color: #245f7b; }
.grouped-balance-grid .bank-balance { border-color: #beddd5; background: #edf8f5; }
.grouped-balance-grid .cash-balance { border-color: #e2c995; background: #fff8e8; }
.grouped-balance-grid .office-balance { color: #fff; border-color: #65132a; background: linear-gradient(135deg,#8f1d3b,#641126); }
.grouped-balance-grid .office-balance span, .grouped-balance-grid .office-balance strong, .grouped-balance-grid .office-balance small { color: #fff; }
.grouped-balance-check { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: #102f2b; color: #fff; font-weight: 800; }
.grouped-owner-net { margin-top: 14px; padding: 16px; border: 2px solid #8f1d3b; border-radius: 16px; background: linear-gradient(145deg,#fffaf7,#f8eee7); box-shadow: 0 8px 22px rgba(104,25,45,.1); }
.grouped-owner-net-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.grouped-owner-net-title span { color: #7a1831; font-size: 15px; font-weight: 900; }
.grouped-owner-net-title small { color: #475552; font-weight: 800; }
.grouped-owner-net-formula { display: flex; align-items: stretch; gap: 8px; }
.grouped-owner-net-formula > div { flex: 1 1 0; }
.grouped-owner-net-formula > div { display: grid; gap: 5px; padding: 11px 13px; border: 1px solid #d7ddd9; border-radius: 11px; background: #fff; }
.grouped-owner-net-formula > b { align-self: center; color: #7a1831; font-size: 21px; }
.grouped-owner-net-formula span { color: #323b39; font-size: 11px; font-weight: 800; }
.grouped-owner-net-formula strong { color: #103b35; font-size: 18px; font-weight: 900; }
.grouped-owner-net-formula .deduction { border-color: #efc9c5; background: #fff3f1; }
.grouped-owner-net-formula .deduction strong { color: #a62a34; }
.grouped-owner-net-formula .net-result { border-color: #8f1d3b; background: linear-gradient(135deg,#8f1d3b,#641126); }
.grouped-owner-net-formula .net-result span, .grouped-owner-net-formula .net-result strong { color: #fff; }
.grouped-owner-net.period-closed { border-color: #176b5e; background: linear-gradient(145deg,#f4fffb,#e8f7f2); }
.grouped-owner-net.period-closed .grouped-owner-net-title span { color: #0d554b; }
.grouped-owner-net.period-closed .net-result { border-color: #176b5e; background: linear-gradient(135deg,#176b5e,#0d443d); }
.grouped-owner-net p { margin: 10px 2px 0; color: #3f4b48; font-size: 11px; font-weight: 700; }
.owner-deposits-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 13px 0; }
.owner-deposits-summary > div { display: grid; gap: 5px; padding: 15px; border: 1px solid #d8dfdf; border-radius: 13px; }
.owner-deposits-summary span { color: #252525; font-size: 12px; font-weight: 800; }
.owner-deposits-summary strong { font-size: 21px; font-weight: 900; }
.owner-deposits-summary small { color: #363f3d; font-size: 11px; font-weight: 700; }
.owner-deposits-summary .direct { border-color: #b8d7e6; background: #eef7fb; }
.owner-deposits-summary .direct strong, .owner-direct-value { color: #245f7b; }
.owner-deposits-summary .office { border-color: #beddd5; background: #edf8f5; }
.owner-deposits-summary .office strong, .office-held-value { color: #086b57; }
.owner-deposits-summary .total { border-color: #e2c995; background: #fff8e8; }
.owner-deposits-summary .total strong { color: #7a1831; }
.grouped-payments-summary { grid-template-columns: repeat(4,minmax(0,1fr)); }
.grouped-payments-summary .expenses { border-color: #edc8c3; background: #fff3f1; }
.grouped-payments-summary .expenses strong { color: #a62a34; }
.grouped-expenses-section { padding-top: 12px; border-top: 2px solid #ead4c8; }
.grouped-expenses-section .owner-report-section-title h3 { color: #a0442f; }
.grouped-expenses-section .data-table thead th { background: #8e3f2f; }
.grouped-expenses-section .data-table tfoot th { color: #7d2d22; background: #fff0e9; border-top: 2px solid #c47661; }
.expense-reference-inline { color: #9b1c3d; }
.owner-deposits-note { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; padding: 11px 14px; border: 1px solid #e4d3b3; border-radius: 11px; background: #fffbef; }
.owner-deposits-note strong { color: #7a1831; }
.owner-deposits-note span { color: #252525; font-size: 12px; font-weight: 700; }
.owner-deposits-report .data-table tfoot th { padding: 12px 10px; color: #101010; background: #f2eadc; border-top: 2px solid #c7a563; font-size: 13px; font-weight: 900; }
.owner-office-commission { display: grid; grid-template-columns: 1fr auto 1fr auto 1.25fr; align-items: stretch; gap: 9px; margin-top: 16px; padding: 14px; border: 2px solid #7a1831; border-radius: 14px; background: linear-gradient(145deg,#fffaf7,#f5e9e2); break-inside: avoid; page-break-inside: avoid; }
.owner-office-commission > div { display: grid; gap: 6px; padding: 11px 13px; border: 1px solid #d9d0c9; border-radius: 10px; background: #fff; }
.owner-office-commission > b { align-self: center; color: #7a1831; font-size: 21px; }
.owner-office-commission span { color: #303735; font-size: 11px; font-weight: 800; }
.owner-office-commission strong { color: #103b35; font-size: 18px; font-weight: 900; }
.owner-office-commission .commission-result { border-color: #7a1831; background: linear-gradient(135deg,#8f1d3b,#641126); }
.owner-office-commission .commission-result span, .owner-office-commission .commission-result strong { color: #fff; }
.owner-office-commission p { grid-column: 1 / -1; margin: 0; color: #5b423b; font-size: 11px; font-weight: 700; }
.cashbox-screen-report { padding: 22px; }
.cashbox-report { direction: rtl; color: #101010; }
.cashbox-report-brand { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 3px solid #7a1831; }
.cashbox-report-brand img { width: 185px; height: 70px; object-fit: contain; }
.cashbox-report-brand strong, .cashbox-report-brand span { display: block; }
.cashbox-report-brand strong { color: #7a1831; font-size: 19px; font-weight: 900; }
.cashbox-report-brand span { margin-top: 3px; color: #252525; font-size: 14px; font-weight: 800; }
.cashbox-period { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 14px 0 11px; padding: 11px 14px; border: 1px solid #d9d1c7; border-radius: 12px; background: #fffdf9; }
.cashbox-period span { font-weight: 800; }
.cashbox-period strong { color: #7a1831; }
.cashbox-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.cashbox-summary > div { display: grid; gap: 5px; padding: 13px; border: 1px solid #d9dfe0; border-radius: 12px; background: #f7f8f8; }
.cashbox-summary span { color: #252525; font-size: 12px; font-weight: 800; }
.cashbox-summary strong { color: #101010; font-size: 17px; font-weight: 900; }
.cashbox-summary .income { border-color: #b9ded5; background: #edf8f5; }
.cashbox-summary .income strong, .cash-in { color: #086b57; }
.cashbox-summary .outcome { border-color: #edcfcc; background: #fff2f1; }
.cashbox-summary .outcome strong { color: #a62a34; }
.commission-income-report { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.commission-income-period { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; margin: 14px 0 10px; }
.commission-income-period > div, .commission-income-summary > div { padding: 12px 14px; border: 1px solid #ddd5cf; border-radius: 12px; background: #fbf8f5; }
.commission-income-period span, .commission-income-period strong, .commission-income-summary span, .commission-income-summary strong { display: block; }
.commission-income-period span, .commission-income-summary span { color: #65716f; font-size: 11px; font-weight: 800; }
.commission-income-period strong { margin-top: 4px; color: #3f1724; font-size: 14px; }
.commission-income-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin-bottom: 10px; }
.commission-income-summary strong { margin-top: 5px; color: #172523; font-size: 17px; }
.commission-income-summary .income, .commission-income-summary .collected { border-color: #aeddd2; background: #eaf8f4; }
.commission-income-summary .income strong, .commission-income-summary .collected strong { color: #087462; }
.commission-income-summary .pending { border-color: #eccbc9; background: #fff1f1; }
.commission-income-summary .pending strong { color: #aa2835; }
.commission-income-note { display: flex; gap: 10px; margin-bottom: 10px; padding: 9px 12px; border: 1px solid #ead7bc; border-radius: 10px; background: #fff9ee; font-size: 11px; }
.commission-income-note strong { color: #7a1831; }
.commission-income-table { overflow-x: auto; }
.commission-income-table .data-table { min-width: 1250px; }
.commission-income-table .data-table th { padding: 11px 8px; font-size: 11.5px; line-height: 1.4; }
.commission-income-table .data-table td { padding: 12px 8px; vertical-align: middle; font-size: 11.5px; line-height: 1.5; }
.commission-income-table .data-table tbody tr { min-height: 58px; }
.commission-income-table .form-control { min-width: 118px; padding: 8px; font-size: 11px; }
.commission-income-table .commission-reference-input { min-width: 145px; }
.commission-income-table tfoot th { padding: 10px 7px; color: #fff; background: #6f1731; }
.commission-print-value { display: none; }
.commission-save-button { padding: 8px 12px; font-size: 11px; }
.cashbox-closing { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 18px; margin: 13px 0 16px; padding: 15px 18px; border-radius: 13px; color: #fff; background: linear-gradient(135deg,#0d4d45,#12332f); }
.cashbox-closing.negative { background: linear-gradient(135deg,#8d2430,#5f1822); }
.cashbox-closing span { font-size: 15px; font-weight: 900; }
.cashbox-closing strong { grid-row: 1 / 3; grid-column: 2; color: #f2c978; font-size: 25px; font-weight: 900; }
.cashbox-closing small { color: #fff; opacity: .86; font-size: 11px; }
.cashbox-movements .table-card { border-radius: 12px; }
.cashbox-report-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 9px; border-top: 1px solid #d8d0c9; color: #252525; font-size: 11px; font-weight: 700; }

/* وضوح القراءة لجميع شاشات التشغيل */
body { color: #101010; font-size: 16px; font-weight: 600; }
:root { --ink: #101010; --muted: #252525; }
.page-head p, .panel-head p, .muted, .entity small, .alert-copy span,
.kpi-label, .kpi-meta, .form-group label, .contract-summary.empty,
.summary-line, .ledger-totals span, .account-ledger-head p,
.payment-form-header p, .payment-lookup-head span, .payment-section-title small,
.property-photo-preview small, .property-map-field > small, .national-address-head span,
.receipt-cell span, .receipt-brand span, .voucher-date-field,
.table-subline, .settings-notice, .empty-state { color: #252525; }
.page-head p { font-size: 15px; font-weight: 700; }
.eyebrow, .section-kicker { font-size: 13px; font-weight: 900; }
.panel-head h2 { font-size: 18px; font-weight: 900; }
.panel-head p { font-size: 13px; font-weight: 700; line-height: 1.6; }
.kpi-label { font-size: 14px; font-weight: 800; }
.kpi-meta { font-size: 12px; font-weight: 700; }
.primary-button, .secondary-button, .soft-button, .danger-button { font-size: 14px; font-weight: 900; }
.field-inline { font-size: 14px; font-weight: 700; color: #101010; }
.form-group label { font-size: 14px; font-weight: 900; }
.form-control { font-size: 14px; font-weight: 700; color: #101010; }
.form-control::placeholder, .field-inline::placeholder { color: #555; opacity: 1; }
.data-table th { color: #101010; font-size: 13.5px; font-weight: 900; }
.data-table td { color: #101010; font-size: 14px; font-weight: 650; line-height: 1.6; }
.entity strong { color: #101010; font-size: 14px; font-weight: 900; }
.entity small { font-size: 12px; font-weight: 700; }
.money { color: #101010; font-weight: 900; }
.status-pill { font-size: 11.5px; font-weight: 900; }
.link-button { font-size: 13px; font-weight: 900; }
.alert-copy strong { font-size: 14px; font-weight: 900; }
.alert-copy span { font-size: 12px; font-weight: 700; }
.stat-row, .readiness-list div { color: #101010; font-size: 13px; font-weight: 700; }
.summary-line { font-size: 13px; font-weight: 700; }
.summary-line strong { color: #101010; font-weight: 900; }
.contract-summary.empty { font-size: 13px; font-weight: 700; }
.payment-form-header p, .payment-lookup-head span, .payment-section-title small { font-size: 12px; font-weight: 700; }
.payment-lookup-head strong, .payment-section-title strong { color: #101010; font-size: 14px; font-weight: 900; }
.ledger-totals span { font-size: 13px; font-weight: 700; }
.ledger-totals strong { color: #101010; font-size: 16px; font-weight: 900; }
.quick-amounts button { font-size: 12px; font-weight: 900; }
.receipt-cell span { font-size: 12px; font-weight: 700; }
.receipt-cell strong { color: #101010; font-size: 14px; font-weight: 900; }
.receipt-allocations h3, .receipt-allocation-row { color: #101010; font-size: 13px; font-weight: 800; }
.report-type-card strong { color: #101010; font-size: 14px; font-weight: 900; }
.report-type-card small { color: #252525; font-size: 12px; font-weight: 700; }
.settings-notice { font-size: 13px; font-weight: 700; line-height: 1.7; }
.sidebar, .sidebar * { font-weight: 800; }
.nav-item { font-size: 14px; font-weight: 900; }
.owner-settlement-section .panel-head { background: linear-gradient(135deg,#fff8f8,#fff); }
.owner-settlement-section .table-subline { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.data-table .deduction { color: #a62a34; }
.data-table .settlement-amount { color: var(--teal); font-weight: 800; }
.report-card { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.report-card h3 { margin: 0 0 5px; font-size: 13px; color: var(--navy-950); }
.report-card p { margin: 0 0 17px; color: var(--muted); font-size: 10px; }
.mini-bars { display: grid; gap: 12px; }
.mini-bar-row { display: grid; grid-template-columns: 78px 1fr 52px; align-items: center; gap: 8px; font-size: 9px; }
.track { height: 7px; border-radius: 20px; background: #edf1f2; overflow: hidden; }
.track > span { display: block; height: 100%; border-radius: inherit; background: var(--navy-700); }
.report-number { margin: 14px 0 3px; font-size: 27px; font-weight: 800; color: var(--navy-950); }
.report-caption { color: var(--teal); font-size: 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 70; display: none; place-items: center; padding: 20px; background: rgba(12,32,29,.58); backdrop-filter: blur(6px); }
.modal-backdrop.open { display: grid; }
.modal { width: min(640px, 100%); max-height: 88vh; overflow: auto; border: 1px solid rgba(255,255,255,.65); border-radius: 19px; background: #fffefb; box-shadow: 0 34px 90px rgba(8,30,26,.34); }
.modal-header { position: sticky; top: 0; z-index: 2; padding: 18px 21px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 18px; color: var(--navy-950); }
.modal-body { padding: 21px; }
.modal-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; padding-top: 15px; border-top: 1px solid var(--line); }
.modal.opening-followup-modal { width: min(1080px,100%); border-color: rgba(132,28,58,.22); }
.opening-followup { display: grid; gap: 17px; }
.opening-followup-intro { display: flex; align-items: center; gap: 13px; padding: 15px 17px; border: 1px solid #ead3da; border-radius: 15px; background: linear-gradient(135deg,#fff6f8,#fffdf9); }
.opening-followup-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: #fff; background: linear-gradient(145deg,#9d1739,#641126); box-shadow: 0 8px 18px rgba(125,24,56,.2); font-size: 20px; font-weight: 900; }
.opening-followup-intro strong { color: #3f1020; font-size: 16px; font-weight: 900; }
.opening-followup-intro p { margin: 4px 0 0; color: #282828; font-size: 12px; font-weight: 700; }
.opening-followup-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.opening-followup-summary article { position: relative; overflow: hidden; min-height: 102px; display: grid; align-content: center; gap: 5px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 15px; background: #fafafa; }
.opening-followup-summary article::after { content: ''; position: absolute; top: -25px; left: -20px; width: 75px; height: 75px; border-radius: 50%; opacity: .13; background: currentColor; }
.opening-followup-summary .overdue { color: #b72e3d; background: #fff5f5; }
.opening-followup-summary .upcoming { color: #b06a15; background: #fff9ef; }
.opening-followup-summary .total { color: #145d52; background: #f1faf7; }
.opening-followup-summary span { color: #242424; font-size: 11px; font-weight: 800; }
.opening-followup-summary strong { font-size: 25px; line-height: 1; font-weight: 900; }
.opening-followup-summary small { color: inherit; font-size: 12px; font-weight: 900; }
.opening-followup-table { max-height: 390px; overflow: auto; border: 1px solid #ded9d2; border-radius: 14px; }
.opening-followup-table table { width: 100%; min-width: 820px; border-collapse: collapse; }
.opening-followup-table th { position: sticky; top: 0; z-index: 1; padding: 11px 12px; text-align: right; color: #fff; background: #42121f; font-size: 11px; font-weight: 900; }
.opening-followup-table td { padding: 12px; border-bottom: 1px solid #eee9e3; color: #111; font-size: 12px; font-weight: 700; vertical-align: middle; }
.opening-followup-table tr:last-child td { border-bottom: 0; }
.opening-followup-table tr.opening-overdue-row { background: #fffafa; }
.opening-followup-table tr.opening-upcoming-row { background: #fffdf8; }
.opening-followup-table td strong,.opening-followup-table td small { display: block; }
.opening-followup-table td small { margin-top: 4px; color: #555; font-size: 10px; font-weight: 700; }
.opening-overdue-amount { color: #b42335; }
.opening-followup-empty { min-height: 145px; display: grid; place-content: center; gap: 6px; border: 1px dashed #b7d7cf; border-radius: 14px; color: #155f53; background: #f3fbf8; text-align: center; }
.opening-followup-empty strong { font-size: 15px; }
.opening-followup-empty span { color: #333; font-size: 11px; font-weight: 700; }
.opening-followup-actions { margin-top: 0; flex-wrap: wrap; }
.toast { position: fixed; z-index: 100; bottom: 24px; left: 24px; max-width: 360px; padding: 13px 17px; border-radius: 11px; color: white; background: var(--navy-950); box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); pointer-events: none; transition: .25s; font-size: 11px; }
.support-chat-button { position: fixed; z-index: 55; bottom: 24px; left: 24px; min-width: 245px; min-height: 64px; padding: 7px 15px 7px 9px; display: flex; align-items: center; gap: 11px; border: 2px solid #8f2a4b; border-radius: 999px; color: #fff; background: linear-gradient(135deg,#8f2a4b,#66152f); box-shadow: 0 12px 28px rgba(91,18,41,.3),inset 0 1px rgba(255,255,255,.22); text-align: right; transition: transform .18s ease,box-shadow .18s ease; }
.support-chat-button:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(91,18,41,.36),inset 0 1px rgba(255,255,255,.25); }
.support-chat-button:focus-visible { outline: 4px solid rgba(143,42,75,.22); outline-offset: 4px; }
.support-chat-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 50%; color: #741b38; background: #fff; font-size: 22px; font-weight: 900; letter-spacing: 2px; box-shadow: 0 5px 13px rgba(34,3,14,.25); }
.support-chat-copy { display: grid; gap: 3px; }
.support-chat-copy strong { color: #fff; font-size: 13px; font-weight: 900; }
.support-chat-copy small { color: #f5dce5; font-size: 9px; font-weight: 700; }
.support-chat-button > i { width: 10px; height: 10px; position: absolute; top: 4px; right: 11px; border: 2px solid #fff; border-radius: 50%; background: #31b97c; box-shadow: 0 0 0 4px rgba(49,185,124,.18); }
.support-contact-intro { margin-bottom: 15px; padding: 14px 15px; display: flex; align-items: center; gap: 12px; border: 1px solid #d9c6cf; border-radius: 13px; background: linear-gradient(145deg,#fffafb,#f8eef2); }
.support-contact-intro > span { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg,#922b4a,#6f1731); font-size: 21px; }
.support-contact-intro strong, .support-contact-intro small { display: block; }
.support-contact-intro strong { color: #551429; font-size: 14px; }
.support-contact-intro small { margin-top: 4px; color: #6d7774; font-size: 10px; line-height: 1.7; }
.support-contact-form textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.support-contact-privacy { margin-top: 4px; padding: 10px 12px; border-radius: 10px; color: #49605a; background: #eff7f4; font-size: 9px; line-height: 1.7; }
.support-contact-submit { min-height: 48px; font-size: 13px; }
.toast.show { opacity: 1; transform: translateY(0); }
.scrim { display: none; }
.login-screen { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; padding: 20px; overflow-y: auto; background: radial-gradient(circle at 15% 15%, #4c6c61, transparent 35%), radial-gradient(circle at 88% 80%, rgba(185,138,69,.2), transparent 32%), linear-gradient(135deg, #102421, #234941); }
.login-screen.open { display: grid; }
.login-screen::before { content: ""; position: absolute; inset: 0; opacity: .12; background: radial-gradient(circle at center, #fff 0 1px, transparent 1.5px) 0 0 / 32px 32px; }
.login-card { position: relative; width: min(430px,100%); margin: auto; padding: 36px; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(255,255,255,.98); box-shadow: 0 30px 80px rgba(3,18,28,.32); text-align: center; }
.login-logo { width: min(320px,100%); height: 122px; margin: -8px auto 12px; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: #74172f; box-shadow: 0 12px 28px rgba(92,18,39,.18); }
.login-logo img { width: 100%; height: 100%; object-fit: contain; }
.login-card h1 { margin: 0; color: var(--navy-950); font-size: 25px; }
.login-card > p { margin: 8px 0 24px; color: var(--muted); font-size: 11px; }
.login-card > small { display: block; margin-top: 17px; color: #8b979e; font-size: 9px; }
.login-form { display: grid; gap: 13px; text-align: right; }
.login-form[hidden] { display: none; }
.login-help-button { justify-self: center; padding: 4px 8px; border: 0; color: #74172f; background: transparent; font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.login-help-button:hover, .login-help-button:focus-visible { color: #a51f43; }
.recovery-form[hidden] { display: none; }
.recovery-heading { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #f8eef1; color: #74172f; }
.recovery-heading strong { font-size: 15px; }
.recovery-heading span { color: #6d5960; font-size: 11px; line-height: 1.7; }
.login-pin { direction: ltr; text-align: center; letter-spacing: 7px; font-size: 18px; }
.settings-grid { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(0,1.4fr); gap: 20px; align-items: start; }
.settings-sections { display: grid; gap: 20px; }
.settings-form { padding: 22px; }
.settings-form h2 { margin: 4px 0 5px; color: var(--navy-950); font-size: 18px; }
.settings-form > p { margin: 0 0 20px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.role-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 15px 0; padding: 0 18px; }
.role-card { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fafcfc; }
.role-card strong, .role-card span { display: block; }
.role-card strong { color: var(--navy-950); font-size: 11px; }
.role-card span { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.6; }
.role-admin { color: #8e631e; background: var(--gold-soft); }
.role-accountant { color: #376da8; background: #eaf2fb; }
.role-employee { color: #15735f; background: #e5f6f1; }
.settings-notice { margin-top: 15px; padding: 12px; border-radius: 10px; color: #6f5a30; background: #fff8e9; font-size: 9px; line-height: 1.7; }
.setting-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.permission-summary { display: flex; flex-wrap: wrap; gap: 4px; max-width: 360px; }
.permission-summary span { padding: 3px 7px; border-radius: 999px; color: #6e1732; background: #f8e9ee; font-size: 8px; white-space: nowrap; }
.permissions-field { margin: 2px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.permissions-field legend { padding: 0 8px; color: var(--navy-950); font-weight: 800; }
.permissions-field > p { margin: 0 0 12px; color: var(--muted); font-size: 9px; }
.permissions-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.permission-option { display: flex; align-items: flex-start; gap: 9px; padding: 10px; border: 1px solid #ead8de; border-radius: 10px; background: #fffafb; cursor: pointer; }
.permission-option input { margin-top: 3px; accent-color: #7d1838; }
.permission-option span,.permission-option strong,.permission-option small { display: block; }
.permission-option strong { color: #40101f; font-size: 10px; }
.permission-option small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.setting-chip { min-height: 35px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; color: var(--navy-900); background: #f8fafb; font-size: 10px; font-weight: 700; }
.setting-chip button { width: 23px; height: 23px; padding: 0; border: 0; border-radius: 6px; color: var(--muted); background: white; }
.setting-chip button:hover, .danger-action:hover { color: var(--red); background: #fff0f0; }

body.lang-en { direction: ltr; font-family: "Segoe UI", Arial, sans-serif; }
body.lang-en .sidebar { inset: 0 auto 0 0; }
body.lang-en .app-main { margin-right: 0; margin-left: 252px; }
body.lang-en .nav-item, body.lang-en .data-table th, body.lang-en .page-head, body.lang-en .form-group, body.lang-en .login-form, body.lang-en .report-type-card { text-align: left; }
body.lang-en .nav-item.active { box-shadow: inset 3px 0 var(--gold); }
body.lang-en .nav-item em { margin-right: 0; margin-left: auto; }
body.lang-en .topbar-actions { margin-right: 0; margin-left: auto; }
body.lang-en .eyebrow { letter-spacing: .3px; }

@media (max-width: 1120px) {
  .topbar-datetime { min-width: 230px; }
  .topbar-datetime-copy small { font-size: 9px; }
  .report-type-grid { grid-template-columns: repeat(3,1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .report-type-grid { grid-template-columns: 1fr 1fr; }
  .report-filter-panel { grid-template-columns: 1fr 1fr; }
  .expense-layout { grid-template-columns: 1fr; }
  .report-kpis { grid-template-columns: repeat(2,1fr); }
  .settlement-formula { align-items: flex-start; flex-direction: column; }
  .empty-dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .support-chat-button { left: 12px; bottom: 14px; min-width: 0; width: 58px; height: 58px; min-height: 58px; padding: 6px; justify-content: center; }
  .support-chat-button .support-chat-copy { display: none; }
  .support-chat-icon { width: 43px; height: 43px; flex-basis: 43px; }
  .opening-followup-summary { grid-template-columns: 1fr; }
  .opening-followup-intro { align-items: flex-start; }
  .opening-followup-actions button { flex: 1 1 100%; }
  .voucher-filter-bar { grid-template-columns: 1fr; }
  .settlement-impact { align-items: flex-start; flex-direction: column; }
  .sidebar { transform: translateX(105%); transition: .25s; }
  .sidebar.open { transform: translateX(0); }
  .app-main { width: 100%; margin-right: 0; }
  .menu-button { display: grid; }
  .topbar { padding: 0 14px; gap: 9px; }
  .topbar-actions { gap: 6px; }
  .topbar-datetime { min-width: 112px; min-height: 44px; padding: 5px 8px; gap: 7px; }
  .topbar-clock-icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px; font-size: 17px; }
  .topbar-datetime-copy strong { font-size: 14px; letter-spacing: .4px; }
  .topbar-datetime-copy small { display: none; }
  .user-chip > span:not(.avatar), .global-search kbd { display: none; }
  main { padding: 20px 14px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head .button-row { width: 100%; }
  .page-head .button-row button { flex: 1; }
  .payment-layout, .report-grid { grid-template-columns: 1fr; }
  .owner-report-identity, .owner-report-summary { grid-template-columns: 1fr; }
  .owner-deposits-summary { grid-template-columns: 1fr; }
  .cashbox-summary { grid-template-columns: 1fr 1fr; }
  .cashbox-filter-panel { grid-template-columns: 1fr !important; }
  .owner-report-balance { grid-template-columns: 1fr; }
  .owner-report-balance strong { grid-row: auto; grid-column: auto; }
  .account-ledger-head { align-items: stretch; flex-direction: column; }
  .ledger-totals { grid-template-columns: repeat(3,1fr); }
  .scrim.open { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(7,26,38,.45); }
  .setup-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-welcome { padding: 24px; align-items: flex-start; }
  .welcome-brand { width: 130px; }
  .welcome-brand img { height: 76px; }
  body.lang-en .app-main { margin-left: 0; }
  body.lang-en .sidebar { transform: translateX(-105%); }
  body.lang-en .sidebar.open { transform: translateX(0); }
}

@media (max-width: 520px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .global-search { min-width: 0; }
  .global-search input::placeholder { color: transparent; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full, .modal-actions { grid-column: auto; }
  .report-type-grid, .cashbox-summary { grid-template-columns: 1fr; }
  .occupancy { grid-template-columns: 1fr; justify-items: center; }
  .payment-lookup-grid, .receipt-grid { grid-template-columns: 1fr; }
  .payment-details-grid { grid-template-columns: 1fr; }
  .payment-amount-field { grid-row: auto; }
  .payment-form-header { padding: 22px 18px 17px; }
  .payment-entry-form { padding: 17px; }
  .role-cards { grid-template-columns: 1fr; }
  .permissions-grid { grid-template-columns: 1fr; }
  .login-card { padding: 28px 20px; }
  .property-photo-box, .map-search-row { grid-template-columns: 1fr; }
  .dashboard-welcome { display: block; }
  .welcome-brand { width: 100%; margin-top: 20px; }
  .welcome-brand img { height: 90px; }
  .report-type-grid, .report-filter-panel { grid-template-columns: 1fr; }
  .contract-operation-summary { grid-template-columns: 1fr; }
  .contract-tax-summary { grid-template-columns: 1fr; }
}

.archive-settlement-button{border:1px solid #9b1c3d;background:linear-gradient(145deg,#b72a50,#78142f);color:#fff;border-radius:12px;padding:11px 16px;font:800 14px/1.4 inherit;box-shadow:0 7px 16px rgba(120,20,47,.22);cursor:pointer}.archive-settlement-button:hover{filter:brightness(1.08);transform:translateY(-1px)}
.last-settlement-strip{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:10px;margin:0 22px 18px;padding:13px 16px;border:1px solid #e7c5ce;border-radius:14px;background:linear-gradient(90deg,#fff8fa,#fff);color:#4f1525}.last-settlement-strip span{font-weight:800}.last-settlement-strip strong{color:#9b1c3d;font-size:16px}.last-settlement-strip small{font-weight:700;color:#29433f;text-align:left}
@media(max-width:760px){.last-settlement-strip{grid-template-columns:1fr;text-align:center}.last-settlement-strip small{text-align:center}.archive-settlement-button{width:100%}}

@media print {
  .support-chat-button { display: none !important; }
  .sidebar, .topbar, .page-head .button-row, .toolbar, .row-actions { display: none !important; }
  .app-main { width: 100%; margin: 0; }
  main { padding: 0; }
  body { background: white; }
  .panel, .report-card, .table-card { break-inside: avoid; box-shadow: none; }
  .print-header { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid #a9271d; }
  .print-header img { width: 168px; height: 64px; object-fit: contain; border-radius: 9px; }
  .print-header strong, .print-header span { display: block; }
  .print-header strong { color: #a9271d; font-size: 15px; }
  .print-header span { margin-top: 5px; color: #59656c; font-size: 10px; }
  .print-footer { display: block; position: fixed; right: 0; bottom: 0; left: 0; padding-top: 8px; border-top: 1px solid #ccd4d8; color: #59656c; text-align: center; font-size: 9px; }
  .report-type-grid, .report-filter-panel, .report-prompt { display: none !important; }
  .report-title-card { border: 0; border-bottom: 1px solid #ccd4d8; border-radius: 0; padding: 8px 0 14px; }
  @page expenseVoucherList { size: A4 landscape; margin: 8mm 9mm 11mm; }
  body.printing-expense-voucher-list { page: expenseVoucherList; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing-expense-voucher-list .page-head,
  body.printing-expense-voucher-list .voucher-kpis,
  body.printing-expense-voucher-list .expense-voucher-browser > .panel-head,
  body.printing-expense-voucher-list .voucher-filter-bar { display: none !important; }
  body.printing-expense-voucher-list .print-header { margin: 0 0 7px; padding: 0 0 7px; }
  body.printing-expense-voucher-list .print-header img { width: 142px; height: 48px; }
  body.printing-expense-voucher-list .expense-voucher-browser { margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; box-shadow: none; break-inside: auto !important; page-break-inside: auto !important; }
  body.printing-expense-voucher-list .expense-voucher-print-context { display: grid; grid-template-columns: 1.3fr 1.6fr .7fr 1fr; gap: 6px; margin: 0 0 7px; break-inside: avoid; page-break-inside: avoid; }
  body.printing-expense-voucher-list .expense-voucher-print-context > div { padding: 7px 9px; border: 1px solid #dccbd0; border-radius: 8px; background: #fbf6f7; }
  body.printing-expense-voucher-list .expense-voucher-print-context span,
  body.printing-expense-voucher-list .expense-voucher-print-context strong { display: block; }
  body.printing-expense-voucher-list .expense-voucher-print-context span { color: #6b7477; font-size: 8px; }
  body.printing-expense-voucher-list .expense-voucher-print-context strong { margin-top: 2px; color: #6f1731; font-size: 11px; }
  body.printing-expense-voucher-list .expense-voucher-browser .table-card { margin: 0; overflow: visible; border: 1px solid #cfd7d5; border-radius: 7px; break-inside: auto !important; page-break-inside: auto !important; }
  body.printing-expense-voucher-list .expense-vouchers-table { width: 100%; min-width: 0; table-layout: fixed; }
  body.printing-expense-voucher-list .expense-vouchers-table thead { display: table-header-group; }
  body.printing-expense-voucher-list .expense-vouchers-table tbody { display: table-row-group; }
  body.printing-expense-voucher-list .expense-vouchers-table tr { break-inside: avoid !important; page-break-inside: avoid !important; }
  body.printing-expense-voucher-list .expense-vouchers-table th { padding: 7px 5px; color: #fff; background: #6f1731; border-color: #8e3650; font-size: 8.5px; }
  body.printing-expense-voucher-list .expense-vouchers-table td { padding: 6px 5px; border-color: #dce2e0; font-size: 8.5px; line-height: 1.4; }
  body.printing-expense-voucher-list .expense-vouchers-table tbody tr:nth-child(even) td { background: #f8f4f1; }
  body.printing-expense-voucher-list .voucher-owner-column,
  body.printing-expense-voucher-list .expense-vouchers-table th:last-child,
  body.printing-expense-voucher-list .expense-vouchers-table td:last-child { display: none !important; }
  body.printing-expense-voucher-list .voucher-scope-column strong { font-size: 9px; }
  body.printing-expense-voucher-list .voucher-scope-column small { color: #6f1731; font-size: 8px; font-weight: 800; }
  body.printing-expense-voucher-list .print-footer { background: #fff; font-size: 8px; }
  @page propertyFinancialReport { size: A4 landscape; margin: 8mm 9mm 11mm; }
  body.printing-property-report { page: propertyFinancialReport; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing-property-report .page-head { display: none !important; }
  body.printing-property-report .print-header { margin-bottom: 7px; padding-bottom: 7px; }
  body.printing-property-report .print-header img { width: 140px; height: 48px; }
  body.printing-property-report .print-header strong { font-size: 15px; }
  body.printing-property-report .selected-report { display: block; }
  body.printing-property-report .report-title-card { margin-bottom: 7px; padding: 7px 10px; border: 1px solid #dccbd0; border-radius: 9px; background: #fbf6f7; break-inside: avoid; page-break-inside: avoid; }
  body.printing-property-report .report-title-card h2 { font-size: 12px; }
  body.printing-property-report .report-title-card .eyebrow { font-size: 9px; }
  body.printing-property-report .report-kpis { display: grid !important; grid-template-columns: repeat(6,minmax(0,1fr)) !important; gap: 5px; margin: 0 0 7px; break-inside: avoid; page-break-inside: avoid; }
  body.printing-property-report .report-kpis .kpi-card { min-height: 0; padding: 8px 9px; border: 1px solid #d7dddc; border-radius: 9px; box-shadow: none; }
  body.printing-property-report .report-kpis .kpi-card h3 { font-size: 8px; }
  body.printing-property-report .report-kpis .kpi-value { margin-top: 3px; font-size: 14px; white-space: nowrap; }
  body.printing-property-report .report-kpis .kpi-card p { margin-top: 2px; font-size: 7px; }
  body.printing-property-report .report-kpis .kpi-icon { width: 26px; height: 26px; font-size: 10px; }
  body.printing-property-report .settlement-formula { display: flex; align-items: center; gap: 10px; margin: 0 0 7px; padding: 7px 10px; break-inside: avoid; page-break-inside: avoid; }
  body.printing-property-report .settlement-formula strong, body.printing-property-report .settlement-formula span { font-size: 8px; }
  body.printing-property-report .report-section { margin: 7px 0 0; break-inside: auto !important; page-break-inside: auto !important; border: 1px solid #d6dcda; border-radius: 8px; box-shadow: none; }
  body.printing-property-report .report-section .panel-head { min-height: 0; padding: 7px 10px; background: #f5ecef; break-after: avoid; page-break-after: avoid; }
  body.printing-property-report .report-section .panel-head h2 { color: #6f1731; font-size: 11px; }
  body.printing-property-report .report-section .panel-head p { margin-top: 2px; font-size: 7.5px; }
  body.printing-property-report .report-section .table-card { overflow: visible; break-inside: auto !important; page-break-inside: auto !important; border-radius: 0 0 8px 8px; }
  body.printing-property-report .report-section .data-table { width: 100%; min-width: 0; table-layout: fixed; }
  body.printing-property-report .report-section .data-table thead { display: table-header-group; }
  body.printing-property-report .report-section .data-table tbody { display: table-row-group; }
  body.printing-property-report .report-section .data-table tr { break-inside: avoid !important; page-break-inside: avoid !important; }
  body.printing-property-report .report-section .data-table th { padding: 6px 4px; color: #fff; background: #6f1731; border-color: #8e3650; font-size: 7.5px; line-height: 1.3; }
  body.printing-property-report .report-section .data-table td { padding: 5px 4px; border-color: #dce2e0; font-size: 7.5px; line-height: 1.35; }
  body.printing-property-report .report-section .data-table tbody tr:nth-child(even) td { background: #f8f4f1; }
  body.printing-property-report .report-section .status-pill { padding: 2px 5px; font-size: 7px; }
  body.printing-property-report .print-footer { font-size: 8px; background: #fff; }
  @page masterListReport { size: A4 landscape; margin: 10mm; }
  body.printing-master-list { page: masterListReport; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing-master-list .print-header { margin-bottom: 10px; padding: 0 0 8px; }
  body.printing-master-list .print-header img { width: 145px; height: 52px; }
  body.printing-master-list .print-header strong { font-size: 16px; }
  body.printing-master-list .page-head { margin-bottom: 9px; padding: 8px 12px; border: 1px solid #dccbd0; border-radius: 10px; background: #fbf6f7; }
  body.printing-master-list .page-head h1 { color: #6f1731; font-size: 20px; }
  body.printing-master-list .page-head p { margin-top: 3px; font-size: 9px; }
  body.printing-master-list .contract-selection-summary, body.printing-master-list .unit-selection-summary { display: flex !important; justify-content: center; gap: 8px; margin-bottom: 7px; padding: 7px 9px; border: 1px solid #dccbd0; border-radius: 8px; background: #fbf6f7; break-inside: avoid; page-break-inside: avoid; }
  body.printing-master-list .contract-selection-summary span, body.printing-master-list .unit-selection-summary span { min-width: 145px; padding: 4px 8px; border-color: #e1d3d7; text-align: center; font-size: 8.5px; }
  body.printing-master-list .table-card { overflow: visible; break-inside: auto; page-break-inside: auto; border: 1px solid #cfd7d5; border-radius: 9px; }
  body.printing-master-list .data-table { width: 100%; min-width: 0; table-layout: fixed; }
  body.printing-master-list .data-table thead { display: table-header-group; }
  body.printing-master-list .data-table tbody { display: table-row-group; }
  body.printing-master-list .contracts-table .contract-electronic-fee { display: none; }
  body.printing-master-list .contract-fees-summary { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; padding: 8px 12px; color: #fff; background: #6f1731; border-radius: 0 0 8px 8px; font-size: 10px; font-weight: 900; break-inside: avoid; page-break-inside: avoid; }
  body.printing-master-list .data-table tr { break-inside: avoid; page-break-inside: avoid; }
  body.printing-master-list .data-table th { padding: 8px 6px; color: #fff; background: #6f1731; border-color: #8e3650; font-size: 9px; line-height: 1.35; }
  body.printing-master-list .data-table td { padding: 7px 6px; border-color: #dce2e0; font-size: 9px; line-height: 1.45; }
  body.printing-master-list .units-table th, body.printing-master-list .units-table td { padding-inline: 4px; font-size: 7.6px; }
  body.printing-master-list .data-table tbody tr:nth-child(even) td { background: #f8f4f1; }
  body.printing-master-list .data-table .entity-avatar { display: none; }
  body.printing-master-list .data-table .entity strong { color: #111; font-size: 9.5px; }
  body.printing-master-list .data-table .entity small { font-size: 8px; }
  body.printing-master-list .data-table th:last-child,
  body.printing-master-list .data-table td:last-child { display: none; }
  body.printing-master-list .status-pill { padding: 3px 7px; font-size: 8px; }
  body.printing-receipt > *:not(.modal-backdrop) { display: none !important; }
  body.printing-receipt .modal-backdrop { position: static; display: block; padding: 0; background: white; }
  body.printing-receipt .modal { width: 100%; max-height: none; box-shadow: none; }
  body.printing-receipt .modal-header, body.printing-receipt .modal-actions { display: none !important; }
  body.printing-receipt .receipt-schedule-table { overflow: visible; }
  body.printing-receipt .receipt-schedule-table .data-table { min-width: 0; width: 100%; table-layout: fixed; }
  body.printing-receipt .receipt-schedule-table .data-table th,
  body.printing-receipt .receipt-schedule-table .data-table td { padding: 7px 5px; font-size: 9px; }
  body.printing-receipt .receipt-approval { margin-top: 10px; padding: 10px; }
  body.printing-receipt .receipt-amount-box { min-height: 48px; padding: 8px 13px; }
  body.printing-receipt .receipt-amount-box strong { font-size: 18px; }
  body.printing-receipt .receipt-signatures { margin-top: 9px; gap: 8px; }
  body.printing-receipt .receipt-signature { min-height: 86px; padding: 7px; }
  @page externalReceipt { size: A4 portrait; margin: 10mm 12mm; }
  body.printing-external-receipt { page: externalReceipt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing-external-receipt .modal { border: 0; border-radius: 0; }
  body.printing-external-receipt .modal-body { padding: 0; overflow: visible; }
  body.printing-external-receipt .external-contract-receipt { width: 100%; max-width: none; color: #171717; font-family: Tahoma,Arial,sans-serif; }
  body.printing-external-receipt .receipt-brand { padding: 8px 12px; border-color: #cdb7bd; }
  body.printing-external-receipt .receipt-brand img { width: 170px; height: 62px; margin-bottom: 4px; }
  body.printing-external-receipt .receipt-brand strong { font-size: 14px; }
  body.printing-external-receipt .receipt-brand span { font-size: 10px; }
  body.printing-external-receipt .external-receipt-heading { margin: 8px 0; }
  body.printing-external-receipt .receipt-number { margin: 0; font-size: 11px; }
  body.printing-external-receipt .external-receipt-date strong { font-size: 10px; }
  body.printing-external-receipt .external-receipt-independence { margin: 6px 0; padding: 6px; font-size: 9.5px; }
  body.printing-external-receipt .receipt-grid { grid-template-columns: repeat(2,1fr); }
  body.printing-external-receipt .receipt-cell { padding: 8px 10px; }
  body.printing-external-receipt .receipt-cell span { font-size: 10px; }
  body.printing-external-receipt .receipt-cell strong { font-size: 12px; }
  body.printing-external-receipt .external-receipt-breakdown { margin-top: 8px; }
  body.printing-external-receipt .external-receipt-breakdown h3 { padding: 7px 10px; font-size: 11px; }
  body.printing-external-receipt .external-receipt-breakdown > div { padding: 7px 10px; }
  body.printing-external-receipt .external-receipt-breakdown span,
  body.printing-external-receipt .external-receipt-breakdown strong { font-size: 10.5px; }
  body.printing-external-receipt .external-receipt-breakdown small { padding: 5px 10px; font-size: 9px; }
  body.printing-external-receipt .external-receipt-notes { margin: 7px 0 0; padding: 8px 10px; }
  body.printing-external-receipt .receipt-approval { margin-top: 8px; padding: 8px; }
  body.printing-external-receipt .receipt-amount-box { min-height: 46px; padding: 8px 12px; }
  body.printing-external-receipt .receipt-amount-box span { font-size: 11px; }
  body.printing-external-receipt .receipt-amount-box strong { font-size: 18px; }
  body.printing-external-receipt .receipt-signatures { margin-top: 8px; gap: 8px; }
  body.printing-external-receipt .receipt-signature { min-height: 80px; padding: 7px; }
  body.printing-external-receipt .receipt-signature span { font-size: 10px; }
  body.printing-external-receipt .receipt-signature strong { font-size: 9px; }
  body.printing-external-receipt .external-receipt-footer { margin-top: 7px; padding-top: 5px; font-size: 8px; }
  body.printing-expense-voucher > *:not(.modal-backdrop) { display: none !important; }
  body.printing-expense-voucher .modal-backdrop { position: static; display: block; padding: 0; background: white; }
  body.printing-expense-voucher .modal { width: 100%; max-height: none; box-shadow: none; }
  body.printing-expense-voucher .modal-header, body.printing-expense-voucher .modal-actions { display: none !important; }
  body.printing-expense-voucher .expense-voucher-print { max-width: 760px; margin: 0 auto; }
  @page compactPaymentReport { size: A4 landscape; margin: 10mm; }
  body.printing-short-payments { page: compactPaymentReport; }
  body.printing-short-payments > *:not(.modal-backdrop) { display: none !important; }
  body.printing-short-payments .modal-backdrop { position: static; display: block; padding: 0; background: white; }
  body.printing-short-payments .modal { width: 100%; max-width: none; max-height: none; overflow: visible; box-shadow: none; border-radius: 0; }
  body.printing-short-payments .modal-header, body.printing-short-payments .modal-actions { display: none !important; }
  body.printing-short-payments .modal-body { padding: 0; overflow: visible; }
  body.printing-short-payments .compact-payment-report { width: 100%; display: block; }
  body.printing-short-payments .compact-report-brand img { width: 156px; height: 58px; }
  body.printing-short-payments .compact-report-brand,
  body.printing-short-payments .compact-report-heading,
  body.printing-short-payments .compact-report-total { break-inside: avoid; page-break-inside: avoid; }
  body.printing-short-payments .compact-report-heading, body.printing-short-payments .compact-report-total { margin: 8px 0; }
  body.printing-short-payments .compact-report-heading > div, body.printing-short-payments .compact-report-total span { padding: 8px 10px; }
  body.printing-short-payments .compact-report-table { display: block; overflow: visible; break-inside: auto !important; page-break-inside: auto !important; border-radius: 0; }
  body.printing-short-payments .compact-report-table .data-table { min-width: 0; width: 100%; table-layout: fixed; }
  body.printing-short-payments .compact-report-table .data-table thead { display: table-header-group; }
  body.printing-short-payments .compact-report-table .data-table tbody { display: table-row-group; }
  body.printing-short-payments .compact-report-table th, body.printing-short-payments .compact-report-table td { padding: 6px 5px; font-size: 9px; line-height: 1.4; }
  body.printing-short-payments .compact-report-table tr { break-inside: avoid !important; page-break-inside: avoid !important; }
  body.printing-short-payments .compact-report-footer { break-inside: avoid; page-break-inside: avoid; }
  @page ownerStatementReport { size: A4 portrait; margin: 9mm; }
  body.printing-owner-statement { page: ownerStatementReport; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing-owner-statement > *:not(.modal-backdrop) { display: none !important; }
  body.printing-owner-statement .modal-backdrop { position: static; display: block; padding: 0; background: white; }
  body.printing-owner-statement .modal { width: 100%; max-width: none; max-height: none; overflow: visible; box-shadow: none; border-radius: 0; }
  body.printing-owner-statement .modal-header, body.printing-owner-statement .modal-actions { display: none !important; }
  body.printing-owner-statement .modal-body { padding: 0; overflow: visible; }
  body.printing-owner-statement .owner-statement-report { width: 100%; }
  body.printing-owner-statement .owner-report-brand img { width: 145px; height: 52px; }
  body.printing-owner-statement .owner-report-brand strong { font-size: 16px; }
  body.printing-owner-statement .owner-report-identity { margin: 9px 0; gap: 7px; }
  body.printing-owner-statement .owner-report-identity > div, body.printing-owner-statement .owner-report-summary > div { padding: 7px 9px; }
  body.printing-owner-statement .owner-report-summary { gap: 6px; }
  body.printing-owner-statement .owner-report-balance { margin: 9px 0 11px; padding: 10px 13px; }
  body.printing-owner-statement .owner-report-balance strong { font-size: 20px; }
  body.printing-owner-statement .owner-report-table { margin-top: 9px; break-inside: auto; }
  body.printing-owner-statement .owner-report-table .table-card { overflow: visible; break-inside: auto; }
  body.printing-owner-statement .owner-report-table .data-table { min-width: 0; width: 100%; table-layout: fixed; }
  body.printing-owner-statement .owner-report-table th, body.printing-owner-statement .owner-report-table td { padding: 5px 4px; font-size: 8.5px; line-height: 1.35; }
  body.printing-owner-statement .owner-report-table tr { break-inside: avoid; }
  @page ownerDepositsReport { size: A4 landscape; margin: 9mm; }
  body.printing-owner-deposits { page: ownerDepositsReport; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing-owner-deposits > *:not(.modal-backdrop) { display: none !important; }
  body.printing-owner-deposits .modal-backdrop { position: static; display: block; padding: 0; background: #fff; }
  body.printing-owner-deposits .modal { width: 100%; max-width: none; max-height: none; overflow: visible; border-radius: 0; box-shadow: none; }
  body.printing-owner-deposits .modal-header, body.printing-owner-deposits .modal-actions { display: none !important; }
  body.printing-owner-deposits .modal-body { padding: 0; overflow: visible; }
  body.printing-owner-deposits .owner-deposits-report { width: 100%; max-width: none; }
  body.printing-owner-deposits .owner-report-brand img { width: 145px; height: 52px; }
  body.printing-owner-deposits .owner-report-brand strong { font-size: 16px; }
  body.printing-owner-deposits .owner-report-identity { grid-template-columns: 1fr 1fr 1.25fr !important; margin: 8px 0; gap: 7px; }
  body.printing-owner-deposits .owner-report-identity > div { padding: 7px 9px; }
  body.printing-owner-deposits .owner-deposits-summary { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; margin: 8px 0; gap: 7px; break-inside: avoid; page-break-inside: avoid; }
  body.printing-owner-deposits .owner-deposits-summary > div { padding: 8px 10px; }
  body.printing-owner-deposits .owner-deposits-summary strong { font-size: 16px; }
  body.printing-owner-deposits .owner-deposits-note { margin-bottom: 8px; padding: 7px 10px; break-inside: avoid; page-break-inside: avoid; }
  body.printing-owner-deposits .owner-report-table { margin-top: 7px; break-inside: auto !important; page-break-inside: auto !important; }
  body.printing-owner-deposits .owner-report-table .table-card { overflow: visible; break-inside: auto !important; page-break-inside: auto !important; }
  body.printing-owner-deposits .owner-report-table .data-table { min-width: 0; width: 100%; table-layout: fixed; }
  body.printing-owner-deposits .owner-report-table th, body.printing-owner-deposits .owner-report-table td { padding: 5px 4px; font-size: 8.5px; line-height: 1.35; }
  body.printing-owner-deposits .owner-report-table thead { display: table-header-group; }
  body.printing-owner-deposits .owner-report-table tbody { display: table-row-group; }
  body.printing-owner-deposits .owner-report-table tfoot { display: none; }
  body.printing-owner-deposits .owner-report-table tr { break-inside: avoid !important; page-break-inside: avoid !important; }
  body.printing-owner-deposits .owner-report-section-title { break-after: avoid; page-break-after: avoid; }
  body.printing-owner-deposits .owner-office-commission { margin-top: 9px; padding: 8px; gap: 6px; }
  body.printing-owner-deposits .owner-office-commission > div { padding: 7px 9px; }
  body.printing-owner-deposits .owner-office-commission strong { font-size: 15px; }
  @page ownerGroupedPaymentsReport { size: A4 landscape; margin: 9mm; }
  body.printing-owner-grouped-payments { page: ownerGroupedPaymentsReport; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing-owner-grouped-payments > *:not(.modal-backdrop) { display: none !important; }
  body.printing-owner-grouped-payments .modal-backdrop { position: static; display: block; padding: 0; background: #fff; }
  body.printing-owner-grouped-payments .modal { width: 100%; max-width: none; max-height: none; overflow: visible; border-radius: 0; box-shadow: none; }
  body.printing-owner-grouped-payments .modal-header, body.printing-owner-grouped-payments .modal-actions { display: none !important; }
  body.printing-owner-grouped-payments .modal-body { padding: 0; overflow: visible; }
  body.printing-owner-grouped-payments .owner-grouped-payments-report { width: 100%; max-width: none; }
  body.printing-owner-grouped-payments .owner-report-brand img { width: 145px; height: 52px; }
  body.printing-owner-grouped-payments .owner-report-identity { grid-template-columns: 1fr 1fr 1.3fr !important; margin: 8px 0; gap: 7px; }
  body.printing-owner-grouped-payments .owner-report-identity > div { padding: 7px 9px; }
  body.printing-owner-grouped-payments .grouped-payments-summary { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; margin: 8px 0; gap: 7px; break-inside: avoid; }
  body.printing-owner-grouped-payments .grouped-payments-summary > div { padding: 8px 10px; }
  body.printing-owner-grouped-payments .grouped-payments-summary strong { font-size: 16px; }
  body.printing-owner-grouped-payments .owner-deposits-note { margin-bottom: 8px; padding: 7px 10px; break-inside: avoid; }
  body.printing-owner-grouped-payments .owner-report-table, body.printing-owner-grouped-payments .owner-report-table .table-card { margin-top: 7px; overflow: visible; break-inside: auto; }
  body.printing-owner-grouped-payments .data-table { min-width: 0; width: 100%; table-layout: fixed; }
  body.printing-owner-grouped-payments .data-table th, body.printing-owner-grouped-payments .data-table td { padding: 6px 5px; font-size: 9px; line-height: 1.45; }
  body.printing-owner-grouped-payments .data-table thead { display: table-header-group; }
  body.printing-owner-grouped-payments .data-table tbody { display: table-row-group; }
  body.printing-owner-grouped-payments .data-table tr { break-inside: avoid !important; page-break-inside: avoid !important; }
  body.printing-owner-grouped-payments .grouped-expenses-section { padding-top: 7px; border-top-width: 1px; }
  body.printing-owner-grouped-payments .grouped-expenses-section .owner-report-section-title { break-after: avoid; page-break-after: avoid; }
  body.printing-owner-grouped-payments .grouped-payment-balances { margin-top: 9px; padding: 9px; break-inside: avoid; page-break-inside: avoid; }
  body.printing-owner-grouped-payments .grouped-balance-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 6px; }
  body.printing-owner-grouped-payments .grouped-balance-grid > div { padding: 8px 9px; }
  body.printing-owner-grouped-payments .grouped-balance-grid span { font-size: 9px; }
  body.printing-owner-grouped-payments .grouped-balance-grid strong { font-size: 14px; }
  body.printing-owner-grouped-payments .grouped-balance-check { margin-top: 6px; padding: 7px 10px; font-size: 10px; }
  body.printing-owner-grouped-payments .grouped-owner-net { margin-top: 8px; padding: 9px; break-inside: avoid; page-break-inside: avoid; }
  body.printing-owner-grouped-payments .grouped-owner-net-title { margin-bottom: 6px; }
  body.printing-owner-grouped-payments .grouped-owner-net-title span { font-size: 11px; }
  body.printing-owner-grouped-payments .grouped-owner-net-title small { font-size: 9px; }
  body.printing-owner-grouped-payments .grouped-owner-net-formula { gap: 5px; }
  body.printing-owner-grouped-payments .grouped-owner-net-formula > div { padding: 7px 8px; }
  body.printing-owner-grouped-payments .grouped-owner-net-formula span, body.printing-owner-grouped-payments .grouped-owner-net p { font-size: 8.5px; }
  body.printing-owner-grouped-payments .grouped-owner-net-formula strong { font-size: 13px; }
  body.printing-owner-grouped-payments .grouped-owner-net-formula > b { font-size: 15px; }
  body.printing-owner-grouped-payments .grouped-owner-net p { margin-top: 6px; }
  @page cashboxReport { size: A4 portrait; margin: 9mm; }
  body.printing-cashbox-report { page: cashboxReport; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing-cashbox-report > *:not(.modal-backdrop) { display: none !important; }
  body.printing-cashbox-report .modal-backdrop { position: static; display: block; padding: 0; background: #fff; }
  body.printing-cashbox-report .modal { width: 100%; max-width: none; max-height: none; overflow: visible; border-radius: 0; box-shadow: none; }
  body.printing-cashbox-report .modal-header, body.printing-cashbox-report .modal-actions { display: none !important; }
  body.printing-cashbox-report .modal-body { padding: 0; overflow: visible; }
  body.printing-cashbox-report .cashbox-report { width: 100%; }
  body.printing-cashbox-report .cashbox-report-brand img { width: 145px; height: 52px; }
  body.printing-cashbox-report .cashbox-report-brand strong { font-size: 16px; }
  body.printing-cashbox-report .cashbox-period { margin: 8px 0; padding: 7px 10px; }
  body.printing-cashbox-report .cashbox-summary { gap: 6px; }
  body.printing-cashbox-report .cashbox-summary > div { padding: 8px; }
  body.printing-cashbox-report .cashbox-summary span { font-size: 9px; }
  body.printing-cashbox-report .cashbox-summary strong { font-size: 13px; }
  body.printing-cashbox-report .cashbox-closing { margin: 8px 0 10px; padding: 9px 12px; }
  body.printing-cashbox-report .cashbox-closing strong { font-size: 19px; }
  body.printing-cashbox-report .cashbox-movements .table-card { overflow: visible; break-inside: auto; }
  body.printing-cashbox-report .cashbox-movements .data-table { min-width: 0; width: 100%; table-layout: fixed; }
  body.printing-cashbox-report .cashbox-movements th, body.printing-cashbox-report .cashbox-movements td { padding: 5px 4px; font-size: 8.5px; line-height: 1.35; }
  body.printing-cashbox-report .cashbox-movements tr { break-inside: avoid; }
  @page commissionIncomeReport { size: A4 landscape; margin: 5mm 6mm 7mm; }
  body.printing-commission-income { page: commissionIncomeReport; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing-commission-income .page-head, body.printing-commission-income .report-type-grid, body.printing-commission-income .report-filter-panel { display: none !important; }
  body.printing-commission-income .print-header, body.printing-commission-income .print-footer { display: none !important; }
  body.printing-commission-income .commission-income-report { margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  body.printing-commission-income .commission-income-brand { padding-bottom: 4px; border-bottom-width: 2px; }
  body.printing-commission-income .commission-income-brand img { width: 120px; height: 40px; }
  body.printing-commission-income .commission-income-brand strong { font-size: 16px; }
  body.printing-commission-income .commission-income-brand span { margin-top: 2px; font-size: 10px; }
  body.printing-commission-income .commission-income-period { margin: 4px 0; gap: 4px; }
  body.printing-commission-income .commission-income-period > div, body.printing-commission-income .commission-income-summary > div { padding: 4px 7px; border-radius: 6px; }
  body.printing-commission-income .commission-income-summary { gap: 4px; margin-bottom: 4px; }
  body.printing-commission-income .commission-income-period span, body.printing-commission-income .commission-income-summary span { font-size: 8px; }
  body.printing-commission-income .commission-income-period strong { margin-top: 1px; font-size: 10px; }
  body.printing-commission-income .commission-income-summary strong { margin-top: 1px; font-size: 12px; }
  body.printing-commission-income .commission-income-note { margin-bottom: 5px; padding: 4px 8px; border-radius: 6px; font-size: 8px; line-height: 1.3; }
  body.printing-commission-income .commission-income-table { overflow: visible; break-inside: auto !important; page-break-inside: auto !important; border-radius: 7px; }
  body.printing-commission-income .commission-income-table .data-table { width: 100%; min-width: 0; table-layout: fixed; }
  body.printing-commission-income .commission-income-table thead { display: table-header-group; }
  body.printing-commission-income .commission-income-table tbody { display: table-row-group; }
  body.printing-commission-income .commission-income-table tfoot { display: table-row-group; }
  body.printing-commission-income .commission-income-table tr { break-inside: avoid !important; page-break-inside: avoid !important; }
  body.printing-commission-income .commission-income-table th { padding: 8px 4px; color: #fff; background: #6f1731; border-color: #8e3650; font-size: 10px; line-height: 1.35; }
  body.printing-commission-income .commission-income-table td { height: 52px; padding: 8px 5px; vertical-align: middle; font-size: 10.4px; line-height: 1.45; font-weight: 700; overflow-wrap: anywhere; }
  body.printing-commission-income .commission-income-table th:nth-child(1), body.printing-commission-income .commission-income-table td:nth-child(1) { width: 4%; }
  body.printing-commission-income .commission-income-table th:nth-child(2), body.printing-commission-income .commission-income-table td:nth-child(2) { width: 13%; }
  body.printing-commission-income .commission-income-table th:nth-child(3), body.printing-commission-income .commission-income-table td:nth-child(3) { width: 17%; }
  body.printing-commission-income .commission-income-table th:nth-child(4), body.printing-commission-income .commission-income-table td:nth-child(4) { width: 11%; }
  body.printing-commission-income .commission-income-table th:nth-child(5), body.printing-commission-income .commission-income-table td:nth-child(5) { width: 8%; }
  body.printing-commission-income .commission-income-table th:nth-child(6), body.printing-commission-income .commission-income-table td:nth-child(6) { width: 11%; }
  body.printing-commission-income .commission-income-table th:nth-child(7), body.printing-commission-income .commission-income-table td:nth-child(7) { width: 10%; }
  body.printing-commission-income .commission-income-table th:nth-child(8), body.printing-commission-income .commission-income-table td:nth-child(8) { width: 9%; }
  body.printing-commission-income .commission-income-table th:nth-child(9), body.printing-commission-income .commission-income-table td:nth-child(9) { width: 11%; }
  body.printing-commission-income .commission-income-table th:nth-child(10), body.printing-commission-income .commission-income-table td:nth-child(10) { width: 6%; }
  body.printing-commission-income .commission-income-table .table-subline { margin-top: 3px; font-size: 9.2px; line-height: 1.3; }
  body.printing-commission-income .commission-income-table tfoot th { padding-block: 8px; font-size: 10.2px; }
  body.printing-commission-income .commission-income-table .form-control, body.printing-commission-income .commission-actions { display: none !important; }
  body.printing-commission-income .commission-print-value { display: block; font-weight: 800; }
  body.printing-commission-income .commission-print-value.status.collected { color: #087462; }
  body.printing-commission-income .commission-print-value.status.uncollected { color: #aa2835; }
  body.printing-commission-income .owner-report-footer { margin-top: 6px; padding-top: 4px; font-size: 7.5px; }
  @page duesReport { size: A4 landscape; margin: 9mm 9mm 13mm; }
  body.printing-dues-report { page: duesReport; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing-dues-report .dues-print-report { width: 100%; direction: rtl; }
  body.printing-dues-report .print-header { margin-bottom: 8px; padding-bottom: 7px; }
  body.printing-dues-report .print-header img { width: 140px; height: 48px; }
  body.printing-dues-report .page-head { margin-bottom: 8px; padding: 0; align-items: center; }
  body.printing-dues-report .page-head h1 { font-size: 19px; }
  body.printing-dues-report .page-head p { margin-top: 3px; font-size: 9px; }
  body.printing-dues-report .dues-print-kpis { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 7px; margin: 0 0 8px; break-inside: avoid; page-break-inside: avoid; }
  body.printing-dues-report .dues-print-kpis .kpi-card { min-height: 0; padding: 10px 11px; border: 1px solid #d7dddc; border-radius: 11px; box-shadow: none; }
  body.printing-dues-report .dues-print-kpis .kpi-card h3 { font-size: 9px; }
  body.printing-dues-report .dues-print-kpis .kpi-value { margin-top: 4px; font-size: 17px; }
  body.printing-dues-report .dues-print-kpis .kpi-card p { margin-top: 3px; font-size: 8px; }
  body.printing-dues-report .dues-print-kpis .kpi-icon { width: 30px; height: 30px; font-size: 11px; }
  body.printing-dues-report .dues-selection-summary { margin: 0 0 7px; padding: 7px 10px; border: 1px solid #e1c493; border-radius: 9px; break-inside: avoid; page-break-inside: avoid; }
  body.printing-dues-report .dues-selection-summary span, body.printing-dues-report .dues-selection-summary strong, body.printing-dues-report .dues-selection-summary small { font-size: 8.5px; }
  body.printing-dues-report .dues-table-card { overflow: visible !important; break-inside: auto !important; page-break-inside: auto !important; border: 1px solid #cfd7d5; border-radius: 8px; }
  body.printing-dues-report .dues-table { width: 100% !important; min-width: 0 !important; table-layout: fixed; }
  body.printing-dues-report .dues-table thead { display: table-header-group; }
  body.printing-dues-report .dues-table tbody { display: table-row-group; }
  body.printing-dues-report .dues-table tr { break-inside: avoid !important; page-break-inside: avoid !important; }
  body.printing-dues-report .dues-table th { padding: 7px 5px; color: #fff; background: #6f1731; border-color: #8e3650; font-size: 8px; line-height: 1.35; }
  body.printing-dues-report .dues-table td { padding: 6px 5px; border-color: #dce2e0; font-size: 8.5px; line-height: 1.4; }
  body.printing-dues-report .dues-table tbody tr:nth-child(even) td { background: #f8f4f1; }
  body.printing-dues-report .dues-table .entity-avatar { display: none; }
  body.printing-dues-report .dues-table .entity strong { font-size: 8.5px; }
  body.printing-dues-report .dues-table .entity small { font-size: 7px; }
  body.printing-dues-report .dues-table .money { font-size: 9px; white-space: nowrap; }
  body.printing-dues-report .dues-table th:last-child, body.printing-dues-report .dues-table td:last-child { display: none; }
  body.printing-dues-report .dues-table .status-pill { padding: 3px 6px; font-size: 7.5px; }
  body.printing-dues-report .print-footer { font-size: 8px; background: #fff; }
}
.settlement-document-cell{min-width:112px;text-align:center}
.document-status{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 11px;border:1px solid #d8d2c9;border-radius:9px;background:#fff;color:#6b3a48;font:inherit;font-weight:800;cursor:pointer;white-space:nowrap}
.document-status.attached{border-color:#a9ded3;background:#eaf9f5;color:#087b69}
.document-status.upload{border-style:dashed}
.document-status.is-uploading{opacity:.6;pointer-events:none}
.document-replace{display:inline-flex;align-items:center;cursor:pointer}
@media print{.document-status.upload{display:none}.settlement-document-cell{min-width:0}.document-replace,#viewSettlementDocument{display:none!important}}
.unit-service-account{display:flex;align-items:center;gap:8px;flex:1 1 310px}
.unit-service-account .form-control{min-width:210px;max-width:300px;height:34px;background:#fff;font-weight:800}
.unit-annual-rent{white-space:nowrap;font-weight:800}
@media print{.unit-service-account{border:1px solid #d7cec2;border-radius:8px;padding:6px 10px;background:#fff}.unit-service-account .form-control{border:0;padding:0;height:auto;background:transparent;box-shadow:none}.units-table tbody tr{break-inside:avoid;page-break-inside:avoid}.units-table thead{display:table-header-group}}
@media print{
  @page rentalContract { size: A4 portrait; margin: 10mm 10mm 12mm; }
  body.printing-rental-contract { page: rentalContract; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing-rental-contract > *:not(.modal-backdrop) { display: none !important; }
  body.printing-rental-contract .modal-backdrop { position: static; display: block; padding: 0; background: #fff; }
  body.printing-rental-contract .modal { width: 100%; max-width: none; max-height: none; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  body.printing-rental-contract .modal-header, body.printing-rental-contract .modal-actions { display: none !important; }
  body.printing-rental-contract .modal-body { padding: 0; overflow: visible; }
  body.printing-rental-contract .rental-contract-document { font-size: 11px; line-height: 1.6; }
  body.printing-rental-contract .rental-contract-brand { gap: 12px; padding: 0 0 8px; }
  body.printing-rental-contract .rental-contract-brand img { width: 125px; height: 42px; }
  body.printing-rental-contract .rental-contract-brand h1 { font-size: 24px; }
  body.printing-rental-contract .rental-contract-brand span, body.printing-rental-contract .rental-contract-brand small { font-size: 10px; }
  body.printing-rental-contract .rental-contract-reference { gap: 4px; margin: 6px 0; }
  body.printing-rental-contract .rental-contract-reference > div, body.printing-rental-contract .rental-contract-grid > div { padding: 5px 7px; border-radius: 5px; }
  body.printing-rental-contract .rental-contract-reference span, body.printing-rental-contract .rental-contract-grid span { font-size: 9px; }
  body.printing-rental-contract .rental-contract-reference strong, body.printing-rental-contract .rental-contract-grid strong { font-size: 11.5px; }
  body.printing-rental-contract .rental-contract-intro { margin: 7px 0; padding: 7px 10px; font-size: 10.5px; }
  body.printing-rental-contract .rental-contract-parties, body.printing-rental-contract .rental-contract-section { margin-top: 7px; }
  body.printing-rental-contract .rental-contract-parties h2, body.printing-rental-contract .rental-contract-section h2 { margin-bottom: 6px; padding: 5px 8px; border-radius: 4px; font-size: 12.5px; }
  body.printing-rental-contract .rental-party { padding: 6px; border-radius: 5px; }
  body.printing-rental-contract .rental-party > b { margin-bottom: 4px; font-size: 11.5px; }
  body.printing-rental-contract .rental-party dl { gap: 3px; }
  body.printing-rental-contract .rental-party dl div { padding: 3px 5px; }
  body.printing-rental-contract .rental-party dt { font-size: 8px; }
  body.printing-rental-contract .rental-party dd { font-size: 10.5px; }
  body.printing-rental-contract .rental-contract-grid { gap: 4px; }
  body.printing-rental-contract .rental-contract-finance { font-size: 10.5px; }
  body.printing-rental-contract .rental-contract-finance th, body.printing-rental-contract .rental-contract-finance td { padding: 6px 7px; }
  body.printing-rental-contract .rental-contract-terms { break-before: auto; page-break-before: auto; padding-top: 0; }
  body.printing-rental-contract .rental-contract-terms ol { padding-right: 18px; }
  body.printing-rental-contract .rental-contract-terms li { margin-bottom: 5px; padding: 6px 7px; font-size: 10.5px; line-height: 1.65; }
  body.printing-rental-contract .rental-contract-signatures { gap: 5px; margin-top: 10px; break-inside: avoid; page-break-inside: avoid; }
  body.printing-rental-contract .rental-contract-signatures > div { min-height: 82px; padding: 8px; border-radius: 5px; font-size: 10px; }
  body.printing-rental-contract .rental-contract-signatures strong { margin: 5px 0 13px; font-size: 11px; }
  body.printing-rental-contract .rental-contract-signatures em { font-size: 8.5px; }
  body.printing-rental-contract .rental-contract-footer { margin-top: 8px; padding-top: 5px; font-size: 8px; }
}

/* Contract schedules flow across pages; keep only individual rows together. */
.rental-contract-payments { width: 100%; border-collapse: collapse; font-size: 13px; }
.rental-contract-payments th, .rental-contract-payments td { border: 1px solid #d9ceca; padding: 8px 6px; text-align: center; }
.rental-contract-payments thead th { background: #6f1731; color: #fff; }
.rental-contract-payments tbody tr:nth-child(even) { background: #faf5f6; }
.rental-contract-payments .rental-schedule-total { background: #f3e8eb; color: #6f1731; font-weight: 900; border-top: 2px solid #c99743; }
.rental-schedule-note { margin: 4px 0 6px; color: #596562; font-size: 11px; }
@media print {
  body.printing-rental-contract .rental-contract-document,
  body.printing-rental-contract .rental-contract-section,
  body.printing-rental-contract .rental-contract-parties,
  body.printing-rental-contract .rental-contract-payments { break-inside: auto; page-break-inside: auto; }
  body.printing-rental-contract .rental-contract-section h2,
  body.printing-rental-contract .rental-contract-parties h2,
  body.printing-rental-contract .rental-schedule-note { break-after: avoid; page-break-after: avoid; }
  body.printing-rental-contract .rental-contract-payments { font-size: 10.5px; }
  body.printing-rental-contract .rental-contract-payments th,
  body.printing-rental-contract .rental-contract-payments td { padding: 5px 6px; }
  body.printing-rental-contract .rental-contract-payments thead { display: table-header-group; }
  body.printing-rental-contract .rental-contract-payments tr,
  body.printing-rental-contract .rental-contract-finance tr,
  body.printing-rental-contract .rental-contract-terms li { break-inside: avoid; page-break-inside: avoid; }
}
