/* =============================================
   Order Report Redesign — clientorderreport.cfm
   Scoped to .order-report-page wrapper
   Matches Figma: teal text headings, 3-col grid,
   clean inputs, section dividers
   ============================================= */

/* ---------- Google Font (if not already loaded) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;600;700&display=swap');

/* ---------- Page Wrapper ---------- */
.order-report-page {
    font-family: 'Noto Sans', sans-serif;
    background-color: #FFFFFF;
    padding: 24px 32px 32px !important;
    border: none !important;
    border-radius: 0 !important;
    max-width: none !important;
    min-height: calc(100vh - 100px);
}

/* Override global #maincontent max-width/margin constraints */
#maincontent.order-report-page {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    background-color: #ffffff !important;
    box-sizing: border-box;
}

/* ---------- Hide legacy centered H1 and H4 ---------- */
.order-report-page > h1.center,
.order-report-page > h4 {
    display: none;
}

/* ---------- Section Headings (teal text, no background) ---------- */
.order-report-page .task_container {
    width: 100%;
    margin: 0;
    clear: both;
}
.order-report-page .task_container h2 {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    color: #044D66;
    font-family: 'Noto Sans', sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.01em;
    padding: 8px 0 4px 0;
    margin: 6px 0 2px 0;
    text-align: left;
    text-shadow: none;
}

/* ---------- Section Spacing ---------- */
.order-report-page .section {
    clear: both;
    padding: 4px 0 8px 0;
    margin: 0;
}
.order-report-page br.responsivebreak {
    display: none;
}

.order-report-page p {
    color: #162029;
}

/* ---------- 3-Column Grid Override ---------- */
/* Override span_1_of_5 → ~1/3 within the redesign context */
.order-report-page .col.span_1_of_5 {
    width: 32.26%;
}
/* span_1_of_3 → 1/3 (exact match to grid) */
.order-report-page .col.span_1_of_3 {
    width: 32.26%;
}
/* span_1_of_2 → 1/2 */
.order-report-page .col.span_1_of_2 {
    width: 49.2%;
}
/* Ensure float cols have proper spacing */
.order-report-page .col {
    margin: 0 0 1% 1%;
    display: block;
    float: left;
}
.order-report-page .col:first-child {
    margin-left: 0;
}
.order-report-page .group {
    zoom: 1;
    margin-bottom: 4px;
}
.order-report-page .group:after {
    content: "";
    display: table;
    clear: both;
}

/* ---------- Labels ---------- */
.order-report-page label,
.order-report-page legend {
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #394754;
    margin: 10px 0 4px 0;
    display: block;
    cursor: text;
    line-height: 1.4;
}
.order-report-page label #error,
.order-report-page label .errorspan, .error {
    color: #B33706 !important;
    font-size: 13px;
    font-weight: 400;
}

/* ---------- Inputs & Selects ---------- */
.order-report-page input[type="text"],
.order-report-page input[type="email"],
.order-report-page input[type="tel"],
.order-report-page input[type="number"],
.order-report-page input[type="search"],
.order-report-page input[type="password"],
.order-report-page textarea {
    width: 100%;
    padding: 9px;
    border: 1px solid #c6ced5;
    border-radius: 6px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #162029;
    background: #ffffff;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    height: 38px;
}
.order-report-page input:focus,
.order-report-page textarea:focus,
.order-report-page select:focus {
    border-color: #0d75b0;
    box-shadow: 0 0 0 3px rgba(13, 117, 176, 0.12);
    outline: none;
}
.order-report-page select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #c6ced5;
    border-radius: 6px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #162029;
    background: #ffffff;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-sizing: border-box;
    cursor: pointer;
    appearance: auto;
}

.order-report-page select.error, .order-report-page input.error {
    color: #162029 !important;
    background: #ffffff !important;
    border-color: #FF504B !important;
}
.order-report-page input.error:focus,
.order-report-page textarea.error:focus,
.order-report-page select.error:focus {
    border-color: #FF7572 !important;
    box-shadow: 0 0 0 3px rgba(255, 80, 75, 0.15) !important;
    outline: none;
}

