/* ============================================================
   FGS Account Portal — Design System v1.1
   Matched to fgsrentals.co.uk
   Primary: #017bdf  Dark: #0c0730
   Headings: Georama (--fgs-heading-font)
   Body:     Inter Tight (--fgs-font)
   ============================================================ */

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

:root {
  --fgs-blue:        #017bdf;
  --fgs-blue-h:      #0069c4;
  --fgs-blue-deep:   #1906c0;
  --fgs-dark:        #0c0730;
  --fgs-dark-mid:    #1a1250;
  --fgs-blue-tint:   #ededf9;
  --fgs-blue-light:  #e8f3fd;
  --fgs-white:       #ffffff;
  --fgs-off-white:   #fcfcfc;
  --fgs-gray-100:    #f6f6f6;
  --fgs-gray-200:    #e8e8e8;
  --fgs-gray-400:    #9ca3af;
  --fgs-gray-600:    #666666;
  --fgs-gray-800:    #2c3e50;
  --fgs-text:        #0c0730;
  --fgs-green:       #008a20;
  --fgs-amber:       #ffba00;
  --fgs-red:         #cc0000;
  --fgs-shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --fgs-shadow:      0 4px 16px rgba(0,0,0,.08);
  --fgs-shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --fgs-radius:      6px;
  --fgs-radius-lg:   12px;
  --fgs-font:        'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fgs-heading-font: 'Georama', 'Inter Tight', sans-serif;
  --fgs-transition:  180ms cubic-bezier(.4,0,.2,1);
}

/* ── Scope ───────────────────────────────────────────────── */
.fgs-portal-active .woocommerce-MyAccount-content,
.fgs-portal-active .woocommerce-account {
  font-family: var(--fgs-font);
  color: var(--fgs-text);
}

/* ── Layout — inherit theme container, use flexbox ───────── */

/* Remove UICore's 10px container padding — gives full 1270px on desktop.
   Match the theme's specificity: .uicore.uicore-box .uicore.uicore-container (4 classes).
   Mobile/tablet gutters are handled by our own responsive rules below. */
.fgs-portal-active .uicore.uicore-box .uicore.uicore-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Expand UICore's inner content wrapper to fill the container */
.fgs-portal-active .uicore-content {
  max-width: 100% !important;
  width: 100% !important;
}

.fgs-portal-active .woocommerce {
  padding: 32px 0 0;
  max-width: 100% !important;
  width: 100% !important;
}

/* Kill the WooCommerce/theme clearfix — display:table breaks flexbox full-width.
   body prefix raises specificity to (0,2,2), beating the theme's (0,2,1) rule. */
body.fgs-portal-active .woocommerce::before,
body.fgs-portal-active .woocommerce::after {
  display: none !important;
  content: none !important;
}

/* Contain the floated Billing/Shipping address columns on the order-detail
   view (core WooCommerce markup: .col2-set .col-1/.col-2 use float:left/
   float:right). Normally WooCommerce's own woocommerce-layout.css supplies
   a clearfix for .col2-set, but that stylesheet is dequeued site-wide (the
   theme uses its own layout system) and the blanket kill-clearfix rule
   above only targets .woocommerce's own pseudo-elements, not this nested
   .col2-set — so nothing was containing these floats. Left uncontained,
   the section collapsed to 0 height and the very next element (the Order
   Items card) flowed up into the ~40px gap between the two floated
   columns instead of rendering below them, showing as a near-invisible
   sliver. flow-root establishes a new block formatting context that
   contains floats on its own — no clearfix pseudo-element needed, and
   nested deep enough here that it can't affect the outer flex layout the
   kill-clearfix rule above was protecting. */
.fgs-portal-active .col2-set.addresses {
  display: flow-root;
}

.fgs-portal-active .woocommerce-MyAccount-navigation,
.fgs-portal-active .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
}

.fgs-portal-active .woocommerce:has(.woocommerce-MyAccount-navigation) {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.fgs-portal-active .woocommerce-MyAccount-navigation {
  width: 250px !important;
  flex-shrink: 0;
  /* Kill the WooCommerce default right border */
  border-right: none !important;
  border: none !important;
  position: relative; /* ensure ::before is contained */
}

/* Remove the UICore theme pseudo-element that draws a vertical line */
.fgs-portal-active .woocommerce-MyAccount-navigation::before {
  display: none !important;
  content: none !important;
}

.fgs-portal-active .woocommerce-MyAccount-content {
  flex: 1;
  min-width: 0;
}

/* Strip the theme's form wrapper border + padding on account pages */
.fgs-portal-active .woocommerce-account .woocommerce form {
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* ── Sidebar nav ─────────────────────────────────────────── */
.fgs-portal-active .woocommerce-MyAccount-navigation {
  background: var(--fgs-white);
  border-radius: var(--fgs-radius-lg);
  overflow: hidden;
  border: 1px solid var(--fgs-gray-200);
  box-shadow: var(--fgs-shadow-sm);
}

.fgs-portal-active .woocommerce-MyAccount-navigation .fgs-nav-header {
  padding: 20px 18px;
  border-bottom: 1px solid var(--fgs-gray-200);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 13px;
}

.fgs-portal-active .woocommerce-MyAccount-navigation .fgs-nav-header .fgs-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--fgs-blue);
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--fgs-heading-font);
  color: var(--fgs-white);
  letter-spacing: .5px;
}

.fgs-portal-active .woocommerce-MyAccount-navigation .fgs-nav-header .fgs-nav-user {
  min-width: 0;
}

.fgs-portal-active .woocommerce-MyAccount-navigation .fgs-nav-header .fgs-nav-name {
  color: var(--fgs-dark);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--fgs-heading-font);
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fgs-portal-active .woocommerce-MyAccount-navigation .fgs-nav-header .fgs-nav-company {
  color: var(--fgs-gray-600);
  font-size: 11px;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .02em;
}

.fgs-portal-active .woocommerce-MyAccount-navigation .fgs-nav-header .fgs-nav-company i {
  margin-right: 5px;
  font-size: 10px;
  opacity: .8;
}

.fgs-portal-active .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  width: 100% !important;
}

