﻿@media (min-width: 992px) {
    .navbar-vertical.navbar-expand-lg {
        width: 18rem !important;
    }
    .navbar-expand-lg.navbar-vertical ~ .navbar, .navbar-expand-lg.navbar-vertical ~ .page-wrapper {
        margin-left: 18rem;
    }
}


.disp-none {
    display: none;
}

.disp-inline-block {
    display: inline-block;
}

.disp-block {
    display: block;
}


.loading-container {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

    .loading-container.fixed {
        position: fixed;
    }

    .loading-container.transparent {
        background-color: transparent;
    }

    .loading-container .loading-box {
        position: absolute;
        width: 40px;
        width: 40px;
        top: 50%;
        left: 50%;
        margin-left: -20px;
        margin-right: -20px;
    }

        .loading-container .loading-box .loader {
            width: 40px;
            height: 40px;
            border: 2px solid #FFF;
            border-bottom-color: rgb(32, 107, 196);
            border-radius: 50%;
            display: inline-block;
            box-sizing: border-box;
            animation: rotation .3s linear infinite;
        }

.div-loader {
    width: 40px;
    height: 40px;
    border: 2px solid #FFF;
    border-bottom-color: rgb(32, 107, 196);
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotation .3s linear infinite;
    margin: 0px auto
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#rtms-toast-container {
    position: fixed;
    bottom: 40px;
    left: 0px;
    right: 0px;
    z-index: 9999;
}

    #rtms-toast-container .rtms-toast {
        display: block;
        margin: 0px auto;
        width: 600px;
        max-width: 60%;
        padding: 15px;
        color: #fff;
        background-color: #333;
        opacity: 0.9;
        transition: opacity 0.5s;
    }

        #rtms-toast-container .rtms-toast.success {
            color: #155724;
            background-color: #d4edda;
            border-color: #c3e6cb;
        }

        #rtms-toast-container .rtms-toast.error {
            color: #721c24;
            background-color: #f8d7da;
            border-color: #f5c6cb;
        }

        #rtms-toast-container .rtms-toast.info {
            color: #0c5460;
            background-color: #d1ecf1;
            border-color: #bee5eb;
        }

        #rtms-toast-container .rtms-toast.warning {
            color: #0c5460;
            background-color: #d1ecf1;
            border-color: #bee5eb;
        }



#rtms-toast-container .rtms-toast .toast-close {
    float: right;
    color: inherit;
    font-weight: bold;
    cursor: pointer;
}


.active-link {
    font-weight: bold !important;
    color: rgb(32, 107, 196) !important;
}


.list-group-transparent .list-group-item.active div{
    font-weight: normal !important;
}

.form-label {
    font-weight: bold !important;
    font-size: .7rem;
}

.display-label {
    font-weight: bold !important;
    font-size: .7rem;
}

@media (min-width: 992px) {
    .modal-lg, .modal-xl {
        --tblr-modal-width: 780px !important;
    }
}

.max-width-60 {
    max-width: 60px !important
}

.max-width-80 {
    max-width: 80px !important
}

.max-width-100 {
    max-width: 100px !important
}

.max-width-120 {
    max-width: 120px !important
}

.buttons-excel {
    display: none
}

.center-align {
    margin: 0px auto;
}

.shaded-pdf-viewer {
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.64);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.64);
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.64);
}

.signature-pad-width {
    width: 400px
}
.signature-pad-height {
    height: 200px
}
.signature-pad {
    background: #FFF;
    border: solid 1px rgba(0,0,0, 0.34);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.64);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.64);
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.64);
}

.modal-xl {
    max-width: 95% !important;
    margin: 0px auto;
}
@media (min-width: 992px) {
    .modal-xl {
        max-width: 70% !important;
    }
}


.step-item.step-yellow::before {
    --tblr-steps-color: rgb(245, 159, 0) !important;
}

.step-item.step-orange::before {
    --tblr-steps-color: rgb(255, 106, 0);
}

.cursor-pointer {
    cursor: pointer
}

.btn-link {
    background: none;
    border: none
}

    .btn-link:hover {
        text-decoration: none !important;
    }

.form-highlighted {
    border-color: red
}



/* Add this CSS to your stylesheet */
/*.modal-right .modal-dialog {
    position: fixed;
    margin: auto;
    width: 100%;
    height: 100%;
    right: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.modal-right.show .modal-dialog {
    transform: translateX(0);
}

body.modal-open .page-wrapper {
    transition: margin-right 0.3s ease-in-out;
    margin-right: 400px;*/ /* Adjust this value based on your modal width */
/*}*/


.active-navigation {
    --tblr-bg-opacity: 1;
    background-color: rgba(var(--tblr-dark-rgb), var(--tblr-bg-opacity)) !important;
}


.container-fluid {
    max-width: 1460px !important
}


