/* ----------- My Form ----------- */
.myform {
    margin: 0 auto;
    width: 80%;
    padding: 14px;
    font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.myform fieldset {
    border: 1px solid #ddd;
    padding: 0 0.5em 0.5em;
}

.myform legend {
    color: #0b77b7;
    font-size: 1.1em;
}

.myform legend span {
    width: 10em;
    text-align: right;
}

.myform p,
h1,
form,
button {
    border: 0;
    margin: 0;
    padding: 0;
}

.myform .spacer {
    clear: both;
    height: 10px;
}

/* ------------ Form Class -------------- */

#stylized .todaysdate {
    float: left;
    font-size: 12px;
    padding: 4px 2px;
    width: 200px;
    margin: 2px 0px 20px 10px;
    color: #666666;
    font-weight: normal;
}


#stylized .desc {
    color: #666666;
    display: block;
    font-size: 11px;
    font-weight: normal;
}

#stylized .desclong {
    color: #666666;
    display: table-row;
    font-size: 11px;
    font-weight: normal;
}


#stylized .valmes {
    color: #84B02C;
    font-size: 11px;
    font-weight: normal;
    text-align: left;
    position: relative;
    right: -230px;
    top: -20px;
}

#stylized input[type="radio"]+span {
    top: 0px !important;
}

#stylized input[type="radio"] {
    margin: 0px !important;
    width: 10%;
    min-width: 14px;
    max-width: 14px;
}

#stylized input[type="radio"]~label {
    /* width: auto !important; */
    /* width: 50em; */
    width: 75%;
}

#stylized .radio {
    margin: 6px 0px 0px 0px;

}

#stylized .radio input {
    clear: left;
    float: left;
    /* width:32px;  */
    width: 14% !important;
    margin-right: 1em !important;
    margin: 6px 0px 0px 0px;
}

#stylized .radio dt {
    width: 20% !important;
    margin-bottom: 1em;
    padding: 0;
}

#stylized .radio dd {
    width: 79% !important;
}




#stylized input[type="checkbox"]+span {
    top: 0px !important;
}

#stylized input[type="checkbox"] {
    margin: 0px !important;
    /* width: 10%; */
    width: auto;
}

#stylized input[type="checkbox"]~label {
    /* width: auto !important; */
    /* width: 50em; */
    width: 75%;
}



/* ----------- Stylized Form Contents  ----------- */
#error {
    margin: 0px 2px 15px 2px;
    padding: 1px 4px;
    border: 1px solid #cd0000;
    background-color: #cd0000;
    font-size: 13px;
    color: #fffffd;
}

#error ul {
    list-style: square;
    padding: 5px;
    font-size: 11px;
}

#error ul li {
    list-style-position: inside;
    line-height: 1.6em;
}

#error ul li strong {
    color: #fffffd;
    /* #e46c6d;*/
}

#error.valid ul li strong {
    color: #93d72e;
}

#confirmation {
    margin: 0px 2px 15px 2px;
    padding: 8px 10px;
    border: 0px solid #cd0000;
    background-color: #5F93B7;
    font-size: 13px;
    color: #fffffd;
}


#stylized {
    border: solid 2px #b7ddf2;
    background: #ebf4fb;
}

#stylized h1 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

#stylized p {
    font-size: 11px;
    color: #666666;
    margin-bottom: 20px;
    border-bottom: solid 1px #b7ddf2;
    padding-bottom: 10px;
}

#stylized dl {
    position: relative;
    line-height: 1em;
}

#stylized dt {
    clear: left;
    float: left;
    width: 200px;
    padding: 4px 0 2px 0;
    text-align: left;
    display: flex;
}

#stylized dd {
    float: left;
    width: 220px;
    margin: 0 0 0px 0;
    padding-left: 6px;
}

#stylized .guidelines {

    float: left;
    width: 400px;
    padding: 4px 0 2px 0;
    text-align: left;
    color: #666666;

    font-size: 11px;
    font-weight: normal;
}

#stylized label {
    display: block;
    font-weight: bold;
    text-align: left;
    width: 190px;
    float: left;

}

#stylized .indent {
    text-indent: 60px;
}

#stylized input {
    float: left;
    font-size: 12px;
    padding: 4px 2px;
    border: solid 1px #aacfe4;
    width: 200px;
    margin: 2px 0 0px 10px !important;
}

#stylized input.error {
    background: #f8dbdb;
    border-color: #e77776;
}

#stylized text.error {
    background: #f8dbdb;
    border-color: #e77776;
}

#stylized text {
    float: left;
    font-size: 12px;
    padding: 4px 2px;
    width: 200px;
    margin: 0px 0 00px 10px;
    color: #666666;
    font-weight: normal;
}

