﻿/**:focus-visible {
    outline: 4px dashed black;
}
*/

:root {
    --bs-header-bg-color: rgb(213,222,238);
    --bs-header-font-color: #012152;
}

mark {
    padding: 0;
    background-color: #ff000050;
}

.v4-sheet-wrapper {
    overflow: hidden;
    box-sizing: content-box;
    display: flex;
    flex-direction: column;
}

.v4-sheet-wrapper-header {
    overflow: hidden;
    line-height: 33px;
    min-height: 35px;
    background-color: var(--bs-header-bg-color);
    color: var(--bs-header-font-color);
}

    .v4-sheet-wrapper-header td {
        border-color: #B0B0B0;
    }

.v4-sheet-wrapper-body {
    flex: 1;
    overflow: auto;
    line-height: 30px;
    color: darkslategray;
    /*--scrollbar-width: calc(100vw - 100%);*/ /* Get scroll bar width on the body */
}

.v4-header-adjust { /* Added column in the header with width = scrollbar width */
    /*width: calc(100vw - var(--scrollbar-width));*/
    width: 17px;
}

.v4-sheet-wrapper-body td {
    border-color: #ebebeb;
    border-left-color: transparent;
    border-right-color: transparent;
}

.v4-sheet-table {
    table-layout: fixed;
    border: 1px solid lightgray;
    border-collapse: collapse;
}

    .v4-sheet-table td {
        /*position: relative;*/
        font-family: 'Roboto', sans-serif;
        border-width: 1px;
        border-style: solid;
        vertical-align: middle;
        /* overflow-wrap: break-word; */ /*on one line*/
        overflow: hidden; /*hide overflow text*/
        text-overflow: ellipsis; /* too long sentence are ended with ... */
        white-space: nowrap; /* one line */
        max-width: 1px; /* make ellipsis aligned on the right */
    }

        .v4-sheet-table td:focus {
            /*outline: none;*/ /* remove tabindex border*/
            outline-color: lightblue;
        }

.v4-sheet-grid-body {
    display: flex;
}

.v4-sheet-grid-header {
    display: grid;
    grid-template-columns: calc(100% - 5px) 5px;
}

.v4-sheet-grid-body {
    display: grid;
    grid-template-columns: 2px calc(100% - 2px);
}



.v4-sheet-header-normal {
    padding-left: 2px;
    flex: 0 0 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 1.1em;
    text-align: center;
}

.v4-sheet-table-resize {
    flex: 0 0 5px;
    cursor: col-resize;
    /*    margin-left: -2px;*/
}

    .v4-sheet-table-resize:hover {
        background-color: red;
    }

.v4-sheet-noselect {
    user-select: none;
    flex: 1;
}

.v4-sheet-table-color {
    flex: 0 0 2px;
    user-select: none;
}

.v4-sheet-table-normal {
    padding-left: 2px;
}

.v4-sheet-table-current {
    background-color: #F4B896;
    /*border-width: 1px;*/
    box-shadow: inset 0px 0px 0px 1px #000; /*to avoid change box size*/
    overflow: hidden; /*hide overflow text*/
    text-overflow: ellipsis; /* too long sentence are ended with ... */
    white-space: nowrap; /* one line */
    padding-left: 2px;
}

.v4-sheet-table-selected {
    background-color: #F5DBB0;
    /*border-width: 1px;*/
    box-shadow: inset 0px 0px 0px 1px #000; /*to avoid change box size*/
    overflow: hidden; /*hide overflow text*/
    text-overflow: ellipsis; /* too long sentence are ended with ... */
    white-space: nowrap; /* one line */
    padding-left: 2px;
}

.v4-sheet-table-row-selected {
    background-color: #F2EEE8;
    border-width: 0px;
    overflow: hidden; /*hide overflow text*/
    text-overflow: ellipsis; /* too long sentence are ended with ... */
    white-space: nowrap; /* one line */
    padding-left: 2px;
}

.v4-sheet-input {
    border: none;
    outline-width: 0;
    margin: 0;
    padding: 0 0 0 2px;
    box-shadow: inset 0 0 0 2px #5292f7;
    width: 100%;
    box-sizing: border-box;
}

.v4-sheet-nav-item {
    line-height: 0.8em;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
}

.v4-tabsheet-flex {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.v4-tab-flex {
    display: flex;
}

.v4-tab-header {
    flex-basis: 30px;
    display: block;
}

.v4-tab-name {
    flex: 1;
}

.v4-tab-option {
    min-width: 25px;
    justify-content: right;
    text-align: right;
}

.dropdown {
    position: absolute;
    display: inline-block;
    right: 0.4em;
}

.dropdown-content {
    display: none;
    position: relative;
    margin-top: 60px;
    background-color: #f9f9f9;
    min-width: 160px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

.dropdown a:hover {
    background-color: #f1f1f1
}

/**
 * Tabs
 */
.tabs {
    display: flex;
    flex-wrap: wrap; /* make sure it wraps*/
}

    .tabs label {
        order: 1; /* Put the labels first display: block;*/

        padding: 10px 10px 0px 10px;
        margin-right: 0.2rem;
        cursor: pointer;
        background: lightgrey;
        font-weight: bold;
        transition: background ease 0.2s;
    }

    .tabs .tab {
        order: 99;
        /*Put the tabs last flex-grow: 1;*/
        width: 100%;
        display: none;
        padding: 1rem;
        background: #fff;
    }

    .tabs input[type="radio"] {
        display: none;
    }

        .tabs input[type="radio"]:checked + label {
            background: #fff;
        }

            .tabs input[type="radio"]:checked + label + .tab {
                display: block;
            }

    .tabs .filter {
        color: red;
        margin: 5px;
        background: green;
    }

@media (max-width: 45em) {
    .tabs .tab,
    .tabs label {
        order: initial;
    }

    .tabs label {
        width: 100%;
        margin-right: 0;
        margin-top: 0.2rem;
    }
}
