@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap');

/* Reset */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --TEXT-PRIMARY-COLOR: #212121;
    --BG-COLOR: #F5F5F5;
    --HEADER-BG-COLOR: rgb(0 0 0 / 10%);
    --MENU-BG-COLOR: #9E9E9E;
    --FOOTER-PRIMARY-COLOR: #ffffff;
    --FOOTER-SECONDARY-COLOR: #0277BD;
    --LINK-COLOR: #0277bd;
    --EMPHASIS-COLOR: #FF5722;
    --PRIMARY-COLOR: #1565c0;
    --SECONDARY-COLOR: #263238;
    --FORM-BG-COLOR: #ECEFF1;
    --INPUT-BG-COLOR: #345779;
    --DROP-MENU-BG-COLOR: #EEEEEE;
    --OUTLINE-COLOR: #9E9E9E;
    --SELECTION-COLOR: #d3d339;
}

::selection {
    color: #fff;
    background-color: #0277bd;
}

:focus {
    outline-offset: 1px;
    outline-style: solid;
    outline-width: 2px;
    outline-color: var(--OUTLINE-COLOR);
}

/* width */
::-webkit-scrollbar {
    width: 16px;
}

/* Track */
::-webkit-scrollbar-track-piece {
    background-color: rgb(0 0 0 / 10%);
    backdrop-filter: blur(3px);
    /* Adding border and/or radius causes the track to look splitted into 2 pieces with borders applied on both
    border: solid 1px rgb(0 0 0 / 20%);
    border-radius: 8px; */
}

/* Handle */
::-webkit-scrollbar-thumb {
    background-color: rgb(255 255 255 / 50%);
    border-radius: 8px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background-color: rgb(255 255 255 / 70%);
}

::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
    color: var(--TEXT-PRIMARY-COLOR);
}

/* Make sure placeholders displayed in the correct direction when element's dir attribute set to auto */
:placeholder-shown {
    direction: inherit;
}

::placeholder {
    color: #9e9e9e;
    opacity: 1;
}

::-webkit-calendar-picker-indicator {
    color-scheme: dark;
}

html {
    min-height: 100vh;
    scroll-behavior: smooth;
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* expand the body to cover all viewport height */
    max-width: 1520px;
    margin: auto;
    color: #212121;
    background-color: #f5f5f5;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
}

h1 {
    font-size: 1.5rem;
}

h1 i[class^='icon-'] {
    font-size: 2rem;
    vertical-align: bottom;
}

section {
    padding: 20px 0;
}

select,
option,
textarea,
input[type="text"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="email"],
input[type="file"] {
    padding: 5px;
    width: 100%;
    border: solid 1px #33444d;
    border-radius: 4px;
    outline-offset: 1px;
    color: var(--TEXT-PRIMARY-COLOR);
    background-color: transparent;
    backdrop-filter: brightness(1.2);
}

textarea {
    resize: vertical;
    min-height: 4rem;
    field-sizing: content;
}

/* Hiding spin buttons on number fields (Chrome, Safari, Edge, Opera) */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hiding spin buttons on number fields (Firefox) */
input[type=number] {
  -moz-appearance: textfield;
}

input[type=radio],
input[type=checkbox] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    vertical-align: top;
    accent-color: var(--BG-COLOR);
    cursor: pointer;
}

input[type=radio]:disabled,
input[type=checkbox]:disabled {
    cursor: auto;
}

form,
input,
button,
select,
option,
textarea {
    font: inherit;
    text-align: inherit;
}

/* Option cannot use transparency so backdrop filter */
option {
    background-color: var(--DROP-MENU-BG-COLOR);
}

[hidden],
.hidden,
.btn.hidden {
    display: none;
}

.center-center {
    display: grid;
    place-content: center;
}

.vertical-separator {
    border-left: groove 2px #12181b;
    margin: 1rem 10px;
}

.more {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    cursor: pointer;
}

.more:has(input:checked) {
    display: initial;
}

.more.clip-1 {
    -webkit-line-clamp: 1;
}

.more.clip-2 {
    -webkit-line-clamp: 2;
}

.more.clip-3 {
    -webkit-line-clamp: 3;
}