.fgs-portal-active .woocommerce-MyAccount-navigation ul li {
  margin: 0;
  padding: 0;
  /* Stop the theme adding a white/light background to the li itself */
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

.fgs-portal-active .woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--fgs-gray-600);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--fgs-font);
  transition: background var(--fgs-transition), color var(--fgs-transition);
  border-left: 3px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.fgs-portal-active .woocommerce-MyAccount-navigation ul li a i {
  width: 16px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}

.fgs-portal-active .woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--fgs-gray-100) !important;
  color: var(--fgs-dark) !important;
}

.fgs-portal-active .woocommerce-MyAccount-navigation ul li.is-active a,
.fgs-portal-active .woocommerce-MyAccount-navigation ul li a.active {
  background: var(--fgs-blue-light) !important;
  color: var(--fgs-blue) !important;
  border-left-color: var(--fgs-blue) !important;
}

.fgs-portal-active .woocommerce-MyAccount-navigation ul .fgs-nav-divider {
  height: 1px;
  background: var(--fgs-gray-200);
  margin: 6px 0;
}

/* ── Content area ────────────────────────────────────────── */
.fgs-portal-active .woocommerce-MyAccount-content {
  background: transparent;
  padding: 0;
}

/* ── Page header ─────────────────────────────────────────── */
.fgs-page-header {
  background: var(--fgs-dark);
  border-radius: var(--fgs-radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.fgs-page-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(1,123,223,.2);
  pointer-events: none;
}

.fgs-page-header h1,
.fgs-page-header h2 {
  color: var(--fgs-white);
  font-size: 20px;
  font-weight: 700;
  font-family: var(--fgs-heading-font);
  margin: 0 0 4px;
}

.fgs-page-header p {
  color: rgba(255,255,255,.55);
  margin: 0;
  font-size: 14px;
}

/* ── Stat cards ──────────────────────────────────────────── */
.fgs-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.fgs-stat-card {
  background: var(--fgs-white);
  border-radius: var(--fgs-radius-lg);
  padding: 20px 22px;
  box-shadow: var(--fgs-shadow-sm);
  border: 1px solid var(--fgs-gray-200);
  transition: box-shadow var(--fgs-transition), transform var(--fgs-transition);
}

.fgs-stat-card:hover {
  box-shadow: var(--fgs-shadow);
  transform: translateY(-2px);
}

.fgs-stat-card .fgs-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--fgs-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 12px;
}

.fgs-stat-card.accent .fgs-stat-icon { background: var(--fgs-blue-light);  color: var(--fgs-blue);  }
.fgs-stat-card.green  .fgs-stat-icon { background: rgba(0,138,32,.1);       color: var(--fgs-green); }
.fgs-stat-card.amber  .fgs-stat-icon { background: rgba(255,186,0,.12);     color: #b08000;          }
.fgs-stat-card.navy   .fgs-stat-icon { background: rgba(0,138,32,.1);       color: var(--fgs-green); }

.fgs-stat-card .fgs-stat-value {
  font-size: 40px;
  font-weight: 800;
  color: var(--fgs-dark);
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--fgs-heading-font);
}

.fgs-stat-card .fgs-stat-label {
  font-size: 13px;
  color: var(--fgs-gray-600);
  font-weight: 500;
}

/* ── Cards ───────────────────────────────────────────────── */
.fgs-card {
  background: var(--fgs-white);
  border-radius: var(--fgs-radius-lg);
  border: 1px solid var(--fgs-gray-200);
  box-shadow: var(--fgs-shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.fgs-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--fgs-gray-200);
}

.fgs-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--fgs-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fgs-heading-font);
}

.fgs-card-header h3 i {
  color: var(--fgs-blue);
  font-size: 14px;
}

.fgs-card-body {
  padding: 22px;
}

.fgs-card-footer {
  padding: 12px 22px;
  background: var(--fgs-gray-100);
  border-top: 1px solid var(--fgs-gray-200);
}

/* ── Product page bookmark (injected into UICore meta row) ── */
.fgs-pdp-bookmark {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--fgs-gray-200);
  border-radius: var(--fgs-radius);
  background: transparent;
  color: var(--fgs-gray-400);
  cursor: pointer;
  transition: all var(--fgs-transition);
  flex-shrink: 0;
  font-size: 14px;
}

.fgs-pdp-bookmark:hover {
  border-color: var(--fgs-blue);
  color: var(--fgs-blue);
  background: var(--fgs-blue-light);
}

.fgs-pdp-bookmark.saved {
  border-color: var(--fgs-blue);
  color: var(--fgs-blue);
  background: var(--fgs-blue-light);
}

.fgs-pdp-bookmark:disabled { opacity: .5; cursor: wait; }

/* ── Product page save button ────────────────────────────── */
.fgs-pdp-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  margin-top: 12px;
  border: 2px solid var(--fgs-gray-200);
  border-radius: var(--fgs-radius);
  background: transparent;
  color: var(--fgs-gray-600);
  font-family: var(--fgs-font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--fgs-transition);
  white-space: nowrap;
}

.fgs-pdp-save-btn:hover {
  border-color: var(--fgs-blue);
  color: var(--fgs-blue);
  background: var(--fgs-blue-light);
}

.fgs-pdp-save-btn.saved {
  border-color: var(--fgs-blue);
  color: var(--fgs-blue);
  background: var(--fgs-blue-light);
}

.fgs-pdp-save-btn:disabled { opacity: .6; cursor: wait; }

/* ── Buttons ─────────────────────────────────────────────── */
.fgs-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--fgs-radius);
  font-family: var(--fgs-font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--fgs-transition);
  white-space: nowrap;
}

