/* ------------------------ Global Styles ---------------------------- */
/* Body Styles */
body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  background: url(../icons/hero-bg\ \(1\).jpg) center center fixed;
  position: relative;
  height: 100%;
  background-repeat: no-repeat;
  --primary-color: #123456;
  --primary-light: rgba(18, 52, 86, 0.08);
}

/* Global scrollbar styling */

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #d0d3d9;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b5b9c2;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #d0d3d9 #f5f5f5;
}

/* Overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(255 255 255 / 80%);
  z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6,
label,
.form-label,
.form-label-custom,
.page-title,
.page-heading,
.section-title,
.sidebar-title,
.panel-title,
.card-title,
.view-card-title,
.graph-card-title,
.title,
.form-label-title {
  color: #123456 !important;
}

a {
  text-decoration: none;
  color: #123456;
}

.upgrade-alert-wrapper {
  position: fixed;
  left: 50%;
  bottom: 0px;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1050;
  margin: 0;
}

.upgrade-alert-wrapper .alert {
  border-radius: 0px;
  margin-bottom: 0;
  padding: 5px 10px;
  background-color: #2790dc;
  border: 1px solid #2790dc;
  color: #ffffff;
}

.upgrade-alert-text {
  font-size: 14px;
}

.Upgrade-btn {
  background: #ffffff;
  padding: 5px;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  font-weight: 600;
  color: #123456;
  transition: all 0.3s ease;
}

.Upgrade-btn:hover {
  background: #123456;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(18, 52, 86, 0.3);
}

.upgrade-alert-close {
  margin-left: 12px;
  color: #ffffff;
  filter: invert(1) grayscale(100%) brightness(200%);
}

@media (max-width: 576px) {
  .upgrade-alert-wrapper {
    width: 92%;
  }

  .upgrade-alert-wrapper .alert {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .upgrade-now-btn {
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }

  .upgrade-alert-close {
    position: absolute;
    top: 10px;
    right: 15px;
    margin-left: 0;
  }
}

/* Body Styles */
/* ------------------------ Global Styles ---------------------------- */
/* Home nav Top Right */
.top-right {
  float: right;
  height: 73px;
  display: flex;
  align-items: center;
}

/* ONLY when active */
#homeScreen.active {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  height: 80vh;
}

.screen {
  top: 10px;
  width: 100%;
}

/* Home nav Top Right */
/* common platform-btn */
.platform-btn {
  height: 38px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  transition: all 0.2s ease;
  white-space: nowrap;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  background: #2789CB;
}

.preview-btn {
  border: none;
  background: none;
  color: #123456;
}

.platform-btn.create-table {
  position: fixed;
  right: 50px;
  transform: translateX(0);
  transition: transform .3s ease-in-out;
  background: #2789CB;
  color: white;
  padding: 10px;
  bottom: 28px;
  z-index: 999;
}

/* common platform-btn */
:root {
  --primary-color: #123456;
  --primary-accent: #2789CB;
  --primary-light: rgba(18, 52, 86, 0.06);
  --text-dark: #123456;
  --text-muted: #64748b;
  --border-color: #e9ecef;
  --card-bg: #ffffff;
  --card-bg-hover: #f8fafc;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --type-body: 14px;
  --type-small: 12px;
  --type-label: 13px;
  --type-heading-1: 24px;
  --type-heading-2: 20px;
  --type-heading-3: 18px;
  --type-heading-4: 16px;
  --type-heading-5: 15px;
  --type-heading-6: 14px;
  --side-panel-title: 16px;
  --side-panel-section: 15px;
  --side-panel-label: 13px;
  --side-panel-input: 14px;
  --side-panel-body: 13px;
  --side-panel-button: 13px;
  --primary-indigo: #123456;
  --primary-indigo-dark: #123456;
  --sidebar-panel-width: 450px;
  --bg-light-canvas: #123456;
  --border-soft: #123456;
  --primary-brand: #123456;
  --primary-brand-hover: #0b2238;
  --bg-light: #f8f9fa;
  --primary-border: rgba(18, 52, 86, 0.3);
  --muted: #8a94a6;
  --text: #123456;
  --group-bg: #f8f9fb;
  --hover-bg: #f7f9fc;
  --text-color: #6c7a9c;
  --accent-blue: #123456;
  --glass-border: rgba(255, 255, 255, 0.04);
  --brand-color: #123456;
  --brand-hover-bg: #f0f4f8;
  --dashed-border: #b9c1d1;
  --bg-color: #ffffff;
  --main-text: #2d3748;
  --sub-text: #718096;
}

body {
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.5;
}

body,
p,
li,
.breadcrumb-item,
.dropdown-item,
.form-control,
.form-select,
textarea,
input,
small,
.text-muted,
.section-subtitle,
.sidebar-desc,
.view-card-desc,
.graph-card-desc,
.meta-label,
.meta-value,
.table,
.table th,
.table td,
.custom-table,
.custom-table th,
.custom-table td {
  font-size: var(--type-body);
}

h1 {
  font-size: var(--type-heading-1);
}

h2 {
  font-size: var(--type-heading-2);
}

h3 {
  font-size: var(--type-heading-3);
}

h4 {
  font-size: var(--type-heading-4);
}

h5 {
  font-size: var(--type-heading-5);
}

h6,
.modal-title,
.offcanvas-title {
  font-size: var(--type-heading-6);
}

.offcanvas-title {
  font-size: 18px;
  font-weight: 600;
}

label,
.form-label,
.form-label-custom,
.form-check-label,
.badge-custom,
.badge-popular,
.tech-tag {
  font-size: var(--type-label);
}

.offcanvas-backdrop,
.offcanvas-backdrop.fade.show {
  display: none !important;
  background: transparent !important;
  opacity: 0 !important;
}

.offcanvas {
  --bs-offcanvas-backdrop-bg: transparent;
}

#shareModal+.modal-backdrop,
#shareModal~.modal-backdrop {
  display: none !important;
  background: transparent !important;
  opacity: 0 !important;
}

.btn,
.platform-btn,
.btn-custom,
.btn-primary,
.btn-outline-primary,
.btn-outline-secondary,
.preview-btn,
.choose-trigger,
.toolbar-btn,
.tab-trigger,
.btn-connect,
.btn-brand {
  font-size: 16px;
  padding: 6px 12px;
  min-height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.2;
  transition: all 0.2s ease;
  text-transform: none;
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
  color: #123456;
  background-color: transparent !important;
  border-color: none !important;
}

.platform-btn,
.btn-custom,
.btn-primary,
.btn-connect,
.btn-brand,
a.platform-btn,
a.btn-custom,
a.btn-primary,
a.btn-connect,
a.btn-brand,
button.platform-btn,
button.btn-custom,
button.btn-primary,
button.btn-connect,
button.btn-brand {
  background: var(--primary-accent) !important;
  color: #ffffff !important;
  border: 1px solid var(--primary-accent) !important;
  padding: 5px 15px;
  /* background-color: #2487ce; */
  /* color: white; */
  /* border: none; */
  border-radius: 4px;
  /* position: absolute; */
  bottom: 5px;
}

.platform-btn:hover,
.btn-custom:hover,
.btn-primary:hover,
.btn-connect:hover,
.btn-brand:hover,
a.platform-btn:hover,
a.btn-custom:hover,
a.btn-primary:hover,
a.btn-connect:hover,
a.btn-brand:hover,
button.platform-btn:hover,
button.btn-custom:hover,
button.btn-primary:hover,
button.btn-connect:hover,
button.btn-brand:hover,
.platform-btn:focus-visible,
.btn-custom:focus-visible,
.btn-primary:focus-visible,
.btn-connect:focus-visible,
.btn-brand:focus-visible,
a.platform-btn:focus-visible,
a.btn-custom:focus-visible,
a.btn-primary:focus-visible,
a.btn-connect:focus-visible,
a.btn-brand:focus-visible,
button.platform-btn:focus-visible,
button.btn-custom:focus-visible,
button.btn-primary:focus-visible,
button.btn-connect:focus-visible,
button.btn-brand:focus-visible {
  background: #1f6fa4 !important;
  border-color: #1f6fa4 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(39, 137, 203, 0.15);
}

