/*
    SELECTION
*/

* {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

div[wrapped-widget], input, input *, select, select *, span.select2-selection__rendered,
table th:not(.tdatagrid_action), table td:not(.action), table td:not(.action) * {
	-webkit-user-select: text !important;
	-moz-user-select: text !important;
	-ms-user-select: text !important;
	user-select: text !important;
}


/*
    Photo Profile
*/
.splash-user-profile-photo {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 100px;
    margin: auto;
    background: #33373d;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    border: 3px solid var(--main-color);
}

.splash-user-photo {
    width: 100px !important;
    height: 100px !important;
}
/*
    Dialog
*/
.dialog-priority {
    z-index: 99999;
}
.dialog-priority pre {
    user-select: all;
}

/*
    Sub-menu
*/
.master-menu-content .container-submenu ul li a {
    text-wrap: balance;
}

/*
    RightPanel
*/
#adianti_right_panel .container-part {
    background-color: var(--panel-background) !important;
}

/*
    Header Action (Ocultar Texto BTN)
*/
@media (max-width: 500px) {
    .card-header .header-actions .btn span {
        font-size: 0 !important;
    }
    
    .card-header .header-actions .btn span i {
        font-size: initial;
    }
}

/*
    Dialog
*/
.ui-widget-overlay.ui-front {
    z-index: 1999 !important;
}

/*
    BContainer
*/
.bContainer-fieldset.bContainer-accordion .bContainer-title { /* Correção Bug Width Titulo */
    width: calc(100% + 2px) !important;
}

.bContainer-fieldset {
    border-radius: var(--panel-border-radius) !important;
    /*border: 1px solid var(--panel-header-background) !important;*/
}

.bContainer-fieldset .bContainer-title {
    border-radius: var(--panel-border-radius) var(--panel-border-radius) 0px 0px !important;
    padding: 3px 9px !important;
    background-color: var(--panel-header-background);
}

.bContainer-fieldset.bContainer-accordion-hide .bContainer-title {
    border-radius: var(--panel-border-radius) !important;
}

/*
    ArrowSteps
*/
.arrow_steps {
    overflow-y: hidden;
}

.arrow_steps .step span {
    font-weight: bold;
    
}

/*.arrow_steps .step.preview-current span, .arrow_steps .step.current span {
   text-shadow: -1px -1px 0px #000, -1px 1px 0px #000, 1px -1px 0px #000, 1px 0px 0px #000;
}*/

.arrow_steps .step span {
    font-size: 14px;
    flex-wrap: wrap;
    /*color: #000;*/
    white-space: pre-line;
    text-align: left;
    /*text-shadow: -1px -1px 0px #FFF, -1px 1px 0px #FFF, 1px -1px 0px #FFF, 1px 0px 0px #FFF;*/
}

@media (max-width: 850px) {
    .arrow_steps {
        display: flex;
        flex-wrap: wrap;
        height: 100% !important;
        overflow: hidden;
    }

    .arrow_steps .step {
        text-align: start;
        padding: 4px;
        width: calc(100% - 20px);
        border-top-left-radius: unset !important;
        border-bottom-left-radius: unset !important;
        border-top-right-radius: unset !important;
        border-bottom-right-radius: unset !important;
    }

    .arrow_steps .step:last-child {
        align-items: baseline;
        height: 54px;
    }

    .arrow_steps .step:before {
        display: none;
    }

    .arrow_steps .step:last-child:after {
        border-bottom: inset transparent;
        border-top: inset transparent;
        border-top-width: 27.5px;
        border-bottom-width: 27.5px;
        right: -18.333333333333px;
    }
}

/*
    FileManager
*/
.tfile_link_wrapper {
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: nowrap;
}

/*
    Treeview
*/
.bc_treeview_col .tab-pane {
    display:flex;
    flex-direction: column;
}

.treeview, .treeview ul {
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: var(--field-background) !important;
    color: var(--text-color) !important;
}

/*
    Datagrid Customs
*/
.tdatagrid_col {
    white-space: normal;
    position: relative;
	vertical-align: middle !important;
	padding: 0 10px 0 10px !important;
}

.tdatagrid_col span {
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    right: -10;
	padding: 5px 0; 
}

.tdatagrid_group {
    background-color: var(--tr-odd-background) !important;
}

.tdatagrid_group[data-toggle].collapsed .datagrid-group-arrow:after,
.datagrid-group-arrow[data-toggle].collapsed:after {
    content: "\f0fe"; 
    
}
.tdatagrid_group[data-toggle]:not(.collapsed) .datagrid-group-arrow:after,
.datagrid-group-arrow[data-toggle]:not(.collapsed):after {
    content: "\f146";
}
.datagrid-group-arrow{
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-weight: 500;
	cursor: pointer;
	color: var(--table-body-color);
}

