/*

# General
    ## Animations
    ## Widgets
    ## Carousel

# Layout
    ## Login
    ## Nav
    ## Body
        ### Statistics
        ### Tabs
        ### Ticket List
        ### Ticket
            #### Sidebar
            #### Comments
    ## Footer

*/

/* # General **************************************************************************/
* {
    outline: none !important;

}

p {
    margin: auto !important;
}

form {
    margin: 0;
}

form .bottom {
    margin-top: 15px;
    text-align: right;
}

form label {
    margin-bottom: 7px !important;
}

form .form-check label {
    font-weight: 500;
}

a:hover,
a:focus,
a:visited{
    text-decoration: none;
}

.button,
.button-primary,
input[type="submit"] {
    text-shadow: none;
    outline: none;
    padding: 10px 25px;
    font-size: 14px;
    color: #fff;
    border: none;
    border-radius: 3px;
    min-width: 120px;
}

.button-primary:hover,
.button-primary:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
    color: #fff;
    text-decoration: none;
}

button > * {
    pointer-events: none;
}

span.button-icon {
    padding-right: 5px;
}

.dz-progress {
    border-radius: 0 !important;
    height: 4px !important;
}

.dz-upload {
    background: #337ac6 !important;
}

.formatted {
    white-space: pre-wrap;
}

body.waiting {
    cursor: wait !important;
}

textarea {
    resize: vertical;
}

hr {
    margin-top: 10px;
}

/* ## Animations ***********************************************************************/
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes animation-pulse {
    0% { opacity: 1 }
    25% { opacity: 0 }
    50% { opacity: 0 }
    75% { opacity: 0 }
    100% { opacity: 1 }
}

@keyframes animation-bounce {
    0% { transform: translateY(0px); }
    25% { transform: translateY(-15px); }
    50% { transform: translateY(-15px); }
    75% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.rotate {
    animation: spin 2s linear infinite;
}

/* ## Widgets **************************************************************************/
.ajax-loader {
    width: 100%;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.ajax-loader .dot-container {
    display: inline-block;
    width: 100px;
}

.ajax-loader .dot {
    border-radius: 4px;
    height: 60px;
    margin: 50px auto;
    width: 60px;
}

.dot-1 {
    animation: animation-pulse 1.4s linear 200ms infinite,
                animation-bounce 1.4s ease 200ms infinite;
}

.dot-2 {
    animation: animation-pulse 1.4s linear 400ms infinite,
                animation-bounce 1.4s ease 400ms infinite;
}

.dot-3 {
    animation: animation-pulse 1.4s linear 600ms infinite,
                animation-bounce 1.4s ease 600ms infinite;
}

.widget-wrapper.row {
    padding: 5px 20px;
}

/* # Carousel *************************************************************************/
.carousel-caption {
    color: #333;
    font-size: 22px;
    text-shadow: none;
    font-weight: 600;
}

.carousel-control.left,
.carousel-control.right{
    background: none !important;
}

.carousel-control.left .glyphicon,
.carousel-control.right .glyphicon{
    color: #e9e9e9;
}
/* # Layout ***************************************************************************/
#page-container {
    min-height: 100%;
    position: relative;
}

#footer {
    bottom: 0;
    width: 100%;
    background: #fff;
}

@media(max-width: 769px) {
    
    #search-wrapper {
        width: 100%;
    }
    
    #filter-actions .row-table-cell {
        display: block;
        width: 100%;
    }

    #filter-controls .btn-group {

    }
    
    #statistics-container .stat-tab {
        width: 100%;
        display: block;
        padding-left: 0;
        padding-right: 0;
    }
    
}

@media( min-width: 768px ) {
    #filter-controls {
        float: left;
        width: 30%;
        margin: 0;
        border-left: 1px solid #ddd;
    }
    
    #tickets-container {
        width: 70%;
        float: right;
        margin: 0;
        padding-right: 0;
    }
    
    #filter-controls .row-table-cell{
        display: block;
    }
    
    #filter-controls #filters{
        display: block !important;
    }
    
    #filter-controls #filters .col-sm-4{
        width: 100%;
    }
    
    #show-filters {
        display: none;
    }
    
    #filters #filter-actions {
        margin-top: -20px;
    }
    
    .statistics-wrapper {
        min-height: 160px;
    }
    
    #statistics-container .stat-tab h4 {
        height: 15px !important;
        line-height: 25px !important;
    }
    
    #statistics-container .stat-tab span.glyphicon {
        top: 15px !important;
    }
    
    #statistics-container .stat-tab:first-of-type {
        padding-left: 0;
    }
    #statistics-container .stat-tab:last-of-type {
        padding-right: 0;
    }
    
}

