/* Custom Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Tokens (Light Mode Default) */
    --font-primary: 'Outfit', 'Sarabun', sans-serif;
    
    --bg-app: #f4f6fa;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-sidebar: #0f172a;
    --border-color: rgba(226, 232, 240, 0.8);
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #f8fafc;
    
    /* Brand Accent Gradients */
    --accent-primary: #3b82f6;
    --accent-secondary: #10b981;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --accent-gradient-green: linear-gradient(135deg, #10b981 0%, #047857 100%);
    --accent-gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    --accent-gradient-orange: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --accent-gradient-red: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    
    /* Semantic Colors */
    --fixed-color: #3b82f6;
    --fixed-bg: rgba(59, 130, 246, 0.1);
    --variable-color: #10b981;
    --variable-bg: rgba(16, 185, 129, 0.1);
    --other-color: #8b5cf6;
    --other-bg: rgba(139, 92, 246, 0.1);
    --neg-color: #ef4444;
    --neg-bg: rgba(239, 68, 68, 0.1);
    
    /* Shadows */
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --sidebar-shadow: 4px 0 24px rgba(15, 23, 42, 0.08);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
    --bg-app: #090d16;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-sidebar: #070a10;
    --border-color: rgba(31, 41, 55, 0.5);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    
    --card-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --sidebar-shadow: 4px 0 30px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-app);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    transition: var(--transition);
}

/* App Layout */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    box-shadow: var(--sidebar-shadow);
    z-index: 100;
    flex-shrink: 0;
    transition: var(--transition);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.sidebar-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.sidebar-logo .logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(120deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #475569;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nav-item.active {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 8px 16px -4px rgba(59, 130, 246, 0.3);
}

