/* defaults */

html,
body {
    width: 100%;
    height: 100%;
    font-size: var(--font-size);
    font-family: var(--font-style);
    background-color: var(--background-color);
    color: var(--font-color);
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
}

input,
select,
textarea,
button,
input:focus,
select:focus,
textarea:focus,
button:focus,
h1,
h2,
h3,
p,
a {
    outline: none;
    border: none;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
    text-decoration: none;
    color: inherit;
    opacity: 1;
    border-radius: var(--input-radius);
}


/* layout */

.cls-flex {
    display: flex;
}

.cls-flex_grow {
    flex: 1;
}

.cls-flex_top_left {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.cls-flex_top_center {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.cls-flex_top_right {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.cls-flex_middle_left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.cls-flex_middle_center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cls-flex_middle_right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cls-flex_bottom_left {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.cls-flex_bottom_center {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.cls-flex_bottom_right {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}


/* scrollbar */

::-webkit-scrollbar {
    width: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
    background-color: var(--scrollbar-background);
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-color);
}

::-webkit-scrollbar-button {
    height: var(--scrollbar-height);
}

::-webkit-scrollbar-corner {
    background-color: var(--scrollbar-background);
}

/* navigation */

#id-nav {
    width: var(--nav-width);
    height: 100%;
    margin: 0px 0px 0px 0px;
    float: left;
    background-color: var(--nav-background);
    color: var(--nav-color);
    font-size: var(--nav-font-size);
    font-family: var(--nav-font-family);
    border-top-right-radius: var(--nav-radius);
    border-bottom-right-radius: var(--nav-radius);
}

.cls-nav_row:first-child {
    border-top-right-radius: var(--nav-radius);
}

.cls-nav_row:last-child {
    border-bottom-right-radius: var(--nav-radius);
}

.cls-nav_row {
    width: 100%;
    float: left;
}

.cls-nav_row_hover:hover {
    background-color: var(--nav-background-hover);
    cursor: pointer;
    cursor: hand;
}

.cls-nav_row a {
    width: 100%;
    height: 100%;
    float: left;
}

.cls-nav_icon {
    width: var(--nav-icon-width);
    height: 100%;
    float: left;
}

.cls-nav_icon_tall {
    width: auto;
    max-width: 60%;
    max-height: 60%;
}

/* content */

#id-content {
    width: calc(100% - var(--nav-width));
    height: 100%;
    float: left;
}

/* tables */

table {
    border-collapse: collapse;
}

.cls-table_text_left {
    text-align: left;
}

.cls-table_text_center {
    text-align: center;
}

.cls-table_text_right {
    text-align: right;
}

.cls-table_row_light {
    background-color: var(--table-row-light);
}

.cls-table_row_hover:hover {
    background-color: var(--table-row-highlight);
}

.cls-table_row_click{
    cursor: pointer;
    cursor: hand;
}

.cls-table_row_height {
    height: 50px;
}

.cls-table_col_width_5 {
    width: 5%;
}

.cls-table_col_width_10 {
    width: 10%;
}

.cls-table_col_width_15 {
    width: 15%;
}

.cls-table_col_width_20 {
    width: 20%;
}

.cls-table_col_width_25 {
    width: 25%;
}

.cls-table_col_width_30 {
    width: 30%;
}

.cls-table_col_width_35 {
    width: 35%;
}

.cls-table_col_width_40 {
    width: 40%;
}

.cls-table_col_width_45 {
    width: 45%;
}

.cls-table_col_width_50 {
    width: 50%;
}

.cls-table_col_width_55 {
    width: 55%;
}

.cls-table_col_width_60 {
    width: 60%;
}

.cls-table_col_width_65 {
    width: 65%;
}

.cls-table_col_width_70 {
    width: 70%;
}

.cls-table_col_width_75 {
    width: 75%;
}

.cls-table_col_width_80 {
    width: 80%;
}

.cls-table_col_width_85 {
    width: 85%;
}

.cls-table_col_width_90 {
    width: 90%;
}

.cls-table_col_width_95 {
    width: 95%;
}


/* mask */

#id-mask {
    width: var(--mask-width);
    height: var(--mask-height);
    position: absolute;
    top: var(--mask-top);
    left: var(--mask-left);
    z-index: var(--mask-z);
    background-color: var(--mask-color);
}


/* message box */

#id-message {
    width: var(--message-width);
    height: var(--message-height);
    z-index: var(--message-z);
    display: none;
}

#id-message_body {
    width: calc( 80% - ( 2 * var(--message-border-width) ) );
    height: calc( 100% - ( 2 * var(--message-border-width) ) );
    float: left;
    background-color: var(--message-background);
    border-width: var(--message-border-width);
    border-style: var(--message-border-style);
    border-color: var(--message-border-color);
    border-top-left-radius: var(--message-border-radius);
    border-bottom-left-radius: var(--message-border-radius);
}

#id-message_body p {
    padding: 0px var(--message-padding) 0px var(--message-padding);
}

#id-message_button {
    width: 20%;
    height: 100%;
    float: left;
    cursor: pointer;
    cursor: hand;
    color: var(--font-color-dark);
    background-color: var(--color-rocinante);
    border-top-right-radius: var(--message-border-radius);
    border-bottom-right-radius: var(--message-border-radius);
}

#id-message_button:hover {
    background-color: var(--color-rocinante-hover);
}

/* window box */

#id-window {
    z-index: var(--window-z);
    display: none;
    background-color: var(--window-border-color);
    border-width: var(--window-border-width);
    border-style: var(--window-border-style);
    border-color: var(--window-border-color);
    border-radius: var(--window-border-radius);
}

#id-window_head {
    width: calc( 100% - var(--window-head-height) );
    height: var(--window-head-height);
    float: left;
}

#id-window_head p {
    color: var(--font-color-dark);
    font-size: 0.8vw;
    font-weight: bold;
    padding: 0px 10px 0px 10px;
}

#id-window_exit {
    width: var(--window-head-height);
    height: var(--window-head-height);
    float: left;
    font-family: var(--font-style-mono);
    color: var(--font-color-dark);
    font-size: 1.0vw;
    cursor: pointer;
    cursor: hand;
}

#id-window_exit:hover {
    background-color: var(--color-rocinante-hover);
}

#id-window_body {
    width: 100%;
    height: calc( 100% - var(--window-head-height) - var(--window-foot-height) );
    float: left;
    background-color: var(--message-background);
}


/* spinner */

.cls-spinner_h {
    border-width: var(--spinner-width);
    border-style: var(--spinner-style);
    border-color: var(--spinner-color-background);
    border-top-color: var(--spinner-color-foreground);
    border-bottom-color: var(--spinner-color-foreground);
    border-radius: 50%;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    aspect-ratio: 1 / 1;
    height: calc( 100% - ( 2 * var(--spinner-width) ) );
}

.cls-spinner_w {
    border-width: var(--spinner-width);
    border-style: var(--spinner-style);
    border-color: var(--spinner-color-background);
    border-top-color: var(--spinner-color-foreground);
    border-bottom-color: var(--spinner-color-foreground);
    border-radius: 50%;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    aspect-ratio: 1 / 1;
    width: calc( 100% - ( 2 * var(--spinner-width) ) );
}

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

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


/* progress bar */

.cls-progress {
    border-radius: var(--progress-radius);
    border-style: none;
    background-color: var(--progress-color-background);
}

.cls-progress::-webkit-progress-bar,
.cls-progress::-webkit-progress-value,
.cls-progress::-moz-progress-bar {
    background: var(--progress-color-foreground);
    background-color: var(--progress-color-foreground);
    border-radius: var(--progress-radius);
}