/* Administrative workspace for the approved request design. */
#panel-devqueue{--r-sm:7px}
#panel-devqueue .dq-bar{border-bottom:1px solid var(--border);padding-bottom:16px;gap:8px}
#panel-devqueue .logf{border:0;border-radius:0;background:transparent;color:var(--muted);padding:12px 8px;border-bottom:2px solid transparent}
#panel-devqueue .logf.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}
#panel-devqueue .dq-layout{grid-template-columns:254px minmax(0,1fr);gap:28px;align-items:stretch}
#panel-devqueue .dq-list{max-height:calc(100dvh - 250px);overflow:auto;scrollbar-gutter:stable;gap:10px}
#panel-devqueue .dq-row{display:flex;flex-direction:column;gap:10px;padding:18px;border-radius:10px}
#panel-devqueue .dq-row[aria-current="true"]{box-shadow:none;background:var(--accent-soft);border-color:var(--accent)}
#panel-devqueue .dq-num{font-weight:400;font-size:11px}
#panel-devqueue .dq-row .n{display:none}
#panel-devqueue .dq-detail{min-width:0;min-height:560px;border-radius:12px;box-shadow:none;margin:0}
#panel-devqueue .dq-detail:has(#dr-content){padding:0;height:calc(100dvh - 250px);min-height:560px;overflow:hidden}
#panel-devqueue .dr-content{height:100%;padding:24px;gap:16px;overflow:hidden}
#panel-devqueue .dr-card-heading h2{font-size:22px}
#panel-devqueue .dr-card-actions{gap:8px}
#panel-devqueue .dr-content>.dr-sections{flex-direction:row;gap:8px;padding:0;border:0;border-bottom:1px solid var(--border);border-radius:0;overflow-x:auto}
#panel-devqueue .dr-sections button{white-space:nowrap;font-size:12px;padding:12px 4px;border-radius:0;border-bottom:2px solid transparent;flex-shrink:0}
#panel-devqueue .dr-sections button[aria-pressed="true"]{border-bottom-color:var(--accent);background:transparent}
#panel-devqueue .dr-detail{display:flex;flex-direction:column;gap:0;min-height:0}
#panel-devqueue .dr-main{width:100%;height:100%;flex:1}
#panel-devqueue .dr-main>.dr-box{border:0;padding:8px 0;border-radius:0}
#panel-devqueue .dr-main>.dr-callout{margin-bottom:16px}
#panel-devqueue .dr-chat{border:0;border-radius:0}
#panel-devqueue .dr-chat-heading{padding:8px 0 16px}
#panel-devqueue .dr-thread{padding:20px 0}
#panel-devqueue .dr-compose{padding:16px 0 0}
#panel-devqueue .btn-ghost{color:var(--text);border:1px solid var(--border);background:var(--surface);padding:8px 12px}
#panel-devqueue .btn-ghost:hover{border-color:var(--accent);background:var(--surface-2)}
#panel-devqueue .dr-status-picker{font-size:12px;color:var(--muted)}
#panel-devqueue .dr-status-picker select{padding:7px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text)}
#panel-devqueue .dr-content .dr-title-line{gap:12px}
#panel-devqueue .dr-box h3{font-size:16px}
#panel-devqueue .dq-sec h5{color:var(--text);font-size:14px}
#panel-devqueue [hidden]{display:none!important}
@media(max-width:1100px){
  #panel-devqueue .dq-layout{grid-template-columns:220px minmax(0,1fr);gap:16px}
  #panel-devqueue .dr-content{padding:18px}
}
@media(max-width:760px){
  #panel-devqueue .dq-layout{grid-template-columns:minmax(0,1fr)}
  #panel-devqueue .dq-list{max-height:260px}
  #panel-devqueue .dq-detail:has(#dr-content){height:75dvh;min-height:600px}
  #panel-devqueue .dr-content{padding:16px;overflow:auto}
  #panel-devqueue .dr-content>.dr-detail{min-height:340px;flex:1}
  #panel-devqueue .dr-card-actions{align-items:stretch}
  #panel-devqueue .dr-card-actions>*{max-width:100%}
  #panel-devqueue .dq-bar select{max-width:100%}
}

