html {
    line-height: 1.15;
    /* 1 */
    -webkit-text-size-adjust: 100%;
    /* 2 */
}

body {
    margin: 0;
}

main {
    display: block;
}

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

hr {
    box-sizing: content-box;
    /* 1 */
    height: 0;
    /* 1 */
    overflow: visible;
    /* 2 */
}

pre {
    font-family: monospace, monospace;
    /* 1 */
    font-size: 1em;
    /* 2 */
}

a {
    background-color: transparent;
}

abbr[title] {
    border-bottom: none;
    /* 1 */
    text-decoration: underline;
    /* 2 */
    text-decoration: underline dotted;
    /* 2 */
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    /* 1 */
    font-size: 1em;
    /* 2 */
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

img {
    border-style: none;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    /* 1 */
    font-size: 100%;
    /* 1 */
    line-height: 1.15;
    /* 1 */
    margin: 0;
    /* 2 */
}

button,
input {
    /* 1 */
    overflow: visible;
}

button,
select {
    /* 1 */
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    box-sizing: border-box;
    /* 1 */
    color: inherit;
    /* 2 */
    display: table;
    /* 1 */
    max-width: 100%;
    /* 1 */
    padding: 0;
    /* 3 */
    white-space: normal;
    /* 1 */
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    /* 1 */
    padding: 0;
    /* 2 */
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    /* 1 */
    outline-offset: -2px;
    /* 2 */
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    /* 1 */
    font: inherit;
    /* 2 */
}

details {
    display: block;
}

summary {
    display: list-item;
}

template {
    display: none;
}

[hidden] {
    display: none;
}


/* TYPO */

@font-face {
    src: url('../assets/fonts/Roboto-Bold.ttf');
    font-weight: 700;
    font-family: Roboto;
}

@font-face {
    src: url('../assets/fonts/Roboto-Regular.ttf');
    font-weight: 400;
    font-family: Roboto;
}

@font-face {
    src: url('../assets/fonts/Roboto-Light.ttf');
    font-weight: 300;
    font-family: Roboto;
}

body,
html {
    font-size: 10px;
}

.big-header {
    font-size: 2.4rem;
    color: #797979;
    font-weight: 300;
    text-shadow: 1px 1px 2px #000;
}


/* GENERAL */

body,
html {
    display: block;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    font-family: Roboto;
}

html {
    background: radial-gradient(circle farthest-side at 0% 55%, #4c0063, #003b58, #00202f);
}

.pattern {
    background: radial-gradient(circle farthest-side at 0% 55%, #4c0063, #003b58, #00202f);
}

#pattern {
    background: url(../assets/images/bitmap.png) top left repeat;
    z-index: -1;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-size: 14%;
    opacity: 0.4;
}

ul,
ol {
    margin: 0;
}

.info-error,
.info-success {
    width: 100%;
    text-align: center;
    font-size: 1.5em;
    font-weight: 300;
    list-style: none;
    padding: 0;
}

.info-error li,
.info-success li {
    color: #FFF;
    padding: 0.5em 0;
}

.info-error li {
    background: #d62728;
}

.info-success li {
    background: #449d44;
}

.centered {
    display: inline-block;
    margin-right: auto;
    margin-left: auto;
}

#desktop {
    background: #FFF;
    padding: 15px;
    margin-left: 1px;
    overflow: hidden;
}

#top-actions {
    margin: 15px 0;
}

.action-link {
    text-decoration: underline;
    cursor: pointer;
}

.critical-action {
    color: #d62728;
}


/* LAYOUT */

table {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
}

table th {
    font-weight: 700;
    font-size: 1.2em;
    border: 1px solid #ccc;
}

table td,
table th {
    padding: 10px 5px;
    text-align: left;
}

table tbody tr {
    transition: background 0.2s ease;
}

table tbody tr:nth-child(odd) {
    background: #ddd;
}

table tbody tr:nth-child(even) {
    background: #eee;
}

table tbody tr:hover {
    background: #ccc;
}

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

#header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #FFF;
    overflow: hidden;
    padding: 0 30px;
    height: 50px;
    box-shadow: 0 0 10px #000;
    z-index: 100;
}

#header-wrapper h1 {
    float: left;
}

