/* Generic styles and classes */
* { box-sizing: border-box; }
body, html { margin: 0; padding: 0; height: 100%; }
body { position: relative; font-family: sans-serif; background-color: #dedede; }
input,
textarea { border: 1px solid #d6d6d6; border-radius: 0; color: #707070; padding: 0.8em 1em; font-family: sans-serif; }
input::placeholder { color: #c5c5c5; font-style: italic; }
button, select { border: 1px solid #d6d6d6; color: #696969; padding: 5px 10px; height: 40px; font-size: 12px; }
button { border-radius: 20px; background-color: #f0f0f0; }
button:hover { background-color: #e0e0e0; transition: all .25s ease-in-out; }
button[disabled],
button[disabled]:hover { opacity: 0.5; background-color: #f0f0f0; }

.hidden { display: none !important; }
.center { text-align: center; }
.left { text-align: left; }
.right { text-align: right; }

.r90 { transform: rotate(90deg); }
.r180 { transform: rotate(180deg); }
.r270 { transform: rotate(270deg); }

/* Application layout styles */
#app-header1 { position: fixed; top: 0px; left: 0; right: 0; height: 60px; border-radius: 0; padding: 0.8em; background-color: #5db1d3; color: #fff; font-size: 22px; font-weight: bold; z-index: 2; }
#app-name { float: left; }
#app-user { position: absolute; top: 0; right: 0; font-size: 19px; list-style: none; padding: 0; margin: 0; height: 60px; line-height: 60px; }
#app-user li { margin: 0; padding: 0 63px 0 20px; transition: all .25s ease-in-out; }
.app-user-menu-visible #app-user li,
#app-user:hover li { background-color: #4a91ad; }
#app-user-info { margin-top: 6px; }
#app-user-name { margin-left: 0.2em; margin-right: 1.5em; -moz-user-select: none; }
.app-user-menu { position: absolute; top: 60px; right: 0; min-width: 10em; display: none; padding: 0; margin: 0; list-style: none; background-color: #4a91ad; color: #f0f0f0; border: none; z-index: 2; }
.app-user-menu li { font-weight: normal; }
.app-user-menu li:hover { background-color: #42839f; }
.app-user-menu a { display: block; text-decoration: none; color: #f0f0f0; padding: 0.7em 1.4em; font-size: 14px; cursor: default; }
.app-user-menu a::before { content: '\2022  '; }
.app-user-menu-visible .app-user-menu { display: inline-block; }

#app-header2 { position: fixed; top: 60px; left: 0; right: 0; height: 60px; border-radius: 0; background-color: #666666; color: #fff; z-index: 1; }
#app-header2-spacer { height: 60px; width: 190px; background-color: #4a91ad; float: left; }
#app-header2-title  { height: 60px; width: 100%; padding-left: 230px; font-size: 1.1em; color: #fff; line-height: 60px; }
#app-header2-title a { text-decoration: none; color: #ebebeb; }
#app-header2-actions { float: right; margin-right: 40px; }

h1 { display: inline-block; margin: 0; font-weight: bold; font-size: 19px; color: #f5f5f5; }
h2 { display: inline-block; margin: 0 0 1em 0; font-weight: bold; font-size: 19px; color: #696969; }


nav { position: fixed; top: 120px; bottom: 0; overflow-y: auto; width: 190px; margin: 0; padding: 0; background-color: #5db1d3; }
#app-nav-menu { padding: 10px 20px; background-color: #5db1d3; }
#app-nav-menu a { text-decoration: none; cursor: default; }
.app-nav-item { border-radius: 10px; width: 100%; margin: 20px 0; height: 100px; background-color: #fafafa; color: #696969; text-align: center; padding-top: 1em; transition: all .25s ease-in-out; }
.app-nav-item:hover { background-color: #4a91ad; color: #fafafa; }
.app-nav-item.selected { background-color: #4a91ad; color: #fafafa; }
.app-nav-item div { text-align: center; font-size: 2.5em; margin-top: 0; margin-bottom: 0.2em; }
.app-nav-item label { display: block; font-size: 0.9em; text-transform: lowercase; }

main { width: 100%; padding: 160px 40px 40px 230px; }


/* Application component styles */
.block { padding: 20px; background-color: #fafafa; border-radius: 10px; border: none; margin-bottom: 30px; }
.block-actions { float: right; }
.block-actions button { text-transform: lowercase; border-radius: 15px; height: 30px; }

fieldset { border: none; padding: 0; }
.fs-hidden { display: none; }
.fs-field label { display: block; font-size: 11px; font-weight: bold; color: #5db1d3; margin: 0.2em 0 0.4em 0; text-transform: lowercase; }
.fs-field input,
.fs-field textarea { width: 100%; }
.fs-field input[type="radio"],
.fs-field input[type="checkbox"] { width: auto; }
.fs-required:not(.fs-bool) label::after{ content: ' *'; }
.fs-field.fs-int input,
.fs-field.fs-float input,
.fs-field.fs-date input,
.fs-field input.small,
.fs-field select.small  { width: 25%; min-width: 96px; }
.fs-field input.medium,
.fs-field select.medium { width: 50%; min-width: 192px; }
.fs-field input.large,
.fs-field select.large  { width: 75%; min-width: 288px; }
.fs-field .color-sample { display: inline-block; width: 60px; height: 40px; vertical-align: top; border: #d6d6d6; margin-left: 2px; }

.fs-resource-value { position: relative; }
.fs-resource-value button { position: absolute; top: 4px; background-color: #fff; border: none; height: 30px; }
.fs-resource-create { right: 38px; }
.fs-resource-select { right: 4px; }
.fs-resource-description{ background-color: #fff; border: 1px solid #d6d6d6; margin-bottom: 1em; padding: 10px; font-size: 13px; color: #707070; }

.fs-actions { text-align: right; }
button.fs-action-submit,
.fs-action-submit[disabled]:hover { height: 40px; padding: 0 2em; background-color: #ff7c00; color: #fff; border-radius: 20px; border: none; font-size: 17px; }
.fs-action-submit:hover { background-color: #d13b00; }
.fs-action-submit span { font-size: 1.2em; font-weight: normal; margin-left: -0.5em; margin-right: 0.5em; float: left; }

.column { width: 50%; float: left; }
.column-left { padding-right: 20px; }
.column-right { padding-left: 20px; }

.messages { font-size: 13px; padding: 1em 2em; border-radius: 20px; margin-bottom: 10px; }
.messages-error { background-color: #fed0d2; color: #d90300; }
.messages-success { background-color: #bae7bc; color: #008900; }


@media (max-width: 1199px) {
    .hmd { display: none; }
}

@media (max-width: 991px) {
    .hsm { display: none; }
    #app-nav-menu { padding: 5px 10px; }
    .app-nav-item { margin: 10px 0; }
    #app-header2 { height: 40px; }
    nav { width: 140px; top: 100px; }
    #app-header2-spacer { width: 140px; height: 40px; }
    #app-header2-title { padding-left: 160px; line-height: 40px; }
    main { padding: 120px 20px 20px 160px; }
    table td.col-actions span:last-child { display: none; }

    .column { width: 100%; }
    .column-left { padding-right: 0px; }
    .column-right { padding-left: 0px; }
}

@media (max-width: 767px) {
    .hxs { display: none; }
}