.more.clip-4 {
    -webkit-line-clamp: 4;
}

.more.clip-5 {
    -webkit-line-clamp: 5;
}

a {
    color: var(--LINK-COLOR);
    text-underline-offset: 2px;
}

em {
    color: var(--EMPHASIS-COLOR);
}

hr {
    margin: 0 auto 1rem auto;
    border: inset 1px #546e7a;
}

[data-title] {
    position: relative;
}

[data-title]::before {
    content: attr(data-title);
    visibility: hidden;
    position: absolute;
    padding: 5px 8px;
    bottom: calc(100% + 5px);
    border-radius: 4px;
    right: 0;
    color: #f5f5f5;
    background-color: #212121;
    overflow: hidden;
    font-weight: normal;
    letter-spacing: normal;
    text-align: start;
    text-transform: none;
    white-space: pre;
    z-index: 1;
    opacity: 0;
    transition: opacity .3s;
}

[data-title].title-left::before {
    right: auto;
    left: 0;
}

[data-title]::after {
    content: '';
    visibility: hidden;
    position: absolute;
    width: 0;
    height: 0;
    right: 50%;
    transform: translateX(50%);
    bottom: calc(100% + -2px);
    border-top: solid 8px #212121;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    text-transform: none;
    z-index: 1;
    opacity: 0;
    transition: opacity .3s;
}

[data-title]:hover::before ,
[data-title]:hover::after {
    visibility: visible;
    opacity: 1;
}

.width-25\% {
    width: 25% !important;
}

.width-33\% {
    width: calc(100% / 3) !important;
}

.width-50\% {
    width: 50% !important;
}

.width-66\% {
    width: calc(100% * 2 / 3) !important;
}

.width-75\% {
    width: 75% !important;
}

.width-100\% {
    width: 100% !important;
}

/* Form */
.form {
    max-width: 95%;
    margin: auto;
    padding: 20px;
    border: none;
    border-radius: 6px;
    background-color: var(--FORM-BG-COLOR);
}

.control-group {
    position: relative;
    margin-bottom: 15px;
    flex-grow: 1;
    width: 100%;
}

.control-group.hidden {
    display: none;
}

.control-group label {
    display: inline-block;
    margin-bottom: 3px;
}

.fieldset {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    border: none;
}

.fieldset.hidden {
    display: none;
}

fieldset,
fieldset.fieldset {
    padding: 8px;
    margin-bottom: 15px;
    border: solid 1px rgb(255 255 255 / 45%);
    border-radius: 4px;
}

fieldset.top-align,
.fieldset.top-align {
    align-items: start;
}

fieldset legend {
    padding: 0 4px;
    font-weight: normal;
}

fieldset .control-group {
    margin-bottom: 0;
}

.control {
    display: flex;
    flex-grow: 1;
    align-items: center;
    gap: 5px;
    position: relative;
}

.control label {
    margin-bottom: 0;
}

.control.no-gap {
    gap:0;
    margin: 0;
}

.form-actions {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 15px;
    position: sticky;
    margin: 10px 0 0 0;
    padding: 10px 0 0 0;
    bottom: 0;
    background-color: inherit;
}

.flex-right {
    margin-left: auto;
}

.flex-left {
    margin-right: auto;
}

/* Main Nav */
.main-nav {
    flex-grow: 1;
    font-size: .9rem;
}

.main-nav .menu {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 5px;
    height: 100%;
    list-style: none;
}

.main-nav .sub-menu {
    display: none;
    list-style: none;
    z-index: 1;
}

.main-nav .menu i {
    margin-inline-end: 4px;
    padding: 2px;
    font-size: 1rem;
    vertical-align: bottom;
}

.main-nav .menu li:focus-within .sub-menu {
    display: block;
}

.main-nav .menu .account {
    position: relative;
    cursor: pointer;
}

.main-nav .menu .account > a {
    padding: 4px;
}

.main-nav .menu .account .icon-user {
    margin-inline-end: 0;
    font-size: 1.2rem;
}

.main-nav .menu .account:focus-within > a {
    color: var(--TEXT-PRIMARY-COLOR);
    background-color: var(--MENU-BG-COLOR);
}

