@import url("fa-6.1.css");
@import url("open-props.css");
@import url("colors.css");


:root {
    --gray-9-hsl: 211 20% 37%;
    --gray-8-hsl: 211 20% 44%;
    --gray-7-hsl: 211 20% 51%;
    --gray-6-hsl: 211 20% 58%;
    --gray-5-hsl: 211 20% 65%;
    --gray-4-hsl: 211 20% 72%;
    --gray-3-hsl: 211 20% 79%;
    --gray-2-hsl: 211 20% 86%;
    --gray-1-hsl: 211 20% 93%;
    --gray-0-hsl: 211 20% 100%;

    --silver-9-hsl: 0 0% 37%;
    --silver-8-hsl: 0 0% 44%;
    --silver-7-hsl: 0 0% 51%;
    --silver-6-hsl: 0 0% 58%;
    --silver-5-hsl: 0 0% 65%;
    --silver-4-hsl: 0 0% 72%;
    --silver-3-hsl: 0 0% 79%;
    --silver-2-hsl: 0 0% 86%;
    --silver-1-hsl: 0 0% 93%;
    --silver-0-hsl: 0 0% 100%;

    --green-9-hsl: 141, 77%, 32%;
    --green-8-hsl: 141 77% 44%;
    --green-7-hsl: 141 77% 51%;
    --green-6-hsl: 141 77% 58%;
    --green-5-hsl: 141 77% 65%;
    --green-4-hsl: 141 77% 72%;
    --green-3-hsl: 141 77% 79%;
    --green-2-hsl: 141 77% 86%;
    --green-1-hsl: 141 77% 93%;
    --green-0-hsl: 141 77% 100%;

    --red-9-hsl: 339 100% 37%;
    --red-8-hsl: 339 100% 44%;
    --red-7-hsl: 339 100% 51%;
    --red-6-hsl: 339 100% 58%;
    --red-5-hsl: 339 100% 65%;
    --red-4-hsl: 339 100% 72%;
    --red-3-hsl: 339 100% 79%;
    --red-2-hsl: 339 100% 86%;
    --red-1-hsl: 339 100% 93%;
    --red-0-hsl: 339 100% 100%;

    --blue-9-hsl: 207 64% 37%;
    --blue-8-hsl: 207 64% 44%;
    --blue-7-hsl: 207 64% 51%;
    --blue-6-hsl: 207 64% 58%;
    --blue-5-hsl: 207 64% 65%;
    --blue-4-hsl: 207 64% 72%;
    --blue-3-hsl: 207 64% 79%;
    --blue-2-hsl: 207 64% 86%;
    --blue-1-hsl: 207 64% 93%;
    --blue-0-hsl: 207 64% 100%;


    --yellow-9-hsl: 49 100% 37%;
    --yellow-8-hsl: 49 100% 44%;
    --yellow-7-hsl: 49 100% 51%;
    --yellow-6-hsl: 49 100% 58%;
    --yellow-5-hsl: 49 100% 65%;
    --yellow-4-hsl: 49 100% 72%;
    --yellow-3-hsl: 49 100% 79%;
    --yellow-2-hsl: 49 100% 86%;
    --yellow-1-hsl: 49 100% 93%;
    --yellow-0-hsl: 49 100% 100%;

    --orange-9-hsl: 27 99% 37%;
    --orange-8-hsl: 27 99% 44%;
    --orange-7-hsl: 27 99% 51%;
    --orange-6-hsl: 27 99% 58%;
    --orange-5-hsl: 27 99% 65%;
    --orange-4-hsl: 27 99% 72%;
    --orange-3-hsl: 27 99% 79%;
    --orange-2-hsl: 27 99% 86%;
    --orange-1-hsl: 27 99% 93%;
    --orange-0-hsl: 27 99% 100%;

    --cyan-9-hsl: 176 71% 37%;
    --cyan-8-hsl: 176 71% 44%;
    --cyan-7-hsl: 176 71% 51%;
    --cyan-6-hsl: 176 71% 58%;
    --cyan-5-hsl: 176 71% 65%;
    --cyan-4-hsl: 176 71% 72%;
    --cyan-3-hsl: 176 71% 79%;
    --cyan-2-hsl: 176 71% 86%;
    --cyan-1-hsl: 176 71% 93%;
    --cyan-0-hsl: 176 71% 100%;

    --granit: #E3000B;
    --granit-grey: #191919;

	--gap: 1rem;

}

