/* ==========================================================================
   Relier CRM — Zoho Style Theme System
   Based on Relier CRM App v3 (Zoho style)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap");

:root {
  --zoho-font:
    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --zoho-bg: #f0f2f5;
  --zoho-card-bg: #ffffff;
  --zoho-navy: #21324e;
  --zoho-navy-hover: #2b3f63;
  --zoho-navy-active: #18253a;
  --zoho-blue: #1071e5;
  --zoho-blue-hover: #0b5ab8;
  --zoho-blue-tint: #e9f1fc;
  --zoho-green: #0ca678;
  --zoho-green-hover: #0a8a64;
  --zoho-green-tint: #e9f7f1;
  --zoho-orange: #f5a623;
  --zoho-orange-tint: #fdf3e3;
  --zoho-red: #e8330c;
  --zoho-red-tint: #fdecec;
  --zoho-purple: #7c5cff;
  --zoho-purple-tint: #edeafb;
  --zoho-border: #e3e6eb;
  --zoho-divider: #edf0f4;
  --zoho-text-main: #21263c;
  --zoho-text-secondary: #4a5268;
  --zoho-text-muted: #6e7891;
  --zoho-placeholder: #9aa3b5;
}

/* Base resets & typography (excluding standalone login view) */
body:not(.relier-login-page) {
  background-color: var(--zoho-bg) !important;
  font-family: var(--zoho-font) !important;
  color: var(--zoho-text-main) !important;
  -webkit-font-smoothing: antialiased;
}

html:not(:has(.relier-login-page)) {
  background-color: var(--zoho-bg) !important;
}

/* Remove Metronic fixed sidebar margins for full-width horizontal layout */
body.aside-enabled .wrapper {
  margin-left: 0 !important;
  padding-left: 0 !important;
  transition: none !important;
}

@media (min-width: 992px) {
  #kt_aside {
    display: none !important;
  }
  .aside-enabled .wrapper {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
}

.wrapper {
  background-color: var(--zoho-bg) !important;
  min-height: 100vh;
}

#kt_footer {
  background-color: #ffffff !important;
  border-top: 1px solid var(--zoho-border) !important;
  font-family: var(--zoho-font) !important;
  font-size: 12px !important;
}

#kt_footer a {
  color: var(--zoho-text-secondary) !important;
  font-weight: 500 !important;
}

#kt_footer a:hover {
  color: var(--zoho-blue) !important;
}

#kt_content {
  background-color: var(--zoho-bg) !important;
  padding-top: 14px;
  padding-bottom: 28px;
}

/* Animations from Zoho template */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(12, 166, 120, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(12, 166, 120, 0);
  }
}

/* ==========================================================================
   High-Contrast (HC) Mode
   ========================================================================== */
body.hc {
  --zoho-bg: #e7eaf0;
  --zoho-border: #7c8598;
  --zoho-divider: #8a93a8;
  --zoho-text-muted: #2a3147;
  --zoho-text-secondary: #141a2e;
  --zoho-text-main: #0b1020;
}

body.hc [style*="color: rgb(154, 163, 181)"],
body.hc .text-muted,
body.hc .text-gray-400,
body.hc .text-gray-500,
body.hc .text-gray-600 {
  color: #2a3147 !important;
  font-weight: 600;
}

body.hc [style*="color: rgb(110, 120, 145)"] {
  color: #141a2e !important;
}

body.hc [style*="solid rgb(227, 230, 235)"],
body.hc .border,
body.hc .card,
body.hc hr,
body.hc table td,
body.hc table th {
  border-color: #7c8598 !important;
}

body.hc [style*="solid rgb(237, 240, 244)"] {
  border-color: #8a93a8 !important;
}

body.hc input,
body.hc select,
body.hc textarea,
body.hc .form-control,
body.hc .form-select {
  color: #0b1020 !important;
  border-color: #7c8598 !important;
}

body.hc input::placeholder,
body.hc textarea::placeholder {
  color: #4a5268 !important;
}

body.hc .bg-light,
body.hc table thead th,
body.hc [style*="background: rgb(247, 248, 250)"] {
  background-color: #edf0f4 !important;
  color: #0b1020 !important;
}

/* ==========================================================================
   Global Topbar (52px White Header)
   ========================================================================== */
.zoho-global-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--zoho-border);
  padding: 0 clamp(14px, 2.5vw, 28px);
  height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.zoho-brand-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  text-decoration: none !important;
}

.zoho-brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--zoho-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  font-family: var(--zoho-font);
}

.zoho-brand-title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--zoho-text-main);
  font-family: var(--zoho-font);
}

.zoho-brand-title span {
  color: var(--zoho-blue);
}

.zoho-brand-badge {
  font-size: 10.5px;
  color: var(--zoho-text-muted);
  background: var(--zoho-bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid var(--zoho-border);
}

/* Centered Global Search */
.zoho-search-container {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.zoho-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--zoho-bg);
  border: 1px solid var(--zoho-border);
  border-radius: 7px;
  padding: 0 12px;
  color: var(--zoho-placeholder);
  font-size: 13px;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.zoho-search-input-wrap:focus-within {
  background: #ffffff;
  border-color: var(--zoho-blue);
  box-shadow: 0 0 0 3px rgba(16, 113, 229, 0.12);
}

.zoho-search-input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 7px 0 !important;
  font-size: 13px !important;
  font-family: var(--zoho-font) !important;
  color: var(--zoho-text-main) !important;
  flex: 1;
  height: 32px;
}

.zoho-search-shortcut {
  font-size: 11px;
  background: #ffffff;
  border: 1px solid var(--zoho-border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--zoho-text-secondary);
  font-weight: 700;
}

/* Global Search Dropdown */
.zoho-global-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 460px;
  max-width: 580px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.04);
  z-index: 1060;
  overflow: hidden;
}

.zoho-global-search-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 4px 0;
}

.zoho-search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background-color 0.12s ease;
  text-decoration: none !important;
  border-bottom: 1px solid #f1f5f9;
}

.zoho-search-result-item:last-child {
  border-bottom: none;
}

.zoho-search-result-item:hover,
.zoho-search-result-item.active {
  background-color: #f8fafc;
}

.zoho-search-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.zoho-search-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  text-transform: uppercase;
}

.zoho-search-text {
  min-width: 0;
  flex: 1;
}

.zoho-search-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zoho-search-sub {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.3;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zoho-search-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.zoho-search-empty {
  padding: 16px 14px;
  text-align: center;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 500;
}

.zoho-search-loading {
  padding: 12px 14px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}


/* Topbar Actions */
.zoho-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.zoho-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: var(--zoho-bg);
  color: var(--zoho-text-secondary);
  font-size: 14px;
  transition: all 0.15s;
}

.zoho-action-btn:hover {
  background: #e3e6eb;
  color: var(--zoho-text-main);
}

.zoho-action-btn.btn-blue {
  background: var(--zoho-blue);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.zoho-action-btn.btn-blue:hover {
  background: var(--zoho-blue-hover);
}

.zoho-hc-toggle {
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--zoho-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  color: var(--zoho-text-main);
  border: 1.5px solid var(--zoho-border);
  transition: all 0.15s;
  user-select: none;
}

.zoho-hc-toggle:hover {
  border-color: var(--zoho-text-main);
}

body.hc .zoho-hc-toggle {
  background: #141a2e !important;
  color: #ffffff !important;
  border-color: #141a2e !important;
}

/* User Identity Pill */
.zoho-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 10px;
  border-left: 1px solid var(--zoho-border);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}

.zoho-user-pill:hover {
  background: #f7f8fa;
}

.zoho-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8330c;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.zoho-user-info {
  line-height: 1.25;
}

.zoho-user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--zoho-text-main);
  white-space: nowrap;
}

