@charset "utf-8";

/* =============================================================
   ADMIN REFERENCE THEME
   Final skin layer matching the approved reference mockups
   (1Gigs SaaS style: white sidebar, blue primary, topbar with
   search + badges + user chip, card page furniture).
   Loaded AFTER admin-modern.css — overrides only the deltas.
   ============================================================= */

:root {
  --adm-primary: #2563eb;
  --adm-primary-dark: #1d4ed8;
  --adm-primary-soft: rgba(37, 99, 235, 0.08);
  --primary: #2563eb;
  --adm-bg: #f5f7fb;
  --adm-border: #e8ecf4;
  --adm-radius: 14px;
  --adm-header-h: 64px;
}

body,
body.hold-transition {
  background-color: var(--adm-bg);
}

/* =============================================================
   TOPBAR
   ============================================================= */

.main-header.navbar {
  min-height: var(--adm-header-h);
  padding: 0 1.25rem;
  gap: 0.75rem;
  border-bottom: 1px solid var(--adm-border);
}

.main-header .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* hamburger */
.main-header .nav-link[data-widget="pushmenu"] {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #334155;
  font-size: 1.05rem;
}

/* global search */
.topbar-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 1 420px;
  height: 40px;
  margin: 0 0 0 0.25rem;
  padding: 0 1rem;
  background: #f4f6fa;
  border: 1px solid #e6eaf2;
  border-radius: 999px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.topbar-search:focus-within {
  background: #fff;
  border-color: var(--adm-primary);
  box-shadow: 0 0 0 3px var(--adm-primary-soft);
}

.topbar-search i {
  color: #94a3b8;
  font-size: 0.85rem;
}

.topbar-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.875rem;
  color: var(--adm-text);
}

.topbar-search input::placeholder {
  color: #94a3b8;
}

/* icon buttons with count badges */
.main-header .icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #475569;
  font-size: 1rem;
}

.main-header .icon-btn:hover {
  background: #f1f5f9;
  color: var(--adm-primary);
}

.main-header .icon-btn .count-badge {
  position: absolute;
  top: 1px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  border: 2px solid #fff;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}

/* user chip: avatar + name + role + caret */
.main-header .user-menu > a.dropdown-toggle {
  gap: 0.65rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border: none;
  background: transparent;
  border-radius: 12px;
}

.main-header .user-menu > a.dropdown-toggle:hover {
  background: #f1f5f9;
  border: none;
}

.main-header .user-menu .user-image {
  width: 40px;
  height: 40px;
}

.main-header .user-chip-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.main-header .user-chip-info strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--adm-text);
  white-space: nowrap;
}

.main-header .user-chip-info small {
  font-size: 0.72rem;
  color: var(--adm-muted);
}

.main-header .user-menu .fa-chevron-down {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-left: 0.15rem;
}

/* bootstrap adds its own caret — the chevron icon replaces it */
.main-header .user-menu > a.dropdown-toggle::after {
  display: none;
}

@media (max-width: 575.98px) {
  .main-header .user-chip-info,
  .main-header .user-menu .fa-chevron-down {
    display: none;
  }
}

/* =============================================================
   SIDEBAR
   ============================================================= */

.nav-sidebar .nav-header {
  font-size: 0.66rem;
  padding: 1rem 0.75rem 0.4rem;
}

