html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: 'Poppins', sans-serif !important;
}

.splash-custom-height {
    height: 250px;
    object-fit: contain;
}

.stickman-custom-height {
    height: 250px;
    object-fit: contain;
}

.table {
    border: 1px solid #f2f2f2; /* Border around the table */
    width: 100%; /* Ensure the table takes up the full width */
    min-width: 1200px; /* Minimum width for the table */
    border-collapse: separate; /* Keeps borders between cells separate */
    border-spacing: 0; /* Removes spacing between cells */
}

.table > :not(:last-child) > :last-child > * {
    border-bottom-color: transparent !important;
}

.th-header th {
    border-right: none;
    bottom: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    background-color: #F7F9FC;
    color: #0a66cc;
    position: sticky;
    top: 0;
    z-index: 2;
}

.th-header th:hover {
    z-index: 999; /* bring hovered header (and its tooltip) above neighbours */
}

tbody {
    background-color: white;
}

.td-header {
    border: 1px solid #dddddd;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

td {
    text-align: center;
    vertical-align: middle;
    border-right: none; /* Remove vertical lines */
    border-bottom: 1px solid #f2f2f2; /* Keep bottom border */
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px;
}

.blue-row td {
    background-color: #d0e7ff; /* Light blue */
}

.pink-row td {
    background-color: #ffe0e6; /* Light pink */
}

#topMenu .dropdown-toggle::after {
    font-size: 1.2rem; 
    vertical-align: middle; 
}

.expandable-row {
    display: none;
    background-color: #ebf5fe;
    text-align: left; /* Ensure text inside is left-aligned */
}

.expandable-row.active {
    display: table-row;
    background-color: #F5F9FF;
}

.expandable-row td {
    text-align: left; /* Left-align text in the cell */
    padding-left: 5px; /* Optional: Add padding for better spacing */
}

.expandable-entitlement-row {
    display: none;
}

.expandable-entitlement-row.active {
    display: table-row;
    background-color: #F5F9FF;
}

    .expandable-entitlement-row .row {
        padding: 8px 0;
    }

/* For LTR layout (e.g., English) */
html[dir="ltr"] .expandable-row div,
html[dir="ltr"] .expandable-row div p {
    text-align: left;
}

/* For RTL layout (e.g., Arabic, Persian) */
html[dir="rtl"] .expandable-row div,
html[dir="rtl"] .expandable-row div p {
    text-align: right;
}


.status-badge {
    display: inline-block;
    min-width: 80px;
    text-align: center;
    padding: 1px 1px;
    font-size: 0.7rem;
    border-radius: 2px;
    color: white;
    vertical-align: middle;
}

.arrow {
    display: inline-block;
    margin-left: 8px; /* Add space between text and arrow */
    transition: transform 0.3s ease; /* Smooth transition for rotation */
    font-size: 14px; /* Optional: Adjust the font size of the arrow */
}

.arrow.down {
    transform: rotate(180deg); /* Rotate to point down (caret V) when expanded */
}

.arrows-up {
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1;
}

.arrows-down {
    font-size: 1em; /* adjust if needed */
}

/* Ensure table container has proper dimensions */
.table-container {
    position: relative;
}

#topScrollContainer {
    margin-bottom: -20px;
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
}

#topScroll {
    overflow-x: auto;
    overflow-y: hidden;
    height: 20px;
    width: 100%;
}

#scrollMirror {
    height: 1px;
}

#tableContainer {
    overflow: auto;
    width: 100%;
    height: 580px;
}

#tableContainer::-webkit-scrollbar {
    display: none;
}

.introjs-skipbutton {
    font-size: 15px !important;
    padding: 4px 8px !important;
    white-space: nowrap !important; /* Prevents text from wrapping */
    display: inline-block !important; /* Make sure it's visible */
    margin-right: 55px;
    /* Make it look like plain white text (no button) */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    cursor: pointer;
}

    .introjs-skipbutton:hover,
    .introjs-skipbutton:focus {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #ffffff !important;
    }