/* User Profile Info inside Sidebar bottom */
.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.theme-toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.theme-toggle-text {
    font-size: 0.85rem;
    color: #94a3b8;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header */
.main-header {
  min-height: 110px;
  padding: 28px 32px;
  overflow: visible;
}

.header-title h1 {
  line-height: 1.2;
  margin: 0 0 8px 0;
  padding-top: 4px;
}

.header-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.header-title p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.date-badge {
    background-color: var(--bg-card);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: var(--card-shadow);
}

/* KPI Summary Cards Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.08);
}

.kpi-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
}

.kpi-card.kpi-blue::after { background: var(--accent-gradient); }
.kpi-card.kpi-green::after { background: var(--accent-gradient-green); }
.kpi-card.kpi-purple::after { background: var(--accent-gradient-purple); }
.kpi-card.kpi-orange::after { background: var(--accent-gradient-orange); }
.kpi-card.kpi-red::after { background: var(--accent-gradient-red); }

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.kpi-blue .kpi-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.kpi-green .kpi-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.kpi-purple .kpi-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.kpi-orange .kpi-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.kpi-red .kpi-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.kpi-details {
    display: flex;
    flex-direction: column;
}

.kpi-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

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

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    backdrop-filter: blur(10px);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.chart-container {
  height: 480px;
}

/* Alert Boxes for MoM */
.alert-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.alert-box .alert-icon {
    color: #ef4444;
    font-size: 1.25rem;
    margin-top: 20px;
}
.alert-box .alert-content h4 {
    color: #ef4444;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}
.alert-box .alert-content p {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Table Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: -1px;
    backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
}

.search-box {
    position: relative;
    width: 320px;
}

.search-box i {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-4px);
box-shadow: 0 15px 35px rgba(0,0,0,.25);
transition: .25s;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.search-box input {
    width: 100%;
    padding: 0.65rem 1.2rem 0.65rem 2.8rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--border-color);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

/* Data Table Container */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

th {
    background-color: rgba(226, 232, 240, 0.3);
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

[data-theme="dark"] th {
    background-color: rgba(31, 41, 55, 0.3);
}

th:hover {
    color: var(--text-primary);
    background-color: rgba(226, 232, 240, 0.6);
}

th.sort-asc::after {
    content: " ▴";
}

th.sort-desc::after {
    content: " ▾";
}

td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

tr:hover td {
    background-color: rgba(59, 130, 246, 0.02);
}

/* Custom badges */
.badge {
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-fixed {
    background-color: var(--fixed-bg);
    color: var(--fixed-color);
}

.badge-variable {
    background-color: var(--variable-bg);
    color: var(--variable-color);
}

.badge-other {
    background-color: var(--other-bg);
    color: var(--other-color);
}

.badge-neg {
    background-color: var(--neg-bg);
    color: var(--neg-color);
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-bold {
    font-weight: 700;
}

/* Row states */
.row-lodni td {
    color: var(--text-secondary);
    background-color: rgba(239, 68, 68, 0.01);
}

.row-total td {
    font-weight: 700;
    background-color: rgba(226, 232, 240, 0.2) !important;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

[data-theme="dark"] .row-total td {
    background-color: rgba(31, 41, 55, 0.4) !important;
}

/* Empty State */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
}

.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Advance Section borrower grid */
.borrower-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.borrower-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    backdrop-filter: blur(10px);
}

.borrower-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.borrower-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.borrower-info h4 {
    font-size: 1rem;
    font-weight: 700;
}

.borrower-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.borrower-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    background: rgba(226, 232, 240, 0.3);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    text-align: center;
}

[data-theme="dark"] .borrower-stats {
    background: rgba(31, 41, 55, 0.4);
}

.borrower-stat-val {
    font-size: 1.1rem;
    font-weight: 700;
}

.borrower-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Tab Pane control */
.tab-panes {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tab-pane {
    display: none;
    flex-direction: column;
    gap: 2rem;
}

.tab-pane.active {
    display: flex;
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kpi-card {
  animation: fadeInUp 0.5s ease both;
}

.kpi-card:nth-child(1) { animation-delay: 0.05s; }
.kpi-card:nth-child(2) { animation-delay: 0.10s; }
.kpi-card:nth-child(3) { animation-delay: 0.15s; }
.kpi-card:nth-child(4) { animation-delay: 0.20s; }
.kpi-card:nth-child(5) { animation-delay: 0.25s; }
.kpi-card:nth-child(6) { animation-delay: 0.30s; }


.sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}


.kpi-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kpi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.kpi-grid {
  margin-top: 10px;
}

@media (max-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }
}

/* Expand ApexCharts tooltip width */
.apexcharts-tooltip {
  min-width: 520px !important;
  max-width: 720px !important;
  white-space: normal !important;
  padding: 12px 14px !important;
}

.apexcharts-tooltip-series-group {
  white-space: normal !important;
  align-items: flex-start !important;
}

.apexcharts-tooltip-text,
.apexcharts-tooltip-y-group,
.apexcharts-tooltip-title {
  white-space: normal !important;
  word-break: break-word !important;
  overflow: visible !important;
}

.apexcharts-tooltip-text-y-label,
.apexcharts-tooltip-text-y-value {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

.sidebar {
  width: 280px !important;
  min-width: 280px !important;
  position: fixed !important;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

.main-content {
  margin-left: 280px !important;
  width: calc(100vw - 280px) !important;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 18px;
  white-space: normal;
}

.logo-text {
  font-size: 1.25rem !important;
  font-weight: 800;
  line-height: 1.15;
}

.sidebar {
  width: 300px !important;
  min-width: 300px !important;
}

.main-content {
  margin-left: 300px !important;
  width: calc(100vw - 300px) !important;
}

.sidebar-logo {
  padding: 28px 22px 18px 22px !important;
  min-height: 110px;
}

.logo-text {
  font-size: 1.15rem !important;
  line-height: 1.15 !important;
}

.sidebar nav,
.sidebar-menu,
.nav-menu {
  margin-top: 12px !important;
}

.nav-section,
.menu-section {
  margin-top: 18px !important;
}

/* Fix sidebar menu visibility */
.sidebar {
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  overflow-x: hidden !important;
}

.main-content {
  margin-left: 260px !important;
  width: calc(100vw - 260px) !important;
}

.sidebar-logo {
  padding: 26px 20px 22px 20px !important;
  min-height: auto !important;
}

.logo-text {
  font-size: 0.95rem !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}

.sidebar-menu,
.nav-menu,
.sidebar nav {
  display: block !important;
  width: 100% !important;
  margin-top: 22px !important;
  padding: 0 16px !important;
}

.nav-item,
.menu-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  white-space: normal !important;
}

/* Restore sidebar layout */
.sidebar {
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  height: 100vh !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

.main-content {
  margin-left: 260px !important;
  width: calc(100vw - 260px) !important;
}

.sidebar-logo {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 32px 20px 28px 20px !important;
  box-sizing: border-box !important;
}

.logo-text {
  display: block !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}

.sidebar nav,
.sidebar-menu,
.nav-menu {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 0 16px 24px 16px !important;
  margin-top: 8px !important;
  box-sizing: border-box !important;
}

.nav-section,
.menu-section {
  width: 100% !important;
  display: block !important;
  margin: 18px 0 8px 0 !important;
  padding: 0 !important;
}

.nav-section-title,
.menu-section-title,
.section-title {
  display: block !important;
  width: 100% !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  margin: 18px 0 8px 0 !important;
  color: rgba(148, 163, 184, 0.85) !important;
}

.nav-item,
.menu-item,
.sidebar a,
.sidebar button {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  white-space: normal !important;
  box-sizing: border-box !important;
}
/* Final fix: restore actual sidebar menu classes */
.sidebar {
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  height: 100vh !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.main-content {
  margin-left: 260px !important;
  width: calc(100vw - 260px) !important;
}

.sidebar-header,
.sidebar-logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 28px 18px 24px 18px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.logo-text {
  display: block !important;
  font-size: 0.95rem !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}

.menu-label {
  display: block !important;
  width: 100% !important;
  margin: 18px 0 8px 0 !important;
  padding: 0 20px !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(148, 163, 184, 0.85) !important;
  box-sizing: border-box !important;
}

.nav-links {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 6px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  list-style: none !important;
  box-sizing: border-box !important;
}

.nav-links li {
  width: 100% !important;
  display: block !important;
}

.nav-item {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  text-align: left !important;
}

.nav-item span {
  display: inline-block !important;
  white-space: normal !important;
  line-height: 1.25 !important;
}

.sidebar-footer {
  margin-top: 20px !important;
  padding: 18px 14px 24px 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.sidebar {
  justify-content: flex-start !important;
}

.nav-links {
  flex: none !important;
}

.sidebar-footer {
  flex: none !important;
}


