:root {
    --bg-main: #08111f;
    --bg-panel: rgba(10, 19, 36, 0.78);
    --bg-card: rgba(18, 29, 51, 0.92);
    --line-soft: rgba(130, 154, 196, 0.14);
    --text-main: #ecf2ff;
    --text-muted: #98a7c2;
    --primary: #31c6ff;
    --secondary: #8a5cff;
    --accent: #ff8a3d;
    --success: #1bd89a;
    --warning: #ffd05b;
    --danger: #ff647c;
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(49, 198, 255, 0.42) rgba(255, 255, 255, 0.04);
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(49, 198, 255, 0.78), rgba(138, 92, 255, 0.72));
    border-radius: 999px;
    border: 1px solid rgba(8, 17, 31, 0.22);
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(78, 214, 255, 0.9), rgba(160, 117, 255, 0.84));
}

body {
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    background:
        linear-gradient(135deg, var(--bg-main) 0%, var(--bg-card) 48%, var(--bg-main) 100%);
}

h1, h2, h3, h4, h5 { font-family: 'Roboto', sans-serif; }
a { text-decoration: none; }
.login-screen { min-height: 100vh; }

.login-panel, .content-card, .metric-card, .sidebar-glass, .table-shell {
    backdrop-filter: blur(18px);
    background: var(--bg-panel);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-lg);
}

.login-panel { max-width: 460px; border-radius: 28px; }
.brand-title { font-size: 1.3rem; font-weight: 700; }
.brand-mark, .metric-icon {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 18px; color: white;
}
.brand-mark {
    width: 54px; height: 54px; font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 14px 32px rgba(49, 198, 255, 0.35);
    flex: 0 0 54px;
}
.brand-mark-image {
    padding: 0;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
}
.brand-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.company-preview-card {
    text-align: center;
}
.company-logo-preview {
    display: flex;
    justify-content: center;
}
.company-logo-preview-image {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}
.company-brand-fallback {
    width: 96px;
    height: 96px;
    font-size: 2rem;
    border-radius: 24px;
}

.company-inline-summary {
    display: grid;
    grid-template-columns: minmax(360px, 1.2fr) minmax(520px, 1.4fr);
    gap: 18px;
    align-items: start;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.company-inline-left {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.company-inline-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.company-logo-preview-compact {
    flex: 0 0 auto;
}

.company-logo-preview-image-compact,
.company-brand-fallback-compact {
    width: 96px;
    height: 96px;
    border-radius: 24px;
}

.company-brand-fallback-compact {
    font-size: 1.85rem;
}

.company-inline-copy {
    min-width: 0;
}

.company-inline-copy h4 {
    margin: 0;
    font-size: 1.95rem;
}

.company-inline-muted {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.45;
}

.company-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.company-inline-meta span {
    white-space: nowrap;
}

.company-inline-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-start;
    gap: 10px;
    min-width: 0;
}

.company-inline-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    flex: 1 1 calc(50% - 5px);
    max-width: calc(50% - 5px);
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.company-inline-pill strong {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.company-inline-pill span {
    font-size: 0.82rem;
    line-height: 1.35;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-inline-upload {
    width: 100%;
    max-width: 340px;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 24px;
    transition: grid-template-columns 0.42s cubic-bezier(0.22, 1, 0.36, 1), gap 0.32s ease;
}

.admin-shell.sidebar-collapsed {
    grid-template-columns: 92px 1fr;
}

.sidebar-glass {
    border-radius: 28px;
    min-height: calc(100vh - 48px);
    max-height: calc(100vh - 48px);
    position: sticky;
    top: 24px;
    overflow-y: hidden;
    overflow-x: hidden;
    transition:
        border-radius 0.34s ease,
        box-shadow 0.34s ease,
        background 0.34s ease,
        transform 0.34s ease;
}

.sidebar-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1038;
    border: 0;
    background: rgba(3, 10, 20, 0.62);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s ease;
}

.sidebar-mobile-backdrop[hidden] {
    display: block;
}

.sidebar-mobile-trigger {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1041;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(10, 19, 36, 0.92), rgba(18, 29, 51, 0.9));
    color: var(--text-main);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    transition:
        transform 0.22s ease,
        opacity 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease;
}

.sidebar-mobile-trigger:hover,
.sidebar-mobile-trigger:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(18, 33, 58, 0.96), rgba(29, 44, 76, 0.92));
    border-color: rgba(49, 198, 255, 0.26);
}

.sidebar-mobile-trigger[hidden] {
    display: none !important;
}

.sidebar-scroll-area {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    margin-right: -6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(49, 198, 255, 0.42) rgba(255, 255, 255, 0.04);
}

.sidebar-scroll-area::-webkit-scrollbar {
    width: 8px;
}

.sidebar-scroll-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.sidebar-scroll-area::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(49, 198, 255, 0.78), rgba(138, 92, 255, 0.72));
    border-radius: 999px;
    border: 1px solid rgba(8, 17, 31, 0.22);
}

.sidebar-scroll-area::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(78, 214, 255, 0.9), rgba(160, 117, 255, 0.84));
}

.sidebar-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s ease, margin 0.3s ease;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
    position: relative;
}

.brand-copy {
    min-width: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.28s ease, max-width 0.34s ease;
    max-width: 180px;
}

.sidebar-collapse-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .25s ease;
    padding: 0;
    box-shadow: none;
}

.sidebar-logout-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 18px;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition:
        background 0.24s ease,
        color 0.24s ease,
        transform 0.28s ease,
        border-color 0.24s ease,
        gap 0.28s ease;
}

.sidebar-icon-slot {
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sidebar-collapse-btn i {
    font-size: 1.3rem;
    line-height: 1;
}

.sidebar-collapse-btn:hover {
    color: var(--text-main);
    background: transparent;
}

.sidebar-logout-btn:hover {
    color: var(--text-main);
    border-color: rgba(49, 198, 255, 0.28);
    background: linear-gradient(135deg, rgba(49, 198, 255, 0.14), rgba(138, 92, 255, 0.12));
    transform: translateX(4px);
}

.nav-link-modern {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-muted); padding: 11px 14px; border-radius: 18px; transition: .25s ease;
    font-size: 0.98rem;
    position: relative;
    transition:
        background 0.24s ease,
        color 0.24s ease,
        transform 0.28s ease,
        padding 0.28s ease,
        gap 0.28s ease;
}

.nav-link-modern:hover, .nav-link-modern.active {
    background: linear-gradient(135deg, rgba(49, 198, 255, 0.18), rgba(138, 92, 255, 0.14));
    color: var(--text-main);
    transform: translateX(4px);
}

.finance-menu-group {
    display: grid;
    gap: 6px;
}

.nav-link-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    justify-content: space-between;
    text-align: left;
}

.finance-toggle-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    transition: gap 0.28s ease;
}

.finance-toggle-icon {
    transition: transform 0.2s ease;
}

.finance-toggle-icon.is-open {
    transform: rotate(180deg);
}

.finance-submenu {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.26s ease, opacity 0.22s ease, margin-top 0.22s ease;
    opacity: 0;
    margin-top: 0;
}

.finance-submenu.finance-submenu-open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 2px;
}

.finance-submenu-inner {
    overflow: hidden;
    display: grid;
    gap: 6px;
    padding-left: 12px;
}

.finance-submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 14px;
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: .25s ease;
    border-left: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    white-space: nowrap;
}

.finance-submenu-link:hover,
.finance-submenu-link.active {
    color: var(--text-main);
    background: rgba(49, 198, 255, 0.08);
    border-left-color: rgba(49, 198, 255, 0.4);
    transform: translateX(4px);
}

.finance-submenu-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    justify-content: space-between;
    text-align: left;
}

.finance-submenu-toggle-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.28s ease;
}

.finance-submenu-toggle-icon {
    transition: transform 0.2s ease;
}

.finance-submenu-toggle-icon.is-open {
    transform: rotate(180deg);
}

.finance-submenu-nested {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.24s ease, opacity 0.2s ease, margin-top 0.2s ease;
    margin-top: 0;
}

.finance-submenu-nested.finance-submenu-nested-open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 2px;
}

.finance-submenu-nested-inner {
    overflow: hidden;
    display: grid;
    gap: 6px;
    padding-left: 16px;
}

.finance-submenu-link-nested {
    font-size: 0.88rem;
    border-left-color: rgba(138, 92, 255, 0.18);
}

.content-card-tabs,
.tabs-strip,
.app-open-tabs,
.app-form-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: thin;
}

.content-card-tabs {
    padding: 12px 14px;
    background: var(--surface-strong);
    border-color: var(--surface-strong-border);
}

