/* ==========================================================================
   PREMIUM ENTERPRISE GLASSMORPHISM DESIGN SYSTEM (styles.css - TEAM LEADER)
   Colors: Navy Blue (Primary) + White + Cyan Glow (Accents) + Bright Aura Backgrounds
   ========================================================================== */

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

:root {
  /* Color Palette */
  --primary-navy: #0f172a;        /* Deep Slate Navy */
  --primary-blue: #1e293b;        /* Dark Slate blue */
  --accent-cyan: #06b6d4;         /* Electric Cyan */
  --accent-cyan-hover: #0891b2;   /* Deep Cyan */
  --accent-cyan-light: rgba(6, 182, 212, 0.15);
  
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 40%, #cbd5e1 100%);
  
  /* Status Colors */
  --status-success: #10b981;      /* Emerald Green */
  --status-warning: #f59e0b;      /* Amber Yellow */
  --status-danger: #ef4444;       /* Rose Red */
  --status-info: #3b82f6;         /* Bright Blue */
  
  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-bg-hover: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
  --glass-shadow-hover: 0 16px 40px 0 rgba(15, 23, 42, 0.15);
  --blur-amount: 20px;
  
  /* Layout */
  --sidebar-width: 290px;
  --header-height: 80px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--primary-navy);
  background: var(--bg-gradient);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background glowing blobs */
body::before, body::after {
  content: '';
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}
body::before {
  top: -10vw;
  right: -10vw;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
}
body::after {
  bottom: -10vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}
::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.3);
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  overflow: hidden;
  padding: 24px;
}

.glass-card.interactive {
  cursor: pointer;
}

.glass-card.interactive:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover);
  border-color: rgba(6, 182, 212, 0.4);
}

/* App Wrapper Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border-right: 1px solid var(--glass-border);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.03);
  transition: var(--transition-smooth);
}

.sidebar-logo {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--accent-cyan) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}

.logo-text h2 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.logo-text span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.4);
  letter-spacing: 1.2px;
  margin-bottom: 6px;
  padding-left: 12px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.75);
  font-size: 0.88rem;
  font-weight: 550;
  transition: var(--transition-smooth);
}

.nav-item-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-item-content i {
  font-size: 1rem;
  color: rgba(15, 23, 42, 0.55);
  width: 20px;
  text-align: center;
  transition: var(--transition-smooth);
}

.nav-item:hover a, .nav-item.active a {
  color: var(--primary-navy);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.nav-item:hover i, .nav-item.active i {
  color: var(--accent-cyan);
  transform: scale(1.1);
}

.nav-item.active a {
  border-left: 3px solid var(--accent-cyan);
  padding-left: 9px;
  font-weight: 600;
}

.nav-item .badge {
  background: var(--accent-cyan-light);
  color: var(--accent-cyan-hover);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
}

/* User Info Panel in Sidebar */
.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-img-wrapper {
  position: relative;
}

.user-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.user-status {
  width: 11px;
  height: 11px;
  background: var(--status-success);
  border: 2px solid white;
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  right: 0;
}

.user-details h4 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-navy);
}

.user-details span {
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.6);
  font-weight: 550;
}

/* Main Wrapper & Scrollable Dashboard Area */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Header */
.main-header {
  height: var(--header-height);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 99;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.breadcrumbs {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs span.separator {
  color: rgba(15, 23, 42, 0.3);
}

.breadcrumbs a {
  color: rgba(15, 23, 42, 0.6);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.breadcrumbs a:hover {
  color: var(--accent-cyan);
}

.breadcrumbs span.current {
  color: var(--primary-navy);
  font-weight: 600;
}

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

.search-container {
  position: relative;
  width: 300px;
}

.search-container i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(15, 23, 42, 0.4);
  font-size: 0.9rem;
}

.search-input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  color: var(--primary-navy);
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: rgba(6, 182, 212, 0.5);
  background: white;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.btn-quick-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0284c7 100%);
  color: white;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
  transition: var(--transition-bounce);
}

.btn-quick-action:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.45);
}

.header-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.header-icon-btn:hover {
  background: white;
  color: var(--accent-cyan);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.badge-dot {
  width: 9px;
  height: 9px;
  background: var(--status-danger);
  border: 2px solid white;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  right: 10px;
}

.role-tag {
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-navy);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Dashboard Main Content Scroll Container */
.dashboard-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  animation: pageFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.hero-main-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.hero-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1.25;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, var(--primary-navy) 20%, #1e40af 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.7);
  max-width: 95%;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  padding: 12px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1e3a8a 100%);
  color: white;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
  transition: var(--transition-bounce);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
}

