/*-----------------------------------------------------
Table of Contents

1. General Styles
2. Header
3. Messages
4. Form
5. Ticket List
6. Pulse Animation
7. Ticket List Placeholders
8. Misc
9. Responsive
10. Email
------------------------------------------------------*/

/*-----------------------------------------------------
1. General Styles
------------------------------------------------------*/
.os-ticket * {
    color: #000;
    margin: 0;
    padding: 0;
    line-height: normal;
}

.os-alert.os-disabled-alert {
    display: none;
}

.os-alert {
    background: #FBEBEC;
    border-left: 3px solid #DC3545;
    color: #B22222;
    line-height: 48px;
    min-height: 48px;
    margin-bottom: 18px;
    padding: 0 20px 0 0;
    width: 100%;
    box-sizing: border-box;
}

.os-alert p {
    font-size: 14px;
    line-height: 48px;
    margin-left: 18px;
}

.os-not-found * {
    margin: 0;
    padding: 0;
}

.os-list .os-not-found {
    padding: 30px 0 10px;
    margin: auto;
    text-align: center;
}

.os-container .os-not-found {
    padding: 30px 0;
    margin: auto;
    text-align: center;
}

.os-not-found {
    margin-top: -8px;
}

.os-not-found h2 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.1px;
    margin-bottom: 10px;
}

.os-not-found p {
    font-size: 16px;
    line-height: 1.5;
}

.os-request {
    margin-top: -10px;
}

.clearfix {
    clear: both;
}


/*-----------------------------------------------------
2. Header
------------------------------------------------------*/

.os-ticket-header {
    background: #f4f4f4;
    border-radius: 4px;
    margin-bottom: 32px;
    padding: 26px 24px 22px 24px;
}

.os-ticket-status {
    float: left;
}

.os-ticket-status h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.os-status-label {
    display: inline-block;
    border-radius: 50%;
    height: 14px;
    margin-right: 7px;
    width: 14px;
}

