/* ADMIN DASHBOARD */

.admin-page {
  background: #fafafa;
  min-height: 100vh;
  padding: 60px 0;
}

.admin-wrapper {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
}

.admin-sidebar {
  background: transparent;
  border-right: 1px solid #d8d6d4;
  padding: 10px 28px 10px 0;
}

.admin-sidebar-icon {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d8d6d4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.admin-sidebar-icon i {
  font-size: 48px;
  color: #65081f;
}

.admin-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-menu li {
  margin-bottom: 18px;
}

.admin-menu a {
  text-decoration: none;
  color: #222;
  font-size: 17px;
  font-weight: 500;
  display: inline-block;
  padding: 8px 0;
  transition: all 0.25s ease;
  position: relative;
}

.admin-menu a:hover {
  color: #65081f;
  transform: translateX(3px);
}

.admin-menu a.active {
  color: #65081f;
  font-weight: 700;
}

.admin-menu a.active::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 34px;
  background: #65081f;
  border-radius: 3px;
}

.logout-link {
  margin-top: 36px;
  display: inline-block;
  text-decoration: none;
  color: #222;
  font-size: 17px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.logout-link:hover {
  color: #65081f;
  transform: translateX(3px);
}

.admin-content {
  min-width: 0;
}

.admin-page-head {
  margin-bottom: 30px;
}

.admin-eyebrow {
  margin: 0 0 8px;
  color: #65081f;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.admin-page-head h1 {
  font-size: 48px;
  line-height: 1.05;
  margin: 0 0 14px;
  color: #111;
}

.admin-page-subtitle {
  max-width: 860px;
  margin: 0;
  color: #666;
  font-size: 17px;
  line-height: 1.7;
}

/* banner like seller dashboard */
.admin-activation-banner {
  background: #fff;
  border: 1px solid #ddd7d2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.03);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}

.admin-activation-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #faf4f5;
  border: 1px solid #ead8dd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #65081f;
}

.admin-activation-icon i {
  font-size: 24px;
}

.admin-activation-content h3 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #111;
}

.admin-activation-content p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.admin-outline-btn {
  display: inline-block;
  background: #fff;
  border: 1px solid #222;
  border-left: 3px solid #65081f;
  padding: 12px 28px;
  font-size: 16px;
  text-decoration: none;
  color: #222;
  transition: all 0.25s ease;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.admin-outline-btn:hover {
  background: #65081f;
  color: #fff;
  border-color: #65081f;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.admin-stat-card {
  background: #fff;
  border: 1px solid #ddd7d2;
  padding: 26px 24px;
  min-height: 170px;
  min-width: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
}

.admin-stat-label {
  font-size: 14px;
  color: #7a746d;
  font-weight: 600;
  margin-bottom: 18px;
}

.admin-stat-value {
  font-size: clamp(28px, 2.2vw, 42px);
  line-height: 1.1;
  color: #111;
  margin-bottom: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-stat-note {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.95fr);
  gap: 22px;
  margin-bottom: 22px;
}

.admin-dashboard-grid-bottom {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
}

.admin-panel {
  background: #fff;
  border: 1px solid #ddd7d2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.03);
}

.admin-panel-large {
  min-width: 0;
}

.admin-panel-head {
  padding: 26px 24px 18px;
  border-bottom: 1px solid #ece9e5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-panel-head-stack {
  justify-content: flex-start;
}

.admin-panel-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  color: #111;
}

.admin-panel-head p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.admin-panel-badge {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  background: #f6f1f2;
  color: #65081f;
  border: 1px solid #ead8dd;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-funnel-list {
  padding: 8px 24px 10px;
}

.admin-funnel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid #ece9e5;
}

.admin-funnel-item:last-child {
  border-bottom: none;
}

.admin-funnel-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.admin-funnel-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.admin-dot-seller {
  background: #65081f;
}

.admin-dot-review {
  background: #d99000;
}

.admin-dot-compliance {
  background: #26844a;
}

.admin-dot-dispute {
  background: #b84a5e;
}

.admin-funnel-left h4 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #111;
}

.admin-funnel-left p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.admin-funnel-count {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f8f6f4;
  border: 1px solid #e5dfd9;
  color: #5e5751;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-status-list {
  padding: 10px 24px 14px;
}

.admin-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #ece9e5;
}

.admin-status-item:last-child {
  border-bottom: none;
}

