/* 
  ----------------------------------------------------------------------------------
  
    Reminders:
		padding: top right bottom left
  ----------------------------------------------------------------------------------
*/
 
body { 
    display: flex;  
    flex-direction: column;
    min-height: 100vh;       /* ensure Full height */
}

/* Default (desktop) - show the content */
.hide-on-mobile {
    display: inline;
}
  
/* Mobile view - hide the content */
@media screen and (max-width: 932px) {
    .hide-on-mobile {
        display: none;
    }
}

@media print {
    /* Prevent cards from breaking across pages */
    .card {
        page-break-inside: avoid; 
        margin-bottom: 20px; /* Add some space between printed cards */
    }
}

/* Override bootstrap to make less spacing around HRs */
hr {
    margin-top: 10px; /* Use custom spacing */
    margin-bottom: 10px; /* Use custom spacing */
}

/* JQuerUI dialog styling */
.ui-dialog-titlebar-close { display: none; }

.custom-input-small {
    font-size: 0.95rem; /* Adjust font size */
    padding: 0.25rem 0.5rem; /* Adjust padding */
}

/* for table columns */
.limited-width {
    max-width: 100px;    /* Set your desired max width */
    white-space: nowrap; /* Prevent line breaks */
    overflow: hidden;    /* Hide overflow */
    text-overflow: ellipsis; /* Show ellipses for overflow */
}

.no-underline {
    text-decoration: none; /* Remove underline */
}

/* custom text area that is set to expand with typing */
.textarea-expanding {
    overflow: hidden; 
    resize: none; /* Prevent manual resizing if desired */
    min-height: 90px;  /* this is roughly 3 rows */
    max-height: 300px;
}

/* custom text area that will expand with JS */
.textarea-autofit {
    overflow: hidden;          /* no scrollbars */
    resize: none;              /* user can't drag */
    box-sizing: border-box;    /* height includes padding/border */
}

.transparent-table,
.transparent-table tr th,
.transparent-table tr td {
    background-color: transparent !important;
}

/* Change the caret size in the accordion header */
.accordion-button::after {
    font-size: 0px;  /* Adjust the size here */
}

.dropdown-menu {
    z-index: 1050;  /* Ensure it stays ontop */
}

.force-hide {
    display: none !important;
}

.btn-device-capture-size {
    min-width: 150px;
    min-height: 150px;
}

/* styling for a button that only uses an icon */
btn-icon-only {
    background:none; 
    border:none; 
    cursor:pointer; 
}

/* ---------------------------------------------------------------*/
/* Formatting for image grid images                              */
/*----------------------------------------------------------------*/
.imagegrid-image {
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}

.imagegrid-image.selected {
  border-color: #0d6efd;  /* Bootstrap primary */
  transform: scale(1.05);
  border-radius: 0.375rem;  /* match rounded img */
}

/* ---------------------------------------------------------------*/
/* Formatting for datatables first column                         */
/*----------------------------------------------------------------*/
.dt-control {
    max-width: 20px;
}

.dt-leading-column {
    max-width: 500px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Applies to all rows in DataTables */
table.dt-tall-rows td, 
table.dt-tall-rows th {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Mobile screens - using 932 as width of iPhone Max*/
@media screen and (max-width: 932px) {  
    .dt-leading-column {
        max-width: 175px;
    }
}

/* Smaller Mobile screens - using 768 as width of Galaxy S8 */
@media screen and (max-width: 768px) {
    .dt-leading-column {
        max-width: 145px;
    }
}

/* to ensure non-breaking, even with dashes and hyphens */
.dt-no-break {
    white-space: nowrap;
}

/* ---------------------------------------------------------------*/
/* Style for placeholder text                                     */
/* ---------------------------------------------------------------*/
input::placeholder,
textarea::placeholder {
    color: lightslategray;
    font-style: italic;
    font-size: 0.8em;
    opacity: 0.7; /* Transparency */
}
  
/* For better cross-browser support */
textarea::-webkit-input-placeholder,   /* Chrome, Safari, Opera */
textarea:-moz-placeholder,             /* Firefox 4-18 */
textarea:-ms-input-placeholder        /* Internet Explorer 10-11 */
{ 
    color: lightslategray;
    font-style: italic;
}

/* ------------------------------------------------------- */
/* custom input for numbers for entering PINs              */
/* ------------------------------------------------------- */
.pin-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    margin: 5px;
    border: 1px solid var(--bs-secondary);
}

/* Hide arrows in WebKit browsers */
.pin-input::-webkit-inner-spin-button,
.pin-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ------------------------------------------------------- */
/* Custom modal for viewing PDFs                           */
/* ------------------------------------------------------- */
.pdfmodal-container {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
  }

  /* Modal Content */
  .pdfmodal-content {
    position: relative;
    margin: 10% auto;
    width: 90vw;
    height: 80vh;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    max-width: 100%;
  }

  /* Close Button */
  .pdfmodal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
  }

  .pdfmodal-iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