.row {
    padding: 20px;
}

.row-table {
    display: table;
}

.row-table-cell {
    display: table-cell;
    vertical-align: middle;
    width: auto;
}

/* ## Login ****************************************************************************/
#support-login-page {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-attachment: fixed;
}

#support-login-wrapper {
    margin: 0 auto;
    width: 400px;
    position: relative;
    padding-top: 50px;
}

@media(max-width: 500px) {
    #support-login-wrapper {
        padding: 15px;
        width: 90%;
        height: 90%;
    }
    
    #support-login-wrapper #support-login-form img.logo {
        max-height: 80px;
        width: auto;
        margin-bottom: 10px;
    }
    
    #support-login-wrapper #support-login-form .button, #support-login-wrapper #support-login-form .button-primary {
        padding: 5px 12px;
        min-width: 60px;
    }
    
    #support-login-wrapper #support-login-form #login p {
        margin-bottom: 7px !important;
    }
    
    .button,
    .button-primary, input[type="submit"] {
        padding: 8px 12px;
    }
    
    .ticket-list a.open-ticket {
        display: block;
    }
    
    #tickets-container .ticket .product {
        margin: 0 !important;
    }
    
    #tickets-container .ticket .media-right {
        display: none;
    }
    
    #tickets-container .ticket-title {
        font-size: 16px;
    }
}

#support-login-form {
    padding: 20px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1),0 2px 4px 0 rgba(0,0,0,0.05);
}

#loginform {
    margin-bottom: -10px;
}

#login p {
    margin-bottom: 15px !important;
}

#login input[type="text"],
#login input[type="password"] {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

#support-login-form .button {
    /*margin-top: 5px;*/
}

#support-login-form img.logo {

    max-width: 125px;
    display: block;
    margin: 0 auto 20px auto;
}

#support-login-wrapper .terms {
    padding: 10px;
    text-align: center;
}

#support-login-wrapper label {
    color: #7b858d;
}

#support-login-form .login-submit {
    text-align: center;
    min-height: 40px;
}

#support-login-form .login-submit .button {
    display: inline-block;
    float: right;
    margin-bottom: 15px;
}

#support-login-form .button {
    width: 100%;
}

@media(min-width: 767px) {
    #support-login-form .button {
        width: 48% !important;
    }

    #support-login-form .login-submit :nth-child(1) {
        width: 48% !important;
        margin-right: 1%;
        margin-left: 1%;
    }

    #support-login-form .login-submit :nth-child(2) {
        width: 49% !important;
    }
}

#register_form {
    display: none;
}

#support-login-form .alert {
    border-radius: 4px;
    background: #fff;
}

#support-login-form .alert-error {
    border: 1px solid #dc3232;
    border-left: 4px solid #dc3232;
}

#support-login-form .alert-success {
    border: 1px solid #52e964;
    border-left: 4px solid #52e964;
}

.button-back {
    margin: 0px 0 20px 0;
    border: none;
}

.button-back:hover {
    border: none;
}

#support-login-form .logo {
    padding: 15px;
}

/* ## Nav ******************************************************************************/
#navbar {
    margin-bottom: 0;
}

#navbar .row {
    padding: 8px 20px;
}

#navbar .row-table-cell {
    height: 50px; 
}

#navbar .dropdown-wrapper {
    position: relative;
}

#navbar ul.dropdown-menu {
    right: 0;
    left: auto;
    max-width: 200px;
}

#navbar a {
    color: #fff;
}

#navbar ul.dropdown-menu a {
    color: #414141;
    text-align: left;
}

#navbar .left-header a {
    margin-right: 5px;
}

#navbar img {
    border-radius: 2px;
    margin-right: 4px;
}

#navbar .button {
    line-height: 26px;
    margin-right: 20px;
}

#navbar .button span {
    padding-right: 4px;
}

#navbar .clock {
    font-weight: 300;
    display: none;
}

#navbar .actions {
    width: 100%;
}

#navbar .actions .dropdown-wrapper {
    text-align: right;
}

@media(min-width:  767px) {
    #navbar .clock {
        display: table;
    }

    #navbar .actions {
        width: auto;
    }

    #navbar .actions .dropdown-wrapper {
        text-align: center;
    }
}

