@import url("_reset-ZaHEjRZ.css");
@import url("_vars-MQGUe7A.css");
@import url("_fonts-d5qv0XQ.css");

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/* STYLE */

html,
body {
    max-width: 100vw;
    overflow-x: clip;
}

body {
    position: relative;
    background-color: var(--light-color);
    font-family: 'Inter', sans-serif;
    color: var(--dark-color);
    scrollbar-gutter: stable both-edges;
}

body:has(.modal[open]:modal) {
    overflow: hidden;
}

#content {

    ul,
    ol {
        margin: 10px 20px;

        li:not(:last-child) {
            margin-bottom: 10px;
        }

        &.no-style {
            list-style-type: none;
            margin-left: 0;
            margin-right: 0;
        }
    }

    ul {
        list-style-type: disc;
    }

    ol {
        list-style-type: decimal;
    }
}

#hero,
#content {
    ul {
        li {
            line-height: 1.4em;
        }
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;

    a {
        text-decoration: none;
    }

    img {
        height: 18px;
    }
}

small {
    font-size: 0.8em;
}

img {
    height: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;

    &.img-32 {
        height: 32px;
    }

    &.img-40 {
        height: 40px;
    }

    &.img-220 {
        height: 220px;
    }

    &.mw-100 {
        max-width: 100px;
    }

    &.border-image {
        box-shadow: var(--main-box-shadow);
        border-radius: 100%;
    }

    &.no-shrink {
        flex-shrink: 0;
        max-width: initial;
    }
}

h1,
h2,
h3,
h4 {
    margin-bottom: 20px;
}

h1 {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.5em;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 18px;
    font-weight: bold;
}

h4 {
    font-weight: bold;
}

p {
    margin-bottom: 20px;
    line-height: 1.4em;
}

b,
strong {
    font-weight: bold;
}

a,
.action {
    color: var(--dark-color);
    text-decoration: underline;

    &:hover {
        color: var(--main-color);
    }

    &.danger {
        color: var(--error-color);

        &:hover {
            color: color-mix(in sRGB, var(--error-color) 90%, black);
        }
    }
}

.separator {
    display: block;
    border-top: 1px solid var(--border-color);
    width: 100%;

    &.separator-dashed {
        border-style: dashed;
    }
}

svg {
    vertical-align: middle;
}

/* GDPR */

#gdpr-box {
    position: fixed;
    bottom: 0;
    border-radius: 0;
    width: 100%;
    z-index: 998;
    box-shadow: var(--main-box-shadow);
    background-color: var(--secondary-color);

    p {
        span {
            display: block;
            margin-bottom: 10px;
            font-size: 24px;
            font-weight: bold;
        }
    }

    &>div {
        max-width: 1439px;
        margin: 0 auto;
        padding: 60px 20px 40px 20px;
    }

    #gdpr-accept {
        margin-right: 0;
    }
}

/* FORMS */

form {
    .form-error {
        display: block;
        margin-bottom: 10px;
        font-size: 0.8em;
    }
}

.form-group {
    display: flex;
    gap: 10px;
    justify-content: space-between;

    &>div {
        width: 50%;
    }
}

.input-group {
    position: relative;

    &:not(:has(.input-group-buttons-left)) {
        input {
            padding-right: 50px;
        }
    }

    &:has(.input-group-buttons-left) {
        input {
            padding-left: 50px;
        }
    }

    .input-group-buttons {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        gap: 10px;
        height: 70%;

        &.input-group-buttons-left {
            left: 10px;
            right: inherit;
        }

        .button {
            padding-top: 0;
            padding-bottom: 0;
            margin: 0;
        }
    }
}

/* FIELDS */

label {
    display: block;
    margin-bottom: 10px;
    line-height: 1.2em;
    font-size: 0.9em;
    
    &.required:not(.no-asterisk)::after {
        content: ' *';
        color: var(--error-color);
    }
}

.label-block {
    margin-bottom: 10px;

    label {
        margin-bottom: 0;
    }
}

input,
textarea,
select {
    display: block;
    margin-bottom: 20px;
}

