:root {
    --bg: #e3e3e3;
    --panel: #efefef;
    --header: #202020;
    --text: #000;
    --muted: #424242;
    --line: #ababab;
    --link: #0356ad;
    --blue: #334772;
    --green: #8ab66b;
    --yellow: #eaba69;
    --red: #de6f6f;
    --soft-blue: #8abbd7;
    --gray: #b7b7b7;
}

* {
    box-sizing: border-box;
    outline: 0;
}

html,
body,
div,
blockquote,
code,
kbd,
span,
table,
tr,
td,
th,
a,
li,
h1,
h2,
h3,
p,
img,
input,
select,
textarea,
form,
button {
    border: 0;
    cursor: default;
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.42857;
    overflow-x: hidden;
}

a,
a:visited {
    color: var(--link);
    cursor: pointer;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

strong,
b {
    font-weight: 700;
}

.breaker,
.break {
    clear: both;
}

#container {
    background: url("/legacy/resources/ksbg.png") repeat;
    min-height: calc(100vh - 100px);
}

#headerHolder {
    background: var(--bg);
}

#header {
    height: 110px;
    margin: auto;
    position: relative;
    width: 970px;
}

#menu {
    float: left;
}

a#logo {
    cursor: pointer;
    display: block;
    float: left;
    height: 72px;
    margin-left: 5px;
    margin-top: 23px;
}

a#logo img {
    cursor: pointer;
    display: block;
}

#host {
    color: #000;
    display: block;
    font-weight: 700;
    position: absolute;
    right: 16px;
    top: 28px;
    z-index: 50;
}

#fullscreen {
    position: absolute;
    right: 16px;
    top: 78px;
    z-index: 50;
}

#fullscreen a {
    color: #000;
    display: inline-flex;
    font-weight: 400;
    gap: 7px;
}

.ks-menu-mark {
    display: inline-block;
    height: 19px;
    position: relative;
    width: 22px;
}

.ks-menu-mark::before,
.ks-menu-mark::after,
.ks-menu-mark {
    background: linear-gradient(#000, #000) 0 0 / 22px 4px no-repeat;
}

.ks-menu-mark::before,
.ks-menu-mark::after {
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    width: 22px;
}

.ks-menu-mark::before {
    top: 7px;
}

.ks-menu-mark::after {
    top: 14px;
}

#main {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: 696px 252px;
    margin: 0 auto;
    margin-top: 16px;
    padding: 0;
    width: 970px;
}

#content {
    line-height: 150%;
    min-width: 0;
    overflow: hidden;
    padding: 0 15px 30px 5px;
    width: 696px;
}

#xhrContent {
    max-width: none;
}

#rightbar {
    margin-top: 0;
    width: 252px;
}

#rightbar .box {
    background: var(--panel);
    margin-bottom: 20px;
    padding: 0 10px 10px 12px;
    width: 252px;
}

#rightbar h3 {
    background: var(--panel);
    border: 0;
    border-radius: 0;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    margin: 0 -10px 5px -12px;
    padding: 9px 12px 5px;
}

#rightbar ul,
#rightbar li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#rightbar ul {
    margin: 5px 0;
}

#rightbar ul li {
    align-items: center;
    display: grid;
    gap: 5px;
    grid-template-columns: minmax(0, 1fr) 12px;
    min-height: 28px;
    padding: 2px 0;
}

#rightbar ul li.ss {
    margin-top: 10px;
}

#rightbar li a {
    color: #444;
}

#rightbar .selected {
    color: var(--link);
    font-weight: 700;
}

#rightbar .line {
    color: #777;
    padding: 6px 3px 4px 0;
}

#content h1 {
    color: #202020;
    font-size: 20px;
    font-weight: 700;
    line-height: 21px;
    margin-bottom: 20px;
}

#content h2 {
    color: #202020;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

#content h3 {
    background: var(--bg);
    color: #606060;
    font-size: 16px;
    font-weight: 700;
    margin: 20px 0;
    padding: 5px 7px 7px;
}

#content h3.noBottom {
    margin-bottom: 5px;
}

#content p {
    margin: 20px 0;
}

#content .box {
    background: var(--panel);
    margin: 12px 0 20px;
    padding: 8px 12px 12px;
}

