@font-face {
  font-family: "lato";
  src: url("../../fonts/lato/Lato-Regular.woff") format("woff");
  font-weight: 400;
}

@font-face {
  font-family: "lato-light";
  src: url("../../fonts/lato/Lato-Light.woff") format("woff");
  font-weight: 300;
}

@font-face {
  font-family: "lato-thin";
  src: url("../../fonts/lato/Lato-Thin.woff") format("woff");
  font-weight: 100;
}

@font-face {
  font-family: "lato-bold";
  src: url("../../fonts/lato/Lato-Bold.woff") format("woff");
  font-weight: 700;
}

@font-face {
  font-family: "lato-bolder";
  src: url("../../fonts/lato/Lato-Black.woff") format("woff");
  font-weight: 900;
}

:root {
  --primary-color: #7d31af;
  --primary-color-hover: #461b62;
  --secondary-color-hover: #e6e6e6;
  --primary-background-color: #fff;
  --secondary-background-color: #f6f7fb;
  --border-color: #e5e9ed;
  --text-color: #333;
  --muted-color: #848484;
  --grey-blue-color: #95a3bf;
  --active-color: #d8d8d8;
  --max-width: 1136px;
}

/* General styles */
*:not(.terminal-main *):not(.glyphicon):not(.btn):not(.btn > *) {
  font-family: "lato";
  color: var(--text-color);
}

a {
  color: var(--text-color);
}

.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
  outline: none;
}
input.no-mobile-zoom {
  font-size: 16px;
}
div.terminal-container {
  width: 100%;
  height: 100%;
}
div.terminal-container div.terminal {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

div.terminal-container div.terminal .xterm-rows > div {
  white-space: break-spaces;
}

.glyphicon-refresh-animate {
  -animation: spin 1s infinite linear;
  -webkit-animation: spin2 1s infinite linear;
}
@-webkit-keyframes spin2 {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
  }
}
.button-color-animate {
  color: #337ab7;
  -webkit-transition: color 2000ms linear;
  -ms-transition: color 2000ms linear;
  transition: color 2000ms linear;
}
@-moz-keyframes spin {
  from {
    transform: scale(1) rotate(0deg);
  }
  to {
    transform: scale(1) rotate(360deg);
  }
}
@-webkit-keyframes spin {
  from {
    transform: scale(1) rotate(0deg);
  }
  to {
    transform: scale(1) rotate(360deg);
  }
}
@-o-keyframes spin {
  from {
    transform: scale(1) rotate(0deg);
  }
  to {
    transform: scale(1) rotate(360deg);
  }
}
@keyframes spin {
  from {
    transform: scale(1) rotate(0deg);
  }
  to {
    transform: scale(1) rotate(360deg);
  }
}

/****************/
/** NEW STYLES **/
/****************/
#ehorus-app {
  background-color: var(--secondary-background-color);
  height: 100vh;
}

.navbar-header,
.navbar.navbar-inverse.navbar-fixed-top,
.navbar.navbar-inverse.navbar-fixed-top a {
  height: 60px;
}

img.navbar-brand {
  height: 100%;
}

.navbar.navbar-inverse.navbar-fixed-top {
  background-color: var(--primary-background-color);
  border-bottom: 1px solid var(--border-color);
}

.navbar.navbar-inverse.navbar-fixed-top a {
  padding-top: 21px;
}

.navbar.navbar-inverse.navbar-fixed-top li.active > a {
  background-color: var(--primary-background-color);
  border-bottom: 1px solid var(--border-color);
  padding-top: 16px;
  height: 60px;
  border-top: 4px solid var(--primary-color);
}

.navbar.navbar-inverse.navbar-fixed-top li.active > a > span {
  font-weight: bold;
  color: var(--primary-color);
}

div.jumbotron {
  background-color: unset;
}

div.well {
  background-color: var(--primary-background-color);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-shadow: unset;
}

