/* «Вид» доступен независимо от таблицы, фильтров и режима касания. */
.display-controls { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; padding:6px 0; }
.display-launch { min-height:36px; padding:6px 14px; border:1px solid #b8b5ac; border-radius:8px; background:#fffef9; color:#292720; box-shadow:0 2px 7px #0002; cursor:pointer; }
.display-launch.is-custom::after { content:' •'; color:#945600; }
.display-panel { position:fixed; z-index:90; right:12px; top:112px; width:min(370px, calc(100vw - 24px)); max-height:calc(100dvh - 132px); overflow:auto; padding:16px; box-sizing:border-box; border:1px solid #b8b5ac; border-radius:12px; background:#fffef9; box-shadow:0 8px 36px #0003; }
.display-panel[hidden], .display-evidence[hidden] { display:none!important; }
.display-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.display-panel p { font-size:13px; line-height:1.4; color:#656159; }
.display-panel fieldset { margin:12px 0; border:1px solid #d5d1c8; border-radius:8px; padding:8px 12px; }
.display-panel legend { font-weight:600; font-size:14px; }
.display-panel label { display:flex; align-items:center; gap:10px; min-height:36px; font-size:14px; cursor:pointer; }
.display-panel input { width:18px; height:18px; flex:none; }
.display-panel button { min-height:36px; cursor:pointer; }
.display-panel .display-hide-anchor { margin-top:10px; }
.display-panel .hide-pop { position:static; width:auto; margin-top:6px; box-shadow:none; }
.clear-order-pop { position:fixed; z-index:80; min-width:230px; padding:6px; }
.clear-order-pop .pop-option { display:block; width:100%; min-height:38px; text-align:left; }
.display-restore { width:100%; }
.display-evidence { max-width:100%; min-height:36px; padding:6px 10px; border:1px solid #c7a452; border-radius:8px; background:#fff2cb; color:#624713; font-size:12px; cursor:pointer; }
.display-hide-zone .row-note .zone-tag,
.display-hide-reason .row-note .off-tag,
.display-hide-broken .row-note .broken-text,
.display-hide-broken .row-note .fix-link,
.display-hide-warning .row-note .warn-text,
.display-hide-lastOrder .row-note .last-order,
.display-hide-notes .row-note .note-text,
.display-hide-notes .row-note .rate-text { display:none!important; }

.display-controls { padding:0; flex:none; }
.display-card-button { align-self:flex-end; min-height:36px; padding:4px 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface); cursor:pointer; }
body.is-touch .touch-cond { flex-wrap:wrap; }
body.touch-phone .touch-cond { display:grid; grid-template-columns:minmax(0,1fr) auto; }
body.touch-phone .touch-cond .cond-summary { grid-column:1; min-width:0; }
body.touch-phone .touch-cond .display-controls { grid-column:2; grid-row:1; flex-direction:column; gap:4px; max-width:90px; }
body.touch-phone .touch-cond .chips { grid-column:1 / -1; }
body.touch-phone .display-evidence { font-size:10px; padding:3px; line-height:1.15; }
/* Длинные условия/поставки не должны сжимать список до нуля на низком телефоне. */
body.touch-phone:not(.is-stock) .content { height:100dvh; overflow-y:auto; }
body.touch-phone:not(.is-stock) .content > * { flex-shrink:0; }
body.touch-phone:not(.is-stock) .work { flex:none; height:50dvh; min-height:320px; }