/* ---------- Placeholder color ---------- */
.order-report-page input::placeholder,
.order-report-page textarea::placeholder {
    color: #a0aab4;
    font-weight: 400;
}

/* ---------- Section Divider ---------- */
.order-report-divider {
    border: none;
    border-top: 1px solid #dfe3e8;
    margin: 20px 0 12px 0;
}

/* ---------- Required Field Legend ---------- */
.order-report-page .section > label:first-child,
.order-report-page .section > label:nth-child(2) {
    font-weight: 400;
    font-size: 13px;
    color: #607184;
}

/* ---------- Error Messages ---------- */
.order-report-page .errormessages10,
.order-report-page .Errormessagesbold10 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 13px;
}

/* ---------- Hyperlinks ---------- */
.order-report-page a,
.order-report-page a:visited {
    color: #10689D;
    text-decoration: none;
}

.order-report-page a:hover,
.order-report-page a:focus,
.order-report-page a:active {
    color: #10689D;
    text-decoration: none;
}

/* ---------- caution box ---------- */
.order-report-page p.errormessages10 {
    background: #FFE9C3;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 8px;
}

/* ---------- Special Instructions section ---------- */
.order-report-page textarea[name="SpecialInstructions"] {
    min-height: 60px;
    resize: vertical;
}

/* ---------- Submit Buttons (mri-button style) ---------- */
.order-report-page input[type="submit"],
.order-report-page .Button4 {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-family: 'Noto Sans', sans-serif;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.25rem;
    padding: 4px 16px;
    border-width: 1px;
    border-style: solid;
    border-radius: 9999px;
    cursor: pointer;
    white-space: nowrap;
    width: auto;
    -webkit-user-select: none;
    user-select: none;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    transition: background-color .25s 0s cubic-bezier(0,1,1,1),
                color .25s 0s cubic-bezier(0,1,1,1),
                border .25s 0s cubic-bezier(0,1,1,1);
    /* default (secondary) style */
    background-color: #ffffff;
    color: #162029;
    border-color: #607184;
}
.order-report-page input[type="submit"]:hover {
    background-color: rgba(16, 104, 157, 0.1);
    color: #162029;
    border-color: #607184;
}
.order-report-page input[type="submit"]:active {
    background-color: rgba(16, 104, 157, 0.2);
    color: #162029;
    border-color: #607184;
}
.order-report-page input[type="submit"]:focus {
    box-shadow: 0 0 0 2px #3a9dd2;
    outline: none;
}
/* Primary button: Continue */
.order-report-page input[type="submit"][name="Continue"] {
    background-color: #0D75B0;
    color: #fff;
    border-color: transparent;
}
.order-report-page input[type="submit"][name="Continue"]:hover {
    background-color: #0582C3;
    color: #fff;
    border-color: transparent;
}
.order-report-page input[type="submit"][name="Continue"]:active {
    background-color: #10689D;
    color: #fff;
    border-color: transparent;
}
.order-report-page input[type="submit"][name="Continue"]:focus {
    box-shadow: 0 0 0 2px #10689D;
}

