/* @import url('https://fonts.googleapis.com/css2?family=Spartan&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk&display=swap');

:root {
    --card-radius: 1mm;
}

tags.form-control {
    height: unset;
    display: block;
}

button.btn-icon {
    margin: 0;
    padding: 0;
    font-size: 125%;
    width: 32px;
    height: 28px;
}

/* TOAST PATCH */

/* hide close button */
.close-jq-toast-single {
    display: none;
}

/* FIELDSET */

.fieldset {
    border: 1px solid #777;
    /* padding: 6mm 5mm 6mm 5mm;*/
    border-radius: 1mm;
    margin-bottom: 2mm;
    margin-top: 2mm;
    font-size: unset;
}

.fieldset {
    border: 1px solid #777;
    /* padding: 6mm 5mm 6mm 5mm;*/
    border-radius: 1mm;
    margin-bottom: 2mm;
    margin-top: 2mm;
    font-size: unset;
}

.legend {
    font-size: unset;
    width: unset;
    background-color: #ced4da;
    color: black;
    padding: 0 2mm 0 2mm;
    border-radius: 2px;
}

/* make text bigger and vertical aligned center */
.jq-toast-single {
    min-height: 60px;
    min-width: 250px;
    border-radius: 1mm;
    font-size: 140% !important;
    line-height: 38px !important;
}

/* make icon more to right */
.jq-has-icon {
    background-position: 15px !important;
}

/***************/

/* make table smaller */
.table-sm th,
.table-sm td {
    padding: 2px 2px 2px 2px;
}


/******************/

table {
    font-size: 13px;
}

/* table tr:hover {
    filter: brightness(0.8);
} */

.container-fluid {
    padding: 0;
}

#cards-holder {
    padding-top: 0 !important;
    margin-right: 0px;
    margin-left: 0px;
}

/* #cards-holder .col-12 {
    padding-right: 0 !important;
    padding-left: 0 !important;
} */
.card-body {
    padding: 1mm;
}

/* .col-12 {
    padding-left:0;
    padding-right:0;
} */

.copy-to-clipboard:hover {
    cursor: pointer;
    background-color: rgb(248, 255, 147) !important;
    color: black !important;
    transition: 0.33s;
}

.page-titles .breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    content: '|';
}

.breadcrumb-item:hover {
    color: red;
}


#history-holder {
    position: relative;
    padding: 2mm;
    /* height: 100vh; */
}

#commentator {
    position: -webkit-sticky;
    position: sticky;
    /* position: relative; not works in ticket http://mitoza.automapa.pl/ticket/100 */
    /* border: 1px solid white;  */
    /* height: 200px;  */
    background-color: #5c636f44;
    width: 100%;
    bottom: 0;
    align-self: flex-end;
}

#commentator .buttons {
    margin-top: 2mm;
}


.reset-html-style :not(.js-link-container):not(.js-link-container a):not(.js-select-link-list):not(.js-select-link-list-ul):not(.js-select-link-list-ul li):not(.automapa-signature) {
    /* display: inline-block !important; */
    font-size: 14px !important;
    /* font-family: inherit !important; */
    font-weight: 300 !important;
    color: unset;
    /* white !important; */
    background-color: unset;
    /*transparent !important; */
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    width: auto !important;
    font-family: 'Space Grotesk', sans-serif;
    /* display: flex; */
    flex-direction: column;
    font-size: 14px !important;
    font-family: 'Space Grotesk', sans-serif;

    /* font-size: 13px; */
}

.stickyside {
    position: sticky;
    top: 16mm;
    border: 2px solid transparent;
}

.container-fluid {
    min-height: 100%;
    /* fix for full page view (prevent truncating another objects) */
}


.dropify-wrapper .dropify-message p {
    margin: 5px 0 0;
    font-size: 14px;
}

