/***** GRID *****/

.-fb-grid {
    position: relative;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    display: grid;
    grid-template-rows: max-content auto max-content;
}

/***** HEADER *****/

.-fb-grid-header {
    display: grid;
    grid-template-columns: auto max-content;
    border: 0;
    box-sizing: border-box;
    padding-bottom: 8px;
}

.-fb-grid-header-filter {
    height: 100% !important;
    width: 100%;
    padding-left: 5px !important;
    box-sizing: border-box;
    border-style: solid !important;
    border-width: 1px !important;
}

.-fb-grid-header-filter::placeholder {
    font-style: italic;
}

.-fb-grid-header-button {
    display: inline-block;
    height: 24px;
    width: 24px;
    background-color: #FFFFFF;
    margin-right: 3px;
    border: 1px solid #CCCCCC;
    text-align: center;
    padding: 1px 0 0 1px;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    font-size: 19px;
}


/***** RESIZERS *****/

.-fb-grid-resizer,
.-fb-grid-resizer {
    position: absolute !important;
    top:0;
    z-index: 1000;
    opacity: 0;
    background-color: transparent;
}

.-fb-grid-resizer:hover,
.-fb-grid-resizer:hover {
    background-color: #666666;
    opacity: .3 !important;
}

/***** CONTENT *****/

.-fb-grid-content {
    position: relative;
    box-sizing: border-box;
    overflow: auto;
    border: 1px solid #CCCCCC;
    border-width: 1px 1px 1px 1px;
    background-color: #FFFFFF;
}

.-fb-grid-content > div {
    position: relative;
}

/***** CONTENT RESIZER *****/

.-fb-grid-resizer-content {
    height:100%;
    width:5px;
    left:175px;
    cursor:ew-resize;
}

/***** CATEGORY *****/

.-fb-grid-category {
    background-color:#EEEEEE;
}

.-fb-grid-category:last-child {
    border-bottom:1px solid #CCCCCC;
}

.-fb-grid-category-header {
    height: 29px;
    line-height: 29px;
    font-family: Arial;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    padding-left: 4px;
}

.-fb-grid-category-header-toggle {
    cursor: pointer;
    font-size: 20px;
    position: relative;
    top: 2px;
    left: -2px;
}

.-fb-grid-category-inputs {
    padding-left:25px;
    box-sizing:border-box;
    overflow:hidden;
}

/**** INPUT *****/

.-fb-grid-input {
    box-sizing: border-box;
    min-height: 25px;
    border: 1px solid #CCCCCC;
    border-right-width: 0;
    border-bottom-width: 0;
    background-color: #FFFFFF;
    position: relative;
    display: grid;
    grid-template-columns: 150px auto;
}
    
.-fb-grid-input:last-child {
    border-bottom-width: 1px;
}

.-fb-grid-input.-fb-grid-input-required > .-fb-grid-input-label {
    color: red;
}


/**** INPUT FILTER ****/

.-fb-grid-filtered .-fb-grid-input.-fb-filtered {
    display: none;
}

.-fb-grid-filtered .-fb-grid-input:not(.-fb-filtered):last-child {
    border-bottom: 1px solid #CCCCCC;
}

.-fb-grid-category:last-child .-fb-grid-input:last-child {
    border-bottom-width: 0;
}

/**** INPUT LABEL ****/

.-fb-grid-input-label {
    line-height: 25px;
    font-family: Arial;
    font-size: 13px;
    height:100%;
    padding-left:5px;
    border-right: 1px solid #CCCCCC;
    color: #39f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.-fb-grid-input-label.-fb-input-selected {
    background-color: #39f !important;
    color: #FFFFFF !important;
}

.-fb-grid-input-label:hover {
    background-color: #c9def5;
    color: #39f;
    cursor: pointer;
}

.-fb-grid-input-label-error {
    color: darkred;
    background-color: #fff0f0;
    background-repeat: no-repeat; 
    background-position: right 5px top 5px; 
    padding-right: 25px;
}

/**** INPUT EDITOR ****/

.-fb-grid-input-editor {
    height: 100%;
}

/**** FOOTER ****/

.-fb-grid-footer  {
    position: relative;
    height: 100px;
    box-sizing:border-box;
    overflow: hidden;
}

.-fb-grid-footer-content {
    position: absolute;
    inset: 0;
    padding: 10px;
    box-sizing: border-box;
    height: 100%;
    font-size: 13px;
    font-family: Arial;
    line-height: 18px;
    overflow-y: auto;
    border: 1px solid #CCCCCC;
    border-width: 0 1px 1px 1px;
    background-color: #f7f7f7;
}

.-fb-grid-footer-content-title {
    font-weight: bold;
}

/**** FOOTER RESIZER ****/

.-fb-grid-resizer-footer {
    height: 5px;
    width: 100%;
    left: 0;
    cursor: ns-resize;
}

