/* config-contents.xcss */
.config-header {
    background-color: var(--bg-200);
    position: sticky;
    top: 40px;
    padding: 8px;
    border: 1px solid var(--bg-300);
    border-radius: 6px;
    box-shadow: 0 4px 15px 0 #00000066;
    width: 100%;
    height: auto;
    z-index: 50;
}

.config-contents > .content-title {
    margin-bottom: 1.5em;
    font-size: 27px;
    font-weight: 300;
}

.config-contents > .content-title > i {
    opacity: .5;
}

.config-contents + .config-contents {
    margin-top: 8em;
    border-top: 3px solid var(--bg-200);
    padding-top: 2em;
}
/* command-label.xcss */
.command-label {
    display: block;
    opacity: .8;
    cursor: pointer;
    line-height: 1.5;
    user-select: none;
}

.command-label:has(input:checked) {
    opacity: 1;
}

.command-label:hover {
    opacity: .9;
}

.command-label + .command-label {
    margin-top: .8em;
}
/* global.xcss */
:root {
    --primary-color: #00bac7;
    --primary-color-highlight: #61f4ff;
    --primary-color-opaque: #61f4ff44;
    --acrylic-outer: black;
    --acrylic-inner: #ffffff42;
    --bg-000: #000;
    --bg-100: #1c1d1f;
    --bg-200: #28292c;
    --bg-300: #38393d;
    --fr-100: #f5f5f5;
    --fr-200: #bbb;
    color-scheme: dark;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    background-color: var(--bg-100);
    color: var(--fr-100);
    width: 100%;
    min-height: 100svh;
    scroll-behavior: smooth;
}

body.operator-page {
    padding-block: 40px 80px;
}

body.operator-page main {
    margin: 10px auto 0 auto;
    padding-left: 100px;
    width: 1200px;
    max-width: 85svw;
}

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

.featured-text {
    font-weight: 500;
    color: var(--primary-color);
}

.muted-text, .muted {
    opacity: .7;
}

section + section {
    margin-top: 2em;
}

@media (prefers-color-scheme: light) {
    :root {
        --primary-color: #0b818a;
        --primary-color-highlight: #10676e;
        --primary-color-opaque: #0b818a44;
        --acrylic-outer: white;
        --acrylic-inner: #00000022;
        --bg-000: #fff;
        --bg-100: #f5f5f5;
        --bg-200: #e0e0e0;
        --bg-300: #c0c0c0;
        --fr-100: #333;
        --fr-200: #555;
        color-scheme: light;
    }
}
/* auth.xcss */
.auth-page {
    background: radial-gradient(circle, var(--bg-200) 0%, var(--bg-100) 100%), #303030;
}

.auth-page > main {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    overflow: hidden;
    background-color: var(--bg-100);
    border-radius: 8px;
    border: 1px solid var(--acrylic-inner);
    outline: 1px solid var(--acrylic-outer);
    box-shadow: 0 6px 10px 0 #00000042,
            0 10px 45px 0 #00000083;
}

.auth-page > main > img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid var(--acrylic-inner);
}

.auth-page > main > div {
    padding: 20px;
}

.auth-page > main > div h4 {
    font-size: 1rem;
    text-align: center;
    font-weight: 500;
    margin: 0 0 1em 0;
    text-shadow: 0 2px 0 var(--bg-000);
}

.auth-page > main > div .login-part > label {
    display: block;
    font-size: 0.7rem;
    color: var(--fr-200);
    margin-bottom: .5rem;
}

.auth-page > main > div .login-part + .login-part {
    margin-top: 1rem;
}
/* command.xcss */
.command.disabled {
    pointer-events: none;
    opacity: .6;
    filter: grayscale(1);
}

textarea.command {
    resize: vertical;
}

textarea.command.code-editor {
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    word-wrap: pre;
}

:is(input, textarea, select).command {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    background-color: var(--bg-200);
    color: var(--fr-100);
    border: 1px solid var(--bg-300);
    border-radius: 4px;
    padding: 4px 10px;
    outline: 1px solid #00000033;
    box-shadow: 0 2px 3px 0 #00000034;
}