.sub-menu.account-menu {
    position: absolute;
    padding: 5px;
    top: 100%;
    right: 0;
    border-radius: 4px;
    background-color: rgb(207 216 220 / 85%);
    backdrop-filter: blur(3px);
}

.sub-menu.account-menu .account-name {
    margin-bottom: 5px;
    padding: 3px 10px 10px 3px;
    border-bottom: groove 2px;
    font-weight: bold;
    white-space: nowrap;
    cursor: auto;
}

.sub-menu.account-menu .account-role {
    color: #f44336;
    font-size: smaller;
    font-style: italic;
}

.sub-menu.account-menu li {
    margin-top: 2px;
}

.main-nav a {
    display: inline-block;
    padding: 8px 5px;
    width: 100%;
    color: inherit;
    border-radius: 2px;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.8rem;
    transition: color .3s, background-color .3s;
}

.main-nav a:hover {
    color: #fff;
    background-color: #1565c0;
}

.main-nav a:active {
    background-color: var(--HEADER-BG-COLOR);
}

.main-nav a.selected {
    color: #fff;
    background-color: #1565c0;
}

.main-nav .menu li a[data-title]:hover::before,
.main-nav .menu li a[data-title]:hover::after {
    visibility: hidden;
    opacity: 1;
    bottom: initial;
}

.main-nav .menu li a[data-title]:hover::before{
    top: calc(100% + 5px);
}

.main-nav .menu li a[data-title]:hover::after {
    top: calc(100% - 2px);
    border-bottom: #212121 solid 8px;
    border-top: 0;
}

/* Buttons */

button,
.btn {
    display: inline-block;
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    color: var(--TEXT-PRIMARY-COLOR);
    background-color: transparent;
    font-weight: normal;
    text-transform: uppercase;
    transition: opacity .3s;
}

button.btn-narrow,
.btn.btn-narrow {
    padding: 5px;
}

button label,
.btn label {
    display: inline;
    white-space: nowrap;
    cursor: pointer;
}

button.icon,
.btn.icon {
    width: 2.5rem;
}

button.with-icon,
.btn.with-icon {
    padding-left: 30px;
    background: no-repeat center left 10px;
    background-size: 14px;
}

button:hover,
.btn:hover {
    opacity: .8;
    backdrop-filter: brightness(0.8);
}

button:active,
.btn:active {
    opacity: 1;
    filter: contrast(1.5);
    backdrop-filter: contrast(0.3);
}

.badge {
    display: inline-block;
    padding: 5px;
    border: none;
    border-radius: 5px;
}

.btn-red {
    color: #f5f5f5;
    background-color: #c62828;
}

.btn-light-red {
    color: #f5f5f5;
    background-color: #f44336;
}

.btn-orange {
    color: #f5f5f5;
    background-color: #f57c00;
}

.btn-green {
    color: #f5f5f5;
    background-color: #388e3c;
}

.btn-yellow {
    color: #f5f5f5;
    background-color: #f9a825;
}

.btn-blue {
    color: #f5f5f5;
    background-color: #01579b;
}

.btn-violet {
    color: #f5f5f5;
    background-color: #6a1b9a;
}

.btn-gray {
    color: #f5f5f5;
    background-color: #757575;
}

.btn-light-gray {
    color: #f5f5f5;
    background-color: #757575;
}

.btn-asphalt {
    color: #f5f5f5;
    background-color: #37474f;
}

.btn-light-asphalt {
    color: #f5f5f5;
    background-color: #607d8b;
}

.btn-black {
    color: #f5f5f5;
    background-color: rgb(20 20 20 / 40%);
}

.btn-pink {
    color: #f5f5f5;
    background-color: #D81B60;
}

.btn-purple {
    color: #f5f5f5;
    background-color: #673AB7;
}

.btn-outline {
    padding: 9px;
    border: solid 1px #263238;
}

.btn:disabled {
    color: #9e9e9e;
    filter: saturate(0.2);
    cursor: auto;
}

.btn.search {
    margin-right: 5px;
    padding: 5px 15px;
    border-left-width: 1px;
    background-position: center;
}

