/* =====================================================================
   SurveyorLink — Custom responsive tabs (replaces AJAX Control Toolkit TabContainer)
   ===================================================================== */

.sl-tabs {
    font-family: verdana, sans-serif;
}

/* Tab navigation bar */
.sl-tab-nav {
    display: flex;
    flex-wrap: wrap;
    background-color: #677791;
    border-bottom: 3px solid #39b9d5;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Individual tab buttons */
.sl-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    padding: 10px 16px;
    color: #dce4ee;
    cursor: pointer;
    font-family: verdana, sans-serif;
    font-size: 13px;
    font-weight: normal;
    white-space: nowrap;
    border-radius: 0;
    float: none !important;
    width: auto !important;
    display: inline-block;
    margin-top: 0;
    margin-right: 0;
    margin-left: 0;
    line-height: 1.4;
    transition: background 0.15s, color 0.15s;
    -webkit-appearance: none;
}

.sl-tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
}

.sl-tab-btn.active {
    background-color: #39b9d5;
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Tab content area */
.sl-tab-content {
    border: 1px solid #ddd;
    border-top: none;
    background-color: #ffffff;
    padding: 15px;
    min-height: 100px;
}

/* Individual tab panes — hidden by default */
.sl-tab-pane {
    display: none;
}

.sl-tab-pane.active {
    display: block;
}

/* =====================================================================
   Responsive — phones
   ===================================================================== */
@media (max-width: 770px) {
    /* Scroll horizontally instead of wrapping to multiple rows */
    .sl-tab-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .sl-tab-btn {
        padding: 6px 10px;
        font-size: 11px;
        flex-shrink: 0;
    }

    .sl-tab-content {
        padding: 8px;
        font-size: 12px;
    }
}
