/* ГрузКурс — общий стиль как у ƏmlakKurs (🆕 №83). Подключён на всех страницах последним. */
:root{--gk-navy:#13161C!important;--gk-navy-b:rgba(184,137,28,.35)!important;--gold:#B8891C!important;--gold-light:#E6C46A!important;--bg-color:#000!important}
html,body{background:#000!important;font-family:'Manrope',system-ui,sans-serif!important;color:#f2f2f2}
header{background:#050E17!important;border-bottom:1px solid rgba(184,137,28,.25)!important}
#pageHeading{font-family:'Cormorant Garamond',Georgia,serif!important;font-weight:700!important;letter-spacing:.5px!important;text-transform:none!important;background:none!important;color:#E6C46A!important}
button:not(.chat-fab),.panel-btn,.filter-btn,.ch-btn,.msg-btn,.search-input,.gk-ico{border-radius:12px!important}
.panel-btn,.filter-btn,.mobile-sound-toggle-btn,.gk-ico,.msg-btn,.mc-x,.ek-more{background:#13161C!important;border:1px solid rgba(184,137,28,.35)!important;color:#f2f2f2!important}
.filter-btn.active,.ch-btn.sh,#btn-geo,.voice-btn,.mc-yes{background:linear-gradient(135deg,#7A560C,#B8891C,#6E4E0A)!important;border:1px solid #B8891C!important;color:#fff!important}
.search-input{background:#1D2026!important;border:1px solid rgba(184,137,28,.3)!important;color:#f2f2f2!important}
#orders-table{gap:16px!important}
tr.order-card{background:#13161C!important;border:1px solid rgba(184,137,28,.28)!important;border-radius:14px!important}
.msg-btn.msg-phone{background:#2f8a57!important;border-color:#2f8a57!important;color:#fff!important}
/* поля ввода и кнопки входа — общие */
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{background:#1D2026!important;border:1px solid rgba(184,137,28,.3)!important;color:#f2f2f2!important;border-radius:12px!important}
input[type=checkbox],input[type=radio]{accent-color:#B8891C;width:auto!important}
.gk-check{display:flex!important;align-items:center;gap:8px;text-align:left!important}
.gk-btn.main,form button[type=submit]{background:linear-gradient(135deg,#7A560C,#B8891C,#6E4E0A)!important;border:1px solid #B8891C!important;color:#fff!important;border-radius:12px!important}
.gk-btn:not(.main),.btn-ghost{background:#13161C!important;border:1px solid rgba(184,137,28,.35)!important;color:#E6C46A!important;border-radius:12px!important}

/* ===== ☀️ Светлая тема «сумерки» (🆕 №85, вместо «бумаги» №84). Включается кнопкой ☀️ в шапке, класс body.gk-light ===== */
body.gk-light{--L-bg:#2E3742;--L-card:#3B4654;--L-btn:#47535F;--L-field:#414C59;--L-line:rgba(230,196,106,.45);--L-ink:#F4F1EA;--L-mut:#B9C0C8;--L-gold:#E6C46A}
html body.gk-light,html body.gk-light .container{background:var(--L-bg)!important;color:var(--L-ink)!important}
html body.gk-light header,html body.gk-light #gkTop,html body.gk-light #stickyTop{background:#26303A!important;border-color:var(--L-line)!important}
html body.gk-light #pageHeading,html body.gk-light #pageHeading *{background:transparent!important;color:var(--L-gold)!important;box-shadow:none!important}
html body.gk-light #brandSub{background:var(--L-card)!important;color:var(--L-ink)!important;border-color:var(--L-line)!important}
html body.gk-light .panel-btn,html body.gk-light .filter-btn,html body.gk-light .mobile-sound-toggle-btn,html body.gk-light .gk-ico,html body.gk-light header button,html body.gk-light #stickyTop button,
html body.gk-light #counter,html body.gk-light #new-orders-banner,html body.gk-light .ch-btn,html body.gk-light .msg-btn,html body.gk-light .ek-more,html body.gk-light .mc-x,html body.gk-light .my-city-bar button:not(.mc-yes),
html body.gk-light #btnUpdateMobile,html body.gk-light #autoModeBtnMobile,html body.gk-light #mobileSoundToggleBtn{background:var(--L-btn)!important;border:1px solid var(--L-line)!important;color:var(--L-ink)!important}
html body.gk-light .ch-btn *,html body.gk-light #counter *,html body.gk-light #new-orders-banner *{color:var(--L-ink)!important}
html body.gk-light input:not([type=checkbox]):not([type=radio]),html body.gk-light select,html body.gk-light textarea{background:var(--L-field)!important;border:1px solid var(--L-line)!important;color:var(--L-ink)!important}
html body.gk-light input::placeholder{color:var(--L-mut)!important}
html body.gk-light .filter-btn.active,html body.gk-light #btn-geo,html body.gk-light .voice-btn,html body.gk-light .mc-yes{background:linear-gradient(135deg,#7A560C,#B8891C,#6E4E0A)!important;border-color:#7A560C!important;color:#fff!important}
html body.gk-light .my-city-bar{background:var(--L-card)!important;color:var(--L-ink)!important;border-color:var(--L-line)!important}
html body.gk-light #orders-table tr.order-card,html body.gk-light #orders-table tr.order-card *{color:var(--L-ink)!important}
html body.gk-light #orders-table tr.order-card{background:var(--L-card)!important;border:1px solid var(--L-line)!important;box-shadow:0 2px 6px rgba(0,0,0,.25)!important}
html body.gk-light #orders-table tr.order-card::after,html body.gk-light #orders-table tr.order-card.gk-new::after{background:var(--L-card)!important}
html body.gk-light #orders-table .ek-ph,html body.gk-light #orders-table .ek-bar,html body.gk-light #orders-table .ago-badge{background:var(--L-btn)!important;border-color:var(--L-line)!important}
html body.gk-light #orders-table .ek-ph *,html body.gk-light #orders-table .ek-bar,html body.gk-light #orders-table .ek-bar *{color:var(--L-gold)!important}
html body.gk-light #orders-table .ek-ton{background:#2C4560!important;color:#9FD3FF!important}
html body.gk-light #orders-table .ek-st{background:#5a1d1a!important;color:#ff9c94!important}
html body.gk-light #orders-table tr.order-card .msg-phone,html body.gk-light #orders-table tr.order-card .msg-phone *,html body.gk-light .msg-phone{background:#2f8a57!important;border-color:#2f8a57!important;color:#fff!important}
html body.gk-light #orders-table tr.order-card [class*=green],html body.gk-light #orders-table tr.order-card [class*=green] *{color:#fff!important}
#gkTheme{font-size:20px}
html body.gk-light #mobChRow .ch-btn.sh,html body.gk-light #mobChRow .ch-btn,html body.gk-light.gk-light a.ch-btn.cell-btn.sh{background:var(--L-btn)!important;color:var(--L-gold)!important;border:2px solid #B8891C!important}
html body.gk-light.gk-light a.ch-btn.cell-btn.sh *{color:var(--L-gold)!important}
html body.gk-light.public-version #pageHeading .hn::after,html body.gk-light #pageHeading .hn::after{background:var(--L-card)!important}
html body.gk-light #pageHeading .hn,html body.gk-light #pageHeading .hn *{color:var(--L-gold)!important;background-color:transparent!important}
html body.gk-light #orders-table tr.order-card .action-btn{background:var(--L-btn)!important;border:1px solid var(--L-line)!important}
html body.gk-light #orders-table tr.order-card .action-btn,html body.gk-light #orders-table tr.order-card .action-btn *{color:var(--L-ink)!important}
html body.gk-light #orders-table tr.order-card .btn-give,html body.gk-light #orders-table tr.order-card .phone-link{background:#2f8a57!important;border-color:#2f8a57!important}
html body.gk-light #orders-table tr.order-card .btn-give,html body.gk-light #orders-table tr.order-card .btn-give *,html body.gk-light #orders-table tr.order-card .phone-link,html body.gk-light #orders-table tr.order-card .phone-link *{color:#fff!important}
html body.gk-light{--gk-navy:#47535F!important;--gk-navy-b:rgba(230,196,106,.45)!important}
html body.gk-light .gk-run::after,html body.gk-light #bellBox .gk-bi.gk-run::after,html body.gk-light .own-it.gk-run::after,html body.gk-light.public-version #pageHeading .hn::after{background:var(--L-btn)!important}
html body.gk-light .filter-btn.active,html body.gk-light .filter-btn.geo-pulse.active{background:linear-gradient(135deg,#7A560C,#B8891C,#6E4E0A)!important;border-color:#B8891C!important;color:#fff!important}
html body.gk-light .filter-btn.active.gk-run::after{background:linear-gradient(135deg,#7A560C,#B8891C,#6E4E0A)!important}
html body.gk-light .filter-btn.active *{color:#fff!important}
html body.gk-light .ekb{background:var(--L-card)!important;border-color:var(--L-line)!important}

/* ===== 🖥 Компьютер: пульт и сайт водителей — 2 колонки, шире (🆕 №89) ===== */
@media (min-width:1100px){
  body .container{max-width:1600px!important;margin-left:auto!important;margin-right:auto!important}
  body #orders-table{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;max-width:none!important;padding:0!important}
  body #orders-table tr.order-card{margin:0!important;min-width:0!important;max-width:100%!important;overflow:hidden}
  body #orders-table tr.order-card td{min-width:0!important;max-width:100%!important}
  body #orders-table .ek-route,body #orders-table .ek-cargo,body #orders-table .ek-ow,body #orders-table .ek-full,body #orders-table .ek-x{overflow-wrap:anywhere;min-width:0}
  html body .filter-btn.sub-new,html body .filter-btn:has(.sub-new-count){padding-right:36px!important}
  html body .filter-btn.sub-new .sub-new-count,html body .filter-btn .sub-new-count{top:50%!important;right:7px!important;transform:translateY(-50%)!important}
}

/* 🆕 №93 «🚚 Перевозчики» — первая кнопка в ряду фильтров */
#carBar.filter-btn{border:2px solid #7FB2FF!important;font-weight:800}
#carBar.filter-btn{white-space:normal!important;line-height:1.15!important;text-align:center;overflow:hidden}
@media (max-width:768px){#carBar.filter-btn{flex-direction:column!important;justify-content:center!important;gap:0!important;font-size:.82rem!important;padding:4px 2px!important}#carBar #carN{display:block}}
@media (max-width:768px){#carBar .cb-i{display:none}}

/* 🆕 №97 красная цифра новых во Входящих на ⚙️ */
#gkGear{position:relative}#gkGear.gk-has-n::after{content:attr(data-n);position:absolute;top:-6px;right:-6px;min-width:22px;height:22px;padding:0 5px;border-radius:11px;background:#d9534f;color:#fff;font:800 13px/22px Manrope,system-ui,sans-serif;text-align:center;box-sizing:border-box}
/* 🆕 №99 огонёк по рамке новых заказов снова виден: рамка карточки не закрывает свет, полоса шире */
#orders-table tr.order-card.gk-new{border-color:transparent!important}
#orders-table tr.order-card.gk-new::after{inset:3px!important;border-radius:12px!important}
#orders-table tr.order-card.gk-new::before{width:200%!important;height:200%!important;min-width:900px;min-height:900px}
/* 🆕 №100 огонёк по рамке новых заказов — и на компьютере (как на телефоне) */
@media (min-width:769px){
  #orders-table tr.order-card.gk-new{position:relative!important;overflow:hidden!important;isolation:isolate!important;border-color:transparent!important;background:transparent!important}
  #orders-table tr.order-card.gk-new::before{content:"";position:absolute;left:50%;top:50%;width:200%;height:200%;min-width:1800px;min-height:1800px;z-index:-2;pointer-events:none;background:conic-gradient(transparent 0 70%,#9C7417 80%,#FFE29A 86%,#9C7417 92%,transparent 98%);transform:translate(-50%,-50%)}
  #orders-table tr.order-card.gk-new.gk-hot::before{background:conic-gradient(transparent 0 70%,#7a1c16 80%,#ff7a6e 86%,#7a1c16 92%,transparent 98%)!important}
  #orders-table tr.order-card.gk-new.gk-vis::before{animation:gkRun var(--gk-dur,2s) linear infinite}
  #orders-table tr.order-card.gk-new::after{content:"";position:absolute;inset:3px;border-radius:12px;background:#181818;z-index:-1;pointer-events:none}
  body.gk-sp0 #orders-table tr.order-card.gk-new::before{animation:none!important;background:#B8891C!important}
  body.gk-sp0 #orders-table tr.order-card.gk-new.gk-hot::before{background:#d9534f!important}
  html.gk-scrolling #orders-table tr.order-card.gk-new.gk-vis::before{animation-play-state:paused}
}

/* ===== 🆕 №101 Кнопки как в ƏmlakKurs: тёмно-синие (#0F2233, рамка #2C4560), включённые — зелёные, «Обновление» — золотая рамка ===== */
body:not(.gk-light) .panel-btn,body:not(.gk-light) .filter-btn,body:not(.gk-light) .mobile-sound-toggle-btn,body:not(.gk-light) .desktop-sound-toggle-btn,
body:not(.gk-light) .gk-ico,body:not(.gk-light) .ek-more,body:not(.gk-light) .mc-x,body:not(.gk-light) #counter,body:not(.gk-light) #new-orders-banner,
body:not(.gk-light) .own-sq,body:not(.gk-light) .msg-btn:not(.msg-phone),body:not(.gk-light) #mobChRow .ch-btn,body:not(.gk-light) .search-input{background:#0F2233!important;border-color:#2C4560!important;color:#fff!important}
body:not(.gk-light) .own-sq{border-color:var(--c,#2C4560)!important}
body:not(.gk-light) .filter-btn.active,body:not(.gk-light) .filter-btn.geo-pulse.active{background:#0F2233!important;border:1px solid #B8891C!important;color:#E6C46A!important}
body:not(.gk-light) .filter-btn.active *{color:#E6C46A!important}
body:not(.gk-light) #btn-geo,body:not(.gk-light) .voice-btn{background:linear-gradient(135deg,#7A560C,#B8891C,#6E4E0A)!important;border-color:#B8891C!important;color:#fff!important}
body:not(.gk-light) .mobile-sound-toggle-btn.state-on,body:not(.gk-light) .desktop-sound-toggle-btn.state-on,body:not(.gk-light) .panel-btn.state-on{background:#2f8a57!important;border-color:#2f8a57!important;color:#fff!important}
body:not(.gk-light) .panel-btn.btn-update{background:#0F2233!important;border:1px solid #B8891C!important;color:#E6C46A!important}
body:not(.gk-light) .gk-run::after,body:not(.gk-light) .filter-btn.sub-new::after{background:#0F2233!important}

/* 🆕 №109 «Моя заявка»: плашка внизу экрана и окно итога */
#gkWorkBar{position:fixed;left:0;right:0;bottom:0;z-index:2600;background:#0F2233;border-top:2px solid #B8891C;padding:10px 16px calc(10px + env(safe-area-inset-bottom));color:#fff;box-shadow:0 -6px 20px #0008;box-sizing:border-box}
#gkWorkBar.block{border:3px solid #e5484d}
#gkWorkBar.late{border-top-color:#e5484d}
body.gk-wk-on{padding-bottom:150px}
.gk-wk-msg{color:#ff9c94;font-weight:700;font-size:14px;margin-bottom:8px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.gk-wk-msg button{min-height:40px;padding:0 12px;border-radius:12px;border:1px solid #e5484d;background:#e5484d22;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.gk-wk-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:14px}
.gk-wk-time{color:#E6C46A;font-weight:700;white-space:nowrap}
#gkWorkBar.late .gk-wk-time{color:#ff9c94;white-space:normal;text-align:right}
.gk-wk-route{font-size:13px;color:#cfd6df;margin:3px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gk-wk-btns{display:flex;gap:8px;align-items:stretch}
.gk-wk-btns>*{min-height:44px;display:flex;align-items:center;justify-content:center;border-radius:12px;font-size:14px;font-weight:700;box-sizing:border-box;margin:0!important}
.gk-wk-btns .phone-link{flex:1 1 auto;min-width:0;padding:0 10px;background:#2f8a57!important;border:0;color:#fff!important;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gk-wk-btns .gk-wk-more{flex:0 0 56px;background:transparent;border:1px solid #2C4560;color:#fff;cursor:pointer}
.gk-wk-btns .gk-wk-itog{flex:1 1 auto;background:#B8891C;border:0;color:#fff;cursor:pointer}
.gk-wk-itog{animation:gkWkBlink 1.2s ease-in-out infinite}
@keyframes gkWkBlink{50%{box-shadow:0 0 0 4px #E6C46A88}}
@media (prefers-reduced-motion:reduce){.gk-wk-itog{animation:none}}
.gk-wk-lock{opacity:.7;cursor:default;white-space:nowrap}
.gk-wk-call{margin:8px 0}
.gk-wk-call .phone-link{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:12px;background:#2f8a57!important;color:#fff!important;font-weight:700;text-decoration:none;border:0}
.gk-wk-list{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.gk-wk-list button{min-height:44px;padding:8px 12px;text-align:left;border-radius:12px;border:1px solid #2C4560;background:#0F2233;color:#fff;font:inherit;font-size:15px;font-weight:600;cursor:pointer}
.gk-wk-list button.deal{background:#2f8a57;border-color:#2f8a57}
.gk-wk-other{display:flex;gap:8px;margin-bottom:10px}
.gk-wk-other[hidden]{display:none}
.gk-wk-other input{flex:1;min-width:0;min-height:44px;padding:0 10px;border-radius:12px;border:1px solid #2C4560;background:#13161C;color:#fff;font:inherit;font-size:16px}
.gk-wk-other button{min-height:44px;padding:0 14px;border-radius:12px;border:0;background:#B8891C;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.ekc .ek-cb .order-actions:has(.booked-note){flex-wrap:wrap!important}
body.gk-wk-on .copy-toast{bottom:170px}

/* 🆕 №114 Кабинет открывается только во «Владельце» и «Админке» */
#gkGear,#btn-panel-key{display:none!important}
body.gk-owner #gkGear{display:inline-flex!important}
@media(min-width:769px){body.gk-owner #btn-panel-key{display:inline-flex!important}}

/* 🆕 №112 🛡 Защита экрана */
body.gk-sh *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
body.gk-sh input,body.gk-sh textarea{-webkit-user-select:text!important;user-select:text!important}
@media print{body.gk-sh *{display:none!important}}
/* 🆕 №116 своих причин итога может быть сколько угодно: окно прокручивается */
#gkWorkModal .modal-box{max-height:92vh;max-height:92dvh;overflow-y:auto}
