@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
  --app-font: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";

  /* === PALETTE CHÍNH: 4 màu Pastel Dream === */
  --app-primary: #6B92FF;
  --app-primary-base: #6B92FF;
  --app-primary-azure: #3b82f6;
  --app-primary-ocean: #2563EB;
  --app-primary-rose: #EC4899;

  /* === THANG MÀU PRIMARY (scale từ nhạt đến đậm) === */
  --primary-50: #F0F4FF;
  --primary-100: #E0EBFF;
  --primary-200: #C7DBFF;
  --primary-300: #A5C5FF;
  --primary-400: #7BA8FF;
  --primary-500: #6B92FF;
  --primary-600: #4B6FD9;
  --primary-700: #3B56B0;
  --primary-800: #2D4287;
  --primary-900: #1F2F5E;

  /* === MÀU PHỤ (Secondary - Rose pastel) === */
  --secondary-50: #FDF2F8;
  --secondary-100: #FCE7F3;
  --secondary-200: #FBCFE8;
  --secondary-300: #F9A8D4;
  --secondary-400: #F472B6;
  --secondary-500: #EC4899;
  --secondary-600: #DB2777;
  --secondary-700: #BE185D;
  --secondary-800: #9D174D;
  --secondary-900: #831843;

  /* === MÀU NEUTRAL (Gray pastel) === */
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* === MÀU SEMANTIC === */
  --success-50: #F0FDF4;
  --success-100: #DCFCE7;
  --success-500: #22C55E;
  --success-600: #16A34A;
  --success-700: #15803D;

  --warning-50: #FFFBEB;
  --warning-100: #FEF3C7;
  --warning-500: #F59E0B;
  --warning-600: #D97706;
  --warning-700: #B45309;

  --error-50: #FEF2F2;
  --error-100: #FEE2E2;
  --error-500: #EF4444;
  --error-600: #DC2626;
  --error-700: #B91C1C;

  /* === SHORTHAND (cho inline style trong dashboard) === */
  --green: #22C55E;
  --green-lt: #DCFCE7;
  --amber: #F59E0B;
  --orange: #F97316;
  --orange-lt: #FFEDD5;
  --red: #EF4444;
  --blue: #3B82F6;
  --blue-lt: #DBEAFE;
  --purple: #8B5CF6;
  --purple-lt: #EDE9FE;
  --muted: #94A3B8;

  /* === BUTTON COLORS === */
  --btn-primary-bg: var(--primary-500);
  --btn-primary-hover: var(--primary-600);
  --btn-primary-text: #FFFFFF;
  --btn-primary-disabled: var(--primary-200);

  --btn-secondary-bg: var(--secondary-100);
  --btn-secondary-hover: var(--secondary-200);
  --btn-secondary-text: var(--secondary-700);
  --btn-secondary-border: var(--secondary-300);
  --btn-secondary-disabled: var(--secondary-50);

  --btn-ghost-hover: var(--primary-50);
  --btn-ghost-text: var(--primary-600);

  --btn-outline-border: var(--primary-300);
  --btn-outline-hover: var(--primary-50);
  --btn-outline-text: var(--primary-600);

  /* === CHIP / TAG COLORS === */
  --chip-active-bg: var(--primary-500);
  --chip-active-text: #FFFFFF;
  --chip-inactive-bg: var(--gray-100);
  --chip-inactive-text: var(--gray-600);
  --chip-inactive-hover: var(--primary-50);

  /* === FILTER COLORS === */
  --filter-selected-bg: var(--primary-500);
  --filter-selected-text: #FFFFFF;
  --filter-unselected-bg: #FFFFFF;
  --filter-unselected-text: var(--gray-600);
  --filter-unselected-border: var(--gray-200);
  --filter-unselected-hover: var(--primary-50);
  --filter-unselected-hover-border: var(--primary-200);

  /* === INPUT COLORS === */
  --input-bg: #FFFFFF;
  --input-border: var(--gray-200);
  --input-border-hover: var(--gray-300);
  --input-border-focus: var(--primary-400);
  --input-border-error: var(--error-500);
  --input-placeholder: var(--gray-400);
  --input-text: var(--gray-700);
  --input-label: var(--gray-600);
  --input-disabled-bg: var(--gray-50);
  --input-disabled-border: var(--gray-200);

  /* === GRADIENT === */
  --gradient-primary: linear-gradient(135deg, var(--app-primary-ocean) 0%, var(--app-primary-rose) 100%);
  --gradient-subtle: linear-gradient(135deg, var(--primary-100) 0%, var(--secondary-100) 100%);
}

html,
body {
  font-family: var(--app-font);
}

/* Utility classes dùng chung toàn hệ thống */

.primary-bg {
  background: var(--app-primary) !important;
}

/* ============================================
   BUTTON SYSTEM - Bộ nút nổi bật, phân cấp rõ ràng
   ============================================ */

/* Base button */

