html {
  background-color: #ecf0f5;
}

body {
  color: #222;
}

.loading-icon {
  -webkit-animation: spin 1s linear infinite;
  -moz-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
}

@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.modal {
  background: rgba(0, 0, 0, 0.5);
}

.app-root {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  min-height: 100vh;
}

.loading-icon {
  color: white;
  width: 64px;
  height: 64px;
  font-size: 64px;
}

.main-sidebar, .left-side {
  padding-top: 30px;
}

.navbar-text {
  font-weight: 600;
  color: white;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 30px;
}

.content-header-title {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 0;
}

.content-header span {
  font-size: 12px;
}

.breadcrumb.breadcrumb-status {
  font-size: 18px;
  padding: 0 5px 0 0;
}

.pointer {
  cursor: pointer;
}

.username {
  font-size: 14px !important;
  font-weight: 600;
  display: block;
  margin-top: 0 !important;
  margin-bottom: 4px !important;
}

.user-panel.active {
  background-color: #ff6600 !important;
}

a {
  color: #ff6600;
}

.content-wrapper {
  font-size: 12px;
  padding-top: 30px !important;
}

.box-header .box-title {
  display: block;
  font-size: 18px;
  text-transform: uppercase;
}

.main-header .logo {
  font-size: 16px;
  line-height: 30px;
  height: 30px;
}

.sidebar-menu > li.app-version-update {
  position: absolute !important;
  bottom: 14px;
  padding: 6px;
  width: 100%;
}

.main-sidebar .app-version {
  margin-top: 10px;
  padding: 0 10px;
  width: 100%;
  text-align: center;
  color: #fff;
}

input[type=checkbox], input[type=radio] {
  margin: 2px 0 0;
}

.checkbox strong {
  line-height: 1.5;
}

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

.nav-pills {
  margin-bottom: 10px;
}

.nav-pills > li > a {
  text-align: center;
  border: none;
  background-color: #9a9a9a;
  color: #ffffff;
  text-transform: uppercase;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  background-color: #ff6600;
  color: #ffffff;
}

.nav-pills > li > a:hover,
.nav-pills > li > a:active,
.nav-pills > li > a:focus {
  background-color: #9a9a9a;
  color: #ffffff;
}

.table .filter-row th {
  padding: 1px;
}

.table .filter-row th .input-sm {
  padding: 5px 0 5px 5px;
}

.pre-registo .form-group .control-label {
  padding-top: 4px;
}