body,
body * {
    box-sizing: border-box;
    font-size: var(--font-size-2);
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro,Arial,Helvetica', sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

body {
    padding: 7rem 0;
    overflow-x: hidden;
    color: #303c49;
}

body.no-scroll {
    height: 100vh;
    overflow: hidden;
}

body.no-scroll:before {
    content: "";
    width: 100%;
    height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 2;
}

h1 {
    font-size: var(--font-size-fluid-2);
    letter-spacing: .0125rem;
}

h1 > small,
h2 > small {
    font-weight: 400;
    color: hsl(var(--green-9-hsl));
}

h2, legend, .legend {
    font-size: var(--font-size-fluid-1);
}


h1, .h1, h1 *, .h1 * {
    font-size: clamp(30px, 3vw + .1em, 36px);
    text-transform: uppercase;
}

h2, .h2, h2 *, .h2 * {
    font-size: clamp(26px, 2.666666vw + .1em, 32px);
    text-transform: uppercase;
}

h3, .h3, h3 *, .h3 * {
    font-size: clamp(22px, 2.333333vw + .1em, 28px);
}

h4, .h4, h4 *, .h4 * {
    font-size: clamp(20px, 2vw + .1em, 24px);
}

h5, .h5, h5 *, .h5 * {
    font-size: clamp(18px, 1.666666vw + .1em, 20px);
}

h6, .h6, h6 *, .h6 * {
    font-size: clamp(16px, 1.5vw + .1em, 18px);
}

main small {
	line-height: .75em;
	font-size: .75em;
	margin: 0;
	padding: 0;
}


img {
    max-width: 100%;
    height: auto;
}
[src=''] {
	display: none;
}

a {
    color: inherit;
    text-decoration: none;
}

p:not(:last-child) {
    margin-bottom: 1rem;
}

address {
    font-style: normal;
}

hr {
	height: 0;
	border: 0;
	border-bottom: 1px solid hsl(var(--gray-5-hsl));
}

.row {
    display: flex;
    gap: 1rem;
}

.row > * {
    flex: 1;
}

header {
    background-color: hsl(var(--gray-9-hsl));
    background-color: hsl(210 10% 96%);
    display: flex;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

header > time {
    align-content: center;
    align-items: center;
    /*color: #fff;*/
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
}

header > nav {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-around;
    flex-grow: 1;
}

header > nav:last-child {
    justify-content: flex-end;
    gap: 1px;
}

header > a,
header > nav > a {
    align-content: center;
    align-items: center;
    /*color: #fff;*/
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    padding: .5rem .75rem;
    text-align: center;
    text-decoration: none;
    gap: .25rem;
}

header i {
    transition: transform ease .25s;

}

header a:hover i {
    transform: scale(1.5);
}

header > nav.basics {
    justify-content: flex-end;
}

header > nav:not(.basics) > a.active,
header > nav:not(.basics) > a:hover {
    transition: all ease .5s;
    background-color: hsl(var(--green-9-hsl)) !important;
    background-color: var(--granit) !important;
    color: hsl(var(--silver-1-hsl)) !important;
}

header > nav > a.active *,
header > nav:hover > a.active * {
    color: white !important;
    fill: white !important;
}

header > nav.basics > a {
    color: white !important;
    /*border-bottom: 1px solid black;*/
}

header > nav.basics > a.active,
header > nav.basics:hover > a.active {
    background-color: white;
    border-bottom: 1px solid white;
}

header > nav.basics > a.active *,
header > nav.basics:hover > a.active * {
    color: var(--granit) !important;
    fill: var(--granit) !important;
}

header > nav > a.danger {
    background-color: hsl(var(--red-9-hsl));
}

header > nav > a.primary {
    background-color: hsl(var(--blue-9-hsl));
}

header > nav > a.secondary {
    background-color: hsl(var(--gray-5-hsl));
}

header > nav > a.success {
    background-color: hsl(var(--green-9-hsl));
}

header > nav > a.info {
    background-color: hsl(var(--blue-5-hsl));
}

header > nav > a.profil {
    background-color: hsl(var(--gray-9-hsl));
}

header > nav > a.warning {
    background-color: hsl(var(--yellow-9-hsl));
}

header > nav > a.download {
    background-color: hsl(var(--cyan-5-hsl));
}

header > nav > a.logs {
    background-color: hsl(var(--yellow-6-hsl));
}

header > nav > a.styling {
    background-color: hsl(var(--orange-6-hsl));
}

header > a:first-child {
    width: 95px;
    height: 80px;
    object-fit: contain;
    /*background: linear-gradient(to bottom, transparent, white 5%, white 95%, transparent);*/
}

header > nav > a > img {
    height: 100%;
    min-height: 80px;
    margin: 0;
    padding: 0;
    width: 10vw;
    min-width: 80px;
}

header > nav > a > span {
    display: block;
}

header #opener {
    display: none;
}

.mobilenav header #opener {
    display: flex;
    align-content: flex-end;
    align-items: flex-end;
    justify-content: flex-end;
    flex-grow: 1;
    padding: 1rem;
}

