:root {
  --surface: #fff;
  --surface-2: #fff;
  --surface-3: #f5f5f5;
  --surface-accent: #f2f7ff;
  --text-primary: #222;
  --text-secondary: #383838;
  --text-muted: #636363;
  --text-disabled: #b7b7b7;
  --border: #dedede;
  --border-soft: #ededed;
  --accent: #011e60;
  --accent-hover: #0d2240;
  --accent-2: #032d8c;
  --accent-muted: #4a66a4;
  --danger: #d14141;
  --success: #43d663;
  --success-strong: #5ab544;
  --warning: #fd9644;
  --gold: #cc9d6a;
  --teal: #2fc49d;
  --shadow-sm: 0 2px 8px rgba(14, 29, 55, .06);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--surface);
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; font-size: 14px; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 76px; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  border-right: 1px solid var(--border-soft); background: #fff; padding: 18px 0 16px;
}
.brand {
  width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 20px;
  border-radius: 7px; background: #10233e; color: #fff; font-weight: 800; font-style: italic; font-size: 20px;
}
.rail-nav { display: flex; flex-direction: column; gap: 5px; width: 100%; align-items: center; }
.rail-button {
  width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 7px;
  background: transparent; color: #a3a9ad;
}
.rail-button svg { width: 20px; height: 20px; stroke-width: 1.8; }
.rail-button:hover { color: var(--accent); background: var(--surface-accent); }
.rail-button.active { color: var(--accent); background: var(--surface-accent); }
.help-button { margin-top: auto; }

