body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-box {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.login-box h1 {
  margin: 0 0 8px;
}

.login-box p {
  margin-bottom: 24px;
  color: #6b7280;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 14px;
  background: #0ea5b7;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}

button:hover {
  background: #0b8a99;
}

.dashboard-wrapper {
  padding: 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.topbar a {
  text-decoration: none;
  color: #0ea5b7;
  font-weight: bold;
}

.content-box {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.orders-table th,
.orders-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  white-space: nowrap;
}

.orders-table th {
  background: #f9fafb;
  font-weight: 700;
  color: #111827;
}

.status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-lead {
  background: #e0f2fe;
  color: #075985;
}

.status-confirmed {
  background: #dcfce7;
  color: #166534;
}

.status-later {
  background: #fef3c7;
  color: #92400e;
}

.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.status-shipping {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-error {
  background: #fce7f3;
  color: #9d174d;
}

.small-link-btn {
  display: inline-block;
  padding: 8px 12px;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.small-link-btn:hover {
  background: #e5e7eb;
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.order-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
}

.order-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.order-card p {
  margin: 10px 0;
}

.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.action-btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.btn-confirm {
  background: #dcfce7;
  color: #166534;
}

.btn-later {
  background: #fef3c7;
  color: #92400e;
}

.btn-cancel {
  background: #fee2e2;
  color: #991b1b;
}

.btn-lead {
  background: #e0f2fe;
  color: #075985;
}

.filters-bar {
  margin: 18px 0 22px;
}

.filters-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
}

.filters-grid input,
.filters-grid select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fff;
  min-height: 46px;
}

.filters-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-btn {
  width: auto;
  padding: 12px 18px;
  min-width: 120px;
}

.reset-btn {
  display: inline-block;
  padding: 12px 18px;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.reset-btn:hover {
  background: #e5e7eb;
}

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

  .filters-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .order-grid {
    grid-template-columns: 1fr;
  }
}

.manual-order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 10px;
}

.manual-order-grid select,
.manual-order-grid input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fff;
  min-height: 46px;
}

@media (max-width: 900px) {
  .manual-order-grid {
    grid-template-columns: 1fr;
  }
}

.filters-grid-dates {
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
}

@media (max-width: 1400px) {
  .filters-grid-dates {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .filters-grid-dates {
    grid-template-columns: 1fr;
  }
}