/* Små WebFrame-tilpasninger på toppen av Bootstrap 5.3.8. */

body {
    min-height: 100vh;
}

.wf-mobile-page {
    min-height: 100dvh;
    background: #071018;
}

.wf-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(4, 16, 31, 0.96);
    backdrop-filter: blur(10px);
}

.wf-mobile-brand,
.wf-mobile-topbar a {
    color: #f8fafc;
    text-decoration: none;
}

.wf-mobile-brand {
    font-weight: 800;
}

.wf-mobile-topbar nav {
    display: flex;
    gap: 10px;
    font-size: 0.88rem;
}

.wf-mobile-main {
    min-height: calc(100dvh - 54px);
    padding: 12px;
}

.wf-mobile-home {
    min-height: calc(100dvh - 78px);
    display: grid;
    align-content: center;
    gap: 18px;
    max-width: 520px;
    margin: 0 auto;
}

.wf-mobile-home h1 {
    margin: 0;
    font-size: 2rem;
}

.wf-mobile-home p {
    margin: 4px 0 0;
    color: var(--bs-secondary-color);
}

.wf-mobile-launcher {
    display: grid;
    gap: 10px;
}

.wf-mobile-tile {
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    color: inherit;
    text-decoration: none;
}

.wf-mobile-tile strong {
    font-size: 1.15rem;
}

.wf-mobile-tile span {
    color: var(--bs-secondary-color);
}

.wf-mobile-setup {
    max-width: 520px;
    margin: 0 auto;
}

.wf-mobile-page .wf-messenger {
    height: calc(100dvh - 78px);
}

.wf-mobile-page .wf-messenger {
    min-height: 0;
}

.wf-mobile-page .wf-shopping {
    min-height: calc(100dvh - 78px);
}

.wf-mobile-page .wf-shopping-sidebar,
.wf-mobile-page .wf-shopping-main {
    min-height: 0;
}

body.wf-login-page {
    min-height: 100vh;
    color: #f8fbff;
    background:
        linear-gradient(110deg, rgba(7, 13, 28, .92) 0%, rgba(12, 18, 36, .72) 42%, rgba(61, 25, 63, .32) 100%),
        url("site-wallpaper.jpg") center center / cover no-repeat fixed;
}

body.wf-app-page {
    color: #f7fbff;
    background:
        linear-gradient(120deg, rgba(0, 0, 0, .72) 0%, rgba(4, 8, 18, .58) 46%, rgba(36, 12, 42, .32) 100%),
        url("site-wallpaper.jpg") center center / cover no-repeat fixed;
}

.wf-app-page .navbar.bg-primary {
    position: relative;
    z-index: 1080;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .78) !important;
    backdrop-filter: blur(18px);
}

.wf-app-page .navbar .dropdown-menu {
    z-index: 1090;
}

.wf-app-page main {
    min-height: calc(100vh - 57px);
}

.wf-app-page .card,
.wf-app-page .modal-content,
.wf-app-page .dropdown-menu,
.wf-app-page .list-group {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(0, 0, 0, .64);
    color: #f7fbff;
    backdrop-filter: blur(16px);
}

.wf-app-page .card-footer,
.wf-app-page .card-header {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
}

.wf-app-page .table {
    --bs-table-color: #f7fbff;
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, .12);
    --bs-table-hover-color: #ffffff;
    --bs-table-hover-bg: rgba(255, 255, 255, .08);
}

.wf-app-page .text-body-secondary {
    color: rgba(247, 251, 255, .66) !important;
}

.wf-app-page .form-control,
.wf-app-page .form-select,
.wf-app-page .wf-rich-editor {
    border-color: rgba(255, 255, 255, .18);
    background-color: rgba(0, 0, 0, .52);
    color: #ffffff;
}

.wf-app-page .form-control:focus,
.wf-app-page .form-select:focus {
    border-color: rgba(125, 221, 255, .86);
    background-color: rgba(0, 0, 0, .7);
    color: #ffffff;
    box-shadow: 0 0 0 .2rem rgba(84, 199, 235, .18);
}

.wf-app-page .list-group-item {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(0, 0, 0, .38);
    color: rgba(247, 251, 255, .82);
}

.wf-app-page .list-group-item:hover,
.wf-app-page .list-group-item.active {
    border-color: rgba(125, 221, 255, .4);
    background: rgba(103, 217, 246, .16);
    color: #ffffff;
}