/* active item: solid blue pill with white text (per reference) */
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active:hover {
  background: var(--adm-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active > .nav-icon {
  color: #fff;
}

/* open group: drop the outlined card — flatter per reference */
.nav-sidebar > .nav-item.menu-open {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  margin: 0 0 0.25rem;
}

.nav-sidebar .menu-open > .nav-link:not(.active),
.nav-sidebar > .nav-item.menu-open > .nav-link:not(.active) {
  background: #f1f5f9;
  border-radius: 12px;
}

.nav-sidebar .nav-treeview {
  background: transparent;
  margin: 0.15rem 0 0.35rem;
  padding: 0.15rem 0.25rem 0.15rem 0.75rem;
}

.nav-sidebar .nav-treeview::before {
  display: none;
}

.nav-sidebar .nav-treeview .nav-link::before {
  width: 7px;
  height: 7px;
  left: 8px;
  border: none;
  background: #cbd5e1;
  box-shadow: none;
}

.nav-sidebar .nav-treeview .nav-link.active::before,
.nav-sidebar .nav-treeview .nav-link:hover::before {
  background: var(--adm-primary);
}

.nav-sidebar .nav-item > .nav-treeview .nav-link {
  padding-inline-start: 1.6rem;
}

/* sidebar notification badge — red pill like reference */
.nav-sidebar .badge.bg-danger {
  border-radius: 999px;
  font-weight: 700;
}

/* =============================================================
   PAGE HEADER + BREADCRUMB
   ============================================================= */

.content-header {
  padding: 1.4rem 1.25rem 0.75rem;
}

.content-header h1 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.breadcrumb {
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.breadcrumb a {
  color: var(--adm-primary);
}

.breadcrumb-item.active {
  color: var(--adm-muted);
}

/* header action buttons: solid primary + white outline secondaries */
.content-header .btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
}

.content-header .btn-warning,
.content-header .btn-info,
.content-header .btn-default,
.content-header .btn-box-tool {
  background: #fff;
  border: 1px solid #dbe3ef;
  color: #1f2937;
}

.content-header .btn-warning:hover,
.content-header .btn-info:hover,
.content-header .btn-default:hover,
.content-header .btn-box-tool:hover {
  background: #f8fafc;
  border-color: #c7d2e5;
  color: var(--adm-primary);
}

/* =============================================================
   FILTER CARD (search + selects row)
   ============================================================= */

.content-header.filter-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  box-shadow: var(--adm-shadow);
  margin: 0 1.25rem 1rem;
  padding: 1rem 1.25rem;
}

.content-header.filter-card .form-control,
.content-header.filter-card .btn {
  height: 40px;
}

/* reference layout: search sits on the left of the filter card */
.content-header.filter-card .row.justify-content-end {
  justify-content: flex-start !important;
}

.content-header.filter-card .row.justify-content-end > [class*="col"]:last-child:not(:first-child) {
  margin-left: auto;
}

.content-header.filter-card .input-group .form-control {
  border-radius: 10px 0 0 10px;
}

.content-header.filter-card .input-group-append .btn {
  border-radius: 0 10px 10px 0;
}

/* advance panel inside filter card: flatten (no card-in-card) */
.content-header.filter-card .advance-search-panel {
  background: transparent;
  border: none;
  border-top: 1px solid var(--adm-border);
  border-radius: 0;
  box-shadow: none;
  padding: 0.9rem 0 0;
  margin-top: 1rem;
}

/* status links as underline tabs (per reference) */
.status-filter-link {
  position: relative;
  border-radius: 0;
  padding: 0.45rem 0.15rem;
  margin: 0 1.35rem 0 0;
  font-weight: 600;
  color: var(--adm-muted);
}

.status-filter-link:hover {
  background: transparent;
  color: var(--adm-text);
}

.status-filter-link.active {
  background: transparent;
  color: var(--adm-primary);
}

.status-filter-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--adm-primary);
}

/* =============================================================
   TABLE CARD
   ============================================================= */

.content > .table-responsive,
.content > form > .table-responsive {
  margin: 0 0 0.5rem;
}

.content {
  padding: 0 1.25rem 0.5rem;
}

/* header row: sentence case, bold dark on white (reference style) */
.table th {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: #1e293b;
  background: #ffffff;
  border-bottom: 1px solid var(--adm-border);
  padding: 0.85rem 1rem;
}

.table td {
  padding: 0.85rem 0.65rem;
  color: #334155;
  border-bottom: 1px solid transparent; /* reserved so the hover ring never shifts the row */
}

.table th {
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

/* row hover: soft indigo tint with a rounded outline (reference style) */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table-hover tbody tr:hover {
  background: transparent;
}

.table-hover tbody tr:hover > td {
  background: #f5f5ff;
  border-top-color: #c7d2fe;
  border-bottom-color: #c7d2fe;
}

.table td:first-child {
  border-left: 1px solid transparent;
}

.table td:last-child {
  border-right: 1px solid transparent;
}

.table-hover tbody tr:hover > td:first-child {
  border-left-color: #c7d2fe;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.table-hover tbody tr:hover > td:last-child {
  border-right-color: #c7d2fe;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* the row below the hovered one hides its own top divider so the
   ring reads as a single clean outline */
.table-hover tbody tr:hover + tr > td {
  border-top-color: transparent;
}

/* action icons — bordered chips per reference */
.table td a > .fa,
.table td a > .fas,
.table td a > .far,
.table td a > .fab {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--adm-primary);
}

.table td a > .fa.green,
.table td a > .fas.green {
  color: #16a34a;
  background: #fff;
  border-color: #d1e7dd;
}

.table td a:hover > .fa.green,
.table td a:hover > .fas.green {
  background: #f0fdf4;
}

.table td a > .fa.red,
.table td a > .fas.red {
  color: #dc2626;
  background: #fff;
  border-color: #f5d0d0;
}

.table td a:hover > .fa.red,
.table td a:hover > .fas.red {
  background: #fef2f2;
}

.table td a:hover > .fa,
.table td a:hover > .fas {
  border-color: currentColor;
}

/* =============================================================
   BUTTONS
   ============================================================= */

.btn {
  border-radius: 10px;
}

.btn-primary,
.btn-site {
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* =============================================================
   STAT CARDS (small-box) — icon tile LEFT, value + label right
   ============================================================= */

.small-box {
  border-radius: var(--adm-radius);
}

.small-box {
  position: relative;
}

.small-box .icon,
.small-box > .icon {
  position: absolute;
  top: 50%;
  left: 1.25rem;
  right: auto;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

/* footer-less cards center on full height; ones with footer center above it */
.small-box .small-box-footer ~ .icon,
.small-box:has(.small-box-footer) .icon {
  top: calc(50% - 15px);
}

.small-box .inner {
  display: block;
  padding: 1.1rem 1.25rem 1.1rem calc(1.25rem + 48px + 0.9rem);
  min-height: calc(48px + 2.2rem);
}

.small-box h3 {
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: visible;
}

.small-box p {
  font-size: 0.8rem;
  white-space: nowrap;
}

.small-box .small-box-footer,
.small-box > .small-box-footer {
  padding: 0.55rem 1.25rem;
  font-size: 0.78rem;
}

/* =============================================================
   ALERTS STRIP (dashboard)
   ============================================================= */

.alerts-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  box-shadow: var(--adm-shadow);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.alerts-card .alerts-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adm-text);
  margin: 0 0 0.9rem;
}

.alerts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0.9rem;
}