.os-ticket-product {
    float: right;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

h1.os-ticket-topic {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -.2px;
    margin: 11px 0 18px 0;
}

/*-----------------------------------------------------
3. Messages
------------------------------------------------------*/

.os-content {
    padding: 0 24px;
}

.os-ticket-message {
    padding-bottom: 33px;
    border-bottom: 1px solid #eee;
    margin-bottom: 34px;
}

.os-ticket-messages > .os-ticket-message:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

h4.os-message-author {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 3px;
}

.os-message-created {
    color: #555;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}

div.os-message {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 19px;
    word-break: break-word;
    white-space: pre-wrap;
}

div.os-message div {
    line-height: 1.5;
}

div.os-message #divRplyFwdMsg {
    display: none !important;
}

div.os-message > br:last-of-type {
    display: none;
}

.os-attachments {
    margin: 25px 0 7px 0;
}

.os-attachment {
    background: #F2F8FF;
    display: block;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
    float: left;
    height: 48px;
    line-height: 48px;
    margin: 20px 20px 0 0;
    width: 230px;
}

.os-attachment p {
    line-height: 48px;
}

.os-attachment:nth-of-type(1),
.os-attachment:nth-of-type(2) {
    margin-top: 0;
}

.os-attachment span {
    background: #007BFF;
    float: left;
    height: 48px;
    line-height: 44px;
    display: flex;
    justify-content: center;
    align-content: center;
    width: 44px;
    border-radius: 4px 0 0 4px;

}

.os-attachment p {
    overflow: hidden;
    padding: 0 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*-----------------------------------------------------
4. Form
------------------------------------------------------*/

.os-label {
    font-size: 14px;
    font-weight: 600;
}

input[type=text].os-input,
input[type=email].os-input {
    border-radius: 4px;
    background: #fff;
    border: 1px solid #dedede;
    height: 48px;
    margin: 10px 0 14px 0;
    width: 100%;
}

.os-textarea {
    border-radius: 4px;
    resize: none;
    background: #fff;
    border: 1px solid #dedede;
    height: 160px;
    margin: 10px 0 32px 0;
    padding: 15px;
    width: 100%;
}

.os-guest-fields {
    display: flex;
    justify-content: space-between;
}

.os-guest-email-field,
.os-guest-name-field {
    width: 47.75%;
}

input[type=submit].os-btn {
    background: #007BFF;
    border: none;
    color: #fff;
    float: right;
    font-size: 16px;
    border-radius: 4px;
    font-weight: 600;
    height: 48px;
    letter-spacing: .5px;
    width: 160px;
    transition: color .2s, background .2s;
}

input[type=submit].os-btn:hover {
    background: #0055b1;
    color: #fff;
    cursor: pointer;
}

.os-btn-attachment {
    background: transparent;
    color: #007bff;
    font-size: 16px;
    font-weight: 600;
    float: left;
    height: 48px;
    line-height: 48px;
    padding: 0;
    text-transform: capitalize;
    width: 204px;
}

.os-btn-attachment .os-atch-icon {
    align-content: center;
    display: flex;
    height: 48px;
    float: left;
    line-height: 48px;
    margin-right: 12px;
}

.os-btn-attachment:hover {
    cursor: pointer;
}

.os-btn-attachment input {
    visibility: hidden;
    display: none;
}

.os-files-info {
    display: inline-block;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    height: 48px;
    line-height: 48px;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*-----------------------------------------------------
5. Ticket List
------------------------------------------------------*/

.os-disabled {
    display: none !important;
}

.os-list-heading {
    background: #F6F6F6;
    border-radius: 4px;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 17px;
}

.os-list-item {
    height: 56px;
    border-bottom: 1px solid #EEEEEE;
    display: flex;
    text-decoration: none !important;
    align-items: center;
    background: #FFFFFF;
    padding: 0 17px;
    transition: none !important;
}

.os-list-item:hover {
    background: #FBFBFB;
    box-shadow: 3px 0px 0px #007BFF inset;
}

.os-hidden {
    visibility: hidden;
}

.os-list-item .os-list-topic {
    color: #007BFF;
}

.os-list-status-label {
    display: inline-block;
    height: 14px;
    width: 14px;
    margin-right: 8px;
    border-radius: 7px;
}

.os-list-heading h4 {
    margin: 0 !important;
    font-size: 14px;
    color: #000;
    font-weight: 600;
}

.os-list-item p {
    margin: 0;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.os-list-topic {
    width: 64%;
}

.os-list-topic,
.os-list-updated,
.os-status-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 20px;
    box-sizing: border-box;
}

.os-status-name {
    padding-left: 21px;
}

.os-list .os-status-label {
    position: absolute;
}

.os-list-status {
    width: 16%;
    display: flex;
    align-items: center;
}

.os-list-updated {
    width: 20%;
    min-width: 176px;
}

.os-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    align-items: center;
}

.os-pagination p {
    margin: 0;
}

.os-controls {
    display: flex;
    font-size: 12px;
    color: #666666;
    align-items: center;
    justify-content: space-between;
}

.os-prev,
.os-next {
    height: 24px;
    width: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #DEDEDE;
    border-radius: 4px;
}

.os-current-page {
    border-radius: 4px;
    height: 24px;
    width: 32px;
    margin-left: 8px;
    margin-right: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #DEDEDE;
}

.os-total-pages {
    margin-left: 8px;
}

.os-prev {
    margin-right: 8px;
}

.os-next {
    margin-left: 8px;
}

.os-pagination-info {
    color: #666666;
    font-size: 12px;
}

/*-----------------------------------------------------
6. Pulse Animation
------------------------------------------------------*/

@-webkit-keyframes Pulse {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 51%
    }
    100% {
        background-position: 0% 50%
    }
}

@-moz-keyframes Pulse {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 51%
    }
    100% {
        background-position: 0% 50%
    }
}

@keyframes Pulse {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 51%
    }
    100% {
        background-position: 0% 50%
    }
}

/*-----------------------------------------------------
7. Ticket List Placeholders
------------------------------------------------------*/

.os-placeholder-topic {
    height: 14px;
    border-radius: 9px;
    width: 35%;
    margin-right: 29%;
}

.os-list-item:nth-child(2) .os-placeholder-topic {
    width: 30%;
    margin-right: 34%;
}

.os-list-item:nth-child(3) .os-placeholder-topic {
    width: 40%;
    margin-right: 24%;
}

.os-placeholder-status {
    height: 14px;
    border-radius: 7px;
    width: 16%;
    display: flex;
}

.os-placeholder-status-bullet {
    display: inline-block;
    height: 14px;
    width: 14px;
    margin-right: 8px;
    border-radius: 7px;
}

.os-placeholder.os-placeholder-status-name {
    margin: 0;
}

