:root {
    --ink: #172033;
    --muted: #6b7688;
    --line: rgba(23, 32, 51, 0.1);
    --panel: rgba(255, 255, 255, 0.92);
    --brand: #0f766e;
    --brand-dark: #134e4a;
    --accent: #e11d48;
    --gold: #f59e0b;
    --sky: #0284c7;
    --sidebar: #0b1720;
    --sidebar-2: #102a2d;
    --topbar: #0b1720;
    --page-bg: #edf3f6;
    --panel-solid: #ffffff;
    --hero-dark: #172033;
    --shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--page-bg);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--brand) 20%, transparent), transparent 34rem),
        radial-gradient(circle at top right, color-mix(in srgb, var(--sky) 18%, transparent), transparent 30rem),
        linear-gradient(135deg, color-mix(in srgb, var(--page-bg) 72%, #ffffff), var(--page-bg));
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: auto 3vw 4vh auto;
    width: min(38vw, 340px);
    height: min(38vw, 340px);
    background: url("images/softofis-logo.png") center/contain no-repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    filter: saturate(1.1);
}

a {
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
}

.desktop-sidebar {
    position: fixed;
    inset: 16px auto 16px 16px;
    width: 278px;
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--sidebar-2), var(--sidebar));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--sidebar-2) 96%, transparent), color-mix(in srgb, var(--sidebar) 98%, transparent)),
        linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, transparent), transparent);
    box-shadow: 0 24px 70px rgba(11, 23, 32, 0.35);
    overflow: hidden;
    z-index: 20;
    transition: width 0.22s ease, padding 0.22s ease;
}

.desktop-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    pointer-events: none;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    position: relative;
    z-index: 1;
    transition: gap 0.22s ease;
}

.brand-block:hover {
    color: #fff;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--gold));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.35);
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.brand-block strong {
    display: block;
    font-size: 1rem;
    letter-spacing: 0;
}

.brand-block small {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    margin-top: 2px;
}

.side-nav {
    display: grid;
    gap: 8px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.side-nav a,
.side-nav-parent {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
    text-align: left;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.side-nav a span,
.side-nav-parent span,
.brand-block span,
.sidebar-user > div {
    transition: opacity 0.18s ease, visibility 0.18s ease, width 0.18s ease;
}

.side-nav a i,
.side-nav-parent > i,
.side-nav-parent-main > i {
    width: 24px;
    text-align: center;
    font-size: 1.08rem;
}

.side-nav a:hover,
.side-nav a.active,
.side-nav-parent:hover,
.side-nav-parent.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(2, 132, 199, 0.82));
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.2);
    transform: translateX(3px);
}

.side-nav-group {
    display: grid;
    gap: 6px;
}

.side-nav-parent {
    justify-content: space-between;
}

.side-nav-parent-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.side-nav-caret {
    width: auto;
    font-size: 0.95rem;
    transition: transform 0.18s ease;
}

.side-nav-parent[aria-expanded="true"] .side-nav-caret {
    transform: rotate(180deg);
}

.side-subnav-wrap {
    padding-left: 14px;
}

.side-subnav {
    display: grid;
    gap: 6px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.side-subnav a {
    min-height: 42px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 0.95rem;
}

.sidebar-user {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    position: relative;
    z-index: 1;
}

.user-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.sidebar-user strong,
.sidebar-user a {
    display: block;
}

.sidebar-user a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.sidebar-toggle {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.15rem;
}

.sidebar-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.sidebar-toggle-inside {
    align-self: flex-end;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.sidebar-toggle-hero {
    display: none;
}

.mobile-topbar {
    display: none;
}

.mobile-menu {
    background: linear-gradient(180deg, var(--sidebar-2), var(--sidebar));
    color: #fff;
}

.mobile-menu .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-main {
    margin-left: 318px;
    padding: 28px 28px 44px;
    transition: margin-left 0.22s ease;
}

.page-hero {
    min-height: 150px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 20px;
    padding: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--hero-dark));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--brand) 95%, transparent), color-mix(in srgb, var(--hero-dark) 95%, transparent)),
        linear-gradient(90deg, color-mix(in srgb, var(--sky) 26%, transparent), transparent);
    color: #fff;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -80px;
    width: 260px;
    height: 260px;
    border: 34px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 18px 24px 18px auto;
    width: clamp(120px, 18vw, 220px);
    background: url("images/softofis-logo.png") center/contain no-repeat;
    opacity: 0.1;
    filter: saturate(1.2);
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.83rem;
    font-weight: 800;
    text-transform: uppercase;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 900;
}

