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

:root {
  --afr-bg: hsl(210, 20%, 98%);
  --afr-fg: hsl(215, 25%, 15%);
  --afr-card: hsl(0, 0%, 100%);
  --afr-card-fg: hsl(215, 25%, 15%);
  --afr-primary: #017a9b;
  --afr-primary-fg: hsl(0, 0%, 100%);
  --afr-muted: hsl(210, 15%, 95%);
  --afr-muted-fg: hsl(215, 12%, 50%);
  --afr-border: hsl(214, 20%, 92%);
  --afr-success: hsl(152, 60%, 42%);
  --afr-warning: hsl(38, 92%, 50%);
  --afr-destructive: hsl(0, 72%, 55%);
  --afr-theme-primary: #017a9b;
  --afr-theme-primary-dark: #03455d;
  --afr-sidebar-bg: #FFFFFF;
  --afr-sidebar-fg: #65676B;
  --afr-sidebar-accent: linear-gradient(58.28deg, var(--afr-theme-primary-dark) -14.11%, var(--afr-theme-primary) 80.9%);
  --afr-sidebar-accent-fg: #FFFFFF;
  --afr-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.04);
  --afr-radius: 0.75rem;
  --afr-chart-1: hsl(211, 98%, 54%);
  --afr-chart-2: hsl(152, 60%, 42%);
  --afr-chart-3: hsl(38, 92%, 50%);
}

.text-muted-foreground {
  color: hsl(213.8, 12.9%, 51.4%);
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--afr-bg);
  color: var(--afr-fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== LAYOUT ===== */
.afr-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ===== SIDEBAR ===== */
.afr-sidebar {
  width: 240px;
  background: var(--afr-sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid var(--afr-border);
  transition: width 0.22s ease, min-width 0.22s ease;
  overflow: hidden;
  position: relative;
}

/* Sidebar collapsed state - only icon strip visible */
.afr-sidebar.afr-sidebar-collapsed {
  width: 68px !important;
  min-width: 68px !important;
}

.afr-sidebar.afr-sidebar-collapsed .afr-sidebar-nav,
.afr-sidebar.afr-sidebar-collapsed .afr-sidebar-footer {
  overflow-x: hidden;
}

.afr-sidebar.afr-sidebar-collapsed .afr-nav-group {
  padding: 0 4px;
}

.afr-sidebar.afr-sidebar-collapsed .afr-nav-group-label,
.afr-sidebar.afr-sidebar-collapsed .afr-nav-label,
.afr-sidebar.afr-sidebar-collapsed .afr-sidebar-footer>a span,
.afr-sidebar.afr-sidebar-collapsed .afr-count-badge {
  display: none !important;
}

.afr-sidebar.afr-sidebar-collapsed .afr-nav-btn {
  padding: 5px 0;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  margin: 3px 0;
  background: transparent !important;
}

/* Icon box styling */
.afr-nav-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
  color: var(--afr-muted-fg, #64748b);
  background: transparent;
}

.afr-nav-btn:hover .afr-nav-icon-box {
  color: var(--afr-fg, #0f172a);
}

.afr-nav-btn.afr-nav-active .afr-nav-icon-box {
  color: var(--afr-sidebar-accent-fg, #0284c7);
}

/* Collapsed sidebar icon box */
.afr-sidebar.afr-sidebar-collapsed .afr-nav-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.afr-sidebar.afr-sidebar-collapsed .afr-nav-btn:hover .afr-nav-icon-box {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.14);
}

.afr-sidebar.afr-sidebar-collapsed .afr-nav-btn.afr-nav-active .afr-nav-icon-box {
  background: var(--afr-theme-primary, #0284c7);
  border-color: var(--afr-theme-primary, #0284c7);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.afr-sidebar.afr-sidebar-collapsed .afr-nav-btn.afr-nav-active .afr-nav-icon-box .afr-nav-icon {
  color: #ffffff !important;
}

.afr-sidebar.afr-sidebar-collapsed .afr-sidebar-footer {
  padding: 10px 4px 50px;
  align-items: center;
}

.afr-sidebar.afr-sidebar-collapsed .afr-sidebar-footer>a {
  justify-content: center !important;
  padding: 4px 0;
  width: 100%;
  background: transparent !important;
}

.afr-sidebar.afr-sidebar-collapsed .afr-sidebar-footer>a>div {
  margin: 0 auto !important;
  gap: 0 !important;
}

.afr-sidebar.afr-sidebar-collapsed .afr-sidebar-footer .afr-nav-icon-box {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
}

.afr-sidebar.afr-sidebar-collapsed .afr-sidebar-footer .afr-nav-icon-box i {
  width: 18px !important;
  height: 18px !important;
}

.afr-sidebar.afr-sidebar-collapsed [style*="height: 1px"] {
  margin: 8px 10px !important;
  opacity: 0.6;
}

/* Sidebar collapse toggle button */
.afr-sidebar-collapse-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  color: var(--afr-muted-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 10;
  flex-shrink: 0;
}

.afr-sidebar-collapse-btn:hover {
  background: var(--afr-muted);
  color: var(--afr-fg);
  border-color: var(--afr-border);
}

.afr-sidebar.afr-sidebar-collapsed .afr-sidebar-collapse-btn {
  right: 50%;
  transform: translateX(50%);
  bottom: 12px;
}

/* Desktop collapsible hamburger action (Positioned AFTER Logo) */
.afr-header-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--afr-border, #e2e8f0);
  background: var(--afr-card, #ffffff);
  color: var(--afr-fg, #334155);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.afr-header-sidebar-toggle:hover {
  background: var(--afr-muted, #f1f5f9);
  color: var(--afr-theme-primary, #0284c7);
  border-color: #cbd5e1;
}

.afr-header-sidebar-toggle:active {
  transform: scale(0.95);
}

@media (max-width: 991px) {
  .afr-header-sidebar-toggle {
    display: none !important;
  }
}

/* Floating Tooltip for Collapsed Sidebar */
.afr-sidebar-floating-tooltip {
  position: fixed;
  z-index: 999999;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2px;
  padding: 7px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-4px) scale(0.96);
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.afr-sidebar-floating-tooltip::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: #0f172a;
  border-radius: 1px;
}

.afr-sidebar-floating-tooltip.afr-tooltip-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}



.afr-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.afr-sidebar-logo-text img {
  width: 70%;
}

.afr-sidebar-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--afr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afr-primary-fg);
}

.afr-sidebar-logo-text h1 {
  font-size: 14px;
  font-weight: 700;
  color: var(--afr-fg);
  line-height: 1.2;
  margin-bottom: 0px;
}

.afr-sidebar-logo-text p {
  font-size: 10px;
  color: var(--afr-muted-fg);
  margin-bottom: 0px;
}

.afr-sidebar-nav {
  flex: 1;
  padding: 12px 12px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--afr-border) transparent;
}

.afr-sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.afr-sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.afr-sidebar-nav::-webkit-scrollbar-thumb {
  background-color: var(--afr-border);
  border-radius: 10px;
}

.afr-nav-group {
  margin-bottom: 10px;
}

.afr-nav-group-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--afr-muted-fg);
  padding: 0 12px;
  margin-bottom: 4px;
}

.afr-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-sidebar-fg);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: left;
  margin: 2px 0;
}

.afr-nav-btn:hover {
  background: #F2F2F2;
}

.afr-nav-btn.afr-nav-active {
  background: var(--afr-sidebar-accent);
  color: var(--afr-sidebar-accent-fg);
}

.afr-nav-btn.afr-nav-active .afr-nav-icon {
  color: var(--afr-sidebar-accent-fg);
}

.afr-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.afr-count-badge {
  background: #EF4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Sidebar footer */
.afr-sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--afr-border);
}

.afr-sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.afr-sidebar-user:hover {
  background: #F2F2F2;
}

.afr-sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: hsl(211, 98%, 54%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--afr-primary);
  flex-shrink: 0;
}

.afr-sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.afr-sidebar-user-name {
  font-size: 12px;
  font-weight: 500;
  color: hsl(0deg 0% 100%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.afr-sidebar-user-email {
  font-size: 10px;
  color: hsl(215deg 6.08% 71.81%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== MAIN CONTENT ===== */
.afr-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* Top Header */
.afr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: var(--afr-card);
  border-bottom: 1px solid var(--afr-border);
  flex-shrink: 0;
}

.afr-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.afr-header-burger {
  display: none;
  padding: 6px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--afr-fg);
}

.afr-header-mobile-logo {
  display: none;
  align-items: center;
  gap: 8px;
}

.afr-header-mobile-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--afr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afr-primary-fg);
}

.afr-header-mobile-logo span {
  font-size: 14px;
  font-weight: 700;
  color: var(--afr-fg);
}

.afr-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: hsl(210, 15%, 95%, 0.6);
  border-radius: 8px;
  padding: 8px 12px;
  width: 288px;
}

.afr-search-bar input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--afr-fg);
  width: 100%;
}

.afr-search-bar input::placeholder {
  color: var(--afr-muted-fg);
}

.afr-search-kbd {
  font-size: 10px;
  color: var(--afr-muted-fg);
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: 4px;
  padding: 2px 6px;
}

.afr-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.afr-header-icon-btn {
  position: relative;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--afr-muted-fg);
  transition: background 0.15s;
}

.afr-header-icon-btn:hover {
  background: var(--afr-muted);
}

.afr-notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--afr-destructive);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.afr-header-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
}

.afr-header-profile:hover {
  background: var(--afr-muted);
}

.afr-header-profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: hsl(211, 98%, 54%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afr-primary);
}

.afr-header-profile-info {
  text-align: left;
}

.afr-header-profile-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--afr-fg);
  line-height: 1;
}

.afr-header-profile-role {
  font-size: 10px;
  color: var(--afr-muted-fg);
}

/* Page Content Area */
.afr-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  padding-bottom: 24px;
}

/* ===== DASHBOARD STYLES ===== */
.afr-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.afr-page-header {
  font-size: 20px;
  font-weight: 600;
  color: var(--afr-fg);
  letter-spacing: -0.01em;
  margin-bottom: 0px;
}

.afr-page-subtitle {
  font-size: 14px;
  color: var(--afr-muted-fg);
  margin-top: 2px;
  margin-bottom: 0px;
}

.afr-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--afr-primary);
  color: var(--afr-primary-fg);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.afr-btn-primary:hover {
  opacity: 0.9;
}

/* Stats Grid */
.afr-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.afr-stat-card {
  background: var(--afr-card);
  border-radius: var(--afr-radius);
  padding: 20px;
  border: 1px solid var(--afr-border);
  box-shadow: var(--afr-shadow-card);
}

.afr-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.afr-stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.afr-stat-icon-primary {
  background: hsl(211, 98%, 54%, 0.1);
  color: var(--afr-primary);
}

.afr-stat-icon-success {
  background: hsl(152, 60%, 42%, 0.1);
  color: var(--afr-success);
}

.afr-stat-icon-warning {
  background: hsl(38, 92%, 50%, 0.1);
  color: var(--afr-warning);
}

.afr-stat-icon-danger {
  background: hsl(0, 72%, 55%, 0.1);
  color: var(--afr-destructive);
}

.afr-stat-tag {
  font-size: 10px;
  color: var(--afr-muted-fg);
  background: var(--afr-muted);
  padding: 2px 8px;
  border-radius: 999px;
}

.afr-stat-trend-up {
  font-size: 10px;
  color: var(--afr-success);
  display: flex;
  align-items: center;
  gap: 2px;
}

.afr-stat-trend-down {
  font-size: 10px;
  color: var(--afr-destructive);
  display: flex;
  align-items: center;
  gap: 2px;
}

.afr-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--afr-fg);
}

.afr-stat-label {
  font-size: 11px;
  color: var(--afr-muted-fg);
  margin-top: 2px;
}

.afr-stat-progress {
  width: 100%;
  height: 6px;
  background: var(--afr-muted);
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}

.afr-stat-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--afr-success);
}

/* Chart + Orders Row */
.afr-chart-orders-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.afr-chart-card {
  background: var(--afr-card);
  border-radius: var(--afr-radius);
  padding: 20px;
  border: 1px solid var(--afr-border);
  box-shadow: var(--afr-shadow-card);
}

.afr-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -20px -20px 20px -20px;
  padding: 20px 20px 16px 20px;
  border-bottom: 1px solid var(--afr-border);
}

.afr-chart-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
}

.afr-chart-subtitle {
  font-size: 11px;
  color: var(--afr-muted-fg);
}

.afr-chart-area {
  width: 100%;
  height: 240px;
}

/* Legend */
.afr-chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  justify-content: center;
}

.afr-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--afr-muted-fg);
}

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

/* Orders list */
.afr-orders-card {
  background: var(--afr-card);
  border-radius: var(--afr-radius);
  padding: 20px;
  border: 1px solid var(--afr-border);
  box-shadow: var(--afr-shadow-card);
}

.afr-orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -20px -20px 20px -20px;
  padding: 20px 20px 16px 20px;
  border-bottom: 1px solid var(--afr-border);
}

.afr-orders-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
}

.afr-orders-link {
  font-size: 11px;
  font-weight: 500;
  color: var(--afr-primary);
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.afr-orders-link:hover {
  text-decoration: underline;
}

.afr-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 8px;
  background: hsl(210, 15%, 95%, 0.4);
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 8px;
}

.afr-order-item:last-child {
  margin-bottom: 0;
}

.afr-order-item:hover {
  background: hsl(210, 15%, 95%, 0.7);
}

.afr-order-id {
  font-size: 12px;
  font-weight: 500;
  color: var(--afr-fg);
}

.afr-order-meta {
  font-size: 10px;
  color: var(--afr-muted-fg);
}

/* Status badges */
.afr-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
}

.afr-badge-delivered {
  background: hsl(152, 60%, 95%);
  color: hsl(152, 60%, 30%);
}

.afr-badge-transit {
  background: hsl(211, 90%, 95%);
  color: hsl(211, 90%, 40%);
}

.afr-badge-confirmed {
  background: hsl(240, 50%, 95%);
  color: hsl(240, 50%, 40%);
}

.afr-badge-pending {
  background: hsl(38, 90%, 95%);
  color: hsl(38, 80%, 35%);
}

/* Quick Info Grid */
.afr-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.afr-quick-card {
  background: var(--afr-card);
  border-radius: var(--afr-radius);
  padding: 20px;
  border: 1px solid var(--afr-border);
  box-shadow: var(--afr-shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
}

.afr-quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.afr-quick-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--afr-fg);
}

.afr-quick-sub {
  font-size: 11px;
  color: var(--afr-muted-fg);
}

/* ===== MOBILE OVERLAY SIDEBAR ===== */
.afr-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
}

.afr-mobile-overlay.afr-overlay-open {
  display: block;
}

.afr-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: hsla(215, 25%, 15%, 0.3);
  backdrop-filter: blur(4px);
}

.afr-mobile-sidebar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 288px;
  background: var(--afr-card);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  animation: afr-slide-in 0.2s ease-out;
  display: flex;
  flex-direction: column;
}

@keyframes afr-slide-in {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

.afr-mobile-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--afr-border);
}

.afr-mobile-close-btn {
  padding: 6px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--afr-fg);
}

.afr-mobile-close-btn:hover {
  background: var(--afr-muted);
}

.afr-mobile-sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.afr-mobile-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-destructive);
  border: none;
  background: transparent;
  cursor: pointer;
  margin-top: 12px;
  border-top: 1px solid var(--afr-border);
  padding-top: 16px;
}

.afr-mobile-logout:hover {
  background: hsl(0, 72%, 55%, 0.05);
}

/* ===== MOBILE BOTTOM NAV ===== */
.afr-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--afr-card);
  border-top: 1px solid var(--afr-border);
  justify-content: space-around;
  align-items: center;
  padding: 8px 4px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.afr-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--afr-muted-fg);
  font-size: 10px;
  font-weight: 500;
  padding: 6px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s;
}

.afr-bottom-nav-item.afr-bnav-active {
  color: var(--afr-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .afr-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .afr-chart-orders-row {
    grid-template-columns: 1fr;
  }

  .afr-quick-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .afr-sidebar {
    display: none;
  }

  .afr-header-burger {
    display: block;
  }

  .afr-header-mobile-logo {
    display: flex;
  }

  .afr-search-bar {
    display: none;
  }

  .afr-header-profile-info {
    display: none;
  }

  .afr-bottom-nav {
    display: flex;
  }

  .afr-content {
    padding: 16px;
    padding-bottom: 80px;
  }

  .afr-page-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .afr-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .afr-search-kbd {
    display: none;
  }
}

@media (max-width: 480px) {
  .afr-header {
    padding: 0 16px;
  }
}



.po-container {
  max-width: 760px;
  margin: 0 auto;
}

.po-hidden {
  display: none !important;
}

.po-page-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.po-page-title svg {
  color: var(--afr-primary);
}

.po-page-title h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--afr-fg);
  margin: 0;
}

.po-steps {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.po-steps::-webkit-scrollbar {
  display: none;
}

.po-step-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}

.po-step-pill.po-step-active {
  background: var(--afr-primary);
  color: var(--afr-primary-fg);
}

.po-step-pill.po-step-done {
  background: hsl(152 60% 95%);
  color: hsl(152 60% 30%);
}

.po-step-pill.po-step-upcoming {
  background: var(--afr-muted);
  color: var(--afr-muted-fg);
}

.po-step-pill .po-step-label {
  display: none;
}

.po-step-divider {
  width: 16px;
  height: 1px;
  background: var(--afr-border);
  flex-shrink: 0;
}

@media (min-width: 576px) {
  .po-step-pill .po-step-label {
    display: inline;
  }
}

.po-form-section {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  padding: 24px;
  box-shadow: var(--afr-shadow-card);
}

.po-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--afr-fg);
  margin-bottom: 20px;
}

.po-section-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
  margin-bottom: 16px;
}

.po-step-panel+.po-step-panel {
  margin-top: 0;
}

.po-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 576px) {
  .po-product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.po-product-card {
  position: relative;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid var(--afr-border);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
}

.po-product-card:hover {
  border-color: hsl(211 98% 54% / 0.3);
}

.po-product-card.po-selected {
  border-color: var(--afr-primary);
  background: hsl(211 98% 54% / 0.05);
}

.po-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--afr-primary);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--afr-primary-fg);
}

.po-product-card.po-selected .po-check {
  display: flex;
}

.po-product-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 8px;
  color: var(--afr-muted-fg);
}

.po-product-card.po-selected .po-product-icon {
  color: var(--afr-primary);
}

.po-product-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--afr-fg);
}

.po-product-desc {
  font-size: 11px;
  color: var(--afr-muted-fg);
  margin-top: 2px;
}

.po-product-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--afr-primary);
  margin-top: 8px;
}

.po-toggle-group {
  display: flex;
  background: var(--afr-muted);
  border-radius: 8px;
  padding: 4px;
  width: fit-content;
  margin-bottom: 16px;
}

.po-toggle-btn {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--afr-muted-fg);
}

.po-toggle-btn.po-toggle-active {
  background: var(--afr-primary);
  color: var(--afr-primary-fg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.po-input-group {
  margin-bottom: 16px;
}

.po-input-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--afr-fg);
  margin-bottom: 6px;
  display: block;
}

.po-input-wrap {
  position: relative;
}

.po-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--afr-muted-fg);
}

.po-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--afr-bg);
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--afr-fg);
  outline: none;
}

.po-input:focus {
  border-color: var(--afr-primary);
  box-shadow: 0 0 0 3px hsl(211 98% 54% / 0.15);
}

.po-input-icon {
  padding-left: 40px;
}

.po-input-lg {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  padding: 14px 16px;
}

.po-quick-btns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.po-quick-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--afr-border);
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: var(--afr-muted-fg);
  cursor: pointer;
  transition: all 0.2s;
}

.po-quick-btn:hover {
  border-color: hsl(211 98% 54% / 0.3);
}

.po-quick-btn.po-quick-active {
  border-color: var(--afr-primary);
  background: hsl(211 98% 54% / 0.05);
  color: var(--afr-primary);
}

.po-estimate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: hsl(210 15% 95% / 0.5);
  border-radius: 8px;
  margin-top: 16px;
}

.po-estimate-label {
  color: var(--afr-muted-fg);
  font-size: 14px;
}

.po-estimate-value {
  font-weight: 700;
  color: var(--afr-fg);
  font-size: 14px;
}

.po-select-grid {
  display: grid;
  gap: 12px;
}

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

@media (min-width: 576px) {
  .po-select-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.po-select-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid var(--afr-border);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  text-align: left;
  width: 100%;
}

.po-select-card:hover {
  border-color: hsl(211 98% 54% / 0.3);
}

.po-select-card.po-selected {
  border-color: var(--afr-primary);
  background: hsl(211 98% 54% / 0.05);
}

.po-select-card svg {
  width: 20px;
  height: 20px;
  color: var(--afr-muted-fg);
  flex-shrink: 0;
  margin-top: 2px;
}

.po-select-card.po-selected svg {
  color: var(--afr-primary);
}

.po-select-label {
  font-weight: 600;
  color: var(--afr-fg);
  font-size: 14px;
}

.po-select-desc {
  font-size: 12px;
  color: var(--afr-muted-fg);
  margin-top: 2px;
}

.po-pricing {
  background: hsl(210 15% 95% / 0.5);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.po-pricing-soft-border {
  border: 1px solid var(--afr-border);
}

.po-pricing-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 8px;
}

.po-pricing-label {
  color: var(--afr-muted-fg);
}

.po-pricing-value {
  font-weight: 500;
  color: var(--afr-fg);
}

.po-pricing-discount {
  font-weight: 500;
  color: var(--afr-success);
}

.po-pricing-divider {
  border-top: 1px solid var(--afr-border);
  margin: 12px 0;
}

.po-pricing-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.po-pricing-total-label {
  font-weight: 600;
  color: var(--afr-fg);
}

.po-pricing-total-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--afr-primary);
}

.po-inline-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--afr-muted-fg);
  text-align: center;
}

.po-total-inline {
  font-size: 18px;
  font-weight: 700;
  color: var(--afr-fg);
}

.po-success-note {
  background: hsl(152 60% 95%);
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: hsl(152 60% 30%);
  font-weight: 500;
}

.po-wallet-info {
  background: hsl(210 15% 95% / 0.5);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.po-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--afr-border);
}

.po-summary-row:last-child {
  border-bottom: none;
}

.po-sum-label {
  font-size: 14px;
  color: var(--afr-muted-fg);
}

.po-sum-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--afr-fg);
  text-align: right;
}

.po-summary-total {
  background: hsl(211 98% 54% / 0.05);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.po-confirm-wrap {
  text-align: center;
  padding: 32px 0;
}

.po-confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: hsl(152 60% 42% / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.po-confirm-icon svg {
  width: 32px;
  height: 32px;
  color: var(--afr-success);
}

.po-confirm-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--afr-fg);
}

.po-confirm-details {
  max-width: 420px;
  margin: 16px auto 0;
  background: hsl(210 15% 95% / 0.5);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
}

.po-confirm-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.po-nav-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--afr-border);
  gap: 12px;
}

.po-nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--afr-muted-fg);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

.po-nav-back:hover {
  color: var(--afr-fg);
}

.po-nav-back:disabled {
  opacity: 0.3;
  cursor: default;
}

.po-nav-next,
.po-view-cart-btn,
.po-catalog-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  background: var(--afr-primary);
  color: var(--afr-primary-fg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.po-nav-next:hover,
.po-view-cart-btn:hover,
.po-catalog-add-btn:hover {
  opacity: 0.9;
}

.po-btn-outline {
  padding: 10px 24px;
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--afr-fg);
  background: transparent;
  cursor: pointer;
}

.po-btn-outline:hover {
  background: var(--afr-muted);
}

.po-info-bar {
  margin-top: 16px;
  padding: 12px;
  background: hsl(210 15% 95% / 0.5);
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.po-info-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--afr-primary);
  margin-top: 5px;
  flex-shrink: 0;
}

.po-info-bar p {
  font-size: 12px;
  color: var(--afr-muted-fg);
  margin: 0;
}

.po-cylinder-card {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid var(--afr-border);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  text-align: left;
  margin-bottom: 12px;
}

.po-cylinder-card:hover {
  border-color: hsl(211 98% 54% / 0.3);
}

.po-cylinder-card.po-selected {
  border-color: var(--afr-primary);
  background: hsl(211 98% 54% / 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.po-cylinder-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.po-cylinder-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.po-cylinder-emoji {
  font-size: 28px;
  margin-top: 2px;
}

.po-cylinder-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--afr-fg);
}

.po-cylinder-desc {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.po-cylinder-right {
  text-align: right;
}

.po-cylinder-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--afr-fg);
}

.po-cylinder-price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--afr-muted-fg);
}

.po-cylinder-available {
  font-size: 12px;
  color: var(--afr-success);
  font-weight: 500;
}

.po-cylinder-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid hsl(214 20% 92% / 0.5);
}

.po-cylinder-bottom span:first-child {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.po-cylinder-bottom span:last-child {
  font-size: 14px;
  font-weight: 700;
  color: var(--afr-primary);
}

.po-qty-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 0;
}

.po-qty-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
}

.po-qty-minus {
  border: 2px solid var(--afr-border);
  background: transparent;
  color: var(--afr-muted-fg);
}

.po-qty-plus {
  border: none;
  background: var(--afr-primary);
  color: var(--afr-primary-fg);
}

.po-qty-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--afr-fg);
  line-height: 1;
  text-align: center;
}

.po-qty-unit {
  font-size: 12px;
  color: var(--afr-muted-fg);
  margin-top: 4px;
  text-align: center;
}

.po-customer-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: hsl(210 15% 95% / 0.5);
  border-radius: 12px;
  border: 1px solid var(--afr-border);
  margin-bottom: 20px;
  gap: 12px;
}

.po-customer-badge-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.po-customer-badge-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: hsl(211 98% 54% / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.po-customer-badge-avatar svg {
  width: 16px;
  height: 16px;
  color: var(--afr-primary);
}

.po-customer-label {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.po-customer-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
}

.po-badge-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--afr-fg);
}

.po-badge-price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--afr-muted-fg);
}

.po-catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.po-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 576px) {
  .po-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.po-catalog-card {
  border-radius: 12px;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.po-catalog-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: hsl(210 15% 95% / 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 40px;
}

.po-catalog-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
  line-height: 1.3;
}

.po-catalog-meta {
  font-size: 12px;
  color: var(--afr-muted-fg);
  margin-top: 2px;
}

.po-catalog-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--afr-fg);
  margin-top: 8px;
}

.po-catalog-qty-ctrl {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--afr-primary);
  border-radius: 8px;
  overflow: hidden;
}

.po-catalog-qty-btn {
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--afr-primary-fg);
  cursor: pointer;
}

.po-catalog-qty-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--afr-primary-fg);
}

.po-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  margin-bottom: 12px;
}

.po-cart-item-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: hsl(210 15% 95% / 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

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

.po-cart-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.po-cart-item-cat {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.po-cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
}

.po-cart-item-size {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.po-cart-remove {
  background: transparent;
  border: none;
  color: var(--afr-muted-fg);
  cursor: pointer;
  padding: 4px;
}

.po-cart-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 12px;
}

.po-cart-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  overflow: hidden;
}

.po-cart-qty-btn {
  padding: 6px 12px;
  background: transparent;
  border: none;
  color: var(--afr-muted-fg);
  cursor: pointer;
}

.po-cart-qty-val {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--afr-fg);
  min-width: 32px;
  text-align: center;
}

.po-cart-item-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--afr-fg);
}

.po-cart-empty {
  text-align: center;
  padding: 48px 0;
}

.po-cart-empty svg {
  width: 40px;
  height: 40px;
  color: var(--afr-muted-fg);
  margin-bottom: 12px;
}

.po-cart-empty p {
  font-size: 14px;
  color: var(--afr-muted-fg);
}

.po-summary-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.po-summary-actions button {
  flex: 1;
}

.po-meta-note {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.po-mobile-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 575px) {

  .po-nav-footer,
  .po-summary-actions,
  .po-confirm-btns {
    flex-direction: column;
  }

  .po-customer-badge,
  .po-cylinder-top,
  .po-cart-item-footer,
  .po-cart-item-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .po-cylinder-right {
    text-align: left;
  }
}


/* Orders Page style start */
.ord-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ord-page-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ord-page-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(211 98% 54% / 0.1);
  color: var(--afr-primary);
  flex-shrink: 0;
}

.ord-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.ord-search-wrap {
  position: relative;
  max-width: 420px;
}

.ord-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--afr-muted-fg);
  pointer-events: none;
}

.ord-search-input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  color: var(--afr-fg);
  padding: 0 14px 0 40px;
  font-size: 14px;
  outline: none;
  box-shadow: var(--afr-shadow-card);
}

.ord-search-input:focus {
  border-color: var(--afr-primary);
  box-shadow: 0 0 0 3px hsl(211 98% 54% / 0.12);
}

.ord-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.ord-chip-row::-webkit-scrollbar {
  display: none;
}

.ord-chip {
  white-space: nowrap;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  color: var(--afr-muted-fg);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ord-chip:hover {
  background: var(--afr-muted);
  color: var(--afr-fg);
}

.ord-chip.ord-chip-active {
  background: var(--afr-primary);
  color: var(--afr-primary-fg);
  border-color: var(--afr-primary);
}

.ord-table-card {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  box-shadow: var(--afr-shadow-card);
  overflow: hidden;
}

.ord-table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--afr-muted-fg);
  background: hsl(210 15% 95% / 0.55);
  border-bottom: 1px solid var(--afr-border);
  text-align: left;
  white-space: nowrap;
}

tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: hsl(210 15% 95% / 0.45);
}

tbody td {
  padding: 15px 16px;
  font-size: 14px;
  color: var(--afr-fg);
  border-bottom: 1px solid hsl(214 20% 92% / 0.8);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

.ord-id {
  font-weight: 600;
  color: var(--afr-fg);
}

.ord-muted {
  color: var(--afr-muted-fg);
}

.ord-amount {
  font-weight: 600;
}

.ord-eye-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--afr-muted-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ord-eye-btn:hover {
  background: var(--afr-muted);
  color: var(--afr-fg);
}

.ord-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.ord-badge-delivered {
  background: hsl(152 60% 95%);
  color: hsl(152 60% 30%);
}

.ord-badge-transit {
  background: hsl(211 90% 95%);
  color: hsl(211 90% 40%);
}

.ord-badge-confirmed {
  background: hsl(240 50% 95%);
  color: hsl(240 50% 40%);
}

.ord-badge-pending {
  background: hsl(38 90% 95%);
  color: hsl(38 80% 35%);
}

.ord-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--afr-border);
  background: var(--afr-card);
  flex-wrap: wrap;
}