.tabs-strip::-webkit-scrollbar,
.app-open-tabs::-webkit-scrollbar,
.app-form-tabs::-webkit-scrollbar {
    height: 8px;
}

.tab-chip,
.app-open-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    min-height: 46px;
    border: 1px solid transparent;
    border-bottom-color: transparent;
    border-radius: 16px 16px 0 0;
    background: transparent;
    color: var(--text-muted);
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    flex: 0 0 auto;
}

.tab-chip:hover,
.tab-chip.active,
.app-open-tab-link:hover,
.app-open-tab-link.active {
    color: var(--text-main);
    border-color: rgba(49, 198, 255, 0.24);
    border-bottom-color: transparent;
    background: linear-gradient(180deg, rgba(49, 198, 255, 0.12), rgba(138, 92, 255, 0.06));
}

.tab-chip.active,
.app-open-tab-link.active {
    box-shadow: inset 0 1px 0 rgba(122, 224, 255, 0.12);
}

.tab-chip-label,
.app-open-tab-label {
    cursor: pointer;
    color: inherit;
    white-space: nowrap;
}

.tab-chip-close,
.app-open-tab-close {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.tab-chip-close:hover,
.app-open-tab-close:hover {
    background: rgba(255,100,124,0.18);
    color: #fff;
}

.product-image-preview {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.04);
}

.product-image-preview.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-image-preview-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 18px;
    text-align: center;
    color: var(--text-muted);
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.product-image-preview-placeholder i {
    font-size: 1.6rem;
    color: var(--primary);
}

.product-image-preview-placeholder span {
    font-size: 0.85rem;
}

.table-product-thumb {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.table-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-selector-form {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.catalog-selection-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    cursor: pointer;
}

.catalog-section-customizer {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--line-soft);
    background:
        radial-gradient(circle at top right, rgba(255, 184, 77, 0.10), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.catalog-section-customizer-head {
    display: grid;
    gap: 6px;
}

.catalog-section-customizer-grid {
    display: grid;
    gap: 12px;
}

.catalog-section-customizer-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
}

.catalog-section-customizer-card-head strong {
    color: #fff;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
}

.catalog-section-customizer-field {
    display: grid;
    gap: 6px;
}

.catalog-section-customizer-field span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.catalog-section-customizer-field textarea {
    min-height: 82px;
    resize: vertical;
}

.catalog-selection-list {
    display: grid;
    gap: 12px;
    max-height: 560px;
    overflow-y: auto;
    padding-right: 6px;
}

.catalog-selection-item {
    display: grid;
    grid-template-columns: auto 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: .24s ease;
}

.catalog-selection-item--editor {
    grid-template-columns: 1fr;
    gap: 14px;
    cursor: default;
}

.catalog-selection-item-top {
    display: grid;
    grid-template-columns: auto 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.catalog-selection-item:hover {
    transform: translateY(-1px);
    border-color: rgba(49, 198, 255, 0.22);
    background: rgba(49, 198, 255, 0.06);
}

.catalog-selection-item input {
    margin: 0;
}

.catalog-selection-thumb {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.catalog-selection-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-selection-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.catalog-selection-copy strong,
.catalog-selection-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-selection-config {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 10px;
}

.catalog-selection-field {
    display: grid;
    gap: 6px;
}

.catalog-selection-field span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.catalog-selection-field--order .form-control,
.catalog-selection-field .form-select {
    min-height: 40px;
    border-radius: 14px;
}

.catalog-session-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.catalog-session-chip {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 14px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.catalog-session-chip strong {
    font-size: 1.15rem;
    color: #fff;
}

.catalog-session-chip span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.catalog-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.catalog-hero-copy {
    display: grid;
    gap: 8px;
    max-width: 680px;
}

.catalog-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.catalog-link-panel {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--line-soft);
    background:
        radial-gradient(circle at top right, rgba(255, 184, 77, 0.12), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.catalog-link-header {
    display: grid;
    gap: 6px;
}

.catalog-link-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
}

.catalog-link-bar .form-control {
    min-height: 54px;
    border-radius: 18px;
    border: 1px solid var(--line-soft);
    background: rgba(5, 12, 24, 0.58);
    color: var(--text-main);
}

.catalog-link-bar .form-control::placeholder {
    color: var(--text-muted);
}

.catalog-link-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.catalog-link-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

.catalog-share-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.catalog-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 18px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: .24s ease;
}

.catalog-share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.catalog-share-btn.whatsapp {
    background: linear-gradient(135deg, rgba(27, 216, 154, 0.26), rgba(14, 150, 111, 0.18));
}

.catalog-share-btn.instagram {
    background: linear-gradient(135deg, rgba(255, 138, 61, 0.26), rgba(138, 92, 255, 0.22));
}

.catalog-share-btn.facebook {
    background: linear-gradient(135deg, rgba(49, 198, 255, 0.26), rgba(28, 106, 255, 0.18));
}

.catalog-share-btn.neutral {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 184, 77, 0.12));
}

.catalog-share-btn[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

.catalog-editorial-preview {
    display: grid;
    gap: 20px;
}

.catalog-editorial-section {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 26px;
    border: 1px solid var(--line-soft);
    background:
        radial-gradient(circle at top right, rgba(49, 198, 255, 0.08), transparent 24%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.catalog-editorial-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.catalog-editorial-section-head h5 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    color: #fff;
}

.catalog-editorial-section-head p {
    margin: 0;
    color: var(--text-muted);
}

.catalog-editorial-feature {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 18px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
}

.catalog-editorial-feature-media,
.catalog-editorial-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
    overflow: hidden;
}

.catalog-editorial-feature-media {
    min-height: 320px;
    max-height: 320px;
}

.catalog-editorial-card-media {
    height: 260px;
}

.catalog-editorial-feature-media img,
.catalog-editorial-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.catalog-editorial-feature-copy {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 22px 22px 22px 4px;
}

.catalog-editorial-feature-copy h6,
.catalog-editorial-card-body h6 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.catalog-editorial-feature-copy p,
.catalog-editorial-card-body p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.catalog-editorial-feature-footer,
.catalog-editorial-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.catalog-editorial-feature-footer strong,
.catalog-editorial-card-footer strong {
    color: #fff;
    font-size: 1.14rem;
}

.catalog-editorial-feature-footer span,
.catalog-editorial-card-footer span {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.catalog-editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.catalog-editorial-card {
    overflow: hidden;
    display: grid;
    grid-template-rows: minmax(180px, 220px) 1fr;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
}

.catalog-preview-placeholder {
    color: var(--text-muted);
    font-size: 2rem;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-editorial-card-body {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px;
}

.catalog-empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 28px 18px;
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    text-align: center;
}

.catalog-empty-state i {
    font-size: 1.6rem;
    color: var(--primary);
}

.catalog-empty-state-wide {
    grid-column: 1 / -1;
}

.dashboard-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.dashboard-notifications {
    position: relative;
}

.dashboard-notification-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    transition: .24s ease;
}

.dashboard-notification-btn:hover,
.dashboard-notifications.is-open .dashboard-notification-btn {
    background: linear-gradient(135deg, rgba(49, 198, 255, 0.12), rgba(138, 92, 255, 0.10));
    border-color: rgba(49, 198, 255, 0.24);
}

.dashboard-notification-btn i {
    font-size: 1.05rem;
    color: var(--primary);
}

.dashboard-notification-count {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #08111f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
}

.dashboard-notification-count.is-zero {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

.dashboard-notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(460px, calc(100vw - 48px));
    z-index: 40;
    border-radius: 24px;
    border: 1px solid var(--line-soft);
    background: var(--bg-panel);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.dashboard-notification-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--line-soft);
}

.dashboard-notification-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dashboard-notification-mark-all {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}

.dashboard-notification-mark-all:hover {
    background: rgba(49, 198, 255, 0.10);
    border-color: rgba(49, 198, 255, 0.22);
    color: var(--primary);
}

.dashboard-notification-panel-header p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.dashboard-notification-list {
    max-height: 420px;
    overflow-y: auto;
    padding: 10px;
    display: grid;
    gap: 10px;
}

.dashboard-notification-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: .2s ease;
}

.dashboard-notification-item:hover {
    border-color: rgba(49, 198, 255, 0.18);
    background: rgba(49, 198, 255, 0.06);
}

.dashboard-notification-item.is-unread {
    border-color: rgba(49, 198, 255, 0.22);
    background: linear-gradient(180deg, rgba(49, 198, 255, 0.08), rgba(138, 92, 255, 0.04));
}

