:root{
    --pe-primary: #274882;
    --pe-secondary: #e21d23;
    --pe-secondary-rgb: 226, 29, 35;
    --pe-pagination-active-bg:#274882; 
    --adp-day-name-color: var(--pe-primary);


    --pe-orange: #f27333;
    --pe-orange-rgb: 242, 115, 51;
    --pe-orange-text-emphasis: #cc4d0d;
    --pe-orange-bg-subtle: rgba(242, 115, 51, 0.1);
    --pe-orange-border-subtle: rgba(242, 115, 51, 0.50);
    /* --pe-app-sidebar-menu-item-color-hover: #f27333;
    --pe-app-sidebar-menu-item-color-active: #f27333; */

    --pe-blue-rgb: 0, 123, 255;
    --pe-blue: #007bff;
    --pe-indigo-rgb: 40, 53, 147;
    --pe-indigo: #283593;
}

#dotnet-compile-error{
    display: none;
}

[data-sidebar=icon] .app-wrapper {
  min-height: calc(90vh - var(--pe-app-header-height));
}

:root[data-theme-colors=athena],
[data-bs-theme=light][data-theme-colors=athena] {
  --pe-primary: #274882;
  --pe-primary-rgb: 39, 72, 130;
  --pe-primary-text-emphasis: #e21d23;
  --pe-primary-bg-subtle: rgba(39, 72, 130, 0.1);
  --pe-primary-border-subtle: rgba(39, 72, 130, 0.50);
  --pe-app-sidebar-menu-item-color-hover: #274882;
  --pe-app-sidebar-menu-item-color-active: #274882;
  --pe-link-color-rgb: 39, 72, 130;
  --pe-link-hover-color-rgb: rgba(39, 72, 130, 0.50);
  --pe-link-opacity: 1;
    --pe-pagination-active-bg:#274882 !important; 
    --pe-btn-hover-bg: #e21d23;
    --pe-btn-hover-border-color: #e21d23;
}

.accordion-primary .accordion-button:not(.collapsed) {
    color: #fff;
    background-color: var(--pe-secondary) !important;
}
#fstLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* optional dim background */
    display: none;               /* hidden until needed */
    justify-content: center;
    align-items: center;
    z-index: 99999;
}
.loader-wrapper {
    z-index: 100000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.offcanvas-backdrop.show {
    opacity: 0.1;
}
#loader-logo {
    width: 240px;          /* change as needed */
    margin: 50px auto;
    z-index: 100000;
}
.loader {
  width: 16px;
  height: 16px;
  box-shadow: 0 30px, 0 -30px;
  border-radius: 4px;
  background: currentColor;
  display: block;
  position: relative;
  color: #FFF;
  transform: translateY(30px);
  box-sizing: border-box;
  animation: animloader 2s ease infinite;
  z-index: 100000;
  
}

.loader::after,
.loader::before {
  content: '';
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  box-shadow: 0 30px, 0 -30px;
  border-radius: 4px;
  background: currentColor;
  color: #FFF;
  position: absolute;
  left: 30px;
  top: 0;
  animation: animloader 2s 0.2s ease infinite;
}

.loader::before {
  animation-delay: 0.4s;
  left: 60px;
}

@keyframes animloader {
  0% {
    top: 0;
    color: var(--pe-primary);
  }
  50% {
    top: 50px;
    color: rgba(255, 255, 255, 0.2);
  }
  100% {
    top: 0;
    color: var(--pe-secondary);
  }
}
/************************************
 * GLOBAL DATATABLE FIXES (COMMON)
 ************************************/

/* ---------- DESKTOP FIX: allow dropdowns inside table ---------- */
@media (min-width: 1025px) {
    table.dataTable tbody,
    .dataTables_wrapper,
    .table-responsive {
        overflow: visible !important;
    }

    /* hide scrollbar on desktop */
    .dataTables_wrapper {
        scrollbar-width: none !important;
    }
}

