/* Homewise CRM — base layout (ePAMS-like dense admin).
   Loaded before assets/epams/css/manage.css and assets/epams-skin.css. */
:root {
  --epams-blue: #1e4d8c;
  --epams-blue-mid: #2f6bb0;
  --epams-blue-light: #d6e4f5;
  --epams-header: #1a3f73;
  --epams-toolbar: #c8d2e0;
  --epams-border: #8fa3bf;
  --epams-row-alt: #eef3f9;
  --epams-price: #c00000;
  --epams-bg: #e5e9ef;
  --epams-card: #ffffff;
  --epams-ink: #000;
  --epams-muted: #000;
  --epams-danger: #a02020;
  --font: "Microsoft JhengHei", "PingFang HK", "Noto Sans TC", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  color: var(--epams-ink);
  background: var(--epams-bg);
}
a { color: #0645ad; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6px 8px 16px;
}

/* —— Top header (classic blue bar) —— */
.epams-header {
  background: linear-gradient(to bottom, #2f6bb0 0%, #1a3f73 100%);
  color: #fff;
  border-bottom: 2px solid #0f2a4d;
}
.epams-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}
.epams-header .brand {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}
.epams-header .brand:hover { text-decoration: none; color: #ffe082; }
.epams-header .brand small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  opacity: .85;
  letter-spacing: 0;
}

