.notification-queue-workspace { min-width:0; }
.nq-views { display:flex; gap:24px; border-bottom:1px solid var(--border-light); margin-bottom:20px; overflow-x:auto; }
.nq-views button { border:0; border-bottom:3px solid transparent; background:transparent; color:var(--muted); font:inherit; font-weight:600; padding:12px 0; white-space:nowrap; cursor:pointer; }
.nq-views button.is-active { color:var(--primary); border-bottom-color:var(--primary); }
.nq-filters { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:20px; }
.nq-filters > input { flex:1 1 210px; min-width:160px; }
.nq-filters > :is(select,.podo-select-control) { flex:1 1 170px; width:auto; min-width:150px; }
.nq-filters .practice-period { flex:1 1 350px; }
.nq-filters .practice-period input { min-width:0; width:100%; }
.nq-results { position:relative; min-height:100px; }
.nq-results[aria-busy="true"] > div[inert] { opacity:.3; }
.nq-loading { position:absolute; inset:0; z-index:1; display:flex; justify-content:center; align-items:center; gap:8px; color:var(--muted); background:rgba(255,255,255,.6); }
.nq-table { border-collapse:collapse; width:100%; table-layout:fixed; font-size:14px; }
.nq-table th { color:var(--muted); text-align:left; font-size:12px; font-weight:600; padding:12px 10px; background:var(--surface-soft,#f7f9fc); }
.nq-table td { padding:16px 10px; border-bottom:1px solid var(--border-light); vertical-align:top; overflow-wrap:anywhere; }
.nq-table th:nth-child(1) { width:22%; }
.nq-table th:nth-child(2) { width:20%; }
.nq-table th:nth-child(3) { width:15%; }
.nq-table th:nth-child(4) { width:15%; }
.nq-table th:nth-child(5) { width:17%; }
.nq-table th:nth-child(6) { width:11%; }
.nq-table td > small { display:block; margin-top:5px; color:var(--muted); font-size:12px; line-height:1.5; }
.nq-client-cell { display:flex; align-items:flex-start; gap:10px; }
.nq-client-cell input { flex:none; width:18px; height:18px; margin:1px 0 0; accent-color:var(--primary); }
.nq-client-cell > div { min-width:0; }
.nq-client-cell small { display:block; margin-top:5px; color:var(--muted); font-size:12px; line-height:1.5; }
.nq-review-form { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:14px 0; }
.nq-review-form .select,.nq-review-form .podo-select-control { flex:1 1 220px; min-width:0; }
.nq-client { border:0; background:transparent; padding:0; text-align:left; font:inherit; font-weight:600; color:var(--text); cursor:pointer; }
.nq-client:hover { color:var(--primary); }
.nq-channel { display:flex; flex-direction:column; gap:3px; font-size:12px; margin-bottom:7px; }
.nq-channel > span { color:var(--muted); }
.nq-status { display:inline-block; color:var(--muted); background:#f0f4f8; border-radius:8px; padding:5px 8px; font-size:12px; font-weight:600; line-height:1.4; }
.nq-status.is-delivered,.nq-status.is-read,.nq-status.is-sent { color:#087e73; background:#e8f8f5; }
.nq-status.is-failed,.nq-status.is-review { color:#b84444; background:#fff0ef; }
.nq-status.is-unconfirmed { color:#96651c; background:#fff7e6; }
.nq-status.is-sending { color:#2863b5; background:#edf4ff; }
.nq-row-actions .btn { display:block; width:100%; padding:7px 6px; min-height:36px; font-size:12px; margin-bottom:4px; }
.nq-pagination { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-top:18px; color:var(--muted); font-size:13px; }
.nq-pagination > div { display:flex; align-items:center; gap:12px; }
.nq-pagination .btn { min-height:40px; padding:8px 14px; }
.nq-modal { width:min(800px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); display:flex; flex-direction:column; }
.nq-modal .modal-header { flex-shrink:0; align-items:flex-start; }
.nq-modal .modal-header p { margin:6px 0 0; font-size:14px; }
.nq-modal .nq-close { width:44px; height:44px; padding:0; flex:0 0 44px; font-size:28px; line-height:1; }
.nq-modal-body { overflow-y:auto; padding:24px; min-height:0; }
.nq-facts { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:20px 0; }
.nq-facts div { min-width:0; }
.nq-facts dt { color:var(--muted); font-size:12px; margin-bottom:4px; }
.nq-facts dd { margin:0; font-size:14px; }
.nq-message,.nq-events { padding-top:20px; border-top:1px solid var(--border-light); margin-top:20px; }
.nq-message h3,.nq-events h3 { margin:0; font-size:15px; }
.nq-message-head { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; align-items:center; }
.nq-message-head > span { color:var(--muted); font-size:12px; }
.nq-message-text { white-space:pre-wrap; overflow-wrap:anywhere; border:1px solid var(--border-light); background:#f8fafc; border-radius:12px; padding:16px; line-height:1.6; font-size:14px; }
.nq-notice,.nq-confirm { padding:14px 16px; border-radius:12px; background:#fff8ea; color:#79561d; font-size:13px; line-height:1.6; margin:16px 0; }
.nq-confirm p { margin:6px 0 12px; }
.nq-confirm > div { display:flex; justify-content:flex-end; gap:12px; }
.nq-events ol { padding:0; margin:16px 0 0; list-style:none; }
.nq-events li { display:grid; grid-template-columns:160px minmax(0,1fr); gap:16px; padding:12px 0; border-bottom:1px solid var(--border-light); font-size:13px; }
.nq-events time,.nq-events span,.nq-events small { color:var(--muted); }
.nq-events li > div { display:grid; gap:4px; overflow-wrap:anywhere; }
.nq-modal-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; flex-shrink:0; }
.nq-modal-footer > div { display:flex; flex-wrap:wrap; gap:8px; }
.nq-modal-footer .btn { font-size:13px; }
.nq-report-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
.nq-report-toolbar select { min-width:170px; }
.nq-report-problems { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:16px; }
.nq-report-problems h2 { margin-bottom:0; }
.nq-daily summary { cursor:pointer; font-size:17px; font-weight:600; }
.nq-daily[open] summary { margin-bottom:20px; }
@media(max-width:1100px) {
  .nq-report-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .nq-table { font-size:13px; }
  .nq-table td,.nq-table th { padding-left:6px; padding-right:6px; }
  .nq-table th:nth-child(6) { width:13%; }
}
@media(max-width:760px) {
  .nq-views { gap:18px; margin-bottom:16px; }
  .nq-views button { font-size:13px; min-height:44px; }
  .nq-filters { gap:10px; }
  .nq-filters > input { flex-basis:100%; }
  .nq-filters .practice-period { flex-basis:100%; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .nq-filters .practice-period > span { grid-column:1 / -1; }
  .nq-filters .practice-period input { width:100%; min-height:42px; font-size:12px; padding-left:8px; padding-right:8px; }
  .nq-filters > :is(select,.podo-select-control) { width:100%; flex:1 1 100%; }
  .nq-table,.nq-table tbody { display:block; }
  .nq-table thead { display:none; }
  .nq-table tr { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:16px 0; border-bottom:1px solid var(--border-light); }
  .nq-table td { display:block; border:0; padding:0; min-width:0; }
  .nq-table td:nth-child(1),.nq-table td:nth-child(2),.nq-table td:nth-child(3),.nq-table td:nth-child(6) { grid-column:1 / -1; }
  .nq-table td[data-label]::before { content:attr(data-label); display:block; font-size:11px; color:var(--muted); margin-bottom:4px; }
  .nq-table td:nth-child(3) { font-size:12px; color:var(--muted); }
  .nq-table td:nth-child(1)::after { content:''; }
  .nq-client { font-size:15px; }
  .nq-row-actions { display:flex!important; gap:10px; }
  .nq-row-actions .btn { margin:0; min-height:44px; }
  .nq-pagination { align-items:flex-start; flex-direction:column; }
  .nq-pagination > div { width:100%; justify-content:space-between; }
  .nq-modal { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); }
  .nq-modal .modal-header,.nq-modal .modal-footer { padding:16px; }
  .nq-modal-body { padding:16px; }
  .nq-facts { grid-template-columns:1fr; gap:12px; }
  .nq-modal-footer > div { width:100%; }
  .nq-modal-footer .btn { flex:1 1 auto; min-height:44px; }
  .nq-events li { grid-template-columns:1fr; gap:5px; }
  .nq-report-problems { align-items:flex-start; flex-direction:column; }
}