:is(input, textarea, select).command:hover {
    outline-color: var(--primary-color);
}

:is(input, textarea, select).command:active, :is(input, textarea, select).command:focus {
    border-color: var(--primary-color);
    outline: 3px solid var(--primary-color-opaque);
    background-color: var(--bg-000);
}

button.command, .button.command {
    position: relative;
    display: inline-block;
    font-family: inherit;
    font-size: .9rem;
    background: linear-gradient(#323232 0%, #242424 65%, #161616 100%), #303030;
    color: var(--fr-100);
    border: 1px solid #555;
    border-radius: 3px;
    padding: 4px 16px;
    text-decoration: none;
    box-shadow: 0 1px 4px #0003, inset 0 0 1px #141414, inset 0 0 3px #00000080;
    text-shadow: 0 1px 1px #00000059;
    cursor: pointer;
}

button.command:hover, .button.command:hover {
    box-shadow: 0 3px 4px 0 #00000044,
            inset 0 -3px 7px 2px #00000010;
    background: linear-gradient(#424242 0%, #292929 65%, #222222 100%), #444444;
}

button.command:active, .button.command:active {
    background: var(--bg-100);
    outline: 3px solid var(--primary-color-opaque);
    border-color: var(--primary-color);
    opacity: .6;
}

button.command > i, .button.command > i {
    font-size: 1.1em;
    margin-right: 5px;
}

button.command.toggle:has(input:checked), .button.command.toggle:has(input:checked) {
    background-color: var(--primary-color);
    border-color: var(--primary-color-opaque);
}

button.command.toggle input, .button.command.toggle input {
    display: none;
}

button.command.sm, .button.command.sm {
    padding: 2px 4px;
    font-size: .85rem;
}

.command-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 3px;
}

.command-strip > .separator {
    border-left: 1px solid var(--bg-200);
    padding-left: 15px;
    margin-left: 15px;
}

.command-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.command-group > label {
    break-inside: avoid;
    font-size: .9rem;
    color: var(--fr-200);
    white-space: nowrap;
}

@media (prefers-color-scheme: light) {
    button.command, .button.command {
        background: linear-gradient(#f0f0f0 0%, #e0e0e0 65%, #d0d0d0 100%), #e5e5e5;
        color: var(--fr-100);
        border: 1px solid #aaa;
        box-shadow: 0 1px 4px #00000015, inset 0 0 1px #ffffff, inset 0 0 3px #ffffff80;
        text-shadow: 0 1px 1px #ffffff59;
    }

    button.command:hover, .button.command:hover {
        box-shadow: 0 3px 4px 0 #00000022,
                inset 0 -3px 7px 2px #00000008;
        background: linear-gradient(#ffffff 0%, #f0f0f0 65%, #e8e8e8 100%), #f5f5f5;
    }

    button.command > i, .button.command > i {
        text-shadow: 0 1px 1px #00000074;
    }
}
/* nav.xcss */
.heading {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    height: 36px;
    background-color: var(--bg-100);
    z-index: 9999;
    overflow: hidden;
    box-shadow: 0 1px 6px 0 #00000074;
    border-bottom: 1px solid var(--bg-200);
}

.heading > div {
    display: flex;
    align-items: center;
    height: 100%;
}

.heading > div > img.v7-logo {
    height: 16px;
    margin-right: 20px;
}

.heading > div > .system-logo-wrapper {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background-color: #666;
    border-left: 1px solid var(--acrylic-inner);
    border-right: 1px solid var(--acrylic-inner);
    outline: 2px solid var(--acrylic-outer);
    height: 100%;
}

.heading > div > .system-logo-wrapper > img {
    height: 30px;
    width: auto;
}

.heading > div > .system-switch {
    font-size: 16px;
    background-color: transparent;
    border: none;
    outline: none;
    padding: 2px 15px;
    margin-right: 5px;
    opacity: .5;
    cursor: pointer;
}

.heading > div > .system-switch:hover {
    opacity: 1;
}

.heading > div > h3 {
    font-size: 1.25rem;
    letter-spacing: 4px;
    margin: 0;
    color: #777;
    text-shadow: 0 2px 0 #000000b7;
}

nav {
    position: fixed;
    left: 10px;
    top: 60px;
    width: 180px;
    height: auto;
}

nav > a.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fr-200);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    opacity: .8;
    cursor: pointer;
    font-family: inherit;
}

nav > a.nav-item > i {
    font-size: 16px;
}

nav > a.nav-item:hover {
    background-color: var(--bg-100);
    color: var(--fr-100);
    opacity: 1;
}

nav > a.nav-item:active {
    opacity: .6;
}

nav > a.nav-item.active {
    color: var(--primary-color);
    opacity: 1;
}

nav > a.nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 50%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transform: translateY(-50%);
}