.ord-page-controls,
.ord-footer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ord-page-btn,
.ord-page-slot-btn,
.ord-go-btn {
  height: 36px;
  min-width: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  color: var(--afr-fg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ord-page-btn:hover,
.ord-page-slot-btn:hover,
.ord-go-btn:hover {
  background: var(--afr-muted);
}

.ord-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ord-page-slot {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ord-page-slot-btn {
  width: 36px;
  padding: 0;
  display: none;
}

.ord-page-slot-btn.ord-page-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--afr-primary);
  color: var(--afr-primary-fg);
  border-color: var(--afr-primary);
}

.ord-page-ellipsis {
  display: none;
  color: var(--afr-muted-fg);
  font-size: 14px;
  font-weight: 700;
}

.ord-field-label {
  color: var(--afr-muted-fg);
  font-size: 13px;
  font-weight: 500;
}

.ord-number-input,
.ord-select {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--afr-border);
  background: var(--afr-bg);
  color: var(--afr-fg);
  font-size: 13px;
  padding: 0 10px;
  outline: none;
}

.ord-number-input {
  width: 84px;
  text-align: center;
}

.ord-select {
  min-width: 76px;
}

.ord-empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--afr-muted-fg);
  font-size: 14px;
}

.ord-mobile-list {
  display: none;
  gap: 12px;
  flex-direction: column;
}

.ord-mobile-card {
  width: 100%;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  border-radius: var(--afr-radius);
  box-shadow: var(--afr-shadow-card);
  padding: 16px;
  text-align: left;
}

.ord-mobile-top,
.ord-mobile-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ord-mobile-top {
  margin-bottom: 10px;
}

.ord-mobile-id {
  font-size: 14px;
  font-weight: 700;
  color: var(--afr-fg);
}

.ord-mobile-date,
.ord-mobile-meta {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.ord-mobile-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--afr-fg);
  text-align: right;
}

.ord-mobile-empty {
  display: none;
  padding: 40px 18px;
  text-align: center;
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  background: var(--afr-card);
  color: var(--afr-muted-fg);
  box-shadow: var(--afr-shadow-card);
}

@media (max-width: 767px) {
  .ord-page-top {
    margin-bottom: 18px;
  }

  .ord-search-wrap {
    max-width: none;
  }

  .ord-desktop-table {
    display: none;
  }

  .ord-mobile-list {
    display: flex;
  }
}

@media (max-width: 575px) {
  .ord-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .ord-page-controls,
  .ord-footer-controls {
    justify-content: center;
  }

  .ord-mobile-top,
  .ord-mobile-bottom {
    flex-direction: column;
  }

  .ord-mobile-amount {
    text-align: left;
  }
}

/* End */


/* ****************************
    Order detail page style start
    **************************** */



.od-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--afr-muted-fg);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.od-back-link:hover {
  color: var(--afr-fg);
}

.od-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.od-title {
  font-size: 23px;
  font-weight: 500;
  color: var(--afr-fg);
  margin: 0;
  letter-spacing: -0.02em;
}

.od-subtitle {
  font-size: 13px;
  color: var(--afr-muted-fg);
  margin-top: 4px;
}

.od-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: hsl(152 60% 95%);
  color: hsl(152 60% 30%);
  white-space: nowrap;
}

.od-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.od-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.od-card {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  box-shadow: var(--afr-shadow-card);
  padding: 20px;
}

.od-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--afr-fg);
  margin-bottom: 16px;
}

.od-card-title svg {
  color: var(--afr-primary);
  flex-shrink: 0;
}

.od-info-list {
  display: flex;
  flex-direction: column;
}

.od-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--afr-border);
  font-size: 14px;
}

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

.od-info-row:first-child {
  padding-top: 0;
}

.od-info-key {
  color: var(--afr-muted-fg);
  flex-shrink: 0;
}

.od-info-value {
  color: var(--afr-fg);
  font-weight: 600;
  text-align: right;
}

.od-total-box {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 14px;
  background: hsl(211 98% 54% / 0.06);
  padding: 14px 16px;
}

.od-total-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--afr-fg);
}

.od-total-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--afr-primary);
}

.od-timeline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.od-step {
  display: flex;
  gap: 12px;
}

.od-step-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.od-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--afr-success);
  margin-top: 4px;
}

.od-step-line {
  width: 2px;
  flex: 1;
  min-height: 34px;
  background: var(--afr-success);
  opacity: 0.28;
  margin-top: 6px;
}

.od-step:last-child .od-step-line {
  display: none;
}

.od-step-content {
  padding-bottom: 14px;
}

.od-step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--afr-fg);
  margin-bottom: 2px;
}

.od-step-time {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.od-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.od-doc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  color: var(--afr-fg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.od-doc-btn:hover {
  background: var(--afr-muted);
}

.od-doc-btn svg {
  color: var(--afr-primary);
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .od-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .od-title {
    font-size: 22px;
  }

  .od-doc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {

  .od-info-row,
  .od-total-box,
  .od-page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .od-info-value,
  .od-total-value {
    text-align: left;
  }
}

/* order detail style end */


/* ***************************
    Transaction page style start
    *********************** */

.txn-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.txn-page-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.txn-page-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(211 98% 54% / 0.1);
  color: var(--afr-primary);
  flex-shrink: 0;
}

.txn-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  color: var(--afr-fg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.txn-export-btn:hover {
  background: var(--afr-muted);
}

.txn-search-wrap {
  position: relative;
  max-width: 420px;
  margin-bottom: 20px;
}

.txn-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--afr-muted-fg);
  pointer-events: none;
}

.txn-search-input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  color: var(--afr-fg);
  padding: 0 14px 0 40px;
  font-size: 14px;
  outline: none;
  box-shadow: var(--afr-shadow-card);
}

.txn-search-input:focus {
  border-color: var(--afr-primary);
  box-shadow: 0 0 0 3px hsl(211 98% 54% / 0.12);
}

.txn-table-card {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  box-shadow: var(--afr-shadow-card);
  overflow: hidden;
}

.txn-table-wrap {
  overflow-x: auto;
}

.txn-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
}

.txn-table thead th {
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--afr-muted-fg);
  background: hsl(210 15% 95% / 0.55);
  border-bottom: 1px solid var(--afr-border);
  text-align: left;
  white-space: nowrap;
}

.txn-table tbody tr:hover {
  background: hsl(210 15% 95% / 0.45);
}

.txn-table tbody td {
  padding: 15px 16px;
  font-size: 14px;
  color: var(--afr-fg);
  border-bottom: 1px solid hsl(214 20% 92% / 0.8);
  vertical-align: middle;
}

.txn-table tbody tr:last-child td {
  border-bottom: none;
}

.txn-muted {
  color: var(--afr-muted-fg);
}

.txn-type {
  font-weight: 600;
  color: var(--afr-fg);
}

.txn-right {
  text-align: right;
}

.txn-debit {
  color: var(--afr-destructive);
  font-weight: 700;
}

.txn-credit {
  color: var(--afr-success);
  font-weight: 700;
}

.txn-balance {
  color: var(--afr-fg);
  font-weight: 700;
}

.txn-empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--afr-muted-fg);
  font-size: 14px;
  display: none;
}

.txn-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--afr-border);
  background: var(--afr-card);
  flex-wrap: wrap;
}

.txn-page-controls,
.txn-footer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.txn-page-btn,
.txn-page-slot-btn,
.txn-go-btn {
  height: 36px;
  min-width: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  color: var(--afr-fg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.txn-page-btn:hover,
.txn-page-slot-btn:hover,
.txn-go-btn:hover {
  background: var(--afr-muted);
}

.txn-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.txn-page-slot {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.txn-page-slot-btn {
  width: 36px;
  padding: 0;
  display: none;
}

.txn-page-slot-btn.txn-page-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--afr-primary);
  color: var(--afr-primary-fg);
  border-color: var(--afr-primary);
}

.txn-page-ellipsis {
  display: none;
  color: var(--afr-muted-fg);
  font-size: 14px;
  font-weight: 700;
}

.txn-field-label {
  color: var(--afr-muted-fg);
  font-size: 13px;
  font-weight: 500;
}

.txn-number-input,
.txn-select {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--afr-border);
  background: var(--afr-bg);
  color: var(--afr-fg);
  font-size: 13px;
  padding: 0 10px;
  outline: none;
}

.txn-number-input {
  width: 84px;
  text-align: center;
}

.txn-select {
  min-width: 76px;
}

.txn-mobile-list {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.txn-mobile-card {
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  border-radius: var(--afr-radius);
  box-shadow: var(--afr-shadow-card);
  padding: 16px;
}

.txn-mobile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.txn-mobile-type-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.txn-mobile-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.txn-mobile-icon.txn-mobile-debit-icon {
  background: hsl(0 72% 55% / 0.1);
  color: var(--afr-destructive);
}

.txn-mobile-icon.txn-mobile-credit-icon {
  background: hsl(152 60% 42% / 0.1);
  color: var(--afr-success);
}

.txn-mobile-type {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
}

.txn-mobile-ref {
  font-size: 12px;
  color: var(--afr-muted-fg);
  margin-top: 2px;
}

.txn-mobile-amount {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.txn-mobile-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.txn-mobile-empty {
  display: none;
  padding: 40px 18px;
  text-align: center;
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  background: var(--afr-card);
  color: var(--afr-muted-fg);
  box-shadow: var(--afr-shadow-card);
}

@media (max-width: 767px) {
  .txn-desktop-table {
    display: none;
  }

  .txn-mobile-list {
    display: flex;
  }
}

@media (max-width: 575px) {

  .txn-page-top,
  .txn-mobile-top,
  .txn-mobile-bottom,
  .txn-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .txn-page-controls,
  .txn-footer-controls {
    justify-content: center;
    width: 100%;
  }

  .txn-mobile-amount {
    text-align: left;
  }
}

/* *************
    Transactin pagfe sstyle end
    *************** */

/* *****************************
    Transaction wallet page style
    ******************************** */

.dw-shell {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dw-page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.dw-page-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(211 98% 54% / 0.1);
  color: var(--afr-primary);
  flex-shrink: 0;
}

.dw-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.dw-card {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  box-shadow: var(--afr-shadow-card);
  overflow: hidden;
}

.dw-card-body {
  padding: 20px;
}

.dw-balance-card {
  position: relative;
  border: none;
  color: white;
  background: linear-gradient(135deg, var(--afr-primary) 0%, hsl(225 90% 50%) 100%);
}

.dw-balance-card .dw-card-body {
  position: relative;
  z-index: 1;
}

.dw-balance-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.86;
}

.dw-balance-amount {
  font-size: 1.575rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 16px;
}

.dw-balance-subtitle {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.74;
}

.dw-balance-trend {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.92;
}

.dw-balance-orb,
.dw-balance-orb-secondary {
  position: absolute;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.08);
  pointer-events: none;
}

.dw-balance-orb {
  width: 96px;
  height: 96px;
  top: -24px;
  right: -24px;
}

.dw-balance-orb-secondary {
  width: 132px;
  height: 132px;
  right: -12px;
  bottom: -44px;
  background: hsl(0 0% 100% / 0.05);
}

.dw-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dw-stat-label {
  font-size: 11px;
  color: var(--afr-muted-fg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dw-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dw-stat-icon-success {
  background: hsl(152 60% 42% / 0.1);
  color: var(--afr-success);
}

.dw-stat-icon-danger {
  background: hsl(0 72% 55% / 0.1);
  color: var(--afr-destructive);
}

.dw-stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--afr-fg);
}

.dw-stat-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
}

.dw-stat-meta-positive {
  color: var(--afr-success);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.dw-stat-meta-muted {
  color: var(--afr-muted-fg);
}

.dw-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dw-breakdown-card .dw-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.dw-breakdown-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dw-breakdown-icon-primary {
  background: hsl(211 98% 54% / 0.1);
  color: var(--afr-primary);
}

.dw-breakdown-icon-warning {
  background: hsl(39 100% 50% / 0.12);
  color: hsl(39 100% 38%);
}

.dw-breakdown-icon-success {
  background: hsl(152 60% 42% / 0.1);
  color: var(--afr-success);
}

.dw-breakdown-label {
  font-size: 12px;
  color: var(--afr-muted-fg);
  margin-bottom: 4px;
}

.dw-breakdown-value {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--afr-fg);
}

.dw-pending-card {
  background: hsl(39 100% 50% / 0.06);
}

.dw-pending-card .dw-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dw-pending-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dw-pending-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(39 100% 50% / 0.14);
  color: hsl(39 100% 38%);
  flex-shrink: 0;
}

.dw-pending-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--afr-fg);
  margin-bottom: 0px;
}

.dw-pending-subtitle {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.dw-pending-value {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--afr-fg);
  white-space: nowrap;
}

.dw-table-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--afr-border);
}

.dw-table-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--afr-fg);
  margin: 0;
}

.dw-table-subtitle {
  font-size: 12px;
  color: var(--afr-muted-fg);
  margin-top: 4px;
}

.dw-table-wrap {
  overflow-x: auto;
}

.dw-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.dw-table thead th {
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--afr-muted-fg);
  background: hsl(210 15% 95% / 0.55);
  border-bottom: 1px solid var(--afr-border);
  text-align: left;
  white-space: nowrap;
}

.dw-table thead th.dw-right,
.dw-table tbody td.dw-right {
  text-align: right;
}

.dw-table tbody tr:hover {
  background: hsl(210 15% 95% / 0.45);
}

.dw-table tbody td {
  padding: 15px 16px;
  font-size: 14px;
  color: var(--afr-fg);
  border-bottom: 1px solid hsl(214 20% 92% / 0.8);
  vertical-align: middle;
}

.dw-table tbody tr:last-child td {
  border-bottom: none;
}

.dw-muted {
  color: var(--afr-muted-fg);
}

.dw-type {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dw-type-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dw-icon-positive {
  background: hsl(152 60% 42% / 0.1);
  color: var(--afr-success);
}

.dw-icon-negative {
  background: hsl(0 72% 55% / 0.1);
  color: var(--afr-destructive);
}

.dw-type-label {
  font-weight: 600;
  color: var(--afr-fg);
}

.dw-amount-positive {
  color: var(--afr-success);
  font-weight: 700;
}

.dw-amount-negative {
  color: var(--afr-destructive);
  font-weight: 700;
}

.dw-mobile-list {
  display: none;
  padding: 12px;
  flex-direction: column;
  gap: 10px;
}

.dw-mobile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: hsl(210 15% 95% / 0.35);
}

.dw-mobile-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dw-mobile-right {
  text-align: right;
  flex-shrink: 0;
}

.dw-mobile-type {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
  margin-bottom: 2px;
}

.dw-mobile-ref,
.dw-mobile-date {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.dw-mobile-amount {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

@media (max-width: 1199px) {
  .dw-top-grid {
    grid-template-columns: 1fr;
  }

  .dw-breakdown-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .dw-desktop-table {
    display: none;
  }

  .dw-mobile-list {
    display: flex;
  }

  .dw-balance-amount,
  .dw-stat-value,
  .dw-breakdown-value,
  .dw-pending-value {
    font-size: 26px;
  }
}

@media (max-width: 575px) {

  .dw-pending-card .dw-card-body,
  .dw-pending-left,
  .dw-mobile-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .dw-mobile-right {
    text-align: left;
  }
}

/* End */

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.fuelInputsBlock {
  margin-top: 20px;
}

/* *********************************
Credit facility pagfe style start
*********************************** */

.cf-shell {
  display: flex;
  flex-direction: column;
  gap: 15px;

}

.cf-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.cf-page-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cf-page-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(211 98% 54% / 0.1);
  color: var(--afr-primary);
  flex-shrink: 0;
}

/* Top Cards */
.cf-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.cf-card {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  box-shadow: var(--afr-shadow-card);
  overflow: hidden;
}

.cf-card-body {
  padding: 20px;
}

.cf-limit-card {
  position: relative;
  border: none;
  color: white;
  background: linear-gradient(135deg, var(--afr-primary) 0%, hsl(225 90% 50%) 100%);
}

.cf-limit-card .cf-card-body {
  position: relative;
  z-index: 1;
}

.cf-limit-orb {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cf-limit-orb2 {
  position: absolute;
  bottom: -32px;
  right: -16px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.cf-limit-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
}

.cf-limit-amount {
  font-size: 1.575rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 12px;
}

.cf-limit-sub {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 12px;
}

.cf-limit-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.9;
  margin-top: 8px;
}

.cf-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cf-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--afr-muted-fg);
  font-weight: 500;
}

.cf-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-stat-icon-warning {
  background: hsl(38 92% 50% / 0.1);
  color: var(--afr-warning);
}

.cf-stat-icon-success {
  background: hsl(152 60% 42% / 0.1);
  color: var(--afr-success);
}

.cf-stat-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--afr-fg);
}

.cf-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--afr-muted);
  border-radius: 999px;
  margin-top: 12px;
  overflow: hidden;
}

.cf-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--afr-warning);
  transition: width 0.4s ease;
}

.cf-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.cf-stat-meta {
  font-size: 11px;
  color: var(--afr-muted-fg);
}

.cf-stat-trend {
  font-size: 11px;
  color: var(--afr-warning);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
}

.cf-stat-next {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--afr-muted-fg);
  margin-top: 12px;
}

/* Quick Stats */
.cf-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cf-quick-card {
  display: flex;
  gap: 12px;
}

.cf-quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cf-quick-icon-primary {
  background: hsl(211 98% 54% / 0.1);
  color: var(--afr-primary);
}

.cf-quick-icon-success {
  background: hsl(152 60% 42% / 0.1);
  color: var(--afr-success);
}

.cf-quick-icon-danger {
  background: hsl(0 72% 55% / 0.1);
  color: var(--afr-destructive);
}

.cf-quick-label {
  font-size: 12px;
  color: var(--afr-muted-fg);
  margin-bottom: 0px;
}

.cf-quick-value {
  font-size: 18px;
  font-weight: 500;
  color: var(--afr-fg);
  margin-bottom: 0px;
}

/* Repayment Banner */
.cf-repayment-banner {
  background: hsl(38 92% 50% / 0.05);
}

.cf-repayment-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.cf-repayment-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cf-repayment-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: hsl(38 92% 50% / 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afr-warning);
  flex-shrink: 0;
}

.cf-repayment-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--afr-fg);
}

.cf-repayment-sub {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.cf-repayment-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--afr-fg);
}

/* Table sections */
.cf-section-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--afr-border);
}

.cf-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cf-section-sub {
  font-size: 11px;
  color: var(--afr-muted-fg);
  margin-top: 2px;
}

/* Desktop table */
.cf-table-wrap {
  overflow-x: auto;
}

.cf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cf-table thead th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 500;
  color: var(--afr-muted-fg);
  font-size: 12px;
  border-bottom: 1px solid var(--afr-border);
  background: hsl(210 15% 95% / 0.4);
}

.cf-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--afr-border);
  color: var(--afr-fg);
}

.cf-table tbody tr:last-child td {
  border-bottom: none;
}

.cf-table tbody tr:hover {
  background: hsl(210 15% 95% / 0.3);
}

.cf-desktop-table {
  display: block;
}

.cf-mobile-list {
  display: none;
}

/* Type cell with icon */
.cf-type-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cf-type-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cf-type-debit {
  background: hsl(0 72% 55% / 0.1);
  color: var(--afr-destructive);
}

.cf-type-credit {
  background: hsl(152 60% 42% / 0.1);
  color: var(--afr-success);
}

.cf-amount-debit {
  font-weight: 600;
  color: var(--afr-destructive);
}

.cf-amount-credit {
  font-weight: 600;
  color: var(--afr-success);
}

/* Mobile cards */
.cf-mobile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.15s;
}

.cf-mobile-item:hover {
  background: hsl(210 15% 95% / 0.5);
}

.cf-mobile-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cf-mobile-item-type {
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-fg);
}

.cf-mobile-item-ref {
  font-size: 11px;
  color: var(--afr-muted-fg);
}

.cf-mobile-item-amount {
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.cf-mobile-item-date {
  font-size: 10px;
  color: var(--afr-muted-fg);
  text-align: right;
}

/* Status badges */
.cf-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
}

.cf-badge-upcoming {
  background: hsl(38 90% 95%);
  color: hsl(38 80% 35%);
}

.cf-badge-paid {
  background: hsl(152 60% 95%);
  color: hsl(152 60% 30%);
}

.cf-days-left {
  font-size: 11px;
  color: var(--afr-muted-fg);
}

/* Pagination */
.cf-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--afr-border);
  flex-wrap: wrap;
  gap: 8px;
}

.cf-pagination-info {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.cf-pagination-btns {
  display: flex;
  gap: 4px;
}

.cf-pagination-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  font-size: 12px;
  cursor: pointer;
  color: var(--afr-fg);
}

.cf-pagination-btn:hover {
  background: var(--afr-muted);
}

.cf-pagination-btn.cf-page-active {
  background: var(--afr-primary);
  color: white;
  border-color: var(--afr-primary);
}

.cf-pagination-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Modal */
.cf-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: hsla(215 25% 15% / 0.4);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.cf-modal-overlay.cf-modal-open {
  display: flex;
}

.cf-modal {
  background: var(--afr-card);
  border-radius: var(--afr-radius);
  width: 100%;
  max-width: 670px;
  max-height: 85vh;
  overflow-y: auto;
  margin: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: cfModalIn 0.2s ease-out;
}

@keyframes cfModalIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cf-modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--afr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cf-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--afr-fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cf-modal-desc {
  font-size: 12px;
  color: var(--afr-muted-fg);
  margin-top: 2px;
}

.cf-modal-close {
  padding: 6px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--afr-muted-fg);
}

.cf-modal-close:hover {
  background: var(--afr-muted);
}

.cf-modal-body {
  padding: 20px 24px;
}

/* Steps */
.cf-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.cf-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s;
}

.cf-step-active {
  background: var(--afr-primary);
  color: white;
}

.cf-step-inactive {
  background: var(--afr-muted);
  color: var(--afr-muted-fg);
}

.cf-step-line {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  transition: background 0.2s;
}

.cf-step-line-done {
  background: var(--afr-primary);
}

.cf-step-line-pending {
  background: var(--afr-muted);
}

.cf-step-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--afr-muted-fg);
  margin-top: -4px;
  margin-bottom: 12px;
}

/* Form */
.cf-form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--afr-fg);
  margin-bottom: 12px;
}

.cf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cf-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.cf-form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--afr-fg);
}

.cf-form-input,
.cf-form-select,
.cf-form-textarea {
  padding: 8px 12px;
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--afr-fg);
  background: var(--afr-card);
  outline: none;
  font-family: inherit;
}

.cf-form-input:focus,
.cf-form-select:focus,
.cf-form-textarea:focus {
  border-color: var(--afr-primary);
  box-shadow: 0 0 0 2px hsl(211 98% 54% / 0.15);
}

.cf-form-textarea {
  resize: vertical;
  min-height: 56px;
}

.cf-form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.cf-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s;
}

.cf-btn-primary {
  background: var(--afr-primary);
  color: white;
}

.cf-btn-primary:hover {
  opacity: 0.9;
}

.cf-btn-outline {
  background: transparent;
  border: 1px solid var(--afr-border);
  color: var(--afr-fg);
}

.cf-btn-outline:hover {
  background: var(--afr-muted);
}

/* Doc upload */
.cf-doc-item {
  padding: 12px;
  border: 1px dashed var(--afr-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 10px;
  position: relative;
}

.cf-doc-item:hover {
  border-color: hsl(211 98% 54% / 0.5);
}

.cf-doc-item.cf-doc-dragover {
  border-color: var(--afr-primary);
  background: hsl(211 98% 54% / 0.05);
}

.cf-doc-item.cf-doc-has-file {
  border-style: solid;
  border-color: var(--afr-success);
  background: hsl(152 60% 42% / 0.04);
}

.cf-doc-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.cf-doc-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--afr-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afr-muted-fg);
  transition: all 0.15s;
  flex-shrink: 0;
}

.cf-doc-item:hover .cf-doc-icon {
  background: hsl(211 98% 54% / 0.1);
  color: var(--afr-primary);
}

.cf-doc-item.cf-doc-has-file .cf-doc-icon {
  background: hsl(152 60% 42% / 0.1);
  color: var(--afr-success);
}

.cf-doc-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-fg);
}

.cf-doc-hint {
  font-size: 11px;
  color: var(--afr-muted-fg);
}

.cf-doc-file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.cf-doc-filename {
  font-size: 11px;
  color: var(--afr-success);
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-doc-filesize {
  font-size: 10px;
  color: var(--afr-muted-fg);
}

.cf-doc-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cf-doc-remove {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid hsl(0 72% 55% / 0.3);
  background: hsl(0 72% 55% / 0.05);
  color: var(--afr-destructive);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.cf-doc-remove:hover {
  background: hsl(0 72% 55% / 0.1);
}

.cf-doc-input {
  display: none;
}

@media (max-width: 991px) {
  .cf-top-grid {
    grid-template-columns: 1fr;
  }

  .cf-quick-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .cf-desktop-table {
    display: none;
  }

  .cf-mobile-list {
    display: block;
    padding: 8px 12px;
  }

  .cf-form-grid {
    grid-template-columns: 1fr;
  }

  .cf-page-title {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* End */


/* **********************************
Reports page style start
*************************************** */

/* ===== RPT PREFIX ===== */
.rpt-page-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.rpt-page-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(211 98% 54%/0.1);
  color: var(--afr-primary);
  flex-shrink: 0;
}

.rpt-page-title h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--afr-fg);
}

.rpt-page-title p {
  font-size: 13px;
  color: var(--afr-muted-fg);
  margin-top: 2px;
}

/* Report Cards Grid */
.rpt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.rpt-card {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.rpt-card:hover {
  border-color: hsl(211 98% 54%/0.3);
  box-shadow: 0 2px 8px hsl(211 98% 54%/0.08);
}

.rpt-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: hsl(211 98% 54%/0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afr-primary);
  flex-shrink: 0;
}

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

.rpt-card-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--afr-fg);
  margin-bottom: 0px;
}

.rpt-card-body p {
  font-size: 12px;
  color: var(--afr-muted-fg);
  margin-top: 2px;
  margin-bottom: 0px;
}

.rpt-card-arrow {
  color: var(--afr-muted-fg);
  transition: color .2s;
  flex-shrink: 0;
}

.rpt-card:hover .rpt-card-arrow {
  color: var(--afr-primary);
}

/* Recent Downloads */
.rpt-recent {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  padding: 20px;
}

.rpt-recent h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
  margin-bottom: 14px;
}

.rpt-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .15s;
}

.rpt-recent-item:hover {
  background: var(--afr-muted);
}

.rpt-recent-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rpt-recent-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--afr-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afr-muted-fg);
}

.rpt-recent-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-fg);
}

.rpt-recent-meta {
  font-size: 11px;
  color: var(--afr-muted-fg);
  margin-top: 2px;
}

.rpt-dl-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--afr-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.rpt-dl-btn:hover {
  background: hsl(211 98% 54%/0.1);
}

@media(max-width:768px) {
  .rpt-grid {
    grid-template-columns: 1fr;
  }
}

/* End */


/* Report detail page style start */
.rpt-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.rpt-detail-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rpt-back-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--afr-fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.rpt-back-btn:hover {
  background: var(--afr-muted);
}

.rpt-page-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(211 98% 54%/0.1);
  color: var(--afr-primary);
  flex-shrink: 0;
}

.rpt-page-title h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--afr-fg);
  margin-bottom: 0px;
}

.rpt-page-title p {
  font-size: 13px;
  color: var(--afr-muted-fg);
  margin-top: 2px;
  margin-bottom: 0px;
}

.rpt-export-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: none;
  border-radius: 10px;
  background: var(--afr-primary);
  color: var(--afr-primary-fg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}

.rpt-export-btn:hover {
  opacity: .9;
}

.rpt-filters {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rpt-filters label {
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-fg);
}

.rpt-date-input {
  padding: 7px 12px;
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--afr-fg);
  background: var(--afr-card);
  outline: none;
  transition: border-color .15s;
}

.rpt-date-input:focus {
  border-color: var(--afr-primary);
}

.rpt-reset-btn {
  padding: 6px 14px;
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--afr-fg);
  background: var(--afr-card);
  cursor: pointer;
  transition: background .15s;
}

.rpt-reset-btn:hover {
  background: var(--afr-muted);
}

.rpt-table-wrap {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  overflow: hidden;
}

.rpt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.rpt-table thead {
  background: var(--afr-muted);
}

.rpt-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--afr-muted-fg);
  font-size: 12px;
  white-space: nowrap;
}

.rpt-table td {
  padding: 10px 14px;
  border-top: 1px solid var(--afr-border);
  color: var(--afr-fg);
  white-space: nowrap;
}

.rpt-table tbody tr:hover {
  background: hsl(211 98% 54%/0.02);
}

.rpt-status {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.rpt-status-delivered {
  background: hsl(152 60% 42%/0.1);
  color: hsl(152, 60%, 36%);
}

.rpt-status-pending {
  background: hsl(38 92% 50%/0.1);
  color: hsl(38, 80%, 40%);
}

.rpt-status-transit {
  background: hsl(211 98% 54%/0.1);
  color: var(--afr-primary);
}

.rpt-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--afr-border);
}

.rpt-pagination-info {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.rpt-pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rpt-page-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  background: var(--afr-card);
  color: var(--afr-fg);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}

.rpt-page-btn:hover {
  background: var(--afr-muted);
}

.rpt-page-btn.active {
  background: var(--afr-primary);
  color: var(--afr-primary-fg);
  border-color: var(--afr-primary);
}

.rpt-page-btn:disabled {
  opacity: .4;
  cursor: default;
}

.rpt-per-page {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rpt-per-page select {
  padding: 5px 8px;
  border: 1px solid var(--afr-border);
  border-radius: 6px;
  font-size: 12px;
  background: var(--afr-card);
  color: var(--afr-fg);
}

@media(max-width:768px) {
  .rpt-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rpt-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .rpt-table-wrap {
    overflow-x: auto;
  }

  .rpt-pagination {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Customer profilestyle start */

/* ===== PROFILE PAGE STYLES (prf- prefix) ===== */
.prf-layout {
  display: flex;
  gap: 24px;
}

/* Profile Sidebar */
.prf-sidebar {
  width: 220px;
  flex-shrink: 0;
}

.prf-sidebar-card {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  box-shadow: var(--afr-shadow-card);
  padding: 8px;
  position: sticky;
  top: 24px;
}

.prf-nav-group-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--afr-muted-fg);
  padding: 8px 12px 4px;
}

.prf-nav-sep {
  height: 1px;
  background: var(--afr-border);
  margin: 6px 0;
}

.prf-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-sidebar-fg);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}

