#orders { --desk-red:#a61d32; --desk-ink:#221e22; --desk-muted:#695f63; --desk-line:#e6dfe0; color:var(--desk-ink); min-width:0; }
.desk-header,.desk-top,.desk-list-heading,.desk-detail-meta,.desk-row-meta,.desk-row-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.desk-header { margin-bottom:24px; flex-wrap:wrap; }
.desk-header p { margin-bottom:6px; color:var(--desk-muted); font-size:.83rem; font-weight:650; }
.desk-header h1 { font-size:clamp(2rem,3.7vw,3.5rem); letter-spacing:-.056em; line-height:1.08; }
#desk-new { background:var(--desk-red); border-radius:10px; color:white; padding:11px 17px; }
#desk-new span { font-size:1.05em; }
#desk-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:24px; }
.desk-stat { position:relative; display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; min-height:102px; gap:12px; border:1px solid var(--desk-line); border-radius:14px; padding:15px 19px; background:white; color:var(--desk-ink); text-align:left; }
.desk-stat span { display:flex; align-items:center; gap:8px; font-size:.83rem; font-weight:600; color:#534b50; }
.desk-stat span::before,.desk-badge::before,#desk-live::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--dot,#8b8186); flex:none; }
.desk-stat strong { font-size:clamp(1.7rem,2.6vw,2.5rem); line-height:1; letter-spacing:-.055em; font-variant-numeric:tabular-nums; }
.desk-stat.new { --dot:#ba3547; }
.desk-stat::after { content:'↗'; position:absolute; bottom:14px; right:16px; color:#796d73; font-size:.9rem; }
.desk-stat:hover { border-color:#aaa2a5; filter:none; }
.desk-stat[aria-pressed=true] { background:#252226; border-color:#252226; color:white; }
.desk-stat[aria-pressed=true] span,.desk-stat[aria-pressed=true]::after { color:white; }
.desk-stat.working,.desk-badge.working { --dot:#b07220; }
.desk-stat.transit,.desk-badge.transit { --dot:#4778aa; }
.desk-stat.done,.desk-badge.done { --dot:#258263; }
.desk-work { background:white; border:1px solid var(--desk-line); border-radius:18px; overflow:clip; box-shadow:0 6px 24px #2b172109; }
.desk-top { padding:14px 16px; border-bottom:1px solid var(--desk-line); flex-wrap:wrap; gap:8px; }
#desk-tabs { display:flex; flex-wrap:wrap; gap:3px; padding:3px; background:#f3f3f3; border-radius:10px; }
#desk-tabs button,.desk-back,.desk-link { border:0; background:transparent; color:var(--desk-muted); font-weight:650; font-size:.85rem; }
#desk-tabs button { padding:8px 10px; border-radius:7px; }
#desk-tabs button[aria-pressed=true] { background:#fff; color:#231f21; box-shadow:0 1px 4px #20181f22; }
#desk-tabs button:hover,.desk-back:hover,.desk-link:hover { color:var(--desk-red); }
#desk-live { display:flex; align-items:center; gap:7px; color:var(--desk-muted); font-size:.74rem; white-space:nowrap; }
#desk-live[data-mode=live] { color:#23664e; --dot:#2b956a; }
#desk-live[data-mode=waiting] { --dot:#c18d28; }
#desk-live[data-mode=offline] { --dot:#bf5261; }
.desk-columns { display:grid; grid-template-columns:minmax(245px,.79fr) minmax(0,1.38fr); min-height:460px; align-items:start; }
.desk-queue { min-width:0; display:flex; flex-direction:column; border-right:1px solid var(--desk-line); align-self:stretch; background:#fbf9f9; }
.desk-filters { display:grid; gap:9px; padding:18px 18px 14px; }
.desk-list-heading { justify-content:flex-start; margin-bottom:3px; }
.desk-list-heading h2 { font-size:1.1rem; }
#desk-count { font-size:.75rem; color:#60565b; font-weight:650; background:#ece6e8; padding:2px 7px; border-radius:20px; }
.desk-filters input,.desk-filters select { padding:9px 10px; font-size:.84rem; border-color:#d9d1d4; }
#order-list { max-height:76vh; overflow:auto; scrollbar-width:thin; padding:2px 8px 12px; }
#orders .desk-row { width:100%; display:grid; gap:8px; text-align:left; padding:13px 12px; border:1px solid transparent; border-bottom-color:#ece6e8; border-radius:0; background:transparent; color:var(--desk-ink); }
#orders .desk-row:hover { background:#f7f2f3; filter:none; }
#orders .desk-row[aria-pressed=true] { border-radius:10px; border-color:#e8c1ca; background:#fbf0f2; box-shadow:inset 3px 0 #a6243b; }
.desk-row-meta { align-items:baseline; flex-wrap:wrap; gap:2px 6px; color:var(--desk-muted); font-size:.71rem; font-weight:550; }
.desk-row-meta time { font-size:.67rem; }
.desk-row-title,.desk-preview { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.desk-row-title { font-size:.94rem; }
.desk-row-foot { justify-content:flex-start; gap:8px; }
.desk-preview { font-size:.76rem; color:var(--desk-muted); font-weight:450; }
.desk-badge { display:inline-flex; align-items:center; gap:5px; width:max-content; max-width:100%; border-radius:20px; padding:3px 8px; color:#724f19; background:#f8f0e1; font-size:.74rem; font-weight:650; line-height:1.4; }
.desk-badge::before { width:5px; height:5px; }
.desk-badge.new { background:#fbe0e5; color:#8e263a; --dot:#b73551; }
.desk-badge.done { background:#e5f3ea; color:#216447; }
.desk-badge.transit { background:#e9f1f8; color:#325d82; }
.desk-badge.off { background:#eeebed; color:#5a5256; }
#desk-detail { min-width:0; padding:clamp(18px,2.4vw,34px); overflow-wrap:anywhere; }
.desk-detail-header { border-bottom:1px solid var(--desk-line); padding-bottom:16px; }
.desk-detail-meta { justify-content:flex-start; color:var(--desk-muted); font-size:.81rem; margin-bottom:10px; }
.desk-detail-meta { flex-wrap:wrap; }
.desk-permalink { margin-left:auto; color:var(--desk-red); text-underline-offset:2px; }
.desk-detail-header h2 { font-size:clamp(1.4rem,2.3vw,2.1rem); line-height:1.15; letter-spacing:-.04em; }
.desk-detail-header p,.desk-muted,.desk-empty p,.desk-idle p { color:var(--desk-muted); font-size:.85rem; line-height:1.5; }
.desk-detail-header p { margin-top:7px; }
.desk-detail-body { display:grid; gap:20px; padding-top:18px; }
.desk-detail-body h3 { font-size:.95rem; margin:0 0 10px; }
.desk-info { display:grid; gap:15px; }
.desk-info:empty,.desk-history:empty { display:none; }
.desk-vehicle { display:flex; gap:11px; align-items:center; border:1px solid var(--desk-line); border-radius:10px; padding:8px 12px; color:var(--desk-ink); background:#faf9f9; text-decoration:none; font-size:.87rem; }
.desk-vehicle img { width:68px; height:45px; object-fit:cover; border-radius:6px; }
.desk-vehicle small { display:block; margin-top:4px; color:var(--desk-muted); }
.desk-vehicle b { margin-left:auto; color:var(--desk-red); }
.desk-request-text p,.desk-history-list p,.desk-bubble p { font-size:.88rem; line-height:1.45; }
.desk-route { padding:16px; background:#f7f7f7; border:1px solid #e6e4e5; border-radius:12px; }
.desk-route .desk-route-progress { display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px 12px; margin:0 0 16px; align-items:center; }
.desk-route-progress strong { color:#8d2238; font-size:.88rem; }
.desk-route-progress span { color:#665f63; font-size:.78rem; font-variant-numeric:tabular-nums; }
.desk-route ol { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:0; padding:0; margin:0; list-style:none; }
.desk-route li { display:grid; align-content:start; position:relative; gap:6px; color:#71666c; font-size:.65rem; }
.desk-route li::before { content:''; box-sizing:border-box; width:10px; height:10px; border-radius:50%; border:2px solid #c4b8bd; background:#f7f4f5; z-index:1; }
.desk-route li:not(:last-child)::after { content:''; height:2px; background:#d9d0d4; position:absolute; top:4px; left:9px; right:0; }
.desk-route li.past::before,.desk-route li.past::after,.desk-route li.current::before { background:#a42640; border-color:#a42640; }
.desk-route li.current { color:#8d2238; font-weight:750; }
.desk-route li.current::before { box-shadow:0 0 0 3px #edd2d9; }
.desk-route p { margin-top:10px; }
.desk-history-list { list-style:none; padding:0 0 0 8px; margin:0; max-height:220px; overflow:auto; }
.desk-history-list li { position:relative; padding:0 0 11px 16px; border-left:1px solid var(--desk-line); font-size:.83rem; }
.desk-history-list li::before { content:''; width:7px; height:7px; position:absolute; left:-4px; top:5px; background:#bcb0b6; border-radius:50%; }
.desk-history-list li:first-child::before { background:var(--desk-red); }
.desk-history-list li:last-child { padding-bottom:0; }
.desk-history-list time { display:inline-block; margin-left:8px; font-size:.73rem; color:var(--desk-muted); }
.desk-history-list p { margin-top:4px; }
.desk-action-form,.desk-compose { display:grid; gap:10px; }
.desk-action-form { padding:15px; background:#f8f5f6; border:1px solid var(--desk-line); border-radius:12px; }
.desk-action-form h3 { margin:0; }
.desk-action-form button,.desk-compose button { justify-self:start; background:#37292f; font-size:.84rem; padding:9px 13px; }
.desk-compose button { background:var(--desk-red); }
.desk-compose details { font-size:.8rem; color:var(--desk-muted); }
.desk-compose details label { margin-top:8px; }
.desk-compose summary,.desk-bubble summary { cursor:pointer; }
.desk-thread { display:flex; flex-direction:column; align-items:flex-start; gap:8px; max-height:315px; overflow:auto; padding:2px 2px 10px; scrollbar-width:thin; }
.desk-bubble { max-width:90%; border-radius:11px 11px 11px 2px; background:#f2eff0; padding:9px 12px; }
.desk-bubble.own { align-self:end; background:#f7e9ed; border-radius:11px 11px 2px; }
.desk-bubble small,.desk-bubble details { font-size:.72rem; color:var(--desk-muted); }
.desk-bubble p { margin-top:4px; }
.desk-management { padding-top:10px; border-top:1px solid var(--desk-line); }
.desk-link,.desk-back { padding:6px 0; }
.desk-back { display:none; }
.desk-empty,.desk-idle { padding:24px 14px; display:grid; gap:8px; }
.desk-empty h3,.desk-idle h2 { font-size:1rem; }
.desk-idle { min-height:320px; align-content:center; text-align:center; justify-items:center; }
.desk-idle-mark { color:#92253b; font-size:1.5rem; border-radius:12px; background:#f7edef; padding:4px 12px; }
@media(max-width:1100px) and (min-width:901px) {
  .desk-columns { grid-template-columns:minmax(210px,.82fr) minmax(0,1.2fr); }
  .desk-route ol { grid-template-columns:repeat(4,1fr); row-gap:8px; }
}
@media(max-width:900px) {
  .desk-columns { display:block; min-height:0; }
  .desk-queue { border:0; }
  #desk-detail,.desk-open .desk-queue { display:none; }
  .desk-open #desk-detail { display:block; }
  .desk-back { display:block; margin-bottom:14px; }
  #order-list { max-height:none; }
  .desk-stat { min-height:84px; padding:12px; }
}
@media(max-width:600px) {
  #desk-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:15px; }
  .desk-header { margin-bottom:16px; gap:13px; }
  .desk-work { border-radius:13px; }
  .desk-top { padding:10px; }
  #desk-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; }
  #desk-tabs button { min-height:42px; padding:8px 2px; }
  .desk-filters { padding:12px; }
  .desk-route ol { grid-template-columns:1fr; gap:0; }
  .desk-route li { display:flex; gap:10px; align-items:center; min-height:22px; font-size:.76rem; }
  .desk-route li:not(:last-child)::after { width:2px; height:100%; top:10px; left:4px; right:auto; }
}
.shipment-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(165px,100%),1fr));gap:10px 18px;margin:12px 0 16px}
.shipment-facts dt{font-size:.82rem;color:#5c6068}.shipment-facts dd{margin:2px 0 0;font-weight:650;overflow-wrap:anywhere}
.installation-prices:not([hidden]){background:white;color:var(--desk-ink);border:1px solid var(--desk-line);border-radius:12px;margin:0 0 14px;padding:12px 16px}
.installation-prices summary,.installation-jobs summary{cursor:pointer;font-weight:650}.installation-jobs h4{margin:0;font-size:1rem}
.installation-job,.installation-price{border-top:1px solid var(--desk-line);padding-block:12px;margin-top:8px}
.installation-price{display:flex;justify-content:space-between;align-items:center;gap:12px}
.installation-price small{display:block;color:var(--desk-muted)}.installation-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-block:8px}
.installation-form{margin:12px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));align-items:end;gap:10px}
.installation-form label{display:grid;gap:4px}.installation-form label:has(input[type=checkbox]){display:flex;align-items:center}

#orders .desk-header { margin-bottom:18px; gap:12px 20px; }
#orders .desk-header h1 { margin:0; font-size:clamp(1.65rem, 2.7vw, 2.5rem); line-height:1.15; letter-spacing:-.045em; }
#orders .desk-header p { margin:5px 0 0; color:var(--desk-muted); font-weight:500; }
.desk-header-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px 18px; }
#desk-new { min-height:42px; }
#orders .desk-work { border-radius:16px; }
#orders .desk-top { padding:8px 14px; min-width:0; }
#desk-tabs { display:flex; width:auto; flex-wrap:wrap; gap:2px; padding:0; background:none; }
#desk-tabs button { color:#534e53; min-height:38px; padding:8px 12px; border-radius:8px; }
#desk-tabs button[aria-pressed=true] { box-shadow:none; background:#f8e9ed; color:#881831; }
.desk-top > .installation-prices:not([hidden]) { margin:0; padding:0; max-width:100%; border:0; }
.desk-top > .installation-prices summary { min-height:38px; padding:8px 10px; color:#564d53; font-size:.83rem; border-radius:8px; }
.desk-top > .installation-prices summary:hover { background:#f6f4f5; }
.desk-top > .installation-prices[open] { width:100%; padding:6px 0 8px; border-top:1px solid var(--desk-line); border-radius:0; }
.desk-top > .installation-prices[open] summary { width:fit-content; }
#desk-stats { display:flex; gap:7px; flex-wrap:wrap; padding:10px 16px; margin:0; border-bottom:1px solid var(--desk-line); }
#orders .desk-stat { display:inline-flex; flex-direction:row; align-items:center; justify-content:flex-start; gap:7px; padding:5px 9px; min-height:34px; border-radius:8px; border-color:transparent; background:transparent; }
#orders .desk-stat::after,.desk-stat.all span::before { content:none; }
#orders .desk-stat span { color:#5b5358; font-size:.78rem; }
#orders .desk-stat strong { padding:2px 5px; border-radius:5px; background:#f1eff0; color:#51494e; font-size:.76rem; letter-spacing:0; line-height:1.25; }
#orders .desk-stat:hover { border-color:#ded7da; background:#f8f7f7; }
#orders .desk-stat[aria-pressed=true] { background:#312c30; }
#orders .desk-stat[aria-pressed=true] span { color:white; }
#orders .desk-stat[aria-pressed=true] strong { color:white; background:#524b50; }
#orders .desk-top :focus-visible,#orders .desk-stat:focus-visible,.desk-queue :focus-visible,#desk-new:focus-visible { outline:2px solid var(--desk-red); outline-offset:2px; }
#orders .desk-queue { background:#faf9f9; }
.desk-filters { padding:16px 14px 12px; gap:8px; }
.desk-list-heading { flex-wrap:wrap; gap:6px; }
#desk-reset-filters { margin-left:auto; padding:5px 0 5px 5px; font-size:.76rem; color:var(--desk-red); }
.desk-search-field { display:block; position:relative; color:#746b71; }
.desk-search-field::before,.desk-search-field::after { position:absolute; content:''; pointer-events:none; }
.desk-search-field::before { top:calc(50% - 7px); left:12px; width:11px; height:11px; border:1.7px solid currentColor; border-radius:50%; }
.desk-search-field::after { top:calc(50% + 5px); left:22px; width:6px; height:1.7px; transform:rotate(45deg); background:currentColor; }
#desk-search,#desk-status { width:100%; min-height:40px; background-color:#fff; }
#desk-search { padding-left:35px; }
#order-list { padding:0 8px 9px; }
#orders .desk-row { min-width:0; margin:2px 0; gap:5px; padding:12px 10px; border-radius:8px; }
#orders .desk-row[aria-pressed=true] { border-radius:8px; border-color:#ecd3da; background:#fcf1f3; }
.desk-row-title { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow-wrap:anywhere; line-height:1.32; }
.desk-row-author { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--desk-muted); font-size:.73rem; line-height:1.35; }
.desk-row-foot { flex-wrap:wrap; gap:4px 7px; }
.desk-queue .desk-empty { padding:20px 10px; }
@media(min-width:901px) {
  #orders .desk-columns { grid-template-columns:clamp(245px,31%,350px) minmax(0,1fr); }
}
@media(max-width:900px) {
  #orders.desk-open #desk-stats { display:none; }
}
@media(max-width:600px) {
  #orders .desk-header { gap:10px; margin-bottom:12px; }
  .desk-header-actions { gap:7px 12px; flex-wrap:wrap; }
  #orders .desk-top { padding:6px; }
  #desk-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; }
  #desk-tabs button { min-height:40px; padding:6px 3px; }
  #desk-stats { gap:3px; padding:7px; }
  #orders .desk-stat { padding:5px 7px; min-height:37px; }
  .desk-top > .installation-prices:not([hidden]) { width:100%; }
  .desk-top > .installation-prices summary { width:fit-content; }
  .desk-top .installation-price { flex-wrap:wrap; }
  .desk-top .installation-price > div { width:100%; }
}

#orders { scroll-margin-top:82px; }
#orders .desk-columns { display:block; min-height:0; }
#orders .desk-top[hidden],#orders #desk-tabs[hidden],#orders #desk-stats[hidden],
#orders #desk-new[hidden],#orders:not(.desk-open) #desk-detail,#orders.desk-open .desk-queue { display:none; }
#orders .desk-top { justify-content:flex-start; }
#orders .desk-top > .installation-prices { width:100%; }
#orders .desk-queue { background:#fff; border:0; }
#orders .desk-filters { grid-template-columns:minmax(0,1fr) minmax(160px,240px); gap:12px; padding:clamp(14px,2vw,23px); }
#orders .desk-filters:has(#desk-kind:not([hidden])) { grid-template-columns:minmax(0,1.5fr) minmax(135px,.85fr) minmax(135px,.85fr); }
#desk-kind { width:100%; min-width:0; min-height:40px; background-color:#fff; }
#orders .desk-list-heading { grid-column:1 / -1; margin-bottom:0; }
#orders .desk-list-heading h2 { font-size:1.12rem; line-height:1.3; }
#orders .desk-search-field:has(~ #desk-status[hidden]) { grid-column:1/-1; }
#orders #order-list { max-height:none; overflow:visible; padding:0; }
#orders .desk-row {
  width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto 30px; align-items:center;
  margin:0; padding:14px clamp(14px,2vw,23px); gap:14px; color:var(--desk-ink);
  text-align:left; background:#fff; border:0; border-top:1px solid var(--desk-line); border-radius:0; box-shadow:none;
}
#orders .desk-row:has(.desk-row-photo) { grid-template-columns:66px minmax(0,1fr) auto 30px; }
#orders .desk-row:hover,#orders .desk-row:focus-visible { background:#fcf6f7; }
#orders .desk-row:focus-visible { outline-offset:-3px; }
.desk-row-photo { width:66px; height:50px; object-fit:cover; border-radius:7px; background:#f3f2f3; }
.desk-row-body { display:grid; gap:4px; min-width:0; }
#orders .desk-row-body .desk-row-title { font-size:1rem; line-height:1.35; }
#orders .desk-row-foot { flex-direction:column; align-items:flex-end; gap:5px; }
.desk-row-foot time { color:var(--desk-muted); font-size:.74rem; font-weight:500; }
.desk-row-arrow { display:grid; place-items:center; width:28px; height:28px; color:#8a7079; border:1px solid #e9e1e4; border-radius:7px; font-size:.85rem; }
.desk-logist-heading { width:100%; color:var(--desk-ink); font-size:.87rem; font-weight:650; }
#desk-stats:has(.desk-logist-heading) { padding:clamp(14px,2vw,23px); gap:8px; }
#orders .desk-stat[data-logist] { min-height:38px; max-width:100%; border-color:var(--desk-line); }
#orders .desk-stat[data-logist] span { overflow-wrap:anywhere; }
#orders .desk-stat[data-logist="none"] { --dot:#b07220; }
#orders .desk-stat[data-logist=""] span::before { content:none; }
.desk-logist-name { color:#394d68; font-size:.82rem; font-weight:600; overflow-wrap:anywhere; }
.desk-logist-name.unassigned { color:#815319; }
#orders .desk-empty { padding:35px 18px; border-top:1px solid var(--desk-line); }
#orders .desk-back { display:inline-flex; min-height:36px; align-items:center; margin:0 0 14px; color:var(--desk-red); }
#orders #desk-detail { padding:clamp(15px,2.2vw,30px); }
@media(max-width:600px) {
  #orders .desk-filters,#orders .desk-filters:has(#desk-kind:not([hidden])) { grid-template-columns:minmax(0,1fr); gap:8px; }
  #orders .desk-row,#orders .desk-row:has(.desk-row-photo) { grid-template-columns:minmax(0,1fr) auto; gap:9px; padding:13px; }
  #orders .desk-row-photo,#orders .desk-row-arrow { display:none; }
  #orders .desk-row-foot { max-width:112px; text-align:right; }
  #orders .desk-row-body .desk-row-title { font-size:.9rem; }
}