.btn-secondary {
  padding: 12px 28px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--primary-navy);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: white;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
}

.hero-highlight-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.highlight-card {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.highlight-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-cyan);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
  transition: var(--transition-bounce);
}

.highlight-card:hover .highlight-icon-circle {
  transform: rotate(15deg) scale(1.1);
  background: var(--accent-cyan);
  color: white;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.highlight-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.highlight-value {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary-navy);
}

/* KPI Cards Grid (6 columns) */
.kpi-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.kpi-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.6);
}

.kpi-card-icon {
  font-size: 1.1rem;
  color: var(--accent-cyan);
}

.kpi-card-value {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--primary-navy);
  margin-top: 4px;
}

.kpi-card-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  margin-top: auto;
}

.kpi-card-trend.up {
  color: var(--status-success);
}

.kpi-card-trend.down {
  color: var(--status-danger);
}

.kpi-card-trend.neutral {
  color: rgba(15, 23, 42, 0.5);
}

/* Section Main Heading Title */
.section-main-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  position: relative;
  padding-left: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.section-main-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 22px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, #0369a1 100%);
  border-radius: 3px;
}

.section-subtitle-span {
  font-family: 'Inter', sans-serif;
  font-weight: 550;
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.5);
  margin-left: 10px;
}

/* Generic Section Panel Headers */
.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  padding-bottom: 14px;
}

.panel-header-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-header-title i {
  color: var(--accent-cyan);
}

/* Custom Table Styles */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  padding: 14px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.5);
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.15);
}

.custom-table td {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--primary-navy);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  vertical-align: middle;
}

.custom-table tbody tr {
  transition: var(--transition-smooth);
}

.custom-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.35);
}

.avatar-info-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-info-cell img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

.name-details {
  display: flex;
  flex-direction: column;
}

.name-details .name {
  font-weight: 600;
}

.name-details .sub {
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.45);
}

/* Badge System */
.badge-status-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-status-pills.active, .badge-status-pills.approved {
  background: rgba(16, 185, 129, 0.12);
  color: var(--status-success);
}

.badge-status-pills.pending {
  background: rgba(245, 158, 11, 0.12);
  color: var(--status-warning);
}

.badge-status-pills.rejected, .badge-status-pills.returned {
  background: rgba(239, 68, 68, 0.12);
  color: var(--status-danger);
}

.badge-status-pills.processing, .badge-status-pills.active-status {
  background: rgba(59, 130, 246, 0.12);
  color: var(--status-info);
}

/* Dashboard Specific Layout Rows */

/* Section A: Team Execution + Section B: Nhiệm vụ cần duyệt */
.row-execution-approvals {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 32px;
}

.member-workload-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.member-workload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.member-info {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 40%;
}

.member-progress-container {
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
}

.member-progress-bg {
  height: 6px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.member-progress-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--status-info) 100%);
  transition: width 1s ease-in-out;
}

.workload-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.workload-badge.high {
  background: rgba(239, 68, 68, 0.12);
  color: var(--status-danger);
}
.workload-badge.medium {
  background: rgba(245, 158, 11, 0.12);
  color: var(--status-warning);
}
.workload-badge.low {
  background: rgba(16, 185, 129, 0.12);
  color: var(--status-success);
}

/* Approval Panel styling (Section B) */
.approval-panel-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.approval-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-smooth);
}

.approval-item:hover {
  background: white;
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

.approval-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.approval-item-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary-navy);
}

.approval-item-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.6);
  background: rgba(255, 255, 255, 0.3);
  padding: 8px 12px;
  border-radius: 8px;
}

.approval-item-meta span strong {
  color: var(--primary-navy);
}

.approval-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn-approve {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--status-success);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-approve:hover {
  background: #0d9488;
}

.btn-return {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--status-danger);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(239, 68, 68, 0.15);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-return:hover {
  background: var(--status-danger);
  color: white;
}

/* Row: AI Hỏi đáp (C) + Kịch bản & Khuyến mại (D) */
.row-ai-scripts {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 32px;
}