#stylized select {
    float: left;
    color: #666666;
    font-size: 12px;
    padding: 4px 2px;
    border: solid 1px #aacfe4;
    width: 200px;
    margin: 2px 0 0px 10px;
}

#stylized textarea {
    float: left;
    color: #666666;
    font-size: 12px;
    padding: 4px 2px;
    border: solid 1px #aacfe4;
    width: 200px;
    margin: 2px 0 0px 10px;
    font-weight: normal;
}


#stylized .button {
    float: right;
    margin-top: 1em;
    width: 136;
    height: 26px;
    background: #666666
        /*url(img/button.png) no-repeat*/
    ;
    text-align: center;
    line-height: 31px;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: bold;
}

#stylized .longbutton {
    width: 150px;
    margin-top: 1em;
    float: right;
    height: 26px;
    background: #666666;
    text-align: center;
    line-height: 31px;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: bold;
}



#stylized .file {
    border: solid 10px;
}

/*#stylized dd {float:left; width:120px; margin:0 0 0px 0; padding-left:6px;}*/



.Tooltip_Text_container p {
    font-size: 12px !important;
    color: black !important;
    margin-bottom: 20px;
    border-bottom: none !important;
    padding-bottom: 10px;
}

.summary dt {
    width: 300px !important;
}

.summary dl {
    line-height: 0;

}

.summary label {
    width: 300px !important;
}

.summary text {
    padding: 0;
}

.control_file {
    max-height: 400px;
    overflow-y: auto;
    text-wrap: stable !important;
    font-family: monospace;
    background: #EEEEEE;
}

.control_file pre {
  text-wrap: stable !important;
  overflow-wrap: anywhere;
}

/* ----------- Javascript - CSS ----------- */


.form_with_navigation {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
}

.navigation_panel {
    position: sticky;
    top: 10px;
    font-size: small;

    border: solid 2px #b7ddf2;
    background: #ebf4fb;
    padding: 10px 10px 10px 20px;
    margin-left: 10px;
}

.navigation_panel .title {
    white-space: nowrap;
    padding-bottom: 1em;
    display: block;
}

.form_with_navigation .myform {
    flex-grow: 1;
}

.debug {
    background-color: orange !important;
}


/* Credit: https://stackoverflow.com/questions/15857006/ */
.folder {
    width: 15px;
    height: 10px;
    margin: 0 auto;
    margin-top: 5px;
    position: relative;
    background-color: #23CBF4;
    border-radius: 0 1px 1px 1px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.59);
    display: inline-block;
    margin-right: 1em;
}

.folder:before {
    content: '';
    width: 50%;
    height: 1px;
    border-radius: 0 2px 0 0;
    background-color: #23CBF4;
    position: absolute;
    top: -1px;
    left: 0px;
}

/* Colors from http://jlizanab.github.io/FFolders/ */
.folder.cyan .folder.cyan:before {
    background-color: #23CBF4;
}


.folder.pink,
.folder.pink:before {
    background-color: #FF7F92;
}

.folder.yellow,
.folder.yellow:before {
    background-color: #FFBD00;
}

.folder.green,
.folder.green:before {
    background-color: #62DE82;
}

.folder.gray,
.folder.gray:before {
    background-color: #829aa8;
}

/* https://www.w3schools.com/howto/howto_js_accordion.asp */
/* Style the buttons that are used to open and close the accordion panel */
.ror-accordion {
    // text-decoration: underline;
    /* display: inline;
    background-color: #eee;
    color: #444;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border: none;
    outline: none; */
    /* transition: 0.4s; */
}

