@import 'variables';

/* General */

body {
    font-family: 'Asap', sans-serif;
    color:$dark-grey;
}
a {
    color: $primary-color;
}
a, a:hover, a:focus {
    color: $secondary-color;
    text-decoration: none;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}
button:hover {
    background-color: rgba(0,0,0,0.05);
    cursor: pointer;
}
hr {
    margin: 26px 0 26px 0;
}
.hidden {
    display: none;
}

/*///// Fonts
*/

h1 {
    font-size: 1.4rem;
}
h2 {
    font-size: 1.2rem;
}
h3 {
    font-size: 1rem;
}
h4 {
    font-size: 0.8rem;
}

/* ///// Button styles
*/

.btn-primary {
    color: #FFFFFF;
    background-color: $primary-color;
    border-color: $primary-color;
}
.btn-primary:hover {
    background-color: $secondary-color;
    border-color: $secondary-color;
}
.btn-primary.disabled, .btn-primary:disabled {
  color: $grey;
  background-color: $light-grey;
  border-color: $light-grey;
}
.btn-secondary {
    color: #FFFFFF;
    background-color: $grey;
    border-color: $grey;
}
.btn-secondary:hover {
    background-color: #848C85;
    border-color: #848C85;
}
.btn-secondary.disabled, .btn-secondary:disabled {
  color: $grey;
  background-color: $light-grey;
  border-color: $light-grey;
}
.btn-light {
    background-color: #FFFFFF;
    border: solid 1px rgba(0,0,0,0.2);
}
.btn-light:hover {
    background-color: #F0F0F0;
}
.btn-light.disabled, .btn-light:disabled {
  color: #8D938D;
  border-color: $light-grey;
}
.btn-outline-primary {
    color: $primary-color;
    border-color: $primary-color;
}
.btn-outline-primary:hover {
    color: $primary-color;
    border-color: $primary-color;
    background-color: #F9FDF3;
}
.btn-outline-primary.disabled, .btn-outline-primary:disabled {
  color: #A7ABA6;
  border-color: $light-grey;
}
.btn-outline-secondary {
    color: $grey;
    border-color: $grey;
}
.btn-outline-secondary:hover {
    color: $grey;
    border-color: $grey;
    background-color: #E4E4E4;
}
.btn-outline-secondary.disabled, .btn-outline-secondary:disabled {
  color: #A7ABA6;
  border-color: $light-grey;
}
.btn-outline-danger {
    color: #D25836;
    border-color: #D25836;
}
.btn-outline-danger:hover {
    color: #D25836;
    border-color: #D25836;
    background-color: #FFECE7;
}
.btn-outline-danger.disabled, .btn-outline-danger:disabled {
  color: #A7ABA6;
  border-color: $light-grey;
}
.btn-warning {
    color: #FFFFFF;
    background-color: #FF9A3C;
    border-color: #FF9A3C;
}
.btn-warning:hover {
    color: #FFFFFF;
    background-color: #FFAA5B;
    border-color: #FFAA5B;
}
.btn-warning.disabled, .btn-warning:disabled {
  color: #A7ABA6;
  border-color: $light-grey;
}
a.btn .icon {
    color: $grey;
    margin-right: 10px;
}

/* ///// Tabs
*/

.wrapper-tabs {
    margin-bottom: 30px;
}

/* ///// Pills
*/
.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
  color: $dark-grey;
  background: #ECEEEA;
}
.nav-pills .nav-link .icon {
  margin-right: 6px;
}
/* Navigation steps */

ul.nav-indicators {
    margin: 22px 0 30px 0;
    padding: 8px;
    background-color: #F5F5F5;
    border-radius: 6px;
    a {
    padding: 4px;
    margin: 6px;
    display: inline-block;
    }
    li.active a {
    color: $primary-color;
    font-weight: 500;
    border-bottom: 4px solid $primary-color;
    }
    li.active a:hover {
    color: $primary-color;
    background-color: transparent;
    }
    li.disabled a {
    color: #A7ACA7;
    }
    li.disabled a:hover {
    color: #A7ACA7;
    background-color: transparent;
    }
}
/* Dropdown */

