/* Email Queue - modul */
.emailqueue-container {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-family: "Segoe UI", sans-serif;
}

.emailqueue-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.emailqueue-table {
    width: 100%;
    border-collapse: collapse;
}

.emailqueue-table th,
.emailqueue-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.emailqueue-table th {
    background-color: #f4f4f4;
    font-weight: 600;
}

.emailqueue-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.emailqueue-status.sent {
    background-color: #4CAF50;
}

.emailqueue-status.failed {
    background-color: #F44336;
}

.emailqueue-status.pending {
    background-color: #FFC107;
}

.emailqueue-button {
    background-color: #1976D2;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.emailqueue-button:hover {
    background-color: #1565C0;
}

/* === Queue modern layout fix 2026-05-09 === */
.queue-card {
  background: #f8fbff;
  border-radius: 18px;
  padding: 24px;
  margin: 0 auto;
  width: min(1080px, calc(100% - 40px));
  box-shadow: 0 8px 24px rgba(20, 45, 90, 0.16);
  color: #081833;
}

.queue-card h2 {
  margin: 0 0 18px 0;
  font-size: 26px;
  font-weight: 900;
  color: #071b3a;
}

.queue-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.queue-input {
  height: 40px;
  border: 1px solid #c9d7ee;
  border-radius: 12px;
  padding: 0 12px;
  background: #ffffff;
  color: #102747;
  font-size: 14px;
}

.queue-toolbar input.queue-input {
  min-width: 230px;
}

.queue-toolbar select.queue-input {
  min-width: 135px;
}

.queue-btn {
  height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  background: #2f7fbd;
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.queue-btn:hover {
  filter: brightness(0.95);
}

.queue-auto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #102747;
}

.queue-note {
  font-size: 14px;
  font-weight: 700;
  color: #263f66;
}

.queue-table-wrap {
  max-height: 520px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid #d7e2f3;
  background: #ffffff;
}

.queue-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.queue-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eaf1ff;
  color: #071b3a;
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #cddaf0;
  font-weight: 900;
}

.queue-table tbody td {
  padding: 11px 10px;
  border-bottom: 1px solid #e0e7f3;
  color: #102747;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-table tbody tr:nth-child(even) {
  background: #f4f7ff;
}

.queue-table tbody tr:hover {
  background: #fff7d8;
}

.q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-transform: lowercase;
}

.q-badge.sent {
  background: #16a34a;
}

.q-badge.failed {
  background: #dc2626;
}

.q-badge.pending {
  background: #d97706;
}

/* SMS-kolumner */
.smsqueue-container .queue-table th:nth-child(1),
.smsqueue-container .queue-table td:nth-child(1) {
  width: 70px;
}

.smsqueue-container .queue-table th:nth-child(2),
.smsqueue-container .queue-table td:nth-child(2) {
  width: 170px;
}

.smsqueue-container .queue-table th:nth-child(3),
.smsqueue-container .queue-table td:nth-child(3) {
  width: 110px;
}

.smsqueue-container .queue-table th:nth-child(4),
.smsqueue-container .queue-table td:nth-child(4),
.smsqueue-container .queue-table th:nth-child(5),
.smsqueue-container .queue-table td:nth-child(5) {
  width: 190px;
}

/* E-post-kolumner */
.emailqueue-container .queue-table th:nth-child(1),
.emailqueue-container .queue-table td:nth-child(1) {
  width: 70px;
}

.emailqueue-container .queue-table th:nth-child(2),
.emailqueue-container .queue-table td:nth-child(2) {
  width: 220px;
}

.emailqueue-container .queue-table th:nth-child(3),
.emailqueue-container .queue-table td:nth-child(3) {
  width: auto;
}

.emailqueue-container .queue-table th:nth-child(4),
.emailqueue-container .queue-table td:nth-child(4) {
  width: 110px;
}

.emailqueue-container .queue-table th:nth-child(5),
.emailqueue-container .queue-table td:nth-child(5),
.emailqueue-container .queue-table th:nth-child(6),
.emailqueue-container .queue-table td:nth-child(6) {
  width: 170px;
}
