html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    scrollbar-width: none; /* Firefox */
    overflow: hidden;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgb(188, 211, 245) 100%) !important;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.content {
    flex: 1 1 auto;
    /*height: 100%;          !* ← добавляем *!*/
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
}
.form-columns {
    display: flex;
}
.form-group {
    margin-bottom: 10px;
    display: flex;
}
.column1,
.column2 {
    flex: 1;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin: 10px;
}
label {
    width: 150px;
    text-align: right;
    margin-right: 15px;
}
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.alert-row {
    display: flex;
    flex-wrap: wrap;
}
.alert-row .form-group {
    flex: 1;
}
button,
input[type="submit"] {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}
.select2-selection__choice__remove{
    margin: 0;
}
button:hover,
input[type="submit"]:hover {
    background-color: #45a049;
}
select {
    width: 250px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
option.green {
    background-color: green;
    color: green;
}
option.orange {
    background-color: orange;
    color: orange;
}
option.red {
    background-color: red;
    color: red;
}
option:hover {
    opacity: 1;
}
.color-option {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}
.color-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 5px;
    border: 1px solid #ccc;
}
.color-box.none {
    background-color: transparent;
}
.color-box.green {
    background-color: green;
}
.color-box.orange {
    background-color: orange;
}
.color-box.red {
    background-color: red;
}
.dropdown {
    position: relative;
    display: inline-block;
}
.color-box {
    width: 20px;
    height: 20px;
    margin: 5px;
    border: 1px solid #ccc;
}
.green {
    background-color: green;
}
.orange {
    background-color: orange;
}
.red {
    background-color: red;
}
.none {
    background-color: transparent;
}
.color-options {
    position: absolute;
    background-color: #f9f9f9;
    min-width: 50px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    /*z-index: 1;*/
}
#navi{
    margin: 10px;
    background: radial-gradient(circle, rgb(250, 251, 252) 0%, rgb(188, 211, 245) 100%);
}
.company-logo {
    width: 100px;
    height: auto;

}
.menu-buttons {
    margin-top: 10px; /* Отступ сверху, чтобы спустить меню ниже */
}
.img-responsive {
    height: 100vh !important;
    width: auto !important;
    object-fit: cover !important;
}
.function-login {
    background-color: #2B3E50;
}
.img-responsive1 {
    float: left !important;
}
#headerTools {
    display: flex;
    justify-content: flex-end;
    gap: 10px; /* Добавьте зазор между элементами, если хотите */
    padding-top: 10px; /* Отступ сверху */
    padding-bottom: 10px; /* Отступ снизу */
}
#headerTools .fa-solid {
    font-size: 1em; /* увеличьте размер шрифта по мере необходимости */
    margin-right: 5px; /* приблизить иконку к полю ввода */
}
#headerTools #datepicker {
    margin: 0; /* убрать любые маргины у поля ввода */
}
.fa-calendar-days {
    transform: scale(1.8); /* Измените это значение для управления размером иконки */
}
.fc .fc-timegrid-slot {
    border-bottom: 0;
    height: 2.0em!important;
    border-color: rgba(0, 0, 0, 0.4);
}
#calendar {
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgb(188, 211, 245) 100%);
    flex: 0 0 auto;
    /*height: 70%;*/
}

