:root {
    --primary: #3c8dbc;
    --primary-active: #357ca5;
    --border: #d2d6de;
    --border-light: #f4f4f4;
    --background: #ecf0f5;
    --red: #f56954;
    --red-active: #d33724;
    --gray: #888;
    --green: #10a55b;
    --help-block-color: #737373;
    --text: #333;
}

ol {
    margin: 0;
    padding: 0;
}

ol li {
    margin: 0 0 0 1em;
    padding: 0;
}

ul.middle-dot,
ul.middle-dot li {
    margin: 0;
    padding: 0;
    list-style: none;
}

ul.middle-dot {
    margin: 0 0 -1em;
}

ul.middle-dot li {
    margin: 0 0 1em 1em;
}

ul.middle-dot li:before {
    content: "・";
    margin: 0 0 0 -1.2em;
}

ul.middle-dot.small-margins li {
    margin-bottom: 0.5em;
}

.normal {
    font-weight: normal;
}

.f1 {
    font-size: 36px;
}

.f2 {
    font-size: 30px;
}

.f3 {
    font-size: 24px;
}

.f4 {
    font-size: 18px;
}

.f5 {
    font-size: 14px;
}

.f6 {
    font-size: 12px;
}

.lh-solid {
    line-height: 1;
}

.tr {
    text-align: right;
}

.button-minimal {
    width: 44px;
    height: 44px;
}

.help-block-color {
    color: var(--help-block-color);
}

.gray {
    color: var(--gray);
}

.red-active {
    color: var(--red-active);
}

.white-hover:hover {
    color: #fff;
}

.white-child-hover:hover .child {
    color: #fff;
}

.bg-white {
    background: #fff;
}

.bg-light {
    background: var(--border-light);
}

.bg-background {
    background: var(--background);
}

.bg-primary-child-hover:hover .child {
    background: var(--primary) !important;
}

.green {
    color: var(--green);
}

.bg-green {
    background: var(--green);
}

.bg-red-active-hover:hover {
    background: var(--red-active);
}

.pe-1 {
    pointer-events: auto;
}

.pe-0 {
    pointer-events: none;
}

.cursor-pointer {
    cursor: pointer;
    cursor: hand;
}

.cursor-default {
    cursor: default;
}

.cursor-ew {
    cursor: ew-resize;
}

