/* ============================================================
   TugaKits — Admin Dashboard Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0a1628;
  --navy-light: #131f35;
  --navy-mid: #1a2942;
  --white: #ffffff;
  --green: #00ff87;
  --green-dark: #00cc6a;
  --grey-100: #f5f5f5;
  --grey-200: #e8e8e8;
  --grey-300: #d1d1d1;
  --grey-400: #999;
  --grey-500: #666;
  --red: #ff4757;
  --yellow: #ffc107;
  --blue: #2196f3;
  --purple: #9c27b0;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
  --sidebar-width: 240px;
}

html, body { height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--grey-100);
  color: var(--navy);
  display: flex;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; }
input, select, textarea { font-family: inherit; }

/* ── Login Screen ── */
.login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
  background: var(--navy);
  color: var(--white);
}
.login-screen h1 { margin-bottom: 0.5rem; line-height: 1; }
.admin-logo-img { height: 80px; width: auto; display: block; }
.login-screen p { color: var(--grey-400); margin-bottom: 2rem; }
.login-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 2rem;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}
.login-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.login-btn svg { width: 20px; height: 20px; }

.access-denied {
  text-align: center;
}
.access-denied h2 { color: var(--red); margin-bottom: 0.5rem; }
.access-denied p { margin-bottom: 1rem; }

/* ── Admin Filters ── */
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--grey-100);
  border-radius: 8px;
  border: 1px solid var(--grey-200);
}
.filter-input {
  flex: 0 0 100%;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--grey-300);
  border-radius: 6px;
  font-size: 0.85rem;
  outline: none;
}
.filter-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(10, 22, 40, 0.1);
}
.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--grey-300);
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
  outline: none;
  min-width: 140px;
  transition: var(--transition);
}
.filter-select:focus {
  border-color: var(--navy);
}
.filter-select[data-filtered="true"] {
  background: #a3e4d7;
  border-color: #7dd5c8;
  font-weight: 500;
}
.filter-price-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.chips-label {
  font-size: 0.78rem;
  color: var(--grey-400);
  white-space: nowrap;
  margin-right: 2px;
}
.price-chip {
  padding: 4px 12px;
  border: 1px solid var(--grey-300);
  border-radius: 20px;
  background: #fff;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.4;
}
.price-chip:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.price-chip--active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--navy-mid);
}
.sidebar-header h1 { line-height: 1; }
.sidebar-header .admin-logo-img { height: 36px; width: auto; }
.sidebar-header p {
  font-size: 0.75rem;
  color: var(--grey-400);
  margin-top: 0.25rem;
}
.sidebar-nav { flex: 1; padding: 1rem 0; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--grey-300);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.sidebar-nav a:hover { background: var(--navy-mid); color: var(--white); }
.sidebar-nav a.active {
  background: var(--navy-mid);
  color: var(--green);
  border-left: 3px solid var(--green);
}
.sidebar-nav a .icon { font-size: 1.1rem; width: 20px; text-align: center; }
.nav-group-header {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  color: var(--grey-500);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.25rem;
}
.nav-group-header:hover { color: var(--grey-300); }
.nav-group-header .chevron {
  font-size: 0.6rem;
  transition: transform 0.2s ease;
  transform: rotate(90deg);
}
.nav-group-header[aria-expanded="false"] .chevron { transform: rotate(0deg); }
.nav-group-items { overflow: hidden; }
.nav-group-header[aria-expanded="false"] + .nav-group-items { display: none; }
.nav-group-items a { padding-left: 2.25rem; }
.nav-group-items-external {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  padding-left: 2.25rem;
  color: var(--grey-400);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-group-items-external:hover { color: var(--white); }
.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}
.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--navy-mid);
}
.sidebar-footer .user-email {
  font-size: 0.75rem;
  color: var(--grey-400);
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-footer button {
  background: transparent;
  color: var(--grey-400);
  font-size: 0.8rem;
  padding: 0.4rem 0;
}
.sidebar-footer button:hover { color: var(--white); }

/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 1.5rem 2rem;
  min-height: 100vh;
}

