.login-page, .register-page {
    background: url(../images/bg-login.jpg) top left no-repeat!important;
    background-size: cover!important;
}
#login-form .custom-control-label {
    color: #fff;
}
.box.box-primary {
    padding: 0 10px;
}
.select2-container--bootstrap{width:100%!important}
.select2-container .select2-selection--single .select2-selection__rendered {

    padding-top: 4px;
    padding-left: 10px!important;

}
#user-task-grid-short-container {
	height: 375px;
}
.m-1 {
    margin:2px;
}

/* dark mode - naglowki i stopki gridow (Kartik ma na sztywno jasny gradient) */
.dark-mode .kv-table-header,
.dark-mode .kv-table-footer {
    background: linear-gradient(to bottom, #454d55 0%, #343a40 100%);
    color: #fff;
}

/* podglad zadania w modalu */
#taskModal .task-view-title {
    font-weight: 600;
    line-height: 1.3;
}

#taskModal .task-content {
    font-size: 1rem;
    line-height: 1.6;
}

#taskModal .task-content img {
    max-width: 100%;
    height: auto;
}

#taskModal .task-content h1,
#taskModal .task-content h2,
#taskModal .task-content h3,
#taskModal .task-content h4,
#taskModal .task-content h5,
#taskModal .task-content h6,
#taskModal .card-comments .comment-text h1,
#taskModal .card-comments .comment-text h2,
#taskModal .card-comments .comment-text h3,
#taskModal .card-comments .comment-text h4,
#taskModal .card-comments .comment-text h5,
#taskModal .card-comments .comment-text h6 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1rem 0 0.4rem;
}

#taskModal .card-comments .card-comment {
    padding: 0.75rem 0;
}

#taskModal .card-comments .comment-text {
    color: inherit;
    margin-left: 46px;
}

#taskModal .card-comments .username {
    margin-bottom: 0.35rem;
}

.dark-mode #taskModal hr {
    border-top-color: #4b545c;
}

/* dark mode - zwykle linki bez klasy */
.dark-mode a:not([class]) {
    color: #6ea8fe;
}

.dark-mode a:not([class]):not(.btn):hover {
    color: #9ec5fe;
}

/* dark mode - linki edycji w miejscu (Kartik Editable), bez wariantow text-* i bg-* */
.dark-mode .kv-editable-link:not([class*="text-"]):not([class*="bg-"]) {
    color: #6ea8fe;
}

.dark-mode .kv-editable-link:not([class*="text-"]):not([class*="bg-"]):hover {
    color: #9ec5fe;
}

/* dark mode - popovery (Kartik popover-x oraz zwykle popovery Bootstrapa 4) */
.dark-mode .popover,
.dark-mode .popover-x {
    background-color: #343a40;
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.dark-mode .popover-header,
.dark-mode .popover-x .popover-title,
.dark-mode .popover-x .popover-header {
    background-color: #3f474e;
    border-bottom-color: #4b545c;
    color: #fff;
}

.dark-mode .popover-body,
.dark-mode .popover-x .popover-content {
    background-color: transparent;
    color: #fff;
}

.dark-mode .popover-x .popover-footer {
    background-color: #3f474e;
    border-top-color: #4b545c;
}

.dark-mode .popover-x .close {
    color: #fff;
    text-shadow: none;
}

.dark-mode .bs-popover-top > .arrow::after,
.dark-mode .bs-popover-auto[x-placement^="top"] > .arrow::after {
    border-top-color: #343a40;
}

.dark-mode .bs-popover-right > .arrow::after,
.dark-mode .bs-popover-auto[x-placement^="right"] > .arrow::after {
    border-right-color: #343a40;
}

.dark-mode .bs-popover-left > .arrow::after,
.dark-mode .bs-popover-auto[x-placement^="left"] > .arrow::after {
    border-left-color: #343a40;
}

.dark-mode .bs-popover-bottom > .arrow::after,
.dark-mode .bs-popover-auto[x-placement^="bottom"] > .arrow::after {
    border-bottom-color: #3f474e;
}

.dark-mode .popover-x.top .arrow:after,
.dark-mode .popover-x.top-left .arrow:after,
.dark-mode .popover-x.top-right .arrow:after {
    border-top-color: #3f474e;
}

.dark-mode .popover-x.bottom .arrow:after,
.dark-mode .popover-x.bottom-left .arrow:after,
.dark-mode .popover-x.bottom-right .arrow:after {
    border-bottom-color: #3f474e;
}

.dark-mode .popover-x.right .arrow:after,
.dark-mode .popover-x.right-top .arrow:after,
.dark-mode .popover-x.right-bottom .arrow:after {
    border-right-color: #343a40;
}

.dark-mode .popover-x.left .arrow:after,
.dark-mode .popover-x.left-top .arrow:after,
.dark-mode .popover-x.left-bottom .arrow:after {
    border-left-color: #343a40;
}

/* dark mode - FullCalendar 3 (kolory w jego CSS sa na sztywno) */
.dark-mode .fc-unthemed .fc-content,
.dark-mode .fc-unthemed .fc-divider,
.dark-mode .fc-unthemed .fc-list-heading td,
.dark-mode .fc-unthemed .fc-list-view,
.dark-mode .fc-unthemed .fc-popover,
.dark-mode .fc-unthemed .fc-row,
.dark-mode .fc-unthemed tbody,
.dark-mode .fc-unthemed td,
.dark-mode .fc-unthemed th,
.dark-mode .fc-unthemed thead {
    border-color: #4b545c;
}

.dark-mode .fc-unthemed .fc-widget-header,
.dark-mode .fc-unthemed .fc-divider,
.dark-mode .fc-unthemed .fc-list-heading td,
.dark-mode .fc-unthemed .fc-popover .fc-header {
    background: #3f474e;
    color: #fff;
}

.dark-mode .fc-unthemed .fc-popover {
    background-color: #343a40;
}

.dark-mode .fc-unthemed td.fc-today {
    background: rgba(255, 193, 7, 0.12);
}

.dark-mode .fc-nonbusiness,
.dark-mode .fc-unthemed .fc-disabled-day {
    background: #2c3136;
}

.dark-mode .fc-unthemed .fc-list-item:hover td {
    background-color: #454d55;
}

.dark-mode .fc-unthemed .fc-list-empty {
    background-color: #3f474e;
}

.dark-mode .fc-unthemed .fc-popover .fc-header .fc-close {
    color: #fff;
}

.dark-mode .fc-state-default {
    background-color: #454d55;
    background-image: none;
    border-color: #6c757d;
    color: #fff;
    text-shadow: none;
    box-shadow: none;
}

.dark-mode .fc-state-hover,
.dark-mode .fc-state-active,
.dark-mode .fc-state-down,
.dark-mode .fc-state-disabled {
    background-color: #5a6169;
    color: #fff;
}