body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}

/* Wrapper container */
#wrapper {
    display: flex;
    transition: all 0.3s ease;
}

/* Sidebar */
#sidebar-wrapper {
    width: 250px;
    height: 100vh;
    background: #f8f9fa;
    transition: all 0.3s ease;
    overflow-y: auto;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}

/* Collapse sidebar */
#wrapper.toggled #sidebar-wrapper {
    margin-left: -250px;
}

/* Page content */
#page-content-wrapper {
    flex-grow: 1;
    margin-left: 250px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

/* Expand page content fully when sidebar collapsed */
#wrapper.toggled #page-content-wrapper {
    margin-left: 0;
}

/* Sidebar links */
#sidebar-wrapper .nav-link {
    margin-bottom: 5px;
    transition: all 0.2s;
}

#sidebar-wrapper .nav-link i {
    width: 20px;
}

/* Sidebar header text size */
.sidebar-header h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

/* Navbar fix */
.navbar {
    z-index: 1000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #sidebar-wrapper {
        margin-left: -250px;
        position: fixed;
    }

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

    #page-content-wrapper {
        margin-left: 0;
    }

    #wrapper.toggled #page-content-wrapper {
        margin-left: 250px;
    }
}

.selected-menu-tile {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    border-radius: 5px;
    /* font-weight: bold; */
}

#salesByProductChart,
#monthlySalesChart,
#incomeStatementChart {
    width: 100%;
    height: 165px;
}

#netCashFlowChart,
#monthlySalesGrowthChart,
#employeeCostChart,
#incomeStatementChart,
#headCountPieChart {
    width: 100%;
    height: 195px;
}

#daysReceivableGauge,
#daysInventoryGauge {
    width: 100%;
    height: 60px;
}

#daysReceivablebarChart {
    width: 100%;
    height: 90px;
}

#daysInventoryChart {
    width: 100%;
    height: 100px;
}

.chart-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 15px;
    height: 15px;
}

.dropdown-menu {
    border: none !important;
}

.notification-dropdown {
    width: 300px !important;
}

.notification-dropdown li {
    padding-left: 20px !important;
}

.notification-dropdown li i {
    font-size: 18px;
    margin-right: 10px;
}

.notification-dropdown li div {
    display: flex;
    flex-direction: column;
}

.notification-dropdown li.text-center a {
    font-weight: 500;
    padding: 8px 0;
    display: block;
}

/* Profile Dropdown layout & hover effects */
.dropdown .btn-light img {
    border: 2px solid #b0b0b0;
    transition: transform 0.3s ease;
}

.dropdown .btn-light:hover img {
    transform: scale(1.1);
}