#content .tBox {
    margin-top: 30px;
    padding-top: 5px;
}

.pref {
    align-items: center;
    background: #eee;
    display: flex;
    margin: 7px 0;
    min-height: 36px;
    padding: 7px;
}

.pref .prefName {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 14px;
}

.pref .iconlink,
.pref .inlineAction {
    display: inline-block;
    flex: 0 0 auto;
    margin-left: 20px;
    margin-top: -2px;
}

.inlineAction {
    border: 0;
    margin: 0;
    padding: 0;
}

.inlineTableAction {
    border: 0;
    display: inline;
    margin: 0;
    padding: 0;
}

.iconTextAction {
    align-items: center;
    appearance: none;
    background: transparent;
    color: var(--link);
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    gap: 3px;
    line-height: 20px;
    padding: 0;
}

.iconTextAction * {
    cursor: pointer;
}

.success {
    background: #089615;
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 10px 13px;
}

.error {
    color: #ac0a0a;
    font-weight: 700;
    padding-top: 10px;
}

.legacyPending {
    max-width: 620px;
}

.legacyPending table.list {
    margin-top: 6px;
}

.legacyPending table.list td:first-child {
    color: #606060;
    width: 130px;
}

.goodTop {
    margin-top: 25px !important;
}

.goodBottomMargin {
    margin-bottom: 10px;
}

.line {
    padding: 10px 3px 10px 0;
}

.bold {
    font-weight: 700;
}

.text,
input[type="text"],
select {
    appearance: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0 !important;
    cursor: text;
    font-size: 14px;
    padding: 7px;
}

.text.middle,
.middle {
    width: 250px;
}

.x3 label {
    display: inline-block;
    width: 140px;
}

select.text {
    background-image: url("/legacy/resources/select.arrow.png");
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 30px 50px;
    cursor: pointer !important;
    padding: 5px 35px 5px 7px;
}

select.small {
    min-width: 60px;
    padding-right: 8px;
}

.uiButton,
.xButton,
a.uiButton:visited,
a.xButton:visited,
button.uiButton {
    appearance: none;
    background: #e3e3e3;
    border: 1px solid #999;
    border-radius: 0 !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    color: #000;
    cursor: pointer;
    display: inline-block;
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: normal;
    margin: 0 6px 10px 0;
    padding: 6px 13px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.uiButton a,
.uiButton a * {
    color: #000;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
}

.xButton,
#container .selected .uiButton,
#container .selected.uiButton {
    background: #4e7599;
    border-color: var(--blue);
    color: #fff;
}

.uiLinkLine {
    margin: 0 0 10px;
}

.iconlink {
    align-items: center;
    display: inline-flex;
    gap: 3px;
    vertical-align: middle;
}

.iconlink * {
    vertical-align: middle;
}

.iconOnly {
    display: inline-block;
    height: 20px;
    line-height: 20px;
    text-decoration: none !important;
    width: 20px;
}

.icon {
    background-image: url("/legacy/baywatch/media/lib-icons.png");
    background-repeat: no-repeat;
    background-size: 400px 400px;
    display: inline-block;
    height: 20px;
    margin-right: 1px;
    width: 20px;
}

.icon-info { background-position: -220px 0; }
.icon-calendar { background-position: 0 0; }
.icon-search { background-position: -180px -20px; }
.icon-time { background-position: -100px 0; }
.icon-plugin { background-position: -140px -20px; }
.icon-sun { background-position: -280px -20px; }
.icon-hidden { background-position: -120px -20px; }
.icon-key { background-position: -40px 0; }
.icon-bubbles { background-position: -140px 0; }
.icon-group { background-position: -160px 0; }
.icon-add { background-position: -260px 0; }
.icon-webpage { background-position: -300px 0; }
.icon-pool { background-position: -120px 0; }
.icon-email { background-position: -80px 0; }
.icon-chart { background-position: -60px -20px; }
.icon-link { background-position: -20px -20px; }
.icon-system { background-position: -160px -20px; }
.icon-cms { background-position: -60px 0; }
.icon-list { background-position: -40px -20px; }
.icon-delete { background-position: -280px 0; }
.icon-pencil { background-position: -320px 0; }
.icon-print { background-position: -200px -20px; }
.icon-left { background-position: -380px 0; }
.icon-right { background-position: 0 -20px; }

