:root {
    --bg-sidebar: rgb(250, 250, 250);
    --sidebar-width: 250px;
}

body.centered {
    width: 100vw;
    min-height: 100vh;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    margin-left: 60px;
    padding: 15px;
}

.bi {
    /*filter: drop-shadow(0px 0px 0px);*/
}

@media (max-width: 576px) {

    .container,
    .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    .row {
        margin-left: auto;
        margin-right: auto;
    }

    .panel {
        box-shadow: 0 .075rem .75rem rgba(0, 0, 0, .15) !important;
    }
}

.panel {
    background-color: white;
    box-shadow: var(--bs-box-shadow-lg);
}

.panel h1,
.panel h2,
.panel h3,
.panel h4,
.panel h5,
.panel h6 {
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.modal h1,
.modal h2,
.modal h3,
.modal h4,
.modal h5,
.modal h6 {
    padding-bottom: 0;
    margin-bottom: 0;
}

.panel h1 {
    border-bottom: 2px solid rgba(0, 0, 0, .25);
}

.panel h2 {
    border-bottom: 1px solid rgba(0, 0, 0, .15);
}

label.form-label {
    font-size: 0.9em;
    font-weight: 600;
    opacity: .85;
}

button[data-type='minus'],
button[data-type='plus'] {
    width: 2.5em
}

details.code summary {
    font-size: .9em;
    margin-top: .5em;
    opacity: .5;
}

details.code code {
    padding: 1em;
    border: 1px dotted rgba(0, 0, 0, .15);
    display: block;
    white-space: pre;
}

.input-number-group input[type='number'] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-number-group input[type='number']::-webkit-inner-spin-button,
.input-number-group input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

input[type='number']::-webkit-inner-spin-button {
    margin-left: 1em;
}

.d-grid>.grid-cell {
    margin-right: -1px;
    border-bottom: 1px solid rgba(0, 0, 0, .15);
    padding: .5em;
    border-right: 1px dotted rgba(0, 0, 0, .075);
    border-left: 1px dotted rgba(0, 0, 0, .075);
}

.d-grid>.grid-cell input {
    font-size: .7em;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}

table tr>*:not(:last-child) {
    border-right: 1px dotted rgba(0, 0, 0, .075);

}

.form-check-input:checked {
    background-color: rgb(33, 33, 33);
    border-color: rgb(180, 180, 180);
}

.form-check-input {
    border-color: rgb(180, 180, 180);
}

.form-check-input:focus {
    border-color: rgb(180, 180, 180);
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(128, 128, 128, .25);
}

input[type='checkbox']:checked~.form-check-label,
input[type='radio']:checked~.form-check-label {
    font-weight: 500;
    text-shadow: 0 0 black;
}

/* */

.sidebar {
    height: 100vh;
    width: 50px;
    max-width: 100%;
    min-width: 50px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--bg-sidebar);
    transition: width 0.3s ease;
    overflow-x: hidden;
    padding-top: 20px;
    border-right: 2px solid var(--bs-gray-200);
    overflow-y: auto;
    z-index: 5;
}

.sidebar:hover {
    width: var(--sidebar-width);
}

.sidebar:hover #nav-lock,
.sidebar.open #nav-lock {
    opacity: 100;
}

.sidebar #nav-lock {
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #0003;
    top: 0px;
    right: 0px;
}

.sidebar.open {
    width: var(--sidebar-width) !important;
    overflow-y: scroll;
}

.sidebar.transition-complete {
    overflow-y: scroll;
}

.sidebar .nav-link {
    padding: 10px 15px;
    white-space: nowrap;
    display: list-item;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
}

.sidebar .nav-link span {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .nav-link span,
.sidebar.open .nav-link span {
    opacity: 1;
}

.sidebar [data-app-logo] {
    transition: transform .3s ease;
}

.sidebar:hover [data-app-logo],
.sidebar.open [data-app-logo] {
    transform: scale(1.5);
}

main {
    margin-left: 50px;
    transition: margin-left .3s ease;
    width: calc(100% - 50px);
}

.sidebar:hover+main,
.sidebar.open+main {
    margin-left: var(--sidebar-width);
}


.sidebar>* {
    transition: width .3s ease;
    width: 100%;
}

.sidebar:hover>*,
.sidebar.open>* {
    width: calc(var(--sidebar-width) - 10px);
}

@media screen and (min-width: 768px) {
    .sidebar.open + main {
        width: calc(100% - var(--sidebar-width));
    }
}

@media screen and (max-width: 767.995px) {
    .sidebar.open + main {
        margin-left: 0;
    }
    #nav-lock {
        display: none;
        visibility: hidden;
    }
}

