@import url("bootstrap-extended.css");
@import url("colors.css");
@import url("components.css");

.text-danger a, .text-danger a:hover {
    color: #FF4961;
}

pre {
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: inherit;
    font-size: 1rem;
    white-space: pre-wrap;
}

.btn-signature {
    display: block;
    width: 600px
}

.minimal-padding td {
    padding: 5px !important;
}

.fixed-columns {
    table-layout: fixed
}

.fixed-columns th {
    padding: 5px;
}

.project-calendar-table {
    border-color: #ddd;
}

.project-calendar-table th {
    background: #fbfbfb;
    font-size: 20px;
    text-align: center;
    color: black;
    padding: 20px;
    font-family: "Quicksand", Georgia, "Times New Roman", Times, serif;
}

.project-calendar-table td {
    position: relative;
    min-height: 200px;
    font-size: 20px;
    text-align: center;
    color: black;
    padding: 20px;
    font-family: "Quicksand", Georgia, "Times New Roman", Times, serif;
}

.project-calendar-table .date {
    font-size: 16px;
    position: absolute;
    top: 3px;
    right: 3px;
}

.project-calendar-table .tile {
    min-height: 80px;
}

.project-calendar-table .bar {
    width: 100%;
    font-size: 14px;
}

.project-calendar-table tr .bar:first-child {
    margin-top:15px;
}

.project-calendar-table tr a:nth-child(even) .bar {
    background: #0A72E8;
    color: white;
}

.project-calendar-table tr a:nth-child(odd) .bar {
    background: #FF4961;
    color: white;
}

.production-planning {
    padding: 0 !important;
}

.relative {
    position: relative;
}

.add-production-planning {
    position: absolute;
    top: 5px;
    right: 5px;
    color: rgba(21, 107, 9, 0.4);
}

.presence-toggle {
    width: 100%;
    height: 35px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.presence-toggle .slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease;
}
.presence-toggle .slider-half {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
}
.presence-toggle .absent {
    background-color: #fee2e2;
    justify-content: center;
    color: #ef4444;
    font-weight: bold;
}
.presence-toggle .present {
    background-color: #d1fae5;
    justify-content: center;
    color: #10b981;
    font-weight: bold;
}
.presence-toggle .username {
    background-color: white;
    color: #333;
    justify-content: center;
    position: relative;
}
.presence-toggle.is-present .slider {
    transform: translateX(-33.333%);
}
.bhv-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    pointer-events: none;
}
.bhv-ribbon::before {
    content: 'BHV';
    position: absolute;
    top: -13px;
    right: -40px;
    width: 100px;
    text-align: center;
    transform: rotate(40deg);
    font-size: 12px;
    font-weight: bold;
    color: white;
    background-color: #007bff;
    padding-top: 20px;
    padding-bottom: 2px;
}

.text-gray {
    color: #515151 !important;
}

.text-purple {
    color: #8520c9 !important;
}

.text-pink {
    color: #e83eda !important;
}

.text-dark-blue {
    color: #002683 !important;
}

.table-row-highlight td:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 10px;
}

.table-row-highlight td:first-child {
    position: relative;
}

.table-row-highlight.maintenance td:first-child::before {
    background-color: #FF9149 !important;
}

.table-row-highlight.malfunction td:first-child::before {
    background-color: #FF4961 !important;
}

.table-row-highlight.service td:first-child::before {
    background-color: #1E9FF2 !important;
}

.table-row-highlight.install td:first-child::before {
    background-color: #28D094 !important;
}

.table-row-highlight.special_maintenance td:first-child::before {
    background-color: #002683 !important;
}

.table-row-highlight.internal_decrease td:first-child::before {
    background-color: #515151 !important;
}

.table-row-highlight.fat_with_customer td:first-child::before {
    background-color: #e83eda !important;
}

.table-row-highlight.test td:first-child::before {
    background-color: #8520c9 !important;
}

.folder-img-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.folder-img-top img {
    width: 60%;
}

.img-size{
    height: auto;
    width: 700px;
    background-size: cover;
    overflow: hidden;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23009be1' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
    width: 30px;
    height: 48px;
}
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23009be1' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
    width: 30px;
    height: 48px;
}

img.log-image {
    width: 100px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
}

.carousel-inner,
.carousel-item {
    height: 500px;
}

.carousel-item img {
    object-fit: contain;
    height: 100%;
    width: 100%;
}
