:root {
    --brand-primary: #1f56a6;
    --brand-primary-dark: #184a92;
    --brand-primary-deep: #123a73;
    --brand-primary-soft: #edf3fb;
    --brand-primary-soft-alt: #f8fbff;
    --brand-primary-rgb: 31, 86, 166;
    --brand-border-dynamic: #d4e1f3;
    --brand-page-dynamic: #eef4fc;
    --brand-page-dynamic-alt: #f8fbff;
    --brand-secondary: #ff7a00;
    --surface-page: #f4f1fb;
    --surface-card: #ffffff;
    --surface-muted: #f7f4fd;
    --border-soft: #ddd4ef;
    --text-primary: #2f3158;
    --text-muted: #6f6a86;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 96px;
}

body {
    background: linear-gradient(180deg, var(--brand-page-dynamic) 0%, var(--surface-page) 52%, var(--brand-page-dynamic-alt) 100%);
    color: var(--text-primary);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

a {
    color: var(--brand-primary);
}

a:hover {
    color: var(--brand-primary-dark);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1.5rem 4rem;
    position: relative;
}

.auth-device {
    width: min(100%, 1100px);
    position: relative;
}

.auth-device-camera {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(37, 47, 96, 0.78);
    box-shadow: 0 0 0 4px rgba(13, 16, 34, 0.28);
    z-index: 3;
}

.auth-screen {
    position: relative;
    min-height: 690px;
    padding: 2.5rem 3rem 2rem;
    background:
        radial-gradient(circle at 50% -5%, rgba(255,255,255,0.88), rgba(255,255,255,0.18) 40%, transparent 65%),
        linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(246,243,253,0.95) 42%, rgba(239,237,250,0.98) 100%);
    border: 16px solid #2f3450;
    border-bottom-width: 18px;
    border-radius: 28px;
    box-shadow: 0 34px 80px rgba(33, 28, 63, 0.22);
    overflow: hidden;
}

.auth-screen::before,
.auth-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-screen::before {
    background:
        radial-gradient(circle at 12% 18%, rgba(var(--brand-primary-rgb), 0.08) 0, rgba(var(--brand-primary-rgb), 0.08) 2px, transparent 3px),
        radial-gradient(circle at 20% 10%, rgba(var(--brand-primary-rgb), 0.10) 0, rgba(var(--brand-primary-rgb), 0.10) 4px, transparent 5px),
        radial-gradient(circle at 82% 14%, rgba(var(--brand-primary-rgb), 0.12) 0, rgba(var(--brand-primary-rgb), 0.12) 3px, transparent 4px),
        radial-gradient(circle at 76% 26%, rgba(var(--brand-primary-rgb), 0.08) 0, rgba(var(--brand-primary-rgb), 0.08) 2px, transparent 3px);
    opacity: 0.8;
}

.auth-screen::after {
    background:
        linear-gradient(180deg, transparent 0%, transparent 58%, rgba(116, 142, 226, 0.08) 58%, rgba(116, 142, 226, 0.03) 100%),
        radial-gradient(circle at 17% 100%, rgba(var(--brand-primary-rgb), 0.18) 0, rgba(var(--brand-primary-rgb), 0.10) 18%, transparent 19%),
        radial-gradient(circle at 82% 100%, rgba(var(--brand-primary-rgb), 0.18) 0, rgba(var(--brand-primary-rgb), 0.10) 18%, transparent 19%);
}

.auth-screen-wave {
    position: absolute;
    bottom: 110px;
    width: 360px;
    height: 120px;
    background: linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0.08), rgba(var(--brand-primary-rgb), 0.04));
    border-radius: 50% 50% 0 0;
    filter: blur(0.5px);
}

.auth-screen-wave-left {
    left: -90px;
}

.auth-screen-wave-right {
    right: -60px;
}

