:root {
  --sidebar-width: 280px;
  --sidebar-mini-width: 84px;
  --admin-bg: #f5f7fb;
  --admin-surface: #ffffff;
  --admin-surface-soft: #f8fafc;
  --admin-border: #dbe4ef;
  --admin-text: #1f2937;
  --admin-muted: #6b7280;
  --admin-primary: #2563eb;
  --admin-primary-dark: #1d4ed8;
  --admin-success: #0f766e;
  --admin-warning: #d97706;
  --admin-danger: #dc2626;
  --admin-sidebar: #111827;
  --admin-sidebar-soft: #1f2937;
  --admin-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
  --admin-shadow: 0 18px 46px rgba(15, 23, 42, 0.09);
  --admin-shadow-lg: 0 26px 70px rgba(15, 23, 42, 0.12);
  --admin-ring: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #f8fbff 0%, var(--admin-bg) 42%, #eef4fa 100%);
  color: var(--admin-text);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  text-decoration: none;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  /* Reserve scrollbar gutter to keep inner content width stable so header/footer dividers align with scrollbar */
  scrollbar-gutter: stable;
  background: var(--admin-sidebar);
  color: #ffffff;
  box-shadow: 18px 0 42px rgba(15, 23, 42, 0.18);
  transform: translateX(0);
  transition: width 0.2s ease, transform 0.2s ease;
}

.sidebar-header {
  padding: 1.35rem 1.25rem 1.15rem;
  margin-inline: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: #ffffff;
}

.brand-mark:hover,
.brand-mark:focus {
  color: #ffffff;
}

.brand-icon,
.profile-avatar,
.metric-icon,
.nav-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 800;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  color: #ffffff;
}

.brand-icon.brand-icon-img {
  background: #ffffff;
  overflow: hidden;
  padding: 4px;
}

.brand-icon.brand-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-brand .brand-icon.brand-icon-img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
}

.brand-copy,
.brand-title,
.brand-subtitle,
.nav-text,
.sidebar-footer-text {
  min-width: 0;
  transition: opacity 0.16s ease, width 0.16s ease;
}

.brand-title,
.brand-subtitle {
  display: block;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-subtitle {
  color: #9ca3af;
  font-size: 0.78rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.45rem;
  padding: 1.1rem 1rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.78rem 0.9rem;
  border-radius: 8px;
  color: #d1d5db;
  font-weight: 700;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus,
.sidebar-nav .nav-link.active {
  background: var(--admin-sidebar-soft);
  color: #ffffff;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus {
  transform: translateX(2px);
}

.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #bfdbfe;
  font-size: 0.76rem;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  margin-inline: 1.25rem;
  padding: 1rem 0;
  color: #d1d5db;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  white-space: nowrap;
}

.sidebar-user {
  margin: auto 1rem 1rem;
  padding: 0.85rem;
  display: grid;
  justify-items: center;
  gap: 0.22rem;
  border: 1px solid var(--admin-sidebar-border);
  border-radius: 8px;
  background: var(--admin-sidebar-soft);
  text-align: center;
}

.sidebar-user-avatar {
  border: 3px solid #53e9b9;
}

.sidebar-user strong {
  color: var(--admin-sidebar-text-strong);
  font-size: 1rem;
  line-height: 1.1;
}

.sidebar-user small {
  color: var(--admin-sidebar-muted);
  font-size: 0.84rem;
}

.status-dot,
.notification-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.status-dot {
  flex: 0 0 auto;
  background: #22c55e;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  left: 0;
  z-index: 1030;
  display: none;
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.55);
  transition: opacity 0.2s ease;
}

body.sidebar-open .sidebar-backdrop {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  background: var(--admin-sidebar);
  color: #ffffff;
  box-shadow: 18px 0 42px rgba(15, 23, 42, 0.18);
  transform: translateX(0);
  transition: width 0.2s ease, left 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  visibility: visible;
  will-change: transform;
}

.admin-main {
  width: auto;
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.2s ease;
  /* Sticky footer: push admin-footer to bottom when page content is short */
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.erp-main-content {
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: 72px;
  border-bottom: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow-sm);
}

.admin-navbar.bg-white {
  background-color: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px);
}

.sidebar-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
  border-color: #bfdbfe;
  background: #f8fbff;
  box-shadow: var(--admin-ring);
}

.sidebar-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  background: var(--admin-text);
  border-radius: 999px;
}

.search-input {
  max-width: 520px;
  border-color: var(--admin-border);
  border-radius: 8px;
  background: var(--admin-surface-soft);
  min-height: 42px;
  box-shadow: none;
}

.search-input:focus {
  border-color: #93c5fd;
  box-shadow: var(--admin-ring);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-button,
.profile-button {
  border: 1px solid var(--admin-border);
  background: #ffffff;
  color: var(--admin-text);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.icon-button:hover,
.icon-button:focus,
.profile-button:hover,
.profile-button:focus {
  border-color: #bfdbfe;
  box-shadow: var(--admin-ring);
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-weight: 800;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--admin-danger);
}

.notification-menu {
  width: min(320px, calc(100vw - 2rem));
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  box-shadow: var(--admin-shadow);
}

.notification-menu .dropdown-item {
  display: grid;
  gap: 0.2rem;
  padding-block: 0.7rem;
}

.notification-title {
  font-weight: 700;
}

.notification-time {
  color: var(--admin-muted);
  font-size: 0.82rem;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-weight: 700;
}

.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #e0ecff;
  color: var(--admin-primary-dark);
  font-size: 0.76rem;
}

.avatar-img {
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center;
}

.avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.avatar-md {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.avatar-xl {
  width: 78px;
  height: 78px;
  border-radius: 50%;
}

.profile-button .avatar-sm {
  border: 2px solid #52e7b8;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .profile-button .avatar-sm {
  border-color: #54f0be;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.dashboard-content {
  /* Sticky footer is handled by .admin-main flex — do not force near-full viewport height */
  flex: 1 0 auto;
  min-height: 0;
  width: 100%;
}

.dashboard-content > .container-fluid {
  padding-top: 1.75rem !important;
  padding-bottom: 1.75rem !important;
}

.page-heading,
.panel-header,
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-heading {
  margin-bottom: 1.35rem;
}

.page-heading h1 {
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--admin-primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.btn {
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
}

.btn-primary {
  border-color: var(--admin-primary);
  background: var(--admin-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--admin-primary-dark);
  background: var(--admin-primary-dark);
}

.metric-card,
.panel {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
}

.metric-card {
  position: relative;
  min-height: 164px;
  padding: 1.35rem;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--metric-color, var(--admin-primary));
}

.metric-card:hover {
  border-color: #c6d5e8;
  box-shadow: var(--admin-shadow-lg);
  transform: translateY(-3px);
}

.metric-primary {
  --metric-color: var(--admin-primary);
}

.metric-success {
  --metric-color: var(--admin-success);
}

.metric-warning {
  --metric-color: var(--admin-warning);
}

.metric-danger {
  --metric-color: var(--admin-danger);
}

.metric-label {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eaf2ff;
  color: var(--metric-color, var(--admin-primary));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.metric-success .metric-icon {
  background: #e7f6f3;
}

.metric-warning .metric-icon {
  background: #fff4df;
}

.metric-danger .metric-icon {
  background: #ffecec;
}

.metric-value {
  margin-top: 1rem;
  color: var(--admin-text);
  font-size: 2.18rem;
  font-weight: 800;
  line-height: 1;
}

.metric-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.9rem;
  color: var(--admin-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.panel {
  padding: 1.35rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.panel:hover {
  border-color: #c6d5e8;
  box-shadow: var(--admin-shadow-lg);
}

.panel-header {
  margin-bottom: 1.25rem;
}

.panel-header p {
  font-size: 0.92rem;
}

.chart-bars {
  height: 292px;
  display: grid;
  grid-template-columns: repeat(6, minmax(38px, 1fr));
  align-items: end;
  gap: 1rem;
  padding: 1.2rem 0.4rem 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.chart-column {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 0.6rem;
  color: var(--admin-muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.chart-column span {
  width: 100%;
  height: var(--bar-size);
  min-height: 28px;
  display: block;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--admin-primary), var(--admin-success));
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.bar-42 {
  --bar-size: 42%;
}

.bar-58 {
  --bar-size: 58%;
}

.bar-51 {
  --bar-size: 51%;
}

.bar-72 {
  --bar-size: 72%;
}

.bar-66 {
  --bar-size: 66%;
}

.bar-83 {
  --bar-size: 83%;
}

.activity-list {
  display: grid;
  gap: 1.1rem;
}

.activity-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--admin-border);
}

.activity-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.activity-dot {
  width: 12px;
  height: 12px;
  margin-top: 0.45rem;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.08);
}

.table {
  --bs-table-bg: transparent;
}

.table thead th {
  color: var(--admin-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.table tbody td {
    min-width: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.table tbody tr {
  transition: background 0.16s ease;
}

.table tbody tr:hover {
  background: #f8fbff;
}

.badge {
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
}

.table-search {
  width: min(260px, 100%);
  border-color: var(--admin-border);
  border-radius: 8px;
}

.table-media {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.product-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--admin-border);
}

.profile-avatar-lg {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  font-size: 1.5rem;
}

.profile-hero {
  display: grid;
  justify-items: center;
}

.profile-card {
  overflow: hidden;
}

.profile-cover {
    margin: -1.35rem -1.35rem 0.9rem;
    height: 180px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.profile-photo {
  margin-top: -44px;
  border: 4px solid var(--admin-surface);
  box-shadow: var(--admin-shadow-sm);
}

.info-list,
.settings-list,
.legend-list {
  display: grid;
  gap: 0.85rem;
}

.info-list div,
.mini-card,
.settings-row,
.legend-list div {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--admin-surface-soft);
}

.info-list div,
.legend-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
}

.info-list span,
.mini-card span,
.settings-row small {
  color: var(--admin-muted);
  font-size: 0.84rem;
}

.info-list strong,
.mini-card strong {
  text-align: right;
}

.mini-card {
  display: grid;
  gap: 0.35rem;
  min-height: 104px;
  align-content: center;
  padding: 1rem;
}

.mini-card strong {
  color: var(--admin-text);
  font-size: 1.05rem;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  cursor: pointer;
}

.settings-row span {
  display: grid;
  gap: 0.2rem;
}

.donut-chart {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--admin-primary) 0 42%, var(--admin-success) 42% 68%, var(--admin-warning) 68% 86%, var(--admin-danger) 86% 100%);
  box-shadow: var(--admin-shadow-sm);
}

.donut-chart span {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--admin-text);
  font-size: 1.65rem;
  font-weight: 800;
}

.legend-list div {
  padding: 0.75rem 0.85rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.legend-list strong {
  margin-left: auto;
}

.progress {
  height: 1.15rem;
  border-radius: 8px;
  background: #e8eef6;
}

.progress-bar {
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
}

.progress-42 {
  width: 42%;
}

.progress-58 {
  width: 58%;
}

.progress-72 {
  width: 72%;
}

.blank-panel {
  min-height: 440px;
  display: grid;
  place-items: center;
  text-align: center;
}

.blank-state {
  max-width: 440px;
  display: grid;
  justify-items: center;
}

.blank-visual {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 0.9rem;
}

.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fbff 0%, #eaf2ff 44%, #eef8f6 100%);
}

.auth-page,
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-card,
.error-card {
  width: min(100%, 460px);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--admin-shadow-lg);
}

.auth-card {
  padding: 1.5rem;
}

.auth-visual {
    margin-bottom: 1rem;
    height: 150px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    overflow: hidden;
}

.auth-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.error-card {
  padding: 2rem;
  text-align: center;
}

.error-illustration {
  width: min(260px, 100%);
  max-height: 132px;
  object-fit: contain;
  margin: 0 auto 0.55rem;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--admin-text);
}

.auth-brand:hover,
.auth-brand:focus {
  color: var(--admin-text);
}

.auth-brand span:last-child {
  display: grid;
  line-height: 1.2;
}

.auth-brand small,
.auth-footer {
  color: var(--admin-muted);
}

.auth-footer {
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.92rem;
}

.error-code {
  color: var(--admin-primary);
  font-size: clamp(5rem, 18vw, 8rem);
  font-weight: 800;
  line-height: 1;
}

.admin-footer {
  margin-top: auto; /* pin to bottom of .admin-main flex column */
  flex-shrink: 0;
  padding: 0 0 1rem;
  color: var(--admin-muted);
  font-size: 0.85rem;
}

.admin-footer .container-fluid {
  display: block;
}

.admin-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 1rem 1.35rem;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  box-shadow: var(--admin-shadow-sm);
}

.admin-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.admin-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--admin-primary), var(--admin-success));
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.admin-footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.admin-footer-brand-text strong {
  color: var(--admin-text);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-footer-brand-text small {
  color: var(--admin-muted);
  font-size: 0.72rem;
}

.admin-footer-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.admin-footer-links a {
  color: var(--admin-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.admin-footer-links a:hover {
  color: var(--admin-primary);
}

.admin-footer-dot {
  color: var(--admin-border);
  font-size: 0.6rem;
}

.admin-footer-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.admin-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--admin-success);
  font-size: 0.72rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .admin-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (min-width: 992px) {
  body.sidebar-mini .admin-sidebar {
    width: var(--sidebar-mini-width);
  }

  body.sidebar-mini .admin-main {
    margin-left: var(--sidebar-mini-width);
  }

  body.sidebar-mini .brand-copy,
  body.sidebar-mini .nav-text,
  body.sidebar-mini .sidebar-footer-text {
    width: 0;
    opacity: 0;
    overflow: hidden;
  }

  body.sidebar-mini .sidebar-header,
  body.sidebar-mini .sidebar-footer {
    margin-inline: 1rem;
    padding-inline: 0;
  }

  body.sidebar-mini .sidebar-nav .nav-link {
    /* justify-content: center; */
    padding-inline: 0.65rem;
  }

  body.sidebar-mini .sidebar-nav .nav-link:hover,
  body.sidebar-mini .sidebar-nav .nav-link:focus {
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    width: min(var(--sidebar-width), calc(100vw - 48px));
    left: -100%;
    transform: translateX(0);
    visibility: hidden;
  }

  .admin-main {
    margin-left: 0;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .admin-sidebar {
    left: 0 !important;
    transform: translateX(0) !important;
    visibility: visible !important;
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }
}

@media (max-width: 575.98px) {
  .page-heading,
  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .heading-actions {
    width: 100%;
    justify-content: stretch;
  }

  .heading-actions .btn {
    flex: 1 1 0;
  }

  .chart-bars {
    height: 220px;
    gap: 0.6rem;
    padding-inline: 0.25rem;
  }

  .metric-value {
    font-size: 1.85rem;
  }

  .metric-card,
  .panel {
    padding: 1.1rem;
  }

  .admin-footer .container-fluid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-nav .nav-link,
  .sidebar-toggle,
  .icon-button,
  .profile-button,
  .btn,
  .metric-card,
  .panel,
  .table tbody tr {
    transition: none;
  }

  .sidebar-nav .nav-link:hover,
  .sidebar-nav .nav-link:focus,
  .btn:hover,
  .btn:focus,
  .metric-card:hover {
    transform: none;
  }
}

html[data-theme="dark"] {
  --admin-bg: #0f172a;
  --admin-surface: #182235;
  --admin-surface-soft: #111827;
  --admin-border: #2f3b52;
  --admin-text: #e5edf7;
  --admin-muted: #9aa8bd;
  --admin-primary: #60a5fa;
  --admin-primary-dark: #3b82f6;
  --admin-success: #2dd4bf;
  --admin-warning: #fbbf24;
  --admin-danger: #f87171;
  --admin-sidebar: #090f1d;
  --admin-sidebar-soft: #172033;
  --admin-shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.24);
  --admin-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  --admin-shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.42);
  --admin-ring: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

html[data-theme="dark"] body {
  background: linear-gradient(180deg, #111827 0%, var(--admin-bg) 48%, #0b1120 100%);
}

.brand-icon {
  font-size: 1.1rem;
}

.nav-icon {
  font-size: 0.95rem;
}

.admin-navbar.bg-white,
.sidebar-toggle,
.icon-button,
.profile-button {
  background-color: var(--admin-surface) !important;
  color: var(--admin-text);
}

html[data-theme="dark"] .admin-navbar.bg-white {
  background-color: rgba(24, 34, 53, 0.92) !important;
}

html[data-theme="dark"] .profile-avatar {
  background: #1e3a5f;
  color: #bfdbfe;
}

.page-heading-copy {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-width: 0;
}

.page-icon,
.section-title i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #eaf2ff;
  color: var(--admin-primary-dark);
}

.page-icon {
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.section-title i {
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
}

html[data-theme="dark"] .page-icon,
html[data-theme="dark"] .section-title i {
  background: #1e3a5f;
  color: #bfdbfe;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-light {
  border-color: var(--admin-border);
  background: var(--admin-surface-soft);
  color: var(--admin-text);
}

.btn-outline-secondary {
  border-color: var(--admin-border);
  color: var(--admin-text);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  border-color: var(--admin-primary);
  background: #eaf2ff;
  color: var(--admin-primary-dark);
}

html[data-theme="dark"] .btn-outline-secondary:hover,
html[data-theme="dark"] .btn-outline-secondary:focus {
  background: #1e3a5f;
  color: #bfdbfe;
}

html[data-theme="dark"] .chart-bars {
  background: linear-gradient(180deg, #111827 0%, #182235 100%);
}

html[data-theme="dark"] .table tbody tr:hover {
  background: #111827;
}

html[data-theme="dark"] .progress {
  background: #243149;
}

html[data-theme="dark"] .auth-body {
  background: linear-gradient(135deg, #0b1120 0%, #111827 48%, #10201f 100%);
}

.auth-card,
.error-card {
  background: var(--admin-surface);
}

.dropdown-menu,
.modal-content,
.accordion-item,
.accordion-button {
  border-color: var(--admin-border);
  background-color: var(--admin-surface);
  color: var(--admin-text);
}

.dropdown-item,
.accordion-body {
  color: var(--admin-text);
}

.dropdown-item:hover,
.dropdown-item:focus,
.accordion-button:not(.collapsed) {
  background-color: var(--admin-surface-soft);
  color: var(--admin-text);
}

.form-control,
.form-select {
  border-color: var(--admin-border);
  background-color: var(--admin-surface);
  color: var(--admin-text);
}

.form-control:focus,
.form-select:focus {
  border-color: #93c5fd;
  background-color: var(--admin-surface);
  color: var(--admin-text);
  box-shadow: var(--admin-ring);
}

.form-control::placeholder {
  color: var(--admin-muted);
}

.text-muted {
  color: var(--admin-muted) !important;
}

html[data-theme="dark"] .text-body {
  color: var(--admin-text) !important;
}

html[data-theme="dark"] .text-bg-secondary {
  background-color: #334155 !important;
  color: #e5edf7 !important;
}

@media (max-width: 767.98px) {
  .navbar-actions {
    gap: 0.5rem;
  }

  .icon-button,
  .profile-button,
  .sidebar-toggle {
    width: 40px;
    height: 40px;
  }

  .profile-button {
    padding: 0.3rem;
  }

  .page-heading-copy {
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .page-heading-copy {
    width: 100%;
  }

  .page-icon {
    width: 44px;
    height: 44px;
  }

  .panel-header .d-flex,
  .panel-header .form-control,
  .panel-header .form-select {
    width: 100%;
  }
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body,
.admin-navbar,
.admin-sidebar,
.admin-main,
.metric-card,
.panel,
.auth-card,
.error-card,
.dropdown-menu,
.modal-content,
.form-control,
.form-select {
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.table {
  --bs-table-color: var(--admin-text);
  --bs-table-border-color: var(--admin-border);
  color: var(--admin-text);
}

/* Form labels: text black/dark; only required asterisk stays red */
.form-label,
.field-label,
.award-label,
.erp-label,
.tx-label,
.na-label,
.sms-field-label,
.pay-field-label,
.zisco-crud-label {
  color: #111827 !important;
}
.form-label .text-danger,
.field-label .text-danger,
.award-label .text-danger,
.erp-label .text-danger,
.tx-label .text-danger,
.na-label .text-danger,
.sms-field-label .text-danger,
.pay-field-label .text-danger,
.zisco-crud-label .text-danger {
  color: #dc3545 !important;
}

.page-link {
  border-color: var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-text);
}

.page-link:hover,
.page-link:focus {
  border-color: var(--admin-primary);
  background: var(--admin-surface-soft);
  color: var(--admin-primary);
}

.page-item.active .page-link {
  border-color: var(--admin-primary);
  background: var(--admin-primary);
  color: #ffffff;
}

.page-item.disabled .page-link {
  border-color: var(--admin-border);
  background: var(--admin-surface-soft);
  color: var(--admin-muted);
}

.alert {
  border-radius: 8px;
}

html[data-theme="dark"] .alert-primary {
  border-color: #1d4ed8;
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
}

html[data-theme="dark"] .alert-success {
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.18);
  color: #99f6e4;
}

html[data-theme="dark"] .alert-warning {
  border-color: #d97706;
  background: rgba(217, 119, 6, 0.18);
  color: #fde68a;
}

html[data-theme="dark"] .alert-danger {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.16);
  color: #fecaca;
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .accordion-item {
  border-color: var(--admin-border);
}

html[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(180%);
}

html[data-theme="dark"] .text-bg-info {
  background-color: #0e7490 !important;
  color: #ecfeff !important;
}

html[data-theme="dark"] .text-bg-warning {
  background-color: #b45309 !important;
  color: #fff7ed !important;
}

html[data-theme="dark"] .text-bg-success {
  background-color: #0f766e !important;
  color: #ecfdf5 !important;
}

html[data-theme="dark"] .text-bg-danger {
  background-color: #b91c1c !important;
  color: #fef2f2 !important;
}

@media (max-width: 991.98px) {
  .dashboard-content > .container-fluid {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }

  .admin-sidebar {
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.28);
  }
}

@media (max-width: 767.98px) {
  .panel-header {
    align-items: flex-start;
  }

  .panel-header > .d-flex {
    width: 100%;
  }

  .table-search {
    width: 100%;
  }

  .auth-page,
  .error-page {
    padding: 1rem;
  }

  .auth-card,
  .error-card {
    padding: 1.15rem;
  }
}

@media (max-width: 420px) {
  .heading-actions {
    width: 100%;
  }

  .heading-actions .btn {
    width: 100%;
  }

  .metric-card {
    min-height: 146px;
  }

  .profile-avatar-lg {
    width: 76px;
    height: 76px;
  }
}

@media (max-width: 575.98px) {
  .avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .avatar-xl {
    width: 70px;
    height: 70px;
  }

  .profile-cover {
    height: 82px;
    margin-bottom: 0.75rem;
  }

  .profile-photo {
    margin-top: -38px;
  }

  .auth-visual {
    height: 82px;
  }

  .product-thumb {
    width: 36px;
    height: 36px;
  }
}

html:not([data-theme="dark"]) {
  --admin-sidebar: #ffffff;
  --admin-sidebar-soft: #d3e1fc;
  --admin-sidebar-border: #dbe4ef;
  --admin-sidebar-text: #475569;
  --admin-sidebar-text-strong: #0f172a;
  --admin-sidebar-muted: #64748b;
  --admin-sidebar-icon-bg: #eaf2ff;
  --admin-sidebar-icon: #2563eb;
  --admin-sidebar-shadow: 18px 0 42px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] {
  --admin-sidebar-border: rgba(255, 255, 255, 0.08);
  --admin-sidebar-text: #d1d5db;
  --admin-sidebar-text-strong: #ffffff;
  --admin-sidebar-muted: #9ca3af;
  --admin-sidebar-icon-bg: rgba(255, 255, 255, 0.08);
  --admin-sidebar-icon: #bfdbfe;
  --admin-sidebar-shadow: 18px 0 42px rgba(0, 0, 0, 0.34);
}

.admin-sidebar {
  border-right: 1px solid var(--admin-sidebar-border);
  background: var(--admin-sidebar);
  color: var(--admin-sidebar-text-strong);
  box-shadow: var(--admin-sidebar-shadow);
}

.sidebar-header {
  border-bottom-color: var(--admin-sidebar-border);
}

.brand-mark,
.brand-mark:hover,
.brand-mark:focus {
  color: var(--admin-sidebar-text-strong);
}

.brand-subtitle {
  color: var(--admin-sidebar-muted);
}

.sidebar-nav .nav-link {
  color: var(--admin-sidebar-text);
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus,
.sidebar-nav .nav-link.active {
  background: var(--admin-sidebar-soft);
  color: var(--admin-sidebar-text-strong) !important;
}

.nav-icon {
  background: var(--admin-sidebar-icon-bg);
  color: var(--admin-sidebar-icon);
}

.sidebar-footer {
  border-top-color: var(--admin-sidebar-border);
  color: var(--admin-sidebar-text);
}

/*  DataTables toolbar / export / pagination ── */
.dt-export-btn,
.dt-button.dt-export,
.dt-buttons .dt-button {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    color: #030712 !important;
    padding: 7px 12px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    height: 36px !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}
.dt-export-btn:hover,
.dt-button.dt-export:hover,
.dt-buttons .dt-button:hover {
    background: #f9fafb !important;
    color: #030712 !important;
}
.dt-buttons {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    gap: .35rem;
    align-items: center;
    float: none !important;
    width: auto !important;
}
.dt-button-down-arrow { margin-left: .35rem; font-size: 10px; opacity: .7; }

div.dt-button-collection {
    min-width: 150px !important;
    padding: 8px !important;
    border-radius: 14px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    box-shadow: 0 12px 32px rgba(15,23,42,.16) !important;
    z-index: 1060 !important;
}
div.dt-button-collection .dt-button {
    display: block !important;
    width: 100% !important;
    margin: 0 0 6px !important;
    padding: 8px 12px !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    text-align: left !important;
    height: auto !important;
}
div.dt-button-collection .dt-button:last-child { margin-bottom: 0 !important; }
div.dt-button-collection .dt-button:hover { background: #f8fafc !important; }

.dataTables_wrapper .dataTables_length {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
}
.dataTables_wrapper .dataTables_length label {
    display: inline-flex !important;
    align-items: center;
    gap: .35rem;
    margin: 0 !important;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}
.dataTables_wrapper .dataTables_length select {
    min-width: 64px;
    width: auto !important;
    height: 36px !important;
    padding: 6px 10px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-size: 12px !important;
    color: #030712 !important;
}

.dt-search-box { position: relative; display: inline-block; }
.dt-search-box .dt-search-input,
.dataTables_wrapper .dataTables_filter input {
    height: 36px !important;
    min-width: 220px;
    padding: 7px 12px 7px 34px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #fff !important;
    font-size: 13px !important;
    color: #030712 !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.02);
}
.dataTables_wrapper .dataTables_filter label {
    display: inline-flex !important;
    align-items: center;
    gap: .35rem;
    margin: 0 !important;
    font-size: 0 !important;
    color: transparent;
}
.dt-search-box .dt-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    background: no-repeat center / contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-4.35-4.35M11 18a7 7 0 100-14 7 7 0 000 14z'/%3E%3C/svg%3E");
    pointer-events: none;
}
.dataTables_wrapper .dataTables_filter { position: relative; }

/* Classic DataTables footer: info left, pagination right — same baseline everywhere */
.dataTables_wrapper .dataTables_info {
    font-size: 0.8125rem !important;
    color: #64748b !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    text-align: left !important;
    width: auto !important;
    line-height: 1.5 !important;
}
.dt-footer-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap;
    gap: .65rem;
    margin-top: .75rem;
    width: 100%;
    clear: both;
}
.dt-info-wrap,
.dt-paginate-wrap {
    min-width: 0;
    display: flex !important;
    align-items: center !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
.dt-info-wrap {
    flex: 1 1 auto;
    justify-content: flex-start;
}
.dt-paginate-wrap {
    flex: 0 0 auto;
    margin-left: auto !important;
    justify-content: flex-end;
}

/* Fallback when i/p are direct siblings (no footer wrapper) */
.dataTables_wrapper > .dataTables_info,
.dataTables_wrapper > div > .dataTables_info {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle;
}
.dataTables_wrapper > .dataTables_paginate,
.dataTables_wrapper > div > .dataTables_paginate {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle;
    float: right !important;
}
.dt-table-scroll {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.dt-table-scroll::-webkit-scrollbar { height: 8px; }
.dt-table-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

/* Default BS5 DataTables bottom row (info + paginate) — one straight line */
.dataTables_wrapper > .row:has(.dataTables_info),
.dataTables_wrapper > .row:has(.dataTables_paginate) {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-top: 0.75rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
}
.dataTables_wrapper > .row:has(.dataTables_info) > [class*="col-"],
.dataTables_wrapper > .row:has(.dataTables_paginate) > [class*="col-"] {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    float: none !important;
}
.dataTables_wrapper > .row:has(.dataTables_paginate) > [class*="col-"]:has(.dataTables_paginate) {
    justify-content: flex-end !important;
    flex: 0 1 auto !important;
    margin-left: auto !important;
}
.dataTables_wrapper > .row:has(.dataTables_info) > [class*="col-"]:has(.dataTables_info) {
    justify-content: flex-start !important;
}

/* Reset BS5 DataTables LI (.paginate_button.page-item) — never style the LI */
.dataTables_wrapper .dataTables_paginate {
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    text-align: right !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}
.dataTables_wrapper .dataTables_paginate .pagination {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center !important;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.page-item,
.dataTables_wrapper .dataTables_paginate .page-item {
    display: inline-flex !important;
    align-items: center !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.page-item:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.page-item.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.page-item.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.page-item:hover:not(.disabled) {
    background: transparent !important;
    border: 0 !important;
    color: inherit !important;
    box-shadow: none !important;
}

/* Only the <a.page-link> is the visible button — match settings pagination */
.dataTables_wrapper .dataTables_paginate .page-link {
    display: inline-block !important;
    min-width: auto;
    height: auto !important;
    margin: 0 !important;
    padding: 0.35rem 0.65rem !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.25rem !important;
    background: #fff !important;
    color: #0d6efd !important;
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    box-shadow: none !important;
}
.dataTables_wrapper .dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover {
    background: #e9ecef !important;
    border-color: #dee2e6 !important;
    color: #0a58ca !important;
    z-index: 2;
}
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link:hover,
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link:focus {
    background: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
    border-radius: 0.25rem !important;
    z-index: 3;
}
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link,
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link:hover {
    background: #fff !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    opacity: 1;
    cursor: default !important;
}

/* Non-Bootstrap DT renderer fallback (plain <a.paginate_button>) */
.dataTables_wrapper .dataTables_paginate > .paginate_button,
.dataTables_wrapper .dataTables_paginate span .paginate_button {
    display: inline-block !important;
    min-width: auto !important;
    height: auto !important;
    margin-left: 2px !important;
    padding: 0.35rem 0.65rem !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.25rem !important;
    background: #fff !important;
    color: #0d6efd !important;
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    box-shadow: none !important;
}
.dataTables_wrapper .dataTables_paginate > .paginate_button.current,
.dataTables_wrapper .dataTables_paginate span .paginate_button.current {
    background: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}
.dataTables_wrapper .dataTables_paginate > .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate span .paginate_button.disabled {
    color: #6c757d !important;
    cursor: default !important;
}

.dt-toolbar-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: .75rem !important;
    margin-bottom: .85rem;
}
.dt-left-toolbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: .5rem !important;
    width: auto !important;
    min-width: 0;
    float: none !important;
}
.dt-left-toolbar > .dataTables_length,
.dt-left-toolbar > .dt-buttons {
    flex: 0 0 auto !important;
    float: none !important;
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
    position: static !important;
}
.dt-left-toolbar > .dt-buttons {
    flex-wrap: nowrap !important;
    gap: .35rem !important;
}
.dataTables_wrapper .dt-toolbar-row .dataTables_filter {
    margin: 0 0 0 auto !important;
    float: none !important;
    text-align: right !important;
}

/* Settings / Zisco CRUD */

/* ── Core CRUD layout ── */
.zisco-crud-page .zisco-crud-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--admin-border, #e2e8f0);
}
.zisco-crud-form-panel {
    border: 1px dashed var(--admin-border, #d1d5db);
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
    height: 100%;
}
.zisco-crud-form-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid var(--admin-border, #e2e8f0);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.zisco-crud-form-title i { font-size: 1rem; color: #64748b; }
.zisco-crud-label,
.award-settings-page .award-label,
.award-rule-modal .field-label,
.award-program-modal .field-label,
.translations-page .tr-field-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}
.zisco-crud-btn-add,
.award-settings-page .btn-save-award,
.award-rule-modal .btn-save-rule,
.award-program-modal .btn-save-program,
.translations-page .tr-btn-add,
.translations-page .tr-save-btn,
.pm-btn-update {
    background: #6366f1;
    border-color: #6366f1;
    padding: 0.35rem 1rem;
    font-weight: 500;
}
.zisco-crud-btn-add:hover,
.award-settings-page .btn-save-award:hover,
.award-rule-modal .btn-save-rule:hover,
.award-program-modal .btn-save-program:hover,
.translations-page .tr-btn-add:hover,
.translations-page .tr-save-btn:hover,
.pm-btn-update:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}
.zisco-crud-item-card,
.tags-list-card {
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 10px;
    background: #f8fafc;
    padding: 1rem 1.15rem;
    height: 100%;
}
.zisco-crud-item-title { font-size: 0.875rem; font-weight: 600; color: #1e293b; margin-bottom: 0.35rem; }
.zisco-crud-item-meta { font-size: 0.75rem; color: #64748b; margin-bottom: 0; }
.zisco-crud-item-meta p { font-size: 0.75rem; color: #64748b; margin-bottom: 0.15rem; }
.zisco-crud-item-meta span { color: #1e293b; font-weight: 500; }
.zisco-crud-btn-edit,
.award-program-page .ap-btn-edit {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.zisco-crud-btn-edit:hover,
.award-program-page .ap-btn-edit:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}
.zisco-crud-btn-delete,
.award-program-page .ap-btn-delete {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}
.zisco-crud-plain-textarea { resize: vertical; min-height: 100px; }

/* ── Lead source grid ── */
.lead-source-grid > [class*="col-"] { max-width: 50%; flex: 0 0 50%; }
@media (max-width: 767.98px) {
    .lead-source-grid > [class*="col-"] { max-width: 100%; flex: 0 0 100%; }
}

/* ── Tags color picker ── */
.tags-color-panel {
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 12px;
    background: #f8fafc;
    padding: 1rem;
}
.tags-color-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
@media (max-width: 575.98px) { .tags-color-grid { grid-template-columns: 1fr; } }
.tag-color-field input[type="color"] {
    width: 100%;
    height: 40px;
    padding: 3px;
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.tag-color-field input[type="text"] {
    font-size: 0.8125rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.tags-list-card .zisco-tag-preview { max-width: 100%; word-break: break-word; }

/* ── Payment method page ── */
.pm-hero {
    border-radius: 24px;
    border: 1px solid var(--admin-border, #e2e8f0);
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.pm-hero-inner { position: relative; padding: 1.5rem 1.75rem; }
@media (min-width: 768px) { .pm-hero-inner { padding: 1.75rem 2rem; } }
.pm-hero-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 32%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.10), transparent 28%);
    pointer-events: none;
}
.pm-hero-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 992px) {
    .pm-hero-layout {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2rem;
    }
}
.pm-hero-main { flex: 1 1 58%; min-width: 0; }
.pm-hero-kicker {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.65rem;
}
.pm-hero-title {
    font-size: 1.625rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.65rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.pm-hero-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #64748b;
    max-width: 42rem;
    margin-bottom: 1rem;
}
.pm-hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pm-hero-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--admin-border, #e2e8f0);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
}
.pm-hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
    flex: 0 0 auto;
}
@media (min-width: 992px) {
    .pm-hero-stats-grid { max-width: 420px; width: 42%; }
}
@media (min-width: 1400px) {
    .pm-hero-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; }
}
@media (max-width: 575.98px) { .pm-hero-stats-grid { grid-template-columns: 1fr; } }
.pm-stat-card {
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    padding: 1rem 1.15rem;
    height: 100%;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pm-stat-card .stat-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0;
}
.pm-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 0.55rem;
    margin-bottom: 0.2rem;
    line-height: 1.1;
}
.pm-stat-card .stat-hint { font-size: 0.6875rem; color: #64748b; margin-bottom: 0; line-height: 1.4; }
.pm-badge-editing { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.pm-form-card, .pm-list-card {
    border-radius: 16px;
    border: 1px solid var(--admin-border, #e2e8f0);
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    height: 100%;
}
.pm-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--admin-border, #e2e8f0);
}
.pm-card-header h6 { font-size: 1.05rem; font-weight: 600; color: #0f172a; }
.pm-card-body { padding: 1.5rem; }
.pm-guidance-box {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 1rem;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}
.pm-guidance-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.pm-method-card {
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 12px;
    background: #ffffff;
    padding: 1.15rem 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.pm-method-card:hover {
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}
.pm-method-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 1.1rem;
}
.pm-method-id {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    border: 1px solid var(--admin-border, #e2e8f0);
    background: #f8fafc;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}
.pm-btn-edit { font-size: 0.75rem; border-radius: 6px; padding: 0.3rem 0.65rem; }
.pm-btn-delete { font-size: 0.75rem; border-radius: 6px; padding: 0.3rem 0.65rem; font-weight: 500; }
.pm-list-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    border: 1px solid var(--admin-border, #e2e8f0);
    background: #f8fafc;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    white-space: nowrap;
}

/* ── Shared settings data tables ── */
.award-rule-page .award-rule-table thead th,
.award-program-page .award-program-table thead th,
.translations-page .tr-table thead th,
.crud-table thead th {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--admin-border, #e2e8f0);
}
.award-rule-page .award-rule-table tbody td,
.award-program-page .award-program-table tbody td,
.translations-page .tr-table tbody td,
.crud-table tbody td {
    font-size: 0.8125rem;
    padding: 0.85rem 1rem;
    vertical-align: middle;
}
.crud-table tbody td { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.crud-table tbody tr:last-child td { border-bottom: none; }
.crud-table tbody tr:hover { background: #f9fafb; }
.translations-page .tr-table tbody td { border-top: 1px solid var(--admin-border, #e2e8f0); }
.award-rule-page .award-rule-table th.col-action,
.award-rule-page .award-rule-table td.col-action,
.award-program-page .award-program-table th.col-action,
.award-program-page .award-program-table td.col-action {
    width: 110px;
    min-width: 110px;
    white-space: nowrap;
}
.award-rule-page .ar-action-group,
.award-program-page .ap-action-group,
.translations-page .tr-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

/* ── Award rule / program page headers ── */
.award-rule-page .zisco-card-header h5,
.award-program-page .zisco-card-header h5 { font-size: 1.0625rem; font-weight: 600; }
.award-rule-page .btn-new-rule,
.award-program-page .btn-new-program {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
}
.award-rule-page .btn-new-rule:hover,
.award-program-page .btn-new-program:hover {
    background: #1e293b;
    border-color: #1e293b;
    color: #fff;
}

/* ── Shared settings modals (award rule / program) ── */
.award-rule-modal .modal-content,
.award-program-modal .modal-content {
    border-radius: 16px;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}
.award-rule-modal .modal-dialog,
.award-program-modal .modal-dialog {
    max-height: calc(100vh - 2rem);
    margin: 1rem auto;
}
.award-program-modal .modal-dialog { max-width: 720px; }
.award-rule-modal form,
.award-program-modal form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}
.award-rule-modal .modal-header,
.award-program-modal .modal-header {
    flex-shrink: 0;
    border-bottom: 1px solid var(--admin-border, #e2e8f0);
    padding: 1rem 1.25rem;
}
.award-rule-modal .modal-title { font-size: 1rem; font-weight: 600; color: #0f172a; }
.award-rule-modal .modal-footer,
.award-program-modal .modal-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--admin-border, #e2e8f0);
    padding: 0.85rem 1.25rem;
    background: #fff;
}
.award-rule-modal .modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    max-height: calc(100vh - 11rem);
    flex: 1 1 auto;
}
.award-program-modal .modal-body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    max-height: calc(100vh - 10rem);
    flex: 1 1 auto;
}

/* ── Select2 — Bootstrap 5 alignment (global) ── */

/* Hide native <select> once Select2 replaces it — Bootstrap .form-select otherwise
   keeps border, chevron, and block layout visible beside the widget. */
select.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    background: transparent none !important;
    box-shadow: none !important;
}
select.select2-hidden-accessible.is-invalid,
select.select2-hidden-accessible.form-select.is-invalid,
select.select2-hidden-accessible.erp-select.is-invalid {
    border: 0 !important;
    box-shadow: none !important;
}

.select2-container {
    width: 100% !important;
    max-width: 100%;
    border: none;
    box-shadow: none;
}
.select2-container .select2-selection--single {
    height: calc(2.25rem + 2px);
    border: 1px solid #ced4da;
    border-radius: .375rem;
    background-color: var(--admin-surface, #fff);
}
.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: calc(2.25rem);
    padding-left: .75rem;
    color: #212529;
}
.select2-container .select2-selection--single .select2-selection__arrow {
    height: calc(2.25rem);
}
.form-select-sm.select2-hidden-accessible + .select2-container .select2-selection--single {
    height: calc(1.9rem + 2px);
}
.form-select-sm.select2-hidden-accessible + .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 1.9rem;
    padding-left: .65rem;
    font-size: .875rem;
}
.form-select-sm.select2-hidden-accessible + .select2-container .select2-selection--single .select2-selection__arrow {
    height: 1.9rem;
}
.select2-container .select2-selection--multiple {
    min-height: calc(2.25rem + 2px);
    border: 1px solid #ced4da;
    border-radius: .375rem;
    padding: .15rem .35rem;
    background-color: var(--admin-surface, #fff);
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e7f1ff !important;
    border: 1px solid #b6d4fe !important;
    color: #0d6efd !important;
    border-radius: 4px !important;
    padding: 2px 8px 2px 22px !important;
    margin-top: .25rem !important;
    margin-right: .25rem !important;
    margin-bottom: .15rem !important;
    font-size: .8125rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    position: relative !important;
    display: inline-block !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    background: transparent !important;
    border: none !important;
    border-right: none !important;
    color: #0d6efd !important;
    position: absolute !important;
    left: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-size: 13px !important;
    font-weight: bold !important;
    cursor: pointer !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #dc3545 !important;
    background: transparent !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 0 !important;
    padding-right: 0 !important;
    color: #0d6efd !important;
}
.dropdown-with-add {
    display: flex;
    align-items: stretch;
    gap: .375rem;
}
.dropdown-with-add > .select2-container,
.dropdown-with-add > select:not(.select2-hidden-accessible) {
    flex: 1 1 auto;
    min-width: 0;
}
.select2-container--open,
.modal .select2-container--open,
.modal .select2-container--open .select2-dropdown {
    z-index: 1065 !important;
}

/* Table responsive dropdown positioning fixes */
.table-responsive {
    overflow-x: auto;
}
.table-responsive .dropdown-menu {
    z-index: 1060 !important;
}
.js-task-status-wrap .dropdown-item,
.js-bug-status-wrap .dropdown-item {
    font-size: 12.5px;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.js-task-status-wrap .dropdown-item:hover,
.js-bug-status-wrap .dropdown-item:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}
.js-task-status-wrap .dropdown-item:active,
.js-bug-status-wrap .dropdown-item:active {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

.award-rule-modal .employee-search-wrap,
.award-program-modal .lookup-wrap {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
}
.award-rule-modal .employee-search-wrap .select2-container,
.award-program-modal .lookup-wrap .select2-container { flex: 1 1 auto; min-width: 0; }
.award-rule-modal .btn-employee-add,
.award-program-modal .btn-lookup-add {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
    width: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}
.award-rule-modal .btn-employee-add:hover,
.award-program-modal .btn-lookup-add:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}
.award-rule-modal .select2-container--default .select2-selection--single,
.award-program-modal .select2-container--default .select2-selection--single {
    height: calc(1.9rem + 2px);
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}
.award-rule-modal .select2-container--default .select2-selection--single .select2-selection__rendered,
.award-program-modal .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.9rem;
    padding-left: 0.65rem;
    font-size: 0.875rem;
}
.award-rule-modal .select2-container--default .select2-selection--single .select2-selection__arrow,
.award-program-modal .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 1.9rem;
}

/* ── Translations page ── */
.translations-page .tr-card {
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.translations-page .tr-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--admin-border, #e2e8f0);
}
.translations-page .tr-card-header h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #0f172a;
}
.translations-page .tr-card-body { padding: 1rem 1.25rem; }
.translations-page .tr-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}
.translations-page .tr-lang-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
.translations-page .tr-lang-link:hover { text-decoration: underline; }
.translations-page .tr-progress {
    height: 8px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}
.translations-page .tr-progress-bar { height: 100%; border-radius: 999px; }
.translations-page .tr-progress-bar.tone-danger { background: #f43f5e; }
.translations-page .tr-progress-bar.tone-warning { background: #f59e0b; }
.translations-page .tr-progress-bar.tone-primary { background: #3b82f6; }
.translations-page .tr-progress-bar.tone-success { background: #10b981; }
.translations-page .tr-progress-label { font-size: 0.6875rem; color: #64748b; margin-top: 0.25rem; }
.translations-page .tr-btn-icon {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.translations-page .tr-breadcrumb-link { color: #e11d48; text-decoration: none; }
.translations-page .tr-breadcrumb-link:hover { text-decoration: underline; }

/* ── Award points settings ── */
.award-settings-page .award-panel {
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}
.award-settings-page .award-panel + .award-panel { margin-top: 1.25rem; }
.award-settings-page .award-panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--admin-border, #e2e8f0);
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}
.award-settings-page .award-panel-body { padding: 1.25rem; }

/* ── List pagination & DataTables ── */
.settings-paginate-nav {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center !important;
    justify-content: space-between;
    gap: 0.5rem;
}
.settings-paginate-nav .pagination { margin-bottom: 0; }
.settings-paginate-nav .page-link { font-size: 0.8125rem; padding: 0.35rem 0.65rem; }
.settings-paginate-info { font-size: 0.8125rem; color: #64748b; line-height: 1.5; }
.settings-datatable-wrap .dataTables_wrapper .dataTables_paginate,
.settings-datatable-wrap .dataTables_wrapper .dataTables_info,
.award-rule-page .dataTables_wrapper .dataTables_paginate,
.award-rule-page .dataTables_wrapper .dataTables_info {
    margin-top: 0 !important;
    padding-top: 0 !important;
    font-size: 0.8125rem;
    color: #64748b;
}
.settings-datatable-wrap .dataTables_wrapper .dataTables_length,
.settings-datatable-wrap .dataTables_wrapper .dataTables_filter {
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
}

.pm-btn-update,
.award-settings-page .btn-save-award {
    font-weight: 600;
    border-radius: 10px;
    padding: 0.45rem 1.15rem;
}

/* ── Shared horizontal section tabs (clients show / settings lead masters) ── */
.ctab-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    border: 1px solid #e9eef5;
    border-radius: 12px;
    padding: 6px;
    background: #fff;
}
.ctab-nav a {
    white-space: nowrap;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    transition: background .15s ease, color .15s ease;
}
.ctab-nav a:hover {
    background: #f8fafc;
    color: #0f172a;
}
.ctab-nav a.active {
    background: #0f172a;
    color: #fff;
}
.ctab-nav a.active:hover {
    background: #0f172a;
    color: #fff;
}
.ctab-nav a .badge {
    font-size: 11px;
}

/* Transactions form field validation */
.erp-field-error,
.tx-field-error {
    display: block;
    margin-top: .35rem;
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
}
.erp-input.is-invalid,
.erp-select.is-invalid,
.erp-textarea.is-invalid,
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .15) !important;
}
.select2-container.is-invalid .select2-selection--single,
.select2-container.is-invalid .select2-selection--multiple,
.erp-select.is-invalid + .select2-container .select2-selection--single,
.erp-select.is-invalid + .select2-container .select2-selection--multiple {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .15) !important;
}

/* Zisco-style tags input (tw-tags) */
.tw-tags-wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 4px 8px;
    border: 1px solid #e5e7eb;
    border-radius: .65rem;
    background: #fff;
    cursor: text;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tw-tags-wrapper:focus-within {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}
input.tw-tags.is-invalid + .tw-tags-wrapper {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .15) !important;
}
.tw-tags-input {
    flex: 1 1 120px;
    min-width: 120px;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    padding: 4px 2px;
    font-size: 13px;
    color: #111827;
    line-height: 1.4;
}
.tw-tags-input::placeholder {
    color: #9ca3af;
}
.tw-tags-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    animation: twTagsFadeIn 140ms ease;
}
.tw-tags-item.no-anim {
    animation: none;
}
.tw-tags-item > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tw-tags-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #60a5fa;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}
.tw-tags-remove:hover {
    background: #dbeafe;
    color: #1e40af;
}
.tw-tags-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 40;
    max-height: 220px;
    overflow: auto;
    padding: 4px;
    border: 1px solid #e5e7eb;
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, .35);
}
.tw-tags-menu.is-hidden {
    display: none !important;
}
.tw-tags-suggestion {
    display: block;
    width: 100%;
    border: 0;
    border-radius: .45rem;
    background: transparent;
    padding: .45rem .65rem;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}
.tw-tags-suggestion:hover {
    background: #f3f4f6;
}
@keyframes twTagsFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   CRM COMMON FOUNDATION DESIGN SYSTEM (PHASE 1)
   Reusable classes for CRM modules (Leads, Deals, Contacts, etc.)
   ========================================================================== */

/* Page Header & Actions */
.crm-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.crm-page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 0.2rem;
    letter-spacing: -0.01em;
}

.crm-page-subtitle {
    font-size: 0.84rem;
    color: #64748b;
    margin-bottom: 0;
}

.crm-page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* CRM Stat / Filter Summary Bar */
.crm-stat-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding: 0.25rem 0;
}

.crm-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
}

.crm-stat-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06);
}

.crm-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.crm-stat-dot--pending { background-color: #94a3b8; }
.crm-stat-dot--confirm { background-color: #0284c7; }
.crm-stat-dot--demo { background-color: #16a34a; }
.crm-stat-dot--rejected { background-color: #dc2626; }
.crm-stat-dot--total { background-color: #475569; }

.crm-stat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    background: #f1f5f9;
    color: #1e293b;
}

.crm-stat-pill--total {
    margin-left: auto;
    border-color: #cbd5e1;
    background: #fafbfc;
}

@media (max-width: 767.98px) {
    .crm-stat-pill--total {
        margin-left: 0;
    }
}

/* CRM Card & Table Shell */
.crm-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.crm-card-body {
    padding: 1.25rem;
}

.crm-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    background: #ffffff;
}

/* Modern CRM Table Styling */
.crm-table {
    width: 100% !important;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8125rem;
}

.crm-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem 0.85rem;
    border-top: none;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    vertical-align: middle;
}

.crm-table tbody td {
    padding: 0.75rem 0.85rem;
    color: #1e293b;
    vertical-align: middle;
    border-top: none;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    transition: background-color 0.12s ease;
}

.crm-table tbody tr:hover td {
    background-color: #f8fafc;
}

.crm-table tbody tr:last-child td {
    border-bottom: none;
}

/* Typography & Cell Components */
.crm-lead-name-cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.crm-lead-name {
    font-weight: 600;
    color: #1d4ed8;
    font-size: 0.84rem;
    text-decoration: none;
    display: inline-block;
    transition: color 0.15s ease;
    line-height: 1.25;
}

.crm-lead-name:hover {
    color: #1e40af;
    text-decoration: underline;
}

.crm-lead-row-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    line-height: 1;
}

.crm-row-action-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
    cursor: pointer;
}

.crm-row-action-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.crm-row-action-link.text-danger:hover {
    color: #b91c1c !important;
}

.crm-row-action-sep {
    color: #cbd5e1;
    font-size: 0.65rem;
    user-select: none;
}

.crm-lead-company {
    font-weight: 500;
    color: #0f172a;
    line-height: 1.25;
}

.crm-lead-meta {
    font-size: 0.72rem;
    color: #64748b;
    display: block;
    margin-top: 1px;
}

/* Tag Pills */
.crm-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 5px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    white-space: nowrap;
    margin: 1px 2px 1px 0;
}

.crm-tag-empty {
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: normal;
}

/* Assigned Staff / User Avatar */
.crm-assigned-user {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.crm-avatar-initials {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
    border: 1px solid #c7d2fe;
}

.crm-assigned-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
}

/* Status Select & Dropdown */
.crm-status-form {
    margin: 0;
}

.crm-status-select {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1.6rem 0.25rem 0.55rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    color: #334155;
    cursor: pointer;
    line-height: 1.3;
    min-width: 110px;
    transition: all 0.15s ease;
}

.crm-status-select:focus,
.crm-status-select:hover {
    border-color: #94a3b8;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

/* Action Buttons & Group */
.crm-actions-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.crm-icon-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
    text-decoration: none;
}

.crm-icon-btn:hover {
    color: #1e293b;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.crm-icon-btn--danger {
    color: #dc2626;
    border-color: #fee2e2;
    background: #fff;
}

.crm-icon-btn--danger:hover {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fca5a5;
}

.crm-btn-visit {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1.25;
}

/* Live Timer Pill */
.crm-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* DataTables UI Overrides for Clean CRM Look */
.dataTables_wrapper .dt-toolbar-row {
    padding: 0 0 0.85rem 0;
}

.dataTables_wrapper .dataTables_length label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0;
}