/* ## Body *****************************************************************************/

.widget-wrapper > div{
    padding: 15px;
    border-radius: 4px;
}

#support-dashboard-page {
    padding: 20px 0;
    background: #eff0f2;
}

.ticket-area-wrapper {
    background: #f9f9f9;
    min-height: 600px;
}

@media(min-width: 1201px) {
    .ticket-area-wrapper {
        min-height: 720px;
    }
}

/* ### Statistics ****************************************************************************/
#statistics-container {
    overflow: hidden;
    /*border: 1px solid #ddd;*/
    /*padding: 10px 0;*/
    color: #333;
    border-radius: 4px;
    /*background: #f6f8fa;*/
}

#statistics-container .stat-tab h4{
    font-size: 26px;
}

#statistics-container .stat-tab div {
    font-size: 12px;
}


/* ### Tabs ****************************************************************************/

.scrtabs-tabs-fixed-container ul.nav-tabs>li {
    white-space: initial !important;
}

.panel-default>.panel-heading,
.input-group-addon,
.btn.btn-default{
    background: #f6f8fa;
}

.nav-tabs .tab .title {
    display: inline-block;
    width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-tabs .close {
    display: inline-block;
    margin-left: 10px;
}

.scrtabs-tab-scroll-arrow {
    border: none !important;
    text-align: center !important;
}

/* ### Panel Navbars *******************************************************************/

.editor-area {
    padding: 10px;
}

.nav-header {
    padding: 10px 10px 0 10px;
}

.nav-header .nav {
    width: 100%;
    background: none;
    border-bottom: none;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
    background: #f9f9f9;
}

/* ### Ticket List *********************************************************************/
#tickets-container {
    padding-top: 10px;
}

#tickets-container .ticket-list {
    padding: 0;
}

#tickets-container .ticket-list .ticket {
    padding: 5px 15px;
}

.ticket-list .ticket-title {
    margin: 5px 0;
}

.ticket-list a.open-ticket {
    display: inline-block;
    cursor: pointer;
}

#tickets-container .pagination {
    margin: 0;
}

#tickets-container .pagination a {
    cursor: pointer;
}

#tickets-container .ticket .indicators {
    display: table;
}

#tickets-container .ticket .indicator {
    display: table-cell;
    vertical-align: middle;
    min-width: 40px;
    text-align: center;
    color: #575757;
}

#tickets-container .ticket .flagged {
    cursor: pointer;
}

#tickets-container .ticket .flagged.active {
    color: #ff0000;
}

#tickets-container .ticket-title {
    pointer-events: none;
    display: inline-block;
}

#tickets-container .ticket .tag {
    border: 1px solid #ccc;
    vertical-align: text-bottom;
    font-size: 14px;
    margin-left: 2px;
    padding: 0px 6px;
    border-radius: 3px;
    display: inline-block;
}

#tickets-container .comment-icon {
    font-size: 20px;
    transform: scaleX(0.8);
}

#tickets-container .status-wrapper {
    text-align: center;
}

#tickets-container .ticket-status {
    display: inline-block;
    font-size: 14px;
}

#tickets-container .status-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 4px 8px;
    left: 5px;
    top: 5px;
    font-size: 12px;
    text-align: center;
    border-radius: 3px;
    display: none;
}

#tickets-container .status-wrapper:hover .status-tooltip {
    display: inline-block;
}

#tickets-container .ticket .media-left {
    padding-right: 20px;
    padding-left: 10px;
    width: 45px;
    vertical-align: middle;
}

#tickets-container .ticket .media-right {
    min-width: 150px;
    text-align: right;
}

.ticket-status.opened:before {
    content: "\e167";
    font-family: "Glyphicons Halflings";
}

.ticket-status.opened {
    color: #a9a9a9;
}

.ticket-status.closed:before {
    content: "\e084";
    font-family: "Glyphicons Halflings";
}

.ticket-status.closed {
    color: #1abc9c;
}

.ticket-status.new:before {
    content: "\e124";
    font-family: "Glyphicons Halflings";
}

.ticket.new .ticket-title,
.ticket.responded .ticket-title {
    font-weight: bold;
}

.ticket-status.new {
    color: #3498db;
}

.ticket-status.waiting:before {
    content: "\e178";
    font-family: "Glyphicons Halflings";
}

