﻿
body {
    padding-top: 10px;
    padding-bottom: 10px;
    word-break: normal !important;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

input,
textarea,
select,
.ms-parent .ms-choice span {
    color: #222222  !important; /* Changes light gray text to near-black */
    font-weight: 400 !important; /* Sets font weight to semi-bold (use 500 or 600) */
}

/* Reduce excessive top and bottom padding inside the footer */
footer .footer-top {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Reduce blank space between body content section and footer */
section.backend-section {
    padding-bottom: 10px !important;
}

/* Reduce top green banner height (Requests Banner) */
section.thirty-section.bg-info {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.map #google-map {
    width: 100%;
    height: 380px;
}

.map-info {
    padding: 15px 30px;
}

#map #google-map {
    width: 100%;
    height: 380px;
}

/* Reduce bottom sub-menu bar height */
.subMenu ul.nav-tabs {
    margin-bottom: 10px !important; /* Removes the 2rem bottom margin */
}



.subMenu .nav-link {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

div.portfolio-filter.grid-filter {
    padding-bottom: 0px !important; /* Removes the 2rem bottom padding */
    margin-top: 5px !important; /* Adjust top gap from the title */
    margin-bottom: 10px !important; /* Adjust bottom gap before Request Detail card */
}

/* Reduce vertical padding inside the buttons themselves */
div.portfolio-filter .btn-medium {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* reduce vertical padding of request# text */
#home h6 {
    margin-bottom: 5px !important;
    margin-top: 5px !important;
}

/* Reduce padding in the accordion header bar (where "Request Detail" title lives) */
#requestDetailPartialDiv .panel-heading, #requestsPartialDiv .panel-heading, #requestRatePartialDiv .panel-heading {
    padding: 5px 0 5px 0 !important;
}

/* Reduce padding inside the accordion white card body */
#requestDetailPartialDiv .panel-body, #requestsPartialDiv .panel-body, #requestRatePartialDiv .panel-body,
#requestDetailPartialDiv .panel-title, #requestsPartialDiv .panel-title, #requestRatePartialDiv .panel-title {
    padding: 5px 0 5px 0 !important;
}

/* Reduce large outer section padding on logout page*/
section.big-section {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

section.small-section-colored.bg-filters {
    background: transparent !important;
    background-color: transparent !important;
    padding: 1px !important; /* This cuts out the thick green outer side walls completely */
}

    /* Target all labels and text spans inside the transparent filters panel */
    section.small-section-colored.bg-filters,
    section.small-section-colored.bg-filters label,
    section.small-section-colored.bg-filters span,
    section.small-section-colored.bg-filters div {
        /* Override standard framework white text rules */
        color: #333333 !important;
    }

/* Make security image responsive so it fills its container nicely */
#imgSecurity {
    max-width: 100% !important;
    height: auto !important;
}


html.unloading #divProgressbar {
    display: block !important;
}

.current {
    background: lightgray;
}

.txt-end {
    text-align: right;
}

.active_page {
    color: rgb(98, 195, 167) !important;
}

.responsiveInput, .tableHeaderFilterInput, .searchBoxFilterInput, .responsiveInputWithIcon1, .responsiveInputWithIcon2, .responsiveInputWithIcon3 {
    border: 1px solid #000;
    border-radius: 5px;
    padding: 10px 15px;
    width: 100%;
    margin: 0 0 5px 0;
    max-width: 100%;
    resize: none;
    outline: none;
    color: #828282;
    line-height: initial;
    word-break: initial;
}

.responsiveInputWithIcon1 {
    width: calc(100% - 32px);
}

.responsiveInputWithIcon2 {
    width: calc(100% - 64px);
}

.responsiveInputWithIcon3 {
    width: calc(100% - 96px);
}

.tableHeaderFilterInput
{
    padding: 5px !important;
    margin: 0px !important;
    
}
.containerTypeList {
    width: 200px;
    margin-right:10px;
}