.auth-screen-ornament,
.auth-screen-illustration {
    position: absolute;
    color: rgba(var(--brand-primary-rgb), 0.13);
    pointer-events: none;
}

.auth-screen-ornament {
    top: 72px;
    font-size: 4rem;
}

.auth-screen-ornament-left {
    left: 44px;
}

.auth-screen-ornament-right {
    right: 48px;
    font-size: 2rem;
    color: rgba(var(--brand-primary-rgb), 0.18);
}

.auth-screen-illustration {
    bottom: 102px;
    font-size: 5.8rem;
}

.auth-screen-illustration-left {
    left: 48px;
    color: rgba(255, 122, 0, 0.45);
}

.auth-screen-illustration-right {
    right: 58px;
    color: rgba(var(--brand-primary-rgb), 0.38);
}

.auth-theme-picker {
    position: absolute;
    top: 28px;
    right: 30px;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

.auth-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-card,
.panel-card {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(221,212,239,0.9);
    border-radius: 1.5rem;
    box-shadow: 0 24px 60px rgba(43, 36, 78, 0.16);
}

.auth-device-base {
    width: min(92%, 980px);
    height: 24px;
    margin: -3px auto 0;
    border-radius: 0 0 36px 36px;
    background: linear-gradient(180deg, #6e738e 0%, #474d67 100%);
    box-shadow: 0 20px 36px rgba(23, 21, 44, 0.26);
    position: relative;
}

.auth-device-base::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 8px;
    border-radius: 0 0 12px 12px;
    background: rgba(255,255,255,0.18);
}

.auth-login-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
}

.auth-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-login-logo {
    width: 360px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 28px rgba(26, 38, 82, 0.16));
}

.auth-login-panel {
    width: min(100%, 660px);
}

.auth-login-card {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(212, 225, 243, 0.88);
    border-radius: 1.5rem;
    box-shadow: 0 20px 48px rgba(44, 39, 74, 0.14);
    padding: 2rem 2.5rem 1.6rem;
}

.auth-login-title {
    margin: 0;
    text-align: center;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.auth-login-divider {
    height: 1px;
    margin: 1rem -2.5rem 1.85rem;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--brand-primary-rgb), 0.15) 8%, rgba(var(--brand-primary-rgb), 0.15) 92%, transparent 100%);
}

.auth-form {
    width: min(100%, 430px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.auth-input-shell {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 56px;
    padding: 0 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,244,253,0.98) 100%);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.16);
    border-radius: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.auth-input-icon {
    color: rgba(var(--brand-primary-rgb), 0.58);
    font-size: 1.05rem;
    flex: 0 0 auto;
}

.auth-input-control {
    border: 0;
    box-shadow: none !important;
    padding-inline: 0;
    background: transparent;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.auth-input-control::placeholder {
    color: #7f7a95;
}

.auth-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.auth-check input {
    accent-color: var(--brand-primary);
    width: 17px;
    height: 17px;
}

.auth-inline-link {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-inline-link:hover {
    color: var(--brand-primary-dark);
    text-decoration: underline;
}

.auth-login-button {
    margin-top: 0.35rem;
    min-height: 58px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff9a2b 0%, var(--brand-secondary) 100%);
    color: #fff;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 28px rgba(255, 122, 0, 0.24);
}

.auth-login-button:hover,
.auth-login-button:focus {
    background: linear-gradient(180deg, #ff8d14 0%, #ec7000 100%);
    color: #fff;
}

.auth-register-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.7rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.auth-login-footer {
    text-align: center;
    color: #69657d;
    font-size: 1.15rem;
}

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

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 22, 38, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1040;
}

.sidebar {
    min-height: 100vh;
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 18% 14%, rgba(255,255,255,0.18) 0%, transparent 24%),
        radial-gradient(circle at 78% 84%, rgba(255,255,255,0.12) 0%, transparent 28%),
        radial-gradient(circle at 50% 50%, rgba(var(--brand-primary-rgb), 0.18) 0%, transparent 56%),
        linear-gradient(180deg, var(--brand-primary-deep) 0%, var(--brand-primary) 52%, var(--brand-primary-dark) 100%);
    color: #fff;
    position: sticky;
    top: 0;
    transition: width 0.22s ease, flex-basis 0.22s ease, transform 0.22s ease;
    z-index: 1050;
    overflow: hidden;
}