/* Toolbar */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    position: sticky;
    top: 54px;
    margin: 1rem 0;
    padding: 5px;
    border-radius: 4px;
    background-color: rgb(96 124 138 / 30%);
    backdrop-filter: blur(3px);
    z-index: 2;
}

.toolbar-group {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
}

.toolbar-group.pagination {
    position: relative;
    margin-left: auto;
}

.toolbar-group.pagination .current-page{
    position: absolute;
    width: 100%;
    top: -1.2rem;
    left: 0;
    text-align: center;
    font-size: 0.7rem;
}

.toolbar input,
.toolbar button {
    width: auto;
}

.toolbar .page-number {
    width: 3rem;
    text-align: center;
}


/* Toast Message */
.toast-messages-container {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 5px;
    position: fixed;
    margin-block: 10px;
    bottom: 0;
    right: 0;
    width: 400px;
    max-width: 90%;
    max-height: calc(100vh - 20px);
    overflow: hidden auto;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    z-index: 2000;
}

.toast-message {
    width: 100%;
    max-width: 400px;
    padding: 10px 40px 10px 10px;
    transform: translateX(calc(100% + 5px));
    border-radius: 6px;
    border: solid 1px #212121;
    border-left-width: 10px;
    line-height: 1.5;
    color: #212121;
    background-color: #fff;
    box-shadow: 2px 4px 10px #212121;
    transition: transform .3s;
}

.toast-message.show {
    transform: translateX(0);
}

.toast-message .close {
    display: inline-block;
    position: absolute;
    width: 24px;
    height: 24px;
    top: 5px;
    right: 5px;
    border-radius: 50%;
    line-height: 24px;
    color: #fff;
    background-color: #212121;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
}

.toast-message.exception,
.toast-message.reference_error,
.toast-message.error {
    border-color: #ff5722;
}

.toast-message.info {
    border-color: #0277bd;
}

.toast-message.warning,
.toast-message.validation_error {
    border-color: #ffc900;
}

.toast-message.success {
    border-color: #93c34b ;
}

/* Data Editor */

/* Using dialog semantic element in non-modal way as it will cover notifications and there is no way to play with z-index in this mode */
.modal{
    display: none;
    position: fixed;
    overflow: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    /* Reset for dialog element if used */
    margin: auto;
    border: none;
    color: inherit;
    background: none;
    width: auto;
    height: auto;
}

.modal.show,
.modal[open]{
    display: flex;
    flex-direction: column;
    backdrop-filter: brightness(0.5) blur(3px);
}

/* .modal.show {
    display: block;
    backdrop-filter: brightness(0.5) blur(3px);
} */

.entry-modal.search .control-group:not([searchable]) {
    display: none;
}

.entry-modal.search fieldset:not(:has([searchable])) {
    display: none;
}

*[search-only] {
    display: none;
}

.entry-modal.search *[search-only] {
    display: revert;
}

.entry-modal.search *[input-only] {
    display: none;
}

.entry-modal.search .required::after {
    display: none;
}

.modal h2 ,
dialog h2 {
    position: sticky;
    top: 0;
    margin-bottom: 1rem;
    padding: 5px 0;
    color: var(--TEXT-PRIMARY-COLOR);
    background-color: inherit;
    z-index: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 4px;
    position: sticky;
    top: 0;
    margin-bottom: 1rem;
    padding: 5px 0;
    color: var(--TEXT-PRIMARY-COLOR);
    background-color: inherit;
    z-index: 1;
}

.modal-header .close {
    padding: 10px;
    border: none;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
}

/* Information card */
.info-card.block {
    display: block;
    position: static;
    top: auto;
}

.info-card.block h1 {
    display: block;
}

.info-card .info-group {
    background-color: rgb(0 0 0 / 50%);
    border: none;
    font-size: 1.1rem;
}

.info-card .info-spacer {
    border: none;
    height: 1rem;
}

.entry-modal .form,
.info-card .form {
    width: min(600px, 95%);
}

.info-card table {
    table-layout: fixed;
    width: auto;
    min-width: 100%;
    border-spacing: 0;
}

