/* ==========================================   TECH UMS ECK – DRUCKWARTESCHLANGE   ========================================== */

.queue-page {
  min-height: 100vh;
  background: #f7f8fa;
  padding: 60px 20px 100px;
  font-family: "Raleway", sans-serif;
}

.queue-container {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.queue-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.queue-eyebrow {
  color: var(--bs-primary);
  font-family: "Cairo", sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.queue-header h1 {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -1px;
  margin: 0;
}

.queue-header p {
  color: #667085;
  margin: 10px 0 0;
}

.queue-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.queue-actions .btn, .queue-section .btn {
  border-radius: 10px;
}

.queue-section {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 24px;
}

.queue-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.queue-section-header h2 {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  margin: 0;
}

.queue-section-header p {
  color: #667085;
  font-size: .9rem;
  margin: 5px 0 0;
}

/* DRUCKER */

.printer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.printer-card {
  border: 1px solid #e7eaf0;
  border-radius: 16px;
  padding: 22px;
  min-width: 0;
}

.printer-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.printer-card h3 {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0;
}

.printer-card p {
  color: #667085;
  font-size: .85rem;
  margin: 5px 0 0;
}

.printer-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
  font-size: .85rem;
}

.printer-meta span {
  color: #667085;
}

.printer-meta strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.printer-toggle {
  margin-top: 15px;
}

/* AUFTRAGSZUWEISUNG */

.queue-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 18px;
  align-items: end;
}

.queue-form .form-select {
  border-radius: 10px;
  min-height: 43px;
}

.queue-form .btn {
  min-height: 43px;
}

/* TABELLE */

.queue-table {
  margin: 0;
}

.queue-table thead th {
  background: #fafafa;
  font-family: "Cairo", sans-serif;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #667085;
  padding: 15px;
  white-space: nowrap;
}

.queue-table tbody td {
  padding: 17px 15px;
  vertical-align: middle;
}

.queue-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.queue-empty {
  padding: 35px 15px;
  text-align: center;
  color: #667085;
}

/* STATUS */

.queue-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 30px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.queue-status-ready {
  background: #e6f7ec;
  color: #198754;
}

.queue-status-printing {
  background: #e7f0ff;
  color: #0d6efd;
}

.queue-status-queued {
  background: #fff3d6;
  color: #946200;
}

.queue-status-disabled {
  background: #eceef1;
  color: #667085;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .printer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .queue-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1100px) {
  .queue-form .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .queue-page {
    padding: 35px 12px 60px;
  }
}

@media (max-width: 700px) {
  .queue-header {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 700px) {
  .queue-section {
    padding: 20px;
  }
}

@media (max-width: 700px) {
  .queue-section-header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .printer-grid, .queue-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .queue-form .btn {
    grid-column: auto;
  }
}