.fgs-btn-primary {
  background: var(--fgs-blue);
  color: var(--fgs-white);
  border-color: var(--fgs-blue);
}
.fgs-btn-primary:hover {
  background: var(--fgs-blue-h);
  border-color: var(--fgs-blue-h);
  color: var(--fgs-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(1,123,223,.3);
}

.fgs-btn-navy {
  background: var(--fgs-dark);
  color: var(--fgs-white);
  border-color: var(--fgs-dark);
}
.fgs-btn-navy:hover {
  background: var(--fgs-dark-mid);
  border-color: var(--fgs-dark-mid);
  color: var(--fgs-white);
}

.fgs-btn-outline {
  background: transparent;
  color: var(--fgs-dark);
  border-color: var(--fgs-gray-200);
}
.fgs-btn-outline:hover {
  border-color: var(--fgs-blue);
  color: var(--fgs-blue);
  background: var(--fgs-blue-light);
}

.fgs-btn-ghost {
  background: transparent;
  color: var(--fgs-blue);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.fgs-btn-ghost:hover {
  color: var(--fgs-blue-h);
  text-decoration: underline;
}

.fgs-btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.fgs-btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--fgs-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Badges / Status pills ───────────────────────────────── */
.fgs-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-family: var(--fgs-font);
}

.fgs-badge-green  { background: rgba(0,138,32,.1);    color: var(--fgs-green); }
.fgs-badge-amber  { background: rgba(255,186,0,.15);   color: #8a6000; }
.fgs-badge-navy   { background: var(--fgs-blue-tint);  color: var(--fgs-dark); }
.fgs-badge-accent { background: var(--fgs-blue-light); color: var(--fgs-blue); }
.fgs-badge-red    { background: rgba(204,0,0,.1);      color: var(--fgs-red);  }
.fgs-badge-gray   { background: var(--fgs-gray-100);   color: var(--fgs-gray-600); }

/* ── Tables ──────────────────────────────────────────────── */
.fgs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-family: var(--fgs-font);
}

.fgs-table thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--fgs-gray-600);
  background: var(--fgs-gray-100);
  border-bottom: 2px solid var(--fgs-gray-200);
}

.fgs-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--fgs-gray-100);
  vertical-align: middle;
  color: var(--fgs-text);
}

.fgs-table tbody tr:last-child td { border-bottom: none; }
.fgs-table tbody tr:hover td { background: var(--fgs-gray-100); }

.fgs-table .fgs-order-number {
  font-weight: 700;
  font-size: 13px;
  color: var(--fgs-dark);
}

.fgs-table .fgs-order-total {
  font-weight: 700;
  color: var(--fgs-dark);
}

.fgs-table .fgs-order-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

/* ── Login page ──────────────────────────────────────────── */
.fgs-portal-active .woocommerce-account:not(.logged-in) .woocommerce {
  max-width: 460px;
}

.fgs-login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
}

.fgs-login-logo {
  margin-bottom: 28px;
  text-align: center;
}

.fgs-login-logo img { max-width: 160px; height: auto; }

.fgs-login-logo .fgs-login-logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--fgs-dark);
  letter-spacing: -0.5px;
  font-family: var(--fgs-heading-font);
}

.fgs-login-logo .fgs-login-logo-text span { color: var(--fgs-blue); }

.fgs-login-card {
  background: var(--fgs-white);
  border-radius: var(--fgs-radius-lg);
  box-shadow: var(--fgs-shadow-lg);
  border: 1px solid var(--fgs-gray-200);
  width: 100%;
  overflow: hidden;
}

.fgs-login-card-header {
  background: var(--fgs-dark);
  padding: 26px 30px 22px;
  position: relative;
  overflow: hidden;
}

.fgs-login-card-header::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(1,123,223,.25);
}

.fgs-login-card-header h2 {
  color: var(--fgs-white);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 4px;
  position: relative;
  z-index: 1;
  font-family: var(--fgs-heading-font);
}

.fgs-login-card-header p {
  color: rgba(255,255,255,.5);
  font-size: 13px;
  margin: 0;
  position: relative;
  z-index: 1;
}

.fgs-login-card-body { padding: 28px 30px; }

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

.fgs-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fgs-gray-800);
  margin-bottom: 6px;
  font-family: var(--fgs-font);
}

.fgs-form-group input[type="text"],
.fgs-form-group input[type="email"],
.fgs-form-group input[type="password"],
.fgs-form-group input[type="tel"],
.fgs-form-group select,
.fgs-form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--fgs-gray-200);
  border-radius: var(--fgs-radius);
  font-family: var(--fgs-font);
  font-size: 14px;
  color: var(--fgs-text);
  background: var(--fgs-white);
  transition: border-color var(--fgs-transition), box-shadow var(--fgs-transition);
  box-sizing: border-box;
}

.fgs-form-group input:focus,
.fgs-form-group select:focus,
.fgs-form-group textarea:focus {
  outline: none;
  border-color: var(--fgs-blue);
  box-shadow: 0 0 0 3px rgba(1,123,223,.12);
}

.fgs-form-group .fgs-input-icon-wrap { position: relative; }

.fgs-form-group .fgs-input-icon-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fgs-gray-400);
  font-size: 13px;
}

.fgs-form-group .fgs-input-icon-wrap input { padding-left: 36px; }

.fgs-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.fgs-remember-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--fgs-gray-600);
  cursor: pointer;
  font-family: var(--fgs-font);
}

.fgs-remember-label input[type="checkbox"] { accent-color: var(--fgs-blue); }

.fgs-forgot-link {
  font-size: 13px;
  color: var(--fgs-blue);
  text-decoration: none;
  font-weight: 500;
}
.fgs-forgot-link:hover { text-decoration: underline; }

.fgs-login-submit { width: 100%; padding: 12px; font-size: 15px; justify-content: center; }

.fgs-login-register-link {
  text-align: center;
  padding: 14px 30px 22px;
  font-size: 13px;
  color: var(--fgs-gray-600);
  border-top: 1px solid var(--fgs-gray-200);
  font-family: var(--fgs-font);
}

.fgs-login-register-link a { color: var(--fgs-blue); font-weight: 600; text-decoration: none; }

/* Override WooCommerce default form styles */
.fgs-portal-active .woocommerce-form-login,
.fgs-portal-active .woocommerce-form-register {
  border: none; padding: 0; box-shadow: none;
}

.fgs-portal-active .woocommerce-form-login .form-row label,
.fgs-portal-active .woocommerce-form-register .form-row label {
  font-size: 13px; font-weight: 600; color: var(--fgs-gray-800); font-family: var(--fgs-font);
}

.fgs-portal-active .woocommerce-form-login input.input-text,
.fgs-portal-active .woocommerce-form-register input.input-text {
  padding: 10px 13px;
  border: 1.5px solid var(--fgs-gray-200);
  border-radius: var(--fgs-radius);
  font-family: var(--fgs-font);
  font-size: 14px;
}

.fgs-portal-active .woocommerce-form-login input.input-text:focus,
.fgs-portal-active .woocommerce-form-register input.input-text:focus {
  border-color: var(--fgs-blue);
  box-shadow: 0 0 0 3px rgba(1,123,223,.12);
  outline: none;
}

