html {
    background-color: #DDDDDD;
    height: 100%;
}

body {
    height: 100%;
}

a {
    color: #000000;
    text-decoration: none;
}

a:hover {
    color: #333333;
}

h2 {
    margin: 0.4rem 0;
}

h3 {
    font-size: 1.2rem;
    margin: 0.2rem 0;
}

label {
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5rem 2px;
    margin-bottom: 0.4rem;
    display: inline-block;
    min-width: 15rem;
    vertical-align: top;
}

label > div {
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
}

legend {
    font-weight: bold;
    font-size: 1.2rem;
}

#handheld-loading {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: transparent;
    transition: background-color 500ms linear;
    z-index: 5000;
}

#handheld-loading:after {
    border: 10px solid #CCCCCC;
    border-top: 10px solid rgba(60, 60, 60, 0.6);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    content: ' ';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    z-index: 5001;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

[data-role="page"] {
    height: 100%;
    display: none; /* set in jquery.handheld.js */
    flex-direction: column;
}

[data-role="dialog"] {
    background-image: linear-gradient(135deg, #CCCCCC, #AAAAAA);
    padding: 0.5rem;
    margin: 0.5rem;
    border: 1px solid #CCCCCC !important;
    border-radius: 4px;
    text-align: center;
    font-size: 1.2rem;
}

[data-role="popup"] {
    background: rgb(250, 250, 250);
    background: linear-gradient(to right, rgb(255, 255, 255) 0%, rgba(240, 240, 240, 0.9) 100%);
    box-shadow: 4px 0 4px 1px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(150, 150, 150, 0.6);
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 4000;
    padding: 1rem;
}

[data-role="header"] {
    color: #FFFFFF;
    flex-grow: 0 !important;
    height: auto;
    display: flex;
    flex-direction: column;
}


.flex-horizontal {
    flex-grow: 0;
    /*    justify-content: center;*/
    display: flex;
    flex-direction: row;
}

.flex-vertical {
    flex-grow: 0;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

[data-role="header"] h2 {
    text-align: center;
    color: #FFFFFF;
    text-shadow: 0 0 4px rgba(100, 100, 100, 0.8);
    padding: 4px 0;
    margin: 0;
    min-height: 1.4rem;
    line-height: 2rem;
    font-size: 1.4rem;
    flex-grow: 1;
    vertical-align: middle;
}

[data-role="header"] [data-role="controls"] {
    display: flex;
    flex-direction: row;
    min-height: 30px;
}

[data-role="header"] {
    background: linear-gradient(to bottom, #00234B 0%, #27334b 100%);
}

[data-role="header"] [data-role="controls"] {
    background: rgb(108, 173, 223);
}

[data-role="header"] [data-role="controls"] > * {
    margin: 0 !important;
    /*    align-self: center;*/
}

[data-role="header"] [data-role="controls"] > a {
    border-radius: 0 !important;
    margin: 0;
    background: none;
    border: none;
    border-right: 1px solid rgba(150, 150, 150, 0.6);
    box-shadow: none;
    height: 36px;
}

[data-role="navbar"] {
    background: rgba(00, 35, 75, 1);
    background: linear-gradient(to bottom, rgba(100, 125, 135, 1) 0%, rgba(2, 65, 95, 1) 3%, rgba(00, 35, 75, 1) 95%, rgba(40, 45, 65, 0.7) 100%);
}

.inline {
    display: inline-block;
}

select option {
    background: rgba(207, 212, 223, 0.9);
    color: #000000;
}

select, input[type="text"], input[type="password"], input[type="number"], button, textarea {
    padding: 4px 2px !important;
    font-size: 1.0rem !important;
    margin: 0;
    border: 2px solid #CCCCCC;
}

[data-role="navbar"] ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0;
    margin: 0;
}

[data-role="navbar"] li {
    flex-grow: 1;
    padding: 0;
}

[data-role="navbar"] li a {
    display: block;
    text-align: center;
    color: #FFFFFF;
    padding: 4px 2px;
}

[data-role="navbar"] li:hover > a,
[data-role="navbar"] li.active > a {
    color: #000000;
    text-shadow: none !important;
}

[data-role="collapsible"] {
    display: none;
    margin-left: 1rem;
}

[data-role="navbar"] li,
[data-role="button-bar-horizontal"] a,
[data-role="button-bar-vertical"] a,
.button,
button,
select,
input[type="text"],
input[type="password"],
input[type="number"],
textarea {
    font-weight: bold;
    cursor: pointer;
    position: relative;
    padding: 0;
    border-width: 1px;
    border-style: solid;
    font-size: 1.0rem;
}

[data-role="navbar"] li,
.button,
button,
select {
    background-color: #00234B;
    transition: all 200ms;
    color: #FFFFFF;
    border: 1px solid rgba(200, 200, 200, 0.4);
    text-shadow: 0 0 1px rgba(150, 150, 150, 0.6) !important;
    box-shadow: 1px 1px 4px rgba(50, 50, 50, 0.2);
    text-align: center;
}

.dark, [data-style="dark"] li {
    background: #00234B;
    background: linear-gradient(to bottom, rgba(135, 145, 168, 0.9) 0%, rgba(38, 83, 108, 0.9) 10%, rgba(57, 103, 108, 0.9) 100%);
    border: 1px solid rgba(0, 25, 55, 0.6);
}

.full {
    width: 100%;
    display: block !important;
    box-sizing: border-box !important; /* css3 rec */
}

[data-role="button-bar-horizontal"] a,
[data-role="button-bar-vertical"] a {
    background: rgba(00, 35, 75, 1);
    color: #FFFFFF !important;
    text-shadow: 0 0 2px rgba(40, 40, 40, 0.3) !important;
    padding: 4px 2px;
}

.button,
button {
    padding: 0.2rem 1rem !important;
}

[data-role="navbar"] li:hover,
[data-role="button-bar-horizontal"] a:hover,
[data-role="button-bar-vertical"] a:hover,
.button:hover,
button:hover {
    background: rgb(240, 240, 240);
    color: #6CADDF !important;
    text-shadow: none !important;
}

[data-role="navbar"] li[data-style="dark"],
[data-role="button-bar-horizontal"] a[data-style="dark"],
[data-role="button-bar-vertical"] a[data-style="dark"],
.button[data-style="dark"] {
    background: rgba(68, 68, 68, 0.9);
    background: linear-gradient(to bottom, rgba(166, 166, 166, 0.9) 0%, rgba(68, 68, 68, 0.9) 5%, rgba(68, 68, 68, 0.8) 95%, rgba(130, 130, 130, 0.7) 100%);
    color: #FFFFFF !important;
}

[data-role="navbar"] li.active,
[data-role="button-bar-horizontal"] a.active, .button.active,
[data-role="button-bar-vertical"] a.active, .button.active {
    background: rgb(240, 240, 240);
}

.button:link {

}

.button-active {
    cursor: pointer;
}

[data-role="button-bar-horizontal"] a, .button,
[data-role="button-bar-vertical"] a, .button {
    display: inline-block;
    line-height: 2rem;
    vertical-align: middle;
    background-color: #00234B;
    transition: all 200ms;
    color: #FFFFFF;
}

[data-role="button-bar-horizontal"] a, .button {
    margin: 0.5rem 0;
}

[data-role="button-bar-horizontal"] {
    display: flex;
    flex-direction: row;
    margin: 2px 0;
}

[data-role="button-bar-horizontal"] a:first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

[data-role="button-bar-horizontal"] a:last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

[data-role="button-bar-horizontal"] a:not(:last-child):not(:first-child) {
    border-radius: 0 !important;
    border-right-color: rgb(150, 150, 150) !important;
    border-left-color: rgba(180, 180, 180, 0.8) !important;
}

[data-role="button-bar-horizontal"] a:last-child:not(:first-child) {
    border-left-color: rgba(180, 180, 180, 0.8) !important;
}

[data-role="button-bar-horizontal"] a:first-child:not(:last-child) {
    border-right-color: rgb(150, 150, 150) !important;
}

[data-role="button-bar-vertical"] {
    display: flex;
    flex-direction: column;
}

[data-role="button-bar-vertical"] a {
    text-align: center;
    vertical-align: middle;
}

[data-role="button-bar-vertical"] a:first-child {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

[data-role="button-bar-vertical"] a:last-child {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

[data-role="button-bar-vertical"] a:not(:last-child):not(:first-child) {
    border-radius: 0 !important;
    /*border-top-color: rgba(180,180,180,0.8) !important;
    border-bottom-color: rgba(130,130,130,0.8) !important;*/
}

[data-role="button-bar-vertical"] a:last-child:not(:first-child) {
    border-bottom-width: 0;
    /*border-top-color: rgba(180,180,180,0.8) !important;*/
}

[data-role="button-bar-vertical"] a:first-child:not(:last-child) {
    border-top-width: 0;
    /*border-bottom-color: rgba(130,130,130,0.8) !important;*/
}

[data-role="button-bar-vertical"] a:not(:last-child):not(:first-child),
[data-role="button-bar-vertical"] a:last-child:not(:first-child),
[data-role="button-bar-vertical"] a:first-child:not(:last-child) {
    border-left-width: 0;
    border-right-width: 0;
}

.collapse-container {
    margin: 0.5rem 1rem;
}

.collapse-container > .collapse-content {
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
}

.collapse-container > .collapse-header {
    background: rgba(108, 173, 223, 0.9);
    background: linear-gradient(to bottom, rgba(131, 166, 181, 0.9) 0%, rgba(108, 173, 223, 0.9) 5%, rgba(108, 173, 223, 0.8) 95%, rgba(100, 120, 130, 0.7) 100%);
    color: #F3F3F3 !important;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(40, 40, 40, 0.6) !important;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(131, 166, 181, 0.7);
    border-radius: 4px;
}

.collapse-container > .collapse-header:hover {
    background: rgba(108, 173, 223, 0.5);
    border-color: #DDDDDD;
}

.collapse-container > .collapse-header .collapse-inner {
    padding: 6px 4px 6px 26px;
    background-repeat: no-repeat;
    background-position: 6px center;
    border-radius: 6px;
    text-align: left;
}

.collapse-container.collapsed > .collapse-header .collapse-inner {
    background-image: url('../../../gfx/icons-png/arrow-d-white.png');
}

.collapse-container:not(.collapsed) > .collapse-header .collapse-inner {
    background-image: url('../../../gfx/icons-png/arrow-u-white.png');
}

a.disabled {
    opacity: 0.3;
    cursor: default;
}

[data-icon] {
    position: relative;
    padding: 0.2rem 6px 0.2rem 40px !important;
    vertical-align: middle;
    background: #00234B;
    background: linear-gradient(to bottom, #00234B 0%, #27334b 100%);
    display: inline-block;
    text-shadow: 0 0 1px rgba(150, 150, 150, 0.6) !important;
    color: #FFFFFF !important;
    line-height: 31px;
    transition: all 200ms;
}

[data-icon]:before {
    content: '';
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    position: absolute;
    left: 4px;
    width: 31px;
    height: 31px;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1);
    top: 4px;
    transition: all 200ms;
}

[data-icon]:after {
    content: '';
    background-repeat: no-repeat;
    background-position: center center;
    position: absolute;
    left: 4px;
    height: 31px;
    width: 31px;
    top: 4px;
}

[data-icon]:not(.disabled):hover:before {
    opacity: 0.5;
    background: #00234B;
}

[data-icon][data-icon-pos="right"] {
    padding: 4px 36px 4px 4px !important;
}

[data-icon][data-icon-pos="right"]:before,
[data-icon][data-icon-pos="right"]:after {
    left: auto !important;
    right: 4px;
}

[data-icon][data-no-text="true"] {
    padding-left: 32px !important;
}

[data-icon="bars"]:after {
    background-image: url('../../../gfx/icons-png/bars-white.png');
}

[data-icon="home"]:after {
    background-image: url('../../../gfx/icons-png/home-white.png');
}

[data-icon="alert"]:after {
    background-image: url('../../../gfx/icons-png/alert-white.png');
}

[data-icon="caret-r"]:after {
    background-image: url('../../../gfx/icons-png/carat-r-white.png');
}

[data-icon="delete"]:after {
    background-image: url('../../../gfx/icons-png/delete-white.png');
}

[data-icon="power"]:after {
    background-image: url('../../../gfx/icons-png/power-white.png');
}

[data-icon="plus"]:after {
    background-image: url('../../../gfx/icons-png/plus-white.png');
}

[data-icon="tag"]:after {
    background-image: url('../../../gfx/icons-png/tag-white.png');
}

[data-icon="location"]:after {
    background-image: url('../../../gfx/icons-png/location-white.png');
}

[data-icon="back"]:after {
    background-image: url('../../../gfx/icons-png/back-white.png');
}

[data-icon="arrow-u"]:after {
    background-image: url('../../../gfx/icons-png/arrow-u-white.png');
}

[data-icon="arrow-r"]:after {
    background-image: url('../../../gfx/icons-png/arrow-r-white.png');
}

[data-icon="arrow-d"]:after {
    background-image: url('../../../gfx/icons-png/arrow-d-white.png');
}

[data-icon="arrow-l"]:after {
    background-image: url('../../../gfx/icons-png/arrow-l-white.png');
}

[data-icon="star"]:after {
    background-image: url('../../../gfx/icons-png/star-white.png');
}

[data-icon="bullets"]:after {
    background-image: url('../../../gfx/icons-png/bullets-white.png');
}

[data-icon="search"]:after {
    background-image: url('../../../gfx/icons-png/search-white.png');
}

[data-icon="refresh"]:after {
    background-image: url('../../../gfx/icons-png/refresh-white.png');
}

[data-icon="grid"]:after {
    background-image: url('../../../gfx/icons-png/grid-white.png');
}

[data-icon="edit"]:after {
    background-image: url('../../../gfx/icons-png/edit-white.png');
}

[data-role="button-bar-vertical"] [data-role="divider"]:first-child {
    border-top: 1px solid rgba(70, 70, 70, 0.7);
}

[data-role="divider"] {
    background-image: linear-gradient(#6facd5, #497bae) !important;
    padding: 0.2rem !important;
    color: #FFFFFF;
    font-weight: bold;
}

[data-role="listview"] {
    list-style: none;
    padding: 0;
    margin: 0;
}

[data-role="listview"] li {
    padding: 0.2rem;
    font-size: 1.2rem;
    background-image: linear-gradient(#F8F8F8, #FFFFFF);
    border-radius: 4px;
    text-shadow: 0 0 2px rgba(240, 240, 240, 0.4);
    position: relative;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

[data-role="listview"] li > a {
    display: block;
    padding: 0.2rem;
}

[data-role="listview"] li:hover * {
    color: #000000;
}

[data-role="listview"] li:hover {
    background: #EEEEEE;
    cursor: pointer;
}

.right-side {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
}

.toolbar {
    background-image: linear-gradient(#CCCCCC, #C4C4C4);
    padding: 0.5rem;
}

.center {
    text-align: center;
    margin: 0.5rem 0;
}

.right {
    text-align: right;
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 4;
    align-items: center;
    justify-content: flex-end;
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"] + label {
    cursor: pointer;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Chrome/Safari/Opera */
    -khtml-user-select: none; /* Konqueror */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently */
}

input[type="checkbox"] + label::before {
    content: ' ';
    width: 17px;
    height: 17px;
    display: inline-block;
    border: 1px solid #DDDDDD;
    border-radius: 2px;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #FFFFFF;
    cursor: pointer;
    vertical-align: text-top;
    margin-right: 0.2rem;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Chrome/Safari/Opera */
    -khtml-user-select: none; /* Konqueror */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently */
    transition: all 200ms;
}

input[type="checkbox"]:checked + label::before {
    background-image: url('../../../gfx/icons-png/check-white.png');
    background-color: #000000;
}

input[type="checkbox"]:checked + label {
    background: rgb(240, 240, 240);
    color: #6CADDF !important;
}

.flex-columns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.flex-columns > div {
    min-width: 30rem;
}

@media only screen and (max-width: 600px) {
    .flex-columns > div {
        min-width: auto;
        display: block;
    }

    .flex-columns {
        flex-direction: column;
    }
}

.flex-row-right {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.flex-row-right > div:last-child {
    justify-content: flex-end;
    align-items: center;
}

.block {
    background-image: linear-gradient(145deg, #CCCCCC, #EEEEEE);
    padding: 0.5rem;
    margin: 0.5rem;
    border: 1px solid #BBBBBB !important;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}