.tooltip .tooltip-inner {
  background-color: var(--primary-background-color);
  border: 1px solid var(--border-color);
}

#ehorus-header .navbar-header {
  cursor: pointer;
}

.alert {
  border: 0px;
}

.alert.alert-success {
  background-color: #d9efee;
}

.alert.alert-info {
  background-color: #d9efee;
}

.alert.alert-warning {
  background-color: #fffbdf;
}

.alert.alert-danger {
  background-color: #fbdada;
}

/* Buttons */
.btn {
  border: 1px solid var(--border-color) !important;
  height: 38px;
}

.btn.active,
.btn:active {
  -webkit-box-shadow: unset;
  box-shadow: unset;
}

.btn,
.btn:focus {
  background-color: var(--primary-background-color);
  border-color: #1d111100;
  box-shadow: unset;
}

.btn.active,
.btn.active:focus {
  background-color: var(--active-color) !important;
  box-shadow: unset;
}

.btn:hover .btn.active:hover,
.btn:focus:hover,
.btn.active:focus:hover {
  background-color: var(--muted-color);
}

.btn-primary,
.btn-primary:focus,
.btn-primary:active {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  /* border: 2px solid var(--primary-color); */
  border-radius: 8px;
  padding: 0 10px;
  cursor: pointer;
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-color-hover);
}

.btn-secondary {
  color: var(--text-color);
}

.btn-secondary:hover {
  color: var(--text-color);
  background: var(--secondary-color-hover);
}

.btn-secondary:active {
  background: var(--primary-color);
}

/* Inputs */
input,
input.form-control,
input.form-control.input-sm,
input:focus,
input.form-control:focus,
input.form-control.input-sm:focus,
select#services-search-status.form-control.input-sm {
  background-color: var(--secondary-background-color);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  height: 38px;
  font-size: 12px;
  color: var(--text-color);
  padding-left: 12px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  box-shadow: none;
}

input:focus,
input.form-control:focus,
input.form-control.input-sm:focus,
select#services-search-status.form-control.input-sm:focus,
.processses-main > div.form-group:first-child > input:focus,
#services-main .form-group:first-child > input:focus {
  border: 2px solid #8a96a6;
}

/* Table */
table {
  background-color: #fff;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  width: 100% !important;
  box-sizing: border-box;
  margin: 0 auto;
  clear: both;
  border-collapse: separate;
}

table * {
  vertical-align: middle;
}

table > thead > tr > td,
table > thead > tr > th,
table > tbody > tr > td,
table > tbody > tr > th,
table.table > thead > tr > td,
table.table > thead > tr > th,
table.table > tbody > tr > td,
table.table > tbody > tr > th {
  border: 0px;
}

