@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap";
/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --sidebar-width: 260px;
  --header-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-fast: .15s;
  --transition-normal: .25s;
  --transition-slow: .4s;
}

:root, :root.light {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --primary-glow: #6366f133;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #ef4444;
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --bg-base: #f8fafc;
  --bg-surface: #fff;
  --bg-elevated: #fff;
  --bg-card: #fff;
  --bg-glass: #fffc;
  --bg-input: #fff;
  --bg-hover: #6366f10f;
  --bg-active: #6366f11a;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #fff;
  --border: #94a3b866;
  --border-light: #94a3b833;
  --border-focus: #6366f166;
  --shadow-sm: 0 1px 2px #0000000d;
  --shadow-md: 0 4px 16px #00000014;
  --shadow-lg: 0 8px 32px #0000001a;
  --shadow-xl: 0 16px 48px #0000001f;
  --shadow-glow: 0 0 24px var(--primary-glow);
  --glass-bg: #ffffffb3;
  --glass-border: #ffffff80;
  --glass-shadow: 0 8px 32px #0000000d;
}

:root.dark, [data-theme="dark"] {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --primary-glow: #6366f14d;
  --accent-cyan: #22d3ee;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;
  --accent-rose: #fb7185;
  --accent-purple: #a78bfa;
  --accent-orange: #fb923c;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --bg-base: #0a0a1a;
  --bg-surface: #111128;
  --bg-elevated: #1a1a3e;
  --bg-card: #1a1a3e99;
  --bg-glass: #1a1a3e66;
  --bg-input: #1a1a3ecc;
  --bg-hover: #6366f114;
  --bg-active: #6366f126;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0a1a;
  --border: #94a3b81a;
  --border-light: #94a3b80f;
  --border-focus: #6366f180;
  --shadow-sm: 0 1px 2px #0000004d;
  --shadow-md: 0 4px 16px #0000004d;
  --shadow-lg: 0 8px 32px #0006;
  --shadow-xl: 0 16px 48px #00000080;
  --shadow-glow: 0 0 24px var(--primary-glow);
  --glass-bg: #1a1a3e80;
  --glass-border: #94a3b81a;
  --glass-shadow: 0 8px 32px #0000004d;
}

*, :before, :after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: var(--primary-light);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  border-radius: var(--radius-full);
  background: #94a3b826;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b840;
}

.erp-layout {
  height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .erp-layout {
    display: flex;
  }

  .main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-normal);
  }

  body.sidebar-closed .main-content {
    margin-left: 0;
  }
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  height: 100vh;
  transition: transform var(--transition-normal), width var(--transition-normal);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  transform: translateX(-100%);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-overlay {
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  background: #00000080;
  position: fixed;
  inset: 0;
}

.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 1024px) {
  .sidebar {
    box-shadow: none;
    z-index: 100;
    transform: translateX(0);
  }

  body.sidebar-closed .sidebar {
    transform: translateX(-100%);
  }

  .sidebar-overlay {
    display: none;
  }
}

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

.sidebar-logo {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  border-radius: var(--radius-md);
  color: #fff;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-size: 16px;
  font-weight: 800;
  display: flex;
}

.sidebar-brand h1 {
  letter-spacing: -.02em;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar-brand span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
}

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

.nav-group {
  margin-bottom: 2px;
}

.nav-group-title {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  -webkit-user-select: none;
  user-select: none;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
}

.nav-group-title:hover {
  color: var(--text-secondary);
  background: #ffffff08;
}

.nav-group-title.has-active {
  color: var(--primary-light);
}

.nav-group-right {
  align-items: center;
  gap: 6px;
  display: flex;
}

.nav-group-badge {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  text-align: center;
  min-width: 16px;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}

.nav-chevron {
  transition: transform var(--transition-normal);
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  transform: rotate(0);
}

.nav-chevron.open {
  transform: rotate(90deg);
}

.nav-group-items {
  transition: max-height var(--transition-normal);
  overflow: hidden;
}

.nav-item {
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  background: none;
  border: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
}

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

.nav-item.active {
  background: var(--bg-active);
  color: var(--primary-light);
}

.nav-item .nav-icon {
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  font-size: 16px;
  display: flex;
}

.nav-item .nav-badge {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  text-align: center;
  min-width: 18px;
  margin-left: auto;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
}

