    :root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #162237; background: #f3f6fa; font-synthesis: none; }
    * { box-sizing: border-box; }
    body { margin: 0; min-height: 100vh; background: #f3f6fa; }
    button, input, select { font: inherit; }
    button { cursor: pointer; }
    .hidden { display: none !important; }
    .loading { min-height: 100vh; display: grid; place-items: center; color: #5d6b7e; }
    .spinner { width: 28px; height: 28px; margin: 0 auto 12px; border: 3px solid #dfe7f0; border-top-color: #146fe8; border-radius: 50%; animation: spin .8s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); background: #fff; }
    .login-visual { position: relative; overflow: hidden; min-height: 100vh; padding: clamp(36px, 6vw, 84px); color: white; background: radial-gradient(circle at 17% 12%, rgba(31,126,255,.32), transparent 30%), radial-gradient(circle at 82% 86%, rgba(55,218,170,.18), transparent 30%), #0b1729; }
    .login-visual::after { content: ""; position: absolute; width: 560px; height: 560px; right: -220px; top: 18%; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018); }
    .brand { display: flex; align-items: center; gap: 13px; font-weight: 760; letter-spacing: -.02em; }
    .brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #1677ff; color: white; font-size: 13px; font-weight: 850; box-shadow: 0 10px 30px rgba(22,119,255,.34); }
    .visual-copy { position: relative; z-index: 1; max-width: 690px; margin-top: clamp(110px, 18vh, 210px); }
    .eyebrow { color: #68a8ff; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; }
    .visual-copy h1 { max-width: 620px; margin: 20px 0 24px; font-size: clamp(44px, 5.4vw, 76px); line-height: .98; letter-spacing: -.065em; }
    .visual-copy p { max-width: 590px; margin: 0; color: #b7c3d6; font-size: 18px; line-height: 1.7; }
    .feature-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; }
    .feature { padding: 10px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #dce6f4; background: rgba(255,255,255,.045); font-size: 13px; }
    .login-panel { display: grid; place-items: center; padding: 44px; }
    .login-card { width: min(440px, 100%); }
    .mobile-brand { display: none; margin-bottom: 48px; color: #162237; }
    .login-card h2 { margin: 0; font-size: 34px; letter-spacing: -.045em; }
    .login-card > p { margin: 13px 0 34px; color: #657287; line-height: 1.65; }
    label { display: block; margin-bottom: 9px; color: #2d3b50; font-size: 13px; font-weight: 700; }
    input { width: 100%; height: 48px; padding: 0 15px; border: 1px solid #d7dfeb; border-radius: 11px; outline: none; color: #152239; background: #fff; transition: border .2s, box-shadow .2s; }
    input:focus { border-color: #1677ff; box-shadow: 0 0 0 4px rgba(22,119,255,.11); }
    .primary { width: 100%; height: 52px; margin-top: 14px; border: 0; border-radius: 12px; color: white; background: #146fe8; font-weight: 760; box-shadow: 0 12px 24px rgba(20,111,232,.2); }
    .primary:hover { background: #0c63d6; }
    .primary:disabled { opacity: .6; cursor: wait; }
    .message { min-height: 24px; margin-top: 16px; color: #526176; font-size: 13px; line-height: 1.5; }
    .message.error { color: #b42318; }
    .otp-box { margin-top: 18px; padding: 17px; border: 1px solid #dfe7f0; border-radius: 12px; background: #f8fafc; }
    .otp-box input { letter-spacing: .22em; text-align: center; font-size: 19px; font-weight: 750; }
    .otp-button { width: 100%; margin-top: 10px; padding: 11px; border: 1px solid #cbd9e9; border-radius: 10px; color: #175fae; background: white; font-weight: 740; }
    .security-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; padding-top: 22px; border-top: 1px solid #edf0f4; color: #7a8799; font-size: 12px; line-height: 1.55; }
    .app { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
    .sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; color: #d8e2f0; background: #0b1729; overflow: auto; }
    .sidebar .brand { padding: 0 8px; color: white; }
    .portal-pill { display: inline-flex; margin: 27px 8px 13px; padding: 6px 9px; border-radius: 7px; color: #72aefc; background: rgba(22,119,255,.13); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
    .nav { display: grid; gap: 3px; padding-bottom: 165px; }
    .nav button { display: flex; gap: 11px; align-items: center; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; color: #93a3b9; background: transparent; text-align: left; }
    .nav button.active, .nav button:hover { color: white; background: rgba(255,255,255,.075); }
    .nav svg { flex: 0 0 auto; width: 17px; height: 17px; }
    .sidebar-foot { position: absolute; left: 18px; right: 18px; bottom: 22px; }
    .user-mini { padding: 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.035); }
    .user-mini strong, .user-mini span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .user-mini strong { color: white; font-size: 13px; }
    .user-mini span { margin-top: 4px; color: #7f90a8; font-size: 11px; }
    .signout { width: 100%; margin-top: 7px; padding: 9px 12px; border: 0; border-radius: 9px; color: #aebbd0; background: transparent; text-align: left; }
    .signout:hover { color: white; background: rgba(255,255,255,.06); }
    .main { min-width: 0; padding: 32px clamp(24px, 4vw, 62px) 64px; overflow: hidden; }
    .topbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
    .topbar-actions { display: flex; gap: 10px; align-items: center; }
    .dashboard-button { padding: 9px 13px; border: 1px solid #d6dfeb; border-radius: 10px; color: #34435a; background: #fff; font-size: 12px; font-weight: 720; }
    .topbar h1 { margin: 0; font-size: 30px; letter-spacing: -.045em; }
    .topbar p { margin: 6px 0 0; color: #78869a; font-size: 14px; }
    .status { display: inline-flex; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid #dce7df; border-radius: 999px; color: #277448; background: #f4fbf6; font-size: 12px; font-weight: 720; }
    .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #31a866; box-shadow: 0 0 0 4px rgba(49,168,102,.11); }
    .welcome { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; margin-top: 28px; }
    .hero-card { position: relative; overflow: hidden; min-height: 205px; padding: 32px; border-radius: 18px; color: white; background: linear-gradient(135deg, #102a4d, #0a1728 70%); box-shadow: 0 18px 45px rgba(13,31,56,.13); }
    .hero-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -55px; bottom: -85px; border: 42px solid rgba(41,133,255,.15); border-radius: 50%; }
    .hero-card small { color: #70aefe; font-weight: 760; }
    .hero-card h2 { max-width: 540px; margin: 26px 0 10px; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.045em; }
    .hero-card p { margin: 0; color: #aab9cd; }
    .rq-chain-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
    .rq-step { display: flex; flex-direction: column; gap: 2px; min-width: 140px; padding: 10px 14px; border: 1px solid #d6deea; border-radius: 12px; background: #f7f9fc; text-align: left; font: inherit; color: #162237; }
    button.rq-step { cursor: pointer; } button.rq-step:hover { border-color: #146fe8; background: #eef5ff; }
    .rq-step small { font-size: 11px; font-weight: 700; color: #77869a; text-transform: uppercase; letter-spacing: .06em; }
    .rq-step strong { font-size: 16px; } .rq-step em { font-style: normal; font-size: 12px; color: #5d6b7e; }
    .rq-step.off { opacity: .55; } .rq-step.off strong { text-decoration: line-through; }
    .rq-step.empty { justify-content: center; color: #7a5600; background: #fff7e6; border-color: #f3d9a4; }
    .sync-card { display: flex; flex-direction: column; justify-content: space-between; padding: 27px; border: 1px solid #e0e6ee; border-radius: 18px; background: white; }
    .sync-card span { color: #77869a; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
    .sync-card strong { display: block; margin-top: 10px; font-size: 25px; letter-spacing: -.04em; }
    .sync-state { display: flex; gap: 9px; align-items: center; color: #657287; font-size: 13px; }
    .sync-state i { width: 9px; height: 9px; border-radius: 50%; background: #31a866; }
    .sync-card .secondary { align-self: flex-start; margin-top: 16px; }
    .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
    .metric { padding: 20px; border: 1px solid #e0e6ee; border-radius: 16px; background: white; }
    .metric-head { display: flex; justify-content: space-between; align-items: center; color: #738197; font-size: 12px; font-weight: 690; }
    .metric-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #146fe8; background: #edf5ff; font-weight: 800; }
    .metric strong { display: block; margin-top: 21px; font-size: 28px; letter-spacing: -.05em; }
    .metric small { color: #8b97a8; }
    .section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
    .dashboard-custom-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 18px; }
    .custom-widget { min-height: 190px; padding: 22px; border: 1px solid #e0e6ee; border-radius: 16px; background: #fff; overflow: hidden; }
    .custom-widget h3 { margin: 0 0 12px; font-size: 16px; }
    .custom-widget p { color: #657287; line-height: 1.55; }
    .custom-widget iframe { width: 100%; height: 310px; border: 0; border-radius: 10px; background: #f5f7fa; }
    .widget-link { display: inline-flex; margin-top: 8px; color: #146fe8; font-weight: 720; text-decoration: none; }
    .widget-clock { margin-top: 24px; font-size: 38px; font-weight: 780; letter-spacing: -.04em; }
    .widget-list { display: grid; gap: 9px; margin: 16px 0; }
    .widget-list-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid #e2e8f0; border-radius: 10px; }
    .widget-list-row div { display: flex; gap: 6px; }
    .widget-list-row button { width: 32px; height: 32px; border: 1px solid #d6dfeb; border-radius: 8px; background: #fff; }
    .panel { min-height: 230px; padding: 24px; border: 1px solid #e0e6ee; border-radius: 16px; background: white; }
    .panel-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 15px; }
    .panel h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
    .text-button { padding: 6px; border: 0; color: #146fe8; background: none; font-size: 12px; font-weight: 700; }
    .activity-list { display: grid; }
    .activity-row { display: grid; grid-template-columns: minmax(105px,.65fr) minmax(0,1.5fr) auto; gap: 14px; align-items: center; min-height: 52px; border-top: 1px solid #edf1f5; font-size: 13px; }
    .activity-row:first-child { border-top: 0; }
    .activity-row strong, .activity-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .activity-row > span { color: #66758a; }
    .empty { display: grid; place-items: center; min-height: 155px; color: #8b97a8; text-align: center; font-size: 13px; }
    .clickable-row { cursor: pointer; transition: background .16s; }
    .clickable-row:hover, .clickable-row:focus { background: #f5f9ff; outline: none; }
    .registry { margin-top: 28px; border: 1px solid #e0e6ee; border-radius: 17px; background: white; overflow: hidden; }
    .registry-tools { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px 20px; border-bottom: 1px solid #e6ebf1; }
    .registry-actions { display: flex; gap: 10px; align-items: center; }
    .registry-actions select { width: auto; min-width: 180px; height: 42px; }
    .add-record { height: 42px; padding: 0 16px; border: 0; border-radius: 10px; color: #fff; background: #146fe8; font-weight: 750; white-space: nowrap; }
    .search-wrap { position: relative; width: min(410px, 100%); }
    .search-wrap svg { position: absolute; left: 14px; top: 15px; width: 17px; height: 17px; color: #8b97a8; }
    .search-wrap input { padding-left: 41px; }
    .record-total { color: #758399; font-size: 13px; white-space: nowrap; }
    .table-wrap { min-height: 380px; overflow: auto; }
    table { width: 100%; border-collapse: collapse; font-size: 13px; }
    th { position: sticky; top: 0; z-index: 1; padding: 12px 18px; color: #6d7b8f; background: #f8fafc; font-size: 11px; font-weight: 750; letter-spacing: .035em; text-align: left; text-transform: uppercase; white-space: nowrap; }
    .sort-button { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; letter-spacing: inherit; text-transform: inherit; }
    .sort-button:hover { color: #146fe8; }
    .column-filter-row th { top: 37px; padding: 7px 9px 10px; background: #f8fafc; }
    .column-filter { width: 100%; min-width: 112px; height: 34px; padding: 7px 9px; border: 1px solid #d8e0e9; border-radius: 8px; background: #fff; color: #24344c; font-size: 12px; font-weight: 500; letter-spacing: normal; text-transform: none; }
    .column-filter:focus { border-color: #66a2f2; outline: 2px solid rgba(20,111,232,.12); }
    td { max-width: 330px; padding: 14px 18px; border-top: 1px solid #edf1f5; color: #35445a; vertical-align: middle; }
    td strong { color: #142139; font-weight: 720; }
    .truncate { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .badge { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; color: #315d92; background: #edf5ff; font-size: 11px; font-weight: 760; white-space: nowrap; }
    .badge.green { color: #267048; background: #eaf7ef; }
    .badge.amber { color: #8c5a10; background: #fff5de; }
    .badge.red { color: #b42318; background: #fdecea; font-weight: 700; }
    .unanswered-widget { border: 1px solid #f3b8b2; border-left: 5px solid #d92d20; }
    .unanswered-widget h3 { color: #b42318; }
    .unanswered-row { display: grid; gap: 2px; width: 100%; text-align: left; background: #fff6f5; border: 0; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; cursor: pointer; font: inherit; }
    .unanswered-row small { color: #8a5a55; }
    tr.row-unanswered > td:first-child { box-shadow: inset 4px 0 0 #d92d20; }
    tr.row-unanswered > td { background: #fff6f5; }
    .badge.gray { color: #617087; background: #eef1f5; }
    .table-state { min-height: 350px; display: grid; place-items: center; padding: 30px; color: #7c899b; text-align: center; }
    .mini-spinner { width: 25px; height: 25px; margin: 0 auto 12px; border: 3px solid #e1e8f0; border-top-color: #146fe8; border-radius: 50%; animation: spin .8s linear infinite; }
    .pagination { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid #e6ebf1; color: #758399; font-size: 12px; }
    .pagination div { display: flex; gap: 8px; }
    .page-button { min-width: 88px; padding: 8px 12px; border: 1px solid #dce3eb; border-radius: 9px; color: #34435a; background: #fff; }
    .page-button:disabled { opacity: .45; cursor: default; }
    .trip-groups { display: grid; gap: 14px; min-height: 0; padding: 16px; overflow: visible; background: #f5f7fa; }
    .trip-group { --trip-color: #64748b; overflow: hidden; border: 1px solid #dfe5ec; border-left: 5px solid var(--trip-color); border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(20,33,57,.045); }
    .trip-group-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 9px 13px; border-bottom: 1px solid #e7ebf0; background: #f8fafc; }
    .trip-group-toggle { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: transparent; color: #17243a; font-weight: 780; text-align: left; }
    .trip-group-chevron { width: 18px; color: #6d7b8f; font-size: 15px; text-align: center; }
    .trip-group-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 11px; border-radius: 7px; background: var(--trip-color); color: #fff; font-size: 12px; font-weight: 800; }
    .trip-group-count { color: #748196; font-size: 12px; white-space: nowrap; }
    .trip-group-body[hidden] { display: none; }
    .trip-group-table { overflow: auto; }
    .trip-group-table table { min-width: 1200px; }
    .trip-group-table th { position: static; padding-top: 10px; padding-bottom: 10px; }
    .trip-group-table td { padding-top: 11px; padding-bottom: 11px; }
    /* Колонки рейсов одной ширины во всех группах — стоят одна под другой */
    table.fixed-cols { table-layout: fixed; width: 100%; }
    table.fixed-cols td, table.fixed-cols th { overflow: hidden; text-overflow: ellipsis; }
    table.fixed-cols td .truncate { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
    table.fixed-cols .num-cell { text-align: right; padding-right: 22px; }
    .days-going { color: #2563eb; font-style: italic; }
    .dt2.dt-plan b, .dt2.dt-plan small { color: #9aa5b5; font-weight: 500; }
    .dt2 { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
    .dt2 b { font-weight: 600; color: #1d2433; }
    .dt2 small { color: #6d7b8f; font-size: 12px; }
    .trip-group[data-status="in_transit"] .badge { color: #9f1e1e; background: #feecec; }
    .trip-group[data-status="paused"] .badge { color: #315b68; background: #e8f1f4; }
    .trip-group[data-status="completed"] .badge { color: #23733b; background: #eaf7ee; }
    .trip-group[data-status="postponed"] .badge { color: #fff; background: #1f2937; }
    .trip-group[data-status="planning"] .badge { color: #74247f; background: #f6eafb; }
    .trip-group-pager { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 10px 14px; border-top: 1px solid #edf1f5; color: #748196; font-size: 12px; }
    .trip-group-page-button { min-width: 74px; padding: 7px 10px; border: 1px solid #d8e0e9; border-radius: 8px; background: #fff; color: #34435a; }
    .trip-group-page-button:disabled { opacity: .42; cursor: default; }
    .access-button { padding: 7px 10px; border: 1px solid #cbd9e9; border-radius: 9px; color: #175fae; background: #fff; font-size: 12px; font-weight: 740; white-space: nowrap; }
    .access-button:hover { border-color: #8eb9ed; background: #f5f9ff; }
    .row-document-actions { display:flex; gap:6px; align-items:center; white-space:nowrap; }
    .row-document-action { min-height:32px; padding:6px 9px; border:1px solid #cbd9e9; border-radius:9px; background:#fff; color:#175fae; font-size:12px; font-weight:740; cursor:pointer; }
    .row-document-action:hover { border-color:#7eade5; background:#f2f7ff; }
    .row-document-action.primary { border-color:#146fe8; background:#146fe8; color:#fff; }
    .row-document-action:disabled { opacity:.58; cursor:wait; }
    .row-actions { display: flex; gap: 7px; }
    .edit-button { padding: 7px 10px; border: 1px solid #cbd9e9; border-radius: 9px; color: #175fae; background: #fff; font-size: 12px; font-weight: 740; white-space: nowrap; }
    .edit-button:hover { border-color: #8eb9ed; background: #f5f9ff; }
    .detail-toolbar { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 18px; }
    .document-preview + .detail-toolbar { margin:12px 0 0; }
    .detail-action { min-height:38px; padding:0 13px; border:1px solid #cad8e8; border-radius:9px; color:#175fae; background:#fff; font-size:12px; font-weight:740; }
    .detail-action.primary-action { border-color:#146fe8; color:#fff; background:#146fe8; }
    .detail-tabs { display:flex; gap:6px; margin:0 0 18px; padding-bottom:10px; overflow:auto; border-bottom:1px solid #e7edf4; }
    .detail-tab { flex:0 0 auto; padding:8px 11px; border:0; border-radius:8px; color:#657287; background:transparent; font-size:12px; font-weight:720; }
    .detail-tab.active { color:#0f5fbf; background:#edf5ff; }
    .detail-pane.hidden { display:none; }
    .detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
    .detail-card { padding:17px; border:1px solid #e1e8f0; border-radius:13px; background:#fff; }
    .detail-card h3 { margin:0 0 13px; font-size:15px; }
    .detail-card.wide { grid-column:1/-1; }
    .detail-list { display:grid; gap:9px; }
    .detail-list-item { display:grid; grid-template-columns:minmax(130px,.7fr) minmax(0,1.6fr) auto; gap:12px; align-items:start; padding:11px 0; border-top:1px solid #edf1f5; font-size:13px; }
    .detail-list-item:first-child { border-top:0; }
    .detail-list-item strong { color:#162237; }
    .detail-list-item span { color:#627188; white-space:normal; overflow-wrap:anywhere; }
    .subtle { color:#7b899b; font-size:12px; line-height:1.5; }
    .alert-card { padding:13px 15px; border:1px solid #f1d39b; border-radius:11px; color:#7a4b08; background:#fff8e8; }
    .finance-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; padding:20px; }
    .finance-tile { padding:18px; border:1px solid #e1e8f0; border-radius:13px; background:#fff; }
    .finance-tile span { display:block; color:#78869a; font-size:11px; font-weight:750; text-transform:uppercase; }
    .finance-tile strong { display:block; margin-top:9px; font-size:23px; }
    .finance-board { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:0 20px 20px; }
    .finance-board .detail-card { min-height:170px; }
    .data-chips { display:flex; flex-wrap:wrap; gap:7px; }
    .data-chip { padding:6px 9px; border-radius:999px; color:#315d92; background:#edf5ff; font-size:11px; font-weight:720; }
    .online-metric strong { margin-top:10px; }
    .online-list { display:grid; gap:5px; margin-top:8px; min-height:32px; }
    .online-person { display:flex; gap:7px; align-items:center; color:#66758a; font-size:11px; }
    .online-dot { width:7px; height:7px; border-radius:50%; background:#31a866; box-shadow:0 0 0 3px rgba(49,168,102,.11); }
    .mini-link { padding:4px 7px; border:0; border-radius:7px; color:#146fe8; background:#edf5ff; font-size:11px; font-weight:750; }
    .multi-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:10px; border:1px solid #d7dfeb; border-radius:11px; background:#fff; }
    .multi-option { display:flex; gap:8px; align-items:center; min-height:32px; margin:0; color:#34435a; font-weight:600; }
    .multi-option input { width:17px; height:17px; }
    .datetime24-control { display:grid; grid-template-columns:minmax(0,1fr) 120px; gap:8px; }
    .datetime24-actions { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
    .datetime24-actions span { color:#738198; font-size:11px; }
    .datetime24-actions button { min-height:30px; padding:4px 9px; border:1px solid #d5dfec; border-radius:8px; color:#245a94; background:#f7faff; font:inherit; font-size:11px; font-weight:720; cursor:pointer; }
    .datetime24-actions button:hover { border-color:#8fb7e6; background:#edf5ff; }
    .workflow-timeline { display:grid; grid-template-columns:repeat(7,minmax(115px,1fr)); gap:8px; overflow:auto; padding:4px 0 12px; }
    .workflow-stage { min-height:86px; padding:12px; border:1px solid #dde5ef; border-radius:11px; background:#f8fafc; }
    .workflow-stage strong,.workflow-stage span { display:block; }
    .workflow-stage span { margin-top:7px; color:#7b899b; font-size:11px; }
    .workflow-stage.done { border-color:#bfe3ce; background:#f2fbf6; }
    .workflow-stage.active { border-color:#8fbbf0; background:#edf5ff; }
    .icon-action { display:grid; place-items:center; width:38px; height:38px; padding:0; border:1px solid #cad8e8; border-radius:9px; color:#175fae; background:#fff; font-size:17px; }
    .click-fact { width:100%; padding:0; border:0; color:#146fe8; background:transparent; font:inherit; font-weight:720; text-align:left; }
    .formatted-message { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; }
    .chat-card { width:min(720px,100%); }
    .chat-messages { display:grid; gap:9px; max-height:390px; min-height:220px; margin:16px 0; padding:13px; overflow:auto; border:1px solid #e1e8f0; border-radius:12px; background:#f8fafc; }
    .chat-row { max-width:82%; padding:10px 12px; border-radius:11px; background:#fff; box-shadow:0 1px 3px rgba(13,31,56,.06); }
    .chat-row.mine { justify-self:end; color:#fff; background:#146fe8; }
    .chat-row strong,.chat-row small { display:block; }
    .chat-row small { margin-top:5px; opacity:.72; }
    .chat-top { display:flex; gap:10px; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; }
    .chat-who { flex:1; min-width:220px; }
    .chat-tools { display:flex; gap:8px; }
    .chat-group-panel { display:grid; gap:12px; margin-top:12px; padding:14px; border:1px solid #e1e8f0; border-radius:12px; background:#f8fbff; }
    .chat-group-panel[hidden], .chat-group-info[hidden], .chat-tools button[hidden] { display:none; }
    .chat-members { display:grid; gap:6px; max-height:180px; overflow:auto; }
    .chat-members label { display:flex; align-items:center; gap:8px; font-weight:400; }
    .chat-group-actions { display:flex; gap:8px; flex-wrap:wrap; }
    .chat-group-info { margin-top:8px; font-size:13px; color:#5a6a7a; }
    .chat-compose { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; }
    .chat-compose textarea { min-height:64px; padding:11px 13px; resize:vertical; border:1px solid #d7dfeb; border-radius:11px; font:inherit; }
    .communication-layout { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(280px,.8fr); gap:14px; align-items:start; }
    .communication-thread { display:grid; gap:9px; max-height:52vh; min-height:260px; padding:14px; overflow:auto; border:1px solid #e0e7ef; border-radius:14px; background:#f6f8fb; }
    .communication-message { max-width:84%; padding:11px 13px; border:1px solid #e2e8f0; border-radius:13px 13px 13px 4px; background:#fff; box-shadow:0 1px 3px rgba(13,31,56,.05); }
    .communication-message.outbound { justify-self:end; border-color:#b9d7fb; border-radius:13px 13px 4px 13px; background:#eaf4ff; }
    .communication-message strong,.communication-message small { display:block; }
    .communication-message div { margin-top:5px; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.5; }
    .communication-message small { margin-top:7px; color:#78869a; }
    .communication-context { display:grid; gap:10px; }
    .communication-media-list { display:flex; flex-wrap:wrap; gap:7px; margin-top:8px; }
    .communication-media-button,.communication-row-action { border:1px solid #b9d7fb; border-radius:8px; padding:6px 9px; background:#fff; color:#175caa; font:inherit; font-size:12px; cursor:pointer; }
    .communication-row-action.primary { border-color:#1769c2; background:#1769c2; color:#fff; }
    .ignore-settings-list { display:grid; gap:8px; margin:16px 0; max-height:42vh; overflow:auto; }
    .ignore-settings-row { display:grid; grid-template-columns:minmax(140px,1fr) minmax(150px,1fr) auto; gap:10px; align-items:center; padding:10px 12px; border:1px solid #e0e7ef; border-radius:10px; }
    .ignore-settings-row small { color:#718096; }
    .settings-checkbox { display:flex; gap:9px; align-items:center; margin:14px 0; }
    .context-result { width:100%; padding:11px 12px; border:1px solid #dfe6ef; border-radius:11px; background:#fff; text-align:left; }
    .context-result strong,.context-result span,.context-result small { display:block; overflow-wrap:anywhere; }
    .context-result span { margin-top:4px; color:#506078; }
    .context-result small { margin-top:5px; color:#8692a4; }
    .reply-composer { position:sticky; bottom:0; z-index:2; margin-top:14px; padding:14px; border:1px solid #cbdcf0; border-radius:14px; background:#fff; box-shadow:0 -8px 24px rgba(18,49,86,.08); }
    .reply-composer textarea { width:100%; min-height:132px; margin:9px 0; padding:12px; resize:vertical; border:1px solid #cad7e6; border-radius:11px; font:inherit; line-height:1.5; }
    .reply-actions { display:flex; flex-wrap:wrap; gap:8px; }
    .analytics-panel { margin:10px 0; } .analytics-panel.hidden { display:none; } .analytics-text { white-space:pre-wrap; line-height:1.5; font-size:13px; } .analytics-sources { display:flex; flex-direction:column; gap:4px; margin:10px 0; font-size:12px; } .analytics-sources a { color:#1f5fa8; word-break:break-all; }
    .draft-safety { margin-top:9px; color:#65758a; font-size:12px; line-height:1.45; }
    .linked-row { cursor:pointer; }
    .linked-row:hover { background:#f5f9ff; }
    .planning-wrap { min-height:620px; padding:16px; overflow:auto; background:#eef3f8; }
    .planning-board { display:flex; gap:14px; align-items:flex-start; min-width:max-content; }
    .planning-section-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:2px 0 10px; }
    .planning-section-title h2 { margin:0; color:#17243a; font-size:17px; }
    .planning-section-title span { color:#748196; font-size:12px; }
    .planning-warehouses { display:grid; gap:10px; min-width:980px; margin:0 0 18px; }
    .planning-warehouse-lane { display:grid; grid-template-columns:260px minmax(680px,1fr); border:1px solid #d7e1ec; border-radius:14px; overflow:hidden; background:#f8fbff; }
    .planning-warehouse-head { padding:14px; border-right:1px solid #d7e1ec; background:#edf5ff; }
    .planning-warehouse-head h3 { margin:0; font-size:14px; }
    .planning-warehouse-head p { margin:5px 0 0; color:#6c7c91; font-size:11px; line-height:1.4; }
    .planning-warehouse-list { min-height:132px; display:flex; align-items:flex-start; gap:9px; padding:10px; overflow-x:auto; }
    .planning-warehouse-list.drag-over { background:#dfeeff; }
    .planning-warehouse-list .planning-card { flex:0 0 280px; margin:0; }
    .planning-no-locations { min-width:980px; margin-bottom:18px; padding:18px; border:1px dashed #b8c7d9; border-radius:14px; color:#64758b; background:#f8fbff; }
    .planning-lane { width:310px; border:1px solid #dce4ee; border-radius:14px; background:#f8fafc; overflow:hidden; }
    .planning-lane.pool { width:350px; background:#fffaf0; border-color:#ecd9b2; }
    .planning-lane-head { position:sticky; top:0; z-index:2; padding:14px; border-bottom:1px solid #e1e8f0; background:rgba(255,255,255,.96); backdrop-filter:blur(8px); }
    .planning-lane-head h3 { margin:0; font-size:14px; }
    .planning-lane-head p { margin:5px 0 0; color:#748196; font-size:11px; }
    .capacity-bars { display:grid; gap:6px; margin-top:10px; }
    .capacity-row { display:grid; grid-template-columns:48px minmax(0,1fr) auto; gap:7px; align-items:center; color:#67758a; font-size:10px; }
    .capacity-bar { position:relative; height:8px; overflow:hidden; border-radius:999px; background:#e7edf4; }
    .capacity-bar i { display:block; height:100%; border-radius:inherit; background:#22a24a; }
    .capacity-bar s { position:absolute; top:0; bottom:0; width:2px; background:#1d2433; }
    .capacity-bar.warn i { background:#eab308; }
    .capacity-bar.over i { background:#ef1c1c; }
    .planning-list { min-height:420px; padding:10px; }
    .planning-list.drag-over { background:#e8f2ff; }
    .planning-card { position:relative; margin-bottom:9px; padding:12px 12px 10px 16px; border:1px solid #dfe6ef; border-radius:11px; background:#fff; box-shadow:0 3px 10px rgba(15,35,60,.05); cursor:grab; }
    .planning-card::before { content:""; position:absolute; inset:0 auto 0 0; width:5px; border-radius:11px 0 0 11px; background:var(--shipment-color,#146fe8); }
    .planning-card.dragging { opacity:.45; }
    .planning-card-head { display:flex; justify-content:space-between; gap:9px; }
    .planning-card strong { color:#152239; font-size:13px; }
    .planning-card small { color:#7b899c; font-size:10px; }
    .planning-route { margin:8px 0; color:#526176; font-size:11px; line-height:1.45; }
    .planning-meta { display:flex; flex-wrap:wrap; gap:6px; }
    .planning-meta span { padding:4px 6px; border-radius:7px; color:#385573; background:#edf4fb; font-size:10px; font-weight:700; }
    .planning-card-actions { display:flex; justify-content:flex-end; gap:4px; margin-top:8px; }
    .planning-card-actions button { width:27px; height:25px; padding:0; border:1px solid #d8e1ec; border-radius:7px; color:#46617e; background:#fff; }
    .planning-status { width:100%; margin-top:8px; padding:6px 8px; border:1px solid #d8e1ec; border-radius:8px; color:#334b67; background:#fff; font-size:11px; }
    .planning-proof { margin-top:7px; color:#805c12; font-size:10px; font-weight:700; }
    .planning-empty { min-height:120px; display:grid; place-items:center; padding:18px; color:#8a96a7; font-size:12px; text-align:center; }
    @media (max-width: 1000px) { .finance-summary { grid-template-columns:1fr 1fr; } .finance-board,.detail-grid { grid-template-columns:1fr; } }
    .modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(7,18,34,.56); }
    .modal-card { width: min(520px, 100%); padding: 26px; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(7,18,34,.26); }
    .modal-card h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
    .modal-card > p { margin: 8px 0 22px; color: #718096; font-size: 13px; }
    .form-grid { display: grid; gap: 15px; }
    .record-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
    .lookup-control { position: relative; }
    .lookup-search { width: 100%; }
    .lookup-results { position: absolute; z-index: 40; top: calc(100% + 5px); left: 0; right: 0; max-height: 260px; overflow: auto; padding: 6px; border: 1px solid #cfd9e7; border-radius: 11px; background: #fff; box-shadow: 0 14px 35px rgba(16,34,59,.16); }
    .lookup-results.hidden { display: none; }
    .lookup-option { display: flex; width: 100%; justify-content: space-between; gap: 10px; padding: 10px 11px; border: 0; border-radius: 8px; color: #1d2b40; background: #fff; text-align: left; }
    .lookup-option:hover, .lookup-option:focus { background: #edf5ff; outline: none; }
    .lookup-option small { color: #7b899c; }
    .lookup-empty { padding: 11px; color: #7b899c; font-size: 12px; }
    .dense-table { min-width: 1550px; font-size: 12px; }
    .dense-table th { padding: 9px 11px; }
    .dense-table td { max-width: 240px; padding: 10px 11px; }
    .task-card-actions { display:flex; gap:8px; margin-top:10px; }
    .field-wide { grid-column: 1 / -1; }
    .record-form-grid textarea { width: 100%; min-height: 92px; padding: 12px 14px; resize: vertical; border: 1px solid #d7dfeb; border-radius: 11px; color: #152239; background: #fff; font: inherit; }
    .record-form-grid textarea:focus { border-color: #1677ff; outline: none; box-shadow: 0 0 0 4px rgba(22,119,255,.11); }
    .record-advanced { grid-column:1/-1; padding:0; border:1px solid #dfe7f0; border-radius:12px; background:#f8fafc; }
    .record-advanced summary { padding:13px 15px; color:#40516a; font-size:12px; font-weight:760; cursor:pointer; }
    .record-advanced .record-form-grid { padding:2px 15px 15px; }
    .draft-status { color:#267048 !important; }
    .file-drop { min-height:118px; display:grid; place-items:center; gap:7px; padding:18px; border:2px dashed #b9c8da; border-radius:14px; background:#f8fbff; text-align:center; color:#586b84; cursor:pointer; transition:.15s ease; }
    .file-drop:hover,.file-drop.drag-over { border-color:#1f6feb; background:#edf5ff; color:#194f9d; }
    .file-drop strong { color:#17243a; font-size:14px; }
    .file-drop small { font-size:12px; }
    .vehicle-document-list { display:grid; gap:10px; }
    .vehicle-document-item { display:grid; grid-template-columns:minmax(180px,1fr) auto; gap:12px; align-items:center; padding:13px 14px; border:1px solid #e2e9f1; border-radius:12px; background:#fff; }
    .vehicle-document-item h4 { margin:0 0 4px; font-size:14px; }
    .vehicle-document-item p { margin:0; color:#708097; font-size:12px; }
    .document-actions { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
    .document-actions button { min-height:34px; padding:7px 10px; border:1px solid #cfd9e6; border-radius:9px; background:#fff; color:#155cb5; font-weight:720; cursor:pointer; }
    .document-preview { min-height:70vh; overflow:hidden; border:1px solid #dfe7f0; border-radius:13px; background:#f8fafc; }
    .document-preview iframe,.document-preview img { display:block; width:100%; min-height:70vh; border:0; object-fit:contain; background:#fff; }
    .document-preview-placeholder { display:grid; place-items:center; min-height:200px; padding:30px; color:#708097; text-align:center; }
    .document-associations { display:flex; flex-wrap:wrap; gap:8px; }
    .document-association { padding:7px 10px; border-radius:999px; color:#315d92; background:#edf5ff; font-size:12px; font-weight:720; }
    .document-draft-note { padding:12px 14px; border:1px solid #f0d394; border-radius:10px; color:#775014; background:#fff9ea; font-size:12px; line-height:1.5; }
    .checkbox-field { display: flex; gap: 9px; align-items: center; min-height: 48px; margin: 0; padding: 0 2px; }
    .checkbox-field input { width: 18px; height: 18px; }
    select { width: 100%; height: 48px; padding: 0 13px; border: 1px solid #d7dfeb; border-radius: 11px; color: #152239; background: #fff; }
    .portal-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .portal-option { display: flex; gap: 8px; align-items: center; margin: 0; padding: 11px; border: 1px solid #dfe7f0; border-radius: 10px; font-weight: 650; }
    .portal-option input { width: 17px; height: 17px; padding: 0; }
    .permission-groups { display: grid; gap: 12px; margin-top: 16px; }
    .permission-group { border: 1px solid #dfe7f0; border-radius: 12px; overflow: hidden; }
    .permission-group h3 { margin: 0; padding: 12px 14px; color: #233249; background: #f5f8fc; font-size: 13px; }
    .permission-table { width: 100%; font-size: 12px; }
    .permission-table th, .permission-table td { position: static; padding: 9px 11px; text-align: center; }
    .permission-table th:first-child, .permission-table td:first-child { text-align: left; }
    .permission-table input { width: 16px; height: 16px; }
    .modal-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
    .modal-actions div { display: flex; gap: 10px; }
    .secondary, .danger { min-height: 42px; padding: 0 15px; border-radius: 10px; background: #fff; font-weight: 720; }
    .secondary { border: 1px solid #d6dfeb; color: #34435a; }
    .danger { border: 1px solid #efc6c2; color: #b42318; }
    .save-access { min-height: 42px; padding: 0 17px; border: 0; border-radius: 10px; color: #fff; background: #146fe8; font-weight: 760; }
    .save-access:disabled, .danger:disabled { opacity: .5; cursor: wait; }
    .form-message { min-height: 20px; margin-top: 12px; color: #b42318; font-size: 12px; }
    .detail-modal { width: min(980px, 100%); max-height: min(820px, calc(100vh - 40px)); overflow: auto; }
    .detail-title-row { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
    .detail-title-row .secondary { flex: 0 0 auto; }
    .party-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
    .party-fact { padding: 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
    .party-fact span { display: block; margin-bottom: 6px; color: #7b899c; font-size: 10px; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
    .party-fact strong { color: #1d2a3e; font-size: 13px; overflow-wrap: anywhere; }
    .party-creator { margin-top: 18px; padding: 14px 4px 2px; border-top: 1px solid #e2e8f0; color: #67768a; font-size: 13px; font-weight: 700; }
    .detail-section { margin-top: 22px; }
    .detail-section h3 { margin: 0 0 11px; font-size: 15px; }
    .address-list { display: grid; gap: 8px; }
    .address-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 13px; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 11px; background: #fff; color: #35445a; font-size: 13px; line-height: 1.45; }
    .address-item span:first-child { color: #65758a; font-size: 11px; font-weight: 740; }
    .contact-table { border: 1px solid #e2e8f0; border-radius: 12px; overflow: auto; }
    .contact-table table { min-width: 760px; }
    .detail-loading { min-height: 180px; display: grid; place-items: center; color: #7c899b; }
    @media (max-width: 1250px) { .cards { grid-template-columns: repeat(3, 1fr); } }
    @media (max-width: 980px) { .welcome, .section-grid, .dashboard-custom-grid { grid-template-columns: 1fr; } .app { grid-template-columns: 218px minmax(0,1fr); } }
    @media (max-width: 760px) {
      .login { grid-template-columns: 1fr; } .login-visual { display: none; } .login-panel { padding: 28px; } .mobile-brand { display: flex; }
      .app { display: block; } .sidebar { position: static; height: auto; padding: 14px 16px; } .sidebar .brand { display: none; } .portal-pill { display: none; }
      .nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; } .nav button { width: auto; flex: 0 0 auto; padding: 9px 11px; } .nav svg { display: none; } .sidebar-foot { display: none; }
      .main { padding: 24px 15px 45px; } .status { display: none; } .topbar-actions { margin-left: auto; } .dashboard-button { padding: 8px 10px; } .cards { grid-template-columns: 1fr; } .hero-card { min-height: 190px; }
      .registry-tools { align-items: stretch; flex-direction: column; } .registry-actions { flex-wrap: wrap; } .registry-actions select { flex: 1 1 180px; } .search-wrap { width: 100%; } th, td { padding-left: 13px; padding-right: 13px; } .activity-row { grid-template-columns: 100px minmax(0,1fr); } .activity-row .badge { display: none; } .portal-options { grid-template-columns: 1fr; } .modal-actions { align-items: stretch; flex-direction: column-reverse; } .modal-actions div { justify-content: flex-end; }
      .party-facts { grid-template-columns: 1fr 1fr; } .address-item { grid-template-columns: 1fr; gap: 5px; }
      .record-form-grid { grid-template-columns: 1fr; } .field-wide { grid-column: auto; }
      .detail-modal { width:100%; max-height:calc(100vh - 16px); padding:18px; border-radius:14px; } .communication-layout { grid-template-columns:1fr; } .communication-thread { max-height:43vh; } .communication-message { max-width:92%; } .reply-composer { margin-left:-4px; margin-right:-4px; } .reply-actions .detail-action { flex:1 1 140px; }
    }
      .registry.paycal-view .registry-tools,.registry.paycal-view .pagination{display:none}
    .paycal-wrap{padding:0;overflow:hidden}
    .paycal-frame{display:block;width:100%;height:calc(100vh - 170px);min-height:560px;border:0;background:#fff}

/* Раздел «На удаление» (21.11.2026) */
.trash-dialog{border:0;border-radius:14px;padding:0;max-width:560px;width:calc(100% - 32px);box-shadow:0 12px 40px rgba(20,33,57,.25)}
.trash-dialog::backdrop{background:rgba(20,33,57,.35)}
.trash-box{padding:20px 22px;display:grid;gap:12px}
.trash-box h3{margin:0;font-size:17px;word-break:break-word}
