/* THIS FILE IS COPIED FROM THE COMMON LIBRARY AS OF 2025-09-30 11:14:35 GMT. DO NOT EDIT THIS FILE. EDIT THE ORIGINAL IN THE COMMON LIBRARY INSTEAD. */
/* agile-tabs.css */
/* @description Styling for AgileTabs custom element */
/* @version 2025.04.11 */
/* @changelog */
/* - 2025.04.11: Initial creation */




agile-tabs {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}


/* General styling for tabs container */
.tabs-container {
    display: flex;
    flex-direction: column;
    border: none;
    width: 100%;
    box-sizing: border-box;
}
.tabs-container.vertical {
    flex-direction: row;
}
.tabs-container.end {
    flex-direction: column-reverse;
}
.tabs-container.vertical.end {
    flex-direction: row-reverse;
}
.tabs-container.fill-height {
    height: 100%;
}
@media (max-width: 768px) {
    .tabs-container {
        flex-direction: column !important;
    }
}

/* Styling for the tabs */
.tabs {
    display: flex;
    padding-right: 4px;
}
.tabs-container.vertical > .tabs {
    flex-direction: column;
    padding-right: 0;
}


/* Individual tab styles */
.tab {
    padding: 2px 8px 2px 8px;
    cursor: pointer;
    transition: 0.3s ease;
    border-radius: 8px 8px 0 0;
    background-color: lightgray;
    border-width: 2px 2px 0 2px;
    border-style: solid;
    border-color: lightgray;
    margin-right: 2px;
    text-align: center;
    user-select: none;
    line-height: 1;
    white-space: nowrap;
    min-width: 40px;
}

.tabs-container.vertical > .tabs > .tab {
    border-radius: 8px 0 0 8px;
    border-width: 2px 0 2px 2px;
    line-height: 1.2;
    white-space: normal;
    margin-right: 0;
    margin-bottom: 2px;
    text-align: left;
}
.tabs-container.end .tab {
    border-radius: 0 0 8px 8px;
    border-width: 0 2px 2px 2px;
}
.tabs-container.vertical.end .tab {
    border-radius: 0 8px 8px 0;
    border-width: 2px 2px 2px 0;
}

.tab:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.tab.active {
    background-color: var(--primary-color);
    color: white;
    cursor: default;
    border-color: var(--primary-color);
}

/* Content container */
.tabs-content {
    overflow-y: auto; /* Enables vertical scrolling */
    flex-grow: 1; /* Allows it to take up the available space */
    padding: 0;
    border: solid 2px var(--primary-color);
    border-radius: 0 8px 8px 8px;
    box-sizing: border-box;
    background-color: #fff;
    min-height: 16px;
}
.tabs-container.vertical > .tabs-content {
    border-radius: 0 8px 8px 8px;
}
.tabs-container.end > .tabs-content {
    border-radius: 8px 8px 8px 0;
}
.tabs-container.end.vertical > .tabs-content {
    border-radius: 8px 0 8px 8px;
}
.tabs-container .tabs-content {
    width: 100%;
    flex-grow: 1;
}
@media (max-width: 768px) {
    .tabs-container .tabs-content {
        border-radius: 8px !important;
    }
}

.content-item {
    display: none; /* Only show the active content item */
    padding: 10px;
    position: relative;
    overflow: auto;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.content-item.visible {
    display: block;
}

/* Select dropdown for mobile view */
.tabs-select {
    display: none; /* Hidden by default */
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 0 0 8px 0;
}

@media (max-width: 768px) {
    .tabs-select {
        display: block;
    }

    .tabs {
        display: none; /* Hide tabs on small screens */
    }
}