@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

.shake-error {
    display: inline-block;
}

.shake {
    animation: shake 1s ease-in-out;
}


.select2-container.form-control {
    display: block !important;
}

    .select2-container.form-control .select2-selection__arrow {
        top: 10px !important;
    }
    .select2-container.form-control .select2-selection--single, .select2-container.form-control .select2-container--focus {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

.select2-dropdown .select2-search__field {
    outline: none !important;
    box-shadow: none !important;
}

.select2-results__option .select2-search-term {
    font-weight: bold;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #DDD !important;
    color: #000 !important;
}


.clear-textbox {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #888;
    border: none !important;
    outline: none !important;
}

    .clear-textbox:hover, .clear-textbox:focus {
        border: none !important;
        outline: none !important;
    }

.form-label-info {
    display: none;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 16px;
    z-index: 1000;
    font-weight: normal;
}



.link-button {
    font-size: 0.95em;
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}

    .link-button:hover {
        color: #0056b3;
    }


.ui-widget.ui-widget-content {
    border: 2px solid #d3d3d3 !important;
}

.ui-menu .ui-menu-item:hover, .ui-menu .ui-menu-item-wrapper:hover, .ui-menu .ui-menu-item:focus, .ui-menu .ui-menu-item-wrapper:focus, .ui-menu .ui-menu-item:active, .ui-menu .ui-menu-item-wrapper:active, .ui-menu .ui-menu-item-wrapper.ui-state-active {
    background: #d3d3d3 !important;
    border: 1px solid #fff !important;
    outline: 1px solid #fff !important;
}


ul.ui-autocomplete {
    z-index: 2100 !important;
}

.ui-autocomplete-category {
    font-size: .75rem;
    font-weight: bold;
    padding: .4em;
    margin-bottom: 0em;
    line-height: 1.5;
    background-color: #EEE;
}

.ui-menu-item {
    font-size: .8rem;
    border: solid 1px #FFF;
    outline: solid 1px #FFF;
}

.ui-menu-item-wrapper {
    border: solid 1px #FFF;
    outline: solid 1px #FFF;
}

.col-18 {
    width: 18%;
    flex-shrink: 0;
}

.col-25 {
    width: 25%;
    flex-shrink: 0;
}

.col-40 {
    width: 40%;
    flex-shrink: 0;
}

.col-50 {
    width: 50%;
    flex-shrink: 0;
}

.col-47 {
    width: 47%;
    flex-shrink: 0;
}

.col-625 {
    width: 6.25%;
    flex-shrink: 0;
}








/* ===============================================
   COMPLETE CHART FEATURE CSS
   =============================================== */

/* Chart Container */
#chartContainer {
    width: 100%;
    overflow: visible;
}

#historyChart {
    width: 100%;
    height: 250px;
}

/* Chart Wrapper - Main container for the entire chart */
.chart-wrapper {
    width: 100%;
    height: 250px;
    position: relative;
}

/* HTML Line Chart - Main chart container */
.html-line-chart {
    display: flex;
    width: 100%;
    height: 195px; /* Reduced to make room for external labels and legend */
    position: relative;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

/* Y-Axis Styles */
.y-axis {
    display: flex;
    flex-direction: column;
    width: 60px;
    border-right: 2px solid #ddd;
    background: #f9f9f9;
}

.y-axis-label {
    font-size: 9px;
    color: #666;
    text-align: right;
    line-height: 1;
    padding-right: 5px;
    height: calc(100% / 10); /* For 10 equal divisions */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Chart Area - The main plotting area */
.chart-area {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

/* Grid Lines */
.grid-line {
    position: absolute;
    left: 0;
    right: 0;
    border-bottom: dashed 1px #CCC;
    background-color: #e0e0e0;
    z-index: 1;
}

    .grid-line:first-child {
        border-bottom: none;
    }

    .grid-line:last-child {
        border-bottom: none;
    }



/* Month Columns - Interactive hover areas */
.month-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    position: relative;
    cursor: pointer;
    padding: 0 2px;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

    .month-column:hover {
        background-color: rgba(0, 102, 204, 0.05);
    }

/* Dots Container - Contains rate dots and vertical lines */
.dots-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

/* Vertical Lines connecting high and low rates */
.vertical-line {
    position: absolute;
    width: 2px;
    background-color: #999;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* Rate Dots - Individual data points */
.rate-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all 0.2s ease;
    border: 2px solid #fff;
    left: 50%;
    transform: translateX(-50%) translateY(50%);
    z-index: 10;
    pointer-events: none;
}

/* Enhanced hover effect for month column affects dots */
.month-column:hover .rate-dot {
    transform: translateX(-50%) translateY(50%) scale(1.2);
    border-width: 3px;
}

/* High Rate Dot */
.high-dot {
    background-color: #ff6b6b;
}

/* Main Rate Dot (larger and more prominent) */
.rate-dot-main {
    background-color: #0066cc;
    width: 12px;
    height: 12px;
}

.month-column:hover .rate-dot-main {
    width: 15px;
    height: 15px;
}

/* Low Rate Dot */
.low-dot {
    background-color: #4ecdc4;
}

/* Rate Line Container - SVG line connecting rate dots */
.rate-line-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
}

/* Hide old/unused line styles */
.rate-line {
    display: none;
}

.line-segment {
    display: none;
}

/* Internal month labels (hidden in favor of external) */
.month-label {
    display: none;
}

/* Internal legend (hidden in favor of external) */
.chart-legend-html {
    display: none;
}

/* External Month Labels Container */
.month-labels-container {
    display: flex;
    justify-content: space-between;
    padding: 5px 0 0 60px;
    height: 25px;
    align-items: center;
}

.month-label-external {
    font-size: 10px;
    color: #666;
    font-weight: bold;
    text-align: center;
    flex: 1;
    transition: color 0.2s ease;
}

/* External Legend Container */
.chart-legend-external {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 11px;
    color: #666;
    padding: 10px 0;
    height: 30px;
}

/* Legend Items */
.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Legend Dots */
.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #fff;
}

.high-legend {
    background-color: #ff6b6b;
}

.rate-legend {
    background-color: #0066cc;
    width: 10px;
    height: 10px;
}

.low-legend {
    background-color: #4ecdc4;
}

.legend-note {
    font-style: italic;
    color: #888;
    font-size: 10px;
    margin-left: 10px;
}

/* Rate Tooltip Styles */
.rate-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    z-index: 10000;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 280px;
    pointer-events: none;
}

    .rate-tooltip.show {
        opacity: 1;
        transform: scale(1);
    }

