
@import 'variables';

/*///// General */
html {
    height: 100%;
}
body {
    height: 100%;
    font-family: 'Asap', sans-serif;
    color: $dark-grey;
}
a {
    color: $primary-color;
}
a, a:hover, a:focus {
    color: $secondary-color;
    text-decoration: none;
    transition: all 0.3s;
}
.not-link {
  color: black;
}
button:hover {
    background-color: rgba(0,0,0,0.05);
    cursor: pointer;
}
.hidden {
    display: none;
}
.wrapper-main {
    display: flex;
    align-items: stretch;
}

/*///// 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 !important;
    background-color: $primary-color;
    border-color: $primary-color;
}
.btn-primary:hover {
    background-color: $primary-light-color;
    border-color: $primary-color;
}
.btn-light {
    background-color: #FFFFFF;
    border: solid 1px rgba(0,0,0,0.2);
}
.btn-light:hover {
    background-color: #F0F0F0;
}
.btn-outline-primary {
    color: $primary-color !important;
    border-color: $primary-color;
}
.btn-outline-primary:hover {
    color: $primary-color !important;
    border-color: $primary-color;
    background-color: #F9FDF3;
}
.btn-outline-danger {
    color: #D25836 !important;
    border-color: #D25836;
}
.btn-outline-danger:hover {
    color: #D25836 !important;
    border-color: #D25836;
    background-color: #FFECE7;
}
a.btn .icon {
    color: $grey;
    margin-right: 10px;
}

/* ///// Others
*/

hr {
    margin: 26px 0 26px 0;
}
hr.hr-space {
    border: transparent;
}
table hr {
    margin: 6px 0 6px 0;
}
span.label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-left: 4px;
}

/* ///// Tabs
*/

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

/*///// Jumbotron
*/

.jumbotron {
    padding: 1rem 1.5rem;
    background-color: rgba(0,0,0,0.05);
}

/*///// Text style
*/

.display-1 {
    font-size: 3rem;
}
.display-2 {
    font-size: 2.5rem;
}
.display-3 {
    font-size: 2rem;
    margin-bottom: 0;
}
.display-4 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

/* ///// 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 */
.wrapper-table {
    margin-bottom: 40px;
}
.table-tall {
    max-height: 440px;
}
.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;
}
.btn-collapse-table[data-toggle="collapse"] {
    text-align: left;
    position: relative;
    padding-right: 40px;
}
.btn-collapse-table[aria-expanded="false"]::before, .btn-collapse-table[aria-expanded="true"]::before {
    content: '\e904';
    display: block;
    position: absolute;
    right: 10px;
    top: 6px;
    font-family: 'oml-icons';
    font-size: 0.8rem;
}
.btn-collapse-table[aria-expanded="true"]::before {
    content: '\e907';
}
table .collapse {
    opacity: 0.7;
}
table .icon {
    margin-right: 6px;
}
/* ///// Tables small
*/

.table-sm td, .table-sm th {
    padding: .6rem;
}

/* ///// 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;
}
ul.errorlist li {
    padding: 5px 0;
}

/* ///// Search form
*/

#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;
    margin-top: 10px;
}
#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;
}

/* ///// Pagination
*/

.page-link, .page-link:hover {
    color: $primary-color;
}
.page-item.active .page-link {
    background-color: $primary-color;
    border-color: $primary-color;
}

/* ///// Modals
*/

.modal-title {
    line-height: 1.4rem;
}
.modal-body p {
    word-break: break-all !important;
}
/* ///// Modals
*/
input[type=file].form-control {
    padding: .27rem .3rem;
}

/* ///// 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;
}
.daterangepicker .range_inputs {
    margin-top: 8px;
}
.daterangepicker .btn-success {
    background-color: $primary-color;
    border-color: $primary-color;
}
.daterangepicker .btn-success:hover {
    background-color: $primary-light-color;
    border-color: $primary-color;
}
.daterangepicker .ranges {
	li.active {
    background: $primary-color;
    border: 1px solid $primary-color;
    color: #fff;
	}
	li:hover {
    background: $primary-color;
    border: 1px solid $primary-color;
    color: #fff;
	}
}

.daterangepicker td.active, .daterangepicker 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;
}
/*///// Welcome screen
*/