.nav-item-static {
  border-bottom: 1px solid var(--border);
  margin: 4px 0 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 16px;
}

.sidebar-user {
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
  align-items: center;
  gap: 10px;
  padding: 8px;
  display: flex;
}

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

.sidebar-avatar {
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: #fff;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
}

.sidebar-user-info h4 {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.sidebar-user-info span {
  color: var(--text-muted);
  font-size: 11px;
}

.main-content {
  flex-direction: column;
  flex: 1;
  height: 100vh;
  display: flex;
  overflow: hidden;
}

.topbar {
  height: var(--header-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  display: flex;
  position: relative;
}

.sidebar-toggle-btn:hover {
  background: var(--bg-hover) !important;
}

.topbar-left {
  align-items: center;
  gap: 16px;
  display: flex;
}

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

.topbar-breadcrumb span {
  color: var(--text-muted);
}

.topbar-breadcrumb strong {
  color: var(--text-primary);
  font-weight: 600;
}

.topbar-right {
  align-items: center;
  gap: 8px;
  display: flex;
}

.topbar-btn {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  width: 38px;
  height: 38px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  justify-content: center;
  align-items: center;
  font-size: 16px;
  display: flex;
  position: relative;
}

.topbar-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.topbar-btn .badge {
  background: var(--danger);
  border: 2px solid var(--bg-surface);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: absolute;
  top: 6px;
  right: 6px;
}

.page-content {
  background: var(--bg-base);
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

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

.page-header-left h1 {
  letter-spacing: -.02em;
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 700;
}

.page-header-left p {
  color: var(--text-secondary);
  font-size: 14px;
}

.page-header-actions {
  gap: 8px;
  display: flex;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

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

.card-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

.card-footer {
  border-top: 1px solid var(--border);
  padding: 12px 20px;
}

.kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  display: grid;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.kpi-card:before {
  content: "";
  background: linear-gradient(90deg, var(--kpi-color, var(--primary)), transparent);
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.kpi-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #6366f133;
  transform: translateY(-2px);
}

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

.kpi-card .kpi-icon {
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 20px;
  display: flex;
}

.kpi-card .kpi-trend {
  border-radius: var(--radius-full);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
}

.kpi-trend.up {
  color: var(--success);
  background: #22c55e1a;
}

.kpi-trend.down {
  color: var(--danger);
  background: #ef44441a;
}

.kpi-card .kpi-value {
  letter-spacing: -.03em;
  margin-bottom: 4px;
  font-size: 28px;
  font-weight: 800;
}

.kpi-card .kpi-label {
  color: var(--text-secondary);
  font-size: 13px;
}

.btn {
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: 1px solid #0000;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  color: var(--text-secondary);
  border-color: var(--border);
  background: none;
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  background: #16a34a;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

.btn-icon {
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 8px;
}

.data-table-wrapper {
  overflow-x: auto;
}

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

.data-table thead th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--bg-glass);
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

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

.data-table tbody td {
  color: var(--text-primary);
  vertical-align: middle;
  padding: 12px 16px;
}

.data-table .td-id {
  color: var(--text-muted);
  font-family: Courier New, monospace;
  font-size: 12px;
}

.badge-status {
  border-radius: var(--radius-full);
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
}

.badge-status:before {
  content: "";
  background: currentColor;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.badge-active {
  color: var(--success);
  background: #22c55e1f;
}

.badge-prospect {
  color: var(--info);
  background: #3b82f61f;
}

.badge-suspend {
  color: var(--warning);
  background: #f59e0b1f;
}

.badge-terminated {
  color: var(--danger);
  background: #ef44441f;
}

.badge-open {
  color: var(--info);
  background: #3b82f61f;
}

.badge-progress {
  color: var(--accent-amber);
  background: #fbbf241f;
}

.badge-resolved {
  color: var(--accent-emerald);
  background: #22d3991f;
}

.badge-closed {
  color: var(--text-muted);
  background: #64748b1f;
}

.badge-paid {
  color: var(--success);
  background: #22c55e1f;
}

.badge-unpaid {
  color: var(--danger);
  background: #ef44441f;
}

.badge-overdue {
  color: var(--danger);
  background: #ef444426;
}

.badge-draft {
  color: var(--text-secondary);
  background: #94a3b81f;
}

.badge-hold {
  color: var(--accent-orange);
  background: #fb923c1f;
}

.badge-installed {
  color: var(--success);
  background: #22c55e1f;
}

.badge-warehouse {
  color: var(--primary-light);
  background: #6366f11f;
}

.badge-technician {
  color: var(--accent-purple);
  background: #a78bfa1f;
}

.badge-returned {
  color: var(--text-secondary);
  background: #94a3b81f;
}

.toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  display: flex;
}

.search-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-width: 360px;
  transition: border-color var(--transition-fast);
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  display: flex;
}

.search-box:focus-within {
  border-color: var(--border-focus);
}

.search-box input {
  color: var(--text-primary);
  background: none;
  border: none;
  outline: none;
  width: 100%;
  padding: 9px 0;
  font-family: inherit;
  font-size: 13px;
}

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

.search-box .search-icon {
  color: var(--text-muted);
  font-size: 14px;
}

.filter-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 13px;
  display: flex;
}

.filter-btn:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--bg-active);
  border-color: var(--primary);
  color: var(--primary-light);
}