.ror-accordion .accordion-clicker {
    text-decoration: underline;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.ror-accordion:hover {
    background-color: salmon !important;
    cursor: pointer;
}

.ror-accordion-active {
    background-color: #a7aeb1 !important;
}

/* Style the accordion panel. Note: hidden by default */
.ror-accordion-panel {
    /* padding: 0 18px; */
    background-color: white;
    display: none;
    overflow: hidden;
}


/* ----------- General ----------- */
.warning {
    color: #fa8072;
}

.ror-run-warning {
    background-color: #fa8072;
}

.ror-model-warning {
    background-color: #face72;
}

.ror-warning-blob {
    margin-bottom:0.5em;
    border-radius: 10px;
    padding-left:0.5em;
    padding-right:0.5em;
}
/* ----------- Green banner on submission pages ----------- */
.form_banner {
    background-color: lightgreen;
    border: solid 2px #b7ddf2;
    margin-bottom: 1em;
}

/* ----------- CMS Overrides ----------- */
/* Base layout adjustments */
.usa-section {
    padding-top: 0rem !important;
}

@media (min-width: 40em) {
    .usa-section {
        padding-top: 0rem !important;
    }
}



/* ------------------ ROR Banner and Search Appliance -------------- */


.ror-quick-access-spacer {
    padding: 10px;
}

/* Enhanced banner design */
.ror-quick-access-banner {
    background: linear-gradient(to right, #f7f9fc, #edf2f7);
    border-bottom: 1px solid rgba(203, 213, 224, 0.5);
    padding: 1px 16px;
    padding-bottom: 3px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Logo styling with click indicator */
.ror-quick-access-label {
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
    left: auto;
}

.ror-quick-access-label a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    color: #2c5282;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
}

.ror-quick-access-label a:hover {
    color: #1a365d;
    background-color: rgba(66, 153, 225, 0.05);
    border-color: rgba(66, 153, 225, 0.2);
}

.ror-quick-access-label a .ror-quick-access-external-icon {
    width: 14px;
    height: 14px;
    margin-left: 4px;
    opacity: 0.7;
    transition: all 0.2s ease;
    fill: currentColor;
}

.ror-quick-access-label a:hover .ror-quick-access-external-icon {
    opacity: 1;
    transform: translate(1px, -1px);
}

.ror-logo {
    width: 32px;
    height: auto;
    vertical-align: middle;
}

/* Status counters with improved click indicators */
.ror-quick-access-status-counter {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ror-quick-access-active-jobs-link,
.ror-quick-access-archive-jobs-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #2b6cb0;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
    font-size: 0.9rem;
    border: 1px solid transparent;
    position: relative;
    cursor: pointer;
}

/* Added visual indicators for clickable elements */
.ror-quick-access-active-jobs-link::after,
.ror-quick-access-archive-jobs-link::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 5px;
    left: 12px;
    right: 12px;
    height: 1px;
    background-color: #2b6cb0;
    opacity: 0;
    transition: all 0.2s ease;

}

.ror-quick-access-active-jobs-link:hover::after, .ror-quick-access-archive-jobs-link:hover::after {
    opacity: 0.4;

}

.ror-quick-access-active-jobs-link:hover, .ror-quick-access-archive-jobs-link:hover {
    background-color: rgba(49, 130, 206, 0.05);
    border-color: rgba(49, 130, 206, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.ror-quick-access-counter-number {
    font-weight: 700;
    color: #1a365d;
    margin-right: 4px;
    position: relative;
}

/* Icon styling */
.ror-quick-access-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    fill: currentColor;
}

.ror-quick-access-icon svg {
    width: 100%;
    height: 100%;
}

.ror-quick-access-icon-small {
    width: 14px;
    height: 14px;
}

.ror-quick-access-icon-large {
    width: 22px;
    height: 22px;
}

/* Search input */
.ror-quick-access-run-input-container {
    position: relative;
    width: 320px;
}

#rorQuickAccessRunFilterInput {
    padding: 10px 12px 10px 36px;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background: #FFFFFF;
}

/* Search input */
.ror-quick-access-run-input-container {
    position: relative;
    width: 320px;
}

#rorQuickAccessRunFilterInput {
    padding: 10px 12px 10px 36px;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    background-color: white;
    /* Ensure there's a background color */
}

/* Search icon */
.ror-quick-access-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    width: 16px;
    height: 16px;
    pointer-events: none;
    opacity: 0.7;
    z-index: 3;
}

#rorQuickAccessRunFilterInput:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

#rorQuickAccessRunFilterInput:focus+.ror-quick-access-search-icon {
    color: #4299e1;
}

/* Search loading state */
.ror-quick-access-run-input-container.loading {
    position: relative;
}

.ror-quick-access-run-input-container.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 101%;
    height: 100%;
    background: linear-gradient(90deg, #f0f4f8 0%, #e2e8f0 50%, #f0f4f8 100%);
    background-size: 200% 100%;
    animation: pulse 1.5s infinite;
    border-radius: 6px;
    z-index: 2;
    /* Position above the input */
    pointer-events: none;
}

.ror-quick-access-run-input-container.loading #rorQuickAccessRunFilterInput {
    color: transparent;
    /* Hide text but keep the input */
    user-select: none;
}

.request-dashboard-search-status-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #718096;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 4;
    /* Position above the loading animation */
    pointer-events: none;
}

.rorQuickAccessRunListDropdown {
    position: absolute;
    background-color: white;
    border: 1px solid #e2e8f0;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 10;
    top: calc(100% + 4px);
    max-height: 240px;
    overflow-y: auto;
    display: none;
    text-align: left;
    border-radius: 6px;
}

