body {
    font-family: 'Inter', sans-serif;
    color: #1d1d1f;
    background-color: #f5f5f7 !important;
    overflow-x: hidden;
}

.bg-white { background-color: #ffffff !important; }
.bg-light { background-color: #f9f9fb !important; }

/* Primary Accents */
.text-primary { color: #f38020 !important; }
.btn-primary {
    background-color: #f38020;
    border-color: #f38020;
    color: #fff;
    transition: all 0.2s ease;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #e57312 !important;
    border-color: #e57312 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(243, 128, 32, 0.2);
}

/* Sidebar Styles (Responsive Desktop + Offcanvas Drawer) */
.sidebar {
    --bs-offcanvas-width: 275px;
}

@media (min-width: 992px) {
    .sidebar {
        display: flex !important;
        width: 260px;
        min-height: 100vh;
        position: sticky;
        top: 0;
        height: 100vh;
    }
}

@media (max-width: 991.98px) {
    .sidebar.offcanvas-lg {
        display: flex;
        max-width: 85vw;
    }
}

.sidebar .nav-link {
    color: #52525b;
    font-weight: 500;
    padding: 0.6rem 1rem;
    margin: 0.25rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}
.sidebar .nav-link:hover {
    background-color: #f4f4f5;
    color: #18181b;
}
.sidebar .nav-link.active {
    background-color: #fff1e6;
    color: #f38020;
    font-weight: 600;
}

/* Form Overrides */
.form-control, .form-select {
    box-shadow: none !important;
    transition: all 0.2s ease;
}
.form-control:focus, .form-select:focus {
    background-color: #fff !important;
    border: 1px solid #f38020 !important;
    box-shadow: 0 0 0 0.2rem rgba(243, 128, 32, 0.15) !important;
}

/* Card overrides */
.card {
    border-radius: 8px;
}
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}

.cf-card {
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    border-radius: 6px;
    background-color: #fff;
}
.cf-card:hover {
    border-color: #d1d5db !important;
}

/* Sidebar Specific */
.sidebar-heading {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
    background-color: #e5e5e5;
    border-radius: 4px;
}
.sidebar-nav .nav-link {
    font-size: 13.5px;
    padding: 0.5rem 1rem !important;
    margin: 0.12rem 0.5rem !important;
}
.sidebar-nav .nav-link .bi {
    font-size: 15px;
}
.sidebar-nav .nav-link .chevron {
    font-size: 10px;
    opacity: 0.4;
}

.search-box .form-control {
    font-size: 13px;
}
.search-box .form-control:focus {
    box-shadow: none !important;
    border-color: #dee2e6 !important;
}

/* Typography refinements */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

/* Mobile & Tablet Responsive Enhancements */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
    main .container-fluid {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    .custom-table th,
    .custom-table td {
        white-space: nowrap;
    }
}

@media (max-width: 767.98px) {
    main .container-fluid.py-4 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    /* Prevent iOS/Android mobile browser auto-zoom on input focus */
    input.form-control,
    select.form-select,
    textarea.form-control,
    .ts-control input {
        font-size: 16px !important;
    }
    .sidebar-nav .nav-link {
        padding: 0.65rem 1rem !important;
        font-size: 14.5px;
    }
}
