/*
  rdweb-theme.css - blueit, 2026-10
  Part 1 = the CustomRDWeb proposal's Content\rdweb.css, copied unchanged (SHA256 0A76BF7E...5EABCB).
  Part 2 = RD Web Access specifics. Used only by Site-rdweb.xsl (server-side rendering).
*/

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
    display: block;
}

* {
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    max-height: 100%;
    font-family: "PT Sans", sans-serif;
    font-size: 13px;
    color: #222;
    background-color: #002060;
    background-image: -ms-linear-gradient(top, #ffffff 0%, #ffffff 33%, #002060 33%, #002060 100%);
    background-image: linear-gradient(to bottom, #ffffff 0%, #ffffff 33%, #002060 33%, #002060 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% 100%;
}

a {
    color: #880000;
    font-weight: bold;
    text-decoration: none;
}

img {
    border: 0;
}

form {
    margin: 0;
}

.rdw-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 60%;
    height: 220px;
    z-index: 0;
}

.rdw-page {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin-top: 60px;
    margin-right: auto;
    margin-bottom: 60px;
    margin-left: auto;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    zoom: 1;
}

.rdw-header {
    padding-top: 20px;
    padding-right: 28px;
    padding-bottom: 18px;
    padding-left: 28px;
    background: #ffffff;
    zoom: 1;
}

.rdw-header:after {
    content: "";
    display: block;
    clear: both;
}

.rdw-header-title {
    float: left;
    zoom: 1;
}

.rdw-header-title:after {
    content: "";
    display: block;
    clear: both;
}

.rdw-header-icon {
    float: left;
    width: 44px;
    height: 44px;
    margin-right: 14px;
}

.rdw-header-text {
    float: left;
}

.rdw-header-text h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #222;
}

.rdw-header-text p {
    margin-top: 2px;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
    color: #555;
    font-size: 12px;
}

.rdw-header-logo {
    float: right;
}

.rdw-header-logo img {
    height: 38px;
    display: block;
}

.rdw-helpbar {
    padding-top: 10px;
    padding-right: 28px;
    padding-bottom: 10px;
    padding-left: 28px;
    background: #ffffff;
    zoom: 1;
}

.rdw-helpbar:after {
    content: "";
    display: block;
    clear: both;
}

.rdw-host {
    float: left;
    font-size: 12px;
    color: #222;
    line-height: 20px;
}

.rdw-help-link,
.rdw-user {
    font-size: 12px;
    color: #222;
    line-height: 20px;
}

.rdw-help-link {
    font-weight: 600;
    text-decoration: none;
}

.rdw-helpbar-actions {
    float: right;
    display: block;
}

.rdw-helpbar-actions > * {
    display: inline-block;
    vertical-align: middle;
    margin-left: 16px;
}

.rdw-helpbar-actions > *:first-child {
    margin-left: 0;
}

.rdw-divider {
    border: 0;
    border-top: 2px solid #002060;
    margin: 0;
    height: 0;
}

.rdw-divider-thin {
    border: 0;
    border-top: 1px solid #d8d8d8;
    margin-top: 18px;
    margin-right: 0;
    margin-bottom: 18px;
    margin-left: 0;
    height: 0;
}

.rdw-main {
    padding: 28px;
    background: #ffffff;
    min-height: 360px;
}

.rdw-login-panel {
    max-width: 440px;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
}

.rdw-field {
    margin-bottom: 10px;
    zoom: 1;
}

.rdw-field:after {
    content: "";
    display: block;
    clear: both;
}

.rdw-field label {
    float: left;
    width: 130px;
    padding-top: 6px;
    padding-right: 12px;
    color: #222;
}

.rdw-field .rdw-input {
    float: left;
    width: 310px;
    max-width: 100%;
}

.rdw-input {
    padding-top: 5px;
    padding-right: 6px;
    padding-bottom: 5px;
    padding-left: 6px;
    border: 0;
    background: #E6E6E6;
    font-size: 13px;
    font-family: "PT Sans", sans-serif;
}

.rdw-input:focus {
    outline: 2px solid #002060;
}

.rdw-passwordchange {
    text-align: right;
    margin-top: 6px;
    margin-right: 0;
    margin-bottom: 14px;
    margin-left: 0;
    font-size: 12px;
    clear: both;
}