.platform-btn i,
.platform-btn svg,
.platform-btn span,
.btn-custom i,
.btn-custom svg,
.btn-custom span,
.btn-primary i,
.btn-primary svg,
.btn-primary span,
.btn-connect i,
.btn-connect svg,
.btn-connect span,
.btn-brand i,
.btn-brand svg,
.btn-brand span,
a.platform-btn i,
a.platform-btn svg,
a.platform-btn span,
a.btn-custom i,
a.btn-custom svg,
a.btn-custom span,
a.btn-primary i,
a.btn-primary svg,
a.btn-primary span,
a.btn-connect i,
a.btn-connect svg,
a.btn-connect span,
a.btn-brand i,
a.btn-brand svg,
a.btn-brand span,
button.platform-btn i,
button.platform-btn svg,
button.platform-btn span,
button.btn-custom i,
button.btn-custom svg,
button.btn-custom span,
button.btn-primary i,
button.btn-primary svg,
button.btn-primary span,
button.btn-connect i,
button.btn-connect svg,
button.btn-connect span,
button.btn-brand i,
button.btn-brand svg,
button.btn-brand span {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.btn-outline-primary,
.btn-outline-secondary,
.preview-btn {
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.preview-btn:hover,
.btn-outline-primary:focus-visible,
.btn-outline-secondary:focus-visible,
.preview-btn:focus-visible {
  background: var(--card-bg-hover);
  color: var(--text-dark);
  border-color: var(--border-color);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-dark,
.btn-light,
.preview-btn,
.toolbar-btn,
.action-btns {
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-dark:hover,
.btn-light:hover,
.preview-btn:hover,
.toolbar-btn:hover,
.action-btns:hover,
.btn-outline-primary:focus-visible,
.btn-outline-secondary:focus-visible,
.btn-outline-dark:focus-visible,
.btn-light:focus-visible,
.preview-btn:focus-visible,
.toolbar-btn:focus-visible,
.action-btns:focus-visible {
  background: var(--card-bg-hover);
  color: var(--text-dark);
  border-color: var(--border-color);
}

.btn-custom,
.action-btns {
  background: var(--primary-accent);
  color: #ffffff;
  border-color: var(--primary-accent);
}

.btn-custom:hover,
.action-btns:hover {
  background: #1f6fa4;
  color: #ffffff;
  border-color: #1f6fa4;
}

.btn-secondary,
.btn-outline-secondary,
button.btn-secondary,
button.btn-outline-secondary {
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  text-wrap: nowrap;
  padding: 5px 15px;
  border-radius: 4px;
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible,
button.btn-secondary:hover,
button.btn-secondary:focus-visible,
button.btn-outline-secondary:hover,
button.btn-outline-secondary:focus-visible {
  background: var(--card-bg-hover);
  color: var(--text-dark);
  border-color: var(--border-color);
}

.btn-success {
  background: #16a34a;
  color: #ffffff;
  border: 1px solid #16a34a;
}

.btn-success:hover,
.btn-success:focus-visible {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
}

.btn-danger {
  background: #dc2626;
  color: #ffffff !important;
  border: 1px solid #dc2626;
}

.btn-danger:hover,
.btn-danger:focus-visible {
  background: #b91c1c;
  color: #ffffff;
  border-color: #b91c1c;
}

.btn-dark {
  background: var(--primary-color);
  color: #ffffff;
  border: 1px solid var(--primary-color);
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background: #0d2b45;
  color: #ffffff;
  border-color: #0d2b45;
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--primary-accent);
  padding: 0;
  min-height: auto;
  box-shadow: none;
}

.btn-link:hover,
.btn-link:focus-visible {
  color: #1f6fa4;
  background: transparent;
  text-decoration: none;
}

.page-title,
.page-heading,
.section-title,
.sidebar-title,
.panel-title,
.card-title,
.view-card-title,
.graph-card-title {
  color: var(--text-dark);
}

.page-title,
.page-heading {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title,
.sidebar-title,
.panel-title {
  font-size: 16px;
  font-weight: 600;
}

.card-title,
.view-card-title,
.graph-card-title {
  font-size: 16px;
  font-weight: 600;
}

small,
.text-muted,
.section-subtitle,
.sidebar-desc,
.view-card-desc,
.graph-card-desc,
.meta-label {
  font-size: 12px;
}

.form-label,
.form-label-custom {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control,
.form-select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"] {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-dark);
  background-color: #ffffff;
}

.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder,
input::placeholder {
  color: #94a3b8;
  font-size: 14px;
  text-transform: none;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
input:focus {
  border-color: var(--primary-accent);
  box-shadow: none;
  outline: 0;
}

.card,
.offcanvas,
.modal-content,
.dropdown-menu,
.sidebar-panel,
.table-responsive {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.table th {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.table td {
  font-size: 14px;
  color: #334155;
}

.fa-solid,
.fa-regular,
.fa-brands,
.fas,
.far {
  font-size: 18px;
  color: #123456;
}

.fixed-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

.breadcrumb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* Navigation Bar */
.topnav-section {
  margin-top: 128px;
  padding-bottom: 70px;
  margin-right: 40px;
}

.topnav-section.no-sidebar {
  margin-right: 0px;
}

.navbar {
  background: rgb(255, 255, 255);
  position: fixed !important;
  top: 0;
  width: 100%;
  z-index: 999;
  border-bottom: 1px solid #e2e8f0;
}

.menu span {
  cursor: pointer;
  padding-bottom: 6px;
  font-weight: 500;
  position: relative;
  display: inline-block;
  transition: color 0.2s ease;
}

/* base link style */
.nav-link {
  position: relative;
  text-decoration: none;
  color: #333;
  padding: 5px 0;
  transition: color 0.3s ease;
}

/* underline base */
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: #123456;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* hover effect */
.nav-link:hover {
  color: #123456;
}

.nav-link:hover::after {
  width: 100%;
}

/* ✅ active page underline */
.active-page .nav-link {
  color: #123456;
  font-weight: 500;
}

.active-page .nav-link::after {
  width: 100%;
}

.menu a {
  cursor: pointer;
  font-size: 14px;
  color: #2c4b6b;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0px !important;
}

.menu span.active::after {
  width: 100%;
}

.dropdown-menu {
  border-radius: 10px;
  z-index: 1;
}

/* .navbar {
  position: relative;
} */

.dropdown-item {
  cursor: pointer;
  font-size: 14px;
  color: #124265 !important;
}

.dropdown-item:hover {
  background: #e0e0e0;
}

/* MENU */
.menu {
  color: #123456;
  text-decoration: none;
  gap: 30px;
}



/* MENU */

/* Navigation Bar */

.logo {
  font-size: 80px;
  color: #1f3b5c;
  margin: 0;
}

/* Search */
.search-box {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  background: white;
  border-radius: 300px;
  padding: 0px 15px;
  width: 650px;
  height: 48px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  margin-left: 10px;
  font-size: inherit;
}

/* Icons */
.icons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  /* gap: 40px; */
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #124265;
  width: 80px;
  height: 80px;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.icon span {
  display: block;
  font-size: 14px;
}

.icon:hover {
  box-shadow: 0px 0px 10px #c2c2c2;
  background-color: #ffffff7a;
  transform: translateY(-5px);
}

.image-icons {
  border-radius: 100%;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}

.profile {
  position: relative;
  cursor: pointer;
}

.dropdown-toggle::after {
  display: none !important;

}

.dropdown p {
  margin: 8px 0;
  cursor: pointer;
}

/* Home Screen */

/* All Pages Search Input */
.nav-search {
  display: flex;
  align-items: center;
  background: white;
  padding: 0px 15px;
  height: 48px;
  border-radius: 40px;
  width: 100%;
  max-width: 860px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.nav-search input {
  border: none;
  outline: none;
  margin: 0 10px;
  width: 100%;
  font-size: inherit;
}

.nav-search-container {
  position: fixed;
  bottom: 24px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1;
  padding: 0 80px;
}

/* All Pages Search Input */

/* Data Table Navigation */
.datatable-nav {
  position: fixed;
  top: 71px;
}

ul.offcanvas-nav {
  list-style: none;
  padding: 0;

  a {
    padding: 0px 0px;

  }

  li {
    padding: 5px 0px;
  }
}

label {
  color: #123456;
  font-weight: 500;
  font-size: 16px;
  /* margin-bottom: 5px; */
}

div#mainNavbar {
  width: 100%;
  /* max-width: 250px; */
}

.offcanvas-profile {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.datatable-nav {
  background: rgb(230, 244, 255);
}

.datatable-row {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #123456;
  display: grid;
  column-gap: 34px;
  flex-wrap: wrap;
  align-items: center;
  grid-template-columns: minmax(170px, 820px) 1fr;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  margin-right: 20px;
}

.data-container {
  padding-left: 6px;
}

.select-all-wrapper {
  padding: 12px 0px;
  background: white;
  position: sticky;
  top: 165px;
  /* width: 100%; */
}

button.close-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 5px;
  color: #8080806b;
  /* font-size: 15px; */
}

.spinner-border.text-primary {
  width: 20px;
  height: 20px;
  color: #123456;
  /* border: #123456; */
  border: var(--bs-spinner-border-width) solid #123456;
  border-right-color: transparent;
  align-items: center;
}

/* selection checkbox (hidden by default) */
.select-item {
  display: none;
  margin-right: 10px;
}

/* show when export mode */
.export-mode .select-item {
  display: inline-block;
}

nav.breadcrumb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0px;
  width: 100%;
}

.fixed-table-header {
  position: fixed;
  left: 0px;
  top: 72px;
  background: rgb(255, 255, 255);
  width: 100%;
  height: 54px;
  padding: 10px;
  z-index: 99;
  border-bottom: 1px solid rgb(226, 232, 240);
}

.text-end {
  display: flex;
  gap: 10px;
  justify-content: end;
}

.page-actions,
.toolbar-actions,
.header-actions,
.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder,
input::placeholder {
  color: #94a3b8;
}

.dropdown-item.active,
.dropdown-item:active {
  color: var(--bs-dropdown-link-active-color);
  text-decoration: none;
  background-color: #e7e7e7 !important;
}

.custom-table th.notes-col-header,
.custom-table td.notes-col {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  box-sizing: border-box;
}

.notes-col-header .notes-header-icon {
  color: #6b7280;
  font-size: 12px;
  margin-right: 4px;
}

.column-edit-btn {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.column-edit-btn i {
  color: #ffffff !important;
}

td.notes-col {
  position: relative;
  padding: 0 !important;
  vertical-align: top;
  overflow: hidden;
}

.notes-cell-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 32px;
}

.notes-text {
  width: 100%;
  min-height: 32px;
  max-height: 32px;
  padding: 6px 28px 6px 10px;
  font-size: 13px;
  line-height: 20px;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  outline: none;
  box-sizing: border-box;
  cursor: text;
  scrollbar-width: thin;
}

.notes-text::-webkit-scrollbar {
  width: 5px;
}

.notes-text::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.notes-text:empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
}

.notes-text:focus {
  box-shadow: inset 0 0 0 2px #2563eb33;
  background: #fff;
}

td.notes-col:focus-within {
  overflow: visible;
  position: relative;
  z-index: 30;
}

.notes-cell-inner:focus-within .notes-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 96px;
  max-height: 240px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), 0 0 0 2px #2563eb55;
  z-index: 30;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow-y: auto;
  overflow-x: hidden;
  text-overflow: clip;
}

td.notes-col.wrap-on .notes-cell-inner:focus-within .notes-text {
  position: static;
  box-shadow: inset 0 0 0 2px #2563eb33;
}

td.notes-col.wrap-on {
  overflow: visible;
}

td.notes-col.wrap-on .notes-text {
  max-height: none;
  overflow-y: visible;
}

.notes-expand-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 0 0 1px #e5e7eb, 0 1px 2px rgba(0, 0, 0, 0.08);
  color: #4b5563;
  font-size: 10px;
  cursor: pointer;
  z-index: 31;
  padding: 0;
}

.notes-expand-btn:hover {
  color: #111827;
  background: #f3f4f6;
}

td.notes-col:hover .notes-expand-btn,
.notes-cell-inner:focus-within .notes-expand-btn {
  display: flex;
}

.notes-modal-overlay {
  background: transparent;
}

.notes-modal-overlay .modal-dialog {
  width: 100%;
  max-width: 480px;
  margin: 1.75rem auto;
}

.notes-modal {
  background: #f3f4f6;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 18px;
  position: relative;
  display: block;
}

.notes-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}

.notes-modal-close:hover {
  color: #111827;
}

.notes-modal-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  margin-bottom: 10px;
}

.notes-modal-textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
  outline: none;
  box-sizing: border-box;
}

.notes-modal-textarea:focus {
  box-shadow: 0 0 0 2px #2563eb33;
  border-color: #93c5fd;
}

.field {
  margin-bottom: 22px
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #1A2233;
  margin-bottom: 6px
}

.field-hint {
  font-size: 12px;
  color: #98A2B3;
  margin-top: 5px;
  line-height: 1.45
}

.text-input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #E3E8EF;
  border-radius: 7px;
  background: #fff;
  color: #1A2233;
  outline: none
}

.text-input:focus {
  border-color: #2F6FED;
  box-shadow: 0 0 0 3px #EDF3FE
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px
}

.type-option {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid #E3E8EF;
  border-radius: 7px;
  cursor: pointer;
  background: #fff
}

.type-option:hover {
  border-color: #C9DCFB
}

.type-option.selected {
  border-color: #2F6FED;
  background: #EDF3FE
}

.type-badge {
  width: 19px;
  height: 19px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  flex: 0 0 auto
}

.tname {
  font-size: 12.5px;
  font-weight: 500;
  color: #1A2233;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex: 0 0 auto
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0
}

.switch .track {
  position: absolute;
  inset: 0;
  background: #D5DBE4;
  border-radius: 22px;
  cursor: pointer;
  transition: .18s
}

.switch .track:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .18s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25)
}

.switch input:checked+.track {
  background: #3495db;
}

.switch input:checked+.track:before {
  transform: translateX(16px)
}

.formula-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px
}

.formula-chip {
  padding: 7px 13px;
  border: 1px solid #E3E8EF;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  color: #667085
}

.formula-chip.selected {
  background: #16233F;
  border-color: #16233F;
  color: #fff
}

.options-editor {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.option-row {
  display: flex;
  align-items: center;
  gap: 8px
}

.option-row .text-input {
  flex: 1 1 auto
}

.option-remove {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 7px;
  border: 1px solid #E3E8EF;
  background: #fff;
  color: #98A2B3;
  cursor: pointer
}

.option-remove:hover {
  border-color: #DC2626;
  color: #DC2626;
  background: #FDECEC
}

.add-option-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: #2F6FED;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px
}

.panel-footer {
  border-top: 1px solid #E3E8EF;
  padding: 16px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px
}

.btn {
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer
}

.btn-primary {
  background: #2F6FED;
  border-color: #2F6FED;
  color: #fff
}

.hidden {
  display: none !important
}

.section-divider {
  height: 1px;
  background: #E3E8EF;
  margin: 24px 0
}

.danger-zone {
  border: 1px solid #F7CFC7;
  background: #FDECEC;
  border-radius: 10px;
  padding: 14px 16px
}

.danger-zone h3 {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 700;
  color: #9A2617 !important
}

.danger-zone p {
  margin: 0 0 12px;
  font-size: 12px;
  color: #B14A3B;
  line-height: 1.5
}

.confirm-row {
  display: flex;
  align-items: center;
  gap: 8px
}

.confirm-text {
  font-size: 12.5px;
  color: #9A2617;
  font-weight: 600;
  margin-bottom: 10px
}

#confirmDeleteBtn {
  background: #DC2626;
  border-color: #DC2626;
  color: #fff;
}

#confirmDeleteBtn:hover,
#confirmDeleteBtn:focus-visible {
  background: #B91C1C;
  border-color: #B91C1C;
}


/* Data Table Navigation */

/* ================= DROPDOWN SECTION ================= */
.dropdown-section {
  display: flex;
  gap: 16px;
  align-items: center;
}

.dropdown-btn {
  padding: 0px 0px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #124265;
}

.dropdown-item.Show-All {
  text-align: center;
  font-size: 14px;
  text-decoration: underline;
}

.dropdown-btn:hover {
  text-decoration: underline;

}

.dropdown-box {
  position: relative;
}

/* ================= DROPDOWN SECTION ================= */

p.subline {
  color: #124265;
  font-style: italic;
  font-size: 14px;
  text-align: center;
  margin-top: 10px;
}

p.sub-line {
  font-weight: 700;
  text-align: center;
  font-size: 22px;
  color: #123456;
  margin-bottom: 0px;
}

/* profile css  */

.profile-img {
  text-align: center;
}

.edite-btn {
  position: absolute;
  top: 20px;
  right: 20px;
}

.profile-row {
  padding: 0px 20px;
  min-height: 58px;
}

.label {
  font-size: 18px;
  color: #123456;
  font-weight: 400;
}

.value {
  font-size: 16px;
}

.action a {
  font-size: 16px;
  font-weight: 500;
  color: #0d6efd;
  text-decoration: none;
}

.action a:hover {
  text-decoration: underline;
}

.profile-row:hover {
  background-color: #f8f9fa;
}


button.btn.btn-Edit-Profil {
  font-size: 16px;
  color: #123456;
}

.btns-save {
  margin-top: 15px;
  text-align: end;
}

.profile-section {
  .card {
    margin-bottom: 20px;
    overflow: hidden;
  }
}

/* profile css  */

/* Recent-section css   */
.recent-section {
  .recent-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #b3b3b3;
    text-transform: capitalize;
    height: 120px;
    display: flex;
    gap: 10px;
  }

  .recent-description {
    font-size: 12px;
    color: gray;
    margin-bottom: 10px;
  }

  .recent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }

  .recent-text {
    font-size: 18px;
    color: #123456;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 600;
  }

  .recent-tag {
    font-size: 12px;
    color: #007bff;
    font-weight: 600;
  }

  .slick-slide {
    margin: 10px;
  }

  .slick-prev:before,
  .slick-next:before {
    color: #123456;

  }

  .recent-slider {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .recent-slider.slick-initialized {
    opacity: 1;
  }
}

/* Recent-section css   */



/* Empty page css */
.Empty-div {
  display: flex;
  justify-content: center;
  text-align: center;
  height: 80vh;
  align-items: center;

  i.fa-solid.fa-folder {
    font-size: 100px;
    color: #123546;
  }
}


/* Empty page css */
/* data-table page css  */

.name-div {
  justify-content: space-between;
  display: grid;
  grid-auto-flow: column;
}

.column-icon {
  display: block;
}

a.folder-link {
  color: #123456;
  text-decoration: none;
}

.datatable-row:hover {
  background: #f1f3f5;
}