/* ---------- MOBILE FIX: stop header vertical stacking ---------- */
@media (max-width: 768px) {

    /* Make the table scroll horizontally */
    .dataTables_wrapper .table {
        width: 100% !important;
        display: block;
        overflow-x: auto !important;
        white-space: nowrap !important; /* Keep the table wide */
    }

    /* Allow cell content to wrap (fix vertical broken headers) */
    .dataTables_wrapper .table th,
    .dataTables_wrapper .table td {
        white-space: normal !important;
        word-break: break-word;
        max-width: 200px;
    }
}

/* ---------- Prevent dropdown jump/shake ---------- */
.dropdown-menu {
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* ---------- Focus Style for length dropdown ---------- */
.form-select:focus {
    border-color: var(--pe-primary);
}

/* ---------- DataTables Processing Loader ---------- */
.dt-processing-msg {
    padding: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spin {
    animation: spin 1s linear infinite;
    font-size: 20px;
    color: #007bff;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ---------- Pagination Colors ---------- */
.pagination {
    --pe-pagination-focus-bg: #274882;
    --pe-pagination-active-bg: #274882;
}

/* ---------- Length dropdown spacing ---------- */
div.dataTables_wrapper .dataTables_length {
    margin-top: 0;
    margin-bottom: 1rem;
}

div.dataTables_wrapper .domBottom .dataTables_length {
    margin-top: 1rem;
    margin-bottom: 0;
}
/* ------------------------------------------
   FINAL FIX: Force <th> and <td> to wrap text
   ONLY in mobile view
-------------------------------------------*/
@media (max-width: 768px) {

    /* Force table to scroll horizontally */
    .dataTables_wrapper .table {
        width: 100% !important;
        display: block;
        overflow-x: auto !important;
        white-space: nowrap !important; /* Keep table row intact */
    }

    /* Force header & cell text to wrap normally */
    .dataTables_wrapper table.dataTable thead th,
    .dataTables_wrapper table.dataTable tbody td {
        white-space: normal !important;
        word-break: break-word !important;
        max-width: 150px !important; /* prevents endless width */
        text-align: left !important;
    }

    /* Ensure DataTables doesn’t force its own nowrap */
    table.dataTable > thead > tr > th {
        white-space: normal !important;
    }

    /* Remove table-nowrap class effect */
    .table-nowrap td,
    .table-nowrap th {
        white-space: normal !important;
    }
}





.air-datepicker-body--day-name{
    color: var(--pe-primary) !important;
    font-weight: 500;
}

.air-datepicker-cell.-current-{
    color:var(--pe-primary) !important;
}

.air-datepicker-cell.-selected-.-focus-,.air-datepicker-cell.-selected-{
    background: var(--pe-primary) !important;
    color: #Fff !important;
}

.avatar-item{
    background-color: var(--pe-secondary);
        border: 2px solid var(--pe-secondary);
}

.was-validated .form-control:invalid::placeholder,
.form-control.is-invalid::placeholder {
    display: none !important;
}

.table  td, 
.table th {
    white-space: normal !important;
    word-break: break-word;
}

/*******************************
* MODAL AS LEFT/RIGHT SIDEBAR
* Add "left" or "right" in modal parent div, after class="modal".
*******************************/
.modal.left .modal-dialog,
.modal.right .modal-dialog, .modal .modal-dialog {
    position: fixed;
    margin: auto;
    width: 100%;
    height: 100%;
    -webkit-transform: translate3d(0%, 0, 0);
    -ms-transform: translate3d(0%, 0, 0);
    -o-transform: translate3d(0%, 0, 0);
    transform: translate3d(0%, 0, 0);
}

.modal.left .modal-content,
.modal.right .modal-content, .modal .modal-content {
    height: 100%;
    overflow-y: auto;
}

.modal.left .modal-body,
.modal.right .modal-body, .modal .modal-body {
    padding: 15px 15px 40px;
}

.modal .modal-dialog.modal-xxl {
    width: 70% !important;
}
/*Left*/
.modal.left.fade .modal-dialog {
    left: -50%;
    -webkit-transition: opacity 0.3s linear, left 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, left 0.3s ease-out;
    -o-transition: opacity 0.3s linear, left 0.3s ease-out;
    transition: opacity 0.3s linear, left 0.3s ease-out;
}

.modal.left.fade.show .modal-dialog {
    left: 0;
}

/*Right*/
.modal.right.fade .modal-dialog, .modal.fade .modal-dialog, .modal .modal-dialog {
    right: -50%;
    -webkit-transition: opacity 0.3s linear, right 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, right 0.3s ease-out;
    -o-transition: opacity 0.3s linear, right 0.3s ease-out;
    transition: opacity 0.3s linear, right 0.3s ease-out;
}

.modal.right.fade.show .modal-dialog, .modal.fade.show .modal-dialog, .modal.show .modal-dialog {
    right: 0;
}

.modal-header{
        --pe-bg-opacity: 1;
    background-color: rgba(var(--pe-light-rgb), var(--pe-bg-opacity)) !important;
}

  .choices__inner{
        padding-top: 1.125rem !important;
    padding-bottom: 1.125rem !important;
        /* padding-right: calc(var(--pe-gutter-x) * 0.5);
    padding-left: calc(var(--pe-gutter-x) * 0.5); */
  }
  .choices .choices__list[aria-expanded]{
    z-index: 100000;
  }
.choices.is-invalid .choices__inner,
.choices__inner.is-invalid {
  border-color: var(--pe-form-invalid-border-color);
  padding-right: calc(1.5em + 1rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 12%27 width=%2712%27 height=%2712%27 fill=%27none%27 stroke=%27%23dc3545%27%3e%3ccircle cx=%276%27 cy=%276%27 r=%274.5%27/%3e%3cpath stroke-linejoin=%27round%27 d=%27M5.8 3.6h.4L6 6.5z%27/%3e%3ccircle cx=%276%27 cy=%278.2%27 r=%27.6%27 fill=%27%23dc3545%27 stroke=%27none%27/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 1.375rem) center;
  background-size: calc(0.75em + 0.5rem) calc(0.75em + 0.5rem);
}

.choices.is-valid .choices__inner,
.choices__inner.is-valid {
  border-color: var(--pe-form-valid-border-color);
  padding-right: calc(1.5em + 1rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%2318a538%27 d=%27M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z%27/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 1.375rem) center;
  background-size: calc(0.75em + 0.5rem) calc(0.75em + 0.5rem);
}

.choices__placeholder {
    opacity: .6;
}

.bg-blue {
  --pe-bg-opacity: 1;
  background-color: rgba(var(--pe-blue-rgb), var(--pe-bg-opacity)) !important;
}

.bg-orange {
  --pe-bg-opacity: 1;
  background-color: rgba(var(--pe-orange-rgb), var(--pe-bg-opacity)) !important;
}

.bg-indigo{
    --pe-bg-opacity: 1;
  background-color: rgba(var(--pe-indigo-rgb), var(--pe-bg-opacity)) !important;
}

.bi-lg { font-size: 1.3333em; line-height: 0.75em; vertical-align: -.0667em; }
.bi-xl { font-size: 1.5em; line-height: 0.6666em; vertical-align: -.075em; }
.bi-xxs { font-size: .5em; }
.bi-xs { font-size: .75em; }
.bi-sm { font-size: .875em }
.bi-1x { font-size: 1em; }
.bi-2x { font-size: 2em; }
.bi-3x { font-size: 3em; }
.bi-4x { font-size: 4em; }
.bi-5x { font-size: 5em; }
.bi-6x { font-size: 6em; }
.bi-7x { font-size: 7em; }
.bi-8x { font-size: 8em; }
.bi-9x { font-size: 9em; }
.bi-10x { font-size: 10em; }

/* Light theme tooltip */
.apex-tooltip-custom {
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    row-gap: 2;
}

/* Dark theme tooltip */
[data-bs-theme=dark] .apex-tooltip-custom {
    background-color: #2c2c2c; /* Dark background */
    color: #f1f1f1; /* Light text */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Optional: bold labels inside tooltip */
.apex-tooltip-custom b {
    font-weight: 600;
}