.zoho-user-role {
  font-size: 10px;
  color: var(--zoho-green);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.zoho-user-role .online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zoho-green);
  display: inline-block;
}

/* ==========================================================================
   Module Navigation Bar (Navy Blue #21324E)
   ========================================================================== */
.zoho-module-nav {
  background: var(--zoho-navy);
  padding: 0 clamp(14px, 2.5vw, 28px);
  display: flex;
  align-items: stretch;
  gap: 2px;
  position: sticky;
  top: 52px;
  z-index: 1010;
  overflow: visible !important;
}

.zoho-nav-item {
  padding: 11px 15px;
  font-size: 12.5px;
  font-weight: 500;
  color: #c7d2e8;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none !important;
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
  user-select: none;
}

.zoho-nav-item:hover,
.zoho-nav-item:focus {
  color: #ffffff !important;
  background: var(--zoho-navy-hover);
}

.zoho-nav-item.active {
  color: #ffffff;
  font-weight: 700;
  background: var(--zoho-navy-active);
  border-bottom: 3px solid var(--zoho-blue);
}

/* Dropdown Menu for Entities / Operations */
.zoho-nav-dropdown {
  position: relative !important;
}

.zoho-module-nav .dropdown-menu,
.zoho-dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 210px !important;
  background: #ffffff !important;
  border: 1px solid var(--zoho-border) !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 16px 40px rgba(33, 38, 60, 0.28) !important;
  z-index: 9999 !important;
  padding: 6px 0 !important;
  margin-top: 0 !important;
  animation: fadeUp 0.15s ease both;
}

.zoho-nav-dropdown:hover > .dropdown-menu,
.zoho-nav-dropdown:hover > .zoho-dropdown-menu {
  display: block !important;
}

.zoho-dropdown-menu.show {
  display: block !important;
}

.zoho-dropdown-item,
.zoho-module-nav .dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 9px 16px !important;
  cursor: pointer !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: var(--zoho-text-secondary) !important;
  text-decoration: none !important;
  transition:
    background 0.15s,
    color 0.15s !important;
}

.zoho-dropdown-item:hover,
.zoho-module-nav .dropdown-item:hover {
  background-color: #f7faff !important;
  color: var(--zoho-blue) !important;
}

.zoho-dropdown-item:hover {
  background: #f7faff;
  color: var(--zoho-blue);
}

.zoho-dropdown-item.active {
  font-weight: 700;
  color: var(--zoho-blue);
  background: var(--zoho-blue-tint);
}

.zoho-dropdown-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--zoho-blue);
}

/* ==========================================================================
   Context Sub-Header Bar
   ========================================================================== */
.zoho-subheader-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--zoho-border);
  padding: 11px clamp(14px, 2.5vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.zoho-subheader-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.zoho-screen-title {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--zoho-text-main);
  margin: 0;
  line-height: 1.2;
}

.zoho-star-btn {
  color: var(--zoho-orange);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.zoho-nav-btn-group {
  display: flex;
  gap: 6px;
}

.zoho-nav-icon-btn {
  width: 27px;
  height: 27px;
  border-radius: 6px;
  border: 1px solid var(--zoho-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zoho-blue);
  cursor: pointer;
  font-size: 12px;
  background: #ffffff;
  transition: background 0.15s;
  user-select: none;
}

.zoho-nav-icon-btn:hover {
  background: #f0f6ff;
}

.zoho-subheader-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.zoho-live-clock {
  font-size: 12px;
  color: var(--zoho-text-muted);
  font-weight: 500;
}

.zoho-wallet-chip {
  background: var(--zoho-green-tint);
  border: 1px solid #a7e3ce;
  color: var(--zoho-green);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   Content Container & Zoho Cards
   ========================================================================== */
.zoho-container {
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(14px, 2.5vw, 24px);
  box-sizing: border-box;
}

/* Modern Card & Table List Container Overrides */
.card,
.zoho-card,
.card.card-custom {
  background: #ffffff !important;
  border: 1px solid #e1e3ea !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 4px rgba(33, 38, 60, 0.04) !important;
  margin-bottom: 20px;
  overflow: visible !important;
}

/* High Contrast mode support */
body.hc .card,
body.hc .zoho-card,
body.hc .card.card-custom {
  border: 1px solid #7c8598 !important;
  border-radius: 10px !important;
}

/* Zoho Table Toolbar within Cards */
.zoho-toolbar-wrap {
  position: relative;
  z-index: 25;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px !important;
  border-bottom: 1px solid #edf0f4 !important;
  background: #ffffff !important;
  flex-wrap: wrap;
  gap: 12px;
}

/* Global Column Visibility Dropdown Styling */
.customer-col-dropdown {
  position: relative;
  display: inline-block;
}

.customer-col-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 1055;
  background: #ffffff;
  border: 1px solid #e3e6eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(33, 38, 60, 0.15);
  min-width: 190px;
  max-height: 420px;
  overflow-y: auto;
  padding: 6px 0;
}

.customer-col-header {
  font-size: 10.5px;
  font-weight: 800;
  color: #9aa3b5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 14px 8px;
  border-bottom: 1px solid #edf0f4;
  margin-bottom: 4px;
}

.customer-col-item {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #21263c;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
  margin-bottom: 0;
}

.customer-col-item:hover {
  background: #f8fafd;
  color: #1071e5;
}

.customer-col-item input[type="checkbox"] {
  cursor: pointer;
  accent-color: #1071e5;
  width: 14px;
  height: 14px;
  margin: 0;
}

.zoho-toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.zoho-toolbar-title {
  font-size: 15px;
  font-weight: 800;
  color: #21263c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zoho-count-pill {
  font-size: 12px;
  font-weight: 600;
  color: #6e7891;
}

.zoho-toolbar-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f7f8fa;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0 10px;
  height: 34px;
  box-sizing: border-box;
}

.zoho-toolbar-search:focus-within {
  background: #ffffff;
  border-color: #1071e5;
  box-shadow: 0 0 0 3px rgba(16, 113, 229, 0.12);
}

.zoho-toolbar-search .search-icon {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a94a6;
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
  pointer-events: none;
  transform: none;
  top: auto;
  left: auto;
}

.zoho-toolbar-search .search-icon svg {
  display: block;
}

.zoho-toolbar-search input,
#package_quick_search,
#employee_quick_search,
#complaint_quick_search,
#customer_quick_search,
#wallet_quick_search,
#wallet_tx_quick_search,
#operator_quick_search,
#distributor_quick_search,
#sub_distributor_quick_search {
  background: transparent !important;
  border: none !important;
  padding: 6px 0 !important;
  font-size: 12.5px !important;
  color: #21263c !important;
  min-width: 200px;
  width: 220px;
  height: 100% !important;
  outline: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  line-height: normal !important;
  transition: all 0.15s ease !important;
}

.zoho-toolbar-search input:focus,
#package_quick_search:focus,
#employee_quick_search:focus,
#complaint_quick_search:focus,
#customer_quick_search:focus,
#wallet_quick_search:focus,
#wallet_tx_quick_search:focus,
#operator_quick_search:focus,
#distributor_quick_search:focus,
#sub_distributor_quick_search:focus {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.zoho-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Zoho Collapsible Filter Drawer */
.zoho-filter-drawer {
  background: #fafbfd !important;
  border-bottom: 1px solid #edf0f4 !important;
  padding: 16px 20px !important;
}

/* Table Responsive Container Inside Card with consistent padding */
.card > .table-responsive,
.zoho-card > .table-responsive,
.card.card-custom > .table-responsive {
  padding: 0 20px !important;
  border: none !important;
  margin-bottom: 0 !important;
}

/* Table styling */
table.dataTable,
.table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-family: var(--zoho-font) !important;
}

