/* ========================================================================
   Component: layout
 ========================================================================== */
body,
.wrapper > section {
  background-color: #f5f7fa;
}
.wrapper > .aside {
  background-color: #ffffff;
}
/* ========================================================================
   Component: top-navbar
 ========================================================================== */
.topnavbar {
  background-color: #fff;
}
.topnavbar .navbar-header {
  background-color: transparent;
  background-image: -webkit-linear-gradient(left, #23b7e5 0%, #51c6ea 100%);
  background-image: -o-linear-gradient(left, #23b7e5 0%, #51c6ea 100%);
  background-image: linear-gradient(to right, #23b7e5 0%, #51c6ea 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff23b7e5', endColorstr='#ff51c6ea', GradientType=1);
}
@media only screen and (min-width: 768px) {
  .topnavbar .navbar-header {
    background-image: none;
  }
}
.topnavbar .navbar-nav > li > a,
.topnavbar .navbar-nav > .open > a {
  color: #23b7e5;
}
.topnavbar .navbar-nav > li > a:hover,
.topnavbar .navbar-nav > .open > a:hover,
.topnavbar .navbar-nav > li > a:focus,
.topnavbar .navbar-nav > .open > a:focus {
  color: #117391;
}
.topnavbar .navbar-nav > .active > a,
.topnavbar .navbar-nav > .open > a,
.topnavbar .navbar-nav > .active > a:hover,
.topnavbar .navbar-nav > .open > a:hover,
.topnavbar .navbar-nav > .active > a:focus,
.topnavbar .navbar-nav > .open > a:focus {
  background-color: transparent;
}
.topnavbar .navbar-nav > li > [data-toggle='navbar-search'] {
  color: #ffffff;
}
.topnavbar .nav-wrapper {
  background-color: #23b7e5;
  background-image: -webkit-linear-gradient(left, #23b7e5 0%, #51c6ea 100%);
  background-image: -o-linear-gradient(left, #23b7e5 0%, #51c6ea 100%);
  background-image: linear-gradient(to right, #23b7e5 0%, #51c6ea 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff23b7e5', endColorstr='#ff51c6ea', GradientType=1);
}
@media only screen and (min-width: 768px) {
  .topnavbar {
    background-color: #23b7e5;
    background-image: -webkit-linear-gradient(left, #23b7e5 0%, #51c6ea 100%);
    background-image: -o-linear-gradient(left, #23b7e5 0%, #51c6ea 100%);
    background-image: linear-gradient(to right, #23b7e5 0%, #51c6ea 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff23b7e5', endColorstr='#ff51c6ea', GradientType=1);
  }
  .topnavbar .navbar-nav > .open > a,
  .topnavbar .navbar-nav > .open > a:hover,
  .topnavbar .navbar-nav > .open > a:focus {
    box-shadow: 0 -3px 0 rgba(255, 255, 255, 0.5) inset;
  }
  .topnavbar .navbar-nav > li > a,
  .topnavbar .navbar-nav > .open > a {
    color: #ffffff;
  }
  .topnavbar .navbar-nav > li > a:hover,
  .topnavbar .navbar-nav > .open > a:hover,
  .topnavbar .navbar-nav > li > a:focus,
  .topnavbar .navbar-nav > .open > a:focus {
    color: #117391;
  }
}
/* ========================================================================
   Component: sidebar
 ========================================================================== */
.sidebar {
  background-color: #ffffff;
}
.sidebar .nav-heading {
  color: #919da8;
}
.sidebar .nav > li > a,
.sidebar .nav > li > .nav-item {
  color: #515253;
}
.sidebar .nav > li > a:focus,
.sidebar .nav > li > .nav-item:focus,
.sidebar .nav > li > a:hover,
.sidebar .nav > li > .nav-item:hover {
  color: #23b7e5;
}
.sidebar .nav > li > a > em,
.sidebar .nav > li > .nav-item > em {
  color: inherits;
}
.sidebar .nav > li.active,
.sidebar .nav > li.open,
.sidebar .nav > li.active > a,
.sidebar .nav > li.open > a,
.sidebar .nav > li.active .nav,
.sidebar .nav > li.open .nav {
  background-color: #fcfcfc;
  color: #23b7e5;
}
.sidebar .nav > li.active > a > em,
.sidebar .nav > li.open > a > em {
  color: #23b7e5;
}
.sidebar .nav > li.active {
  border-left-color: #23b7e5;
}
.sidebar-subnav {
  background-color: #ffffff;
}
.sidebar-subnav > .sidebar-subnav-header {
  color: #515253;
}
.sidebar-subnav > li > a,
.sidebar-subnav > li > .nav-item {
  color: #515253;
}
.sidebar-subnav > li > a:focus,
.sidebar-subnav > li > .nav-item:focus,
.sidebar-subnav > li > a:hover,
.sidebar-subnav > li > .nav-item:hover {
  color: #23b7e5;
}
.sidebar-subnav > li.active > a,
.sidebar-subnav > li.active > .nav-item {
  color: #23b7e5;
}
.sidebar-subnav > li.active > a:after,
.sidebar-subnav > li.active > .nav-item:after {
  border-color: #23b7e5;
  background-color: #23b7e5;
}
/* ========================================================================
   Component: offsidebar
 ========================================================================== */
.offsidebar {
  border-left: 1px solid #cccccc;
  background-color: #ffffff;
  color: #515253;
}


/* ========================================================================
   Tuc Tuc > CUSTOM
 ========================================================================== */
.form-group-1line {margin-bottom: 0!important}

table.dataTable tbody td {
  padding: 3px 10px!important;
}

.modal-footer {clear: both}

/* select */
select {
  box-shadow: none!important;
  height: 35px!important;
  padding: 5px 10px!important;
  font-size: 12px!important;
  line-height: 1.5!important;
  color: #3a3f51!important;
  background-color: #ffffff!important;
  background-image: none!important;
  border: 1px solid #dde6e9!important;
  border-radius: 4px!important;
  font-weight: normal!important;
}

@media only screen and (min-width: 768px) {
  .form-inline .form-group {margin-right: 10px}
}


/* siglas */
.dt-buttons .dt-button {
  clear: both!important;
}


/* inputs sizes */
.input_size1 {width: 15px!important}
.input_size2 {width: 30px!important}
.input_size3 {width: 35px!important}


/* colores */
.info {color: #23b7e5} /* azul claro */
.primary {color: #5d9cec} /* azul oscuro */
.danger {color: #f05050} /* rojo */
.warning {color: #ff902b} /* naranja */
.success {color: #27c24c} /* verde */
.default {color: #666} /* negro */

/* ajuste botón eliminar (trash) - tabla sizes */
.fa.fa-trash.danger.pull-right {
  margin: 0 !important;
  padding: 4px 0 0 0 !important;
}
.listado.fa-file-pdf-o {
  color: #f05050;
}
.detalles.fa-file-pdf-o {
    color: #FFFFff;
}


/* ========================================================================
   = DMS Directive                                                        =
   ======================================================================== */

#dms-panel {
  position: relative;
  min-width: 300px;
}

#dms-panel .tab-content {
  height: 395px;
  overflow: hidden;
}

.dms-files, .dms-preview {
  position: relative;
  height: 320px;
  padding: 10px 0;
}

.dms-files .list-group {
  box-sizing: content-box;
  border: 1px solid #ccc;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.dms-files .list-group-item {
  border-left: none;
  cursor: pointer;
}

.dms-files .list-group-item:first-child {
  border-top: none;
}

.dms-files .list-group-item:last-child {
  border-bottom: none;
}

.dms-versions .list-group-item {
  cursor: initial;
}

.dms-preview {
  display: block;
  border: none;
  text-decoration: none;
}

.dms-preview img {
  cursor: zoom-in;
  display: block;
  border: 1px solid #ccc;
  margin: 0 auto;
  width: 100%;
  height: 300px;
  overflow: hidden;
  object-fit: contain;
}

.dms-preview span {
  cursor: zoom-in;
  background-color: rgba(250, 250, 250, .7);
  color: rgb(51, 51, 51);
  display: block;
  width: 100%;
  overflow-y: hidden;
  text-align: center;
  padding: 10px;
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 11px;
}

.dms-document,
.dms-content,
.dms-content-version {
  display: flex;
  align-items: center;
  flex-direction: row;
}

.dms-document img,
.dms-content img,
.dms-content-version img {
  object-fit: cover;
}

.dms-content-version {
  flex: 1;
}

.dms-document > *,
.dms-content > *,
.dms-content-version > * {
  margin: 0 5px;
}

.dms-document > :first-child,
.dms-content > :first-child {
  margin-left: 0;
}

.dms-document > :last-child,
.dms-content > :last-child {
  margin-right: 0;
}

.dms-versions {
  border: 1px dashed rgb(204, 204, 204);
  margin-top: 10px;
}

.dms-versions .list-group-item {
  background-color: rgb(250, 250, 250);
}

.dms-actions {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.dms-actions button {
  margin-right: 10px;
}

.dms-actions button:last-child {
  margin-right: 0;
}

.dms-menu {
  /* WA: Make sure the menu is positioned on top */
  z-index: 10000 !important;
}

.dms-more-link {
  display: block;
  text-align: center;
}

.dms-favourite-icon {
  color: rgba(250, 190, 70, .96);
}

.dms-hidden-input {
  overflow: hidden;
  width: 0;
  height: 0;
}

.dms-uploader {
  position: fixed;
  top: 40%;
}

.dms-uploader .modal-body {
  display: flex;
  flex-direction: column;
}

.dms-uploader-message {
  padding: 20px 6px;
  display: flex;
  flex-direction: row;
}

.dms-uploader-message span {
  padding-left: 20px;
}

.dms-spinner {
  display: inline-block;
  background-image: url('../views/dms/spinner.gif');
  background-repeat: no-repeat;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
}

.dms-drop-zone {
  display: none;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  font-weight: 700;
  font-size: 1em;
}

.dms-drop-zone > div {
  border: 2px dotted rgba(56, 56, 56, .5);
  background-color: rgba(250, 250, 250, .5);
  border-radius: 10px;
  padding: 40px;
}

.dms-drop-zone > div p {
  margin: 0;
}

.dms-file-over .dms-drop-zone {
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-dms-preview {
  width: 36px;
  height: 36px;
  min-height: 36px;
  margin: 0 auto;
  overflow: hidden;
  object-fit: cover;
}

.dms-document > img[mime-type^='image/'],
.dms-document > img[mime-type='application/pdf'],
.img-dms-preview:not([src='']) {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #eee;
}

.dms-media {
  min-height: 36px;
}

/* < END of DMS Directive */

.pink {
  color: #CC0099;
}

.pink-pattern {
  color: #CC0099;
  font-style: italic;
  font-family: sans-serif;
}

.red-pattern{
  color: #f05050;
  font-weight: bolder;
  text-shadow: 1px 0px 0px;
}

.red{
  color: #f05050;  
}

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

.selectedRow{
  background-color: #B0BED9!important;
}

/* WA: Disable sidenav animation flickering */

.sidebar > .nav > li {
  transition: width 0s, border-left-color 0s;
}

.sidebar .nav > li > a {
  animation: fadeInLeft .1s;
}

.sidebar > .nav > li > a > span {
  animation: fadeIn .1s;
}

/* Module buttons */

.main-navigation {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.main-navigation .btn {
  margin: 10px 6px;
}

/* WA: Brand logo */

.topnavbar .navbar-header .brand-logo {
  padding: 7px 15px 4px;
}

.topnavbar .navbar-right {
  margin-right: 1px;
}

/* Form validation */

.required:after {
  content: ' *';
  color: red;
}

.input-message {
  min-height: 3ex;
}

.validation-message {
  color: red;
  font-size: .9em;
}

.form-error {
  color: red;
}


/* Progress dialog */

.progress-dialog {
  position: fixed;
  top: 40%;
}

.progress-dialog .modal-body {
  display: flex;
  flex-direction: column;
}

.progress-message {
  padding: 20px 6px;
  display: flex;
  flex-direction: row;
}

.progress-message span {
  padding-left: 20px;
}

.progress-spinner {
  display: inline-block;
  background-image: url('../views/dialogs/spinner.gif');
  background-repeat: no-repeat;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
}

/* Pagination directive */

ul.pagination a.active {
  font-weight: 700;
  background-color: #eee;
}

/* Custom table styles */

.uc-table-wrapper,
.uc-content-wrapper {
  position: relative;
  min-height: 250px;
  overflow-x: auto;
}

.uc-backdrop {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
}

table.compact-table > tbody > tr > td,
table.compact-table > thead > tr > th {
  padding-left: 2px !important;
  padding-right: 2px !important;
}

table.chunked-table > tbody:before {
  content: '';
  display: block;
  height: 5px;
}

thead .checkbox {
  margin-top: 0px;
  margin-bottom: 0px;
}

tr.highlighted-row * {
  font-weight: 700;
}

th.table-chunk-header {
  font-size: 10pt;
  padding: 4px 10px !important;
  border-top: 2px solid rgba(35, 183, 229, .2);
  border-bottom: 2px solid rgba(35, 183, 229, .2);
  background-color: rgba(35, 183, 229, .06);
}

td.shrink-column,
th.shrink-column {
  width: 1px;
  white-space: nowrap;
}

td.press-column,
th.press-column,
table.dataTable tbody td.press-column,
table.dataTable tbody th.press-column {
  padding-left: 2px !important;
  padding-right: 2px !important;
}

/* Custom styles for uiSelect */

.ui-select-choices-row .default-choice {
  margin-bottom: -3px;
  border-bottom: 1px dotted #777;
}

.ui-select-choices-row.active .default-choice {
  border-color: #fff;
}

.ui-select-choices-row .select-item {
  display: flex;
  flex-direction: row;
  padding: 3px 0px;
}

.ui-select-choices-row .select-name {
  flex: 1;
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.ui-select-match-text .picked-name {
  text-overflow: ellipsis;
}

.ui-select-choices-row .select-description {
  color: #999;
  font-size: .9em;
  margin-left: 6px;
  align-self: center;
}

.ui-select-choices-row.active .select-description {
  color: #ccc;
}

.ui-select-large {
  min-width: 250px;
}

.ui-select-medium {
  min-width: 200px;
}

.ui-select-small {
  min-width: 160px;
}

@media (min-width: 756px) {
  .ui-select-large {
    max-width: 250px;
  }
  
  .ui-select-medium {
    max-width: 200px;
  }
  
  .ui-select-small {
    max-width: 160px;
  }
}

/* This class hides elements that will be shown only when
   printing the current page */

.only-print {
  display: none;
}

/* WA: Fix sizing of ui-select on inline forms */

.form-inline .ui-select-search-hidden {
  position: absolute;
}

.form-inline .ui-select-toggle {
  width: 100% !important;
}

/* WA: Custom syles for the user-editor */

.users-edit-page .panel-heading h4 {
  margin: 0;
}

.user-edition-form .form-group {
  margin: 0;
}

.user-edition-form .control-label {
  display: block;
}

@media (min-width: 935px) {
  
  .users-flex {
      display: flex;
  }
  
  .users-flex .flex-left {
      margin-right: 10px;
      max-width: 50%;
      width: 50%;
  }
  
  .users-flex .flex-right {
      margin-left: 10px;
      max-width: 50%;
      width: 50%;
  }

}

/* Custom syles for the style status page */

.stylestatus-page .fixed-width {
  width: 5.4em;
  min-width: 5.4em;
  max-width: 5.4em;
}

.stylestatus-page .fabrics-table {
  table-layout:fixed;
  width: 100%;
}

.stylestatus-page .fabrics-code-td {
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stylestatus-page .btn-date {
  padding: 6px 2px;
  border:1px solid darkgrey;
}

.stylestatus-page .style-done {
  color: #000;
  font-weight: 700;
  background-color: rgba(0, 255, 0, 0.3);
}

.stylestatus-page .style-1days {
  background-color: rgba(255, 0, 0, 0.3);
}

.stylestatus-page .style-7days {
  background-color: rgba(255, 127, 0, 0.7);
}

.stylestatus-page .style-14days {
  background-color: rgba(255, 255, 0, 0.3);
}

/* Custom styles for the samples page */

.ko-comments,
.ko-resend {
  background-color: rgba(255, 0, 0, 0.3);
}

/* Custom styles for the negotiations page */

.accepted-price,
.not-accepted-price {
  margin: auto;
  padding: 2px 4px;
  min-width: 5em;
  max-width: 7em;
}

.accepted-price {
  background-color: rgba(255, 0, 0, 0.3) !important;
}

.accepted-price.ng-invalid,
.not-accepted-price.ng-invalid {
  border-color: red;
}

/* PDF file links */

a.file-link {
  color: #f05050;
}

/* Styles for the article components */

.history-marker {
  width: 22px;
  margin-right: 6px;
  text-align: center;
}

.history-counter {
  background: white;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-weight: bold;
  font-size: .9em;
  text-align: center;
  width: 2em;
  display: inline-block;
}

.line-code {
  color: 1px solid #999;
  font-weight: bold;
  margin-right: .6em;
  text-align: right;
  width: 2.8em;
  white-space: nowrap;
}

.line-code:after {
  content: '.';
}

/* Preformated text blocks */

.text-block {
  border: 1px solid #dde6e9;
  min-height: 20em;
}

.text-block > p {
  padding: 1em;
  white-space: pre-wrap;
}

/* WA: Fix Firefox spinner apparence */

input[type='number']:disabled {
  -moz-appearance: textfield;
}

/* WA: Make uiSelect's caret clickable (uiSelect bug #1797) */

.ui-select-bootstrap .ui-select-toggle > .caret {
  display: none;
}

.ui-select-bootstrap .ui-select-toggle::after {
  font-family: FontAwesome;
  content: "\f0d7";
  position: absolute;
  right: .8em;
}