/* ------------------------------------------------------- */
/* Custom slider for delete confirmation                   */
/* ------------------------------------------------------- */
.slider-container {
    position: relative;
    width: 300px;
    height: 50px;
    border-radius: 25px;
    overflow: hidden;
    text-align: center;
    line-height: 50px;
    font-weight: bold;
    color: #666;
    user-select: none;
}

.slider-handle {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: grab;
    transition: background 0.3s;
}

.slider-handle:active {
    cursor: grabbing;
}

.slider-container.confirmed {
    color: var(--bs-danger);
}

/* ------------------------------------------------------- */
/* Custom wheels for number selection                      */
/* ------------------------------------------------------- */

.number-wheel {
    width: 100px;
    height: 200px;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    border: 2px solid #ccc;
    border-radius: 10px;
    background: #fff;
}

.number-wheel div {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
    font-size: 1.25rem;
}

.number-wheel::-webkit-scrollbar {
    display: none;
}

.number-wheel-selected-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 40px;
    border-top: 2px dashed #aaa;
    border-bottom: 2px dashed #aaa;
    pointer-events: none;
    background-color: rgba(200,200,200,0.2);
  }

  .number-wheel-button {
    width: 100px;
    justify-content: center;
  }

  .number-wheel-button button {
    width: 100px;
    padding: 2px;
    justify-content: center;
    background-color: rgba(220,220,220,0.2);
    border: 1px solid rgba(180,180,180,0.2);
  }
  
/* ------------------------------------------------------- */
/* Custom animations                                       */
/* ------------------------------------------------------- */

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.heartbeat {
    animation: heartbeat 1s infinite ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}
  
.fade {
    animation: fadeInOut 3s infinite ease-in-out;
}

@keyframes lostinternet {
    0%, 100% { color: cyan;}
    3% { color: white;}
    6% { color: cyan;}
    9% { color: white;}
    12% { color: cyan;}
    15% { color: white;}
    18% { color: cyan;}
    21% { color: white;}
    24% { color: cyan;}
    27% { color: white;}
    30% { color: cyan;}
    33% { color: white;}
    36% { color: cyan;}
    39% { color: white;}
    42% { color: cyan;}
    45% { color: white;}
    48% { color: cyan;}
    51% { color: white;}
    54% { color: cyan;}
    57% { color: white;}
    60% { color: orange;}
    75% { color: white;}
    80% { color: orange;}
    95% { color: white;}
}

@keyframes lostcloud {
    0%, 100% { color: cyan;}
    3% { color: white;}
    6% { color: cyan;}
    9% { color: white;}
    12% { color: cyan;}
    15% { color: white;}
    18% { color: cyan;}
    21% { color: white;}
    24% { color: cyan;}
    27% { color: white;}
    30% { color: cyan;}
    33% { color: white;}
    36% { color: cyan;}
    39% { color: white;}
    42% { color: cyan;}
    45% { color: white;}
    48% { color: cyan;}
    51% { color: white;}
    54% { color: cyan;}
    57% { color: white;}
    60% { color: orange;}
    71% { color: white;}
    74% { color: orange;}
    84% { color: white;}
    87% { color: orange;}
    97% { color: white;}
}

/* ------------------------------------------------------- */
/* Custom navbar link colors      - changed with Branding  */
/* ------------------------------------------------------- */

.branded-header {
    background-color: var(--trig-hf-header-bg-color);
    color: var(--trig-hf-header-color);
}

.branded-footer {
    background-color: var(--trig-hf-footer-bg-color);
    color: var(--trig-hf-footer-color);
}

.breadcrumb li a {
   color: var(--trig-breadcrumb-link-color);
}

.navbar.branded-navbar .nav-link {
    color: var(--trig-hf-link-color);
}