.alert-chip {
  --accent: var(--adm-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 6%, #ffffff);
}

.alert-chip .ac-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
}

.alert-chip .ac-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.alert-chip .ac-body b {
  font-size: 1rem;
  color: var(--adm-text);
}

.alert-chip .ac-body span {
  font-size: 0.78rem;
  color: var(--adm-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-chip .ac-body a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.alert-chip.ac-red    { --accent: #dc2626; }
.alert-chip.ac-amber  { --accent: #d97706; }
.alert-chip.ac-blue   { --accent: #2563eb; }
.alert-chip.ac-violet { --accent: #7c3aed; }

/* =============================================================
   PAGE SUBTITLE (dashboard welcome)
   ============================================================= */

.content-header .page-subtitle {
  display: block;
  font-size: 0.875rem;
  color: var(--adm-muted);
  font-weight: 400;
  margin-top: 0.25rem;
}

/* =============================================================
   MISC
   ============================================================= */

/* modals inherit the brighter blue accent bar */
.modal-title::before {
  background: linear-gradient(180deg, var(--adm-primary) 0%, #60a5fa 100%);
}

/* pagination active */
.pagination li.active a,
.pagination li.active span,
.pagination > strong {
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* sidebar flyout + submenu active pill keep brand color via vars ✓ */

/* mobile: filter card margins align with content */
@media (max-width: 991.98px) {
  .content-header.filter-card {
    margin: 0 0.5rem 0.75rem;
  }

  .content {
    padding: 0 0.5rem 0.5rem;
  }

  .topbar-search {
    display: none;
  }
}

/* rows sit flush with the card bottom — the legacy 60px table margin
   (dropdown room from the old theme) left a dead white band */
@media (min-width: 992px) {
  .content > .table-responsive.table_visible table,
  .table_visible table {
    margin-bottom: 0;
  }
}

/* single-row reference filter (gig list) */
.ref-filter-row {
  align-items: center;
  row-gap: 0.6rem;
}

.ref-filter-row .form-control {
  min-width: 0;
  font-size: 0.86rem;
  color: #475569;
}

.ref-filter-row select.form-control {
  padding-right: 1.6rem;
}

.ref-filter-row .btn {
  white-space: nowrap;
}

.ref-filter-row .btn-default {
  background: #fff;
  border: 1px solid #dbe3ef;
  color: #1f2937;
}

.ref-filter-row .btn-default:hover {
  background: #f8fafc;
  border-color: #c7d2e5;
  color: var(--adm-primary);
}

@media (max-width: 767.98px) {
  .ref-filter-row > .col-auto {
    flex: 1;
  }

  .ref-filter-row > .col-auto .btn {
    width: 100%;
  }
}

/* select2 inside the filter row matches the 40px inputs */
.ref-filter-row .select2-container--default .select2-selection--single {
  height: 40px;
  border: 1px solid #d7dde8;
  border-radius: 10px;
  display: flex;
  align-items: center;
}

.ref-filter-row .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: normal;
  color: #475569;
  font-size: 0.86rem;
  padding-left: 0.75rem;
  flex: 1;
}

.ref-filter-row .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px;
  top: 0;
}

.select2-container .select2-dropdown {
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  box-shadow: var(--adm-shadow);
  overflow: hidden;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #d7dde8;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--adm-primary);
}

/* stat card month-over-month trend line */
.stat-trend {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: normal;
  line-height: 1.3;
}

.stat-trend i {
  font-size: 0.62rem;
  margin-right: 0.15rem;
}

.stat-trend.up {
  color: #16a34a;
}

.stat-trend.down {
  color: #dc2626;
}

.stat-trend.flat {
  color: var(--adm-muted);
}

/* =============================================================
   RICH LIST TABLES (gig list per reference)
   ============================================================= */

/* 5-up stat card row that wraps gracefully */
.stat-row-5 > .col {
  flex: 1 0 160px;
  max-width: 100%;
  min-width: 0;
}

.stat-row-5 .small-box p {
  white-space: normal;
  line-height: 1.3;
}

/* compact variant so five cards always fit one desktop row */
.stat-row-5 .small-box .icon,
.stat-row-5 .small-box > .icon {
  width: 40px;
  height: 40px;
  left: 1rem;
  font-size: 1rem;
}

.stat-row-5 .small-box .inner {
  padding: 1rem 0.75rem 1rem calc(1rem + 40px + 0.7rem);
  min-height: calc(40px + 2rem);
}

.stat-row-5 .small-box h3 {
  font-size: 1.35rem;
}

/* gig cell: thumbnail + title + chips */
.gig-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 230px;
}

.gig-thumb {
  width: 64px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #f1f5f9;
  border: 1px solid var(--adm-border);
}

.gig-cell-body {
  min-width: 0;
}

.gig-title {
  display: block;
  font-weight: 600;
  color: var(--adm-text);
  max-width: 340px;
  white-space: normal;
  line-height: 1.35;
}

.chip-featured {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 700;
}

/* seller cell: avatar + name + level */
.seller-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #e2e8f0;
}

.avatar-xs {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #e2e8f0;
}

/* buyer/seller role tags in combined party cells */
.party-tag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
}

.party-tag.tag-buyer {
  background: #e0f2fe;
  color: #075985;
}

.party-tag.tag-seller {
  background: #ede9fe;
  color: #5b21b6;
}

/* stacked value + sublabel cells */
.cell-main {
  display: block;
  font-weight: 600;
  color: var(--adm-text);
  white-space: nowrap;
}

.cell-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--adm-muted);
  white-space: normal;
  line-height: 1.35;
}

.rating-star {
  color: #f59e0b;
  font-size: 0.75rem;
}

/* row actions: eye chip (auto-styled) + kebab */
.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.kebab-chip {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--adm-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.kebab-chip:hover {
  color: var(--adm-primary);
  border-color: var(--adm-primary);
  background: var(--adm-primary-soft);
}

.row-actions .dropdown-menu {
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  box-shadow: var(--adm-shadow);
  padding: 0.35rem;
  font-size: 0.85rem;
}

.row-actions .dropdown-item {
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
}

.row-actions .dropdown-item:hover {
  background: #f1f5f9;
}

/* entries info + pagination footer */
.entries-info {
  color: var(--adm-muted);
  font-size: 0.82rem;
}

.content > .box-footer.d-flex {
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 767.98px) {
  .content > .box-footer.d-flex {
    flex-direction: column;
    align-items: center !important;
  }

  .content > .box-footer.d-flex .pagination {
    margin-left: 0 !important;
  }
}

/* =============================================================
   DASHBOARD — reference layout components
   ============================================================= */

/* date-range chip in the page header */
.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--adm-text);
  white-space: nowrap;
}

