.header {
    background-color: #747ed1 !important;
}


.fab758 {

}


:root {
    --bs-warning: #f0bd75 !important;
    --bs-info: #747ed1 !important;
    --bs-info-active: #747ed1 !important;
    --bs-primary: #2aa9ac !important;
    --bs-primary-active: #2aa9ac !important;
    --bs-text-primary: #2aa9ac !important;
    --bs-warning-active: #e0c050 !important;
}

.btn.btn-warning:hover:not(.btn-active), .show > .btn.btn-warning {
    border-color: #f0bd75 !important;
    background-color: #f0bd75 !important;
}

.btn.info:hover:not(.btn-active), .show > .btn.info {
    border-color: #747ed1 !important;
    background-color: #747ed1 !important;
}

.btn {
    box-shadow: var(--bs-btn-box-shadow) !important;
    transition: all .2s ease-in-out !important;
}

.btn:hover {
    transform: translateY(-0.15rem) !important;
    box-shadow: 0 0.25rem 0.75rem rgba(30, 34, 40, .15) !important;
}



.digit-input {
    font-size: 1.5rem;
    text-align: center;
    color: #1B84FF;
}

/* ==========================================================================
   Activity Log Detail
   ========================================================================== */

.activity-detail-header {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

.activity-detail-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 12px 0 0;
    color: #111827;
    line-height: 1.4;
}

.activity-detail-header .event-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.activity-detail-header .event-badge.created { background: #dcfce7; color: #166534; }
.activity-detail-header .event-badge.updated { background: #dbeafe; color: #1e40af; }
.activity-detail-header .event-badge.deleted { background: #fee2e2; color: #991b1b; }
.activity-detail-header .event-badge.default { background: #f3f4f6; color: #374151; }

.activity-detail-header .meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
}

.activity-detail-header .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #6b7280;
}

.activity-detail-header .meta-item i {
    font-size: 12px;
    color: #9ca3af;
}

/* Causer Card */
.causer-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.causer-card .avatar-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

.causer-card .avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
}

.causer-card .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.causer-card h4 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.causer-card .role-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 16px;
}

.causer-card .timestamp {
    color: #64748b;
    font-size: 0.85rem;
}

.causer-card .timestamp i {
    margin-right: 6px;
}

/* Properties Card */
.properties-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.properties-card .card-header-custom {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.properties-card .card-header-custom h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.properties-card .card-header-custom h3 i {
    color: #6366f1;
}

.properties-card .card-body-custom {
    padding: 24px;
}

/* Property Item */
.property-item {
    display: flex;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
}

.property-item:last-child {
    margin-bottom: 0;
}

.property-item .property-label {
    font-weight: 600;
    color: #475569;
    min-width: 140px;
    flex-shrink: 0;
}

.property-item .property-value {
    color: #1e293b;
    word-break: break-word;
}

.property-item .property-value--mono {
    font-size: 0.75rem;
    font-family: ui-monospace, monospace;
}

/* Changes Section */
.changes-section {
    margin-top: 8px;
}

.changes-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.changes-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.changes-header > i {
    color: #6366f1;
}

.changes-header .changes-count {
    padding: 4px 12px;
    background: #6366f1;
    color: #fff;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Diff Table */
.diff-table {
    width: 100%;
}

.diff-row {
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.15s ease;
}

.diff-row:hover {
    background: #f8fafc;
}

.diff-row:last-child {
    border-bottom: none;
}

.diff-row.diff-header {
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diff-cell {
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
}

.diff-cell.field-name {
    font-weight: 600;
    color: #334155;
    background: #fafbfc;
    border-right: 1px solid #e5e7eb;
}

.diff-cell.old-value {
    background: #fef2f2;
    border-right: 1px solid #e5e7eb;
}

.diff-cell.new-value {
    background: #f0fdf4;
}

.diff-cell .value-content {
    word-break: break-word;
    line-height: 1.5;
}

.diff-cell .value-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.diff-cell.old-value .value-badge {
    background: #fee2e2;
    color: #991b1b;
}

.diff-cell.new-value .value-badge {
    background: #dcfce7;
    color: #166534;
}

.diff-cell .null-value {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.85rem;
}

.diff-cell .change-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
    font-size: 0.7rem;
}

.diff-cell.old-value .change-indicator { color: #dc2626; }
.diff-cell.new-value .change-indicator { color: #16a34a; }

/* Change Type Icons */
.change-type-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-right: 8px;
    flex-shrink: 0;
}

.change-type-icon.added { background: #dcfce7; color: #16a34a; }
.change-type-icon.removed { background: #fee2e2; color: #dc2626; }
.change-type-icon.modified { background: #fef3c7; color: #d97706; }

/* Employers List */
.employers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.employer-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #475569;
}

.employer-chip i {
    color: #6366f1;
}

/* Empty State */
.activity-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
}

.activity-empty-state i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.activity-empty-state h4 {
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

/* Subject Link */
.subject-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f1f5f9;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.15s ease;
    margin-top: 16px;
}

.subject-link:hover {
    background: #e2e8f0;
    color: #334155;
}

.subject-link i {
    color: #6366f1;
}

/* Responsive */
@media (max-width: 768px) {
    .diff-row {
        grid-template-columns: 1fr;
    }

    .diff-cell {
        padding: 12px 16px;
    }

    .diff-cell.field-name {
        background: #f1f5f9;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        font-size: 0.85rem;
    }

    .diff-cell.old-value {
        border-right: none;
    }

    .diff-row.diff-header {
        display: none;
    }

    .diff-cell::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #64748b;
        display: block;
        margin-bottom: 4px;
    }
}

/* ==========================================================================
   Documentation Attachments
   ========================================================================== */

.attachments-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.attachments-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.attachments-header-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f0bd75 0%, #e5a84d 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    font-size: 16px;
}

.attachments-header h5 {
    margin: 0;
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
}

.attachments-header .badge {
    background: #fef3e2;
    color: #b8860b;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.attachment-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.attachment-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e5e7eb;
    transition: background 0.2s ease;
}

.attachment-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #f0bd75;
}

.attachment-card:hover::before {
    background: linear-gradient(180deg, #f0bd75 0%, #e5a84d 100%);
}

.attachment-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.attachment-icon.pdf { background: #fef2f2; }
.attachment-icon.pdf i { color: #dc2626 !important; }

.attachment-icon.doc { background: #eff6ff; }
.attachment-icon.doc i { color: #2563eb !important; }

.attachment-icon.image { background: #f0fdf4; }
.attachment-icon.image i { color: #16a34a !important; }

.attachment-icon.zip { background: #fffbeb; }
.attachment-icon.zip i { color: #d97706 !important; }

.attachment-icon.default { background: #f3f4f6; }
.attachment-icon.default i { color: #6b7280 !important; }

.attachment-details {
    flex: 1;
    min-width: 0;
}

.attachment-filename {
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.attachment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.8rem;
}

.attachment-meta .dot {
    width: 3px;
    height: 3px;
    background: #cbd5e1;
    border-radius: 50%;
}

.attachment-action .btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.attachment-action .btn-download {
    background: linear-gradient(135deg, #f0bd75 0%, #e5a84d 100%);
    border: none;
    color: #fff;
}

.attachment-action .btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(240, 189, 117, 0.5);
    color: #fff;
}

.attachment-action .btn-unavailable {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
}