﻿

/* ############### */
/* ### 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 ### */
.SwfFrmBtn {
    text-shadow: -2px 2px 4px black;
    line-height: 18px !important;
    cursor: pointer !important;
    padding: 4px !important;
    margin: 2px;
    border: solid !important;
    border-color: var(--swf-form-page-btn-color, white) !important;
    border-width: 2px !important;
    border-radius: 25px !important;
}

    .SwfFrmBtn:focus {
        border-color: var(--swf-input-focus-border-color, RoyalBlue) !important; /* Change to your desired color */
        box-shadow: 0 0 0 0.2rem var(--swf-input-focus-border-color, RoyalBlue) !important; /* Optional shadow effect */
        background-color: var(--swf-input-focus-bg, #e1ff89) !important;
    }

    .btn:focus {
        border-color: var(--swf-input-focus-border-color, RoyalBlue) !important; /* Change to your desired color */
        box-shadow: 0 0 0 0.2rem var(--swf-input-focus-border-color, RoyalBlue) !important; /* Optional shadow effect */
        background-color: lightskyblue !important;
    }


/* ############### */
/* ### SwfCombo / Grid Combo ### */
.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;
    background-position: right .35rem center !important;
}

.dropdown-content {
    display: none;
    overflow: auto;
    border: 1px solid lightgray;
    z-index: 1;
}


.show {
    display: block;
}
/* ##################################### */
/* ### Swift Controls ### */
.swf-lable {
    padding: .350rem !important;
    font-weight: 600 !important;
}

.swf-control {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    flex: none !important;
    font-weight: 600 !important;
}


    .swf-control:focus {
        border-color: var(--swf-input-focus-border-color) !important; /* Change to your desired color */
        box-shadow: 0 0 0 0.2rem var(--swf-input-focus-border-color) !important; /* Optional shadow effect */
        background-color: var(--swf-input-focus-bg) !important;
    }

.grid_ctrl {
    padding-left: 4px !important;
    padding-right: 4px !important;
    padding-top: 1px !important;
    padding-bottom: 1px !important;
    font-weight: 600 !important;
}

    .grid_ctrl:not([type="checkbox"]) {
        min-height: 34px;
    }

    .grid_ctrl:focus {
        border-color: var(--swf-input-focus-border-color) !important; /* Change to your desired color */
        box-shadow: 0 0 0 0.2rem var(--swf-input-focus-border-color) !important; /* Optional shadow effect */
        background-color: var(--swf-input-focus-bg) !important;
    }
/* ##################################### */
/* ### DataGridComponent/SwfDataGrid ### */
.fix-table { /* Used in Form Design */
    table-layout: fixed;
    width: 100%;
    white-space: nowrap;
}

.table {
    table-layout: fixed;
}

.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%;
    }

        .grid-table tbody.autoSize tr {
            display: table;
            width: 100%;
            table-layout: fixed;
        }

        .grid-table tbody.fixSize tr {
            width: max-content;
        }

        .grid-table tbody tr {
            width: 100%;
            table-layout: fixed;
        }

        .grid-table tbody td {
            word-break: break-word;
            font-weight: var(--swf-input-font-weight);
            align-content: center;
        }

.active-row {
    /*background-color: rgb(220, 220, 255, 0.2) !important;*/
    box-shadow: inset -1px 3px 6px 0 rgba(0, 0, 0, .2);
    border: 2px solid var(--swf-grid-focus-row-border, skyblue) !important;
}
.active-row tr:hover {
    background-color: var(--swf-grid-focus-row-bg, #e7eeff) !important;
    border: solid var(--swf-grid-focus-row-border, skyblue) !important;
}

/*
table {
    page-break-after: auto;
}

tr {
    page-break-inside: avoid;
    page-break-before: auto
}

td {
    page-break-inside: avoid;
    page-break-before: auto
}
*/
.tableHead {
    background-image: linear-gradient( #b0c4de, white 20%, #bcd4e6 );
    font-weight: bold;
}

    .tableHead th,
    .tableHead td {
        border: solid 1px gray !important;
    }

    .tableHead tfoot {
        min-height: 35px;
    }
/* ##################################### */
/* ### Drop Down List ### */
.dropdownTable {
    border-collapse: collapse !important;
}

    .dropdownTable td,
    .dropdownTable th {
        border: 1px solid lightgray !important;
    }

    .dropdownTable tr:nth-child(odd) {
        background-color: #f9f9f9 !important;
    }

    .dropdownTable tr:nth-child(even) {
        background-color: #ffffff !important;
    }
/* 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;
}

.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 */
}

.no-sort {
    display: none;
}
/* ##################################### */
/* --------- 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 {
    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 );
}