/** sidebar scroll */

    ::-webkit-scrollbar {
        width: 5px;
        height: 5px;
    }

    ::-webkit-scrollbar-button {
        width: 3px;
        height: 3px;
    }

    ::-webkit-scrollbar-thumb {
        background: #e1e1e1;
        border: 1px solid var(--bg-sidebar);
        border-radius: 50px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #ffffff;
    }

    ::-webkit-scrollbar-thumb:active {
        background: #000000;
    }

    ::-webkit-scrollbar-track {
        background: var(--bg-sidebar);
        border: 1px solid var(--bg-sidebar);
        border-radius: 50px;
    }

    ::-webkit-scrollbar-track:hover {
        background: var(--bg-sidebar);
    }

    ::-webkit-scrollbar-track:active {
        background: var(--bg-sidebar);
    }

    ::-webkit-scrollbar-corner {
        background: transparent;
    }

/* navigation dropdown */

.custom-dropdown {
    position: relative;
}

.custom-dropdown .dropdown-menu {
    position: relative !important;
    transform: translate(0px, 0px) !important;
    top: 0;
    left: 0;
    width: 100%;
    margin-top: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-color: #f8f9fa;
    padding-left: 1.5rem;
    transition: all .3s ease;
    display: block;
    height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: .9em;
}

.sidebar:not(:hover) .custom-dropdown .dropdown-menu {
    transform: scaleY(0);
    height: 0;
    overflow: hidden;
    opacity: 0;
}

.sidebar ul li:hover {
    background-color: #f1f1f1;
}

.sidebar:hover .custom-dropdown .dropdown-menu.show {
    height: fit-content;
    opacity: 1;
}

.sidebar .custom-dropdown .dropdown-menu li {
    border-left: 1px solid var(--bs-dark-bg-subtle);
    margin: 0;
    padding-top: .125em;
    padding-bottom: .125em;
}

.sidebar .custom-dropdown .dropdown-menu li hr {
    border-style: dotted !important;
}

.sidebar .custom-dropdown .dropdown-menu li .nav-link {
    padding-top: .25em;
    padding-bottom: .25em;
}

.sidebar .nav-item span {
    color: rgb(33, 33, 33);
}

.sidebar:not(:hover) .custom-dropdown .dropdown-menu,
.custom-dropdown .dropdown-menu:not(.show) {
    padding: 0;
}

.sidebar .nav-item {
    transition: transform 0.3s ease-in-out;
    transform: none !important;
}

@media (max-width: 767.98px) {
    .sidebar {
        z-index: 1000;
        display: none !important;
    }

    .sidebar:hover {
        width: 100vw !important;
    }

    .sidebar:hover>* {
        width: unset !important;
    }

    .sidebar.show {
        display: block !important;
        width: 100vw;
    }

    .sidebar.show .nav-link span {
        opacity: 1;
    }

    main {
        margin-left: unset;
        width: 100vw;
    }

    .sidebar:hover+main {
        margin-left: 0;
    }

    .sidebar:hover [data-app-logo] {
        transform: unset !important;
    }

    .sidebar:not(:hover) .custom-dropdown .dropdown-menu.show {
        transform: unset !important;
        height: unset !important;
        overflow: unset !important;
        opacity: 1 !important;
        padding-left: 1.5rem !important;
        padding-top: .5rem;
        padding-bottom: .5rem;
    }
}

.gray-badge {
    background-color: #00000008 !important;
    color: #0006 !important;
    box-shadow: inset 0 2px 4px #0003;
}