.spanIcon {
    position: relative;
    font-size: 1em;
    cursor: pointer;
    left: 95%;
    text-indent: 0px;
    bottom: 30px;
    z-index: 10;
}

.calendarSpanIcon {
    position: relative;
    font-size: 1em;
    cursor: pointer;
    left: 90%;
    text-indent: 0px;
    bottom: 40px;
}

.downloadSpanIcon {
    padding: 1px;
    cursor: pointer;
}

/* Center default state when opening */
.ui-dialog:not(.is-dragging) {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

/* Height capping & overflow rules */
.ui-dialog.ui-widget.ui-widget-content {
    max-height: 92vh !important;
}

.ui-dialog .ui-dialog-content {
    overflow-x: hidden !important;
    max-height: 78vh !important;
    overflow-y: auto !important;
}

/*.ui-dialog.fullResponsiveWidth,
.ui-dialog.fullResponsiveWidth .ui-dialog-content,*/ /* <--- ADD THIS COMMA! */
/*.ui-dialog.fullResponsiveWidth .dataTables_wrapper,
.ui-dialog.fullResponsiveWidth table.dataTable {
    width: 100% !important;
    box-sizing: border-box !important;
}*/

.border-corner-all, .border-corner-left, .border-corner-tl, .border-corner-top, border-corner-top-left {
    border-top-left-radius: 5px !important
}

.border-corner-all, .border-corner-right, .border-corner-top, .border-corner-tr, border-corner-top-right {
    border-top-right-radius: 5px !important
}

.border-corner-all, .border-corner-bl, .border-corner-bottom, .border-corner-left, border-corner-bottom-left {
    border-bottom-left-radius: 5px !important
}

.border-corner-all, .border-corner-bottom, .border-corner-br, .border-corner-right, border-corner-bottom-right {
    border-bottom-right-radius: 5px !important
}




/* ==========================================================================
FIXED: DYNAMIC TABS MATRIX CONTAINER
========================================================================== */

.requestsTabContainer {
    display: flex !important;
    width: 100%;
    flex-wrap: wrap; /* Essential: lets tabs wrap to a new row instead of breaking words */
    gap: 1px; /* Increased slightly to give wrapped rows a clean look */
    background-color: #79d2b4;
    box-sizing: border-box;
    height: auto !important;
    overflow: visible !important;
    padding: 1px; /* Even padding all around for multi-row layouts */
}
    /* Individual Div Tab Layout Controls */
    .requestsTabContainer .flexTab {
        /* FIX FOR EQUAL STRETCH WITHOUT TEXT CRUSHING: */
        flex: 1 0 auto; /* Grow to fill the row, but NEVER shrink smaller than the text needs */
        text-align: center;
        box-sizing: border-box;
        cursor: pointer;
        user-select: none;
        color: #ffffff;
        font-size: 13px;
        font-weight: bold;
        letter-spacing: 0.5px;
        transition: background-color 0.2s ease;
        padding: 6px 10px !important; /* Added horizontal padding for clean button breathing room */
        line-height: 1.2 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        /* FIX FOR TEXT WRAPPING: */
        white-space: nowrap !important; /* CRITICAL: Forces text to stay completely on a single line */
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
        .requestsTabContainer .flexTab:hover {
            background-color: #5bbd9e;
        }
        .requestsTabContainer .flexTab.active {
            background-color: #5bbd9e;
            border-radius: 4px;
        }
        .requestsTabContainer .flexTab.current_tab {
            background-color: #5bbd9e;
            border-radius: 4px;
        }

/* Custom Global Spinner matching DataTables 2.x style */
.dt-processing {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    margin-left: -100px;
    margin-top: -26px;
    text-align: center;
    padding: 2px;
    z-index: 10;
}

    .dt-processing > div:last-child {
        position: relative;
        width: 80px;
        height: 15px;
        margin: 1em auto;
    }

        .dt-processing > div:last-child div {
            position: absolute;
            top: 0;
            width: 13px;
            height: 13px;
            border-radius: 50%;
            background: rgb(13, 110, 253); /* This controls the blue color */
            animation-timing-function: cubic-bezier(0, 1, 1, 0);
        }

            .dt-processing > div:last-child div:nth-child(1) {
                left: 8px;
                animation: dt-processing-1 0.6s infinite;
            }

            .dt-processing > div:last-child div:nth-child(2) {
                left: 8px;
                animation: dt-processing-2 0.6s infinite;
            }

            .dt-processing > div:last-child div:nth-child(3) {
                left: 32px;
                animation: dt-processing-2 0.6s infinite;
            }

            .dt-processing > div:last-child div:nth-child(4) {
                left: 56px;
                animation: dt-processing-3 0.6s infinite;
            }

/* The CSS Keyframes that handle the dot movement */
@keyframes dt-processing-1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes dt-processing-3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes dt-processing-2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}

.statusColorWAITING {
    color: darkorange;
    font-weight: 700;
}

.statusColorPENDING {
    color: brown;
    font-weight: 700;
}


.statusColorCOUNTERED {
    color: darkblue;
    font-weight: 700;
}

.statusColorACCEPTED {
    color: black;
}

.statusColorAUTHORIZED {
    color: darkgreen;
    font-weight: 700;
}

.statusColorAPPROVED {
    color: black;
}

.statusColorDECLINED {
    color: black;
}

.statusColorSUBMITTOFILED {
    color: black;
}

.statusColorWITHDRAWN {
    color: black;
}

.selectCol {
    font-weight: bold;
    font-size: 14px;
}

/*.icon-group {
   float: right;
   margin-top: 5px;*/ /* Adjust this value to align the icons vertically with the input box */
   /*margin-right: -10px;*/ /* Pulls the icons into the gutter space on the right */
/*}*/

input.date {
    pointer-events: none; /* Clicks pass right through the textbox */
    cursor: default;
    color: #222222; /* Changes light gray text to near-black */
    font-weight: 400;
}

/* Rule 1: Form controls (Inputs, Textareas, Native Selects, Multiselects) */

.function-button:disabled,
input.function-button:disabled,
button.function-button:disabled {
    background: #EFEFEF !important;
    background-color: #EFEFEF !important;
    background-image: none !important;
    color: #a1a1a1 !important;
    cursor: default !important; /* Changes cursor from hand pointer back to standard arrow */
    opacity: 0.7;
}

input:read-only,
textarea:read-only,
input:disabled,
select:disabled,
select.readOnlySelect,
.ms-parent.readOnlySelect .ms-choice span {
    color: #333333 !important; /* Dark text for greyed/locked fields */
    font-weight: 400 !important;
}



input:not([type="button"]):not([type="submit"]):read-only,
textarea:read-only,
select:disabled,
select.readOnlySelect {
    background-color: #EFEFEF !important;
}

/* Rule 2: Completely disabled image buttons & spans (Scenario 1) */
.greyed,
.greyed * {
    filter: grayscale(100%);
    opacity: 0.5;
    pointer-events: none !important;
    cursor: not-allowed;
}

/* Rule 3: Read-only Dialogs (Scenario 2) */
.dialog-readonly input,
.dialog-readonly select,
.dialog-readonly textarea,
.dialog-readonly .ui-dialog-buttonpane button:not(.dialog-btn-close) {
    pointer-events: none !important;
    opacity: 0.6 !important;
}

/* 2. Unfreeze DataTables pagination (single clean line) */
.dialog-readonly .dataTables_paginate {
    pointer-events: auto !important;
    opacity: 1 !important;
}

/* 1. Global: Container alignment and sizing for both plugins */
.ms-parent,
.select2-container {
    width: 100% !important;
    display: block !important;
    vertical-align: middle;
}
    /* 2. Global: Match input box styling (height, borders, font size) */
    .ms-parent .ms-choice,
    .select2-container .select2-selection--single {
        height: 38px !important;
        line-height: 36px !important;
        border: 1px solid #767676 !important;
        border-radius: 4px !important;
        padding-left: 10px !important;
        font-size: 14px !important;
        background-color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }
        /* Vertically center text in single Select2 dropdowns */
        .select2-container .select2-selection--single .select2-selection__rendered {
            line-height: 36px !important;
            padding-left: 0 !important;
            color: #333333 !important;
        }
        /* 3. Global: Hide built-in default CSS arrows */
        .ms-parent .ms-choice > div,
        .ms-parent .ms-choice > span.icon-caret,
        .select2-container .select2-selection--single .select2-selection__arrow b {
            border: none !important;
            background: transparent !important;
            width: 0 !important;
            height: 0 !important;
        }
        /* 4. Global: Inject down_arrow.png icon for both plugins */
        .ms-parent .ms-choice::after,
        .select2-container .select2-selection--single .select2-selection__arrow {
            content: '' !important;
            background: url('/Content/image/icon/down_arrow.png') no-repeat center center !important;
            background-size: contain !important;
            width: 14px !important;
            height: 10px !important;
            position: absolute;
            right: 12px !important;
            top: 50% !important;
            transform: translateY(-50%) scale(0.7) !important;
            pointer-events: none;
        }

.subMenu .nav-link {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}
/* Limit the opened dropdown menu width to match the dialog container */
.ui-selectmenu-menu {
    max-width: 450px !important; /* Cap maximum width */
}
    /* Allow long option descriptions to wrap onto multiple lines cleanly */
    .ui-selectmenu-menu .ui-menu-item-wrapper {
        white-space: normal !important; /* Enables multi-line text wrapping */
        word-break: break-word !important; /* Prevents long code prefixes from clipping */
        padding: 8px 12px !important;
        font-size: 13px !important;
    }


.user_country .title {
    width: auto !important;
    margin-left: 20px !important;
    margin-right: auto; /* This pushes the buttons to the far right */
    font-weight: 500;
    font-size: medium;
    white-space: nowrap; /* Keeps the ID on one line */
    color: black;
    text-shadow: 0.7px 0.7px 1px rgba(0, 0, 0, 0.4);
}
/* 2. Clear red border as soon as the input has any valid value (works with copy/paste & history) */
input[required]:valid,
select[required]:valid,
textarea[required]:valid {
    border: 1px solid black !important; /* Standard neutral border */
}

input:invalid, select:invalid, textarea:invalid, input[required]:placeholder-shown {
    border: 1px solid #dc3545 !important; /* Red border */
    /* background-color: #fff8f8 !important;*/ /* Subtle red tint */
}
    /* Optional: Focus state when the user clicks inside an invalid box */
    input:invalid:focus, select:invalid:focus, textarea:invalid {
        outline: none;
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.5) !important;
    }