input:not(:read-only):focus,
textarea:not(:read-only):focus,
select:focus {
    border-color: var(--main-color);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px 15px;
    border: var(--main-border);
    border-radius: var(--main-border-radius);
    background-color: var(--light-color);
    box-shadow: var(--main-box-shadow);
    color: var(--dark-color);
    outline: none;
    font-family: inherit;
    font-size: 0.9em;

    &.error {
        border-color: var(--error-color) !important;
    }

    &.xl {
        padding-top: 25px;
        padding-bottom: 25px;
        box-shadow: var(--main-box-shadow);
        height: 75px;
    }
}

input {
    &[type="text"] {
        &:read-only {
            background-color: var(--secondary-color);
        }
    }

    &[type="range"] {
        width: 100%;
        margin-bottom: 10px;

        &+output {
            display: block;
            margin-bottom: 20px;
        }
    }

    &[type="file"] {
        max-width: 250px;
    }
}

select {
    position: relative;
    appearance: none;
    padding-right: 30px;
    background-image: url("../img/icons/arrow_down-K1KFrkF.svg");
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: 1em auto, 100%;
}

.vich-image {
    div {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--warning-color);

        label,
        input[type="checkbox"] {
            margin: 0;
        }
    }

    a:has(img) {
        display: inline-block;
        margin-bottom: 20px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: var(--main-border-radius);
        background-color: #e8e8e8;
        background-image: repeating-linear-gradient(45deg, #b3b3b3 25%, transparent 25%, transparent 75%, #b3b3b3 75%, #b3b3b3), repeating-linear-gradient(45deg, #b3b3b3 25%, #e8e8e8 25%, #e8e8e8 75%, #b3b3b3 75%, #b3b3b3);
        background-position: 0 0, 10px 10px;
        background-size: 20px 20px;

        img {
            max-height: 100px;
            max-width: 150px;
        }
    }
}

textarea {
    padding: 20px;
    min-height: 150px;
    max-height: 500px;
    height: auto;
    resize: vertical;

    &.textarea-small {
        padding: 10px;
        min-height: unset;
        height: 70px;
        resize: none;
    }
}

input[type="checkbox"] {
    accent-color: var(--main-color);
} 

.checkbox {
    margin-bottom: 20px;

    & > div:first-of-type {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    label,
    input {
        margin: 0;
    }

    .help-text {
        display: block;
        font-size: 0.8em;
        margin-top: 10px;
    }
}

/* BUTTONS */

.button-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    border-radius: var(--main-border-radius);

    .button {
        margin: 0;
        border-radius: 0;
        align-self: stretch;
        z-index: 1;

        &.active {
            z-index: 2;
        }

        &:first-child {
            border-radius: var(--main-border-radius) 0 0 var(--main-border-radius);
            margin-right: -2px;
        }

        &:last-child {
            border-radius: 0 var(--main-border-radius) var(--main-border-radius) 0;
        }
    }
}

button {
    font-family: inherit;
    font-size: inherit;
    appearance: none;
    border: none;
    outline: 0;
    background: none;
}