.sidebar-brand {
    margin-bottom: 1.25rem;
}

.sidebar-logo-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 124px;
    padding: 0.8rem;
    margin: 0 auto;
    width: min(100%, 248px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 32px;
    box-shadow: 0 16px 32px rgba(16, 22, 56, 0.18);
}

.sidebar-logo {
    width: min(100%, 228px);
    max-width: 228px;
    height: auto;
    filter: drop-shadow(0 12px 20px rgba(16, 22, 56, 0.18));
}

.sidebar-meta,
.sidebar-user-meta {
    text-align: center;
}

.sidebar-user-meta {
    margin-top: 1rem;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.82);
    border-radius: 0.95rem;
    padding: 0.72rem 0.9rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar .nav-link i {
    font-size: 1.15rem;
    width: 1.25rem;
    text-align: center;
}

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

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.sidebar-cta-button {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(180deg, #ffb32f 0%, var(--brand-secondary) 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 14px 24px rgba(255, 122, 0, 0.24);
}

.sidebar-cta-button:hover,
.sidebar-cta-button:focus {
    background: linear-gradient(180deg, #ff9d14 0%, #ef7100 100%);
    color: #fff;
}

.main-shell {
    min-width: 0;
    flex: 1 1 auto;
}

.topbar {
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--brand-border-dynamic);
    border-radius: 1rem;
    padding: 0.9rem 1.1rem;
    box-shadow: 0 10px 30px rgba(43, 36, 78, 0.08);
}

.sidebar-toggle {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
}

.user-menu-trigger {
    background: rgba(255,255,255,0.88);
    border: 1px solid var(--brand-border-dynamic) !important;
    box-shadow: 0 8px 20px rgba(43, 36, 78, 0.08);
}

.user-menu-trigger:hover,
.user-menu-trigger:focus {
    background: #fff;
}

.user-menu-avatar,
.user-account-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(145deg, rgba(var(--brand-primary-rgb), 0.18), rgba(var(--brand-primary-rgb), 0.08));
    color: var(--brand-primary-deep);
    font-weight: 700;
    border: 1px solid rgba(var(--brand-primary-rgb), 0.18);
    flex: 0 0 42px;
}

.user-menu-avatar.large,
.user-account-avatar {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    font-size: 1.1rem;
}

.user-menu-avatar img,
.user-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.user-menu-initials,
.user-account-avatar span {
    position: absolute;
    z-index: 1;
}

.user-menu-dropdown {
    min-width: 280px;
    border-radius: 1.1rem;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
}

.user-menu-header {
    background: linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0.07), rgba(var(--brand-primary-rgb), 0.02));
}

.user-menu-dropdown .dropdown-item {
    color: var(--text-primary);
}

.user-menu-dropdown .dropdown-item:hover,
.user-menu-dropdown .dropdown-item:focus {
    background: rgba(var(--brand-primary-rgb), 0.08);
}

.user-account-avatar {
    box-shadow: 0 14px 26px rgba(43, 36, 78, 0.14);
}

.metric-card {
    border-radius: 1.2rem;
    color: #fff;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 12px 24px rgba(43, 36, 78, 0.12);
}