.fgs-portal-active .woocommerce-form-login button[type="submit"],
.fgs-portal-active .woocommerce-form-register button[type="submit"] {
  background: var(--fgs-blue);
  border: 2px solid var(--fgs-blue);
  color: var(--fgs-white);
  font-family: var(--fgs-font);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--fgs-radius);
  padding: 10px 22px;
  cursor: pointer;
  transition: all var(--fgs-transition);
}

.fgs-portal-active .woocommerce-form-login button[type="submit"]:hover,
.fgs-portal-active .woocommerce-form-register button[type="submit"]:hover {
  background: var(--fgs-blue-h);
  border-color: var(--fgs-blue-h);
}

/* ── Dashboard quick actions ─────────────────────────────── */
.fgs-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.fgs-quick-action {
  background: var(--fgs-white);
  border: 1.5px solid var(--fgs-gray-200);
  border-radius: var(--fgs-radius-lg);
  padding: 18px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--fgs-text);
  transition: all var(--fgs-transition);
  cursor: pointer;
}

.fgs-quick-action:hover {
  border-color: var(--fgs-blue);
  box-shadow: 0 4px 16px rgba(1,123,223,.12);
  transform: translateY(-2px);
  color: var(--fgs-dark);
}

.fgs-quick-action .fgs-qa-icon {
  width: 42px;
  height: 42px;
  background: var(--fgs-dark);
  border-radius: var(--fgs-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--fgs-white);
  margin: 0 auto 10px;
  transition: background var(--fgs-transition);
}

.fgs-quick-action:hover .fgs-qa-icon { background: var(--fgs-blue); }

.fgs-quick-action .fgs-qa-label {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  font-family: var(--fgs-font);
}

/* ── Account manager card ────────────────────────────────── */
.fgs-account-manager {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--fgs-dark);
  border-radius: var(--fgs-radius-lg);
  margin-bottom: 20px;
}

.fgs-account-manager .fgs-am-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fgs-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--fgs-white);
  flex-shrink: 0;
  overflow: hidden;
}

.fgs-account-manager .fgs-am-photo img { width: 100%; height: 100%; object-fit: cover; }

.fgs-account-manager .fgs-am-info { flex: 1; }

.fgs-account-manager .fgs-am-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: rgba(255,255,255,.4);
  margin: 0 0 3px;
}

.fgs-account-manager .fgs-am-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--fgs-white);
  margin: 0 0 4px;
  font-family: var(--fgs-heading-font);
}

.fgs-account-manager .fgs-am-contact { display: flex; gap: 16px; }

.fgs-account-manager .fgs-am-contact a {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--fgs-transition);
}

.fgs-account-manager .fgs-am-contact a:hover { color: var(--fgs-white); }
.fgs-account-manager .fgs-am-actions { flex-shrink: 0; }

/* ── Message modal ───────────────────────────────────────── */
.fgs-message-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12,7,48,.6);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.fgs-message-modal-overlay.active { display: flex; }

.fgs-message-modal {
  background: var(--fgs-white);
  border-radius: var(--fgs-radius-lg);
  box-shadow: var(--fgs-shadow-lg);
  width: 100%;
  max-width: 460px;
  margin: 20px;
  animation: fgsModalIn .2s ease;
}

@keyframes fgsModalIn {
  from { opacity: 0; transform: translateY(-12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.fgs-message-modal .fgs-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--fgs-gray-200);
}

.fgs-message-modal .fgs-modal-header h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--fgs-dark);
  font-family: var(--fgs-heading-font);
}

.fgs-modal-close {
  background: none; border: none; font-size: 20px;
  color: var(--fgs-gray-400); cursor: pointer; padding: 0; line-height: 1;
  transition: color var(--fgs-transition);
}
.fgs-modal-close:hover { color: var(--fgs-dark); }

.fgs-message-modal .fgs-modal-body { padding: 22px; }

.fgs-message-modal textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--fgs-gray-200);
  border-radius: var(--fgs-radius);
  font-family: var(--fgs-font);
  font-size: 14px;
  resize: vertical;
  min-height: 110px;
  box-sizing: border-box;
  transition: border-color var(--fgs-transition);
}

.fgs-message-modal textarea:focus {
  outline: none;
  border-color: var(--fgs-blue);
  box-shadow: 0 0 0 3px rgba(1,123,223,.12);
}

.fgs-message-modal .fgs-modal-footer {
  padding: 12px 22px;
  border-top: 1px solid var(--fgs-gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ── Hire calendar ───────────────────────────────────────── */
.fgs-calendar-legend {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.fgs-calendar-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fgs-gray-600);
  font-family: var(--fgs-font);
}

.fgs-calendar-legend .dot { width: 10px; height: 10px; border-radius: 50%; }

.fgs-hire-timeline { display: flex; flex-direction: column; gap: 10px; }

/* ── Document hub ────────────────────────────────────────── */
.fgs-document-list { display: flex; flex-direction: column; gap: 10px; }

.fgs-document-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--fgs-white);
  border: 1.5px solid var(--fgs-gray-200);
  border-radius: var(--fgs-radius);
  transition: border-color var(--fgs-transition), background var(--fgs-transition);
}

.fgs-document-row:hover {
  border-color: var(--fgs-blue);
  background: var(--fgs-gray-100);
}