table > thead > tr {
  border: 0;
  height: 3em;
  border: 1px solid #c0ccdc;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

table > thead > tr {
  height: 3em;
  border: 1px solid #c0ccdc;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

table thead tr th {
  background-color: #fff;
  color: #000;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}

table tr > td:first-child,
table tr > th:first-child {
  padding-left: 10px;
}

.info_table tr > td:last-child,
.info_table tr > th:last-child {
  padding-right: 10px;
}

table tr:first-child > th {
  background-color: #fff;
  color: #000;
  vertical-align: middle;
}

table > thead > tr > th,
table > tbody > tr > td {
  -moz-border-radius: 0px;
  -webkit-border-radius: 0px;
  border-radius: 0px;
  padding: 5px 3px;
}

table thead th {
  padding: 10px 18px;
}

table > thead > tr * {
  font-size: 12px;
  line-height: 23px;
}

table > thead > tr > th,
table > thead > tr > th * {
  font-family: "lato-bold";
  font-style: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

table th {
  letter-spacing: 0.3pt;
  cursor: pointer;
  border-bottom: 1px solid #e2e2e2 !important;
}

table > tbody > tr * {
  font-size: 9pt;
}

table tbody tr {
  background-color: #ffffff;
}

table > tbody > tr:nth-child(even) {
  background-color: var(--border-color) !important;
}

table > tbody > tr:hover {
  background-color: #d9efee !important;
}

table tr:nth-child(odd) {
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 20px;
  border: 6px solid transparent;
  background-clip: content-box;
}

/* System/Index */
div.system-main.container-fluid {
  background-color: var(--primary-background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  max-width: var(--max-width);
  margin-left: unset;
  margin-right: unset;
}

/* Terminal */
/* .xterm-rows {
  margin-top: 15px !important;
} */

/* Processes */
#processes-graphs {
  background-color: var(--primary-background-color);
  border-top: 1px solid var(--border-color);
  height: 90px !important;
  margin: 0px -15px 0px -30px;
  position: fixed;
  bottom: 0px;
  width: 100%;
}

#processes-graphs > div.row {
  margin-left: 0px;
  margin-right: 0px;
  padding-top: 4px;
  max-width: var(--max-width);
}

.processses-main {
  background-color: var(--primary-background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 105px;
  max-width: var(--max-width);
}

.processses-main > div.form-group:first-child > input {
  height: 40px;
  width: 100%;
  border: 0px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-color);
  padding-left: 20px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin-bottom: 15px;
  background: url(../../images/search.svg);
  background-repeat: no-repeat;
  background-size: 20px;
  background-position: right 10px bottom 50%;
  background-color: var(--secondary-background-color);
  box-shadow: unset;
  -webkit-box-shadow: unset;
}

.processses-main > div.form-group:first-child > input:focus {
}

.processses-main > div.form-group:first-child > input:placeholder-shown {
  font-style: italic;
  color: var(--muted-color);
}

.refresh-button ul li.active a {
  background-color: var(--border-color);
}

/* Services */
#services-main {
  background-color: var(--primary-background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  max-width: var(--max-width);
}

#services-main .form-group:first-child > input {
  height: 40px;
  width: 100%;
  border: 0px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-color);
  padding-left: 20px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin-bottom: 15px;
  background: url(../../images/search.svg);
  background-repeat: no-repeat;
  background-size: 20px;
  background-position: right 10px bottom 50%;
  background-color: var(--secondary-background-color);
  box-shadow: unset;
  -webkit-box-shadow: unset;
}

#services-main > form.form-horizontal > .row {
  margin-left: 0px;
}

/* Files */
.files-main {
  background-color: var(--primary-background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  max-width: var(--max-width);
}

.files-main table > tbody > tr > td,
.files-main table > tbody > tr > th,
.files-main table > tfoot > tr > td,
.files-main table > tfoot > tr > th,
.files-main table > thead > tr > td,
.files-main table > thead > tr > th {
  padding: 5px;
}

#files-table a.file-link span.glyphicon,
#files-table span.file-link span.glyphicon {
  vertical-align: middle;
  font-size: 20px;
  margin-right: 10px;
}

.files-main table button.btn.btn-xs.btn-default {
  height: 23px;
  margin-top: -3px;
  margin-bottom: -4px;
}

.files-main table button.btn.btn-xs.btn-default span.glyphicon {
  margin-top: -3px;
}

#popover-confirm-delete button.btn.btn-sm.btn-danger {
  background-color: #e35f5f;
}

#popover-confirm-delete button.btn.btn-sm.btn-danger:hover,
#popover-confirm-delete button.btn.btn-sm.btn-danger:focus {
  background-color: #ed8080;
}

/* Share */
.share-main {
  background-color: var(--primary-background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  max-width: var(--max-width);
}

#processes-buttons {
  margin-top: 15px;
}

.dropdown-btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-right: 10px;
}

.form-control-static {
  min-height: 34px;
  padding-top: 7px;
  padding-bottom: 7px;
  margin-bottom: 0;
}

