.container, .jumbotron .container {
    width: auto !important ;
    max-width: 1170px;
}

.status-orange {
    padding: 15px;
    width: 124px;
    background-color: darkorange !important;
    text-align: center;
    color: white;
}
.status-green {
    padding: 15px;
    width: 124px;
    background-color: darkgreen !important;
    text-align: center;
    color: white;
}

.indexMainBannerContent ul li a {
    color: #FFF !important;
}

.indexMainBannerContent ul li a:hover {
        text-decoration: none !important;
}

/* [BUG] Fix Unifi Alert Mobile View Drop Down Button Not Visible on Android Phone #1493 */
/* Status cell flex container */
#alertTableBody tr td.status-container {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    overflow: visible !important;
    padding: 8px 4px !important;
}

/* Status badge */
#alertTableBody tr td.status-container span.status-orange,
#alertTableBody tr td.status-container span.status-green {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    padding-top: 12px !important;    /* ← controls height */
    padding-bottom: 12px !important; /* ← controls height */
    padding-left: 4px !important;
    padding-right: 4px !important;
    font-size: 14px !important;
    font-weight: normal !important;
    flex-shrink: 0 !important;
}

/* Arrow button — zero left/right padding */
#alertTableBody tr td.status-container a.status-orange,
#alertTableBody tr td.status-container a.status-green {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;        /* reduced from 20px */
    min-width: 16px !important;
    max-width: 16px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;    /* reduced from 2px */
    padding-right: 0 !important;   /* reduced from 2px */
    flex-shrink: 0 !important;
    height: auto !important;
}

#alertTableBody tr td.status-container a.status-orange {
    background-color: darkorange !important;
}

#alertTableBody tr td.status-container a.status-green {
    background-color: darkgreen !important;
}

@media only screen and (max-width: 1024px) {
    /* ✅ Original rule - hide first 2 columns on mobile */
    .mainTR td:first-child,
    .mainTR td:nth-child(2) {
        display: none !important;
    }

    /* ✅ New - force table to fit screen width */
    table {
        width: 100% !important;
        max-width: 100vw !important;
        table-layout: auto !important;
    }

    /* ✅ New - prevent flex container from overflowing */
    #alertTableBody tr td.status-container {
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* Galaxy Z Fold 5 folded & similar narrow screens */
@media only screen and (max-width: 350px) {

    /* Change from visible to auto to prevent white bleed */
    div.tab-pane.fade.in.active {
        overflow: auto !important;
        overflow-x: auto !important;
    }

    section {
        overflow: auto !important;
        overflow-x: auto !important;
    }

    /* Scrollable wrapper */
    .view-content,
    .views-table-container,
    .view {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Table keeps natural width */
    table {
        width: max-content !important;
        table-layout: auto !important;
    }
}