.button {
    display: inline-block;
    margin-bottom: 20px;
    margin-right: 10px;
    padding: 10px 15px;
    border-radius: var(--main-border-radius);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    background-color: var(--dark-color);
    border: 1px solid var(--dark-color);
    color: var(--light-color);
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    font-size: inherit;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;

    &.button-icon {

        img,
        svg {
            margin-right: 0;
        }
    }

    img,
    svg {
        display: inline-block;
        max-height: 16px;
        vertical-align: middle;
        margin-right: 5px;
    }

    &:not(:disabled):not(.disabled):hover,
    &:not(:disabled):not(.disabled).active {
        background-color: var(--main-color);
        border-color: var(--main-color);
        color: var(--light-color);
    }

    &:not(:disabled):not(.disabled):focus {
        border-color: var(--main-color);
    }

    &.button-alt {
        background-color: var(--light-color);
        border-color: var(--border-color);
        color: var(--dark-color);

        &:not(:disabled):not(.disabled):hover,
        &:not(:disabled):not(.disabled).active {
            background-color: var(--darken-light-color);
            border-color: var(--border-color);
            color: var(--main-color);
        }

        &:not(:disabled):not(.disabled):focus {
            border-color: var(--main-color);
        }
    }

    &.button-primary {
        background-color: var(--main-color);
        border-color: var(--main-color);
        color: var(--light-color);

        &:not(:disabled):not(.disabled):hover,
        &:not(:disabled):not(.disabled).active {
            background-color: var(--darken-main-color);
            border-color: var(--main-color);
            color: var(--light-color);
        }
    }

    &.button-success {
        background-color: var(--success-color);
        border-color: var(--success-color);
        color: var(--light-color);

        &:not(:disabled):not(.disabled):hover,
        &:not(:disabled):not(.disabled).active {
            background-color: color-mix(in srgb, var(--success-color) 97%, black);
            border-color: var(--success-color);
            color: var(--light-color);
        }

        &:not(:disabled):not(.disabled):focus {
            border-color: var(--main-color);
        }
    }

    &.button-danger {
        background-color: var(--light-color);
        border-color: var(--border-color);
        color: var(--dark-color);

        &:not(:disabled):not(.disabled):hover,
        &:not(:disabled):not(.disabled).active {
            background-color: var(--error-color);
            border-color: var(--error-color);
            color: var(--light-color);
        }

        &:not(:disabled):not(.disabled):focus {
            border-color: var(--main-color);
        }
    }

    &.button-big {
        padding: 12px 18px;
        font-size: 1.1em;
    }

    &.button-small {
        padding: 5px 8px;
        font-size: 0.9em;
    }

    &.disabled {
        pointer-events: none;
    }

    &.full-width {
        display: block;
        margin-right: 0;
    }
}

/* CONTENT */

.content-page {
    img {
        margin-bottom: 20px;
    }
}

/* TABLE */

.table {
    margin-bottom: 20px;
    border-radius: var(--main-border-radius);
    border: var(--main-border);
    overflow-x: auto;

    table {
        width: 100%;
        border-radius: var(--main-border-radius);
        border-spacing: 0;
    }

    tr {
        background-color: var(--light-color);

        &:first-child {
            border-bottom: var(--main-border);

            th {
                background-color: var(--secondary-color);

                th {
                    &:first-child {
                        border-radius: var(--main-border-radius) 0 0 0;
                    }

                    &:last-child {
                        border-radius: 0 var(--main-border-radius) 0 0;
                    }
                }

                &:first-child {
                    border-radius: var(--main-border-radius) 0 0 0;
                }

                &:last-child {
                    border-radius: 0 var(--main-border-radius) 0 0;
                }
            }

            th,
            td {
                border-top: none;
            }
        }

        &:last-child {

            th,
            td {
                border-bottom: none;
            }
        }

        &:nth-child(odd) {
            background-color: var(--secondary-color);
        }
    }

    th,
    td {
        padding: 8px 10px;
        text-align: left;
        line-height: 1.2em;
        vertical-align: middle;

        &.featured {
            background-color: color-mix(in srgb, var(--main-color) 10%, transparent);
        }
    }

    th {
        font-weight: bold;
        font-size: 0.8em;
    }

    &.bigger {

        th,
        td {
            padding: 16px 10px;
        }
    }
}

/* CARDS */

.card {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: var(--main-border-radius);
    background-color: var(--light-color);
    box-shadow: var(--main-box-shadow);
    color: var(--dark-color);
    border: var(--main-border);

    &.card-highlight {
        border-color: var(--main-color);
        background-color: #fff;
        background-image: linear-gradient(45deg, rgba(72, 174, 250, 0.1) 0%, rgba(163, 215, 253, 0.55) 5%, #FFFFFF 50%);
    }

    &.card-secondary {
        background-color: var(--secondary-color);
    }

    &.card-big {
        padding: 40px;
    }

    &.clickable {
        padding: 0;
        transition: border 0.3s;

        &:hover {
            border-color: var(--main-color);
        }
    }

    &.xxl {
        padding: 80px 20px;
    }

    h3,
    h4 {
        margin-bottom: 10px;
    }

    h3 {
        line-height: 1.4em;
        font-weight: bold;
    }

    .illustration {
        margin-left: auto;
        margin-right: auto;
    }

    .card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 5px;

        .action {
            display: inline-block;
            padding: 5px 10px;
            border-radius: var(--main-border-radius);
            font-size: 0.8em;
            text-decoration: none;
            background-color: var(--secondary-color);
            color: var(--dark-color);

            &:hover {
                background-color: var(--darken-secondary-color);
            }
        }
    }
}

