/*
 * Styling the TabWidget
 */
.tab-widget {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.tab-header {
    display: flex;
}

.tab-header button {
    padding: 6px;
    cursor: pointer;
    border: 1px solid #C3C3C3;
    background-color: #d8d8d8;
    border-radius: 8px 8px 0 0;
    margin-right: 2px;
    outline: none;
}

.tab-header-bottom button {
    border-radius: 0 0 8px 8px;
}

.tab-header-left button {
    border-radius: 8px 0 0 8px;
    margin-bottom: 2px;
}

.tab-header-right button {
    border-radius: 0 8px 8px 0;
    margin-bottom: 2px;
}

.tab-header button.active {
    border-bottom: 1px solid transparent;
    background-color: #f6f6f6;
}

.tab-header-bottom button.active {
    border-top: 1px solid transparent;
    border-bottom: 1px solid #C3C3C3;
}

.tab-header-left button.active {
    border-right: 1px solid transparent;
    border-left: 1px solid #C3C3C3;
}

.tab-header-right button.active {
    border-left: 1px solid transparent;
    border-right: 1px solid #C3C3C3;
}

.tab-header button .tab-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    color: #666;
    cursor: pointer;
    vertical-align: middle;
}

.tab-header button .tab-close svg {
    width: 10px;
    height: 10px;
}

.tab-header button .tab-close svg line {
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.tab-header button .tab-close:hover {
    background-color: rgba(0, 0, 0, 0.15);
    color: #000;
}

.tab-header button .tab-close:active {
    background-color: rgba(0, 0, 0, 0.25);
}

.tab-content-container {
    overflow: hidden;
    border: 1px solid #C3C3C3;
    padding: 0;
    display: block;
    flex: 1;
}
/*
.tab-content {
    border: 1px solid #ccc;
    padding: 10px;
    display: none;
    flex: 1;
}

.tab-content.active {
    display: block;
}
*/
.draggable {
    cursor: move;
    user-select: none;
}

.tab-widget.vertical .tab-header {
    flex-direction: column;
}

.tab-widget.vertical .tab-content {
    order: 2;
}

.tab-widget.tab-header-bottom .tab-header {
    order: 2;
}

.tab-widget.tab-header-left {
    flex-direction: row;
}

.tab-widget.tab-header-left .tab-header button,
.tab-widget.tab-header-right .tab-header button {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
}

.tab-widget.tab-header-left .tab-header button .tab-close,
.tab-widget.tab-header-right .tab-header button .tab-close {
    margin-left: auto;
}

.tab-widget.tab-header-right {
    flex-direction: row;
}