.metric-card.green { background: linear-gradient(135deg, #31bf62, #17984d); }
.metric-card.orange { background: linear-gradient(135deg, #ff8e25, #ff6a00); }
.metric-card.blue { background: linear-gradient(135deg, #3974de, #1954bf); }
.metric-card.red { background: linear-gradient(135deg, #f45d4c, #d5413b); }

.table-card .table thead th {
    border-bottom: 1px solid var(--brand-border-dynamic);
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table-card .table > :not(caption) > * > * {
    background: transparent;
    border-color: var(--brand-border-dynamic);
}

.soft-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(var(--brand-primary-rgb), 0.10);
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.82rem;
}

.soft-badge.warning { background: rgba(255,122,0,0.12); color: #ca6100; }
.soft-badge.success { background: rgba(49,191,98,0.14); color: #14793e; }
.soft-badge.danger { background: rgba(229,84,80,0.12); color: #b43634; }

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tree-list {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.tree-list li {
    padding: 0.55rem 0;
    border-left: 1px dashed rgba(var(--brand-primary-rgb), 0.25);
    margin-left: 0.75rem;
    padding-left: 1rem;
}

.tree-list li:first-child {
    margin-top: 0.25rem;
}

.form-section {
    background: var(--surface-card);
    border: 1px solid var(--brand-border-dynamic);
    border-radius: 1.25rem;
    padding: 1.25rem;
}

.location-row {
    background: var(--surface-muted);
    border-radius: 1rem;
    padding: 0.9rem;
    margin-bottom: 0.85rem;
    border: 1px solid var(--brand-border-dynamic);
}

.product-thumb {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    border: 1px solid var(--brand-border-dynamic);
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 58px;
}

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

.product-thumb.is-empty,
.product-thumb-placeholder {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.product-image-preview-card {
    background: var(--surface-muted);
    border: 1px solid var(--brand-border-dynamic);
    border-radius: 1.25rem;
    padding: 1rem;
}

.product-image-preview {
    min-height: 220px;
    border-radius: 1rem;
    border: 1px dashed rgba(var(--brand-primary-rgb), 0.28);
    background: linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0.05) 0%, rgba(255,255,255,0.92) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-preview.has-image {
    border-style: solid;
}

.product-image-preview img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.product-image-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.product-image-preview-placeholder i {
    font-size: 2rem;
}

.footer-note {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.85rem;
    padding: 2rem 0 0.5rem;
}

.dashboard-alert {
    margin-bottom: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 234, 196, 0.72);
    border: 1px solid rgba(255, 173, 43, 0.28);
}

.dashboard-hero {
    margin-bottom: 1.35rem;
}

.dashboard-hero-title {
    margin: 0 0 0.35rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-hero-subtitle {
    margin: 0;
    color: #6f7698;
    font-size: 1rem;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-kpi-card {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 1.15rem 1.2rem;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(212,225,243,0.9);
    border-radius: 1rem;
    box-shadow: 0 14px 28px rgba(43, 36, 78, 0.08);
}

.dashboard-kpi-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    color: #fff;
    flex: 0 0 54px;
}

.dashboard-kpi-icon.orange {
    background: linear-gradient(180deg, #ffbe4f 0%, #f5931f 100%);
}

.dashboard-kpi-icon.soft {
    background: linear-gradient(180deg, #ffb063 0%, #7b9cff 100%);
}

.dashboard-kpi-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-kpi-label {
    font-size: 0.95rem;
    color: #64709a;
}

.dashboard-kpi-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
}

.dashboard-kpi-side {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a4f7c;
}

.dashboard-chart-grid,
.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-panel {
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(212,225,243,0.92);
    border-radius: 1rem;
    box-shadow: 0 16px 28px rgba(43, 36, 78, 0.08);
    padding: 1.2rem 1.25rem;
}

.dashboard-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.dashboard-panel-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-panel-menu {
    color: #97a0c6;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.dashboard-line-card {
    height: 220px;
}

.dashboard-line-svg {
    width: 100%;
    height: 100%;
}

.dashboard-grid-line {
    stroke: rgba(95, 120, 255, 0.12);
    stroke-width: 1;
}

.dashboard-axis-label {
    font-size: 10px;
    fill: #99a2c7;
    text-anchor: middle;
}

.dashboard-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-line-orange {
    stroke: #f39a32;
}

.dashboard-line-blue {
    stroke: #5f78ff;
}

.dashboard-donut-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 220px;
}

.dashboard-donut {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    position: relative;
    flex: 0 0 170px;
}

.dashboard-donut-core {
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.96);
    box-shadow: inset 0 0 0 1px rgba(212,225,243,0.8);
}

.dashboard-donut-legend {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-legend-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: #596385;
}

.dashboard-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 10px;
}

.dashboard-legend-name {
    flex: 1 1 auto;
}

.dashboard-legend-value {
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-list,
.dashboard-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dashboard-list-row,
.dashboard-activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(212,225,243,0.7);
}

.dashboard-list-row:last-child,
.dashboard-activity-row:last-child {
    border-bottom: 0;
}

.dashboard-list-main {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-primary);
    font-weight: 600;
}

.dashboard-list-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 10px;
}

.dashboard-list-bullet.orange {
    background: #f39a32;
}

.dashboard-list-side {
    color: #5f6a94;
    font-weight: 600;
}

.dashboard-activity-row {
    align-items: flex-start;
}

.dashboard-activity-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex: 0 0 38px;
}

.dashboard-activity-icon.entry {
    background: linear-gradient(180deg, #ffb14a 0%, #f18820 100%);
}

.dashboard-activity-icon.exit {
    background: linear-gradient(180deg, #7f94ff 0%, #4e68eb 100%);
}

.dashboard-activity-icon.transfer,
.dashboard-activity-icon.adjustment {
    background: linear-gradient(180deg, #8b9ce6 0%, #6579d4 100%);
}

.dashboard-activity-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-activity-title {
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-activity-meta {
    color: #6d779b;
    font-size: 0.92rem;
}

.dashboard-activity-side {
    color: #8d95b7;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-outline-primary {
    --bs-btn-color: var(--brand-primary);
    --bs-btn-border-color: rgba(var(--brand-primary-rgb), 0.32);
    --bs-btn-hover-bg: var(--brand-primary);
    --bs-btn-hover-border-color: var(--brand-primary);
    --bs-btn-active-bg: var(--brand-primary-dark);
    --bs-btn-active-border-color: var(--brand-primary-dark);
    --bs-btn-disabled-color: var(--brand-primary);
    --bs-btn-disabled-border-color: rgba(var(--brand-primary-rgb), 0.24);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--brand-primary-rgb), 0.45);
    box-shadow: 0 0 0 0.25rem rgba(var(--brand-primary-rgb), 0.16);
}

.theme-picker-menu {
    min-width: 264px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-radius: 1.1rem;
}

.theme-swatch-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.theme-swatch {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    border: 2px solid transparent;
    background: linear-gradient(145deg, color-mix(in srgb, var(--swatch-color) 84%, white), var(--swatch-color));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.38), 0 8px 18px rgba(43, 36, 78, 0.12);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.theme-swatch:hover {
    transform: translateY(-1px);
}

.theme-swatch.is-selected {
    border-color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 0 0 3px rgba(var(--brand-primary-rgb), 0.18);
}

.theme-swatch:focus-visible {
    outline: 0;
    border-color: var(--brand-primary-deep);
    box-shadow: 0 0 0 4px rgba(var(--brand-primary-rgb), 0.22);
}

.vtr-confirm-modal {
    border: 1px solid var(--brand-border-dynamic);
    border-radius: 1.7rem;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 26px 70px rgba(43, 36, 78, 0.22);
}

.vtr-confirm-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(var(--brand-primary-rgb), 0.16), rgba(var(--brand-primary-rgb), 0.08));
    color: var(--brand-primary);
    font-size: 1.8rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.vtr-confirm-submit {
    background: var(--brand-secondary);
    min-width: 144px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.vtr-confirm-submit:hover,
.vtr-confirm-submit:focus {
    background: color-mix(in srgb, var(--brand-secondary) 88%, black);
    color: #fff;
}

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
    flex-basis: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .sidebar-logo-panel {
    min-height: 82px;
    padding: 0.5rem;
    width: 82px;
    border-radius: 26px;
}

body.sidebar-collapsed .sidebar-logo {
    width: 68px;
    max-width: 68px;
}

body.sidebar-collapsed .sidebar-meta,
body.sidebar-collapsed .sidebar-user-meta,
body.sidebar-collapsed .sidebar-nav-label {
    display: none;
}

body.sidebar-collapsed .sidebar-footer {
    padding-inline: 0;
}

body.sidebar-collapsed .sidebar-cta-button {
    font-size: 0;
    min-height: 48px;
    border-radius: 14px;
}

body.sidebar-collapsed .sidebar-cta-button::before {
    content: "+";
    font-size: 1.4rem;
    line-height: 1;
}

body.sidebar-collapsed .sidebar .nav-link {
    justify-content: center;
    padding-inline: 0.65rem;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(86vw, var(--sidebar-width));
        flex-basis: min(86vw, var(--sidebar-width));
        transform: translateX(-100%);
        box-shadow: 0 20px 40px rgba(18, 22, 38, 0.28);
    }

    .main-shell {
        width: 100%;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

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

    body.sidebar-collapsed .sidebar {
        width: min(86vw, var(--sidebar-width));
        flex-basis: min(86vw, var(--sidebar-width));
    }

    body.sidebar-collapsed .sidebar-meta,
    body.sidebar-collapsed .sidebar-user-meta,
    body.sidebar-collapsed .sidebar-nav-label {
        display: block;
    }

    body.sidebar-collapsed .sidebar-logo-panel {
        min-height: 124px;
        padding: 0.8rem;
        width: min(100%, 248px);
        border-radius: 32px;
    }

    body.sidebar-collapsed .sidebar-logo {
        width: min(100%, 228px);
        max-width: 228px;
    }

    body.sidebar-collapsed .sidebar .nav-link {
        justify-content: flex-start;
        padding-inline: 1rem;
    }

    body.sidebar-collapsed .sidebar-footer {
        padding-inline: 0.5rem;
    }

    body.sidebar-collapsed .sidebar-cta-button {
        font-size: 1rem;
    }

    body.sidebar-collapsed .sidebar-cta-button::before {
        content: none;
    }
}

@media (max-width: 575.98px) {
    .auth-shell {
        padding: 1.25rem;
    }

    .auth-theme-picker {
        top: 1rem;
        right: 1rem;
    }

    .theme-picker-menu {
        min-width: 236px;
    }
}

@media (max-width: 991.98px) {
    .auth-screen {
        min-height: 620px;
        padding: 1.75rem 1.5rem 1.5rem;
        border-width: 12px;
    }

    .auth-screen-ornament,
    .auth-screen-illustration {
        opacity: 0.6;
    }

    .auth-login-logo {
        width: 300px;
    }

    .auth-login-panel {
        width: min(100%, 580px);
    }
}

@media (max-width: 767.98px) {
    .auth-screen {
        min-height: auto;
    }

    .auth-screen-ornament,
    .auth-screen-illustration,
    .auth-screen-wave {
        display: none;
    }

    .auth-theme-picker {
        position: static;
        justify-content: center;
        margin-bottom: 1.25rem;
    }

    .auth-login-page {
        padding-top: 0;
    }

    .auth-login-card {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .auth-login-divider {
        margin-inline: -1.25rem;
    }

    .auth-form {
        width: 100%;
    }

    .auth-form-meta,
    .auth-register-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dashboard-kpi-grid,
    .dashboard-chart-grid,
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-donut-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-donut {
        width: 150px;
        height: 150px;
        flex-basis: 150px;
    }
}
