/* Imports */
/* Icons */
@import url("https://site-assets.fontawesome.com/releases/v6.0.0/css/all.css");
/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --white: #fff;
    --black: #000;
    --theme-color: #363B64;
    --primary: #FE9874;
    --secondary: #70504B;
    --gray: #A098AE;
}

::selection {
    background-color: var(--secondary);
    color: var(--white);
}

/* General Styling */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none !important;
    list-style-type: none;
    font-family: "Poppins", sans-serif;
    overflow-wrap: break-word;
}

html {
    scroll-behavior: smooth;
}


body {
    overflow-x: clip;
}

a,
button {
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    display: inline-block;
}

ul,
ol,
dl,
address,
label,
figure {
    margin-bottom: 0;
    padding: 0;
}

p {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.75;
    color: var(--gray);
}

/* Universal Classes Start */

.bg-primary {
    background: var(--primary) !important;
}

.bg-secondary {
    background: var(--secondary) !important;
}

.bg-gray {
    background-color: var(--gray) !important;
}

.text-success {
    color: #62C4A6 !important;
}

.text-danger {
    color: #FF5154 !important;
}

.text-primary {
    color: var(--primary) !important;
}

/* Universal Classes End */

/* ThemeBtn Start */

.themeBtn {
    width: fit-content;
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid transparent;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 2.25rem;
}

.themeBtn:hover {
    background: var(--secondary);
    color: var(--white);
}

.themeBtn--white {
    background: var(--white);
    color: var(--gray);
}

.themeBtn--white:hover {
    color: var(--white);
}

.themeBtn--gray {
    background: var(--gray);
    color: var(--white);
}

.themeBtn--green {
    background-color: #62C4A6;
    color: var(--white);
    border: 2px solid transparent;
}

.themeBtn--green:hover {
    background-color: #0DAB64;
}

.themeBtn--red {
    background-color: #FF5154;
    color: var(--white);
    border: 2px solid transparent;
}

.themeBtn--red:hover {
    background-color: #E94235;
}

/* ThemeBtn End */

/* Headings Start */

.secHeading {
    font-size: 2.25rem;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--theme-color);
    margin: 0;
}

.heading {
    font-size: 1.375rem;
    font-weight: 500;
    text-transform: capitalize;
}

.subHeading {
    font-size: 1.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Headings End */

/* Dashboard Wrapper Start */

.dashboard-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
}

.dashboard-content {
    width: calc(100% - 300px);
    padding: 2rem 2rem;
    background: #F8F8F8;
}

.dashboard-card {
    background: #FE987430;
    border-radius: 1rem;
    padding: 1.5rem;
}

.dashboard-content__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dashboard-content__head .heading {
    margin: 0;
}

.back-arrow {
    font-size: 1.5rem;
    color: var(--black);
}

.back-arrow:hover {
    color: var(--primary);
}

/* Dashboard Wrapper End */

/* Sidebar Start */

.dashboard-sidebar {
    min-width: 300px;
    min-height: 100%;
    background: #FCFCFC80;
    border-right: 1px solid var(--gray);
    padding: 3rem 1.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    will-change: transform;
}

.dashboard-sidebar__logo {
    width: 200px;
    display: block;
    margin: 0 auto 3rem;
}

.dashboard-sidebar__logo img {
    width: 100%;
}

.dashboard-sidebar__list>li+li {
    margin-top: 0.5rem;
}

.dashboard-sidebar__list li a:not(.dashboard-sidebar__submenu-link) {
    font-size: 1rem;
    font-weight: 500;
    background: transparent;
    color: var(--gray);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    position: relative;
}

.dashboard-sidebar__list li a:is(:hover, .active) {
    background: #FE987480;
}

.dashboard-sidebar__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.dashboard-sidebar__link {
    flex: 1;
}

