:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --line: #e3e8ee;
  --text: #17202a;
  --muted: #697586;
  --nav: #162437;
  --nav-soft: #22344a;
  --blue: #1768e5;
  --blue-soft: #eaf2ff;
  --green: #18865b;
  --green-soft: #e8f6f0;
  --orange: #c56b16;
  --orange-soft: #fff3e6;
  --red: #b94343;
  --red-soft: #fdecec;
  --shadow: 0 12px 34px rgba(25, 42, 62, .10);
  --radius: 14px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 254px 1fr; transition: grid-template-columns .2s ease; }
.app-shell.sidebar-collapsed { grid-template-columns: 0 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 254px; display: flex; flex-direction: column; background: var(--nav); color: #fff; z-index: 20; transition: transform .2s ease; }
.app-shell.sidebar-collapsed .sidebar { transform: translateX(-100%); }
.sidebar-toggle { position: fixed; top: 22px; left: 240px; z-index: 25; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #445160; box-shadow: var(--shadow); font-size: 13px; line-height: 1; transition: left .2s ease; }
.sidebar-toggle:hover { color: var(--blue); border-color: #b9d3fb; }
.app-shell.sidebar-collapsed .sidebar-toggle { left: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 90px; padding: 20px 22px; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 64px; height: 64px; flex: none; display: grid; place-items: center; object-fit: contain; font-weight: 800; font-size: 20px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; letter-spacing: .2px; }
.brand small { margin-top: 3px; color: #9eacbd; font-size: 12px; }
.main-nav { padding: 18px 12px; display: grid; gap: 5px; }
.nav-item { width: 100%; min-height: 46px; padding: 0 11px; display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; border: 0; border-radius: 10px; color: #c7d0db; background: transparent; text-align: left; font-size: 13px; transition: .18s ease; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { color: #fff; background: var(--nav-soft); box-shadow: inset 3px 0 var(--blue); }
.nav-icon { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; font-size: 11px; font-weight: 800; }
.nav-item b { min-width: 24px; padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.1); text-align: center; font-size: 11px; }
.nav-item.attention b { color: #ffdcb8; background: rgba(232,135,51,.18); }
.sidebar-footer { margin-top: auto; padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-actions { display: grid; gap: 8px; margin-bottom: 10px; }
.sidebar-actions .button { width: 100%; }
.sidebar-actions .button.ghost { color: #c7d0db; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.sidebar-actions .button.ghost:hover:not(:disabled) { color: #fff; background: rgba(255,255,255,.1); }
.sidebar-actions .button.primary { box-shadow: none; }
.connection-state, .user-card { display: flex; align-items: center; gap: 10px; padding: 10px; }
.connection-state { margin-bottom: 5px; border-radius: 9px; background: rgba(255,255,255,.04); }
.connection-state strong, .connection-state small, .user-card strong, .user-card small { display: block; }
.connection-state strong, .user-card strong { font-size: 12px; }
.connection-state small, .user-card small { margin-top: 2px; color: #96a5b7; font-size: 10px; }
.user-card .button { margin-left: auto; color: #c7d0db; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.user-card .button:hover:not(:disabled) { color: #fff; background: rgba(255,255,255,.1); }
.state-dot { width: 9px; height: 9px; border-radius: 50%; }
.state-dot.warning { background: #f4a340; box-shadow: 0 0 0 4px rgba(244,163,64,.12); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #36506d; font-size: 11px; font-weight: 700; }

.workspace { grid-column: 2; min-width: 0; padding: 0 28px 16px; }
.button { min-height: 40px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-weight: 650; font-size: 12px; transition: .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 7px 16px rgba(23,104,229,.18); }
.button.secondary { color: #174f9d; background: var(--blue-soft); border-color: #d8e7ff; }
.button.ghost { color: #445160; background: var(--panel); border-color: var(--line); }
.button.compact { min-height: 33px; padding: 0 11px; font-size: 11px; }
.button:disabled { cursor: not-allowed; opacity: .55; }

.page { display: none; }
.page.active { display: block; animation: page-in .22s ease; }
@keyframes page-in { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.job-status-badges { display: flex; gap: 9px; margin-top: 16px; margin-bottom: 17px; padding: 3px; overflow-x: auto; }
.status-filter-badge { position: relative; width: 100%; min-width: 105px; min-height: 84px; flex: 1 1 0; justify-content: center; border: 1px solid transparent; transition: .15s ease; }
.status.status-filter-badge { border-radius: 10px; font-size: 15px; }
.status-filter-badge::before { display: none; }
.status-filter-badge span { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.15; text-align: center; }
.status-filter-badge b { position: absolute; right: 8px; bottom: 6px; min-width: 22px; padding: 2px 6px; border-radius: 999px; background: rgba(255,255,255,.65); font-size: 10px; }
.status-filter-badge:hover { transform: translateY(-1px); }
.status-filter-badge.active { border-color: currentColor; box-shadow: 0 0 0 2px currentColor; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 3px 13px rgba(32,49,68,.04); }
.panel-toolbar { display: flex; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.search-box { min-width: 290px; flex: 1; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #f9fafb; }
.search-box span { color: #8b97a5; font-size: 18px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.panel-toolbar select { min-width: 160px; height: 38px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 9px; color: #445160; background: #fff; font-size: 11px; }
.client-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.client-badge { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #445160; font-size: 10px; font-weight: 600; transition: .15s ease; }
.client-badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.client-badge b { flex-shrink: 0; padding: 1px 5px; border-radius: 999px; background: rgba(0,0,0,.06); font-size: 9px; }
.client-badge.active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.client-badge.inactive { color: #a7b0bb; }
.panel-toolbar > input { min-width: 180px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.date-range-filter { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #8b97a5; }
.date-range-filter input { border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }
.table-wrap { overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; min-width: 1180px; }
.orders-table th { padding: 12px 14px; color: #778391; background: #fafbfc; border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .35px; }
.orders-table td { padding: 13px 14px; border-bottom: 1px solid #edf0f3; font-size: 12px; vertical-align: middle; }
.orders-table tbody tr { cursor: pointer; transition: .15s ease; }
.orders-table tbody tr:hover { background: #f7faff; }
.orders-table tbody tr:last-child td { border-bottom: 0; }
.directory-table { min-width: 980px; }
.directions-table { min-width: 1100px; }
.directions-table tbody tr { cursor: default; }
.warehouse-rule-editor { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(220px, 1fr) minmax(280px, 1.3fr); align-items: start; gap: 14px; padding: 16px; margin-bottom: 14px; }
.warehouse-rule-editor input[type="text"], .warehouse-rule-editor textarea { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); font: inherit; }
.warehouse-rule-editor input[type="text"] { height: 38px; }
.warehouse-rule-editor > label > span, .warehouse-rule-field > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.warehouse-customer-select { position: relative; width: 100%; }
.warehouse-customer-select summary { height: 38px; box-sizing: border-box; padding: 10px 32px 9px 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); white-space: nowrap; text-overflow: ellipsis; cursor: pointer; list-style: none; }
.warehouse-customer-select summary::-webkit-details-marker { display: none; }
.warehouse-customer-select summary::after { content: "⌄"; position: absolute; top: 8px; right: 11px; color: var(--muted); }
.warehouse-customer-select[open] summary { border-color: var(--blue); }
.warehouse-customer-select > div { position: absolute; top: 44px; left: 0; right: 0; z-index: 90; max-height: 230px; overflow-y: auto; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 12px 30px rgba(18,33,49,.18); }
.warehouse-customer-select > div label { display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 6px; cursor: pointer; }
.warehouse-customer-select > div label:hover { background: var(--blue-soft); }
.warehouse-customer-select > div input { margin: 0; accent-color: var(--blue); }
.warehouse-rule-active { display: flex; align-items: center; gap: 6px; }
.warehouse-rule-buttons { display: flex; gap: 8px; }
.warehouse-rules-table { min-width: 900px; }
.warehouse-rules-table td:nth-child(2), .warehouse-rules-table td:nth-child(3) { white-space: pre-line; }
.warehouse-rules-table td:last-child { text-align: right; white-space: nowrap; }
#page-jobs .orders-table th:nth-child(2), #page-jobs .orders-table td:nth-child(2) { width: 26ch; min-width: 26ch; }
#page-jobs .orders-table th:nth-child(7), #page-jobs .orders-table td:nth-child(7) { width: 20ch; min-width: 20ch; max-width: 20ch; }
#page-jobs .orders-table th:nth-child(8), #page-jobs .orders-table td:nth-child(8) { width: 26ch; min-width: 26ch; }
#page-jobs .orders-table th:nth-child(9), #page-jobs .orders-table td:nth-child(9) { width: 180px; min-width: 180px; max-width: 180px; text-align: right; }
#page-jobs .orders-panel .table-wrap { height: calc(100vh - 312px); min-height: 320px; overflow: auto; }
#page-jobs .orders-table thead th { position: sticky; top: 0; z-index: 2; }
.order-number { display: block; color: #175aa9; font-weight: 750; }
.order-number-content { display: flex; align-items: center; gap: 6px; }
.order-number-content b { min-width: 18px; padding: 2px 5px; border-radius: 999px; color: #175aa9; background: var(--blue-soft); text-align: center; font-size: 9px; }
.subtext { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.route-points-clamp { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.route-address { max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 700; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.new { color: #596777; background: #eef1f4; }
.status.sent { color: #1768b7; background: #e8f2fc; }
.status.offers { color: #846213; background: #fff4cf; }
.status.success { color: var(--green); background: var(--green-soft); }
.status.warning { color: var(--orange); background: var(--orange-soft); }
.status.critical { color: var(--red); background: var(--red-soft); }
.job-row-status-picker { position: relative; display: flex; justify-content: flex-end; }
.job-status-button { width: 120px; max-width: 100%; justify-content: center; overflow: hidden; text-overflow: ellipsis; border: 0; cursor: pointer; }
.job-status-button:disabled, .status-picker > .status:disabled { cursor: default; }
.job-row-status-menu { top: calc(100% + 4px); right: 0; z-index: 85; }
.job-status-actions { width: 120px; max-width: 100%; display: flex; align-items: center; gap: 4px; margin: 5px 0 0 auto; }
.job-document-statuses { display: flex; gap: 4px; }
.job-document-status-badge { width: 20px; height: 20px; justify-content: center; box-sizing: border-box; padding: 0; border-radius: 50%; font-size: 9px; }
.job-document-status-badge::before { display: none; }
.row-arrow { width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); }
.job-open-button { min-width: 20px; height: 20px; flex: 1; }
.orders-table #jobs-body tr.expanded { background: #f2f7ff; }
.orders-table #jobs-body .job-accordion-row { cursor: default; background: #fafbfc; }
.orders-table #jobs-body .job-accordion-row:hover { background: #fafbfc; }
.job-accordion-row > td { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.job-accordion-row strong { color: var(--text); }
.job-accordion-row > td:last-child { text-align: right; }
.job-accordion-row .status { display: inline-flex; justify-content: center; width: 120px; box-sizing: border-box; white-space: nowrap; }
.job-request-client > * { display: block; }
.job-request-client { white-space: nowrap; }
.job-request-driver { white-space: nowrap; }
.job-request-carrier { white-space: nowrap; }
.job-request-driver > * { display: block; }
.job-request-driver span, .job-request-driver small { margin-top: 3px; }
.job-driver-cell > span { display: block; }
.driver-vehicle { max-width: 20ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.response-review-badge { border: 0; cursor: pointer; }
.response-document-statuses > div { width: 214px; margin-left: auto; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 6px; text-align: left; }
.response-document-statuses > div + div { margin-top: 5px; }
.response-document-statuses > div > span { color: var(--muted); font-size: 9px; }
.response-document-statuses .status { justify-content: flex-start; }
.job-request-client span, .job-request-client small { margin-top: 3px; }
.response-channel-statuses { vertical-align: top; }
.response-channel-statuses .status { display: flex; margin-bottom: 5px; border: 0; text-decoration: none; }
.response-check-summary { vertical-align: top; }
.response-check-summary > div { min-height: 24px; padding: 4px 7px; border-radius: 6px; line-height: 1.35; }
.response-check-summary > div + div { margin-top: 5px; }
.response-check-summary > .new { color: #596777; background: #eef1f4; }
.response-check-summary > .success { color: var(--green); background: var(--green-soft); }
.response-check-summary > .warning { color: var(--orange); background: var(--orange-soft); }
.response-check-summary > .critical { color: var(--red); background: var(--red-soft); }
.job-accordion-row .compact-status { width: auto; margin-top: 5px; }
.pdf-comparison { white-space: nowrap; }
.date-time-stack { white-space: nowrap; }
.date-time-line { display: flex; flex-direction: column; gap: 2px; }
.date-time-line + .date-time-line { margin-top: 8px; padding-top: 8px; border-top: 1px solid #edf0f3; }
.main-date-time-stack .date-time-line + .date-time-line { margin-top: 5px; padding-top: 5px; }
.job-accordion-row .date-time-line + .date-time-line { margin-top: 3px; padding-top: 0; border-top: 0; }
.cell-check-line { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: center; column-gap: 5px; }
.cell-check-line > span:last-child { min-width: 0; }
.cell-check-slot { width: 14px; height: 14px; display: inline-grid; place-items: center; }
.cell-check-slot .pdf-check { margin-right: 0; }
.route-address.cell-check-line > span:last-child, .driver-vehicle.cell-check-line > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-check { width: 14px; height: 14px; box-sizing: border-box; display: inline-grid; place-items: center; margin-right: 5px; border-radius: 50%; font-size: 9px; font-weight: 800; }
.pdf-check.match { border: 1px solid var(--green); color: var(--green); background: transparent; }
.pdf-check.warning { border: 1px solid #e4b065; color: var(--orange); background: var(--orange-soft); }
.pdf-check.mismatch { border: 1px solid #d64545; color: #d64545; background: transparent; font-family: Arial, sans-serif; font-size: 12px; line-height: 1; }
.review-document-control { display: inline-flex; align-items: center; gap: 5px; }
.erp-data-confirmation { display: inline-flex; align-items: center; gap: 5px; min-height: 33px; padding: 0 9px; border: 1px solid #b9d3fb; border-radius: 8px; color: #174f9d; background: var(--blue-soft); font-size: 10px; font-weight: 700; cursor: pointer; }
.erp-data-confirmation input { margin: 0; accent-color: var(--blue); }
.erp-data-confirmation:has(input:disabled) { opacity: .65; cursor: default; }
.panel-footer { display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 0 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.pagination { display: flex; gap: 5px; }
.pagination button, .pagination b { min-width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #53606f; font-size: 10px; }
.pagination b { color: #fff; background: var(--blue); border-color: var(--blue); }
#page-jobs .panel-footer { min-height: 32px; padding: 0 8px; }
#page-jobs .pagination button, #page-jobs .pagination b { min-width: 24px; height: 24px; }

.section-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin: 5px 0 19px; }
.section-intro h2, .panel-heading h3, .comparison-title h3 { margin: 0; }
.section-intro h2 { font-size: 20px; }
.section-intro p, .panel-heading p, .comparison-title p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.directory-card { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: 1fr 1fr; column-gap: 13px; min-height: 94px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; box-shadow: 0 3px 13px rgba(32,49,68,.04); }
.directory-card:hover { border-color: #bad4fa; box-shadow: var(--shadow); }
.directory-card > span { grid-row: 1 / 3; width: 48px; height: 48px; display: grid; place-items: center; align-self: center; border-radius: 12px; color: var(--blue); background: var(--blue-soft); font-weight: 800; }
.directory-card strong { align-self: end; font-size: 13px; }
.directory-card small { color: var(--muted); }
.transport-suggestions-panel, #page-transport .directory-grid { margin-bottom: 17px; }
.transport-suggestions-table { min-width: 1000px; }
.transport-suggestions-table tbody tr { cursor: default; }
.transport-suggestions-table th:first-child { width: 34%; }
.table-input { width: 100%; min-width: 125px; height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 11px; }
.table-input:focus { outline: 2px solid #d8e7ff; border-color: #88b5f5; }
.number-input { font-family: Consolas, monospace; text-transform: uppercase; }
.transport-exceptions-list:empty { display: none; }
.empty-state { padding: 28px; color: var(--muted); text-align: center; }
.audit-list > .empty-state { display: block; text-align: center; }
.directory-preview { margin-top: 17px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; padding: 17px; border-bottom: 1px solid var(--line); }
.simple-list > div { display: flex; align-items: center; gap: 12px; padding: 13px 17px; border-bottom: 1px solid #edf0f3; }
.simple-list > div:last-child { border: 0; }
.simple-list > div > span:nth-child(2) { flex: 1; }
.simple-list strong, .simple-list small { display: block; }
.simple-list small { margin-top: 3px; color: var(--muted); }
.simple-list em { color: var(--green); font-size: 10px; font-style: normal; font-weight: 700; }
.simple-list em.muted { color: var(--orange); }
.company-logo { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 9px; color: #315273; background: #edf2f6; font-size: 10px; font-weight: 800; }

.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.kanban-column { min-height: 430px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #edf1f5; }
.kanban-column > header { display: flex; justify-content: space-between; padding: 4px 3px 12px; font-size: 12px; }
.kanban-column > header b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #dfe5eb; font-size: 10px; }
.request-card { margin-bottom: 10px; padding: 14px; border-left: 3px solid #8492a1; border-radius: 9px; background: #fff; box-shadow: 0 3px 9px rgba(34,49,66,.06); }
.request-card.blue-line { border-left-color: var(--blue); }
.request-card.green-line { border-left-color: var(--green); }
.request-card small, .request-card strong, .request-card span { display: block; }
.request-card small { color: var(--blue); font-size: 9px; font-weight: 700; }
.request-card strong { margin: 8px 0 5px; font-size: 12px; }
.request-card span { color: var(--muted); font-size: 10px; }
.request-card footer { margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }

.comparison-panel { padding: 20px; }
.comparison-title { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.order-code { display: inline-block; margin-bottom: 6px; color: var(--blue); font-size: 10px; font-weight: 800; }
.offer-row { display: grid; grid-template-columns: 24px 1.5fr .7fr .8fr auto; gap: 14px; align-items: center; padding: 16px 10px; border-bottom: 1px solid var(--line); }
.offer-row.best { margin: 10px -4px 0; padding-inline: 14px; border: 1px solid #bfe4d3; border-radius: 10px; background: #f5fbf8; }
.offer-row:last-child { border-bottom: 0; }
.offer-row div strong, .offer-row div small { display: block; }
.offer-row div small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.radio { width: 16px; height: 16px; border: 2px solid #aeb8c3; border-radius: 50%; }
.radio.selected { border: 5px solid var(--green); }
.price { font-size: 14px; }
.docs { font-size: 10px; font-weight: 650; }
.docs.ok { color: var(--green); }
.warning-text { color: var(--orange); }

.calendar-strip { display: flex; gap: 8px; margin-bottom: 15px; }
.calendar-strip button { width: 62px; height: 55px; border: 1px solid var(--line); border-radius: 10px; color: #344252; background: #fff; font-weight: 750; }
.calendar-strip button small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 500; }
.calendar-strip button.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.calendar-strip button.active small { color: #dce9ff; }
.timeline { padding: 12px 18px; }
.timeline-row { display: grid; grid-template-columns: 55px 20px 1fr auto; gap: 12px; align-items: center; min-height: 74px; border-bottom: 1px solid var(--line); }
.timeline-row:last-child { border: 0; }
.timeline-row time { font-size: 13px; font-weight: 800; }
.timeline-dot { width: 10px; height: 10px; border: 2px solid var(--blue); border-radius: 50%; box-shadow: 0 0 0 4px var(--blue-soft); }
.timeline-row strong, .timeline-row small { display: block; }
.timeline-row small { margin-top: 4px; color: var(--muted); }

.export-grid { display: grid; gap: 14px; }
.export-card { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.export-card.disabled { opacity: .65; }
.file-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: var(--green-soft); font-size: 11px; font-weight: 850; }
.export-card h3 { margin: 0; font-size: 14px; }
.export-card p { margin: 6px 0; color: #4f5d6c; font-size: 11px; }
.export-card small { color: var(--muted); }

.review-list { display: grid; gap: 12px; }
.review-section { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.review-section > summary { display: flex; align-items: center; min-height: 52px; padding: 0 17px; cursor: pointer; list-style: none; }
.review-section > summary::-webkit-details-marker { display: none; }
.review-section > summary::before { content: "›"; margin-right: 10px; color: var(--muted); font-size: 20px; transform: rotate(0); transition: transform .15s ease; }
.review-section[open] > summary::before { transform: rotate(90deg); }
.review-section > summary strong { flex: 1; font-size: 13px; }
.review-section > summary span { min-width: 26px; padding: 4px 8px; border-radius: 999px; color: var(--orange); background: var(--orange-soft); text-align: center; font-size: 10px; font-weight: 700; }
.review-section-list { display: grid; gap: 9px; padding: 0 11px 11px; border-top: 1px solid var(--line); }
.review-section-list > article:first-child, .review-section-list > .empty-state:first-child { margin-top: 11px; }
.review-list article { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 15px; padding: 17px; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 11px; background: #fff; }
.review-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--orange); background: var(--orange-soft); font-weight: 800; }
.review-list strong { font-size: 12px; }
.review-list p { margin: 5px 0; color: #505d6b; font-size: 11px; }
.review-list small { color: var(--muted); }
.review-context { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 7px 0; color: var(--muted); font-size: 10px; }
.review-context b { color: var(--text); font-weight: 650; }
.audit-list { padding: 8px 18px; }
.audit-list > div { display: grid; grid-template-columns: 46px 16px 1fr auto; gap: 12px; align-items: center; min-height: 73px; border-bottom: 1px solid var(--line); }
.audit-list > div:last-child { border: 0; }
.audit-list time { color: var(--muted); font-size: 10px; }
.audit-dot { width: 9px; height: 9px; border-radius: 50%; }
.blue-dot { background: var(--blue); }.green-dot { background: var(--green); }.orange-dot { background: var(--orange); }.gray-dot { background: #8793a0; }
.audit-list p { margin: 0; }
.audit-list strong, .audit-list small { display: block; }
.audit-list strong { font-size: 11px; }
.audit-list small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.audit-list em { color: var(--muted); font-size: 9px; font-style: normal; }

.modal-card { position: fixed; top: 50%; left: 50%; z-index: 71; width: min(960px, 94vw); max-height: 86vh; display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; box-shadow: 0 24px 60px rgba(18,33,49,.28); transform: translate(-50%, -50%) scale(.96); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.modal-card.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
#job-drawer { width: min(1400px, 98vw); height: min(820px, 92vh); }
#review-modal { width: min(1050px, 96vw); height: min(760px, 90vh); }
#erp-report-modal { width: min(1100px, 96vw); max-height: 90vh; }
#document-comparison-modal { z-index: 73; width: min(1400px, 98vw); height: min(880px, 94vh); }
#document-comparison-modal-backdrop { z-index: 72; }
.modal-card > header { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px; border-bottom: 1px solid var(--line); }
.modal-card h2 { margin: 0; font-size: 20px; }
.modal-card > header button { border: 0; background: transparent; color: #778391; font-size: 28px; }
.drawer-title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.status-picker { position: relative; }
.status-picker > .status { cursor: pointer; border: 0; font: inherit; font-size: 10px; font-weight: 700; }
.status-menu { position: absolute; top: 100%; right: 0; z-index: 80; margin-top: 8px; padding: 8px; display: none; flex-direction: column; gap: 6px; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(18,33,49,.22); }
.status-menu.open { display: flex; }
.status-menu .status { width: 100%; justify-content: flex-start; cursor: pointer; border: 0; font: inherit; font-size: 10px; font-weight: 700; }
.modal-card-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.modal-footer { display: flex; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); }
.excel-export-period { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.excel-export-period label span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.excel-export-period input { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; }
.excel-export-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.excel-export-hint, .excel-export-recipient { color: var(--muted); font-size: 11px; }
.excel-export-tree-header, .excel-export-client { display: grid; grid-template-columns: minmax(260px, 1fr) 110px 150px; align-items: center; gap: 12px; }
.excel-export-tree-header { padding: 9px 12px; color: var(--muted); background: #fafbfc; border: 1px solid var(--line); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.excel-export-group { border: 1px solid var(--line); border-top: 0; }
.excel-export-group summary { padding: 10px 12px; background: var(--blue-soft); color: #174f9d; cursor: pointer; font-size: 12px; font-weight: 700; }
.excel-export-client { min-height: 38px; padding: 7px 12px 7px 28px; border-top: 1px solid #edf0f3; font-size: 11px; }
.excel-export-client label { display: flex; align-items: center; justify-content: center; }
.excel-export-client input { accent-color: var(--blue); }
.excel-export-footer { gap: 8px; }
.erp-report-summary { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 18px; }
.erp-report-summary span { color: var(--muted); font-size: 11px; }
.erp-report-summary strong { color: var(--text); }
.erp-report-section { margin-top: 20px; }
.erp-report-section h3 { margin: 0 0 10px; font-size: 13px; }
.erp-report-table { width: 100%; border-collapse: collapse; }
.erp-report-table th, .erp-report-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; }
.erp-report-table th { color: var(--muted); background: #fafbfc; font-size: 9px; text-transform: uppercase; }
.erp-report-problem { color: #b15421; }
#drawer-content { padding-bottom: 82px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(10,22,35,.30); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.contacts-table { width: 100%; min-width: 0; border-collapse: collapse; }
.contacts-table th { padding: 12px 14px; color: #778391; background: #fafbfc; border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .35px; }
.contacts-table td { padding: 13px 14px; border-bottom: 1px solid #edf0f3; font-size: 12px; vertical-align: middle; }
.contacts-table tbody tr:last-child td { border-bottom: 0; }
.transport-orders-document-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.transport-orders-document-table th, .transport-orders-document-table td { padding: 11px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 11px; }
.transport-orders-document-table th { color: #596777; background: #fafbfc; font-size: 10px; }
.transport-orders-document-table th:nth-child(1) { width: 11%; }
.transport-orders-document-table th:nth-child(2) { width: 11%; }
.transport-orders-document-table th:nth-child(3) { width: 9%; }
.transport-orders-document-table th:nth-child(4) { width: 20%; }
.transport-orders-document-table th:nth-child(5) { width: 10%; }
.transport-orders-document-table th:nth-child(6) { width: 8%; }
.transport-orders-document-table th:nth-child(7) { width: 25%; }
.transport-orders-document-table th:nth-child(8) { width: 6%; }
.transport-orders-document-table td { overflow-wrap: anywhere; }
.transport-address-secondary { margin-top: 5px; padding-top: 5px; border-top: 1px solid #edf0f3; color: var(--muted); }
.modal-add-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.modal-add-form input[type="text"], .modal-add-form input:not([type]), .modal-add-form input[type="email"] { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; flex: 1 1 160px; min-width: 140px; }
.modal-add-form label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 16px; }
.detail-grid .detail-item { padding-bottom: 0; border-bottom: 0; }
.detail-grid .detail-item span { margin-bottom: 1px; }
.detail-grid .detail-item strong { font-size: 11px; line-height: 1.3; }
.detail-item { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.detail-item span, .detail-item strong { display: block; }
.detail-item span { margin-bottom: 5px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .35px; }
.detail-item strong { font-size: 12px; line-height: 1.4; }
.detail-item input, .detail-item textarea, .detail-item select,
.detail-section > input, .detail-section > select {
  width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid var(--line);
  border-radius: 8px; color: var(--text); background: #fff;
}
.detail-item textarea { min-height: 76px; resize: vertical; }
.detail-section > .button { margin: 8px 6px 0 0; }
.detail-section { margin-top: 22px; }
.detail-section.request-section { margin-top: 0; }
.detail-section h3 { margin: 0 0 11px; font-size: 13px; }
.request-recipients { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.request-recipients-wrap { margin-top: 10px; }
.request-recipients-wrap.collapsed { display: none; }
.detail-section > .request-recipients-open { display: block; width: 100%; margin: 12px 0 0; }
.request-rule-recipients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 12px; margin-top: 8px; }
.request-rule-recipients > div { min-width: 0; padding: 8px 9px; border-radius: 7px; background: #fafbfc; }
.request-rule-recipients strong, .request-rule-recipients small { display: block; overflow-wrap: anywhere; }
.request-rule-recipients strong { font-size: 10px; }
.request-rule-recipients small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.request-rule > .button { margin-top: 12px; }
.request-response-form-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.request-recipient-carrier + .request-recipient-carrier { border-top: 1px solid var(--line); }
.request-recipient-carrier-row { display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; background: #fafbfc; }
.request-recipient-carrier-row label { display: flex; flex: 1; align-items: center; gap: 8px; cursor: pointer; }
.request-recipient-carrier-row strong { font-size: 12px; }
.request-recipient-carrier-row > span { color: var(--muted); font-size: 10px; }
.request-recipient-toggle { width: 22px; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 17px; cursor: pointer; }
.request-recipient-contacts { padding: 2px 10px 5px 50px; }
.request-recipient-contacts label { display: grid; grid-template-columns: 18px minmax(160px, 1fr) minmax(180px, 1fr); align-items: center; gap: 7px; min-height: 26px; padding: 2px 0; cursor: pointer; }
.request-recipient-contacts span { font-size: 11px; }
.request-recipient-contacts small { color: var(--muted); font-size: 10px; }
.request-recipient-carrier.collapsed .request-recipient-contacts { display: none; }
#job-filters-search { width: 100%; height: 38px; padding: 0 10px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.filters-tree { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.filters-tree .request-recipient-contacts label { display: flex; align-items: center; gap: 7px; min-height: 26px; padding: 2px 0; }
.client-badges:empty { display: none; }
.client-badge-wrap { position: relative; }
.direction-flyout { position: absolute; top: 100%; left: 0; z-index: 25; display: none; grid-auto-flow: column; grid-template-rows: repeat(6, auto); grid-auto-columns: 200px; gap: 6px; width: 840px; margin-top: 0; padding: 14px 8px 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow); }
.client-badge-wrap.flyout-open .direction-flyout { display: grid; }
.direction-flyout .client-badge { width: 100%; text-align: left; }
#job-filters-button { position: relative; }
#job-filters-count:empty { display: none; }
#job-filters-count { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 700; }
.request-actions { position: absolute; right: 0; bottom: 0; left: 0; z-index: 4; display: flex; align-items: center; gap: 8px; min-height: 62px; padding: 0 22px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: #fff; }
@media (max-width: 760px) {
  .request-rule-recipients { grid-template-columns: 1fr; }
}
.review-report-summary { position: sticky; top: -20px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: -20px -22px 18px; padding: 14px 22px; border-bottom: 1px solid var(--line); color: var(--muted); background: #fff; box-shadow: 0 5px 12px rgba(18,33,49,.06); font-size: 11px; }
.review-report-section { margin-top: 18px; }
.review-report-section h3 { margin: 0 0 10px; font-size: 13px; }
.review-report-section h4 { margin: 16px 0 8px; font-size: 11px; }
.review-document-section { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.review-document-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-document-heading h3 { margin: 0; }
.review-fields-details { margin-top: 16px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.review-fields-details > summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; background: #fafbfc; }
.review-fields-details > summary::-webkit-details-marker { display: none; }
.review-fields-details > summary::before { content: "›"; color: var(--muted); font-size: 18px; transition: transform .15s ease; }
.review-fields-details[open] > summary::before { transform: rotate(90deg); }
.review-fields-details > summary strong { flex: 1; font-size: 11px; }
.review-fields-details > summary span { min-width: 24px; padding: 3px 7px; border-radius: 999px; color: var(--blue); background: #e8f2fc; text-align: center; font-size: 9px; font-weight: 700; }
.review-fields-details > .table-wrap, .review-fields-details > .empty-state { border-top: 1px solid var(--line); }
.review-report-section ul { margin: 0; padding: 12px 16px 12px 32px; border-radius: 9px; background: #f7f9fb; }
.review-report-section li + li { margin-top: 7px; }
.review-report-section li strong, .review-report-section li span { display: block; }
.review-report-section li span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.review-report-section.critical ul { color: var(--red); background: var(--red-soft); }
.review-document-issues.critical ul { margin: 0; color: var(--red); background: var(--red-soft); }
.review-report-section.warning ul { color: var(--orange); background: var(--orange-soft); }
.review-report-table { width: 100%; border-collapse: collapse; }
.review-report-table th, .review-report-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; }
.review-report-table th { color: var(--muted); background: #fafbfc; text-transform: uppercase; }
.review-result { font-weight: 700; }
.review-result.match { color: var(--green); }
.review-result.mismatch { color: var(--red); }
.review-result.warning { color: var(--orange); }
.erp-action-table th:last-child, .erp-action-table td:last-child { min-width: 280px; }
.erp-action-row.match td:nth-child(3), .erp-action-row.match td:nth-child(4) { color: var(--green); }
.erp-action-row.warning td:nth-child(3), .erp-action-row.warning td:nth-child(4) { color: var(--orange); }
.erp-action-row.mismatch td:nth-child(3), .erp-action-row.mismatch td:nth-child(4),
.erp-action-row.critical td:nth-child(3), .erp-action-row.critical td:nth-child(4) { color: var(--red); }
.erp-value-source { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.erp-bundle-action { margin-top: 10px; padding: 12px; border-radius: 9px; background: var(--blue-soft); }
.erp-bundle-action strong, .erp-bundle-action span { display: block; }
.erp-bundle-action span { margin-top: 4px; color: #40536a; font-size: 10px; }
.review-document-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.review-document-row > a { color: var(--blue); font-size: 11px; font-weight: 700; }
.review-document-row > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.document-comparison-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(420px, 1fr); gap: 16px; min-height: 0; overflow: hidden; }
.document-comparison-layout iframe { width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 9px; background: #f7f9fb; }
.document-comparison-pdf-empty { display: grid; place-items: center; height: 100%; border: 1px dashed var(--line); border-radius: 9px; }
.document-comparison-pdf-empty[hidden] { display: none; }
.document-comparison-layout aside { overflow-y: auto; padding-right: 4px; }
.document-comparison-layout aside h3 { margin: 0 0 10px; font-size: 13px; }
.document-comparison-summary { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; padding: 0 0 12px; border-bottom: 1px solid var(--line); color: var(--muted); background: #fff; box-shadow: 0 5px 10px rgba(18,33,49,.05); font-size: 10px; }
.document-comparison-block { margin-top: 18px; }
.correction-request-block textarea { width: 100%; min-height: 130px; margin-bottom: 10px; padding: 10px 12px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #fff; line-height: 1.5; }
.document-comparison-block .review-document-row { padding-top: 0; }
.document-comparison-issues { margin: 0 0 16px; padding: 12px 12px 12px 28px; border-radius: 9px; color: var(--red); background: var(--red-soft); }
.document-comparison-issues li + li { margin-top: 8px; }
.document-comparison-issues span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.document-comparison-issues.warning { color: var(--orange); background: var(--orange-soft); }
.document-comparison-field { padding: 11px 0; border-bottom: 1px solid var(--line); }
.document-comparison-field > strong { display: block; margin-bottom: 7px; font-size: 11px; }
.document-comparison-source { display: inline; margin-left: 8px; color: var(--muted); font-size: 9px; font-weight: 500; }
.document-comparison-values { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.document-comparison-values span { min-width: 0; padding: 8px; border-radius: 7px; background: #f7f9fb; font-size: 10px; overflow-wrap: anywhere; }
.document-comparison-values small { display: block; margin-bottom: 4px; color: var(--muted); }
.document-comparison-field.mismatch .document-comparison-values span:last-child { color: var(--red); background: var(--red-soft); }
.document-comparison-field.warning .document-comparison-values span:last-child { color: var(--orange); background: var(--orange-soft); }
.document-comparison-hidden-note { display: block; margin-top: 6px; color: var(--muted); }
.source-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.source-row span { color: var(--muted); }
.source-row em { color: var(--green); font-style: normal; font-weight: 650; }
.toast { position: fixed; right: 28px; bottom: 28px; z-index: 100; max-width: 360px; padding: 13px 16px; border-radius: 10px; color: #fff; background: #1f2e3f; box-shadow: var(--shadow); font-size: 11px; opacity: 0; transform: translateY(15px); pointer-events: none; transition: .2s ease; }
.toast.visible { opacity: 1; transform: none; }

.help-layout { display: grid; grid-template-columns: 262px minmax(0, 1fr); align-items: start; gap: 14px; }
.help-index { position: sticky; top: 16px; padding: 12px; }
.help-index h3 { margin: 8px 6px 6px; color: #778391; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .35px; }
.help-index h3:first-child { margin-top: 2px; }
.help-index > div { display: grid; gap: 2px; margin-bottom: 6px; }
.help-index-item { width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #445160; text-align: left; font-size: 12px; transition: .15s ease; }
.help-index-item:hover { background: #f2f6fc; color: var(--blue); }
.help-index-item.active { background: var(--blue-soft); color: var(--blue); font-weight: 650; }
.help-document { padding: 22px 26px; min-width: 0; font-size: 13px; line-height: 1.65; }
.help-document > *:first-child { margin-top: 0; }
.help-document h2 { margin: 0 0 14px; font-size: 20px; }
.help-document h3 { margin: 26px 0 9px; font-size: 15px; }
.help-document h4, .help-document h5, .help-document h6 { margin: 18px 0 7px; font-size: 13px; }
.help-document p { margin: 0 0 12px; }
.help-document ul, .help-document ol { margin: 0 0 12px; padding-left: 21px; }
.help-document li { margin-bottom: 5px; }
.help-document li > ul, .help-document li > ol { margin: 5px 0 0; }
.help-document code { padding: 1px 5px; border-radius: 5px; background: #f1f4f8; font-family: Consolas, "Courier New", monospace; font-size: 11.5px; }
.help-document pre { margin: 0 0 14px; padding: 12px 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #f9fafb; }
.help-document pre code { padding: 0; background: transparent; font-size: 11.5px; line-height: 1.5; }
.help-document blockquote { margin: 0 0 12px; padding: 9px 14px; border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; background: var(--blue-soft); }
.help-document hr { margin: 22px 0; border: 0; border-top: 1px solid var(--line); }
.help-document .table-wrap { margin-bottom: 14px; }
.help-table { width: 100%; border-collapse: collapse; }
.help-table th { padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; color: #778391; text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.help-table td { padding: 9px 12px; border-bottom: 1px solid #edf0f3; font-size: 12px; vertical-align: top; }
.help-document a { color: var(--blue); }
.help-doc-link { padding: 0; border: 0; background: transparent; color: var(--blue); font: inherit; text-decoration: underline; }
.help-check { color: var(--muted); }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 82px 1fr; }
  .sidebar { width: 82px; }
  .brand { justify-content: center; padding: 15px; }
  .brand > span:last-child, .nav-item span:nth-child(2), .nav-item b, .sidebar-footer span:not(.avatar):not(.state-dot) { display: none; }
  .nav-item { grid-template-columns: 1fr; justify-items: center; padding: 0; }
  .workspace { grid-column: 2; }
  .directory-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .document-comparison-layout { grid-template-columns: 1fr; overflow-y: auto; }
  .document-comparison-layout iframe { min-height: 55vh; }
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; }
  .sidebar-toggle { display: none; }
  .brand { min-height: 62px; justify-content: flex-start; }
  .brand > span:last-child { display: block; }
  .main-nav { display: flex; overflow-x: auto; padding: 8px; }
  .nav-item { min-width: 48px; width: auto; }
  .sidebar-footer { border-top: 0; }
  .connection-state { display: none; }
  .sidebar-actions .button.ghost { display: none; }
  .workspace { padding: 0 14px 30px; }
  .directory-grid, .kanban { grid-template-columns: 1fr; }
  .panel-toolbar { flex-wrap: wrap; }
  .search-box { min-width: 100%; }
  .date-range-filter { flex: 1; min-width: 180px; }
  .panel-toolbar select { flex: 1; min-width: 130px; }
  .offer-row { grid-template-columns: 22px 1fr auto; }
  .offer-row .docs, .offer-row .button { grid-column: 2 / 4; }
  .detail-grid { grid-template-columns: 1fr; }
  .job-request-history-header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .review-list article, .export-card { grid-template-columns: 48px 1fr; }
  .review-list .button, .export-card .button { grid-column: 2; justify-self: start; }
  .help-layout { grid-template-columns: 1fr; }
  .help-index { position: static; }
  .help-document { padding: 16px; }
}
