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

:root {
  /* Light Theme - Gia Dụng Smart */
  --bg-body: #F0F4F3;
  --bg-sidebar: #FFFFFF;
  --bg-topbar: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-input: #F5F8F7;
  --bg-medium: #F0F4F3;
  --bg-hover: #EDF3F1;
  --card-border: #DDE8E5;

  --primary: #2D7A6B;
  --primary-hover: #236B5D;
  --primary-light: rgba(45, 122, 107, 0.08);
  --success: #22A45D;
  --warning: #E8A838;
  --danger: #E53935;
  --info: #1E88E5;

  --text-primary: #1A2E2A;
  --text-secondary: #5A706B;
  --text-muted: #8FA8A2;

  --sidebar-width: 260px;
  --topbar-height: 70px;
  --border-radius: 12px;
  --border-radius-lg: 16px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  --transition: all 0.2s ease;
}

/* Lightbox - xem ảnh full */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  transform: scale(0.85);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.35);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* =================== SIDEBAR =================== */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--card-border);
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 2px 0 12px rgba(0,0,0,0.03);
}

.sidebar-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
  gap: 12px;
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.sidebar-brand-name {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
}

.sidebar-brand-sub {
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 10px;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-item i, .nav-item .emoji {
  margin-right: 12px;
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.nav-item:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  position: relative;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 24px;
  width: 3px;
  background-color: var(--primary);
  border-radius: 0 3px 3px 0;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 90;
}

/* =================== MAIN CONTENT =================== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: var(--transition);
}

/* =================== TOPBAR =================== */
.topbar {
  height: var(--topbar-height);
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 9999;
  overflow: visible !important;
  box-shadow: var(--shadow-xs);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.page-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: visible !important;
  z-index: 10000;
}

.search-bar {
  position: relative;
}

.search-bar input {
  background-color: var(--bg-input);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: 8px 16px 8px 36px;
  border-radius: 20px;
  font-size: 0.85rem;
  width: 260px;
  transition: var(--transition);
}

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

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 122, 107, 0.1);
  background: #fff;
}

.search-bar::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
}

.admin-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #5AB8A5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  font-size: 0.85rem;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Profile Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #E2E8F0;
  padding: 8px 0;
  z-index: 999999 !important;
  display: none;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown-menu.show {
  display: block !important;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #F8FAFC;
  border-bottom: 1px solid #F1F5F9;
}

.user-dropdown-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #5AB8A5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.user-dropdown-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.user-dropdown-name {
  font-weight: 700;
  font-size: 14px;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-role {
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
  margin-top: 2px;
}

.user-dropdown-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 6px 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.user-dropdown-item:hover {
  background: #F1F5F9;
  color: var(--primary);
}

.user-dropdown-item.text-danger {
  color: #DC2626;
}

.user-dropdown-item.text-danger:hover {
  background: #FEF2F2;
  color: #B91C1C;
}

/* =================== PAGE CONTENT =================== */
.page-container {
  padding: 24px;
  flex: 1;
  animation: fadeIn 0.3s ease;
}

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

/* =================== STATS CARDS =================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 122, 107, 0.3);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.stat-title {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.stat-change {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

/* =================== CARDS & TABLES =================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-input);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 14px 24px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.875rem;
}

.table th {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  background: var(--bg-input);
}

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

.table tbody tr:hover {
  background-color: var(--bg-hover);
}

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

/* =================== BADGES =================== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-new { background: #E3F2FD; color: #1565C0; }
.badge-confirmed { background: #FFF3E0; color: #E65100; }
.badge-picking { background: #E0F7FA; color: #00838F; }
.badge-picked { background: #FFF8E1; color: #F57F17; }
.badge-transit { background: #FFF3E0; color: #E65100; }
.badge-delivering { background: #F3E5F5; color: #7B1FA2; }
.badge-returned { background: #FFF3E0; color: #E65100; border: 1px solid #FFB74D; }
.badge-completed { background: #E8F5E9; color: #2E7D32; }
.badge-cancelled { background: #FFEBEE; color: #C62828; }

.badge-vip { background: #FFF8E1; color: #F9A825; border: 1px solid #FFE082; }
.badge-active { background: #E8F5E9; color: #2E7D32; }
.badge-inactive { background: #F5F5F5; color: #9E9E9E; }

/* Flatpickr compact date inputs */
.fp-date-compact {
  width: 120px !important;
  max-width: 120px !important;
  flex: 0 0 120px !important;
  font-size: 13px !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  text-align: center !important;
  box-sizing: border-box !important;
  background: #fff !important;
  color: #1E293B !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  outline: none !important;
}
.fp-date-compact:focus {
  border-color: #2D7A6B !important;
  box-shadow: 0 0 0 2px rgba(45,122,107,0.15) !important;
}
/* Expense form date picker - full width override */
.form-group .fp-date-compact {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 auto !important;
  text-align: left !important;
  font-size: 14px !important;
  padding: 10px 16px !important;
}