.wf-app-page .btn-outline-secondary,
.wf-app-page .btn-outline-primary,
.wf-app-page .btn-outline-success,
.wf-app-page .btn-outline-danger {
    border-color: rgba(255, 255, 255, .24);
    color: #f7fbff;
}

.wf-app-page .btn-primary {
    border: 0;
    background: linear-gradient(135deg, #67d9f6, #7f8cff);
    color: #04101f;
    font-weight: 700;
}

.wf-home-wrap {
    width: min(100%, 1180px);
}

.wf-info-board {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(0, 0, 0, .58);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
    backdrop-filter: blur(14px);
}

.wf-info-board::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(103, 217, 246, .18), transparent 38%);
}

.wf-info-board-top,
.wf-info-board-content {
    position: relative;
}

.wf-info-board-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 4vw, 42px);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.wf-board-kicker {
    margin-bottom: 8px;
    color: #9ddff1;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.wf-info-board h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    font-weight: 800;
    letter-spacing: 0;
}

.wf-board-meta {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
    gap: 8px;
}

.wf-board-meta span {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, .07);
    color: rgba(247, 251, 255, .82);
    font-size: .82rem;
    font-weight: 700;
}

.wf-board-meta .btn {
    border-radius: 999px;
    padding-inline: 14px;
}

.wf-info-board-content {
    min-height: clamp(260px, 42vh, 520px);
    padding: clamp(24px, 4vw, 42px);
    color: rgba(247, 251, 255, .86);
    font-size: 1.05rem;
    line-height: 1.7;
}

.wf-info-board-content h1,
.wf-info-board-content h2,
.wf-info-board-content h3 {
    color: #ffffff;
    letter-spacing: 0;
}

.wf-info-board-content a {
    color: #9ddff1;
}

.wf-home-content {
    max-width: 960px;
}

.wf-home-content > :first-child {
    margin-top: 0;
}

.wf-home-content > :last-child {
    margin-bottom: 0;
}

.wf-home-content p,
.wf-home-content li {
    max-width: 78ch;
}

.wf-home-content ul,
.wf-home-content ol {
    padding-left: 1.35rem;
}

.wf-home-content blockquote {
    border-left: 3px solid rgba(103, 217, 246, .65);
    margin: 1.25rem 0;
    padding: .4rem 0 .4rem 1rem;
    color: rgba(247, 251, 255, .78);
}

.wf-guide-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .65rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
}

.wf-guide-editor {
    min-height: min(64vh, 720px);
    padding: clamp(18px, 3vw, 32px);
    overflow: auto;
    line-height: 1.7;
}

.wf-guide-editor:focus {
    outline: 0;
}

.wf-guide-editor h1,
.wf-guide-editor h2,
.wf-guide-editor h3 {
    color: #ffffff;
}

@media (max-width: 720px) {
    .wf-info-board-top {
        display: block;
    }

    .wf-board-meta {
        justify-content: flex-start;
        margin-top: 18px;
    }

    .wf-board-meta .btn {
        width: 100%;
    }
}

.wf-login-main {
    min-height: 100vh;
    display: grid;
    place-items: center start;
    padding: clamp(24px, 5vw, 72px);
}

.wf-login-shell {
    width: min(100%, 460px);
}

.wf-login-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 230, 255, .22);
    border-radius: 8px;
    background: rgba(8, 15, 31, .72);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .46);
    backdrop-filter: blur(18px);
    padding: clamp(28px, 4vw, 42px);
}

.wf-login-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(125, 221, 255, .24), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 28%);
    opacity: .8;
}

.wf-login-panel > * {
    position: relative;
}

.wf-login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.wf-login-mark {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 222, 255, .48);
    border-radius: 8px;
    background: rgba(5, 12, 24, .76);
    color: #b9f2ff;
    font-weight: 800;
    letter-spacing: 0;
}

.wf-login-kicker {
    color: #9ddff1;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.wf-login-brand h1 {
    margin: 0;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 750;
    letter-spacing: 0;
}

.wf-login-copy {
    margin: 0 0 28px;
    color: rgba(239, 247, 255, .78);
    line-height: 1.6;
}

.wf-login-form {
    display: grid;
    gap: 18px;
}