.dashboard-sidebar__toggle {
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-sidebar__toggle:hover {
    color: var(--primary);
}

.dashboard-sidebar__toggle[aria-expanded="true"] {
    color: var(--primary);
}

.dashboard-sidebar__toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.dashboard-sidebar__toggle i {
    transition: transform 0.3s ease;
}

.dashboard-sidebar__submenu {
    margin-top: 0.5rem;
    margin-left: 0;
    padding-left: 0;
    list-style: none;
}

.dashboard-sidebar__submenu-link {
    font-size: 1rem;
    font-weight: 400;
    background: none !important;
    color: var(--gray);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dashboard-sidebar__submenu-link img {
    width: 16px;
    filter: brightness(0) saturate(100%) invert(87%) sepia(9%) saturate(527%) hue-rotate(219deg) brightness(70%) contrast(93%);
    transition: all 300ms ease-in-out;
}

.dashboard-sidebar__submenu-link:is(:hover, .active) {
    color: var(--primary);
    font-weight: 500;
}

.dashboard-sidebar__submenu-link:is(:hover, .active) img {
    filter: brightness(0) saturate(100%) invert(70%) sepia(17%) saturate(1754%) hue-rotate(321deg) brightness(103%) contrast(99%);
}

/* Sidebar End */

/* Header Start */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.header-form {
    width: 25%;
    background: #FCFCFC;
    border: 1px solid #00000010;
    border-radius: 0.5rem;
    box-shadow: 0 0 20px 1px #00000020;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    padding: 0.75rem;
}

.header-form i {
    font-size: 1.125rem;
    color: var(--theme-color);
}

.header-form input {
    width: 100%;
    border: none;
    outline: none;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-links__icon {
    width: 60px;
    aspect-ratio: 1;
    font-size: 1.25rem;
    background: var(--white);
    color: var(--theme-color);
    border-radius: 100%;
    box-shadow: 0 0 20px 1px #00000020;
    display: grid;
    place-items: center;
    position: relative;
}

.header-links__icon .notification-badge {
    min-width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 10px;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--white);
    padding: 0 0.4rem;
    border: 2px solid var(--white);
}

.header-links__icon.dropdown-toggle {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-links__icon.dropdown-toggle:hover {
    transform: scale(1.05);
}

.header-links__icon.dropdown-toggle::after {
    display: none;
}

.notification-dropdown {
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #E8E8E8;
    background: var(--white);
    overflow: hidden;
    padding: 0;
    margin-top: 0.75rem;
}

.notification-dropdown__header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8F9FA;
    border-bottom: 1px solid #E8E8E8;
}

.notification-dropdown__header h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-color);
}

.notification-dropdown__header a {
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
}

.notification-item {
    padding: 1rem 1.25rem !important;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid #F0F0F0;
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: linear-gradient(90deg, rgba(254, 152, 116, 0.08) 0%, rgba(254, 152, 116, 0.03) 100%);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: rgba(254, 152, 116, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.notification-item__icon--success {
    background: rgba(98, 196, 166, 0.1);
    color: #62C4A6;
}

.notification-item__icon--warning {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.notification-item__content {
    flex: 1;
    min-width: 0;
}

.notification-item__content h6 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--theme-color);
}

.notification-item__content p {
    margin: 0 0 0.25rem 0;
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.4;
}

.notification-item__time {
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
}

.notification-dropdown__footer {
    padding: 0.75rem 1.25rem;
    background: #F8F9FA;
    border-top: 1px solid #E8E8E8;
}

.notification-dropdown__footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.notification-dropdown__footer a:hover {
    color: var(--theme-color);
}

.notification-dropdown .dropdown-divider {
    margin: 0;
    border-color: #E8E8E8;
}

.header-links__profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-links__profile h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-color);
    text-align: right;
    margin: 0;
}

.header-links__profile h3 span {
    font-weight: 400;
    color: var(--gray);
    display: block;
}

.header-links__profile img {
    width: 60px;
    aspect-ratio: 1;
    border-radius: 100%;
}

.header-links__profile.dropdown-toggle {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.header-links__profile.dropdown-toggle::after {
    display: none;
}

.profile-dropdown {
    min-width: 220px;
    padding: 0.75rem 0;
    margin-top: 0.75rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #E8E8E8;
    background: var(--white);
    overflow: hidden;
}

.profile-dropdown .dropdown-item {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--theme-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    background: transparent;
}

.profile-dropdown .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(254, 152, 116, 0.1) 0%, rgba(254, 152, 116, 0.05) 100%);
    color: var(--primary);
    padding-left: 1.75rem;
}

.profile-dropdown .dropdown-item:active {
    background: linear-gradient(90deg, rgba(254, 152, 116, 0.15) 0%, rgba(254, 152, 116, 0.08) 100%);
}

.profile-dropdown .dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--gray);
    transition: all 0.2s ease;
}