.date-chip i {
  color: var(--adm-muted);
}

/* functional date-range picker inside the chip */
.date-chip-form {
  gap: 0.35rem;
}

.date-chip-form input[type="date"] {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--adm-text);
  padding: 0;
  width: 108px;
  outline: none;
  cursor: pointer;
  position: relative;
}

/* hide the native calendar glyphs (the chip has its own icon) but keep the
   whole field clickable to open the browser's date picker */
.date-chip-form input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.date-chip-form .dc-sep {
  color: var(--adm-muted);
}

.date-chip-form button {
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--adm-primary);
  color: #fff;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.date-chip-form button i {
  color: #fff !important;
}

.date-chip-form button:hover {
  background: var(--adm-primary-dark, #1d4ed8);
}

.date-chip-form .dc-reset {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

@media (max-width: 767.98px) {
  .date-chip-form {
    flex-wrap: wrap;
    width: 100%;
  }
}

/* order stat cards: icon-left, trend below (reference style) */
.ref-stat-link,
.ref-stat-link:hover {
  text-decoration: none;
  display: block;
}

.ref-stat {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  box-shadow: var(--adm-shadow);
  padding: 1.1rem 1.2rem;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ref-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.ref-stat .rs-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
}

.ref-stat .rs-body {
  flex: 1;
  min-width: 0;
}

.ref-stat .rs-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--adm-text);
  margin: 0;
  line-height: 1.2;
}

.ref-stat .rs-body p {
  font-size: 0.78rem;
  color: var(--adm-muted);
  font-weight: 500;
  margin: 0;
}

.ref-stat .rs-trend {
  flex: 0 0 100%;
}

.ref-stat .rs-trend .stat-trend {
  margin-top: 0;
}

/* tinted stat card variants (transactions page, per reference) */
.ref-stat.rs-tint-green {
  background: #f0fdf4;
  border-color: #dcfce7;
}

.ref-stat.rs-tint-amber {
  background: #fffbeb;
  border-color: #fef3c7;
}