.prf-nav-btn:hover {
  background: var(--afr-muted);
  color: var(--afr-fg);
}

.prf-nav-btn.prf-active {
  background: hsl(211, 98%, 54%, 0.1);
  color: var(--afr-primary);
}

.prf-nav-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Profile Content */
.prf-content {
  flex: 1;
  min-width: 0;
}

.prf-card {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  box-shadow: var(--afr-shadow-card);
  padding: 20px;
  margin-bottom: 16px;
}

.prf-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.prf-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
}

.prf-card-subtitle {
  font-size: 11px;
  color: var(--afr-muted-fg);
  margin-top: 2px;
}

.prf-btn-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  font-size: 12px;
  font-weight: 500;
  color: var(--afr-fg);
  cursor: pointer;
  transition: background 0.15s;
}

.prf-btn-edit:hover {
  background: var(--afr-muted);
}

.prf-btn-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: var(--afr-primary);
  color: var(--afr-primary-fg);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.prf-btn-save:hover {
  opacity: 0.9;
}

/* Company avatar block */
.prf-avatar-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.prf-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: hsl(211, 98%, 54%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afr-primary);
  position: relative;
  flex-shrink: 0;
}

.prf-avatar-cam {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--afr-primary);
  color: var(--afr-primary-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--afr-card);
  cursor: pointer;
}

.prf-avatar-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--afr-fg);
}

.prf-avatar-meta {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

/* Info rows (view mode) */
.prf-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.prf-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid hsl(214, 20%, 92%, 0.5);
}

.prf-info-row:last-child {
  border-bottom: none;
}

.prf-info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--afr-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afr-muted-fg);
  flex-shrink: 0;
  margin-top: 2px;
}

.prf-info-icon svg {
  width: 14px;
  height: 14px;
}

.prf-info-label {
  font-size: 11px;
  color: var(--afr-muted-fg);
}

.prf-info-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-fg);
  margin-top: 2px;
}

/* Edit form */
.prf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.prf-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.prf-form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--afr-fg);
}

.prf-form-input,
.prf-form-select {
  padding: 8px 12px;
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--afr-fg);
  background: var(--afr-card);
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

.prf-form-input:focus,
.prf-form-select:focus {
  border-color: var(--afr-primary);
  box-shadow: 0 0 0 3px hsl(211, 98%, 54%, 0.1);
}

.prf-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.prf-separator {
  height: 1px;
  background: var(--afr-border);
  margin: 16px 0;
}

/* Director cards */
.prf-director-card {
  border: 1px solid var(--afr-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.prf-director-card:last-child {
  margin-bottom: 0;
}

.prf-director-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.prf-director-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: hsl(211, 98%, 54%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afr-primary);
  flex-shrink: 0;
}

.prf-director-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
}

.prf-director-role {
  font-size: 11px;
  color: var(--afr-muted-fg);
}

.prf-director-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  padding-left: 52px;
}

.prf-director-detail {
  padding: 8px 0;
}

.prf-director-detail-label {
  font-size: 11px;
  color: var(--afr-muted-fg);
}

.prf-director-detail-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-fg);
  margin-top: 1px;
}

/* Document list */
.prf-doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--afr-border);
}

.prf-doc-item:last-child {
  border-bottom: none;
}

.prf-doc-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prf-doc-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: hsl(211, 98%, 54%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afr-primary);
}

.prf-doc-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-fg);
}

.prf-doc-date {
  font-size: 11px;
  color: var(--afr-muted-fg);
}

.prf-doc-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
}

.prf-doc-badge-verified {
  background: hsl(152, 60%, 95%);
  color: hsl(152, 60%, 30%);
}

.prf-doc-badge-uploaded {
  background: hsl(38, 90%, 95%);
  color: hsl(38, 80%, 35%);
}

/* Notification toggle */
.prf-notif-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--afr-border);
}

.prf-notif-item:last-child {
  border-bottom: none;
}

.prf-notif-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-fg);
}

.prf-notif-desc {
  font-size: 11px;
  color: var(--afr-muted-fg);
}

.prf-notif-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--afr-muted-fg);
  margin-bottom: 4px;
  margin-top: 4px;
}

/* Toggle switch */
.prf-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.prf-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.prf-toggle-slider {
  position: absolute;
  inset: 0;
  background: hsl(210, 15%, 85%);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.prf-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.prf-toggle input:checked+.prf-toggle-slider {
  background: var(--afr-primary);
}

.prf-toggle input:checked+.prf-toggle-slider::before {
  transform: translateX(18px);
}

/* Security */
.prf-password-form {
  max-width: 400px;
}

.prf-2fa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prf-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  font-size: 12px;
  font-weight: 500;
  color: var(--afr-fg);
  cursor: pointer;
  transition: background 0.15s;
}

.prf-btn-outline:hover {
  background: var(--afr-muted);
}

/* Tab panels */
.prf-tab-panel {
  display: none;
}

.prf-tab-panel.prf-tab-active {
  display: block;
}

/* Toast */
.prf-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--afr-fg);
  color: var(--afr-bg);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: prf-toast-in 0.3s ease-out;
  display: none;
}

.prf-toast.prf-toast-show {
  display: block;
}

@keyframes prf-toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 767px) {
  .prf-layout {
    flex-direction: column;
  }

  .prf-sidebar {
    width: 100%;
  }

  .prf-sidebar-card {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 6px;
  }

  .prf-sidebar-card .prf-nav-group-label,
  .prf-sidebar-card .prf-nav-sep {
    display: none;
  }

  .prf-nav-btn {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 12px;
  }

  .prf-info-grid,
  .prf-form-grid,
  .prf-director-details {
    grid-template-columns: 1fr;
  }

  .prf-director-details {
    padding-left: 0;
  }
}

/* customer profile style end */


/* ===== NOTIFICATIONS PAGE (ntf- prefix) ===== */
.ntf-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--afr-muted);
  border-radius: 10px;
  padding: 3px;
}

.ntf-tab {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--afr-muted-fg);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ntf-tab:hover {
  color: var(--afr-fg);
}

.ntf-tab.ntf-tab-active {
  background: var(--afr-card);
  color: var(--afr-fg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ntf-tab-count {
  font-size: 10px;
  font-weight: 600;
  background: var(--afr-primary);
  color: var(--afr-primary-fg);
  padding: 1px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

.ntf-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ntf-btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  font-size: 12px;
  font-weight: 500;
  color: var(--afr-fg);
  cursor: pointer;
  transition: background 0.15s;
}

.ntf-btn-text:hover {
  background: var(--afr-muted);
}

.ntf-btn-text svg {
  width: 14px;
  height: 14px;
  color: var(--afr-muted-fg);
}

.ntf-card {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  box-shadow: var(--afr-shadow-card);
  overflow: hidden;
}

/* Notification item */
.ntf-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--afr-border);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

.ntf-item:last-child {
  border-bottom: none;
}

.ntf-item:hover {
  background: hsl(210, 15%, 95%, 0.4);
}

.ntf-item.ntf-unread {
  background: hsl(211, 98%, 54%, 0.03);
}

.ntf-item.ntf-unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--afr-primary);
  border-radius: 0 3px 3px 0;
}

.ntf-item.ntf-unread:hover {
  background: hsl(211, 98%, 54%, 0.06);
}

.ntf-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ntf-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.ntf-icon-order {
  background: hsl(211, 90%, 95%);
  color: hsl(211, 90%, 45%);
}

.ntf-icon-payment {
  background: hsl(152, 60%, 95%);
  color: hsl(152, 60%, 35%);
}

.ntf-icon-credit {
  background: hsl(270, 60%, 95%);
  color: hsl(270, 60%, 40%);
}

.ntf-icon-system {
  background: hsl(210, 15%, 93%);
  color: hsl(215, 20%, 45%);
}

.ntf-icon-promo {
  background: hsl(38, 90%, 95%);
  color: hsl(38, 80%, 40%);
}

.ntf-icon-alert {
  background: hsl(0, 72%, 95%);
  color: hsl(0, 72%, 45%);
}

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

.ntf-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-fg);
  line-height: 1.4;
}

.ntf-item.ntf-unread .ntf-title {
  font-weight: 600;
}

.ntf-desc {
  font-size: 12px;
  color: var(--afr-muted-fg);
  margin-top: 2px;
  line-height: 1.4;
}

.ntf-time {
  font-size: 10px;
  color: var(--afr-muted-fg);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ntf-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.ntf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--afr-primary);
  flex-shrink: 0;
}

.ntf-action-btn {
  padding: 4px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--afr-muted-fg);
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}

.ntf-item:hover .ntf-action-btn {
  opacity: 1;
}

.ntf-action-btn:hover {
  background: var(--afr-muted);
  color: var(--afr-fg);
}

.ntf-empty {
  padding: 60px 20px;
  text-align: center;
}

.ntf-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--afr-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--afr-muted-fg);
}

.ntf-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
  margin-bottom: 4px;
}

.ntf-empty-desc {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

/* Pagination */
.ntf-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--afr-border);
  flex-wrap: wrap;
  gap: 12px;
}

.ntf-page-info {
  font-size: 12px;
  color: var(--afr-muted-fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ntf-page-info select {
  padding: 4px 8px;
  border: 1px solid var(--afr-border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--afr-fg);
  background: var(--afr-card);
  outline: none;
  cursor: pointer;
}

.ntf-page-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ntf-page-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--afr-fg);
  transition: all 0.15s;
}

.ntf-page-btn:hover {
  background: var(--afr-muted);
}

.ntf-page-btn.ntf-page-active {
  background: var(--afr-primary);
  color: var(--afr-primary-fg);
  border-color: var(--afr-primary);
}

.ntf-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ntf-page-goto {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.ntf-page-goto input {
  width: 48px;
  padding: 4px 8px;
  border: 1px solid var(--afr-border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--afr-fg);
  background: var(--afr-card);
  outline: none;
  text-align: center;
}

/* Toast */
.ntf-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--afr-fg);
  color: var(--afr-bg);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  animation: ntf-toast-in 0.3s ease-out;
}

.ntf-toast.ntf-toast-show {
  display: block;
}

@keyframes ntf-toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .ntf-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .ntf-tabs {
    overflow-x: auto;
  }

  .ntf-item {
    padding: 12px 14px;
    gap: 10px;
  }

  .ntf-pagination {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== MESSAGE DROPDOWN ===== */
.afr-msg-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: -50px;
  width: 380px;
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 999;
  animation: afrDropFade 0.15s ease;
  overflow: hidden;
}

.afr-msg-dropdown-menu.afr-dropdown-open {
  display: block;
}

.afr-msg-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--afr-border);
}

.afr-msg-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--afr-fg);
}

.afr-msg-mark-read {
  background: transparent;
  border: none;
  color: var(--afr-theme-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.afr-msg-mark-read:hover {
  text-decoration: underline;
}

.afr-msg-list {
  max-height: 400px;
  overflow-y: auto;
}

.afr-msg-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--afr-border);
  transition: background 0.15s;
  align-items: center;
}

.afr-msg-item:last-child {
  border-bottom: none;
}

.afr-msg-item:hover {
  background: var(--afr-muted);
}

.afr-msg-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.afr-msg-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.afr-msg-status-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: var(--afr-destructive);
  border: 2px solid var(--afr-card);
  border-radius: 50%;
}

.afr-msg-content {
  flex: 1;
  min-width: 0;
}

.afr-msg-text {
  font-size: 14.5px;
  color: var(--afr-fg);
  line-height: 1.2;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.afr-msg-meta {
  font-size: 13px;
  color: var(--afr-muted-fg);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.afr-msg-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.afr-msg-dot-sep {
  color: var(--afr-muted-fg);
}

.afr-msg-unread-dot {
  width: 8px;
  height: 8px;
  background-color: var(--afr-theme-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.afr-msg-dropdown-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--afr-border);
  text-align: center;
  background: var(--afr-card);
}

.afr-msg-view-all {
  color: var(--afr-theme-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.afr-msg-view-all:hover {
  text-decoration: underline;
}

/* ===== NOTIFICATION DROPDOWN ===== */
.afr-notif-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: -50px;
  width: 380px;
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 999;
  animation: afrDropFade 0.15s ease;
  overflow: hidden;
}

.afr-notif-dropdown-menu.afr-dropdown-open {
  display: block;
}

.afr-notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--afr-border);
}

.afr-notif-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--afr-fg);
}

.afr-notif-mark-read {
  background: transparent;
  border: none;
  color: var(--afr-theme-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.afr-notif-mark-read:hover {
  text-decoration: underline;
}

.afr-notif-list {
  max-height: 400px;
  overflow-y: auto;
}

.afr-notif-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--afr-border);
  transition: background 0.15s;
}

.afr-notif-item:last-child {
  border-bottom: none;
}

.afr-notif-item:hover {
  background: var(--afr-muted);
}

.afr-notif-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.afr-notif-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.afr-notif-status-dot {
  position: absolute;
  top: 0;
  right: -2px;
  width: 10px;
  height: 10px;
  background: var(--afr-destructive);
  border: 2px solid var(--afr-card);
  border-radius: 50%;
}

.afr-notif-content {
  flex: 1;
}

.afr-notif-text {
  font-size: 14px;
  color: var(--afr-fg);
  line-height: 1.4;
  margin-bottom: 4px;
}

.afr-notif-meta {
  font-size: 12px;
  color: var(--afr-muted-fg);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.afr-notif-dot-sep {
  font-size: 12px;
  line-height: 1;
}

.afr-notif-actions {
  display: flex;
  gap: 8px;
}

.afr-notif-btn-deny {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  color: var(--afr-fg);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.afr-notif-btn-approve {
  background: var(--afr-theme-primary);
  border: 1px solid var(--afr-theme-primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.afr-notif-dropdown-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--afr-border);
  text-align: center;
  background: var(--afr-card);
}

.afr-notif-view-all {
  color: var(--afr-muted-fg);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.afr-notif-view-all:hover {
  color: var(--afr-fg);
}

/* ===== PROFILE DROPDOWN ===== */
.afr-profile-dropdown {
  position: relative;
}

.afr-profile-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 999;
  padding: 6px;
  animation: afrDropFade 0.15s ease;
}

.afr-profile-dropdown-menu.afr-dropdown-open {
  display: block;
}

@keyframes afrDropFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.afr-profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 12px 8px;
}

.afr-profile-dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: hsl(211, 98%, 54%, 0.1);
  color: var(--afr-theme-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.afr-profile-dropdown-user-name {
  font-weight: 500;
  color: var(--afr-theme-primary);
  font-size: 14px;
  line-height: 1.2;
}

.afr-profile-dropdown-user-email {
  color: var(--afr-muted-fg);
  font-size: 12px;
  margin-top: 2px;
}

.afr-profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-fg);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s;
  cursor: pointer;
}

.afr-profile-dropdown-item:hover {
  background: var(--afr-muted);
  color: var(--afr-fg);
  text-decoration: none;
}

.afr-profile-dropdown-item svg {
  color: var(--afr-muted-fg);
  flex-shrink: 0;
  width: 16px;
}

.afr-profile-dropdown-logout {
  color: var(--afr-destructive);
}

.afr-profile-dropdown-logout svg {
  color: var(--afr-destructive);
}

.afr-profile-dropdown-logout:hover {
  background: hsl(0, 72%, 97%);
  color: var(--afr-destructive);
}

.afr-profile-dropdown-logout:hover svg {
  color: var(--afr-destructive);
}

.afr-profile-dropdown-divider {
  height: 1px;
  background: var(--afr-border);
  margin: 4px 0;
}

/* ===== SIDEBAR FOOTER DROPDOWN ===== */
.afr-sidebar-footer-dropdown {
  position: relative;
}

.afr-sidebar-dropdown-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 200px;
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 999;
  padding: 6px;
  animation: afrDropFadeUp 0.15s ease;
}

.afr-sidebar-dropdown-menu.afr-dropdown-open {
  display: block;
}

@keyframes afrDropFadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.afr-sidebar-user[onclick] {
  cursor: pointer;
}

.afr-sidebar-footer-dropdown .afr-sidebar-user svg.afr-chevron-open {
  transform: rotate(180deg);
}

/* Search Dropdown */
.afr-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 260px;
  max-height: 340px;
  overflow-y: auto;
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 999;
  animation: afrDropFade 0.15s ease;
}

.afr-search-dropdown.afr-search-open {
  display: block;
}

.afr-search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--afr-fg);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  transition: background 0.15s;
}

.afr-search-dropdown-item:hover,
.afr-search-dropdown-item.afr-search-active {
  background: var(--afr-sidebar-accent);
  color: var(--afr-sidebar-accent-fg);
}

.afr-search-dropdown-item svg {
  flex-shrink: 0;
  color: var(--afr-muted-fg);
}

.afr-search-dropdown-item:hover svg {
  color: var(--afr-sidebar-accent-fg);
}

.afr-search-dropdown-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--afr-muted-fg);
}

.afr-search-dropdown-group {
  padding: 6px 14px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--afr-muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* end */

.afr-sidebarmobilelogo img {
  width: 100px;
}

.afr-header-mobile-logo img {
  width: 90px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .adt-table-wrap {
    display: none;
  }

  .adt-mobile-list {
    display: flex;
  }

  .adt-footer {
    justify-content: center;
  }

  .adt-showing {
    width: 100%;
    text-align: center;
  }

  .adt-loading-overlay {
    display: none !important;
  }
}

/* ===== MOBILE LOADING SKELETON ===== */
.adt-mobile-loading {
  display: none;
  padding: 12px 16px;
  flex-direction: column;
  gap: 12px;
}

.adt-mobile-loading.adt-visible {
  display: flex;
}

.adt-skeleton-card {
  background: var(--afr-card, #fff);
  border: 1px solid var(--afr-border, #e5e7eb);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adt-skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, hsl(210, 15%, 93%) 25%, hsl(210, 15%, 97%) 50%, hsl(210, 15%, 93%) 75%);
  background-size: 200% 100%;
  animation: adtShimmer 1.5s ease infinite;
}

.adt-sk-w60 {
  width: 60%;
}

.adt-sk-w80 {
  width: 80%;
}

.adt-sk-w40 {
  width: 40%;
}

@keyframes adtShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ===== LOADING OVERLAY ===== */
.adt-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 50;
  border-radius: 12px;
  backdrop-filter: blur(2px);
}

.adt-loading-overlay.adt-visible {
  display: flex;
}

.adt-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid hsl(210, 15%, 90%);
  border-top-color: hsl(211, 98%, 54%);
  border-radius: 50%;
  animation: adtSpin 0.7s linear infinite;
}

@keyframes adtSpin {
  to {
    transform: rotate(360deg);
  }
}

.adt-loading-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-muted-fg, #9ca3af);
}

.orderlist_items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== NOTIFICATIONS PAGE STYLES ===== */
.notif-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.notif-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.notif-tabs {
  display: flex;
  gap: 4px;
  background: var(--afr-muted);
  border-radius: 10px;
  padding: 4px;
}

.notif-tab-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--afr-muted-fg);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notif-tab-btn.active {
  background: var(--afr-card);
  color: var(--afr-fg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.notif-tab-btn:hover:not(.active) {
  color: var(--afr-fg);
}

.notif-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.notif-tab-count-primary {
  background: var(--afr-primary);
  color: var(--afr-primary-fg);
}

.notif-tab-count-muted {
  background: hsl(210, 15%, 85%);
  color: var(--afr-muted-fg);
}

.notif-action-btns {
  display: flex;
  gap: 8px;
}

.notif-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  color: var(--afr-fg);
  cursor: pointer;
  transition: all 0.15s;
}

.notif-action-btn:hover {
  background: var(--afr-muted);
}

.notif-action-btn svg {
  color: var(--afr-muted-fg);
}

.notif-list {
  display: flex;
  flex-direction: column;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--afr-border);
  border-left: 3px solid transparent;
  transition: background 0.15s;
  cursor: pointer;
  position: relative;
  background: var(--afr-card);
}

.notif-item:first-child {
  border-radius: var(--afr-radius) var(--afr-radius) 0 0;
}

.notif-item:last-child {
  border-bottom: none;
  border-radius: 0 0 var(--afr-radius) var(--afr-radius);
}

.notif-item:first-child:last-child {
  border-radius: var(--afr-radius);
}

.notif-item:hover {
  background: hsl(220, 20%, 97%);
}

.notif-item-unread {
  border-left-color: var(--afr-primary);
  background: hsl(220, 60%, 98%);
}

.notif-item-unread:hover {
  background: hsl(220, 50%, 96%);
}

.notif-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon-order {
  background: hsl(220, 80%, 95%);
  color: hsl(220, 80%, 55%);
}

.notif-icon-payment {
  background: hsl(152, 60%, 92%);
  color: hsl(152, 60%, 38%);
}

.notif-icon-delivery {
  background: hsl(220, 80%, 95%);
  color: hsl(220, 80%, 55%);
}

.notif-icon-warning {
  background: hsl(15, 90%, 93%);
  color: hsl(15, 90%, 50%);
}

.notif-icon-settlement {
  background: hsl(260, 60%, 93%);
  color: hsl(260, 60%, 50%);
}

.notif-icon-system {
  background: hsl(210, 20%, 93%);
  color: hsl(210, 20%, 45%);
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
  margin-bottom: 4px;
}

.notif-desc {
  font-size: 13px;
  color: var(--afr-muted-fg);
  line-height: 1.5;
  margin-bottom: 6px;
}

.notif-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: hsl(210, 10%, 60%);
}

.notif-time svg {
  flex-shrink: 0;
}

.notif-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.notif-unread-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: hsl(220, 80%, 55%);
  flex-shrink: 0;
  margin-top: 4px;
}

.notif-hover-actions {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.notif-item:hover .notif-hover-actions {
  display: flex;
}

.notif-hover-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  color: var(--afr-muted-fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.notif-hover-btn:hover {
  background: var(--afr-muted);
  color: var(--afr-fg);
}

.notif-hover-btn-danger:hover {
  background: hsl(0, 72%, 95%);
  color: hsl(0, 72%, 50%);
  border-color: hsl(0, 72%, 85%);
}

.notif-list-wrap {
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  box-shadow: var(--afr-shadow-card);
  overflow: hidden;
}

.notif-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--afr-card);
  border-radius: var(--afr-radius);
  border: 1px solid var(--afr-border);
}

.notif-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--afr-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--afr-muted-fg);
}

.notif-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--afr-fg);
  margin-bottom: 4px;
}

.notif-empty-desc {
  font-size: 13px;
  color: var(--afr-muted-fg);
}

@media (max-width: 768px) {
  .notif-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .notif-action-btns {
    justify-content: flex-end;
  }

  .notif-item {
    padding: 16px;
    gap: 12px;
  }

  .notif-icon-wrap {
    width: 38px;
    height: 38px;
  }

  .notif-title {
    font-size: 13px;
  }

  .notif-desc {
    font-size: 12px;
  }

  .notif-hover-actions {
    display: flex;
  }
}

/* notification page style */
.noright_Action {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

/* Bank row */
.cf-bank-row {
  position: relative;
  padding: 14px 14px 14px 14px;
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  margin-bottom: 10px;
  background: var(--afr-card);
}

.cf-bank-row.cf-bank-row-deletable {
  padding-right: 44px;
}

.cf-bank-row-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.cf-bank-delete-btn {
  position: absolute;
  top: 20%;
  right: 6px;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  border-radius: 6px;
  border: 1px solid hsl(0 72% 55% / 0.3);
  background: hsl(0 72% 55% / 0.05);
  color: var(--afr-destructive);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.cf-bank-delete-btn:hover {
  background: hsl(0 72% 55% / 0.15);
}

/* ===== Custom Select Dropdown (fkd_cselect) ===== */
.fkd_cselect {
  position: relative;
  display: inline-block;
  min-width: 140px;
}

.fkd_cselect-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #e2e6ed;
  border-radius: 8px;
  font-size: 12.5px;
  color: #5a6077;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  user-select: none;
}

.fkd_cselect-trigger:hover {
  border-color: #b0b8cc;
}

.fkd_cselect-trigger.fkd_cselect--open {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.fkd_cselect-trigger iconify-icon {
  font-size: 14px;
  color: #94a3b8;
  transition: transform 0.2s;
}

.fkd_cselect-trigger.fkd_cselect--open iconify-icon {
  transform: rotate(180deg);
}

.fkd_cselect-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e2e6ed;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(26, 29, 41, 0.12);
  padding: 0px 0;
  max-height: 240px;
  overflow-y: auto;
  min-width: fit-content;
}

.fkd_cselect-menu::-webkit-scrollbar {
  width: 4px;
}

.fkd_cselect-menu::-webkit-scrollbar-thumb {
  background: #e2e6ed;
  border-radius: 10px;
}

.fkd_cselect-menu.fkd_cselect-menu--open {
  display: block;
}

.fkd_cselect-option {
  padding: 8px 14px;
  font-size: 13px;
  color: #5a6077;
  cursor: pointer;
  transition: all 0.12s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.fkd_cselect-option:hover {
  background: #f4f6fa;
  color: #1a1d29;
}

.fkd_cselect-option.fkd_cselect-option--active {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  font-weight: 600;
}

.fkd_cselect-option--check {
  width: 16px;
  font-size: 14px;
  color: #3b82f6;
  flex-shrink: 0;
}

.cf-btn.afr-btn-secondary {
  background: #f8f8f8;
}


/* ===== MULTI-BANK STYLES ===== */
.prf-bank-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prf-bank-entry {
  background: var(--afr-bg);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  padding: 16px 20px;
  position: relative;
}

.prf-bank-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.prf-bank-entry-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--afr-fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.prf-bank-entry-title svg {
  color: var(--afr-primary);
}

.prf-bank-badge-primary {
  font-size: 10px;
  font-weight: 500;
  background: hsl(211, 95%, 96%);
  color: hsl(211, 98%, 44%);
  padding: 2px 8px;
  border-radius: 999px;
}

.prf-bank-delete-btn {
  padding: 6px;
  border: none;
  background: transparent;
  color: var(--afr-muted-fg);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.prf-bank-delete-btn:hover {
  background: hsl(0, 72%, 97%);
  color: var(--afr-destructive);
}

.prf-bank-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  color: var(--afr-primary);
  border: 1px dashed var(--afr-primary);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 8px;
}

.prf-bank-add-btn:hover {
  background: hsl(211, 95%, 96%);
}

/* Add Bank Modal */
.prf-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.prf-modal-overlay.prf-modal-open {
  display: flex;
}

.prf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: hsla(215, 25%, 15%, 0.4);
  backdrop-filter: blur(4px);
}

.prf-modal-content {
  position: relative;
  background: var(--afr-card);
  border-radius: var(--afr-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 520px;
  margin: 16px;
  animation: afrDropFade 0.2s ease;
}

.prf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--afr-border);
}

.prf-modal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--afr-fg);
}

.prf-modal-close {
  padding: 6px;
  border: none;
  background: transparent;
  color: var(--afr-muted-fg);
  border-radius: 6px;
  cursor: pointer;
}

.prf-modal-close:hover {
  background: var(--afr-muted);
}

.prf-modal-body {
  padding: 20px;
}

.prf-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--afr-border);
}

.prf-modal-cancel {
  padding: 8px 16px;
  border: 1px solid var(--afr-border);
  background: var(--afr-card);
  color: var(--afr-fg);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.prf-modal-cancel:hover {
  background: var(--afr-muted);
}

/* Responsive */
@media (max-width: 767px) {
  .prf-layout {
    flex-direction: column;
  }

  .prf-sidebar {
    width: 100%;
  }

  .prf-sidebar-card {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 6px;
  }

  .prf-sidebar-card .prf-nav-group-label,
  .prf-sidebar-card .prf-nav-sep {
    display: none;
  }

  .prf-nav-btn {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 12px;
  }

  .prf-info-grid,
  .prf-form-grid,
  .prf-director-details {
    grid-template-columns: 1fr;
  }

  .prf-director-details {
    padding-left: 0;
  }

  .prf-modal-content {
    max-width: 100%;
  }
}


/* please order page style */

/* Dashboard Enhancements */
.afr-live-dot {
  width: 6px;
  height: 6px;
  background-color: var(--afr-success);
  border-radius: 50%;
  display: inline-block;
}

.afr-badge-success {
  background: hsl(152, 60%, 42%, 0.1);
  color: var(--afr-success);
  border: 1px solid hsl(152, 60%, 42%, 0.2);
}

.afr-stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .afr-stats-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .afr-stats-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Horizontal Stat Card */
.afr-stat-card-horizontal {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--afr-card);
  border-radius: var(--afr-radius);
  padding: 16px 20px;
  border: 1px solid var(--afr-border);
  box-shadow: var(--afr-shadow-card);
}

.afr-stat-card-horizontal .afr-stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  /* Light grey base, can be overridden */
}

/* Charts Grid */
.afr-charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .afr-charts-grid {
    grid-template-columns: 1fr;
  }
}

/* Recent Apps & Activity Layout */
.afr-recent-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  /* Adjusted to give more space to Recent Activity */
  gap: 16px;
  margin-bottom: 24px;
}

.afr-recent-grid>div {
  min-width: 0;
  /* Fixes grid blowout caused by datatables */
}

@media (max-width: 1024px) {
  .afr-recent-grid {
    grid-template-columns: 1fr;
  }
}

/* Dashboard Table */
.afr-dash-table-wrap {
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px;
}

.afr-dash-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.afr-dash-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--afr-muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--afr-border);
}

.afr-dash-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--afr-border);
  font-size: 13.5px;
  color: var(--afr-fg);
}

.afr-dash-table tr:last-child td {
  border-bottom: none;
}

.afr-id-text {
  color: #FF7B00;
  font-weight: 500;
}

.afr-table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--afr-border);
  font-size: 13px;
  color: var(--afr-muted-fg);
}

.afr-pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.afr-page-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--afr-fg);
  cursor: pointer;
  font-weight: 500;
}

.afr-page-btn.afr-page-active {
  background: #FF7B00;
  color: white;
}

/* Recent Activity Timeline */
.afr-activity-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.afr-activity-item {
  display: flex;
  gap: 12px;
}

.afr-activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #FFF0E5;
  color: #FF7B00;
}

.afr-activity-content {
  flex: 1;
}

.afr-activity-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--afr-fg);
  line-height: 1.3;
}

.afr-activity-desc {
  font-size: 13px;
  color: var(--afr-muted-fg);
  margin-top: 2px;
}