#top-menu,
#bottom-menu {
    float: right;
    overflow: hidden;
}

#top-menu ul {
    list-style: none;
    display: flex;
}

#top-menu li a {
    padding: 20px;
    display: inline-block;
    font-size: 1.2rem;
    text-decoration: none;
    color: #000;
}

#main-wrapper {
    overflow: hidden;
    margin-top: 50px;
}

#to-top {
    position: absolute;
    bottom: 30px;
    right: 30px;
}


/* FORMS */

.standard-form {
    overflow: hidden;
    padding: 15px;
    background: #FFF;
    border-radius: 3px;
    min-width: 320px;
}

.standard-form input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #ddd;
    padding: 10px 5px;
    box-sizing: border-box;
}

button,
.button {
    color: #000;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
    border: 1px solid #aaa;
}

button:hover,
.button:hover {
    opacity: 0.6;
}

button.primary,
.button.primary {
    color: #FFF;
    background: #46b8da;
    border-color: #46b8da;
}

button.red,
.button.red {
    color: #FFF;
    background: #d62728;
    border-color: #d62728;
}

button.discrete,
.button.discrete {
    background: #aaa;
}

td .button {
    padding: 5px;
}

.standard-form .form-item {
    margin: 15px 0;
}

.form-links {
    margin: 10px 0;
}

.form-links a {
    color: #2b849e;
}

form .response-info {
    padding-top: 0;
    margin-top: -10px;
}

form .error {
    color: #d62728;
}

form .success {
    color: #449d44;
}


/* DIALOGS */

.arena-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.arena-mask.inactive {
    opacity: 0;
}


/* INPUTS */

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select {
    border: 1px solid #2b849e;
    box-sizing: border-box;
    padding: 5px;
    display: block;
    width: 100%;
    margin: 15px 0;
}

#list-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    background: #ccd6e6;
}

#list-filters fieldset {
    flex-basis: 0;
    flex-grow: 1;
    border: 1px solid #2b849e;
}

#list-filters legend {
    font-size: 14px;
    font-weight: 700;
}

#list-filters input,
#list-filters select {
    margin: 5px 0;
}

#list-filters fieldset .v-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 75%;
}

#list-filters fieldset .v-flex .button {
    width: 100%;
    margin: 15px 0 0;
    box-sizing: border-box;
    text-align: center;
}

.pager {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    margin: 15px 0;
    padding: 0;
    justify-content: flex-end;
}

.pager a,
.pager .current {
    color: #2b849e;
    border: 1px solid #2b849e;
    padding: 5px;
    margin: 0 5px;
    min-width: 2em;
    height: 2em;
    display: inline-block;
    text-align: center;
    line-height: 2em;
    text-decoration: none;
}

.pager a {
    transition: opacity 0.4s ease;
}

.pager a:hover {
    opacity: 0.6;
}

.pager .current {
    background: #2b849e;
    color: #FFF;
}

.page-title {
    text-align: right;
    font-size: 12px;
    padding: 5px 50px 5px 0;
    color: #000;
    margin: 5px 0;
    position: relative;
    font-weight: 400;
    letter-spacing: 1px;
}

.page-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    height: 2px;
    left: 0;
    right: 0;
    background-image: radial-gradient(circle farthest-side at 0% 50%, #ffffff, #46b8da);
}

.progress-bar {
    position: relative;
    border-radius: 5px;
    height: 40px;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    color: #2b849e;
    border: 1px solid #2b849e;
}

.progress-bar .inner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0%;
    border-radius: 5px;
    background-image: radial-gradient(circle farthest-side at 0% 55%, #af42d0, #46a0cc, #13526f);
}

.progress-bar .value {
    font-size: 21px;
    line-height: 40px;
    position: absolute;
    color: #000000;
    text-shadow: 0 0 5px #FFF;
}

.act-toogle-filters {
    display: none;
}

@media screen and (max-width:1180px) {
    .table-wrapper {
        overflow-y: scroll;
    }
    #list-filters {
        flex-direction: column;
        display: none;
        overflow: hidden;
    }

    .filters-wrapper.active #list-filters {
        display: block;
    }
    .act-toggle-filters {
        display: block;        
        font-size: 3vw;
        margin: 1vw 0;
        cursor: pointer;
        text-align: center;
    }
}