body.dq-workspace .layout>.side{display:none}
body.dq-workspace .header>.b1{display:none}
body.dq-workspace .wrap{max-width:none;width:100%;padding:28px 32px;min-width:0;display:flex;flex-direction:column;min-height:0}
body.dq-workspace .layout{min-height:0;flex:1;height:calc(100dvh - 60px)}
body.dq-workspace .page-head{border:0;padding:0;margin-bottom:20px}
body.dq-workspace .page-head h2{font-size:24px}
body.dq-workspace #phDesc:empty{display:none}
body.dq-workspace #panel-devqueue.active{display:flex;flex-direction:column;flex:1;min-height:0}
body.dq-workspace .dq-layout{flex:1;min-height:0}
body.dq-workspace #panel-devqueue .dq-list{max-height:none}
body.dq-workspace #panel-devqueue .dq-detail:has(#dr-content){height:100%;min-height:0}
body.dq-workspace .dq-detail{overflow:auto;min-height:0!important}
body.dq-workspace #dq-msg:empty{display:none}
body.dq-workspace .wrap>footer{display:none}
@media(max-width:760px){body.dq-workspace .layout{height:auto}body.dq-workspace .wrap{padding:16px}body.dq-workspace #panel-devqueue .dq-list{max-height:220px}body.dq-workspace #panel-devqueue .dq-detail:has(#dr-content){height:80dvh;min-height:600px}}

body.dq-workspace .content>.wrap{height:100%;margin:0;flex:1}
@media(max-width:760px){body.dq-workspace .content>.wrap{height:auto}}

#panel-devqueue .dr-main #dr-command{max-height:none;overflow:visible} #panel-devqueue .dr-main #dr-command>.dr-box{border:0;padding:0}

#dq-search{width:170px;padding:8px 10px;border:1px solid var(--border);border-radius:7px;font:inherit;color:var(--text);background:var(--surface)}
#panel-devqueue .dq-row .dr-status{align-self:flex-start}

body.dq-workspace .layout>.content{min-width:0;min-height:0;flex:1;height:100%}
body.dq-workspace .wrap{background:#f3f6fa}
[data-theme="dark"] body.dq-workspace .wrap,body.dq-workspace[data-theme="dark"] .wrap{background:#15171d}
body.dq-workspace .page-head{display:none}
#panel-devqueue .dq-workflow-overview>.dr-overview-grid>.dq-sec{margin:0;padding:0;border:0}
#panel-devqueue .dq-workflow-overview{gap:24px}
#panel-devqueue .dr-overview-grid .dq-sec h5{font-size:13px;margin:0 0 12px}
#panel-devqueue .dr-overview-grid .dq-sec .v{font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
#panel-devqueue .dr-overview-grid .dr-field{margin:0}
#panel-devqueue .dr-card-heading{gap:14px}
#panel-devqueue .dr-content>.dr-message:empty,#panel-devqueue .dr-content>#dr-command:empty{display:none}
#panel-devqueue .dr-content>.dr-sections{gap:20px}
#panel-devqueue .dr-main{overflow:auto;scrollbar-gutter:stable}
#panel-devqueue .dr-status-menu .dr-status-options button{color:var(--text)}
#panel-devqueue .dr-card-actions .btn{font-size:12px;white-space:nowrap}
#panel-devqueue .dr-content .dr-card-heading h2{font-size:22px;line-height:1.35;margin:0}
#panel-devqueue .dq-detail:has(#dr-content){overflow:visible}
#panel-devqueue .dr-content{overflow:visible}
#panel-devqueue .dr-content>.dr-detail{overflow:hidden}
#panel-devqueue .dq-detail:has(.dr-legacy-content){padding:0;overflow:visible}
#panel-devqueue .dr-legacy-content .dr-main{padding:8px 0}
#panel-devqueue .dr-legacy-content .dr-main>.dr-overview-grid{gap:24px 32px}
#panel-devqueue .dr-legacy-content .dq-sec{margin:0;padding:0;border:0}
#panel-devqueue .dq-bar{display:grid;grid-template-columns:repeat(4,max-content) minmax(0,1fr) max-content max-content;align-items:center;column-gap:16px;row-gap:8px;border-bottom:0;padding-bottom:0}
#panel-devqueue .dq-bar>button{grid-row:1;margin-bottom:12px}
#panel-devqueue .dq-bar .sp{grid-row:1;grid-column:5}
#panel-devqueue .dq-bar #dq-dept{grid-row:3;grid-column:1/4;width:100%}
#panel-devqueue .dq-bar #dq-request-state{grid-row:3;grid-column:4/6;width:100%}
#panel-devqueue .dq-bar #dq-search{grid-row:3;grid-column:6/8;width:100%}
#panel-devqueue .dq-bar label.learn-sr{position:static;width:auto;height:auto;clip:auto;margin:0;overflow:visible;font-size:12px;grid-row:2}
#panel-devqueue .dq-bar label[for="dq-dept"]{grid-column:1/4}
#panel-devqueue .dq-bar label[for="dq-request-state"]{grid-column:4/6}
#panel-devqueue .dq-bar:has(#dq-request-state[hidden]) label[for="dq-request-state"]{display:none}
#panel-devqueue .dq-bar:has(#dq-request-state[hidden]) #dq-search{grid-column:4/8}
@media(max-width:1100px){
  #panel-devqueue .dq-bar{display:flex;flex-wrap:wrap;gap:12px}
  #panel-devqueue .dq-bar label.learn-sr{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}
  #panel-devqueue .dq-bar #dq-search,#panel-devqueue .dq-bar #dq-dept,#panel-devqueue .dq-bar #dq-request-state{width:auto;min-width:160px;flex:1}
  #panel-devqueue .dq-bar>button{margin-bottom:0}
}

#panel-devqueue .logf{display:inline-flex;align-items:center;gap:8px}
#panel-devqueue .dr-tab-count{background:var(--surface-2);border-radius:4px;padding:1px 6px;font-size:11px}
#panel-devqueue .dq-list-label{font-size:12px;color:var(--muted);padding:0 0 8px}
#panel-devqueue .dr-content>.dr-sections{gap:24px}
#panel-devqueue .dr-sections button{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);padding:12px 0;border-radius:0}
#panel-devqueue .dr-sections button[aria-pressed="true"]{color:var(--accent);border-bottom-color:var(--accent);background:transparent}

#panel-devqueue .dq-bar{grid-template-columns:repeat(6,minmax(0,1fr))}
#panel-devqueue .dq-bar #dq-dept,#panel-devqueue .dq-bar label[for="dq-dept"]{grid-column:1/3}
#panel-devqueue .dq-bar #dq-request-state,#panel-devqueue .dq-bar label[for="dq-request-state"]{grid-column:3/5}
#panel-devqueue .dq-bar #dq-search{grid-column:5/7}
#panel-devqueue .dq-bar #dq-dept,#panel-devqueue .dq-bar #dq-request-state,#panel-devqueue .dq-bar #dq-search{height:40px;min-height:40px;box-sizing:border-box}

#panel-devqueue .dq-bar:has(#dq-request-state[hidden]) #dq-search{grid-column:3/7}