.mobilenav header #opener * {
    font-size: 3rem;
}

.mobilenav header {
    z-index: 11;
    min-height: 80px;
    flex-direction: row !important;
}

.mobilenav header > nav.closed {
    display: none;
}

.mobilenav header > time {
    justify-content: flex-start;
}

.mobilenav header > time > i {
    padding-left: 10vw;
}

.no-scroll header {
    flex-direction: column;
    z-index: 11;
    min-height: 80px;
}

.no-scroll header > nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-auto-rows: 1fr;
    align-content: flex-start;
    align-items: flex-start;
    justify-content: flex-start;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: white;
    width: 100%;
    height: 80dvh;
}

.no-scroll header > nav.basics {
    top: 80dvh;
    height: 20dvh;
}

.no-scroll header > nav.closed {
    display: block;
}

.no-scroll header > nav:not(.basics) > * * {
    color: black;
}

.no-scroll header > nav:not(.basics) > *:hover * {
    color: white;
}

.no-scroll header > nav:not(.basics) > * {
    background: hsl(var(--gray-1-hsl));
    border: 1px solid white;
    overflow: hidden;
    hyphens: auto;
}

.no-scroll header > nav:not(.basics) > a:hover {
    background: hsl(var(--gray-5-hsl));
}

.no-scroll header > nav:not(.basics) > *:hover {
    background: hsl(var(--gray-1-hsl));
}

.no-scroll header > nav > a > i {
    font-size: 3vw;
}

.no-scroll header > nav:not(.basics) > a > i {
    margin-bottom: 1.5vw;
}

.no-scroll header > nav > a > span {
    display: block;
}

.no-scroll header > time {
    justify-content: flex-start;
}

.no-scroll header > time > i {
    padding-left: 10vw;
}

.no-scroll #opener {
    position: absolute;
    right: 0px;
    top: 0px;
    display: block;
    align-self: center;
    text-align: right;
    color: white;
    text-shadow: 0 0 1px #000;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .no-scroll header > nav {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }
}