.os-placeholder {
    background: linear-gradient(270deg, #eee, #ccc);
    background-size: 400% 400%;
    -webkit-animation: Pulse 3s ease infinite;
    -moz-animation: Pulse 3s ease infinite;
    animation: Pulse 3s ease infinite;
}

.os-list-item:nth-child(2) .os-placeholder {
    -webkit-animation: Pulse 2s ease infinite;
    -moz-animation: Pulse 2s ease infinite;
    animation: Pulse 2s ease infinite;
}

.os-list-item:nth-child(3) .os-placeholder {
    -webkit-animation: Pulse 2.5s ease infinite;
    -moz-animation: Pulse 2.5s ease infinite;
    animation: Pulse 2.5s ease infinite;
}

.os-placeholder-status-name {
    height: 14px;
    width: 60%;
    border-radius: 7px;
}

.os-list-item:nth-child(2) .os-placeholder-status-name {
    width: 50%;
}

.os-list-item:nth-child(3) .os-placeholder-status-name {
    width: 50%;
}

.os-placeholder-updated {
    min-width: 176px;
    height: 14px;
    border-radius: 7px;
    width: 17%;
}

.os-list-item:nth-child(3) .os-placeholder-updated {
    width: 15%;
}

/*-----------------------------------------------------
8. Misc
------------------------------------------------------*/
.os-notification-alert {
    background: rgba(0, 123, 255, 0.17);
    border-left: 3px solid #007BFF;
}

.os-notification-alert p,
.os-notification-alert p strong {
    color: rgba(0, 45, 90, 1) !important;
}

.os-tooltip {
    position: relative;
    cursor: pointer;
}

.os-tooltip:hover .os-tooltip-content {
    bottom: calc(100% + 10px);
    opacity: 1;
}

.os-tooltip-content {
    line-height: 100%;
    position: absolute;
    bottom: 60%;
    margin-top: 10px;
    padding: .55rem 1rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #000 !important;
    font-weight: 500;
    font-size: 12px;
    border-radius: 50px;
    background-color: #ffffff;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1),
    0 5px 15px rgba(0, 0, 0, 0.07);

    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

.os-survey form {
    margin-top: 16px;
    display: inline-block;
    margin-bottom: 40px;
}

.os-survey h3 {
    font-size: 24px;
}

.os-survey .os-survey-positive,
.os-survey .os-survey-negative {
    padding: 15px 34px;
    font-size: 16px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    display: inline-block;
    text-transform: none;
    background: #2aca90;
    color: #fff;
    transition: background-color .2s !important;
}

.os-survey .os-survey-positive:hover {
    color: #fff;
    background: #21a476;
}

.os-survey .os-survey-negative {
    margin-left: 20px;
    background: #DC3545;
}

.os-survey .os-survey-negative:hover {
    color: #fff;
    background: #a92935;
}


/*-----------------------------------------------------
9. Responsive
------------------------------------------------------*/

@media (max-width: 1024px) {
    .os-files-info {
        max-width: 100%;
        overflow: visible;
        white-space: normal;
        line-height: 140%;
    }

    .os-placeholder-status {
        justify-content: flex-end;
    }

    .os-placeholder-status-bullet {
        margin: 0;
    }

    .os-list-updated,
    .os-status-name,
    .os-placeholder-updated,
    .os-placeholder-status-name {
        display: none;
    }

    .os-placeholder-topic {
        width: 100% !important;
    }

    .os-list-topic {
        width: 100%
    }

    .os-list-status {
        display: none;
    }

    .os-list-item .os-list-topic {
        width: calc(100% - 30px);
    }

    .os-list-item .os-list-status {
        width: 30px;
        display: flex;
        justify-content: flex-end;
    }

    .os-list .os-status-label {
        position: static;
        margin: 0;
    }

    .os-content {
        padding: 0;
    }

    .os-list-item .os-list-topic {
        padding-right: 0px;
    }

    .os-status-filter {
        display: none;
    }

    .os-pagination-info {
        display: none;
    }

    .os-pagination {
        justify-content: flex-end;
    }

    .os-hidden {
        display: none !important;
    }

    .os-survey .os-survey-negative,
    .os-survey .os-survey-positive {
        margin: 0;
        width: 100%;
    }

    .os-survey .os-survey-negative {
        margin-bottom: 20px;
    }

    .os-survey form {
        width: 100%;
        margin-bottom: 10px;
    }

    input[type=submit].os-btn {
        width: 100%;
    }

    .os-btn-attachment {
        width: 100%;
        margin-bottom: 10px;
    }

    h1.os-ticket-topic {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .os-guest-fields {
    flex-direction: column;
}

.os-guest-email-field,
.os-guest-name-field {
    width: 100%;
}
} 

/*-----------------------------------------------------
10. Email
------------------------------------------------------*/
.yahoo_quoted,
.gmail_quote,
.os-message blockquote {
    display: none !important;
}