/* ==========================================================================
   REQUEST DETAIL VIEW // ENTERPRISE STYLING (request_detail.css)
   ========================================================================== */

:root {
    --req-detail-primary: #0d6efd;
    --req-detail-surface: #ffffff;
    --req-detail-text: #334155;
    --req-detail-border: #e2e8f0;
    --req-detail-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --req-detail-hover-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Container & Overflow Protection */
body {
    overflow-x: hidden !important;
}

.request-detail-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Cards & Containers */
.card {
    border-radius: 0.85rem;
    border: 1px solid var(--req-detail-border);
    box-shadow: var(--req-detail-shadow);
    background-color: var(--req-detail-surface);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--req-detail-hover-shadow);
}

/* Form Controls & Focus States */
.form-control, .form-select {
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--req-detail-text);
    background-color: #ffffff;
    transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
    border-color: var(--req-detail-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* ==========================================================================
   MOBILE RESPONSIVE STYLING & ZOOM RESILIENCE (Viewports <= 767.98px)
   ========================================================================== */

@media (max-width: 767.98px) {
    body {
        overflow-x: hidden !important;
    }

    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100% !important;
    }

    .request-detail-container {
        padding: 0 !important;
    }

    /* Header & Action Button Grid Fix for Mobile */
    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.85rem;
    }

    .mobile-action-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
    }

    .mobile-action-grid > * {
        width: 100% !important;
        display: block;
        text-align: center;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Prevents iOS auto-zoom on input focus */
    .form-control, .form-select {
        font-size: 16px !important;
    }
}