.profile-dropdown .dropdown-item:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

.profile-dropdown .dropdown-item.text-danger {
    color: #FF5154;
    font-weight: 600;
}

.profile-dropdown .dropdown-item.text-danger i {
    color: #FF5154;
}

.profile-dropdown .dropdown-item.text-danger:hover {
    background: linear-gradient(90deg, rgba(255, 81, 84, 0.1) 0%, rgba(255, 81, 84, 0.05) 100%);
    color: #FF5154;
    padding-left: 1.75rem;
}

.profile-dropdown .dropdown-item.text-danger:hover i {
    color: #FF5154;
    transform: scale(1.1);
}

.profile-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #E8E8E8;
    opacity: 0.6;
}

/* Header End */

/* Inventory Dashboard Start */

.inventory-dashboard .row {
    margin-bottom: 1.5rem;
}

.inventory-dashboard .row:last-child {
    margin-bottom: 0;
}

.metric-card {
    height: 100%;
    background: #F5F5F5;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: none;
    border: none;
}

.metric-card__icon {
    width: 60px;
    aspect-ratio: 1;
    border-radius: 1rem;
    border: 1px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    flex-shrink: 0;
}

.metric-card__icon--green {
    color: #62C4A6;
}

.metric-card__icon--red {
    color: #FF5154;
}

.metric-card__content {
    flex: 1;
}

.metric-card__title {
    font-size: 0.875rem;
    font-weight: 400;
    color: #7A7A7A;
    margin: 0;
    text-transform: none;
}

.metric-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-color);
    margin: 0;
}

.chart-card {
    height: 100%;
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #E8E8E8;
}

.chart-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-color);
    margin: 0 0 1rem 0;
}

.chart-card__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.chart-card__header-right {
    text-align: right;
}

.chart-card__stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray);
}

.chart-card__stats i {
    color: var(--theme-color);
    font-size: 1.75rem;
}

.chart-card__stats strong {
    color: var(--theme-color);
    font-size: 1.125rem;
    font-weight: 700;
    display: block;
}

.chart-card__select {
    padding: 0.5rem 1rem;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background: var(--white);
    color: var(--theme-color);
    font-size: 0.8125rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23363B64' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    margin-bottom: 1rem;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.chart-legend--center {
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.chart-legend__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--theme-color);
    font-weight: 400;
}

.chart-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.chart-card canvas {
    max-height: 280px;
}

/* Inventory Dashboard End */

/* Tables Start */

.tables :is(th, td) {
    white-space: nowrap;
}

.tables .badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.25rem;
}

.tables .badge.active {
    background: #E4FDF4;
    color: #0DAB64;
}

.tables .badge.inActive {
    background: #FDE6E4;
    color: #E94235;
}

.tables .badge.blue {
    background: #E4EEFD;
    color: #3589E9;
}

.tables .badge.blue {
    background: #E4EEFD;
    color: #3589E9;
}

.tables .badge.yellow {
    background-color: #FDF5E4;
    color: #AB9E0D;
}

.tables .badge.bg-secondary {
    background-color: #E8E8E8 !important;
    color: var(--theme-color);
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.page-link {
    color: var(--secondary) !important;
    box-shadow: none !important;
}

.page-item.active .page-link {
    background: var(--secondary);
    color: var(--white) !important;
    border: none;
}

/* Tables End */

/* Sales Dashboard Start */
.sales-dashboard {
    margin-top: 1rem;
}

.sales-form {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #E8E8E8;
}

.sales-form .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--theme-color);
    margin-bottom: 0.5rem;
}

.sales-form .form-control,
.sales-form .form-select {
    background: var(--white);
    border: 2px solid #E0E0E0;
    border-radius: 0.5rem !important;
    padding: 0.72rem 0.875rem;
    font-size: 0.875rem;
}

.sales-form .form-control:focus,
.sales-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(254, 152, 116, 0.25);
}

.payment-summary {
    background: var(--primary);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.payment-summary__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 1.5rem 0;
    text-transform: capitalize;
}

.payment-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    font-size: 1rem;
    padding: 0.5rem 0;
}

.payment-summary__row:last-of-type {
    border-bottom: none;
}