.admin-status-item span {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

.admin-status-item strong {
  color: #111;
  font-size: 18px;
  font-weight: 700;
}

.admin-quick-actions {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.admin-quick-card {
  display: block;
  text-decoration: none;
  border: 1px solid #e7e2dc;
  background: #fcfcfc;
  padding: 18px 18px;
  transition: all 0.25s ease;
}

.admin-quick-card:hover {
  transform: translateY(-2px);
  border-color: #cfc6bf;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.admin-quick-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.admin-quick-text {
  display: block;
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

.admin-queue-list {
  padding: 24px;
}

.admin-check-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ece9e5;
}

.admin-check-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.admin-check-item-compact {
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.admin-check-dot {
  width: 12px;
  height: 12px;
  background: #65081f;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.admin-check-item h4 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #111;
}

.admin-check-item p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

@media (max-width: 1200px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .admin-dashboard-grid,
  .admin-dashboard-grid-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .admin-wrapper {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid #d8d6d4;
    padding: 0 0 24px 0;
  }

  .admin-page-head h1 {
    font-size: 40px;
  }

  .admin-activation-banner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-funnel-item,
  .admin-status-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-funnel-count {
    align-self: flex-start;
  }
}

@media (max-width: 576px) {
  .admin-page {
    padding: 36px 0;
  }

  .admin-page-head h1 {
    font-size: 34px;
  }

  .admin-sidebar-icon {
    width: 88px;
    height: 88px;
  }

  .admin-sidebar-icon i {
    font-size: 38px;
  }

  .admin-activation-banner,
  .admin-stat-card,
  .admin-panel-head,
  .admin-quick-actions,
  .admin-funnel-list,
  .admin-status-list,
  .admin-queue-list {
    padding-left: 18px;
    padding-right: 18px;
  }

  .admin-stat-value {
    font-size: 34px;
  }

  .admin-funnel-left h4 {
    font-size: 18px;
  }

  .admin-outline-btn {
    width: 100%;
    text-align: center;
  }
}

.admin-chart-wrap {
  padding: 24px;
  height: 360px;
}

.admin-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.admin-stat-card {
  min-width: 0;
}

.admin-stat-value {
  font-size: clamp(28px, 2.2vw, 42px);
  line-height: 1.1;
  color: #111;
  margin-bottom: 18px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ADMIN PRODUCT CATALOG */

.admin-stats-grid-catalog {
  margin-bottom: 24px;
}

.admin-catalog-toolbar {
  padding: 24px;
  border-top: 1px solid #ece9e5;
  border-bottom: 1px solid #ece9e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.admin-catalog-search {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.admin-catalog-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #7a746d;
  font-size: 14px;
}

.admin-catalog-search input {
  width: 100%;
  height: 54px;
  border: 1px solid #d8d6d4;
  background: #fcfcfc;
  padding: 0 18px 0 42px;
  font-size: 15px;
  color: #4a4a4a;
  outline: none;
  font-family: "Playfair Display", serif;
}

.admin-catalog-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-catalog-select {
  min-width: 170px;
  height: 54px;
  border: 1px solid #d8d6d4;
  background: #fcfcfc;
  padding: 0 16px;
  font-size: 15px;
  color: #4a4a4a;
  outline: none;
  font-family: "Playfair Display", serif;
}

.admin-management-list {
  width: 100%;
}

.admin-management-head,
.admin-management-row {
  display: grid;
  grid-template-columns: minmax(360px, 2.4fr) minmax(200px, 1.15fr) minmax(160px, 0.95fr) 130px 130px 84px;
  gap: 18px;
  align-items: center;
}

.admin-management-head {
  padding: 18px 24px;
  background: #faf8f6;
  border-bottom: 1px solid #ece9e5;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7a746d;
  font-weight: 700;
}

.admin-management-row {
  padding: 20px 24px;
  border-bottom: 1px solid #ece9e5;
  transition: all 0.25s ease;
}

.admin-management-row:hover {
  background: #fcfcfc;
}

.admin-management-product {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.admin-management-image-wrap {
  width: 82px;
  height: 82px;
  border: 1px solid #e3e1de;
  background: #f4f1ee;
  flex-shrink: 0;
  overflow: hidden;
}

.admin-management-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-management-product-info,
.admin-management-seller,
.admin-management-pricing,
.admin-management-status,
.admin-management-availability,
.admin-management-actions {
  min-width: 0;
}

.admin-management-product-name,
.admin-management-seller-name {
  font-size: 20px;
  line-height: 1.25;
  color: #111;
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-management-product-sub,
.admin-management-seller-sub {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.admin-management-price {
  font-size: 24px;
  color: #65081f;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}

.admin-management-stock {
  color: #555;
  font-size: 14px;
}

.admin-availability-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
}

.admin-availability-badge.is-available {
  background: #edf7f0;
  color: #1f6b3a;
  border-color: #cfe7d7;
}

.admin-availability-badge.is-unavailable {
  background: #f8ebee;
  color: #7a1f2e;
  border-color: #dfb8c2;
}

.admin-management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-management-icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #d8d6d4;
  background: #fff;
  color: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 18px;
}

.admin-management-icon-btn:hover {
  color: #fff;
  background: #65081f;
  border-color: #65081f;
  transform: translateY(-2px);
}

.admin-management-loading {
  padding: 26px 24px;
  color: #666;
}

@media (max-width: 1200px) {
  .admin-management-head {
    display: none;
  }

  .admin-management-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 18px;
  }

  .admin-management-product {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .admin-catalog-toolbar {
    padding: 18px;
  }

  .admin-catalog-filters {
    width: 100%;
  }

  .admin-catalog-select {
    width: 100%;
  }

  .admin-management-image-wrap {
    width: 72px;
    height: 72px;
  }

  .admin-management-product-name,
  .admin-management-seller-name {
    font-size: 18px;
  }

  .admin-management-price {
    font-size: 22px;
  }
}

.admin-management-head,
.admin-management-row {
  display: grid;
  grid-template-columns: minmax(360px, 2.5fr) minmax(220px, 1.2fr) 140px 120px 80px;
  gap: 18px;
  align-items: center;
}

.admin-management-details {
  min-width: 0;
}

.admin-management-detail-line {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 3px;
}

.admin-page {
  padding: 48px 0 72px;
}

.admin-page-container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.admin-page-container .seller-page-head {
  margin-bottom: 32px;
}

/* Admin add new product select styling */
.admin-content .seller-field select {
    width: 100%;
    min-height: 52px;
    padding: 0 48px 0 16px;
    border: 1px solid #cfc7bd;
    border-radius: 12px;
    background-color: #fff;
    color: #1f1a17;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%2355483f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
}

.admin-content .seller-field select:hover {
    border-color: #a6927c;
    background-color: #fffdfa;
}

.admin-content .seller-field select:focus {
    outline: none;
    border-color: #7a0019;
    box-shadow: 0 0 0 4px rgba(122, 0, 25, 0.10);
    background-color: #fff;
}

.admin-content .seller-field select option {
    color: #1f1a17;
    background: #fff;
}

/* Make dropdowns align nicely inside two-column form grid */
.admin-content .seller-form-grid .seller-field select {
    display: block;
}

/* Specific polish for the first admin controls row */
.admin-content #seller_id,
.admin-content #status,
.admin-content #category_id {
    max-width: 100%;
}

/* Optional: match labels and help text spacing better */
.admin-content .seller-field label {
    display: inline-block;
    margin-bottom: 10px;
}

.admin-content .seller-field .seller-help-text {
    display: block;
    margin-top: 10px;
    color: #7a6a5d;
    line-height: 1.5;
}

/* Product type block breathing room before category select */
.admin-content .seller-type-toggle {
    margin-bottom: 14px;
}

/* Better spacing between stacked full-width fields in admin form */
.admin-content .seller-field.full + .seller-field.full,
.admin-content .seller-field.full + .seller-form-grid {
    margin-top: 4px;
}

.admin-content #seller_id,
.admin-content #status,
.admin-content #category_id {
    min-height: 54px;
    border-radius: 14px;
    border: 1px solid #d6cdc3;
    background-color: #fcfbf9;
}

/* Product catalog header with right-side action */
.admin-page-head-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.admin-page-head-actions .admin-page-subtitle {
  max-width: 920px;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: flex-start;
  white-space: nowrap;
  text-decoration: none;

  background: #fff;
  color: #222;
  border: 1px solid #222;
  border-left: 3px solid #65081f;
  padding: 12px 22px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.admin-action-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  height: 100%;
  background: #65081f;
  transition: width 0.3s ease;
  z-index: -1;
}

.admin-action-btn:hover {
  color: #fff;
  border-color: #65081f;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.admin-action-btn:hover::before {
  width: 100%;
}

.admin-action-btn i {
  font-size: 14px;
  line-height: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .admin-page-head-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-action-btn {
    margin-top: 8px;
  }
}

.admin-edit-product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-edit-product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-delete-product-btn {
  background: #fff;
  border: 1px solid #222;
  border-left: 3px solid #8b1e2d;
  padding: 10px 26px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: 0;
}

/* same fill animation style as Global Cellar buttons */
.admin-delete-product-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #65081f;
  z-index: -1;
  transition: width 0.3s ease;
}

.admin-delete-product-btn:hover {

  color: #fff;
  border-color: #65081f;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.admin-delete-product-btn:hover::before {
  width: 100%;
}

/* order monitoring relatad */
/* ADMIN ORDER MONITORING */

.admin-stats-grid-orders {
  margin-bottom: 24px;
}

.admin-orders-panel {
  overflow: hidden;
}

.admin-orders-toolbar {
  padding: 24px;
  border-top: 1px solid #ece9e5;
  border-bottom: 1px solid #ece9e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.admin-orders-search {
  flex: 1;
  min-width: 320px;
}

.admin-orders-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-orders-table {
  width: 100%;
  min-width: 600px;
}

.admin-orders-head,
.admin-orders-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.admin-orders-head {
  padding: 18px 24px;
  background: #faf8f6;
  border-bottom: 1px solid #ece9e5;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7a746d;
  font-weight: 700;
}

.admin-orders-row {
  padding: 20px 24px;
  border-bottom: 1px solid #ece9e5;
  transition: background 0.25s ease;
}

.admin-orders-row:hover {
  background: #fcfcfc;
}

.admin-orders-primary {
  display: block;
  font-size: 16px;
  line-height: 1.45;
  color: #111;
  font-weight: 700;
  word-break: break-word;
}

.admin-orders-secondary {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.admin-orders-orderid .admin-orders-primary {
  color: #65081f;
  letter-spacing: 0.2px;
}

.admin-order-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  text-align: center;
}

.admin-order-pill.is-paid {
  background: #edf7f0;
  color: #1f6b3a;
  border-color: #cfe7d7;
}

.admin-order-pill.is-cod {
  background: #fff3df;
  color: #9a5c00;
  border-color: #ecd2a3;
}

.admin-order-pill.is-pending {
  background: #f4eff1;
  color: #7a5360;
  border-color: #dfd0d5;
}

.admin-order-pill.is-ready {
  background: #f3eef8;
  color: #6a4a8d;
  border-color: #dacdea;
}

.admin-order-pill.is-transit {
  background: #edf4fb;
  color: #315e8f;
  border-color: #cedff1;
}

.admin-order-pill.is-complete {
  background: #edf7f0;
  color: #1f6b3a;
  border-color: #cfe7d7;
}

.admin-order-pill.is-problem {
  background: #f8ebee;
  color: #8a2437;
  border-color: #e2c3ca;
}

.admin-order-pill.is-neutral {
  background: #f7f5f3;
  color: #625c56;
  border-color: #e3ddd8;
}

.admin-order-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #d8d6d4;
  background: #fff;
  color: #222;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.admin-order-view-btn:hover {
  background: #65081f;
  border-color: #65081f;
  color: #fff;
  transform: translateY(-2px);
}

.admin-orders-empty {
  padding: 40px 24px 48px;
  text-align: center;
}

.admin-orders-empty h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #111;
}

.admin-orders-empty p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .admin-orders-toolbar {
    padding: 18px;
  }

  .admin-orders-search {
    min-width: 100%;
  }

  .admin-orders-filters {
    width: 100%;
  }

  .admin-orders-filters .admin-catalog-select {
    flex: 1 1 180px;
  }
}

