body {
    padding-top: 50px;
    padding-bottom: 20px;
    /*padding-bottom: 0 !important;*/
    /*background: url('') repeat;*/
    background: url('../images/white_bg.png') repeat;
}



.navbar-bg {
    background: url('../images/black_bg.png') repeat;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

body {
    padding-top: 50px;
    padding-bottom: 20px;
    /*padding-bottom: 0 !important;*/
    /*background: url('') repeat;*/
    background: url('../images/white_bg.png') repeat;
}

.navbar-bg {
    background: url('../images/black_bg.png') repeat;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

/* QR code generator */
#qrCode {
    margin: 15px;
}

/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {
    /* Hide captions */
    .carousel-caption {
        display: none;
    }
}

ul.gallery {
    margin-left: 3vw;
    margin-right: 3vw;
}

.zoom {
    -webkit-transition: all 0.35s ease-in-out;
    -moz-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
    cursor: zoom-in;
}

    .zoom:hover,
    .zoom:active,
    .zoom:focus {
        /**adjust scale to desired size, 
add browser prefixes**/
        -ms-transform: scale(3);
        -moz-transform: scale(3);
        -webkit-transform: scale(3);
        -o-transform: scale(3);
        transform: scale(3);
        position: relative;
        z-index: 100;
    }

/**To keep upscaled images visible on mobile, 
increase left & right margins a bit**/
@media only screen and (max-width: 768px) {
    ul.gallery {
        margin-left: 15vw;
        margin-right: 15vw;
    }
}
/**TIP: Easy escape for touch screens,
give gallery's parent container a cursor: pointer.**/
.DivName {
    cursor: pointer
}

.cms-table {
    width: 100%
}

    .cms-table th, td {
        padding-left: 4px;
        padding-right: 4px;
        /*overflow-wrap: normal;*/ /* не поддерживает IE, Firefox; является копией word-wrap */
        word-wrap: normal;
        word-break: normal; /* не поддерживает Opera12.14, значение keep-all не поддерживается IE, Chrome */
        line-break: auto; /* нет поддержки для русского языка */
        hyphens: manual; /* значение auto не поддерживается Chrome */
    }

    .table-head {
        background-color: #428bca!important;
        color: black!important;
        text-align: center!important;
    }

    .cms-table tbody tr:nth-child(odd) {
        background: #fff;
    }

    .cms-table tbody tr:nth-child(even) {
        background: #f2f6f8;
    }

.link {
    cursor: pointer;
}

.red {
    background-color: red !important
}

.circle-red {
    width: 50px;
    height: 50px;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-radius: 25px;
    background: red;
}

.circle-green {
    width: 50px !important;
    height: 50px !important;
    -webkit-border-radius: 25px !important;
    -moz-border-radius: 25px !important;
    border-radius: 25px !important;
    background: green !important;
}

.circle-yellow {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: yellow;
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.image-container {
    position: relative;
    text-align: center;
    color: white;
}

.bkg-color-change-actual {
    background-color: rgba(225, 225, 0, 0.5)!important

}

.bkg-color-change-changes {
    background-color: rgba(196, 196, 0, 0.7) !important;
    border-bottom: 4px solid rgba(128, 128, 0, 1) !important;
}

.bkg-color-change-diffs {
    background-color: rgba(225, 0, 0, 0.5) !important
}

.bkg-color-change-new {
    background-color: rgba(0, 160, 0, 0.5) !important
}

.bkg-color-change-apply {
    background-color: rgba(0, 160, 160, 0.5) !important
}

.bkg-color-time1 {
    background-color: rgba(255, 165, 0, 0.5) !important
}

.bkg-color-warning{
    background-color: rgba(255, 235, 0, 0.5) !important
}

.bkg-today {
    background-color: rgba(0, 160, 0, 0.7) !important
}



.black-link {
    color: black;
}

.green-link {
    color: green;
}

.thumb-post{
    object-fit: none;
    object-position: center;
    width: 100%;
    height: 100%;
    max-height: 440px;
    max-Width: 1000px;
    margin-bottom: 1rem;
}

.td-control {
    width: 100%;
    height: 100%;
    border: 0;
    overflow: hidden;
    resize: none;
    outline: none;
    background-color: transparent;
}

.td-control:focus {
    background-color: white;
}


.outline {
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: black;
}

td:has(.td-control) {
    padding: 0;
}

.blur {
    -webkit-filter: blur(2px); /* Chrome, Safari, Opera */
    filter: blur(2px);
}

.frame {
    height: 80vh;
    width: 100%;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
    display:none
           
}

.red-font {
    color: red;
}

.red-font:hover { color: red; }

.blue-font {
    color: blue;
}

.green-font {
    color: green;
}

.darkRed-font {
    color: darkred;
}


.darkGreen-font {
    color: darkgreen;
}

.big-container {
    margin-left: 5px !important;
    margin-right: 5px !important;
    max-width: calc(100% - 10px);
}

.clickable-row {
    cursor: pointer;
}

.clickable-row :hover {
        background-color:rgba(0, 0, 160, 0.5);
}

.disabledTab {
    pointer-events: none;
}

.disabledLink {
    pointer-events: none;
    color: grey;
}

label:has(+ input:required):after {
    content: ' *';
    color: red;
}

label:has(+ textarea:required):after {
    content: ' *';
    color: red;
}

label[for="jobSummary"]::after {
    content: ' *';
    color: red;
}

.border {
    border: 3px solid #00af64;
}

.message {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.message.visible {
    display: block;
    opacity: 1;
}

.modal.modal-noscroll {
    position: absolute!important;
}

.modal.modal-noscroll .modal-dialog {
    margin-top: 100px; /* Можно адаптировать под нужную высоту */
}

.custom-modal {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: 100%;
    max-width: 500px;
}

.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 200px); /* регулировать по необходимости */
    overflow-y: auto;
}

/* Стили для спиннера */
.spinner {
    display: none;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
.spinner1 {
    width: 20px;
    height: 20px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.spinner-text {
    margin-top: 10px;
    color: #333;
    font-weight: 500;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading .spinner {
    display: block;
}

#map {
    height: 100%;
    width: 100%;
    position:absolute;
}

.label-text {
    display: inline-block;
    background: white;
    padding: 2px 6px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transform: translateY(10px); /* опускає текст вниз */
    font-size: 24px;
    color: black;
    text-align: center;
}

.label-marker {
    position : absolute;
    bottom : 100%; /* підняти над маркером*/ 
    left : 50%;
    transform : translateX(-50%);
    padding : 2px 6px;
    background : white;
    color : blue; /* #007bff; */
    /*font-weight : bold;*/
    font-size : 10px;
    border-radius : 4px;
    box-shadow : 0 1px 4px rgba(0,0,0,0.3);
    white-space : nowrap;
}
.label-marker-green {
    color : green;
}
.label-marker-orange {
    color: orangered;
} 

.img-marker {
    width : 32px;
    height : 32px;
    display : block;
}

.div-marker {
    position : relative;
    cursor : pointer;
}
#legend {
    background: white;
    padding: 10px;
    margin: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

    #legend img {
        vertical-align: middle;
        width: 20px;
        height: 20px;
        margin-right: 5px;
    }


.darken-cell {
    filter: brightness(0.8);
}

.lighten-cell {
    filter: brightness(1.2);
    border-left: 2px solid rgba(0, 160, 0, 0.5)!important;
    border-right: 2px solid rgba(0, 160, 0, 0.5)!important;
}#legend {
    background: white;
    padding: 10px;
    margin: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

    #legend img {
        vertical-align: middle;
        width: 20px;
        height: 20px;
        margin-right: 5px;
    }

.table-group-row {
    border: 2px solid gray;
    text-align: center;
    background-color: goldenrod !important;
    font-weight: 600;
}

.bg-disabled {
    background-color: #e9ecef !important; /* светло-серый */
    color: #6c757d !important; /* тёмно-серый текст (по желанию) */
}

.blue-cell {
    background-color: blue;
    color: white;
    opacity: 0.8
}

.red-cell {
    background-color: Red;
    color: white;
    opacity: 0.8
}

.orange-cell {
    background-color: orange;
    color: black;
    opacity: 0.8
}

.lightyellow-cell {
    background-color: #fff4cc;
    color: black;
    opacity: 0.8
}

.redText {
    color: darkred;
}

.greenText {
    color: darkgreen;
}

@media (min-width: 768px) {
    .responsive-nowrap {
        white-space: nowrap;
    }
}

@media (max-width: 767.98px) {
    .responsive-nowrap {
        word-break: keep-all;
    }
}

ul.ui-autocomplete {
    z-index: 1100;
}

.detail-box {
    border: 2px solid grey;
    background: #f9f9f9;
    z-index: 10;
}
 .right{
     text-align: right;
 }

.sro-cell-bkg {
    background-color: rgba(182, 221, 232, 0.7);
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.sro-cell-green-bkg {
    background-color: rgba(146, 208, 80, 0.7);
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.sro-cell-tech-bkg {
    background-color: rgba(214, 227, 188, 0.7);
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.tabulator .tabulator-row.tabulator-selected {
    box-shadow: inset 0 0 0 2px #007bff !important;
    outline: 2px solid #007bff !important;
    outline-offset: -2px;
}

.tooltip-inner {
    background-color: rgba(255, 255, 255) !important;
    color: #000 !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,0,0,0.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* затемнення фону для видимості */
    border-radius: 50%;
    background-size: 60%;
    background-position: center;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%; /* трохи більші кнопки */
    z-index: 5; /* щоб точно були поверх */
}

.user-photo, .license-photo {
    max-width: 160px;
    max-height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

.tabulator-cell .badge {
    font-size: 0.75rem;
    padding: 0.45em 0.6em;
    font-weight : 400;
}

.tabulator-cell div.d-flex {
    justify-content: center;
}

.red-outline {
    outline: 2px solid red; /* сама рамка */
    outline-offset: -2px;
}
