.module-job{margin:14px 0;padding:12px;border:1px solid var(--line);background:#11181c}
.progress{height:12px;border:1px solid #40515a;background:#0b1013;overflow:hidden}
.progress i{display:block;height:100%;background:var(--amber);transition:width .35s ease}
.module-job-text{margin-top:7px;color:var(--muted)}
.decision-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.decision{margin:0}
.btn-release{background:#177245;border-color:#2b9a64;color:#fff;font-weight:700}
.btn-spam{background:#9b2c34;border-color:#c6454f;color:#fff;font-weight:700}
.btn-release:disabled{opacity:.45;cursor:not-allowed}
.message-preview{max-height:520px;overflow:auto;white-space:pre-wrap;word-break:break-word;padding:12px;border:1px solid var(--line);background:#0b1013;color:#dbe4e8}
.check{display:block;padding:7px 0;border-bottom:1px solid #2a3439}
.check input{width:auto;margin-right:8px}
@media(max-width:760px){.decision-grid{grid-template-columns:1fr}}


/* SPAM CONTROL HOTFIX 1.4.1 — MODULE PROGRESS */
.module-job { margin:14px 0; padding:12px; border:1px solid #40515a; background:#10171b; }
.module-job-text { margin-top:8px; font-size:12px; color:#aebcc4; }
.module-job-pending .progress i { width:12%; animation:scq-progress-pulse 1s linear infinite alternate; }
.module-job.is-completed .progress i { background:#48b77a; }
.module-job.is-failed .progress i { background:#d95c5c; }
@keyframes scq-progress-pulse { from { opacity:.45; } to { opacity:1; } }

/* SPAM CONTROL 1.4.3 - stabilne kolumny kwarantanny */
.q-status {
    width: 145px;
    min-width: 145px;
    white-space: nowrap;
}

.q-action {
    width: 90px;
    min-width: 90px;
    white-space: nowrap;
    text-align: right;
}

.q-action .btn {
    white-space: nowrap;
}


/* SPAM CONTROL 1.4.4 - szybkie akcje kwarantanny */
.q-action {
    position: sticky;
    right: 0;
    z-index: 4;
    background: #182126;
    width: 245px;
    min-width: 245px;
    padding-left: 8px;
    padding-right: 8px;
}

thead .q-action,
table th:last-child {
    position: sticky;
    right: 0;
    z-index: 5;
    background: #202b31;
}

.q-actions {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}

.q-actions .inline-form {
    display: inline-flex;
    margin: 0;
}

.q-actions .btn {
    margin: 0;
    white-space: nowrap;
}

/* FIX 1.4.5 - akcje mieszczą się bez ucinania */
.table-wrap table {
    width: 100%;
    table-layout: fixed;
}

.table-wrap th:nth-child(1),
.table-wrap td:nth-child(1) { width: 120px; }

.table-wrap th:nth-child(2),
.table-wrap td:nth-child(2) { width: 55px; }

.table-wrap th:nth-child(3),
.table-wrap td:nth-child(3) { width: 165px; }

.table-wrap th:nth-child(4),
.table-wrap td:nth-child(4) { width: 370px; }

.table-wrap th:nth-child(6),
.table-wrap td:nth-child(6) { width: 100px; }

.table-wrap th:nth-child(7),
.table-wrap td:nth-child(7) { width: 190px; }

.table-wrap td:nth-child(5) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.q-action {
    position: static !important;
    width: 190px !important;
    min-width: 190px !important;
    padding: 4px !important;
    background: transparent !important;
}

.q-actions {
    display: flex;
    gap: 3px;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.q-actions .btn {
    font-size: 11px;
    padding: 5px 7px;
    min-width: 0;
}

.q-actions .btn-release {
    width: 58px;
}

.q-actions .btn-spam {
    width: 48px;
}

.q-actions a.btn {
    width: 62px;
    text-align: center;
}


/* SPAM CONTROL 1.4.6 - cała tabela bez poziomego przewijania */

.q-table {
    width: 100% !important;
    table-layout: fixed !important;
}

.q-table th,
.q-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* DATA */
.q-table th:nth-child(1),
.q-table td:nth-child(1) {
    width: 115px !important;
}

/* RYZYKO */
.q-table th:nth-child(2),
.q-table td:nth-child(2) {
    width: 55px !important;
}

/* DO */
.q-table th:nth-child(3),
.q-table td:nth-child(3) {
    width: 170px !important;
}

/* OD */
.q-table th:nth-child(4),
.q-table td:nth-child(4) {
    width: 300px !important;
}

/* TEMAT - bierze pozostałe miejsce */
.q-table th:nth-child(5),
.q-table td:nth-child(5) {
    width: auto !important;
}

/* STAN */
.q-table th:nth-child(6),
.q-table td:nth-child(6) {
    width: 105px !important;
}

/* AKCJA */
.q-table th:nth-child(7),
.q-table td:nth-child(7) {
    width: 175px !important;
    min-width: 175px !important;
    overflow: visible !important;
}

.q-table .q-action {
    position: static !important;
    width: 175px !important;
    min-width: 175px !important;
    padding: 3px !important;
    background: transparent !important;
}

.q-table .q-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    justify-content: flex-start !important;
}

.q-table .q-actions .btn {
    min-width: 0 !important;
    padding: 5px 5px !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
}

.q-table .q-actions .btn-release {
    width: 56px !important;
}

.q-table .q-actions .btn-spam {
    width: 43px !important;
}

.q-table .q-actions a.btn {
    width: 64px !important;
    text-align: center !important;
}


/* SPAM CONTROL 1.4.7 - szeroki widok kwarantanny */
main:not(.login) {
    max-width: 96vw !important;
    width: 96vw !important;
}

.q-table {
    width: 100% !important;
    table-layout: fixed !important;
}

.table-wrap {
    overflow-x: visible !important;
}

.q-table th:nth-child(1),
.q-table td:nth-child(1) { width: 125px !important; }

.q-table th:nth-child(2),
.q-table td:nth-child(2) { width: 55px !important; }

.q-table th:nth-child(3),
.q-table td:nth-child(3) { width: 170px !important; }

.q-table th:nth-child(4),
.q-table td:nth-child(4) { width: 390px !important; }

.q-table th:nth-child(5),
.q-table td:nth-child(5) { width: auto !important; }

.q-table th:nth-child(6),
.q-table td:nth-child(6) { width: 105px !important; }

.q-table th:nth-child(7),
.q-table td:nth-child(7) {
    width: 200px !important;
    min-width: 200px !important;
}

.q-table .q-action {
    width: 200px !important;
    min-width: 200px !important;
}


/* SPAM CONTROL 1.4.8 - maksymalnie szeroki widok kwarantanny */
main:not(.login) {
    max-width: 99vw !important;
    width: 99vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.q-table th:nth-child(4),
.q-table td:nth-child(4) {
    width: 360px !important;
}

.q-table th:nth-child(6),
.q-table td:nth-child(6) {
    width: 95px !important;
}

.q-table th:nth-child(7),
.q-table td:nth-child(7) {
    width: 225px !important;
    min-width: 225px !important;
}

.q-table .q-action {
    width: 225px !important;
    min-width: 225px !important;
}

.q-table .q-actions .btn-release {
    width: 64px !important;
}

.q-table .q-actions .btn-spam {
    width: 52px !important;
}

.q-table .q-actions a.btn {
    width: 72px !important;
}


/* SPAM CONTROL 1.4.9 - AKCJE ZAWSZE WIDOCZNE */

.table-wrap {
    overflow-x: auto !important;
    position: relative !important;
}

.q-table {
    width: 100% !important;
    table-layout: auto !important;
}

/* OD */
.q-table th:nth-child(4),
.q-table td:nth-child(4) {
    max-width: 380px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* TEMAT */
.q-table th:nth-child(5),
.q-table td:nth-child(5) {
    max-width: 520px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* AKCJA - zawsze przy prawej krawędzi */
.q-table th:nth-child(7),
.q-table td:nth-child(7),
.q-table .q-action {
    position: sticky !important;
    right: 0 !important;
    z-index: 20 !important;
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    overflow: visible !important;
    white-space: nowrap !important;
    background: #182126 !important;
    box-shadow: -8px 0 10px rgba(0,0,0,.35);
}

.q-table th:nth-child(7) {
    z-index: 30 !important;
    background: #202b31 !important;
}

.q-table .q-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 3px !important;
}

.q-table .q-actions .inline-form {
    display: inline-flex !important;
    margin: 0 !important;
}

.q-table .q-actions .btn {
    margin: 0 !important;
    min-width: 0 !important;
    font-size: 10px !important;
    padding: 5px 6px !important;
    white-space: nowrap !important;
}

.q-table .q-actions .btn-release {
    width: 64px !important;
}

.q-table .q-actions .btn-spam {
    width: 50px !important;
}

.q-table .q-actions a.btn {
    width: 72px !important;
    text-align: center !important;
}