.rorQuickAccessRunListDropdown div {
    border-bottom: 1px solid #f0f4f8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    position: relative;
    padding-right: 32px;
    /* Space for the arrow icon */
}

/* Visual indicator for clickable dropdown items */
.rorQuickAccessRunListDropdown div .ror-quick-access-arrow-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: all 0.15s ease;
    fill: #718096;
}

.rorQuickAccessRunListDropdown div:hover .ror-quick-access-arrow-icon {
    opacity: 0.7;
    transform: translate(2px, -50%);
}

.rorQuickAccessRunListDropdown div:last-child {
    border-bottom: none;
}

.rorQuickAccessRunListDropdown div:hover {
    background-color: #f7fafc;
}

/* Run status display */
.request-dashboard-run-status-display {
    color: #2d3748;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 38px;
    display: flex;
    align-items: center;
}

.request-dashboard-run-status-display-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #2d3748;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.request-dashboard-run-status-display-link:hover {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* View icon for status link */
.ror-quick-access-eye-icon {
    width: 16px;
    height: 16px;
    opacity: 0;
    margin-left: 4px;
    transition: all 0.2s ease;
    fill: currentColor;
}

.request-dashboard-run-status-display-link:hover .ror-quick-access-eye-icon {
    opacity: 0.7;
}

/* Progress bar styling */
.ror-quick-access-progress-bar-bg {
    background-color: #e2e8f0;
    border-radius: 9999px;
    height: 6px;
    width: 100px;
    display: inline-block;
    overflow: hidden;
}

.ror-quick-access-progress-bar-fill {
    background: linear-gradient(to right, #48bb78, #38a169);
    height: 6px;
    border-radius: 9999px;
    transition: width 0.5s ease-out;
}

.request-dashboard-progress-text {
    font-size: 0.75rem;
    margin-left: 8px;
    color: #2d3748;
    font-weight: 600;
}

/* Tooltip styling */
.ror-quick-access-tooltip-icon {
    position: relative;
    color: #e53e3e;
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.ror-quick-access-info-icon {
    width: 16px;
    height: 16px;
    fill: #e53e3e;
}

.ror-quick-access-tooltip-box {
    display: none;
    position: absolute;
    bottom: 24px;
    /* Position above instead of below */
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #1a202c;
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 100;
    /* Higher z-index to ensure visibility */
    border: 1px solid #e2e8f0;
    max-width: 250px;
    /* Limit width */
    width: max-content;
    /* Use the content's width */
    text-align: center;
    word-wrap: break-word;
    /* Allow text to wrap */
    white-space: normal;
    /* Allow line breaks */
}

/* Change the tooltip arrow to point down */
.ror-quick-access-tooltip-box:before {
    content: "";
    position: absolute;
    bottom: -5px;
    /* Position at bottom */
    left: 50%;
    margin-left: -5px;
    border-width: 5px 5px 0;
    /* Flip the arrow */
    border-style: solid;
    border-color: #fff transparent transparent;
    /* Adjust colors */
}

/* Add responsive behavior for very small screens */
@media (max-width: 480px) {
    .ror-quick-access-tooltip-box {
        left: auto;
        right: 0;
        transform: none;
    }

    .ror-quick-access-tooltip-box:before {
        left: auto;
        right: 10px;
    }
}

/* Loading state styling */
.loading-pulse {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 16px;
}

.loading-pulse:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f4f8 0%, #e2e8f0 50%, #f0f4f8 100%);
    background-size: 200% 100%;
    animation: pulse 1.5s infinite;
    border-radius: 4px;
}

@keyframes pulse {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Status-specific styles */
.ror-quick-access-status-waiting {
    color: #3182ce;
}

.ror-quick-access-status-running .ror-quick-access-progress-bar-fill {
    animation: progress-glow 1.5s ease-out infinite alternate;
}

@keyframes progress-glow {
    from {
        box-shadow: 0 0 0px #48bb78;
    }

    to {
        box-shadow: 0 0 8px #48bb78;
    }
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .ror-quick-access-banner {
        padding: 10px 16px;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .ror-quick-access-label {
        justify-content: center;
        margin-bottom: 8px;
    }

    .ror-quick-access-status-counter {
        justify-content: center;
    }

    .ror-quick-access-run-input-container {
        width: 100%;
    }
}

@media (max-width: 580px) {
    .ror-quick-access-status-counter {
        flex-direction: column;
        gap: 8px;
    }
}


.readonly {
    pointer-events:none;
    background:#E9ECEF;
}

.ror-quick-results-link-icon {
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    border-right: 1px groove #bee5fb;
}

.ror-quick-results-link-icon:hover {
    background-color: #bee5fb;
}

.search-option {
    cursor: pointer;
    flex: 1;
}

