:root {
	--code-color: darkred;
	--code-bg-color: #aaaaaa;
	--code-font-size: 14px;
	--code-line-height: 1.4;
	--scroll-bar-color: #c5c5c5;
	--scroll-bar-bg-color: #f6f6f6;
}

::-webkit-scrollbar-corner { background: rgba(0,0,0,0.5); }

* {
	scrollbar-width: thin;
	scrollbar-color: var(--scroll-bar-color) var(--scroll-bar-bg-color);
}

/* Works on Chrome, Edge, and Safari */
*::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

*::-webkit-scrollbar-track {
	background: var(--scroll-bar-bg-color);
}

*::-webkit-scrollbar-thumb {
	background-color: var(--scroll-bar-color);
	border-radius: 20px;
	border: 3px solid var(--scroll-bar-bg-color);
}

body {
	font-size: .875rem;
	font-family: Arial;
}

.birthday-toast {
	min-width: 350px;
	max-width: 400px;
	background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
	color: white;
	box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.birthday-toast .toast-header {
	background: transparent;
	border-bottom: 1px solid rgba(255,255,255,0.2);
}
.birthday-toast .close {
	color: white;
	opacity: 0.8;
}
.birthday-toast .close:hover {
	opacity: 1;
}
.birthday-icon {
	font-size: 1.5rem;
	margin-right: 10px;
	animation: pulse 2s infinite;
}
@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

.feather {
	width: 16px;
	height: 16px;
}

p {
	margin-bottom: 5px;
}

td > a:hover {
    color: var(--bs-green);
}

/*
 * Sidebar
 */

.sidebar {
	position: fixed;
	top: 0;
	/* rtl:raw:
	right: 0;
	*/
	bottom: 0;
	/* rtl:remove */
	left: 0;
	z-index: 100; /* Behind the navbar */
	padding: 48px 0 0; /* Height of navbar */
	box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

hr {
	max-width: 85%;
	margin: 32px auto;
}

.table-fixed {
	position: fixed;
	top: 50px;
	z-index: 101;
	background-color: #ffffff;
	border-bottom: solid 1px #dee2e6;
}

.trAnimate {
	display: none;
}

.table-responsive p {
	font-size: 13px;
}

.table-responsive td,
.table-responsive th {
	font-size: 13px;
}

.table-report {
	line-height: 12px;
}

.addTask {
	height: 48px;
    padding-top: 12px;
}

.ntc {
	transform: scale(1);
}

.ntc.new {  
  box-shadow: 0 0 0 0 rgba(255, 82, 82, 1);
  animation: pulse-red 2s infinite;
}

.modal-content {
	height: 100%;
    overflow-y: scroll;
}

.dropdown-menu.show {
	max-height: 30em;
    overflow: auto;
}

.dev {
	margin-left: -155px;
	margin-right: 25px;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
  }
  
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(255, 82, 82, 0);
  }
  
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
  }
}

@media (min-width: 1366px) {
	.modal-custom {
		height: 90%;
	}
}

@media only screen   
and (min-device-width : 768px)   
and (max-device-width : 1024px)  
{ 
	.modal-content,
	.modal-custom {
		height: 100%;
    	overflow-y: scroll;
	}
	.dev {
		margin-right: 100px;
	}
} 

@media only screen   
and (min-width: 1030px)   
and (max-width: 1366px)  
{ 
	.modal-content,
	.modal-custom {
		height: 100%;
    	overflow-y: scroll;
	}
}

@media (max-width: 767.98px) {
	.sidebar {
		top: 5rem;
	}
	.taskBox {
		-webkit-box-shadow: none !important;
		-moz-box-shadow: none !important;
		box-shadow: none !important;
		border-radius: none !important;
		padding: 5px !important;
	}
	#report thead {
		display: none;
	}
	#report td.deadlines {
		display: none;
	}
	#report td {
		display: block;
	}
	thead {
		display: none;
	}
	tr.mobile-hide {
		display: none;
	}
	.dev {
		margin-right: 100px;
	}
}

/*@media(max-width: 800px) {
    table thead {
        left: -9999px;
        position: absolute;
        visibility: hidden;
    }
    table tr {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 40px;
    }
    table td {
        margin: 0 -1px -1px 0;
        padding-top: 35px;
        position: relative;
        width: 50%;
    }
    table td span {
        display: block;
    }
}*/