.cursor-ns {
    cursor: ns-resize;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.top-0 {
    top: 0;
}

.top-1 {
    top: 16px;
}

.left,
.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.aspect-ratio {
    height: 0;
    position: relative;
}

.aspect-ratio--1x1 {
    padding-bottom: 100%;
}

.aspect-ratio--object {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}

.ma {
    margin: 10px;
}

.ma0 {
    margin: 0;
}

.mt {
    margin-top: 10px;
}

.mt0 {
    margin-top: 0;
}

.mt5 {
    margin-top: 5px;
}

.mt15 {
    margin-top: 15px;
}

.mt20 {
    margin-top: 20px;
}

.ml {
    margin-left: 10px;
}

.ml0 {
    margin-left: 0;
}

.modal-footer .btn + .btn.ml0 {
    margin-left: 0;
}

.ml5 {
    margin-left: 5px;
}

.ml20 {
    margin-left: 20px;
}

.mr {
    margin-right: 10px;
}

.mr5 {
    margin-right: 5px;
}

.mr15 {
    margin-right: 15px;
}

.mr20 {
    margin-right: 20px;
}

.no-margin-right {
    margin-right: 0 !important;
}

.mb {
    margin-bottom: 10px;
}

.mb0 {
    margin-bottom: 0;
}

.mb5 {
    margin-bottom: 5px;
}

.mb15 {
    margin-bottom: 15px;
}

.mb20 {
    margin-bottom: 20px;
}

.nh {
    margin-left: -10px;
    margin-right: -10px;
}

.nb {
    margin-bottom: -10px;
}

.nl5 {
    margin-left: -5px;
}

.nt5 {
    margin-top: -5px;
}

.pa {
    padding: 10px;
}

.pa0 {
    padding: 0;
}

.pa1 {
    padding: 1px;
}

.pa2 {
    padding: 2px;
}

.pa4 {
    padding: 4px;
}

.pa5 {
    padding: 5px;
}

.pa15 {
    padding: 15px;
}

.ph {
    padding-left: 10px;
    padding-right: 10px;
}

.ph5 {
    padding-left: 5px;
    padding-right: 5px;
}

.ph15 {
    padding-left: 15px;
    padding-right: 15px;
}

.pv {
    padding-top: 10px;
    padding-bottom: 10px;
}

.pv0 {
    padding-top: 0;
    padding-bottom: 0;
}

.pv5 {
    padding-top: 5px;
    padding-bottom: 5px;
}

.pv15 {
    padding-top: 15px;
    padding-bottom: 15px;
}

.pv20 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.pl {
    padding-left: 10px;
}

.pl15 {
    padding-left: 15px;
}

.pr {
    padding-right: 10px;
}

.pr1 {
    padding-right: 1px;
}

.pr15 {
    padding-right: 15px;
}

.no-padding {
    padding: 0 !important;
}

.no-padding-right {
    padding-right: 0 !important;
}

.pt {
    padding-top: 10px;
}

.pt1 {
    padding-top: 1px;
}

.pt4 {
    padding-top: 4px;
}

.pt5 {
    padding-top: 5px;
}

.pt15 {
    padding-top: 15px;
}

.pt20 {
    padding-top: 20px;
}

.pb {
    padding-bottom: 10px;
}

.pb4 {
    padding-bottom: 4px;
}

.pb5 {
    padding-bottom: 5px;
}

.pb15 {
    padding-bottom: 15px;
}

.pb20 {
    padding-bottom: 20px;
}

.w-10 {
    width: 10%;
}

.w-12 {
    width: 12%;
}

.w-15 {
    width: 15%;
}

.w-20 {
    width: 20%;
}

.w-25 {
    width: 25%;
}

.w-37 {
    width: 37%;
}

.w-40 {
    width: 40%;
}

.w-50 {
    width: 50%;
}

.w-100 {
    width: 100%;
}

.w-third {
    width: calc(100% / 3);
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.fn {
    float: none;
}

.dn {
    display: none;
}

.di {
    display: inline;
}

.db {
    display: block;
}

.dib {
    display: inline-block;
}

.dit {
    display: inline-table;
}

.dt {
    display: table;
}

.dtc {
    display: table-cell;
}

.dt-row {
    display: table-row;
}

.dt-row-group {
    display: table-row-group;
}

.dt-column {
    display: table-column;
}

.dt-column-group {
    display: table-column-group;
}

.z-0 {
    z-index: 0;
}

.z-1 {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

.z-3 {
    z-index: 3;
}

.z-4 {
    z-index: 4;
}

.z-5 {
    z-index: 5;
}

.z-999 {
    z-index: 999;
}

.z-9999 {
    z-index: 9999;
}

.z-max {
    z-index: 2147483647;
}

.z-inherit {
    z-index: inherit;
}

.z-initial {
    z-index: initial;
}

.z-unset {
    z-index: unset;
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.flex-wrap-reverse {
    flex-wrap: wrap-reverse;
}

.flex-column-reverse {
    flex-direction: column-reverse;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.items-center {
    align-items: center;
}

.items-baseline {
    align-items: baseline;
}

.items-stretch {
    align-items: stretch;
}

.self-start {
    align-self: flex-start;
}

.self-end {
    align-self: flex-end;
}

.self-center {
    align-self: center;
}

.self-baseline {
    align-self: baseline;
}

.self-stretch {
    align-self: stretch;
}

.justify-start {
    justify-content: flex-start;
}

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

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.content-start {
    align-content: flex-start;
}

.content-end {
    align-content: flex-end;
}

.content-center {
    align-content: center;
}

.content-between {
    align-content: space-between;
}

.content-around {
    align-content: space-around;
}

.content-stretch {
    align-content: stretch;
}

.shrink-0 {
    flex-shrink: 0;
}

.grow-0 {
    flex-grow: 0;
}

.grow-1 {
    flex-grow: 1;
}

.overflow-visible {
    overflow: visible;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-scroll {
    overflow: scroll;
}

.overflow-auto {
    overflow: auto;
}

.overflow-x-visible {
    overflow-x: visible;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

.overflow-x-scroll {
    overflow-x: scroll;
}

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-y-visible {
    overflow-y: visible;
}

.overflow-y-hidden {
    overflow-y: hidden;
}

.overflow-y-scroll {
    overflow-y: scroll;
}

.overflow-y-auto {
    overflow-y: auto;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.o-100 {
    opacity: 1;
}

.o-90 {
    opacity: 0.9;
}

.o-80 {
    opacity: 0.8;
}

.o-75 {
    opacity: 0.75;
}

.o-70 {
    opacity: 0.7;
}

.o-60 {
    opacity: 0.6;
}

.o-50 {
    opacity: 0.5;
}

.o-40 {
    opacity: 0.4;
}

.o-30 {
    opacity: 0.3;
}

.o-25 {
    opacity: 0.25;
}

.o-20 {
    opacity: 0.2;
}

.o-10 {
    opacity: 0.1;
}

.o-05 {
    opacity: 0.05;
}

.o-025 {
    opacity: 0.025;
}

.o-0 {
    opacity: 0;
}

.border-box {
    box-sizing: border-box;
}

.ba {
    border-style: solid;
    border-width: 1px;
    border-color: var(--border);
}

.bt {
    border-top-style: solid;
    border-top-width: 1px;
    border-color: var(--border);
}

.br {
    border-right-style: solid;
    border-right-width: 1px;
    border-color: var(--border);
}

.bb {
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-color: var(--border);
}

.bl {
    border-left-style: solid;
    border-left-width: 1px;
    border-color: var(--border);
}

.bn {
    border-style: none;
    border-width: 0;
}

.bn-last-child > div:last-child {
    border-style: none;
    border-width: 0;
}

.br-1 {
    border-radius: 1px;
}

.br-2 {
    border-radius: 2px;
}

.br-3 {
    border-radius: 3px;
}

.br-100 {
    border-radius: 100%;
}

.br-pill {
    border-radius: 9999px;
}

.b--green {
    border-color: var(--green);
}

.b--primary {
    border-color: var(--primary);
}

.b--primary-active {
    border-color: var(--primary-active);
}

.b--primary-active-hover:hover {
    border-color: var(--primary-active);
}

.b--light {
    border-color: var(--border-light);
}

.b--dotted {
    border-style: dotted;
}

.b--dashed {
    border-style: dashed;
}

.b--solid {
    border-style: solid;
}

.b--none {
    border-style: none;
}

.bw {
    border-width: 2px;
}

.show-child .child {
    display: none;
}

.show-child:hover .child {
    display: block;
}

.nav-tabs-custom.nav-tabs-custom--alt {
    box-shadow: none;
    margin: 0;
}

.nav-tabs-custom.nav-tabs-custom--alt > .nav-tabs {
    border: 0;
    padding-left: 15px;
}

.nav-tabs-custom.nav-tabs-custom--alt > .nav-tabs > li.active {
    border-top-color: transparent;
    border-bottom: 3px solid var(--primary);
}

.nav-tabs-custom.nav-tabs-custom--alt > .nav-tabs > li.active a {
    border-right-color: transparent;
    border-left-color: transparent;
    color: #333;
}

.btn-group-label {
    border-color: #ddd;
    color: #444;
    cursor: default;
}

.btn-group-label:hover {
    z-index: 0 !important;
}

.btn-group-label-warning {
    border-color: #e08e0b;
    background-color: #f39c12;
    color: #fff;
    cursor: default;
}

.btn-group-label-warning:hover {
    z-index: 0 !important;
    color: #fff;
}

.btn-group-label-success {
    border-color: #008d4c;
    background-color: #00a65a;
    color: #fff;
    cursor: default;
}

.btn-group-label-success:hover {
    z-index: 0 !important;
    color: #fff;
}

.grayscale {
    filter: grayscale();
}

.tl {
    text-align: left;
}

.tc {
    text-align: center;
}

.tr {
    text-align: right;
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
    vertical-align: middle;
}

.mw {
    max-width: 1134px;
}

.center {
    margin: 0 auto;
}

.custom-label {
    border-radius: 4px;
    padding: 2px 5px;
    display: inline-block;
    margin-right: 5px;
    margin-top: 1px;
    background: #ecf0f5;
    color: #3f8cba;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid rgba(63, 140, 186, 0.1);
}

body .ui-tree .ui-treenode .ui-treenode-content .ui-treenode-label.ui-state-highlight {
    background-color: var(--primary);
}

.pulse {
    animation: opacity 0.5s linear 0s alternate infinite none running;
}

@keyframes opacity {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

.ui-tree {
    /* background-color: transparent !important; TODO: dowiedzieć się po co był taki styl*/
    display: flex;
    flex-direction: column;
    align-self: stretch;
    width: 100% !important;
    overflow: hidden;
}

.ui-tree .ui-tree-container {
    max-height: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: auto;
}

p-tree#main {
    display: flex;
    align-self: stretch;
    width: 100%;
    flex-grow: 0;
    flex-shrink: 0;
}

body .ui-corner-all {
    border-radius: 0;
}

.radio-inline {
    padding: 0 !important;
    margin: 0 !important;
}

.radio-inline label {
    padding-right: 10px;
}

.checkbox {
    user-select: none;
}

.checkboxes-without-margins .checkbox {
    margin-top: 0;
    margin-bottom: 0;
}

.checkboxes-without-margins .checkbox + .checkbox {
    margin-top: 0;
}

.radios-without-margins .radio {
    margin-top: 0;
    margin-bottom: 0;
}

.radios-without-margins .radio + .radio {
    margin-top: 0;
}

/* PrimeNG Dropdown */

.ui-dropdown .ui-dropdown-label {
    white-space: normal;
}

body .ui-widget,
body .ui-widget .ui-widget,
body .ui-widget input,
body .ui-widget select,
body .ui-widget textarea,
body .ui-widget button {
    font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

p-dropdown[autowidth="false"] .ui-dropdown {
    width: 100% !important;
}

body .ui-dropdown-panel .ui-dropdown-filter-container {
    padding: 10px;
    width: 100%;
    border-bottom: 1px solid var(--border-light);
}

body .ui-inputtext {
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

body .ui-inputtext.ui-state-focus,
body .ui-inputtext:focus {
    border: 1px solid var(--primary);
}

body .ui-dropdown-panel .ui-dropdown-filter-container .fa {
    top: 18px;
    right: 20px;
}

body .ui-dropdown-panel .ui-dropdown-items .ui-dropdown-item.ui-state-highlight {
    background-color: var(--primary);
}

/* PrimeNG TreeTable */

.ui-treetable table {
    table-layout: auto;
}

body .ui-treetable thead th {
    padding: 5px 0;
    border: 0;
}

body .ui-treetable thead th:first-child {
    text-align: left;
}

body .ui-treetable tbody td {
    padding: 5px 0;
}

/* PrimeNG Autocomplete */

.ui-autocomplete-loader {
    position: absolute;
    top: 9px;
    right: 9px;
}

/* Messages */

.message {
    position: relative;
    margin: 0 15px;
}

.message-container {
    background: var(--background);
    border-radius: 5px;
    padding: 20px;
    margin-left: 50px;
}

.message-container:before {
    content: "";
    position: absolute;
    top: calc(50% - 10px);
    right: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--background);
}

.message-from-user .message-container {
    border: 2px solid var(--background);
    background: #fff;
    border-radius: 5px;
    padding: 15px;
    margin-left: 0;
    margin-right: 50px;
}

.message-from-user .message-container:before {
    left: -10px;
    right: none;
    border-right: 10px solid var(--background);
    border-left: none;
    z-index: 1;
}

.message-from-user .message-container:after {
    content: "";
    position: absolute;
    top: calc(50% - 8px);
    left: -6px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #fff;
    z-index: 2;
}