.page-hero p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hero-side {
    display: grid;
    gap: 8px;
    justify-items: end;
    max-width: min(100%, 640px);
}

.hero-actions-top {
    align-items: center;
}

.hero-actions-context {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
    align-items: center;
    width: min(640px, 100%);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.status-pill strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-actions-context .status-pill {
    width: 100%;
    min-width: 0;
}

.status-pill-compact {
    padding: 7px 10px;
    font-size: 0.88rem;
}

.hero-logout {
    padding: 7px 12px;
    border-radius: 8px;
    font-weight: 800;
}

.period-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    max-width: 230px;
}

.period-switcher-label {
    margin: 0;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
}

.period-switcher .form-select {
    min-width: 130px;
    max-width: 150px;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.92);
}

.hero-bulletin {
    width: min(100%, 420px);
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(10px);
}

.hero-bulletin-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.hero-bulletin-top strong {
    display: block;
    font-size: 1rem;
}

.hero-bulletin-top i {
    font-size: 1.15rem;
    opacity: 0.9;
}

.hero-bulletin-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-bulletin p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.92rem;
    line-height: 1.45;
}

.hero-bulletin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 12px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 700;
}

.hero-bulletin-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
}

.hero-bulletin-info {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(255, 255, 255, 0.1));
}

.hero-bulletin-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(255, 255, 255, 0.1));
}

.hero-bulletin-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.26), rgba(255, 255, 255, 0.1));
}

.hero-bulletin-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.24), rgba(255, 255, 255, 0.1));
}

.hero-bulletin-brand {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.3), rgba(2, 132, 199, 0.18));
}

body.sidebar-collapsed .desktop-sidebar {
    width: 92px;
    padding-left: 12px;
    padding-right: 12px;
}

body.sidebar-collapsed .app-main {
    margin-left: 132px;
}

body.sidebar-collapsed .side-subnav-wrap {
    display: none;
}

.instrument-action-btn {
    min-width: 96px;
}

.instrument-action-modal .modal-header {
    align-items: flex-start;
}

.instrument-action-grid {
    display: grid;
    gap: 10px;
}

.instrument-action-grid .btn {
    width: 100%;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 700;
}

.instrument-action-grid form {
    margin: 0;
}

@media (max-width: 575.98px) {
    .instrument-action-modal {
        border-radius: 8px;
    }
}

body.sidebar-collapsed .brand-block {
    justify-content: center;
}

body.sidebar-collapsed .brand-block span,
body.sidebar-collapsed .side-nav a span,
body.sidebar-collapsed .sidebar-user > div {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
}

body.sidebar-collapsed .side-nav a {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
}

body.sidebar-collapsed .side-nav a:hover,
body.sidebar-collapsed .side-nav a.active {
    transform: none;
}

body.sidebar-collapsed .sidebar-user {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 8px;
    background: var(--panel-solid);
    background: color-mix(in srgb, var(--panel-solid) 92%, transparent);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 1.25rem;
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--gold), var(--accent));
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--ink);
}