.ref-stat.rs-tint-red {
  background: #fef2f2;
  border-color: #fee2e2;
}

/* underline tabs + inline search (transactions card header) */
.tabs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0 1.25rem !important;
  border-bottom: 1px solid var(--adm-border) !important;
}

.utabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.utabs a {
  display: inline-block;
  padding: 0.9rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--adm-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.utabs a:hover {
  color: var(--adm-text);
}

.utabs a.active {
  color: var(--adm-primary);
  border-bottom-color: var(--adm-primary);
}

.tabs-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  padding: 0.4rem 0.8rem;
  margin: 0.5rem 0;
}

/* action buttons on the right of a tabs header */
.tabs-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

/* the theme's clearfix ::after on card headers becomes a phantom flex item
   and steals the right slot — kill it and pin actions/search to the right */
.tabs-header::after {
  display: none !important;
}

.tabs-header .tabs-actions,
.tabs-header .tabs-search {
  margin-left: auto;
}

.utabs a i {
  font-size: 0.75rem;
  margin-right: 0.3rem;
}

.tabs-search i {
  color: var(--adm-muted);
  font-size: 0.8rem;
}

.tabs-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: var(--adm-text);
  width: 170px;
}

/* payment method chips */
.pm-chip {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.pm-chip.pm-blue {
  background: #e0f2fe;
  color: #075985;
}

.pm-chip.pm-purple {
  background: #ede9fe;
  color: #5b21b6;
}

.pm-chip.pm-amber {
  background: #fef3c7;
  color: #92400e;
}

.txn-id-link {
  font-weight: 700;
}

/* earnings overview card */
.earn-head {
  margin-bottom: 0.75rem;
}

.earn-label {
  display: block;
  font-size: 0.78rem;
  color: var(--adm-muted);
  font-weight: 500;
}

.earn-value {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--adm-text);
}

.earn-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.earn-chip.up {
  background: #dcfce7;
  color: #15803d;
}

.earn-chip.down {
  background: #fee2e2;
  color: #b91c1c;
}

.earn-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.earn-cell {
  flex: 1 1 130px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.earn-cell span {
  display: block;
  font-size: 0.72rem;
  color: var(--adm-muted);
  font-weight: 500;
}

.earn-cell b {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--adm-text);
}

/* buyer requests overview: donut with center total + vertical legend */
.br-overview {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.br-overview .donut-wrap {
  position: relative;
  flex: 0 0 230px;
  max-width: 100%;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.donut-center small {
  font-size: 0.72rem;
  color: var(--adm-muted);
  font-weight: 500;
}

.donut-center b {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--adm-text);
  line-height: 1.1;
}

.vlegend {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vlegend .vl-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--adm-muted);
}

.vlegend .vl-item i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: 0 0 auto;
}

.vlegend .vl-item .vl-label {
  flex: 1;
  min-width: 0;
}

.vlegend .vl-item b {
  color: var(--adm-text);
  font-weight: 600;
  white-space: nowrap;
}

/* =============================================================
   DASHBOARD PANELS (top categories, recent orders, sellers)
   ============================================================= */

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.panel-head .chart-card-title {
  margin: 0;
}

.panel-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--adm-primary);
  white-space: nowrap;
}

.panel-link i {
  font-size: 0.6rem;
}

/* top selling categories */
.cat-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.cat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cat-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
  color: var(--accent);
  font-size: 0.95rem;
}

.cat-body {
  flex: 1;
  min-width: 0;
}

.cat-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--adm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--adm-muted);
  margin-bottom: 0.3rem;
}

.cat-bar {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.cat-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.cat-share {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--adm-text);
}

/* recent orders / seller performance mini rows */
.mini-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.mini-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mini-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mini-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--adm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.mini-title:hover {
  color: var(--adm-primary);
}

.mini-sub {
  font-size: 0.74rem;
  color: var(--adm-muted);
}

.mini-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.mini-amount {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--adm-text);
}

/* =============================================================
   ORDER DETAIL (reference layout)
   ============================================================= */

/* generic white panel card (full-width sections outside grid rows) */
.panel-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  box-shadow: var(--adm-shadow);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

/* conversation bubbles inside panels — compact */
.panel-card .message-div {
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #f8fafc;
  margin-bottom: 0.6rem;
  padding: 0.6rem 0.85rem;
}

.conv-card .conv-body {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.conv-card .message-image {
  width: 30px !important;
  height: 30px !important;
  margin-right: 10px !important;
}

.conv-card .message-div {
  overflow: hidden; /* contain any floated leftovers */
}

.conv-card .message-div h5 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--adm-text);
}

.conv-card .msg-time {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--adm-muted);
  white-space: nowrap;
}

.conv-card .message-desc {
  margin-left: 40px;
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 2px;
  line-height: 1.45;
}