.wf-login-form .form-label {
    margin-bottom: 8px;
    color: rgba(238, 247, 255, .82);
    font-size: .85rem;
    font-weight: 700;
}

.wf-login-form .form-control {
    border: 1px solid rgba(180, 215, 244, .24);
    border-radius: 8px;
    background: rgba(4, 10, 22, .58);
    color: #ffffff;
    box-shadow: none;
}

.wf-login-form .form-control:focus {
    border-color: rgba(125, 221, 255, .9);
    background: rgba(5, 12, 24, .78);
    box-shadow: 0 0 0 .2rem rgba(84, 199, 235, .18);
    color: #ffffff;
}

.wf-login-form .form-check-input {
    border-color: rgba(180, 215, 244, .4);
    background-color: rgba(4, 10, 22, .7);
}

.wf-login-form .form-check-input:checked {
    border-color: #67d9f6;
    background-color: #28a7cf;
}

.wf-login-status {
    border: 1px solid rgba(103, 217, 246, .28);
    border-radius: 999px;
    padding: 5px 10px;
    color: #9ddff1;
    background: rgba(40, 167, 207, .12);
    font-size: .75rem;
    font-weight: 700;
}

.wf-login-button {
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #67d9f6, #7f8cff);
    color: #04101f;
    font-weight: 800;
    box-shadow: 0 18px 42px rgba(37, 153, 210, .32);
}

.wf-login-button:hover,
.wf-login-button:focus {
    color: #04101f;
    background: linear-gradient(135deg, #8ce8fb, #9ea8ff);
}

.upload-drop.wf-drop-active {
    border-color: rgba(103, 217, 246, .9) !important;
    background: rgba(103, 217, 246, .12);
}

.wf-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.wf-gallery-tile {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, .36);
    color: #f7fbff;
    text-align: left;
}

.wf-gallery-tile img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
}

.wf-gallery-tile span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .82rem;
}

.wf-file-sort-select {
    width: auto;
    min-width: 8rem;
}

.wf-file-header-actions {
    align-items: center;
}

.wf-file-search .form-control {
    min-width: 220px;
}

.wf-file-bulk-bar {
    position: sticky;
    top: .75rem;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
    border: 1px solid rgba(103, 217, 246, .35);
    border-radius: 8px;
    padding: .55rem .75rem;
    background: rgba(8, 22, 34, .95);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}

.wf-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: .85rem;
}

.wf-file-grid-gallery {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.wf-file-card {
    display: grid;
    gap: .55rem;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    padding: .75rem;
    background: rgba(0, 0, 0, .28);
}

.wf-file-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-height: 32px;
}

.wf-file-card-preview {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
}

.wf-file-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wf-file-card-icon {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    font-size: 3rem;
    text-decoration: none;
}

.wf-file-card-name,
.wf-file-card-name .btn-link {
    min-width: 0;
    color: var(--bs-body-color);
    font-weight: 700;
    overflow-wrap: anywhere;
    text-align: left;
}

.wf-history-box {
    max-height: 320px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, .38);
    color: #f7fbff;
    white-space: pre-wrap;
}

body.wf-rock-cursor,
body.wf-rock-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M5 2 L27 13 L14 30 Z' fill='%23111111' stroke='%23e63946' stroke-width='2'/%3E%3Cpath d='M10 7 L22 13 L14 24 Z' fill='%23f1faee' opacity='.9'/%3E%3Ccircle cx='14' cy='14' r='2' fill='%23e63946'/%3E%3C/svg%3E") 6 2, auto;
}

.upload-drop {
    background: var(--bs-tertiary-bg);
}

.wf-upload-card {
    position: sticky;
    top: .75rem;
    z-index: 2;
}

.wf-upload-input {
    max-width: 340px;
}

.wf-upload-phases {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .65rem;
}

.wf-upload-phases::after {
    content: attr(data-detail);
    flex-basis: 100%;
    min-height: 1.15rem;
    color: var(--bs-secondary-color);
    font-size: .82rem;
}

.wf-upload-phase {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 30px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    padding: .25rem .55rem;
    background: rgba(0, 0, 0, .22);
    color: var(--bs-secondary-color);
    font-size: .82rem;
    white-space: nowrap;
}

.wf-upload-phase span {
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .08);
}

.wf-upload-phase.is-active {
    border-color: rgba(103, 217, 246, .75);
    color: #f7fbff;
    background: rgba(103, 217, 246, .12);
}