.info-card th,
.info-card td {
    padding: 5px;
    border-bottom: #9e9e9e dashed 1px;
    vertical-align: top;
    font-weight: normal;
    text-align: start;
}

.info-card th {
    width: 1%;
    padding-right: 10px;
    text-transform: uppercase;
    font-weight: bold;
    white-space: nowrap;
}

.info-card tr:last-child th,
.info-card tr:last-child td {
    border: none;
}

.info-card .info-data {
    white-space: pre-wrap;
    word-break: break-word;
}

.info-card a {
    color: #4FC3F7;
    text-decoration: none;
}

.info-card .info-photo {
    width: 118px;
    border: dashed 1px #9e9e9e;
    border-radius: 4px;
    text-align: center;
}

.info-card .info-photo img {
    max-width: 100%;
    height: 118px;
    object-fit: scale-down;
}

/* Data Grid */
.data-grid-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
}

.data-grid tbody:empty::before {
    content: '';
    display: table-row;
    height: 2rem;
}

/* Upload progress */
.loading-wrapper {
    position: fixed;
    padding: 5px 10px;
    width: min(280px, 90%);
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    border-radius: 10px;
    color: #fff;
    background-color: rgb(0 0 0 / 90%);
    backdrop-filter: blur(2px);
    box-shadow: #000 5px 5px 10px;
    text-align: center;
    z-index: 1005;
}

.loading-wrapper .loading i {
    display: inline-block;
    vertical-align: middle;
    animation: spin infinite linear .4s;
}

.loading-wrapper .progress-bar {
    width: 100%;
}

@keyframes spin {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 180deg;
    }
    
}


.data-grid {
    min-width: 100%;
    border-collapse: collapse;
    border-bottom: solid 1px #607D8B;
    text-align: left;
    font-size: 0.9rem;
}

.data-grid thead {
    border-bottom: solid 1px #607D8B;
}

.data-grid caption ,
.table-caption {
    margin: 5px 0;
    caption-side: bottom;
    text-align: start;
    color: #455A64;
    font-size: smaller;
    font-style: italic;
}

.data-grid tbody {
    color: inherit;
}

.data-grid tbody tr {
    transition: background-color .3s;
}

.data-grid tbody tr:where(:nth-child(even)) {
    background-color: rgb(96 125 139 / 10%);
}

.data-grid tbody tr:hover{
    background-color: rgb(84 110 122 / 20%);
}

.data-grid tbody tr.selected{
    background-color: #ffeb3b;
}

.data-grid th,
.data-grid thead td {
    font-weight: bold;
    padding: 5px;
    color: inherit;
    white-space: nowrap;
}

.data-grid th.actions,
.data-grid th[data-class='actions'] {
    display: none;
}

.data-grid td {
    /* Fit content by default */
    width: 1%;
    padding: 10px 10px;
    vertical-align: middle;
    white-space: nowrap;
}

.data-grid tbody td.actions {
    position: sticky;
    padding: 0;
    right: 0;
    width: 0;
}

.data-grid tbody td.actions .actions-separator {
    border-left: 1px solid rgb(255 255 255 / 40%);
    border-right: 1px solid rgb(0 0 0);
    margin: 4px 0;
}

.data-grid tbody td.actions .buttons {
    display: inline-flex;
    position: absolute;
    padding: 4px;
    top: 0;
    right: 0;
    gap: 4px;
    border-radius: 4px;
    background-color: rgb(0 0 0 / 70%);
    visibility: hidden;
    opacity: 0;
    transition: visibility .3s, opacity .3s;
}

.data-grid tbody tr:hover td.actions .buttons {
    visibility: visible;
    opacity: 1;
}

.data-grid tbody td.actions button,
.data-grid tbody td.actions .btn {
    padding: 8px;
}

.data-grid td.wrap {
    white-space: initial;
    width: auto;
}

.data-grid td.pre-wrap {
    white-space: pre-line;
    word-break: break-word;
    width: auto;
}

.data-grid .money {
    text-align: right;
}

.data-grid .auto-width {
    width: auto;
    white-space: initial;
}

.data-grid .vertical-writing {
    writing-mode: sideways-lr;
    white-space: initial;
}