.sidebar-sticky {
	height: calc(100vh - 48px);
	overflow-x: hidden;
	overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
	font-weight: 500;
	color: #333;
}

.sidebar .nav-link .feather {
	margin-right: 4px;
	color: #727272;
}

.sidebar .nav-link.active {
	color: var(--bs-green);
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
	color: inherit;
}

.sidebar-heading {
	font-size: .75rem;
}

/*
 * Navbar
 */

.navbar-brand {
	padding-top: .75rem;
	padding-bottom: .75rem;
	background-color: rgba(0, 0, 0, .25);
	box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
	top: .25rem;
	right: 1rem;
}

.navbar .form-control {
	padding: .75rem 1rem;
}

.form-control-dark {
	color: #fff;
	background-color: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
	border-color: transparent;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

.ss-main .ss-multi-selected {
	padding: 4px 3px !important;
	border-radius: 0.35rem !important;
}

.ss-main .ss-multi-selected .ss-values .ss-value {
	background-color: #198754 !important;
}

thead {
	position: sticky;
  top: 0;
}


th {
	cursor: pointer;
}

th a {
	color: #323232;
}
		
td {
	vertical-align: middle;
}
		
td a {
	text-decoration: none;
	
}
		
td h3 {
	font-size: 1em;
	margin-bottom: 0px;
}
		
td.status {
	text-align: center;
}
		
td.inwork {
	background-color: rgba(var(--bs-warning-rgb));
	color: rgba(var(--bs-light-rgb));
}
		
td.new {
	background-color: rgba(var(--bs-secondary-rgb));
	color: rgba(var(--bs-light-rgb));
}
		
td.success {
	background-color: rgba(var(--bs-success-rgb));
	color: rgba(var(--bs-light-rgb));
}
		
td.cancel {
	background-color: rgba(var(--bs-danger-rgb));
	color: rgba(var(--bs-light-rgb));
}
		
td.closed {
	background-color: #8a8a8a;
	color: rgba(var(--bs-light-rgb));
}

td.paused {
	background-color: rgba(var(--bs-info-rgb));
	color: rgba(var(--bs-light-rgb));
}

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

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

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

@media (min-width: 768px) {
	.bd-placeholder-img-lg {
		font-size: 3.5rem;
	}
	
}

.b-example-divider {
	height: 3rem;
	background-color: rgba(0, 0, 0, .1);
	border: solid rgba(0, 0, 0, .15);
	border-width: 1px 0;
	box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
	flex-shrink: 0;
	width: 1.5rem;
	height: 100vh;
}

.bi {
	vertical-align: -.125em;
	fill: currentColor;
}

.br-max {
	border-radius: 999em;
	border: none;
	font-weight: bold;
	font-size: 0.75em;
	line-height: 1.6em;
}

.nav-scroller {
	position: relative;
	z-index: 2;
	height: 2.75rem;
	overflow-y: hidden;
}

.nav-scroller .nav {
	display: flex;
	flex-wrap: nowrap;
	padding-bottom: 1rem;
	margin-top: -1px;
	overflow-x: auto;
	text-align: center;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
}
		
#report h3 {
	color: #323232;   
}
		
#report h4 {
	color: #323232;    
}
		
#report h5 {
	color: #323232;    
}

.reportProject {
	display: table;
	margin: 0 auto;
	padding: 8px;
	border-radius: 0.25rem;
}
		
#report h6 {
	color: #323232;
	text-transform: uppercase;
	margin: 5px 0;
}
		
#report p.planned {
	color: #344ceb;
	text-transform: uppercase;
}
		
#report p.made {
	color: #eb3434;
	text-transform: uppercase;
}
		
#report p.scheduled {
	color: #34eb40;
	text-transform: uppercase;
}

#report a {
	text-decoration: none;
}

#report .row {
	padding-top: 10px;
}

#report .row:nth-child(even) {
	background-color: rgba(0, 0, 0, 0.075);
}

#report .row:nth-child(even) .card {
	background: transparent;
}

.btn-set {
	margin-right: 8px;
}