.btn{
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  font-weight: 600;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

/* === PRIMARY ACTION - Thêm mới, Lưu (Xanh lá tươi sáng) === */

.btn-add,
.btn-save{
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
  --tw-gradient-from: #10b981 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(16 185 129 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
  --tw-gradient-to: #14b8a6 var(--tw-gradient-to-position);
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  --tw-shadow-color: #a7f3d0;
  --tw-shadow: var(--tw-shadow-colored);
}

.btn-add:hover,
.btn-save:hover{
  --tw-gradient-from: #059669 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(5 150 105 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
  --tw-gradient-to: #0d9488 var(--tw-gradient-to-position);
	transform: translateY(-1px);
	box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

/* === DANGER ACTION - Xóa (Đỏ cam nổi bật) === */

.btn-delete,
.btn-danger{
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
  --tw-gradient-from: #f43f5e var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(244 63 94 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
  --tw-gradient-to: #f97316 var(--tw-gradient-to-position);
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  --tw-shadow-color: #fecdd3;
  --tw-shadow: var(--tw-shadow-colored);
}

.btn-delete:hover,
.btn-danger:hover{
  --tw-gradient-from: #e11d48 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(225 29 72 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
  --tw-gradient-to: #ea580c var(--tw-gradient-to-position);
	transform: translateY(-1px);
	box-shadow: 0 10px 20px -5px rgba(244, 63, 94, 0.4);
}

/* === WARNING ACTION - Cảnh báo (Vàng cam) === */

.btn-warning{
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
  --tw-gradient-from: #fbbf24 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(251 191 36 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
  --tw-gradient-to: #fb923c var(--tw-gradient-to-position);
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  --tw-shadow-color: #fde68a;
  --tw-shadow: var(--tw-shadow-colored);
}

.btn-warning:hover{
  --tw-gradient-from: #f59e0b var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(245 158 11 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
  --tw-gradient-to: #f97316 var(--tw-gradient-to-position);
	transform: translateY(-1px);
	box-shadow: 0 10px 20px -5px rgba(251, 191, 36, 0.4);
}

/* === CANCEL ACTION - Hủy bỏ (Xám đậm rõ ràng) === */

.btn-cancel{
  border-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.btn-cancel:hover{
  --tw-border-opacity: 1;
  border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
	background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

/* === BRAND PRIMARY - Màu chủ đạo Periwinkle (dùng cho CTA quan trọng) === */

.btn-primary{
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
  --tw-gradient-from: #6B92FF var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(107 146 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
  --tw-gradient-to: #4B6FD9 var(--tw-gradient-to-position);
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  --tw-shadow-color: #C7DBFF;
  --tw-shadow: var(--tw-shadow-colored);
}

.btn-primary:hover{
  --tw-gradient-from: #4B6FD9 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(75 111 217 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
  --tw-gradient-to: #3B56B0 var(--tw-gradient-to-position);
	transform: translateY(-1px);
	box-shadow: 0 10px 25px -5px rgba(107, 146, 255, 0.5);
}

/* === SECONDARY - Phụ trợ (Màu tím nhạt pastel) === */

.btn-secondary{
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(203 213 225 / var(--tw-border-opacity, 1));
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
  --tw-gradient-from: #f1f5f9 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(241 245 249 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
  --tw-gradient-to: #e2e8f0 var(--tw-gradient-to-position);
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}

.btn-secondary:hover{
  --tw-gradient-from: #e2e8f0 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(226 232 240 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
  --tw-gradient-to: #cbd5e1 var(--tw-gradient-to-position);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px -2px rgba(100, 116, 139, 0.2);
}

/* === GHOST PRIMARY - Nút viền màu chủ đạo === */

.btn-ghost-primary{
  border-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(165 197 255 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(75 111 217 / var(--tw-text-opacity, 1));
}

.btn-ghost-primary:hover{
  --tw-border-opacity: 1;
  border-color: rgb(123 168 255 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(240 244 255 / var(--tw-bg-opacity, 1));
	box-shadow: 0 0 0 3px rgba(107, 146, 255, 0.15);
}

/* Icon colors cho btn-cancel */

.btn-cancel svg {
	color: currentColor;
	fill: currentColor;
}

/* === GHOST SECONDARY - Nút trong suốt xám === */

.btn-ghost{
  background-color: transparent;
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.btn-ghost:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

/* === OUTLINE SUCCESS - Viền xanh (cho hành động tích cực phụ) === */

.btn-outline-success{
  border-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(52 211 153 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}

.btn-outline-success:hover{
  --tw-border-opacity: 1;
  border-color: rgb(16 185 129 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1));
}

/* === OUTLINE DANGER - Viền đỏ (cho hành động cảnh báo phụ) === */

.btn-outline-danger{
  border-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(251 113 133 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(225 29 72 / var(--tw-text-opacity, 1));
}

.btn-outline-danger:hover{
  --tw-border-opacity: 1;
  border-color: rgb(244 63 94 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 241 242 / var(--tw-bg-opacity, 1));
}

/* Button with icon */

.btn-icon{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

.btn-icon svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* Blade FontAwesome SVG icons trong button */

.btn svg,
.btn-icon svg {
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	vertical-align: middle;
}

/* Khoảng cách giữa icon và label trong button */

.btn>svg+span,
.btn-icon>svg+span {
	margin-left: 0.5rem;
}

/* Màu sắc cho blade-fontawesome SVG */

.btn-add svg,
.btn-save svg,
.btn-primary svg {
	color: currentColor;
	fill: currentColor;
}

.btn-delete svg {
	color: currentColor;
	fill: currentColor;
}

.btn-secondary svg {
	color: currentColor;
	fill: currentColor;
}

.btn-ghost svg {
	color: currentColor;
	fill: currentColor;
}

.btn-ghost-primary svg {
	color: currentColor;
	fill: currentColor;
}

/* Icon colors trong nút - làm nổi bật hơn */

.btn-add svg,
.btn-save svg {
	color: #ffffff;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.btn-delete svg {
	color: #ffffff;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.btn-primary svg {
	color: #ffffff;
}

.btn-ghost-primary svg {
	color: var(--primary-500, #6B92FF);
}

.btn-ghost-primary:hover svg {
	color: var(--primary-600, #4B6FD9);
}

.btn-secondary svg {
	color: var(--primary-400, #7BA8FF);
}

.btn-secondary:hover svg {
	color: var(--primary-500, #6B92FF);
}

/* Animation cho nút */

.btn:active {
	transform: translateY(0);
}

/* Disabled state — cursor 🚫 custom cho tất cả button */

.btn:disabled,
.btn:disabled:hover,
.btn-icon:disabled,
.btn-icon:disabled:hover {
	opacity: 0.45;
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23e74c3c' opacity='.85'/%3E%3Ctext x='12' y='16' text-anchor='middle' font-size='15' fill='white' font-weight='bold'%3E%E2%9C%97%3C/text%3E%3C/svg%3E") 12 12, not-allowed;
	filter: grayscale(0.5);
	pointer-events: auto;
}

/* Button size variants - Small button dùng chung cho header và modal */

.btn-sm,
.section-header-actions .btn,
.modal-footer .btn {
	padding: 7px 12px;
	font-size: 12px;
	height: 34px;
}

/* Nút trong header cần thêm z-index và cursor */

.section-header-actions .btn {
	position: relative;
	z-index: 1;
	cursor: pointer;
}

/* ============================================
   FILTER MODULE - Consolidated Filter Styles
   ============================================
   Tập hợp toàn bộ CSS liên quan đến bộ lọc
   từ các trang danh sách (creator, campaigns,...)
   ============================================ */

/* ------------------------------------------
   Filter Toolbar Zone (Search + Quick Actions)
   ------------------------------------------ */

.filter-toolbar-zone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

/* ==========================================
   Section Header - Tất cả nằm chung 1 hàng
   ========================================== */

.section-header-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.section-header-actions::-webkit-scrollbar {
  display: none;
}

/* Header toolbar actions - chứa search + buttons */

.header-toolbar-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Header search wrap - search + icon filter */

.header-search-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 200px;
  min-width: 160px;
}

.header-search-wrap .filter-search-inline {
  flex: 1;
  min-width: 0;
}

.header-search-wrap .search-input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 6px 10px 6px 32px;
  font-size: 13px;
  box-sizing: border-box;
}

.header-search-wrap .search-input-icon {
  left: 8px;
}

.header-search-wrap .search-icon {
  width: 14px;
  height: 14px;
}

.header-search-wrap .filter-icon-btn {
  flex-shrink: 0;
  padding: 7px;
  border-radius: 6px;
  height: 34px;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nút trong header - chỉ giữ lại các style đặc thù cho filters
   Kích thước cơ bản đã được định nghĩa trong buttons.css */

.section-header-actions .btn {
  /* Đảm bảo button có thể click, không bị đè */
  position: relative;
  z-index: 1;
}

.section-header-actions .btn-icon svg {
  width: 14px;
  height: 14px;
}

/* Nút compact trong filter row */

.btn-compact {
  padding: 6px 10px;
  font-size: 12px;
  gap: 4px;
  height: 32px;
}

.btn-compact svg {
  width: 14px;
  height: 14px;
}

/* Button group trong header */

.section-header-actions .btn-group {
  display: flex;
  gap: 1px;
}

.section-header-actions .btn-group .btn {
  border-radius: 0;
}

.section-header-actions .btn-group .btn:first-child {
  border-radius: 6px 0 0 6px;
}

.section-header-actions .btn-group .btn:last-child {
  border-radius: 0 6px 6px 0;
}

/* Responsive: tablet và mobile */

@media (max-width: 1200px) {
  .header-search-wrap {
    width: 160px;
    min-width: 120px;
  }

  .section-header-actions .btn span {
    display: none;
  }

  .section-header-actions .btn {
    padding: 7px;
    width: 34px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .section-header-actions {
    flex-wrap: wrap;
  }

  .header-toolbar-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }

  .header-search-wrap {
    width: 100%;
    order: -1;
  }
}

/* Button group - border giữa các nút */

.section-header-actions .btn-group .btn:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

/* Toggle filter button (trong body) */

.filter-toggle-btn {
  margin: 0 0 4px 0;
}

.filter-search-wrap {
  position: relative;
  flex: 1 1 320px;
  max-width: 480px;
  min-width: 240px;
}

.filter-search-wrap .search-input,
.filter-search-vertical .search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.filter-search-wrap .search-input:focus,
.filter-search-vertical .search-input:focus {
  outline: none;
  border-color: var(--app-primary, #6b92ff);
  box-shadow: 0 0 0 3px rgba(107, 146, 255, 0.12);
}

.filter-search-vertical {
  position: relative;
  width: 100%;
}

.filter-search-vertical .search-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.search-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-icon {
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

.filter-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-toolbar-actions .btn-icon svg {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------
   Filter Section Header (Collapsible Toggle)
   ------------------------------------------ */

.filter-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-toggle-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.filter-toggle-btn[aria-expanded="true"] .filter-chevron {
  transform: rotate(180deg);
}

.filter-toggle-icon {
  width: 16px;
  height: 16px;
  color: #64748b;
}

.filter-chevron {
  width: 14px;
  height: 14px;
  color: #64748b;
  transition: transform 0.2s ease;
  margin-left: 4px;
}

.filter-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
  margin-bottom: 4px;
}

/* ------------------------------------------
   Filter Panel (Collapsible Content)
   ------------------------------------------ */

.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: filterSlideDown 0.25s ease;
}

.filter-panel.is-collapsed {
  display: none;
}

@keyframes filterSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------
   Filter Grid (Categorized Layout)
   ------------------------------------------ */

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.filter-category {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.filter-category-wide {
  grid-column: 1 / -1;
}

.filter-category-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
  margin: 0;
}

.filter-category-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.filter-category-body.filter-ranges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Ranges hiển thị ngang 3 cột để cân đối với cột pills */

.filter-ranges-horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.filter-ranges-horizontal .filter-group {
  padding: 10px 12px;
}

.filter-ranges-horizontal .range-filter-inputs input {
  padding: 8px 10px;
  font-size: 12px;
}

.filter-ranges-horizontal .filter-group-label {
  font-size: 11px;
  margin-bottom: 8px;
}

/* ------------------------------------------
   Filter Rows: Layout linh hoạt
   ------------------------------------------ */

.filter-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Hàng 1: Followers | GMV | Items (3 cột đều nhau) - legacy */

.filter-row-ranges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
}

/* Hàng 2: Search (1/2) | Contact | Content | Buttons - legacy */

.filter-row-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: stretch;
}

/* ==========================================
   Filter Toggle - CSS Only Checkbox Hack
   ========================================== */

.filter-toggle-checkbox:not(:checked)~.filter-panel {
  display: none;
}

/* Icon states cho filter toggle button */

.filter-toggle-checkbox:checked~.filter-panel .filter-icon-btn .filter-icon-default,
.filter-icon-btn .filter-icon-active {
  display: none;
}

.filter-toggle-checkbox:checked~* .filter-icon-btn .filter-icon-active,
.filter-icon-btn:has(~ .filter-toggle-checkbox:checked) .filter-icon-active {
  display: block;
}

.filter-toggle-checkbox:checked~* .filter-icon-btn .filter-icon-default,
.filter-icon-btn:has(~ .filter-toggle-checkbox:checked) .filter-icon-default {
  display: none;
}

/* Active state cho filter button khi panel mở */

.filter-toggle-checkbox:checked~* .filter-icon-btn,
.filter-icon-btn.active {
  background: var(--primary-50, #F0F4FF);
  border-color: var(--primary-400, #7BA8FF);
  color: var(--primary-600, #4B6FD9);
}

/* ==========================================
   Filter Single Row Layout - Mới
   Pills (auto) | Pills (auto) | 3 Ranges | Actions
   ========================================== */

.filter-row-single {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
}

/* Kênh liên hệ và Loại nội dung - vừa đủ content */

.filter-row-single .filter-item-pills {
  flex: 0 0 auto;
  min-width: -moz-fit-content;
  min-width: fit-content;
}

/* 3 range inputs chia đều không gian còn lại */

.filter-row-single .filter-item-range {
  flex: 1 1 0;
  min-width: 120px;
}

/* Actions - compact, icon-only khi cần */

.filter-row-single .filter-item-actions {
  flex: 0 0 auto;
}

.filter-row-single .filter-item-actions .btn {
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
}

/* Responsive: mobile xuống hàng */

@media (max-width: 1024px) {
  .filter-row-single {
    flex-wrap: wrap;
  }

  .filter-row-single .filter-item-pills {
    flex: 1 1 auto;
  }

  .filter-row-single .filter-item-select {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .filter-row-single .filter-item-range {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .filter-row-single .filter-item-actions {
    flex: 1 1 100%;
    display: flex;
    justify-content: flex-end;
  }
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.filter-item-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  white-space: nowrap;
}

/* Filter item types cho layout mới */

/* Range items (hàng 1: Followers, GMV, Items) */

.filter-item-range {
  min-width: 0;
}

/* Đồng bộ chiều cao filter-item-range với button (34px) */

.filter-item-range .filter-item-label {
  height: 16px;
  /* Chiều cao cố định cho label */
  line-height: 16px;
  margin-bottom: 2px;
}

.filter-item-range .range-filter-inputs {
  height: 34px;
}

/* Pills items - đồng bộ chiều cao với button */

.filter-item-pills {
  flex: 0 0 auto;
  width: auto;
}

.filter-item-pills .filter-item-label {
  height: 16px;
  line-height: 16px;
  margin-bottom: 2px;
}

.filter-item-pills .filter-pills {
  height: 34px;
  align-items: center;
}

/* Select items (dropdown trong filter panel) */

.filter-item-select {
  flex: 0 0 auto;
  width: auto;
  min-width: 130px;
}

.filter-item-select .filter-item-label {
  height: 16px;
  line-height: 16px;
  margin-bottom: 2px;
}

.filter-item-select .filter-select {
  width: 100%;
}

/* Search item (hàng 2) */

.filter-item-search {
  min-width: 0;
}

/* Actions item */

.filter-item-actions {
  flex: 0 0 auto;
  width: auto;
  display: flex;
  align-items: flex-end;
  padding-bottom: 0;
}

/* Search inline trong filter row */

.filter-search-inline {
  position: relative;
  width: 100%;
}

.filter-search-inline .search-input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.filter-search-inline .search-input {
  width: 100%;
  padding: 8px 10px 8px 34px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  font-size: 13px;
  transition: all 0.2s ease;
}

.filter-search-inline .search-input:focus {
  outline: none;
  border-color: var(--app-primary, #6b92ff);
  box-shadow: 0 0 0 3px rgba(107, 146, 255, 0.12);
}

/* Pills trong pills items - không wrap */

.filter-item-pills .filter-pills {
  flex-wrap: nowrap;
}

/* Actions inline */

.filter-actions-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 100%;
}

/* Actions không label - căn bottom */

.filter-actions-inline.no-label {
  align-items: flex-end;
  padding-bottom: 1px;
}

.filter-actions-inline .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}

.filter-actions-inline .btn svg {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------
   Filter Group Component
   ------------------------------------------ */

.filter-group {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-group:hover {
  border-color: #cbd5e1;
}

.filter-group-label {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.filter-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ------------------------------------------
   Filter Pills (Modern Checkbox Alternative)
   ------------------------------------------ */

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  position: relative;
  cursor: pointer;
}

.filter-pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.filter-pill .pill-label {
  display: inline-flex;
  align-items: center;
  padding: 6px;
  /* Đồng bộ padding chiều ngang = chiều dọc = 6px, tổng chiều cao 34px với button */
  height: 34px;
  box-sizing: border-box;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 24px;
  font-size: 12px;
  /* Đồng bộ font-size với button */
  font-weight: 600;
  color: #64748b;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.filter-pill:hover .pill-label {
  border-color: var(--primary-300, #A5C5FF);
  background: var(--primary-50, #F0F4FF);
  color: var(--primary-600, #4B6FD9);
}

.filter-pill input[type="checkbox"]:checked+.pill-label {
  background: linear-gradient(135deg, var(--primary-500, #6B92FF) 0%, var(--primary-600, #4B6FD9) 100%);
  border-color: var(--primary-500, #6B92FF);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(107, 146, 255, 0.45);
  transform: translateY(-1px);
}

.filter-pill input[type="checkbox"]:focus+.pill-label {
  box-shadow: 0 0 0 4px rgba(107, 146, 255, 0.15);
}

.filter-pill input[type="checkbox"]:checked:focus+.pill-label {
  box-shadow: 0 0 0 4px rgba(107, 146, 255, 0.25), 0 4px 14px rgba(107, 146, 255, 0.45);
}

/* ------------------------------------------
   Range Filter Inputs
   ------------------------------------------ */

.range-filter-inputs {
  display: flex;
  align-items: center;
  gap: 4px;
  /* Giảm gap để tăng khoảng cách giữa các cụm thành phần */
  width: 100%;
}

.range-filter-inputs input {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 12px;
  /* Đồng bộ chiều cao 34px với button: 6px + 1px border * 2 = 34px */
  height: 34px;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  font-size: 12px;
  /* Đồng bộ font-size với button */
  color: #0f172a;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.range-filter-inputs input:hover {
  border-color: #cbd5e1;
}

.range-filter-inputs input:focus {
  outline: none;
  border-color: var(--app-primary, #6b92ff);
  box-shadow: 0 0 0 3px rgba(107, 146, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.range-filter-inputs input::-moz-placeholder {
  color: #94a3b8;
  font-size: 12px;
}

.range-filter-inputs input::placeholder {
  color: #94a3b8;
  font-size: 12px;
}

.range-sep {
  font-weight: 600;
  color: #94a3b8;
  font-size: 12px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  min-width: 12px;
  /* Giảm min-width để tăng khoảng cách giữa các cụm thành phần */
  padding: 0 2px;
  text-align: center;
}

/* ------------------------------------------
   Filter Action Bar
   ------------------------------------------ */

.filter-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.filter-action-summary {
  font-size: 13px;
  color: #64748b;
}

.filter-count {
  font-weight: 600;
}

.filter-count.has-filters {
  color: var(--app-primary, #6b92ff);
  font-weight: 700;
}

.filter-action-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-action-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ------------------------------------------
   Legacy Filter Classes (Deprecated - for backward compatibility)
   ------------------------------------------ */

.filter-divider {
  height: 1px;
  background: var(--line, #e2e8f0);
  margin: 12px 0;
}

.filter-container {
  display: block;
}

.filter-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-actions-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.filter-actions-col .filter-actions {
  display: flex;
  gap: 8px;
  flex-direction: column;
  align-items: stretch;
}

/* ------------------------------------------
   Responsive: Filter Layout mới
   ------------------------------------------ */

/* Tablet: hàng ranges giữ 3 cột, hàng filters 2 cột */

@media (max-width: 1024px) {

  /* Hàng ranges: giữ 3 cột */
  .filter-row-ranges {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  /* Hàng filters: 2 cột */
  .filter-row-filters {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .filter-item-pills .filter-pills {
    flex-wrap: wrap;
  }

  /* Actions full width */
  .filter-item-actions {
    grid-column: 1 / -1;
  }

  .filter-actions-inline.no-label {
    justify-content: flex-end;
  }
}

/* Mobile: 1 cột */

@media (max-width: 767px) {
  .filter-rows {
    gap: 10px;
  }

  .filter-row-ranges,
  .filter-row-filters {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filter-item {
    padding: 10px 12px;
  }

  .filter-item-actions {
    grid-column: auto;
  }

  .filter-actions-inline.no-label {
    justify-content: stretch;
  }

  .filter-actions-inline .btn {
    flex: 1 1 0;
    justify-content: center;
  }
}

/* Filter select - dropdown lọc dùng trong section header */

/* Inline filter pattern (label + input cùng hàng) — dùng chung cho filter toolbar */

.filter-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.filter-inline-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  flex-shrink: 0;
}

.filter-select {
  height: 34px;
  font-size: 12px;
  min-width: 150px;
  padding: 0 10px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: #ffffff;
  color: var(--gray-700);
  outline: none;
}

.filter-select:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(107, 146, 255, 0.12);
}

@media (max-width: 640px) {
  .filter-toolbar-zone {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-toolbar-actions {
    justify-content: stretch;
  }

  .filter-toolbar-actions .btn {
    flex: 1 1 0;
    justify-content: center;
  }

  .filter-actions-col .filter-actions {
    flex-direction: row;
  }

  .filter-actions-col .filter-actions .btn {
    flex: 1 1 0;
    justify-content: center;
  }
}

/* Logo wrapper: vòng tròn cho logo có nền trong suốt */

.logo-wrapper {
	--logo-size: 64px;
	width: var(--logo-size);
	height: var(--logo-size);
	border-radius: 9999px;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: transparent;
}

.logo-wrapper img {
	width: 70%;
	height: 70%;
	-o-object-fit: contain;
	   object-fit: contain;
	display: block;
}

/* Auth form components */

.auth-title{
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 800;
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

.auth-subtitle{
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.auth-form{
  margin-top: 1.5rem;
}

.auth-form > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.auth-input{
  margin-top: 0.25rem;
  display: block;
  width: 100%;
  border-radius: 0.375rem;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.auth-input:focus{
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(165 197 255 / var(--tw-ring-opacity, 1));
}

.auth-checkbox{
  margin-right: 0.5rem;
  height: 1rem;
  width: 1rem;
  border-radius: 0.25rem;
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(75 111 217 / var(--tw-text-opacity, 1));
}

.auth-link{
  font-weight: 500;
  --tw-text-opacity: 1;
  color: rgb(75 111 217 / var(--tw-text-opacity, 1));
}

.auth-btn{
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  --tw-bg-opacity: 1;
  background-color: rgb(107 146 255 / var(--tw-bg-opacity, 1));
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.auth-btn:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(75 111 217 / var(--tw-bg-opacity, 1));
}

.auth-card{
  width: 100%;
  max-width: 28rem;
  border-radius: 0.5rem;
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  padding: 2rem;
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.auth-error-summary {
  background: var(--error-50);
  border: 1px solid var(--error-100);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.auth-error-list {
  margin: 0;
  padding-left: 16px;
  color: var(--error-600);
  font-size: 12px;
  line-height: 1.6;
}

/* =============================================
   LAYOUT - Spacing và canh lề nội dung chính
   ============================================= */

/* Main content area: lề trên đủ để tránh fixed page header + gap đồng bộ với section (20px), lề dưới 5px, lề phải 20px */

main {
  padding-top: 60px !important;
  padding-bottom: 5px !important;
  margin-left: 0 !important;
  margin-right: 20px !important;
}

/* Wrapper nội dung trong main */

main>div {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Small layout variable: gap between sidebar left edge and active item's white background */

:root {
  --sidebar-active-gap: 8px;
}

/* Sidebar overlay - ẩn vì cutout đã xử lý bằng pseudo-elements (::before/::after) */

.sidebar-overlay {
  display: none !important;
}

/* =============================================
   SIDEBAR - Pill-shape, fixed trái màn hình
   Phong cách: hiện đại, mềm mại, neumorphism nhẹ
   ============================================= */

/* Đẩy nội dung chính sang phải để tránh sidebar (chỉ khi có sidebar) */

/* Layout: left 5px + sidebar 96px + gap 20px = 121px */

.has-sidebar {
  --main-content-offset: 121px;
  padding-left: var(--main-content-offset);
}

/* Wrapper sidebar cố định bên trái */

#app-sidebar {
  /* Ghi đè width cũ, dùng pill-shape (mở rộng) */
  width: 96px !important;

  /* Cố định vào viewport: top-left */
  position: fixed;
  left: 5px;
  top: 5px;
  transform: none;
  z-index: 50;

  /* Full height pill with gap from viewport */
  height: calc(100vh - 10px);

  /* Gradient sử dụng màu đặc trưng hệ thống (mặc định: from blue-600 to pink-500) */
  background: linear-gradient(160deg, var(--app-primary-start, #2563EB) 0%, var(--app-primary-end, #EC4899) 100%);

  /* Neumorphism nhẹ */
  box-shadow:
    6px 6px 16px rgba(0, 0, 0, 0.18),
    -2px -2px 8px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);

  /* Layout dọc căn giữa */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 0;

  /* Tắt style cũ */
  background-color: unset;
  border-radius: 24px;

  /* Cho phép pseudo-elements vượt ra ngoài */
  overflow: visible;
}

/* Vùng logo trên cùng */

.sidebar-logo-area {
  margin-bottom: 16px;
}

/* Logo wrapper trong sidebar */

.sidebar-logo-wrapper {
  --logo-size: 44px;
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: 9999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sidebar-logo-wrapper img {
  width: 65%;
  height: 65%;
  -o-object-fit: contain;
     object-fit: contain;
}

/* Slider điều chỉnh màu - thu nhỏ, nằm ngang 45px */

.sidebar-hue-slider {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  outline: none;
  cursor: pointer;
  margin-bottom: 12px;
}

.sidebar-hue-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

/* Nav container - mở rộng toàn bộ chiều rộng sidebar */

.sidebar-nav {
  width: 100%;
  display: flex;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

/* Wrapper li cần position: relative */

.sidebar-nav ul li {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Mỗi item menu */

.sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  padding: 12px 0;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  gap: 6px;
  box-sizing: border-box;
}

/* Hover state */

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Active state - nền trắng, đổ bóng nhẹ */

.sidebar-item.active {
  background: var(--page-bg-color, #f9fafbf6);
  color: hsl(var(--app-primary-hue, 210), 75%, 45%);
  margin-left: var(--sidebar-active-gap);
  width: calc(100% - var(--sidebar-active-gap));
  padding: 12px 8px;
  border-radius: 30px 0 0 30px;
  position: relative;
  z-index: 3;
  box-sizing: border-box;
}

/* Góc cong lõm phía TRÊN item active */

.sidebar-nav ul li:has(.sidebar-item.active)::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 100%;
  width: 24px;
  height: 24px;
  z-index: 2;
  background: radial-gradient(circle at 0% 0%, transparent 24px, var(--page-bg-color, #f9fafbf6) 24px);
}

/* Góc cong lõm phía DƯỚI item active */

.sidebar-nav ul li:has(.sidebar-item.active)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 100%;
  width: 24px;
  height: 24px;
  z-index: 2;
  background: radial-gradient(circle at 0% 100%, transparent 24px, var(--page-bg-color, #f9fafbf6) 24px);
}

/* Icon SVG */

.sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-icon svg {
  width: 20px;
  height: 20px;
}

/* Label nhỏ bên dưới icon */

.sidebar-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.15;
  white-space: nowrap;
}

/* Xử lý tràn tên người dùng ở cuối sidebar */

.sidebar-label-user {
  max-width: 100%;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Vùng swatch màu dưới cùng */

.sidebar-swatch-area {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sidebar-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  opacity: 0.7;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.sidebar-swatch-label {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Layout helpers for splitting sidebar into three vertical areas */

.sidebar-middle {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.sidebar-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 12px;
}

/* Ensure hovering the active item keeps its white background (no blue overlay) */

.sidebar-nav ul li .sidebar-item.active:hover {
  background: var(--page-bg-color, #f9fafb) !important;
  color: hsl(var(--app-primary-hue, 210), 75%, 45%) !important;
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.03) !important;
}

/* Hover state cho các item đang active */

.sidebar-item.active:hover {
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.05);
  color: hsl(var(--app-primary-hue, 210), 75%, 45%);
}

@media (max-width: 768px) {
  .has-sidebar {
    padding-left: 81px;
  }

  #app-sidebar {
    width: 56px !important;
    left: 5px;
    top: 5px;
    height: calc(100vh - 10px);
  }

  .sidebar-item {
    width: 44px;
    min-height: 42px;
    padding: 9px 0;
    gap: 0;
  }

  .sidebar-item .sidebar-label {
    display: none;
  }

  .sidebar-logo-wrapper {
    --logo-size: 36px;
  }

  .sidebar-item.active {
    width: calc(100% - var(--sidebar-active-gap));
    padding: 9px 4px;
  }
}

/* Page Header Component Styles - Gradient header bar matching app theme */

.page-header {
  --page-header-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
  min-height: var(--page-header-height);
  padding: 0 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--app-primary-start, #2563EB) 0%, var(--app-primary-end, #EC4899) 100%);
  box-shadow: 0 4px 16px rgba(14, 111, 186, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Fixed header aligned with main content (starts where sidebar content starts) */
  position: fixed;
  top: 5px;
  left: var(--main-content-offset, 121px);
  right: 24px;
  z-index: 80;
}

.page-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  position: relative;
  flex: 1 1 auto;
}

/* Back button placed inside page header before the icon */

.page-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-right: 4px;
  transition: all 0.2s ease;
}

.page-back-btn .page-back-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-back-btn:hover .page-back-icon {
  background: rgba(255, 255, 255, 0.22);
}

.page-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

/* Blade FontAwesome SVG icon trong page-header */

.page-header-icon svg {
  width: 1em;
  height: 1em;
  color: #ffffff;
  fill: currentColor;
}

.page-header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.4px;
  font-family: var(--app-font, 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans');
}

.page-header-text {
  min-width: 0;
  flex: 1 0 25%;
  max-width: 25%;
}

/* Meta container: nằm inline sau title, chiếm 75% còn lại */

.page-header-meta {
  display: flex;
  align-items: center;
  flex: 3 1 75%;
  min-width: 0;
  overflow: hidden;
}

/* Description/subtitle removed to match compact header design */

.page-header-text h1+p {
  display: none;
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.page-header-actions .actions-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-header-actions .btn-primary,
.page-header-actions .btn-secondary,
.page-header-actions .btn-ghost,
.page-header-actions .btn-danger {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.page-header-actions .btn-primary:hover,
.page-header-actions .btn-secondary:hover,
.page-header-actions .btn-ghost:hover,
.page-header-actions .btn-danger:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
}

/* Default button style in header actions */

.page-header-actions button,
.page-header-actions .btn {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-header-actions button:hover,
.page-header-actions .btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
}

/* Campaign Detail Header Meta - tên chiến dịch, sản phẩm, trạng thái */

.cd-header-meta {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0;
  position: relative;
}

/* Phần campaign name + product name co giãn, chiếm ~3/4 */

.cd-header-info-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 3 1 auto;
  min-width: 0;
  overflow: hidden;
  margin-left: 2px;
}

/* Phần status badge đẩy về phải, chiếm ~1/4 */

.cd-header-status-group {
  flex: 1 0 auto;
  display: flex;
  justify-content: flex-end;
  padding-right: 4px;
}

.cd-header-campaign,
.cd-header-product {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: none;
  flex: 0 1 auto;
}

.cd-header-campaign {
  flex-shrink: 1;
  min-width: 40px;
}

.cd-header-product {
  flex: 1 1 auto;
  min-width: 40px;
}

.cd-header-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Status badge trong header - dùng màu gốc theo từng trạng thái từ status-badge.css */

.cd-header-meta .status-badge {
  font-size: 11px;
  padding: 2px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.page-header-main {
  flex: 1 1 auto;
  min-width: 0;
}

.page-header-actions {
  flex-shrink: 0;
}

/* Responsive adjustments */

@media (max-width: 768px) {
  .page-header {
    padding: 0 16px;
    gap: 8px;
    min-height: 48px;
  }

  .page-header-main {
    flex: 1 1 auto;
    min-width: 0;
  }

  .page-header-text {
    flex: 0 1 auto;
    max-width: none;
    min-width: 0;
  }

  .page-header-meta {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .page-header h1 {
    font-size: 14px;
  }

  .page-header-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .page-back-btn .page-back-icon {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .page-header-actions {
    margin-left: auto;
  }

  .cd-header-info {
    gap: 10px;
    flex-wrap: wrap;
  }

  .cd-header-value {
    max-width: 120px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 0 12px;
    gap: 6px;
    min-height: 44px;
    right: 12px;
  }

  .page-header h1 {
    font-size: 13px;
  }

  .page-header-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .page-header-main {
    gap: 6px;
  }
}

/* Modal component styles - shared across app */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.5);
  z-index: 100;
  animation: modalFadeIn 0.2s ease;
  padding: 16px;
}

.modal{
  box-sizing: border-box;
  border-radius: 0.5rem;
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  font-family: var(--app-font);
  /* Đồng bộ font với hệ thống */
  background: #ffffff;
  width: 100%;
  margin: auto;
  /* Đảm bảo modal centered */
  position: relative;
  /* Để các phần tử con có thể positioned */
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
  animation: modalSlideUp 0.3s ease;
  max-height: 98vh;
  overflow-y: auto;
}

.modal-sm {
  max-width: 480px;
}

.modal-md {
  max-width: 800px;
}

.modal-lg {
  max-width: 1100px;
}

.modal-xl {
  max-width: 1400px;
}

.modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  gap: 16px;
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.modal-body{
  overflow-y: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  max-height: calc(98vh - 120px);
}

.modal-footer{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  position: sticky;
  bottom: 0;
}

.modal-close{
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--gray-400);
  background: transparent;
  border: none;
  padding: 0;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: var(--primary-500);
  background-color: var(--primary-50);
}

/* Animations */

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* small accessibility helpers */

.modal[role="dialog"] {
  outline: none;
}

.modal-overlay.show {
  display: flex;
}

/* Modal variants - Compact cho confirmation dialogs */

.modal.compact {
  max-width: 420px;
}

.modal.compact .modal-header {
  padding: 16px 20px;
}

.modal.compact .modal-body {
  padding: 16px 20px;
}

.modal.compact .modal-footer {
  padding: 12px 20px 16px 20px;
}

/* Modal Icon Styles - cho alert/confirmation modals */

.modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 18px;
  margin-right: 12px;
  flex-shrink: 0;
}

.modal-icon.info {
  background: var(--primary-50);
  color: var(--primary-600);
  border: 1px solid var(--primary-200);
}

.modal-icon.success {
  background: var(--success-50);
  color: var(--success-600);
  border: 1px solid var(--success-100);
}

.modal-icon.warning {
  background: var(--warning-50);
  color: var(--warning-600);
  border: 1px solid var(--warning-100);
}

.modal-icon.error {
  background: var(--error-50);
  color: var(--error-600);
  border: 1px solid var(--error-100);
}

/* Modal Header với icon alignment */

.modal-header.with-icon {
  align-items: center;
}

.modal-header.with-icon h3 {
  display: flex;
  align-items: center;
}

/* Form Validation Styles */

.input-invalid {
  border-color: var(--error-500) !important;
  box-shadow: 0 0 0 3px var(--error-100) !important;
}

.field-error {
  color: var(--error-600);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 4px;
}

.form-error {
  background: var(--error-50);
  border: 1px solid var(--error-100);
  color: var(--error-600);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

/* ============================================
   NOTIFICATION / TOAST CONTAINER
   ============================================ */

.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 4px solid;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: notificationSlideIn 0.3s ease-out forwards;
  pointer-events: auto;
  font-size: 14px;
  line-height: 1.5;
  max-width: 400px;
  word-wrap: break-word;
}

@keyframes notificationSlideIn {
  from {
    opacity: 0;
    transform: translateX(400px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes notificationSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(400px);
  }
}

.notification.closing {
  animation: notificationSlideOut 0.3s ease-in forwards;
}

/* Notification variants */

.notification.success {
  border-left-color: var(--success-500);
  background: var(--success-50);
  color: var(--success-700);
}

.notification.error {
  border-left-color: var(--error-500);
  background: var(--error-50);
  color: var(--error-700);
}

.notification.warning {
  border-left-color: var(--warning-500);
  background: var(--warning-50);
  color: var(--warning-700);
}

.notification.info {
  border-left-color: var(--primary-500);
  background: var(--primary-50);
  color: var(--primary-700);
}

.notification-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: bold;
}

.notification.success .notification-icon::before {
  content: '✓';
  color: var(--success-500);
  font-size: 16px;
}

.notification.error .notification-icon::before {
  content: '✕';
  color: var(--error-500);
  font-size: 14px;
}

.notification.warning .notification-icon::before {
  content: '⚠';
  color: var(--warning-500);
  font-size: 14px;
}

.notification.info .notification-icon::before {
  content: 'ℹ';
  color: var(--primary-500);
  font-size: 14px;
}

.notification-content {
  flex: 1;
  word-break: break-word;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.notification-message {
  font-size: 13px;
  opacity: 0.9;
}

.notification-close {
  background: none;
  border: none;
  padding: 0;
  margin-left: 8px;
  cursor: pointer;
  font-size: 18px;
  color: currentColor;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.notification-close:hover {
  opacity: 1;
}

/* ============================================
   SYNC PROGRESS MODAL
   ============================================ */

.sync-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 4px solid var(--primary-100);
  border-top: 4px solid var(--primary-500);
  border-radius: 50%;
  animation: syncSpin 0.8s linear infinite;
}

@keyframes syncSpin {
  to { transform: rotate(360deg); }
}

.sync-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--primary-100);
  border-radius: 4px;
  overflow: hidden;
}

.sync-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.sync-done-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success-50);
  color: var(--success-600);
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
}

/* Responsive notifications */

@media (max-width: 640px) {
  .notification-container {
    left: 10px;
    right: 10px;
    max-width: none;
  }

  .notification {
    max-width: 100%;
  }
}

/* Card modules: base card, stat card, kpi card */

/* Base card */

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card h3 {
  margin-bottom: 16px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 700;
}

/* Shared styles for metric cards */

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-label {
  margin-bottom: 4px;
  color: #000;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.stat-trend.up {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.stat-trend.down {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.stat-trend.flat {
  background: rgba(107, 114, 128, 0.12);
  color: #4b5563;
}

/* Stat card */

.stat-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 10px 20px;
  border: none;
  border-top: 4px solid var(--app-primary, #6b92ff);
}

.stat-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(107, 146, 255, 0.15), rgba(236, 72, 153, 0.08));
  font-size: 20px;
  line-height: 1;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin-top: 2px;
}

.stat-value {
  color: var(--app-primary, #6b92ff);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.stat-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: #9ca3af;
  font-size: 12px;
}

.stat-sub {
  display: block;
}

.stat-card.c-blue {
  border-top-color: #3b82f6;
}

.stat-card.c-blue .stat-value {
  color: #3b82f6;
}

.stat-card.c-teal {
  border-top-color: #14b8a6;
}

.stat-card.c-teal .stat-value {
  color: #14b8a6;
}

.stat-card.c-purple {
  border-top-color: #a855f7;
}

.stat-card.c-purple .stat-value {
  color: #a855f7;
}

.stat-card.c-amber {
  border-top-color: #f59e0b;
}

.stat-card.c-amber .stat-value {
  color: #f59e0b;
}

.stat-card.c-green {
  border-top-color: #22c55e;
}

.stat-card.c-green .stat-value {
  color: #22c55e;
}

.stat-card.c-orange {
  border-top-color: #f97316;
}

.stat-card.c-orange .stat-value {
  color: #f97316;
}

.stat-card.c-red {
  border-top-color: #ef4444;
}

.stat-card.c-red .stat-value {
  color: #ef4444;
}

.stat-card.c-indigo {
  border-top-color: #6366f1;
}

.stat-card.c-indigo .stat-value {
  color: #6366f1;
}

/* Detail info grid - lưới thông tin meta trong section card */

.detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 8px 16px;
}

.detail-grid>div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 1 1 180px;
  min-width: 140px;
}

.detail-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #111827;
  white-space: nowrap;
}

.detail-value::before {
  content: ':';
  margin-right: 2px;
  color: #9ca3af;
  font-weight: 400;
}

.detail-value--lg {
  font-size: 16px;
  font-weight: 700;
  color: var(--app-primary, #4f46e5);
}

/* Card notes - ghi chú trong card */

.card-notes {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.card-notes-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #111827;
}

.card-notes-content {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
  white-space: pre-wrap;
}

/* Stat section label - tiêu đề cho nhóm stat card */

.stat-section-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Stat grid - lưới chứa stat-card với responsive */

.stat-grid {
  display: grid;
  gap: 12px;
}

.stat-grid--six {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.stat-grid--four {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .stat-grid--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .stat-grid--six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .stat-grid--six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {

  .stat-card {
    padding: 16px;
    gap: 10px;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .stat-value {
    font-size: 28px;
  }

  .stat-label {
    font-size: 11px;
  }
}

/* 2x2 Card Grid Layout - Cấu trúc card dùng chung 2 hàng 2 cột */

.card-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  width: 100%;
}

/* Các vị trí trong grid - mỗi vị trí dính vào góc tương ứng */

.card-grid-item-1 {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
}

.card-grid-item-2 {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
}

.card-grid-item-3 {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  justify-self: start;
}

.card-grid-item-4 {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-self: end;
}

/* Responsive adjustments */

@media (max-width: 768px) {
  .card-grid-2x2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
  }

  .card-grid-item-1,
  .card-grid-item-2,
  .card-grid-item-3,
  .card-grid-item-4 {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Stat KPI card — card-grid-2x2 dùng làm thẻ KPI với 4 ô: label+icon (hàng 1), value+sub (hàng 2) */

.stat-kpi-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-top: 4px solid var(--app-primary, #6b92ff);
  gap: 2px 12px;
  transition: all 0.2s ease;
}

.stat-kpi-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-kpi-card .stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
}

.stat-kpi-card .stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(107, 146, 255, 0.15), rgba(236, 72, 153, 0.08));
  font-size: 18px;
  line-height: 1;
}

.stat-kpi-card .stat-value {
  color: var(--app-primary, #6b92ff);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.stat-kpi-card .stat-sub {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
}

/* Empty state handling - Xử lý khi không có nội dung */

.card-grid-empty {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #9ca3af;
  font-size: 14px;
  text-align: center;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px dashed #e5e7eb;
}

/* Card grid container with spacing - Container với khoảng cách */

.card-grid-container {
  margin-top: 24px;
  margin-bottom: 24px;
}

/* Card grid with section styling - Card grid với style section */

.section-card .card-grid-2x2 {
  padding: 16px;
}

/* Compact variant cho activity panel dashboard — đặt sau .section-card .card-grid-2x2 để thắng specificity */

.stat-kpi-card.stat-kpi-card--sm {
  padding: 6px 10px;
  grid-template-columns: auto auto;
  row-gap: 6px;
  -moz-column-gap: 0;
       column-gap: 0;
}

.stat-kpi-card--sm .stat-label {
  font-size: 10px;
}

.stat-kpi-card--sm .stat-icon {
  width: 24px;
  height: 24px;
  font-size: 12px;
  border-radius: 6px;
}

.stat-kpi-card--sm .stat-value {
  font-size: 17px;
}

.stat-kpi-card--sm .stat-sub {
  font-size: 11px;
  color: var(--gray-800);
}

.stat-kpi-card--sm .stat-trend {
  font-size: 10px;
}

/* Section/card wrappers and list-page layout blocks */

.section-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.section-card:has(.filter-panel) {
  overflow: visible;
}

/* Section card với filter - tối ưu không gian */

.section-card:has(.filter-panel) .section-card-header {
  padding: 10px 16px;
}

.section-card:has(.filter-panel) .section-card-body {
  gap: 8px;
  padding: 0 16px 12px;
}

.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #edf2f7;
}

.section-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.section-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-card-actions-full {
  width: 100%;
  margin-left: 0;
}

.section-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-page-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
}

.list-page-stats-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}

.list-page-table-card {
  padding: 0 !important;
}

.list-page-table-card .section-card-header {
  padding: 10px 20px;
  border-bottom: 1px solid #edf2f7;
}

.list-page-table-card .section-card-body {
  padding: 0;
}

/* Bulk actions inline - hiển thị cùng hàng với title trong header, đẩy sang phải */

.list-page-table-card .section-card-actions-full {
  width: auto;
  margin-left: auto;
}

.bulk-actions-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.bulk-actions-inline .bulk-selection-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.bulk-actions-inline .bulk-selection-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-600);
}

.bulk-actions-inline .bulk-action-btn {
  height: 34px;
  padding: 7px 12px;
  font-size: 12px;
}

.list-page-card {
  padding: 0;
}

/* List page card có filter - giảm padding */

.list-page-card:has(.filter-panel) {
  padding: 0;
}

.list-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

.list-page-inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.list-page-table-actions {
  margin-left: auto;
  row-gap: 10px;
}

.list-page-pagination {
  margin-top: 0;
}

@media (min-width: 768px) {
  .list-page-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .list-page-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Section summary - dùng cho header thông tin tổng quan của trang/section */

.section-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
}

.section-summary-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-title-lg {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.section-subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

/* Section metrics - wrapper cho các khối thống kê */

.section-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 767px) {
  .section-card-header {
    padding: 14px 16px;
  }

  .list-page-table-card .section-card-header {
    padding: 10px 16px;
  }

  .list-page-card {
    padding: 16px;
  }

  .list-page-toolbar .btn {
    flex: 1 1 100%;
  }

  .list-page-table-actions {
    margin-left: 0;
    width: 100%;
  }

  .list-page-table-actions .search-input {
    width: 100%;
  }
}

/* Padding ngang ô bảng danh sách (dùng chung tabular-table, table-wrap) */

:root {
  --table-cell-px: 6px;
  --table-cell-py-head: 8px;
  --table-cell-py-body: 7px;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.table-wrap table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  font-size: 12px;
}

.table-wrap.compact table {
  min-width: unset;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

/* table responsive tweaks */

.booking-table table {
  min-width: 0;
  table-layout: auto;
}

.booking-table th,
.booking-table td {
  white-space: normal;
}

.table-wrap th,
.table-wrap td {
  padding: 10px var(--table-cell-px, 6px);
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: top;
}

.table-wrap thead th {
  position: sticky;
  top: 0;
  background: var(--panel-soft);
  z-index: 1;
  font-size: 11px;
  text-transform: uppercase;
  color: #111827;
  letter-spacing: 0.01em;
  white-space: normal;
  line-height: 1.2;
  padding: 10px var(--table-cell-px, 6px);
}

.table-wrap tbody tr:hover {
  background: #fafcff;
}

/* keep inline tooltip + portal tooltip sizing consistent with app primary */

.cell-with-tooltip .cell-tooltip,
.portal-tooltip {
  max-width: 240px;
}

/* === TABLE SCROLL WRAPPER === */

.table-scroll {
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
}

.table-scroll::-webkit-scrollbar {
  height: 6px;
}

.table-scroll::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 3px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 3px;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* === STICKY COLUMNS === */

.col-sticky {
  position: sticky;
  z-index: 2;
  background: #fff;
}

.tabular-table thead .col-sticky {
  background: var(--primary-50);
  z-index: 3;
}

.tabular-table tbody tr:hover .col-sticky {
  background: var(--primary-50);
}

/* Sticky left 1: checkbox - giảm padding để khớp width 40px */

.col-sticky-1 {
  left: 0;
  padding-left: 4px !important;
  padding-right: 4px !important;
  border-right: none !important;
}

/* Sticky left 2: tên KOC (sau checkbox 40px) */

.col-sticky-2 {
  left: 40px;
}

/* Sticky left text column (no checkbox): giữ padding bình thường */

.col-sticky-text {
  left: 0;
  box-shadow: 2px 0 4px -2px rgba(0, 0, 0, 0.08);
}

/* Sticky right: action - giữ nguyên border như các cột khác */

.col-sticky-right {
  right: 0;
}

/* Viền ngăn cách sticky columns trái với nội dung cuộn */

.col-sticky-1,
.col-sticky-2 {
  box-shadow: 2px 0 4px -2px rgba(0, 0, 0, 0.08);
}

/* === TABULAR TABLE STYLES === */

/* Force font size for tabular tables, override Tailwind text-sm */

.tabular-table {
  font-size: 12px;
  border-collapse: collapse;
  width: 100%;
  min-width: 1200px;
}

.tabular-table thead th {
  font-size: 11px;
  font-weight: 600;
  padding: var(--table-cell-py-head) var(--table-cell-px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--primary-700);
  background: var(--primary-50);
  border-bottom: 2px solid var(--primary-200);
  border-right: 1px solid var(--primary-100);
  position: sticky;
  top: 0;
  z-index: 1;
}

.tabular-table thead th:first-child {
  border-left: none;
}

.tabular-table thead th:last-child {
  border-right: none;
}

.tabular-table tbody td {
  font-size: 12px;
  padding: var(--table-cell-py-body) var(--table-cell-px);
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
  border-right: 1px solid var(--gray-50);
  line-height: 1;
  vertical-align: middle;
}

.tabular-table tbody td:last-child {
  border-right: none;
}

.tabular-table tbody tr:hover {
  background: var(--primary-50);
}

/* === COLUMN VISIBILITY DROPDOWN === */

.column-visibility-wrap {
  position: relative;
  display: inline-flex;
}

.column-visibility-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--gray-300);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--gray-600);
}

.column-visibility-btn svg {
  width: 16px;
  height: 16px;
}

.column-visibility-btn:hover,
.column-visibility-btn.is-active {
  border-color: var(--primary-400);
  color: var(--primary-600);
  background: var(--primary-50);
}

.column-visibility-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  min-width: 220px;
  max-width: 280px;
  max-height: 360px;
  display: flex;
  flex-direction: column;
}

.column-visibility-dropdown-header {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.column-visibility-dropdown-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.column-visibility-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.1s ease;
}

.column-visibility-item:hover {
  background: var(--primary-50);
}

.column-visibility-item input[type="checkbox"] {
  flex-shrink: 0;
}

.column-visibility-dropdown-footer {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  border-top: 1px solid var(--gray-100);
}

.column-visibility-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.column-visibility-action-btn:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-200);
}

.column-visibility-action-btn svg {
  width: 14px;
  height: 14px;
}

/* Tabular sortable headers */

.sortable-header {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: color 0.15s ease;
}

.sortable-header:hover {
  color: var(--app-primary, #4f46e5);
}

.sort-indicator::after {
  content: '\2195';
  font-size: 14px;
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.sortable-header:hover .sort-indicator::after {
  opacity: 0.7;
}

.sortable-header.sort-asc .sort-indicator::after {
  content: '\2191';
  opacity: 1;
  color: var(--app-primary, #4f46e5);
}

.sortable-header.sort-desc .sort-indicator::after {
  content: '\2193';
  opacity: 1;
  color: var(--app-primary, #4f46e5);
}

/* === TABLE TEXT TRUNCATION (reusable) === */

.cell-truncate {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  vertical-align: middle;
}

/* === TABLE COLUMN WIDTHS (reusable) === */

/* Cột siêu nhỏ: checkbox */

.col-xs {
  min-width: 40px;
  max-width: 60px;
}

/* Cột spacer: chỉ để tạo khoảng lề cho bảng, giúp cột đầu tiên ngay hàng với title section-card */

.col-spacer {
  min-width: 20px;
  max-width: 20px;
  padding: 0 !important;
  border: none !important;
}

/* Cột nhỏ: liên hệ (đủ text "Liên hệ") */

.col-sm {
  min-width: 55px;
  max-width: 100px;
  white-space: nowrap;
}

/* Cột link: auto theo số icon thực tế, không bị xuống hàng, dùng chung mọi bảng */

.col-link {
  min-width: 40px;
  max-width: 100px;
  white-space: nowrap;
}

/* Cột action: đủ chứa 2 icon sửa/xóa trên 1 hàng */

.col-action {
  min-width: 60px;
  max-width: 70px;
  white-space: nowrap;
}

/* Cột trung bình: đủ chứa header dài nhất "Giá Deal (VNĐ)" (~100px) */

.col-md {
  min-width: 105px;
  max-width: 120px;
  white-space: nowrap;
}

/* Cột trạng thái KOC: vừa dropdown compact */

.col-status {
  min-width: 105px;
  max-width: 130px;
  white-space: nowrap;
}

/* Cột lớn: đủ chứa header "Tên KOL / Creator" (~115px) */

.col-lg {
  min-width: 120px;
  max-width: 200px;
  white-space: nowrap;
}

/* Cột siêu lớn: nội dung dài, ghi chú */

.col-xl {
  min-width: 150px;
  max-width: 175px;
  white-space: nowrap;
}

/* === TABLE COLUMN ALIGNMENT (reusable) === */

/* Căn trái - mặc định cho cột text */

.col-left,
.tabular-table .col-left th,
.tabular-table .col-left td {
  text-align: left;
}

/* Căn giữa - cho cột action, checkbox, trạng thái */

.col-center,
.tabular-table .col-center th,
.tabular-table .col-center td {
  text-align: center;
}

/* Căn phải - cho cột số, tiền tệ */

.col-right,
.tabular-table .col-right th,
.tabular-table .col-right td {
  text-align: right;
}

/* Số - căn phải + font tabular */

.number-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* === ACTION CELL === */

/* Căn giữa nội dung cột action (nút sửa/xóa) - dùng text-align center trên td
   .btn-icon bên trong đã là inline-flex nên hiển thị ngang hàng */

.action-cell {
  white-space: nowrap;
  text-align: center;
}

.action-cell .btn-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0 !important;
  gap: 0 !important;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 16px;
  line-height: 1;
}

.action-cell .btn-icon:hover {
  background: var(--gray-100);
}

.action-cell .btn-icon-danger:hover {
  background: var(--error-100);
}

.action-cell .btn-icon:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  background: transparent;
}

/* Contact cell */

.contact-cell {
  white-space: nowrap;
}

.contact-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.15s ease;
}

.contact-toggle-btn:hover {
  background: var(--gray-100);
}

/* Social link icons in creator table */

.social-links-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.social-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.social-link-icon:hover {
  background: var(--gray-100);
}

.social-link-icon img {
  width: 18px;
  height: 18px;
  -o-object-fit: contain;
     object-fit: contain;
  aspect-ratio: 1 / 1;
}

/* Text link wrap - flex container cho social text links */

.links-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.social-text-link {
  font-size: 12px;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
}

.social-text-link:hover {
  text-decoration: underline;
}

/* Column width: tên (name) */

.col-name {
  font-weight: 500;
  min-width: 100px;
}

/* Column width: ghi chú (note) */

.col-note {
  max-width: 120px;
}

/* Pagination wrapper */

.pagination,
.list-page-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 10px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: nowrap;
  min-width: 100%;
  box-sizing: border-box;
}

.list-page-pagination {
  margin-top: 0;
  border-top: none;
  padding: 10px;
  background: transparent;
}

.pagination-left { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; width: auto; white-space: nowrap; }

.pagination-size { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6b7280; }

.pagination-size span { font-weight: 500; white-space: nowrap; }

.pagination-size select {
  width: auto;
  min-width: 60px;
  padding: 5px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  font-family: var(--app-font);
  cursor: pointer;
  height: 32px;
}

.pagination-info { font-weight: 600; color: #0f172a; white-space: nowrap; font-size: 12px; }

.pagination-center { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; justify-content: flex-end; width: auto; white-space: nowrap; }

.pagination-pages { display: flex; align-items: center; gap: 4px; }

.pagination-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--app-font);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1;
}

.pagination-page-btn:hover { border-color: #9ca3af; background: #f3f4f6; color: #111827; }

.pagination-page-btn.active {
  border-color: var(--app-primary);
  background: linear-gradient(135deg, var(--app-primary) 0%, color-mix(in srgb, var(--app-primary) 85%, white 15%) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.pagination-ellipsis { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #9ca3af; font-size: 12px; font-weight: 500; }

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--app-font);
}

.pagination-btn:hover:not(:disabled) { border-color: #9ca3af; background: #f3f4f6; color: #111827; }

.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 640px) {
  .list-page-pagination {
    flex-direction: column;
    gap: 8px;
    padding: 10px 6px;
  }

  .pagination-center {
    width: 100%;
    justify-content: center;
  }

  .pagination-page-btn {
    min-width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .pagination-btn {
    min-width: 28px;
    height: 28px;
  }

  .pagination-ellipsis {
    width: 28px;
    height: 28px;
  }
}

/* Shared form blocks: modal form grid, and small utilities */

.search-input {
  min-width: 200px;
}

.actions-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.label-text {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

/* Modal Form Styles */

.modal-form {
  display: block;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.modal-form-grid .full-width {
  grid-column: 1 / -1;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--primary-50);
  border-radius: 10px;
  border: 1px solid var(--primary-100);
}

.form-section h3 {
  margin: 0 0 4px 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-600);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-row.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0;
}

.modal-form label span {
  display: block;
  font-weight: 600;
  color: #0f172a;
  font-size: 12px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: #fff;
  color: var(--gray-700);
  font-size: 12px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-form textarea {
  resize: vertical;
  min-height: 60px;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px var(--primary-100);
}

/* Input states */

.modal-form input.input-invalid,
.modal-form textarea.input-invalid {
  border-color: var(--error-500);
  box-shadow: 0 0 0 3px var(--error-100);
}

/* Numeric inputs */

.modal-form input.numeric,
.modal-form input[type="number"] {
  text-align: right;
  font-family: inherit;
}

.modal-form input.numeric::-moz-placeholder, .modal-form input[type="number"]::-moz-placeholder {
  text-align: right;
  opacity: 0.6;
}

.modal-form input.numeric::placeholder,
.modal-form input[type="number"]::placeholder {
  text-align: right;
  opacity: 0.6;
}

.role-options {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

/* Contact Popover Styles */

.contact-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.contact-toggle-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.contact-popover {
  position: absolute;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid #374151;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 12px 16px;
  min-width: 200px;
  max-width: 300px;
  z-index: 1000;
  font-size: 13px;
  color: #f9fafb;
}

.contact-popover.hide {
  display: none;
}

.contact-popover.show {
  display: block;
}

.contact-popover::before {
  content: '';
  position: absolute;
  top: var(--arrow-top, 50%);
  width: 0;
  height: 0;
  border-style: solid;
}

.contact-popover.arrow-left::before {
  left: -8px;
  margin-top: -6px;
  border-width: 6px 8px 6px 0;
  border-color: transparent #111827 transparent transparent;
}

.contact-popover.arrow-right::before {
  right: -8px;
  margin-top: -6px;
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent #111827;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #374151;
}

.contact-line:last-child {
  border-bottom: none;
}

.contact-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon img {
  width: 18px;
  height: 18px;
  -o-object-fit: contain;
     object-fit: contain;
}

.email-icon img {
  width: 20px;
  height: 20px;
}

.contact-value {
  color: #f3f4f6;
  word-break: break-word;
}

.contact-empty {
  color: #9ca3af;
  font-style: italic;
  text-align: center;
  padding: 8px 0;
}

/* Checkbox list (dùng trong modal chọn trường đồng bộ TikTok) */

.checkbox-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.15s ease;
}

.checkbox-item:hover {
  background-color: var(--primary-100);
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary-500);
  flex-shrink: 0;
}

.checkbox-item span {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
}

.checkbox-select-all {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--primary-100);
}

.checkbox-select-all .checkbox-item {
  padding: 6px 10px;
}

.checkbox-select-all .checkbox-item span {
  font-size: 12px;
  color: var(--gray-500);
}

@media (max-width: 980px) {
  .modal-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modal-form-grid .full-width {
    grid-column: auto;
  }

  .form-row.two-col,
  .form-row.three-col,
  .form-row.four-col {
    grid-template-columns: 1fr;
  }

  .form-section {
    padding: 12px;
  }

  .checkbox-list {
    grid-template-columns: 1fr;
  }
}

/* Inline edit form (dùng chung campaign detail + videos) */

.ve-input {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 12px;
  min-width: 0;
}

.ve-select {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 12px;
  min-width: 0;
}

.ve-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.ve-actions .btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 4px;
}

.ve-actions .btn-icon:hover {
  background: #f3f4f6;
}

/* Editable cell (click to edit trên bảng) */

.editable-cell {
  cursor: pointer;
  border-bottom: 1px dashed #d1d5db;
  transition: border-color 0.15s ease;
}

.editable-cell:hover {
  border-bottom-color: var(--primary-400);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  gap: 4px;
}

.status-badge--draft,
.status-badge--not_contacted {
  background: var(--gray-100);
  color: var(--gray-600);
}

.status-badge--active,
.status-badge--confirmed,
.status-badge--approved {
  background: var(--success-100);
  color: var(--success-700);
}

.status-badge--completed {
  background: var(--primary-100);
  color: var(--primary-700);
}

.status-badge--paused,
.status-badge--negotiating {
  background: var(--warning-100);
  color: var(--warning-700);
}

.status-badge--pending {
  background: #F3E8FF;
  color: #7C3AED;
}

.status-badge--published {
  background: #f0fdf4;
  color: #15803d;
}

.status-badge--cancelled,
.status-badge--rejected {
  background: var(--error-100);
  color: var(--error-700);
}

.status-badge--contacted {
  background: #E0E7FF;
  color: #4338CA;
}

/* Ô bọc select trạng thái — căn giữa trong cột */

.status-dropdown-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Status dropdown - select đổi trạng thái trong bảng */

.status-dropdown {
  display: block;
  width: 100%;
  max-width: 100px;
  height: 22px;
  padding: 0 8px 0 2px;
  font-size: 11px;
  line-height: 1.2;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  -moz-text-align-last: center;
       text-align-last: center;
}

/* Màu nền và text dropdown hiển thị theo trạng thái */

.status-dropdown.status-not_contacted {
  background: var(--gray-100);
  color: var(--gray-600);
}

.status-dropdown.status-pending {
  background: #F3E8FF;
  /* Purple 50 */
  color: #7C3AED;
  /* Purple 600 - tím rõ ràng */
}

.status-dropdown.status-not_approved {
  background: var(--error-100);
  color: var(--error-700);
}

.status-dropdown.status-negotiating {
  background: var(--warning-100);
  color: var(--warning-700);
}

.status-dropdown.status-confirmed {
  background: var(--primary-100);
  color: var(--primary-700);
}

.status-dropdown.status-completed {
  background: var(--success-100);
  color: var(--success-700);
}

/* Options khi xổ xuống: nền trắng, text đen */

.status-dropdown option {
  background: #ffffff;
  color: #000000;
  font-size: 11px;
  padding: 2px 4px;
}

/* Cột trạng thái trong bảng tabular */

.tabular-table th.col-status,
.tabular-table td.col-status {
  padding: 4px var(--table-cell-px, 6px);
  vertical-align: middle;
  text-align: center;
}

.tabular-table td.col-status>span {
  display: block;
  width: 100%;
}

/* Video progress bar (dùng chung videos + campaign-detail) */

.video-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 80px;
}

.video-progress--clickable {
  cursor: pointer;
}

.video-progress-empty {
  color: #d1d5db;
  font-size: 12px;
}

.video-progress-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.video-progress-bar__segment--published {
  background: #22c55e;
}

.video-progress-bar__segment--pending {
  background: #94a3b8;
}

.video-progress-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.video-progress-label.is-complete {
  color: #15803d;
}

/* Video status badge (dùng chung videos + campaign-detail) */

.video-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  border: 1px solid transparent;
}

.video-status-badge .video-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.video-status-badge--pending {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.video-status-badge--pending .video-status-dot {
  background: #94a3b8;
}

.video-status-badge--published {
  background: #f0fdf4;
  color: #15803d;
  border-color: #86efac;
}

.video-status-badge--published .video-status-dot {
  background: #22c55e;
}

/* Deadline badge */

.deadline-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}

.deadline-badge--completed {
  background: #ecfdf5;
  color: #065f46;
  border-color: #86efac;
}

.deadline-badge--late {
  background: #fff1f2;
  color: #991b1b;
  border-color: #fecaca;
}

.deadline-badge--today {
  background: #fff7ed;
  color: #b45309;
  border-color: #fcd34d;
}

.deadline-badge--soon {
  background: #fffbeb;
  color: #92400e;
  border-color: #fcd34d;
}

.deadline-badge--daysleft {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #93c5fd;
}

.deadline-badge--no_deadline {
  background: #f9fafb;
  color: #9ca3af;
  border-color: #e5e7eb;
}

/* Classification badge (Nano/Micro/Macro KOC) */

.classification-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.classification-badge--nano {
  background: #E0F2FE;
  color: #0369A1;
}

.classification-badge--micro {
  background: #F3E8FF;
  color: #7C3AED;
}

.classification-badge--macro {
  background: #FEF3C7;
  color: #B45309;
}

/* ============================================
   CAMPAIGN BRIEF MODAL — Overrides & Custom
   ============================================ */

/* Modal container — flex column để body chiếm đúng phần còn lại */

.modal.cb-modal {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: min(94vh, 980px);
}

/* Header — h2 đậm hơn chuẩn */

.modal-header .modal-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text, #0f172a);
    flex-shrink: 0;
}

/* Theme selector */

.cb-theme-selector {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cb-theme-swatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.cb-theme-swatch:hover { transform: scale(1.1); }

.cb-theme-swatch.active {
    border-color: var(--text, #0f172a);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Body — flex-grow để chiếm phần còn lại sau header/footer, grid 2 cột */

.modal-body.cb-modal-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 460px 1fr;
    padding: 0;
    overflow: hidden;
}

/* Form column */

.cb-form-col {
    border-right: 1px solid var(--line, #e4e7ef);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Step tabs */

.cb-step-tabs-nav {
    display: flex;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid var(--line, #e4e7ef);
    overflow-x: auto;
    background: var(--panel, #fff);
    flex-shrink: 0;
    scrollbar-width: none;
}

.cb-step-tabs-nav::-webkit-scrollbar { display: none; }

.cb-step-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: none;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
}

.cb-step-btn:hover:not(.active) {
    color: var(--text, #0f172a);
    background: rgba(0, 0, 0, 0.02);
}

.cb-step-btn.active {
    color: var(--primary, #0e6fba);
    border-bottom-color: var(--primary, #0e6fba);
}

/* Form scroll area */

.cb-form-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Step panes — tab visibility */

.cb-step-pane {
    display: none;
    padding: 0;
}

.cb-step-pane.active {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    padding: 16px 12px;
}

/* File input trong form */

.modal-form input[type="file"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Preview column */

.cb-preview-col {
    background: #f8fafc;
    overflow-y: auto;
    padding: 14px;
}

/* ============================================
   PREVIEW COMPONENTS (theme-able, reusable)
   ============================================ */

/* ── Theme: Sunrise ── */

.cb-doc[data-theme="sunrise"] {
    --cb-page: #fdf6f8;
    --cb-hdr-bg: #f9edf0;
    --cb-hdr-text: #6b1a2e;
    --cb-hdr-sub: #9b4a5e;
    --cb-hdr-border: #f0c8d2;
    --cb-accent: #c0404f;
    --cb-accent-dim: #f5dde2;
    --cb-accent-bdr: #e8b3bc;
    --cb-pill-bg: #fff8f9;
    --cb-pill-bdr: #f0ccd2;
    --cb-pill-key: #a03040;
    --cb-pill-val: #4a1020;
    --cb-card-bg: #ffffff;
    --cb-card-bdr: #f0dde0;
    --cb-body-bg: #fdf6f8;
    --cb-text: #3f1a24;
    --cb-bullet: #c0404f;
    --cb-meta-bg: #fff0f3;
    --cb-meta-key: #a03040;
    --cb-meta-val: #3f1a24;
    --cb-sec-icon: #f5dde2;
    --cb-img-bg: #f9eef1;
    --cb-img-bdr: #f0c8d2;
    --cb-hash-bg: #fff4f6;
    --cb-hash-bdr: #f0ccd2;
}

/* ── Theme: Mint ── */

.cb-doc[data-theme="mint"] {
    --cb-page: #f3faf7;
    --cb-hdr-bg: #e6f7f2;
    --cb-hdr-text: #0d4d38;
    --cb-hdr-sub: #1a6b50;
    --cb-hdr-border: #b4e6d4;
    --cb-accent: #0f7a5a;
    --cb-accent-dim: #d4f0e8;
    --cb-accent-bdr: #a8e6d0;
    --cb-pill-bg: #f0faf6;
    --cb-pill-bdr: #b4e6d4;
    --cb-pill-key: #0f7a5a;
    --cb-pill-val: #0d3d2c;
    --cb-card-bg: #ffffff;
    --cb-card-bdr: #cceedd;
    --cb-body-bg: #f3faf7;
    --cb-text: #0d3d2c;
    --cb-bullet: #0f7a5a;
    --cb-meta-bg: #e8f7f2;
    --cb-meta-key: #0f7a5a;
    --cb-meta-val: #0d3d2c;
    --cb-sec-icon: #d4f0e8;
    --cb-img-bg: #eaf7f3;
    --cb-img-bdr: #b4e6d4;
    --cb-hash-bg: #edf8f4;
    --cb-hash-bdr: #b4e6d4;
}

/* ── Theme: Lavender ── */

.cb-doc[data-theme="lavender"] {
    --cb-page: #f7f5ff;
    --cb-hdr-bg: #ede9ff;
    --cb-hdr-text: #2c1d6b;
    --cb-hdr-sub: #4a3890;
    --cb-hdr-border: #c8bcf5;
    --cb-accent: #5b42d6;
    --cb-accent-dim: #e6e1ff;
    --cb-accent-bdr: #c4b8f5;
    --cb-pill-bg: #f5f2ff;
    --cb-pill-bdr: #d0c8f5;
    --cb-pill-key: #5038c0;
    --cb-pill-val: #1e1450;
    --cb-card-bg: #ffffff;
    --cb-card-bdr: #ddd8f7;
    --cb-body-bg: #f7f5ff;
    --cb-text: #1e1450;
    --cb-bullet: #5b42d6;
    --cb-meta-bg: #edeaff;
    --cb-meta-key: #5038c0;
    --cb-meta-val: #1e1450;
    --cb-sec-icon: #e6e1ff;
    --cb-img-bg: #efecff;
    --cb-img-bdr: #d0c8f5;
    --cb-hash-bg: #f0eeff;
    --cb-hash-bdr: #d0c8f5;
}

/* ── Theme: Midnight ── */

.cb-doc[data-theme="midnight"] {
    --cb-page: #111827;
    --cb-hdr-bg: #0f1f3d;
    --cb-hdr-text: #e2eaf7;
    --cb-hdr-sub: #90aace;
    --cb-hdr-border: #1e3560;
    --cb-accent: #5b9bd5;
    --cb-accent-dim: #172a4a;
    --cb-accent-bdr: #1e3a62;
    --cb-pill-bg: #141e32;
    --cb-pill-bdr: #1e3060;
    --cb-pill-key: #6ba8e0;
    --cb-pill-val: #d0dcf0;
    --cb-card-bg: #141e32;
    --cb-card-bdr: #1e3060;
    --cb-body-bg: #111827;
    --cb-text: #d0dcf0;
    --cb-bullet: #5b9bd5;
    --cb-meta-bg: #0f1f3d;
    --cb-meta-key: #6ba8e0;
    --cb-meta-val: #d0dcf0;
    --cb-sec-icon: #172a4a;
    --cb-img-bg: #141e32;
    --cb-img-bdr: #1e3060;
    --cb-hash-bg: #141e32;
    --cb-hash-bdr: #1e3060;
}

/* ── Base preview doc ── */

.cb-doc {
    background: var(--cb-page);
    border: 1px solid var(--cb-card-bdr);
    border-radius: 10px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cb-header {
    padding: 14px 20px;
    background: var(--cb-hdr-bg);
    border-bottom: 1px solid var(--cb-hdr-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cb-header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cb-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--cb-accent-dim);
    border: 1px solid var(--cb-accent-bdr);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.cb-brand {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cb-hdr-sub);
    font-weight: 700;
}

.cb-header-middle {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.cb-header-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--cb-hdr-border);
    border-radius: 8px;
    min-height: 52px;
    justify-content: center;
}

.cb-doc[data-theme="midnight"] .cb-header-item {
    background: rgba(255, 255, 255, 0.04);
}

.cb-header-item-title {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cb-hdr-sub);
    font-weight: 700;
}

.cb-header-item-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--cb-hdr-text);
    word-break: break-word;
    line-height: 1.3;
}

.cb-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--cb-meta-bg);
    border-bottom: 1px solid var(--cb-card-bdr);
}

.cb-meta-item {
    padding: 10px 12px;
    border-right: 1px solid var(--cb-card-bdr);
}

.cb-meta-item:last-child { border-right: none; }

.cb-meta-key {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--cb-meta-key);
    font-weight: 700;
    margin-bottom: 3px;
}

.cb-meta-val {
    font-size: 12px;
    font-weight: 600;
    color: var(--cb-meta-val);
    word-break: break-word;
}

.cb-body {
    padding: 0;
    display: grid;
    gap: 0;
    background: var(--cb-body-bg);
}

.cb-section {
    background: var(--cb-card-bg);
    border: none;
    border-bottom: 1px solid var(--cb-card-bdr);
    border-radius: 0;
    overflow: hidden;
    margin: 0;
}

.cb-section-header {
    padding: 9px 12px;
    background: var(--cb-accent-dim);
    border-bottom: 1px solid var(--cb-accent-bdr);
    display: flex;
    align-items: center;
    gap: 7px;
}

.cb-section-icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: var(--cb-sec-icon);
    border: 1px solid var(--cb-accent-bdr);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.cb-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    color: var(--cb-accent);
    margin: 0;
}

.cb-section-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cb-product-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    padding: 12px;
    width: 100%;
    align-items: stretch;
    min-height: 280px;
}

.cb-product-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
    min-width: 0;
}

.cb-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 20px;
    flex: 1;
    align-content: flex-start;
    align-items: stretch;
    width: 100%;
}

.cb-pill {
    background: var(--cb-pill-bg);
    border: 1px solid var(--cb-pill-bdr);
    border-radius: 8px;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 38px;
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
}

.cb-pill-key {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cb-pill-key);
    font-weight: 700;
    overflow-wrap: break-word;
}

.cb-pill-val {
    font-size: 11.5px;
    color: var(--cb-pill-val);
    font-weight: 600;
    word-break: break-word;
    line-height: 1.35;
    overflow-wrap: break-word;
    min-width: 0;
}

.cb-pill-val a {
    color: #0066cc;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.15s ease;
    display: block;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.cb-pill-val a:hover { color: #0052a3; }

.cb-product-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    justify-content: space-between;
    flex: 1;
}

.cb-product-left[data-sync-height] .cb-product-grid {
    height: 100%;
    grid-auto-rows: 1fr;
}

.cb-images-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    border-radius: 8px;
    border: 1px solid var(--cb-img-bdr);
    background: var(--cb-img-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cb-images-wrapper img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.cb-main-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.cb-main-thumb img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}

.cb-main-thumb .cb-thumb-del {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    width: 28px;
    height: 28px;
    font-size: 14px;
    line-height: 26px;
}

.cb-thumb {
    display: inline-flex;
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    margin: 4px;
    border: 1px solid var(--cb-img-bdr);
}

.cb-thumb img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.cb-thumb-del {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
}

.cb-images-label {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cb-accent);
    text-align: center;
    width: 100%;
}

.cb-hashtag-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    background: var(--cb-card-bg);
    width: 100%;
}

.cb-hashtag-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--cb-hash-bg);
    border: 1px solid var(--cb-hash-bdr);
    border-radius: 8px;
    padding: 10px;
}

.cb-hashtag-label {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cb-accent);
}

.cb-hashtag-item .cb-section-body {
    padding: 0;
    background: none;
    border: none;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--cb-text);
    white-space: pre-wrap;
    word-break: break-word;
}

.cb-section-body {
    padding: 12px;
    font-size: 12px;
    color: var(--cb-text);
    background: var(--cb-card-bg);
    white-space: pre-wrap;
    word-break: break-word;
}

.cb-section-product .cb-section-content { padding: 0; }

.cb-section > .cb-section-content { padding: 0; background: var(--cb-card-bg); }

.cb-list {
    margin: 0;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--cb-card-bg);
}

.cb-list li {
    padding: 7px 0 7px 24px;
    font-size: 12px;
    color: var(--cb-text);
    line-height: 1.5;
    list-style: none;
    position: relative;
    border-bottom: 1px solid var(--cb-card-bdr);
}

.cb-list li:last-child { border-bottom: none; }

.cb-list li::before {
    content: '•';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
    color: var(--cb-bullet);
    font-size: 15px;
    line-height: 1;
}

.cb-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid var(--cb-card-bdr);
}

.cb-two-col .cb-section { border-bottom: none; }

.cb-two-col .cb-section:first-child { border-right: 1px solid var(--cb-card-bdr); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
    .modal-body.cb-modal-body { grid-template-columns: 1fr; }
    .cb-preview-col { display: none; }
}

@media (max-width: 768px) {
    .modal.cb-modal {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
    }
    .modal-body.cb-modal-body { grid-template-columns: 1fr; }
    .cb-form-col { border-right: none; }
}

/* Trang quản lý video KOC — chỉ styles đặc thù */

.list-page-stats-grid .stat-card--clickable {
  cursor: pointer;
}

#videos-page .list-page-stats-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Filter: dropdowns trong header slot */

#videos-page .section-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Campaign accordion */

.videos-campaign-card {
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.videos-campaign-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: #e0f2fe;
  cursor: pointer;
  border-bottom: 1px solid #0284c7;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.videos-campaign-header:hover {
  background-color: #d4ebf7;
}

.videos-campaign-header__title-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.videos-campaign-header__title {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px;
  color: #0c4a6e;
}

.videos-campaign-header__subtitle {
  flex: 0 0 auto;
  font-size: 12px;
  color: #0284c7;
  font-weight: 400;
}

.videos-campaign-header__pills {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.expand-chevron {
  color: #0284c7;
  font-size: 10px;
  display: inline-block;
  transition: transform 0.2s;
}

.expand-chevron--muted {
  color: #9ca3af;
}

.expand-chevron.is-expanded {
  transform: rotate(90deg);
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.mini-pill--published {
  background: #f0fdf4;
  color: #15803d;
}

.mini-pill--pending {
  background: #f1f5f9;
  color: #475569;
}

/* Cột spacer canh lề với mũi tên đóng mở chiến dịch */

.videos-koc-table-scroll .col-spacer {
  width: 28px;
  min-width: 28px;
  padding: 0 !important;
  border: none !important;
}

/* Scrollable table cho KOC list — scroll khi nhiều KOC trong chiến dịch */

.videos-koc-table-scroll {
  max-height: 440px;
  overflow-y: auto;
}

/* Scroll cho danh sách campaign accordion */

.videos-campaign-list-scroll {
  max-height: 680px;
  overflow-y: auto;
  padding-right: 4px;
}

.videos-campaign-list-scroll::-webkit-scrollbar {
  width: 8px;
}

.videos-campaign-list-scroll::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 8px;
}

.videos-koc-table-scroll::-webkit-scrollbar {
  width: 8px;
}

.videos-koc-table-scroll::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 8px;
}

/* Expanded video list per KOC */

.videos-koc-videos-wrap {
  padding: 8px;
  background-color: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

/* Scroll khi nhiều video (>4 items) */

.videos-koc-videos-scroll {
  max-height: 248px;
  overflow-y: auto;
}

.videos-koc-videos-scroll::-webkit-scrollbar {
  width: 6px;
}

.videos-koc-videos-scroll::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 8px;
}

.tabular-expanded-row {
  padding: 0 !important;
  border: none !important;
}

.tabular-expanded-row .videos-koc-videos-wrap {
  margin: 4px;
}

.videos-koc-video-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.videos-koc-video-index {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  flex-shrink: 0;
}

.videos-koc-video-display {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 4fr 3fr auto auto;
  gap: 6px;
  align-items: center;
}

.videos-koc-video-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.videos-koc-video-link:hover {
  text-decoration: underline;
}

.videos-koc-spark-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  min-width: 0;
}

.videos-koc-actions {
    display: inline-flex;
    align-items: center;
}

.videos-koc-actions .btn-icon {
    padding: 0 !important;
    gap: 0 !important;
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
    font-size: 13px;
    border-radius: 3px;
}

.videos-koc-spark-label {
  color: #1f2937;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.videos-koc-spark-value {
  color: #9ca3af;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.videos-koc-cell--empty {
  color: #d1d5db;
  font-size: 12px;
}

/* Inline video edit form — layout wrapper */

.videos-koc-video-edit-inline {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}

.videos-koc-video-edit-inline .ve-input--url {
  flex: 2;
}

.videos-koc-video-edit-inline .ve-input--spark {
  flex: 1;
}

.videos-koc-video-edit-inline .ve-select {
  flex: 0.5;
}

.videos-koc-video-edit-inline .ve-actions {
  flex: 0.5;
}

/* Action column & add video row button */

.videos-koc-table-scroll .col-action {
  width: 60px;
  min-width: 60px;
}

.btn-add-video-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #0284c7;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1;
}

.btn-add-video-row:hover:not(:disabled) {
  background: #bae6fd;
  border-color: #0369a1;
}

.btn-add-video-row:disabled {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Responsive */

@media (max-width: 768px) {
  #videos-page .list-page-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .videos-campaign-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .videos-campaign-header__title {
    max-width: 100%;
  }

  .videos-koc-video-display {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .videos-koc-video-edit-inline {
    flex-direction: column;
    gap: 6px;
  }

  .videos-koc-video-edit-inline .ve-input--url,
  .videos-koc-video-edit-inline .ve-input--spark,
  .videos-koc-video-edit-inline .ve-select,
  .videos-koc-video-edit-inline .ve-actions {
    flex: 1 1 100%;
    width: 100%;
  }

  #videos-page .section-header-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  #videos-page .section-header-actions .filter-select {
    flex: 1 1 calc(50% - 8px);
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  #videos-page .list-page-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #videos-page .section-header-actions .filter-select {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* Reports page specific styles */

/* Five-column stat grid (for row of 5 stat cards) */

.stat-grid--five {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .stat-grid--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .stat-grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.section-card--no-body .section-card-body {
  display: none;
}

.report-actions-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.report-details-cell {
  margin: 0;
  max-width: 240px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 12px;
  color: #6b7280;
}

.segment-control {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 3px;
}

.segment-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.segment-btn:hover {
  color: #374151;
  background: rgba(255, 255, 255, 0.6);
}

.segment-btn.active {
  background: #fff;
  color: var(--app-primary, #6b92ff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.error-text {
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 8px;
  margin: 12px 0;
}

.hint {
  color: #6b7280;
  font-size: 12px;
  font-style: italic;
  margin: 12px 0;
}

/* Responsive */

@media (max-width: 768px) {
  #reports-page .section-header-actions {
    flex-wrap: wrap;
  }

  #reports-page .header-toolbar-actions {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }

  #reports-page .filter-inline {
    flex: 1 1 calc(50% - 8px);
    min-width: 130px;
  }
}

@media (max-width: 480px) {
  #reports-page .filter-inline {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* creator.css - Styles cho trang Quản lý KOC */

@media (max-width: 640px) {
  #creator-page .section-header-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  #creator-page .section-header-actions > .btn:first-child {
    flex: 0 0 auto;
  }

  #creator-page .header-search-wrap {
    width: 100%;
    order: -1;
  }

  #creator-page .header-toolbar-actions {
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    justify-content: flex-start;
  }

  #creator-page .header-toolbar-actions .btn-group {
    flex-shrink: 0;
  }
  #creator-page .bulk-actions-inline {
    flex-wrap: wrap;
    gap: 6px;
  }

  #creator-page .bulk-actions-inline .bulk-action-btn {
    flex: 1 1 auto;
    font-size: 11px;
    padding: 6px 10px;
  }
  #creator-page .list-page-pagination {
    flex-direction: column;
    gap: 8px;
    padding: 10px 6px;
  }

  #creator-page .pagination-center {
    width: 100%;
    justify-content: center;
  }

  #creator-page .pagination-page-btn {
    min-width: 28px;
    height: 28px;
    font-size: 11px;
  }

  #creator-page .pagination-btn {
    min-width: 28px;
    height: 28px;
  }

  #creator-page .pagination-ellipsis {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  #creator-page .header-toolbar-actions .btn-group .btn span {
    display: none;
  }

  #creator-page .header-toolbar-actions .btn-group .btn {
    padding: 7px 8px;
  }
}

/* Campaign detail responsive */

@media (max-width: 480px) {
  #campaign-detail-page .cd-header-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  #campaign-detail-page .cd-header-info-group {
    flex: 1 1 auto;
    width: 100%;
  }

  #campaign-detail-page .cd-header-status-group {
    flex: 0 0 auto;
    width: 100%;
    justify-content: flex-start;
  }

  #campaign-detail-page .section-header-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  #campaign-detail-page .section-header-actions .filter-select {
    flex: 1 1 100%;
    min-width: 0;
  }

  .video-editor-row {
    grid-template-columns: 1fr !important;
    gap: 6px;
    padding: 8px !important;
  }
}