.dashboard-notification-item.is-read {
    opacity: 0.72;
}

.dashboard-notification-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(49, 198, 255, 0.18), rgba(138, 92, 255, 0.14));
    color: var(--primary);
}

.dashboard-notification-copy {
    min-width: 0;
}

.dashboard-notification-copy strong {
    display: block;
    margin-bottom: 4px;
}

.dashboard-notification-copy small {
    color: var(--text-muted);
}

.dashboard-notification-state {
    align-self: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.76rem;
    white-space: nowrap;
}

.dashboard-notification-item.is-unread .dashboard-notification-state {
    background: rgba(49, 198, 255, 0.16);
    color: var(--primary);
}

.dashboard-notification-item.is-read .dashboard-notification-state {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.dashboard-notification-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 28px 20px;
    text-align: center;
    color: var(--text-muted);
}

.dashboard-workspace-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.dashboard-tile {
    grid-column: span 6;
    position: relative;
    overflow: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
    box-shadow: 0 18px 32px rgba(3, 8, 16, 0.18);
    transition: transform .26s ease, border-color .22s ease, box-shadow .22s ease, opacity .22s ease, filter .22s ease;
    will-change: transform;
    transform-origin: center center;
}

.dashboard-tile.is-dragging {
    opacity: 0.55;
    transform: scale(0.98);
}

.dashboard-tile.drag-target {
    border-color: rgba(49, 198, 255, 0.28);
    box-shadow: 0 0 0 1px rgba(49, 198, 255, 0.18);
}

.dashboard-size-small {
    grid-column: span 3;
}

.dashboard-size-medium {
    grid-column: span 6;
}

.dashboard-size-large {
    grid-column: span 6;
    width: 100%;
    justify-self: stretch;
}

.dashboard-tile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-tile-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.dashboard-tile-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(49, 198, 255, 0.16), rgba(138, 92, 255, 0.14));
    color: var(--primary);
}

.dashboard-tile-heading h3 {
    margin: 0;
    font-size: 0.98rem;
}

.dashboard-tile-heading p {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.dashboard-tile-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-tile-action {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}

.dashboard-tile-action:hover {
    background: rgba(49, 198, 255, 0.10);
    border-color: rgba(49, 198, 255, 0.22);
    color: var(--primary);
}

.dashboard-drag-handle {
    cursor: grab;
}

.dashboard-drag-handle:active {
    cursor: grabbing;
}

.dashboard-tile-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

.dashboard-chart-slot {
    position: relative;
    min-height: 150px;
}

.dashboard-chart-slot canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.dashboard-stat-value {
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.dashboard-stat-alert {
    color: var(--danger);
}

.dashboard-stat-label {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.dashboard-stat-inline,
.dashboard-list-row,
.dashboard-kpi-grid div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.dashboard-stat-inline strong,
.dashboard-list-row strong,
.dashboard-kpi-grid strong {
    color: var(--text-main);
    font-size: 0.92rem;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px 14px;
}

.dashboard-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.78rem;
}

.dashboard-chip-success {
    color: var(--success);
}

.dashboard-chip-danger {
    color: var(--danger);
}

.dashboard-list {
    display: grid;
    gap: 10px;
}

.dashboard-list.compact {
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dashboard-list-card {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255,255,255,0.03);
}

.dashboard-list-title {
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.87rem;
}

.dashboard-list-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.dashboard-list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.dashboard-list-meta strong {
    color: var(--text-main);
    font-size: 0.8rem;
}

.dashboard-printing-list {
    display: grid;
    gap: 12px;
}

.dashboard-printing-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
}

.dashboard-printing-head,
.dashboard-printing-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-printing-head strong {
    color: var(--primary);
    font-size: 0.92rem;
}

.dashboard-printing-meta {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.dashboard-printing-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.dashboard-printing-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 18px rgba(49, 198, 255, 0.25);
    transition: width 0.8s ease;
}

.dashboard-mini-table .table {
    margin-bottom: 0;
}

.dashboard-mini-table th,
.dashboard-mini-table td {
    font-size: 0.83rem;
    white-space: nowrap;
}

.dashboard-mini-table td:nth-child(2),
.dashboard-mini-table td:nth-child(3) {
    white-space: normal;
}

.dashboard-tile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
    color: var(--primary);
    font-size: 0.82rem;
    text-decoration: none;
}

.dashboard-tile-link:hover {
    color: var(--text-main);
}

.dashboard-tile-helper,
.dashboard-empty-copy {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.dashboard-tile-heading p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.dashboard-size-small .dashboard-tile-header {
    gap: 10px;
    padding: 12px 12px 8px;
}

.dashboard-size-small .dashboard-tile-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 11px;
}

.dashboard-size-small .dashboard-tile-heading h3 {
    font-size: 0.9rem;
}

.dashboard-size-small .dashboard-tile-heading p {
    -webkit-line-clamp: 1;
    font-size: 0.76rem;
}

.dashboard-size-small .dashboard-tile-body {
    gap: 10px;
    padding: 12px;
}

.dashboard-size-small .dashboard-chart-slot {
    min-height: 118px;
}

.dashboard-size-small .dashboard-stat-value {
    font-size: 1.55rem;
}

.dashboard-size-small .dashboard-stat-inline,
.dashboard-size-small .dashboard-list-row,
.dashboard-size-small .dashboard-kpi-grid div,
.dashboard-size-small .dashboard-list-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.dashboard-size-small .dashboard-kpi-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

.dashboard-size-small .dashboard-chip {
    padding: 5px 8px;
    font-size: 0.72rem;
}

.dashboard-size-small .dashboard-list-card {
    padding: 8px 10px;
}

.dashboard-size-small .dashboard-list-title {
    font-size: 0.82rem;
}

.dashboard-size-small .dashboard-list-copy,
.dashboard-size-small .dashboard-empty-copy,
.dashboard-size-small .dashboard-tile-helper {
    font-size: 0.76rem;
}

.dashboard-size-small .dashboard-mini-table th,
.dashboard-size-small .dashboard-mini-table td {
    font-size: 0.74rem;
}

.dashboard-size-small .dashboard-tile-link {
    font-size: 0.76rem;
}

.dashboard-size-medium .dashboard-chart-slot {
    min-height: 156px;
}

.dashboard-size-medium .dashboard-stat-value {
    font-size: 1.9rem;
}

.dashboard-size-large .dashboard-tile-header {
    padding: 14px 14px 10px;
}

.dashboard-size-large .dashboard-tile-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.dashboard-size-large .dashboard-tile-heading h3 {
    font-size: 0.98rem;
}

.dashboard-size-large .dashboard-tile-heading p {
    font-size: 0.82rem;
}

.dashboard-size-large .dashboard-tile-body {
    gap: 12px;
    padding: 14px;
}

.dashboard-size-large .dashboard-chart-slot {
    min-height: 156px;
}

.dashboard-size-large .dashboard-stat-value {
    font-size: 1.9rem;
}

.dashboard-size-large .dashboard-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.dashboard-size-large .dashboard-list.compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dashboard-size-large .dashboard-list-card {
    padding: 10px 12px;
}

.dashboard-size-large .dashboard-mini-table th,
.dashboard-size-large .dashboard-mini-table td {
    font-size: 0.82rem;
}

.dashboard-empty-shell {
    text-align: center;
}

.support-floating-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.support-floating-trigger {
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #07111f;
    box-shadow: 0 18px 36px rgba(49, 198, 255, 0.26);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.support-floating-trigger i {
    font-size: 1.35rem;
}

.support-floating-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(49, 198, 255, 0.3);
}

.support-floating-panel {
    width: min(320px, calc(100vw - 32px));
    border-radius: 24px;
    border: 1px solid var(--line-soft);
    background: var(--bg-panel);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.support-floating-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--line-soft);
}

.support-floating-header p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.support-floating-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

.support-floating-body {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.support-floating-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
    transition: .24s ease;
}

.support-floating-link:hover {
    transform: translateY(-1px);
    color: var(--text-main);
}

.support-floating-link.whatsapp {
    background: linear-gradient(135deg, rgba(27, 216, 154, 0.18), rgba(27, 216, 154, 0.08));
}

.support-floating-link.email {
    background: linear-gradient(135deg, rgba(49, 198, 255, 0.16), rgba(49, 198, 255, 0.08));
}

.support-floating-link.neutral {
    background: rgba(255, 255, 255, 0.03);
}

.settings-parameter-table td,
.settings-parameter-table th {
    vertical-align: middle;
}

.settings-check-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.settings-check-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-check-toggle-box {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .22s ease;
}