ul.nav.nav-tabs[role="tablist"] {
    display: inline-flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

ul.nav.nav-tabs[role="tablist"]>li {
    white-space: nowrap;
}

ul.nav.nav-tabs[role="tablist"]>li>button {
    padding-left: 1em;
    padding-right: 1em;
}

ul.nav.nav-tabs[role="tablist"]>li>button.active {
    background-color: var(--bs-blue);
    border-color: var(--bs-border-color-translucent);
    color: white;
}

ul.nav.nav-tabs[role="tablist"]>li>button.active>.gray-badge {
    background-color: white !important;
}

ul.nav.nav-tabs[role="tablist"]>li.divider {
    border-left: 1px solid #0003;
    margin-left: .5em;
    margin-right: .5em;
}

ul.nav.nav-tabs[role="tablist"]>li.divider * {
    display: none;
}

table td[data-activities] {
    vertical-align: middle;
    text-align: center;
}

table td[data-activities] div {
    color: #000;
    opacity: .5;
    mix-blend-mode: multiply;
}

a[data-anchor] {
    position: relative;
    top: -30px;
}

.row .row {
    margin-left: calc(var(--bs-gutter-x) * -.5);
    margin-right: calc(var(--bs-gutter-x) * -.5);
}

.lookup-results {
    top: 100%;
    z-index: 100;
}

.lookup-results>a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav.nav-tabs.position-relative {
    z-index: 100;
}

h1.underline,
h2.underline,
h3.underline,
h4.underline,
h5.underline,
h6.underline {
    text-decoration: underline;
    text-decoration-color: var(--bs-primary) !important;
}

.nested-relation-block>.nested-relation-block {
    margin-left: 2em;
    position: relative;
}

.nested-relation-block>.nested-relation-block::before {
    display: block;
    content: '';
    position: absolute;
    bottom: calc(100% - 1.5em + 3px);
    left: -1em;
    height: calc(var(--dynamic-prev-length));
    width: 1em;
    border-left: 2px solid var(--bs-primary-border-subtle);
    border-bottom: 2px solid var(--bs-primary-border-subtle);
    border-radius: 0 0 0 1em;
}

.nested-relation-block>.nested-relation-block>span.d-block.fw-bold.mb-2:before {
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: 400 !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -.125em;
    -webkit-font-smoothing: antialiased;
    content: "\F287";
    font-size: .5em;
    position: relative;
    top: -.45em;
    right: 0.75em;
    color: var(--bs-primary);
}

@media screen and (max-width: 767px) {
    .nested-relation-block>.nested-relation-block {
        margin-left: 1em;
        line-height: 2em;
    }

    .nested-relation-block>.nested-relation-block::before {
        width: .5em;
    }

    .nested-relation-block>.nested-relation-block>span.d-block.fw-bold.mb-2 {
        margin-left: -.25em;
    }
}

th.min,
td.min {
    width: 1%;
    white-space: nowrap;
}

@media screen and (max-width: 767px) {
    .min>*:not(:last-child) {
        margin-bottom: 4px;
    }

    .min {
        white-space: normal !important;
    }
}

.section-header {
    font-size: 1.25rem;
    display: flex;
    align-items: baseline;
}

.section-header>i.bi {
    margin-right: .7em;
}

.section-header:not(:first-child) {
    margin-top: 2em;
}

.badge {
    --current-badge-color: currentColor;
    outline-color: color-mix(in srgb, var(--current-badge-color) 15%, transparent);
    outline-style: solid;
    outline-width: 1px;
    outline-offset: -1px;
}

/* stacking margin for section headers in panels' row>columns */
    .panel .row>[class*="col-"] .section-header {
        margin-top: 2em;
    }

    .panel .row>[class*="col-"]:first-child .section-header:first-child {
        margin-top: 0;
    }

    .panel .row>[class*="col-"]:not(.col-12) .section-header:first-child {
        margin-top: 0;
    }

    @media (min-width: 576px) {
        .panel .row>[class*="col-sm-"]:not(.col-sm-12) .section-header:first-child {
            margin-top: 0;
        }
    }

    @media (min-width: 768px) {
        .panel .row>[class*="col-md-"]:not(.col-md-12) .section-header:first-child {
            margin-top: 0;
        }
    }

    @media (min-width: 992px) {
        .panel .row>[class*="col-lg-"]:not(.col-lg-12) .section-header:first-child {
            margin-top: 0;
        }
    }


/* action plan start grid */
.d-grid.actionplan {
    display: grid;
    grid-template-columns: min-content auto auto;
    grid-template-rows: repeat(2, auto);
    grid-column-gap: 1em;
    grid-row-gap: 1em;
}

/* STARY - START */
/*
.d-grid.actionplan .div1 { grid-area: 2 / 1 / 3 / 2; }
.d-grid.actionplan .div2 { grid-area: 2 / 2 / 5 / 3; }
.d-grid.actionplan .div3 { grid-area: 3 / 1 / 4 / 2; }
.d-grid.actionplan .div4 { grid-area: 2 / 3 / 5 / 4; }
.d-grid.actionplan .div5 { grid-area: 4 / 1 / 4 / 1; }
.d-grid.actionplan .div6 { grid-area: 1 / 1 / 2 / 2; }
.d-grid.actionplan .div7 { grid-area: 1 / 2 / 2 / 4; }

@media screen and (max-width: 767px) {
    .d-grid.actionplan {
        grid-template-columns: auto;
        grid-template-rows: repeat(4, auto);
        grid-gap: .5em;
    }

    .d-grid.actionplan .div1 { grid-area: 2 / 1 / 3 / 2; text-align: center; }
    .d-grid.actionplan .div2 { grid-area: 3 / 1 / 4 / 4; }
    .d-grid.actionplan .div3 { grid-area: 2 / 2 / 3 / 3; text-align: center; }
    .d-grid.actionplan .div4 { grid-area: 4 / 1 / 5 / 4; }
    .d-grid.actionplan .div5 { grid-area: 2 / 3 / 3 / 4; text-align: center; }
    .d-grid.actionplan .div6 { grid-area: 1 / 1 / 2 / 2; text-align: center; }
    .d-grid.actionplan .div7 { grid-area: 1 / 2 / 2 / 4; }
}
    */
/* STARY - END */

/* NOWY - START */

.d-grid.actionplan .div1 { grid-area: 2 / 1 / 3 / 2; }
.d-grid.actionplan .div2 { grid-area: 2 / 2 / 5 / 3; }
.d-grid.actionplan .div3 { grid-area: 3 / 1 / 4 / 2; }
.d-grid.actionplan .div4 { grid-area: 2 / 3 / 5 / 4; }
.d-grid.actionplan .div5 { grid-area: 4 / 1 / 4 / 1; }
.d-grid.actionplan .div6 { grid-area: 1 / 1 / 2 / 2; }
.d-grid.actionplan .div7 { grid-area: 1 / 2 / 2 / 4; }
.d-grid.actionplan .div8 { grid-area: 1 / 4 / 5 / 5; }

@media screen and (max-width: 767px) {
    .d-grid.actionplan {
        grid-template-columns: auto;
        grid-template-rows: repeat(4, auto);
        grid-gap: .5em;
    }

    .d-grid.actionplan .div1 { grid-area: 2 / 1 / 3 / 2; text-align: center; }
    .d-grid.actionplan .div2 { grid-area: 3 / 1 / 4 / 4; }
    .d-grid.actionplan .div3 { grid-area: 2 / 2 / 3 / 3; text-align: center; }
    .d-grid.actionplan .div4 { grid-area: 4 / 1 / 5 / 4; }
    .d-grid.actionplan .div5 { grid-area: 2 / 3 / 3 / 4; text-align: center; }
    .d-grid.actionplan .div6 { grid-area: 1 / 1 / 2 / 2; text-align: center; }
    .d-grid.actionplan .div7 { grid-area: 1 / 2 / 2 / 4; }
    .d-grid.actionplan .div8 { grid-area: 5 / 1 / 5 / 4; }
}

/* NOWY - END */

ul.custom-dots {
    padding-left: 0;
}

ul.custom-dots > li {
    list-style: none;
    display: flex;
}

ul.custom-dots > li::before {
    content: "\F309";
    padding-right: .25em;
    display: inline-flex;
    position: relative;
    top: .25em;
    font-family: "bootstrap-icons";
    font-size: 1em;
    color: var(--bs-primary);
    font-weight: 900;
    text-align: center;
    line-height: 1;
    letter-spacing: 0.1em;
}

.dashboard-block {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, auto);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    padding: .5em 1em;
    overflow: hidden;
    position: relative;
}