@media (max-width: 768px) {
  .video-editor-row {
    grid-template-columns: 32px 1fr !important;
    gap: 8px;
  }

  .video-editor-row.is-editing {
    grid-template-columns: 32px 1fr !important;
  }
}

/* dashboard.css - Chỉ giữ style độc nhất cho dashboard
 * Các style chung (variables, cards, tables, sections) đã có trong file tương ứng
 */

/* Status bars - loading/error */

.db-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--gray-200);
}

.db-loading {
  background: linear-gradient(135deg, rgba(0, 184, 212, .08) 0%, rgba(0, 168, 196, .06) 100%);
  color: #00b8d4;
  border-bottom: 2px solid #7dd3e0;
}

.db-error {
  background: linear-gradient(135deg, rgba(200, 48, 46, .08) 0%, rgba(200, 48, 46, .06) 100%);
  color: var(--error-500);
  border-bottom: 2px solid #f5c0c2;
}

.db-spinner {
  width: 14px;
  height: 14px;
  border: 2.5px solid rgba(0, 120, 212, .18);
  border-top-color: #0e6fba;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Preset buttons */

.db-presets {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Range strip - bottom of card */

.db-range-strip {
  background: linear-gradient(135deg, #1fbdd3 0%, #00a8bc 100%);
  color: rgba(255, 255, 255, .75);
  padding: 10px 24px;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  border-radius: 0 0 10px 10px;
}

.db-range-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.db-rdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.db-range-item strong {
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
}

.db-range-sep {
  color: rgba(255, 255, 255, .2);
  font-size: 16px;
}

/* Range info inline trong page-header meta slot */

.db-range-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .75);
}

/* 3-column chart grid */

.db-grid-3col {
  display: grid;
  grid-template-columns: 3fr 4fr 3fr;
  gap: 4px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

/* Panel badge reuse */

.db-panel-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.db-panel-badge {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* Mode toggle */

.db-radio-group {
  display: flex;
  gap: 4px;
  align-items: center;
}

.db-radio-btn {
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  background: transparent;
  cursor: pointer;
  font-family: var(--app-font);
  transition: all 0.16s ease;
}

.db-radio-btn.active {
  background: var(--warning-500);
  border-color: var(--warning-500);
  color: #fff;
}

.db-radio-btn:hover:not(.active) {
  border-color: var(--warning-500);
  color: var(--warning-500);
}

/* ── Bảng phân tích chiến dịch (merged table) ──
 *   3 nhóm màu tương ứng 3 palette của ứng dụng:
 *   Month → primary (xanh pastel), Video → secondary (hồng pastel), Compare → warning (vàng cam)
 */

.db-table-merged {
  min-width: 860px;
}

.db-table-wrap {
  overflow-x: auto;
  border-radius: 0 0 10px 10px;
}

.db-table-scroll-wrapper {
  max-height: 680px;
  overflow-y: auto;
  overflow-x: auto;
  position: relative;
}

.db-table-scroll-wrapper table {
  width: 100%;
  border-collapse: collapse;
}

.db-table-scroll-wrapper thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}

/* ── Header row 1: group titles ── */

.db-thead-group .db-col-campaign-th {
  vertical-align: middle;
  padding: 8px 10px;
  min-width: 120px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
  box-shadow: 2px 0 4px -2px rgba(0, 0, 0, 0.08);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--gray-600);
  border-bottom: 2px solid var(--gray-300);
  border-right: 2px solid var(--gray-300);
}

.db-col-group {
  text-align: center;
  padding: 10px 12px 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.2;
  vertical-align: middle;
  border-bottom: 2px solid;
}

/* Nhóm month → primary */

.db-group-month {
  color: var(--primary-700);
  border-bottom: 2px solid var(--primary-200);
  border-left: 3px solid var(--primary-500);
  border-right: 1px solid var(--primary-100);
}

/* Nhóm video → success (xanh lá pastel) */

.db-group-video {
  color: var(--success-700);
  border-bottom: 2px solid var(--success-100);
  border-left: 3px solid var(--success-500);
  border-right: 1px solid var(--success-100);
}

/* Nhóm compare → warning */

.db-group-compare {
  color: var(--warning-700);
  border-bottom: 2px solid var(--warning-100);
  border-left: 3px solid var(--warning-500);
  border-right: 1px solid var(--warning-100);
}

/* ── Header row 2: sub headers ── */

.db-thead-sub th.sub {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 6px 8px;
  border-top: 2px solid;
  border-bottom: 2px solid;
  white-space: nowrap;
  line-height: 1.2;
}

.db-thead-sub th.sub-month {
  background: var(--primary-50);
  color: var(--primary-700);
  border-top: 2px solid var(--primary-200);
  border-bottom: 2px solid var(--primary-200);
  border-right: 1px solid var(--primary-100);
}

.db-thead-sub th.sub-video {
  background: var(--success-50);
  color: var(--success-700);
  border-top: 2px solid var(--success-100);
  border-bottom: 2px solid var(--success-100);
  border-right: 1px solid var(--success-100);
}

.db-thead-sub th.sub-compare {
  background: var(--warning-50);
  color: var(--warning-700);
  border-top: 2px solid var(--warning-100);
  border-bottom: 2px solid var(--warning-100);
  border-right: 1px solid var(--warning-100);
}

/* ── Campaign name sticky cell ── */

.db-col-campaign-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 2px 0 4px -2px rgba(0, 0, 0, 0.08);
  border-right: 2px solid var(--gray-200);
  min-width: 120px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 12px;
  color: var(--gray-800);
  padding: 7px 10px;
}

