:root {
  color-scheme: light;
  --ink: #18202a;
  --muted: #667085;
  --line: #d9e2ec;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --accent: #7c3aed;
  --accent-2: #1d4ed8;
  --nav-purple: #7c3aed;
  --nav-purple-soft: #f1e7ff;
  --warn: #b45309;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body.auth-pending #app {
  visibility: hidden;
}

.auth-loading {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  color: #667085;
  background: var(--bg);
  font-size: 15px;
}

body.auth-pending .auth-loading {
  display: flex;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  filter: brightness(0.96);
}

button.ghost {
  background: #eef4f6;
  color: var(--ink);
}

.app {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-columns: 244px 1fr;
  overflow: hidden;
  transition: grid-template-columns 180ms ease;
}

.app.auth-guest {
  grid-template-columns: 1fr;
}

.app.auth-guest .sidebar {
  display: none;
}

.app.sidebar-collapsed {
  grid-template-columns: 78px 1fr;
}

.sidebar {
  position: relative;
  background: var(--panel);
  color: var(--ink);
  border-right: 1px solid var(--line);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  min-height: 0;
  height: 100vh;
  overflow: hidden;
}

.sidebar > nav {
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  grid-auto-rows: max-content;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.sidebar > .brand,
.sidebar > .user-box {
  flex: 0 0 auto;
}

.brand {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 12px 0 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.brand strong {
  color: var(--nav-purple);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-short {
  display: none;
}

.collapse-btn {
  margin-left: auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f3f4f6;
  color: #111827;
  font-size: 14px;
  line-height: 1;
  z-index: 5;
  box-shadow: none;
}

.collapse-btn:hover {
  background: #eef2ff;
  color: var(--nav-purple);
  filter: none;
}

.collapse-btn::after {
  content: attr(title);
  position: absolute;
  top: 42px;
  right: 0;
  display: none;
  background: #111827;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgb(16 32 39 / 22%);
}

.collapse-btn:hover::after {
  display: block;
}

nav {
  display: grid;
  gap: 0;
  padding: 14px 8px 6px;
}

.nav-group {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 8px;
  padding: 10px 0 18px;
  border-bottom: 0;
}

.nav-section-title {
  padding: 0 14px 8px;
  color: #8b93a1;
  font-size: 12px;
  font-weight: 500;
}

.nav {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: #4b5563;
  border: 1px solid transparent;
  border-radius: 8px;
  height: 40px;
  min-height: 40px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
}

.nav.active,
.nav:hover {
  background: var(--nav-purple-soft);
  border-color: var(--nav-purple-soft);
  color: var(--nav-purple);
  filter: none;
}

.nav.active {
  font-weight: 600;
}

.nav-emoji,
.nav-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

/* Ã¨Â´Â¢Ã¥ÂÂ¡Ã§Â®Â¡Ã§ÂÂÃ¤Â¾Â§Ã¦Â ÂÃ¯Â¼ÂÃ§ÂºÂ¿Ã¦Â¡ÂÃ¥ÂÂ¾Ã¦Â Â + Ã¦Â¿ÂÃ¦Â´Â»Ã§Â´Â«Ã¥ÂºÂÃ§ÂÂ½Ã¦Â ÂÃ¯Â¼ÂÃ¥Â­ÂÃ¤Â½ÂÃ¤Â¸ÂÃ¨Â®Â¾Ã¨Â®Â¡Ã§Â¨Â¿Ã¤Â¸ÂÃ¨ÂÂ´ */
.nav-group[data-module="finance"] .nav-section-title,
.nav-group[data-module="investment"] .nav-section-title,
.nav-group[data-module="digitalwork"] .nav-section-title {
  color: #8b93a1;
  font-weight: 500;
}

.nav-group[data-module="finance"] .nav,
.nav-group[data-module="investment"] .nav,
.nav-group[data-module="digitalwork"] .nav {
  font-size: 14px;
  font-weight: 500;
}

.nav-group[data-module="finance"] .nav.active,
.nav-group[data-module="investment"] .nav.active,
.nav-group[data-module="digitalwork"] .nav.active {
  font-weight: 600;
}

.nav-icon {
  border-radius: 5px;
  color: #5f6775;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav:hover .nav-icon {
  color: var(--nav-purple);
}

.nav.active .nav-icon {
  background: var(--nav-purple);
  color: #fff;
}

.nav.active .nav-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.9;
}

.nav-label {
  white-space: nowrap;
}

.lock {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.55;
}

.nav.nav-disabled {
  color: #6b7280;
  cursor: not-allowed;
}

.nav.nav-disabled:hover {
  background: transparent;
  border-color: transparent;
}

.user-box {
  margin-top: auto;
  padding: 16px 20px 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.user-box span {
  color: #111827;
  font-weight: 700;
}

.user-box .ghost {
  justify-self: stretch;
}

.app.sidebar-collapsed .sidebar {
  align-items: stretch;
}

.app.sidebar-collapsed .brand-full,
.app.sidebar-collapsed .nav-label,
.app.sidebar-collapsed .lock,
.app.sidebar-collapsed .nav-section-title,
.app.sidebar-collapsed .user-box span {
  display: none;
}

.app.sidebar-collapsed .brand-short {
  display: inline;
}

.app.sidebar-collapsed .nav-group {
  padding: 10px 3px;
}

.app.sidebar-collapsed .nav {
  justify-content: center;
  padding: 9px 0;
}

.app.sidebar-collapsed .brand {
  justify-content: center;
  padding: 0 8px;
}

.app.sidebar-collapsed .brand strong {
  color: var(--nav-purple);
  font-size: 14px;
}

.app.sidebar-collapsed .collapse-btn {
  position: static;
  margin-left: 0;
  background: #f3f4f6;
  color: #111827;
  border-color: var(--line);
}

.app.sidebar-collapsed .user-box {
  padding: 12px 10px 20px;
}

.app.sidebar-collapsed .user-box .ghost {
  font-size: 0;
  min-height: 38px;
  padding: 0;
}

.app.sidebar-collapsed .user-box .ghost::before {
  content: "\238B";
  font-size: 18px;
}

.main {
  min-width: 0;
  min-height: 0;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.login-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: #f3f6fa;
}

.auth-card {
  width: min(520px, calc(100vw - 32px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 18px 48px rgb(16 32 39 / 10%);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e7edf4;
}

.auth-brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--nav-purple);
  color: #fff;
  font-size: 23px;
  font-weight: 900;
}

.auth-brand h1,
.auth-form-heading h2 {
  margin: 0;
  letter-spacing: 0;
}

.auth-brand h1 {
  font-size: 25px;
}

.auth-brand p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-form {
  padding-top: 24px;
  display: grid;
  gap: 16px;
}

.auth-form-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-form-heading h2 {
  font-size: 20px;
}

.auth-form-heading span {
  color: var(--muted);
  font-size: 13px;
}

.auth-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-submit {
  min-height: 42px;
  margin-top: 2px;
  background: var(--accent);
  font-weight: 700;
}

.auth-wecom-entry {
  display: grid;
  gap: 9px;
}

.auth-wecom-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;
  gap: 12px;
  padding: 9px 13px;
  border: 1px solid #07a957;
  border-radius: 7px;
  background: #07c160;
  color: #fff;
  text-align: left;
}

.auth-wecom-button:hover,
.auth-wecom-button:focus-visible {
  background: #06ad56;
  border-color: #069d4f;
  outline: none;
  box-shadow: 0 0 0 3px rgb(7 193 96 / 16%);
  filter: none;
}

.auth-wecom-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 7px;
  background: rgb(255 255 255 / 20%);
  font-size: 17px;
  font-weight: 800;
}

.auth-wecom-button-text {
  display: grid;
  flex: 1;
  gap: 2px;
}

.auth-wecom-button-text strong {
  font-size: 15px;
}

.auth-wecom-button-text small {
  color: rgb(255 255 255 / 82%);
  font-size: 12px;
}

.auth-wecom-arrow {
  font-size: 25px;
  line-height: 1;
}

.auth-wecom-guide {
  padding: 10px 12px;
  border: 1px solid #ccebdc;
  border-radius: 6px;
  background: #f2fbf6;
  color: #3c6651;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.auth-wecom-guide p,
.auth-wecom-guide small {
  margin: 0;
  line-height: 1.55;
}

.auth-wecom-guide p {
  font-size: 13px;
}

.auth-wecom-guide small {
  display: block;
  margin-top: 2px;
  color: #648271;
  font-size: 12px;
}

.auth-wecom-guide.attention {
  border-color: #07c160;
  background: #eaf9f1;
  box-shadow: 0 0 0 3px rgb(7 193 96 / 13%);
  outline: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #98a2b3;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: #e4e9f0;
  content: "";
}

.auth-register-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid #d6deea;
  border-radius: 8px;
  background: #f5f7fa;
}

.auth-register-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #667085;
  font-weight: 600;
}

.auth-register-tabs button.active {
  background: #fff;
  color: var(--nav-purple);
  box-shadow: 0 1px 4px rgb(16 24 40 / 12%);
}

.auth-registration-fields {
  display: grid;
  gap: 12px;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px 40px;
  align-items: center;
  gap: 8px;
}

.auth-email-row,
.auth-email-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 8px;
}

.auth-email-row input,
.auth-email-row select,
.auth-email-code-row input {
  min-width: 0;
}

.auth-email-row > .auth-input-field,
.auth-email-code-row > .auth-input-field,
.auth-code-row > .auth-input-field {
  min-width: 0;
}

.auth-email-domain {
  cursor: pointer;
}

.auth-email-send {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d6deea;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-weight: 600;
}

.auth-email-send:hover,
.auth-email-send:focus-visible {
  border-color: var(--nav-purple);
  color: var(--nav-purple);
  outline: none;
  filter: none;
}

.auth-email-send:disabled {
  cursor: wait;
  color: #98a2b3;
  opacity: .75;
}

.auth-code-row input {
  min-width: 0;
  text-transform: uppercase;
}

.auth-code-canvas {
  width: 118px;
  height: 40px;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  background: #f5f7fa;
}

.auth-code-refresh {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  background: #eef2f6;
  color: #475467;
  font-size: 21px;
}

.auth-code-refresh:hover,
.auth-code-refresh:focus-visible {
  border-color: var(--nav-purple);
  color: var(--nav-purple);
  outline: none;
}

.auth-code-refresh:disabled {
  cursor: wait;
  opacity: .55;
}

.auth-switch {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.auth-text-button {
  padding: 2px 4px;
  background: transparent;
  color: var(--nav-purple);
  font-weight: 700;
}

.auth-text-button:hover {
  text-decoration: underline;
  filter: none;
}

@media (max-width: 560px) {
  .auth-card {
    padding: 24px 20px;
  }

  .auth-field-grid {
    grid-template-columns: 1fr;
  }

  .auth-code-row {
    grid-template-columns: minmax(0, 1fr) 104px 40px;
  }

  .auth-email-row,
  .auth-email-code-row {
    grid-template-columns: minmax(0, 1fr) 116px;
  }

  .auth-code-canvas {
    width: 104px;
  }
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
}

/* Keep long filter values within their control while preserving normal text editing. */
input:not([type]),
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.hidden {
  display: none !important;
}

.workbench {
  min-height: 100vh;
  padding: 24px;
}

.module-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  margin: -24px -24px 24px;
  padding: 0 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.module-tab {
  position: relative;
  min-height: 64px;
  padding: 0 18px;
  border-radius: 0;
  background: transparent;
  color: #475569;
  font-size: 16px;
  font-weight: 800;
}

.module-tab:hover,
.module-tab.active {
  background: transparent;
  color: var(--nav-purple);
  filter: none;
}

.module-tab.active::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--nav-purple);
}

.nav-group.module-hidden {
  display: none;
}

.nav.permission-hidden {
  display: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.topbar > div {
  min-width: 0;
  flex: 1 1 auto;
}

.topbar > .topbar-end {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-actions:empty {
  display: none;
}

.topbar-heading {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px 12px;
}

.topbar h1 {
  margin: 0;
  flex: 0 0 auto;
  font-size: 28px;
  line-height: 1.2;
}

.topbar p {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar p:empty {
  display: none;
}

.workbench.invest-mode .topbar {
  display: none;
}

.workbench.task-mode .topbar { display: none; }
.workbench.task-mode #tasksView,
.workbench.task-mode #taskRunsView,
.workbench.task-mode #taskRegistryView {
  min-height: calc(100vh - 64px);
  margin: -24px;
}

.tasks-board {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px);
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
  padding: 24px 28px 36px;
  background: #f3f5f9;
}

/* Full-width desktop query bars use an explicit grid so controls occupy one
   continuous row without arbitrary flex gaps. Narrower workspaces keep the
   existing responsive wrapping rules above. */
@media (min-width: 1701px) {
  .self-service-work-order-primary-filters {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: 180px repeat(3, minmax(140px, 1fr)) minmax(180px, 1.25fr) repeat(6, max-content);
    align-items: center;
    gap: 10px;
  }

  .self-service-work-order-primary-filters > *,
  .self-service-work-order-primary-filters .receivable-text-filter,
  .self-service-work-order-primary-filters .receivable-project-select,
  .self-service-work-order-primary-filters .receivable-column-settings {
    width: auto !important;
    min-width: 0 !important;
  }

  .self-service-work-order-primary-filters .receivable-text-filter {
    flex: initial !important;
  }

  .self-service-work-order-primary-filters .receivable-text-filter > input,
  .self-service-work-order-primary-filters #selfServiceWorkOrderProjectGroup,
  .self-service-work-order-primary-filters #selfServiceWorkOrderBuilding,
  .self-service-work-order-primary-filters #selfServiceWorkOrderRoom,
  .self-service-work-order-primary-filters #selfServiceWorkOrderCustomer,
  .self-service-work-order-primary-filters .receivable-project-select > select {
    width: 100% !important;
  }

  .receivable-primary-filters {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: 180px minmax(155px, 1fr) minmax(180px, 1.2fr) 320px 120px auto auto auto auto auto;
    align-items: center;
    gap: 10px;
  }

  .receivable-primary-filters > *,
  .receivable-primary-filters .receivable-text-filter,
  .receivable-primary-filters .receivable-project-select,
  .receivable-primary-filters .receivable-balance-select,
  .receivable-primary-filters .receivable-date-filter,
  .receivable-primary-filters .receivable-column-settings {
    width: auto !important;
    min-width: 0 !important;
  }

  .receivable-primary-filters .receivable-text-filter,
  .receivable-primary-filters .receivable-date-filter {
    flex: initial !important;
  }

  .receivable-primary-filters .receivable-text-filter > input,
  .receivable-primary-filters #receivableProjectGroup,
  .receivable-primary-filters #receivableCustomer,
  .receivable-primary-filters .receivable-project-select > select,
  .receivable-primary-filters .receivable-balance-select > select,
  .receivable-primary-filters .receivable-date-picker {
    width: 100% !important;
  }

  .receivable-primary-filters .receivable-date-picker {
    min-width: 0 !important;
    flex: initial !important;
  }
}

/* Final notebook layout: controls keep a readable width while actions size to
   their labels. This intentionally excludes full desktop and handset sizes. */
@media (min-width: 769px) and (max-width: 1500px) {
  .receivable-primary-filters,
  .room-charge-filter-group,
  .self-service-work-order-filter-group,
  .receivable-more-filter-row,
  .property-service-type-board .receivable-filter-group {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .receivable-primary-filters > *,
  .room-charge-filter-group > *,
  .self-service-work-order-filter-group > *,
  .receivable-more-filter-row > *,
  .property-service-type-board .receivable-filter-group > * {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
  }

  .receivable-filter-group .receivable-project-select,
  .property-service-type-board .property-service-type-select {
    width: 190px !important;
    flex-basis: 190px !important;
  }

  .receivable-filter-group .receivable-text-filter,
  .receivable-more-filter-row .receivable-text-filter {
    width: clamp(150px, 15vw, 190px) !important;
    flex-basis: clamp(150px, 15vw, 190px) !important;
  }

  .receivable-filter-group .receivable-balance-select {
    width: 138px !important;
    flex-basis: 138px !important;
  }

  .receivable-primary-filters .receivable-date-filter {
    display: inline-flex !important;
    width: auto !important;
    flex: 0 0 auto !important;
  }

  .receivable-primary-filters .receivable-date-picker {
    width: 300px !important;
    min-width: 300px !important;
    flex: 0 0 300px !important;
  }

  .receivable-filter-group .receivable-text-filter > input,
  .receivable-filter-group .receivable-project-select > select,
  .receivable-filter-group .receivable-balance-select > select,
  .receivable-column-settings > button {
    width: 100% !important;
  }

  .receivable-filter-group > button,
  .receivable-more-filter-row > button,
  .receivable-column-settings {
    width: max-content !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }

  .receivable-filter-group > button,
  .receivable-column-settings > button {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  #systemView .toolbar,
  .property-toolbar,
  .task-filter-bar,
  .task-runs-toolbar,
  .monitor-toolbar-filters,
  .monitor-table-filters,
  .knowledge-toolbar,
  .knowledge-segment-toolbar,
  .finance-toolbar,
  .finance-filterbar {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  #systemView .toolbar > button,
  .property-toolbar > button,
  .task-filter-bar > button,
  .task-runs-toolbar > button,
  .monitor-toolbar-filters > button,
  .monitor-table-filters > button,
  .knowledge-toolbar > button,
  .knowledge-segment-toolbar > button,
  .finance-toolbar > button,
  .finance-filterbar > button {
    width: max-content !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .finance-toolbar > input:not([type="file"]):not([type="hidden"]),
  .finance-toolbar > select,
  .finance-filterbar > input,
  .finance-filterbar > select,
  .finance-search,
  .finance-meter-level,
  .finance-fee-park,
  .finance-charge-park,
  .finance-history-type {
    width: clamp(150px, 16vw, 220px) !important;
    min-width: 150px !important;
    flex: 0 0 clamp(150px, 16vw, 220px) !important;
  }

  .finance-fee-date-picker {
    width: 300px !important;
    min-width: 300px !important;
    flex: 0 0 300px !important;
  }

  .finance-toolbar .finance-task-meta,
  .finance-filterbar .finance-task-meta {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
  }
}

/* Wide desktop: let account and log tables use the complete workbench width.
   Notebook layouts intentionally keep their compact intrinsic table width. */
@media (min-width: 1501px) {
  .workbench.system-mode.system-data-mode #userList > .system-table-scroll,
  .workbench.system-mode.system-data-mode #logList > .system-table-scroll {
    width: auto;
  }

  .workbench.system-mode.system-data-mode #userList > .system-table-scroll > table,
  .workbench.system-mode.system-data-mode #logList > .system-table-scroll > table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  #userList th,
  #userList td,
  #logList th,
  #logList td {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #userList th:last-child,
  #userList td:last-child {
    width: 150px;
  }

  #userList th:nth-child(1),
  #userList td:nth-child(1) { width: 14%; }
  #userList th:nth-child(2),
  #userList td:nth-child(2) { width: 19%; }
  #userList th:nth-child(3),
  #userList td:nth-child(3) { width: 13%; }
  #userList th:nth-child(4),
  #userList td:nth-child(4) { width: 23%; }
  #userList th:nth-child(5),
  #userList td:nth-child(5) { width: 13%; }
  #userList th:nth-child(6),
  #userList td:nth-child(6) { width: 8%; }
}

/* Final handset layout: one full-width project/date row, two compact field
   columns, and label-sized actions. It also covers phones exposing a wider
   CSS viewport through a touch-first input device. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .receivable-primary-filters,
  .room-charge-filter-group,
  .self-service-work-order-filter-group,
  .receivable-more-filter-row,
  .property-service-type-board .receivable-filter-group {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .receivable-primary-filters > *,
  .room-charge-filter-group > *,
  .self-service-work-order-filter-group > *,
  .receivable-more-filter-row > *,
  .property-service-type-board .receivable-filter-group > * {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: initial !important;
  }

  .receivable-filter-group .receivable-project-select,
  .property-service-type-board .receivable-filter-group > .property-service-type-select:first-child,
  .receivable-primary-filters .receivable-date-filter {
    width: 100% !important;
    min-width: 0 !important;
    grid-column: 1 / -1 !important;
  }

  .receivable-primary-filters .receivable-date-filter {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .receivable-primary-filters .receivable-date-picker,
  .receivable-filter-group .receivable-text-filter,
  .receivable-filter-group .receivable-balance-select,
  .receivable-more-filter-row .receivable-text-filter {
    width: 100% !important;
    min-width: 0 !important;
  }

  .receivable-filter-group .receivable-text-filter > input,
  .receivable-filter-group .receivable-project-select > select,
  .receivable-filter-group .receivable-balance-select > select,
  .receivable-primary-filters .receivable-date-picker,
  .receivable-column-settings > button {
    width: 100% !important;
  }

  .receivable-filter-group > button,
  .receivable-more-filter-row > button,
  .receivable-column-settings {
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: start !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .receivable-column-settings > button {
    min-width: 0 !important;
  }

  #systemView .toolbar,
  .property-toolbar,
  .task-filter-bar,
  .task-runs-toolbar,
  .monitor-toolbar-filters,
  .monitor-table-filters,
  .knowledge-toolbar,
  .knowledge-segment-toolbar,
  .finance-toolbar,
  .finance-filterbar {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 10px !important;
  }

  #systemView .toolbar > *,
  .property-toolbar > *,
  .task-filter-bar > *,
  .task-runs-toolbar > *,
  .monitor-toolbar-filters > *,
  .monitor-table-filters > *,
  .knowledge-toolbar > *,
  .knowledge-segment-toolbar > *,
  .finance-toolbar > *,
  .finance-filterbar > * {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: initial !important;
  }

  #systemView .toolbar input,
  #systemView .toolbar select,
  .property-toolbar input,
  .task-filter-bar input,
  .task-filter-bar select,
  .task-runs-toolbar input,
  .task-runs-toolbar select,
  .monitor-toolbar-filters input,
  .monitor-toolbar-filters select,
  .monitor-table-filters input,
  .monitor-table-filters select,
  .knowledge-toolbar input,
  .knowledge-toolbar select,
  .knowledge-segment-toolbar input,
  .knowledge-segment-toolbar select,
  .finance-toolbar > input:not([type="file"]):not([type="hidden"]),
  .finance-toolbar > select,
  .finance-filterbar > input,
  .finance-filterbar > select,
  .finance-search,
  .finance-meter-level,
  .finance-fee-park,
  .finance-charge-park,
  .finance-history-type {
    width: 100% !important;
    min-width: 0 !important;
  }

  #systemView .toolbar > button,
  .property-toolbar > button,
  .task-filter-bar > button,
  .task-runs-toolbar > button,
  .monitor-toolbar-filters > button,
  .monitor-table-filters > button,
  .knowledge-toolbar > button,
  .knowledge-segment-toolbar > button,
  .finance-toolbar > button,
  .finance-filterbar > button {
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: start !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .finance-fee-date-picker,
  .finance-fee-park,
  .finance-charge-park,
  .finance-toolbar .finance-task-meta,
  .finance-filterbar .finance-task-meta,
  .monitor-endpoint-combobox,
  .monitor-toolbar > p {
    width: 100% !important;
    min-width: 0 !important;
    grid-column: 1 / -1 !important;
  }

  .finance-fee-date-picker > button,
  .finance-fee-park > button:not(#financeFeeParkClear):not(#financeOverProjectClear):not(#financeSewageProjectClear):not(.finance-project-clear),
  .finance-over-project > button:not(#financeOverProjectClear):not(#financeSewageProjectClear):not(.finance-project-clear),
  .finance-charge-park > button:not(#financeChargeParkClear),
  .finance-search > input {
    width: 100% !important;
  }

  .finance-fee-primary,
  .finance-charge-check {
    grid-column: 1 / -1;
  }

  .finance-charge-filterbar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
.tasks-board > * {
  min-width: 0;
}
.tasks-header,
.task-filter-bar,
.task-runs-toolbar,
.task-registry-notice {
  flex: 0 0 auto;
  flex-shrink: 0;
}
.tasks-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 54px; padding: 0 0 18px; border-bottom: 1px solid #e0e5eb; }
.tasks-header > div { display: flex; min-width: 0; flex: 1 1 auto; align-items: baseline; gap: 8px 12px; }
.tasks-header h2, .tasks-header p { margin: 0; }
.tasks-header h2 { flex: 0 0 auto; color: #172033; font-size: 21px; }
.tasks-header p { min-width: 0; flex: 1 1 auto; overflow: hidden; color: #788497; font-size: 13px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.tasks-header > button { min-height: 36px; padding: 7px 15px; background: var(--accent); }
.task-filter-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.tasks-header + .task-filter-bar { margin-top: 20px; }
.task-filter-bar input, .task-filter-bar select { min-height: 36px; padding: 7px 10px; border: 1px solid #d8e0e9; border-radius: 5px; background: #fff; color: #3b485a; }
.task-filter-bar input { width: 240px; }
.task-filter-bar select { width: 130px; min-width: 130px; flex: 0 0 130px; box-sizing: border-box; white-space: nowrap; }
.task-filter-bar button { min-height: 36px; padding: 7px 15px; flex: 0 0 auto; white-space: nowrap; }

#taskFilterReset,
#taskRegistryReset,
#taskRunsReset,
#financeOffsetRecordReset {
  border: 1px solid #e5ebf1;
  background: #eef4f6;
  color: #344054;
  box-shadow: none;
}

#taskFilterReset:hover,
#taskRegistryReset:hover,
#taskRunsReset:hover,
#financeOffsetRecordReset:hover {
  border-color: #d7e0e8;
  background: #e5edf1;
  color: #344054;
  box-shadow: none;
  filter: none;
}
.tasks-table-panel { overflow: auto; border: 1px solid #dce3ec; border-radius: 7px; background: #fff; }
.tasks-table-panel { max-height: 470px; }
.task-list-shell { display: flex; flex: 1 1 0; flex-direction: column; min-height: 220px; margin-top: 2px; overflow: hidden; border: 1px solid #dce3ec; border-radius: 7px; background: #fff; }
.task-list-shell .tasks-table-panel { flex: 1 1 auto; min-height: 0; max-height: none; border: 0; border-radius: 0; }
.task-list-shell .task-pagination { flex: 0 0 auto; min-height: 52px; padding: 0 12px; border-top: 1px solid #edf0f4; box-sizing: border-box; }
.tasks-table-panel table { width: 100%; min-width: 980px; border-collapse: collapse; }
.task-config-table table { min-width: 1540px; }
.task-registry-table table { min-width: 1280px; }
.tasks-table-panel th, .tasks-table-panel td { padding: 13px 15px; border-bottom: 1px solid #edf0f4; color: #3b485a; font-size: 13px; text-align: left; vertical-align: middle; }
.tasks-table-panel th { position: sticky; top: 0; z-index: 1; background: #f7f9fb; color: #687588; font-size: 12px; }
.tasks-table-panel td strong, .tasks-table-panel td small { display: block; }.tasks-table-panel td small { margin-top: 4px; color: #8a95a5; font-size: 11px; }
.tasks-table-panel code { display: block; margin-top: 5px; color: #526072; font-size: 12px; }.task-schedule-type { color: #6d42d8; font-weight: 600; }
.task-status { display: inline-block; min-height: 28px; padding: 4px 9px; border: 1px solid; border-radius: 4px; font-size: 12px; line-height: 18px; }.task-status.on { border-color: #b7e5aa; background: #f2fff0; color: #39842a; }.task-status.off { border-color: #d8e0e9; background: #f5f7fa; color: #788497; }.task-error { color: #b42318 !important; }
.task-actions { display: flex; gap: 6px; white-space: nowrap; }.task-actions button { min-height: 30px; padding: 4px 9px; font-size: 12px; }.tasks-empty { height: 180px; color: #8a95a5; text-align: center !important; }
.task-actions button:disabled, .task-actions button.is-disabled { border-color: #e1e4ea; background: #f3f4f6; color: #a0a7b2; cursor: not-allowed; opacity: 1; }
.task-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; width: 100%; min-height: 62px; color: #667085; font-size: 13px; }
.task-pagination select { width: 128px; min-height: 36px; padding: 7px 10px; border: 1px solid #d8e0e9; border-radius: 5px; background: #fff; color: #344054; }
.task-pagination button { min-width: 30px; min-height: 30px; padding: 4px 8px; border: 0; background: transparent; color: #6941c6; }
.task-pagination button:hover, .task-pagination button.active { border-radius: 4px; background: #f0e9ff; color: #6938ef; }
.task-pagination button.arrow { color: #98a2b3; font-size: 18px; }
.task-pagination button:disabled { cursor: not-allowed; opacity: .45; }
.task-pagination .ellipsis { color: #98a2b3; }
.tasks-loading, .tasks-error { display: grid; min-height: 300px; place-items: center; color: #788497; }.tasks-error { color: #b42318; }
.task-dialog, .task-runs-dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 24px 70px rgb(16 32 39 / 28%); }.task-dialog::backdrop, .task-runs-dialog::backdrop { background: rgb(16 32 39 / 38%); }
.task-form { display: grid; gap: 16px; padding: 22px; }.task-form header, .task-runs-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.task-form h3, .task-runs-dialog h3 { margin: 0; color: #172033; }.task-form header button, .task-runs-dialog header button { width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: #667085; font-size: 22px; }.task-form label { display: grid; gap: 7px; color: #526072; font-size: 13px; }.task-form select, .task-form input:not([type=checkbox]):not([type=radio]), .task-form textarea { min-height: 38px; padding: 8px 10px; border: 1px solid #d8e0e9; border-radius: 5px; background: #fff; }.task-form textarea { min-height: 104px; resize: vertical; color: #243244; font: 12px/1.55 Consolas, "Courier New", monospace; }.task-parameters-field small, .task-schedule-input small { color: #8a95a5; font-size: 11px; }.task-schedule-input { display: grid; gap: 5px; }.task-enabled-field { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; }.task-enabled-field input { width: auto; }.task-form footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }.task-form footer button { min-height: 36px; padding: 7px 15px; }.task-runs-dialog { width: min(680px, calc(100vw - 32px)); padding: 22px; }.task-runs-list { max-height: 420px; margin-top: 16px; overflow: auto; }.task-runs-list > div { display: grid; grid-template-columns: 54px 170px minmax(0, 1fr); gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid #edf0f4; }.task-run-badge { padding: 3px 6px; border-radius: 4px; font-size: 11px; text-align: center; }.task-run-badge.success { background: #f2fff0; color: #39842a; }.task-run-badge.failed { background: #fff2f3; color: #b42318; }.task-runs-list small { overflow: hidden; color: #788497; text-overflow: ellipsis; white-space: nowrap; }
.task-run-mode { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.task-run-mode legend { margin-bottom: 8px; color: #526072; font-size: 13px; }
.task-run-mode label { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border: 1px solid #d8e0e9; border-radius: 6px; cursor: pointer; }
.task-run-mode label:has(input:checked) { border-color: var(--accent); background: #f5f3ff; }
.task-run-mode input[type="radio"] { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.task-run-mode span, .task-run-mode strong, .task-run-mode small { display: block; }
.task-run-mode strong { color: #243044; font-size: 14px; }
.task-run-mode small { margin-top: 4px; color: #788497; font-size: 12px; line-height: 1.5; }
.task-full-range { display: grid; gap: 8px; margin-left: 38px; padding: 12px 14px; border: 1px solid #d8e0e9; border-radius: 6px; background: #f8fafc; }
.task-full-range > span { color: #526072; font-size: 13px; }
.task-full-range > small { margin: 0; color: #8a95a5; font-size: 11px; line-height: 1.5; }
.task-run-parameter-dialog { width: min(680px, calc(100vw - 32px)); overflow: visible; }
.task-month-range-picker { position: relative; min-width: 0; }
.task-month-range-picker > #taskMonthRangeTrigger { display: grid; grid-template-columns: 17px minmax(120px, 1fr) 14px minmax(120px, 1fr); width: 100%; min-height: 40px; align-items: center; gap: 8px; border: 1px solid #d8e0e9; border-radius: 5px; padding: 6px 12px; background: #fff; color: #475467; box-shadow: none; }
.task-month-range-picker > #taskMonthRangeTrigger:hover { border-color: #9b7be7; filter: none; }
.task-month-range-picker.open > #taskMonthRangeTrigger { border-color: #7c3aed; outline: 1px solid #ede7ff; }
.task-month-range-picker > #taskMonthRangeTrigger svg { width: 17px; height: 17px; color: #98a2b3; }
.task-month-range-picker > #taskMonthRangeTrigger span { overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.task-month-range-picker > #taskMonthRangeTrigger em { color: #667085; font-size: 13px; font-style: normal; text-align: center; }
.task-month-range-menu { position: absolute; top: calc(100% + 10px); left: 50%; z-index: 120; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(590px, calc(100vw - 64px)); overflow: hidden; border: 1px solid #e1e3e9; border-radius: 6px; background: #fff; box-shadow: 0 12px 30px rgb(44 38 61 / 20%); transform: translateX(-50%); }
.task-month-range-menu::before { position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; border-top: 1px solid #e1e3e9; border-left: 1px solid #e1e3e9; background: #fff; content: ""; transform: translateX(-50%) rotate(45deg); }
.task-month-panel { min-width: 0; padding: 14px 16px 16px; }
.task-month-panel + .task-month-panel { border-left: 1px solid #edf0f4; }
.task-month-panel > header { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; min-height: 32px; align-items: center; margin-bottom: 10px; }
.task-month-panel > header strong { color: #344054; font-size: 14px; text-align: center; }
.task-form .task-month-panel > header button { width: 30px; height: 30px; min-height: 30px; border: 0; border-radius: 5px; padding: 0; background: transparent; color: #667085; font-size: 20px; }
.task-form .task-month-panel > header button:hover { background: #f4efff; color: #7c3aed; filter: none; }
.task-form textarea[name="parameters"] { min-height: 148px; }
.task-form textarea[name="parameters"]::placeholder { color: #98a2b3; opacity: 1; }
.task-parameters-field { display: grid; gap: 7px; color: #526072; font-size: 13px; }
.task-parameters-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-parameters-heading label { display: block; }
.task-form .task-parameters-fill { width: auto; min-height: 28px; padding: 3px 9px; border: 1px solid #d8e0e9; border-radius: 5px; color: #526072; font-size: 12px; }
.task-form .task-parameters-fill:hover:not(:disabled) { border-color: #8b7bc8; background: #f7f4ff; color: #5b3db2; filter: none; }
.task-form .task-parameters-fill:disabled { cursor: not-allowed; opacity: .45; }

.workbench.property-service-type-mode .workbench-scroll { display: flex; min-height: 0; flex-direction: column; overflow-y: hidden; scrollbar-gutter: auto; background: #f3f5f9; }
.workbench.property-service-type-mode .topbar { min-height: 52px; flex: 0 0 auto; padding: 8px 0; box-sizing: border-box; }
.workbench.property-service-type-mode #propertyservicetypeView { display: block; min-height: 0; flex: 1 1 0; margin: -24px; background: #f3f4f7; }
.workbench.property-service-type-mode #propertyservicetypeContent { display: block; height: 100%; min-height: 0; padding: 0; }
.property-service-type-board { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.property-service-type-board .receivable-toolbar { flex: 0 0 auto; }
.property-service-type-board .receivable-table-shell { display: flex; flex: 1 1 0; min-height: 0; overflow: hidden; }
.property-service-type-board .receivable-table-scroll { flex: 1 1 0; min-height: 0; overflow: auto; }
.property-service-type-board .receivable-table-scroll th { position: sticky; top: 0; z-index: 2; }
.property-service-type-board .receivable-pagination { flex: 0 0 auto; }
.property-service-type-board .property-service-type-select { position: relative; width: 250px; flex: 0 0 250px; }
.property-service-type-board .property-service-type-select > select { width: 100%; min-height: 36px; padding: 7px 50px 7px 10px; border: 1px solid #d8dee8; border-radius: 5px; background: #fff; color: #344054; box-sizing: border-box; }
.property-service-type-board .property-service-type-select:not(.has-value) > select { color: #98a2b3; }
.property-service-type-board .property-service-type-select > select option { color: #344054; }
.property-service-type-board .property-service-type-select > button { position: absolute; top: 50%; right: 27px; display: none; width: 22px; min-width: 22px; min-height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #98a2b3; font-size: 18px; line-height: 22px; transform: translateY(-50%); }
.property-service-type-board .property-service-type-select.has-value > button { display: block; }
.property-service-type-board .property-service-type-select > button:hover { background: #eef2f6; color: #475467; box-shadow: none; filter: none; }
.task-run-parameter-dialog { width: min(640px, calc(100vw - 32px)); border-radius: 12px; box-shadow: 0 28px 80px rgb(16 32 39 / 30%); }
.task-run-parameter-dialog .task-form { gap: 20px; padding: 26px 28px 22px; }
.task-run-parameter-dialog .task-form header { padding-bottom: 4px; }
.task-run-parameter-dialog .task-form h3 { font-size: 18px; letter-spacing: -.01em; }
.task-run-parameter-dialog .task-form header button { border-radius: 6px; transition: background .15s ease, color .15s ease; }
.task-run-parameter-dialog .task-form header button:hover { background: #f2f4f7; color: #344054; }
.task-run-parameter-dialog .task-run-mode { gap: 12px; }
.task-run-parameter-dialog .task-run-mode legend { margin-bottom: 2px; font-weight: 600; color: #344054; }
.task-run-parameter-dialog .task-run-mode label { min-height: 64px; padding: 14px 16px; border-radius: 8px; background: #fbfdfd; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.task-run-parameter-dialog .task-run-mode label:has(input:checked) { box-shadow: 0 0 0 3px rgb(124 58 237 / 9%); }
.task-run-parameter-dialog .task-full-range { margin-left: 0; gap: 9px; padding: 14px 16px 13px; border-radius: 8px; background: #f8fafc; }
.task-run-parameter-dialog .task-full-range > span { font-weight: 600; color: #344054; }
.task-run-parameter-dialog .task-month-range-picker > #taskMonthRangeTrigger { min-height: 44px; border-radius: 7px; padding: 7px 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.task-run-parameter-dialog .task-month-range-picker > #taskMonthRangeTrigger:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(124 58 237 / 9%); }
.task-run-parameter-dialog .task-month-range-picker > #taskMonthRangeTrigger span { color: #344054; font-weight: 500; }
.task-run-parameter-dialog .task-month-range-picker > #taskMonthRangeTrigger em { color: #98a2b3; }
.task-run-parameter-dialog .task-form footer { margin-top: 2px; padding-top: 18px; border-top: 1px solid #edf0f4; }
.task-run-parameter-dialog .task-form footer button { min-width: 76px; border-radius: 7px; }
.task-run-parameter-dialog .task-form footer button[type="submit"] { min-width: 96px; box-shadow: 0 4px 10px rgb(124 58 237 / 18%); }
.self-service-work-order-actions { display: flex; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.self-service-work-order-actions .ghost { min-height: 28px; padding: 4px 9px; font-size: 12px; }
.self-service-work-order-actions .self-service-manual-reminder:disabled { cursor: not-allowed; border-color: #eaecf0; background: #f2f4f7; color: #98a2b3; opacity: 1; }
.self-service-work-order-table { width: 100%; }
.self-service-work-order-table.default-columns { table-layout: auto; }
.self-service-work-order-table.has-additional-columns { table-layout: auto; }
.self-service-work-order-table th,
.self-service-work-order-table td { min-width: 116px; white-space: nowrap; }
.self-service-work-order-table th:last-child,
.self-service-work-order-table td:last-child { min-width: 184px; }
.self-service-work-order-table.default-columns th:nth-last-child(3),
.self-service-work-order-table.default-columns td:nth-last-child(3) { width: 76px; }
.self-service-work-order-table.default-columns th:last-child,
.self-service-work-order-table.default-columns td:last-child { width: 166px; }
.self-service-work-order-service-type { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.self-service-work-order-board > #selfServiceWorkOrderExportBtn { display: block; width: max-content; margin: 8px 0 8px auto; }
.receivable-date-picker { width: 320px; min-width: 320px; flex: 0 0 320px; }
.receivable-date-picker > #receivableDateTrigger { grid-template-columns: 16px minmax(78px, 1fr) 12px minmax(78px, 1fr); gap: 4px; padding-left: 9px; padding-right: 26px; }
.receivable-column-settings > #receivableColumnTrigger, .receivable-column-settings > .room-charge-column-trigger, .receivable-column-settings > #selfServiceWorkOrderColumnTrigger { min-height: 36px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.self-service-work-order-column-settings { margin-left: 0; }
.self-service-manual-reminder-dialog { width: min(620px, calc(100vw - 32px)); border-radius: 10px; }
.self-service-manual-reminder-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; padding: 26px 28px 22px; }
.self-service-manual-reminder-form > header, .self-service-manual-reminder-form > footer, .self-service-manual-description { grid-column: 1 / -1; }
.self-service-manual-readonly { gap: 6px !important; }
.self-service-manual-readonly span { color: #667085; font-size: 13px; }
.self-service-manual-readonly strong { display: block; min-height: 38px; padding: 9px 11px; overflow: hidden; border: 1px solid #e4e7ec; border-radius: 6px; background: #f8fafc; color: #344054; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.self-service-manual-reminder-form textarea { min-height: 94px; font-family: inherit; font-size: 13px; }
@media (max-width: 640px) { .self-service-manual-reminder-form { grid-template-columns: 1fr; padding: 20px; } }
.task-month-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 6px; }
.task-month-grid > button { min-width: 0; min-height: 34px; border: 0; border-radius: 5px; padding: 6px 4px; background: transparent; color: #475467; font-size: 12px; box-shadow: none; }
.task-month-grid > button:hover { background: #f3efff; color: #7c3aed; filter: none; }
.task-month-grid > button.in-range { border-radius: 0; background: #f1eaff; color: #6d28d9; }
.task-month-grid > button.range-start, .task-month-grid > button.range-end { background: #7c3aed; color: #fff; font-weight: 700; }

@media (max-width: 720px) {
  .task-run-parameter-dialog { overflow: auto; }
  .task-full-range { margin-left: 0; }
  .task-month-range-menu { position: static; grid-template-columns: 1fr; width: 100%; margin-top: 10px; transform: none; }
  .task-month-panel + .task-month-panel { border-top: 1px solid #edf0f4; border-left: 0; }
}

.auth-input-field,
.auth-password-field {
  position: relative;
  display: block;
}

.auth-input-field input {
  padding-right: 46px;
}

/* Ã¤Â¿ÂÃ§ÂÂÃ¥ÂÂÃ¦ÂÂÃ§ÂÂ¼Ã§ÂÂÃ¦ÂÂÃ©ÂÂ®Ã§ÂÂÃ¥Â®ÂÃ¥ÂÂ¨Ã©Â¢ÂÃ§ÂÂÃ¯Â¼ÂÃ¤Â¸ÂÃ¦ÂÂ¹Ã¨Â§ÂÃ¥ÂÂÃ¤Â¼ÂÃ¦ÂÂ©Ã¥Â±ÂÃ¤Â¸ÂºÃ¥ÂÂÃ¦ÂÂÃ©ÂÂ®Ã©Â¢ÂÃ§ÂÂÃ£ÂÂ */
.auth-password-field input {
  padding-right: 46px;
}

.auth-password-field input {
  padding-right: 86px;
}

.auth-input-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  min-height: 0;
  transform: translateY(-50%);
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #98a2b3;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.auth-input-clear:hover {
  background: #eaecf0;
  color: #475467;
  filter: none;
}

.auth-input-clear:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 1px;
}

.auth-password-clear {
  right: 45px;
}

.auth-password-field input::-ms-reveal,
.auth-password-field input::-ms-clear {
  display: none;
}

.auth-password-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  width: 40px;
  height: calc(100% - 2px);
  min-height: 38px;
  place-items: center;
  padding: 0;
  border-radius: 0 5px 5px 0;
  background: transparent;
  color: #7a8699;
}

.auth-password-toggle:hover {
  background: #f3f6fa;
  color: #344054;
  filter: none;
}

.auth-password-toggle:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: -2px;
}

.auth-password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-strength {
  display: grid;
  grid-template-columns: max-content minmax(72px, 1fr) 18px;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  color: #667085;
  font-size: 12px;
}

.password-strength-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.password-strength-bars i {
  height: 4px;
  border-radius: 4px;
  background: #e4e7ec;
}

.password-strength strong { font-weight: 700; }
.password-strength[data-level="weak"] strong { color: #dc2626; }
.password-strength[data-level="medium"] strong { color: #d97706; }
.password-strength[data-level="strong"] strong { color: #15803d; }
.password-strength[data-level="weak"] .password-strength-bars i:nth-child(1) { background: #ef4444; }
.password-strength[data-level="medium"] .password-strength-bars i:nth-child(-n+2) { background: #f59e0b; }
.password-strength[data-level="strong"] .password-strength-bars i { background: #22c55e; }

.password-strength-hint {
  margin: 6px 0 0;
  color: #b42318;
  font-size: 12px;
  line-height: 1.5;
}

.password-strength-hint code,
.password-same-hint code {
  padding: 0 4px;
  border-radius: 4px;
  background: #fef3f2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.password-same-hint {
  margin: 6px 0 0;
  color: #b42318;
  font-size: 12px;
  line-height: 1.5;
}

#registerPasswordStrength {
  width: calc(50% - 6px);
  margin-top: -4px;
}

.user-password-field input { padding-right: 46px; }
#userPasswordStrength { margin-top: 6px; }

@media (max-width: 640px) {
  #registerPasswordStrength { width: 100%; }
}

.monitor-charts.is-loading {
  opacity: .58;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.monitor-action {
  min-width: 142px;
  max-width: 190px;
  overflow: hidden;
  color: #475467;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-sort-column {
  white-space: nowrap;
}

.monitor-sort-button {
  display: inline-flex;
  min-height: 0;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
}

.monitor-sort-button span {
  color: #98a2b3;
  font-size: 10px;
  line-height: 1;
}

.monitor-sort-button:hover,
.monitor-sort-button.active {
  color: #7c3aed;
  filter: none;
}

.monitor-sort-button.active span {
  color: #7c3aed;
}

.workbench.system-mode .topbar {
  display: none;
}

.task-runs-toolbar { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.task-runs-toolbar input, .task-runs-toolbar select { min-height: 36px; padding: 7px 10px; border: 1px solid #d8e0e9; border-radius: 5px; background: #fff; color: #3b485a; }
.task-runs-toolbar input { width: 240px; flex: 0 0 240px; box-sizing: border-box; }
.task-runs-toolbar select { width: 130px; min-width: 130px; flex: 0 0 130px; box-sizing: border-box; white-space: nowrap; }
.task-runs-toolbar button { min-height: 36px; padding: 7px 15px; flex: 0 0 auto; white-space: nowrap; }
.task-api-metrics { margin: 0 0 16px; border: 1px solid #dce3ec; border-radius: 7px; background: #fff; overflow: hidden; }
.task-api-metrics > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #edf0f4; color: #344054; }
.task-api-metrics > header span { color: #98a2b3; font-size: 12px; }
.task-api-metrics-table { overflow-x: auto; }
.task-api-metrics table { width: 100%; min-width: 820px; border-collapse: collapse; }
.task-api-metrics th, .task-api-metrics td { height: 42px; padding: 8px 12px; border-bottom: 1px solid #edf0f4; color: #475467; font-size: 12px; text-align: left; white-space: nowrap; }
.task-api-metrics th { background: #f8fafc; color: #667085; font-weight: 700; }
.task-api-metrics tbody tr:last-child td { border-bottom: 0; }
.task-api-metric-success { color: #248a3d !important; }
.task-api-metric-failure { color: #d92d20 !important; }
.task-runs-table table { min-width: 960px; }
.task-runs-table td { height: 54px; }
.task-run-badge.running { background: #fff8e6; color: #a15c00; }
.task-run-badge.partial { background: #fff8e6; color: #a15c00; }
.task-run-badge.pending { background: #fff4e5; color: #b54708; }
.task-run-detail { display: block; max-width: 330px; overflow: hidden; color: #526072; text-overflow: ellipsis; white-space: nowrap; }
.task-registry-notice { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; padding: 11px 14px; border: 1px solid #cfe0ef; border-radius: 6px; background: #f5faff; color: #526072; font-size: 13px; }
.task-registry-notice strong { color: #3155a6; }
.task-registry-table { max-height: none; }
.task-registry-table code { display: inline; margin: 0; padding: 3px 6px; border-radius: 4px; background: #f2f4f7; color: #344054; }
.task-runtime-status { display: inline-block; padding: 4px 8px; border: 1px solid; border-radius: 4px; font-size: 12px; }
.task-runtime-status.ready { border-color: #b7e5aa; background: #f2fff0; color: #39842a; }
.task-runtime-status.missing { border-color: #f5c2c7; background: #fff2f3; color: #b42318; }
.task-actions button.danger { color: #b42318; }

/* Third-party API observability dashboard */
.monitor-board { padding: 2px 0 28px; }
.monitor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 0 14px; }.monitor-toolbar p { margin: 0; color: #667085; font-size: 13px; }
.monitor-toolbar-filters { display: flex; align-items: end; gap: 10px; }.monitor-toolbar label { display: grid; flex: 0 0 auto; gap: 5px; color: #667085; font-size: 12px; }.monitor-toolbar select { height: 36px; min-width: 112px; box-sizing: border-box; padding: 0 28px 0 10px; border: 1px solid #d8e0e9; border-radius: 6px; background: #fff; color: #344054; }
.monitor-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.monitor-kpi { position: relative; display: grid; min-height: 104px; gap: 6px; padding: 16px 18px; overflow: hidden; border: 1px solid #e6e9f0; border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgb(16 24 40 / 4%); }
.monitor-kpi::after { position: absolute; top: 0; right: 0; width: 54px; height: 4px; background: #7c3aed; content: ""; }
.monitor-kpi.green::after { background: #16a34a; }.monitor-kpi.blue::after { background: #2563eb; }.monitor-kpi.orange::after { background: #f97316; }
.monitor-kpi > span { color: #667085; font-size: 13px; }.monitor-kpi strong { color: #172033; font-size: 25px; line-height: 1.1; }.monitor-kpi small { overflow: hidden; color: #98a2b3; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.monitor-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.monitor-chart-card, .monitor-table-card { border: 1px solid #e6e9f0; border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgb(16 24 40 / 4%); }
.monitor-chart-card { position: relative; min-width: 0; padding: 16px; }.monitor-chart-card header, .monitor-table-card > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.monitor-chart-card h3, .monitor-table-card h3 { margin: 0; color: #344054; font-size: 14px; }.monitor-chart-card p, .monitor-table-card p { margin: 5px 0 0; color: #98a2b3; font-size: 12px; }
.monitor-table-filters { display: flex; flex: 0 0 auto; align-items: end; gap: 10px; }.monitor-table-filters label, .monitor-filter-field { display: grid; gap: 5px; color: #667085; font-size: 12px; }.monitor-endpoint-combobox { position: relative; width: 300px; }.monitor-table-filters input, .monitor-table-filters select { box-sizing: border-box; width: 260px; height: 36px; padding: 0 30px 0 10px; border: 1px solid #d8e0e9; border-radius: 6px; outline: none; background: #fff; color: #344054; font-size: 13px; }.monitor-endpoint-combobox input { width: 100%; padding-right: 38px; }.monitor-table-filters select { width: 120px; }.monitor-table-filters input:focus, .monitor-table-filters select:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgb(124 58 237 / 12%); }.monitor-endpoint-toggle { position: absolute; top: 0; right: 0; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 0 6px 6px 0; background: transparent; color: #344054; font-size: 15px; line-height: 1; }.monitor-endpoint-toggle:hover { background: #f3edff; color: #6d28d9; }.monitor-endpoint-options { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: 100%; max-height: 300px; overflow-y: auto; border: 1px solid #d8e0e9; border-radius: 6px; background: #fff; box-shadow: 0 10px 24px rgb(16 24 40 / 16%); }.monitor-endpoint-option { display: grid; width: 100%; gap: 3px; padding: 9px 11px; overflow: hidden; border: 0; border-bottom: 1px solid #f0f2f5; background: #fff; color: #344054; text-align: left; }.monitor-endpoint-option:hover { background: #f5f3ff; }.monitor-endpoint-option strong, .monitor-endpoint-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.monitor-endpoint-option strong { font-size: 12px; font-weight: 600; }.monitor-endpoint-option small { color: #98a2b3; font-size: 11px; }.monitor-endpoint-empty { padding: 18px 12px; color: #98a2b3; font-size: 12px; text-align: center; }
.monitor-chart-card header > span { color: #475467; font-size: 13px; font-weight: 700; }.monitor-chart-card svg { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.monitor-chart-grid line { stroke: #edf0f4; stroke-width: 1; }.monitor-chart-grid text, .monitor-chart-x { fill: #98a2b3; font-size: 10px; }.monitor-chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }.monitor-chart-area { opacity: .09; }.monitor-chart-empty { fill: #98a2b3; font-size: 12px; }
.monitor-chart-hover-marker { pointer-events: none; }.monitor-chart-hover-marker line { stroke: #98a2b3; stroke-dasharray: 3 3; stroke-width: 1; }.monitor-chart-hover-marker circle { stroke: #fff; stroke-width: 2; }.monitor-chart-tooltip { position: fixed; z-index: 100; max-width: min(280px, calc(100vw - 16px)); padding: 10px 12px; border: 1px solid #d8e0e9; border-radius: 6px; background: #fff; box-shadow: 0 8px 22px rgb(16 24 40 / 16%); color: #344054; font-size: 13px; line-height: 1.3; pointer-events: none; white-space: nowrap; }
.monitor-table-card { margin-top: 14px; overflow: hidden; }.monitor-table-card > header { padding: 16px 18px; border-bottom: 1px solid #edf0f4; }.monitor-table-wrap { overflow: auto; max-height: calc(100vh - 500px); min-height: 190px; }
.monitor-table-card table { width: 100%; min-width: 1180px; border-collapse: collapse; }.monitor-table-card th, .monitor-table-card td { padding: 11px 14px; border-bottom: 1px solid #edf0f4; color: #475467; font-size: 12px; text-align: left; white-space: nowrap; }.monitor-table-card th { position: sticky; top: 0; z-index: 1; background: #f8fafc; color: #667085; font-weight: 700; }.monitor-table-card tbody tr:hover { background: #fafaff; }.monitor-table-card tbody tr:last-child td { border-bottom: 0; }
.monitor-endpoint strong, .monitor-endpoint small { display: block; }.monitor-endpoint strong { color: #344054; font-weight: 600; }.monitor-endpoint small { max-width: 170px; margin-top: 3px; overflow: hidden; color: #98a2b3; text-overflow: ellipsis; }.monitor-success { color: #16a34a !important; }.monitor-failure { color: #dc2626 !important; }
.monitor-platform { display: inline-flex; align-items: center; min-width: 52px; height: 24px; padding: 0 8px; border-radius: 5px; font-size: 12px; font-weight: 600; justify-content: center; }.monitor-platform.property { background: #eef4ff; color: #2d5eb4; }.monitor-platform.dify { background: #f3edff; color: #6d28d9; }
.monitor-pagination { flex: 0 0 auto; min-height: 58px; padding: 0 16px; border-top: 1px solid #edf0f4; color: #667085; font-size: 12px; }.monitor-pagination select { width: 128px; min-width: 128px; flex: 0 0 128px; height: 34px; padding: 0 26px 0 10px; border: 1px solid #d8e0e9; border-radius: 6px; background: #fff; color: #344054; }.monitor-pagination button { min-width: 30px; height: 32px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: #344054; }.monitor-pagination button:hover:not(:disabled) { background: #f1ebff; color: #6d28d9; }.monitor-pagination button.active { background: #ede9fe; color: #6d28d9; font-weight: 700; }.monitor-pagination button.arrow { color: #98a2b3; font-size: 18px; }.monitor-pagination button:disabled { cursor: not-allowed; opacity: .45; }.monitor-pagination .ellipsis { padding: 0 3px; color: #98a2b3; }

@media (max-width: 1240px) { .monitor-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }.monitor-charts { grid-template-columns: 1fr; }.monitor-chart-card svg { max-height: 210px; } }
@media (max-width: 720px) { .monitor-toolbar { align-items: stretch; flex-direction: column; }.monitor-toolbar-filters, .monitor-table-filters { width: 100%; }.monitor-toolbar label, .monitor-table-filters label, .monitor-filter-field { flex: 1; width: 100%; }.monitor-toolbar select, .monitor-table-filters input, .monitor-table-filters select, .monitor-endpoint-combobox { width: 100%; }.monitor-table-card > header { align-items: stretch; flex-direction: column; }.monitor-kpis { grid-template-columns: 1fr; } }

.monitor-charts.feedback-trend { grid-template-columns: 1fr; }
.feedback-table-card.monitor-table-card { overflow: visible; }
.feedback-table-card > header { overflow: visible; align-items: center; }
.feedback-table-card .monitor-table-filters { align-items: center; flex-wrap: wrap; }
.feedback-table-card .monitor-table-filters > select { width: 148px; min-width: 148px; }
.feedback-table-card .monitor-table-filters > #feedbackProductFilter { width: 280px; min-width: 280px; max-width: min(360px, 42vw); }
.feedback-table-card .receivable-date-picker > #feedbackDateTrigger {
  display: grid;
  grid-template-columns: 16px minmax(78px, 1fr) 12px minmax(78px, 1fr);
  width: 100%;
  height: 36px;
  min-height: 36px;
  align-items: center;
  gap: 4px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  padding: 5px 26px 5px 9px;
  background: #fff;
  color: #596273;
  box-shadow: none;
}
.feedback-table-card .receivable-date-picker > #feedbackDateTrigger:hover { border-color: #9b7be7; filter: none; }
.feedback-table-card .receivable-date-picker.selected > #feedbackDateTrigger,
.feedback-table-card .receivable-date-picker.open > #feedbackDateTrigger { border-color: #7c3aed; outline: 1px solid #ede7ff; }
.feedback-table-card .receivable-date-picker > #feedbackDateClear {
  position: absolute;
  top: 9px;
  right: 8px;
  z-index: 3;
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #a2a8b3;
  font-size: 14px;
  line-height: 18px;
}
.feedback-table-card .receivable-date-picker > #feedbackDateClear:hover { background: #f0ecfa; color: #7c3aed; filter: none; }
.feedback-table-card .receivable-date-menu {
  left: auto;
  right: 0;
  transform: none;
}
.feedback-table-card .receivable-date-menu::before {
  left: var(--feedback-date-arrow, 28px);
  transform: translateX(-50%) rotate(45deg);
}
#feedbackCalendars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feedback-table-card table { min-width: 720px; }
#feedbackSummaryCard table { min-width: 880px; }
.feedback-product-table.monitor-table-card { margin-top: 0; }
#feedbackproductContent.monitor-board {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 168px);
}
.feedback-product-shell.task-list-shell {
  flex: 1 1 auto;
  min-height: 280px;
  margin-top: 0;
}
.feedback-product-shell .tasks-table-panel table { min-width: 720px; }
.feedback-table-card > .task-pagination {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 16px;
  border-top: 1px solid #edf0f4;
  box-sizing: border-box;
}
.feedback-table-card-compact .monitor-table-wrap {
  min-height: 120px;
  max-height: min(280px, calc(100vh - 560px));
}
.feedback-toolbar-actions { display: flex; gap: 8px; }
.feedback-muted { display: block; margin-top: 4px; color: #98a2b3; font-size: 12px; font-weight: 400; }
.feedback-clip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.feedback-source { display: inline-flex; min-width: 52px; height: 24px; padding: 0 8px; border-radius: 5px; font-size: 12px; font-weight: 600; align-items: center; justify-content: center; }
.feedback-source.internal { background: #eef4ff; color: #2d5eb4; }
.feedback-source.wjx { background: #f3edff; color: #6d28d9; }
.feedback-row-actions { display: flex; gap: 6px; }
.feedback-dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 10px; }
.feedback-dialog.feedback-form-dialog-wjx {
  width: min(800px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  overflow: hidden;
  box-sizing: border-box;
}
.feedback-form-dialog-wjx .feedback-dialog-form {
  max-height: calc(100dvh - 24px);
  overflow: auto;
  box-sizing: border-box;
}
.feedback-wjx-embed { display: grid; gap: 8px; min-width: 0; }
.feedback-wjx-embed > .feedback-muted { margin: 0; }
.feedback-wjx-frame { display: block; width: 100%; height: 420px; border: 1px solid #edf0f4; border-radius: 8px; background: #fff; }
/* Ã§Â¬ÂÃ¨Â®Â°Ã¦ÂÂ¬Ã¨Â¾ÂÃ§ÂÂ®Ã¯Â¼ÂÃ¥ÂÂ»Ã¦ÂÂÃ©Â¡ÂµÃ©ÂÂ¢Ã¦ÂÂÃ¥Â¤ÂÃ¥Â±ÂÃ¦Â»ÂÃ¥ÂÂ¨Ã¯Â¼ÂÃ©ÂÂ®Ã¥ÂÂ·Ã©ÂÂÃ¥ÂÂ¶Ã¥ÂÂ¨Ã¤Â¸Â­Ã©ÂÂ´Ã¯Â¼ÂÃ©ÂÂ¿Ã¥ÂÂÃ§ÂÂÃ¤Â½ÂÃ¥ÂÂ³Ã©ÂÂ­Ã¦ÂÂÃ©ÂÂ® */
@media (min-width: 769px) and (max-width: 1500px) {
  body:has(.feedback-form-dialog-wjx[open]) { overflow: hidden; }
  body:has(.feedback-form-dialog-wjx[open]) .workbench-scroll {
    overflow: hidden;
    scrollbar-gutter: auto;
  }
  .feedback-form-dialog-wjx .feedback-dialog-form {
    display: flex;
    height: min(680px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }
  .feedback-form-dialog-wjx .feedback-dialog-form > header,
  .feedback-form-dialog-wjx .feedback-product-row,
  .feedback-form-dialog-wjx .dialog-actions {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    background: #fff;
  }
  .feedback-form-dialog-wjx #feedbackFormBody,
  .feedback-form-dialog-wjx .feedback-wjx-embed {
    position: relative;
    z-index: 0;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }
  .feedback-form-dialog-wjx .feedback-wjx-embed {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .feedback-form-dialog-wjx .feedback-wjx-frame {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
  }
}
.feedback-dialog::backdrop { background: rgb(16 32 39 / 38%); }
.feedback-qr-dialog { width: min(420px, calc(100vw - 32px)); }
.feedback-qr-preview { justify-items: center; text-align: center; }
.feedback-qr-preview strong { font-size: 16px; color: #1d2939; }
.feedback-qr-preview img { width: 280px; height: 280px; padding: 14px; background: #fff; border: 1px solid #edf0f4; border-radius: 12px; image-rendering: pixelated; }
.feedback-qr-preview .feedback-muted { margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.feedback-dialog-form { display: grid; gap: 14px; padding: 22px; }
.feedback-dialog-form header { display: flex; align-items: center; justify-content: space-between; }
.feedback-dialog-form h2 { margin: 0; font-size: 18px; }
.feedback-product-row { display: flex; align-items: flex-end; gap: 8px; }
.feedback-product-row > label { flex: 1 1 auto; min-width: 0; }
.feedback-product-row > [data-feedback-add-product] { flex: 0 0 auto; min-height: 38px; white-space: nowrap; }
.feedback-rating { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid #edf0f4; border-radius: 8px; }
.feedback-rating legend { padding: 0 4px; color: #526072; font-size: 13px; }
.feedback-enabled { display: flex; align-items: center; gap: 8px; }
.feedback-detail { display: grid; grid-template-columns: 88px 1fr; gap: 8px 12px; margin: 0; }
.feedback-detail dt { color: #667085; }
.feedback-detail dd { margin: 0; color: #344054; white-space: pre-wrap; }

.workbench.invest-mode .invest-board {
  min-height: calc(100vh - 64px);
  margin: -24px -24px -24px;
  border-top: 0;
}

.workbench.system-mode #systemView {
  min-height: calc(100vh - 64px);
  margin: -24px -24px -24px;
  background: #f3f5f9;
  display: block;
}

.workbench.system-mode #systemView > .tab-panel {
  display: block;
}

.workbench.system-mode #systemView .toolbar {
  min-height: 88px;
  padding: 0 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.workbench.system-mode #systemView .table-wrap {
  margin: 26px 28px;
}

.workbench.system-mode.system-data-mode .workbench-scroll {
  overflow-y: hidden;
  scrollbar-gutter: auto;
}

.workbench.system-mode.system-data-mode #systemView {
  height: calc(100vh - 64px);
  min-height: 0;
}

.workbench.system-mode.system-data-mode #accountPanel:not(.hidden),
.workbench.system-mode.system-data-mode #logPanel:not(.hidden) {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.workbench.system-mode.system-data-mode #accountPanel .toolbar,
.workbench.system-mode.system-data-mode #logPanel .toolbar {
  flex: 0 0 auto;
}

.workbench.system-mode.system-data-mode #userList,
.workbench.system-mode.system-data-mode #logList {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.system-table-scroll {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
}

.system-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel);
}

.workbench.system-mode.system-data-mode #userList > .pagination,
.workbench.system-mode.system-data-mode #logList > .pagination {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
}

.workbench.system-mode.system-action-mode .workbench-scroll {
  overflow-y: hidden;
  scrollbar-gutter: auto;
}

.workbench.system-mode.system-action-mode #systemView {
  height: calc(100vh - 64px);
  min-height: 0;
}

.workbench.system-mode.system-action-mode #permissionPanel:not(.hidden),
.workbench.system-mode.system-action-mode #menuPanel:not(.hidden) {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.workbench.system-mode.system-action-mode #permissionList {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.workbench.system-mode.system-action-mode #permissionList .permission-toolbar,
.workbench.system-mode.system-action-mode #menuPanel > .toolbar {
  flex: 0 0 auto;
}

.workbench.system-mode.system-action-mode #permissionList .permission-grid {
  min-height: 0;
  flex: 1 1 auto;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.workbench.system-mode.system-action-mode #menuList {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
}

.workbench.system-mode #permissionPanel {
  padding: 28px 30px 40px;
  background: #f4f7fb;
}

#accountPanel > .toolbar,
#logPanel > .toolbar {
  min-height: 56px;
  padding: 0 18px;
}

#accountPanel > #userList.table-wrap,
#logPanel > #logList.table-wrap {
  margin: 12px 18px;
}

.workbench.system-mode #permissionPanel {
  padding: 12px 18px 18px;
}

.workbench.system-mode #permissionPanel .permission-list {
  gap: 12px;
}

.module-placeholder {
  display: grid;
  gap: 18px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.external-page-frame {
  width: 100%;
  min-height: calc(100vh - 180px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.workbench.pipeline-mode .topbar { display: none; }
.app.pipeline-mode {
  grid-template-columns: minmax(0, 1fr);
  position: relative;
}
.app.pipeline-mode > .sidebar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 60;
  display: flex;
  width: 244px;
  height: 64px;
  min-height: 64px;
}
.app.pipeline-mode > .sidebar > nav,
.app.pipeline-mode > .sidebar > .user-box {
  display: none;
}
.app.pipeline-mode .module-nav {
  padding-left: 268px;
}
.app.pipeline-mode.sidebar-collapsed > .sidebar {
  width: 78px;
}
.app.pipeline-mode.sidebar-collapsed .module-nav {
  padding-left: 102px;
}
.workbench.pipeline-mode #difyView {
  display: block;
  min-height: calc(100vh - 64px);
  margin: -24px;
  overflow: hidden;
  background: #f3f5f9;
}
.dify-platform-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 64px);
  min-height: 640px;
  border: 0;
  background: #f3f5f9;
}

.module-placeholder h2,
.module-placeholder p {
  margin: 0;
}

.module-placeholder p {
  color: var(--muted);
}

.permission-list {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
}

.permission-toolbar {
  display: flex;
  justify-content: flex-end;
  min-height: 38px;
}

.permission-toolbar button {
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  box-shadow: 0 3px 10px rgb(124 58 237 / 16%);
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.permission-toolbar button:hover {
  background: #6d28d9;
  box-shadow: 0 6px 16px rgb(124 58 237 / 22%);
  filter: none;
  transform: translateY(-1px);
}

.menu-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.menu-group + .menu-group {
  margin-top: 16px;
}

.menu-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.menu-group-header > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-group-header small {
  color: var(--muted);
}

.menu-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.menu-line-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: #667085;
  vertical-align: middle;
}

.menu-line-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-group-collapse,
.menu-move {
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  background: transparent;
  color: #64748b;
}

.menu-group-collapse:hover,
.menu-move:hover {
  background: #ede9fe;
  color: var(--nav-purple);
  filter: none;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

@media (max-width: 1400px) {
  .permission-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.permission-card {
  --role-accent: #3155a6;
  position: relative;
  min-width: 0;
  min-height: 300px;
  padding: 20px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid #dce4ee;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.permission-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--role-accent);
}

.permission-card:nth-child(3n) {
  --role-accent: #7c3aed;
}

.permission-card:nth-child(4n) {
  --role-accent: #b7791f;
}

.permission-card[data-role-code="admin"] {
  --role-accent: #0f766e;
  border-color: #b9d9d4;
  box-shadow: 0 4px 14px rgb(15 118 110 / 9%);
}

.permission-card:hover {
  border-color: color-mix(in srgb, var(--role-accent) 36%, #dce4ee);
  box-shadow: 0 10px 28px rgb(15 23 42 / 9%);
  transform: translateY(-2px);
}

.permission-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

.permission-card-head .row-actions {
  display: flex;
  width: 100%;
  gap: 6px;
  margin: 0;
  flex-wrap: nowrap;
}

.permission-card .permission-card-head button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.permission-card .permission-card-head .bind-role-button {
  background: #f0f5ff;
  border-color: #d8e3fa;
  color: #3155a6;
}

.permission-card .permission-card-head .edit-role-button {
  background: #3155a6;
  color: #fff;
}

.permission-card .permission-card-head .delete-role-button {
  margin-left: auto;
  background: #fff;
  border-color: #eadde0;
  color: #a23b4a;
}

.permission-card .permission-card-head .bind-role-button:hover {
  background: #e3ecff;
  border-color: #b9cdf5;
  filter: none;
}

.permission-card .permission-card-head .edit-role-button:hover {
  background: #274789;
  filter: none;
}

.permission-card .permission-card-head .delete-role-button:hover {
  background: #fff3f4;
  border-color: #e2bfc5;
  filter: none;
}

.permission-card h3,
.permission-card p {
  margin: 0;
}

.permission-card h3 {
  min-width: 0;
  color: #172033;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.permission-card .role-code {
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid #e6ebf1;
  border-radius: 6px;
  background: #f8fafc;
  color: #64748b;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.role-menu-summary {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #e4eaf1;
  color: #526074;
  font-size: 13px;
  line-height: 1.65;
}

.role-menu-group {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px dashed #e4e9ef;
}

.role-menu-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.role-menu-primary,
.role-menu-secondary {
  min-width: 0;
  overflow-wrap: anywhere;
}

.role-menu-summary strong {
  color: #25324a;
  font-weight: 700;
}

.role-menu-summary.admin-fixed-permissions {
  min-height: 92px;
  padding: 18px;
  border: 1px solid #cfe4e0;
  border-radius: 6px;
  background: #f2faf8;
  color: #38655f;
  place-content: center;
  text-align: center;
}

.role-menu-summary.empty {
  min-height: 92px;
  place-items: center;
  padding: 22px 12px;
  border: 1px dashed #d7dee8;
  border-radius: 6px;
  background: #fafbfd;
  color: #8490a2;
}

.permission-card p {
  color: var(--muted);
  font-size: 13px;
}

.permission-card :is(button, a):focus-visible,
.permission-toolbar button:focus-visible {
  outline: 3px solid rgb(49 85 166 / 24%);
  outline-offset: 2px;
}

.graph-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  min-height: 190px;
  color: var(--nav-purple);
}

.graph-preview span {
  padding: 12px 18px;
  border: 1px solid #d8c7ff;
  border-radius: 999px;
  background: #faf7ff;
  font-weight: 800;
}

.graph-preview i {
  width: 36px;
  height: 1px;
  background: #b9a0f5;
}

/* Ã§ÂÂ¥Ã¨Â¯ÂÃ¥ÂÂ¾Ã¨Â°Â±Ã¯Â¼ÂÃ¤Â¼ÂÃ¤Â¸ÂÃ¨ÂÂÃ§ÂÂ¹Ã£ÂÂÃ¥ÂÂ³Ã§Â³Â»Ã¥ÂÂ¯Ã¨Â§ÂÃ¥ÂÂÃ¤Â¸ÂÃ©ÂÂÃ©ÂÂÃ¤Â»Â»Ã¥ÂÂ¡Ã£ÂÂ */
.workbench.graph-mode .topbar { display: none; }
.workbench.graph-mode #graphView { display: block; min-height: calc(100vh - 64px); margin: -24px; background: #f3f5f8; }
.workbench.graph-mode #graphContent { display: block; min-height: calc(100vh - 64px); padding: 0; border: 0; border-radius: 0; background: transparent; }
.graph-board { padding: 0 24px 36px; }
.graph-board-head { display: flex; align-items: center; min-height: 54px; margin: 0 -24px; padding: 0 28px; border-bottom: 1px solid #e1e5eb; background: #fff; }
.graph-board-head > div { display: flex; min-width: 0; flex: 1 1 auto; align-items: baseline; gap: 8px 12px; }
.graph-board-head h2, .graph-board-head p { margin: 0; }
.graph-board-head h2 { flex: 0 0 auto; color: #172033; font-size: 20px; }
.graph-board-head p { min-width: 0; flex: 1 1 auto; overflow: hidden; color: #7b8494; font-size: 13px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.graph-tabs { display: flex; gap: 12px; margin-top: 20px; border-bottom: 1px solid #dfe4eb; }
.graph-tabs button { min-height: 44px; padding: 8px 4px 12px; border-radius: 0; background: transparent; color: #344054; }
.graph-tabs button.active { border-bottom: 2px solid #7c3aed; color: #7c3aed; }
.graph-visual-panel, .graph-data-panel { margin-top: 16px; }
.graph-controls { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 14px; border-radius: 7px 7px 0 0; background: #fff; border: 1px solid #dfe5ed; }
.graph-controls > button:first-child { background: #7c3aed; }
.graph-controls { background: #1d293d; border-color: #1d293d; color: #dbe4f3; }
.graph-controls select, .graph-depth select, .graph-search input { border-color: #cbd5e1; background: #fff; color: #24324a; }
.graph-depth { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: #b8c5d8; font-size: 12px; }
.graph-depth select { width: 52px; padding: 7px 5px; }
.graph-relations { display: inline-flex; flex-wrap: nowrap; gap: 0; }
.graph-relations button { min-height: 30px; padding: 5px 10px; border: 1px solid #cbd5e1; border-left-width: 0; border-radius: 0; background: #fff; color: #344054; font-size: 12px; white-space: nowrap; }
.graph-relations button:first-child { border-left-width: 1px; border-radius: 4px 0 0 4px; }
.graph-relations button:last-child { border-radius: 0 4px 4px 0; }
.graph-relations button.active { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.graph-controls select { width: 150px; }
.graph-search { display: flex; flex: 1; max-width: 420px; }
.graph-search input { border-radius: 6px 0 0 6px; }
.graph-search button { border-radius: 0 6px 6px 0; }
.graph-canvas { position: relative; min-height: 620px; overflow: hidden; border: 1px solid #0f172a; border-top: 0; border-radius: 0 0 7px 7px; background: #0d1629; }
.graph-canvas svg { display: block; width: 100%; height: min(620px, calc(100vh - 260px)); min-height: 520px; }
.graph-edge line { stroke: #63789b; stroke-width: 1.3; }
.graph-edge text { fill: #b7c4d9; font-size: 10px; paint-order: stroke; stroke: #0d1629; stroke-width: 3px; }
#graphArrow path { fill: #8392aa; }
.graph-node { cursor: pointer; }
.graph-node circle { fill: #7c3aed; stroke: #fff; stroke-width: 3px; filter: drop-shadow(0 3px 4px rgb(41 50 65 / 18%)); transition: transform 150ms ease; }
.graph-node:hover circle { transform: scale(1.15); }
.graph-node text { fill: #e5edf8; font-size: 11px; font-weight: 700; paint-order: stroke; stroke: #0d1629; stroke-width: 4px; }
.graph-node-park circle { fill: #f59e0b; }
.graph-node-enterprise circle { fill: #7c3aed; }
.graph-node-related_enterprise circle { fill: #ef5b63; }
.graph-node-industry circle { fill: #22a67a; }
.graph-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #98a2b3; pointer-events: none; }
.graph-actionbar { display: flex; gap: 10px; min-height: 62px; align-items: center; }
.graph-actionbar > button:first-child { background: #7c3aed; }
.graph-table-wrap { overflow: auto; border: 1px solid #dfe5ed; border-radius: 7px; background: #fff; }
.graph-table-wrap table { width: 100%; min-width: 940px; border: 0; }
.graph-table-wrap th { background: #f8fafc; }
.graph-table-wrap th, .graph-table-wrap td { padding: 12px 14px; white-space: nowrap; }
.graph-status { display: inline-block; padding: 3px 8px; border: 1px solid #a7df91; border-radius: 4px; background: #f2ffed; color: #3b9d27; font-size: 11px; }
.graph-empty-cell { height: 150px; color: #98a2b3; text-align: center; }
.graph-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)) minmax(300px, 2fr); gap: 14px; margin-bottom: 16px; }
.graph-stat-grid article { min-height: 88px; padding: 16px; border: 1px solid #e0e5ed; border-radius: 7px; background: #fff; }
.graph-stat-grid span, .graph-stat-grid strong { display: block; }
.graph-stat-grid span { color: #8490a2; font-size: 12px; }
.graph-stat-grid strong { margin-top: 8px; color: #172033; font-size: 26px; font-weight: 500; }
.graph-rel-stats div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.graph-rel-stats i { padding: 3px 7px; border: 1px solid #dce2ea; border-radius: 4px; color: #475467; font-style: normal; font-size: 11px; }
.graph-seed-form { width: min(620px, calc(100vw - 32px)); grid-template-columns: 1fr; }

@media (max-width: 900px) {
  .graph-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .graph-rel-stats { grid-column: 1 / -1; }
  .graph-controls { align-items: stretch; flex-direction: column; }
  .graph-controls select, .graph-search { width: 100%; max-width: none; }
}

/* Ã¨Â¿ÂÃ¨ÂÂ¥Ã§ÂÂÃ¦ÂÂ¿Ã¯Â¼ÂÃ¥ÂÂºÃ¤ÂºÂÃ¤Â¼ÂÃ¤Â¸ÂÃ¥ÂÂÃ¥ÂÂ­Ã¥ÂÂºÃ¥ÂÂ¨Ã¦ÂÂÃ§ÂÂÃ¦ÂÂÃ¦Â´Â»Ã¥ÂÂ¨Ã¤Â¸ÂÃ¥Â®Â£Ã¤Â¼Â Ã¦ÂÂ¨Ã¨ÂÂÃ£ÂÂ */
.workbench.operations-mode .topbar {
  display: none;
}

.workbench.operations-mode .workbench-scroll {
  overflow-y: hidden;
  scrollbar-gutter: auto;
}

.workbench.operations-mode #operationsView {
  display: block;
  height: calc(100vh - 64px);
  min-height: 0;
  margin: -24px -24px -24px;
  background: #f3f4f7;
}

.workbench.operations-mode #operationsContent {
  display: block;
  height: 100%;
  max-width: none;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.operations-board {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  padding: 0 24px 36px;
}

.operations-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  margin: 0 -24px;
  padding: 0 28px;
  border-bottom: 1px solid #e1e5eb;
  background: #fff;
  flex: 0 0 auto;
}

.operations-board-head > div {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: baseline;
  gap: 8px 12px;
}

.operations-board-head h2,
.operations-board-head p {
  margin: 0;
}

.operations-board-head h2 {
  flex: 0 0 auto;
  color: #172033;
  font-size: 20px;
}

.operations-board-head p {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #7b8494;
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-board-head button {
  min-height: 36px;
  border: 1px solid #8b5cf6;
  background: #7c3aed;
  color: #fff;
}

.operations-board-head button:hover {
  border-color: #6d28d9;
  background: #6d28d9;
  color: #fff;
  filter: none;
}

.operations-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0 18px;
  border-bottom: 1px solid #dfe4eb;
  flex: 0 0 auto;
}

.operations-tabs button {
  position: relative;
  min-height: 44px;
  padding: 7px 16px 11px;
  border-radius: 0;
  background: transparent;
  color: #667085;
  font-weight: 700;
}

.operations-tabs button:hover,
.operations-tabs button.active {
  color: #7c3aed;
  background: transparent;
  filter: none;
}

.operations-tabs button.active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  background: #7c3aed;
}

.operations-tabs strong {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 10px;
  background: #eef0f5;
  color: #667085;
  font-size: 11px;
}

.operation-dynamics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  flex: 0 0 auto;
}

.operation-dynamics > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #e0e5ed;
  border-radius: 6px;
  background: #fff;
  color: #667085;
  font-size: 12px;
}

.operation-dynamics i {
  color: #7c3aed;
  font-style: normal;
  font-weight: 800;
}

.operations-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}

.operations-scroll {
  min-height: 0;
  flex: 1 1 auto;
  padding-right: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #aeb8c6 transparent;
  scrollbar-width: thin;
}

.operation-column {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e0e5ed;
  border-radius: 8px;
  background: #fff;
}

.operation-column > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e8ebf0;
}

.operation-column h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #2c3443;
  font-size: 17px;
}

.operation-column h3 span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: #f1e9ff;
  color: #7c3aed;
  font-size: 12px;
}

.operation-column > header small {
  padding: 4px 9px;
  border-radius: 12px;
  background: #f1f3f6;
  color: #7b8494;
}

.operation-card-list {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.operation-card {
  padding: 16px;
  border: 1px solid #e2e6ec;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 7px rgb(15 23 42 / 4%);
}

.operation-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.operation-card h4,
.operation-card p {
  margin: 0;
}

.operation-card h4 {
  color: #273142;
  font-size: 15px;
  line-height: 1.45;
}

.operation-card-title > span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 5px;
  background: #f0e9ff;
  color: #7c3aed;
  font-size: 11px;
}

.operation-column:nth-child(2) .operation-card-title > span {
  background: #edf5ea;
  color: #568449;
}

.operation-card p {
  margin-top: 9px;
  color: #697386;
  font-size: 12px;
  line-height: 1.65;
}

.operation-launched-time {
  display: block;
  margin-top: 8px;
  color: #98a1af;
}

.operation-ended-time {
  margin-left: 18px;
  color: #667085;
}

.operation-card-actions {
  display: grid;
  grid-template-columns: 1fr 84px;
  gap: 8px;
  margin-top: 13px;
}

.operation-card-actions button {
  min-height: 34px;
  padding: 6px 12px;
  background: #7c3aed;
  font-size: 12px;
  font-weight: 700;
}

.operation-card-actions button:disabled {
  background: #e8eaf0;
  color: #8992a2;
  cursor: not-allowed;
}

.operation-card-actions .operation-favorite {
  border: 1px solid #ded5f4;
  background: #fff;
  color: #d39b13;
  font-size: 19px;
}

.operation-card-actions .operation-favorite.active {
  background: #fff9e8;
  border-color: #f0d388;
}

.operation-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: #9099a8;
  border: 1px dashed #d9dee6;
  border-radius: 7px;
  background: #fafbfc;
}

@media (max-width: 1050px) {
  .operations-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .operations-board {
    padding: 0 14px 28px;
  }

  .operations-board-head {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 -14px;
    padding: 16px;
  }

  .operations-board-head > div {
    width: 100%;
  }

  .operation-card-actions {
    grid-template-columns: 1fr 58px;
  }
}

/* Ã¦ÂÂ¿Ã¦ÂºÂÃ§Â®Â¡Ã§ÂÂÃ¯Â¼ÂÃ¦ÂÂ¿Ã¦ÂºÂÃ£ÂÂÃ¥Â®Â¢Ã¦ÂÂ·Ã£ÂÂÃ¥ÂÂÃ¥ÂÂÃ£ÂÂÃ¦ÂÂ¥Ã¨Â¡Â¨Ã¥ÂÂÃ¦ÂÂ¶Ã§Â¼Â´Ã¦ÂÂÃ©ÂÂÃ£ÂÂ */
.workbench.property-mode .topbar {
  display: none;
}

.workbench.property-mode .workbench-scroll {
  overflow-y: hidden;
  scrollbar-gutter: auto;
}

.workbench.property-mode #propertyView {
  display: block;
  height: calc(100vh - 64px);
  min-height: 0;
  margin: -24px -24px -24px;
  background: #f3f4f7;
}

.workbench.property-mode #propertyContent {
  display: block;
  height: 100%;
  max-width: none;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.property-board {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  padding: 0 24px 36px;
}

.property-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  margin: 0 -24px;
  padding: 0 28px;
  border-bottom: 1px solid #e1e5eb;
  background: #fff;
  flex: 0 0 auto;
}

.property-board-head > div {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: baseline;
  gap: 8px 12px;
}

.property-board-head h2,
.property-board-head p {
  margin: 0;
}

.property-board-head h2 {
  flex: 0 0 auto;
  color: #172033;
  font-size: 20px;
}

.property-board-head p {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #7b8494;
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-board-head > button {
  min-height: 36px;
  background: #7c3aed;
  font-weight: 700;
}

.property-tabs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  border-bottom: 1px solid #dfe4eb;
  flex: 0 0 auto;
}

.property-tabs button {
  position: relative;
  min-height: 46px;
  padding: 8px 16px 12px;
  border-radius: 0;
  background: transparent;
  color: #667085;
  font-weight: 700;
}

.property-tabs button:hover,
.property-tabs button.active {
  color: #7c3aed;
  background: transparent;
  filter: none;
}

.property-tabs button.active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  background: #7c3aed;
}

.property-tabs strong {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 10px;
  background: #eef0f5;
  color: #697386;
  font-size: 11px;
}

.property-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 68px;
  flex: 0 0 auto;
}

.property-toolbar input {
  width: 300px;
  max-width: 55vw;
  height: 38px;
  min-height: 38px;
  background: #fff;
}

.property-toolbar button:not(.property-fee-search-clear) {
  height: 38px;
  min-height: 38px;
  border: 1px solid #dbe1e9;
  background: #fff;
}

.property-toolbar #propertySearchBtn {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.property-toolbar #propertySearchBtn:hover {
  border-color: #6d28d9;
  background: #6d28d9;
  color: #fff;
  filter: none;
}

.property-toolbar button.property-add-action {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.property-toolbar button.property-add-action:hover {
  border-color: #6d28d9;
  background: #6d28d9;
  color: #fff;
  filter: none;
}

.property-toolbar span {
  margin-left: auto;
  color: #667085;
  font-size: 13px;
}

.property-fee-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -24px;
  padding: 14px 24px;
  border-bottom: 1px solid #e7e9ee;
  background: #f5f6f8;
  flex: 0 0 auto;
}

.property-fee-filters,
.property-fee-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-fee-filters button {
  height: 38px;
  min-width: 64px;
  padding: 7px 15px;
  border: 1px solid #d9dde5;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  box-shadow: 0 1px 2px rgb(16 24 40 / 5%);
}

.property-fee-filters button:hover,
.property-fee-filters button.active {
  border-color: #7c3aed;
  color: #7c3aed;
}

.property-fee-filters button.active,
.property-fee-filters .property-add-fee {
  background: #7c3aed;
  color: #fff;
}

.property-fee-filters .property-add-fee {
  min-width: 112px;
  border-color: #7c3aed;
}

.property-fee-filters .property-add-fee:hover {
  background: #6d28d9;
  color: #fff;
}

.property-fee-search input {
  width: 320px;
  height: 38px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #d9dde5;
  border-radius: 6px;
  background: #fff;
}

.property-fee-search #propertySearchBtn {
  height: 38px;
  min-height: 38px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.property-fee-search #propertySearchBtn:hover {
  border-color: #6d28d9;
  background: #6d28d9;
  color: #fff;
  filter: none;
}

.property-fee-search-box {
  position: relative;
  width: fit-content;
}

.property-fee-search .property-fee-search-box {
  flex: 1 1 auto;
}

.property-fee-search-box input {
  padding-right: 38px;
}

.property-fee-search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 22px;
  min-width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  transform: translateY(-50%);
  background: #e7eaf0;
  color: #667085;
  font-size: 16px;
  line-height: 1;
}

.property-fee-search-clear:hover {
  background: #d8dde6;
  color: #344054;
}

.property-fee-search-clear.hidden {
  display: none;
}

.property-table-wrap.property-fee-table {
  margin-top: 0;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.property-status.pending {
  background: #f3e8ff;
  color: #7c3aed;
}

.property-fee-empty {
  display: grid;
  min-height: 145px;
  place-content: center;
  color: #98a2b3;
  text-align: center;
}

.property-fee-empty span {
  color: #d5dae3;
  font-size: 46px;
  line-height: 1;
}

.property-fee-empty p {
  margin: 12px 0 0;
}

.property-table-wrap {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  background: #fff;
}

.property-table-scroll {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #aeb8c6 transparent;
  scrollbar-width: thin;
}

.property-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.property-table-wrap table {
  min-width: 1060px;
  border: 0;
}

.property-table-wrap th {
  padding: 13px 14px;
  background: #f8f9fb;
  color: #697386;
  font-size: 12px;
  white-space: nowrap;
}

.property-table-wrap td {
  padding: 12px 14px;
  color: #526074;
  font-size: 13px;
  white-space: nowrap;
}

.property-table-wrap td strong {
  color: #273142;
}

.contract-file-mark {
  margin-left: 7px;
  padding: 2px 5px;
  border: 0;
  border-radius: 4px;
  background: #edf4ff;
  color: #2563eb;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.contract-file-mark:hover,
.contract-file-mark:focus-visible {
  background: #dbeafe;
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
}

.property-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
}

.property-status.normal {
  background: #f0eaff;
  color: #7c3aed;
}

.property-status.idle {
  background: #eaf8f1;
  color: #178a57;
}

.property-status.warning {
  background: #fff4e8;
  color: #b76818;
}

.property-row-actions {
  display: flex;
  gap: 6px;
}

.property-row-actions button {
  min-height: 28px;
  padding: 4px 9px;
  background: #315ac7;
  font-size: 12px;
}

.property-row-actions .danger {
  background: #fff1f2;
  color: #c02636;
}

.property-empty-cell {
  height: 150px;
  color: #8f98a7 !important;
  text-align: center;
}

.property-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  min-height: 52px;
  padding: 8px 14px;
  border-top: 1px solid #e4e8ee;
  color: #667085;
  font-size: 12px;
  flex: 0 0 auto;
}

.property-pagination button {
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #dbe1e9;
  background: #fff;
}

.property-pagination button:disabled {
  color: #a4acb8;
  background: #f1f3f6;
}

.property-page-size {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #667085;
  font-size: 12px;
}

.property-page-size select {
  width: 78px;
  min-height: 32px;
  padding: 4px 24px 4px 9px;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  background-color: #fff;
  color: #475467;
}

.property-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.property-report-kpi,
.property-report-card {
  padding: 20px;
  border: 1px solid #e0e5ed;
  border-radius: 8px;
  background: #fff;
}

.property-report-kpi span,
.property-report-kpi strong,
.property-report-kpi small {
  display: block;
}

.property-report-kpi span {
  color: #7b8494;
  font-size: 13px;
}

.property-report-kpi strong {
  margin-top: 10px;
  color: #7c3aed;
  font-size: 25px;
}

.property-report-kpi small {
  margin-top: 8px;
  color: #98a1af;
}

.property-report-wide {
  grid-column: span 2;
  min-height: 230px;
}

.property-report-card h3 {
  margin: 0 0 25px;
  text-align: center;
}

.property-report-progress {
  display: grid;
  grid-template-columns: 80px 1fr 75px;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #667085;
  font-size: 13px;
}

.property-report-progress > div {
  height: 22px;
  overflow: hidden;
  border-radius: 3px;
  background: #eef1f5;
}

.property-report-progress i {
  display: block;
  height: 100%;
}

.property-report-progress strong {
  text-align: right;
}

.property-report-card > p {
  margin-top: 28px;
  color: #667085;
  text-align: center;
}

.property-alert-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.property-alert-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 19px;
  border: 1px solid #e0e5ed;
  border-radius: 8px;
  background: #fff;
}

.property-alert-list h3,
.property-alert-list p {
  margin: 0;
}

.property-alert-list h3 {
  display: inline;
  margin-left: 9px;
  font-size: 15px;
}

.property-alert-list p {
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
}

.property-alert-list small {
  display: block;
  margin-top: 7px;
  color: #98a1af;
}

.property-alert-list div > span {
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 11px;
}

.property-alert-list .fee {
  background: #fff1f2;
  color: #c02636;
}

.property-alert-list .contract {
  background: #fff5e9;
  color: #b76818;
}

.property-dialog-form {
  width: min(720px, calc(100vw - 32px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 18px;
}

.property-dialog-form h2,
.property-dialog-form .property-field-wide,
.property-dialog-form .dialog-actions {
  grid-column: 1 / -1;
}

.property-dialog-form small {
  color: #929baa;
  font-size: 11px;
}

.property-contract-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #d8e2ee;
  border-radius: 6px;
  background: #f7f9fc;
}

.property-contract-current > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.property-contract-current small {
  overflow: hidden;
  max-width: 520px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-contract-current > div {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.property-contract-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  overflow: hidden;
}

.property-contract-shell {
  display: grid;
  grid-template-rows: auto minmax(360px, 70vh) auto;
  width: 100%;
  max-height: calc(100vh - 32px);
}

.property-contract-shell > header,
.property-contract-shell > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.property-contract-shell > header h2,
.property-contract-shell > header p {
  margin: 0;
}

.property-contract-shell > header p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.property-contract-shell > footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.property-contract-preview {
  display: grid;
  overflow: auto;
  background: #eef2f6;
  place-items: center;
}

.property-contract-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.property-contract-preview img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.property-contract-preview pre {
  align-self: stretch;
  justify-self: stretch;
  margin: 0;
  padding: 22px;
  overflow: auto;
  background: #fff;
  color: #273142;
  font: 14px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.property-contract-loading,
.property-contract-unavailable {
  display: grid;
  gap: 7px;
  color: var(--muted);
  text-align: center;
}

.property-contract-unavailable strong {
  color: var(--ink);
  font-size: 16px;
}

@media (max-width: 1050px) {
  .property-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .workbench.property-mode #propertyView {
    margin: -16px;
  }
}

@media (max-width: 650px) {
  .property-board {
    padding: 0 14px 28px;
  }

  .property-board-head {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 -14px;
    padding: 16px;
  }

  .property-board-head > div {
    width: 100%;
  }

  .property-tabs {
    overflow-x: auto;
  }

  .property-fee-toolbar {
    align-items: stretch;
    flex-direction: column;
    margin: 0 -14px;
    padding: 12px 14px;
  }

  .property-fee-filters {
    overflow-x: auto;
  }

  .property-fee-search input {
    min-width: 0;
    width: 100%;
  }

  .property-report-grid,
  .property-dialog-form {
    grid-template-columns: 1fr;
  }

  .property-report-wide,
  .property-dialog-form h2,
  .property-dialog-form .property-field-wide,
  .property-dialog-form .dialog-actions {
    grid-column: auto;
  }
}

.tabs {
  display: inline-flex;
  gap: 6px;
  margin-top: 12px;
  padding: 4px;
  background: #e9f0f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tab {
  min-width: 88px;
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 6px;
}

.tab.active {
  background: var(--panel);
  color: var(--accent);
  box-shadow: 0 1px 3px rgb(16 32 39 / 10%);
}

.view {
  display: grid;
  gap: 16px;
}

.no-authorized-page { display: grid; place-items: center; align-content: center; min-height: calc(100vh - 230px); padding: 48px 24px; border: 1px solid #e4e7ec; border-radius: 12px; background: #fff; text-align: center; }.no-authorized-icon { display: grid; width: 46px; height: 46px; margin-bottom: 14px; place-items: center; border-radius: 50%; background: #f1eaff; color: #7c3aed; font-size: 24px; font-weight: 800; }.no-authorized-page h2 { margin: 0; color: #344054; font-size: 18px; }.no-authorized-page p { max-width: 540px; margin: 10px 0 0; color: #667085; font-size: 14px; line-height: 1.75; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.kpi span {
  color: var(--muted);
  font-size: 13px;
}

.kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.toolbar,
.inline-form,
.chat-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.toolbar input {
  max-width: 340px;
}

.panel-toolbar {
  justify-content: flex-start;
}

#systemView .toolbar {
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
}

#menuPanel > .toolbar {
  min-height: 56px;
  padding: 0 18px;
  justify-content: flex-end;
}

#menuPanel > #menuList.table-wrap {
  margin: 12px 18px;
}

#menuPanel .menu-group + .menu-group {
  margin-top: 10px;
}

#menuPanel .toolbar button:disabled,
#menuPanel .toolbar button:disabled:hover,
#menuPanel .row-actions button:disabled,
#menuPanel .row-actions button:disabled:hover,
.toolbar button:disabled,
.row-actions button:disabled,
.task-actions button:disabled,
.finance-row-actions button:disabled,
.finance-toolbar button:disabled,
.finance-charge-toolbar > button:disabled,
.finance-charge-toolbar > .finance-charge-primary:disabled,
.finance-payee-toolbar button:disabled,
.property-row-actions button:disabled,
.company-actions button:disabled,
.graph-actionbar button:disabled,
.knowledge-card-actions button:disabled,
.knowledge-header-actions button:disabled,
.knowledge-row-actions button:disabled,
.permission-toolbar button:disabled,
.permission-card-head button:disabled,
.tasks-header button:disabled,
.property-toolbar button:disabled,
.property-add-action:disabled,
.property-add-fee:disabled,
.digitalwork-toolbar button:disabled,
.operation-card-actions button:disabled,
.knowledge-create-dataset:disabled,
.finance-payee-toolbar .finance-charge-primary:disabled,
#viewActions button:disabled {
  background: #e8eaee;
  color: #a0a7b2;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
  opacity: 1;
}

#systemView .toolbar input,
#systemView .toolbar select {
  width: 180px;
  max-width: 180px;
  flex: 0 0 180px;
}

#systemView .toolbar button {
  flex: 0 0 auto;
}

#systemView .toolbar .system-search-field {
  position: relative;
  display: inline-flex;
  width: 180px;
  max-width: 180px;
  flex: 0 0 180px;
}

#systemView .toolbar .system-search-field input {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  padding-right: 30px;
}

#systemView .toolbar .system-search-clear {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #98a2b3;
  font-size: 15px;
  line-height: 18px;
  transform: translateY(-50%);
}

#systemView .toolbar .system-search-clear:hover {
  background: #e2e6ec;
  color: #475467;
}

.tab-panel {
  display: grid;
  gap: 16px;
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

/* Ã¥ÂÂ­Ã¥ÂÂºÃ§ÂÂÃ¦ÂÂ¿Ã¯Â¼ÂÃ¥ÂÂ¨Ã©ÂÂ¨Ã¦ÂÂ°Ã¦ÂÂ®Ã¦ÂÂ¥Ã¨ÂÂªÃ¦ÂÂÃ¥ÂÂÃ¤Â¼ÂÃ¤Â¸ÂÃ¤Â¿Â¡Ã¦ÂÂ¯Ã¨ÂÂÃ¥ÂÂÃ£ÂÂ */
.workbench.dashboard-mode .topbar {
  flex: 0 0 auto;
  min-height: 62px;
  margin: -24px -24px 0;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid #e5e9ef;
}

.workbench.dashboard-mode .workbench-scroll {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow-y: hidden;
  scrollbar-gutter: auto;
}

.workbench.dashboard-mode .topbar h1 {
  font-size: 20px;
}

.workbench.dashboard-mode .topbar-heading {
  justify-content: center;
}

.workbench.dashboard-mode #viewSubtitle,
.workbench.dashboard-mode #refreshBtn {
  display: none;
}

.workbench.dashboard-mode #dashboardView {
  display: block;
  min-height: 0;
  flex: 1 1 auto;
  margin: 0 -24px -24px;
  overflow: hidden;
  background: #f1f3f6;
}

.park-dashboard {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.park-dashboard-summary {
  flex: 0 0 auto;
  padding: 26px 24px 0;
}

.park-dashboard-scroll {
  min-height: 0;
  flex: 1 1 auto;
  padding: 0 24px 36px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #aeb8c6 transparent;
  scrollbar-width: thin;
}

.park-dashboard-title {
  margin: 0 0 22px;
  color: #172033;
  font-size: 22px;
}

.dashboard-tooltip {
  position: fixed;
  z-index: 1000;
  max-width: 240px;
  padding: 10px 13px;
  border: 1px solid #d6def0;
  border-radius: 4px;
  background: #fff;
  color: #667085;
  box-shadow: 0 4px 14px rgb(16 24 40 / 16%);
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.dashboard-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.park-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.park-kpi {
  min-height: 114px;
  padding: 24px;
  border: 1px solid #e5e9ef;
  border-radius: 8px;
  background: #fff;
}

.park-kpi > span {
  color: #7b8494;
  font-size: 14px;
}

.park-kpi > div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
}

.park-kpi i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-style: normal;
  font-size: 13px;
}

.park-kpi strong {
  font-size: 27px;
  font-weight: 500;
}

.park-kpi-purple div { color: #7c3aed; }
.park-kpi-blue div { color: #1677ff; }
.park-kpi-green div { color: #38b000; }
.park-kpi-orange div { color: #f97316; }

.park-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  margin-top: 24px;
}

.park-chart-card {
  min-width: 0;
  min-height: 390px;
  padding: 24px 28px;
  border: 1px solid #e5e9ef;
  border-radius: 8px;
  background: #fff;
}

.park-chart-card h3 {
  margin: 0 0 22px;
  color: #303846;
  text-align: center;
  font-size: 17px;
}

.donut-chart-wrap {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.8fr);
  align-items: center;
  gap: 26px;
  min-height: 292px;
}

.donut-chart {
  position: relative;
  width: min(280px, 100%);
  aspect-ratio: 1;
  justify-self: center;
}

.donut-chart svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-track {
  stroke: #edf0f4;
}

.donut-hit {
  fill: none;
  stroke: transparent;
  pointer-events: stroke;
}

.trend-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

.donut-chart > div {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}

.donut-chart strong,
.donut-chart span {
  display: block;
}

.donut-chart strong {
  color: #25324a;
  font-size: 30px;
}

.donut-chart span {
  margin-top: 4px;
  color: #8a94a4;
  font-size: 12px;
}

.chart-legend {
  display: grid;
  gap: 12px;
  align-content: center;
}

.chart-legend span {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #5d6878;
  font-size: 13px;
}

.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.chart-legend em,
.chart-empty {
  color: #9aa3b1;
  font-style: normal;
  text-align: center;
}

.trend-chart svg {
  display: block;
  width: 100%;
  min-height: 270px;
}
.trend-title { position: relative; margin-bottom: 8px; }
.trend-title h3 { display: inline; margin: 0; text-align: left; }
.trend-title span { margin-left: 7px; color: #7c8798; font-size: 12px; }
.trend-title em { display: block; margin-top: 8px; color: #8d97a6; font-size: 11px; font-style: normal; }
.trend-growth-area { fill: rgb(124 58 237 / 8%); }
.trend-growth-line { fill: none; stroke: #7c3aed; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.trend-growth-dot { fill: #7c3aed; stroke: #fff; stroke-width: 2; filter: drop-shadow(0 2px 3px rgb(124 58 237 / 28%)); }
.finance-stage-chart { position: relative; min-height: 292px; }
.finance-stage-chart svg { display: block; width: 100%; min-height: 270px; overflow: visible; }
.finance-stage-unit { position: absolute; top: 0; left: 0; color: #778294; font-size: 12px; }
.finance-stage-grid line { stroke: #dfe6ef; stroke-width: 1; }
.finance-stage-grid text, .finance-stage-label { fill: #687486; font-size: 11px; }
.finance-stage-bar { fill: #2478ee; cursor: pointer; transition: fill 150ms ease, filter 150ms ease; }
.finance-stage-bar:hover { fill: #1769d7; filter: drop-shadow(0 4px 7px rgb(36 120 238 / 25%)); }
.finance-stage-value { fill: #2f3743; font-size: 12px; font-weight: 600; pointer-events: none; }
.finance-stage-empty { display: grid; min-height: 290px; place-items: center; }
.user-role-field { margin: 0; padding: 10px 12px 12px; border: 1px solid #d9e1ec; border-radius: 6px; }
.user-role-field legend { padding: 0 5px; color: #475467; font-size: 13px; font-weight: 600; }
.user-field-label { display: inline-flex; align-items: center; gap: 5px; min-height: 20px; }
.user-field-help { position: relative; display: inline-flex; align-items: center; }
.user-field-help-trigger {
  display: inline-grid;
  width: 17px;
  height: 17px;
  min-width: 17px;
  padding: 0;
  border: 1px solid #98a2b3;
  border-radius: 50%;
  background: #fff;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  place-items: center;
}
.user-field-help-trigger:hover,
.user-field-help-trigger:focus-visible { border-color: #6941c6; color: #6941c6; outline: none; box-shadow: 0 0 0 3px rgb(105 65 198 / 14%); }
.user-field-help-content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: -8px;
  z-index: 20;
  width: min(300px, calc(100vw - 48px));
  padding: 9px 11px;
  border-radius: 5px;
  background: #253044;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 120ms ease, transform 120ms ease;
}
.user-field-help-content::after {
  position: absolute;
  top: 100%;
  left: 11px;
  border: 5px solid transparent;
  border-top-color: #253044;
  content: "";
}
.user-field-help:hover .user-field-help-content,
.user-field-help:focus-within .user-field-help-content { opacity: 1; transform: translateY(0); }
.user-role-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.user-role-options label { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 9px; border: 1px solid #e3e8ef; border-radius: 5px; background: #f8fafc; color: #344054; }
.user-role-options input { width: 15px; height: 15px; margin: 0; }
.user-role-options label:has(input:checked) { border-color: #b9a1f7; background: #f4f0ff; color: #5b21b6; }
.user-role-options label:has(input:disabled) { opacity: .62; }

.chart-grid-lines line {
  stroke: #e4e9f0;
  stroke-width: 1;
}

.chart-grid-lines text,
.trend-x-label {
  fill: #7f8998;
  font-size: 11px;
}

.trend-created,
.trend-cumulative {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-created { stroke: #7c3aed; }
.trend-cumulative { stroke: #1677ff; }
.trend-dot-created { fill: #fff; stroke: #7c3aed; stroke-width: 2; }
.trend-dot-total { fill: #fff; stroke: #1677ff; stroke-width: 2; }

.trend-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #667085;
  font-size: 13px;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trend-legend i {
  width: 18px;
  height: 2px;
}

.trend-legend .created { background: #7c3aed; }
.trend-legend .cumulative { background: #1677ff; }

.horizontal-chart {
  display: grid;
  gap: 20px;
  padding: 10px 4px;
}

.horizontal-chart-row {
  display: grid;
  grid-template-columns: 78px 1fr 30px;
  align-items: center;
  gap: 12px;
  color: #647084;
  font-size: 13px;
}

.horizontal-chart-row > div {
  height: 22px;
  overflow: hidden;
  border-radius: 3px;
  background: #f0f2f6;
}

.horizontal-chart-row i {
  display: block;
  height: 100%;
  min-width: 0;
}

.horizontal-chart-row strong {
  color: #344054;
  text-align: right;
}

.vertical-chart {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 14px;
  min-height: 292px;
  padding: 8px 8px 0;
  border-bottom: 1px solid #dfe5ed;
}

.vertical-chart-column {
  display: grid;
  grid-template-rows: 1fr 42px;
  min-width: 42px;
  max-width: 94px;
  flex: 1;
  text-align: center;
}

.vertical-chart-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 190px;
  border-bottom: 1px solid #dfe5ed;
}

.vertical-chart-bar {
  display: flex;
  width: 72%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.vertical-chart-bar strong {
  color: #344054;
  font-size: 12px;
  line-height: 22px;
}

.vertical-chart-bar i {
  display: block;
  width: 100%;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
}

.vertical-chart-column > span {
  padding-top: 9px;
  overflow: hidden;
  color: #6f7989;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.occupancy-chart {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 292px;
  padding-top: 8px;
  overflow-x: auto;
  overflow-y: hidden;
}

.occupancy-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 226px;
  padding-top: 22px;
  padding-right: 10px;
  color: #8993a3;
  text-align: right;
  font-size: 11px;
  line-height: 1;
}

.occupancy-plot {
  position: relative;
  min-width: max(100%, 420px);
  height: 276px;
}

.occupancy-grid-lines {
  position: absolute;
  z-index: 0;
  inset: 22px 0 50px;
  height: 204px;
}

.occupancy-grid-line {
  position: absolute;
  right: 0;
  left: 0;
  display: block;
  height: 1px;
  background: #e7eaf0;
  pointer-events: none;
}

.occupancy-columns {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 18px;
  min-width: 100%;
  height: 276px;
  padding: 0 14px;
}

.occupancy-column {
  display: grid;
  grid-template-rows: 226px 50px;
  min-width: 54px;
  flex: 1 0 54px;
  text-align: center;
}

.occupancy-column-track {
  display: flex;
  height: 226px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.occupancy-column-track > strong {
  color: #6941c6;
  font-size: 11px;
  font-weight: 600;
}

.occupancy-column-track > i {
  display: block;
  width: min(38px, 72%);
  min-height: 2px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 6px 14px rgb(109 40 217 / 16%);
}

.occupancy-column > span {
  padding-top: 10px;
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.occupancy-empty {
  display: grid;
  min-height: 292px;
  place-items: center;
}

@media (max-width: 1100px) {
  .park-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .park-chart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .park-dashboard-summary {
    padding: 18px 16px 0;
  }

  .park-dashboard-scroll {
    padding: 0 16px 28px;
  }

  .park-kpi-grid {
    grid-template-columns: 1fr;
  }

  .park-chart-card {
    min-height: 0;
    padding: 20px 16px;
  }

  .donut-chart-wrap {
    grid-template-columns: 1fr;
  }

  .occupancy-chart {
    grid-template-columns: 40px minmax(0, 1fr);
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 52px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}

.pagination button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  font-size: 16px;
}

.page-size-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-size-label select {
  width: 86px;
  min-height: 30px;
  padding: 4px 8px;
}

.compact {
  max-height: 320px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 13px;
  color: var(--muted);
  background: #f8fafc;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 2px 10px;
  background: #e8f4f2;
  color: #115e59;
  font-size: 13px;
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.row-actions button {
  padding: 6px 9px;
  font-size: 13px;
  background: var(--accent-2);
}

.row-actions .ghost {
  background: #eef2ff;
  color: #1d4ed8;
}

.invest-board {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: 88px 1fr;
  min-height: calc(100vh - 128px);
  margin: -4px -24px -24px;
  background: #f3f5f9;
  border-top: 1px solid var(--line);
}

.invest-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(560px, auto) 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.invest-title-search {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}

.invest-rail {
  grid-column: 1;
  grid-row: 2;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 20px 22px 24px 28px;
}

.invest-board-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #0f172a;
  font-size: 19px;
  font-weight: 900;
}

.invest-board-title span {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ede9fe;
  color: var(--nav-purple);
  font-size: 12px;
}

.invest-rail-title {
  margin-bottom: 18px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.industry-nav {
  display: grid;
  gap: 2px;
}

.industry-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 7px 0;
  background: transparent;
  color: #334155;
  text-align: left;
  border-radius: 0;
}

.industry-item:hover,
.industry-item.active {
  color: var(--nav-purple);
  filter: none;
}

.industry-caret {
  color: #94a3b8;
  font-size: 11px;
}

.industry-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.industry-item small {
  color: #94a3b8;
}

.industry-children {
  display: grid;
  gap: 2px;
  padding: 0 0 4px 34px;
}

.industry-children button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 30px;
  padding: 4px 0;
  background: transparent;
  color: #64748b;
  text-align: left;
}

.industry-children button:hover,
.industry-children button.active {
  color: var(--nav-purple);
  filter: none;
}

.industry-children span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54bd8b;
}

.industry-children small {
  color: #94a3b8;
}

.invest-workspace {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding: 26px 28px 34px;
}

.invest-search {
  height: 38px;
  max-width: 386px;
  background: #fff;
}

.invest-summary {
  justify-self: end;
  display: flex;
  gap: 18px;
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
}

.invest-summary strong {
  color: #0f172a;
}

.invest-summary span:nth-child(2) strong {
  color: #047857;
}

.invest-summary span:nth-child(3) strong {
  color: #1d4ed8;
}

.invest-summary span:nth-child(4) strong {
  color: var(--nav-purple);
}

.invest-tabs {
  display: flex;
  gap: 28px;
  padding-top: 0;
  border-bottom: 1px solid var(--line);
}

.invest-tab {
  position: relative;
  padding: 10px 0 12px;
  background: transparent;
  color: #64748b;
  font-weight: 800;
}

.invest-tab.active {
  color: var(--nav-purple);
}

.invest-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--nav-purple);
}

.invest-filterbar,
.invest-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.status-filters,
.invest-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.invest-actions #newEnterpriseBtn {
  display: none;
}

.status-filters > span {
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 11px;
  background: #fff;
  color: #475569;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.status-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #54bd8b;
}

.status-chip strong {
  color: #94a3b8;
  font-weight: 700;
}

.status-chip.active,
.active-sort {
  color: var(--nav-purple);
  border: 1px solid var(--nav-purple);
  background: #fff;
}

.invest-actions .ghost,
.invest-count-row .ghost {
  min-height: 34px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #334155;
}

.invest-actions .active-sort {
  color: var(--nav-purple);
  border-color: var(--nav-purple);
}

.invest-count-row {
  margin-bottom: 18px;
  color: #64748b;
}

.invest-count-row strong {
  color: #0f172a;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 12px;
}

.company-card {
  display: grid;
  gap: 11px;
  min-height: 178px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.company-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.company-card h3 {
  margin: 0;
  font-size: 17px;
}

.company-card p,
.company-meta {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.company-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.company-tags span {
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
}

.company-channel {
  padding: 10px 12px;
  border-left: 3px solid var(--nav-purple);
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.company-actions {
  margin-top: auto;
}

.company-actions button {
  background: #eef2ff;
  color: #1d4ed8;
}

.ai-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  min-height: 680px;
}

.session-list,
.chat,
.agent-card,
.inline-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.session-list {
  padding: 10px;
  overflow: auto;
}

.session-item {
  display: grid;
  width: 100%;
  gap: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

.session-item:hover {
  background: #eef4f6;
}

.session-item small {
  color: var(--muted);
}

.session-more-button {
  width: 100%;
  min-height: 36px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--accent);
  cursor: pointer;
}

.session-more-button:hover:not(:disabled) {
  background: #eef4f6;
}

.session-more-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.chat {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}

.chat-head,
.chat-form,
.inline-form {
  padding: 12px;
}

.messages {
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
}

.message {
  max-width: 78%;
  white-space: pre-wrap;
  line-height: 1.55;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef4f6;
}

.message.user {
  margin-left: auto;
  background: #dcfce7;
}

.ai-brain {
  position: relative;
  display: grid;
  gap: 28px;
}

.workbench.ai-mode {
  padding-top: 12px;
}

.workbench.ai-mode .topbar {
  flex: 0 0 auto;
  margin-bottom: 8px;
}

.workbench.ai-mode .ai-brain {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  gap: 16px;
}

.workbench.ai-mode .workbench-scroll {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow-y: hidden;
  scrollbar-gutter: auto;
}

.workbench.ai-mode #aiView {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.workbench.ai-mode .ai-hero-panel {
  flex: 0 0 auto;
}

.ai-brain-scroll {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  align-content: start;
  gap: 16px;
  padding-right: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #aeb8c6 transparent;
  scrollbar-width: thin;
}

.workbench.ai-mode .ai-hero-panel {
  gap: 8px;
  padding: 8px 0 0;
}

.workbench.ai-mode .ai-hero-panel p {
  margin-bottom: 8px;
}

.ai-engine-label {
  position: absolute;
  top: -58px;
  right: 0;
  color: #475569;
  font-size: 14px;
}

.ai-hero-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 34px 0 16px;
}

.ai-hero-panel h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: 0;
}

.ai-hero-panel p {
  margin: 0 0 18px;
  color: #4b5563;
}

.ai-query-form {
  width: min(960px, 100%);
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(16 32 39 / 8%);
}

.ai-query-icon {
  color: #111827;
  font-size: 32px;
  line-height: 1;
}

.ai-query-form input {
  border: 0;
  padding: 10px 0;
  color: var(--ink);
  font-size: 16px;
}

.ai-query-form input:focus {
  outline: 0;
}

.ai-query-form button,
.model-option.active {
  background: var(--nav-purple);
}

.ai-control-grid,
.ai-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.ai-work-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.ai-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}

.ai-panel h3 {
  margin: 0;
  font-size: 20px;
}

.ai-model-panel-title {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-model-refresh-button {
  display: inline-flex;
  min-width: 96px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-color: #d9d2f5;
  padding: 6px 11px;
  color: #6d28d9;
  white-space: nowrap;
}

.ai-model-refresh-button:hover:not(:disabled) {
  border-color: #8b5cf6;
  background: #f6f1ff;
  filter: none;
}

.ai-model-refresh-button > span {
  font-size: 17px;
  line-height: 1;
}

.ai-model-refresh-button.loading > span {
  animation: ai-model-refresh-spin .8s linear infinite;
}

@keyframes ai-model-refresh-spin {
  to { transform: rotate(360deg); }
}

.model-options {
  display: grid;
  gap: 10px;
}

.model-option {
  min-height: 50px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  text-align: left;
}

.model-option:hover {
  border-color: var(--nav-purple);
  filter: none;
}

.model-option.active {
  color: #111827;
  background: #faf7ff;
  border-color: var(--nav-purple);
}

.model-radio {
  width: 14px;
  height: 14px;
  border: 2px solid #9ca3af;
  border-radius: 50%;
}

.model-option.active .model-radio {
  border-color: var(--nav-purple);
  box-shadow: inset 0 0 0 3px #fff;
  background: var(--nav-purple);
}

.model-option small {
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef2f7;
  color: #64748b;
  text-align: center;
}

.model-add-controls {
  display: block;
  margin-top: 12px;
}

.model-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  position: relative;
}

.model-picker {
  position: relative;
  min-width: 0;
}

.model-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.model-picker-trigger:hover {
  filter: none;
  border-color: var(--nav-purple);
}

.model-picker-arrow {
  margin-left: 8px;
  color: var(--muted);
}

.model-picker-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px);
  left: 0;
  z-index: 20;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.model-picker-menu > input {
  width: 100%;
  min-height: 36px;
  margin-bottom: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}

.model-picker-options {
  max-height: 250px;
  overflow-y: auto;
}

.model-picker-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.model-picker-option:hover,
.model-picker-option.active {
  background: var(--nav-purple-soft);
  color: var(--nav-purple);
}

.model-picker-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-picker-option small {
  color: var(--muted);
  white-space: nowrap;
}

.model-picker-empty {
  padding: 12px 8px;
  color: var(--muted);
  font-size: 13px;
}

.model-add-controls button {
  min-width: 72px;
  padding: 8px 16px;
}

.model-add-controls button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.model-display-summary {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.dify-config-panel {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.dify-config-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dify-config-title h3 {
  margin: 0;
}

.dify-config-permission-hint {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #dbe4ef;
  border-radius: 6px;
  background: #f7f9fc;
  color: #526072;
  font-size: 12px;
  line-height: 1.5;
}

.dify-config-panel.read-only input:disabled {
  background: #f3f6f9;
  color: #7b8797;
  cursor: not-allowed;
  opacity: 1;
}

.dify-config-panel h4 {
  margin: 0;
  font-size: 15px;
}

.dify-config-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.dify-config-panel input {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.dify-config-actions {
  display: flex;
  gap: 8px;
}

.dify-config-actions button {
  flex: 1;
}

.secondary-button {
  background: #eef2f7;
  color: var(--ink);
}

.config-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.config-hint.config-ready {
  color: #047857;
}

.config-hint.config-missing {
  color: #b45309;
}

.ai-result-panel {
  min-height: 360px;
}

.ai-messages {
  min-height: 280px;
  padding: 0;
}

.ai-empty-result,
.empty-state {
  display: grid;
  place-items: center;
  min-height: 160px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.session-list .empty-state {
  min-height: 120px;
}

.session-item.active {
  background: var(--nav-purple-soft);
  color: var(--nav-purple);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.agent-card {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.agent-card h3 {
  margin: 0;
}

.agent-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.digitalwork-board {
  display: grid;
  gap: 16px;
}

.digitalwork-lead {
  margin: 0;
  color: #475467;
  line-height: 1.6;
}

.digitalwork-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.digitalwork-chat,
.digitalwork-detail {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.digitalwork-form {
  display: grid;
  gap: 12px;
}

.digitalwork-form header {
  display: grid;
  gap: 4px;
}

.digitalwork-output {
  margin: 0;
  max-height: 480px;
  overflow: auto;
  padding: 12px;
  border-radius: 6px;
  background: #f8fafc;
  white-space: pre-wrap;
  word-break: break-word;
}

.digitalwork-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.digitalwork-steps li {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2f6;
  color: #667085;
  font-size: 12px;
}

.digitalwork-steps li.done {
  background: #efe9ff;
  color: #5b3db2;
}

.digitalwork-gates {
  display: grid;
  gap: 8px;
}

.digitalwork-project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-form {
  align-items: end;
}

.inline-form input,
.inline-form select {
  max-width: 220px;
}

dialog {
  border: 0;
  border-radius: 8px;
  padding: 0;
  width: min(720px, calc(100vw - 32px));
  box-shadow: 0 24px 70px rgb(16 32 39 / 28%);
}

dialog::backdrop {
  background: rgb(16 32 39 / 38%);
}

.dialog-form {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.dialog-form h2 {
  margin: 0 0 4px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.permission-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.role-permission-editor {
  display: grid;
  gap: 14px;
}

.role-menu-add {
  display: flex;
  gap: 10px;
  align-items: center;
}

.role-menu-add select,
.role-secondary-select {
  width: auto;
  min-width: 160px;
}

.role-secondary-select {
  padding: 6px 8px;
  font-size: 13px;
}

.role-secondary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-secondary-actions .ghost {
  padding: 6px 10px;
  font-size: 13px;
}

.role-secondary-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.role-secondary-picker label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

.role-secondary-picker input {
  width: auto;
  padding: 0;
}

.role-secondary-picker button {
  padding: 6px 10px;
  font-size: 13px;
}

.remove-bound-menu {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #fecaca;
  border-radius: 4px;
  background: #fff1f2;
  color: #dc2626;
  font-size: 18px;
  line-height: 1;
}

.remove-bound-menu:hover {
  background: #fee2e2;
  filter: none;
}

.role-menu-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.permission-module {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.permission-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.permission-module-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.permission-module-title input,
.permission-menu-row input {
  width: auto;
  padding: 0;
}

.permission-menu-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.permission-module.collapsed .permission-menu-list,
.permission-module.collapsed .role-secondary-picker {
  display: none;
}

.permission-collapse-btn {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  background: #f1f5f9;
  color: #475569;
  font-size: 18px;
  line-height: 1;
}

.permission-collapse-btn:hover {
  background: #ede9fe;
  color: var(--nav-purple);
  filter: none;
}

.permission-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
}

.permission-menu-row > label,
.permission-actions label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}

.permission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.permission-fields legend {
  padding: 0 5px;
  color: var(--muted);
  font-size: 14px;
}

.permission-fields label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.permission-fields input {
  width: auto;
  padding: 0;
}

.role-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.toast {
  position: fixed;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: min(640px, calc(100vw - 48px));
  text-align: center;
  background: #102027;
  color: #fff;
  padding: 13px 18px;
  border-radius: 6px;
  box-shadow: 0 16px 42px rgb(16 32 39 / 28%);
  z-index: 2147483646;
}
#toast[popover] {
  inset: unset;
  top: 36px;
  left: 50%;
  right: auto;
  bottom: auto;
  width: max-content;
  max-width: min(640px, calc(100vw - 48px));
  height: auto;
  margin: 0;
  border: 0;
  overflow: visible;
}

.toast.success {
  border: 1px solid #b7e5aa;
  background: #f2fff0;
  color: #50b52f;
  box-shadow: 0 12px 32px rgb(63 135 42 / 18%);
}

.toast.success::before {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  margin-right: 7px;
  border-radius: 50%;
  background: #58bd36;
  color: #fff;
  content: "\2713";
  font-size: 11px;
  font-weight: 700;
}

.toast.error {
  border: 1px solid #fecdca;
  background: #fff6f6;
  color: #b42318;
  box-shadow: 0 12px 32px rgb(180 35 24 / 14%);
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 78px 1fr;
  }

  .sidebar {
    position: relative;
    z-index: 2;
  }

  nav {
    grid-template-columns: 1fr;
  }

  .brand-full,
  .nav-label,
  .lock,
  .user-box span {
    display: none;
  }

  .brand-short {
    display: inline;
  }

  .nav {
    justify-content: center;
    padding: 9px 0;
  }

  .user-box {
    margin-top: 0;
    padding: 12px 10px 20px;
  }

  .workbench {
    padding: 16px;
  }

  .module-nav {
    margin: -16px -16px 16px;
    padding: 0 12px;
  }

  .invest-board {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    margin: 0;
  }

  .workbench.invest-mode .invest-board {
    margin: -16px;
  }

  .workbench.system-mode #systemView {
    margin: -16px -16px -16px;
  }

  .workbench.system-mode #systemView .toolbar {
    min-height: auto;
    padding: 16px;
    flex-wrap: wrap;
  }

  .workbench.system-mode #systemView .table-wrap,
  .workbench.system-mode #permissionPanel {
    margin: 16px;
    padding: 0;
  }

  .workbench.system-mode.system-action-mode #permissionPanel {
    height: calc(100% - 32px);
  }

  .invest-header {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .invest-title-search {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .invest-rail {
    grid-column: 1;
    grid-row: 2;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }

  .invest-board-title {
    min-height: auto;
    padding: 0;
    border-right: 0;
  }

  .invest-workspace {
    grid-column: 1;
    grid-row: 3;
    padding: 16px;
  }

  .invest-summary {
    justify-self: stretch;
    flex-wrap: wrap;
  }

  .invest-filterbar,
  .invest-count-row {
    align-items: stretch;
    flex-direction: column;
  }

  .company-grid {
    grid-template-columns: 1fr;
  }

  .kpi-grid,
  .agent-grid,
  .ai-layout,
  .ai-control-grid,
  .ai-work-grid {
    grid-template-columns: 1fr;
  }

  .permission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-engine-label {
    position: static;
    justify-self: end;
  }

  .ai-hero-panel h2 {
    font-size: 28px;
  }

  .ai-query-form {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .ai-query-icon {
    display: none;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .permission-grid {
    grid-template-columns: 1fr;
  }

  .permission-card {
    min-height: 0;
  }
}

/* Native knowledge workspace backed by the Dify Dataset API. */
.workbench.knowledge-mode .topbar {
  display: none;
}

.workbench.knowledge-mode .workbench-scroll {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow-y: hidden;
  scrollbar-gutter: auto;
}

.workbench.knowledge-mode #knowledgeView {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  margin: -24px;
  overflow: hidden;
}

.knowledge-board {
  display: flex;
  min-width: 0;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  padding: 22px 26px 32px;
  overflow: hidden;
  background: #f3f5f8;
}

.knowledge-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
  margin: -22px -26px 20px;
  padding: 12px 26px;
  border-bottom: 1px solid #dfe5ec;
  background: #fff;
}

.knowledge-header > div:not(.knowledge-header-actions):not(.knowledge-detail-title),
.knowledge-detail-title > div {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: baseline;
  gap: 8px 12px;
}

.knowledge-header h2,
.knowledge-header p,
.knowledge-retrieval-query h3,
.knowledge-retrieval-query p,
.knowledge-section-title h3 {
  margin: 0;
}

.knowledge-header h2 {
  flex: 0 0 auto;
  color: #172033;
  font-size: 19px;
}

.knowledge-header p {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #788497;
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-header-actions,
.knowledge-card-actions,
.knowledge-row-actions,
.knowledge-detail-title,
.knowledge-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.knowledge-header-actions button,
.knowledge-toolbar button,
.knowledge-card-actions button,
.knowledge-row-actions button,
.knowledge-pagination button,
.knowledge-back {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 13px;
  white-space: nowrap;
}

.knowledge-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin-bottom: 18px;
  padding: 11px 14px;
  border: 1px solid #dfe5ec;
  border-radius: 7px;
  background: #fff;
}

.knowledge-toolbar > span {
  margin-left: auto;
  color: #758195;
  font-size: 13px;
}

.knowledge-toolbar > span strong {
  color: #27364a;
}

.knowledge-search {
  display: flex;
  align-items: center;
  min-width: 0;
  width: min(430px, 100%);
}

.knowledge-search input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 36px;
  padding: 7px 11px;
  border: 1px solid #d8e0e9;
  border-right: 0;
  border-radius: 5px 0 0 5px;
  outline: none;
}

.knowledge-search input:focus {
  border-color: #7c3aed;
  box-shadow: inset 0 0 0 1px #7c3aed;
}

.knowledge-search button {
  flex: 0 0 auto;
  height: 36px;
  min-width: 58px;
  border-radius: 0 5px 5px 0;
  background: #6d42d8;
  white-space: nowrap;
}

.knowledge-search-with-clear {
  position: relative;
}

.knowledge-search-with-clear input {
  padding-right: 38px;
}

.knowledge-search-with-clear .knowledge-search-clear {
  position: absolute;
  top: 50%;
  right: 62px;
  z-index: 1;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8a95a5;
  font-size: 20px;
  line-height: 28px;
  transform: translateY(-50%);
}

.knowledge-search-with-clear .knowledge-search-clear:hover {
  background: #eef1f5;
  color: #344054;
  filter: none;
}

.knowledge-card-grid {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 16px;
  padding-right: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.knowledge-card {
  display: grid;
  grid-template-rows: auto minmax(48px, 1fr) auto auto;
  gap: 13px;
  min-height: 218px;
  padding: 17px 17px 0;
  overflow: hidden;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 10px rgb(16 24 40 / 4%);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.knowledge-card:hover {
  border-color: #bfcbe0;
  box-shadow: 0 10px 24px rgb(16 24 40 / 9%);
  transform: translateY(-2px);
}

.knowledge-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.knowledge-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #c9d9ff;
  border-radius: 7px;
  background: #edf3ff;
  color: #315bb5;
  font-weight: 800;
}

.knowledge-card h3 {
  margin: 0 0 5px;
  overflow: hidden;
  color: #172033;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-index-type {
  color: #69778a;
  font-size: 12px;
}

.knowledge-health,
.knowledge-doc-status,
.knowledge-enabled {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 12px;
  font-style: normal;
}

.knowledge-health.ready,
.knowledge-doc-status.success,
.knowledge-enabled.on {
  background: #eaf8ee;
  color: #237a3c;
}

.knowledge-health.unavailable,
.knowledge-doc-status.danger,
.knowledge-enabled.off {
  background: #fff0f0;
  color: #b42318;
}

.knowledge-doc-status.pending {
  background: #fff6dd;
  color: #9a6700;
}

.knowledge-doc-status.neutral {
  background: #eef2f6;
  color: #59677a;
}

.knowledge-card > p {
  margin: 0;
  overflow: hidden;
  color: #69778a;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.knowledge-card-meta {
  display: flex;
  gap: 14px;
  color: #8792a3;
  font-size: 12px;
}

.knowledge-card-actions {
  min-height: 48px;
  margin: 0 -17px;
  padding: 8px 17px;
  border-top: 1px solid #edf0f4;
  cursor: default;
}

.knowledge-card-actions button:first-child {
  color: #315bb5;
}

.danger-text {
  border: 1px solid #f0c8cc;
  background: #fff;
  color: #b42318;
}

.danger-text:hover {
  background: #fff2f3;
  filter: none;
}

.knowledge-detail-title {
  min-width: 0;
}

.knowledge-back {
  flex: 0 0 auto;
  border: 1px solid #d8e0e9;
  background: #fff;
  color: #42526a;
}

.knowledge-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 3px;
  margin: -4px 0 16px;
  border-bottom: 1px solid #dce3ec;
}

.knowledge-tabs button {
  position: relative;
  min-width: 92px;
  padding: 12px 16px;
  border-radius: 0;
  background: transparent;
  color: #657287;
}

.knowledge-tabs button.active {
  color: #6d42d8;
  font-weight: 700;
}

.knowledge-tabs button.active::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  background: #6d42d8;
  content: "";
}

.knowledge-document-toolbar > button {
  margin-left: 0;
}

.knowledge-table-wrap {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #fff;
}

.knowledge-table-wrap table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
}

.knowledge-table-wrap th,
.knowledge-table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f4;
  color: #3b485a;
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}

.knowledge-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7f9fb;
  color: #687588;
  font-size: 12px;
  white-space: nowrap;
}

.knowledge-table-wrap td:first-child {
  min-width: 250px;
}

.knowledge-table-wrap th:last-child,
.knowledge-table-wrap td:last-child {
  width: 132px;
  min-width: 132px;
}

.knowledge-table-wrap td strong,
.knowledge-table-wrap td small {
  display: block;
}

.knowledge-table-wrap td small {
  margin-top: 5px;
  color: #8a95a5;
  font-size: 11px;
}

.knowledge-document-link {
  display: block;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #315bb5;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-document-link:hover {
  color: #6d42d8;
  text-decoration: underline;
  filter: none;
}

.knowledge-error-text {
  max-width: 180px;
  overflow: hidden;
  color: #b42318 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-row-actions {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 6px;
}

.knowledge-document-delete {
  min-height: 32px;
  padding: 5px 10px;
}

.knowledge-more-button {
  width: 34px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #59677a;
  font-size: 16px;
  line-height: 1;
}

.knowledge-more-button:hover {
  border-color: #d8e0e9;
  background: #f5f7fa;
  filter: none;
}

.knowledge-document-menu {
  position: fixed;
  z-index: 1200;
  width: 160px;
  padding: 5px;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(16 24 40 / 16%);
}

.knowledge-document-menu button {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: #344054;
  text-align: left;
}

.knowledge-document-menu button:hover {
  background: #f3f5f8;
  filter: none;
}

.knowledge-document-menu hr { margin: 4px 2px; border: 0; border-top: 1px solid #edf0f4; }

.knowledge-document-settings-dialog {
  width: min(1120px, calc(100vw - 24px));
  max-width: 1120px;
  padding: 0;
  overflow: hidden;
}

.knowledge-document-settings-form {
  display: grid;
  max-height: min(760px, calc(100vh - 32px));
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.knowledge-document-settings-form > .knowledge-state { min-height: 260px; }

.knowledge-document-settings-content {
  display: block;
  overflow: auto;
}

.knowledge-document-settings-editor { padding: 20px 24px; }

.knowledge-document-settings-content.preview-mode {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 44%);
  overflow: hidden;
}

.knowledge-document-settings-content.preview-mode .knowledge-document-settings-editor { overflow-y: auto; }

.knowledge-document-qa-settings {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf0f4;
}

.knowledge-qa-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #f5d8a8;
  border-radius: 7px;
  background: linear-gradient(90deg, #fff5e6, #fff);
  color: #7a4a06;
  font-size: 12px;
}

.knowledge-qa-warning strong {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #e89221;
  color: #fff;
  font-size: 11px;
}

.knowledge-document-segment-actions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #edf0f4;
}

.knowledge-document-preview-panel {
  min-width: 0;
  border-left: 1px solid #dce3ec;
  background: #f8fafc;
  overflow: hidden;
}

.knowledge-document-preview-panel > header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #dce3ec;
  background: #fff;
}

.knowledge-document-preview-panel > header strong,
.knowledge-document-preview-panel > header small { display: block; }
.knowledge-document-preview-panel > header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-document-preview-panel > header small { margin-top: 4px; color: #7b8798; }
.knowledge-document-preview-panel > header button { width: 32px; min-width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: #667085; font-size: 22px; }
.knowledge-document-preview-panel .knowledge-preview-content { height: calc(100% - 64px); overflow-y: auto; }

.knowledge-document-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #f8fafc;
}

.knowledge-document-mode-row strong,
.knowledge-document-mode-row small { display: block; }
.knowledge-document-mode-row small { margin-top: 4px; color: #7b8798; font-size: 12px; }
.knowledge-document-mode-row > span { padding: 5px 9px; border-radius: 4px; background: #ece8fb; color: #6041b0; font-size: 12px; font-weight: 700; }
.knowledge-document-settings-content h4 { margin: 18px 0 10px; color: #344054; font-size: 13px; }
.knowledge-document-parent-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.knowledge-document-parent-options label { display: flex; gap: 9px; padding: 12px; border: 1px solid #dce3ec; border-radius: 7px; cursor: pointer; }
.knowledge-document-parent-options label:has(input:checked) { border-color: #7c62c8; background: #f7f5fd; }
.knowledge-document-parent-options span,
.knowledge-document-parent-options strong,
.knowledge-document-parent-options small { display: block; }
.knowledge-document-parent-options small { margin-top: 4px; color: #7b8798; font-size: 11px; }
.knowledge-document-preprocessing { margin-top: 18px; padding-top: 1px; border-top: 1px solid #edf0f4; }
.knowledge-document-settings-note { margin-top: 18px; padding: 10px 12px; border-radius: 6px; background: #f5f7fa; color: #687588; font-size: 12px; line-height: 1.6; }

.knowledge-document-readonly-config {
  display: grid;
  gap: 18px;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid #e3e8ef;
}

.knowledge-document-readonly-config legend {
  padding: 0 10px 0 0;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.knowledge-document-readonly-config legend span {
  margin-left: 8px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 500;
}

.knowledge-document-readonly-config section > h4 { margin-top: 0; }

.knowledge-readonly-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.knowledge-readonly-choice-grid.knowledge-readonly-retrieval {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.knowledge-readonly-choice-grid label {
  display: flex;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e3e8ef;
  border-radius: 7px;
  background: #f6f7f9;
  color: #98a2b3;
}

.knowledge-readonly-choice-grid label:has(input:checked) {
  border-color: #c5b9e8;
  background: #f1eef9;
  color: #75639f;
}

.knowledge-readonly-choice-grid input[type="radio"] {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #8065ca;
}
.knowledge-readonly-choice-grid span,
.knowledge-readonly-choice-grid strong,
.knowledge-readonly-choice-grid small { display: block; min-width: 0; }
.knowledge-readonly-choice-grid small { margin-top: 4px; font-size: 11px; line-height: 1.5; }

.knowledge-readonly-input input,
.knowledge-readonly-model input,
.knowledge-readonly-weights input,
.knowledge-readonly-metrics input {
  border-color: #e1e6ed;
  background: #eef1f5;
  color: #7c8797;
  opacity: 1;
  -webkit-text-fill-color: #7c8797;
}

.knowledge-readonly-input small,
.knowledge-readonly-model small {
  display: block;
  margin-top: 5px;
  color: #98a2b3;
  font-size: 11px;
}

.knowledge-readonly-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.knowledge-readonly-metrics label { color: #7c8797; font-size: 12px; }
.knowledge-readonly-metrics label > input { margin-top: 6px; }
.knowledge-readonly-score > span { display: flex; align-items: center; gap: 6px; }
.knowledge-readonly-score > span input { width: auto; margin: 0; }

.knowledge-readonly-model,
.knowledge-readonly-weights {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e3e8ef;
  border-radius: 7px;
  background: #f7f8fa;
}

.knowledge-readonly-model > strong,
.knowledge-readonly-weights > strong {
  display: block;
  margin-bottom: 8px;
  color: #7c8797;
  font-size: 12px;
}

.knowledge-readonly-weights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.knowledge-readonly-weights > strong { grid-column: 1 / -1; margin-bottom: 0; }
.knowledge-readonly-weights label { color: #98a2b3; font-size: 11px; }
.knowledge-readonly-weights input { margin-top: 5px; }

.knowledge-document-readonly-config > p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f5f7fa;
  color: #7b8798;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .knowledge-document-settings-editor { padding: 16px; }
  .knowledge-document-settings-content.preview-mode { display: block; overflow-y: auto; }
  .knowledge-document-settings-content.preview-mode .knowledge-document-settings-editor { overflow: visible; }
  .knowledge-document-preview-panel { min-height: 360px; border-top: 1px solid #dce3ec; border-left: 0; }
  .knowledge-document-parent-options { grid-template-columns: 1fr; }
  .knowledge-readonly-choice-grid,
  .knowledge-readonly-choice-grid.knowledge-readonly-retrieval,
  .knowledge-readonly-metrics { grid-template-columns: 1fr; }
}

.knowledge-pagination {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 58px;
  color: #687588;
  font-size: 13px;
}

.knowledge-pagination button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.knowledge-segment-page {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.knowledge-segment-header {
  flex: 0 0 auto;
  margin-bottom: 14px;
}

.knowledge-segment-header > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.knowledge-segment-header > div > div {
  min-width: 0;
}

.knowledge-segment-header h3,
.knowledge-segment-header p {
  margin: 0;
}

.knowledge-segment-header h3 {
  overflow: hidden;
  color: #172033;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-segment-header p {
  margin-top: 4px;
  color: #788497;
  font-size: 12px;
}

.knowledge-segment-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #dfe5ec;
  border-radius: 7px;
  background: #fff;
}

.knowledge-segment-toolbar > label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #687588;
  font-size: 13px;
  white-space: nowrap;
}

.knowledge-segment-toolbar select {
  width: 82px;
  height: 36px;
  padding: 6px 8px;
  border: 1px solid #d8e0e9;
  border-radius: 5px;
  background: #fff;
}

.knowledge-segment-list {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #fff;
}

.knowledge-segment-item {
  padding: 17px 18px;
  border-bottom: 1px solid #e8edf3;
}

.knowledge-segment-item:last-child {
  border-bottom: 0;
}

.knowledge-segment-item > header,
.knowledge-segment-item > header > div,
.knowledge-segment-item > footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.knowledge-segment-item > header {
  justify-content: space-between;
  margin-bottom: 13px;
}

.knowledge-segment-item > header > strong {
  color: #344054;
  font-size: 13px;
}

.knowledge-segment-content,
.knowledge-segment-qa p,
.knowledge-segment-parent p,
.knowledge-child-chunks p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #344054;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.knowledge-segment-qa {
  display: grid;
  gap: 12px;
}

.knowledge-segment-qa > div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
}

.knowledge-segment-qa b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 4px;
  background: #edf3ff;
  color: #315bb5;
  font-size: 12px;
}

.knowledge-segment-qa > div + div b {
  background: #edf8f2;
  color: #237a3c;
}

.knowledge-segment-parent > span {
  display: inline-block;
  margin-bottom: 7px;
  color: #6d42d8;
  font-size: 12px;
  font-weight: 700;
}

.knowledge-child-chunks {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid #d7cdf5;
  background: #faf9fd;
}

.knowledge-child-chunks > strong {
  display: block;
  margin-bottom: 9px;
  color: #5f6d81;
  font-size: 12px;
}

.knowledge-child-chunks > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #e9e4f6;
}

.knowledge-child-chunks > div > span {
  color: #8a76c7;
  font-size: 12px;
}

.knowledge-segment-item > footer {
  flex-wrap: wrap;
  margin-top: 14px;
  color: #8490a1;
  font-size: 12px;
}

.knowledge-segment-item > footer span + span::before {
  margin-right: 8px;
  color: #c4cbd5;
  content: "ÃÂ·";
}

.knowledge-segment-error {
  margin: 10px 0 0;
  color: #b42318;
  font-size: 12px;
}

.knowledge-segment-pagination button.active {
  border-color: #6d42d8;
  background: #6d42d8;
  color: #fff;
}

.knowledge-retrieval-layout {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 18px;
  overflow: auto;
  overscroll-behavior: contain;
}

.knowledge-retrieval-query,
.knowledge-retrieval-results {
  padding: 18px;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #fff;
}

.knowledge-retrieval-query p {
  margin-top: 7px;
  color: #758195;
  font-size: 13px;
  line-height: 1.6;
}

.knowledge-retrieve-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.knowledge-retrieve-form textarea {
  min-height: 150px;
  resize: vertical;
}

.knowledge-section-title {
  justify-content: space-between;
  margin-bottom: 14px;
}

.knowledge-section-title span {
  color: #758195;
  font-size: 12px;
}

.knowledge-retrieval-record {
  padding: 14px 0;
  border-top: 1px solid #edf0f4;
}

.knowledge-retrieval-record:first-child {
  border-top: 0;
}

.knowledge-retrieval-record > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.knowledge-retrieval-record span {
  color: #237a3c;
  font-size: 12px;
  white-space: nowrap;
}

.knowledge-retrieval-record p {
  margin: 8px 0 0;
  color: #536174;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.knowledge-empty,
.knowledge-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  color: #7b8798;
  text-align: center;
}

.knowledge-empty {
  grid-column: 1 / -1;
}

.knowledge-empty strong,
.knowledge-state strong {
  color: #344054;
}

.knowledge-empty span,
.knowledge-state p {
  margin: 0;
  font-size: 13px;
}

.knowledge-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #dfe5ec;
  border-top-color: #6d42d8;
  border-radius: 50%;
  animation: knowledge-spin 800ms linear infinite;
}

@keyframes knowledge-spin { to { transform: rotate(360deg); } }

.knowledge-dialog-form {
  width: min(580px, calc(100vw - 32px));
}

.knowledge-dialog-form textarea {
  resize: vertical;
}

.knowledge-dataset-dialog-form {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.knowledge-dataset-index-note,
.knowledge-dataset-upgrade-warning {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #d99a24;
  border-radius: 5px;
  background: #fff8e8;
  color: #805c16;
  font-size: 12px;
  line-height: 1.6;
}

.knowledge-dataset-index-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #f8fafc;
}

.knowledge-dataset-index-panel > strong,
.knowledge-dataset-index-panel legend {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.knowledge-dataset-fixed-retrieval {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  background: #fff;
}

.knowledge-dataset-fixed-retrieval b {
  color: #344054;
  font-size: 13px;
}

.knowledge-dataset-fixed-retrieval span {
  color: #7b8798;
  font-size: 12px;
}

.knowledge-dataset-index-panel fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid #dce3ec;
  border-radius: 6px;
}

.knowledge-dataset-index-panel fieldset label {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid #dce3ec;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.knowledge-dataset-index-panel fieldset label:has(input:checked) {
  border-color: #7c62c8;
  background: #f7f5fd;
}

.knowledge-dataset-index-panel fieldset input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin-top: 2px;
}

.knowledge-dataset-index-panel fieldset span,
.knowledge-dataset-index-panel fieldset strong,
.knowledge-dataset-index-panel fieldset small {
  display: block;
}

.knowledge-dataset-index-panel fieldset strong {
  color: #344054;
  font-size: 12px;
}

.knowledge-dataset-index-panel fieldset small {
  margin-top: 4px;
  color: #7b8798;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 620px) {
  .knowledge-dataset-index-panel fieldset { grid-template-columns: 1fr; }
}

.knowledge-process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  background: #f8fafc;
}

.knowledge-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  font-weight: 400 !important;
}

.knowledge-check input {
  width: 16px;
  height: 16px;
  min-height: 0;
}

.knowledge-dialog-hint {
  margin: 0;
  color: #7b8798;
  font-size: 12px;
  line-height: 1.6;
}

.knowledge-upload-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.knowledge-upload-form {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  max-height: calc(100vh - 32px);
  background: #f5f7fa;
}

.knowledge-upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 12px 22px;
  border-bottom: 1px solid #e2e7ee;
  background: #fff;
}

.knowledge-upload-header h2,
.knowledge-upload-header p,
.knowledge-setting-heading h3,
.knowledge-setting-heading p,
.knowledge-upload-summary h3,
.knowledge-upload-summary > p {
  margin: 0;
}

.knowledge-upload-summary-panel > p,
#knowledgeUploadSummaryPanel > p {
  margin: 5px 0 0;
  color: #8792a3;
  font-size: 12px;
  line-height: 1.5;
}

.knowledge-upload-settings-step.preview-mode {
  grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
}

.knowledge-upload-settings-step.preview-mode .knowledge-upload-summary {
  padding: 0;
}

.knowledge-dify-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  background: #fff;
}

.knowledge-dify-preview > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
  padding: 12px 16px;
  border-bottom: 1px solid #e6ebf1;
}

.knowledge-dify-preview > header > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.knowledge-dify-preview > header > div:last-child {
  justify-items: end;
}

.knowledge-dify-preview > header span {
  color: #315cff;
  font-size: 11px;
  font-weight: 700;
}

.knowledge-dify-preview > header strong {
  max-width: 260px;
  overflow: hidden;
  color: #172033;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.knowledge-dify-preview > header small {
  color: #667085;
  font-size: 11px;
}

.knowledge-dify-preview > header button {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 11px;
}

.knowledge-preview-content {
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #8c98aa #edf1f5;
  scrollbar-width: thin;
}

.knowledge-preview-chunk {
  padding: 0 0 18px;
  color: #27364a;
}

.knowledge-preview-chunk + .knowledge-preview-chunk {
  padding-top: 18px;
  border-top: 1px solid #edf0f4;
}

.knowledge-preview-chunk header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  color: #667085;
}

.knowledge-preview-chunk header span,
.knowledge-preview-chunk header small,
.knowledge-preview-chunk header i {
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.knowledge-preview-chunk > p {
  margin: 7px 0 0;
  color: #27364a;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.knowledge-preview-qa {
  position: relative;
  padding-left: 22px;
}

.knowledge-preview-qa b {
  position: absolute;
  left: 0;
  color: #315cff;
}

.knowledge-preview-parent span {
  display: inline;
}

.knowledge-preview-parent i {
  margin-right: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  background: #edf3ff;
  color: #315cff;
  font-size: 10px;
  font-style: normal;
}

.knowledge-preview-loading,
.knowledge-preview-error {
  display: grid;
  min-height: 220px;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: #7b8798;
  text-align: center;
}

.knowledge-preview-loading p,
.knowledge-preview-error p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.knowledge-preview-error strong {
  color: #b42318;
}

.knowledge-upload-header h2 {
  color: #172033;
  font-size: 19px;
}

.knowledge-upload-header p {
  margin-top: 4px;
  color: #7b8798;
  font-size: 12px;
}

.knowledge-upload-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 20px;
  border-bottom: 1px solid #e2e7ee;
  background: #fff;
}

.knowledge-upload-steps span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8a95a5;
  font-size: 13px;
  font-weight: 600;
}

.knowledge-upload-steps span i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #d5dce6;
  border-radius: 50%;
  background: #fff;
  color: #7b8798;
  font-size: 12px;
  font-style: normal;
}

.knowledge-upload-steps span.active {
  color: #315bb5;
}

.knowledge-upload-steps span.active i {
  border-color: #315bb5;
  background: #315bb5;
  color: #fff;
}

.knowledge-upload-steps b {
  width: 76px;
  height: 1px;
  background: #d9e0e9;
}

.knowledge-upload-file-step {
  display: grid;
  grid-template-rows: minmax(240px, 1fr) auto auto;
  gap: 16px;
  min-height: 500px;
  padding: 28px;
}

.knowledge-file-drop {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  min-height: 260px;
  border: 1px dashed #aebbd0;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
}

.knowledge-file-drop:hover {
  border-color: #315bb5;
  background: #f8faff;
}

.knowledge-file-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.knowledge-file-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #eaf0ff;
  color: #315bb5;
  font-size: 26px;
}

.knowledge-file-drop small {
  max-width: calc(100% - 24px);
  color: #8a95a5;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

.knowledge-file-drop-warn {
  color: #b42318;
  font-weight: 600;
}

.knowledge-selected-files-section {
  min-height: 86px;
  border: 1px solid #e0e6ee;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
}

.knowledge-selected-files-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 13px;
  border-bottom: 1px solid #edf0f4;
}

.knowledge-selected-files-section > header span {
  color: #7b8798;
}

.knowledge-selected-files-section > header strong { color: #344054; }

.knowledge-selected-files {
  display: grid;
  max-height: 190px;
  overflow-y: auto;
}

.knowledge-selected-file-item,
.knowledge-batch-file {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 12px;
}

.knowledge-selected-file-item + .knowledge-selected-file-item,
.knowledge-batch-file + .knowledge-batch-file { border-top: 1px solid #edf0f4; }

.knowledge-selected-file-item strong,
.knowledge-selected-file-item small,
.knowledge-batch-file strong,
.knowledge-batch-file small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-selected-file-item strong,
.knowledge-batch-file strong { color: #344054; font-size: 12px; }
.knowledge-selected-file-item small,
.knowledge-batch-file small { margin-top: 3px; color: #8a95a5; font-size: 11px; }

.knowledge-file-type {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  border-radius: 5px;
  background: #edf3ff;
  color: #315bb5;
  font-size: 9px;
  font-weight: 800;
}

.knowledge-selected-file-item > button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8490a2;
  font-size: 20px;
}

.knowledge-selected-file-item > button:hover { background: #fff1f2; color: #b42318; filter: none; }
.knowledge-selected-file-item.is-rejected { background: #fff6f6; }
.knowledge-selected-file-item.is-rejected .knowledge-file-type { background: #fee4e2; color: #b42318; }
.knowledge-selected-file-item.is-rejected small {
  color: #b42318;
  white-space: normal;
}
.knowledge-selected-file-empty { display: grid; min-height: 54px; place-items: center; color: #98a2b3; font-size: 12px; }

.knowledge-upload-processing-step {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: 500px;
  padding: 28px;
  overflow: hidden;
}

.knowledge-batch-progress-head { display: flex; align-items: center; gap: 13px; }
.knowledge-batch-progress-head h3,
.knowledge-batch-progress-head p { margin: 0; }
.knowledge-batch-progress-head h3 { color: #243044; font-size: 16px; }
.knowledge-batch-progress-head p { margin-top: 4px; color: #7b8798; font-size: 12px; }
.knowledge-batch-progress { height: 7px; margin: 18px 0; overflow: hidden; border-radius: 5px; background: #e8edf4; }
.knowledge-batch-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: #315bb5; transition: width 180ms ease; }
.knowledge-batch-progress i.complete { background: #16835f; transition: none; }
.knowledge-batch-complete-icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: #e8f7f1; color: #16835f; font-size: 16px; font-weight: 800; }
.knowledge-batch-files { overflow-y: auto; border: 1px solid #e0e6ee; border-radius: 7px; background: #fff; }
.knowledge-batch-file em { max-width: 180px; color: #7b8798; font-size: 11px; font-style: normal; text-align: right; overflow-wrap: anywhere; }
.knowledge-batch-file em.uploading { color: #315bb5; }
.knowledge-batch-file em.success { color: #16835f; }
.knowledge-batch-file em.error { color: #b42318; }
.knowledge-upload-processing-step > .knowledge-upload-footer { margin: 18px -28px -28px; }

.knowledge-upload-settings-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

.knowledge-upload-settings-main {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 18px 10px 18px 18px;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  scrollbar-color: #758195 #e2e7ed;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.knowledge-upload-settings-main::-webkit-scrollbar {
  width: 12px;
}

.knowledge-upload-settings-main::-webkit-scrollbar-track {
  border-radius: 8px;
  background: #e2e7ed;
}

.knowledge-upload-settings-main::-webkit-scrollbar-thumb {
  border: 2px solid #e2e7ed;
  border-radius: 8px;
  background: #758195;
}

.knowledge-upload-settings-main::-webkit-scrollbar-thumb:hover {
  background: #7d899a;
}

.knowledge-setting-section {
  overflow: hidden;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #fff;
}

.knowledge-setting-section.knowledge-setting-locked {
  border-color: #e2e6ec;
  background: #f5f6f8;
}

.knowledge-setting-section.knowledge-setting-locked .knowledge-setting-heading,
.knowledge-setting-section.knowledge-setting-locked .knowledge-setting-body {
  background: #f5f6f8;
}

.knowledge-setting-section.knowledge-setting-locked :is(input, select) {
  border-color: #dfe3e8;
  background: #eceff3;
  color: #7c8797;
  opacity: 1;
  -webkit-text-fill-color: #7c8797;
}

.knowledge-setting-section.knowledge-setting-locked label,
.knowledge-setting-section.knowledge-setting-locked small { color: #8b95a4; }

.knowledge-setting-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf0f4;
}

.knowledge-setting-heading > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 6px;
  background: #edf3ff;
  color: #315bb5;
  font-size: 12px;
  font-weight: 800;
}

.knowledge-setting-heading h3 {
  color: #243044;
  font-size: 14px;
}

.knowledge-setting-heading p {
  margin-top: 3px;
  color: #8792a3;
  font-size: 11px;
}

.knowledge-setting-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.knowledge-setting-body > label,
.knowledge-retrieval-controls > label,
.knowledge-model-field {
  display: grid;
  gap: 6px;
  color: #475467;
  font-size: 12px;
  font-weight: 600;
}

.knowledge-setting-body :is(input[type="text"], input[type="number"], select),
.knowledge-retrieval-controls input,
.knowledge-rerank-row select {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #d8e0e9;
  border-radius: 5px;
  background: #fff;
  color: #27364a;
}

.knowledge-choice-grid {
  display: grid;
  gap: 9px;
}

.knowledge-index-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.knowledge-retrieval-choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.knowledge-segment-choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.knowledge-segment-stack {
  gap: 8px;
  background: #fbfcfe;
}

.knowledge-segment-mode {
  overflow: hidden;
  border: 1px solid #dfe4eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 4%);
}

.knowledge-segment-mode:has(.knowledge-segment-mode-head > input:checked) {
  border-color: #3165ff;
  box-shadow: 0 0 0 1px #3165ff;
}

.knowledge-segment-mode-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px;
  background: #f8f9fb;
  cursor: pointer;
}

.knowledge-segment-mode-head > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.knowledge-segment-mode-head > i {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 3px 10px rgb(15 23 42 / 12%);
  color: #315cff;
  font-style: normal;
  font-size: 17px;
}

.knowledge-segment-mode:nth-of-type(2) .knowledge-segment-mode-head > i {
  color: #00a6d9;
}

.knowledge-segment-mode-head > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.knowledge-segment-mode-head strong {
  color: #172033;
  font-size: 14px;
}

.knowledge-segment-mode-head small {
  color: #667085;
  font-size: 11px;
  line-height: 1.45;
}

.knowledge-segment-mode-body {
  display: grid;
  gap: 14px;
  padding: 12px 16px 14px;
}

.knowledge-segment-mode-body h4 {
  margin: 3px 0 -5px;
  color: #1f2a44;
  font-size: 12px;
}

.knowledge-segment-mode-body .knowledge-process-grid {
  padding: 0;
  border: 0;
  background: transparent;
}

.knowledge-general-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.knowledge-parent-grid,
.knowledge-child-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 52px 8px !important;
}

.knowledge-number-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d8e0e9;
  border-radius: 5px;
  background: #fff;
}

.knowledge-setting-body .knowledge-number-unit input[type="number"] {
  min-width: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
}

.knowledge-number-unit span {
  padding: 0 10px;
  color: #667085;
  font-size: 11px;
  font-weight: 400;
}

.knowledge-help {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid #b9c0cc;
  border-radius: 50%;
  color: #8a94a4;
  font-size: 9px;
  font-weight: 700;
  cursor: help;
}

.knowledge-rule-list-compact .knowledge-check {
  padding: 4px 0;
  border: 0;
  color: #27364a;
}

.knowledge-rule-list-compact .knowledge-check span {
  display: inline;
}

.knowledge-qa-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid #edf0f4;
}

.knowledge-qa-row select {
  width: 180px;
  min-height: 34px;
}

.knowledge-parent-option {
  position: relative;
  display: block;
  padding: 11px 42px 11px 52px;
  border: 1px solid #e0e5ec;
  border-radius: 8px;
  cursor: pointer;
}

.knowledge-parent-paragraph-card {
  overflow: hidden;
  border: 1px solid #e0e5ec;
  border-radius: 8px;
}

.knowledge-parent-paragraph-card .knowledge-parent-option {
  border: 0;
  border-radius: 0;
}

.knowledge-parent-option > input {
  position: absolute;
  opacity: 0;
}

.knowledge-parent-option > span {
  display: grid;
  gap: 3px;
}

.knowledge-parent-option > span > i {
  position: absolute;
  top: 12px;
  left: 14px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: #eef2ff;
  color: #315cff;
  font-style: normal;
}

.knowledge-parent-option b {
  color: #27364a;
  font-size: 12px;
}

.knowledge-parent-option small {
  color: #667085;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.knowledge-parent-option > em {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 15px;
  height: 15px;
  border: 1px solid #c9d0dc;
  border-radius: 50%;
}

.knowledge-parent-option:has(input:checked) > em {
  border: 4px solid #3165f5;
}

.knowledge-segment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.knowledge-segment-actions button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
}

.knowledge-text-button {
  background: transparent;
  color: #344054;
}

.knowledge-text-button:hover {
  background: #f2f4f7;
  filter: none;
}

.knowledge-chunk-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d9e1ec;
  border-radius: 7px;
  background: #fff;
  color: #667085;
  font-size: 12px;
}

.knowledge-chunk-preview article {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid #edf0f4;
  border-radius: 5px;
}

.knowledge-chunk-preview article b {
  color: #315cff;
}

.knowledge-chunk-preview article p {
  max-height: 76px;
  margin: 0;
  overflow: hidden;
  white-space: pre-wrap;
}

.knowledge-choice-grid label {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 12px 12px 12px 38px;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.knowledge-choice-grid label:has(input:checked) {
  border-color: #315bb5;
  box-shadow: inset 0 0 0 1px #315bb5;
  background: #f7f9ff;
}

.knowledge-choice-grid label:has(input:disabled) {
  opacity: .5;
  cursor: not-allowed;
}

.knowledge-choice-grid input {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 16px;
  height: 16px;
  accent-color: #315bb5;
}

.knowledge-choice-grid strong {
  color: #27364a;
  font-size: 13px;
}

.knowledge-choice-grid small,
.knowledge-model-field small {
  color: #8490a2;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.knowledge-model-field.disabled {
  opacity: .52;
}

.knowledge-process-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e0e6ee;
  border-radius: 7px;
  background: #f8fafc;
}

.knowledge-process-panel h4 {
  margin: 0;
  color: #344054;
  font-size: 13px;
}

.knowledge-process-panel .knowledge-process-grid {
  padding: 0;
  border: 0;
  background: transparent;
}

.knowledge-process-grid label,
.knowledge-inline-fields label {
  display: grid;
  gap: 6px;
  color: #475467;
  font-size: 12px;
  font-weight: 600;
}

.knowledge-inline-fields {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.knowledge-inline-fields p,
.knowledge-field-help {
  margin: 0;
  color: #7b8798;
  font-size: 11px;
  line-height: 1.55;
}

.knowledge-segment-toggle {
  display: inline-flex;
  width: fit-content;
  padding: 3px;
  border: 1px solid #d8e0e9;
  border-radius: 6px;
  background: #fff;
}

.knowledge-segment-toggle label {
  position: relative;
  padding: 7px 16px;
  border-radius: 4px;
  color: #667085;
  cursor: pointer;
  font-size: 12px;
}

.knowledge-segment-toggle label:has(input:checked) {
  background: #edf3ff;
  color: #315bb5;
  font-weight: 700;
}

.knowledge-segment-toggle input {
  position: absolute;
  opacity: 0;
}

.knowledge-rule-list {
  display: grid;
  gap: 0;
}

.knowledge-rule-list .knowledge-check {
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid #e5e9ef;
}

.knowledge-rule-list .knowledge-check:first-child {
  border-top: 0;
}

.knowledge-rule-list span,
.knowledge-rerank-row span {
  display: grid;
  gap: 3px;
}

.knowledge-rule-list strong,
.knowledge-rerank-row strong {
  color: #344054;
  font-size: 12px;
}

.knowledge-rule-list small,
.knowledge-rerank-row small {
  color: #8490a2;
  font-size: 11px;
  line-height: 1.45;
}

.knowledge-retrieval-panel {
  overflow: hidden;
  border: 1px solid #e0e6ee;
  border-radius: 7px;
  background: #f8fafc;
}

.knowledge-slider-setting {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1.5fr) 76px;
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  border-top: 1px solid #e5e9ef;
}

.knowledge-slider-setting:first-child {
  border-top: 0;
}

.knowledge-slider-setting > div {
  display: grid;
  gap: 4px;
}

.knowledge-slider-setting label {
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.knowledge-slider-setting small {
  color: #8490a2;
  font-size: 11px;
}

.knowledge-slider-setting input[type="number"] {
  width: 76px;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid #d8e0e9;
  border-radius: 5px;
  background: #fff;
}

.knowledge-slider-setting input[type="range"],
.knowledge-process-panel input[type="range"] {
  width: 100%;
  accent-color: #315bb5;
}

.knowledge-slider-setting input:disabled {
  opacity: .45;
}

.knowledge-weight-labels {
  display: flex;
  justify-content: space-between;
  color: #667085;
  font-size: 12px;
}

.knowledge-weight-labels b {
  color: #315bb5;
}

.knowledge-retrieval-controls {
  display: grid;
  grid-template-columns: 110px minmax(150px, 1fr) 130px;
  gap: 12px;
  align-items: end;
}

.knowledge-retrieval-controls .knowledge-check {
  min-height: 38px;
}

.knowledge-rerank-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #edf0f4;
}

.knowledge-upload-summary {
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  border-left: 1px solid #dce3ec;
  background: #fff;
}

.knowledge-upload-summary h3 {
  color: #27364a;
  font-size: 15px;
}

.knowledge-upload-summary > p {
  margin-top: 5px;
  color: #8792a3;
  font-size: 12px;
  line-height: 1.5;
}

.knowledge-upload-summary dl {
  display: grid;
  gap: 0;
  margin: 16px 0;
}

.knowledge-upload-summary dl > div {
  display: grid;
  gap: 5px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f4;
}

.knowledge-upload-summary dt {
  color: #8a95a5;
  font-size: 11px;
}

.knowledge-upload-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #344054;
  font-size: 12px;
  line-height: 1.5;
}

.knowledge-upload-note {
  padding: 10px;
  border-left: 3px solid #d99a24;
  border-radius: 4px;
  background: #fff8e8;
  color: #805c16;
  font-size: 11px;
  line-height: 1.55;
}

.knowledge-upload-footer {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-height: 62px;
  padding: 11px 18px;
  border-top: 1px solid #dce3ec;
  background: #fff;
}

.knowledge-upload-footer button {
  min-width: 92px;
  min-height: 38px;
}

@media (max-width: 900px) {
  .knowledge-upload-settings-step { grid-template-columns: 1fr; grid-template-rows: auto auto auto; overflow-y: auto; }
  .knowledge-upload-settings-main { min-height: auto; overflow: visible; }
  .knowledge-upload-summary { border-top: 1px solid #dce3ec; border-left: 0; }
  .knowledge-upload-settings-step.preview-mode { grid-template-columns: 1fr; }
  .knowledge-dify-preview { min-height: 520px; }
  .knowledge-retrieval-choices { grid-template-columns: 1fr; }
  .knowledge-segment-choices { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .knowledge-upload-dialog { width: calc(100vw - 16px); }
  .knowledge-upload-steps b { width: 20px; }
  .knowledge-upload-steps span { font-size: 11px; }
  .knowledge-index-choices, .knowledge-retrieval-controls, .knowledge-rerank-row { grid-template-columns: 1fr; }
  .knowledge-process-grid, .knowledge-inline-fields, .knowledge-slider-setting { grid-template-columns: 1fr; }
  .knowledge-general-grid, .knowledge-parent-grid, .knowledge-child-grid { grid-template-columns: 1fr; padding-right: 0 !important; padding-left: 0 !important; }
  .knowledge-qa-row { align-items: flex-start; flex-wrap: wrap; }
  .knowledge-slider-setting input[type="number"] { width: 100%; }
  .knowledge-upload-file-step { padding: 16px; }
}

@media (max-width: 1280px) {
  .knowledge-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .workbench.knowledge-mode #knowledgeView { margin: -16px; }
  .knowledge-board { padding: 16px; }
  .knowledge-header { margin: -16px -16px 16px; padding: 12px 16px; }
  .knowledge-toolbar { align-items: stretch; flex-direction: column; }
  .knowledge-toolbar > span { margin-left: 0; }
  .knowledge-card-grid, .knowledge-retrieval-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .knowledge-header { align-items: flex-start; flex-direction: column; }
  .knowledge-header > div:not(.knowledge-header-actions):not(.knowledge-detail-title),
  .knowledge-detail-title { width: 100%; }
  .knowledge-header-actions { width: 100%; }
  .knowledge-header-actions button { flex: 1; }
  .knowledge-card-grid { grid-template-columns: 1fr; }
  .knowledge-card-head { grid-template-columns: 42px minmax(0, 1fr); }
  .knowledge-health { grid-column: 2; }
  .knowledge-card-meta { flex-wrap: wrap; }
  .knowledge-detail-title { align-items: flex-start; flex-direction: column; }
  .knowledge-process-grid { grid-template-columns: 1fr; }
  .knowledge-segment-header > div,
  .knowledge-segment-toolbar { align-items: stretch; flex-direction: column; }
  .knowledge-segment-toolbar .knowledge-search { width: 100%; }
  .knowledge-segment-toolbar > label { justify-content: space-between; }
  .knowledge-segment-item { padding: 14px 12px; }
  .knowledge-segment-item > header { align-items: flex-start; }
  .knowledge-segment-pagination { flex-wrap: wrap; justify-content: center; padding: 10px 0; }
}

/* The primary module navigation is fixed; only the page content below it scrolls. */
.main {
  overflow: hidden;
  scrollbar-gutter: auto;
}

.workbench {
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.workbench > .module-nav {
  position: relative;
  top: auto;
  min-width: 0;
  margin: 0;
}

.workbench-scroll {
  min-width: 0;
  min-height: 0;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #aeb8c6 transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.workbench-scroll::-webkit-scrollbar {
  width: 10px;
}

.workbench-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.workbench-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: #aeb8c6;
  background-clip: padding-box;
}

.workbench-scroll::-webkit-scrollbar-thumb:hover {
  background: #8d99aa;
  background-clip: padding-box;
}

.workbench.ai-mode {
  padding-top: 0;
}

.workbench.ai-mode .workbench-scroll {
  padding-top: 12px;
}

.workbench.pipeline-mode .workbench-scroll {
  overflow: hidden;
}

@media (max-width: 900px) {
  .workbench-scroll {
    padding: 16px;
  }

  .workbench.ai-mode .workbench-scroll {
    padding-top: 12px;
  }

}

/* Knowledge graph workspace */
.workbench.graph-mode #graphView { background: #f4f7fb; }
.graph-board { max-width: 1660px; margin: 0 auto; padding: 20px 24px 32px; }
.graph-tabs {
  align-items: center; gap: 4px; min-height: 54px; margin: 0; padding: 0 10px;
  border: 1px solid #dce3ed; border-bottom-color: #ccd6e4; border-radius: 8px 8px 0 0;
  background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / 4%);
}
.graph-tabs button {
  position: relative; min-height: 52px; padding: 0 15px; border: 0; color: #526071;
  font-size: 14px; font-weight: 600; transition: color 150ms ease, background 150ms ease;
}
.graph-tabs button:hover { background: #f6f8fb; color: #1e293b; }
.graph-tabs button.active { border: 0; background: transparent; color: #6d28d9; }
.graph-tabs button.active::after {
  position: absolute; right: 14px; bottom: -1px; left: 14px; height: 3px;
  border-radius: 3px 3px 0 0; background: #7c3aed; content: "";
}
.graph-visual-panel, .graph-data-panel {
  margin: 0; padding: 18px; border: 1px solid #dce3ed; border-top: 0;
  border-radius: 0 0 8px 8px; background: #fff; box-shadow: 0 12px 30px rgb(20 34 52 / 6%);
}
.graph-controls {
  gap: 8px; min-height: 60px; padding: 10px 12px; border: 1px solid #26354b;
  border-radius: 7px 7px 0 0; background: #1b2739; box-shadow: inset 0 1px rgb(255 255 255 / 5%);
}
.graph-controls > button, .graph-controls select, .graph-search input, .graph-search button { min-height: 36px; }
.graph-controls > button:first-child {
  padding: 7px 13px; border: 1px solid #8b5cf6; background: #7c3aed;
  box-shadow: 0 4px 12px rgb(124 58 237 / 24%); font-weight: 600;
}
.graph-controls > button:first-child:hover { background: #6d28d9; }
.graph-controls select {
  width: 172px; border-color: #d6deea; border-radius: 5px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 8%); font-size: 13px;
}
.graph-depth { gap: 7px; color: #c7d2e2; font-weight: 600; }
.graph-depth select { width: 58px; }
.graph-relations { overflow: hidden; border: 1px solid #d6deea; border-radius: 5px; background: #fff; }
.graph-relations button, .graph-relations button:first-child, .graph-relations button:last-child {
  min-height: 34px; padding: 5px 10px; border: 0; border-right: 1px solid #e2e8f0;
  border-radius: 0; color: #475569; font-weight: 500;
}
.graph-relations button:last-child { border-right: 0; }
.graph-relations button:hover { background: #f1f5f9; color: #111827; }
.graph-relations button.active { background: #ede9fe; color: #6d28d9; box-shadow: inset 0 -2px #7c3aed; }
.graph-search { min-width: 200px; max-width: none; }
.graph-search input { border-color: #d6deea; font-size: 13px; }
.graph-search button { width: 40px; padding: 0; border: 1px solid #8b5cf6; background: #7c3aed; color: #fff; }
.graph-search button:hover { border-color: #6d28d9; background: #6d28d9; color: #fff; filter: none; }
#graphRefreshBtn { padding: 7px 12px; border: 1px solid #8b5cf6; background: #7c3aed; color: #fff; }
#graphRefreshBtn:hover { border-color: #6d28d9; background: #6d28d9; color: #fff; filter: none; }
.graph-canvas {
  min-height: 610px; border-color: #142137;
  background: linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px), radial-gradient(circle at 50% 42%, #17243b 0, #0d1729 52%, #091221 100%);
  background-size: 32px 32px, 32px 32px, auto; box-shadow: inset 0 12px 38px rgb(0 0 0 / 18%);
}
.graph-canvas svg { height: min(650px, calc(100vh - 250px)); min-height: 560px; }
.graph-edge line { stroke: #6f86aa; stroke-width: 1.4; opacity: .8; }
.graph-edge text { fill: #b8c7dc; font-size: 10px; stroke: #101a2d; stroke-width: 4px; }
.graph-node circle { stroke-width: 3px; filter: drop-shadow(0 0 7px rgb(139 92 246 / 42%)); }
.graph-node:hover circle { transform: scale(1.18); filter: drop-shadow(0 0 12px rgb(255 255 255 / 48%)); }
.graph-node text { fill: #f2f6fc; font-size: 11px; stroke: #0d1729; stroke-width: 4px; }
.graph-canvas svg { touch-action: none; user-select: none; }
.graph-node { cursor: grab; }
.graph-node.dragging { cursor: grabbing; }
.graph-node.dragging circle { transform: scale(1.16); filter: drop-shadow(0 0 15px rgb(255 255 255 / 55%)); }
.graph-canvas svg.is-dragging .graph-node:not(.dragging) { opacity: .86; }
.graph-layout-animate .graph-node,
.graph-layout-animate .graph-edge line,
.graph-layout-animate .graph-edge text { transition: transform 240ms ease, x 240ms ease, y 240ms ease, x1 240ms ease, y1 240ms ease, x2 240ms ease, y2 240ms ease; }
.graph-node-park circle { fill: #f59e0b; filter: drop-shadow(0 0 10px rgb(245 158 11 / 52%)); }
.graph-node-related_enterprise circle { fill: #f25562; filter: drop-shadow(0 0 8px rgb(242 85 98 / 45%)); }
.graph-node-industry circle { fill: #13a986; filter: drop-shadow(0 0 8px rgb(19 169 134 / 45%)); }
.graph-actionbar { min-height: 58px; padding: 0 0 14px; border-bottom: 1px solid #e6ebf2; }
.graph-actionbar button { min-height: 38px; border-radius: 5px; font-weight: 600; }
.graph-actionbar > button:first-child { background: #7c3aed; box-shadow: 0 5px 14px rgb(124 58 237 / 18%); }
.graph-stat-grid { grid-template-columns: repeat(4, minmax(130px, .8fr)) minmax(310px, 1.6fr); gap: 12px; margin: 16px 0; }
.graph-stat-grid article {
  position: relative; min-height: 96px; overflow: hidden; padding: 17px 18px;
  border-color: #dde5ef; border-radius: 7px; background: linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: 0 5px 16px rgb(30 48 73 / 5%);
}
.graph-stat-grid article::before { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: #7c3aed; content: ""; }
.graph-stat-grid article:nth-child(2)::before { background: #0f8a83; }
.graph-stat-grid article:nth-child(3)::before { background: #2563eb; }
.graph-stat-grid article:nth-child(4)::before { background: #f59e0b; }
.graph-stat-grid span { color: #69778a; font-weight: 600; }
.graph-stat-grid strong { color: #101828; font-size: 28px; font-weight: 650; }
.graph-rel-stats i { border-color: #d8e1ed; background: #fff; color: #42526a; }
.graph-table-wrap { border-color: #dbe3ed; border-radius: 7px; box-shadow: 0 5px 18px rgb(30 48 73 / 4%); }
.graph-table-wrap th { height: 44px; background: #f3f6fa; color: #59677a; font-size: 12px; font-weight: 700; }
.graph-table-wrap td { height: 48px; color: #263447; }
.graph-table-wrap tbody tr:hover { background: #f8fafc; }
.graph-status { border-color: #9bd58a; background: #effbea; color: #318326; font-weight: 600; }

@media (max-width: 1440px) {
  .graph-controls { flex-wrap: wrap; }
  .graph-search { flex: 1 1 260px; }
  .graph-stat-grid { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .graph-rel-stats { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .graph-board { padding: 12px; }
  .graph-tabs { overflow-x: auto; }
  .graph-tabs button { flex: 0 0 auto; }
  .graph-visual-panel, .graph-data-panel { padding: 10px; }
  .graph-controls { align-items: stretch; }
  .graph-relations { overflow-x: auto; }
  .graph-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Knowledge graph full-width layout */
#graphView {
  width: 100%;
  min-width: 0;
}
#graphView > #graphContent.module-placeholder {
  display: block;
  width: 100%;
  min-height: calc(100vh - 190px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#graphView .graph-board {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
#graphView .graph-tabs,
#graphView .graph-visual-panel,
#graphView .graph-data-panel {
  width: 100%;
  max-width: none;
}
#graphView .graph-visual-panel,
#graphView .graph-data-panel {
  min-height: calc(100vh - 245px);
}
#graphView .graph-canvas {
  min-height: calc(100vh - 315px);
}
#graphView .graph-canvas svg {
  height: calc(100vh - 315px);
  min-height: 610px;
}
#graphView #graphRootFilter {
  width: 260px;
  min-width: 260px;
}
#graphView .graph-search {
  flex: 0 1 300px;
  width: 300px;
  min-width: 220px;
  max-width: 300px;
}

@media (max-width: 800px) {
  #graphView > #graphContent.module-placeholder { min-height: calc(100vh - 150px); }
  #graphView .graph-visual-panel, #graphView .graph-data-panel { min-height: calc(100vh - 205px); }
  #graphView #graphRootFilter, #graphView .graph-search {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

.workbench.graph-fixed-mode .workbench-scroll {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow-y: hidden;
  scrollbar-gutter: auto;
}

.workbench.graph-fixed-mode .topbar {
  flex: 0 0 auto;
}

.workbench.graph-fixed-mode #graphView {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.workbench.graph-fixed-mode #graphContent {
  height: 100%;
  min-height: 0;
}

.workbench.graph-fixed-mode #graphView .graph-board {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.workbench.graph-fixed-mode #graphView .graph-tabs {
  flex: 0 0 auto;
}

.workbench.graph-fixed-mode #graphView .graph-visual-panel,
.workbench.graph-fixed-mode #graphView .graph-data-panel {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.workbench.graph-fixed-mode #graphView .graph-controls,
.workbench.graph-fixed-mode #graphView .graph-actionbar,
.workbench.graph-fixed-mode #graphView .graph-stat-grid {
  flex: 0 0 auto;
}

.workbench.graph-fixed-mode #graphView .graph-canvas {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
}

.workbench.graph-fixed-mode #graphView .graph-canvas svg {
  height: max(100%, 610px);
  min-height: 610px;
}

.workbench.graph-fixed-mode #graphView .graph-table-wrap {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
}

.workbench.graph-fixed-mode #graphView .graph-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Ã¦ÂÂÃ¥ÂÂÃ§ÂÂÃ¦ÂÂ¿Ã¥Â·Â¥Ã¤Â½ÂÃ¥ÂÂ°Ã¨Â§ÂÃ¨Â§ÂÃ¥Â±ÂÃ¯Â¼ÂÃ¤Â¿ÂÃ§ÂÂÃ¥ÂÂÃ¦ÂÂÃ¥Â­ÂÃ¦Â®ÂµÃ¥ÂÂÃ¤ÂºÂ¤Ã¤ÂºÂÃ¯Â¼ÂÃ¥ÂÂªÃ©ÂÂÃ¦ÂÂÃ¥Â±ÂÃ§Â¤ÂºÃ¥Â±ÂÃ£ÂÂ */
.workbench.invest-mode .workbench-scroll {
  overflow-y: hidden;
  scrollbar-gutter: auto;
}

.workbench.invest-mode #investView {
  height: calc(100vh - 64px);
  min-height: 0;
  margin: -24px;
}

.workbench.invest-mode .invest-board {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  margin: 0;
  padding: 0 24px 34px;
  background: #f1f3f6;
  border-top: 0;
}

.workbench.invest-mode .invest-header {
  display: grid;
  grid-template-columns: minmax(150px, 180px) 1fr;
  gap: 24px;
  align-items: center;
  min-height: 66px;
  margin: 0 -24px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid #e1e6ed;
  flex: 0 0 auto;
}

.workbench.invest-mode .invest-board-title {
  font-size: 19px;
  color: #172033;
}

.workbench.invest-mode .invest-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 12px;
  justify-self: stretch;
  white-space: normal;
}

.workbench.invest-mode .invest-summary span {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 10px;
  color: #8792a3;
  font-size: 12px;
  line-height: 1.2;
  background: #f8fafc;
  border: 1px solid #edf0f4;
  border-radius: 6px;
}

.workbench.invest-mode .invest-summary strong {
  color: #3155a6;
  font-size: 22px;
  line-height: 1;
}

.workbench.invest-mode .invest-summary span:nth-child(2) strong { color: #2563eb; }
.workbench.invest-mode .invest-summary span:nth-child(3) strong { color: #4d9b1f; }
.workbench.invest-mode .invest-summary span:nth-child(4) strong { color: #d97706; }

.workbench.invest-mode .invest-workspace {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 26px 0 0;
}

.workbench.invest-mode .invest-tabs {
  display: none;
}

.workbench.invest-mode .invest-filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e0e5eb;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(15 23 42 / 3%);
}

.workbench.invest-mode .status-filters {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.workbench.invest-mode .status-chip {
  min-height: 34px;
  padding: 6px 14px;
  border-color: #d9dee7;
  border-radius: 5px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  white-space: nowrap;
}

.workbench.invest-mode .status-chip.active {
  border-color: #7c3aed;
  background: #7c3aed;
  color: #fff;
}

.workbench.invest-mode .invest-actions {
  flex: 0 0 auto;
  gap: 7px;
  flex-wrap: nowrap;
}

.workbench.invest-mode .invest-actions #newEnterpriseBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 15px;
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
  font-weight: 700;
}

.workbench.invest-mode .invest-actions #newEnterpriseBtn::before {
  content: "+";
  margin-right: 6px;
  font-size: 18px;
  font-weight: 400;
  line-height: 0;
}

.workbench.invest-mode .invest-actions #newEnterpriseBtn:hover {
  background: #6d28d9;
  filter: none;
}

.workbench.invest-mode .invest-actions > button:not(#newEnterpriseBtn) {
  min-height: 34px;
  padding: 6px 10px;
  white-space: nowrap;
}

.knowledge-header-actions button[data-knowledge-action="refresh"] {
  border-color: #8b5cf6;
  background: #7c3aed;
  color: #fff;
}

.knowledge-header-actions button[data-knowledge-action="refresh"]:hover {
  border-color: #6d28d9;
  background: #6d28d9;
  color: #fff;
  filter: none;
}

.knowledge-toolbar .knowledge-create-dataset {
  height: 36px;
  border-color: #8b5cf6;
  background: #7c3aed;
  color: #fff;
}

.knowledge-toolbar .knowledge-create-dataset:hover {
  border-color: #6d28d9;
  background: #6d28d9;
  color: #fff;
  filter: none;
}

.workbench.invest-mode .industry-filter-box {
  position: relative;
  width: 142px;
  flex: 0 0 142px;
}

.workbench.invest-mode .industry-filter-select {
  width: 100%;
  min-height: 34px;
  padding: 6px 44px 6px 9px;
  color: #64748b;
  border-color: #d9dee7;
  background: #fff;
}

.workbench.invest-mode .industry-filter-clear {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 25px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border-radius: 50%;
  background: #eef1f5;
  color: #7b8494;
  font-size: 14px;
  line-height: 16px;
  transform: translateY(-50%);
}

.workbench.invest-mode .industry-filter-clear:hover {
  background: #e2e6ec;
  color: #344054;
  filter: none;
}

.workbench.invest-mode .invest-search-box {
  position: relative;
  width: 200px;
  flex: 0 0 200px;
}

.workbench.invest-mode .invest-search {
  width: 100%;
  height: 34px;
  padding: 7px 34px 7px 11px;
  border-color: #d9dee7;
}

.workbench.invest-mode .invest-search-clear {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border-radius: 50%;
  background: #eef1f5;
  color: #7b8494;
  font-size: 17px;
  line-height: 20px;
  transform: translateY(-50%);
}

.workbench.invest-mode .invest-search-clear:hover {
  background: #e2e6ec;
  color: #344054;
  filter: none;
}

.workbench.invest-mode :is(.industry-filter-select, .invest-search):focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgb(124 58 237 / 10%);
  outline: none;
}

.workbench.invest-mode .invest-count-row {
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  color: #8993a3;
  font-size: 13px;
}

.workbench.invest-mode .invest-count-row strong {
  color: #172033;
  font-size: 16px;
}

.workbench.invest-mode .invest-count-row .ghost {
  margin-left: auto;
  min-height: 32px;
  padding: 5px 11px;
  border-color: #d9dee7;
  background: #fff;
}

.workbench.invest-mode .company-grid {
  height: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 16px;
}

.workbench.invest-mode .invest-list-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.workbench.invest-mode .invest-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 52px;
  margin-top: 14px;
  color: #667085;
  font-size: 13px;
  flex: 0 0 auto;
}

.workbench.invest-mode .invest-pagination button {
  min-width: 70px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #d9dee7;
  background: #fff;
}

.workbench.invest-mode .invest-pagination button:disabled {
  background: #f1f3f6;
  color: #a4acb8;
  cursor: not-allowed;
}

.workbench.invest-mode .invest-pagination strong {
  color: #172033;
}

.workbench.invest-mode .company-card {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 17px 18px 0;
  border-color: #e0e5eb;
  border-radius: 8px;
  box-shadow: 0 2px 7px rgb(15 23 42 / 3%);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.workbench.invest-mode .company-card:hover {
  border-color: #c8d2e3;
  box-shadow: 0 10px 24px rgb(15 23 42 / 9%);
  transform: translateY(-2px);
}

.workbench.invest-mode .company-card-head {
  align-items: center;
}

.workbench.invest-mode .company-card-head h3 {
  order: 2;
  font-size: 17px;
}

.workbench.invest-mode .company-card-head .status {
  order: 1;
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid #9ec5ff;
  border-radius: 4px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
}

.workbench.invest-mode .company-card p,
.workbench.invest-mode .company-meta {
  font-size: 13px;
}

.workbench.invest-mode .company-tags span {
  padding: 3px 8px;
  border: 1px solid #d2e1ff;
  border-radius: 4px;
  background: #f5f8ff;
  color: #2563eb;
}

.workbench.invest-mode .company-channel {
  padding: 8px 10px;
  border-left: 2px solid #7c3aed;
  border-radius: 4px;
  background: #faf9ff;
  font-size: 12px;
}

.workbench.invest-mode .company-actions {
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  min-height: 48px;
  margin: 5px -18px 0;
  padding: 8px 10px;
  border-top: 1px solid #edf0f4;
}

.workbench.invest-mode .company-actions button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.workbench.invest-mode .company-actions .delete-enterprise-button {
  margin-left: auto;
  border: 1px solid #f1c5ca;
  background: #fff;
  color: #b42318;
}

.workbench.invest-mode .company-actions .delete-enterprise-button:hover {
  border-color: #e7a8b0;
  background: #fff2f3;
  filter: none;
}

.enterprise-dialog-form {
  width: min(720px, calc(100vw - 32px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  padding: 0 28px 26px;
}

.enterprise-dialog-head {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  margin: 0 -28px;
  padding: 0 28px;
  border-bottom: 1px solid #e8ecf2;
}

.enterprise-dialog-head h2 {
  margin: 0;
  color: #172033;
  font-size: 20px;
  font-weight: 700;
}

.dialog-close-button {
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  color: #8a94a4;
  font-size: 22px;
  line-height: 1;
}

.dialog-close-button:hover {
  background: #f1f3f6;
  color: #172033;
  filter: none;
}

.enterprise-dialog-form label {
  gap: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

.enterprise-dialog-form :is(input, select, textarea) {
  min-height: 42px;
  border-color: #d8dee8;
  border-radius: 6px;
  padding: 10px 12px;
  color: #1f2937;
  font-weight: 400;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.enterprise-dialog-form :is(input, select, textarea):focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgb(124 58 237 / 12%);
  outline: none;
}

.enterprise-dialog-form select {
  cursor: pointer;
}

.enterprise-dialog-form textarea {
  min-height: 96px;
}

.enterprise-dialog-form .enterprise-field-wide,
.enterprise-dialog-form .dialog-actions {
  grid-column: 1 / -1;
}

.enterprise-dialog-form .dialog-actions {
  margin: 4px -28px -26px;
  padding: 16px 28px;
  border-top: 1px solid #e8ecf2;
  background: #fafbfc;
}

.enterprise-dialog-form .dialog-actions button {
  min-width: 86px;
  min-height: 38px;
}

.enterprise-dialog-form .dialog-actions button[type="submit"] {
  background: #7c3aed;
}

@media (max-width: 1250px) {
  .workbench.invest-mode .invest-filterbar {
    align-items: stretch;
    flex-direction: column;
  }

  .workbench.invest-mode .invest-actions {
    flex-wrap: wrap;
  }

  .workbench.invest-mode .company-grid {
    height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .workbench.invest-mode .invest-list-scroll {
    padding-right: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .workbench.invest-mode .company-card {
    min-height: 258px;
  }
}

@media (max-height: 760px) {
  .workbench.invest-mode .company-grid {
    height: auto;
    grid-template-rows: none;
  }

  .workbench.invest-mode .invest-list-scroll {
    padding-right: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .workbench.invest-mode .company-card {
    min-height: 258px;
  }
}

@media (max-width: 900px) {
  .workbench.invest-mode #investView {
    margin: -16px;
  }

  .workbench.invest-mode .invest-board {
    margin: 0;
    padding: 0 16px 24px;
  }

  .workbench.invest-mode .invest-header {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    margin: 0 -16px;
    padding: 14px 16px;
  }

  .workbench.invest-mode .invest-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workbench.invest-mode .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .workbench.invest-mode .invest-summary,
  .workbench.invest-mode .company-grid,
  .enterprise-dialog-form {
    grid-template-columns: 1fr;
  }

  .enterprise-dialog-form .enterprise-field-wide,
  .enterprise-dialog-form .dialog-actions {
    grid-column: auto;
  }

  .enterprise-dialog-form {
    padding-right: 18px;
    padding-left: 18px;
  }

  .enterprise-dialog-head,
  .enterprise-dialog-form .dialog-actions {
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }
}

/* Keep the application workspace usable on narrow screens. */
@media (max-width: 900px) {
  .app,
  .app.sidebar-collapsed {
    grid-template-columns: 78px minmax(0, 1fr) !important;
  }

  .property-contract-current {
    align-items: stretch;
    flex-direction: column;
  }

  .property-contract-current > div button {
    flex: 1;
  }

  .property-contract-shell {
    grid-template-rows: auto minmax(320px, 68vh) auto;
  }

  .app.auth-guest,
  .app.auth-guest.sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sidebar {
    width: 78px;
    min-width: 78px;
  }

  .sidebar :is(.brand-full, .nav-label, .lock, .nav-section-title, .user-box span) {
    display: none;
  }

  .sidebar .brand-short {
    display: inline;
  }

  .sidebar .nav {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
  }

  .sidebar .user-box {
    padding-right: 10px;
    padding-left: 10px;
  }
}
/* Ã¨Â´Â¢Ã¥ÂÂ¡Ã§Â®Â¡Ã§ÂÂ */
.finance-page { display: grid; gap: 12px; min-width: 0; }
.finance-loading { padding: 48px; color: #64748b; text-align: center; }
.finance-panel { min-width: 0; background: #fff; border: 1px solid #dfe5eb; border-radius: 6px; padding: 14px; }
.finance-action-panel { padding: 12px 14px; }
.finance-toolbar, .finance-filterbar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.finance-meter-toolbar { position: relative; z-index: 20; flex-wrap: nowrap; margin-bottom: 12px; overflow: visible; padding-bottom: 2px; }
.finance-meter-toolbar > button, .finance-meter-toolbar > select { flex: 0 0 auto; }
.finance-meter-level { position: relative; flex: 0 0 140px; width: 140px; }
.finance-meter-level > #financeMeterLevelTrigger {
  width: 100%;
  min-height: 34px;
  justify-content: flex-start;
  border: 1px solid #d8dbe5;
  border-radius: 4px;
  padding: 6px 30px 6px 11px;
  background: #fff;
  color: #8c93a1;
  text-align: left;
}
.finance-meter-level > #financeMeterLevelTrigger::after {
  position: absolute;
  right: 11px;
  content: "\2304";
  color: #a3a9b5;
  font-size: 15px;
  transform: translateY(-2px);
}
.finance-meter-level.open > #financeMeterLevelTrigger::after { content: "\2303"; transform: translateY(2px); }
.finance-meter-level.selected > #financeMeterLevelTrigger { border-color: #7c3aed; color: #4f586a; }
.finance-meter-level.selected > #financeMeterLevelTrigger::after { display: none; }
.finance-meter-level > #financeMeterLevelClear {
  position: absolute;
  top: 8px;
  right: 9px;
  z-index: 2;
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #a2a8b3;
  font-size: 15px;
  line-height: 18px;
}
.finance-meter-level > #financeMeterLevelClear:hover { background: #f0ecfa; color: #7c3aed; filter: none; }
.finance-meter-level-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  display: grid;
  width: 140px;
  padding: 5px 0;
  border: 1px solid #e2e3e9;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 5px 14px rgb(44 38 61 / 14%);
}
.finance-meter-level-menu::before {
  position: absolute;
  top: -5px;
  left: 28px;
  width: 9px;
  height: 9px;
  border-top: 1px solid #e2e3e9;
  border-left: 1px solid #e2e3e9;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}
.finance-meter-level > .finance-meter-level-menu > button {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  padding: 7px 20px;
  background: #fff;
  color: #596273;
  text-align: left;
}
.finance-meter-level-menu > button:hover,
.finance-meter-level-menu > button[aria-selected="true"] { background: #f5f6f8; color: #4d5667; filter: none; }
.finance-meter-search { flex: 0 1 300px; min-width: 220px; }
.finance-meter-task-meta { flex: 0 0 auto; color: #475569; font-size: 13px; white-space: nowrap; }
.workbench.finance-meter-mode .workbench-scroll { overflow-y: hidden; background: #f3f5f9; }
.finance-meter-panel {
  border-color: #e1ddec;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgb(76 54 126 / 6%);
}
.finance-meter-panel .finance-meter-toolbar { gap: 10px; margin-bottom: 14px; }
.finance-meter-panel .finance-meter-toolbar > button {
  min-height: 34px;
  border: 1px solid #d9dce6;
  border-radius: 4px;
  background: #fff;
  color: #596273;
  box-shadow: none;
}
.finance-meter-panel #financeMeterUploadBtn {
  border-color: #7c3aed;
  background: #7c3aed;
  color: #fff;
}
.finance-meter-panel #financeMeterUploadBtn:hover:not(:disabled) { border-color: #6d28d9; background: #6d28d9; filter: none; }
.finance-meter-panel .finance-meter-toolbar > button:hover:not(:disabled):not(#financeMeterUploadBtn) { border-color: #b9a8e8; color: #6d28d9; filter: none; }
.finance-meter-panel .finance-meter-toolbar > button:disabled {
  border-color: #e1e3ea;
  background: #fafbfc;
  color: #a9afbb;
  cursor: not-allowed;
  opacity: 1;
}
.finance-meter-panel .finance-meter-toolbar input,
.finance-meter-panel .finance-meter-toolbar select {
  border-color: #d8dbe5;
  background: #fff;
  color: #596273;
  box-shadow: none;
}
.finance-meter-panel .finance-meter-toolbar input::placeholder { color: #a0a6b2; }
.finance-meter-panel .finance-meter-toolbar input:focus,
.finance-meter-panel .finance-meter-toolbar select:focus { border-color: #9b7be7; outline: 2px solid #ede7ff; outline-offset: 0; }
.finance-meter-panel .finance-meter-task-meta { color: #687084; }
.finance-wrap { flex-wrap: wrap; }
.finance-toolbar label { display: grid; gap: 4px; color: #64748b; font-size: 12px; }
.finance-toolbar input, .finance-toolbar select, .finance-filterbar input, .finance-filterbar select, .finance-dialog input, .finance-pager select { min-height: 34px; border: 1px solid #cfd8e3; border-radius: 4px; padding: 6px 9px; background: #fff; color: #172033; }
.finance-toolbar button, .finance-filterbar button, .finance-pager button, .finance-row-actions button, .finance-tabs button, .finance-table-wrap td > button, .finance-dialog button, .finance-park-list button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.finance-toolbar > input:not([type="file"]):not([type="hidden"]),
.finance-toolbar > select,
.finance-filterbar > input,
.finance-filterbar > select,
.finance-charge-filter-field > input,
.finance-dialog input { height: 34px; }
.finance-toolbar > button,
.finance-filterbar > button,
.finance-charge-filterbar > #financeRuleClear,
.finance-dialog footer > button,
.finance-park-form > button {
  height: 34px;
  min-height: 34px;
  padding: 5px 12px;
}
.finance-meter-level > #financeMeterLevelTrigger,
.finance-fee-park > #financeFeeParkTrigger,
.finance-receipt-project > #financeReceiptProjectTrigger,
.finance-payment-project > .finance-project-trigger,
.finance-over-project > #financeOverProjectTrigger,
.finance-over-project > #financeSewageProjectTrigger,
.finance-charge-park > #financeChargeParkTrigger,
.finance-history-type > #financeHistoryTypeTrigger { height: 34px; min-height: 34px; }
.finance-button-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.finance-help { margin: 8px 0 0; color: #64748b; font-size: 12px; }
.finance-task-meta { margin-left: auto; color: #475569; font-size: 13px; }
.finance-filterbar { flex-wrap: wrap; margin-bottom: 12px; }
.finance-filterbar > span { margin-left: auto; color: #64748b; font-size: 13px; }
.finance-search { position: relative; display: inline-flex; min-width: 240px; }
.finance-search input { width: 100%; padding-right: 32px; }
.finance-search button { position: absolute; right: 2px; top: 2px; min-width: 30px; min-height: 30px; padding: 0; border: 0; background: transparent; color: #64748b; font-size: 20px; }
.finance-consent, .finance-inline-check { display: flex !important; grid-auto-flow: column; align-items: center; gap: 6px !important; color: #334155 !important; font-size: 13px !important; }
.finance-consent input, .finance-inline-check input { width: 16px; min-height: 16px; margin: 0; }
.finance-table-wrap { width: 100%; min-width: 0; overflow: auto; border: 1px solid #e2e8f0; }
.finance-table-wrap table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.finance-table-wrap th { position: sticky; top: 0; z-index: 1; padding: 9px 10px; background: #f5f7fa; border-right: 1px solid #e2e8f0; border-bottom: 1px solid #d9e0e8; color: #334155; font-weight: 600; text-align: left; white-space: nowrap; }
.finance-meter-panel .finance-table-wrap { height: calc(100dvh - 320px); min-height: 300px; overflow-y: auto; }
.finance-meter-panel .finance-table-wrap thead { position: relative; z-index: 2; }
.finance-meter-panel .finance-table-empty table { height: 100%; }
.finance-meter-panel .finance-table-wrap { border-color: #e4e2eb; background: #fff; scrollbar-color: #c8c5d2 #f5f3f9; scrollbar-width: thin; }
.finance-meter-panel .finance-table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.finance-meter-panel .finance-table-wrap::-webkit-scrollbar-track { background: #f5f3f9; }
.finance-meter-panel .finance-table-wrap::-webkit-scrollbar-thumb { border: 2px solid #f5f3f9; border-radius: 8px; background: #c8c5d2; }
.finance-meter-panel .finance-table-wrap th { border-color: #e6e3ed; background: #fff; color: #7b8190; }
.finance-meter-panel .finance-table-wrap td { border-color: #eeecf2; background: #fff; color: #4f586a; }
.finance-meter-panel .finance-table-wrap tbody tr:hover td { background: #faf9fd; }
.finance-meter-panel .finance-empty { color: #8e929d !important; }
.finance-table-wrap td { max-width: 260px; padding: 9px 10px; border-right: 1px solid #edf1f5; border-bottom: 1px solid #edf1f5; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finance-table-wrap tbody tr:hover td { background: #f8fafc; }
.finance-table-wrap .finance-risk-high td { background: #fff1f2; }
.finance-table-wrap .finance-risk-medium td { background: #fffbea; }
.finance-empty { height: 120px; color: #94a3b8 !important; text-align: center !important; }
.finance-meter-panel .finance-empty { height: auto; vertical-align: middle; }
.finance-status { display: inline-flex; align-items: center; min-height: 24px; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.finance-status.success { background: #ecfdf3; color: #16794b; }
.finance-status.warning { background: #fff7dc; color: #98610c; }
.finance-status.danger { background: #fff0f1; color: #c33a46; }
.finance-status.info { background: #eef2ff; color: #4338ca; }
.finance-status.manual { background: #f0fdfa; color: #0f766e; }
.finance-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 12px; color: #64748b; font-size: 13px; }
.finance-pager label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.finance-meter-panel .finance-pager { color: #686f80; }
.finance-meter-panel .finance-pager select { border-color: #d8dbe5; background: #fff; color: #596273; }
.finance-meter-panel .finance-pager button { border: 1px solid transparent; background: transparent; color: #6d28d9; }
.finance-meter-panel .finance-pager button:hover:not(:disabled) { border-color: #e2d8fb; background: #f6f1ff; filter: none; }
.finance-meter-panel .finance-pager button:disabled { color: #c4c7cf; cursor: not-allowed; opacity: 1; }
.workbench.finance-fee-mode .workbench-scroll { overflow-y: hidden; background: #f3f5f9; }
.finance-fee-panel {
  border-color: #e1ddec;
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(76 54 126 / 6%);
}
.finance-fee-toolbar {
  position: relative;
  z-index: 20;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 14px;
  overflow: visible;
  padding-bottom: 2px;
}
.finance-fee-date-picker { position: relative; flex: 1 1 420px; min-width: 330px; }
.finance-fee-date-picker > #financeFeeDateTrigger {
  display: grid; grid-template-columns: 16px minmax(110px, 1fr) 14px minmax(110px, 1fr); width: 100%; height: 34px;
  min-height: 34px; align-items: center; gap: 6px; border: 1px solid #d8dbe5; border-radius: 4px;
  padding: 5px 30px 5px 10px; background: #fff; color: #596273; box-shadow: none;
}
.finance-fee-date-picker > #financeFeeDateTrigger:hover { border-color: #9b7be7; filter: none; }
.finance-fee-date-picker.selected > #financeFeeDateTrigger,
.finance-fee-date-picker.open > #financeFeeDateTrigger { border-color: #7c3aed; outline: 1px solid #ede7ff; }
.finance-fee-date-picker .finance-button-icon { color: #a4aab5; }
.finance-fee-date-value { min-width: 0; overflow: hidden; color: #4f586a; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.finance-fee-date-value.placeholder { color: #9ba2ae; }
.finance-fee-date-separator { color: #596273; text-align: center; }
.finance-fee-date-picker > #financeFeeDateClear {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 18px; min-width: 18px; min-height: 18px;
  border: 0; border-radius: 50%; padding: 0; background: transparent; color: #a2a8b3; font-size: 14px; line-height: 18px;
}
.finance-fee-date-picker > #financeFeeDateClear:hover { background: #f0ecfa; color: #7c3aed; filter: none; }
.finance-fee-date-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; z-index: 70; width: min(648px, calc(100vw - 40px));
  border: 1px solid #e1e3e9; border-radius: 4px; background: #fff; box-shadow: 0 8px 22px rgb(44 38 61 / 18%);
  transform: translateX(-50%);
}
.finance-fee-date-menu::before {
  position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; border-top: 1px solid #e1e3e9;
  border-left: 1px solid #e1e3e9; background: #fff; content: ""; transform: translateX(-50%) rotate(45deg);
}
#financeFeeCalendars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finance-calendar-month { min-width: 0; padding: 16px; }
.finance-calendar-month + .finance-calendar-month { border-left: 1px solid #e6e8ed; }
.finance-calendar-month > header { position: relative; display: flex; min-height: 30px; align-items: center; justify-content: center; margin-bottom: 8px; color: #505968; }
.finance-calendar-month > header strong { font-size: 15px; font-weight: 600; }
.finance-calendar-nav { position: absolute; left: 0; display: flex; gap: 2px; }
.finance-calendar-nav.right { right: 0; left: auto; }
.finance-calendar-nav > button {
  width: 26px; min-width: 26px; height: 28px; min-height: 28px; border: 0; padding: 0; background: transparent;
  color: #7e8693; font-size: 18px; font-weight: 400;
}
.finance-calendar-nav > button:hover { background: #f4efff; color: #7c3aed; filter: none; }
.finance-calendar-week,
.finance-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.finance-calendar-week { margin-bottom: 4px; border-bottom: 1px solid #edf0f4; }
.finance-calendar-week > span { display: flex; height: 30px; align-items: center; justify-content: center; color: #596273; font-size: 12px; }
.finance-calendar-days > button {
  position: relative; width: 100%; height: 36px; min-height: 36px; border: 0; border-radius: 0; padding: 0;
  background: transparent; color: #4f586a; font-size: 12px; font-weight: 400;
}
.finance-calendar-days > button:hover { background: #f3effd; color: #6d28d9; filter: none; }
.finance-calendar-days > button.outside { color: #b5bac3; }
.finance-calendar-days > button:disabled,
.finance-calendar-days > button.disabled {
  color: #c5c9d1;
  cursor: not-allowed;
  background: transparent;
}
.finance-calendar-days > button:disabled:hover,
.finance-calendar-days > button.disabled:hover {
  background: transparent;
  color: #c5c9d1;
  filter: none;
}
.finance-calendar-nav > button:disabled,
.finance-calendar-nav > button:disabled:hover {
  background: transparent;
  color: #d0d4dc;
  cursor: not-allowed;
  filter: none;
}
.finance-calendar-days > button.today { color: #7c3aed; font-weight: 700; }
.finance-calendar-days > button.in-range { background: #f1eaff; color: #6d28d9; }
.finance-calendar-days > button.range-start,
.finance-calendar-days > button.range-end { border-radius: 4px; background: #7c3aed; color: #fff; font-weight: 700; }
.finance-fee-toolbar > select { flex: 0 0 180px; width: 180px; }
.finance-fee-park { position: relative; flex: 0 0 180px; width: 180px; }
.finance-fee-park > #financeFeeParkTrigger,
.finance-receipt-project > #financeReceiptProjectTrigger,
.finance-payment-project > .finance-project-trigger,
.finance-over-project > .finance-project-trigger,
.finance-over-project > #financeOverProjectTrigger,
.finance-over-project > #financeSewageProjectTrigger,
.finance-sewage-panel .finance-over-project > #financeSewageProjectTrigger,
.finance-sewage-panel .finance-over-project > .finance-project-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  justify-content: flex-start;
  border: 1px solid #d8dbe5 !important;
  border-radius: 4px !important;
  padding: 6px 30px 6px 11px !important;
  background: #fff !important;
  color: #7b8190 !important;
  text-align: left;
  box-shadow: none !important;
  filter: none !important;
}
.finance-fee-park > #financeFeeParkTrigger > span,
.finance-receipt-project > #financeReceiptProjectTrigger > span,
.finance-payment-project > .finance-project-trigger > span,
.finance-over-project > .finance-project-trigger > span,
.finance-over-project > #financeOverProjectTrigger > span,
.finance-over-project > #financeSewageProjectTrigger > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.finance-fee-park > #financeFeeParkTrigger::after,
.finance-receipt-project > #financeReceiptProjectTrigger::after,
.finance-payment-project > .finance-project-trigger::after,
.finance-over-project > .finance-project-trigger::after,
.finance-over-project > #financeOverProjectTrigger::after,
.finance-over-project > #financeSewageProjectTrigger::after {
  position: absolute;
  right: 11px;
  content: "\2304";
  color: #a3a9b5;
  font-size: 15px;
  transform: translateY(-2px);
}
.finance-fee-park.open > #financeFeeParkTrigger::after,
.finance-receipt-project.open > #financeReceiptProjectTrigger::after,
.finance-payment-project.open > .finance-project-trigger::after,
.finance-over-project.open > .finance-project-trigger::after,
.finance-over-project.open > #financeOverProjectTrigger::after,
.finance-over-project.open > #financeSewageProjectTrigger::after {
  content: "\2303";
  transform: translateY(2px);
}
.finance-fee-park.selected > #financeFeeParkTrigger,
.finance-receipt-project.selected > #financeReceiptProjectTrigger,
.finance-payment-project.selected > .finance-project-trigger,
.finance-over-project.selected > .finance-project-trigger,
.finance-over-project.selected > #financeOverProjectTrigger,
.finance-over-project.selected > #financeSewageProjectTrigger,
.finance-sewage-panel .finance-over-project.selected > #financeSewageProjectTrigger,
.finance-sewage-panel .finance-over-project.selected > .finance-project-trigger {
  border-color: #7c3aed !important;
  color: #4f586a !important;
  background: #fff !important;
}
.finance-fee-park.selected > #financeFeeParkTrigger::after,
.finance-receipt-project.selected > #financeReceiptProjectTrigger::after,
.finance-payment-project.selected > .finance-project-trigger::after,
.finance-over-project.selected > .finance-project-trigger::after,
.finance-over-project.selected > #financeOverProjectTrigger::after,
.finance-over-project.selected > #financeSewageProjectTrigger::after {
  display: none;
}
.finance-fee-park > #financeFeeParkClear,
.finance-receipt-project > #financeReceiptProjectClear,
.finance-payment-project > .finance-project-clear,
.finance-over-project > .finance-project-clear,
.finance-over-project > #financeOverProjectClear,
.finance-over-project > #financeSewageProjectClear {
  position: absolute;
  top: 8px;
  right: 9px;
  z-index: 2;
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  border: 0 !important;
  border-radius: 50%;
  padding: 0 !important;
  background: transparent !important;
  color: #a2a8b3 !important;
  font-size: 15px;
  line-height: 18px;
  box-shadow: none !important;
}
.finance-fee-park > #financeFeeParkClear:hover,
.finance-receipt-project > #financeReceiptProjectClear:hover,
.finance-payment-project > .finance-project-clear:hover,
.finance-over-project > .finance-project-clear:hover,
.finance-over-project > #financeOverProjectClear:hover,
.finance-over-project > #financeSewageProjectClear:hover {
  background: #f0ecfa !important;
  color: #7c3aed !important;
  filter: none;
}
.finance-fee-park-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; display: grid; width: max-content; min-width: 220px;
  max-width: 320px; padding: 5px 0; border: 1px solid #e2e3e9; border-radius: 4px; background: #fff;
  box-shadow: 0 5px 14px rgb(44 38 61 / 14%);
}
.finance-fee-park-menu::before {
  position: absolute; top: -5px; left: 28px; width: 9px; height: 9px; border-top: 1px solid #e2e3e9;
  border-left: 1px solid #e2e3e9; background: #fff; content: ""; transform: rotate(45deg);
}
.finance-fee-park-menu > button {
  position: relative; z-index: 1; justify-content: flex-start; min-height: 34px; border: 0; border-radius: 0;
  padding: 7px 20px; overflow: hidden; background: #fff; color: #596273; text-align: left; text-overflow: ellipsis; white-space: nowrap;
}
.finance-fee-park-menu > button:hover,
.finance-fee-park-menu > button[aria-selected="true"] { background: #f5f6f8; color: #4d5667; filter: none; }
.finance-fee-toolbar > button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid #d9dce6;
  border-radius: 4px;
  background: #fff;
  color: #596273;
  box-shadow: none;
}
.finance-fee-toolbar > .finance-fee-primary {
  border-color: #7c3aed;
  background: #7c3aed;
  color: #fff;
}
.finance-fee-toolbar > .finance-fee-primary:hover:not(:disabled) { border-color: #6d28d9; background: #6d28d9; filter: none; }
.finance-fee-toolbar > button:hover:not(:disabled):not(.finance-fee-primary) { border-color: #b9a8e8; color: #6d28d9; filter: none; }
.finance-fee-toolbar > button:disabled { border-color: #e1e3ea; background: #fafbfc; color: #a9afbb; cursor: not-allowed; opacity: 1; }
.finance-fee-toolbar > select,
.finance-fee-search > input { border-color: #d8dbe5; background: #fff; color: #596273; box-shadow: none; }
.finance-fee-toolbar > select:focus,
.finance-fee-search > input:focus { border-color: #9b7be7; outline: 2px solid #ede7ff; outline-offset: 0; }
.finance-fee-search { flex: 0 0 220px; min-width: 220px; }
.finance-fee-search input::placeholder { color: #a0a6b2; }
.finance-fee-toolbar .finance-inline-check { flex: 0 0 auto; white-space: nowrap; }
.finance-fee-toolbar .finance-inline-check input { accent-color: #7c3aed; }
.finance-fee-toolbar .finance-task-meta { flex: 0 0 auto; margin-left: 0; color: #687084; white-space: nowrap; }
.finance-fee-panel .finance-table-wrap {
  height: calc(100dvh - 320px);
  min-height: 300px;
  border-color: #e4e2eb;
  background: #fff;
  overflow-y: auto;
  scrollbar-color: #c8c5d2 #f5f3f9;
  scrollbar-width: thin;
}
.finance-fee-panel .finance-table-wrap thead { position: relative; z-index: 2; }
.finance-fee-panel .finance-table-empty table { height: 100%; }
.finance-fee-panel .finance-table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.finance-fee-panel .finance-table-wrap::-webkit-scrollbar-track { background: #f5f3f9; }
.finance-fee-panel .finance-table-wrap::-webkit-scrollbar-thumb { border: 2px solid #f5f3f9; border-radius: 8px; background: #c8c5d2; }
.finance-fee-panel .finance-table-wrap th { border-color: #e6e3ed; background: #fff; color: #7b8190; }
.finance-fee-panel .finance-table-wrap td { border-color: #eeecf2; background: #fff; color: #4f586a; }
.finance-fee-panel .finance-table-wrap tbody tr:hover td { background: #faf9fd; }
.finance-fee-panel .finance-table-wrap .finance-risk-medium td { background: #fff9e8; }
.finance-fee-panel .finance-empty { height: auto; color: #8e929d !important; vertical-align: middle; }
.finance-fee-panel .finance-pager { color: #686f80; }
.finance-fee-panel .finance-pager select { border-color: #d8dbe5; background: #fff; color: #596273; }
.finance-fee-panel .finance-pager button { border: 1px solid transparent; background: transparent; color: #6d28d9; }
.finance-fee-panel .finance-pager button:hover:not(:disabled) { border-color: #e2d8fb; background: #f6f1ff; filter: none; }
.finance-fee-panel .finance-pager button:disabled { color: #c4c7cf; cursor: not-allowed; opacity: 1; }
.workbench.finance-charge-mode .workbench-scroll { overflow-y: auto; background: #f3f5f9; }
.workbench.finance-charge-mode:has(.finance-charge-page.finance-charge-empty-view) .workbench-scroll { overflow-y: hidden; }
.finance-charge-panel {
  border-color: #e1ddec;
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(76 54 126 / 6%);
}
.finance-charge-toolbar { position: relative; z-index: 20; flex-wrap: nowrap; gap: 10px; overflow: visible; padding-bottom: 10px; }
.finance-receipt-toolbar { flex-wrap: wrap; align-items: center; }
.finance-receipt-toolbar .finance-receipt-project { flex: 0 1 180px; min-width: 160px; }
.finance-receipt-toolbar .finance-search { flex: 0 1 190px; min-width: 150px; }
.finance-receipt-toolbar .finance-receipt-status-picker { flex: 0 0 120px; width: 120px; min-width: 120px; }
.finance-receipt-status-picker > button[aria-haspopup="listbox"] {
  position: relative; width: 100%; min-height: 34px; justify-content: flex-start; border: 1px solid #d8dbe5; border-radius: 4px;
  padding: 6px 30px 6px 11px; background: #fff; color: #7b8190; text-align: left;
}
.finance-receipt-status-picker > button[aria-haspopup="listbox"] > span {
  display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.finance-receipt-status-picker > button[aria-haspopup="listbox"]::after {
  position: absolute; right: 11px; content: "\2304"; color: #a3a9b5; font-size: 15px; transform: translateY(-2px);
}
.finance-receipt-status-picker.open > button[aria-haspopup="listbox"]::after { content: "\2303"; transform: translateY(2px); }
.finance-receipt-status-picker.selected > button[aria-haspopup="listbox"] { border-color: #7c3aed; color: #4f586a; }
.finance-receipt-status-picker.selected > button[aria-haspopup="listbox"]::after { display: none; }
.finance-receipt-status-picker > #financeReceiptOffsetStatusClear,
.finance-receipt-status-picker > [data-finance-offset-record-detail-status-clear] {
  position: absolute; top: 8px; right: 9px; z-index: 2; width: 18px; min-width: 18px; min-height: 18px;
  border: 0; border-radius: 50%; padding: 0; background: transparent; color: #a2a8b3; font-size: 15px; line-height: 18px;
}
.finance-receipt-status-picker > #financeReceiptOffsetStatusClear:hover,
.finance-receipt-status-picker > [data-finance-offset-record-detail-status-clear]:hover { background: #f0ecfa; color: #7c3aed; filter: none; }
.finance-receipt-toolbar .finance-search { isolation: isolate; }
.finance-receipt-toolbar .finance-search > input { position: relative; z-index: 0; }
.finance-receipt-toolbar .finance-search > button { z-index: 20; width: 30px; cursor: pointer; pointer-events: auto; }
.finance-receipt-toolbar .finance-receipt-date-picker { flex: 0 1 310px; min-width: 280px; }
.finance-receipt-date-picker > #financeReceiptDateTrigger {
  display: grid; grid-template-columns: 16px minmax(84px, 1fr) 14px minmax(84px, 1fr); width: 100%; height: 34px;
  min-height: 34px; align-items: center; gap: 6px; border: 1px solid #d8dbe5; border-radius: 4px;
  padding: 5px 30px 5px 10px; background: #fff; color: #596273; box-shadow: none;
}
.finance-receipt-date-picker > #financeReceiptDateTrigger:hover { border-color: #9b7be7; filter: none; }
.finance-receipt-date-picker.selected > #financeReceiptDateTrigger,
.finance-receipt-date-picker.open > #financeReceiptDateTrigger { border-color: #7c3aed; outline: 1px solid #ede7ff; }
.finance-receipt-date-picker > #financeReceiptDateClear {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 18px; min-width: 18px; min-height: 18px;
  border: 0; border-radius: 50%; padding: 0; background: transparent; color: #a2a8b3; font-size: 14px; line-height: 18px;
}
.finance-receipt-date-picker > #financeReceiptDateClear:hover { background: #f0ecfa; color: #7c3aed; filter: none; }
#financeReceiptCalendars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finance-receipt-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finance-dialog.finance-auto-offset-dialog { width: min(1680px, calc(100vw - 24px)); max-width: none; }
.finance-dialog.finance-offset-confirm-dialog { width: min(420px, calc(100vw - 32px)); }
.finance-offset-confirm-dialog > div { padding: 0; }
.finance-offset-confirm-dialog header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; }
.finance-offset-confirm-dialog header h3 { margin: 0; }
.finance-offset-confirm-content { padding: 20px; color: #303747; font-size: 15px; }
.finance-offset-confirm-dialog footer { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 18px; }
.finance-auto-offset-dialog > div:not(#toast) { display: flex; max-height: min(82vh, 820px); flex-direction: column; overflow: hidden; }
.finance-auto-offset-dialog header { flex: 0 0 auto; }
.finance-auto-offset-dialog header > div { min-width: 0; }
.finance-auto-offset-dialog header p { margin: 4px 0 0; color: #687084; font-size: 13px; }
.finance-offset-hint {
  flex: 0 0 auto;
  margin: 0 0 10px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #102027;
  color: #fff;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
}
.finance-offset-hint.success {
  border: 1px solid #b7e5aa;
  background: #f2fff0;
  color: #50b52f;
}
.finance-auto-offset-table { min-height: 220px; overflow-x: hidden; overflow-y: auto; border: 1px solid #e4e7ed; }
.finance-auto-offset-table .finance-table-wrap { width: 100%; overflow: visible; border: 0; border-radius: 0; }
.finance-auto-offset-table table { width: 100%; min-width: 0; table-layout: fixed; }
.finance-auto-offset-table th { position: sticky; top: 0; z-index: 2; background: #f7f8fa; }
.finance-auto-offset-table th:nth-child(1) { width: 11%; }
.finance-auto-offset-table th:nth-child(2) { width: 10%; }
.finance-auto-offset-table th:nth-child(3) { width: 8%; }
.finance-auto-offset-table th:nth-child(4) { width: 13%; }
.finance-auto-offset-table th:nth-child(5) { width: 10%; }
.finance-auto-offset-table th:nth-child(6) { width: 32%; }
.finance-auto-offset-table th:nth-child(7) { width: 16%; }
.finance-auto-offset-table { overflow-x: auto; }
.finance-auto-offset-table table { min-width: 1320px; }
.finance-auto-offset-table th:nth-child(1) { width: 4%; }
.finance-auto-offset-table th:nth-child(2) { width: 10%; }
.finance-auto-offset-table th:nth-child(3) { width: 9%; }
.finance-auto-offset-table th:nth-child(4) { width: 10%; }
.finance-auto-offset-table th:nth-child(5) { width: 9%; }
.finance-auto-offset-table th:nth-child(6) { width: 7%; }
.finance-auto-offset-table th:nth-child(7) { width: 13%; }
.finance-auto-offset-table th:nth-child(8) { width: 9%; }
.finance-auto-offset-table th:nth-child(9) { width: 21%; }
.finance-auto-offset-table th:nth-child(10) { width: 8%; }
.finance-auto-offset-table td { vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.finance-auto-offset-table td.finance-offset-customer-info { min-width: 250px; }
.finance-auto-offset-table td.finance-offset-description { min-width: 220px; }
.finance-auto-offset-table td.finance-offset-description textarea { width: 100%; min-height: 52px; resize: vertical; box-sizing: border-box; border: 1px solid #d8dee8; border-radius: 4px; padding: 6px 8px; color: #344054; font: inherit; line-height: 1.45; }
.finance-auto-offset-table table { min-width: 1700px; }
.finance-auto-offset-table th:nth-child(1) { width: 42px; }
.finance-auto-offset-table th:nth-child(2) { width: 110px; }
.finance-auto-offset-table th:nth-child(3) { width: 100px; }
.finance-auto-offset-table th:nth-child(4) { width: 110px; }
.finance-auto-offset-table th:nth-child(5) { width: 130px; }
.finance-auto-offset-table th:nth-child(6) { width: 90px; }
.finance-auto-offset-table th:nth-child(7) { width: 180px; }
.finance-auto-offset-table th:nth-child(8) { width: 110px; }
.finance-auto-offset-table th:nth-child(9) { width: 320px; }
.finance-auto-offset-table th:nth-child(10) { width: 400px; }
.finance-auto-offset-table th:nth-child(11), .finance-auto-offset-table td:nth-child(11) { width: 160px; min-width: 160px; max-width: 160px; }
.finance-auto-offset-table th:nth-child(12), .finance-auto-offset-table td:nth-child(12) { width: 308px; min-width: 308px; max-width: 308px; }
/* Final desktop column map: keep short fields stable and give long-content
   fields enough width without allowing them to squeeze the editable remark. */
.finance-auto-offset-table table { table-layout: fixed; width: 2100px; min-width: 2100px; }
.finance-auto-offset-table th:nth-child(1), .finance-auto-offset-table td:nth-child(1) { width: 42px; min-width: 42px; max-width: 42px; }
.finance-auto-offset-table th:nth-child(2), .finance-auto-offset-table td:nth-child(2) { width: 110px; min-width: 110px; max-width: 110px; }
.finance-auto-offset-table th:nth-child(3), .finance-auto-offset-table td:nth-child(3) { width: 100px; min-width: 100px; max-width: 100px; }
.finance-auto-offset-table th:nth-child(4), .finance-auto-offset-table td:nth-child(4) { width: 110px; min-width: 110px; max-width: 110px; }
.finance-auto-offset-table th:nth-child(5), .finance-auto-offset-table td:nth-child(5) { width: 130px; min-width: 130px; max-width: 130px; }
.finance-auto-offset-table th:nth-child(6), .finance-auto-offset-table td:nth-child(6) { width: 90px; min-width: 90px; max-width: 90px; }
.finance-auto-offset-table th:nth-child(7), .finance-auto-offset-table td:nth-child(7) { width: 180px; min-width: 180px; max-width: 180px; }
.finance-auto-offset-table th:nth-child(8), .finance-auto-offset-table td:nth-child(8) { width: 110px; min-width: 110px; max-width: 110px; }
.finance-auto-offset-table th:nth-child(9), .finance-auto-offset-table td:nth-child(9) { width: 320px; min-width: 320px; max-width: 320px; }
.finance-auto-offset-table th:nth-child(10), .finance-auto-offset-table td:nth-child(10) { width: 400px; min-width: 400px; max-width: 400px; }
.finance-auto-offset-table th:nth-child(11), .finance-auto-offset-table td:nth-child(11) { width: 160px; min-width: 160px; max-width: 160px; }
.finance-auto-offset-table th:nth-child(12), .finance-auto-offset-table td:nth-child(12) { width: 308px; min-width: 308px; max-width: 308px; }
.finance-auto-offset-table td.finance-offset-description textarea { min-width: 0; }
.finance-auto-offset-table th:nth-child(11) { width: 170px; }
.finance-auto-offset-table th:nth-child(12) { width: 250px; }
.finance-auto-offset-table td.finance-offset-customer-info { min-width: 0; font-size: 12px; line-height: 1.4; }
.finance-auto-offset-table td.finance-offset-description { min-width: 0; }
.finance-auto-offset-table td.finance-offset-description textarea { display: block; overflow-wrap: anywhere; }
.finance-auto-offset-table table { table-layout: fixed; width: 2100px; min-width: 2100px; }
.finance-auto-offset-table th:nth-child(9), .finance-auto-offset-table td:nth-child(9) { width: 320px; min-width: 320px; max-width: 320px; }
.finance-auto-offset-table th:nth-child(10), .finance-auto-offset-table td:nth-child(10) { width: 400px; min-width: 400px; max-width: 400px; }
.finance-auto-offset-table th:nth-child(11), .finance-auto-offset-table td:nth-child(11) { width: 160px; min-width: 160px; max-width: 160px; }
.finance-auto-offset-table th:nth-child(12), .finance-auto-offset-table td:nth-child(12) { width: 340px; min-width: 340px; max-width: 340px; }
.finance-auto-offset-table td.finance-offset-customer-info, .finance-auto-offset-table td.finance-offset-ids { overflow-wrap: anywhere; word-break: break-word; }
.finance-offset-history-period { color: #d92d20; background: #fff1f0; font-weight: 700; padding: 0 2px; border-radius: 2px; }
.finance-offset-customer-line { display: block; line-height: 1.55; }
.finance-offset-customer-line strong { color: #343b4a; font-weight: 600; }
.finance-offset-customer-header {
  display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex-wrap: wrap;
}
.finance-auto-offset-table th:nth-child(10) { overflow: visible; }
.finance-offset-location-filter { position: relative; flex: 0 1 auto; min-width: 132px; max-width: 200px; }
.finance-offset-location-trigger {
  position: relative; display: flex; align-items: center; width: 100%; min-height: 26px; box-sizing: border-box;
  margin: 0; padding: 1px 22px 1px 8px; border: 1px solid #d0d5dd; border-radius: 4px;
  background: #fff; color: #98a2b3; font: inherit; font-size: 12px; font-weight: 400; text-align: left; cursor: pointer;
}
.finance-offset-location-trigger.has-value { color: #344054; }
.finance-offset-location-trigger:focus {
  outline: none; border-color: #7c3aed; box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.12);
}
.finance-offset-location-trigger > span {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.finance-offset-location-trigger::after {
  position: absolute; right: 7px; color: #98a2b3; font-size: 10px; content: "\2304";
}
.finance-offset-location-menu {
  z-index: 80; max-height: 320px; overflow: auto; padding: 6px 0;
  border: 1px solid #e2e3e9; border-radius: 4px; background: #fff;
  box-shadow: 0 8px 20px rgb(44 38 61 / 16%);
}
.finance-offset-location-group { padding: 0 4px; }
.finance-offset-location-group-row {
  display: flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 8px;
}
.finance-offset-location-expand {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 22px; margin: 0; padding: 0; border: 0;
  background: transparent; color: #667085; font: inherit; font-size: 11px; cursor: pointer;
}
.finance-offset-location-option {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: #344054;
  font-size: 12px; line-height: 1.4; cursor: pointer;
}
.finance-offset-location-buildings { padding: 0 8px 6px 26px; }
.finance-offset-location-building { display: flex; min-height: 26px; }
.finance-offset-fee-types {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px dashed #e4e7ed;
}
.finance-offset-fee-type {
  display: inline-flex; align-items: center; gap: 3px;
  color: #344054; font-size: 12px; line-height: 1.4; cursor: pointer; white-space: nowrap;
}
.finance-offset-room-check {
  display: inline-flex; align-items: center; margin: 0 4px 0 0; vertical-align: middle; cursor: pointer;
}
.finance-offset-room { margin: 0 0 8px; font-size: 12px; line-height: 1.55; }
.finance-offset-room-head {
  display: flex; align-items: flex-start; gap: 4px;
}
.finance-offset-room-body {
  flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere;
}
.finance-offset-room-title {
  display: block; line-height: 1.55;
}
.finance-offset-room-name { color: #343b4a; font-weight: 600; }
.finance-offset-room-toggle {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 1.55em; margin: 0; padding: 0;
  border: 0; background: transparent; color: #667085; font: inherit; font-size: 11px; line-height: 1;
  cursor: pointer;
}
.finance-offset-room-toggle-spacer { flex: 0 0 auto; display: inline-block; width: 14px; height: 1.55em; }
.finance-offset-room-toggle:hover { color: #344054; }
.finance-offset-room-unmatched { margin-top: 6px; padding: 6px 8px; border: 1px dashed #d0d5dd; border-radius: 6px; background: #f9fafb; }
.finance-offset-extra-rooms {
  margin: 4px 0 8px; padding: 8px; border: 1px dashed #c7d2fe; border-radius: 6px; background: #f8faff;
}
.finance-offset-room-extra { margin-bottom: 6px; }
.finance-offset-room-extra:last-child { margin-bottom: 0; }
.finance-offset-unmatched-title { margin-bottom: 4px; color: #667085; font-size: 11px; }
.finance-offset-unmatched-empty, .finance-offset-muted { color: #98a2b3; font-size: 12px; }
.finance-offset-fee-inline { display: inline; min-width: 0; }
.finance-offset-fee-block { display: block; margin-top: 2px; }
.finance-offset-fee-block:first-child { margin-top: 0; }
.finance-offset-fee-check {
  display: inline-flex; align-items: center; gap: 3px; margin: 0 2px 0 0; vertical-align: middle;
  color: #344054; font-size: 12px; line-height: 1.55; cursor: pointer; white-space: nowrap;
}
.finance-offset-fee-label { color: #344054; font-weight: 600; }
.finance-offset-fee-sep, .finance-offset-check-sep { color: #98a2b3; }
.finance-offset-check {
  display: inline-flex; align-items: center; gap: 3px; margin: 0 1px; vertical-align: middle;
  color: #475467; font-size: 12px; line-height: 1.55; cursor: pointer; white-space: normal;
}
.finance-offset-check-input {
  flex: 0 0 auto; box-sizing: border-box;
  width: 12px !important; height: 12px !important; min-width: 12px !important; min-height: 12px !important;
  margin: 0 !important; padding: 0 !important; border: 1px solid #98a2b3; border-radius: 2px;
  appearance: auto; accent-color: #4f46e5; cursor: pointer; position: relative; top: 0;
}
.finance-offset-check-text { display: inline; line-height: 1.55; overflow-wrap: anywhere; }
.finance-offset-check-text mark { line-height: inherit; }
.finance-offset-details-btn {
  margin-top: 4px; padding: 2px 10px; border: 1px solid #c7d2fe; border-radius: 4px;
  background: #eef2ff; color: #4338ca; font: inherit; font-size: 12px; cursor: pointer;
}
.finance-offset-details-btn:hover { background: #e0e7ff; }
.finance-offset-details-btn[aria-expanded="true"] { background: #e0e7ff; }
.finance-offset-summary { color: #343b4a; }
.finance-offset-select { width: 42px !important; min-width: 42px; padding-left: 0 !important; padding-right: 0 !important; text-align: center !important; vertical-align: middle !important; }
.finance-offset-select input,
.finance-offset-select-all { display: block; width: 16px !important; height: 16px !important; min-width: 16px !important; min-height: 16px !important; margin: auto !important; padding: 0; accent-color: #00c896; cursor: pointer; }
.finance-auto-offset-table thead th:first-child { padding-left: 0 !important; padding-right: 0 !important; text-align: center !important; vertical-align: middle !important; }
.finance-auto-offset-table th:nth-child(2) { width: 9%; }
.finance-auto-offset-table th:nth-child(3) { width: 8%; }
.finance-auto-offset-table th:nth-child(4) { width: 8%; }
.finance-auto-offset-table th:nth-child(5) { width: 8%; }
.finance-auto-offset-table th:nth-child(6) { width: 7%; }
.finance-auto-offset-table th:nth-child(7) { width: 12%; }
.finance-auto-offset-table th:nth-child(8) { width: 8%; }
.finance-auto-offset-table th:nth-child(9) { width: 320px; }
.finance-auto-offset-table th:nth-child(10) { width: 400px; }
.finance-auto-offset-table th:nth-child(11), .finance-auto-offset-table td:nth-child(11) { width: 160px; min-width: 160px; max-width: 160px; }
.finance-auto-offset-table th:nth-child(12), .finance-auto-offset-table td:nth-child(12) { width: 308px; min-width: 308px; max-width: 308px; }
.finance-offset-money { color: #2f6f50; font-weight: 600; text-align: right; }
.finance-offset-customer { display: grid; gap: 5px; line-height: 1.45; }
.finance-offset-amount-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.finance-offset-amount-head > span { font-weight: 600; }
.finance-offset-strategy { display: grid; gap: 6px; }
.finance-offset-strategy-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.finance-offset-strategy-btn {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.finance-offset-strategy-btn:hover:not(:disabled) { border-color: #7c3aed; color: #6d28d9; }
.finance-offset-strategy-btn.active,
.finance-offset-strategy-btn.locked,
.finance-offset-strategy-btn[aria-pressed="true"] {
  border-color: #7c3aed;
  background: #f3e8ff;
  color: #6d28d9;
}
.finance-offset-strategy-btn.locked,
.finance-offset-strategy-btn:disabled { cursor: default; opacity: 1; }
.finance-offset-recombine-btn { border-style: dashed; }
.finance-offset-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.finance-offset-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.finance-offset-tag.time { background: #eef2f6; color: #475569; }
.finance-offset-tag.room { background: #f3e8ff; color: #6d28d9; }
.finance-offset-tag.threshold { background: #fff7ed; color: #c2410c; }
.finance-offset-customer strong { color: #343b4a; font-size: 13px; font-weight: 600; }
.finance-offset-customer span { color: #687084; }
.finance-offset-customer b { color: #6d28d9; font-weight: 500; }
.finance-offset-ids { color: #596273; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.finance-dialog.finance-auto-offset-dialog footer { flex: 0 0 auto; flex-wrap: wrap; justify-content: space-between; }
.finance-offset-footer-pager { min-width: 0; flex: 1 1 520px; }
.finance-offset-footer-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.finance-offset-pagination { justify-content: flex-start; padding: 0; }
.finance-offset-pagination select { min-width: 86px; }
.finance-auto-offset-dialog #financeReceiptAutoOffsetConfirm:disabled { cursor: not-allowed; opacity: .55; }
.workbench.finance-payment-mode .workbench-scroll { display: flex; flex-direction: column; overflow: hidden; background: #f3f5f9; }
.finance-payee-toolbar.finance-offset-record-toolbar { flex-wrap: wrap; }
.finance-offset-record-toolbar .finance-search {
  flex: 0 0 240px;
  width: 240px;
  min-width: 180px;
}
.finance-offset-record-toolbar .finance-payee-status {
  flex: 0 0 140px;
  width: 140px;
}
.finance-offset-record-toolbar .finance-offset-record-date-picker {
  flex: 0 0 300px;
  width: 300px;
  min-width: 260px;
  max-width: 320px;
}
.finance-offset-record-date-picker > #financeOffsetRecordDateTrigger {
  display: grid;
  grid-template-columns: 16px minmax(84px, 1fr) 14px minmax(84px, 1fr);
  width: 100%;
  height: 34px;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border: 1px solid #d8dbe5;
  border-radius: 4px;
  padding: 5px 30px 5px 10px;
  background: #fff;
  color: #596273;
  box-shadow: none;
}
.finance-offset-record-date-picker > #financeOffsetRecordDateTrigger:hover { border-color: #9b7be7; filter: none; }
.finance-offset-record-date-picker.selected > #financeOffsetRecordDateTrigger,
.finance-offset-record-date-picker.open > #financeOffsetRecordDateTrigger { border-color: #7c3aed; outline: 1px solid #ede7ff; }
.finance-offset-record-date-picker > #financeOffsetRecordDateClear {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #a2a8b3;
  font-size: 14px;
  line-height: 18px;
}
.finance-offset-record-date-picker > #financeOffsetRecordDateClear:hover { background: #f0ecfa; color: #7c3aed; filter: none; }
#financeOffsetRecordCalendars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap { overflow-x: hidden; }
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap th:nth-child(1),
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap td:nth-child(1) { width: 18%; }
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap th:nth-child(2),
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap td:nth-child(2) { width: 8%; }
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap th:nth-child(3),
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap td:nth-child(3) { width: 13%; }
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap th:nth-child(4),
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap td:nth-child(4) { width: 22%; }
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap th:nth-child(5),
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap td:nth-child(5) { width: 9%; }
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap th:nth-child(6),
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap td:nth-child(6) { width: 12%; }
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap th:nth-child(7),
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap td:nth-child(7) { width: 10%; }
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap th:nth-child(8),
.finance-payment-panel.finance-offset-record-panel .finance-table-wrap td:nth-child(8) {
  width: 8%;
  min-width: 0;
  overflow: visible;
}
.finance-offset-record-panel .finance-table-wrap th { overflow: visible; }
.finance-offset-record-panel .finance-table-wrap td:nth-child(1),
.finance-offset-record-panel .finance-table-wrap td:nth-child(4) {
  overflow: hidden;
  white-space: normal;
  max-width: none;
}
.finance-offset-record-cell { display: grid; gap: 2px; }
.finance-offset-record-cell strong { color: #334155; font-size: 13px; font-weight: 600; }
.finance-offset-record-cell.primary strong { color: #4c1d95; }
.finance-offset-record-cell span { color: #7b8190; font-size: 12px; font-weight: 400; line-height: 1.4; white-space: normal; }
.finance-offset-record-panel .finance-row-actions { flex-wrap: nowrap; white-space: nowrap; }
.finance-offset-record-panel .finance-row-actions button { min-height: 26px; border: 0; padding: 3px 6px; background: transparent; color: #6d28d9; }
.finance-offset-record-panel .finance-row-actions button:hover:not(:disabled) { background: #f4efff; filter: none; }
.finance-offset-record-rate-help { margin-left: 4px; vertical-align: middle; }
.finance-offset-record-panel .finance-offset-record-rate-help .user-field-help-trigger {
  min-height: 17px;
  padding: 0;
  background: #fff;
  color: #667085;
  box-shadow: none;
  filter: none;
}
.finance-offset-record-panel .finance-offset-record-rate-help .user-field-help-content {
  left: 0;
  right: auto;
  bottom: auto;
  top: calc(100% + 8px);
  z-index: 40;
  width: 320px;
  max-width: min(320px, calc(100vw - 48px));
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.55;
}
.finance-offset-record-panel .finance-offset-record-rate-help .user-field-help-content::after {
  top: auto;
  bottom: 100%;
  left: 11px;
  right: auto;
  border-top-color: transparent;
  border-bottom-color: #253044;
}
.finance-offset-record-panel .contract-date-sort {
  min-height: 0;
  height: auto;
  padding: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  filter: none;
}
.finance-offset-record-panel .contract-date-sort:hover { filter: none; }
.finance-offset-record-panel .contract-date-sort:hover span,
.finance-offset-record-panel .contract-date-sort:focus-visible span { color: #6d28d9; }
.finance-dialog.finance-offset-record-detail-dialog {
  width: min(1480px, calc(100vw - 24px));
  height: min(90vh, 980px);
  max-width: none;
  max-height: min(92vh, 980px);
  box-sizing: border-box;
  overflow: visible;
}
.finance-offset-record-detail-dialog > div {
  display: flex;
  height: 100%;
  max-height: none;
  box-sizing: border-box;
  flex-direction: column;
  overflow: visible;
  padding: 18px;
}
.finance-offset-record-detail-dialog header { flex: 0 0 auto; align-items: flex-start; margin-bottom: 12px; }
.finance-offset-record-detail-dialog header > div { min-width: 0; }
.finance-offset-record-detail-dialog header p { margin: 4px 0 0; overflow: hidden; color: #687084; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.finance-offset-record-detail-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  overflow: visible;
}
.finance-offset-record-detail-toolbar .finance-receipt-status-picker {
  flex: 0 0 120px;
  width: 120px;
  min-width: 120px;
}
.finance-offset-record-detail-count { color: #687084; font-size: 13px; }
.finance-offset-record-detail-table { min-width: 0; min-height: 0; flex: 1 1 0; overflow: hidden; border: 1px solid #e4e7ed; }
.finance-offset-record-detail-table .finance-table-wrap { width: 100%; height: 100%; overflow: auto; border: 0; }
.finance-offset-record-detail-table table { width: max-content; min-width: 1600px; table-layout: auto; }
.finance-offset-record-detail-table table.finance-receipt-resized { table-layout: fixed; }
.finance-offset-record-detail-table thead th.finance-col-resizable {
  position: sticky;
  top: 0;
  overflow: visible;
}
.finance-offset-record-detail-table th:nth-child(1) { width: 12%; }
.finance-offset-record-detail-table th:nth-child(2) { width: 10%; }
.finance-offset-record-detail-table th:nth-child(3) { width: 13%; }
.finance-offset-record-detail-table th:nth-child(4) { width: 8%; }
.finance-offset-record-detail-table th:nth-child(5) { width: 13%; }
.finance-offset-record-detail-table th:nth-child(6) { width: 8%; }
.finance-offset-record-detail-table th:nth-child(7) { width: 7%; }
.finance-offset-record-detail-table th:nth-child(8) { width: 8%; }
.finance-offset-record-detail-table th:nth-child(9),
.finance-offset-record-detail-table th:nth-child(10) { width: 8%; }
.finance-offset-record-detail-table th:nth-child(11),
.finance-offset-record-detail-table th:nth-child(12) { width: 10%; }
.finance-offset-record-detail-table td:not(:nth-child(11)):not(:nth-child(12)) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.finance-offset-record-detail-table .finance-receipt-remark,
.finance-offset-record-detail-table .finance-receipt-postscript {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.finance-offset-record-detail-table th:last-child,
.finance-offset-record-detail-table td:last-child { border-right: 0; }
.finance-offset-record-detail-dialog footer { flex: 0 0 auto; justify-content: flex-end; margin: 0; padding-top: 12px; }
.workbench.finance-payment-mode #financeView,
.workbench.finance-payment-mode #financeContent,
.workbench.finance-payment-mode .finance-page { display: flex; min-height: 0; flex: 1 1 0; flex-direction: column; }
.finance-payment-panel { display: flex; min-height: 0; flex: 1 1 0; flex-direction: column; overflow: hidden; }
.finance-payment-toolbar { position: relative; z-index: 20; flex: 0 0 auto; flex-wrap: wrap; margin-bottom: 12px; overflow: visible; }
.finance-payment-toolbar .finance-payment-project,
.finance-payee-filters .finance-payment-project { flex: 0 1 200px; width: 200px; min-width: 170px; }
.finance-payment-toolbar .finance-search { flex: 0 1 240px; min-width: 180px; }
.finance-payment-panel .finance-table-wrap { min-width: 0; min-height: 260px; flex: 1 1 0; overflow: auto; }
.finance-payment-panel .finance-table-wrap table { width: 100%; min-width: 760px; table-layout: fixed; }
.finance-payment-panel .finance-table-wrap th:nth-child(1) { width: 24%; }
.finance-payment-panel .finance-table-wrap th:nth-child(2) { width: 22%; }
.finance-payment-panel .finance-table-wrap th:nth-child(3) { width: 24%; }
.finance-payment-panel .finance-table-wrap th:nth-child(4) { width: 13%; }
.finance-payment-panel .finance-table-wrap th:nth-child(5) { width: 17%; }
.finance-payment-panel .finance-empty { height: 100%; min-height: 320px; vertical-align: middle; }
.finance-payment-panel > .finance-pager { flex: 0 0 auto; min-height: 50px; }
.finance-payee-panel .finance-table-wrap table { min-width: 880px; }
.finance-payee-panel .finance-table-wrap th:nth-child(1) { width: 16%; }
.finance-payee-panel .finance-table-wrap th:nth-child(2) { width: 24%; }
.finance-payee-panel .finance-table-wrap th:nth-child(3) { width: 10%; }
.finance-payee-panel .finance-table-wrap th:nth-child(4) { width: 16%; }
.finance-payee-panel .finance-table-wrap th:nth-child(5) { width: 16%; }
.finance-payee-panel .finance-table-wrap th:nth-child(6) { width: 18%; }
/* 7 åï¼å 6 ååè®¡ä¸åå æ»¡ 100%ï¼é¿å table-layout:fixed ææä½åæ¤æ 0 å®½ */
.finance-payment-panel.finance-proxy-panel .finance-table-wrap table { min-width: 1080px; }
.finance-payment-panel.finance-proxy-panel .finance-table-wrap th:nth-child(1),
.finance-payment-panel.finance-proxy-panel .finance-table-wrap td:nth-child(1) { width: 16%; }
.finance-payment-panel.finance-proxy-panel .finance-table-wrap th:nth-child(2),
.finance-payment-panel.finance-proxy-panel .finance-table-wrap td:nth-child(2) { width: 16%; }
.finance-payment-panel.finance-proxy-panel .finance-table-wrap th:nth-child(3),
.finance-payment-panel.finance-proxy-panel .finance-table-wrap td:nth-child(3),
.finance-payment-panel.finance-proxy-panel .finance-table-wrap th:nth-child(5),
.finance-payment-panel.finance-proxy-panel .finance-table-wrap td:nth-child(5) { width: 10%; }
.finance-payment-panel.finance-proxy-panel .finance-table-wrap th:nth-child(4),
.finance-payment-panel.finance-proxy-panel .finance-table-wrap td:nth-child(4),
.finance-payment-panel.finance-proxy-panel .finance-table-wrap th:nth-child(6),
.finance-payment-panel.finance-proxy-panel .finance-table-wrap td:nth-child(6) { width: 14%; }
.finance-payment-panel.finance-proxy-panel .finance-table-wrap th:nth-child(7),
.finance-payment-panel.finance-proxy-panel .finance-table-wrap td:nth-child(7) {
  width: 20%;
  min-width: 140px;
  max-width: none;
  overflow: visible;
}
.finance-payment-panel.finance-proxy-panel .finance-table-wrap td:nth-child(2) {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: none;
  line-height: 1.45;
}
.finance-proxy-panel .finance-row-actions { flex-wrap: nowrap; white-space: nowrap; }
.finance-payee-toolbar > #financeProxyCreate { flex: 0 0 auto; }
.finance-payee-key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.02em; }
.finance-payee-dialog-grid small { color: #64748b; line-height: 1.4; }
/* Ã¦ÂÂ¶Ã¦Â¬Â¾Ã¤ÂºÂºÃ©ÂÂÃ§Â½Â®Ã¥Â·Â¥Ã¥ÂÂ·Ã¦Â ÂÃ¯Â¼ÂÃ¤Â¸ÂÃ§Â»ÂÃ§Â®ÂÃ¦ÂÂ¹Ã¥Â¼ÂÃ¥ÂÂÃ¨ÂÂ²Ã¥ÂÂÃ©Â«ÂÃ¯Â¼ÂÃ¦Â¡ÂÃ©ÂÂ¢/Ã§Â¬ÂÃ¨Â®Â°Ã¦ÂÂ¬Ã¥ÂÂÃ¨Â¡Â */
.finance-payee-toolbar {
  position: relative;
  z-index: 20;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  overflow: visible;
}
.finance-payee-toolbar > #financePayeeCreate,
.finance-payee-toolbar > #financeThresholdCreate { flex: 0 0 auto; }
.finance-payee-filters,
.finance-payee-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: visible;
}
.finance-payee-filters { flex: 0 1 auto; }
.finance-payee-actions { flex: 0 0 auto; }
.finance-payee-actions > button {
  height: 34px;
  min-height: 34px;
  padding: 5px 12px;
}
.finance-payee-toolbar .finance-search {
  flex: 0 0 220px;
  width: 220px;
  min-width: 160px;
}
.finance-payee-status {
  position: relative;
  flex: 0 0 140px;
  width: 140px;
  min-width: 120px;
}
.finance-payee-status > select {
  width: 100%;
  height: 34px;
  min-height: 34px;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  padding: 6px 28px 6px 11px;
  background: #fff;
  color: #7b8190;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.finance-payee-status.selected > select {
  border-color: #7c3aed;
  color: #172033;
}
.finance-payee-status > select:focus {
  border-color: #9b7be7;
  outline: 2px solid #ede7ff;
  outline-offset: 0;
}
.finance-payee-status::after {
  position: absolute;
  right: 11px;
  top: 50%;
  content: "\2304";
  color: #a3a9b5;
  font-size: 15px;
  pointer-events: none;
  transform: translateY(-60%);
}
.finance-payee-status.selected::after { display: none; }
.finance-payee-toolbar .finance-payee-status-clear,
.finance-payee-status-clear {
  position: absolute;
  top: 8px;
  right: 9px;
  z-index: 2;
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 50%;
  padding: 0 !important;
  background: transparent !important;
  color: #a2a8b3 !important;
  font-size: 15px;
  line-height: 18px;
  box-shadow: none !important;
}
.finance-payee-toolbar .finance-payee-status-clear:hover,
.finance-payee-status-clear:hover {
  background: #f0ecfa !important;
  color: #7c3aed !important;
  filter: none;
}
.finance-payee-panel .finance-row-actions {
  flex-wrap: nowrap;
  white-space: nowrap;
}
.finance-payee-panel .finance-row-actions button {
  min-height: 26px;
  border: 0;
  padding: 3px 6px;
  background: transparent;
  color: #6d28d9;
}
.finance-payee-panel .finance-row-actions button:hover:not(:disabled) {
  background: #f4efff;
  filter: none;
}
.finance-payee-panel .finance-row-actions .danger { color: #ff5a67; }
.finance-payee-panel .finance-row-actions .danger:hover:not(:disabled) { background: #fff1f2; }
/* 8 Ã¥ÂÂÃ¯Â¼ÂÃ¥ÂÂ 7 Ã¥ÂÂÃ¥ÂÂÃ¨Â®Â¡Ã¤Â¸ÂÃ¥ÂÂÃ¥ÂÂ Ã¦Â»Â¡ 100%Ã¯Â¼ÂÃ©ÂÂ¿Ã¥ÂÂ table-layout:fixed Ã¦ÂÂÃ¦ÂÂÃ¤Â½ÂÃ¥ÂÂÃ¦ÂÂ¤Ã¦ÂÂ 0 Ã¥Â®Â½ */
.finance-threshold-panel .finance-table-wrap table { min-width: 1280px; }
.finance-threshold-panel .finance-table-wrap th:nth-child(1) { width: 14%; }
.finance-threshold-panel .finance-table-wrap th:nth-child(2) { width: 22%; }
.finance-threshold-panel .finance-table-wrap th:nth-child(3),
.finance-threshold-panel .finance-table-wrap th:nth-child(5) { width: 8%; }
.finance-threshold-panel .finance-table-wrap th:nth-child(4),
.finance-threshold-panel .finance-table-wrap th:nth-child(6) { width: 11%; }
.finance-threshold-panel .finance-table-wrap th:nth-child(7) { width: 8%; }
.finance-threshold-panel .finance-table-wrap th:nth-child(8),
.finance-threshold-panel .finance-table-wrap td:nth-child(8) {
  width: 18%;
  min-width: 180px;
  max-width: none;
  overflow: visible;
}
.finance-threshold-date { display: grid; gap: 2px; }
.finance-threshold-date strong { color: #4c1d95; font-size: 13px; }
.finance-threshold-date span { color: #7b8190; font-size: 12px; line-height: 1.4; }
.finance-threshold-scopes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.finance-threshold-chip {
  display: inline-grid;
  gap: 1px;
  max-width: 220px;
  border: 1px solid #e4ddf5;
  border-radius: 6px;
  padding: 4px 8px;
  background: #f7f4ff;
}
.finance-threshold-chip b { overflow: hidden; color: #3f3a5a; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.finance-threshold-chip small { overflow: hidden; color: #6d28d9; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.finance-threshold-more {
  min-height: 26px;
  border: 0;
  padding: 0 6px;
  background: transparent;
  color: #6d28d9;
}
.finance-threshold-panel .finance-row-actions { flex-wrap: nowrap; white-space: nowrap; }
.finance-threshold-panel .finance-row-actions button { min-height: 26px; border: 0; padding: 3px 6px; background: transparent; color: #6d28d9; }
.finance-threshold-panel .finance-row-actions .danger { color: #ff5a67; }
.finance-dialog.finance-threshold-dialog {
  width: min(480px, calc(100vw - 24px));
  max-height: min(90vh, 760px);
  overflow: hidden;
}
.finance-threshold-dialog form {
  display: flex;
  max-height: min(90vh, 760px);
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}
.finance-dialog-grid.finance-threshold-dialog-grid {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: 1fr;
  gap: 14px;
  overflow: auto;
}
.finance-threshold-dialog footer {
  flex: 0 0 auto;
  margin-top: 12px;
  padding-top: 4px;
  background: #fff;
}
.finance-threshold-date-field { display: grid; justify-items: start; gap: 6px; color: #475569; font-size: 13px; }
.finance-threshold-date-field small { display: block; max-width: 100%; color: #64748b; font-weight: 400; line-height: 1.45; }
.finance-threshold-date-picker {
  flex: 0 0 220px !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px;
  z-index: 6;
}
.finance-threshold-date-picker.open { z-index: 12; }
.finance-threshold-date-picker > #financeThresholdDateTrigger {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  width: 100%;
  height: 34px;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8dbe5;
  border-radius: 4px;
  padding: 5px 30px 5px 10px;
  background: #fff;
  color: #596273;
  box-shadow: none;
}
.finance-threshold-date-picker > #financeThresholdDateTrigger:hover { border-color: #9b7be7; filter: none; }
.finance-threshold-date-picker.selected > #financeThresholdDateTrigger,
.finance-threshold-date-picker.open > #financeThresholdDateTrigger { border-color: #7c3aed; outline: 1px solid #ede7ff; }
.finance-threshold-date-picker > #financeThresholdDateClear {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #a2a8b3;
  font-size: 14px;
  line-height: 18px;
}
.finance-threshold-date-picker > #financeThresholdDateClear:hover { background: #f0ecfa; color: #7c3aed; filter: none; }
.finance-threshold-date-menu {
  left: 0;
  width: 292px;
  min-width: 292px;
  transform: none;
}
.finance-threshold-date-menu::before {
  left: 22px;
  transform: rotate(45deg);
}
#financeThresholdCalendars { display: grid; grid-template-columns: 1fr; }
.finance-threshold-picker { display: grid; gap: 8px; }
.finance-threshold-picker-head { display: flex; align-items: center; justify-content: space-between; color: #475569; font-size: 13px; }
.finance-threshold-picker .finance-threshold-check-all { display: inline-flex; align-items: center; gap: 5px; color: #7b8190; font-size: 12px; }
.finance-threshold-picker .finance-threshold-check-all input { width: 13px; height: 13px; min-height: 13px; margin: 0; }
.finance-threshold-pair-list { max-height: 240px; overflow: auto; border: 1px solid #e6e8ed; border-radius: 6px; padding: 4px 8px; background: #fafbfc; }
.finance-threshold-pair-list section { display: grid; gap: 2px; padding: 4px 0; border-bottom: 1px solid #edf1f5; }
.finance-threshold-pair-list section:last-child { border-bottom: 0; }
.finance-threshold-group-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
}
.finance-threshold-picker .finance-threshold-group-check,
.finance-threshold-dialog-grid .finance-threshold-group-check {
  display: inline-flex;
  flex: 0 0 auto;
  grid-column: auto !important;
  align-items: center;
}
.finance-threshold-picker .finance-threshold-group-check input { width: 13px; height: 13px; min-height: 13px; margin: 0; }
.finance-dialog .finance-threshold-group-toggle {
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 72px);
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #343b4a;
  text-align: left;
  box-shadow: none;
  filter: none;
}
.finance-dialog .finance-threshold-group-toggle:hover { background: #f4efff; filter: none; }
.finance-threshold-group-toggle strong {
  overflow: hidden;
  min-width: 0;
  color: #343b4a;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.finance-threshold-group-caret { flex: 0 0 auto; color: #9aa1ad; font-size: 10px; line-height: 1; }
.finance-dialog .finance-threshold-group-fold {
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 22px;
  min-width: 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #6d28d9;
  font-size: 12px;
  box-shadow: none;
}
.finance-threshold-group-fold:hover { background: #f4efff; filter: none; }
.finance-threshold-group.collapsed .finance-threshold-group-body { display: none; }
.finance-threshold-picker .finance-threshold-pair { display: grid; grid-template-columns: 13px minmax(0, 1fr) auto; align-items: center; gap: 6px; min-height: 24px; padding-left: 20px; color: #4f586a; font-size: 12px; }
.finance-threshold-picker .finance-threshold-pair input { width: 13px; height: 13px; min-height: 13px; margin: 0; }
.finance-threshold-picker .finance-threshold-pair.occupied { color: #98a2b3; }
.finance-threshold-picker .finance-threshold-pair em { color: #9aa1ad; font-size: 11px; font-style: normal; }
.finance-threshold-empty { margin: 18px 8px; color: #8e929d; text-align: center; }
@media (max-width: 768px) {
  .finance-threshold-panel .finance-table-wrap table { min-width: 1100px; }
  .finance-threshold-dialog-grid { grid-template-columns: 1fr; }
  .finance-dialog.finance-threshold-dialog,
  .finance-threshold-dialog form { max-height: min(90dvh, 760px); }
}
.finance-algorithm-type-field { display: grid; justify-items: stretch; gap: 8px; color: #475569; font-size: 13px; }
.finance-algorithm-type-field > small { display: block; color: #64748b; font-weight: 400; line-height: 1.45; }
.finance-algorithm-options { display: grid; gap: 8px; }
.finance-algorithm-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e6e8ed;
  border-radius: 8px;
  background: #fafbfc;
  color: #475569;
  cursor: pointer;
}
.finance-algorithm-option:has(input:checked) {
  border-color: #7c3aed;
  background: #f5f0ff;
}
.finance-algorithm-option input { width: 14px; height: 14px; min-height: 14px; margin: 3px 0 0; }
.finance-algorithm-option span { display: grid; gap: 4px; }
.finance-algorithm-option strong { color: #343b4a; font-size: 13px; }
.finance-algorithm-option small { color: #64748b; font-weight: 400; line-height: 1.45; }
.workbench.finance-receipt-mode .workbench-scroll { display: flex; flex-direction: column; overflow: hidden; background: #f3f5f9; }
.workbench.finance-receipt-mode #financeView, .workbench.finance-receipt-mode #financeContent, .workbench.finance-receipt-mode .finance-page { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; }
.workbench.finance-receipt-mode .finance-receipt-panel { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; overflow: hidden; }
.finance-receipt-panel .finance-receipt-toolbar { flex: 0 0 auto; margin-bottom: 12px; }
.finance-receipt-panel .finance-table-wrap { flex: 1 1 0; min-width: 0; min-height: 260px; overflow: auto; }
.finance-receipt-panel .finance-table-wrap table { width: max-content; min-width: 2100px; min-height: 0; table-layout: auto; }
.finance-receipt-panel .finance-table-wrap:not(.finance-table-empty) table { height: max-content; }
.finance-receipt-panel .finance-table-wrap:not(.finance-table-empty) tbody tr { height: 42px; }
.finance-receipt-panel .finance-table-wrap th:nth-child(1),
.finance-receipt-panel .finance-table-wrap td:nth-child(1) {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  padding: 9px 6px;
  overflow: visible;
  text-align: center;
}
.finance-receipt-panel .finance-table-wrap th:nth-child(2) { width: 11%; }
.finance-receipt-panel .finance-table-wrap th:nth-child(3) { width: 12%; }
.finance-receipt-panel .finance-table-wrap th:nth-child(4) { width: 9%; }
.finance-receipt-panel .finance-table-wrap th:nth-child(5) { width: 8%; }
.finance-receipt-panel .finance-table-wrap th:nth-child(6) { width: 14%; }
.finance-receipt-panel .finance-table-wrap th:nth-child(7) { width: 8%; }
.finance-receipt-panel .finance-table-wrap th:nth-child(8) { width: 7%; }
.finance-receipt-panel .finance-table-wrap th:nth-child(9) { width: 7%; }
.finance-receipt-panel .finance-table-wrap th:nth-child(10) { width: 8%; }
.finance-receipt-panel .finance-table-wrap th:nth-child(11) { width: 8%; }
.finance-receipt-panel .finance-table-wrap th:nth-child(12),
.finance-receipt-panel .finance-table-wrap td:nth-child(12),
.finance-receipt-panel .finance-table-wrap th:nth-child(13),
.finance-receipt-panel .finance-table-wrap td:nth-child(13) {
  width: 180px;
  min-width: 180px;
  overflow: visible;
}
.finance-receipt-panel .finance-table-wrap th:nth-child(14),
.finance-receipt-panel .finance-table-wrap td:nth-child(14) {
  width: 11%;
  min-width: 168px;
  max-width: none;
  overflow: visible;
}
.finance-receipt-panel .finance-table-wrap td:not(:nth-child(1)):not(:nth-child(12)):not(:nth-child(13)):not(:nth-child(14)) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.finance-receipt-panel .finance-table-wrap table.finance-receipt-resized {
  table-layout: fixed;
}
.finance-receipt-panel .finance-table-wrap thead th.finance-col-resizable {
  position: sticky;
  overflow: visible;
}
.finance-col-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  z-index: 5;
  width: 7px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
}
.finance-col-resizer:hover,
body.finance-receipt-resizing .finance-col-resizer {
  background: linear-gradient(to right, transparent 2px, #7c3aed 2px, #7c3aed 5px, transparent 5px);
}
body.finance-receipt-resizing {
  cursor: col-resize;
  user-select: none;
}
body.finance-receipt-resizing * { cursor: col-resize !important; }
.finance-receipt-panel .finance-table-wrap thead th:nth-child(14) { z-index: 3; }
.finance-receipt-panel .finance-receipt-remark input,
.finance-receipt-panel .finance-receipt-postscript input {
  width: 100%;
  min-width: 160px;
  height: 28px;
  box-sizing: border-box;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
  color: #1f2937;
  font: inherit;
}
.finance-receipt-panel .finance-receipt-remark input:focus,
.finance-receipt-panel .finance-receipt-postscript input:focus {
  border-color: #7c3aed;
  outline: none;
}
.finance-receipt-panel .finance-receipt-remark input::placeholder,
.finance-receipt-panel .finance-receipt-postscript input::placeholder { color: #98a2b3; }
.finance-receipt-select-all { display: inline-flex; align-items: center; justify-content: center; }
.finance-receipt-panel .finance-receipt-select input,
.finance-receipt-panel .finance-receipt-select-all input {
  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;
  margin: 0;
  accent-color: #7c3aed;
  cursor: pointer;
}
.finance-receipt-action-help { margin-left: 4px; }
.finance-receipt-panel .finance-receipt-action-help .user-field-help-trigger {
  min-height: 17px;
  padding: 0;
  background: #fff;
  color: #667085;
  box-shadow: none;
  filter: none;
}
.finance-receipt-panel .finance-receipt-action-help .user-field-help-trigger:hover {
  filter: none;
}
.finance-receipt-panel .finance-receipt-action-help .user-field-help-content {
  left: auto;
  right: 0;
  bottom: auto;
  top: calc(100% + 8px);
  z-index: 30;
  width: 320px;
  max-width: min(320px, calc(100vw - 48px));
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.55;
}
.finance-receipt-panel .finance-receipt-action-help .user-field-help-content::after {
  top: auto;
  bottom: 100%;
  left: auto;
  right: 14px;
  border-top-color: transparent;
  border-bottom-color: #253044;
}
.finance-receipt-panel .finance-row-actions { flex-wrap: nowrap; white-space: nowrap; }
.finance-receipt-panel .finance-row-actions button { min-height: 26px; border: 0; padding: 3px 6px; background: transparent; color: #6d28d9; }
.finance-receipt-panel .finance-row-actions .danger { color: #ff5a67; }
.finance-receipt-panel .finance-row-actions .danger:hover:not(:disabled) { background: #fff1f2; }
.finance-receipt-panel .finance-table-wrap thead th { position: sticky; top: 0; z-index: 1; }
.finance-receipt-panel .finance-empty { height: 100%; min-height: 360px; vertical-align: middle; }
.finance-receipt-panel > .finance-pager { position: relative; z-index: 4; flex: 0 0 auto; min-height: 50px; background: #fff; pointer-events: auto; }
/* Ã§Â¬ÂÃ¨Â®Â°Ã¦ÂÂ¬Ã¯Â¼ÂÃ¨Â¡Â¨Ã¦Â Â¼Ã¦Â¨ÂªÃ¥ÂÂÃ¦Â»ÂÃ¥ÂÂ¨Ã¯Â¼ÂÃ¥ÂÂÃ©Â¡ÂµÃ¥Â§ÂÃ§Â»ÂÃ©ÂÂ²Ã¥ÂÂ¨Ã¥ÂºÂÃ©ÂÂ¨Ã¯Â¼ÂÃ©ÂÂ¿Ã¥ÂÂÃ¨Â¢Â«Ã¥Â®Â½Ã¨Â¡Â¨Ã¦ÂÂ¤Ã¥ÂÂºÃ¨Â§ÂÃ¥ÂÂ£Ã£ÂÂ */
@media (min-width: 769px) and (max-width: 1500px) {
  .finance-receipt-panel .finance-table-wrap,
  .finance-payment-panel .finance-table-wrap { min-height: 140px; }
  .finance-receipt-panel .finance-table-wrap table { width: max-content; min-width: 1980px; table-layout: auto; }
  .finance-receipt-panel .finance-table-wrap table:not(.finance-receipt-resized) th,
  .finance-receipt-panel .finance-table-wrap table:not(.finance-receipt-resized) td { width: auto; }
  .finance-receipt-panel .finance-table-wrap td:nth-child(7) { min-width: 118px; white-space: nowrap; }
  .finance-receipt-toolbar { gap: 8px; }
  .finance-receipt-toolbar .finance-receipt-project { flex: 0 1 150px; min-width: 136px; }
  .finance-receipt-toolbar .finance-search { flex: 0 1 140px; min-width: 120px; }
  .finance-receipt-toolbar .finance-receipt-date-picker { flex: 0 1 250px; min-width: 230px; }
  .finance-payee-toolbar { flex-wrap: wrap; }
  .finance-payee-toolbar.finance-offset-record-toolbar .finance-search,
  .finance-offset-record-toolbar .finance-payee-status,
  .finance-offset-record-toolbar .finance-offset-record-date-picker { flex: 1 1 auto; width: auto; }
  .finance-receipt-panel > .finance-pager,
  .finance-payment-panel > .finance-pager {
    flex-wrap: wrap;
    min-height: 44px;
    overflow: visible;
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .workbench.finance-payment-mode .workbench-scroll,
  .workbench.finance-payment-mode #financeView,
  .workbench.finance-payment-mode #financeContent,
  .workbench.finance-payment-mode .finance-page,
  .workbench.finance-payment-mode .finance-payment-panel { display: block; height: auto; min-height: 0; overflow: visible; }
  .workbench.finance-payment-mode .workbench-scroll { overflow-y: auto; }
  .finance-payment-toolbar,
  .finance-payee-toolbar,
  .finance-receipt-toolbar,
  .finance-offset-record-toolbar {
    display: grid !important;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .finance-payment-toolbar > *,
  .finance-payee-toolbar > *,
  .finance-receipt-toolbar > *,
  .finance-offset-record-toolbar > *,
  .finance-payee-filters > *,
  .finance-payee-actions > * { width: 100% !important; min-width: 0 !important; flex: none !important; }
  .finance-payee-filters,
  .finance-payee-actions { display: contents; }
  .finance-receipt-toolbar > button,
  .finance-payment-toolbar > button,
  .finance-payee-actions > button,
  .finance-offset-record-toolbar .finance-payee-actions > button { width: auto !important; justify-self: start; }
  .finance-receipt-date-picker,
  .finance-offset-record-date-picker { grid-column: 1 / -1; }
  .finance-payment-panel .finance-table-wrap,
  .finance-receipt-panel .finance-table-wrap {
    height: auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }
  .finance-payment-panel .finance-table-wrap table,
  .finance-receipt-panel .finance-table-wrap table {
    width: max-content;
    min-width: 820px;
    table-layout: auto;
  }
  .finance-payment-panel.finance-offset-record-panel .finance-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }
  .finance-payment-panel.finance-offset-record-panel .finance-table-wrap table {
    width: max-content;
    min-width: 980px;
    table-layout: auto;
  }
  .finance-receipt-panel .finance-table-wrap table { min-width: 1980px; }
  .finance-payment-panel .finance-table-wrap th,
  .finance-payment-panel .finance-table-wrap td,
  .finance-receipt-panel .finance-table-wrap th,
  .finance-receipt-panel .finance-table-wrap td {
    width: auto !important;
    min-width: 110px;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }
  .finance-payment-panel .finance-table-wrap th:first-child,
  .finance-payment-panel .finance-table-wrap td:first-child { min-width: 160px; }
  .finance-offset-record-panel .finance-table-wrap td:nth-child(1),
  .finance-offset-record-panel .finance-table-wrap td:nth-child(4) { white-space: normal; min-width: 168px; }
  .finance-receipt-panel .finance-table-wrap th:nth-child(1),
  .finance-receipt-panel .finance-table-wrap td:nth-child(1) { min-width: 36px; max-width: 36px; }
  .finance-receipt-panel .finance-receipt-summary { max-width: 260px; white-space: nowrap; }
  .finance-payment-panel > .finance-pager,
  .finance-receipt-panel > .finance-pager {
    justify-content: flex-start;
    width: 100%;
    min-height: 54px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 0 0;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .finance-payment-panel > .finance-pager > *,
  .finance-receipt-panel > .finance-pager > * { flex: 0 0 auto; }
  .workbench.finance-receipt-mode .workbench-scroll, .workbench.finance-receipt-mode #financeView, .workbench.finance-receipt-mode #financeContent, .workbench.finance-receipt-mode .finance-page, .workbench.finance-receipt-mode .finance-receipt-panel { display: block; height: auto; min-height: 0; overflow: visible; }
  .workbench.finance-receipt-mode .workbench-scroll { overflow-y: auto; }
  .finance-receipt-panel .finance-empty { min-height: 180px; }
  .finance-dialog.finance-offset-record-detail-dialog {
    width: calc(100vw - 16px);
    height: min(92dvh, 980px);
    max-height: min(92dvh, 980px);
    overflow: hidden;
  }
  .finance-offset-record-detail-dialog > div { height: 100%; max-height: none; overflow: hidden; padding: 14px; }
  .finance-offset-record-detail-dialog header p { white-space: normal; }
  .finance-offset-record-detail-toolbar { flex-wrap: wrap; }
  .finance-offset-record-detail-table { min-height: 0; overflow: hidden; }
  .finance-offset-record-detail-table .finance-table-wrap {
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .finance-offset-record-detail-table table {
    width: max-content !important;
    min-width: 1100px !important;
    table-layout: auto !important;
  }
  .finance-offset-record-detail-table th,
  .finance-offset-record-detail-table td {
    width: auto !important;
    min-width: 110px;
    white-space: nowrap;
  }
  .finance-dialog.finance-auto-offset-dialog { width: calc(100vw - 24px); }
  .finance-auto-offset-dialog > div:not(#toast) { max-height: calc(100dvh - 24px); padding: 14px; }
  .finance-auto-offset-table { min-height: 180px; overflow-x: hidden; }
  .finance-auto-offset-table table, .finance-auto-offset-table tbody, .finance-auto-offset-table tr, .finance-auto-offset-table td { display: block; width: 100%; }
  .finance-auto-offset-table table { min-width: 0; }
  .finance-auto-offset-table thead { display: none; }
  .finance-auto-offset-table tbody tr { padding: 8px 0; border-bottom: 1px solid #e4e7ed; }
  .finance-auto-offset-table tbody tr:last-child { border-bottom: 0; }
  .finance-auto-offset-table td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; border: 0; padding: 6px 10px; text-align: left; }
  .finance-auto-offset-table td.finance-offset-select { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: center; padding: 8px 10px; text-align: center; }
  .finance-auto-offset-table td.finance-offset-select::before { display: none; }
  .finance-auto-offset-table td.finance-offset-select input { margin: 0 !important; }
  .finance-auto-offset-table td::before { content: attr(data-label); color: #7b8190; font-size: 12px; font-weight: 600; }
  .finance-auto-offset-table td.finance-empty { display: block; min-height: 180px; padding: 72px 12px; text-align: center; }
  .finance-auto-offset-table td.finance-empty::before { display: none; }
  .finance-dialog.finance-auto-offset-dialog footer { align-items: stretch; flex-direction: column; }
  .finance-offset-footer-pager { flex-basis: auto; }
  .finance-offset-pagination { flex-wrap: wrap; gap: 6px; overflow: visible; }
  .finance-offset-footer-actions { justify-content: flex-end; }
}
.finance-charge-toolbar > select { flex: 0 0 180px; width: 180px; }
.finance-charge-park { position: relative; flex: 0 0 180px; width: 180px; }
.finance-charge-park > #financeChargeParkTrigger {
  width: 100%; min-height: 34px; justify-content: flex-start; border: 1px solid #d8dbe5; border-radius: 4px;
  padding: 6px 30px 6px 11px; overflow: hidden; background: #fff; color: #7b8190; text-align: left;
}
.finance-charge-park > #financeChargeParkTrigger > span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finance-charge-park > #financeChargeParkTrigger::after { position: absolute; right: 11px; content: "\2304"; color: #a3a9b5; font-size: 15px; transform: translateY(-2px); }
.finance-charge-park.open > #financeChargeParkTrigger::after { content: "\2303"; transform: translateY(2px); }
.finance-charge-park.selected > #financeChargeParkTrigger { border-color: #7c3aed; color: #4f586a; }
.finance-charge-park.selected > #financeChargeParkTrigger::after { display: none; }
.finance-charge-park > #financeChargeParkClear {
  position: absolute !important;
  top: 8px !important;
  right: 9px !important;
  z-index: 3;
  display: inline-flex !important;
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  padding: 0 !important;
  background: transparent !important;
  color: #a2a8b3 !important;
  font-size: 15px;
  line-height: 18px;
  box-shadow: none !important;
}
.finance-charge-park > #financeChargeParkClear.hidden { display: none !important; }
.finance-charge-park > #financeChargeParkClear:hover {
  background: #f0ecfa !important;
  color: #7c3aed !important;
  filter: none;
}
.finance-charge-park-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; display: grid; width: max-content; min-width: 208px;
  max-width: 320px; padding: 5px 0; border: 1px solid #e2e3e9; border-radius: 4px; background: #fff;
  box-shadow: 0 5px 14px rgb(44 38 61 / 14%);
}
.finance-charge-park-menu::before {
  position: absolute; top: -5px; left: 28px; width: 9px; height: 9px; border-top: 1px solid #e2e3e9;
  border-left: 1px solid #e2e3e9; background: #fff; content: ""; transform: rotate(45deg);
}
.finance-charge-park-menu > button {
  position: relative; z-index: 1; justify-content: flex-start; min-height: 34px; border: 0; border-radius: 0;
  padding: 7px 20px; overflow: hidden; background: #fff; color: #596273; text-align: left; text-overflow: ellipsis; white-space: nowrap;
}
.finance-charge-park-menu > button:hover { background: #f5f6f8; color: #4d5667; filter: none; }
.finance-charge-park-menu > button[aria-selected="true"] { background: #fff; color: #7c3aed; font-weight: 600; }
.finance-charge-toolbar > button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid #d9dce6;
  border-radius: 4px;
  background: #fff;
  color: #596273;
  box-shadow: none;
}
.finance-charge-toolbar > button:hover:not(:disabled):not(.finance-charge-primary):not(.finance-charge-check) { border-color: #b9a8e8; color: #6d28d9; filter: none; }
.finance-charge-toolbar > .finance-charge-primary { border-color: #7c3aed; background: #7c3aed; color: #fff; }
.finance-charge-toolbar > .finance-charge-primary:hover:not(:disabled) { border-color: #6d28d9; background: #6d28d9; filter: none; }
.finance-charge-toolbar > .finance-charge-check { border-color: #67ba39; background: #67ba39; color: #fff; }
.finance-charge-toolbar > .finance-charge-check:hover:not(:disabled) { border-color: #55a72c; background: #55a72c; filter: none; }
.finance-charge-toolbar > button:disabled { border-color: #e1e3ea; background: #fafbfc; color: #a9afbb; cursor: not-allowed; opacity: 1; }
.finance-charge-toolbar > select { border-color: #d8dbe5; background: #fff; color: #596273; box-shadow: none; }
.finance-charge-toolbar > select:focus { border-color: #9b7be7; outline: 2px solid #ede7ff; outline-offset: 0; }
.finance-charge-toolbar .finance-task-meta { flex: 0 0 auto; margin-left: 0; color: #687084; white-space: nowrap; }
.finance-charge-rule-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 10px; color: #6d28d9; font-size: 13px; }
.finance-charge-rule-head > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.finance-charge-rule-head strong { font-size: 14px; }
.finance-charge-rule-head-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.finance-charge-rule-head-actions > button { flex: 0 0 auto; min-height: 28px; border: 0; padding: 3px 4px; background: transparent; color: #7c3aed; font-size: 13px; }
.finance-charge-rule-head-actions > button:hover { background: #f5f0ff; filter: none; }
.finance-charge-rule-body { display: grid; gap: 0; }
.finance-charge-filterbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr)) minmax(160px, 1.25fr) auto;
  gap: 9px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #eadfff;
  border-radius: 9px;
  background: #f1e7ff;
}
.finance-charge-filterbar input {
  min-width: 0;
  min-height: 34px;
  border: 1px solid #dcd9e5;
  border-radius: 4px;
  padding: 6px 10px;
  background: #fff;
  color: #596273;
}
.finance-charge-filter-field { position: relative; min-width: 0; }
.finance-charge-filter-field > input { width: 100%; padding-right: 30px; }
.finance-charge-filter-field > .finance-charge-filter-clear {
  position: absolute; top: 50%; right: 7px; width: 18px; min-width: 18px; min-height: 18px; transform: translateY(-50%);
  border: 0; border-radius: 50%; padding: 0; background: transparent; color: #a2a8b3; font-size: 14px; line-height: 18px;
}
.finance-charge-filter-field > .finance-charge-filter-clear:hover { border: 0; background: #f0ecfa; color: #7c3aed; filter: none; }
.finance-charge-filterbar input::placeholder { color: #a0a6b2; }
.finance-charge-filterbar input:focus { border-color: #9b7be7; outline: 2px solid #ede7ff; }
.finance-charge-filterbar button { min-height: 34px; border: 1px solid #d9dce6; background: #fff; color: #596273; }
.finance-charge-rule-table .finance-table-wrap { height: clamp(180px, 24vh, 280px); overflow-y: auto; }
.finance-charge-result-table .finance-table-wrap {
  height: calc(100dvh - 280px);
  min-height: 560px;
  overflow: auto;
}
.finance-charge-rule-table .finance-table-wrap,
.finance-charge-result-table .finance-table-wrap {
  border-color: #e4e2eb;
  background: #fff;
  scrollbar-color: #c8c5d2 #f5f3f9;
  scrollbar-width: thin;
}
.finance-charge-rule-table .finance-table-wrap thead,
.finance-charge-result-table .finance-table-wrap thead { position: relative; z-index: 2; }
.finance-charge-rule-table .finance-table-empty table,
.finance-charge-result-table .finance-table-empty table { height: 100%; }
.finance-charge-rule-table .finance-table-wrap::-webkit-scrollbar,
.finance-charge-result-table .finance-table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.finance-charge-rule-table .finance-table-wrap::-webkit-scrollbar-track,
.finance-charge-result-table .finance-table-wrap::-webkit-scrollbar-track { background: #f5f3f9; }
.finance-charge-rule-table .finance-table-wrap::-webkit-scrollbar-thumb,
.finance-charge-result-table .finance-table-wrap::-webkit-scrollbar-thumb { border: 2px solid #f5f3f9; border-radius: 8px; background: #c8c5d2; }
.finance-charge-panel .finance-table-wrap th { border-color: #e6e3ed; background: #fff; color: #7b8190; }
.finance-charge-panel .finance-table-wrap td { border-color: #eeecf2; background: #fff; color: #4f586a; }
.finance-charge-panel .finance-table-wrap tbody tr:hover td { background: #faf9fd; }
.finance-charge-panel .finance-empty { height: auto; color: #8e929d !important; vertical-align: middle; }
.finance-charge-panel .finance-row-actions button { min-height: 26px; border: 0; padding: 3px 6px; background: transparent; color: #6d28d9; }
.finance-charge-panel .finance-row-actions .danger { color: #ff5a67; }
.finance-charge-panel > .finance-pager { color: #686f80; }
.finance-charge-panel .finance-pager select { border-color: #d8dbe5; background: #fff; color: #596273; }
.finance-charge-panel .finance-pager button { border: 1px solid transparent; background: transparent; color: #6d28d9; }
.finance-charge-panel .finance-pager button:disabled { color: #c4c7cf; cursor: not-allowed; opacity: 1; }
.finance-charge-tabs { margin-top: 20px; border-bottom-color: #ded9e9; }
@media (max-width: 1100px) {
  .finance-charge-filterbar { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
}
.workbench.finance-history-mode .workbench-scroll { overflow-y: hidden; background: #f3f5f9; }
.finance-history-panel {
  border-color: #e1ddec;
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(76 54 126 / 6%);
}
.finance-history-toolbar { flex-wrap: nowrap; gap: 10px; margin-bottom: 14px; }
.finance-history-type { position: relative; flex: 0 0 200px; width: 200px; }
.finance-history-type > #financeHistoryTypeTrigger {
  width: 100%; min-height: 34px; justify-content: flex-start; border: 1px solid #d8dbe5; border-radius: 4px;
  padding: 6px 30px 6px 11px; background: #fff; color: #7b8190; text-align: left;
}
.finance-history-type > #financeHistoryTypeTrigger::after { position: absolute; right: 11px; content: "\2304"; color: #a3a9b5; font-size: 15px; transform: translateY(-2px); }
.finance-history-type.open > #financeHistoryTypeTrigger::after { content: "\2303"; transform: translateY(2px); }
.finance-history-type.selected > #financeHistoryTypeTrigger { border-color: #7c3aed; color: #4f586a; }
.finance-history-type.selected > #financeHistoryTypeTrigger::after { display: none; }
.finance-history-type > #financeHistoryTypeClear {
  position: absolute; top: 8px; right: 9px; z-index: 2; width: 18px; min-width: 18px; min-height: 18px;
  border: 0; border-radius: 50%; padding: 0; background: transparent; color: #a2a8b3; font-size: 15px; line-height: 18px;
}
.finance-history-type > #financeHistoryTypeClear:hover { background: #f0ecfa; color: #7c3aed; filter: none; }
.finance-history-type-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; display: grid; width: 200px; padding: 5px 0;
  border: 1px solid #e2e3e9; border-radius: 4px; background: #fff; box-shadow: 0 5px 14px rgb(44 38 61 / 14%);
}
.finance-history-type-menu::before {
  position: absolute; top: -5px; left: 28px; width: 9px; height: 9px; border-top: 1px solid #e2e3e9;
  border-left: 1px solid #e2e3e9; background: #fff; content: ""; transform: rotate(45deg);
}
.finance-history-type-menu > button {
  position: relative; z-index: 1; justify-content: flex-start; min-height: 34px; border: 0; border-radius: 0;
  padding: 7px 20px; background: #fff; color: #596273; text-align: left;
}
.finance-history-type-menu > button:hover,
.finance-history-type-menu > button[aria-selected="true"] { background: #f5f6f8; color: #4d5667; filter: none; }
.finance-history-toolbar > button {
  min-height: 34px;
  border: 1px solid #d9dce6;
  border-radius: 4px;
  background: #fff;
  color: #596273;
}
.finance-history-toolbar > button:hover { border-color: #b9a8e8; color: #6d28d9; filter: none; }

#financeMeterSearch,
#financeFeeSearch,
#financeOverSearch,
#financeHistoryRefresh {
  border-color: #8b5cf6 !important;
  background: #7c3aed !important;
  color: #fff !important;
  text-shadow: none;
}
.finance-charge-result-table.finance-charge-result-empty .finance-table-wrap {
  height: calc(100dvh - 380px);
  min-height: 320px;
  overflow: hidden;
}
.finance-charge-result-table.finance-charge-result-empty + .finance-pager {
  display: none;
}

#financeMeterSearch:hover,
#financeFeeSearch:hover,
#financeOverSearch:hover,
#financeHistoryRefresh:hover {
  border-color: #6d28d9 !important;
  background: #6d28d9 !important;
  color: #fff !important;
  filter: none;
}

#financeOverSearch:disabled,
#financeOverSearch:disabled:hover {
  border-color: #e1e3ea !important;
  background: #fafbfc !important;
  color: #a9afbb !important;
  cursor: not-allowed;
}

.finance-meter-panel .finance-meter-toolbar > #financeMeterSearch:hover:not(:disabled) {
  border-color: #6d28d9;
  background: #6d28d9;
  color: #fff;
  filter: none;
}
.finance-history-table .finance-table-wrap {
  height: calc(100dvh - 320px);
  min-height: 300px;
  border-color: #e4e2eb;
  background: #fff;
  overflow-y: auto;
  scrollbar-color: #c8c5d2 #f5f3f9;
  scrollbar-width: thin;
}
.finance-history-table .finance-table-wrap thead { position: relative; z-index: 2; }
.finance-history-table .finance-table-empty table { height: 100%; }
.finance-history-table .finance-table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.finance-history-table .finance-table-wrap::-webkit-scrollbar-track { background: #f5f3f9; }
.finance-history-table .finance-table-wrap::-webkit-scrollbar-thumb { border: 2px solid #f5f3f9; border-radius: 8px; background: #c8c5d2; }
.finance-history-panel .finance-table-wrap th { border-color: #e6e3ed; background: #fff; color: #7b8190; }
.finance-history-panel .finance-table-wrap td { border-color: #e9e7ef; color: #4f586a; }
.finance-history-panel .finance-table-wrap tbody tr:nth-child(even) td { background: #fafafa; }
.finance-history-panel .finance-table-wrap tbody tr:hover td { background: #f7f4fc; }
.finance-history-panel .finance-table-wrap td > button { border: 0; padding: 3px 6px; background: transparent; color: #6d28d9; }
.finance-history-panel .finance-empty { height: auto; color: #8e929d !important; vertical-align: middle; }
.finance-history-panel .finance-pager { color: #686f80; }
.finance-history-panel .finance-pager select { border-color: #d8dbe5; background: #fff; color: #596273; }
.finance-history-panel .finance-pager button { border: 1px solid transparent; background: transparent; color: #6d28d9; }
.finance-history-panel .finance-pager button:hover:not(:disabled) { border-color: #e2d8fb; background: #f6f1ff; filter: none; }
.finance-history-panel .finance-pager button:disabled { color: #c4c7cf; cursor: not-allowed; opacity: 1; }
.finance-number-pager { gap: 5px; }
.finance-number-pager > span:first-child { margin-right: 8px; color: #4f586a; }
.finance-number-pager label { margin-right: 10px; }
.finance-number-pager select { min-width: 128px; padding-right: 30px; }
.finance-number-pager button {
  min-width: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 4px;
  padding: 4px 8px;
  background: transparent;
  color: #263044;
}
.finance-number-pager button:hover:not(:disabled) { background: #f4efff; color: #7c3aed; filter: none; }
.finance-number-pager button.active { color: #7c3aed; font-weight: 700; }
.finance-number-pager button:disabled { background: transparent; color: #c7cad2; }
.finance-page-ellipsis { display: inline-flex; min-width: 26px; align-items: center; justify-content: center; color: #687084; }
.finance-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.finance-section-head h3 { margin: 0; color: #172033; font-size: 15px; }
.finance-section-head p { margin: 4px 0 0; color: #64748b; font-size: 12px; }
.finance-row-actions { display: flex; gap: 6px; }
.finance-tabs { display: flex; gap: 2px; margin-bottom: 12px; border-bottom: 1px solid #dfe5eb; }
.finance-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #64748b; }
.finance-tabs button.active { border-bottom-color: #247a5a; color: #176044; font-weight: 600; }
/* Ã¦ÂÂ¶Ã¨Â´Â¹Ã¦Â ÂÃ¥ÂÂ / Ã¦Â¬Â Ã¦Â¬Â¾Ã¨Â¶ÂÃ¦ÂÂ¼Ã¯Â¼ÂÃ¦Â¿ÂÃ¦Â´Â» Tab Ã§Â»ÂÃ¤Â¸ÂÃ§Â´Â«Ã¨ÂÂ²Ã¯Â¼ÂÃ¦ÂÂÃ©Â«ÂÃ¤Â¼ÂÃ¥ÂÂÃ§ÂºÂ§Ã¯Â¼ÂÃ©ÂÂ¿Ã¥ÂÂÃ¨Â¢Â«Ã©ÂÂÃ§ÂÂ¨Ã§Â»Â¿Ã¨ÂÂ²Ã¨Â¦ÂÃ§ÂÂÃ¯Â¼Â */
.finance-tabs.finance-charge-tabs button.active,
.finance-charge-tabs button.active,
.finance-tabs.finance-over-tabs button.active,
.finance-over-tabs button.active {
  border-bottom-color: #7c3aed !important;
  color: #6d28d9 !important;
  font-weight: 600;
}
.finance-over-stats, .finance-over-hint { margin: 0 0 12px; padding: 10px 12px; border-radius: 6px; background: #f5f3f9; color: #4f4568; font-size: 13px; line-height: 1.5; }
.finance-sewage-price {
  width: 96px;
  max-width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d8dde6;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 13px;
}
.finance-sewage-price:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.finance-sewage-boards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.finance-sewage-board {
  border: 1px solid #e7eaf0;
  border-radius: 10px;
  background: #fff;
  padding: 12px 12px 8px;
  min-width: 0;
}
.finance-sewage-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}
.finance-sewage-board-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
}
.finance-sewage-board-header span {
  color: #98a2b3;
  font-size: 12px;
}
.finance-sewage-board .finance-table-wrap {
  max-height: min(42vh, 420px);
  overflow: auto;
}
.finance-sewage-board .finance-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
}
/* Ã¦Â±Â¡Ã¦Â°Â´Ã©Â¡ÂµÃ¦ÂÂ¥Ã¦ÂÂÃ©ÂÂÃ¦ÂÂ©Ã¥ÂÂ¨Ã¯Â¼ÂÃ§ÂÂ½Ã¥ÂºÂÃ¦Â·Â±Ã¨ÂÂ²Ã¥Â­ÂÃ¯Â¼ÂÃ©ÂÂ¿Ã¥ÂÂÃ§Â»Â§Ã¦ÂÂ¿Ã¥Â·Â¥Ã¥ÂÂ·Ã¦Â ÂÃ¤Â¸Â»Ã¦ÂÂÃ©ÂÂ®Ã§Â´Â«Ã¨ÂÂ²Ã¥ÂºÂÃ§ÂÂÃ¤Â¸ÂÃ¦Â¸Â */
.finance-sewage-panel .finance-sewage-date-picker {
  flex: 0 1 310px;
  min-width: 280px;
}
.finance-sewage-panel .finance-sewage-date-picker > #financeSewageDateTrigger,
.finance-sewage-panel .finance-sewage-date-picker.selected > #financeSewageDateTrigger,
.finance-sewage-panel .finance-sewage-date-picker.open > #financeSewageDateTrigger,
.finance-sewage-panel .finance-toolbar .finance-sewage-date-picker > button#financeSewageDateTrigger,
.finance-sewage-panel .finance-fee-toolbar .finance-sewage-date-picker > button#financeSewageDateTrigger {
  display: grid !important;
  grid-template-columns: 16px minmax(84px, 1fr) 14px minmax(84px, 1fr);
  width: 100%;
  height: 34px;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  padding: 5px 30px 5px 10px !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #64748b !important;
  box-shadow: none !important;
  filter: none !important;
  outline: none;
  font-weight: 400 !important;
}
.finance-sewage-panel .finance-sewage-date-picker .finance-button-icon { color: #94a3b8; }
.finance-sewage-panel .finance-sewage-date-picker .finance-fee-date-value {
  color: #64748b;
  font-weight: 400;
}
.finance-sewage-panel .finance-sewage-date-picker .finance-fee-date-value.placeholder {
  color: #94a3b8;
  font-weight: 400;
}
.finance-sewage-panel .finance-sewage-date-picker .finance-fee-date-separator { color: #94a3b8; }
.finance-sewage-panel .finance-sewage-date-picker > #financeSewageDateClear {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  line-height: 18px;
}
.finance-sewage-panel .finance-sewage-date-picker > #financeSewageDateClear:hover {
  background: #f1f5f9;
  color: #334155;
  filter: none;
}
#financeSewageCalendars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Ã¦Â±Â¡Ã¦Â°Â´Ã¥Â·Â¥Ã¥ÂÂ·Ã¦Â ÂÃ¦ÂÂ§Ã¤Â»Â¶Ã¥Â¤ÂÃ¯Â¼ÂÃ¥ÂÂÃ¨Â®Â¸Ã¦ÂÂ¢Ã¨Â¡ÂÃ¯Â¼ÂÃ©ÂÂ¿Ã¥ÂÂÃ£ÂÂÃ¥Â¯Â¼Ã¥ÂÂºÃ£ÂÂÃ¨Â¢Â«Ã¦ÂÂ¤Ã¥ÂÂºÃ¥ÂÂ¯Ã¨Â§ÂÃ¥ÂÂº */
.finance-sewage-panel .finance-over-toolbar.finance-fee-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  overflow: visible;
}
.finance-sewage-panel .finance-over-toolbar > .finance-over-project {
  flex: 0 0 160px;
  width: 160px;
  max-width: 100%;
}
.finance-sewage-panel .finance-over-toolbar > .finance-sewage-date-picker {
  flex: 0 1 280px;
  min-width: 240px;
  max-width: 100%;
}
.finance-sewage-panel .finance-over-toolbar > .finance-fee-search {
  flex: 0 1 200px;
  min-width: 160px;
}
.finance-sewage-panel .finance-over-toolbar > #financeSewageCheckResult {
  flex: 0 0 150px;
  width: 150px;
}
.finance-sewage-panel .finance-over-toolbar > button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.finance-sewage-panel .finance-over-toolbar > .finance-task-meta {
  flex: 1 1 180px;
  min-width: 140px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.finance-over-hint { background: #f8fafc; color: #64748b; }
.finance-over-toolbar > #financeOverCategory.selected { border-color: #7c3aed; color: #4f586a; }
.finance-over-panel .finance-table-wrap {
  height: calc(100dvh - 360px);
  min-height: 300px;
  border-color: #e4e2eb;
  background: #fff;
  overflow-y: auto;
  scrollbar-color: #c8c5d2 #f5f3f9;
  scrollbar-width: thin;
}
.finance-over-panel .finance-table-wrap thead { position: relative; z-index: 2; }
/* Ã¨Â¡Â¨Ã¥Â¤Â´Ã¥Â­ÂÃ¤Â½Â/Ã¥ÂºÂÃ¨ÂÂ²Ã¤Â¸ÂÃ¦ÂÂ¶Ã¨Â´Â¹Ã¦Â ÂÃ¥ÂÂÃ§Â»ÂÃ¥Â®ÂÃ¦Â Â¸Ã¥Â¯Â¹Ã¤Â¸ÂÃ¨ÂÂ´ */
.finance-over-panel .finance-table-wrap th {
  border-color: #e6e3ed;
  background: #fff;
  color: #7b8190;
}
.finance-over-panel .finance-table-wrap td {
  border-color: #eeecf2;
  background: #fff;
  color: #4f586a;
}
.finance-over-panel .finance-table-wrap tbody tr:hover td { background: #faf9fd; }
.finance-dialog { width: min(720px, calc(100vw - 32px)); border: 0; border-radius: 6px; padding: 0; box-shadow: 0 20px 55px #0f172a33; }
.finance-dialog::backdrop { background: #0f172a66; }
.finance-dialog form, .finance-dialog > div:not(#toast) { padding: 18px; }
.finance-dialog header, .finance-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.finance-dialog header { margin-bottom: 16px; }
.finance-dialog header h3 { margin: 0; font-size: 17px; }
.finance-dialog .finance-calendar-month > header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}
.finance-dialog .finance-calendar-month > header strong {
  flex: 1;
  padding: 0 56px;
  text-align: center;
  pointer-events: none;
}
.finance-dialog .finance-calendar-nav { z-index: 2; }
.finance-dialog .finance-calendar-nav > button {
  width: 26px;
  min-width: 26px;
  min-height: 28px;
  height: 28px;
}
.finance-dialog footer { justify-content: flex-end; margin-top: 18px; }
.finance-dialog .icon-button { min-width: 34px; padding: 0; border: 0; background: transparent; color: #64748b; font-size: 22px; }
.finance-confirm-dialog { width: min(420px, calc(100vw - 32px)); border-radius: 5px; }
.finance-confirm-dialog > div { padding: 14px 12px 12px; }
.finance-confirm-dialog header { margin-bottom: 12px; }
.finance-confirm-dialog header h3 { color: #343b4a; font-size: 17px; font-weight: 500; }
.finance-confirm-dialog .icon-button { width: 28px; min-width: 28px; min-height: 28px; color: #9aa1ad; font-size: 18px; }
.finance-confirm-message { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 10px; padding: 2px 2px 0; }
.finance-confirm-message p { margin: 0; color: #596273; font-size: 14px; line-height: 1.7; }
.finance-confirm-warning { display: inline-flex; width: 21px; height: 21px; align-items: center; justify-content: center; margin-top: 2px; border-radius: 50%; background: #e9a12a; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.finance-confirm-dialog footer { margin-top: 14px; }
.finance-confirm-dialog footer > button { min-width: 60px; }
.finance-confirm-dialog #financeFeeConfirmSubmit { border-color: #7c3aed; background: #7c3aed; color: #fff; }
.finance-confirm-dialog #financeFeeConfirmSubmit:hover:not(:disabled) { background: #6d28d9; filter: none; }
.finance-dialog.finance-receipt-offset-confirm-dialog {
  position: fixed;
  inset: 0;
  width: min(420px, calc(100vw - 32px));
  height: fit-content;
  max-height: calc(100dvh - 32px);
  margin: auto;
}
.finance-receipt-offset-confirm-dialog > div {
  display: flex;
  min-height: 180px;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  padding: 18px 16px 14px;
}
.finance-receipt-offset-confirm-dialog header { margin-bottom: 10px; }
.finance-receipt-offset-confirm-dialog .finance-confirm-message { align-items: center; }
.finance-receipt-offset-confirm-dialog footer { margin-top: 16px; }
.finance-receipt-offset-confirm-dialog footer > [data-finance-receipt-offset-confirm-yes] {
  border-color: #7c3aed;
  background: #7c3aed;
  color: #fff;
}
.finance-receipt-offset-confirm-dialog footer > [data-finance-receipt-offset-confirm-yes]:hover:not(:disabled) { background: #6d28d9; filter: none; }
.finance-dialog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.finance-dialog-grid label { display: grid; gap: 5px; color: #475569; font-size: 13px; }
.finance-dialog-grid label:first-child { grid-column: 1 / -1; }
.finance-park-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; padding: 0 0 14px !important; }
.finance-park-list { max-height: 340px; overflow: auto; border-top: 1px solid #e2e8f0; }
.finance-park-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf1f5; }
.finance-park-list > div > span { display: flex; align-items: center; gap: 8px; }
.finance-park-list small { display: block; color: #94a3b8; }
@media (max-width: 760px) {
  .module-nav { gap: 0; padding: 0 4px; overflow-x: auto; overflow-y: hidden; }
  .module-tab { flex: 0 0 auto; min-height: 64px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
  .module-tab.active::after { right: 10px; left: 10px; }
  .finance-panel { padding: 10px; }
  .finance-toolbar, .finance-filterbar { align-items: stretch; }
  .finance-toolbar:not(.finance-meter-toolbar):not(.finance-payee-toolbar) > *, .finance-search:not(.finance-meter-search) { min-width: 0; width: 100%; }
  .finance-meter-toolbar { align-items: center; }
  .finance-meter-search { flex: 0 0 230px; min-width: 230px; }
  .finance-fee-date-picker { min-width: 300px; }
  .finance-fee-date-menu { left: 0; max-height: 70vh; overflow-y: auto; transform: none; }
  .finance-fee-date-menu::before { left: 50%; }
  #financeFeeCalendars { grid-template-columns: 1fr; }
  .finance-calendar-month + .finance-calendar-month { border-top: 1px solid #e6e8ed; border-left: 0; }
  .finance-task-meta, .finance-filterbar > span { margin-left: 0; }
  .finance-dialog-grid { grid-template-columns: 1fr; }
  .finance-dialog-grid label:first-child { grid-column: auto; }
  .finance-park-form { grid-template-columns: 1fr; }
  .finance-section-head { align-items: stretch; flex-direction: column; }
  .finance-section-head .finance-search { width: 100%; }
}
.workbench.receivable-mode .topbar,
.workbench.room-charge-mode .topbar,
.workbench.self-service-work-order-mode .topbar {
  display: none;
}

.workbench.deposit-ledger-mode .topbar {
  display: none;
}

.workbench.arrears-detail-mode .topbar {
  display: none;
}

.workbench.receivable-mode .workbench-scroll,
.workbench.room-charge-mode .workbench-scroll,
.workbench.self-service-work-order-mode .workbench-scroll {
  overflow-y: hidden;
  scrollbar-gutter: auto;
}

.workbench.deposit-ledger-mode .workbench-scroll {
  overflow-y: hidden;
  scrollbar-gutter: auto;
}

.workbench.arrears-detail-mode .workbench-scroll {
  overflow-y: hidden;
  scrollbar-gutter: auto;
}

.workbench.receivable-mode #receivablequeryView {
  display: block;
  height: calc(100vh - 64px);
  min-height: 0;
  margin: -24px;
  background: #f3f4f7;
}

.workbench.room-charge-mode #roomfeesettingView {
  display: block;
  height: calc(100vh - 64px);
  min-height: 0;
  margin: -24px;
  background: #f3f4f7;
}

.workbench.self-service-work-order-mode #selfserviceworkorderstatisticsView {
  display: block;
  height: calc(100vh - 64px);
  min-height: 0;
  margin: -24px;
  background: #f3f4f7;
}

.workbench.deposit-ledger-mode #propertydepositledgerView {
  display: block;
  height: calc(100vh - 64px);
  min-height: 0;
  margin: -24px;
  background: #f3f4f7;
}

.workbench.arrears-detail-mode #debtdetailsView {
  display: block;
  height: calc(100vh - 64px);
  min-height: 0;
  margin: -24px;
  background: #f3f4f7;
}

.workbench.receivable-mode #receivablequeryContent {
  display: block;
  height: 100%;
  min-height: 0;
  padding: 0;
}

.workbench.room-charge-mode #roomfeesettingContent {
  display: block;
  height: 100%;
  min-height: 0;
  padding: 0;
}

.workbench.self-service-work-order-mode #selfserviceworkorderstatisticsContent {
  display: block;
  height: 100%;
  min-height: 0;
  padding: 0;
}

.workbench.deposit-ledger-mode #propertydepositledgerContent {
  display: block;
  height: 100%;
  min-height: 0;
  padding: 0;
}

.workbench.arrears-detail-mode #debtdetailsContent {
  display: block;
  height: 100%;
  min-height: 0;
  padding: 0;
}

.arrears-detail-board .receivable-project-select { width: 250px; flex: 0 0 250px; }
.arrears-detail-board #arrearsDetailProject {
  width: 100%;
  min-height: 36px;
  padding: 7px 54px 7px 10px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  background-color: #fff;
  color: #344054;
  box-sizing: border-box;
  white-space: nowrap;
}
.arrears-detail-board .receivable-project-select:not(.has-value) #arrearsDetailProject { color: #98a2b3; }
.arrears-detail-board #arrearsDetailProject option { color: #344054; }
.arrears-detail-board .arrears-detail-status { position: relative; width: 150px; flex: 0 0 150px; }
.arrears-detail-board .arrears-detail-status select { width: 100%; min-height: 36px; padding: 7px 34px 7px 10px; border: 1px solid #d8dee8; border-radius: 5px; color: #344054; background: #fff; }
.arrears-detail-board .arrears-detail-status button { position: absolute; right: 23px; top: 50%; transform: translateY(-50%); display: none; border: 0; background: transparent; color: #98a2b3; font-size: 18px; cursor: pointer; }
.arrears-detail-board .arrears-detail-status.has-value button { display: block; }

.deposit-ledger-board .receivable-pagination {
  white-space: nowrap;
}

.deposit-ledger-board .receivable-pagination > * {
  flex: 0 0 auto;
}

.deposit-ledger-board .receivable-project-select {
  width: 300px;
  flex: 0 0 300px;
}

.deposit-ledger-board #depositProject {
  width: 100%;
  min-height: 36px;
  padding: 7px 54px 7px 10px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  background-color: #fff;
  color: #344054;
  box-sizing: border-box;
  white-space: nowrap;
}

.deposit-ledger-board .receivable-project-select:not(.has-value) #depositProject {
  color: #98a2b3;
}

.deposit-ledger-board #depositProject option {
  color: #344054;
}

.self-service-work-order-remark {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-charge-filter-group {
  width: auto;
}

.room-charge-filter-group > select {
  width: 150px;
  min-height: 36px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  padding: 7px 30px 7px 10px;
  background-color: #fff;
  color: #344054;
}

.room-charge-primary-filters #roomChargeProjectGroup {
  width: 150px;
}

.room-charge-primary-filters #roomChargeCustomer {
  width: 190px;
}

.room-charge-status-select {
  width: 150px;
  flex-basis: 150px;
}

.self-service-work-order-primary-filters #selfServiceWorkOrderProjectGroup,
.self-service-work-order-primary-filters #selfServiceWorkOrderBuilding,
.self-service-work-order-primary-filters #selfServiceWorkOrderRoom {
  width: 150px;
}

.self-service-work-order-primary-filters #selfServiceWorkOrderCustomer {
  width: 190px;
}

.receivable-project-select.self-service-product-type-select {
  width: 150px;
  flex-basis: 150px;
}

.receivable-balance-select.self-service-work-order-status-select {
  width: 128px;
  flex-basis: 128px;
}

.self-service-work-order-more-filter-row .self-service-work-order-type-select {
  width: 380px;
  flex-basis: 380px;
}

.self-service-work-order-more-filter-row .self-service-work-order-type-select > select {
  width: 100%;
  min-height: 36px;
  padding-right: 72px;
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
}

.self-service-work-order-more-filter-row .self-service-work-order-type-select.has-value > button {
  display: block;
}

.self-service-work-order-more-filter-row .receivable-project-select > button,
.self-service-work-order-more-filter-row .receivable-balance-select > button {
  z-index: 1;
}

.task-reminder-dispatch-dialog { width: min(920px, calc(100vw - 32px)); }
.self-service-reminder-dialog { width: min(980px, calc(100vw - 32px)); }
.self-service-reminder-details { max-height: min(62vh, 620px); overflow: auto; padding: 0 2px; }
.self-service-reminder-cycle { margin-bottom: 16px; border: 1px solid #e4e7ec; border-radius: 6px; overflow: hidden; background: #fff; }
.self-service-reminder-cycle-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 11px 14px; background: #f8fafc; color: #475467; font-size: 13px; }
.self-service-reminder-cycle-head strong { color: #101828; font-size: 15px; }
.self-service-reminder-cycle table { width: 100%; border-collapse: collapse; font-size: 13px; }
.self-service-reminder-cycle th, .self-service-reminder-cycle td { padding: 9px 12px; border-top: 1px solid #eef1f5; text-align: left; white-space: nowrap; }
.self-service-reminder-cycle th { color: #667085; background: #fcfcfd; font-weight: 600; }
.self-service-reminder-detail { padding: 5px 10px; }
.task-reminder-dispatch-search { display: flex; gap: 10px; }
.task-reminder-dispatch-search input { flex: 1; }
.task-reminder-dispatch-hint { margin: 4px 0 10px; color: #667085; font-size: 13px; }
.task-reminder-dispatch-list { max-height: 420px; overflow: auto; border: 1px solid #e4e7ec; }
.task-reminder-dispatch-list table { width: 100%; border-collapse: collapse; font-size: 13px; }
.task-reminder-dispatch-list th, .task-reminder-dispatch-list td { padding: 10px; border-bottom: 1px solid #eaecf0; text-align: left; white-space: nowrap; }
.task-reminder-dispatch-list th { position: sticky; top: 0; background: #f9fafb; }
.task-reminder-dispatch-count { margin-right: auto; color: #475467; }
.task-reminder-dispatch-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 10px 0; color: #667085; font-size: 13px; }
.task-reminder-dispatch-pagination button { min-height: 30px; padding: 4px 10px; }

.self-service-product-type-select > #selfServiceWorkOrderProductType {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 7px 46px 7px 10px;
  line-height: 20px;
  box-sizing: border-box;
}

.room-charge-column-settings {
  margin-left: auto;
}

.receivable-board {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  padding: 0 24px 28px;
  box-sizing: border-box;
}

.receivable-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 70px;
  flex: 0 0 auto;
  border-bottom: 1px solid #e2e6ec;
  background: #fff;
  padding: 0 4px;
}

.receivable-filter-stack {
  width: 100%;
  padding: 10px 0;
}

.receivable-primary-filters #receivableProjectGroup {
  width: 150px;
}

.receivable-primary-filters #receivableCustomer {
  width: 190px;
}

.receivable-text-filter {
  position: relative;
  flex: 0 0 auto;
}

.receivable-text-filter input {
  padding-right: 34px;
}

.receivable-text-filter > button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: none;
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: #98a2b3;
  font-size: 16px;
  line-height: 18px;
  transform: translateY(-50%);
}

.receivable-text-filter.has-value > button {
  display: block;
}

.receivable-text-filter > button:hover {
  background: #eef2f6;
  color: #475467;
}

.receivable-more-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.receivable-more-filter-row .receivable-text-filter {
  width: 180px;
}

.receivable-more-filter-row input {
  width: 180px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  background: #fff;
  color: #344054;
  box-sizing: border-box;
}

.receivable-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
}

/* Keep every primary property-filter control aligned on one 36px rhythm. */
.receivable-filter-group > :is(input, select, button),
.receivable-filter-group > .receivable-text-filter > input,
.receivable-filter-group > .receivable-project-select > select,
.receivable-filter-group > .receivable-balance-select > select,
.receivable-date-picker > #receivableDateTrigger,
.receivable-column-settings > #receivableColumnTrigger,
.receivable-column-settings > .room-charge-column-trigger,
.receivable-column-settings > #selfServiceWorkOrderColumnTrigger {
  height: 36px;
  min-height: 36px;
  box-sizing: border-box;
}

.receivable-filter-group input {
  width: 240px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  background: #fff;
  color: #344054;
  box-sizing: border-box;
}

.receivable-filter-group .receivable-text-filter > input,
.receivable-more-filter-row .receivable-text-filter > input {
  padding-right: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receivable-project-select {
  position: relative;
  width: 250px;
  flex: 0 0 250px;
}

.receivable-project-select:not(.has-value) > select,
.receivable-balance-select:not(.has-value) > select,
#roomChargeStatus:has(option[value=""]:checked) {
  color: #98a2b3;
}

.receivable-filter-group #receivableProjectId,
.receivable-filter-group #roomChargeProjectId,
.receivable-filter-group #selfServiceWorkOrderProjectId {
  width: 100%;
  min-height: 36px;
  padding: 7px 54px 7px 10px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  background-color: #fff;
  color: #344054;
  box-sizing: border-box;
}

.receivable-filter-group .receivable-project-select > button {
  position: absolute;
  top: 50%;
  right: 27px;
  display: none;
  width: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #98a2b3;
  font-size: 18px;
  line-height: 22px;
  transform: translateY(-50%);
}

.receivable-filter-group .receivable-project-select.has-value > button {
  display: block;
}

.receivable-filter-group .receivable-project-select > button:hover {
  background: #eef2f6;
  color: #475467;
}

.receivable-balance-select {
  position: relative;
  width: 158px;
  flex: 0 0 158px;
}

.receivable-balance-select > select {
  width: 100%;
  min-height: 36px;
  padding: 7px 48px 7px 10px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  background-color: #fff;
  color: #344054;
  box-sizing: border-box;
}

.receivable-filter-group #receivableProjectId:has(option[value=""]:checked),
.receivable-filter-group #roomChargeProjectId:has(option[value=""]:checked),
.receivable-filter-group #selfServiceWorkOrderProjectId:has(option[value=""]:checked) {
  color: #98a2b3;
}

.receivable-filter-group select option {
  color: #344054;
}

.receivable-filter-group .receivable-balance-select > button {
  position: absolute;
  top: 50%;
  right: 27px;
  display: none;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #98a2b3;
  font-size: 14px;
  line-height: 18px;
  transform: translateY(-50%);
}

.receivable-filter-group .receivable-balance-select.has-value > button {
  display: block;
}

.receivable-filter-group .receivable-balance-select > button:hover {
  background: #eef2f6;
  box-shadow: none;
  color: #475467;
  filter: none;
}

.receivable-filter-group button {
  min-height: 36px;
  padding: 7px 15px;
  white-space: nowrap;
}

.receivable-filter-group .receivable-text-filter > button {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.receivable-filter-group .receivable-text-filter > button:hover {
  background: #eef2f6;
  box-shadow: none;
  color: #475467;
}

.receivable-column-settings {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
}

.receivable-column-settings > #receivableColumnTrigger,
.receivable-column-settings > .room-charge-column-trigger,
.receivable-column-settings > #selfServiceWorkOrderColumnTrigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: #d8dee8;
  color: #526072;
}

.receivable-column-settings > #receivableColumnTrigger:hover,
.receivable-column-settings.open > #receivableColumnTrigger,
.receivable-column-settings > .room-charge-column-trigger:hover,
.receivable-column-settings.open > .room-charge-column-trigger,
.receivable-column-settings > #selfServiceWorkOrderColumnTrigger:hover,
.receivable-column-settings.open > #selfServiceWorkOrderColumnTrigger {
  border-color: #8b5cf6;
  background: #f7f3ff;
  color: #7c3aed;
}

.receivable-column-settings > #receivableColumnTrigger svg,
.receivable-column-settings > .room-charge-column-trigger svg,
.receivable-column-settings > #selfServiceWorkOrderColumnTrigger svg {
  width: 16px;
  height: 16px;
}

.receivable-column-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: 360px;
  overflow: hidden;
  border: 1px solid #e0e4eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(35 31 51 / 18%);
}

.receivable-column-menu::before {
  position: absolute;
  top: -5px;
  right: 32px;
  width: 9px;
  height: 9px;
  border-top: 1px solid #e0e4eb;
  border-left: 1px solid #e0e4eb;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.receivable-column-menu > header,
.receivable-column-menu > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
}

.receivable-column-menu > header {
  border-bottom: 1px solid #edf0f4;
  color: #344054;
}

.receivable-column-menu > header > button {
  min-height: auto;
  border: 0;
  padding: 4px;
  background: transparent;
  color: #7c3aed;
  font-size: 12px;
}

.receivable-column-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.receivable-column-actions > button {
  min-height: auto;
  border: 0;
  padding: 4px;
  background: transparent;
  color: #7c3aed;
  font-size: 12px;
}

.receivable-column-actions > button:hover {
  background: #f4efff;
  color: #6d28d9;
  filter: none;
}

.receivable-column-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 12px;
  max-height: 288px;
  overflow-y: auto;
  padding: 10px 12px;
}

.receivable-column-options label {
  display: flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 5px;
  color: #475467;
  cursor: pointer;
}

.receivable-column-options label:hover {
  background: #f7f3ff;
}

.receivable-column-options input {
  width: 15px;
  min-height: 15px;
  margin: 0;
  padding: 0;
  accent-color: #7c3aed;
}

.receivable-column-options span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receivable-column-menu > footer {
  border-top: 1px solid #edf0f4;
  color: #8a94a6;
  font-size: 12px;
}

.receivable-column-menu > footer > button {
  min-height: 32px;
  padding: 5px 16px;
  background: #7c3aed;
}

.receivable-date-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
  color: #667085;
  font-size: 13px;
  white-space: nowrap;
}

.receivable-date-picker {
  position: relative;
  width: 410px;
  min-width: 410px;
  flex: 0 0 410px;
}

.receivable-date-picker > #receivableDateTrigger {
  display: grid;
  grid-template-columns: 16px minmax(105px, 1fr) 14px minmax(105px, 1fr);
  width: 100%;
  height: 36px;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  padding: 5px 30px 5px 10px;
  background: #fff;
  color: #596273;
  box-shadow: none;
}

.receivable-date-picker > #receivableDateTrigger:hover {
  border-color: #9b7be7;
  filter: none;
}

.receivable-date-picker.selected > #receivableDateTrigger,
.receivable-date-picker.open > #receivableDateTrigger {
  border-color: #7c3aed;
  outline: 1px solid #ede7ff;
}

.receivable-calendar-icon {
  width: 16px;
  height: 16px;
  color: #a4aab5;
}

.receivable-date-value {
  min-width: 0;
  overflow: hidden;
  color: #4f586a;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receivable-date-value.placeholder {
  color: #9ba2ae;
}

.receivable-date-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #596273;
}

.receivable-date-picker > #receivableDateClear {
  position: absolute;
  top: 9px;
  right: 8px;
  z-index: 3;
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #a2a8b3;
  font-size: 14px;
  line-height: 18px;
}

.receivable-date-picker > #receivableDateClear:hover {
  background: #f0ecfa;
  color: #7c3aed;
  filter: none;
}
.receivable-date-picker { width: 320px; min-width: 320px; flex: 0 0 320px; }
.receivable-date-picker > #receivableDateTrigger { grid-template-columns: 16px minmax(78px, 1fr) 12px minmax(78px, 1fr); gap: 4px; padding-left: 9px; padding-right: 26px; }
.receivable-column-settings > #receivableColumnTrigger, .receivable-column-settings > .room-charge-column-trigger { min-height: 36px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }

.receivable-date-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 70;
  width: min(648px, calc(100vw - 40px));
  border: 1px solid #e1e3e9;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 22px rgb(44 38 61 / 18%);
  transform: translateX(-50%);
}

.receivable-date-menu::before {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 1px solid #e1e3e9;
  border-left: 1px solid #e1e3e9;
  background: #fff;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

#receivableCalendars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.receivable-table-shell {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce2ea;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
}

.receivable-table-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #aeb8c6 transparent;
  scrollbar-width: thin;
}

.receivable-table-scroll table {
  width: 100%;
  border-collapse: collapse;
}

.receivable-table-scroll th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 13px 14px;
  border-bottom: 1px solid #e5e9ef;
  background: #f7f8fa;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.receivable-table-scroll td {
  max-width: 220px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f4;
  color: #475467;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receivable-table-scroll tbody tr:hover td {
  background: #fafbfc;
}

.receivable-empty-cell {
  height: 240px;
}

.receivable-empty-overlay {
  position: absolute;
  z-index: 3;
  top: 44px;
  right: 0;
  bottom: 60px;
  left: 0;
  display: grid;
  place-items: center;
  color: #98a2b3;
  font-size: 13px;
  pointer-events: none;
}

.receivable-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 60px;
  padding: 0 14px;
  border-top: 1px solid #edf0f4;
  color: #667085;
  font-size: 13px;
  flex: 0 0 auto;
}

.receivable-current-page-total {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-right: auto;
  color: #475467;
  font-weight: 600;
  white-space: nowrap;
}

.receivable-current-page-total span {
  color: #b42318;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.receivable-pagination > * {
  flex: 0 0 auto;
}

.receivable-pagination label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.receivable-pagination select {
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  background: #fff;
}

.receivable-pagination button {
  min-width: 30px;
  min-height: 30px;
  padding: 4px 8px;
}

.receivable-pagination .page-arrow {
  border: 0;
  background: transparent;
  color: #475467;
}

.receivable-pagination .page-arrow:hover:not(:disabled) {
  background: #eef2f6;
}

.receivable-pagination button:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.receivable-loading,
.receivable-error {
  display: grid;
  min-height: 260px;
  place-content: center;
  gap: 8px;
  color: #98a2b3;
  text-align: center;
}

.receivable-error strong {
  color: #b42318;
}

.receivable-error span {
  color: #667085;
  font-size: 13px;
}

/* A docked browser inspector can substantially reduce the usable workbench width.
   Keep filter actions reachable by letting each module's toolbar reflow before it clips. */
@media (max-width: 1440px) {
  .receivable-toolbar {
    align-items: stretch;
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .receivable-filter-group,
  .receivable-more-filter-row {
    flex-wrap: wrap;
  }

  .receivable-filter-group .receivable-text-filter {
    min-width: 145px;
    flex: 1 1 145px;
  }

  .receivable-filter-group .receivable-text-filter > input {
    width: 100%;
  }

  .receivable-filter-group .receivable-project-select,
  .receivable-filter-group .receivable-balance-select,
  .receivable-filter-group .room-charge-filter-group {
    width: auto;
    min-width: 155px;
    flex: 1 1 155px;
  }

  .receivable-filter-group .receivable-date-picker {
    width: auto;
    min-width: 300px;
    flex: 1 1 300px;
  }

  .self-service-work-order-more-filter-row .self-service-work-order-type-select {
    width: auto;
    min-width: 220px;
    flex: 1 1 220px;
  }

  #systemView .toolbar,
  .property-toolbar,
  .task-filter-bar,
  .task-runs-toolbar,
  .finance-meter-toolbar,
  .finance-fee-toolbar,
  .finance-charge-toolbar,
  .finance-history-toolbar,
  .knowledge-toolbar,
  .knowledge-segment-toolbar,
  .workbench.invest-mode .invest-filterbar,
  .workbench.invest-mode .invest-actions {
    flex-wrap: wrap;
  }

  #systemView .toolbar input,
  #systemView .toolbar select,
  #systemView .toolbar .system-search-field,
  .task-runs-toolbar input,
  .task-runs-toolbar select,
  .task-filter-bar input,
  .task-filter-bar select {
    min-width: 150px;
    max-width: none;
    flex: 1 1 180px;
  }

  .property-toolbar input {
    min-width: 180px;
    flex: 1 1 240px;
  }

  .finance-meter-search,
  .finance-fee-search,
  .finance-fee-park,
  .finance-charge-park,
  .finance-history-type {
    max-width: 100%;
    flex: 1 1 200px;
  }

  .finance-charge-filterbar {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .workbench.invest-mode .status-filters {
    flex: 1 1 100%;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .workbench.invest-mode .industry-filter-box,
  .workbench.invest-mode .invest-search-box {
    min-width: 160px;
    flex: 1 1 180px;
  }

  .workbench.invest-mode .invest-actions {
    flex: 0 1 auto;
  }
}

@media (max-width: 900px) {
  .workbench.receivable-mode #receivablequeryView {
    margin: -16px;
  }

  .workbench.room-charge-mode #roomfeesettingView {
    margin: -16px;
  }

  .workbench.self-service-work-order-mode #selfserviceworkorderstatisticsView {
    margin: -16px;
  }

  .receivable-board {
    padding: 0 14px 20px;
  }

  .receivable-toolbar {
    min-height: auto;
    padding: 12px 0;
  }

  .receivable-filter-group {
    flex-wrap: wrap;
  }

  .receivable-filter-group input,
  .receivable-project-select,
  .receivable-balance-select {
    width: min(100%, 250px);
    flex-basis: min(100%, 250px);
  }

  .receivable-date-filter,
  .receivable-date-picker {
    width: 100%;
    min-width: 0;
  }

  .receivable-column-settings {
    margin-left: 0;
  }

  .receivable-column-menu {
    right: auto;
    left: 0;
    width: min(360px, calc(100vw - 28px));
  }

  .receivable-date-menu {
    left: 0;
    max-height: 70vh;
    overflow-y: auto;
    transform: none;
  }

.receivable-date-menu::before {
    left: 50%;
  }

  #receivableCalendars {
    grid-template-columns: 1fr;
  }
}

/* Responsive application shell: desktop retains density, while notebook and
   mobile layouts reflow controls before content can be clipped. */
.mobile-sidebar-scrim {
  display: none;
}

.mobile-menu-button {
  display: none;
}

.module-tabs-scroll {
  display: flex;
  min-width: 0;
  align-self: stretch;
}

@media (max-width: 1440px) {
  .app {
    grid-template-columns: 216px minmax(0, 1fr);
  }

  .app.sidebar-collapsed {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .workbench {
    padding: 20px;
  }

  .module-nav {
    min-height: 58px;
    margin: -20px -20px 20px;
    padding: 0 20px;
  }

  .module-tab {
    min-height: 58px;
    padding: 0 14px;
    font-size: 15px;
  }

  .module-tab.active::after {
    right: 14px;
    left: 14px;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .view,
  .workbench.invest-mode #investView,
  .workbench.operations-mode #operationsView,
  .workbench.property-mode #propertyView {
    min-width: 0;
  }
}

@media (max-width: 1100px) {
  .app {
    grid-template-columns: 192px minmax(0, 1fr);
  }

  .brand {
    padding-left: 14px;
  }

  .brand strong {
    font-size: 15px;
  }

  .nav {
    padding-right: 10px;
    padding-left: 10px;
  }

  .topbar {
    align-items: center;
    flex-wrap: wrap;
  }

  .topbar > div {
    min-width: 0;
  }

  .tabs,
  .status-filters,
  .invest-tabs {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar,
  .status-filters::-webkit-scrollbar,
  .invest-tabs::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 768px) {
  html,
  body,
  #app,
  .main {
    width: 100%;
    min-width: 0;
  }

  .app,
  .app.sidebar-collapsed {
    display: block;
    height: 100dvh;
    overflow: hidden;
  }

  .main {
    height: 100dvh;
    overflow: hidden;
  }

  .sidebar {
    position: fixed;
    z-index: 240;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(284px, calc(100vw - 54px));
    height: 100dvh;
    box-shadow: 16px 0 34px rgb(16 24 40 / 18%);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .app.mobile-sidebar-open .sidebar {
    transform: translateX(0);
  }

  .mobile-sidebar-scrim:not(.hidden) {
    position: fixed;
    z-index: 230;
    inset: 0;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgb(16 24 40 / 36%);
  }

  .sidebar > nav {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  /* The mobile sidebar is a full drawer, never the desktop compact rail. */
  .sidebar .brand-full,
  .sidebar .nav-label,
  .sidebar .nav-section-title,
  .sidebar .user-box span,
  .app.sidebar-collapsed .sidebar .brand-full,
  .app.sidebar-collapsed .sidebar .nav-label,
  .app.sidebar-collapsed .sidebar .nav-section-title,
  .app.sidebar-collapsed .sidebar .user-box span {
    display: inline;
  }

  .sidebar .brand-short,
  .app.sidebar-collapsed .sidebar .brand-short {
    display: none;
  }

  .sidebar .nav-section-title,
  .app.sidebar-collapsed .sidebar .nav-section-title {
    display: block;
  }

  .sidebar .nav-group,
  .app.sidebar-collapsed .sidebar .nav-group {
    padding: 10px 0 18px;
  }

  .sidebar .nav,
  .app.sidebar-collapsed .sidebar .nav {
    justify-content: flex-start;
    padding: 9px 14px;
  }

  .sidebar .brand,
  .app.sidebar-collapsed .sidebar .brand {
    justify-content: flex-start;
    padding: 0 14px;
  }

  .sidebar .brand strong,
  .app.sidebar-collapsed .sidebar .brand strong {
    font-size: 17px;
  }

  .sidebar .user-box,
  .app.sidebar-collapsed .sidebar .user-box {
    padding: 16px 20px 20px;
  }

  .sidebar .user-box .ghost,
  .app.sidebar-collapsed .sidebar .user-box .ghost {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 14px;
  }

  .sidebar .user-box .ghost::before,
  .app.sidebar-collapsed .sidebar .user-box .ghost::before {
    content: none;
  }

  .brand {
    min-height: 58px;
    padding: 0 14px;
  }

  .collapse-btn {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    font-size: 16px;
  }

  .collapse-btn:hover::after {
    display: none;
  }

  .workbench {
    min-height: 100dvh;
    height: 100dvh;
    padding: 12px;
    overflow: hidden;
  }

  .module-nav {
    position: relative;
    z-index: 20;
    min-height: 54px;
    margin: -12px -12px 12px;
    padding: 0 12px;
    gap: 8px;
    overflow: hidden;
  }

  .mobile-menu-button {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 0;
    place-items: center;
    border: 1px solid #dce3ed;
    border-radius: 7px;
    background: #f5f7fa;
    color: #344054;
    font-size: 19px;
    line-height: 1;
  }

  .mobile-menu-button:hover,
  .mobile-menu-button:focus-visible {
    border-color: #c4a4fa;
    background: #f1e7ff;
    color: var(--nav-purple);
    outline: none;
    filter: none;
  }

  .module-tabs-scroll {
    flex: 1 1 auto;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .module-tabs-scroll::-webkit-scrollbar {
    display: none;
  }

  .module-tab {
    min-height: 54px;
    flex: 0 0 auto;
    padding: 0 12px;
    font-size: 15px;
    white-space: nowrap;
  }

  .module-tab.active::after {
    right: 12px;
    left: 12px;
  }

  .workbench-scroll {
    min-width: 0;
    padding-right: 0;
    scrollbar-gutter: auto;
  }

  .topbar {
    gap: 10px;
    margin-bottom: 14px;
  }

  .topbar h1 {
    font-size: 21px;
    line-height: 1.3;
  }

  .topbar p {
    font-size: 12px;
  }

  .topbar-end button {
    min-height: 36px;
    padding: 7px 11px;
  }

  .tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* Common data tables keep column readability and scroll inside the table only. */
  .table-wrap,
  .property-table-wrap,
  .finance-table-wrap,
  .monitor-table-wrap,
  .receivable-table-shell,
  .receivable-table-scroll {
    max-width: 100%;
    overscroll-behavior-x: contain;
  }

  .table-wrap,
  .property-table-wrap,
  .finance-table-wrap,
  .monitor-table-wrap,
  .receivable-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap table,
  .property-table-wrap table,
  .finance-table-wrap table,
  .monitor-table-wrap table {
    min-width: max-content;
  }

  .receivable-table-scroll th,
  .receivable-table-scroll td {
    padding: 11px 12px;
    font-size: 13px;
  }

  .receivable-pagination,
  .pagination {
    min-height: 54px;
    justify-content: flex-start;
    gap: 9px;
    padding: 8px 10px;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Filter controls form intentional rows instead of overflowing off-screen. */
  .receivable-toolbar,
  .receivable-filter-stack,
  .receivable-filter-group,
  .receivable-more-filter-row,
  .room-charge-filter-group,
  .property-toolbar,
  .task-filter-bar,
  .task-runs-toolbar,
  .finance-meter-toolbar,
  .finance-fee-toolbar,
  .finance-charge-toolbar,
  .finance-history-toolbar,
  .knowledge-toolbar,
  .knowledge-segment-toolbar,
  #systemView .toolbar,
  .monitor-toolbar,
  .monitor-table-filters,
  .workbench.invest-mode .invest-filterbar,
  .workbench.invest-mode .invest-actions {
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .receivable-filter-group > *,
  .receivable-more-filter-row > *,
  .room-charge-filter-group > *,
  .property-toolbar > *,
  .task-filter-bar > *,
  .task-runs-toolbar > *,
  .finance-meter-toolbar > *,
  .finance-fee-toolbar > *,
  .finance-charge-toolbar > *,
  .finance-history-toolbar > *,
  .knowledge-toolbar > *,
  .knowledge-segment-toolbar > *,
  #systemView .toolbar > *,
  .monitor-toolbar > *,
  .monitor-table-filters > *,
  .workbench.invest-mode .invest-filterbar > *,
  .workbench.invest-mode .invest-actions > * {
    min-width: min(100%, 148px);
    flex: 1 1 148px;
  }

  .receivable-filter-group > button,
  .receivable-more-filter-row > button,
  .property-toolbar > button,
  .task-filter-bar > button,
  .task-runs-toolbar > button,
  .finance-meter-toolbar > button,
  .finance-fee-toolbar > button,
  .finance-charge-toolbar > button,
  .finance-history-toolbar > button,
  #systemView .toolbar > button {
    min-width: max-content;
    flex: 0 0 auto;
  }

  .receivable-project-select,
  .receivable-balance-select,
  .receivable-date-picker,
  .receivable-text-filter,
  .room-charge-filter-group .receivable-text-filter,
  .self-service-work-order-type-select,
  .deposit-ledger-board .receivable-project-select,
  .arrears-detail-board .receivable-project-select {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
  }

  .receivable-column-settings {
    margin-left: 0;
  }

  .receivable-column-settings > button,
  .receivable-column-settings > #receivableColumnTrigger {
    width: 100%;
  }

  .receivable-date-menu,
  .receivable-column-menu {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: min(72dvh, 620px);
    transform: none;
  }

  .receivable-date-menu::before {
    display: none;
  }

  .receivable-board,
  .tasks-board,
  .monitor-board,
  .finance-page,
  .property-service-type-page {
    min-width: 0;
  }

  dialog {
    width: min(100% - 24px, 620px);
    max-height: calc(100dvh - 24px);
    margin: auto;
  }

  .dialog-form,
  .finance-dialog > *:not(#toast),
  .property-contract-shell {
    max-height: calc(100dvh - 40px);
    overflow: auto;
  }
}

@media (max-width: 480px) {
  .login-panel {
    min-height: 100dvh;
    align-items: start;
    padding: max(16px, env(safe-area-inset-top)) 12px 20px;
    overflow-y: auto;
  }

  .auth-card {
    width: 100%;
    margin: 0;
    padding: 20px 16px;
    box-shadow: none;
  }

  .auth-brand {
    padding-bottom: 18px;
  }

  .auth-brand h1 {
    font-size: 22px;
  }

  .auth-form {
    gap: 13px;
    padding-top: 18px;
  }

  .auth-wecom-button {
    min-height: 54px;
  }

  .auth-email-row,
  .auth-email-code-row {
    grid-template-columns: minmax(0, 1fr) 108px;
  }

  .auth-code-row {
    grid-template-columns: minmax(0, 1fr) 94px 38px;
  }

  .auth-code-canvas {
    width: 94px;
  }

  .auth-code-refresh {
    width: 38px;
    height: 40px;
  }

  .workbench {
    padding: 10px;
  }

  .module-nav {
    margin: -10px -10px 10px;
    padding: 0 10px;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .receivable-board {
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* Browser chrome can leave a laptop with much less usable height than its screen.
   Keep the complete auth flow reachable instead of vertically centering it off-screen. */
@media (min-width: 481px) and (max-height: 760px) {
  .login-panel {
    min-height: 100dvh;
    height: 100dvh;
    place-items: start center;
    padding: 18px 16px 28px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }

  .auth-card {
    margin: 0 auto;
    padding: 24px 28px;
  }

  .auth-brand {
    padding-bottom: 18px;
  }

  .auth-form {
    padding-top: 18px;
    gap: 12px;
  }

  .auth-wecom-button {
    min-height: 52px;
  }

  .auth-wecom-guide {
    padding: 8px 10px;
  }
}

@media (min-width: 481px) and (max-height: 650px) {
  .login-panel {
    padding-top: 12px;
    padding-bottom: 18px;
  }

  .auth-card {
    padding: 18px 24px;
  }

  .auth-brand {
    padding-bottom: 14px;
  }

  .auth-brand-mark {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .auth-brand h1 {
    font-size: 22px;
  }

  .auth-form {
    padding-top: 14px;
    gap: 10px;
  }

  .auth-wecom-entry {
    gap: 6px;
  }

  .auth-wecom-button {
    min-height: 48px;
  }

  .auth-wecom-guide {
    padding: 6px 9px;
  }
}

/* Fallback for touch browsers using desktop-page mode: an opened drawer always
   remains a readable menu, even when CSS viewport width exceeds the handset. */
@media (hover: none) and (pointer: coarse) {
  .app.mobile-sidebar-open .sidebar {
    width: min(284px, calc(100vw - 54px));
    min-width: min(284px, calc(100vw - 54px));
  }

  .app.mobile-sidebar-open .sidebar .brand-full,
  .app.mobile-sidebar-open .sidebar .nav-label,
  .app.mobile-sidebar-open .sidebar .nav-section-title,
  .app.mobile-sidebar-open .sidebar .user-box span {
    display: inline !important;
  }

  .app.mobile-sidebar-open .sidebar .nav-section-title {
    display: block !important;
  }

  .app.mobile-sidebar-open .sidebar .brand-short {
    display: none !important;
  }

  .app.mobile-sidebar-open .sidebar .nav {
    justify-content: flex-start !important;
    padding: 9px 14px !important;
  }

  .app.mobile-sidebar-open .sidebar .nav-group {
    padding: 10px 0 18px !important;
  }
}

/* Final full-desktop override. This comes after generic containment rules so
   property filters keep the same compact rhythm as task scheduling. */
@media (min-width: 1501px) {
  .receivable-primary-filters,
  .room-charge-filter-group,
  .self-service-work-order-filter-group,
  .receivable-more-filter-row,
  .property-service-type-board .receivable-filter-group {
    display: flex !important;
    width: auto !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .receivable-primary-filters > *,
  .room-charge-filter-group > *,
  .self-service-work-order-filter-group > *,
  .receivable-more-filter-row > *,
  .property-service-type-board .receivable-filter-group > * {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
  }

  .receivable-primary-filters .receivable-text-filter,
  .room-charge-filter-group .receivable-text-filter,
  .self-service-work-order-filter-group .receivable-text-filter,
  .receivable-more-filter-row .receivable-text-filter {
    width: 190px !important;
  }

  .receivable-primary-filters .receivable-text-filter > input,
  .room-charge-filter-group .receivable-text-filter > input,
  .self-service-work-order-filter-group .receivable-text-filter > input,
  .receivable-more-filter-row .receivable-text-filter > input {
    width: 100% !important;
  }

  .receivable-primary-filters .receivable-project-select,
  .room-charge-filter-group .receivable-project-select,
  .self-service-work-order-filter-group .receivable-project-select,
  .arrears-detail-board .receivable-project-select,
  .deposit-ledger-board .receivable-project-select {
    width: 220px !important;
    flex-basis: 220px !important;
  }

  .receivable-primary-filters .receivable-balance-select,
  .room-charge-filter-group .receivable-balance-select,
  .self-service-work-order-filter-group .receivable-balance-select,
  .arrears-detail-board .arrears-detail-status {
    width: 150px !important;
    flex-basis: 150px !important;
  }

  .receivable-primary-filters .receivable-date-filter {
    display: inline-flex;
    width: auto !important;
    align-items: center;
    flex: 0 0 auto !important;
  }

  .receivable-primary-filters .receivable-date-picker {
    width: 310px !important;
    min-width: 310px !important;
    flex: 0 0 310px !important;
  }

  .self-service-work-order-more-filter-row .self-service-work-order-type-select {
    width: 250px !important;
    min-width: 250px !important;
    flex: 0 0 250px !important;
  }

  .property-service-type-board .property-service-type-select {
    width: 200px !important;
    flex: 0 0 200px !important;
  }

  .receivable-primary-filters > button,
  .room-charge-filter-group > button,
  .self-service-work-order-filter-group > button,
  .receivable-more-filter-row > button,
  .property-service-type-board .receivable-filter-group > button,
  .receivable-column-settings {
    width: auto !important;
    min-width: 82px !important;
    flex: 0 0 auto !important;
  }

  .receivable-column-settings > button {
    width: auto !important;
    min-width: 100px;
  }
}

/* Final dense-list sizing for the two desktop query pages. */
@media (min-width: 1501px) {
  .self-service-work-order-primary-filters .receivable-project-select {
    width: 180px !important;
    flex-basis: 180px !important;
  }

  .self-service-work-order-primary-filters #selfServiceWorkOrderProjectGroup,
  .self-service-work-order-primary-filters #selfServiceWorkOrderBuilding,
  .self-service-work-order-primary-filters #selfServiceWorkOrderRoom {
    width: 170px !important;
  }

  .self-service-work-order-primary-filters #selfServiceWorkOrderCustomer {
    width: 200px !important;
  }

  .receivable-primary-filters .receivable-project-select {
    width: 180px !important;
    flex-basis: 180px !important;
  }

  .receivable-primary-filters #receivableProjectGroup,
  .receivable-primary-filters #receivableCustomer {
    width: 190px !important;
  }

  .receivable-primary-filters .receivable-date-picker {
    width: 320px !important;
    min-width: 320px !important;
    flex-basis: 320px !important;
  }

  .receivable-primary-filters .receivable-balance-select {
    width: 120px !important;
    flex-basis: 120px !important;
  }

  /* On wide desktops, use the remaining first-row width for query fields
     instead of leaving a fixed-width gap before the column selector. */
  .self-service-work-order-primary-filters .receivable-text-filter {
    width: auto !important;
    flex: 1 1 160px !important;
  }

  .receivable-primary-filters #receivableProjectGroup,
  .receivable-primary-filters #receivableCustomer {
    width: auto !important;
    flex: 1 1 180px !important;
  }
}

/* Reserve a stable slot for column settings on the two data-dense property
   pages. These sizes apply only to a full desktop workspace. */
@media (min-width: 1501px) {
  .self-service-work-order-primary-filters .receivable-project-select {
    width: 190px !important;
    flex-basis: 190px !important;
  }

  .self-service-work-order-primary-filters .receivable-text-filter {
    width: 150px !important;
  }

  .receivable-primary-filters .receivable-project-select {
    width: 190px !important;
    flex-basis: 190px !important;
  }

  .receivable-primary-filters #receivableProjectGroup {
    width: 160px !important;
  }

  .receivable-primary-filters #receivableCustomer {
    width: 190px !important;
  }

  .receivable-primary-filters .receivable-date-picker {
    width: 280px !important;
    min-width: 280px !important;
    flex-basis: 280px !important;
  }

  .receivable-primary-filters .receivable-balance-select {
    width: 130px !important;
    flex-basis: 130px !important;
  }
}

/* Mobile property tabs: searching, creating and totals each have reserved
   space, so the three business tabs never paint controls on top of each other. */
@media (max-width: 768px) {
  .workbench.property-mode .property-board {
    padding: 0 12px 22px;
  }

  .workbench.property-mode .property-tabs {
    gap: 0;
    margin: 12px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .workbench.property-mode .property-tabs button {
    min-width: max-content;
    min-height: 48px;
    padding: 8px 14px 11px;
    white-space: nowrap;
  }

  .workbench.property-mode .property-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 14px 0;
  }

  .workbench.property-mode .property-toolbar .property-fee-search-box {
    width: 100%;
    min-width: 0;
  }

  .workbench.property-mode .property-toolbar .property-fee-search-box input {
    width: 100% !important;
    min-width: 0;
    max-width: none;
  }

  .workbench.property-mode .property-toolbar #propertySearchBtn {
    width: 72px;
    min-width: 72px;
    grid-column: 2;
    grid-row: 1;
  }

  .workbench.property-mode .property-toolbar .property-add-action {
    width: max-content;
    min-width: 132px;
    grid-column: 1;
    grid-row: 2;
  }

  .workbench.property-mode .property-toolbar > span {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    color: #667085;
    text-align: right;
    white-space: nowrap;
  }

  .workbench.property-mode .property-fee-toolbar {
    display: grid;
    gap: 12px;
    margin: 0 -12px;
    padding: 12px;
  }

  .workbench.property-mode .property-fee-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .workbench.property-mode .property-fee-filters button {
    min-width: 0;
    flex: 1 0 calc(25% - 6px);
    padding-right: 9px;
    padding-left: 9px;
  }

  .workbench.property-mode .property-fee-filters .property-add-fee {
    flex-basis: calc(50% - 4px);
  }

  .workbench.property-mode .property-fee-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 10px;
    width: 100%;
  }

  .workbench.property-mode .property-fee-search .property-fee-search-box,
  .workbench.property-mode .property-fee-search input {
    width: 100%;
    min-width: 0;
  }

  .workbench.property-mode .property-fee-search #propertySearchBtn {
    width: 72px;
    min-width: 72px;
  }
}

/* The graph visualizer is a control stack on a handset. Relation chips keep
   their horizontal lane while every other control remains readable and touchable. */
@media (max-width: 768px) {
  .workbench.graph-fixed-mode #graphView .graph-board {
    padding: 0;
  }

  .workbench.graph-fixed-mode #graphView .graph-tabs {
    min-height: 48px;
    padding: 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .workbench.graph-fixed-mode #graphView .graph-tabs button {
    min-height: 48px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .workbench.graph-fixed-mode #graphView .graph-visual-panel,
  .workbench.graph-fixed-mode #graphView .graph-data-panel {
    padding: 12px;
    border-radius: 0;
  }

  .workbench.graph-fixed-mode #graphView .graph-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 12px;
    border-radius: 7px 7px 0 0;
  }

  .workbench.graph-fixed-mode #graphView .graph-controls > button:first-child,
  .workbench.graph-fixed-mode #graphView #graphRootFilter,
  .workbench.graph-fixed-mode #graphView .graph-relations,
  .workbench.graph-fixed-mode #graphView .graph-search {
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0;
    max-width: none;
  }

  .workbench.graph-fixed-mode #graphView .graph-controls > button:first-child,
  .workbench.graph-fixed-mode #graphView #graphRootFilter,
  .workbench.graph-fixed-mode #graphView .graph-search input {
    min-height: 40px;
  }

  .workbench.graph-fixed-mode #graphView .graph-depth {
    width: 100%;
    min-height: 40px;
  }

  .workbench.graph-fixed-mode #graphView .graph-depth select {
    width: 72px;
    min-height: 40px;
  }

  .workbench.graph-fixed-mode #graphView .graph-relations {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 5px;
    scrollbar-width: none;
  }

  .workbench.graph-fixed-mode #graphView .graph-relations button {
    flex: 0 0 auto;
    min-height: 38px;
  }

  .workbench.graph-fixed-mode #graphView .graph-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    min-height: 40px;
  }

  .workbench.graph-fixed-mode #graphView .graph-search button {
    width: 42px;
    min-height: 40px;
  }

  .workbench.graph-fixed-mode #graphView #graphRefreshBtn {
    width: 82px;
    min-width: 82px;
    min-height: 40px;
    padding: 7px 8px;
  }

  .workbench.graph-fixed-mode #graphView .graph-canvas {
    height: 430px;
    min-height: 430px;
    overflow: hidden;
    border-radius: 0 0 7px 7px;
  }

  .workbench.graph-fixed-mode #graphView .graph-canvas svg {
    width: 100%;
    height: 430px;
    min-height: 430px;
  }
}

/* Final mobile overrides: keep property toolbars and the graph canvas above
   earlier responsive rules that intentionally target desktop workspaces. */
@media (max-width: 768px) {
  .workbench.property-mode .property-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 72px !important;
  }

  .workbench.property-mode .property-toolbar .property-fee-search-box,
  .workbench.property-mode .property-toolbar .property-fee-search-box input {
    width: 100% !important;
    min-width: 0 !important;
  }

  .workbench.graph-fixed-mode #graphView .graph-canvas {
    height: 430px !important;
    min-height: 430px !important;
    max-height: 430px !important;
    overflow: hidden !important;
  }

  .workbench.graph-fixed-mode #graphView .graph-canvas svg {
    height: 430px !important;
    min-height: 430px !important;
    max-height: 430px !important;
  }
}

/* Full desktop property filters follow the compact task-scheduler sizing.
   This intentionally starts above notebook widths, leaving the existing
   notebook and handset layouts untouched. */
@media (min-width: 1501px) {
  .receivable-primary-filters,
  .room-charge-filter-group,
  .self-service-work-order-filter-group,
  .receivable-more-filter-row,
  .property-service-type-board .receivable-filter-group {
    display: flex !important;
    width: auto;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .receivable-primary-filters > *,
  .room-charge-filter-group > *,
  .self-service-work-order-filter-group > *,
  .receivable-more-filter-row > *,
  .property-service-type-board .receivable-filter-group > * {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
  }

  .receivable-primary-filters .receivable-text-filter,
  .room-charge-filter-group .receivable-text-filter,
  .self-service-work-order-filter-group .receivable-text-filter,
  .receivable-more-filter-row .receivable-text-filter {
    width: 190px !important;
  }

  .receivable-primary-filters .receivable-text-filter > input,
  .room-charge-filter-group .receivable-text-filter > input,
  .self-service-work-order-filter-group .receivable-text-filter > input,
  .receivable-more-filter-row .receivable-text-filter > input {
    width: 100% !important;
  }

  .receivable-primary-filters .receivable-project-select,
  .room-charge-filter-group .receivable-project-select,
  .self-service-work-order-filter-group .receivable-project-select,
  .arrears-detail-board .receivable-project-select,
  .deposit-ledger-board .receivable-project-select {
    width: 220px !important;
    flex-basis: 220px !important;
  }

  .receivable-primary-filters .receivable-balance-select,
  .room-charge-filter-group .receivable-balance-select,
  .self-service-work-order-filter-group .receivable-balance-select,
  .arrears-detail-board .arrears-detail-status {
    width: 150px !important;
    flex-basis: 150px !important;
  }

  .receivable-primary-filters .receivable-date-filter {
    display: inline-flex;
    width: auto !important;
    align-items: center;
    flex: 0 0 auto !important;
  }

  .receivable-primary-filters .receivable-date-picker {
    width: 310px !important;
    min-width: 310px !important;
    flex: 0 0 310px !important;
  }

  .self-service-work-order-more-filter-row .self-service-work-order-type-select {
    width: 250px !important;
    min-width: 250px !important;
    flex: 0 0 250px !important;
  }

  .property-service-type-board .property-service-type-select {
    width: 200px !important;
    flex: 0 0 200px !important;
  }

  .receivable-primary-filters > button,
  .room-charge-filter-group > button,
  .self-service-work-order-filter-group > button,
  .receivable-more-filter-row > button,
  .property-service-type-board .receivable-filter-group > button,
  .receivable-column-settings {
    width: auto !important;
    min-width: 82px !important;
    flex: 0 0 auto !important;
  }

  .receivable-column-settings > button {
    width: auto !important;
    min-width: 100px;
  }
}

/* Responsive containment: every business view must shrink inside the workspace.
   Data tables retain readable columns and scroll inside their own surface. */
.workbench-scroll > *,
.workbench-scroll .tab-panel,
.workbench-scroll .receivable-board,
.workbench-scroll .monitor-board,
.workbench-scroll .tasks-board,
.workbench-scroll .finance-page,
.workbench-scroll .property-page,
.workbench-scroll #systemView {
  min-width: 0;
  max-width: 100%;
}

.table-wrap,
.system-table-scroll,
.property-table-wrap,
.property-table-scroll,
.receivable-table-shell,
.receivable-table-scroll,
.finance-table-wrap,
.monitor-table-wrap,
.graph-table-wrap,
.knowledge-table-wrap,
.tasks-table-panel,
.task-api-metrics-table {
  max-width: 100%;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Account and log columns must not be squeezed into vertical Chinese text. */
#userList table,
#logList table,
#menuList table {
  min-width: 1080px;
}

#userList th,
#userList td,
#logList th,
#logList td,
#menuList th,
#menuList td {
  white-space: nowrap;
}

#userList td:nth-last-child(2),
#userList th:nth-last-child(2) {
  min-width: 72px;
}

#userList td:last-child,
#userList th:last-child {
  min-width: 132px;
}

#userList > .system-table-scroll,
#logList > .system-table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
}

#userList > .system-table-scroll > table,
#logList > .system-table-scroll > table {
  width: max-content;
  min-width: 1080px;
}

.self-service-work-order-table {
  width: max-content;
  min-width: max(1180px, 100%);
}

.monitor-board {
  width: 100%;
  min-width: 0;
}

.monitor-kpis {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.monitor-charts {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

@media (max-width: 1500px) {
  #systemView .toolbar,
  .property-toolbar,
  .task-filter-bar,
  .task-runs-toolbar,
  .monitor-toolbar,
  .monitor-toolbar-filters,
  .monitor-table-filters,
  .finance-meter-toolbar,
  .finance-fee-toolbar,
  .finance-charge-toolbar,
  .finance-history-toolbar,
  .knowledge-toolbar,
  .knowledge-segment-toolbar,
  .receivable-filter-group,
  .receivable-more-filter-row,
  .room-charge-filter-group {
    flex-wrap: wrap;
    height: auto;
    min-height: 0;
  }

  #systemView .toolbar {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  #systemView .toolbar input,
  #systemView .toolbar select,
  #systemView .toolbar .system-search-field,
  .property-toolbar input,
  .task-filter-bar input,
  .task-filter-bar select,
  .task-runs-toolbar input,
  .task-runs-toolbar select,
  .monitor-table-filters input,
  .monitor-table-filters select,
  .monitor-endpoint-combobox {
    max-width: none;
    min-width: 160px;
    flex: 1 1 190px;
  }

  .monitor-toolbar {
    align-items: flex-start;
  }

  .monitor-toolbar > p {
    flex: 1 1 320px;
  }

  .monitor-toolbar-filters {
    flex: 0 1 auto;
  }

  .monitor-table-card > header {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .workbench-scroll {
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .workbench.system-mode #systemView,
  .workbench.invest-mode .invest-board,
  .workbench.task-mode #tasksView,
  .workbench.task-mode #taskRunsView,
  .workbench.task-mode #taskRegistryView,
  .workbench.property-mode #propertyView,
  .workbench.property-service-type-mode #propertyservicetypeView,
  .workbench.receivable-mode #receivablequeryView,
  .workbench.room-charge-mode #roomfeesettingView,
  .workbench.self-service-work-order-mode #selfserviceworkorderstatisticsView {
    min-height: 0;
    margin: -12px;
  }

  .workbench.system-mode.system-data-mode .workbench-scroll,
  .workbench.system-mode.system-action-mode .workbench-scroll {
    overflow-y: auto;
  }

  .workbench.system-mode.system-data-mode #systemView,
  .workbench.system-mode.system-action-mode #systemView {
    height: auto;
    min-height: calc(100dvh - 54px);
  }

  #accountPanel > .toolbar,
  #logPanel > .toolbar,
  .workbench.system-mode #systemView .toolbar {
    min-height: 0;
    padding: 12px;
  }

  #accountPanel > #userList.table-wrap,
  #logPanel > #logList.table-wrap,
  .workbench.system-mode #systemView .table-wrap {
    margin: 12px;
  }

  #systemView .toolbar > *,
  .property-toolbar > *,
  .task-filter-bar > *,
  .task-runs-toolbar > *,
  .monitor-toolbar-filters > *,
  .monitor-table-filters > *,
  .finance-meter-toolbar > *,
  .finance-fee-toolbar > *,
  .finance-charge-toolbar > *,
  .finance-history-toolbar > *,
  .knowledge-toolbar > *,
  .knowledge-segment-toolbar > * {
    min-width: min(100%, 148px);
    flex: 1 1 148px;
  }

  #systemView .toolbar > button,
  .property-toolbar > button,
  .task-filter-bar > button,
  .task-runs-toolbar > button,
  .finance-meter-toolbar > button,
  .finance-fee-toolbar > button,
  .finance-charge-toolbar > button,
  .finance-history-toolbar > button {
    flex: 0 0 auto;
  }

  .receivable-board {
    height: auto;
    min-height: calc(100dvh - 54px);
    padding: 0 12px 16px;
  }

  .receivable-toolbar {
    min-height: 0;
    padding: 8px 0;
  }

  .receivable-filter-stack {
    padding: 0;
  }

  .receivable-filter-group,
  .receivable-more-filter-row {
    align-items: stretch;
    gap: 8px;
  }

  .receivable-filter-group > *,
  .receivable-more-filter-row > *,
  .receivable-filter-group .receivable-text-filter,
  .receivable-more-filter-row .receivable-text-filter,
  .receivable-filter-group .receivable-project-select,
  .receivable-filter-group .receivable-balance-select,
  .receivable-filter-group .receivable-date-picker,
  .receivable-column-settings {
    width: auto !important;
    min-width: min(100%, 148px) !important;
    flex: 1 1 148px !important;
  }

  .receivable-filter-group > button,
  .receivable-more-filter-row > button {
    min-width: max-content !important;
    flex: 0 0 auto !important;
  }

  .receivable-date-picker > #receivableDateTrigger,
  .receivable-column-settings > button,
  .receivable-column-settings > #receivableColumnTrigger {
    width: 100%;
  }

  .receivable-table-shell,
  .property-table-wrap,
  .finance-table-wrap,
  .monitor-table-wrap,
  .table-wrap {
    min-height: 260px;
  }

  .receivable-table-scroll table,
  .property-table-wrap table,
  .finance-table-wrap table,
  .monitor-table-card table,
  .table-wrap table {
    width: max-content;
    min-width: 100%;
  }

  .receivable-table-scroll th,
  .receivable-table-scroll td,
  .property-table-wrap th,
  .property-table-wrap td,
  .finance-table-wrap th,
  .finance-table-wrap td,
  .monitor-table-card th,
  .monitor-table-card td {
    white-space: nowrap;
  }

  .receivable-pagination,
  .monitor-pagination,
  .task-pagination,
  .pagination {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .monitor-toolbar {
    gap: 10px;
    padding: 0 0 12px;
  }

  .monitor-toolbar > p {
    flex-basis: 100%;
  }

  .monitor-toolbar-filters,
  .monitor-table-filters {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .monitor-toolbar label,
  .monitor-table-filters label,
  .monitor-filter-field,
  .monitor-endpoint-combobox {
    min-width: min(100%, 148px);
    flex: 1 1 148px;
  }

  .monitor-charts {
    grid-template-columns: 1fr;
  }

  .monitor-chart-card,
  .monitor-table-card {
    min-width: 0;
  }

  .monitor-chart-card {
    padding: 14px;
  }

  .monitor-chart-card svg {
    min-width: 300px;
  }

  .monitor-table-card > header {
    padding: 14px;
  }

  /* Task filter rows can grow on a handset. Let the page own vertical scroll
     instead of forcing the table into a fixed-height overlap. */
  .tasks-board {
    display: flex;
    height: auto;
    min-height: calc(100dvh - 54px);
    overflow: visible;
    padding: 16px 14px 20px;
  }

  .tasks-header {
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: 0;
    padding-bottom: 14px;
  }

  .tasks-header > div {
    min-width: 0;
    flex: 1 1 180px;
  }

  .tasks-header > button {
    flex: 0 0 auto;
  }

  .task-filter-bar,
  .task-runs-toolbar {
    align-items: stretch;
    margin: 14px 0;
  }

  .task-filter-bar input,
  .task-filter-bar select,
  .task-runs-toolbar input,
  .task-runs-toolbar select {
    width: auto;
    min-width: min(100%, 148px);
    flex: 1 1 148px;
  }

  .task-filter-bar button,
  .task-runs-toolbar button {
    flex: 0 0 auto;
  }

  .task-list-shell {
    min-height: 360px;
    flex: 0 0 auto;
    overflow: hidden;
  }

  .task-list-shell .tasks-table-panel {
    height: 360px;
    flex: 0 0 360px;
    overflow: auto;
  }

  .tasks-table-panel table,
  .task-config-table table,
  .task-registry-table table,
  .task-runs-table table {
    width: max-content;
    min-width: 980px;
  }

  .tasks-table-panel th,
  .tasks-table-panel td {
    white-space: nowrap;
  }

  .task-pagination {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Some Android browsers expose a desktop CSS viewport even on a phone.
   A coarse pointer is a reliable final safeguard for the same mobile layout. */
@media (hover: none) and (pointer: coarse) {
  .app,
  .app.sidebar-collapsed {
    display: block;
    height: 100dvh;
    overflow: hidden;
  }

  .main,
  .workbench {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .workbench {
    padding: 12px;
  }

  .workbench-scroll {
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .mobile-menu-button {
    display: grid;
    flex: 0 0 38px;
  }

  .module-nav {
    min-height: 54px;
    margin: -12px -12px 12px;
    padding: 0 12px;
    overflow: hidden;
  }

  .module-tabs-scroll {
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .module-tab {
    min-height: 54px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .app.mobile-sidebar-open .sidebar {
    position: fixed;
    z-index: 240;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100dvh;
  }

  .receivable-filter-group,
  .receivable-more-filter-row,
  .property-toolbar,
  #systemView .toolbar,
  .task-filter-bar,
  .task-runs-toolbar,
  .monitor-toolbar,
  .monitor-toolbar-filters,
  .monitor-table-filters {
    flex-wrap: wrap;
    height: auto;
  }

  .monitor-kpis,
  .monitor-charts {
    grid-template-columns: 1fr;
  }
}

/* Property filter bars use a real grid once a row cannot hold every control.
   This prevents action buttons from being painted beneath an input. */
@media (max-width: 1920px) {
  .room-charge-filter-group,
  .self-service-work-order-filter-group,
  .receivable-primary-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    align-items: center;
    gap: 10px;
  }

  .room-charge-filter-group > *,
  .self-service-work-order-filter-group > *,
  .receivable-primary-filters > * {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .room-charge-filter-group .receivable-text-filter,
  .self-service-work-order-filter-group .receivable-text-filter,
  .receivable-primary-filters .receivable-text-filter,
  .room-charge-filter-group .receivable-project-select,
  .self-service-work-order-filter-group .receivable-project-select,
  .receivable-primary-filters .receivable-project-select,
  .room-charge-filter-group .receivable-balance-select,
  .self-service-work-order-filter-group .receivable-balance-select,
  .receivable-primary-filters .receivable-balance-select {
    width: 100% !important;
  }

  .room-charge-filter-group > button,
  .self-service-work-order-filter-group > button,
  .receivable-primary-filters > button {
    width: max-content !important;
    min-width: max-content !important;
    justify-self: start;
  }

  .room-charge-board .receivable-toolbar,
  .self-service-work-order-board .receivable-toolbar,
  .deposit-ledger-board .receivable-toolbar,
  .arrears-detail-board .receivable-toolbar {
    flex: 0 0 auto;
    flex-shrink: 0;
  }

  .room-charge-board .receivable-table-shell,
  .self-service-work-order-board .receivable-table-shell,
  .deposit-ledger-board .receivable-table-shell,
  .arrears-detail-board .receivable-table-shell {
    min-height: 0;
    flex: 1 1 0;
  }
}

@media (max-width: 768px) {
  .room-charge-filter-group,
  .self-service-work-order-filter-group,
  .receivable-primary-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
  }

  .room-charge-filter-group > button,
  .self-service-work-order-filter-group > button,
  .receivable-primary-filters > button {
    min-width: 0 !important;
    width: 100% !important;
    justify-self: stretch;
  }

  /* Handsets use one natural vertical document. The pagination follows the
     complete table instead of being clipped below an inner scroller. */
  .workbench.property-mode .workbench-scroll,
  .workbench.receivable-mode .workbench-scroll,
  .workbench.room-charge-mode .workbench-scroll,
  .workbench.deposit-ledger-mode .workbench-scroll,
  .workbench.arrears-detail-mode .workbench-scroll,
  .workbench.self-service-work-order-mode .workbench-scroll,
  .workbench.property-service-type-mode .workbench-scroll {
    overflow-y: auto !important;
  }

  .workbench.property-mode #propertyView,
  .workbench.receivable-mode #receivablequeryView,
  .workbench.room-charge-mode #roomfeesettingView,
  .workbench.deposit-ledger-mode #propertydepositledgerView,
  .workbench.arrears-detail-mode #debtdetailsView,
  .workbench.self-service-work-order-mode #selfserviceworkorderstatisticsView,
  .workbench.property-service-type-mode #propertyservicetypeView {
    height: auto !important;
    min-height: 0;
  }

  .workbench.property-mode #propertyContent,
  .workbench.receivable-mode #receivablequeryContent,
  .workbench.room-charge-mode #roomfeesettingContent,
  .workbench.deposit-ledger-mode #propertydepositledgerContent,
  .workbench.arrears-detail-mode #debtdetailsContent,
  .workbench.self-service-work-order-mode #selfserviceworkorderstatisticsContent,
  .workbench.property-service-type-mode #propertyservicetypeContent,
  .property-board,
  .receivable-board,
  .property-service-type-board {
    height: auto !important;
    min-height: 0;
  }

  .receivable-table-shell,
  .property-table-wrap {
    display: block;
    min-height: 0;
    overflow: visible;
  }

  .receivable-table-scroll,
  .property-table-scroll {
    display: block;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
  }

  .receivable-pagination,
  .property-pagination {
    position: static;
    min-height: 56px;
    margin-top: 0;
  }
}

/* Finance history is a three-part workspace: controls, a scrollable result
   area, and a pager that must always remain reachable. */
.workbench.finance-history-mode .workbench-scroll {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.workbench.finance-history-mode .topbar,
.workbench.finance-history-mode #financeView,
.workbench.finance-history-mode #financeContent,
.workbench.finance-history-mode .finance-page,
.workbench.finance-history-mode .finance-history-panel {
  min-height: 0;
}

.workbench.finance-history-mode .topbar {
  flex: 0 0 auto;
}

.workbench.finance-history-mode #financeView,
.workbench.finance-history-mode #financeContent,
.workbench.finance-history-mode .finance-page {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
}

.finance-history-panel {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  overflow: hidden;
}

.finance-history-toolbar,
.finance-history-panel > .finance-pager {
  flex: 0 0 auto;
}

.finance-history-table {
  display: flex;
  flex: 1 1 0;
  min-height: 180px;
  overflow: hidden;
}

.finance-history-table .finance-table-wrap {
  height: auto;
  min-height: 0;
  flex: 1 1 0;
}

.finance-history-panel > .finance-pager {
  min-height: 48px;
  padding: 10px 0 0;
}

/* Property list filters use one predictable grid across all property pages.
   It prevents flex-basis leftovers from pushing actions over the table. */
@media (min-width: 769px) and (max-width: 1500px) {
  .receivable-primary-filters,
  .room-charge-filter-group,
  .self-service-work-order-filter-group,
  .receivable-more-filter-row {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }
}

@media (max-width: 1920px) {
  .receivable-primary-filters,
  .room-charge-filter-group,
  .self-service-work-order-filter-group,
  .receivable-more-filter-row {
    display: grid;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .receivable-primary-filters > *,
  .room-charge-filter-group > *,
  .self-service-work-order-filter-group > *,
  .receivable-more-filter-row > * {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .receivable-primary-filters .receivable-text-filter,
  .room-charge-filter-group .receivable-text-filter,
  .self-service-work-order-filter-group .receivable-text-filter,
  .receivable-more-filter-row .receivable-text-filter,
  .receivable-primary-filters .receivable-project-select,
  .room-charge-filter-group .receivable-project-select,
  .self-service-work-order-filter-group .receivable-project-select,
  .receivable-primary-filters .receivable-balance-select,
  .room-charge-filter-group .receivable-balance-select,
  .self-service-work-order-filter-group .receivable-balance-select,
  .receivable-column-settings {
    width: 100% !important;
    min-width: 0 !important;
  }

  .receivable-primary-filters .receivable-text-filter > input,
  .room-charge-filter-group .receivable-text-filter > input,
  .self-service-work-order-filter-group .receivable-text-filter > input,
  .receivable-more-filter-row .receivable-text-filter > input,
  .receivable-primary-filters .receivable-project-select > select,
  .room-charge-filter-group .receivable-project-select > select,
  .self-service-work-order-filter-group .receivable-project-select > select,
  .receivable-primary-filters .receivable-balance-select > select,
  .room-charge-filter-group .receivable-balance-select > select,
  .self-service-work-order-filter-group .receivable-balance-select > select,
  .receivable-column-settings > button {
    width: 100% !important;
  }

  .receivable-primary-filters > button,
  .room-charge-filter-group > button,
  .self-service-work-order-filter-group > button,
  .receivable-more-filter-row > button {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center;
  }

  .receivable-primary-filters .receivable-date-filter {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100% !important;
    min-width: 0 !important;
    align-items: center;
    gap: 8px;
  }

  .receivable-primary-filters .receivable-date-picker {
    width: 100% !important;
    min-width: 0 !important;
    flex: initial !important;
  }
}

@media (max-width: 768px) {
  /* A phone has one vertical document. Inner data surfaces only handle a
     horizontal drag, leaving every vertical swipe available to the page. */
  .workbench-scroll {
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .receivable-primary-filters,
  .room-charge-filter-group,
  .self-service-work-order-filter-group,
  .receivable-more-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .receivable-primary-filters .receivable-date-filter {
    grid-column: 1 / -1;
  }

  .receivable-primary-filters .receivable-date-picker > #receivableDateTrigger {
    width: 100%;
  }

  .receivable-table-scroll,
  .property-table-scroll,
  .finance-table-wrap {
    touch-action: pan-x pan-y;
  }

  .workbench.finance-history-mode .workbench-scroll,
  .workbench.finance-history-mode #financeView,
  .workbench.finance-history-mode #financeContent,
  .workbench.finance-history-mode .finance-page,
  .workbench.finance-history-mode .finance-history-panel,
  .workbench.finance-history-mode .finance-history-table {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .workbench.finance-history-mode .finance-history-table .finance-table-wrap {
    height: auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: visible;
  }

  .workbench.finance-history-mode .finance-history-panel > .finance-pager {
    min-height: 54px;
    padding: 12px 0 0;
    overflow-x: auto;
    justify-content: flex-start;
    white-space: nowrap;
  }
}

/* Investment module on a handset: use the shared page scroller for every
   secondary page. Cards and tables grow in normal document flow, so a swipe
   anywhere in the content moves the complete page instead of a nested panel. */
@media (max-width: 768px) {
  .workbench.dashboard-mode .workbench-scroll,
  .workbench.ai-mode .workbench-scroll,
  .workbench.invest-mode .workbench-scroll,
  .workbench.operations-mode .workbench-scroll,
  .workbench.property-mode .workbench-scroll,
  .workbench.knowledge-mode .workbench-scroll,
  .workbench.graph-fixed-mode .workbench-scroll {
    display: block;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .workbench.dashboard-mode #dashboardView,
  .workbench.ai-mode #aiView,
  .workbench.invest-mode #investView,
  .workbench.operations-mode #operationsView,
  .workbench.property-mode #propertyView,
  .workbench.knowledge-mode #knowledgeView,
  .workbench.graph-fixed-mode #graphView,
  .workbench.graph-fixed-mode #graphContent {
    display: block;
    height: auto !important;
    min-height: 0;
    overflow: visible;
  }

  .park-dashboard,
  .workbench.ai-mode .ai-brain,
  .workbench.invest-mode .invest-board,
  .operations-board,
  .property-board,
  .knowledge-board,
  .workbench.graph-fixed-mode #graphView .graph-board {
    display: block;
    height: auto !important;
    min-height: 0;
    overflow: visible;
  }

  .park-dashboard-scroll,
  .ai-brain-scroll,
  .workbench.invest-mode .invest-list-scroll,
  .operations-scroll {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .workbench.graph-fixed-mode #graphView .graph-visual-panel,
  .workbench.graph-fixed-mode #graphView .graph-data-panel {
    display: block;
    min-height: 0;
    overflow: visible;
  }

  .workbench.graph-fixed-mode #graphView .graph-canvas,
  .workbench.graph-fixed-mode #graphView .graph-table-wrap,
  .knowledge-table-wrap,
  .property-table-wrap,
  .property-table-scroll {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow-x: auto;
    overflow-y: visible;
  }

  .workbench.invest-mode .company-grid {
    height: auto;
    grid-template-rows: none;
  }

  .workbench.graph-fixed-mode #graphView .graph-canvas svg {
    height: auto;
    min-height: 610px;
  }
}

/* Some phones report a desktop CSS viewport. Apply the same scrolling model
   when the input device is touch-first. */
@media (hover: none) and (pointer: coarse) {
  .workbench.dashboard-mode .workbench-scroll,
  .workbench.ai-mode .workbench-scroll,
  .workbench.invest-mode .workbench-scroll,
  .workbench.operations-mode .workbench-scroll,
  .workbench.property-mode .workbench-scroll,
  .workbench.knowledge-mode .workbench-scroll,
  .workbench.graph-fixed-mode .workbench-scroll {
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
  }
}

/* Final full-desktop property toolbar sizing. */
@media (min-width: 1501px) {
  .receivable-primary-filters,
  .room-charge-filter-group,
  .self-service-work-order-filter-group,
  .receivable-more-filter-row,
  .property-service-type-board .receivable-filter-group {
    display: flex !important;
    width: auto !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .receivable-primary-filters > *,
  .room-charge-filter-group > *,
  .self-service-work-order-filter-group > *,
  .receivable-more-filter-row > *,
  .property-service-type-board .receivable-filter-group > * {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
  }

  .receivable-primary-filters .receivable-text-filter,
  .room-charge-filter-group .receivable-text-filter,
  .self-service-work-order-filter-group .receivable-text-filter,
  .receivable-more-filter-row .receivable-text-filter {
    width: 190px !important;
  }

  .receivable-primary-filters .receivable-text-filter > input,
  .room-charge-filter-group .receivable-text-filter > input,
  .self-service-work-order-filter-group .receivable-text-filter > input,
  .receivable-more-filter-row .receivable-text-filter > input {
    width: 100% !important;
  }

  .receivable-primary-filters .receivable-project-select,
  .room-charge-filter-group .receivable-project-select,
  .self-service-work-order-filter-group .receivable-project-select,
  .arrears-detail-board .receivable-project-select,
  .deposit-ledger-board .receivable-project-select {
    width: 220px !important;
    flex-basis: 220px !important;
  }

  .receivable-primary-filters .receivable-balance-select,
  .room-charge-filter-group .receivable-balance-select,
  .self-service-work-order-filter-group .receivable-balance-select,
  .arrears-detail-board .arrears-detail-status {
    width: 150px !important;
    flex-basis: 150px !important;
  }

  .receivable-primary-filters .receivable-date-filter {
    display: inline-flex;
    width: auto !important;
    align-items: center;
    flex: 0 0 auto !important;
  }

  .receivable-primary-filters .receivable-date-picker {
    width: 310px !important;
    min-width: 310px !important;
    flex: 0 0 310px !important;
  }

  .self-service-work-order-more-filter-row .self-service-work-order-type-select {
    width: 250px !important;
    min-width: 250px !important;
    flex: 0 0 250px !important;
  }

  .property-service-type-board .property-service-type-select {
    width: 200px !important;
    flex: 0 0 200px !important;
  }

  .receivable-primary-filters > button,
  .room-charge-filter-group > button,
  .self-service-work-order-filter-group > button,
  .receivable-more-filter-row > button,
  .property-service-type-board .receivable-filter-group > button,
  .receivable-column-settings {
    width: auto !important;
    min-width: 82px !important;
    flex: 0 0 auto !important;
  }

  .receivable-column-settings > button {
    width: auto !important;
    min-width: 100px;
  }

  /* Keep the column-settings action on the first line in dense lists. */
  .self-service-work-order-primary-filters .receivable-project-select {
    width: 180px !important;
    flex-basis: 180px !important;
  }

  .self-service-work-order-primary-filters .receivable-text-filter {
    width: 150px !important;
  }

  .receivable-primary-filters .receivable-project-select {
    width: 180px !important;
    flex-basis: 180px !important;
  }

  .receivable-primary-filters #receivableProjectGroup,
  .receivable-primary-filters #receivableCustomer {
    width: 150px !important;
  }

  .receivable-primary-filters .receivable-date-picker {
    width: 260px !important;
    min-width: 260px !important;
    flex-basis: 260px !important;
  }

  .receivable-primary-filters .receivable-balance-select {
    width: 120px !important;
    flex-basis: 120px !important;
  }
}

/* Final desktop-only layout for the two high-density property query bars. */
@media (min-width: 1701px) {
  .self-service-work-order-primary-filters {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: 180px repeat(3, minmax(140px, 1fr)) minmax(180px, 1.25fr) repeat(6, max-content);
    align-items: center;
    gap: 10px;
  }

  .self-service-work-order-primary-filters > *,
  .self-service-work-order-primary-filters .receivable-text-filter,
  .self-service-work-order-primary-filters .receivable-project-select,
  .self-service-work-order-primary-filters .receivable-column-settings {
    width: auto !important;
    min-width: 0 !important;
  }

  .self-service-work-order-primary-filters .receivable-text-filter {
    flex: initial !important;
  }

  .self-service-work-order-primary-filters .receivable-text-filter > input,
  .self-service-work-order-primary-filters #selfServiceWorkOrderProjectGroup,
  .self-service-work-order-primary-filters #selfServiceWorkOrderBuilding,
  .self-service-work-order-primary-filters #selfServiceWorkOrderRoom,
  .self-service-work-order-primary-filters #selfServiceWorkOrderCustomer,
  .self-service-work-order-primary-filters .receivable-project-select > select {
    width: 100% !important;
  }

  .receivable-primary-filters {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: 180px minmax(155px, 1fr) minmax(180px, 1.2fr) 320px 120px auto auto auto auto auto;
    align-items: center;
    gap: 10px;
  }

  .receivable-primary-filters > *,
  .receivable-primary-filters .receivable-text-filter,
  .receivable-primary-filters .receivable-project-select,
  .receivable-primary-filters .receivable-balance-select,
  .receivable-primary-filters .receivable-date-filter,
  .receivable-primary-filters .receivable-column-settings {
    width: auto !important;
    min-width: 0 !important;
  }

  .receivable-primary-filters .receivable-text-filter,
  .receivable-primary-filters .receivable-date-filter,
  .receivable-primary-filters .receivable-date-picker {
    flex: initial !important;
  }

  .receivable-primary-filters .receivable-text-filter > input,
  .receivable-primary-filters #receivableProjectGroup,
  .receivable-primary-filters #receivableCustomer,
  .receivable-primary-filters .receivable-project-select > select,
  .receivable-primary-filters .receivable-balance-select > select,
  .receivable-primary-filters .receivable-date-picker {
    width: 100% !important;
  }

  .receivable-primary-filters .receivable-date-picker {
    min-width: 0 !important;
  }

  .self-service-work-order-primary-filters .self-service-work-order-sync-types,
  .self-service-work-order-primary-filters .receivable-column-settings {
    justify-self: end;
  }
}

/* Definitive compact layout for notebook workspaces. Keep this block last so
   legacy responsive rules cannot stretch action buttons to a full grid row. */
@media (min-width: 769px) and (max-width: 1500px) {
  .receivable-primary-filters,
  .room-charge-filter-group,
  .self-service-work-order-filter-group,
  .receivable-more-filter-row,
  .property-service-type-board .receivable-filter-group {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .receivable-primary-filters > *,
  .room-charge-filter-group > *,
  .self-service-work-order-filter-group > *,
  .receivable-more-filter-row > *,
  .property-service-type-board .receivable-filter-group > * {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
  }

  .receivable-filter-group .receivable-project-select,
  .property-service-type-board .property-service-type-select {
    width: 190px !important;
    flex-basis: 190px !important;
  }

  .receivable-filter-group .receivable-text-filter,
  .receivable-more-filter-row .receivable-text-filter {
    width: clamp(150px, 15vw, 190px) !important;
    flex-basis: clamp(150px, 15vw, 190px) !important;
  }

  .receivable-filter-group .receivable-balance-select {
    width: 138px !important;
    flex-basis: 138px !important;
  }

  .receivable-primary-filters .receivable-date-filter {
    display: inline-flex !important;
    width: auto !important;
    flex: 0 0 auto !important;
  }

  .receivable-primary-filters .receivable-date-picker {
    width: 300px !important;
    min-width: 300px !important;
    flex: 0 0 300px !important;
  }

  .receivable-filter-group .receivable-text-filter > input,
  .receivable-filter-group .receivable-project-select > select,
  .receivable-filter-group .receivable-balance-select > select,
  .receivable-column-settings > button {
    width: 100% !important;
  }

  .receivable-filter-group > button,
  .receivable-more-filter-row > button,
  .receivable-column-settings {
    width: max-content !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    justify-self: auto !important;
  }

  .receivable-filter-group > button,
  .receivable-column-settings > button {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  #systemView .toolbar > button,
  .property-toolbar > button,
  .task-filter-bar > button,
  .task-runs-toolbar > button,
  .monitor-toolbar-filters > button,
  .monitor-table-filters > button,
  .knowledge-toolbar > button,
  .knowledge-segment-toolbar > button,
  .finance-toolbar > button,
  .finance-filterbar > button {
    width: max-content !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .finance-toolbar > input:not([type="file"]):not([type="hidden"]),
  .finance-toolbar > select,
  .finance-filterbar > input,
  .finance-filterbar > select,
  .finance-search,
  .finance-meter-level,
  .finance-fee-park,
  .finance-charge-park,
  .finance-history-type {
    width: clamp(150px, 16vw, 220px) !important;
    min-width: 150px !important;
    flex: 0 0 clamp(150px, 16vw, 220px) !important;
  }

  .finance-fee-date-picker {
    width: 300px !important;
    min-width: 300px !important;
    flex: 0 0 300px !important;
  }
}

/* Definitive handset layout. Project/date controls span the row, normal
   fields use two columns, and actions remain compact inside that grid. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .receivable-primary-filters,
  .room-charge-filter-group,
  .self-service-work-order-filter-group,
  .receivable-more-filter-row,
  .property-service-type-board .receivable-filter-group {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .receivable-primary-filters > *,
  .room-charge-filter-group > *,
  .self-service-work-order-filter-group > *,
  .receivable-more-filter-row > *,
  .property-service-type-board .receivable-filter-group > * {
    min-width: 0 !important;
    margin: 0 !important;
  }

  .receivable-filter-group .receivable-project-select,
  .property-service-type-board .receivable-filter-group > .property-service-type-select:first-child,
  .receivable-primary-filters .receivable-date-filter {
    width: 100% !important;
    grid-column: 1 / -1 !important;
  }

  .receivable-filter-group .receivable-text-filter,
  .receivable-filter-group .receivable-balance-select,
  .receivable-more-filter-row .receivable-text-filter,
  .receivable-filter-group .receivable-text-filter > input,
  .receivable-filter-group .receivable-project-select > select,
  .receivable-filter-group .receivable-balance-select > select,
  .receivable-primary-filters .receivable-date-picker,
  .receivable-column-settings > button {
    width: 100% !important;
    min-width: 0 !important;
  }

  .receivable-filter-group > button,
  .receivable-more-filter-row > button,
  .receivable-column-settings {
    width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }

  #systemView .toolbar > button,
  .property-toolbar > button,
  .task-filter-bar > button,
  .task-runs-toolbar > button,
  .monitor-toolbar-filters > button,
  .monitor-table-filters > button,
  .knowledge-toolbar > button,
  .knowledge-segment-toolbar > button,
  .finance-toolbar > button,
  .finance-filterbar > button {
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: start !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .finance-fee-date-picker,
  .finance-fee-park,
  .finance-charge-park,
  .finance-toolbar .finance-task-meta,
  .finance-filterbar .finance-task-meta {
    width: 100% !important;
    min-width: 0 !important;
    grid-column: 1 / -1 !important;
  }

  .finance-fee-primary,
  .finance-charge-check {
    grid-column: 1 / -1;
  }
}

/* Receivables have a deliberate two-row notebook hierarchy: core filters on
   row one, then the date range and actions on row two. */
@media (min-width: 769px) and (max-width: 1500px) {
  .receivable-primary-filters > .receivable-project-select { order: 1; }
  .receivable-primary-filters > .receivable-text-filter:has(#receivableProjectGroup) { order: 2; }
  .receivable-primary-filters > .receivable-text-filter:has(#receivableCustomer) { order: 3; }
  .receivable-primary-filters > .receivable-balance-select { order: 4; }
  .receivable-primary-filters > .receivable-date-filter { order: 5; }
  .receivable-primary-filters > #receivableMoreFiltersBtn { order: 6; }
  .receivable-primary-filters > #receivableSearchBtn { order: 7; }
  .receivable-primary-filters > #receivableResetBtn { order: 8; }
  .receivable-primary-filters > #receivableExportBtn { order: 9; }
  .receivable-primary-filters > .receivable-column-settings { order: 10; }

  .receivable-primary-filters .receivable-project-select,
  .receivable-primary-filters .receivable-text-filter {
    width: calc((100% - 168px) / 3) !important;
    flex-basis: calc((100% - 168px) / 3) !important;
  }

  .receivable-primary-filters .receivable-balance-select {
    width: 138px !important;
    flex-basis: 138px !important;
  }

  .receivable-primary-filters .receivable-date-filter {
    margin-right: 0 !important;
  }
}

/* On phones, task and finance actions flow by their natural label width.
   Inputs keep a two-column rhythm, while compact buttons share each row. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .task-filter-bar,
  .task-runs-toolbar,
  .finance-toolbar,
  .finance-filterbar {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    align-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .task-filter-bar > input,
  .task-filter-bar > select,
  .task-runs-toolbar > input,
  .task-runs-toolbar > select {
    width: calc(50% - 5px) !important;
    min-width: 0 !important;
    flex: 0 0 calc(50% - 5px) !important;
  }

  .task-filter-bar > button,
  .task-runs-toolbar > button,
  .finance-toolbar > button,
  .finance-filterbar > button {
    width: max-content !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  .finance-meter-level,
  .finance-meter-search,
  .finance-history-type,
  .finance-search:not(.finance-fee-search) {
    width: calc(50% - 5px) !important;
    min-width: 0 !important;
    flex: 0 0 calc(50% - 5px) !important;
  }

  .finance-fee-date-picker,
  .finance-fee-park,
  .finance-charge-park {
    width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
  }

  .finance-fee-search {
    width: min(220px, 100%) !important;
    min-width: 0 !important;
    flex: 0 1 220px !important;
  }

  .finance-toolbar .finance-inline-check,
  .finance-toolbar .finance-task-meta,
  .finance-filterbar .finance-task-meta {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
  }

  .finance-fee-primary,
  .finance-charge-check {
    flex-basis: auto !important;
  }
}

/* Notebook shell alignment: the sidebar brand and primary navigation share
   the same 64px header row. Page spacing belongs to workbench-scroll, not the
   outer grid, otherwise the primary navigation is pushed down by 20px. */
@media (min-width: 769px) and (max-width: 1500px) {
  .workbench {
    grid-template-rows: 64px minmax(0, 1fr) !important;
    padding: 0 !important;
  }

  .workbench > .module-nav,
  .module-nav {
    min-height: 64px !important;
    margin: 0 !important;
  }

  .module-tab {
    min-height: 64px !important;
  }

  .brand {
    min-height: 64px;
  }
}

/* Native selects keep their original interaction while the selected value is
   rendered in a centered, single-line layer that can reliably show ellipsis. */
select {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding-right: 34px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

select option {
  overflow: visible;
  color: #344054;
  text-overflow: clip;
  white-space: normal;
}

.select-ellipsis-host {
  position: relative;
}

select.select-ellipsis-source {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

select.select-ellipsis-source option {
  color: #344054 !important;
}

.select-ellipsis-value {
  position: absolute;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
}

.select-ellipsis-value > span {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receivable-project-select > select,
.receivable-balance-select > select,
.property-service-type-select > select,
.arrears-detail-status > select {
  padding-right: 50px !important;
}

:is(
  #financeFeeParkTrigger,
  #financeReceiptProjectTrigger,
  #financeOverProjectTrigger,
  #financeSewageProjectTrigger,
  .finance-project-trigger,
  #financeChargeParkTrigger,
  .task-month-picker-trigger,
  .knowledge-select-trigger,
  .receivable-column-trigger
) {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

:is(
  #financeFeeParkTrigger,
  #financeReceiptProjectTrigger,
  #financeOverProjectTrigger,
  #financeSewageProjectTrigger,
  .finance-project-trigger,
  #financeChargeParkTrigger,
  .task-month-picker-trigger,
  .knowledge-select-trigger,
  .receivable-column-trigger
) > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Handset shell fixes: dashboard headers stay inside the page flow, while
   Pipeline drops the desktop sidebar offset and keeps the menu button fixed. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .workbench.dashboard-mode .topbar {
    align-items: center;
    justify-content: center;
    min-height: 54px;
    margin: 0;
    padding: 0;
  }

  .workbench.dashboard-mode .topbar > div {
    width: 100%;
  }

  .workbench.dashboard-mode .topbar h1 {
    width: 100%;
    margin: 0;
    text-align: center;
  }

  .workbench.dashboard-mode #dashboardView {
    margin: 0;
  }

  .app.pipeline-mode > .sidebar,
  .app.pipeline-mode.sidebar-collapsed > .sidebar {
    position: fixed;
    z-index: 240;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: min(284px, calc(100vw - 54px));
    height: 100dvh;
    min-height: 0;
    transform: translateX(-105%);
  }

  .app.pipeline-mode.mobile-sidebar-open > .sidebar {
    transform: translateX(0);
  }

  .app.pipeline-mode > .sidebar > nav {
    display: grid;
  }

  .app.pipeline-mode > .sidebar > .user-box {
    display: block;
  }

  .app.pipeline-mode .module-nav,
  .app.pipeline-mode.sidebar-collapsed .module-nav {
    padding-right: 12px;
    padding-left: 12px;
  }

  .workbench.pipeline-mode .workbench-scroll {
    padding: 0;
    overflow: hidden !important;
  }

  .workbench.pipeline-mode #difyView {
    width: 100%;
    height: calc(100dvh - 76px);
    min-height: 0;
    margin: 0;
  }

  .workbench.pipeline-mode .dify-platform-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
  }
}

/* Desktop Pipeline keeps the application shell as a single full-width column.
   The sidebar is an overlay in this mode, so the generic collapsed-sidebar
   grid must not reserve a compact rail or squeeze the embedded Dify frame. */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  .app.pipeline-mode,
  .app.pipeline-mode.sidebar-collapsed {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .app.pipeline-mode > .main,
  .app.pipeline-mode.sidebar-collapsed > .main {
    width: 100%;
    min-width: 0;
    grid-column: 1;
  }

  .app.pipeline-mode .workbench,
  .app.pipeline-mode.sidebar-collapsed .workbench,
  .app.pipeline-mode #difyView,
  .app.pipeline-mode.sidebar-collapsed #difyView,
  .app.pipeline-mode .dify-platform-frame,
  .app.pipeline-mode.sidebar-collapsed .dify-platform-frame {
    width: 100%;
    min-width: 0;
  }

  .workbench.pipeline-mode .workbench-scroll {
    padding: 0;
  }

  .workbench.pipeline-mode #difyView,
  .workbench.pipeline-mode .dify-platform-frame {
    height: 100%;
    min-height: 0;
    margin: 0;
  }
}

/* Ã¦Â¬Â Ã¦Â¬Â¾Ã¨Â¶ÂÃ¦ÂÂ¼Ã¥Â·Â¥Ã¥ÂÂ·Ã¦Â ÂÃ¥Â¯Â¹Ã©Â½ÂÃ¨Â´Â¹Ã§ÂÂ¨Ã¦Â¯ÂÃ¥Â¯Â¹Ã¯Â¼ÂÃ§Â´Â§Ã¥ÂÂÃ¦Â¨ÂªÃ¥ÂÂÃ¦ÂÂÃ¥Â¸ÂÃ¯Â¼ÂÃ¤Â¸Â»Ã¦ÂÂÃ©ÂÂ®/Ã¦ÂÂ¥Ã¨Â¯Â¢Ã§Â´Â«Ã¨ÂÂ² */
@media (min-width: 1501px) and (hover: hover) and (pointer: fine) {
  .finance-over-toolbar {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    align-items: center;
    gap: 10px;
  }

  /* Ã¦Â±Â¡Ã¦Â°Â´Ã©Â¡ÂµÃ¦ÂÂ§Ã¤Â»Â¶Ã¦ÂÂ´Ã¥Â¤ÂÃ¯Â¼ÂÃ¥Â¼ÂºÃ¥ÂÂ¶Ã¦ÂÂ¢Ã¨Â¡ÂÃ¯Â¼ÂÃ©ÂÂ²Ã¦Â­Â¢Ã¥Â¯Â¼Ã¥ÂÂºÃ§Â­ÂÃ¦ÂÂÃ©ÂÂ®Ã¦ÂºÂ¢Ã¥ÂÂº */
  .finance-sewage-panel .finance-over-toolbar {
    flex-wrap: wrap;
  }

  .finance-over-toolbar > .finance-over-project {
    flex: 0 0 180px;
    width: 180px;
  }

  .finance-over-toolbar > #financeOverCategory,
  .finance-over-toolbar > #financeSewageCheckResult {
    flex: 0 0 140px;
    width: 140px;
    min-width: 0;
    margin: 0;
  }

  .finance-over-toolbar > .finance-fee-search {
    flex: 0 0 220px;
    min-width: 220px;
  }

  .finance-over-toolbar > button {
    flex: 0 0 auto;
    width: max-content;
    margin: 0;
  }

  .finance-over-toolbar > .finance-task-meta {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    margin-left: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Task run history uses server-side filters. Keep its controls readable at
   every viewport width without allowing the date range to split apart. */
.task-runs-toolbar {
  display: flex;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.task-runs-date-range {
  display: grid;
  min-width: 330px;
  flex: 0 1 360px;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: 8px;
}

.task-runs-date-range > input {
  width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
}

.task-runs-date-range > span {
  color: #98a2b3;
  text-align: center;
}

.task-run-badge.skipped {
  background: #f2f4f7;
  color: #475467;
}

@media (min-width: 769px) and (max-width: 1500px) {
  .task-runs-toolbar > #taskRunsKeyword {
    width: min(260px, 28vw) !important;
    min-width: 190px !important;
    flex: 1 1 220px !important;
  }

  .task-runs-date-range {
    min-width: 310px;
    flex-basis: 340px;
  }
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .task-runs-date-range {
    width: 100%;
    min-width: 0;
    flex: 0 0 100%;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .task-runs-toolbar > #taskRunsKeyword,
  .task-runs-toolbar > #taskRunsStatusFilter,
  .task-runs-toolbar > #taskRunsResultFilter {
    width: calc(50% - 5px) !important;
    min-width: 0 !important;
    flex: 0 0 calc(50% - 5px) !important;
  }

  .task-runs-toolbar > #taskRunsKeyword {
    width: 100% !important;
    flex-basis: 100% !important;
  }
}

/* Execution history filters match the receivable date/select controls. */
.task-runs-date-filter,
.task-runs-select-filter {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 13px;
  white-space: nowrap;
}

.task-runs-select-filter {
  position: relative;
  width: 130px;
  flex: 0 0 130px;
}

.task-runs-select-filter > select {
  width: 100% !important;
  min-width: 0 !important;
  padding-right: 30px !important;
  color: #9ba2ae;
}

.task-runs-select-filter.has-value > select { color: #596273; }
.task-runs-select-filter > button {
  position: absolute;
  top: 9px;
  right: 7px;
  z-index: 2;
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #a2a8b3;
  font-size: 14px;
  line-height: 18px;
}

.task-runs-select-filter > button:hover { background: #f0ecfa; color: #7c3aed; filter: none; }

.task-runs-date-picker {
  position: relative;
  width: 320px;
  min-width: 320px;
  flex: 0 0 320px;
}

.task-runs-date-picker > #taskRunsDateTrigger {
  display: grid;
  grid-template-columns: 16px minmax(78px, 1fr) 12px minmax(78px, 1fr);
  width: 100%;
  height: 36px;
  min-height: 36px;
  align-items: center;
  gap: 4px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  padding: 5px 30px 5px 9px;
  background: #fff;
  color: #596273;
  box-shadow: none;
}

.task-runs-date-picker > #taskRunsDateTrigger:hover { border-color: #9b7be7; filter: none; }
.task-runs-date-picker.selected > #taskRunsDateTrigger,
.task-runs-date-picker.open > #taskRunsDateTrigger { border-color: #7c3aed; outline: 1px solid #ede7ff; }
.task-runs-calendar-icon { width: 16px; height: 16px; color: #a4aab5; }
.task-runs-date-value { min-width: 0; overflow: hidden; color: #4f586a; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.task-runs-date-value.placeholder { color: #9ba2ae; }
.task-runs-date-separator { display: inline-flex; align-items: center; justify-content: center; color: #596273; }
.task-runs-date-picker > #taskRunsDateClear { position: absolute; top: 9px; right: 8px; z-index: 3; width: 18px; min-width: 18px; min-height: 18px; border: 0; border-radius: 50%; padding: 0; background: transparent; color: #a2a8b3; font-size: 14px; line-height: 18px; }
.task-runs-date-picker > #taskRunsDateClear:hover { background: #f0ecfa; color: #7c3aed; filter: none; }
.task-runs-date-menu { position: absolute; top: calc(100% + 12px); left: 50%; z-index: 70; width: min(648px, calc(100vw - 40px)); border: 1px solid #e1e3e9; border-radius: 4px; background: #fff; box-shadow: 0 8px 22px rgb(44 38 61 / 18%); transform: translateX(-50%); }
.task-runs-date-menu::before { position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; border-top: 1px solid #e1e3e9; border-left: 1px solid #e1e3e9; background: #fff; content: ""; transform: translateX(-50%) rotate(45deg); }
#taskRunsCalendars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .task-runs-date-filter { width: 100%; flex: 0 0 100%; }
  .task-runs-date-picker { width: 100%; min-width: 0; flex: 1 1 auto; }
  .task-runs-date-menu { width: min(648px, calc(100vw - 24px)); }
  .task-runs-select-filter { width: calc(50% - 5px); flex: 0 0 calc(50% - 5px); }
}
.workbench.contract-list-mode #contractlistView,
.workbench.contract-list-mode #contractlistContent,
.workbench.contract-list-mode #leasecontractlistView,
.workbench.contract-list-mode #leasecontractlistContent,
.workbench.contract-list-mode #rentwithdrawlistView,
.workbench.contract-list-mode #rentwithdrawlistContent,
.workbench.contract-list-mode #terminationnoticeView,
.workbench.contract-list-mode #terminationnoticeContent {
  min-height: 0;
  height: 100%;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.contract-list-board {
  height: 100%;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.contract-list-board .receivable-toolbar {
  position: relative;
  z-index: 5;
  overflow: visible;
}

.contract-filter-group {
  gap: 8px;
  flex-wrap: wrap;
}

.contract-primary-filters .receivable-text-filter { width: 180px; }
.contract-primary-filters .receivable-text-filter:has(#contractKeyword),
.contract-primary-filters .receivable-text-filter:has(#leaseContractKeyword),
.contract-primary-filters .receivable-text-filter:has(#rentWithdrawKeyword) { width: 340px; }
.contract-primary-filters .receivable-text-filter > input { width: 100%; min-width: 0; }
.contract-primary-filters .contract-select {
  width: 180px;
  min-width: 180px;
  flex: 0 0 180px;
}
.contract-primary-filters .contract-select:first-child {
  width: 190px;
  min-width: 190px;
  flex: 0 0 190px;
}
.contract-primary-filters .contract-select > select {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 7px 50px 7px 10px;
  overflow: hidden;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  background-color: #fff;
  color: #344054;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}
.contract-primary-filters .contract-select:not(.has-value) > select { color: #98a2b3; }
.contract-primary-filters .contract-select > select option { color: #344054; }
.contract-primary-filters .contract-select > select:hover { border-color: #9b7be7; }
.contract-primary-filters .contract-select > select:focus {
  border-color: #7c3aed;
  outline: 2px solid #ede7ff;
  outline-offset: 0;
}
.contract-primary-filters .receivable-multi-select {
  position: relative;
  z-index: 1;
}
.contract-primary-filters .receivable-multi-select.open { z-index: 40; }
.contract-primary-filters .receivable-multi-trigger {
  display: block;
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 7px 50px 7px 10px;
  overflow: hidden;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}
.contract-primary-filters .receivable-multi-select:not(.has-value) .receivable-multi-trigger { color: #98a2b3; }
.contract-primary-filters .receivable-multi-value {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contract-primary-filters .receivable-multi-select:hover .receivable-multi-trigger { border-color: #9b7be7; }
.contract-primary-filters .receivable-multi-select.open .receivable-multi-trigger,
.contract-primary-filters .receivable-multi-trigger:focus {
  border-color: #7c3aed;
  outline: 2px solid #ede7ff;
  outline-offset: 0;
}
.contract-primary-filters .receivable-multi-clear {
  position: absolute;
  top: 50%;
  right: 27px;
  display: block;
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #98a2b3;
  font-size: 16px;
  line-height: 18px;
  transform: translateY(-50%);
}
.contract-primary-filters .receivable-multi-clear.is-hidden { display: none; }
.contract-primary-filters .receivable-multi-clear:hover {
  background: #eef2f6;
  color: #475467;
}
.contract-primary-filters .receivable-multi-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 25;
  display: none;
  width: max-content;
  min-width: 100%;
  max-height: 280px;
  overflow: auto;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgb(16 24 40 / 14%);
}
.contract-primary-filters .receivable-multi-select.open .receivable-multi-panel { display: block; }
.contract-primary-filters .receivable-multi-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 12px;
  color: #344054;
  font-size: 13px;
  line-height: 22px;
  cursor: pointer;
  white-space: nowrap;
}
.contract-primary-filters .receivable-multi-option:hover { background: #f5f3ff; }
.contract-primary-filters .receivable-multi-option input {
  width: auto;
  min-width: 14px;
  height: auto;
  min-height: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: #7c3aed;
}
.contract-more-filters {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.contract-more-filters > .contract-select,
.contract-more-filters > .receivable-text-filter {
  width: 180px !important;
  min-width: 0 !important;
  flex: 0 0 180px;
}
.contract-filter-group .contract-select > select,
.contract-more-filters .contract-select > select {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 7px 50px 7px 10px;
  overflow: hidden;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  background-color: #fff;
  color: #344054;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}
.contract-filter-group .contract-select:not(.has-value) > select,
.contract-more-filters .contract-select:not(.has-value) > select { color: #98a2b3; }
.contract-date-filter { height: 36px; }
.contract-date-filter > span { flex: 0 0 auto; }
.contract-date-picker { width: 320px; min-width: 320px; flex: 0 0 320px; }
.contract-date-picker > #contractDateTrigger {
  display: grid;
  grid-template-columns: 16px minmax(78px, 1fr) 12px minmax(78px, 1fr);
  width: 100%;
  height: 36px;
  min-height: 36px;
  align-items: center;
  gap: 4px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  padding: 5px 26px 5px 9px;
  background: #fff;
  color: #596273;
  box-shadow: none;
}
.contract-date-picker > #contractDateTrigger:hover { border-color: #9b7be7; filter: none; }
.contract-date-picker.selected > #contractDateTrigger,
.contract-date-picker.open > #contractDateTrigger { border-color: #7c3aed; outline: 1px solid #ede7ff; }
.contract-date-picker > #contractDateClear {
  position: absolute;
  top: 9px;
  right: 8px;
  z-index: 3;
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #a2a8b3;
  font-size: 14px;
  line-height: 18px;
}
.contract-date-picker > #contractDateClear:hover { background: #f0ecfa; color: #7c3aed; filter: none; }
.contract-date-picker .receivable-date-menu {
  right: 0;
  left: auto;
  transform: none;
}
.contract-date-picker .receivable-date-menu::before {
  right: 140px;
  left: auto;
  transform: rotate(45deg);
}
#contractCalendars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contract-list-table { min-width: 4300px; table-layout: fixed; }
.contract-list-board .contract-list-table { width: max-content !important; min-width: 4300px !important; }
.contract-list-table.rent-withdraw-table { min-width: 3920px; }
.contract-list-board .contract-list-table.rent-withdraw-table { min-width: 3920px !important; }
.contract-list-board .receivable-table-shell,
.contract-list-board .receivable-table-scroll { width: 100%; min-width: 0; max-width: 100%; }
.contract-list-board .receivable-table-shell { position: relative; overflow: hidden; }
.contract-list-board .receivable-table-scroll { overflow-x: auto; overflow-y: auto; scrollbar-gutter: stable; }
.contract-list-board .receivable-table-scroll thead th { position: sticky; top: 0; z-index: 4; }
.contract-list-board .receivable-empty-overlay { right: 0; left: 0; pointer-events: none; }
.contract-list-table th, .contract-list-table td { width: 138px; max-width: 138px; }
.contract-list-table th:nth-child(4), .contract-list-table td:nth-child(4),
.contract-list-table th:nth-child(7), .contract-list-table td:nth-child(7),
.contract-list-table th:nth-child(8), .contract-list-table td:nth-child(8),
.contract-list-table th:nth-child(10), .contract-list-table td:nth-child(10) { width: 220px; max-width: 220px; }
.rent-withdraw-table th:nth-child(9), .rent-withdraw-table td:nth-child(9) { width: 220px; max-width: 220px; }
.rent-withdraw-table th:nth-child(10), .rent-withdraw-table td:nth-child(10) { width: 138px; max-width: 138px; }
.rent-withdraw-table th:nth-child(22), .rent-withdraw-table td:nth-child(22) { width: 280px; max-width: 280px; }
.contract-date-sort { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.contract-date-sort span { color: #b8c0cc; font-size: 10px; line-height: 1; }
.contract-date-sort:hover span, .contract-date-sort:focus-visible span { color: #00bfa5; }

.termination-notice-filters { gap: 6px; flex-wrap: wrap; }
.termination-notice-filters > .contract-select { width: 140px; min-width: 140px; flex: 0 0 140px; }
.termination-notice-filters > .contract-select:first-child { width: 160px; min-width: 160px; flex-basis: 160px; }
.termination-notice-filters > .receivable-text-filter { width: 160px; min-width: 160px; flex: 0 0 160px; }
.termination-notice-filters > .receivable-text-filter:has(#terminationNoticeKeyword) { width: 210px; min-width: 210px; flex-basis: 210px; }
.termination-notice-filters > #terminationNoticeSearch { width: 82px; min-width: 82px; }
.termination-notice-filters > #terminationNoticeReset { width: 70px; min-width: 70px; }
.termination-notice-filters > #terminationNoticeExport { width: 88px; min-width: 88px; }

@media (min-width: 769px) {
  .workbench.contract-list-mode .workbench-scroll {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow-y: hidden;
    scrollbar-gutter: auto;
  }
  .workbench.contract-list-mode #contractlistView,
  .workbench.contract-list-mode #leasecontractlistView,
  .workbench.contract-list-mode #rentwithdrawlistView,
  .workbench.contract-list-mode #terminationnoticeView { height: auto; min-height: 0; }
  .contract-list-board .receivable-table-shell { min-height: 0; flex: 1 1 0; overflow: hidden; }
  .contract-list-board .receivable-table-scroll { min-height: 0; height: 100%; flex: 1 1 0; overflow-x: auto; overflow-y: auto; }
  .contract-list-board .receivable-pagination { flex: 0 0 60px; }
}

@media (max-width: 768px) {
  .workbench.contract-list-mode #contractlistView,
  .workbench.contract-list-mode #contractlistContent,
  .workbench.contract-list-mode #leasecontractlistView,
  .workbench.contract-list-mode #leasecontractlistContent,
  .workbench.contract-list-mode #rentwithdrawlistView,
  .workbench.contract-list-mode #rentwithdrawlistContent,
  .workbench.contract-list-mode #terminationnoticeView,
  .workbench.contract-list-mode #terminationnoticeContent,
  .contract-list-board { height: auto; min-height: 100%; overflow: visible; }
  .contract-primary-filters,
  .contract-more-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 8px; }
  .termination-notice-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 8px; }
  .termination-notice-filters > .contract-select,
  .termination-notice-filters > .contract-select:first-child,
  .termination-notice-filters > .receivable-text-filter,
  .termination-notice-filters > .receivable-text-filter:has(#terminationNoticeKeyword) { width: 100%; min-width: 0; flex: initial; }
  .termination-notice-filters > .contract-select:first-child,
  .termination-notice-filters > .receivable-text-filter:has(#terminationNoticeKeyword) { grid-column: 1 / -1; }
  .contract-primary-filters .contract-select:first-child { grid-column: 1 / -1; width: 100%; }
  .contract-primary-filters .receivable-text-filter,
  .contract-primary-filters .receivable-text-filter:has(#contractKeyword),
  .contract-primary-filters .receivable-text-filter:has(#leaseContractKeyword),
  .contract-primary-filters .receivable-text-filter:has(#rentWithdrawKeyword),
  .contract-primary-filters .contract-select,
  .contract-primary-filters .receivable-multi-select,
  .contract-more-filters > .contract-select,
  .contract-more-filters > .receivable-text-filter { width: 100% !important; min-width: 0 !important; flex: initial; }
  .contract-more-filters > .contract-select { grid-column: auto !important; }
  .contract-date-filter { grid-column: 1 / -1; display: grid; grid-template-columns: max-content minmax(0, 1fr); width: 100%; }
  .contract-date-picker { width: 100%; min-width: 0; flex: 1 1 auto; }
  .contract-primary-filters > button { width: auto !important; min-width: max-content !important; justify-self: start; }
  .contract-date-picker .receivable-date-menu {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: min(72dvh, 620px);
    overflow-y: auto;
    transform: none;
  }
  .contract-date-picker .receivable-date-menu::before { display: none; }
  #contractCalendars { grid-template-columns: 1fr; }
  #contractCalendars .finance-calendar-month + .finance-calendar-month { border-top: 1px solid #e6e8ed; border-left: 0; }
}

@media (min-width: 769px) {
  .receivable-primary-filters.termination-notice-filters > .receivable-project-select.contract-select {
    width: 148px !important;
    min-width: 148px !important;
    flex: 0 0 148px !important;
  }
  .receivable-primary-filters.termination-notice-filters > .receivable-project-select.contract-select:first-child {
    width: 146px !important;
    min-width: 146px !important;
    flex-basis: 146px !important;
  }
  .receivable-primary-filters.termination-notice-filters > .receivable-text-filter {
    width: 146px !important;
    min-width: 146px !important;
    flex: 0 0 146px !important;
  }
  .receivable-primary-filters.termination-notice-filters > .receivable-text-filter:has(#terminationNoticeKeyword) {
    width: 185px !important;
    min-width: 185px !important;
    flex-basis: 185px !important;
  }
}

/* Termination notice filters own their responsive grid to avoid legacy flex-width overrides. */
.termination-notice-filters {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.termination-notice-filter-fields {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) minmax(190px, 1.35fr) minmax(145px, 1fr) repeat(3, minmax(130px, 0.9fr));
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.termination-notice-filter-actions {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: center;
  gap: 8px;
}

.termination-notice-field {
  position: relative;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: none !important;
}

.termination-notice-field > input,
.termination-notice-field > select {
  width: 100% !important;
  min-width: 0 !important;
  height: 36px !important;
  min-height: 36px !important;
  border: 1px solid #d8dee8 !important;
  border-radius: 5px !important;
  padding: 7px 34px 7px 10px !important;
  background-color: #fff !important;
  color: #344054;
  box-shadow: none !important;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.termination-notice-field > select { padding-right: 50px !important; }
.termination-notice-field:not(.has-value) > select { color: #98a2b3; }
.termination-notice-field > input::placeholder { color: #98a2b3; opacity: 1; }
.termination-notice-field > input:focus,
.termination-notice-field > select:focus {
  border-color: #7c3aed !important;
  outline: 2px solid #ede7ff !important;
  outline-offset: 0;
}

.termination-notice-field > button[data-termination-clear] {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 3;
  display: none;
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #98a2b3;
  box-shadow: none;
  font-size: 16px;
  line-height: 18px;
  transform: translateY(-50%);
}

.termination-notice-field.receivable-project-select > button[data-termination-clear] { right: 27px; }
.termination-notice-field.has-value > button[data-termination-clear] { display: inline-flex; }
.termination-notice-field > button[data-termination-clear]:hover,
.termination-notice-field > button[data-termination-clear]:focus-visible { background: #eef2f6; color: #475467; outline: none; }

.termination-notice-filter-actions > button {
  height: 36px;
  min-height: 36px;
  min-width: 70px;
  padding: 7px 16px;
  white-space: nowrap;
}

@media (max-width: 1500px) {
  .termination-notice-filters { grid-template-columns: minmax(0, 1fr); }
  .termination-notice-filter-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .termination-notice-filter-actions { justify-content: end; }
}

@media (max-width: 768px) {
  .termination-notice-filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .termination-notice-filter-fields > .termination-notice-field:first-child,
  .termination-notice-filter-fields > .termination-notice-field:has(#terminationNoticeKeyword) { grid-column: 1 / -1; }
  .termination-notice-filter-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; }
  .termination-notice-filter-actions > button { width: 100%; min-width: 0; padding-inline: 8px; }
  .termination-notice-board .receivable-pagination {
    display: grid;
    grid-template-columns: auto minmax(88px, 1fr) 28px auto 28px;
    align-items: center;
    gap: 4px;
  }
  .termination-notice-board .receivable-pagination > label { display: flex; min-width: 0; align-items: center; gap: 4px; white-space: nowrap; }
  .termination-notice-board .receivable-pagination > label > select { width: 64px !important; min-width: 64px !important; padding-inline: 7px 20px !important; }
  .termination-notice-board .receivable-pagination > span { white-space: nowrap; }
}

@media (max-width: 360px) {
  .termination-notice-filter-fields { grid-template-columns: minmax(0, 1fr); }
  .termination-notice-filter-fields > .termination-notice-field { grid-column: 1; }
}
.monitor-event-card { margin-top: 16px; border: 1px solid #e4e7ed; border-radius: 10px; background: #fff; overflow: hidden; }
.monitor-event-card > header { display: flex; align-items: center; padding: 16px 18px 10px; }
.monitor-event-card h3 { margin: 0; color: #26344d; font-size: 16px; }
.monitor-event-card p { margin: 4px 0 0; color: #8a93a5; font-size: 12px; }
.monitor-event-card { margin-top: 14px; overflow: hidden; }
.monitor-event-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid #edf0f4; }
.monitor-event-card .monitor-table-wrap { max-height: calc(100vh - 620px); min-height: 190px; overflow: auto; }
.monitor-event-card .monitor-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.monitor-event-card th, .monitor-event-card td { padding: 11px 14px; border-bottom: 1px solid #edf0f4; color: #475467; font-size: 12px; text-align: left; white-space: nowrap; }
.monitor-event-card th { position: sticky; top: 0; z-index: 1; background: #f8fafc; color: #667085; font-weight: 700; }
.monitor-event-card .monitor-pagination { margin: 0; }
.monitor-event-card .monitor-table-filters { display: flex; flex: 0 0 auto; gap: 10px; margin-left: auto; }
.monitor-event-card .monitor-table-filters .monitor-filter-field { width: 300px; min-width: 260px; }
.monitor-event-card .monitor-table-filters .monitor-endpoint-combobox { width: 100%; }
.monitor-event-card .monitor-table-filters select { width: 120px; min-width: 120px; height: 36px; padding: 0 28px 0 10px; border: 1px solid #d8e0e9; border-radius: 6px; background: #fff; color: #344054; }
@media (max-width: 720px) { .monitor-event-card > header { align-items: stretch; flex-direction: column; }.monitor-event-card .monitor-table-filters { width: 100%; margin-left: 0; }.monitor-event-card .monitor-table-filters .monitor-filter-field { flex: 1; width: auto; min-width: 0; }.monitor-event-card .monitor-table-filters select { flex: 0 1 120px; } }
.monitor-event-card table { min-width: 980px; }
.monitor-event-status { display: inline-flex; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.monitor-event-status.ok { color: #087443; background: #ecfdf3; }
.monitor-event-status.fail { color: #b42318; background: #fef3f2; }
.monitor-event-error { max-width: 420px; color: #b42318; }
.monitor-event-error-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.monitor-event-error-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.monitor-event-error-copy { flex: none; padding: 2px 8px; font-size: 12px; }

/* Ã¦ÂÂ¶Ã¦Â¬Â¾Ã¤ÂºÂºÃ©ÂÂÃ§Â½Â®Ã¯Â¼ÂÃ¨Â¦ÂÃ§ÂÂÃ©ÂÂÃ§ÂÂ¨Ã¥Â·Â¥Ã¥ÂÂ·Ã¦Â ÂÃ¥ÂÂ¨Ã¨Â§Â¦Ã¥Â±Â/Ã§Â¬ÂÃ¨Â®Â°Ã¦ÂÂ¬Ã¤Â¸ÂÃ§ÂÂÃ©ÂÂºÃ¦Â»Â¡Ã¤Â¸ÂÃ¦ÂÂ¢Ã¨Â¡Â */
@media (min-width: 769px) {
  .finance-payee-toolbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .finance-payee-toolbar > * {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }
  .finance-payee-filters,
  .finance-payee-actions {
    display: flex !important;
    width: auto !important;
    flex: 0 0 auto !important;
    gap: 10px !important;
  }
  .finance-payee-toolbar .finance-search {
    width: 200px !important;
    min-width: 160px !important;
    flex: 0 0 200px !important;
  }
  .finance-payee-status {
    width: 128px !important;
    min-width: 120px !important;
    flex: 0 0 128px !important;
  }
  .finance-payee-toolbar > button,
  .finance-payee-actions > button {
    width: max-content !important;
    flex: 0 0 auto !important;
  }
}

@media (min-width: 1501px) {
  .finance-payee-toolbar .finance-search {
    width: 220px !important;
    flex: 0 0 220px !important;
  }
  .finance-payee-status {
    width: 140px !important;
    flex: 0 0 140px !important;
  }
}

@media (max-width: 768px) {
  .finance-payee-toolbar {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .finance-payee-toolbar > #financePayeeCreate,
  .finance-payee-toolbar > #financeThresholdCreate {
    grid-column: 1;
    width: max-content !important;
    justify-self: start;
  }
  .finance-payee-actions {
    grid-column: 2;
    display: flex !important;
    width: auto !important;
    justify-self: end;
    gap: 8px !important;
  }
  .finance-payee-filters {
    grid-column: 1 / -1;
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .finance-payee-toolbar .finance-search,
  .finance-payee-status,
  .finance-payee-filters .finance-payment-project {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }
  .finance-payee-toolbar .finance-search > input,
  .finance-payee-status > select {
    width: 100% !important;
  }
  .finance-payee-actions > button {
    width: max-content !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }
}

/* ÃÃÂ±Ã­ÂµÂ¼Â³Ã¶Â½Ã¸Â¶ÃÃÃÃÃÂ£ÂºÂ´Ã³ÃÃ½Â¾ÃÃÂ¿ÂµÂ¼Â³Ã¶ÃÂ±ÃÂ¹ÃÂ¾Â½Ã¸Â¶ÃÂ²Â¢ÃÃ¨ÃÂ¹ÃÃÂ¸Â´ÂµÃ£Â»Ã· */
.yesun-export-progress {
  position: fixed; inset: 0; z-index: 12000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.35); backdrop-filter: blur(2px);
}
.yesun-export-progress.hidden { display: none; }
.yesun-export-progress-card {
  width: min(420px, calc(100vw - 32px));
  padding: 20px 22px; border-radius: 12px;
  background: #fff; box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  color: #1f2937;
}
.yesun-export-progress-title {
  margin: 0 0 14px; font-size: 15px; font-weight: 600; color: #111827;
}
.yesun-export-progress-bar {
  height: 8px; border-radius: 999px; background: #eef2ff; overflow: hidden;
}
.yesun-export-progress-fill {
  height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #4f46e5);
  transition: width 0.2s ease;
}
.yesun-export-progress-bar.indeterminate .yesun-export-progress-fill {
  width: 40% !important;
  animation: yesun-export-indeterminate 1.1s ease-in-out infinite;
}
.yesun-export-progress-meta {
  margin-top: 10px; font-size: 12px; color: #667085; line-height: 1.4;
}
@keyframes yesun-export-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}