.helpyImg {
    display: inline-block;
    height: 12px;
    opacity: 0.75;
    width: 12px;
}

#content table.list {
    border: 0;
    border-collapse: collapse;
    width: 100%;
}

table.list td,
table.list th {
    border: 0 !important;
    padding: 7px;
    text-align: left;
}

table.list td,
table.list th,
table.list * {
    font-size: 12px;
}

table.list tr {
    background: rgba(239, 239, 239, 0.88);
    border-bottom: 6px solid transparent;
}

table.list tr:nth-child(even) {
    background: rgba(227, 227, 227, 0.95);
}

table.list td * {
    vertical-align: middle;
}

.locationList {
    margin-top: 8px;
}

.locationList .locationName {
    color: #000;
    font-size: 14px;
    width: auto;
}

.locationList .locationName span {
    font-size: 14px;
}

.locationList .actions {
    text-align: right;
    white-space: nowrap;
    width: 320px;
}

.locationList .actions .iconlink {
    margin-left: 18px;
}

.locationList .actions a {
    font-size: 14px;
}

.legacyForm {
    max-width: 560px;
}

.legacyForm label {
    color: #777;
}

.legacyForm .uiButton {
    margin-bottom: 0;
}

.legacyEditTable {
    border-collapse: collapse;
    margin: 0;
}

.legacyEditTable td {
    vertical-align: middle;
}

.legacyEditTable .iconrow {
    color: #777;
    min-width: 105px;
    white-space: nowrap;
}

.workAreaForm {
    max-width: 620px;
}

.workAreaList .group {
    white-space: nowrap;
}

.workAreaList .inlineTableAction button {
    vertical-align: baseline;
}

.klicky {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--link);
    cursor: pointer;
    display: inline;
    font: inherit;
    padding: 0;
}

.assignmentForm {
    margin-top: 12px;
}

.assignmentList {
    margin: 8px 0 16px;
}

.userLine {
    background: #eee;
    border: 1px solid #d6d6d6;
    cursor: pointer;
    display: block;
    margin: 4px 0;
    min-height: 24px;
    padding: 7px 10px;
}

.userLine.active {
    background: #d8e7f3;
    border-color: #9ab9d0;
}

.userLine.inactive {
    color: #777;
}

.userLine input {
    margin-right: 8px;
    vertical-align: middle;
}

.assignmentName {
    font-weight: 700;
}

.assignmentMeta {
    color: #666;
    margin-left: 10px;
}

#content table.schedule {
    border: 1px solid #888;
    border-collapse: collapse;
    margin-bottom: 0;
    min-width: 675px;
    width: 100%;
}

table.schedule td,
table.schedule th {
    border: 1px solid #888;
    font-size: 12px;
    height: 56px;
    padding: 5px;
    text-align: center;
    vertical-align: middle;
}

table.schedule td *,
table.schedule th * {
    font-size: 12px;
}

table.schedule td {
    padding: 0;
}

table.schedule td a,
table.schedule th a {
    color: #000;
    display: block;
    height: 100%;
    line-height: 1.12;
    margin: auto;
    padding: 7px 4px;
    text-decoration: none;
    vertical-align: middle;
}

table.schedule th a,
table.schedule thead th {
    color: var(--link);
}

table.schedule th.no {
    color: #000;
    cursor: default;
    text-decoration: none;
    white-space: nowrap;
    width: 88px;
}

table.schedule strong,
table.schedule span {
    display: block;
}

table.schedule strong {
    font-weight: 700;
    margin-bottom: 2px;
}

table td.available,
table td.allcasted,
table td.requestAccepted,
.green,
.available {
    background: var(--green);
}

table td.full,
table td.notcasted,
table td.requestDenied,
.red,
.full,
.notcasted {
    background: var(--red);
}

table td.accepted,
.blue,
.accepted,
.overfilled {
    background: var(--soft-blue);
}

table td.somecasted,
table td.requestInProgress,
table td.requested,
.yellow,
.somecasted,
.requested {
    background: var(--yellow);
}