.payment-summary__row--total {
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.payment-summary__row strong {
    font-weight: 600;
}

.payment-summary__row .badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.payment-summary__actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sales-table-section {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #E8E8E8;
    margin-top: 1.5rem;
}

.sales-table__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sales-table__header-left {
    display: flex;
    align-items: center;
}

.sales-table__header-right {
    display: flex;
    align-items: center;
    color: var(--theme-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.sales-dashboard .input-group {
    gap: 1rem;
}

.sales-dashboard .input-group .inputBtn {
    background: transparent;
    color: var(--gray);
    border: 2px solid #E0E0E0;
    border-radius: 0.5rem !important;
    padding: 0 1rem;
    display: grid;
    place-items: center;
}

.sales-dashboard .input-group .inputBtn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

#salesTable {
    width: 100%;
}

#salesTable thead th {
    background-color: #F8F8F8;
    color: var(--theme-color);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem;
    border-bottom: 2px solid #E8E8E8;
}

#salesTable tbody td {
    padding: 0.75rem;
    font-size: 0.875rem;
    color: var(--theme-color);
    border-bottom: 1px solid #E8E8E8;
}

#salesTable tbody tr:hover {
    background-color: #F8F8F8;
}

.sales-filter-menu {
    min-width: 200px;
    padding: 0.5rem 0;
    border: 1px solid #E8E8E8;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sales-filter-menu .dropdown-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
}

.sales-filter-menu .dropdown-item {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    color: var(--theme-color);
    transition: all 0.3s ease;
}

.sales-filter-menu .dropdown-item:hover {
    background-color: #F8F8F8;
    color: var(--primary);
}

.sales-filter-menu .dropdown-item.active {
    background-color: rgba(254, 152, 116, 0.1);
    color: var(--primary);
    font-weight: 500;
}

.sales-filter-menu .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #E8E8E8;
}

/* Sales Dashboard End */

/* Products Dashboard Start */
.products-dashboard {
    margin-top: 1rem;
}

.products-tabs {
    border-bottom: 2px solid #E8E8E8;
    margin-bottom: 1.5rem;
    padding: 0;
}

.products-tabs .nav-item {
    margin-right: 0.5rem;
}

.products-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--gray);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.products-tabs .nav-link:hover {
    color: var(--primary);
    border-bottom-color: rgba(254, 152, 116, 0.5);
}

.products-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

.products-table-section {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #E8E8E8;
}

.products-table__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.products-table__header-left {
    display: flex;
    align-items: center;
}

.products-table__header-right {
    display: flex;
    align-items: center;
    color: var(--theme-color);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.products-table__header-right:hover {
    color: var(--primary);
}

#productsTable,
#categoryTable,
#subCategoryTable {
    width: 100%;
}

#productsTable thead th,
#categoryTable thead th,
#subCategoryTable thead th {
    background-color: #F8F8F8;
    color: var(--theme-color);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem;
    border-bottom: 2px solid #E8E8E8;
}

#productsTable tbody td,
#categoryTable tbody td,
#subCategoryTable tbody td {
    padding: 0.75rem;
    font-size: 0.875rem;
    color: var(--theme-color);
    border-bottom: 1px solid #E8E8E8;
}

#productsTable tbody tr:hover,
#categoryTable tbody tr:hover,
#subCategoryTable tbody tr:hover {
    background-color: #F8F8F8;
}

.products-filter-menu {
    min-width: 200px;
    padding: 0.5rem 0;
    border: 1px solid #E8E8E8;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.products-filter-menu .dropdown-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
}

.products-filter-menu .dropdown-item {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    color: var(--theme-color);
    transition: all 0.3s ease;
}

.products-filter-menu .dropdown-item:hover {
    background-color: #F8F8F8;
    color: var(--primary);
}

.products-filter-menu .dropdown-item.active {
    background-color: rgba(254, 152, 116, 0.1);
    color: var(--primary);
    font-weight: 500;
}

/* Products Dashboard End */

/* Add Product Form Start */
.add-product-form .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--theme-color);
    margin-bottom: 0.5rem;
}

.add-product-form .form-label .text-danger {
    color: #E94235;
    font-weight: 600;
}

.add-product-form .form-control,
.add-product-form .form-select {
    background: var(--white);
    border: 2px solid #E0E0E0;
    border-radius: 0.5rem !important;
    padding: 0.72rem 0.875rem;
    font-size: 0.875rem;
    color: var(--theme-color);
}

.add-product-form .form-control:focus,
.add-product-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(254, 152, 116, 0.25);
    outline: none;
}