.dataTables_wrapper .dataTables_length select {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.28rem 1.75rem 0.28rem 0.55rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    color: #334155;
    background-color: #ffffff;
}

.dataTables_wrapper .dt-export-btn {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    padding: 0.32rem 0.75rem !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.15s ease !important;
}

.dataTables_wrapper .dt-export-btn:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

.dataTables_wrapper .dataTables_filter label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0;
}

.dataTables_wrapper .dataTables_filter input {
    font-size: 0.8rem;
    padding: 0.32rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    background-color: #ffffff;
    min-width: 180px;
    transition: all 0.15s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dataTables_wrapper .dt-footer-row {
    padding: 0.85rem 0 0 0;
}

.dataTables_wrapper .dataTables_info {
    font-size: 0.78rem;
    color: #64748b;
    padding-top: 0 !important;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 0 !important;
}

.dataTables_wrapper .pagination .page-link {
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin: 0 2px;
    color: #475569;
    border-color: #e2e8f0;
}

.dataTables_wrapper .pagination .page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
}

.dataTables_wrapper .pagination .page-item.disabled .page-link {
    color: #cbd5e1;
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

/* Quick Add (+) dropdown enhancement */
.dropdown-with-add {
    display: flex;
    align-items: stretch;
    gap: 6px;
}

.dropdown-with-add > .btn-quick-add {
    flex: 0 0 auto;
    width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

/* Empty State */
.crm-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #94a3b8;
}

.crm-empty-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

/* ===================== BLOG & ADVANCED SEO MODULE ===================== */
.erp-table-thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
}

.erp-status-select {
    width: auto !important;
    cursor: pointer;
    font-size: 12px !important;
    font-weight: 500;
}

.blog-panel-header {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.blog-panel-header i {
    color: #2563eb;
    font-size: 16px;
}

.form-label-small {
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
    font-size: 0.875rem;
}

.helper-text {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 4px;
}

.blog-ckeditor .ck-editor__editable_inline {
    min-height: 200px;
}

.blog-ckeditor-main .ck-editor__editable_inline {
    min-height: 280px;
}

.blog-slug-prefix {
    font-size: 11px;
    background-color: #f8fafc;
    color: #64748b;
}

.btn-schema-gen {
    font-size: 11px;
    padding: 0 0.5rem;
}

.blog-preview-container {
    min-height: 120px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.blog-preview-img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 6px;
}

.blog-preview-img-hidden {
    display: none;
}

.blog-preview-img-visible {
    display: block;
}

.blog-select2-full + .select2-container,
.select2-container {
    width: 100% !important;
}

.blog-excerpt-box {
    background-color: #f8fafc;
    border-left: 4px solid #2563eb;
    padding: 1rem;
    border-radius: 0.375rem;
    font-style: italic;
    color: #475569;
}

.blog-content-preview {
    min-height: 200px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 0.375rem;
}

.blog-schema-preview {
    max-height: 180px;
    overflow-y: auto;
    font-size: 11px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    border-radius: 0.375rem;
}

.blog-featured-media-img {
    max-height: 220px;
    object-fit: cover;
    width: 100%;
    border-radius: 0.375rem;
}

.blog-meta-badge {
    font-size: 11.5px;
}

/* ==========================================================================
   ERP UNIFIED LISTINGS, STAT CARDS & DATATABLES SYSTEM
   Unifies Tasks, Accounting, Bugs, Projects, Recruitment, Blogs & All ERP Lists
   ========================================================================== */

/* --- 1. Universal DataTable Cells & Header Typography --- */
.erp-datatable th,
.erp-datatable td,
#mainTaskTable th,
#mainTaskTable td,
#mainBugTable th,
#mainBugTable td,
#vouchersTable th,
#vouchersTable td,
#journalTable th,
#journalTable td,
#projectsTable th,
#projectsTable td,
#recruitmentTable th,
#recruitmentTable td,
#blogsTable th,
#blogsTable td {
    padding: 7px 10px !important;
    vertical-align: middle !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.erp-datatable thead th,
#mainTaskTable thead th,
#mainBugTable thead th,
#vouchersTable thead th,
#journalTable thead th,
#projectsTable thead th,
#recruitmentTable thead th,
#blogsTable thead th {
    font-weight: 600 !important;
    font-size: 11.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    white-space: nowrap !important;
    background-color: #f8f9fa !important;
    color: #495057 !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

.erp-datatable tbody tr:hover,
#mainTaskTable tbody tr:hover,
#mainBugTable tbody tr:hover,
#vouchersTable tbody tr:hover,
#journalTable tbody tr:hover,
#projectsTable tbody tr:hover,
#recruitmentTable tbody tr:hover,
#blogsTable tbody tr:hover {
    background-color: #f8fafc !important;
}

/* --- 2. Entity Title & Detail Links --- */
.erp-title-link,
.task-title-link,
.bug-title-link,
.project-title-link {
    color: #0d6efd !important;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.15s ease-in-out, text-decoration 0.15s ease-in-out;
    text-decoration: none;
}

.erp-title-link:hover,
.task-title-link:hover,
.bug-title-link:hover,
.project-title-link:hover {
    color: #0a58ca !important;
    text-decoration: underline !important;
}

/* --- 3. Clickable Interactive Stat Cards (Filters / Summary) --- */
.erp-stat-card,
.task-stat-card,
.project-stat-card,
.recruitment-stat-card,
.metric-kpi-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
    border: 2px solid #e2e8f0 !important;
    position: relative;
    user-select: none;
}

.erp-stat-card:hover,
.task-stat-card:hover,
.project-stat-card:hover,
.recruitment-stat-card:hover,
.metric-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: #cbd5e1 !important;
}