@media (max-width: 800px) {
    .no-scroll header > nav {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .img-preview{
        flex-direction: column;
    }
}

main {
    padding-inline: 1rem;
}

main > *:not(:last-child) {
    margin-bottom: 1rem;
}

main > div.datas {
	display: flex;
	gap: var(--gap);
}
main > div.datas > div {
	flex: 1;
	background: hsl(var(--gray-1-hsl));
	padding: var(--gap);
}
main > div.datas > div > * {
	margin-block: var(--gap);
}


footer {
    background-color: hsl(var(--gray-9-hsl));
    background-color: hsl(210 10% 96%);
    bottom: 0;
    left: 0;
    position: fixed;
    width: 100%;
    z-index: 10;
}

footer > * {
    margin: 1rem;
}


/* TABLES */
table {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
}

table thead {
    position: -webkit-sticky; /* for Safari */
    position: sticky;
    top: 0;
}

table tfoot {
    position: -webkit-sticky; /* for Safari */
    position: sticky;
    bottom: -1px;
}

table tr {
    scroll-margin-top: 100px;
}

table th,
table td {
    padding: .25rem .5rem;
}

table thead tr,
table tfoot tr {
    background-color: var(--granit-grey);
    color: white;
}

table thead th,
table tfoot th {
    text-align: left;
}

table th[align=center],
table th.center {
    text-align: center;
}

table th[align=right],
table th.right {
    text-align: right;
}

table tbody tr:nth-child(even) {
    background-color: hsl(var(--gray-0-hsl));
}

table tbody tr:hover {
    background-color: hsl(var(--gray-2-hsl));
}

table tbody tr.danger,
table td.danger {
    background-color: hsl(var(--red-1-hsl));
}

table tbody tr.danger:nth-child(even) {
    background-color: hsl(var(--red-2-hsl));
}

table tbody tr.danger:Hover,
table td.danger:Hover {
    background-color: hsl(var(--red-3-hsl));
}

table tbody tr.danger:Hover td {
    border-color: hsl(var(--red-5-hsl));
}

table tbody tr.info,
table td.info {
    background-color: hsl(var(--blue-1-hsl));
}

table tbody tr.info:nth-child(even) {
    background-color: hsl(var(--blue-2-hsl));
}

table tbody tr.info:Hover,
table td.info:Hover {
    background-color: hsl(var(--blue-3-hsl));
}

table tbody tr.info:Hover td {
    border-color: hsl(var(--blue-5-hsl));
}

table tbody tr.success,
table td.success {
    background-color: hsl(var(--green-4-hsl));
}

table tbody tr.success:nth-child(even) {
    background-color: hsl(var(--green-6-hsl));
}

table tbody tr.success:Hover,
table td.success:Hover {
    background-color: hsl(var(--green-8-hsl));
}

table tbody tr.success:Hover td {
    border-color: hsl(var(--green-9-hsl));
}

table tbody tr.warning,
table td.warning {
    background-color: hsl(var(--yellow-1-hsl));
}

table tbody tr.warning:nth-child(even) {
    background-color: hsl(var(--yellow-2-hsl));
}

table tbody tr.warning:Hover,
table td.warning:Hover {
    background-color: hsl(var(--yellow-3-hsl));
}

table tbody tr.warning:Hover td {
    border-color: hsl(var(--yellow-5-hsl));
}

table tbody tr td {
    border-bottom: 1px solid #fff;
}

*.nowrap,
table tbody tr td:not(:first-child):last-child {
    white-space: nowrap;
}

table small {
    font-size: .75em;
}

@media screen and (max-width: 1500px) {
    table.responsive thead, table tfoot {
        display: none; /* hide header and footer labels */
    }

    table.responsive tbody tr {
        display: block;
        box-shadow: 0 0 5px 0 rgba(90, 90, 90, 0.5);
        margin: 1rem 0;
    }

    table.responsive tbody tr td[data-title]:before {
        content: attr(data-title); /* this will show the label of data */
        font-weight: 500;
        white-space: pre;
        text-align: left;
    }

    table.responsive tbody tr td {
        display: flex; /* this will align label and value in same line */
        flex-direction: column;
        justify-content: space-between;
        white-space: normal;
        text-align: end;
        font-weight: 300;
        gap: .1rem;
    }

    table.responsive tbody tr td:last-child {
        flex-direction: row;
        justify-content: flex-end;
    }

    table.responsive tbody tr td a {
        aspect-ratio: 1;
        max-width: 3rem;
        align-self: flex-end;
    }
}


/* FORMS */
form.row {
    display: flex;
    flex-grow: 1;
    gap: 1px;
}

form.row * {
    margin: 0;
}

form > section {
    margin: 1em 0;
}

form p {
    color: hsl(var(--gray-7-hsl));
}

fieldset {
    border: none;
    display: flex;
    gap: 2em;
    margin-bottom: 1em;
    background: hsl(var(--gray-1-hsl));
    margin: 0 -1em;
    padding: 1em;
}

fieldset:has(legend) {
    margin-top: 1em;
}

fieldset > * {
    flex-grow: 1;
    width: 100%;
}

fieldset > section.checkbox {
    width: auto;
    white-space: nowrap;
    padding-top: 1.5em;
}

fieldset > *.small {
    max-width: 200px;
}

fieldset > *.span2 {
    flex-grow: 2;
}

fieldset > *.span3 {
    flex-grow: 3;
}

.grid,
fieldset.grid {
    align-items: flex-start;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2em;
}

.grid > *,
fieldset.grid > * {
    flex-grow: 0;
}

fieldset.grid table {
    border: 1px solid hsl(var(--gray-9-hsl));
}

legend,
.legend {
    transform: translateY(1em);
    margin-bottom: 1em;
}

label {
    font-weight: 600;
}

label > small {
    float: right;
    font-size: .9em;
    font-weight: 100;
}

fieldset > section > a {
    float: right;
    font-size: .75em;
}

body:not(.index) *:required:invalid {
    border: 1px solid hsl(var(--red-9-hsl));
}

input,
select,
textarea {
    background: #fff;
    border: 1px solid hsl(var(--gray-5-hsl));
    border-radius: 0;
    display: block;
    margin: .5rem 0;
    height: 2.25em;
    padding: .25rem .5rem;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

input[type=radio] {
    border-radius: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid #999;
    transition: 0.2s all linear;
    margin-right: 5px;
    position: relative;
    top: 4px;
    padding: 0;
}

input[type=radio]:checked {
    border: 6px solid black;
}

form input[disabled],
form input.disabled {
    color: #5e5e5e;
    background-color: #e7e7e7;
    pointer-events: none;
}

.radio label, #radio label {
    margin-right: 15px;
    line-height: 40px
}

.radio {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
}

#radio {
    display: flex;
    align-items: flex-start;
}

textarea {
    /*min-height: 10vh;*/
    height: auto;
}

select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='292.4' height='292.4'%3E%3Cpath fill='%23000000' d='M287 69.4a17.6 17.6 0 0 0-13-5.4H18.4c-5 0-9.3 1.8-12.9 5.4A17.6 17.6 0 0 0 0 82.2c0 5 1.8 9.3 5.4 12.9l128 127.9c3.6 3.6 7.8 5.4 12.8 5.4s9.2-1.8 12.8-5.4L287 95c3.5-3.5 5.4-7.8 5.4-12.8 0-5-1.9-9.2-5.5-12.8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
}