.ai-preview-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-suggested-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-prompt-chip {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 550;
  color: var(--primary-navy);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ai-prompt-chip:hover {
  background: var(--accent-cyan-light);
  color: var(--accent-cyan-hover);
  border-color: rgba(6, 182, 212, 0.3);
}

.ai-knowledge-sources {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.kb-source-card {
  padding: 10px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.kb-source-card:hover {
  background: white;
  transform: translateY(-2px);
}

.kb-source-card i {
  font-size: 1.25rem;
  color: var(--accent-cyan);
  margin-bottom: 6px;
  display: block;
}

/* Chat Input inside Chatbot Preview Widget */
.ai-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ai-input-field {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: white;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-smooth);
}

.ai-input-field:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-light);
}

.btn-ai-submit {
  position: absolute;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-navy);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-ai-submit:hover {
  background: var(--accent-cyan);
}

/* Scripts + Promos Cards */
.split-deck-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.script-item-row, .promo-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.78rem;
  transition: var(--transition-smooth);
}

.script-item-row:hover, .promo-item-row:hover {
  background: white;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.tag-script {
  padding: 3px 6px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--primary-navy);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 4px;
}

/* Row E: Zalo kết bạn + Xử lý công việc & Row F: Xe và vị trí xe */
.row-zalo-vehicles {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr;
  gap: 32px;
}

.zalo-stats-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.zalo-stat-circle-card {
  background: rgba(255, 255, 255, 0.2);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--glass-border);
}

.zalo-stat-value {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent-cyan-hover);
  margin-bottom: 4px;
}

.zalo-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.6);
}

/* Vehicles Map Visual Representation (Section F) */
.map-visual-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vehicle-map-placeholder {
  height: 180px;
  border-radius: 12px;
  background: #cbd5e1;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

/* Grid lines to make it look like a map */
.map-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Map roads styling */
.map-road {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
}
.map-road.horizontal {
  height: 12px;
  left: 0;
  right: 0;
  top: 40%;
}
.map-road.vertical {
  width: 12px;
  top: 0;
  bottom: 0;
  left: 30%;
}
.map-road.vertical-2 {
  width: 12px;
  top: 0;
  bottom: 0;
  left: 70%;
}

.vehicle-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.vehicle-pin:hover {
  transform: scale(1.15);
  z-index: 10;
}

.vehicle-pin i {
  font-size: 1.2rem;
  color: var(--accent-cyan);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.vehicle-pin-label {
  padding: 2px 6px;
  background: var(--primary-navy);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 4px;
  margin-top: 2px;
  white-space: nowrap;
}

.vehicle-status-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
}

.vehicle-status-row i {
  color: var(--accent-cyan);
}

/* Row G: KPI + BSC Structured Section */
.kpi-bsc-section {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
}

.bsc-score-deck {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.bsc-block {
  padding: 16px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bsc-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--accent-cyan);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.bsc-info h5 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.4);
  letter-spacing: 0.5px;
}

.bsc-info span {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-navy);
}

.bsc-info p {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--status-success);
}

/* Row H: Internal Operations Section Card Deck */
.internal-cards-layout {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.internal-glass-card {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.internal-glass-card:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(6, 182, 212, 0.3);
}

.internal-icon-bg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-cyan);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
  transition: var(--transition-bounce);
}

.internal-glass-card:hover .internal-icon-bg {
  background: var(--primary-navy);
  color: white;
  transform: rotate(10deg);
}

.internal-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-navy);
}

.internal-desc {
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.5);
  line-height: 1.4;
}

.internal-badge-alert {
  margin-top: auto;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.internal-badge-alert.danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--status-danger);
}
.internal-badge-alert.info {
  background: rgba(59, 130, 246, 0.12);
  color: var(--status-info);
}
.internal-badge-alert.success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--status-success);
}
.internal-badge-alert.warning {
  background: rgba(245, 158, 11, 0.12);
  color: var(--status-warning);
}

/* Budget Warning Alert (Inside chi phí nghiệp vụ/internal operations) */
.budget-warning-block {
  padding: 10px 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 8px;
  color: var(--status-danger);
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulseWarning 2s infinite ease-in-out;
}

@keyframes pulseWarning {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(0.98);
  }
}

/* Modals Overlay & Premium Modal Style */
.modal-overlay-wrapper {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay-wrapper.active {
  opacity: 1;
  pointer-events: auto;
}

.glass-modal {
  width: 550px;
  max-width: 90%;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-bounce);
  overflow: hidden;
}

.modal-overlay-wrapper.active .glass-modal {
  transform: scale(1) translateY(0);
}

.modal-header-glass {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-glass h3 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: rgba(15, 23, 42, 0.4);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-close-modal:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--status-danger);
}

.modal-body-content {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.form-group-glass {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group-glass label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.7);
}