/* —— Grey toolbar —— */
.epams-toolbar {
  background: var(--epams-toolbar);
  border-bottom: 1px solid var(--epams-border);
  font-size: 12px;
}
.epams-toolbar .wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-top: 3px;
  padding-bottom: 3px;
  flex-wrap: wrap;
}
.epams-toolbar a {
  color: #1a3f73;
  padding: 3px 10px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.epams-toolbar a:hover,
.epams-toolbar a.active {
  background: #fff;
  border-color: var(--epams-border);
  text-decoration: none;
}
.epams-toolbar .spacer { flex: 1; }
.epams-toolbar .user {
  color: #333;
  padding: 0 8px;
  font-size: 11px;
}

/* —— Panels / cards —— */
.card, .epams-panel {
  background: var(--epams-card);
  border: 1px solid var(--epams-border);
  margin-bottom: 8px;
  padding: 0;
}
.epams-panel-title,
.card > h1,
.card > h2 {
  margin: 0;
  padding: 8px 10px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to bottom, #3a7cc4 0%, #1e4d8c 100%);
  border-bottom: 1px solid #143560;
}
.card > h2 {
  font-size: 16px;
  background: linear-gradient(to bottom, #5a8ec8 0%, #2f6bb0 100%);
}
.epams-panel-body,
.card-body {
  padding: 8px;
}
/* When h1 is followed by content without card-body wrapper */
.card > h1 + *,
.card > h2 + * { /* spacing handled by children */ }
.card > form,
.card > .detail-grid,
.card > p,
.card > .filters,
.card > .filters-spp,
.card > .actions,
.card > pre {
  padding: 8px;
  margin: 0;
}
.card > p.muted { padding-top: 0; }

h1 { font-size: 18px; margin: 0; }
h2 { font-size: 16px; margin: 0; }
.muted { color: var(--epams-muted); font-size: 13px; }

.flash {
  padding: 6px 10px;
  margin: 6px 0;
  border: 1px solid;
  font-size: 12px;
}
.flash.ok { background: #e8f5e9; border-color: #81c784; color: #1b5e20; }
.flash.error { background: #ffebee; border-color: #e57373; color: #b71c1c; }
.flash.warn { background: #fff8e1; border-color: #ffd54f; color: #e65100; }
.flash.warn a { color: #bf360c; font-weight: 600; text-decoration: underline; }
.dup-banner { margin: .75rem 0 1rem; }
.dup-banner-block {
  border-width: 2px;
  font-size: 1.02rem;
  padding: .85rem 1rem;
}
.dup-banner-msg { display: inline; margin-right: .35rem; }

/* —— Compact filters (bilingual strip) —— */
.filters,
.filters-spp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px 6px;
  align-items: end;
  background: #f3f6fa;
  border-top: 1px solid #c5d0e0;
}
.filters-spp .span2 { grid-column: span 2; }
label {
  display: block;
  font-size: 11px;
  color: #000;
  font-weight: 700;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
input, select, textarea {
  width: 100%;
  padding: 2px 4px;
  border: 1px solid #7a8da8;
  border-radius: 0;
  font: inherit;
  font-size: 12px;
  background: #fff;
  color: #000;
  font-weight: 700;
  height: 22px;
}
textarea { height: auto; min-height: 70px; resize: vertical; }
input[type="checkbox"] { width: auto; height: auto; }
input[type="file"] { height: auto; padding: 2px; }
.filter-actions {
  display: flex;
  gap: 4px;
  align-items: end;
  flex-wrap: wrap;
}
.filter-actions label { display: none; }

/* —— Buttons —— */
.btn {
  display: inline-block;
  border: 1px solid #143560;
  background: linear-gradient(to bottom, #4a8fd4 0%, #1e4d8c 100%);
  color: #fff !important;
  padding: 3px 12px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  border-radius: 0;
  text-decoration: none !important;
  line-height: 1.4;
  height: 22px;
}
.btn:hover {
  background: linear-gradient(to bottom, #5aa0e0 0%, #2a5fa0 100%);
  text-decoration: none !important;
}
.btn.secondary {
  background: linear-gradient(to bottom, #e8ecf0 0%, #b8c4d4 100%);
  color: #1a3f73 !important;
  border-color: #7a8da8;
}
.btn.danger {
  background: linear-gradient(to bottom, #e07070 0%, #a02020 100%);
  border-color: #6b0000;
}
.btn.block { width: 100%; height: auto; padding: 6px; }

/* —— Dense striped table —— */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 !important; }
table, .listings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #fff;
}
th, td {
  padding: 3px 5px;
  border: 1px solid #b0bec8;
  text-align: left;
  vertical-align: top;
}
th {
  background: linear-gradient(to bottom, #3a7cc4 0%, #1e4d8c 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}
tbody tr:nth-child(even) td { background: var(--epams-row-alt); }
tbody tr:hover td { background: #fff3cd; }
.listings-table .price { color: var(--epams-price); font-weight: 700; }
.detail-grid .price { color: var(--epams-price); font-size: 20px; font-weight: 700; }

/* P5: CRM list / sold desk — match 客盤表 contrast (darker ink, larger type) */
.listings-table {
  font-size: 14px;
  color: #000;
  font-weight: 700;
}
.listings-table th {
  background: #d6e4f5 !important;
  color: #000 !important;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 2px solid #000;
  padding: 5px 6px;
}
.listings-table tbody td {
  color: #000;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 6px;
  vertical-align: middle;
}
.listings-table .muted,
.listings-table td.muted,
.listings-table .muted a {
  color: #000 !important;
  font-size: 13px;
  font-weight: 700;
}
.listings-table tbody tr.row-clickable {
  cursor: pointer;
}
.listings-table tbody tr.row-clickable:hover td {
  background: #ffe9a8;
}
.listings-table strong {
  color: #000;
  font-weight: 700;
}
.listings-table .rent {
  color: #000;
  font-weight: 600;
}
.listings-table a,
.listings-table a.link-detail {
  color: #000 !important;
}

.tag {
  display: inline-block;
  font-size: 10px;
  padding: 0 4px;
  margin-left: 3px;
  border: 1px solid #8fa3bf;
  background: #e8eef6;
  color: #1a3f73;
  border-radius: 0;
  vertical-align: middle;
}

.pager {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  padding: 6px 8px;
  background: #f3f6fa;
  border-top: 1px solid var(--epams-border);
}
.pager .btn { height: auto; }

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  padding: 8px;
}
.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px 10px;
  padding: 8px;
}
.grid4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6px 10px;
  padding: 8px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 4px 10px;
  padding: 8px;
}
.detail-grid .label {
  font-size: 12px;
  color: #000;
  background: #eef2f7;
  padding: 3px 6px;
  border: 1px solid #c5d0e0;
  border-bottom: none;
}
.detail-grid .val {
  font-weight: 600;
  font-size: 15px;
  word-break: break-word;
  padding: 4px 6px;
  border: 1px solid #c5d0e0;
  background: #fff;
  min-height: 18px;
}
.phone { font-family: Consolas, "Courier New", monospace; letter-spacing: .02em; }
a.wa-link {
  color: #0b7a3e;
  text-decoration: none;
  font-weight: 600;
}
a.wa-link:hover {
  color: #075e30;
  text-decoration: underline;
}
a.phone-landline {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  font-family: Consolas, "Courier New", monospace;
}
a.phone-landline:hover {
  color: #000;
  text-decoration: underline;
}
.wa-form-wrap a.phone-landline { font-size: 11px; }
.wa-form-wrap {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
  word-break: break-all;
}
.wa-form-wrap a.wa-link { font-family: Consolas, "Courier New", monospace; }
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px !important;
  background: #f3f6fa;
  border-top: 1px solid var(--epams-border);
}
.actions .btn { height: auto; }

/* —— Login —— */
body.login-page {
  background: #c5cdd8;
  min-height: 100vh;
}
.login-box {
  max-width: 360px;
  margin: 4rem auto;
  border: 1px solid #1a3f73;
  box-shadow: 2px 2px 0 rgba(0,0,0,.15);
}
.login-box h1 {
  padding: 6px 10px;
  background: linear-gradient(to bottom, #3a7cc4 0%, #1a3f73 100%);
  color: #fff;
  font-size: 14px;
}
.login-box .muted { padding: 6px 10px 0; margin: 0; }
.login-box form { padding: 10px; }
.login-box form p { margin: 0 0 8px; }

.result-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  background: #d6e4f5;
  border: 1px solid var(--epams-border);
  border-bottom: none;
  font-size: 12px;
  font-weight: 700;
  color: #000;
}
.result-bar .muted { font-weight: 400; margin-left: auto; }

.link-detail {
  color: #000;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .grid4 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 960px) {
  .filters-spp, .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters-spp .span2 { grid-column: span 3; }
  .grid3, .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .filters-spp, .filters { grid-template-columns: 1fr 1fr; }
  .filters-spp .span2 { grid-column: span 2; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}

/* Address line under detail title */
.card > h1 + p.muted {
  margin: 0;
  padding: 2px 8px 6px;
  background: #245a9a;
  color: #e8eef6;
  border-bottom: 1px solid #143560;
}

/* Sortable column headers */
.listings-table th a.th-sort {
  color: #000;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  cursor: pointer;
}
.listings-table th a.th-sort:hover { text-decoration: underline; color: #000; }
.listings-table th a.th-sort.sorted { font-weight: 700; text-decoration: underline; color: #000; }

/* Language switch */
.epams-header .lang-switch {
  margin-left: auto;
  font-size: 12px;
  white-space: nowrap;
}
.epams-header .lang-switch a {
  color: #d6e4f5;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 3px;
}
.epams-header .lang-switch a:hover { color: #fff; background: rgba(255,255,255,.12); text-decoration: none; }
.epams-header .lang-switch a.active {
  color: #fff;
  font-weight: 700;
  background: rgba(255,255,255,.22);
}
.epams-header .lang-sep { opacity: .5; margin: 0 2px; color: #fff; }

/* EPRC-style property typeahead */
.suggest-wrap { position: relative; }
.suggest-box {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
  max-height: 280px; overflow: auto;
  background: #fff; border: 1px solid #9bb6d4; box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.suggest-item {
  display: block; width: 100%; text-align: left;
  border: 0; border-bottom: 1px solid #eef2f7;
  background: #fff; padding: 8px 10px; cursor: pointer;
  font: inherit; color: #1a2a3a;
}
.suggest-item:hover, .suggest-item.active { background: #1e5a96; color: #fff; }
.suggest-item:hover .suggest-title, .suggest-item.active .suggest-title { color: #fff; }
.suggest-item:hover .suggest-sub, .suggest-item.active .suggest-sub { color: #d6e4f5; }
.suggest-title { display: block; font-weight: 600; font-size: 13px; color: inherit; }
.suggest-sub { display: block; font-size: 11px; color: #667788; margin-top: 2px; }

.suggest-item-landlord { padding: 8px 10px; }
.suggest-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 1px 6px;
  border-radius: 3px;
  margin-bottom: 3px;
  background: #e8eef6;
  color: #1e3a5f;
}
.suggest-badge-landlord { background: #e3f0e8; color: #1b5e20; }
.suggest-badge-client { background: #fff3e0; color: #e65100; }
.suggest-badge-both { background: #e8eaf6; color: #283593; }
.suggest-props {
  margin: 4px 0 2px;
  padding-left: 1.1rem;
  font-size: 11px;
  color: #445566;
  max-height: 120px;
  overflow: auto;
}
.suggest-item-landlord:hover .suggest-props,
.suggest-item-landlord.active .suggest-props { color: #e8f0fa; }
.suggest-item-landlord:hover .suggest-badge,
.suggest-item-landlord.active .suggest-badge {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.landlord-match-hint {
  color: #8a5a00 !important;
  background: #fff8e6;
  border: 1px solid #f0d9a0;
  border-radius: 3px;
  padding: 4px 8px;
}
.suggest-title-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
}
.suggest-chip {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid #c5d0e0;
  background: #f3f7fb;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
}
.suggest-chip-name { background: #eef5ff; border-color: #9bb6d4; }
.suggest-chip-phone {
  font-family: Consolas, "Courier New", monospace;
  background: #f0faf3;
  border-color: #9cc9ad;
}
.suggest-item-landlord:hover .suggest-chip,
.suggest-item-landlord.active .suggest-chip {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.45);
  color: #fff;
}
.suggest-box-landlord {
  max-height: 360px;
  min-width: 360px;
  width: max(360px, 100%);
  right: auto;
  z-index: 80;
}
.landlord-match-hint { cursor: pointer; }


.feature-checks {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  padding: 8px 10px;
  background: #f7fafc;
  border: 1px solid #c5d4e8;
  border-radius: 4px;
}
.feature-checks > .feature-check,
label.feature-check {
  display: inline-flex !important;
  flex: 0 0 auto;
  width: auto !important;
  max-width: none;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #1a2a3a;
  cursor: pointer;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.feature-check input[type="checkbox"] {
  margin: 0;
  width: auto;
  height: auto;
  flex: 0 0 auto;
}

.landlord-line {
  display: grid !important;
  grid-template-columns: minmax(280px, 1.6fr) 140px 140px !important;
  max-width: 720px;
}
.landlord-line > div:nth-child(2),
.landlord-line > div:nth-child(3) { width: 140px; max-width: 140px; }
.landlord-line > div:nth-child(2) input,
.landlord-line > div:nth-child(3) input { width: 140px !important; max-width: 140px !important; }
.detail-grid.landlord-compact {
  grid-template-columns: minmax(220px, 2fr) 120px 120px !important;
  max-width: 640px;
}
.detail-grid.landlord-compact .val.phone {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Detail address — largest readable line under title */
.listing-address {
  margin: 0 !important;
  padding: 10px 12px !important;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.45;
  color: #0f2a4d !important;
  background: #e8f1fb;
  border-bottom: 1px solid #c5d0e0;
}
.epams-detail .detail-grid .val { font-size: 15px; }
.epams-detail label,
.card label { font-size: 13px !important; }
input, select, textarea { font-size: 14px !important; height: 28px; }
textarea { height: auto; min-height: 80px; }
.btn { font-size: 14px !important; padding: 5px 12px; height: auto; }
.epams-toolbar { font-size: 14px; }
.epams-toolbar a { padding: 5px 12px; }
table.data, .results table { font-size: 13px; }

/* —— Presentation select (listings list) —— */
.presentation-select-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.presentation-select-bar .spacer { flex: 1; }
.presentation-select-bar .select-all-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.listings-table .col-check {
  width: 28px;
  text-align: center;
  vertical-align: middle;
}
.listings-table .col-check input { margin: 0; }

/* —— Client presentation pack (dense line list) —— */
/* 2026-10-30 A4 fit: Property ~13%, all #000, +1pt fonts, no red prices */
.presentation-page .flash { margin-bottom: 8px; }
.presentation-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 8px 0 14px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--epams-border);
  border-radius: 4px;
}
.presentation-print-btn {
  font-size: 16px !important;
  padding: 8px 18px !important;
  font-weight: 700;
}
.presentation-sheet {
  background: #fff;
  border: 1px solid var(--epams-border);
  border-radius: 4px;
  padding: 10px 12px 8px;
  margin-bottom: 12px;
  color: #000;
  overflow-x: hidden;
}
.presentation-sheet .muted {
  color: #222;
  font-size: inherit;
}
.presentation-line-list {
  page-break-inside: auto;
}
.presentation-brand {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 2px solid #000;
}
.presentation-brand-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.presentation-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.presentation-company-en {
  font-weight: 800;
  font-size: 17px;
  color: #000;
  line-height: 1.15;
}
.presentation-company-zh {
  font-size: 13px;
  font-weight: 700;
  color: #000;
}
.presentation-brand-right {
  text-align: right;
  font-size: 13px;
  line-height: 1.35;
  color: #000;
  font-weight: 600;
}
.presentation-agent {
  font-weight: 800;
  font-size: 15px;
  color: #000;
}
.presentation-contact { color: #000; font-weight: 600; }
.presentation-contact a { color: #000; font-weight: 700; }
.presentation-meta {
  font-size: 12px;
  margin-top: 2px;
  color: #000;
  font-weight: 600;
}

.presentation-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
  line-height: 1.25;
  color: #000;
  font-weight: 700;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  color-adjust: exact;
}
.presentation-table thead th {
  background: #c5d6eb;
  color: #000;
  font-weight: 800;
  font-size: 11px;
  text-align: left;
  padding: 4px 2px;
  border-bottom: 2px solid #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  color-adjust: exact;
}
.presentation-table tbody td {
  padding: 3px 2px;
  border-bottom: 1px solid #888;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  opacity: 1;
  min-width: 0;
}
.presentation-table tbody tr:nth-child(even) td {
  background: #e4ecf5;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  color-adjust: exact;
}
/* A4 landscape fit: Property ~13%; Net/Gross/Sale/Rent tight (2026-10-30) */
.presentation-table .col-num { width: 2.2%; text-align: center; padding-left: 1px; padding-right: 1px; }
.presentation-table .col-property { width: 13%; max-width: 13%; }
.presentation-table .col-block { width: 9%; padding-left: 1px; padding-right: 1px; }
.presentation-table .col-floor { width: 4.2%; text-align: center; padding-left: 1px; padding-right: 1px; font-size: 0.92em; }
.presentation-table .col-unit { width: 3.5%; text-align: center; padding-left: 1px; padding-right: 1px; }
.presentation-table .col-net { width: 5%; text-align: right; padding-left: 1px; padding-right: 1px; }
.presentation-table .col-gross { width: 5%; text-align: right; padding-left: 1px; padding-right: 1px; }
.presentation-table .col-beds { width: 3.5%; text-align: center; padding-left: 1px; padding-right: 1px; }
.presentation-table .col-baths { width: 3.5%; text-align: center; padding-left: 1px; padding-right: 1px; }
.presentation-table .col-maid { width: 5.5%; text-align: center; padding-left: 1px; padding-right: 1px; }
.presentation-table .col-park { width: 6%; text-align: center; padding-left: 1px; padding-right: 1px; }
.presentation-table .col-sale { width: 5.5%; text-align: right; font-weight: 800; color: #000; padding-left: 1px; padding-right: 1px; }
.presentation-table .col-rent { width: 5%; text-align: right; font-weight: 800; color: #000; padding-left: 1px; padding-right: 1px; }
.presentation-table .col-op { width: 6.5%; padding-left: 1px; padding-right: 1px; white-space: nowrap; }
.presentation-table .prop-main {
  font-weight: 800;
  font-size: 12px;
  color: #000;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.presentation-table .prop-street {
  font-size: 10px;
  margin-top: 1px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.presentation-footer {
  border-top: 1px solid #000;
  padding-top: 5px;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #000;
  font-weight: 700;
}
.presentation-footer-brand,
.presentation-footer-contact { display: none !important; }
.presentation-disclaimer {
  margin-top: 0;
  font-size: 11px;
  font-weight: 700;
  color: #000;
}

@media (max-width: 900px) {
  .presentation-brand { flex-direction: column; }
  .presentation-brand-right { text-align: left; }
  .presentation-table { font-size: 12px; table-layout: fixed; }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 6mm 5mm 7mm;
  }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  html, body {
    width: 100%;
    background: #fff !important;
    font-size: 11pt;
    color: #000 !important;
    font-weight: 700;
  }
  .epams-header,
  .epams-toolbar,
  .no-print,
  .flash,
  .suggest-box {
    display: none !important;
  }
  .wrap {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .presentation-pack,
  .presentation-sheet {
    width: 100% !important;
    max-width: 100% !important;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
    color: #000 !important;
    overflow: hidden !important;
  }
  .presentation-brand {
    border-bottom-color: #000 !important;
    padding-bottom: 3px;
    margin-bottom: 3px;
  }
  .presentation-logo { height: 36px; max-width: 100px; }
  .presentation-company-en { font-size: 12pt; color: #000 !important; font-weight: 800; }
  .presentation-company-zh { font-size: 10pt; color: #000 !important; font-weight: 700; }
  .presentation-agent { font-size: 11pt; color: #000 !important; font-weight: 800; }
  .presentation-brand-right { font-size: 9.5pt; color: #000 !important; font-weight: 700; }
  .presentation-contact,
  .presentation-contact a { color: #000 !important; font-weight: 700; }
  .presentation-meta { font-size: 8.5pt; color: #000 !important; font-weight: 700; }
  .presentation-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    font-size: 11pt; /* +1 from previous 10.5pt */
    line-height: 1.2;
    color: #000 !important;
    font-weight: 700;
  }
  .presentation-table thead th {
    font-size: 9.5pt; /* +1 from previous 9pt */
    padding: 3px 1px;
    color: #000 !important;
    background: #c5d6eb !important;
    font-weight: 800;
    border-bottom-color: #000 !important;
  }
  .presentation-table tbody td {
    padding: 2.5px 1px;
    color: #000 !important;
    font-size: 11pt;
    font-weight: 700;
    opacity: 1 !important;
    min-width: 0 !important;
  }
  .presentation-table tbody tr:nth-child(even) td {
    background: #e4ecf5 !important;
  }
  .presentation-table .col-property { width: 13% !important; max-width: 13% !important; }
  .presentation-table .col-net,
  .presentation-table .col-gross { width: 5% !important; }
  .presentation-table .col-sale { width: 5.5% !important; color: #000 !important; font-weight: 800 !important; }
  .presentation-table .col-rent { width: 5% !important; color: #000 !important; font-weight: 800 !important; }
  .presentation-table .col-op { width: 6.5% !important; }
  .presentation-table .col-floor { width: 4.2% !important; font-size: 0.92em; }
  .presentation-table .prop-main {
    font-size: 10pt; /* +1 from previous ~9–10 */
    color: #000 !important;
    font-weight: 800;
  }
  .presentation-table .prop-street {
    font-size: 8.5pt;
    color: #000 !important;
    font-weight: 700;
  }
  .presentation-table .col-sale,
  .presentation-table .col-rent {
    color: #000 !important;
    font-weight: 800 !important;
  }
  .presentation-table thead {
    display: table-header-group;
  }
  .presentation-table tbody tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .presentation-footer {
    margin-top: 4px;
    padding-top: 3px;
    font-size: 8.5pt;
    color: #000 !important;
    font-weight: 700;
  }
  .presentation-disclaimer { font-size: 8.5pt; color: #000 !important; font-weight: 700; }
  a { color: #000 !important; text-decoration: none; }
}