.add-product-form .form-control::placeholder {
    color: #999;
}

.add-product-form__actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.add-product-form__actions .themeBtn {
    min-width: 150px;
}

/* Add Product Form End */

/* Accounts Dashboard Start */
.accounts-dashboard {
    margin-top: 1rem;
}

.account-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #E8E8E8;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.account-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.account-card__icon {
    width: 60px;
    aspect-ratio: 1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.account-card--orange .account-card__icon {
    background-color: var(--primary);
}

.account-card--red .account-card__icon {
    background-color: #FF5154;
}

.account-card--teal .account-card__icon {
    background-color: #62C4A6;
}

.account-card--yellow .account-card__icon {
    background-color: #FED974;
}

.account-card__content {
    flex: 1;
}

.account-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray);
    margin: 0;
}

.account-card__link {
    width: min-content;
    color: #62C4A6;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.account-card__link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.financial-overview {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #E8E8E8;
    margin-top: 1.5rem;
}

.financial-overview__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-color);
    margin: 0 0 1.5rem 0;
}

#financialTable {
    width: 100%;
}

#financialTable thead th {
    background-color: #F8F8F8;
    color: var(--theme-color);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem;
    border-bottom: 2px solid #E8E8E8;
}

#financialTable tbody td {
    padding: 0.75rem;
    font-size: 0.875rem;
    color: var(--theme-color);
    border-bottom: 1px solid #E8E8E8;
}

#financialTable tbody tr:hover {
    background-color: #F8F8F8;
}

.change-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.change-badge--increase {
    background-color: #FDE6E4;
    color: #E94235;
}

.change-badge--decrease {
    background-color: #E4FDF4;
    color: #0DAB64;
}

/* Accounts Dashboard End */

/* Cashbook Dashboard Start */
.cashbook-filter-section {
    margin: 2rem 0;
}

.cashbook-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #E8E8E8;
}

.cashbook-filter__dates {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cashbook-filter__dates .form-control {
    background: var(--white);
    border: 2px solid #E0E0E0;
    border-radius: 0.5rem !important;
    padding: 0.72rem 0.875rem;
    font-size: 0.875rem;
    min-width: 150px;
}

.cashbook-filter__dates .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(254, 152, 116, 0.25);
    outline: none;
}

.cashbook-filter__to {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
}

.transaction-ledger {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #E8E8E8;
    margin-top: 1.5rem;
}

.transaction-ledger__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.transaction-ledger__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-color);
    margin: 0;
}

.transaction-ledger__controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.transaction-ledger__view-all {
    display: flex;
    align-items: center;
    color: var(--theme-color);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.transaction-ledger__view-all:hover {
    color: var(--primary);
}

#cashbookTable {
    width: 100%;
}

#cashbookTable thead th {
    background-color: #F8F8F8;
    color: var(--theme-color);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem;
    border-bottom: 2px solid #E8E8E8;
}

#cashbookTable tbody td {
    padding: 0.75rem;
    font-size: 0.875rem;
    color: var(--theme-color);
    border-bottom: 1px solid #E8E8E8;
}

#cashbookTable tbody tr:hover {
    background-color: #F8F8F8;
}

#cashbookTable tfoot .period-totals {
    background-color: #F8F8F8;
    font-weight: 600;
}

#cashbookTable tfoot .period-totals td {
    padding: 1rem 0.75rem;
    border-top: 2px solid #E8E8E8;
    font-size: 1rem;
    color: var(--black);
}

#cashbookTable tfoot .period-totals td strong {
    font-weight: 700;
}

.debit-amount {
    color: #62C4A6 !important;
    font-weight: 600;
}

.credit-amount {
    color: #FF5154 !important;
    font-weight: 600;
}

#cashbookTable tfoot .period-totals td.text-success {
    color: #62C4A6 !important;
}

/* Cashbook Dashboard End */

/* Expense Dashboard Start */
.expense-dashboard {
    margin-top: 1rem;
}

.expense-register {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #E8E8E8;
    margin-top: 1.5rem;
}

.expense-register__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.expense-register__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-color);
    margin: 0;
}

.expense-register__controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expense-register__view-all {
    display: flex;
    align-items: center;
    color: var(--theme-color);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.expense-register__view-all:hover {
    color: var(--primary);
}

#expenseTable {
    width: 100%;
}