select[multiple] {
    background-image: none;
    height: auto;
}

.range {
    position: relative;
}

[type=range] {
    background: transparent;
    border: none;
    padding: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

[type=range]::-webkit-slider-thumb {
    background: white;
    border: 1px solid hsl(var(--gray-9-hsl));
    height: 2.25rem;
    transform: translateY(-.875rem);
    width: 2rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    z-index: 2;
}

[type=range]::-webkit-slider-runnable-track {
    background-color: hsl(var(--gray-5-hsl));
    height: .5rem;
    z-index: 1;
}

header output {
    align-content: center;
    align-items: center;
    background: transparent;
    color: inherit;
    display: flex;
    font-size: .75em;
    justify-content: center;
    padding: .25rem;
    pointer-events: none;
    position: absolute;
    transform: translateY(-2.5rem);
    width: 2rem;
    z-index: 3;
}

*[type=checkbox],
*[type=radio] {
    display: inline-block;
}

*[type=button],
*[type=submit] {
    background-color: hsl(var(--green-9-hsl));
    border: none;
    color: #fff;
    display: inline-block;
    padding: .25rem .5rem;
    text-transform: uppercase;
    cursor: pointer;
}
#save-btn[disabled]{
    background-color: hsl(var(--gray-5-hsl));
    cursor: not-allowed;
}

*[type=reset] {
    background-color: hsl(var(--red-9-hsl));
    border: none;
    color: #fff;
    display: inline-block;
    padding: .25rem .5rem;
    text-transform: uppercase;
}

