@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700');

body {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
}

b {
    font-weight: 400;
}

a {
    text-decoration: none !important;
}

button:focus {
    outline : none !important;
}
button:active {
    outline : none !important;
    box-shadow: none !important;
}

label {
    font-weight: 400;
}

/*BS Classes------------------------------------------------*/

.btn {
    border-radius:0;
}
.btn-primary {
    background-color:#9B9B9B;
    border-color: #777
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary.focus
.btn-primary:active:focus{
    background-color: #9e1b31 !important;
    border:solid 1px #731424 !important;
}

/* HEADER ---------------------------------------------------*/
#header {
    background-color: #9e1b31;
    z-index: 1;
    box-shadow: 0px 2px 2px rgba(0,0,0,.2);
}
#header_bar {
    text-align: right;
    color:#D0D0D0
}
#header_bar i{

}
#toggle {
    float:left;
    font-size: 30px;
    text-align: center;
    color:#D0D0D0;
    display:inline-block;
    padding:10px;
}
#brand {
    display:inline-flex;
    align-items: center;
    justify-content: center;
    height:52px;
    width:140px;
    padding-left:20px;
    position:relative;
    top:5px;
    background-repeat: no-repeat;
    background-position: center left;
    background-size: contain;
}

#lang_selector {
 border:solid 1px #CCC;
    font-size: 11px;
    padding:4px;
    color:#444;
    background-color: rgba(50,50,50,.3);
    color:#FFF;
}
#header_bar #logout{
    cursor: pointer;
}
#logout {
    display:inline-flex;
    align-items: center;
    justify-content: center;
    height:62px;
    color:#D0D0D0;
    width:62px;
}
#logout:hover {
    color:#FFF;
}

/* MENU ---------------------------------------------------*/
#menu {
    position:absolute;
    width:0;
    height:4000px;
    transition: width ease .3s;
    background-color:#F2F2F2;
    box-sizing: border-box;
    overflow-y:auto;
    border:0;
    float:left;
}

#menu.open {
    z-index: 9999;
    width:220px;
    border-right:solid 1px #888;
}

.menu-category {
    display:block;
    padding:12px 4px;
    background-color: #0a7387;
    color:#FFF;
    font-weight: 400;
    border-top:solid 1px #086071;
    position:relative;
}
.menu-category {
    background-color: #B7B7B7;
    color:#FFF;
    border-top:solid 1px #999;
}
.menu-item {
    display:block;
    padding:5px;
    color:#676767;
}
.menu-item:hover{
    cursor:pointer;
    color:#9e1b31;
}

.menu-item.active {
    background-color: #bcc8d6;
    color:#444;
    font-weight: bold;
}


#menu.open + #content {
    padding-left:220px;
}

#menu.open + #content .list-pagination-info{
    /*display:none;*/
}

/* CONTENT SECTION ----------------------------------------*/
#content {
    width:100%;
    padding:0;
    transition: padding .3s;
    overflow-y: auto;
    background-color:#FAFAFA;
    box-shadow: inset 2px 2px 2px rgba(0,0,0,.2);
}

#content-container {
    width:100%;
    height:100%;
    padding:0;
    transition: padding .3s;
    overflow-y: auto;
    background-color:#FAFAFA;
    box-shadow: inset 2px 2px 2px rgba(0,0,0,.2);
    position:relative;
}


/* VIEW WIDGETS ------------------------------------------*/
.widget {
    height:100%;
    display:flex;
    flex-direction: column;
    z-index:4;
}
.widget-header {
    position:relative;
    align-self: flex-start;
    width:100%;
    padding:5px;
    background-color:#B7B7B7;
    border-top:solid 1px #969696;
}

.widget-footer {
    align-self: flex-end;
    width:100%;
    padding:10px;
    background-color:#B7B7B7;
    border-top:solid 1px #969696;
    color:#FFF;
}
.widget-footer select {
    color:#000;
}
.widget-content {
    height:100%;
    overflow:scroll;
}
.field-items-view .widget-footer{
    display: -moz-flex;
    display: flex;
    justify-content: space-between;
    padding: 5px 10px 5px 0;
}
.field-items-view .view-form label, .view-form label {
    float: none!important;
}

/* LOADER OVERLAY ----------------------------------------*/
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display:flex;
    align-items: center;
    justify-content: center;
}
.overlay .bg {
    position:absolute;
    width:100%;
    height:100%;
    background-color: #000;
    filter:alpha(opacity=50);
    -moz-opacity:0.5;
    -khtml-opacity: 0.5;
    opacity: 0.5;
}
.overlay .progress {
    position:absolute;
    top:3px;
    right:3px;
    color:#FFF;
    background-color:transparent;
}
.overlay i {
    font-size:30px;
    color:rgba(255,255,255,.5);
}