.db-table-merged tbody tr:hover .db-col-campaign-cell {
  background: var(--gray-50);
}

/* First sub-header of each group gets left border to match group header */

.db-table-merged .db-thead-sub th.sub-month:first-child {
  border-left: 3px solid var(--primary-500);
}

.db-table-merged .db-thead-sub th.sub-video:nth-child(4) {
  border-left: 3px solid var(--success-500);
}

.db-table-merged .db-thead-sub th.sub-compare:nth-child(8) {
  border-left: 3px solid var(--warning-500);
}

/* Last compare cell gets right border to close table edge */

.db-table-merged .db-cell-compare-last {
  border-right: 1px solid var(--warning-100);
}

/* ── Body cells ── */

.db-table-merged tbody td {
  padding: 7px 8px;
  font-size: 12px;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.db-table-merged tbody td.r {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.db-table-merged tbody tr:hover {
  background: var(--gray-50);
}

/* Cell background theo nhóm (prefix table để thắng .db-table-merged tbody td specificity) */

.db-table-merged .db-cell-month-first {
  border-left: 3px solid var(--primary-400) !important;
  border-right: 1px solid var(--primary-100);
}

.db-table-merged .db-cell-month {
  border-right: 1px solid var(--primary-100);
}

.db-table-merged .db-cell-video-first {
  border-left: 3px solid var(--success-500) !important;
  border-right: 1px solid var(--success-100);
}

.db-table-merged .db-cell-video {
  border-right: 1px solid var(--success-100);
}

.db-table-merged .db-cell-compare-first {
  border-left: 3px solid var(--warning-500) !important;
}

.db-table-merged .db-cell-compare {}

/* Helpers: delta, bar, chip, empty */

.db-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.db-delta.up {
  background: var(--success-100);
  color: var(--success-600);
}

.db-delta.down {
  background: var(--error-100);
  color: var(--error-600);
}

.db-delta.flat {
  background: var(--gray-100);
  color: var(--gray-400);
}

.db-bar {
  height: 5px;
  background: var(--gray-200);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}

.db-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--app-primary);
  transition: width .5s ease;
}