.list-action {
  display: flex;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.action-icons {
  width: 100%;
}

.datatable-row:hover .list-action {
  visibility: visible;
  opacity: 1;
}


.datatable-row:hover .response-count {
  visibility: visible;
}



/* Compact spacing */
.datatable-row+.datatable-row {
  margin-top: 4px;
}

.response-count {
  visibility: hidden;
  color: #6C757D;
  font-size: 12px;
}

/* hide checkbox */
.star-wrap input {
  display: none;
}

/* default star */
.star-wrap label i {
  font-size: 14px;
  cursor: pointer;
  color: #123456;
  transition: 0.2s;
}



/* checked = yellow */
.star-wrap input:checked+label i {
  color: gold;
}

/* filled star */
.star-wrap input:checked+label i::before {
  content: "⭐";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.day-title {
  font-size: 15px;
  font-weight: 600;
  color: #123456;
  padding-top: 5px;
}

.list-table {
  margin-top: 126px;
}

.table-header {
  display: grid;
  justify-content: space-between;
  align-items: center;
  grid-template-columns: minmax(170px, 865px) 1fr;
  font-size: 16px;
  background: #F8FAFC;
  color: #123456;
  padding: 5px 8px;
  position: sticky;
  top: 126px;
  border: 1px 0px solid #E2E8F0;
  border-bottom: 1px solid #e2E8F0;
  font-weight: 600;
}

.last-used {
  display: grid;
  column-gap: 25px;
  flex-wrap: wrap;
  align-items: center;
  grid-template-columns: minmax(170px, 500px);
  font-size: 14px;
}

small.table-tittle {
  font-size: 15px;
}

/* .Empty-div merged into single definition earlier in file (line ~1263) */

.custom-breadcrumb {
  background: transparent;
  padding: 6px 0;
  font-size: 13px;
}

.custom-breadcrumb .breadcrumb-item a {
  text-decoration: none;
  color: #123456;
  font-weight: 500;
}

.custom-breadcrumb .breadcrumb-item.active {
  color: #6c757d;
}

.custom-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  content: ">";
  color: #999;
}


.profile-content h5 {
  font-size: 19px;
}

section.profile-section {
  margin-top: 140px;
}


.recent-content {
  text-align: center;
  height: 76vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.recent-image {
  width: 80px;
}


/* CENTER */
.center-wrap {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* EMPTY CARD */
.empty-card {
  text-align: center;
}


/* ICON */
.empty-icon {
  font-size: 40px;
  color: #123456;
  margin-bottom: 15px;
}

/* TITLE */
.empty-card h4 {
  font-weight: 600;
  margin-bottom: 8px;
}


/* BUTTON */
.create-btn {
  background: #123456;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.2s;
}

.create-btn:hover {
  background: #0d2e4d;
  transform: scale(1.05);
}

.external_sources {
  width: 350px !important;
  position: fixed;
  top: 140px !important;
  border-radius: 12px;
  box-shadow: 0px 0px 5px gray;
  height: 84vh;
  right: 10px !important;
  padding: 0;
}

/* data-table page css  */

/* when 2 column mode */
.field-area.two-col {
  grid-template-columns: 1fr 1fr;
}

.field-item {
  position: relative;
  padding: 15px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
  transition: all 0.3s ease;
}

.field-item:focus-within {
  border: 2px dashed #123456;
  box-shadow: 0 0 0 2px rgba(18, 52, 86, 0.15);
  background: #f8fbff;
}

/* full width */
.field-item.full {
  grid-column: span 2;
}

.field-item.half {
  grid-column: span 1;
}

/* PLUS */
.add-btn {
  position: absolute;
  bottom: -12px;
  right: -12px;
  transform: translateX(-50%);
  background: #2789cb;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  border: none;
}

.field-item:hover .add-btn {
  opacity: 1;
}

.dragging {
  opacity: 0.5;
}

.builder-wrapper {
  height: 86vh;
}

/* =========================
   TOPBAR
========================= */

.topbar {
  height: 55px;
  background: #fff;
  padding: 0 20px;
  /* box-shadow: 0px 0px 5px #808080c7; */
  border-bottom: 1px solid #dddddd;
}

.editable-title {
  border: none;
  outline: none;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  width: 100%;
  color: #123456;
}

.publish-btn {
  border: none;
  background: #0d6efd;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
}

/* =========================
   LEFT PANEL
========================= */

.left-panel {
  background: #fff;
  border-right: 1px solid #ddd;
  padding: 20px;
  height: calc(91vh - 70px);
  overflow-y: auto;
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  margin-top: 10px;
  box-shadow: 0px 0px 5px #808080a6;
}

/* =========================
   CENTER PANEL
========================= */

.center-panel {
  padding-right: 20px;
  padding-top: 20px;
}

/* =========================
   QUESTION ITEM
=======================0== */

.question-item {
  background: #fff;
  border: 1px solid #ddd;
  padding: 6px;
  border-radius: 6px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.question-item.active {
  border: 2px solid #123456;
  background: #eef5ff;
}

/* =========================
   BUTTON
========================= */
#panelToggle {
  display: none;
}

.offcanvas-header {
  border-bottom: 1px solid #808080;
}

.autoflux-actionbtn {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-btn {
  position: fixed;
  top: 135px;
  right: 320px;
  background: #2789cb;
  color: #fff !important;
  padding: 1px 4px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 9;
  transition: right 0.3s ease;
  height: 25px;
  display: flex;
  align-items: center;
}

.Validation-div.d-flex.gap-2 {
  justify-content: space-between;
  align-items: center;
}

#panelToggle:checked~.toggle-btn {
  right: 10px;
  transform: rotate(180deg);
}

.toggle-btn i {
  transition: 0.3s;
  font-size: 18px;
}

#panelToggle:checked~.toggle-btn i {
  transform: rotate(180deg);
}

.settings-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.builder-box {
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.preview-modal .modal-content {
  border-radius: 0;
  height: 100vh;
  border: none;
}

.preview-header {
  height: 75px;
  border-bottom: 1px solid #e9e9e9;
  padding: 0 30px;
  background: #fff;
}

.preview-body {
  flex: 1;
  overflow: auto;
  padding: 40px;
  background: #f8f9fb;
}

.question-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #111;
}

.preview-footer {
  border-top: 1px solid #e9e9e9;
  padding: 20px 30px;
  background: #fff;
}

.progress-text {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.Validation-div {
  margin-top: 10px;
}

.form-check-input:checked {
  background-color: #2789CB;
  border-color: #2789CB;
}

.form-switch .form-check-input {
  width: 30px;
  height: 15px;
}

.form-check {
  display: block;
  min-height: 0;
  margin-bottom: .125rem;
}

/* MODAL */

.modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.12);
}

.publish-wrapper {
  padding: 38px;
  background: #fff;
}

/* SUCCESS */

.success-area {
  text-align: center;
  margin-bottom: 34px;
}

.success-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  margin-bottom: 18px;
  position: relative;
}

.success-icon i {
  color: #16a34a;
  font-size: 34px;
}

.success-icon::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid #dcfce7;
  border-radius: 50%;
}

.title {
  font-size: 30px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.sub-title {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

/* OPTION CARD */

.option-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: .3s ease;
  position: relative;
  background: #fff;
}

.option-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.option-card.active {
  border-color: #111827;
  background: #f8fafc;
}

.option-card input {
  position: absolute;
  right: 20px;
  top: 24px;
  width: 18px;
  height: 18px;
}

.card-flex {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.icon-box {
  min-width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f1f5f9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-box i {
  font-size: 20px;
  color: #111827;
}

.card-text h5 {
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 5px;
}

.card-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

/* BOTTOM ACTIONS */

.bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 34px;
}

.skip-btn {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.skip-btn:hover {
  color: #111827;
}

.continue-btn {
  border: none;
  background: #111827;
  color: #fff;
  padding: 13px 32px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  transition: .3s;
}

.continue-btn:hover {
  background: #000;
  transform: translateY(-1px);
}

@media(max-width:576px) {

  .publish-wrapper {
    padding: 24px;
  }

  .title {
    font-size: 24px;
  }

  .card-flex {
    gap: 12px;
  }

  .icon-box {
    min-width: 46px;
    height: 46px;
  }

  .bottom-actions {
    margin-top: 24px;
  }
}

/* Documents css  */

/* data-table page css  */
/* Header */
.top-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 20px;
  gap: 10px;
}


/* Table Wrapper */
.table-wrapper {
  overflow-x: auto;
  height: 86vh;
}

/* Table */
.custom-table {
  min-width: max-content;
}

.custom-table th,
.custom-table td {
  border: 1px solid #e5e7eb;
  padding: 2px 8px;
  white-space: nowrap;
  background: white;
}

.custom-table th {
  background: #123456;
  font-weight: 500;
  text-align: left;
  color: white;
}

/* Index Column */
.index-col {
  min-width: 50px !important;
  max-width: 50px;
}

.editable-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}

.editable-cell:focus {
  outline: 2px solid #2563eb;
  background: #f0f6ff;
}



/* Add Column */
.add-col-btn {
  color: #2563eb;
  cursor: pointer;
  font-weight: 500;
}


/* Add Row */
.add-row {
  padding: 8px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 400;
  width: 100%;
  max-width: 110px;
  border-radius: 10px;
  background: #123456;
  border: none;
  font-size: 14px;
  text-align: center;
  /* margin-top: 5px; */
}

/* Modal */
.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  justify-content: center;
  align-items: center;
  z-index: 9;
}

.modal-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


div#userList {
  border: 1px solid #80808054;
  border-radius: 10px;
  overflow: auto;
  max-height: 200px;
  padding: 5px;
}

.useremail {
  border-bottom: 1px solid #80808061;
  padding: 10px 10px;
}

.columns-icon {
  cursor: pointer;
  transform: rotate(180deg);
  padding: 4px;
  color: white;
}

.columns-icon:hover {
  color: #2563eb;
}

/* Title */
.panel-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
  color: #123456;
}

/* Search */
.dropdwon-search-box {
  width: 100%;
  border: 2px solid #cfe2ff;
  outline: none;
  border: none;
  border-bottom: 1px solid #808080ab;
  color: #123456;
}

/* Row */
.column-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 5px;
  border-radius: 8px;
  color: #123456;
}

/* Hover */
.column-item:hover {
  background: #f1f3f5;
}

/* Toggle switch custom */
.toggle {
  position: relative;
  width: 34px;
  height: 14px;
}

.toggle input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #dee2e6;
  border-radius: 50px;
  transition: 0.3s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 10px;
  width: 10px;
  left: 2px;
  top: 2px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

/* ON state */
.toggle input:checked+.slider {
  background: #2789cb;
}

.toggle input:checked+.slider:before {
  transform: translateX(20px);
}


.hide-btn {
  display: flex;
  justify-content: center;
}

th.add-col-btn {
  width: 50px;
  text-align: center;
  font-size: 16px;
  color: #ffffff;
}

td.add-row-btn {
  width: 50px;
  text-align: center;
  font-size: 16px;
  color: #ffffff;
  cursor: pointer;
  background-color: #123456;
}

td.index-col {
  text-align: center;
}

.dropdown-menu.hide-dropdwon.show {
  padding: 10px;
}

.columns-icon:hover {
  color: #ffffff;
}



/* data-table page css  */


/*------------------------------------- loader css ----------------------------------------- */
.loader-wrapper {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #fff;
}

/* Q */
.loader-wrapper .q {
  width: 90px;
  position: relative;
  margin: auto;
}

.loader-wrapper svg {
  overflow: visible;
}

.loader-wrapper .progress {
  fill: none;
  stroke: url(#grad);
  stroke-width: 10;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  transform: rotate(90deg);
  transform-origin: center;
  animation: drawCycle 2s infinite;
}

/* Tail */
.loader-wrapper .tail {
  position: absolute;
  right: 10px;
  bottom: 12px;
  width: 40px;
  height: 20px;
  transform: rotate(24deg);
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  animation: tailCycle 2s infinite;
}

.loader-wrapper .tail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #2790da, #2790da);
  border-radius: 12px;
  clip-path: polygon(0 20%, 20% 0, 100% 100%, 70% 100%);
  box-shadow: 0 0 6px #2790da;
}

/* Circle */
@keyframes drawCycle {
  0% {
    stroke-dashoffset: 180;
  }

  70% {
    stroke-dashoffset: 20;
  }

  100% {
    stroke-dashoffset: 20;
  }
}


/* Tail */
@keyframes tailCycle {

  0%,
  50% {
    clip-path: inset(0 100% 0 0);
  }

  70%,
  100% {
    clip-path: inset(0 0 0 0);
  }
}

/*------------------------------------- loader css ----------------------------------------- */
/* -------------------------------------- connectors css ------------------------------------- */
/* --- Dashboard UI Styles --- */
.marketplace-tabs {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  align-items: center;
  padding: 0px 14px;
}

.graph-type-layout.selected {
  border-color: #2789CB;
  background: linear-gradient(135deg, rgba(39, 137, 203, 0.08), rgba(18, 52, 86, 0.04));
  box-shadow: 0 10px 24px rgba(39, 137, 203, 0.12);
}

.tab-item {
  position: relative;
}

.tab-trigger {
  display: block;
  color: #64748b;
  font-weight: 500;
  border: none;
  padding: 5px 12px;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  border-radius: 0px;
}

.tab-trigger:focus,
.tab-trigger:hover {
  color: #475569;
  text-decoration: none;
}

.tab-trigger.active {
  color: var(--primary-color);
  background-color: transparent;
  border-bottom: 1px solid var(--primary-color);
  /* font-weight: 600; */
}

/* Dropdown Submenu Layout Overrides */
.custom-dropdown .dropdown-overlay {
  position: absolute;
  top: 100%;
  z-index: 1000;
  display: none;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
}

/* Bootstrap functional utility binding for dropdown display */
.custom-dropdown .dropdown-overlay.show {
  display: block;
}

.dropdown-overlay-item {
  display: block;
  width: 100%;
  padding: 0.25rem 1rem;
  clear: both;
  font-weight: 400;
  color: #334155;
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.dropdown-overlay-item:hover,
.dropdown-overlay-item:focus {
  color: #1e293b;
  background-color: #f8fafc;
}

.dropdown-indicator::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.badge-custom {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 500;
}

.badge-popular {
  background-color: #fef3c7;
  color: #d97706;
  font-size: 11px;
  font-weight: 500;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #123456;
}

.brand-logo img {
  width: 100%;
}

.tech-tag {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

.btn-connect {
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  background: #2789CB;
  padding: 5px 10px;
  border-radius: 5px;
}

.text-muted-custom {
  color: #64748b;
  font-size: 14px;
}

.card-custom {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.card-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.connector-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease-in-out;
}

.connector-card.is-selected {
  border-color: #2789CB;
  background: linear-gradient(135deg, rgba(39, 137, 203, 0.08), rgba(18, 52, 86, 0.04));
  box-shadow: 0 10px 24px rgba(39, 137, 203, 0.12);
}

.connector-card .connector-action {
  color: #123456;
  text-decoration: none;
}

.connector-card .connector-action:hover {
  color: #2789CB;
}

.connector-empty-state {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 4px 4px;
  height: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.connector-empty-state .empty-state-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(39, 137, 203, 0.14), rgba(18, 52, 86, 0.08));
  color: #2789CB;
  font-size: 24px;
  margin-bottom: 4px;
}

.connector-empty-state p {
  margin-bottom: 0;
}

.favorite-star {
  background: none;
  border: none;
  padding: 0;
}

.favorite-star.active {
  color: #ffb800 !important;
}

/* --- Side Panel (Offcanvas) Custom Layout Styles --- */
.offcanvas-custom {
  width: 440px !important;
  border-left: 1px solid #e2e8f0;
}

/* Stepper Engine Layout */
.stepper-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.stepper-line {
  position: absolute;
  top: 18px;
  left: 10px;
  right: 0;
  height: 2px;
  background-color: #e2e8f0;
  z-index: 1;
}

.step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  transition: all 0.3s ease;
}

