/* ===== TEXT ===== */
.text-success  { color: var(--color-success) !important; }
.text-warning  { color: var(--color-warning) !important; }
.text-danger   { color: var(--color-danger)  !important; }
.text-primary  { color: var(--color-primary) !important; }
.text-muted    { color: var(--color-text-muted) !important; }
.text-secondary{ color: var(--color-text-secondary) !important; }
.text-right    { text-align: right !important; }
.text-center   { text-align: center !important; }
.text-left     { text-align: left !important; }
.text-sm       { font-size: 0.8rem; }
.text-xs       { font-size: 0.72rem; }
.text-lg       { font-size: 1.05rem; }
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium   { font-weight: 500; }
.font-mono     { font-family: var(--font-mono); }

/* ===== SPACING ===== */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }
.p-0  { padding: 0 !important; }

/* ===== DISPLAY ===== */
.hidden  { display: none !important; }
.d-flex  { display: flex; }
.d-grid  { display: grid; }
.d-block { display: block; }
.items-center     { align-items: center; }
.items-start      { align-items: flex-start; }
.justify-between  { justify-content: space-between; }
.justify-center   { justify-content: center; }
.justify-end      { justify-content: flex-end; }
.flex-1           { flex: 1; }
.flex-wrap        { flex-wrap: wrap; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* ===== MISC ===== */
.divider { border: none; border-top: 1px solid var(--color-border); margin: 14px 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rounded  { border-radius: var(--radius-md); }
.rounded-full { border-radius: 9999px; }
.no-select { user-select: none; }
.clickable { cursor: pointer; }

/* ===== NUMBER FORMAT ===== */
.num-positive { color: var(--color-success); font-weight: 700; }
.num-negative { color: var(--color-danger);  font-weight: 700; }
.num-neutral  { color: var(--color-text-muted); }

/* ===== CHART TOOLTIP (custom) ===== */
.chart-tooltip-custom {
  background: rgba(15,23,42,0.92) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-family: var(--font) !important;
  font-size: 12px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== PRINT ===== */
@media print {
  #sidebar, #top-header, #toast-container, .table-actions,
  .btn:not(.print-visible) { display: none !important; }
  #main-content { margin-left: 0; }
  .card { box-shadow: none; }
}