.wrapper-content.welcome {
    padding-top: 200px;
    text-align: center;
}
.wrapper-content.welcome .btn{
    width: 300px;
    margin-bottom: 20px;
}
.wrapper-content.welcome h4{
    margin-bottom: 40px;
}

/*///// Login screen
*/

.wrapper-content.login {
    padding-top: 65px;
    text-align: center;
}
.wrapper-content.login img {
    width: 270px;
    margin-bottom: 40px;
}
.wrapper-content.login form > div:first-of-type {
    border-bottom: 1px solid rgba(0,0,0,0.15);
    margin-bottom: 30px;
}
.wrapper-content.login input {
    width: 320px;
    margin: auto;
    text-align: center;
}
.wrapper-content.login button {
    width: 320px;
}


/* ///// Admin sidebar menu
*/

.collapsing {
    -webkit-transition: 0.1s;
    transition: 0.1s;
}
#sidebar {
    min-width: 230px;
    max-width: 230px;
    min-height: 100vh;
    background-color: #ECEEEA;
   /* transition: 0.3s;*/
}
.sidebar-header {
    height: 60px;
    background-color: #F5F5F5;
    border-bottom: 2px solid rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;

    #nav-logo {
    width: 160px;
	}
	#nav-logo-symbol {
    width: 34px;
    display: none;
	}
} 
#sidebar > ul > li {
    position: relative;
}
#sidebar {
	ul li a {
    display: block;
    padding: 8px 12px 8px 34px;
    color: $grey;
	}

    .icon {
    width: 14px;
    font-size: 14px;
    color: $grey;
    position: absolute;
    left: 10px;
    top: 12px;
	}

	.icon.active {
    color: #000000;
	}
	
	ul li a:hover {
    background-color: rgba(0,0,0,0.05);
	}
	
	.submenu a {
    padding-left: 34px;
	}
	
	.submenu-two a {
    padding-left: 50px;
	}
	
	ul a.active {
    background-color: $primary-color;
    color: #ffffff;
	}
	
	ul a.active:hover {
    background-color: $secondary-color;
	}
}

#sidebar .submenu, #sidebar .submenu-two, #sidebar a[aria-expanded="true"] {
    background-color: rgba(0,0,0,0.05);
}

/* Sidebar chevron icons */

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