.erp-stat-card.is-active-primary,
.task-stat-card.is-active-primary,
.project-stat-card.is-active-primary,
.recruitment-stat-card.is-active-primary,
.metric-kpi-card.active,
.metric-kpi-card.is-active-primary {
    border-color: #0d6efd !important;
    background-color: #f8faff !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.erp-stat-card.is-active-info,
.task-stat-card.is-active-info,
.project-stat-card.is-active-info,
.recruitment-stat-card.is-active-info,
.metric-kpi-card.is-active-info {
    border-color: #0284c7 !important;
    background-color: #f0f9ff !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.erp-stat-card.is-active-warning,
.task-stat-card.is-active-warning,
.project-stat-card.is-active-warning,
.recruitment-stat-card.is-active-warning,
.metric-kpi-card.is-active-warning {
    border-color: #d97706 !important;
    background-color: #fffbeb !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.erp-stat-card.is-active-danger,
.task-stat-card.is-active-danger,
.project-stat-card.is-active-danger,
.recruitment-stat-card.is-active-danger,
.metric-kpi-card.is-active-danger {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.erp-stat-card.is-active-success,
.task-stat-card.is-active-success,
.project-stat-card.is-active-success,
.recruitment-stat-card.is-active-success,
.metric-kpi-card.is-active-success {
    border-color: #198754 !important;
    background-color: #f6fdf9 !important;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.erp-stat-card.is-active-purple,
.task-stat-card.is-active-purple,
.project-stat-card.is-active-purple,
.recruitment-stat-card.is-active-purple,
.metric-kpi-card.is-active-purple {
    border-color: #9333ea !important;
    background-color: #faf5ff !important;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.erp-stat-card.is-active-teal,
.task-stat-card.is-active-teal,
.project-stat-card.is-active-teal,
.recruitment-stat-card.is-active-teal,
.metric-kpi-card.is-active-teal {
    border-color: #0d9488 !important;
    background-color: #f0fdfa !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.erp-stat-card .active-indicator,
.task-stat-card .active-indicator,
.project-stat-card .active-indicator,
.recruitment-stat-card .active-indicator,
.metric-kpi-card .active-indicator {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px;
}

.erp-stat-card[class*="is-active-"] .active-indicator,
.task-stat-card[class*="is-active-"] .active-indicator,
.project-stat-card[class*="is-active-"] .active-indicator,
.recruitment-stat-card[class*="is-active-"] .active-indicator,
.metric-kpi-card.active .active-indicator,
.metric-kpi-card[class*="is-active-"] .active-indicator {
    display: block;
}

/* KPI Card Inner Elements */
.metric-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.metric-num {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Standardized ERP Tables */
#vouchersTable th, #vouchersTable td,
#recruitmentTable th, #recruitmentTable td {
    padding: 8px 12px !important;
    vertical-align: middle !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}
#vouchersTable thead th,
#recruitmentTable thead th {
    font-weight: 600 !important;
    font-size: 11.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    white-space: nowrap !important;
    background-color: #f8f9fa !important;
    color: #495057 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
#vouchersTable tbody tr:hover,
#recruitmentTable tbody tr:hover {
    background-color: #f8fafc !important;
}
.voucher-card-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Standard ERP DataTables Controls */
.dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    margin-bottom: 0;
}
.dataTables_length select {
    display: inline-block;
    width: auto;
    padding: 0.3rem 1.85rem 0.3rem 0.65rem;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
}
.dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    margin-bottom: 0;
}
.dataTables_filter input {
    display: inline-block;
    width: auto;
    padding: 0.3rem 0.65rem;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}

@media (max-width: 575.98px) {
    .dataTables_length, .dataTables_filter {
        width: 100%;
        margin-bottom: 0.65rem;
    }
    .dataTables_filter label, .dataTables_length label {
        width: 100%;
        justify-content: space-between;
    }
    .dataTables_filter input {
        flex-grow: 1;
        max-width: 200px;
    }
}

/* Standard ERP Status Pills & Dots */
.erp-status-btn-pill {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    padding: 3px 10px !important;
    border: 1px solid !important;
    background-color: #ffffff;
    text-transform: capitalize;
}
.erp-status-badge-pill {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    padding: 3px 10px !important;
    border: 1px solid !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    text-transform: capitalize;
}
.erp-status-pending {
    color: #d97706 !important;
    background-color: #fef3c7 !important;
    border-color: #fde68a !important;
}
.erp-status-approved {
    color: #059669 !important;
    background-color: #d1fae5 !important;
    border-color: #a7f3d0 !important;
}
.erp-status-posted {
    color: #2563eb !important;
    background-color: #dbeafe !important;
    border-color: #bfdbfe !important;
}
.erp-status-dot-6 {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.erp-status-dot-8 {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.erp-status-dot-pending {
    background-color: #d97706 !important;
}
.erp-status-dot-approved {
    background-color: #059669 !important;
}
.erp-status-dot-posted {
    background-color: #2563eb !important;
}
.erp-dropdown-menu-sm {
    min-width: 140px;
    border-radius: 10px;
}
.erp-dropdown-menu-lg {
    min-width: 170px;
    border-radius: 10px;
}
.export-payout-menu {
    min-width: 275px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 6px;
    z-index: 1050;
}
.export-payout-menu .dropdown-item {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    transition: background-color 0.12s ease;
}
.export-payout-menu .dropdown-item:hover {
    background-color: #f1f5f9;
}
@media (max-width: 575.98px) {
    .export-payout-menu {
        max-width: 90vw;
    }
}

/* --- 4. Column Visibility Dropdown Menu --- */
.column-vis-dropdown {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #e2e8f0 !important;
    padding: 6px !important;
    min-width: 170px !important;
}

.column-vis-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.12s ease;
    user-select: none;
}

.column-vis-item:hover {
    background-color: #f1f5f9;
}

.column-vis-item .check-mark {
    font-size: 14px;
    font-weight: bold;
    color: #0f172a;
    visibility: hidden;
}

.column-vis-item.is-active .check-mark {
    visibility: visible;
}

/* --- 5. Premium ERP Action Dropdown Menus --- */
.erp-action-menu,
.recruitment-action-menu {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 4px 10px -2px rgba(15, 23, 42, 0.05) !important;
    padding: 6px !important;
    min-width: 190px !important;
    z-index: 1060 !important;
}

.erp-action-menu .dropdown-item,
.recruitment-action-menu .dropdown-item {
    border-radius: 6px !important;
    padding: 6px 10px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    transition: all 0.15s ease !important;
    outline: none !important;
}

.erp-action-menu .dropdown-item:hover,
.erp-action-menu .dropdown-item:focus,
.recruitment-action-menu .dropdown-item:hover,
.recruitment-action-menu .dropdown-item:focus {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: none !important;
}

.erp-action-menu .dropdown-item.item-danger,
.recruitment-action-menu .dropdown-item.item-danger {
    color: #dc2626 !important;
}

.erp-action-menu .dropdown-item.item-danger:hover,
.erp-action-menu .dropdown-item.item-danger:focus,
.recruitment-action-menu .dropdown-item.item-danger:hover,
.recruitment-action-menu .dropdown-item.item-danger:focus {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
}

.erp-action-menu .dropdown-item.item-onboard,
.recruitment-action-menu .dropdown-item.item-onboard {
    background-color: #f3e8ff !important;
    color: #7e22ce !important;
    font-weight: 700 !important;
}

.erp-action-menu .dropdown-item.item-onboard:hover,
.erp-action-menu .dropdown-item.item-onboard:focus,
.recruitment-action-menu .dropdown-item.item-onboard:hover,
.recruitment-action-menu .dropdown-item.item-onboard:focus {
    background-color: #e9d5ff !important;
    color: #6b21a8 !important;
    outline: none !important;
    box-shadow: none !important;
}

.action-dropdown-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* --- 6. Recruitment & Candidate Specific Shared Components --- */
.recruitment-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    color: #fff;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
}

.pipeline-nav-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    margin-bottom: 24px;
    position: relative;
}

.pipeline-nav-track {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    padding-bottom: 4px;
}

.pipeline-nav-track::-webkit-scrollbar {
    height: 4px;
}

.pipeline-nav-track::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.pipeline-step-item {
    flex: 1 0 auto;
    min-width: 160px;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #475569;
    font-size: 0.83rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
    scroll-snap-align: start;
    white-space: nowrap;
    touch-action: pan-x;
}

.pipeline-step-item:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #e2e8f0;
}

.pipeline-step-item.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
    border-color: transparent;
}

.pipeline-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pipeline-step-item.active .pipeline-step-num {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.pipeline-badge {
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    flex-shrink: 0;
}

.pipeline-step-item.active .pipeline-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.cand-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    flex-shrink: 0;
}

/* --- 7. Mobile Responsive Listing Overrides --- */
@media (max-width: 768px) {
    .erp-stat-card,
    .metric-kpi-card {
        padding: 12px 14px;
    }
    .metric-icon-wrap {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        border-radius: 8px;
    }
    .metric-num {
        font-size: 1.4rem;
    }
    .metric-label {
        font-size: 0.7rem;
    }
    .pipeline-step-item {
        min-width: 145px;
        padding: 7px 10px;
        font-size: 0.78rem;
    }
}

@media (max-width: 576px) {
    .recruitment-top-actions {
        width: 100% !important;
    }
    .recruitment-top-actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* --- 8. ERP Common Controller & Table UI Utility Classes --- */

/* Action / Icon Buttons */
.erp-btn-icon-30 {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Status / Action Dropdown Menus */
.erp-dropdown-menu-sm {
    font-size: 12.5px !important;
    min-width: 140px !important;
    border-radius: 8px !important;
    z-index: 1060 !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.erp-dropdown-menu-md {
    font-size: 13px !important;
    min-width: 170px !important;
    border-radius: 10px !important;
    z-index: 1060 !important;
    padding: 6px !important;
}

.erp-dropdown-menu-lg {
    font-size: 13px !important;
    min-width: 190px !important;
    border-radius: 10px !important;
    z-index: 1060 !important;
    padding: 6px !important;
}

/* Truncation & Max Width Constraints */
.erp-badge-truncate {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-truncate-220 {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-truncate-140 {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-truncate-130 {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-truncate-110 {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Typography & Dots */
.erp-fs-10 {
    font-size: 10px !important;
}

.erp-fs-11 {
    font-size: 11px !important;
}

.erp-fs-12 {
    font-size: 12px !important;
}

.erp-fs-13 {
    font-size: 13px !important;
}

.erp-actions-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.erp-btn-action-icon-28 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.erp-btn-action-default {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    color: #475569 !important;
}
.erp-btn-action-default:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
}

.erp-btn-action-primary {
    border: 1px solid #c7d2fe !important;
    background: #eef2ff !important;
    color: #4f46e5 !important;
    cursor: pointer !important;
}
.erp-btn-action-primary:hover {
    background: #e0e7ff !important;
    color: #4338ca !important;
}

.erp-btn-action-danger {
    border: 1px solid #fecaca !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
}
.erp-btn-action-danger:hover {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

.erp-btn-action-status-btn {
    background: #fff !important;
    color: #16a34a !important;
    border: 1px solid #16a34a !important;
    border-radius: 6px !important;
    padding: 3px 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    height: 28px !important;
}
.erp-btn-action-status-btn:hover {
    background: #f0fdf4 !important;
}

.erp-status-dot-6 {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.erp-status-dot-8 {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* Dynamic Status Button Pill & Badge */
.erp-status-btn-pill {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.erp-status-badge-pill {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Standard Status Badge Themes (Pre-configured Semantic Classes) */
.erp-badge-posted,
.erp-badge-active,
.erp-badge-matched,
.erp-badge-open,
.erp-badge-success {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #059669 !important;
    background-color: #d1fae5 !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.erp-badge-posted .erp-status-dot-6,
.erp-badge-active .erp-status-dot-6,
.erp-badge-matched .erp-status-dot-6,
.erp-badge-open .erp-status-dot-6,
.erp-badge-success .erp-status-dot-6 {
    background-color: #059669 !important;
}

.erp-badge-reversal,
.erp-badge-unmatched,
.erp-badge-warning {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #d97706 !important;
    background-color: #fef3c7 !important;
    border: 1px solid #fde68a !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.erp-badge-reversal .erp-status-dot-6,
.erp-badge-unmatched .erp-status-dot-6,
.erp-badge-warning .erp-status-dot-6 {
    background-color: #d97706 !important;
}

.erp-badge-reversed,
.erp-badge-info {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #0284c7 !important;
    background-color: #e0f2fe !important;
    border: 1px solid #bae6fd !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.erp-badge-reversed .erp-status-dot-6,
.erp-badge-info .erp-status-dot-6 {
    background-color: #0284c7 !important;
}

.erp-badge-draft,
.erp-badge-disposed,
.erp-badge-inactive,
.erp-badge-secondary {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background-color: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.erp-badge-draft .erp-status-dot-6,
.erp-badge-disposed .erp-status-dot-6,
.erp-badge-inactive .erp-status-dot-6,
.erp-badge-secondary .erp-status-dot-6 {
    background-color: #64748b !important;
}

.erp-badge-written-off,
.erp-badge-danger {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #dc2626 !important;
    background-color: #fee2e2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.erp-badge-written-off .erp-status-dot-6,
.erp-badge-danger .erp-status-dot-6 {
    background-color: #dc2626 !important;
}

/* Progress Helpers */
.erp-progress-wrap-110 {
    min-width: 110px;
}
.erp-progress-h6 {
    height: 6px !important;
    background-color: #e2e8f0 !important;
    border-radius: 9999px !important;
}
/* Form Action Panel & Buttons */
.erp-form-action-card {
    background-color: var(--admin-surface, #ffffff);
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.erp-form-action-btn {
    height: 38px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.erp-btn-cancel {
    border: 1px solid #cbd5e1 !important;
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.15s ease-in-out;
}
.erp-btn-cancel:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
}

.erp-btn-submit {
    background-color: var(--admin-primary, #2563eb) !important;
    border: 1px solid var(--admin-primary, #2563eb) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2) !important;
    transition: all 0.15s ease-in-out;
}
.erp-btn-submit:hover {
    background-color: var(--admin-primary-dark, #1d4ed8) !important;
    border-color: var(--admin-primary-dark, #1d4ed8) !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3) !important;
}

/* Blog Image Preview Box */
.blog-preview-container {
    background-color: var(--admin-surface-soft, #f8fafc);
    border: 2px dashed var(--admin-border, #cbd5e1);
    border-radius: 8px;
    padding: 12px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.blog-preview-img {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.blog-preview-img-hidden {
    display: none !important;
}

.blog-preview-img-visible {
    display: block !important;
}

/* Blog Content Editor & CKEditor Normal Sizing & FOUC Prevention */
.blog-editor-wrapper {
    position: relative;
    width: 100%;
}

.blog-editor-preload-hidden {
    display: none !important;
}

.editor-skeleton-loader {
    width: 100%;
    background-color: #fafbfc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 13.5px;
    user-select: none;
    box-sizing: border-box;
}

.editor-skeleton-main {
    height: 220px;
}

.editor-skeleton-sub {
    height: 130px;
}

/* CKEditor 5 Custom Styling & Height */
.blog-main-editor-wrap .ck.ck-editor,
.blog-sub-editor-wrap .ck.ck-editor,
.ck.ck-editor {
    width: 100% !important;
    border-radius: 6px !important;
}

.ck.ck-toolbar {
    border-top-left-radius: 6px !important;
    border-top-right-radius: 6px !important;
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.ck-editor__editable_inline {
    border-bottom-left-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
    border-color: #cbd5e1 !important;
}

/* Description / Main Blog Content Editor normal height */
.blog-main-editor-wrap .ck-editor__editable_inline,
#editor + .ck-editor .ck-editor__editable_inline,
#editor ~ .ck-editor .ck-editor__editable_inline {
    min-height: 220px !important;
    max-height: 550px !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    padding: 14px 18px !important;
}

/* AEO & GEO Editors normal height */
.blog-sub-editor-wrap .ck-editor__editable_inline,
#aeoEditor + .ck-editor .ck-editor__editable_inline,
#geoEditor + .ck-editor .ck-editor__editable_inline,
#aeoEditor ~ .ck-editor .ck-editor__editable_inline,
#geoEditor ~ .ck-editor .ck-editor__editable_inline {
    min-height: 130px !important;
    max-height: 350px !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    padding: 12px 14px !important;
}

/* CKEditor 5 is-invalid State & Error Feedback */
.blog-editor-wrapper.is-invalid .ck.ck-editor .ck-toolbar,
.blog-editor-wrapper.is-invalid .ck.ck-editor .ck-editor__editable_inline,
.ck.ck-editor.is-invalid .ck-toolbar,
.ck.ck-editor.is-invalid .ck-editor__editable_inline {
    border-color: #dc3545 !important;
}

.blog-editor-wrapper.is-invalid .ck.ck-editor .ck-editor__editable_inline:focus,
.blog-editor-wrapper.is-invalid .ck.ck-editor .ck-editor__editable_inline.ck-focused,
.ck.ck-editor.is-invalid .ck-editor__editable_inline:focus,
.ck.ck-editor.is-invalid .ck-editor__editable_inline.ck-focused {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.blog-editor-wrapper + .invalid-feedback {
    display: block !important;
    margin-top: 0.35rem;
    font-size: 0.825rem;
    color: #dc3545;
}

/* ==========================================================================
   UNIFIED ERP COMMON UTILITIES & MODULE COMPONENTS
   ========================================================================== */

/* --- Status Pills, Badges & Dots --- */
.erp-status-btn-pill {
    color: var(--status-color, #334155) !important;
    background-color: var(--status-bg, #f1f5f9) !important;
    border: 1px solid var(--status-border, #cbd5e1) !important;
    border-radius: 50rem !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    transition: all 0.15s ease-in-out;
}

.erp-status-btn-pill:hover,
.erp-status-btn-pill:focus {
    color: var(--status-color, #1e293b) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.erp-status-badge-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 3px 9px !important;
    color: var(--status-color, #334155) !important;
    background-color: var(--status-bg, #f1f5f9) !important;
    border: 1px solid var(--status-border, #cbd5e1) !important;
    border-radius: 50rem !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

.erp-status-dot-6 {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    background-color: var(--status-color, currentColor) !important;
}

.erp-status-dot-8 {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    background-color: var(--status-color, currentColor) !important;
}

.erp-status-dot-10 {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    background-color: var(--status-color, currentColor) !important;
}

.erp-dropdown-menu-sm {
    min-width: 130px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}

/* Pre-defined Status Semantic Themes */
.erp-status-published,
.erp-status-active,
.erp-status-completed,
.erp-status-approved,
.erp-status-resolved,
.erp-status-verified,
.erp-status-success {
    --status-color: #059669;
    --status-bg: #d1fae5;
    --status-border: #a7f3d0;
}

.erp-status-draft,
.erp-status-inactive,
.erp-status-pending,
.erp-status-hold,
.erp-status-on-hold,
.erp-status-reopened,
.erp-status-warning {
    --status-color: #d97706;
    --status-bg: #fef3c7;
    --status-border: #fde68a;
}

.erp-status-in-progress,
.erp-status-in_progress,
.erp-status-open,
.erp-status-posted,
.erp-status-info {
    --status-color: #2563eb;
    --status-bg: #dbeafe;
    --status-border: #bfdbfe;
}

.erp-status-archived,
.erp-status-closed,
.erp-status-rejected,
.erp-status-danger {
    --status-color: #dc2626;
    --status-bg: #fee2e2;
    --status-border: #fecaca;
}

/* Individual Dot Status Classes */
.erp-status-dot-published,
.erp-status-dot-active,
.erp-status-dot-completed,
.erp-status-dot-approved,
.erp-status-dot-resolved,
.erp-status-dot-verified,
.erp-status-dot-success,
.erp-dot-green {
    background-color: #059669 !important;
}

.erp-status-dot-draft,
.erp-status-dot-inactive,
.erp-status-dot-pending,
.erp-status-dot-hold,
.erp-status-dot-on-hold,
.erp-status-dot-reopened,
.erp-status-dot-warning,
.erp-dot-yellow,
.erp-dot-amber {
    background-color: #d97706 !important;
}

.erp-status-dot-in-progress,
.erp-status-dot-in_progress,
.erp-status-dot-open,
.erp-status-dot-posted,
.erp-status-dot-info,
.erp-dot-blue {
    background-color: #2563eb !important;
}

.erp-status-dot-archived,
.erp-status-dot-closed,
.erp-status-dot-rejected,
.erp-status-dot-danger,
.erp-dot-red {
    background-color: #dc2626 !important;
}

.erp-status-dot-gray,
.erp-dot-gray {
    background-color: #94a3b8 !important;
}

.erp-dot-purple {
    background-color: #9333ea !important;
}

/* Feature Badges */
.erp-badge-llmo,
.erp-badge-purple {
    background-color: #f3e8ff !important;
    color: #7e22ce !important;
    border: 1px solid #e9d5ff !important;
}

.erp-badge-aeo,
.erp-badge-cyan {
    background-color: #ecfeff !important;
    color: #0891b2 !important;
    border: 1px solid #cffafe !important;
}

.erp-badge-geo,
.erp-badge-emerald {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #d1fae5 !important;
}

/* Bug Priority & Severity Classes */
.erp-priority-critical,
.erp-severity-critical,
.erp-priority-urgent,
.erp-severity-blocker {
    --status-color: #991b1b;
    --status-bg: #fee2e2;
    --status-border: #f87171;
}

.erp-priority-high,
.erp-severity-major {
    --status-color: #c2410c;
    --status-bg: #ffedd5;
    --status-border: #fdba74;
}

.erp-priority-medium,
.erp-severity-minor {
    --status-color: #b45309;
    --status-bg: #fef3c7;
    --status-border: #fde68a;
}

.erp-priority-low,
.erp-severity-trivial {
    --status-color: #15803d;
    --status-bg: #dcfce7;
    --status-border: #86efac;
}

.erp-badge-priority-critical,
.erp-badge-severity-critical,
.erp-badge-priority-urgent,
.erp-badge-severity-blocker {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

.erp-badge-priority-high,
.erp-badge-severity-major {
    background-color: #ea580c !important;
    color: #ffffff !important;
}

.erp-badge-priority-medium,
.erp-badge-severity-minor {
    background-color: #d97706 !important;
    color: #ffffff !important;
}

.erp-badge-priority-low,
.erp-badge-severity-trivial {
    background-color: #16a34a !important;
    color: #ffffff !important;
}

/* --- Avatars & Circles --- */
.erp-avatar-xs {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
}

.erp-avatar-sm {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
}

.erp-avatar-36 {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
}

.erp-avatar-44 {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
}

.erp-avatar-58 {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
}

.erp-avatar-initials {
    font-weight: 600 !important;
    color: #ffffff !important;
}

/* Avatar Color Palette */
.erp-avatar-color-0 { background-color: #2563eb !important; }
.erp-avatar-color-1 { background-color: #7c3aed !important; }
.erp-avatar-color-2 { background-color: #059669 !important; }
.erp-avatar-color-3 { background-color: #d97706 !important; }
.erp-avatar-color-4 { background-color: #dc2626 !important; }
.erp-avatar-color-5 { background-color: #0891b2 !important; }

/* --- Progress Bars --- */
.erp-progress-track-sm {
    height: 5px !important;
    background-color: #e2e8f0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

.erp-progress-track-md {
    height: 8px !important;
    background-color: #e2e8f0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.erp-progress-track-lg {
    height: 12px !important;
    background-color: #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.erp-progress-fill {
    height: 100% !important;
    border-radius: inherit !important;
    transition: width 0.3s ease !important;
}

/* Progress Percent Utilities (0-100% step 5) */
.erp-prog-0   { width: 0% !important; }
.erp-prog-5   { width: 5% !important; }
.erp-prog-10  { width: 10% !important; }
.erp-prog-15  { width: 15% !important; }
.erp-prog-20  { width: 20% !important; }
.erp-prog-25  { width: 25% !important; }
.erp-prog-30  { width: 30% !important; }
.erp-prog-35  { width: 35% !important; }
.erp-prog-40  { width: 40% !important; }
.erp-prog-45  { width: 45% !important; }
.erp-prog-50  { width: 50% !important; }
.erp-prog-55  { width: 55% !important; }
.erp-prog-60  { width: 60% !important; }
.erp-prog-65  { width: 65% !important; }
.erp-prog-70  { width: 70% !important; }
.erp-prog-75  { width: 75% !important; }
.erp-prog-80  { width: 80% !important; }
.erp-prog-85  { width: 85% !important; }
.erp-prog-90  { width: 90% !important; }
.erp-prog-95  { width: 95% !important; }
.erp-prog-100 { width: 100% !important; }

/* --- Sizing Utilities --- */
.erp-w-36 { width: 36px !important; }
.erp-w-44 { width: 44px !important; }
.erp-w-70 { width: 70px !important; }
.erp-w-80 { width: 80px !important; }
.erp-w-100 { width: 100px !important; }
.erp-w-120 { width: 120px !important; }
.erp-w-140 { width: 140px !important; }
.erp-w-150 { width: 150px !important; }
.erp-w-200 { width: 200px !important; }
.erp-w-220 { width: 220px !important; }

.erp-max-w-140 { max-width: 140px !important; }
.erp-max-w-150 { max-width: 150px !important; }
.erp-max-w-200 { max-width: 200px !important; }
.erp-max-w-220 { max-width: 220px !important; }

.erp-min-w-95 { min-width: 95px !important; }
.erp-min-w-210 { min-width: 210px !important; }

.erp-h-36 { height: 36px !important; }
.erp-h-44 { height: 44px !important; }

/* --- Typography & Interaction Utilities --- */
.erp-fs-10 { font-size: 10px !important; }
.erp-fs-10-5 { font-size: 10.5px !important; }
.erp-fs-11 { font-size: 11px !important; }
.erp-fs-11-5 { font-size: 11.5px !important; }
.erp-fs-12 { font-size: 12px !important; }
.erp-fs-13 { font-size: 13px !important; }
.erp-fs-14 { font-size: 14px !important; }

.erp-line-height-1 { line-height: 1 !important; }
.erp-cursor-pointer { cursor: pointer !important; }
.erp-cursor-not-allowed { cursor: not-allowed !important; }
.erp-text-muted-xs { font-size: 11px !important; color: #64748b !important; }
.erp-subtext { font-size: 11.5px !important; color: #64748b !important; }

.perm-card {
    cursor: pointer;
}

.border-dashed {
    border-style: dashed !important;
}

.yn-toggle .btn-check:checked + .btn {
    background: #212529 !important;
    border-color: #212529 !important;
    color: #ffffff !important;
}

.erp-filter-chevron {
    display: inline-block;
    transition: transform 0.2s ease;
}

.erp-rotate-180 {
    transform: rotate(180deg) !important;
}

/* --- Module Components (Tasks, Accounting, Bugs, Projects, Recruitment, Blogs) --- */
.erp-card-header-clean {
    padding: 1rem 1.25rem;
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
}

.erp-checkpoint-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background-color: #ffffff;
    transition: border-color 0.15s ease;
}

.erp-checkpoint-item:hover {
    border-color: #cbd5e1;
}

.erp-summary-box {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    background-color: #f8fafc;
}

/* Widths in Pixels */
.erp-w-26  { width: 26px !important; }
.erp-w-28  { width: 28px !important; }
.erp-w-30  { width: 30px !important; }
.erp-w-32  { width: 32px !important; }
.erp-w-36  { width: 36px !important; }
.erp-w-38  { width: 38px !important; }
.erp-w-40  { width: 40px !important; }
.erp-w-44  { width: 44px !important; }
.erp-w-45  { width: 45px !important; }
.erp-w-48  { width: 48px !important; }
.erp-w-50  { width: 50px !important; }
.erp-w-58  { width: 58px !important; }
.erp-w-60  { width: 60px !important; }
.erp-w-64  { width: 64px !important; }
.erp-w-70  { width: 70px !important; }
.erp-w-76  { width: 76px !important; }
.erp-w-80  { width: 80px !important; }
.erp-w-85  { width: 85px !important; }
.erp-w-90  { width: 90px !important; }
.erp-w-100 { width: 100px !important; }
.erp-w-110 { width: 110px !important; }
.erp-w-120 { width: 120px !important; }
.erp-w-130 { width: 130px !important; }
.erp-w-140 { width: 140px !important; }
.erp-w-150 { width: 150px !important; }
.erp-w-160 { width: 160px !important; }
.erp-w-170 { width: 170px !important; }
.erp-w-180 { width: 180px !important; }
.erp-w-200 { width: 200px !important; }
.erp-w-220 { width: 220px !important; }
.erp-w-240 { width: 240px !important; }
.erp-w-260 { width: 260px !important; }
.erp-w-280 { width: 280px !important; }
.erp-w-300 { width: 300px !important; }
.erp-w-320 { width: 320px !important; }
.erp-w-360 { width: 360px !important; }
.erp-w-400 { width: 400px !important; }

/* Widths in Percentage */
.erp-w-10p { width: 10% !important; }
.erp-w-12p { width: 12% !important; }
.erp-w-14p { width: 14% !important; }
.erp-w-15p { width: 15% !important; }
.erp-w-18p { width: 18% !important; }
.erp-w-20p { width: 20% !important; }
.erp-w-22p { width: 22% !important; }
.erp-w-24p { width: 24% !important; }
.erp-w-25p { width: 25% !important; }
.erp-w-26p { width: 26% !important; }
.erp-w-28p { width: 28% !important; }
.erp-w-30p { width: 30% !important; }
.erp-w-32p { width: 32% !important; }
.erp-w-35p { width: 35% !important; }
.erp-w-38p { width: 38% !important; }
.erp-w-40p { width: 40% !important; }
.erp-w-45p { width: 45% !important; }
.erp-w-50p { width: 50% !important; }
.erp-w-60p { width: 60% !important; }
.erp-w-70p { width: 70% !important; }
.erp-w-75p { width: 75% !important; }
.erp-w-80p { width: 80% !important; }
.erp-w-100p { width: 100% !important; }

/* Heights */
.erp-h-6  { height: 6px !important; }
.erp-h-8  { height: 8px !important; }
.erp-h-10 { height: 10px !important; }
.erp-h-24 { height: 24px !important; }
.erp-h-26 { height: 26px !important; }
.erp-h-28 { height: 28px !important; }
.erp-h-30 { height: 30px !important; }
.erp-h-32 { height: 32px !important; }
.erp-h-36 { height: 36px !important; }
.erp-h-38 { height: 38px !important; }
.erp-h-40 { height: 40px !important; }
.erp-h-44 { height: 44px !important; }
.erp-h-48 { height: 48px !important; }
.erp-h-50 { height: 50px !important; }
.erp-h-58 { height: 58px !important; }
.erp-h-64 { height: 64px !important; }

/* Square sizing (width & height) */
.erp-wh-6  { width: 6px !important; height: 6px !important; }
.erp-wh-7  { width: 7px !important; height: 7px !important; }
.erp-wh-8  { width: 8px !important; height: 8px !important; }
.erp-wh-10 { width: 10px !important; height: 10px !important; }
.erp-wh-12 { width: 12px !important; height: 12px !important; }
.erp-wh-14 { width: 14px !important; height: 14px !important; }
.erp-wh-16 { width: 16px !important; height: 16px !important; }
.erp-wh-20 { width: 20px !important; height: 20px !important; }
.erp-wh-24 { width: 24px !important; height: 24px !important; }
.erp-wh-26 { width: 26px !important; height: 26px !important; }
.erp-wh-28 { width: 28px !important; height: 28px !important; }
.erp-wh-30 { width: 30px !important; height: 30px !important; }
.erp-wh-32 { width: 32px !important; height: 32px !important; }
.erp-wh-36 { width: 36px !important; height: 36px !important; }
.erp-wh-38 { width: 38px !important; height: 38px !important; }
.erp-wh-40 { width: 40px !important; height: 40px !important; }
.erp-wh-44 { width: 44px !important; height: 44px !important; }
.erp-wh-48 { width: 48px !important; height: 48px !important; }
.erp-wh-50 { width: 50px !important; height: 50px !important; }
.erp-wh-58 { width: 58px !important; height: 58px !important; }
.erp-wh-64 { width: 64px !important; height: 64px !important; }
.erp-wh-72 { width: 72px !important; height: 72px !important; }
.erp-wh-80 { width: 80px !important; height: 80px !important; }

/* Min Widths */
.erp-min-w-0   { min-width: 0 !important; }
.erp-min-w-95  { min-width: 95px !important; }
.erp-min-w-110 { min-width: 110px !important; }
.erp-min-w-120 { min-width: 120px !important; }
.erp-min-w-130 { min-width: 130px !important; }
.erp-min-w-140 { min-width: 140px !important; }
.erp-min-w-150 { min-width: 150px !important; }
.erp-min-w-160 { min-width: 160px !important; }
.erp-min-w-170 { min-width: 170px !important; }
.erp-min-w-180 { min-width: 180px !important; }
.erp-min-w-200 { min-width: 200px !important; }
.erp-min-w-210 { min-width: 210px !important; }
.erp-min-w-220 { min-width: 220px !important; }
.erp-min-w-230 { min-width: 230px !important; }
.erp-min-w-240 { min-width: 240px !important; }
.erp-min-w-250 { min-width: 250px !important; }
.erp-min-w-260 { min-width: 260px !important; }
.erp-min-w-300 { min-width: 300px !important; }
.erp-min-w-400 { min-width: 400px !important; }
.erp-min-w-500 { min-width: 500px !important; }
.erp-min-w-600 { min-width: 600px !important; }
.erp-min-w-700 { min-width: 700px !important; }
.erp-min-w-800 { min-width: 800px !important; }

/* Max Widths */
.erp-max-w-95   { max-width: 95px !important; }
.erp-max-w-120  { max-width: 120px !important; }
.erp-max-w-140  { max-width: 140px !important; }
.erp-max-w-150  { max-width: 150px !important; }
.erp-max-w-170  { max-width: 170px !important; }
.erp-max-w-180  { max-width: 180px !important; }
.erp-max-w-200  { max-width: 200px !important; }
.erp-max-w-220  { max-width: 220px !important; }
.erp-max-w-240  { max-width: 240px !important; }
.erp-max-w-250  { max-width: 250px !important; }
.erp-max-w-280  { max-width: 280px !important; }
.erp-max-w-300  { max-width: 300px !important; }
.erp-max-w-320  { max-width: 320px !important; }
.erp-max-w-350  { max-width: 350px !important; }
.erp-max-w-400  { max-width: 400px !important; }
.erp-max-w-420  { max-width: 420px !important; }
.erp-max-w-450  { max-width: 450px !important; }
.erp-max-w-500  { max-width: 500px !important; }
.erp-max-w-550  { max-width: 550px !important; }
.erp-max-w-580  { max-width: 580px !important; }
.erp-max-w-600  { max-width: 600px !important; }
.erp-max-w-650  { max-width: 650px !important; }
.erp-max-w-700  { max-width: 700px !important; }
.erp-max-w-800  { max-width: 800px !important; }
.erp-max-w-100p { max-width: 100% !important; }

/* Max Heights */
.erp-max-h-40  { max-height: 40px !important; }
.erp-max-h-120 { max-height: 120px !important; }
.erp-max-h-130 { max-height: 130px !important; }
.erp-max-h-140 { max-height: 140px !important; }
.erp-max-h-150 { max-height: 150px !important; }
.erp-max-h-200 { max-height: 200px !important; }
.erp-max-h-220 { max-height: 220px !important; }
.erp-max-h-250 { max-height: 250px !important; }
.erp-max-h-300 { max-height: 300px !important; }
.erp-max-h-400 { max-height: 400px !important; }
.erp-max-h-500 { max-height: 500px !important; }

/* Font Sizes */
.erp-fs-8    { font-size: 8px !important; }
.erp-fs-9    { font-size: 9px !important; }
.erp-fs-9-5  { font-size: 9.5px !important; }
.erp-fs-10   { font-size: 10px !important; }
.erp-fs-10-5 { font-size: 10.5px !important; }
.erp-fs-11   { font-size: 11px !important; }
.erp-fs-11-5 { font-size: 11.5px !important; }
.erp-fs-12   { font-size: 12px !important; }
.erp-fs-12-5 { font-size: 12.5px !important; }
.erp-fs-13   { font-size: 13px !important; }
.erp-fs-13-5 { font-size: 13.5px !important; }
.erp-fs-14   { font-size: 14px !important; }
.erp-fs-15   { font-size: 15px !important; }
.erp-fs-16   { font-size: 16px !important; }
.erp-fs-18   { font-size: 18px !important; }
.erp-fs-20   { font-size: 20px !important; }
.erp-fs-22   { font-size: 22px !important; }
.erp-fs-24   { font-size: 24px !important; }

/* Letter Spacing & Line Height */
.erp-letter-spacing-sm { letter-spacing: 0.5px !important; }
.erp-letter-spacing-md { letter-spacing: 0.6px !important; }
.erp-letter-spacing-lg { letter-spacing: 1px !important; }

.erp-line-height-1   { line-height: 1 !important; }
.erp-line-height-1-2 { line-height: 1.2 !important; }
.erp-line-height-1-4 { line-height: 1.4 !important; }
.erp-line-height-1-5 { line-height: 1.5 !important; }
.erp-line-height-1-6 { line-height: 1.6 !important; }

/* Z-Index */
.erp-z-1    { z-index: 1 !important; }
.erp-z-2    { z-index: 2 !important; }
.erp-z-1050 { z-index: 1050 !important; }
.erp-z-1060 { z-index: 1060 !important; }
.erp-z-1070 { z-index: 1070 !important; }
.erp-z-1080 { z-index: 1080 !important; }
.erp-z-1090 { z-index: 1090 !important; }

/* Overflow & Text Wrap */
.erp-overflow-y-auto { overflow-y: auto !important; }
.erp-overflow-x-auto { overflow-x: auto !important; }
.erp-overflow-hidden { overflow: hidden !important; }
.erp-text-break      { word-break: break-word !important; overflow-wrap: anywhere !important; }

/* Rounded Helpers */
.erp-rounded-6    { border-radius: 6px !important; }
.erp-rounded-8    { border-radius: 8px !important; }
.erp-rounded-10   { border-radius: 10px !important; }
.erp-rounded-12   { border-radius: 12px !important; }
.erp-rounded-pill { border-radius: 999px !important; }

/* Modal Max Widths */
.erp-modal-max-w-420 { max-width: 420px !important; }
.erp-modal-max-w-450 { max-width: 450px !important; }
.erp-modal-max-w-500 { max-width: 500px !important; }
.erp-modal-max-w-580 { max-width: 580px !important; }
.erp-modal-max-w-650 { max-width: 650px !important; }

/* Color Palettes */
.text-purple { color: #8b5cf6 !important; }
.text-teal   { color: #0d9488 !important; }
.text-navy   { color: #0b2e77 !important; }
.text-indigo { color: #4f46e5 !important; }
.text-emerald{ color: #10b981 !important; }
.text-rose   { color: #e11d48 !important; }
.text-amber  { color: #d97706 !important; }
.text-cyan   { color: #0284c7 !important; }
.text-slate  { color: #334155 !important; }

.bg-purple-subtle  { background-color: rgba(139, 92, 246, 0.12) !important; }
.bg-teal-subtle    { background-color: rgba(13, 148, 136, 0.12) !important; }
.bg-navy-subtle    { background-color: rgba(11, 46, 119, 0.12) !important; }
.bg-indigo-subtle  { background-color: rgba(79, 70, 229, 0.12) !important; }
.bg-emerald-subtle { background-color: rgba(16, 185, 129, 0.12) !important; }
.bg-rose-subtle    { background-color: rgba(225, 29, 72, 0.12) !important; }
.bg-amber-subtle   { background-color: rgba(217, 119, 6, 0.12) !important; }
.bg-cyan-subtle    { background-color: rgba(2, 132, 199, 0.12) !important; }

.btn-purple {
    background-color: #9333ea !important;
    border-color: #9333ea !important;
    color: #ffffff !important;
}
.btn-purple:hover {
    background-color: #7e22ce !important;
    border-color: #7e22ce !important;
    color: #ffffff !important;
}

.btn-navy {
    background-color: #0b2e77 !important;
    border-color: #0b2e77 !important;
    color: #ffffff !important;
}

.btn-teal {
    background-color: #0d9488 !important;
    border-color: #0d9488 !important;
    color: #ffffff !important;
}

.erp-metric-purple { background-color: #f3e8ff !important; color: #9333ea !important; }
.erp-metric-teal   { background-color: #ccfbf1 !important; color: #0d9488 !important; }
.erp-metric-indigo { background-color: #e0e7ff !important; color: #4338ca !important; }
.erp-metric-emerald{ background-color: #d1fae5 !important; color: #059669 !important; }
.erp-metric-amber  { background-color: #fef3c7 !important; color: #d97706 !important; }
.erp-metric-rose   { background-color: #ffe4e6 !important; color: #e11d48 !important; }
.erp-metric-cyan   { background-color: #cffafe !important; color: #0891b2 !important; }
.erp-metric-navy   { background-color: #e0e7ff !important; color: #0b2e77 !important; }

/* Module Topbars & Badges */
.task-topbar, .bug-topbar, .project-topbar {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: .6rem;
    padding: .9rem 1rem;
}

.task-code, .bug-code, .project-code {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #e9ecef;
    font-size: .8rem;
    letter-spacing: .5px;
    padding: .35rem .6rem;
    border-radius: .4rem;
}

.btn-pill {
    border-radius: .6rem;
    padding: .45rem .9rem;
    font-weight: 600;
    font-size: .84rem;
}

.btn-ghost {
    background: #fff;
    border: 1px solid #e9ecef;
    color: #212529;
}
.btn-ghost:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #212529;
}

.btn-timer-start {
    background: #eafaf1;
    border: 1px solid #b7ebc9;
    color: #146c43;
}
.btn-timer-start:hover {
    background: #d8f5e5;
    color: #0f5132;
}

.btn-quick-add { flex: 0 0 auto; }

.task-tabs .nav-link, .bug-tabs .nav-link, .project-tabs .nav-link {
    border-radius: .55rem;
    color: #212529;
    font-size: .88rem;
}
.task-tabs .nav-link:hover, .bug-tabs .nav-link:hover, .project-tabs .nav-link:hover {
    background: #f8f9fa;
}
.task-tabs .nav-link.active, .bug-tabs .nav-link.active, .project-tabs .nav-link.active {
    background: #111827;
    color: #fff;
}

.tab-count {
    background: #eef0f3;
    color: #495057;
    border-radius: 999px;
    font-size: .7rem;
    padding: .15rem .45rem;
    vertical-align: middle;
}
.task-tabs .nav-link.active .tab-count,
.bug-tabs .nav-link.active .tab-count,
.project-tabs .nav-link.active .tab-count {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.task-tabs-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.task-tabs-container::-webkit-scrollbar {
    display: none;
}

.task-desc-body {
    word-break: break-word;
    overflow-wrap: anywhere;
}
.task-desc-body img,
.task-desc-body table,
.task-desc-body pre {
    max-width: 100% !important;
    height: auto;
}

.stat-label {
    font-size: 10px;
    letter-spacing: .6px;
    font-weight: 600;
}

/* Checkpoints Components */
.cp-row {
    transition: background-color 0.15s ease;
}
.cp-row:hover {
    background-color: #f8fafc;
}
.cp-row.is-done .cp-title {
    color: #94a3b8 !important;
    text-decoration: line-through;
}
.cp-title, .cp-desc {
    word-break: break-word;
    overflow-wrap: anywhere;
}
.cp-actions-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cp-summary-item {
    font-size: .8125rem;
    line-height: 1.6;
}
.cp-summary-item .cp-icon-done {
    color: #198754;
}
.cp-summary-item .cp-icon-pending {
    color: #adb5bd;
}

@media (max-width: 767.98px) {
    .cp-row {
        flex-wrap: wrap !important;
        padding: 10px 0 !important;
        position: relative;
    }
    .cp-row .form-check {
        margin-top: 2px !important;
        flex-shrink: 0;
    }
    .cp-row .flex-grow-1 {
        flex: 1 1 calc(100% - 36px) !important;
        min-width: 0 !important;
    }
    .cp-row .cp-actions-wrap {
        width: 100% !important;
        margin-top: 8px !important;
        padding-left: 28px !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        white-space: normal !important;
    }
    .cp-row .cp-actions-wrap .dropdown,
    .cp-row .cp-actions-wrap .cp-assign-wrap {
        flex-shrink: 0;
    }
    #cpPageSizeWrap {
        margin-left: 0 !important;
        margin-top: 4px;
        width: 100%;
    }
    .task-topbar {
        padding: 0.75rem !important;
    }
    .task-topbar-actions {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 6px !important;
    }
    .task-topbar-actions .btn,
    .task-topbar-actions .dropdown,
    .task-topbar-actions form {
        width: 100%;
    }
    .task-topbar-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }
    .task-tabs {
        flex-wrap: nowrap !important;
    }
    .task-tabs .nav-link {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.82rem !important;
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .task-topbar-actions {
        grid-template-columns: 1fr 1fr;
    }
    .task-topbar-actions .badge {
        grid-column: 1 / -1;
        justify-content: center;
    }
    .task-topbar-title-wrap h1 {
        font-size: 1.15rem !important;
    }
    .bug-topbar {
        padding: .75rem .85rem;
    }
    .bug-topbar-actions {
        width: 100% !important;
    }
    .bug-topbar-actions .btn-pill,
    .bug-topbar-actions form {
        flex: 1 1 calc(50% - 0.5rem) !important;
    }
    .bug-tabs .nav-link {
        padding: .35rem .75rem;
        font-size: .82rem;
    }
}

/* Project & Form Common Classes */
.form-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}
.project-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.required::after {
    content: " *";
    color: #ef4444;
}

.dashboard-bg {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 30px;
}
.card-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}
.card-title-sm {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.badge-soft-primary {
    background-color: #eff6ff;
    color: #3b82f6;
    border: 1px solid #bfdbfe;
}
.badge-soft-secondary {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.tab-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
}
.nav-tabs-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    flex-grow: 1;
    padding: 0 5px;
}
.nav-tabs-wrapper::-webkit-scrollbar {
    display: none;
}
.tab-item {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}
.tab-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}
.tab-item.active {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    font-weight: 600;
}
.slider-arrow {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}
.slider-arrow:hover {
    background: #f8fafc;
    color: #0f172a;
}
.mini-stat-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
}
.mini-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.section-heading {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}
.text-body-sm {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}
.meta-list {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
    margin-top: 15px;
}
.meta-list span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Accounting Guide & Reports Components */
.report-mini-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0B2E77;
    border-radius: 8px;
    padding: 14px 16px;
    transition: all 0.2s ease;
}
.report-mini-card:hover {
    box-shadow: 0 6px 16px rgba(11,46,119,0.08);
    transform: translateY(-2px);
}
.timeline-step-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.kpi-icon-bubble {
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.erp-border-l-emerald { border-left-color: #10b981 !important; }
.erp-border-l-navy    { border-left-color: #0B2E77 !important; }
.erp-border-l-slate   { border-left-color: #334155 !important; }
.erp-border-l-purple  { border-left-color: #8b5cf6 !important; }
.erp-border-l-rose    { border-left-color: #e11d48 !important; }
.erp-border-l-cyan    { border-left-color: #0284c7 !important; }









/* Extra Timeline & Layout Utilities */
.erp-timeline-dot {
    width: 9px !important;
    height: 9px !important;
    left: -22px !important;
    top: 18px !important;
}
.erp-timeline-line {
    width: 2px !important;
    left: -18px !important;
    top: 24px !important;
    bottom: 0 !important;
}
.erp-top-neg-20 { top: -20px !important; }
.erp-font-serif { font-family: serif !important; }

/* Accounting, Reports & Modal Utilities */
.erp-clamp-stat-val {
    font-size: clamp(1.2rem, 1.8vw, 1.55rem) !important;
    word-break: break-word !important;
}
.erp-search-icon-pos {
    left: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}
.erp-border-t-navy { border-top-color: #0B2E77 !important; }
.erp-bg-navy { background-color: #0B2E77 !important; }
.erp-bg-navy-dark { background: #0B2E77 !important; color: #ffffff !important; }
.erp-badge-navy {
    background-color: #eef2ff !important;
    color: #0B2E77 !important;
    border: 1px solid #c7d2fe !important;
    font-weight: 600 !important;
}
.erp-box-navy {
    background: #eef2ff !important;
    border-color: #c7d2fe !important;
}
.erp-modal-content-rounded {
    border-radius: 16px !important;
    overflow: hidden !important;
}
.erp-sig-img-preview {
    max-height: 54px !important;
    max-width: 220px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08)) !important;
}
.erp-sig-img-modal {
    max-height: 60px !important;
    max-width: 220px !important;
    object-fit: contain !important;
}
.erp-img-preview-sm {
    max-height: 140px !important;
    max-width: 100% !important;
    border-radius: 6px !important;
}
.erp-h-180 { height: 180px !important; }
.erp-h-290 { height: 290px !important; }
.erp-max-h-110 { max-height: 110px !important; }
.erp-w-11p { width: 11% !important; }
.erp-w-16p { width: 16% !important; }
.erp-w-55p { width: 55% !important; }
.erp-min-w-550 { min-width: 550px !important; }
.erp-min-w-620 { min-width: 620px !important; }
.erp-max-w-210 { max-width: 210px !important; }
.erp-max-w-480 { max-width: 480px !important; }
.erp-sticky-top-1 { top: 1rem !important; }
.erp-border-navy { border-color: #0B2E77 !important; }
.erp-bg-slate-dark { background: #0f172a !important; color: #ffffff !important; }
.erp-bg-navy-subtle { background-color: rgba(11, 46, 119, 0.08) !important; }
.erp-bg-gradient-slate { background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%) !important; }
.erp-radius-r-8 { border-radius: 0 8px 8px 0 !important; }
.erp-rounded-14 { border-radius: 14px !important; }
.erp-mb-6 { margin-bottom: 6px !important; }
.erp-opacity-85 { opacity: 0.85 !important; }

/* ==========================================================================
   ACCOUNTING MODULE COMPONENT STYLES (Assets, Budgets, Recon, Reports, Settings, etc.)
   ========================================================================== */

/* ==========================================================
   Styles from: resources/views/erp/accounting/assets/form.blade.php
   ========================================================== */
:root {
                --recon-navy: #0B2E77;
                --recon-slate: #1e293b;
                --recon-primary: #0B2E77;
                --recon-primary-hover: #081f52;
                --recon-emerald: #10b981;
                --recon-rose: #f43f5e;
                --recon-amber: #f59e0b;
                --recon-sky: #0ea5e9;
                --recon-purple: #8b5cf6;
                --recon-bg-soft: #f8fafc;
            }

            .asset-header-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 1.25rem 1.5rem;
                box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
                margin-bottom: 1.5rem;
            }

            .kpi-icon-bubble {
                width: 42px;
                height: 42px;
                border-radius: 10px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-size: 1.25rem;
            }

            .asset-form-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
                padding: 1.5rem;
                margin-bottom: 1.5rem;
            }

            .btn-recon-primary {
                background: #0B2E77;
                color: #ffffff;
                border: 1px solid #0B2E77;
                font-weight: 600;
                font-size: 13px;
                border-radius: 8px;
                padding: 0.5rem 1.1rem;
                display: inline-flex;
                align-items: center;
                gap: 0.4rem;
                transition: all 0.2s ease;
                text-decoration: none;
            }
            .btn-recon-primary:hover {
                background: #081f52;
                border-color: #081f52;
                color: #ffffff;
                box-shadow: 0 4px 12px rgba(11, 46, 119, 0.2);
            }

            .btn-recon-outline {
                background: #ffffff;
                color: #0B2E77;
                border: 1px solid #cbd5e1;
                font-weight: 600;
                font-size: 13px;
                border-radius: 8px;
                padding: 0.5rem 1.1rem;
                display: inline-flex;
                align-items: center;
                gap: 0.4rem;
                transition: all 0.2s ease;
                text-decoration: none;
            }
            .btn-recon-outline:hover {
                background: #f8fafc;
                border-color: #0B2E77;
                color: #0B2E77;
            }



/* ==========================================================
   Styles from: resources/views/erp/accounting/assets/index.blade.php
   ========================================================== */
:root {
                --recon-navy: #0B2E77;
                --recon-slate: #1e293b;
                --recon-primary: #0B2E77;
                --recon-primary-hover: #081f52;
                --recon-emerald: #10b981;
                --recon-rose: #f43f5e;
                --recon-amber: #f59e0b;
                --recon-sky: #0ea5e9;
                --recon-purple: #8b5cf6;
                --recon-bg-soft: #f8fafc;
            }

            /* Clean Modern Header Card */
            .asset-header-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 1.25rem 1.5rem;
                box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
                margin-bottom: 1.5rem;
            }

            /* KPI Cards Strip */
            .asset-kpi-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 1.25rem 1.4rem;
                transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                position: relative;
                overflow: hidden;
            }
            .asset-kpi-card:hover {
                transform: translateY(-3px);
                box-shadow: 0 14px 24px -6px rgba(15, 23, 42, 0.08);
                border-color: #cbd5e1;
            }
            .asset-kpi-card::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 3.5px;
                background: var(--kpi-accent, var(--recon-primary));
            }
            .asset-kpi-card.accent-primary { --kpi-accent: #0B2E77; }
            .asset-kpi-card.accent-sky { --kpi-accent: #0ea5e9; }
            .asset-kpi-card.accent-amber { --kpi-accent: #f59e0b; }
            .asset-kpi-card.accent-emerald { --kpi-accent: #10b981; }

            .kpi-icon-bubble {
                width: 42px;
                height: 42px;
                border-radius: 10px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-size: 1.25rem;
            }

            /* Main Table Card */
            .asset-main-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
                overflow: hidden;
            }
            .asset-main-card .card-header-recon {
                padding: 1rem 1.25rem;
                background: #ffffff;
                border-bottom: 1px solid #f1f5f9;
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

            /* Table Styling matching standard ERP Task List */
            #assetsTable { width: 100% !important; }
            #assetsTable th, #assetsTable td {
                padding: 7px 10px !important;
                vertical-align: middle !important;
                font-size: 13px !important;
                line-height: 1.35 !important;
            }
            #assetsTable thead th {
                font-weight: 600 !important;
                font-size: 11.5px !important;
                text-transform: uppercase !important;
                letter-spacing: 0.4px !important;
                white-space: nowrap !important;
                background-color: #f8f9fa !important;
                color: #495057 !important;
                border-bottom: 2px solid #e2e8f0 !important;
            }
            #assetsTable tbody tr:hover {
                background: #f8fafc;
            }

            /* Action Dropdown Menu Styling matching Task/Recruitment */
            .recruitment-action-menu {
                border-radius: 10px !important;
                border: 1px solid #e2e8f0 !important;
                box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 4px 10px -2px rgba(15, 23, 42, 0.05) !important;
                padding: 6px !important;
                min-width: 190px !important;
                z-index: 1060 !important;
            }
            .recruitment-action-menu .dropdown-item {
                border-radius: 6px !important;
                padding: 6px 10px !important;
                font-size: 12.5px !important;
                font-weight: 500 !important;
                color: #334155 !important;
                transition: all 0.15s ease !important;
                outline: none !important;
            }
            .recruitment-action-menu .dropdown-item:hover,
            .recruitment-action-menu .dropdown-item:focus {
                background-color: #f1f5f9 !important;
                color: #0f172a !important;
                outline: none !important;
                box-shadow: none !important;
            }
            .recruitment-action-menu .dropdown-item.item-danger {
                color: #dc2626 !important;
            }
            .recruitment-action-menu .dropdown-item.item-danger:hover,
            .recruitment-action-menu .dropdown-item.item-danger:focus {
                background-color: #fef2f2 !important;
                color: #b91c1c !important;
            }

            /* Action Buttons */
            .btn-recon-primary {
                background: #0B2E77;
                color: #ffffff;
                border: 1px solid #0B2E77;
                font-weight: 600;
                font-size: 13px;
                border-radius: 8px;
                padding: 0.45rem 0.95rem;
                display: inline-flex;
                align-items: center;
                gap: 0.4rem;
                transition: all 0.2s ease;
                text-decoration: none;
            }
            .btn-recon-primary:hover {
                background: #081f52;
                border-color: #081f52;
                color: #ffffff;
                box-shadow: 0 4px 12px rgba(11, 46, 119, 0.2);
            }

            .btn-recon-outline {
                background: #ffffff;
                color: #0B2E77;
                border: 1px solid #cbd5e1;
                font-weight: 600;
                font-size: 13px;
                border-radius: 8px;
                padding: 0.45rem 0.95rem;
                display: inline-flex;
                align-items: center;
                gap: 0.4rem;
                transition: all 0.2s ease;
                text-decoration: none;
            }
            .btn-recon-outline:hover {
                background: #f8fafc;
                border-color: #0B2E77;
                color: #0B2E77;
            }

            /* Modal Styling */
            .modal-header-recon {
                background: linear-gradient(135deg, #0B2E77 0%, #174299 100%);
                color: #ffffff;
                border-bottom: none;
                padding: 1.25rem 1.5rem;
            }
            .modal-header-recon .modal-title {
                color: #ffffff;
                font-weight: 700;
                font-size: 15px;
            }
            .modal-header-recon .btn-close {
                filter: brightness(0) invert(1);
                opacity: 0.8;
            }
            .modal-header-recon .btn-close:hover {
                opacity: 1;
            }



/* ==========================================================
   Styles from: resources/views/erp/accounting/assets/show.blade.php
   ========================================================== */
:root {
                --recon-navy: #0B2E77;
                --recon-slate: #1e293b;
                --recon-primary: #0B2E77;
                --recon-primary-hover: #081f52;
                --recon-emerald: #10b981;
                --recon-rose: #f43f5e;
                --recon-amber: #f59e0b;
                --recon-sky: #0ea5e9;
                --recon-purple: #8b5cf6;
                --recon-bg-soft: #f8fafc;
            }

            /* Clean Modern Header Card */
            .asset-header-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 1.25rem 1.5rem;
                box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
                margin-bottom: 1.5rem;
            }

            .kpi-icon-bubble {
                width: 44px;
                height: 44px;
                border-radius: 12px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-size: 1.35rem;
            }

            /* 4-KPI Cards Strip */
            .asset-kpi-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 1.25rem 1.4rem;
                transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                position: relative;
                overflow: hidden;
            }
            .asset-kpi-card:hover {
                transform: translateY(-3px);
                box-shadow: 0 14px 24px -6px rgba(15, 23, 42, 0.08);
                border-color: #cbd5e1;
            }
            .asset-kpi-card::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 3.5px;
                background: var(--kpi-accent, var(--recon-primary));
            }
            .asset-kpi-card.accent-primary { --kpi-accent: #0B2E77; }
            .asset-kpi-card.accent-sky { --kpi-accent: #0ea5e9; }
            .asset-kpi-card.accent-amber { --kpi-accent: #f59e0b; }
            .asset-kpi-card.accent-emerald { --kpi-accent: #10b981; }

            /* Panel Cards */
            .asset-panel-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
                overflow: hidden;
                margin-bottom: 1.5rem;
            }
            .asset-panel-card .card-header-recon {
                padding: 1rem 1.25rem;
                background: #ffffff;
                border-bottom: 1px solid #f1f5f9;
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

            /* Progress Bar Strip */
            .depreciation-progress-container {
                background: #f1f5f9;
                border-radius: 999px;
                height: 10px;
                overflow: hidden;
                display: flex;
            }
            .depreciation-progress-bar {
                background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
                height: 100%;
                transition: width 0.6s ease;
            }
            .carrying-progress-bar {
                background: linear-gradient(90deg, #10b981 0%, #059669 100%);
                height: 100%;
                transition: width 0.6s ease;
            }

            /* Pulse Dot */
            .badge-pulse {
                display: inline-flex;
                align-items: center;
                gap: 0.35rem;
            }
            .badge-pulse::before {
                content: '';
                width: 7px;
                height: 7px;
                border-radius: 50%;
                background: currentColor;
                animation: pulse-dot 1.8s infinite;
            }
            @keyframes pulse-dot {
                0%, 100% { opacity: 1; transform: scale(1); }
                50% { opacity: 0.4; transform: scale(0.85); }
            }

            /* Buttons */
            .btn-recon-primary {
                background: #0B2E77;
                color: #ffffff;
                border: 1px solid #0B2E77;
                font-weight: 600;
                font-size: 13px;
                border-radius: 8px;
                padding: 0.5rem 1rem;
                display: inline-flex;
                align-items: center;
                gap: 0.4rem;
                transition: all 0.2s ease;
                text-decoration: none;
            }
            .btn-recon-primary:hover {
                background: #081f52;
                border-color: #081f52;
                color: #ffffff;
                box-shadow: 0 4px 12px rgba(11, 46, 119, 0.2);
            }

            .btn-recon-outline {
                background: #ffffff;
                color: #0B2E77;
                border: 1px solid #cbd5e1;
                font-weight: 600;
                font-size: 13px;
                border-radius: 8px;
                padding: 0.5rem 1rem;
                display: inline-flex;
                align-items: center;
                gap: 0.4rem;
                transition: all 0.2s ease;
                text-decoration: none;
            }
            .btn-recon-outline:hover {
                background: #f8fafc;
                border-color: #0B2E77;
                color: #0B2E77;
            }

            /* Specification List */
            .spec-item {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0.65rem 0;
                border-bottom: 1px solid #f1f5f9;
                font-size: 13px;
            }
            .spec-item:last-child {
                border-bottom: none;
            }
            .spec-label {
                color: #64748b;
                font-weight: 500;
            }
            .spec-val {
                color: #0f172a;
                font-weight: 600;
                text-align: right;
            }

            /* Modal Styling */
            .modal-header-recon {
                background: linear-gradient(135deg, #0B2E77 0%, #174299 100%);
                color: #ffffff;
                border-bottom: none;
                padding: 1.25rem 1.5rem;
            }
            .modal-header-recon .modal-title {
                color: #ffffff;
                font-weight: 700;
                font-size: 15px;
            }
            .modal-header-recon .btn-close {
                filter: brightness(0) invert(1);
                opacity: 0.8;
            }
            .modal-header-recon .btn-close:hover {
                opacity: 1;
            }

            /* Task-Style Table rules */
            .table th, .table td {
                padding: 7px 10px !important;
                vertical-align: middle !important;
                font-size: 13px !important;
                line-height: 1.35 !important;
            }
            .table thead th {
                font-weight: 600 !important;
                font-size: 11.5px !important;
                text-transform: uppercase !important;
                letter-spacing: 0.4px !important;
                white-space: nowrap !important;
                background-color: #f8f9fa !important;
                color: #495057 !important;
                border-bottom: 2px solid #e2e8f0 !important;
            }



/* ==========================================================
   Styles from: resources/views/erp/accounting/bank_reconciliation.blade.php
   ========================================================== */
:root {
                --recon-navy: #0B2E77;
                --recon-slate: #1e293b;
                --recon-primary: #0B2E77;
                --recon-primary-hover: #081f52;
                --recon-emerald: #10b981;
                --recon-rose: #f43f5e;
                --recon-amber: #f59e0b;
                --recon-sky: #0ea5e9;
                --recon-purple: #8b5cf6;
                --recon-bg-soft: #f8fafc;
            }

            /* Clean Modern Header */
            .recon-header-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 1.25rem 1.5rem;
                box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
                margin-bottom: 1.5rem;
            }

            /* KPI Cards */
            .recon-kpi-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 1.25rem 1.4rem;
                transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                position: relative;
                overflow: hidden;
            }
            .recon-kpi-card:hover {
                transform: translateY(-3px);
                box-shadow: 0 14px 24px -6px rgba(15, 23, 42, 0.08);
                border-color: #cbd5e1;
            }
            .recon-kpi-card::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 3.5px;
                background: var(--kpi-accent, var(--recon-primary));
            }
            .recon-kpi-card.accent-primary { --kpi-accent: #0B2E77; }
            .recon-kpi-card.accent-sky { --kpi-accent: #0ea5e9; }
            .recon-kpi-card.accent-amber { --kpi-accent: #f59e0b; }
            .recon-kpi-card.accent-emerald { --kpi-accent: #10b981; }
            .recon-kpi-card.accent-rose { --kpi-accent: #f43f5e; }

            .kpi-icon-bubble {
                width: 42px;
                height: 42px;
                min-width: 42px;
                min-height: 42px;
                flex-shrink: 0;
                border-radius: 12px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-size: 1.25rem;
                margin-left: 0.5rem;
            }

            /* Filter & Control Bar */
            .recon-filter-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 12px;
                padding: 1rem 1.25rem;
                box-shadow: 0 1px 3px rgba(0,0,0,0.03);
                margin-bottom: 1.5rem;
            }

            .preset-chip {
                font-size: 0.75rem;
                padding: 0.25rem 0.65rem;
                border-radius: 20px;
                background: #f1f5f9;
                color: #475569;
                border: 1px solid #e2e8f0;
                cursor: pointer;
                transition: all 0.15s ease;
                text-decoration: none;
                font-weight: 500;
            }
            .preset-chip:hover, .preset-chip.active {
                background: #eef2ff;
                color: #0B2E77;
                border-color: #c7d2fe;
            }

            /* Modern Tabs */
            .recon-nav-tabs {
                border-bottom: 2px solid #e2e8f0;
                gap: 0.5rem;
            }
            .recon-nav-tabs .nav-link {
                border: none;
                border-bottom: 2px solid transparent;
                color: #64748b;
                font-weight: 600;
                padding: 0.75rem 1.25rem;
                margin-bottom: -2px;
                border-radius: 8px 8px 0 0;
                transition: all 0.2s ease;
                background: transparent;
            }
            .recon-nav-tabs .nav-link:hover {
                color: #0f172a;
                background: #f8fafc;
            }
            .recon-nav-tabs .nav-link.active {
                color: #0B2E77;
                border-bottom-color: #0B2E77;
                background: #ffffff;
            }

            /* Dual-Pane Split Matcher */
            .split-pane-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
                height: 650px;
                display: flex;
                flex-direction: column;
                overflow: hidden;
            }
            .split-pane-header {
                padding: 1rem 1.25rem;
                background: #fafbfc;
                border-bottom: 1px solid #e2e8f0;
                display: flex;
                align-items: center;
                justify-content: space-between;
                flex-shrink: 0;
            }
            .split-pane-body {
                padding: 0.75rem;
                overflow-y: auto;
                flex: 1;
                background: #f8fafc;
            }

            /* Match Item Card */
            .match-item-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 10px;
                padding: 0.85rem 1rem;
                margin-bottom: 0.6rem;
                transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
                cursor: pointer;
                position: relative;
                z-index: 1;
            }
            .match-item-card:hover {
                border-color: #cbd5e1;
                box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
                z-index: 5;
            }
            .match-item-card:focus-within,
            .match-item-card:has(.show),
            .match-item-card.has-open-dropdown {
                z-index: 1055 !important;
            }
            .match-item-card.is-selected {
                border-color: #0B2E77;
                background: #f0f4fc;
                box-shadow: 0 0 0 2px rgba(11, 46, 119, 0.18);
            }
            .match-item-card.is-matched {
                background: #f0fdf4;
                border-color: #bbf7d0;
            }
            .match-item-card.is-suggested {
                border-color: #10b981;
                background: #ecfdf5;
                animation: pulse-suggested 2s infinite;
            }
            @keyframes pulse-suggested {
                0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3); }
                50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); }
            }

            /* Pulsing Status Badges */
            .badge-pulse {
                display: inline-flex;
                align-items: center;
                gap: 0.35rem;
            }
            .badge-pulse::before {
                content: '';
                width: 7px;
                height: 7px;
                border-radius: 50%;
                background: currentColor;
                animation: pulse-dot 1.8s infinite;
            }
            @keyframes pulse-dot {
                0%, 100% { opacity: 1; transform: scale(1); }
                50% { opacity: 0.4; transform: scale(0.85); }
            }

            /* Formal BRS Sheet */
            .brs-sheet {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 2.25rem 2.5rem;
                box-shadow: 0 4px 15px rgba(0,0,0,0.03);
            }
            .brs-row {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0.75rem 0;
                border-bottom: 1px dashed #e2e8f0;
                font-size: 0.92rem;
            }
            .brs-row.highlight-row {
                background: #f8fafc;
                border-bottom: 2px solid #cbd5e1;
                padding: 0.9rem 1rem;
                border-radius: 8px;
                margin: 0.5rem 0;
            }

            /* Dropzone Box */
            .upload-dropzone {
                border: 2px dashed #cbd5e1;
                border-radius: 12px;
                padding: 2rem 1.5rem;
                text-align: center;
                background: #fafbfc;
                cursor: pointer;
                transition: all 0.2s ease;
            }
            .upload-dropzone:hover {
                border-color: #0B2E77;
                background: #f0f4fc;
            }

            /* Smooth Floating Action Bar */
            .sticky-match-dock {
                position: sticky;
                bottom: 1.5rem;
                z-index: 99;
                background: rgba(15, 23, 42, 0.92);
                backdrop-filter: blur(12px);
                color: #ffffff;
                border-radius: 14px;
                padding: 0.9rem 1.5rem;
                box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.4);
                display: none;
                align-items: center;
                justify-content: space-between;
                border: 1px solid rgba(255, 255, 255, 0.15);
                animation: slideUp 0.3s ease-out forwards;
            }
            @keyframes slideUp {
                from { transform: translateY(30px); opacity: 0; }
                to { transform: translateY(0); opacity: 1; }
            }

            /* Premium Reconciliation Match Dropdown */
            .recon-match-dropdown-menu {
                min-width: 340px;
                max-width: 420px;
                padding: 0;
                border-radius: 12px;
                border: 1px solid #e2e8f0;
                box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
                z-index: 1060 !important;
                overflow: hidden;
                background: #ffffff;
            }
            .recon-match-dropdown-header {
                padding: 0.65rem 0.9rem;
                background: #f8fafc;
                border-bottom: 1px solid #e2e8f0;
            }
            .recon-match-dropdown-search {
                padding: 0.45rem 0.75rem;
                border-bottom: 1px solid #f1f5f9;
                background: #ffffff;
            }
            .recon-match-dropdown-search input {
                font-size: 0.8rem;
                border-radius: 6px;
                border: 1px solid #cbd5e1;
                padding: 0.3rem 0.65rem;
            }
            .recon-match-dropdown-search input:focus {
                border-color: #0B2E77;
                box-shadow: 0 0 0 2px rgba(11, 46, 119, 0.15);
            }
            .recon-match-dropdown-list {
                max-height: 250px;
                overflow-y: auto;
                padding: 0.4rem;
            }
            .recon-match-dropdown-list::-webkit-scrollbar {
                width: 5px;
            }
            .recon-match-dropdown-list::-webkit-scrollbar-thumb {
                background: #cbd5e1;
                border-radius: 4px;
            }
            .recon-match-dropdown-item {
                padding: 0.55rem 0.75rem;
                border-radius: 8px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 0.75rem;
                text-decoration: none;
                transition: all 0.15s ease;
                border: 1px solid transparent;
                margin-bottom: 0.25rem;
                color: inherit;
            }
            .recon-match-dropdown-item:hover, .recon-match-dropdown-item:focus {
                background: #f1f5f9;
                border-color: #cbd5e1;
                color: #0f172a;
            }
            .recon-match-dropdown-item.is-exact-match {
                background: #f0fdf4;
                border-color: #bbf7d0;
            }
            .recon-match-dropdown-item.is-exact-match:hover {
                background: #dcfce7;
                border-color: #86efac;
            }
            .recon-match-dropdown-footer {
                padding: 0.45rem 0.75rem;
                background: #f8fafc;
                border-top: 1px solid #e2e8f0;
                font-size: 0.72rem;
                color: #64748b;
                text-align: center;
            }

            /* Table Styling matching standard ERP Task List */
            #bankReconTable th, #bankReconTable td {
                padding: 7px 10px !important;
                vertical-align: middle !important;
                font-size: 13px !important;
                line-height: 1.35 !important;
            }
            #bankReconTable thead th {
                font-weight: 600 !important;
                font-size: 11.5px !important;
                text-transform: uppercase !important;
                letter-spacing: 0.4px !important;
                white-space: nowrap !important;
                background-color: #f8f9fa !important;
                color: #495057 !important;
                border-bottom: 2px solid #e2e8f0 !important;
            }
            #bankReconTable tbody tr:hover { 
                background: #f8fafc; 
            }
            #bankReconTable.dataTable.no-footer { 
                border-bottom: 0; 
            }

            .recruitment-action-menu {
                border-radius: 10px !important;
                border: 1px solid #e2e8f0 !important;
                box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 4px 10px -2px rgba(15, 23, 42, 0.05) !important;
                padding: 6px !important;
                min-width: 170px !important;
                z-index: 1060 !important;
            }
            .recruitment-action-menu .dropdown-item {
                border-radius: 6px !important;
                padding: 6px 10px !important;
                font-size: 12.5px !important;
                font-weight: 500 !important;
                color: #334155 !important;
                transition: all 0.15s ease !important;
                outline: none !important;
            }
            .recruitment-action-menu .dropdown-item:hover,
            .recruitment-action-menu .dropdown-item:focus {
                background-color: #f1f5f9 !important;
                color: #0f172a !important;
                outline: none !important;
                box-shadow: none !important;
            }
            .recruitment-action-menu .dropdown-item.item-danger {
                color: #dc2626 !important;
            }
            .recruitment-action-menu .dropdown-item.item-danger:hover,
            .recruitment-action-menu .dropdown-item.item-danger:focus {
                background-color: #fef2f2 !important;
                color: #b91c1c !important;
            }



/* ==========================================================
   Styles from: resources/views/erp/accounting/budgets/index.blade.php
   ========================================================== */
:root {
                --recon-navy: #0B2E77;
                --recon-slate: #1e293b;
                --recon-primary: #0B2E77;
                --recon-primary-hover: #081f52;
                --recon-emerald: #10b981;
                --recon-rose: #f43f5e;
                --recon-amber: #f59e0b;
                --recon-sky: #0ea5e9;
                --recon-purple: #8b5cf6;
                --recon-bg-soft: #f8fafc;
            }

            /* Clean Modern Header Card */
            .budget-header-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 1.25rem 1.5rem;
                box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
                margin-bottom: 1.5rem;
            }

            .kpi-icon-bubble {
                width: 44px;
                height: 44px;
                border-radius: 12px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-size: 1.35rem;
            }

            /* 4-KPI Metric Strip */
            .budget-kpi-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 1.25rem 1.4rem;
                transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                position: relative;
                overflow: hidden;
            }
            .budget-kpi-card:hover {
                transform: translateY(-3px);
                box-shadow: 0 14px 24px -6px rgba(15, 23, 42, 0.08);
                border-color: #cbd5e1;
            }
            .budget-kpi-card::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 3.5px;
                background: var(--kpi-accent, var(--recon-primary));
            }
            .budget-kpi-card.accent-primary { --kpi-accent: #0B2E77; }
            .budget-kpi-card.accent-emerald { --kpi-accent: #10b981; }
            .budget-kpi-card.accent-amber { --kpi-accent: #f59e0b; }
            .budget-kpi-card.accent-sky { --kpi-accent: #0ea5e9; }

            /* Filter & Control Bar */
            .budget-filter-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 1.25rem;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
                margin-bottom: 1.5rem;
            }

            /* Main Table Card */
            .budget-table-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
                overflow: hidden;
            }
            .budget-table-card .card-header-recon {
                padding: 1rem 1.25rem;
                background: #ffffff;
                border-bottom: 1px solid #f1f5f9;
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

            /* Buttons */
            .btn-recon-primary {
                background: #0B2E77;
                color: #ffffff;
                border: 1px solid #0B2E77;
                font-weight: 600;
                font-size: 13px;
                border-radius: 8px;
                padding: 0.5rem 1.15rem;
                display: inline-flex;
                align-items: center;
                gap: 0.4rem;
                transition: all 0.2s ease;
                text-decoration: none;
                cursor: pointer;
            }
            .btn-recon-primary:hover {
                background: #081f52;
                border-color: #081f52;
                color: #ffffff;
                box-shadow: 0 4px 12px rgba(11, 46, 119, 0.2);
            }

            .btn-recon-outline {
                background: #ffffff;
                color: #0B2E77;
                border: 1px solid #cbd5e1;
                font-weight: 600;
                font-size: 13px;
                border-radius: 8px;
                padding: 0.5rem 1.15rem;
                display: inline-flex;
                align-items: center;
                gap: 0.4rem;
                transition: all 0.2s ease;
                text-decoration: none;
            }
            .btn-recon-outline:hover {
                background: #f8fafc;
                border-color: #0B2E77;
                color: #0B2E77;
            }

            /* Preset Filter Chips */
            .sub-type-chip {
                font-size: 11px;
                padding: 0.3rem 0.75rem;
                border-radius: 20px;
                background: #f1f5f9;
                color: #475569;
                border: 1px solid #e2e8f0;
                cursor: pointer;
                transition: all 0.15s ease;
                text-decoration: none;
                font-weight: 600;
                display: inline-flex;
                align-items: center;
                gap: 0.35rem;
            }
            .sub-type-chip:hover {
                background: #eef2ff;
                color: #0B2E77;
                border-color: #c7d2fe;
            }
            .sub-type-chip.active {
                background: #0B2E77;
                color: #ffffff;
                border-color: #0B2E77;
            }

            /* Table Styles matching standard ERP Task List */
            .table-budget th, .table-budget td {
                padding: 7px 10px !important;
                vertical-align: middle !important;
                font-size: 13px !important;
                line-height: 1.35 !important;
            }
            .table-budget thead th {
                font-weight: 600 !important;
                font-size: 11.5px !important;
                text-transform: uppercase !important;
                letter-spacing: 0.4px !important;
                white-space: nowrap !important;
                background-color: #f8f9fa !important;
                color: #495057 !important;
                border-bottom: 2px solid #e2e8f0 !important;
            }
            .table-budget tbody tr:hover td {
                background-color: #f8fafc;
            }

            /* Input Amount Styling */
            .input-budget-amt {
                font-family: 'SF Mono', 'Cascadia Code', Menlo, monospace;
                font-weight: 700;
                font-size: 13px;
                color: #0B2E77;
                border-color: #cbd5e1;
            }
            .input-budget-amt:focus {
                border-color: #0B2E77;
                box-shadow: 0 0 0 3px rgba(11, 46, 119, 0.12);
            }

            /* Sticky Footer Bar */
            .budget-footer-summary {
                background: #f8fafc;
                border-top: 2px solid #e2e8f0;
                padding: 1rem 1.25rem;
            }



/* ==========================================================
   Styles from: resources/views/erp/accounting/guide.blade.php
   ========================================================== */
:root {
                --cfo-primary: #0B2E77;
                --cfo-primary-hover: #082156;
                --cfo-emerald: #10b981;
                --cfo-rose: #f43f5e;
                --cfo-amber: #f59e0b;
                --cfo-cyan: #06b6d4;
                --cfo-purple: #8b5cf6;
            }

            .guide-hero-card {
                background: linear-gradient(135deg, #0B2E77 0%, #174291 50%, #082156 100%);
                color: #ffffff;
                border-radius: 16px;
                padding: 1.75rem 2.25rem;
                box-shadow: 0 12px 30px -8px rgba(11, 46, 119, 0.3);
                border: 1px solid rgba(255, 255, 255, 0.12);
                position: relative;
                overflow: hidden;
            }
            .guide-hero-card::before {
                content: '';
                position: absolute;
                top: -50%;
                right: -10%;
                width: 400px;
                height: 400px;
                background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
                pointer-events: none;
            }

            .hero-badge-pill {
                display: inline-flex;
                align-items: center;
                gap: 0.5rem;
                background: rgba(255, 255, 255, 0.15) !important;
                color: #ffffff !important;
                border: 1px solid rgba(255, 255, 255, 0.25) !important;
                padding: 0.35rem 0.85rem !important;
                border-radius: 50rem !important;
                font-size: 0.8rem !important;
                font-weight: 600 !important;
                letter-spacing: 0.02em;
                backdrop-filter: blur(4px);
            }
            .hero-badge-pill i {
                font-size: 0.95rem;
                margin-right: 0.25rem;
            }

            .guide-section-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 1.75rem;
                box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
                margin-bottom: 1.75rem;
                transition: border-color 0.2s ease;
            }
            .guide-section-card:hover {
                border-color: #cbd5e1;
            }

            /* 5 Pillars Modern Card Styling */
            .pillar-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 12px;
                padding: 1.25rem 1.15rem;
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                position: relative;
                overflow: hidden;
                box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
                transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
                border-top-width: 4px !important;
            }
            .pillar-card:hover {
                transform: translateY(-4px);
                box-shadow: 0 12px 24px -6px rgba(11, 46, 119, 0.12);
                border-color: #cbd5e1;
            }
            .pillar-card.pillar-assets { border-top-color: #0B2E77 !important; }
            .pillar-card.pillar-liabilities { border-top-color: #e11d48 !important; }
            .pillar-card.pillar-equity { border-top-color: #0284c7 !important; }
            .pillar-card.pillar-revenue { border-top-color: #10b981 !important; }
            .pillar-card.pillar-expenses { border-top-color: #f59e0b !important; }

            .pillar-icon-box {
                width: 36px;
                height: 36px;
                border-radius: 8px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-size: 1.15rem;
                flex-shrink: 0;
            }

            .matrix-table {
                font-size: 0.88rem;
            }
            .matrix-table thead th {
                background: #0B2E77;
                color: #ffffff;
                font-size: 0.75rem;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 0.04em;
                padding: 0.85rem 1rem;
                border: none;
                white-space: nowrap;
            }
            .matrix-table tbody td {
                padding: 0.9rem 1rem;
                vertical-align: middle;
                border-bottom: 1px solid #f1f5f9;
            }
            .matrix-table tbody tr:hover td {
                background-color: #f8fafc;
            }

            .entry-pill {
                display: inline-flex;
                align-items: center;
                padding: 0.25rem 0.6rem;
                border-radius: 6px;
                font-size: 0.76rem;
                font-weight: 700;
                font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
            }
            .pill-dr { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
            .pill-cr { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
            .pill-route { 
                background: #f8fafc; 
                color: #0B2E77; 
                border: 1px solid #cbd5e1; 
                font-family: inherit;
                font-size: 0.82rem;
                font-weight: 600;
                transition: all 0.15s ease;
            }
            .pill-route:hover {
                background: #0B2E77;
                color: #ffffff;
                border-color: #0B2E77;
            }

            .report-mini-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-left: 4px solid #0B2E77;
                border-radius: 10px;
                padding: 1.25rem;
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                box-shadow: 0 2px 6px -2px rgba(15, 23, 42, 0.04);
                transition: all 0.2s ease;
            }
            .report-mini-card:hover {
                transform: translateY(-3px);
                box-shadow: 0 10px 20px -4px rgba(11, 46, 119, 0.1);
            }

            .timeline-step-badge {
                width: 32px;
                height: 32px;
                border-radius: 50%;
                background: #0B2E77;
                color: #ffffff;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-weight: 800;
                font-size: 0.85rem;
                flex-shrink: 0;
            }

            @media (max-width: 768px) {
                .guide-hero-card { padding: 1.25rem 1rem !important; }
                .guide-hero-card h1 { font-size: 1.35rem !important; }
                .guide-hero-card .btn { width: 100% !important; }
                .guide-section-card { padding: 1.25rem 1rem !important; }
                .matrix-table { min-width: 750px; }
            }



/* ==========================================================
   Styles from: resources/views/erp/accounting/journal/index.blade.php
   ========================================================== */
/* Table Styling matching standard ERP Task List */
    #journalTable th, #journalTable td {
        padding: 7px 10px !important;
        vertical-align: middle !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }
    #journalTable thead th {
        font-weight: 600 !important;
        font-size: 11.5px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.4px !important;
        white-space: nowrap !important;
        background-color: #f8f9fa !important;
        color: #495057 !important;
        border-bottom: 2px solid #e2e8f0 !important;
    }
    #journalTable tbody tr:hover { 
        background: #f8fafc; 
    }
    #journalTable.dataTable.no-footer { 
        border-bottom: 0; 
    }

    /* Action Dropdown Menu Styling matching Task/Recruitment */
    .recruitment-action-menu {
        border-radius: 10px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 4px 10px -2px rgba(15, 23, 42, 0.05) !important;
        padding: 6px !important;
        min-width: 190px !important;
        z-index: 1060 !important;
    }
    .recruitment-action-menu .dropdown-item {
        border-radius: 6px !important;
        padding: 6px 10px !important;
        font-size: 12.5px !important;
        font-weight: 500 !important;
        color: #334155 !important;
        transition: all 0.15s ease !important;
        outline: none !important;
    }
    .recruitment-action-menu .dropdown-item:hover,
    .recruitment-action-menu .dropdown-item:focus {
        background-color: #f1f5f9 !important;
        color: #0f172a !important;
        outline: none !important;
        box-shadow: none !important;
    }
    .recruitment-action-menu .dropdown-item.item-danger {
        color: #dc2626 !important;
    }
    .recruitment-action-menu .dropdown-item.item-danger:hover,
    .recruitment-action-menu .dropdown-item.item-danger:focus {
        background-color: #fef2f2 !important;
        color: #b91c1c !important;
    }

    /* Clickable Stat Cards matching Task list design */
    .task-stat-card {
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
        border: 2px solid #e2e8f0 !important;
        position: relative;
    }
    .task-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        border-color: #cbd5e1 !important;
    }
    .task-stat-card.is-active-primary {
        border-color: #0d6efd !important;
        background-color: #f8faff !important;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    }
    .task-stat-card.is-active-success {
        border-color: #198754 !important;
        background-color: #f6fdf9 !important;
        box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    }
    .task-stat-card.is-active-warning {
        border-color: #d97706 !important;
        background-color: #fffbeb !important;
        box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    }
    .task-stat-card.is-active-info {
        border-color: #0284c7 !important;
        background-color: #f0f9ff !important;
        box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    }
    .task-stat-card .active-indicator {
        display: none;
        position: absolute;
        top: 8px;
        right: 8px;
        font-size: 11px;
    }
    .task-stat-card[class*="is-active-"] .active-indicator {
        display: block;
    }



/* ==========================================================
   Styles from: resources/views/erp/accounting/journal/opening_balance.blade.php
   ========================================================== */
#obTable th, #obTable td {
                padding: 7px 10px !important;
                vertical-align: middle !important;
                font-size: 13px !important;
                line-height: 1.35 !important;
            }
            #obTable thead th {
                font-weight: 600 !important;
                font-size: 11.5px !important;
                text-transform: uppercase !important;
                letter-spacing: 0.4px !important;
                white-space: nowrap !important;
                background-color: #f8f9fa !important;
                color: #495057 !important;
                border-bottom: 2px solid #e2e8f0 !important;
            }



/* ==========================================================
   Styles from: resources/views/erp/accounting/journal/view.blade.php
   ========================================================== */
.table th, .table td {
            padding: 7px 10px !important;
            vertical-align: middle !important;
            font-size: 13px !important;
            line-height: 1.35 !important;
        }
        .table thead th {
            font-weight: 600 !important;
            font-size: 11.5px !important;
            text-transform: uppercase !important;
            letter-spacing: 0.4px !important;
            white-space: nowrap !important;
            background-color: #f8f9fa !important;
            color: #495057 !important;
            border-bottom: 2px solid #e2e8f0 !important;
        }



/* ==========================================================
   Styles from: resources/views/erp/accounting/periods.blade.php
   ========================================================== */
.tx-btn {
        display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
        height: 38px; padding: 0 1rem; border-radius: 8px; font-size: 13px; font-weight: 600;
        border: 1px solid #e2e8f0; text-decoration: none; white-space: nowrap; background: #fff; color: #1e293b;
        transition: all 0.2s ease;
    }
    .tx-btn:hover { background: #f8fafc; color: #0B2E77; border-color: #cbd5e1; }
    .tx-btn-primary {
        background: #0B2E77; border-color: #0B2E77; color: #fff !important;
        box-shadow: 0 2px 6px rgba(11,46,119,.2);
    }
    .tx-btn-primary:hover { background: #082156; border-color: #082156; color: #fff !important; }

    .tx-card {
        background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
        box-shadow: 0 2px 10px -2px rgba(15,23,42,.04); overflow: hidden;
    }
    .tx-table-wrap { padding: 1rem 1.25rem 1.25rem; }
    .tx-table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    #periodsTable { width: 100% !important; min-width: 720px; }
    #periodsTable th, #periodsTable td {
        padding: 7px 10px !important;
        vertical-align: middle !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }
    #periodsTable thead th {
        font-weight: 600 !important;
        font-size: 11.5px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.4px !important;
        white-space: nowrap !important;
        background-color: #f8f9fa !important;
        color: #495057 !important;
        border-bottom: 2px solid #e2e8f0 !important;
    }
    #periodsTable tbody tr:hover { background: #f8fafc; }
    #periodsTable.dataTable.no-footer { border-bottom: 0; }

    /* Action Dropdown Menu Styling matching Task/Recruitment */
    .recruitment-action-menu {
        border-radius: 10px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 4px 10px -2px rgba(15, 23, 42, 0.05) !important;
        padding: 6px !important;
        min-width: 190px !important;
        z-index: 1060 !important;
    }
    .recruitment-action-menu .dropdown-item {
        border-radius: 6px !important;
        padding: 6px 10px !important;
        font-size: 12.5px !important;
        font-weight: 500 !important;
        color: #334155 !important;
        transition: all 0.15s ease !important;
        outline: none !important;
    }
    .recruitment-action-menu .dropdown-item:hover,
    .recruitment-action-menu .dropdown-item:focus {
        background-color: #f1f5f9 !important;
        color: #0f172a !important;
        outline: none !important;
        box-shadow: none !important;
    }
    .recruitment-action-menu .dropdown-item.item-danger {
        color: #dc2626 !important;
    }
    .recruitment-action-menu .dropdown-item.item-danger:hover,
    .recruitment-action-menu .dropdown-item.item-danger:focus {
        background-color: #fef2f2 !important;
        color: #b91c1c !important;
    }

    .tx-badge {
        display: inline-flex; align-items: center; padding: .25rem .6rem;
        border-radius: 999px; font-size: 11px; font-weight: 650;
    }
    .tx-badge-success { background: #dcfce7; color: #166534; }
    .tx-badge-muted { background: #f1f5f9; color: #475569; }

    @media (max-width: 768px) {
        .mobile-btn-stack { width: 100% !important; }
        .mobile-btn-stack .tx-btn { width: 100% !important; }
        .tx-table-wrap { padding: 0.75rem; }
    }



/* ==========================================================
   Styles from: resources/views/erp/accounting/reports.blade.php
   ========================================================== */
:root {
                --cfo-primary: #0B2E77;
                --cfo-primary-hover: #082156;
                --cfo-primary-light: #133D9E;
                --cfo-slate: #1e293b;
                --cfo-emerald: #10b981;
                --cfo-rose: #f43f5e;
                --cfo-amber: #f59e0b;
                --cfo-cyan: #06b6d4;
                --cfo-purple: #8b5cf6;
            }

            .cfo-hero-banner {
                background: linear-gradient(135deg, #0B2E77 0%, #174291 50%, #082156 100%);
                color: #ffffff;
                border-radius: 16px;
                padding: 2rem 2.25rem;
                box-shadow: 0 12px 30px -10px rgba(11, 46, 119, 0.35);
                position: relative;
                border: 1px solid rgba(255, 255, 255, 0.12);
                z-index: 10;
            }
            .cfo-hero-banner::before {
                content: '';
                position: absolute;
                top: -50%;
                right: -15%;
                width: 450px;
                height: 450px;
                background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
                pointer-events: none;
                border-radius: 16px;
            }

            .hero-badge-pill {
                display: inline-flex;
                align-items: center;
                gap: 0.5rem;
                background: rgba(255, 255, 255, 0.15) !important;
                color: #ffffff !important;
                border: 1px solid rgba(255, 255, 255, 0.25) !important;
                padding: 0.35rem 0.85rem !important;
                border-radius: 50rem !important;
                font-size: 0.8rem !important;
                font-weight: 600 !important;
                letter-spacing: 0.02em;
                backdrop-filter: blur(4px);
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
            }
            .hero-badge-pill i {
                font-size: 0.95rem;
                margin-right: 0.25rem;
            }
            .hero-badge-pill.success {
                background: rgba(16, 185, 129, 0.25) !important;
                border-color: rgba(16, 185, 129, 0.5) !important;
                color: #ffffff !important;
            }

            .cfo-hero-banner .dropdown-menu {
                background: #ffffff !important;
                border: 1px solid #e2e8f0 !important;
                border-radius: 12px !important;
                padding: 0.5rem !important;
                min-width: 280px !important;
                box-shadow: 0 14px 35px -5px rgba(11, 46, 119, 0.3) !important;
                z-index: 1060 !important;
            }
            .cfo-hero-banner .dropdown-header {
                color: #64748b !important;
                font-size: 0.72rem !important;
                font-weight: 800 !important;
                letter-spacing: 0.05em !important;
                padding: 0.5rem 0.75rem !important;
            }
            .cfo-hero-banner .dropdown-item {
                color: #1e293b !important;
                font-size: 0.88rem !important;
                font-weight: 600 !important;
                padding: 0.6rem 0.85rem !important;
                border-radius: 8px !important;
                display: flex !important;
                align-items: center !important;
                transition: all 0.15s ease !important;
            }
            .cfo-hero-banner .dropdown-item:hover {
                background-color: #f1f5f9 !important;
                color: #0B2E77 !important;
                transform: translateX(3px);
            }
            .cfo-hero-banner .dropdown-item i {
                font-size: 1.1rem !important;
            }

            .kpi-score-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 1.25rem 1.25rem;
                transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                position: relative;
                overflow: hidden;
            }
            .kpi-score-card:hover {
                transform: translateY(-4px);
                box-shadow: 0 16px 28px -6px rgba(11, 46, 119, 0.12);
                border-color: #cbd5e1;
            }
            .kpi-score-card::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 4px;
            }
            .kpi-score-card.border-cfo-primary::after { background: linear-gradient(90deg, #0B2E77, #1e40af); }
            .kpi-score-card.border-cfo-emerald::after { background: linear-gradient(90deg, #10b981, #34d399); }
            .kpi-score-card.border-cfo-cyan::after { background: linear-gradient(90deg, #06b6d4, #38bdf8); }
            .kpi-score-card.border-cfo-amber::after { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
            .kpi-score-card.border-cfo-rose::after { background: linear-gradient(90deg, #f43f5e, #fb7185); }

            .kpi-icon-bubble {
                width: 42px;
                height: 42px;
                min-width: 42px;
                min-height: 42px;
                border-radius: 10px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-size: 1.25rem;
                flex-shrink: 0;
            }

            .analytics-card-shell {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 1.5rem;
                box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
                height: 100%;
            }

            .ratio-metric-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 12px;
                padding: 1.25rem 1.4rem;
                box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.03);
                transition: all 0.2s ease;
                height: 100%;
                border-left-width: 4px !important;
            }
            .ratio-metric-card:hover {
                transform: translateY(-2px);
                box-shadow: 0 10px 20px -4px rgba(11, 46, 119, 0.08);
            }

            .report-card-premium {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 1.5rem;
                transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                position: relative;
                overflow: hidden;
            }
            .report-card-premium:hover {
                transform: translateY(-5px);
                border-color: #0B2E77;
                box-shadow: 0 16px 30px -8px rgba(11, 46, 119, 0.15);
            }
            .report-card-premium::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 4px;
                background: transparent;
                transition: all 0.25s ease;
            }
            .report-card-premium.theme-primary:hover::before { background: #0B2E77; }
            .report-card-premium.theme-success:hover::before { background: #10b981; }
            .report-card-premium.theme-info:hover::before { background: #06b6d4; }
            .report-card-premium.theme-purple:hover::before { background: #8b5cf6; }
            .report-card-premium.theme-dark:hover::before { background: #0f172a; }
            .report-card-premium.theme-teal:hover::before { background: #0d9488; }
            .report-card-premium.theme-warning:hover::before { background: #f59e0b; }
            .report-card-premium.theme-danger:hover::before { background: #f43f5e; }
            .report-card-premium.theme-slate:hover::before { background: #475569; }

            .mono-amount {
                font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', Menlo, Consolas, monospace;
                letter-spacing: -0.02em;
                font-variant-numeric: tabular-nums;
            }

            .tab-filter-btn {
                border-radius: 30px;
                padding: 0.45rem 1.15rem;
                font-size: 0.85rem;
                font-weight: 600;
                border: 1px solid #e2e8f0;
                background: #ffffff;
                color: #64748b;
                transition: all 0.2s ease;
            }
            .tab-filter-btn:hover {
                background: #f8fafc;
                color: #0B2E77;
                border-color: #cbd5e1;
            }
            .tab-filter-btn.active {
                background: #0B2E77;
                color: #ffffff;
                border-color: #0B2E77;
                box-shadow: 0 4px 12px rgba(11, 46, 119, 0.25);
            }
            .badge-soft-primary { background-color: rgba(11, 46, 119, 0.08); color: #0B2E77; }

            /* Task-Style Table rules */
            .table th, .table td {
                padding: 7px 10px !important;
                vertical-align: middle !important;
                font-size: 13px !important;
                line-height: 1.35 !important;
            }
            .table thead th {
                font-weight: 600 !important;
                font-size: 11.5px !important;
                text-transform: uppercase !important;
                letter-spacing: 0.4px !important;
                white-space: nowrap !important;
                background-color: #f8f9fa !important;
                color: #495057 !important;
                border-bottom: 2px solid #e2e8f0 !important;
            }
            .badge-soft-success { background-color: rgba(16, 185, 129, 0.1); color: #059669; }
            .badge-soft-danger { background-color: rgba(244, 63, 94, 0.1); color: #e11d48; }
            .badge-soft-warning { background-color: rgba(245, 158, 11, 0.1); color: #d97706; }
            .badge-soft-info { background-color: rgba(6, 182, 212, 0.1); color: #0891b2; }
            .badge-soft-purple { background-color: rgba(139, 92, 246, 0.1); color: #7c3aed; }

            .btn-recon-primary {
                background-color: #0B2E77;
                border-color: #0B2E77;
                color: #ffffff;
            }
            .btn-recon-primary:hover {
                background-color: #082156;
                border-color: #082156;
                color: #ffffff;
            }

            @media (max-width: 768px) {
                .cfo-hero-banner { padding: 1.25rem 1rem !important; }
                .cfo-hero-banner h2 { font-size: 1.35rem !important; }
                .cfo-hero-banner .hero-badge-pill { font-size: 0.72rem !important; padding: 0.3rem 0.65rem !important; }
                .cfo-hero-banner .btn, .cfo-hero-banner .dropdown, .cfo-hero-banner .dropdown-toggle { width: 100% !important; }
                .tab-filter-btn { font-size: 0.78rem !important; padding: 0.35rem 0.75rem !important; }
                #reportSearchInput { width: 100% !important; }
                .input-group-sm { width: 100% !important; }
            }



/* ==========================================================
   Styles from: resources/views/erp/accounting/reports/ar_aging.blade.php
   ========================================================== */
.report-hero-card {
        background: linear-gradient(135deg, #0B2E77 0%, #174291 50%, #082156 100%);
        color: #ffffff;
        border-radius: 14px;
        padding: 1.5rem 1.75rem;
        box-shadow: 0 10px 25px -5px rgba(11, 46, 119, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.12);
        position: relative;
        overflow: hidden;
    }
    .report-hero-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 350px;
        height: 350px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
        pointer-events: none;
    }
    .kpi-stat-pill {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 1.15rem 1.35rem;
        box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        height: 100%;
        border-top-width: 4px !important;
    }
    .kpi-stat-pill:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 20px -4px rgba(11, 46, 119, 0.1);
        border-color: #cbd5e1;
    }
    .report-content-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 1.5rem;
        box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
    }
    .mono-num {
        font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', Menlo, Consolas, monospace;
        letter-spacing: -0.02em;
        font-variant-numeric: tabular-nums;
    }
    .table-report th, .table-report td {
        padding: 7px 10px !important;
        vertical-align: middle !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }
    .table-report thead th {
        font-weight: 600 !important;
        font-size: 11.5px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.4px !important;
        white-space: nowrap !important;
        background-color: #f8f9fa !important;
        color: #495057 !important;
        border-bottom: 2px solid #e2e8f0 !important;
    }
    .table-report tbody td {
        border-bottom: 1px solid #f1f5f9;
    }
    .table-report tbody tr:hover td {
        background-color: #f8fafc;
    }
    .table-grand-total {
        background: linear-gradient(135deg, #0B2E77 0%, #082156 100%) !important;
        color: #ffffff !important;
        font-weight: 800;
        font-size: 0.95rem;
    }
    .table-grand-total td {
        color: #ffffff !important;
        border: none !important;
        padding: 0.85rem 1rem !important;
    }
    .num-zero { color: #94a3b8; }
    .search-filter-input {
        border-radius: 8px;
        border: 1px solid #cbd5e1;
        padding: 0.45rem 0.85rem 0.45rem 2.2rem;
        font-size: 0.875rem;
        width: 260px;
        transition: all 0.2s ease;
    }
    .search-filter-input:focus {
        border-color: #0B2E77;
        box-shadow: 0 0 0 3px rgba(11, 46, 119, 0.12);
        outline: none;
        width: 300px;
    }
    .preset-pill-btn {
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.25rem 0.75rem;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        color: #64748b;
        transition: all 0.15s ease;
    }
    .preset-pill-btn:hover {
        background: #f1f5f9;
        color: #0B2E77;
        border-color: #cbd5e1;
    }
    .btn-recon-primary {
        background-color: #0B2E77;
        border-color: #0B2E77;
        color: #ffffff;
    }
    .btn-recon-primary:hover {
        background-color: #082156;
        border-color: #082156;
        color: #ffffff;
    }
    .hero-badge-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        padding: 0.35rem 0.85rem !important;
        border-radius: 50rem !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.02em;
        backdrop-filter: blur(4px);
    }
    .hero-badge-pill i {
        font-size: 0.95rem;
        margin-right: 0.25rem;
    }
    @media (max-width: 768px) {
        .report-hero-card { padding: 1.25rem 1rem !important; }
        .report-hero-card h1 { font-size: 1.25rem !important; }
        .hero-badge-pill { font-size: 0.72rem !important; padding: 0.3rem 0.65rem !important; }
        .report-hero-card .btn { width: 100% !important; }
        .search-filter-input { width: 100% !important; }
        .search-filter-input:focus { width: 100% !important; }
        .report-content-card { padding: 1rem 0.75rem !important; }
        .table-report { min-width: 700px; }
    }
    @media print {
        .d-print-none, .navbar, .sidebar, footer, .btn, form, .breadcrumb { display: none !important; }
        body { background: #fff !important; font-size: 10pt; color: #000; }
        .report-hero-card { background: none !important; color: #000 !important; border: none !important; padding: 0 !important; box-shadow: none !important; }
        .report-hero-card h1, .report-hero-card h2, .report-hero-card p { color: #000 !important; }
        .report-content-card { border: none !important; box-shadow: none !important; padding: 0 !important; }
        .table { width: 100% !important; border: 1px solid #ddd !important; }
        .table th, .table td { border: 1px solid #ddd !important; padding: 4px 8px !important; }
    }



/* ==========================================================
   Styles from: resources/views/erp/accounting/reports/balance_sheet.blade.php
   ========================================================== */
.report-hero-card {
        background: linear-gradient(135deg, #0B2E77 0%, #174291 50%, #082156 100%);
        color: #ffffff;
        border-radius: 14px;
        padding: 1.5rem 1.75rem;
        box-shadow: 0 10px 25px -5px rgba(11, 46, 119, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.12);
        position: relative;
        overflow: hidden;
    }
    .report-hero-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 350px;
        height: 350px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
        pointer-events: none;
    }
    .kpi-stat-pill {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 1.15rem 1.35rem;
        box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        height: 100%;
        border-top-width: 4px !important;
    }
    .kpi-stat-pill:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 20px -4px rgba(11, 46, 119, 0.1);
        border-color: #cbd5e1;
    }
    .report-content-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 1.5rem;
        box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
    }
    .mono-num {
        font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', Menlo, Consolas, monospace;
        letter-spacing: -0.02em;
        font-variant-numeric: tabular-nums;
    }
    .table-report th, .table-report td {
        padding: 7px 10px !important;
        vertical-align: middle !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }
    .table-report thead th {
        font-weight: 600 !important;
        font-size: 11.5px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.4px !important;
        white-space: nowrap !important;
        background-color: #f8f9fa !important;
        color: #495057 !important;
        border-bottom: 2px solid #e2e8f0 !important;
    }
    .table-report tbody td {
        border-bottom: 1px solid #f1f5f9;
    }
    .table-report tbody tr:hover td {
        background-color: #f8fafc;
    }
    .table-section-header {
        background-color: #f1f5f9 !important;
        font-weight: 700;
        color: #1e293b;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: 0.78rem;
    }
    .table-subtotal-row {
        background-color: #f8fafc !important;
        font-weight: 600;
        color: #334155;
        border-top: 1px solid #cbd5e1;
        border-bottom: 1px solid #cbd5e1;
    }
    .table-grand-total {
        background: linear-gradient(135deg, #0B2E77 0%, #082156 100%) !important;
        color: #ffffff !important;
        font-weight: 800;
        font-size: 0.95rem;
    }
    .table-grand-total td {
        color: #ffffff !important;
        border: none !important;
        padding: 0.85rem 1rem !important;
    }
    .search-filter-input {
        border-radius: 8px;
        border: 1px solid #cbd5e1;
        padding: 0.45rem 0.85rem 0.45rem 2.2rem;
        font-size: 0.875rem;
        width: 260px;
        transition: all 0.2s ease;
    }
    .search-filter-input:focus {
        border-color: #0B2E77;
        box-shadow: 0 0 0 3px rgba(11, 46, 119, 0.12);
        outline: none;
        width: 300px;
    }
    .btn-recon-primary {
        background-color: #0B2E77;
        border-color: #0B2E77;
        color: #ffffff;
    }
    .btn-recon-primary:hover {
        background-color: #082156;
        border-color: #082156;
        color: #ffffff;
    }
    .hero-badge-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        padding: 0.35rem 0.85rem !important;
        border-radius: 50rem !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.02em;
        backdrop-filter: blur(4px);
    }
    .hero-badge-pill i {
        font-size: 0.95rem;
        margin-right: 0.25rem;
    }
    @media (max-width: 768px) {
        .report-hero-card { padding: 1.25rem 1rem !important; }
        .report-hero-card h1 { font-size: 1.25rem !important; }
        .hero-badge-pill { font-size: 0.72rem !important; padding: 0.3rem 0.65rem !important; }
        .report-hero-card .btn { width: 100% !important; }
        .search-filter-input { width: 100% !important; }
        .search-filter-input:focus { width: 100% !important; }
        .report-content-card { padding: 1rem 0.75rem !important; }
        .table-report { min-width: 550px; }
    }
    @media print {
        .d-print-none, .navbar, .sidebar, footer, .btn, form, .breadcrumb { display: none !important; }
        body { background: #fff !important; font-size: 10pt; color: #000; }
        .report-hero-card { background: none !important; color: #000 !important; border: none !important; padding: 0 !important; box-shadow: none !important; }
        .report-hero-card h1, .report-hero-card h2, .report-hero-card p { color: #000 !important; }
        .report-content-card { border: none !important; box-shadow: none !important; padding: 0 !important; }
        .table { width: 100% !important; border: 1px solid #ddd !important; }
        .table th, .table td { border: 1px solid #ddd !important; padding: 4px 8px !important; }
    }



/* ==========================================================
   Styles from: resources/views/erp/accounting/reports/cash_bank_book.blade.php
   ========================================================== */
.report-hero-card {
        background: linear-gradient(135deg, #0B2E77 0%, #174291 50%, #082156 100%);
        color: #ffffff;
        border-radius: 14px;
        padding: 1.5rem 1.75rem;
        box-shadow: 0 10px 25px -5px rgba(11, 46, 119, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.12);
        position: relative;
        overflow: hidden;
    }
    .report-hero-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 350px;
        height: 350px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
        pointer-events: none;
    }
    .kpi-stat-pill {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 1.15rem 1.35rem;
        box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        height: 100%;
        border-top-width: 4px !important;
    }
    .kpi-stat-pill:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 20px -4px rgba(11, 46, 119, 0.1);
        border-color: #cbd5e1;
    }
    .report-content-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 1.5rem;
        box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
    }
    .mono-num {
        font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', Menlo, Consolas, monospace;
        letter-spacing: -0.02em;
        font-variant-numeric: tabular-nums;
    }
    .table-report th, .table-report td {
        padding: 7px 10px !important;
        vertical-align: middle !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }
    .table-report thead th {
        font-weight: 600 !important;
        font-size: 11.5px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.4px !important;
        white-space: nowrap !important;
        background-color: #f8f9fa !important;
        color: #495057 !important;
        border-bottom: 2px solid #e2e8f0 !important;
    }
    .table-report tbody td {
        border-bottom: 1px solid #f1f5f9;
    }
    .table-report tbody tr:hover td {
        background-color: #f8fafc;
    }
    .table-grand-total {
        background: linear-gradient(135deg, #0B2E77 0%, #082156 100%) !important;
        color: #ffffff !important;
        font-weight: 800;
        font-size: 0.95rem;
    }
    .table-grand-total td {
        color: #ffffff !important;
        border: none !important;
        padding: 0.85rem 1rem !important;
    }
    .num-debit { color: #0284c7; }
    .num-credit { color: #059669; }
    .num-negative { color: #e11d48; }
    .num-zero { color: #94a3b8; }
    .search-filter-input {
        border-radius: 8px;
        border: 1px solid #cbd5e1;
        padding: 0.45rem 0.85rem 0.45rem 2.2rem;
        font-size: 0.875rem;
        width: 260px;
        transition: all 0.2s ease;
    }
    .search-filter-input:focus {
        border-color: #0B2E77;
        box-shadow: 0 0 0 3px rgba(11, 46, 119, 0.12);
        outline: none;
        width: 300px;
    }
    .preset-pill-btn {
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.25rem 0.75rem;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        color: #64748b;
        transition: all 0.15s ease;
    }
    .preset-pill-btn:hover {
        background: #f1f5f9;
        color: #0B2E77;
        border-color: #cbd5e1;
    }
    .btn-recon-primary {
        background-color: #0B2E77;
        border-color: #0B2E77;
        color: #ffffff;
    }
    .btn-recon-primary:hover {
        background-color: #082156;
        border-color: #082156;
        color: #ffffff;
    }
    .hero-badge-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        padding: 0.35rem 0.85rem !important;
        border-radius: 50rem !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.02em;
        backdrop-filter: blur(4px);
    }
    .hero-badge-pill i {
        font-size: 0.95rem;
        margin-right: 0.25rem;
    }
    @media (max-width: 768px) {
        .report-hero-card { padding: 1.25rem 1rem !important; }
        .report-hero-card h1 { font-size: 1.25rem !important; }
        .hero-badge-pill { font-size: 0.72rem !important; padding: 0.3rem 0.65rem !important; }
        .report-hero-card .btn { width: 100% !important; }
        .search-filter-input { width: 100% !important; }
        .search-filter-input:focus { width: 100% !important; }
        .report-content-card { padding: 1rem 0.75rem !important; }
        .table-report { min-width: 700px; }
    }
    @media print {
        .d-print-none, .navbar, .sidebar, footer, .btn, form, .breadcrumb { display: none !important; }
        body { background: #fff !important; font-size: 8.5pt !important; color: #000 !important; margin: 0 !important; padding: 6px !important; }
        .container-fluid { padding: 0 !important; max-width: 100% !important; }
        .dashboard-content { padding: 0 !important; margin: 0 !important; }
        .report-hero-card { background: none !important; color: #000 !important; border: none !important; padding: 0 0 8px 0 !important; box-shadow: none !important; margin-bottom: 8px !important; }
        .report-hero-card h1 { color: #0B2E77 !important; font-size: 14pt !important; margin-bottom: 2px !important; }
        .report-content-card { border: none !important; box-shadow: none !important; padding: 0 !important; margin-bottom: 6px !important; }
        .kpi-stat-pill { border: 1px solid #cbd5e1 !important; padding: 6px 10px !important; box-shadow: none !important; }
        .kpi-stat-pill h3 { font-size: 11pt !important; }
        .table-responsive { overflow: visible !important; display: block !important; width: 100% !important; }
        .table-report { min-width: 0 !important; width: 100% !important; table-layout: fixed !important; font-size: 7.5pt !important; border-collapse: collapse !important; }
        .table-report th, .table-report td { border: 1px solid #cbd5e1 !important; padding: 3px 5px !important; word-break: break-word !important; }
        .table-report thead th { background-color: #f1f5f9 !important; color: #0f172a !important; font-weight: 700 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
        .table-grand-total { background: #0B2E77 !important; color: #ffffff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
        .table-grand-total td { color: #ffffff !important; }
        .hero-badge-pill { border: 1px solid #94a3b8 !important; color: #0f172a !important; background: #f8fafc !important; font-size: 7pt !important; padding: 2px 6px !important; }
    }



/* ==========================================================
   Styles from: resources/views/erp/accounting/reports/general_ledger.blade.php
   ========================================================== */
.report-hero-card {
        background: linear-gradient(135deg, #0B2E77 0%, #174291 50%, #082156 100%);
        color: #ffffff;
        border-radius: 14px;
        padding: 1.5rem 1.75rem;
        box-shadow: 0 10px 25px -5px rgba(11, 46, 119, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.12);
        position: relative;
        overflow: hidden;
    }
    .report-hero-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 350px;
        height: 350px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
        pointer-events: none;
    }
    .kpi-stat-pill {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 1.15rem 1.35rem;
        box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        height: 100%;
        border-top-width: 4px !important;
    }
    .kpi-stat-pill:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 20px -4px rgba(11, 46, 119, 0.1);
        border-color: #cbd5e1;
    }
    .report-content-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 1.5rem;
        box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
    }
    .mono-num {
        font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', Menlo, Consolas, monospace;
        letter-spacing: -0.02em;
        font-variant-numeric: tabular-nums;
    }
    .table-report th, .table-report td {
        padding: 7px 10px !important;
        vertical-align: middle !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }
    .table-report thead th {
        font-weight: 600 !important;
        font-size: 11.5px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.4px !important;
        white-space: nowrap !important;
        background-color: #f8f9fa !important;
        color: #495057 !important;
        border-bottom: 2px solid #e2e8f0 !important;
    }
    .table-report tbody td {
        border-bottom: 1px solid #f1f5f9;
    }
    .table-report tbody tr:hover td {
        background-color: #f8fafc;
    }
    .table-subtotal-row {
        background-color: #f8fafc !important;
        font-weight: 600;
        color: #334155;
        border-top: 1px solid #cbd5e1;
        border-bottom: 1px solid #cbd5e1;
    }
    .table-grand-total {
        background: linear-gradient(135deg, #0B2E77 0%, #082156 100%) !important;
        color: #ffffff !important;
        font-weight: 800;
        font-size: 0.95rem;
    }
    .table-grand-total td {
        color: #ffffff !important;
        border: none !important;
        padding: 0.85rem 1rem !important;
    }
    .num-debit { color: #0284c7; }
    .num-credit { color: #059669; }
    .num-negative { color: #e11d48; }
    .num-zero { color: #94a3b8; }
    .search-filter-input {
        border-radius: 8px;
        border: 1px solid #cbd5e1;
        padding: 0.45rem 0.85rem 0.45rem 2.2rem;
        font-size: 0.875rem;
        width: 260px;
        transition: all 0.2s ease;
    }
    .search-filter-input:focus {
        border-color: #0B2E77;
        box-shadow: 0 0 0 3px rgba(11, 46, 119, 0.12);
        outline: none;
        width: 300px;
    }
    .btn-recon-primary {
        background-color: #0B2E77;
        border-color: #0B2E77;
        color: #ffffff;
    }
    .btn-recon-primary:hover {
        background-color: #082156;
        border-color: #082156;
        color: #ffffff;
    }
    .hero-badge-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        padding: 0.35rem 0.85rem !important;
        border-radius: 50rem !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.02em;
        backdrop-filter: blur(4px);
    }
    .hero-badge-pill i {
        font-size: 0.95rem;
        margin-right: 0.25rem;
    }
    @media (max-width: 768px) {
        .report-hero-card { padding: 1.25rem 1rem !important; }
        .report-hero-card h1 { font-size: 1.25rem !important; }
        .hero-badge-pill { font-size: 0.72rem !important; padding: 0.3rem 0.65rem !important; }
        .report-hero-card .btn { width: 100% !important; }
        .search-filter-input { width: 100% !important; }
        .search-filter-input:focus { width: 100% !important; }
        .report-content-card { padding: 1rem 0.75rem !important; }
        .table-report { min-width: 700px; }
    }
    @media print {
        .d-print-none, .navbar, .sidebar, footer, .btn, form, .breadcrumb { display: none !important; }
        body { background: #fff !important; font-size: 10pt; color: #000; }
        .report-hero-card { background: none !important; color: #000 !important; border: none !important; padding: 0 !important; box-shadow: none !important; }
        .report-hero-card h1, .report-hero-card h2, .report-hero-card p { color: #000 !important; }
        .report-content-card { border: none !important; box-shadow: none !important; padding: 0 !important; }
        .table { width: 100% !important; border: 1px solid #ddd !important; }
        .table th, .table td { border: 1px solid #ddd !important; padding: 4px 8px !important; }
    }



/* ==========================================================
   Styles from: resources/views/erp/accounting/reports/profit_loss.blade.php
   ========================================================== */
.report-hero-card {
        background: linear-gradient(135deg, #0B2E77 0%, #174291 50%, #082156 100%);
        color: #ffffff;
        border-radius: 14px;
        padding: 1.5rem 1.75rem;
        box-shadow: 0 10px 25px -5px rgba(11, 46, 119, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.12);
        position: relative;
        overflow: hidden;
    }
    .report-hero-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 350px;
        height: 350px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
        pointer-events: none;
    }
    .kpi-stat-pill {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 1.15rem 1.35rem;
        box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        height: 100%;
        border-top-width: 4px !important;
    }
    .kpi-stat-pill:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 20px -4px rgba(11, 46, 119, 0.1);
        border-color: #cbd5e1;
    }
    .report-content-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 1.5rem;
        box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
    }
    .mono-num {
        font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', Menlo, Consolas, monospace;
        letter-spacing: -0.02em;
        font-variant-numeric: tabular-nums;
    }
    .table-report th, .table-report td {
        padding: 7px 10px !important;
        vertical-align: middle !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }
    .table-report thead th {
        font-weight: 600 !important;
        font-size: 11.5px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.4px !important;
        white-space: nowrap !important;
        background-color: #f8f9fa !important;
        color: #495057 !important;
        border-bottom: 2px solid #e2e8f0 !important;
    }
    .table-report tbody td {
        border-bottom: 1px solid #f1f5f9;
    }
    .table-report tbody tr:hover td {
        background-color: #f8fafc;
    }
    .table-section-header {
        background-color: #f1f5f9 !important;
        font-weight: 700;
        color: #1e293b;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: 0.78rem;
    }
    .table-subtotal-row {
        background-color: #f8fafc !important;
        font-weight: 600;
        color: #334155;
        border-top: 1px solid #cbd5e1;
        border-bottom: 1px solid #cbd5e1;
    }
    .table-grand-total {
        background: linear-gradient(135deg, #0B2E77 0%, #082156 100%) !important;
        color: #ffffff !important;
        font-weight: 800;
        font-size: 0.95rem;
    }
    .table-grand-total td {
        color: #ffffff !important;
        border: none !important;
        padding: 0.85rem 1rem !important;
    }
    .search-filter-input {
        border-radius: 8px;
        border: 1px solid #cbd5e1;
        padding: 0.45rem 0.85rem 0.45rem 2.2rem;
        font-size: 0.875rem;
        width: 260px;
        transition: all 0.2s ease;
    }
    .search-filter-input:focus {
        border-color: #0B2E77;
        box-shadow: 0 0 0 3px rgba(11, 46, 119, 0.12);
        outline: none;
        width: 300px;
    }
    .preset-pill-btn {
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.25rem 0.75rem;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        color: #64748b;
        transition: all 0.15s ease;
    }
    .preset-pill-btn:hover {
        background: #f1f5f9;
        color: #0B2E77;
        border-color: #cbd5e1;
    }
    .btn-recon-primary {
        background-color: #0B2E77;
        border-color: #0B2E77;
        color: #ffffff;
    }
    .btn-recon-primary:hover {
        background-color: #082156;
        border-color: #082156;
        color: #ffffff;
    }
    .hero-badge-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        padding: 0.35rem 0.85rem !important;
        border-radius: 50rem !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.02em;
        backdrop-filter: blur(4px);
    }
    .hero-badge-pill i {
        font-size: 0.95rem;
        margin-right: 0.25rem;
    }
    @media (max-width: 768px) {
        .report-hero-card { padding: 1.25rem 1rem !important; }
        .report-hero-card h1 { font-size: 1.25rem !important; }
        .hero-badge-pill { font-size: 0.72rem !important; padding: 0.3rem 0.65rem !important; }
        .report-hero-card .btn { width: 100% !important; }
        .search-filter-input { width: 100% !important; }
        .search-filter-input:focus { width: 100% !important; }
        .report-content-card { padding: 1rem 0.75rem !important; }
        .table-report { min-width: 650px; }
    }
    @media print {
        .d-print-none, .navbar, .sidebar, footer, .btn, form, .breadcrumb { display: none !important; }
        body { background: #fff !important; font-size: 10pt; color: #000; }
        .report-hero-card { background: none !important; color: #000 !important; border: none !important; padding: 0 !important; box-shadow: none !important; }
        .report-hero-card h1, .report-hero-card h2, .report-hero-card p { color: #000 !important; }
        .report-content-card { border: none !important; box-shadow: none !important; padding: 0 !important; }
        .table { width: 100% !important; border: 1px solid #ddd !important; }
        .table th, .table td { border: 1px solid #ddd !important; padding: 4px 8px !important; }
    }



/* ==========================================================
   Styles from: resources/views/erp/accounting/reports/trial_balance.blade.php
   ========================================================== */
.report-hero-card {
        background: linear-gradient(135deg, #0B2E77 0%, #174291 50%, #082156 100%);
        color: #ffffff;
        border-radius: 14px;
        padding: 1.5rem 1.75rem;
        box-shadow: 0 10px 25px -5px rgba(11, 46, 119, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.12);
        position: relative;
        overflow: hidden;
    }
    .report-hero-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 350px;
        height: 350px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
        pointer-events: none;
    }
    .kpi-stat-pill {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 1.15rem 1.35rem;
        box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        height: 100%;
        border-top-width: 4px !important;
    }
    .kpi-stat-pill:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 20px -4px rgba(11, 46, 119, 0.1);
        border-color: #cbd5e1;
    }
    .report-content-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 1.5rem;
        box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
    }
    .mono-num {
        font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', Menlo, Consolas, monospace;
        letter-spacing: -0.02em;
        font-variant-numeric: tabular-nums;
    }
    .table-report th, .table-report td {
        padding: 7px 10px !important;
        vertical-align: middle !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }
    .table-report thead th {
        font-weight: 600 !important;
        font-size: 11.5px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.4px !important;
        white-space: nowrap !important;
        background-color: #f8f9fa !important;
        color: #495057 !important;
        border-bottom: 2px solid #e2e8f0 !important;
    }
    .table-report tbody td {
        border-bottom: 1px solid #f1f5f9;
    }
    .table-report tbody tr:hover td {
        background-color: #f8fafc;
    }
    .table-section-header {
        background-color: #f1f5f9 !important;
        font-weight: 700;
        color: #1e293b;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: 0.78rem;
    }
    .table-subtotal-row {
        background-color: #f8fafc !important;
        font-weight: 600;
        color: #334155;
        border-top: 1px solid #cbd5e1;
        border-bottom: 1px solid #cbd5e1;
    }
    .table-grand-total {
        background: linear-gradient(135deg, #0B2E77 0%, #082156 100%) !important;
        color: #ffffff !important;
        font-weight: 800;
        font-size: 0.95rem;
    }
    .table-grand-total td {
        color: #ffffff !important;
        border: none !important;
        padding: 0.85rem 1rem !important;
    }
    .num-debit { color: #0284c7; }
    .num-credit { color: #059669; }
    .num-negative { color: #e11d48; }
    .num-zero { color: #94a3b8; }
    .search-filter-input {
        border-radius: 8px;
        border: 1px solid #cbd5e1;
        padding: 0.45rem 0.85rem 0.45rem 2.2rem;
        font-size: 0.875rem;
        width: 260px;
        transition: all 0.2s ease;
    }
    .search-filter-input:focus {
        border-color: #0B2E77;
        box-shadow: 0 0 0 3px rgba(11, 46, 119, 0.12);
        outline: none;
        width: 300px;
    }
    .preset-pill-btn {
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.25rem 0.75rem;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        color: #64748b;
        transition: all 0.15s ease;
    }
    .preset-pill-btn:hover {
        background: #f1f5f9;
        color: #0B2E77;
        border-color: #cbd5e1;
    }
    .btn-recon-primary {
        background-color: #0B2E77;
        border-color: #0B2E77;
        color: #ffffff;
    }
    .btn-recon-primary:hover {
        background-color: #082156;
        border-color: #082156;
        color: #ffffff;
    }
    .hero-badge-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        padding: 0.35rem 0.85rem !important;
        border-radius: 50rem !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.02em;
        backdrop-filter: blur(4px);
    }
    .hero-badge-pill i {
        font-size: 0.95rem;
        margin-right: 0.25rem;
    }
    @media (max-width: 768px) {
        .report-hero-card { padding: 1.25rem 1rem !important; }
        .report-hero-card h1 { font-size: 1.25rem !important; }
        .hero-badge-pill { font-size: 0.72rem !important; padding: 0.3rem 0.65rem !important; }
        .report-hero-card .btn { width: 100% !important; }
        .search-filter-input { width: 100% !important; }
        .search-filter-input:focus { width: 100% !important; }
        .report-content-card { padding: 1rem 0.75rem !important; }
        .table-report { min-width: 650px; }
    }
    @media print {
        .d-print-none, .navbar, .sidebar, footer, .btn, form, .breadcrumb { display: none !important; }
        body { background: #fff !important; font-size: 10pt; color: #000; }
        .report-hero-card { background: none !important; color: #000 !important; border: none !important; padding: 0 !important; box-shadow: none !important; }
        .report-hero-card h1, .report-hero-card h2, .report-hero-card p { color: #000 !important; }
        .report-content-card { border: none !important; box-shadow: none !important; padding: 0 !important; }
        .table { width: 100% !important; border: 1px solid #ddd !important; }
        .table th, .table td { border: 1px solid #ddd !important; padding: 4px 8px !important; }
    }



/* ==========================================================
   Styles from: resources/views/erp/accounting/settings.blade.php
   ========================================================== */
:root {
                --recon-navy: #0B2E77;
                --recon-slate: #1e293b;
                --recon-primary: #0B2E77;
                --recon-primary-hover: #081f52;
                --recon-emerald: #10b981;
                --recon-rose: #f43f5e;
                --recon-amber: #f59e0b;
                --recon-sky: #0ea5e9;
                --recon-purple: #8b5cf6;
                --recon-bg-soft: #f8fafc;
            }

            /* Clean Modern Header Card */
            .settings-header-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 1.25rem 1.5rem;
                box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
                margin-bottom: 1.5rem;
            }

            /* KPI Cards (Exact match with Bank Reconciliation Strip) */
            .settings-kpi-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                padding: 1.25rem 1.4rem;
                transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                position: relative;
                overflow: hidden;
            }
            .settings-kpi-card:hover {
                transform: translateY(-3px);
                box-shadow: 0 14px 24px -6px rgba(15, 23, 42, 0.08);
                border-color: #cbd5e1;
            }
            .settings-kpi-card::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 3.5px;
                background: var(--kpi-accent, var(--recon-primary));
            }
            .settings-kpi-card.accent-primary { --kpi-accent: #0B2E77; }
            .settings-kpi-card.accent-sky { --kpi-accent: #0ea5e9; }
            .settings-kpi-card.accent-amber { --kpi-accent: #f59e0b; }
            .settings-kpi-card.accent-emerald { --kpi-accent: #10b981; }
            .settings-kpi-card.accent-purple { --kpi-accent: #8b5cf6; }

            .kpi-icon-bubble {
                width: 42px;
                height: 42px;
                border-radius: 10px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-size: 1.25rem;
            }

            /* Pulsing Status Badges */
            .badge-pulse {
                display: inline-flex;
                align-items: center;
                gap: 0.35rem;
            }
            .badge-pulse::before {
                content: '';
                width: 7px;
                height: 7px;
                border-radius: 50%;
                background: currentColor;
                animation: pulse-dot 1.8s infinite;
            }
            @keyframes pulse-dot {
                0%, 100% { opacity: 1; transform: scale(1); }
                50% { opacity: 0.4; transform: scale(0.85); }
            }

            /* Filter & Preset Chips */
            .preset-chip {
                font-size: 0.75rem;
                padding: 0.3rem 0.75rem;
                border-radius: 20px;
                background: #f1f5f9;
                color: #475569;
                border: 1px solid #e2e8f0;
                cursor: pointer;
                transition: all 0.15s ease;
                text-decoration: none;
                font-weight: 500;
                display: inline-flex;
                align-items: center;
                gap: 0.35rem;
            }
            .preset-chip:hover {
                background: #eef2ff;
                color: #0B2E77;
                border-color: #c7d2fe;
            }
            .preset-chip.active {
                background: #0B2E77;
                color: #ffffff;
                border-color: #0B2E77;
                box-shadow: 0 2px 6px rgba(11, 46, 119, 0.25);
            }

            /* Main Table & Side Cards */
            .settings-panel-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 14px;
                box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04);
                overflow: hidden;
            }
            .settings-panel-header {
                padding: 1.1rem 1.4rem;
                border-bottom: 1px solid #f1f5f9;
                background: #ffffff;
            }
            .settings-filter-bar {
                background: #f8fafc;
                border-bottom: 1px solid #e2e8f0;
                padding: 0.85rem 1.4rem;
            }
            .settings-table-wrap {
                padding: 0.75rem 1.25rem 1.25rem;
            }
            .settings-table-scroll {
                width: 100%;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            /* SubTypes DataTable matching standard ERP Task List */
            #subTypesTable {
                width: 100% !important;
                margin-bottom: 0;
            }
            #subTypesTable th, #subTypesTable td {
                padding: 7px 10px !important;
                vertical-align: middle !important;
                font-size: 13px !important;
                line-height: 1.35 !important;
            }
            #subTypesTable thead th {
                font-weight: 600 !important;
                font-size: 11.5px !important;
                text-transform: uppercase !important;
                letter-spacing: 0.4px !important;
                white-space: nowrap !important;
                background-color: #f8f9fa !important;
                color: #495057 !important;
                border-bottom: 2px solid #e2e8f0 !important;
            }
            #subTypesTable tbody tr:hover {
                background: #f8fafc;
            }
            #subTypesTable.dataTable.no-footer {
                border-bottom: 0;
            }

            /* Action Dropdown Menu Styling matching Task/Recruitment */
            .recruitment-action-menu {
                border-radius: 10px !important;
                border: 1px solid #e2e8f0 !important;
                box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 4px 10px -2px rgba(15, 23, 42, 0.05) !important;
                padding: 6px !important;
                min-width: 190px !important;
                z-index: 1060 !important;
            }
            .recruitment-action-menu .dropdown-item {
                border-radius: 6px !important;
                padding: 6px 10px !important;
                font-size: 12.5px !important;
                font-weight: 500 !important;
                color: #334155 !important;
                transition: all 0.15s ease !important;
                outline: none !important;
            }
            .recruitment-action-menu .dropdown-item:hover,
            .recruitment-action-menu .dropdown-item:focus {
                background-color: #f1f5f9 !important;
                color: #0f172a !important;
                outline: none !important;
                box-shadow: none !important;
            }
            .recruitment-action-menu .dropdown-item.item-danger {
                color: #dc2626 !important;
            }
            .recruitment-action-menu .dropdown-item.item-danger:hover,
            .recruitment-action-menu .dropdown-item.item-danger:focus {
                background-color: #fef2f2 !important;
                color: #b91c1c !important;
            }

            /* Custom Status Badges */
            .tx-badge {
                display: inline-flex;
                align-items: center;
                padding: .25rem .65rem;
                border-radius: 999px;
                font-size: 11px;
                font-weight: 600;
                white-space: nowrap;
            }
            .tx-badge-success {
                background: #dcfce7;
                color: #15803d;
                border: 1px solid rgba(22, 163, 74, 0.2);
            }
            .tx-badge-muted {
                background: #f1f5f9;
                color: #64748b;
                border: 1px solid #e2e8f0;
            }

            /* Signature Display Frame */
            .sig-preview-frame {
                background: #ffffff;
                border: 1px dashed #cbd5e1;
                border-radius: 12px;
                padding: 1.25rem 1rem;
                text-align: center;
                position: relative;
                transition: all 0.2s ease;
            }
            .sig-preview-frame:hover {
                border-color: #0B2E77;
                background: #fafbfc;
            }

            /* 3-Tier Workflow Step Item */
            .tier-step-item {
                display: flex;
                align-items: flex-start;
                gap: 0.75rem;
                padding: 0.75rem 0;
                border-bottom: 1px solid #f1f5f9;
            }
            .tier-step-item:last-child {
                border-bottom: none;
                padding-bottom: 0;
            }
            .tier-step-num {
                width: 26px;
                height: 26px;
                border-radius: 50%;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-size: 12px;
                font-weight: 700;
                flex-shrink: 0;
                margin-top: 2px;
            }

            /* Signature Dropzone UI */
            .sig-dropzone {
                border: 2px dashed #cbd5e1;
                border-radius: 12px;
                padding: 1.5rem 1rem;
                text-align: center;
                background: #fafbfc;
                cursor: pointer;
                transition: all 0.2s ease;
            }
            .sig-dropzone:hover, .sig-dropzone.dragover {
                border-color: #0B2E77;
                background: #f0f4fc;
            }

            /* Mobile Friendly Tweaks */
            @media (max-width: 576px) {
                .mobile-btn-stack {
                    width: 100% !important;
                }
                .mobile-btn-stack .btn {
                    width: 100% !important;
                    justify-content: center;
                }
                .filter-pill-wrap {
                    overflow-x: auto;
                    flex-wrap: nowrap !important;
                    padding-bottom: 4px;
                    -webkit-overflow-scrolling: touch;
                }
            }



/* ==========================================================
   Universal ERP List Views, Tables & DataTables Standard
   Reusable classes for Tasks, Projects, Vouchers, Recruitment, etc.
   ========================================================== */

/* 1. Reusable Standardized ERP Table */
.erp-list-table,
#mainTaskTable,
#projectsTable,
#vouchersTable,
#recruitmentTable,
#billsTable,
#vendorsTable,
#transferTable,
#checksTable {
    border-color: #e2e8f0 !important;
}
.erp-list-table th, .erp-list-table td,
#mainTaskTable th, #mainTaskTable td,
#mainBugTable th, #mainBugTable td,
#projectsTable th, #projectsTable td,
#vouchersTable th, #vouchersTable td,
#recruitmentTable th, #recruitmentTable td,
#billsTable th, #billsTable td,
#vendorsTable th, #vendorsTable td,
#transferTable th, #transferTable td,
#checksTable th, #checksTable td {
    padding: 7px 10px !important;
    vertical-align: middle !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    border-color: #e2e8f0 !important;
}
.erp-list-table thead th,
#mainTaskTable thead th,
#mainBugTable thead th,
#projectsTable thead th,
#vouchersTable thead th,
#recruitmentTable thead th,
#billsTable thead th,
#vendorsTable thead th,
#transferTable thead th,
#checksTable thead th {
    font-weight: 600 !important;
    font-size: 11.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    white-space: nowrap !important;
    background-color: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 2px solid #e2e8f0 !important;
}
.erp-list-table tbody tr:hover,
#mainTaskTable tbody tr:hover,
#mainBugTable tbody tr:hover,
#projectsTable tbody tr:hover,
#vouchersTable tbody tr:hover,
#recruitmentTable tbody tr:hover,
#billsTable tbody tr:hover,
#vendorsTable tbody tr:hover,
#transferTable tbody tr:hover,
#checksTable tbody tr:hover { 
    background-color: #f8fafc !important; 
}
.erp-list-table.dataTable.no-footer,
#mainTaskTable.dataTable.no-footer,
#mainBugTable.dataTable.no-footer,
#projectsTable.dataTable.no-footer,
#vouchersTable.dataTable.no-footer,
#recruitmentTable.dataTable.no-footer,
#billsTable.dataTable.no-footer,
#vendorsTable.dataTable.no-footer,
#transferTable.dataTable.no-footer,
#checksTable.dataTable.no-footer { 
    border-bottom: 0; 
}

/* 2. Interactive Title & Table Links */
.task-title-link,
.bug-title-link,
.erp-table-link {
    color: #0d6efd !important;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.15s ease-in-out, text-decoration 0.15s ease-in-out;
}
.task-title-link:hover,
.bug-title-link:hover,
.erp-table-link:hover {
    color: #0a58ca !important;
    text-decoration: underline !important;
}

/* 3. Reusable Clickable Stat & KPI Filter Cards */
.stat-filter-card,
.task-stat-card,
.project-stat-card,
.recruitment-stat-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px;
    position: relative;
}
.stat-filter-card:hover,
.task-stat-card:hover,
.project-stat-card:hover,
.recruitment-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: #cbd5e1 !important;
}
.stat-filter-card.is-active-primary,
.task-stat-card.is-active-primary,
.project-stat-card.is-active-primary,
.recruitment-stat-card.is-active-primary {
    border-color: #0d6efd !important;
    background-color: #f8faff !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
.stat-filter-card.is-active-info,
.task-stat-card.is-active-info,
.project-stat-card.is-active-info,
.recruitment-stat-card.is-active-info {
    border-color: #0284c7 !important;
    background-color: #f0f9ff !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
.stat-filter-card.is-active-warning,
.task-stat-card.is-active-warning,
.project-stat-card.is-active-warning,
.recruitment-stat-card.is-active-warning {
    border-color: #d97706 !important;
    background-color: #fffbeb !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
.stat-filter-card.is-active-danger,
.task-stat-card.is-active-danger,
.project-stat-card.is-active-danger,
.recruitment-stat-card.is-active-danger {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
.stat-filter-card.is-active-success,
.task-stat-card.is-active-success,
.project-stat-card.is-active-success,
.recruitment-stat-card.is-active-success {
    border-color: #198754 !important;
    background-color: #f6fdf9 !important;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
.stat-filter-card.is-active-purple,
.task-stat-card.is-active-purple,
.project-stat-card.is-active-purple,
.recruitment-stat-card.is-active-purple {
    border-color: #7c3aed !important;
    background-color: #f5f3ff !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
.stat-filter-card.is-active-teal,
.task-stat-card.is-active-teal,
.project-stat-card.is-active-teal,
.recruitment-stat-card.is-active-teal {
    border-color: #0d9488 !important;
    background-color: #f0fdfa !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
.stat-filter-card .active-indicator,
.task-stat-card .active-indicator,
.project-stat-card .active-indicator,
.recruitment-stat-card .active-indicator {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px;
}
.stat-filter-card[class*="is-active-"] .active-indicator,
.task-stat-card[class*="is-active-"] .active-indicator,
.project-stat-card[class*="is-active-"] .active-indicator,
.recruitment-stat-card[class*="is-active-"] .active-indicator {
    display: block;
}

/* 4. Column Visibility Dropdown */
.column-vis-dropdown {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #e2e8f0 !important;
    padding: 6px !important;
    min-width: 170px !important;
    z-index: 1060 !important;
}
.column-vis-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.12s ease;
    user-select: none;
}
.column-vis-item:hover {
    background-color: #f1f5f9;
}
.column-vis-item .check-mark {
    font-size: 14px;
    font-weight: bold;
    color: #0f172a;
    visibility: hidden;
}
.column-vis-item.is-active .check-mark {
    visibility: visible;
}

/* 5. Custom Color Themes (Purple & Teal) */
.bg-purple { background-color: #7c3aed !important; }
.bg-purple-subtle { background-color: #f5f3ff !important; }
.text-purple { color: #7c3aed !important; }

.bg-teal { background-color: #0d9488 !important; }
.bg-teal-subtle { background-color: #f0fdfa !important; }
.text-teal { color: #0d9488 !important; }

/* 6. Action & Payout Menus */
.recruitment-action-menu,
.erp-action-dropdown {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 4px 10px -2px rgba(15, 23, 42, 0.05) !important;
    padding: 6px !important;
    min-width: 190px !important;
    z-index: 1060 !important;
}
.recruitment-action-menu .dropdown-item,
.erp-action-dropdown .dropdown-item {
    border-radius: 6px !important;
    padding: 6px 10px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    transition: all 0.15s ease !important;
    outline: none !important;
}
.recruitment-action-menu .dropdown-item:hover,
.recruitment-action-menu .dropdown-item:focus,
.erp-action-dropdown .dropdown-item:hover,
.erp-action-dropdown .dropdown-item:focus {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: none !important;
}
.recruitment-action-menu .dropdown-item.item-danger,
.erp-action-dropdown .dropdown-item.item-danger {
    color: #dc2626 !important;
}
.recruitment-action-menu .dropdown-item.item-danger:hover,
.recruitment-action-menu .dropdown-item.item-danger:focus,
.erp-action-dropdown .dropdown-item.item-danger:hover,
.erp-action-dropdown .dropdown-item.item-danger:focus {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
}

.export-payout-menu {
    min-width: 275px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 6px;
    z-index: 1050;
}
.export-payout-menu .dropdown-item {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    transition: background-color 0.12s ease;
}
.export-payout-menu .dropdown-item:hover {
    background-color: #f1f5f9;
}
.erp-dropdown-menu-sm {
    min-width: 140px;
    border-radius: 10px;
}
.erp-dropdown-menu-lg {
    min-width: 170px;
    border-radius: 10px;
}

/* 7. ERP Status Pills & Dots */
.erp-status-btn-pill {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    padding: 3px 10px !important;
    border: 1px solid !important;
    background-color: #ffffff;
    text-transform: capitalize;
}
.erp-status-badge-pill {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    padding: 3px 10px !important;
    border: 1px solid !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    text-transform: capitalize;
}
.erp-status-pending {
    color: #d97706 !important;
    background-color: #fef3c7 !important;
    border-color: #fde68a !important;
}
.erp-status-approved {
    color: #059669 !important;
    background-color: #d1fae5 !important;
    border-color: #a7f3d0 !important;
}
.erp-status-posted {
    color: #2563eb !important;
    background-color: #dbeafe !important;
    border-color: #bfdbfe !important;
}
.erp-status-dot-6 {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.erp-status-dot-8 {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.erp-status-dot-pending {
    background-color: #d97706 !important;
}
.erp-status-dot-approved {
    background-color: #059669 !important;
}
.erp-status-dot-posted {
    background-color: #2563eb !important;
}

/* 8. DataTables Controls & Pagination (Task Standard) */
.dataTables_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    margin-bottom: 0;
}
.dataTables_wrapper .dataTables_length select {
    display: inline-block;
    width: auto;
    padding: 0.3rem 1.85rem 0.3rem 0.65rem;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
}
.dataTables_wrapper .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    margin-bottom: 0;
}
.dataTables_wrapper .dataTables_filter input {
    display: inline-block;
    width: auto;
    padding: 0.3rem 0.65rem;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}
.dataTables_wrapper .dataTables_info {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    padding-top: 0.25rem !important;
}
.dataTables_wrapper .dataTables_paginate {
    padding-top: 0.25rem !important;
}
.dataTables_wrapper .dataTables_paginate .pagination {
    margin-bottom: 0;
    gap: 3px;
}
.dataTables_wrapper .dataTables_paginate .page-link {
    border-radius: 6px !important;
    padding: 0.25rem 0.6rem;
    font-size: 12.5px;
    font-weight: 500;
    color: #475569;
    border: 1px solid #e2e8f0;
    line-height: 1.4;
    transition: all 0.15s ease;
}
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
    font-weight: 600;
}
.dataTables_wrapper .dataTables_paginate .page-link:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: #ffffff;
    border-color: #e2e8f0;
}

@media (max-width: 575.98px) {
    .dataTables_length, .dataTables_filter {
        width: 100%;
        margin-bottom: 0.65rem;
    }
    .dataTables_filter label, .dataTables_length label {
        width: 100%;
        justify-content: space-between;
    }
    .dataTables_filter input {
        flex-grow: 1;
        max-width: 200px;
    }
    .export-payout-menu {
        max-width: 90vw;
    }
}

/* 9. Accounting Utility Classes */
.letter-spacing-1 { letter-spacing: 0.05em; }
.report-row { transition: background-color 0.15s ease; }
.report-row:hover { background-color: rgba(11, 46, 119, 0.025); }

/* ==========================================================================
   10. COMMON MODULE COMPONENTS (Tasks, Bugs, Clients, Staff, ID Cards)
   ========================================================================== */

/* Status Cards & Dashboard Hover */
.task-status-card, .bug-status-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.task-status-card:hover, .bug-status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}
.js-dashboard-metric {
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.js-dashboard-metric:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1 !important;
}

/* Form Helper & Toggle Components */
.perm-card {
    cursor: pointer;
    transition: all 0.2s ease;
}
.perm-card:hover {
    border-color: #0d6efd !important;
}
.border-dashed {
    border-style: dashed !important;
}
.yn-toggle .btn-check:checked + .btn {
    background: #212529;
    border-color: #212529;
    color: #fff;
}

/* Horizontal Tab Slider (Used in Clients & Projects) */
.tab-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
    max-width: 100%;
    overflow: hidden;
}
.nav-tabs-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    flex-grow: 1;
    padding: 0 5px;
}
.nav-tabs-wrapper::-webkit-scrollbar {
    display: none;
}
.tab-item {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    outline: none !important;
    border: 1px solid transparent;
    user-select: none;
    white-space: nowrap;
}
.tab-item:focus,
.tab-item:focus-visible,
.tab-item:active {
    outline: none !important;
    box-shadow: none !important;
}
.tab-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.tab-item.active {
    background: #0f172a !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12) !important;
}
.tab-item.active i {
    color: #ffffff !important;
}
.tab-item .tab-count,
.tab-item .badge {
    background-color: #e2e8f0 !important;
    color: #475569 !important;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    padding: 0.18rem 0.5rem;
    transition: all 0.15s ease;
}
.tab-item.active .tab-count,
.tab-item.active .badge {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}
.slider-arrow {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    outline: none !important;
}
.slider-arrow:focus,
.slider-arrow:focus-visible,
.slider-arrow:active {
    outline: none !important;
    box-shadow: none !important;
}
.slider-arrow:hover {
    background: #f8fafc;
    color: #0f172a;
}
@media (max-width: 767.98px) {
    .tab-slider-container {
        padding: 3px;
        border-radius: 8px;
    }
    .slider-arrow {
        width: 28px;
        height: 30px;
        font-size: 11px;
    }
    .tab-item {
        padding: 6px 11px;
        font-size: 12px;
    }
}

/* Staff Create Wizard Stepper */
.wizard-stepper-container {
    position: relative;
    padding: 0 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.wizard-stepper-container::-webkit-scrollbar {
    height: 4px;
}
.wizard-stepper-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.wizard-stepper-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.wizard-stepper-track {
    position: relative;
    min-width: 100%;
    padding-bottom: 4px;
}
.wizard-progress-bar {
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
    border-radius: 4px;
}
.wizard-progress-line {
    height: 100%;
    width: 0%;
    background: #10b981;
    transition: width 0.35s ease;
    border-radius: 4px;
}
.wizard-steps-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    gap: 12px;
}
.wizard-step-item {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    outline: none;
    flex: 1 1 0px;
    min-width: 75px;
}
.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    color: #64748b;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.step-check {
    display: none;
    font-size: 20px;
}
.step-label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    line-height: 1.25;
    transition: color 0.3s ease;
}
.wizard-step-item.active .step-circle {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}
.wizard-step-item.active .step-label {
    color: #10b981;
    font-weight: 700;
}
.wizard-step-item.completed .step-circle {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}
.wizard-step-item.completed .step-num {
    display: none;
}
.wizard-step-item.completed .step-check {
    display: block;
}
.wizard-step-item.completed .step-label {
    color: #334155;
}
.wizard-pane {
    display: none;
    animation: fadeInWizard 0.3s ease;
}
.wizard-pane.active {
    display: block;
}
@keyframes fadeInWizard {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.custom-radio-pill .form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
    cursor: pointer;
}
.custom-radio-pill .form-check-label {
    cursor: pointer;
    padding-left: 2px;
}
@media (max-width: 991.98px) {
    .wizard-stepper-track {
        min-width: 620px;
    }
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .step-label {
        font-size: 12px;
        max-width: 90px;
    }
    .wizard-progress-bar {
        top: 20px;
        left: 30px;
        right: 30px;
    }
}
@media (max-width: 575.98px) {
    .wizard-stepper-container {
        padding: 0 2px;
        margin-left: -4px;
        margin-right: -4px;
    }
    .wizard-stepper-track {
        min-width: 560px;
        padding-left: 8px;
        padding-right: 8px;
    }
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    .step-label {
        font-size: 11px;
        max-width: 80px;
    }
    .wizard-progress-bar {
        top: 18px;
        left: 25px;
        right: 25px;
    }
}

/* ==========================================================================
   11. STAFF ID CARDS & CROPPER MODAL STYLES
   ========================================================================== */
#cropPhotoModal .modal-content {
    border-radius: 10px;
    overflow: hidden;
    border: none;
}
#cropPhotoModal .crop-preview-box {
    background-color: #0b0f19;
    height: 380px;
    max-height: 55vh;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
#cropPhotoModal .crop-preview-box img {
    max-width: 100%;
    display: block;
}
#cropPhotoModal .cropper-view-box {
    outline: 2px solid #ffffff;
    outline-color: #ffffff;
}
#cropPhotoModal .cropper-line,
#cropPhotoModal .cropper-point {
    background-color: #ffffff;
}
#cropPhotoModal .cropper-bg {
    background-image: none;
    background-color: #0b0f19;
}
#cropZoomSlider {
    accent-color: #4b5563;
    cursor: pointer;
}

.idcard-page-header {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}
.idcard-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}
.idcard-stat-pill strong { color: #0f172a; }
.idcard-stat-pill.pill-active  { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.idcard-stat-pill.pill-pending { background: #fffbeb; border-color: #fde68a; color: #92400e; }

.staff-cards-grid-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
    align-items: start;
    justify-items: center;
}
@media (max-width: 420px) { .staff-cards-grid-wrap { grid-template-columns: 1fr; } }

.staff-idcard-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.staff-idcard-item.selected .idcard-badge-container {
    outline: 3px solid #16a34a;
    outline-offset: 4px;
}

.card-action-bar {
    width: 270px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.idcard-badge-container {
    position: relative;
    padding: 12px 10px 14px 10px;
    background: rgba(241, 245, 249, 0.65);
    border: 1.5px solid rgba(203, 213, 225, 0.85);
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pouch-slot {
    width: 48px;
    height: 7px;
    background: #cbd5e1;
    border-radius: 10px;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.pouch-sleeve-effect {
    position: absolute;
    top: 26px;
    left: 5px;
    right: 5px;
    bottom: 6px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 18px;
    pointer-events: none;
    z-index: 25;
}

.idcard-surface {
    position: relative;
    width: 260px;
    height: 410px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    display: flex;
    flex-direction: column;
}

.idcard-top-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 195px;
    z-index: 1;
    overflow: hidden;
}
.idcard-top-bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.idcard-brand-header {
    position: absolute;
    top: 14px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 5;
    padding: 0 16px 0 18px;
    text-align: left;
}
.brand-logo-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}
.brand-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 2px 5px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    height: 26px;
    min-width: 30px;
    flex-shrink: 0;
}
.brand-logo-icon {
    max-width: 35px;
    max-height: 21px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.brand-cube-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #eab308;
    font-size: 19px;
}
.brand-company-title {
    font-size: 13.5px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.2px;
    line-height: 1.15;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    white-space: normal;
    max-width: 165px;
    word-break: break-word;
    text-align: left;
    text-transform: capitalize;
}
.brand-company-title .company-legal-suffix {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    white-space: nowrap;
    margin-top: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

.idcard-avatar-wrap {
    position: absolute;
    top: 92px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 106px;
    height: 106px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 3px #ca8a04, 0 4px 14px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}
.idcard-avatar-circle {
    width: 98px;
    height: 98px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.idcard-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.idcard-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #15803d, #22c55e);
}

.idcard-content-body {
    position: absolute;
    top: 202px;
    left: 0;
    width: 100%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 14px 12px 14px;
    background: #ffffff;
    z-index: 2;
}

.emp-name-title {
    font-size: 13px;
    font-weight: 800;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    line-height: 1.2;
    margin-bottom: 2px;
    text-align: center;
    width: 100%;
    max-width: 235px;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.emp-role-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: #ca8a04;
    line-height: 1.2;
    margin-bottom: 8px;
    text-align: center;
    max-width: 235px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emp-meta-table {
    width: 82%;
    margin-bottom: auto;
}
.emp-meta-table tr td {
    padding: 2.5px 0;
    font-size: 13px;
    line-height: 1.3;
}
.emp-label-col {
    color: #16a34a;
    font-weight: 700;
    width: 55px;
}
.emp-colon-col {
    color: #374151;
    font-weight: 600;
    width: 16px;
    text-align: center;
}
.emp-value-col {
    color: #374151;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emp-barcode-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 6px;
}
.emp-barcode-svg {
    width: 195px;
    height: 48px;
    display: block;
}
.emp-card-website-tag {
    font-size: 9.5px;
    color: #4b5563;
    letter-spacing: 0.2px;
    font-weight: 500;
    margin-top: 1px;
}
.card-qr-storage {
    position: absolute;
    left: -9999px;
    top: 0;
}

/* 8 Color Theme Combinations for ID Cards */
.idcard-surface.tpl-emerald_green .idcard-avatar-wrap { box-shadow: 0 0 0 3px #ca8a04, 0 4px 14px rgba(0,0,0,0.18); }
.idcard-surface.tpl-emerald_green .emp-name-title { color: #15803d; }
.idcard-surface.tpl-emerald_green .emp-role-subtitle { color: #ca8a04; }
.idcard-surface.tpl-emerald_green .emp-label-col { color: #16a34a; }
.idcard-surface.tpl-emerald_green .brand-cube-icon { color: #eab308; }
.idcard-surface.tpl-emerald_green .idcard-avatar-initials { background: linear-gradient(135deg, #15803d, #22c55e); }

.idcard-surface.tpl-corporate_blue .idcard-avatar-wrap { box-shadow: 0 0 0 3px #0284c7, 0 4px 14px rgba(0,0,0,0.18); }
.idcard-surface.tpl-corporate_blue .emp-name-title { color: #1e40af; }
.idcard-surface.tpl-corporate_blue .emp-role-subtitle { color: #0284c7; }
.idcard-surface.tpl-corporate_blue .emp-label-col { color: #2563eb; }
.idcard-surface.tpl-corporate_blue .brand-cube-icon { color: #38bdf8; }
.idcard-surface.tpl-corporate_blue .idcard-avatar-initials { background: linear-gradient(135deg, #1e40af, #3b82f6); }

.idcard-surface.tpl-ruby_red .idcard-avatar-wrap { box-shadow: 0 0 0 3px #f59e0b, 0 4px 14px rgba(0,0,0,0.18); }
.idcard-surface.tpl-ruby_red .emp-name-title { color: #b91c1c; }
.idcard-surface.tpl-ruby_red .emp-role-subtitle { color: #d97706; }
.idcard-surface.tpl-ruby_red .emp-label-col { color: #dc2626; }
.idcard-surface.tpl-ruby_red .brand-cube-icon { color: #fbbf24; }
.idcard-surface.tpl-ruby_red .idcard-avatar-initials { background: linear-gradient(135deg, #b91c1c, #ef4444); }

.idcard-surface.tpl-royal_purple .idcard-avatar-wrap { box-shadow: 0 0 0 3px #ec4899, 0 4px 14px rgba(0,0,0,0.18); }
.idcard-surface.tpl-royal_purple .emp-name-title { color: #6b21a8; }
.idcard-surface.tpl-royal_purple .emp-role-subtitle { color: #db2777; }
.idcard-surface.tpl-royal_purple .emp-label-col { color: #7c3aed; }
.idcard-surface.tpl-royal_purple .brand-cube-icon { color: #f472b6; }
.idcard-surface.tpl-royal_purple .idcard-avatar-initials { background: linear-gradient(135deg, #6b21a8, #8b5cf6); }

.idcard-surface.tpl-sunset_orange .idcard-avatar-wrap { box-shadow: 0 0 0 3px #ea580c, 0 4px 14px rgba(0,0,0,0.18); }
.idcard-surface.tpl-sunset_orange .emp-name-title { color: #c2410c; }
.idcard-surface.tpl-sunset_orange .emp-role-subtitle { color: #ea580c; }
.idcard-surface.tpl-sunset_orange .emp-label-col { color: #ea580c; }
.idcard-surface.tpl-sunset_orange .brand-cube-icon { color: #fb923c; }
.idcard-surface.tpl-sunset_orange .idcard-avatar-initials { background: linear-gradient(135deg, #c2410c, #f97316); }

.idcard-surface.tpl-midnight_dark .idcard-avatar-wrap { box-shadow: 0 0 0 3px #64748b, 0 4px 14px rgba(0,0,0,0.18); }
.idcard-surface.tpl-midnight_dark .emp-name-title { color: #0f172a; }
.idcard-surface.tpl-midnight_dark .emp-role-subtitle { color: #475569; }
.idcard-surface.tpl-midnight_dark .emp-label-col { color: #334155; }
.idcard-surface.tpl-midnight_dark .brand-cube-icon { color: #94a3b8; }
.idcard-surface.tpl-midnight_dark .idcard-avatar-initials { background: linear-gradient(135deg, #0f172a, #334155); }

.idcard-surface.tpl-pine_orange .idcard-avatar-wrap { box-shadow: 0 0 0 3px #ea580c, 0 4px 14px rgba(0,0,0,0.18); }
.idcard-surface.tpl-pine_orange .emp-name-title { color: #065f46; }
.idcard-surface.tpl-pine_orange .emp-role-subtitle { color: #ea580c; }
.idcard-surface.tpl-pine_orange .emp-label-col { color: #047857; }
.idcard-surface.tpl-pine_orange .brand-cube-icon { color: #f97316; }
.idcard-surface.tpl-pine_orange .idcard-avatar-initials { background: linear-gradient(135deg, #065f46, #059669); }

.idcard-surface.tpl-sapphire_gold .idcard-avatar-wrap { box-shadow: 0 0 0 3px #ca8a04, 0 4px 14px rgba(0,0,0,0.18); }
.idcard-surface.tpl-sapphire_gold .emp-name-title { color: #0c2461; }
.idcard-surface.tpl-sapphire_gold .emp-role-subtitle { color: #ca8a04; }
.idcard-surface.tpl-sapphire_gold .emp-label-col { color: #1e3799; }
.idcard-surface.tpl-sapphire_gold .brand-cube-icon { color: #eab308; }
.idcard-surface.tpl-sapphire_gold .idcard-avatar-initials { background: linear-gradient(135deg, #0c2461, #1e3799); }

.theme-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 50px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #334155;
    transition: all 0.2s ease;
    cursor: pointer;
}
.theme-picker-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}
.theme-picker-btn.active-theme {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}
.theme-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1.5px solid rgba(255,255,255,0.9);
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

@media print {
    body:has(.print-a4-sheet) * { visibility: hidden !important; }
    body:has(.print-a4-sheet) #print-container, body:has(.print-a4-sheet) #print-container * { visibility: visible !important; }
    #print-container {
        position: absolute !important;
        left: 0 !important; top: 0 !important;
        width: 100% !important;
        background: #fff !important;
        padding: 10mm !important;
        margin: 0 !important;
        display: block !important;
    }
    .print-a4-sheet {
        display: grid !important;
        grid-template-columns: repeat(2, 260px) !important;
        gap: 15mm 20mm !important;
        justify-content: center !important;
        align-content: start !important;
        margin-bottom: 12mm !important;
        page-break-after: always !important;
        break-after: page !important;
    }
    .print-a4-sheet .idcard-surface {
        width: 260px !important;
        height: 410px !important;
        box-shadow: none !important;
        border: 1px dashed #cbd5e1 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
}

/* Sidebar submenu & collapsible arrow styling */
.sidebar-nav .nav-link .nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: auto;
    font-size: 11px;
    color: var(--admin-sidebar-muted, #94a3b8);
    transition: transform 0.2s ease-in-out, color 0.15s ease;
    flex-shrink: 0;
}
.sidebar-nav .nav-link:hover .nav-arrow {
    color: var(--admin-sidebar-text-strong, #0f172a);
}
.sidebar-nav .nav-link.collapsed .nav-arrow i {
    transform: rotate(-90deg);
}
.sidebar-nav .nav-link:not(.collapsed) .nav-arrow i {
    transform: rotate(0deg);
}

/* Submenu container (tree line) */
.sidebar-nav ul.sidebar-submenu,
.sidebar-nav .collapse ul.nav,
.sidebar-nav .collapse .nav,
.sidebar-nav .collapsing ul.nav,
.sidebar-nav .collapsing .nav {
    border-left: 2px solid #e2e8f0 !important;
    margin-left: 1.35rem !important;
    padding-left: 0.5rem !important;
    margin-top: 0.2rem !important;
    margin-bottom: 0.35rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    gap: 0.15rem !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Submenu items: always clean and compact, never fat */
.sidebar-nav .sidebar-sub-link,
.sidebar-nav .collapse .nav-link,
.sidebar-nav .collapsing .nav-link {
    display: flex !important;
    align-items: center !important;
    min-height: 32px !important;
    max-height: 32px !important;
    height: 32px !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    border-radius: 6px !important;
    gap: 0.5rem !important;
    color: var(--admin-sidebar-text, #475569) !important;
    background: transparent !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transform: none !important;
    box-shadow: none !important;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
}

.sidebar-nav .sidebar-sub-link:hover,
.sidebar-nav .collapse .nav-link:hover,
.sidebar-nav .collapsing .nav-link:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    color: #2563eb !important;
    transform: translateX(2px) !important;
}

.sidebar-nav .sidebar-sub-link:focus,
.sidebar-nav .collapse .nav-link:focus,
.sidebar-nav .collapsing .nav-link:focus {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.sidebar-nav .sidebar-sub-link.active,
.sidebar-nav .collapse .nav-link.active,
.sidebar-nav .collapsing .nav-link.active {
    background: #e0edff !important;
    color: #1d4ed8 !important;
    font-weight: 600 !important;
}

.sidebar-nav .sidebar-sub-link i.bi-circle-fill,
.sidebar-nav .collapse .nav-link i.bi-circle-fill,
.sidebar-nav .collapsing .nav-link i.bi-circle-fill {
    font-size: 5px !important;
    opacity: 0.6 !important;
    transition: transform 0.15s ease !important;
    color: currentColor !important;
    display: inline-block !important;
    line-height: 1 !important;
}

.sidebar-nav .sidebar-sub-link:hover i.bi-circle-fill,
.sidebar-nav .sidebar-sub-link.active i.bi-circle-fill,
.sidebar-nav .collapse .nav-link:hover i.bi-circle-fill,
.sidebar-nav .collapse .nav-link.active i.bi-circle-fill,
.sidebar-nav .collapsing .nav-link:hover i.bi-circle-fill,
.sidebar-nav .collapsing .nav-link.active i.bi-circle-fill {
    opacity: 1 !important;
    transform: scale(1.2) !important;
}


/* =========================================================================
   OPPORTUNITY MANAGEMENT MODULE (PIPELINE, DETAILS, SOURCES, STAGES)
   ========================================================================= */

/* Topbar & Common Badges */
.task-topbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: .85rem;
    padding: 1.15rem 1.35rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.task-code {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    font-size: .78rem;
    letter-spacing: .5px;
    padding: .3rem .55rem;
    border-radius: .4rem;
    font-weight: 600;
}

.btn-pill {
    border-radius: .55rem;
    padding: .4rem .8rem;
    font-weight: 600;
    font-size: .8125rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
    transition: all .15s ease-in-out;
}

.btn-ghost {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

.btn-ghost:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.btn-brand-green {
    background-color: #10b981;
    border-color: #10b981;
    color: #ffffff;
    font-weight: 600;
}
.btn-brand-green:hover {
    background-color: #059669;
    border-color: #059669;
    color: #ffffff;
}

/* KPI Cards */
.stat-label {
    font-size: 10px;
    letter-spacing: .5px;
    font-weight: 700;
}

.lead-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    padding: .85rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: all 0.15s ease;
}

.lead-kpi-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 3px 6px rgba(0,0,0,0.04);
}

.lead-kpi-val {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    color: #0f172a;
}

/* Dynamic Stage Status Pills (like leads stat-bar) */
.crm-stat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
}
.crm-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    user-select: none;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.crm-stat-pill:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    transform: translateY(-1px);
}
.crm-stat-pill.active {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(37,99,235,0.12);
}
.crm-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.crm-stat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: #1e293b;
}
.crm-stat-pill.active .crm-stat-count {
    background: #2563eb;
    color: #ffffff;
}

/* Collapsible Filters Bar */
.crm-filter-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    margin-bottom: 1.25rem;
}
.crm-filter-header {
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.crm-filter-body {
    padding: 14px 16px;
}

/* Modern Kanban Layout */
.kanban-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}
.kanban-scroll-container::-webkit-scrollbar {
    height: 7px;
}
.kanban-scroll-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.kanban-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.kanban-column {
    width: 310px;
    flex-shrink: 0;
}
.kanban-column-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.kanban-cards-list {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 8px;
    min-height: 520px;
}
.kanban-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 12px 14px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    cursor: grab;
    transition: all 0.15s ease-in-out;
}
.kanban-card:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}
.kanban-ghost {
    opacity: 0.35;
    background: #e2e8f0 !important;
    border: 2px dashed #3b82f6 !important;
}
.kanban-chosen {
    cursor: grabbing !important;
}

/* List Table matching Tasks Module */
#mainOpportunityTable th, #mainOpportunityTable td {
    padding: 8px 12px !important;
    vertical-align: middle !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}
#mainOpportunityTable thead th {
    font-weight: 600 !important;
    font-size: 11.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    white-space: nowrap !important;
    background-color: #f8fafc !important;
    color: #475569 !important;
    position: sticky;
    top: 0;
    z-index: 2;
}
#mainOpportunityTable tbody tr:hover td {
    background-color: #f8faff !important;
}
#mainOpportunityTable .dropdown-menu {
    z-index: 1080 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
}

/* Detail View: Page Container & Chevron Pipeline */
.opp-page-container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}

.opp-pipeline-container {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    margin-bottom: 24px;
    padding: 5px;
    gap: 5px;
    scrollbar-width: thin;
}
.opp-pipeline-step {
    flex: 1 1 0;
    min-width: 140px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: default !important;
    pointer-events: none;
    transition: all 0.2s ease;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    position: relative;
    user-select: none;
}
.opp-pipeline-step.is-active {
    background: #2563eb;
    color: #ffffff !important;
    border-color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.opp-pipeline-step.is-active .opp-step-title,
.opp-pipeline-step.is-active .opp-step-prob {
    color: #ffffff !important;
}
.opp-pipeline-step.is-completed {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.opp-pipeline-step.is-completed .opp-step-title {
    color: #166534;
}
.opp-pipeline-step.is-completed .opp-step-prob {
    color: #15803d;
}
.opp-pipeline-step.is-won {
    background: #10b981;
    color: #ffffff !important;
    border-color: #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.opp-pipeline-step.is-won .opp-step-title,
.opp-pipeline-step.is-won .opp-step-prob {
    color: #ffffff !important;
}
.opp-pipeline-step.is-lost {
    background: #ef4444;
    color: #ffffff !important;
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}
.opp-pipeline-step.is-lost .opp-step-title,
.opp-pipeline-step.is-lost .opp-step-prob {
    color: #ffffff !important;
}
.opp-step-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.opp-step-prob {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    margin-top: 2px;
}

/* Detail Top 4 Stat Metric Cards */
.stat-metric-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
}
.stat-metric-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 3px 8px rgba(0,0,0,0.04);
}
.stat-metric-label {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 3px;
    text-transform: capitalize;
}
.stat-metric-value {
    font-size: 18.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0;
    line-height: 1.2;
}
.stat-metric-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}
.stat-metric-icon-box.icon-green {
    background: #ecfdf5;
    color: #10b981;
}
.stat-metric-icon-box.icon-blue {
    background: #eff6ff;
    color: #3b82f6;
}
.stat-metric-icon-box.icon-orange {
    background: #fff7ed;
    color: #f97316;
}
.stat-metric-icon-box.icon-purple {
    background: #f5f3ff;
    color: #8b5cf6;
}

/* WorkDo SaaS Card Container */
.workdo-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    margin-bottom: 24px;
}
.workdo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.workdo-card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.workdo-card-title i {
    color: #64748b;
    font-size: 16px;
}

/* Inner Record Box */
.record-inner-box {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
}
.record-inner-box:last-child {
    margin-bottom: 0;
}
.record-inner-box:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.avatar-initial-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

/* Products Table */
.workdo-product-table thead th {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 14px;
}
.workdo-product-table tbody td {
    font-size: 13px;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* Activity Stream Timeline */
.stream-timeline {
    position: relative;
    padding-left: 36px;
}
.stream-timeline::before {
    content: '';
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 14px;
    width: 2px;
    background: #e2e8f0;
}
.stream-item {
    position: relative;
    margin-bottom: 22px;
}
.stream-item:last-child {
    margin-bottom: 0;
}
.stream-avatar {
    position: absolute;
    left: -36px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

/* Badges */
.badge-soft-green {
    background-color: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
    font-weight: 600;
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 6px;
}
.badge-soft-blue {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-weight: 600;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
}
.badge-soft-purple {
    background-color: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
    font-weight: 600;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
}
.badge-soft-amber {
    background-color: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
    font-weight: 600;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
}
.badge-soft-red {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-weight: 600;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
}

/* Floating Action Button */
.workdo-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.2s ease;
    border: none;
}
.workdo-fab:hover {
    transform: scale(1.08);
    color: #ffffff;
}

/* Modal Form Styling */
.modal-calc-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
}

/* Horizontal Tab Slider & Arrows (Lead & Project Style) */
.tab-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
    max-width: 100%;
    overflow: hidden;
}

.nav-tabs-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    flex-grow: 1;
    padding: 0 4px;
}

.nav-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.slider-arrow {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    outline: none !important;
    transition: all 0.15s ease;
    user-select: none;
}

.slider-arrow:focus,
.slider-arrow:focus-visible,
.slider-arrow:active {
    outline: none !important;
    box-shadow: none !important;
}

.slider-arrow:hover {
    background: #f8fafc;
    color: #0f172a;
}

.task-tabs {
    flex-wrap: nowrap !important;
    white-space: nowrap;
    gap: 4px;
    border: none;
}

.task-tabs .nav-link {
    border-radius: .55rem;
    color: #475569;
    font-size: .82rem;
    font-weight: 600;
    padding: .45rem .85rem;
    transition: all .15s ease-in-out;
    white-space: nowrap;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.task-tabs .nav-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.task-tabs .nav-link.active {
    background: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12) !important;
}

.tab-count {
    background: #e2e8f0;
    color: #334155;
    border-radius: 999px;
    font-size: .68rem;
    padding: .12rem .4rem;
    vertical-align: middle;
    font-weight: 700;
    transition: all .15s ease;
}

.task-tabs .nav-link.active .tab-count {
    background: rgba(255, 255, 255, .25) !important;
    color: #ffffff !important;
}

/* Opportunity Sources & Stages Specific */
.source-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.source-filter-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.source-list-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    overflow: hidden;
}

.source-table thead th {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.source-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 13.5px;
}
.source-table tbody tr:last-child td {
    border-bottom: none;
}
.source-table tbody tr:hover td {
    background-color: #f8fafc;
}

.source-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ecfdf5;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.action-icon-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #64748b;
    background: transparent;
    border: none;
    transition: all 0.15s ease;
}
.action-icon-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.action-icon-btn.text-danger:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* Mobile Responsiveness for Opportunities Module */
@media (max-width: 767.98px) {
    .task-topbar {
        padding: .85rem 1rem;
    }
    .task-topbar .btn-pill {
        padding: .35rem .65rem;
        font-size: .75rem;
    }
    .lead-kpi-val {
        font-size: 1.05rem !important;
    }
    .lead-kpi-card {
        padding: .75rem .85rem;
    }
    .crm-stat-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        margin-bottom: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .crm-stat-bar::-webkit-scrollbar {
        display: none;
    }
    .crm-stat-pill {
        flex-shrink: 0;
        padding: 5px 10px;
        font-size: 12px;
    }
    .source-table thead th,
    .source-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }
    .source-icon-box {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
    .source-form-card {
        border-radius: 12px;
    }
    .stages-table th, 
    .stages-table td {
        padding: 10px 10px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 575.98px) {
    .lead-kpi-card {
        padding: .65rem .75rem;
    }
    .lead-kpi-val {
        font-size: .98rem !important;
    }
    .stat-label {
        font-size: 9px;
    }
    .kanban-scroll-container {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }
    .kanban-column {
        width: 86vw !important;
        max-width: 320px;
        scroll-snap-align: center;
    }
    .kanban-cards-list {
        min-height: 420px;
    }
    #oppTableSearchSlot form {
        max-width: 100% !important;
    }
}


/* =========================================================================
   MEETINGS & CALLS CRM MODULES (LIST, CALENDAR, LOGS & DETAILS)
   ========================================================================= */

/* Meetings Module Styles */
.meeting-kpi-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 16px 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.meeting-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.meeting-kpi-val {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}
.meeting-avatar-stack {
    display: flex;
    align-items: center;
}
.meeting-avatar-stack .avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -8px;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}
.meeting-avatar-stack .avatar-circle:first-child {
    margin-left: 0;
}

/* WorkDo Sales SaaS Style Mini Calendar */
.mini-cal-table {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 2.5px;
}
.mini-cal-header-cell {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    padding: 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mini-cal-day-cell {
    position: relative;
    height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.15s ease-in-out;
}
.mini-cal-day-cell:hover:not(.mini-cal-active):not(.mini-cal-other-month) {
    background-color: #f1f5f9;
}
.mini-cal-day-cell.mini-cal-other-month {
    color: #cbd5e1;
    cursor: pointer;
}
.mini-cal-day-cell.mini-cal-active {
    background-color: #10b981 !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}
.mini-cal-day-cell .mini-cal-dot {
    width: 4.5px;
    height: 4.5px;
    background-color: #10b981;
    border-radius: 50%;
    position: absolute;
    bottom: 3.5px;
}
.mini-cal-day-cell.mini-cal-active .mini-cal-dot {
    background-color: #ffffff;
}
.meeting-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.meeting-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06) !important;
}

/* FullCalendar styling customizations */
.fc .fc-toolbar-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1e293b;
}
.fc .fc-button-primary {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 0.825rem !important;
    box-shadow: none !important;
    padding: 0.35rem 0.75rem !important;
}
.fc .fc-button-primary:hover,
.fc .fc-button-primary:focus {
    background-color: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}
.fc .fc-button-primary.fc-button-active {
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
}
.fc .fc-event {
    border-radius: 6px !important;
    padding: 2px 5px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.1s ease, filter 0.1s ease;
}
.fc .fc-event:hover {
    filter: brightness(0.92);
    transform: scale(1.01);
}
.fc .fc-col-header-cell-cushion {
    font-weight: 700 !important;
    color: #475569 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 4px !important;
}

/* Meeting Detail Page */
.meeting-hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.15);
    margin-bottom: 24px;
}
.meeting-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.meeting-detail-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    margin-bottom: 24px;
    overflow: hidden;
}
.meeting-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fafbfd;
}
.meeting-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.meeting-stat-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.meeting-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.attendee-row {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s ease;
}
.attendee-row:last-child {
    border-bottom: none;
}
.attendee-row:hover {
    background: #f8fafc;
}
.attendee-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Calls Module Styles */
.call-kpi-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 16px 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.call-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.call-kpi-val {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}
.call-avatar-stack {
    display: flex;
    align-items: center;
}
.call-avatar-stack .avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -8px;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}
.call-avatar-stack .avatar-circle:first-child {
    margin-left: 0;
}
.direction-badge {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Mobile Responsiveness for Meetings & Calls */
@media (max-width: 767.98px) {
    .meeting-kpi-card,
    .call-kpi-card {
        padding: 12px 12px;
    }
    .meeting-kpi-val,
    .call-kpi-val {
        font-size: 1.25rem !important;
    }
    .fc .fc-toolbar {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
    }
    .fc .fc-toolbar-title {
        font-size: 1.1rem !important;
        text-align: center !important;
    }
    .fc .fc-toolbar-chunk {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
    .fc .fc-button {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    .meeting-hero-banner {
        padding: 16px 18px;
        border-radius: 10px;
    }
    .meeting-card-header {
        padding: 12px 16px;
    }
    .meeting-stat-box {
        padding: 12px;
    }
}

@media (max-width: 575.98px) {
    .meeting-kpi-card,
    .call-kpi-card {
        padding: 10px 10px;
    }
    .meeting-kpi-val,
    .call-kpi-val {
        font-size: 1.1rem !important;
    }
}

/* ==========================================================================
   Inventory, Product Master & Purchase Order Styles (Migrated from inventory.css)
   ========================================================================== */

.tx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    height: 36px;
    padding: 0 .85rem;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    white-space: nowrap;
    background: #fff;
    color: #374151;
}

.tx-btn:hover {
    background: #f9fafb;
    color: #111827;
}

.tx-btn-primary {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(124, 58, 237, .25);
}

.tx-btn-primary:hover {
    background: #6d28d9;
    color: #fff !important;
}

.tx-btn-outline {
    background: #fff;
    border-color: #e5e7eb;
    color: #374151;
}

.tx-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    overflow: hidden;
}

.tx-table-wrap {
    padding: 1rem 1.25rem 1.25rem;
}

.tx-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#stocksTable {
    width: 100% !important;
}

#stocksTable thead th {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
    background: transparent;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 12px 14px;
    white-space: nowrap;
}

#stocksTable tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 13px;
    color: #0f172a;
}

#stocksTable tbody tr:hover {
    background: #f8fafc;
}

#stocksTable tbody tr.table-warning {
    background: #fffbeb;
}

#stocksTable.dataTable.no-footer {
    border-bottom: 0;
}

.tx-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 28px;
    padding: 0 .55rem;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.tx-act-view {
    background: #e0f2fe;
    color: #075985 !important;
}

.tx-act-view:hover {
    background: #bae6fd;
    color: #0c4a6e !important;
}

.tx-act-edit {
    background: #7c3aed;
    color: #fff !important;
}

.tx-act-edit:hover {
    background: #6d28d9;
    color: #fff !important;
}

.tx-act-del {
    background: #ef4444;
    color: #fff !important;
}

.tx-act-del:hover {
    background: #dc2626;
    color: #fff !important;
}

/* Item Type Cards */
.item-type-card {
    border-color: #e2e8f0;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

.item-type-card:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.item-type-card.active {
    border-color: #7c3aed !important;
    background-color: #f5f3ff !important;
    box-shadow: 0 0 0 1px #7c3aed;
}

.cursor-pointer {
    cursor: pointer;
}

/* Select2 Modal Styling & Alignment */
.modal-body {
    position: relative;
}

.modal select.select2-hidden-accessible + .select2-container {
    width: 100% !important;
    display: block;
}

.modal select.select2-hidden-accessible + .select2-container .select2-selection--single {
    height: 32px !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    padding: 2px 8px !important;
    display: flex !important;
    align-items: center !important;
}

.modal select.select2-hidden-accessible + .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    padding-left: 0 !important;
    color: #212529 !important;
    font-size: 0.875rem !important;
}

.modal select.select2-hidden-accessible + .select2-container .select2-selection--single .select2-selection__arrow {
    height: 30px !important;
    right: 6px !important;
}

.modal .select2-container--open {
    z-index: 1065 !important;
}

.modal .select2-container--open .select2-dropdown {
    z-index: 1065 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0.375rem !important;
}

.modal .select2-search--dropdown {
    padding: 6px !important;
}

.modal .select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
}

/* ==========================================================================
   Full-Page Product Wizard & Stepper (Vendor/Buyer Profile Style)
   ========================================================================== */
.wizard-progress-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.product-wizard-sidebar {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.wizard-stepper {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.wizard-step-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    color: #495057;
    text-decoration: none;
    border: none;
    border-bottom: 1px solid #f1f3f5;
    border-left: 4px solid transparent;
    background: #ffffff;
    transition: all 0.2s ease;
    font-size: 13.5px;
    font-weight: 500;
    width: 100%;
    text-align: left;
    outline: none;
}

.wizard-step-item:last-child {
    border-bottom: none;
}

.wizard-step-item:hover:not(.disabled) {
    background: #f8f9fa;
    color: #0d6efd;
}

.wizard-step-item:hover:not(.disabled) .step-icon {
    color: #0d6efd !important;
}

.wizard-step-item.active {
    background: #eef4ff;
    color: #0d6efd;
    font-weight: 600;
    border-left: 4px solid #0d6efd;
}

.wizard-step-item.active .step-icon {
    color: #0d6efd !important;
}

.wizard-step-item.active .step-badge {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    border: none !important;
}

.wizard-step-item.completed {
    color: #334155;
}

.wizard-step-item.completed .step-icon {
    color: #198754 !important;
}

.wizard-step-item.completed .step-badge {
    background-color: #e8f5e9 !important;
    color: #198754 !important;
    border: 1px solid #c8e6c9 !important;
}

.wizard-step-item.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #fafbfc;
}

.wizard-step-item.disabled:hover {
    color: #6c757d;
    background: #fafbfc;
}

.step-icon {
    font-size: 15px;
    width: 18px;
    text-align: center;
    transition: color 0.2s ease;
}

.step-title-text {
    font-size: 13.5px;
    letter-spacing: -0.01em;
}

.step-badge {
    font-size: 11px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.wizard-pane {
    display: none;
}

.wizard-pane.active {
    display: block;
    animation: fadeIn 0.25s ease-in-out;
}

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

.review-section-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.review-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.review-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0;
}

.review-edit-btn {
    font-size: 11.5px;
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.review-edit-btn:hover {
    text-decoration: underline;
    color: #6d28d9;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.review-item {
    display: flex;
    flex-direction: column;
}

.review-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.review-val {
    font-size: 13px;
    color: #0f172a;
    font-weight: 600;
    word-break: break-word;
}

/* Mobile responsive stepper */
@media (max-width: 991.98px) {
    .wizard-stepper {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    .wizard-step-item {
        flex: 0 0 auto;
        min-width: 140px;
        padding: 0.5rem 0.75rem;
    }
    .wizard-step-sub {
        display: none;
    }
}

/* Variant Management styles */
.variant-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
}
.variant-table th {
    font-size: 11px;
    font-weight: 650;
    text-transform: uppercase;
    color: #64748b;
    background: #f1f5f9;
    padding: 8px 12px;
}
.variant-table td {
    padding: 8px 12px;
    font-size: 12.5px;
    vertical-align: middle;
}
.badge-default-variant {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    font-weight: 600;
    font-size: 11px;
}

/* ==========================================================================
   Product & Universal Import Styles
   ========================================================================== */
.import-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.import-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}
.import-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.import-stat-icon--primary { background: #eff6ff; color: #2563eb; }
.import-stat-icon--success { background: #f0fdf4; color: #16a34a; }
.import-stat-icon--warning { background: #fffbeb; color: #d97706; }
.import-stat-icon--danger  { background: #fef2f2; color: #dc2626; }

.dropzone-box {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.dropzone-box:hover, .dropzone-box.dragover {
    border-color: #7c3aed;
    background: #f5f3ff;
}
.sample-preview-table th {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #475569;
    padding: 8px 10px;
}
.sample-preview-table td {
    font-size: 12px;
    padding: 8px 10px;
    white-space: nowrap;
}
.nav-tabs-custom {
    border-bottom: 2px solid #e2e8f0;
    gap: 8px;
}
.nav-tabs-custom .nav-link {
    font-weight: 600;
    font-size: 13.5px;
    color: #64748b;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 18px;
    border-radius: 0;
}
.nav-tabs-custom .nav-link.active {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
    background: transparent;
}
.progress-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);
    padding: 20px 24px;
    margin-bottom: 24px;
}

/* Sales Orders Import Styles */
.order-import-progress {
    height: 12px;
    border-radius: 6px;
}
.order-progress-bar-init {
    width: 0%;
}
.order-guide-table-scroll {
    max-height: 520px;
    overflow-y: auto;
}
.order-import-search-box {
    width: 250px;
}
.th-col-row {
    width: 80px;
}

/* Purchase Order Line Items & Multi-Tax Dropdown Styles */
.po-items-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    min-height: 420px !important;
    padding-bottom: 240px !important;
    border-radius: 0 0 8px 8px;
}
#poItemsTable {
    min-width: 1460px;
    width: 100%;
    margin-bottom: 0;
}
.po-col-product {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
}
.po-col-product .select2-container {
    width: 100% !important;
    max-width: 100% !important;
}
.po-col-product .select2-selection--single {
    width: 100% !important;
    max-width: 100% !important;
}
.po-col-product .select2-selection__rendered {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
    max-width: 100% !important;
}
.po-col-hsn {
    width: 110px !important;
    min-width: 110px !important;
}
.po-col-qty {
    width: 95px !important;
    min-width: 95px !important;
}
.po-col-unit {
    width: 175px !important;
    min-width: 175px !important;
}
.po-col-unit .select2-container {
    width: 100% !important;
}
.po-col-unit .select2-selection--single {
    width: 100% !important;
}
.po-col-unit .select2-selection__rendered {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
    max-width: 100% !important;
    font-weight: 500;
}
.po-col-rate {
    width: 115px !important;
    min-width: 115px !important;
}
.po-col-discount {
    width: 140px !important;
    min-width: 140px !important;
}
.po-col-taxable {
    width: 120px !important;
    min-width: 120px !important;
}
.po-col-tax {
    width: 215px !important;
    min-width: 215px !important;
}
.po-col-amount {
    width: 130px !important;
    min-width: 130px !important;
}
.po-col-action {
    width: 45px !important;
    min-width: 45px !important;
}

.po-multitax-dropdown {
    position: relative;
    width: 100%;
}
.po-multitax-btn {
    width: 100%;
    text-align: left;
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    color: #1e293b !important;
    border-radius: 4px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    min-height: 31px;
}
.po-multitax-btn:focus, .po-multitax-btn:active {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15) !important;
}
.po-multitax-menu {
    min-width: 240px;
    max-width: 320px;
    width: 100%;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
    border-radius: 6px;
    z-index: 1060;
    background: #ffffff;
}
.po-tax-opt-item {
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.15s;
}
.po-tax-opt-item:hover {
    background-color: #f1f5f9;
}
.po-tax-badge-pill {
    font-size: 10.5px;
    padding: 2px 6px;
    border-radius: 3px;
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    margin: 1px 2px 1px 0;
    display: inline-block;
    font-weight: 600;
}

/* ==========================================================================
   Global Toastr Notification Styles
   ========================================================================== */
#toast-container {
    z-index: 9999999 !important;
    position: fixed !important;
    top: 20px;
    right: 20px;
    pointer-events: auto !important;
}
#toast-container > .toast {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18) !important;
    border-radius: 8px !important;
    padding: 14px 18px 14px 50px !important;
    font-size: 13.5px !important;
    background-position: 15px center !important;
    cursor: pointer !important;
    transition: transform 0.2s ease;
}
#toast-container > .toast:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important;
}
#toast-container > .toast-success {
    background-color: #10b981 !important;
    color: #ffffff !important;
}
#toast-container > .toast-error {
    background-color: #ef4444 !important;
    color: #ffffff !important;
}
#toast-container > .toast-warning {
    background-color: #f59e0b !important;
    color: #ffffff !important;
}
#toast-container > .toast-info {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}
#toast-container .toast-close-button {
    color: #ffffff !important;
    opacity: 0.85 !important;
    text-shadow: none !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    top: -4px !important;
    right: -4px !important;
}
#toast-container .toast-close-button:hover {
    opacity: 1 !important;
}
#toast-container .toast-progress {
    background-color: rgba(255, 255, 255, 0.45) !important;
    height: 3px !important;
}

/* Common ERP Font Size Utilities */
.fs-11 { font-size: 11px !important; }
.fs-12 { font-size: 12px !important; }

/* ERP Shipment Receipt Table Column Utilities */
.col-row-num { width: 40px; }
.col-product-cell { min-width: 280px; }
.col-batch-no { min-width: 135px; }
.col-good-qty { min-width: 350px; }
.col-damaged-qty { min-width: 175px; }
.col-date-cell { min-width: 145px; }
.col-tax-cell { min-width: 145px; }
.col-cost-cell { min-width: 180px; }
.col-action-cell { width: 45px; }
.good-qty-input { max-width: 95px !important; }
.receive-unit-select { min-width: 210px !important; flex-grow: 1; font-weight: 500; font-size: 12px; }

/* =========================================================================
   Common Sales Orders & Order Line Items / Summary Styles
   ========================================================================= */
.tx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    height: 36px;
    padding: 0 .85rem;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    white-space: nowrap;
    background: #fff;
    color: #374151;
    transition: all .2s ease;
}
.tx-btn:hover {
    background: #f9fafb;
    color: #111827;
}
.tx-btn-primary {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff !important;
}
.tx-btn-primary:hover {
    background: #6d28d9;
    color: #fff !important;
}
.tx-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
    overflow: hidden;
}
.tx-table-wrap {
    padding: 1rem 1.25rem 1.25rem;
}
#ordersTable thead th {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 12px 14px;
    white-space: nowrap;
}
#ordersTable tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 13px;
}
.tx-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 28px;
    padding: 0 .55rem;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: opacity .15s ease;
}
.tx-act-view {
    background: #e0f2fe;
    color: #075985 !important;
}
.tx-act-edit {
    background: #fef3c7;
    color: #92400e !important;
}
.tx-act:hover {
    opacity: .85;
}

/* Sales Order Line Items Table Wrapper & Columns */
.so-items-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    min-height: 280px;
    border-radius: 0 0 8px 8px;
}
#orderItemsTable {
    min-width: 1300px;
    width: 100%;
    margin-bottom: 0;
}
#orderItemsTable thead th {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #4b5563;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 12px;
}
#orderItemsTable tbody td {
    padding: 10px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}
.so-col-product {
    width: 260px !important;
    min-width: 260px !important;
}
.so-col-product .select2-container,
.so-col-batch .select2-container {
    width: 100% !important;
}
.so-col-batch {
    width: 250px !important;
    min-width: 240px !important;
}
.so-col-expiry {
    width: 105px !important;
    min-width: 95px !important;
}
.so-col-hsn {
    width: 95px !important;
    min-width: 90px !important;
}
.so-col-qty {
    width: 100px !important;
    min-width: 95px !important;
}
.so-col-unit {
    width: 175px !important;
    min-width: 160px !important;
}
.so-col-unit .select2-container {
    width: 100% !important;
}
.so-col-rate {
    width: 115px !important;
    min-width: 110px !important;
}
.so-col-discount {
    width: 140px !important;
    min-width: 135px !important;
}
.so-col-taxable {
    width: 120px !important;
    min-width: 115px !important;
}
.so-col-tax {
    width: 200px !important;
    min-width: 195px !important;
}
.so-col-amount {
    width: 125px !important;
    min-width: 120px !important;
}
.so-col-action {
    width: 45px !important;
    min-width: 45px !important;
}
.item-base-qty-preview {
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
    font-weight: 500;
}

/* Discount toggle & inputs */
.item-discount-group {
    display: flex;
    align-items: center;
}
.item-discount-group .btn-discount-toggle,
.summary-discount-group .btn-discount-toggle {
    min-width: 42px;
    font-size: 11px;
    font-weight: 600;
}

/* Summary Card Box */
.summary-card-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.summary-table td {
    padding: 7px 10px;
    font-size: 13px;
    vertical-align: middle;
}
.summary-table tr.table-light td {
    background-color: #f8fafc;
}
.so-tax-breakdown-row td {
    font-size: 12px;
    padding: 4px 10px;
}

/* Stock status indicators in batch select */
.batch-stock-badge {
    font-size: 11px;
}
.stock-warning-badge {
    font-size: 10.5px;
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    background: #fee2e2;
    color: #991b1b;
}

/* Proposal show & settings asset preview classes */
.proposal-header-logo {
    max-height: 58px;
    max-width: 190px;
    object-fit: contain;
}
.proposal-seal-img {
    max-height: 70px;
    max-width: 70px;
    object-fit: contain;
}
.proposal-sig-img {
    max-height: 60px;
    max-width: 150px;
    object-fit: contain;
}
.settings-preview-logo {
    max-width: 180px;
    max-height: 56px;
    object-fit: contain;
}
.settings-preview-sig {
    max-width: 140px;
    max-height: 44px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}
.settings-preview-seal {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

/* ==========================================================================
   CLIENTS MODULE STYLES (Merged from clients.css)
   ========================================================================== */
/* Client Module Financial Metric Cards (Modernized ERP Design) */
.fin-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    border-left: 4px solid #cbd5e1;
}

.fin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.09), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    border-color: #cbd5e1;
}

.fin-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.fin-card .label,
.fin-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #64748b;
    margin: 0;
}

.fin-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.fin-card:hover .fin-icon {
    transform: scale(1.08);
}

.fin-card .value,
.fin-value {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-top: 4px;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.fin-subtitle {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.fin-progress-bar {
    width: 100%;
    height: 5px;
    background: #ede9fe;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
}

.fin-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    border-radius: 999px;
    transition: width 0.6s ease;
}

/* 1. Paid Amount: Fresh Emerald Theme */
.fin-paid {
    border-left-color: #10b981;
}

.fin-paid:hover {
    border-left-color: #059669;
}

.fin-icon-paid {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

/* 2. Due Amount: Rose / Red Attention Theme */
.fin-due {
    border-left-color: #f43f5e;
}

.fin-due:hover {
    border-left-color: #e11d48;
}

.fin-icon-due {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #ffe4e6;
}

/* 3. Invoice Amount: Royal Indigo / Blue Theme */
.fin-invoice {
    border-left-color: #3b82f6;
}

.fin-invoice:hover {
    border-left-color: #2563eb;
}

.fin-icon-invoice {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

/* 4. Paid Percentage: Violet / Purple Theme */
.fin-percent {
    border-left-color: #8b5cf6;
}

.fin-percent:hover {
    border-left-color: #7c3aed;
}

.fin-icon-percent {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ede9fe;
}

/* Client Header & Action Bar Enhancements */
.client-header-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.client-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.client-id-badge {
    font-size: 12px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px 8px;
}

.client-meta-item {
    color: #64748b;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.client-meta-divider {
    color: #cbd5e1;
    font-weight: 600;
}

.client-meta-link {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.client-meta-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.client-action-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.client-action-btn {
    height: 38px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    transition: all 0.15s ease;
}

.client-btn-credentials {
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
    border-radius: 8px;
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    transition: all 0.2s ease;
}

.client-btn-credentials:hover {
    background: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.client-btn-credentials .key-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    font-size: 12px;
}

.client-status-select {
    height: 38px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    background-color: #fff;
    padding: 0 12px;
    cursor: pointer;
}

.client-status-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Horizontal Tab Slider (Matching Projects Show) */
.tab-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
    max-width: 100%;
    overflow: hidden;
}

.nav-tabs-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    flex-grow: 1;
    padding: 0 5px;
}

.nav-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.tab-item {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    outline: none !important;
    border: 1px solid transparent;
    user-select: none;
    white-space: nowrap;
}

.tab-item:focus,
.tab-item:focus-visible,
.tab-item:active {
    outline: none !important;
    box-shadow: none !important;
}

.tab-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.tab-item.active {
    background: #0f172a !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12) !important;
}

.tab-item.active i {
    color: #ffffff !important;
}

.tab-item .tab-count,
.tab-item .badge {
    background-color: #e2e8f0 !important;
    color: #475569 !important;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    padding: 0.18rem 0.5rem;
    transition: all 0.15s ease;
}

.tab-item.active .tab-count,
.tab-item.active .badge {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.slider-arrow {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    outline: none !important;
}

.slider-arrow:focus,
.slider-arrow:focus-visible,
.slider-arrow:active {
    outline: none !important;
    box-shadow: none !important;
}

.slider-arrow:hover {
    background: #f8fafc;
    color: #0f172a;
}

@media (max-width: 767.98px) {
    .tab-slider-container {
        padding: 3px;
        border-radius: 8px;
    }
    .slider-arrow {
        width: 28px;
        height: 30px;
        font-size: 11px;
    }
    .tab-item {
        padding: 6px 11px;
        font-size: 12px;
    }
}

.ctab-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    border: 1px solid #e9eef5;
    border-radius: 12px;
    padding: 6px;
    background: #fff;
}

.ctab-nav a {
    white-space: nowrap;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ctab-nav a.active {
    background: #0f172a;
    color: #fff;
}

.ctab-nav a .badge {
    font-size: 11px;
}

.pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.pill-success {
    background: #ecfdf5;
    color: #047857;
}

.pill-secondary {
    background: #f1f5f9;
    color: #475569;
}

.pill-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.pill-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
}

.data-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.data-table td {
    font-size: 13.5px;
    color: #334155;
    vertical-align: middle;
}

.visit-tracking-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.visit-detail-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    height: 100%;
}

.visit-map-shell {
    position: relative;
    width: 100%;
    height: clamp(360px, 55vh, 560px);
    min-height: 360px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #dde3ea;
    z-index: 0;
}

#visitMap.visit-map {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border-radius: 12px;
    z-index: 1;
}

#visitMap.visit-map.leaflet-container {
    width: 100%;
    height: 100%;
    min-height: 360px;
    font-family: inherit;
    background: #dde3ea;
}

#visitMap.visit-map .leaflet-pane,
#visitMap.visit-map .leaflet-tile,
#visitMap.visit-map .leaflet-marker-icon,
#visitMap.visit-map .leaflet-marker-shadow {
    z-index: auto;
}

#visitMap.visit-map .leaflet-tile-pane {
    z-index: 2;
}

#visitMap.visit-map .leaflet-overlay-pane {
    z-index: 4;
}

#visitMap.visit-map .leaflet-marker-pane {
    z-index: 5;
}

#visitMap.visit-map .leaflet-control-container {
    z-index: 6;
}

#visitMap.visit-map img.leaflet-tile,
#visitMap.visit-map img.leaflet-marker-icon,
#visitMap.visit-map img.leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
    width: auto;
    padding: 0;
    border: 0;
}

.visit-map-marker-wrap {
    background: transparent;
    border: none;
}

.visit-map-marker {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.visit-map-marker span {
    transform: rotate(45deg);
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.visit-map-marker--start {
    background: #16a34a;
}

.visit-map-marker--end {
    background: #dc2626;
}

.visit-popup {
    min-width: 180px;
    font-size: 13px;
    color: #0f172a;
}

.client-sidebar {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
}

.sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    color: #495057;
    text-decoration: none;
    border-bottom: 1px solid #f1f3f5;
    transition: .25s;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item:hover {
    background: #f8f9fa;
    color: #0d6efd;
}

.sidebar-item.active {
    background: #eef4ff;
    color: #0d6efd;
    font-weight: 600;
    border-left: 4px solid #0d6efd;
}

.sidebar-item i {
    margin-right: 10px;
    width: 18px;
}

.sidebar-item .badge {
    font-size: 11px;
}

/* Shipping Addresses Components */
.shipping-address-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: #ffffff;
    transition: all 0.2s ease-in-out;
}

.shipping-address-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.shipping-address-card.is-default {
    border-color: #2563eb;
    background: #f8fafc;
}

/* Client Index Cards & Table */
.stat-card {
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: 14px;
    padding: 22px 24px;
    height: 100%;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.stat-card .label {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.stat-card .value {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-top: 6px;
}
.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}
.si-clients { background: #0f172a; }
.si-new     { background: #10b981; }
.si-group   { background: #6366f1; }
.si-contact { background: #3b82f6; }

.clients-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .3px;
    border-bottom: 1px solid #e9eef5;
}
.clients-table td {
    font-size: 13.5px;
    color: #334155;
    vertical-align: middle;
}
.clients-table tbody tr:hover { background: #f9fbff; }
.client-name-link {
    font-weight: 700;
    color: #1d4ed8;
    text-decoration: none;
}
.client-name-link:hover { text-decoration: underline; }

.btn-sq {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #fff;
    border: none;
}
.bg-view { background: #10b981; }
.bg-edit { background: #6366f1; }
.bg-del { background: #ef4444; }

/* Client Module - Projects Section */
.client-project-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 5px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.client-project-filter-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.client-project-filter-bar .select2-container {
    width: 100% !important;
}

.client-project-filter-bar .select2-selection--single {
    height: 31px !important;
    padding: 2px 8px !important;
    font-size: 13px !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
}

.client-project-filter-bar .select2-selection__rendered {
    line-height: 25px !important;
    padding-left: 2px !important;
    padding-right: 20px !important;
    font-size: 13px !important;
    color: #334155 !important;
}

.client-project-filter-bar .select2-selection__arrow {
    height: 29px !important;
    right: 4px !important;
}

.client-project-filter-bar .select2-selection__clear {
    margin-right: 18px !important;
    font-size: 14px !important;
}

.client-project-row {
    transition: background-color 0.15s ease;
}

.client-project-row:hover {
    background-color: #f8fafc !important;
}

.client-project-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.client-project-title:hover {
    color: #2563eb;
}

.project-status-pill {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.project-status-started {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.project-status-progress {
    background: #fefce8;
    color: #ca8a04;
    border: 1px solid #fef08a;
}

.project-status-completed {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.project-status-onhold {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Client Module - Related Tasks & Projects Section */
.client-task-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.client-task-filter-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.client-task-filter-bar .select2-container {
    width: 100% !important;
}

.client-task-filter-bar .select2-selection--single {
    height: 31px !important;
    padding: 2px 8px !important;
    font-size: 13px !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
}

.client-task-filter-bar .select2-selection__rendered {
    line-height: 25px !important;
    padding-left: 2px !important;
    padding-right: 20px !important;
    font-size: 13px !important;
    color: #334155 !important;
}

.client-task-filter-bar .select2-selection__arrow {
    height: 29px !important;
    right: 4px !important;
}

.client-task-filter-bar .select2-selection__clear {
    margin-right: 18px !important;
    font-size: 14px !important;
}

.client-task-row {
    transition: background-color 0.15s ease;
}

.client-task-row:hover {
    background-color: #f8fafc !important;
}

/* Client Module - Related Bugs Section */
.client-bug-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.client-bug-filter-bar {
    background: #fff8f8;
    border: 1px solid #fee2e2;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.client-bug-filter-bar .select2-container {
    width: 100% !important;
}

.client-bug-filter-bar .select2-selection--single {
    height: 31px !important;
    padding: 2px 8px !important;
    font-size: 13px !important;
    border: 1px solid #fca5a5 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
}

.client-bug-filter-bar .select2-selection__rendered {
    line-height: 25px !important;
    padding-left: 2px !important;
    padding-right: 20px !important;
    font-size: 13px !important;
    color: #334155 !important;
}

.client-bug-filter-bar .select2-selection__arrow {
    height: 29px !important;
    right: 4px !important;
}

.client-bug-filter-bar .select2-selection__clear {
    margin-right: 18px !important;
    font-size: 14px !important;
}

.client-bug-row {
    transition: background-color 0.15s ease;
}

.client-bug-row:hover {
    background-color: #fff9f9 !important;
}

.client-bug-code {
    font-size: 11px;
    font-weight: 700;
    color: #dc2626;
    font-family: var(--bs-font-monospace);
    letter-spacing: 0.3px;
    background: #fee2e2;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #fca5a5;
}

.client-bug-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.client-bug-title:hover {
    color: #dc2626;
}

.bug-sev-critical {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.bug-sev-major {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #ffedd5;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.bug-sev-minor {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.bug-status-open {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.bug-status-inprogress {
    background: #fefce8;
    color: #ca8a04;
    border: 1px solid #fef08a;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.bug-status-resolved {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.bug-status-reopened {
    background: #fdf2f8;
    color: #db2777;
    border: 1px solid #fbcfe8;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.client-task-code {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    font-family: var(--bs-font-monospace);
    letter-spacing: 0.3px;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.client-task-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.client-task-title:hover {
    color: #2563eb;
    text-decoration: underline;
}

.client-task-project-badge {
    font-size: 11.5px;
    font-weight: 600;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.client-task-project-badge:hover {
    background: #dbeafe;
    color: #1e40af;
}

.client-task-direct-badge {
    font-size: 11.5px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.task-status-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.task-status-todo {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.task-status-inprogress {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.task-status-review {
    background: #fefce8;
    color: #ca8a04;
    border: 1px solid #fef08a;
}

.task-status-onhold {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.task-status-done {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.task-priority-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.task-priority-urgent,
.task-priority-high {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.task-priority-medium {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.task-priority-low {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.client-task-assignee {
    font-size: 12px;
    color: #334155;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   LEADS MODULE MODERN STYLING (All Leads Table)
   ============================================================ */
.crm-page-card {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* Dynamic Status Filter Pills */
.crm-stat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
}
.crm-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.crm-stat-pill:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    transform: translateY(-1px);
}
.crm-stat-pill.active {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(37,99,235,0.12);
}
.crm-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.crm-stat-dot--total {
    background-color: #0f172a;
}
.crm-stat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    background: #f1f5f9;
    color: #1e293b;
}
.crm-stat-pill.active .crm-stat-count {
    background: #2563eb;
    color: #ffffff;
}

/* Filter Card */
.crm-filter-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    margin-bottom: 1.25rem;
}
.crm-filter-header {
    padding: 12px 18px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.crm-filter-body {
    padding: 16px 18px;
}

/* Table Responsive Wrapper & Table */
.crm-table-container {
    border: none !important;
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
}
#leadsTable {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    border: none !important;
}
#leadsTable thead th {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #475569;
    padding: 13px 16px;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f8fafc;
    white-space: nowrap;
    vertical-align: middle;
}
#leadsTable tbody td {
    padding: 12px 16px;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle;
    font-size: 13px;
    color: #1e293b;
}
#leadsTable tbody tr:last-child td {
    border-bottom: none !important;
}
#leadsTable tbody tr:hover td {
    background-color: #f8fafc;
}

/* Row actions */
.crm-lead-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.crm-row-action-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 4px;
    border-radius: 4px;
    touch-action: manipulation;
    cursor: pointer;
}
.crm-row-action-link:hover, .crm-row-action-link:active {
    color: #2563eb;
    background-color: #f1f5f9;
    text-decoration: underline;
}
.crm-row-action-sep {
    color: #cbd5e1;
    font-size: 11px;
}

/* DataTables Custom Toolbar Layout */
.crm-table-card .dataTables_wrapper .dt-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.crm-table-card .dataTables_wrapper .dt-search-wrap {
    flex: 1 1 auto;
    min-width: 220px;
    max-width: 380px;
}
.crm-table-card .dataTables_wrapper .dataTables_filter {
    margin: 0;
    position: relative;
}
.crm-table-card .dataTables_wrapper .dataTables_filter label {
    display: block;
    margin: 0;
    position: relative;
    width: 100%;
}
.crm-table-card .dataTables_wrapper .dataTables_filter input {
    height: 38px;
    width: 100%;
    padding: 6px 12px 6px 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 13px;
    color: #1e293b;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.crm-table-card .dataTables_wrapper .dataTables_filter input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.crm-table-card .dataTables_wrapper .dataTables_filter label::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background: no-repeat center / contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-4.35-4.35M11 18a7 7 0 100-14 7 7 0 000 14z'/%3E%3C/svg%3E");
    pointer-events: none;
}

.crm-table-card .dataTables_wrapper .dt-right-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.crm-table-card .dataTables_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 0;
    font-weight: 400;
}
.crm-table-card .dataTables_wrapper .dataTables_length select {
    height: 38px;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 13px;
    color: #1e293b;
    cursor: pointer;
}
.crm-table-card .dataTables_wrapper .dt-buttons .btn {
    height: 38px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border-color: #e2e8f0;
    background-color: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    box-shadow: none !important;
}
.crm-table-card .dataTables_wrapper .dt-buttons .btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.crm-table-card .dataTables_wrapper .dt-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.85rem;
}
.crm-table-card .dataTables_wrapper .dataTables_info {
    font-size: 13px;
    color: #64748b;
    padding: 0;
    margin: 0;
}
.crm-table-card .dataTables_wrapper .dataTables_paginate {
    margin: 0;
}
.crm-table-card .dataTables_wrapper .dataTables_paginate .pagination {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0;
}
.crm-table-card .dataTables_wrapper .dataTables_paginate .page-link {
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    padding: 5px 11px !important;
    font-size: 13px;
    font-weight: 500;
    background: #ffffff;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}
.crm-table-card .dataTables_wrapper .dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}
.crm-table-card .dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2) !important;
}
.crm-table-card .dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
}

/* Tag pill & timer */
.crm-tag-pill {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    background: #f1f5f9;
    color: #334155;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    margin-right: 2px;
    white-space: nowrap;
}
.crm-tag-empty {
    font-size: 12px;
    color: #94a3b8;
}
.crm-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Responsive Breakpoints for Leads Table */
@media (max-width: 767.98px) {
    .crm-stat-bar {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    .crm-stat-pill {
        width: 100% !important;
        flex: 1 1 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 9px 14px !important;
    }
    .crm-table-card .dataTables_wrapper .dt-toolbar-row {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem;
    }
    .crm-table-card .dataTables_wrapper .dt-search-wrap {
        max-width: 100%;
        width: 100%;
    }
    .crm-table-card .dataTables_wrapper .dt-right-toolbar {
        justify-content: flex-end;
        width: 100%;
    }
    .crm-table-card .dataTables_wrapper .dt-footer-row {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 0.5rem;
    }
    .crm-table-card .dataTables_wrapper .dataTables_info {
        text-align: center;
        width: 100%;
    }
    .crm-table-card .dataTables_wrapper .dataTables_paginate {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

/* ============================================================
   CRM & OPPORTUNITIES ACTIVITIES DASHBOARDS
   (Leads & Opportunities Follow-up Dashboards)
   ============================================================ */
.lead-dash-card,
.opp-dash-card {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

/* Dashboard Topbar Header Actions */
.dash-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.dash-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    height: 31px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.dash-refresh-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* KPI Metric Cards */
.kpi-stat-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 1.15rem 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kpi-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.kpi-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.kpi-icon-wrap--primary { background: #eff6ff; color: #2563eb; }
.kpi-icon-wrap--success { background: #ecfdf5; color: #059669; }
.kpi-icon-wrap--danger  { background: #fef2f2; color: #dc2626; }
.kpi-icon-wrap--purple  { background: #f5f3ff; color: #7c3aed; }

/* Navigation Tabs */
.lead-dash-nav-tabs,
.opp-dash-nav-tabs {
    border-bottom: 2px solid #e2e8f0;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 2px;
    scrollbar-width: thin;
}
.lead-dash-nav-tabs::-webkit-scrollbar,
.opp-dash-nav-tabs::-webkit-scrollbar {
    height: 3px;
}
.lead-dash-nav-tabs::-webkit-scrollbar-thumb,
.opp-dash-nav-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.lead-dash-nav-tabs .nav-link,
.opp-dash-nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 18px;
    border-radius: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
    flex-shrink: 0;
    white-space: nowrap;
}
.lead-dash-nav-tabs .nav-link:hover,
.opp-dash-nav-tabs .nav-link:hover {
    color: #1e293b;
    border-bottom-color: #cbd5e1;
}
.lead-dash-nav-tabs .nav-link.active,
.opp-dash-nav-tabs .nav-link.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: transparent;
}
.lead-dash-nav-tabs .nav-link.active-danger,
.opp-dash-nav-tabs .nav-link.active-danger {
    color: #dc2626 !important;
    border-bottom-color: #dc2626 !important;
}

/* Activity Items Cards */
.activity-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 1.15rem 1.25rem;
    margin-bottom: 0.85rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.activity-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}
.activity-card--overdue {
    border-left: 4px solid #ef4444 !important;
    background: #ffffff;
}
.activity-card--overdue:hover {
    border-left-color: #dc2626 !important;
    box-shadow: 0 6px 18px -4px rgba(239, 68, 68, 0.15);
}
.activity-card--today {
    border-left: 4px solid #10b981 !important;
    background: #ffffff;
}
.activity-card--today:hover {
    border-left-color: #059669 !important;
    box-shadow: 0 6px 18px -4px rgba(16, 185, 129, 0.15);
}
.activity-card--upcoming {
    border-left: 4px solid #3b82f6 !important;
    background: #ffffff;
}
.activity-card--upcoming:hover {
    border-left-color: #2563eb !important;
    box-shadow: 0 6px 18px -4px rgba(59, 130, 246, 0.15);
}
.activity-card--completed {
    border-left: 4px solid #94a3b8 !important;
    background: #fafafa;
    opacity: 0.9;
}

/* Date Box Context Colors */
.activity-date-box {
    border-radius: 9px;
    transition: all 0.15s ease;
}
.activity-card--overdue .activity-date-box {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
}
.activity-card--overdue .activity-date-box .date-month {
    color: #dc2626 !important;
    font-weight: 700;
}
.activity-card--overdue .activity-date-box .date-day {
    color: #991b1b !important;
    font-weight: 800;
}
.activity-card--overdue .activity-date-box .date-dow {
    color: #ef4444 !important;
    font-weight: 600;
}

.activity-card--today .activity-date-box {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}
.activity-card--today .activity-date-box .date-month {
    color: #16a34a !important;
    font-weight: 700;
}
.activity-card--today .activity-date-box .date-day {
    color: #15803d !important;
    font-weight: 800;
}
.activity-card--today .activity-date-box .date-dow {
    color: #16a34a !important;
    font-weight: 600;
}

.activity-card--upcoming .activity-date-box {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
}
.activity-card--upcoming .activity-date-box .date-month {
    color: #2563eb !important;
    font-weight: 700;
}
.activity-card--upcoming .activity-date-box .date-day {
    color: #1d4ed8 !important;
    font-weight: 800;
}
.activity-card--upcoming .activity-date-box .date-dow {
    color: #3b82f6 !important;
    font-weight: 600;
}

.activity-card--completed .activity-date-box {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}
.activity-card--completed .activity-date-box .date-month {
    color: #64748b !important;
}
.activity-card--completed .activity-date-box .date-day {
    color: #334155 !important;
}
.activity-card--completed .activity-date-box .date-dow {
    color: #64748b !important;
}

/* Agenda Title & Notes Box */
.activity-agenda-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}
.activity-notes-box {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 7px;
    padding: 6px 10px;
    font-size: 12px;
    color: #475569;
    line-height: 1.45;
}
.activity-card--overdue .activity-notes-box {
    background: #fffafa;
    border-color: #fee2e2;
}

/* Activity Banners */
.activity-banner {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.activity-banner--overdue {
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
    border: 1px solid #fee2e2;
}
.activity-banner--upcoming {
    background: linear-gradient(135deg, #f0f7ff 0%, #eff6ff 100%);
    border: 1px solid #dbeafe;
}
.activity-banner--today {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #d1fae5;
}
.activity-banner--completed {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.activity-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.activity-banner-icon--overdue {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.activity-banner-icon--upcoming {
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.activity-banner-icon--today {
    background: #d1fae5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}
.activity-banner-icon--completed {
    background: #e2e8f0;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

/* Desktop Grid Alignment */
@media (min-width: 992px) {
    .activity-card-left {
        width: 220px !important;
        flex-shrink: 0 !important;
    }
    .activity-actions-toolbar {
        width: 145px !important;
        flex-shrink: 0 !important;
    }
    .activity-actions-toolbar .btn-act {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Dashboard Activity Filter Toolbar */
.activity-filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.activity-type-filters-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1 1 auto;
    min-width: 0;
}
.activity-type-filters-wrap::-webkit-scrollbar {
    display: none;
}
.activity-staff-filter-wrap {
    flex-shrink: 0;
    margin-left: auto;
}
#staffFilterSelect {
    width: 170px !important;
    max-width: 180px !important;
    min-width: 150px !important;
    font-size: 12px !important;
    height: 32px !important;
    padding: 3px 24px 3px 8px !important;
    border-radius: 7px !important;
    border-color: #cbd5e1 !important;
    background-color: #ffffff;
}

/* Pill Filter in Tab */
.activity-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.activity-filter-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.activity-filter-pill.active {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
    font-weight: 600;
}

/* Quick Action Buttons */
.btn-act {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 7px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

/* Empty state */
.dash-empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

/* Task Module Style Pagination Wrapper */
.custom-pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    margin-top: 12px;
}
.custom-pagination-info {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}
.custom-pagination-wrap .pagination {
    margin: 0;
    gap: 4px;
}
.custom-pagination-wrap .page-item .page-link {
    border-radius: 6px !important;
    padding: 5px 11px;
    font-size: 12.5px;
    color: #475569;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    transition: all 0.15s ease;
}
.custom-pagination-wrap .page-item .page-link:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}
.custom-pagination-wrap .page-item.active .page-link {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2) !important;
}
.custom-pagination-wrap .page-item.disabled .page-link {
    color: #94a3b8 !important;
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Mobile Responsive Optimizations for Dashboards */
@media (max-width: 767.98px) {
    .lead-dash-nav-tabs .nav-link,
    .opp-dash-nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 12.5px;
        gap: 6px;
    }
    .activity-card {
        padding: 0.9rem;
        margin-bottom: 0.75rem;
    }
    .activity-date-box {
        min-width: 68px !important;
        padding: 0.4rem !important;
    }
    .activity-date-box .date-day {
        font-size: 17px !important;
    }
    .activity-filter-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .activity-type-filters-wrap {
        width: 100%;
        padding-bottom: 2px;
    }
    .activity-staff-filter-wrap {
        width: 100%;
        margin-left: 0;
    }
    #staffFilterSelect {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    .activity-filter-pill {
        padding: 4px 9px;
        font-size: 11.5px;
    }
    .btn-act {
        flex: 1 1 auto;
        justify-content: center;
        padding: 7px 10px;
        font-size: 11.5px;
    }
    .kpi-stat-card {
        padding: 0.9rem 1rem;
    }
    .kpi-stat-card h3 {
        font-size: 20px !important;
    }
    .kpi-icon-wrap {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .custom-pagination-wrap {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }
    .custom-pagination-info {
        width: 100%;
        text-align: center;
        font-size: 12px;
    }
    .custom-pagination-wrap .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .dash-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .dash-refresh-btn {
        width: 100%;
        justify-content: center;
    }
    .lead-dash-header-switcher,
    .opp-dash-header-switcher {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .lead-dash-header-switcher .btn-group,
    .opp-dash-header-switcher .btn-group {
        width: 100%;
        display: flex;
    }
    .lead-dash-header-switcher .btn,
    .opp-dash-header-switcher .btn {
        flex: 1 1 auto;
        text-align: center;
        padding-left: 6px !important;
        padding-right: 6px !important;
        font-size: 11px !important;
        white-space: nowrap;
    }
    .activity-search-wrap {
        max-width: 100% !important;
        min-width: 100% !important;
    }
    #staffFilterSelect {
        width: 100% !important;
        min-width: 100% !important;
    }
    .activity-actions-toolbar {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 6px !important;
        width: 100% !important;
    }
    .activity-actions-toolbar .btn-act {
        width: 100% !important;
        padding: 6px 8px !important;
        font-size: 11px !important;
    }
    .activity-actions-toolbar .btn-act:last-child:nth-child(odd) {
        grid-column: span 2;
    }
    .modal-footer {
        flex-direction: column-reverse;
        gap: 8px;
    }
    .modal-footer .btn {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* ============================================================
   GENERAL & COMPANY SETTINGS MODULE
   ============================================================ */
.dropdown-with-add {
    display: flex;
    align-items: stretch;
    gap: 6px;
}
.dropdown-with-add > .select2-container {
    flex: 1 1 auto;
    width: 1% !important;
}
.dropdown-with-add > .btn-quick-add {
    flex: 0 0 auto;
    width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.company-address-card .select2-container {
    width: 100% !important;
}
.company-address-card .select2-container--default .select2-selection--single {
    height: 31px;
    padding: 2px 6px;
    font-size: 13px;
    border-color: #dee2e6;
    border-radius: 0.25rem;
}
.company-address-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 25px;
    padding-left: 2px;
    color: #212529;
}
.company-address-card .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 29px;
}
.company-address-card .select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Sales Order UI Classes */
.so-summary-discount-group {
    width: 135px;
}
.so-summary-discount-type {
    max-width: 58px;
}
.so-table-label-col {
    width: 55%;
}
.so-item-discount-group {
    min-width: 110px;
}
.so-btn-xs {
    font-size: 11px;
}
.so-small-hint {
    font-size: 11.5px;
}

/* Coupons & Offers Shared UI Classes */
.bg-purple-subtle {
    background-color: #f3e8ff !important;
    color: #6b21a8 !important;
}
.coupon-tag-badge {
    letter-spacing: 0.5px;
}
.so-catalog-link-input {
    min-width: 280px;
}
.so-product-subtext {
    max-width: 180px;
}
.sidebar-sub-dot {
    font-size: 6px !important;
}
.sidebar-sub-dot-sm {
    font-size: 5px !important;
}
.sidebar-icon-sm {
    font-size: 11px !important;
}
.sidebar-icon-xs {
    font-size: 10px !important;
}
.sidebar-sub-border {
    border-color: #e2e8f0 !important;
}
.sidebar-sub-wrap {
    white-space: normal;
    line-height: 1.25;
}
.sidebar-badge-xs {
    font-size: 10px !important;
}
.sidebar-col-icon {
    width: 2rem;
}
.nav-section-label {
    padding: 14px 16px 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #94a3b8;
}

/* ==================== Order Status Flow Stepper ==================== */
.so-step-icon {
    width: 32px;
    height: 32px;
}
.so-step-title {
    font-size: 12px;
}
.so-step-desc {
    font-size: 10px;
}

/* ==================== Common Reusable UI Utilities ==================== */
.cursor-pointer {
    cursor: pointer !important;
}
.w-35px {
    width: 35px !important;
}
.w-70px {
    width: 70px !important;
}
.w-80px {
    width: 80px !important;
}
.w-100px {
    width: 100px !important;
}
.w-120px {
    width: 120px !important;
}
.min-w-140px {
    min-width: 140px !important;
}
.min-w-180px {
    min-width: 180px !important;
}
.min-w-220px {
    min-width: 220px !important;
}
.badge-status-active {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}
.badge-status-maintenance {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}
.badge-status-inactive {
    background-color: #f3f4f6 !important;
    color: #4b5563 !important;
    border: 1px solid #e5e7eb !important;
}

.table-col-item {
    min-width: 230px;
    width: 230px;
}
.table-col-batch {
    min-width: 180px;
    width: 180px;
}
.table-col-condition {
    min-width: 140px;
    width: 140px;
}
.table-col-reason {
    min-width: 170px;
    width: 170px;
}
.table-col-qty {
    min-width: 120px;
    width: 120px;
}
.table-col-cost {
    min-width: 115px;
    width: 115px;
}
.table-col-tax {
    min-width: 200px;
    width: 200px;
}
.table-col-total {
    min-width: 115px;
    width: 115px;
}
.table-col-action {
    width: 45px;
    min-width: 45px;
}
.table-col-exp {
    min-width: 130px;
    width: 130px;
}
.table-col-hsn {
    min-width: 100px;
    width: 100px;
}
.table-col-unit {
    min-width: 135px;
    width: 135px;
}
.table-col-disc {
    min-width: 195px;
    width: 195px;
}
.table-col-taxable {
    min-width: 110px;
    width: 110px;
}
.max-w-200 {
    max-width: 200px;
}

/* ==================== Table Wrappers with Dropdown Room ==================== */
.return-items-table-wrapper,
.so-items-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 380px;
    padding-bottom: 160px;
}

/* ==================== Select2 in Tables, Forms & Input Groups ==================== */
.select2-container--default .select2-selection--single {
    height: 31px !important;
    padding: 2px 6px !important;
    font-size: 0.85rem !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.25rem !important;
    display: flex !important;
    align-items: center !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 27px !important;
    padding-left: 0 !important;
    padding-right: 18px !important;
    color: #212529 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 29px !important;
    top: 1px !important;
}
.table .select2-container {
    width: 100% !important;
}
.input-group > .select2-container {
    flex: 0 0 75px !important;
    width: 75px !important;
}
.input-group > .select2-container .select2-selection--single {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* ==================== Multi-select / Rich Tax Dropdown (Invoice Style) ==================== */
.inv-multitax-dropdown {
    position: relative;
    width: 100%;
}
.inv-multitax-btn {
    width: 100%;
    text-align: left;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    padding: 3px 8px !important;
    font-size: 11.5px !important;
    color: #1e293b !important;
    border-radius: 4px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    min-height: 31px;
}
.inv-multitax-btn:focus,
.inv-multitax-btn:active {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15) !important;
}
.inv-multitax-btn::after {
    margin-left: 6px;
}
.inv-multitax-menu {
    min-width: 290px;
    max-width: 350px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    border-radius: 6px;
    z-index: 1060;
    background: #ffffff;
}
.inv-tax-options-list {
    max-height: 320px;
    overflow-y: auto;
}
.inv-tax-opt-item {
    padding: 4px 6px;
    border-radius: 4px;
    transition: background-color 0.15s;
}
.inv-tax-opt-item:hover {
    background-color: #f1f5f9;
}
.inv-tax-opt-label {
    font-size: 11.5px;
    user-select: none;
    cursor: pointer;
}
.inv-tax-opt-badge {
    font-size: 10px;
}
.inv-tax-badge-pill {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    margin: 1px 2px 1px 0;
    display: inline-block;
    font-weight: 600;
}

/* ── Inventory Stock & Batch Reports ── */
.kpi-icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}
.report-letter-spacing {
    letter-spacing: 0.04em;
}
.report-table th {
    white-space: nowrap;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.report-table td {
    vertical-align: middle;
    font-size: 0.8125rem;
}

/* ── Custom Report Table & DataTables Card Layout ── */
.fs-7 {
    font-size: 0.75rem !important;
}

.tracking-wider {
    letter-spacing: 0.05em !important;
}

.custom-report-table {
    border-collapse: separate;
    border-spacing: 0;
}

.custom-report-table th,
.custom-report-table td {
    vertical-align: middle;
}

.custom-report-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #64748b;
}

.custom-report-table tbody td {
    font-size: 0.84rem;
    padding: 0.75rem 1rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.custom-report-table tbody tr:hover td {
    background-color: #f8fafc;
}

/* DataTables Top Controls (Length & Search Alignment) */
.dataTables_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 0;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 0.375rem;
    border: 1px solid #cbd5e1;
    padding: 0.25rem 2rem 0.25rem 0.75rem;
    font-size: 0.85rem;
    color: #1e293b;
    background-color: #fff;
    width: auto;
    display: inline-block;
}

.dataTables_wrapper .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0;
    width: auto;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 50rem;
    border: 1px solid #cbd5e1;
    padding: 0.4rem 1.15rem;
    font-size: 0.875rem;
    color: #1e293b;
    background-color: #fff;
    min-width: 240px;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.dataTables_wrapper .dataTables_info {
    font-size: 0.85rem;
    color: #64748b;
    padding-top: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    margin-bottom: 0;
    gap: 0.25rem;
}

.dataTables_wrapper .dataTables_paginate .page-link {
    border-radius: 0.375rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* Select2 inside Bootstrap 5 Modals */
.modal .select2-container {
    z-index: 1060;
}

.modal .select2-container .select2-dropdown {
    z-index: 1065;
}

.modal .select2-container .select2-results__options,
.select2-results__options {
    max-height: 240px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Stock & Batch Reports DataTable Polish & Responsive Styles */
.report-table-wrapper .dataTables_wrapper .dataTables_length select {
    padding: 0.25rem 2rem 0.25rem 0.5rem;
    font-size: 0.85rem;
    border-radius: 0.375rem;
    border: 1px solid #cbd5e1;
    background-color: #fff;
}

.report-table-wrapper .dataTables_wrapper .dataTables_info {
    font-size: 0.85rem;
    color: #64748b;
    padding-top: 0;
}

.report-table-wrapper table.dataTable {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-collapse: collapse !important;
}

.report-table-wrapper table.dataTable thead th {
    background-color: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    padding: 10px 12px;
}

.report-table-wrapper table.dataTable tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    vertical-align: middle;
}

.report-table-wrapper table.dataTable tbody tr:hover {
    background-color: #f8fafc;
}

.report-sno-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 6px;
    border-radius: 6px;
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
}

.report-th-sno {
    width: 48px;
    min-width: 44px;
    max-width: 56px;
    text-align: center;
}

/* Staff Import & Guidance Styles */
.staff-import-progress-height {
    height: 12px;
    border-radius: 6px;
}
.staff-role-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}
.staff-guide-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e7ff;
    color: #4338ca;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}
.staff-error-col-row {
    width: 80px;
}
.staff-error-badge {
    padding: 8px 12px;
    text-align: left;
    white-space: normal;
    display: block;
}

/* Staff Module Utility Classes (No Inline Styles) */
.fs-11 { font-size: 11px !important; }
.fs-10 { font-size: 10px !important; }
.fs-9 { font-size: 9px !important; }
.w-60px { width: 60px !important; }
.w-80px { width: 80px !important; }
.w-90px { width: 90px !important; }
.w-100px { width: 100px !important; }
.w-140px { width: 140px !important; }
.w-160px { width: 160px !important; }
.w-170px { width: 170px !important; }
.mw-180px { max-width: 180px !important; }
.mw-200px { max-width: 200px !important; }
.mw-220px { max-width: 220px !important; }
.mw-650px { max-width: 650px !important; }
.w-100p { width: 100% !important; }
.staff-table-avatar { width: 45px; height: 45px; object-fit: cover; }
.staff-table-avatar-initial { width: 45px; height: 45px; font-size: 18px; }
.staff-profile-avatar-img { width: 44px; height: 44px; object-fit: cover; }
.staff-profile-avatar-initial { width: 44px; height: 44px; font-size: 17px; }
.staff-profile-lg-initial { width: 56px; height: 56px; font-size: 24px; }
.staff-status-dot { font-size: 6px; }
.staff-edit-photo-preview { width: 64px !important; height: 64px !important; min-width: 64px !important; min-height: 64px !important; max-width: 64px !important; max-height: 64px !important; object-fit: cover !important; border-radius: 50% !important; }

/* Brand Import Styles (No Inline Styles) */
.brand-import-progress-height {
    height: 12px;
    border-radius: 6px;
}
.brand-import-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    background-color: #f8fafc;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}
.brand-import-dropzone:hover,
.brand-import-dropzone.dragover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}


/* ==========================================================================
   Product GST Schedule UI Card
   ========================================================================== */
.gst-schedule-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}
.gst-schedule-card .card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.gst-schedule-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    background: #f8fafc;
}
.gst-schedule-table td {
    font-size: 0.8125rem;
    vertical-align: middle;
}
.gst-schedule-badge-active {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.gst-schedule-badge-scheduled {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
.gst-schedule-badge-past {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.gst-schedule-badge-overdue {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.gst-schedule-hint-text {
    font-size: 0.75rem;
}
.gst-schedule-overdue-alert {
    border-radius: 6px;
}
.gst-schedule-notes-cell {
    max-width: 160px;
}
.gst-bulk-filter-card {
    border-radius: 8px;
    background: #ffffff;
}
.gst-bulk-action-card {
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.gst-bulk-stat-box {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}
.gst-bulk-sample-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
}
.gst-bulk-sample-table td {
    font-size: 0.8125rem;
    vertical-align: middle;
}
.gst-bulk-select-all-banner {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 6px;
    font-size: 0.8125rem;
}