.data-grid .col-40 {
    min-width: 40px;
    max-width: 40px;
    white-space: initial;
}

.data-grid .col-80 {
    min-width: 80px;
    max-width: 80px;
    white-space: initial;
}

.data-grid .col-100 {
    min-width: 100px;
    max-width: 100px;
    white-space: initial;
}

.data-grid .col-120 {
    min-width: 120px;
    max-width: 120px;
    white-space: initial;
}

.data-grid .col-150 {
    min-width: 150px;
    max-width: 150px;
    white-space: initial;
}

.data-grid .col-200 {
    min-width: 200px;
    max-width: 200px;
    white-space: initial;
}

.data-grid .col-250 {
    min-width: 250px;
    max-width: 250px;
    white-space: initial;
}

.data-grid .col-300 {
    min-width: 300px;
    max-width: 300px;
    white-space: initial;
}

.data-grid .col-350 {
    min-width: 350px;
    max-width: 350px;
    white-space: initial;
}

.data-grid .col-400 {
    min-width: 400px;
    max-width: 400px;
    white-space: initial;
}

.data-grid .text-start {
    text-align: start;
}

.data-grid .text-end {
    text-align: end;
}

.data-grid .text-center {
    text-align: center;
}


/* Utilities */
.hint {
    color: #424242;
    font-size: smaller;
    font-style: italic;
}

.smaller {
    font-size: smaller;
    font-style: italic;
}

.validity {
    vertical-align: text-top;
    white-space: nowrap;
    color: #F44336;
    font-size: smaller;
}

.validity[data-title] {
    position: initial;
    cursor: pointer;
}

.validity[data-title]::before {
    right: auto;
    left: 0;
    white-space: pre-line;
    background-color: rgb(0 0 0 / 90%);
}

.validity[data-title]::after {
    right: auto;
    left: 4px;
    transform: translateX(0);
}

.maintenance-mode {
    position: fixed;
    top: 0;
    padding: 0.5rem 1rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 4px 4px;
    color: #fff;
    background-color: #212121;
    font-size: smaller;
    white-space: nowrap;
    z-index: 2000;
}



/* GDPR */
.gdpr-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    color: #fff;
    background-color: rgba(0, 0, 0, .6);
    backdrop-filter: blur(3px);
    line-height: 2.3rem;
}

.gdpr-consent .btn{
    float: right;
}

/* Footer */
footer.main-footer {
    padding: 1rem;
    color: #fff;
    background-color: #546e7a;
    text-align: center;
    font-size: smaller;
    line-height: 1.4;
}

.main-footer .last-update {
    margin-top: 0.5rem;
}

.required::after {
    content: '*';
    margin-inline-start: 4px;
    color: #F44336;
}

.show-password {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 8px;
    border-radius: 4px;
    color: var(--TEXT-PRIMARY-COLOR);
    font-size: 1.3rem;
    cursor: pointer;
}

.show-password:active {
    background-color: #2a333c;
}

.prompt-modal {
    --TEXT-COLOR: var(--TEXT-PRIMARY-COLOR);
    --BG-COLOR: var(--FORM-BG-COLOR);
}

.list label:not(.list-group).selected .hint,
.list label:not(.list-group):hover .hint{
    color: #37474f;
}

.list-clear-button {
    position: absolute;
    padding: 7px;
    right: 1px;
    top: 1px;
}

.reports-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: max-content;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: rgb(0 0 0 / 80%);
    box-shadow: rgb(0 0 0 / 50%) 10px 10px 10px;
}

button.reports-button:hover {
    opacity: 1;
}

.reports-button:focus-within .reports-list {
    display: block;
}

.reports-list li {
    display: block;
    padding: 8px;
}

.reports-list li .icon {
    margin-right: 6px;
    padding: 5px 6px;
    border-radius: 2px;
    background-color: #455A64;
}

.reports-list li a {
    text-decoration: none;
    outline: none;
}

.reports-list li.list-separator hr {
    margin: 0;
    user-select: none;
}

.reports-list li:hover:not(.list-separator),
.reports-list li:focus:not(.list-separator) {
    background-color: #607d8b;
}

