/* Document Services: the approved operational language, preserving existing controls. */
.documents-page {
  --op-surface: var(--surface);
  --op-surface-muted: var(--surface-soft);
  --op-surface-head: var(--surface-soft);
  --op-line: var(--line-soft);
  --op-line-strong: var(--line);
  --op-ink: var(--ink);
  --op-ink-muted: var(--muted);
  --op-ink-soft: var(--muted);
  --op-accent: var(--accent);
  --op-accent-ink: var(--accent-ink);
  --op-accent-soft: var(--accent-soft);
  --op-radius: 12px;
  --op-radius-sm: 6px;
  --op-row-height: 58px;
  --op-font-cell: 13px;
  --op-font-meta: 12px;
  --op-control: 18px;
}
.documents-page .content-container { max-width: none; padding: 12px 12px 24px; }
.document-page-context { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.document-create-entry { position: relative; }
.document-create-entry > summary { display: inline-flex; gap: 6px; list-style: none; }
.document-create-entry > summary::-webkit-details-marker { display: none; }
.document-create-entry svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.document-create-entry__panel {
  position: absolute; z-index: 90; top: calc(100% + 8px); right: 0;
  width: min(320px, calc(100vw - 32px)); padding: 16px;
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); background: var(--surface); font-size: 13px; line-height: 1.5;
}
.document-create-entry__panel p { margin: 6px 0 12px; color: var(--muted); }
.document-table-panel { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.document-grid-controls {
  display: flex; align-items: center; gap: 6px; min-height: 48px;
  padding: 8px 9px; border-bottom: 1px solid var(--line);
}
.documents-page .compact-filters {
  flex: 1; min-width: 0; display: flex; flex-wrap: nowrap; align-items: center;
  gap: 6px; padding: 0; margin: 0; border: 0; border-radius: 0;
  box-shadow: none; background: transparent;
}
.documents-page .compact-filter {
  position: relative; display: flex; flex: 0 0 128px; align-items: center;
  gap: 4px; min-width: 0; height: 31px; padding-left: 9px;
  border: 1px solid transparent; border-radius: 18px; background: var(--surface-soft);
}
.documents-page .compact-filter:focus-within { border-color: var(--accent); }
.documents-page .compact-filter > span:not(.visually-hidden) {
  flex: 0 0 auto; color: var(--muted); font-size: 12px;
  font-weight: 500; text-transform: none; letter-spacing: 0;
}
.documents-page .compact-filter input:not([type="checkbox"]),
.documents-page .compact-filter select {
  min-width: 0; width: 100%; min-height: 29px; height: 29px; padding: 3px 4px 3px 0;
  border: 0; border-radius: 0; background-color: transparent; color: var(--ink);
  font-size: 12px; font-weight: 550; box-shadow: none; text-overflow: ellipsis;
}
.documents-page .compact-filter select option { background: var(--surface); color: var(--ink); }
.documents-page .compact-filter select { appearance: none; padding-right: 18px; background-image: none; }
.documents-page .compact-filter:has(select)::after { content: ""; position: absolute; right: 9px; top: 11px; width: 5px; height: 5px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.documents-page .compact-filter input::placeholder { color: var(--muted); opacity: 1; font-weight: 400; }
.documents-page .compact-filter--search { flex: 1 1 145px; min-width: 110px; }
.documents-page .compact-filter--check { flex: 0 0 auto; gap: 5px; padding: 0 8px; min-height: 31px; }
.documents-page .compact-filter--check input { flex: 0 0 14px; width: 14px; min-height: 14px; height: 14px; }
.documents-page .compact-filter--check > span { font-size: 12px; }
.documents-page .compact-filter--check:has(input:checked) { background: var(--accent-soft); }
.documents-page .compact-filter-actions { gap: 0; }
.documents-page .compact-filter-actions .button { width: 28px; min-height: 30px; padding: 5px; font-size: 12px; color: var(--muted); background: transparent; border: 0; }
.documents-page .compact-filter-actions .button:hover { color: var(--ink); background: var(--surface-soft); }
.documents-page .compact-filter-actions svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.document-grid-controls .column-picker { flex: 0 0 auto; }
.document-grid-controls .column-picker > summary {
  display: flex; align-items: center; gap: 4px; height: 31px; min-height: 31px; padding: 0 9px;
  border: 0; border-radius: 18px; background: var(--surface-soft); color: var(--ink);
  font-size: 12px; font-weight: 550; list-style: none; white-space: nowrap;
}
.document-grid-controls .column-picker > summary::-webkit-details-marker { display: none; }
.document-grid-controls .column-picker > summary::after { content: ""; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin: 0 1px 3px 4px; }
.documents-page .column-picker__panel { z-index: 80; border-color: var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.documents-page .column-picker__panel label { font-size: 13px; }
.documents-page .compact-grid-shell { max-height: calc(100vh - 210px); border: 0; border-radius: 0 0 13px 13px; box-shadow: none; scrollbar-color: var(--muted) var(--surface-soft); }
.documents-page .compact-operational-grid { font-size: 13px; font-variant-numeric: tabular-nums; }
.documents-page .compact-operational-grid th,
.documents-page .compact-operational-grid td { height: 58px; padding: 2px 5px; border-color: var(--line-soft); }
.documents-page .compact-operational-grid thead th { height: 44px; padding: 5px; color: var(--muted); background: var(--surface-soft); font-size: 12px; font-weight: 600; line-height: 15px; letter-spacing: 0; text-transform: none; }
.documents-page .compact-operational-grid thead .compact-sticky,
.documents-page .compact-operational-grid thead .compact-sticky-right { background: var(--surface-soft); }
.documents-page .compact-job-row:hover > *,
.documents-page .compact-job-row:focus-within > * { background-color: var(--surface-soft); }
.documents-page .compact-job-row--attention > :first-child::before { width: 1px; background: var(--warning); }
.documents-page .compact-job-id { font-size: 13px; font-weight: 650; }
.documents-page .compact-customer-cell > .compact-customer-primary { font-size: 13px; font-weight: 600; }
.documents-page .compact-customer-cell > span { font-size: 12px; color: var(--muted); }
.documents-page .compact-sticky--project { min-width: 82px !important; max-width: 82px !important; }
.documents-page .compact-sticky--deadline { left: 310px; min-width: 96px !important; max-width: 96px !important; }
.documents-page .compact-service-heading,
.documents-page .compact-service-cell { min-width: 120px !important; max-width: 120px !important; }
.documents-page .compact-sticky-right--note { min-width: 138px !important; max-width: 138px !important; }
.documents-page .compact-sticky-right--invoice { right: 138px; }
.documents-page .compact-service-cell__summary { gap: 1px; }
.documents-page .compact-service-meta { gap: 0; }
.documents-page .compact-service-meta .inline-editor--direct input,
.documents-page .compact-service-meta .inline-editor--direct select { display: block; font-size: 12px; height: 17px; min-height: 17px; line-height: 15px; padding-block: 0; }
.documents-page .compact-operational-grid .inline-editor__error:empty { display: none; }
.documents-page .compact-operational-grid [data-inline-form] { line-height: 17px; }
.documents-page .compact-operational-grid .chip-select__trigger { min-height: 18px; line-height: 18px; }
.documents-page .compact-service-meta > strong,
.documents-page .compact-service-meta time,
.documents-page .compact-service-meta .compact-service-footer { line-height: 17px; }
.documents-page .compact-operational-grid .chip-select__trigger .state-token,
.documents-page .compact-operational-grid .compact-state { font-size: 12px; line-height: 18px; border-radius: 5px; font-weight: 600; padding: 0 5px; }
.documents-page .compact-operational-grid .chip-select__trigger .state-token[data-project-code],
.documents-page .compact-sticky--project .compact-project-pill { font-size: 12px; font-weight: 600; }
.documents-page .compact-operational-grid .state-picker__select { font-size: 12px !important; min-height: 19px !important; border-radius: 5px !important; }
.documents-page .compact-deadline__shown > strong { font-size: 13px; }
.documents-page .compact-deadline__shown > em { font-size: 12px; color: inherit; opacity: 1; }
.documents-page .compact-operational-grid .compact-deadline[data-deadline-severity="OVERDUE"] { background: var(--danger-soft); color: var(--danger); }
.documents-page .compact-operational-grid .compact-deadline[data-deadline-severity="TODAY"],
.documents-page .compact-operational-grid .compact-deadline[data-deadline-severity="TOMORROW"] { background: var(--warning-soft); color: var(--warning); }
.documents-page .compact-operational-grid .compact-deadline[data-deadline-severity="UPCOMING"] { background: var(--success-soft); color: var(--success); }
.documents-page .compact-note-readonly { color: var(--ink); font-size: 12px; line-height: 17px; }
.documents-page .compact-note-readonly--empty { color: var(--muted); }
.documents-page .compact-service-empty { color: var(--muted); }
.documents-page .compact-service-add button { color: var(--muted); min-height: 24px; }
.documents-page .compact-service-add button:hover { color: var(--accent-ink); background: var(--accent-soft); }
.documents-page .compact-operational-grid input::placeholder { color: var(--muted); }
.documents-page .compact-service-pick { color: var(--muted); }
.documents-page .compact-operational-grid .inline-editor__error:not(:empty) { color: var(--danger); background: var(--danger-soft); border-color: var(--danger); font-size: 12px; }
.documents-page [data-state-code],
.documents-page [data-status-code],
.documents-page [data-project-code] { --chip-fg: var(--muted); --chip-bg: var(--surface-soft); }
.documents-page :is([data-state-code="YES"], [data-state-code="ACCEPTED"], [data-state-code="NEW"], [data-status-code="NEW"], [data-project-code="PROFIFORMATOVANI"], [data-project-code="FORMATTING_BP"], [data-project-code="FORMATTING_BP_SK"], [data-project-code="PLAGIARISM_CHECK"]) { --chip-fg: var(--accent-ink); --chip-bg: var(--accent-soft); }
.documents-page :is([data-state-code="ASSIGNED"], [data-status-code="ASSIGNED"], [data-state-code="SEND"], [data-project-code="VAZBICOV"]) { --chip-fg: var(--warning); --chip-bg: var(--warning-soft); }
.documents-page :is([data-state-code="EVALUATED"], [data-state-code="REVIEW"], [data-status-code="REVIEW"], [data-state-code="PAID"], [data-project-code="DIPLOMKA24"]) { --chip-fg: var(--violet, var(--accent-ink)); --chip-bg: var(--violet-soft, var(--accent-soft)); }
.documents-page [data-project-code="OTHER"] { --chip-fg: #281106; --chip-bg: #ec430f; }
.documents-page :is([data-state-code="WAITING"], [data-status-code="WAITING"], [data-state-code="DECLINED"], [data-state-code="CANCELLED"], [data-status-code="DECLINED"], [data-status-code="CANCELLED"], [data-project-code="PROOFREADING_BP"]) { --chip-fg: var(--danger); --chip-bg: var(--danger-soft); }
.documents-page :is([data-state-code="DONE"], [data-state-code="COMPLETED"], [data-status-code="DONE"], [data-status-code="COMPLETED"], [data-state-code="IN_PROGRESS"], [data-status-code="IN_PROGRESS"], [data-project-code="FORMATTING_DP"], [data-project-code="FORMATTING_ZP"], [data-project-code="PROOFREADING_DP"]) { --chip-fg: var(--success); --chip-bg: var(--success-soft); }
.documents-page .chip-select__trigger:hover .state-token,
.documents-page .chip-select__option:hover > .state-token,
.documents-page .chip-select__option:focus-visible > .state-token,
.documents-page .compact-project-pill:hover { filter: none; }
.documents-page .chip-select__trigger:hover .state-token { outline: 1px solid currentColor; outline-offset: -1px; }
.documents-page .pagination { margin: 0; padding: 10px 12px; border-top: 1px solid var(--line); }
.documents-page .document-table-panel > .empty-state { border: 0; border-radius: 0 0 13px 13px; }

/* The invoice amount keeps its existing permission and visible position. */
.documents-page .compact-invoice-cell { text-align: center; }
.documents-page .compact-invoice-cell > .document-invoice-indicator {
  position: relative; display: inline-grid; place-items: center; width: 28px; height: 26px;
  padding: 3px; border-radius: 6px; color: var(--muted); background: transparent;
}
.document-invoice-indicator svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.document-invoice-indicator[data-invoice-payment="PAID"] { color: var(--success) !important; background: var(--success-soft) !important; }
.document-invoice-indicator[data-invoice-payment="OVERDUE"] { color: var(--danger) !important; background: var(--danger-soft) !important; }
.document-invoice-indicator[data-invoice-issue="ISSUED"][data-invoice-payment="TO_PAY"] { color: var(--accent-ink) !important; background: var(--accent-soft) !important; }
.documents-page .document-invoice-indicator > .document-invoice-tooltip {
  display: none; position: absolute; z-index: 75; bottom: calc(100% + 5px); right: 0;
  width: max-content; max-width: 260px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; color: var(--ink); background: var(--surface); font-size: 12px;
  line-height: 1.5; text-align: left; white-space: normal;
}
.documents-page .document-invoice-indicator:hover > .document-invoice-tooltip,
.documents-page .document-invoice-indicator:focus > .document-invoice-tooltip { display: block; }
.document-invoice-tooltip[data-floating] {
  position: fixed; z-index: 600; display: block; width: max-content; max-width: min(260px, calc(100vw - 24px));
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); background: var(--surface); font-size: 12px; line-height: 1.5;
  text-align: left; white-space: normal;
}
.documents-page .compact-invoice-cell > .document-invoice-amount { display: block; padding: 0; font-size: 12px; line-height: 15px; white-space: normal; font-variant-numeric: tabular-nums; color: var(--muted); }

/* Related lists, forms, focused service dialogs and the full job detail. */
.documents-page .panel,
.documents-page .job-v2-header,
.documents-page .job-v2-section { border-color: var(--line); border-radius: 12px; background: var(--surface); box-shadow: none; }
.documents-page .panel { padding: 16px; }
.documents-page .table-panel { padding: 0; }
.documents-page .panel-heading { margin-bottom: 12px; }
.documents-page .panel-heading h2,
.documents-page .job-v2-section__heading h2 { font-size: 15px; font-weight: 650; }
.documents-page .panel-heading .eyebrow { display: none; }
.documents-page .filter-tabs { margin: 0 0 12px; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.documents-page .filter-tabs a { min-height: 30px; border: 0; border-radius: 18px; font-size: 13px; color: var(--muted); }
.documents-page .filter-tabs a.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.documents-page .data-table { font-size: 13px; }
.documents-page .data-table thead th { background: var(--surface-soft); color: var(--muted); font-size: 12px; text-transform: none; letter-spacing: 0; }
.documents-page .data-table td { color: var(--ink); border-color: var(--line-soft); }
.documents-page .data-table tr:hover td { background: var(--surface-soft); }
.documents-page .job-v2-header { padding: 10px 14px; }
.documents-page .job-v2-header__summary { width: 100%; justify-content: flex-start; gap: 14px 24px; }
.documents-page .job-v2-header__summary > .inline-editor { flex: 0 0 auto; width: auto; min-width: 100px; margin-right: 0; }
.documents-page .job-v2-header__summary small { text-transform: none; letter-spacing: 0; }
.documents-page .job-v2-tabs { background: transparent; border-color: var(--line); }
.documents-page .job-v2-tab { color: var(--muted); font-size: 13px; border-radius: 8px 8px 0 0; }
.documents-page .job-v2-tab.is-active { color: var(--accent-ink); background: var(--accent-soft); }
.documents-page .job-v2-section { margin-bottom: 12px; }
.documents-page .job-v2-section__heading { background: transparent; border-color: var(--line); }
.documents-page .job-v2-section__heading p,
.documents-page .job-v2-header__summary small,
.documents-page .job-v2-service__hint,
.documents-page .job-v2-read-grid small { color: var(--muted); font-size: 12px; }
.documents-page .job-v2-service,
.documents-page .job-v2-invoice-layout,
.documents-page .job-v2-invoice-config,
.documents-page .job-v2-attachment-list article { border-color: var(--line); background: var(--surface); }
/* Attachment sharing uses its own grid; service and billing grids retain their columns. */
.documents-page .job-v2-attachment-list article {
  display: grid; grid-template-columns: minmax(12rem, 1fr) auto; align-items: start; gap: 1rem;
}
.documents-page .job-v2-attachment-list article > div { min-width: 0; }
.documents-page .job-v2-attachment-list article strong { overflow-wrap: anywhere; white-space: normal; }
.documents-page .job-v2-attachment-list .attachment-access-form {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: end; gap: .75rem;
  border-top: 1px solid var(--line); padding-top: .75rem;
}
@media (max-width: 640px) {
  .documents-page .job-v2-attachment-list article { grid-template-columns: minmax(0, 1fr); }
}
.documents-page .job-v2-service:hover { background: var(--surface-soft); }
.documents-page .job-v2-service.is-removed { background: var(--surface-soft); }
.documents-page .job-v2-add-service,
.documents-page .job-v2-invoice-status,
.documents-page .job-v2-invoice-total,
.documents-page .job-v2-service-table__head { border-color: var(--line); color: var(--ink); background: var(--surface-soft); }
.documents-page .job-v2-alert,
.documents-page .job-v2-due--differs { color: var(--warning); background: var(--warning-soft); }
.documents-page .service-dialog { padding: 0; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); }
.documents-page .service-dialog__bar,
.documents-page .service-dialog__actions { border-color: var(--line); background: var(--surface-soft); }
.documents-page .service-dialog__bar h3 { font-size: 16px; }
.documents-page .service-dialog__close { color: var(--muted); }
.documents-page .job-v2-section .service-form .form-field input:not([type="hidden"]),
.documents-page .job-v2-section .service-form .form-field select,
.documents-page .job-v2-section .service-form .form-field textarea,
.documents-page .service-dialog input:not([type="hidden"]),
.documents-page .service-dialog select,
.documents-page .service-dialog textarea { color: var(--ink); background-color: var(--surface-soft); border-color: var(--line); border-radius: 8px; }
.documents-page .chip-select__menu { color: var(--ink); background: var(--surface); border-color: var(--line); }
.documents-page .chip-select__option:hover,
.documents-page .chip-select__option:focus-visible { background: var(--surface-soft); }
.documents-page .chip-select__option > .state-token { font-size: 13px; }
.documents-page .chip-select__option[aria-selected="true"] > .state-token { box-shadow: none; outline: 2px solid currentColor; outline-offset: 1px; }
.documents-page .job-v2-customer-form label > span,
.documents-page .job-v2-field > span,
.documents-page .job-v2-service-table__head { font-size: 12px; text-transform: none; letter-spacing: 0; }
.documents-page .job-v2-service__name strong,
.documents-page .dense-service-status { font-size: 13px; }

/* Explicit detail type sizes: legacy rem values were authored against a larger root. */
.documents-page.workspace-page--job-detail-v2 .job-v2-section :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="file"]), select, textarea),
.documents-page.workspace-page--job-detail-v2 .job-v2-header :is(input:not([type="hidden"]):not([type="checkbox"]), select),
.documents-page .service-dialog .service-form .form-field :is(input:not([type="hidden"]):not([type="checkbox"]), select, textarea) { font-size: 13px; }
.documents-page .job-v2-field > strong,
.documents-page .job-v2-service label > strong,
.documents-page .job-v2-read-grid strong,
.documents-page .job-v2-header__summary strong { font-size: 13px; }
.documents-page .job-v2-section .chip-select__trigger .state-token,
.documents-page .job-v2-field .compact-project-pill { font-size: 12px; }
.documents-page .job-v2-customer-form label > span small,
.documents-page .job-v2-field > span small,
.documents-page .job-v2-service__name > span,
.documents-page .job-v2-contact-sharing label,
.documents-page .job-v2-metrics-form label > span,
.documents-page .job-v2-invoice-config label > span,
.documents-page .service-form .form-field label { font-size: 12px; }
.documents-page .job-v2-service-total { font-size: 13px; color: var(--success); }
.documents-page .job-v2-service-total > em { font-size: 13px; color: var(--muted); }

