.btns-inline{margin:0;padding:0;list-style:none}
.btns-inline>li{display:inline-block;margin-right:7px}

.custom-btn-block { margin: 0 0 4px 4px; }

@media all and (max-width:480px) {
    .custom-btn-block { width: 100%; display:block; margin: 4px 0; }
}
.huge {
    font-size: 40px;
}
.iw-content {
    line-height: 1.35;
    overflow: hidden;
    white-space: nowrap;
}

@media print {
    body * {
        visibility: hidden;
    }
    #print-div, #print-div * {
        visibility: visible;
    }
    #print-div {
        position: absolute;
        left: 0;
        top: 0;
    }
}

/*Todas as imagens responsivas*/
img {
    max-width: 100%;
}

#jquery-loader{
    border:2px black solid;
    padding-top:35px;
    background-color: white;
    text-align: center;
}

#jquery-loader.blue-with-image{
    border:none;
    padding-top:35px;
    background-color: transparent;
    text-align: center;
    background-image: url(../img/ajax-loader.gif);
    background-position: center center;
    background-repeat: no-repeat;
}

table tbody td {
    font-size: 12px;
}
#tbOcorrencias tbody td {
    font-family: Tahoma;
    color: #23241f;
}

.div-overflow{
    height: 500px;
    overflow:auto;
}

#map_ocorrencia {
    height: 400px;
}

.numeric_align{
    text-align: right;
}

textarea {
    resize: none;
}

.btn-xs-custom {
    width: 25px;
}

/*Make select2 responsive*/
[class*="col-"] .select2-container {
    width:100%!important;
}
[class*="col-"] .select2-container .select2-search input[type="text"] {
    padding:2px 4%!important;
    width:90%!important;
    margin:5px 2%;
}
[class*="col-"] .select2-container .select2-drop {
    width: 100%!important;
}

.logo-login {
    border-radius: 10px 30px 15px;
    box-shadow: 5px 3px 3px grey;
    padding: 20px;
    max-height: 150px;
    width: 80%;
}

th { font-size: 10px; }
td { font-size: 7px; }

.widget-body.no-padding.overflow-table-auto {
    height: 215px;
    overflow: auto;
}

#frmTelemetria .btn {
    cursor: auto;
    border: 3px solid #ccc;
}

/* Important part */
.modal-dialog{
    overflow-y: initial !important
}
.modal-body{
    /*max-height: 530px;*/
    overflow-y: auto;
    overflow-x: hidden;
}

.open > .dropdown-menu {
    -webkit-animation-name: none;
    -moz-animation-name: none;
    -o-animation-name: none;
    animation-name: none;
    -webkit-animation-duration: .4s;
    -moz-animation-duration: .4s;
    -o-animation-duration: .4s;
    animation-duration: .4s;
    -webkit-animation-fill-mode: none;
    -moz-animation-fill-mode: none;
    -o-animation-fill-mode: none;
    animation-fill-mode: none;
}

#btnLogin {
    #background-color: #E02225;
    background-color: #3276b1;
    #border-color: #B70E10;
    border-color: #3276b1;
}

#btnLogin:hover {
    #background-color: #B70E10;
    background-color: #3276b1;
    #border-color: #860D0F;
    border-color: #3276b1;
}

.select-box .form-control {
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.05) !important;
    border-radius: 2px !important;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.05);
    -moz-box-shadow: inset 0 -2px 0 rgba(0,0,0,.05);
    -webkit-box-shadow: inset 0 -2px 0 rgba(0,0,0,.05);
}

.select-box select {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.select-box .caret {
    position: absolute;
    top: 50%;
    right: 25px;
    margin-top: 3px;
    vertical-align: middle;
}

.select-box .form-control:focus {
    border-color: #adadad !important;
}

#frmTelemetria .btn {
    cursor: auto;
    border: 3px solid #ccc;
}

.text-black {
    color: #000;
}

.logo-login {
    border-radius: 10px 30px 15px;
    padding: 20px;
    max-height: 150px;
    width: auto;
    box-shadow: none;
}

.total-estoque {
    background: cyan;
}

.barra-fixa {
    position: fixed;
    z-index: 999;
    top: 119px;
    transition: .5s;
    padding-top: 5px;
}

.barra-fixa ul {
    margin-bottom: 5px !important;
}

/*
   DARK MODE INSPIRED BY DISCORD
   Cores: #313338 (Fundo), #2b2d31 (Lateral/Headers), #1e1f22 (Fundo Profundo), #5865f2 (Blurple)
*/

:root {
    --discord-main: #2b2d31;      /* Fundo principal das janelas */
    --discord-dark: #2b2d31;       /* Fundo de headers e menus */
    --discord-deep: #1e1f22;       /* Fundo de inputs e áreas de contraste */
    --discord-blurple: #5865f2;    /* Roxo principal */
    --discord-text-white: #f2f3f5; /* Texto principal */
    --discord-text-muted: #b5bac1; /* Texto secundário */
    --discord-border: #3f4147;     /* Bordas sutis */
    --discord-success: #23a559;    /* Verde Discord */
    --discord-danger: #ed4245;     /* Vermelho Discord */
}