.tooltip-header {
    font-weight: bold;
    margin-bottom: 8px;
    border-bottom: 1px solid #444;
    padding-bottom: 4px;
    text-align: center;
}

.tooltip-row {
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rate-type {
    font-weight: bold;
    min-width: 40px;
}

.rate-breakdown {
    text-align: right;
}

.high-row .rate-type {
    color: #ff6b6b;
}

.rate-row .rate-type {
    color: #0066cc;
}

.low-row .rate-type {
    color: #4ecdc4;
}

.tooltip-footer {
    margin-top: 8px;
    padding-top: 4px;
    border-top: 1px solid #444;
    font-size: 10px;
    color: #aaa;
    text-align: center;
}

/* Simple Bar Chart Container (fallback/compatibility) */
.simple-bar-chart {
    display: block;
    width: 100%;
    height: 250px;
    padding: 0;
    margin: 0;
    position: relative;
    background: transparent;
    border: none;
}

    /* Hide SVG-related styles */
    .simple-bar-chart svg {
        display: none !important;
    }

/* Remove old chart tooltip styles */
.chart-tooltip {
    display: none !important;
}

/* Responsive Design - Mobile/Tablet */
@media (max-width: 768px) {
    .chart-wrapper {
        height: 220px;
    }

    .html-line-chart {
        height: 165px;
    }

    .y-axis {
        width: 50px;
        padding: 10px 5px 0 0;
    }

    .y-axis-label {
        font-size: 8px;
    }

    .chart-area {
        padding: 10px 10px 0 10px;
    }

    .month-labels-container {
        padding: 5px 0 0 50px;
    }

    .month-label-external {
        font-size: 9px;
    }

    .rate-dot {
        width: 8px;
        height: 8px;
    }

    .rate-dot-main {
        width: 10px;
        height: 10px;
    }

    .month-column:hover .rate-dot-main {
        width: 12px;
        height: 12px;
    }

    .chart-legend-external {
        font-size: 10px;
        gap: 15px;
    }

    .rate-tooltip {
        font-size: 11px;
        max-width: 240px;
        padding: 10px;
    }
}

/* Responsive Design - Very Small Screens */
@media (max-width: 480px) {
    .chart-wrapper {
        height: 200px;
    }

    .html-line-chart {
        height: 145px;
    }

    .y-axis {
        width: 45px;
        padding: 8px 3px 0 0;
    }

    .y-axis-label {
        font-size: 7px;
    }

    .chart-area {
        padding: 8px 8px 0 8px;
    }

    .month-labels-container {
        padding: 3px 0 0 45px;
        height: 20px;
    }

    .month-label-external {
        font-size: 8px;
    }

    .chart-legend-external {
        font-size: 9px;
        gap: 10px;
        padding: 5px 0;
        height: 25px;
    }

    .legend-note {
        display: none; /* Hide on very small screens */
    }

    .rate-tooltip {
        font-size: 10px;
        max-width: 200px;
        padding: 8px;
    }
}