.afr-activity-time {
  font-size: 11px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* Pie chart legend */
.afr-pie-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.afr-pie-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.afr-pie-legend-color {
  width: 10px;
  height: 10px;
}

.afr-pie-legend-value {
  color: var(--afr-fg);
  font-weight: 600;
}

/* Chart sizes */
.afr-chart-area-tall {
  height: 280px;
  position: relative;
}

.afr-dropdown-show {
  display: block !important;
}

/* Customer List Filter Buttons */
.afr-filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: #F9FAFB;
  color: var(--afr-muted-fg);
  border: 1px solid var(--afr-border);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.afr-filter-btn span {
  font-size: 12px;
  color: #9CA3AF;
}

.afr-filter-btn.afr-filter-active {
  background: #FF7B00;
  color: white;
  border: 1px solid #FF7B00;
}

.afr-filter-btn.afr-filter-active span {
  color: rgba(255, 255, 255, 0.8);
}

/* Custom Dropdown Filter */
.cus-dropdown {
  position: relative;
  display: inline-block;
  min-width: 200px;
}

.cus-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.cus-dropdown-trigger svg {
  color: #6B7280;
  transition: transform 0.2s;
}

.cus-dropdown.open .cus-dropdown-trigger {
  border-color: #D1D5DB;
}

.cus-dropdown.open .cus-dropdown-trigger svg {
  transform: rotate(180deg);
}

.cus-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--afr-border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  z-index: 1000;
}

.cus-dropdown.open .cus-dropdown-menu {
  display: block;
}

.cus-dropdown-item {
  padding: 12px 16px;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cus-dropdown-item:hover {
  background: #F9FAFB;
}

.cus-dropdown-item.active {
  color: #FF7B00;
}

.cus-dropdown-item svg {
  opacity: 0;
  flex-shrink: 0;
  stroke-width: 2.5;
}

.cus-dropdown-item.active svg {
  opacity: 1;
  color: #FF7B00;
}

.cus-dropdown-more {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
  color: #9CA3AF;
}

/* Record Payment Modal */
.pay-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.pay-modal-overlay.active {
  display: flex;
}

.pay-modal {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: payModalFadeIn 0.2s ease-out;
}

@keyframes payModalFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pay-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--afr-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pay-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.pay-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6B7280;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.pay-modal-close:hover {
  background: #F3F4F6;
}

.pay-modal-body {
  padding: 24px;
}

.pay-modal-info {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.pay-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  font-size: 14px;
}

.pay-modal-grid-lbl {
  color: #6B7280;
}

.pay-modal-grid-val {
  color: #111827;
  font-weight: 600;
}

.pay-form-group {
  margin-bottom: 16px;
}

.pay-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.pay-form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.pay-form-input:focus {
  border-color: #FF7B00;
  box-shadow: 0 0 0 2px rgba(255, 123, 0, 0.1);
}

.pay-form-input::placeholder {
  color: #9CA3AF;
}

.pay-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--afr-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.pay-btn-cancel {
  padding: 8px 16px;
  background: white;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s;
}

.pay-btn-cancel:hover {
  background: #F9FAFB;
}

.pay-btn-confirm {
  padding: 8px 16px;
  background: #FF7B00;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.pay-btn-confirm:hover {
  background: #E66A00;
}

/* Modal Custom Dropdown */
.pay-dd {
  position: relative;
  width: 100%;
}

.pay-dd-trigger {
  width: 100%;
  padding: 8px 12px;
  background: white;
  border: 1px solid #e7eaef;
  border-radius: 6px;
  font-size: 14px;
  color: #111827;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}

.pay-dd-trigger svg {
  color: #6B7280;
  transition: transform 0.2s;
}

.pay-dd.open .pay-dd-trigger {
  border-color: var(--afr-primary);
  box-shadow: 0 0 0 2px rgba(255, 123, 0, 0.1);
}

.pay-dd.open .pay-dd-trigger svg {
  transform: rotate(180deg);
}

.pay-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 4px 0;
  z-index: 1001;
}

.pay-dd.open .pay-dd-menu {
  display: block;
}

.pay-dd.up .pay-dd-menu {
  top: auto;
  bottom: calc(100% + 4px);
}

.pay-dd-item {
  padding: 10px 12px;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pay-dd-item:hover {
  background: #F9FAFB;
}

.pay-dd-item.active {
  color: var(--afr-primary);
}

.pay-dd-item svg {
  opacity: 0;
  flex-shrink: 0;
  stroke-width: 2.5;
}

.pay-dd-item.active svg {
  opacity: 1;
  color: var(--afr-primary);
  ;
}

/* Follow Up Modal Additions */
.fu-btn-confirm {
  padding: 8px 16px;
  background: #FDBA74;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.fu-btn-confirm:hover {
  background: #F97316;
}

/* ==========================================================================
   Global Tab Styles
   ========================================================================== */
.afr-tabs {
  display: flex;
  gap: 8px;
  background: #F3F4F6;
  padding: 4px;
  border-radius: 8px;
  width: max-content;
  margin-bottom: 24px;
}

.afr-tab-btn {
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: #6B7280;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.afr-tab-btn.active,
.afr-tab-btn.afr-tab-active {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: var(--afr-fg);
}

.afr-tab-content {
  display: none;
}

.afr-tab-content.active {
  display: block;
}

.col-card {
  background: white;
  border: 1px solid var(--afr-border);
  border-left: 4px solid #EF4444;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--afr-shadow-card);
}

.afr-action-btn {
  background: none;
  border: none;
  color: #6B7280;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.afr-action-btn:hover {
  background: #F3F4F6;
  color: #111827;
}

/* ==========================================================================
   Loan Configuration Page Styles
   ========================================================================== */

/* Summary Cards Grid */
.lc-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.lc-summary-card {
  background: white;
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lc-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #FFF7ED;
  /* very light orange */
  color: #FF7B00;
  /* primary orange */
  display: flex;
  align-items: center;
  justify-content: center;
}

.lc-summary-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lc-title-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lc-title-val {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

/* Product Cards Grid */
.lc-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.lc-product-card {
  background: white;
  border: 1px solid var(--afr-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.lc-pc-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.3s ease;
}

.lc-pc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.lc-pc-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lc-pc-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.lc-pc-code {
  font-size: 13px;
  font-family: monospace;
  color: #6B7280;
}

.lc-pc-status-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lc-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
}

.lc-status-badge.active {
  background: #E8F5E9;
  color: #00A86B;
  /* Greenish teal */
}

.lc-status-badge.inactive {
  background: #F3F4F6;
  color: #9CA3AF;
  /* Gray */
}

.lc-pc-desc {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.5;
}

.lc-pc-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lc-pc-info-box {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lc-pc-info-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lc-pc-info-val {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.lc-pc-badge {
  display: inline-flex;
  background: #FFF7ED;
  color: #FF7B00;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
}

.lc-pc-footer {
  border-top: 1px solid var(--afr-border);
  padding: 12px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.lc-pc-btn-edit {
  background: none;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.lc-pc-btn-edit:hover {
  background: #F9FAFB;
}

.lc-pc-btn-delete {
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
  border-radius: 6px;
  color: #EF4444;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lc-pc-btn-delete:hover {
  background: #FEE2E2;
}

/* Toggle Switch */
.lc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.lc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lc-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #E5E7EB;
  transition: .3s;
  border-radius: 24px;
}

.lc-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lc-toggle input:checked+.lc-toggle-slider {
  background-color: #FF7B00;
}

.lc-toggle input:checked+.lc-toggle-slider:before {
  transform: translateX(20px);
}

/* Interest Settings Info Boxes */
.lc-int-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.lc-int-box {
  padding: 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lc-int-box-flat {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
}

.lc-int-box-reducing {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
}

.lc-int-box-fixed {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
}

.lc-int-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.lc-int-box-flat .lc-int-title {
  color: #C2410C;
}

.lc-int-box-reducing .lc-int-title {
  color: #15803D;
}

.lc-int-box-fixed .lc-int-title {
  color: #1D4ED8;
}

.lc-int-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #4B5563;
}

/* specific badges for tables */
.lc-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.lc-badge-orange {
  background: #FFF7ED;
  color: #EA580C;
}

.lc-badge-green {
  background: #F0FDF4;
  color: #16A34A;
}

.lc-badge-blue {
  background: #EFF6FF;
  color: #2563EB;
}

.lc-badge-grey {
  background: #F3F4F6;
  color: #6B7280;
}

/* Transactions Stats Grid */
.afr-tx-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 991px) {
  .afr-tx-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .afr-tx-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Financial Reports Page */
.fr-tabs-container {
  display: inline-flex;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.fr-tab-btn {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.fr-tab-btn.active {
  background: #fff;
  color: #1E293B;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fr-tab-btn:hover:not(.active) {
  color: #1E293B;
}

.fr-panel {
  display: none;
}

.fr-panel.active {
  display: block;
}

.fr-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 991px) {
  .fr-grid-2 {
    grid-template-columns: 1fr;
  }
}

.fr-table-card {
  background: #fff;
  border: 1px solid var(--afr-border);
  border-radius: 12px;
  overflow: hidden;
}

.fr-table-header {
  padding: 16px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--afr-border);
}

.fr-table-header.bg-green {
  background: #F0FDF4;
  color: #16A34A;
}

.fr-table-header.bg-red {
  background: #FEF2F2;
  color: #DC2626;
}

.fr-table-header.bg-blue {
  background: #EFF6FF;
  color: #2563EB;
}

.fr-table-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--afr-border);
  font-size: 14px;
}

.fr-table-row:last-child {
  border-bottom: none;
}

.fr-table-row.total-row {
  background: #F8FAFC;
  font-weight: 600;
}

.fr-summary-card {
  background: #fff;
  border: 1px solid var(--afr-border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
}

.fr-summary-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.fr-summary-value {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.fr-summary-sub {
  font-size: 13px;
  color: #64748B;
}

.text-green {
  color: #16A34A !important;
}

.text-red {
  color: #DC2626 !important;
}

.text-blue {
  color: #2563EB !important;
}

/* Delete Modal Classes */
.del-modal-wrap {
  max-width: 400px;
  text-align: center;
  padding: 20px 24px;
}

.del-modal-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.del-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.del-modal-desc {
  color: #6B7280;
  font-size: 15px;
  margin-bottom: 24px;
}

.del-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.del-btn-cancel {
  flex: 1;
  padding: 10px;
  background: #F3F4F6;
  color: #374151;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.del-btn-confirm {
  flex: 1;
  padding: 10px;
  background: #EF4444;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  font-size: 14px;
}

/* Notifications Page Styles */
.notif-summary-row {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.notif-summary-card {
  flex: 1;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.notif-summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-summary-info h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.notif-summary-info p {
  margin: 0;
  font-size: 13px;
  color: #6B7280;
}

.notif-search-row {
  display: flex;
  margin-bottom: 24px;
}

.notif-search-input {
  width: 320px;
  padding: 10px 16px 10px 36px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: white;
  outline: none;
  font-size: 14px;
}

.notif-search-wrapper {
  position: relative;
}

.notif-search-wrapper svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
}

.notif-tabs {
  display: flex;
  gap: 8px;
  background: #F3F4F6;
  padding: 4px;
  border-radius: 8px;
  width: max-content;
  margin-bottom: 24px;
}

.notif-tab {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  cursor: pointer;
  border: none;
  background: transparent;
}

.notif-tab.active {
  background: white;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notif-item {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.notif-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-item-content {
  flex: 1;
}

.notif-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.notif-item-desc {
  font-size: 13px;
  color: #4B5563;
  margin-bottom: 6px;
}

.notif-item-time {
  font-size: 12px;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  gap: 4px;
}

.notif-item-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.notif-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notif-btn-check {
  background: transparent;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-btn-check:hover {
  color: #10B981;
}

.notif-btn-del {
  background: transparent;
  border: none;
  color: #EF4444;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-unread-dot {
  width: 8px;
  height: 8px;
  background: #FF7B00;
  border-radius: 50%;
}

/* Profile Page Styles */
.prof-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.prof-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
}

.prof-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.prof-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #FFF0E5;
  color: #FF7B00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  position: relative;
}

.prof-avatar-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FF7B00;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  cursor: pointer;
}

.prof-user-info h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.prof-user-info p {
  margin: 0 0 2px 0;
  font-size: 13px;
  color: #6B7280;
}

.prof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.prof-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prof-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.prof-form-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  outline: none;
  background: white;
  box-sizing: border-box;
}

.prof-form-input::placeholder {
  color: #9CA3AF;
}

.prof-form-input:focus {
  border-color: #FF7B00;
}

.prof-btn-save {
  background: #FF7B00;
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.prof-btn-save:hover {
  background: #E66A00;
}

.prof-pwd-wrap {
  position: relative;
  width: 100%;
}

.prof-pwd-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
}

.prof-pwd-toggle:hover {
  color: #6B7280;
}

/* Custom Toggle Switches for Modals */
.lc-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
  margin: 0 auto;
}

.lc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lc-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #E5E7EB;
  transition: .3s;
  border-radius: 24px;
}

.lc-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lc-toggle input:checked+.lc-toggle-slider {
  background-color: #FF7B00;
}

.lc-toggle input:checked+.lc-toggle-slider:before {
  transform: translateX(16px);
}

/* Customer Detail View */
.cd-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6B7280;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.cd-back-link:hover {
  color: #111827;
}

.cd-header-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cd-profile-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cd-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #FF7B00;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 123, 0, 0.2);
}

.cd-name-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.cd-name {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.cd-status {
  padding: 4px 10px;
  background: #ECFDF5;
  color: #10B981;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  line-height: 1;
}

.cd-contact-info {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #6B7280;
  font-size: 14px;
}

.cd-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cd-actions {
  display: flex;
  gap: 12px;
}

.cd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.cd-btn:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
}

.cd-btn-danger {
  color: #EF4444;
  border-color: #FECACA;
}

.cd-btn-danger:hover {
  background: #FEF2F2;
  border-color: #F87171;
}

.cd-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}

.cd-summary-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.cd-summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cd-summary-val {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.cd-summary-lbl {
  font-size: 12px;
  color: #6B7280;
  margin-top: 2px;
}

.cd-tabs-wrap {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 15px;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 8px;
}

.cd-tab {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.cd-tab:hover {
  color: #0F172A;
}

.cd-tab.active {
  background: white;
  color: #0F172A;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.cd-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cd-panel {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
}

.cd-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid #E2E8F0;
  font-size: 14px;
  font-weight: 600;
  color: #1E293B;
}

.cd-panel-body {
  padding: 0 20px;
}

.cd-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #F1F5F9;
}

.cd-list-item:last-child {
  border-bottom: none;
}

.cd-list-lbl {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748B;
  font-size: 13px;
}

.cd-list-lbl svg {
  width: 15px;
  height: 15px;
  color: #94A3B8;
  stroke-width: 1.5 !important;
}

.cd-list-val {
  color: #0F172A;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

/* Active Loans Tab */
.al-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  margin-bottom: 16px;
}

.al-card-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.al-id-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.al-id {
  font-size: 16px;
  font-weight: 600;
  color: #FF7B00;
}

.al-type {
  font-size: 14px;
  color: #6B7280;
}

.al-amount-wrap {
  text-align: right;
}

.al-amount {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.al-terms {
  font-size: 13px;
  color: #6B7280;
}

.al-card-body {
  padding: 0 24px 20px 24px;
}

.al-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 8px;
}

.al-progress-track {
  height: 6px;
  background: #F3F4F6;
  border-radius: 3px;
  margin-bottom: 24px;
  overflow: hidden;
}

.al-progress-fill {
  height: 100%;
  background: #FF7B00;
  border-radius: 3px;
}

.al-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.al-stat-box {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.al-stat-lbl {
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 4px;
}

.al-stat-val {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.al-stat-val.green {
  color: #10B981;
}

.al-stat-val.orange {
  color: #FF7B00;
}

.al-meta {
  font-size: 12px;
  color: #6B7280;
  display: flex;
  gap: 16px;
}

.al-meta strong {
  color: #111827;
}

.al-card-footer {
  padding: 16px 24px;
  border-top: 1px solid #F3F4F6;
  display: flex;
  gap: 24px;
}

.al-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.al-action-btn:hover {
  opacity: 0.7;
}

.al-action-btn.danger {
  color: #EF4444;
}

/* Full Details Modal */
.fd-section {
  background: #F9FAFB;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.fd-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #111827;
  font-weight: 600;
  font-size: 15px;
}

.fd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 20px;
}

.fd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 8px;
}

.fd-lbl {
  color: #6B7280;
  font-size: 14px;
}

.fd-val {
  color: #111827;
  font-weight: 500;
  font-size: 14px;
}

.fd-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fd-timeline-item {
  background: white;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.fd-timeline-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFF0E5;
  color: #FF7B00;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fd-timeline-text {
  font-size: 14px;
  color: #111827;
  font-weight: 600;
}

.fd-timeline-text span {
  color: #9CA3AF;
  font-weight: 400;
  margin-left: 8px;
}

.fd-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: auto;
}

.fd-table th {
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  letter-spacing: 0.05em;
  padding: 12px 0;
  border-bottom: 1px solid #E5E7EB;
  text-transform: uppercase;
}

.fd-table td {
  font-size: 14px;
  color: #111827;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid #F3F4F6;
}

/* Extracted Inline Styles from customer-detail.php */
.cd-style-202 {
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  background: white;
  flex-shrink: 0;
}

.cd-style-204 {
  width: 100%;
  max-width: 500px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.cd-badge-warning {
  background: #FEF3C7;
  color: #F59E0B;
}

.cd-style-75 {
  background: #FEF2F2;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.cd-style-125 {
  font-size: 18px;
  color: #111827;
}

.cd-style-93 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  letter-spacing: -0.01em;
}

.cd-style-207 {
  width: 100%;
  padding: 16px;
  border: 1px solid #FF7B00;
  border-radius: 8px;
  background: white;
  font-size: 15px;
  color: #111827;
  outline: none;
  min-height: 120px;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}

.cd-style-183 {
  padding: 16px 24px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  flex-shrink: 0;
}

.cd-p-16 {
  padding: 16px;
}

.cd-style-174 {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

.cd-style-143 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cd-style-114 {
  border: 1px solid #E5E7EB;
  background: white;
  color: #111827;
  padding: 8px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
}

.cd-style-68 {
  color: #6B7280;
  font-size: 13px;
}

.cd-style-131 {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.cd-style-102 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -48px;
  top: -4px;
  z-index: 1;
  border: 4px solid white;
  box-sizing: border-box;
}

.cd-style-97 {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cd-text-regular {
  font-size: 15px;
  color: #111827;
  font-weight: 400;
}

.cd-style-81 {
  font-size: 13px;
  color: #111827;
  margin-bottom: 4px;
}

.cd-style-14 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.cd-style-104 {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cd-style-148 {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #EFF6FF;
  color: #2563EB;
}

.cd-style-29 {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.cd-style-69 {
  text-align: right;
}

.cd-style-128 {
  font-size: 12px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
}

.cd-style-33 {
  margin-bottom: 24px;
}

.cd-style-32 {
  width: 11%;
  background: #FF7B00;
  height: 100%;
}

.cd-style-76 {
  color: #EF4444;
  font-weight: 600;
  font-size: 14px;
}

.cd-style-142 {
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: white;
}

.cd-style-119 {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.cd-style-195 {
  font-size: 14px;
  color: #4B5563;
  font-weight: 500;
}

.cd-style-40 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #FECACA;
  border-radius: 6px;
  background: white;
  color: #EF4444;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-left: auto;
}

.cd-style-36 {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  background: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.cd-style-115 {
  max-width: 400px;
  padding: 32px 24px;
  text-align: center;
  border-radius: 16px;
}

.cd-style-84 {
  font-size: 12px;
  color: #F97316;
}

.cd-style-16 {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #10B981;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
}

.cd-style-92 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.cd-style-186 {
  width: 100%;
  max-width: 440px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.cd-style-194 {
  margin-bottom: 12px;
}

.cd-hidden {
  display: none;
}

.cd-style-126 {
  color: #6B7280;
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 24px;
}

.cd-style-103 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ECFDF5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -48px;
  top: -4px;
  z-index: 1;
  border: 4px solid white;
  box-sizing: border-box;
}

.cd-style-210 {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #FF7B00;
  font-size: 15px;
  font-weight: 600;
  color: white;
  cursor: pointer;
}

.cd-style-132 {
  grid-column: 1 / -1;
}

.cd-style-50 {
  background: #ECFDF5;
  color: #10B981;
  border: none;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.cd-style-46 {
  background: #F9FAFB;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #E5E7EB;
}

.cd-style-64 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.cd-style-19 {
  font-size: 16px;
  font-weight: 700;
  color: var(--afr-fg);
  margin-bottom: 20px;
  margin-top: 0;
}

.cd-style-172 {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.cd-style-178 {
  opacity: 1;
}

.cd-style-163 {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #9CA3AF;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  cursor: not-allowed;
}

.cd-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 8px;
}

.cd-style-199 {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #FF7B00;
  font-size: 15px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cd-style-209 {
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  background: white;
}

.cd-opacity-0 {
  opacity: 0;
}

.cd-style-168 {
  width: 100%;
  max-width: 440px;
  max-height: 80vh;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.cd-style-122 {
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
}

.cd-style-165 {
  background: #D1FAE5;
  color: #059669;
}

.cd-style-140 {
  border: 1px solid #E5E7EB;
  background: white;
  color: #111827;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
}

.cd-style-53 {
  background: none;
  border: none;
  color: #10B981;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cd-style-21 {
  width: 8%;
}

.cd-style-25 {
  color: #6B7280;
  font-size: 13px;
  margin-bottom: 8px;
}

.cd-style-51 {
  font-size: 12px;
  color: #9CA3AF;
}

.cd-style-63 {
  padding: 20px;
}

.cd-heading-small {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.cd-style-145 {
  color: #6B7280;
  font-size: 13px;
}

.cd-style-55 {
  background: #FFFBEB;
  color: #F59E0B;
  border: none;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.cd-style-173 {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.cd-mb-20 {
  margin-bottom: 20px;
}

.cd-style-57 {
  display: flex;
  border-top: 1px solid #E5E7EB;
  margin-top: 12px;
  padding-top: 12px;
  gap: 16px;
}

.cd-style-120 {
  border: 1px solid #E5E7EB;
  background: white;
  color: #111827;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
}

.cd-style-162 {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FF7B00;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
}

.cd-badge-info {
  background: #DBEAFE;
  color: #3B82F6;
}

.cd-style-17 {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: #EF4444;
  border: 1px solid #FECACA;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
}

.cd-style-141 {
  background: #FF7B00;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-style-9 {
  margin-top: 16px;
}

.cd-style-83 {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 4px;
}

.cd-style-164 {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #8B5CF6;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
}

.cd-style-8 {
  background: #D1FAE5;
  color: #059669;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cd-style-54 {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cd-style-156 {
  color: #9CA3AF;
  font-weight: 400;
  font-size: 13px;
}

.cd-style-42 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cd-style-78 {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.cd-style-67 {
  background: #FFFBEB;
  color: #F59E0B;
  border: none;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.cd-style-180 {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: white;
  font-size: 15px;
  color: #111827;
  outline: none;
  box-sizing: border-box;
}

.cd-style-177 {
  display: none;
  position: absolute;
  top: 76px;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 10;
  overflow: hidden;
  padding: 8px 0;
}

.cd-style-198 {
  padding: 16px 24px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  background: white;
  flex-shrink: 0;
}

.cd-style-80 {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFEDD5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cd-style-190 {
  position: relative;
}

.cd-style-146 {
  padding: 0;
  display: flex;
  flex: 1;
  min-height: 450px;
}

.cd-style-205 {
  padding: 24px 24px 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}

.cd-style-37 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: #10B981;
  font-size: 13px;
  font-weight: 500;
  gap: 4px;
}

.cd-style-157 {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  color: #10B981;
  font-weight: 500;
}

.cd-style-47 {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  margin-bottom: 8px;
}

.cd-style-124 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cd-style-188 {
  padding: 24px;
  flex: 1;
}

.cd-badge-success-light {
  background: #ECFDF5;
  color: #10B981;
}

.cd-style-30 {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
  color: #6B7280;
}

.cd-style-159 {
  border: 1px solid #E5E7EB;
  background: white;
  color: #111827;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  margin-right: auto;
}

.cd-style-135 {
  display: block;
  font-size: 14px;
  color: #111827;
  font-weight: 500;
  margin-bottom: 8px;
}

.cd-style-86 {
  border-top: 1px solid #E5E7EB;
  padding: 16px 20px;
  display: flex;
  gap: 12px;
}

.cd-style-41 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  background: white;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-left: auto;
}

.cd-style-150 {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: #FAFAFA;
}

.cd-style-89 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.cd-style-136 {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #FF7B00;
  border-radius: 8px;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 123, 0, 0.1);
  color: #111827;
  font-weight: 500;
  font-size: 15px;
}

.cd-style-60 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-style-39 {
  background: #FEE2E2;
  color: #EF4444;
}

.cd-style-73 {
  background: #F9FAFB;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.cd-style-101 {
  font-size: 13px;
  color: #9CA3AF;
}

.cd-style-11 {
  font-size: 16px;
  font-weight: 700;
  color: var(--afr-fg);
  margin: 0;
}

.cd-badge-success {
  background: #E8F5E9;
  color: #10B981;
}

.cd-style-49 {
  font-size: 13px;
  color: #6B7280;
}

.cd-style-201 {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: white;
  font-size: 15px;
  color: #111827;
  outline: none;
  min-height: 100px;
  resize: vertical;
  box-sizing: border-box;
}

.cd-style-108 {
  font-size: 20px;
  color: #111827;
}

.app-view-label {
  width: 150px;
  font-size: 14px;
  color: #4B5563;
  font-weight: 600;
}

.cd-style-179 {
  font-size: 15px;
  color: #F97316;
  font-weight: 500;
}

.cd-style-208 {
  font-size: 13px;
  color: #6B7280;
  margin-top: 8px;
}

.cd-style-59 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.cd-style-206 {
  padding: 0 24px 20px 24px;
}

.cd-style-85 {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 16px;
}

.cd-style-22 {
  width: 0%;
}

.cd-style-153 {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cd-style-58 {
  display: none;
  margin-top: 16px;
}

.cd-style-154 {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cd-style-91 {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cd-style-197 {
  display: none;
}

.cd-style-77 {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  margin-bottom: 12px;
}

.cd-style-74 {
  color: #111827;
  font-weight: 600;
  font-size: 14px;
}

.cd-style-45 {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.cd-style-34 {
  padding: 16px 20px;
  border-bottom: 1px solid var(--afr-border, #e5e7eb);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cd-style-105 {
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.cd-style-94 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.cd-style-24 {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.cd-style-23 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.cd-style-184 {
  padding: 10px 20px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: white;
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
}

.cd-style-100 {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 4px;
  line-height: 1.5;
}

.cd-style-189 {
  color: #9CA3AF;
  font-weight: 400;
}

.cd-style-118 {
  color: #6B7280;
  font-size: 14px;
  margin: 0 0 24px;
}

.cd-style-149 {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6B7280;
  transition: 0.2s;
}

.cd-style-187 {
  padding: 24px 24px 20px 24px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  background: white;
}

.cd-style-43 {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FF7B00;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}

.cd-style-169 {
  padding: 24px 24px 20px 24px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: white;
}

.cd-style-62 {
  border: 1px solid #FECACA;
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
  background: white;
}

.cd-text-muted-small {
  color: #6B7280;
  font-size: 12px;
  margin-bottom: 4px;
}

.cd-style-5 {
  background: #F3F4F6;
  color: #6B7280;
}

.cd-style-144 {
  font-size: 18px;
  color: #111827;
  font-weight: 600;
  margin: 0 0 6px;
}

.cd-style-175 {
  margin-bottom: 20px;
  position: relative;
}

.cd-style-167 {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 20px;
}

.cd-style-70 {
  color: #EF4444;
  font-weight: 700;
  font-size: 18px;
}

.cd-style-129 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cd-style-10 {
  padding: 16px 20px;
  border-bottom: 1px solid var(--afr-border, #e5e7eb);
}

.cd-style-121 {
  border: none;
  background: #10B981;
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
}

.cd-style-110 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.cd-style-158 {
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #E5E7EB;
  background: white;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.app-view-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.cd-style-151 {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  color: #2563EB;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.cd-style-12 {
  text-align: right;
}

.cd-style-35 {
  font-weight: 400;
  color: #6B7280;
  font-size: 14px;
}

.cd-style-155 {
  color: #111827;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.cd-style-130 {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 4px;
}

.cd-style-79 {
  display: flex;
  gap: 12px;
}

.cd-style-113 {
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #E5E7EB;
  background: white;
}

.cd-style-95 {
  position: relative;
  padding-left: 48px;
}

.cd-style-38 {
  background: #FEF2F2;
}

.cd-style-181 {
  margin-bottom: 10px;
}

.cd-style-161 {
  border: 1px solid #FECACA;
  background: white;
  color: #EF4444;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-style-82 {
  color: #9CA3AF;
  margin-left: 4px;
}

.cd-style-160 {
  background: #10B981;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-style-87 {
  background: white;
  border: 1px solid #E5E7EB;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  color: #111827;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cd-style-193 {
  border: 2px dashed #D1D5DB;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  background: #F9FAFB;
  cursor: pointer;
}

.cd-style-185 {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #F97316;
  font-size: 15px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cd-style-44 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.cd-style-171 {
  background: none;
  border: none;
  cursor: pointer;
  color: #6B7280;
  padding: 0;
  display: flex;
}

.cd-style-98 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFF7ED;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -48px;
  top: -4px;
  z-index: 1;
  border: 4px solid white;
  box-sizing: border-box;
}

.cd-style-139 {
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #E5E7EB;
  background: white;
}

.cd-style-112 {
  color: #6B7280;
  font-size: 15px;
}

.cd-dropdown-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.cd-style-96 {
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: #E5E7EB;
}

.cd-style-52 {
  display: none;
  border-top: 1px solid #E5E7EB;
  margin-top: 12px;
  padding-top: 12px;
  gap: 16px;
}

.cd-style-106 {
  border-bottom: 1px solid #E5E7EB;
  padding: 24px;
}

.cd-style-26 {
  font-weight: 700;
  font-size: 24px;
  color: #111827;
}

.cd-style-1 {
  background: #FFF0E5;
  color: #FF7B00;
}

.cd-style-138 {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  outline: none;
  appearance: none;
}

.cd-style-116 {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.cd-style-2 {
  background: #EFF6FF;
  color: #3B82F6;
}

.cd-style-90 {
  display: none;
  margin-top: 0px;
}

.cd-style-3 {
  background: #FFFBEB;
  color: #F59E0B;
}

.cd-style-192 {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.cd-style-48 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cd-style-20 {
  background: #ECFDF5;
  color: #10B981;
  font-weight: 600;
}

.cd-style-56 {
  font-size: 12px;
  color: #9CA3AF;
  display: none;
}

.cd-style-4 {
  background: #FEF2F2;
  color: #EF4444;
}

.app-view-value {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  color: #111827;
}

.cd-style-127 {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid #E5E7EB;
}

.cd-style-200 {
  color: #EF4444;
}

.cd-style-6 {
  width: 100%;
  box-sizing: border-box;
}

.cd-style-88 {
  background: #FF7B00;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cd-style-170 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.cd-style-147 {
  width: 220px;
  border-right: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 4px;
  background: white;
}

.cd-style-31 {
  height: 8px;
  background: #F3F4F6;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

.cd-style-111 {
  padding: 4px 12px;
  background: #ECFDF5;
  color: #10B981;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.cd-style-18 {
  display: block;
}

.cd-style-137 {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  outline: none;
  color: #111827;
  font-weight: 500;
}

.cd-style-166 {
  background: #FEF3C7;
  color: #D97706;
}

.cd-style-134 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cd-style-117 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px;
}

.cd-style-61 {
  color: #EF4444;
  font-size: 13px;
  font-weight: 600;
}

.cd-style-15 {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  color: var(--afr-fg);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
}

.cd-style-66 {
  color: #EF4444;
  font-weight: 700;
  font-size: 16px;
}

.cd-style-27 {
  font-weight: 700;
  font-size: 24px;
  color: #10B981;
}

.cd-style-203 {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #FDBA74;
  font-size: 15px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cd-text-muted-medium {
  font-size: 13px;
  color: #9CA3AF;
  font-weight: 500;
  white-space: nowrap;
}

.cd-style-65 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.cd-style-133 {
  font-size: 14px;
  color: #111827;
}

.cd-style-28 {
  font-weight: 700;
  font-size: 24px;
  color: #EF4444;
}

.cd-style-99 {
  flex: 1;
  padding-right: 24px;
}

.cd-style-7 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}

.cd-style-152 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cd-style-72 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.cd-style-176 {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: white;
  font-size: 15px;
  color: #111827;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.cd-style-191 {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: white;
  font-size: 15px;
  color: #111827;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
}

.cd-style-123 {
  border-bottom: 1px solid #E5E7EB;
  padding: 20px 24px;
}

.cd-style-182 {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: white;
  font-size: 15px;
  color: #111827;
  outline: none;
  min-height: 80px;
  resize: vertical;
  box-sizing: border-box;
}

.cd-style-71 {
  color: #EF4444;
  font-size: 13px;
}

.cd-style-196 {
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 4px;
}

.cd-style-13 {
  color: #FF7B00;
  font-weight: 500;
  text-decoration: none;
}

.cd-style-109 {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: white;
}

.cd-style-107 {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Extracted Inline Styles from View Application Modal */
.view-app-modal-style-1 {
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: white;
}

.view-app-modal-style-2 {
  border-bottom: 1px solid #E5E7EB;
  padding: 20px 24px;
}

.view-app-modal-style-3 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.view-app-modal-style-4 {
  font-size: 18px;
  color: #111827;
  font-weight: 600;
  margin: 0 0 6px;
}

.view-app-modal-style-5 {
  color: #6B7280;
  font-size: 13px;
}

.view-app-modal-style-6 {
  background: none;
  border: none;
  cursor: pointer;
  color: #6B7280;
  padding: 4px;
}

.view-app-modal-style-7 {
  padding: 0;
  display: flex;
  flex: 1;
  min-height: 450px;
}

.view-app-modal-style-8 {
  width: 220px;
  border-right: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 4px;
  background: white;
}

.view-app-modal-style-9 {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #EFF6FF;
  color: #2563EB;
}

.view-app-modal-style-10 {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6B7280;
  transition: 0.2s;
}

.view-app-modal-style-11 {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: #FAFAFA;
}

.app-view-content-pane-visible {
  display: block;
}

.app-view-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.app-view-label {
  width: 150px;
  font-size: 14px;
  color: #4B5563;
  font-weight: 600;
}

.app-view-value {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  color: #111827;
}

.app-view-content-pane-hidden {
  display: none;
}

.view-app-modal-style-12 {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  color: #2563EB;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.view-app-modal-style-13 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.view-app-modal-style-14 {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.view-app-modal-style-15 {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.view-app-modal-style-16 {
  color: #111827;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.view-app-modal-style-17 {
  color: #9CA3AF;
  font-weight: 400;
  font-size: 13px;
}

.view-app-modal-style-18 {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  color: #10B981;
  font-weight: 500;
}

.view-app-modal-style-19 {
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #E5E7EB;
  background: white;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.view-app-modal-style-20 {
  border: 1px solid #E5E7EB;
  background: white;
  color: #111827;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  margin-right: auto;
}

.view-app-modal-style-21 {
  background: #10B981;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-app-modal-style-22 {
  border: 1px solid #FECACA;
  background: white;
  color: #EF4444;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  align-items: center;
  gap: 6px;
}

/* ===== RIGHT SIDEBAR ===== */
.afr-right-sidebar {
  width: 340px;
  background: #FFFFFF;
  border-left: 1px solid var(--afr-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.afr-right-sidebar-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.afr-stats-card {
  background: #FFFFFF;
  border: 1px solid var(--afr-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--afr-shadow-card);
}

.afr-stats-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.afr-stats-card-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--afr-muted-fg);
  margin-bottom: 8px;
}

.afr-stats-card-value-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.afr-stats-card-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--afr-fg);
  line-height: 1;
}

.afr-stats-card-badge {
  background: #FEF2F2;
  color: #EF4444;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
}

.afr-report-btn {
  background: transparent;
  border: 1px solid var(--afr-border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--afr-fg);
  cursor: pointer;
}

.afr-divider {
  height: 1px;
  background: var(--afr-border);
  margin: 0 0;
}

.afr-stats-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.afr-stat-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.afr-stat-col-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--afr-muted-fg);
  margin-bottom: 6px;
}

.afr-stat-col-value {
  margin-top: auto;
  font-size: 16px;
  font-weight: 700;
  color: var(--afr-fg);
  margin-bottom: 5px;
}

.afr-stat-col-trend {
  font-size: 11px;
  font-weight: 500;
  color: var(--afr-muted-fg);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.afr-stat-col-trend-icon {
  width: 12px;
  height: 12px;
}

.afr-stat-col-trend-icon.down {
  color: #EF4444;
}

.afr-stat-col-trend-icon.up {
  color: #10B981;
}

.afr-stat-bar-1 {
  height: 4px;
  background: #FDE68A;
  border-radius: 2px;
  width: 100%;
}

.afr-stat-bar-2 {
  height: 4px;
  background: #BAE6FD;
  border-radius: 2px;
  width: 100%;
}

.afr-stat-bar-3 {
  height: 4px;
  background: #C4B5FD;
  border-radius: 2px;
  width: 100%;
}

.afr-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.afr-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--afr-muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

.afr-help-btn {
  background: transparent;
  border: none;
  color: var(--afr-muted-fg);
  cursor: pointer;
}

.afr-help-btn i {
  width: 16px;
  height: 16px;
}

.afr-compliance-rates {
  display: flex;
  justify-content: space-between;
  text-align: center;
  padding: 16px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px solid #F1F5F9;
}

.afr-compliance-col {
  flex: 1;
}

.afr-compliance-val-red {
  font-size: 20px;
  font-weight: 700;
  color: #EF4444;
  margin-bottom: 4px;
}

.afr-compliance-val-yellow {
  font-size: 20px;
  font-weight: 700;
  color: #F59E0B;
  margin-bottom: 4px;
}

.afr-compliance-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--afr-muted-fg);
  text-transform: uppercase;
}

.afr-vert-divider {
  width: 1px;
  background: #E2E8F0;
  margin: 0 12px;
}

.afr-vert-divider-transparent {
  width: 1px;
  background: transparent;
}

.afr-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  cursor: pointer;
}

.afr-accordion-header.mb-16 {
  margin-bottom: 16px;
}

.afr-accordion-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.afr-accordion-icon {
  width: 16px;
  height: 16px;
  color: var(--afr-muted-fg);
  transition: transform 0.2s;
}

.afr-accordion-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
}

.afr-accordion-badge-gray {
  background: #F1F5F9;
  color: #64748B;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}

.afr-accordion-badge-red {
  background: #FEF2F2;
  color: #EF4444;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}

.afr-accordion-content {
  padding-left: 24px;
  display: block;
}

.afr-accordion-content.pl-8 {
  padding-left: 8px;
}

.afr-empty-state {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--afr-muted-fg);
  font-size: 13px;
  margin-bottom: 12px;
}

.afr-empty-state i {
  width: 14px;
  height: 14px;
}

.afr-text-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--afr-theme-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.afr-text-link:hover {
  opacity: 0.8;
}

.afr-text-link i {
  width: 14px;
  height: 14px;
}

.afr-client-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid var(--afr-border);
  border-radius: 12px;
  box-shadow: var(--afr-shadow-card);
  transition: box-shadow 0.2s;
}

.afr-client-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.afr-client-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.afr-client-info {
  flex: 1;
}

.afr-client-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.afr-client-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
}

.afr-icon-btn {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 6px;
  color: var(--afr-muted-fg);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.afr-icon-btn:hover {
  background: #F1F5F9;
  color: var(--afr-theme-primary);
}

.afr-icon-btn svg,
.afr-icon-btn i {
  width: 14px;
  height: 14px;
  display: block;
}

.afr-client-desc {
  font-size: 13px;
  color: var(--afr-muted-fg);
  line-height: 1.4;
  margin-top: 2px;
}

.afr-desc-highlight {
  color: #EF4444;
  font-weight: 600;
  background: #FEF2F2;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 2px;
}

.afr-tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.afr-tooltip-wrapper:hover .afr-tooltip-text {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.afr-tooltip-text {
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%) translateX(5px);
  margin-right: 10px;
  background: #475569;
  color: #F8FAFC;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  width: max-content;
  max-width: 210px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 50;
  line-height: 1.4;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.afr-tooltip-text::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent #475569;
}

.afr-empty-state-modern {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 16px;
}

.afr-empty-state-text {
  color: #64748B;
  font-size: 14px;
  font-weight: 400;
}

.afr-empty-state-icon {
  width: 20px;
  height: 20px;
  color: #64748B;
  cursor: help;
}

.afr-text-link-modern {
  font-size: 14px;
  font-weight: 500;
  color: #007A9B;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.afr-text-link-modern i {
  width: 18px;
  height: 18px;
}

.afr-text-link-modern:hover {
  opacity: 0.8;
}

/* ===== YOUR CLIENTS SECTION ===== */
.afr-clients-section {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: var(--afr-radius);
  padding: 15px 20px;
  box-shadow: var(--afr-shadow-card);
  margin-bottom: 10px;
}

.afr-clients-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.afr-clients-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--afr-fg);
  margin: 0;
}

.afr-clients-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.afr-clients-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: hsl(210, 15%, 95%, 0.6);
  border-radius: 8px;
  padding: 8px 12px;
  width: 220px;
}

.afr-clients-search input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--afr-fg);
  width: 100%;
}

.afr-clients-search input::placeholder {
  color: var(--afr-muted-fg);
}

.afr-clients-select-wrap {
  position: relative;
}

.afr-clients-select {
  appearance: none;
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  padding: 8px 32px 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--afr-fg);
  outline: none;
  cursor: pointer;
}

.afr-clients-select-wrap svg {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--afr-muted-fg);
  pointer-events: none;
}

.afr-clients-list {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.afr-clients-list::-webkit-scrollbar {
  display: none;
}

.afr-client-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  min-width: 80px;
  text-align: center;
  cursor: pointer;
}

.afr-client-avatar-wrap {
  position: relative;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.afr-client-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--afr-border);
  z-index: 0;
}

.afr-client-avatar-wrap.status-green::before {
  background: #22c55e;
}

.afr-client-avatar-wrap.status-red::before {
  background: #ef4444;
}

.afr-client-avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
  border: 3px solid white;
  z-index: 1;
}

.afr-client-badge-new {
  position: absolute;
  top: -4px;
  left: -8px;
  background: #0ea5e9;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 2px solid white;
  z-index: 10;
}

.afr-client-status-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border: 2px solid white;
  border-radius: 50%;
  z-index: 10;
}

.afr-client-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.afr-client-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--afr-fg);
  line-height: 1.2;
  margin-top: 7px;
}

.afr-client-item-program {
  font-size: 11px;
  font-weight: 500;
  color: var(--afr-muted-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.afr-program-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.afr-dot-green {
  background: #22c55e;
}

.afr-dot-red {
  background: #ef4444;
}

.afr-dot-orange {
  background: #f97316;
}

/* Initials fallback inside avatar wrap when no photo is present */
.afr-client-avatar-initials-fallback {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #017a9b, #015f78);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 3px solid white;
  user-select: none;
}

.afr-week-drag-handle {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  cursor: grab;
}

.afr-week-drag-handle:active {
  cursor: grabbing;
}

.afr-client-add-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
  margin-bottom: 2px;
}

.afr-client-add-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.afr-client-add-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== DASHBOARD OVERVIEW HEADER ===== */
.afr-dashboard-header {
  margin-bottom: 10px;
}

.afr-dashboard-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--afr-fg);
  margin-bottom: 3px;
}

.afr-dashboard-title-icon {
  width: 20px;
  height: 20px;
  color: #eab308;
}

.afr-dashboard-subtitle {
  color: var(--afr-muted-fg);
  font-size: 13px;
}

/* ===== WORKOUT LEGEND ===== */
.afr-workout-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  width: 100%;
}

.afr-workout-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--afr-muted-fg);
  /* border-left: 1px solid var(--afr-border); */
  padding-left: 16px;
}

.afr-legend-item-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== CHAT WIDGET ===== */
.afr-chat-widget {
  position: fixed;
  bottom: 25px;
  right: 24px;
  width: 340px;
  height: 500px;
  max-height: calc(100vh - 48px);
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  font-family: inherit;
  transition: width 0.3s cubic-bezier(0.2, 0, 0, 1), height 0.3s cubic-bezier(0.2, 0, 0, 1), transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

/* ===== MAXIMIZED CHAT WIDGET ===== */
.afr-chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  display: none;
  backdrop-filter: blur(2px);
}

.afr-chat-widget.afr-chat-maximized {
  width: 85vw;
  height: 85vh;
  max-width: 1400px;
  max-height: 900px;
  bottom: 50%;
  right: 50%;
  transform: translate(50%, 50%);
  flex-direction: row;
  border-radius: 16px;
}

.afr-chat-widget-sidebar {
  display: none;
  width: 320px;
  background: var(--afr-card);
  border-right: 1px solid var(--afr-border);
  flex-direction: column;
  height: 100%;
}

.afr-chat-widget.afr-chat-maximized .afr-chat-widget-sidebar {
  display: flex;
}

.afr-chat-widget-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--afr-card);
  height: 100%;
  overflow: hidden;
  position: relative;
}

.afr-chat-sidebar-header {
  padding: 16px 14px;
  border-bottom: 1px solid var(--afr-border);
  background: var(--afr-card);
}

.afr-chat-sidebar-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--afr-fg);
  margin-bottom: 12px;
}