nav > a.nav-item + .nav-item {
    margin-top: 7px;
}

nav > a.nav-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fr-200);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    opacity: .8;
    font-size: .9em;
    cursor: pointer;
}

nav > a.nav-sub-item:hover {
    opacity: 1;
}

@media (prefers-color-scheme: light) {
    .heading > div > .system-logo-wrapper {
        background-color: #bbb;
    }
}
/* dash-icons.xcss */
.dash-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 1em 0;
}

.dash-icons > .dash-item {
    padding-bottom: .25em;
    border-bottom: 3px solid var(--bg-200);
}

.dash-icons > .dash-item > div:first-of-type {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--fr-200);
    margin-bottom: 6px;
    font-size: .85em;
}

.dash-icons > .dash-item > div:first-of-type > i {
    font-size: 1.4em;
}

.dash-icons > .dash-item > div:last-of-type {
    color: var(--fr-100);
    font-size: 1.25rem;
    font-weight: 500;
}
/* table.xcss */
table {
    width: 100%;
    border-collapse: collapse;
}

table > thead th {
    font-weight: 600;
    text-transform: lowercase;
    color: var(--fr-200);
    font-size: .8rem;
}

table > tbody tr {
    border-bottom: 1px solid var(--bg-200);
}

table > tbody tr > td {
    font-size: .9rem;
}

table > tbody tr > td.field-column {
    color: #d3fff9;
}

table > tbody tr > td.field-column > .values > .value {
    cursor: pointer;
}

table > tbody tr > td.field-column > .values > .value:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

table > tbody tr > td.field-column > .values > .value.copied::before {
    content: 'Copiado!';
    text-decoration: none;
    display: block;
    color: limegreen;
    font-weight: 500;
    font-size: .74em;
}

table > tbody tr:has(input:checked) {
    background-color: var(--primary-color-opaque);
}

table > tbody tr:has(i.ri-star-fill) {
    color: #ffd89d;
}

table > tbody tr:has(i.ri-star-fill) .field-column {
    color: #ffad32;
}

table > tbody tr.attention {
    background-color: #b123231c;
}

table > tbody tr.attention:hover {
    background-color: #b1232334;
}

table > tbody tr:hover {
    background-color: #ffffff06;
}

table td, table th {
    padding: 6px 12px;
    text-align: left;
}

table td i, table th i {
    font-size: 1.1rem;
    margin-right: 5px;
    cursor: pointer;
}

table td .operation-text, table th .operation-text {
    display: block;
    font-size: .85rem;
}

table td .online-check, table th .online-check {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #66666666;
}

table td .online-check.online, table th .online-check.online {
    background-color: limegreen;
    outline: 4px solid #0cbe0c42;
}

