/* ============================================
   Utility CSS Classes
   Extracted from inline styles for audit compliance
   ============================================ */

/* ----------------------------------------
   Colors
   ---------------------------------------- */
.text-gray-800 { color: #1f2937; }

/* ----------------------------------------
   Font Sizes
   ---------------------------------------- */
.fs-xs { font-size: 0.65rem; }

.fs-0-85 { font-size: 0.85rem; }

.fs-3rem { font-size: 3rem; }

/* ----------------------------------------
   Width Utilities
   ---------------------------------------- */

.w-60 { width: 60px; }
.w-80 { width: 80px; }
.w-90 { width: 90px; }
.w-100px { width: 100px; }

.w-120 { width: 120px; }

.w-150 { width: 150px; }

.w-180 { width: 180px; }

.w-45-pct { width: 45%; }
.max-w-120 { max-width: 120px; }
.max-w-400 { max-width: 400px; }

/* ----------------------------------------
   Height Utilities
   ---------------------------------------- */

/* ----------------------------------------
   Overflow
   ---------------------------------------- */

/* ----------------------------------------
   Text Formatting
   ---------------------------------------- */
.text-uppercase { text-transform: uppercase; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.word-break-all { word-break: break-all; }
.word-break-word { word-break: break-word; }

/* ----------------------------------------
   Display & Visibility
   ---------------------------------------- */
.d-none-dynamic { display: none; }

/* ----------------------------------------
   Borders
   ---------------------------------------- */

.border-radius-6 { border-radius: 6px; }

/* ----------------------------------------
   Opacity
   ---------------------------------------- */
.opacity-30 { opacity: 0.3; }

/* ----------------------------------------
   Positioning
   ---------------------------------------- */
.sticky-top-80 { 
    position: sticky;
    top: 80px;
}

/* ----------------------------------------
   Backgrounds
   ---------------------------------------- */
.bg-gray-50 { background: #f9fafb; }

/* ----------------------------------------
   Gradients
   ---------------------------------------- */
.gradient-primary {
    background: linear-gradient(135deg, #2f62d0 0%, #4373db 100%);
}

/* ----------------------------------------
   Icons
   ---------------------------------------- */
.icon-dot-small {
    font-size: 0.5rem;
    vertical-align: middle;
}

/* ----------------------------------------
   Email Template Link (white)
   ---------------------------------------- */

/* ----------------------------------------
   Form Elements
   ---------------------------------------- */

/* ----------------------------------------
   Cards
   ---------------------------------------- */
.card-borderless {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
}

/* ----------------------------------------
   Email Preview
   ---------------------------------------- */
.email-preview-container {
    background: #f9fafb;
    padding: 20px;
}

.email-preview-frame {
    background: white;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.email-preview-iframe {
    width: 100%;
    border: none;
    display: block;
}

/* ----------------------------------------
   Signature Line (for print)
   ---------------------------------------- */

/* ----------------------------------------
   Pre/Code blocks
   ---------------------------------------- */
.pre-scrollable {
    max-height: 300px;
    overflow: auto;
    white-space: pre-wrap;
}

.pre-scrollable-lg {
    max-height: 400px;
    overflow: auto;
    white-space: pre-wrap;
}

/* ----------------------------------------
   Print Styles
   ---------------------------------------- */

/* Long email addresses: one line, ending with an ellipsis; the full address is in the title. */
.email-ellipsis {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.pair-dd .email-ellipsis {
    display: block;
    max-width: 100%;
}

.admin-user-email .email-ellipsis {
    max-width: 16rem;
}

td .email-ellipsis {
    max-width: 18rem;
}

@media (max-width: 575.98px) {
    .pair-dd .email-ellipsis {
        max-width: 100%;
    }
}

.pair-text {
    min-width: 0;
}