.financial-stat-card strong {
    font-size: 1.15rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.financial-stat-card .card-body {
    padding: 1rem;
}

.stat-card.stat-safe::before {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.stat-card.stat-info::before {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.stat-card.stat-warn::before {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.stat-card.stat-danger::before {
    background: linear-gradient(90deg, #dc2626, #f43f5e);
}

.dashboard-stat-note {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.85rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.quick-action-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 18px;
    border-radius: 8px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.quick-action-card:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(15, 23, 42, 0.18);
}

.quick-action-card::after {
    content: "";
    position: absolute;
    inset: auto -18px -22px auto;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.quick-action-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1.35rem;
}

.quick-action-text {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
    min-width: 0;
}

.quick-action-text strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    line-height: 1.2;
}

.quick-action-text small {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.84rem;
}

.quick-action-emerald { background: linear-gradient(135deg, #059669, #10b981); }
.quick-action-amber { background: linear-gradient(135deg, #d97706, #f59e0b); }
.quick-action-sky { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.quick-action-rose { background: linear-gradient(135deg, #e11d48, #fb7185); }
.quick-action-violet { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.quick-action-indigo { background: linear-gradient(135deg, #4338ca, #818cf8); }
.quick-action-fuchsia { background: linear-gradient(135deg, #c026d3, #f472b6); }
.quick-action-teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.quick-action-slate { background: linear-gradient(135deg, #334155, #64748b); }
.quick-action-orange { background: linear-gradient(135deg, #ea580c, #fb923c); }

body.license-guard-open {
    overflow: hidden;
}

.license-guard-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.66);
    backdrop-filter: blur(5px);
}

.license-guard-overlay.is-visible {
    display: grid;
}

.license-guard-card {
    width: min(720px, 100%);
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.3);
    animation: licenseGuardPop 0.26s ease;
}

.license-guard-visual {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.28), transparent 32%),
        linear-gradient(160deg, #7c3aed, #0284c7 55%, #10b981);
    min-height: 260px;
}

.license-guard-bars {
    position: absolute;
    inset: auto 26px 34px 26px;
    display: flex;
    align-items: end;
    gap: 10px;
    height: 130px;
}

.license-guard-bars span {
    flex: 1;
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 18px rgba(15, 23, 42, 0.18);
    animation: licenseBarPulse 1.4s ease-in-out infinite;
}

.license-guard-bars span:nth-child(1) { height: 42%; animation-delay: 0s; }
.license-guard-bars span:nth-child(2) { height: 74%; animation-delay: 0.12s; }
.license-guard-bars span:nth-child(3) { height: 100%; animation-delay: 0.24s; }
.license-guard-bars span:nth-child(4) { height: 66%; animation-delay: 0.36s; }
.license-guard-bars span:nth-child(5) { height: 84%; animation-delay: 0.48s; }

.license-guard-wave {
    position: absolute;
    inset: 18px -20% auto -20%;
    height: 110px;
    border-radius: 50%;
    background: rgba(255,255,255,0.13);
    filter: blur(2px);
    animation: licenseWaveMove 3.6s linear infinite;
}

.license-guard-content {
    padding: 28px 28px 24px;
}

.license-guard-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
}

.license-guard-content h3 {
    margin: 0 0 10px;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--ink);
}

.license-guard-content p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.65;
}

.license-guard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@keyframes licenseBarPulse {
    0%, 100% { transform: scaleY(0.92); opacity: 0.84; }
    50% { transform: scaleY(1.04); opacity: 1; }
}

@keyframes licenseWaveMove {
    0% { transform: translateX(-12%) rotate(0deg); }
    100% { transform: translateX(12%) rotate(360deg); }
}

@keyframes licenseGuardPop {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.btn {
    border-radius: 8px;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--sky));
    border: 0;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-dark), var(--sky));
}

.btn-secondary {
    background: #5b677a;
    border-color: #5b677a;
}

.btn-outline-secondary {
    border-color: rgba(23, 32, 51, 0.2);
    color: var(--ink);
}

.form-control,
.form-select {
    border-radius: 8px;
    border-color: rgba(23, 32, 51, 0.14);
    min-height: 42px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 118, 110, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.13);
}

.select2-container--default .select2-selection--single {
    min-height: 42px;
    border-radius: 8px;
    border-color: rgba(23, 32, 51, 0.14);
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    color: var(--ink);
    padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}

.select2-dropdown {
    border-color: rgba(23, 32, 51, 0.14);
    border-radius: 8px;
    overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--brand);
}

.form-label {
    font-weight: 800;
    color: #334155;
}

.table-responsive {
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.table-responsive::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 12px;
    width: 140px;
    height: 140px;
    background: url("images/softofis-logo.png") center/contain no-repeat;
    opacity: 0.035;
    pointer-events: none;
}

.table {
    min-width: 720px;
    margin-bottom: 0;
}

.table thead th {
    background: color-mix(in srgb, var(--page-bg) 70%, #ffffff);
    color: #334155;
    border-bottom: 0;
    font-size: 0.83rem;
    text-transform: uppercase;
}

.table tbody td {
    border-color: rgba(23, 32, 51, 0.08);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: rgba(15, 118, 110, 0.035);
}

.alert {
    border: 0;
    border-radius: 8px;
}

.login-screen::before {
    inset: 50%;
    width: min(42vw, 360px);
    height: min(42vw, 360px);
    transform: translate(-50%, -50%);
    opacity: 0.05;
}

.login-card {
    position: relative;
    overflow: hidden;
}

.login-card::after {
    content: "";
    position: absolute;
    inset: auto -24px -24px auto;
    width: 110px;
    height: 110px;
    background: url("images/softofis-logo.png") center/contain no-repeat;
    opacity: 0.05;
    pointer-events: none;
}

.login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.login-brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(68, 0, 255, 0.14));
}

.login-card .h3 {
    text-align: center;
}

.login-card .text-muted {
    text-align: center;
}

.settings-logo-preview {
    max-width: 220px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(23, 32, 51, 0.12);
    padding: 10px;
}

.theme-preview {
    display: grid;
    grid-template-columns: 120px 1fr;
    min-height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(23, 32, 51, 0.1);
}

.preset-swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 42px;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(23, 32, 51, 0.1);
    background: rgba(255, 255, 255, 0.7);
}

.preset-swatches span {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(23, 32, 51, 0.12);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.theme-preview-sidebar {
    background: linear-gradient(180deg, var(--sidebar-2), var(--sidebar));
}

.theme-preview-main {
    display: grid;
    gap: 12px;
    padding: 18px;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--brand) 18%, transparent), transparent 14rem),
        var(--page-bg);
}

.theme-preview-main div {
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--hero-dark));
}

.theme-preview-main span,
.theme-preview-main strong {
    display: block;
    border-radius: 8px;
    background: color-mix(in srgb, var(--panel-solid) 92%, transparent);
}

.theme-preview-main span {
    height: 20px;
}

.theme-preview-main strong {
    height: 34px;
}

.app-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding: 16px;
    color: var(--muted);
    font-weight: 700;
}

.app-footer a {
    color: var(--brand);
}

.module-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px;
    border-radius: 8px;
    background: var(--panel-solid);
    background: color-mix(in srgb, var(--panel-solid) 66%, transparent);
    border: 1px solid rgba(23, 32, 51, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.module-nav a,
.module-nav-plus > button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 800;
    background: color-mix(in srgb, var(--panel-solid) 72%, transparent);
    border: 1px solid rgba(23, 32, 51, 0.08);
}

.module-nav a.active,
.module-nav a:hover,
.module-nav-plus > button.active,
.module-nav-plus > button:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--sky));
}