.fgs-doc-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--fgs-radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.fgs-doc-icon.pdf  { background: rgba(1,123,223,.1);  color: var(--fgs-blue); }
.fgs-doc-icon.word { background: rgba(22,160,133,.1);  color: #16a085; }

.fgs-doc-info { flex: 1; min-width: 0; }

.fgs-doc-name {
  font-size: 14px; font-weight: 600;
  color: var(--fgs-dark); margin: 0 0 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.fgs-doc-meta {
  font-size: 12px; color: var(--fgs-gray-600); margin: 0;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

.fgs-hire-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--fgs-gray-100);
  border-radius: var(--fgs-radius);
  border: 1px solid var(--fgs-gray-200);
  transition: all var(--fgs-transition);
}

.fgs-hire-row:hover { border-color: var(--fgs-blue); background: var(--fgs-white); }

.fgs-hire-row .fgs-hire-product { font-size: 14px; font-weight: 600; color: var(--fgs-dark); }

.fgs-hire-row .fgs-hire-product small {
  display: block; font-size: 12px; font-weight: 400; color: var(--fgs-gray-600); margin-top: 2px;
}

.fgs-hire-bar-wrap {
  position: relative; height: 26px;
  background: var(--fgs-gray-200); border-radius: 4px; overflow: hidden;
}

.fgs-hire-bar {
  position: absolute; top: 0; bottom: 0;
  border-radius: 4px;
  display: flex; align-items: center; padding: 0 8px;
  font-size: 11px; font-weight: 600; color: var(--fgs-white); white-space: nowrap;
}

.fgs-hire-bar.active  { background: var(--fgs-green); }
.fgs-hire-bar.pending { background: #b08000; }
.fgs-hire-bar.overdue { background: var(--fgs-red); }

/* ── Saved equipment grid ────────────────────────────────── */
.fgs-saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.fgs-saved-item {
  background: var(--fgs-white);
  border: 1.5px solid var(--fgs-gray-200);
  border-radius: var(--fgs-radius-lg);
  overflow: hidden;
  transition: all var(--fgs-transition);
  position: relative;
}

.fgs-saved-item:hover {
  border-color: var(--fgs-blue);
  box-shadow: var(--fgs-shadow);
  transform: translateY(-2px);
}

.fgs-saved-item .fgs-saved-img {
  position: relative; aspect-ratio: 4/3;
  overflow: hidden; background: var(--fgs-gray-100);
}

.fgs-saved-item .fgs-saved-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}

.fgs-saved-item:hover .fgs-saved-img img { transform: scale(1.04); }

.fgs-saved-item .fgs-saved-remove {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px;
  background: rgba(255,255,255,.92);
  border: none; border-radius: var(--fgs-radius);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--fgs-red); font-size: 12px;
  transition: all var(--fgs-transition);
}

.fgs-saved-item .fgs-saved-remove:hover {
  background: var(--fgs-red); color: var(--fgs-white);
}

.fgs-saved-item .fgs-saved-info { padding: 12px; }

.fgs-saved-item .fgs-saved-name {
  font-size: 14px; font-weight: 600; color: var(--fgs-dark);
  margin: 0 0 3px; line-height: 1.3; font-family: var(--fgs-font);
}

.fgs-saved-item .fgs-saved-price {
  font-size: 13px; color: var(--fgs-blue); font-weight: 700; margin: 0 0 10px;
}

.fgs-saved-item .fgs-saved-actions { display: flex; gap: 7px; }

/* ── Toast notifications ─────────────────────────────────── */
.fgs-toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 999999;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}

.fgs-toast {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 18px;
  background: var(--fgs-dark);
  color: var(--fgs-white);
  border-radius: var(--fgs-radius);
  box-shadow: var(--fgs-shadow-lg);
  font-size: 14px; font-weight: 500;
  min-width: 260px; max-width: 360px;
  font-family: var(--fgs-font);
  animation: fgsToastIn .3s cubic-bezier(.34,1.56,.64,1) forwards;
  pointer-events: auto;
  border-left: 4px solid var(--fgs-blue);
}

.fgs-toast.success { border-left-color: var(--fgs-green); }
.fgs-toast.error   { border-left-color: var(--fgs-red);   }
.fgs-toast.warning { border-left-color: #b08000; }

.fgs-toast i { font-size: 15px; }
.fgs-toast.success i { color: var(--fgs-green); }
.fgs-toast.error   i { color: var(--fgs-red); }
.fgs-toast.warning i { color: #b08000; }

@keyframes fgsToastIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fgsToastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(16px); }
}

.fgs-toast.removing { animation: fgsToastOut .22s ease forwards; }

/* ── Order detail ────────────────────────────────────────── */
.fgs-order-summary-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-bottom: 20px;
}

.fgs-order-info-block {
  background: var(--fgs-gray-100);
  border-radius: var(--fgs-radius);
  padding: 14px 18px;
  border: 1px solid var(--fgs-gray-200);
}

.fgs-order-info-block h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--fgs-gray-600); margin: 0 0 6px;
  font-family: var(--fgs-font);
}

.fgs-order-info-block p {
  font-size: 14px; color: var(--fgs-dark); margin: 0; font-weight: 500;
}

.fgs-order-items-table .fgs-item-thumb {
  width: 44px; height: 44px;
  border-radius: var(--fgs-radius);
  overflow: hidden; background: var(--fgs-gray-100); flex-shrink: 0;
}

.fgs-order-items-table .fgs-item-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

.fgs-order-items-table .fgs-item-details {
  display: flex; align-items: center; gap: 10px;
}

.fgs-order-items-table .fgs-item-name {
  font-weight: 600; font-size: 14px; color: var(--fgs-dark);
}

.fgs-order-items-table .fgs-item-meta {
  font-size: 12px; color: var(--fgs-gray-600); margin-top: 2px;
}

.fgs-order-totals { margin-top: 10px; }
.fgs-order-totals tr td { padding: 7px 16px; font-size: 14px; }

.fgs-order-totals .fgs-total-row td {
  font-weight: 700; font-size: 15px; color: var(--fgs-dark);
  border-top: 2px solid var(--fgs-gray-200); padding-top: 12px;
}

/* ── Empty states ────────────────────────────────────────── */
.fgs-empty-state { text-align: center; padding: 56px 36px; }

.fgs-empty-state .fgs-empty-icon {
  width: 64px; height: 64px;
  background: var(--fgs-gray-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--fgs-gray-400);
  margin: 0 auto 18px;
}

.fgs-empty-state h3 {
  font-size: 17px; font-weight: 700; color: var(--fgs-dark);
  margin: 0 0 7px; font-family: var(--fgs-heading-font);
}

.fgs-empty-state p {
  font-size: 14px; color: var(--fgs-gray-600);
  margin: 0 0 18px; max-width: 300px;
  margin-left: auto; margin-right: auto;
}

/* ── Filter bar ──────────────────────────────────────────── */
.fgs-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* Shared height for all filter controls */
.fgs-filter-bar select,
.fgs-filter-bar input[type="text"] {
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--fgs-gray-200);
  border-radius: var(--fgs-radius);
  font-family: var(--fgs-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--fgs-text);
  background: var(--fgs-white);
  box-sizing: border-box;
  transition: border-color var(--fgs-transition), box-shadow var(--fgs-transition);
}