.disabled-link {
    pointer-events: none; 
    opacity: 0.6; 
    cursor: not-allowed; 
}

#notificationWrapper {
    max-height: 250px;
    overflow-y: auto;
}

.notification-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 360px;
    height: 100%;
    background-color: #fff;
    border-left: 1px solid #ddd;
    z-index: 1060;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
}

.notification-panel.open {
    right: 0;
}

.btn-outline-custom-blue {
    color: #0a66cc;
    border: 1px solid #0a66cc;
    background-color: transparent;
}

.btn-outline-custom-blue:hover {
    background-color: #0a66cc;
    color: white;
}

.swal2-popup {
    font-size: 0.85rem !important;
    font-family: 'Poppins', sans-serif !important;
}

.swal2-title {
    font-size: 1rem !important;
    font-family: 'Poppins', sans-serif !important;
}

.swal2-html-container {
    font-size: 0.9rem !important;
    font-family: 'Poppins', sans-serif !important;
}

.info-icon-login:hover {
    opacity: 1;
}

.info-icon-login {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.info-icon:hover {
    opacity: 1;
}

.info-icon {
    width: 14px;
    height: 14px;
    cursor: help;
}

/* Wrapper around the icon so pseudo-elements work */
.info-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    z-index: 1000;
}

/* Tooltip box */
.info-icon-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 140%; /* to the right of the icon */
    top: 50%;
    transform: translateY(-50%);
    background: #FFF7D6; /* light yellow */
    border: 1px solid #F0D38C;
    border-radius: 10px;
    padding: 10px 16px;
    min-width: 170px;
    max-width: 170px;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    color: #A07800;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

/* Arrow on the left side of tooltip */
.info-icon-wrapper::before {
    content: "";
    position: absolute;
    left: 130%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent #FFF7D6 transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 11;
}

/* Special positioning for tooltips inside table header */
.th-header .info-icon-wrapper::after {
    left: 50%;
    top: 130%;
    transform: translate(-50%, 0); /* center horizontally, show below the icon */
    max-width: 220px; /* adjust if needed */
}

/* arrow pointing up to the icon */
.th-header .info-icon-wrapper::before {
    left: 50%;
    top: 120%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #FFF7D6 transparent;
}

/* For right-most columns: show tooltip fully to the LEFT of the icon */
.th-header .info-icon-wrapper.tooltip-left::after {
    left: auto; /* ignore generic left */
    right: 0; /* right edge aligns with icon wrapper */
    top: 130%; /* below the header */
    transform: translateY(0);
    max-width: 220px; /* tweak if you like */
}

/* Arrow pointing up towards the icon */
.th-header .info-icon-wrapper.tooltip-left::before {
    left: auto;
    right: 8px; /* a bit inside from the right edge of bubble */
    top: 120%;
    transform: none;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #FFF7D6 transparent;
}

/* keep them above table body */
.th-header .info-icon-wrapper.tooltip-left::before,
.th-header .info-icon-wrapper.tooltip-left::after {
    z-index: 1001;
}


.th-header .info-icon-wrapper.tooltip-left::before {
    left: auto;
    right: 130%; /* arrow just to the left of the icon */
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent #FFF7D6 transparent transparent;
}

/* keep them above the table body */
.th-header .info-icon-wrapper.tooltip-left::before,
.th-header .info-icon-wrapper.tooltip-left::after {
    z-index: 1001;
}


/* make sure tooltip is above table body */
.th-header .info-icon-wrapper::before,
.th-header .info-icon-wrapper::after {
    z-index: 1001;
}

/* header cell on hover goes above neighbours */
.th-header th:hover {
    z-index: 999;
}


/* Show on hover/focus */
.info-icon-wrapper:hover::after,
.info-icon-wrapper:hover::before,
.info-icon-wrapper:focus-within::after,
.info-icon-wrapper:focus-within::before {
    opacity: 1;
}

.info-icon-wrapper:hover::after,
.info-icon-wrapper:focus-within::after {
    transform: translate(6px, -50%);
}


