body { background: red !important; }
/* ================================
   ORDERS APP CSS (SCOPED)
   Wrap your HTML in: <div id="order-app"> ... </div>
   ================================ */

/* TEMP TEST LINE (keep for now) */
body { background: red !important; }

/* Root wrapper */
#order-app {
  background-color: #121212;
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  min-height: 100vh;
}

/* Login */
#order-app .login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 350px;
  margin: 0 auto;
  text-align: center;
}

#order-app .circle-logo {
  background-color: #2c7da0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
}

#order-app input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  background-color: #1e1e1e;
  border: 1px solid #333;
  color: white;
  box-sizing: border-box;
}

#order-app button[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #005a9e;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* Navbar / Dashboard */
#order-app .navbar {
  background-color: #002b5c;
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#order-app .nav-links span {
  margin-right: 25px;
  cursor: pointer;
  font-size: 14px;
}

#order-app .active {
  border-bottom: 2px solid #4da3ff;
  padding-bottom: 5px;
}

#order-app .selection-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 80px);
}

#order-app .choice-box {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #4da3ff;
  padding: 50px;
  width: 280px;
  font-size: 28px;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 8px;
}

#order-app .choice-box:hover {
  border-color: #4da3ff;
  background: #252525;
  transform: translateY(-5px);
}

/* Order Screen */
#order-app .order-screen {
  padding: 20px;
  background: #1a1a1a;
  min-height: 100vh;
}

#order-app .form-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

#order-app .btn-save {
  background: #444;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-right: 5px;
  cursor: pointer;
}

#order-app .btn-submit {
  background: #4caf50;
  color: white;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
}

#order-app .form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 200px;
  gap: 20px;
  margin-top: 20px;
  background: #222;
  padding: 20px;
  border-radius: 5px;
}

#order-app .input-group label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 5px;
}

#order-app .input-group input {
  width: 100%;
  background: #333;
  border: 1px solid #444;
  color: white;
  padding: 8px;
}

#order-app .price-display {
  text-align: right;
  border-left: 1px solid #333;
  padding-left: 20px;
}

#order-app .price-display h1 {
  margin: 5px 0;
  color: white;
}

/* ✅ SPEC SHEET */
#order-app .spec-sheet {
  margin-top: 14px;
  background: #191c20;
  border: 1px solid #2b2f36;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

#order-app .spec-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

/* Notes left, Track Size right */
#order-app .spec-row-right {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  align-items: end;
  margin-bottom: 0;
}

#order-app .spec-label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
  color: #8a919b;
  margin-bottom: 6px;
  text-transform: uppercase;
}

#order-app .spec-control {
  position: relative;
  height: 34px;
  border-radius: 6px;
  border: 1px solid #2a3546;
  background: linear-gradient(180deg, #1a3557 0%, #0f2644 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 6px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
}

#order-app .spec-control::after {
  content: "▾";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  pointer-events: none;
}

#order-app .spec-select {
  width: 100%;
  height: 34px;
  background: transparent;
  color: #ffffff;
  border: none;
  outline: none;
  padding: 6px 28px 6px 10px;
  font-size: 13px;
  font-weight: 700;
  appearance: none;
  cursor: pointer;
}

#order-app .spec-select option {
  background: #1a1a1a;
  color: #fff;
  font-weight: 700;
}

#order-app .spec-item-track {
  width: 220px;
}

/* Notes */
#order-app .spec-item-notes {
  width: 100%;
}

#order-app .spec-notes-control {
  height: auto;
  padding: 0;
}

#order-app .spec-notes {
  width: 100%;
  min-height: 34px;
  height: 34px;
  resize: vertical;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  box-sizing: border-box;
}

#order-app .spec-notes-control::after {
  content: none !important;
}

/* Table */
#order-app .order-table-section {
  margin-top: 18px;
}

#order-app .table-tab {
  background: #004080;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px 5px 0 0;
  font-size: 14px;
}

#order-app .add-item {
  background: #007bff;
  border: none;
  color: white;
  padding: 2px 8px;
  margin-left: 10px;
  cursor: pointer;
  font-size: 12px;
}

#order-app table {
  width: 100%;
  border-collapse: collapse;
  background: #222;
}

#order-app th {
  text-align: left;
  padding: 10px;
  border: 1px solid #333;
  font-size: 12px;
  color: #888;
}

#order-app td {
  border: 1px solid #333;
  padding: 5px;
  vertical-align: middle;
}

#order-app td input,
#order-app td select {
  width: 100%;
  background: #333;
  border: none;
  color: white;
  padding: 8px;
  box-sizing: border-box;
}

#order-app td.row-no {
  text-align: center;
  font-weight: 700;
  color: #bbb;
}

#order-app td.price-cell {
  text-align: right;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

#order-app td.price-cell.missing {
  color: #ffb3b3;
}

#order-app .options-cell {
  position: relative;
  text-align: right;
}

#order-app .options-btn {
  background: #e8e8e8;
  color: #111;
  border: 1px solid #cfcfcf;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

#order-app .options-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 44px;
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
  min-width: 140px;
  z-index: 50;
}

#order-app .options-menu button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #fff;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
}

#order-app .options-menu button:hover {
  background: #2b2b2b;
}