.settings-check-toggle input:checked + .settings-check-toggle-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: #08111f;
    box-shadow: 0 10px 22px rgba(49, 198, 255, 0.18);
}

@media (max-width: 992px) {
    .catalog-share-strip {
        grid-template-columns: 1fr;
    }

    .dashboard-notification-panel {
        right: auto;
        left: 0;
    }
}

@media (max-width: 576px) {
    .support-floating-widget {
        right: 16px;
        bottom: 16px;
    }

    .support-floating-trigger {
        width: 54px;
        height: 54px;
    }
}

.brand-copy,
.nav-link-modern:not(.nav-link-toggle) > span,
.finance-toggle-main > span,
.finance-submenu-toggle-main > span,
.sidebar-logout-label {
    opacity: 1;
    transform: translateX(0);
    max-width: 180px;
    overflow: hidden;
    white-space: nowrap;
    visibility: visible;
    transition: opacity 0.2s ease, transform 0.28s ease, max-width 0.34s ease, visibility 0.2s ease;
}

.sidebar-collapsed .sidebar-brand-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    width: 100%;
}

.sidebar-collapsed .brand-block {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 54px;
    min-width: 54px;
    max-width: 54px;
    height: 54px;
    flex: 0 0 auto;
    margin: 0 auto;
    align-self: center;
}

.sidebar-collapsed .brand-mark {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    margin: 0;
}

.sidebar-collapsed .brand-logo-image {
    width: 54px;
    height: 54px;
    object-fit: cover;
}

.sidebar-collapsed .brand-copy,
.sidebar-collapsed .nav-link-modern:not(.nav-link-toggle) > span,
.sidebar-collapsed .finance-toggle-main > span,
.sidebar-collapsed .finance-submenu-toggle-main > span,
.sidebar-collapsed .sidebar-logout-label {
    opacity: 0;
    transform: translateX(-10px);
    max-width: 0;
    visibility: hidden;
}

.finance-submenu,
.finance-toggle-icon,
.finance-submenu-toggle-icon {
    visibility: visible;
}

.sidebar-collapsed .finance-submenu,
.sidebar-collapsed .finance-toggle-icon,
.sidebar-collapsed .finance-submenu-toggle-icon {
    display: none !important;
}

.sidebar-collapsed .nav-link-modern,
.sidebar-collapsed .sidebar-logout-btn {
    justify-content: center;
    align-items: center;
    width: 54px;
    min-width: 54px;
    max-width: 54px;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    margin: 0 auto;
    padding: 0;
    gap: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.sidebar-collapsed .nav-link-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    min-width: 54px;
    max-width: 54px;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    margin: 0 auto;
    padding: 0;
}

.sidebar-collapsed .nav-link-modern i,
.sidebar-collapsed .sidebar-logout-btn i {
    margin: 0 !important;
    font-size: 1.05rem;
}

.sidebar-collapsed .sidebar-collapse-btn,
.sidebar-collapsed .sidebar-logout-btn,
.sidebar-collapsed .nav-link-modern,
.sidebar-collapsed .nav-link-toggle {
    justify-content: center !important;
}

.sidebar-collapsed .finance-toggle-main {
    width: 20px;
    min-width: 20px;
    justify-content: center;
    gap: 0;
}

.sidebar-collapsed .finance-submenu-toggle-main {
    width: 20px;
    min-width: 20px;
    justify-content: center;
    gap: 0;
}

.sidebar-collapsed .nav-link-modern i,
.sidebar-collapsed .finance-toggle-main i,
.sidebar-collapsed .finance-submenu-toggle-main i,
.sidebar-collapsed .sidebar-logout-btn i,
.sidebar-collapsed .sidebar-collapse-btn i {
    width: 20px;
    min-width: 20px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-collapsed .sidebar-icon-slot,
.sidebar-collapsed .finance-toggle-main,
.sidebar-collapsed .finance-submenu-toggle-main {
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-collapsed .finance-menu-group {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.sidebar-collapsed .finance-menu-group > .nav-link-toggle,
.sidebar-collapsed .nav > .nav-link-modern,
.sidebar-collapsed .sidebar-logout-btn,
.sidebar-collapsed .brand-block,
.sidebar-collapsed .sidebar-collapse-btn {
    position: relative;
}

.sidebar-collapsed .finance-menu-group > .nav-link-toggle {
    border: 0;
}

.sidebar-collapsed .sidebar-scroll-area .nav {
    align-items: center;
    gap: 12px !important;
}

.sidebar-collapsed .sidebar-scroll-area .nav > a,
.sidebar-collapsed .sidebar-scroll-area .nav > .finance-menu-group {
    width: 100%;
    display: flex;
    justify-content: center;
}

.sidebar-collapsed .sidebar-logout-btn {
    border-radius: 0 !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    margin-left: auto;
    margin-right: auto;
}

.admin-shell [data-aos],
.admin-shell .aos-init,
.admin-shell .aos-animate {
    opacity: 1 !important;
    transform: none !important;
    transition-property: none !important;
}

.sidebar-collapsed .sidebar-scroll-area {
    padding-right: 0;
    margin-right: 0;
}

.metric-card, .content-card, .table-shell { border-radius: 24px; }
.metric-card, .content-card, .table-shell { padding: 24px; }

.btn {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.btn-neon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    box-shadow: 0 12px 32px rgba(49, 198, 255, 0.28);
}

.btn-neon:hover,
.btn-neon:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(49, 198, 255, 0.34);
}

.finance-boxes-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.finance-boxes-toolbar-copy {
    flex: 1 1 260px;
}

.finance-boxes-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1 1 520px;
    flex-wrap: wrap;
}

.finance-boxes-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 340px;
    min-width: 0;
}

.finance-boxes-search-input {
    width: 100%;
    min-width: 0;
    max-width: 360px;
}

.finance-boxes-action-btn {
    white-space: nowrap;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    color: #08111f !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(220,232,255,0.92));
    border-color: rgba(255,255,255,0.96);
    box-shadow: 0 12px 26px rgba(186, 205, 238, 0.22);
    transform: translateY(-1px);
}

.btn-outline-info:hover,
.btn-outline-info:focus {
    color: #041522 !important;
    background: linear-gradient(135deg, rgba(49,198,255,0.96), rgba(122,224,255,0.9));
    border-color: rgba(49,198,255,0.98);
    box-shadow: 0 12px 28px rgba(49, 198, 255, 0.24);
    transform: translateY(-1px);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    color: #1d0710 !important;
    background: linear-gradient(135deg, rgba(255,100,124,0.96), rgba(255,146,164,0.92));
    border-color: rgba(255,100,124,0.98);
    box-shadow: 0 12px 28px rgba(255, 100, 124, 0.22);
    transform: translateY(-1px);
}

.btn-outline-warning:hover,
.btn-outline-warning:focus {
    color: #1e1300 !important;
    background: linear-gradient(135deg, rgba(255,208,91,0.96), rgba(255,227,144,0.92));
    border-color: rgba(255,208,91,0.98);
    box-shadow: 0 12px 28px rgba(255, 208, 91, 0.22);
    transform: translateY(-1px);
}

.btn.rounded-circle:hover,
.btn.rounded-circle:focus {
    transform: translateY(-2px) scale(1.03);
}

.btn i {
    transition: transform 0.18s ease;
}

.btn:hover i,
.btn:focus i {
    transform: scale(1.08);
}

.user-pill {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
    border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-soft);
}

.main-panel {
    min-width: 0;
}

.main-panel.force-repaint,
.main-panel .force-repaint {
    transform: translateZ(0) !important;
    backface-visibility: hidden;
    will-change: transform;
}

.calculator-shell {
    overflow: visible;
}

.calculator-kicker,
.calculator-section-kicker {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--primary);
}

.calculator-intro {
    max-width: 760px;
}