.step-node.active .step-circle {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.step-node.completed .step-circle {
  background-color: #fff;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.step-label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  margin-top: 8px;
}

.step-node.active .step-label {
  color: var(--primary-color);
  font-weight: 600;
}

/* Info Card Rows inside Side Panel */
.info-card-row {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  background-color: #fff;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 2px solid #123456;
  color: #123456;
}

.connectsidepanel {
  top: 132px !important;
  height: calc(88vh - 30px) !important;
  right: 10px !important;
  left: auto !important;
}

/* Offcanvas Open */
body:has(.custom-offcanvas.showing) .platform-btn.create-table,
body:has(.custom-offcanvas.show) .platform-btn.create-table {
  transform: translateX(-420px);
}

/* ================= PURE CSS CONTROLLER LOGIC ================= */
/* Hidden inputs core style */
#cssStepState1,
#cssStepState2,
#cssStepState3 {
  display: none;
}

/* Default Views (Hide Step 2 and 3 initially) */
#sidePanelStepView1,
#sidePanelStepView2,
#sidePanelStepView3 {
  display: none;
}

/* Toggle Screens Based on Selected Radio Button */
#cssStepState1:checked~.offcanvas-body #sidePanelStepView1 {
  display: flex;
}

#cssStepState2:checked~.offcanvas-body #sidePanelStepView2 {
  display: flex;
}

#cssStepState3:checked~.offcanvas-body #sidePanelStepView3 {
  display: flex;
}

/* Fix Content Height to Push Buttons Layout to Extreme Bottom Equally */
.offcanvas-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
}

.connectors-steps {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#sidePanelStepView1,
#sidePanelStepView2,
#sidePanelStepView3 {
  flex-grow: 1;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Dynamic Step Counter Label Change via CSS Content injection */
#panelStepCounterText::after {
  font-weight: 500;
}

#cssStepState1:checked~.offcanvas-header #panelStepCounterText::after {
  content: "Step 1 of 3";
}

#cssStepState2:checked~.offcanvas-header #panelStepCounterText::after {
  content: "Step 2 of 3";
}

#cssStepState3:checked~.offcanvas-header #panelStepCounterText::after {
  content: "Step 3 of 3";
}

/* --- STEPPER PROGRESS DYNAMIC RULES & BACK CLICK STYLES --- */
.step-node label {
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.offcanvas-header .btn-close {
  cursor: pointer;
}

/* STEP 1 ACTIVE / COMPLETED STATES */
#cssStepState1:checked~.offcanvas-body #sideStepNode1 {
  color: var(--primary-color);
  font-weight: 600;
}

#cssStepState1:checked~.offcanvas-body #sideStepNode1 .step-circle {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

#cssStepState2:checked~.offcanvas-body #sideStepNode1 .step-circle,
#cssStepState3:checked~.offcanvas-body #sideStepNode1 .step-circle {
  background: #fff;
  border-color: var(--primary-color);
  color: var(--primary-color);
  position: relative;
}

/* STEP 2 ACTIVE / COMPLETED STATES */
#cssStepState2:checked~.offcanvas-body #sideStepNode2 {
  color: var(--primary-color);
  font-weight: 600;
}

#cssStepState2:checked~.offcanvas-body #sideStepNode2 .step-circle {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

#cssStepState3:checked~.offcanvas-body #sideStepNode2 .step-circle {
  position: relative;
  background: #fff;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

#cssStepState3:checked~.offcanvas-body #sideStepNode2 .step-circle::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* STEP 3 ACTIVE STATE */
#cssStepState3:checked~.offcanvas-body #sideStepNode3 {
  color: var(--primary-color);
  font-weight: 600;
}

#cssStepState3:checked~.offcanvas-body #sideStepNode3 .step-circle {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Specific Component Inline Style Migrations */
.brand-logo.bg-stripe {
  width: 64px;
  height: 64px;
  font-size: 30px;
}

#sidePanelStepView1 .text-center p {
  font-size: 15px;
}

.info-card-row h6 {
  font-size: 16px;
}

.info-card-row p {
  font-size: 14px;
  line-height: 1.4;
}

#sidePanelStepView1 .platform-btn.connect-btn i {
  font-size: 12px;
}

#sidePanelStepView1 .text-muted.gap-2 {
  font-size: 12px;
}

.form-label.fw-medium {
  font-size: 13px;
}

#sidePanelStepView2 .platform-btn.connect-btn {
  border-radius: 8px;
  padding: 11px;
  background: #2485cb;
  color: white;
}

#sidePanelStepView3 .alert-success {
  background-color: #dcfce7;
  border-radius: 10px;
}

#sidePanelStepView3 .alert-success span {
  font-size: 13.5px;
}

#sidePanelStepView3 .alert-success a {
  font-size: 13px;
}

#sidePanelStepView3 .border-bottom .fw-medium {
  font-size: 14px;
}

#sidePanelStepView3 .badge {
  font-size: 11px;
  background: #e6f9ed;
}

#sidePanelStepView3 .mt-4.p-3.d-flex {
  background-color: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

#sidePanelStepView3 .mt-4.p-3.d-flex span.text-muted {
  font-size: 11px;
}

#sidePanelStepView3 .mt-4.pb-3 .platform-btn.connect-btn {
  padding: 12px;
  border-radius: 8px;
}

/* Global Dynamic Nav Rule */
.platform-btn.connect-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  padding: 11px 14px;
  min-height: 38px;
  border-radius: 8px;
  background: #2789CB;
  color: white !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.platform-btn.connect-btn:hover,
.platform-btn.connect-btn:focus-visible {
  background: #2179ae;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(39, 137, 203, 0.18);
}

/* new card css */
.card {
  overflow: hidden;
}

.connectors-action-iocns {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #123456;
}

.mian-action-div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

/* view Events side panel */
.stripe-avatar {
  width: 56px;
  height: 56px;
  background: #123456;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  font-weight: 700;
}

.badge-purple-light {
  background-color: #f3f0ff;
  color: #123456;
  font-size: 0.75rem;
  padding: 4px 10px;
}

.panel-divider {
  border-top: 1px solid #f1f5f9;
  margin: 15px 0;
}

.section-title-indicator {
  border-left: 3px solid #123456;
  padding-left: 8px;
  font-weight: 600;
  color: #0f172a;
  font-size: 16px;
}

.use-case-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: #64748b;
  font-size: 14px;
}

.use-case-item i {
  color: #123456;
}

.count-badge {
  background-color: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.list-stack-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 0.6rem;
}

.bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background-color: #123456;
}

.btn-purple-action {
  background-color: #123456;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  width: 100%;
  transition: background 0.2s;
}

.btn-purple-action:hover {
  background-color: #123456;
  color: white;
}

.btn-outline-secondary-custom {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-outline-secondary-custom:hover {
  background-color: #f1f5f9;
  color: #1e293b;
}

.work-app-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: white;
}

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

.work-app-more {
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #64748b;
  background: #f8fafc;
  font-weight: 600;
}

.active-label {
  background-color: #11960042;
  color: #198754;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
}

/* -------------------------------------- connectors css ------------------------------------- */

/* --------------------------------------Document.css ----------------------------------------- */

button#viewAllFormatsBtn {
  position: relative;
  z-index: 999;
  color: #123456;
}

.sidebar-active .panel-sidebar {
  opacity: 1;
  visibility: visible;
  z-index: 999;

}

.history-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.floating-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #123456;
  color: #fff;
  border: none;
}

label.extra-small {
  font-size: 14px;
}

span.extra-small {
  font-size: 12px;
}

.micro-text {
  font-size: 10px;
}

.cursor-pointer {
  cursor: pointer;
}

.form-select {
  font-size: 14px;
}

/* Interactive Dropzone Layout */
.upload-dropzone {
  border: 2px dashed #12345699;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-status-card {
  background: #eaf4ff;
}

.upload-dropzone:hover {
  border-color: #2789CB;
  background: linear-gradient(135deg, rgba(39, 137, 203, 0.08), rgba(18, 52, 86, 0.04));
  box-shadow: 0 10px 24px rgba(39, 137, 203, 0.12);
}

.upload-icon-wrapper {
  color: #123456;

  .fa-solid {
    font-size: 40px;
  }
}

/* Cloud Sources Grid Tiles */
.source-tile {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 16px 8px;
  background: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease;
  box-shadow: 0px 0px 5px #808080a6;
  width: 100%;
  max-width: 172px;
}

.source-tile:hover {
  border-color: #123456;
}

.source-tile span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #123456;
}

/* Replicating Mockup Design for Supported Formats Matrix */
.file-card {
  border-radius: 8px;
  padding: 5px 5px;
  background: #ffffff;
  height: 100%;
  transition: box-shadow 0.2s ease;
  justify-content: center;
  box-shadow: 0px 0px 5px gray;
}

.file-card i {
  font-size: 16px;

}

.icon-csv {
  color: #16a34a;
}

.icon-excel {
  color: #15803d;
}

.icon-json {
  color: #f59e0b;
}

.icon-xml {
  color: #2563eb;
}

.icon-pdf {
  color: #dc2626;
}

.file-card h4 {
  font-size: 14px;
  font-weight: 600;
}

.badge-tag {
  display: inline-block;
  font-size: 10px;
  color: #9ca3af;
  background-color: #f9fafb;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #f3f4f6;
  margin-top: 4px;
}

.strategy-card {
  border: 1px solid var(--border-soft);
  cursor: pointer;
  background-color: #ffffff;
  transition: all 0.15s ease;
}

.strategy-card.active {
  border-color: var(--primary-indigo);
  background-color: rgba(99, 102, 241, 0.06);
}

.alert-banner {
  background-color: #eaf4ff;
  color: #123456;
}

.extra-small {
  font-size: 14px;
}

.advancedoption-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;

  .btn {
    font-size: 12px;
    text-align: justify;
  }
}


/* Modal Customizations */
.modal-content {
  background-color: var(--bg-light);
  border: none;
}

.modal-header {
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
}

/* Sidebar Thumbnail Styles */
.sidebar-scroll {
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-right: 5px;
}

.thumb-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
}

.thumb-card.active {
  border-color: var(--primary-brand);
  box-shadow: 0 0 0 2px rgba(18, 52, 86, 0.2);
}

.thumb-placeholder {
  height: 110px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  font-size: 11px;
  color: #6c757d;
}

/* Document Viewer Main Canvas */
.doc-viewer-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  min-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
}

.doc-toolbar {
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  background: #fff;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.doc-body {
  flex-grow: 1;
  padding: 2.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 190px);
}

.contract-title {
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 2rem;
}

.brand-divider {
  height: 2px;
  background-color: var(--primary-brand);
  width: 100%;
  margin-bottom: 2rem;
}

/* Meta Panels Right Side */
.meta-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 105px
}

.meta-label {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 2px;
}

.meta-value {
  font-size: 13px;
  font-weight: 500;
  color: #212529;
  margin-bottom: 12px;
}

.btn-brand {
  background-color: var(--primary-brand);
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
}

.btn-brand:hover {
  background-color: var(--primary-brand-hover);
  color: white;
}

button#browseBtn {
  background: #2789CB;
  color: white;
}

.import-data-from {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.alert-massg {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 10px;
  font-size: 14px;
  color: #495057;
}

.upload-box {
  border: 2px dashed #d9dce8;
  border-radius: 14px;
  background: #fff;
  padding: 15px 20px;
  transition: .3s;
  cursor: pointer;
}

.upload-box:hover {
  border-color: #123456;
  background: #fafaff;
}

.upload-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin: 0;
}

.upload-icon {
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.upload-icon i {
  font-size: 30px;
  color: #123456;
}

.upload-content h6 {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
}

.upload-content h6 span {
  color: #123456;
  font-weight: 700;
}

.upload-content p {
  margin: 0;
  color: #8c8c8c;
  font-size: 12px;
}

/* --------------------------------------Document.css ----------------------------------------- */

/* ---------------------------------------- Views --------------------------------------------- */
/* Top App Header Badge */
.app-header-icon {
  background-color: var(--primary-light);
  color: var(--primary-color);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 1px solid var(--primary-border);
}

/* Section Typography matching layout structure */
.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.sidebar-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

.form-control-custom {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.88rem;
  padding: 6px 36px 6px 12px;
  color: var(--text-dark);
  background-color: #fff;
}

.form-control-custom::placeholder {
  color: #cbd5e1;
}

.form-control-custom:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.counter-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 6px;
}

/* Custom Selection Cards Base styling */
.selection-card {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: #ffffff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  width: 100%;
  box-shadow: 0 0 29px 0 rgba(18, 66, 101, 0.08);
}

.selection-card:hover {
  background-color: var(--card-bg-hover);
  border-color: #cbd5e1;
}

/* Checked indicator bubble ring */
.custom-radio-indicator {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Active selected state overrides */
.selection-card.active {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
}

.selection-card.active .custom-radio-indicator {
  border-color: #2688ce;
  background-color: #2587ce;
}

.selection-card.active .custom-radio-indicator::after {
  content: "";
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
}

/* View Type Cards Specific layouts */
.view-type-layout {
  padding: 18px 16px 18px 48px;
}

.view-type-layout .custom-radio-indicator {
  top: 20px;
  left: 16px;
}

.view-card-icon {
  font-size: 18px;
  color: var(--primary-color);
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 2px;
  width: 24px;
  text-align: center;
}

.view-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.view-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0;
  font-weight: 500;
}

