/* Shared navigation: identical geometry on every workspace page. */
.dialog-city { color: var(--muted); margin-top: 3px; font-size: 12px; line-height: 1.3; font-weight: 600; overflow-wrap: break-word; }
html body.ink-control-theme .read-sync-button { margin: 0 12px 8px; padding: 8px 12px; min-height: 40px; height: auto; font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.read-sync-status { margin: 0 14px 10px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.avito-attachment { display: grid; gap: 10px; max-width: 100%; min-width: 0; }
.avito-attachment audio { width: 280px; max-width: 100%; }
.avito-attachment small { display: block; line-height: 1.4; }
html body.ink-control-theme .avito-attachment button { appearance: none; margin: 0; min-height: 40px; padding: 8px 12px; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.avito-attachment a { color: var(--accent); font-size: 13px; font-weight: 600; text-underline-offset: 3px; }
html body.ink-control-theme .booking-conflict-actions { align-items: stretch; }
html body.ink-control-theme .booking-conflict-actions button { margin: 0; height: 48px; min-height: 48px; padding: 10px 18px; font-size: 16px; line-height: 1.3; display: inline-flex; align-items: center; justify-content: center; }
html body.ink-control-theme .session-quick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html body.ink-control-theme .session-quick-actions button { margin: 0; min-height: 40px; }
html body.ink-control-theme .calendar-agenda-event { margin-bottom: 12px; border: 1px solid var(--line); border-left: 4px solid var(--event-color, var(--accent)); border-radius: 14px; }
html body.ink-control-theme .calendar-agenda-event.status-completed { opacity: 1; }
html[data-theme="light"] body.ink-control-theme .calendar-agenda-time { color: var(--text); }
html[data-theme="light"] body.ink-control-theme .calendar-agenda-event i { color: #5f710f; }
html[data-theme="light"] body.ink-control-theme .calendar-agenda-event.status-no_show i { color: #a43b30; }
html body.ink-control-theme .settings-list-main { text-align: left; justify-items: start; align-items: start; min-width: 0; line-height: 1.5; }
html body.ink-control-theme .settings-list-main strong { color: var(--text); text-align: left; }
html body.ink-control-theme .settings-list-main :is(span,small) { text-align: left; overflow-wrap: anywhere; line-height: 1.5; }
html body.ink-control-theme .settings-list-item { align-items: center; }
html body.ink-control-theme .line-default-picker { display:flex; align-items:stretch; gap:10px; }
html body.ink-control-theme .line-default-picker select { flex:1; min-width:0; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--text); padding:12px; font-size:16px; }
html body.ink-control-theme .line-default-picker button { margin:0; }
html body.ink-control-theme .booking-settings-pane { align-items: start; align-content: start; grid-auto-rows: max-content; overflow-y:auto; }
html body.ink-control-theme .booking-settings-pane > :is(.settings-form,.settings-list-column) { min-height:auto; overflow:visible; }
html body.ink-control-theme .booking-settings-pane .wait-shortcut-settings { padding:20px 0 0; margin-top:24px; border-top:1px solid var(--line); }
html body.ink-control-theme .booking-settings-pane .quick-reply-settings { max-height: none; overflow: visible; }
html body.ink-control-theme .booking-settings-pane .compact-list { max-height: 440px; overflow:auto; }
html body.ink-control-theme .task-card { align-content: start; grid-auto-rows: max-content; }
html body.ink-control-theme .task-badge { display:inline-flex; align-items:center; justify-content:center; line-height:1.3; height:auto; min-height:28px; align-self:start; }
.section-icon { display:inline-flex; width:22px; height:22px; flex:none; vertical-align:middle; }
.section-icon svg { width:100%; height:100%; }
.home-navigation-row strong { display:flex; align-items:center; gap:10px; }
.home-icons-toggle { display:flex; align-items:center; gap:10px; padding:18px 0 0; font-size:14px; }
.home-icons-toggle input { width:20px; height:20px; accent-color:var(--accent); }
html body.ink-control-theme .primary-nav:not(.icons-only) .section-icon { display:none; }
html body.ink-control-theme .primary-nav.icons-only .nav-label { display:none; }
html body.ink-control-theme .primary-nav.icons-only > button { min-width:52px; flex:1 0 52px; }
.service-art-settings { padding:24px; grid-column:1 / -1; border-top:1px solid var(--line); }
.service-art-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin-top:16px; }
.service-art-card { min-width:0; display:grid; grid-template-columns:minmax(0,1fr); align-content:start; gap:10px; padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.service-art-card img { width:100%; height:140px; object-fit:contain; border-radius:10px; }
.service-art-card input { max-width:100%; font-size:13px; }
.service-art-card button { margin:0 !important; min-width:0; max-width:100%; white-space:normal; font-size:12px; padding:10px; }
.service-art-upload { position:relative; min-height:42px; display:flex !important; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:10px; cursor:pointer; text-align:center; padding:10px; }
.service-art-upload:focus-within { outline:2px solid var(--accent); outline-offset:2px; }
.service-art-upload input { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
.service-art-settings > p { color:var(--muted); font-size:14px; line-height:1.6; }
.service-art-card label { display:grid; gap:8px; font-size:13px; }
.calendar-agenda-sketch.service-cover { background:#f5f1e7; cursor:default; }
@media (max-width: 900px) {
  html body.ink-control-theme .session-quick-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; gap:6px; }
  html body.ink-control-theme .session-quick-actions button { min-width:0; min-height:44px; white-space:normal; font-size:11px; padding:6px 4px; }
}
.client-drawer:not(.open) { visibility: hidden; pointer-events: none; box-shadow: none; }
body.ink-control-theme .section-brand-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  max-width: none;
  min-height: 64px;
  gap: 14px;
}
body.ink-control-theme .section-brand-row > :nth-child(2) { min-width: 0; }
body.ink-control-theme .section-brand-row .eyebrow { margin: 0; }
body.ink-control-theme .section-brand-row h1 { line-height: 1.2; }
body.ink-control-theme .section-header-actions,
body.ink-control-theme .section-header-actions:has(.notification-center-button) {
  display: flex;
  flex-wrap: nowrap;
  justify-self: end;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: auto;
  min-width: 0;
}
body.ink-control-theme .section-header-actions .icon-button {
  width: 40px; height: 40px; min-width: 40px; min-height: 40px;
  flex: 0 0 40px; margin: 0; padding: 0;
  display: inline-grid; place-items: center;
  color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; background: var(--sidebar);
}
.section-header-actions .settings-button svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linejoin: round;
}
body.ink-control-theme :is(.dialogs-header, .calendar-header, .deals-header, .updates-header) {
  padding: 16px 20px; min-width: 0; width: 100%; max-width: 100%;
}
body.ink-control-theme #workspace > section:not(.chat-panel) { grid-template-columns: minmax(0, 1fr); }
body.ink-control-theme .primary-nav {
  width: 100%; max-width: 100%; min-width: 0;
  display: flex; gap: 0; overflow-x: auto; overflow-y: hidden;
  margin-top: 14px; scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
body.ink-control-theme .primary-nav > button {
  position: relative; flex: 1 0 auto; min-width: 100px;
  min-height: 44px; padding: 10px 16px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; white-space: nowrap; font-size: 14px;
}
html body.ink-control-theme .primary-nav .nav-count {
  position: static; flex: none; margin: 0; padding: 2px 5px;
  min-width: 18px; height: 18px; font-size: 11px; transform: none;
}
body.ink-control-theme .section-menu-card { grid-template-columns: minmax(0, 1fr); }
body.ink-control-theme .section-menu-open { width: 100%; min-width: 0; }
html body.ink-control-theme .section-menu-open .nav-count { position:static; display:inline-grid; place-items:center; width:max-content; min-width:20px; height:20px; margin:8px 0 0; padding:2px 6px; color:var(--accent-ink); font-size:11px; }
.home-navigation-card {
  padding: 22px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); color: var(--text); min-width: 0;
}
.home-navigation-card h3 { margin: 0 0 8px; font-size: 18px; }
.home-navigation-card > p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.home-navigation-options { display: grid; gap: 0; }
.home-navigation-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer;
  color: var(--text); font-size: 14px;
}
.home-navigation-row > span:first-child { display: grid; gap: 4px; min-width: 0; }
.home-navigation-row small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.home-navigation-control { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex: none; }
.home-navigation-control input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
#home-navigation-status { min-height: 22px; margin-bottom: 0; }
/* Use theme tokens for text and controls left with dark-only colors. */
html[data-theme="light"] body.ink-control-theme .secondary-button:not(.danger-outline):not(.active) {
  color: var(--text); background: var(--surface); border-color: var(--line);
}
html[data-theme="light"] body.ink-control-theme .secondary-button:not(:disabled):hover {
  border-color: var(--accent); background: var(--surface-2);
}
html[data-theme="light"] body.ink-control-theme .secondary-button:disabled {
  opacity: .55; cursor: default;
}
html[data-theme="light"] body.ink-control-theme .status-pill { color: #5f710f; }
html[data-theme="light"] body.ink-control-theme .status-pill.off { color: var(--muted); }
body.ink-control-theme :is(
  .settings-form, .reports-filters, .statistics-filters, .reports-cashbox-form,
  .finance-operation-card, .finance-close-form
) label { color: var(--text); font-size: 13px; }
body.ink-control-theme :is(.reports-heading, .statistics-heading, .expenses-heading) p { font-size: 14px; }
body.ink-control-theme :is(.finance-period-card small, .finance-section-heading > p, .reports-summary span) { font-size: 12px; }
html[data-theme="light"] body.ink-control-theme :is(.mailing-form, .content-form, .settings-form) label {
  color: var(--text);
}
body.ink-control-theme .mailing-filter-heading,
body.ink-control-theme .mailing-filter-heading > div { display: grid; gap: 6px; }
body.ink-control-theme .mailing-filter-heading small { font-size: 13px; line-height: 1.5; }
body.ink-control-theme :is(.marketing-heading, .content-heading) p:last-child { font-size: 14px; }
body.ink-control-theme :is(.mailing-form > label, .mailing-test-card > label, .mailing-filter-card > label) { font-size: 14px; }
body.ink-control-theme :is(.mailing-filter-group legend, .mailing-image-block small, .mailing-test-card small) { font-size: 12px; }
body.ink-control-theme :is(.mailing-filter-chip span, .mailing-variable) { font-size: 13px; min-height: 36px; }
body.ink-control-theme #tasks-content { padding: 0; }
body.ink-control-theme .reports-subnav { flex-wrap: wrap; min-width: 0; }
body.ink-control-theme .reports-content { overflow-x: hidden; min-width: 0; }
html[data-theme="light"] body.ink-control-theme :is(
  .content-post-form, .content-community-form, .content-source-sidebar,
  .content-auth-card, .content-auth-details
) label { color: var(--text); }
body.ink-control-theme :is(.content-post-form, .content-community-form, .content-source-sidebar) label { font-size: 14px; }
html[data-theme="light"] body.ink-control-theme :is(#mailing-status, .mailing-campaign-card i, .content-post-status) {
  color: var(--muted);
}
@media (max-width: 820px) {
  body.ink-control-theme :is(.dialogs-header, .calendar-header, .deals-header, .updates-header) { padding: 12px; }
  body.ink-control-theme .section-brand-row { min-height: 54px; gap: 8px; }
  body.ink-control-theme .section-brand-row .brand-logo.small { width: 64px; height: 46px; min-width: 64px; border-radius: 10px; }
  body.ink-control-theme .section-brand-row .eyebrow { font-size: 9px; letter-spacing: .12em; line-height: 1.3; }
  body.ink-control-theme .section-brand-row h1 { font-size: 18px; white-space: normal; overflow-wrap: anywhere; }
  body.ink-control-theme .section-header-actions .current-user { display: none; }
  body.ink-control-theme .section-header-actions:has(.notification-center-button) { gap: 4px; }
  body.ink-control-theme .section-header-actions:has(.notification-center-button) .icon-button {
    width: 36px; min-width: 36px; height: 40px; min-height: 40px; flex-basis: 36px;
  }
  body.ink-control-theme .primary-nav { margin-top: 10px; }
  body.ink-control-theme .primary-nav > button { min-width: 92px; padding: 10px 12px; font-size: 13px; }
  .home-navigation-card { padding: 16px; }
  .home-navigation-row { gap: 10px; }
  .home-navigation-control { font-size: 12px; gap: 6px; }
}
.reply-context-preview.avito-quote-preview small { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 140px; overflow-y: auto; text-overflow: clip; }
/* The two square actions share one row; search expands inline on demand. */
#sidebar .dialog-list-actions { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 12px; }
html body.ink-control-theme #sidebar .dialog-list-actions > .dialog-list-action {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px;
  margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); background: var(--surface); cursor: pointer;
}
#sidebar .dialog-list-action svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body.ink-control-theme #sidebar .dialog-list-action.active { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
#sidebar .dialog-list-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#sidebar .dialog-list-action:disabled { cursor: wait; opacity: .6; }
#sidebar .dialog-list-action[aria-busy="true"] svg { animation: dialog-action-spin 1s linear infinite; }
html body.ink-control-theme #sidebar #client-search-field { flex: 1 1 0; width: auto; min-width: 0; height: 44px; margin: 0; padding: 0 9px; }
@keyframes dialog-action-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #sidebar .dialog-list-action[aria-busy="true"] svg { animation: none; } }
@media (max-width: 820px) { #sidebar #client-search-field input { font-size: 16px; } }
.chat-content .session-bar { flex-wrap: nowrap; gap: 8px; padding: 8px 12px; }
.chat-content .session-bar > #session-summary-block { flex: 1 1 0; min-width: 0; }
.chat-content .chat-action-square:not(.compact-only) {
  display: inline-flex; justify-content: center; align-items: center;
  flex: 0 0 44px; width: 44px; min-width: 44px; max-width: 44px;
  height: 44px; min-height: 44px; padding: 0; margin: 0;
  border-radius: 12px; line-height: 1;
}
@media (min-width: 821px) {
  html[data-layout="compact"] #chat-content .chat-header #compact-book {
    width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; flex: 0 0 44px;
  }
}
/* Hidden optional rows must not move the composer into the flexible message row. */
#chat-content > .chat-header { grid-row: 1; }
#chat-content > #session-bar { grid-row: 2; }
#chat-content > #message-history-tools { grid-row: 3; }
#chat-content > #messages { grid-row: 4; }
#chat-content > #typing-indicator { grid-row: 5; }
#chat-content > #composer-form { grid-row: 6; }
#chat-content > #manual-client-notice { grid-row: 6; padding: 16px; margin: 0; color: var(--muted); border-top: 1px solid var(--border); }
#manual-client-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 24px; box-sizing: border-box; }
#manual-client-dialog form { min-width: 0; }
#manual-client-dialog input, #manual-client-dialog select { min-width: 0; width: 100%; box-sizing: border-box; }
#manual-client-dialog .drawer-section-heading { align-items: center; }
#manual-client-error { color: #b64435; margin: 0; overflow-wrap: anywhere; }
#card-mailing-reason { font-size: 13px; overflow-wrap: anywhere; }
#card-manual-fields { margin-bottom: 12px; }
.chat-action-square svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-action-square:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#chat-content:not(.compact-search-open) #message-history-tools { display: none; }
#chat-content:not(.compact-search-open) #message-history-tools:has(#message-older-button:not(.hidden), #message-latest-button:not(.hidden)) { display: flex; }
#chat-content:not(.compact-search-open) #message-history-tools :is(.message-search-box, .message-date-field, #message-date-go) { display: none; }

/* Client report: spreadsheet density, without shrinking the mobile type. */
#reports-list .client-report-table tfoot td { position: sticky; bottom: 0; z-index: 2; background: var(--surface-2); border-top: 2px solid var(--line); font-weight: 650; }
#reports-list .client-report-table tfoot strong { display: block; color: var(--accent); }
#report-dialog-return { width: auto; flex: 0 0 auto; margin: 0; padding: 8px 12px; min-height: 40px; }
@media (max-width: 820px) { .chat-header:has(#report-dialog-return:not(.hidden)) { flex-wrap: wrap; } #report-dialog-return { flex-basis: 100%; } }
.city-review-settings { border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.city-review-settings label:has(input[type=checkbox]), .session-review-source > label:first-child { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.city-review-settings input[type=checkbox], .session-review-source input[type=checkbox] { width: 22px; height: 22px; min-width: 22px; }
#session-review-section { padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
#session-review-sources { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.session-review-source { padding: 12px; background: var(--surface-2); border-radius: 10px; min-width: 0; }
.session-review-source input[type=file] { width: 100%; min-width: 0; font-size: 12px; }
.session-review-source .review-upload-button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; margin: 8px 6px 0 0; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; cursor: pointer; overflow: hidden; }
.session-review-source .review-upload-button input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.review-upload-button:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.review-photo-links a { color: var(--accent); font-size: 13px; }
.session-payment-dialog .calendar-form { max-height: calc(100dvh - 24px); overflow-y: auto; }
.session-payment-actions { align-items: stretch; }
.session-payment-actions > button { margin: 0 !important; min-height: 48px; }
@media(max-width:600px) {
  .session-payment-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .session-payment-summary span { padding: 10px 6px; font-size: 12px; }
  .session-payment-summary strong { font-size: 17px; }
}
.review-photo-links { display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
#session-review-section p { font-size: 13px; color: var(--muted); }
@media(max-width:600px) { #session-review-sources { grid-template-columns: 1fr; } }
.report-table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.report-table-tools > span { color: var(--muted); font-size: 13px; }
html body .report-table-tools button { margin: 0; width: auto; flex: 0 0 auto; padding: 10px 16px; font-size: 14px; }
.report-column-title { display: block; margin-bottom: 8px; min-height: 36px; }
#reports-list .client-report-table th :is(input, select) { display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 36px; margin: 0; padding: 6px; font-size: 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
#reports-list .client-report-table th .report-range { display: grid; grid-template-columns: repeat(2,minmax(60px,1fr)); gap: 4px; }
#reports-list .client-report-table thead th { min-width: 140px; vertical-align: top; }
#reports-list .client-report-table thead th:first-child { min-width: 162px; }
#cashbox-detail-dialog { width: min(1250px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-sizing: border-box; padding: 22px; overflow: auto; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 80px #0005; }
#cashbox-detail-dialog::backdrop { background: #0007; }
#cashbox-detail-month { padding: 8px; min-width: 160px; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); }
#cashbox-detail-dialog .form-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#cashbox-detail-dialog .report-table-tools label { display: flex; align-items: center; gap: 8px; }
#cashbox-detail-dialog input[type=checkbox] { width: 20px; height: 20px; }
#cashbox-detail-error { color: var(--warm); }
#cashbox-manual-form { margin: 14px 0; max-width: 800px; }
#cashbox-manual-form p { grid-column: 1 / -1; color: var(--muted); }
.finance-table-scroll { overflow: auto; max-height: 55vh; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; }
.finance-table { width: 100%; min-width: 1050px; border-collapse: separate; border-spacing: 0; font-size: 14px; color: var(--text); }
.finance-table :is(th,td) { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; max-width: 280px; overflow-wrap: anywhere; }
.finance-table th { position: sticky; top: 0; background: var(--surface-2); z-index: 1; }
.finance-table th:nth-child(8) { min-width: 85px; }
.finance-table tbody tr:nth-child(even) { background: var(--surface-2); }
.finance-table :is(th,td):nth-child(5), .finance-table :is(th,td):nth-child(6) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
#reports-list { min-width: 0; max-width: 100%; }
.client-report-scroll { max-width: 100%; max-height: 65vh; min-height: 120px; overflow: auto; position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overscroll-behavior-x: contain; }
.client-report-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#reports-list .client-report-table { width: 100%; min-width: 1180px; border-collapse: separate; border-spacing: 0; color: var(--text); font-size: 14px; line-height: 1.4; }
.client-report-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#reports-list .client-report-table th, #reports-list .client-report-table td { padding: 11px 12px; text-align: left; vertical-align: middle; border: 0; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line); }
#reports-list .client-report-table th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 750; }
#reports-list .report-client-row { --report-row-bg: var(--surface); }
#reports-list .report-client-row:nth-child(4n + 3) { --report-row-bg: var(--surface-2); }
#reports-list .report-client-row:hover, #reports-list .report-client-row:focus-within { --report-row-bg: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
#reports-list .report-client-row td { background: var(--report-row-bg); max-width: 220px; overflow-wrap: anywhere; }
#reports-list .client-report-table th:first-child, #reports-list .report-client-row td:first-child { position: sticky; left: 0; z-index: 1; width: 108px; min-width: 108px; white-space: nowrap; border-right: 1px solid var(--line); }
#reports-list .client-report-table th:first-child { z-index: 3; }
#reports-list .report-client-row.attention td:first-child { box-shadow: inset 3px 0 var(--warm); }
#reports-list .report-name { min-width: 160px; font-weight: 650; }
#reports-list .client-report-table .report-money { text-align: right; font-variant-numeric: tabular-nums; }
#reports-list td.report-money { white-space: nowrap; }
#reports-list .report-dialog { min-width: 110px; }
#reports-list .report-dialog a { display: inline-flex; align-items: center; min-height: 32px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
#reports-list .report-details-toggle { margin: 0; min-height: 34px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--text); font-size: 13px; white-space: nowrap; cursor: pointer; }
#reports-list :is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#reports-list .report-details-row[hidden] { display: none; }
#reports-list .report-details-row td { padding: 16px; background: var(--surface-2); }
#reports-list .report-row-details { max-width: 850px; color: var(--text); }
#reports-list .report-details-fields { display: flex; flex-wrap: wrap; gap: 14px 30px; }
#reports-list .report-details-fields :is(small, strong) { display: block; }
#reports-list .report-details-fields small { color: var(--muted); font-size: 12px; }
#reports-list .report-row-details p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0 0; }
#reports-list .report-attention-note { color: var(--warm); }
#reports-list .report-delete-button, #reports-list .report-visit-badge { font-size: 13px; }
@media (min-width: 1100px) {
  #reports-clients-pane .reports-filters { grid-template-columns: minmax(140px,1fr) repeat(4,minmax(130px,1fr)) auto; align-items: end; }
  #reports-clients-pane .reports-show-button { grid-column: auto; min-height: 44px; margin: 0; padding: 0 18px; }
}
