/* Write Your CSS */

.filter-card-header {
    padding: 10px;
    /* cursor: pointer; */
}

.react-flow__renderer {
    z-index: 1;
}
  
.react-select__menu {
    z-index: 9999 !important;
}  

/* Container for camera and controls */
.camera-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
}

.camera-wrapper {
    position: relative;
    width: 400px;
    height: 300px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.video-stream {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.capture-btn, .start-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.capture-btn:hover, .start-btn:hover {
    background-color: #0056b3;
}

.capture-btn:disabled, .start-btn:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

.captured-image {
    margin-top: 20px;
    text-align: center;
}

.img-preview {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
}

/* Sticky column for shift calendar */
.sticky-col {
    position: sticky !important;
    left: 0;
    z-index: 20;
    background-color: #fff !important;
    min-width: 200px !important;
}

.table thead .sticky-col {
    position: sticky !important;
    left: 0;
    z-index: 30;
    background-color: #f5f8fa !important;
    border-right: 2px solid #e4e6ef;
}

.table tbody .sticky-col {
    position: sticky !important;
    left: 0;
    z-index: 20;
    background-color: #fff !important;
    border-right: 2px solid #e4e6ef;
}

.table tbody tr:hover .sticky-col {
    background-color: #f5f8fa !important;
}

.table tbody .sticky-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: inherit;
    z-index: -1;
}

.table tbody .sticky-col::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 10px;
    box-shadow: 5px 0 5px -5px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* Dark mode support for sticky column */
[data-bs-theme="dark"] .sticky-col {
    background-color: #1e1e2d !important;
}

[data-bs-theme="dark"] .table thead .sticky-col {
    background-color: #1a1a27 !important;
    border-right-color: #2b2b40;
}

[data-bs-theme="dark"] .table tbody .sticky-col {
    background-color: #1e1e2d !important;
    border-right-color: #2b2b40;
}

[data-bs-theme="dark"] .table tbody tr:hover .sticky-col {
    background-color: #1a1a27 !important;
}

[data-bs-theme="dark"] .table tbody .sticky-col::after {
    box-shadow: 5px 0 5px -5px rgba(0, 0, 0, 0.5);
}
  