/* VIEW LIST ------------------------------------------------*/
.list-headers {
    white-space: nowrap;
    overflow:hidden;
    box-shadow: 2px 0 2px rgba(0,0,0,.2);
    background-color:#F0F2F6
}
.list-header {
    display:inline-block;
    border-bottom:solid 1px #CCC;
    margin:0;
    padding:5px;
    font-weight: 500;
    visibility: hidden;
}
.list-data {
    width:100%;
    border-collapse: collapse;
}
.list-data td {
    border-bottom:solid 1px #CCC;
    padding:3px 5px;
}
.list-th {
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    visibility: hidden;
}
.list-th div {
    white-space: nowrap;
    height:0;
    padding:0 5px;
    border:0;
    overflow-y:hidden;
    font-weight: 500;
}
.list-row-buttons {
    white-space: nowrap;
    width:5%;
    background-color: rgba(250, 250, 250, 0.8);
}
.list-row-buttons button {
    background:none;
    color:#1d4379;
}
.list-scroll {
    overflow:scroll;
    height:100%;
}
.header-scroll {
    position: relative;
}
.list-pagination-info {
    padding:7px 0 7px 7px;
    white-space: nowrap;
    overflow:hidden;
}
.list-cell {
    white-space: nowrap;
}

.list-cell.Boolean,
.list-header.Boolean{
    text-align: center;
}
.list-cell.Id,
.list-header.Id,
.list-th.Id{
    text-align: center;
    display:none;
}

.list-editable {
    padding: 0;
    font-size: 14px;
}

.filter-panel {
    padding:10px;
    background-color:#F0F0F0;
    z-index:999;
}
.filter-panel .form-control{
    margin:5px 0;
}
.filter-panel .form-control.filter-value {
    margin:0 0;
}
.filter-panel .button-asc,
.filter-panel .button-desc{
    margin:4px;
}
.filter-panel .text-capitalize{
    padding:4px;
}
.filter-panel .filters-applied {
    margin:4px;
    padding:4px;
    min-height: 100px;
    background-color:#FFF;
    border:solid 1px #CCC;
}

.popover-modal .popover-body {
    margin: 0;
    padding: 0;
    max-height: 420px;
}
.popover-modal:before {
    border-bottom-color:#999;
}
.popover-modal:after{
    border-bottom-color:#F0F0F0;
}

.filter-panel .filters-applied {
    border:solid 1px #CCC;
    padding:0;
    margin:0;
    width:100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100px;
}
.filter-panel .filter-applied{
    border-bottom:solid 1px #CCC;
    padding:3px 4px 4px 4px;
}
.filter-panel .filter-applied button{
    margin:0;
    margin-right:7px;
    width:16px;
    height:16px;
    padding:2px;
    padding-top:0;
    font-size:12px;
}
.filter-panel .filter-applied button i {
    margin:0;
    padding:0;
    position:relative;
    top:-2px
}
.filter-panel .filter-ok {
    margin-right:10px;
}
select.ListFilter {
    max-width:100px;
    margin-left:5px;
}

select.list-summaries {
    max-width: 75px;
    margin-left: 5px;
}
.list-summaries.value {
    margin-left: 5px;
    font-weight: bold;
}
.filter-panel .input-group {
    display: flex;
    position: unset;
    justify-content: space-between;
}
.filter-panel select.filter-bool {
    width: 100%;
}
/* VIEW FORM --------------------------------------------*/
.view-form .widget-content {
    padding:0px;
}
.view-form .form-title {
    background-color:#FFF;
    padding:2px 0;
    box-shadow: inset 2px 2px 2px rgba(0,0,0,.2);
    font-size:22px;
}
.view-form section{
    max-width: 720px;
    margin:10px auto;
}

.view-form h3 {
    border-bottom:solid 1px #333;
}

.form-control.display {
    background:none;
    border:none;
    box-shadow: none;
    padding-left:0;
    height: auto;
    min-height: 12px;
}
.form-control.display>.value:empty {
    height: 45px;
}

.section-header h3 {
    font-size:20px;
    margin:2px 0 10px 0;
}

.req {
    color: #d60000;
    margin-left:2px;
}

