//
// SALES TOOLS
// --------------------------

// From theme's training page
// IMPORTANT: Much of these styles were copied and pasted over from the theme's training page

@mixin break($size) { 
 @media screen and (max-width: $size) { @content; } 
}

#agave_sales_tools {
    .page-description {
        padding: 60px 0 40px;
        
        h3 {
            margin-bottom: 25px;
        }
    }
    
    
    .training-results-container {
        padding: 60px;
        background-color: $agave-bg;
    }
    
    .spinner {
        display:none;
    }
    
    .desktop {
        display:none;
    }
    
    .nothing {
        text-align:center;
    }
    
    .filterbox {
        
        input[type=radio] {
            display:none;    
        }
        
        input:checked + label:before {
            content: '';
            background-color: $agave-light-blue;
            color: white;
            transition: all 0.3s ease;
        }
        
        label {
            display: block;
            position: relative;
            background: white;
            margin: 0 0 1px 0;
            overflow: hidden;
            min-height: 40px;
            color: $agave-light-blue;
            padding: 10px 0 0 55px;
            font: 700 15px/21px 'Open Sans', sans-serif;
            cursor:pointer;
            
            &:before {
                content: '';
                width: 22px;
                height: 22px;
                border-radius: 22px;
                border: 2px solid #80c8dd;
                position: absolute;
                left: 20px;
                top: 0;
                bottom: 0;
                margin: auto;
                transition: all 0.3s ease;
            }
        }
        
        .selectwrapper {
            background:#fff;
            margin: 0 0 10px 0;
            
            select {
                height: 40px;
                padding-right: 40px;
            }
        }
    }
    
    #training-post-results {
        clear: both;
        float: none;
        
        .row {
            display: flex;
            min-height: 160px;
            background-color: #fff;
            margin-bottom: 40px!important;
            position:relative;
            
            .icon {
                display:none;
                position: relative;
                background-size:contain;
                min-width: 160px;
                height: 160px;
                background-position:center!important;
                background-repeat:no-repeat;
                
                img {
                    position: absolute;
                    right: 8px;
                    bottom: 8px;
                }
            }
            
            .info {
                font-size: 16px;
                padding: 12px 0 13px 15px;
                color: #535353;
                float:left;
                font-size: 14px;
                line-height: 18px;
                width: 100%;
                
                h3 {
                    color: $agave-light-blue;
                    margin: 0 10px 5px 0;
                    font-size: 26px;
                    line-height: 1.2;
                }
                
                h4 {
                    font-size: 16px;
                    color: #535353;
                    font-weight: 700;
                    margin: 0 10px 5px 0;
                }
                
                p {
                    margin:15px 0 0 0;
                }
                
                a {
                    color: $agave-light-blue;
                    font-weight: 700;
                    font-size: 18px;
                }
                
                .descript {
                    margin: 0 10px 5px 0;
                }
                
                .arrow_box {
                    position: relative;
                    border-radius: 0;
                    box-shadow: 0 3px #e9e9e9;
                    float: right;
                    padding: 0 10px 0 0;
                    margin: 0 0 0 25px;
                    height:36px;
                    line-height:36px;
                    color:#fff;
                    font-size: 18px;
                    font-weight: 600;
                    
                    &:before {
                        right: 100%;
                        top: calc(50% + 3px);
                        border: solid transparent;
                        content: " ";
                        height: 0;
                        width: 0;
                        position: absolute;
                        pointer-events: none;
                        border-right-color: #e9e9e9;
                        border-width: 19px;
                        margin-top: -20px;    
                    }
                    
                    &:after {
                        right: 100%;
                        top: 50%;
                        border: solid transparent;
                        content: " ";
                        height: 0;
                        width: 0;
                        position: absolute;
                        pointer-events: none;
                        border-right-color: #88b7d5;
                        border-width: 18px;
                        margin-top: -18px;
                    }

                    &.featured {
                        background: #75bb3a;
                        
                        &:after {
                            border-right-color: #75bb3a;
                        }
                    }
                    
                    &.new {
                        background: #004071;
                        
                        &:after {
                            border-right-color: #004071;
                        }
                    }
                }
            } // .info
            
            .mobile_icon {
                width: 45px;
                height: 45px;
                position: absolute;
                bottom: 5px;
                right: 5px;
                z-index: 3;
                line-height: 45px;
            }
            
            .more {
                display:none;
            }
            
            &.showmore {
                .less {
                    display:none;
                }
                .more {
                    display:block;
                }
            }
        }
    }

    
    .titles{
        text-align:center;
        padding:25px 0 0 0;
        h2{
            text-align:center;
            color:$agave-light-blue;
        }
        .separator{
            width:280px; height:1px;
            margin:25px auto;
            border-bottom:5px solid #bcbcbc;
        }
        p{
            text-align:center;
            width:80%;
            margin:0px auto 20px auto;
        }
    }
    
    .wrap{
        width:960px;
        margin:0px auto 50px;
        overflow:auto;
        @media screen and (max-width: 1000px) {
            width:calc(100% - 20px);
            padding: 0;
        }
        h2{
            text-align:center;
            width:100%;
            padding:38px 0px;
            color:#004071;
        }
    }
    
    aside{
        float:left;
        width: 280px;
        overflow: auto;
        margin:0px 30px 0px 0px;
        @include break(730px){width:100%;}
        .filterbox{
            overflow:auto;
            margin: 0 0 20px 0;
            ul{
                list-style-type:none;
                margin:0px 0px 25px 0px;
                li{
                    position:relative;
                    font:700 15px/21px 'Open Sans', sans-serif;
                    padding:10px 15px 10px 58px;
                    border-bottom:2px solid #ececec;
                    background-color:white;
                    width:100%;
                    cursor:pointer;
                    color:#009ec2;
                    &:before{
                        content:"";
                        width:22px; height:22px;
                        border-radius:22px;
                        border:2px solid #80c8dd;
                        position:absolute;
                        left:20px; top:0; bottom:0;
                        margin:auto;
                        transition: all 0.3s ease;
                    }
                    &.selected:before, &.selected-all:before{
                        background-color:#009ec2; color:white;
                        transition: all 0.3s ease;
                    }
                }
            }
            p{
                font:400 18px/27px 'Open Sans', sans-serif;
                color:#004071;
            }
            strong {
                color: $agave-dark;
                font-size: 30px;
                font-family: $hdr-font;
                text-transform: uppercase;
                font-weight: 600;
            }
        }
    }
    
    
    
    .programs{
        position: relative;
        float:left;
        width:650px;
        overflow:auto;
        padding:13px 0 0;
        @include break(1000px){width:calc(100% - 312px); 
        padding: 0 0 0 0;}
        @include break(730px){width:100%; padding:5px 0px 50px 0px;}
        .controls{
            input{
                height:38px;
                padding:5px 18px;
                float:left;
                width: calc(100% - 38px);
                margin: 0px 0px 27px 0;
                background-color:white;
                border:2px solid #dcdcdc;
                outline:none;
                transition: all 0.3s ease;
                @include break(1000px){
                    width:calc(100% - 38px);
                    margin: 0px 0px 27px 0px;
                }
                &:focus{
                    outline:none;
                    background-color:$white;
                    border:2px solid #dcdcdc;
                    transition: all 0.3s ease;
                }
            }
            .styled-select{
                overflow:auto;
                width: 269px; height: 38px;
                padding:0px 0px 0px 0px;
                overflow: hidden;
                background: white;
                border: 1px solid #ccc;
                margin: 0px 0px 27px 10px;
                float:left;
                border:2px solid #dcdcdc;
                @include break(1000px){
                    width:100%;
                    margin: 0px 0px 27px 0px;
                }
                select{
                    -webkit-appearance: none;
                    -moz-appearance: none;
                    border:none;
                    margin:0px;
                    padding:0px 0px 0px 10px;
                    width:100%; height:34px;
                    @include break(1000px){width:100%;}
                    &:focus{outline:none; box-shadow:none;}
                }
            }
            .styled-search{
                position:relative;
                .remove-text{
                    font: 700 18px/23px 'FontAwesome';
                	display: block;
                	width: 20px; height: 20px;
                	position: absolute;
                	right:42px; top:37px; bottom:0;
                	margin: auto;
                	color: #bcbcbc;
                	cursor: pointer;
                    display:none;
                    transition: all 0.3s ease;
                    z-index:9;
                     &:hover{
            	        transition: all 0.3s ease;
            	        color:#575757;
            	    }
                }
            }    
            p{
                float:left;
                line-height:41px;
                color:#004071;
                @include break(1000px){line-height:11px;}
            }
        }
        
        
        
        #training-post-results, #events-post-results{
            clear:both;
            min-height:100px;
            position:relative;
            
            .training-card{
                width:100%;
                background-color:white;
                overflow:auto;
                margin:0px 0px 25px 0px;
                .image{
                    width:160px; height:160px;
                    float:left;
                    @include break(800px){
                        float:none;
                        width:100%;
                    }
                }
                span{
                    display:block;
                    width:calc(100% - 188px);
                    float:left;
                    padding:24px 0px 24px 35px;
                    @include break(800px){
                         width:calc(100% - 0px);
                         padding:24px 25px 24px 25px;
                    }
                    h3, h4, p, a{margin:0px 0px 4px 0px;}
                    p, a{line-height:18px; font-size:14px; color:#535353;}
                    h3, a{color:#009ec2;}
                    h4{font-size:14px; color:#535353; font-weight:700;}
                }
            }
        }
        
        .load-more{
            margin:45px auto 0px;
            display: block;
            width:100%;
            background-color:white;
            border:2px solid #dcdcdc;
            color:#009ec2;
            transition: all 0.3s ease;
            &:hover{
              color:white;
              background-color:#009ec2;
              transition: all 0.3s ease;
              border:2px solid #009ec2;
            }
        }
        
        
    }
    
    .events-need-help{
        background-color:white;
        width:100%;
        overflow:auto;
        h2{
            color:#004071;
            margin:15px 0px 25px 0px;
        }
    }
    
    
    footer{clear:both;}
    
    
    //loading animation
    .spinner {
      margin: 45px auto 0px;
      width: 75px;
      text-align: center;
    }
    
    .spinner > div {
      width: 18px;
      height: 18px;
      background-color: #009ec2;
      margin:0px 2px;
      border-radius: 100%;
      display: inline-block;
      -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
      animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    }
    
    .spinner .bounce1 {
      -webkit-animation-delay: -0.32s;
      animation-delay: -0.32s;
    }
    
    .spinner .bounce2 {
      -webkit-animation-delay: -0.16s;
      animation-delay: -0.16s;
    }
    
    @-webkit-keyframes sk-bouncedelay {
      0%, 80%, 100% { -webkit-transform: scale(0) }
      40% { -webkit-transform: scale(1.0) }
    }
    
    @keyframes sk-bouncedelay {
      0%, 80%, 100% { 
        -webkit-transform: scale(0);
        transform: scale(0);
      } 40% { 
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
      }
    }
    
    //placing svg and base64 code here so it's easier to move to live without having to move a image files
    .search-btn{
        width:37px; height:34px;
        border:5px solid $agave-light-blue;
        outline: 2px solid #dcdcdc;
        margin: 2px 0px 0px 0px;
        float:left;
        cursor:pointer;
        transition: all 0.3s ease;
        background: $agave-light-blue url('data:image/svg+xml;utf8,<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1008 1008" style="enable-background:new 0 0 1008 1008;" xml:space="preserve"><style type="text/css">.st0{fill:white;}</style><path class="st0" d="M852.2,819.5L703.9,631.4c-12.4-15.7-30.1-25.6-50.1-28c-12.4-1.5-24.6,0.1-35.8,4.5l-53.3-67.6c45.9-42.7,74.9-99.7,82.3-162.7c8.3-70.3-11.3-139.7-55.1-195.3S485.1,91.6,414.8,83.3c-70.3-8.3-139.7,11.3-195.3,55.1c-55.6,43.9-90.8,106.7-99.1,177.1s11.3,139.7,55.1,195.3s106.7,90.8,177.1,99.1c10.6,1.2,21.1,1.9,31.6,1.9c52,0,102.3-15.2,145.8-44.1l52.8,66.9c-7.9,10.5-12.9,22.9-14.5,36.3c-2.4,19.9,3.2,39.5,15.5,55.2l148.4,188.1c12.4,15.7,30.1,25.6,50.1,28c3,0.4,6,0.5,9,0.5c16.8,0,32.9-5.6,46.2-16.1l2.4-1.9C872.3,899.2,877.8,851.9,852.2,819.5zM357.8,566.1c-58.6-6.9-111-36.3-147.6-82.6c-36.6-46.3-52.9-104.2-46-162.8c6.9-58.6,36.3-111,82.6-147.6c39.4-31.1,87-47.5,136.4-47.5c8.7,0,17.5,0.5,26.3,1.6c58.6,6.9,111,36.3,147.6,82.6c36.6,46.3,52.9,104.2,46,162.8s-36.3,111-82.6,147.6C474.3,556.7,416.4,573,357.8,566.1z M812.5,890.2l-2.4,1.9c-6.4,5.1-14.5,7.3-22.7,6.4c-8.2-1-15.6-5-20.6-11.5L618.4,698.8c-5.1-6.4-7.3-14.5-6.4-22.7c1-8.2,5-15.6,11.5-20.6l2.4-1.9c5.5-4.3,12.1-6.6,19-6.6c1.2,0,2.5,0.1,3.7,0.2c8.2,1,15.6,5,20.6,11.5l148.4,188.1C828.2,860.2,825.9,879.6,812.5,890.2z"/></svg>') center;
	    &:hover{
	        transition: all 0.3s ease;
	         border:5px solid #08829e;
	        background-color: #08829e;
	    }
    }
    
    // .styled-select select{
        select{
          background: url('data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABQAAD/4QMvaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzEzOCA3OS4xNTk4MjQsIDIwMTYvMDkvMTQtMDE6MDk6MDEgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS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zLixvYXFkkUsbg5j2uHwQRVYXLcbkXGSqng0d2XzFzL3I3LcnGUXVNbU0X0y/u1c3nGDcfj8VcWHKd3ALG/zbGRfwog0Uddwny8vuOBJaws8WOJ6kAeULtdoqOa9UmnZTqljX9L5cXXFFwZn7quem+mEHHNtelyovQvzrfV7VGlE67qVoFLLLPLJPPI+aeZ5kmmkJc57nGrnOcepJPUkqbJJKiKbnNzblJ1bxbe8wXJiEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQGWjuuMTLp5jR3TEdPMaO6Yjp5jR3TEdPMaO6Yjp5jR3TEdPMaO6Yjp5jR3TEdPMaO6Yjp5n/9k=') right no-repeat;
          background-size:contain;
        }
    
    
    /* Small only */
    @media screen and (max-width: 39.9375em) {
        
    }
    
    
     /* Medium and up */
    @media screen and (min-width: 40em) {
        .mobile {
            display:none;
        }
        .desktop {
            display:block;
        }
        
        #training-post-results {
            .row {
                .icon {
                    display:block;
                }
            }
        }
        
        .mobile_icon {
            display: none;
        }
    }
    
    /*
    .tools-section {
        
        .tab-bar {
            width: 100%;
            border-top: 3px solid $bg-gray;
            border-bottom: 3px solid $bg-gray;
            padding: 0 15px;
            display: flex;
            justify-content: center;
            
            position: relative;
            overflow: hidden;
        }
        
        .tab-container {
            display: flex;
            align-items: center;
            justify-content: space-around;
            width: 100%;
            max-width: 1000px;
            
            .tool-tab {
                position: relative;
                font-size: 21px;
                color: $agave-dark;
                text-transform: uppercase;
                font-family: $hdr-font;
                font-weight: 700;
                padding: 30px 15px;
                transition: all 0.2s linear;
                cursor: pointer;
                
                @include breakpoint(small down) {
                    font-size: 16px;
                    padding-left: 7px;
                    padding-right: 7px;
                }
                
                &:hover {
                    color: $agave-light-blue;
                }
                
                &:after {
                    content: '';
                    display: block;
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    height: 0px;
                    background-color: $agave-light-blue;
                    transition: all 0.2s linear;
                }
                
                &.active {
                    &:after {
                        height: 6px;
                    }
                }
                
            } // .tool-tab
            
        } // .tab-container
        
        .tool-list-container {
            width: 100%;
            padding: 45px 15px;
            
            .category-container {
                display: flex;
                flex-wrap: wrap;
                
                display: none;
                
                &.active {
                    display: flex;
                }
                
                .tool-wrapper {
                    position: relative;
                    width: 50%;
                    padding: 20px 15px 20px 110px;
                    
                    @include breakpoint(medium down) {
                        width: 100%;
                    }
                    
                    .icon-wrapper {
                        position: absolute;
                        top: 20px;
                        left: 15px;
                        height: 90px;
                        width: 90px;
                        border-radius: 100%;
                        background: $agave-green;
                        text-align: center;
                        
                        i {
                            font-size: 60px;
                            line-height: 90px;
                            color: #fff;
                        }
                    }
                    
                    .content-wrapper {
                        margin-left: 15px;
                        
                        .tool-title {
                            color: $agave-green;
                            font-weight: 700;
                            font-size: 20px;
                        }
                    } // .content-wrapper
                    
                } // .tool-wrapper
                
            } // .category-container
            
        } // .tool-list-container
        
    } // .tools-section
    
    */
}