.conv-card .message-div .float-right.text-muted {
  font-size: 0.68rem;
  margin-bottom: 0;
}

.conv-card .message-div br {
  display: none;
}

/* event headings (Order Delivered / Revision Request...) — small labels */
.conv-card h2 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--adm-muted);
  text-align: center;
  margin: 0.9rem 0 0.6rem !important;
}

.conv-card .order-status-message {
  padding: 0.75rem;
}

.conv-card .order-status-message .fa-3x {
  font-size: 1.4em;
}

.conv-card .order-status-message h5 {
  font-size: 0.85rem;
  margin: 0.35rem 0 0.15rem;
}

.conv-card .order-status-message p {
  font-size: 0.78rem;
  color: var(--adm-muted);
  margin-bottom: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--adm-muted);
  margin-bottom: 0.35rem;
}

.back-link:hover {
  color: var(--adm-primary);
}

.od-number {
  color: var(--adm-primary);
}

.content-header h1 .badge {
  vertical-align: middle;
  margin-left: 0.35rem;
}

.od-thumb {
  width: 96px;
  height: 68px;
}

@media (min-width: 992px) {
  .od-col + .od-col {
    border-left: 1px solid #f1f5f9;
  }
}

@media (max-width: 991.98px) {
  .od-col + .od-col {
    border-top: 1px solid #f1f5f9;
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

/* label/value rows */
.ilist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  font-size: 0.85rem;
}

.ilist-row > span {
  color: var(--adm-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.ilist-row > span i {
  width: 16px;
  text-align: center;
  color: #94a3b8;
}

.ilist-row > b {
  color: var(--adm-text);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.ilist-row.ilist-total {
  border-top: 1px solid var(--adm-border);
  margin-top: 0.35rem;
  padding-top: 0.75rem;
}

.ilist-row.ilist-total > b {
  font-size: 1rem;
  font-weight: 700;
  color: var(--adm-primary);
}

/* progress stepper */
.od-steps {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.25rem 0;
}

.od-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 96px;
  text-align: center;
  flex: 0 0 auto;
}

.od-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: #94a3b8;
  font-size: 0.85rem;
}

.od-step.done .od-step-icon {
  background: #dcfce7;
  color: #15803d;
}

.od-step.cancelled .od-step-icon {
  background: #fee2e2;
  color: #b91c1c;
}

.od-step-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--adm-text);
}

.od-step-date {
  font-size: 0.68rem;
  color: var(--adm-muted);
}

.od-step-line {
  flex: 1 1 30px;
  height: 2px;
  border-radius: 2px;
  background: #e2e8f0;
  margin-top: 19px;
  min-width: 20px;
}

.od-step-line.done {
  background: #86efac;
}

/* activity timeline */
.od-timeline {
  position: relative;
  padding-left: 4px;
}

.od-tl-item {
  position: relative;
  padding: 0 0 1rem 1.35rem;
}

.od-tl-item:before {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: -2px;
  width: 2px;
  background: #eef2f7;
}

.od-tl-item:last-child:before {
  display: none;
}

.od-tl-item > i {
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e2e8f0;
}

.od-tl-item.done > i {
  background: #16a34a;
}

.od-tl-item.cancelled > i {
  background: #dc2626;
}

.od-tl-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--adm-text);
}

.od-tl-date {
  display: block;
  font-size: 0.72rem;
  color: var(--adm-muted);
}

/* =============================================================
   GIG FULL-PAGE EDITOR
   ============================================================= */

.save-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.save-banner.sb-ok {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.save-banner.sb-err {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.pkg-table th {
  background: #f8fafc !important;
  font-size: 0.75rem !important;
}

.pkg-table th,
.pkg-table td {
  padding: 8px 5px !important;
}

.pkg-table th:first-child,
.pkg-table td:first-child {
  padding-left: 0 !important;
}

.pkg-table th:last-child,
.pkg-table td:last-child {
  padding-right: 0 !important;
}

.pkg-table td {
  vertical-align: top !important;
}

.pkg-table .form-control {
  font-size: 0.84rem;
  padding-left: 10px;
  padding-right: 10px;
}

/* =============================================================
   GIG QUICK VIEW (right slide-over panel, per reference)
   ============================================================= */

.gig-qv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1055;
}

.gig-qv-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.gig-qv {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  max-width: 92vw;
  background: var(--adm-surface);
  border-left: 1px solid var(--adm-border);
  box-shadow: -12px 0 32px rgba(15, 23, 42, 0.15);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.25s ease;
}

.gig-qv.open {
  transform: none;
}

.gig-qv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--adm-border);
}

.gig-qv-head h6 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adm-text);
}

.gig-qv-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  scrollbar-width: thin;
}

.gig-qv-body::-webkit-scrollbar {
  width: 8px;
}

.gig-qv-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

.qv-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid var(--adm-border);
  margin-bottom: 0.85rem;
}

.qv-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--adm-text);
  line-height: 1.4;
  margin: 0 0 0.35rem;
}