.-fb-grid-input-variable {
    display: grid;
    grid-template-columns: auto max-content;
    height: 23px;
}

.-fb-grid-input-variable div:first-child {
    position: relative;
}

.-fb-grid-input-variable-value {
    height: 25px !important;
    width: 100%;
    box-sizing: border-box;
    border-width: 0 !important;
    padding-left: 5px !important;
}

.-fb-grid-input-variable-clear {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 0;
    height: 100%;
    width: 23px;
    box-sizing: border-box;
    background: none;
    border: none;
    padding: 0;
    max-height: 23px;
    font-family: "IcoFont";
    font-size: 18px;
    color: var(--button-text-color);
    line-height: 24px;
}

.-fb-grid-input-variable-clear:before {
    content: "\eee4";
}

.-fb-grid-input-variable-set {
    height: 100%;
    width: 23px;
    margin: 1px;
    box-sizing: border-box;
    border: none;
    padding: 0;
    max-height: 23px;
}

.-fb-grid-input-variable-set {
    height: 100%;
    width: 23px;
    margin: 1px;
    box-sizing: border-box;
    border: none;
    padding: 0;
    max-height: 23px;
}


.-fb-grid-input-variable-toggle {
    height: 100%;
    width: 23px;
    margin: 1px;
    box-sizing: border-box;
    background: none;
    border: none;
    padding: 0;
    max-height: 23px;
    border: 1px solid white;
    font-family: "IcoFont";
    font-size: 12px;
    color: var(--color-green-muted);
    border-color: var(--button-text-color);
}

.-fb-grid-input-variable-toggle.-fb-selected {
    background: none;
    color: var(--color-black);
    background-color: var(--color-green-muted);
}

.-fb-grid-input-variable-toggle.-fb-selected:hover {
    background: none;
    color: var(--color-black) !important;
    background-color: var(--color-green-muted) !important;
}

.-fb-grid-input-variable-toggle:before {
    content: "\ec04";
}
.-fb-layout-panels {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: #EEEEEE;
    background-color:#FFFFFF;
}

.-fb-layout-panels .-fb-layout-nav {
    position: absolute;
    top: 0;
    width: 200px;
    left: 0;
    bottom: 0;
    display: block;
    overflow: hidden;
    overflow-x: hidden;
    background-color: #eee;
}

.-fb-layout-panels .-fb-layout-tabstrip {
    position: absolute;
    top: 0px;
    right: 0;
    left: 0;
    bottom: 0;
    display: block;
    overflow: hidden;
    flex-wrap: nowrap;
}

.-fb-layout-panels .-fb-layout-tabs {
    display: block;
    box-sizing: border-box;
    position: absolute;
    flex-wrap: nowrap;
    overflow-x: hidden;
    border-color: #CCCCCC;
    border-style: solid;
    border-width: 0 1px 0 0;
    inset: 0;
}

.-fb-layout-panels .-fb-layout-tab {
    height: 35px;
    display: inline-flex;
    justify-content: left;
    align-items: center;
    justify-items: center;
    white-space: nowrap;
    min-width: 120px;
    box-sizing: border-box;
    padding: 0 10px 0 10px;
    flex-basis: content;
    width: 200px;
    text-overflow: ellipsis;
    overflow: hidden;
    border-color: #CCCCCC;
    border-style: solid;
    border-width: 0 0 1px 0;
    font-size: 12px;
    font-family: arial;
    text-decoration: none;
    color: #000000;
    position: relative;
}

.-fb-layout-panels .-fb-layout-tab:last-child {
    flex-grow: 1;
    border-color: #CCCCCC;
    border-style: solid;
    border-width: 0 0 1px 0;
}

.-fb-layout-panels .-fb-layout-tab > img {
    margin-left: 5px;
    display: none;
}

.-fb-layout-panels .-fb-layout-tab.-fb-error {
    color: #AA0000;
}

.-fb-layout-panels .-fb-layout-tab.-fb-error > img {
    display: inline;
}

.-fb-layout-panels .-fb-layout-tab.-fb-selected {
    background-color: #FFFFFF;
    border-right-width: 1px;
    border-right-color: #ededed;
    font-weight: bold;
}

.-fb-layout-panels .-fb-layout-tab.-fb-selected:focus {
    background-color: #FFFFFF;
    border-right-width: 1px;
    border-right-color: #EEEEEE;
    font-weight: bold;
    outline: none;
    text-decoration: none;
}

.-fb-layout-panels .-fb-layout-tab:not(.-fb-selected):hover {
    cursor: pointer;
}

.-fb-layout-panels .-fb-layout-tab:not(.-fb-selected):focus {
    outline: none;
    text-decoration: underline;
}

.-fb-layout-panels .-fb-layout-contents {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 200px;
}

.-fb-layout-panels .-fb-layout-content  {
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
}

