﻿

/* ############### */
/* ### SwfForm ### */
.h70 {
    height: 70%;
}

.modal-content {
    width: max-content;
}

.control-sidebar {
    width: 50% !important;
}

h3 {
    font-family: 'Verdana', 'Geneva', 'Tahoma', 'sans-serif';
    font-size: 1.2em;
}


.estilo {
    width: 100%;
    border-width: 2px;
    border-style: solid;
    border-top: none;
    border-color: dodgerblue;
}

.fadeBorder {
    border-left: solid 2px dodgerblue;
    border-right: solid 2px dodgerblue;
    border-bottom: solid 2px dodgerblue;
    border-top: none;
}

.fadein {
    height: 0px;
    transition: height;
    transition-delay: 100ms;
    transition-duration: 800ms;
    border-bottom: none;
}

.fadeout {
    height: 68px;
    transition: height;
    transition-delay: 100ms;
    transition-duration: 1000ms;
    border-bottom: solid 2px dodgerblue;
}

.round-border {
    border: solid 1px dodgerblue;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.StartRow {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
}

.CenterCol {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.CenterRow {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

table {
    margin-bottom: 0px !important;
}

.InvBanner {
    height: 30px;
    color: black;
    margin: 3px;
    margin-left: 10px;
}


/* ################# */
/* ### SwfReport ### */

/*.round-border {
    border: solid 1px dodgerblue;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}*/

.SwfFrmBtn {
    text-shadow: -2px 2px 4px black;
    line-height: 18px;
    cursor: pointer !important;
    padding: 4px;
    margin: 2px;
    border: solid !important;
    border-color: white !important;
    border-width: 2px !important;
    border-radius: 25px;
}


/* ############### */
/* ### SwfForm ### */

.allSelectCmb {
    border-bottom-style: solid;
    border-bottom-color: lightgray;
    border-block-width: 1px;
    place-items: start;
}

.cmb Div:hover {
    background-color: #cce0ff;
}

.dropdownModel {
    position: absolute;
    background-color: white;
    z-index: 999;
}

.dropbtn {
    position: relative;
    text-align: left;
    text-wrap-mode: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-content {
    display: none;
    overflow: auto;
    border: 1px solid lightgray;
    z-index: 1;
}

    .dropdown-content table {
        display: block;
        text-decoration: none;
    }

.show {
    display: block;
}

.fix-table { /* Used in Form Design */
    table-layout: fixed;
    width: 100%;
    white-space: nowrap;
}

.table {
    table-layout: fixed;
}

/* ##################################### */
/* ### DataGridComponent/SwfDataGrid ### */
.grid-table {
    --bs-table-bg: transparent !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow-x: auto; /* horizontal scroll */
    overflow-y: hidden;
    text-wrap: wrap;
}

    .grid-table tbody {
        flex: 1 1 auto;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-gutter: stable; /* reserves scrollbar space */
        height: 100%;
        font-weight:normal;
    }

        .grid-table tbody.autoSize tr {
            display: table;
            width: 100%;
            table-layout: fixed;
        }
        .grid-table tbody tr {
            width: 100%;
            table-layout: fixed;
        }

.tableHead {
    background-image: linear-gradient( #b0c4de, white 20%, #bcd4e6 );
    font-weight:bold;
}
    .tableHead thead,
    .tableHead th,
    .tableHead tr,
    .tableHead td {
        border: solid 1px gray !important;
    }

    .tableHead tfoot {
        min-height: 35px;
    }

/*.div-content {
    overflow-x: auto;
    overflow-y: hidden;
}*/

.grid_ctrl {
    padding: 0px;
}
/*
.tgbody {
    display: block;
    width: max-content;
    overflow-y: auto;
    overflow-x: hidden;
    font-weight: normal;
}*/

/*x*/
/*.table-wrapper {
    height: 100%;*/ /* parent decides total height */
/*display: flex;
    flex-direction: column;
}

.custom-table {
    border-collapse: collapse;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;*/ /* OR fixed px / calc() */
/*overflow-x: auto;*/ /* horizontal scroll */
/*overflow-y: auto;*/ /* vertical scroll (optional) */
/*}

    .custom-table table {
        width: max-content;*/ /* table expands beyond screen when many columns */
/*}*/

/*.custom-table thead {
        flex: 0 0 auto;*/ /* header auto height */
/*}

    .custom-table tfoot {
        flex: 0 0 auto;*/ /* footer auto height */
/*}*/

/*.custom-table tbody {
        flex: 1 1 auto;*/ /* take remaining height */
/*display: block;
        scrollbar-gutter: stable !important;*/ /* reserves scrollbar space */
/*}

        .custom-table tbody tr {
            display: table;
            width: 100%;
            table-layout: fixed;
        }

    .custom-table thead tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .custom-table tfoot tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }*/


/* Hide input number arrow */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.number[data-value^="-"]:after {
    color: red;
}

td {
    word-break: break-word;
}
/*
th {
    text-align: center !important;
}
*/
.clickable {
    cursor: pointer;
}

.sort-th {
    cursor: pointer;
    position: relative; /* important */
    padding-right: 16px; /* room for icon */
    overflow: visible !important;
}

.sort {
    position: absolute;
    right: -1px; /* horizontal offset */
    bottom: -4px; /* vertical offset */
    font-size: 18px; /* small icon */
    font-weight: bolder;
    pointer-events: none; /* click still hits header */
    z-index: 10; /* icon always visible */
}

.sort-th:hover .sort {
    font-size: 20px; /* small icon */
}
/*
.asc {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}

.desc {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}*/

.no-sort {
    display: none;
}

table {
    page-break-after: auto;
}

tr {
    page-break-inside: avoid;
    page-break-before: auto
}

td {
    page-break-inside: avoid;
    page-break-before: auto
}


/* ##################################### */
/* --------- TAB UI ------------ */
/* Container */
.swf-tab-container {
    border-top: 0;
}

/* Tab list */
.swf-tabs {
    border-bottom: 2px solid var(--bs-border-color);
    margin-bottom: 0;
    gap: .25rem;
}

/* Tab button */
.swf-tab-link {
    color: #000 !important;
    font-weight: 500;
    border-radius: .5rem .5rem 0 0 !important;
    border: none;
    padding: 5px 10px 5px 10px;
    background-color: ghostwhite;
}

    /* Hover highlight */
    .swf-tab-link:not(.active):not(.disabled):hover {
        background: var(--bs-primary-bg-subtle);
        color: var(--bs-primary) !important;
    }

    /* ACTIVE — clearly highlighted tab */
    .swf-tab-link.active {
        color: var(--bs-primary) !important;
        font-weight: 700;
        margin-bottom: -2px !important; /* aligns to body content */
        box-shadow: 0 -2px 6px rgba(0, 0, 0, .18) inset;
        border: solid 1px lightblue;
    }

    /* Disabled tab */
    .swf-tab-link.disabled {
        opacity: .5;
        cursor: not-allowed;
    }

/* Tab content area */
.tab-pane-wrapper {
    border: 1px solid var(--bs-border-color);
    border-radius: 0 0 .5rem .5rem;
    padding: 0.30rem;
}



/* ##################################### */
/* --------- SplitContainer UI ------------ */
.split-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0;
}

    .split-container.vertical {
        flex-direction: row;
    }

    .split-container.horizontal {
        flex-direction: column;
    }

.panel {
    overflow-y: auto;
    overflow-x:hidden;
}

.splitter {
    /*background-image: linear-gradient( gray, white 20%, darkgray );*/
    /*border-top: solid 1px;
    border-bottom: solid 1px;*/
    transition: background .2s;
    z-index: 20;
}

.split-container.vertical .splitter {
    width: 5px;
    cursor: col-resize;
}

.split-container.horizontal .splitter {
    height: 5px;
    cursor: row-resize;
}

.splitter.vertical:hover {
    width: 7px;
    background-image: linear-gradient(gray, darkgray );
}
.splitter.horizontal:hover {
    height: 70px;
    background-image: linear-gradient(to left, red, darkgray );
}