.rdw-security {
    margin-top: 18px;
    max-width: 500px;
    text-align: left;
}

.rdw-security-title {
    font-weight: 600;
    color: #222;
}

.rdw-security-warning {
    margin: 0;
    color: #880000;
    font-size: 12px;
    line-height: 1.45;
}

.rdw-error {
    background: #880000;
    color: #ffffff;
    padding-top: 8px;
    padding-right: 12px;
    padding-bottom: 8px;
    padding-left: 12px;
    margin-top: 14px;
    margin-right: 0;
    margin-bottom: 14px;
    margin-left: 0;
    font-size: 12px;
}

.rdw-actions {
    text-align: right;
    margin-top: 18px;
}

.rdw-button {
    background: #002060;
    color: #ffffff;
    padding-top: 8px;
    padding-right: 15px;
    padding-bottom: 8px;
    padding-left: 15px;
    font-size: 13px;
    font-family: "PT Sans", sans-serif;
    cursor: pointer;
    width: 100%;
    border: 0;
}

.rdw-button:hover {
    background: #001A4D;
}

.rdw-button:active {
    background: #001A4D;
}

.rdw-timeoutnotice {
    color: #444;
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
    max-width: 500px;
}

.rdw-footer {
    padding-top: 16px;
    padding-right: 28px;
    padding-bottom: 16px;
    padding-left: 28px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.rdw-footer img {
    height: 50px;
    border: 0;
    vertical-align: middle;
}

.rdw-resources {
    padding-top: 4px;
    padding-right: 0;
    padding-bottom: 4px;
    padding-left: 0;
    zoom: 1;
}

.rdw-resources:after {
    content: "";
    display: block;
    clear: both;
}

.rdw-folder {
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 14px;
    margin-left: 0;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.rdw-icon-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0;
    text-align: left;
    zoom: 1;
}

.rdw-icon-grid:after {
    content: "";
    display: block;
    clear: both;
}

.rdw-icon-item {
    display: inline-block;
    vertical-align: top;
    width: 120px;
    margin-top: 0;
    margin-right: 24px;
    margin-bottom: 24px;
    margin-left: 0;
    font-size: 13px;
}

.rdw-icon-item a {
    display: block;
    text-align: center;
    padding-top: 10px;
    padding-right: 8px;
    padding-bottom: 10px;
    padding-left: 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    color: #222;
}

.rdw-icon-item a:hover {
    border-color: #002060;
    border-radius: 10px;
    background: #f4f7fb;
}

.rdw-icon {
    width: 64px;
    height: 64px;
    display: block;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 8px;
    margin-left: auto;
    border: 0;
}

.rdw-icon-label {
    display: block;
    font-size: 12px;
    word-wrap: break-word;
    word-break: break-all;
}

.rdw-empty {
    padding: 24px;
    color: #555;
}

@media (max-width: 980px) {
    .rdw-page {
        margin: 0;
    }
}

@media (max-width: 720px) {
    .rdw-banner {
        width: 100%;
        height: 90px;
    }

    .rdw-header-title,
    .rdw-header-logo {
        float: none;
    }

    .rdw-header-logo {
        margin-top: 10px;
    }

    .rdw-host,
    .rdw-helpbar-actions {
        float: none;
        display: block;
    }

    .rdw-field label {
        float: none;
        width: auto;
        text-align: left;
        padding-top: 0;
        padding-right: 0;
        margin-bottom: 4px;
        display: block;
    }

    .rdw-field .rdw-input {
        float: none;
        width: 100%;
    }

    .rdw-security,
    .rdw-timeoutnotice {
        max-width: none;
    }

    .rdw-passwordchange {
        text-align: left;
    }

    .rdw-actions {
        text-align: center;
    }

    .rdw-icon-grid {
        text-align: center;
    }

    .rdw-icon-item {
        margin-right: 12px;
        margin-left: 12px;
    }
}


/* =====================================================================================
   Part 2 - RD Web Access specifics (blueit, 2026-10)
   Everything above this line is the proposal's Content\rdweb.css, unchanged.
   Below: only elements that exist in Microsoft's RD Web pages and not in the proposal.
   ===================================================================================== */

/* App list sizing (feedback 6 Oct 2026: window too small, icons too big).
   Wider card, and 48px icons: the RD feed delivers 32px icons, 64px blew them up. */
.rdw-page {
    max-width: 1200px;
}

.rdw-icon-item {
    width: 104px;
    margin-right: 14px;
    margin-bottom: 18px;
}

.rdw-icon-item a {
    padding-top: 8px;
    padding-bottom: 8px;
}

.rdw-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
}