.fc-event-main {
    overflow: hidden;
    /*text-overflow: ellipsis;*/
    /*white-space: nowrap;*/
}
.fc-timegrid-col-events {
    margin-right: 20px  !important; /* Увеличьте значение, чтобы увеличить место справа от события */
}
.fixed-size-btn {
    width: 130px;  /* или любой другой размер, который вам подходит */
    height: 40px; /* или любой другой размер, который вам подходит */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.container-full-width {
    width: 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}
#searchTitle {
    font-size: 2em;
    color: #55AAFF;
    text-align: center;
    display: block;
    font-weight: bold;
}
#footer {
    position: relative;
    /* Настройте высоту, если необходимо */
}
#jobsTable {
    width: 100%;
    border-collapse: collapse;
}
#jobsTable th, #jobsTable td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
#jobsTable th {
    background-color: #f2f2f2;
}
#jobsTable tr:hover {
    background-color: #f5f5f5;
}
#jobsTable a {
    color: #007bff;
    text-decoration: none;
}
#jobsTable a:hover {
    text-decoration: underline;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-modal-content {
    max-width: 90%;
    max-height: 80%;
}
.close-image-modal {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
.img-thumbnail {
    width: 200px; /* Ширина миниатюры */
    height: auto; /* Высота автоматически подгоняется */
    cursor: pointer; /* Курсор в виде указателя для интерактивности */
}
.fc-timeline-event {
    font-size: 0.7em;
    padding: 2px 2px;
    max-height: 30px !important;
    overflow: hidden !important;
}
.active-nav {
    border: 4px solid #0000FF  !important; /* Пример: красная рамка */
}
/* Обёртка для карточек: используем flexbox для выравнивания карточек */
.invoice-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* отступ между карточками */
    padding: 10px;
}
/* Стили для карточки */
.invoice-card {
    width: 280px; /* фиксированная ширина карточки */
    padding: 10px; /* внутренний отступ */
    margin: 10px 0; /* отступ сверху и снизу */
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.7) !important;
    display: flex;
    flex-direction: column;
    gap: 5px; /* расстояние между элементами внутри карточки */
}
/* Заголовок карточки */
.invoice-card h3 {
    font-size: 16px;
    margin: 0 0 5px;
}
/* Параграфы внутри карточки */
.invoice-card p {
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}
/* Кнопка в карточке */
.invoice-card button {
    margin-top: 10px;
    padding: 6px 12px;
    font-size: 14px;
    align-self: flex-start;
    cursor: pointer;
}
td span.editSpan.publishable_key,
td span.editSpan.secret_key {
    display: inline-block;
    max-width: 150px;  /* Задайте нужную ширину, можно изменить на 200px или другой вариант */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
h3 {
    font-size: 1.2rem;
    padding-left: 40px;
}
/* === размеры и цвета можно менять по вкусу === */
:root{
    --sidebar-width:230px;   /* добавьте пару пикселей запаса */
}

/* cайдбар: контент сверху донизу, скролим только по Y */
.sidebar{
    position:fixed;
    left:0; top:0;
    width:var(--sidebar-width);
    height:100vh;
    overflow-y:auto;
    overflow-x:hidden;       /* ← важно */
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgb(188, 211, 245) 100%);
    border-right:3px solid rgb(106, 161, 241);
    padding:12px;
    box-sizing:border-box;
    z-index:1030;
}

/* основной контент теперь реально занимает остаток окна */
.main-content{
    margin-left:var(--sidebar-width);
    overflow-x:hidden;
    height: 100%;
    display: flex;
    flex-direction: column;

}

body{ overflow-x:hidden; } /* на всякий случай */

/* верхний горизонтальный ряд */
.sidebar-top{
    display:flex;
    align-items:center;
    gap:6px;                 /* небольшой зазор вручную */
    flex-wrap:nowrap;        /* НИКОГДА не переносим элементы */
    justify-content:flex-start;  /* убираем auto-растяжение */
}

/* логотип не тянем, а кружки чуть меньше */
.sidebar-top img.company-logo{
    height:45px;             /* подберите по вкусу */
    width:auto;
    object-fit:contain;
    flex:0 0 auto;
}
.notif-circle,
.init-circle{
    width:45px;
    height:45px;
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    padding:0;
    font-weight:bold;
}
.notif-circle span{        /* счётчик по центру */
    position:absolute;
    top:50%; left:50%;
    transform:translate(-50%,-50%);
}


/* кнопки навигации */
.nav-btn{
    display:block;
    width:100%;
    margin-bottom:8px;
    padding:6px 12px;

}

/* ---------- мобильный режим ---------- */
@media (max-width:992px){
    .sidebar{transform:translateX(-100%); transition:.3s;}
    .sidebar.show{transform:none;}
    .main-content{margin-left:0;}
}
/* 3. Строка «карта + селектор» растягивается на остаток */
.map-row  { flex:1 1 auto; min-height:0; }   /* уже d-flex в разметке */

/* 4. Сама карта заполняет всю ширину строки */

#map, #map > div { height:100% !important; }
.nav-arrow{
    /* фон-капсула хорошо читается на голубом градиенте */
    --btn-bg:          #ffffffee;   /* почти-белый с лёгкой прозрачностью */
    --btn-color:       #0d6efd;     /* глубокий bootstrap-blue для иконки */
    --btn-border:      #0d6efd40;   /* полупрозрачная «стеклянная» рамка */
    --btn-hover-bg:    #0d6efd;     /* инверсия при hover */
    --btn-hover-color: #fff;

    background: var(--btn-bg);
    color:       var(--btn-color);
    border: 1px solid var(--btn-border);

    width: 44px;
    height:44px;
    padding:0;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;

    box-shadow:0 2px 6px rgba(0,0,0,.25);
    transition: background .2s, color .2s, transform .1s;
}

.nav-arrow i{ font-size:1.35rem; }

.nav-arrow:hover{
    background: var(--btn-hover-bg);
    color:      var(--btn-hover-color);
}

.nav-arrow:active{
    transform:translateY(1px);
    box-shadow:0 1px 4px rgba(0,0,0,.25);
}
.rc-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,.15);
    margin-left: 4px;
    background: #ffc107;
    color: #000;
}