[type="checkbox"] {
    display: none;
    position: relative;
    left: 30px;
    top: 0px;
    z-index: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

[type="checkbox"] + label {
    position: relative;
    display: block;
    cursor: pointer;
    margin: 1rem 0;
    padding-left: 3.5rem;
}

[type="checkbox"] + label:before {
    width: 3rem;
    height: 1.5rem;
    background-color: hsl(var(--red-2-hsl));
    border: 1px solid hsl(var(--gray-5-hsl));
    content: "";
    margin-right: 1rem;
    transition: background-color 0.5s linear;
    z-index: 1;
    position: absolute;
    left: 0px;
}

[type="checkbox"] + label:after {
    width: 1.5rem;
    height: 1.5rem;
    background-color: hsl(var(--red-9-hsl));
    content: "";
    transition: margin 0.1s linear;
    position: absolute;
    left: 1px;
    top: 1px;
    z-index: 3;
}

[type="checkbox"]:checked + label:before {
    background-color: hsl(var(--green-1-hsl));
}

[type="checkbox"]:checked + label:after {
    background-color: hsl(var(--green-9-hsl));
    margin: 0 0 0 1.5rem;
}

[type=color]::-webkit-color-swatch,
[type=color]::-webkit-color-swatch-wrapper {
    border: none;
    border-radius: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

td.btn-group {
    /*display: flex;
    justify-content: right;*/
    text-align: right;
}

td.btn-group .btn {
    padding: .5rem;
}

td.btn-group .btn i {
    font-size: .75em;
}

.fullsearch {
    display: flex;
    gap: .5em;
}

.fullsearch > * {
    flex-grow: 1;
    /*height: 100%;*/
    margin: 0;
}

.fullsearch > *[type=text] {
    min-width: 50%;
}

.fullsearch > *[type=submit] {
    width: 50px;
    border: 1px solid hsl(var(--green-9-hsl));
}


/* BUTTONS */

.btn {
    align-content: center;
    align-items: center;
    border: none;
    display: inline-flex;
    font-family: inherit;
    justify-content: center;
    margin-right: .15rem;
    padding: .5rem 1rem;
    text-decoration: none;
    transition: background-color 500ms all;
}

.btn-group .btn {
    margin: 0;
    width: 30px;
    height: 30px
}

.btn > i:only-of-type {
    margin-right: .5rem;
}

.btn-group i:only-of-type {
    margin: 0;
}

.btn.danger {
    background-color: hsl(var(--red-9-hsl));
    color: white;
}

.btn.danger:Hover {
    background-color: hsl(var(--red-8-hsl));
}

.btn.info {
    background-color: hsl(var(--blue-6-hsl));
    color: white;
}

.btn.info:Hover {
    background-color: hsl(var(--blue-5-hsl));
}

.btn.success {
    background-color: hsl(var(--green-9-hsl));
    color: white;
}

.btn.success:Hover {
    background-color: hsl(var(--green-8-hsl));
}

.btn.warning {
    background-color: hsl(var(--yellow-7-hsl));
    color: white;
}

.btn.warning:Hover {
    background-color: hsl(var(--yellow-6-hsl));
}

.btn.primary {
    background-color: hsl(var(--blue-9-hsl));
    color: white;
}

.btn.primary:Hover {
    background-color: hsl(var(--blue-8-hsl));
}

.btn.disabled {
    background-color: hsl(var(--gray-4-hsl));
    color: white;
}

.btn.b1 {
    background-color: hsl(var(--gray-9-hsl));
    color: white;
}

.btn.b1:Hover {
    background-color: hsl(var(--gray-8-hsl));
}

.btn.b2 {
    background-color: hsl(var(--grape-6-hsl));
    color: white;
}

.btn.b2:Hover {
    background-color: hsl(var(--grape-5-hsl));
}

.btn.b3 {
    background-color: hsl(var(--violet-6-hsl));
    color: white;
}

.btn.b3:Hover {
    background-color: hsl(var(--violet-5-hsl));
}

.btn.b4 {
    background-color: hsl(var(--pink-6-hsl));
    color: white;
}

.btn.b4:Hover {
    background-color: hsl(var(--pink-5-hsl));
}

.btn.b5 {
    background-color: hsl(var(--cyan-6-hsl));
    color: white;
}

.btn.b5:Hover {
    background-color: hsl(var(--cyan-5-hsl));
}

.btn.b6 {
    background-color: hsl(var(--orange-9-hsl));
    color: white;
}

.btn.b6:Hover {
    background-color: hsl(var(--orange-8-hsl));
}

.btn.b7 {
    background-color: hsl(var(--indigo-6-hsl));
    color: white;
}

.btn.b7:Hover {
    background-color: hsl(var(--indigo-5-hsl));
}

.btn.b8 {
    background-color: hsl(var(--teal-6-hsl));
    color: white;
}

.btn.b8:Hover {
    background-color: hsl(var(--teal-5-hsl));
}

.btn.b9 {
    background-color: hsl(var(--lime-6-hsl));
    color: white;
}

.btn.b9:Hover {
    background-color: hsl(var(--lime-5-hsl));
}

.btn.firstresponder {
    background-color: hsl(138 53% 48%);
    color: white;
}

.btn.firstresponder:Hover {
    background-color: hsl(138 53% 38%);
    color: white;
}

.btn.fireworker {
    background-color: hsl(0 76% 64%);
    color: white;
}

.btn.fireworker:Hover {
    background-color: hsl(0 76% 54%);
    color: white;
}

.btn.o1 {
    outline: 1px solid hsl(var(--gray-8-hsl));
    outline-offset: -1px;
    color: inherit;
}

.btn.o1.active,
.btn.o1:Hover {
    background-color: hsl(var(--gray-1-hsl));
    outline: 1px solid hsl(var(--gray-9-hsl));
    outline-offset: -1px;
}

/* ALERTS */
.error {
    background-color: hsl(var(--red-1-hsl));
    border: 1px solid hsl(var(--red-9-hsl));
    color: hsl(var(--red-9-hsl));
    margin-bottom: 1rem;
    padding: 1rem;
}

.saved {
    background-color: hsl(var(--green-1-hsl));
    border: 1px solid hsl(var(--green-9-hsl));
    color: hsl(var(--green-9-hsl));
    margin-bottom: 1rem;
    padding: 1rem;
}

main div.info {
    background-color: hsl(var(--blue-1-hsl));
    border: 1px solid hsl(var(--blue-9-hsl));
    color: hsl(var(--blue-9-hsl));
    margin-bottom: 1rem;
    padding: 1rem;
}

div.warning {
    background-color: hsl(var(--orange-1-hsl));
    border: 1px solid hsl(var(--orange-9-hsl));
    color: hsl(var(--orange-9-hsl));
    margin-bottom: 1rem;
    padding: 1rem;
}

.remove-row {
    max-width: 60px;
    height: 41px !important;
    align-self: flex-end;
    margin-bottom: 7px;
}

.remove-row i {
    margin: 0.5rem;
}



/* BEYOND */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.pull-right {
    float: right;
}

.hide {
    display: none !important;
}

.contact > main > form > div {
    margin: 1em 0;
    padding: 1em .1em;
    background: hsl(var(--gray-1-hsl));
}

#map {
    width: 100%;
    aspect-ratio: 4 / 2;
    background: hsl(var(--blue-1-hsl));
}

/* TEXT COLORS */
.text-danger {
    color: hsl(var(--red-9-hsl));
    fill: hsl(var(--red-9-hsl));
}

.text-success {
    color: hsl(var(--green-9-hsl));
    fill: hsl(var(--green-9-hsl));
}

.text-warning {
    color: hsl(var(--yellow-9-hsl));
    fill: hsl(var(--yellow-9-hsl));
}


/* TITLE */
tr[data-title]:hover:after,
a[data-title]:hover:after {
    opacity: 1;
    transition: all 0.1s ease 0.5s;
    visibility: visible;
}

tr[data-title]:after,
a[data-title]:after {
    content: attr(data-title);
    position: absolute;
    bottom: -1.6em;
    right: 0;
    padding: 4px 4px 4px 8px;
    color: #222;
    white-space: nowrap;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    -moz-box-shadow: 0px 0px 4px #222;
    -webkit-box-shadow: 0px 0px 4px #222;
    box-shadow: 0px 0px 4px #222;
    background-image: -moz-linear-gradient(top, #f8f8f8, #cccccc);
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #f8f8f8), color-stop(1, #cccccc));
    background-image: -webkit-linear-gradient(top, #f8f8f8, #cccccc);
    background-image: -moz-linear-gradient(top, #f8f8f8, #cccccc);
    background-image: -ms-linear-gradient(top, #f8f8f8, #cccccc);
    background-image: -o-linear-gradient(top, #f8f8f8, #cccccc);
    opacity: 0;
    z-index: 99999;
    visibility: hidden;
}

tr[data-title]:after {
    right: auto;
    left: 10vw;
    bottom: auto;
}

[data-title] {
    position: relative;
}


.pagination {
    display: flex;
}

.pagination > * {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid hsl(var(--gray-4-hsl));
    width: 100%;
    text-align: center;
}

.pagination > *:Hover {
    background: hsl(var(--gray-1-hsl));
}

.pagination > *.active {
    border: 1px solid hsl(var(--gray-4-hsl));
    border-bottom: 1px solid transparent;
    background: hsl(var(--gray-1-hsl));
    font-weight: 500;
}

.pagination_pages {
    border: 1px solid hsl(var(--gray-4-hsl));
    border-top: 1px solid transparent;
    transform: translateY(-1px);
}

.pagination_pages > * {
    display: none;
}

.pagination_pages > *.active {
    display: block;
    background: hsl(var(--gray-1-hsl));
    padding: 1rem !important;
}


.progress {
    background: hsl(var(--gray-6-hsl));
    border-radius: 3vmin;
    overflow: hidden;
}

.progress-bar {
    background: hsl(var(--green-9-hsl));
    color: white;
    white-space: nowrap;
    padding: 1px 3vmin;
    text-align: right;
}

.bar-0 {
    background: transparent;
}

.bar-1 {
    background: hsl(var(--red-9-hsl));
}

.bar-2 {
    background: hsl(var(--red-7-hsl));
}

.bar-3 {
    background: hsl(var(--red-5-hsl));
}

.bar-4 {
    background: hsl(var(--yellow-9-hsl));
}

.bar-5 {
    background: hsl(var(--yellow-7-hsl));
}

.bar-6 {
    background: hsl(var(--yellow-5-hsl));
}

.bar-7 {
    background: hsl(var(--green-5-hsl));
}

.bar-8 {
    background: hsl(var(--green-7-hsl));
}

.bar-0 {
    background: hsl(var(--green-9-hsl));
}


main > section {
    display: flex;
    gap: 1rem;
}

main > section > * {
    flex: 1;
}

main > section > *:has(canvas) {
    flex: 2;
}

canvas {
    max-height: 90vh;
}

datalist {
    display: none;
}

datalist.open {
    border: 1px solid hsl(var(--red-9-hsl));
    padding: 1rem;
    display: block;
}

/* Editor CSS */
.tox-promotion {
    display: none !important;
}

.tox-statusbar__branding {
    display: none !important;
}

.tox.tox-tinymce {
    border-radius: 0 !important;
    border: 1px solid hsl(var(--gray-5-hsl)) !important;
}

#form #message {
    display: none;
    background: hsl(var(--gray-1-hsl));
    color: #000;
    position: relative;
    padding: 20px;
    margin-top: 10px;
}

#form #message p {
    padding: 10px 35px;
    font-size: 18px;
}

.valid {
    color: green;
}

.valid:before {
    position: relative;
    left: -35px;
    content: "✔";
}

.invalid {
    color: red;
}

.invalid:before {
    position: relative;
    left: -35px;
    content: "✖";
}

.aspect-square {
    position: relative;
}

.aspect-square img {
    user-select: none;
}

.aspect-square .dot {
    display: none;
    position: absolute;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    width: 20px;
    height: 20px;
    background: hsla(0, 100%, 50%, 1);
    border-radius: 20px;
    border: 2px solid white;
    box-shadow: 0 0 4px black;
}

.img-preview {
    display: flex;
    gap: 20px;
}

.img-preview > div {
    flex: 1 1 50%;
    max-height: 80vh;
    max-width: 80vh;
    /*height: 100%;*/
    width: 100%;
}

.img-preview > .picker > img{
    max-height: 100%;
}

.img-preview canvas{
    max-height: 100%;
    max-width: 100%;
}

.previews {
    display: grid;
    grid-template-columns: 33% 33% 33%;
    grid-template-rows: 33% 33% 33%;
    grid-template-areas:
        "preview-2-1 preview-2-1 preview-2-1"
        "preview-1-2 preview-1-1 preview-1-1"
        "preview-1-2 preview-1-1 preview-1-1";
    grid-gap: 0;
    aspect-ratio: 1/1;
}

.previews img {
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.previews [class*="preview-"] {
    position: relative;
}

.preview-2-1 {
    grid-area: preview-2-1;
    border: 1px solid #000;
}

.preview-1-2 {
    grid-area: preview-1-2;
    border: 1px solid #000;
    border-top: none;
}

.preview-1-1 {
    grid-area: preview-1-1;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
}

.toggle-url {
    color: #fff;
    padding: .5rem 1rem;
    background: #d71818;
    cursor: pointer;
}

.toggle-url.enabled {
    background: #1a8a18;
}

.editor {
    height: 600px;
    max-height: 100vh;
}

#shared-list {
    display: flex;
    width: 80%;
    margin: auto;
    gap: 4vw;
}

#shared-list > div {
    flex: 1 1 50%;
    height: 100%;
    padding: 2rem;
    background: #eeeeee;
    /*border-radius: 5px;*/
}

.optionList > ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.optionList > ul li {
    padding: 10px;
    /*border: 1px solid #aba8a8;
    border-radius: 5px;*/
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
    background: #fff;
}

.optionList > ul li i {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.options-form {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 3rem auto 0;
}

.options-form > div {
    padding: 2rem;
    background: #eeeeee;
}

.options-form #checkbox {
    display: flex;
    align-items: self-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.nav-form {
    width: 80%;
    margin: 1rem auto 0;
    gap: 0;
}

.nav-form > *:nth-child(1) {
    flex: 0 0 calc(50% - 2vw);
    margin-right: 4vw;
}

.nav-form > *:nth-child(2) {
    flex: 1 0 calc(40% - 2vw);
    min-width: 0;
}

.nav-form > *:nth-child(3) {
    flex: 0 0 10%;
    max-width: 50px;
    margin-left: 20px;
}

.options-form #checkbox .checkbox {
    flex: 1 0 calc(33% - 2rem);
}

@media screen and (max-width: 1000px) {
    .options-form #checkbox .checkbox {
        flex: 1 0 calc(50% - 2rem);
    }
}

@media screen and (max-width: 550px) {
    .options-form #checkbox .checkbox {
        flex: 1 0 100%;
    }

    #radio {
        flex-wrap: wrap;
    }
}