/* --- BASE --- */
body.dark {
    background-color: var(--discord-deep) !important;
    color: var(--discord-text-white) !important;
}

/* --- HEADER E NAVEGAÇÃO --- */
body.dark #header,
body.dark .navbar,
body.dark #main {
    background-color: var(--discord-main) !important;
    border-bottom: 1px solid var(--discord-border) !important;
}

body.dark header[role="banner"] {
    background: var(--discord-dark) !important;
}

/* Ícones do menu superior */
body.dark .header-dropdown-list > li > a {
    color: var(--discord-text-muted) !important;
}
body.dark .header-dropdown-list > li > a:hover {
    color: var(--discord-text-white) !important;
    background: var(--discord-border) !important;
}

/* --- WIDGETS E CONTAINERS (Onde fica o gráfico) --- */
body.dark .jarviswidget,
body.dark .jarviswidget > header,
body.dark .widget-body,
body.dark .panel,
body.dark .well,
body.dark #content {
    background-color: var(--discord-main) !important;
    border-color: var(--discord-border) !important;
    color: var(--discord-text-white) !important;
}

body.dark .jarviswidget > header {
    background-color: var(--discord-dark) !important;
    border-bottom: 1px solid var(--discord-border) !important;
}

/* --- RESOLVENDO O GRÁFICO BRANCO --- */
/* Isso aplica um filtro que inverte o branco para o tom escuro do Discord */
body.dark .canvasjs-chart-container,
body.dark .canvasjs-chart-canvas,
body.dark .chart-container {
    filter: invert(90%) hue-rotate(190deg) brightness(0.9) contrast(110%);
    background-color: transparent !important;
}

/* Força qualquer div branca teimosa a ficar na cor do Discord */
body.dark div[style*="background-color: white"],
body.dark div[style*="background-color: rgb(255, 255, 255)"],
body.dark div[style*="background: white"] {
    background-color: var(--discord-main) !important;
    color: var(--discord-text-white) !important;
    border-color: var(--discord-border) !important;
}

/* --- ABAS (TABS) --- */
body.dark .nav-tabs {
    border-bottom: 2px solid var(--discord-border) !important;
}

body.dark .nav-tabs > li > a {
    background-color: transparent !important;
    border: none !important;
    color: var(--discord-text-muted) !important;
}

body.dark .nav-tabs > li.active > a {
    color: var(--discord-text-white) !important;
    background-color: var(--discord-border) !important;
    border-radius: 4px 4px 0 0 !important;
}

/* --- FORMULÁRIOS E INPUTS --- */
body.dark select,
body.dark .form-control,
body.dark input,
body.dark .select2-choice,
body.dark .select2-container {
    background-color: var(--discord-deep) !important;
    border: 1px solid var(--discord-border) !important;
    color: var(--discord-text-white) !important;
    border-radius: 4px !important;
}

body.dark .form-control:focus {
    border-color: var(--discord-blurple) !important;
}

/* --- BOTÕES --- */
body.dark .btn-primary {
    background-color: var(--discord-blurple) !important;
    border: none !important;
    transition: 0.2s;
}

body.dark .btn-primary:hover {
    filter: brightness(1.2) !important;
}

body.dark .btn-success { background-color: var(--discord-success) !important; border: none !important; }
body.dark .btn-danger { background-color: var(--discord-danger) !important; border: none !important; }

/* --- NOTIFICAÇÃO (Toast lateral) --- */
/* Estilizando aquele alerta vermelho que aparece no canto */
body.dark .alert-danger,
body.dark [role="alert"] {
    background-color: var(--discord-danger) !important;
    color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
}

/* --- TABELAS --- */
body.dark .table thead th {
    background-color: var(--discord-dark) !important;
    color: var(--discord-text-muted) !important;
    text-transform: uppercase;
    font-size: 0.85em;
    border-bottom: 1px solid var(--discord-border) !important;
}

body.dark .table td {
    border-top: 1px solid var(--discord-border) !important;
    background-color: var(--discord-main) !important;
}

body.dark .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255,255,255,0.02) !important;
}

/* --- SCROLLBAR ESTILO DISCORD --- */
body.dark ::-webkit-scrollbar {
    width: 12px;
}
body.dark ::-webkit-scrollbar-track {
    background: var(--discord-deep);
}
body.dark ::-webkit-scrollbar-thumb {
    background: #1a1b1e;
    border-radius: 20px;
    border: 3px solid var(--discord-deep);
}
body.dark ::-webkit-scrollbar-thumb:hover {
    background: #404249;
}

/* FOOTER */
body.dark .page-footer {
    background: var(--discord-dark) !important;
    border-top: 1px solid var(--discord-border) !important;
}