.wf-upload-phase.is-active span {
    background: #67d9f6;
    box-shadow: 0 0 0 4px rgba(103, 217, 246, .18);
}

.wf-upload-phase.is-done {
    border-color: rgba(25, 135, 84, .55);
    color: #b9f2d2;
    background: rgba(25, 135, 84, .12);
}

.wf-upload-phase.is-done span {
    background: #20c997;
}

.wf-upload-phase.is-error {
    border-color: rgba(220, 53, 69, .72);
    color: #ffc2c8;
    background: rgba(220, 53, 69, .14);
}

.wf-upload-phase.is-error span {
    background: #dc3545;
}

.wf-icon-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
}

.border-dashed {
    border-style: dashed !important;
}

.wf-file-table-wrap {
    min-height: 18rem;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 140px),
        rgba(0, 0, 0, .24);
}

.wf-file-list-card {
    overflow: hidden;
}

.wf-file-table {
    border-collapse: separate;
    border-spacing: 0 .38rem;
    padding: .4rem;
}

.wf-file-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    border: 0;
    padding: .8rem .75rem;
    background: rgba(3, 8, 16, .88);
    color: rgba(247, 251, 255, .82);
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wf-file-table tbody td {
    border-top: 1px solid rgba(255, 255, 255, .075);
    border-bottom: 1px solid rgba(255, 255, 255, .075);
    padding: .62rem .75rem;
    background: rgba(255, 255, 255, .035);
    color: rgba(247, 251, 255, .78);
    vertical-align: middle;
    white-space: nowrap;
}

.wf-file-table tbody td:first-child {
    border-left: 1px solid rgba(255, 255, 255, .075);
    border-radius: 8px 0 0 8px;
}

.wf-file-table tbody td:last-child {
    border-right: 1px solid rgba(255, 255, 255, .075);
    border-radius: 0 8px 8px 0;
}

.wf-file-table tbody tr:hover td {
    border-color: rgba(103, 217, 246, .34);
    background: rgba(103, 217, 246, .09);
    color: #ffffff;
}

.wf-file-check-cell {
    width: 42px;
    text-align: center;
}

.wf-file-name-cell {
    min-width: 320px;
}

.wf-file-name-wrap {
    min-width: 0;
}

.wf-file-title,
.wf-file-title.btn-link {
    min-width: 0;
    max-width: min(62vw, 760px);
    overflow: hidden;
    color: #d9ecff;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-file-title:hover,
.wf-file-title.btn-link:hover {
    color: #7ddfff;
    text-decoration: underline;
    text-underline-offset: .22em;
}

.wf-file-table .dropdown-toggle {
    border-radius: 999px;
    padding-inline: .75rem;
}

.wf-file-table .form-check-input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    border-color: rgba(247, 251, 255, .36);
    background-color: rgba(255, 255, 255, .06);
}

.wf-path {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
    font-size: .95rem;
}

