/* ==========================================================================
   AppSidebar.css - KHUNG MENU TRÁI DÙNG CHUNG CHO MỌI MODULE (chuẩn lấy từ TKB)
   - Mọi quy tắc gắn với .qt-shell (độ ưu tiên 0 nhờ :where) nên không rò sang trang khác.
   - Phần màu/nút chi tiết nằm ở SidebarTheme.css và TkbTheme.css (nạp trước file này).
   - Muốn đổi giao diện menu của TẤT CẢ module: sửa ở 3 file này, không sửa trong từng menu.
   ========================================================================== */
:where(.qt-shell) {
    display: flex;
    min-height: 100vh;
}
:where(.qt-shell) .main-content {
    flex: 1;
    padding: 8px;
    overflow: auto;
    background: #fff;
}
:where(.qt-shell) .dropdown-title .input-scope-title {
    white-space: normal;
    line-height: 1.45;
    text-align: left;
}
:where(.qt-shell) .input-scope-note {
    margin: 4px 6px 8px;
    padding: 8px 10px;
    border-left: 3px solid var(--sidebar-active-rail);
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.6;
}
:where(.qt-shell) .sidebar.collapsed .input-scope-note {
    display: none;
}
.qt-shell {
    --sidebar-bg-1: hsl(230, 10%, 35%);
    --sidebar-bg-2: #202125;
    --sidebar-bg: linear-gradient(140deg, var(--navy-900), var(--navy-800)), linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    --sidebar-hover: rgba(85, 83, 83, 0.08);
    --menu-item-bg: rgba(59, 130, 246, .07);
    --menu-item-hover: rgba(59, 130, 246, .16);
    --menu-item-border: rgba(59, 130, 246, .16);
    --menu-item-shadow: rgba(59, 130, 246, .14);
    --sidebar-border: rgba(255,255,255,.05);
    --sidebar-divider: rgba(255,255,255,.05);
    --sidebar-icon: #F2F6FA;
    --sidebar-active: linear-gradient(90deg,#939394,#555964);
    --sidebar-active-rail: #60a5fa;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-white: white;
    --sidebar-shadow-soft: rgba(15, 23, 42, 0.18);
    --sidebar-shadow-strong: rgba(0,0,0,.35);
    --sidebar-scroll-thumb: rgba(255,255,255,.12);
    --btn-hover-shadow: rgba(0,0,0,.25);
    --btn-active-shadow: rgba(37,99,235,.35);
    --icon-shadow: rgba(0,0,0,.25);
    --home-icon-bg: linear-gradient(135deg,#8daafa,#4e97fd);
    --calendar-icon-bg: linear-gradient(135deg,#0ea5e9,#0284c7);
    --file-icon-bg: linear-gradient(135deg,#ec4899,#db2777);
    --input-icon-bg: linear-gradient(135deg,#10b981,#059669);
    --lock-icon-bg: linear-gradient(135deg,#f59e0b,#d97706);
    --magic-icon-bg: linear-gradient(135deg,#22c55e,#16a34a);
    --ai-icon-bg: linear-gradient(135deg,#8b5cf6,#7c3aed);
    --sub-icon-bg: linear-gradient(135deg,#3b82f6,#2563eb);
    --sub-icon-bg-1: linear-gradient(135deg,#14b8a6,#0f766e);
    --sub-icon-bg-2: linear-gradient(135deg,#f97316,#ea580c);
    --sub-icon-bg-3: linear-gradient(135deg,#a855f7,#7e22ce);
    --sub-icon-bg-4: linear-gradient(135deg,#06b6d4,#0891b2);
    --sub-icon-bg-5: linear-gradient(135deg,#ef4444,#b91c1c);
    --sub-icon-bg-6: linear-gradient(135deg,#84cc16,#4d7c0f);
    --sub-icon-bg-7: linear-gradient(135deg,#6366f1,#4338ca);
    --sub-icon-bg-8: linear-gradient(135deg,#f43f5e,#be123c);
    --select-border: rgba(255,255,255,.08);
    --select-bg: rgba(15,23,42,.28);
    --select-focus-border: rgba(96,165,250,.55);
    --select-focus-bg: rgba(15,23,42,.38);
    --select-focus-shadow: rgba(96,165,250,.16);
    --select-option-text: #0f172a;
    --tooltip-bg: #111827;
    --tooltip-shadow: rgba(0,0,0,.25);
    --collapse-inset-shadow: rgba(255,255,255,.08);
    --collapse-icon-bg: linear-gradient(135deg, rgba(148,163,184,.22), rgba(96,165,250,.26));
    --collapse-icon-shadow-1: rgba(255,255,255,.14);
    --collapse-icon-shadow-2: rgba(15,23,42,.22);
    --collapse-icon-hover-bg: linear-gradient(135deg, rgba(96,165,250,.35), rgba(125,211,252,.28));
    --hamburger-bg: linear-gradient(180deg, rgba(51, 65, 85, 0.96), rgba(15, 23, 42, 0.94));
    --hamburger-border: rgba(255,255,255,.12);
    --hamburger-shadow-1: rgba(15, 23, 42, 0.34);
    --hamburger-shadow-2: rgba(255,255,255,.12);
    --hamburger-before-bg: linear-gradient(135deg, rgba(96, 165, 250, 0.22), rgba(255,255,255,0));
    --hamburger-line-bg: linear-gradient(90deg, #f8fafc, #dbeafe);
    --hamburger-line-shadow: rgba(191, 219, 254, 0.18);
    --hamburger-hover-border: rgba(191,219,254,.24);
    --hamburger-hover-shadow-1: rgba(15, 23, 42, 0.38);
    --hamburger-hover-shadow-2: rgba(255,255,255,.16);
    --overlay-bg: rgba(0,0,0,.35);
    --radius: 10px;
}
:where(.qt-shell) .sidebar-light {
    --sidebar-bg: linear-gradient(180deg, #f8fafc, #d5e5f8);
    --sidebar-hover: rgba(15,23,42,.06);
    --menu-item-bg: rgba(37,99,235,.055);
    --menu-item-hover: rgba(37,99,235,.135);
    --menu-item-border: rgba(37,99,235,.16);
    --menu-item-shadow: rgba(37,99,235,.12);
    --sidebar-border: rgba(15,23,42,.12);
    --sidebar-divider: rgba(15,23,42,.10);
    --sidebar-icon: #475569;
    --sidebar-active: rgba(37,99,235,.10);
    --sidebar-active-rail: #2563eb;
    --text-main: #475569;
    --text-muted: #64748b;
}
:where(.qt-shell) {
    --tkb-sidebar-width: 230px;
    --tkb-sidebar-collapsed-width: 84px;
}
:where(.qt-shell) .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--tkb-sidebar-width);
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
    background: var(--sidebar-bg);
    box-shadow: 0 22px 44px var(--sidebar-shadow-soft);
    border-right: 1px solid var(--sidebar-border);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: 10px 0 30px var(--sidebar-shadow-strong);
    transition: all .3s ease;
}
:where(.qt-shell) .sidebar::-webkit-scrollbar {
    width: 6px;
}
:where(.qt-shell) .sidebar::-webkit-scrollbar-thumb {
    background: var(--sidebar-scroll-thumb);
    border-radius: 10px;
}
:where(.qt-shell) .main-content {
    margin-left: var(--tkb-sidebar-width);
    min-width: 0;
    min-height: 100vh;
    overflow-y: auto;
    padding: 12px;
    transition: margin-left .3s ease;
}
:where(.qt-shell) .sidebar-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 10px 12px 4px;
}
:where(.qt-shell) .modern-btn,
:where(.qt-shell) .dropdown-title {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 11px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .25s ease;
    color: var(--text-main);
    box-sizing: border-box;
}
:where(.qt-shell) .modern-btn:hover,
:where(.qt-shell) .dropdown-title:hover {
    background: var(--menu-item-hover);
    border-color: var(--menu-item-border);
    transform: translateX(2px);
    box-shadow: 0 6px 18px var(--menu-item-shadow);
    border-radius: var(--radius);
}
:where(.qt-shell) .modern-btn.active {
    background: var(--sidebar-active);
    box-shadow: 0 8px 22px var(--btn-active-shadow);
    color: var(--text-white) !important;
}
:where(.qt-shell) .modern-btn:has(.home-icon),
:where(.qt-shell) .dropdown-title:has(.home-icon) {
    --menu-item-hover: rgba(141, 170, 250, .23);
}
:where(.qt-shell) .modern-btn:has(.calendar-icon),
:where(.qt-shell) .dropdown-title:has(.calendar-icon) {
    --menu-item-hover: rgba(14, 165, 233, .22);
}
:where(.qt-shell) .modern-btn:has(.file-icon),
:where(.qt-shell) .dropdown-title:has(.file-icon) {
    --menu-item-hover: rgba(236, 72, 153, .2);
}
:where(.qt-shell) .modern-btn:has(.input-icon),
:where(.qt-shell) .dropdown-title:has(.input-icon) {
    --menu-item-hover: rgba(16, 185, 129, .21);
}
:where(.qt-shell) .modern-btn:has(.lock-icon),
:where(.qt-shell) .dropdown-title:has(.lock-icon) {
    --menu-item-hover: rgba(245, 158, 11, .22);
}
:where(.qt-shell) .modern-btn:has(.magic-icon),
:where(.qt-shell) .dropdown-title:has(.magic-icon) {
    --menu-item-hover: rgba(34, 197, 94, .21);
}
:where(.qt-shell) .modern-btn:has(.ai-icon),
:where(.qt-shell) .dropdown-title:has(.ai-icon) {
    --menu-item-hover: rgba(139, 92, 246, .2);
}
:where(.qt-shell) .modern-btn:has(.sub-icon) {
    --menu-item-hover: rgba(59, 130, 246, .18);
}
:where(.qt-shell) .dropdown-content .modern-btn:nth-child(8n+1) {
    --menu-item-hover: rgba(20, 184, 166, .19);
}
:where(.qt-shell) .dropdown-content .modern-btn:nth-child(8n+2) {
    --menu-item-hover: rgba(249, 115, 22, .19);
}
:where(.qt-shell) .dropdown-content .modern-btn:nth-child(8n+3) {
    --menu-item-hover: rgba(168, 85, 247, .18);
}
:where(.qt-shell) .dropdown-content .modern-btn:nth-child(8n+4) {
    --menu-item-hover: rgba(6, 182, 212, .19);
}
:where(.qt-shell) .menu-left {
    display: flex;
    align-items: center;
    gap: 9px;
}
:where(.qt-shell) .icon-box {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sidebar-icon);
    font-size: 11px;
    box-shadow: 0 3px 12px var(--icon-shadow);
    transition: all .25s ease;
}
:where(.qt-shell) .modern-btn:hover .icon-box,
:where(.qt-shell) .dropdown-title:hover .icon-box {
    transform: scale(1.08);
}
:where(.qt-shell) .home-icon {
    background: var(--home-icon-bg);
}
:where(.qt-shell) .calendar-icon {
    background: var(--calendar-icon-bg);
}
:where(.qt-shell) .file-icon {
    background: var(--file-icon-bg);
}
:where(.qt-shell) .input-icon {
    background: var(--input-icon-bg);
}
:where(.qt-shell) .lock-icon {
    background: var(--lock-icon-bg);
}
:where(.qt-shell) .magic-icon {
    background: var(--magic-icon-bg);
}
:where(.qt-shell) .ai-icon {
    background: var(--ai-icon-bg);
}
:where(.qt-shell) .sub-icon {
    background: var(--sub-icon-bg);
}
:where(.qt-shell) .email-icon {
    background: linear-gradient(135deg, #f97316, #2563eb);
}
:where(.qt-shell) .email-send-icon {
    background: linear-gradient(135deg, #f97316, #ea580c);
}
:where(.qt-shell) .email-history-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
:where(.qt-shell) .email-config-icon {
    background: linear-gradient(135deg, #1d4ed8, #0f2f54);
}
:where(.qt-shell) .email-dropdown .dropdown-title.email-open {
    background: var(--menu-item-hover);
    box-shadow: inset 3px 0 0 #f97316;
}
:where(.qt-shell) .modern-btn span,
:where(.qt-shell) .dropdown-title span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}
:where(.qt-shell) .dropdown-menu-block {
    padding-bottom: 0;
    margin-bottom: 1px;
    border-bottom: 0;
}
:where(.qt-shell) .dropdown-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s ease, opacity .25s ease, margin .25s ease;
    margin-left: 15px;
}
:where(.qt-shell) .dropdown-content.show {
    max-height: 800px;
    opacity: 1;
    margin-top: 2px;
    margin-bottom: 4px;
}
:where(.qt-shell) .dropdown-content .modern-btn {
    padding: 7px 10px;
    margin-bottom: 2px;
}
:where(.qt-shell) .dropdown-content .modern-btn span {
    font-size: 13px;
    color: var(--text-muted);
}
:where(.qt-shell) .dropdown-content .modern-btn:hover span {
    color: var(--text-main);
}
:where(.qt-shell) .sidebar-utilities {
    display: grid;
    gap: 5px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--sidebar-divider);
}
:where(.qt-shell) .sidebar-utility-button {
    font-family: inherit;
    font-size: 13px;
}
:where(.qt-shell) .sidebar-utility-chevron {
    color: var(--text-muted);
    font-size: 11px;
}
:where(.qt-shell) .sidebar-utility-detail {
    min-width: 0;
    margin: 0 2px 5px;
    padding: 11px;
    border: 1px solid var(--sidebar-border);
    border-radius: 12px;
    color: var(--text-main);
    background: var(--sidebar-hover);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
:where(.qt-shell) .tkb-menu-clock {
    text-align: center;
}
:where(.qt-shell) .tkb-menu-clock__time {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
}
:where(.qt-shell) .tkb-menu-clock__date {
    margin-top: 5px;
    font-weight: 600;
}
:where(.qt-shell) .tkb-menu-clock__lunar {
    margin-top: 6px;
    color: var(--text-muted);
}
:where(.qt-shell) .sidebar-version-detail strong {
    display: block;
    margin-bottom: 7px;
}
:where(.qt-shell) .sidebar-version-detail__title {
    font-weight: 700;
}
:where(.qt-shell) .sidebar-version-detail p {
    margin: 4px 0 0;
    color: var(--text-muted);
}
:where(.qt-shell) .sidebar-select {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--select-border);
    border-radius: 12px;
    background: var(--select-bg);
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
:where(.qt-shell) .sidebar-select:focus {
    border-color: var(--select-focus-border);
    background: var(--select-focus-bg);
    box-shadow: 0 0 0 3px var(--select-focus-shadow);
}
:where(.qt-shell) .sidebar-select option {
    color: var(--select-option-text);
}
:where(.qt-shell) .modern-hamburger {
    display: none;
}
:where(.qt-shell) .sidebar.collapsed {
    width: var(--tkb-sidebar-collapsed-width);
    padding-left: 10px;
    padding-right: 10px;
}
:where(.qt-shell) .sidebar.collapsed .sidebar-utility-chevron {
    display: none;
}
:where(.qt-shell) .sidebar.collapsed .modern-btn span,
:where(.qt-shell) .sidebar.collapsed .dropdown-title span,
:where(.qt-shell) .sidebar.collapsed .dropdown-title i.bi-chevron-up,
:where(.qt-shell) .sidebar.collapsed .dropdown-title i.bi-chevron-down,
:where(.qt-shell) .sidebar.collapsed .sidebar-section-title {
    display: none;
}
:where(.qt-shell) .sidebar.collapsed .menu-left {
    width: 100%;
    justify-content: center;
}
:where(.qt-shell) .sidebar.collapsed .modern-btn,
:where(.qt-shell) .sidebar.collapsed .dropdown-title {
    justify-content: center;
    padding: 8px;
}
:where(.qt-shell) .sidebar.collapsed .dropdown-content {
    margin-left: 0;
}
:where(.qt-shell) .sidebar.collapsed .dropdown-content .modern-btn {
    justify-content: center;
}
:where(.qt-shell) .sidebar.collapsed .modern-btn,
:where(.qt-shell) .sidebar.collapsed .dropdown-title {
    position: relative;
}
:where(.qt-shell) .sidebar.collapsed ~ .main-content {
    margin-left: var(--tkb-sidebar-collapsed-width);
}
:where(.qt-shell) .modern-btn.active {
    position: relative;
    background: var(--sidebar-active);
    box-shadow: none;
}
:where(.qt-shell) .modern-btn.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 20px;
    background: var(--sidebar-active-rail);
}
:where(.qt-shell) .modern-btn:hover,
:where(.qt-shell) .dropdown-title:hover {
    background: var(--menu-item-hover);
    border-color: var(--menu-item-border);
    transform: translateX(1px);
    box-shadow: 0 6px 18px var(--menu-item-shadow);
}
:where(.qt-shell) .collapse-btn {
    width: 100%;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid var(--sidebar-border);
    border-radius: 14px;
    background: var(--sidebar-hover);
    color: var(--text-main);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all .25s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    box-shadow: inset 0 1px 0 var(--collapse-inset-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
:where(.qt-shell) .collapse-btn__icon-wrap {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--collapse-icon-bg);
    box-shadow: inset 0 1px 0 var(--collapse-icon-shadow-1), 0 8px 18px var(--collapse-icon-shadow-2);
}
:where(.qt-shell) .collapse-btn i {
    font-size: 17px;
    transition: transform .25s ease;
}
:where(.qt-shell) .collapse-btn__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
:where(.qt-shell) .collapse-btn__title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-main);
}
:where(.qt-shell) .collapse-btn:hover {
    background: var(--sidebar-active);
    border-color: var(--sidebar-border);
    transform: translateY(-1px);
}
:where(.qt-shell) .collapse-btn:hover .collapse-btn__icon-wrap {
    background: var(--collapse-icon-hover-bg);
}
:where(.qt-shell) .collapse-btn:hover i {
    transform: scale(1.08);
}
:where(.qt-shell) .sidebar.collapsed .collapse-btn {
    min-height: 44px;
    padding: 8px;
    justify-content: center;
    border-radius: 16px;
    gap: 0;
}
:where(.qt-shell) .sidebar.collapsed .collapse-btn__copy {
    display: none;
}
:where(.qt-shell) .theme-toggle-btn {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--sidebar-border);
    border-radius: 14px;
    background: var(--sidebar-hover);
    color: var(--text-main);
    margin-bottom: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all .25s ease;
}
:where(.qt-shell) .theme-toggle-btn:hover {
    background: var(--sidebar-active);
}
:where(.qt-shell) .theme-toggle-btn__icon-wrap {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sidebar-icon);
}
:where(.qt-shell) .theme-toggle-btn__copy {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}
:where(.qt-shell) .sidebar.collapsed .theme-toggle-btn {
    padding: 8px;
    justify-content: center;
}
:where(.qt-shell) .sidebar.collapsed .theme-toggle-btn__copy {
    display: none;
}
@media (max-width: 768px) {
    :where(.qt-shell) .modern-hamburger {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        position: fixed;
        top: 14px;
        left: 14px;
        width: 52px;
        height: 52px;
        padding: 0;
        background: var(--hamburger-bg);
        border: 1px solid var(--hamburger-border);
        border-radius: 18px;
        cursor: pointer;
        z-index: 1300;
        box-shadow: 0 18px 34px var(--hamburger-shadow-1), inset 0 1px 0 var(--hamburger-shadow-2);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
    }
    :where(.qt-shell) .modern-hamburger::before {
        content: "";
        position: absolute;
        inset: 1px;
        border-radius: inherit;
        background: var(--hamburger-before-bg);
        pointer-events: none;
    }
    :where(.qt-shell) .modern-hamburger span {
        width: 22px;
        height: 2.5px;
        background: var(--hamburger-line-bg);
        border-radius: 999px;
        display: block;
        margin-left: 0;
        position: relative;
        z-index: 1;
        box-shadow: 0 0 10px var(--hamburger-line-shadow);
    }
    :where(.qt-shell) .modern-hamburger:hover {
        transform: translateY(-1px);
        border-color: var(--hamburger-hover-border);
        box-shadow: 0 22px 40px var(--hamburger-hover-shadow-1), inset 0 1px 0 var(--hamburger-hover-shadow-2);
    }
    :where(.qt-shell) .sidebar {
        transform: translateX(-100%);
        padding-top: 82px;
        z-index: 1210;
    }
    :where(.qt-shell) .sidebar.open {
        transform: translateX(0);
    }
    :where(.qt-shell) .sidebar .collapse-btn {
        margin-top: 4px;
    }
    :where(.qt-shell) .main-content {
        margin-left: 0 !important;
    }
}
:where(.qt-shell) .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(2px);
    z-index: 900;
}

/* Điện thoại: nút mở menu nằm đè góc trên trái, chừa chỗ để không che nội dung (áp dụng cho mọi module). */
@media (max-width: 768px) {
    :where(.qt-shell) .main-content {
        padding-top: 68px;
    }
}
/* Module đứng riêng (ví dụ Thống kê) được lồng trong MainLayout: ẩn menu ngoài cùng và cho nội dung rộng hết cỡ. */
.app-shell:has(.qt-standalone) > .snav {
    display: none;
}

.app-shell:has(.qt-standalone) > .app-body {
    min-width: 0;
    width: 100%;
    margin-left: 0;
}

.app-shell:has(.qt-standalone) > .app-body > .app-content {
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.qt-standalone.qt-shell {
    width: 100%;
    min-width: 0;
}

.qt-standalone.qt-shell > .main-content {
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
}

.qt-standalone.qt-shell > .main-content > :is(.container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl, .nh-wrap, .dm-wrap, .hd) {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}