.workspace { width: calc(100% - 76px); margin-left: 76px; }
.topbar {
  height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px;
  border-bottom: 1px solid var(--border-soft); background: #fff; position: sticky; top: 0; z-index: 8;
}
.global-search {
  width: 290px; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: var(--surface-3); border-radius: 7px; color: #9a9a9a;
}
.global-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text-primary); }
.global-search svg { width: 18px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .user-button {
  height: 38px; border: 1px solid var(--border-soft); border-radius: 7px; background: #fff; color: #5f6670;
}
.icon-button { width: 38px; display: grid; place-items: center; position: relative; }
.icon-button svg { width: 18px; }
.notice-button span { position: absolute; top: -7px; right: -5px; background: var(--accent-2); color: #fff; min-width: 18px; height: 18px; border-radius: 9px; font-size: 10px; display: grid; place-items: center; }
.user-button { display: flex; align-items: center; gap: 7px; padding: 0 8px 0 4px; }
.user-button > span { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: #e1f3f2; color: #0e5761; font-weight: 700; }
.user-button svg { width: 14px; }

.main-content { padding: 26px 30px 48px; max-width: 1680px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.breadcrumbs { color: var(--text-muted); font-size: 12px; margin-bottom: 7px; }
h1 { margin: 0; font-size: 30px; line-height: 1.2; }
h2 { margin: 0; font-size: 20px; }
h3 { margin: 0; font-size: 16px; }
.prototype-control { display: flex; padding: 3px; background: var(--surface-3); border-radius: 7px; }
.view-switch {
  height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 13px; border: 0;
  border-radius: 5px; color: var(--text-muted); background: transparent; font-weight: 600;
}
.view-switch svg { width: 16px; }
.view-switch.active { background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); }

.section-tabs { display: flex; gap: 28px; margin-top: 26px; border-bottom: 1px solid var(--border); }
.section-tab { position: relative; padding: 0 0 14px; border: 0; background: transparent; color: var(--text-secondary); font-weight: 600; }
.section-tab span { margin-left: 6px; color: var(--text-muted); font-size: 12px; font-weight: 500; }
.section-tab.active { color: var(--accent-2); }
.section-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent-2); }
.screen { padding-top: 24px; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.toolbar .search-field { width: 330px; }
.toolbar-spacer { flex: 1; }
.btn {
  min-height: 38px; border: 1px solid transparent; border-radius: 7px; padding: 0 14px; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; font-weight: 650; background: #fff; color: var(--text-primary);
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-3); }
.btn-danger { color: var(--danger); border-color: #f1caca; }
.btn-plain { border-color: transparent; padding-inline: 8px; color: var(--accent-2); }
.btn:disabled { color: var(--text-disabled); background: #fafafa; border-color: var(--border-soft); cursor: default; }

.field, .search-field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field-label { color: var(--text-secondary); font-size: 13px; font-weight: 550; }
.required::after { content: " *"; color: var(--danger); }
.input, .select, .textarea, .search-field input {
  width: 100%; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text-primary);
  min-height: 40px; padding: 9px 12px; outline: none;
}
.input:focus, .select:focus, .textarea:focus, .search-field input:focus { border-color: var(--accent-muted); box-shadow: 0 0 0 2px #edf2ff; }
.textarea { min-height: 82px; resize: vertical; }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 12px; bottom: 11px; width: 17px; color: var(--text-muted); }
.search-field input { padding-left: 38px; }
.field-hint { font-size: 12px; color: var(--text-muted); }
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 17px 18px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.data-table-wrap { position: relative; border: 1px solid var(--border-soft); border-radius: 7px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; }
.data-table { width: 100%; min-width: 1050px; border-collapse: collapse; table-layout: fixed; }
.data-table-plan { min-width: 2080px; }
.data-table-batches { min-width: 3300px; }
.data-table-cargo { min-width: 2320px; }
.data-table-acceptance { min-width: 1380px; }
.data-table-hired { min-width: 1980px; }
.data-table-hired th:nth-child(1) { width: 255px; }
.data-table-hired th:nth-child(2) { width: 116px; }
.data-table-hired th:nth-child(3) { width: 132px; }
.data-table-hired th:nth-child(4) { width: 220px; }
.data-table-hired thead tr:first-child th { text-align: center; }
.data-table-hired thead tr:first-child th:nth-child(-n+4) { text-align: left; }
.data-table-hired thead tr:first-child th[rowspan] { vertical-align: middle; }
.data-table-hired .date-group { height: 38px; padding: 7px 6px 4px; color: var(--text); border-left: 1px solid var(--border-soft); }
.data-table-hired .date-group strong { font-size: 12px; white-space: nowrap; }
.data-table-hired .shift-head { width: 76px; height: 34px; padding: 3px 7px 7px; text-align: center; border-left: 1px solid var(--border-soft); }
.data-table-hired .shift-head svg { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; }
.data-table-hired .shift-night { background: #f5f6f8; }
.data-table-hired .current-date { background: #eef4ff !important; color: var(--accent-2); }
.data-table-hired .weekend-date { background: #eaf3ff !important; color: #1a53b9; }
.data-table-hired .current-date.weekend-date { background: #deebff !important; }
.data-table-hired .hours-grid-cell { width: 76px; padding: 10px 7px; text-align: center; border-left: 1px solid var(--border-soft); }
.hours-input { width: 58px; height: 30px; padding: 0 7px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); text-align: right; font: inherit; }
.hours-input-wrap { position: relative; width: 66px; margin: 0 auto; }
.correction-marker { position: absolute; right: 0; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: #6d7480; pointer-events: none; }
.hours-input::placeholder { color: #bcc1c8; }
.hours-input:focus { outline: 2px solid rgba(26, 83, 185, .16); border-color: var(--accent-2); }
.site-cell { display: block; line-height: 1.35; }
.data-table.data-table-hired th:last-child, .data-table.data-table-hired td:last-child { position: static; right: auto; z-index: auto; box-shadow: none; }
.data-table-hired-records { min-width: 1640px; table-layout: fixed; }
.data-table-hired-records th, .data-table-hired-records td { padding-left: 10px; padding-right: 10px; }
.data-table-hired-records .record-col-day, .data-table-hired-records .record-col-night, .data-table-hired-records .record-number-cell { text-align: right; }
.data-table-hired-records .record-col-day .sort-button, .data-table-hired-records .record-col-night .sort-button { justify-content: flex-end; }
.data-table-hired-records th:first-child, .data-table-hired-records td:first-child { position: sticky; left: 0; z-index: 4; }
.data-table-hired-records th:last-child, .data-table-hired-records td:last-child { position: sticky; right: 0; z-index: 4; }
.hired-records-wrap { max-width: 100%; }
.hired-view-bar { display: flex; align-items: center; gap: 14px; margin: 18px 0 12px; }
.hired-view-bar > span { color: var(--text-muted); font-size: 13px; }
.hired-view-switcher, .period-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: #f4f5f7; }
.hired-view-switcher button, .period-toggle button { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 13px; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); font-weight: 650; }
.hired-view-switcher button svg { width: 15px; height: 15px; }
.hired-view-switcher button.active, .period-toggle button.active { background: #fff; color: var(--accent-2); box-shadow: var(--shadow-sm); }
.timesheet-period { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.timesheet-period > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.timesheet-period span { color: var(--text-muted); font-size: 12px; }
.period-toggle button { min-height: 30px; padding: 0 11px; font-size: 12px; }
.toolbar-period-toggle { flex: 0 0 auto; }
.toolbar-period-toggle button { min-height: 36px; }
.data-table th { height: 46px; padding: 0 13px; background: #fafafa; color: var(--text-muted); text-align: left; font-size: 12px; font-weight: 650; border-bottom: 1px solid var(--border); }
.sort-button { height: 45px; width: 100%; display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: inherit; font-weight: 650; text-align: left; }
.sort-button svg { width: 14px; height: 14px; color: #9aa0a6; stroke-width: 1.8; }
.sort-button:hover, .sort-button.active { color: var(--accent-2); }
.sort-button:hover svg, .sort-button.active svg { color: var(--accent-2); }
.actions-header { width: 150px; padding-right: 9px !important; }
.data-table-hired-records .actions-header { position: sticky; right: 0; z-index: 7; overflow: visible; text-align: right; white-space: nowrap; }
.column-settings-trigger { width: 30px; height: 30px; display: inline-grid; place-items: center; margin-left: 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: #68707a; vertical-align: middle; }
.column-settings-trigger svg { width: 16px; height: 16px; }
.column-settings-menu { position: absolute; z-index: 20; top: calc(100% + 7px); right: 5px; width: 270px; padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: 0 16px 42px rgba(14, 29, 55, .22); text-align: left; }
.column-settings-menu > strong { display: block; margin: 2px 5px 10px; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.column-settings-item { display: grid; grid-template-columns: 18px 18px 1fr; align-items: center; gap: 8px; min-height: 34px; padding: 4px 5px; border-radius: 5px; color: var(--text-primary); font-weight: 500; cursor: pointer; }
.column-settings-item:hover { background: var(--surface-3); }
.column-settings-item > svg { width: 16px; height: 16px; color: #8a9098; }
.column-settings-item input { width: 16px; height: 16px; accent-color: var(--accent-2); }
.column-settings-item.is-required { opacity: .65; cursor: default; }
.column-settings-reset { margin: 9px 5px 2px; padding: 0; border: 0; background: transparent; color: var(--text-muted); font-size: 12px; }
.column-settings-reset:hover { color: var(--accent-2); }
.data-table-plan .actions-header { width: 180px; }
.actions-header > span { vertical-align: middle; }
.table-settings { float: right; width: 30px; height: 30px; margin-top: 8px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: #68707a; }
.table-settings:hover { color: var(--accent-2); border-color: #b6c3de; }
.table-settings svg { width: 15px; height: 15px; }
.data-table td { min-height: 54px; padding: 12px 13px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; overflow-wrap: anywhere; }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover { background: #fbfdff; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table th:first-child, .data-table td:first-child { position: sticky; left: 0; z-index: 3; background: #fff; box-shadow: 7px 0 10px -10px rgba(14, 29, 55, .65); }
.data-table th:first-child { z-index: 5; background: #fafafa; }
.data-table th:last-child, .data-table td:last-child { position: sticky; right: 0; z-index: 3; background: #fff; box-shadow: -7px 0 10px -10px rgba(14, 29, 55, .65); }
.data-table th:last-child { z-index: 5; background: #fafafa; }
.data-table tbody tr:hover td:first-child, .data-table tbody tr:hover td:last-child { background: #fbfdff; }
.record-link { color: var(--accent-2); font-weight: 700; }
.cargo-record { display: flex; flex-direction: column; gap: 3px; }
.cargo-transport-number { color: var(--text-primary); font-size: 13px; font-weight: 650; line-height: 1.25; }
.cargo-record-type { color: #9299a3; font-size: 12px; font-weight: 400; line-height: 1.25; }
.receipt-source { display: inline-block; max-width: 160px; line-height: 1.35; }
.empty-operational-state {
  min-height: 150px; display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 28px; border: 1px dashed var(--border); background: #fafbfc; color: var(--text-muted); text-align: left;
}
.empty-operational-state > svg { width: 28px; height: 28px; color: #667085; flex: 0 0 auto; }
.empty-operational-state strong { display: block; margin-bottom: 4px; color: var(--text-primary); }
.empty-operational-state p { margin: 0; max-width: 620px; }
.acceptance-seal { display: inline-flex; align-items: center; gap: 7px; color: var(--text-primary); font-weight: 650; white-space: nowrap; }
.acceptance-seal svg { width: 15px; height: 15px; color: #5f6874; flex: 0 0 auto; }
.muted { color: var(--text-muted); }
.strong { font-weight: 700; }
.number { font-variant-numeric: tabular-nums; white-space: nowrap; }
.date-time { display: inline-flex; flex-direction: column; gap: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.date-time small { color: var(--text-muted); font-size: 12px; }
.row-actions { display: flex; justify-content: flex-end; align-items: center; gap: 5px; flex-wrap: wrap; }
.mini-button { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--border-soft); display: grid; place-items: center; background: #fff; color: #68707a; }
.mini-button svg { width: 15px; }
.row-primary-action { order: 2; width: 100%; min-height: 30px; padding: 5px 9px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 650; white-space: nowrap; }
.linked-records { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.linked-record { padding: 3px 7px; border: 0; border-radius: 12px; background: #edf2ff; color: var(--accent-2); font-size: 11px; font-weight: 650; white-space: nowrap; }
.document-link { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 7px; border: 1px solid var(--border-soft); border-radius: 5px; background: #fff; color: var(--accent-2); font-size: 11px; font-weight: 650; white-space: nowrap; }
.document-link svg { width: 14px; height: 14px; flex: none; }
.document-link span { overflow: hidden; text-overflow: ellipsis; }
.attention-state { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.attention-state svg { width: 14px; height: 14px; }
.attention-none { color: var(--text-muted); }
.attention-required { color: var(--danger); }
.context-menu { position: fixed; z-index: 40; width: 230px; padding: 6px; border: 1px solid var(--border); border-radius: 7px; background: #fff; box-shadow: 0 12px 32px rgba(14, 29, 55, .18); }
.context-menu button { width: 100%; min-height: 36px; display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 0; border-radius: 5px; background: #fff; color: var(--text-primary); text-align: left; }
.context-menu button:hover { background: var(--surface-3); }
.context-menu button.danger { color: var(--danger); }
.context-menu svg { width: 16px; height: 16px; }
.context-divider { height: 1px; margin: 5px 4px; background: var(--border-soft); }

.hired-cancel-layer { z-index: 70; display: grid; place-items: center; padding: 20px; }
.hired-cancel-modal { position: relative; width: min(100%, 500px); display: flex; gap: 16px; padding: 24px; border-radius: 10px; background: #fff; box-shadow: 0 20px 60px rgba(10, 24, 46, .24); }
.hired-cancel-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #fdecec; color: var(--danger); }
.hired-cancel-icon svg { width: 22px; height: 22px; }
.hired-cancel-content { min-width: 0; flex: 1; }
.hired-cancel-content h2 { margin: 1px 0 7px; font-size: 20px; }
.hired-cancel-content > p { margin: 0 0 18px; color: var(--text-muted); line-height: 1.45; }
.hired-cancel-content .field { gap: 7px; }
.hired-cancel-reason { min-height: 96px; resize: vertical; }
.hired-cancel-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.btn-danger { border-color: var(--danger); background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.95); }
.btn-danger:disabled { border-color: #e1e3e6; background: #e8e9eb; color: #989da4; cursor: not-allowed; filter: none; }

.label { display: inline-flex; align-items: center; max-width: 100%; min-height: 25px; padding: 4px 9px; border-radius: 5px; font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; }
.label-text { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.label-blue { color: #173f8f; background: #edf3ff; }
.label-green { color: #287a3a; background: #eaf8ed; }
.label-orange { color: #a0541d; background: #fff1e6; }
.label-red { color: #a62f2f; background: #fdecec; }
.label-gray { color: #616870; background: #f0f1f2; }
.label-teal { color: #146d62; background: #e7f8f4; }

.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border-soft); border-radius: 7px; margin-bottom: 18px; overflow: hidden; }
.summary-item { padding: 15px 17px; border-right: 1px solid var(--border-soft); background: #fff; }
.summary-item:last-child { border-right: 0; }
.summary-item small { display: block; color: var(--text-muted); margin-bottom: 7px; }
.summary-item strong { font-size: 19px; }

.arrival-forecast { margin: 0 0 18px; border: 1px solid var(--border-soft); border-radius: 7px; background: #fff; overflow: hidden; }
.arrival-forecast-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 15px 17px; border-bottom: 1px solid var(--border-soft); }
.arrival-forecast-head h3 { margin: 0 0 4px; font-size: 15px; }
.arrival-forecast-head p { margin: 0; color: var(--text-muted); font-size: 12px; }
.arrival-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.arrival-day { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 13px 17px; border-right: 1px solid var(--border-soft); }
.arrival-day:last-child { border-right: 0; }
.arrival-day small, .arrival-day span { color: var(--text-muted); font-size: 11px; }
.arrival-day strong { font-size: 15px; }
.arrival-day.urgent { box-shadow: inset 3px 0 0 var(--warning); background: #fffaf5; }
.arrival-balance { display: flex; align-items: center; gap: 10px; padding: 11px 17px; border-top: 1px solid var(--border-soft); background: #f7f9fc; color: #4f5864; font-size: 12px; }
.arrival-balance > svg { width: 18px; height: 18px; color: var(--accent-2); flex: none; }
.arrival-balance span { flex: 1; }

.modal-open { overflow: hidden; }
.modal-layer { position: fixed; inset: 0; z-index: 30; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(20, 25, 32, .48); cursor: default; }
.form-modal { position: absolute; inset: 0 0 0 auto; width: min(74vw, 1380px); display: flex; flex-direction: column; background: #fff; box-shadow: -12px 0 36px rgba(10, 24, 46, .18); }
.form-modal-header { flex: none; min-height: 84px; display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--border-soft); background: #fff; z-index: 2; }
.form-modal-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: #fff; }
.form-modal-footer { flex: none; min-height: 76px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--border); background: #fff; box-shadow: 0 -8px 24px rgba(14, 29, 55, .06); z-index: 2; }
.modal-close { position: absolute; left: -28px; top: 20px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text-primary); box-shadow: var(--shadow-sm); }
.modal-close svg { width: 20px; height: 20px; }
.back-button { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 6px; display: grid; place-items: center; background: #fff; }
.back-button svg { width: 17px; }
.form-header-title { min-width: 0; }
.form-header-title p { margin: 5px 0 0; color: var(--text-muted); font-size: 12px; }
.form-header-actions { margin-left: auto; display: flex; gap: 9px; }
.status-progress { display: flex; align-items: center; gap: 0; margin: 18px 20px 0; overflow-x: auto; }
.status-step { display: flex; align-items: center; color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.status-step::after { content: ""; width: 28px; height: 1px; background: var(--border); margin: 0 8px; }
.status-step:last-child::after { display: none; }
.status-step b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #eee; margin-right: 6px; font-size: 11px; }
.status-step.done { color: var(--accent-2); }
.status-step.done b { background: var(--accent-2); color: #fff; }
.status-step.current { color: var(--text-primary); font-weight: 650; }
.status-step.current b { background: var(--warning); color: #fff; }
.inner-tabs { display: flex; gap: 22px; margin: 20px 20px 0; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: thin; }
.inner-tab { flex: none; white-space: nowrap; padding: 0 0 11px; border: 0; background: transparent; color: var(--text-muted); font-weight: 600; }
.inner-tab.active { color: var(--accent-2); border-bottom: 2px solid var(--accent-2); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.related-table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--border-soft); border-radius: 7px; }
.related-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.related-table th { padding: 11px 13px; background: #fafafa; color: var(--text-muted); font-size: 12px; text-align: left; border-bottom: 1px solid var(--border); }
.related-table td { padding: 12px 13px; border-bottom: 1px solid var(--border-soft); }
.related-table tr:last-child td { border-bottom: 0; }
.cargo-units-editor { grid-column: span 12; min-width: 0; margin-top: 4px; }
.cargo-units-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.cargo-units-head small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 12px; font-weight: 400; }
.cargo-units-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 7px 7px 0 0; }
.cargo-units-table { width: 100%; min-width: 1280px; border-collapse: collapse; table-layout: fixed; }
.cargo-units-table th { padding: 10px 8px; background: #fafafa; color: var(--text-muted); font-size: 11px; font-weight: 650; text-align: left; border-bottom: 1px solid var(--border); }
.cargo-units-table td { padding: 7px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.cargo-units-table tr:last-child td { border-bottom: 0; }
.cargo-units-table th:nth-child(1), .cargo-units-table td:nth-child(1) { width: 110px; }
.cargo-units-table th:nth-child(2), .cargo-units-table td:nth-child(2) { width: 125px; }
.cargo-units-table th:nth-child(3), .cargo-units-table td:nth-child(3) { width: 135px; }
.cargo-units-table th:nth-child(4), .cargo-units-table td:nth-child(4) { width: 90px; }
.cargo-units-table th:nth-child(5), .cargo-units-table td:nth-child(5) { width: 190px; }
.cargo-units-table th:nth-child(6), .cargo-units-table td:nth-child(6), .cargo-units-table th:nth-child(7), .cargo-units-table td:nth-child(7) { width: 150px; }
.cargo-units-table th:nth-child(8), .cargo-units-table td:nth-child(8) { width: 125px; }
.cargo-units-table th:last-child, .cargo-units-table td:last-child { width: 48px; text-align: center; }
.cargo-cell-input { width: 100%; height: 36px; padding: 0 9px; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: var(--text-primary); font: inherit; font-size: 12px; }
.cargo-cell-input:focus { outline: 2px solid rgba(25, 74, 151, .14); border-color: var(--accent-2); }
.cargo-units-summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 10px 12px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 7px 7px; background: #fafcff; color: var(--text-muted); font-size: 11px; }
.cargo-units-summary span:last-child { display: flex; align-items: center; gap: 6px; }
.cargo-units-summary svg { width: 14px; height: 14px; color: var(--accent-2); flex: none; }
.history-list { display: flex; flex-direction: column; }
.history-item { position: relative; display: flex; gap: 12px; padding: 0 0 22px; }
.history-item::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 0; width: 1px; background: var(--border); }
.history-item:last-child::before { display: none; }
.history-dot { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 4px; border-radius: 50%; background: var(--accent-2); flex: none; }
.history-item p { margin: 5px 0 0; color: var(--text-muted); font-size: 12px; }
.vehicle-link { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--accent-2); text-align: left; }
.vehicle-link span { color: var(--text-muted); font-size: 12px; }
.registration-number { display: inline-flex; padding: 5px 8px; border: 1px solid #c8c8c8; border-radius: 4px; background: #fff; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
.hours-cell { font-variant-numeric: tabular-nums; font-weight: 650; }
.source-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 5px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.source-badge svg { width: 14px; height: 14px; }
.source-autograph { color: #235b8f; background: #edf5fd; }
.source-manual { color: #76541c; background: #fff7e8; }
.hired-card-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--border-soft); border-radius: 7px 7px 0 0; }
.hired-card-head h2 { margin-top: 3px; }
.hired-card-head p { margin: 5px 0 0; color: var(--text-muted); }
.card-eyebrow { color: var(--text-muted); font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.card-head-meta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hired-tabs { margin: 0; padding: 20px 20px 0; border-inline: 1px solid var(--border-soft); }
.tab-count { display: inline-grid; min-width: 20px; height: 20px; margin-left: 5px; place-items: center; border-radius: 10px; background: #eef2f8; color: var(--text-muted); font-size: 11px; }
[data-hired-panel] { border: 1px solid var(--border-soft); border-top: 0; border-radius: 0 0 7px 7px; }
.hours-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; padding: 11px 13px; border-radius: 6px; background: #f3f7ff; color: #36557f; font-size: 12px; }
.hours-note svg { width: 17px; flex: none; }
.source-message-section { background: #fcfcfc; }
.source-message-section .input[readonly], .source-message { color: #535b66; background: #f5f5f5; }
.source-message { min-height: 170px; line-height: 1.55; }
.hired-form-modal { width: min(74vw, 1380px); }
.hired-form-modal .card-head-meta { margin-left: auto; }
.autofill-hint { min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #d8e5f7; border-radius: 6px; background: #f3f7ff; color: #36557f; font-size: 12px; }
.autofill-hint svg { width: 16px; height: 16px; flex: none; }
.searchable-select { position: relative; }
.searchable-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.searchable-select-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.searchable-select-trigger svg { width: 16px; height: 16px; flex: none; transition: transform .15s ease; }
.searchable-select.open .searchable-select-trigger svg { transform: rotate(180deg); }
.searchable-select-menu { position: absolute; z-index: 12; top: calc(100% + 5px); left: 0; right: 0; display: none; padding: 8px; border: 1px solid var(--border); border-radius: 7px; background: #fff; box-shadow: 0 12px 30px rgba(14, 29, 55, .17); }
.searchable-select.open .searchable-select-menu { display: block; }
.searchable-select-search { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted); }
.searchable-select-search svg { width: 16px; height: 16px; flex: none; }
.searchable-select-search input { width: 100%; border: 0; outline: 0; font: inherit; }
.searchable-select-options { max-height: 230px; margin-top: 7px; overflow-y: auto; }
.searchable-select-option { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 9px 10px; border: 0; border-radius: 5px; background: #fff; text-align: left; }
.searchable-select-option:hover, .searchable-select-option.selected { background: #f1f5fb; }
.searchable-select-option span { font-weight: 650; }
.searchable-select-option small { color: var(--text-muted); }
.searchable-select-caption { padding: 7px 10px 2px; color: var(--text-muted); font-size: 11px; }
.create-related-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; padding: 0; border: 0; background: transparent; color: var(--accent-2); font-weight: 650; font-size: 12px; }
.create-related-link svg { width: 14px; height: 14px; }
.nested-modal-layer { z-index: 60; }
.hired-site-modal { width: min(64vw, 1100px); }
.vehicle-create-note { display: flex; align-items: center; gap: 8px; margin-top: -2px; padding: 10px 12px; border-radius: 6px; background: #fff8e8; color: #76541c; font-size: 12px; }
.vehicle-create-note svg { width: 16px; height: 16px; flex: none; }
.form-group-divider { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.form-group-divider strong { font-size: 14px; }
.form-group-divider span { color: var(--text-muted); font-size: 12px; }
.change-log { border: 1px solid var(--border-soft); border-radius: 7px; overflow: hidden; }
.change-log-row { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(110px, auto) 20px minmax(150px, auto); align-items: center; gap: 14px; padding: 15px 16px; border-bottom: 1px solid var(--border-soft); }
.change-log-row:last-child { border-bottom: 0; }
.change-log-row small { display: block; margin-top: 5px; color: var(--text-muted); }
.change-log-row > svg { width: 16px; color: var(--text-muted); }
.old-value { color: var(--text-muted); text-decoration: line-through; }
.new-value { color: #24723a; font-weight: 650; }
.system-event { grid-template-columns: 1fr auto; background: #fafcff; }
.form-section { padding: 22px 20px; border-bottom: 1px solid var(--border-soft); }
.form-section:last-child { border-bottom: 0; }
.form-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 17px; }
.form-section-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.application-current { margin-bottom: 12px; }
.form-section-head p { margin: 5px 0 0; color: var(--text-muted); font-size: 12px; }

.inline-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 6px; background: #fff8ef; color: #80451a; }
.inline-alert svg { width: 18px; flex: none; }
.info-alert { background: #f3f7ff; color: #36557f; }
.receipt-origin-banner { display: flex; align-items: center; gap: 14px; margin: 20px 20px 0; padding: 15px 17px; border: 1px solid #bfe1c7; border-radius: 7px; background: #f4fbf6; }
.receipt-origin-banner.compact { margin-bottom: 0; }
.receipt-origin-banner > div:nth-child(2) { flex: 1; }
.receipt-origin-banner p { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; }
.receipt-origin-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 6px; background: #e3f4e8; color: #287a3a; }
.receipt-origin-icon svg { width: 20px; height: 20px; }
.inventory-lines .related-table { min-width: 940px; }
.table-input { width: 100%; min-width: 112px; height: 34px; padding: 0 9px; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: var(--text-primary); font: inherit; }
.table-input:focus { outline: 2px solid rgba(25, 74, 151, .14); border-color: var(--accent-2); }
.detail-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: 6px; overflow: hidden; }
.seal-check-list { display: grid; gap: 14px; }
.seal-check-card { border: 1px solid var(--border); border-radius: 7px; padding: 16px; background: #fff; }
.seal-check-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.seal-check-head strong { display: block; font-size: 14px; }
.seal-check-head small { display: block; margin-top: 4px; color: var(--text-muted); }
.seal-state-group { display: flex; gap: 7px; flex-wrap: wrap; margin: 14px 0; }
.seal-state { min-height: 34px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); font-weight: 600; cursor: pointer; }
.seal-state.active { border-color: var(--primary); color: var(--primary); background: #f2f6ff; }
.seal-evidence { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 14px; }
.seal-photo { min-height: 132px; border: 1px dashed #9eb5dc; border-radius: 6px; background: #f8faff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--primary); padding: 14px; }
.seal-photo.has-photo { border-style: solid; background: #eef8f1; color: #217a45; }
.seal-photo svg { width: 26px; height: 26px; margin-bottom: 8px; }
.seal-photo span { font-weight: 700; }
.seal-photo small { margin-top: 4px; color: var(--text-muted); }
.seal-recognition { border: 1px solid var(--border-soft); border-radius: 6px; padding: 14px; }
.seal-recognition label { color: var(--text-muted); font-size: 12px; }
.seal-number { margin: 6px 0; font-size: 18px; font-weight: 700; }
.seal-recognition p { min-height: 34px; margin: 0 0 12px; color: var(--text-muted); font-size: 12px; }
.vehicle-evidence { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 16px; margin: 18px 0 24px; padding: 16px; border: 1px solid var(--border); border-radius: 7px; background: #fff; }
.vehicle-photo { min-height: 160px; border: 1px dashed #9eb5dc; border-radius: 6px; background: #f8faff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--primary); padding: 14px; }
.vehicle-photo.has-photo { border-style: solid; background: #eef8f1; color: #217a45; }
.vehicle-photo svg { width: 30px; height: 30px; margin-bottom: 8px; }
.vehicle-photo span { font-weight: 700; }
.vehicle-photo small { margin-top: 5px; color: var(--text-muted); }
.vehicle-evidence h4 { margin: 4px 0 7px; font-size: 15px; }
.vehicle-evidence p { margin: 0 0 14px; color: var(--text-muted); }
.vehicle-damage { margin-top: 16px; }
.seal-section-title { margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.delay-value { color: #b54708; }
.detail-item { background: #fff; padding: 13px 14px; }
.detail-item small { display: block; color: var(--text-muted); margin-bottom: 5px; }
.requisites-block { margin-top: 18px; border: 1px solid var(--border-soft); border-radius: 7px; overflow: hidden; }
.requisites-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); background: #fafafa; }
.requisites-head small { display: block; margin-top: 4px; color: var(--text-muted); }
.requisites-grid { border: 0; border-radius: 0; }
.requisites-grid .detail-item { min-height: 76px; }
.requisites-grid strong { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.file-row:last-child { border-bottom: 0; }
.file-icon { width: 34px; height: 34px; display: grid; place-items: center; background: var(--surface-accent); color: var(--accent-2); border-radius: 6px; }
.file-icon svg { width: 17px; }
.file-meta { flex: 1; }
.file-meta small { display: block; color: var(--text-muted); margin-top: 3px; }
.dropzone { border: 1px dashed #aab8d2; border-radius: 6px; min-height: 88px; display: grid; place-items: center; text-align: center; color: var(--text-muted); background: #fbfdff; }
.dropzone strong { color: var(--accent-2); }
.supplier-document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.supplier-document-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.supplier-document { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 7px; }
.supplier-document-title { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.supplier-document-title small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 11px; }
.supplier-document .file-row { min-width: 0; border-top: 1px solid var(--border-soft); }
.supplier-document .file-meta { min-width: 0; }
.supplier-document .file-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.supplier-upload { margin-top: 12px; }
.supplier-documents-note { margin-top: 14px; background: #f3f7ff; color: #36557f; }
.notice-import-section { padding: 22px 20px 0; }
.notice-import-zone { width: 100%; min-height: 112px; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px dashed #aab8d2; border-radius: 7px; background: #fbfdff; color: var(--text-primary); text-align: left; }
.notice-import-zone:hover { border-color: var(--accent-muted); background: var(--surface-accent); }
.notice-import-zone > span:nth-child(2) { flex: 1; }
.notice-import-zone strong { display: block; margin-bottom: 6px; font-size: 15px; }
.notice-import-zone small { display: block; color: var(--text-muted); line-height: 1.45; }
.notice-import-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 6px; background: #edf3ff; color: var(--accent-2); }
.notice-import-icon svg { width: 21px; height: 21px; }
.manual-divider { display: flex; align-items: center; gap: 12px; margin: 17px 0 0; color: var(--text-muted); font-size: 12px; }
.manual-divider::before, .manual-divider::after { content: ""; height: 1px; flex: 1; background: var(--border-soft); }
.notice-import-result { display: flex; align-items: center; gap: 14px; margin: 22px 20px 0; padding: 14px; border: 1px solid #bfe1c7; border-radius: 7px; background: #f4fbf6; }
.notice-import-result > div:nth-child(2) { flex: 1; }
.notice-import-result p { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; }
.notice-import-alert { margin: 12px 20px 0; }
.scenario-section { padding: 22px 20px; border-bottom: 1px solid var(--border-soft); }
.scenario-section > div:first-child p { margin: 5px 0 15px; color: var(--text-muted); font-size: 12px; }
.scenario-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scenario-option { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--text-primary); text-align: left; }
.scenario-option:hover { border-color: #9fb2d8; }
.scenario-option.active { border-color: var(--accent-2); background: var(--surface-accent); box-shadow: inset 0 0 0 1px var(--accent-2); }
.scenario-option > svg { width: 20px; color: var(--accent-2); flex: none; }
.scenario-option span { display: flex; flex-direction: column; gap: 4px; }
.scenario-option small { color: var(--text-muted); }
.accounting-search-action { display: flex; align-items: flex-end; padding-bottom: 1px; }
.accounting-search-action .btn { min-height: 42px; }
.accounting-document-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.generated-document { display: flex; align-items: center; gap: 14px; margin: 16px 0; padding: 14px; border: 1px solid #bfe1c7; border-radius: 7px; background: #f4fbf6; }
.generated-document-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 6px; background: #dff4e5; color: #267a3d; }
.generated-document-icon svg { width: 21px; }
.generated-document-info { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.generated-document-info span, .generated-document-info small { color: var(--text-muted); font-size: 12px; }
.generated-document-actions { display: flex; gap: 8px; flex: none; }
.cargo-products-editor { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: 6px; }
.cargo-products-editor .related-table { min-width: 760px; }
.cargo-products-editor th:last-child, .cargo-products-editor td:last-child { width: 48px; text-align: center; }
.deferred-documents { margin-top: 16px; background: #f7f8fa; color: #555f6d; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 18px; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--accent-2); }
.screen-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: var(--text-muted); font-size: 12px; }
.pagination { display: flex; gap: 5px; }
.pagination button { width: 32px; height: 32px; border: 1px solid var(--border-soft); background: #fff; border-radius: 5px; }
.pagination button.active { background: var(--accent); color: #fff; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; min-width: 280px; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 7px; background: #173629; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.18); transform: translateY(100px); opacity: 0; transition: .2s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 19px; color: #6ee187; }

@media (max-width: 1260px) {
  .main-content { padding-inline: 22px; }
  .data-table th, .data-table td { padding-inline: 9px; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .summary-item:nth-child(2) { border-right: 0; }
  .summary-item:nth-child(-n+2) { border-bottom: 1px solid var(--border-soft); }
}

@media (max-width: 900px) {
  .vehicle-evidence, .seal-evidence { grid-template-columns: 1fr; }
  .sidebar { width: 60px; }
  .workspace { width: calc(100% - 60px); margin-left: 60px; }
  .rail-button { width: 38px; height: 38px; }
  .topbar { height: 64px; padding: 0 16px; }
  .form-modal { width: calc(100% - 36px); }
  .modal-close { left: 10px; top: 18px; }
  .form-modal-header { padding-left: 70px; }
  .supplier-document-grid { grid-template-columns: 1fr; }
  .global-search { width: min(250px, 42vw); }
  .topbar-actions .icon-button:nth-child(-n+2) { display: none; }
  .main-content { padding: 20px 16px 40px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .prototype-control { width: 100%; overflow-x: auto; }
  .view-switch { flex: 1; white-space: nowrap; }
  .section-tabs { gap: 22px; overflow-x: auto; }
  .section-tab { white-space: nowrap; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .search-field { width: 100%; }
  .toolbar .select { width: calc(50% - 5px) !important; }
  .toolbar-spacer { display: none; }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .form-header { align-items: flex-start; flex-wrap: wrap; }
  .form-header-actions { width: 100%; margin-left: 50px; }
  .form-header-actions .btn { flex: 1; }
  .status-progress, .inner-tabs { overflow-x: auto; padding-bottom: 2px; }
  .inner-tab, .status-step { flex: none; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid > [class*="span-"] { grid-column: span 1; }
  .form-grid > .span-8, .form-grid > .span-12 { grid-column: 1 / -1; }
  .detail-list { grid-template-columns: 1fr 1fr; }
  .seal-evidence { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .sidebar { display: none; }
  .workspace { width: 100%; margin-left: 0; }
  .global-search { width: 190px; }
  .user-button i { display: none; }
  h1 { font-size: 25px; }
  .summary-strip, .form-grid, .detail-list { grid-template-columns: 1fr; }
  .summary-item { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .summary-item:last-child { border-bottom: 0; }
  .form-grid > [class*="span-"] { grid-column: 1; }
  .form-section { padding-inline: 14px; }
  .form-section-head { flex-direction: column; }
}
.input-readonly { background:#f7f8fa; color:#555f6d; }
.application-readiness { margin-bottom:16px; }
.is-hidden { display: none !important; }
.application-fresh-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #24773d;
  font-size: 13px;
  font-weight: 700;
}
.application-fresh-state svg { width: 17px; height: 17px; }