#expenseTable thead th {
    background-color: #F8F8F8;
    color: var(--theme-color);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem;
    border-bottom: 2px solid #E8E8E8;
}

#expenseTable tbody td {
    padding: 0.75rem;
    font-size: 0.875rem;
    color: var(--theme-color);
    border-bottom: 1px solid #E8E8E8;
}

#expenseTable tbody tr:hover {
    background-color: #F8F8F8;
}

/* Expense Dashboard End */

/* Record New Expense Form Start */
.expense-form-dashboard {
    margin-top: 1rem;
}

.expense-form {
    padding: 1rem;
}

.file-upload-area {
    width: 100%;
    border: 2px dashed var(--primary);
    border-radius: 10px;
    background-color: #FFF9F7;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    background-color: #FFF5F2;
    border-color: var(--primary);
}


.file-upload-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.file-upload-icon i {
    font-size: 3rem;
}

.file-upload-text {
    font-size: 1rem;
    color: var(--theme-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    font-size: 0.875rem;
    color: #999;
    margin: 0;
}

.file-upload-input:focus+.file-upload-label .file-upload-area {
    border-color: var(--primary);
    outline: none;
}

/* Record New Expense Form End */

/* New Cashbook Transaction Form Start */
.cashbook-dashboard {
    margin-top: 1rem;
}

.transaction-type-tabs {
    width: 100%;
    background: #c3c2c120;
    gap: 0.75rem;
    border: none;
    border-radius: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    flex-wrap: nowrap;
}

.transaction-type-tabs .nav-item {
    width: 100%;
}

.transaction-type-tabs .nav-link {
    width: 100%;
    border: none;
    border-bottom: none;
    background: #C3C2C187;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.transaction-type-tabs .nav-link.active {
    color: var(--white);
    background: var(--primary);
}

.transaction-type-tabs .nav-link#payment-tab.active {
    background: #E94235;
}

.cashbook-transaction-form {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
}

.cashbook-transaction-form .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--theme-color);
    margin-bottom: 0.5rem;
}

.cashbook-transaction-form .form-control,
.cashbook-transaction-form .form-select {
    background: var(--white);
    border: 2px solid #E0E0E0;
    border-radius: 0.5rem !important;
    padding: 0.72rem 0.875rem;
    font-size: 0.875rem;
    color: var(--theme-color);
}

.cashbook-transaction-form .form-control:focus,
.cashbook-transaction-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(254, 152, 116, 0.25);
    outline: none;
}

.cashbook-transaction-form .form-control::placeholder {
    color: #999;
}

.cashbook-transaction-form .input-group-text {
    background: var(--white);
    border: 2px solid #E0E0E0;
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0 !important;
    color: var(--gray);
}

.cashbook-transaction-form .input-group .form-control {
    border-right: none;
    border-radius: 0.5rem 0 0 0.5rem !important;
}

/* New Cashbook Transaction Form End */

/* Payroll Process Form Start */
.net-payable-box {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.net-payable-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1rem;
}

.net-payable-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.net-payable-subtitle {
    font-size: 0.875rem;
    color: var(--white);
    opacity: 0.9;
    margin: 0;
}

/* Payroll Process Form End */

/* Payroll Section Titles */
.payroll-section-title {
    color: var(--theme-color);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.payroll-section-title--green {
    color: #0DAB64;
}

.payroll-section-title--red {
    color: #E94235;
}

.payroll-checkbox-label {
    font-size: 0.875rem;
    white-space: nowrap;
}

.payroll-outstanding-balance {
    font-size: 0.875rem;
}

/* Loans Table Styles */
.loan-progress-row {
    background-color: #F8F8F8;
}

.loan-progress-row td.loan-progress-cell {
    padding: 1rem 0.75rem;
    border-top: none;
}

.loan-progress-bar-wrapper {
    max-width: 100%;
}

.loan-progress {
    height: 8px;
}

.loan-progress-text {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.loan-metric-value--orange {
    color: var(--primary);
}

/* Payroll Section Boxes */
.payroll-section-box {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #00000030;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.payroll-section-box--green {
    border-top: 3px solid #0DAB64;
}

.payroll-section-box--red {
    border-top: 3px solid #E94235;
}

/* Profit Report Dashboard Start */
.profit-dashboard {
    margin-top: 1rem;
}

/* Profit Report Dashboard End */