/* VIEW RECORD -----------------------------------------*/
.view-record .widget-content {
    padding:0px;
}
.view-record .form-title {
    background-color:#FFF;
    padding:2px 0;
    box-shadow: inset 2px 2px 2px rgba(0,0,0,.2);
    font-size:22px;
}
.view-record section{
    max-width: 960px;
    margin:10px auto;
}

.view-record .form-group {
    clear: both;
    margin-bottom:7px;
}
.view-record label {
    float:left;
    width:100%;
    padding-top:6px;
}
/*
.view-record .form-control {
    border-bottom:0;
}
*/

.view-record h3 {
    border-bottom:solid 1px #333;
}

.record-info {
    border-top:solid 1px #999;
    color:#999;
    font-size:12px;
}
.record-tabs {

}
.tab-row {
    border-bottom:solid 3px #9e1b31;
}
.selected-tab-title {
    border:solid 1px #CCC;
    background-color:#EEE;
    font-weight: bold;
    padding:12px;
}
.tab-menu-icon {
    float:right;
    background:none;
}
.tab-items {
    height:0;
    max-height: 0;
    transition: .5s ease-in;
    overflow:hidden;
}
.tab-items.open {
    max-height: 900px;
    overflow-y:auto;
}
.tab-item {
    border:solid 1px #DDD;
    border-bottom:0;
    background-color:#EEE;
    color:#444;
    font-weight: normal;
}
.tab-item.active {
    font-weight: bold;
    background-color:#9e1b31;
    border:solid 1px #731424;
    border-bottom:0;
    color:#FFF;
}
.tab-content {
    min-height:100px;
    border:solid 1px #731424;
    border-top:0;
}
.tab-menu-dropdown-item {
    padding:4px 7px;
}
.tab-menu-dropdown-item:hover {
    background-color:#F0F0F0;
}
.tab-content .widget-header:first-child {
    border-top:0;
}
.view-record .section-collapse,
.view-form .section-collapse {
    margin:0 auto;
}

.section-collapse .section-header {
    background-color:#9e1b31;
    border:solid 1px #7a1525;
    padding:7px 0;
    margin:0;
}

.section-collapse .section-header h3 {
    color:#FFF;
    font-size:16px;
    border-bottom:none;
    margin:0;
    padding:0;
}

.section-collapse .row-inner {
    padding:0 15px;
}
.section-collapse .row-border {
    border:solid 1px #CCC;
    border-top:0;
    padding:10px 0;
}

.record-tabs {
    margin-top:20px;
}

@media screen and (min-width: 960px){
    .selected-tab-title {
        display:none;
    }
    .tab-menu-icon {
        display:none;
    }
    .tab-items {
        height:auto;
        max-height: none;
    }
    .tab-item {
        display:inline-block;
        padding:5px 12px;
    }
}


/* FIELD BOOLEAN ---------------------------------------*/
.Boolean i.fa-circle {
    color:#3c763d;
}
.Boolean .fa-circle-o {
    color:#CCC;
}


/* FIELD CODE*/
.ace_editor {
    margin: auto;
    height: 300px;/*325*/
}
.scrollmargin {
    height: 80px;
    text-align: center;
}
.code_editor {
    border: solid 1px #a9a9a9;
    clear: both;
}
.code_editor>.code-toolbar,.code_preview>.code-toolbar {
    background-color: #ccc;
    padding: 3px;
    border-bottom: 1px solid #b1b1b1;
}
.code_editor.fullscreen,.code_preview.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.code_editor.fullscreen .ace_editor {
    height: 100%!important;
}
.code_editor .mode-text,.code_preview .mode-text {
    border: solid 1px #cacaca;
    background: rgba(255,255,255,0.86);
    padding: 2px 8px;
    text-align: center;
    font-size: 11px;
    color: #000000;
    border-radius: 3px;
}
.code_preview {
    border: solid 1px #b1b1b1;
    border-top: none;
    background: #fff;
}
.code_preview .preview_html {
    height: 10cm;
    background-color: #FFF;
}
.code_preview.fullscreen .preview_html {
    height: 100%;
}
.preview_html>iframe {
    width: 100%;
    height: 100%;
    border: none;
}
body.fullscreen {
    overflow: hidden;
    transform: none!important;
}
/*FIELD FILE----*/
.preview.img-thumbnail {
    max-height: 70px;
    max-width: 70px;
}

/* FIELD ITEMS ------------------------------------------*/

.field-items-view {
    border:solid 1px #999;
    background-color:#FFF;

}
.field-items-view .widget {
    height:auto;
    display: block;
}