/* --------------- Main layout --------------- */
header.main-header {
    display: flex;
    position: sticky;
    top: 0;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 5px 10px;
    color: #000;
    background-color: rgb(0 0 0 / 5%);
    backdrop-filter: blur(4px);
    box-shadow: #000 0 0 15px -5px;
    z-index: 2;
}

header.main-header:focus-within {
    z-index: 3;
}

header.main-header .logo {
    display: inline-block;
    vertical-align: middle;
}

.copyright em {
    color: #FFEB3B;
}

@media (max-width: 1170px){
    header.main-header h1 span {
        display: none;
    }
}

@media (max-width: 600px){
    .copyright-design {
        display: flex;
        flex-direction: column;
        gap: .5rem;
    }

    .copyright-design .comma {
        display: none;
    }

    .fieldset {
        flex-basis: 100%;
    }

    .info-card table ,
    .info-card tbody ,
    .info-card tr ,
    .info-card th ,
    .info-card td {
        display: block;
        width: auto;
    }
    
    .info-card th {
        border: none;
    }

    .info-card tr {
        margin-bottom: 1rem;
    }
}

@media (max-width: 890px){
    .main-nav .menu li a[data-title]:hover::before,
    .main-nav .menu li a[data-title]:hover::after {
        visibility: visible;
        opacity: 1;
        z-index: 2;
    }

    .main-nav .menu li > a i {
        margin-inline-end: 0;
    }

    .main-nav .menu li > a span {
        display: none;
    }

    button label,
    .btn label {
        display: none;
    }

    .vertical-separator {
        display: none;
    }
}

header.main-header .logo img {
    height: 70px;
}

.main-layout main {
    flex-grow: 1;
    padding: 0 10px;
}


/* --------------- Blank layout --------------- */
/* Login views */
.blank-layout.login-view main {
    flex-grow: 1;
    display: flex;
}

.blank-layout.login-view .login {
    width: 400px;
    box-shadow: none;
}

.blank-layout.login-view .login h1 {
    margin-bottom: 1rem;
}

.blank-layout.login-view .logo {
    max-width: 100%;
    vertical-align: middle;
}

.blank-layout.login-view .form-actions {
    position: initial;
    padding: initial;
    bottom: initial;
    background-color: initial;
}

/* Error view */
.blank-layout.error-view {
    color: #e0e0e0;
}

.blank-layout.error-view main {
    flex-grow: 1;
    display: flex;
}

.blank-layout.error-view .container {
    margin: auto;
    max-width: 95%;
    text-align: center;
}


.blank-layout.error-view h1,
.blank-layout.error-view h2 {
    margin-bottom: 1rem;
    font-weight: normal;
}

/* All pages */
.page-wrapper {
    margin: auto;
    padding: 0;
    max-width: 1000px;
}

header.page-title {
    text-align: center;
    padding: 1rem 0;
    margin-block-end: 2rem;
    background-color: #CFD8DC;
    margin-inline: -10px;
}


/* My profile view */
.my-profile-view .my-profile-header {
    margin-bottom: 1rem;
}

.my-profile-view .form-actions {
    position: initial;
    padding: initial;
    bottom: initial;
    background-color: initial;
}

/* Home view */
.home-view main {
    margin-block-start: -78px;
    padding: 0;
}

.home-view header.main-header {
    background-color: rgb(255 255 255 / 36%);
}

.home-view .hero {
    margin-top: -9px;
}

.home-view .slide .hero-content {
    position: absolute;
    margin: 0 5%;
    height: 100%;
    top: 0;
    align-content: center;
    text-align: center;
    color: #fff;
    width: 90%;
}

.home-view .slide .hero-content > * {
    margin: 5px auto;
    padding: 10px;
    width: fit-content;
    max-width: min(95%, 800px);
    border-radius: 5px;
    background-color: #00000095;
    backdrop-filter: blur(5px);
}

.home-view .slide .hero-content > h2 {
    font-size: clamp(1.5rem, 1.5rem + 0.5vw, 2.5rem);
}

.home-view .slide .hero-content > p {
    font-size: clamp(1rem, 1rem + 0.5vw, 2rem);
}