.navbar.branded-navbar .nav-link:hover {
    background-color: var(--trig-hf-header-bg-color);
    color: var(--trig-hf-link-hover-color);
    text-decoration-color: var(--trig-hf-link-hover-color);
}

.navbar.branded-navbar .nav-link.active {
    color: var(--trig-hf-link-active);
}

.navbar-toggler {
    border: 0px;
}

.navbar-toggler-icon {
    color: var(--trig-hf-toggler-icon-color); 
}

/* Ensure all list items inside the dropdown also have a red background */
.nav-item .dropdown-menu,
.nav-item .dropdown-menu li {
    background-color: var(--trig-hf-header-bg-color);
}

/* Optional: Change text color for better visibility */
.nav-item .dropdown-menu li a {
    color: var(--trig-hf-link-active);
}

/*  background color on hover/focus for dropdown items */
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    /* background-color: #495057; /* A slightly lighter dark background on hover */ 
    background-color: var(--trig-hf-header-bg-color);
    color: var(--trig-hf-link-hover-color);
    text-decoration-color: var(--trig-hf-link-hover-color);
}

  /* Optional: Darken the background further on active state */
.navbar .dropdown-item.active {
    color: var(--trig-hf-link-active);
    color: var(--trig-hf-link-active);
}

/* ---------------------------------------------------------------*/
/* accorion buttons                                               */
/* ---------------------------------------------------------------*/

/* Shaded the background for accordian */
.accordion-button:not(.collapsed) {
    background-color: var(--bs-gray-200);  /* slight darker than bs-light */
}

/* Shaded the background for accordian */
.accordion-button.collapsed {
    background-color: var(--bs-light);
}
  
/* ---------------------------------------------------------------*/
/* for notifications in Tab headers                               */
/* ---------------------------------------------------------------*/
.navbar-toggler,
.nav-item {
    position: relative;
}

.badge-notification {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--trig-notification-icon-bg-color);
    color: var(--trig-notification-icon-color);
    font-size: 10px;
    width: 15px;
    height: 15px;
    text-align: center;
    border-radius: 50%;
    line-height: 15px;
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 4px;
    width: 8px;
    height: 8px;
    background-color: var(--trig-notification-icon-bg-color);
    border-radius: 50%;
}

/* ---------------------------------------------------------------*/
/* Style for Photo thumbnails and popups                          */
/* ---------------------------------------------------------------*/
.photo-thumbnail {
    max-width: 150px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
    border: 1px solid #ccc; 
    border-radius: 5px;
}

.photo-thumbnail:hover {
    transform: scale(1.1);
}

.photo-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.photo-popup img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.3);
}

.close-btn {
    position: absolute;
    top: 50px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}
   
/* ---------------------------------------------------------------*/
/* Voice Select Formatting  (assuming custom-select )             */
/* ---------------------------------------------------------------*/
select.speaker-controls {
    max-width: 150px;  /* Max width for the select element */
    width: 100%;       /* Allow it to expand to the max-width */
}

/* Expand dropdown width when open */
select.speaker-controls:focus + .dropdown-menu {
    width: auto !important;    /* Allow the dropdown to expand */
    min-width: 200px;          /* Set a minimum width when the dropdown opens */
}

/* ---------------------------------------------------------------*/
/* TRIGONON Table Formatting for points listing                   */
/* Thiss ensures the scrolling                                    */
/* ---------------------------------------------------------------*/
.point-listing-table-container {
    position: relative;
    height: 175px; /* Adjust as needed */
    overflow-y: auto;
}

.point-listing-table thead th {
    position: sticky;
    top: 0;
    background: var(--bs-primary-bg-subtle);
    border-bottom: 2px solid var(--bs-dark);
    z-index: 10;
}

.cross-listing-table thead th {
    background: var(--bs-primary-bg-subtle);
    border-bottom: 2px solid var(--bs-dark);
}

/* ---------------------------------------------------------------*/
/* CSS FOR REVIEWING                                              */
/* ---------------------------------------------------------------*/
table.review-table {
	/* margin: 5px 0px 5px 10px; */
	border: 1px solid #aaa;
    width: 100%;
}

.review-table td { 
	padding: 2px 2px 2px 2px;
	text-align: left;
}

.review-table th,
.review-table td:first-child { 
	background-color: var(--bs-secondary-bg-subtle);
	font-weight: bold;
	padding: 2px 2px 2px 5px;
	text-align: left;
}