/* COLLAPSIBLE */

.collapsible {
    margin-bottom: 0;
    cursor: pointer;
    font-size: initial;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;

    &>svg.lucide {
        margin-right: 5px;
    }

    &.active+.collapsible-content {
        overflow: visible;
        max-height: initial;
        padding: 15px 20px;
    }
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;

    p {
        margin-bottom: 0;
    }
}

/* TABS */

.tabs {
    .tab {
        display: none;

        &.active {
            display: block;
        }
    }
}

/* ALERTS */

#alerts {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;

    .alert {
        opacity: 1;
        transition: opacity 1s linear;
        line-height: 1.2em;

        &.auto-hide {
            opacity: 0;
        }
    }
}

.alert {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px !important;
    padding: 15px 20px;
    border-radius: var(--main-border-radius);
    box-shadow: var(--main-box-shadow);
    background-color: var(--light-color);
    text-align: left;
    font-size: 14px !important;
    text-decoration: none;
    border: var(--main-border);
    border-left: 4px solid transparent;

    .button {
        align-self: flex-start;
    }

    &.alert-success {
        border-left-color: var(--success-color);
    }

    &.alert-success,
    &.alert-success a:not(.button) {
        color: var(--success-color);
    }

    &.alert-info {
        border-left-color: var(--main-color);
    }

    &.alert-info,
    &.alert-info a:not(.button) {
        color: var(--main-color);
    }

    &.alert-warning {
        border-left-color: var(--warning-color);
    }

    &.alert-warning,
    &.alert-warning a:not(.button) {
        color: var(--warning-color);
    }

    &.alert-error {
        border-left-color: var(--error-color);
    }

    &.alert-error,
    &.alert-error a:not(.button) {
        color: var(--error-color);
    }
}

/* PAGINATION */

.pagination {
    margin-top: 20px;

    .current,
    span a {
        display: inline-block;
        margin-right: 5px;
        padding: 5px 10px;
        font-weight: bold;
        box-shadow: var(--main-box-shadow);
        border: var(--main-border);
        background-color: var(--light-color);
        border-radius: var(--main-border-radius);
    }

    .current {
        color: var(--main-color);
    }

    span a {
        text-decoration: none;
    }
}

/* BADGES/STICKERS */

.badge {
    display: inline-block;
    padding: 2px 5px;
    border-radius: var(--main-border-radius);
    background-color: var(--main-color);
    color: var(--light-color);
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: normal !important;
    text-transform: none !important;
    line-height: initial !important;

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

    &.xl,
    &.xxl {
        padding: 5px 10px;
    }

    &.xxl {
        font-size: 1em;
    }

    &.badge-rounded {
        border-radius: 40px;
    }

    /* Colors */

    &.badge-light {
        background-color: var(--secondary-color);
        color: var(--dark-color);
        border-color: var(--darken-secondary-color);
    }

    &.badge-hoverable {
        cursor: pointer;
    }

    /* Borders */
    &.badge-border {
        border-style: solid;
        border-width: 1px;
    }

    /* Tags */

    &.badge-blue {
        background-color: color-mix(in srgb, var(--main-color) 10%, white);
        color: color-mix(in srgb, var(--main-color) 80%, black);
    }

    &.badge-green {
        background-color: color-mix(in srgb, var(--success-color) 10%, white);
        color: color-mix(in srgb, var(--success-color) 80%, black);
    }

    &.badge-orange {
        background-color: color-mix(in srgb, var(--warning-color) 10%, white);
        color: color-mix(in srgb, var(--warning-color) 80%, black);
    }

    &.badge-pink {
        background-color: color-mix(in srgb, var(--pink-color) 10%, white);
        color: color-mix(in srgb, var(--pink-color) 80%, black);
    }

    &.badge-purple {
        background-color: color-mix(in srgb, var(--purple-color) 10%, white);
        color: color-mix(in srgb, var(--purple-color) 80%, black);
    }

    &.badge-red {
        background-color: color-mix(in srgb, var(--error-color) 10%, white);
        color: color-mix(in srgb, var(--error-color) 80%, black);
    }

    &.badge-yellow {
        background-color: color-mix(in srgb, var(--yellow-color) 10%, white);
        color: color-mix(in srgb, var(--yellow-color) 80%, black);
    }

    /*  Sub-badges */

    .badge-subbadge {
        padding: 2px 5px;
        border-radius: 40px;
        background-color: var(--main-color);
        color: var(--light-color);
        white-space: nowrap;
        align-self: stretch;
    }

    &:has(> .badge-subbadge) {
        padding: 2px 5px 2px 2px;
    }
}