/* ── Page Header ── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.page-header h2 { font-size: 1.5rem; font-weight: 700; }

/* ── Filter Tabs ── */
.filter-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--grey-200);
  margin-bottom: 1.5rem;
}
.filter-tab {
  padding: 0.6rem 1.25rem;
  background: none;
  color: var(--grey-500);
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.filter-tab:hover { color: var(--navy); }
.filter-tab.active {
  color: var(--navy);
  border-bottom-color: var(--green);
  font-weight: 600;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--grey-200);
}
.card-body { padding: 1.25rem; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
th, td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--grey-200);
}
th {
  font-weight: 600;
  color: var(--grey-500);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--grey-100);
  position: sticky;
  top: 0;
}
tr:hover { background: rgba(0, 255, 135, 0.03); }

/* Inventory cell color coding */
.stock-low { background: #ffebee; color: #c62828; font-weight: 600; }
.stock-warn { background: #fff8e1; color: #f57f17; font-weight: 600; }
.stock-ok { font-weight: 500; }
.stock-legend { font-size: 0.65rem; opacity: 0.6; font-weight: normal; letter-spacing: 0.02em; }

/* Inventory tooltip */
.inv-cell { cursor: help; }
.stock-tooltip {
  display: none;
  position: fixed;
  z-index: 9999;
  background: #1a1a2e;
  color: #fff;
  font-size: 0.78rem;
  border-radius: 6px;
  padding: 8px 12px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  pointer-events: none;
  line-height: 1.7;
}
.stock-tooltip.visible { display: block; }
.stock-tooltip .tip-row { display: flex; justify-content: space-between; gap: 16px; }
.stock-tooltip .tip-label { opacity: 0.75; }
.stock-tooltip .tip-val { font-weight: 700; }
.stock-tooltip .tip-val.avail { color: var(--green); }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-pending { background: var(--yellow); color: var(--navy); }
.badge-approved, .badge-confirmed { background: var(--blue); color: var(--white); }
.badge-rejected { background: var(--red); color: var(--white); }
.badge-shipped { background: var(--purple); color: var(--white); }
.badge-delivered, .badge-received { background: var(--green-dark); color: var(--navy); }
.badge-draft { background: var(--grey-300); color: var(--navy); }
.badge-partial { background: #ff9800; color: var(--white); }
.badge-sent { background: var(--blue); color: var(--white); }
.badge-paid { background: var(--green-dark); color: var(--navy); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.btn-primary { background: var(--green); color: var(--navy); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: var(--grey-200); color: var(--navy); }
.btn-secondary:hover { background: var(--grey-300); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { opacity: 0.85; }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Request Card ── */
.request-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.request-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.request-customer h3 { font-size: 1rem; font-weight: 600; }
.request-customer p { font-size: 0.8rem; color: var(--grey-500); }
.request-items {
  margin: 1rem 0;
}
.request-items table { font-size: 0.8rem; }
.request-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}
.reject-reason {
  flex: 1;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  font-size: 0.85rem;
}

/* ── Order Card ── */
.order-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.order-payment {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--grey-200);
}
.order-payment select {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--grey-300);
  border-radius: 4px;
  font-size: 0.8rem;
}
.order-notes {
  margin-top: 0.75rem;
}
.order-notes textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  font-size: 0.8rem;
  resize: vertical;
  min-height: 50px;
}

/* ── Product List (admin) ──
   10 columns: thumb | name | stock | price | source | feat | trend | active | img | archive
*/
.product-row {
  display: grid;
  grid-template-columns: 52px 1fr 76px 86px 86px 46px 46px 78px 42px 58px;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--grey-200);
}
.product-row:hover { background: var(--grey-100); }
.product-header {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--grey-300);
  padding: 0.4rem 1rem;
}
.product-header:hover { background: none; }
.product-header > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.product-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--grey-200);
  flex-shrink: 0;
}
.product-thumb.img--placeholder {
  outline: 2px solid #e4002b;
  outline-offset: -2px;
  opacity: 0.6;
}
.product-name { font-weight: 600; font-size: 0.88rem; line-height: 1.2; }
.product-name small { display: block; color: var(--grey-500); font-weight: 400; font-size: 0.75rem; }
.inline-edit {
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--grey-300);
  border-radius: 4px;
  width: 100%;
  font-size: 0.82rem;
  box-sizing: border-box;
}
.inline-edit:focus { outline: none; border-color: var(--green); }

