/**
 * 6-utilities.css — Utility / Helper Classes
 * ============================================================
 * Single-purpose helper classes. Supplement Bootstrap utilities.
 * Depends on: 1-tokens.css
 * ============================================================
 */

/* Bootstrap has no min-w-0 utility, and text-truncate is useless without it:
   truncation sets white-space:nowrap, and a flex or grid child defaults to
   min-width:auto, so the item refuses to shrink below the full string -- it
   pushes its siblings (a close button, a page edge) out instead of ellipsing. */
.min-w-0 { min-width: 0; }

/* --------------------------------------------------------
 * COLOR UTILITIES
 * -------------------------------------------------------- */
.text-primary-custom {
    color: var(--brand-ink) !important;
}

/* --------------------------------------------------------
 * BACKGROUND UTILITIES
 * -------------------------------------------------------- */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

/* --------------------------------------------------------
 * SHADOW UTILITIES
 * -------------------------------------------------------- */
.shadow-sm-custom {
    box-shadow: var(--shadow-sm) !important;
}

/* --------------------------------------------------------
 * INFO BOXES
 * -------------------------------------------------------- */
.info-box-blue  { background: rgba(var(--color-blue-rgb), .08); border: 1.5px solid var(--color-blue-border); border-radius: 8px; padding: 12px; }
.info-box-green { background: var(--tone-green-soft); border: 1px solid var(--tone-green-border); border-radius: 8px; padding: 12px; }

/* --------------------------------------------------------
 * PRINT UTILITIES (universal)
 * The app chrome (sidebar, top bar, the mobile menu button)
 * never prints: a printed page is the page's content. It used
 * to be hidden page by page, and a report without its own print
 * rules printed the sidebar over its first column.
 * .no-print hides a page's own screen-only parts (filters,
 * buttons); .main-content loses the app-shell margins on paper.
 * Loaded on every page - do NOT repeat these in module css.
 * -------------------------------------------------------- */
@media print {
    .sidebar, .sidebar-toggle, .sidebar-backdrop, .top-nav,
    .no-print { display: none !important; }
    /* A stat card prints its figure and label; the colored icon tile is
       screen decoration (and prints as an empty box without backgrounds). */
    .stat-icon { display: none !important; }
    .main-content { margin: 0; padding: 0; }
}