[class^="tdatagrid_group_row"] {
    background-color: var(--tr-even-background) !important;
}

.dg-progress-bar-text-medium tbody .progress-bar * {
    font-size: var(--font-size) !important;
}

/*
    Datagrid Footer Fixed
*/
.table-fixed-footer { 
    overflow-y: auto; 
    height: 200px; 
}

.table-fixed-footer tfoot td {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    z-index:1;
}

.table-fixed-footer tfooter {
    background-color: #fff;
}

.table-fixed-footer thead tr {
    background-color: #fff;
}

/*
    Datagrid Fixed
*/

.table-fx table {
    width: 100%;
    border-collapse: collapse;
}
.table-fx thead {
    display: block;
}
.table-fx tbody {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
}
.table-fx thead tr, .table-fx tbody tr {
    display: inline-table;
    width: 100%;
    table-layout: fixed;
}
.table-fx .tdatagrid_action, .table-fx .tdatagrid_cell.action {
    width: 30px;
    padding: 0;
    margin: 0;
}


/*
    Carousel (Bootstrap)
*/
.carousel-control-next, .carousel-control-prev {
    width: 5% !important;
}
.carousel-control-next-icon, .carousel-control-prev-icon {
    filter: invert(0.6);
}

/*
    Rating System (Criado)
*/
.h-rating span.fa-star.checked {
    color: orange;
}

/*
    Search System (Criado)
*/
@media (min-width: 768px) {
    [class*="search-"].collapse {
        max-width: 300px;
    }
}

/*
    jExcel (jspreadsheet)
*/
.jexcel_tabs .jexcel_tab_link.selected {
    background-color: var(--main-color) !important;
    color: white !important;
}

.jexcel_tabs > .jexcel_tab_header {
    display: flex;
    white-space: nowrap;
}

.jexcel_tabs > .jexcel_tab_header > .jexcel_tab_links {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
}

table.jexcel > thead > tr {
    /*background-color: #fff;*/
    background-color: var(--field-background);
}

table.jexcel > thead > tr > td {
    text-align: center !important;
}

.jexcel > thead > .jexcel_nested > td:nth-child(2),
.jexcel td:nth-child(23) {
    border-right: 1px solid var(--table-header-border-color) !important;
}

.jexcel > thead > .jexcel_nested > td {
    border-bottom: 1px solid var(--table-header-border-color) !important;
}

.jexcel > thead > tr > td:nth-child(n+24), 
.jexcel > tbody > tr > td:nth-child(n+24) {
    /*background-color: #22b57e !important;*/
    color: red !important;
}

.jexcel > thead > tr > td:nth-child(n+24) {
    background-color: #ffebfa !important;
}

.jexcel.bordered > tbody * {
    border: 1px solid #000;
}

.jexcel_tab_link_div {
    display: flex;
    gap: 5px;
}

/*
    ProjetoFPForm
*/
div[page-name="ProjetoFPForm"] .total-label {
    border: 1px solid rgba(0, 0, 0, .5);
	border-bottom: 0;
    padding: 2px;
	margin: 0px;
}

/*
    NetworkMakerForm
*/
div[page-name="NetworkMakerForm"] .filtro {
    color: var(--field-color);
    background-color: var(--field-background);
    overflow: auto;
    max-height: 250px;
}

/*
    Plano de Contas
*/
.bc_treeview_col .fb-inline-field-container,
.bc_treeview_col .card.panel,
.bc_treeview_col .form-horizontal,
.bc_treeview_col .card-body,
.bc_treeview_col .tab-content,
.bc_treeview_col .tab-pane,
.bc_treeview_col .form-group:last-child {
    height: 100% !important;
}

/*
    HPessoaSugestoesEMelhorias
*/
.header-profile-photo-kanban {
    min-width: 35px;
    min-height: 35px;
    border: 2px solid var(--main-color);
    border-radius: 100px;
    background-repeat: no-repeat !important;
    background-size: cover!important;
    margin-right: 4px;
}

div[page-name="HPessoaSugestoesEMelhoriasKanbanView"] .kanban-stage { /* Largura reduzida em 30% */
    max-width: 210px !important;
    min-width: 210px !important;
    height: auto;
    align-self: stretch;
}

div[page-name="HPessoaSugestoesEMelhoriasKanbanView"] .kanban-item {
    width: 100%;
}