.dropify-wrapper:hover {
    background-size: 30px 30px;
    /* background-image:-webkit-linear-gradient(135deg,#F6F6F6 25%,transparent 25%,transparent 50%,#F6F6F6 50%,#F6F6F6 75%,transparent 75%,transparent);
    background-image:linear-gradient(-45deg,#F6F6F6 25%,transparent 25%,transparent 50%,#F6F6F6 50%,#F6F6F6 75%,transparent 75%,transparent); */
    background-image: -webkit-linear-gradient(135deg, #fb9678 25%, transparent 25%, transparent 50%, #fb9678 50%, #fb9678 75%, transparent 75%, transparent);
    background-image: linear-gradient(-45deg, #fb9678 25%, transparent 25%, transparent 50%, #fb9678 50%, #fb9678 75%, transparent 75%, transparent);
    -webkit-animation: stripes 5s linear infinite;
    animation: stripes 5s linear infinite
}

/* * [data-content-type="message"] {
    background-color: yellow;
    color: red;
} */


/**************************** TICKET *************************/
#history-holder [data-action-direction="in"] {
    margin-left: 7%;
}

#history-holder [data-action-direction="out"],
#history-holder [data-action-type="comment"],
#history-holder [data-action-type="assigned"],
#history-holder [data-action-type="priority"],
#history-holder [data-action-type="status"],
#history-holder [data-action-type="creation"],
#history-holder [data-action-type="project"] {
    margin-left: 15%;
}

#history-holder [data-action-type="assigned"],
#history-holder [data-action-type="priority"],
#history-holder [data-action-type="status"],
#history-holder [data-action-type="creation"],
#history-holder [data-action-type="project"] {
    background-color: unset;
    text-align: right;
}

#history-holder .comment-subject,

#history-holder .card {
    border-radius: var(--card-radius);
}

.card.card-ticket-history {
    border: 1px solid transparent;
    margin-bottom: 5mm;
}

#history-holder .card-ticket-history[data-action-type="email"],
#history-holder .card-ticket-history[data-action-type="comment"] {
    border: 1px solid #fff3;
}

#history-holder [data-action-type="email"] .card-header,
#history-holder [data-action-type="comment"] .card-header {
    padding: 1mm 4mm 1mm 4mm;
    border-bottom: 1px solid #fff3;
    display: flex;
    justify-content: space-between;
    /*    background-color: rgb(83, 98, 112);
    color: white;*/
}

#history-holder [data-action-direction="out"] .card-header {
    border-top-left-radius: var(--card-radius);
    border-top-right-radius: var(--card-radius);
    /* border-radius: var(--card-radius); */
}

#history-holder [data-action-direction="in"] .card-header {
    border-top-left-radius: var(--card-radius);
    border-top-right-radius: var(--card-radius);
    /* border-radius: var(--card-radius); */
}

/*
#history-holder [data-action-type="email"] .card-header .action-datetime{
    color: white;
}
*/

#history-holder .comment-message,
#history-holder .email-message {
    font-size: 13px;
}

#history-holder [data-action-type]::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 6px;
    width: 19px;
    height: 19px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;

}

#history-holder [data-action-type="email"]::before,
#history-holder [data-action-type="comment"]::before {
    /* for red rounded */
    left: -42px;
    top: 1px;
    width: 36px;
    height: 36px;
    background-position: center;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    opacity: 0.7;
    border-radius: 50%;
    /* end for red rounded */
}

#history-holder [data-action-type="email"]::before {
    background-image: url(../../assets/icons/mail_icon.svg);
    background-color: #ef233c;
}

#history-holder [data-action-type="email"][data-action-direction="out"]::before {
    background-image: url(../../assets/icons/mail_returned.svg);
    background-color: #06d6a0;
}

#history-holder [data-action-type="comment"]::before {
    background-image: url(../../assets/icons/comment_icon.svg);
    background-color: #6d597a;
}

#history-holder .email-message,
#history-holder .comment-message {
    /* background: unset; */
    position: relative;
    padding: 5px;
}

#history-holder .email-message-header {
    display: none;
}


