main > .container {
    padding: 70px 15px 20px;
}

main {
    margin: 60px 0;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

.disabled-block, .disabled-block a, .disabled-block h4, .disabled-block button {
    color: #999;
    pointer-events: none;
}

.not_active {
    color: #999;
}

.none-decor {
    text-decoration: none;
    border: none;
    background: none;
    font-weight: inherit;
    font-size: inherit;
}
.taskDepartments span.btn, .taskUsers span.btn {
    font-size: 11px;
    padding: 0 7px;
    border-radius: 3px;
}
.none-decor-l a {
    text-decoration: none;
    color: inherit;
}
.department-list {
    width: 50%;
    font-size: 13px;
    letter-spacing: -0.3px;
    line-height: normal;
}
.nameTask {
    width: 50%;
}
.timing {
    font-size: 12px;
    line-height: normal;
    display: flex;
    justify-content: flex-start;
    color: grey;
	gap: 2px;
}
.timing div {
    font-size: 11px;
    padding: 0 7px;
    border-radius: 3px;
	text-align: left;
}

.task-info {
    font-size: 12px;
    line-height: normal;
    background-color: #f8f9fa;
    padding: 7px 24px;
    width: 100%;
    opacity: 1;
}
.task-status {
    gap: 5px 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: start;
	text-align: left;
}
.task-departments {
    gap: 5px 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: start;
}
.task-departments div {
    text-align: left;
}
small {
    font-size: 13px;
}

.custom-file-label {
    color: #6c757d;
}

.edit-btn {
    padding: 18px 20px;
    background-image: url(../icons/pencil.svg);
    background-repeat: no-repeat;
    background-position: center center;
}

.edit-btn:hover {
    background-image: url(../icons/pencil-fill.svg);
}

.list-group-item .edit-btn.sm {
    padding: 12px 20px;
}

.list-group-item {
	padding: 0.75rem 0;
}

.btn-sm {
    padding: 0.25rem 0.6rem;
}

h4 > a {
    color: #343a40;
}

h4 > a:hover {
    color: black;
}

.sort-item::after {
    display: inline-block;
    margin-left: 0.255em;
    content: url(../icons/arrow-down.svg);
    transform: translate(0, 10%);
}

tbody th img {
    width: 18px;
}

.tr-active > tbody > tr:hover {
    background-color: #f8f9fa;
}

.rotate::after {
    transform: rotate(180deg);
}

.form-bg {
    background-color: #f8f9fa;
    padding: 24px;
}

.form-bg .list-group-item {
    background-color: #f8f9fa;
}

.modal-img {
    width: 40px;
    height:auto;
}

.modal-body .text-truncate {
    max-width: 100px;
}

.pointer {
    cursor: pointer;
}

.photo img {
    min-width:100px;
    max-width:200px;
}

td.email {
    max-width: 200px;
}

td.description {
    max-width: 400px;
}

.list-group-flush .list-group-item {
    padding-left: 0;
}

.custom-file-input ~ .custom-file-label::after {
    content: 'Выбрать' !important;
}

.nav-link.text-truncate {
    max-width: 220px;
}

.form-bg .btn-primary {
    margin-top: 1rem;
}

.list-group-item.list-group-item-action.custom-control.custom-checkbox {
    padding-left: 30px;
}
.page-item.disabled span {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    border-color: #dee2e6;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.new-notice:before {
    content: "*";
}

.task_completed {
    opacity: 0.5;
}

a.task_completed:before {
    content: '';
    background-image: url(../icons/check2-square.svg);
    position: absolute;
    width: 15px;
    height: 15px;
    top: -3px;
    background-repeat: no-repeat;
    background-size: contain;
    right: -17px
}

.new-notice:before {
    position: absolute;
    right: 9px;
    background-color: white;
    padding: 0.25em 7px;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    border-radius: 0.25rem;
    content: '!';
    color: #000;
    font-family: inherit;
    margin: auto 0;
}

.navbar-nav .nav-link.new-notice {
    color: #fff;
    padding-right: 30px;
    border: solid 1px #ffffff9c;
    border-radius: 0.25rem;
}

.navbar-nav .nav-link.new-notice:hover {
    color: rgba(255, 255, 255, 0.5);
}
.list-group-item .new-notice {
    padding-left: 35px;
}

.list-group-item .new-notice:before {
    left: 7px;
    right: revert;
    border: solid;
}
.table th, .table td {
    vertical-align: middle;
}

.dop-menu .navbar-nav .dropdown-menu {
    position: absolute;
    right: 0;
    left: revert;
    margin-top: 12px;
}
.main.container-md {
    margin-top: 70px;
}
.select-info {
    display: inline-table;
    font-size: 10px;
    color: #fff;
    background: #007bff;
    padding: 0 3px;
    border-radius: 3px;
}
.taskDepartments span, .taskUsers span {
    color: #000;
}
form.stat-success {
    margin-top: 30px;
    text-align: right;
}
.listTask a {
    font-size: 19px;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }

	.navbar-expand-md .dop-menu .navbar-nav .nav-link {
		padding-right: 0.5rem;
		padding-left: 0.5rem;
	}		
	.dop-menu {
		position: absolute;
		top: 0;
		right: 0;
	}	
	.navbar-expand-md .dop-menu .navbar-nav .nav-link.new-notice {
		padding-right: 30px;
	}
	span.em-profile {
		display: none;
	}
	.dop-menu .navbar-nav .dropdown-menu {
		margin-top: 10px;
	}
	#w0-collapse .nav-item:first-child {
		border-top: 0;
	}
	#w0-collapse .nav-item {
		padding: 0 0 0 20px;
		border-top: 1px solid rgb(217 217 217 / 13%);
	}	
	#w0-collapse {
		padding-top: 20px;
		font-size: 20px;
	}
	.timing {
		margin-top: 5px;
	}
}
@media(max-width:580px) {
	.task-status {
		grid-template-columns: repeat(2, 1fr);
	}
    .task-status,.task-departments {
        grid-template-columns: repeat(1, 1fr);
    }		
}
@media (max-width: 440px) {
}
@media (max-width: 410px) {	
	.timing {
		flex-direction: column;
		align-items: flex-start;
	}	
}