/* Fix font size inside the rate container dialog */
#tblRateContainer,
#tblRateContainer label,
#tblRateContainer input,
#tblRateContainer select {
    font-size: 14px !important; /* Set to your main page's standard font size */
}
    /* Fix input box height and padding inside the dialog */
    #tblRateContainer input.responsiveInput,
    #tblRateContainer select {
        height: 35px !important; /* Standard height matching background page */
        padding: 2px 6px !important; /* Reduce inner padding */
        box-sizing: border-box !important;
    }


.function-button {
    background-color: #79d2b4 !important;
}

.textColorOrange {
    color: darkorange !important;
    font-weight: 600 !important;
}

.ui-tabs-nav li {
    background-color: #e0e0e0 !important; /* Slightly darker gray background */
    border: 1px solid #cccccc !important;
}

    .ui-tabs-nav li a {
        color: #333333 !important; /* Dark text for clear contrast */
        font-weight: bold;
    }
    /* 2. Active (Selected) Tab */
    .ui-tabs-nav li.ui-tabs-active {
        background-color: #ffffff !important; /* Clean white background for selected tab */
        border-bottom-color: #ffffff !important;
    }

        .ui-tabs-nav li.ui-tabs-active a {
            color: #000000 !important; /* High contrast black text */
        }
    /* 3. Hover State */
    .ui-tabs-nav li:not(.ui-tabs-active):hover {
        background-color: #d6d6d6 !important;
    }

        .ui-tabs-nav li:not(.ui-tabs-active):hover a {
            color: #000000 !important;
        }