/********************* DTABLE fix ****************************/
/* Align all settings items of table in one row (top,bottom) */

.dataTables_wrapper .top,
.dataTables_wrapper .bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.dataTables_wrapper .top {
    padding: 2mm 0 0 0;
}

.dataTables_wrapper .dataTables_length {
    order: 5;
    /* align in center */
    opacity: 0.5;
}

.dataTables_wrapper .dataTables_paginate {
    order: 10;
    /* align to right */
}

.dataTables_wrapper .dataTables_info {
    opacity: 0.5;
}

.dataTables_wrapper .clear {
    display: none;
}

/***** PROCESSING INFO MORE VISIBLE *******/

.dataTables_processing {
    background: aliceblue;
    color: black;
}

/***************************************/
#input-containter {
    position: relative;
    display: flex;
    border: 2px solid #00c292;
    border-radius: 5px;
    min-height: 44px;
}

.searchlabel {
    height: 32px;
    width: 32px;
    display: inline-block;
    background-repeat: no-repeat no-repeat;
    background-position: center center;
    background-size: contain;
    background-size: 22px 22px;
    top: 4px;
    left: 2px;
    /* margin-bottom: 0px; */
    /* background-color: #FFFFFF04; */
    /* top: -35px;
        left: 3px; */
    position: relative;
    /* opacity: 0.75; */
}

.clearlabel {
    height: 32px;
    width: 32px;
    display: inline-block;
    /* background-image: url('../../assets/images/search-clear.svg'); */
    background-repeat: no-repeat no-repeat;
    background-position: center center;
    background-size: contain;
    background-size: 22px 22px;
    top: 4px;
    left: -2px;
    /* margin-bottom: 0px; */
    /* background-color: #FFFFFF04; */
    /* top: -35px;
    left: 3px; */
    position: relative;
    /* opacity: 0.75; */
}

.clearlabel:hover {
    cursor: pointer;
    background-color: #ffffff44;
}

#user_query_string {
    border: 0;
    width: 100%;
}

#available-commands {
    top: 44px;
    border-left: 2mm solid #00c292;
    background-color: #272c36;
}

#available-commands-list p,
#available-commands-list li {
    color: white;
}

#available-commands-list li {
    list-style: none;
    padding: 1mm 4mm 1mm 4mm;
    margin: 0;
    cursor: pointer;
}

#available-commands-list li:hover {
    background-color: black;
}

/***************************************/

#mailbox_rules {
    /* max-width: 660px; */
    margin: 1mm;
}

#mailbox_rule #conditions,
#mailbox_rule #actions {
    height: 210px;
}

condition {
    display: flex;
    justify-content: space-between;
}

condition * {
    margin: 1px 4px;
}

condition subject {
    flex: 1 1 200px;
}

condition rule {
    flex: 1 1 200px;
}

condition value {
    flex: 1 1 300px;
}


action {
    display: flex;
    justify-content: space-between;
}

action * {
    margin: 1px 4px;
}

action action_id {
    flex: 1 1 200px;
}

action value {
    flex: 1 1 500px;
}

/***************************************/
.title-ticket-id {
    color: grey;
    font-weight: 100;
    font-size: 1.4rem;
}

.action-datetime {
    color: gray;
}

.card-ticket-history .action-link i {
    visibility: hidden;
}

/* .card-ticket-history:hover {
    color: white;
} */
.card-ticket-history:hover .action-link i {
    visibility: visible;
}

.card-ticket-history:hover .action-datetime {
    color: white;
}

.h4-ticket-subject {
    margin-bottom: 0;
    margin-bottom: 0;
    font-weight: bold;
    text-decoration: unset;
    font-size: 30px;
}


/* fix image resize for responsive view */
.comment-message img {
    height: auto !important;
    width: 100% !important;
}

::placeholder {
    font-weight: 200;
}

.table-refreshed {
    /* color: white; */
    animation-name: refresh;
    /* background-color: transparent; */
    animation-duration: 1.3s;
    animation-fill-mode: none;
    /* animation-fill-mode: reverse; */
}