.filter-panel {
  margin-bottom: 20px !important;
  --bs-accordion-active-bg: #FFFFFF !important;
}

.margin-bottom-15px {
  margin-bottom: 15px;
}

.margin-left-30px {
  margin-left: 30px;
}

.custom-accordion-button::after {
  background-image: none !important;
}

.file-icon {
  margin-right: 5px;
}

.file-link {
  text-decoration: none; /* Remove underline by default */
}

.file-link:hover {
  text-decoration: underline; /* Add underline on hover */
}

.breadcrumb {
  padding: 8px 15px;
  background-color: #f5f5f5;
}

.breadcrumb li+li::before {
  padding: 0 5px;
  color: #ccc;
  content: "/\00a0";
}

.flex-column-gap-10 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 992px) {
  #basic-navbar-nav {
    background-color: #FFF !important;
    z-index: 9;
  }
}

@media (min-width: 992px) {
  #menu-bottomline {
    position: absolute !important;
    top: 45px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
  }
}

.scroll-button {
  width: 0;
  height: 0;
  position: absolute;
  border-style: solid;
  cursor: pointer;
}

/* Left zoom button */
.scroll-left {
  border-width: 15px 25px 15px 0;
  border-color: transparent black transparent transparent;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  border-width: 50px 15px 50px 0;
  filter: drop-shadow(-1px 0px 6px rgba(0, 0, 0, 0.4));
}

.scroll-left-disabled {
  border-color: transparent gray transparent transparent !important;
  pointer-events: none !important;
}

.scroll-left:hover {
  filter: drop-shadow(-1px 0px 10px rgba(0, 0, 0, 0.6));
}

/* Right zoom button */
.scroll-right {
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent black;
  top: 50%;
  right: 3px;
  transform: translateY(-50%);
  border-width: 50px 0 50px 15px;
  filter: drop-shadow(1px 0px 6px rgba(0, 0, 0, 0.4));
}

.scroll-right-disabled {
  border-color: transparent transparent transparent gray !important;
  pointer-events: none !important;
}

.scroll-right:hover {
  filter: drop-shadow(1px 0px 10px rgba(0, 0, 0, 0.5));
}

/* Up zoom button */
.scroll-top {
  border-width: 0 15px 25px 15px;
  border-color: transparent transparent black transparent;
  top: 5px; /* Dentro del margen de 20px */
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  border-width: 0 50px 15px 50px;
  filter: drop-shadow(0px -6px 6px rgba(0, 0, 0, 0.2)) !important;
}

.scroll-top-disabled {
  border-color: transparent transparent gray transparent !important;
  pointer-events: none !important;
}

.scroll-top:hover {
  filter: drop-shadow(0px -7px 7px rgba(0, 0, 0, 0.3)) !important;
}

/* Down zoom button */
.scroll-bottom {
  border-width: 25px 15px 0 15px;
  border-color: black transparent transparent transparent;
  bottom: 5px; /* Dentro del margen de 20px */
  left: 50%;
  bottom: 4px;
  border-width: 15px 50px 0 50px;
  transform: translateX(-50%);
  filter: drop-shadow(0px 6px 6px rgba(0, 0, 0, 0.4)) !important;
}

.scroll-bottom-disabled {
  border-color: gray transparent transparent transparent !important;
  pointer-events: none !important;
}

.scroll-bottom:hover {
  filter: drop-shadow(0px 10px 10px rgba(0, 0, 0, 0.7)) !important;
}

/* General styles */
.display-agent-text {
  color: #b3b3b3 !important;
  margin-left: 12px;
}

.antialiased-strong {
  font-weight: bold !important;
  -webkit-font-smoothing: antialiased;
}

.btn.btn-secondary.active {
  background-color: #e7e7e7 !important;
}

.margin-h-centered {
  margin: 0 auto !important;
}

.svg-invert {
  filter: invert(1);
}

.cursor-pointer {
  cursor: pointer;
}