.ui-dialog-content {
    overflow-y: scroll !important; /* Always show scrollbar track to keep width static */
    overflow-x: hidden !important;
}

label.btnImportExcel {
    border: 1px #bed6fb outset;
    border-color: #bed6f8;
    background-color: #bed6f8;
    background-repeat: repeat-x;
    background-position: left top;
    background-image: url('/Content/image/Site/pop.png');
    width: 20px;
    width: 19px;
    height: 15px;
    cursor: pointer;
    text-align: center;
    border-top-style: solid;
    border-left-style: solid;
    font-size: smaller;
}

label.btnImportExcel {
    width: auto;
    display: block;
    height: 19px;
    line-height: 19px;
    overflow: hidden;
}
/* ==========================================================================
Accordion Component Cleaned & Consolidated Style Rules
========================================================================== */
/* 1. Panel Container & Spacing */
.accordion-style-03 .panel {
    margin-bottom: 10px !important;
    padding: 0 !important;
    overflow: hidden !important;
}
/* 2. Closed / Expanded Background States */
.accordion-style-03 .panel,
.accordion-style-03 .panel-heading {
    background-color: #e8f5e9 !important; /* Default closed light green */
}

    .accordion-style-03 .panel:has(.collapse.show),
    .accordion-style-03 .panel:has(.collapse.in) {
        background-color: #ffffff !important; /* White background when opened */
    }

        .accordion-style-03 .panel-heading:has(a:not(.collapsed)),
        .accordion-style-03 .panel:has(.collapse.show) .panel-heading {
            background-color: #5bbd9e !important; /* Active dark green header */
        }
