/* =========================================================================
   Shared Utilities
   ========================================================================= */

.compact-gap {
    gap: 16px;
}

.compact-spacing {
    margin-bottom: 16px;
}

.table-cell-strong {
    font-weight: 500;
}

.table-cell-primary {
    font-weight: 500;
    color: var(--clr-navy);
}

.table-cell-emphasis {
    font-weight: 600;
}

.table-cell-danger {
    color: var(--clr-danger);
}

.badge-inline {
    margin-left: 8px;
}

.badge-compact {
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 0.65rem;
}

.title-with-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.title-with-action-inline {
    gap: 8px;
}

.p-0 {
    padding: 0;
}

.text-warning {
    color: var(--clr-warning) !important;
}

.table-row-alert {
    background: rgba(220, 38, 38, 0.06);
}

.text-danger {
    color: var(--clr-danger) !important;
    font-weight: 600;
}

.text-red {
    color: #d32f2f;
    font-weight: 600;
}

.table-row-clickable {
    cursor: pointer;
}

.table-row-clickable.is-selected {
    background: rgba(14, 165, 233, 0.08);
}

.table-row-clickable:focus-visible {
    outline: 2px solid rgba(14, 165, 233, 0.45);
    outline-offset: -2px;
}

.certificate-status-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.7);
    cursor: help;
    flex-shrink: 0;
}

.certificate-status-indicator svg {
    width: 14px;
    height: 14px;
    display: block;
}

.certificate-status-valid {
    color: #047857;
    background: #d1fae5;
}

.certificate-status-warning {
    color: #b45309;
    background: #fef3c7;
}

.certificate-status-expired {
    color: #b91c1c;
    background: #fee2e2;
}

.certificate-status-muted {
    color: #475569;
    background: #e2e8f0;
}

@media (max-width: 768px) {
    .title-with-action {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .title-with-action-inline {
        display: inline-flex;
        flex-wrap: wrap;
    }
}

@media print {
    body {
        margin: 0;
        padding: 0;
        background: #fff;
    }

    .sidebar,
    .dashboard-header,
    .no-print,
    .btn,
    .sidebar-nav {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .report-container {
        width: 100%;
        color: #000;
        background: #fff;
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .report-header {
        border-bottom: 2px solid #000;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .report-meta p {
        margin: 4px 0;
    }

    .report-table th,
    .report-table td {
        border-bottom: 1px solid #ddd;
        padding: 8px;
    }

    .text-red {
        color: #d32f2f !important;
        font-weight: bold;
    }

    * {
        color: #000 !important;
        text-shadow: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}