/* Graph Cards Matrix Specific layouts */
.graph-type-layout {
  padding: 24px 16px 16px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  /* zaroori hai taaki flex column pura space le */
}

.graph-type-layout .custom-radio-indicator {
  top: 14px;
  right: 14px;
}

.graph-card-icon-wrap {
  color: var(--primary-color);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.graph-card-title {
  font-size: 16px;
}

.graph-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 0;
  font-weight: 500;
  overflow: auto;
  height: 60px;
}

/* Custom utility buttons layout */
.btn-more-toggle {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-more-toggle:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
}

.btn-action-submit {
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 28px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.View-title-div {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.hidden-radio {
  display: none;
}

.selection-card {
  display: block;
}

.hidden-radio:checked+.selection-card {
  border-color: #2789CB;
  background: linear-gradient(135deg, rgba(39, 137, 203, 0.08), rgba(18, 52, 86, 0.04));
  box-shadow: 0 10px 24px rgba(39, 137, 203, 0.12);
}

.hidden-radio:checked+.selection-card .custom-radio-indicator {
  border-color: #2688ce;
  background-color: #2587ce;
}

.hidden-radio:checked+.selection-card .custom-radio-indicator::after {
  content: "";
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

.choose-trigger {
  background-color: #2789CB;
  border: none;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
}

/* --------------------------------------- graph list view detail ------------------------------------------------------- */


.option-section .btn:active,
.option-section .btn.active {
  border-color: #2487ce;
  color: #123456;
}

.table-wrap {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

table {
  margin-bottom: 0;
  border-collapse: collapse;
}

thead.col-head th {
  background: #ffffff;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  white-space: nowrap;
  padding: .7rem .85rem;
  vertical-align: middle;
}

thead.col-head th:last-child {
  border-right: none;
}

thead.col-head th .fa-chevron-down {
  font-size: .62rem;
  margin-left: 4px;
  opacity: .55;
}

tbody.data-body td {
  padding: .65rem .85rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  color: var(--text);
}

tbody.data-body td:last-child {
  border-right: none;
}

tbody.data-body tr:hover td {
  background: var(--hover-bg);
}

tbody.data-body tr:last-child td {
  border-bottom: 1px solid var(--border-color);
}

.row-num {
  color: var(--muted);
  font-size: .8rem;
  width: 26px;
  display: inline-block;
}

.row-num-cell {
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
  width: 40px;
}

.file-icon {
  color: #123456;
  margin-right: .5rem;
  font-size: .85rem;
}

.account-name {
  font-weight: 500;
  color: var(--text);
}

.badge-type {
  font-weight: 600;
  font-size: .72rem;
  padding: .32rem .6rem;
  border-radius: 20px;
  display: inline-block;
}

.badge-enterprise {
  color: #7c3aed;
  background: #f1eafe;
}

.badge-midmarket {
  color: #2563eb;
  background: #e7f0ff;
}

.badge-smallbusiness {
  color: #059669;
  background: #e3faf0;
}

.owner-cell {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .78rem;
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.status-active {
  color: #059669;
}

.status-active .dot {
  background: #059669;
}

.status-inactive {
  color: #e05353;
}

.status-inactive .dot {
  background: #e05353;
}

.group-row td {
  background: #f1f3f5 !important;
  border: 1px solid var(--border-color) !important;
  padding: .6rem .85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.group-row .group-count {
  font-weight: 400;
  color: var(--muted);
  margin-left: .4rem;
  font-size: .82rem;
}

.group-row .group-total {
  font-weight: 500;
  color: var(--muted);
  font-size: .82rem;
}

.group-row .fa-chevron-down {
  transition: transform .15s ease;
  color: #9aa5b7;
  font-size: .75rem;
  margin-right: .5rem;
}

.group-row.collapsed .fa-chevron-down {
  transform: rotate(-90deg);
}

.ellipsis-btn {
  color: #9aa5b7;
  cursor: pointer;
}

.plus-col,
.action-col {
  width: 36px;
  text-align: center;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem .25rem;
  font-size: .82rem;
  color: var(--muted);
}

.page-btn {
  min-width: 30px;
  height: 30px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: #fff;
  font-size: .8rem;
  padding: 0 .5rem;
}

.page-btn.active {
  background: #123456;
  color: #fff;
  border-color: #123456;
}

.page-btn:hover:not(.active) {
  background: #f5f6f8;
}

.page-dots {
  color: var(--muted);
  padding: 0 .2rem;
}

.form-check-input {
  cursor: pointer;
}

/* ===== Toolbar (Group/Sort/Filter/Fields) ===== */
.toolbar-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: .4rem .7rem;
  font-size: .82rem;
  color: var(--text);
  font-weight: 500;
}

.toolbar-pill i.fa-layer-group,
.toolbar-pill i.fa-arrow-up-short-wide,
.toolbar-pill i.fa-filter,
.toolbar-pill i.fa-table-cells {
  color: #123456;
  font-size: .8rem;
}

.toolbar-pill:hover {
  background: #f8f9fb;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  border-radius: 20px;
  padding: .22rem .6rem;
  font-size: .8rem;
  border: 1px solid #123456;
}

.pill-badge .fa-xmark {
  font-size: .7rem;
  cursor: pointer;
  opacity: .75;
}

.pill-badge .fa-xmark:hover {
  opacity: 1;
}

.reset-link {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.reset-link:hover {
  color: var(--text);
}

.toolbar-pill.dropdown-toggle::after {
  display: none;
}

.toolbar-row .dropdown-menu {
  min-width: 200px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20, 20, 30, .08);
  padding: .4rem;
}

.toolbar-opt {
  display: flex;
  align-items: center;
  font-size: .85rem;
  color: var(--text);
  padding: .4rem .6rem;
  border-radius: 6px;
  cursor: pointer;
}

.toolbar-opt:hover {
  background: #f5f6f8;
}

.dropdown-search-wrapper .input-group-text {
  background: #fff;
  border-right: none;
  color: var(--muted);
}

.dropdown-search-wrapper input {
  border-left: none;
  font-size: .82rem;
}

.dropdown-search-wrapper input:focus {
  box-shadow: none;
  border-color: #dfe3e8;
}

.field-list {
  max-height: 300px;
  overflow-y: auto;
  background: #dee2e6;
  padding: 5px;
  margin-top: -2px;
}

/* ===== View Options Offcanvas ===== */
.view-options-panel {
  width: 340px;
}

.view-options-panel .offcanvas-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
}

.view-options-panel .offcanvas-title {
  font-weight: 600;
  font-size: 1rem;
}

.view-options-panel .offcanvas-body {
  padding: 1.1rem 1.25rem 1.5rem;
  font-size: .85rem;
}

.vo-section-title {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
}

.vo-section-subtitle {
  color: var(--muted);
  font-size: .78rem;
  margin-top: .15rem;
}

.vo-search .input-group-text {
  background: #fff;
  border-right: none;
  color: var(--muted);
}

.vo-search input {
  border-left: none;
}

.vo-search input:focus {
  box-shadow: none;
  border-color: #dfe3e8;
}

.field-list {
  max-height: 300px;
  overflow-y: auto;
}

.field-item {
  /* display: flex;
    align-items: center;
    justify-content: space-between; */
  padding: 10px 10px;
  margin: 10px 0;
}

.field-item label {
  display: flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
  color: var(--text);
  font-size: .85rem;
}

.field-icon-fa {
  width: 22px;
  color: #9aa5b7;
  margin-right: .3rem;
  font-size: .85rem;
  text-align: left;
}

.field-icon-fa-blue {
  width: 22px;
  color: #2563eb;
  margin-right: .3rem;
  font-size: .85rem;
  text-align: left;
}

.drag-icon {
  /* color: #c7ccd6; */
  cursor: grab;
  font-size: .85rem;
}

.view-options-panel .accordion-button {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  padding: .75rem .1rem;
  background: transparent;
  box-shadow: none;
}

.view-options-panel .accordion-button::after {
  margin-left: auto;
}

.view-options-panel .accordion-button:not(.collapsed) {
  color: var(--text);
  background: transparent;
}

.view-options-panel .accordion-item {
  border: none;
  border-bottom: 1px solid var(--border-color);
}

.view-options-panel .accordion-body {
  padding: 0 .1rem .9rem;
  color: var(--muted);
  font-size: .82rem;
}

.manage-view {
  color: #e05353;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
}

.manage-view:hover {
  text-decoration: underline;
  color: #e05353;
}

.group-row td {
  padding: 0;
  background: #f5f7fb;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 5px 14px;
}

.group-left {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* --------------------------------------- end graph list view detail css ------------------------------------------------------- */

/* ---------------------------------------------- graph view detail ----------------------------------------------------------------*/
.graph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}



.graph-view-container {
  display: flex;
  gap: 10px;
}

.graph-view {
  flex: 1;
  min-width: 0;
  transition: all .35s ease;
}

.graph-penal {
  flex: 0 0 350px;
  width: 400px;
  overflow: auto;
  transition: flex-basis .35s ease, width .35s ease, opacity .25s ease;
  opacity: 1;
}

.graph-penal.hide {
  flex-basis: 0;
  width: 0;
  opacity: 0;
}

.sidepenal {
  width: 350px !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-sizing: border-box;
  background: white;
  overflow: auto;
  height: 85vh;
  position: fixed;
  z-index: 5;
  top: 140px !important;
  right: 10px !important;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.summary-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: .3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.card-label {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 500;
}

.card-title {
  font-size: 18px;
  color: #1e293b;
  margin: 0 0 6px;
  font-weight: 700;
}

.card-value {
  font-size: 15px;
  color: #334155;
  font-weight: 600;
}

.card-value span {
  color: #64748b;
  font-weight: 500;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.success {
  background: #ecfdf5;
  color: #22c55e;
}

.danger {
  background: #fef2f2;
  color: #ef4444;
}

.primary {
  background: #eff6ff;
  color: #3b82f6;
}

.purple {
  background: #f5f3ff;
  color: #8b5cf6;
}

.sidepanel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px;
  border-bottom: 1px solid gray;
}

.sidepanel-header {
  h5 {
    font-size: 18px;
    margin: 0;
  }
}

.option-section {
  margin-bottom: 10px;
}

.option-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #123456;
  margin-bottom: 8px;
}

.option-title i {
  color: #123456;
  width: 18px;
}

.filter-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #eef2f7;
  font-size: 14px;
  color: #123456;
}

.filter-card i {
  color: #123456;
}

.and-badge {
  width: max-content;
  margin: 10px auto;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #4f46e5;
  background: #eef2ff;
  border-radius: 20px;
}

.avatar-group {
  display: flex;
  gap: 8px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.sidepenal-body {
  padding: 20px;
}

.graph-action-btn {
  display: flex;
  gap: 15px;
  align-items: center;
  color: #123456;
}

/* fullscreen */
.graph-view {
  transition: all .3s ease;
}

.graph-view.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh;
  z-index: 9999;
  background: #fff;
  padding: 20px;
  overflow: auto;
}

.graph-view.fullscreen .graph-view-div {
  height: 100%;
}

.graph-view.fullscreen .graph-container {
  height: calc(100% - 70px);
}

.graph-view.fullscreen .graph-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* end fullscreen */


/* ---------------------------------------------- end graph view detail ----------------------------------------------------------------*/

.field-modal {
  display: none;
  position: fixed;
  inset: 0;
}

.modal-box button {
  display: block;
  width: 100%;
  margin: 5px 0;
}

.fade:not(.show) {
  opacity: 1;
}

.question-field-select button {
  background-color: #123456;
  border: none;
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
  color: white;
}

.close-btn.question {
  background-color: transparent;
  border: 1px solid #123456;
  color: #123456;
}


.sortable-ghost {
  opacity: .4;
  border: 2px dashed #6366f1;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  color: #123456;
  background: transparent;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
  z-index: 1;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: #f1f5f9;
  color: #0f2a42;
  transform: translateY(-1px);
}

/* .breadcrumb-actions merged into single definition earlier in file (line ~690) */

/* .breadcrumb-actions .btn {
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  line-height: 1;
} */

.breadcrumb-actions .btn-outline-primary {
  color: #123456;
  border-color: #123456;
  background-color: #fff;
}

.breadcrumb-actions .btn-outline-primary:hover,
.breadcrumb-actions .btn-outline-primary:focus-visible {
  background-color: #eaf2fb;
  color: #123456;
  border-color: #123456;
}

.breadcrumb-actions .btn-primary {
  background-color: #123456;
  border-color: #123456;
  color: #fff;
}

.breadcrumb-actions .btn-primary:hover,
.breadcrumb-actions .btn-primary:focus-visible {
  background-color: #0d2740;
  border-color: #0d2740;
  color: #fff;
}

.drag-handle {
  cursor: grab;
  padding: 8px;
}

.field-add {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.drag-handle {
  cursor: grab;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drag-handle:active {
  cursor: grabbing;
}

.field-item {
  user-select: none;
}

.question-field {
  display: flex;
  align-items: center;
  color: #123456;
}

button.field-option-btn.add-field {
  background: #2789CB;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  color: white;
}

/* ------------------------------ dashboard view detail */

.add-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-div {
  background: #d2d2d2;
  border: 1px solid gray;
  border-radius: 10px;
  height: 380px;
  overflow: auto;
  width: 100%;

  h5 {
    margin: 0px;
  }
}

/* Image */
.widget-div img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: contain;
}

/* Table */
.widget-div table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.widget-div table th,
.widget-div table td {
  padding: 10px;
  border: 1px solid #ccc;
  word-break: break-word;
  text-align: center;
  vertical-align: middle;
}

button.add-widget-btn {
  border-radius: 50%;
  height: 40px;
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  background: none;
  color: #123456;
  font-size: 22px;
}

.upload-widget {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  border: 2px dashed #12345663;
  background: #b0d6f53d;
  height: 418px;
}

.upload-widget:hover {
  border: 2px dashed #123456;
}

@media print {

  #navbar,
  .breadcrumb-actions,
  .graph-penal,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .graph-view {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.widget-rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
  min-height: 40px;
}

.widget-row .widget-item {
  flex: 1 1 0;
  min-width: 0;
  /* prevents wide content (tables/images) from forcing extra width */
}

.field-item.active {
  border: 2px dashed #123456;
  box-shadow: 0 0 0 2px rgba(18, 52, 86, 0.15);
  background: #f8fbff;
}

.widget-row.widget-row-empty {
  border: 2px dashed #12345663;
  border-radius: 10px;
  min-height: 60px;
}

#widgetContainer .add-widget-div,
#widgetContainer .add-widget-div .upload-widget {
  height: 100%;
}

@media (max-width: 767px) {
  .widget-row {
    flex-direction: column;
  }

  .widget-row .widget-item {
    flex: 1 1 auto;
    width: 100%;
  }
}

.widget-item {
  cursor: move;
}

.sortable-ghost {
  opacity: 0.4;
}

.sortable-chosen .add-widget-div {
  box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
}

.sortable-drag {
  transform: rotate(2deg);
}

.nav-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  color: #6c757d;
  background: none;
}

.nav-tabs .nav-link.active {
  color: #123456;
  border-bottom: 2px solid #123456;
  background: none;
}

.widget-pick-item:hover {
  background: #f5f6fa;
  cursor: pointer;
}

.sidepenal-body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 6px 10px;
}

.widget-panel-fixed {
  flex-shrink: 0;
  background: #fff;
  z-index: 2;
}

.widget-panel-scroll {
  flex: 1 1 auto;
  padding: 0 5px;
}

/* Optional: hide scrollbar visually but keep scroll working */
.widget-panel-scroll::-webkit-scrollbar {
  width: 6px;
}

.widget-panel-scroll::-webkit-scrollbar-thumb {
  background: #d0d3d9;
  border-radius: 3px;
}

.widget-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.widget-tab-item {
  background: none;
  border: none;
  padding: 8px 2px 10px;
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.widget-tab-item:hover {
  color: #123456;
}

.widget-tab-item.active {
  color: #123456;
  border-bottom: 2px solid #123456;
}

/* .widget-pick-item:hover merged into single definition earlier in file (line ~4805) */

.offcanvas-body .accordion-button {
  padding: 10px 12px;
  font-size: 0.95rem;
  box-shadow: none !important;
  color: #123456;
}

.offcanvas-body .accordion-button:not(.collapsed) {
  background-color: #f0f2f5;
  color: inherit;
}

.offcanvas-body .list-group-item {
  font-size: 0.9rem;
  padding: 8px 16px;
  border-left: 0;
  border-right: 0;
  color: #123456;
}

.offcanvas-body .list-group-item i {
  color: #123456;
}

.offcanvas-body .list-group-item:hover {
  background-color: #f8f9fa;
  color: #123456;
}



/* ---------------------------------- share modal ------------------------------ */

.share-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eaf1fe;
  color: #2f6fed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex: 0 0 40px;
}

.border-end-lg {
  border-right: 1px solid #e5e8ee;
}

@media (max-width: 991px) {
  .border-end-lg {
    border-right: none;
    border-bottom: 1px solid #e5e8ee;
    padding-bottom: 20px;
  }
}

.share-users-list {
  border-top: 1px solid #e5e8ee;
}

.share-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid #e5e8ee;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
}

.user-name {
  font-size: 13.5px;
  font-weight: 600;
}

.user-email {
  font-size: 12px;
  color: #6b7280;
}

.status-tag {
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
}

.status-tag.registered {
  color: #16a34a;
}

.status-tag.pending {
  color: #d97706;
}

.owner-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

.role-select {
  width: auto;
  min-width: 120px;
}

.row-menu-btn {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  padding: 4px 6px;
}

.row-menu-btn:hover {
  color: #1f2430;
}

.public-link-box {
  background: #f8f9fb;
  border: 1px solid #e5e8ee;
  border-radius: 10px;
  padding: 18px;
}

.access-note {
  background: #eaf1fe;
  border: 1px solid #d7e4fc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #1f2430;
  display: flex;
  align-items: flex-start;
}

/* ---------------------------------- end share modal ------------------------------ */

/*----------------------------------- global sidebar css--------------------------- */

.custom-offcanvas {
  backdrop-filter: blur(25px) saturate(120%);
  -webkit-backdrop-filter: blur(25px) saturate(120%);
  border-left: 1px solid var(--glass-border) !important;
  border-right: none !important;
  border-radius: 10px;
  top: 135px !important;
  height: calc(87vh - 30px) !important;
  right: 50px !important;
  left: auto !important;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.6);
  color: var(--text-color);
  z-index: 40;
}