.dashboard-block .dashboard-block-icon { grid-area: 1 / 1 / 2 / 3;}
.dashboard-block .dashboard-block-icon::before {
    position: absolute;
    top: .25em;
    right: .25em;
    font-size: 2em;
 }
.dashboard-block .dashboard-block-value {
    grid-area: 2 / 1 / 3 / 3;
    font-size: 2.5em;
}
.dashboard-block .dashboard-block-desc {
    grid-area: 3 / 1 / 4 / 3;
    font-size: .85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-block .dashboard-block-icon {

}

table.table-to-cards td.grouped-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    border: none !important;
}

table.table-to-cards tbody tr td.grouped-container {
    display: flex;
    flex-direction: row;
    gap: 0;
    justify-content: space-between;
}

table.table-to-cards tbody tr td.grouped-container > td:not(:last-child) {
    border-right: 1px solid var(--bs-gray-200) !important;
}

.signature-pad {
    border: 1px solid var(--bs-gray-300);
    border-radius: .25rem;
    padding: .5em;
    width: fit-content;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

.signature-pad > canvas {
    position: relative;
    display: block;
}

@media screen and (max-width: 767px) {
    [data-grid-id='start_panel'] {
        font-size: .85rem;
        grid-template-columns: 1fr 4fr !important;
    }
}

.panel .row .row>* {
    margin-top: 0!important;
}
.panel .row .row {
    margin-top: 0;
}

.number-block,
.icon-block {
    padding: 1em;
    box-shadow: var(--bs-box-shadow);
}

.number-block .number-block-number,
.icon-block .icon-block-icon {
    margin-right: 1em;
}

.number-block .number-block-number-inner {
    font-size: 1.5em;
    font-weight: 600;
    display: inline-flex;
    min-width: 2ch;
    justify-content: center;
    align-items: center;
    line-height: 1;
    padding: .15em .25em;
    border-radius: .5em;
    color: var(--bs-white)
}

.icon-block .icon-block-icon-inner {
    font-size: 1.5em;
    display: inline-flex;
    aspect-ratio: 1;
    justify-content: center;
    align-items: center;
    line-height: 1;
    padding: .25em;
    border-radius: .2em;
    color: var(--bs-white);
}

.number-block .number-block-number-inner.bg-warning,
.number-block .number-block-number-inner.bg-light,
.icon-block .icon-block-icon-inner.bg-warning,
.icon-block .icon-block-icon-inner.bg-light {
    color: var(--bs-black);
}

.number-block .number-block-content .number-block-title,
.icon-block .icon-block-content .icon-block-title {
    font-size: 1.25em;
    font-weight: 600;
    display: block;
    margin-bottom: .5em;
}

.number-block .number-block-content,
.icon-block .icon-block-content {
    width: 100%;
}

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

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

form#evaluationMarksForm select {
    padding-left: 1.25em;
    border: none;
    outline-offset: -1px;
    outline: 1px solid #0001
}

