﻿/*
    Routing Request Portal skin
    Aligns with CHPortalV2 (banner, black bar, white card, orange accent)
    and TMS2 (Poppins, slate #32373d, blue #2f89fc actions).
*/

html {
    margin: 0;
    background-color: #e7ebef;
    background-image: url(images/banner-cs.png);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100vw 260px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Poppins", "Source Sans Pro", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #32373d;
    background-color: transparent;
}

body[style*="background: none"],
body[style*="background:none"] {
    min-height: 0;
    background-color: #ffffff !important;
    background-image: none !important;
}

h1, h2, h3, h4, h5 {
    font-family: "Poppins", "Source Sans Pro", Arial, sans-serif;
    color: #1a1d21;
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: #2f89fc;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #e67e00;
    text-decoration: underline;
}

.portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 78px;
    padding: 10px 28px;
    background: #111111;
    color: #ffffff;
}

.portal-title {
    flex: 1 1 auto;
    text-align: center;
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.portal-title span {
    display: block;
    margin-bottom: 2px;
    color: #fd7e14;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-logo {
    height: 52px;
    width: auto;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
}

.portal-shell {
    padding: 8px 16px 40px;
}

.portal-card {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 28px 36px;
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    border-top: 4px solid #fd7e14;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.portal-card:has(.Main-content) {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.rr-tabs {
    display: flex;
    gap: 6px;
    margin: 14px 0 16px;
    border-bottom: 2px solid #2f89fc;
}

.rr-tab {
    background: #e7ebef;
    color: #32373d;
    border: none;
    border-radius: 6px 6px 0 0;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
}

.rr-tab.active,
.rr-tab.active:hover {
    background: #2f89fc;
    color: #ffffff;
}

.rr-tab:hover {
    background: #d5dbe3;
    color: #32373d;
}

.rr-panel {
    display: none;
    margin-bottom: 12px;
}

#rrTab1 {
    display: block;
}

.rr-next {
    margin-top: 12px;
}

.rr-actions {
    margin: 8px 0 16px;
}

.Main-content {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 18px 20px 28px;
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    border-top: 4px solid #fd7e14;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.portal-footer {
    background: #111111;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    padding: 12px 16px 14px;
    font-size: 13px;
}

.portal-footer a {
    color: #fd7e14;
}

div.backgrnd {
    opacity: 1;
    filter: alpha(opacity=100);
}

#header-container,
#content-container,
#footer,
#mainnav {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    background: transparent;
    color: inherit;
}

#content-container td,
#header-container td {
    vertical-align: top;
}

#menuNew {
    width: 100%;
}

#sitename {
    font-size: 1.4em;
    margin: 0;
    color: #ffffff;
    padding: 0;
    height: auto;
}

#dataPageHeader,
#dataPageHeaderAlt,
#dataPageHeaderAlt2 {
    background-color: #32373d;
    color: #ffffff;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    width: auto;
    max-width: none;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

#listData,
#listDataMaint,
#listDataMaint2 {
    overflow: auto;
    height: auto;
    max-height: none;
}

.Controls table {
    width: 100%;
    border: 1px solid #dee2e6;
}

.Controls th {
    font-size: 13px;
    font-family: "Poppins", "Source Sans Pro", Arial, sans-serif;
    border: 1px solid #2b3036;
    white-space: nowrap;
    background-color: #32373d;
    color: #ffffff;
    text-align: left;
    padding: 6px 8px;
}

.Controls td {
    font-size: 13px;
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    color: #212529;
}

.menuFixer {
    z-index: 200;
}

.portal-card table[border="1"] {
    width: 100%;
    border: 1px solid #dee2e6;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.portal-card table[border="1"] td,
.portal-card table[border="1"] th {
    border: 1px solid #dee2e6;
    padding: 6px 8px;
    vertical-align: middle;
}

td[style*="background-color: red"],
td[style*="background-color:red"],
td[style*="background-color: Red"],
td[style*="background-color:Red"],
th[style*="background-color: red"],
th[style*="background-color:red"],
th[style*="background-color: Red"],
th[style*="background-color:Red"],
tr[style*="background-color: red"],
tr[style*="background-color:red"],
tr[style*="background-color: Red"],
tr[style*="background-color:Red"] {
    background-color: #32373d !important;
    color: #ffffff !important;
}

td[style*="background-color: yellow"],
td[style*="background-color:yellow"],
td[style*="background-color: Yellow"],
td[style*="background-color:Yellow"],
tr[style*="background-color: yellow"],
tr[style*="background-color:yellow"],
tr[style*="background-color: Yellow"],
tr[style*="background-color:Yellow"] {
    background-color: #fff4e0 !important;
    color: #32373d !important;
    box-shadow: inset 3px 0 0 #fd7e14;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea,
select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 5px 8px;
    font-family: "Poppins", "Source Sans Pro", Arial, sans-serif;
    font-size: 14px;
    color: #212529;
    background: #ffffff;
    box-sizing: border-box;
}

input[readonly],
textarea[readonly] {
    background: #f1f3f5;
    color: #495057;
}

input[type="submit"],
input[type="button"],
button {
    font-family: "Poppins", "Source Sans Pro", Arial, sans-serif;
    background: #2f89fc;
    color: #ffffff;
    border: 1px solid #2f89fc;
    border-radius: 4px;
    padding: 6px 14px;
    cursor: pointer;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
    background: #1b74e4;
    border-color: #1b74e4;
}

.portal-card div[id$="ValidationSummary1"] {
    background: #fff4e0;
    border-left: 4px solid #fd7e14;
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 4px;
}

.busy-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.busy-overlay .loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #2f89fc;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    animation: portal-spin 1s linear infinite;
}

@keyframes portal-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 800px) {
    .portal-header {
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px;
    }

    .portal-title {
        order: -1;
        flex: 1 1 100%;
        font-size: 18px;
        margin-bottom: 8px;
    }

    .portal-card {
        padding: 16px;
    }
}