button.dropdown-toggle {
    color: $grey;
}
.dropdown-item {
    padding-left: 1rem;
    .icon {
    margin-right: 8px;
    color: $grey;
    }
    a:hover {
    cursor: pointer;
    }
}

/* Tables styles */

.table thead th {
    background-color: #F7F7F7;
    border-top: 0;
    border-bottom: 2px solid rgba(0,0,0,0.15);
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #F7F7F7;
    border-top: 0;
}
.table-striped td, .table-striped th  {
    border-top: none;
}

/* Form styles */

label {
    font-size: 0.85rem;
    font-weight: 500;
    color: $grey;
    display: block;
}
.form-row > div {
    margin-bottom: 20px;
}
.form-row > div:nth-child(odd) {
    padding-right: 30px;
}
ul.errorlist {
    list-style: none;
    padding: 0;
    color: #D25836;
    font-size: 0.9rem;
    li {
    padding: 5px 0;
  }
}

/* Search form */
#id_buscar_btn{
  margin-top: 0;
}
#wrapper-search {
    margin-bottom: 40px;
}
#wrapperSearchForm {
    padding: 20px 0;
    border-bottom: 2px solid rgba(0,0,0,0.15);
}
#wrapperSearchForm .btn-primary {
    padding-left: 40px;
    padding-right: 40px;
    
}
#btnCollapse[data-toggle="collapse"] {
    text-align: left;
    position: relative;
    padding: 14px 14px;
    background-color: #ECEEEA;
}
#btnCollapse.collapsed {
    background-color: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.15);
}
#btnCollapse:hover {
    background-color: #F0F0F0;
}
#btnCollapse[aria-expanded="false"]::before, #btnCollapse[aria-expanded="true"]::before {
    content: '\e904';
    display: block;
    position: absolute;
    right: 16px;
    top: 14px;
    font-family: 'oml-icons';
    font-size: 1rem;
}
#btnCollapse[aria-expanded="true"]::before {
    content: '\e907';
}
#btnCollapse .icon {
    font-size: 0.8rem;
    margin-right: 10px;
}
.typetransf-secondcolumn {
  margin-left: 20px;
}
.typetransf-secondcolumn-number {
  margin-left: 33px;
  width: 250px !important;
}
.typetransf-secondcolumn-agent {
  margin-left: 45px;
}
.typetransf-firstcolumn {
  margin-left: 50px;
}
/* Select widget */

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: $primary-color !important;
    color: white;
}

/* date-range widget */

.daterangepicker {
    .ranges li {
    background: #FFFFFF;
    border: 1px solid transparent;
    color: $dark-grey;
    padding: 6px 12px;
    margin-bottom: 2px;
    }
    .range_inputs {
    margin-top: 8px;
    }
    .btn-success {
    background-color: $primary-color;
    border-color: $primary-color;
    }
    .btn-success:hover {
    background-color: $primary-light-color;
    border-color: $primary-color;
    }
    .ranges li.active {
    background: $primary-color;
    border: 1px solid $primary-color;
    color: #fff;
    }
    .ranges li.active {
    background: $primary-color;
    border: 1px solid $primary-color;
    color: #fff;
    }
    .ranges li:hover {
    background: $primary-color;
    border: 1px solid $primary-color;
    color: #fff;
    }
    td.active, td.active:hover {
    background-color: $primary-color;
  }

}
/* Datetime picker widget */

.bootstrap-datetimepicker-widget.dropdown-menu {
    width: 14em;
}
.bootstrap-datetimepicker-widget table td.active, .bootstrap-datetimepicker-widget table td.active:hover {
    background-color: $primary-color;
}
.bootstrap-datetimepicker-widget table td span.active {
    background-color: $primary-color;
}

/* Modals */

.modal-title {
    line-height: 1.4rem;
    .icon {
    margin-right: 10px;
    }
} 
.modal-body p {
    word-break: break-all !important;
}
#transfer-modal select {
  width: 250px;
}