.taskBox {
	-webkit-box-shadow: 0px 0px 8px 0px rgba(34, 60, 80, 0.2);
	-moz-box-shadow: 0px 0px 8px 0px rgba(34, 60, 80, 0.2);
	box-shadow: 0px 0px 8px 0px rgba(34, 60, 80, 0.2);
	border-radius: 0.375rem;
	display: none;
}

.card {
	border: none;
	border-radius: 0.375rem;
	padding: 0;
}

.dots{
	height: 4px;
	width: 4px;
	margin-bottom: 2px;
	background-color: #bbb;
	border-radius: 50%;
	display: inline-block;
}

.user-img{
	margin-top: 4px;
	margin-right: 4px;
}

.check-icon{
	font-size: 17px;
	color: #c3bfbf;
	top: 1px;
	position: relative;
	margin-left: 3px;
}

.form-check-input{
	margin-top: 6px;
	/* margin-left: -24px !important; */
	cursor: pointer;
}

.form-check-input:focus{
	box-shadow: none;
}

.icons i{
	margin-left: 8px;
}

.reply{
	margin-left: 12px;
}

.reply small{
	color: #b7b4b4;
}

.reply small:hover{
	color: green;
	cursor: pointer;
}

.loginSection {
	background-image: url(../img/authBackground3.webp);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}

.cursor-grab {
  cursor: -webkit-grab;
  cursor: grab;
}

.tasks {
  min-height: 450px;
}

.file-drop-area {
  position: relative;
  display: flex;
  align-items: center;
  width: 450px;
  max-width: 100%;
  padding: 25px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  transition: 0.2s;
 
}

.choose-file-button {
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 8px 15px;
  margin-right: 10px;
  font-size: 12px;
  text-transform: uppercase;
}

.file-message {
  font-size: small;
  font-weight: 300;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-input {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
  opacity: 0;
  
}

 .status-badge {
	 width: 10px;
	 height: 10px;
	 border-radius: 50%;
	 display: inline-block;
	 margin-right: 8px;
 }

.status-online {
	background-color: #28a745;
	animation: blink 1s infinite;
}

.status-offline {
	background-color: #dc3545;
}

@keyframes blink {
	50% { opacity: 0.3; }
}

.unread-badge {
	font-size: 12px;
	min-width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	border-radius: 9px;
	background-color: #ffc107;
	color: #fff;
	font-weight: 500;
	margin-left: 8px;
}



.mt-100{
    margin-top:100px;
}


#pendingBadge {
	animation: pendingBadge 1s ease 3s infinite normal forwards;
}

@keyframes pendingBadge {
	0%,
	100% {
		transform: rotate(0deg);
		transform-origin: 50% 0;
	}

	10% {
		transform: rotate(2deg);
	}

	20%,
	40%,
	60% {
		transform: rotate(-4deg);
	}

	30%,
	50%,
	70% {
		transform: rotate(4deg);
	}

	80% {
		transform: rotate(-2deg);
	}

	90% {
		transform: rotate(2deg);
	}
}


.form-control:active, .form-control:focus {
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none; }

#calendar {
  margin: 0 auto; }
  #calendar .fc-view-container {
    /*background-color: #fff;
    -webkit-box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.2);*/ }
  #calendar .fc-toolbar.fc-header-toolbar .fc-center {
    display: block; }

#calendar-container {
  /*position: fixed;
  top: 0;
  left: 20px;
  right: 20px;
  bottom: 20px;*/ }

.fc-header-toolbar {
  /*
    the calendar will be butting up against the edges,
    but let's scoot in the header's buttons
    */
  padding-top: 1em;
  padding-left: 1em;
  padding-right: 1em; }

@media (max-width: 767.98px) {
  .fc-toolbar {
    display: block !important;
    text-align: center; }
    .fc-toolbar .fc-center {
      display: block;
      margin-top: 20px;
      margin-bottom: 20px; } 
 }

.todo-nav {
    margin-top: 10px
}

.todo-list {
    margin: 10px 0
}

.todo-list .todo-item {
    padding: 15px;
    margin: 5px 0;
    border-radius: 0;
    background: #f7f7f7
}

.todo-list.only-active .todo-item.complete {
    display: none
}

.todo-list.only-active .todo-item:not(.complete) {
    display: block
}