table.dataTable thead th,
.table thead th {
  background: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #6e7891 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-bottom: 1px solid #e1e3ea !important;
  border-top: none !important;
  padding: 12px 14px !important;
}

table.dataTable tbody td,
.table tbody td {
  padding: 12px 14px !important;
  border-bottom: 1px solid #edf0f4 !important;
  font-size: 12.5px !important;
  color: #21263c !important;
  vertical-align: middle !important;
}

table.dataTable tbody tr:hover,
.table tbody tr:hover {
  background-color: #f8fafc !important;
}

/* DataTables pagination & bottom controls wrapper inside card */
.dataTables_wrapper > .d-flex.justify-content-between,
.card .dataTables_wrapper > div.d-flex:last-child,
.zoho-card .dataTables_wrapper > div.d-flex:last-child {
  padding: 14px 20px !important;
  border-top: 1px solid #edf0f4 !important;
  margin-top: 0 !important;
  align-items: center !important;
  background: #ffffff !important;
}

.card-header,
.zoho-card-header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--zoho-divider) !important;
  padding: 13px 18px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title,
.zoho-card-title {
  font-weight: 700 !important;
  font-size: 14px !important;
  color: var(--zoho-text-main) !important;
  margin: 0 !important;
}

.card-body,
.zoho-card-body {
  padding: 16px 18px !important;
}

/* KPI Top-Border Accent Cards */
.zoho-kpi-card {
  background: #ffffff;
  border: 1px solid var(--zoho-border);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.zoho-kpi-card.kpi-blue {
  border-top: 3px solid var(--zoho-blue);
}
.zoho-kpi-card.kpi-green {
  border-top: 3px solid var(--zoho-green);
}
.zoho-kpi-card.kpi-orange {
  border-top: 3px solid var(--zoho-orange);
}
.zoho-kpi-card.kpi-red {
  border-top: 3px solid var(--zoho-red);
}

.zoho-kpi-label {
  font-size: 12px;
  color: var(--zoho-text-muted);
  font-weight: 600;
}

.zoho-kpi-value {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--zoho-text-main);
  line-height: 1.2;
}

.zoho-kpi-delta {
  font-size: 11.5px;
  font-weight: 600;
}

.zoho-kpi-delta.delta-green {
  color: var(--zoho-green);
}
.zoho-kpi-delta.delta-red {
  color: var(--zoho-red);
}
.zoho-kpi-delta.delta-blue {
  color: var(--zoho-blue);
}

/* ==========================================================================
   DataTables & Lists
   ========================================================================== */
table.dataTable,
.table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-family: var(--zoho-font) !important;
}

table.dataTable thead th,
.table thead th {
  background: #f7f8fa !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: var(--zoho-text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-bottom: 1px solid var(--zoho-border) !important;
  border-top: none !important;
  padding: 10px 14px !important;
}

table.dataTable tbody td,
.table tbody td {
  padding: 11px 14px !important;
  border-bottom: 1px solid var(--zoho-divider) !important;
  font-size: 12.5px !important;
  color: var(--zoho-text-main) !important;
  vertical-align: middle !important;
}

table.dataTable tbody tr:hover,
.table tbody tr:hover {
  background-color: #f7faff !important;
}

/* Pagination & search wrapper */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 4px 10px !important;
  background: #ffffff !important;
  color: var(--zoho-text-secondary) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  margin: 0 2px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--zoho-blue) !important;
  color: #ffffff !important;
  border-color: var(--zoho-blue) !important;
}

/* ==========================================================================
   Form Controls & Buttons
   ========================================================================== */
.form-control,
.form-select {
  border: 1px solid var(--zoho-border) !important;
  border-radius: 6px !important;
  font-family: var(--zoho-font) !important;
  font-size: 13px !important;
  color: var(--zoho-text-main) !important;
  padding: 8px 12px !important;
  background-color: #ffffff !important;
  transition:
    border-color 0.15s,
    box-shadow 0.15s !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--zoho-blue) !important;
  box-shadow: 0 0 0 3px rgba(16, 113, 229, 0.12) !important;
}

.btn {
  font-family: var(--zoho-font) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 7px 15px !important;
  transition: all 0.15s !important;
}

.btn-primary {
  background-color: var(--zoho-blue) !important;
  border-color: var(--zoho-blue) !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--zoho-blue-hover) !important;
  border-color: var(--zoho-blue-hover) !important;
}

.btn-success {
  background-color: var(--zoho-green) !important;
  border-color: var(--zoho-green) !important;
  color: #ffffff !important;
}

.btn-success:hover {
  background-color: var(--zoho-green-hover) !important;
  border-color: var(--zoho-green-hover) !important;
}

.btn-secondary,
.btn-light {
  background-color: #ffffff !important;
  border: 1px solid var(--zoho-border) !important;
  color: var(--zoho-text-secondary) !important;
}

.btn-secondary:hover,
.btn-light:hover {
  background-color: #f7faff !important;
  border-color: var(--zoho-blue) !important;
  color: var(--zoho-blue) !important;
}

/* Status Badges */
.badge {
  font-family: var(--zoho-font) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  border-radius: 4px !important;
  letter-spacing: 0.02em !important;
}

.badge-success,
.badge-light-success {
  background-color: var(--zoho-green-tint) !important;
  color: var(--zoho-green) !important;
  border: 1px solid #a7e3ce !important;
}

.badge-danger,
.badge-light-danger {
  background-color: var(--zoho-red-tint) !important;
  color: var(--zoho-red) !important;
  border: 1px solid #f7b5b5 !important;
}

.badge-primary,
.badge-light-primary {
  background-color: var(--zoho-blue-tint) !important;
  color: var(--zoho-blue) !important;
  border: 1px solid #b8d5fa !important;
}

.badge-warning,
.badge-light-warning {
  background-color: var(--zoho-orange-tint) !important;
  color: #c77700 !important;
  border: 1px solid #f7deb5 !important;
}

/* Progress Bars */
.progress {
  background-color: var(--zoho-divider) !important;
  border-radius: 3px !important;
  overflow: hidden;
  height: 6px !important;
}

.progress-bar {
  border-radius: 3px !important;
  background-color: var(--zoho-blue) !important;
}

.progress-bar.bg-success {
  background-color: var(--zoho-green) !important;
}

/* Timeline & Activity Log */
.timeline.timeline-1 .timeline-item {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--zoho-divider);
  margin-bottom: 10px;
}

.timeline.timeline-1 .timeline-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--zoho-blue-tint);
  color: var(--zoho-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-right: 10px;
}

.timeline.timeline-1 .timeline-content {
  font-size: 12.5px;
  color: var(--zoho-text-main);
  line-height: 1.35;
}

/* ==========================================================================
   PHASE 4: GLOBAL MODULES & DATATABLES ALIGNMENT
   Sub-Distributors, Distributors, Operators, Customers, Packages, Orders
   ========================================================================== */

/* Page Container within Module Views */
.post .container-fluid,
.post .container-xxl {
  padding: 0 clamp(14px, 2.5vw, 24px) !important;
  margin: 0 auto !important;
}

/* Module Master Card (.card.card-custom) */
.card.card-custom {
  background: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  margin-bottom: 20px !important;
}

.card.card-custom .col-md-12.px-10 {
  padding: 16px 20px !important;
}

.card.card-custom h3,
.card.card-custom .card-title,
.card.card-custom .text-gray-900 {
  font-weight: 700 !important;
  font-size: 16px !important;
  color: var(--zoho-text-main) !important;
  letter-spacing: -0.01em !important;
}

.card.card-custom .separator.separator-solid {
  border-bottom: 1px solid var(--zoho-divider) !important;
  margin-top: 10px !important;
  margin-bottom: 16px !important;
}