/* Queries */

@media (min-width: 768px) {

    /* ///// Main menu/navBar
    */

    #navBar {
        background-color: #FFFFFF;
        border-bottom: 2px solid rgba(0,0,0,0.15);
        padding-top: 30px;
        padding-left: 10px;
        .main-menu-li {
        display: inline-block;
        }
        ul li a {
        padding: 8px 12px 8px 2px;
        color: $dark-grey;
        text-transform: uppercase;
        }
        .icon {
        font-size: 14px;
        color: $grey;
        }
        ul.submenu {
        min-width: 220px;
        background-color: #FFFFFF;
        border: 1px solid rgba(0,0,0,0.1);
        position: absolute;
        left: 0px;
        top: 44px;
        display: none;
        border-radius: 6px;
        -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.15);
                box-shadow: 1px 1px 1px rgba(0,0,0,0.15);
        z-index: 100;
        }
        ul.submenu a {
        display: block;
        padding: 8px 10px 8px 28px;
        text-transform: initial;
        }
        ul.submenu a:hover {
        background-color: rgba(0,0,0,0.05);
        }
    } 
    #navBar > ul > li {
        padding: 10px;
        position: relative;
    }
    #navBar > ul > li:hover {
        background-color: rgba(0,0,0,0.05);
        cursor: pointer;
        border-radius: 6px;
    } 
    #navBar > ul > li:hover ul.submenu {
        display: block;
    }
    #navMainMenu {
      display: flex;
      align-items: center;
    }
    #nav-logo {
      margin-right: 30px;
    }
}

/* Navbar chevron icons */

#navBar a[data-toggle="collapse"] {
    position: relative;
}
#navBar a[aria-expanded="false"]::before, #navBar a[aria-expanded="true"]::before {
    content: '\e904';
    display: block;
    position: absolute;
    right: -6px;
    top: 12px;
    font-family: 'oml-icons';
    font-size: 0.6em;
}
#navBar a[aria-expanded="true"]::before {
    content: '\e907';
}

/* top bar */

#topBar {
    height: auto;
    padding: 0;
    display: initial;
    -webkit-box-align: initial;
    -ms-flex-align: initial;
    align-items: initial;
    position: absolute;
    top: 0px;
    right: 10px;
    .icon {
    margin-right: 4px;
    }
    .dropdown {
    position: initial;
    }
}
#sidebarCollapse {
  display: none;
}

/* Content */

iframe {
  border: 0;
}
body > h1 {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.crm {
  width: 100%;
  height: 700px;
  background-color: transparent;
  margin-bottom: 100px;
}

.agent-console-iframe {
    border: none;
    display: block;
    height: calc(100vh - 111px - 59px - 34px - 30px);
    margin: 0;
    padding: 0;
    width: 100%;
}

.whatsapp_panel_view {
  width: 600px;
  height: 850px;
  background-color: transparent;
}

.whatsapp_iframe_container {
  margin: 0;
  padding: 0;
  width: 100%;
  display: block;
  border: none;
}

/* Other */

.infoAjax {
  font-size: 16px; font-style: normal; font-weight: lighter;
}
.barInfo {
  color: white;
  font-family: monospace
}

/*.toolbar {
  position: fixed;
  top: 8%;
  left: 0px;
  height: 30px;
  width: 100%;
  background-color: #2E2E2E;
}*/

/* Time bar */

#timeBar {
  background-color: #ECEEEA;
  padding: 14px 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
#timers  div {
  display: inline;
}
#timers label {
  margin: 0;
}
#operationTime, #pauseTime, #sumTime {
  margin-right: 10px;
}
#UserStatus {
  background-color: rgba(255,255,255,0.65);
  border-radius: 14px;
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
  padding: 7px 10px 9px 14px;
  margin-right: 10px;
}
#timersControls {
  margin-left: auto;
}
#timersControls .icon {
  margin-right: 4px;
  vertical-align: middle;
}
/* Admin content area */