.todo-list.only-complete .todo-item:not(.complete) {
    display: none
}

.todo-list.only-complete .todo-item.complete {
    display: block
}

.todo-list .todo-item.complete span {
    text-decoration: line-through
}

.remove-todo-item {
    color: #ccc;
    visibility: hidden
}

.remove-todo-item:hover {
    color: #5f5f5f
}

.todo-item:hover .remove-todo-item {
    visibility: visible
}

div.checker {
    width: 18px;
    height: 18px
}

div.checker input,
div.checker span {
    width: 18px;
    height: 18px
}

div.checker span {
    display: -moz-inline-box;
    display: inline-block;
    zoom: 1;
    text-align: center;
    background-position: 0 -260px;
}

div.checker, div.checker input, div.checker span {
    width: 19px;
    height: 19px;
}

div.checker, div.radio, div.uploader {
    position: relative;
}

div.button, div.button *, div.checker, div.checker *, div.radio, div.radio *, div.selector, div.selector *, div.uploader, div.uploader * {
    margin: 0;
    padding: 0;
}

div.button, div.checker, div.radio, div.selector, div.uploader {
    display: -moz-inline-box;
    display: inline-block;
    zoom: 1;
    vertical-align: middle;
}

/* Стили для сайдбара задач */
.task-item {
	border-left: 3px solid transparent;
	transition: all 0.2s ease;
	cursor: pointer;
}

.task-item:hover {
	background-color: #f8f9fa;
}

.task-item.active {
	background-color: #e9ecef;
	border-left-color: #0d6efd;
}

.task-item.unread::before {
	content: "";
	position: absolute;
	width: 8px;
	height: 8px;
	background-color: #dc3545;
	border-radius: 50%;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
	}
}

.notification-item {
	border-left: 3px solid #198754;
	margin-bottom: 0.5rem;
	transition: all 0.2s ease;
}

.notification-item.unread {
	background-color: #fff3cd;
	border-left-color: #ffc107;
}

.notification-item:hover {
	transform: translateX(5px);
}

.notification-badge {
	animation: pulse 2s infinite;
}

/* Стили для модального окна на весь экран */
.modal-fullscreen .modal-dialog {
	width: 100%;
	height: 100%;
	margin: 0;
	max-width: none;
}

.modal-fullscreen .modal-content {
	height: 100%;
	border: 0;
	border-radius: 0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
	.modal-fullscreen .modal-dialog {
		margin: 0;
	}

	.task-search-container {
		position: sticky;
		top: 0;
		background: white;
		z-index: 100;
	}
}


@media print {

	@page {
		margin-top: 0.2cm;
		margin-bottom: 0.2cm;
		margin-left: 0.2cm;
		margin-right: 0.2cm;
	}
	
	body {
		font-size: .875rem;
	}
	
	p {
		margin-bottom: 5px;
		line-height: 1rem;
	}
	
	header,
	nav#sidebarMenu,
	.btn-group,
	footer {
		display: none !important;
	}

	hr {
		margin-bottom: 10px;
		margin-top: 0;
	}
	
	main,
	.container,
	#report {
		width: 100% !important;
		max-width: 100% !important;
	}

	.deadlines {
		font-size: .65rem;
	}

	.alert,
	.row {
		background: none;
		page-break-inside: avoid;
		color: #000;
	}

	.d-grid,
	tr.projectTitle {
		page-break-after: avoid;
	}

	.no-print {
		display: none !important;
	}
	.table-fixed {
		position: relative;
		-webkit-box-shadow: none;
		-moz-box-shadow: none;
		box-shadow: none;
	}

	.table-responsive thead,
	#report thead {
		display: table-header-group;
	}
	
	.table-responsive tr,
	tr.print {
		display: table-row !important;
	}
	.table-responsive td,
	#report td.deadlines,
	#report td {
		display: table-cell;
	}
	.table-responsive td.collapse {
		display: inherit;
	}
	.table-responsive td.status {
		text-align: center;
	}
	.mobile {
		display: none;
	}
	.table-responsive p,
	.table-responsive li,
	.table-responsive .deadlines {
		font-size: 12px;
		line-height: 12px;
		margin-bottom: 2px;
	}
}