/* ==========================================================================
   SERVICE LIST VIEW // ENTERPRISE STYLING (service_list.css)
   ========================================================================== */

:root {
    --service-list-primary: #0d6efd;
    --service-list-surface: #ffffff;
    --service-list-text: #334155;
    --service-list-border: #e2e8f0;
    --service-list-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --service-list-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;
}

.service-list-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Cards & Containers */
.card {
    border-radius: 0.85rem;
    border: 1px solid var(--service-list-border);
    box-shadow: var(--service-list-shadow);
    background-color: var(--service-list-surface);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--service-list-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(--service-list-text);
    background-color: #ffffff;
    transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
    border-color: var(--service-list-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Tables & Responsive Wrapper */
.table-responsive {
    width: 100%;
    margin-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    color: var(--service-list-text);
    vertical-align: middle;
    margin-bottom: 0;
    width: 100%;
}

.table > :not(caption) > * > * {
    padding: 0.75rem 0.75rem;
}

.table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    background-color: #f8fafc;
    border-bottom: 2px solid var(--service-list-border);
    white-space: nowrap;
}

/* ==========================================================================
   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;
    }

    .service-list-container {
        padding: 0 !important;
    }

    /* Swipeable pills on mobile */
    .table-responsive-pills {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
    }

    .table-responsive-pills::-webkit-scrollbar {
        display: none;
    }

    /* Prevents iOS auto-zoom on input focus */
    .form-control, .form-select {
        font-size: 16px !important;
    }
}