.form-control-glass {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.5);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--primary-navy);
  outline: none;
  transition: var(--transition-smooth);
}

.form-control-glass:focus {
  border-color: var(--accent-cyan);
  background: white;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.modal-footer-glass {
  padding: 16px 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Notification Dropdown Drawer */
.notification-dropdown {
  position: absolute;
  top: 90px;
  right: 40px;
  width: 360px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
  z-index: 101;
}

.notification-dropdown.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.notification-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  padding-bottom: 8px;
}

.notification-dropdown-header h4 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.notification-list-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notification-list-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.3);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.notification-list-item:hover {
  background: white;
}

.notification-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--accent-cyan);
}

.notification-item-info h5 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-navy);
}

.notification-item-info p {
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.5);
  margin-top: 2px;
}

/* Premium AI Panel Chatbot Overlay */
.ai-chat-bubble-widget {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
}

.ai-bubble-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary-navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
  transition: var(--transition-bounce);
}

.ai-bubble-btn:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.5);
}

.ai-chat-window-glass {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 390px;
  height: 520px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
  transition: var(--transition-bounce);
}

.ai-chat-window-glass.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-chat-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-chat-title-group i {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.ai-chat-title-group h4 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: white;
  margin: 0;
}

.ai-chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  max-width: 82%;
  line-height: 1.4;
}

.chat-bubble.bot {
  background: rgba(15, 23, 42, 0.05);
  color: var(--primary-navy);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-bubble.user {
  background: var(--accent-cyan);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.ai-chat-input-bar {
  padding: 12px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.4);
}

.ai-chat-input-bar input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: white;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-smooth);
}

.ai-chat-input-bar input:focus {
  border-color: var(--accent-cyan);
}

.btn-send-chat {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-navy);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
}

.btn-send-chat:hover {
  transform: scale(1.04);
  background: var(--accent-cyan);
}

/* Premium Toast Notification */
.premium-toast {
  position: fixed;
  bottom: 40px;
  left: 40px;
  padding: 14px 22px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: white;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 550;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-toast.active {
  transform: translateY(0);
  opacity: 1;
}

.premium-toast i {
  color: var(--accent-cyan);
  font-size: 1.15rem;
}

/* Responsive Styles for Desktop/Laptop Focus */
@media (max-width: 1400px) {
  .kpi-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .row-execution-approvals, .row-ai-scripts, .row-zalo-vehicles, .kpi-bsc-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .internal-cards-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 80px;
  }
  .sidebar-logo .logo-text, .sidebar-user .user-details, .sidebar-nav .nav-group-title, .sidebar-nav span:not(.badge) {
    display: none;
  }
  .main-wrapper {
    margin-left: 80px;
  }
  .internal-cards-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   ADVANCED TEAM LEADER COCKPIT MODULE ADDITIONS
   ========================================================================== */

/* Management Quick Actions Bar */
.management-quick-actions-container {
  margin-bottom: 8px;
}

.management-quick-actions {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  overflow-x: auto;
  align-items: center;
  scrollbar-width: thin;
}

.management-quick-actions::-webkit-scrollbar {
  height: 4px;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.65);
  color: var(--primary-navy);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-bounce);
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  background: white;
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.18);
  color: var(--accent-cyan-hover);
}

.quick-action-btn i {
  color: var(--accent-cyan);
  font-size: 0.9rem;
}

/* Performance Table & Badging */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.good {
  background: rgba(16, 185, 129, 0.12);
  color: var(--status-success);
}

.status-pill.warning {
  background: rgba(245, 158, 11, 0.12);
  color: var(--status-warning);
}

.status-pill.danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--status-danger);
}

.btn-table-action {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-navy);
  transition: var(--transition-smooth);
}

.btn-table-action:hover {
  background: var(--primary-navy);
  color: white;
  transform: translateY(-1px) scale(1.05);
}

.btn-table-action.accent-hover:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: white;
}

.btn-table-action.danger-hover:hover {
  background: var(--status-danger);
  border-color: var(--status-danger);
  color: white;
}

/* Compact Summary row (A) */
.team-summary-compact-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.summary-mini-card {
  padding: 12px 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  transition: var(--transition-smooth);
}

.summary-mini-card:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.25);
}

.summary-mini-card span {
  font-size: 0.66rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.summary-mini-card .val {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary-navy);
}

/* Detailed Approvals */
.approval-item-detailed {
  padding: 18px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition-smooth);
}