/* Stock badge */
.prod-stock-badge {
  display: inline-block;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.prod-stock-badge--in    { background: #d4edda; color: #155724; }
.prod-stock-badge--soldout { background: #fff3cd; color: #856404; }
.prod-stock-badge--archive { background: var(--grey-200); color: var(--grey-600); }

/* Checkbox-only columns (Featured / Trending) */
.prod-check-cell {
  display: flex;
  justify-content: center;
  align-items: center;
}
.prod-check-cell input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; }

/* Active + Lock combined cell */
.prod-active-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}
.prod-lock-label {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.68rem;
  color: var(--grey-500);
  cursor: pointer;
  white-space: nowrap;
}
.prod-lock-label input[type="checkbox"] { width: 12px; height: 12px; }

/* Icon-style action buttons */
.btn-icon {
  padding: 0.25rem 0.4rem;
  font-size: 0.75rem;
  line-height: 1;
  border-radius: 4px;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

/* Pricing sub-row */
.product-pricing-controls {
  border-bottom: 1px solid var(--grey-200);
  background: var(--grey-50, #fafafa);
  padding: 0.3rem 1rem 0.4rem calc(1rem + 52px + 0.5rem) !important;
}

/* ── Toggle Switch ── */
.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--grey-300);
  border-radius: 22px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ── Filter Toggle ── */
.filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}
.admin-filter-toggle .toggle-switch input:checked + .toggle-slider {
  background: #a3e4d7;
}

.clear-filters-btn {
  white-space: nowrap;
  background: var(--red) !important;
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.5rem 1rem !important;
}
.clear-filters-btn:hover {
  background: #ff3341 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

/* ── League group headers (Inventory + Products tree) ── */
.group-header-row { cursor: pointer; background: var(--grey-100); }
.group-header-row:hover { background: var(--grey-200); }
.group-header-row td { padding: 0.5rem 0.75rem; font-size: 0.85rem; border-bottom: 1px solid var(--grey-300); }
.prod-group-header {
  cursor: pointer;
  background: var(--grey-100);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--grey-300);
}
.prod-group-header:hover { background: var(--grey-200); }
.group-chevron { display: inline-block; width: 1em; font-style: normal; }
.group-count { color: var(--grey-500); font-size: 0.8rem; font-weight: 400; margin-left: 0.5rem; }
th.youth-col-start, td.youth-col-start { border-left: 2px solid var(--grey-400); }
th.youth-col-start::before { content: "Youth · "; font-size: 0.65rem; opacity: 0.6; }
th.youth-col, td.youth-col { background: rgba(0,0,0,0.015); }

/* ── PO Product Search ── */
.po-search-wrapper {
  position: relative;
  min-width: 0;
}
.po-product-search {
  width: 100%;
  box-sizing: border-box;
}
.po-search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 100;
}
.po-search-group {
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--grey-100);
  position: sticky;
  top: 0;
}
.po-search-result {
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.po-search-result:hover {
  background: #e8f0fe;
}
.po-search-id {
  font-size: 0.75rem;
  color: var(--grey-500);
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.po-search-empty {
  padding: 0.6rem;
  font-size: 0.85rem;
  color: var(--grey-500);
  text-align: center;
}

/* ── PO Form ── */
.po-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.po-form h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.po-line-items { margin: 1rem 0; }
.po-line {
  display: grid;
  grid-template-columns: 3fr 80px 80px 100px 40px;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.po-line input, .po-line select {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--grey-300);
  border-radius: 4px;
  font-size: 0.85rem;
}
.po-line .remove-line {
  background: none;
  color: var(--red);
  font-size: 1.1rem;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.modal-title-row h3 { margin-bottom: 0; font-size: 1.2rem; }
.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--grey-500);
  padding: 0 0.25rem;
}
.modal-close-btn:hover { color: var(--grey-800); }
.modal-title-row.image-review { justify-content: flex-start; gap: 0.75rem; }
.modal-title-row.image-review .modal-close-btn { font-size: 2rem; }
.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-success { background: var(--green-dark); color: var(--navy); }
.toast-error { background: var(--red); }
.toast-info { background: var(--blue); }

/* ── Spinner ── */
.spinner {
  display: flex;
  justify-content: center;
  padding: 3rem;
}
.spinner::after {
  content: '';
  width: 36px;
  height: 36px;
  border: 3px solid var(--grey-200);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--grey-400);
}
.empty-state p { font-size: 1rem; margin-bottom: 0.5rem; }

