:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #dbe3ef;
  --blue: #1f6feb;
  --green: #15803d;
  --red: #c2410c;
  --teal: #0f766e;
  --amber: #b45309;
  --shadow: 0 18px 48px rgba(20, 38, 70, .10);
}

.communication-case-card { margin-bottom: 18px; }
.communication-case-card summary, .communication-round summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.communication-round-list { display: grid; gap: 10px; margin-top: 12px; }
.communication-round { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; }
.communication-round.voided { opacity: .62; background: #f8fafc; }
.communication-round header { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.round-date, .subtle-date { color: #667085; background: #f1f3f5; border: 1px solid #e2e8f0; border-radius: 5px; padding: 3px 7px; font-size: 12px; }
.subtle-date { padding: 7px 8px; width: auto; }
.compact { margin: 10px 0; grid-template-columns: 110px 1fr; }
.add-round { margin-top: 14px; padding: 12px; border: 1px dashed var(--line); border-radius: 8px; }
.communication-round-form { margin-top: 12px; padding: 12px; border-radius: 8px; background: #f8fafc; }
.check-inline { display: inline-flex; gap: 4px; margin: 4px 10px 4px 0; align-items: center; font-size: 13px; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-heading h3 { margin: 0 0 4px; }
.section-heading p { margin: 0; }
.compact-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.case-form-flags { display: flex; grid-column: span 2; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.case-form-flags legend { padding: 0 5px; color: #344054; font-size: 14px; font-weight: 700; }
.case-form-flags legend span { color: var(--muted); font-weight: 400; }
.boolean-options { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 40px; }
.boolean-option { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 10px; border: 1px solid #dbe3ef; border-radius: 7px; background: #fff; color: #344054; cursor: pointer; white-space: nowrap; }
.boolean-option:hover { border-color: #93c5fd; background: #eff6ff; }
.boolean-option input { width: auto; margin: 0; }
.reason-picker { display: grid; gap: 10px; margin: 4px 0 0; padding: 14px; border: 1px solid #dbe3ef; border-radius: 8px; background: #f8fafc; }
.reason-picker legend { padding: 0 5px; color: #344054; font-size: 14px; font-weight: 700; }
.reason-picker legend span { color: var(--muted); font-weight: 400; }
.reason-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 8px; }
.reason-option { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; color: #344054; cursor: pointer; }
.reason-option:hover { border-color: #93c5fd; background: #eff6ff; }
.reason-option input { width: auto; margin: 0; }
.other-reason { max-width: 680px; }
.communication-form-heading { display: flex; align-items: baseline; gap: 10px; padding-bottom: 2px; }
.communication-form-heading strong { color: #1d4ed8; font-size: 16px; }
.communication-form-heading span, .conversation-field em { color: var(--muted); font-size: 12px; font-style: normal; font-weight: 400; }
.conversation-field { gap: 7px; padding: 12px; border: 1px solid #dbeafe; border-radius: 8px; background: #f8fbff; }
.conversation-field > span { color: #1e3a5f; font-weight: 700; }
.conversation-field textarea { min-height: 104px; }
.customer-says { border-left: 4px solid #60a5fa; }
.our-reply { border-left: 4px solid #34d399; background: #f7fffb; border-color: #d1fae5; }
.conversation-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.case-evidence { margin-top: 18px; padding: 14px; border: 1px solid #dbeafe; border-radius: 9px; background: #f8fbff; }
.case-evidence-head h3 { margin: 0 0 5px; color: #1e3a5f; }
.case-evidence-head p { margin: 0; }
.case-evidence-upload { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.case-evidence-upload label { display: grid; flex: 1 1 420px; gap: 5px; padding: 10px; border: 1px dashed #93c5fd; border-radius: 8px; background: #fff; }
.case-evidence-upload input { max-width: 100%; }
.case-evidence-upload span { color: var(--muted); font-size: 12px; }
.case-evidence-empty { margin: 10px 0 0; }
.conversation-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.conversation-head h3 { margin: 0 0 5px; }
.conversation-head p { margin: 0; }
.conversation-start, .conversation-composer-head, .conversation-composer-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.conversation-start { margin: 14px 0; padding: 12px; border: 1px dashed #bfdbfe; border-radius: 8px; background: #f8fbff; color: #344054; }
.conversation-composer { margin: 14px 0; padding: 14px; border: 1px solid #bfdbfe; border-radius: 8px; background: #f8fbff; }
.conversation-composer-head { justify-content: space-between; margin-bottom: 12px; color: #1d4ed8; }
.conversation-composer-head span { color: var(--muted); font-size: 12px; }
.conversation-draft-list { display: grid; gap: 10px; }
.conversation-draft { padding: 11px; border: 1px solid #d1fae5; border-left: 4px solid #34d399; border-radius: 8px; background: #f7fffb; }
.conversation-draft.draft-client { border-color: #bfdbfe; border-left-color: #60a5fa; background: #f8fbff; }
.conversation-draft.draft-note { border-color: #fed7aa; border-left-color: #f59e0b; background: #fffbeb; }
.draft-top { display: flex; align-items: end; gap: 10px; margin-bottom: 8px; }
.draft-top label { display: flex; gap: 4px; font-size: 12px; }
.draft-speaker { width: 92px; font-weight: 700; }
.draft-top input { width: 142px; }
.remove-draft { margin-left: auto; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #98a2b3; cursor: pointer; font-size: 22px; line-height: 1; }
.remove-draft:hover { color: #b42318; background: #fee4e2; }
.conversation-draft textarea { min-height: 74px; }
.conversation-composer-actions { justify-content: flex-end; margin-top: 12px; }
.conversation-list { display: grid; gap: 10px; margin-top: 14px; }
.message-bubble { width: min(760px, 92%); padding: 11px 14px; border-radius: 10px; }
.message-bubble header, .legacy-message header { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.message-bubble p { margin: 7px 0 0; line-height: 1.65; }
.message-bubble.from-us { justify-self: end; border: 1px solid #bbf7d0; border-right: 4px solid #34d399; background: #f0fdf4; }
.message-bubble.from-client { border: 1px solid #bfdbfe; border-left: 4px solid #60a5fa; background: #eff6ff; }
.message-bubble.annotation { justify-self: center; border: 1px solid #fed7aa; border-left: 4px solid #f59e0b; background: #fffbeb; }
.legacy-message { padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fafafa; }
.legacy-message p { margin: 7px 0; }
.communication-filter-form { display: grid; gap: 12px; }
.communication-review-panel { max-width: none; }
.communication-review-head { align-items: flex-start; }
.communication-review-head .module-actions { justify-content: flex-end; }
.communication-case-actions { min-width: 300px; gap: 8px 12px; flex-wrap: wrap; }
.communication-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; align-items: end; }
.communication-filter-grid label { min-width: 0; }
.communication-filter-grid .filter-keyword { grid-column: span 2; }
.filter-checks { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; grid-column: span 2; min-height: 40px; }
.filter-checks label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.filter-checks input { width: auto; }
.communication-filter-more { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.communication-filter-more summary { cursor: pointer; color: #475467; font-size: 14px; }
.filter-more-grid { margin-top: 12px; }
.filter-actions { margin: 0; justify-content: flex-end; }
.screenshot-list { display: flex; flex-wrap: wrap; gap: 10px; }
.screenshot-card { display: grid; gap: 5px; width: 140px; color: var(--muted); font-size: 12px; text-decoration: none; }
.screenshot-card img { width: 140px; height: 104px; object-fit: cover; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; }
.screenshot-card:hover img { border-color: #60a5fa; box-shadow: 0 4px 12px rgba(37, 99, 235, .14); }
@media (max-width: 1000px) {
  .communication-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-checks { grid-column: span 2; }
  .compact-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .communication-filter-grid { grid-template-columns: 1fr; }
  .communication-filter-grid .filter-keyword, .filter-checks { grid-column: span 1; }
  .compact-form-grid { grid-template-columns: 1fr; }
  .case-form-flags { grid-column: span 1; }
  .communication-review-head { align-items: stretch; }
  .communication-review-head .module-actions { justify-content: flex-start; }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(31, 111, 235, .06), transparent 36%),
    linear-gradient(315deg, rgba(15, 118, 110, .05), transparent 34%);
}
body.login-page {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 24px;
  background: #f0f2f6;
}
body.error-page {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 24px;
  background: #f4f7fb;
}
.error-shell {
  width: min(760px, 100%);
}
.error-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.error-card h1 {
  font-size: 26px;
  margin-bottom: 12px;
}
.error-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.error-detail {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  line-height: 1.6;
  word-break: break-word;
}
.login-card {
  width: min(680px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 46px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.login-brand strong { display: block; font-size: 18px; }
.login-brand span { color: var(--muted); font-size: 13px; }
.login-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.login-form input {
  min-height: 58px;
  font-size: 18px;
}
.login-form .button {
  width: fit-content;
  min-height: 48px;
  font-size: 18px;
}
.login-tip {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 24px 18px;
  background: linear-gradient(180deg, #101827, #172033);
  color: #fff;
  z-index: 2;
}
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center;
  background: #22c55e; color: #062012; font-weight: 900;
}
.brand strong { display: block; font-size: 17px; }
.brand span { display: block; margin-top: 3px; color: #9ca3af; font-size: 12px; }
nav { display: grid; gap: 6px; }
nav a, nav summary {
  color: #d1d5db; text-decoration: none; padding: 12px 14px; border-radius: 7px;
  cursor: pointer;
}
nav a:hover, nav summary:hover { background: #1f2937; color: #fff; }
nav a.active {
  background: #22c55e;
  color: #062012;
  font-weight: 800;
}
.nav-group {
  display: grid;
  gap: 6px;
  border-radius: 8px;
}
.nav-group[open] {
  background: rgba(255, 255, 255, .04);
  padding-bottom: 8px;
}
.nav-group.active-group > summary {
  background: #22c55e;
  color: #062012;
  font-weight: 900;
}
.nav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after {
  content: "⌄";
  color: #9ca3af;
  font-size: 14px;
}
.nav-group[open] summary::after { transform: rotate(180deg); }
.nav-children {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 0 8px 0 22px;
}
.nav-group:not([open]) > .nav-children { display: none; }
.nav-group a {
  margin-left: 0;
  padding: 10px 13px;
  font-size: 15px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(15, 23, 42, .32);
}
.profile-module-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #cfe0fa;
  border-radius: 9px;
  background: #f8fbff;
}
.profile-module-nav .eyebrow { margin: 0 0 3px; }
.profile-module-nav strong { font-size: 16px; }
.profile-module-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.profile-module-tabs a {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #475467;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.profile-module-tabs a:hover { border-color: var(--blue); color: #1557b0; }
.profile-module-tabs a.active { border-color: var(--blue); background: #eaf2ff; color: #1557b0; }
.main { padding: 28px; min-width: 0; position: relative; z-index: 1; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -28px -28px 22px;
  padding: 28px;
  gap: 20px;
  background: rgba(244, 247, 251, .94);
  backdrop-filter: blur(12px);
}
.back-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef4ff;
  color: var(--blue);
  cursor: pointer;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}
.back-arrow:hover {
  background: #dbeafe;
}
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
h1, h2 { margin: 0; letter-spacing: 0; }
h1 { font-size: 28px; }
h2 { font-size: 18px; }
.user-switch { display: flex; align-items: center; gap: 12px; color: var(--muted); }
select, input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.readonly-field,
input:disabled {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
}
textarea { resize: vertical; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.form-hero {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(239,246,255,.98));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.form-hero h2 { font-size: 24px; }
.form-section {
  border-color: #e2e8f0;
  box-shadow: 0 10px 28px rgba(20, 38, 70, .07);
  padding: 16px;
  margin-bottom: 14px;
}
.form-section .panel-head {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.form-section .panel-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.step {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 26px;
  border-radius: 7px;
  background: #e0f2fe;
  color: #075985;
  font-size: 13px;
  font-weight: 900;
}
.panel.wide { max-width: 1120px; }
.panel.attention {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.panel.danger-panel {
  border-color: #fecaca;
  background: linear-gradient(180deg, #ffffff, #fff7f7);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.hint { color: var(--muted); font-size: 13px; }
.subtle-panel { margin-top: 14px; background: #f8fafc; }
.checkbox-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.checkbox-line input { width: auto; }
.profile-checkboxes { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.metric-grid.profile-metrics { gap: 10px; margin-bottom: 16px; }
.metric-grid.profile-metrics.profile-metrics-no-alert { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.metric-grid.profile-metrics.profile-metrics-has-alert { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.profile-metrics .metric { min-width: 0; min-height: 100px; padding: 11px 12px; }
.profile-metrics .metric span { font-size: 12px; }
.profile-metrics .metric strong { margin: 5px 0 0; font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-metrics .profile-metric-text strong { color: var(--amber); font-size: 16px; }
.profile-metrics .metric.metric-level-blue { border-color: #93c5fd; background: #eff6ff; }
.profile-metrics .metric.metric-level-yellow { border-color: #fde68a; background: #fefce8; }
.profile-metrics .metric.metric-level-orange { border-color: #fdba74; background: #fff7ed; }
.profile-metrics .metric.metric-level-red { border-color: #fca5a5; background: #fef2f2; }
.profile-metrics .metric.metric-super-extreme { border-width: 2px; border-color: #dc2626; box-shadow: 0 0 0 2px rgba(220,38,38,.12), var(--shadow); }
.multiline { white-space: pre-wrap; min-width: 260px; }
.profile-period-picker { margin: 0; }
.profile-period-picker label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.profile-period-label { margin: -8px 0 14px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.metric-link {
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.metric-link:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
}
.metric span, .metric em { color: var(--muted); font-style: normal; font-size: 13px; }
.metric strong { display: block; font-size: 34px; margin: 8px 0 4px; }
.metric-grid.bookkeeping-analysis-metrics {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 8px;
  margin-bottom: 0;
}
.bookkeeping-analysis-metrics .metric { min-width: 0; padding: 10px 12px; }
.bookkeeping-analysis-metrics .metric > span { display: block; min-height: 34px; line-height: 17px; font-size: 12px; }
.bookkeeping-analysis-metrics .metric strong { font-size: 24px; margin: 4px 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.bookkeeping-analysis-metrics .metric em { font-size: 11px; line-height: 16px; }
.bookkeeping-analysis-metrics .comparison-values { display: flex; flex-wrap: wrap; gap: 0 8px; }
.bookkeeping-analysis-metrics .comparison-values span { font-size: inherit; white-space: nowrap; }
.value-complexity-chart-shell { position:relative; max-width:980px; margin:4px auto 0; padding:22px 28px 32px 44px; }
.value-complexity-chart { position:relative; height:500px; overflow:hidden; border:1px solid #bfdbfe; border-radius:10px; background:linear-gradient(to right, transparent 49.85%, #94a3b8 50%, transparent 50.15%),linear-gradient(to bottom, transparent 49.85%, #94a3b8 50%, transparent 50.15%),#f8fafc; }
.value-complexity-chart:before { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(90deg,rgba(22,163,74,.08) 0 50%,rgba(249,115,22,.08) 50% 100%),linear-gradient(0deg,rgba(37,99,235,.06) 0 50%,rgba(168,85,247,.05) 50% 100%); }
.value-complexity-axis { position:absolute; z-index:1; background:#64748b; }.value-complexity-axis-x { width:100%; height:1px; top:50%; }.value-complexity-axis-y { height:100%; width:1px; left:50%; }
.value-quadrant { position:absolute; z-index:2; display:flex; flex-direction:column; gap:3px; padding:13px 15px; color:#334155; text-decoration:none; border:1px solid transparent; border-radius:8px; transition:.15s; }
.value-quadrant:hover,.value-quadrant.selected { border-color:#2563eb; background:rgba(255,255,255,.92); box-shadow:0 2px 10px rgba(37,99,235,.12); }.value-quadrant strong { font-size:14px; }.value-quadrant span { font-size:12px; color:#64748b; }
.value-quadrant.value-high-complexity-low { top:8px; left:8px; }.value-quadrant.value-high-complexity-high { top:8px; right:8px; text-align:right; }.value-quadrant.value-low-complexity-low { bottom:8px; left:8px; }.value-quadrant.value-low-complexity-high { bottom:8px; right:8px; text-align:right; }
.value-complexity-point { position:absolute; z-index:3; width:11px; height:11px; margin:-5px 0 0 -5px; border:2px solid #fff; border-radius:50%; box-shadow:0 1px 4px rgba(15,23,42,.35); cursor:help; }.value-complexity-point.high_value_low_complexity { background:#2563eb; }.value-complexity-point.high_value_high_complexity { background:#7c3aed; }.value-complexity-point.low_value_low_complexity { background:#16a34a; }.value-complexity-point.low_value_high_complexity { background:#0891b2; }
.value-complexity-point.fee-overdue { background:#dc2626; }
.value-complexity-point-legend .point-legend-dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin:0 5px 0 8px; }
.value-complexity-point-legend .overdue { background:#dc2626; }
.value-complexity-point-legend .low-value-high-complexity { background:#0891b2; }
.value-axis-label,.complexity-axis-left,.complexity-axis-right { position:absolute; color:#475569; font-size:12px; font-weight:700; }.value-axis-top { top:0; left:0; }.value-axis-bottom { bottom:7px; left:0; }.complexity-axis-left { left:46px; bottom:5px; }.complexity-axis-right { right:30px; bottom:5px; }
.value-complexity-accountant-table { min-width:920px; }.value-complexity-accountant-table th,.value-complexity-accountant-table td { text-align:center; font-variant-numeric:tabular-nums; }.value-complexity-accountant-table th:first-child,.value-complexity-accountant-table td:first-child { text-align:left; }
.value-complexity-client-table { min-width:1510px; }.value-complexity-client-table .col-date { left:0; }.value-complexity-client-table .col-no { left:118px; }.value-complexity-client-table .sticky-right { min-width:172px; }.value-complexity-links { display:flex; gap:6px; white-space:nowrap; }.value-complexity-links .button { padding:6px 8px; min-height:30px; }
.tag.high_value_low_complexity { background:#dbeafe; color:#1d4ed8; }.tag.high_value_high_complexity { background:#ede9fe; color:#6d28d9; }.tag.low_value_low_complexity { background:#dcfce7; color:#15803d; }.tag.low_value_high_complexity { background:#ffedd5; color:#c2410c; }
.value-complexity-parameter-form { grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); align-items:end; }.value-complexity-parameter-form .button { min-height:42px; }
.value-complexity-chart-head { align-items:flex-start; flex-wrap:wrap; gap:16px; }
.value-complexity-chart-head > div { flex:1 1 320px; }
.value-complexity-chart-filter { display:flex; flex-direction:column; gap:8px; margin:0 0 0 auto; max-width:100%; }
.value-complexity-filter-row { display:grid; grid-template-columns:minmax(160px, 240px) auto auto; align-items:end; gap:8px; }
.value-complexity-chart-filter label { display:grid; gap:5px; }
.value-complexity-chart-filter select { min-width:160px; }
.value-complexity-company-filter { grid-column:1; }
.value-complexity-company-filter input { width:100%; min-width:0; }
.company-search-active .value-complexity-point:not(.company-match) { opacity:.18; }
.value-complexity-point.company-match { z-index:5; width:16px; height:16px; outline:3px solid #f59e0b; outline-offset:2px; box-shadow:0 0 0 7px #fef3c7; }
.value-complexity-point.company-match:hover,.value-complexity-point.company-match:focus-visible { z-index:6; }
.value-complexity-company-label { position:absolute; left:22px; top:50%; transform:translateY(-50%); width:max-content; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:5px 8px; border:1px solid #f59e0b; border-radius:5px; background:#fef3c7; color:#78350f; font-size:12px; font-weight:700; box-shadow:0 2px 5px #0001; }
.value-complexity-company-label.label-left { left:auto; right:22px; }
@media (max-width:480px) { .value-complexity-chart-filter { width:100%; }.value-complexity-filter-row { grid-template-columns:minmax(0, 1fr) auto auto; }.value-complexity-chart-filter select { min-width:0; width:100%; }.value-complexity-chart-filter .button { padding:8px; } }
.value-complexity-point { cursor:pointer; margin:0; transform:translate(-50%, 50%); }
.value-complexity-point::after { content:""; position:absolute; inset:-5px; border-radius:50%; }
.value-complexity-point:hover,.value-complexity-point:focus-visible { z-index:4; outline:2px solid #0f172a; outline-offset:3px; }
.value-complexity-nearby { width:min(640px, 92vw); max-height:80vh; padding:22px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:#fff; overflow:auto; }
.value-complexity-nearby::backdrop { background:rgba(15,23,42,.4); }
.value-complexity-nearby .panel-head { gap:12px; }
.value-complexity-nearby ul { list-style:none; padding:0; margin:0; }
.value-complexity-nearby li { padding:12px 0; border-bottom:1px solid var(--line); }
.value-complexity-nearby li a { display:block; color:#1d4ed8; font-weight:700; overflow-wrap:anywhere; }
.value-complexity-nearby li small { display:block; margin-top:6px; color:var(--muted); }
@media (max-width: 760px) { .value-complexity-chart-shell { padding-left:24px; padding-right:12px; }.value-complexity-chart { height:390px; }.value-quadrant { padding:8px; }.value-quadrant strong { font-size:12px; }.value-quadrant span { font-size:11px; }.value-complexity-parameter-form { grid-template-columns:1fr; }.complexity-axis-left { left:25px; }.complexity-axis-right { right:12px; } }
.analysis-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.analysis-toolbar p { margin:7px 0 0; }
.analysis-toolbar .actions { display:flex; gap:10px; align-items:center; flex:0 0 auto; }
.analysis-toolbar form { margin:0; }
.analysis-metrics { display:grid; grid-template-columns:repeat(7, minmax(130px, 1fr)); gap:12px; margin-bottom:14px; }
.analysis-metrics.trigger-cards { grid-template-columns:repeat(8, minmax(116px, 1fr)); }
.analysis-metric { display:flex; flex-direction:column; justify-content:center; min-height:106px; padding:14px; text-decoration:none; color:var(--ink); border:1px solid #bfdbfe; border-radius:8px; background:#eff6ff; transition:.15s; }
.analysis-metric:hover { transform:translateY(-1px); border-color:#60a5fa; box-shadow:var(--shadow); }
.analysis-metric.selected { border:2px solid #2563eb; background:#dbeafe; box-shadow:0 0 0 2px rgba(37,99,235,.12); }
.analysis-metric strong { font-size:27px; line-height:1; }
.analysis-metric span { margin-top:9px; font-size:13px; line-height:1.3; color:var(--muted); }
.analysis-metric.red { background:#fff1f2; border-color:#fecdd3; }.analysis-metric.orange { background:#fff7ed; border-color:#fed7aa; }.analysis-metric.blue { background:#eff6ff; border-color:#bfdbfe; }
.analysis-run { margin:0 0 18px; }
.analysis-filter { grid-template-columns:repeat(5, minmax(145px, 1fr)); }
.analysis-table { min-width:1800px; }.analysis-table th,.analysis-table td { vertical-align:top; }.analysis-table td:nth-child(4),.analysis-table td:nth-child(13) { min-width:210px; }.analysis-table .sticky-right { min-width:118px; }.analysis-table small { display:block; color:var(--muted); margin-top:3px; }.analysis-client-links { display:flex; gap:6px; }.analysis-client-links .button { min-height:30px; padding:6px 10px; text-align:center; }
.analysis-severity-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.analysis-severity-tab { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--line); border-radius:999px; padding:7px 12px; color:var(--ink); text-decoration:none; background:#fff; font-size:13px; }
.analysis-severity-tab:hover,.analysis-severity-tab.selected { border-color:#2563eb; color:#1d4ed8; background:#eff6ff; }.analysis-severity-tab.selected { font-weight:800; }.analysis-severity-tab.empty { color:var(--muted); background:#f8fafc; }
.analysis-trigger-tags { display:flex; flex-wrap:wrap; gap:5px; min-width:150px; }.analysis-trigger-tags span { display:inline-block; padding:3px 6px; border-radius:4px; background:#eef2ff; color:#3730a3; font-size:12px; line-height:1.25; }
.analysis-client-alert { margin-bottom:16px; }.analysis-client-alert .panel-head h2 { display:inline; margin-left:9px; }.analysis-client-state { margin:14px 0; }.analysis-rolling-box { margin:14px 0; padding:12px 14px; border-radius:7px; background:#f8fafc; border:1px solid var(--line); }.analysis-rolling-box strong,.analysis-rolling-box span { display:block; }.analysis-rolling-box span { margin-top:5px; color:var(--muted); }.analysis-rolling-box ul { margin:10px 0 0; padding-left:20px; }
.analysis-run-panel { display:flex; justify-content:space-between; gap:14px; margin-bottom:14px; }.analysis-run-panel.hidden { display:none; }.analysis-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; }.analysis-pagination > div { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }.analysis-page-loading .analysis-metrics,.analysis-page-loading .analysis-severity-tabs,.analysis-page-loading .analysis-table { opacity:.58; pointer-events:none; }.analysis-page-loading .analysis-toolbar:after { content:'筛选加载中…'; color:var(--muted); margin-left:auto; }
.analysis-data-warning { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; border-color:#f59e0b; background:#fffbeb; color:#92400e; }
.diagnostic-list { margin:0; padding-left:20px; display:grid; gap:8px; }
.app-version { margin:24px 0 8px; color:var(--muted); font-size:12px; text-align:right; }
.level { display:inline-flex; align-items:center; justify-content:center; min-width:42px; padding:4px 8px; border-radius:999px; font-size:12px; font-weight:800; white-space:nowrap; }
.level-红色 { background:#fee2e2; color:#b91c1c; }.level-橙色 { background:#ffedd5; color:#c2410c; }.level-黄色 { background:#fef9c3; color:#a16207; }.level-蓝色 { background:#dbeafe; color:#1d4ed8; }
.analysis-summary { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }.analysis-summary h2 { display:inline; margin-left:10px; }.analysis-summary p { margin:12px 0 0; }.analysis-summary > div:last-child { display:grid; gap:8px; text-align:right; }
.analysis-score { font-size:34px; }.analysis-caution { color:#9a3412; font-weight:800; }.analysis-rule { padding:18px 0; border-top:1px solid var(--line); }.analysis-rule:first-of-type { border-top:0; }.analysis-rule-head { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }.analysis-rule p { color:var(--muted); }.code-field { min-height:90px; font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:12px; }
@media (max-width: 1500px) { .analysis-metrics.trigger-cards { grid-template-columns:repeat(4, minmax(150px, 1fr)); } }
@media (max-width: 1350px) { .analysis-metrics { grid-template-columns:repeat(4, minmax(150px, 1fr)); }.analysis-filter { grid-template-columns:repeat(3, minmax(160px, 1fr)); } }
@media (max-width: 900px) { .analysis-metrics.trigger-cards { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .analysis-toolbar,.analysis-summary,.profile-module-nav { align-items:stretch; flex-direction:column; }.analysis-toolbar .actions { flex-wrap:wrap; }.analysis-metrics,.analysis-metrics.trigger-cards,.analysis-filter { grid-template-columns:1fr; }.analysis-summary > div:last-child { text-align:left; }.profile-module-tabs { justify-content:flex-start; } }
.account-period-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.account-period-metrics .metric { padding: 14px; }
.account-period-metrics .metric strong {
  font-size: 24px;
  line-height: 1.15;
  white-space: nowrap;
}
.dashboard-tabs { margin-bottom: 18px; }
.marketing-report-date-filter {
  display: flex;
  align-items: end;
  gap: 12px;
}
.marketing-report-date-filter > div {
  display: grid;
  gap: 4px;
  margin-right: 4px;
}
.marketing-report-date-filter label {
  color: var(--ink);
  font-weight: 700;
}
.marketing-report-date-filter input[type="date"] {
  min-width: 160px;
}
.marketing-report-date-filter .tag {
  align-self: center;
  margin-left: auto;
}
.marketing-channel-filter-panel .panel-head {
  margin-bottom: 12px;
}
.marketing-channel-filter-panel .panel-head > div,
.marketing-data-panel .panel-head > div {
  display: grid;
  gap: 4px;
}
.marketing-channel-filter {
  display: grid;
  gap: 16px;
}
.marketing-channel-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.marketing-channel-options label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.marketing-channel-options label:has(input:checked) {
  border-color: #8ab4f8;
  background: #edf5ff;
  color: #17479c;
}
.marketing-channel-options input {
  width: auto;
  min-width: 0;
}
.marketing-data-table th,
.marketing-data-table td {
  min-width: 72px;
  text-align: center;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.marketing-data-table .marketing-channel-col {
  left: 0;
  min-width: 160px;
  text-align: left;
  box-shadow: 8px 0 12px rgba(15, 23, 42, .06);
}
.marketing-data-table td.marketing-channel-col {
  background: #fff;
}
.marketing-data-table .marketing-current-total-col {
  min-width: 112px;
  background: #eef6ff;
}
.marketing-data-table .marketing-previous-total-col {
  min-width: 120px;
  background: #f8fafc;
}
.marketing-count-link {
  display: inline-flex;
  min-width: 30px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #245ec7;
  text-decoration: none;
}
.marketing-count-link:hover {
  background: #dceaff;
  color: #17479c;
}
.marketing-conversion-table th,
.marketing-conversion-table td {
  min-width: 82px;
}
.marketing-conversion-value {
  white-space: nowrap;
}
.marketing-money-table th,
.marketing-money-table td {
  min-width: 0;
  padding: 10px 4px;
  font-size: 12px;
}
.marketing-money-table {
  width: 100%;
  min-width: 920px;
  table-layout: fixed;
}
.marketing-money-table .marketing-channel-col {
  width: 108px;
  min-width: 108px;
}
.marketing-money-table .marketing-current-total-col,
.marketing-money-table .marketing-previous-total-col {
  width: 88px;
  min-width: 88px;
}
.marketing-roi-value {
  font-weight: 600;
  white-space: nowrap;
}
.marketing-data-table .marketing-total-row th,
.marketing-data-table .marketing-total-row td {
  border-top: 2px solid #9bbbea;
  border-bottom: 0;
  background: #eaf2ff;
}
.marketing-data-table .marketing-total-row .marketing-channel-col {
  z-index: 3;
}
.overview-group {
  margin-bottom: 28px;
}
.overview-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.overview-heading h2 {
  font-size: 18px;
}
.overview-heading span {
  color: var(--muted);
  font-size: 13px;
}
.overview-metrics {
  display: grid;
  gap: 12px;
}
.overview-metrics-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.overview-metrics-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.overview-metrics-eight {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
.overview-metric {
  min-width: 0;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border: 1px solid #b9d8ff;
  border-radius: 8px;
  background: #eef7ff;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.overview-metric:hover {
  border-color: #60a5fa;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .10);
  transform: translateY(-1px);
}
.overview-metric strong {
  font-size: 28px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.overview-metric span {
  margin-top: 8px;
  color: #475467;
  font-size: 13px;
  line-height: 1.35;
}
.overview-other .overview-metric {
  border-color: #b7dfca;
  background: #effaf4;
}
.overview-other .overview-metrics {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}
.overview-other .overview-metric {
  min-height: 84px;
  padding: 10px 6px;
}
.overview-other .overview-metric strong {
  font-size: 22px;
}
.overview-other .overview-metric span {
  margin-top: 6px;
  font-size: 12px;
}
.overview-other .overview-metric:hover {
  border-color: #4fac79;
  box-shadow: 0 8px 24px rgba(22, 101, 52, .10);
}

@media (min-width: 981px) and (max-width: 1199px) {
  .overview-other .overview-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.overview-clients .overview-metric {
  border-color: #f1d49c;
  background: #fff9ed;
}
.overview-clients .overview-metric:hover {
  border-color: #d69e3d;
  box-shadow: 0 8px 24px rgba(146, 93, 18, .10);
}
.overview-marketing .overview-metrics {
  gap: 8px;
}
.overview-marketing .overview-metric {
  min-height: 104px;
  padding: 10px 6px;
  border-color: #c8d3f0;
  background: #f5f7ff;
}
.overview-marketing .overview-metric:hover {
  border-color: #7c93d8;
  box-shadow: 0 8px 24px rgba(67, 56, 202, .10);
}
.overview-marketing .overview-metric strong {
  font-size: 22px;
}
.overview-marketing .overview-metric span {
  margin-top: 5px;
  font-size: 12px;
}
.overview-marketing .overview-metric em {
  margin-top: 2px;
  color: #667085;
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
}

@media (min-width: 981px) and (max-width: 1199px) {
  .overview-marketing .overview-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.sales-performance-head .panel-head {
  align-items: flex-end;
}
.sales-performance-head .panel-head h2 {
  margin-bottom: 4px;
}
.sales-date-filter {
  margin-bottom: 0;
}
.sales-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.sales-summary-card {
  padding: 16px;
}
.sales-summary-card strong {
  font-size: 26px;
}
.sales-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sales-capture-area {
  background: #fff;
}
.sales-capture-title {
  display: none;
  margin-bottom: 12px;
}
.sales-capture-title h2 {
  margin: 0 0 4px;
  font-size: 22px;
}
.sales-capture-title span {
  color: var(--muted);
  font-size: 13px;
}
.sales-capture-host {
  position: fixed;
  left: -100000px;
  top: 0;
  z-index: -1;
  background: #fff;
  pointer-events: none;
}
.sales-capture-rendering {
  display: inline-block;
  padding: 18px;
  background: #fff;
}
.sales-capture-rendering .sales-capture-title {
  display: block;
}
.sales-capture-rendering .sales-table-wrap {
  overflow: visible;
}
.sales-performance-table th {
  vertical-align: bottom;
  min-width: 112px;
  white-space: normal;
  text-align: center;
}
.sales-performance-table th span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 4px;
}
.sales-performance-table th strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}
.sales-performance-table td {
  text-align: center;
}
.sales-performance-table th:first-child,
.sales-performance-table td:first-child {
  text-align: left;
}
.sales-performance-table td.num {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.sales-performance-table .total-row td {
  background: #fff7ed;
}
.danger-text,
.sales-performance-table .danger-text {
  color: #b42318;
  font-weight: 800;
}
.target-input {
  width: 112px;
  min-width: 112px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.split, .detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.flow-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 20px; align-items: start; }
.flow-side { display: grid; gap: 20px; }
.large-textarea { min-height: 138px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.form-span-2 { grid-column: span 2; }
.lead-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.person-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fee-grid { grid-template-columns: repeat(4, minmax(130px, 180px)); justify-content: start; }
.fee-grid input { max-width: 180px; }
label { display: grid; gap: 5px; color: #344054; font-size: 14px; }
.order-form select, .order-form input, .order-form textarea { padding: 8px 10px; }
.order-form textarea { min-height: 74px; }
.attachment-preview img {
  max-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
}
.required { color: #dc2626; font-weight: 900; margin-left: 3px; }
.field-title { color: #344054; font-size: 14px; }
.full { grid-column: 1 / -1; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; border: 0; border-radius: 7px; padding: 0 16px;
  background: var(--blue); color: #fff; text-decoration: none; cursor: pointer; font: inherit; white-space: nowrap;
}
.button.primary { background: var(--blue); }
.button.success { background: var(--green); }
.button.danger { background: var(--red); }
.button.warning { background: var(--amber); color: #fff; }
.button.ghost { background: #eef4ff; color: #1d4ed8; }
.button:hover { filter: brightness(.97); }
.inline-form, .filter { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.filter input { min-width: 260px; }
.filter select { max-width: 180px; }
.inline-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.filter .inline-filter-label input {
  min-width: 180px;
}
.compact-inline-form {
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 0;
}
.compact-inline-form select {
  min-width: 128px;
  max-width: 160px;
}
.compact-filter {
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0;
}
.compact-filter select {
  width: clamp(136px, 15vw, 200px);
  max-width: 100%;
}
.compact-filter input:not([type="hidden"]) {
  width: clamp(160px, 18vw, 240px);
  min-width: 0;
}
.subtle-filter {
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.subtle-filter .hint {
  font-size: 12px;
}
.renewal-query-filter {
  flex-wrap: nowrap;
  gap: 10px;
}
.renewal-query-filter input[type="month"] {
  width: 148px;
}
.renewal-query-filter select {
  width: 170px;
}
.renewal-query-filter input[name="analysis_accountant"] {
  width: 170px;
}
.renewal-query-filter input[name="analysis_keyword"] {
  width: 210px;
}
.renewal-query-filter .button,
.renewal-query-filter a.button {
  flex: 0 0 auto;
}
.assignment-bar {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.assignment-bar label { min-width: 160px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid #c7d2fe; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.chip.off { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }
.channel-table-wrap { margin-top: 4px; }
.channel-table { min-width: 980px; }
.channel-table th:first-child,
.channel-table td:first-child { min-width: 260px; }
.channel-table th:nth-child(2),
.channel-table th:nth-child(3),
.channel-table th:nth-child(4),
.channel-table td:nth-child(2),
.channel-table td:nth-child(3),
.channel-table td:nth-child(4) {
  min-width: 150px;
  text-align: center;
}
.channel-table td { vertical-align: middle; }
.channel-table input[name="name"] { min-width: 240px; }
.check-cell {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}
.check-cell input {
  width: auto;
  min-width: 0;
}
.table-wrap { width: 100%; overflow-x: auto; }
table { width: max-content; min-width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; white-space: nowrap; }
th { color: #475467; font-weight: 700; background: #f8fafc; }
tr:hover td { background: #fbfdff; }
.order-table .sticky-col {
  position: sticky;
  z-index: 2;
  background: #fff;
}
.order-table th.sticky-col {
  z-index: 4;
  background: #f8fafc;
}
.order-table .col-date { left: 0; min-width: 118px; }
.bookkeeping-analysis-missing-table { table-layout: fixed; width: 1910px; min-width: 1910px; }
.bookkeeping-analysis-missing-table th,
.bookkeeping-analysis-missing-table td { white-space: normal; overflow-wrap: anywhere; }
.bookkeeping-analysis-missing-table .analysis-fixed-1 { left: 0; }
.bookkeeping-analysis-missing-table .analysis-fixed-2 { left: 120px; }
.bookkeeping-analysis-missing-table .analysis-fixed-3 { left: 350px; }
.bookkeeping-analysis-missing-table .analysis-fixed-4 {
  left: 460px;
  box-shadow: 8px 0 12px rgba(15, 23, 42, .08);
  border-right: 2px solid rgba(37, 99, 235, .35);
}
.order-table .col-no { left: 118px; min-width: 132px; }
.order-table .col-company { left: 250px; min-width: 180px; }
.order-table .col-contact {
  left: 430px;
  min-width: 110px;
  box-shadow: 10px 0 0 rgba(37, 99, 235, .14), 14px 0 16px rgba(15, 23, 42, .08);
  border-right: 2px solid rgba(37, 99, 235, .35);
}
.personnel-table .personnel-col-position { left: 430px; min-width: 110px; }
.personnel-table .personnel-col-resignation { left: 540px; min-width: 120px; }
.personnel-table .personnel-fixed-edge {
  box-shadow: 10px 0 0 rgba(37, 99, 235, .14), 14px 0 16px rgba(15, 23, 42, .08);
  border-right: 2px solid rgba(37, 99, 235, .35);
}
.client-table .col-select { left: 0; min-width: 50px; }
.client-table.has-select .col-date { left: 50px; }
.client-table.has-select .col-no { left: 168px; }
.client-table.has-select .col-company { left: 300px; }
.client-table.has-select .col-contact { left: 480px; }
.order-commission-base-table .oc-col-seq {
  left: 0;
  min-width: 64px;
  width: 64px;
  text-align: center;
}
.order-commission-base-table .oc-col-month {
  left: 64px;
  min-width: 108px;
}
.order-commission-base-table .oc-col-record {
  left: 172px;
  min-width: 112px;
}
.order-commission-base-table .oc-col-original {
  left: 284px;
  min-width: 150px;
}
.order-commission-base-table .oc-col-company {
  left: 434px;
  min-width: 220px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 10px 0 0 rgba(37, 99, 235, .14), 14px 0 16px rgba(15, 23, 42, .08);
  border-right: 2px solid rgba(37, 99, 235, .35);
}
.sales-performance-table .total-row .sticky-col {
  background: #fff7ed;
}
.renewal-analysis-table th {
  text-align: center;
  vertical-align: middle;
}
.renewal-analysis-table td {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.renewal-analysis-table td:first-child {
  text-align: left;
  font-weight: 800;
}
.renewal-analysis-table tbody tr:nth-child(even):not(.total-row) td {
  background: #f8fafc;
}
.renewal-analysis-table thead tr:first-child th:nth-child(3),
.renewal-analysis-table thead tr:last-child th:nth-child(9),
.renewal-analysis-table tbody tr td:nth-child(10) {
  border-left: 3px solid #cbd5e1;
}
.renewal-analysis-table .total-row td {
  background: #fff7ed;
  font-weight: 800;
}
.sticky-right {
  position: sticky;
  right: 0;
  z-index: 3;
  background: #fff;
  min-width: 72px;
  box-shadow: -10px 0 0 rgba(37, 99, 235, .14), -14px 0 16px rgba(15, 23, 42, .08);
  border-left: 2px solid rgba(37, 99, 235, .35);
}
th.sticky-right {
  z-index: 5;
  background: #f8fafc;
}
.tag { display: inline-flex; border-radius: 999px; padding: 4px 9px; background: #ecfeff; color: var(--teal); font-size: 12px; font-weight: 700; }
.tag.warn { background: #fffbeb; color: var(--amber); }
.tag.success { background: #ecfdf3; color: var(--green); }
.tag.danger { background: #fef2f2; color: #b42318; }
.table-actions { display: inline-flex; align-items: center; gap: 10px; }
.table-action { color: var(--blue); font-weight: 700; text-decoration: none; }
.table-action.danger { color: var(--red); }
button.table-action {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.order-commission-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.order-commission-delete-action {
  margin-left: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.order-commission-delete-action:hover,
.order-commission-delete-action:focus {
  color: var(--red);
}
.muted-cell { max-width: 220px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { color: var(--muted); text-align: center; padding: 18px; }
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.page-size-form, .pager-actions { display: flex; align-items: center; gap: 10px; }
.page-size-form label { display: flex; align-items: center; gap: 8px; }
.segmented-actions {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.special-project-list { display: grid; gap: 10px; }
.special-project-form { display: grid; grid-template-columns: minmax(150px, 1fr) 160px minmax(250px, 2fr) auto; align-items: end; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.special-project-form label, .special-project-form .form-label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.special-project-form label input { min-width: 0; }
.special-person-picker { display: grid; gap: 6px; min-width: 250px; }
.special-person-picker [data-person-list] { display: flex; flex-wrap: wrap; margin: 0; padding: 0; background: transparent; }
.special-person-picker .inline-form { gap: 6px; margin: 0; }
.special-person-picker [data-person-input] { min-width: 180px; width: 180px; }
.special-person-picker .tag { align-items: center; gap: 4px; }
.special-person-picker .link-danger { border: 0; padding: 0; background: transparent; font-size: 14px; line-height: 1; }
.segmented-actions a {
  position: relative;
  padding: 8px 14px;
  border-radius: 6px;
  color: #344054;
  font-weight: 800;
  text-decoration: none;
}
.segmented-actions .badge-tab { padding-right: 22px; }
.nav-badge {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  border: 2px solid #fff;
}
.enterprise-lead-nav .nav-badge { position: static; margin-left: 8px; vertical-align: middle; }
.filter.enterprise-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 12px; }
.enterprise-filter-grid input, .enterprise-filter-grid select { min-width: 0; max-width: none; width: 100%; }
.enterprise-filter-grid .filter-actions { display: flex; gap: 8px; align-items: center; }
.enterprise-filter-grid .enterprise-filter-note { grid-column: 1 / -1; margin: 0; }
.segmented-actions.lead-category-tabs { display: flex; flex-wrap: wrap; max-width: 100%; }
.lead-category-tabs a { white-space: nowrap; }
@media (max-width: 1100px) { .filter.enterprise-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .filter.enterprise-filter-grid { grid-template-columns: minmax(0, 1fr); } }
.segmented-actions a.active {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
}
.flash-wrap { margin-bottom: 16px; }
.flash { padding: 12px 14px; border-radius: 7px; background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.flash.error { background: #fff4ed; color: #b42318; border-color: #fecdca; }
.pre-line { white-space: pre-line; line-height: 1.7; color: var(--ink); }
.details { display: grid; grid-template-columns: 140px 1fr; gap: 12px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.monthly-tax-form {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.monthly-tax-latest {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.monthly-tax-latest .panel-head { margin-bottom: 12px; }
.monthly-tax-summary {
  grid-template-columns: 118px minmax(0, 1fr) 118px minmax(0, 1fr);
}
.monthly-tax-summary dd {
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}
.matter-description {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}
.matter-description span {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}
.matter-description strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
}
.stack { display: grid; gap: 14px; }
.action-row { display: flex; gap: 10px; margin: 16px 0; }
.discard-box { border-top: 1px solid var(--line); padding-top: 16px; }
.timeline { display: grid; gap: 12px; }
.timeline article { border-left: 3px solid var(--blue); padding: 12px 14px; background: #f8fafc; border-radius: 7px; }
.timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.timeline time { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.timeline p { margin: 8px 0 0; }
.bar-list { display: grid; gap: 10px; }
.bar-row { display: flex; justify-content: space-between; padding: 12px 14px; background: #f8fafc; border-radius: 7px; }
.link-danger { border: 0; background: transparent; color: var(--red); cursor: pointer; font: inherit; padding: 0; }
.link-success { border: 0; background: transparent; color: var(--green); cursor: pointer; font: inherit; padding: 0; font-weight: 700; }
.role-checks { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.role-checks label { display: inline-flex; grid-template-columns: none; align-items: center; gap: 6px; color: var(--ink); }
.role-checks input { width: auto; }
.role-checks.compact { min-width: 260px; }
.cc-picker { display: grid; gap: 8px; }
.cc-picker-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.cc-selected { display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; }
.cc-only-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 800;
}
.cc-chip button {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: #c7d2fe;
  color: #3730a3;
  cursor: pointer;
}
.action-cell { display: flex; gap: 10px; align-items: center; }
.note-list { color: var(--muted); line-height: 1.8; }
.lead-hero {
  position: sticky;
  top: 104px;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.lead-hero h2 { font-size: 24px; }
.hero-tags, .module-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.module-actions { justify-content: flex-end; margin-top: 0; }
.import-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 14px;
  background: #fff;
  color: #1d4ed8;
  cursor: pointer;
  font-weight: 700;
}
.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .42);
  z-index: 20;
}
.modal.show { display: grid; }
.modal-card {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .25);
}
.sticky-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 0 4px;
  background: linear-gradient(180deg, rgba(244,247,251,0), var(--bg) 35%);
}
.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.reimbursement-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.reimbursement-side {
  position: sticky;
  top: 20px;
}
.summary-list { display: grid; gap: 10px; }
.summary-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
}
.summary-card:hover { border-color: #93c5fd; background: #f8fbff; }
.summary-card span, .summary-card em { color: var(--muted); font-size: 13px; font-style: normal; }
.summary-card .tag { width: fit-content; }
.profile-progress-panel { margin-bottom: 18px; }
.profile-progress-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.profile-progress-card { display: grid; gap: 5px; min-height: 116px; padding: 14px; border: 1px solid #bfdbfe; border-radius: 8px; background: #f8fbff; }
.profile-progress-card strong { font-size: 18px; color: var(--ink); }
.profile-progress-card span, .profile-progress-card em { color: var(--muted); font-size: 13px; font-style: normal; }
.profile-progress-card em { color: #2563eb; font-weight: 700; }
.reimbursement-sheet {
  background: #fff;
}
.handover-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.handover-sheet {
  width: min(920px, 100%);
  margin: 0 auto 32px;
  padding: 34px 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.handover-sheet h1 {
  margin: 0 0 28px;
  text-align: center;
  font-size: 30px;
  letter-spacing: 0;
}
.handover-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-bottom: 26px;
}
.handover-info label {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.handover-info input,
.handover-line input,
.handover-block textarea {
  border: 0;
  border-bottom: 1px solid #111827;
  border-radius: 0;
  background: transparent;
  padding: 7px 4px;
}
.handover-block { margin-top: 20px; }
.handover-block h2 {
  margin-bottom: 12px;
  font-size: 18px;
}
.handover-lines {
  display: grid;
  gap: 8px;
}
.handover-line {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.handover-line span {
  color: var(--muted);
  text-align: center;
}
.handover-block textarea { min-height: 120px; }
.handover-signatures {
  display: grid;
  gap: 28px;
  margin-top: 44px;
  font-size: 16px;
}
.sheet-title {
  display: grid;
  gap: 12px;
  text-align: center;
  margin-bottom: 18px;
}
.sheet-title h2 { font-size: 28px; }
.sheet-title div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #344054;
  font-weight: 700;
}
.expense-table th,
.expense-table td {
  padding: 10px 8px;
}
.expense-table .expense-sticky {
  position: sticky;
  z-index: 2;
  background: #fff;
}
.expense-table th.expense-sticky {
  z-index: 4;
  background: #f8fafc;
}
.expense-table .expense-col-no {
  left: 0;
  min-width: 64px;
}
.expense-table .expense-col-date {
  left: 64px;
  min-width: 158px;
}
.expense-table .expense-col-summary {
  left: 222px;
  min-width: 240px;
  box-shadow: 10px 0 0 rgba(37, 99, 235, .14), 14px 0 16px rgba(15, 23, 42, .08);
  border-right: 2px solid rgba(37, 99, 235, .35);
}
.expense-table input,
.expense-table select {
  min-width: 120px;
  padding: 7px 8px;
}
.expense-table input[name="summary"] { min-width: 220px; }
.expense-table .source-input { min-width: 240px; }
.total-text { margin-left: 16px; }
.sign-row {
  display: flex;
  justify-content: space-around;
  gap: 18px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}
.commission-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}
.commission-upload-grid input[type="file"] {
  min-height: 40px;
  padding: 8px 10px;
}
.commission-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}
.commission-steps .metric strong {
  font-size: 20px;
}
.commission-rate-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 240px)) auto;
  gap: 14px;
  align-items: end;
  justify-content: start;
}
.commission-add-person-form {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(150px, 200px) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.commission-month-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.commission-month-actions form {
  margin: 0;
}
.commission-renewal-table input {
  min-width: 110px;
  padding: 7px 8px;
  text-align: center;
}
.commission-renewal-table input[name="note"] {
  min-width: 220px;
  text-align: left;
}
.commission-renewal-table .wage-attendance-editable {
  min-width: 112px;
  background: #fff6cf;
  border-color: #d8ad34;
}
.wage-attendance-locked {
  display: inline-block;
  min-width: 84px;
  padding: 7px 8px;
  background: #edf1f5;
  color: #6b7280;
  border-radius: 6px;
}
.commission-renewal-table th,
.commission-renewal-table td {
  text-align: center;
  vertical-align: middle;
}
.commission-renewal-table td {
  font-variant-numeric: tabular-nums;
}
.commission-renewal-table .tag {
  margin-inline: auto;
}
.commission-renewal-table .num {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.commission-renewal-table .muted-cell {
  text-align: left;
}
.summary-table-wrap {
  max-height: calc(100vh - 300px);
  overflow: auto;
}
.summary-table thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #f8fafc;
}
.summary-table th:first-child,
.summary-table td:first-child {
  position: sticky;
  left: 0;
  min-width: 120px;
  text-align: left;
  background: #fff;
  z-index: 5;
  box-shadow: 10px 0 0 rgba(37, 99, 235, .14), 14px 0 16px rgba(15, 23, 42, .08);
  border-right: 2px solid rgba(37, 99, 235, .35);
}
.summary-table thead th:first-child {
  z-index: 8;
  background: #f8fafc;
}
.summary-table tfoot td:first-child {
  background: #fff7ed;
}
.commission-edit-form {
  align-items: start;
}

@media print {
  body {
    display: block;
    background: #fff;
  }
  body::before,
  .sidebar,
  .topbar,
  .no-print,
  .sticky-actions {
    display: none !important;
  }
  .main {
    padding: 0;
  }
  .panel {
    box-shadow: none;
    border: 0;
  }
  .print-area {
    display: block;
  }
  .handover-sheet {
    width: 100%;
    margin: 0;
    padding: 18mm 16mm;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .handover-sheet input,
  .handover-sheet textarea {
    color: #000;
  }
}

@media (max-width: 980px) {
  body { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; overflow: visible; }
  .sidebar > nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-tabs {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }
  .dashboard-tabs a { flex: 0 0 auto; }
  .marketing-report-date-filter {
    align-items: stretch;
    flex-direction: column;
  }
  .marketing-report-date-filter .tag {
    align-self: flex-start;
    margin-left: 0;
  }
  .metric-grid, .sales-summary-grid, .split, .detail-grid, .flow-layout, .form-grid, .lead-form, .person-form, .reimbursement-layout, .commission-upload-grid, .commission-rate-form, .commission-add-person-form { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: span 1; }
  .overview-metrics-six, .overview-metrics-five, .overview-metrics-eight, .overview-other .overview-metrics, .overview-marketing .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-heading { align-items: flex-start; flex-direction: column; }
  .monthly-tax-summary { grid-template-columns: 118px minmax(0, 1fr); }
  .reimbursement-side { position: static; }
  .topbar, .inline-form, .filter { align-items: stretch; flex-direction: column; }
  .special-project-form { grid-template-columns: 1fr; }
  .lead-hero { align-items: stretch; flex-direction: column; }
  .module-actions { justify-content: flex-start; }
  .filter input, .filter select { max-width: none; min-width: 0; }
  .renewal-query-filter {
    flex-wrap: wrap;
  }
}
