/* 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;
}

.bg--gray {
	background-color: var(--gray) !important;
}

/* 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);
}

.themeBtn--white {
	background: var(--white);
	color: var(--gray);
}

.themeBtn--white:hover {
	color: var(--white);
}

.themeBtn--gray {
	border-color: var(--gray);
	color: var(--gray);
}

.themeBtn--gray:hover {
	background: var(--gray);
	color: var(--white);
}

/* 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: 1rem;
}

.dashboard-card>.heading {
	margin-bottom: 1rem;
}

/* Dashboard Wrapper End */

/* Sidebar Start */

.dashboard-sidebar {
	min-width: 300px;
	min-height: 100%;
	background: #FCFCFC80;
	border-right: 1px solid var(--gray);
	padding: 2rem 1.5rem;
}

.dashboard-sidebar__logo {
	width: 200px;
	display: block;
	margin: 0 auto 2rem;
}

.dashboard-sidebar__logo img {
	width: 100%;
}

.dashboard-sidebar__list li+li {
	margin-top: 0.5rem;
}

.dashboard-sidebar__list li a {
	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;
}

/* 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 {
	width: 10px;
	aspect-ratio: 1;
	background: var(--primary);
	border-radius: 100%;
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
}

.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 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__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 {
	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 .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;
}

.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 */