/* ===================================================================
   CSP Compliance Utilities - Inline Style Replacement
   Created for: 100% Pure CSP Migration
   Replaces: 413+ inline styles across 23 HTML files
   =================================================================== */

/* === DISPLAY UTILITIES === */
.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

.inline-block {
    display: inline-block !important;
}

/* === ICON SIZING === */
.icon-xs {
    font-size: 8px;
}

.icon-sm {
    font-size: 10px;
}

.icon-md {
    font-size: 16px;
}

.icon-lg {
    font-size: 20px;
}

.icon-xl {
    font-size: 24px;
}

/* === NAVIGATION SPECIFIC === */
.chevron-icon {
    margin-left: 4px;
    font-size: 10px;
}

.dropdown-icon {
    font-size: 10px;
    opacity: 0.7;
}

.user-avatar-hidden {
    display: none;
}

.dispatch-menu {
    display: none;
}

/* === SPACING UTILITIES === */
/* Margin Left */
.ml-0-5 {
    margin-left: 2px;
}

.ml-1 {
    margin-left: 4px;
}

.ml-2 {
    margin-left: 8px;
}

.ml-3 {
    margin-left: 12px;
}

.ml-4 {
    margin-left: 16px;
}

.ml-auto {
    margin-left: auto;
}

/* Margin Right */
.mr-0-5 {
    margin-right: 2px;
}

.mr-1 {
    margin-right: 4px;
}

.mr-2 {
    margin-right: 8px;
}

.mr-3 {
    margin-right: 12px;
}

.mr-4 {
    margin-right: 16px;
}

/* Margin Bottom */
.mb-0-5 {
    margin-bottom: 2px;
}

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

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

.mb-3 {
    margin-bottom: 12px;
}

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

.mb-5 {
    margin-bottom: 20px;
}

/* Margin Top */
.mt-0-5 {
    margin-top: 2px;
}

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

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

.mt-3 {
    margin-top: 12px;
}

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

/* Margin (all sides) */
.m-0 {
    margin: 0;
}

.m-1 {
    margin: 4px;
}

.m-2 {
    margin: 8px;
}

.m-3 {
    margin: 12px;
}

.m-4 {
    margin: 16px;
}

/* Padding */
.p-0-5 {
    padding: 2px;
}

.p-1 {
    padding: 4px;
}

.p-2 {
    padding: 8px;
}

.p-3 {
    padding: 12px;
}

.p-4 {
    padding: 16px;
}

.p-5 {
    padding: 20px;
}

/* === TEXT COLORS (Using CSS Variables) === */
.text-dark {
    color: var(--color-text-dark);
}

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

.text-danger {
    color: #dc2626;
}

.text-success {
    color: #059669;
}

.text-primary {
    color: #3b82f6;
}

.text-secondary {
    color: #4b5563;
}

.text-blue-dark {
    color: #1e40af;
}

/* === FONT UTILITIES === */
.font-bold {
    font-weight: bold;
}

.font-normal {
    font-weight: normal;
}

.font-xs {
    font-size: 0.75rem;
}

.font-sm {
    font-size: 0.875rem;
}

.font-base {
    font-size: 1rem;
}

/* === TEXT DECORATION === */
.line-through {
    text-decoration: line-through;
}

.no-underline {
    text-decoration: none;
}

/* === LAYOUT UTILITIES === */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-between {
    justify-content: space-between;
}

/* === INFO BOXES & ALERTS === */
.info-box {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border-left: 3px solid #3b82f6;
    border-radius: 4px;
}

.info-box-title {
    color: #1e40af;
    display: block;
    margin-bottom: 0.5rem;
}

.info-box-content {
    margin-left: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
}

/* === BORDERS === */
.border-radius-sm {
    border-radius: 4px;
}

.border-radius-md {
    border-radius: 8px;
}

.border-left-blue {
    border-left: 3px solid #3b82f6;
}

.border-left-danger {
    border-left: 3px solid #dc2626;
}

.border-left-success {
    border-left: 3px solid #059669;
}

/* === BACKGROUNDS === */
.bg-blue-light {
    background: #f0f9ff;
}

.bg-white {
    background: white;
}

.bg-gray-light {
    background: #f9fafb;
}

/* === OPACITY === */
.opacity-70 {
    opacity: 0.7;
}

.opacity-50 {
    opacity: 0.5;
}

/* === PAGE-SPECIFIC: STATS SECTION === */
.stats-hidden {
    display: none;
}

/* === PAGE-SPECIFIC: USER PROFILE === */
.user-email-hidden {
    display: none;
}

.user-profile-icon {
    font-size: 20px;
}

.user-profile-chevron {
    font-size: 10px;
    opacity: 0.7;
}

/* === PAGE-SPECIFIC: AUDIT LOG === */
.audit-change-removed {
    color: #dc2626;
    text-decoration: line-through;
}

.audit-change-added {
    color: #059669;
    font-weight: bold;
    margin: 0 0.5rem;
}

.audit-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }

    .mobile-block {
        display: block;
    }
}

@media (min-width: 769px) {
    .desktop-hidden {
        display: none;
    }
}

/* === ADDITIONAL COMMON PATTERNS === */
.cursor-pointer {
    cursor: pointer;
}

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

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

.text-left {
    text-align: left;
}

.full-width {
    width: 100%;
}

.min-w-0 {
    min-width: 0;
}

/* === Z-INDEX UTILITIES === */
.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-50 {
    z-index: 50;
}

/* === POSITION UTILITIES === */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

/* === OVERFLOW UTILITIES === */
.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.overflow-scroll {
    overflow: scroll;
}