* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Times New Roman", Times, serif;
}

body {
  font-family: "Segoe UI", "Calibri", sans-serif;
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin: 0;
  color: #333;
}

.company-title {
  color: #002d62;
  margin-bottom: 25px;
  font-size: 1.7em;
  font-weight: bold;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid #002d62;
  width: fit-content;
  padding-left: 10px;
  padding-right: 10px;
}

/* --- PRINT BUTTON STYLING --- */
.print-controls {
  width: 80%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.btn-print {
  background-color: #003366;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-print:hover {
  background-color: #002244;
}

/* --- TABLE STYLING --- */
.placement-table {
  width: 80%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.9em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
  border-radius: 5px;
  overflow: hidden;
}

.placement-table th {
  background-color: #003366;
  color: #ffffff;
  padding: 12px 10px;
  font-weight: 600;
  border-bottom: 1px solid #002d62;
  text-transform: uppercase;
}

.placement-table thead th {
  text-align: left;
}

.placement-table td {
  padding: 10px 10px;
  border-bottom: 1px solid #e0e0e0;
  color: #555;
}

/* --- ZIG ZAG STRIPING --- */
.placement-table tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

.placement-table tbody tr:last-child td {
  border-bottom: none;
}

.placement-table tbody tr:hover {
  background-color: #e6f2ff;
  cursor: pointer;
}

/* Column Alignments */
.placement-table th:nth-child(1),
.placement-table td:nth-child(1) {
  text-align: center;
  width: 8%;
}

.placement-table th:nth-child(3),
.placement-table td:nth-child(3),
.placement-table th:nth-child(4),
.placement-table td:nth-child(4) {
  text-align: center;
}

.placement-table th:last-child {
  text-align: right;
  width: 20%;
}

.placement-table td:last-child {
  text-align: right;
  width: 20%;
  font-weight: bold;
  color: #003366;
}

/* --- PDF / PRINT OPTIMIZATION --- */
@media print {
  .print-controls {
    display: none !important;
    /* Hide button on print */
  }

  body {
    background-color: #fff;
    padding: 0;
  }

  .placement-table {
    width: 100%;
    /* Expand to full page width */
    box-shadow: none;
    border: 1px solid #dee2e6;
  }

  /* Forces browsers to print background colors */
  .placement-table thead th {
    background-color: #003366 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .placement-table tbody tr:nth-child(even) {
    background-color: #f2f2f2 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