.fgs-filter-bar select:focus,
.fgs-filter-bar input[type="text"]:focus {
  outline: none;
  border-color: var(--fgs-blue);
  box-shadow: 0 0 0 3px rgba(1,123,223,.1);
}

/* Custom select — strip browser chrome, inject chevron */
.fgs-filter-bar select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.fgs-filter-bar select:hover { border-color: var(--fgs-blue); }

.fgs-filter-bar .fgs-search-wrap {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.fgs-filter-bar .fgs-search-wrap i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fgs-gray-400);
  font-size: 13px;
  pointer-events: none;
}

.fgs-filter-bar .fgs-search-wrap input {
  padding-left: 32px;
  width: 100%;
}

/* ── Pagination ──────────────────────────────────────────── */
.fgs-pagination {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 0;
}

.fgs-pagination .fgs-pag-info { font-size: 13px; color: var(--fgs-gray-600); }

.fgs-pagination .fgs-pag-buttons { display: flex; gap: 5px; }

.fgs-pagination .fgs-pag-buttons a,
.fgs-pagination .fgs-pag-buttons span {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--fgs-radius);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--fgs-gray-200);
  color: var(--fgs-gray-600); background: var(--fgs-white);
  transition: all var(--fgs-transition);
}

.fgs-pagination .fgs-pag-buttons a:hover { border-color: var(--fgs-blue); color: var(--fgs-blue); }

.fgs-pagination .fgs-pag-buttons .current {
  background: var(--fgs-blue); border-color: var(--fgs-blue); color: var(--fgs-white);
}

/* ── Notices ─────────────────────────────────────────────── */
.fgs-portal-active .woocommerce-message,
.fgs-portal-active .woocommerce-info,
.fgs-portal-active .woocommerce-error {
  border-radius: var(--fgs-radius);
  border: none;
  font-family: var(--fgs-font);
  font-size: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.fgs-portal-active .woocommerce-message {
  background: rgba(0,138,32,.08); color: #005010;
  border-left: 4px solid var(--fgs-green);
}

.fgs-portal-active .woocommerce-info {
  background: var(--fgs-blue-light); color: #004b99;
  border-left: 4px solid var(--fgs-blue);
}

.fgs-portal-active .woocommerce-error {
  background: rgba(204,0,0,.08); color: #800000;
  border-left: 4px solid var(--fgs-red);
}

/* ── Account edit form ───────────────────────────────────── */
.fgs-account-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}

.fgs-account-form .fgs-form-group.full { grid-column: 1 / -1; }

.fgs-account-form .fgs-section-title {
  grid-column: 1 / -1;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--fgs-gray-600);
  padding-bottom: 8px; border-bottom: 1px solid var(--fgs-gray-200);
  margin-bottom: 2px; font-family: var(--fgs-font);
}

/* ── Profile completeness bar ────────────────────────────── */
.fgs-profile-completeness {
  background: var(--fgs-gray-100);
  border-radius: var(--fgs-radius);
  padding: 14px 18px; margin-bottom: 18px;
  border: 1px solid var(--fgs-gray-200);
}

.fgs-profile-completeness .fgs-pc-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 8px;
}

.fgs-profile-completeness .fgs-pc-label {
  font-size: 13px; font-weight: 600; color: var(--fgs-dark); font-family: var(--fgs-font);
}

.fgs-profile-completeness .fgs-pc-pct {
  font-size: 13px; font-weight: 700; color: var(--fgs-blue);
}

.fgs-progress-bar {
  height: 5px; background: var(--fgs-gray-200); border-radius: 3px; overflow: hidden;
}

.fgs-progress-bar .fgs-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--fgs-blue), var(--fgs-blue-deep));
  border-radius: 3px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

/* ── Dashboard hero enhancements ────────────────────────────── */
.fgs-dashboard-hero {
  padding: 32px 36px 36px;
  background: linear-gradient(135deg, #0c0730 0%, #1906c0 52%, #3b5bdb 100%) !important;
}

/* Override single blob with two decorative rings */
.fgs-page-header.fgs-dashboard-hero::before {
  width: 300px; height: 300px;
  top: -90px; right: -70px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.1);
}

.fgs-page-header.fgs-dashboard-hero::after {
  content: '';
  position: absolute;
  top: -145px; right: -125px;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.06);
  pointer-events: none;
}

.fgs-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.fgs-hero-left { flex: 1; min-width: 0; }

.fgs-dashboard-hero h1 {
  font-size: 38px;
  font-weight: 800;
  margin: 8px 0 10px;
  line-height: 1.1;
}

.fgs-dashboard-hero p {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  margin: 0;
  max-width: 480px;
  line-height: 1.5;
}

.fgs-dashboard-hero p strong {
  color: var(--fgs-white);
  font-weight: 700;
}

.fgs-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,200,80,.18);
  color: #5fff96;
  border: 1px solid rgba(0,200,80,.28);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.fgs-status-pill i { font-size: 7px; }

.fgs-hero-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

.fgs-btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--fgs-radius);
  padding: 9px 16px;
  font-family: var(--fgs-font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--fgs-transition);
}

.fgs-btn-hero-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.55);
  color: #fff;
}

.fgs-btn-hero-solid {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--fgs-white);
  color: var(--fgs-dark);
  border: 1.5px solid var(--fgs-white);
  border-radius: var(--fgs-radius);
  padding: 9px 16px;
  font-family: var(--fgs-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--fgs-transition);
}

.fgs-btn-hero-solid:hover {
  background: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.88);
  color: var(--fgs-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transform: translateY(-1px);
}

/* ── Stat card top row (icon + delta badge) ──────────────────── */
.fgs-stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fgs-stat-top .fgs-stat-icon { margin-bottom: 0; }