.custom-sidebar-wrapper {
  position: fixed;
  top: 125px;
  right: 0;
  left: auto;
  height: 100vh;
  width: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  z-index: 98;
  border-left: 1px solid var(--glass-border);
  border-right: none;
  background-color: #ffffff;
  box-shadow: 0px 0px 5px #80808099;
}

.brand-logo {
  width: 40px;
  height: 40px;
  /* background: linear-gradient(135deg, #123456, #123456); */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  align-items: center;
}

/* Sidebar item buttons - default (inactive) state */
.nav-item {
  position: relative;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  background: none;
  border: none;
  font-size: 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.nav-item i {
  font-size: 1.2rem;
}

.nav-item:hover,
.nav-item.show {
  color: var(--text-hover);
  background-color: rgba(255, 255, 255, 0.04) !important;
}

/* Active state - JS adds/removes this ONLY on offcanvas open/close */
.nav-item.active-bridge {
  background-color: #12345633;
  backdrop-filter: blur(25px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(120%) !important;
  border: 1px solid var(--glass-border);
  border-right: none;
  border-radius: 12px 0 0 12px;
  width: calc(100% + 11px);
  margin-right: -11px;
  z-index: 1000;
  color: #1f2937 !important;
}

.nav-item.active-bridge i {
  color: var(--accent-blue) !important;
}

.nav-item.active-bridge::after {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 3px;
  background-color: var(--accent-blue);
  border-radius: 0 3px 3px 0;
  box-shadow: 2px 0 10px var(--accent-blue);
}

/*----------------------------------- global sidebar css--------------------------- */

input[type="radio"] {
  display: none;
}

.db-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s ease;
  margin-bottom: 12px;
  background: #fff;
}

.db-card:hover {
  border-color: #2487cf;
}

.db-card .radio {
  width: 18px;
  height: 18px;
  border: 2px solid #c0c0c0;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.db-card .radio::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

input[type="radio"]:checked+.db-card {
  border-color: #2487cf;
  background: #f8fbff;
  box-shadow: 0 0 0 2px rgb(166 166 166 / 36%);
}

input[type="radio"]:checked+.db-card .radio {
  background: #0d6efd;
  border-color: #0d6efd;
}

input[type="radio"]:checked+.db-card .radio::after {
  display: block;
}


.wrap {
  font-family: 'Inter', sans-serif;
  color: #123456;
  min-height: 100vh;
  padding: 48px 16px;
}

.payment-card {
  background-color: white;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 20px 50px -20px rgba(18, 52, 86, 0.22);
}

.display-font {
  font-family: 'Space Grotesk', sans-serif;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
}

/* Brand mark */
.brandmark {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 38px;
}

.brandmark .icon-box {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2487CE, #4FA8DE);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
}

.brandmark span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

/* Stamp / hero */
.hero {
  text-align: center;
  margin-bottom: 34px;
}

.stamp {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 2.5px dashed #20d480;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stamp::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #20d480;
}

.stamp i {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 28px;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: rotate(-6deg) scale(.7);
  }

  to {
    opacity: 1;
    transform: rotate(-6deg) scale(1);
  }
}

.hero h1 {
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.hero p {
  color: #5D7387;
  font-size: 1.02rem;
  max-width: 480px;
  margin: 0 auto 18px;
  line-height: 1.55;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f9f0;
  color: #25be4e;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid #25be4e;
}

.verified-pill i {
  font-size: 0.8rem;
  color: #25c44d;
}

/* Ticket / receipt card */
.ticket {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 20px 50px -20px rgba(18, 52, 86, 0.22);
  overflow: hidden;
  border: 1px solid #DCE6EE;
  margin-bottom: 24px;
}

.ticket-top {
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px dashed #DCE6EE;
}

.plan-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(150deg, #DCEEFA, #F1F8FD);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2487CE;
  font-size: 22px;
  flex-shrink: 0;
}

.plan-name {
  font-weight: 700;
  font-size: 1.15rem;
}

.plan-meta {
  color: #5D7387;
  font-size: 0.87rem;
}

.plan-meta i {
  width: 14px;
}

.plan-total {
  text-align: right;
}

.plan-total .amount {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.65rem;
}

.plan-total .per {
  color: #5D7387;
  font-size: 0.82rem;
}

/* two-column with perforation */
.ticket-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 0 30px 0px;
  gap: 0 28px;
}

.perforation {
  position: relative;
  width: 1px;
  background-image: linear-gradient(#DCE6EE 60%, transparent 0%);
  background-position: top;
  background-size: 1px 10px;
  background-repeat: repeat-y;
}

section.col-left {
  padding: 20px 0px;
}

section.col-right {
  padding: 20px 0px;
}

.col-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-title i {
  color: #2487CE;
  font-size: 0.85rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  padding: 6px 0;
  color: #2b3040;
}

.feature-list li i {
  color: #1B6BA3;
  font-size: 0.78rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.view-all {
  font-size: 0.86rem;
  font-weight: 600;
  color: #123456;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.view-all:hover {
  color: #1B6BA3;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid #DCE6EE;
}

.detail-row:last-of-type {
  border-bottom: none;
}

.detail-row .label {
  color: #5D7387;
}

.detail-row .value {
  font-weight: 600;
}

.visa-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}

.visa-chip .visa {
  font-family: 'Space Grotesk', sans-serif;
  font-style: italic;
  color: #1A1F71;
  font-weight: 700;
}

.txn-box {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid #2487CE;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.txn-box .txn-id {
  font-size: 0.82rem;
  color: #1B6BA3;
}

.txn-box button {
  border: none;
  background: transparent;
  color: #1B6BA3;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

/* CTA bar */
.cta-bar {
  background: linear-gradient(120deg, #123456 0%, #1B5A85 100%);
  border-radius: 18px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  box-shadow: 0 20px 50px -20px rgba(18, 52, 86, 0.22);
}

.cta-bar .left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-bar .rocket {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2487CE;
  font-size: 20px;
  flex-shrink: 0;
}

.cta-bar h5 {
  color: #fff !important;
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 1.02rem;
}

.cta-bar p {
  color: #fff;
  font-size: 0.86rem;
  margin: 0;
}

.btn-brand {
  background: #2487CE;
  border: none;
  color: #FFFFFF;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 11px;
  font-size: 0.93rem;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}

.btn-brand:hover {
  background: #1B6BA3;
  color: #fff;
  transform: translateY(-1px);
}

/* trust row */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 220px;
}

.trust-item .ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #DCE6EE;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2487CE;
  font-size: 14px;
}

.trust-item strong {
  display: block;
  font-size: 0.82rem;
}

.trust-item span {
  display: block;
  font-size: 0.75rem;
  color: #5D7387;
}

.support-line {
  text-align: center;
  margin: 26px 0 6px;
  color: #5D7387;
  font-size: 0.88rem;
}

.support-line a {
  color: #2487CE;
  font-weight: 600;
  text-decoration: none;
}

.support-line a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 767px) {
  .ticket-body {
    grid-template-columns: 1fr;
    gap: 22px 0;
  }

  .perforation {
    width: 100%;
    height: 1px;
    background-image: linear-gradient(90deg, #DCE6EE 60%, transparent 0%);
    background-position: left;
    background-size: 10px 1px;
    background-repeat: repeat-x;
    margin: 4px 0 2px;
  }

  .perforation::before,
  .perforation::after {
    top: 50%;
    transform: translateY(-50%);
  }

  .perforation::before {
    left: -42px;
  }

  .perforation::after {
    left: auto;
    right: -42px;
  }

  .ticket-top {
    padding: 22px;
  }

  .ticket-body {
    padding: 20px 22px 26px;
  }

  .plan-total {
    text-align: left;
  }

  .cta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-bar .btn-brand {
    width: 100%;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.7rem;
  }
}

:focus-visible {
  outline: 2px solid #2487CE;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .stamp {
    animation: none;
  }
}

.error-pill {
  display: flex;
  gap: 12px;
  background: #FDEDEE;
  color: #123456;
  font-size: 0.92rem;
  line-height: 1.6;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #F6C6CA;
  text-align: left;
}

.error-pill i {
  color: #E23744;
  font-size: 1.05rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.error-pill strong {
  font-weight: 700;
}

.stamp-error {
  border-color: #E23744;
}

.stamp-error::after {
  background: #FDEDEE;
}

.stamp-error i {
  color: #E23744;
}

.action-row {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  margin-bottom: 155px;
}

.btn-retry,
.btn-dashboard {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.btn-retry {
  background: #2487CE;
  border: none;
  color: #FFFFFF;
}

.btn-retry:hover {
  background: #1B6BA3;
  transform: translateY(-1px);
}

.fa-rotate-right {
  color: white;
}

.btn-dashboard {
  background: #FFFFFF;
  border: 1px solid #DCE6EE;
  color: #123456;
}

.btn-dashboard:hover {
  border-color: #2487CE;
  color: #2487CE;
}

@media (max-width: 767px) {
  .action-row {
    flex-direction: column;
  }
}


/* billing page  */
 #cancelSubscriptionModal .modal-content {
      border: none;
      border-radius: 16px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    }
    #cancelSubscriptionModal .modal-header {
      border-bottom: none;
      padding: 24px 28px 4px 28px;
    }
    #cancelSubscriptionModal .modal-title {
      font-size: 1.35rem;
      font-weight: 700;
      color: #1a1a2e;
    }
    #cancelSubscriptionModal .btn-close {
      box-shadow: none;
    }
    #cancelSubscriptionModal .modal-body {
      padding: 8px 28px 4px 28px;
    }
    #cancelSubscriptionModal .cancel-question {
      font-size: 1.05rem;
      font-weight: 600;
      margin-bottom: 20px;
    }
    #cancelSubscriptionModal .cancel-info-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      padding: 10px 0;
      border-bottom: 1px solid #eef0f4;
    }
    #cancelSubscriptionModal .cancel-info-row:last-of-type {
      border-bottom: none;
    }
    #cancelSubscriptionModal .cancel-info-label {
      color: #6b7280;
      font-size: 0.95rem;
      white-space: nowrap;
    }
    #cancelSubscriptionModal .cancel-info-value {
      text-align: right;
      font-weight: 600;
      font-size: 0.95rem;
    }
    #cancelSubscriptionModal .cancel-info-value .sub-note {
      display: block;
      font-weight: 400;
      color: #6b7280;
      font-size: 0.8rem;
      margin-top: 2px;
    }
    #cancelSubscriptionModal .modal-footer {
      border-top: none;
      padding: 20px 28px 24px 28px;
      gap: 12px;
    }
    #cancelSubscriptionModal .btn-confirm-cancel {
      background-color: #8b1f1f;
      border: none;
      color: #fff;
      font-weight: 600;
      padding: 10px 20px;
      border-radius: 8px;
      flex: 1;
    }
    #cancelSubscriptionModal .btn-confirm-cancel:hover {
      background-color: #731a1a;
      color: #fff;
    }