.tabs {
  border-bottom: 1px solid var(--border);
  gap: 0;
  margin-bottom: 20px;
  display: flex;
}

.tab {
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}

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

.tab.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.form-input, .form-select, .form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 100%;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
  outline: none;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px #6366f11a;
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.form-row {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  display: grid;
}

.modal-overlay {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 1000;
  animation: fadeIn var(--transition-fast) ease;
  background: #0009;
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  animation: slideUp var(--transition-normal) ease;
  box-shadow: var(--shadow-xl);
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

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

.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  display: flex;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  display: flex;
}

.kanban-board {
  gap: 16px;
  padding-bottom: 16px;
  display: flex;
  overflow-x: auto;
}

.kanban-column {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-direction: column;
  flex-shrink: 0;
  min-width: 280px;
  max-width: 300px;
  max-height: calc(100vh - 220px);
  display: flex;
}

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

.kanban-column-header h4 {
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.kanban-column-header .count {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  padding: 2px 8px;
  font-size: 11px;
}

.kanban-cards {
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 12px;
  display: flex;
  overflow-y: auto;
}

.kanban-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 14px;
}

.kanban-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.kanban-card h5 {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.kanban-card p {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 12px;
}

.kanban-card-footer {
  color: var(--text-muted);
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  display: flex;
}

.chart-container {
  padding: 20px 0;
  position: relative;
}

.bar-chart {
  justify-content: space-around;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  padding: 0 8px;
  display: flex;
}

.bar-item {
  flex-direction: column;
  flex: 1;
  align-items: center;
  gap: 8px;
  display: flex;
}

.bar {
  background: linear-gradient(to top, var(--primary), var(--primary-light));
  width: 100%;
  max-width: 40px;
  transition: height var(--transition-slow);
  border-radius: 6px 6px 0 0;
  position: relative;
}

.bar-item .bar-label {
  color: var(--text-muted);
  text-align: center;
  font-size: 10px;
}

.bar-item .bar-value {
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
}

.mini-chart {
  align-items: flex-end;
  gap: 2px;
  height: 60px;
  display: flex;
}

.mini-chart .mini-bar {
  background: var(--primary);
  opacity: .5;
  transition: opacity var(--transition-fast);
  border-radius: 2px 2px 0 0;
  flex: 1;
}

.mini-chart .mini-bar:hover {
  opacity: 1;
}

.priority-critical {
  border-left: 3px solid var(--danger);
}

.priority-high {
  border-left: 3px solid var(--accent-orange);
}

.priority-normal {
  border-left: 3px solid var(--info);
}

.priority-low {
  border-left: 3px solid var(--text-muted);
}

.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  border: 2px solid var(--bg-surface);
  color: #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  margin-left: -8px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 24px;
}

.empty-state .empty-icon {
  margin-bottom: 12px;
  font-size: 40px;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-size: 16px;
}

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

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