.handle {
    cursor: pointer;
}

.optionList .icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.optionList .icons .tipps:hover {
    cursor: help;
    position: relative
}

.optionList .icons .tipps span {
    display: none
}

.optionList .icons .tipps:hover span {
    border: #c0c0c0 1px dotted;
    padding: 5px 20px 5px 5px;
    display: block;
    z-index: 100;
    background: #f0f0f0 no-repeat 100% 5%;
    left: 0px;
    margin: 10px;
    width: 250px;
    position: absolute;
    top: 10px;
    text-decoration: none
}

.optionList .icons .arrow {
    cursor: pointer;
}

.optionList .list-item-option {
    display: block;
    flex: 1 1 100%;
    background: #f3f3f3;
    height: 0;
    opacity: 0;
    overflow: hidden;
    position: relative;
    -webkit-transition: .7s ease;
    -moz-transition: .7s ease;
    -o-transition: .7s ease;
    transition: .7s ease;
}

.optionList .open .list-item-option {
    display: block;
    max-height: 100px;
    margin-top: 20px;
    height: auto;
    opacity: 1;
    padding: 0 1rem;
}

.optionList .arrow {
    transition: .7s ease;
}

.optionList .open .arrow {
    transform: rotate(-90deg);
}

@media screen and (max-width: 800px) {
    #shared-list {
        width: 100%;
        flex-wrap: wrap;
    }

    .options-form {
        width: 100%;
    }

    .nav-form {
        width: 100%;
    }
}

#sortable tr{
    cursor: move;
}
textarea{
    white-space:pre-wrap;
}

dl {
	display: grid;
	gap: var(--gap);
	grid-template-columns: 1fr 2fr;
	margin-block: 1em;
}

.locked {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
    min-height: 70dvh;
    margin: 5dvh;
    background: hsl(var(--yellow-1-hsl));
}
.locked > span {
    background: hsl(var(--gray-3-hsl));
    border-radius: 50%;
    padding: 5dvh;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
}
.locked > span > i {
    font-size: 10dvh;
    aspect-ratio: 1;
}