.approval-item-detailed:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.badge-priority {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-priority.high {
  background: rgba(239, 68, 68, 0.15);
  color: var(--status-danger);
}

.badge-priority.medium {
  background: rgba(245, 158, 11, 0.15);
  color: var(--status-warning);
}

.badge-priority.low {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-success);
}

/* Compliance LMS Alert block */
.compliance-alert-block {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #b45309;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ==========================================================================
   SALES DASHBOARD EXTENDED STYLES
   Premium additions for Sales User role — same design DNA as Leader portal.
   ========================================================================== */

/* Sales role-tag accent override — distinguishes Sales from Leader */
.role-tag {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(15, 23, 42, 0.06) 100%);
  border-color: rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan-hover);
}

/* Active table row highlight (selected call / order row) */
.custom-table tbody tr.active-tr {
  background: rgba(6, 182, 212, 0.06) !important;
  border-left: 3px solid var(--accent-cyan);
}

.custom-table tbody tr.active-tr td:first-child {
  padding-left: 15px;
}

/* Today Task Item States */
.today-task-item {
  position: relative;
}

.today-task-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: transparent;
  transition: var(--transition-smooth);
}

.today-task-item:hover::before {
  background: var(--accent-cyan);
}

/* Urgency color bands for today task items */
.today-task-item[id="task-2-row"]::before { background: var(--status-danger); }
.today-task-item[id="task-3-row"]::before { background: var(--status-warning); }
.today-task-item[id="task-4-row"]::before { background: var(--status-info); }
.today-task-item[id="task-5-row"]::before { background: rgba(15, 23, 42, 0.15); }

/* Waveform animation variety for live feel */
.waveform-bar:nth-child(odd) {
  animation-duration: 0.9s;
}
.waveform-bar:nth-child(even) {
  animation-duration: 1.4s;
}

/* VOIP Dialer Modal */
#dialerOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#dialerOverlay.active {
  opacity: 1;
  pointer-events: auto;
}

#dialerOverlay .glass-modal {
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-bounce);
}

#dialerOverlay.active .glass-modal {
  transform: scale(1) translateY(0);
}

/* Stepper timeline */
.stepper-step .stepper-icon {
  box-shadow: none;
  transition: var(--transition-bounce);
}

.stepper-step:hover .stepper-icon {
  transform: scale(1.15);
}

.stepper-step.active .stepper-icon {
  background: var(--status-success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.stepper-step.current .stepper-icon {
  background: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2);
  animation: pulseStep 2s infinite ease-in-out;
}

@keyframes pulseStep {
  0%, 100% { box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2); }
  50%       { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0.08); }
}

/* Active promo card hover */
.active-promo-card {
  transition: var(--transition-bounce);
}
.active-promo-card:hover {
  transform: translateY(-4px);
}

/* Blocked order banner pulse */
.blocked-banner {
  animation: pulseWarning 2.5s infinite ease-in-out;
}

/* Expense over-budget alert */
#expenseAlertBlock {
  animation: pulseWarning 2s infinite ease-in-out;
}

/* Compliance success block */
.compliance-success-block {
  animation: none;
}

/* Reconciliation card hover */
.reconciliation-card {
  transition: var(--transition-smooth);
  cursor: default;
}
.reconciliation-card:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.25);
}

/* Sales quick action bar — override label color */
.management-quick-actions > span {
  color: var(--primary-navy) !important;
}

/* Today task time badge */
.time-badge-urgent {
  background: rgba(239, 68, 68, 0.1);
  color: var(--status-danger);
  border-radius: 10px;
}
.time-badge-normal {
  background: var(--accent-cyan-light);
  color: var(--accent-cyan-hover);
  border-radius: 10px;
}

/* Call coaching panel smooth entry */
#coachingDetailPanel {
  transition: var(--transition-smooth);
}

/* AI prompt chips row — wrap nicely on Sales panels */
.ai-suggested-prompts {
  row-gap: 6px;
}

/* Sales KPI grid responsive — 3 cols on medium screens */
@media (max-width: 1400px) {
  .call-coaching-container,
  .data-panel-grid,
  .order-accounting-grid,
  .logistic-task-grid,
  .internal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 1200px) {
  .kpi-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .reconciliation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 80px;
  }
  .sidebar-logo .logo-text,
  .sidebar-user .user-details,
  .sidebar-nav .nav-group-title,
  .sidebar-nav span:not(.badge) {
    display: none;
  }
  .main-wrapper {
    margin-left: 80px;
  }
}

/* ==========================================================================
   END SALES DASHBOARD EXTENDED STYLES
   ========================================================================== */
