/* Bitrix24 reference: native CRM controls, system typography and a blue navigation shell. */
:root{--b24-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;--b24-primary:#0068df;--b24-link:#2066b0;--b24-ink:#333;--b24-muted:#65717c;--b24-line:#dfe0e3;--b24-panel:#f1f4f6;--b24-nav:204px;--rd-action:var(--b24-primary);--rd-ink:var(--b24-ink);--rd-muted:var(--b24-muted);--rd-line:var(--b24-line);--rd-soft:#e9f2ff;--ui-action:var(--b24-primary);--ui-ink:var(--b24-ink);--ui-muted:var(--b24-muted)}
html,body,body button,body input,body textarea,body select,body dialog,body.b24-theme *{font-family:var(--b24-font)!important}
body.b24-theme{margin:0;background:#e9eff5;color:var(--b24-ink);font-size:13px;line-height:1.5;caret-color:var(--b24-primary)}
body.b24-theme #app{display:block;min-height:100dvh}
body.b24-theme #app>.sidebar{position:fixed;inset:0 auto 0 0;width:var(--b24-nav);height:100dvh;padding:15px 12px 12px;background:linear-gradient(165deg,#075ca8 0%,#1749a7 100%);color:#fff;border:0;z-index:50;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#ffffff55 transparent}
body.b24-theme .sidebar .logo{min-height:62px;margin:0 0 15px;padding:12px 14px;border:0;border-bottom:1px solid #ffffff24;border-radius:0;background:transparent;box-shadow:none}
body.b24-theme .sidebar .logo img{width:124px;max-width:100%}
body.b24-theme .sidebar nav{gap:2px}
body.b24-theme .sidebar nav>a{display:flex;align-items:center;gap:10px;min-height:36px;margin:0;padding:7px 10px;border:0;border-radius:5px;background:transparent;color:#f2f7ff;font-size:13px;font-weight:400;line-height:20px;text-decoration:none;box-shadow:none}
body.b24-theme .sidebar nav>a:hover{background:#ffffff19;color:#fff}
body.b24-theme .sidebar nav>a.active{background:#ffffff2b;color:#fff;font-weight:600;box-shadow:none;outline:0}
body.b24-theme .sidebar nav>a>svg{width:17px;height:17px;flex:none;color:#dcecff;opacity:1}
body.b24-theme .sidebar .nav-label{min-width:0;flex:1}
body.b24-theme .sidebar .section-card-count{min-width:20px;height:18px;padding:1px 5px;border-radius:3px;background:#ffffff20;color:#fff;font-size:10px;font-weight:600;line-height:16px}
.b24-nav-group{display:block;margin:15px 10px 5px;color:#d6e9ff;font-size:10px;font-weight:600;line-height:16px}
.b24-nav-group:first-child{margin-top:0}
body.b24-theme .sidebar .sidefoot{margin-top:auto;padding:18px 10px 0;border-top:1px solid #ffffff20;color:#fff}
body.b24-theme .sidebar .sidefoot>span{font-size:12px;font-weight:600;color:#fff}
body.b24-theme .sidebar .sidefoot small{font-size:10px;color:#d4e6fa}
body.b24-theme .sidebar .sidefoot button{padding:3px 0;margin-top:7px;min-height:24px;font-size:10px;color:#edf6ff;background:none;border:0;text-align:left}
body.b24-theme .sidebar :is(.cabinet-role,.cabinet-role-badge){display:inline-flex;align-items:center;gap:5px;background:#ffffff17;color:#fff;border-color:#ffffff20;font-size:11px;font-weight:500}
body.b24-theme #app>.workspace{position:relative;margin:64px 16px 16px calc(var(--b24-nav) + 16px);padding:18px 20px 22px;min-height:calc(100dvh - 80px);border:0;border-radius:10px;background:#fff;box-shadow:none}
.b24-appbar{position:fixed;inset:0 0 auto var(--b24-nav);z-index:40;display:flex;align-items:center;gap:24px;height:56px;padding:0 154px 0 24px;border-bottom:1px solid #dbe3e9;background:#f7f9fb;color:#47515c}
.b24-space{display:flex;align-items:center;gap:13px;min-width:120px;max-width:330px}
.b24-space>strong{font-size:19px;line-height:24px;font-weight:500;color:#333}
.b24-space>span{padding-left:13px;border-left:1px solid #d8dfe5;font-size:12px;color:#65717c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.b24-quick-search{display:flex;align-items:center;gap:8px;flex:1;max-width:330px;min-width:150px;min-height:32px;padding:5px 10px;border:1px solid #dfe5ea;border-radius:4px;background:#fff;color:#65717c;font:inherit;font-size:12px;text-align:left;cursor:pointer}
.b24-quick-search>svg{width:15px;height:15px;flex:none}
.b24-quick-search>kbd{margin-left:auto;padding:1px 4px;border:1px solid #e4e8ec;border-radius:3px;color:#74808b;font:inherit;font-size:9px;white-space:nowrap}
.b24-quick-search:hover{border-color:#9ab8dd}
.b24-profile-button{display:flex;align-items:center;gap:8px;flex:none;margin-left:auto;padding:0;min-height:36px;border:0;background:none;color:#333;font:inherit;text-align:left;cursor:pointer}
.b24-avatar{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:50%;background:#dceaff;color:#2066b0;font-size:13px;font-weight:600}
.b24-profile-button>span:nth-child(2){display:flex;flex-direction:column;max-width:128px;min-width:55px}
.b24-profile-button strong{font-size:12px;line-height:17px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.b24-profile-button small{font-size:9px;line-height:13px;color:#65717c}
.b24-profile-button>svg{width:12px;height:12px;color:#7f8992}
.b24-profile-menu{position:absolute;right:145px;top:49px;z-index:5;min-width:190px;padding:5px;border:1px solid #dfe0e3;border-radius:6px;background:#fff;box-shadow:0 10px 30px #162a4920}
.b24-profile-menu button{display:block;width:100%;min-height:34px;padding:7px 10px;border:0;border-radius:3px;background:#fff;color:#333;font:inherit;font-size:12px;text-align:left;cursor:pointer}
.b24-profile-menu button:hover{background:#eaf2ff}
body.b24-theme .pagehead{align-items:center;gap:12px;min-height:44px;margin:0 0 16px;padding:0 0 13px;border-bottom:1px solid var(--b24-line)}
body.b24-theme .pagehead h1{margin:0 0 3px;font-size:24px;font-weight:400;line-height:1.25;letter-spacing:-.015em;color:#333}
body.b24-theme .pagehead>div>p{margin:0;font-size:11px;line-height:17px;color:#65717c}
body.b24-theme .pagehead>.role-tag{display:none}
body.b24-theme .pagehead>.global-chat-launcher{position:fixed;top:12px;right:62px;z-index:45;display:flex;align-items:center;justify-content:center;gap:0;width:34px;min-width:34px;height:32px;min-height:32px;padding:7px;border:1px solid #dfe0e3;border-radius:4px;background:#fff;color:#526273;font-size:0;box-shadow:none}
body.b24-theme .pagehead>.global-chat-launcher>svg{width:17px;height:17px}
body.b24-theme .pagehead>.global-chat-launcher>.global-chat-count{font-size:10px}
body.b24-theme .pagehead>.notification-bell{position:fixed;top:12px;right:18px;z-index:45;width:34px;min-width:34px;height:32px;min-height:32px;padding:7px;border-radius:4px;background:#fff;border-color:#dfe0e3;color:#526273}
body.b24-theme .pagehead>.notification-bell.has-important{background:#fff8e5;border-color:#e6d5a3;color:#836324}
body.b24-theme .primary{min-height:34px;padding:7px 13px;border:1px solid var(--b24-primary);border-radius:4px;background:var(--b24-primary);color:#fff;font-size:12px;font-weight:600;line-height:18px;box-shadow:none}
body.b24-theme .primary:hover{background:#005cc7;border-color:#005cc7}
body.b24-theme .secondary{min-height:34px;padding:7px 11px;border:1px solid #cfd7df;border-radius:4px;background:#fff;color:#3e617f;font-size:12px;font-weight:500;line-height:18px;box-shadow:none}
body.b24-theme .secondary:hover{background:#f1f6fc;border-color:#a8bdd4}
body.b24-theme input:not([type=checkbox]):not([type=radio]):not([type=file]),body.b24-theme select,body.b24-theme textarea{font-size:13px;line-height:1.5;color:#333;border-color:#cfd7df;border-radius:4px;box-shadow:none;accent-color:var(--b24-primary)}
body.b24-theme input::placeholder,body.b24-theme textarea::placeholder{color:#697884;opacity:1}
body.b24-theme :is(input,textarea,select):focus{border-color:#62a3ee;outline:2px solid #0075ff22;outline-offset:0}
body.b24-theme .view-switch{gap:0;padding:0;border:0;border-bottom:1px solid #dfe0e3;border-radius:0;background:transparent}
body.b24-theme .view-switch button{position:relative;min-height:32px;padding:7px 11px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#5c6874;font-size:12px;font-weight:400;line-height:16px;box-shadow:none}
body.b24-theme .view-switch button.selected{border-bottom-color:var(--b24-primary);background:transparent;color:var(--b24-link);font-weight:600}
body.b24-theme .view-switch button:hover{background:#f1f6fc}
body.b24-theme .request-controls{gap:10px 16px;margin:0 0 14px;padding:0 0 13px;border:0;border-bottom:1px solid #e5e9ed;background:transparent}
body.b24-theme .request-controls .request-filters input{min-height:34px;border-radius:4px;max-width:380px}
body.b24-theme .request-controls .request-filter-field select{height:34px!important;min-height:34px!important;border-radius:4px;background-color:#fff}
body.b24-theme .request-controls .request-toolbar{gap:7px}
body.b24-theme .request-filter-toggle{border-radius:4px}
body.b24-theme .request-table-wrap,body.b24-theme .vehicle-list-wrap{border:1px solid #e1e5e9;border-radius:5px;box-shadow:none;overflow:auto}
body.b24-theme :is(.request-table,.vehicle-list-table){border-collapse:collapse;background:#fff;font-size:12px}
body.b24-theme :is(.request-table,.vehicle-list-table) thead th{height:38px;padding:9px 12px;background:#f5f7f9;border-bottom:1px solid #dfe0e3;color:#65717c;font-weight:400;white-space:nowrap}
body.b24-theme :is(.request-table,.vehicle-list-table) tbody td{padding:10px 12px;border-bottom:1px solid #edf0f3;vertical-align:middle}
body.b24-theme :is(.request-table,.vehicle-list-table) tbody tr:hover{background:#f7faff}
body.b24-theme .table-title{font-size:13px;font-weight:500;color:var(--b24-link)}
body.b24-theme .request-table-wrap .request-stage{font-size:10px}
body.b24-theme .request-tile.workflow-tile{border-radius:5px;box-shadow:none;border-top-width:1px;background:#fff}
body.b24-theme .workflow-tile .tile-open h2{font-size:13px;font-weight:600;letter-spacing:0;color:#333}
body.b24-theme .workflow-tile .request-card-number{font-weight:400}
body.b24-theme .workflow-tile .tile-comment .crm-partner{font-weight:500;color:#525c69}
body.b24-theme .workflow-tile .request-card-footer{border-color:#e7ebef}
body.b24-theme .compact-vehicle-card{border-radius:6px;box-shadow:none}
body.b24-theme .compact-vehicle-card .vehicle-option-meta h3{font-weight:600;color:#333;letter-spacing:0}
body.b24-theme .compact-vehicle-card .vehicle-base-price{font-weight:600;letter-spacing:0}
body.b24-theme .compact-vehicle-card .vehicle-option-actions{border-color:#dfe0e3}
body.b24-theme .compact-vehicle-card .vehicle-option-actions .vehicle-details{border-radius:3px;color:var(--b24-link)}
body.b24-theme .compact-vehicle-card .vehicle-option-actions .vehicle-book{border-radius:3px}
body.b24-theme .booking-fail-action{display:grid;place-items:center;padding:0;line-height:1}
body.b24-theme .vehicle-options-grid .vehicle-add-placeholder{border-radius:6px;background:#f6f9fc;border-color:#c8d7e7;color:var(--b24-link)}
body.b24-theme .board-empty{min-height:180px;padding:30px;border:1px dashed #d3dce5;border-radius:5px;background:#f9fbfd;color:#65717c;font-size:13px}
body.b24-theme .important-toast-stack.is-page-inline{display:block;position:relative;width:100%;max-width:none;margin:0 0 14px;padding:0}
body.b24-theme .important-toast-stack.is-page-inline>.important-notice:not(:first-child){display:none}
body.b24-theme .important-toast-stack.is-page-inline .important-toast{display:flex;align-items:center;gap:9px;min-height:46px;max-height:46px;padding:6px 170px 6px 10px;border:1px solid #e8d8ac;border-radius:5px;background:#fff9e9;box-shadow:none}
body.b24-theme .important-toast-stack.is-page-inline .important-toast>span:nth-child(2){display:block;min-width:0}
body.b24-theme .important-toast-stack.is-page-inline .important-toast strong{display:block;margin:0;font-size:11px;font-weight:600;line-height:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7d5f27}
body.b24-theme .important-toast-stack.is-page-inline .important-notice-context{display:block;font-size:10px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7d5f27}
body.b24-theme .important-toast-stack.is-page-inline .important-toast-icon{width:24px;height:24px;border-radius:4px;background:#f6e9bf}
body.b24-theme .important-toast-stack.is-page-inline .important-toast-icon svg{width:14px;height:14px}
body.b24-theme .important-toast-stack.is-page-inline .important-compact-all{position:absolute;right:35px;top:11px;min-height:24px;margin:0;padding:3px 6px;border-radius:3px;font-size:10px;line-height:18px;color:#7d5f27;background:transparent}
body.b24-theme .important-toast-stack.is-page-inline .important-dismiss{top:9px;right:7px}
body.b24-theme .important-toast-stack.is-page-inline .important-compact-all:after{display:none}
body.b24-theme .workspace:has(>.chat-workspace){height:calc(100dvh - 80px);min-height:0;padding:16px;overflow:hidden}
body.b24-theme .workspace:has(>.chat-workspace)>.pagehead{flex:none;margin-bottom:12px}
body.b24-theme .workspace>.chat-workspace{border:1px solid #dfe0e3;border-radius:6px;background:#fff;box-shadow:none}
body.b24-theme .chat-audience-tabs{background:#f1f4f6;border-color:#dfe0e3;border-radius:4px;padding:2px}
body.b24-theme .chat-audience-tabs button{border-radius:3px;font-size:12px;font-weight:500}
body.b24-theme .chat-audience-tabs button.selected{background:#fff;color:#2066b0;box-shadow:0 1px 3px #172a4110}
body.b24-theme .chat-workspace[data-chat-audience=internal] .chat-audience-tabs button.selected{background:#fff1dd;color:#905410}
body.b24-theme .chat-thread{border-radius:4px;font-size:12px}
body.b24-theme .chat-thread.selected{background:#e6f1ff}
body.b24-theme .chat-messages{background:#f3f6f9}
body.b24-theme .chat-message.own .message-bubble{background:#e4f0fd}
body.b24-theme .quick-chat-widget{border:1px solid #cfd9e4;border-radius:7px;box-shadow:0 14px 44px #162b4b25}
body.b24-theme .quick-chat-heading{border-radius:6px 6px 0 0;background:#f4f8fc;border-bottom-color:#dce5ee;font-size:12px;color:#333}
body.b24-theme .quick-chat-window-actions button{border-radius:3px;color:#596c80}
body.b24-theme .quick-chat-window-actions [data-widget-close]:hover{background:#fce8ec;color:#a43549}
.b24-command-dialog{width:min(620px,calc(100vw - 24px));max-height:min(640px,calc(100dvh - 40px));margin:80px auto auto;padding:0;border:1px solid #d9e2eb;border-radius:10px;background:#fff;color:#333;box-shadow:0 24px 80px #12263f40;overflow:hidden}
.b24-command-dialog::backdrop{background:#17304955}
.b24-command-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e5e9ee}
.b24-command-dialog>header>strong{font-size:15px;font-weight:500}
.b24-icon-button{display:grid;place-items:center;width:28px;height:28px;padding:5px;border:0;border-radius:4px;background:#f1f4f6;color:#65717c;cursor:pointer}
.b24-icon-button>svg{width:16px;height:16px}
.b24-command-search{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid #dfe5eb}
.b24-command-search>svg{width:18px;height:18px;color:#2066b0}
.b24-command-search input{width:100%;height:34px;min-width:0;padding:5px 0!important;border:0!important;outline:none!important;background:none;color:#333;font-size:14px!important}
.b24-command-results{max-height:420px;overflow:auto;padding:6px}
.b24-command-results>button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:9px 11px;border:0;border-radius:4px;background:#fff;color:#333;font:inherit;text-align:left;cursor:pointer}
.b24-command-results>button:hover,.b24-command-results>button:focus-visible{background:#eaf3ff}
.b24-command-results>button>span:first-child{display:flex;flex-direction:column;min-width:0}
.b24-command-results strong{font-size:12px;line-height:18px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.b24-command-results small{font-size:10px;line-height:16px;color:#65717c}
.b24-command-results>button>span:last-child{color:#65717c}
.b24-command-results>p{padding:16px;font-size:12px;color:#65717c}
.b24-command-hint{margin:0;padding:10px 16px;border-top:1px solid #e5e9ee;font-size:10px;color:#65717c}
body.b24-theme ::selection{background:#cfe6ff;color:#173f6c}
body.b24-theme :focus-visible{outline:2px solid #2684ed;outline-offset:2px}
body.b24-theme :is(.workflow-tile,.vehicle-option-open):focus-visible{outline-offset:-3px}
@media(max-width:1100px){.b24-appbar{gap:16px}.b24-space>span{display:none}.b24-space{min-width:auto}.b24-quick-search{max-width:280px}.b24-profile-button>span:nth-child(2){max-width:100px}body.b24-theme #app>.workspace{padding:16px}}
@media(max-width:650px){
 body.b24-theme #app>.sidebar{width:254px;inset:0 auto 0 0;z-index:2200}
 body.b24-theme #app>.workspace{margin:58px 8px 8px;padding:14px 12px;min-height:calc(100dvh - 66px);border-radius:7px}
 .b24-appbar{left:0;height:50px;padding:0 108px 0 46px;gap:8px}
 .b24-space{display:none}.b24-quick-search{min-width:0;max-width:none;flex:1;height:30px;padding:5px 8px;font-size:11px}.b24-quick-search>kbd{display:none}
 .b24-profile-button{margin:0}.b24-profile-button>span:nth-child(2),.b24-profile-button>svg{display:none}.b24-avatar{width:28px;height:28px;font-size:11px}
 .b24-profile-menu{right:96px;top:44px}
 body.b24-theme .pagehead>.global-chat-launcher{right:51px;top:9px;width:30px;min-width:30px;height:30px;min-height:30px;padding:6px}
 body.b24-theme .pagehead>.notification-bell{right:12px;top:9px;width:30px;min-width:30px;height:30px;min-height:30px;padding:6px}
 body.b24-theme .pagehead .mobile-menu-toggle{position:fixed;top:9px;left:9px;z-index:45;width:30px;height:30px;padding:5px;border:0;border-radius:3px;background:#fff;color:#526273}
 body.b24-theme .pagehead{padding-bottom:10px;margin-bottom:12px;min-height:0;gap:7px}
 body.b24-theme .pagehead h1{font-size:22px;line-height:1.3;margin:0}
 body.b24-theme .pagehead>div:first-child{flex-basis:100%}
 body.b24-theme .pagehead>div>p{font-size:10px;line-height:15px;margin-top:3px}
 body.b24-theme .pagehead .team-view-switch{flex-basis:auto;margin-top:3px}
 body.b24-theme .request-controls{gap:8px;padding:0 0 10px;margin:0 0 12px;background:none;border-radius:0}
 body.b24-theme .request-controls>.request-toolbar:not(.request-filters){gap:6px}
 body.b24-theme .request-controls .primary,body.b24-theme .request-controls .secondary{font-size:11px;min-height:32px;padding:6px 9px}
 body.b24-theme .view-switch button{font-size:11px;padding:6px 8px;min-height:30px}
 body.b24-theme .important-toast-stack.is-page-inline .important-toast{min-height:44px;max-height:44px;padding-right:32px;gap:6px}
 body.b24-theme .important-toast-stack.is-page-inline .important-compact-all{display:none}
 body.b24-theme .important-toast-stack.is-page-inline .important-notice-context{display:block;font-size:9px}
 body.b24-theme .workspace:has(>.chat-workspace){height:calc(100dvh - 66px);min-height:0;padding:10px;overflow:hidden}
 .b24-command-dialog{margin-top:60px}.b24-command-results{max-height:calc(100dvh - 240px)}
}
@media(prefers-reduced-motion:reduce){body.b24-theme *{scroll-behavior:auto!important}}
