/* BharatLedger Prime Main Stylesheet */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333335;
}

#wrapper {
    overflow-x: hidden;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: 260px;
    transition: margin 0.25s ease-out;
}

#sidebar-wrapper .list-group-item {
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

#sidebar-wrapper .list-group-item.active {
    background-color: #0d6efd !important;
    color: #fff !important;
    font-weight: 600;
}

.toggled #sidebar-wrapper {
    margin-left: -260px;
}

/* Card Enhancements */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

/* Data Tables */
.table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
    font-size: 0.88rem;
}

/* Currency and Amount Alignment */
.amount-col {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* Badges */
.badge {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Shortcut Pill */
.shortcut-badge {
    background: #e9ecef;
    color: #495057;
    font-family: monospace;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}


/* Responsive Enhancements for Dashboards */
@media (max-width: 991.98px) {
    #sidebar-wrapper {
        margin-left: -260px;
        position: fixed;
        z-index: 1045;
        top: 0;
        bottom: 0;
    }
    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
    #page-content-wrapper {
        width: 100% !important;
    }
}

@media (max-width: 767.98px) {
    .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    .clickable-metric-card {
        padding: 0.65rem !important;
    }
    .metric-value-title {
        font-size: 1.05rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .btn-responsive-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

.period-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}
.period-scroll-container::-webkit-scrollbar {
    display: none;
}
.period-scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

.text-tabular {
    font-variant-numeric: tabular-nums;
}