.module-nav-plus .dropdown-menu {
    border-radius: 8px;
    border: 1px solid rgba(23, 32, 51, 0.12);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.module-nav-plus > .module-plus-button {
    position: relative;
    gap: 9px;
    overflow: hidden;
    border: 0 !important;
    color: #fff !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%),
        linear-gradient(135deg, #8b1cf6 0%, #ff2d75 54%, #ffb000 100%) !important;
    box-shadow: 0 14px 28px rgba(255, 45, 117, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

.module-nav-plus > .module-plus-button::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.module-nav-plus > .module-plus-button::after {
    content: "";
    position: absolute;
    inset: -60% auto auto -40%;
    width: 70px;
    height: 170%;
    background: rgba(255, 255, 255, 0.24);
    transform: rotate(24deg);
    transition: transform 0.28s ease;
}

.module-nav-plus > .module-plus-button:hover,
.module-nav-plus > .module-plus-button.active {
    color: #fff !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 44%),
        linear-gradient(135deg, #6f00ff 0%, #e6005c 54%, #ff9500 100%) !important;
    box-shadow: 0 18px 34px rgba(230, 0, 92, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
    transform: translateY(-1px);
}

.module-nav-plus > .module-plus-button:hover::after,
.module-nav-plus > .module-plus-button.active::after {
    transform: translateX(120px) rotate(24deg);
}

.module-plus-icon {
    position: relative;
    z-index: 1;
    width: 27px;
    height: 27px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.module-plus-icon i {
    font-size: 1rem;
}

.module-plus-icon b {
    position: absolute;
    right: -4px;
    top: -5px;
    width: 15px;
    height: 15px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: #be123c;
    font-size: 0.78rem;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.module-plus-button > span:not(.module-plus-icon) {
    position: relative;
    z-index: 1;
}

.module-nav .module-nav-plus > button.module-plus-button,
.module-nav .module-nav-plus > button.module-plus-button:hover,
.module-nav .module-nav-plus > button.module-plus-button.active,
.module-nav .module-nav-plus > button.module-plus-button.show {
    color: #fff !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 44%),
        linear-gradient(135deg, #8b1cf6 0%, #ff2d75 54%, #ffb000 100%) !important;
    border-color: transparent !important;
}

.module-nav-plus .dropdown-item {
    display: flex;
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    background: transparent;
}

.sale-row {
    display: grid;
    grid-template-columns: 2fr 0.8fr 1fr 0.8fr 1fr auto;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.totals-box {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(2, 132, 199, 0.08));
    border: 1px solid rgba(23, 32, 51, 0.08);
}

.totals-box div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.totals-box .grand {
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid rgba(23, 32, 51, 0.12);
    font-size: 1.15rem;
}

.price-chart-wrap {
    width: 100%;
    overflow-x: auto;
}

.price-history-svg {
    width: 100%;
    min-width: 680px;
    height: auto;
    display: block;
}

.price-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--muted);
}

.price-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.price-chart-legend i {
    width: 14px;
    height: 14px;
    display: inline-block;
    border-radius: 3px;
}

.help-center {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.help-sidebar {
    position: sticky;
    top: 16px;
}

.help-sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-weight: 900;
}

.help-group + .help-group {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(23, 32, 51, 0.08);
}

.help-index-grid {
    display: grid;
    gap: 14px;
}

.help-group-card {
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(23, 32, 51, 0.08);
}

.help-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.help-group-title {
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted);
}

.help-group-count {
    min-width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(29, 78, 216, 0.1);
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 900;
}

.help-group-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.help-group-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 800;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(23, 32, 51, 0.08);
}

.help-group-button:hover,
.help-group-button.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--sky));
    box-shadow: 0 10px 22px rgba(29, 78, 216, 0.16);
}

.help-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 700;
}

.help-link:hover,
.help-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--sky));
}

