:root {
  --ink: #15253a;
  --ink-soft: #34465a;
  --muted: #5f6f82;
  --muted-strong: #4b5d70;
  --line: #dce3ea;
  --line-strong: #c7d1dc;
  --paper: #ffffff;
  --paper-soft: #f8fafb;
  --canvas: #f1f4f7;
  --nav: #0b2233;
  --nav-soft: #174259;
  --nav-line: rgba(255,255,255,.1);
  --nav-text: #f7fafc;
  --nav-text-secondary: #dce8ef;
  --nav-text-muted: #aec0cc;
  --brand: #087c75;
  --brand-dark: #05635e;
  --brand-soft: #e4f3f1;
  --danger: #b82f45;
  --danger-dark: #922438;
  --danger-soft: #fff0f2;
  --warning: #9d5b05;
  --warning-soft: #fff4dd;
  --positive: #117653;
  --positive-soft: #e7f7ef;
  --info: #276b9c;
  --info-soft: #eaf3fa;
  --focus: #168fca;
  --shadow-sm: 0 2px 8px rgba(23, 42, 62, .05);
  --shadow: 0 8px 24px rgba(23, 42, 62, .07);
  --shadow-lg: 0 18px 50px rgba(8, 29, 45, .18);
  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 14px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
}
* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; color: var(--ink); background: var(--canvas); line-height: 1.5; }
body { margin: 0; min-width: 320px; max-width: 100%; overflow-x: clip; font-size: 14px; }
a { color: #08746f; text-decoration: none; }
a:hover { color: var(--brand-dark); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg, canvas, video { max-width: 100%; }
h1, h2, h3, p, a, dd, td, th, .cell-note { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid rgba(22,143,202,.38); outline-offset: 2px; }
::selection { color: var(--ink); background: #cceae7; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: 10px; z-index: 100; transform: translateY(-150%); padding: 9px 13px; border-radius: var(--radius-sm); color: white; background: var(--ink); transition: transform .16s ease; }
.skip-link:focus { transform: translateY(0); color: white; }
.app-shell { width: 100%; max-width: 100%; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 256px minmax(0, 1fr); overflow-x: clip; }
.nav-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.sidebar { background: #fff; color: #34483f; position: fixed; inset: 0 auto 0 0; width: 256px; padding: 24px 13px 17px; border-right: 1px solid #e0e7e1; display: flex; flex-direction: column; z-index: 30; }
.sidebar svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.brand { display: flex; min-width: 0; align-items: center; gap: 10px; color: #20332f; }
.brand:hover { color: #086c58; }
.brand-mark { width: 33px; height: 33px; flex: 0 0 33px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--brand); }
.brand-mark svg { width: 21px; height: 21px; }
.brand > span:last-child { min-width: 0; }
.brand b, .brand small { display: block; min-width: 0; overflow-wrap: anywhere; }
.brand b { font-size: 15px; font-weight: 650; letter-spacing: .3px; }
.brand small { font-size: 10px; color: #627568; margin-top: 4px; letter-spacing: 1px; }
.sidebar-head { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; margin: 0 6px 22px; flex: 0 0 auto; }
.sidebar-head .brand { flex: 1 1 auto; }
.sidebar .menu-close { display: none; position: static; width: 32px; min-width: 32px; max-width: 32px; height: 38px; min-height: 38px; flex: 0 0 32px; place-items: center; align-self: flex-start; padding: 0; appearance: none; border: 0; border-radius: 7px; color: #627568; background: transparent; font-size: 23px; line-height: 1; cursor: pointer; }
.sidebar .menu-close:hover { color: #086c58; background: #f1f5f1; }
.sidebar-primary-nav { flex: 0 0 auto; margin: 0 1px 16px; }
.nav-pinned-todo { min-height: 42px; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 11px; padding: 8px 12px; border-radius: 7px; color: #34483f; background: #f1f5f1; font-size: 13px; font-weight: 400; }
.nav-pinned-todo:hover { color: #20332f; background: #eaf1eb; }
.nav-pinned-todo.active { color: #086c58; background: #e3f1e9; font-weight: 650; }
.sidebar :focus-visible { outline: 2px solid #087c75; outline-offset: -2px; }
.nav-caption { flex: 0 0 auto; padding: 0 12px 10px; font-size: 10px; letter-spacing: 1.5px; color: #627568; }
.nav-tree { flex: 1 1 auto; min-height: 0; padding: 0 0 12px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; background: #fff; scrollbar-width: thin; scrollbar-color: #a8bab0 transparent; }
.nav-tree-groups, .nav-tree-children { margin: 0; padding: 0; list-style: none; }
.nav-tree-groups { display: grid; gap: 4px; }
.nav-tree-group { min-width: 0; }
.nav-tree-parent { width: 100%; min-height: 42px; display: grid; grid-template-columns: 18px minmax(0, 1fr) 13px; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-radius: 7px; color: #34483f; background: transparent; text-align: left; cursor: pointer; font-weight: 400; }
.nav-tree-parent:hover { color: #20332f; background: #f1f5f1; }
.nav-tree-group.is-current-module > .nav-tree-parent { color: #086c58; font-weight: 650; }
.nav-tree-icon { width: 18px; height: 18px; min-width: 18px; color: #627568; }
.nav-tree-group.is-current-module > .nav-tree-parent .nav-tree-icon, .nav-pinned-todo.active .nav-tree-icon { color: inherit; }
.nav-tree-parent-label, .nav-tree-link-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-tree-parent-label { font-size: 13px; }
.nav-tree-caret { width: 13px; height: 13px; color: #627568; transition: transform .16s ease; }
.nav-tree-parent[aria-expanded="true"] .nav-tree-caret { transform: rotate(90deg); }
.nav-tree-children { display: grid; margin: 2px 0 6px 20px; padding-left: 12px; border-left: 1px solid #e0e7e1; }
.nav-tree-link { position: relative; min-height: 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 6px; color: #34483f; font-size: 13px; font-weight: 400; }
.nav-tree-link:hover { color: #20332f; background: #f1f5f1; }
.nav-tree-link.active { color: #086c58; background: #e3f1e9; font-weight: 650; }
.nav-tree-link.active::before { content: ""; position: absolute; left: -14px; width: 3px; height: 13px; border-radius: 3px; background: var(--brand); }
.nav-tree-link.active::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.nav-tree-empty { margin: 2px 8px 4px 27px; color: #667788; font-size: 11px; }
.sidebar-footer { flex: 0 0 auto; margin-top: auto; padding: 14px 10px 0; color: #34483f; font-size: 11px; border-top: 1px solid #e0e7e1; }
.sidebar-status { line-height: 1.4; }
.system-meta { display: grid; gap: 3px; margin-top: 6px; color: #627568; font-size: 10px; line-height: 1.4; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #1c9673; border-radius: 50%; margin-right: 4px; }
.menu-overlay { position: fixed; inset: 0; z-index: 25; border: 0; background: rgba(7, 24, 37, .52); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
main { grid-column: 2; width: 100%; max-width: 100%; min-width: 0; overflow-x: clip; }
.topbar { height: 64px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.topbar-heading { min-width: 0; margin-right: auto; }
.topbar-title { font-weight: 700; }
.breadcrumbs { display: flex; min-width: 0; align-items: center; gap: 5px; margin-top: 2px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; }
.breadcrumbs a, .breadcrumbs span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.topbar-user { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.topbar-user form { margin: 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #dbeae9; color: var(--brand-dark); font-weight: 800; display: grid; place-items: center; }
.link-button { min-height: 32px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.menu-toggle { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: white; color: var(--ink); font-size: 20px; cursor: pointer; }
.content { width: 100%; max-width: 1680px; min-width: 0; padding: 26px 30px 50px; margin: auto; }
.page-heading { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 22px; }
.page-heading > * { min-width: 0; }
.page-heading h1 { margin: 0; font-size: clamp(23px, 2.2vw, 28px); line-height: 1.25; letter-spacing: -.03em; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.eyebrow { color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .06em; margin-bottom: 6px; }
.actions { display: flex; min-width: 0; align-items: center; gap: 9px; flex-wrap: wrap; }
.actions > * { min-width: 0; }
.actions form { margin: 0; }
.btn { min-height: 40px; border: 1px solid transparent; border-radius: var(--radius); padding: 8px 14px; gap: 7px; font-weight: 700; font-size: 13px; line-height: 1.2; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: wait; opacity: .7; transform: none; }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); color: white; }
.btn-secondary { background: white; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: #91a2b3; color: var(--ink); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: var(--danger-dark); color: white; }
.btn-quiet { background: var(--paper-soft); color: var(--ink-soft); border-color: var(--line); }
.btn-sm { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.is-loading::before { content: ""; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-block { width: 100%; }
.text-link { font-size: 13px; }
.filter-bar { display: flex; min-width: 0; align-items: flex-end; flex-wrap: wrap; gap: 10px; padding: 14px; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.filter-bar > * { min-width: 0; }
.filter-bar .form-control { width: auto; min-width: 160px; }
.filter-bar .search-input { min-width: 320px; }
.filter-field { display: flex; min-width: 150px; flex-direction: column; gap: 5px; }
.filter-field.grow { flex: 1 1 260px; }
.filter-field label { color: var(--muted-strong); font-size: 11px; font-weight: 700; }
.filter-field .form-control { width: 100%; min-width: 0; }
.compact-field { min-width: 150px; flex: 0 1 190px; }
.compact-field.grow { flex: 1 1 270px; }
.compact-field label { color: var(--muted-strong); font-size: 11px; font-weight: 700; }
.filter-bar .compact-field .form-control { width: 100%; min-width: 0; }
.filter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.query-form { width: 100%; min-width: 0; margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
.filter-grid { display: grid; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; }
.filter-grid > * { min-width: 0; }
.filter-grid .field { min-width: 0; }
.filter-grid .form-control, .filter-grid .search-input { width: 100%; min-width: 0; }
.dashboard-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.payment-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.filter-span-2 { grid-column: span 2; }
.filter-collapse { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #f8fafb; }
.filter-collapse > summary { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; color: var(--ink); font-weight: 700; list-style: none; }
.filter-collapse > summary::-webkit-details-marker { display: none; }
.filter-collapse > summary::after { content: "展开"; flex: 0 0 auto; color: var(--brand); font-size: 11px; font-weight: 700; }
.filter-collapse[open] > summary { border-bottom: 1px solid var(--line); }
.filter-collapse[open] > summary::after { content: "收起"; }
.filter-collapse > summary small { color: var(--muted); font-size: 11px; font-weight: 400; }
.filter-collapse > .filter-grid { padding: 14px; }
.dashboard-filters .query-actions { justify-content: flex-end; margin-top: 10px; padding-top: 10px; }
.receivable-summary-layout { min-width: 0; }
.receivable-filter-panel .query-form { margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.receivable-filter-panel .message { margin-top: 0; }
.date-range-fields { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.date-range-fields > * { min-width: 0; }
.date-range-fields > span { color: var(--muted); font-size: 11px; }
.panel-heading { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.panel-heading > * { min-width: 0; }
.panel-heading h2 { margin: 0; font-size: 16px; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.receivable-totals-panel { background: #1c3549; border-radius: 0; }
.receivable-totals-panel .summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; overflow: hidden; border-radius: 0; box-shadow: none; }
.receivable-totals-panel .summary-strip > div { min-width: 0; padding: 10px 14px; text-align: center; }
.receivable-totals-panel .summary-strip span { margin-bottom: 3px; }
.table-wrap.receivable-detail-table-wrap { overflow: visible; contain: none; scrollbar-gutter: auto; }
.receivable-detail-table { width: 100%; min-width: 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.receivable-detail-table th, .receivable-detail-table td { min-width: 0; padding: 9px 8px; white-space: normal; }
.receivable-detail-table thead th { background: #f6f8fa; box-shadow: 0 1px 0 var(--line); }
.receivable-detail-table th:first-child, .receivable-detail-table td:first-child { padding-left: 14px; }
.receivable-detail-table th:last-child, .receivable-detail-table td:last-child { padding-right: 14px; }
.receivable-detail-table .money { white-space: nowrap; }
.receivable-period-range { display: grid; justify-items: center; line-height: 1.35; white-space: nowrap; }
.receivable-period-initial { white-space: nowrap; }
@media (min-width: 1201px) {
  .receivable-detail-table th:nth-child(1) { width: 8%; }
  .receivable-detail-table th:nth-child(2) { width: 7.5%; }
  .receivable-detail-table th:nth-child(3) { width: 7.5%; }
  .receivable-detail-table th:nth-child(4) { width: 7.5%; }
  .receivable-detail-table th:nth-child(5) { width: 9.5%; }
  .receivable-detail-table th:nth-child(6),
  .receivable-detail-table th:nth-child(7),
  .receivable-detail-table th:nth-child(8) { width: 11.5%; }
  .receivable-detail-table th:nth-child(9) { width: 8.5%; }
  .receivable-detail-table th:nth-child(10),
  .receivable-detail-table th:nth-child(11) { width: 8.5%; }
  .receivable-detail-table th:nth-child(4),
  .receivable-detail-table td:nth-child(4),
  .receivable-detail-table th:nth-child(5),
  .receivable-detail-table td:nth-child(5),
  .receivable-detail-table th:nth-child(n+9),
  .receivable-detail-table td:nth-child(n+9) { text-align: center; }
  .receivable-detail-table th:nth-child(n+6):nth-child(-n+8),
  .receivable-detail-table td:nth-child(n+6):nth-child(-n+8) { padding-right: 5px; padding-left: 5px; text-align: right; }
  .receivable-detail-table td:nth-child(5) { overflow-wrap: normal; word-break: keep-all; }
  .receivable-detail-table td:nth-child(9) .status-stack,
  .receivable-detail-table td:nth-child(10) .status-stack { align-items: center; }
  .receivable-detail-table td:nth-child(11) .table-actions { justify-content: center; }
  .receivable-detail-table .table-actions a { white-space: nowrap; }
}
.payment-table-heading { margin: 0; padding: 18px 19px 14px; border-bottom: 1px solid var(--line); }
.notice-history-heading { margin: 0; padding: 18px 19px 14px; border-bottom: 1px solid var(--line); }
.notice-history-heading > div { min-width: 0; }
.notice-history-title-row { display: flex; min-width: 0; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.notice-history-heading .result-count { white-space: nowrap; }
.table-wrap.notice-history-table-wrap { scrollbar-gutter: auto; }
.notice-history-table { table-layout: fixed; }
.notice-history-table .notice-col-code { width: 16%; }
.notice-history-table .notice-col-customer { width: 11%; }
.notice-history-table .notice-col-dates { width: 13%; }
.notice-history-table .notice-col-balance { width: 11%; }
.notice-history-table .notice-col-status { width: 9%; }
.notice-history-table .notice-col-created { width: 13%; }
.notice-history-table .notice-col-follow-up { width: 15%; }
.notice-history-table .notice-col-actions { width: 12%; }
.notice-history-table th:first-child, .notice-history-table td:first-child { padding-left: 19px; }
.notice-history-table th:last-child, .notice-history-table td:last-child { padding-right: 19px; }
.notice-history-table .table-actions { justify-content: flex-start; }
.settlement-directory-heading { margin: 0; padding: 18px 19px 14px; border-bottom: 1px solid var(--line); }
.settlement-directory-heading > div { min-width: 0; }
.settlement-directory-title-row { display: flex; min-width: 0; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.settlement-directory-heading .result-count { white-space: nowrap; }
.table-wrap.settlement-directory-table-wrap { scrollbar-gutter: auto; }
.table-wrap.tenant-directory-table-wrap { scrollbar-gutter: auto; }
.company-structure-heading { align-items: flex-start; }
.company-structure-section { scroll-margin-top: 24px; margin-bottom: 20px; }
.company-structure-section-heading { margin-bottom: 12px; }
.company-structure-section-heading p, .company-node-heading p, .company-child-title-row p, .company-children-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.company-node { padding: 20px; }
.company-node-headquarters { border-top: 4px solid var(--primary); }
.company-node-heading, .company-child-title-row, .company-children-heading { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 16px; }
.company-node-heading h3, .company-child-title-row h4, .company-children-heading h4 { margin: 3px 0 0; }
.company-node-level { display: inline-block; color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.company-node-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.company-node-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 16px 0 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.company-node-facts > div { min-width: 0; padding: 11px 13px; background: var(--paper); }
.company-node-facts dt { color: var(--muted); font-size: 11px; }
.company-node-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 600; }
.company-children-heading { align-items: center; margin: 0 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.company-child-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.company-child-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-soft); }
.company-child-title-row h4, .company-child-title-row p { overflow-wrap: anywhere; }
.company-resource-block { margin-top: 15px; }
.company-resource-block h5 { margin: 0 0 7px; color: var(--muted); font-size: 12px; }
.company-headquarters-account-block { margin: -6px 0 20px; }
.company-headquarters-account-block h4 { margin: 0 0 7px; color: var(--muted); font-size: 12px; }
.company-resource-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.company-resource-list li { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 8px 9px; border-radius: 6px; background: var(--paper); }
.company-resource-list li > span { min-width: 0; }
.company-resource-list b, .company-resource-list small { display: block; overflow-wrap: anywhere; }
.company-resource-list small { margin-top: 2px; color: var(--muted); }
.company-resource-list .company-resource-empty { display: block; color: var(--muted); text-align: center; }
.company-account-links, .company-account-availability { display: flex; flex-wrap: wrap; gap: 6px; }
.company-account-links a, .company-account-availability span { display: inline-flex; max-width: 100%; padding: 4px 8px; border-radius: 999px; background: var(--paper); font-size: 11px; overflow-wrap: anywhere; }
.company-account-availability span { background: var(--paper-soft); }
.company-account-table { min-width: 980px; }
.company-account-table th:nth-child(1) { width: 15%; }
.company-account-table th:nth-child(2) { width: 10%; }
.company-account-table th:nth-child(3) { width: 14%; }
.company-account-table th:nth-child(4) { width: 24%; }
.company-account-table th:nth-child(5) { width: 22%; }
.company-account-table th:nth-child(6) { width: 7%; }
.company-account-table th:nth-child(7) { width: 8%; }
.table-wrap.contract-directory-table-wrap { scrollbar-gutter: auto; }
.table-wrap > table.contract-management-table { min-width: 860px; table-layout: fixed; }
.contract-management-table th, .contract-management-table td { min-width: 0; padding: 10px 8px; }
.contract-management-table th:first-child, .contract-management-table td:first-child { padding-left: 12px; }
.contract-management-table th:last-child, .contract-management-table td:last-child { padding-right: 12px; }
.contract-management-table th:nth-child(1) { width: 25%; }
.contract-management-table th:nth-child(2) { width: 15%; }
.contract-management-table th:nth-child(3) { width: 24%; }
.contract-management-table th:nth-child(4) { width: 15%; }
.contract-management-table th:nth-child(5) { width: 9%; }
.contract-management-table th:nth-child(6) { width: 12%; }
.contract-management-table td { overflow-wrap: anywhere; vertical-align: top; }
.contract-management-stack, .contract-period-stack { display: grid; min-width: 0; gap: 2px; }
.contract-management-line, .contract-asset-stack > span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contract-management-line.secondary { color: var(--muted); }
.contract-period-stack > span { white-space: nowrap; }
.contract-asset-stack { display: grid; gap: 4px; }
.contract-management-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.contract-status-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.contract-status-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; color: var(--muted); }
.contract-status-tabs a b { padding: 1px 6px; border-radius: 5px; background: var(--paper); font-size: 12px; font-weight: 500; }
.contract-status-tabs a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.contract-status-tabs a[aria-current="page"] b { background: white; }
.contract-result-count { color: var(--muted); font-size: 12px; }
.contract-client-cell { display: grid; min-width: 0; gap: 9px; }
.contract-client-name { font-size: 14px; font-weight: 700; }
.contract-code-row { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 11px; }
.contract-code-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contract-copy-button { flex: none; min-width: 42px; border: 1px solid var(--line); border-radius: 5px; padding: 3px 5px; background: white; color: var(--muted); font-size: 10px; cursor: pointer; }
.contract-single-asset small, .contract-assets-disclosure small { display: block; margin-top: 5px; font-size: 11px; font-weight: 400; color: var(--muted); }
.contract-assets-disclosure summary { display: flex; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; }
.contract-assets-disclosure summary::-webkit-details-marker { display: none; }
.contract-assets-disclosure summary > span:first-child { min-width: 0; }
.contract-disclosure-label { flex: none; color: var(--brand); font-size: 11px; padding-top: 2px; }
.contract-disclosure-label::after { content: "展开⌄"; }
.contract-assets-disclosure[open] .contract-disclosure-label::after { content: "收起⌃"; }
.contract-assets-disclosure ul { display: grid; gap: 12px; margin: 12px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--line); }
.contract-assets-disclosure li b { font-size: 12px; }
.contract-state-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.contract-row-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; white-space: nowrap; font-size: 12px; }
.contract-return-link { display: inline-block; margin-bottom: 18px; font-size: 13px; }
.settlement-directory-table { table-layout: fixed; }
.settlement-directory-table th:first-child, .settlement-directory-table td:first-child { padding-left: 19px; }
.settlement-directory-table th:last-child, .settlement-directory-table td:last-child { padding-right: 19px; }
.settlement-directory-table .table-actions { justify-content: flex-start; }
.settlement-subject-table { min-width: 720px; }
.settlement-subject-table .settlement-col-subject-name { width: 27%; }
.settlement-subject-table .settlement-col-status { width: 13%; }
.settlement-subject-table .settlement-col-notes { width: 29%; }
.settlement-subject-table .settlement-col-updated { width: 19%; }
.settlement-subject-table .settlement-col-actions { width: 12%; }
.settlement-account-table { min-width: 1120px; }
.settlement-account-table .settlement-col-account-name { width: 12%; }
.settlement-account-table .settlement-col-owner-subject { width: 12%; }
.settlement-account-table .settlement-col-bank-account { width: 14%; }
.settlement-account-table .settlement-col-bank-name { width: 13%; }
.settlement-account-table .settlement-col-contact { width: 11%; }
.settlement-account-table .settlement-col-status { width: 8%; }
.settlement-account-table .settlement-col-notes { width: 10%; }
.settlement-account-table .settlement-col-updated { width: 12%; }
.settlement-account-table .settlement-col-actions { width: 8%; }
.settlement-shared-account { margin-top: 0; }
.result-count { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.query-actions { display: flex; min-width: 0; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.query-actions > * { min-width: 0; }
.query-actions > p { flex: 1 1 320px; margin: 0; color: var(--muted); font-size: 11px; }
.query-actions > .actions { flex: 0 1 auto; justify-content: flex-end; }
.metric-grid { display: grid; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.metric-grid.compact { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.metric-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); color: var(--ink); min-width: 0; }
.metric-card > span, .metric-card small { display: block; }
.metric-card > span { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.metric-card strong { display: block; font-size: clamp(20px, 2vw, 24px); letter-spacing: -.03em; white-space: nowrap; }
.metric-card small { color: var(--muted); margin-top: 7px; font-size: 11px; }
.metric-card[href] { position: relative; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.metric-card[href]:hover { color: var(--ink); border-color: #aac7c5; box-shadow: var(--shadow); transform: translateY(-2px); }
.metric-card.danger { border-top: 3px solid var(--danger); }
.metric-card.warning { border-top: 3px solid #dfa031; }
.metric-card.positive { border-top: 3px solid var(--positive); }
.metric-card.severe { background: #26394d; color: white; border-color: #26394d; }
.metric-card.severe > span, .metric-card.severe small { color: #c4d0db; }
.card { width: 100%; max-width: 100%; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 19px; margin-bottom: 16px; }
.receivable-filter-panel { padding: 14px; margin-bottom: 0; border-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: white; }
.receivable-results-panel { position: relative; padding: 0; border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: visible; }
.card-header { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-bottom: 14px; }
.card-header > * { min-width: 0; }
.card-header h2 { margin: 0; font-size: 16px; }
.card-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.dashboard-grid { display: grid; min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.span-2 { grid-column: span 2; }
.two-columns { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dashboard-grid > *, .two-columns > *, .metric-grid > *, .form-grid > * { min-width: 0; }
.table-card { padding: 0; overflow: hidden; }
/* Standard tables must not reserve a permanent vertical scrollbar gutter. */
.table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow: auto; overscroll-behavior-inline: contain; scrollbar-gutter: auto; contain: inline-size layout paint; -webkit-overflow-scrolling: touch; }
.table-wrap > table { min-width: 100%; }
.table-wrap > table:not(.responsive-cards) { width: max-content; }
.table-wrap:focus-visible { outline-offset: -3px; }
.table-wrap.tall { max-height: 610px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { color: var(--muted-strong); font-weight: 700; background: #f6f8fa; text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid #e8edf1; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfd; }
.row-muted { color: var(--muted); background: #fafbfc; }
.row-error { background: var(--danger-soft) !important; }
.row-selected { background: #eef8f7; box-shadow: inset 3px 0 var(--brand); }
.row-selected:hover { background: #e5f4f2; }
.cell-note { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; margin-top: 3px; }
.mono { font-family: Consolas, "SFMono-Regular", monospace; font-size: 11px; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 650; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 4px 8px; font-size: 11px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.badge.positive { color: var(--positive); background: var(--positive-soft); }
.badge.danger { color: var(--danger); background: var(--danger-soft); }
.badge.warning { color: var(--warning); background: var(--warning-soft); }
.badge.neutral { color: #5d6a78; background: #eef2f5; }
.badge.info { color: var(--info); background: var(--info-soft); }
.danger-text { color: var(--danger) !important; }
.warning-text { color: var(--warning); }
.empty { text-align: center; color: var(--muted); padding: 32px 20px !important; }
.stack-list { display: flex; flex-direction: column; }
.stack-item { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 11px 2px; border-bottom: 1px solid #edf0f3; color: var(--ink); }
.stack-item:last-child { border: 0; }
.stack-item b, .stack-item span { display: block; }
.stack-item span { color: var(--muted); font-size: 10px; margin-top: 4px; }
.stack-item strong { font-size: 12px; white-space: nowrap; }
.deposit-summary-grid { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.deposit-summary-grid > div { min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-soft); }
.deposit-summary-grid span, .deposit-summary-grid strong, .deposit-summary-grid small { display: block; }
.deposit-summary-grid span { color: var(--muted); font-size: 11px; }
.deposit-summary-grid strong { margin-top: 5px; color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.deposit-summary-grid small { margin-top: 4px; color: var(--muted); }
.summary-strip { display: flex; width: 100%; max-width: 100%; min-width: 0; background: #1c3549; color: white; border-radius: var(--radius-lg); margin-bottom: 17px; overflow-x: auto; box-shadow: var(--shadow); }
.summary-strip > div { flex: 1; min-width: 150px; padding: 16px 18px; border-right: 1px solid rgba(255,255,255,.1); }
.summary-strip span, .summary-strip b { display: block; }
.summary-strip span { color: #aebdca; font-size: 10px; margin-bottom: 6px; }
.summary-strip b { font-size: 15px; }
.detail-grid { display: grid; min-width: 0; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 12px; }
.detail-grid dt { color: var(--muted); }
.detail-grid dd { margin: 0; }
.contract-summary-layout { margin-bottom: 16px; }
.contract-financial-column { display: grid; min-width: 0; gap: 16px; }
.contract-summary-layout .card { margin-bottom: 0; }
.contract-summary-layout .detail-grid { grid-template-columns: 132px minmax(0, 1fr); }
.contract-summary-layout .detail-grid dd { min-width: 0; overflow-wrap: anywhere; }
.contract-amount-basis { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.contract-notes { white-space: pre-wrap; }
.form-card { max-width: 1020px; }
.form-grid { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend, .compact-form label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 6px; }
.field label em { color: var(--danger); font-style: normal; margin-left: 3px; }
.field small { display: block; color: var(--muted); margin-top: 5px; }
.field.has-error .form-control { border-color: var(--danger); }
.field-checkbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.field-checkbox label { margin: 0; }
.field-checkbox .field-error { width: 100%; }
.form-control { width: 100%; min-height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px 10px; color: var(--ink); background: white; outline: none; }
.readonly-value { display: block; }
.form-control:hover { border-color: #aab7c4; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,122,117,.12); }
.form-control[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(184,47,69,.1); }
textarea.form-control { resize: vertical; }
.checkbox { accent-color: var(--brand); width: 17px; height: 17px; }
.field-error { color: var(--danger-dark); font-size: 12px; margin-top: 5px; }
.form-actions { display: flex; min-width: 0; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.form-actions > * { min-width: 0; }
.contract-wizard { max-width: 1120px; }
.form-section { display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
.section-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #e3f1f0; color: var(--brand-dark); font-weight: 800; }
.section-content h2 { margin: 5px 0; font-size: 16px; }
.section-content > p { color: var(--muted); margin: 0 0 17px; font-size: 11px; }
.sticky-actions { position: sticky; bottom: 12px; display: flex; min-width: 0; flex-wrap: wrap; gap: 9px; padding: 12px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 8px 30px rgba(20,40,60,.12); z-index: 5; }
.compact-form p { margin: 0 0 13px; }
.compact-form .form-control { margin-bottom: 11px; }
.danger-zone { border-color: #efcdd2; background: #fffafb; }
.narrow-card { max-width: 650px; }
.message { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 12px; }
.message.success { background: var(--positive-soft); color: #116c4a; border: 1px solid #bde7d3; }
.message.error { background: var(--danger-soft); color: #9d2738; border: 1px solid #f1c7ce; }
.message.warning { background: var(--warning-soft); color: #8d570a; border: 1px solid #f2dbad; }
.message.info { background: var(--info-soft); color: #245d85; border: 1px solid #c5ddeb; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 16px; font-size: 12px; color: var(--muted); }
.rule-list, .error-list { margin: 0; padding-left: 22px; font-size: 12px; line-height: 2; }
.error-list { color: var(--danger); }
.notice-banner { display: flex; min-width: 0; flex-wrap: wrap; gap: 16px; padding: 14px 17px; background: #e9f2f5; border: 1px solid #c9dce3; border-radius: 10px; margin-bottom: 16px; font-size: 12px; }
.notice-banner span { color: #536678; }
.checksum { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
details summary { cursor: pointer; color: var(--brand); }
details pre { max-width: 400px; white-space: pre-wrap; font-size: 10px; color: var(--muted); }
.section-nav { display: flex; gap: 4px; margin: -5px 0 20px; padding: 4px; width: fit-content; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #e9eef2; }
.section-nav a { min-height: 36px; padding: 8px 13px; border-radius: 8px; color: var(--muted-strong); font-size: 12px; font-weight: 700; white-space: nowrap; }
.section-nav a:hover, .section-nav a.active, .section-nav a[aria-current="page"] { color: var(--ink); background: white; box-shadow: var(--shadow-sm); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 28px 0 12px; }
.section-heading h2 { margin: 0; font-size: 19px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.work-queue { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.work-card { display: flex; min-width: 0; min-height: 112px; flex-direction: column; justify-content: space-between; gap: 10px; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); background: white; box-shadow: var(--shadow-sm); }
.work-card:hover { color: var(--ink); border-color: #abc2c1; box-shadow: var(--shadow); }
.work-card-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted-strong); font-size: 12px; font-weight: 700; }
.work-card strong { display: block; overflow: hidden; font-size: 21px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.work-card small { color: var(--muted); font-size: 11px; }
.work-card.danger { border-left: 4px solid var(--danger); }
.work-card.warning { border-left: 4px solid #cf850f; }
.work-card.info { border-left: 4px solid var(--info); }
.work-card.positive { border-left: 4px solid var(--positive); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.customer-groups { display: flex; flex-direction: column; gap: 14px; }
.customer-group, .customer-receivable-group { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
#receivable-summary, .customer-receivable-group { scroll-margin-top: 80px; }
.customer-group-header { display: flex; min-width: 0; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #f8fafb; }
.customer-group-header > * { min-width: 0; }
.customer-group-header h3 { margin: 0; font-size: 15px; }
.customer-group-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.customer-group-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.customer-group-actions small { color: var(--muted); font-size: 11px; }
.customer-heading { min-width: 0; }
.customer-heading h3 { margin: 0; font-size: 15px; }
.customer-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.customer-totals { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-left: auto; }
.customer-total { min-width: 90px; text-align: right; }
.customer-total span, .customer-total strong { display: block; }
.customer-total span { color: var(--muted); font-size: 10px; }
.customer-total strong { margin-top: 2px; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.customer-group .table-wrap, .customer-receivable-group .table-wrap { border-radius: 0; }
.customer-group table, .customer-receivable-group table { margin: 0; }
.group-more { border-top: 1px solid var(--line); }
.group-more > summary { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; color: var(--brand-dark); background: #f8fafb; font-size: 12px; font-weight: 700; text-align: center; cursor: pointer; list-style: none; }
.group-more > summary::-webkit-details-marker { display: none; }
.group-more > summary::after { content: "⌄"; font-size: 15px; line-height: 1; transition: transform .15s ease; }
.group-more[open] > summary::after { transform: rotate(180deg); }
.group-more > summary:hover { background: #f1f6f6; }
.row-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; white-space: normal; }
.table-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; white-space: normal; }
.btn-small { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.row-overdue { background: #fffafb; }
.row-overdue:hover { background: #fff5f6; }
.empty-state h3 { margin: 0 0 5px; color: var(--ink); font-size: 15px; }
.empty-state p { margin: 0 0 14px; }
.status-stack { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; }
.result-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -4px 0 10px; color: var(--muted); font-size: 12px; }
.flow-steps { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.flow-steps li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.flow-steps li:not(:last-child)::after { content: ""; width: clamp(18px, 4vw, 52px); height: 1px; margin-left: 2px; background: var(--line-strong); }
.flow-steps span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: var(--muted-strong); background: #e8edf1; }
.flow-steps .active { color: var(--ink); }
.flow-steps .active span, .flow-steps .complete span { color: white; background: var(--brand); }
.notice-wizard { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; }
.notice-wizard li { flex: 1; }
.notice-wizard li:not(:last-child)::after { flex: 1; }
.lease-contract-steps b { min-width: 0; }
.lease-contract-step { max-width: 1120px; }
.field-label-actions { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.field-label-actions label { margin-bottom: 6px; }
.field-label-actions a { font-size: 11px; font-weight: 700; }
.lease-selection-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); }
.lease-selection-summary span, .lease-selection-summary b { display: block; min-width: 0; }
.lease-selection-summary span { color: var(--muted); font-size: 10px; }
.lease-selection-summary b { margin-top: 4px; color: var(--ink); font-size: 12px; }
.choice-card-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; padding: 0; border: 0; }
.choice-card-group legend { grid-column: 1 / -1; margin-bottom: 2px; font-size: 12px; font-weight: 700; }
.choice-card { display: flex; min-width: 0; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: white; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px rgba(11,122,117,.08); }
.choice-card input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--brand); }
.choice-card span, .choice-card b, .choice-card small { display: block; min-width: 0; }
.choice-card small { margin-top: 5px; color: var(--muted); line-height: 1.5; }
.lease-contract-mode-cards .choice-card { position: relative; }
.lease-mode-release-status { display: inline-flex; width: fit-content; align-items: center; margin-top: 8px; border-radius: 99px; padding: 4px 9px; font-size: 11px; font-weight: 800; line-height: 1.35; }
.lease-mode-release-status.accepted { color: var(--positive); background: var(--positive-soft); }
.lease-mode-release-status.paused { color: var(--warning); background: var(--warning-soft); }
.lease-contract-mode-cards .choice-card-disabled { border-style: dashed; color: var(--muted-strong); background: #f6f8fa; cursor: not-allowed; }
.lease-contract-mode-cards .choice-card-disabled b { color: var(--muted-strong); }
.contract-preview-placeholder { min-height: 280px; padding: 32px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted-strong); background: #f7fafb; text-align: center; }
.contract-preview-placeholder h3 { margin: 45px 0 8px; color: var(--ink); }
.contract-preview-placeholder p { max-width: 680px; margin: 0 auto 8px; }
.selection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--muted-strong); background: #f2f6f8; }
.checkbox-line { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
[data-notice-bill], [data-notice-select-all] { width: 18px; height: 18px; accent-color: var(--brand); }
.notice-selected-bills { margin: 0 0 20px; }
.notice-selected-bills summary { cursor: pointer; font-weight: 700; }
.notice-document-form { margin-top: 20px; }
.settlement-account-field { grid-column: 1 / -1; }
.settlement-account-preview { margin-top: 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f7fafb; }
.settlement-account-preview > p { margin: 0 0 8px; color: var(--muted-strong); }
.settlement-account-preview dl { margin: 0 0 8px; }
.settlement-account-preview dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.settlement-account-preview dl > div:last-child { border-bottom: 0; }
.settlement-account-preview dt { color: var(--muted); }
.settlement-account-preview dd { margin: 0; overflow-wrap: anywhere; }
.payment-total { display: flex; min-width: 0; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding: 14px 2px 0; color: var(--muted-strong); font-size: 12px; }
.payment-total strong { min-width: 140px; color: var(--ink); font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.context-banner { display: flex; min-width: 0; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; padding: 13px 15px; border: 1px solid #bddbd8; border-radius: var(--radius); background: var(--brand-soft); }
.context-banner > * { min-width: 0; }
.context-banner strong, .context-banner span { display: block; }
.context-banner span { margin-top: 2px; color: var(--muted-strong); font-size: 11px; }
.selected-context { border-color: #b8d8d5; background: linear-gradient(180deg, #f7fcfb, white); }
.error-summary { margin-bottom: 16px; padding: 14px 16px; border: 1px solid #e8b9c1; border-radius: var(--radius); color: var(--danger-dark); background: var(--danger-soft); }
.error-summary h2 { margin: 0 0 6px; font-size: 14px; }
.error-summary ul { margin: 0; padding-left: 20px; font-size: 12px; }
.message ul { margin: 7px 0 0; padding-left: 20px; }
.refresh-controls { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.refresh-controls button { border: 0; color: var(--brand-dark); background: none; cursor: pointer; }
.notice-preview-scroll { max-width: 100%; overflow-x: auto; padding: 2px; }
.notice-pdf-viewer { width: 100%; margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #e9eef3; }
.notice-pdf-viewer iframe { display: block; width: 100%; height: max(760px, calc(100vh - 180px)); border: 0; background: white; }
.notice-preview-actions { margin-top: 18px; }
.notice-paper { width: 210mm; max-width: 100%; min-height: 280mm; margin: 0 auto; padding: 18mm; background: white; box-shadow: var(--shadow); font-family: "SimSun", "Microsoft YaHei", sans-serif; font-size: 12px; }
.notice-paper header { text-align: center; }
.notice-paper header h2 { margin: 0 0 8px; }
.notice-paper header h1 { margin: 0 0 8px; font-size: 22px; }
.notice-code { text-align: right; margin: 15px 0; }
.notice-paper table { margin: 18px 0; }
.notice-total { text-align: right; font-size: 14px; }
.notice-payment { margin-top: 20px; line-height: 1.4; }
.notice-seal { text-align: right; margin-top: 45px; line-height: 2.2; }
.notice-paper-v3 { padding: 16mm 18mm; font-size: 14px; line-height: 1.5; }
.notice-paper-v3 header h1 { margin-bottom: 8px; font-size: 24px; }
.notice-paper-v3 .notice-code { margin: 8px 0 14px; }
.notice-paper-v3 .notice-body { text-indent: 2em; }
.notice-paper-v3 .notice-statement-table { table-layout: fixed; }
.notice-paper-v3 .notice-statement-table :is(th, td):nth-child(1) { width: 28.32%; }
.notice-paper-v3 .notice-statement-table :is(th, td):nth-child(2) { width: 13.87%; }
.notice-paper-v3 .notice-statement-table :is(th, td):nth-child(3) { width: 21.97%; }
.notice-paper-v3 .notice-statement-table :is(th, td):nth-child(4),
.notice-paper-v3 .notice-statement-table :is(th, td):nth-child(5) { width: 11.56%; }
.notice-paper-v3 .notice-statement-table :is(th, td):nth-child(6) { width: 12.72%; }
.notice-paper-v3 .notice-statement-table th,
.notice-paper-v3 .notice-statement-table td,
.notice-paper-v3 .notice-payment-table th,
.notice-paper-v3 .notice-payment-table td { border: 1px solid #a8b3c5; }
.notice-paper-v3 .notice-statement-table th,
.notice-paper-v3 .notice-payment-table th { color: #23334d; background: #e8eef7; text-align: center; }
.notice-paper-v3 .notice-statement-table th,
.notice-paper-v3 .notice-statement-table td { padding: 8px 7px; text-align: center; }
.notice-paper-v3 .notice-statement-table tfoot td { font-size: 14px; text-align: right; }
.notice-paper-v3 .notice-supplement { margin: 18px 0; }
.notice-paper-v3 .notice-payment-table { margin-top: 18px; }
.notice-paper-v3 .notice-payment-lines p { margin: 0 0 4px; }
.notice-paper-v3 .notice-payment-lines p:last-child { margin-bottom: 0; }
.notice-paper-v3 .notice-date { margin-top: 32px; text-align: right; }
.login-body {
  min-height: 100vh;
  min-height: 100dvh;
  background: #eef2f4;
}
.login-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(360px, 100%);
  margin: 0;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(18, 43, 58, .1);
}
.login-product-name {
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.login-card h1 { margin: 0 0 22px; font-size: 24px; line-height: 1.25; }
.login-card .message { margin: 0 0 16px; }
.login-field + .login-field { margin-top: 14px; }
.login-field label { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; }
.login-card .form-control { width: 100%; min-height: 42px; }
.login-card .btn { width: 100%; min-height: 42px; margin-top: 20px; padding: 10px 12px; }
code { background: #eef2f5; padding: 2px 5px; border-radius: 4px; }
.module-status { display: inline-flex; min-height: 30px; align-items: center; padding: 5px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.module-status.enabled { color: var(--positive); background: var(--positive-soft); }
.module-status.partial { color: var(--info); background: var(--info-soft); }
.module-status.planned { color: var(--muted-strong); background: #edf1f4; }
.module-status.developing { color: var(--info); background: var(--info-soft); }
.module-status.unbuilt { color: var(--muted-strong); background: #edf1f4; }
.module-status.accepted { color: var(--positive); background: var(--positive-soft); }
.module-capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.module-capability { display: grid; min-height: 84px; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); background: white; box-shadow: var(--shadow-sm); }
.module-capability:hover { color: var(--ink); border-color: #a7c6c3; box-shadow: var(--shadow); }
.module-capability.unbuilt { background: var(--paper-soft); }
.module-capability.accepted { border-color: #b9dfcd; }
.module-capability-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; color: var(--brand-dark); background: var(--brand-soft); font-weight: 800; }
.module-capability b, .module-capability small { display: block; }
.module-capability small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.erp-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.erp-module-card { display: grid; min-height: 108px; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); background: white; box-shadow: var(--shadow-sm); }
.erp-module-card:hover { color: var(--ink); border-color: #a7c6c3; box-shadow: var(--shadow); }
.erp-module-card > span:nth-child(2) { min-width: 0; }
.erp-module-card b, .erp-module-card small { display: block; }
.erp-module-card small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.erp-module-card .module-status { grid-column: 2; justify-self: start; min-height: 24px; margin-top: -2px; padding: 3px 8px; font-size: 9px; }
.erp-module-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: var(--brand-dark); background: var(--brand-soft); font-weight: 800; }
.planned-page { max-width: 720px; margin: 6vh auto; padding: 44px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow); text-align: center; }
.planned-page .module-status { margin-bottom: 22px; }
.planned-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 18px; place-items: center; border-radius: 16px; color: var(--muted-strong); background: #edf1f4; font-size: 24px; }
.planned-page h1 { margin: 0; font-size: 27px; }
.planned-page p { max-width: 590px; margin: 12px auto 24px; color: var(--muted); line-height: 1.8; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 1200px) {
  .receivable-detail-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .receivable-detail-table, .receivable-detail-table tbody, .receivable-detail-table tr, .receivable-detail-table td { display: block; width: 100%; }
  .receivable-detail-table tr { padding: 11px 13px; border-bottom: 1px solid var(--line); }
  .receivable-detail-table tr:last-child { border-bottom: 0; }
  .receivable-detail-table td { display: grid; min-width: 0; grid-template-columns: minmax(84px, 34%) minmax(0, 1fr); gap: 10px; padding: 5px 0; border: 0; text-align: left; white-space: normal; }
  .receivable-detail-table td > * { min-width: 0; max-width: 100%; }
  .receivable-detail-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 700; }
  .receivable-detail-table td[colspan] { display: block; }
  .receivable-detail-table td[colspan]::before { display: none; }
  .receivable-detail-table .table-actions { justify-content: flex-start; flex-wrap: wrap; white-space: normal; }
  .receivable-period-range { justify-items: start; }
}
@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-child-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
  .work-queue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .erp-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { width: min(86vw, 300px); min-height: 100dvh; padding-bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .nav-pinned-todo, .nav-tree-parent, .nav-tree-link { min-height: 44px; }
  .menu-open .sidebar { transform: translateX(0); }
  .menu-open { overflow: hidden; }
  .menu-open .menu-overlay { opacity: 1; pointer-events: auto; }
  .sidebar .menu-close { display: grid; place-items: center; }
  main { display: block; }
  .menu-toggle { display: grid; }
  .topbar { padding: 0 15px; }
  .topbar-heading { margin-right: auto; margin-left: 10px; }
  .content { padding: 20px 14px 40px; }
  .page-heading { gap: 14px; }
  .metric-grid, .metric-grid.compact, .dashboard-grid, .two-columns, .form-grid, .module-capability-grid, .erp-module-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .filter-span-2 { grid-column: span 2; }
  .filter-bar { flex-wrap: wrap; }
  .filter-bar .form-control, .filter-bar .search-input { width: 100%; min-width: 0; }
  .filter-field { flex: 1 1 190px; }
  .login-layout { padding: 16px; }
  .login-card { padding: 24px 20px; }
  .notice-preview-scroll .notice-paper { min-width: 700px; padding: 8mm; min-height: 0; }
}
@media (max-width: 640px) {
  .topbar-user > span:not(.avatar) { display: none; }
  .page-heading { flex-direction: column; }
  .page-heading .actions { width: 100%; }
  .page-heading .actions .btn { flex: 1 1 auto; }
  .card-header { align-items: flex-start; }
  .query-form { padding: 14px; }
  .filter-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  .filter-span-2 { grid-column: auto; }
  .query-actions { align-items: stretch; flex-direction: column; }
  .query-actions > p { flex-basis: auto; }
  .query-actions > .actions { width: 100%; justify-content: stretch; }
  .query-actions > .actions .btn { flex: 1 1 100%; width: 100%; }
  .receivable-filter-panel { padding: 12px; }
  .receivable-filter-panel .query-actions { align-items: center; flex-direction: row; }
  .receivable-filter-panel .query-actions > .actions { width: auto; flex-wrap: nowrap; justify-content: flex-end; }
  .receivable-filter-panel .query-actions > .actions .btn { width: auto; min-height: 36px; flex: 0 0 auto; padding: 7px 10px; }
  .work-queue { grid-template-columns: 1fr 1fr; gap: 9px; }
  .work-card { min-height: 104px; padding: 13px; }
  .work-card strong { font-size: 18px; }
  .customer-group-header { align-items: flex-start; flex-direction: column; }
  .customer-totals { width: 100%; justify-content: flex-start; margin-left: 0; }
  .customer-total { min-width: 0; text-align: left; }
  .customer-group-header > .actions, .customer-group-header > .btn { width: 100%; }
  .customer-group-header > .actions .btn, .customer-group-header > .btn { flex: 1; }
  .result-summary { align-items: flex-start; flex-direction: column; }
  .summary-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
  .summary-strip > div { min-width: 0; padding: 13px 15px; border-right: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
  .summary-strip > div:nth-child(even) { border-right: 0; }
  .summary-strip > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .receivable-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .receivable-totals > div, .receivable-totals > div:nth-child(even) { padding: 9px 8px; border-right: 1px solid rgba(255,255,255,.1); border-bottom: 0; }
  .summary-strip b, .receivable-totals b { min-width: 0; font-size: clamp(13px, 4.2vw, 15px); white-space: normal; overflow-wrap: anywhere; }
  .receivable-totals > div:last-child { grid-column: auto; border-right: 0; }
  .receivable-detail-table { min-width: 0; }
  .flow-steps { align-items: flex-start; }
  .flow-steps li { min-width: 0; flex: 1; align-items: flex-start; flex-direction: column; line-height: 1.3; }
  .flow-steps li:not(:last-child)::after { display: none; }
  .lease-contract-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .lease-contract-steps li { flex-direction: row; align-items: center; }
  .lease-selection-summary, .choice-card-group { grid-template-columns: 1fr; }
  .lease-contract-preview-summary { grid-template-columns: 1fr; }
  .lease-contract-preview-summary > div { border-right: 0; }
  .card-header > .payment-total { width: 100%; flex: 1 1 100%; justify-content: space-between; flex-wrap: nowrap; padding-top: 0; white-space: nowrap; }
  .payment-total strong { min-width: 0; }
  .context-banner { align-items: flex-start; flex-direction: column; }
  .responsive-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .responsive-cards, .responsive-cards tbody, .responsive-cards tr, .responsive-cards td { display: block; width: 100%; }
  .responsive-cards tr { padding: 11px 13px; border-bottom: 1px solid var(--line); }
  .responsive-cards tr:last-child { border-bottom: 0; }
  .responsive-cards td { display: grid; min-width: 0; grid-template-columns: minmax(84px, 34%) minmax(0, 1fr); gap: 10px; padding: 5px 0; border: 0; text-align: left; white-space: normal; }
  .responsive-cards td > * { min-width: 0; max-width: 100%; }
  .responsive-cards td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 700; }
  .responsive-cards td[colspan] { display: block; }
  .responsive-cards td[colspan]::before { display: none; }
  .responsive-cards .row-actions, .responsive-cards .table-actions { justify-content: flex-start; flex-wrap: wrap; white-space: normal; }
  .table-wrap > table.contract-management-table { min-width: 0; table-layout: auto; }
  .settlement-directory-heading { padding: 15px 14px 12px; }
  .settlement-directory-table { min-width: 0; table-layout: auto; }
  .settlement-directory-table td:first-child { padding-left: 0; }
  .settlement-directory-table td:last-child { padding-right: 0; }
}
@media (max-width: 420px) {
  .notice-wizard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .notice-wizard li { flex-direction: row; align-items: center; }
  .lease-contract-steps { grid-template-columns: 1fr; }
  .selection-toolbar { align-items: flex-start; flex-direction: column; }
  .work-queue { grid-template-columns: 1fr; }
  .filter-field, .filter-actions, .filter-actions .btn { width: 100%; flex-basis: 100%; }
  .form-actions > .btn, .form-actions > button { flex: 1 1 100%; width: 100%; }
  .form-actions > .activation-required-hint { flex: 1 1 100%; width: 100%; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .date-range-fields { grid-template-columns: minmax(0, 1fr); }
  .date-range-fields > span { display: none; }
  .filter-collapse > summary small { display: none; }
  .detail-heading { flex-direction: column; }
  .notice-pdf-viewer iframe { height: 560px; }
}
/* Four-step system lease registration. Kept isolated from legacy contract forms. */
.lease-wizard-heading { margin-bottom: 14px; }
.lease-wizard-heading p { margin: 0; color: var(--muted); }
.lease-wizard-shell { width: 100%; max-width: 1240px; min-width: 0; }
.lease-wizard-shell > .card { max-width: none; }
.lease-contract-steps { display: flex; justify-content: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
.lease-contract-steps li { min-width: 0; flex: 0 1 auto; justify-content: center; gap: 14px; }
.lease-contract-steps li:not(:last-child)::after { flex: 0 0 auto; width: clamp(12px, 3vw, 48px); margin: 0; }
.lease-contract-steps button { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 8px; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-align: center; cursor: default; }
.lease-contract-steps li.complete button { cursor: pointer; }
.lease-contract-steps b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wizard-panel[hidden] { display: none !important; }
.wizard-panel > .card-header { margin: -2px 0 22px; }
.wizard-panel > .card-header h2 { margin-bottom: 5px; }
.wizard-panel > .card-header p { max-width: 820px; }
.required-mark { color: var(--danger); }
.activation-required-mark { display: inline-block; margin-left: 3px; color: var(--danger); font-size: 1.05em; font-weight: 800; line-height: 1; vertical-align: baseline; }
.activation-required-hint { display: inline-flex; align-self: center; align-items: center; color: var(--muted); font-size: 12px; line-height: 1.4; white-space: nowrap; }
.activation-required-hint .activation-required-mark { margin-left: 0; }
.system-step-error { margin: 16px 0 0; padding: 10px 12px; border: 1px solid #efcdd2; border-radius: var(--radius-sm); background: var(--danger-soft); }
.system-step-invalid > .form-control, .system-step-invalid [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(183, 55, 69, .1); }
.system-step-invalid.choice-card-group .choice-card { border-color: var(--danger); }
.inline-entry-card.system-step-invalid, .asset-entry-panel.system-step-invalid { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(183, 55, 69, .08); }
.errorlist { margin: 6px 0 0; padding: 0; list-style: none; color: var(--danger); font-size: 12px; }
.checkbox-row { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--brand); }
.inline-entry-toggle { margin: 18px 0 10px; }
.inline-entry-toggle .field { margin: 0; }
.inline-entry-card { margin: 0 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-soft); }
.inline-entry-card[hidden] { display: none !important; }
.inline-entry-card h3 { margin: 0 0 15px; font-size: 15px; }
.inline-entry-heading { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.inline-entry-heading h3 { margin-bottom: 4px; }
.inline-entry-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.tenant-mode-group { grid-template-columns: repeat(2, minmax(0, 260px)); margin-top: 22px; }
.tenant-mode-group .errorlist { grid-column: 1 / -1; }
.form-section-title { margin: 26px 0 5px; padding-top: 21px; border-top: 1px solid var(--line); font-size: 16px; }
.form-section-title:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.section-help { margin: 0 0 13px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.contract-term-sections { display: grid; min-width: 0; gap: 18px; }
.contract-term-section { min-width: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
.contract-term-section-heading { display: grid; min-width: 0; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 14px; padding: 17px 20px; border-bottom: 1px solid var(--line); background: #f5f8f9; }
.contract-term-section-number { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #bddbd8; border-radius: 50%; color: var(--brand-dark); background: var(--brand-soft); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.contract-term-section-heading h3 { margin: 0 0 4px; font-size: 16px; }
.contract-term-section-heading p { max-width: 800px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.contract-term-section-body { min-width: 0; padding: 20px; }
.party-term-sections, .asset-step-sections { gap: 18px; }
.term-input-grid { width: 100%; grid-template-columns: max-content max-content; align-items: start; justify-content: start; gap: 17px 100px; }
.term-date-field { min-width: 0; }
.term-date-field > .field { margin: 0; }
.formatted-date-value { margin: 7px 0 0; color: var(--brand-dark); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.segmented-date-field { width: max-content; max-width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.segmented-date-field > legend { display: block; width: 100%; margin: 0 0 6px; padding: 0; font-size: 12px; font-weight: 650; }
.segmented-date-control { display: flex; width: max-content; max-width: 100%; min-width: 0; align-items: center; flex-wrap: nowrap; gap: 10px; }
.date-segment { display: grid !important; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; margin: 0 !important; }
.date-segment .form-control { width: calc(4ch + 8px); min-width: 0; padding-right: 4px; padding-left: 4px; text-align: center; font-variant-numeric: tabular-nums; }
.date-segment:first-child .form-control { width: calc(8ch + 8px); }
.date-segment-unit { color: var(--muted-strong); font-size: 12px; font-weight: 700; white-space: nowrap; }
.canonical-date-control { display: none !important; }
.date-field-errors:empty { display: none; }
.date-field-errors .errorlist { margin-top: 6px; }
.shared-fee-measurement { min-width: 0; }
.contract-amount-grid { display: grid; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px 20px; }
.contract-amount-grid > * { min-width: 0; }
.lease-amount-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lease-amount-grid > * { grid-column: span 2; }
.lease-amount-grid > .amount-option-field { grid-column: span 3; }
.payment-term-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.utility-term-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.payment-rule-help { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--muted-strong); background: #f5f8f9; }
.contract-term-subheading { margin-bottom: 14px; }
.contract-term-subheading h4, .tax-choice-heading h4 { margin: 0 0 4px; font-size: 14px; }
.contract-term-subheading p, .tax-choice-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.other-fee-section { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.other-fee-section[hidden] { display: none !important; }
.other-fee-rows { display: grid; min-width: 0; gap: 12px; }
.other-fee-row { display: grid; min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-soft); }
.other-fee-row > * { min-width: 0; }
.tax-choice-heading { margin-bottom: 13px; }
.tax-choice-group { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tax-choice-card { display: grid; min-width: 0; min-height: 86px; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px 16px; border: 2px solid var(--line-strong); border-radius: var(--radius); color: var(--muted-strong); background: white; font: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.tax-choice-card:hover { border-color: #83b9b5; color: var(--ink); background: #f9fdfc; }
.tax-choice-card.active, .tax-choice-card[aria-checked="true"] { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); box-shadow: 0 0 0 2px rgba(11,122,117,.09); }
.tax-choice-card:focus-visible { outline: 3px solid rgba(11,122,117,.2); outline-offset: 2px; }
.tax-choice-indicator { position: relative; width: 22px; height: 22px; border: 2px solid #9aabb6; border-radius: 50%; background: white; }
.tax-choice-card[aria-checked="true"] .tax-choice-indicator { border-color: var(--brand); background: var(--brand); }
.tax-choice-card[aria-checked="true"] .tax-choice-indicator::after { position: absolute; inset: 5px; border-radius: 50%; background: white; content: ""; }
.tax-choice-copy, .tax-choice-copy strong, .tax-choice-copy small { display: block; min-width: 0; }
.tax-choice-copy strong { color: var(--ink); font-size: 13px; line-height: 1.4; }
.tax-choice-copy small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.tax-choice-status { padding: 3px 8px; border-radius: 99px; color: var(--brand-dark); background: rgba(11,122,117,.12); font-size: 10px; font-weight: 800; opacity: 0; }
.tax-choice-card[aria-checked="true"] .tax-choice-status { opacity: 1; }
.tax-choice-errors:empty { display: none; }
.tax-detail-panel { margin-top: 16px; padding: 17px; border: 1px solid #bddbd8; border-radius: var(--radius); background: #f8fcfb; }
.tax-detail-panel[hidden], .tax-split-panel[hidden] { display: none !important; }
.tax-detail-grid { width: calc(50% - 10px); min-width: 0; }
.tax-split-panel { margin-top: 18px; padding-top: 18px; border-top: 1px dashed #bddbd8; }
.tax-split-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .contract-amount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lease-amount-grid > * { grid-column: auto; }
  .lease-amount-grid > .amount-option-field { grid-column: auto; }
}
.text-button { padding: 4px; border: 0; color: var(--danger); background: transparent; cursor: pointer; }
.text-button.neutral-action { color: var(--brand-dark); }
.text-button:disabled { color: var(--muted); cursor: not-allowed; opacity: .55; }
.asset-entry-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.asset-entry-flat { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.asset-entry-flat .asset-entry-tabs { margin: 0; }
.asset-entry-tab { display: grid; min-width: 0; min-height: 82px; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--line-strong); border-radius: var(--radius); color: var(--muted-strong); background: white; font: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.asset-entry-tab:hover { border-color: #83b9b5; color: var(--ink); background: #f9fdfc; }
.asset-entry-tab.active, .asset-entry-tab[aria-selected="true"] { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); box-shadow: 0 0 0 2px rgba(11,122,117,.09); }
.asset-entry-tab:focus-visible { outline: 3px solid rgba(11,122,117,.2); outline-offset: 2px; }
.asset-entry-tab-indicator { position: relative; width: 22px; height: 22px; border: 2px solid #9aabb6; border-radius: 50%; background: white; }
.asset-entry-tab[aria-selected="true"] .asset-entry-tab-indicator { border-color: var(--brand); background: var(--brand); }
.asset-entry-tab[aria-selected="true"] .asset-entry-tab-indicator::after { position: absolute; inset: 5px; border-radius: 50%; background: white; content: ""; }
.asset-entry-tab-copy, .asset-entry-tab-copy strong, .asset-entry-tab-copy small { display: block; min-width: 0; }
.asset-entry-tab-copy strong { color: var(--ink); font-size: 14px; line-height: 1.35; }
.asset-entry-tab-copy small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.asset-entry-tab-status { padding: 3px 8px; border-radius: 99px; color: var(--brand-dark); background: rgba(11,122,117,.12); font-size: 10px; font-weight: 800; opacity: 0; }
.asset-entry-tab[aria-selected="true"] .asset-entry-tab-status { opacity: 1; }
.asset-entry-panels { min-width: 0; margin-top: 18px; }
.asset-project-field { width: min(100%, 540px); min-width: 0; margin-bottom: 19px; }
.asset-project-field > .field { margin: 0; }
.asset-entry-panel { min-width: 0; }
.asset-entry-panel[hidden] { display: none !important; }
.asset-entry-panel.system-step-invalid { padding: 12px; border: 1px solid var(--danger); border-radius: var(--radius); }
.asset-existing-picker { width: min(100%, 540px); }
.asset-entry-help { margin: 13px 0 0; }
.asset-entry-footer { display: flex; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); background: #f8fafb; }
.asset-entry-flat .asset-entry-footer { justify-content: flex-start; margin-top: 18px; padding: 16px 0 0; background: transparent; }
.asset-entry-footer .btn { min-width: 150px; }
.selected-assets-heading { min-width: 0; margin-bottom: 10px; }
.selected-assets-heading > div { min-width: 0; }
.selected-assets-heading h3 { margin: 0 0 4px; font-size: 16px; }
.selected-assets-heading h3 [data-selected-asset-count] { color: var(--muted-strong); font-size: .85em; font-weight: 700; }
.contract-term-section-heading [data-selected-asset-count] { color: var(--muted-strong); font-size: .85em; font-weight: 700; }
.selected-assets-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.selected-assets-table { overflow-x: visible; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--radius); scrollbar-gutter: auto; }
.table-wrap.selected-assets-table > table { width: 100%; min-width: 0; table-layout: fixed; }
.selected-assets-table th, .selected-assets-table td { min-width: 0; padding: 10px 8px; overflow-wrap: anywhere; vertical-align: middle; text-align: center; white-space: normal; }
.selected-assets-table th:first-child, .selected-assets-table td:first-child { width: 5%; text-align: center; }
.selected-assets-table.is-system th:first-child, .selected-assets-table.is-system td:first-child { width: 6%; }
.selected-assets-table.is-system th:nth-child(2) { width: 20%; }
.selected-assets-table.is-system th:nth-child(3) { width: 13%; }
.selected-assets-table.is-system th:nth-child(4) { width: 31%; }
.selected-assets-table.is-system th:nth-child(5) { width: 12%; }
.selected-assets-table.is-system .table-action { width: 18%; }
.selected-assets-table .table-action { min-width: 0; text-align: center; }
.selected-assets-table td.table-action { display: table-cell; }
.selected-assets-table td.empty { width: auto; }
.asset-name-stack { display: grid; min-width: 0; justify-items: center; gap: 6px; text-align: center; }
.asset-name-stack .asset-project-name { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.35; }
.asset-name-stack [data-asset-display-name] { line-height: 1.45; }
.selected-assets-table td strong, .selected-assets-table td small { display: block; min-width: 0; overflow-wrap: anywhere; }
.selected-assets-table td small { margin-top: 5px; color: var(--muted); }
.selected-assets-table .badge { max-width: 100%; justify-content: center; overflow-wrap: anywhere; text-align: center; white-space: normal; }
.selected-assets-table .badge + small { margin-top: 7px; }
.asset-contract-fields { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(70px, 1fr)); gap: 6px; }
.asset-contract-fields .form-control { min-width: 0; min-height: 34px; padding: 5px 7px; text-align: center; }
.asset-row-action-group { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 2px; }
.asset-row-action-group .text-button { flex: 0 0 auto; white-space: nowrap; }
.asset-source-cell .badge { margin: 0 auto; }
.asset-selection-error { margin: 7px 0 9px; }
.overlap-confirmation { margin-top: 16px; padding: 16px; border: 1px solid #e1b856; border-radius: var(--radius); color: #654411; background: #fff8e8; }
.overlap-confirmation[hidden] { display: none !important; }
.overlap-confirmation-heading { display: grid; min-width: 0; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 11px; }
.overlap-warning-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: white; background: #b27619; font-weight: 900; }
.overlap-confirmation-heading h4 { margin: 1px 0 4px; color: #654411; }
.overlap-confirmation-heading p { margin: 0; color: #775b2a; font-size: 12px; line-height: 1.6; }
.overlap-conflict-list { display: grid; gap: 8px; margin: 13px 0; padding: 0; list-style: none; }
.overlap-conflict-list li { display: grid; min-width: 0; grid-template-columns: minmax(140px, .9fr) minmax(220px, 1.5fr) minmax(170px, .8fr); gap: 8px 14px; padding: 10px 12px; border: 1px solid rgba(178,118,25,.25); border-radius: var(--radius-sm); background: rgba(255,255,255,.72); }
.overlap-conflict-list strong, .overlap-conflict-list span { min-width: 0; overflow-wrap: anywhere; }
.overlap-conflict-list span { font-size: 11px; line-height: 1.5; }
.overlap-confirmation-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid rgba(178,118,25,.35); border-radius: var(--radius-sm); background: white; cursor: pointer; font-weight: 700; line-height: 1.55; }
.overlap-confirmation-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.overlap-confirmation-check:has(input:checked) { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.overlap-confirmation-error { margin-top: 9px; }
.asset-create-card { margin: 0; }
.compact-empty { min-height: 150px; margin-top: 14px; padding: 28px; }
.lease-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.lease-preview-grid > div { display: grid; min-width: 0; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; padding: 13px 15px; background: white; }
.lease-preview-grid span { color: var(--muted); font-size: 12px; }
.lease-preview-grid strong { min-width: 0; overflow-wrap: anywhere; }
.lease-preview-notes { grid-column: 1 / -1; }
.lease-preview-notes strong { white-space: pre-wrap; }
.lease-preview-cards { display: grid; min-width: 0; gap: 18px; margin-bottom: 18px; }
.contract-detail-heading { display: block; }
.contract-detail-heading > .actions { margin-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); justify-content: flex-end; }
.contract-detail-heading .eyebrow .badge { margin-left: 8px; }
.contract-title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.contract-title-row h1 { max-width: 100%; }
.contract-title-count { display: inline-flex; max-width: 100%; padding: 4px 10px; border: 1px solid #d7e1e7; border-radius: 7px; background: #eaf0f4; color: var(--muted-strong); font-size: 13px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.contract-summary-layout .card { overflow: hidden; }
.contract-summary-layout .card-header { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #f5f8f9; }
.contract-summary-layout .card-header h2 { margin: 0; font-size: 17px; }
.contract-summary-body { padding: 18px; min-width: 0; }
.contract-summary-body .detail-grid { margin: 0; grid-template-columns: 120px minmax(0, 1fr); }
.contract-summary-body dd { overflow-wrap: anywhere; }
.contract-term-group + .contract-term-group, #contract-amounts .contract-term-group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.contract-term-group h3 { margin: 0 0 14px; font-size: 14px; }
.contract-funds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.contract-funds dl { margin: 0; padding: 12px 10px; background: #f5f8f9; border-radius: 7px; }
.contract-funds dt { color: var(--muted); font-size: 12px; }
.contract-funds dd { margin: 5px 0 0; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.contract-funds small { font-size: 12px; font-weight: 400; }
.contract-summary-body .lease-preview-accounts small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.contract-tenant-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.contract-asset-link { display: block; }
.contract-account-balance { padding: 4px 8px; border: 1px solid #ecdab5; border-radius: 6px; color: #855b1c; background: #fff8ec; font-size: 11px; }
.collection-mode-entry { border-color: #11817c; color: var(--brand); background: #edf8f7; }
.collection-mode-dialog { width: min(660px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: white; box-shadow: 0 22px 75px #102c3e30; }
.collection-mode-dialog::backdrop { background: #102c3e80; }
.collection-mode-dialog .card-header { padding: 20px 24px; margin: 0; border-bottom: 1px solid var(--line); background: #f5f8f9; }
.collection-mode-dialog .contract-summary-body { padding: 22px 24px; }
.collection-mode-close { border: 0; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.collection-mode-dialog .field { margin-bottom: 18px; }
.collection-mode-dialog label { display: block; margin-bottom: 8px; }
.collection-mode-dialog small { font-size: 12px; color: var(--muted); }
.collection-mode-impact { padding: 16px 18px; margin-bottom: 20px; background: #f5f9fa; border: 1px solid #e0e9ed; border-radius: 8px; font-size: 13px; }
.collection-mode-impact h3 { font-size: 14px; margin: 0 0 8px; }
.collection-mode-impact ul { margin: 0; padding-left: 18px; line-height: 1.9; }
.collection-mode-impact p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 8px 0 0; }
.collection-mode-impact [hidden] { display: none; }
.collection-mode-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .contract-detail-heading > .actions { justify-content: flex-start; }
  .contract-summary-body .detail-grid { grid-template-columns: 96px minmax(0, 1fr); }
  .contract-funds { gap: 6px; }
  .contract-funds dd { font-size: 15px; }
  .collection-mode-footer { flex-wrap: wrap; }
}
.lease-preview-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.lease-preview-column { display: grid; min-width: 0; gap: 18px; }
.lease-preview-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #f5f8f9; }
.lease-preview-card-heading h3 { margin: 0; font-size: 16px; }
.lease-preview-card-heading > div { display: flex; flex-wrap: wrap; gap: 12px; }
.lease-preview-card-heading button { border: 0; padding: 0; color: var(--brand-dark); background: transparent; font-size: 12px; cursor: pointer; }
.lease-preview-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.lease-preview-facts dl, .lease-preview-accounts dl { min-width: 0; margin: 0; }
.lease-preview-facts dt, .lease-preview-accounts dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.lease-preview-facts dd, .lease-preview-accounts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.lease-preview-facts [data-preview-value="assets"] { white-space: pre-line; }
.lease-preview-tax { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lease-preview-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 12px; }
.lease-preview-pills > span { padding: 5px 8px; border-radius: 6px; background: #f1f5f7; }
.lease-preview-amounts { width: 100%; min-width: 0; font-size: 12px; }
.lease-preview-amounts th, .lease-preview-amounts td { padding: 11px 4px; white-space: normal; }
.lease-preview-amounts th { color: var(--muted); background: white; font-weight: 400; }
.lease-preview-amounts th:not(:first-child), .lease-preview-amounts .money { text-align: right; }
.lease-preview-amounts tfoot td { font-weight: 700; border-bottom: 0; }
.lease-preview-amounts .lease-preview-total { color: var(--brand); font-size: 20px; }
.lease-preview-deposit { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 11px 12px; border-radius: 7px; background: #f5f8f9; font-size: 12px; }
.lease-preview-deposit small, .lease-preview-hint { color: var(--muted); font-size: 11px; }
.lease-preview-hint { margin: 8px 0 0; }
.lease-preview-accounts { display: grid; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.lease-preview-accounts dl { padding: 12px; border: 1px solid var(--line); border-radius: 7px; }
.lease-preview-cards .detail-grid { grid-template-columns: 120px minmax(0, 1fr); }
.lease-preview-cards .detail-grid dd { overflow-wrap: anywhere; }
.lease-preview-cards .contract-notes { margin: 0; }
@media (max-width: 1100px) {
  .lease-preview-columns { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .lease-preview-facts { grid-template-columns: 1fr; }
  .lease-preview-tax { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lease-preview-card-heading { align-items: flex-start; }
  .lease-preview-card-heading > div { flex-direction: column; gap: 6px; }
  .lease-preview-card-heading h3 { font-size: 15px; }
  .lease-preview-amounts .lease-preview-total { font-size: 16px; }
}
.persistence-boundary { display: flex; align-items: flex-start; gap: 15px; margin: 16px 0; padding: 14px 16px; border: 1px solid #e8c986; border-radius: var(--radius); color: #775016; background: #fff8e8; }
.persistence-boundary strong { flex: 0 0 auto; }
.contract-final-actions { flex-wrap: wrap; }
.lease-draft-banner { margin-bottom: 14px; }
@media (max-width: 760px) {
  .company-node-heading, .company-child-title-row, .company-children-heading { flex-direction: column; }
  .company-node-facts { grid-template-columns: 1fr; }
  .company-account-table { min-width: 0; }
  .lease-contract-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .lease-contract-steps li { display: flex; }
  .lease-contract-steps b { white-space: normal; }
  .lease-preview-grid { grid-template-columns: 1fr; }
  .lease-preview-grid > div { grid-template-columns: 1fr; gap: 5px; }
  .contract-term-section-heading { grid-template-columns: 42px minmax(0, 1fr); gap: 11px; padding: 14px; }
  .contract-term-section-number { width: 38px; height: 38px; }
  .contract-term-section-body { padding: 15px 14px; }
  .term-input-grid { grid-template-columns: max-content; justify-content: start; gap: 17px; }
  .segmented-date-control { flex-wrap: nowrap; gap: 6px; }
  .shared-fee-measurement, .tax-detail-grid { width: 100%; }
  .contract-amount-grid, .other-fee-row, .payment-term-grid, .utility-term-grid, .tax-choice-group, .tax-split-grid { grid-template-columns: minmax(0, 1fr); }
  .deposit-summary-grid { grid-template-columns: minmax(0, 1fr); }
  .tax-choice-card { min-height: 80px; padding: 13px; }
  .tax-detail-panel { padding: 14px; }
  .asset-entry-tabs { grid-template-columns: 1fr; gap: 9px; }
  .asset-entry-tab { min-height: 76px; padding: 12px 13px; }
  .asset-entry-panels { margin-top: 15px; }
  .asset-project-field { width: 100%; }
  .asset-entry-flat .asset-entry-footer { margin-top: 15px; padding: 14px 0 0; }
  .asset-entry-footer .btn { width: 100%; }
  .overlap-conflict-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .selected-assets-table { overflow: visible; border: 0; border-radius: 0; }
  .selected-assets-table table, .selected-assets-table tbody { display: block; width: 100%; }
  .selected-assets-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .selected-assets-table tbody tr { display: block; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
  .selected-assets-table td { display: grid; width: auto !important; min-width: 0 !important; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center !important; }
  .selected-assets-table td.table-action { display: grid; }
  .selected-assets-table td::before { color: var(--muted); font-size: 11px; font-weight: 700; }
  .selected-assets-table td:first-child::before { content: "序号"; }
  .selected-assets-table td:nth-child(2)::before { content: "资产名称"; }
  .selected-assets-table td:nth-child(3)::before { content: "资产类型"; }
  .selected-assets-table td:nth-child(4)::before { content: "位置及面积"; }
  .selected-assets-table.is-system td:nth-child(5)::before { content: "来源"; }
  .selected-assets-table.is-system td:nth-child(6)::before { content: "操作"; }
  .selected-assets-table td.empty { display: block; padding: 22px 14px; text-align: center !important; }
  .selected-assets-table td.empty::before { display: none; }
  .asset-row-action-group { justify-content: center; gap: 8px; }
  .persistence-boundary { flex-direction: column; gap: 5px; }
}
/* Rental asset visualization */
.rental-detail-toolbar { display: flex; min-width: 0; min-height: 40px; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rental-detail-toolbar .rental-back-link { margin-bottom: 0; }
.rental-detail-toolbar-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 8px; }
.rental-detail-toolbar-actions form { margin: 0; }
.rental-detail-toolbar-actions .btn { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.rental-page-heading { display: flex; min-width: 0; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.rental-page-heading > div { min-width: 0; }
.rental-page-heading h1 { margin: 4px 0 5px; font-size: clamp(22px, 2.4vw, 31px); line-height: 1.2; overflow-wrap: anywhere; }
.rental-page-heading p { margin: 0; color: var(--muted); line-height: 1.55; }
.rental-back-link { display: inline-block; margin-bottom: 5px; font-size: 12px; font-weight: 750; }
.rental-visual-layout { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); align-items: start; }
.rental-groups, .rental-detail-main { display: grid; min-width: 0; gap: 20px; }
.rental-zone { min-width: 0; }
.rental-zone > header { position: sticky; top: 128px; z-index: 7; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-strong); background: rgba(241, 244, 247, .97); backdrop-filter: blur(8px); }
.rental-zone > header h2 { min-width: 0; margin: 0; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.rental-zone > header > span { flex: 0 0 auto; padding: 3px 9px; border-radius: 99px; color: var(--muted-strong); background: #edf2f4; font-size: 11px; font-weight: 800; }
.rental-card-grid { display: grid; min-width: 0; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 8px; padding-top: 18px; }
.rental-single-card { grid-template-columns: minmax(170px, 250px); }
.rental-asset-card { --lease-contract-group: var(--line-strong); position: relative; display: grid; height: 132px; min-width: 0; grid-template-rows: 62px minmax(0, 1fr); overflow: visible; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: white; box-shadow: 0 2px 7px rgba(22, 39, 51, .055); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
a.rental-asset-card:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22, 39, 51, .1); }
.rental-asset-card:focus-visible { outline: 3px solid rgba(11, 122, 117, .24); outline-offset: 3px; }
.rental-asset-card.has-contract-group { border: 3px solid var(--lease-contract-group); }
.rental-card-top { --rental-type-color: #66717a; display: grid; min-width: 0; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; align-content: center; gap: 5px; overflow: hidden; padding: 7px 10px; border-radius: 9px 9px 0 0; background: #fff; }
.rental-card-identity, .rental-card-meta { display: flex; min-width: 0; align-items: center; }
.rental-card-identity { gap: 6px; }
.rental-card-meta { justify-content: flex-end; gap: 4px; }
.rental-card-name, .rental-card-location { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rental-card-name { flex: 1 1 auto; font-size: 13px; font-weight: 850; line-height: 1.35; }
.rental-card-location { flex: 0 1 auto; color: var(--muted); font-size: 10px; line-height: 1.4; text-align: right; }
.rental-card-meta-separator { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.rental-card-area { flex: 0 0 auto; color: var(--muted-strong); font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1.4; white-space: nowrap; }
.rental-contract-group { position: absolute; z-index: 2; top: -24px; right: 11px; display: block; width: max-content; max-width: calc(100% - 28px); height: 24px; padding: 5px 12px 3px; isolation: isolate; border-radius: 11px 11px 0 0; color: white; background: var(--lease-contract-group); box-shadow: 0 -2px 5px color-mix(in srgb, var(--lease-contract-group) 20%, transparent); font-size: 9px; font-weight: 850; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.rental-contract-group > span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rental-contract-group::before, .rental-contract-group::after { position: absolute; z-index: -1; bottom: 0; width: 12px; height: 12px; background: transparent; content: ""; }
.rental-contract-group::before { left: -12px; border-bottom-right-radius: 12px; box-shadow: 6px 0 0 var(--lease-contract-group); }
.rental-contract-group::after { right: -12px; border-bottom-left-radius: 12px; box-shadow: -6px 0 0 var(--lease-contract-group); }
.rental-inactive-mark, .rental-snapshot-warning { display: block; flex: 0 1 auto; max-width: 70px; overflow: hidden; padding: 1px 5px; border-radius: 99px; font-size: 8px; font-weight: 850; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.rental-inactive-mark { color: #53616a; background: #e8ecef; }
.rental-snapshot-warning { color: #8a5a12; background: #fff1cd; }
.rental-card-status { display: grid; min-width: 0; min-height: 0; align-content: center; justify-items: center; gap: 4px; overflow: hidden; padding: 8px; border-top: 1px solid rgba(21, 42, 55, .08); border-radius: 0 0 9px 9px; text-align: center; }
.rental-card-status strong { display: flex; max-width: 100%; min-width: 0; align-items: center; justify-content: center; gap: 6px; overflow: hidden; font-size: 13px; line-height: 1.35; white-space: nowrap; }
.rental-status-label, .rental-card-status > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rental-card-status > span { max-width: 100%; font-size: 10px; line-height: 1.35; }
.rental-status-symbol { flex: 0 0 auto; width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; background: currentColor; }
.rental-status-active { color: #105a36; background: #d8efe2; }
.rental-status-warning { color: #684205; background: #f6dfa0; }
.rental-status-occupied { color: #39464e; background: #d6dee3; }
.rental-status-vacant { color: #303d45; background: #eef2f4; }
.rental-status-vacant .rental-status-symbol { background: transparent; }
.rental-status-anomaly { color: #7c1725; background: repeating-linear-gradient(135deg, #fbdde1, #fbdde1 8px, #f5cbd1 8px, #f5cbd1 16px); }
.rental-status-anomaly .rental-status-symbol { border-radius: 2px; transform: rotate(45deg); }
.rental-status-inactive { color: #55616a; background: #edf0f2; }
.rental-status-inactive .rental-status-symbol { border-radius: 1px; background: transparent; }
.rental-type-icon { display: grid; flex: 0 0 28px; width: 28px; height: 24px; place-items: center; border-radius: 7px; color: white; background: var(--rental-type-color); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24); font-size: 9px; font-weight: 900; line-height: 1; white-space: nowrap; }
.rental-type-office { --rental-type-color: #2563b5; }
.rental-type-apartment { --rental-type-color: #7540ad; }
.rental-type-ground { --rental-type-color: #3f7180; }
.rental-type-factory { --rental-type-color: #a56b16; }
.rental-type-container { --rental-type-color: #a3442f; }
.rental-type-other { --rental-type-color: #66717a; }
.rental-project-desktop { position: sticky; top: 64px; z-index: 9; height: 64px; min-width: 0; margin-bottom: 18px; padding: 3px 0; background: var(--canvas); }
.rental-filter-bar { display: flex; width: 100%; height: 58px; min-width: 0; align-items: center; gap: 12px; margin: 0; padding: 8px 10px; overflow: visible; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: 0 3px 12px rgba(22, 39, 51, .07); }
.rental-filter-control { display: flex; height: 40px; min-width: 0; align-items: center; gap: 8px; }
.rental-filter-control > span, .rental-status-filter summary > span { flex: 0 0 auto; color: var(--muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.rental-project-filter { flex: 1 1 460px; max-width: 560px; }
.rental-project-filter select { width: 100%; height: 36px; min-width: 0; padding: 0 34px 0 10px; border: 1px solid #74aaa6; border-radius: 7px; color: var(--brand-dark); background: var(--brand-soft); font-weight: 800; text-overflow: ellipsis; }
.rental-status-filter { position: relative; flex: 0 0 250px; min-width: 0; }
.rental-status-filter > summary { display: flex; height: 38px; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); background: #f8fafb; cursor: pointer; list-style: none; }
.rental-status-filter > summary::-webkit-details-marker { display: none; }
.rental-status-filter > summary::after { flex: 0 0 auto; color: var(--muted); content: "⌄"; font-size: 12px; transition: transform .15s ease; }
.rental-status-filter[open] > summary::after { transform: rotate(180deg); }
.rental-status-filter summary strong { min-width: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rental-status-filter-panel { position: absolute; z-index: 20; top: calc(100% + 7px); right: 0; width: 330px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: white; box-shadow: 0 12px 28px rgba(22, 39, 51, .18); }
.rental-status-filter-panel fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 8px; margin: 0; padding: 0; border: 0; }
.rental-status-filter-panel fieldset label { display: flex; min-width: 0; align-items: center; gap: 6px; padding: 6px 7px; border-radius: 6px; color: var(--ink-soft); font-size: 11px; cursor: pointer; white-space: nowrap; }
.rental-status-filter-panel fieldset label:hover { background: var(--paper-soft); }
.rental-status-filter-panel input { width: 15px; height: 15px; margin: 0; accent-color: var(--brand); }
.rental-status-filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.rental-status-filter-actions a { margin-right: auto; font-size: 10px; font-weight: 750; }
.rental-status-filter-actions button { height: 30px; padding: 0 11px; border: 0; border-radius: 6px; color: white; background: var(--brand); font-size: 10px; font-weight: 800; cursor: pointer; }
.rental-filter-control.is-disabled { flex: 0 0 auto; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #f3f5f6; }
.rental-asset-create-action { flex: 0 0 auto; min-height: 36px; margin-left: auto; padding: 6px 10px; font-size: 11px; white-space: nowrap; }
.rental-empty-state, .rental-empty-note { padding: 24px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); background: #f9fbfb; text-align: center; }
.rental-empty-state h2 { margin: 0 0 5px; color: var(--ink); font-size: 17px; }
.rental-empty-state p { margin: 0; }
.rental-detail-panel { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 2px 9px rgba(22, 39, 51, .045); }
.rental-detail-panel > header { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.rental-detail-panel h2 { margin: 0; font-size: 16px; }
.rental-detail-panel header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.rental-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.rental-detail-list > div { display: grid; min-width: 0; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 11px 12px; background: white; }
.rental-detail-list > .rental-detail-wide { grid-column: 1 / -1; }
.rental-detail-list dt { color: var(--muted); font-size: 11px; }
.rental-detail-list dd { min-width: 0; margin: 0; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.rental-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.rental-metric-grid > div { display: grid; min-width: 0; align-content: start; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafb; }
.rental-metric-grid span { color: var(--muted); font-size: 10px; }
.rental-metric-grid b { font-size: 17px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rental-metric-grid small { color: var(--muted); font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.rental-calculation-warning { margin-top: 11px; padding: 10px 12px; border: 1px solid #e4c36f; border-radius: 7px; color: #714c0c; background: #fff8e5; font-size: 11px; line-height: 1.5; }
.rental-formula-note { margin: 11px 0 0; color: var(--muted); font-size: 10px; }
.rental-contract-choice-list { display: grid; gap: 9px; }
.rental-contract-choice-list article { display: grid; gap: 7px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; }
.rental-contract-choice-list article > div { display: flex; min-width: 0; justify-content: space-between; gap: 12px; }
.rental-contract-choice-list span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.rental-rent-track-header { align-items: center !important; flex-wrap: wrap; }
.rental-rent-track-header > div:first-child { flex: 1 1 320px; min-width: 0; }
.rental-rent-range { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 2px; padding: 3px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #eef2f4; }
.rental-rent-range button { min-width: 50px; min-height: 32px; padding: 5px 10px; border: 0; border-radius: 6px; color: var(--muted-strong); background: transparent; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.rental-rent-range button:hover { color: var(--brand-dark); background: #e1eceb; }
.rental-rent-range button[aria-pressed="true"] { color: white; background: var(--brand); box-shadow: 0 1px 3px rgba(12, 83, 78, .24); }
.rental-rent-range button:focus-visible { outline: 3px solid rgba(19, 137, 128, .25); outline-offset: 1px; }
.rental-rent-legend { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 10px; color: var(--muted-strong); font-size: 11px; }
.rental-rent-legend-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.rental-rent-legend-item i { display: inline-block; width: 28px; height: 0; border-top: 3px solid #087d75; }
.rental-rent-legend-item.is-received i { border-top-color: #b45309; border-top-style: dashed; }
.rental-rent-chart-frame { position: relative; width: 100%; max-width: 100%; min-width: 0; min-height: 310px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; }
.rental-rent-chart { position: relative; width: 100%; max-width: 100%; min-width: 0; min-height: 310px; }
.rental-rent-chart[hidden] { display: none; }
.rental-rent-chart-svg { display: block; width: 100%; max-width: 100%; font-family: inherit; }
.rental-rent-grid-line { stroke: #dce4e8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.rental-rent-x-tick { stroke: #82939c; stroke-width: 1; vector-effect: non-scaling-stroke; }
.rental-rent-axis-label { fill: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.rental-rent-axis-label.is-x { font-size: 9px; }
.rental-rent-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rental-rent-line.is-receivable { stroke: #087d75; }
.rental-rent-line.is-received { stroke: #b45309; stroke-dasharray: 7 5; }
.rental-rent-point { stroke-width: 2; vector-effect: non-scaling-stroke; }
.rental-rent-point.is-receivable { fill: white; stroke: #087d75; }
.rental-rent-point.is-received { fill: #b45309; stroke: white; }
.rental-rent-probe-guide { display: none; stroke: #5f747e; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.rental-rent-probe-guide.is-visible { display: block; }
.rental-rent-current-point { display: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.rental-rent-current-point.is-visible { display: block; }
.rental-rent-current-point.is-receivable { fill: white; stroke: #087d75; }
.rental-rent-current-point.is-received { fill: #b45309; stroke: white; }
.rental-rent-chart-interaction { position: absolute; z-index: 2; cursor: crosshair; touch-action: pan-y; }
.rental-rent-chart-interaction:focus-visible { outline: 3px solid rgba(19, 137, 128, .25); outline-offset: 1px; }
.rental-rent-tooltip { position: absolute; z-index: 3; top: 8px; width: max-content; max-width: min(230px, calc(100% - 16px)); padding: 8px 10px; border: 1px solid #b8cbc9; border-radius: 7px; color: var(--ink); background: rgba(255, 255, 255, .97); box-shadow: 0 5px 16px rgba(22, 39, 51, .15); font-size: 10px; line-height: 1.5; pointer-events: none; }
.rental-rent-tooltip[hidden] { display: none; }
.rental-rent-tooltip[data-align="start"] { transform: translateX(0); }
.rental-rent-tooltip[data-align="center"] { transform: translateX(-50%); }
.rental-rent-tooltip[data-align="end"] { transform: translateX(-100%); }
.rental-rent-tooltip strong, .rental-rent-tooltip span { display: block; }
.rental-rent-tooltip span { color: var(--muted-strong); }
.rental-rent-tooltip b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rental-rent-tooltip .is-issue { margin-top: 3px; color: #79500e; }
.rental-rent-chart-empty { display: grid; min-height: 310px; place-items: center; padding: 24px; color: var(--muted); text-align: center; }
.rental-rent-chart-empty[hidden] { display: none; }
.rental-rent-interaction-help { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.rental-rent-data-details { margin-top: 12px; border-top: 1px solid var(--line); }
.rental-rent-data-details > summary { width: fit-content; margin-top: 10px; padding: 5px 0; color: var(--brand-dark); font-size: 11px; font-weight: 800; cursor: pointer; }
.rental-rent-table-wrap { max-width: 100%; max-height: 360px; margin-top: 6px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; scrollbar-gutter: auto; }
.rental-rent-table-wrap table { min-width: 620px; margin: 0; table-layout: fixed; }
.rental-rent-table-wrap th, .rental-rent-table-wrap td { padding: 9px 11px; font-size: 11px; }
.rental-rent-table-wrap thead th { position: sticky; z-index: 1; top: 0; background: #f2f6f7; box-shadow: 0 1px 0 var(--line); }
.rental-rent-table-wrap th:first-child { width: 21%; }
.rental-rent-table-wrap th:nth-child(2), .rental-rent-table-wrap th:nth-child(3) { width: 20%; }
.rental-rent-table-wrap td.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rental-rent-table-issue { color: #79500e; background: #fffaf0; }
.rental-rent-table-empty { padding: 20px !important; color: var(--muted); text-align: center; }
@media (max-width: 1120px) {
  .rental-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rental-visual-layout { grid-template-columns: minmax(0, 1fr); }
  .rental-project-desktop { display: block; }
  .rental-zone > header { top: 128px; }
}
@media (max-width: 620px) {
  .rental-page-heading { align-items: flex-start; flex-direction: column; }
  .rental-detail-toolbar { gap: 8px; }
  .rental-detail-toolbar-actions { gap: 6px; }
  .rental-filter-bar { gap: 7px; padding: 8px; }
  .rental-project-filter { flex: 1 1 auto; max-width: none; }
  .rental-project-filter > span, .rental-status-filter summary > span { display: none; }
  .rental-project-filter select { padding-left: 8px; font-size: 11px; }
  .rental-status-filter { flex: 0 0 138px; }
  .rental-asset-create-action { padding-right: 8px; padding-left: 8px; }
  .rental-status-filter-panel { position: fixed; top: 129px; right: 14px; left: 14px; width: auto; }
  .rental-card-grid, .rental-single-card, .rental-detail-list, .rental-metric-grid { grid-template-columns: minmax(0, 1fr); }
  .rental-detail-list > div { grid-template-columns: 100px minmax(0, 1fr); }
  .rental-detail-panel { padding: 14px; }
  .rental-contract-choice-list article > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .rental-rent-track-header > div:first-child { flex-basis: 100%; }
  .rental-rent-range { width: 100%; }
  .rental-rent-range button { min-height: 44px; flex: 1 0 72px; }
}
.amendment-entry-form { gap: 24px; }
.amendment-heading .amendment-tenant { margin: 7px 0 0; font-size: clamp(23px, 2.2vw, 28px); line-height: 1.25; letter-spacing: -.03em; }
.amendment-steps { display: flex; justify-content: center; gap: 76px; list-style: none; margin: 0 0 22px; padding: 18px; border: 1px solid #dce5ea; border-radius: 12px; background: white; }
.amendment-steps li { display: flex; align-items: center; gap: 10px; color: #78889b; font-size: 14px; }
.amendment-steps b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #eef2f5; }
.amendment-steps .active { color: #087f79; font-weight: 700; }
.amendment-steps .active b, .amendment-steps .complete b { color: white; background: #087f79; }
.amendment-form-card { padding: 26px; }
.amendment-form-card .card-header h2 { font-size: 20px; }
.amendment-form-card .card-header p { font-size: 13px; }
.amendment-editor { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 26px; }
.amendment-editor > * { min-width: 0; }
.amendment-editor .full-width { grid-column: 1 / -1; }
.amendment-editor label { font-size: 14px; margin-bottom: 9px; }
.amendment-editor label.required::after { content: " *"; color: #b84250; }
.amendment-editor input[data-account-search] { margin-bottom: 1rem; }
.amendment-editor .form-control { min-height: 46px; font-size: 15px; padding: 10px 13px; margin-bottom: 0; }
.amendment-editor small { display: block; margin-top: 7px; color: #6c7e90; font-size: 12px; line-height: 1.7; }
.amendment-editor input:disabled { color: #718195; background: #eff3f6; cursor: not-allowed; }
.amendment-editor textarea { min-height: 86px; }
.amendment-editor .amendment-type-field select { max-width: none; }
.amendment-original { padding: 18px 20px; background: #f5f8fa; border: 1px solid #e0e8ed; border-radius: 10px; }
.amendment-original h3 { margin: 0 0 15px; color: #52697a; font-size: 13px; }
.amendment-original dl { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 18px; margin: 0; }
.amendment-original dt { color: #708195; font-size: 12px; margin-bottom: 7px; }
.amendment-original dd { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.amendment-actions { justify-content: flex-end; border-top: 1px solid #e1e8ed; padding-top: 20px; margin-top: 0; }
.amendment-form-card > form .amendment-actions { margin-top: 24px; }
.amendment-character-count { text-align: right; }
.amendment-three-fields, .amendment-impact-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.amendment-section-heading { margin: 0; padding-top: 8px; font-size: 16px; }
.amendment-assets h3 { margin: 0; font-size: 16px; }
.amendment-asset-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.amendment-asset-heading .muted, [data-selected-count] { color: #718195; font-size: 12px; font-weight: 400; }
.amendment-asset-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 14px 0 22px; }
.amendment-editor .amendment-asset-option { display: flex; align-items: center; gap: 12px; border: 1px solid #dce5ec; padding: 14px; margin: 0; border-radius: 9px; cursor: pointer; }
.amendment-asset-option.selected { border-color: #aad4cd; background: #f1faf7; }
.amendment-asset-option input { accent-color: #087f79; }
.amendment-asset-option span { min-width: 0; overflow-wrap: anywhere; flex: 1; }
.amendment-asset-option em { font-size: 12px; color: #087f79; font-style: normal; white-space: nowrap; }
.amendment-existing { padding: 13px 16px; border: 1px solid #dce5ec; border-radius: 9px; font-size: 13px; }
.amendment-impact { margin-top: 26px; padding-top: 20px; border-top: 1px solid #dfe7ec; }
.amendment-impact h3 { font-size: 17px; margin: 0 0 16px; }
.amendment-impact-facts { margin-bottom: 18px; padding: 16px; background: #f5f8fa; border-radius: 10px; }
.amendment-impact-facts span { display: block; font-size: 12px; color: #6b7d90; margin-bottom: 8px; }
.amendment-impact-facts b { font-size: 15px; }
.amendment-impact caption { text-align: left; color: #546b7e; padding: 10px 0; font-size: 13px; }
.amendment-impact .amendment-scope-hint, .amendment-editor .amendment-scope-hint { margin: 0; font-size: 13px; line-height: 1.8; }
.amendment-bill-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.amendment-bill-columns p { padding-bottom: 10px; border-bottom: 1px solid #e1e8ed; line-height: 1.8; }
.amendment-notice-impact { font-size: 13px; color: #7d5929; background: #fff8ec; padding: 12px 16px; border-radius: 8px; }
.amendment-errors a { color: inherit; }
.amendment-record { scroll-margin-top: 100px; }
.amendment-effective .amendment-pending { color: #9a661c; }
@media (max-width: 760px) {
  .amendment-editor, .amendment-original dl, .amendment-three-fields, .amendment-asset-grid, .amendment-impact-facts, .amendment-bill-columns { grid-template-columns: 1fr; }
  .amendment-form-card { padding: 18px; }
  .amendment-steps { gap: 24px; padding: 14px; }
  .amendment-asset-heading { flex-direction: column; }
}
.amendment-type-field select { max-width: 640px; }
.amendment-scope-hint { margin: 0 0 20px; padding: 12px 16px; border-radius: 10px; background: #edf7f6; color: #087f79; font-size: 14px; }
.amendment-notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.amendment-notes-grid > div { min-width: 0; }
.amendment-field-hint { margin-left: 8px; font-size: 12px; font-weight: 400; color: #748397; }
.amendment-original-note { min-height: 164px; padding: 15px 16px; border: 1px solid #dce4eb; border-radius: 10px; background: #f6f8fa; color: #536579; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.amendment-notes-grid textarea { min-height: 164px; line-height: 1.8; }
.amendment-entry-form #id_reason { min-height: 88px; }
.amendment-history .card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.amendment-preview-facts { background: #f4f8fa; color: #24364a; box-shadow: none; border: 1px solid #dfe7ee; }
.amendment-preview-facts > div { border-color: #dfe7ee; }
.amendment-preview-facts span { color: #63748a; font-size: 12px; }
.amendment-record-count { color: #64748b; font-size: 14px; white-space: nowrap; }
.amendment-record-head, .amendment-record > summary { display: grid; grid-template-columns: 145px minmax(200px, 1fr) 155px 170px 100px; align-items: center; gap: 22px; padding: 18px 20px; }
.amendment-record-head { background: #f5f8fa; color: #63748a; font-size: 13px; border-bottom: 1px solid #dfe7ee; }
.amendment-record { border-bottom: 1px solid #e2e8ef; }
.amendment-record:last-child { border-bottom: 0; }
.amendment-record > summary { cursor: pointer; list-style: none; min-height: 86px; }
.amendment-record > summary::-webkit-details-marker { display: none; }
.amendment-record > summary:hover, .amendment-record[open] > summary { background: #f5faf9; }
.amendment-record > summary:focus-visible { outline: 2px solid #0d9488; outline-offset: -2px; }
.amendment-type-badge { display: inline-block; padding: 7px 10px; border-radius: 8px; color: #087f79; background: #e9f5f3; font-size: 14px; }
.amendment-record-summary { color: #24364a; line-height: 1.7; font-size: 14px; overflow-wrap: anywhere; }
.amendment-effective, .amendment-actor { color: #3d5065; font-size: 14px; }
.amendment-record small { display: block; margin-top: 5px; font-size: 12px; color: #748397; }
.amendment-toggle { display: flex; justify-content: flex-end; align-items: center; gap: 8px; color: #07837d; font-size: 14px; white-space: nowrap; }
.amendment-close-label { display: none; }
.amendment-record[open] > summary .amendment-open-label { display: none; }
.amendment-record[open] > summary .amendment-close-label { display: inline; }
.amendment-record[open] > summary .amendment-toggle > span:last-child { transform: rotate(180deg); }
.amendment-record-body { padding: 4px 20px 22px; background: #fbfdfc; }
.amendment-diff-wrap { border: 1px solid #dbe5e8; border-radius: 10px; overflow: hidden; }
.amendment-diff-table { table-layout: fixed; width: 100%; }
.amendment-diff-table th:first-child { width: 19%; }
.amendment-diff-table thead th { background: #f0f5f6; font-size: 13px; }
.amendment-diff-table tbody th, .amendment-diff-table tbody td { vertical-align: top; padding: 18px; font-size: 14px; }
.amendment-diff-table tbody th { color: #4b6074; font-weight: 600; }
.amendment-diff-table tbody td:nth-child(2) { color: #68798b; }
.amendment-diff-table tbody td:nth-child(3) { background: #f1faf6; color: #244939; }
.amendment-diff-value { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.85; }
.amendment-reason { display: flex; gap: 24px; padding: 18px 2px 0; align-items: flex-start; font-size: 14px; }
.amendment-reason strong { color: #617489; font-weight: 500; flex: 0 0 80px; }
.amendment-reason p, .amendment-legacy-summary p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.amendment-bill-details { margin-top: 18px; font-size: 13px; color: #60758a; }
.amendment-bill-details > summary { cursor: pointer; }
@media (max-width: 1100px) {
  .amendment-record-head, .amendment-record > summary { grid-template-columns: 120px minmax(120px, 1fr) 120px 140px 85px; gap: 12px; padding: 16px 12px; }
}
@media (max-width: 760px) {
  .amendment-notes-grid { grid-template-columns: 1fr; }
  .amendment-record-head { display: none; }
  .amendment-record > summary { grid-template-columns: 1fr 1fr; }
  .amendment-record-summary { grid-column: 1 / -1; grid-row: 2; }
  .amendment-toggle { grid-row: 1; grid-column: 2; }
  .amendment-record-body { padding: 8px 12px 18px; }
  .amendment-diff-table, .amendment-diff-table th:first-child { width: 100%; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  body { background: white; }
  .sidebar, .topbar, .menu-overlay, .no-print, .messages { display: none !important; }
  .app-shell { display: block; }
  main { display: block; }
  .content { padding: 0; }
  .notice-preview-scroll { overflow: visible; padding: 0; }
  .notice-paper, .notice-preview-scroll .notice-paper { width: auto; min-width: 0; min-height: auto; box-shadow: none; padding: 10mm; }
  .notice-paper.notice-paper-v3 { padding: 16mm 18mm; }
}