.pre-registo .form-group .form-control-static {
  min-height: 26px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.pre-registo .form-group {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 6px;
}

.form-group .form-control {
  height: 30px;
  padding: 4px;
}

.form-group .control-label {
  padding-right: 0;
}

.form-group .input-group .input-group-btn .btn {
  border-radius: 0;
}

.form-control.has-error {
  border-color: #dd4b39;
  box-shadow: none;
}

section.content-header {
  padding: 10px 10px 0 10px !important;
  margin-bottom: 0 !important;
}

section.content-header .pull-right .btn {
  margin-left: 4px;
}

section.content {
  padding: 5px 10px 5px 10px !important;
}

.section {
  border: 1px solid #ccc;
  padding: 0;
  margin-bottom: 6px;
}

.section.section-active {
  border: 1px solid #398439 !important;
}

.section.section-active .section-title {
  background-color: #99DCBE;
}

.section-title {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
  padding: 4px;
  height: 24px;
  margin: 0;
  background-color: #d2d6de;
}

.section .section {
  margin-top: 10px;
}

.section .section .section-title {
  background-color: #ebedf0;
}

.section-title.has-error {
  color: #dd4b39;
}

.section-title.section-title-red {
  color: #ffffff;
  background-color: #dd4b39;
}

.section-body {
  position: relative;
  padding: 6px;
}

.section-body .table {
  margin-bottom: 0;
  font-size: 12px;
}

.section-body-empty {
  margin-bottom: -12px;
}

.form-group.buttons-group {
  margin: 0 0 6px 0;
}

.section .form-group.buttons-group button {
  margin-left: 3px;
}

.section button.pull-right {
  margin: -5px -5px 0 0;
  padding: 3px 6px 2px 6px;;
}

.float-right {
  position: absolute;
  top: 6px;
  right: 6px;
}

.section-title .label-vip,
.section-title .label-final,
.section-title .label-urgente {
  position: absolute;
  top: 0;
  right: 15px;
}

.label-vip,
.label-final,
.label-urgente {
  color: #ffffff;
  font-size: 16px;
  border-radius: 0;
  padding: 6px 12px;
}

small.bg-vip,
small.bg-final,
small.bg-urgente {
  font-size: 11px;
  border-radius: 0;
  padding: 1px 4px;
}

.label-yellow {
  background-color: #FBC02D;
  color: #ffffff;
}

.label-orange {
  background-color: #ff8800;
  color: #ffffff;
}

.label-red {
  background-color: #ff3d00;
  color: #ffffff;
}

.label-vip, .bg-vip {
  background-color: #ff6600;
  color: #ffffff;
}

.label-final, .bg-final {
  background-color: #00a65a;
  color: #ffffff;
}

.label-urgente, .bg-urgente {
  background-color: #3a87ad;
  color: #ffffff;
}

.bg-pink, .bg-pink:hover {
  background-color: #ff71a9;
  color: #ffffff;
}

.bg-garantia {
  background-color: #00a65a;
  color: #ffffff;
}

.bg-devolucao {
  background-color: #dd4b39;
  color: #ffffff;
}

.bg-transparent {
  background-color: transparent;
}

.bg-transparent:hover,
.bg-transparent:focus {
  color: inherit;
}

tr.deleted-text * {
  text-decoration: line-through;
}

.table-container table,
.table-container-header table {
  margin-bottom: 0;
}

.table-container-header .table > thead > tr:first-child > th {
  padding: 4px;
}

.table-container {
  width: 100%;
  overflow: hidden;
  border: solid 1px black;
}

.table-container tbody {
  display: block;
  height: 200px;
  overflow: auto;
}

.table-container .table > tbody > tr > th,
.table-container .table > tfoot > tr > th,
.table-container .table > thead > tr > th,
.table-container .table > thead > tr > td,
.table-container .table > tbody > tr > td,
.table-container .table > tfoot > tr > td {
  padding: 3px 6px;
}

.tbl1 tbody tr th,
.tbl1 tbody tr td {
  padding: 2px 4px;
}

.tbl1 tbody tr th:nth-child(2),
.tbl1 tbody tr td:nth-child(2),
.tbl1 tbody tr th:nth-child(3),
.tbl1 tbody tr td:nth-child(3) {
  text-align: right;
}

/* Checkboxes */
.control-group {
  display: inline-block;
  vertical-align: top;
  background: #fff;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 22px;
  width: 200px;
  height: 210px;
  margin: 10px;
}

.control.control--inline {
  margin-top: 7px;
  margin-bottom: -4px;
}

.control {
  display: block;
  position: relative;
  padding-left: 26px;
  cursor: pointer;
  padding-bottom: 0;
  margin-bottom: 0;
}

.control input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

.control__indicator {
  position: absolute;
  top: -2px;
  left: -2px;
  height: 20px;
  width: 20px;
  background: #ffffff;
  border: 1px solid #d2d6de;
}

.control:hover input ~ .control__indicator,
.control input:focus ~ .control__indicator {
  background: #eeeeee;
  border: 1px solid #ffffff;
}

.control input:checked ~ .control__indicator {
  background: #ffffff;
  border: 1px solid #666666;
}

.control:hover input:not([disabled]):checked ~ .control__indicator,
.control input:checked:focus ~ .control__indicator {
  background: #ffffff;
}

.control input:disabled ~ .control__indicator {
  background: #ffffff;
  opacity: 0.6;
  pointer-events: none;
}

.control__indicator:after {
  content: '';
  position: absolute;
  display: none;
}

.control input:checked ~ .control__indicator:after {
  display: block;
}

.control--checkbox .control__indicator:after {
  left: 7px;
  top: 3px;
  width: 3px;
  height: 8px;
  border: solid #666666;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  box-sizing: initial;
}

.control--checkbox input:disabled ~ .control__indicator:after {
  border-color: #7b7b7b;
}

.my-tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.my-tooltip .my-tooltip-text {
  visibility: hidden;
  width: 100px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -50px;
}

.my-tooltip .my-tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

.my-tooltip:hover .my-tooltip-text {
  visibility: visible;
}

.my-table-bordered,
.my-table-bordered tr,
.my-table-bordered th,
.my-table-bordered td {
  border: 1px solid #9E9E9E !important;
}

.my-bg-green {
  background-color: #43A047;
  color: #fff;
}

.my-bg-red {
  background-color: #f44336;
  color: #fff;
}

.my-input-xs {
  height: 26px;
  padding: 5px 5px;
  text-align: center;
  margin: -4px 0;
}

.btn-xs {
  margin: -2px 0;
}

.title-error {
  color: #dd4b39;
}

.btn-group.btn-group-xs {
  padding-top: 4px;
}

textarea {
  resize: vertical;
}

.row-title {
  background-color: #cfd8dc !important;
}

/*Upload files*/
.inputfile {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.inputfile + label {
  cursor: pointer;
  display: inline-block;
  overflow: hidden;
  color: #d3394c;
  border: 1px solid #d43f3a;
  background-color: #f1e5e6;
  padding: 0;
  margin-bottom: -14px;
}

.inputfile + label span {
  padding: 7px 12px;
}

.inputfile + label span {
  width: 220px;
  min-height: 2em;
  display: inline-block;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: top;
}

.inputfile:focus + label,
.inputfile.has-focus + label,
.inputfile + label:hover {
  border-color: #ac2925;
  background-color: #f5e1e2;
}

.order-column {
  cursor: pointer;
}

.textarea-disabled {
  padding: 4px;
  background-color: #eee;
  border-color: #d2d6de;
}

.table-wrapper-scroll-y {
  display: block;
  overflow-y: auto;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

.btn-group-fix {
  padding-top: 0;
  margin-bottom: 4px;
}

.btn-group-fix.has-error .btn {
  border-color: #dd4b39;
}

.table-fixed {
  width: 100%;
}

.table-fixed tbody {
  overflow-y: auto;
  width: 100%;
}

.table-fixed thead, .table-fixed tbody, .table-fixed tr, .table-fixed td, .table-fixed th {
  display: block;
}

.table-fixed tbody td {
  float: left;
}

.table-fixed thead tr th {
  float: left;
}

@media (max-width: 767px) {
  .main-header .logo {
    display: none;
  }

  section.content {
    padding: 0 !important;
  }
}

@media (min-width: 768px) {
  .navbar-nav {
    float: left;
  }

  .navbar-nav > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 991px) {
  .no-padding-left {
    padding-left: 15px;
  }

  .no-padding-right {
    padding-right: 15px;
  }
}

@media (min-width: 992px) {
  .no-padding-left {
    padding-left: 0;
  }

  .no-padding-right {
    padding-right: 0;
  }
}
