#modalDeviationLogs .modal-dialog {
    max-width: 95% !important;
    /* Increase width */
    width: 95% !important;
}



/*DeviationTypes Blade */

/* Processing Overlay */
.modal-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    /* Semi-transparent white */
    z-index: 1060;
    /* Higher than Bootstrap Modal default */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0.3rem;
}

/* Floating Success/Error Alert */
.modal-alert {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1070;
    /* Highest priority */
    min-width: 300px;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

/* Success Style */
.modal-alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Error Style */
.modal-alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        top: -50px;
        opacity: 0;
    }

    to {
        top: 10px;
        opacity: 1;
    }
}



/*Deviation Blade css */

.mini-gradient-btn {
    background: linear-gradient(90deg, #6f42ff, #4e8df5);
    color: #ffffff !important;
    border: none;
}

.mini-gradient-btn:hover {
    filter: brightness(1.12);
    box-shadow: 0 3px 10px rgba(110, 80, 255, 0.5);
    transform: translateY(-1px);
}

.utility-pill-btn {
    margin-bottom: 10px;
    margin-left: 25px;
    width: 170px;
    height: 40px;
    border-radius: 15px;
}


.deviation-table {
    vertical-align: middle !important;
    text-align: center;
}

.thead-medium {
    background-color: #c8ccd0;
    color: #212529;
}

.text-wrap-cell {
    white-space: normal !important;
    /* Force text to wrap to next line */
    word-break: break-word;
    /* Break long words (like URLs/codes) */
    overflow-wrap: break-word;
    /* Modern standard for wrapping */
    vertical-align: top;
    /* Align content to top */
}

.new-row-bg {
    background-color: #d7d7e1ff;
    animation: fadeIn 0.5s;
}

tr.new-row-bg:hover {
    background-color: #d7d7e1ff !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

textarea.form-control,
select.form-control {
    font-size: 0.85rem;
}

.deviation-textarea {
    background-color: #dfd3dc !important;
}


.gradient-hover-btn {
    background: linear-gradient(90deg, #4e8df5, #6f42ff);
    color: white !important;
    border: none;
    border-radius: 15px;
    transition: 0.3s ease-in-out;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 220px;
    margin-top: 20px;
}

.gradient-hover-btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 6px 17px rgba(110, 80, 255, 0.6);
    text-decoration: none !important;
}


/* Shared base style */
.glass-btn {
    padding: 6px 14px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    cursor: pointer;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: 0.2s ease-in-out;
}

/* Hover effect */
.glass-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Save button (Greenish translucent) */
.glass-save {
    background: rgba(0, 255, 150, 0.25);
    border-color: rgba(0, 255, 150, 0.5);
    color: #0d6efd;
    width: 70px;
}

/* Remove/Cancel button (Red translucent) */
.glass-cancel {
    background: rgba(255, 50, 50, 0.25);
    border-color: rgba(255, 50, 50, 0.5);
    color: #e63946;
    width: 70px;

}

.action-blurred {
    opacity: 0.4;
    filter: blur(1px);
    pointer-events: none;
    cursor: not-allowed;
    transition: all 0.2s ease;
}

/* The Button Container */
.btn-trendy-delete {
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
    /* Trendy reddish gradient */
    border: none;
    border-radius: 8px;
    /* Soft rounded corners */
    width: 34px;
    height: 34px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(238, 82, 83, 0.3);
    /* Colored shadow */
    transition: all 0.2s ease;
    padding: 0;
}

/* Hover Effect */
.btn-trendy-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(238, 82, 83, 0.4);
    background: linear-gradient(135deg, #ff8787, #ff5e57);
}

/* Active/Click Effect */
.btn-trendy-delete:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(238, 82, 83, 0.3);
}

/* The Trash Can Icon (Pure CSS) */
.trash-icon {
    box-sizing: border-box;
    display: block;
    width: 10px;
    height: 12px;
    border: 2px solid white;
    border-top: none;
    border-radius: 0 0 2px 2px;
    position: relative;
    margin-top: 2px;
    /* Slight offset for balance */
    pointer-events: none;
    /* Let clicks pass through to button */
}

/* The Lid */
.trash-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -2px;
    width: 14px;
    height: 2px;
    background-color: white;
}

/* The Handle */
.trash-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 2px;
    width: 6px;
    height: 2px;
    border: 2px solid white;
    border-bottom: none;
    border-radius: 2px 2px 0 0;
}



/* Action Column Buttons */

/* Base glass button */
.action-btn {
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.25);
}

/* Variants */
.action-btn--edit {
    color: #007bff;
    border-color: rgba(255, 255, 255, 0.5);
}

.action-btn--delete {
    color: #e63946;
    background: rgba(255, 200, 200, 0.25);
    border-color: rgba(255, 200, 200, 0.5);
}

.action-btn--delete-strong {
    color: #e63946;
    background: rgba(255, 50, 50, 0.25);
    border-color: rgba(255, 50, 50, 0.5);
}

.action-btn--save {
    padding: 6px 14px;
    color: #0d6efd;
    font-weight: 600;
    background: rgba(0, 255, 150, 0.25);
    border-color: rgba(0, 255, 150, 0.5);
    margin-bottom: 6px;
}

/* Cancel link-style button */
.action-btn-cancel {
    display: block;
    margin: 8px auto 0;
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}




/* ---------- STATUS BADGES ---------- */


.status-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.status-badge--pending {
    background: #f59e0b;
}

.status-badge--approved {
    background: #10b981;
}

.status-badge--rejected {
    background: #ed4343;
}

/* ---------- STATUS ACTION CONTAINER ---------- */

.status-action-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

/* ---------- BASE STATUS ACTION BUTTON ---------- */

.status-action-btn {
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background: transparent;
}

/* ---------- APPROVE ---------- */

.status-action-btn--approve {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
}

.status-action-btn--approve:hover {
    background: #8CF3BE;
    border-color: #10b981;
    transform: translateY(-1px);
}

/* ---------- REJECT ---------- */

.status-action-btn--reject {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #f37676;
}

.status-action-btn--reject:hover {
    background: #e9b4b4ff;
    border-color: #ef4444;
    transform: translateY(-1px);
}