:root {
  --gold: #C8956C;
  --dark: #3D2B1F;
  --cream: #FDF6EC;
  --soft: #F4D5A0;
  --brown: #8B6E5A;
}
* { box-sizing: border-box; }
body {
  background: #f0f0f0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  margin: 0;
}
.sidebar {
  background: var(--dark);
  width: 230px;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding: 24px 14px 80px;
  z-index: 200;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  text-decoration: none;
}
.sidebar-brand img {
  height: 38px;
  object-fit: contain;
}
.sidebar-brand span {
  color: var(--soft);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
}
.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  transition: 0.2s;
  text-decoration: none;
}
.sidebar .nav-link:hover {
  background: rgba(200, 149, 108, 0.2);
  color: var(--soft);
}
.sidebar .nav-link.active {
  background: rgba(200, 149, 108, 0.35);
  color: #fff;
  font-weight: 600;
}
.sidebar-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 230px;
  padding: 14px;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.main {
  margin-left: 230px;
  padding: 28px 26px;
  min-height: 100vh;
}
.page-hdr {
  background: #fff;
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 22px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.page-hdr h5 {
  color: var(--dark);
  font-weight: 700;
  margin: 0;
  font-size: 1.1rem;
}
.page-hdr small {
  color: #999;
  font-size: 0.8rem;
  display: block;
  margin-top: 2px;
}
.a-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 22px;
}
.a-card-body {
  padding: 24px;
}
.a-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0e8de;
}
.table thead th {
  background: #faf6f0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--brown);
  border-bottom: 2px solid #f0e8de;
}
.table td {
  vertical-align: middle;
  font-size: 0.88rem;
}
.table tbody tr:hover {
  background: #fdfaf6;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-gold:hover {
  background: #a06840;
  color: #fff;
}
.btn-xs {
  padding: 4px 10px !important;
  font-size: 0.75rem !important;
  border-radius: 6px !important;
}
.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 18px;
}
.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.stat-lbl {
  font-size: 0.78rem;
  color: #999;
  margin-top: 3px;
}
.pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}
.pill-new { background: #e3f2fd; color: #1565c0; }
.pill-processing { background: #fff8e1; color: #e65100; }
.pill-completed { background: #e8f5e9; color: #2e7d32; }
.pill-cancelled { background: #fce4ec; color: #c62828; }
.pill-active { background: #e8f5e9; color: #2e7d32; }
.pill-inactive { background: #fce4ec; color: #c62828; }
.thumb-sm {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 9px;
}
.thumb-ph {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  background: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.form-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.form-control, .form-select {
  font-size: 0.88rem;
  border-color: #e5ddd5;
  border-radius: 8px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 149, 108, 0.15);
}
.items-expand {
  display: none;
  background: #faf8f5;
}
.items-expand.open {
  display: table-row;
}
.offer-row-active {
  border-left: 4px solid #4caf50;
}
.offer-row-inactive {
  border-left: 4px solid #e0e0e0;
  opacity: 0.75;
}
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}
.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  width: 360px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  text-align: center;
}
.login-card img {
  height: 50px;
  margin-bottom: 20px;
}
.login-card h5 {
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 4px;
}
.login-card p {
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 28px;
}
@media (max-width: 991px) {
  .sidebar {
    width: 100%;
    min-height: auto;
    position: relative;
    padding: 14px;
  }
  .sidebar-footer {
    position: relative;
    width: 100%;
    border-top: none;
    margin-top: 8px;
  }
  .main {
    margin-left: 0;
    padding: 18px 14px;
  }
}