/* Delete Order Button */
.btn-delete-order {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  opacity: 0.5;
}
.btn-delete-order:hover {
  background: #FFEBEE;
  opacity: 1;
  transform: scale(1.1);
}

/* Order Status Select */
.order-status-select {
  padding: 4px 6px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 13px;
  background: var(--bg-white);
  cursor: pointer;
  outline: none;
  min-width: 40px;
  transition: border-color 0.2s;
}
.order-status-select:hover {
  border-color: var(--primary);
}
.order-status-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(45, 122, 107, 0.1);
}

/* Duplicate Order */
.badge-duplicate {
  display: inline-block;
  background: #FFF3E0;
  color: #E65100;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #FFE0B2;
  margin-left: 4px;
  vertical-align: middle;
}
.row-duplicate {
  background: #FFF8E1 !important;
}
.row-duplicate:hover {
  background: #FFF3E0 !important;
}

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(45, 122, 107, 0.25);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: #B8CAC5;
}

.btn-danger {
  background: #FFEBEE;
  color: var(--danger);
  border: 1px solid #FFCDD2;
}

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

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
}

/* =================== FORMS =================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 10px 16px;
  background-color: var(--bg-input);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 122, 107, 0.1);
  background: #fff;
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* =================== MODALS =================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 10;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  position: sticky;
  bottom: 0;
  background: var(--bg-card);
}

/* =================== TABS =================== */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab {
  padding: 7px 16px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  font-weight: 500;
}

.tab:hover {
  background: var(--bg-hover);
}

.tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* =================== CHARTS =================== */
.chart-container {
  height: 280px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 20px 0;
}

.chart-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 8px;
}

.chart-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(45, 122, 107, 0.15) 100%);
  border-radius: 6px 6px 0 0;
  transition: height 1s ease;
}

.chart-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* =================== TOAST NOTIFICATIONS =================== */
.toast-container {
  position: fixed !important;
  top: 90px !important;
  right: 24px !important;
  z-index: 99999999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  pointer-events: none !important;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 0.875rem;
}

.toast.show {
  transform: translateX(0);
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }

/* =================== LOGIN =================== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #E8F5F1 0%, #F0F4F3 50%, #FFF8E8 100%);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

/* =================== UTILITIES =================== */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 8px; }

/* =================== RESPONSIVE =================== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .topbar {
    padding: 0 16px;
  }
  
  .search-bar {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .mobile-overlay.show {
    display: block;
  }
}

/* ================= PROFILE ACTION MENU ================= */
.profile-action-menu {
  position: fixed;
  width: 270px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #E2E8F0;
  padding: 8px 0;
  z-index: 999999;
  display: none;
  animation: pamFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.profile-action-menu.active {
  display: block;
}
@keyframes pamFadeIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.pam-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #F8FAFC;
  border-bottom: 1px solid #F1F5F9;
}
.pam-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #5AB8A5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.pam-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pam-info {
  flex: 1;
  min-width: 0;
}
.pam-name {
  font-weight: 700;
  font-size: 14px;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pam-role {
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
  margin-top: 2px;
}
.pam-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 6px 0;
}
.pam-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  background: none;
  border: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.pam-item:hover {
  background: #F1F5F9;
  color: var(--primary);
  padding-left: 20px;
}
.pam-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
}
.pam-item.pam-danger {
  color: #DC2626;
}
.pam-item.pam-danger:hover {
  background: #FEF2F2;
  color: #B91C1C;
}