/* Search / Filter Labels & Inputs */
.card.card-custom label,
.post label {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: var(--zoho-text-muted) !important;
  margin-bottom: 5px !important;
  text-transform: capitalize !important;
}

.card.card-custom .form-control,
.card.card-custom select,
.post .form-control,
.post select {
  border: 1px solid var(--zoho-border) !important;
  border-radius: 6px !important;
  font-size: 12.5px !important;
  font-family: var(--zoho-font) !important;
  color: var(--zoho-text-main) !important;
  height: 36px !important;
  padding: 6px 12px !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  transition:
    border-color 0.15s,
    box-shadow 0.15s !important;
}

.card.card-custom .form-control:focus,
.card.card-custom select:focus,
.post .form-control:focus,
.post select:focus {
  border-color: var(--zoho-blue) !important;
  box-shadow: 0 0 0 3px rgba(16, 113, 229, 0.12) !important;
}

/* Global DataTables & Lists Overrides matching Zoho Template */
.zoho-card > .p-4,
.zoho-card .p-4:has(.dataTable) {
  padding: 0 !important;
  margin: 0 !important;
}

.zoho-card .card.card-flush,
.zoho-card .card-flush {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.zoho-card .table-responsive {
  margin: 0 !important;
  border: none !important;
  padding: 0 !important;
  overflow-x: auto !important;
}

.custom_tbl_style,
table.dataTable {
  border: none !important;
  border-collapse: collapse !important;
  border-radius: 0 !important;
  overflow: visible !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  width: 100% !important;
}

.custom_tbl_style thead,
table.dataTable thead {
  background-color: #f7f8fa !important;
}

.custom_tbl_style thead th,
table.dataTable thead th,
.table thead th {
  background-color: #f7f8fa !important;
  color: #6e7891 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 10px 18px !important;
  border-bottom: 1px solid #edf0f4 !important;
  border-top: none !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  font-family: var(--zoho-font) !important;
}

.custom_tbl_style tbody td,
table.dataTable tbody td,
.table tbody td {
  font-size: 12.5px !important;
  color: #21263c !important;
  padding: 11px 18px !important;
  border-bottom: 1px solid #edf0f4 !important;
  vertical-align: middle !important;
  font-family: var(--zoho-font) !important;
  background-color: #ffffff !important;
}

.custom_tbl_style tbody tr:hover td,
table.dataTable tbody tr:hover td,
.table tbody tr:hover td,
.custom_tbl_style tbody tr:hover,
table.dataTable tbody tr:hover,
.table tbody tr:hover {
  background-color: #f7faff !important;
}

/* Hyperlinks in table (e.g. entity names) */
.custom_tbl_style tbody td a,
table.dataTable tbody td a {
  color: var(--zoho-blue) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.custom_tbl_style tbody td a:hover,
table.dataTable tbody td a:hover {
  color: var(--zoho-blue-hover) !important;
  text-decoration: underline !important;
}

/* Action Buttons across all modules */
.add_sub_distributor-btn,
.add_distributor-btn,
.add_operator-btn,
.add_customer-btn {
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 7px 15px !important;
  box-shadow: none !important;
}

/* Table Action Buttons across all modules - 26x26px square */
table.dataTable tbody td .btn.btn-sm.btn-flex,
table.dataTable tbody td .btn.btn-icon,
table.dataTable tbody td .btn-clean,
.zoho-action-btn {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  padding: 0 !important;
  border-radius: 6px !important;
  border: 1px solid #e3e6eb !important;
  background: #ffffff !important;
  color: #6e7891 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 13px !important;
  margin: 0 !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
}

table.dataTable tbody td .btn.btn-sm.btn-flex:hover,
table.dataTable tbody td .btn.btn-icon:hover,
table.dataTable tbody td .btn-clean:hover,
.zoho-action-btn:hover {
  border-color: #1071e5 !important;
  color: #1071e5 !important;
  background: #f7faff !important;
}

table.dataTable tbody td .btn.btn-sm.btn-flex i,
table.dataTable tbody td .btn.btn-icon i,
.zoho-action-btn i {
  font-size: 13px !important;
  color: inherit !important;
  line-height: 1 !important;
  margin: 0 !important;
}

/* Row Action Dropdown Popover */
.menu.menu-sub-dropdown {
  background: #ffffff !important;
  border: 1px solid #e3e6eb !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 40px rgba(33, 38, 60, 0.18) !important;
  padding: 6px !important;
  z-index: 105 !important;
  font-family: var(--zoho-font) !important;
}

.menu.menu-sub-dropdown .menu-item {
  margin: 0 !important;
}

.menu.menu-sub-dropdown .menu-item .menu-link {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #4a5268 !important;
  padding: 7px 12px !important;
  border-radius: 5px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.12s ease !important;
}

.menu.menu-sub-dropdown .menu-item .menu-link:hover {
  background: #f7faff !important;
  color: #1071e5 !important;
}

/* DataTables Bottom Pagination & Length Bar */
.dataTables_wrapper > .d-flex.justify-content-between,
.dataTables_wrapper > div:last-child {
  padding: 12px 18px !important;
  border-top: 1px solid #edf0f4 !important;
  align-items: center !important;
  background: #ffffff !important;
  margin: 0 !important;
}

.dataTables_wrapper .dataTables_length {
  display: inline-flex !important;
  align-items: center !important;
  margin-right: 12px !important;
}

.dataTables_wrapper .dataTables_length label {
  font-size: 12px !important;
  color: #6e7891 !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}

.dataTables_wrapper .dataTables_length select {
  border: 1px solid #d5dae3 !important;
  border-radius: 5px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #1071e5 !important;
  background-color: #ffffff !important;
  height: 28px !important;
  min-width: 54px !important;
  cursor: pointer !important;
  outline: none !important;
}

.dataTables_wrapper .dataTables_info {
  font-size: 12px !important;
  color: #6e7891 !important;
  font-weight: 500 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.dataTables_wrapper .dataTables_paginate {
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button,
.pagination .page-item .page-link {
  min-width: 27px !important;
  height: 27px !important;
  padding: 0 8px !important;

  background: #ffffff !important;
  color: #4a5268 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 2px !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
}
.page-link {
  border-radius: 6px !important;
  border: 1px solid #e3e6eb !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.pagination .page-item .page-link:hover {
  border-color: #1071e5 !important;
  color: #1071e5 !important;
  background: #f7faff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.pagination .page-item.active .page-link {
  background: #1071e5 !important;
  border-color: #1071e5 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.pagination .page-item.disabled .page-link {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  border-color: #e3e6eb !important;
  background: #fafbfc !important;
  color: #9aa3b5 !important;
}

/* Select2 / tSelect Dropdown Overrides */
.select2-container--bootstrap5 .select2-selection,
.select2-container--default .select2-selection--single,
.tselect-container {
  border: 1px solid var(--zoho-border) !important;
  border-radius: 6px !important;
  font-family: var(--zoho-font) !important;
  font-size: 12.5px !important;
  height: 36px !important;
  background-color: #ffffff !important;
}

.select2-container--bootstrap5 .select2-selection:focus,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--zoho-blue) !important;
  box-shadow: 0 0 0 3px rgba(16, 113, 229, 0.12) !important;
}

/* Modals & Dialogs across all modules */
.modal-dialog {
  max-width: min(720px, 94vw) !important;
  margin: 2.5rem auto !important;
}

.modal.custom_modal .modal-content,
.modal .modal-content {
  border-radius: 10px !important;
  border: 1px solid #edf0f4 !important;
  box-shadow: 0 24px 64px rgba(33, 38, 60, 0.35) !important;
  overflow: hidden !important;
  background: #ffffff !important;
  animation: fadeUp 0.25s ease both !important;
}

.modal.custom_modal .modal-header,
.modal .modal-header {
  background-color: #fafbfc !important;
  border-bottom: 1px solid #edf0f4 !important;
  padding: 14px 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.modal.custom_modal .modal-title,
.modal .modal-title {
  font-weight: 700 !important;
  font-size: 15px !important;
  color: var(--zoho-text-main) !important;
  font-family: var(--zoho-font) !important;
  margin: 0 !important;
}

.modal.custom_modal .modal-body,
.modal .modal-body {
  background-color: #ffffff !important;
  padding: 20px !important;
}

.modal.custom_modal .custom-content-container {
  background-color: #fafbfc !important;
  border: 1px solid var(--zoho-divider) !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
  margin-bottom: 16px !important;
}

.modal.custom_modal .custom-content-text {
  font-weight: 700 !important;
  font-size: 13.5px !important;
  color: var(--zoho-text-main) !important;
}

/* ==========================================================================
   ZOHO ENTITY PROFILE COMPONENTS (Hero, Credentials Box, Logo Slot)
   ========================================================================== */
.zoho-profile-hero {
  position: relative;
  height: 96px;
  background: linear-gradient(100deg, #21324e 0%, var(--zoho-blue) 90%);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.zoho-profile-hero-back {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 6px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.15s;
}

.zoho-profile-hero-back:hover {
  background: rgba(255, 255, 255, 0.3);
}

.zoho-profile-avatar-wrap {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--zoho-blue), #21324e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 28px;
  margin-top: -48px;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(33, 38, 60, 0.18);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

/* Admin-Only Credentials Box */
.zoho-cred-box {
  border: 1px solid #edf0f4;
  border-radius: 8px;
  padding: 10px 13px;
  background: #fafbfc;
  display: flex;
  align-items: center;
  gap: 10px;
}

.zoho-cred-label {
  font-size: 9.5px;
  color: var(--zoho-placeholder);
  font-weight: 800;
  text-transform: uppercase;
}

.zoho-cred-value {
  font-weight: 700;
  font-size: 13px;
  color: var(--zoho-text-main);
}

.zoho-icon-btn-sm {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--zoho-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  color: var(--zoho-text-muted);
  background: #fff;
  transition: all 0.15s;
}

.zoho-icon-btn-sm:hover {
  border-color: var(--zoho-blue);
  color: var(--zoho-blue);
}

/* High-Contrast overrides for tables & cards */
body.hc .custom_tbl_style thead th,
body.hc table.dataTable thead th {
  background-color: #dde2ec !important;
  color: #0b1020 !important;
  border-color: #7c8598 !important;
}

body.hc .custom_tbl_style tbody td,
body.hc table.dataTable tbody td {
  border-color: #7c8598 !important;
  color: #0b1020 !important;
}

body.hc .card.card-custom {
  border-color: #7c8598 !important;
}

/* ==========================================================================
   UNIVERSAL ZOHO PRESENTATION COMPONENTS (V3 TEMPLATE FIDELITY)
   ========================================================================== */

/* 1. Zoho List Toolbar (.zoho-toolbar-wrap) */
.zoho-toolbar-wrap {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  padding: 12px 18px !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--zoho-divider) !important;
}

.zoho-toolbar-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.zoho-toolbar-title {
  font-weight: 700 !important;
  font-size: 14.5px !important;
  color: var(--zoho-text-main) !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.zoho-count-pill {
  color: var(--zoho-text-muted) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

.zoho-toolbar-search {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #f7f8fa !important;
  border: 1px solid var(--zoho-border, #e2e8f0) !important;
  border-radius: 6px !important;
  padding: 0 10px !important;
  height: 34px !important;
  box-sizing: border-box !important;
  transition:
    border-color 0.15s,
    background-color 0.15s,
    box-shadow 0.15s !important;
}

.zoho-toolbar-search:focus-within {
  background: #ffffff !important;
  border-color: var(--zoho-blue, #1071e5) !important;
  box-shadow: 0 0 0 3px rgba(16, 113, 229, 0.12) !important;
}

.zoho-toolbar-search .search-icon {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--zoho-placeholder, #8a94a6) !important;
  font-size: 13px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  pointer-events: none !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
}

.zoho-toolbar-search .search-icon svg {
  display: block !important;
}

.zoho-toolbar-search input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 6px 0 !important;
  font-size: 12.5px !important;
  font-family: var(--zoho-font, inherit) !important;
  color: var(--zoho-text-main, #21263c) !important;
  width: 220px !important;
  height: 100% !important;
  box-sizing: border-box !important;
  line-height: normal !important;
  box-shadow: none !important;
}

.zoho-toolbar-right,
.zoho-toolbar-actions {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

/* Zoho Toolbar Buttons */
.zoho-btn-filter {
  background: #ffffff !important;
  border: 1px solid #d5dae3 !important;
  color: var(--zoho-text-secondary) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 7px 13px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.15s !important;
  user-select: none !important;
}

.zoho-btn-filter:hover,
.zoho-btn-filter.active {
  border-color: var(--zoho-blue) !important;
  color: var(--zoho-blue) !important;
  background: var(--zoho-blue-tint) !important;
}

.zoho-btn-outline {
  background: #ffffff !important;
  border: 1px solid #d5dae3 !important;
  color: var(--zoho-text-secondary) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 7px 13px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.15s !important;
  text-decoration: none !important;
}

.zoho-btn-outline:hover {
  border-color: var(--zoho-blue) !important;
  color: var(--zoho-blue) !important;
  background: #f7faff !important;
}

.zoho-btn-add {
  background: var(--zoho-blue) !important;
  border: 1px solid var(--zoho-blue) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 7px 15px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: background-color 0.15s !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.zoho-btn-add:hover {
  background: var(--zoho-blue-hover) !important;
  border-color: var(--zoho-blue-hover) !important;
  color: #ffffff !important;
}

/* Action Icon Buttons */
.emp-action-btn {
  width: 30px !important;
  height: 30px !important;
  border-radius: 6px !important;
  border: 1px solid #e3e6eb !important;
  background: #ffffff !important;
  color: #6e7891 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
  padding: 0 !important;
  text-decoration: none !important;
}

.emp-action-btn:hover {
  border-color: #1b84ff !important;
  color: #1b84ff !important;
  background: #f7faff !important;
}

/* 2. Zoho Collapsible Filter Drawer (.zoho-filter-drawer) */
.zoho-filter-drawer {
  padding: 14px 18px !important;
  background: #fafbfc !important;
  border-bottom: 1px solid var(--zoho-divider) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  animation: fadeUp 0.2s ease both !important;
}

.zoho-filter-drawer.is-collapsed,
.zoho-filter-drawer[style*="display: none"] {
  display: none !important;
}

.zoho-filter-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 12px !important;
  align-items: end !important;
}

.zoho-filter-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.zoho-filter-label {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--zoho-text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  margin-bottom: 2px !important;
}

.zoho-filter-control,
.zoho-filter-group input,
.zoho-filter-group select,
.zoho-filter-group .select2-container .select2-selection {
  border: 1px solid #d5dae3 !important;
  border-radius: 6px !important;
  padding: 7px 10px !important;
  font-size: 12px !important;
  font-family: var(--zoho-font) !important;
  outline: none !important;
  background: #ffffff !important;
  color: var(--zoho-text-main) !important;
  height: 36px !important;
  transition:
    border-color 0.15s,
    box-shadow 0.15s !important;
}

.zoho-filter-control:focus,
.zoho-filter-group input:focus,
.zoho-filter-group select:focus {
  border-color: var(--zoho-blue) !important;
  box-shadow: 0 0 0 3px rgba(16, 113, 229, 0.12) !important;
}

/* --- Filter Drawer Date Range & Input Groups --- */
.zoho-filter-drawer .input-group,
.zoho-filter-group .input-group {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  border: 1px solid #d5dae3 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: none !important;
  width: 100% !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}

.zoho-filter-drawer .input-group:focus-within,
.zoho-filter-group .input-group:focus-within {
  border-color: var(--zoho-blue) !important;
  box-shadow: 0 0 0 3px rgba(16, 113, 229, 0.12) !important;
}

.zoho-filter-drawer .input-group > input.zoho-filter-control,
.zoho-filter-drawer .input-group > input.dtpicker_range,
.zoho-filter-drawer .input-group > input,
.zoho-filter-group .input-group > input.zoho-filter-control,
.zoho-filter-group .input-group > input.dtpicker_range,
.zoho-filter-group .input-group > input {
  border: none !important;
  border-radius: 0 !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  flex: 1 1 auto !important;
  width: 1% !important;
  min-width: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  font-family: var(--zoho-font) !important;
  color: var(--zoho-text-main) !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
}

.zoho-filter-drawer .input-group > .input-group-text.dtpicker_range-clear,
.zoho-filter-group .input-group > .input-group-text.dtpicker_range-clear {
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #8C98A4 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 0 10px !important;
  height: 100% !important;
  min-height: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
  line-height: 1 !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.zoho-filter-drawer .input-group > .input-group-text.dtpicker_range-clear:hover,
.zoho-filter-group .input-group > .input-group-text.dtpicker_range-clear:hover {
  color: #e53935 !important;
  background-color: rgba(229, 57, 53, 0.08) !important;
}

/* FloverSelect inside Filter Drawer */
.zoho-filter-drawer .fs-wrap,
.zoho-filter-group .fs-wrap {
  width: 100% !important;
}

.zoho-filter-drawer .fs-label-wrap,
.zoho-filter-group .fs-label-wrap {
  height: 36px !important;
  border: 1px solid #d5dae3 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.zoho-filter-drawer .fs-label-wrap .fs-label,
.zoho-filter-group .fs-label-wrap .fs-label {
  padding: 0 10px !important;
  font-size: 12px !important;
  font-family: var(--zoho-font) !important;
  color: var(--zoho-text-main) !important;
  line-height: 34px !important;
}

.zoho-filter-drawer .fs-wrap.fs-open .fs-label-wrap,
.zoho-filter-group .fs-wrap.fs-open .fs-label-wrap {
  border-color: var(--zoho-blue) !important;
  box-shadow: 0 0 0 3px rgba(16, 113, 229, 0.12) !important;
}

.zoho-filter-actions {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  padding-top: 6px !important;
  margin-top: 4px !important;
}

.zoho-btn-apply {
  background: var(--zoho-blue) !important;
  color: #ffffff !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 0 16px !important;
  height: 32px !important;
  border-radius: 6px !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  transition: background 0.15s !important;
}

.zoho-btn-apply:hover {
  background: var(--zoho-blue-hover) !important;
}

.zoho-btn-clear {
  background: #ffffff !important;
  border: 1px solid #d5dae3 !important;
  color: var(--zoho-text-secondary) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 0 16px !important;
  height: 32px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  transition: all 0.15s !important;
}

.zoho-btn-clear:hover {
  background: #f0f2f5 !important;
  color: var(--zoho-text-main) !important;
}

/* 3. Action Buttons (26x26px square icons) */
.zoho-action-group {
  display: flex !important;
  gap: 6px !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.zoho-action-btn {
  width: 26px !important;
  height: 26px !important;
  border-radius: 6px !important;
  border: 1px solid var(--zoho-border) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 12px !important;
  color: var(--zoho-text-muted) !important;
  background: #ffffff !important;
  transition: all 0.15s !important;
  text-decoration: none !important;
  user-select: none !important;
}

.zoho-action-btn:hover {
  border-color: var(--zoho-blue) !important;
  color: var(--zoho-blue) !important;
  background: #f7faff !important;
}

.zoho-action-btn.action-del:hover {
  border-color: var(--zoho-red) !important;
  color: var(--zoho-red) !important;
  background: var(--zoho-red-tint) !important;
}

.zoho-action-btn.action-assign:hover {
  border-color: var(--zoho-green) !important;
  color: var(--zoho-green) !important;
  background: var(--zoho-green-tint) !important;
}

.zoho-action-btn.action-warning:hover {
  border-color: var(--zoho-orange) !important;
  color: var(--zoho-orange) !important;
  background: var(--zoho-orange-tint) !important;
}

/* 4. Unified Status Badges & Pills */
.zoho-pill {
  font-family: var(--zoho-font) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.zoho-pill-active,
.badge.bg-success,
.badge-success {
  background: #e9f7f1 !important;
  color: #0ca678 !important;
  border: 1px solid #a7e3ce !important;
}

.zoho-pill-inactive,
.badge.bg-danger,
.badge-danger {
  background: #fdecec !important;
  color: #d6336c !important;
  border: 1px solid #f7b5b5 !important;
}

.zoho-pill-warning,
.badge.bg-warning,
.badge-warning {
  background: #fdf3e3 !important;
  color: #c77700 !important;
  border: 1px solid #f7deb5 !important;
}

.zoho-pill-info,
.badge.bg-primary,
.badge-primary {
  background: #e9f1fc !important;
  color: #1071e5 !important;
  border: 1px solid #b8d5fa !important;
}

/* 5. Zoho Modern Modal Enhancements */
.modal.custom_modal .modal-content,
.modal .modal-content {
  border-radius: 10px !important;
  border: 1px solid var(--zoho-border) !important;
  box-shadow: 0 24px 64px rgba(33, 38, 60, 0.35) !important;
  overflow: hidden !important;
  animation: fadeUp 0.25s ease both !important;
}

.modal.custom_modal .modal-header,
.modal .modal-header {
  background-color: #fafbfc !important;
  border-bottom: 1px solid #edf0f4 !important;
  padding: 14px 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.modal.custom_modal .modal-title,
.modal .modal-title {
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #21263c !important;
  font-family: var(--zoho-font) !important;
  margin: 0 !important;
}

.modal-header .btn-close {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0.7 !important;
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236E7891'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
    center/10px 10px no-repeat !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.modal-header .btn-close:hover {
  opacity: 1 !important;
  background-color: #fdecec !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23D6336C'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
}

.modal.custom_modal .modal-body,
.modal .modal-body {
  padding: 20px !important;
  background-color: #ffffff !important;
}

.modal-body label,
.modal-body .form-label {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #4a5268 !important;
  margin-bottom: 5px !important;
  display: block !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.modal-body label span[style*="red"],
.modal-body label span[style*="color: red"],
.modal-body .required {
  color: #e8330c !important;
  font-weight: 700 !important;
  margin-left: 2px !important;
}

.modal-body input.form-control,
.modal-body select.form-control,
.modal-body select.form-select,
.modal-body textarea.form-control,
.modal-body .input-group-text,
.modal-body .form-control {
  border: 1px solid #d5dae3 !important;
  border-radius: 6px !important;
  padding: 8px 11px !important;
  font-size: 12px !important;
  font-family: var(--zoho-font) !important;
  color: #21263c !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  min-height: 36px !important;
  height: auto !important;
  transition:
    border-color 0.15s,
    box-shadow 0.15s !important;
}

.modal-body input.form-control:focus,
.modal-body select.form-control:focus,
.modal-body select.form-select:focus,
.modal-body textarea.form-control:focus {
  border-color: #1071e5 !important;
  box-shadow: 0 0 0 2px rgba(16, 113, 229, 0.15) !important;
  outline: none !important;
}

.modal-body .input-group > .form-control:not(:first-child),
.modal-body .input-group > .input-group-text:not(:first-child) {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.modal-body .input-group > .form-control:not(:last-child),
.modal-body .input-group > .input-group-text:not(:last-child) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.modal-body .input-group-text {
  background-color: #f7f8fa !important;
  color: #6e7891 !important;
  font-weight: 600 !important;
  border: 1px solid #d5dae3 !important;
  font-size: 12px !important;
}

.modal-body .form-text,
.modal-body .text-muted {
  font-size: 11px !important;
  color: #9aa3b5 !important;
  margin-top: 3px !important;
  font-weight: 400 !important;
}

.modal.custom_modal .modal-footer,
.modal .modal-footer {
  background-color: #fafbfc !important;
  border-top: 1px solid #edf0f4 !important;
  padding: 13px 20px !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  align-items: center !important;
}

/* ==========================================================================
   5. Professional Modal & Dialog Action Buttons (Close & Submit)
   ========================================================================== */

/* --------------------------------------------------------------------------
   5A. CLOSE / CANCEL BUTTON
   Normal: Crisp white background, clean subtle border (#d5dae3), slate text, refined red cross icon
   Hover:  Soft rose/crimson tint (#fef2f2), subtle pastel border (#fca5a5), clear crimson text & icon
   -------------------------------------------------------------------------- */
.modal-footer .btn.btn-light-danger,
.modal-footer .btn.btn-light-danger.border-danger,
.modal-footer .btn.btn-secondary,
.modal-footer .btn.btn-light,
.modal-footer .btn[data-bs-dismiss="modal"],
.modal-footer a[data-bs-dismiss="modal"],
.modal-footer button[data-bs-dismiss="modal"],
.modal .modal-footer .btn-light-danger,
.btn.btn-light-danger.border-danger {
  background-color: #ffffff !important;
  border: 1px solid #d5dae3 !important;
  border-color: #d5dae3 !important;
  color: #4a5268 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 7px 18px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  outline: none !important;
}

/* Close Button Icon */
.modal-footer .btn.btn-light-danger i,
.modal-footer .btn.btn-secondary i,
.modal-footer .btn.btn-light i,
.modal-footer .btn[data-bs-dismiss="modal"] i,
.modal-footer a[data-bs-dismiss="modal"] i,
.modal-footer button[data-bs-dismiss="modal"] i,
.modal .modal-footer .btn-light-danger i,
.btn.btn-light-danger.border-danger i {
  color: #ef4444 !important;
  font-size: 11px !important;
  margin-right: 2px !important;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Close Button Hover State - Elegant, subtle light red background with refined red border & text */
.modal-footer .btn.btn-light-danger:hover,
.modal-footer .btn.btn-light-danger:hover:not(.btn-active),
.modal-footer .btn.btn-light-danger.border-danger:hover,
.modal-footer .btn.btn-light-danger.border-danger:hover:not(.btn-active),
.modal-footer .btn.btn-secondary:hover,
.modal-footer .btn.btn-secondary:hover:not(.btn-active),
.modal-footer .btn.btn-light:hover,
.modal-footer .btn.btn-light:hover:not(.btn-active),
.modal-footer .btn[data-bs-dismiss="modal"]:hover,
.modal-footer .btn[data-bs-dismiss="modal"]:hover:not(.btn-active),
.modal-footer a[data-bs-dismiss="modal"]:hover,
.modal-footer a[data-bs-dismiss="modal"]:hover:not(.btn-active),
.modal-footer button[data-bs-dismiss="modal"]:hover,
.modal-footer button[data-bs-dismiss="modal"]:hover:not(.btn-active),
.modal .modal-footer .btn-light-danger:hover,
.modal .modal-footer .btn-light-danger:hover:not(.btn-active),
.btn.btn-light-danger.border-danger:hover,
.btn.btn-light-danger.border-danger:hover:not(.btn-active) {
  background-color: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.12) !important;
  transform: translateY(-1px) !important;
}

#customer_add_modal .modal-footer button[data-bs-dismiss="modal"]:hover,
#customer_add_modal .modal-footer button[data-bs-dismiss="modal"]:hover:not(.btn-active) {
  background-color: #dc2626 !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
}

#customer_add_modal .modal-footer button[data-bs-dismiss="modal"]:hover i,
#customer_add_modal .modal-footer button[data-bs-dismiss="modal"]:hover:not(.btn-active) i {
  color: #ffffff !important;
}

.modal-footer .btn.btn-light-danger:hover i,
.modal-footer .btn.btn-light-danger:hover:not(.btn-active) i,
.modal-footer .btn.btn-secondary:hover i,
.modal-footer .btn.btn-secondary:hover:not(.btn-active) i,
.modal-footer .btn.btn-light:hover i,
.modal-footer .btn.btn-light:hover:not(.btn-active) i,
.modal-footer .btn[data-bs-dismiss="modal"]:hover i,
.modal-footer .btn[data-bs-dismiss="modal"]:hover:not(.btn-active) i,
.modal-footer a[data-bs-dismiss="modal"]:hover i,
.modal-footer a[data-bs-dismiss="modal"]:hover:not(.btn-active) i,
.modal-footer button[data-bs-dismiss="modal"]:hover i,
.modal-footer button[data-bs-dismiss="modal"]:hover:not(.btn-active) i,
.modal .modal-footer .btn-light-danger:hover i,
.modal .modal-footer .btn-light-danger:hover:not(.btn-active) i,
.btn.btn-light-danger.border-danger:hover i,
.btn.btn-light-danger.border-danger:hover:not(.btn-active) i {
  color: #dc2626 !important;
}

/* Close Button Active / Press State */
.modal-footer .btn.btn-light-danger:active,
.modal-footer .btn.btn-light-danger:active:not(.btn-active),
.modal-footer .btn[data-bs-dismiss="modal"]:active,
.modal-footer a[data-bs-dismiss="modal"]:active,
.modal-footer button[data-bs-dismiss="modal"]:active {
  background-color: #fee2e2 !important;
  border-color: #f87171 !important;
  color: #b91c1c !important;
  transform: translateY(0) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* Close Button Focus State */
.modal-footer .btn.btn-light-danger:focus,
.modal-footer .btn.btn-light-danger:focus-visible,
.modal-footer [data-bs-dismiss="modal"]:focus,
.modal-footer [data-bs-dismiss="modal"]:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

/* --------------------------------------------------------------------------
   5B. SUBMIT / PRIMARY ACTION BUTTON
   Normal: Vibrant Zoho/Relier brand blue (#1071e5), white text, crisp white checkmark icon
   Hover:  Deep rich cobalt blue (#0b5ed7), dark border (#0a58ca), elevated soft glow
   -------------------------------------------------------------------------- */
.modal-footer .btn.btn-light-success,
.modal-footer .btn.btn-light-success.border-success,
.modal-footer .btn.btn-primary,
.modal-footer .btn.btn-success,
.modal-footer .btn[type="submit"],
.modal-footer button[type="submit"],
.modal .modal-footer .btn-light-success,
.btn.btn-light-success.border-success {
  background-color: #1071e5 !important;
  border: 1px solid #1071e5 !important;
  border-color: #1071e5 !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 7px 20px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(16, 113, 229, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  outline: none !important;
}

/* Submit Button Icon - Always crisp white to eliminate mismatched green-on-blue */
.modal-footer .btn.btn-light-success i,
.modal-footer .btn.btn-light-success.border-success i,
.modal-footer .btn.btn-primary i,
.modal-footer .btn.btn-success i,
.modal-footer .btn[type="submit"] i,
.modal-footer button[type="submit"] i,
.modal .modal-footer .btn-light-success i,
.btn.btn-light-success.border-success i {
  color: #ffffff !important;
  font-size: 11px !important;
  margin-right: 2px !important;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Submit Button Hover State - Deep, rich cobalt blue with soft glow lift */
.modal-footer .btn.btn-light-success:hover,
.modal-footer .btn.btn-light-success:hover:not(.btn-active),
.modal-footer .btn.btn-light-success.border-success:hover,
.modal-footer .btn.btn-light-success.border-success:hover:not(.btn-active),
.modal-footer .btn.btn-primary:hover,
.modal-footer .btn.btn-primary:hover:not(.btn-active),
.modal-footer .btn.btn-success:hover,
.modal-footer .btn.btn-success:hover:not(.btn-active),
.modal-footer .btn[type="submit"]:hover,
.modal-footer .btn[type="submit"]:hover:not(.btn-active),
.modal-footer button[type="submit"]:hover,
.modal-footer button[type="submit"]:hover:not(.btn-active),
.modal .modal-footer .btn-light-success:hover,
.modal .modal-footer .btn-light-success:hover:not(.btn-active),
.btn.btn-light-success.border-success:hover,
.btn.btn-light-success.border-success:hover:not(.btn-active) {
  background-color: #0b5ed7 !important;
  border-color: #0a58ca !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 113, 229, 0.35) !important;
  transform: translateY(-1px) !important;
}

.modal-footer .btn.btn-light-success:hover i,
.modal-footer .btn.btn-light-success:hover:not(.btn-active) i,
.modal-footer .btn.btn-primary:hover i,
.modal-footer .btn.btn-primary:hover:not(.btn-active) i,
.modal-footer .btn.btn-success:hover i,
.modal-footer .btn.btn-success:hover:not(.btn-active) i,
.modal-footer .btn[type="submit"]:hover i,
.modal-footer .btn[type="submit"]:hover:not(.btn-active) i,
.modal-footer button[type="submit"]:hover i,
.modal-footer button[type="submit"]:hover:not(.btn-active) i,
.modal .modal-footer .btn-light-success:hover i,
.modal .modal-footer .btn-light-success:hover:not(.btn-active) i,
.btn.btn-light-success.border-success:hover i,
.btn.btn-light-success.border-success:hover:not(.btn-active) i {
  color: #ffffff !important;
}

/* Submit Button Active / Press State */
.modal-footer .btn.btn-light-success:active,
.modal-footer .btn.btn-light-success:active:not(.btn-active),
.modal-footer .btn.btn-primary:active,
.modal-footer .btn.btn-primary:active:not(.btn-active),
.modal-footer .btn.btn-success:active,
.modal-footer .btn.btn-success:active:not(.btn-active),
.modal-footer .btn[type="submit"]:active,
.modal-footer button[type="submit"]:active {
  background-color: #084298 !important;
  border-color: #073b87 !important;
  color: #ffffff !important;
  transform: translateY(0) !important;
  box-shadow: 0 1px 2px rgba(16, 113, 229, 0.2) !important;
}

/* Submit Button Focus State */
.modal-footer .btn.btn-light-success:focus,
.modal-footer .btn.btn-light-success:focus-visible,
.modal-footer .btn.btn-primary:focus,
.modal-footer .btn.btn-primary:focus-visible,
.modal-footer button[type="submit"]:focus,
.modal-footer button[type="submit"]:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(16, 113, 229, 0.25) !important;
}

/* Submit Button Disabled State */
.modal-footer .btn.btn-light-success:disabled,
.modal-footer .btn.btn-primary:disabled,
.modal-footer .btn[type="submit"]:disabled,
.modal-footer button[type="submit"]:disabled {
  background-color: #93c5fd !important;
  border-color: #93c5fd !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.75 !important;
}

.modal-footer .btn.btn-light-success:disabled i,
.modal-footer .btn.btn-primary:disabled i,
.modal-footer button[type="submit"]:disabled i {
  color: #ffffff !important;
}

/* 6. Slide-Over Right Drawers (.zoho-slide-drawer) */
.zoho-drawer-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(33, 38, 60, 0.4) !important;
  z-index: 1055 !important;
  display: flex !important;
  justify-content: flex-end !important;
  transition: opacity 0.2s ease !important;
}

.zoho-slide-drawer {
  background: #ffffff !important;
  width: min(640px, 94vw) !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: -16px 0 48px rgba(33, 38, 60, 0.25) !important;
  animation: fadeUp 0.25s ease both !important;
  overflow-y: auto !important;
}

.zoho-drawer-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid var(--zoho-divider) !important;
  background: #fafbfc !important;
}

.zoho-drawer-header.dark {
  background: var(--zoho-navy) !important;
  color: #ffffff !important;
}

.zoho-drawer-header.dark .zoho-drawer-title {
  color: #ffffff !important;
}

.zoho-drawer-title {
  font-weight: 700 !important;
  font-size: 15.5px !important;
  color: var(--zoho-text-main) !important;
}

/* 7. High-Contrast (HC) Mode Adaptations for New Components */
body.hc .zoho-toolbar-wrap,
body.hc .zoho-filter-drawer,
body.hc .modal.custom_modal .modal-header,
body.hc .modal.custom_modal .modal-footer {
  background: #edf0f4 !important;
  border-color: #7c8598 !important;
}

body.hc .zoho-toolbar-search,
body.hc .zoho-filter-control,
body.hc .zoho-btn-filter,
body.hc .zoho-btn-outline,
body.hc .zoho-action-btn {
  border-color: #7c8598 !important;
  background: #ffffff !important;
  color: #0b1020 !important;
}

body.hc .zoho-count-pill,
body.hc .zoho-filter-label {
  color: #141a2e !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   Remove Legacy 3-Dot Export Dropdown Button from Every List
   ========================================================================== */
.export-buttons,
.custom_tbl-export_buttons,
.export-buttons-invoice,
.operator-export-button,
.operator-cust-export-button,
.operator-customers-export-button,
.sub_distributor-operator-export-button,
.sub_distributor-cust-export-button,
.dt-buttons,
.dataTables_wrapper .export-buttons,
.dataTables_wrapper .custom_tbl-export_buttons,
.dataTables_wrapper .export-buttons-invoice,
.dataTables_wrapper .dt-buttons,
.dataTables_wrapper > div.d-flex:first-child,
.card-toolbar:has(button .bi-three-dots-vertical:only-child),
.card-toolbar:has(.export-pdf),
.card-toolbar:has(.export-excel),
.card-toolbar:has(.export-csv) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   Dashboard Template Styles & Micro-interactions
   ========================================================================== */
.zoho-hover-row {
  transition: background 0.15s ease;
}
.zoho-hover-row:hover {
  background: #f7faff !important;
}
.zoho-hover-btn {
  transition: all 0.15s ease;
}
.zoho-hover-btn:hover {
  border-color: #1071e5 !important;
  color: #1071e5 !important;
  background: #f7faff !important;
}
.zoho-hover-primary {
  transition: background 0.15s ease;
}
.zoho-hover-primary:hover {
  background: #0b5ab8 !important;
}
.zoho-card-shadow {
  box-shadow: 0 1px 3px rgba(33, 38, 60, 0.04);
}

/* High-contrast dashboard mode overrides */
.hc .zoho-card-shadow {
  border-color: #7c8598 !important;
}
.hc .zoho-hover-row:hover {
  background: #edf0f4 !important;
}
.hc #total_active_subscribers,
.hc #monthly_revenue_display,
.hc #expiring_in_seven_days,
.hc #open_complaints_count {
  font-weight: 900 !important;
}

/* ==========================================================================
   Zoho Orders Table & Action Buttons
   ========================================================================== */
.zoho-tbl-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.zoho-action-btn-sm {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid #e4e7ec;
  background: #ffffff;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}
.zoho-action-btn-sm:hover:not(:disabled) {
  border-color: #1071e5;
  color: #1071e5;
  background: #f8fafc;
}
.zoho-operator-chip {
  transition: all 0.15s ease;
}
.zoho-operator-chip:hover:not(.active) {
  background: #f8fafc !important;
  border-color: #1071e5 !important;
}