.calculator-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 22px 24px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(49, 198, 255, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(12, 23, 39, 0.96), rgba(9, 18, 31, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.calculator-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(49, 198, 255, 0.18), rgba(138, 92, 255, 0.16));
    border: 1px solid rgba(49, 198, 255, 0.18);
    color: var(--text-main);
    font-size: 0.92rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.calculator-column,
.calculator-sidebar {
    min-width: 0;
}

.calculator-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

.calculator-panel {
    padding: 22px;
    border-radius: 24px;
    margin-bottom: 20px;
}

.calculator-panel-feature {
    grid-column: span 12;
}

.calculator-form-grid > .calculator-panel:not(.calculator-panel-feature) {
    grid-column: span 6;
}

.calculator-panel .form-label {
    min-height: 0;
    display: block;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.92rem;
}

.calculator-section-head,
.calculator-import-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.calculator-section-icon,
.calculator-import-head i {
    font-size: 1.1rem;
    color: var(--primary);
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(49, 198, 255, 0.12);
}

.calculator-sticky {
    position: sticky;
    top: 24px;
}

.calculator-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.calculator-mini-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calculator-span-full {
    grid-column: 1 / -1;
}

.calculator-inline-note {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.calculator-highlight-stack {
    display: grid;
    gap: 14px;
}

.calculator-highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.calculator-highlight {
    border-radius: 20px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 14, 28, 0.52);
}

.calculator-highlight.primary {
    background: linear-gradient(135deg, rgba(49, 198, 255, 0.14), rgba(9, 22, 36, 0.88));
}

.calculator-highlight.success {
    background: linear-gradient(135deg, rgba(27, 216, 154, 0.16), rgba(9, 22, 36, 0.88));
}

.calculator-highlight.violet {
    background: linear-gradient(135deg, rgba(138, 92, 255, 0.16), rgba(9, 22, 36, 0.88));
}

.calculator-highlight.accent {
    background: linear-gradient(135deg, rgba(255, 138, 61, 0.16), rgba(9, 22, 36, 0.88));
}

.calculator-highlight.dark {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(9, 22, 36, 0.88));
}