.db-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #deeef9;
  color: #0a5290;
}

.db-empty {
  padding: 30px;
  text-align: center;
  color: var(--gray-400);
  font-size: 13px;
}

.np {
  padding: 0;
}

/* Sunburst legend */

.dashboard-sunburst-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Activity panel: 2 cột mặc định (mobile sẽ override bên dưới) ── */

.db-activity-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* Responsive */

@media (max-width: 1024px) {
  .db-grid-3col {
    grid-template-columns: 1fr;
  }

  .db-presets {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  /* Filter: date + KPI selects co lại */
  .dashboard-page .filter-inline {
    flex: 1 1 calc(50% - 8px);
    min-width: 130px;
  }

  .db-presets .btn {
    font-size: 11px;
    padding: 6px 8px;
  }

  /* Range info trong header xuống dòng */
  .db-range-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .db-range-inline .db-range-sep {
    display: none;
  }

  .db-range-inline .db-range-item {
    gap: 4px;
  }

  /* Cost panel: xếp chồng chart + cost types */
  .db-cost-inner-row {
    flex-direction: column !important;
  }

  #sunburst-cost-types {
    border-left: none !important;
    border-top: 1px solid var(--border-lt);
    padding: 10px 12px !important;
  }

  /* Sunburst SVG thu nhỏ chiều cao */
  #status-sunburst-svg,
  #sunburst-svg {
    height: 200px !important;
  }

  /* Activity panel grid: 1 cột */
  .db-activity-grid {
    grid-template-columns: 1fr !important;
  }

  /* Campaign analysis header: title + badges xuống dòng */
  .section-card:has(.db-table-scroll-wrapper) .section-header-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .section-card:has(.db-table-scroll-wrapper) .section-header-actions > div:last-child {
    width: 100%;
    justify-content: flex-start;
  }

  /* Mode toggle */
  .db-radio-group {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .db-presets {
    flex-wrap: wrap;
    gap: 4px;
  }

  .db-presets .btn {
    flex: 1 1 calc(33% - 4px);
    font-size: 10px;
    padding: 5px 6px;
  }

  .dashboard-page .filter-inline {
    flex: 1 1 100%;
    min-width: 0;
  }
}

