/*

# General
    ## Animations
    ## Widgets
    ## Carousel

# Layout
    ## Login
    ## Nav
    ## Body
        ### Statistics
        ### Tabs
        ### Ticket List
        ### Ticket
            #### Sidebar
            #### Comments
    ## Footer

*/

/* # General **************************************************************************/
[hidden] {
    display: none;
}

* {
    outline: none !important;

}

p {
    margin: auto !important;
}

.clear{
    clear: both;
}

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.back > span {
    display: inline-block;
}

.button.back span.glyphicon {
    transform: scaleX(-1);
    display: inline-block;
    padding-left: 5px;
}

#submit {
    min-height: 40px;
    min-width: 150px;
}

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 {
    height: 100%;
    background-size: cover;
    background-attachment: fixed;
}

#support-login-wrapper {
    margin: 0 auto;
    width: 100%;
    position: relative;
    padding-top: 50px;
}

#support-login-wrapper {
    height: 100%;
    width: 90%;
    display: flex;
    align-items: center;
}

#support-login-wrapper #ucare-login {
    margin: auto;
}

#support-login-wrapper .inner {
    width: 100%;
}

#support-login-page .login-card {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    background: #fff;
    width: 100%;
}

#support-login-page .login-title {
    margin-top: 0;
}

#support-login-page p:last-of-type {
    margin-bottom: 0 !important;
}

@media(min-width: 768px) {
    #support-login-wrapper {
        max-width: 600px;
    }
}

@media(max-width: 500px) {
    .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;
    }
}

.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 .brand-logo {
    display: none;
}

#navbar .clock {
    font-weight: 300;
    display: none;
}


#navbar .actions .dropdown-wrapper {
    text-align: right;
}

@media(min-width: 767px) {

    #navbar .brand-logo {
        margin-right: 15px;
        display: inline;
    }

    #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 *******************************************************************/
#ucare-navigation-menu {
    margin-bottom: 0;
    border-radius: 0;
    border-right: none;
    border-left: none;
}

#ucare-navigation-menu .navbar-toggle {
    margin-left: 15px;
}

.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;
    background: #f9f9f9;
}

#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;
}

.glyphicon.fast-right-spinner {
    -webkit-animation: glyphicon-spin-r 1s infinite linear;
    animation: glyphicon-spin-r 1s infinite linear;
}

@-webkit-keyframes glyphicon-spin-r {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

@keyframes glyphicon-spin-r {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

/* #### 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 .panel-heading a:after {
    font-family: 'Glyphicons Halflings';
    content: "\e113";
    float: right;
    transition: transform 0.5s;
}

.sidebar .panel-heading a.collapsed:after {
    transform: rotate(90deg);
}

.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;
    background: #f9f9f9;
}

.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 {
    position: relative;
}

.sidebar .attachments .image {
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid #aaa;
    border-radius: 2px;
    float: left;
    width: 100%;
    height: 90px;
    position: relative;
    margin: 10px 0;
    transition: all 0.5s;
}

.sidebar .attachments .image:hover {
    filter: brightness(0.8);
}


.sidebar .attachments .delete-attachment {
    opacity: 0;
    background: #8e8e8e;
    color: #fff;
    border-radius: 50%;
    padding: 4px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.5s;
}

.sidebar .attachments .delete-attachment {
    position: absolute;
    left: -8px;
}

.sidebar .attachments .delete-attachment:hover {
    background: #696969;
}

.sidebar .attachments .file-wrapper {
    position: relative;
}

.sidebar .attachments .file {
    border: 1px solid #aaa;
    border-radius: 2px;
    float: left;
    width: 100%;
    height: 90px;
    position: relative;
    background: #ddd;
    margin: 10px 0;
    transition: all 0.5s;
}

.sidebar .attachments .file:hover {
    filter: brightness(0.9);
}

.sidebar .attachments .file .icon {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
}

.sidebar .attachments .file .icon img {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
}

.sidebar .attachments .file .filename {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    max-height: 100%;
    word-wrap: break-word;
    text-align: center;
    border-top: 1px solid #ccc;
}

.sidebar .attachments .file .filename div {
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    font-size: 10px;
}

.sidebar .attachments .image-wrapper:hover > .delete-attachment,
.sidebar .attachments .file-wrapper:hover > .delete-attachment {
    opacity: 1;
}

.sidebar .customer-stats {
    margin: 15px -15px -12px -15px;
    border: none;
    border-radius: 0;
}

.sidebar .customer-stats .list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.sidebar .customer-stats .list-group-item:last-child{
    border: none;
}

.sidebar .customer-stats .list-group-item .lead {
    margin-right: 5px;
}

.sidebar .customer-stats .recent-tickets .panel-title {
    margin-bottom: 5px !important;
}

.sidebar .customer-stats .recent-tickets ul {
    padding: 0 10px;
    list-style: none;
}

.sidebar .customer-stats .recent-tickets .recent-ticket {
    margin: 2px auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar .ticket-properties .message-area {
    margin: -16px -16px 10px -16px;
}

    /* #### 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;
}


/* ## Edit Profile *********************************************************************/
#edit-profile-controls .controls {
    margin: 10px auto;
    display: flex;
    justify-content: space-between;
}
#edit-profile-controls .controls .button-submit {
    width: 49%;
}
#edit-profile-controls #submit {
    width: 100%;
}

#request-data-erase {
    background: #d00000;
}

@media(min-width: 768px) {
    #edit-profile-controls {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
    }
    #edit-profile-controls .controls {
        display: inline-block;
        margin: 0;
    }
    #edit-profile-controls .controls .button-submit {
        width: auto;
    }
}