.afr-chat-sidebar-search {
  position: relative;
}

.afr-chat-sidebar-search input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border-radius: 8px;
  border: 1px solid var(--afr-border);
  background: var(--afr-body-bg);
  outline: none;
  font-size: 13px;
  color: var(--afr-fg);
}

.afr-chat-sidebar-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--afr-muted-fg);
}

textarea.afr-input {
  padding: 10px;
  height: 80px;
}

.afr-chat-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.afr-chat-sidebar-list .afr-msg-item {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.afr-chat-sidebar-list .afr-msg-item:hover {
  background: var(--afr-muted);
}

.afr-chat-sidebar-list .afr-msg-item.active {
  background: rgba(59, 130, 246, 0.08);
}

.afr-chat-widget.afr-chat-minimized {
  height: 60px;
}

.afr-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--afr-card);
  border-bottom: 1px solid var(--afr-border);
  cursor: pointer;
  flex-shrink: 0;
  height: 60px;
}

.afr-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.afr-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.afr-chat-popup {
  flex-direction: column;
  position: absolute;
  bottom: 64px;
  left: 16px;
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  overflow: hidden;
}

.afr-chat-popup-lg {
  width: calc(100% - 32px);
  max-width: 360px;
  height: 320px;
}

.afr-chat-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--afr-border);
}

.afr-chat-popup-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--afr-fg);
}

.afr-chat-popup-close-btn {
  background: transparent;
  border: none;
  color: var(--afr-muted-fg);
  cursor: pointer;
}

.afr-chat-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--afr-muted-fg);
  text-align: center;
}

.afr-chat-empty-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 16px;
  object-fit: cover;
}

.afr-chat-empty-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--afr-fg);
}

.afr-chat-empty-subtitle {
  margin: 0;
  font-size: 13px;
}

.afr-sidebar-search-empty {
  padding: 20px;
  text-align: center;
  color: var(--afr-muted-fg);
  font-size: 13px;
}

.afr-gif-search-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--afr-border);
  border-radius: 6px;
  background: var(--afr-body-bg);
  color: var(--afr-fg);
  outline: none;
  font-size: 13px;
  margin-right: 10px;
}

.afr-gif-results-container {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
}

.afr-chat-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--afr-fg);
}

.afr-chat-header-actions {
  display: flex;
  gap: 4px;
}

.afr-chat-btn {
  background: transparent;
  border: none;
  color: var(--afr-muted-fg);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.afr-chat-btn:hover {
  background: var(--afr-muted);
  color: var(--afr-fg);
}

.afr-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: var(--afr-body-bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.afr-chat-widget.afr-chat-minimized .afr-chat-body,
.afr-chat-widget.afr-chat-minimized .afr-chat-footer {
  display: none;
}

.afr-chat-message {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  max-width: 75%;
}

.afr-chat-received {
  align-self: flex-start;
  align-items: flex-start;
}

.afr-chat-sent {
  align-self: flex-end;
  align-items: flex-end;
}

.afr-msg-delete-btn {
  background: transparent;
  border: none;
  color: var(--afr-destructive);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  margin: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.afr-chat-message:hover .afr-msg-delete-btn {
  opacity: 1;
}

.afr-msg-delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

.afr-audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--afr-body-bg);
  border: 1px solid var(--afr-border);
  border-radius: 30px;
  padding: 6px 14px 6px 6px;
  min-width: 200px;
  max-width: 260px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.afr-chat-sent .afr-audio-player {
  background: var(--afr-theme-primary);
  border-color: var(--afr-theme-primary);
  color: #fff;
}

.afr-chat-received .afr-audio-player {
  background: var(--afr-card);
}

.afr-audio-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--afr-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.1s;
}

.afr-audio-play-btn:active {
  transform: scale(0.95);
}

.afr-chat-sent .afr-audio-play-btn {
  color: var(--afr-theme-primary);
  background: #fff;
}

.afr-audio-waveform {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  position: relative;
  overflow: hidden;
}

.afr-wave-bar {
  flex: 1;
  background: var(--afr-muted-fg);
  border-radius: 2px;
  min-width: 2px;
  opacity: 0.5;
  transition: height 0.2s;
}

.afr-chat-sent .afr-wave-bar {
  background: rgba(255, 255, 255, 0.6);
}

.afr-audio-waveform.playing .afr-wave-bar {
  animation: wave 1s infinite ease-in-out alternate;
}

.afr-audio-waveform.playing .afr-wave-bar:nth-child(odd) {
  animation-delay: 0.1s;
}

.afr-audio-waveform.playing .afr-wave-bar:nth-child(even) {
  animation-delay: 0.2s;
}

.afr-audio-waveform.playing .afr-wave-bar:nth-child(3n) {
  animation-delay: 0.3s;
}

.afr-audio-waveform.playing .afr-wave-bar:nth-child(4n) {
  animation-delay: 0.4s;
}

@keyframes wave {
  0% {
    transform: scaleY(0.5);
  }

  100% {
    transform: scaleY(1.2);
  }
}

.afr-audio-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--afr-theme-primary);
  opacity: 0.3;
  width: 0%;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.afr-chat-sent .afr-audio-progress {
  background: #fff;
  opacity: 0.4;
}

.afr-audio-time {
  font-size: 12px;
  font-weight: 500;
  color: var(--afr-muted-fg);
}

.afr-chat-sent .afr-audio-time {
  color: rgba(255, 255, 255, 0.9);
}

.afr-chat-sent {
  align-self: flex-end;
}

.afr-chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--afr-fg);
  white-space: pre-wrap;
  word-break: break-word;
}

.afr-chat-received .afr-chat-bubble {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-bottom-left-radius: 4px;
}

.afr-chat-sent .afr-chat-bubble {
  background: var(--afr-theme-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.afr-chat-media-bubble {
  padding: 3px !important;
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  line-height: 0 !important;
  max-width: 280px !important;
}

.afr-chat-media-bubble img {
  max-width: 274px !important;
  max-height: 250px !important;
  width: auto !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 9px !important;
  display: block !important;
  cursor: pointer !important;
  transition: transform 0.2s ease;
}

.afr-chat-media-bubble img:hover {
  transform: scale(1.02);
}

.afr-chat-sent .afr-chat-media-bubble {
  background: rgba(26, 132, 161, 0.08) !important;
  border-color: rgba(26, 132, 161, 0.3) !important;
}

.afr-chat-time {
  font-size: 11px;
  color: var(--afr-muted-fg);
  margin-bottom: 4px;
  white-space: nowrap;
}

.afr-chat-sent .afr-chat-time {
  /* optional sent styles */
}

@keyframes afrSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.afr-broadcast-bubble {
  max-width: 100%;
  width: fit-content;
  background: var(--afr-theme-primary, #1a84a1);
  color: #fff;
  padding: 8px 14px;
  border-radius: 14px 14px 3px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.afr-chat-footer {
  padding: 12px 0 12px 0;
  background: var(--afr-card);
  border-top: 1px solid var(--afr-border);
  flex-shrink: 0;
  display: flex;
}

.afr-chat-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 4px 4px 12px;
  font-size: 14px;
  color: var(--afr-fg);
  outline: none;
  resize: none;
}

.afr-chat-input::placeholder {
  color: var(--afr-muted-fg);
}

.afr-chat-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.afr-chat-icons {
  display: flex;
  gap: 4px;
}

.afr-chat-icon-btn {
  background: transparent;
  border: none;
  color: var(--afr-muted-fg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.afr-chat-icon-btn:hover {
  background: var(--afr-muted);
  color: var(--afr-theme-primary);
}

.afr-chat-send-btn {
  background: var(--afr-theme-primary);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

button.afr-chat-send-btn svg {
  width: 16px !important;
  height: 16px !important;
}

.afr-chat-send-btn:hover {
  opacity: 0.9;
}

@keyframes afrChatSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.afr-chat-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(26, 132, 161, 0.2);
  border-top-color: var(--afr-theme-primary, #1a84a1);
  border-radius: 50%;
  animation: afrChatSpin 0.75s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

.afr-chat-popup-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--afr-fg);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
}

.afr-chat-popup-btn:hover {
  background: var(--afr-muted);
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.afr-img-grid {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  overflow: hidden;
  max-width: 260px;
}

.afr-img-grid-1 {
  grid-template-columns: 1fr;
}

.afr-img-grid-1 img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  cursor: pointer;
}

.afr-img-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.afr-img-grid-2 img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  cursor: pointer;
}

.afr-img-grid-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 140px 100px;
}

.afr-img-grid-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.afr-img-grid-3 img:first-child {
  grid-column: span 2;
}

.afr-img-grid-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 120px 120px;
}

.afr-img-grid-4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.afr-img-more {
  position: relative;
  cursor: pointer;
}

.afr-img-more::after {
  content: '+' attr(data-count);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
}

/* ===== WORKOUT REVIEW SECTION ===== */
.afr-workout-review-section {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: 12px;
  margin-top: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.afr-workout-review-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--afr-border);
  background: var(--afr-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.afr-workout-review-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.afr-workout-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--afr-muted);
  color: var(--afr-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.afr-workout-review-name {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--afr-fg);
}

.afr-workout-review-meta {
  margin: 0;
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.afr-workout-review-meta strong {
  color: var(--afr-fg);
  font-weight: 600;
}

.afr-workout-review-body {
  padding: 24px;
}

.afr-workout-review-level {
  margin: 0 0 20px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--afr-fg);
}

.afr-exercise-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--afr-border);
}

.afr-exercise-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.afr-exercise-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.afr-exercise-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.afr-exercise-icon,
.afr-exercise-letter {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--afr-muted);
  color: var(--afr-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.afr-exercise-icon i {
  width: 16px;
  height: 16px;
}

.afr-exercise-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--afr-fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.afr-exercise-history {
  font-size: 12px;
  color: var(--afr-theme-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-weight: 500;
  cursor: pointer;
}

.afr-exercise-history i {
  width: 12px;
  height: 12px;
}

.afr-exercise-chevron {
  width: 16px;
  height: 16px;
  color: var(--afr-muted-fg);
}

.afr-exercise-status-container {
  position: relative;
  display: flex;
  align-items: center;
}

.afr-exercise-status {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.afr-exercise-status i {
  width: 16px;
  height: 16px;
}

.afr-status-done,
.afr-status-filled {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.afr-status-missed {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.afr-status-loading {
  background: var(--afr-muted);
  color: var(--afr-muted-fg);
  cursor: default;
}

.afr-spin {
  animation: afr-spin 1s linear infinite;
}

@keyframes afr-spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Tooltip styles */
.afr-exercise-tooltip {
  position: absolute;
  right: calc(100% + 8px);
  background: #475569;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  width: max-content;
  max-width: 200px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.afr-exercise-status-container:hover .afr-exercise-tooltip {
  opacity: 1;
  visibility: visible;
}

.afr-exercise-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent #475569;
}

.afr-tooltip-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}

.afr-tooltip-desc {
  font-size: 11px;
  opacity: 0.9;
}

.afr-exercise-content {
  padding-left: 40px;
  font-size: 14px;
  color: var(--afr-fg);
  line-height: 1.5;
}

.afr-exercise-content p {
  margin-top: 0;
  margin-bottom: 12px;
}

.afr-exercise-content p:last-child {
  margin-bottom: 0;
}

.afr-exercise-note {
  background: var(--afr-body-bg);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  font-weight: 500;
  color: var(--afr-fg);
}

/* Comments Section */
.afr-workout-comments {
  border-top: 1px solid var(--afr-border);
  padding: 24px;
  background: var(--afr-card);
}

.afr-comment-thread {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.afr-comment-item {
  display: flex;
  gap: 16px;
}

.afr-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--afr-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.afr-comment-content {
  flex: 1;
}

.afr-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.afr-comment-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
}

.afr-comment-time {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.afr-comment-edit {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--afr-muted-fg);
  cursor: pointer;
  padding: 4px;
}

.afr-comment-edit i {
  width: 14px;
  height: 14px;
}

.afr-comment-text {
  font-size: 14px;
  color: var(--afr-fg);
}

.afr-comment-client {}

.afr-comment-client .afr-client-badge {
  margin-left: 4px;
}

.afr-workout-comment-input {
  border-top: 1px solid var(--afr-border);
  background: var(--afr-body-bg);
  padding: 16px 24px;
}

.afr-comment-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.afr-comment-tab {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-muted-fg);
  padding: 0 0 8px 0;
  cursor: pointer;
  position: relative;
}

.afr-comment-tab.active {
  color: var(--afr-fg);
}

.afr-comment-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--afr-theme-primary);
  border-radius: 2px 2px 0 0;
}

.afr-comment-input-area {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: 8px;
}

.afr-comment-input-area textarea {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 16px;
  min-height: 80px;
  resize: vertical;
  font-size: 14px;
  color: var(--afr-fg);
  outline: none;
  font-family: inherit;
}

.afr-comment-input-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-top: 1px solid var(--afr-border);
}

.afr-comment-input-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.afr-comment-input-tools button {
  background: transparent;
  border: none;
  color: var(--afr-muted-fg);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.afr-comment-input-tools button i {
  width: 16px;
  height: 16px;
}

.afr-comment-edit-tool {
  background: var(--afr-muted);
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afr-fg);
  cursor: pointer;
}

.afr-comment-edit-tool i {
  width: 14px;
  height: 14px;
}

.afr-comment-send {
  padding: 6px 16px;
  font-size: 13px;
}

/* ===== HISTORY MODAL ===== */
.afr-history-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.afr-history-modal-content {
  background: var(--afr-card);
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.afr-history-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--afr-border);
}

.afr-history-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--afr-fg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.afr-history-modal-title i {
  width: 20px;
  height: 20px;
  color: var(--afr-muted-fg);
}

.afr-history-modal-close {
  background: transparent;
  border: none;
  color: var(--afr-muted-fg);
  cursor: pointer;
  padding: 4px;
}

.afr-history-modal-close:hover {
  color: var(--afr-fg);
}

.afr-history-modal-body {
  padding: 24px;
  overflow-y: auto;
}

.afr-history-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--afr-fg);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.afr-history-subtitle i {
  width: 18px;
  height: 18px;
}

.afr-history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.afr-history-card {
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--afr-body-bg);
}

.afr-history-card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--afr-border);
  font-weight: 600;
  color: var(--afr-fg);
  font-size: 14px;
  background: var(--afr-card);
}

.afr-history-card-body {
  padding: 16px;
}

.afr-history-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--afr-fg);
}

.afr-history-card-letter {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--afr-muted);
  color: var(--afr-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}

.afr-history-card-text {
  font-size: 14px;
  color: var(--afr-fg);
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 16px;
}

.afr-history-card-no-result {
  background: #1E293B;
  color: #fff;
  padding: 12px 16px;
  border-left: 3px solid #10B981;
  border-radius: 4px;
  font-style: italic;
  font-size: 14px;
  margin-bottom: 16px;
}

.afr-history-card-link {
  color: var(--afr-theme-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.afr-history-card-link:hover {
  text-decoration: underline;
}

.afr-history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--afr-muted-fg);
  background: var(--afr-body-bg);
  border-radius: 8px;
  border: 1px dashed var(--afr-border);
}

.afr-history-empty i {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.afr-history-empty h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: var(--afr-fg);
}

.afr-history-empty p {
  margin: 0;
  font-size: 14px;
}

/* ===== EXERCISE REPLY BLOCK ===== */
.afr-exercise-reply {
  background: rgba(0, 128, 128, 0.05);
  border-left: 3px solid #008080;
  border-radius: 4px;
  padding: 12px 16px;
  margin-top: 16px;
}

.afr-exercise-reply p {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--afr-fg);
  font-size: 14px;
}

.afr-exercise-reply-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  max-width: 600px;
}

.afr-exercise-reply-images img,
.afr-exercise-reply-images video {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}

.afr-exercise-reply-images img:hover,
.afr-exercise-reply-images video:hover {
  opacity: 0.85;
}