.help-module-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(23, 32, 51, 0.08);
    font-size: 0.9rem;
    font-weight: 800;
}

.help-screenshot-frame {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    background: #edf2f7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.help-screenshot-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.help-screenshot-placeholder {
    min-height: 320px;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
}

.help-screenshot-placeholder i {
    font-size: 2rem;
}

.help-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.help-overview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(23, 32, 51, 0.08);
}

.help-overview-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--sky));
    font-size: 1.15rem;
}

.help-overview-card small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-weight: 700;
}

.help-overview-card strong {
    display: block;
    font-size: 1.2rem;
}

.help-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.help-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 32, 51, 0.08);
    font-weight: 700;
}

.help-chip-tab {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(14, 165, 233, 0.12));
}

.help-area-list {
    display: grid;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.help-detail-list,
.help-step-list {
    display: grid;
    gap: 12px;
    padding-left: 0;
}

.help-detail-list {
    list-style: none;
}

.help-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.help-detail-list i {
    color: var(--brand);
    font-size: 1.2rem;
    line-height: 1;
}

.help-step-list {
    margin: 0;
    padding-left: 20px;
}

.help-step-list li {
    padding-left: 4px;
}

.help-note-stack {
    display: grid;
    gap: 12px;
}

.help-note-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 32, 51, 0.08);
}