div[page-name="HPessoaSugestoesEMelhoriasKanbanView"] .kanban-stage > .kanban-item-sortable {
    height: 100%;
}

div[page-name="KanbanHPessoaSugestoesEMelhoriasForm"] > .card.panel > .card-header.panel-heading {
    position: fixed;
    z-index: 9999;
    width: -webkit-fill-available;
}

div[page-name="KanbanHPessoaSugestoesEMelhoriasForm"] > .card.panel > form.form-horizontal {
    margin-top: 40px;
}

/*
    Dashboard Icon
*/
.fa-receita-federal {
    content: url('../../../images/icon_receita_federal.png');
    display: block;
    width: 35px;
    height: 30px;
    margin: auto;
}

/*
    Database Tree
*/
div[page-name="DatabaseForm"] .left-container {
    min-height: 40vh !important;
}
div[page-name="DatabaseForm"] .left-container > div {
    height: 100%;
}
@media (min-width: 768px) {
    div[page-name="DatabaseForm"] .right-container {
        position: fixed;
        right: 20px;
        max-width: 30vw;
    }
}
/*
    SystemSQLPanel
*/
div[page-name="SystemSQLPanel"] .tdatagrid_cell {
    padding: 10px !important;
    text-align: center;
    min-width: 60px;
}
/*
    Pages View (Titles / Outputs)
*/
.col-view-title > div:first-child {
    background-color: var(--panel-header-background) !important;
    border-radius: 8px;
    padding: 4px 8px;
    min-height: 32px;
    width: 100%;
}
.col-view-title > div:first-child * {
    color: #FFF;
}

.col-view-text > div:last-child {
    /*border: 0.1px solid rgba(0,0,0, 0.3);*/
    border-radius: 8px;
    /*padding: 4px 8px;*/
    min-height: 32px;
    width: 100%;
}

/*
    Template System Warnings
*/
.ball-notice-warning[data-count="0"] {
    display: none;
}
.ball-notice-warning
{
    background: #ffc107;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 100px;
    flex-shrink: 0;
    font-size: 10px;
    text-align: center;
    line-height: 19px;
    position: absolute;
    padding: 0;
    right: -5px;
    top: -1px;
}
/*
    Criado Editado
*/
.tabpanel_bc_criado_editado {
    padding-bottom: 0 !important;
    padding-top: 5px !important;
}

label  {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
    Dropdown
*/
.btn-group > .dropdown-menu {
    max-height: 35vh;
    overflow: hidden scroll;
}

/*
    SelectBox2
*/
.select2-dropdown {
    background: var(--field-background) !important;
}

/*
    Kanban
*/
.kanban-item-content {
    color: #000;
}

/*
    Header Actions
*/
.datagrid-header-actions .datagrid-header-actions-left-actions:nth-child(1) {
    align-content: baseline;
}
.datagrid-header-actions .datagrid-header-actions-left-actions:nth-child(2) {
    justify-content: end;
}

/*
    List Box Info
*/
.list-box {
    text-align: center;
    background: var(--button-background);
    color: var(--button-text-color);
    border-radius: var(--button-border-radius);
    border: 1px solid var(--button-border);
    padding: var(--button-padding);
}
.list-box-container {
    display: flex;
    flex-wrap: nowrap;
    text-wrap: nowrap;
    gap: 0.4rem;
    
}
.list-box-left {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    text-align: right;
}
.list-box-right {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    text-align: right;
}
.wm-300 {
    max-width: 300px;
}

/*
disabled field
*/
input:disabled, select:disabled, .flatpickr-input:disabled, span.select2:disabled, span.select2.select2-container--disabled {
    background-color: var(--field-disabled-background) !important;
    border-color: var(--field-disabled-border) !important;
    color: var(--field-disabled-text-color) !important;
    opacity: 0.6 !important;
}

/*
    Geral
*/
.tbreadcrumb {
    padding-bottom: 0;
    margin-bottom: 0;
}

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    padding-right: 7px;
    padding-left: 7px;
}

.card {
    margin-bottom: 0 !important;
}

.no-border * {
    border: 0 !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: var(--field-disabled-background) !important;
    cursor: default;
}
.card-title-label > .card-header, .card-title-label > .card-header * {
   background: transparent !important;
   font-weight: 800;
   color: #000;
}

[wrapped-widget="tdatetime"] {
    min-width: 10px !important;
    width: 100% !important;
}


@media (max-width: 768px) {
    .onlydesk {
        display: none;
    }
}

@media (min-width: 768px) {
    .onlymob {
        display: none;
    }
}

/* Hide/Show */
.div-except:not(.show) {
    display: none !important;
}