/* ===== NOTE TAB ===== */
.afr-note-saved-badge {
  display: none;
  background: #ef4444;
  color: white;
  border-radius: 4px;
  margin-left: 4px;
  padding: 2px;
  align-items: center;
  justify-content: center;
}

.afr-note-cancel-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--afr-muted-fg);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.afr-note-delete-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.afr-note-delete-popup {
  display: none;
  position: absolute;
  bottom: 60px;
  right: 16px;
  background: var(--afr-card);
  color: var(--afr-fg);
  padding: 16px;
  border-radius: 8px;
  box-shadow: var(--afr-shadow-card);
  z-index: 50;
  border: 1px solid var(--afr-border);
  width: 250px;
}

.afr-note-delete-popup-title {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.afr-note-delete-popup-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.afr-note-delete-popup-cancel {
  background: transparent;
  border: none;
  color: var(--afr-muted-fg);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.afr-note-delete-popup-confirm {
  background: #fee2e2;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
}

/* ===== FILTERS & DATE HEADER ===== */
.afr-date-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0px;
  margin-top: 15px;
}

.afr-date-display-day {
  font-size: 14px;
  color: var(--afr-muted-fg);
  font-weight: 500;
}

.afr-date-display-date {
  font-size: 20px;
  font-weight: 700;
  color: var(--afr-fg);
  line-height: 1;
  letter-spacing: -0.5px;
  margin-top: 5px;
}

.afr-filter-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.afr-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
  user-select: none;
}

.afr-checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--afr-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.afr-checkbox-custom.checked {
  background: var(--afr-theme-primary-dark);
  border-color: var(--afr-theme-primary-dark);
}

.afr-custom-select {
  position: relative;
}

.afr-select-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: hsl(0deg 0% 100%);
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #000000;
  cursor: pointer;
  padding: 6px 14px;
  transition: all 0.2s ease;
  border: 1px solid #d9dde3;
}

.afr-select-trigger:hover {
  filter: brightness(0.95);
}

.afr-select-trigger i {
  width: 14px;
  height: 14px;
  color: var(--afr-theme-primary);
}

.afr-select-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  top: calc(100% + 6px);
  right: 0;
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  width: 200px;
  z-index: 100;
  overflow: hidden;
  padding: 6px 0;
}

.afr-select-group {
  padding: 10px 16px 4px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--afr-muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.afr-select-option {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--afr-fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease;
}

.afr-select-option.indented {
  padding-left: 24px;
}

.afr-select-option:hover {
  background: var(--afr-muted);
}

.afr-select-option.selected {
  background: var(--afr-muted);
  color: var(--afr-theme-primary);
  font-weight: 600;
}

.afr-select-option.selected:hover {
  background: var(--afr-muted);
}

/* ===== EXERCISE ACCORDION ===== */
.afr-exercise-header {
  cursor: pointer;
  user-select: none;
}

.afr-exercise-item.collapsed .afr-exercise-content {
  display: none;
}

.afr-exercise-chevron {
  transition: transform 0.2s ease;
}

.afr-exercise-item.collapsed .afr-exercise-chevron {
  transform: rotate(-90deg);
}

/* Add Client Modal CSS */
.afr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.afr-modal {
  background: var(--afr-card, #fff);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: afrModalFadeIn 0.2s ease-out;
}

@keyframes afrModalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.afr-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--afr-border, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.afr-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--afr-fg, #111827);
  margin: 0;
}

.afr-modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--afr-muted-fg, #6b7280);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 4px;
  transition: background 0.15s, color 0.15s;
}

.afr-modal-close:hover {
  background: var(--afr-body-bg, #f3f4f6);
  color: var(--afr-fg, #111827);
}

.afr-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.afr-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--afr-border, #e5e7eb);
  flex-shrink: 0;
  background: var(--afr-card, #fff);
}

.afr-form-group {
  margin-bottom: 20px;
}

.afr-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--afr-fg, #111827);
  margin-bottom: 8px;
}

.afr-form-label .text-danger {
  color: #EF4444;
}

.afr-segmented-control {
  display: flex;
  background: var(--afr-body-bg, #f3f4f6);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--afr-border, #e5e7eb);
  width: fit-content;
}

.afr-segment-btn {
  padding: 5px 8px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-muted-fg, #6b7280);
  cursor: pointer;
  transition: all 0.2s;
}

.afr-segment-btn.active {
  background: var(--afr-primary, #2563EB);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.afr-hint-box {
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  background: #FFFBEB;
  border-color: #FDE68A;
}

.afr-hint-text {
  font-size: 14px;
  color: #92400E;
  line-height: 1.5;
}

.afr-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--afr-border, #e5e7eb);
  border-radius: 8px;
  background: var(--afr-card, #fff);
  color: var(--afr-fg, #111827);
  font-size: 14px;
  transition: border-color 0.2s;
}

.afr-input:focus {
  outline: none;
  border-color: var(--afr-primary, #2563EB);
}

.afr-input::placeholder {
  color: var(--afr-muted-fg, #9CA3AF);
}

.afr-additional-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--afr-fg, #111827);
  cursor: pointer;
  user-select: none;
  margin-top: 8px;
}

.afr-additional-toggle i {
  transition: transform 0.2s;
}

.afr-additional-toggle.open i {
  transform: rotate(90deg);
}

.afr-input-suffix {
  display: flex;
  align-items: center;
  border: 1px solid var(--afr-border, #e5e7eb);
  border-radius: 8px;
  background: var(--afr-card, #fff);
  overflow: hidden;
  height: 40px;
  flex: 1;
}

.afr-input-suffix input {
  border: none;
  height: 100%;
  flex: 1;
  padding: 0 12px;
  font-size: 14px;
  background: transparent;
  color: var(--afr-fg);
  min-width: 0;
}

.afr-input-suffix input:focus {
  outline: none;
}

.afr-input-suffix span {
  padding: 0 12px;
  color: var(--afr-muted-fg, #6b7280);
  font-size: 14px;
  font-weight: 500;
  border-left: 1px solid var(--afr-border, #e5e7eb);
  background: var(--afr-body-bg, #f9fafb);
  display: flex;
  align-items: center;
  height: 100%;
}

.afr-grid-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.afr-grid-option {
  border: 1px solid var(--afr-border, #e5e7eb);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-fg);
  cursor: pointer;
  transition: all 0.2s;
}

.afr-grid-option:hover {
  background: var(--afr-body-bg, #f3f4f6);
}

.afr-grid-option.active {
  background: var(--afr-primary, #2563EB);
  color: #fff;
  border-color: var(--afr-primary, #2563EB);
}

.afr-upload-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.afr-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--afr-body-bg, #f3f4f6);
  border: 1px dashed var(--afr-border, #d1d5db);
}

.afr-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--afr-fg);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.afr-upload-btn:hover {
  color: var(--afr-primary);
}

.afr-upload-hint {
  font-size: 12px;
  color: var(--afr-muted-fg);
  margin-top: 4px;
}

.afr-phone-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--afr-border, #e5e7eb);
  border-radius: 8px;
  height: 40px;
  background: var(--afr-card);
}

.afr-phone-country {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  border-right: 1px solid var(--afr-border);
  cursor: pointer;
  height: 100%;
}

.afr-phone-country:hover {
  background: var(--afr-body-bg);
}

.afr-switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.afr-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.afr-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.afr-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--afr-border, #d1d5db);
  transition: .4s;
  border-radius: 24px;
}

.afr-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input:checked+.afr-slider {
  background-color: #10B981;
}

input:checked+.afr-slider:before {
  transform: translateX(20px);
}

.afr-switch-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--afr-fg);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
  margin-left: -10px;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 10px;
  padding-left: 10px;
}

.col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding-right: 10px;
  padding-left: 10px;
}

@media (max-width: 768px) {

  .col-md-6,
  .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.afr-modal-body {
  min-height: 0;
}

.afr-modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: #fff;
}


/* Modal CSS Refactoring */
.iti {
  width: 100%;
}

.iti__flag-container {
  z-index: 10;
}

.iti--container {
  z-index: 10005 !important;
}

.afr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}

.afr-modal {
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  background: var(--afr-card, #fff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.afr-modal-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-bottom: none;
  padding: 24px 24px 16px 24px;
  position: relative;
}

.afr-modal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--afr-fg, #111827);
  margin: 0;
}

.afr-modal-subtitle {
  font-size: 14px;
  color: var(--afr-muted-fg);
  margin-top: 4px;
}

.afr-modal-close {
  position: absolute;
  right: 24px;
  top: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--afr-muted-fg);
}

.afr-modal-body {
  padding: 0 10px 24px 15px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.afr-modal-tabs {
  display: flex;
  background: var(--afr-body-bg, #f3f4f6);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.afr-modal-tab {
  flex: 1;
  text-align: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--afr-muted-fg, #6b7280);
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all 0.2s;
}

.afr-modal-tab.active {
  background: #ffffff;
  color: var(--afr-fg, #111827);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.afr-hint-box {
  margin-bottom: 24px;
  padding: 12px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.afr-hint-icon {
  width: 16px;
  height: 16px;
  color: #D97706;
  margin-top: 2px;
  flex-shrink: 0;
}

.afr-hint-text {
  font-size: 13px;
  color: #92400E;
  margin: 0;
}

.afr-modal-section {
  border: 1px solid var(--afr-border, #e5e7eb);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  background: #ffffff;
}

.afr-modal-section-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg, #111827);
  margin-bottom: 4px;
}

.afr-modal-section-desc {
  font-size: 13px;
  color: var(--afr-muted-fg, #6b7280);
  margin-bottom: 16px;
}

.afr-list-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--afr-border, #e5e7eb);
}

.afr-list-toggle:last-child {
  border-bottom: none;
}

.afr-list-toggle-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg, #111827);
}

.afr-modal-footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--afr-border, #e5e7eb);
  background: var(--afr-card, #fff);
  flex-shrink: 0;
}

.afr-btn-cancel {
  background: #ffffff;
  border: 1px solid var(--afr-border, #d1d5db);
  color: #374151;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.afr-btn-cancel:hover {
  background: var(--afr-body-bg, #f9fafb);
}

.afr-submit-btn-modal {
  width: auto;
  padding: 10px 24px;
}

.afr-select {
  padding-right: 32px;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%236b7280%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ===== CUSTOM GROUP MANAGEMENT FLOW STYLES ===== */

.afr-group-badge {
  background: #1e293b;
  /* dark slate-800 background */
  color: #ffffff;
  /* white text */
  border-radius: 9999px;
  /* pill shape */
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  line-height: 1;
}

.afr-group-badge-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  /* light gray */
  transition: color 0.2s;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
}

.afr-group-badge-close:hover {
  color: #ef4444;
  /* red hover */
}

.afr-group-badge-close svg {
  width: 14px;
  height: 14px;
}

.afr-group-add-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
  vertical-align: middle;
}

.afr-group-add-btn:hover {
  border-color: #94a3b8;
  background-color: #f8fafc;
  color: #334155;
}

.afr-group-add-btn svg {
  width: 16px;
  height: 16px;
}

.afr-group-add-to-group-btn {
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
  vertical-align: middle;
}

.afr-group-add-to-group-btn:hover {
  border-color: #94a3b8;
  background-color: #f8fafc;
}

.afr-group-add-to-group-btn svg {
  width: 14px;
  height: 14px;
}

.afr-group-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #ffffff;
  /* light background */
  border: 1px solid #e2e8f0;
  /* minimal light border */
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  /* soft shadow */
  width: 220px;
  z-index: 100;
  padding: 6px;
  display: flex;
  flex-direction: column;
}

.afr-group-select-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 150px;
  overflow-y: auto;
}

.afr-group-select-list::-webkit-scrollbar {
  width: 4px;
}

.afr-group-select-list::-webkit-scrollbar-track {
  background: transparent;
}

.afr-group-select-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.afr-group-select-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.afr-group-select-item {
  border: none;
  border-radius: 8px;
  /* Clean rounded corners, not too round */
  height: 36px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Space out group name and checkmark */
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  text-align: left;
}

.afr-group-select-item.selected {
  background: #eff6ff;
  /* soft primary blue background */
  color: #2563eb;
  /* primary blue text */
  font-weight: 600;
}

.afr-group-select-item.selected:hover {
  background: #dbeafe;
  /* slightly darker blue on hover */
}

.afr-group-select-item.unselected {
  background: transparent;
  color: #475569;
  /* slate-600 */
}

.afr-group-select-item.unselected:hover {
  background: #f1f5f9;
  /* slate-100 */
  color: #1e293b;
  /* slate-900 */
}

.afr-group-select-divider {
  height: 1px;
  background: #e2e8f0;
  /* light gray divider */
  margin: 4px 0;
}

.afr-group-select-create-btn {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  color: #2563eb;
  /* Blue color for create action */
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.afr-group-select-create-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
}

.afr-group-select-create-btn svg {
  width: 14px;
  height: 14px;
  color: #2563eb;
}

/* ===== TABS FOR CLIENT LISTING ===== */
.afr-tabs-container {
  display: inline-flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid #e0e3e5;
}

.afr-tab-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  /* muted slate */
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  outline: none;
}

.afr-tab-btn:hover {
  color: #1e293b;
  /* dark slate */
}

.afr-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  /* dark text */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.afr-tab-badge {
  background: #e2e8f0;
  color: #475569;
  border-radius: 9999px;
  min-width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  transition: all 0.2s;
  line-height: 1;
}

.afr-tab-btn.active .afr-tab-badge {
  background: #f1f5f9;
  /* Subtle gray for active badge */
  color: #0f172a;
  /* Dark text for active badge */
}

/* ===== CLIENT SELECTION BAR ===== */
.afr-selection-bar {
  position: fixed;
  bottom: 25px;
  left: 58%;
  transform: translateX(-50%) translateY(100px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  width: 90%;
  max-width: 900px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.afr-selection-bar.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.afr-selection-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.afr-selection-badge-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
}

.afr-selection-badge {
  background: #3b82f6;
  /* Blue badge */
  color: #ffffff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.afr-selection-clear {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.afr-selection-clear:hover {
  color: #0f172a;
}

.afr-selection-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.afr-selection-action-btn {
  background: transparent;
  border: none;
  color: #475569;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.afr-selection-action-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.afr-selection-right {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.afr-selection-key {
  background: #e2e8f0;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-weight: 600;
  color: #334155;
  font-size: 11px;
}

/* Tooltip for Selection Bar Buttons */
.afr-selection-action-btn[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1e293b;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 100;
}

.afr-selection-action-btn[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border-width: 4px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 100;
}

.afr-selection-action-btn:hover[data-tooltip]::before,
.afr-selection-action-btn:hover[data-tooltip]::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== CLIENT PAGE INLINE-CSS REFACTOR ===== */
.afr-icon-14 {
  width: 12px;
  height: 12px;
}

.afr-icon-16 {
  width: 16px;
  height: 16px;

}

.afr-icon-18 {
  width: 18px;
  height: 18px;
}

.afr-icon-20 {
  width: 20px;
  height: 20px;
}

.afr-icon-24 {
  width: 24px;
  height: 24px;
}

.afr-icon-32 {
  width: 32px;
  height: 32px;
}

.afr-full-width {
  width: 100%;
}

.afr-hidden {
  display: none !important;
}

.afr-hidden-file-input {
  display: none;
}

.afr-opacity-0 {
  opacity: 0;
}

.afr-opacity-1 {
  opacity: 1;
}

.afr-text-center {
  text-align: center;
}

.afr-text-dark {
  color: #111827;
}

.afr-text-muted-dark {
  color: #4b5563;
}

.afr-font-normal {
  font-weight: 400;
}

.afr-fg-icon {
  color: var(--afr-fg);
}

.afr-icon-muted-dark {
  color: #4b5563;
}

.afr-client-overlay {
  display: none;
}

.afr-overlay-top {
  z-index: 10000;
}

.afr-client-page-top {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.afr-client-top-actions,
.afr-btn-icon-label,
.afr-modal-title-row,
.afr-modal-header-between {
  display: flex;
  align-items: center;
}

.afr-client-top-actions {
  gap: 12px;
}

.afr-btn-icon-label {
  gap: 6px;
  cursor: pointer;
}

.afr-client-manage-groups-wrap,
.afr-client-action-wrap {
  position: relative;
}

.afr-client-manage-groups-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--afr-card);
  color: var(--afr-fg);
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.afr-client-manage-groups-btn:hover,
.afr-client-dropdown-link:hover,
.afr-client-action-link:hover {
  background: var(--afr-body-bg);
}

.afr-client-manage-groups-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 220px;
  z-index: 10;
  padding: 4px;
}

.afr-client-dropdown-link,
.afr-client-action-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--afr-fg);
  text-decoration: none;
  font-size: 13px;
  border-radius: 6px;
  transition: background 0.2s;
}

.afr-client-dropdown-link {
  font-size: 14px;
}

.afr-client-dropdown-icon {
  color: var(--afr-muted-fg);
}

.afr-client-checkbox-col {
  width: 40px;
}

.afr-client-actions-col {
  width: 80px;
}

.afr-client-checkbox {
  width: 16px;
  height: 16px;
}

.afr-client-sort-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
}

.afr-form-group-no-margin,
.afr-pay-form-group-no-margin {
  margin-bottom: 0;
}

.afr-client-phone-input {
  width: 100%;
  border-radius: 8px;
  padding-left: 50px;
}

.afr-input-white-bg {
  background-color: #fff;
}

.afr-segment-btn-fill {
  flex: 1;
}

.afr-client-measure-row {
  display: flex;
  gap: 8px;
}

#heightMetric .afr-input-suffix,
#weightMetric.afr-input-suffix,
#heightMetric .afr-input-suffix input,
#weightMetric.afr-input-suffix input {
  background: #ffffff;
  color: var(--afr-fg, #111827);
}

#heightMetric .afr-input-suffix span,
#weightMetric.afr-input-suffix span {
  background: #f9fafb;
  color: var(--afr-muted-fg, #6b7280);
}

.afr-avatar-cover {
  background-size: cover;
  background-position: center;
}

.afr-list-toggle-text-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.afr-list-toggle-subtext {
  font-size: 12px;
  color: var(--afr-muted-fg);
  font-weight: 400;
}

.afr-modal-sm {
  max-width: 480px;
}

.afr-modal-xs {
  max-width: 400px;
}

.afr-modal-transfer {
  position: relative;
  max-width: 420px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  padding: 24px;
  overflow: visible !important;
}

.afr-modal-light-card {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.afr-modal-text-center {
  text-align: center;
}

.afr-modal-relative {
  position: relative;
}

.afr-modal-header-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px 16px;
}

.afr-modal-header-light {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.afr-modal-header-no-border {
  border-bottom: none;
}

.afr-modal-header-relative {
  position: relative;
}

.afr-modal-header-between {
  justify-content: space-between;
  padding: 20px 24px;
}

.afr-modal-close-top-right {
  position: absolute;
  right: 24px;
  top: 24px;
}

.afr-modal-close-corner {
  position: absolute;
  right: 16px;
  top: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #9ca3af;
}

.afr-modal-close-muted {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
}

.afr-modal-title-row {
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.afr-modal-title-row-default {
  color: var(--afr-fg);
}

.afr-modal-title-row-dark {
  color: #111827;
}

.afr-modal-title-lg {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  line-height: 1;
}

.afr-modal-title-md {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--afr-fg);
}

.afr-modal-title-sm {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #111827;
}

.afr-modal-subtitle-centered {
  font-size: 14px;
  color: var(--afr-muted-fg);
  max-width: 380px;
  margin: 8px 0 0;
  line-height: 1.5;
  text-align: center;
}

.afr-modal-subtitle-sm {
  font-size: 13px;
}

.afr-modal-subtitle-reset {
  font-size: 14px;
  color: var(--afr-muted-fg);
  margin: 0;
  line-height: 1.5;
}

.afr-modal-note {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
  font-weight: 400;
}

.afr-modal-body-tight-top {
  padding: 0 24px 24px;
}

.afr-modal-body-scroll-light {
  padding: 24px;
  background: #ffffff;
  max-height: 320px;
  overflow-y: auto;
}

.afr-modal-body-stack-center {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.afr-modal-body-compact {
  padding: 24px;
}

.afr-modal-body-label {
  font-size: 14px;
  color: #4b5563;
  margin: 0 0 16px;
}

.afr-modal-footer-no-border {
  border-top: none;
}

.afr-modal-footer-tall {
  padding: 0 24px 32px;
}

.afr-modal-footer-light {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.afr-modal-footer-end {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.afr-form-label-strong {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--afr-fg);
}

.afr-btn-full {
  width: 100%;
  justify-content: center;
}

.afr-btn-tall {
  height: 44px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.afr-btn-primary-solid {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.afr-btn-cancel-light {
  border: 1px solid #d1d5db;
  color: #374151;
  background: #ffffff;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.afr-success-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.afr-success-badge-icon {
  width: 28px;
  height: 28px;
  stroke-width: 3;
}

.afr-margin-top-sm {
  margin-top: 8px;
}

.afr-edit-groups-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.afr-empty-state-note {
  text-align: center;
  color: #9ca3af;
  padding: 20px;
  font-size: 14px;
}

.afr-edit-group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.afr-edit-group-input-wrap {
  flex: 1;
  margin-right: 12px;
}

.afr-edit-group-input {
  border: 2px solid var(--afr-primary, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: #ffffff;
  color: #111827;
  font-weight: 500;
  height: 36px;
  border-radius: 6px;
  padding: 0 10px;
  width: 100%;
  outline: none;
}

.afr-edit-group-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.afr-edit-group-name:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.afr-icon-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.afr-delete-group-btn {
  color: #9ca3af;
}

.afr-delete-group-btn:hover {
  color: #ef4444;
}

.afr-inline-spinner {
  vertical-align: middle;
  margin-right: 8px;
}

.afr-group-badge-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.afr-group-badge-static {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
}

.afr-empty-inline-note {
  color: #64748b;
  font-size: 14px;
}

.afr-group-select-empty {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  padding: 12px 0;
}

.afr-group-select-check {
  color: #2563eb;
  flex-shrink: 0;
}

.afr-client-empty-cell {
  text-align: center;
  padding: 40px 20px;
  color: var(--afr-muted-fg);
  font-size: 14px;
}

.afr-client-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.afr-client-empty-icon {
  color: var(--afr-border);
}

.afr-client-groups-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.afr-client-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.afr-client-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--afr-muted);
  color: var(--afr-muted-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}

.afr-client-name-text {
  font-weight: 600;
  color: var(--afr-fg);
}

.afr-client-due-badge {
  background: #a7f3d0;
  color: #065f46;
  border-radius: 16px;
  padding: 4px 10px;
  font-weight: 600;
}

.afr-client-compliance {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
}

.afr-client-more-btn {
  border: 1px solid var(--afr-border);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afr-muted-fg);
}

.afr-client-action-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 180px;
  z-index: 10;
  padding: 4px;
  display: none;
}

.afr-selection-clear-icon {
  width: 18px;
  height: 18px;
  color: #64748b;
  margin-right: 4px;
  cursor: pointer;
}

.afr-selection-right-spaced {
  margin-left: 12px;
}

.afr-transfer-section-gap {
  margin-bottom: 24px;
}

.afr-transfer-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  font-size: 15px;
}

.afr-transfer-dropdown {
  position: relative;
  z-index: 99999;
}

.afr-transfer-trigger {
  border: 1.5px solid #3b82f6;
  border-radius: 8px;
  background: white;
}

.afr-transfer-menu {
  z-index: 100000;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Edit Client Settings Modal */
.afr-client-settings-form {
  display: flex;
  flex-direction: column;
}

.afr-client-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.afr-client-setting-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--afr-fg);
}

.afr-client-setting-options {
  display: flex;
  align-items: center;
  gap: 16px;
}

.afr-client-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
}

.afr-client-setting-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--afr-border);
  accent-color: var(--afr-primary);
  cursor: pointer;
}

.afr-client-setting-divider {
  height: 1px;
  background: var(--afr-border);
  width: 100%;
}

/* Preloader */
.afr-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f2f4f3;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.afr-preloader video {
  max-width: 280px;
  max-height: 280px;
}

.afr-preloader.afr-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Extracted Inline Styles */
.afr-inline-b1b8d7 {
  display: flex;
  height: 100%;
  width: 100%;
}

.afr-inline-ee0c6d {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.afr-inline-1904da {
  justify-content: space-between;
}

.afr-inline-bd9db1 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.afr-inline-9bc777 {
  color: #EF4444;
  width: 18px;
  height: 18px;
}

.afr-inline-73fcf4 {
  font-size: 13px;
  color: var(--afr-muted-fg);
  margin-left: 12px;
}

.afr-inline-6a40eb {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-top: 12px;
}

.afr-inline-bec49d {
  flex: 1;
  min-width: 0;
  padding-top: 8px;
  margin-top: -8px;
}

.afr-inline-d85c4e {
  position: relative;
}

.afr-inline-20637c {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: white;
  border: 1px solid #E2E8F0;
  color: #10B981;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.afr-inline-2d0821 {
  width: 14px;
  height: 14px;
}

.afr-inline-969902 {
  background: #3B82F6;
}

.afr-inline-6dd23e {
  width: 16px;
  height: 16px;
}

.afr-inline-6cbc10 {
  display: flex;
  flex-direction: column;
}

.afr-inline-d2abfb {
  font-weight: 500;
}

.afr-inline-65e101 {
  background: var(--afr-theme-primary);
  color: white;
}

.afr-inline-f2650c {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 4px;
}

.afr-inline-ebc508 {
  width: 12px;
  height: 12px;
}

.afr-inline-0ee690 {
  background: var(--afr-muted);
  color: var(--afr-muted-fg);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 4px;
}

.afr-inline-93b8ea {
  display: none;
}

.afr-inline-5aa772 {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--afr-muted);
  border-radius: 6px;
  margin-bottom: 8px;
}

.afr-inline-61c35a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--afr-muted-fg);
}

.afr-inline-1d44f2 {
  background: transparent;
  border: none;
  color: var(--afr-muted-fg);
  cursor: pointer;
}

.afr-inline-8f22c5 {
  width: 16px;
  height: 16px;
}

.afr-inline-266c47 {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 4px;
}

.afr-inline-492ec0 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.afr-inline-064ef9 {
  width: 16px;
  height: 16px;
  color: #ef4444;
}

.afr-inline-3031e7 {
  margin-top: 16px;
  font-size: 11px;
  color: var(--afr-muted-fg);
  border-top: 1px dashed var(--afr-border);
  padding-top: 12px;
  text-align: center;
}

.afr-inline-6174c4 {
  cursor: help;
}

.afr-inline-02a725 {
  width: 14px;
  height: 14px;
}

.afr-inline-eea4c0 {
  padding: 16px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px solid #F1F5F9;
}

.afr-inline-bbe596 {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.afr-inline-e06b70 {
  color: #10B981;
}

.afr-inline-4c7830 {
  color: #3B82F6;
}

.afr-inline-bd79be {
  height: 1px;
  background: #E2E8F0;
  width: 100%;
  margin: 16px 0;
}

.afr-inline-651ca0 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.afr-inline-102b7f {
  text-align: left;
}

.afr-inline-56c00b {
  margin-bottom: 4px;
}

.afr-inline-e314df {
  font-size: 13px;
  font-weight: 600;
  color: var(--afr-fg);
}

.afr-inline-7851db {
  text-align: right;
}

.afr-inline-58273c {
  color: var(--afr-fg);
  font-size: 16px;
  margin-bottom: 0;
  line-height: 1;
}

.afr-inline-64b442 {
  text-transform: none;
  font-size: 10px;
  margin-top: 4px;
}

.afr-inline-947c35 {
  background: #FEF3C7;
  color: #D97706;
}

.afr-inline-7b754e {
  margin-bottom: 12px;
}

.afr-inline-525b59 {
  color: #F59E0B;
  font-weight: 600;
}

.afr-inline-d32779 {
  margin-bottom: 16px;
}

.afr-inline-9fb018 {
  background: #F1F5F9;
  color: #475569;
}

.afr-inline-43ae80 {
  margin-left: 8px;
}

.afr-inline-a9ac08 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #10B981;
  background: #ECFDF5;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #D1FAE5;
  margin-bottom: 12px;
  width: fit-content;
}

.afr-inline-6ea148 {
  width: 12px;
  height: 12px;
  fill: #10B981;
}

.afr-inline-88021a {
  background: #FEE2E2;
  color: #EF4444;
}

.afr-inline-4f2146 {
  color: #EF4444;
  font-weight: 600;
}

.afr-inline-e44b09 {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.afr-inline-70672d {
  background: white;
  border-radius: 12px;
  padding: 24px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.afr-inline-c5fa5c {
  margin-top: 0;
  font-size: 18px;
  color: #111827;
  margin-bottom: 12px;
}

.afr-inline-c00a75 {
  color: #4B5563;
  font-size: 14px;
  margin-bottom: 24px;
}

.afr-inline-073501 {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.afr-inline-189d55 {
  padding: 8px 16px;
  border: 1px solid #E5E7EB;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  color: #374151;
  font-weight: 500;
}

.afr-inline-c50fd9 {
  padding: 8px 16px;
  border: none;
  background: #10B981;
  border-radius: 6px;
  cursor: pointer;
  color: white;
  font-weight: 500;
}

.afr-inline-791347 {
  background: white;
  border-radius: 12px;
  padding: 24px;
  width: 350px;
  max-width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.afr-inline-930207 {
  width: 48px;
  height: 48px;
  background: #D1FAE5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.afr-inline-73de47 {
  width: 24px;
  height: 24px;
  color: #10B981;
}

.afr-inline-c75d7a {
  padding: 8px 24px;
  border: none;
  background: #10B981;
  border-radius: 6px;
  cursor: pointer;
  color: white;
  font-weight: 500;
  width: 100%;
}

/* Chat View New Message & Broadcast Additions */
.afr-chat-action-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0;
}

.afr-new-msg-btn,
.afr-broadcast-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.afr-new-msg-btn {
  background: #F1F5F9;
  color: #0F172A;
  border: 1px solid #E2E8F0;
}

.afr-new-msg-btn:hover {
  background: #E2E8F0;
}

.afr-broadcast-btn {
  background: white;
  color: #0F172A;
  border: 1px solid #E2E8F0;
}

.afr-broadcast-btn:hover {
  background: #F8FAFC;
}

.afr-chat-recipient-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  width: 100%;
  padding-bottom: 4px;
}

.afr-recipient-label {
  font-size: 14px;
  color: #64748B;
  font-weight: 500;
}

.afr-recipient-input-container {
  flex: 1;
  position: relative;
}

.afr-recipient-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
}

.afr-recipient-input {
  width: 100%;
  padding: 8px 32px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 14px;
  color: #0F172A;
  background: #F8FAFC;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.afr-recipient-input:focus {
  border-color: #3B82F6;
  background: white;
}

.afr-recipient-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
}

