/* here you can put your own css to customize and override the theme */

/***
Rounded Portlets
***/
/*
.portlet {
	border-radius: 4px !important;
}

.portlet .portlet-title {
	border-radius: 4px 4px 0px 0px !important;
}

.portlet .portlet-body,
.portlet .portlet-body .form-actions  {
	border-radius: 0px 0px 4px 4px !important;
}
*/

/*
Change Quick Sidebar Width
*/

/*
.page-quick-sidebar-wrapper {
  right: -370px;
  width: 370px;
}

.page-quick-sidebar-open.page-quick-sidebar-push-content .page-sidebar-wrapper {
  margin-left: -370px;
}

.page-quick-sidebar-open.page-quick-sidebar-push-content .page-footer {
  margin-right: 370px;
  margin-left: -370px;
}

.page-sidebar-reversed.page-quick-sidebar-open.page-quick-sidebar-push-content .page-sidebar-wrapper {
  margin-right: 370px;
}

.page-quick-sidebar-open.page-quick-sidebar-push-content.page-quick-sidebar-full-height .page-header {
  margin-left: -370px;
}

.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-list {
  width: 370px !important;
}

.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item {
  width: 370px !important;
  margin-left: 370px;
}

.page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-content-item-shown .page-quick-sidebar-list {
  margin-left: -370px;
}
*/

/* ----------------------------- */
/* ESTILOS CRIADOS PELA CEBI     */
/* ----------------------------- */

#loading-bar .bar {
    height: 5px;
}

#loading-bar .peg {
    height: 5px;
}

.equal {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

    .equal > div[class*='col-'] {
        flex: 1 1 auto;
        display: flex;
    }

.panel.panelEqualHeight {
    flex: 1 0 100%;
}

.page-header.navbar .page-logo .logo-default {
    margin: 11px 0 0 0;
}

.panel-heading .panel-icon {
    float: right;
}

a.optionsIcon {
    font-size: 20px !important;
    text-decoration: none;
}

.form-condensed .form-group {
    margin-bottom: 2px;
}

.table-clickable {
    cursor: pointer;
}

.badgePendencia {
    bottom: 70%;
    left: 68%;
    position: absolute;
    z-index: 3;
}

.textDecorN:hover {
    text-decoration: none;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.horizontal-form .form-group .form-control-static {
    display: block;
    margin: 0 0 15px 0;
    padding: 0;
    color: #6F8A8B;
}

.form-horizontal .form-group .form-control-static {
    color: #6F8A8B;
}

.ngn { 
    z-index: 99999; 

}

.blockUI.blockOverlay { 
    z-index: 99997 !important; 
} 

.blockUI.blockMsg { 
    z-index: 99998 !important; 
}

/* Classes que alteram o plugin UI-Grid para se aproximar do template CEBI */

.ui-grid-top-panel, /* header da tabela */
.ui-grid-footer-panel, /* footer da tabela */
.ui-grid-row .ui-grid-cell.ui-grid-row-header-cell, /* lateral da tabela */
.ui-grid-menu-button { /* menu da tabela */ 
    background-color: #fff;
}

.ui-grid-top-panel, /* header da tabela */
.ui-grid-tree-header-row,
.ui-grid-footer-panel {
    font-weight: 600 !important;
}

.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}

.ace_editor { height: 200px; }

#editor {
   font-family: 'consolas';
}

td.table-options > button {
    margin-right: 0px !important;
    width: 40px;
}

td.table-options.table-options-column > button {
    margin-bottom: 3px;
}

td.table-options.table-options-column > button:last-child {
    margin-bottom: 0px;
}

/*----------------------------------------- CHAT -----------------------------------------*/

/* ============================================================
   cbChat � Estilos do componente de chat IA
   Prefixo: cbChat.<NOMEDACLASSE>
   ============================================================ */

/* ----------------------------------------------------------
   Bot�o flutuante
   ---------------------------------------------------------- */
.cbChat-botao {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e90ff, #187bcd);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    transition: all 0.2s ease;
}

    .cbChat-botao:hover,
    .cbChat-botao--hover {
        transform: scale(1.08);
    }