@media (min-width: 768px) {

    #sidebar.active {
        min-width: 60px;
        max-width: 60px;
        
        #nav-logo {
        display: none;
    	}
    	
    	#nav-logo-symbol {
        display: block;
    	}
    	.menu-link {
        background-color: #EBEDE9;
        border-left: 1px solid rgba(0,0,0,0.15);
    	}
    	.menu-link:hover {
        background-color: #DFE1DD;
    	}
    	.menu-link.active {
        background-color: $primary-color;
        color: #ffffff;
    	}
    	.menu-link.active:hover {
        background-color: $secondary-color;
    	}
    	.menu-header {
        background-color: #C9CBC7;
        border-left: 1px solid rgba(0,0,0,0.15);
    	}
    	ul.submenu {
        min-width: 250px;
        background-color: #EBEDE9;
        border-left: 1px solid rgba(0,0,0,0.15);
        position: absolute;
        left: 60px;
        top: 44px;
        display: none;
        z-index: 100;
    	}
    	ul.submenu-two {
        min-width: 250px;
        background-color: #EBEDE9;
        border-left: 1px solid rgba(0,0,0,0.15);
        position: absolute;
        left: 248px;
        top: 0;
        z-index: 100;
    	}
    	ul.submenu a {
        display: block;
        padding: 6px 10px;
    	}
    	.icon {
        width: 100%;
        font-size: 16px;
        color: $dark-grey;
        padding: 14px 22px;
        display: block;
        position: initial;
        left: initial;
    	}
    	.icon.active {
        background-color: rgba(0,0,0,0.1);
    	}
    } 
    #sidebar.active > ul > li, #sidebar.active > ul > li > ul > li {
        position: relative;
    }
    #sidebar.active > ul > li:hover {
        background-color: rgba(0,0,0,0.15);
        cursor: pointer;
    }
    #sidebar.active > ul > li > a {
        min-width: 250px;
        padding: 10px 14px;
        position: absolute;
        left: 60px;
        top: 0;
        display: none;
        z-index: 100;
    }

    /* Change collapsible menu icons */
    #sidebar.active ul.submenu > li > a[aria-expanded="false"]::before, #sidebar.active ul.submenu > li > a[aria-expanded="true"]::before {
        content: '\e906';
        display: block;
        position: absolute;
        right: 10px;
        top: 12px;
        font-family: 'oml-icons';
        font-size: 0.6em;
    }
    #sidebar.active ul.submenu > li > a[aria-expanded="true"]::before {
        content: '\e906';
    } 
    #sidebar.active > ul > li:hover ul.submenu, #sidebar.active > ul > li:hover .menu-link, #sidebar.active > ul > li:hover .menu-header {
        display: block;
    }
    #sidebar.active > ul > li > ul > li:hover ul.submenu-two {
        display: block;
        z-index: 200;
        box-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    }

}

/* Top Admin navigation */

#topbar {
    height: 60px;
    padding: 0 20px;
    background: #ffffff;
    border-bottom: 2px solid rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    position: relative;
    a {
    color: $grey;
	}
}
#nav-user {
    position: absolute;
    top: 10px;
    right: 20px;
}

/* ///// Admin content area
*/

.wrapper-content {
    width: 100%;
    overflow-x: auto;
}
.wrapper-info {
    padding: 34px 50px 30px 50px;
    position: relative;
    h2 {
    margin-bottom: 14px;
	}
	.nav-tabs {
    margin-bottom: 30px;
	}
}
.wrapper-info > h1:first-of-type {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 32px;
}

/* Campaign list */

a span.fa-play, a span.fa-pause-circle {
    color: $secondary-color;
}

/* Campaign dialer */

table.campana-reglas .td-remove .btn {
    margin: 0;
}

/* Badges */

.badge {
    padding: 4px 6px;
    font-size: 0.8rem;
    font-weight: normal;
    color: #ffffff;
}
.badge-outline {
    background: transparent;
    border: 1px solid;
}

/* Supervision */

.wrapper-page-supervision #webphone {
    position: absolute;
    top:30px;
    right:50px;
}
#tableAgBody h3 {
    margin-bottom: 0;
}
#tableAgBody td:nth-child(2), #tableAgBody td:nth-child(3) {
    vertical-align: top;
}
.badge.agent-dialing {
    background: #24B3BC;
}
.badge.agent-oncall {
    background: #B665C4;
}
.badge.agent-ready {
    background: #49AE60;
}
.badge.agent-pause {
    background: #E59800;
}
.badge.agent-offline {
    background: #9A9A9A;
}
.badge-outline.line-connected {
    border-color: #67AF00;
    color: #67AF00;
}
.badge-outline.line-calling {
    border-color: #B565C4;
    color: #B565C4;
}
.badge-outline.line-shortcall {
    border-color: #24B3BC;
    color: #24B3BC;
}

#tableAgBody h3 {
    margin-bottom: 0;
}
#tableAgBody td:nth-child(2), #tableAgBody td:nth-child(3) {
    vertical-align: top;
}
.badge.agent-dialing {
    background: #24B3BC;
}
.badge.agent-oncall {
    background: #B665C4;
}
.badge.agent-ready {
    background: #49AE60;
}
.badge.agent-pause {
    background: #E59800;
}
.badge.agent-offline {
    background: #9A9A9A;
}
.badge-outline.line-connected {
    border-color: #67AF00;
    color: #67AF00;
}
.badge-outline.line-calling {
    border-color: #B565C4;
    color: #B565C4;
}
.badge-outline.line-shortcall {
    border-color: #24B3BC;
    color: #24B3BC;
}