@media (max-width: 1024px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

.progress-bar {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  height: 6px;
  overflow: hidden;
}

.progress-fill {
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  height: 100%;
  transition: width var(--transition-slow);
}

.timeline {
  padding-left: 24px;
  position: relative;
}

.timeline:before {
  content: "";
  background: var(--border);
  width: 2px;
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 7px;
}

.timeline-item {
  padding-bottom: 20px;
  position: relative;
}

.timeline-dot {
  background: var(--primary);
  border: 2px solid var(--bg-surface);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  position: absolute;
  top: 4px;
  left: -20px;
}

.timeline-item .timeline-time {
  color: var(--text-muted);
  margin-bottom: 4px;
  font-size: 11px;
}

.timeline-item .timeline-content {
  color: var(--text-secondary);
  font-size: 13px;
}

.tree-view {
  padding-left: 0;
  list-style: none;
}

.tree-node {
  position: relative;
}

.tree-label {
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  display: flex;
}

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

.tree-children {
  border-left: 1px dashed var(--border);
  margin-left: 20px;
  padding-left: 24px;
  list-style: none;
}

.tree-toggle {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  justify-content: center;
  align-items: center;
  font-size: 10px;
  display: flex;
}

.tree-toggle.open {
  transform: rotate(90deg);
}

.tree-code {
  color: var(--primary-light);
  min-width: 60px;
  font-family: Courier New, monospace;
  font-size: 12px;
}

.tree-name {
  color: var(--text-primary);
  font-weight: 500;
}

.tree-balance {
  color: var(--text-muted);
  margin-left: auto;
  font-family: Courier New, monospace;
  font-size: 12px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

.animate-in {
  animation: slideUp var(--transition-normal) ease;
}

.text-success {
  color: var(--success) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-info {
  color: var(--info) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-primary-color {
  color: var(--primary-light) !important;
}

.text-right {
  text-align: right !important;
}

.text-center {
  text-align: center !important;
}

.font-mono {
  font-family: Courier New, monospace;
}

.font-bold {
  font-weight: 700 !important;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.mt-2 {
  margin-top: 8px;
}

.mt-4 {
  margin-top: 16px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-4 {
  margin-bottom: 16px;
}

select {
  color: #fff !important;
  appearance: none !important;
  --lightningcss-light:  !important;
  --lightningcss-dark: initial !important;
  color-scheme: dark !important;
  background-color: #0f172a !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-position: right 12px center !important;
  background-repeat: no-repeat !important;
  border: 1px solid #334155 !important;
  border-radius: 8px !important;
  outline: none !important;
  padding: 8px 32px 8px 12px !important;
  font-size: 14px !important;
}

select option {
  color: #fff !important;
  background-color: #1e293b !important;
  padding: 8px 12px !important;
}

select option:hover, select option:focus, select option:active {
  color: #fff !important;
  background-color: #334155 !important;
}

select option:checked {
  color: #fff !important;
  background-color: #2563eb !important;
}

.dark select option {
  color: #fff !important;
  background-color: #1e293b !important;
}

.dark select option:hover, .dark select option:focus, .dark select option:active {
  color: #fff !important;
  background-color: #334155 !important;
}

.dark select option:checked {
  color: #fff !important;
  background-color: #6366f1 !important;
}

.light select option {
  color: #0f172a !important;
  background-color: #fff !important;
}

.light select option:hover, .light select option:focus, .light select option:active {
  color: #0f172a !important;
  background-color: #f1f5f9 !important;
}

.light select option:checked {
  color: #fff !important;
  background-color: #6366f1 !important;
}

.price-td {
  transition: all var(--transition-fast);
}

.price-td:hover {
  background: var(--bg-hover) !important;
}

.price-td:hover .edit-indicator {
  opacity: .6;
  transform: translateX(0);
}

.price-cell-content {
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  display: flex;
  position: relative;
}

.edit-indicator {
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: none;
  font-size: 10px;
  transform: translateX(-5px);
}

.edit-price-input {
  background: var(--bg-input);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  width: 100%;
  color: var(--text-primary);
  box-shadow: 0 0 10px var(--primary-glow);
  outline: none;
  padding: 4px 8px;
  font-family: inherit;
  font-weight: 600;
  animation: 2s infinite price-pulse;
}

@keyframes price-pulse {
  0% {
    box-shadow: 0 0 0px var(--primary-glow);
  }

  50% {
    box-shadow: 0 0 10px var(--primary-glow);
  }

  100% {
    box-shadow: 0 0 0px var(--primary-glow);
  }
}

/*# sourceMappingURL=src_app_globals_91e4631d.css.map*/