/* ADMIN ORDER MONITORING */

.admin-stats-grid-orders {
  margin-bottom: 24px;
}

.admin-orders-panel {
  overflow: hidden;
}

.admin-orders-toolbar {
  padding: 24px;
  border-top: 1px solid #ece9e5;
  border-bottom: 1px solid #ece9e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.admin-orders-search {
  flex: 1;
  min-width: 320px;
}

.admin-orders-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-orders-table {
  width: 100%;
  min-width: 700px;
}

.admin-order-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  text-align: center;
}

.admin-order-pill.is-paid {
  background: #edf7f0;
  color: #1f6b3a;
  border-color: #cfe7d7;
}

.admin-order-pill.is-cod {
  background: #fff3df;
  color: #9a5c00;
  border-color: #ecd2a3;
}

.admin-order-pill.is-pending {
  background: #f4eff1;
  color: #7a5360;
  border-color: #dfd0d5;
}

.admin-order-pill.is-ready {
  background: #f3eef8;
  color: #6a4a8d;
  border-color: #dacdea;
}

.admin-order-pill.is-transit {
  background: #edf4fb;
  color: #315e8f;
  border-color: #cedff1;
}

.admin-order-pill.is-complete {
  background: #edf7f0;
  color: #1f6b3a;
  border-color: #cfe7d7;
}

