* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

@media (max-width: 800px) {
    html {
        font-size: 14px !important;
    }

    .no-small {
        display: none !important;
    }
}

body {
    padding: 0;
    margin: 0;
    font-family: "Roboto", "Segoe UI", sans-serif;
}

a {
	color: var(--accent-color) !important;
    text-shadow: none;
}

input,
.s-text-field__input > label {
    font-family: "Roboto", "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: normal !important;
}

input[type="color"] {
    width: 100%;
    height: 2rem;
    padding: 0 !important;
    margin-bottom: 1rem;
    cursor: pointer;
}

[title]:not(button) {
    border-bottom: 1px solid #fff;
    border-bottom-style: dashed;
}

th {
    text-align: left;
}

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

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

.primary-color.primary-color {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

button:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.content header {
    padding: 2rem;
    margin: -2rem -2rem 1.5rem;
    color: #fff;
    text-shadow: 0 0 7px rgba(0, 0, 0, 0.4);
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 2rem;
}

@media (max-width: 800px) {
    .content header {
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
    }
}

.content header h1 {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.3;
}

@media (max-width: 800px) {
    .content header h1 {
        padding-left: 3rem; /* space for menu */
        font-size: 2rem;
    }
}

.content header p {
    margin: 1rem 0 0;
    font-size: 1.1rem;
}

.content header a {
    color: #fff !important;
}

.content h2 {
    font-size: 1.5rem;
    margin: 0 0 2rem;
    line-height: 1;
}

.s-card-text h2 {
    margin: 3rem 0 2rem;
}

.content > p,
.content > p > a {
    color: #fff !important;
}

.panel {
    position: relative;
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
    /*overflow: hidden;*/
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.content .panel {
    padding: 2rem;
    margin: 2rem 0;
}

@media (max-width: 800px) {
    .content .panel {
        padding: 1rem;
        margin: 1rem 0;
    }
}

.content.chart {
    display: flex;
    flex-direction: column;
}

.s-app {
    background-color: unset !important;
}

.s-col {
    padding: 1rem !important;
}

.small-cols > .s-col {
    padding: 1rem 0.5rem !important;
}

.small-cols > .s-col:first-child {
    padding-left: 1rem !important;
}

.small-cols > .s-col:last-child {
    padding-right: 1rem !important;
}

@media (max-width: 800px) {
    main > .content > .s-row {
        display: block !important;
    }

    main > .content > .s-row > .s-col {
        padding: 0.5rem 1rem !important;
    }
}

.s-col .panel {
    margin: 0;
    height: 100%;
}

.s-col .s-select {
    width: 100%;
    margin-bottom: 1rem;
}

.no-margin .s-col .s-select {
    margin-bottom: 0;
}

.editable-list .s-col {
    display: flex;
    align-items: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.editable-list .heading .s-col {
    align-items: flex-end;
}

.editable-list .heading > * {
    width: 100%;
}

.editable-list .action-buttons .s-switch {
    display: inline-block;
    margin-top: 0.125rem;
    margin-bottom: 0;
    vertical-align: middle;
}

.s-input:not(:last-child) {
    margin-bottom: 1rem;
}

.s-card-text .s-input:not(.s-slider) {
    margin-top: 1.5rem;
}

.s-row {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
}

.s-col .s-input,
.s-col .input-caption {
    margin-top: 0 !important;
}

.s-btn:not(.primary-color) {
    color: var(--accent-color) !important;
}

.s-card-actions .s-btn {
    margin-right: 0.5rem;
}

.s-card .s-row {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    margin-top: 1rem;
}

.s-card .s-col {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.s-switch small {
    display: block;
    line-height: 1.4;
}

.s-dialog .s-switch {
    border-bottom: 1px solid #949494;
    padding-bottom: 1rem;
    padding-top: 0.5rem;
}

.s-dialog .s-switch .s-switch__wrapper {
    margin-right: 0.8rem;
}

.s-slider__label {
    margin: 0 !important;
}

.s-slider__tooltip {
    font-size: 0.6rem !important;
}

.slider-group .wrapper {
    margin: 0 !important;
}

.hint {
    font-size: 0.75rem;
    color: var(--theme-text-secondary);
}

.input-caption {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.75rem;
}

.input-hint {
    margin-top: -1rem;
    font-size: 0.75rem;
    opacity: 0.6;
}

.s-col .input-hint {
    margin-top: 0;
}

.large-top-margin {
    margin-top: 2.5rem;
}

.slider-caption {
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.slider-no-thumb-caption {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.vertically-centered {
    display: flex;
    align-items: center;
}

.s-dialog__content {
    overflow: hidden;
    /*height: 100%;*/
}

@media (max-width: 800px) {
    .s-dialog {
        left: 100vw !important;
        width: 100vw !important;
        height: 100vh !important;
    }
}

.s-dialog .s-card {
    display: flex;
    flex-direction: column;
    /*height: 100%;*/
    overflow: hidden;
}

.s-dialog .s-card .s-card-text {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.dropzone p {
    margin: 0;
}

.image-wrapper {
    position: relative;
}

.image-wrapper button {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
}

._toastItem {
    height: auto !important;
    padding: 0.5rem 0 1rem;
}

._toastMsg {
    padding-left: 1rem !important;
}

.image-in-dlg-wrapper {
    width: 10rem;
    height: 10rem;
    margin-bottom: 2rem;
}

.image-in-dlg-wrapper img {
    width: 100%;
    height: 100%;
}

.button-bar .buttons button {
    height: 1.5rem !important;
    min-width: 0 !important;
    padding: 0.5rem !important;
    font-size: 0.7rem;
    border: none;
    border-right: 1px solid #fff;
    border-radius: 0;
}

.button-bar .buttons button:first-child {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.button-bar .buttons button:last-child {
    border-right: none !important;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

:root {
    --litepicker-day-color-hover: var(--accent-color);
    --litepicker-is-in-range-color: #dcd5f8;
    --litepicker-is-start-color-bg: var(--accent-color);
    --litepicker-is-end-color-bg: var(--accent-color);
    --litepicker-container-months-box-shadow-color: rgba(0, 0, 0, 0.3);
}

ul.list-widget {
    padding: 0;
    margin: 0 -2rem;
    list-style-type: none;
}

@media (max-width: 800px) {
    ul.list-widget {
        margin: 0 -1rem;
    }
}

ul.list-widget li {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem 2rem;
    transition: background-color 0.3s ease;
}

ul.list-widget li:not(.heading) {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

ul.list-widget li:not(.heading):last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

ul.list-widget li:not(.heading):hover {
    background-color: rgba(255, 255, 255, 0.5);
}

ul.list-widget li.heading {
    font-weight: bold;
}

ul.list-widget li .content {
    flex: 1;
}

ul.list-widget .s-input {
    margin-top: 0 !important;
    margin-bottom: 0;
    margin-right: 1rem;
}

.s-chip {
    margin: 0.125rem;
}

.data-table-container th,
.data-table-container td {
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 800px) {
    .data-table-container th,
    .data-table-container td {
        font-size: 1rem;
    }
}

.data-table-wrapper .s-input {
    flex: 0;
}

.ll-floating-text {
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.2 !important;
}

.nav-buttons .s-btn {
    min-width: 2.25rem !important;
    padding: 0 !important;
    font-size: 1.2rem !important;
}

.square-button {
    width: 2.25rem !important;
    height: 2.25rem !important;
    min-width: 0 !important;
}

.s-chip {
    background-color: #fff !important;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.3);
    font-size: 2rem;
}

.statistics-action-buttons button,
.statistics-action-buttons a {
    height: 1.5rem !important;
    width: 1.5rem !important;
    padding: 0 !important;
}

.statistics-action-buttons button svg,
.statistics-action-buttons a svg {
    width: 1rem !important;
    height: 1rem !important;
}

.select-component .s-menu__wrapper {
    width: 100%;
}

.select-item-container {
    position: absolute;
    background-color: #fff;
    border-radius: 4px;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.select-item-container .s-text-field__wrapper {
    width: calc(100% - 2rem);
    margin: 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgb(148 148 148);
}

.select-item-container .s-text-field__wrapper::before,
.select-item-container .s-text-field__wrapper::after  {
    display: none;
}

.select-item-container input {
    display: block;
    height: 2rem;
    border: none;
    outline: none;
}

.select-item-container ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.select-item-container li {
    padding: 0.75rem 1rem;
    transition: background-color 0.4 ease;
    cursor: pointer;
}

.select-item-container li:hover {
    background-color: #f6f6f6;
}

.select-item-container li.is-focused {
    background-color: #ede3fe;
}

.actions .s-switch  {
    display: inline-block;
    margin: 4px 0 0;
    vertical-align: middle;
}

.text-field-with-buttons .s-input {
    margin-bottom: 0.5rem;
}

.text-field-with-buttons .buttons {
    margin-bottom: 1rem;
}

.is-dimmed {
    opacity: 0.4;
}

.paragraph-text * {
    line-height: 1.6;
}

.paragraph-text h1,
.paragraph-text h2,
.paragraph-text h3,
.paragraph-text p {
    font-weight: 600;
    margin: 0.5rem 0;
}

.paragraph-text h1 {
    font-size: 1.5rem;
}

.paragraph-text h2 {
    font-size: 1.3rem;
}

.paragraph-text h3 {
    font-size: 1.1rem;
}

.paragraph-text p,
.paragraph-text ul,
.paragraph-text ol {
    font-weight: 400;
    font-size: 1rem;
}

.paragraph-text blockquote {
    margin: 1rem 0;
    padding: 0.25rem 0 0.25rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;  
    border-left: 4px solid var(--accent-color);
}

.paragraph-text img {
    max-width: 100%;
}

.small-img-col {
    width: 5rem !important;
    flex-grow: 0 !important;
}

.small-img-col img {
    width: 3rem;
    height: 3rem;
}

.avatar-list-input .s-select,
.avatar-list-input .s-input {
    display: inline-block;
    vertical-align: top;
    margin-right: 0 !important;
}

.s-input div[slot="messages"] {
    line-height: 1.2;
    color: #888;
}

.color-sash {
    display: inline-block;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0.5rem 0.5rem 0 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    vertical-align: middle;
}

.color-sash.small {
    width: 2rem;
    height: 2rem;
}

.color-sash-caption {
    display: inline-block;
    vertical-align: middle;
    margin: 0.5rem 3rem 0 0;
}

.is-staff {
    filter: hue-rotate(45deg) brightness(1.3);
}

.is-mgmt {
    filter: hue-rotate(45deg) brightness(1.3);
    font-weight: 600;
}

.s-icon.success svg {
    fill: #4caf50;
}

.has-warning {
    color: #ff9800 !important;
}

.s-icon.warning svg {
    fill: #ff9800;
}

.has-error {
    color: #f44336 !important;
}

.s-icon.error svg {
    fill: #f44336;
}

.s-divider.vertical + button {
    margin-left: 0.5rem;
}

.spin {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}

.field-content .ql-toolbar {
    margin-top: 0.5rem !important;
}

.overlay {
    position: absolute;
    left: 0;
    top: 0;
}

.code textarea,
textarea.code {
    font-size: 0.7rem;
    font-family: monospace;
    line-height: 1.4 !important;
}