section.billing-page {
  margin-top: 132px;
  margin-bottom: 100px;
}

.plan-card {
  background: #F1F8FD;
  border: 1px solid #DCE6EE;
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 24px;
}

.plan-card .tag {
  color: #2487CE;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 12px;
  display: block;
}

.plan-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.plan-card .plan-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #DCEEFA;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2487CE;
  font-size: 22px;
  flex-shrink: 0;
}

.plan-card .plan-name {
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.badge-active {
  background: #E1F5EC;
  color: #17B978;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.plan-card .plan-meta {
  color: #5D7387;
  font-size: 0.87rem;
  margin: 4px 0 6px;
}

.plan-card .plan-desc {
  color: #5D7387;
  font-size: 0.85rem;
  max-width: 600px;
  line-height: 1.5;
}

.plan-price {
  text-align: right;
}

.plan-price .amount {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
}

.plan-price .per {
  color: #5D7387;
  font-size: 0.85rem;
}

.plan-price .renewal-label {
  color: #5D7387;
  font-size: 0.8rem;
  margin-top: 10px;
}

.plan-price .renewal-date {
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.plan-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-outline-plan {
  background: #fff;
  border: 1px solid #DCE6EE;
  color: #123456;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-plan:hover {
  border-color: #2487CE;
  color: #2487CE;
}

.btn-outline-danger {
  background: #fff;
  border: 1px solid #F6C6CA;
  color: #E23744;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-danger:hover {
  background: #FDEDEE;
}

.btn-upgrade {
  background: #2487CE;
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  float: right;
  margin-top: -40px;
}

.btn-upgrade:hover {
  background: #1B6BA3;
}

.info-card {
  background: #fff;
  border: 1px solid #DCE6EE;
  border-radius: 16px;
  padding: 22px 24px;
  height: 100%;
}

.info-card h6 {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.info-card .subtext {
  color: #5D7387;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #EEF3F7;
  font-size: 0.88rem;
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-row .label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5D7387;
}

.summary-row .label i {
  width: 16px;
  color: #2487CE;
}

.summary-row .value {
  font-weight: 600;
}

.auto-renew-note {
  background: #F1F8FD;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #123456;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
}

.auto-renew-note i {
  color: #2487CE;
  margin-top: 2px;
}

.usage-item {
  margin-bottom: 18px;
}

.usage-item:last-of-type {
  margin-bottom: 0;
}

.usage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.usage-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.usage-ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.usage-ic.orange {
  background: #FDEEDC;
  color: #E88A2B;
}

.usage-ic.purple {
  background: #EEEAFB;
  color: #7B5FE0;
}

.usage-ic.green {
  background: #E1F5EC;
  color: #17B978;
}

.usage-nums {
  font-size: 0.8rem;
  color: #5D7387;
}

.progress-thin {
  height: 6px;
  border-radius: 100px;
  background: #EEF3F7;
  overflow: hidden;
}

.progress-thin>div {
  height: 100%;
  border-radius: 100px;
}

.usage-percent {
  font-size: 0.76rem;
  color: #5D7387;
  text-align: right;
  margin-top: 4px;
}

.btn-view-all {
  width: 100%;
  background: #fff;
  border: 1px solid #DCE6EE;
  color: #2487CE;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px;
  border-radius: 9px;
  margin-top: 6px;
}

.btn-view-all:hover {
  border-color: #2487CE;
  background: #F1F8FD;
}

.invoices-card {
  background: #fff;
  border: 1px solid #DCE6EE;
  border-radius: 16px;
  padding: 22px 24px;
  margin-top: 24px;
}

.invoices-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.invoices-head h6 {
  font-weight: 700;
  font-size: 0.98rem;
  margin: 0;
}

.invoices-head a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2487CE;
  text-decoration: none;
}

.invoices-head a:hover {
  text-decoration: underline;
}

table.invoice-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
}

table.invoice-table thead th {
  text-align: left;
  color: #5D7387;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 8px 10px;
  border-bottom: 1px solid #EEF3F7;
}

table.invoice-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #EEF3F7;
  vertical-align: middle;
}

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

.status-paid {
  background: #E1F5EC;
  color: #17B978;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.invoice-dl {
  width: 30px;
  height: 30px;
  border: 1px solid #DCE6EE;
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5D7387;
}

.invoice-dl:hover {
  border-color: #2487CE;
  color: #2487CE;
}

@media (max-width: 767px) {
  .plan-card-top {
    flex-direction: column;
  }

  .plan-price {
    text-align: left;
  }

  .plan-price .renewal-date {
    justify-content: flex-start;
  }

  .btn-upgrade {
    float: none;
    margin-top: 14px;
    width: 100%;
    justify-content: center;
  }

  table.invoice-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}


/* invoice page  */
.invoices-page {
  margin-top: 132px;
  margin-bottom: 100px;

  .invoices-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }

  .invoices-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 4px;
  }

  .invoices-header p {
    color: #5D7387;
    font-size: 0.92rem;
    margin: 0;
  }

  .btn-back {
    background: #fff;
    border: 1px solid #DCE6EE;
    color: #123456;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }

  .btn-back:hover {
    border-color: #2487CE;
    color: #2487CE;
  }

  /* stat strip */
  .stat-strip {
    background: #fff;
    border: 1px solid #DCE6EE;
    border-radius: 16px;
    padding: 20px 26px;
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 30px;
  }

  .stat-item:first-child {
    padding-left: 0;
  }

  .stat-divider {
    width: 1px;
    align-self: stretch;
    background: #EEF3F7;
  }

  .stat-ic {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .stat-ic.blue {
    background: #DCEEFA;
    color: #2487CE;
  }

  .stat-ic.green {
    background: #E1F5EC;
    color: #17B978;
  }

  .stat-ic.orange {
    background: #FDEEDC;
    color: #E88A2B;
  }

  .stat-label {
    color: #5D7387;
    font-size: 0.82rem;
  }

  .stat-value {
    font-weight: 700;
    font-size: 1.15rem;
  }

  /* toolbar */
  .toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0;
  }

  .search-box {
    flex: 1;
    min-width: 220px;
    position: relative;
    margin-top: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
  }

  .search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #5D7387;
    font-size: 0.85rem;
    pointer-events: none;
  }

  .search-box input {
    margin: 0;
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid #DCE6EE;
    border-radius: 10px;
    font-size: 0.88rem;
    background: #fff;
    color: #123456;
    height: 40px;
    box-sizing: border-box;
  }

  .search-box input:focus {
    outline: none;
    border-color: #2487CE;
    box-shadow: 0 0 0 3px rgba(36, 135, 206, 0.12);
  }

  .search-box input::placeholder {
    color: #8CA0B3;
  }

  .btn-toolbar-outline {
    background: #fff;
    border: 1px solid #DCE6EE;
    color: #123456;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    height: 40px;
    box-sizing: border-box;
    cursor: pointer;
  }

  .btn-toolbar-outline:hover {
    border-color: #2487CE;
    color: #2487CE;
  }

  .btn-toolbar-outline.active {
    border-color: #2487CE;
    color: #2487CE;
    background: #EAF5FD;
  }

  /* date range dropdown */
  .date-range-wrap {
    position: relative;
  }

  .date-range-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 50;
    background: #fff;
    border: 1px solid #DCE6EE;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(18, 52, 86, 0.14);
    width: 308px;
    box-sizing: border-box;
  }

  .date-range-panel.open {
    display: block;
  }

  .date-range-panel .drp-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #123456;
    margin-bottom: 14px;
  }

  .date-range-panel .drp-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 16px;
  }

  .date-range-panel .drp-field {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .drp-sep {
    color: #8CA0B3;
    font-size: 0.8rem;
    padding-bottom: 9px;
    flex-shrink: 0;
  }

  .date-range-panel label {
    font-size: 0.7rem;
    color: #5D7387;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .date-range-panel input[type="date"] {
    border: 1px solid #DCE6EE;
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 0.84rem;
    color: #123456;
    width: 100%;
    box-sizing: border-box;
    height: 38px;
    background: #F9FBFC;
    -webkit-appearance: none;
    appearance: none;
  }

  .date-range-panel input[type="date"]:focus {
    outline: none;
    border-color: #2487CE;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(36, 135, 206, 0.12);
  }

  .date-range-panel input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.6;
    cursor: pointer;
  }

  .drp-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #EEF3F7;
  }

  .drp-btn {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 9px;
    border: 1px solid #DCE6EE;
    background: #fff;
    color: #5D7387;
    cursor: pointer;
  }

  .drp-btn.primary {
    background: #2487CE;
    border-color: #2487CE;
    color: #fff;
  }

  .drp-btn.primary:hover {
    background: #1c72ac;
  }

  .drp-btn:hover {
    border-color: #2487CE;
    color: #2487CE;
  }

  .drp-btn.primary:hover {
    color: #fff;
  }

  /* status filter dropdown */
  .filter-wrap {
    position: relative;
  }

  .filter-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    background: #fff;
    border: 1px solid #DCE6EE;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(18, 52, 86, 0.12);
    width: 180px;
  }

  .filter-panel.open {
    display: block;
  }

  .filter-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #123456;
  }

  .filter-option:hover {
    background: #F4F8FB;
  }

  .filter-option input {
    accent-color: #2487CE;
    width: 15px;
    height: 15px;
    cursor: pointer;
  }

  /* table card */
  .invoices-card {
    background: #fff;
    border: 1px solid #DCE6EE;
    border-radius: 16px;
    padding: 8px 20px 6px;
  }

  table.invoice-table thead th:first-child,
  table.invoice-table tbody td:first-child {
    padding-left: 0;
  }

  table.invoice-table thead th:last-child,
  table.invoice-table tbody td:last-child {
    padding-right: 0;
  }

  table.invoice-table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: collapse;
  }

  table.invoice-table thead th {
    text-align: left;
    color: #5D7387;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 14px 10px;
    border-bottom: 1px solid #EEF3F7;
    white-space: nowrap;
  }

  table.invoice-table thead th i {
    font-size: 0.7rem;
    margin-left: 4px;
  }

  table.invoice-table tbody td {
    padding: 14px 10px;
    border-bottom: 1px solid #EEF3F7;
    vertical-align: middle;
  }

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

  .invoice-desc strong {
    display: block;
    font-weight: 600;
    font-size: 0.87rem;
  }

  .invoice-desc span {
    display: block;
    color: #8CA0B3;
    font-size: 0.78rem;
    margin-top: 2px;
  }

  .status-paid {
    background: #E1F5EC;
    color: #17B978;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
  }

  .status-pending {
    background: #FDEEDC;
    color: #E88A2B;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
  }

  .invoice-dl {
    width: 30px;
    height: 30px;
    border: 1px solid #DCE6EE;
    border-radius: 8px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5D7387;
  }

  .invoice-dl:hover {
    border-color: #2487CE;
    color: #2487CE;
  }

  .invoice-dl[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .invoice-dl[disabled]:hover {
    border-color: #DCE6EE;
    color: #5D7387;
  }
}


/* ===== Qvista Plans & Billing — local styles (color combination matched to reference design) ===== */
.plans-eyebrow {
  color: #8B8B9E;
  font-size: 13px;
  margin-bottom: 6px;
}

.plans-title {
  font-size: 26px;
  font-weight: 700;
  color: #123456;
  margin-bottom: 6px;
}

.plans-subtitle {
  color: #8B8B9E;
  font-size: 14px;
  margin-bottom: 28px;
}

