.page-content-div {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
}


.flex-parent {
    height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.half-flex-parent {
    height: 45vh !important;
    display: flex !important;
    flex-direction: column !important;
}



/* Centering the grid column headers */
.ag-header-cell-label {
    display: flex;
    justify-content: center;
    align-items: center;
}
.ag-header-cell .ag-header-icon {
    margin-left: -18px; /* Adjust header icon margin to perfect visual alignment */
}
.centered-cell {
    white-space: pre-wrap !important;
    line-height: 1.5 !important;
    word-break: break-word !important;

    /* vertical + horizontal centering */
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.uneditable-cell {
    background-color: var(--bs-gray-200);
}


/* Styling for making the grids grow on the Excel review tabs */
.tab-content {
    height: 100% !important;
}
.tab-pane {
    height: 100% !important;
    padding-top: 15px;
}
.tab-pane > div {
    height: 100% !important;
}



/* Styling for html.I used as buttons */
.icon-as-button {
    cursor: pointer;
}
.icon-as-button:hover {
    color: var(--bs-primary);
}
.icon-as-button.disabled {
    color: var(--bs-gray-600) !important;
    pointer-events: none !important;
}

/* Unfocus the button not selected in the discrepancy modal */
.unselected-button{
    opacity: 0.5;
}

/* Shadow */
.shadow {
    box-shadow: 0 2px 4px var(--bs-border-color-translucent);
}

/* Make the labels in-line with the inputs */
.form-label {
    margin: 0 !important;
    align-items: center;
    font-size: large;
}

/* Styling to have an alert at the top of the page */
.page-alert {
    z-index: 2000;
    position: absolute;
    right: 20px;
    top: 30px;
    max-width: 50%;
}

/* For PDF preview */
.preview-div {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.border-right {
    border-right: 1px solid var(--bs-gray-400);
    padding-right: 25px;
    margin-right: 15px;
}

/* PDF Splitter styling */
#pdf-splitter-container {
    position: relative;
    overflow: hidden;
}

#pdf-splitter:hover {
    background-color: var(--bs-gray-400);
}

#pdf-splitter:active {
    background-color: var(--bs-primary);
}

/* Styling to make the date picker look like the other inputs */
.SingleDatePicker {
    width: 100% !important;
    border-radius:6px !important;
    background-color: var(--bs-gray-100);
}
.SingleDatePickerInput {
    width: 100% !important;
    border-radius: 6px !important;
}
.DateInput_input {
    font-size: medium !important;
    font-weight: 400 !important;
    border-radius:6px !important;
}
.DateInput {
    border-radius: 6px !important;
}

/*  */
.header-button {
    font-size: x-large;
    color: var(--bs-gray-600);
    cursor: pointer;
}

/* Links in grid styling */
.grid-link {
    color: var(--bs-primary);
    text-decoration: underline;
    cursor: pointer;
    flex-direction: row;
    flex: 1 1 auto;
}

/* Place items on a single row in a div */
.single-row {
    display: flex;
    gap: 8px;
    align-items:center;
}
.space-between {
    justify-content: space-between;
}

/* Style for the upload component for file upload */
#file-upload-box {
    color: var(--bs-secondary-color);
    width: 100%;
    height: 100%;
    border-style: dashed;
    border-width: 2px;
    border-radius: 5px;
    border-color: var(--bs-secondary-color);
    line-height: 55px;
    margin: 0px;
}
#file-upload-box:hover {
    color: var(--bs-emphasis-color);
    border-color: var(--bs-emphasis-color);
    cursor: pointer;
}

/* Putting a spinner on top of content for loading */
.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.7); /* Slight background tint */
    z-index: 2000; /* Ensure it is above other content */
}

/* Ensure PDF review grid container doesn't cut off bottom rows */
#pdf-review-grid-container {
    box-sizing: border-box;
    min-height: 0 !important;  /* Critical for flex children to shrink properly */
}

#pdf-review-grid {
    box-sizing: border-box;
    min-height: 0 !important;  /* Critical for flex children to shrink properly */
}

/* Ensure AG Grid's root and viewport are properly constrained */
#pdf-review-grid .ag-root-wrapper {
    height: 100% !important;
    min-height: 0 !important;
}

#pdf-review-grid .ag-body-viewport {
    height: 100% !important;
    max-height: 100% !important;
}

/* Center and fill the select dropdown editor in the Keg Service column */
#pdf-review-grid .ag-cell-inline-editing .ag-cell-edit-wrapper {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#pdf-review-grid .ag-cell-inline-editing .ag-picker-field-wrapper {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#pdf-review-grid .ag-cell-inline-editing .ag-picker-field-display {
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