.sticker {
    display: inline-block;
    vertical-align: middle;
    height: 10px;
    width: 10px;
    border-radius: 100%;
    box-shadow: var(--main-box-shadow);

    &.sticker-success {
        background-color: var(--success-color);
    }

    &.sticker-warning {
        background-color: var(--warning-color);
    }

    &.sticker-error {
        background-color: var(--error-color);
    }
}

/* PROGRESS BAR */

.progress {
    margin-bottom: 20px;

    p {
        display: block;
        margin-bottom: 5px;
        color: var(--muted-color);
        font-size: 0.9em;
    }

    span {
        display: block;
        margin-bottom: 10px;
        font-weight: bold;
        white-space: nowrap;
    }

    &.progress-small {
        font-size: 0.7rem;
        font-weight: bold;

        p {
            color: var(--dark-color);
            font-size: inherit;
        }

        .progress-bar {
            height: 4px;
            border-radius: 0px;
        }
    }

    &.progress-darker {
        .progress-bar {
            background-color: var(--darken-secondary-color);
        }
    }

    .progress-bar {
        height: 10px;
        width: 100%;
        background-color: var(--secondary-color);
        border-radius: 4px;

        .value {
            height: 100%;
            max-width: 100%;
            border-radius: 4px;

            &.success {
                background-color: var(--success-color);
            }

            &.warning {
                background-color: var(--warning-color)
            }

            &.danger {
                background-color: var(--error-color);
            }
        }
    }
}

/* PROMOTE BLOCKS */

.promote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding-left: 80px;
    padding-right: 80px;
    background-color: var(--secondary-color);
    margin-bottom: 80px;

    .promote-content {
        width: 80%;
    }

    h2 {
        font-size: 36px;
        font-weight: bold;
    }

    strong {
        font-weight: normal;
    }
}

/* QRCODES */

#qrcode_editor {
    display: flex;
    gap: 40px;

    #qrcode_options {
        flex: 1;
    }

    #qrcode_result {
        #qrcode {
            margin-bottom: 20px;
        }
    }
}

/* DASHBOARD */

.tabs-links {
    margin-bottom: 20px;

    h2,
    ul,
    li {
        margin: 0 !important;
    }

    ul {
        display: flex;
        gap: 15px;

        li {
            list-style: none;
            cursor: pointer;
            text-transform: uppercase;
            font-weight: bold;
            font-size: 0.8em;

            &.active {
                text-decoration: underline;
                color: var(--main-color);
            }
        }
    }

    &.tabs-links-stylized {
        display: inline-block;
        margin-bottom: 40px;

        ul {
            gap: 5px;
            flex-wrap: wrap;
            padding: 5px;
            border-radius: var(--main-border-radius);
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            background-color: var(--light-color);
            border: 1px solid var(--border-color);

            li {
                padding: 5px 10px;
                border-radius: var(--main-border-radius);
                text-decoration: none;

                &:hover {
                    background-color: var(--secondary-color);
                }

                &.active {
                    background-color: color-mix(in srgb, var(--main-color) 10%, transparent);
                    color: var(--darken-main-color);
                }
            }
        }
    }
}

.toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    border-radius: var(--main-border-radius);

    &>div {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .action {
        font-weight: bold;
        padding: 8px 10px;
        border-radius: var(--main-border-radius);
        background-color: var(--light-color);
        border: var(--main-border);

        &:not(.disabled):hover {
            background-color: var(--darken-light-color);
        }

        &.disabled {
            cursor: auto;

            &:hover {
                color: unset;
            }
        }
    }

    form {
        margin-bottom: 0;
    }
}

/* LIST BOX */

.list-box {
    margin-bottom: 20px;
    border-radius: var(--main-border-radius);
    background-color: var(--light-color);
    box-shadow: var(--main-box-shadow);
    border: var(--main-border);
    color: var(--dark-color);

    &>div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        padding: 15px 20px;

        &:first-child {
            border-radius: var(--main-border-radius) var(--main-border-radius) 0 0;
        }

        &:last-child {
            border-radius: 0 0 var(--main-border-radius) var(--main-border-radius);
        }

        &:not(:last-child) {
            border-bottom: 1px solid var(--secondary-color);
        }

        .list-box-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
        }

        .button {
            white-space: nowrap;
            margin-bottom: 0 !important;
            margin-right: 0 !important;
        }
    }
}

/* TOOLTIPS */

.dropdown {
    &>a {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        padding: 10px;
        border-radius: 4px;
        max-width: 250px;

        img {
            height: 16px;
            width: 16px;
        }

        small {
            display: block;
            font-weight: bold;
        }

        &:hover {
            background-color: var(--lighten-main-color) !important;
        }
    }
}

.tippy-box {
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px !important;
    background-color: var(--light-color) !important;
    border-radius: var(--main-border-radius) !important;
}

.tippy-content {
    text-align: left;
    color: var(--dark-color);
    overflow-wrap: break-word;
    padding: 10px !important;
    font-weight: normal !important;
    text-transform: initial !important;
    font-size: 0.9rem;

    a {
        text-decoration: none;
    }
}

/* MODALS */

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

.modal {
    width: 600px;
    max-height: 90vh;
    padding: 0;
    border-radius: var(--main-border-radius);
    border: none;
    background-color: var(--secondary-color);
    overflow-y: auto;
    text-align: left;

    &.modal-big {
        width: 60%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
    }

    .modal-title {
        margin-bottom: 0;
        font-weight: bold;
        color: var(--dark-color);
    }

    .modal-footer {
        padding-top: 20px;
        border-top: 1px solid #e1e1e1;
        padding: 20px;
    }

    .modal-close {
        background-color: transparent;
        border: 0;
        cursor: pointer;
    }

    .modal-header .modal-close:before {
        content: '\2715';
    }

    .modal-content {
        color: var(--dark-color);
        padding: 0 20px;
        margin-bottom: 20px;
    }

    .button {
        margin-bottom: 0;
    }
}

/* ICONS */

.force-fill {
    fill: currentColor !important;

    path {
        fill: currentColor !important;
    }
}

svg.icon-medium,
.icon-medium img,
.icon-medium svg {
    height: 25px;
    width: 25px;
}

svg.icon-big,
.icon-big img,
.icon-big svg {
    height: 40px;
    width: 40px;
}

/* LOADER */

.animated-loader-icon {
    animation: loader 1.1s infinite linear;
}

.loader,
.loader:after {
    border-radius: 50%;
    width: 10em;
    height: 10em;
    overflow: hidden;
}

.loader {
    margin: 60px auto;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(0, 0, 0, 0.2);
    border-right: 1.1em solid rgba(0, 0, 0, 0.2);
    border-bottom: 1.1em solid rgba(0, 0, 0, 0.2);
    border-left: 1.1em solid var(--dark-color);
    transform: translateZ(0);
    animation: loader 1.1s infinite linear;
}