.field-items-view .view-form .form-title {
    box-shadow : none;
}
.view-record .field-items-view .view-form .widget-content{
    overflow: visible !important;
}
.view-form .view-container .field-items-view,.view-form .view-container .field-items-view .widget-content {
    overflow: unset;
}
.field-items-view .list-headers {
    box-shadow: none;
}
.field-items-list .widget-header {
    border-top: none;
}

/* FIELD PICTURE -----------------------------------------*/
.FieldPicturePreview {
    max-width:250px;
    padding:7px;
}
.FieldPicturePreview img {
    width:100%;
    margin:0 auto;
}

/* FIELD SIGNATURE ----------------------------------------*/

.FieldSignature {
    background-color:#FFF;
    color: #333;
    border:solid 1px #CCC;
}
.FieldSignature .sig-image {
    padding:15px;
    display:none;
}
.form-group.Signature img {
    max-height: 120px;
}

/* FIELD TEXT ------------*/
.form-group.Text div.value{
    display: block;
    margin:0;
    padding:0;
    white-space: pre-wrap;       /* css-3 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;
}

/* FULL CALENDAR ------------------------------------------*/
.fc-content {
    cursor: pointer;
}
.fc-day-number {
    font-size:14px;
    font-weight: bold;
}
.fc-toolbar,
.fc-header-toolbar{
    margin:0 !important;
    padding:5px;
    background:#CCC;
    height:auto;
}
.fc-toolbar h2 {
    margin:9px 0 1px 0;
    padding:0;
    font-size:16px;
    text-transform: capitalize;
}
.fc-toolbar button {
    background-color:#999;
    border:solid 1px #777;
    padding:7px;
    margin:0 2px;
    height: auto;
    border-radius:0;
    background-image: none;
    color:#FFF;
    box-shadow: none;
    text-shadow: none;
}
.fc-button-group button {
    margin:0 2px;
}
.fc-corner-left,
.fc-corner-right{
    border-radius: 0 !important;
}
.fc-toolbar .fc-state-active{
    background-color: #7599b5;
}
.fc-toolbar button.fc-agregar-button {
    font-weight: bold;
    font-size:22px !important;
    padding:2px 12px 1px 12px;
    background-color: #5cb85c;
    border-color: #367c36;
}
.fc-toolbar button.fc-agregar-button:hover {
    background-color: #449d44;
    border-color: #398439;
}

.arx-editor-frame {
    width:100%;
    border:solid 1px #CCC;
    border-radius:5px;
}
.arx-voice-label {
    display:none;
}

@media (min-width: 954px) {
    #toggle {
        display:none;
    }
    #menu {
        width:220px;
        border-right:solid 1px #888;
    }
    #content {
        padding-left:220px;
    }
}

.tab-content .view-form .widget-content {
    overflow: visible !important;
}

.bootstrap-datetimepicker-widget.dropdown-menu.top {
    z-index: 9999 !important;
}

.highcharts-credits{
    display:none
}
.chart {
    width:100%;padding:20px;
}
.chart-view {
    margin-right:-15px
}
.chart-filter label{
    margin-right:5px;
}
.chart-filter .form-control {
    margin-right:5px;
}

.btn-back-to-top {
    display: inline-block;
    height: 40px;
    width: 40px;
    position: fixed;
    bottom: 40px;
    right: 25px;
    text-align: center;
    line-height: 40px;
    background: #17559b;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 100%;
    overflow: hidden;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity 0.3s 0s, visibility 0s 0.3s;
    -moz-transition: opacity 0.3s 0s, visibility 0s 0.3s;
    transition: opacity 0.3s 0s, visibility 0s 0.3s;
    z-index: 100;
}

.btn-back-to-top:before {
    font-family: "Glyphicons Halflings";
    content: "\e113";
    display: block;
    font-size: 16px;
    color: #FFF;
}
.btn-back-to-top.back-to-top-fade-out,
.btn-back-to-top.back-to-top-is-visible,
.no-touch .btn-back-to-top:hover {
    -webkit-transition: opacity 0.3s 0s, visibility 0s 0s;
    -moz-transition: opacity 0.3s 0s, visibility 0s 0s;
    transition: opacity 0.3s 0s, visibility 0s 0s;
}
.btn-back-to-top.back-to-top-is-visible {
    visibility: visible;
    opacity: 1;
}
.btn-back-to-top.back-to-top-fade-out {
    opacity: 0.8;
}
.no-touch .btn-back-to-top:hover {
    background-color: #e86256;
    opacity: 1;
}
@media only screen and (min-width: 768px) {
    .btn-back-to-top {
        right: 20px;
        bottom: 20px;
    }
}
@media only screen and (min-width: 1024px) {
    .btn-back-to-top {
        height: 40px;
        width: 40px;
        right: 30px;
        bottom: 30px;
        line-height: 40px;
    }
}