.wf-thumb {
    width: 54px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

.wf-file-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
    color: var(--bs-secondary-color);
    font-size: 1.28rem;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.wf-folder-icon { color: #f6c453; }
.wf-file-image { color: #4cc9f0; }
.wf-file-video { color: #ff7a90; }
.wf-file-audio { color: #9bdb63; }
.wf-file-subtitle { color: #d0bfff; }
.wf-file-pdf { color: #ff5a5f; }
.wf-file-word { color: #5aa9ff; }
.wf-file-sheet { color: #57cc99; }
.wf-file-presentation { color: #ffb703; }
.wf-file-text { color: #b8c0cc; }
.wf-file-code { color: #90dbf4; }
.wf-file-archive { color: #c77dff; }
.wf-file-app { color: #adb5bd; }
.wf-file-font { color: #f1fa8c; }
.wf-file-book { color: #f4a261; }
.wf-file-database { color: #80ed99; }
.wf-file-disc { color: #ffd166; }

.wf-messenger {
    height: calc(100vh - 120px);
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
    background: rgba(7, 15, 24, 0.72);
}

.wf-messenger-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(10, 20, 30, 0.8);
    padding: 14px;
}

.wf-messenger-brand,
.wf-messenger-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wf-messenger-brand {
    margin-bottom: 14px;
}

.wf-messenger-brand h1,
.wf-messenger-header h2 {
    margin: 0;
    font-size: 1rem;
}

.wf-messenger-brand p,
.wf-messenger-header p {
    margin: 2px 0 0;
    color: var(--bs-secondary-color);
    font-size: 0.82rem;
}

.wf-messenger-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #67d9f6, #7f8cff);
    color: #04101f;
    font-weight: 800;
}

.wf-messenger-users {
    min-height: 0;
    overflow: auto;
    display: grid;
    gap: 6px;
}

.wf-messenger-user {
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    text-align: left;
    padding: 8px;
}

.wf-messenger-user:hover,
.wf-messenger-user.is-active {
    background: rgba(103, 217, 246, 0.12);
}

.wf-messenger-user strong,
.wf-messenger-user small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-messenger-user small,
.wf-messenger-emptyline {
    color: var(--bs-secondary-color);
    font-size: 0.82rem;
}

.wf-messenger-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #67d9f6;
}

.wf-messenger-chat {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.wf-messenger-header {
    min-height: 70px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    padding: 14px;
}

.wf-messenger-back {
    display: none;
}

.wf-messenger-list {
    min-height: 0;
    overflow: auto;
    padding: 18px;
}

.wf-messenger-empty {
    min-height: 100%;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 6px;
    color: var(--bs-secondary-color);
    text-align: center;
}

.wf-messenger-empty strong {
    color: var(--bs-body-color);
}

.wf-messenger-bubble {
    position: relative;
    width: fit-content;
    max-width: min(680px, 78%);
    margin: 6px 0;
    padding: 9px 11px 6px;
    border-radius: 8px;
    overflow-wrap: anywhere;
}

.wf-messenger-bubble p {
    margin: 0;
    line-height: 1.4;
}

.wf-messenger-bubble time {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    opacity: 0.72;
}

.wf-messenger-bubble.is-me {
    margin-left: auto;
    background: #28a7cf;
    color: #04101f;
}

.wf-messenger-bubble.is-peer {
    background: rgba(255, 255, 255, 0.09);
}

.wf-messenger-bubble.is-pending {
    opacity: 0.82;
}

.wf-messenger-bubble.is-queued {
    border: 1px dashed rgba(255, 255, 255, 0.38);
}

.wf-messenger-image {
    display: block;
    max-width: min(360px, 100%);
    max-height: 260px;
    border-radius: 8px;
    object-fit: cover;
}

.wf-messenger-file {
    display: inline-flex;
    max-width: 100%;
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.wf-messenger-file.is-local {
    opacity: 0.78;
    text-decoration: none;
}

.wf-messenger-delete {
    display: block;
    margin-top: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 0.7rem;
    opacity: 0.68;
    text-decoration: underline;
}

.wf-messenger-delete:hover {
    opacity: 1;
}

.wf-messenger-member-list {
    max-height: 260px;
    overflow: auto;
    display: grid;
    gap: 6px;
}

.wf-messenger-member {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    cursor: pointer;
}

.wf-messenger-composer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    padding: 12px;
    background: rgba(10, 20, 30, 0.84);
}

.wf-messenger-composer textarea {
    min-height: 42px;
    max-height: 120px;
    resize: none;
}

@media (max-width: 760px) {
    .wf-messenger {
        height: calc(100dvh - 74px);
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .wf-messenger-sidebar {
        min-height: 0;
    }

    .wf-messenger-sidebar,
    .wf-messenger-chat {
        grid-area: 1 / 1;
    }

    .wf-messenger-chat {
        min-height: 0;
        transform: translateX(100%);
        transition: transform 180ms ease;
        background: rgba(7, 15, 24, 0.96);
    }

    .wf-messenger-header {
        min-height: 58px;
        padding: 10px;
    }

    .wf-messenger-list {
        padding: 12px;
    }

    .wf-messenger-composer {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        padding: 8px;
    }

    .wf-messenger-composer textarea {
        min-height: 38px;
    }

    .wf-messenger.has-chat .wf-messenger-chat {
        transform: translateX(0);
    }

    .wf-messenger.has-chat .wf-messenger-sidebar {
        pointer-events: none;
    }

    .wf-messenger-back {
        display: inline-flex;
    }

    .wf-messenger-bubble {
        max-width: 88%;
    }

    body:has(.wf-messenger.has-chat) {
        overflow: hidden;
    }
}

.wf-media-preview {
    max-width: 100%;
    max-height: 75vh;
}

.wf-media-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 64px;
    border: 0;
    border-radius: 6px;
    background: rgba(0, 0, 0, .56);
    color: #fff;
    font-size: 2.75rem;
    line-height: 1;
    transform: translateY(-50%);
}

.wf-media-nav:hover,
.wf-media-nav:focus {
    background: rgba(0, 0, 0, .78);
    color: #fff;
}

.wf-media-nav-prev {
    left: 1rem;
}

.wf-media-nav-next {
    right: 1rem;
}

.wf-rich-editor {
    min-height: 260px;
    overflow: auto;
}

.wf-home-content img {
    max-width: 100%;
    height: auto;
}

.wf-text-editor {
    min-height: 65vh;
    font-family: Consolas, "Courier New", monospace;
    white-space: pre;
}

.wf-docx-editor {
    min-height: calc(100vh - 285px);
    line-height: 1.6;
    overflow: auto;
    background: var(--bs-body-bg);
}

.wf-docx-form {
    min-height: calc(100vh - 120px);
}

.wf-docx-font {
    max-width: 220px;
}

.wf-docx-size {
    max-width: 120px;
}

.wf-docx-toolbar {
    position: sticky;
    top: .75rem;
    z-index: 3;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .375rem;
    padding: .5rem;
}

.wf-docx-editor:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
    outline: 0;
}

.wf-shopping-list-card {
    max-height: calc(100vh - 220px);
    overflow: auto;
}

.wf-shopping-actions .btn,
.wf-shopping-actions form {
    flex-shrink: 0;
}

.wf-shopping-item {
    min-width: 0;
}

.wf-shopping-item-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.wf-shopping-low-stock {
    border-left: 3px solid #ffc107;
}

.wf-shopping-stock-controls {
    justify-content: flex-end;
}

.wf-shopping-amount {
    width: 86px;
}

.wf-shopping-unit {
    width: 94px;
}

.wf-shopping-low-limit {
    width: 148px;
}

.wf-shopping-low-limit .input-group-text {
    padding-inline: .5rem;
}

.wf-chatgpt-panel {
    min-height: calc(100vh - 150px);
}

.wf-chatgpt-log {
    min-height: 420px;
    max-height: calc(100vh - 310px);
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: .75rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .5rem;
    background: rgba(0, 0, 0, .22);
}

.wf-chatgpt-empty {
    color: var(--bs-secondary-color);
}

.wf-chatgpt-bubble {
    max-width: min(780px, 92%);
    padding: .75rem .9rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .06);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.wf-chatgpt-bubble.is-user {
    align-self: flex-end;
    background: rgba(13, 110, 253, .18);
    border-color: rgba(13, 110, 253, .35);
}

.wf-chatgpt-bubble.is-assistant {
    align-self: flex-start;
}

.wf-chatgpt-bubble strong {
    display: block;
    margin-bottom: .35rem;
    font-size: .82rem;
    color: var(--bs-secondary-color);
}

.wf-file-assistant-actions {
    padding: .75rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .5rem;
    color: var(--bs-secondary-color);
    background: rgba(0, 0, 0, .22);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.wf-barcode-video {
    display: block;
    width: 100%;
    max-height: 55vh;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: #000;
    object-fit: cover;
}

.wf-qr-image {
    max-width: min(260px, 100%);
    height: auto;
    border-radius: 8px;
    background: #fff;
    padding: .75rem;
}

#shoppingStatus:not(:empty) {
    border-left: 3px solid rgba(13, 202, 240, .75);
    padding: .35rem .65rem;
    border-radius: .375rem;
    background: rgba(13, 202, 240, .08);
}

@media (max-width: 991.98px) {
    .wf-mobile-hide {
        display: none !important;
    }

    .wf-file-sidebar {
        order: 2;
    }

    .wf-file-sidebar .wf-area-nav {
        display: flex;
        flex-direction: row;
        gap: .5rem;
        overflow-x: auto;
        padding: .5rem;
        border-radius: 8px;
    }

    .wf-file-sidebar .wf-area-nav .list-group-item {
        flex: 0 0 auto;
        width: auto;
        border-width: 1px;
        border-radius: 999px;
        padding: .45rem .85rem;
        white-space: nowrap;
    }

    .wf-file-header,
    .wf-file-header-actions,
    .wf-file-search,
    .wf-file-search .form-control {
        width: 100%;
    }

    .wf-file-heading {
        min-width: 0;
        width: 100%;
    }

    .wf-file-heading h1 {
        font-size: 1.45rem;
    }

    .wf-path {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wf-file-controls .card-body > .d-flex,
    .wf-file-controls form {
        align-items: stretch !important;
        width: 100%;
    }

    .wf-file-controls .btn-group,
    .wf-file-controls form,
    .wf-file-controls .form-select,
    .wf-file-controls .btn {
        flex: 1 1 auto;
    }

    .wf-upload-card {
        position: static;
    }

    .wf-upload-card .upload-drop > .d-flex {
        align-items: stretch !important;
    }

    .wf-upload-input {
        max-width: none;
        width: 100%;
    }

    .wf-shopping-sidebar {
        order: 1;
    }

    .wf-shopping-main {
        order: 2;
    }

    .wf-shopping-list-card {
        max-height: none;
    }

    .wf-shopping-list-card .list-group {
        display: flex;
        flex-direction: row;
        gap: .5rem;
        overflow-x: auto;
        padding: .75rem;
    }

    .wf-shopping-list-card .list-group-item {
        min-width: max-content;
        border-radius: .375rem;
        border-width: 1px;
    }
}

@media (max-width: 575.98px) {
    main.container-fluid {
        padding-inline: .65rem !important;
    }

    .wf-file-table {
        min-width: 0;
        border-spacing: 0 .5rem;
    }

    .wf-file-table thead {
        display: none;
    }

    .wf-file-table tbody,
    .wf-file-table tr,
    .wf-file-table td {
        display: block;
        width: 100%;
    }

    .wf-file-table tbody td {
        border: 0;
        border-left: 1px solid rgba(255, 255, 255, .075);
        border-right: 1px solid rgba(255, 255, 255, .075);
        padding: .45rem .7rem;
        white-space: normal;
    }

    .wf-file-table tbody td:first-child {
        border-top: 1px solid rgba(255, 255, 255, .075);
        border-radius: 8px 8px 0 0;
        padding-top: .7rem;
        text-align: left;
    }

    .wf-file-table tbody td:last-child {
        border-bottom: 1px solid rgba(255, 255, 255, .075);
        border-radius: 0 0 8px 8px;
        padding-bottom: .7rem;
        text-align: left !important;
    }

    .wf-file-table tbody td:nth-child(3),
    .wf-file-table tbody td:nth-child(4) {
        display: none;
    }

    .wf-file-name-cell {
        min-width: 0;
    }

    .wf-file-title,
    .wf-file-title.btn-link {
        max-width: calc(100vw - 128px);
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .wf-file-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 1.1rem;
    }

    .wf-thumb {
        width: 46px;
        height: 36px;
    }

    .wf-file-table .dropdown,
    .wf-file-table .dropdown-toggle {
        width: 100%;
    }

    .wf-file-controls .btn-group {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .wf-file-controls form {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }

    .wf-file-controls form label {
        grid-column: 1 / -1;
    }

    .wf-file-controls form .btn {
        grid-column: 1 / -1;
    }

    .wf-upload-card .btn,
    .wf-upload-card .wf-icon-btn {
        flex: 1 1 calc(50% - .5rem);
    }

    .wf-shopping .card-body {
        padding: .875rem;
    }

    .wf-shopping-header {
        gap: .75rem !important;
    }

    .wf-shopping-heading,
    .wf-shopping-actions,
    .wf-shopping-actions .btn,
    .wf-shopping-actions form,
    .wf-shopping-actions form .btn {
        width: 100%;
    }

    .wf-shopping-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }

    .wf-shopping-actions .btn {
        min-height: 38px;
    }

    .wf-shopping-item {
        align-items: flex-start !important;
        flex-wrap: wrap;
    }

    .wf-shopping-item > .form-check-input {
        margin-top: .35rem !important;
    }

    .wf-shopping-stock-controls {
        width: 100%;
        justify-content: flex-start;
        padding-left: 0;
    }

    .wf-shopping-amount {
        width: 78px;
    }

    .wf-shopping-unit {
        width: 88px;
    }

    .wf-shopping-low-limit {
        width: 142px;
    }

    .wf-shopping-item [data-shopping-delete] {
        margin-left: auto;
    }
}