.-fb-layout-panels .-fb-layout-group {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.-fb-layout-tabbed {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: #EEEEEE;
    background-color:#FFFFFF;
}

.-fb-layout-tabbed .-fb-layout-nav {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 30px;
    display: block;    
    overflow: hidden;
    white-space: nowrap;
    overflow-x: hidden;
}

.-fb-layout-tabbed .-fb-layout-tabstrip {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 35px;
    display: grid;
    grid-template-columns: auto max-content;
    overflow: hidden;
    white-space: nowrap;
    flex-wrap: nowrap;
    background: linear-gradient(180deg,  #ffffff 0%,#dddddd 100%);
}

.-fb-layout-tabbed .-fb-layout-tabs {
    box-sizing: border-box;  
    height: 30px; 
    flex-wrap: nowrap;
    overflow: hidden;
    border-color:#AAAAAA;
    border-style: solid;
    border-width: 0 0 0 0;
}

.-fb-layout-tabbed .-fb-layout-tabs-border {
    position: relative;
    border-top: 1px solid #AAAAAA;
    top: -3px;
}

.-fb-layout-tabbed .-fb-layout-tab,
.-fb-layout-nav-overflow-item {
        height: 100%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        justify-items: center;
        white-space: nowrap;
        min-width: 120px;
        box-sizing: border-box;
        padding: 0 10px 0 10px;
        flex-basis: content;
        width: auto;
        text-overflow: ellipsis;
        overflow: hidden;
        border-color: #CCCCCC;
        border-style: solid;
        border-width: 0 1px 1px 0;
        font-size: 12px;
        font-family: arial;
        text-decoration: none;
        color: #000000;
        position: relative;
    }

.-fb-layout-tabbed .-fb-layout-tab > img,
.-fb-layout-nav-overflow-item > img {
    margin-left: 5px;
    display: none;
}

.-fb-layout-tabbed .-fb-layout-tab.-fb-error,
.-fb-layout-nav-overflow-item.-fb-error {
            color: #AA0000;
        }

.-fb-layout-tabbed .-fb-layout-tab.-fb-error > img,
.-fb-error.-fb-error > img {
    display: inline;
    height: 16px;
    width: 16px;
}

.-fb-layout-tabbed .-fb-layout-tab.-fb-selected,
.-fb-layout-nav-overflow-item.-fb-selected {
    background-color: #FFFFFF;
    border-bottom-width: 0;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.-fb-layout-tabbed .-fb-layout-tab.-fb-selected:focus {
        background-color: #FFFFFF;
        border-bottom-width: 0;
        font-weight: bold;
    }

.-fb-layout-tabbed .-fb-layout-tabs div:last-child {
    flex-grow: 1;
    border-color: #CCCCCC;
    border-style: solid;
    border-width: 0 0 1px 0;
}

.-fb-layout-tabbed .-fb-layout-tab:not(.-fb-selected):focus {
    outline: none;
    text-decoration: underline;
}

.-fb-layout-tabbed .-fb-layout-tab.-fb-selected:focus {
        outline: none;
        text-decoration: none;
    }

.-fb-layout-tabbed .-fb-layout-tab:last-child {
    flex-grow: 1;
    border-color: #AAAAAA;
    border-style: solid;
    border-width: 0 0 1px 0;
}

.-fb-layout-tabbed .-fb-layout-tab:not(.selected):hover {
    cursor: pointer;
}

.-fb-layout-tabbed .-fb-layout-tab.selected {
    border-bottom: 1px solid white;
    height: 31px;
}

.-fb-layout-tabbed .-fb-layout-nav-overflow {
    display: grid;
    grid-template-columns: max-content;
    height: 30px;
    align-content: center;
    cursor: pointer;
    border-width: 0 0 1px 1px;
    border-style: solid;
    box-sizing: border-box;
    padding-top: 2px;
}

.-fb-layout-tabbed .-fb-layout-content  {
    position: absolute;
    top: 30px;
    right: 0;
    bottom: 0;
    left: 0;
}

.-fb-layout-tabbed .-fb-layout-group {
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
}

/**** NAV OVERFLOW ITEM ****/

.-fb-layout-nav-overflow-item {
    height: 30px;
    width: 100%;
    justify-content: initial;
    align-items: center;
    justify-items: initial;
    text-decoration: none !important;
    color: #000000;
}

.-fb-layout-nav-overflow-item:hover {
    color: #000000 !important;
    background-color: #c9def5;
}

.-fb-layout-nav-overflow-item:not(.-fb-error) {
    color: #000000;
}

.-fb-layout-nav-overflow-item.-fb-selected {
    border-bottom-width: 1px;
    font-weight: bold;
}

.-fb-layout-nav-overflow-item:last-child {
    border-bottom-width: 0;
}
.-fb-layout-simple {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: #EEEEEE;
    background-color: #FFFFFF;
}

.-fb-layout-simple .-fb-layout-content {
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
}