/* ---------------- GLOBAL LAYOUT ---------------- */
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  background: #000066;
  color: #d6dbff;
 
}
body {
  display: flex;
  flex-direction: column;
}

.page-center {
  text-align: center;
  margin-top: 50px;
}

/* ---------------- NAVBAR ---------------- */

.navbar {
  background: #cfd8e3;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 15px;
}

.logo {
  height: 40px;
  width: auto;
}

.logo2 {
  height: 128px;
  width: auto;
}

.nav-buttons {
  display: flex;
  gap: 15px;
}

.nav-btn {
  background: #000066;
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 4px;
}

.nav-btn:hover {
  background: #666;
}

/* ---------------- CONTENT AREA ----------------*/

.page-content {
  color: #fff;
 }

.page-content h1,
.page-content p,
.page-content div {
  color: inherit;
}
.page-green {
  color: #0f0;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.ceedales_shell_cursor {
  color: #0f0;
  animation: blink 1s infinite;
}

@keyframes blink {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}
/* ---------------- FOOTER + MARQUEE ---------------- */

.footer {
  background: #111;
  height: 25px;
  flex: 0 0 auto;
  overflow: hidden;
}

.marquee-holder {
  position: relative;
  width: 100%;
  height: 25px;
  overflow: hidden;
  white-space: nowrap;
  background: #cfd8e3;
}

.marquee-track {
  position: absolute;
  top: 0;
  white-space: nowrap;
  will-change: transform;
  animation: scroll var(--duration) linear infinite;
  display: inline-block;
}

/* IMPORTANT: move by full pixel width, not 100% */
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--width))); }
}

.marquee-holder:hover .marquee-track {
  animation-play-state: paused;
}

.flash {
  color: #cc7a00;
  animation: flash1 2s linear infinite;
}

.flash2 {
  font-weight: bold;
  color: #e30808;
  animation: flash2 1.5s linear infinite;
}

.ref   { color: #000; }
.depot { color: #1e88e5; }
.dest  { color: #090; }

@keyframes flash1 {
  0% { color: #fc9800; }
  100% { color: #fc0000; }
}

@keyframes flash2 {
  0% { color: #000; }
  100% { color: #e30808; }
}

/* Text + Utilities*/ 
.text-left  { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }

.hidden { display:none; }

/*Manifest Container Specific*/
/* -------- MANIFEST ONLY -------- */
.manifest-container {
  max-width: 1500px;
  width: 100%;
  margin: 20px auto;
  background: #fff;
  color: #000;
  padding: 10px;
}

.manifest-container * {
  color: #000;
}

.hidden { display: none; }

.manifest-container table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  border: 1px solid #ddd; 
}

.manifest-container td {
  word-wrap: break-word;
  white-space: normal;
  overflow: visible;
}

.manifest-container td,
.manifest-container th {
  border: 1px solid #ddd;
  padding: 6px;
  text-align: center;
}

.manifest-container .section {
  background: #cfd8e3;
  font-weight: bold;
  text-align: left;
  padding-left: 10px;
}

.manifest-container select,
.manifest-container input {
  width: 100%;
  box-sizing: border-box;
}

.manifest-container input {
  padding: 4px;
}

#status {
  font-weight: bold;
  text-align: center;
  background: #f4f6f8;
  border-top: 2px solid #ccc;
}

#status {
  transition: opacity 0.3s ease;
}

.manifest-container table:last-of-type {
  border: 1px solid #ddd;
}

.final-center td {
  text-align: center;
}

.manifest-container td:nth-child(4) {
  white-space: normal;
  overflow: visible;
}
.manifest-container td:nth-child(8) {
  white-space: normal !important;
  word-break: break-word;
}

#loadBarContainer {
  width: 100%;
  height: 18px;
  background: #ddd;
  border-radius: 3px;
  overflow: hidden;             /* 🔥 important */
  border: 1px solid #999;
}

#loadBar {
  height: 100%;
  width: 0%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: #fff;                   /* better contrast */
  box-sizing: border-box;        /* 🔥 prevents width issues */
}

#qtyInput {
  width: 60%;
   box-sizing: border-box;
  text-align: center;
}

select {
  min-width: 0;
}

/* -----CONTACT FORM------*/
.contact-container {
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
}

/* 🔥 Force vertical stacking */
.contact-container form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Labels */
.contact-container label {
  margin-top: 12px;
  width: 100%;
  text-align: left;
}

/* Inputs */
.contact-container input,
.contact-container textarea {
  width: 100%;
  max-width: 500px;
  padding: 6px;
  margin-top: 4px;
  box-sizing: border-box;
  text-align: left;
}

/* Button */
.contact-container button {
  margin-top: 15px;
  padding: 8px 12px;
}

/* ---------- PRINT ---------- */
@media print {

  html, body {
    visibility: hidden;
  }

  .manifest-container, 
  .manifest-container * {
    visibility: visible;
  }

  .manifest-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }

  .manifest-container button,
  .no-print {
    display: none !important;
  }

.manifest-container {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding-right: 4mm;
}

  @page {
    size: A4 auto;
    margin: 6mm;
  }
}