:root {
  --sidebar-width: 250px;
  --sidebar-bg: #1e3059;
  --body-bg: #f0f4ff;
  --primary: #f97316;
  --primary-hover: #f25e00;
  --text: #2d3748;
  --muted: #9aa5b5;
  --border: #e7ebf3;
  --white: #fff;
  --header-bg: #e3e8ed;
  font-size: clamp(14px, 0.9vw + 10px, 16px) !important;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}
.text-brand {
  color: var(--primary);
}
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #293b61;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #293b61;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  font-family: "Poppins", sans-serif;
  background: var(--body-bg);
  color: var(--text);
}
a {
  text-decoration: none;
}
.fa-lg {
  font-size: 1.25em;
  line-height: 0.05em;
  vertical-align: -0.075em;
}
.fa-2x {
  font-size: 2em;
}
.small,
small {
  font-size: 0.875em !important;
}
a {
  color: var(--primary);
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
table.dataTable thead th {
  background: #cadfff !important;
  color: #1e3059;
}
.dt-info {
  color: var(--primary);
}
.active > .page-link,
.page-link.active {
  background-color: var(--primary);
  border-color: var(--primary);
}
.layout {
  min-height: 100vh;
  background: var(--body-bg);
}
.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-header {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: #fff;
}
.sidebar-brand img {
  max-width: 350px;
  max-height: 86px;
  width: 100%;
  height: 100%;
}
.header-user-wrapper {
  position: relative;
}
.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.user-dropdown-icon {
  font-size: 18px;
  margin-left: 4px;
  transition: transform 0.2s ease;
}
.header-user[aria-expanded="true"] .user-dropdown-icon {
  transform: rotate(180deg);
}
.user-dropdown {
  min-width: 190px;
  margin-top: 8px !important;
  padding: 8px;
  border: 1px solid var(--border, #ececec);
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.user-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 14px;
}
.user-dropdown .dropdown-item iconify-icon {
  font-size: 18px;
  width: 20px;
}
.user-dropdown .dropdown-item:hover,
.user-dropdown .dropdown-item:active {
  background: #f97316;
  color: #fff !important;
}
.user-dropdown .dropdown-divider {
  margin: 6px 0;
}
.user-avatar {
  width: 40px;
  height: 40px;
  margin: 0 5px 0 0;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.user-name {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 700;
}
.user-role {
  font-size: 13px;
  color: var(--primary);
}
.sidebar-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 0;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
/* Chrome, Edge, Safari */
.sidebar-content::-webkit-scrollbar {
  width: 8px;
}
.sidebar-content::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s ease;
}
.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
  background-clip: padding-box;
}
.sidebar-menu .menu-item {
  margin-bottom: 8px;
}
.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #b5bfd3;
  padding: 10px;
  transition: 0.25s;
  font-size: 15px;
  font-weight: 500;
}
.sidebar-menu iconify-icon {
  font-size: 20px;
}
.sidebar-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.sidebar-menu .submenu .menu-item a {
  padding-left: 3.5rem;
}
.sidebar-menu .menu-item.active > a {
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
}
/*Sidebar Submenu*/
.sidebar-menu .submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.2s ease,
    visibility 0.3s ease;
}
.sidebar-menu .submenu.show {
  max-height: 600px;
  opacity: 1;
  visibility: visible;
}
.sidebar-menu .menu-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.sidebar-menu .menu-toggle[aria-expanded="true"] .menu-arrow {
  transform: rotate(90deg);
}
.sidebar-widget {
  display: none;
  margin-top: 24px;
  text-align: center;
  background: #182541;
  border-radius: 16px;
  padding: 12px;
}
.sidebar-widget img {
  max-width: 110px;
  display: block;
  margin: auto;
}
.sidebar-widget img {
  max-width: 110px;
  display: block;
  margin: auto;
}
.sidebar-widget p {
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 0;
}
.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  height: 75px;
  background: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid var(--border);
  box-shadow: 13px -4px 8px #c6c6c6;
  z-index: 900;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.sidebar-toggle {
  width: 42px;
  height: 42px;
  border: none;
  background: none;
  font-size: 26px;
}
.breadcrumb-box {
  height: 40px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 14px;
  background: #fafbfe;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.search-box {
  display: flex;
  align-items: center;
  width: 240px;
  height: 40px;
  border-radius: 30px;
  background: #fff;
  padding: 0 16px;
  gap: 10px;
}
.search-box input {
  border: none;
  outline: none;
  background: none;
  width: 100%;
  font-size: 14px;
}
.header-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #374151;
  font-size: 22px;
  transition: 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-btn:hover {
  background: var(--primary);
  color: #fff;
}
.page-body {
  padding-top: 100px;
}
.footer {
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 30px;
  color: #667085;
  font-size: 15px;
}
.footer a {
  color: #667085;
}
.footer a:hover {
  color: var(--primary);
}
.link-underline {
  border-bottom: 1px dashed;
}
/*Sidebar Toggle*/
.sidebar,
.page-wrapper,
.topbar {
  transition: all 0.3s ease;
}
/* Desktop Hidden */
body.sidebar-hidden .sidebar {
  transform: translateX(-100%);
}
body.sidebar-hidden .page-wrapper {
  margin-left: 0;
}
body.sidebar-hidden .topbar {
  left: 0;
}
/* Overlay */
.layout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 998;
}
.layout-overlay.show {
  opacity: 1;
  visibility: visible;
}
.page-body {
  min-height: calc(100vh - 170px);
}
.common-card {
  min-height: inherit;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}