table td.action-td, table th.action-td {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

table td.action-td > i, table th.action-td > i {
    font-size: 16px;
    opacity: .8;
}

table td.action-td > i:hover, table th.action-td > i:hover {
    opacity: 1;
}

table td .copy-btn, table th .copy-btn {
    margin-left: 4px;
    cursor: pointer;
    opacity: 0;
}

table td .copy-btn:hover, table th .copy-btn:hover {
    opacity: 1 !important;
}

table td .copy-btn > i, table th .copy-btn > i {
    font-size: 1rem;
    margin-right: 0;
}

table td:empty .copy-btn, table th:empty .copy-btn {
    display: none;
}

table td:hover .copy-btn, table th:hover .copy-btn {
    opacity: .6;
}

table :is(td, tr).changed {
    animation: changed-effect 1s ease-in-out;
}

@media (prefers-color-scheme: light) {
    table > tbody tr > td.field-column {
        color: #117279;
    }

    table > tbody tr:has(i.ri-star-fill) {
        color: #d3840e;
    }

    table > tbody tr:has(i.ri-star-fill) .field-column {
        color: #d3560e;
    }
}

@keyframes changed-effect {
    0% {
        background-color: gold;
    }

    100% {
        background-color: transparent;
    }
}
/* operator-page.xcss */
.operator-page {
    background-color: var(--bg-000);
}

.operator-page .app-contents {
    background-color: var(--bg-100);
    border: 1px solid var(--bg-200);
    border-radius: 6px;
}

.operator-page .app-contents .content-title {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    font-weight: bold;
    color: var(--primary-color);
    border-bottom: 1px solid var(--bg-200);
}

.operator-page .app-contents .content-title > i {
    font-size: 1.25rem;
    margin-right: 5px;
}

.operator-page .app-contents .content-title > .actions {
    margin-left: auto;
}

.operator-page .app-contents > section {
    padding: 15px;
}

.operator-page .app-contents + .app-contents {
    margin-top: 8px;
}
/* list-box.xcss */
.list-box {
    border: 1px solid #66666686;
    border-radius: 5px;
    margin: 1em 0;
}

.list-box > .list-item {
    padding: 8px;
}

.list-box > .list-item + .list-item {
    border-top: 1px solid #66666666;
}
/* page-selector.xcss */
.page-selector {
    display: flex;
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
    background-color: var(--bg-200);
    border: 1px solid var(--bg-300);
    outline: 1px solid var(--bg-000);
    padding: 10px;
    border-radius: 6px;
}

.page-selector.mobile > .page-item {
    width: 180px;
}

.page-selector.mobile > .page-item > .page-item-title {
    font-size: .8rem;
}

.page-selector.mobile > .page-item > img {
    object-fit: cover;
    height: 290px;
}

.page-selector > .page-item {
    position: relative;
    background-color: var(--bg-100);
    border: 1px solid var(--bg-300);
    border-radius: 4px;
    width: 270px;
    height: auto;
    margin-right: 40px;
    box-shadow: 0 1px 6px 0 #00000074;
}

.page-selector > .page-item > .page-item-title {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-top: 4px solid transparent;
    border-bottom: 1px solid var(--bg-300);
}

.page-selector > .page-item > .page-item-title > .options {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-selector > .page-item > .page-item-title > .options > i {
    opacity: .75;
    font-size: 20px;
    cursor: pointer;
}

.page-selector > .page-item > .page-item-title > .options > i:hover {
    opacity: 1;
}

.page-selector > .page-item > img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    padding: 5px;
}

.page-selector > .page-item > i {
    position: absolute;
    right: -37px;
    top: 50%;
    translate: 0 -50%;
    font-size: 24px;
    opacity: .5;
}

.page-selector > .page-item[data-page-title="final"] > i {
    display: none;
}

.page-selector > .page-item[data-page-title="final"] ~ .page-item {
    opacity: .5;
    filter: grayscale(.75);
    box-shadow: none;
}

.page-selector > .page-item[data-page-title="final"] ~ .page-item > i {
    display: none;
}

.page-selector > .page-item[data-page-title="final"] ~ .page-item::after {
    content: "Desativada";
    position: absolute;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1rem;
    background-color: var(--bg-200);
    padding: 4px 10px;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
}
/* block-button.xcss */
.block-button {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    background-color: transparent;
    color: var(--fr-100);
    border: none;
    outline: none;
    border-radius: 6px;
    padding: 6px 12px;
    text-align: left;
    cursor: pointer;
}

.block-button:hover {
    background-color: var(--bg-100);
    color: var(--fr-100);
}

.block-button-container {
    display: block;
}

.block-button-container > .block-group-label {
    width: 100%;
    margin-left: 12px;
    margin-bottom: 5px;
    opacity: .6;
    font-weight: 400;
}

.block-button-container .block-group + .block-group-label {
    margin-top: 1em;
}
/* assistant-welcome.xcss */
.assistant-welcome {
    width: 100%;
    margin: 0 auto;
    opacity: 0;
    pointer-events: none;
    height: 0px;
    interpolate-size: allow-keywords;
    transition: .4s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.assistant-welcome.visible {
    opacity: 1;
    pointer-events: all;
    height: auto;
}

.assistant-welcome > h1 {
    padding-top: 20px;
    font-weight: 300;
    margin-bottom: .5em;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.assistant-welcome > h3 {
    font-weight: 300;
    margin-top: 0;
    max-width: 700px;
    line-height: 1.6;
}

.assistant-welcome > .news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.assistant-welcome > .news > .news-item {
    display: block;
    border: 1px solid var(--bg-100);
    border-radius: 6px;
    padding: 10px;
    text-decoration: none;
    color: var(--fr-100);
    width: 100%;
}

.assistant-welcome > .news > .news-item > .news-item-title {
    font-weight: 500;
    margin-bottom: 5px;
    text-decoration: none;
    color: var(--fr-100);
}

.assistant-welcome > .news > .news-item > p {
    color: var(--fr-200);
    line-height: 1.5;
    margin-block: 5px 0;
}

.assistant-welcome > .news > .news-item:hover {
    outline: 2px solid var(--primary-color);
}
/* logstream.xcss */
.logstream {
    width: 100%;
    min-height: 400px;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    resize: vertical;
    background-color: transparent;
    padding: 1em;
    color: var(--fr-200);
    outline: none;
    border: none;
    word-wrap: normal;
    overflow-x: scroll;
    white-space: pre;
}
/* dialog.xcss */
.operator-page dialog {
    position: fixed;
    right: 0;
    left: unset;
    bottom: 10px;
    width: 100%;
    max-width: 600px;
    max-height: unset;
    margin: 0;
    height: 100%;
    background-color: var(--bg-200);
    border: 1px solid var(--bg-300);
    box-shadow: 0 0 10px 4px #00000044;
    color: var(--fr-100);
}

.operator-page dialog::backdrop {
    background: #00000086;
}

.operator-page dialog > div.dialog-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0 10px;
    border-bottom: 1px solid #66666666;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fr-200);
    margin-bottom: 15px;
}

.operator-page dialog > div.dialog-title > h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--fr-100);
}