/* ── Form Inputs ── */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Mobile Admin ── */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-nav-toggle { display: block; }
  .main-content { margin-left: 0; padding: 1rem; padding-top: 3.5rem; }

  .page-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }

  .product-row {
    grid-template-columns: 50px 1fr;
    gap: 0.5rem;
  }
  .product-row > *:nth-child(n+3) { grid-column: 2; }

  .po-line {
    grid-template-columns: 1fr 1fr;
  }

  .request-header { flex-direction: column; gap: 0.5rem; }
  .request-actions { flex-wrap: wrap; }
  .order-header { flex-direction: column; gap: 0.5rem; }
  .order-payment { flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }

  .filter-select { flex: 1 1 calc(50% - 0.5rem); min-width: 0; }
  .filter-price-chips { width: 100%; }
}

/* ===== Newsletter Section ===== */
.newsletter-container { max-width: 800px; margin: 2rem auto; padding: 0 1.5rem; }
.newsletter-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.newsletter-card-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light, #1e3a5f));
  color: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.newsletter-card-header h3 { font-size: 1rem; margin: 0; }
.newsletter-card-header .badge {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  margin-left: auto;
}
.newsletter-card-body { padding: 1.5rem; }
.nl-form-group { margin-bottom: 1.25rem; }
.nl-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--grey-800, #1f2937);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.4rem;
}
.nl-form-group input,
.nl-form-group textarea,
.nl-form-group select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--grey-300, #d1d5db);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--grey-800, #1f2937);
  background: var(--grey-50, #f9fafb);
  transition: border-color 0.2s;
  resize: vertical;
  box-sizing: border-box;
}
.nl-form-group input:focus,
.nl-form-group textarea:focus,
.nl-form-group select:focus { outline: none; border-color: var(--gold); background: var(--white); }
.nl-form-group textarea { min-height: 160px; }
.nl-recipients-box {
  background: var(--grey-50, #f9fafb);
  border: 1.5px solid var(--grey-300, #d1d5db);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--grey-500, #6b7280);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nl-recipients-count { font-weight: 700; color: var(--gold); font-size: 1.1rem; }
.nl-btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-nl-send {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-nl-send:hover:not(:disabled) { background: #c9a227; }
.btn-nl-send:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-nl-settings {
  padding: 0.75rem 1.25rem;
  border: 1.5px solid var(--grey-300, #d1d5db);
  border-radius: 8px;
  background: var(--white);
  color: var(--grey-800, #1f2937);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.btn-nl-settings:hover { border-color: var(--navy); }
.nl-progress { margin-top: 1rem; display: none; }
.nl-progress-bar-track { height: 8px; background: var(--grey-100, #f3f4f6); border-radius: 4px; overflow: hidden; margin-bottom: 0.5rem; }
.nl-progress-bar-fill { height: 100%; background: var(--gold); border-radius: 4px; transition: width 0.3s; width: 0%; }
.nl-progress-text { font-size: 0.82rem; color: var(--grey-500, #6b7280); }
.nl-result { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600; display: none; }
.nl-result.success { background: #d4edda; color: #155724; }
.nl-result.error { background: #f8d7da; color: #721c24; }
.nl-result.partial { background: #fff3cd; color: #856404; }

/* EmailJS Settings Modal */
.nl-settings-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; align-items: center; justify-content: center; }
.nl-settings-overlay.active { display: flex; }
.nl-settings-modal { background: var(--white); border-radius: var(--radius); box-shadow: 0 8px 40px rgba(0,0,0,0.3); width: 100%; max-width: 480px; margin: 1rem; }
.nl-settings-modal-header { background: var(--navy); color: var(--white); padding: 1rem 1.5rem; border-radius: var(--radius) var(--radius) 0 0; display: flex; justify-content: space-between; align-items: center; }
.nl-settings-modal-header h3 { font-size: 1rem; margin: 0; }
.nl-settings-modal-close { background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; line-height: 1; opacity: 0.7; }
.nl-settings-modal-close:hover { opacity: 1; }
.nl-settings-modal-body { padding: 1.5rem; }
.nl-settings-hint { font-size: 0.82rem; color: var(--grey-500, #6b7280); margin-bottom: 1.25rem; line-height: 1.5; padding: 0.75rem 1rem; background: var(--grey-50, #f9fafb); border-radius: 8px; border-left: 3px solid var(--gold); }
.nl-settings-modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--grey-100, #f3f4f6); display: flex; gap: 0.75rem; justify-content: flex-end; }
.btn-nl-save { padding: 0.6rem 1.5rem; border: none; border-radius: 8px; background: var(--gold); color: var(--navy); font-weight: 700; cursor: pointer; }
.btn-nl-cancel { padding: 0.6rem 1.25rem; border: 1.5px solid var(--grey-300, #d1d5db); border-radius: 8px; background: var(--white); color: var(--grey-800, #1f2937); font-weight: 600; cursor: pointer; }

/* ── Analytics Dashboard ── */

/* KPI 5-column grid */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dash-kpi-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 3px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
}
.dash-kpi-card.clickable { cursor: pointer; }
.dash-kpi-card.clickable:hover { transform: translateY(-2px); border-top-color: var(--green); }

.dash-kpi-card--pending    { border-top-color: var(--yellow); }
.dash-kpi-card--active     { border-top-color: var(--blue); }
.dash-kpi-card--revenue    { border-top-color: var(--green); }
.dash-kpi-card--margin     { border-top-color: var(--green-dark, #00cc6a); }
.dash-kpi-card--stock      { border-top-color: var(--red); }
.dash-kpi-card--units      { border-top-color: #6366f1; }
.dash-kpi-card--avg        { border-top-color: #0ea5e9; }
.dash-kpi-card--delivered  { border-top-color: var(--green); }
.dash-kpi-card--conversion { border-top-color: #f59e0b; }

/* Secondary KPI row (sales stats) */
.dash-kpi-grid--secondary {
  grid-template-columns: repeat(4, 1fr);
  margin-top: -0.5rem;
}
.dash-kpi-grid--secondary .dash-kpi-card {
  border-top-width: 2px;
}
.dash-kpi-grid--secondary .dash-kpi-label {
  color: var(--grey-400, #9ca3af);
}
.dash-kpi-grid--secondary .dash-kpi-value {
  font-size: 1.5rem;
}

.dash-kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-500, #6b7280);
}
.dash-kpi-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.dash-kpi-sub {
  font-size: 0.75rem;
  color: var(--grey-400, #9ca3af);
}

/* Charts layout */
.dash-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dash-chart-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.dash-chart-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
}
.dash-chart-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}
.dash-chart-sub {
  font-size: 0.72rem;
  color: var(--grey-400, #9ca3af);
}

.dash-chart-wrap {
  position: relative;
  width: 100%;
  height: 240px;
}
.dash-chart-wrap--doughnut { height: 220px; }
.dash-chart-wrap canvas { width: 100% !important; height: 100% !important; }

/* Activity feed */
.dash-activity-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.dash-activity-feed { display: flex; flex-direction: column; gap: 0; }
.dash-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--grey-100, #f3f4f6);
  font-size: 0.85rem;
}
.dash-activity-item:last-child { border-bottom: none; }
.dash-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
}
.dash-activity-dot--request  { background: var(--yellow, #ffc107); }
.dash-activity-dot--order    { background: var(--blue, #2196f3); }
.dash-activity-dot--shipped  { background: var(--purple, #9c27b0); }
.dash-activity-dot--delivered { background: var(--green, #00ff87); }
.dash-activity-text { flex: 1; color: var(--navy); }
.dash-activity-time { font-size: 0.75rem; color: var(--grey-400, #9ca3af); white-space: nowrap; }

/* Skeleton loading */
.dash-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: dash-skeleton-pulse 1.4s ease-in-out infinite;
  min-height: 100px;
  border-top-color: transparent !important;
}
@keyframes dash-skeleton-pulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 1100px) {
  .dash-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-kpi-grid--secondary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .dash-kpi-grid   { grid-template-columns: repeat(2, 1fr); }
  .dash-kpi-grid--secondary { grid-template-columns: repeat(2, 1fr); }
  .dash-charts-row { grid-template-columns: 1fr; }
  .dash-chart-wrap { height: 200px; }
}
@media (max-width: 480px) {
  .dash-kpi-grid { grid-template-columns: 1fr; }
  .dash-kpi-grid--secondary { grid-template-columns: 1fr; }
}

/* ── Tree Table ───────────────────────────────────────────── */
.tt-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.tt-pills { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.tt-pill {
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--grey-300);
  border-radius: 20px;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--grey-500);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tt-pill:hover { border-color: var(--navy); color: var(--navy); }
.tt-pill--active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  font-weight: 600;
}
.tt-search {
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--grey-300);
  border-radius: 6px;
  font-size: 0.85rem;
  width: 22ch;
  outline: none;
  font-family: inherit;
  color: var(--navy);
}
.tt-search:focus { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(10,22,40,0.08); }
.tt-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.tt-th-toggle { width: 32px; }
.tt-table thead th {
  font-weight: 600;
  color: var(--grey-500);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--grey-100);
  padding: 0.55rem 0.75rem;
  position: sticky;
  top: 0;
}
.tt-row { cursor: pointer; transition: background 0.12s; }
.tt-row td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--grey-200); vertical-align: middle; }
.tt-row:hover { background: rgba(0, 255, 135, 0.04); }
.tt-row--open { background: rgba(10, 22, 40, 0.03); }
.tt-row--open .tt-chevron { color: var(--green-dark, #00cc6a); }
.tt-toggle { width: 32px; text-align: center; color: var(--grey-400); font-size: 0.7rem; }
.tt-chevron { display: inline-block; user-select: none; transition: color 0.15s; }
.tt-id { font-size: 0.78rem; color: var(--grey-500); font-family: monospace; white-space: nowrap; }
.tt-name { font-weight: 600; }
.tt-count, .tt-date { color: var(--grey-500); white-space: nowrap; }
.tt-total { font-weight: 600; white-space: nowrap; }
.tt-actions { white-space: nowrap; }
.tt-actions .btn { margin-right: 0.35rem; }
.tt-detail > td { padding: 0; border-bottom: 2px solid var(--grey-200); }
.tt-detail-panel {
  padding: 1rem 1.5rem 1rem 2.5rem;
  background: var(--grey-100);
  border-left: 3px solid var(--green, #00ff87);
}
.tt-detail-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--grey-500);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.tt-detail-total { text-align: right; font-weight: 700; margin-top: 0.5rem; }
.tt-reject-reason { color: var(--red); font-size: 0.85rem; margin-top: 0.5rem; }
.tt-thumb { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; vertical-align: middle; }
@media (max-width: 768px) {
  .tt-filter-bar { flex-direction: column; align-items: flex-start; }
  .tt-search { width: 100%; }
  .tt-date, .tt-count { display: none; }
  .tt-detail-panel { padding: 0.75rem 1rem 0.75rem 1.5rem; }
}

/* ── Ignore Hierarchy (Sync & Rules tab) ─────────────────────────── */
.ignore-hierarchy {
  background: var(--grey-50, #fafafa);
  border: 1px solid var(--grey-200, #e5e5e5);
  border-radius: 0.5rem;
  padding: 1rem;
}
.ignore-hierarchy-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.ignore-group {
  background: #fff;
  border: 1px solid var(--grey-200, #e5e5e5);
  border-radius: 0.375rem;
  margin-top: 0.5rem;
  padding: 0 0.75rem;
}
.ignore-group > summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 0;
  font-weight: 600;
  list-style: revert;
}
.ignore-group-title { flex: 0 0 auto; }
.ignore-group-count {
  background: var(--grey-200, #e5e5e5);
  color: var(--grey-700, #444);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.ignore-rule-list {
  list-style: none;
  padding: 0 0 0.5rem;
  margin: 0;
}
.ignore-rule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-top: 1px solid var(--grey-100, #f0f0f0);
  gap: 0.75rem;
}
.ignore-rule-row:first-child { border-top: 0; }
.ignore-rule-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}
.ignore-rule-name { font-weight: 600; }
.ignore-rule-path {
  color: var(--grey-500, #888);
  font-size: 0.82rem;
}
.ignore-rule-empty {
  color: var(--grey-500, #888);
  font-size: 0.85rem;
  padding: 0.4rem 0;
  font-style: italic;
}
.ignore-reason-pill {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: var(--grey-100, #f0f0f0);
  color: var(--grey-700, #555);
}
.reason-out_of_scope { background: #fff4e5; color: #9a3412; }
.reason-duplicate    { background: #e0f2fe; color: #075985; }
.reason-low_quality  { background: #fef3c7; color: #92400e; }
.reason-other        { background: #f3f4f6; color: #4b5563; }
.reason-nocascade    { background: #e0e7ff; color: #3730a3; }

.ignore-badge {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.85em;
}

/* ── Pricing modal — simplified editor ─────────────────────── */
.pf-section {
  border: 1px solid var(--grey-200, #e5e7eb);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.85rem;
  background: #fafafa;
}
.pf-section:first-child { margin-top: 0; }
.pf-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-500, #6b7280);
  margin: 0 0 0.6rem;
}
.pf-name-input {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  width: 100%;
  border: 1px solid var(--grey-300, #d1d5db);
  border-radius: 6px;
  box-sizing: border-box;
}
.pf-id-preview {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--grey-500, #6b7280);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pf-id-preview code {
  background: #eef2f7;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.pf-id-badge {
  display: inline-block;
  background: #eef2f7;
  color: var(--grey-700, #374151);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 4px;
}
.pf-link-btn {
  background: none;
  border: none;
  color: var(--blue, #2563eb);
  cursor: pointer;
  padding: 0;
  font-size: 0.8rem;
  text-decoration: underline;
}
.pf-money-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.pf-money-field label {
  display: block;
  font-size: 0.8rem;
  color: var(--grey-700, #374151);
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.pf-money-field .hint {
  font-size: 0.7rem;
  color: var(--grey-500, #6b7280);
  font-weight: 400;
}
.pf-money-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pf-money-wrap::before {
  content: "$";
  position: absolute;
  left: 0.55rem;
  color: var(--grey-500, #6b7280);
  font-weight: 600;
  pointer-events: none;
}
.pf-money-wrap input {
  padding: 0.5rem 0.6rem 0.5rem 1.4rem;
  width: 100%;
  font-size: 1rem;
  border: 1px solid var(--grey-300, #d1d5db);
  border-radius: 6px;
  box-sizing: border-box;
}
.pf-switch-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  cursor: pointer;
  user-select: none;
}
.pf-switch-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}
.pf-full-retail {
  margin-top: 0.6rem;
  max-width: 50%;
}
.pf-chip-input {
  min-height: 2.2rem;
  border: 1px solid var(--grey-300, #d1d5db);
  border-radius: 6px;
  padding: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  background: #fff;
}
.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #e0e7ff;
  color: #3730a3;
  padding: 2px 6px 2px 8px;
  border-radius: 12px;
  font-size: 0.82rem;
}
.pf-chip button {
  background: none;
  border: none;
  color: #3730a3;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
}
.pf-chip button:hover { color: #111; }
.pf-chip-input input {
  flex: 1;
  min-width: 6rem;
  border: none;
  outline: none;
  font-size: 0.9rem;
  padding: 0.2rem;
  background: transparent;
}
.pf-helper {
  font-size: 0.78rem;
  color: var(--grey-500, #6b7280);
  margin: 0 0 0.5rem;
}
.pf-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey-700, #374151);
  margin: 0.6rem 0 0.3rem;
}
.pf-radio-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  cursor: pointer;
}
.pf-tier-checklist {
  margin-top: 0.4rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--grey-300, #d1d5db);
  border-radius: 6px;
  background: #fff;
  max-height: 180px;
  overflow-y: auto;
}
.pf-tier-checklist label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
  cursor: pointer;
  font-size: 0.9rem;
}
.pf-advanced {
  margin-top: 0.75rem;
}
.pf-advanced summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--grey-600, #4b5563);
  padding: 0.3rem 0;
  font-weight: 600;
}
.pf-advanced .pf-field-label:first-of-type { margin-top: 0.3rem; }

