/* ITcontrol extends the installed Elastic skin without copying its styles or scripts. */
@import url("../../elastic/styles/styles.min.css");

:root {
    --itcontrol-ink: #13203b;
    --itcontrol-lime: #00afe3;
    --itcontrol-green: #007099;
    --itcontrol-muted: #657084;
    --itcontrol-line: #dce3ed;
    --itcontrol-surface: #f5f8fc;
    --itcontrol-paper: #fff;
    --itcontrol-selected: #e1f3fa;
}
html.dark-mode {
    --itcontrol-ink: #e4ece9;
    --itcontrol-muted: #a7b9bd;
    --itcontrol-green: #00afe3;
    --itcontrol-line: #30434b;
    --itcontrol-surface: #172a34;
    --itcontrol-paper: #1d323d;
    --itcontrol-selected: #24475a;
}
@media screen {
    body {font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;}
    body:not(.task-login) {background: var(--itcontrol-surface); color: var(--itcontrol-ink);}
    #layout-menu, #layout-menu .popover-header, #taskmenu {background: #13203b; border-color: #263b47;}
    #layout-menu #logo {max-width: 56px; max-height: 52px; width: auto; height: auto; vertical-align: middle;}
    #taskmenu a {color: #c8d6dc; transition: background-color .15s, color .15s;}
    #taskmenu a:hover, html.dark-mode #taskmenu a:hover {background: #243c48; color: #fff;}
    #taskmenu a.selected, html.dark-mode #taskmenu a.selected {background: #00afe3; color: #13203b;}
    #taskmenu a.compose, html.dark-mode #taskmenu a.compose {background: #00afe3; color: #13203b; border-radius: 10px; margin: 12px 7px 16px;}
    #taskmenu .special-buttons a.logout:hover {color: #ffa895;}
    #layout-sidebar, #layout-sidebar > .footer {background: var(--itcontrol-surface); border-color: var(--itcontrol-line);}
    #layout-list, #layout-content {background: var(--itcontrol-paper); border-color: var(--itcontrol-line);}
    #layout > div > .header, #layout > div > .footer, .searchbar, html.dark-mode #layout > div > .header,
    html.dark-mode #layout > div > .footer, html.dark-mode .searchbar {
        background: var(--itcontrol-paper); border-color: var(--itcontrol-line); color: var(--itcontrol-ink);
    }
    .folderlist li > a {color: var(--itcontrol-ink); border-radius: 8px; margin: 3px 8px;}
    .folderlist li > a:hover, html.dark-mode .folderlist li > a:hover {background: var(--itcontrol-selected);}
    .folderlist li.selected > a, html.dark-mode .folderlist li.selected > a {background: var(--itcontrol-selected); color: var(--itcontrol-green); font-weight: 700;}
    .folderlist li.selected > a .unreadcount {background: var(--itcontrol-green); color: var(--itcontrol-paper);}
    .listing li.selected > a, html.dark-mode .listing li.selected > a,
    .listing tr.selected > td, html.dark-mode .listing tr.selected > td {
        background-color: var(--itcontrol-selected); color: var(--itcontrol-ink);
    }
    #messagelist tr.message {border-color: var(--itcontrol-line);}
    #messagelist tr.unread .subject {font-weight: 700;}
    .btn-primary, html.dark-mode .btn-primary {background: #00afe3; border-color: #00afe3; color: #13203b; font-weight: 650; border-radius: 8px;}
    .btn-primary:hover, .btn-primary:focus, html.dark-mode .btn-primary:hover {background: #29c5f2; border-color: #29c5f2; color: #13203b;}
    .btn-primary.disabled, .btn-primary:disabled, html.dark-mode .btn-primary:disabled {background: #c2dbe8; border-color: #c2dbe8; color: #365369;}
    a, .listing a {color: var(--itcontrol-green);}
    .toolbar a.button:not(.disabled):hover, .menu a:not(.disabled):focus-visible {color: var(--itcontrol-green);}
    .form-control:focus, .custom-select:focus {border-color: #007db9; box-shadow: 0 0 0 3px #00afe340;}
    input[type=checkbox], input[type=radio], progress {accent-color: #007099;}
    a:focus-visible, button:focus-visible {outline: 3px solid #007db9; outline-offset: 3px;}
    .quota-widget {color: var(--itcontrol-muted);}
    .ui-dialog, .popover, .dropdown-menu {border-color: var(--itcontrol-line); border-radius: 10px;}
    .task-login #layout {height: auto; min-height: 100vh; min-height: 100dvh; background: #13203b;}
    .task-login #layout-content.itcontrol-login {display: block; width: 100%; min-width: 0; background: #13203b; overflow: auto; text-align: left;}
    .itcontrol-login-scene {display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,.9fr); min-height: 100vh; min-height: 100dvh;}
    .itcontrol-welcome {position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(36px,5vw,80px); color: #fff; background: #13203b; isolation: isolate;}
    .itcontrol-welcome::before {content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -280px; bottom: -260px; border: 90px solid #00afe310; border-radius: 50%;}
    .itcontrol-welcome::after {content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -220px; bottom: -200px; border: 1px solid #00afe340; border-radius: 50%;}
    .itcontrol-wordmark {font-size: 23px; font-weight: 800; letter-spacing: .04em;}
    .itcontrol-wordmark > span {display: block; color: #00afe3; font-size: 10px; letter-spacing: .25em; font-weight: 600; margin-top: 4px;}
    .itcontrol-welcome-copy {padding: 80px 0;}
    .itcontrol-kicker {color: #00afe3; font-size: 10px; letter-spacing: .2em; font-weight: 650;}
    .itcontrol-welcome h1 {margin: 24px 0; padding: 0; color: #fff; font-size: clamp(38px,4.2vw,66px); font-weight: 720; line-height: 1.12; letter-spacing: -.045em;}
    .itcontrol-welcome h1 em {font-style: normal; color: #00afe3;}
    .itcontrol-welcome p {color: #b3c4cb; font-size: 15px; line-height: 1.8;}
    .itcontrol-signature {color: #91a7b1; font-size: 11px;}
    .itcontrol-login-side {display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 40px; background: #f5f8fc; color: #13203b;}
    .itcontrol-login-card {width: 100%; max-width: 440px; padding: 38px; border: 1px solid #dce3ed; border-radius: 22px; background: #fff; box-shadow: 0 12px 60px #13203b08;}
    .task-login #logo {display: block; position: static; top: auto; max-height: none; max-width: none; width: 200px; height: auto; margin: -5px 0 30px -10px;}
    .itcontrol-login-card h2 {font-size: 25px; font-weight: 700; letter-spacing: -.03em; color: #13203b; margin: 0 0 8px;}
    .itcontrol-login-intro {color: #657084; font-size: 13px; line-height: 1.6; margin: 0 0 28px;}
    .task-login #login-form {position: static; top: auto; width: 100%; max-width: none; margin: 0; color: #13203b;}
    .task-login #login-form .form-control, .task-login #login-form .custom-select {height: 48px; border-radius: 8px; background: #f8fbfd; border: 1px solid #dce3ed; color: #13203b; font-size: 14px;}
    .task-login #login-form label {color: #536169; font-size: 12px; font-weight: 600;}
    .task-login #login-form .input-group-text {color: #536169; background: #edf4fa; border-color: #dce3ed;}
    .task-login #rcmloginsubmit {min-height: 48px; font-size: 14px; font-weight: 700; margin-top: 10px;}
    .task-login #login-footer {color: #657084; font-size: 11px; text-align: center; margin-top: 22px;}
    .task-login #login-footer > div {background: #f5f8fc; border-radius: 8px; color: #536169;}
    .itcontrol-login-caption {font-size: 11px; color: #657084; margin: 24px 0 0;}
    html.dark-mode .itcontrol-login-side {background: #10202a;}
    html.dark-mode .itcontrol-login-card {box-shadow: none;}
    html.dark-mode .task-login #login-form .form-control:focus {border-color: #007db9;}
}
@media screen and (max-width: 900px) {
    .itcontrol-login-scene {grid-template-columns: minmax(0,1fr) minmax(360px,1fr);}
    .itcontrol-welcome {padding: 36px;}
    .itcontrol-login-side {padding: 40px 24px;}
    .itcontrol-login-card {padding: 28px;}
    .itcontrol-welcome h1 {font-size: 40px;}
}
@media screen and (max-width: 700px) {
    .itcontrol-login-scene {display: flex; flex-direction: column;}
    .itcontrol-welcome {padding: 22px 24px 24px;}
    .itcontrol-wordmark {font-size: 19px;}
    .itcontrol-wordmark > span {font-size: 9px;}
    .itcontrol-welcome-copy {padding: 25px 0 0;}
    .itcontrol-kicker, .itcontrol-welcome-copy > p, .itcontrol-signature {display: none;}
    .itcontrol-welcome h1 {font-size: 30px; margin: 0; line-height: 1.15;}
    .itcontrol-welcome h1 br {display: none;}
    .itcontrol-welcome h1 em {margin-left: 7px;}
    .itcontrol-login-side {flex: 1; padding: 24px 18px;}
    .itcontrol-login-card {max-width: 440px; padding: 26px; border-radius: 16px;}
    .task-login #logo {width: 170px; margin-bottom: 20px;}
    .itcontrol-login-card h2 {font-size: 23px;}
    .itcontrol-login-intro {margin-bottom: 22px;}
    .itcontrol-login-caption {margin-top: 16px;}
    #taskmenu a.compose {margin: 8px;}
}
@media (prefers-reduced-motion: reduce) {#taskmenu a {transition: none;}}
@media screen {
    .itcontrol-login-scene, .itcontrol-login-side, .itcontrol-login-card, .task-login #login-form {min-width: 0; box-sizing: border-box;}
    .task-login #login-form table, .task-login #login-form tbody {width: 100%; min-width: 0;}
    .task-login #login-form .input-group {min-width: 0;}
    .task-login #login-form .input-group > .form-control {min-width: 0; flex: 1 1 auto; width: 1%;}
    .folderlist li.selected > .treenode > a, html.dark-mode .folderlist li.selected > .treenode > a {background: var(--itcontrol-selected); color: var(--itcontrol-green); font-weight: 700;}
}
@media screen {
    #mailboxlist li.selected, #mailboxlist li.selected > a,
    html.dark-mode #mailboxlist li.selected, html.dark-mode #mailboxlist li.selected > a {background: var(--itcontrol-selected); color: var(--itcontrol-green);}
}
@media screen {
    #taskmenu a.compose {width: calc(100% - 14px); box-sizing: border-box;}
    #layout-menu > .popover-header, #taskmenu .special-buttons {background: #13203b;}
    html.dark-mode #layout-sidebar, html.dark-mode #layout-sidebar > .footer {background: var(--itcontrol-surface); border-color: var(--itcontrol-line);}
    html.dark-mode #layout-list, html.dark-mode #layout-content {background: var(--itcontrol-paper); border-color: var(--itcontrol-line);}
}
@media screen and (max-width: 700px) {#taskmenu a.compose {width: calc(100% - 16px);}}

@media screen {
    .itcontrol-wordmark {align-self: flex-start; padding: 0; background: transparent;}
    #itcontrol-welcome-logo {display: block; width: 190px; max-width: 100%; height: auto; margin: 0;}
}
