/* Styles for Analytics app */
.point-handle {
    cursor: grab;
}

.analytic-graph-table-container {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.dataTable {
    width: 100%;
    border-collapse: collapse;
}

/* QAQC Results subtab */
.grid-container {
    display: grid;
    grid-template-columns: 0.5fr 1fr 1fr 1fr; /* Adjusted the first column to be half the width */
    grid-template-rows: repeat(3, auto);
    gap: 10px;
    width: 100%;
    height: 100%;
}

.grid-item {
    padding: 20px;
    text-align: center;
    border: 1px solid black;
}

.first-column {
    grid-row: span 3;
}

.fourth-row {
    grid-column: span 2 / 4; /* This makes the fourth row span all columns */
}

#analytic-graph-table-container {
    max-height: 400px; /* Adjust the height as needed */
    overflow-y: auto;
}

.analytics-dataTable {
    width: 100%;
    border-collapse: collapse;
}

.analytics-dataTable th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.analytics-dataTable th, #analytics-dataTable td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

#spectrogram-fm-sync-results-modal {
    width: 50%;
    max-width: 50%;
}

.qaqc-results-cards-height {
    height: 100% !important;
}

/*#analytics-qaqc-results-graphs-div-wrapper {*/
/*    width: 30%;*/
/*}*/
#analytics-filter-selection-graphs-div-wrapper {
    width: 60%;
}

.filter-selection-orange-overlay {
    position: absolute;
    top: 6.5%;
    left: 15.2%;
    width: 79%;
    height: 82%;
    background-color: orange;
    opacity: 0.2;
    pointer-events: none; /* Allows clicks to pass through */
}

/* Correlation and Wave Analysis tab */


/*Align QAQC tables*/
/* Center horizontally */
.dt-center {
    text-align: center !important;
}

/* Center vertically */
.vertical-middle {
    vertical-align: middle !important;
}


/* Normalized Profiles tab */
#normalized-profiles-checkerboard-table {
    border-collapse: collapse;
    margin: 20px;
    font-family: Arial, sans-serif;
}

#normalized-profiles-checkerboard-table th,
#normalized-profiles-checkerboard-table td {
    width: 100px;
    height: 50px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ccc;
}

/* First row (header) and first column (labels) styling */
#normalized-profiles-checkerboard-table th,
#normalized-profiles-checkerboard-table td:first-child {
    background-color: #f0f0f0;
    font-weight: bold;
    font-size: 0.85rem; /* Reduced font size */
}

/* Cell background colors */
#normalized-profiles-checkerboard-table .green-dark {
    background-color: #99ff99;
}

#normalized-profiles-checkerboard-table .green-light {
    background-color: #ccffcc;
}

#normalized-profiles-checkerboard-table .red-light {
    background-color: #ffcccc;
}

#normalized-profiles-checkerboard-table .red-dark {
    background-color: #ff9999;
}

#normalized-profiles-checkerboard-table td {
    cursor: pointer;
    position: relative;
}

.normalized-profile-custom-tooltip {
    position: absolute;
    background-color: #0d6efd; /* Bootstrap primary */
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    z-index: 1000;
    pointer-events: none;
    display: none;
    white-space: nowrap;
}

/* Summary tab */
#summary-carrousel-pipes {
    width: 95%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) grayscale(1) brightness(0.2);
}

.carousel-indicators [data-bs-target] {
    background-color: gray;
}

.carousel-control-prev,
.carousel-control-next {
    width: auto;: translateY(- 50 %);
    z-index: 2;
}

.carousel-control-prev {
    left: -50px;
}

.carousel-control-next {
    right: -50px;
}

.carousel-indicators {
    position: relative;
    bottom: auto;
    margin-top: 3rem;
    justify-content: center;
}

.carousel-indicators [data-bs-target] {
    background-color: gray;
    width: 40px;
    height: 8px;
}

#summary-table-wrapper {
    font-size: 0.9rem;
}

/*Analysis Results form styles*/
#analytics-field-notes-qaqc-analysis-results-modal .modal-body .d-flex {
    align-items: flex-start;
}

.kw-select-segments-and-measures-wrapper {
    height: auto;
    max-height: 43vh;
    overflow-y: auto;
    overflow-x: auto;
}

#analytics-field-notes-qaqc-analysis-results-modal .modal-body {
    max-height: calc(100vh - 220px); /* header + footer space */
    overflow-y: auto;
}

.custom-wide {
    max-width: 33vw; /* 90% of the viewport width */
}

/*List Materials off canvas*/
#field-notes-list-materials-off-canvas {
    width: 25vw;
}

#specs-management-off-canvas-list-specs {
  width: 35vw;
}

.offcanvas {
    z-index: 1060;
}