/* ---------- Checkbox/radio keep original sizing ---------- */
.order-report-page input[type="checkbox"],
.order-report-page input[type="radio"] {
    width: 22px;
    padding: 0;
    border: none;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

/* ---------- MRI-standard checkbox ---------- */
.order-report-page input[type="checkbox"].mri-checkbox {
    -webkit-appearance: none;
    appearance: none;
    background: #fff;
    border: 2px solid #9db3c5 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    cursor: pointer;
    height: 20px !important;
    margin: 0 6px 0 0 !important;
    padding: 0 !important;
    position: relative;
    vertical-align: middle !important;
    width: 20px !important;
    flex-shrink: 0;
}

.order-report-page input[type="checkbox"].mri-checkbox:checked {
    background-color: #fff !important;
    border-color: #909FAE !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23162029' d='M7.629 14.571L3.146 9.968l1.453-1.496 3.03 3.12 6.772-6.977 1.453 1.496z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px 16px !important;
}

.order-report-page input[type="checkbox"].mri-checkbox:focus {
    outline: none;
    box-shadow: none;
}

/* ---------- Hidden inputs stay hidden ---------- */
.order-report-page input[type="hidden"] {
    display: none;
}

/* ---------- Responsive: Tablet ---------- */
@media only screen and (max-width: 900px) {
    .order-report-page {
        padding: 16px 20px 24px !important;
    }
    .order-report-page .col.span_1_of_5,
    .order-report-page .col.span_4_of_12,
    .order-report-page .col.span_3_of_12,
    .order-report-page .col.span_1_of_12.suffix {
        width: 49.2%;
    }
}

/* ---------- Responsive: Mobile ---------- */
@media only screen and (max-width: 640px) {
    .order-report-page {
        padding: 12px 16px 20px !important;
    }
    .order-report-page .col.span_1_of_5,
    .order-report-page .col.span_4_of_12,
    .order-report-page .col.span_3_of_12,
    .order-report-page .col.span_1_of_12.suffix,
    .order-report-page .col.span_1_of_3,
    .order-report-page .col.span_6_of_12,
    .order-report-page .col.span_1_of_2 {
        width: 100%;
        margin-left: 0;
    }
    .order-report-page .task_container h2 {
        font-size: 19px;
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #162029 !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  transition: background-color 9999s ease-out 0s !important;
}

.order-report-page select.custom-dropdown-source {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.order-report-page .custom-dropdown {
    width: 100%;
    min-width: max-content;
    position: relative;
    display: block;
    font-family: "Noto Sans", sans-serif;
    font-size: 14px;
}

.order-report-page .dropdown-selected {
    position: relative;
    display: flex;
    align-items: center;
    height: 38px;
    padding: 9px 40px 9px 12px;
    border: 1px solid #c6ced5;
    cursor: pointer;
    background-color: #ffffff;
    border-radius: 6px;
    color: #162029;
    line-height: 1.25;
    box-sizing: border-box;
    overflow: hidden;
    gap: 8px;
}

.order-report-page .dropdown-selected > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.order-report-page .dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #c6ced5;
    display: none;
    position: absolute;
    width: max-content;
    min-width: 100%;
    background: #ffffff;
    border-radius: 6px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 9999;
}

.order-report-page .dropdown-list li {
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #162029;
}

.order-report-page .dropdown-list li:hover,
.order-report-page .dropdown-list li.focused {
    background-color: #3A9DD233;
    color: #394754;
}

.order-report-page .custom-dropdown.open .dropdown-list {
    display: block;
}

.order-report-page .custom-dropdown.open .dropdown-selected, .order-report-page .custom-dropdown.open .dropdown-selected:focus {
    border-color: #10689d !important;
}

.order-report-page .dropdown-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    line-height: 0;
    display: flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
}

.order-report-page .dropdown-icon svg {
    display: block;
}

.order-report-page .custom-dropdown:focus .dropdown-selected,
.order-report-page .custom-dropdown:focus-visible .dropdown-selected,
.order-report-page .custom-dropdown:focus-within .dropdown-selected {
    border-color: #10689d !important;
    outline: none !important;
}

.order-report-page .custom-dropdown:focus,
.order-report-page .custom-dropdown:focus-visible {
    outline: none !important;
}

/* ---------- Section-select print page ---------- */
.section-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #162029;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    margin: 6px 0;
    cursor: pointer;
    line-height: 1.4;
}
.section-checks {
    columns: 2;
    column-gap: 32px;
    margin-top: 8px;
}
@media only screen and (max-width: 640px) {
    .section-checks { columns: 1; }
}
