#admin-section .card {
	border-radius: 0px;
	border: none;
	margin-bottom: 1rem;
	box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}

#admin-section .container {
	margin-top: 1rem;
	/* margin-bottom: 1rem; */
}

/* ---------------------------------------------------------------------------
   ПОДРЕДБА ПО ВИСОЧИНА (z-index)

   1020  залепено заглавие на таблица  (Bootstrap .sticky-top)
   1021  падащо меню вътре в таблица   - точно над залепеното заглавие
   1045  offcanvas                     (Bootstrap; при нас .show е вдигнат)
   1050  тъмният фон на модала         (Bootstrap .modal-backdrop)
   1055  модалът                       (Bootstrap .modal)
   1056  ОТВОРЕНО меню на select2      - над модала, за да се вижда в попъп
   1080  tooltip / popover             (Bootstrap)
   9999  датепикър и преоувърът        - нарочно над всичко

   ПРАВИЛОТО: вдига се само това, което се ОТВАРЯ (меню, календар), никога
   самият елемент във формуляра. Вдигнат ли се и те, си светят над тъмния фон
   на попъпите и канвасите - точно това се случваше със select2.
   --------------------------------------------------------------------------- */

/* Меню в таблица - над залепеното заглавие, но под тъмния фон на модала */
.z-index-9 {
	z-index: 1021 !important;
}

.custom-input-style {
	width: 40px;
	border: none;
	text-align: right;
}

.custom-select-style {
	width: 80px;
	border: none;
	background: #fff;
}

fieldset {
	position: relative;
	border-radius: 10px;
}

legend {
	position: absolute;
	font-size: 12px;
	top: -10px;
	background: #fff;
	padding: 0 10px;
	font-weight: bold;
}

.preloader {
	width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #f0f0f5;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999 !important;
    overflow: hidden;
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: #0056b3; /* По-тъмен цвят при hover */
}


#ui-datepicker-div {
	z-index: 9999 !important;
}

/* САМОТО поле на select2 остава в потока - иначе стърчи над тъмния фон.
   Вдига се само отвореното меню, и то над модала, за да се вижда в попъп.
   !important е задължително: style.css се зарежда ПРЕДИ select2.min.css, а
   там същият селектор дава 1051 и иначе печели. */
.select2-dropdown {
	z-index: 1056 !important;
}

.offcanvas.show {
	z-index: 9999 !important;
}

.bs-table-color {
	background-color: #f2f2f2;
}

.text-table-color {
	color: #f2f2f2;
}

.select2-container--default .select2-selection--multiple {
  border: 1px solid #ced4da !important;
  padding: 7px !important;
}

.select2-container .select2-selection--single {
  height: 37px !important;
  border: 1px solid #ced4da !important;
  border-radius: 3px !important;
  
}

.ui-widget.ui-widget-content {
  border: 2px solid #d3d3d3;
  z-index: 9999;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 32px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 6px !important;
}

table.dataTable tbody th, table.dataTable tbody td {
  padding: 2px 3px !important;
}

.dt-length {
	float: left;
}

.dt-length label{
	display: none;
}

div.dt-container select.dt-input {
  padding: 7px !important;
}

.dt-buttons{
	float: left;
}

label {
	font-size: small;
	color: #6c757d;
}

/* Кръгче с първата буква на потребителя в хедъра - на мястото на цялото име.
   Цялото име и длъжността излизат в подсказката. */
.user-initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #0d6efd;
	color: #fff !important;
	font-weight: 600;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	user-select: none;
	text-decoration: none;
}

/* Надписът следва състоянието на collapse-а: всичко / по-малко */
.todo-more[aria-expanded="false"] .todo-more-hide,
.todo-more[aria-expanded="true"] .todo-more-show {
	display: none;
}

/* Балончето с чакащите задачи седи на ръба на кръгчето */
.user-initial {
	position: relative;
}

.user-initial-badge {
	position: absolute;
	top: -4px;
	right: -6px;
	font-size: .65rem;
	padding: .2em .45em;
	border: 1px solid #fff;
}

.user-initial:hover {
	background: #0b5ed7;
}