@-webkit-keyframes loader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* VARIOUS */

.favicon {
    height: 16px;
    width: 16px;
    max-width: initial;
}

/* HELPERS */

.full-width {
    width: 100%;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    width: 25px;
    border-radius: 100%;
    background-color: var(--main-color);
    color: var(--light-color);
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;

    &.avatar-xl {
        height: 40px;
        width: 40px;
        font-size: 1rem;
    }
}

.illustration {
    display: block;
    margin-bottom: 20px;
    max-width: 400px;
    max-height: 300px;

    &.illustration-small {
        height: 150px;
    }
}

.hoverable {
    cursor: pointer;
}

.blurred {
    filter: blur(1px);
}

.disabled,
:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.disabled {
    .button {
        pointer-events: none;
    }
}

.align-left {
    text-align: left !important;
}

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

.align-right {
    text-align: right !important;
}

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

.w-100-per {
    width: 100%;
}

.h-100-per {
    height: 100%;
}

.mw-70-per {
    max-width: 70%;
}

.mw-50-per {
    max-width: 50%;
}

.mw-30-per {
    max-width: 30%;
}

.hw-64 {
    height: 64px;
    width: 64px;
}

.m-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-80 {
    margin-bottom: 80px !important;
}

.mb-60 {
    margin-bottom: 60px !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-5 {
    margin-bottom: 5px !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mr-0 {
    margin-right: 0 !important;
}

.mr-10 {
    margin-right: 10px !important;
}

.mt-80 {
    margin-top: 80px !important;
}

.mt-40 {
    margin-top: 40px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mt-5 {
    margin-top: 5px !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.p-40 {
    padding: 40px;
}

.p-80 {
    padding: 80px;
}

.br-20 {
    border-radius: 20px;
}

.gap-15 {
    gap: 15px !important;
}

.fs-2 {
    font-size: 2rem;
}

.fs-3 {
    font-size: 3rem;
}

.fs-4 {
    font-size: 4rem;
}

.d-flex {
    display: flex;
    align-items: center;
    gap: 5px;

    svg {
        flex-shrink: 0;
    }
}

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

.d-flex-wrap {
    flex-wrap: wrap;
}

.d-gap-40 {
    gap: 40px !important;
}

.d-gap-20 {
    gap: 20px !important;
}

.d-gap-10 {
    gap: 10px !important;
}

.d-align-center {
    align-items: center;
}

.d-align-start {
    align-items: start;
}

.d-align-stretch {
    align-items: stretch;
}

.d-justify-center {
    justify-content: center;
}

.d-justify-between {
    justify-content: space-between;
}

.d-justify-around {
    justify-content: space-around;
}

.d-justify-left {
    justify-content: left;
}

.d-justify-right {
    justify-content: right;
}

.d-flex-item-expand {
    flex: 1;
}

.d-grid {
    display: grid;
    gap: 20px;
    grid-auto-rows: 1fr;

    &.d-grid-no-vertical-gap {
        row-gap: 0;
    }
}

.d-grid-no-auto-rows {
    grid-auto-rows: initial;
}

.d-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.d-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.d-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.d-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.d-grid-2-1 {
    grid-template-columns: 2fr 1fr;
}

.d-grid-item-2 {
    grid-column: span 2;
}

.d-grid-item-3 {
    grid-column: span 3;
}

.d-inline-block {
    display: inline-block !important;
}

.d-block {
    display: block !important;
}

.d-none {
    display: none !important;
}

.not-visible {
    opacity: 0 !important;
}

.action {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;

    &.danger {
        color: initial;

        &:hover {
            color: var(--error-color);
        }
    }

    &.action-tablet::after {
        content: "";
        position: absolute;
        top: -3px;
        right: -3px;
        width: 10px;
        height: 10px;
        background-color: var(--main-color);
        border-radius: 50%;
    }
}

.responsive-iframe {
    iframe {
        aspect-ratio: 16 / 9;
        width: 100%;
    }
}

/* TEXTS  */

.text-break {
    word-break: break-all;
    overflow-wrap: anywhere;
}

.text-no-break {
    white-space: nowrap;
}

.text-italic {
    font-style: italic;
}

.text-bold {
    font-weight: bold !important;
}

.text-normal {
    font-weight: normal !important;
}

.text-strike {
    text-decoration: line-through;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-no-decoration {
    text-decoration: none;
}

.text-border-both-sides {
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    overflow: hidden;
    font-size: 0.8em;
    font-weight: bold;

    &::before,
    &::after {
        background-color: #ccc;
        content: "";
        display: inline-block;
        height: 1px;
        position: relative;
        vertical-align: middle;
        width: 50%;
    }

    &::before {
        right: 0.5em;
        margin-left: -50%;
    }

    &::after {
        left: 0.5em;
        margin-right: -50%;
    }
}

.transparent-grid {
    background-color: #e8e8e8;
    background-image: repeating-linear-gradient(45deg, #b3b3b3 25%, transparent 25%, transparent 75%, #b3b3b3 75%, #b3b3b3), repeating-linear-gradient(45deg, #b3b3b3 25%, #e8e8e8 25%, #e8e8e8 75%, #b3b3b3 75%, #b3b3b3);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

.bg-gray {
    background-color: var(--muted-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.primary-gradient {
    background-image: var(--primary-gradient);
}

.colored-gradient {
    background-image: var(--colored-gradient);
    color: var(--light-color);
}

.small-title {
    display: block;
    margin-bottom: 10px;
    font-size: 0.8em;
    font-weight: bold;
}

.text-xs {
    font-size: 0.8rem;
}

.text-l {
    font-size: 1.6rem;
}

.text-xl {
    font-size: 2.4rem;
}

.text-xxl {
    font-size: 4rem;
}

.text-light {
    color: var(--light-color);
}

.text-primary {
    color: var(--main-color) !important;
}

.text-gray {
    color: var(--dark-color3) !important;
}

.text-danger {
    color: var(--error-color) !important;
}

.text-muted {
    color: var(--muted-color) !important;
}

.text-primary-gradient {
    background-image: var(--text-primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent !important;
    line-height: initial;
}

.text-yellow {
    color: var(--yellow-color) !important;
}

.text-pink {
    color: var(--pink-color) !important;
}

.success {
    color: var(--success-color) !important;
}

.warning {
    color: var(--warning-color) !important;
}

.error {
    color: var(--error-color) !important;
}

/* MEDIA QUERIES */

.hied-on-laptop {
    display: none !important;
}

@media screen and (max-width: 1279px) {
    .hied-on-laptop {
        display: initial !important;
    }
}

@media screen and (max-width: 1023px) {
    .hide-on-mobile {
        display: none !important;
    }

    .d-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .d-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .d-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .mw-30-per,
    .mw-50-per,
    .mw-70-per {
        max-width: initial;
    }
}

@media screen and (max-width: 639px) {
    .sm\:p-20 {
        padding: 20px;
    }

    .hide-mobile {
        display: none;
    }

    #alerts {
        width: 100%;
        padding: 0 20px;
    }

    h1 {
        font-size: 28px;
    }

    #qrcode_editor {
        flex-direction: column;
    }

    .promote {
        flex-direction: column;
        text-align: center;

        &.xxl {
            padding-top: 40px;
            padding-bottom: 40px;
        }

        .promote-content {
            width: initial;
        }

        h2 {
            font-size: 28px;
        }
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="number"],
    select,
    textarea,
    .form-group {
        min-width: initial;
    }

    .form-group {
        flex-direction: column;
        gap: 0;

        &>div {
            width: initial;
        }
    }

    .modal {
        width: 95%;

        &.modal-big {
            width: 100%;
        }
    }

    .list-box {
        &>div {
            flex-direction: column;
            align-items: flex-start;
        }
    }

    .d-flex-responsive {
        flex-direction: column;
        align-items: stretch;
    }

    .d-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .d-grid-4,
    .d-grid-3,
    .d-grid-2,
    .d-grid-2-1 {
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: initial;
    }

    .illustration {
        max-width: 100%;
    }
}