:root {
  --ds-primary: #0b5fff;
  --ds-secondary: #2563eb;
  --ds-success: #22c55e;
  --ds-warning: #f59e0b;
  --ds-danger: #ef4444;
  --ds-text: #0f172a;
  --ds-muted: #64748b;
  --ds-bg: #f5f9ff;
  --ds-card: #ffffff;
  --ds-border: #e2e8f0;
  --ds-radius: 20px;
  --ds-radius-sm: 14px;
  --ds-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, 0.35) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.28);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

html,
body {
  min-height: 100vh;
}

body {
  color: var(--ds-text);
  font-family: "Be Vietnam Pro", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lucide-icon,
.app-icon,
.material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  line-height: 1;
  vertical-align: -0.125em;
  font-size: 0 !important;
  overflow: hidden;
}

.app-icon:not(.lucide-icon),
.material-symbols-outlined:not(.lucide-icon) {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 1.25rem !important;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
  overflow: visible;
}

.lucide-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

#sidebar .lucide-icon,
#sidebar .app-icon,
#sidebar .material-symbols-outlined {
  width: 20px !important;
  height: 20px !important;
}

.summary-icon .lucide-icon,
.create-icon .lucide-icon,
.ds-icon-shell .lucide-icon,
.director-kpi > span .lucide-icon,
.employee-card > div:first-child .lucide-icon,
.manager-card > div:first-child .lucide-icon {
  width: 24px !important;
  height: 24px !important;
}

.action-icon .lucide-icon,
button .lucide-icon,
a .lucide-icon {
  width: 18px;
  height: 18px;
}

.preserve-breaks {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rich-editor-content,
.rich-text-content {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rich-editor-content:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
}

.rich-editor-content p,
.rich-text-content p {
  margin: 0 0 0.75rem;
}

.rich-editor-content p:last-child,
.rich-text-content p:last-child {
  margin-bottom: 0;
}

.rich-editor-content ul,
.rich-text-content ul {
  list-style: disc;
  margin: 0.5rem 0 0.75rem 1.25rem;
  padding-left: 0.75rem;
}

.rich-editor-content ol,
.rich-text-content ol {
  list-style: decimal;
  margin: 0.5rem 0 0.75rem 1.25rem;
  padding-left: 0.75rem;
}

.rich-editor-content li,
.rich-text-content li {
  margin: 0.25rem 0;
  padding-left: 0.25rem;
}

.rich-editor-content li::marker,
.rich-text-content li::marker {
  color: var(--ds-primary);
  font-weight: 700;
}

.rich-editor-content strong,
.rich-editor-content b,
.rich-text-content strong,
.rich-text-content b {
  font-weight: 800;
}

.rich-editor-content em,
.rich-editor-content i,
.rich-text-content em,
.rich-text-content i {
  font-style: italic;
}

.rich-editor-content u,
.rich-text-content u {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.ds-avatar,
.ds-header-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  flex-shrink: 0;
  align-self: center;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  line-height: 1;
  box-sizing: border-box;
}

.ds-avatar-32,
.ds-header-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  font-size: 0.75rem;
  border-radius: 12px;
}

.ds-avatar-36 {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  font-size: 0.8125rem;
  border-radius: 12px;
}

.ds-avatar-40 {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  font-size: 0.875rem;
  border-radius: 12px;
}

.ds-avatar-44 {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  font-size: 0.875rem;
  border-radius: 12px;
}

.ds-avatar-48 {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  font-size: 1rem;
  border-radius: 14px;
}

.ds-avatar-56 {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  font-size: 1.125rem;
  border-radius: 14px;
}

.ds-avatar-round {
  border-radius: 9999px !important;
}

.ds-avatar-img,
img.ds-avatar,
img.ds-header-avatar {
  padding: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
}

.ds-avatar-initial {
  font-weight: 800;
  user-select: none;
}

.ds-header-user .ds-avatar,
.ds-header-user .ds-header-avatar,
.ds-header-user img.ds-header-avatar {
  align-self: center;
}