.scroll-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-500);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(107, 146, 255, 0.4);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.scroll-to-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-top-btn:hover {
  background: var(--primary-600);
  box-shadow: 0 6px 16px rgba(107, 146, 255, 0.5);
  transform: translateY(-2px);
}

.scroll-to-top-btn:active {
  transform: translateY(0);
}

.scroll-to-top-btn svg {
  width: 20px;
  height: 20px;
}

*, ::before, ::after{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/* ! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

.\!container{
  width: 100% !important;
}

.container{
  width: 100%;
}

@media (min-width: 640px){

  .\!container{
    max-width: 640px !important;
  }

  .container{
    max-width: 640px;
  }
}

@media (min-width: 768px){

  .\!container{
    max-width: 768px !important;
  }

  .container{
    max-width: 768px;
  }
}

@media (min-width: 1024px){

  .\!container{
    max-width: 1024px !important;
  }

  .container{
    max-width: 1024px;
  }
}

@media (min-width: 1280px){

  .\!container{
    max-width: 1280px !important;
  }

  .container{
    max-width: 1280px;
  }
}

@media (min-width: 1536px){

  .\!container{
    max-width: 1536px !important;
  }

  .container{
    max-width: 1536px;
  }
}

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.visible{
  visibility: visible;
}

.collapse{
  visibility: collapse;
}

.fixed{
  position: fixed;
}

.absolute{
  position: absolute;
}

.relative{
  position: relative;
}

.sticky{
  position: sticky;
}

.right-0{
  right: 0px;
}

.top-0{
  top: 0px;
}

.mx-auto{
  margin-left: auto;
  margin-right: auto;
}

.mb-2{
  margin-bottom: 0.5rem;
}

.mb-3{
  margin-bottom: 0.75rem;
}

.ml-2{
  margin-left: 0.5rem;
}

.mr-1{
  margin-right: 0.25rem;
}

.mr-2{
  margin-right: 0.5rem;
}

.mt-1{
  margin-top: 0.25rem;
}

.mt-2{
  margin-top: 0.5rem;
}

.mt-3{
  margin-top: 0.75rem;
}

.mt-4{
  margin-top: 1rem;
}

.mt-6{
  margin-top: 1.5rem;
}

.block{
  display: block;
}

.inline{
  display: inline;
}

.flex{
  display: flex;
}

.inline-flex{
  display: inline-flex;
}

.\!table{
  display: table !important;
}

.table{
  display: table;
}

.\!grid{
  display: grid !important;
}

.grid{
  display: grid;
}

.hidden{
  display: none;
}

.h-4{
  height: 1rem;
}

.min-h-screen{
  min-height: 100vh;
}

.w-1\/2{
  width: 50%;
}

.w-4{
  width: 1rem;
}

.w-full{
  width: 100%;
}

.max-w-lg{
  max-width: 32rem;
}

.max-w-md{
  max-width: 28rem;
}

.flex-1{
  flex: 1 1 0%;
}

.flex-shrink{
  flex-shrink: 1;
}

.flex-grow{
  flex-grow: 1;
}

.border-collapse{
  border-collapse: collapse;
}

.transform{
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.cursor-pointer{
  cursor: pointer;
}

.resize{
  resize: both;
}

.list-disc{
  list-style-type: disc;
}

.flex-wrap{
  flex-wrap: wrap;
}

.items-center{
  align-items: center;
}

.justify-end{
  justify-content: flex-end;
}

.justify-center{
  justify-content: center;
}

.justify-between{
  justify-content: space-between;
}

.gap-2{
  gap: 0.5rem;
}

.gap-3{
  gap: 0.75rem;
}

.gap-4{
  gap: 1rem;
}

.space-y-4 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.truncate{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whitespace-nowrap{
  white-space: nowrap;
}

.rounded{
  border-radius: 0.25rem;
}

.rounded-lg{
  border-radius: 0.5rem;
}

.rounded-md{
  border-radius: 0.375rem;
}

.border{
  border-width: 1px;
}

.border-2{
  border-width: 2px;
}

.border-b{
  border-bottom-width: 1px;
}

.border-l-4{
  border-left-width: 4px;
}

.border-t{
  border-top-width: 1px;
}

.border-blue-400{
  --tw-border-opacity: 1;
  border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));
}

.border-emerald-400{
  --tw-border-opacity: 1;
  border-color: rgb(52 211 153 / var(--tw-border-opacity, 1));
}

.border-gray-100{
  --tw-border-opacity: 1;
  border-color: rgb(243 244 246 / var(--tw-border-opacity, 1));
}

.border-gray-200{
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.border-gray-300{
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}

.border-green-400{
  --tw-border-opacity: 1;
  border-color: rgb(74 222 128 / var(--tw-border-opacity, 1));
}

.border-primary-300{
  --tw-border-opacity: 1;
  border-color: rgb(165 197 255 / var(--tw-border-opacity, 1));
}

.border-red-400{
  --tw-border-opacity: 1;
  border-color: rgb(248 113 113 / var(--tw-border-opacity, 1));
}

.border-rose-400{
  --tw-border-opacity: 1;
  border-color: rgb(251 113 133 / var(--tw-border-opacity, 1));
}

.border-yellow-400{
  --tw-border-opacity: 1;
  border-color: rgb(250 204 21 / var(--tw-border-opacity, 1));
}

.bg-blue-50{
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}

.bg-gray-50{
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.bg-green-50{
  --tw-bg-opacity: 1;
  background-color: rgb(240 253 244 / var(--tw-bg-opacity, 1));
}

.bg-primary-500{
  --tw-bg-opacity: 1;
  background-color: rgb(107 146 255 / var(--tw-bg-opacity, 1));
}

.bg-red-50{
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}

.bg-transparent{
  background-color: transparent;
}

.bg-white{
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.bg-white\/10{
  background-color: rgb(255 255 255 / 0.1);
}

.bg-yellow-50{
  --tw-bg-opacity: 1;
  background-color: rgb(254 252 232 / var(--tw-bg-opacity, 1));
}

.bg-gradient-to-br{
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-r{
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-amber-400{
  --tw-gradient-from: #fbbf24 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(251 191 36 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-blue-600{
  --tw-gradient-from: #2563eb var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(37 99 235 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-emerald-500{
  --tw-gradient-from: #10b981 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(16 185 129 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-primary-500{
  --tw-gradient-from: #6B92FF var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(107 146 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-rose-500{
  --tw-gradient-from: #f43f5e var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(244 63 94 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-slate-100{
  --tw-gradient-from: #f1f5f9 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(241 245 249 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-orange-400{
  --tw-gradient-to: #fb923c var(--tw-gradient-to-position);
}

.to-orange-500{
  --tw-gradient-to: #f97316 var(--tw-gradient-to-position);
}

.to-pink-500{
  --tw-gradient-to: #ec4899 var(--tw-gradient-to-position);
}

.to-primary-600{
  --tw-gradient-to: #4B6FD9 var(--tw-gradient-to-position);
}

.to-slate-200{
  --tw-gradient-to: #e2e8f0 var(--tw-gradient-to-position);
}

.to-teal-500{
  --tw-gradient-to: #14b8a6 var(--tw-gradient-to-position);
}

.p-4{
  padding: 1rem;
}

.p-8{
  padding: 2rem;
}

.px-3{
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4{
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5{
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.py-2{
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2\.5{
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.py-3{
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4{
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8{
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pl-4{
  padding-left: 1rem;
}

.text-left{
  text-align: left;
}

.text-center{
  text-align: center;
}

.text-2xl{
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl{
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl{
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-lg{
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm{
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xs{
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold{
  font-weight: 700;
}

.font-extrabold{
  font-weight: 800;
}

.font-medium{
  font-weight: 500;
}

.font-semibold{
  font-weight: 600;
}

.uppercase{
  text-transform: uppercase;
}

.italic{
  font-style: italic;
}

.leading-relaxed{
  line-height: 1.625;
}

.text-blue-600{
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}

.text-blue-800{
  --tw-text-opacity: 1;
  color: rgb(30 64 175 / var(--tw-text-opacity, 1));
}

.text-emerald-600{
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}

.text-gray-400{
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.text-gray-500{
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.text-gray-600{
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.text-gray-700{
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.text-green-800{
  --tw-text-opacity: 1;
  color: rgb(22 101 52 / var(--tw-text-opacity, 1));
}

.text-primary-600{
  --tw-text-opacity: 1;
  color: rgb(75 111 217 / var(--tw-text-opacity, 1));
}

.text-red-800{
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / var(--tw-text-opacity, 1));
}

.text-rose-600{
  --tw-text-opacity: 1;
  color: rgb(225 29 72 / var(--tw-text-opacity, 1));
}

.text-slate-700{
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}

.text-white{
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.text-yellow-800{
  --tw-text-opacity: 1;
  color: rgb(133 77 14 / var(--tw-text-opacity, 1));
}

.underline{
  text-decoration-line: underline;
}

.opacity-90{
  opacity: 0.9;
}

.shadow-lg{
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-md{
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-xl{
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.outline-none{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.outline{
  outline-style: solid;
}

.ring-2{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.drop-shadow{
  --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.grayscale{
  --tw-grayscale: grayscale(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.filter{
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition{
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all{
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.ease-in{
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.ease-out{
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.hover\:bg-emerald-50:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-100:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-50:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.hover\:bg-primary-50:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(240 244 255 / var(--tw-bg-opacity, 1));
}

.hover\:bg-primary-600:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(75 111 217 / var(--tw-bg-opacity, 1));
}

.hover\:bg-rose-50:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(255 241 242 / var(--tw-bg-opacity, 1));
}

.hover\:from-amber-500:hover{
  --tw-gradient-from: #f59e0b var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(245 158 11 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.hover\:from-emerald-600:hover{
  --tw-gradient-from: #059669 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(5 150 105 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.hover\:from-primary-600:hover{
  --tw-gradient-from: #4B6FD9 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(75 111 217 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.hover\:from-rose-600:hover{
  --tw-gradient-from: #e11d48 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(225 29 72 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.hover\:from-slate-200:hover{
  --tw-gradient-from: #e2e8f0 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(226 232 240 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.hover\:to-orange-500:hover{
  --tw-gradient-to: #f97316 var(--tw-gradient-to-position);
}

.hover\:to-orange-600:hover{
  --tw-gradient-to: #ea580c var(--tw-gradient-to-position);
}

.hover\:to-primary-700:hover{
  --tw-gradient-to: #3B56B0 var(--tw-gradient-to-position);
}

.hover\:to-slate-300:hover{
  --tw-gradient-to: #cbd5e1 var(--tw-gradient-to-position);
}

.hover\:to-teal-600:hover{
  --tw-gradient-to: #0d9488 var(--tw-gradient-to-position);
}

.focus\:border-primary-600:focus{
  --tw-border-opacity: 1;
  border-color: rgb(75 111 217 / var(--tw-border-opacity, 1));
}

.focus\:outline-none:focus{
  outline: 2px solid transparent;
  outline-offset: 2px;
}