.calculator-highlight-label {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.calculator-highlight strong {
    display: block;
    font-size: 1.5rem;
    line-height: 1.1;
    margin-bottom: 8px;
    font-family: 'Roboto', sans-serif;
}

.calculator-highlight small {
    display: block;
    color: var(--text-muted);
    line-height: 1.45;
}

.calculator-breakdown {
    border-radius: 20px;
    padding: 14px 16px;
    background: rgba(6, 14, 28, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.calculator-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
}

.calculator-breakdown-row strong {
    color: var(--text-main);
}

.calculator-breakdown-row.total {
    border-bottom: none;
    padding-bottom: 0;
}

.calculator-breakdown-row.total strong {
    color: var(--success);
}

.calculator-import-panel {
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(10, 23, 40, 0.92), rgba(6, 13, 24, 0.96));
    border: 1px solid rgba(49, 198, 255, 0.14);
}

.calculator-import-note {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    line-height: 1.5;
}

.calculator-import-banner {
    border-color: rgba(49, 198, 255, 0.16);
    background: linear-gradient(135deg, rgba(49, 198, 255, 0.08), rgba(12, 22, 38, 0.94));
}

@media (max-width: 1199.98px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .calculator-form-grid > .calculator-panel:not(.calculator-panel-feature) {
        grid-column: span 12;
    }

    .calculator-sticky {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .calculator-hero {
        padding: 18px;
        flex-direction: column;
    }

    .calculator-panel {
        padding: 18px;
    }

    .calculator-panel .form-label {
        min-height: 0;
        display: block;
    }

    .calculator-highlight-grid {
        grid-template-columns: 1fr;
    }

    .calculator-mini-grid,
    .calculator-mini-grid-wide {
        grid-template-columns: 1fr;
    }

    .calculator-chip {
        width: 100%;
        justify-content: center;
    }
}

.table-responsive {
    overflow-x: auto;
}

.table-responsive.app-scrollbar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.metric-icon {
    width: 54px; height: 54px; font-size: 1.3rem;
    background: rgba(49, 198, 255, 0.16); color: var(--primary);
}

.metric-card-alert {
    border-color: rgba(255, 100, 124, 0.18);
    background: linear-gradient(135deg, rgba(255, 100, 124, 0.08), rgba(10, 19, 36, 0.78));
}

.cash-status-card {
    min-height: 100%;
}

.cash-status-open {
    border-color: rgba(34, 197, 94, 0.28);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(10, 19, 36, 0.88));
}

.cash-status-open .stat-number,
.cash-status-open .cash-status-label {
    color: #7ef0a7;
}

.cash-status-closed {
    border-color: rgba(255, 100, 124, 0.28);
    background: linear-gradient(135deg, rgba(255, 100, 124, 0.14), rgba(10, 19, 36, 0.88));
}

.cash-status-closed .stat-number,
.cash-status-closed .cash-status-label {
    color: #ff9baa;
}

.metric-icon-danger {
    background: rgba(255, 100, 124, 0.14);
    color: var(--danger);
}

.form-control, .form-select, .input-group-text, textarea {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    color: var(--text-main) !important;
    border-radius: 16px !important;
    min-height: 48px;
}

select,
select.form-select,
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter select {
    background-color: #0d1728 !important;
    color: var(--text-main) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

select option,
select optgroup {
    background: #0f1b2f !important;
    color: var(--text-main) !important;
}

select option:checked,
select option:hover,
select option:focus {
    background: linear-gradient(135deg, rgba(49, 198, 255, 0.28), rgba(138, 92, 255, 0.24)) !important;
    color: #ffffff !important;
}

.form-control::placeholder, textarea::placeholder { color: #8492aa !important; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--text-main); --bs-table-border-color: rgba(255,255,255,.08); }
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate { color: var(--text-muted) !important; }

.client-table-filter {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.client-table-filter label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.client-table-filter input {
    width: clamp(140px, 20vw, 170px) !important;
    min-width: 0;
}

.client-form-toggle-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    border-radius: 999px !important;
    overflow: hidden;
    box-shadow: none !important;
}

.client-form-toggle-button i {
    font-size: 1rem;
}

.client-form-toggle-button:hover,
.client-form-toggle-button:focus {
    box-shadow: none !important;
}

.client-view-toggle-host {
    display: none;
}

.client-list-header-actions,
.client-form-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 42px;
}

.client-view-panel {
    transition:
        opacity 0.24s ease,
        transform 0.24s ease,
        filter 0.24s ease;
    transform-origin: top center;
    will-change: opacity, transform;
}

.client-view-panel-hidden {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(2px);
    pointer-events: none;
}

.client-view-panel-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.user-form-tabs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-form-tab {
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.user-form-tab:hover,
.user-form-tab.active {
    color: var(--text-main);
    background: linear-gradient(135deg, rgba(49, 198, 255, 0.16), rgba(138, 92, 255, 0.14));
}

.user-form-tab.active {
    transform: translateY(-1px);
}

.user-form-tab-panel {
    display: none;
}

.user-form-tab-panel.active {
    display: block;
    animation: userTabFadeIn 0.26s ease;
}

.app-open-tabs,
.app-form-tabs {
    padding: 0;
    margin: 0;
    border: 0;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-open-tabs-item,
.app-form-tabs .nav-item {
    margin: 0;
    flex: 0 0 auto;
}

.app-open-tabs .app-open-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-bottom-color: transparent;
    border-radius: 16px 16px 0 0;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.app-open-tabs .app-open-tab-link:hover {
    color: var(--text-main);
    border-color: rgba(49, 198, 255, 0.18);
    border-bottom-color: transparent;
    background: rgba(49, 198, 255, 0.06);
}

.app-open-tabs .app-open-tab-link.active {
    color: var(--text-main);
    border-color: rgba(49, 198, 255, 0.28);
    border-bottom-color: transparent;
    background: linear-gradient(180deg, rgba(49, 198, 255, 0.12), rgba(138, 92, 255, 0.06));
    box-shadow: inset 0 1px 0 rgba(122, 224, 255, 0.12);
}

.app-open-tabs .app-open-tab-label {
    color: inherit;
    white-space: nowrap;
    text-decoration: none;
}

.app-open-tabs .app-open-tab-close {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.app-open-tabs .app-open-tab-close:hover {
    background: rgba(255,100,124,0.18);
    color: #fff;
}

.app-form-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-bottom-color: transparent;
    border-radius: 16px 16px 0 0;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.app-form-tabs .nav-link:hover {
    color: var(--text-main);
    border-color: rgba(49, 198, 255, 0.18);
    border-bottom-color: transparent;
    background: rgba(49, 198, 255, 0.06);
}

.app-form-tabs .nav-link.active {
    color: var(--text-main);
    border-color: rgba(49, 198, 255, 0.28);
    border-bottom-color: transparent;
    background: linear-gradient(180deg, rgba(49, 198, 255, 0.12), rgba(138, 92, 255, 0.06));
    box-shadow: inset 0 1px 0 rgba(122, 224, 255, 0.12);
}

.app-form-tabs .nav-link:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(49, 198, 255, 0.18);
}

.app-form-tabs .nav-link:disabled,
.app-form-tabs .nav-link.disabled {
    opacity: 0.55;
    color: var(--text-muted);
    cursor: not-allowed;
}

.app-form-tabs + .tab-content {
    padding-top: 4px;
}

.app-form-tabs-shell {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.app-open-tabs-shell {
    margin-bottom: 1rem;
}

.app-form-tabs-shell .app-form-tabs {
    margin-bottom: 0;
}

.fiscal-section-header {
    margin-bottom: 1rem;
}

.fiscal-section-header h5 {
    margin: 0 0 0.35rem;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
}

.fiscal-section-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

@keyframes userTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.permissions-toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.permission-super-toggle {
    display: inline-block;
    cursor: pointer;
}

.permission-super-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.permission-super-toggle-ui {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.24s ease, background 0.24s ease, transform 0.24s ease;
}

.permission-super-toggle-ui i {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--warning);
    font-size: 0.95rem;
}

.permission-super-toggle-ui strong,
.permission-row-copy strong {
    display: block;
    color: var(--text-main);
}

.permission-super-toggle-ui small,
.permission-row-copy small,
.permissions-group-header small {
    color: var(--text-muted);
}

.permission-super-toggle input:checked + .permission-super-toggle-ui {
    border-color: rgba(49, 198, 255, 0.34);
    background: linear-gradient(135deg, rgba(49, 198, 255, 0.12), rgba(138, 92, 255, 0.10));
    transform: translateY(-1px);
}

.permissions-search-wrap {
    width: 100%;
}

.permissions-catalog-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    min-height: 0;
}

.permissions-catalog {
    display: grid;
    gap: 20px;
    transition: opacity 0.22s ease;
}

.permissions-catalog-disabled {
    opacity: 0.55;
}

.permissions-group {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.permissions-group-split {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.permissions-group-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.permissions-list {
    display: grid;
    max-height: 420px;
    overflow: auto;
}

.permission-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s ease;
}

.permission-row:first-child {
    border-top: 0;
}

.permission-row:hover {
    background: rgba(49, 198, 255, 0.06);
}

.permission-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

@media (max-width: 991px) {
    .permissions-toolbar {
        justify-content: flex-start;
    }

    .permissions-catalog-split {
        grid-template-columns: 1fr;
    }
}

.orders-table th,
.orders-table td,
.quotes-table th,
.quotes-table td {
    font-size: 0.94rem;
    vertical-align: middle;
}

.orders-table th:nth-child(1),
.orders-table td:nth-child(1) {
    width: 64px;
}

.orders-table th:nth-child(4),
.orders-table td:nth-child(4) {
    width: 120px;
}

.orders-table th:nth-child(5),
.orders-table td:nth-child(5) {
    width: 108px;
}

.orders-actions {
    white-space: nowrap;
}

.orders-actions-col,
.orders-actions {
    width: 104px;
}

.orders-actions .btn {
    margin-left: 4px;
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.orders-status-col {
    width: 112px;
}

.order-status-badge,
.quote-status-badge {
    min-width: 88px;
    padding: 0.42rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.due-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.due-overdue {
    color: #ffd7de;
    background: rgba(255, 100, 124, 0.16);
    border-color: rgba(255, 100, 124, 0.28);
}

.due-near {
    color: #ffe8a6;
    background: rgba(255, 208, 91, 0.14);
    border-color: rgba(255, 208, 91, 0.24);
}

.due-ok {
    color: #b8f7e5;
    background: rgba(27, 216, 154, 0.14);
    border-color: rgba(27, 216, 154, 0.24);
}

.due-none {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.order-row-overdue td {
    background: rgba(255, 100, 124, 0.06);
}

.order-row-near td {
    background: rgba(255, 208, 91, 0.05);
}

.orders-filter-panel {
    border: 1px solid rgba(49, 198, 255, 0.12);
    background: linear-gradient(180deg, #091321, #0c1829);
    box-shadow:
        0 0 0 1px rgba(49, 198, 255, 0.12),
        0 0 22px rgba(49, 198, 255, 0.08);
}

.orders-filter-dropdown {
    min-width: 340px;
    background: #091321;
    border: 0;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    margin-top: 10px !important;
}

.orders-filter-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.orders-filter-dropdown .orders-filter-panel {
    margin: 0;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42);
    padding: 16px;
    backdrop-filter: none;
}

.orders-filter-panel .filter-label {
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8fb3d9;
}

.orders-filter-panel .form-control,
.orders-filter-panel .form-select {
    min-height: 44px;
}

.orders-filter-panel .btn {
    min-height: 42px;
}

.orders-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.quotes-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.quote-actions-col {
    width: 104px;
}

.quotes-status-col {
    width: 128px;
}

.quotes-filter-panel {
    border: 1px solid rgba(49, 198, 255, 0.12);
    background: linear-gradient(180deg, #091321, #0c1829);
    box-shadow:
        0 0 0 1px rgba(49, 198, 255, 0.12),
        0 0 22px rgba(49, 198, 255, 0.08);
}

.quotes-filter-dropdown {
    min-width: 340px;
    background: #091321;
    border: 0;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    margin-top: 10px !important;
}

.quotes-filter-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.quotes-filter-dropdown .quotes-filter-panel {
    margin: 0;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42);
    padding: 16px;
}

.quotes-filter-panel .filter-label {
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8fb3d9;
}

.quotes-filter-panel .form-control,
.quotes-filter-panel .form-select {
    min-height: 44px;
}

.quotes-filter-panel .btn {
    min-height: 42px;
}

.orders-table-summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.orders-table-summary-info {
    border-color: rgba(49, 198, 255, 0.14);
    background: rgba(49, 198, 255, 0.06);
}

.orders-table-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8fb3d9;
    font-weight: 700;
}

.detail-list {
    display: grid;
    gap: 14px;
}

.detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.detail-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.detail-list span {
    color: var(--text-muted);
}

.quote-item-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 14px;
}

.stat-number { font-size: 2rem; font-weight: 700; }
.text-gradient {
    background: linear-gradient(135deg, #ffffff, #82dfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-visual {
    min-height: 520px;
    border-radius: 30px;
    padding: 42px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
        radial-gradient(circle at 20% 20%, rgba(49, 198, 255, 0.24), transparent 28%),
        radial-gradient(circle at 80% 30%, rgba(138, 92, 255, 0.22), transparent 24%),
        rgba(7, 14, 26, 0.85);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-lg);
}

.glass-note {
    border-radius: 22px; padding: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}

html[data-bs-theme='light'] .glass-note {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(16, 35, 63, 0.10);
}

html[data-bs-theme='light'] .login-panel,
html[data-bs-theme='light'] .content-card,
html[data-bs-theme='light'] .metric-card,
html[data-bs-theme='light'] .sidebar-glass,
html[data-bs-theme='light'] .table-shell {
    box-shadow: 0 22px 56px rgba(39, 77, 128, 0.12);
}

html[data-bs-theme='light'] body {
    background: linear-gradient(135deg, #eef4ff 0%, #f7fbff 52%, #edf3fb 100%);
}

html[data-bs-theme='light'] .dashboard-chart-grid .content-card,
html[data-bs-theme='light'] .dashboard-chart-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.92)),
        radial-gradient(circle at top right, rgba(42, 139, 255, 0.10), transparent 32%),
        rgba(255, 255, 255, 0.96);
}

html[data-bs-theme='light'] .dataTables_wrapper .dataTables_filter input,
html[data-bs-theme='light'] .dataTables_wrapper .dataTables_length select,
html[data-bs-theme='light'] .form-control,
html[data-bs-theme='light'] .form-select {
    background-color: #ffffff;
    color: var(--text-main);
    border-color: rgba(16, 35, 63, 0.12);
}

html[data-bs-theme='light'] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-main);
    --bs-table-border-color: rgba(16, 35, 63, 0.08);
}

html[data-bs-theme='light'] .table thead th,
html[data-bs-theme='light'] .dataTables_wrapper .dataTables_info,
html[data-bs-theme='light'] .dataTables_wrapper .dataTables_paginate,
html[data-bs-theme='light'] .dataTables_wrapper .dataTables_length,
html[data-bs-theme='light'] .dataTables_wrapper .dataTables_filter,
html[data-bs-theme='light'] .text-secondary {
    color: var(--text-muted) !important;
}

.dashboard-chart-grid .content-card,
.dashboard-chart-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at top right, rgba(49, 198, 255, 0.12), transparent 32%),
        rgba(8, 16, 31, 0.92);
}

.dashboard-chart-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(49, 198, 255, 0.06), transparent 35%, rgba(138, 92, 255, 0.05));
}

.dashboard-chart-card > * {
    position: relative;
    z-index: 1;
}