/* ---------------------------------------------------------------*/
/* iFrame formatting for Reporting                                */
/* ---------------------------------------------------------------*/
.iframe-container {
    width: 100%;
    height: 80vh;
    overflow: hidden; /* Hides scrollbars */
    position: relative;
    border: 1px solid #ccc;
}

.iframe-container iframe {
    width: 90%;
    height: 100%;
    border: none;
    transform: scale(0.8); /* Adjust scaling factor */
    transform-origin: top left; /* Sets the scaling point */
}

/* ---------------------------------------------------------------*/
/* Chat formatting for Dealer Messaging                           */
/* ---------------------------------------------------------------*/
/* Chat Container */
.chat-container {
    height: 60vh;
    overflow-y: auto;
    background: var(--bs-light);
    border-radius: 10px;
    padding: 15px;
}

/* Message Bubble */
.chat-bubble {
    max-width: 75%;
}

.chat-date-divider {
    width: 100%;
    font-size: 0.6em;
}

/* Received Messages */
.chat-received {
    background: var(--bs-secondary);
    color: white;
}

/* Sent Messages by youself - blue */
.chat-sent-self {
    background:var(--bs-primary);
    color: white;
}

/* Sent Messages by youself - blue */
.chat-sent-sameAccount {
    background:var(--bs-success);
    color: white;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 15px;
    word-wrap: break-word;
    user-select: none;
    pointer-events: all; /* Ensure the div receives pointer events */
}

.chat-author,
.chat-timestamp {
    font-size: 0.6em;
    width: 100%;
    margin: 0px;
    padding: 0px 5px 0px 5px;
}

/* the following allow for the input to grow and move up as the rows increasea */
.chat-input-container {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 10px;
}

.chat-textarea {
    width: 100%;
    min-height: 40px;
    max-height: 200px;
    overflow-y: auto;
    resize: none;
}

.custom-modal {
    position: absolute !important; /* Override Bootstrap's fixed positioning */
    top: 0;
    left: 0;
    transform: none !important; /* Prevent Bootstrap centering */
}

/* ---------------------------------------------------------------*/
/* Breadcrumb formattign                                          */
/* ---------------------------------------------------------------*/
.breadcrumb {
    list-style: none;      /* Remove default list styling */
    list-style-type: none;
    padding: 0;
    margin: 0;
	margin-bottom: 5px;
    margin-top: 5px;
}

.breadcrumb li {
    margin-right: 3px; /* Spacing between items */
    display: inline-block;
}

.breadcrumb li a {
    text-decoration: none; /* Remove underline from links */
}

.breadcrumb-item + .breadcrumb-item::before {
	content: '';
}

.breadcrumb li.current {
    font-size: 1.0em;  /* Make current page larger */
    font-weight: 600;  /* make it semi-bold */
    color: #333;     /* Different color for current page */
}

.breadcrumb li:not(.current)::after {
    content: '>';      /* Separator */
    margin-left: 7px; /* Spacing after the separator */
}

.breadcrumb li:last-child::after {
    content: ''; /* Remove the separator after the last item */
}

.text-disabled {  
    color: #ccc;
    pointer-events: none; /* Prevent interactions */
}

.text-masked {
    -webkit-text-security: disc; /* Works in Chrome, Edge, Safari */
    font-size: 16px;
}


/* ---------------------------------------------------------------*/
/* Bootstrap offcanvas customizations                             */
/* ---------------------------------------------------------------*/

/* Default mobile width */
.offcanvas {
  width: 95% !important; 
}

/* Larger screens */
@media (min-width: 768px) {
  .offcanvas { 
    max-width: 700px !important;
  }
}

.offcanvas-backdrop {
    transition: none !important;
}

.offcanvas-backdrop.show {
  background-color: rgba(0,0,0,0.1); /* lighter overlay */
}

/* ---------------------------------------------------------------*/
/* Bootstrap customizations                                       */
/* ---------------------------------------------------------------*/

/* creating these, since I don't know how to refernce directly */
bg-primary-subtle {  
    background-color: var(--bs-primary-bg-subtle);
}

bg-secondary-subtle {  
    background-color: var(--bs-secondary-bg-subtle);
}

bg-light-subtle {  
    background-color: var(--bs-secondary-bg-light);
}

bg-success-subtle {  
    background-color: var(--bs-success-bg-subtle);
}

bg-info-subtle {  
    background-color: var(--bs-info-bg-subtle);
}
