/* ====== BODY ====== */
body {
  margin: 0;
  background-color: #f6f6f9;
  color: #333;
  font-family: Arial, sans-serif;
}

/* ====== MAIN CONTAINER ====== */
.main-container {
  display: flex;
  flex-wrap: wrap;
  min-height: 80vh;
  padding: 20px;
  max-width: 1200px;
  margin: 70px auto 0 auto;
  box-sizing: border-box;
}

/* ====== SIDEBAR ====== */
.sidebar1 {
  background-color: #ffffff;
  flex: 0 0 300px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
  margin-bottom: 20px;
  height: fit-content;
}

.menu1 li.active {
  background: #193153;
  color: #fff;
  font-weight: bold;
}

.profile-section {
  text-align: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.profile-section img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.profile-section h3 {
  font-size: 18px;
  margin-top: 10px;
}

.menu1 {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.menu1 li {
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  transition: 0.3s;
}

.menu1 li:hover {
  background-color: #f3f3f3;
}

.menu1 li.active {
  background: #193153;
  color: #fff;
  font-weight: bold;
}

/* ====== PROFILE CONTENT ====== */
.profile-content {
  flex: 1;
  margin-left: 20px;
}

.profile-card {
  background: white;
  padding: 30px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.profile-card h2 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 20px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .main-container {
    flex-direction: column;
    margin-top: 20px;
    padding: 15px;
  }

  .sidebar1 {
    width: 100%;
    margin-bottom: 20px;
  }

  .profile-content {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .profile-card {
    padding: 20px;
  }

  .profile-section h3 {
    font-size: 16px;
  }
}

/* ===================== ORDER TABLE (GB CLASSES) ===================== */

.gb-order-table-container {
  width: 100% !important;
  overflow-x: auto !important;
  margin-left: 20px !important;
  flex: 1 !important;
  display: block !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch !important;
}

.gb-order-table {
  width: 100% !important;
  min-width: 700px !important;
  border-collapse: collapse !important;
  font-size: 14px !important;
}

.gb-order-table th,
.gb-order-table td {
  text-align: left !important;
  padding: 10px !important;
  border-bottom: 1px solid #ddd !important;
}

.gb-order-table th {
  background-color: #193153 !important;
  color: #fff !important;
  font-weight: bold !important;
}

.gb-order-table tr:nth-child(even) {
  background-color: #f9f9f9 !important;
}

.gb-order-table tr:hover {
  background-color: #f3f3f3 !important;
}

@media (max-width: 480px) {
  .gb-order-table th,
  .gb-order-table td {
    font-size: 12px !important;
    padding: 8px !important;
  }
}

/* ========== Desktop FIX: Sidebar + Table side-by-side ========== */
@media (min-width: 900px) {
  .main-container {
    flex-wrap: nowrap !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
  }
}

/* ========== Mobile Layout Fix ========== */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column !important;
  }
}