.home-view .slide .certificate-verification {
    position: absolute;
    margin: auto;
    padding: 20px 10px;
    bottom: 75px;
    left: 50%;
    translate: -50%;
    color: #fff;
    background-color: #4caf50;
    text-align: center;
    font-size: 1.2rem;
    z-index: 1;
}

.home-view .about {
    margin-block: 4rem;
    font-size: 1.2rem;
    text-align: center;
}

.home-view .about h2 {
    margin-block-end: 1rem;
}

.home-view .approvals {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-block: 4rem;
}

.home-view .approvals > * {
    max-height: clamp(100px, calc(100px + 8vw), 200px);
    object-fit: contain;
}

/* Services view */
.services-view h3,
.services-view h4 {
    margin-block-end: 1rem;
    font-weight: bold;
}

.services-view .info-group {
    margin-block-end: 1rem;
}

.services-view main ul {
    padding: .5rem 2rem;
}

.services-view section header h3 {
    background-color: #FFEB3B;
    display: inline-block;
    padding: 10px;
    border-radius: 4px;
}

/* Contact view */
.contact-view .address-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-view .address-container img {
    max-width: 300px;
}

.contact-view dl {
    margin-block-start: 1rem;
}

.contact-view dl a {
    text-decoration: none;
}

.contact-view dl div {
    display: flex;
    margin-block-end: 1rem;
}

.contact-view dl dt {
    flex-basis: 7rem;
    font-weight: bold;
    white-space: nowrap;
}

.contact-view dl dt i {
    font-size: 2rem;
    vertical-align: middle;
}

.contact-view dl dt::after {
    content: ':';
}

.contact-view dl dd {
    line-height: 2rem;
}

.contact-view .map h3 {
    margin-block-end: 1rem ;
}

.contact-view .map {
    text-align: center;
    margin-block: 40px;
}

.contact-view .map iframe {
    width: 100%;
}

@media (max-width: 770px){
    .contact-view .address-container {
        flex-direction: column;
    }
}

/* Dashboard view */
.dashboard-view .section {
    margin-top: 20px;
    padding: 0;
    color: #fff;
}

.dashboard-view .section h2 {
    position: sticky;
    top: 54px;
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    background-color: #607D8B;
    z-index: 1;
}

.dashboard-view .section .items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: start;
    padding: 10px;
}

.dashboard-view .section .items a {
    position: relative;
    flex-basis: 200px;
    padding: 10px;
    border-radius: 6px;
    background-color: #607D8B;
    background-image: linear-gradient(45deg, rgb(0 0 0 / 30%), transparent);
    color: #fff;
    text-decoration: none;
    text-align: center;
    transition: filter .3s;
}

.dashboard-view .section .items a:hover,
.dashboard-view .section .items a:focus {
    filter: brightness(1.3);
}

.dashboard-view .section .items a:active{
    filter: brightness(.9);
}

.dashboard-view .section .items i {
    font-size: 2.5rem;
}

.dashboard-view .section .items h3 {
    margin-top: 1rem;
}

.dashboard-view .section .items .stats {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 10px;
    background-color: rgb(0 0 0 / 50%);
    border-radius: 0 6px 0 4px;
}

.dashboard-view .notification {
    display: none;
    position: fixed;
    top: 60px;
    width: 90%;
    max-width: 600px;
    border-radius: 6px;
    border: solid 2px #F44336;
    color: #000;
    background-color: #EEEEEE;
    background-image: linear-gradient(45deg, rgb(0 0 0 / 10%), transparent);
    z-index: 999;
    box-shadow: #000 0 0 10px;
}

.dashboard-view .notification.show {
    display: flex;
}

.dashboard-view .notification .icon {
    display: flex;
    align-items: center;
    padding: 10px;
    font-size: 3rem;
    color: #EEEEEE;
    background-color: #F44336;
}

.dashboard-view .notification .message {
    padding: 10px 20px;
}

.dashboard-view .notification h2 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.dashboard-view .notification .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 600px){
    .dashboard-view .section .items {
        justify-content: center;
    }

    .dashboard-view .section .items a {
        padding: 5px 10px;
    }
}