.admin-order-pill.is-problem {
  background: #f8ebee;
  color: #8a2437;
  border-color: #e2c3ca;
}

.admin-order-pill.is-neutral {
  background: #f7f5f3;
  color: #625c56;
  border-color: #e3ddd8;
}

.admin-order-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #d8d6d4;
  background: #fff;
  color: #222;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.admin-order-view-btn:hover {
  background: #65081f;
  border-color: #65081f;
  color: #fff;
  transform: translateY(-2px);
}

.admin-orders-empty {
  padding: 40px 24px 48px;
  text-align: center;
}

.admin-orders-empty h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #111;
}

.admin-orders-empty p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .admin-orders-toolbar {
    padding: 18px;
  }

  .admin-orders-search {
    min-width: 100%;
  }

  .admin-orders-filters {
    width: 100%;
  }

  .admin-orders-filters .admin-catalog-select {
    flex: 1 1 180px;
  }
}




.admin-seller-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  border-top: 1px solid #ece9e5;
}

/* LEFT PANEL */
.admin-seller-list {
  border-right: 1px solid #ece9e5;
}

.admin-seller-item {
  padding: 18px;
  border-bottom: 1px solid #ece9e5;
  cursor: pointer;
  position: relative;
}

.admin-seller-item.active {
  background: #faf8f6;
}

.admin-seller-name {
  font-weight: 700;
}

.admin-seller-sub {
  font-size: 13px;
  color: #777;
}

/* STATUS BADGES */
.status-badge {
  position: absolute;
  right: 16px;
  top: 18px;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
  font-weight: 600;
}

.status-badge.reviewing {
  background: #ffe9cc;
  color: #b25b00;
}

.status-badge.pending {
  background: #eee;
}

.status-badge.needs {
  background: #f8d7da;
  color: #842029;
}

/* RIGHT PANEL */
.admin-seller-details {
  padding: 24px;
}

.admin-seller-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-seller-actions {
  display: flex;
  gap: 12px;
}