.help-note-item i {
    color: #f59e0b;
}

.help-management-grid {
    display: grid;
    gap: 14px;
}

.help-management-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(23, 32, 51, 0.08);
}

.help-management-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--sky));
    font-size: 1.1rem;
}

.help-management-item strong {
    display: block;
    margin-bottom: 6px;
}

.help-management-item p {
    margin: 0;
    color: var(--muted);
}

.help-area-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.help-area-list i {
    color: #0f766e;
}

.help-summary-card {
    height: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    background: rgba(255, 255, 255, 0.75);
    color: var(--ink);
}

.help-summary-card:hover,
.help-summary-card.active {
    border-color: rgba(29, 78, 216, 0.2);
    box-shadow: 0 12px 28px rgba(29, 78, 216, 0.12);
}

.help-summary-card strong {
    display: block;
    margin-bottom: 6px;
}

.help-summary-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.help-summary-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--sky));
    font-size: 1.2rem;
}

@media (max-width: 991.98px) {
    body {
        padding-top: 68px;
    }

    .desktop-sidebar {
        display: none;
    }

    .mobile-topbar {
        position: fixed;
        inset: 0 0 auto 0;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 14px;
        background: var(--topbar);
        background: color-mix(in srgb, var(--topbar) 94%, transparent);
        color: #fff;
        backdrop-filter: blur(12px);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
        z-index: 50;
    }

    .mobile-menu-btn,
    .mobile-logout {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        font-size: 1.35rem;
    }

    .mobile-brand {
        color: #fff;
        font-weight: 900;
    }

    .mobile-brand:hover,
    .mobile-logout:hover {
        color: #fff;
    }

    .app-main {
        margin-left: 0;
        padding: 14px 12px 28px;
    }

    .page-hero {
        min-height: auto;
        display: block;
        padding: 20px;
        margin-bottom: 14px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .hero-actions {
        justify-content: flex-start;
        margin-top: 14px;
    }

    .hero-actions-context {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .hero-side {
        justify-items: stretch;
        max-width: none;
        margin-top: 14px;
    }

    .hero-bulletin {
        width: 100%;
    }

    .sidebar-toggle-hero {
        display: none;
    }

    .status-pill {
        font-size: 0.86rem;
    }

    .period-switcher {
        max-width: none;
    }

    .period-switcher .form-select {
        max-width: none;
    }

    .card-body {
        padding: 1rem;
    }

    .sale-row {
        grid-template-columns: 1fr;
    }

    .help-center {
        grid-template-columns: 1fr;
    }

    .help-sidebar {
        position: static;
    }

    .help-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .mobile-menu {
        display: none;
    }

    .sidebar-toggle-hero {
        display: inline-grid;
    }
}

.list-tools {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding-bottom: 0.75rem;
}

.pagination-wrap .pagination-per-page .form-select {
    min-width: 88px;
}

.column-toggle-menu {
    position: fixed;
    z-index: 1200;
    min-width: 220px;
    padding: 0.75rem;
    max-width: min(280px, calc(100vw - 24px));
    max-height: min(70vh, 420px);
    overflow: auto;
    border-radius: 8px;
}

.column-toggle-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    padding: 0.2rem 0;
}