.qv-seller {
  font-size: 0.82rem;
  color: var(--adm-muted);
  margin: 0 0 0.35rem;
}

.qv-rating {
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.qv-btns {
  display: flex;
  gap: 0.5rem;
}

.qv-btns .btn {
  flex: 1;
}

.qv-perf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.qv-cell {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}

.qv-cell span {
  display: block;
  font-size: 0.7rem;
  color: var(--adm-muted);
  font-weight: 500;
}

.qv-cell b {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adm-text);
}

/* =============================================================
   MESSAGE BOARD (3-pane messenger, per reference)
   ============================================================= */

.msg-board {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  /* fixed height so the list and thread scroll inside their panes
     (JS refines this to fit the visible screen) */
  height: calc(100vh - 320px);
  min-height: 340px;
}

/* always-visible thin scrollbars in the board panes */
.mb-items::-webkit-scrollbar,
.mb-msgs::-webkit-scrollbar,
.mb-info::-webkit-scrollbar {
  width: 8px;
}

.mb-items::-webkit-scrollbar-track,
.mb-msgs::-webkit-scrollbar-track,
.mb-info::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 8px;
}

.mb-items::-webkit-scrollbar-thumb,
.mb-msgs::-webkit-scrollbar-thumb,
.mb-info::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

.mb-items,
.mb-msgs,
.mb-info {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.mb-list {
  flex: 0 0 300px;
  max-width: 300px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  box-shadow: var(--adm-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mb-search {
  margin: 0.75rem;
}

.mb-search input {
  width: 100%;
}

.mb-items {
  flex: 1;
  overflow-y: auto;
}

.mb-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid #f1f5f9;
  text-decoration: none;
}

.mb-item:hover {
  background: #f8fafc;
  text-decoration: none;
}

.mb-item.active {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 var(--adm-primary);
}

.mb-item-body {
  flex: 1;
  min-width: 0;
}

.mb-item-names {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--adm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mb-item-names i {
  font-size: 0.6rem;
  color: #94a3b8;
  margin: 0 2px;
}

.mb-item-preview {
  display: block;
  font-size: 0.74rem;
  color: var(--adm-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mb-item.unread .mb-item-preview {
  color: var(--adm-text);
  font-weight: 600;
}

.mb-item-meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.mb-item-time {
  font-size: 0.68rem;
  color: var(--adm-muted);
}

.mb-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--adm-primary);
}

.mb-list-footer {
  border-top: 1px solid #f1f5f9;
  padding: 0.5rem 0.75rem;
}

.mb-list-footer .pagination {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

/* chat pane */
.mb-chat {
  flex: 1;
  min-width: 0;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  box-shadow: var(--adm-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mb-chat-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--adm-border);
}

.mb-chat-title .cell-main i {
  font-size: 0.65rem;
  margin: 0 2px;
}

.mb-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #f8fafc;
}

.mb-msg {
  display: flex;
  margin-bottom: 0.7rem;
}

.mb-msg.right {
  justify-content: flex-end;
}

.mb-bubble {
  max-width: 72%;
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 12px 12px 12px 4px;
  padding: 0.55rem 0.8rem;
}

.mb-msg.right .mb-bubble {
  background: #eff6ff;
  border-color: #dbeafe;
  border-radius: 12px 12px 4px 12px;
}

.mb-bubble p {
  font-size: 0.84rem;
  color: #334155;
  margin: 0 0 2px;
  line-height: 1.45;
  word-break: break-word;
}

.mb-file {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  margin: 0.25rem 0;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mb-msg.right .mb-file {
  background: #dbeafe;
}

.mb-time {
  display: block;
  font-size: 0.64rem;
  color: #94a3b8;
  text-align: right;
  margin-top: 2px;
}

.mb-offer {
  border: 1px dashed #c7d2fe;
  background: #f5f7ff;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  margin: 0.35rem 0;
}

.mb-offer-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--adm-text);
}

.mb-offer-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--adm-muted);
  margin: 2px 0 4px;
}

.mb-offer-link {
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.4rem;
}

.mb-chat-foot {
  border-top: 1px solid var(--adm-border);
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  color: var(--adm-muted);
  background: #fff;
}

.mb-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #cbd5e1;
}

.mb-placeholder i {
  font-size: 2.5rem;
}

.mb-placeholder p {
  color: var(--adm-muted);
  font-size: 0.9rem;
}

/* info pane */
.mb-info {
  flex: 0 0 260px;
  max-width: 260px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  box-shadow: var(--adm-shadow);
  padding: 1rem;
  overflow-y: auto;
}

.mb-info {
  overflow-x: hidden;
}

/* long emails truncate instead of forcing a horizontal scroll */
.mb-info .mini-body .mini-sub {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* name truncates but the Buyer/Seller tag always stays visible */
.mb-info .mini-body .mini-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  overflow: hidden;
}