.ticket-status.waiting {
    color: #ffd400;
}

.ticket-status.needs_attention:before {
    content: "\e101";
    font-family: "Glyphicons Halflings";
}

.ticket-status.needs_attention {
    color: #ff0000;
}

.ticket-status.responded:before {
    content: "\e095";
    font-family: "Glyphicons Halflings";
}

#filter-actions {
    margin: 0;
    padding: 0;
    width: auto;
}
#show-filters {
    margin-right: -2px;
}

#show-filters .indicator {
    line-height: 20px;
    padding: 0 2px;
    transform: rotate(180deg);
}

#show-filters .indicator.down {
    transform: none;
}

#filter-controls .toggle-label {
    vertical-align: text-bottom;
}

#filter-controls .row-table {
    width: 100%;
}

#search-wrapper {
}

#search {
    height: 35px;
}

.additional-filters {
    width: 30px;
    padding-right: 10px;
}

.ticket-list .ticket .media-body .text-muted a {
    font-weight: 700;
}

/* ### Ticket **************************************************************************/
.ticket .media-right {
    vertical-align: middle;
}

.ticket-detail {
    position: relative;
}

.ticket-detail .mask.active {
    position: absolute;
    height: 100%;
    right: 0;
    left: 0;
    bottom: 0;
    top: 0;
    background: #fff;
    z-index: 999;
}

button.close-ticket {
    color: #333;
    background-color: #e6e6e6;
    border: none;
}

button.close-ticket:hover {
    background-color: #cdcdcd;
}

/* #### Dropzone ************************************************************************/
.dropzone {
    min-height: auto !important;
    border-radius: 4px;
    border-style: dashed;
}

.dz-message {
    margin: auto !important;
}

.dz-image {
    border-radius: 0 !important;
}

.dz-preview {
    margin: 10px !important;
}

/* #### Sidebar ************************************************************************/
.panel-group .panel+.panel {
    margin-top: 15px !important;
}

.sidebar .ticket-details .lead {
    margin-bottom: 0;
}

.tag.category {
    margin: 0 2px !important;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 2px 5px;
    font-size: 14px;
}

.sidebar .ticket-details .ticket-stale {
    font-size: 12px;
}

.sidebar .sidebar-divider {
    margin-top: 10px;
    margin-bottom: 10px;
}

.sidebar .attachments .row {
    padding-top: 0;
    padding-bottom: 0;
}

.sidebar .attachments .image-wrapper {
    padding: 0 5px;
    margin: 5px 0;
}

.sidebar .attachments .image {
    position: relative;
    cursor: pointer;
    max-width: 150px;
}

.sidebar .attachments .image:after {
    content: '\A';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
}

.sidebar .attachments .image-wrapper:hover > .image:after {
    opacity: 1;
}

.sidebar .attachments .delete-attachment {
    position: absolute;
    display: none;
    background: #8e8e8e;
    color: #fff;
    border-radius: 50%;
    padding: 4px;
    font-size: 18px;
    cursor: pointer;
    left: -4px;
    top: -4px;
    z-index: 10;
}

.sidebar .attachments .delete-attachment:hover {
    background: #696969;
}

.sidebar .attachments .image-wrapper:hover > .delete-attachment {
    display: inline-block;
}

/* #### Comments ***********************************************************************/

.comments .comment .meta p {
    font-size: 8pt;
}

.comments .comment .editor {
    display: none;

}

.comment .btn {
    height: 30px;
    font-size: 12px;
}

.comment .media {
    padding-bottom: 10px;
}

.comment .nav-tabs li {
    margin: 0 !important;
}

.comment .nav-tabs .tab.active a {
    background: #fff !important;
}

.comment .media-body {
    vertical-align: middle;
}

.comment .editor .tab-content {
    min-height: 110px;
    position: relative;
}

.comment-reply .media-heading {
    font-size: 12px;
}

.editor textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 150px;
    max-height: 300px;
}

.preview .rendered {
    padding: 10px;
}

/* ## Footer ***************************************************************************/
#footer {
    height: 150px;
    display: table;
}

#footer .container {
    display: table-cell;
    vertical-align: middle;
}

.footer-text {
    padding: 15px;
    font-size: 12px;
    color: #9d9d9d;
}

/* ### Create Ticket Form */
#create_ticket textarea {
    box-sizing: border-box;
    min-height: 200px;
    resize: none;
    overflow-y: hidden;
}