/* Uses the existing workspace palette and company primary color. */
.bd-queue-health{padding:24px;min-height:100%;color:var(--ws-ink,#20354a)}
.qh-header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px}.qh-header .breadcrumb{padding:0;margin:0 0 12px;background:none;font-size:12px}.qh-header h1{font-size:28px;font-weight:750;margin:0 0 8px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.qh-header p,.qh-panel-heading p{color:var(--ws-muted,#738394);margin:0;font-size:12px;line-height:1.7}.qh-header button{display:flex;align-items:center;gap:7px}.qh-header button .material-icons{font-size:18px}.qh-live{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:600;border:1px solid var(--ws-line,#e2eaf0);border-radius:30px;background:white;padding:7px 11px}.qh-live>span,.qh-dot{width:7px;height:7px;border-radius:50%;background:#9daabc;display:inline-block}.qh-live>span{background:var(--ws-primary,var(--custom-color-bg,#006d91))}
.qh-stats,.qh-skeleton{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.qh-stat{display:flex;flex-direction:column;align-items:flex-start;background:white;border:1px solid var(--ws-line,#e2eaf0);border-radius:16px;padding:20px;text-align:left;box-shadow:0 6px 20px #18334b04;transition:border-color .2s,box-shadow .2s}.qh-stat:hover,.qh-stat.is-selected{border-color:var(--ws-primary,var(--custom-color-bg,#006d91));box-shadow:0 8px 22px #18334b0c}.qh-stat-label{font-size:12px;font-weight:650;color:var(--ws-muted,#738394)}.qh-stat strong{font-size:30px;line-height:1.5;color:var(--ws-dark,#15364a);font-weight:750}.qh-stat-caption{font-size:10px;color:var(--ws-muted,#738394)}.qh-summary{display:flex;gap:12px 24px;flex-wrap:wrap;font-size:11px;color:var(--ws-muted,#738394);margin:20px 2px}.qh-summary strong{color:var(--ws-ink,#20354a)}
.qh-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;align-items:start}.qh-panel{background:white;border:1px solid var(--ws-line,#e2eaf0);border-radius:16px;min-width:0;overflow:hidden}.qh-panel-heading{padding:22px 20px 16px}.qh-panel h2{font-size:16px;font-weight:750;margin:0 0 7px}.qh-panel h2>span{font-size:11px;border-radius:12px;padding:3px 8px;background:var(--ws-soft,#eef4f7);color:var(--ws-primary,var(--custom-color-bg,#006d91));margin-left:5px}.qh-filters{display:grid;grid-template-columns:minmax(160px,1fr) 140px 150px;gap:10px;padding:0 20px 18px}.qh-filters .form-control{border-radius:9px;border-color:var(--ws-line,#e2eaf0);box-shadow:none;height:38px;padding:8px 10px;font-size:11px}.qh-table-wrap{overflow:auto}.qh-table{margin:0;font-size:11px}.qh-table thead{background:var(--ws-soft,#f5f8fa);font-size:10px;color:var(--ws-muted,#738394)}.qh-table>thead>tr>th{border:0;padding:13px 16px;white-space:nowrap}.qh-table>tbody>tr>td{padding:16px;border-color:var(--ws-line,#e2eaf0);vertical-align:middle}.qh-table td small{display:block;font-size:9px;color:var(--ws-muted,#738394);margin-top:4px;overflow-wrap:anywhere;max-width:180px}.qh-job-link{border:0;background:none;padding:0;font-weight:750;color:var(--ws-primary,var(--custom-color-bg,#006d91));text-align:left}.qh-job-link span{display:block;font-size:10px;font-weight:500;color:var(--ws-ink,#20354a);margin-top:4px}.qh-status{border-radius:20px;font-size:10px;font-weight:650;padding:5px 9px;display:inline-block;white-space:nowrap;background:#edf1f5;color:#607286}.qh-status-completed{background:#e7f5ef;color:#227b59}.qh-status-failed{background:#fcebec;color:#b84651}.qh-status-unknown{background:#fff2df;color:#9e681b}.qh-status-processing,.qh-status-retry{background:#e6f1fa;color:#286d9a}.qh-pagination{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-top:1px solid var(--ws-line,#e2eaf0);font-size:10px;color:var(--ws-muted,#738394);gap:10px}.qh-pagination>div{display:flex;gap:8px}.qh-table .btn,.qh-pagination .btn{font-size:10px;border-radius:8px}.qh-worker{display:flex;align-items:flex-start;gap:10px;padding:16px 20px;border-top:1px solid var(--ws-line,#e2eaf0)}.qh-worker .qh-dot{margin-top:5px;flex-shrink:0}.qh-dot.is-healthy{background:#38a479;box-shadow:0 0 0 4px #38a47915}.qh-worker strong{font-size:11px;display:block}.qh-worker span:not(.qh-dot),.qh-worker small{display:block;font-size:10px;color:var(--ws-muted,#738394);margin-top:5px}.qh-worker small{font-size:9px}.qh-empty{padding:35px 20px!important;text-align:center!important;color:var(--ws-muted,#738394)}.qh-empty .material-icons{display:block;font-size:30px;margin-bottom:12px;color:var(--ws-primary,var(--custom-color-bg,#006d91))}.qh-empty strong,.qh-empty span{display:block;font-size:11px;line-height:1.8}.qh-empty strong{color:var(--ws-ink,#20354a);font-weight:650}.qh-help{display:flex;gap:10px;background:var(--ws-soft,#f5f8fa);padding:16px 18px}.qh-help .material-icons{font-size:18px;flex-shrink:0;color:var(--ws-primary,var(--custom-color-bg,#006d91))}.qh-help p{font-size:10px;line-height:1.8;margin:0;color:var(--ws-muted,#738394)}.qh-updated{display:block;padding:14px 18px;font-size:9px;color:var(--ws-muted,#738394)}
#queue-job-details .modal-content{border-radius:16px;overflow:hidden}#queue-job-details .modal-title{font-size:20px;font-weight:750}.qh-detail-state{display:flex;justify-content:space-between;gap:12px;margin-bottom:20px;font-size:12px}.qh-detail-meta{display:grid;grid-template-columns:160px minmax(0,1fr);gap:10px;font-size:12px}.qh-detail-meta dd{margin:0;overflow-wrap:anywhere}.qh-timeline{list-style:none;padding:0 0 0 18px;border-left:2px solid #e5edf3;margin-left:5px}.qh-timeline li{position:relative;padding:0 0 20px 8px;font-size:12px;line-height:1.8}.qh-timeline li:before{position:absolute;left:-24px;top:6px;content:'';width:9px;height:9px;border-radius:50%;background:var(--custom-color-bg,#006d91);border:2px solid white}.qh-timeline strong{font-weight:600;display:block}.qh-timeline span{color:#738394;font-size:10px}#queue-job-details h3{font-size:15px;font-weight:700;margin-top:25px}.qh-skeleton{margin-bottom:24px}.qh-skeleton>div{height:140px;border-radius:16px;background:linear-gradient(100deg,#e7edf2 20%,#f6f8fa 45%,#e7edf2 65%);background-size:200% 100%;animation:qh-loading 1.5s infinite}@keyframes qh-loading{to{background-position:-200% 0}}
@media(max-width:1199px){.qh-grid{grid-template-columns:minmax(0,1fr)}.qh-workers .qh-worker{display:inline-flex;width:50%;vertical-align:top}}
@media(max-width:767px){.bd-queue-health{padding:14px 10px}.qh-header{align-items:flex-start}.qh-header h1{font-size:23px}.qh-header button{font-size:11px;padding:8px}.qh-stats,.qh-skeleton{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.qh-stat{padding:16px}.qh-stat strong{font-size:25px}.qh-filters{grid-template-columns:1fr 1fr;padding:0 14px 14px}.qh-filters input{grid-column:1/-1}.qh-panel-heading{padding:18px 14px 14px}.qh-summary{font-size:10px;gap:9px 16px}.qh-workers .qh-worker{width:100%}.qh-pagination{padding:14px}.qh-detail-meta{grid-template-columns:1fr;gap:4px}.qh-detail-meta dd{margin-bottom:10px}.qh-table{min-width:530px}}
@media(prefers-reduced-motion:reduce){.qh-skeleton>div{animation:none}.qh-stat{transition:none}}

/* Keep this Bootstrap dialog clear of the global right-drawer overrides. */
#queue-job-details .modal-dialog{position:relative!important;inset:auto!important;transform:none!important;width:calc(100% - 40px)!important;max-width:800px!important;height:auto!important;margin:30px auto!important}
#queue-job-details .modal-content{height:auto!important;min-height:0!important;max-height:calc(100vh - 60px);max-height:calc(100dvh - 60px);display:flex;flex-direction:column}
#queue-job-details .modal-header,#queue-job-details .modal-footer{flex-shrink:0}
#queue-job-details .modal-body{overflow-y:auto;min-height:0;flex:1 1 auto}
#queue-job-details .btn-primary{background:var(--custom-color-bg,#006d91)!important;border-color:var(--custom-color-bg,#006d91)!important;color:white!important}
@media(max-width:767px){#queue-job-details .modal-dialog{width:calc(100% - 20px)!important;margin:10px auto!important}#queue-job-details .modal-content{max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}}