.plan-card {
  background: #FFFFFF;
  border: 1px solid #E7E7F1;
  border-radius: 14px;
  padding: 28px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.plan-card:hover {
  box-shadow: 0 6px 20px rgba(39, 137, 203, 0.08);
}

.plan-card.active {
  border-color: #2789CB;
  box-shadow: 0 6px 20px rgba(39, 137, 203, 0.12);
}

.plan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.plan-name {
  font-size: 16px;
  font-weight: 700;
  color: #123456;
  margin: 0;
}

.plan-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-badge i {
  color: white;
}

.plan-badge-current {
  background-color: #2789CB;
  color: #fff;
}

.plan-badge-recommended {
  background-color: #F1F1F6;
  color: #123456;
  border: 1px solid #E7E7F1;
}

.plan-price {
  font-size: 30px;
  font-weight: 700;
  color: #123456;
  margin-bottom: 2px;
  text-align: left;
}

.plan-price small {
  font-size: 13px;
  font-weight: 500;
  color: #8B8B9E;
}

.plan-desc {
  font-size: 13px;
  color: #8B8B9E;
  margin-bottom: 18px;
  min-height: 34px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 9px 0;
  border-top: 1px solid #E7E7F1;
}

.plan-features li:first-child {
  border-top: none;
}

.plan-features li .feature-label {
  color: #123456;
}

.plan-features li .feature-value {
  color: #123456;
  font-weight: 600;
  text-align: right;
}

.plan-features.checklist li {
  justify-content: flex-start;
  gap: 10px;
  border-top: none;
  padding: 6px 0;
}

.plan-features.checklist li i {
  color: #2789CB;
  font-size: 13px;
}

.plan-features.checklist li span {
  color: #123456;
}

.btn-qv-primary {
  background-color: #2789CB;
  border-color: #2789CB;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 8px;
}

.btn-qv-primary:hover {
  background-color: #1F6FA8;
  border-color: #1F6FA8;
  color: #fff;
}

.btn-qv-disabled {
  background-color: #F1F1F6;
  border-color: #F1F1F6;
  color: #8B8B9E;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: default;
}

.plan-view-rates {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #2789CB;
  text-decoration: none;
  margin-top: 10px;
  font-weight: 500;
}

.plan-view-rates:hover {
  color: #1F6FA8;
  text-decoration: underline;
}

.plan-unit-note {
  font-size: 13px;
  color: #8B8B9E;
  margin-bottom: 18px;
}

.collapse-panel {
  padding: 5px 5px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin: 4px 8px 8px 8px;
}

.default-box {
  display: flex;
  gap: 5px;
  align-items: center;
  /* justify-content: space-between; */
}

.history-list li {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}

.history-list li:last-child {
  border-bottom: none;
}

.history-value {
  font-weight: 600;
}

.history-meta {
  color: #888;
  font-size: 12px;
}

.default-panel .d-flex {
  height: 34px;
}

.default-panel .form-control {
  flex: 1;
  font-size: 12px;
  border-radius: 6px;
}

.default-panel .btn-icon {
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid transparent;
}

.default-panel .btn-icon.btn-save {
  background-color: #258ad3;
  color: #fff;
}

.default-panel .btn-icon.btn-save i {
  color: #fff;
  font-size: 12px;
}

.default-panel .btn-icon.btn-close-panel {
  background-color: #f1f3f5;
  border-color: #dcdfe3;
  color: #495057;
}

.default-panel .btn-icon.btn-close-panel i {
  font-size: 12px;
  color: #495057;
}

.default-panel .btn-icon.btn-close-panel:hover {
  background-color: #e2e5e9;
}

/* Remove dark overlay/shadow behind ALL Bootstrap modals */
.modal-backdrop {
  display: none !important;
}


/* ---- Modal look (no backdrop) ---- */
#filterModal .modal-content {
  border-radius: 14px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

#filterModal .modal-header {
  border-bottom: none;
  padding: 1.5rem 1.5rem 0 1.5rem;
  align-items: flex-start;
}

#filterModal .modal-title {
  font-weight: 700;
  font-size: 1.4rem;
  color: #1b1f27;
}

#filterModal .modal-subtitle {
  color: #7a8291;
  font-size: 0.92rem;
  margin-top: 4px;
}

#filterModal .btn-close {
  font-size: 0.8rem;
  margin-top: 4px;
}

#filterModal .modal-body {
  padding: 1.25rem 1.5rem 0.5rem 1.5rem;
}

#filterModal .modal-footer {
  border-top: none;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.filter-table-head {
  display: grid;
  grid-template-columns: 46px 1fr 1fr 1fr 34px;
  gap: 10px;
  padding: 0 4px 8px 4px;
  color: #8a919e;
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px solid #eceef1;
}

.filter-row {
  display: grid;
  grid-template-columns: 46px 1fr 1fr 1fr 34px;
  gap: 10px;
  align-items: center;
  padding: 10px 4px;
}

.filter-row .row-index {
  color: #6c7280;
  font-size: 0.9rem;
}

.filter-row .form-select,
.filter-row .form-control {
  font-size: 0.9rem;
  border-radius: 8px;
  border-color: #dfe2e7;
}

.filter-row .btn-remove-row {
  background: #fff;
  border: 1px solid #F6C6CA;

  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 9px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-row .btn-remove-row i {
  color: #E23744;
}

.filter-row .btn-remove-row:hover {
  background: #FDEDEE;
}

div#filterRowsContainer {
  height: auto;
  max-height: 200px;
  overflow: auto;
}

/* Upload documents page */
body[data-page="uploaddocuments"] {
  --qf-primary: #2790dc;
  --qf-primary-dark: #123456;
  --qf-primary-light: #eaf5fc;
  --qf-primary-border: #bfe0f5;
  --qf-success: #16a34a;
  --qf-success-bg: #ecfdf3;
  --qf-danger: #dc3545;
  --qf-danger-bg: #fdf2f2;
  --qf-text-muted: #6b7280;
}

body[data-page="uploaddocuments"] .selected-files-card {
  border: 1px solid var(--qf-primary-border);
  border-radius: 16px;
  background: #fff;
  padding: 18px 20px 20px;
  box-shadow: 0 2px 10px rgba(18, 52, 86, 0.05);
}

body[data-page="uploaddocuments"] .selected-files-card .count-badge,
body[data-page="uploaddocuments"] .data-files-section .count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 20px;
  background: var(--qf-primary-light);
  color: var(--qf-primary);
  font-size: 12px;
  font-weight: 600;
}

body[data-page="uploaddocuments"] .data-files-section .count-badge-data {
  background: var(--qf-success-bg);
  color: var(--qf-success);
}

body[data-page="uploaddocuments"] .btn-add-more,
body[data-page="uploaddocuments"] .btn-import,
body[data-page="uploaddocuments"] .btn-continue,
body[data-page="uploaddocuments"] .btn-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  border-radius: 8px;
  transition: all .15s ease;
}

body[data-page="uploaddocuments"] .btn-add-more {
  border: 1px solid var(--qf-primary-border);
  background: #fff;
  color: var(--qf-primary);
  font-size: 13px;
  padding: 7px 14px;
}

body[data-page="uploaddocuments"] .btn-add-more:hover {
  background: var(--qf-primary-light);
  border-color: var(--qf-primary);
}

body[data-page="uploaddocuments"] .file-list,
body[data-page="uploaddocuments"] .data-file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 305px;
  overflow-y: auto;
  background: #efefef;
  padding: 5px 10px;
  border-radius: 10px;
}

body[data-page="uploaddocuments"] .file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #ececf5;
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s ease;
}

body[data-page="uploaddocuments"] .file-item.is-error {
  border-color: #f3c1c1;
  background: var(--qf-danger-bg);
}

body[data-page="uploaddocuments"] .file-item.is-processing {
  border-color: var(--qf-primary-border);
  background: var(--qf-primary-light);
}

body[data-page="uploaddocuments"] .file-item-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #f4f4fa;
}

body[data-page="uploaddocuments"] .ftype-csv {
  color: #16a34a;
  background: #eafaf0;
}

body[data-page="uploaddocuments"] .ftype-xlsx {
  color: #15803d;
  background: #eafaf0;
}

body[data-page="uploaddocuments"] .ftype-json {
  color: #d97706;
  background: #fef6e7;
}

body[data-page="uploaddocuments"] .ftype-xml {
  color: #2563eb;
  background: #eaf0fe;
}

body[data-page="uploaddocuments"] .ftype-pdf {
  color: #dc2626;
  background: #fdeaea;
}

body[data-page="uploaddocuments"] .ftype-doc {
  color: var(--qf-primary-dark);
  background: var(--qf-primary-light);
}

body[data-page="uploaddocuments"] .ftype-generic {
  color: #6b7280;
  background: #f2f2f5;
}

body[data-page="uploaddocuments"] .file-item-info,
body[data-page="uploaddocuments"] .data-file-info {
  flex: 1 1 auto;
  min-width: 0;
}

body[data-page="uploaddocuments"] .file-item-name,
body[data-page="uploaddocuments"] .data-file-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--qf-primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="uploaddocuments"] .file-item-meta,
body[data-page="uploaddocuments"] .data-file-meta {
  font-size: 12px;
  color: var(--qf-text-muted);
  margin-top: 2px;
}

body[data-page="uploaddocuments"] .file-item-meta.text-danger {
  color: var(--qf-danger) !important;
}

body[data-page="uploaddocuments"] .tag-data {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--qf-success);
  background: var(--qf-success-bg);
  border-radius: 20px;
  padding: 1px 8px;
  text-transform: uppercase;
}

body[data-page="uploaddocuments"] .file-item-status {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

body[data-page="uploaddocuments"] .file-item-status.status-processing {
  color: var(--qf-primary);
}

body[data-page="uploaddocuments"] .file-item-status.status-error {
  color: var(--qf-danger);
}

body[data-page="uploaddocuments"] .file-item-status.status-ready {
  color: var(--qf-success);
}

body[data-page="uploaddocuments"] .file-item-remove {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #9ca3af;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}

body[data-page="uploaddocuments"] .file-item-remove:hover {
  background: #f3f0ff;
  color: var(--qf-primary);
}

body[data-page="uploaddocuments"] .spin {
  display: inline-block;
  animation: qf-spin 0.8s linear infinite;
}

@keyframes qf-spin {
  to {
    transform: rotate(360deg);
  }
}

body[data-page="uploaddocuments"] .data-files-section {
  border: 1px dashed var(--qf-primary-border);
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 18px 8px;
}

body[data-page="uploaddocuments"] .data-files-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--qf-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

body[data-page="uploaddocuments"] .data-files-icon .fa-solid,
body[data-page="uploaddocuments"] .btn-import .fa-solid {
  color: #fff;
}

body[data-page="uploaddocuments"] .data-file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e6e2fb;
}

body[data-page="uploaddocuments"] .btn-import {
  border: none;
  background: var(--qf-primary);
  color: #fff;
  font-size: 12.5px;
  padding: 7px 16px;
}

body[data-page="uploaddocuments"] .btn-import:hover,
body[data-page="uploaddocuments"] .btn-continue:hover:not(:disabled) {
  background: #1d76b8;
}

body[data-page="uploaddocuments"] .btn-import:disabled {
  opacity: .7;
  cursor: default;
}

body[data-page="uploaddocuments"] .selection-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fdf3e3;
  border: 1px solid #f3d9a3;
  color: #7a5b12;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  margin-top: 14px;
}

body[data-page="uploaddocuments"] .selection-warning i {
  margin-top: 2px;
  color: #b8860b;
}

body[data-page="uploaddocuments"] .selection-warning strong {
  color: #7a5b12;
}

body[data-page="uploaddocuments"] .selection-warning p {
  color: #8a6d2f;
}

body[data-page="uploaddocuments"] .btn-continue {
  border: none;
  background: var(--qf-primary);
  color: #fff;
  font-size: 13.5px;
  padding: 9px 22px;
}

body[data-page="uploaddocuments"] .btn-continue:disabled {
  background: #b9c3cc;
  cursor: not-allowed;
}

body[data-page="uploaddocuments"] #importSelectedBtn {
  padding: 9px 22px;
  font-size: 13.5px;
}

body[data-page="uploaddocuments"] .page-heading-block h4 {
  color: var(--qf-primary-dark);
}

body[data-page="uploaddocuments"] .wizard-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-page="uploaddocuments"] .wizard-step-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--qf-text-muted);
}

body[data-page="uploaddocuments"] .btn-stepper {
  border: 1px solid #dfe3e8;
  background: #fff;
  color: var(--qf-primary-dark);
  font-size: 13px;
  padding: 6px 14px;
}

body[data-page="uploaddocuments"] .btn-stepper:hover {
  background: #f4f6f8;
}

body[data-page="uploaddocuments"] .btn-stepper-primary {
  border: none;
  background: var(--qf-primary);
  color: #fff;
}

body[data-page="uploaddocuments"] .btn-stepper-primary:hover {
  background: #1d76b8;
}

/* Merged file list: checkbox + data-file indicator */
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-item-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #2790dc;
}

.file-item-checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.data-file-flag {
  width: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #1aa260;
}

.data-file-flag.is-placeholder {
  visibility: hidden;
}

/* Supported file types: single row at the end of the page */
.format-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Data file / Not a data file tags */
.badge-eligible {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: #e3f6ea;
  color: #1f9d55;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-ineligible {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #71717a;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}


.imported-files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 216px;
  /* ~4 rows (44px row + 8px gap) visible, rest scrolls */
  overflow-y: auto;
  padding-right: 4px;
}

.imported-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #e5eef5;
  border-radius: 8px;
  background: #f9fcfe;
}

.imported-file-row i {
  color: #2790dc;
  font-size: 15px;
  flex-shrink: 0;
}

.imported-file-name {
  font-size: 13px;
  font-weight: 600;
  color: #1c2b36;
}

.imported-file-meta {
  font-size: 12px;
  color: #71717a;
}

/* cancellation-state additions */
 /* --- cancellation-state additions --- */
        .stamp-success{ border-color:#17B978; }
        .stamp-success::after{ background:#E1F5EC; }
        .stamp-success i{ color:#17B978; }

        .text-success-accent{ color:#17B978; font-weight:700; }

        .cancel-ticket{ padding:26px 30px; }

        .cancel-info{
            display:flex; gap:14px; align-items:flex-start;
            background:#EAF7F0; border-radius:12px; padding:18px 20px;
        }
        .cancel-icon{
            width:38px; height:38px; border-radius:9px; flex-shrink:0;
            background:#FFFFFF; border:1px solid #BFE8D3; color:#17B978;
            display:flex; align-items:center; justify-content:center; font-size:15px;
        }
        .cancel-label{ font-size:0.85rem; color:#5D7387; margin-bottom:2px; }
        .cancel-date{ font-weight:700; font-size:1.05rem; color:#17B978; }
        .cancel-note{ font-size:0.82rem; color:#5D7387; margin-top:2px; }

        .cancel-divider{ border:none; border-top:1px solid #DCE6EE; margin:20px 0; }

        .downgrade-note{ text-align:center; font-size:0.92rem; color:#123456; margin:0; }
        .downgrade-note strong{ font-weight:700; }

        .action-row.single{ justify-content:center; }
        .btn-dashboard-primary{ background:#2487CE; color:#fff; border:none;
            padding:14px 20px; border-radius:12px; font-weight:600; font-size:0.95rem;
            display:flex; align-items:center; justify-content:center; gap:10px;
            cursor:pointer; transition: background .15s ease, transform .15s ease;
        }
        .btn-dashboard-primary:hover{ background:#1B6BA3; transform:translateY(-1px); }