/* Reset legacy light-only native fields without changing their editing behavior. */
.documents-page .inline-editor [data-inline-form] { color-scheme: inherit; }
.documents-page .inline-editor [data-inline-form] input:not([type="hidden"]),
.documents-page .inline-editor [data-inline-form] select,
.documents-page .inline-editor [data-inline-form] textarea { -webkit-text-fill-color: currentColor; }
.documents-page .inline-editor [data-inline-form] input:not([type="hidden"]):not([type="checkbox"]),
.documents-page .inline-editor [data-inline-form] select:not([data-state-select]):not([data-project-select]),
.documents-page .inline-editor [data-inline-form] textarea { color: var(--ink); }
.documents-page .inline-editor [data-inline-form] select option:not([data-state-code]):not([data-project-code]) { color: var(--ink); background: var(--surface); -webkit-text-fill-color: currentColor; }
.documents-page .note-editor__surface { color: var(--ink); background: var(--surface-soft); border-color: var(--line); }
.documents-page .note-editor__surface.is-empty::before { color: var(--muted); }
.documents-page .job-v2-due[data-deadline-severity="OVERDUE"] { --due-bg: var(--danger-soft); --due-fg: var(--danger); --due-line: var(--danger); }
.documents-page .job-v2-due[data-deadline-severity="TODAY"],
.documents-page .job-v2-due[data-deadline-severity="TOMORROW"] { --due-bg: var(--warning-soft); --due-fg: var(--warning); --due-line: var(--warning); }
.documents-page .job-v2-due[data-deadline-severity="UPCOMING"] { --due-bg: var(--success-soft); --due-fg: var(--success); --due-line: var(--success); }
.documents-page .job-v2-alert { border-left-width: 1px; border-color: var(--warning); }
.documents-page .workspace-page--job-detail-v2 .job-v2-notes .note-editor__surface,
.documents-page.workspace-page--job-detail-v2 .job-v2-notes .note-editor__surface { font-size: 13px; }
.documents-page .job-v2-tab span { color: var(--muted); background: var(--surface-soft); }
.documents-page .inquiry-tag { font-size: 12px; line-height: 18px; border-radius: 5px; }
.documents-page .inquiry-tag--approved { color: var(--success); background: var(--success-soft); }
.documents-page .form-actions button { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.documents-page .form-grid--filters { gap: 12px; }
.documents-page .form-grid--filters .form-actions { margin: 0; padding-top: 0; }

@media (max-width: 1250px) {
  .document-grid-controls { flex-wrap: wrap; }
  .documents-page .compact-filters { flex-wrap: wrap; flex-basis: calc(100% - 155px); }
  .documents-page .compact-filter { flex-basis: 120px; }
  .documents-page .compact-filter--search { flex-basis: 180px; }
  .documents-page .compact-filter--check { flex-basis: auto; }
  .documents-page .compact-grid-shell { max-height: calc(100vh - 252px); }
}
@media (max-width: 1180px) {
  .documents-page .compact-operational-grid .compact-sticky-right { right: auto; }
}
@media (max-width: 760px) {
  .documents-page .content-container { padding: 10px; }
  .documents-page .compact-filters { flex-basis: 100%; }
  .documents-page .compact-filter { flex: 1 1 calc(50% - 6px); height: 34px; }
  .documents-page .compact-filter--search { flex-basis: 100%; }
  .documents-page .compact-filter--check { flex: 0 1 auto; }
  .document-grid-controls .column-picker { margin-left: auto; }
  .documents-page .compact-grid-shell { max-height: 480px; }
  .documents-page .compact-sticky--deadline { left: auto; }
  .documents-page .filter-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .documents-page .filter-tabs a { white-space: nowrap; }
  .documents-page .job-v2-header__summary { gap: 10px 16px; }
}
.table-zoom { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 7px 10px; font-size: 12px; color: var(--muted); }
.table-zoom input { width: 95px; min-height: 24px; accent-color: var(--accent); }
.table-zoom button { padding: 3px 7px; min-height: 27px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.service-flag { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border: 1px solid var(--control-line); border-radius: 50%; font-size: 11px; font-weight: 650; margin-left: 5px; vertical-align: middle; }
.service-flag svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.worker-service-deadline[data-deadline-severity="TODAY"] { background: #202020; color: #fff; }
.worker-service-deadline[data-deadline-severity="TOMORROW"] { background: #ffdf70; color: #302600; }
.worker-service-deadline[data-deadline-severity="UPCOMING"] { background: var(--success-soft); color: var(--success); }
.worker-service-deadline[data-deadline-severity="OVERDUE"] { background: var(--danger-soft); color: var(--danger); }
.worker-service-deadline { border-radius: 4px; padding: 3px 5px; }
.compact-operational-grid--worker .compact-sticky--customer { left: 77px; }
@media (min-width: 1025px) {
  .job-v2-services--restricted { grid-template-columns: minmax(180px, 2fr) 110px minmax(130px, 1fr) 110px; }
  .job-v2-services--restricted .job-v2-service__workflow { grid-column: 2 / 4; }
  .job-v2-services--restricted .job-v2-service__commercial form { grid-column: 4 / 5; }
}
@media (max-width: 1024px) {
  .job-v2-services--restricted { min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .job-v2-services--restricted .job-v2-service__commercial form { grid-column: 1 / -1; }
}
.job-v2-service__name { display: block; }
.job-v2-service__desc { display: block; }
.job-chat { padding: 16px; color: var(--ink); }
.job-chat textarea { color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.documents-page .inquiry-services { gap: 1px; max-height: none; overflow: visible; }
.documents-page .inquiry-service { font-size: 12px; line-height: 1.35; min-height: 20px; }
.documents-page .inquiry-service input[type="checkbox"] { width: 15px; min-height: 15px; height: 15px; }
.invoice-confirmation { max-width: 900px; }
.invoice-confirmation dl { display: flex; flex-wrap: wrap; gap: 20px 36px; margin: 22px 0; }
.invoice-confirmation dt { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.invoice-confirmation dd { margin: 0; overflow-wrap: anywhere; }
.invoice-confirmation form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.invoice-confirmation .panel-heading { display: block; }
.invoice-confirmation .panel-heading p { margin: 6px 0 0; color: var(--muted); }
.invoice-lines { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.invoice-lines th, .invoice-lines td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.invoice-lines th:first-child { width: 65%; }
.invoice-lines th:last-child, .invoice-lines td:last-child { text-align: right; }
.invoice-lines td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.invoice-lines td:first-child { overflow-wrap: anywhere; }
.invoice-lines thead, .invoice-lines tfoot { background: var(--surface-soft); }
.invoice-lines thead { color: var(--muted); }

/* Document review actions: reference colors with readable white text. */
.document-review-button { background: #2d6cdf; border-color: #2d6cdf; color: #fff; }
.document-review-button:hover { background: #1f4fb8; border-color: #1f4fb8; color: #fff; }
.document-review-button--print { background: #b94700; border-color: #b94700; color: #fff; }
.document-review-button--print:hover { background: #963900; border-color: #963900; color: #fff; }
.document-review-button:disabled { cursor: not-allowed; }
.document-review-preview dd { overflow-wrap: anywhere; }