/* BUTTONS - Properly sized to match Global Cellar brand */
.btn-primary {
  background: #65081f;
  color: #fff;
  border: 1px solid #65081f;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  height: 100%;
  background: #4a0516;
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(101, 8, 31, 0.2);
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-primary:disabled,
.btn-primary.disabled {
  background: #ccc;
  border-color: #ccc;
  color: #888;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary:disabled::before,
.btn-primary.disabled::before {
  display: none;
}

.btn-outline {
  border: 1px solid #222;
  background: #fff;
  color: #222;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  height: 100%;
  background: #f5f5f5;
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-outline:hover {
  border-color: #65081f;
  color: #65081f;
  transform: translateY(-1px);
}

.btn-outline:hover::before {
  width: 100%;
}

/* GRID */
.admin-seller-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-seller-grid label {
  font-size: 12px;
  color: #777;
}

/* SCROLLABLE SELLER LIST */
.admin-seller-list {
  border-right: 1px solid #ece9e5;
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d0ccc7 transparent;
}

.admin-seller-list::-webkit-scrollbar {
  width: 6px;
}

.admin-seller-list::-webkit-scrollbar-track {
  background: transparent;
}

.admin-seller-list::-webkit-scrollbar-thumb {
  background-color: #d0ccc7;
  border-radius: 3px;
}

.admin-seller-list::-webkit-scrollbar-thumb:hover {
  background-color: #b0aca7;
}

/* ADDITIONAL STATUS BADGES FOR SELLERS */
.status-badge.approved {
  background: #edf7f0;
  color: #1f6b3a;
  border: 1px solid #cfe7d7;
}

.status-badge.rejected {
  background: #f8ebee;
  color: #8a2437;
  border: 1px solid #e2c3ca;
}

.status-badge.draft {
  background: #f7f5f3;
  color: #625c56;
  border: 1px solid #e3ddd8;
}

/* SELLER LOADING STATE */
.admin-seller-loading {
  padding: 24px;
  text-align: center;
  color: #777;
  font-size: 14px;
}

/* SELLER SECTION HEADERS */
.admin-seller-section {
  margin-top: 24px;
}

.admin-seller-section h3 {
  font-size: 18px;
  margin: 0 0 16px;
  color: #111;
}

/* BUTTON STYLES */
.btn-primary {
  background: #65081f;
  color: #fff;
  border: 1px solid #65081f;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 4px;
}

.btn-primary:hover {
  background: #4a0516;
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  color: #222;
  border: 1px solid #ccc;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  background: #f5f5f5;
  border-color: #999;
}

/* ADMIN SELLER DETAILS GRID ENHANCEMENTS */
.admin-seller-grid p {
  color: #222;
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

/* HELPER CLASSES */
.admin-seller-empty {
  padding: 40px 24px;
  text-align: center;
  color: #666;
}

.admin-seller-empty h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.admin-seller-empty p {
  margin: 0;
  color: #777;
}

/* ADMIN SELLER DOCUMENTS 2x2 GRID */
.admin-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.admin-doc-card {
  background: #faf8f6;
  border: 1px solid #e5dfd9;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-doc-name {
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

.admin-doc-card .btn-outline {
  padding: 8px 14px;
  font-size: 13px;
}

.admin-doc-status-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d8d6d4;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.admin-doc-status-select:focus {
  border-color: #65081f;
}

.admin-doc-status-select.doc-approved {
  background: #edf7f0;
  border-color: #cfe7d7;
  color: #1f6b3a;
}

.admin-doc-status-select.doc-pending {
  background: #f7f5f3;
  border-color: #e3ddd8;
  color: #625c56;
}

.admin-doc-status-select.doc-needs_revision {
  background: #fff3df;
  border-color: #ecd2a3;
  color: #9a5c00;
}

.admin-doc-status-select.doc-rejected {
  background: #f8ebee;
  border-color: #e2c3ca;
  color: #8a2437;
}

/* INLINE STATUS IN GRID */
.admin-seller-grid > div:has(.status-badge) {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-seller-grid .status-badge {
  position: relative;
  right: auto;
  top: auto;
  display: inline-flex;
  padding: 8px 14px;
}

/* Seller Approval Notice */
.admin-seller-notice {
  background: #faf4f5;
  border: 1px solid #ead8dd;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.admin-seller-notice p {
  margin: 0;
  color: #65081f;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-seller-notice i {
  font-size: 16px;
}

/* ADMIN VIEW ORDER */

.admin-view-order {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Bottom Toolbar */
.admin-order-toolbar {
  background: #fff;
  border: 1px solid #ddd7d2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.03);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
  position: sticky;
  bottom: 0;
}

.admin-order-toolbar .admin-action-btn {
  min-height: 44px;
  font-size: 14px;
  padding: 10px 18px;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.admin-order-toolbar .admin-action-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  height: 100%;
  background: #65081f;
  transition: width 0.3s ease;
  z-index: -1;
}

.admin-order-toolbar .admin-action-btn:hover {
  color: #fff;
  border-color: #65081f;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.admin-order-toolbar .admin-action-btn:hover::before {
  width: 100%;
}

.admin-order-toolbar .admin-action-btn-primary {
  background: #65081f;
  color: #fff;
  border-color: #65081f;
}

.admin-order-toolbar .admin-action-btn-primary:hover {
  background: #4a0516;
  border-color: #4a0516;
}

.admin-action-btn-primary {
  background: #65081f;
  color: #fff;
  border-color: #65081f;
}

.admin-action-btn-primary::before {
  display: none;
}

.admin-action-btn-primary:hover {
  background: #4a0516;
  border-color: #4a0516;
  color: #fff;
}

/* Mini buttons for inline actions */
.admin-order-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  color: #222;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
  border-radius: 4px;
}

.admin-order-mini-btn:hover {
  background: #f5f5f5;
  border-color: #999;
  transform: translateY(-1px);
}

.admin-order-mini-btn.danger {
  color: #c41e3a;
  border-color: #e2a8b3;
  background: #fdf2f4;
}

.admin-order-mini-btn.danger:hover {
  background: #fceef1;
  border-color: #c41e3a;
  color: #c41e3a;
}

/* Input field styling */
.admin-order-qty-input {
  width: 60px;
  padding: 8px 10px;
  border: 1px solid #d8d6d4;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  background: #fcfcfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-order-qty-input:focus {
  outline: none;
  border-color: #65081f;
  box-shadow: 0 0 0 3px rgba(101, 8, 31, 0.1);
  background: #fff;
}

/* Add item section */
.admin-order-add-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: #faf8f6;
  border-top: 1px solid #ece9e5;
  flex-wrap: wrap;
}

.admin-order-add-item select {
  flex: 1;
  min-width: 200px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #d8d6d4;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.admin-order-add-item select:focus {
  outline: none;
  border-color: #65081f;
}

.admin-order-add-item input[type="number"] {
  width: 70px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d8d6d4;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  background: #fff;
}

.admin-order-add-item input[type="number"]:focus {
  outline: none;
  border-color: #65081f;
}

/* Internal note form */
.admin-order-note-form {
  padding: 16px 22px 22px;
}

.admin-order-note-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d8d6d4;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  min-height: 100px;
  background: #fcfcfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.admin-order-note-form textarea:focus {
  outline: none;
  border-color: #65081f;
  box-shadow: 0 0 0 3px rgba(101, 8, 31, 0.1);
  background: #fff;
}

.admin-order-note-form .admin-action-btn {
  margin-top: 14px;
}

/* Status badge styling for packing */
.admin-order-pill.is-packing {
  background: #fff3df;
  color: #9a5c00;
  border-color: #ecd2a3;
}

.admin-order-pill.is-progress {
  background: #edf4fb;
  color: #315e8f;
  border-color: #cedff1;
}

.admin-order-breadcrumb {
  font-size: 14px;
  color: #7a746d;
}

.admin-order-breadcrumb a {
  color: #65081f;
  text-decoration: none;
  font-weight: 600;
}

.admin-order-header {
  background: #fff;
  border: 1px solid #ddd7d2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.03);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-order-header h1 {
  margin: 0 0 8px;
  font-size: 38px;
  color: #111;
}

.admin-order-header p {
  margin: 0;
  color: #666;
  font-size: 15px;
}

.admin-order-header-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f4eff1;
  color: #7a5360;
  border: 1px solid #dfd0d5;
  font-size: 13px;
  font-weight: 700;
}

.admin-order-flow {
  background: #fff;
  border: 1px solid #ddd7d2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.03);
  padding: 20px 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.admin-order-flow-step {
  position: relative;
  padding: 12px;
  border: 1px solid #ece9e5;
  background: #faf8f6;
  min-height: 84px;
}

.admin-order-flow-step.is-complete {
  border-color: #cfe7d7;
  background: #edf7f0;
}

.admin-order-flow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c9c4be;
  margin-bottom: 8px;
}

.admin-order-flow-step.is-complete .admin-order-flow-dot {
  background: #1f6b3a;
}

.admin-order-flow-label {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  line-height: 1.35;
}

.admin-order-flow-time {
  margin-top: 6px;
  color: #6f6a64;
  font-size: 12px;
}

.admin-order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 0.95fr);
  gap: 20px;
}

.admin-order-main,
.admin-order-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-order-card {
  padding: 0;
}

.admin-order-card h3 {
  margin: 0;
  padding: 20px 22px;
  border-bottom: 1px solid #ece9e5;
  font-size: 24px;
  color: #111;
}

.admin-order-items-head,
.admin-order-item-row {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(180px, 1.2fr) 72px 120px;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
}

.admin-order-items-head {
  background: #faf8f6;
  border-bottom: 1px solid #ece9e5;
  color: #7a746d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.admin-order-item-row {
  border-bottom: 1px solid #ece9e5;
}

.admin-order-item-row:last-child {
  border-bottom: none;
}

.admin-order-item-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-order-item-product img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 1px solid #e3e1de;
  background: #f4f1ee;
}