.afr-recipient-clear-btn:hover {
  color: #64748B;
}

.afr-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
}

.afr-autocomplete-section {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  background: #F8FAFC;
  border-bottom: 1px solid #F1F5F9;
  border-top: 1px solid #F1F5F9;
}

.afr-autocomplete-section:first-child {
  border-top: none;
}

.afr-autocomplete-item {
  padding: 10px 12px;
  font-size: 14px;
  color: #0F172A;
  cursor: pointer;
  transition: background 0.2s;
}

.afr-autocomplete-item:hover {
  background: #F1F5F9;
}

.afr-sidebar-flag-btn {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: #94A3B8;
  transition: color 0.2s;
  display: flex;
  opacity: 0.5;
}

.afr-sidebar-flag-btn:hover {
  opacity: 1;
}

.afr-sidebar-flag-btn.flagged {
  color: #F59E0B;
  opacity: 1;
}

.afr-header-flag-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.5;
  display: flex;
  align-items: center;
  color: #64748B;
  transition: all 0.2s;
  margin-left: 8px;
}

.afr-header-flag-btn:hover {
  opacity: 1;
}

.afr-header-flag-btn.flagged {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #B45309;
  opacity: 1;
}

.afr-new-msg-btn.active,
.afr-broadcast-btn.active {
  background: var(--afr-theme-primary);
  color: white;
  border-color: var(--afr-theme-primary);
}

.afr-new-msg-btn.active svg,
.afr-broadcast-btn.active svg {
  stroke: white;
}

/* Circuits Table Styles */
.afr-circuits-table {
  width: 100%;
  border-collapse: collapse;
}

.afr-circuits-table th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--afr-border);
  color: var(--afr-muted-fg);
  font-weight: 600;
  font-size: 13px;
  background: #F8FAFC;
}

.afr-circuits-table td {
  padding: 16px;
  border-bottom: 1px solid var(--afr-border);
  vertical-align: middle;
  font-size: 14px;
}

.afr-circuits-table tbody tr:hover {
  background-color: #F1F5F9;
}

.afr-table-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--afr-border);
}

.afr-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.afr-badge-warmup {
  background-color: #FEF3C7;
  color: #D97706;
}

.afr-badge-cooldown {
  background-color: #DBEAFE;
  color: #2563EB;
}

.afr-badge-core {
  background-color: #F3E8FF;
  color: #9333EA;
}

.afr-btn-outline {
  background-color: transparent;
  border: 1px solid var(--afr-border);
  color: var(--afr-fg);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s;
  font-size: 15px;
}

.afr-btn-outline:hover {
  background-color: #F1F5F9;
  border-color: #CBD5E1;
}

.afr-btn-sm {
  font-size: 13px;
  padding: 4px 10px;
  gap: 5px !important;
  display: flex;
  align-items: center;
}

/* Custom Select Dropdown */
.afr-custom-select-wrap {
  position: relative;
  user-select: none;
}

.afr-custom-select-trigger {
  border: 1px solid #e7eaef;
  border-radius: 6px;
  padding: 8px 14px;
  background: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #0f172a;
  /* box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); */
  font-weight: 400;
}

.afr-custom-select-trigger:hover {
  border-color: #94a3b8;
}

.afr-custom-select-dropdown {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 4px 0;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  margin-top: 6px;
  z-index: 10;
  overflow: hidden;
}

.afr-custom-select-option {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #475569;
  font-size: 14px;
  transition: all 0.1s ease;
  border-radius: 4px;
  margin: 2px 4px;
  font-weight: 400;
}

.afr-custom-select-option:hover {
  background: #f8fafc;
  color: #0f172a;
}

.afr-custom-select-option.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 400;
}

.afr-custom-select-option .afr-check-icon {
  opacity: 0;
  color: #2563eb;
  transition: opacity 0.1s ease;
}

.afr-custom-select-option.active .afr-check-icon {
  opacity: 1;
}

/* Demo Video Input Wrapper */
.afr-demo-video-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding-right: 12px;
  background: #fff;
}

.afr-demo-video-input-wrap .afr-input {
  border: none;
  box-shadow: none;
  flex: 1;
  outline: none;
}

.afr-demo-video-icon {
  cursor: pointer;
  color: #64748b;
}

.afr-demo-videos-list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.afr-demo-video-pill {
  background: #1e293b;
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.afr-demo-video-pill-title {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.afr-demo-video-pill-remove {
  margin-left: 4px;
  opacity: 0.6;
  cursor: pointer;
}

/* Video Popover Tooltip */
.afr-video-popover {
  display: none;
  position: fixed;
  z-index: 10000;
  background: #ffffff;
  border-radius: 8px;
  width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.afr-video-popover-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.afr-video-popover-title {
  color: #0f172a;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.afr-video-popover-close {
  color: #64748b;
  cursor: pointer;
}

.afr-video-popover-body {
  padding: 16px;
}

.afr-video-popover-iframe {
  border-radius: 6px;
  background: #000;
}

.afr-video-popover-footer {
  background: #f8fafc;
  padding: 12px 16px;
  color: #475569;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.afr-video-popover-footer-icon {
  min-width: 16px;
  color: #64748b;
}

.afr-video-popover-link {
  color: #0ea5e9;
  text-decoration: none;
}

/* Add Exercise Form Layout */
.afr-exercise-form-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  padding-bottom: 100px;
  /* Space for fixed footer */
}

.afr-exercise-form-header {
  font-size: 24px;
  font-weight: 700;
  color: var(--afr-fg);
  margin-bottom: 24px;
  margin-top: 0;
}

.afr-video-link-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.afr-video-link-row .afr-input-wrap {
  flex: 1;
}

.afr-video-link-or {
  color: var(--afr-muted-fg);
  font-weight: 500;
  font-size: 14px;
}

.afr-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Fixed Footer */
.afr-fixed-footer {
  position: fixed;
  bottom: 0;
  /* left: 0; */
  right: 12px;
  background: #ffffff;
  border-top: 1px solid var(--afr-border);
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  /* z-index: 1000; */
  /* box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05); */
  width: 83.6%;
}

/* Searchable Custom Select */
.afr-search-select-wrapper {
  position: relative;
  width: 100%;
}

.afr-search-select-trigger {
  width: 100%;
  border: 1px solid var(--afr-border);
  border-radius: 6px;
  padding: 10px 14px;
  background: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--afr-fg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  font-weight: 400;
  text-align: left;
}

.afr-search-select-trigger.has-value {
  color: var(--afr-fg);
}

.afr-search-select-trigger.is-empty {
  color: var(--afr-muted-fg);
}

.afr-search-select-trigger:focus,
.afr-search-select-wrapper.open .afr-search-select-trigger {
  border-color: var(--afr-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.afr-search-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 9999;
  display: none;
  flex-direction: column;
}

.afr-search-select-wrapper.open .afr-search-select-dropdown {
  display: flex;
}

.afr-search-select-wrapper.drop-up .afr-search-select-dropdown {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 6px;
}

.afr-search-select-search-wrap {
  padding: 8px;
  border-bottom: 1px solid var(--afr-border);
  position: relative;
}

.afr-search-select-search-input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1px solid var(--afr-border);
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}

.afr-search-select-search-input:focus {
  border-color: var(--afr-primary);
}

.afr-search-select-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--afr-muted-fg);
  pointer-events: none;
}

.afr-search-select-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}

.afr-search-select-option {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--afr-fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.afr-search-select-option:hover {
  background: #f1f5f9;
}

.afr-search-select-option.selected {
  background: #eff6ff;
  color: var(--afr-primary);
  font-weight: 500;
}

.afr-search-select-delete-btn:hover {
  background: #fee2e2 !important;
  color: #ef4444 !important;
}

.afr-search-select-no-results {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--afr-muted-fg);
  text-align: center;
}

/* New Redesign Additions */
.afr-full-width-header {
  width: 100%;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 12px 14px;
}

.afr-big-pill-input-wrap {
  position: relative;
  width: 100%;
}

.afr-big-pill-input {
  width: 100%;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid #e7eaef;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
  height: 40px;
}

.afr-big-pill-input:focus {
  border-color: var(--afr-primary);
  box-shadow: 0 0 0 3px rgba(1, 122, 155, 0.1);
}

.afr-big-pill-input::placeholder {
  color: #94a3b8;
}

.afr-rounded-input {
  border-radius: 12px !important;
}

.afr-rounded-btn {
  border-radius: 9999px !important;
  padding: 8px 20px !important;
}

.afr-categories-box {
  background: #f8fafc;
  border-radius: 20px;
  padding: 32px;
}

.afr-rounded-select .afr-search-select-trigger {
  border-radius: 9999px !important;
  padding: 10px 20px !important;
}

.afr-rounded-select .afr-search-select-dropdown {
  border-radius: 16px !important;
}

/* 2-column layout */
.afr-exercise-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.afr-exercise-main {
  flex: 1;
  min-width: 0;
}

.afr-exercise-sidebar {
  width: 380px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
}

@media (max-width: 992px) {
  .afr-exercise-layout {
    flex-direction: column;
  }

  .afr-exercise-sidebar {
    width: 100%;
  }
}

/* Extracted Utility Classes for Exercise Add Form */
.afr-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.afr-header-back-btn {
  padding: 10px !important;
  border-radius: 9999px !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
  background: transparent !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.afr-page-main-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 5px;
}

.afr-page-subtitle-text {
  color: #64748b;
  font-size: 15px;
  margin: 0;
}

.afr-content-white {
  padding: 0;
  background: #ffffff;
}



.afr-mb-32 {
  margin-bottom: 32px;
}

.afr-mb-24 {
  margin-bottom: 24px;
}

.afr-form-label-bold {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
  display: block;
}

.afr-btn-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.afr-categories-box-padded {
  padding: 24px;
}

.afr-categories-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 20px 0;
}

.afr-categories-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.afr-categories-list .afr-form-group {
  margin: 0;
}

.afr-optional-badge {
  font-weight: 400;
  color: #64748b;
}

.afr-fixed-footer-white {
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  padding: 12px 18px;
}

.afr-fixed-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
}

/* Theme Focus Effects */
.afr-input:focus,
.afr-search-select-wrapper.open .afr-search-select-trigger {
  border-color: var(--afr-primary) !important;
  box-shadow: 0 0 0 3px rgba(1, 122, 155, 0.1) !important;
  outline: none;
}

/* View Exercise Modal */
.afr-view-modal-overlay {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(2px);
  z-index: 1000;
}

.afr-view-modal-container {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 850px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.afr-view-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  flex-shrink: 0;
}

.afr-view-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.2;
}

.afr-view-modal-subtitle {
  margin: 2px 0 0 0;
  font-size: 13px;
  color: #64748b;
}

.afr-view-modal-close {
  background: #f8fafc;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.afr-view-modal-body {
  display: flex;
  overflow-y: auto;
  flex: 1;
  flex-wrap: wrap;
}

.afr-view-modal-left-col {
  flex: 1;
  min-width: 250px;
  background: #f8fafc;
  border-right: 1px solid #f1f5f9;
}

.afr-view-modal-sticky-wrap {
  position: sticky;
  top: 0;
  padding: 32px;
}

.afr-view-modal-section-title {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.afr-view-modal-section-title-mb12 {
  margin-bottom: 12px;
}

.afr-view-modal-category-group {
  margin-bottom: 24px;
}

.afr-view-modal-category-label {
  font-size: 12px;
  color: #5c697c;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.afr-view-modal-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.afr-view-modal-right-col {
  flex: 2;
  min-width: 320px;
  padding: 20px 30px;
}

.afr-view-modal-video-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.afr-view-modal-video {
  width: 100%;
  height: 100%;
  border: none;
}

.afr-view-modal-instruction-text {
  font-size: 15px;
  color: #334155;
  line-height: 1.7;
  margin: 0;
}

/* Exercise List Table */
.afr-client-name-cell {
  cursor: pointer;
}

.afr-client-name-text {
  font-weight: 500;
}

.afr-badge-blue {
  background: #e0e7ff;
  color: #4f46e5;
}

.afr-badge-yellow {
  background: #fef3c7;
  color: #b45309;
}

.afr-badge-pink {
  background: #fce7f3;
  color: #db2777;
}

.afr-badge-green {
  background: #dcfce7;
  color: #166534;
}

.afr-badge-mb {
  margin-bottom: 4px;
}

.afr-badge-ib {
  display: inline-block;
}

.afr-action-btn-group {
  display: flex;
  gap: 8px;
}

.afr-btn-icon-mr {
  margin-right: 4px;
}

.afr-text-no-dec {
  text-decoration: none;
}

.afr-icon-blue {
  color: #3b82f6;
}

/* Custom Styles for Program List */
.afr-calendar-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.afr-calendar-icon-bg {
  color: #64748b;
  width: 32px;
  height: 32px;
}

.afr-calendar-days {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

.afr-program-name-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.afr-program-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
}

.afr-program-duration {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.afr-program-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.afr-add-tag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--afr-border);
  background: transparent;
  color: var(--afr-muted-fg);
  cursor: pointer;
  transition: all 0.2s;
}

.afr-add-tag-btn:hover {
  background: var(--afr-muted);
  color: var(--afr-fg);
}

.afr-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--afr-border);
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  color: var(--afr-muted-fg);
}

.afr-tag i {
  cursor: pointer;
  color: var(--afr-muted-fg);
  margin-left: 4px;
}

.afr-tag i:hover {
  color: var(--afr-fg);
}

.afr-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 4px 0;
  min-width: 180px;
  z-index: 50;
  display: none;
}

.afr-dropdown-menu.show {
  display: block;
}

.afr-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-fg);
  text-decoration: none;
  transition: background 0.15s;
}

.afr-dropdown-item:hover {
  background: var(--afr-muted);
}

.afr-text-danger {
  color: var(--afr-destructive) !important;
}

.afr-text-danger i {
  color: var(--afr-destructive) !important;
}


.afr-dropdown-up {
  top: auto !important;
  bottom: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}


.afr-tag-gym {
  background-color: hsl(211, 90%, 95%);
  color: hsl(211, 100%, 35%);
  border-color: hsl(211, 90%, 90%);
  font-weight: 600;
}

.afr-tag-home {
  background-color: hsl(152, 60%, 95%);
  color: hsl(152, 60%, 30%);
  border-color: hsl(152, 60%, 90%);
  font-weight: 600;
}

.afr-client-count-link {
  color: var(--afr-primary);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.afr-client-count-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.afr-client-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--afr-border);
}

.afr-client-list-row:last-child {
  border-bottom: none;
}

.afr-client-list-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.afr-client-list-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--afr-fg);
}

.afr-calendar-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.afr-calendar-icon-bg {
  color: #64748b;
  width: 32px;
  height: 32px;
}

.afr-calendar-days {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

.afr-program-name-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.afr-program-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--afr-fg);
}

.afr-program-duration {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

.afr-program-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.afr-add-tag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--afr-border);
  background: transparent;
  color: var(--afr-muted-fg);
  cursor: pointer;
  transition: all 0.2s;
}

.afr-add-tag-btn:hover {
  background: var(--afr-muted);
  color: var(--afr-fg);
}

.afr-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--afr-border);
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  color: var(--afr-muted-fg);
}

.afr-tag i {
  cursor: pointer;
  color: var(--afr-muted-fg);
  margin-left: 4px;
}

.afr-tag i:hover {
  color: var(--afr-fg);
}

.afr-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--afr-card);
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 4px 0;
  min-width: 180px;
  z-index: 50;
  display: none;
}

.afr-dropdown-menu.show {
  display: block;
}

.afr-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-fg);
  text-decoration: none;
  transition: background 0.15s;
}

.afr-dropdown-item:hover {
  background: var(--afr-muted);
}

.afr-text-danger {
  color: var(--afr-destructive) !important;
}

.afr-text-danger i {
  color: var(--afr-destructive) !important;
}


.afr-dropdown-up {
  top: auto !important;
  bottom: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}


.afr-tag-gym {
  background-color: hsl(211, 90%, 95%);
  color: hsl(211, 100%, 35%);
  border-color: hsl(211, 90%, 90%);
  font-weight: 600;
}

.afr-tag-home {
  background-color: hsl(152, 60%, 95%);
  color: hsl(152, 60%, 30%);
  border-color: hsl(152, 60%, 90%);
  font-weight: 600;
}

.afr-client-count-link {
  color: var(--afr-primary);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.afr-client-count-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.afr-client-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--afr-border);
}

.afr-client-list-row:last-child {
  border-bottom: none;
}

.afr-client-list-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.afr-client-list-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--afr-fg);
}

.afr-client-list-email {
  font-size: 12px;
  color: var(--afr-muted-fg);
}

/* Assign Program Modal */
.afr-assign-layout {
  display: flex;
  gap: 28px;
  align-items: stretch;
}

.afr-assign-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.afr-assign-right {
  width: 330px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: #f8fafc;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  height: 100%;
}

.afr-assign-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 0px 4px;
  margin-top: 12px;
}

.afr-assign-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 2px;
}

.afr-assign-item:last-child {
  border-bottom: none;
}

.afr-assign-item:hover {
  background: var(--afr-muted);
}

.afr-assign-item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-fg);
}

.afr-assign-add-icon {
  color: var(--afr-primary);
}

.afr-selected-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  color: var(--afr-muted-fg);
  min-height: 80px;
}

.afr-assign-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--afr-fg);
  margin-bottom: 6px;
  display: block;
}


.afr-assign-modal-dialog {
  max-width: 1040px;
  width: 95%;
  background: var(--afr-card, #fff);
  border-radius: 16px;
}

.afr-assign-modal-header {
  padding: 24px 32px 20px 32px;
  border-bottom: 1px solid var(--afr-border);
  margin-bottom: 24px;
}

.afr-assign-modal-title-text {
  font-size: 18px;
}

.afr-assign-modal-subtitle {
  color: var(--afr-muted-fg);
  margin-top: 4px;
}

.afr-assign-modal-body {
  padding: 0 32px 24px 32px;
  overflow-x: hidden;
}

.afr-assign-modal-footer {
  border-top: 1px solid var(--afr-border);
  padding: 20px 32px;
}

.afr-success-modal-dialog {
  max-width: 400px;
  text-align: center;
  padding: 32px 24px;
  background: var(--afr-card, #fff);
}

.afr-success-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.afr-success-icon {
  width: 24px;
  height: 24px;
}

.afr-success-title {
  margin-bottom: 8px;
  font-size: 18px;
}

.afr-success-desc {
  font-size: 14px;
  color: var(--afr-muted-fg);
  margin-bottom: 24px;
}

.afr-success-btn {
  width: 100%;
  justify-content: center;
}

.afr-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.afr-toggle-label {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
}

.afr-toggle-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.afr-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .2s;
  border-radius: 34px;
}

.afr-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.afr-toggle-label input:checked+.afr-slider {
  background-color: var(--afr-primary);
}

.afr-toggle-label input:checked+.afr-slider:before {
  transform: translateX(16px);
}

.afr-toggle-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--afr-fg);
}


.afr-checkable-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0px;
}

.afr-checkable-item:hover {
  border-color: #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.afr-checkable-icon-left {
  color: #9ca3af;
  margin-right: 16px;
  display: flex;
}

.afr-checkable-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.afr-checkable-icon-right {
  color: #017a9b;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.afr-checkable-item.selected .afr-checkable-icon-right-bg {
  background: transparent;
  border-radius: 0;
}

.afr-checkable-item.selected .afr-checkable-icon-right-bg i {
  color: var(--afr-primary);
}

.afr-settings-card {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.afr-settings-card-icon {
  color: #9ca3af;
  margin-right: 16px;
  display: flex;
}

.afr-settings-card-content {
  flex: 1;
}

.afr-settings-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.afr-settings-card-desc {
  font-size: 12px;
  color: #6b7280;
}

.afr-toggle-green input:checked+.afr-slider {
  background-color: #22c55e;
}


.afr-assign-search-container {
  position: relative;
  margin-bottom: 12px;
}

.afr-assign-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.afr-assign-search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  background: #f9fafb;
}

.afr-assign-search-input:focus {
  border-color: var(--afr-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.afr-assign-empty-state {
  display: none;
  text-align: center;
  padding: 32px 0;
}

.afr-assign-empty-icon-box {
  width: 48px;
  height: 48px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #9ca3af;
}

.afr-assign-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.afr-assign-empty-desc {
  font-size: 13px;
  color: #6b7280;
}


.afr-assign-list-container {
  overflow-y: auto;
  max-height: 380px;
  padding-right: 8px;
}

.afr-assign-list-container::-webkit-scrollbar {
  width: 4px;
}

.afr-assign-list-container::-webkit-scrollbar-track {
  background: transparent;
}

.afr-assign-list-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.afr-assign-list-container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.afr-assign-list-container {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}


.afr-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--afr-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.afr-back-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.afr-program-add-header-wrapper {
  background: #fff;
  margin: -24px -24px 0px -24px;
  padding: 15px 15px;
  /* border-bottom: 1px solid var(--afr-border); */
  display: flex;
  flex-direction: column;
}

.afr-program-add-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.afr-header-stats-group {
  display: flex;
  align-items: center;
  gap: 40px;
}

.afr-header-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.afr-header-stat.clickable {
  cursor: pointer;
  transition: opacity 0.2s;
}

.afr-header-stat.clickable:hover {
  opacity: 0.7;
}

.afr-header-stat-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--afr-fg);
}

.afr-header-info-icon {
  color: #9ca3af;
  cursor: help;
}

.afr-header-sync-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.afr-header-sync-link {
  font-size: 12px;
  color: var(--afr-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-weight: 500;
}

.afr-header-sync-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}


.afr-header-tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.afr-header-tooltip {
  position: absolute;
  background: #64748b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
  padding: 10px 14px;
  border-radius: 6px;
  width: max-content;
  max-width: 280px;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 100;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.afr-header-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
}

.afr-header-tooltip-bottom {
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
}

.afr-header-tooltip-bottom::after {
  bottom: 100%;
  border-width: 0 6px 6px 6px;
  border-color: transparent transparent #64748b transparent;
}

.afr-header-tooltip-wrapper:hover .afr-header-tooltip-bottom {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.afr-header-tooltip-top {
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
}

.afr-header-tooltip-top::after {
  top: 100%;
  border-width: 6px 6px 0 6px;
  border-color: #64748b transparent transparent transparent;
}

.afr-header-tooltip-wrapper:hover .afr-header-tooltip-top {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== PROGRAM BUILDER LAYOUT ===== */
.afr-program-sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  margin: 0 -24px 20px -24px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
  border-bottom: 1px solid var(--afr-border, #e2e8f0);
}

.afr-program-sticky-header .afr-program-add-header-wrapper {
  margin: 0 !important;
  padding: 14px 24px 10px 24px !important;
  background: transparent !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.afr-program-sticky-header .afr-program-details-container {
  margin: 0 !important;
  padding: 12px 24px 14px 24px !important;
  background: transparent !important;
  border: none !important;
}

.afr-program-details-container {
  background: #fff;
  margin: 0 -24px 20px -24px;
  padding: 14px 24px;
  border-top: 1px solid var(--afr-border);
  border-bottom: 1px solid var(--afr-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.afr-program-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0px;
}

.afr-program-main-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--afr-fg);
  margin: 0;
}

.afr-program-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.afr-program-pill.afr-program-pill-public {
  background: #dcfce7;
  color: #166534;
}

.afr-program-desc {
  font-size: 15px;
  color: #475569;
  margin: 0;
}

.afr-program-details-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.afr-program-details-right .afr-tabs-container {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  height: 38px;
  box-sizing: border-box;
  margin-bottom: 0 !important;
}

.afr-program-details-right .afr-tab-btn {
  height: 32px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  line-height: 1;
  box-sizing: border-box;
  color: #64748b;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.afr-program-details-right .afr-tab-btn:hover {
  color: #1e293b;
}

.afr-program-details-right .afr-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.afr-program-details-right .afr-tab-badge {
  min-width: 20px;
  height: 20px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
  background: #e2e8f0;
  color: #475569;
  transition: all 0.15s ease;
}

.afr-program-details-right .afr-tab-btn.active .afr-tab-badge {
  background: #f1f5f9;
  color: #0f172a;
}

.afr-program-details-right .afr-btn-outline,
.afr-program-details-right .afr-btn-primary {
  height: 38px;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
}

.afr-program-details-right .afr-btn-outline {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.afr-program-details-right .afr-btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.afr-program-details-right .afr-btn-primary {
  background: var(--afr-primary, #059669);
  color: #ffffff;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.afr-program-details-right .afr-btn-primary:hover {
  opacity: 0.92;
}

/* Live Session Editing Indicator Badge */
.afr-session-editing-indicator {
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.08);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: afrEditingPulseGlow 2.5s ease-in-out infinite;
}

.afr-session-editing-indicator:hover {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px -1px rgba(217, 119, 6, 0.15);
}

.afr-session-editing-indicator .afr-editing-dot-wrapper {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.afr-session-editing-indicator .afr-editing-dot-ping {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #f59e0b;
  opacity: 0.75;
  animation: afrPing 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.afr-session-editing-indicator .afr-editing-dot-core {
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
  width: 8px;
  height: 8px;
  background: #d97706;
}

.afr-session-editing-indicator .afr-editing-spinner {
  width: 14px;
  height: 14px;
  animation: afrSpin 0.9s linear infinite;
  color: #d97706;
  flex-shrink: 0;
}

@keyframes afrEditingPulseGlow {
  0%, 100% {
    box-shadow: 0 1px 2px rgba(217, 119, 6, 0.08), 0 0 0 0 rgba(245, 158, 11, 0);
  }
  50% {
    box-shadow: 0 1px 2px rgba(217, 119, 6, 0.08), 0 0 0 3px rgba(251, 191, 36, 0.25);
  }
}

/* Workouts Header */
.afr-workouts-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 15px;
}

.afr-workouts-title-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.afr-workouts-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--afr-fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.afr-workouts-subtitle {
  font-size: 13px;
  color: #64748b;
}

.afr-workouts-info-icon {
  color: #94a3b8;
  cursor: help;
}

.afr-workouts-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.afr-workouts-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.afr-workouts-toggle {
  margin-left: 8px;
}

/* Week Block */
.afr-week-block {
  background: #ffffff;
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  overflow: visible;
}

.afr-week-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.afr-week-drag-handle {
  color: #94a3b8;
  cursor: grab;
  margin-right: 12px;
  display: flex;
}

.afr-week-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--afr-fg);
  margin-right: 12px;
}

.afr-session-count-pill {
  background: #e2e8f0;
  color: #475569;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}

.afr-week-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.afr-week-delete {
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: background 0.2s;
}

.afr-week-delete:hover {
  background: #fee2e2;
}

.afr-week-toggle {
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
}

/* Session Cards Area */
.afr-week-sessions-container {
  padding: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.afr-session-card {
  flex: 0 0 calc(25% - 12px);
  /* background: #ffffff; */
  /* border: 1px solid #e2e8f0; */
  border-radius: 0;
  padding: 0;
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); */
  display: flex;
  flex-direction: column;
  position: relative;
}

.afr-session-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.afr-session-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--afr-fg);
}

.afr-session-icons {
  display: flex;
  gap: 4px;
}

.afr-session-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.afr-session-icon-box.pink {
  background: #ec4899;
  color: white;
}

.afr-session-icon-box.gray {
  background: #64748b;
  color: white;
}

.afr-session-icon-box.purple {
  background: #8b5cf6;
  color: white;
}

.afr-session-icon-box.blue {
  background: #3b82f6;
  color: white;
}

.afr-session-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--afr-fg);
  margin-bottom: 6px;
}

.afr-session-focus {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
}

.afr-session-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.afr-session-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--afr-fg);
}

.afr-session-meta-dot {
  color: #cbd5e1;
}

.afr-session-more {
  color: #94a3b8;
  cursor: pointer;
  display: flex;
}

.afr-session-actions-footer {
  display: flex;
  gap: 12px;
  align-items: center;
}

.afr-session-actions-footer i {
  cursor: pointer;
  transition: opacity 0.15s;
}

.afr-session-actions-footer i:hover {
  opacity: 0.7;
}

.afr-session-action-wrap {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.afr-session-action-wrap[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1e293b;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 100;
}

.afr-session-action-wrap[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border-width: 4px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 100;
}

.afr-session-action-wrap:hover[data-tooltip]::before,
.afr-session-action-wrap:hover[data-tooltip]::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.afr-copy-icon {
  color: #7b899b;
}

.afr-edit-icon {
  color: #94a3b8;
}

.afr-delete-icon {
  color: #ef4444;
}

/* Add Session Card */
/* Session Widget (Create/Paste) */
.afr-add-session-widget {
  flex: 0 0 calc(25% - 12px);
  display: flex;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  min-height: 140px;
}

.afr-add-session-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 16px 12px;
}

.afr-add-session-btn:first-child {
  border-right: 2px dashed #cbd5e1;
}

.afr-add-session-btn:hover {
  background: #f8fafc;
  color: #0ea5e9;
}

.afr-add-session-btn i {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
}

.afr-add-session-btn span {
  font-size: 14px;
  font-weight: 500;
}

.afr-week-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 24px;
}

.afr-week-empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  margin: 16px 0 8px 0;
}

.afr-week-empty-state-desc {
  font-size: 14px;
  color: #64748b;
  max-width: 300px;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

/* ===== OFFCANVAS ====== */
.afr-offcanvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.afr-offcanvas {
  position: fixed;
  top: 0;
  right: -550px;
  width: 550px;
  max-width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
}

.afr-offcanvas.open {
  right: 0;
}

.afr-offcanvas-overlay.open {
  opacity: 1;
}

.afr-offcanvas-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #ffffff;
}

.afr-offcanvas-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.afr-offcanvas-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.afr-offcanvas-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.afr-offcanvas-action-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.afr-offcanvas-action-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.afr-offcanvas-action-btn i,
.afr-offcanvas-action-btn svg {
  width: 18px;
  height: 18px;
}

.afr-offcanvas-header-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.afr-offcanvas-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: #f8fafc;
}

.afr-offcanvas-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #ffffff;
}

/* ===== SPLIT BADGES ===== */
.afr-badge-split {
  display: inline-flex;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #d1d5da;
  border-radius: 6px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

.afr-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  border-right: 1px solid #d1d5da;
  background: transparent !important;
}

.afr-badge-icon svg {
  width: 14px;
}

.afr-badge-icon i {
  width: 12px;
  height: 12px;
}

.afr-badge-text {
  padding: 3px 8px;
  display: flex;
  align-items: center;
  color: #475569;
}

/* ==========================================================================
   SESSION BUILDER (OFFCANVAS BODY)
   ========================================================================== */
.afr-sb-theme {
  background: #ffffff;
  padding: 0;
}