.dropdown-menu {
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.dropdown-menu .dropdown-item {
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-divider {
    border-top: 1px solid #c0c0c0;
}

/* Smooth hover transition */
.dropdown-menu .dropdown-item,
.dropdown-menu .dropdown-item i {
    transition: all 0.3s ease;
}

.offcanvas {
    --bs-offcanvas-width: 600px;
}

.dashboard-card {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-card-header {
    background-color: #e9ecef;
    font-weight: bold;
    font-size: 14px;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Full-page overlay */
#loader-overlay {
    display: none;
    /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    /* blur background */
    background: rgba(255, 255, 255, 0.2);
    /* semi-transparent layer */
    z-index: 9998;
    /* below spinner */
}

/* Center spinner */
#loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    /* above overlay */
}

.input-group-text {
    padding: 10px !important;
    width: 40px !important;
}

.input-group.border {
    border: 1px solid #ccc;
    /* Light gray border */
}

/* Right slide modal */
.modal.right .modal-dialog {
    position: fixed;
    right: 0;
    margin: 0;
    height: 100%;
    max-width: 400px;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.modal.right.show .modal-dialog {
    transform: translateX(0);
}

/* Top slide modal */
.modal.top .modal-dialog {
    position: fixed;
    top: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
}

.modal.top.show .modal-dialog {
    transform: translateY(0);
}

.bg-teal {
    background-color: #20c997;
    color: white;
}

/* Profile button */
    .user-dropdown-toggle {
        background-color: #ffffff;
        border: none;
        padding: 6px 12px;
        border-radius: 50px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        transition: all 0.2s ease-in-out;
    }

    .user-dropdown-toggle:hover {
        background-color: #f8f9fa;
        transform: translateY(-1px);
    }

    .user-avatar {
        background-color: #0d6efd;
        color: #fff;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        font-size: 14px;
        font-weight: 600;
        margin-right: 8px;
    }

    .user-name {
        font-weight: 600;
        color: #333;
        font-size: 14px;
    }

    /* Dropdown menu */
    .user-dropdown-menu {
        border: none;
        border-radius: 12px;
        padding: 6px 0;
        min-width: 180px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        animation: fadeIn 0.15s ease-in-out;
    }

    .user-dropdown-menu .dropdown-item {
        display: flex;
        align-items: center;
        font-size: 14px;
        font-weight: 500;
        color: #555;
        padding: 10px 16px;
        transition: background-color 0.2s, color 0.2s;
    }

    .user-dropdown-menu .dropdown-item i {
        margin-right: 10px;
        font-size: 15px;
        width: 18px;
        text-align: center;
    }

    .user-dropdown-menu .dropdown-item:hover {
        background-color: #e8f1f8;
        color: #0d6efd;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .user-action-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        background-color: #ffffff;
        border: 1px solid #e5e7eb;
        color: #333;
        font-weight: 600;
        border-radius: 50px;
        padding: 6px 14px;
        font-size: 14px;
        transition: all 0.2s ease-in-out;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

    .user-action-btn i {
        font-size: 15px;
    }

    .user-action-btn:hover {
        background-color: #f3f4f6;
        color: #0d6efd;
        transform: translateY(-1px);
    }

    .user-btn-group {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .subscription-panel {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        padding: 14px 24px;
        gap: 20px;
        font-family: "Segoe UI", sans-serif;
    }

    .subscription-item {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .subscription-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #f3f4f6;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: #2f3640;
    }

    .subscription-text {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

    .subscription-text span.label {
        font-size: 12px;
        color: #6b7280;
        font-weight: 500;
    }

    .subscription-text span.value {
        font-size: 15px;
        font-weight: 600;
        color: #111827;
    }

    @media (max-width: 768px) {
        .subscription-panel {
            flex-direction: column;
            align-items: flex-start;
        }
    }

    
    /* === Dashboard Section Styling === */
    .dashboard-card {
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        transition: all 0.2s ease-in-out;
    }

    .dashboard-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }

    .dashboard-card h3 {
        font-weight: 700;
        font-size: 16px;
        /* color: #111827; */
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .dashboard-card h3 i {
        color: #0d6efd;
        font-size: 18px;
    }

    /* === Table Styling === */
    .table-custom th {
        font-size: 13px;
        color: #6b7280;
        font-weight: 600;
        text-transform: uppercase;
        border-bottom: 2px solid #e5e7eb;
    }

    .table-custom td {
        font-size: 14px;
        font-weight: 500;
        color: #374151;
        vertical-align: middle;
    }

    .table-custom tr:hover {
        background-color: #f9fafb;
        cursor: pointer;
    }

    /* === Chart Container === */
    #salesByCategoryChart {
        max-height: 270px;
    }


    .mini-dashboard-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.6rem;
}

.mini-dashboard-card p {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.mini-dashboard-card h5 {
    font-size: 1.15rem;
}

.mini-dashboard-card small {
    font-size: 0.85rem;
}

.list-group-item {
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.badge {
    font-size: 0.8rem;
}

.admin-section h6 {
    font-size: 0.95rem;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered{
    padding-top: 0px !important;
}

/* --- General font for entire dashboard --- */
body, .card, table, .badge {
    font-family:Arial, Helvetica, sans-serif;
    color: #343a40;
}

/* --- Card styling --- */
.card {
    font-size: 0.9rem;
    border-radius: 0.5rem;
    font-weight: 400;
    border: 1px solid #e2e4e6;
}

/* Card header title */
.card h5, .card .card-header {
    font-weight: 600;
    font-size: 1.1rem;
    color: #01132e;
    padding-bottom: 0.5rem;
}

/* --- Table styling --- */
table.dataTable, table.table {
    font-family:sans-serif;
    font-size: 0.8rem;
    color: #495057;
    /* border: 1px solid #dee2e6; table border */
    border: none;
    border-collapse: separate;
    border-spacing: 0;
}

table thead th {
    font-weight: 600;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
    /* border-bottom: 2px solid #dee2e6; */
    /* border-bottom: none; */
    border: 1px solid #d6d9db;
    text-align: center;
}

table tbody td {
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #dadbdc;
}

table tbody tr:hover {
    background-color: #f1f3f5;
}

/* --- Badge styling --- */
.badge {
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 0.25rem;
    padding: 0.25em 0.5em;
}

/* --- Button styling --- */
.btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.35rem;
    /* border: 1px solid transparent; */
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn i {
    font-size: 0.9rem;
}

/* --- DataTables specific styling --- */
.dataTables_wrapper .dataTables_filter input {
    font-size: 0.8rem;
    font-family: Arial, Helvetica, sans-serif;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    font-size: 0.70rem;
    font-family:Arial, Helvetica, sans-serif;
    /* border: 1px solid #dee2e6; */
    border: none;
    border-radius: 0.25rem;
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #01132e !important;
    color: #fff !important;
    /* border: 1px solid #01132e; */
    border: none
}

/* --- Responsive table --- */
.table-responsive {
    overflow-x: auto;
}

/* --- Utility spacing --- */
.mb-10 { margin-bottom: 10px !important; }
.mt-10 { margin-top: 10px !important; }



#sidebar-wrapper {
    display: flex;          /* turns the sidebar into a vertical flex container */
    flex-direction: column; /* stacks children vertically */
    height: 100vh;          /* sidebar fills the full screen height */
}

#sidebar-wrapper .flex-grow-1 {
    flex-grow: 1;           /* makes this section take all available space */
    overflow-y: auto;       /* scrolls menu content if it's too long */
}

#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(255, 255, 255, 0.9); */
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
}

.logo-loader {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rotating-ring {
    position: absolute;
    top: 10px;
    width: 100px;
    height: 100px;
    border: 5px solid transparent;
    border-top: 5px solid #2f3640;
    border-right: 5px solid #2f3640;
    border-radius: 50%;
    animation: rotate 1.5s linear infinite, glow 1.5s ease-in-out infinite alternate;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    z-index: 2;
    animation: pulse 1.8s infinite ease-in-out;
}

.loading-text {
    color: #2f3640;
    font-size: 16px;
    font-weight: 600;
    margin-top: 50px;
    font-family: 'Poppins', sans-serif;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px #2f3640; }
    100% { box-shadow: 0 0 25px #2f3640; }
}


/* === POS Custom SweetAlert2 Theme === */
.swal2-popup {
    background: #ffffff;
    border-radius: 20px !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    border: 2px solid #e8f0ff;
    padding: 0px 0px 30px 0px !important;
    font-family: 'Poppins', sans-serif;
    animation: popup-appear 0.3s ease;
}
.swal2-actions{
    margin-top: 10px !important;
}

.swal2-title {
    color: #1e3a8a; /* deep blue tone */
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
    text-transform: capitalize;
    padding-top: 0px !important;
}

.swal2-html-container {
    color: #444;
    font-size: 15px;
    margin-top: 5px;
    padding-top: 5px !important;
}

/* === Buttons === */
.swal2-confirm {
    background: linear-gradient(135deg, #2f3640, #2f3640) !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 8px 25px !important;
    transition: all 0.25s ease;
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
}

.swal2-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 123, 255, 0.45);
}

.swal2-cancel {
    background: #f8f9fb !important;
    color: #333 !important;
    border-radius: 10px !important;
    border: 1px solid #d0d7e2 !important;
    font-weight: 600 !important;
    padding: 8px 25px !important;
    transition: all 0.25s ease;
}

.swal2-cancel:hover {
    background: #e9edf5 !important;
}

/* === Icons (Success, Error, Warning, etc.) === */
.swal2-icon {
    border: none !important;
    box-shadow: 0 3px 12px rgba(0, 123, 255, 0.15);
}

.swal2-icon.swal2-success {
    color: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
}

.swal2-icon.swal2-warning {
    color: #facc15 !important;
    border-color: #facc15 !important;
}

.swal2-icon.swal2-error {
    color: #ef4444 !important;
    border-color: #ef4444 !important;
}

.swal2-icon.swal2-info {
    color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

/* === Entrance animation === */
@keyframes popup-appear {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* === Dimmed backdrop === */
.swal2-container.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.3) !important;
}

.list-unstyled li {
        padding: 4px;
    }
    .btn-success {
    background-color: #2f3640 !important; /* base blue color */
    border-color: #2f3640 !important;
    color: #fff !important;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 6px;
    transition: 0.3s;
    }

    .btn-success:hover {
        background-color: #40739e !important;
        transform: translateY(-2px);
    }
    .active>.page-link{
        background-color: #2f3640 !important;
        border-color: #2f3640 !important;
    }
    .page-link{
        color: #2f3640;
    }
    .select2-selection {
        box-shadow: none !important;
    }