@keyframes refresh {
    0% {
        opacity: 50%;
    }

    100% {
        opacity: 100%;
    }

}

.nav-item .hidden-md-down {
    /* hide user e-mail on header title */
    display: none;
}

.page-wrapper {
    /* FIX for displaying templates in ticket bview */
    position: absolute;
    /* FIXME: background is not responsive with absolute */
}


/**************FIX LOGIN PAGE ON MOBILE*************/

@media only screen and (max-width: 767px) {

    .login-box {
        width: 100% !important;
    }

    .login-register {
        position: absolute !important;
    }

    .login-sidebar {
        padding: 0 !important;
    }

}

#history-holder .email-subject {
    width: 100%;
    /* position: relative; */
    font-size: 13px;
    /* padding-top: 2mm; */
    padding-bottom: 2mm;
}

.email-subject .date-container {
    width: 100%;
    text-align: right;
    /* position:absolute; */
}

.email-subject .recipient-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.email-subject .recipient-container .recipient-label {
    /* flex-basis: 50px; */
    min-width: 60px;
    width: 60px;
    opacity: 0.45;
    text-align: right;
    margin-right: 1mm;
    /* flex-grow: 1; */
}

.email-subject .recipient-container .recipient {
    /* flex-basis: 100px; */
    display: flex;
    flex-direction: row;
    flex-grow: 10;
    flex-wrap: wrap;
}

.email-subject .recipient-container .recipient-name {
    display: inline-block;
    margin-right: 1mm;
}

.email-subject .recipient-container .recipient-email {
    display: inline-block;
    /* flex-basis: 100px; */
}

#history-holder .email-message {
    border-bottom-left-radius: var(--card-radius);
    border-bottom-right-radius: var(--card-radius);
    overflow: auto;
}

#history-holder .card-body {
    margin: 0;
    padding: 0;
}

#commentator .card-body {
    padding: 3mm;
}


@media only screen and (max-width: 768px) {

    /* [MD] */
    .topbar .top-navbar .profile-pic img {
        width: 30px;
        border-radius: 100%;
        min-width: 30px;
    }

    .userlogin {
        display: none;
    }

    .topbar .navbar-header {
        display: none;
    }

    .navbar-collapse .mail-reader-status {
        display: none;
    }

    /* .topbar {
        position: fixed;
        top:0;
    } */

}

.sender_email {
    padding: 0;
}

:root {
    --tagify-dd-bg-color: #303641;
}

.LicenseList {
    width: 100%;
}

.license-item {
    background-color: #FFFFFF09;
    padding: 3mm 3px 3px 3px;
    margin: 4mm 0 0 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-width: 2mm;
    font-size: 12px;
    position: relative;
}

.license-item .label {
    font-size: 12px;
}

.license-item:hover {
    border-color: #f39276;
    border-width: 2mm;
}

.license-item .license-row {
    display: flex;
    flex-direction: row;
}

.license-item .license-row .label {
    width: 120px;
    opacity: 0.6;
}

.license-item input {
    height: calc(1.5em + 0.3rem + 2px);
    font-size: 12px;
}

.license-item input.js-last-email {
    width: 100%;
}

.license-item button.js-force-get-license-info {
    position: absolute;
    right: 6px;
    top: 6px;
}


#tickets-table td,
#tickets-table th {
    padding: 1px;
    font-size: 12px;
}

#tickets-table tbody tr td[data-title="id"] {
    min-width: 65px;
}

#tickets-table tbody tr td[data-title="notes"] {
    min-width: 105px;
}

.sidebar-nav ul li a {
    padding: 10px 20px 0px 10px;
}

/* .left-sidebar {
    width: 180px;
}
.page-wrapper, .footer {
    margin-left: 180px;
} */