#dark-mode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    font-size: 20px;
    left: 5px;
    bottom: 13px;
}
#dark-mode>a {
    color: #D0D0D0;
    cursor: pointer;
    background-color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    text-align: center;
    font-size: 22px;
    padding-top: 5px;
}
#dark-mode>a:hover {
    color: #fafafa;
}

/** SORT TABLE**/
.sorting-table td {
    color:#CCC;
}
.sorting-table .sorting-row td{
    background-color: #eee7b8;
    color:#000;
    font-weight:bold;
}
.row-reorder{
    margin: auto;
    padding: 5px 7px;
}
.row-reorder:active {
    cursor:grabbing;
}
@media print {
    html,body {
        -webkit-print-color-adjust:exact;
        margin: 0;
        padding: 0;
    }
    *, *:after, *:before {
        color: #333!important;
    }
}
/* FORM VALIDATE --------------------- */
.form-validated input:invalid,.form-validated select:invalid,.form-validated textarea:invalid {
    border-color: #dc3545;
    border-width: 2px;
}
.form-validated input:focus:invalid,.form-validated select:focus:invalid,.form-validated textarea:focus:invalid {
    border-color: #dc3545;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.8), 0 0 8px rgba(220,53,69,0.25);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.08), 0 0 8px rgba(220,53,69,0.25);
}

@media (min-width: 1500px) {
    .view-record section {
        max-width: 1100px;
    }
    .view-form section {
        max-width: 1100px;
    }
}
.semaforo .luz.verde{
    color: #21b751;
}
.semaforo .luz.rojo{
    color: #b51414;
}
.semaforo .luz.amarillo {
    color: #fcd000;
}
a.striked {
    text-decoration: line-through !important;
    color:red;
}
.login-login {
    color: #fff;
}
.login-login:hover,.login-login:active {
    color: #c9c9c9;
}
.login-reset {
    color: #fff;
}
.login-reset:hover,.login-reset:active {
    color: #c9c9c9;
}
.list-cell .form-group {
    margin-bottom: 0;
}
.list-cell .form-group>label {
    display: none;
}
.list-cell .form-group select {
    width: auto;
    padding: 2px 4px;
    height: auto;
}
.list-cell .iframe-html {
    border: none;
}
.display .iframe-html {
    border: 1px solid #ccc;
    width: 100%;
}
.list-cell .form-group.form-check>label {
    display: block;
}
.list-cell .list-editable .form-control {
    padding: 5px 6px;
    height: 30px;
}
/* Chrome, Safari, Edge, Opera */
input.FieldNumber::-webkit-outer-spin-button,
input.FieldNumber::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
input.FieldNumber[type=number] {
    -moz-appearance: textfield;
}
.list-filter-panel select.ListFilter.selected-active {
    color: #000000;
    font-weight: 600;
    border: 2px #837e7e solid;
}
.list-filter-panel {
    background-color:#CCC;
    border-top:solid 1px #777;
    padding:3px;
    display: flex;
    align-items: center;
}
.list-filters-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.ms-options-wrap > .ms-options {
    width: max-content;
}
/*
.view-record .iframe-html {
    border: 1px solid #ccc;
    width: 100%;
}
*/
/*
.code_editor.fullscreen {
    height: auto;
    width: auto;
    border: 0;
    margin: 0;
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}
.ace_editor.fullscreen {
    height: auto;
    width: auto;
    border: 0;
    margin: 0;
    position: fixed !important;
    top: 36px;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}
*/

/*
.tab-content .view-list>.widget-header {
    display: flex;
    flex-direction: row;
}
.tab-content .view-list>.widget-header>.content-right{
    display: flex;
    justify-content: flex-end;
    flex: 1;
}
.tab-list-header-dropdown-item {
    padding: 4px 7px;
}
.tab-list-header-dropdown-item:hover {
    background-color:#F0F0F0;
}
.tab-list-header-dropdown {
    color: #333;
    cursor: pointer;
}
.tab-list-header-buttons>.dropdown-toggle{
    border-left: none;
}
.view-list>.widget-header {
    display: flex;
    flex-direction: row;
}
.view-list>.widget-header>.content-right {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}
 */