.wrapper-content {
    width: 100%;
    overflow-x: auto;
}
.wrapper-info {
    padding: 34px 20px 30px 20px;
}
.wrapper-info h2 {
    margin-bottom: 14px;
}

#wrapperInner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}
#wrapperInnerContent {
    width: 100%;
}
#wrapperWebphone {
    min-width: 300px;
    max-width: 300px;
    margin-right: -300px;
    background: #FFFFFF;
    -webkit-box-shadow: inset 3px -1px 3px 0 rgba(0,0,0,0.20);
    box-shadow: inset 3px -1px 3px 0 rgba(0,0,0,0.20);
    -webkit-transition: 0.3s;
    transition: 0.3s;
    display: none;
}
#wrapperWebphone.active {
    min-width: 300px;
    max-width: 300px;
    margin-right: 0;
    display: inline-block;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}
.webphone-header {
    padding: 10px 12px;
    position: relative;
}
#btnCloseWebphone {
    position: absolute;
    top: 4px;
    right: 8px;
    padding: 8px 14px;
}
.webphone-body {
    padding: 0 10px;
}

/* ///// Phone
*/
#modalWebCall .modal-content {
  width: 350px;
}
#phoneStatus {
  text-align: center;
  color: $grey;
}
#phoneKeys {
  margin-top: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 0 10px 10px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
#phoneKeys button {
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 4px;
  border-width: 2px;
  border-radius: 50px;
}

#phoneKeysNumbers button {
  color: $primary-color;
}
#phoneKeysNumbers .astBtn {
  font-size: 3rem;
  line-height: 3.5rem;
}
#phoneKeysActions {
  margin-left: auto;
}
#phoneKeysActions button {
  display: block;
  margin-bottom: 8px;
}
#phoneOptions {
  text-align: center;
  padding: 10px 0;
  #sumTime {
  margin-right: 0;
  margin-bottom: 16px;
  }
  .btn-group {
  margin-right: 10px;
  margin-bottom: 18px;
  }
} 
#changeCampAssocManualCall {
  width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filaCampoNroDiscar {
  margin: 5% 0 5% 0;
  width: 90%;
}

.paddingNull {
  padding: 0;
}

.cuerpoLlamEntrante {
  padding-left: 5%
}
.libreta {
  overflow: scroll;
  height: 140px;
}
#transferToSurveyContainer{
    border-top: #e9ecef solid 1px;
}
#makeTransferToSurvey{
    position: relative;
    left: 50px;
}

/* Modal webchat */

#modalwebChat .modal-body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
#webchatWindow {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
#webchatInfo {
  background-color: #ECEEEA;
  border-radius: 4px;
  padding: 8px;
  margin-left: 20px;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

/* Modal facebook chat */

#modalFacebook .modal-body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
#modalFacebook .modal-body > div:first-of-type {
  -webkit-box-flex: 2;
      -ms-flex: 2;
          flex: 2;
  background-color: #ECEEEA;
  border-radius: 4px;
  margin-right: 20px;
}
#modalFacebook .modal-body > div:last-of-type {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

/* ///// Chat windows
*/

.chatWindow {
  height: 410px;
  width: 400px;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid #CBCEC7;
  overflow-y: scroll;
}
.chatWindowActions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.chatWindowActions > div:first-of-type {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  margin-right: 10px;
}
.chatWindowActions .dropdown {
  display: inline-block;
}

/* Page qualifications */

.wrapper-dropdown {
  position: absolute;
  top: 0;
  right: 0;
}

/* ///// Bottom bar
*/
.container-toolbar {
  display: flex;
  justify-content: center; 
}
#bottomBar div {
  visibility: hidden;
}
#bottomBar:hover div  {
  visibility: visible;
}
#bottomBar {
  height: 80px;
  position: fixed;
  bottom: 0px;
  padding: 10px 0;
  color: #FFFFFF;
  text-align: center;
  div.iconApp {
  width: 48px;
  height: 48px;
  margin: 0 10px;
  border: solid $grey 2px;
  border-radius: 100px;
  background-color: #FFFFFF;
  font-size: 1.6rem;
  line-height: 3.2rem;
  cursor: pointer;
  }
  #txtSms {
  color: $grey;
  }
  #webCall {
  color: #52C159;
  }
  #webChat {
  color: $grey;
  }
  #facebookChat {
  color: $grey;
  }
}
#bottomBar > div {
  display: inline-block;
} 