/* Bolinha de notifica��o */
.cbChat-notificacao {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: #ff3b30;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* ----------------------------------------------------------
   Caixa do chat
   ---------------------------------------------------------- */
.cbChat-caixa {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 320px;
    height: 420px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
}

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */
.cbChat-header {
    padding: 12px;
    background: linear-gradient(135deg, #1e90ff, #187bcd);
    color: #fff;
    font-weight: bold;
}

/* ----------------------------------------------------------
   �rea de mensagens
   ---------------------------------------------------------- */
.cbChat-mensagens {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #fafafa;
}

/* Wrapper de cada mensagem */
.cbChat-mensagem-wrapper {
    display: flex;
    margin-bottom: 8px;
}

/* Variantes de alinhamento do wrapper */
.cbChat-mensagem-wrapper--usuario {
    justify-content: flex-end;
}

.cbChat-mensagem-wrapper--agente {
    justify-content: flex-start;
}

.cbChat-mensagem-wrapper--sistema {
    justify-content: center;
}

/* Coluna interna (empilha data + bal�o) */
.cbChat-mensagem-coluna {
    display: inline-flex;
    flex-direction: column;
    max-width: 75%;
}

.cbChat-mensagem-coluna--usuario {
    align-items: flex-end;
}

.cbChat-mensagem-coluna--agente {
    align-items: flex-start;
}

/* Data / timestamp */
.cbChat-mensagem-data {
    font-size: 10px;
    opacity: 0.6;
    margin-bottom: 2px;
}

.cbChat-mensagem-data--usuario {
    text-align: right;
}

.cbChat-mensagem-data--agente {
    text-align: left;
}

/* Bal�o */
.cbChat-balao {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.2;
    word-break: break-word;
    border-radius: 12px;
}

.cbChat-balao--usuario {
    background: #1890ff;
    color: #fff;
    text-align: right;
}

.cbChat-balao--agente {
    background: #f1f1f1;
    color: #000;
    text-align: left;
}

.cbChat-balao--sistema {
    background: #e6f4ff;
    color: #000;
    text-align: left;
}

/* Texto dentro do bal�o */
.cbChat-balao-texto {
    white-space: pre-line;
    word-break: break-word;
}

/* Imagem/documento dentro do bal�o */
.cbChat-balao-imagem {
    display: block;
    margin-bottom: 6px;
    border-radius: 8px;
    cursor: pointer;
}

/* ----------------------------------------------------------
   Indicador "digitando"
   ---------------------------------------------------------- */
.cbChat-digitando {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.cbChat-digitando-balao {
    background: #f1f1f1;
    color: #000;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.2;
    word-break: break-word;
    white-space: normal;
    overflow-y: auto;
    max-height: 250px;
    width: 32px;
    text-align: left;
}

/* ----------------------------------------------------------
   Footer (�rea de input)
   ---------------------------------------------------------- */
.cbChat-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    padding: 6px;
}

.cbChat-input {
    flex: 1;
    border: none;
    padding: 8px;
    outline: none;
    font-size: 13px;
    resize: none;
    line-height: 1.3;
    max-height: 80px;
    overflow-y: auto;
}

/* Bot�es do footer � base compartilhada */
.cbChat-footer-btn {
    width: 38px;
    height: 38px;
    margin-left: 5px;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cbChat-footer-btn--anexar {
    background: #ffc107;
}

.cbChat-footer-btn--enviar {
    background: #1890ff;
}

/* ----------------------------------------------------------
   Barra de arquivo selecionado
   ---------------------------------------------------------- */
.cbChat-arquivo-bar {
    padding: 6px 10px;
    font-size: 12px;
    background: #fff8e1;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cbChat-arquivo-remover {
    cursor: pointer;
}

/* ----------------------------------------------------------
   Modais (usam classes Bootstrap + ajustes pontuais)
   ---------------------------------------------------------- */
.cbChat-modal-mapa {
    padding: 0;
}

.cbChat-modal-mapa-container {
    width: 100%;
    height: 500px;
}