/* Tabs */

.icon.report {
    font-size: 0.8rem;
    margin: 0 4px 0 8px;
}
.icon.report:first-of-type {
    margin-left: 0;
}
.icon.report.icon-check {
    color: #67C167;
}
.icon.report.icon-cancel {
    color: #DB5941;
}

/* Graphics */

.graficos-avances {
	svg {
    min-height: 100px;
    max-height: 450px;
	}
	text {
    font-family: 'Asap', sans-serif !important;
	}
	.titles text {
    font-size: 1.5rem !important;
	}
	.legends text {
    font-size: 1rem !important;
	}
	.guides text {
    font-size: 0.8rem !important;
	}
	.tooltip-overlay {
    background-color: black !important;
	}
	.reactive {
    background-color: black !important;
	}
}

.oml-table-bg {
    background: #c3c3c3 !important;
    color: #222;
}

/* Error pages */
body.wrapper-page-error {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0 6%;
}
.page-error-bg {
    background: var(--ic-logo-symbol) no-repeat center center/100%;
    opacity: 0.07;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
}
.wrapper-page-error {
	h1 {
    font-size: 1.8em;
    text-transform: uppercase;
    margin-top: 50px;
	}
	h1 span {
    color: rgba(0,0,0,0.5);
    margin-left: 20px;
	}
	h2 {
    font-size: 1.3em;
    line-height: 1.6em;
    margin-bottom: 30px;
	}
	p {
    font-size: 1.2em;
	}
}

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

@media (max-width: 768px) {
    .wrapper-info {
        padding: 30px;
    }

    #sidebar {
        margin-left: -220px;
        .active {
        margin-left: 0;
        min-width: 220px;
        max-width: 220px;
    	}
    }

/*  Form styles */
    .form-row div:nth-child(odd) {
        padding-right: 5px;
    }

}

/* Personalization of Permisos*/
.sticky_column{
    position: sticky;
    left:0;
    z-index: 1;

}
.table_permisos{
    display: flex;
    overflow-x: visible;
}
#permiso_resp {
    text-align: center;
    display: inline-block;
    background-color: white;
    thead {
    background-color: $primary-color;
    color: white;
	}
	tbody tr {
    font-size: 0.85em;
	}
}
#main_grid .btn-secondary {
    background-color: $primary-color;
    color: white;
    height: 20px;
}

#main_grid{
    display: -webkit-inline-box;
    position: relative;
    width: 250px;
}
#main_grid .btn-secondary::after{
    vertical-align: .65em;
}
#permiso_resp thead td,
#main_grid thead td {
    height:50px;
    display: block;
}
#permiso_resp tbody td,
#main_grid tbody td {
    height:45px;
    display: block;

}
/* Personalizacion del plugin jquery select */
.addFormset {
    margin-top: 10px !important;
}

.select2-selection--single {
    height: calc(2.25rem + 2px) !important;
    padding: .375rem .75rem;
    border: 1px solid #ced4da !important;
}
/* Otras personalizaciones*/
.filter-flex {
    display: flex;
}

.add_supervisor {
	li {
    display: inline-block !important;
    width: 240px;
	}
	ul {
    padding: 10px;
	}
	h3 {
    color: $primary-color;
	}
}

#registro {
    color: $primary-color;
}

.popup_container {
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
    border: none;
}
  
.main-menu-beta::after {
    content: "NEW";
    float: right;
    margin-left: 5px;
    margin-right: 15px;
    color: #000000;
    font-size: 12px;
    background-color: #15ff00;
    padding: 2px 5px;
    border-radius: 3px;
}