.fgs-stat-delta {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.fgs-stat-delta.green {
  background: rgba(0,138,32,.1);
  color: var(--fgs-green);
}

.fgs-stat-delta.amber {
  background: rgba(255,186,0,.12);
  color: #8a6000;
}

/* ── Dashboard two-column layout ─────────────────────────────── */
.fgs-dashboard-main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.fgs-dashboard-primary {
  flex: 1;
  min-width: 0;
}

.fgs-dashboard-sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* ── Card sub-header ─────────────────────────────────────────── */
.fgs-card-subhead {
  font-size: 12px;
  color: var(--fgs-gray-600);
  margin: 2px 0 0;
  font-weight: 400;
}

/* ── Active hires list ───────────────────────────────────────── */
.fgs-hire-list {
  display: flex;
  flex-direction: column;
}

.fgs-hire-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--fgs-gray-100);
  transition: background var(--fgs-transition);
}

.fgs-hire-item:last-child { border-bottom: none; }
.fgs-hire-item:hover { background: var(--fgs-gray-100); }

.fgs-hire-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--fgs-radius);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--fgs-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fgs-hire-thumb--empty {
  color: var(--fgs-blue);
  font-size: 22px;
}

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

.fgs-hire-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.fgs-hire-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fgs-dark);
  font-family: var(--fgs-heading-font);
}

.fgs-hire-meta {
  font-size: 12px;
  color: var(--fgs-gray-600);
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fgs-hire-meta i { margin-right: 3px; }

.fgs-hire-ref { color: var(--fgs-gray-400); }

.fgs-hire-dates {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--fgs-gray-600);
  margin-bottom: 5px;
}

.fgs-hire-days { color: var(--fgs-gray-400); }

.fgs-hire-progress-track {
  height: 4px;
  background: var(--fgs-gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.fgs-hire-progress-fill {
  height: 100%;
  background: var(--fgs-blue);
  border-radius: 2px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}

.fgs-hire-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Account manager card (white version) ────────────────────── */
.fgs-am-card {
  background: var(--fgs-white);
  border-radius: var(--fgs-radius-lg);
  border: 1px solid var(--fgs-gray-200);
  box-shadow: var(--fgs-shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.fgs-am-card-accent {
  height: 80px;
  background: linear-gradient(135deg, #0c0730 0%, #1906c0 52%, #3b5bdb 100%);
  position: relative;
  overflow: hidden;
}

.fgs-am-card-accent::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.12);
  pointer-events: none;
}

.fgs-am-card-accent::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.07);
  pointer-events: none;
}

.fgs-am-card-body {
  padding: 0 20px 20px;
  text-align: center;
}

.fgs-am-card-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--fgs-blue);
  border: 3px solid var(--fgs-white);
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
  margin: -36px auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--fgs-white);
  font-family: var(--fgs-heading-font);
  overflow: hidden;
  position: relative;
}

.fgs-am-card-photo img {
  width: 100%; height: 100%; object-fit: cover;
}

.fgs-am-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--fgs-dark);
  margin: 0 0 4px;
  font-family: var(--fgs-heading-font);
}

.fgs-am-card-title {
  font-size: 12px;
  color: var(--fgs-gray-600);
  margin: 0 0 10px;
}

.fgs-am-card-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fgs-gray-600);
  margin: 0 0 14px;
}

.fgs-am-online-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fgs-green);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0,138,32,.2);
}

.fgs-am-card-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  text-align: left;
}

.fgs-am-card-contact-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--fgs-gray-600);
  text-decoration: none;
  padding: 5px 0;
  transition: color var(--fgs-transition);
}

.fgs-am-card-contact-row:hover { color: var(--fgs-blue); }

.fgs-am-card-contact-row i {
  width: 14px;
  color: var(--fgs-gray-400);
  font-size: 12px;
  flex-shrink: 0;
}

.fgs-am-card-actions {
  display: flex;
  gap: 8px;
}

.fgs-am-msg-btn {
  flex: 1;
  justify-content: center;
}

/* ── Sidebar documents ───────────────────────────────────────── */
.fgs-sidebar-docs {
  display: flex;
  flex-direction: column;
}

.fgs-sidebar-doc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--fgs-gray-100);
  text-decoration: none;
  transition: background var(--fgs-transition);
}

.fgs-sidebar-doc-row:last-child { border-bottom: none; }
.fgs-sidebar-doc-row:hover { background: var(--fgs-gray-100); }

.fgs-sidebar-doc-row .fgs-doc-info { flex: 1; min-width: 0; }

.fgs-sidebar-doc-row .fgs-doc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fgs-dark);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fgs-sidebar-doc-row .fgs-doc-meta {
  font-size: 11px;
  color: var(--fgs-gray-600);
  margin: 0;
}

/* ── This week ───────────────────────────────────────────────── */
.fgs-week-events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.fgs-week-event {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 22px;
  border-right: 1px solid var(--fgs-gray-100);
}

.fgs-week-event:last-child { border-right: none; }

.fgs-week-event-icon {
  width: 34px; height: 34px;
  border-radius: var(--fgs-radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.fgs-week-event--blue  .fgs-week-event-icon { background: var(--fgs-blue-light); color: var(--fgs-blue);  }
.fgs-week-event--amber .fgs-week-event-icon { background: rgba(255,186,0,.12);   color: #8a6000;          }
.fgs-week-event--green .fgs-week-event-icon { background: rgba(0,138,32,.1);     color: var(--fgs-green); }

.fgs-week-event-body { min-width: 0; }

.fgs-week-event-day {
  font-size: 11px;
  font-weight: 700;
  color: var(--fgs-gray-400);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin: 0 0 2px;
}

.fgs-week-event-type {
  font-size: 13px;
  font-weight: 700;
  color: var(--fgs-dark);
  margin: 0 0 2px;
  font-family: var(--fgs-heading-font);
}

.fgs-week-event-name {
  font-size: 12px;
  color: var(--fgs-gray-600);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Quick reorder ───────────────────────────────────────────── */
.fgs-reorder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.fgs-reorder-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-right: 1px solid var(--fgs-gray-100);
  overflow: hidden;
  transition: background var(--fgs-transition);
}

.fgs-reorder-card:last-child { border-right: none; }
.fgs-reorder-card:hover { background: var(--fgs-gray-100); }

.fgs-reorder-thumb {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--fgs-gray-100);
}

.fgs-reorder-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--fgs-gray-400);
}

.fgs-reorder-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  flex: 1;
}

.fgs-reorder-info {
  flex: 1;
  min-width: 0;
}

.fgs-reorder-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--fgs-dark);
  margin: 0 0 3px;
  line-height: 1.3;
}

.fgs-reorder-price {
  font-size: 11px;
  color: var(--fgs-gray-600);
  margin: 0;
}

