body {
    background-color: #f4f6f8;
}

.bg-primary {
    background-color: #0b2e4e !important;
}

.card-fiscal {
    border-radius: 1rem;
    border: 1px solid #dee2e6;
}

.card-fiscal-header {
    background: linear-gradient(135deg, #0b2e4e, #1c578a);
    color: #ffffff;
}

.badge-regime-simples {
    background-color: #e0f7e9;
    color: #198754;
}

.badge-regime-lp {
    background-color: #e1f0ff;
    color: #0d6efd;
}

.badge-regime-lr {
    background-color: #f3e8ff;
    color: #6f42c1;
}

/* Layout Fixed Structure */
#layout-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

#sidebar {
    width: 220px;
    height: 100%;
    flex-shrink: 0;
    background-color: #03093a;
    transition: width 0.3s ease;
    overflow-y: auto;
}

#sidebar.collapsed {
    width: 80px;
}

#sidebar.collapsed .nav-text,
#sidebar.collapsed .brand-text,
#sidebar.collapsed .sidebar-brand img,
#sidebar.collapsed .bi-chevron-right {
    display: none !important;
}

#sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 0.5rem 0;
}

#sidebar.collapsed .nav-link i.me-2 {
    margin-right: 0 !important;
    font-size: 1.2rem;
}

.sidebar .nav-link {
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.sidebar .nav-link.active {
    background-color: #dcb458 !important;
    color: #0b2e4e !important;
    font-weight: 600;
}

.sidebar .nav-link.disabled {
    opacity: 0.6;
}

/* Custom Scrollbar for Sidebar and Main Content */
#sidebar::-webkit-scrollbar,
#main-content::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#sidebar::-webkit-scrollbar-track,
#main-content::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

#main-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}
