:root {
    --background-color: #fff;
    --color1: #364150;
    --color1-hover: #1b222b;
    --color2: #6c5ce7;
    --color2-hover: #4839b8;
}

* {
    margin: 0;
}

h1, h2, h3, h4, h5 {
    font-weight: initial;
    font-size: initial;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

h2 { font-size: 30px; }
h5 { font-size: 13px; }

body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    background: #FFF;
    font-size: 13px;
}

.main_body {
    overflow: hidden;
    color: #333333;
    display: flex;
    flex-direction: row;
}

.layout_menu_wrapper {
    width: 235px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    transition: .2s;
}

.layout_menu_wrapper .logo {
    height: 69px;
    border-bottom: 1px solid #dedede;
    border-right: 1px solid #dedede;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.layout_menu_wrapper .logo a {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout_menu_wrapper .logo img {
    max-width: 100%;
    max-height: 100%;
}

.layout_menu {
    flex: 1;
    background-color: var(--color1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.layout_menu .item {
    padding: 10px 15px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.layout_menu a.item.actual, .layout_menu .submenu a.item.actual {
    background: var(--color2);
}

.layout_menu .submenu {
    display: flex;
    flex-direction: column;
}

.layout_menu .submenu .item {
    padding: 4px 5px 4px 20px;
}

.layout_content_wrapper {
    overflow: hidden;
    flex: 1;
    display:flex;
    flex-direction: row;
    height: 100vh;
}

.layout_content_wrapper .main_content_wrapper {
    overflow-x: hidden;
    min-width: 300px;
    display:flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
}

.main_content_wrapper > .header {
    height: 69px;
    border-bottom: 1px solid #dedede;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0 30px;
}

.main_content_wrapper > .header .title {
    font-size: 17px;
    margin: 0;
    font-weight: 500;
}

.menu_hamburger {
    background-repeat: no-repeat;
    background-image: url(/media/theme/images/hamburger-menu.svg);
    background-size: contain;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: none;
    flex-shrink: 0;
}

.header .header_account {
    margin-left: auto;
    border: 1px solid #bbb;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #000;
    width: 200px;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.header .header_account:hover {
    background: linear-gradient(#FFF, #EEE);
}

.header .header_account .user_icon {
    height: 15px;
    margin-right: 5px;
    user-select: none;
}

.header .header_account .arrow {
    height: 12px;
    margin-left: 5px;
    user-select: none;
}

.header .header_account .name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media only screen and (max-width: 1024px) {
    .header .header_account {
        width: 30px;
    }

    .header .header_account .user_icon {
        margin-right: 0;
    }

    .header .header_account .arrow,
    .header .header_account .name {
        display: none;
    }
}

.simple_form {
    max-width: 400px;
    display: flex;
    flex-direction: row;
    margin: 20px auto 0 auto;
    gap: 20px;
    flex-wrap: wrap;
}

.simple_form .group {
    text-align: center;
}

.simple_form .group .content {
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.simple_form .field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.simple_form .errors {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #F00;
    width: 100%;
}

.simple_form .other_link {
    font-size: 11px;
    margin-top: 8px;
    display: inline-block;
}

.main_content_wrapper > .header .menu_hamburger {
    margin-right: 5px;
    flex-shrink: 0;
}

.main_content {
    padding: 20px 20px 0 20px;
    overflow-y: auto;
    flex: 1;
}

.main_content {
    padding: 20px 20px 0 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
}

.main_content .content {
    flex: 1;
}

.main_content .footer {
    padding: 30px 20px 10px 20px;
    text-align: center;
    font-size: 10px;
}

.main_content .footer a {
    text-decoration: none;
    color: #000000;
}

@media only screen and (max-width: 1024px) {
    .layout_menu_wrapper:not(.show) {
        margin-left: -235px;
    }

    .main_content_wrapper .header .title {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    .main_content_wrapper .header .menu_hamburger {
        display: block;
    }
}

@media only screen and (max-width: 450px) {
    .layout_menu_wrapper.show {
        width: 100%;
    }

    .layout_menu_wrapper .logo .menu_hamburger {
        display: block;
    }
}

.btn {
    border-radius: 4px;
    background: var(--color2);
    border: none;
    outline: none;
    display: inline-block;
    color: #FFF;
    text-decoration: none;
    padding: 7px 12px;
    cursor: pointer;
}

.btn:hover {
    background: var(--color2-hover);
}

.btn.color1 {
    background: var(--color1);
}

.btn.color1:hover {
    background: var(--color1-hover);
}

.btn.red {
    background: #F44;
}

.btn.red:hover {
    background: #F66;
}

.example {
    display: none !important;
}

.delete_element:before {
    content: 'x';
    margin: 0 5px;
    font-weight: bold;
    color: #F00;
    cursor: pointer;
}

.box_flex_columns {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.box_flex_columns > * {
    flex: 1;
}

@media only screen and (max-width: 768px) {
    .box_flex_columns {
        flex-direction: column;
    }
}

.box_flex_rows {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.box_label_details {
    text-align: left;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.box_label_details .title {
    padding: 7px;
    background: var(--color1);
    color: #FFF;
}

.box_label_details .content {
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-wrap: anywhere;
}

.box_label_details .row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.box_label_details .content.details_rows .row {
    flex-direction: row;
}

.box_label_details .content.details_rows .row label {
    flex-shrink: 0;
}

.box_label_details .content.labels_bold .row label {
    font-weight: bold;
}



.box_label_details .row.required label::after {
    content: ' (wymagane)';
    font-size: 11px;
    color: #F00;
}



.replies_section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket_reply {
    border-radius: 4px;
    border: 1px solid #bbb;
}

.ticket_reply.my-reply {
    background: #0001;
}

.ticket_reply .reply_header {
    padding: 5px;
    border-bottom: 1px solid #bbb;
    background: #FFF7;
    font-weight: bold;
    display: flex;
    gap: 5px 20px;
}

.ticket_reply .reply_text {
    padding: 10px;
    overflow-x: auto;
    text-align: left;
}

.ticket_reply .reply_attachments {
    margin: 0;
    padding: 10px;
    border-top: 1px solid #999;
}



.attachments {
    margin: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px;
}

.attachments .element {
    padding: 0;
    border: 0;
    height: 70px;
    min-width: 30px;
    max-width: 250px;
    border-radius: 5px;
    position: relative;
    transition: .1s;
    cursor: pointer;
    box-shadow: 0px 0px 2px #666;
    position: relative;
    overflow-wrap: break-word;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-decoration: none;
    color: #000;
}

.attachments .element[data-type="image"] > div img {
    max-width: 100%;
    max-height: 100%;
}

.attachments .element > div {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.attachments .element[data-type="file"] > div > img {
    width: 30px;
    margin: 0 5px;
}

.attachments .element[data-type="file"] > div .name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
    padding-right: 10px;
}

.attachments .element:hover {
    box-shadow: 0px 0px 10px #666;
}


.mce-panel {
    border-color: rgb(133,133,133) !important;
}

.title_box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
}



.tickets_list {
    border-collapse: collapse;
}

.tickets_list a {
    text-decoration: none;
}

.tickets_list td,
.tickets_list th {
    padding: 5px 10px;
}

.tickets_list thead tr:last-child > * {
    border-bottom: 3px solid #CCC;
}

.tickets_list tbody tr:nth-child(odd) td {
    background: #EEE;
}



.pagination > * {
    border: 1px solid #999;
    border-radius: 3px;
    padding: 2px 5px;
}

.pagination > a {
    text-decoration: none;
}

.pagination .current_page {
    font-weight: bold;
    background: var(--color1);
    color: #FFF;
}


.dropdown-menu {
    min-width: 175px;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    background-color: #ffffff;
    border: 0;
    border-radius: 2px;
    font-size: 14px;
    text-align: left;
    flex-direction: column;
    border: 1px solid #757575;
}

.dropdown-menu > * {
    padding: 8px 14px;
    text-decoration: none;
    color: #000;
}

.dropdown-menu > *:hover {
    background: #EEE;
}

.ncrm_master_popup {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    background: #0003;
    display: none;
    align-items: center;
    justify-content: center;
}

.ncrm_master_popup.no_background {
    pointer-events: none;
    background: #0000;
}

.ncrm_master_popup.show {
    display: flex !important;
}

.ncrm_master_popup #master_popup_box {
    width: 500px;
    background-color: #fff;
    border: 1px solid #d1d1d1;
    padding: 20px;
    max-height: 90%;
    min-height: 120px;
    box-shadow: 0px 0px 10px #ccc;
    overflow: auto;
    position: relative;
    pointer-events: all;
}

#master_popup_box.wide {
    width: 1140px !important;
}


#master_popup_content.loader {
    background: url(/media/theme/images/spinner.svg) center center no-repeat;
    background-size: 80px 80px;
    height: 40px;
}

#master_popup_content {
    overflow: auto;
    position: relative;
    text-align: center;
}


#master_popup_content .master_popup_form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

#master_popup_content .master_popup_form h4 {
    margin: 0;
    padding: 10px 0;
}

#master_popup_content .master_popup_form h4:not(:first-child) {
    margin-top: 10px;
}

#master_popup_content .master_popup_form > div {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}

#master_popup_content .master_popup_form > div > * {
    padding: 0 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#master_popup_content .master_popup_form > div > label {
    width: 140px;
    align-items: flex-end;
    text-align: right;
    margin-bottom: 0;
    justify-content: flex-start;
}

#master_popup_content .master_popup_form > div > div:not([class*="c-btn"]) {
    text-align: left;
    flex: 1;
}


#master_popup_title {
    margin-bottom: 10px;
    font-size: 18px;
}

#master_popup_close {
    position: absolute;
    right: 3px;
    top: 3px;
    cursor: pointer;
    height: 20px;
    width: 20px;
}