.fgs-reorder-add {
  width: 32px; height: 32px;
  flex-shrink: 0;
  background: var(--fgs-blue);
  border-radius: var(--fgs-radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--fgs-white);
  font-size: 13px;
  transition: background var(--fgs-transition);
}

.fgs-reorder-card:hover .fgs-reorder-add { background: var(--fgs-blue-h); }

/* ── Bottom nav pills ────────────────────────────────────────── */
.fgs-nav-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.fgs-nav-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--fgs-white);
  border: 1.5px solid var(--fgs-gray-200);
  border-radius: var(--fgs-radius-lg);
  text-decoration: none;
  color: var(--fgs-text);
  transition: all var(--fgs-transition);
}

.fgs-nav-pill:hover {
  border-color: var(--fgs-blue);
  box-shadow: 0 4px 16px rgba(1,123,223,.1);
  transform: translateY(-1px);
}

.fgs-nav-pill-icon {
  width: 36px; height: 36px;
  background: var(--fgs-dark);
  border-radius: var(--fgs-radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--fgs-white);
  font-size: 14px;
  flex-shrink: 0;
  transition: background var(--fgs-transition);
}

.fgs-nav-pill:hover .fgs-nav-pill-icon { background: var(--fgs-blue); }

.fgs-nav-pill-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.fgs-nav-pill-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fgs-dark);
  display: block;
}

.fgs-nav-pill-sub {
  font-size: 11px;
  color: var(--fgs-gray-600);
  display: block;
}

.fgs-nav-pill-arrow {
  color: var(--fgs-gray-400);
  font-size: 11px;
  flex-shrink: 0;
}

/* ── Breadcrumb + date row ───────────────────────────────── */
.fgs-breadcrumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.fgs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.fgs-breadcrumb a {
  color: var(--fgs-gray-600);
  text-decoration: none;
  transition: color var(--fgs-transition);
}

.fgs-breadcrumb a:hover { color: var(--fgs-blue); }

.fgs-breadcrumb span:not(.fgs-breadcrumb-sep) {
  color: var(--fgs-dark);
  font-weight: 500;
}

.fgs-breadcrumb-sep { color: var(--fgs-gray-400); }

.fgs-today-date {
  font-size: 13px;
  color: var(--fgs-gray-600);
  font-weight: 400;
}

/* ── Sidebar promo card ──────────────────────────────────── */
.fgs-nav-promo {
  margin: 8px 12px 16px;
  background: linear-gradient(135deg, #0c0730 0%, #1906c0 60%, #3b5bdb 100%);
  border-radius: var(--fgs-radius-lg);
  padding: 16px 18px;
  color: var(--fgs-white);
}

.fgs-nav-promo-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 0 0 6px;
}

.fgs-nav-promo h4 {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--fgs-heading-font);
  color: var(--fgs-white);
  margin: 0 0 6px;
}

.fgs-nav-promo > p {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin: 0 0 12px;
  line-height: 1.4;
}

.fgs-nav-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fgs-white);
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--fgs-radius);
  padding: 6px 12px;
  transition: all var(--fgs-transition);
}

.fgs-nav-promo-cta:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.55);
  color: var(--fgs-white);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  /* The theme's uicore-container only provides 10px padding — add more on tablet */
  .fgs-portal-active .woocommerce {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .fgs-portal-active .woocommerce:has(.woocommerce-MyAccount-navigation) {
    flex-direction: column;
  }

  .fgs-portal-active .woocommerce .woocommerce-MyAccount-navigation {
    width: 100% !important;
    border-radius: var(--fgs-radius);
    margin-bottom: 18px;
  }

  .fgs-portal-active .woocommerce .woocommerce-MyAccount-content {
    width: 100% !important;
  }

  .fgs-portal-active .woocommerce-MyAccount-navigation ul {
    display: flex; flex-wrap: wrap;
    padding: 8px; gap: 4px;
  }

  .fgs-portal-active .woocommerce-MyAccount-navigation ul li a {
    padding: 7px 12px; border-left: none;
    border-radius: var(--fgs-radius); font-size: 13px;
  }

  .fgs-portal-active .woocommerce-MyAccount-navigation ul li.is-active a {
    border-left: none; background: var(--fgs-blue); color: var(--fgs-white);
  }

  .fgs-portal-active .woocommerce-MyAccount-navigation .fgs-nav-header { display: none; }
  .fgs-portal-active .woocommerce-MyAccount-navigation .fgs-nav-divider { display: none; }

  .fgs-stats-grid          { grid-template-columns: 1fr 1fr; }
  .fgs-quick-actions       { grid-template-columns: repeat(2, 1fr); }
  .fgs-order-summary-grid  { grid-template-columns: 1fr; }
  .fgs-account-form        { grid-template-columns: 1fr; }
  .fgs-account-form .fgs-form-group.full { grid-column: 1; }
  .fgs-hire-row            { grid-template-columns: 1fr; }
  .fgs-account-manager     { flex-wrap: wrap; }

  /* Dashboard layout */
  .fgs-dashboard-main      { flex-direction: column; }
  .fgs-dashboard-sidebar   { width: 100%; }
  .fgs-hero-inner          { flex-direction: column; align-items: flex-start; }
  .fgs-nav-pills           { grid-template-columns: repeat(2, 1fr); }
  .fgs-reorder-grid        { grid-template-columns: repeat(2, 1fr); }
  .fgs-week-events         { grid-template-columns: repeat(2, 1fr); }
  .fgs-dashboard-hero h1   { font-size: 28px; }
}

@media (max-width: 560px) {
  .fgs-portal-active .woocommerce {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .fgs-stats-grid         { grid-template-columns: repeat(2, 1fr); }
  .fgs-quick-actions      { grid-template-columns: repeat(2, 1fr); }
  .fgs-saved-grid         { grid-template-columns: 1fr; }
  .fgs-page-header        { padding: 18px 20px; }
  .fgs-page-header h1, .fgs-page-header h2 { font-size: 17px; }
  .fgs-dashboard-hero h1  { font-size: 22px; }
  .fgs-nav-pills          { grid-template-columns: 1fr; }
  .fgs-hire-item          { flex-wrap: wrap; }
  .fgs-hire-actions       { flex-direction: row; width: 100%; }
}