.operator-page dialog > div.dialog-title > form {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.operator-page dialog > .dialog-content > hr {
    margin: 15px 0;
    border: none;
    border-top: 1px solid var(--bg-300);
}

.operator-page dialog > .dialog-content menu {
    border-top: 1px solid var(--bg-300);
    padding: 0;
    padding-top: 10px;
}

.operator-page dialog > .dialog-content .info-data {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.operator-page dialog > .dialog-content .info-data > div:first-of-type {
    color: var(--fr-200);
    width: 120px;
    flex-shrink: 0;
}

.operator-page dialog > .dialog-content .info-data > div:last-of-type {
    width: 100%;
    font-weight: 500;
}

.operator-page dialog > .dialog-content .info-data > div:last-of-type > .value:not(:first-of-type) {
    color: var(--fr-200);
}

.operator-page dialog > .dialog-content .info-data > div:last-of-type > .value:not(:first-of-type)::after {
    content: ' (valor anterior)';
    font-size: .8rem;
}

.operator-page dialog > .dialog-content .info-data + .info-data {
    margin-top: 10px;
}
/* pagination.xcss */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 5px;
}

.pagination > button {
    font-family: inherit;
    font-size: inherit;
    background-color: transparent;
    color: var(--fr-200);
    cursor: pointer;
    border: none;
    border-radius: 3px;
    width: 26px;
    height: auto;
    text-align: center;
    outline: none;
}

.pagination > button:hover {
    color: var(--fr-100);
}

.pagination > button:disabled {
    background-color: var(--primary-color-opaque);
    color: var(--primary-color);
    pointer-events: none;
}