.admin-order-item-name {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
}

.admin-order-item-source,
.admin-order-item-qty,
.admin-order-item-total {
  color: #333;
  font-size: 14px;
}

.admin-order-item-total {
  font-weight: 700;
  color: #65081f;
}

.admin-order-note {
  margin: 16px 22px;
  padding: 12px 14px;
  border: 1px solid #ece9e5;
  background: #fcfcfc;
  color: #4d4d4d;
  font-size: 14px;
  line-height: 1.6;
}

.admin-order-note.customer {
  border-color: #ecd2a3;
  background: #fff9ef;
}

.admin-order-note.internal {
  border-color: #dfd0d5;
  background: #f8f4f6;
}

.admin-order-activity {
  padding: 18px 22px 22px;
}

.admin-order-activity-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #ece9e5;
}

.admin-order-activity-item:last-child {
  border-bottom: none;
}

.admin-order-activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #65081f;
  margin-top: 7px;
}

.admin-order-activity-title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

.admin-order-activity-time {
  margin-top: 4px;
  font-size: 13px;
  color: #6f6a64;
}

.admin-order-card p {
  margin: 0;
  padding: 10px 22px;
  color: #444;
  font-size: 14px;
  line-height: 1.55;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-order-card p strong {
  color: #111;
}

.admin-order-card p span {
  color: #6f6a64;
}

.admin-order-card hr {
  border: 0;
  border-top: 1px solid #ece9e5;
  margin: 8px 22px;
}

.admin-order-muted {
  color: #777;
  font-size: 14px;
}

@media (max-width: 1200px) {
  .admin-order-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .admin-order-flow {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .admin-order-header h1 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .admin-order-header {
    flex-direction: column;
  }

  .admin-order-flow {
    grid-template-columns: 1fr;
  }

  .admin-order-items-head {
    display: none;
  }

  .admin-order-item-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-order-item-qty::before {
    content: "Qty: ";
    font-weight: 700;
  }

  .admin-order-item-source::before {
    content: "Seller: ";
    font-weight: 700;
  }

  .admin-order-item-total::before {
    content: "Total: ";
    font-weight: 700;
  }
}

/* Enhanced View Order Page Styling - Global Cellar Brand */

/* Order Header Enhancement */
.admin-order-header {
  background: linear-gradient(135deg, #fff 0%, #faf8f6 100%);
  position: relative;
}

.admin-order-header::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(90deg, transparent, rgba(101, 8, 31, 0.03));
  pointer-events: none;
}

.admin-order-header h1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.admin-order-header p {
  font-size: 14px;
  color: #777;
}

/* Status Badge Colors */
.admin-order-header-status {
  background: linear-gradient(135deg, #f4eff1 0%, #faf8f6 100%);
}

/* Flow Steps Enhancement */
.admin-order-flow {
  background: linear-gradient(135deg, #fff 0%, #faf8f6 100%);
  border-left: 4px solid #65081f;
}

.admin-order-flow-step {
  background: #fff;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.admin-order-flow-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.admin-order-flow-step.is-complete {
  background: linear-gradient(135deg, #edf7f0 0%, #f0f9f3 100%);
  border-color: #1f6b3a;
}

.admin-order-flow-dot {
  width: 14px;
  height: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-order-flow-step.is-complete .admin-order-flow-dot {
  box-shadow: 0 2px 6px rgba(31, 107, 58, 0.3);
}

/* Order Cards Enhancement */
.admin-order-card {
  border-radius: 12px;
  overflow: hidden;
}

.admin-order-card h3 {
  font-family: "Playfair Display", serif;
  background: linear-gradient(135deg, #faf8f6 0%, #fff 100%);
  font-size: 20px;
  font-weight: 700;
  color: #111;
  border-bottom: 2px solid #ece9e5;
}

/* Order Items Enhancement */
.admin-order-item-row {
  transition: all 0.2s ease;
}

.admin-order-item-row:hover {
  background: #faf8f6;
}

.admin-order-item-product img {
  border-radius: 8px;
}

.admin-order-item-name {
  font-family: "Playfair Display", serif;
}

/* Add Item Section Enhancement */
.admin-order-add-item {
  background: linear-gradient(135deg, #faf8f6 0%, #fff 100%);
  border-top: 2px solid #ece9e5;
}

.admin-order-add-item select {
  border: 1px solid #d8d6d4;
  border-radius: 8px;
  font-family: "Playfair Display", serif;
}

.admin-order-add-item select:focus {
  border-color: #65081f;
  box-shadow: 0 0 0 3px rgba(101, 8, 31, 0.1);
}

/* Internal Notes Enhancement */
.admin-order-note-form textarea {
  font-family: "Playfair Display", serif;
  border-radius: 10px;
}

/* Toolbar Enhancement */
.admin-order-toolbar {
  background: linear-gradient(135deg, #fff 0%, #faf8f6 100%);
  border-top: 2px solid #ece9e5;
  border-radius: 12px;
  margin-top: 24px;
  padding: 20px 24px;
}

.admin-action-btn {
  font-family: "Playfair Display", serif;
  border-radius: 8px;
}

.admin-action-btn:hover {
  box-shadow: 0 6px 16px rgba(101, 8, 31, 0.2);
}

/* Side Panel Enhancement */
.admin-order-side .admin-panel {
  border-radius: 12px;
}

.admin-order-side .admin-panel h3 {
  font-size: 18px;
}

/* Activity Log Enhancement */
.admin-order-activity-item {
  padding: 14px 0;
  border-bottom: 1px dashed #e5dfd9;
}

.admin-order-activity-dot {
  width: 10px;
  height: 10px;
  box-shadow: 0 2px 4px rgba(101, 8, 31, 0.2);
}

/* Mini Buttons Enhancement */
.admin-order-mini-btn {
  font-family: "Playfair Display", serif;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.admin-order-mini-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Qty Input Enhancement */
.admin-order-qty-input {
  font-family: "Playfair Display", serif;
  border-radius: 8px;
}

/* Remove Button - Trash Icon */
.admin-order-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  color: #7a746d;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin-left: 8px;
}

.admin-order-remove-btn:hover {
  background: #f8ebee;
  color: #c41e3a;
  transform: translateY(-1px);
}

.admin-order-remove-btn i {
  font-size: 16px;
}

/* Internal Notes Edit Button */
.admin-internal-note-edit-btn {
  margin: 16px 22px;
}

/* Hidden class for toggle functionality */
.hidden {
  display: none !important;
}

/* Notes Enhancement */
.admin-order-note {
  font-family: "Playfair Display", serif;
  border-radius: 10px;
}

/* Customer Note Enhancement */
.admin-order-note.customer {
  border-left: 3px solid #d99000;
}

/* Internal Note Enhancement */
.admin-order-note.internal {
  border-left: 3px solid #65081f;
}

/* Payment Summary Enhancement */
.admin-order-card hr {
  border-top: 2px solid #ece9e5;
  margin: 12px 22px;
}

/* Breadcrumb Enhancement */
.admin-order-breadcrumb a {
  font-family: "Playfair Display", serif;
  transition: all 0.2s ease;
}

.admin-order-breadcrumb a:hover {
  text-decoration: underline;
}

/* Responsive Enhancement */
@media (max-width: 992px) {
  .admin-order-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-order-toolbar .admin-action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Commission Percentage Field in Seller Approvals */
.admin-commission-field {
  grid-column: 1 / -1;
  padding: 16px 18px;
  background: #faf8f6;
  border: 1px solid #e5dfd9;
  border-radius: 8px;
  margin-top: 8px;
}

.admin-commission-field label {
  display: block;
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.commission-display {
  display: flex;
  align-items: center;
  gap: 12px;
}

.commission-display span {
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.commission-display .btn-outline {
  padding: 8px 14px;
  font-size: 13px;
  min-height: 36px;
}

.commission-edit {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.commission-edit input {
  width: 100px;
  padding: 10px 14px;
  border: 1px solid #d8d6d4;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.commission-edit input:focus {
  outline: none;
  border-color: #65081f;
  box-shadow: 0 0 0 3px rgba(101, 8, 31, 0.1);
}

.commission-actions {
  display: flex;
  gap: 10px;
}

.commission-actions .btn-primary,
.commission-actions .btn-outline {
  padding: 8px 14px;
  font-size: 13px;
  min-height: 36px;
}

/* Small button utility class */
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  min-height: 32px;
}

/* Form input utility */
.form-input {
  padding: 10px 14px;
  border: 1px solid #d8d6d4;
  border-radius: 6px;
  font-size: 15px;
  color: #222;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #65081f;
  box-shadow: 0 0 0 3px rgba(101, 8, 31, 0.1);
}

/* VIEW WAYBILL */
.admin-view-waybill {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.admin-waybill-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, 0.95fr);
  gap: 20px;
}

.admin-waybill-preview {
  padding: 18px;
}

.admin-waybill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-waybill-card {
  border: 1px solid #ece9e5;
  border-radius: 12px;
  background: #fff;
  padding: 20px;
}

.admin-waybill-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #ece9e5;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.admin-waybill-brand {
  font-size: 24px;
  font-weight: 800;
  color: #111;
}

.admin-waybill-service {
  font-size: 18px;
  font-weight: 700;
  color: #65081f;
}

.admin-waybill-body {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.admin-waybill-address {
  flex: 1;
}

.admin-waybill-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #7e736d;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: 700;
}

.admin-waybill-address p {
  margin: 0 0 6px;
  color: #4f4f4f;
}

.admin-waybill-qr-wrap {
  width: 220px;
  min-width: 220px;
  border-left: 1px dashed #ddd5cf;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.admin-waybill-qr {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border: 1px solid #ece9e5;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.admin-waybill-qr-empty {
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d8d0c9;
  border-radius: 8px;
  color: #8c8179;
  font-size: 13px;
}

.admin-waybill-track {
  margin-top: 10px;
  font-weight: 700;
  color: #65081f;
  text-align: center;
}

.admin-waybill-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #ece9e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.admin-waybill-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-waybill-side .admin-order-card {
  padding: 18px;
}

.admin-dispatch-group {
  margin-bottom: 12px;
}

.admin-dispatch-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #6f6a64;
  font-weight: 600;
}

.admin-dispatch-group input {
  width: 100%;
  height: 40px;
  border: 1px solid #ddd5cf;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: #3a2f2f;
  background: #fff;
}

.admin-dispatch-release-btn {
  width: 100%;
  margin-top: 8px;
}

.mt10 {
  margin-top: 10px;
}

.mt16 {
  margin-top: 16px;
}

@media (max-width: 1200px) {
  .admin-waybill-layout {
    grid-template-columns: 1fr;
  }

  .admin-waybill-qr-wrap {
    width: 180px;
    min-width: 180px;
  }

  .admin-waybill-qr,
  .admin-waybill-qr-empty {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 768px) {
  .admin-waybill-body {
    flex-direction: column;
  }

  .admin-waybill-qr-wrap {
    width: 100%;
    min-width: 100%;
    border-left: 0;
    border-top: 1px dashed #ddd5cf;
    padding-left: 0;
    padding-top: 16px;
  }

  .admin-waybill-brand {
    font-size: 20px;
  }

  .admin-waybill-service {
    font-size: 15px;
  }
}

/* ADMIN COMMISSIONS */

.admin-stats-grid-commissions {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  margin-bottom: 24px;
}

.admin-commissions-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-commissions-panel {
  overflow: hidden;
}

.admin-commissions-toolbar {
  padding: 24px;
  border-top: 1px solid #ece9e5;
  border-bottom: 1px solid #ece9e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.admin-commissions-search {
  flex: 1;
  min-width: 320px;
}

.admin-commissions-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-commissions-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-commissions-table {
  width: 100%;
  min-width: 1100px;
}

.admin-commissions-head,
.admin-commissions-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) minmax(180px, 1.35fr) minmax(130px, 0.9fr) minmax(110px, 0.7fr) minmax(130px, 0.9fr) minmax(130px, 0.9fr) minmax(140px, 0.95fr);
  gap: 14px;
  align-items: center;
}

.admin-commissions-head {
  padding: 18px 24px;
  background: #faf8f6;
  border-bottom: 1px solid #ece9e5;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7a746d;
  font-weight: 700;
}

.admin-commissions-row {
  padding: 18px 24px;
  border-bottom: 1px solid #ece9e5;
  transition: background 0.25s ease;
}

.admin-commissions-row:hover {
  background: #fcfcfc;
}

.admin-comm-order .admin-orders-primary {
  color: #111;
}

.admin-comm-money-value {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.admin-comm-money-value.is-gc {
  color: #1f8a4d;
}

.admin-comm-rate-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f7f5f3;
  border: 1px solid #e3ddd8;
  color: #5f5852;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .admin-stats-grid-commissions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .admin-commissions-toolbar {
    padding: 18px;
  }

  .admin-commissions-search {
    min-width: 100%;
  }

  .admin-commissions-filters {
    width: 100%;
  }

  .admin-commissions-filters .admin-catalog-select {
    flex: 1 1 180px;
  }
}