.navbar-nav .menu-horizontal {
    display: flex;
    flex-direction: row;
    list-style: none;
    /* align-items: baseline;     */
    height: 100%;
    flex-wrap: wrap;
    column-gap: 1mm;
    row-gap: 1mm;
}

.navbar-nav .menu-horizontal li a {
    min-height: 100%;
    min-width: 50px;
    text-align: center;
    vertical-align: middle;
    /* margin-right: 4px; */
    /* margin: 5px; */
    color: #FFFFFFAA;
    border-radius: 1px;
}

.navbar-nav .menu-horizontal li a i {
    font-size: 24px;
    display: inline-block;
    margin-top: 4px;
}

.navbar-nav .menu-horizontal li a.active {
    color: white;
    background-color: #FFFFFF33;
}

.navbar-nav .menu-horizontal li a:hover {
    color: white;
    background-color: #FFFFFF33;
    cursor: pointer;
    transition: 0.3s;
}

.navbar-collapse {
    min-height: 50px;
}

.topbar .top-navbar .navbar-nav>.nav-item>.nav-link {
    line-height: unset;
}

/* REMOVE HAMBURGER */
.navbar-collapse .navbar-nav:nth-child(1)>li:nth-child(1),
.navbar-collapse .navbar-nav:nth-child(1)>li:nth-child(2) {
    display: none;
    /* border:1px solid red; */
}

/* MAIN TOOLBAR COLOR */
.skin-automapa .topbar,
.skin-automapa .topbar .top-navbar .navbar-header {
    /* background: #26408a; */
    background: #1d3557;
}

/* FIX SIZE IMAGE ON MOBILE VIEW */
img {
    /* max-width: unset;*/
    max-width: 100%;
}

.left-sidebar {
    display: none;
}

.mini-sidebar .page-wrapper,
.mini-sidebar .footer {
    margin-left: unset !important;
}

.page-wrapper,
.footer {
    margin-left: unset !important;
}

#main-wrapper {
    display: flex;
    flex-direction: column;
}

.fixed-layout .left-sidebar,
.fixed-layout .topbar {
    position: unset;
}

.page-wrapper {
    position: unset;
}

.fixed-layout .page-wrapper {
    padding-top: unset;
}

#main-wrapper {
    position: absolute;
}



/* FIX WRAP-TEXT TITLE IN TICKET TABLE */
#tickets-table thead th,
#tickets-table tbody td {
    white-space: nowrap;
}

#tickets-table tbody tr[role=row] td[data-title=subject],
#tickets-table tbody tr[role=row] td[data-title=author] {
    overflow: hidden;
    display: inline-block;
    white-space: break-spaces;
    height: 28px;
    line-height: 28px;
    border-right: 0;
    width: 100%;
}

#tickets-table td[data-title=subject] {
    min-width: 260px;
}

#tickets-table td[data-title=author] {
    width: 200px;
}


/* PROBLEM: SEARCH INPUT IS BEHIND MENU */
/* @media only screen and (max-width: 768px) { 
    .fixed-layout .topbar {
        position: fixed;
        top: 0px;
    }

} */

.table-row-ticket-stats {
    display: inline-block;
    margin-right: 1mm;
    opacity: 0.6;
    flex: 0 0 auto;
    min-width: 40px;
}

.ticket-read-history {
    max-height: 60px;
    overflow-y: auto;
    margin-bottom: 2mm;
    display: flex;
    column-gap: 2mm;
}

.table-row-ticket-read-by {
    padding: 4px 0;
    position: absolute;
    right: 6px;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    /* width: 100%; */
    padding: 4px 8px 0 4px;
}

.table-row-ticket-read-by .user-icons {
    display: flex;
    column-gap: 4px;
}

.table-row-ticket-read-by .user-icon {
    border-radius: 3px;
    /* padding: 0 1mm;
    height: 20px; */
    line-height: 19px;
    opacity: 0.6;
    text-transform: lowercase;
}

.table-row-ticket-read-by .user-icon.active {
    /* opacity: 1; */
    text-transform: uppercase;
}