.rdw-icon-label {
    font-weight: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

@media (max-width: 1200px) {
    .rdw-page {
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* Card vertically centred on the screen, footer right below it (feedback 6 Oct 2026, screenshot 19:07).
   min-height (not height): a long app list or a small screen simply makes the page scroll. */
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    max-height: none;
}

.rdw-page {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 0;
}

.rdw-footer {
    width: 100%;
    margin-bottom: 24px;
}

/* Wide screens: scale the whole card and footer (text, icons, fields together), so it doesn't look
   tiny on 2K/4K/ultra-wide screens. Normal screens (up to 1800px wide) are unchanged.
   Bounded (feedback 7 Oct 2026, option B chosen from a live preview): one step of 1.1x, and the card
   stays at most 1100px wide on screen (1000 x 1.1). v7 used 1.25x/1.5x (card up to 1800px), v8 1.25x/1300px;
   both were too big on a 3440x1440 ultra-wide at 125%. */
@media (min-width: 1800px) {
    .rdw-page, .rdw-footer {
        zoom: 1.1;
    }

    .rdw-page {
        max-width: 1000px;
    }
}

/* Help bar on signed-in pages: Microsoft's tab label sits where the proposal shows "host - server" */
.rdw-host .rdw-tab {
    color: #222;
    font-weight: normal;
    text-decoration: none;
    margin-right: 16px;
}

.rdw-host a.rdw-tab {
    font-weight: 600;
}

.rdw-host a.rdw-tab:hover {
    color: #880000;
}

/* Login: Microsoft's messages and IE-only options inside the proposal panel */
.wrng {
    color: #880000;
}

.expl {
    color: #555;
}

#tableLoginDisabled {
    margin: 0 auto 14px auto;
}

.rdw-security table {
    margin-top: 6px;
    font-size: 12px;
}

.rdw-security-title a {
    font-weight: normal;
}

.rdw-error a {
    color: #ffffff;
    text-decoration: underline;
}

/* Password page and "Connect to a remote PC" page keep Microsoft's markup; give them the proposal's controls */
.textInputField {
    padding: 5px 6px;
    border: 0;
    background: #E6E6E6;
    font-size: 13px;
    font-family: "PT Sans", sans-serif;
}

.textInputField:focus {
    outline: 2px solid #002060;
}

.formButton {
    background: #002060;
    color: #ffffff;
    padding: 8px 15px;
    margin-left: 6px;
    font-size: 13px;
    font-family: "PT Sans", sans-serif;
    cursor: pointer;
    border: 0;
}

.formButton:hover,
.formButton:active {
    background: #001A4D;
}

.formButton[disabled] {
    background: #8a97b3;
    cursor: default;
}

form[action^="password.aspx"] > table {
    width: 440px;
    max-width: 100%;
    margin: 0 auto;
}

form[action^="password.aspx"] table table[width] {
    width: 100%;
}

form[action^="password.aspx"] td[width="180"] {
    white-space: nowrap;
    padding-right: 12px;
}

form[action^="password.aspx"] .textInputField {
    width: 100%;
}

/* App list: Microsoft's "searching" placeholder and the IE-only check boxes under the grid */
.tswa_appboard {
    position: relative;
    font-size: 13px;
}

.tswa_PublicCheckboxMore, .tswa_PublicCheckboxLess,
.tswa_ShowOptimizeExperience, .tswa_ShowOptimizeExperienceShiftedUp {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    clear: both;
    font-size: 12px;
    margin-top: 12px;
}

/* Desktops.aspx extra rows */
.rdw-extrarows {
    margin: 0 28px 20px 28px;
}

@media (max-width: 720px) {
    form[action^="password.aspx"] > table {
        width: 100%;
    }

    form[action^="password.aspx"] td[width="180"] {
        white-space: normal;
    }
}