.afr-sb-container {
  display: flex;
  flex-direction: column;
}

.afr-sb-field-group {
  padding: 10px 24px;
  background: #f8f8f9;
}

.afr-sb-field-name {
  border-bottom: 1px solid #e2e8f0;
  padding-top: 16px;
  padding-bottom: 16px;
  text-align: left;
}

.afr-sb-field-focus {
  border-bottom: 1px solid #e2e8f0;
}

.afr-sb-input-large {
  width: 100%;
  background: transparent;
  border: none;
  color: #0f172a;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  outline: none;
}

.afr-sb-input-large::placeholder {
  color: #94a3b8;
}

.afr-sb-textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: #334155;
  font-size: 14px;
  resize: none;
  outline: none;
  font-family: inherit;
}

.afr-sb-textarea::placeholder {
  color: #94a3b8;
}

/* Exercise Blocks */
.afr-sb-exercise-list {
  display: flex;
  flex-direction: column;
}

.afr-sb-block-wrapper {
  position: relative;
}

.afr-sb-block {
  display: flex;
  align-items: flex-start;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 24px;
  gap: 16px;
  color: #0f172a;
}

/* Superset Group Indicator */
.afr-sb-block.afr-sb-is-supersetted {
  box-shadow: inset 4px 0 0 #94a3b8;
  padding-left: 20px;
}

.afr-sb-drag {
  cursor: grab;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.afr-sb-delete {
  cursor: pointer;
  color: #cbd5e1;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-top: -2px;
}

.afr-sb-delete:hover {
  color: #ef4444;
}

.afr-sb-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid #e2e8f0;
  padding-left: 16px;
  position: relative;
}

.afr-sb-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  position: relative;
}

.afr-sb-label {
  color: #0f172a;
}

.afr-sb-title-input {
  background: transparent;
  border: none;
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  flex: 1;
}

.afr-sb-title-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.afr-sb-subtitle-input,
textarea.afr-sb-subtitle-input,
.afr-sb-content textarea.afr-sb-textarea {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 13px;
  outline: none;
  width: 100%;
  font-family: inherit;
  resize: none;
  overflow-y: hidden;
  line-height: 1.5;
  padding: 0;
  margin: 0;
  display: block;
}

.afr-sb-subtitle-input::placeholder,
textarea.afr-sb-subtitle-input::placeholder,
.afr-sb-content textarea.afr-sb-textarea::placeholder {
  color: #94a3b8;
}

.afr-sb-video-btn {
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-top: 2px;
}

.afr-sb-video-btn:hover {
  color: #0f172a;
}

/* Superset Button */
.afr-sb-superset-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 10;
  height: 0;
}

.afr-sb-superset-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 5px;
  padding: 10px 5px;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transform: translateY(-50%);
}

button.afr-sb-superset-btn svg {
  width: 15px;
}

.afr-sb-superset-btn:hover {
  background: #f8fafc;
}

.afr-sb-superset-btn.active {
  background: #475569;
  border: 1px solid #475569;
  color: #ffffff;
}

.afr-sb-superset-btn.active:hover {
  background: #334155;
}

/* Actions */
.afr-sb-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}

.afr-sb-btn-outline {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.afr-sb-btn-outline:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Autocomplete Popover */
.afr-sb-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  z-index: 1050;
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
}

.afr-sb-autocomplete.open {
  display: block;
}

.afr-sb-ac-header {
  display: flex;
  justify-content: flex-end;
  padding: 6px 12px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.afr-sb-ac-close {
  background: #e2e8f0;
  border: none;
  color: #475569;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.afr-sb-ac-close:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.afr-sb-ac-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  color: #334155;
  font-size: 14px;
}

.afr-sb-ac-item:hover {
  background: #f8fafc;
}

.afr-sb-ac-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.afr-sb-ac-highlight {
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 2px;
}

.afr-sb-ac-icon {
  background: #0ea5e9;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 2px;
}

/* Custom Delete Popover */
.afr-sb-delete-wrapper {
  position: relative;
}

.afr-sb-delete-popover {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  width: max-content;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.afr-sb-delete-popover.right-align {
  left: auto;
  right: 0;
}

.afr-sb-delete-popover.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.afr-sb-delete-text {
  font-size: 14px;
  color: #0f172a;
  font-weight: 500;
  margin-bottom: 16px;
}

.afr-sb-delete-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  align-items: center;
}

.afr-sb-delete-cancel {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.afr-sb-delete-cancel:hover {
  color: #0f172a;
}

.afr-sb-delete-confirm {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #ef4444;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.afr-sb-delete-confirm:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

/* Custom Video Popover */
.afr-sb-demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 8px;
}

.afr-sb-video-link-input {
  flex: 1;
  margin-right: 12px;
}

.afr-sb-video-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.afr-sb-history-btn {
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s ease;
  line-height: 1;
}

.afr-sb-history-btn:hover {
  color: #0284c7;
  background-color: #e0f2fe;
}

.afr-sb-video-popover {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  width: 320px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.afr-sb-video-popover.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.afr-sb-vp-header {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

.afr-sb-vp-video iframe {
  width: 100%;
  height: 160px;
  border-radius: 6px;
}

.afr-sb-vp-footer {
  font-size: 12px;
  color: #64748b;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.afr-sb-vp-footer a {
  color: #0ea5e9;
  text-decoration: none;
}

.afr-sb-vp-footer a:hover {
  text-decoration: underline;
}

/* Warmup Input Enhancements */
.afr-sb-warmup-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.afr-sb-warmup-row .afr-sb-textarea {
  flex: 1;
}

.afr-sb-bookmark-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.afr-sb-bookmark-btn:hover {
  color: #64748b;
}

/* Save Popover */
.afr-sb-save-popover {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  width: 300px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.afr-sb-save-popover.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.afr-sb-sp-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.afr-sb-sp-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.afr-sb-sp-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  margin-bottom: 12px;
}

.afr-fixed-action-bar {
  position: fixed;
  bottom: 0;
  left: 240px;
  /* offset sidebar */
  right: 0;
  background: var(--afr-card, #fff);
  border-top: 1px solid var(--afr-border, #e5e7eb);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.afr-fixed-action-left {
  font-weight: 600;
  font-size: 14px;
  color: var(--afr-fg, #111827);
}

.afr-fixed-action-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.afr-week-checkbox {
  margin-right: 12px;
  display: flex;
  align-items: center;
}

.afr-week-select {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--afr-border, #d1d5db);
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  margin: 0;
}

.afr-week-select:checked {
  background-color: var(--afr-primary, #3b82f6);
  border-color: var(--afr-primary, #3b82f6);
}

.afr-week-select:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.afr-week-select:hover {
  border-color: #9ca3af;
}

@keyframes highlightFlash {
  0% {
    background-color: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 0 2px #3b82f6 inset;
    border-radius: 8px;
  }

  100% {
    background-color: transparent;
    box-shadow: 0 0 0 0 transparent inset;
    border-radius: 8px;
  }
}

.afr-highlight-flash {
  animation: highlightFlash 2.5s ease-out;
}

.afr-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.afr-toast {
  background-color: #1e293b;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  animation: slideInUp 0.3s ease-out forwards;
}

.afr-toast i {
  color: #10b981;
}

.afr-toast.fade-out {
  animation: fadeOutDown 0.3s ease-in forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.afr-sb-sp-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.afr-sb-sp-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== ROLE & PERMISSION CREATE STYLES ===== */
.afr-role-form-container {
  padding: 24px;
  padding-bottom: 65px;
}

.afr-role-section {
  background: #fff;
  border: 1px solid var(--afr-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.afr-mb-40 {
  margin-bottom: 40px !important;
}

.afr-role-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--afr-text);
  margin-bottom: 16px;
}

.afr-role-section-title-mb-4 {
  margin-bottom: 4px;
}

.afr-role-section-subtitle {
  font-size: 13px;
  margin: 0;
}

.afr-role-perm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.afr-perm-select-all-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.afr-perm-select-all-input {
  width: 16px;
  height: 16px;
  accent-color: var(--afr-primary);
}

.afr-perm-select-all-text {
  font-weight: 500;
  font-size: 14px;
  color: var(--afr-text);
}

.afr-perm-grid-wrapper {
  border: 1px solid var(--afr-border);
  border-radius: 8px;
  overflow: hidden;
}

.afr-perm-row {
  display: flex;
  border-bottom: 1px solid var(--afr-border);
}

.afr-perm-row:last-child {
  border-bottom: none;
}

.afr-perm-row:nth-child(odd) {
  background: #f8fafc;
}

.afr-perm-row-title-cell {
  width: 250px;
  padding: 16px;
  border-right: 1px solid var(--afr-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.afr-perm-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.afr-perm-icon svg {
  width: 16px;
  height: 16px;
}

.afr-mod-dash {
  background: #e0e7ff;
  color: #4f46e5;
}

.afr-mod-msg {
  background: #dbeafe;
  color: #2563eb;
}

.afr-mod-clients {
  background: #e0f2fe;
  color: #0284c7;
}

.afr-mod-circuits {
  background: #dcfce7;
  color: #16a34a;
}

.afr-mod-exercises {
  background: #ecfdf5;
  color: #059669;
}

.afr-mod-docs {
  background: #fef08a;
  color: #ca8a04;
}

.afr-mod-programs {
  background: #fce7f3;
  color: #db2777;
}

.afr-mod-roles {
  background: #f3e8ff;
  color: #9333ea;
}

.afr-mod-users {
  background: #ffedd5;
  color: #ea580c;
}

.afr-perm-row-title-text {
  font-weight: 500;
  color: var(--afr-text);
  font-size: 14px;
}

.afr-perm-row-options-cell {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.afr-perm-row-all-cell {
  width: 120px;
  padding: 16px;
  border-left: 1px solid var(--afr-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.afr-perm-row-all-cell .afr-perm-checkbox {
  margin: 0;
}

.afr-perm-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--afr-text);
  cursor: pointer;
  user-select: none;
}

.afr-perm-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--afr-primary);
  cursor: pointer;
}

/* Role Permission Table Styles */
.afr-text-dec-none {
  text-decoration: none !important;
}

.afr-role-info-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.afr-role-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #017a9b0d;
  color: #017a9b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.afr-role-icon-box svg {
  width: 20px;
  height: 20px;
}

.afr-role-name-text {
  font-weight: 600;
  color: #1e293b;
  font-size: 14px;
}

.afr-role-desc-text {
  font-size: 13px;
  margin-top: 2px;
}

.afr-role-count-text {
  color: #334155;
  font-weight: 500;
}

.afr-action-btn-group-right {
  justify-content: flex-end;
}

.afr-btn-icon-mr {
  margin-right: 4px;
}

/* Upload Modal Leftover Styles */
.afr-upload-modal {
  max-width: 600px;
}

.afr-upload-textarea {
  min-height: 80px;
  resize: vertical;
}

.afr-upload-dropzone {
  border: 2px dashed #e2e8f0;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
}

.afr-upload-dropzone:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.afr-upload-icon {
  width: 32px;
  height: 32px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.afr-upload-text-main {
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  margin-bottom: 4px;
}

.afr-upload-text-sub {
  font-size: 12px;
  color: #94a3b8;
}

/* Profile Settings Page */
.afr-profile-container {
  max-width: 900px;
  margin: 0 0 auto;
  padding: 0;
}

.afr-profile-header {
  margin-bottom: 32px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 24px;
}

.afr-profile-title {
  font-size: 24px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.afr-profile-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.afr-profile-section {
  display: flex;
  padding: 32px 0;
  border-bottom: 1px solid #f1f5f9;
}

.afr-profile-section:last-child {
  border-bottom: none;
}

.afr-profile-left {
  width: 300px;
  flex-shrink: 0;
  padding-right: 32px;
}

.afr-profile-right {
  flex: 1;
}

.afr-profile-label {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
  display: block;
}

.afr-profile-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* Profile Image Upload */
.afr-profile-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

.afr-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
}

/* Fixed Footer */
.afr-profile-footer {
  position: fixed;
  bottom: 0;
  left: 250px;
  /* Offset for sidebar */
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 16px 32px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  z-index: 900;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
  .afr-profile-section {
    flex-direction: column;
    gap: 24px;
  }

  .afr-profile-left {
    width: 100%;
    padding-right: 0;
  }

  .afr-profile-footer {
    left: 0;
  }
}

/* --- Login Page Styles --- */
.afr-login-wrapper {
  display: flex;
  flex-direction: row-reverse;
  min-height: 100vh;
  background-color: #ffffff;
}

.afr-login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px;
  align-items: center;
  justify-content: center;
}

.afr-login-form-wrapper {
  width: 100%;
  max-width: 440px;
}

.afr-login-logo {
  margin-bottom: 60px;
  text-align: left;
}

.afr-login-logo img {
  height: 60px;
}

.afr-login-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.afr-login-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 32px;
}

.afr-login-form-group {
  margin-bottom: 20px;
}

.afr-login-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 6px;
}

.afr-login-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.afr-login-input:focus {
  outline: none;
  border-color: #0D8ABC;
  box-shadow: 0 0 0 3px rgba(13, 138, 188, 0.1);
}

.afr-login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.afr-login-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}

.afr-login-forgot {
  font-size: 13px;
  color: #0D8ABC;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.afr-login-forgot:hover {
  text-decoration: underline;
}

.afr-login-btn {
  width: 100%;
  padding: 12px;
  background-color: #017a9b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 24px;
}

.afr-login-btn:hover {
  background-color: #0b759f;
}

.afr-login-footer {
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

.afr-login-footer a {
  color: #0D8ABC;
  text-decoration: none;
  font-weight: 500;
}

.afr-login-footer a:hover {
  text-decoration: underline;
}

.afr-login-right {
  flex: 1;
  background: var(--afr-sidebar-accent);
  background-image:
    radial-gradient(circle at 90% 110%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 30%, transparent 30.2%),
    radial-gradient(circle at 90% 110%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 55%, transparent 55.2%),
    radial-gradient(circle at 90% 110%, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.02) 75%, transparent 75.2%),
    var(--afr-sidebar-accent);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 60px;
  color: white;
  overflow: hidden;
}

.afr-login-right-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  width: 100%;
  z-index: 1;
}

.afr-login-right-title-light {
  font-weight: 300;
}

.afr-login-testimonial {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  z-index: 1;
}

.afr-login-stars {
  color: #fbbf24;
  margin-bottom: 16px;
  display: flex;
  gap: 4px;
}

.afr-login-quote {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.afr-login-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.afr-login-author-name {
  font-weight: 600;
  font-size: 15px;
}

.afr-login-author-role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.afr-login-arrows {
  display: flex;
  gap: 8px;
}

.afr-login-arrows button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.afr-login-arrows button:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
  .afr-login-right {
    display: none;
  }

  .afr-login-left {
    padding: 20px;
  }
}

/* Generic Top Tooltip */
.afr-has-tooltip {
  position: relative;
  cursor: pointer;
}

.afr-has-tooltip[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #5E7188;
  /* Matches screenshot slate color */
  color: #fff;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 100;
  pointer-events: none;
}

.afr-has-tooltip[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #5E7188 transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 100;
  pointer-events: none;
}

.afr-has-tooltip:hover[data-tooltip]::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-6px);
}

.afr-has-tooltip:hover[data-tooltip]::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --- Client Detail Sidebar Overhaul --- */
.afr-client-page-layout {
  display: flex;
  height: calc(100vh - 60px);
  /* Adjust based on header height */
  overflow: hidden;
  background: var(--afr-bg);
}

.afr-client-sidebar {
  width: 280px;
  background: #ffffff;
  border-right: 1px solid var(--afr-border);
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
}

.afr-client-sidebar.collapsed {
  width: 80px;
}

.afr-client-sidebar-profile {
  padding: 24px 20px;
  border-bottom: 1px solid var(--afr-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: padding 0.3s ease;
}

.afr-client-sidebar.collapsed .afr-client-sidebar-profile {
  padding: 24px 12px;
  align-items: center;
}

.afr-client-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.afr-client-sidebar.collapsed .afr-client-profile-header {
  justify-content: center;
}

.afr-client-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #6D6A87;
  /* Placeholder color from image */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

.afr-client-sidebar.collapsed .afr-client-profile-avatar {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.afr-client-profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.afr-client-sidebar.collapsed .afr-client-profile-info {
  display: none;
}

.afr-client-profile-name {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin: 0;
}

.afr-client-profile-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E8F5E9;
  color: #2E7D32;
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  width: fit-content;
}

.afr-client-profile-lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f7ff;
  color: #1877F2;
  border: 1px solid #bfdbfe;
  padding: 3.5px 9px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(24, 119, 242, 0.05);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.afr-client-profile-lang-badge:hover {
  background: #e0f0fe;
  border-color: #93c5fd;
  color: #0b5ed7;
}

.afr-client-profile-icons {
  display: flex;
  gap: 12px;
  color: var(--afr-muted-fg);
  margin-top: 4px;
}

.afr-client-profile-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.afr-client-sidebar.collapsed .afr-client-profile-stats {
  display: none;
}

.afr-client-stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #555;
}

.afr-client-stat-icon {
  width: 20px;
  height: 20px;
  background: #F0F0F0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.afr-client-stat-icon svg {
  width: 12px;
  height: 12px;
}

.afr-client-sidebar-menu {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.afr-client-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  color: #444;
  text-decoration: none;
  font-weight: 400;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-size: 14px;
}

.afr-client-sidebar.collapsed .afr-client-nav-btn {
  justify-content: center;
  padding: 12px 0;
}

.afr-client-nav-btn:hover {
  background: #F5F5F5;
}

.afr-client-nav-btn.active {
  background: #1a84a112;
  color: var(--afr-theme-primary);
}

.afr-client-nav-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.afr-client-sidebar.collapsed .afr-client-nav-text {
  display: none;
}

.afr-client-sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--afr-border);
  display: flex;
  justify-content: center;
}

.afr-client-collapse-btn {
  background: #F0F0F0;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #444;
  transition: transform 0.3s ease;
}

.afr-client-sidebar.collapsed .afr-client-collapse-btn {
  transform: rotate(180deg);
}

.afr-client-main-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  background: #fdfdfd;
}

.afr-tab-pane {
  display: none;
  height: 100%;
}

.afr-tab-pane.active {
  display: block;
}

/* Chat Mockup Styles */
.afr-chat-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #FAFAFA;
}

.afr-chat-header {
  padding: 16px 15px;
  border-bottom: 1px solid var(--afr-border);
  background: #fff;
  font-weight: 600;
  font-size: 18px;
}

.afr-chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.afr-chat-msg {
  max-width: 60%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.afr-chat-msg.received {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--afr-border);
}

.afr-chat-msg.sent {
  align-self: flex-end;
  background: var(--afr-theme-primary);
  color: #fff;
}

.afr-chat-input-area {
  padding: 16px 24px;
  background: #fff;
  border-top: 1px solid var(--afr-border);
  display: flex;
  gap: 12px;
}

.afr-chat-input {
  flex: 1;
  border: 1px solid var(--afr-border);
  border-radius: 20px;
  padding: 10px 16px;
  outline: none;
}

.afr-chat-send-btn {
  background: var(--afr-theme-primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Profile Form Mockup */
.afr-profile-form-wrap {
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  margin-bottom: 20px !important;
}

/* --- Table Grid & Dynamic In-Column Session Expansion --- */
.afr-table-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(185px, 1fr));
  width: 100%;
  min-width: 1300px;
  transition: grid-template-columns 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.afr-week-block[data-expanded-col] .afr-table-grid-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
}

.afr-week-block[data-expanded-col] .afr-table-grid {
  min-width: 1860px !important;
  width: max-content !important;
}

.afr-week-block[data-expanded-col="1"] .afr-table-grid {
  grid-template-columns: minmax(540px, 3.2fr) repeat(6, minmax(220px, 1fr)) !important;
}

.afr-week-block[data-expanded-col="2"] .afr-table-grid {
  grid-template-columns: minmax(230px, 1.2fr) minmax(540px, 3.2fr) repeat(5, minmax(220px, 1fr)) !important;
}

.afr-week-block[data-expanded-col="3"] .afr-table-grid {
  grid-template-columns: repeat(2, minmax(230px, 1.2fr)) minmax(540px, 3.2fr) repeat(4, minmax(220px, 1fr)) !important;
}

.afr-week-block[data-expanded-col="4"] .afr-table-grid {
  grid-template-columns: repeat(3, minmax(230px, 1.2fr)) minmax(540px, 3.2fr) repeat(3, minmax(220px, 1fr)) !important;
}

.afr-week-block[data-expanded-col="5"] .afr-table-grid {
  grid-template-columns: repeat(4, minmax(230px, 1.2fr)) minmax(540px, 3.2fr) repeat(2, minmax(220px, 1fr)) !important;
}

.afr-week-block[data-expanded-col="6"] .afr-table-grid {
  grid-template-columns: repeat(5, minmax(230px, 1.2fr)) minmax(540px, 3.2fr) minmax(220px, 1fr) !important;
}

.afr-week-block[data-expanded-col="7"] .afr-table-grid {
  grid-template-columns: repeat(6, minmax(230px, 1.2fr)) minmax(540px, 3.2fr) !important;
}

/* Active Column Highlight during Create / Edit */
.afr-week-block[data-expanded-col] {
  position: relative !important;
  z-index: 35 !important;
}

.afr-week-block:has(.afr-col-editor-card) {
  position: relative !important;
  z-index: 35 !important;
}

.afr-week-block:has(.afr-sb-autocomplete.open) {
  position: relative !important;
  z-index: 70 !important;
}

.afr-week-block[data-expanded-col] .afr-table-th.afr-col-active-editing {
  font-weight: 600;
}

.afr-week-block[data-expanded-col] .afr-table-td.afr-col-active-editing {
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  z-index: 40 !important;
  position: relative !important;
  overflow: visible !important;
}

/* --- In-Column Session Editor Card (Exact Offcanvas Form Flow with Overflow Containment) --- */
.afr-col-editor-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: none;
  border-radius: 0 !important;
  overflow: visible !important;
  box-sizing: border-box;
  box-shadow: none !important;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 45 !important;
}

.afr-col-editor-card * {
  box-sizing: border-box;
}

.afr-col-editor-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0 !important;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.afr-col-meta-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.afr-col-editor-top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.afr-col-icon-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.afr-col-icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.afr-col-editor-card .afr-sb-container {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
}

.afr-col-editor-card .afr-sb-field-group {
  padding: 8px 14px;
  background: #f8fafc;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.afr-col-editor-card .afr-sb-field-name {
  border-bottom: 1px solid #e2e8f0;
  padding-top: 10px;
  padding-bottom: 10px;
}

.afr-col-editor-card .afr-sb-input-large {
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: none;
  background: transparent;
  outline: none;
  color: #0f172a;
}

.afr-col-editor-card .afr-sb-cat-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
  max-width: 100%;
}

.afr-col-editor-card .afr-sb-field-focus {
  border-bottom: 1px solid #e2e8f0;
}

.afr-col-editor-card .afr-sb-textarea {
  font-size: 13px;
  line-height: 1.45;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  resize: none;
}

.afr-col-editor-card .afr-sb-exercise-list {
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
}

.afr-col-editor-card .afr-sb-block-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
}

.afr-col-editor-card .afr-sb-block {
  padding: 12px 14px;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible !important;
}

.afr-col-editor-card .afr-sb-content {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: visible !important;
  padding-left: 10px;
  box-sizing: border-box;
}

.afr-col-editor-card .afr-sb-title-row {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.afr-col-editor-card .afr-sb-title-input {
  font-size: 14px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.afr-col-editor-card .afr-sb-demo-row {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.afr-col-editor-card .afr-sb-video-link-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.afr-col-editor-card .circuit-video-tag,
.circuit-video-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  position: relative !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9999px !important;
  padding: 4px 10px !important;
  font-size: 13px !important;
  color: #334155 !important;
  font-weight: 500 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  transition: all 0.2s ease !important;
}

.circuit-video-tag.active-video-popover {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
}

.circuit-video-tag>.circuit-video-tag-clickable {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  max-width: calc(100% - 22px) !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.circuit-video-tag>.circuit-video-tag-clickable>span {
  max-width: 240px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  display: block !important;
  color: #2563eb !important;
  font-weight: 500 !important;
}

.circuit-video-tag .afr-sb-video-popover {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 0 !important;
  right: auto !important;
  width: 330px !important;
  max-width: 90vw !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 14px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.12) !important;
  z-index: 1060 !important;
  display: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  box-sizing: border-box !important;
}

.circuit-video-tag .afr-sb-video-popover.open {
  display: block !important;
}

/* Tooltip indicator arrow pointing up at the clicked badge */
.circuit-video-tag .afr-sb-video-popover::before {
  content: '' !important;
  position: absolute !important;
  top: -6px !important;
  left: 20px !important;
  width: 10px !important;
  height: 10px !important;
  background: #ffffff !important;
  border-top: 1px solid #cbd5e1 !important;
  border-left: 1px solid #cbd5e1 !important;
  transform: rotate(45deg) !important;
  z-index: 2 !important;
}

.afr-col-editor-card .afr-sb-actions {
  padding: 10px 14px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.afr-col-editor-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 !important;
  position: static;
  box-shadow: none;
}

/* --- Populated Session Column (Image 3 Light Mode Layout & Drag-Drop) --- */
.afr-dark-session-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #ffffff;
}

.afr-dark-session-header {
  background: #ffffff;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid #e2e8f0;
  min-height: auto;
  box-sizing: border-box;
  position: relative;
}

.afr-dark-session-left {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px !important;
  min-width: 0 !important;
  width: 100% !important;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.afr-dark-session-left:hover .afr-dark-session-title {
  color: #0284c7 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.afr-dark-checkbox {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  cursor: pointer;
  accent-color: #0284c7;
  flex-shrink: 0;
}

.afr-dark-session-title {
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  width: 100%;
  flex: 0 0 100%;
  margin-bottom: 2px;
}

/* Badges System */
.afr-badge-type,
.afr-badge-show-home {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.3 !important;
  user-select: none !important;
  margin: 0 !important;
}

.afr-badge-bonus {
  background: #ffedd5 !important;
  color: #ea580c !important;
  border: 1px solid #fed7aa !important;
}

.afr-badge-education {
  background: #eff6ff !important;
  color: #0284c7 !important;
  border: 1px solid #bfdbfe !important;
}

.afr-badge-feedback {
  background: #f5f3ff !important;
  color: #7c3aed !important;
  border: 1px solid #ddd6fe !important;
}

.afr-badge-home {
  background: #f3e8ff !important;
  color: #7e22ce !important;
  border: 1px solid #d8b4fe !important;
}

.afr-badge-gym {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
}

.afr-badge-show-home {
  font-weight: 600 !important;
  text-transform: none !important;
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.afr-badge-show-home:hover {
  background: #d1fae5 !important;
  border-color: #6ee7b7 !important;
}

.afr-badge-show-home.afr-badge-hide-home {
  background: #f8fafc !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
}

.afr-badge-show-home.afr-badge-hide-home:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

/* Dedicated Action Buttons Toolbar */
.afr-dark-session-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 3px !important;
  width: 100% !important;
  padding-top: 5px !important;
  margin-top: 2px !important;
  border-top: 1px solid #f1f5f9 !important;
  flex-shrink: 0 !important;
}

.afr-dark-icon-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
}

.afr-dark-icon-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.afr-dark-icon-btn.delete:hover {
  color: #ef4444;
  background: #fee2e2;
}

.afr-drag-handle {
  cursor: grab !important;
}

.afr-drag-handle:active {
  cursor: grabbing !important;
}

/* Warmup / Focus Section (Seamlessly under session header) */
.afr-dark-warmup-box {
  background: #ffffff;
  padding: 10px 12px;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
  border-bottom: 1px solid #e2e8f0;
  white-space: pre-line;
  font-family: inherit;
}

/* Continuous Workout Exercises Section (Connected list matching Image 3) */
.afr-dark-exercise-list {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  background: #f8fafc;
  flex: 1;
  min-height: 140px;
}

.afr-dark-exercise-card {
  background: transparent;
  border-radius: 0 !important;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: none !important;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: grab;
  transition: background 0.15s ease;
  user-select: none;
  position: relative;
}

.afr-dark-exercise-card:hover {
  background: #f1f5f9;
}

.afr-dark-exercise-card:active {
  cursor: grabbing;
}

.afr-dark-exercise-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.afr-dark-exercise-title {
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.afr-dark-exercise-delete {
  display: none !important;
}

.afr-dark-exercise-details {
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-line;
}

.afr-dark-circuit-box {
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
  font-size: 11.5px;
  color: #334155;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Sortable drag and drop styles for session workouts */
.afr-dark-exercise-card.afr-sortable-chosen {
  background: #e2e8f0 !important;
}

.afr-dark-exercise-card.afr-sortable-ghost {
  opacity: 0.35;
  background: #cbd5e1 !important;
  border-top: 2px dashed #0284c7 !important;
  border-bottom: 2px dashed #0284c7 !important;
}

.afr-dark-exercise-card.afr-sortable-drag {
  cursor: grabbing !important;
  background: #ffffff !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid #cbd5e1 !important;
}

/* Session & Workout Column Drop Targets */
.afr-col-session.afr-col-drop-active {
  outline: 2px dashed #0284c7 !important;
  outline-offset: -2px;
  background: #f0f9ff !important;
}

.afr-session-dragging {
  opacity: 0.45 !important;
}

.afr-workout-dragging {
  opacity: 0.45 !important;
}

.afr-empty-exercise-dropzone {
  flex: 1 1 auto;
  width: 100%;
  min-height: 420px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Week Table Header with Checkbox */
.afr-th-week-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.afr-th-week-left .afr-week-select {
  cursor: pointer;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  accent-color: #0284c7;
  flex-shrink: 0;
}

.afr-week-row-delete-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #ef4444;
  padding: 3px 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
  opacity: 0.85;
}

.afr-week-row-delete-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  opacity: 1;
}

/* Modern Custom Confirmation Modal */
.afr-confirm-modal-card {
  max-width: 420px;
  width: 90%;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: afrConfirmPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes afrConfirmPopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.afr-confirm-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.afr-confirm-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.afr-confirm-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.afr-confirm-icon-wrap.warning {
  background: #fffbeb;
  color: #f59e0b;
  border-color: #fef3c7;
}

.afr-confirm-icon {
  width: 26px;
  height: 26px;
}

.afr-confirm-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.afr-confirm-message {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 24px 0;
}

.afr-confirm-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.afr-confirm-btn {
  flex: 1;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.afr-confirm-btn-cancel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.afr-confirm-btn-cancel:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.afr-confirm-btn-danger {
  background: #ef4444;
  border: 1px solid #ef4444;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.afr-confirm-btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}