table td.notpossible,
table td.notpossibleanymore,
.gray,
.notpossible {
    background: var(--gray);
}

.statusList {
    max-width: 460px;
}

.statusList td:first-child {
    text-align: center;
    width: 56px;
}

.statusList span {
    color: #000;
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    min-width: 38px;
    padding: 3px 6px;
}

#footerHolder {
    background: var(--bg);
    color: #fff;
}

#footer {
    color: #fff;
    height: 100px;
    margin: auto;
    padding: 30px;
    width: 970px;
}

@media (max-width: 1040px) {
    #header,
    #footer,
    #main {
        width: calc(100% - 36px);
    }

    #main {
        grid-template-columns: minmax(0, 1fr) 238px;
    }

    #content {
        width: auto;
    }

    #rightbar,
    #rightbar .box {
        width: 238px;
    }

    .locationList .actions {
        width: 290px;
    }

    .locationList .actions .iconlink {
        margin-left: 10px;
    }
}

@media (max-width: 820px) {
    body {
        overflow-x: hidden;
    }

    #header {
        height: auto;
        min-height: 128px;
    }

    #menu {
        float: none;
        margin: 0;
        padding: 18px 14px 0;
    }

    a#logo {
        float: none;
        height: auto;
        margin: 0;
    }

    a#logo img {
        height: auto;
        max-width: min(285px, 78vw);
    }

    #host {
        left: 14px;
        right: auto;
        top: 94px;
    }

    #fullscreen {
        right: 14px;
        top: 92px;
    }

    #main {
        display: block;
        padding: 18px 14px 28px;
        width: 100%;
    }

    #header,
    #footer {
        width: 100%;
    }

    #content {
        padding-bottom: 18px;
    }

    #rightbar,
    #rightbar .box {
        width: 100%;
    }

    #rightbar ul li {
        grid-template-columns: minmax(0, 1fr) 12px;
    }

    #content h1 {
        font-size: 19px;
        line-height: 23px;
    }

    #content p {
        margin: 16px 0;
    }

    #content table.schedule {
        display: block;
        overflow-x: auto;
        width: 100%;
    }

    #content table.schedule tbody,
    #content table.schedule thead {
        min-width: 680px;
    }

    .locationList,
    .locationList tbody,
    .locationList tr,
    .locationList td {
        display: block;
        width: 100%;
    }

    .locationList tr {
        padding: 7px;
    }

    .locationList td {
        padding: 0;
    }

    .locationList .actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
        margin-top: 8px;
        text-align: left;
        white-space: normal;
        width: 100%;
    }

    .locationList .actions .iconlink {
        margin-left: 0;
    }

    .pref .prefName {
        display: block;
        padding-right: 0;
        max-width: none;
    }

    .pref {
        display: block;
    }

    .pref .iconlink,
    .pref .inlineAction {
        float: none;
        margin: 8px 14px 0 0;
    }

    .legacyForm input.text {
        width: 100%;
    }

    .legacyForm select.text {
        width: 100%;
    }

    .legacyEditTable,
    .legacyEditTable tbody,
    .legacyEditTable tr,
    .legacyEditTable td {
        display: block;
        width: 100%;
    }

    .legacyEditTable .iconrow {
        min-width: 0;
        padding-bottom: 0;
    }

    .workAreaList table.list,
    .workAreaList table.list tbody,
    .workAreaList table.list tr,
    .workAreaList table.list td {
        display: block;
        width: 100%;
    }

    .workAreaList table.list thead {
        display: none;
    }

    .workAreaList table.list tr {
        padding: 7px;
    }

    .workAreaList table.list td {
        padding: 3px 0;
    }

    .workAreaList .group {
        white-space: normal;
    }
}

@media (max-width: 520px) {
    #header {
        min-height: 152px;
    }

    #host,
    #fullscreen {
        position: static;
        margin: 10px 14px 0;
    }

    #fullscreen a {
        min-height: 30px;
    }

    #main {
        padding-left: 10px;
        padding-right: 10px;
    }

    .uiButton {
        margin-right: 3px;
        padding-left: 9px;
        padding-right: 9px;
    }

    #rightbar .box {
        padding-left: 10px;
        padding-right: 10px;
    }
}
