﻿/* Common.css */

/* To Keep Styles with Bootstrap Overhaul - Begin */
/* For the Horizontal Forms with multiple rows per record so that we don't show a line between the label and the data */

.table-multi-row-form td, .table-multi-row-form th {
    border-bottom-width: 0 !important;
}

td.spcBtn {
    width: auto;
    white-space: nowrap;
    text-align: right;
}

/* for the form-control label */
.frmCtrlOrdWrt {
    min-width: 140px;
}

#ctrlBtns a.btn {
    margin-bottom: 10px !important;
}


/* for SingleRowWMemo (like communications-overview) */
.hdrowSnglTop > td {
    border-bottom-width: 0 !important;
}

    /* to undo the removal of the border for SingleRowWMemo */
    .hdrowSnglTop > td#tdEdit {
        border-bottom-width: 1px !important;
    }

.block {
    display: block;
}


.frmCtrlCntr {
    border: 1px solid #D6D6D6;
    margin: 2px 10px 2px 10px;
}


.lstNum, .lsNum, .lstNumSml {
    width: auto;
}

/* mainly for form-customizer needs to have smaller labels for the "Section" and "Col" */
.card-header .form-label {
    font-size: 1rem;
}

/* for date input */
.date-input, .time-input {
    min-width: 80px;
}

/* Aligns radio and checkbox items horizontally */
.horizontal-stack .form-check {
    display: inline-block;
    margin-right: 10px;
}

/* For the astericks */
.req, .required-field-indicator {
    padding-left: 5px;
    color: #dc3545; /* Bootstrap's default danger color */
}

.required-field-indicator-conditional {
    padding-left: 5px;
    color: #6c757d; /* Bootstrap's default secondary color */
}

/* For the field hint icon when Fld.FldHint */
.field-hint-icon {
    padding-left: 5px;
    color: #6c757d; /* Bootstrap's default secondary color */
}

.padCtrlLnk {
    padding-left: 10px;
}

.PL20 {
    padding-left: 20px;
}

/* Loading overlay for when adding new HTML via AJAX
    Uses a screen wide overlay instead of in the html element where it will be added becuase we now use bootstrap rows so this is a more universal solution
*/
.loading-overlay {
    position: fixed; /* Fixed position to cover the whole screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 9999; /* High z-index to cover other elements */
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the spinner */
    font-size: 2em; /* Larger size for visibility */
    color: white; /* Color of the spinner */
}


/* For the filter-control to show as stripped but only t */
.fltrControlView .fltrCard .card-body .row:nth-child(even) {
    background-color: #f2f2f2; /* Slightly darker grey */
}

.searchRow {
    padding-top: 8px;
    padding-bottom: 8px;
}

.fltrControlView .fltrCard .card-body .fltrGrpIsMatchAllContainer,
.fltrControlView .fltrCard .card-body .fltrIsMatchAllContainer {
    background-color: #fff;
}

/* to show/hide the card body */
.toggleCardIcon {
    cursor: pointer;
    float: right;
}

/* For Checklist */
.checklist-card {
}

.chkNumCol {
    width: 70px;
}

.chkIconCol {
    width: 50px;
}

.chkDateCol {
    width: 150px;
    text-align: right;
}

.chkRespUsrCol {
    width: 200px;
}

.tableBtnCol, .chkBtnCol {
    width: 50px;
}

/* JIC - since BS 5 doesn't have this any longer */
.text-justify {
    text-align: justify;
}

/* To Keep Styles with Bootstrap Overhaul - End */

/* for the form-customizer where the field titles are links to the field-properties */
.form-label-link {
    cursor: pointer;
}

/* Select2 */

.select-container {
    display: flex;
    align-items: center; /* Align items vertically in the middle */
    gap: 10px; /* Optional: adds space between the Select2 and the anchor button */
}

.select-ajax + .select2 { /* Ensures that the Select2 styling affects only the intended element */
    flex-grow: 1; /* Allows the Select2 to grow and fill the space */
}

.select-view-all-btn {
    flex-shrink: 0; /* Prevents the button from shrinking */
}

/* Tooltip: To make the HTML-based tooltips wide enough (otherwise they scrunch up the words) */
.html-tooltip .tooltip {
    min-width: 350px; /* Minimum width for tooltips containing HTML */
}

.html-tooltip .tooltip-inner {
    min-width: 350px; /* Consistent inner content width */
}

/* For all of the field values which are editable */
.edt {
    cursor: pointer;
}

/* for all of the "edit" links shown throughout the view forms */
.field-action-link:hover {
    color: var(--bs-primary) !important;
}

.pic-container {
    position: relative;
    display: inline-block;
}

.pic-overlay-button {
    position: absolute;
    bottom: -10px; /* Adjust as needed */
    right: -10px; /* Adjust as needed */
    border-radius: 50%;
    padding: 5px 10px;
    border: none;
    background-color: var(--bs-primary) !important;
    color: white;
}

/* when no pic than make it less prominent */
img.pic-placeholder {
    width: 150px !important;
    height: 150px !important;
    min-width: 150px;
    min-height: 150px;
}

/* to make all of the badges on the checklist have the same width for better symmetry */
.checklist-badge {
    min-width: 70px;
}

/* for the links shown at the right side of the Card Header
    mainly had to set this up for the badges because the "eye" icon button is not always there 
*/
.card-header-link {
    min-width: 18px;
}

/* Originally setup the btnSave to be disabled when the form is submitted */
.btn.disabled {
    pointer-events: none; /* Disable click */
    cursor: not-allowed; /* Change cursor */
    opacity: 0.5; /* Visual cue for disabled state */
}

/* for the multi-line tooltips we want to left align them */
.left-align-tooltip .tooltip-inner {
    text-align: left;
}


.form-text-large {
    font-size: 1.25rem; /* Adjust the size as needed */
}
/* for credit cards */
#ctrlCCCode {
    width: 100px;
}

/* for zip codes text input */
#ctrlAdrBill_Zip {
    width: 200px;
}

.lstMonth, .lstYear {
    width: 200px;
}

/* for images of accepted credit cards */
.imgCCAcept {
    margin-right: 20px;
}

.datatable-totals-row {
    font-weight: bold;
}

/* for the DisplayValue Class - since its returned wrapped in a div, we need to make sure that it won't end up on a new line */
.display-value {
    display: inline-block;
}

.ctrlLstOrdInput {
    width: 120px;
}

.tdLstOrd {
    width: 180px;
}

/* when the RptFltrLst Item is selected so its being used as a filter */
.rptFltrLst_tr_on {
    background-color: var(--bs-accordion-btn-bg);
}

/* since otherwise it can get the faux stripping */
.fltrIsMatchAllContainer .col {
    background-color: #fff;
}

/* for the Rec/Page dropdown on the RptEdt.aspx */
#RptRecPerPg {
    max-width: 100px;
}

/* for the "simple nav" for the Photos to have larger icons */
#divNav i {
    font-size: 2em; /* Adjust the size as needed */
}

#divNav {
    display: flex;
    align-items: center;
    justify-content: center; /* If you want to center items horizontally as well */
}

/* for the "Relavant Auto Actions" col on the Tmpl_Lst.aspx so that it looks consistent */
.Tmpl_Tsk_UsedOn {
    max-width: 300px;
    width: 40%;
}

#btnSave {
    min-width: 145px;
    min-height: 40px;
}


/* hint and PL10 are still being used by the case navigation */
.hint {
    color: #6c757d; /* Bootstrap's default secondary color */
    font-size: 0.8em;    
}

.PL10 {
    padding-left: 10px;
}