/* 「报价待改成报价项」抽屉（components/quote-items.js）：概览待办和管理员页头共用 */
.sheet.lg.qi-sheet { width: min(900px, 100vw); }
.qi-sheet .toolbar select.input { width: auto; min-width: 9rem; }
.qi-sheet .qi-who { font-weight: 500; }
.qi-sheet .qi-sub { color: var(--muted-foreground); font-size: 12px; }
.qi-sheet td.wrap { max-width: 22rem; }
.qi-sheet .qi-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; max-height: 6.5em; overflow: auto; }
.qi-sheet .col-actions { white-space: nowrap; }
@media (max-width: 640px) {
  .qi-sheet .toolbar select.input { flex: 1 1 8rem; }
  .qi-sheet .toolbar .end { width: 100%; margin-left: 0; }
  /* 窄屏：每条报价一块，原文不被固定的操作列挡住 */
  .qi-sheet table, .qi-sheet tbody, .qi-sheet tr, .qi-sheet td { display: block; width: auto; }
  .qi-sheet thead { display: none; }
  .qi-sheet tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who reason" "slot slot" "text text" "act act";
                       gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .qi-sheet tbody td { padding: 0; border: 0; max-width: none; justify-self: stretch; text-align: left; }
  /* 窄屏里操作按钮占一整行，不再固定在右边（去掉固定列的阴影和底色） */
  .qi-sheet tbody td.col-actions { position: static; box-shadow: none; background: transparent; }
  .qi-sheet td.qi-c-who { grid-area: who; min-width: 0; overflow-wrap: anywhere; }
  .qi-sheet td.qi-c-reason { grid-area: reason; }
  .qi-sheet td.qi-c-slot { grid-area: slot; font-size: 13px; }
  .qi-sheet td.wrap.qi-c-text { grid-area: text; width: 100%; max-width: none; }
  .qi-sheet td.qi-c-act { grid-area: act; }
  .qi-sheet td.qi-c-act .btn { width: 100%; justify-content: center; }
}