.dashboard-note {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-note strong {
    font-size: 1.05rem;
    color: var(--text-main);
}

.login-screen-single {
    min-height: 100vh;
}

.login-single-container {
    max-width: 560px;
}

.login-panel {
    min-height: 100%;
}

.login-panel-single {
    width: 100%;
    max-width: 520px;
}

.login-brand-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.brand-mark-lg {
    width: 86px;
    height: 86px;
    font-size: 2rem;
}

.login-brand-title {
    font-size: clamp(1.8rem, 4vw, 2.35rem);
}

.login-brand-subtitle {
    max-width: 280px;
}

.login-password-wrap {
    position: relative;
}

.login-password-wrap .form-control {
    padding-right: 52px;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-password-toggle:hover {
    color: var(--text-main);
    border-color: rgba(49, 198, 255, 0.35);
}

.login-recovery {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.login-recovery-trigger {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    transition: color 0.2s ease;
}

.login-recovery-trigger:hover {
    color: var(--text-main);
}

.login-recovery-options {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease, margin-top 0.22s ease;
}

.login-recovery-options.is-open {
    margin-top: 16px;
    max-height: 72px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.login-recovery-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-recovery-icon:hover {
    transform: translateY(-2px);
    border-color: rgba(49, 198, 255, 0.45);
    box-shadow: 0 18px 28px rgba(16, 26, 48, 0.24);
}

canvas { max-width: 100%; }

.finance-summary-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.finance-summary-box {
    flex: 1 1 0;
}

.currency-option-label {
    display: block;
    cursor: pointer;
}

.currency-option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.currency-option-card {
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.currency-option-card:hover {
    transform: translateY(-2px);
    border-color: rgba(49, 198, 255, 0.4);
}

.dashboard-widget-option {
    display: block;
    cursor: pointer;
    height: 100%;
}

.dashboard-widget-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dashboard-widget-card {
    min-height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dashboard-widget-option:hover .dashboard-widget-card {
    transform: translateY(-2px);
    border-color: rgba(49, 198, 255, 0.35);
}

.dashboard-widget-icon,
.dashboard-widget-check {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.dashboard-widget-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.dashboard-widget-content strong {
    color: var(--text-main);
    font-size: 1rem;
}

.dashboard-widget-content small {
    color: var(--text-muted);
    line-height: 1.5;
}

.dashboard-widget-check {
    color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-widget-input:checked + .dashboard-widget-card {
    border-color: rgba(49, 198, 255, 0.48);
    background: linear-gradient(180deg, rgba(49, 198, 255, 0.08), rgba(138, 92, 255, 0.05));
    box-shadow: 0 20px 36px rgba(4, 9, 18, 0.24);
}

.dashboard-widget-input:checked + .dashboard-widget-card .dashboard-widget-check {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
}

.dashboard-widget-group {
    overflow: hidden;
}

.dashboard-widget-list {
    max-height: none;
}

.dashboard-widget-row {
    grid-template-columns: 22px 42px minmax(0, 1fr) 42px;
    gap: 14px;
}

.dashboard-widget-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.dashboard-widget-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1;
}

.dashboard-widget-row .dashboard-widget-input {
    position: static;
    opacity: 1;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.dashboard-widget-row .dashboard-widget-icon,
.dashboard-widget-row .dashboard-widget-check {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.dashboard-widget-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dashboard-widget-copy strong {
    color: var(--text-main);
    font-size: 1rem;
}

.dashboard-widget-copy small {
    color: var(--text-muted);
    line-height: 1.5;
}

.dashboard-widget-row .dashboard-widget-check {
    color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    justify-self: end;
}

.dashboard-widget-row:hover {
    background: rgba(49, 198, 255, 0.06);
}

.dashboard-widget-row:has(.dashboard-widget-input:checked) {
    border-color: rgba(49, 198, 255, 0.48);
    background: linear-gradient(180deg, rgba(49, 198, 255, 0.08), rgba(138, 92, 255, 0.05));
}

.dashboard-widget-row:has(.dashboard-widget-input:checked) .dashboard-widget-check {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
}

.theme-mode-switch-wrap {
    min-width: 240px;
}

.theme-mode-switch {
    display: block;
    cursor: pointer;
}

.theme-mode-switch-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-mode-switch-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.theme-mode-switch-option {
    position: relative;
    z-index: 1;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 500;
}

.theme-mode-switch-thumb {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 28px rgba(49, 198, 255, 0.22);
    transition: transform 0.26s ease;
}

.theme-mode-switch-input:checked + .theme-mode-switch-track .theme-mode-switch-thumb {
    transform: translateX(100%);
}

.theme-mode-switch-input:not(:checked) + .theme-mode-switch-track .theme-mode-switch-option:first-child,
.theme-mode-switch-input:checked + .theme-mode-switch-track .theme-mode-switch-option:last-child {
    color: #ffffff;
}

@media (max-width: 991px) {
    .admin-shell { grid-template-columns: 1fr; }
    .sidebar-glass { min-height: auto; position: static; }
    .metric-card,
    .content-card,
    .table-shell {
        padding: 20px;
    }
    .orders-actions {
        min-width: 150px;
    }

    .orders-filter-dropdown {
        min-width: min(92vw, 360px);
    }

    .quotes-filter-dropdown {
        min-width: min(92vw, 360px);
    }

    .orders-table-header {
        align-items: stretch;
    }

    .finance-summary-column {
        gap: 1rem;
    }

    .login-panel-single {
        max-width: 100%;
    }

}

@media (max-width: 767px) {
    .admin-shell {
        padding: 14px;
        gap: 14px;
    }
    .sidebar-glass,
    .metric-card,
    .content-card,
    .table-shell,
    .login-panel {
        border-radius: 20px;
    }
    .quote-item-row {
        padding: 14px;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .display-6 {
        font-size: 2rem;
    }

    .orders-filter-dropdown {
        min-width: min(92vw, 320px);
    }

    .quotes-filter-dropdown {
        min-width: min(92vw, 320px);
    }

    .orders-filter-panel {
        padding: 14px;
    }

    .quotes-filter-panel {
        padding: 14px;
    }

    .orders-filter-panel .col-6 {
        width: 100%;
    }

    .quotes-filter-panel .col-6 {
        width: 100%;
    }

    .orders-table-summary {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 991px) {
    body.sidebar-mobile-open {
        overflow: hidden;
    }

    .admin-shell {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 68px 14px 14px;
    }

    .main-panel {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
    }

    .admin-shell > .main-panel > *,
    .main-panel > *,
    .main-panel .row,
    .main-panel .content-card,
    .main-panel .table-shell,
    .main-panel .metric-card {
        width: 100%;
        max-width: 100%;
    }

    .sidebar-glass {
        position: fixed;
        top: 12px;
        left: 12px;
        bottom: 12px;
        width: min(86vw, 320px);
        min-height: 0;
        max-height: none;
        z-index: 1039;
        margin: 0;
        transform: translateX(0);
        opacity: 1;
    }

    .sidebar-glass.sidebar-collapsed {
        transform: translateX(calc(-100% - 18px));
        opacity: 0;
        pointer-events: none;
    }

    .sidebar-mobile-trigger {
        display: inline-flex;
    }

    body.sidebar-mobile-open .sidebar-mobile-trigger {
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
    }

    .sidebar-mobile-open .sidebar-mobile-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-collapsed .sidebar-brand-row,
    .sidebar-collapsed .brand-block,
    .sidebar-collapsed .brand-copy,
    .sidebar-collapsed .nav-link-modern,
    .sidebar-collapsed .finance-submenu-link,
    .sidebar-collapsed .finance-submenu-link-nested,
    .sidebar-collapsed .sidebar-logout-btn,
    .sidebar-collapsed .sidebar-logout-label,
    .sidebar-collapsed .finance-toggle-main,
    .sidebar-collapsed .finance-submenu-toggle-main {
        opacity: 1;
        visibility: visible;
        max-width: none;
        transform: none;
    }

    .content-card-tabs {
        padding: 10px 12px;
        margin-bottom: 14px !important;
    }

    .tabs-strip {
        gap: 6px;
    }

    .tab-chip {
        padding: 9px 12px;
        gap: 8px;
    }

    .dashboard-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .dashboard-notification-btn {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-notification-panel {
        width: min(100vw - 28px, 460px);
        right: auto;
        left: 0;
    }

    .client-table-filter,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_paginate,
    .dataTables_wrapper .dataTables_info {
        width: 100%;
    }

    .client-table-filter {
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }

    .client-table-filter label,
    .dataTables_wrapper .dataTables_filter label {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .client-table-filter input,
    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        min-width: 0;
    }

    .dataTables_wrapper .row {
        row-gap: 10px;
    }

    .dataTables_wrapper > .row:first-child > div,
    .dataTables_wrapper > .row:last-child > div {
        display: flex;
        justify-content: flex-start;
    }

    .dataTables_wrapper > .row:first-child > div:last-child,
    .dataTables_wrapper > .row:last-child > div:last-child {
        justify-content: flex-start;
    }

    .dataTables_wrapper .dataTables_length label,
    .dataTables_wrapper .dataTables_filter label {
        margin-bottom: 0;
    }

    .dataTables_wrapper .dataTables_paginate .pagination {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .orders-actions {
        min-width: 128px;
    }

    .orders-actions-col,
    .quote-actions-col {
        width: 120px;
    }

    .finance-summary-column {
        gap: 1rem;
    }

    .permissions-toolbar {
        grid-template-columns: 1fr;
    }

    .user-form-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .user-form-tab {
        flex: 1 1 0;
        text-align: center;
        padding-inline: 14px;
    }

    .client-view-panel,
    .client-view-panel form,
    .client-view-panel .row,
    .client-view-panel [class*='col-'],
    .client-view-panel .input-group,
    .client-view-panel .form-control,
    .client-view-panel .form-select,
    .client-view-panel textarea,
    .client-view-panel .user-form-tabs,
    .client-view-panel .permissions-toolbar,
    .client-view-panel .permissions-catalog,
    .client-view-panel .permissions-group,
    .client-view-panel .permission-super-toggle-ui,
    .client-view-panel .permission-row,
    .client-view-panel .client-list-header-actions,
    .client-view-panel .client-form-header-actions {
        min-width: 0;
        max-width: 100%;
    }

    .client-view-panel .row {
        margin-left: 0;
        margin-right: 0;
        --bs-gutter-x: 0.9rem;
    }

    .client-view-panel .row > [class*='col-'] {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .client-view-panel .input-group {
        width: 100%;
        flex-wrap: nowrap;
    }

    .client-view-panel .input-group > .form-control,
    .client-view-panel .input-group > .form-select {
        min-width: 0;
        width: 1%;
    }

    .client-view-panel .input-group > .btn {
        flex: 0 0 auto;
    }

    .client-view-panel .d-flex.gap-2.mt-1,
    .client-view-panel .d-flex.gap-2.mt-4 {
        flex-wrap: wrap;
    }

    .client-view-panel .d-flex.gap-2.mt-1 > .btn,
    .client-view-panel .d-flex.gap-2.mt-1 > a,
    .client-view-panel .d-flex.gap-2.mt-4 > .btn,
    .client-view-panel .d-flex.gap-2.mt-4 > a {
        width: 100%;
    }

    .client-view-panel .user-form-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .client-view-panel .user-form-tab {
        width: 100%;
        min-width: 0;
        padding-inline: 10px;
    }

    .dashboard-chart-grid .content-card,
    .dashboard-chart-card,
    .finance-summary-box,
    .cash-status-card,
    .glass-note {
        min-height: 0;
    }

    .row.g-4 > [class*='col-'],
    .row.g-3 > [class*='col-'] {
        min-width: 0;
    }

    .support-floating-widget {
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 1199px) {
    .company-inline-summary {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .company-inline-pills {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .company-inline-upload {
        justify-self: start;
    }

    .dashboard-workspace-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .dashboard-tile,
    .dashboard-size-small,
    .dashboard-size-medium {
        grid-column: span 3;
    }

    .dashboard-size-large {
        grid-column: span 6;
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 767px) {
    .company-inline-identity {
        align-items: flex-start;
    }

    .company-inline-meta span {
        white-space: normal;
    }

    .company-inline-pill {
        flex: 1 1 calc(50% - 5px);
        min-width: calc(50% - 5px);
    }

    .sidebar-glass {
        width: min(92vw, 320px);
        border-radius: 24px;
    }

    .sidebar-mobile-trigger {
        top: 12px;
        left: 12px;
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .sidebar-brand-row {
        margin-bottom: 12px !important;
    }

    .brand-title {
        font-size: 1.12rem;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .sidebar-collapse-btn {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .sidebar-scroll-area {
        padding-right: 2px;
        margin-right: 0;
    }

    .dashboard-notification-panel {
        width: calc(100vw - 28px);
    }

    .dashboard-workspace-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dashboard-tile,
    .dashboard-size-small,
    .dashboard-size-medium,
    .dashboard-size-large {
        grid-column: span 1;
        width: 100%;
        justify-self: stretch;
    }

    .dashboard-tile-header {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .dashboard-tile-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .table-responsive {
        margin-inline: -6px;
        padding-inline: 6px;
        padding-bottom: 6px;
    }

    .table th,
    .table td {
        font-size: 0.88rem;
        white-space: nowrap;
    }

    .table .btn,
    .orders-actions .btn {
        width: 36px;
        height: 36px;
        min-height: 36px;
    }

    .dashboard-topbar,
    .catalog-hero,
    .catalog-actions,
    .orders-table-header,
    .quotes-table-header {
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-actions .btn,
    .dashboard-topbar .btn,
    .orders-table-header .btn,
    .quotes-table-header .btn {
        width: 100%;
    }

    .dashboard-topbar h2 {
        font-size: 1.45rem;
    }

    .tab-chip {
        min-width: max-content;
    }

    .tab-chip-label {
        max-width: 160px;
    }

    .content-card-tabs {
        margin-inline: -2px;
    }

    .metric-icon {
        width: 44px;
        height: 44px;
        border-radius: 16px;
        flex: 0 0 44px;
    }

    .stat-number {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .client-view-toggle-host {
        justify-content: flex-end;
    }

    .support-floating-trigger {
        width: 54px;
        height: 54px;
    }

    .catalog-share-btn {
        min-height: 48px;
        padding: 12px 14px;
    }

    .catalog-link-bar {
        grid-template-columns: 1fr;
    }

    .catalog-session-summary {
        grid-template-columns: 1fr;
    }

    .catalog-editorial-feature,
    .catalog-editorial-section-head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .support-floating-panel {
        width: min(320px, calc(100vw - 28px));
    }

    .permission-super-toggle-ui,
    .permissions-group-header,
    .permission-row {
        padding-inline: 14px;
    }
}

@media (max-width: 575px) {
    .company-inline-summary {
        gap: 16px;
    }

    .company-inline-identity {
        flex-direction: column;
        align-items: flex-start;
    }

    .company-inline-pills {
        gap: 8px;
    }

    .company-inline-pill {
        width: 100%;
        min-width: 0;
    }

    .company-inline-upload {
        width: 100%;
    }

    .admin-shell {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 62px 10px 10px;
    }

    .metric-card,
    .content-card,
    .table-shell {
        padding: 16px;
    }

    .user-pill {
        width: 100%;
        justify-content: center;
    }

    .theme-mode-switch-wrap {
        width: 100%;
        min-width: 0;
    }

    .permissions-search-wrap,
    .permissions-search-wrap .form-control,
    .client-table-filter label,
    .dataTables_wrapper .dataTables_filter label {
        width: 100%;
    }

    .client-table-filter {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .client-form-toggle-button {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .client-view-panel .user-form-tabs {
        grid-template-columns: 1fr;
    }

    .client-view-panel .permission-super-toggle-ui {
        align-items: flex-start;
    }

    .client-view-panel .permission-row {
        grid-template-columns: 18px minmax(0, 1fr);
        gap: 10px;
    }

    .catalog-selection-config {
        grid-template-columns: 1fr;
    }

    .catalog-editorial-feature {
        grid-template-columns: 1fr;
    }

    .orders-actions,
    .orders-actions-col,
    .quote-actions-col {
        min-width: auto;
        width: auto;
    }

    .orders-table th,
    .orders-table td,
    .quotes-table th,
    .quotes-table td {
        font-size: 0.84rem;
    }

    .support-floating-panel {
        width: calc(100vw - 24px);
    }

    .dashboard-notification-panel,
    .support-floating-panel {
        border-radius: 22px;
    }

    .table-shell,
    .content-card,
    .metric-card {
        border-radius: 22px;
    }
}
.login-access-notice {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 193, 7, 0.12);
    color: #ecf2ff;
    margin-bottom: 1.25rem;
}

.login-access-notice.alert-danger {
    background: rgba(255, 107, 122, 0.12);
    border-color: rgba(255, 107, 122, 0.26);
}

.login-access-notice.alert-info {
    background: rgba(49, 198, 255, 0.12);
    border-color: rgba(49, 198, 255, 0.26);
}