.whitespace-nowrap {
    white-space: nowrap;
}

@media (min-width: 600px) {
    .d-sm-contents {
        display: contents!important;
    }
}

.d-contents {
    display: contents;
}

.header-grouped-container {
    display: none;
}


table.sortable thead tr th:not(.no-sort) {
    cursor: pointer;
}

table.sortable thead tr th:not(.no-sort)[aria-sort='ascending']::after {
    display: inline-block;
    content: "\2191";
    margin-left: .25em;
}

table.sortable thead tr th:not(.no-sort)[aria-sort='descending']::after {
    display: inline-block;
    content: "\2193";
    margin-left: .25em;
}

table.sortable thead tr th:not(.no-sort)[aria-sort] {
    background-color: #e6f0fe;
}


.text-ellipsis {
    text-overflow: ellipsis;
}

/* table to cards JS application - START */

.cards-container.row > div {
    margin-bottom: var(--bs-gutter-y);
}

.cards-container .card {
  background: #fff;
  border: none;
  /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
  border-radius: 8px;
  padding: 15px;
}

.cards-container .card .card-field {
  margin-bottom: 10px;
  border-bottom: 1px solid #0001;
}

.cards-container .border-bottom-0 .card-field {
    border-bottom: none;
}


.cards-container .card .field-label {
  font-weight: bold;
  display: block;
  margin-bottom: .1em;
  color: #666;
  font-size: .75em !important;
}

.cards-container .card .field-value {
  display: block;
  /* color: #333; */
  margin-bottom: 5px;
}

.cards-container .card .card-field-row {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.cards-container .card .card-field-row .card-field {
  flex: auto;
  margin-bottom: 0;
}

.cards-container .card > .card-field:last-child,
.cards-container .card .card-field-row:last-child,
.cards-container .card .card-field-row:last-child .card-field {
  border-bottom: none;
}

.cards-container .card .card-field-row[class*='justify-content'] .card-field {
    justify-content: inherit;
}

.cards-container .card .card-field-row[class*='justify-content'] .card-field span.field-value {
    display: flex;
    justify-content: inherit;
}

/* table to cards JS application - END */

.visibility-collapse {
    visibility: collapse;
}

/* drag and drop */

.dragging {
    opacity: 0.8;
    touch-action: none;
    user-select: none;
}

.dragging-start {
    transition: transform 0.2s ease-out;
}

.draggable-placeholder {
    opacity: 0.4;
}

/* actionplan mass creation list */

ul#MassEventCreationListContent > li {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    font-size: .8rem;
}

ul#MassEventCreationListContent > li > div.target {
    display: grid;
    flex-grow: 1;
    flex-basis: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

ul#MassEventCreationListContent > li > div.target > small {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flex-unset  {
    flex: unset !important;
}

ol[data-survey] > li.invalid > p.h5 {
    color: darkred;
}

[data-survey] i.bi {
    padding-left: 15px !important;
    padding-right: 15px !important;
    font-size: 1.4em;
}

div.cards-container div.card.shadow:has(input[type=checkbox].form-check-input:checked) {
    outline: 5px solid var(--bs-gray-400);
}