.placeholder-image {
  max-width: 320px;
}
.placeholder-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}
.placeholder-text {
  max-width: 550px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.8;
}
.page-title {
  color: #1e3059;
}
.btn-dark {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1e3059;
  --bs-btn-border-color: #161f35;
  --bs-btn-hover-bg: #161f35;
  --bs-btn-hover-border-color: #1e3059;
}
.form-control:focus {
  box-shadow: none !important;
}
.filter-chevron {
  transition: transform 0.2s ease;
}
button[aria-expanded="true"] .filter-chevron {
  transform: rotate(180deg);
}
.accordion-header {
  border-radius: 10px !important;
}
label.form-label {
  color: #999;
}
/* ==================================================
   FLATPICKR DATE INPUT
================================================== */
.flatpickr-input-group {
  width: 100%;
  min-width: 160px;
}
.flatpickr-range-group {
  min-width: 280px;
}
.flatpickr-input-group .form-control {
  min-width: 0;
}
.flatpickr-calendar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  min-width: 38px;
  padding: 0 10px;
}
.flatpickr-calendar-icon iconify-icon {
  font-size: 18px;
}
/* ==================================================
   NOTIFICATION DROPDOWN
================================================== */
.notification-wrapper {
  position: relative;
}
.notification-btn {
  position: relative;
}
.notification-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}
/* Dropdown */
.notification-dropdown {
  width: 360px;
  max-width: calc(100vw - 30px);
  padding: 0;
  margin-top: 8px !important;
  border: 1px solid var(--border, #ececec);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
/* Header */
.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #ececec);
}
/* Notification list */
.notification-list {
  max-height: 360px;
  overflow-y: auto;
}
/* Notification item */
.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--border, #ececec);
  transition: background 0.2s ease;
}
.notification-item:hover {
  background: #f8f9fa;
}
.notification-item.unread {
  background: #fff2e9;
}
.notification-item.unread:hover {
  background: #f8e8dc;
}
.notification-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.notification-icon iconify-icon {
  font-size: 18px;
}
.notification-content {
  min-width: 0;
  flex: 1;
}
.notification-title {
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 600;
}
.notification-text {
  font-size: 12px;
  color: var(--muted, #7b7b92);
  line-height: 1.4;
}
.notification-time {
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted, #7b7b92);
}
.notification-footer {
  padding: 11px 16px;
  text-align: center;
  border-top: 1px solid var(--border, #ececec);
}
.notification-footer a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.tbl-excel-export span,
.tbl-pdf-export span {
  display: flex;
  align-items: center;
}
.tbl-excel-export,
.tbl-pdf-export {
  background: var(--muted);
}
.table-actions a {
  width: 38px;
  height: 38px;
}
.table-actions a iconify-icon {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