.mb-info .mini-title .mini-link {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mb-info .mini-title .party-tag {
  flex: 0 0 auto;
  margin-left: 0;
}

.mb-info-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 0 0 0.5rem;
}

.mini-link {
  color: var(--adm-text);
}

.mini-link:hover {
  color: var(--adm-primary);
  text-decoration: none;
}

@media (max-width: 1199.98px) {
  .mb-info {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .msg-board {
    flex-direction: column;
    height: auto;
  }

  .mb-list {
    flex: none;
    max-width: 100%;
    height: 300px;
  }

  .mb-chat {
    flex: none;
    height: 460px;
  }
}

/* =============================================================
   BULK ACTIONS BAR (multi-select, per reference)
   ============================================================= */

.bulk-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  box-shadow: var(--adm-shadow);
  padding: 0.65rem 1rem;
  margin-bottom: 0.9rem;
}

.bulk-bar .bulk-count {
  font-size: 0.85rem;
  color: var(--adm-muted);
  margin-right: 0.75rem;
}

.bulk-bar .bulk-count b {
  color: var(--adm-text);
}

.bulk-btn {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.9rem;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.bulk-btn.bb-green {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #15803d;
}

.bulk-btn.bb-green:hover {
  background: #bbf7d0;
  color: #14532d;
}

.bulk-btn.bb-amber {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}

.bulk-btn.bb-amber:hover {
  background: #fde68a;
  color: #78350f;
}

.bulk-btn.bb-red {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.bulk-btn.bb-red:hover {
  background: #fecaca;
  color: #7f1d1d;
}

/* checkbox column: the magic-checkbox label is a zero-height block whose
   20px box draws below the baseline — give it real box dimensions and
   center it so it aligns with the row in both header and body cells */
.table td:first-child .magic-checkbox + label,
.table th:first-child .magic-checkbox + label {
  display: inline-block;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  vertical-align: middle;
}

/* gig editor: gallery grid + video preview */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.gal-item {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #f9fafb;
}
.gal-item img {
  display: block;
  width: 100%;
  height: 74px;
  object-fit: cover;
}
.gal-del {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
  padding: 2px 2px 0 2px;
  line-height: 1;
}
.gal-del .magic-checkbox + label {
  display: inline-block;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  vertical-align: middle;
}
.gig-video-preview {
  display: block;
  width: 100%;
  max-height: 200px;
  border-radius: 10px;
  background: #0f172a;
  margin-bottom: 12px;
}

/* upload dropzone */
.up-zone {
  position: relative;
  display: block;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 0;
  transition: border-color .15s ease, background .15s ease;
}
.up-zone:hover,
.up-zone.up-drag {
  border-color: #2563eb;
  background: #eff6ff;
}
.up-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.up-zone .up-icon {
  display: block;
  font-size: 22px;
  color: #2563eb;
  margin-bottom: 8px;
}
.up-zone .up-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}
.up-zone .up-title span {
  color: #2563eb;
}
.up-zone .up-hint {
  display: block;
  font-size: 11.5px;
  color: #9ca3af;
  margin-top: 3px;
}
.up-zone .up-files {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
  margin-top: 8px;
  word-break: break-all;
}
.up-zone.has-file {
  border-color: #16a34a;
  background: #f0fdf4;
}
.up-zone.has-file .up-files {
  display: block;
}

/* request quick view: description block */
.qv-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.6;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 10px 12px;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 0;
}

/* review list: star rating + clipped text cells */
.rv-stars {
  display: block;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 1px;
}
.rv-stars .star-off {
  color: #e2e8f0;
}
.rv-clip,
.rv-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 220px;
}
.rv-text {
  max-width: 200px;
  white-space: normal;
}

/* attachment list (request editor) */
.att-list {
  margin-bottom: 10px;
}
.att-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.att-row:last-child {
  border-bottom: 0;
}
.att-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  flex: 0 0 auto;
}
.att-ficon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #64748b;
}
.att-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #111827;
}
.att-name a {
  color: inherit;
}
.att-name,
.att-name a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.att-name small {
  font-weight: 500;
  font-size: 10.5px;
}
.att-del {
  flex: 0 0 auto;
}
.att-del .magic-checkbox + label {
  display: inline-block;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  vertical-align: middle;
}

/* tags input: chips + inline text entry */
.tag-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  cursor: text;
}
.tag-box:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 3px 6px 3px 11px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 100%;
}
.tag-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag-chip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 10px;
  line-height: 1;
  flex: 0 0 auto;
}
.tag-chip a:hover {
  background: #1d4ed8;
  color: #fff;
  text-decoration: none;
}
.tag-box .tag-entry {
  flex: 1 1 90px;
  min-width: 90px;
  border: 0;
  outline: 0;
  padding: 4px 2px;
  font-size: 13px;
  background: transparent;
}

/* END ADMIN REFERENCE THEME */