#bottomBar > div > div:last-of-type {
  color: #FFFFFF;
  text-transform: uppercase;
  font-size: 0.6rem;
  opacity: 0.7;
  margin-top: 5px;
}
.tablas {
  position: fixed;
  bottom: 3%;
  /*position: absolute;*/
  z-index: 1;
}
.iconApp:hover {
  position: relative;
  -webkit-animation-name: example;
  -webkit-animation-duration: 0.6s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
  -moz-animation-name: example;
  -moz-animation-duration: 0.6s;
  -moz-animation-iteration-count: infinite;
  -moz-animation-direction: alternate;
}
@-webkit-keyframes example {
    0%   {left:0px; top:0px;}
    75%  {left:0px; top:5px;}
    100% {left:0px; top:0px;}
}
@keyframes example {
    0%   {left:0px; top:0px;}
    75%  {left:0px; top:5px;}
    100% {left:0px; top:0px;}
}

/* ///// Media queries ////*/

@media (max-width: 768px) {
    .wrapper-main {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: stretch;
            -ms-flex-align: stretch;
                align-items: stretch;
    }
    .wrapper-info {
        padding: 30px;
    }

    /* ///// Main menu/navBar
    */

    #navBar {
        min-width: 220px;
        max-width: 220px;
        min-height: 100vh;
        margin-left: -220px;
        padding-top: initial;
        background-color: #ECEEEA;
        -webkit-transition: 0.3s;
        transition: 0.3s;
        .icon {
        width: 14px;
        font-size: 14px;
        color: $grey;
        position: absolute;
        left: 10px;
        top: 12px;
        }
        ul li a {
        display: block;
        padding: 8px 12px 8px 34px;
        color: $grey;
        }
        .icon.active {
        color: #000000;
        }
        ul li a:hover {
        background-color: rgba(0,0,0,0.05);
        }
        .submenu, a[aria-expanded="true"] {
        background-color: rgba(0,0,0,0.05);
        }
        .submenu a {
        padding-left: 34px;
        }
        ul a.active {
        background-color: $primary-color;
        color: #ffffff;
        }
        .main-menu-li {
        display: initial;
        }
        ul a.active:hover {
        background-color: #80B13A;
        }
    } 
    #navBar > ul > li {
        padding: initial;
        position: relative;
    } 
    #navBar.active {
        margin-left: 0;
        min-width: 220px;
        max-width: 220px;
    }

    /* ///// Navbar chevron icons */

    #navBar a[aria-expanded="false"]::before, #navBar a[aria-expanded="true"]::before {
        right: 10px;
    }

    /* ///// Top bar */

    #sidebarCollapse {
      display: inline-block;
    }
    #topBar {
        height: 60px;
        padding: 0 20px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        position: relative;
        border-bottom: 2px solid rgba(0,0,0,0.15);
        top: initial;
        right: initial;
        .dropdown {
        position: absolute;
        right: 20px;
        top: 10px;
        }
        .user-name {
        display: none;
        }
    }

    /* Time bar */

    #timers div {
      display: block;
    }
}

/* Video Llamadas */
#buttonVideo {
  position: fixed;
  top: 150px;
  height: 150px;
  width: 55px;
  padding: 0;
  opacity: 0.75;
  z-index: 1000;
  right: 300px;
}
#video-container{
  position: fixed;
  right: 370px;
  top: 150px;
  width: 640px;
}
#reload_video_id{
  position: fixed;
  top: 150px;
  right: 360px;
  z-index: 1001;
  background-color: white;
}
/* Agendas */
.btn-warning-agenda {
background-color: $warning-agenda;
border-radius: 6px;
}