/* 3. Panel Heading & Toggle Button Layout */
.accordion-style-03 .panel-heading {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

    .accordion-style-03 .panel-heading a.accordion-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 2px 10px !important; /* Compact header height */
        min-height: unset !important;
        line-height: 1.1 !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }
/* 4. Typography & Icons */
.accordion-style-03 .panel-title,
.accordion-style-03 .panel-title span,
.accordion-style-03 .panel-title i {
    color: #1b5e20 !important;
}

.accordion-style-03 .panel-heading:has(a:not(.collapsed)) span,
.accordion-style-03 .panel-heading:has(a:not(.collapsed)) i {
    color: #ffffff !important; /* White text/icon for active dark header */
}

.accordion-style-03 .panel-heading a.accordion-toggle:not(.collapsed) i {
    transform: rotate(180deg) !important;
    transition: transform 0.2s ease-in-out; /* Smooth flipping animation */
}
/* Ensure default orientation when closed */
.accordion-style-03 .panel-heading a.accordion-toggle.collapsed i {
    transform: rotate(0deg) !important;
    transition: transform 0.2s ease-in-out;
}
/* 5. Panel Content Body Padding */
.accordion-style-03 .panel-collapse,
.accordion-style-03 .panel-body {
    padding: 10px 20px !important;
    box-sizing: border-box !important;
}

.panel-height {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}
/* Base transition for smooth rotation */
#iconTliChevron {
    display: inline-block; /* Required for CSS transform to work properly */
    transition: transform 0.2s ease-in-out;
}
    /* Class applied when the TLI block is expanded */
    #iconTliChevron.rotated {
        transform: rotate(180deg) !important;
    }

/* progress ring */

.circle-progress-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.circle-svg-box {
    position: relative;
    width: 100px;
    height: 100px;
}

.progress-ring__circle {
    stroke-dasharray: 251.2; /* 2 * PI * 40 */
    stroke-dashoffset: 251.2;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.3s ease-in-out;
    stroke-linecap: round;
}

.circle-percent-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.circle-status-text {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
    text-align: center;
}

/* Style the "Choose File" button directly */
#openFileUpload::file-selector-button {
    background-color: #5bb39d; /* Teal matching your theme buttons */
    color: black;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
