/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• VARIABLES â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
:root {
  --tb-green: #1a7a5e;
  --tb-green-mid: #20926e;
  --tb-green-light: #e8f5f1;
  --tb-green-bg: #f0faf6;
  --tb-orange: #f59c2a;
  --tb-red: #e05c3a;
  --tb-blue: #3b82f6;
  --tb-text: #111827;
  --tb-muted: #6b7280;
  --tb-muted-light: #9ca3af;
  --tb-border: #e5e7eb;
  --tb-border-light: #f3f4f6;
  --tb-row-odd: #ffffff;
  --tb-row-even: #f9fafb;
  --tb-bg: #f4f6f8;
  --tb-white: #ffffff;
  --tb-card-bg: #ffffff;
  --tb-font: #151b28;
  --tb-font-family: "DM Sans", sans-serif;
  --border-color: #dee3e9;
  --icon-rail-w: 0;
  --filter-w: 280px;
  --nav-h: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--tb-text);
  background: var(--tb-bg);
  overflow-x: hidden;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• PAGE BODY WRAPPER â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.page-body {
  margin-left: calc(var(--icon-rail-w) + var(--filter-w));
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  padding: 22px 24px 32px;
  transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-body.sidebar-collapsed {
  margin-left: var(--icon-rail-w);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #c7cdd6 #f3f4f6;
}
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 8px;
}
*::-webkit-scrollbar-thumb {
  background: #c7cdd6;
  border-radius: 8px;
}
*::-webkit-scrollbar-thumb:hover {
  background: #b8c0cb;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• TOP NAV â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  height: var(--nav-h);
  background: var(--tb-white);
  border-bottom: 1px solid var(--tb-border);
  display: flex;
  align-items: center;
  padding: 0 16px 0 10px;
  gap: 2px;
}
.nav-logo {
  display: flex;
  align-items: center;
  width: 29px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img {
  height: 26px;
  width: auto;
}
.nav-divider {
  width: 1px;
  height: 26px;
  background: var(--tb-border);
  margin: 0 6px;
  flex-shrink: 0;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 1;
  overflow: hidden;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 4px;
  transition: background 0.15s;
}
.nav-hamburger:hover {
  background: var(--tb-bg);
}
.nav-hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--tb-text);
  transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--tb-white);
  border-right: 1px solid var(--tb-border);
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.14);
  z-index: 1040;
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-h));
  padding: 8px 0 16px;
  transform: translateX(calc(-100% - 10px));
  opacity: 1;
  pointer-events: none;
  transition: transform 0.24s ease;
}
.mobile-nav-drawer.open {
  transform: translateX(0);
  pointer-events: all;
}

.mob-nav-group {
  border-bottom: 1px solid var(--tb-border-light);
}
.mob-nav-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: none;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--tb-text);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.mob-nav-trigger:hover {
  background: var(--tb-bg);
}
.mob-nav-trigger.active-page {
  color: var(--tb-green);
}
.mob-nav-trigger .bi-chevron-down {
  font-size: 11px;
  color: var(--tb-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.mob-nav-trigger.expanded .bi-chevron-down {
  transform: rotate(180deg);
}

.mob-nav-sub {
  display: none;
  padding: 0 0 8px;
  background: #fafafa;
}
.mob-nav-sub.open {
  display: block;
}

.mob-nav-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--tb-muted-light);
  padding: 10px 20px 4px 36px;
}
.mob-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px 9px 36px;
  font-size: 13.5px;
  color: var(--tb-text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s;
}
.mob-nav-item:hover {
  background: var(--tb-green-light);
  color: var(--tb-green);
}
.mob-nav-item:hover .bi {
  color: var(--tb-green);
}
.mob-nav-item .bi {
  font-size: 14px;
  color: var(--tb-muted);
  width: 18px;
  flex-shrink: 0;
}
.mob-nav-item .dd-badge {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  background: var(--tb-green-light);
  color: var(--tb-green);
}
.mob-nav-sep {
  height: 1px;
  background: var(--tb-border-light);
  margin: 4px 16px;
}

.mob-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tb-text);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid var(--tb-border-light);
  transition: background 0.12s;
}
.mob-nav-link:hover {
  background: var(--tb-bg);
  color: var(--tb-green);
}

.nav-dd {
  position: relative;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--tb-muted);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
  transition:
    color 0.15s,
    background 0.15s;
  font-family: "DM Sans", sans-serif;
}
.nav-item:hover {
  color: var(--tb-text);
  background: var(--tb-bg);
}
.nav-item.active {
  color: var(--tb-green);
  font-weight: 700;
}
.nav-item .bi-chevron-down {
  font-size: 10px;
  transition: transform 0.2s;
}
.nav-dd:hover .nav-item .bi-chevron-down {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: fixed;
  min-width: 220px;
  background: var(--tb-white);
  border: 1px solid var(--tb-border);
  border-radius: 10px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.11);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 0.18s,
    transform 0.18s;
  z-index: 2000;
}
.nav-dd:hover .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-dd-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--tb-muted-light);
  padding: 6px 10px 3px;
}
.nav-dd-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--tb-text);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s;
}
.nav-dd-item:hover {
  background: var(--tb-bg);
  color: var(--tb-green);
}
.nav-dd-item:hover .bi {
  color: var(--tb-green);
}
.nav-dd-item .bi {
  font-size: 13px;
  color: var(--tb-muted);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.nav-dd-item .dd-badge {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  background: var(--tb-green-light);
  color: var(--tb-green);
}
.nav-dd-sep {
  height: 1px;
  background: var(--tb-border-light);
  margin: 4px 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
}
.nav-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--tb-muted);
  cursor: pointer;
  font-size: 20px;
  position: relative;
  transition: all 0.15s;
}
.nav-icon-btn:hover {
  background: var(--tb-bg);
  color: var(--tb-text);
}
.nav-icon-btn.open {
  background: var(--tb-bg);
  color: var(--tb-text);
}
.nav-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tb-red);
  border: 2px solid var(--tb-white);
}
.nav-profile-trigger {
  border: none;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  cursor: pointer;
}
.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #cfd6df;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--tb-green);
}
.nav-profile-chevron {
  font-size: 11px;
  color: var(--tb-muted);
  transition: transform 0.18s;
}
.nav-profile-trigger.open .nav-profile-chevron {
  transform: rotate(180deg);
}

.profile-dd {
  position: fixed;
  top: calc(var(--nav-h) + 8px);
  right: 10px;
  width: 260px;
  background: var(--tb-white);
  border: 1px solid var(--tb-border);
  border-radius: 10px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.11);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-7px) scale(0.99);
  transition:
    opacity 0.16s,
    transform 0.16s;
  z-index: 2100;
}
.profile-dd.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 8px;
}
.profile-head-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--tb-border);
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
  flex-shrink: 0;
}
.profile-name {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}
.profile-email {
  font-size: 11.5px;
  color: #6b7280;
  margin-top: 1px;
}
.profile-view-wrap {
  padding: 0 10px 8px;
}
.profile-view-btn {
  width: 100%;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--tb-border);
  background: #fff;
  color: var(--tb-green);
  font-size: 12.5px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition:
    background 0.12s,
    border-color 0.12s;
}
.profile-view-btn:hover {
  background: var(--tb-bg);
  border-color: #d7dde5;
}
.profile-group-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--tb-muted-light);
  padding: 6px 10px 3px;
}
.profile-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  text-decoration: none;
  color: var(--tb-text);
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.12s;
}
.profile-item .bi {
  font-size: 13px;
  color: var(--tb-muted);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.profile-item:hover {
  background: var(--tb-bg);
  color: var(--tb-green);
}
.profile-item:hover .bi {
  color: var(--tb-green);
}
.profile-sep {
  height: 1px;
  background: var(--tb-border-light);
  margin: 4px 0;
}

.bell-dd {
  position: fixed;
  top: calc(var(--nav-h) + 8px);
  right: 68px;
  width: 280px;
  background: var(--tb-white);
  border: 1px solid var(--tb-border);
  border-radius: 10px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.11);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-7px) scale(0.99);
  transition:
    opacity 0.16s,
    transform 0.16s;
  z-index: 2100;
}
.bell-dd.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
.bell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px 7px;
}
.bell-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tb-text);
}
.bell-mark-all {
  border: none;
  background: none;
  color: var(--tb-green);
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  padding: 0;
}
.bell-tabs {
  display: flex;
  gap: 4px;
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--tb-border-light);
}
.bell-tab {
  border: 1px solid var(--tb-border);
  background: var(--tb-white);
  color: var(--tb-muted);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition: all 0.12s;
}
.bell-tab:hover {
  border-color: var(--tb-green);
  color: var(--tb-green);
}
.bell-tab.active {
  background: var(--tb-green-light);
  border-color: var(--tb-green-light);
  color: var(--tb-green);
}
.bell-list {
  padding: 4px 0 2px;
  max-height: 320px;
  overflow-y: auto;
}
.bell-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--tb-text);
  transition: background 0.12s;
}
.bell-item:hover {
  background: var(--tb-bg);
}
.bell-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tb-green);
  margin-top: 6px;
  flex-shrink: 0;
}
.bell-item.team .bell-dot {
  background: #6366f1;
}
.bell-item.tender .bell-dot {
  background: var(--tb-orange);
}
.bell-item-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--tb-text);
}
.bell-item-meta {
  font-size: 11px;
  color: var(--tb-muted);
  margin-top: 2px;
}
.bell-empty {
  padding: 20px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--tb-muted);
  display: none;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• ICON RAIL â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.icon-rail {
  position: fixed;
  left: 0;
  top: var(--nav-h);
  bottom: 0;
  width: var(--icon-rail-w);
  background: var(--tb-white);
  border-right: 1px solid var(--tb-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 0;
  gap: 1px;
  z-index: 950;
  overflow: hidden;
  transition:
    width 0.26s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.26s;
}
.icon-rail:hover {
  width: 200px;
  box-shadow: 4px 0 22px rgba(0, 0, 0, 0.09);
}
.icon-rail-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 0 14px;
  height: 38px;
  border: none;
  background: none;
  color: var(--tb-muted-light);
  font-size: 17px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition:
    background 0.15s,
    color 0.15s;
  font-family: "DM Sans", sans-serif;
}
.icon-rail-btn:hover {
  background: var(--tb-bg);
  color: var(--tb-text);
}
.icon-rail-btn.active {
  background: var(--tb-green-light);
  color: var(--tb-green);
}
.rail-label {
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.12s 0.06s;
  flex-shrink: 0;
}
.icon-rail:hover .rail-label {
  opacity: 1;
}
.icon-rail-sep {
  width: 100%;
  height: 1px;
  background: var(--tb-border);
  margin: 4px 0;
}
.rail-folder-list {
  width: 100%;
  padding-top: 2px;
}
.rail-folder-dd {
  position: relative;
  width: 100%;
}
.rail-folder-item {
  width: 100%;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 14px;
  color: var(--tb-muted-light);
  transition:
    background 0.15s,
    color 0.15s;
  font-family: "DM Sans", sans-serif;
}
.rail-folder-item:hover {
  background: var(--tb-bg);
  color: var(--tb-text);
}
.rail-folder-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.rail-folder-name {
  font-size: 12.5px;
  font-weight: 500;
  flex: 1;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.12s 0.06s;
}
.rail-more-btn {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--tb-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.12s,
    background 0.12s,
    color 0.12s;
  flex-shrink: 0;
}
.rail-more-btn:hover {
  background: var(--tb-white);
  color: var(--tb-text);
}
.icon-rail:hover .rail-folder-name,
.icon-rail:hover .rail-more-btn {
  opacity: 1;
}
.rail-folder-menu {
  position: absolute;
  right: 6px;
  top: calc(100% + 4px);
  min-width: 162px;
  background: var(--tb-white);
  border: 1px solid var(--tb-border);
  border-radius: 9px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.11);
  padding: 5px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.97);
  transition:
    opacity 0.15s,
    transform 0.15s;
  z-index: 700;
}
.rail-folder-dd.open .rail-folder-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
.rail-folder-dd.open-fixed .rail-folder-menu {
  transform: translateY(0) scale(1);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• FILTER SIDEBAR â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.filter-sidebar {
  position: fixed;
  left: var(--icon-rail-w);
  top: var(--nav-h);
  bottom: 0;
  width: var(--filter-w);
  background: var(--tb-white);
  border-right: 1px solid var(--tb-border);
  display: flex;
  flex-direction: column;
  z-index: 800;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-sidebar.collapsed {
  transform: translateX(calc(-1 * var(--filter-w)));
}
.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--tb-border-light);
  flex-shrink: 0;
}
.filter-title {
  font-size: 14px;
  font-weight: 600;
}
.filter-hbtn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--tb-muted);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
}
.filter-hbtn:hover {
  background: var(--tb-bg);
  color: var(--tb-text);
}
.filter-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 16px;
}
.filter-body::-webkit-scrollbar {
  width: 6px;
}
.filter-body::-webkit-scrollbar-thumb {
  background: #c7cdd6;
  border-radius: 8px;
}
.filter-section {
  border-bottom: 1px solid var(--tb-border-light);
}
.filter-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  cursor: pointer;
  user-select: none;
}
.filter-section-head:hover {
  background: var(--tb-bg);
}
.filter-section-title {
  font-size: 13px;
  font-weight: 600;
}
.filter-section-body {
  padding: 0 16px 12px;
}
.filter-section-body.collapsed {
  display: none;
}
.filter-label {
  font-size: 11.5px;
  color: var(--tb-muted);
  margin-bottom: 5px;
  font-weight: 500;
}
.tb-input-sm {
  width: 100%;
  padding: 6px 9px;
  border: 1px solid var(--tb-border);
  border-radius: 6px;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: var(--tb-text);
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.tb-input-sm::placeholder {
  color: #b0b7c3;
}
.tb-input-sm:focus {
  border-color: var(--tb-green-mid);
  box-shadow: 0 0 0 2.5px rgba(32, 146, 110, 0.1);
}
.tb-select-sm {
  width: 100%;
  padding: 6px 22px 6px 9px;
  border: 1px solid var(--tb-border);
  border-radius: 6px;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  background: var(--tb-white);
  color: var(--tb-text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  outline: none;
  cursor: pointer;
}
.range-row {
  display: flex;
  gap: 5px;
  align-items: center;
}
.range-row span {
  font-size: 10px;
  color: var(--tb-muted-light);
  flex-shrink: 0;
}
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 6px;
}
.tb-radio-label,
.tb-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
  padding: 3px 0;
}
.tb-radio-label input,
.tb-check-label input {
  display: none;
}
.tb-radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--tb-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.tb-radio-label input:checked ~ .tb-radio-dot {
  border-color: var(--tb-green);
}
.tb-radio-label input:checked ~ .tb-radio-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tb-green);
}
.tb-cbox {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 2px solid var(--tb-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.tb-check-label input:checked ~ .tb-cbox {
  background: var(--tb-green);
  border-color: var(--tb-green);
}
.tb-check-label input:checked ~ .tb-cbox::after {
  content: "";
  width: 3px;
  height: 6px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.date-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 5px;
}
.date-pill {
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 500;
  border: 1px solid var(--tb-border);
  color: var(--tb-muted);
  cursor: pointer;
  background: var(--tb-white);
  transition: all 0.15s;
}
.date-pill:hover {
  border-color: var(--tb-green);
  color: var(--tb-green);
}
.date-pill.active {
  background: var(--tb-green);
  color: white;
  border-color: var(--tb-green);
}
.loc-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
}
.loc-children {
  padding-left: 16px;
}
.cpv-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--tb-green-bg);
  color: var(--tb-green);
  font-size: 11px;
  font-weight: 500;
  margin: 2px 0;
}
.cpv-tag .bi {
  font-size: 10px;
  cursor: pointer;
}
.filter-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--tb-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.btn-apply {
  width: 100%;
  padding: 9px;
  background: var(--tb-green);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-apply:hover {
  background: var(--tb-green-mid);
}
.btn-save-filter {
  width: 100%;
  padding: 7px;
  background: none;
  color: var(--tb-muted);
  border: 1px solid var(--tb-border);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-save-filter:hover {
  border-color: var(--tb-green);
  color: var(--tb-green);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• MAIN CONTENT â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.main-content {
  margin-left: calc(var(--icon-rail-w) + var(--filter-w));
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  padding: 22px 24px 32px;
  transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
/* sidebar-collapsed: grid full width, sidebar off-screen */
.main-content.sidebar-collapsed {
  margin-left: var(--icon-rail-w);
}

.page-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 6px;
}
.trouble-wrap {
  text-align: center;
  margin-bottom: 16px;
}
.trouble-text {
  font-size: 13px;
  color: var(--tb-muted);
  margin-bottom: 10px;
}
.trouble-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-meeting {
  padding: 7px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--tb-green);
  background: white;
  color: var(--tb-green);
  font-size: 13px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-meeting:hover {
  background: var(--tb-green-light);
}
.or-text {
  font-size: 12px;
  color: var(--tb-muted-light);
}
.btn-ticket {
  padding: 7px 18px;
  border-radius: 8px;
  border: 1.5px solid #10b981;
  background: #f0fdf9;
  color: #047857;
  font-size: 13px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-ticket:hover {
  background: #d1fae5;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-icon-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--tb-border);
  background: var(--tb-white);
  color: var(--tb-muted);
  cursor: pointer;
  font-size: 15px;
  transition: all 0.15s;
}
.btn-icon-sm:hover {
  border-color: var(--tb-green);
  color: var(--tb-green);
}
.saved-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--tb-border);
  background: var(--tb-white);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.saved-badge:hover {
  border-color: var(--tb-green);
  color: var(--tb-green);
}
.saved-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tb-green);
  color: white;
  font-size: 10px;
  font-weight: 700;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--tb-border);
  border-radius: 7px;
  background: var(--tb-white);
  max-width: 220px;
  transition: all 0.15s;
}
.search-box:focus-within {
  border-color: var(--tb-green);
  box-shadow: 0 0 0 2.5px rgba(32, 146, 110, 0.1);
}
.search-box input {
  border: none;
  outline: none;
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
  width: 100%;
  background: transparent;
}
.search-box input::placeholder {
  color: #b0b7c3;
}
.sort-select {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--tb-border);
  background: var(--tb-white);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--tb-muted);
  white-space: nowrap;
}
.toggle {
  width: 34px;
  height: 19px;
  border-radius: 10px;
  background: var(--tb-border);
  position: relative;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s;
}
.toggle.on {
  background: var(--tb-green);
}
.toggle.on::after {
  transform: translateX(15px);
}
.stats-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}
#filterLabels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
#filterLabels > span {
  white-space: nowrap;
  flex-shrink: 0;
}
#filter-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.tender-count {
  font-size: 12.5px;
  color: var(--tb-muted);
  font-weight: 500;
}
.tender-count strong {
  color: var(--tb-text);
}
.filter-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.filter-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--tb-white);
  border: 1px solid var(--tb-border);
  font-size: 11.5px;
  color: var(--tb-muted);
  max-width: 100%;
  word-break: break-word;
}
.filter-tag .bi-x {
  cursor: pointer;
}
.filter-tag .bi-x:hover {
  color: var(--tb-red);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• TABLE â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.table-card {
  background: var(--tb-white);
  border: 1px solid var(--tb-border);
  border-radius: 12px;
  overflow: hidden;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  display: none !important;
}
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
  display: none !important;
}

table#tenderTable,
table#listTable,
table.custom-table {
  width: 100% !important;
  border-collapse: collapse;
  font-family: "DM Sans", sans-serif;
  table-layout: auto;
}

table#tenderTable thead tr,
table#listTable thead tr,
table.custom-table thead tr {
  background: #f1f5f9;
  border-bottom: 2px solid var(--tb-border);
}

table#tenderTable thead th,
table#listTable thead th,
table.custom-table thead th {
  padding: 11px 13px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: var(--tb-muted);
  white-space: nowrap;
  border: none !important;
  cursor: pointer;
  user-select: none;
  align-content: center;
}
table#tenderTable thead th:hover,
table#listTable thead th:hover,
table.custom-table thead th:hover {
  color: var(--tb-text);
}
/* ── DataTables native sort icons ─────────────────────────────────────────
   Override DataTables default ▲/▼ with Bootstrap Icons caret-up/down-fill.
   ::before = ▴ (up / asc), ::after = ▾ (down / desc). Both dimmed by default;
   active direction highlighted with theme colour at full opacity.
──────────────────────────────────────────────────────────────────────────── */
table#tenderTable thead th.sorting::before,
table#tenderTable thead th.sorting_asc::before,
table#tenderTable thead th.sorting_desc::before,
table#tenderTable thead th.sorting::after,
table#tenderTable thead th.sorting_asc::after,
table#tenderTable thead th.sorting_desc::after,
table#listTable thead th.sorting::before,
table#listTable thead th.sorting_asc::before,
table#listTable thead th.sorting_desc::before,
table#listTable thead th.sorting::after,
table#listTable thead th.sorting_asc::after,
table#listTable thead th.sorting_desc::after {
  display: block !important;
  font-family: "bootstrap-icons" !important;
  font-style: normal;
  font-weight: 400 !important;
  font-variant: normal;
  -webkit-font-smoothing: antialiased;
  font-size: 11px;
  opacity: 0.35;
}
/* ::before = caret-up-fill (bi \f235) */
table#tenderTable thead th.sorting::before,
table#tenderTable thead th.sorting_asc::before,
table#tenderTable thead th.sorting_desc::before,
table#listTable thead th.sorting::before,
table#listTable thead th.sorting_asc::before,
table#listTable thead th.sorting_desc::before {
  content: "\f235";
}
/* ::after = caret-down-fill (bi \f229) */
table#tenderTable thead th.sorting::after,
table#tenderTable thead th.sorting_asc::after,
table#tenderTable thead th.sorting_desc::after,
table#listTable thead th.sorting::after,
table#listTable thead th.sorting_asc::after,
table#listTable thead th.sorting_desc::after {
  content: "\f229";
}
/* Active sort direction: highlight with theme colour, full opacity */
table#tenderTable thead th.sorting_asc::before,
table#listTable thead th.sorting_asc::before {
  opacity: 1;
  color: var(--tb-primary, #1a7a5e);
}
table#tenderTable thead th.sorting_desc::after,
table#listTable thead th.sorting_desc::after {
  opacity: 1;
  color: var(--tb-primary, #1a7a5e);
}
/* Dim the inactive arrow on active sort columns */
table#tenderTable thead th.sorting_asc::after,
table#listTable thead th.sorting_asc::after,
table#tenderTable thead th.sorting_desc::before,
table#listTable thead th.sorting_desc::before {
  opacity: 0.2;
}

table#tenderTable tbody tr:nth-child(odd) > td,
table#listTable tbody tr:nth-child(odd) > td,
table.custom-table tbody tr:nth-child(odd) > td {
  background: var(--tb-row-odd) !important;
}
table#tenderTable tbody tr:nth-child(even) > td,
table#listTable tbody tr:nth-child(even) > td,
table.custom-table tbody tr:nth-child(even) > td {
  background: var(--tb-row-even) !important;
}
table#tenderTable tbody tr:hover > td,
table#listTable tbody tr:hover > td,
table.custom-table tbody tr:hover > td {
  background: #edf7f3 !important;
}
table#listTable tbody tr.row-color-assigned > td {
  background: rgba(44, 195, 216, 0.16) !important;
}
table#listTable tbody tr.row-color-converted > td {
  background: rgba(0, 255, 0, 0.16) !important;
}
table#tenderTable tbody tr,
table#listTable tbody tr,
table.custom-table tbody tr {
  transition: background 0.1s;
}
table#tenderTable tbody td,
table#listTable tbody td,
table.custom-table tbody td {
  padding: 13px 13px;
  vertical-align: top;
  border: none !important;
  border-bottom: 1px solid var(--tb-border-light) !important;
}
table#tenderTable tbody tr:last-child > td,
table#listTable tbody tr:last-child > td,
table.custom-table tbody tr:last-child > td {
  border-bottom: none !important;
}

table#tenderTable th:nth-child(1),
table#tenderTable td:nth-child(1) {
  width: 38px;
}
table#tenderTable th:nth-child(2),
table#tenderTable td:nth-child(2) {
  min-width: 220px;
}
table#tenderTable th:nth-child(3),
table#tenderTable td:nth-child(3) {
  width: 80px;
}
table#tenderTable th:nth-child(4),
table#tenderTable td:nth-child(4) {
  width: 100px;
}
table#tenderTable th:nth-child(5),
table#tenderTable td:nth-child(5) {
  width: 118px;
}
table#tenderTable th:nth-child(6),
table#tenderTable td:nth-child(6) {
  width: 118px;
}
table#tenderTable th:nth-child(7),
table#tenderTable td:nth-child(7) {
  width: 100px;
}
table#tenderTable th:nth-child(8),
table#tenderTable td:nth-child(8) {
  width: 90px;
}

.tender-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.tag-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
}
.tag-tender {
  background: #fff3cd;
  color: #92400e;
}
.tag-pin {
  background: #dbeafe;
  color: #1e40af;
}
.tag-framework {
  background: #ede9fe;
  color: #6d28d9;
}
.tag-score {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  background: #f3f4f6;
  color: var(--tb-muted);
}
.score-dots {
  display: flex;
  gap: 2px;
}
.score-dot {
  width: 7px;
  height: 4px;
  border-radius: 2px;
}
.score-dot.g {
  background: var(--tb-green);
}
.score-dot.o {
  background: var(--tb-orange);
}
.score-dot.e {
  background: #e5e7eb;
}
.tag-views {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--tb-muted-light);
}
.tender-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 3px;
}
.tender-buyer {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--tb-green);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  margin-bottom: 3px;
}
.buyer-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  flex-shrink: 0;
}
.tender-comp {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--tb-muted-light);
}
.status-open {
  color: #059669;
  font-weight: 600;
  font-size: 12.5px;
}
.status-closed {
  color: #dc2626;
  font-weight: 600;
  font-size: 12.5px;
}
.status-awarded {
  color: var(--tb-orange);
  font-weight: 600;
  font-size: 12.5px;
}
.date-main {
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.date-rel {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
}
.date-rel.gr {
  color: var(--tb-green);
}
.date-rel.or {
  color: var(--tb-orange);
}
.date-rel.rd {
  color: var(--tb-red);
}
.col-val-txt {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.action-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
}
.act-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tb-border);
  background: var(--tb-white);
  color: var(--tb-muted);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}
.act-btn:hover {
  border-color: var(--tb-green);
  color: var(--tb-green);
  background: var(--tb-green-bg);
}
.dot-dd {
  position: relative;
  display: inline-block;
}
.dot-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 174px;
  background: var(--tb-white);
  border: 1px solid var(--tb-border);
  border-radius: 9px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.11);
  padding: 5px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.97);
  transition:
    opacity 0.15s,
    transform 0.15s;
  z-index: 600;
  overflow-y: auto;
}
.dot-dd.open .dot-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
.dot-dd.open-up .dot-menu {
  top: auto;
  bottom: calc(100% + 4px);
  transform: translateY(6px) scale(0.97);
}
.dot-dd.open.open-up .dot-menu {
  transform: translateY(0) scale(1);
}
.dot-dd.open-fixed .dot-menu {
  transform: translateY(0) scale(1);
}
.dot-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--tb-text);
  cursor: pointer;
  transition: background 0.1s;
}
.dot-menu-item:hover {
  background: var(--tb-bg);
}
.dot-menu-item .bi {
  font-size: 13px;
  color: var(--tb-muted);
  width: 16px;
}
.dot-menu-item.danger {
  color: var(--tb-red);
}
.dot-menu-item.danger .bi {
  color: var(--tb-red);
}
.dot-menu-sep {
  height: 1px;
  background: var(--tb-border-light);
  margin: 3px 0;
}

/* ── Permissions accordion ── */
.perm-accordion { display: flex; flex-direction: column; gap: 6px; }
.perm-section {
  border: 1px solid var(--tb-border, #e5e7eb);
  border-radius: 10px;
  overflow: hidden;
}
.perm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: var(--tb-bg, #f8f9fa);
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 13px;
  color: var(--tb-text, #1a1a2e);
  gap: 10px;
  transition: background 0.12s;
}
.perm-section-header:hover { background: #f0f1f3; }
.perm-section-header .perm-chevron {
  font-size: 12px;
  color: var(--tb-muted, #9ca3af);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.perm-section.open .perm-chevron { transform: rotate(180deg); }
.perm-section-body {
  display: none;
  background: var(--tb-white, #fff);
  border-top: 1px solid var(--tb-border, #e5e7eb);
  padding: 0 6px 6px;
}
.perm-section.open .perm-section-body { display: block; }
.perm-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 7px;
  margin-top: 4px;
}
.perm-row:hover { background: var(--tb-bg, #f8f9fa); }
.perm-row-name {
  min-width: 180px;
  max-width: 180px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tb-text, #1a1a2e);
  padding-top: 3px;
  flex-shrink: 0;
}
.perm-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  flex: 1;
}
.perm-checks .form-check {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
}
.perm-checks .form-check-input { margin: 0; cursor: pointer; }
.perm-checks .form-check-label {
  font-size: 12px;
  color: var(--tb-text, #1a1a2e);
  cursor: pointer;
  white-space: nowrap;
}
.perm-checks .form-check.all-check .form-check-label {
  font-weight: 700;
  color: var(--tb-green, #16a34a);
}
.perm-checks .form-check.all-check .form-check-input:checked { background-color: var(--tb-green, #16a34a); border-color: var(--tb-green, #16a34a); }
.perm-divider { height: 1px; background: var(--tb-border-light, #f3f4f6); margin: 2px 0; }

.save-dd {
  position: relative;
  display: inline-block;
}
.save-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  width: 244px;
  background: var(--tb-white);
  border: 1px solid var(--tb-border);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.11);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transition:
    opacity 0.15s,
    transform 0.15s;
  z-index: 650;
}
.save-dd.open .save-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
.save-dd.open-up .save-menu {
  top: auto;
  bottom: calc(100% + 4px);
  transform: translateY(6px) scale(0.98);
}
.save-dd.open.open-up .save-menu {
  transform: translateY(0) scale(1);
}
.save-dd.open-fixed .save-menu {
  transform: translateY(0) scale(1);
}
.save-head {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tb-text);
  padding: 4px 5px 7px;
  border-bottom: 1px solid var(--tb-border-light);
  margin-bottom: 4px;
}
.save-list {
  max-height: 230px;
  overflow-y: auto;
  padding-right: 2px;
}
.save-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 5px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}
.save-row:hover {
  background: var(--tb-bg);
}
.save-folder-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.save-folder-name {
  flex: 1;
  font-size: 12.5px;
  color: #374151;
  line-height: 1.2;
}
.save-check {
  width: 15px;
  height: 15px;
  border: 1px solid #9ca3af;
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  background: #fff;
  flex-shrink: 0;
}
.save-check:checked {
  background: var(--tb-green);
  border-color: var(--tb-green);
}
.save-check:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.save-footer {
  display: flex;
  gap: 6px;
  border-top: 1px solid var(--tb-border-light);
  margin-top: 6px;
  padding-top: 8px;
}
.save-btn {
  flex: 1;
  height: 30px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  border: 1px solid var(--tb-border);
  background: #f3f4f6;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.save-btn.primary {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--tb-border);
  background: #f8fafc;
  flex-wrap: wrap;
  gap: 8px;
}
.per-page-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--tb-muted);
}
.per-page-select {
  padding: 4px 22px 4px 7px;
  border-radius: 6px;
  border: 1px solid var(--tb-border);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  background: white;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  cursor: pointer;
  outline: none;
}
.pagi-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SIDE CANVAS — overlay + slide-in panel + close button + scroll area
   Shared across all pages that use a right-slide canvas (payment calendar,
   users, tickets, etc.)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Overlay (dark backdrop) */
.side-canvas-overly {
  position: fixed;
  top: 0;
  right: -400%;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1060;
  transition: right 0s 0.5s;
}
.side-canvas-overly.active-overly {
  right: 0;
  transition: right 0s;
}

/* Slide-in panel */
.tender-view-side-canvas {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(1176px, 100%);
  height: 100%;
  background: var(--tb-card-bg, #fff);
  z-index: 1070;
  transition: right 0.35s ease-in-out;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}
.tender-view-side-canvas.active-canvas {
  right: 0;
}

/* Close button (peeks out to the left of the panel) */
.close-side-canvas {
  position: absolute;
  top: 18px;
  left: -36px;
  width: 36px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tb-card-bg, #fff);
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  box-shadow: -3px 0 8px rgba(0, 0, 0, 0.1);
}
.close-side-canvas svg {
  width: 11px;
  height: 11px;
}

/* Scrollable inner area */
.side-canvas-content-area {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--tb-green, #1a7a5e) #e5e7eb;
}
.side-canvas-content-area::-webkit-scrollbar {
  width: 6px;
  background: #e5e7eb;
}
.side-canvas-content-area::-webkit-scrollbar-thumb {
  background: var(--tb-green, #1a7a5e);
  border-radius: 3px;
}

/* Lock page scroll while canvas is open */
.no-scroll-body {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SIDE CANVAS — inner layout (used by view-user-popup & similar canvases)
   ═══════════════════════════════════════════════════════════════════════════ */

.tender-details-main-container {
  width: 100%;
  height: 100%;
}
.tender-details-section {
  min-height: 100%;
}

/* ── Canvas header ── */
.supplier-details-header-area {
  padding: 20px 24px;
  border-bottom: 1px solid var(--tb-border);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.tender-details-header-area-left-part {
  flex: 1;
  min-width: 0;
}
.supplier-details-header-area .tender-title {
  font-size: 18px !important;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--tb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Section titles inside cards ── */
.side-canvas-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tb-text);
}
.side-canvas-sub-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0;
}

/* ── jQuery UI global resets (tabs + widgets) ── */
.ui-widget.ui-widget-content {
  border: 0 !important;
  background: transparent !important;
}
.ui-widget-header {
  border: 0 !important;
  background: transparent !important;
}
.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default {
  border: 0 !important;
  background: transparent !important;
  font-weight: normal;
}
.ui-tabs .ui-tabs-panel {
  padding: 0 !important;
}
.ui-helper-clearfix::before,
.ui-helper-clearfix::after {
  content: none !important;
}

/* ── Tab strip ── */
/* The <ul> — jQuery UI adds ui-widget-header on render */
.supplier-details-tab-area {
  display: flex !important;
  flex-wrap: nowrap;
  overflow-x: auto;
  list-style: none;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--tb-border) !important;
  background: transparent !important;
  scrollbar-width: none;
  gap: 0;
}
.supplier-details-tab-area::-webkit-scrollbar {
  display: none;
}

/* Each tab <li> — jQuery UI adds ui-state-default, ui-corner-top, ui-tabs-active, ui-state-active */
.supplier-details-tab-area .buyer-details-tab-item,
.supplier-details-tab-area li {
  flex-shrink: 0;
  list-style: none;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: border-color 0.15s;
}

/* The <a> inside each tab — jQuery UI adds ui-tabs-anchor */
.supplier-details-tab-area .buyer-details-tab-item a,
.supplier-details-tab-area .ui-tabs-anchor {
  display: block !important;
  padding: 11px 18px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--tb-muted) !important;
  text-decoration: none !important;
  white-space: nowrap;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  transition: color 0.15s;
  line-height: 1.4;
}

/* Hover */
.supplier-details-tab-area .buyer-details-tab-item:hover,
.supplier-details-tab-area li:hover {
  border-bottom-color: var(--tb-border) !important;
}
.supplier-details-tab-area .buyer-details-tab-item:hover a,
.supplier-details-tab-area li:hover a {
  color: var(--tb-text) !important;
}

/* Active tab — jQuery UI uses ui-state-active + ui-tabs-active on <li> */
.supplier-details-tab-area .buyer-details-tab-item.ui-state-active,
.supplier-details-tab-area .buyer-details-tab-item.ui-tabs-active,
.supplier-details-tab-area .buyer-details-tab-item.active,
.supplier-details-tab-area li.ui-state-active,
.supplier-details-tab-area li.ui-tabs-active {
  border-bottom: 2px solid var(--tb-green) !important;
  background: transparent !important;
}
.supplier-details-tab-area .buyer-details-tab-item.ui-state-active a,
.supplier-details-tab-area .buyer-details-tab-item.ui-tabs-active a,
.supplier-details-tab-area .buyer-details-tab-item.active a,
.supplier-details-tab-area li.ui-state-active a,
.supplier-details-tab-area li.ui-tabs-active a {
  color: var(--tb-green) !important;
  font-weight: 600 !important;
}

/* ── Tab pane visibility (non-jQuery UI fallback) ── */
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* ── Summary section: two-column body ── */
.buyer-summary-section {
  padding: 20px 24px;
}

.supplier-details-body-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 24px;
}
.supplier-details-body-left-content {
  min-width: 0;
}
.supplier-details-body-right-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Info cards (white bordered boxes) ── */
.tender-details-body-right-item {
  border: 1px solid var(--tb-border);
  border-radius: 10px;
  padding: 16px 18px;
  background: var(--tb-white);
  overflow-wrap: anywhere;
}
.tender-details-body-right-item .side-canvas-title {
  margin-bottom: 14px;
  display: block;
}
.tender-details-body-right-item ul {
  padding-left: 18px;
}
.tender-details-body-right-item ul li {
  margin-bottom: 10px;
  font-size: 13.5px;
}

/* ── Key–value rows inside cards ── */
.tender-details-workflow-item {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
}
.tender-details-workflow-item p {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--tb-muted);
  white-space: nowrap;
}
.tender-details-workflow-item .font-weight-md {
  font-weight: 500;
  color: var(--tb-text);
}

/* ── Table areas (payment history, login history, etc.) ── */
.supplier-details-body-table-area {
  padding: 16px;
  overflow-x: auto;
}

/* ── Payment history table inside canvas ── */
.tender-view-side-canvas .payment_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tender-view-side-canvas .payment_table thead {
  background-color: var(--tb-green);
  color: #fff;
  text-align: left;
}
.tender-view-side-canvas .payment_table th,
.tender-view-side-canvas .payment_table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--tb-border);
  vertical-align: middle;
}
.tender-view-side-canvas .payment_table tbody tr:nth-child(even) {
  background: var(--tb-row-even);
}
.tender-view-side-canvas .payment_table tbody tr:hover {
  background: var(--tb-green-bg);
}

/* ── Canvas-specific width for payment calendar user canvas ── */
#buyer-details-side-canvas {
  width: min(1000px, 100%);
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  #buyer-details-side-canvas {
    width: min(800px, 100%);
  }
  .supplier-details-body-content {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  #buyer-details-side-canvas {
    width: 100%;
  }
  .supplier-details-header-area {
    padding: 14px 16px;
  }
  .buyer-summary-section,
  .supplier-details-body-content {
    padding: 14px 16px;
  }
  .supplier-details-tab-area {
    padding: 0 16px;
  }
  .tender-details-workflow-item {
    grid-template-columns: 130px 1fr;
  }
  .close-side-canvas {
    top: 14px;
  }
  .stats-row {
    align-items: flex-start;
    gap: 8px;
  }
  #filterLabels {
    flex-wrap: wrap;
  }
  #filter-labels {
    flex-wrap: wrap;
  }
  .filter-tag {
    font-size: 11px;
    padding: 3px 8px;
  }
}
.pg-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 5px;
  border-radius: 6px;
  border: 1px solid var(--tb-border);
  background: var(--tb-white);
  color: var(--tb-text);
  font-size: 12.5px;
  font-family: "DM Sans", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.15s;
}
.pg-btn:hover {
  border-color: var(--tb-green);
  color: var(--tb-green);
}
.pg-btn.active {
  background: var(--tb-green);
  color: white;
  border-color: var(--tb-green);
}
.pg-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.col-hint {
  font-size: 11px;
  color: var(--tb-muted-light);
  font-style: italic;
}

/* â”€â”€ DataTable v1 native pagination (opt-in via .dt-native-paging) â”€â”€ */
/* Un-hide DT controls that are globally suppressed above */
.table-card.dt-native-paging .dataTables_wrapper .dataTables_info,
.table-card.dt-native-paging .dataTables_wrapper .dataTables_length,
.table-card.dt-native-paging .dataTables_wrapper .dataTables_paginate {
  display: block !important;
}
/* Hide the top row (length + search â€” search is in the toolbar) */
.table-card.dt-native-paging .dataTables_wrapper > .row:first-child {
  display: none !important;
}
/* Style the bottom info+paging row as a table-footer bar */
.table-card.dt-native-paging .dataTables_wrapper > .row:last-child {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--tb-border);
  background: #f8fafc;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.table-card.dt-native-paging
  .dataTables_wrapper
  > .row:last-child
  > [class*="col-"] {
  padding: 0;
  width: auto;
  flex: unset;
  max-width: none;
}
/* Info text */
.table-card.dt-native-paging .dataTables_info {
  font-size: 12px;
  color: var(--tb-muted);
  padding: 0;
}
/* Pagination container */
.table-card.dt-native-paging .dataTables_paginate {
  padding: 0;
}
.table-card.dt-native-paging .dataTables_paginate .pagination {
  margin: 0;
  gap: 3px;
  flex-wrap: nowrap;
}
/* Page buttons â€” match .pg-btn style */
.table-card.dt-native-paging .dataTables_paginate .page-item .page-link {
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 6px !important;
  border: 1px solid var(--tb-border) !important;
  background: var(--tb-white);
  color: var(--tb-text);
  font-size: 12.5px;
  font-family: "DM Sans", sans-serif;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transition: all 0.15s;
  box-shadow: none !important;
  line-height: 1;
}
.table-card.dt-native-paging .dataTables_paginate .page-item .page-link:hover {
  border-color: var(--tb-green) !important;
  color: var(--tb-green);
  background: var(--tb-white);
}
.table-card.dt-native-paging .dataTables_paginate .page-item.active .page-link {
  background: var(--tb-green) !important;
  color: white !important;
  border-color: var(--tb-green) !important;
}
.table-card.dt-native-paging
  .dataTables_paginate
  .page-item.disabled
  .page-link {
  opacity: 0.35;
  pointer-events: none;
}
.error {
  color: var(--tb-red);
  font-size: 13px;
  margin-top: 4px;
}
#calendar .fc-toolbar-chunk {
  display: flex;
}
#calendar a {
  text-decoration: none;
  color: var(--tb-font, #151b28);
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════════ */

/* Stat card */
.db-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--tb-white);
  border: 1px solid var(--tb-border);
  border-radius: 12px;
  padding: 16px 14px;
  transition: box-shadow 0.15s;
}
.db-stat-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}
.db-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.db-stat-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.db-stat-label {
  font-size: 11.5px;
  color: var(--tb-muted);
  font-weight: 500;
  white-space: nowrap;
}
.db-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--tb-text);
  line-height: 1.2;
}

/* Source dot */
.db-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* Responsive stat cards */
@media (max-width: 575px) {
  .db-stat-value {
    font-size: 18px;
  }
  .db-stat-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
}

/* ═══════════════════════════════════════════════
   BOOTSTRAP-TAGSINPUT
   ═══════════════════════════════════════════════ */
.bootstrap-tagsinput {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-height: 42px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--tb-border);
  border-radius: 8px;
  cursor: text;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.bootstrap-tagsinput:focus-within {
  border-color: var(--tb-green);
  box-shadow: 0 0 0 3px rgba(26, 122, 94, 0.12);
}
.bootstrap-tagsinput input {
  flex: 1;
  min-width: 120px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--tb-text);
  padding: 2px 4px;
}
.bootstrap-tagsinput input::placeholder {
  color: var(--tb-muted);
}
.bootstrap-tagsinput .tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: var(--tb-green);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
}
.bootstrap-tagsinput .tag [data-role="remove"] {
  cursor: pointer;
  opacity: 0.75;
  font-size: 13px;
  line-height: 1;
}
.bootstrap-tagsinput .tag [data-role="remove"]:hover {
  opacity: 1;
}
.bootstrap-tagsinput .tag [data-role="remove"]::after {
  content: "×";
}

/* ═══════════════════════════════════════════════
   TAB BLOCK MAIN — custom tab system (scripts.js)
   ═══════════════════════════════════════════════ */
.tab_block_main .tab_content .tab_block {
  display: none;
}
.tab_block_main .tab_content .tab_block.active {
  display: block;
}

/* Underline-style tab nav strip */
.tb-tab-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  border-bottom: 1px solid var(--tb-border);
  gap: 0;
}
.tb-tab-nav::-webkit-scrollbar {
  display: none;
}
.tb-tab-nav li {
  flex-shrink: 0;
}
.tb-tab-nav li a {
  display: block;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--tb-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition:
    color 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}
.tb-tab-nav li a:hover {
  color: var(--tb-text);
  border-bottom-color: var(--tb-border);
}
.tb-tab-nav li a.btn-success {
  color: var(--tb-green) !important;
  font-weight: 600;
  border-bottom-color: var(--tb-green);
  background: transparent !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.tb-tab-nav li a.btn-outline-secondary {
  color: var(--tb-muted) !important;
  border-bottom-color: transparent;
  background: transparent !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.tb-tab-nav li a.btn-outline-secondary:hover {
  color: var(--tb-text) !important;
  border-bottom-color: var(--tb-border);
}

.manual-selection .nav-tabs .nav-item {
  padding: 0;
  margin: 0;
}
.manual-selection .nav-tabs .nav-link {
  border: 0;
}
.primary-color {
  color: var(--tb-green);
}

.manual-selection .step-content .item p {
  margin-bottom: 0;
}
.relative {
  position: relative;
}

.tender-preference-modal .bottom .btn-green {
  padding: 8px 32px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  border-radius: 4px;
  height: 40px;
  background: var(--tb-green);
  color: #fff;
  border: 1px solid var(--tb-green);
  transition: all 0.3s;
}

.profile-setting-two-factor-area {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-top: 32px;
}
.profile-tender-email-notification-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}
.profile-tender-email-notification-area .email-notification-txt-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 440px;
}
.profile-tender-email-notification-area .email-notification-subtitle {
  font-size: 12px;
  color: #393f4c;
}
.profile-tender-email-notification-area .email-notification-title {
  font-size: 16px;
  font-weight: 600;
}
.profile-tender-email-notification-area .email-notification-switch-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.custom-switch {
  border-radius: 50%;
  background-color: #f8f8f9;
}
.profile-tender-email-notification-area
  .email-notification-switch-area
  .custom-switch {
  background: transparent;
}
.custom-switch label {
  display: block;
  width: 32px;
  background: #cbcfd8;
  height: 12px;
  position: relative;
  border-radius: 9px;
  border: 0px;
}
.profile-tender-email-notification-area
  .email-notification-switch-area
  .custom-switch
  label {
  width: 36px;
  height: 16px;
  background: #e6e6e6;
}
.custom-switch input {
  display: none;
}
.custom-switch label:before {
  content: "";
  height: 18px;
  width: 18px;
  background: #818181;
  position: absolute;
  border: 2px solid #fff;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  right: 20px;
  cursor: pointer;
  transition: 305ms all;
}

.profile-tender-email-notification-area
  .email-notification-switch-area
  .custom-switch {
  background: transparent;
}
.profile-tender-email-notification-area
  .email-notification-switch-area
  .custom-switch
  label {
  width: 36px;
  height: 16px;
  background: #e6e6e6;
}
.profile-tender-email-notification-area
  .email-notification-switch-area
  .custom-switch
  label:before {
  width: 24px;
  height: 24px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border: 2px solid #fff;
}
.profile-tender-email-notification-area
  .email-notification-switch-area
  .custom-switch:has(> input:checked)
  label:before {
  right: -5px;
  background: var(--tb-green);
  border: 2px solid var(--tb-green);
  border: 2px solid #fff;
}
.profile-tender-email-notification-area .email-notification-switch-txt {
  font-size: 12px;
  font-weight: 500;
  color: #006e62;
}

/* SWITCH STYLES */
.switch-wrapper {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border: 1px solid lightgrey;
  border-radius: 30px;
  background: #fff;
}

.switch-wrapper [type="radio"] {
  position: absolute;
  left: -9999px;
}

.switch-wrapper
  [type="radio"]:checked#set_custom_range_custom
  ~ label[for="set_custom_range_custom"],
.switch-wrapper
  [type="radio"]:checked#set_custom_range_auto
  ~ label[for="set_custom_range_auto"] {
  color: #fff;
}

.switch-wrapper
  [type="radio"]:checked#set_custom_range_custom
  ~ label[for="set_custom_range_custom"]:hover,
.switch-wrapper
  [type="radio"]:checked#set_custom_range_auto
  ~ label[for="set_custom_range_auto"]:hover {
  background: transparent;
}

.switch-wrapper
  [type="radio"]:checked#set_custom_range_custom
  + label[for="set_custom_range_auto"]
  ~ .highlighter {
  transform: none;
}

.switch-wrapper
  [type="radio"]:checked#set_custom_range_auto
  + label[for="set_custom_range_custom"]
  ~ .highlighter {
  transform: translateX(100%);
}

.switch-wrapper label {
  font-size: 16px;
  z-index: 1;
  min-width: 100px;
  line-height: 32px;
  cursor: pointer;
  border-radius: 30px;
  transition: color 0.25s ease-in-out;
}

.switch-wrapper label:hover {
  background: whitesmoke;
}

.switch-wrapper .highlighter {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 30px;
  background: #006e62;
  transition: transform 0.25s ease-in-out;
}

.mobile-only {
  display: none !important;
}
.font-weight-md {
  font-weight: 500;
}
.font-weight-lg {
  font-weight: 600;
}


/* ═══════════════════════════════════════════════
   PREMIUM GLOBAL LOADER
   ═══════════════════════════════════════════════ */
#search-filter-loader.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#search-filter-loader .spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #e8f5f1;
    border-bottom-color: #1a7a5e;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* d-flex */
.d-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

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

/* matching-tender-hover-main-box */
.matching-tender-hover-main-box:hover .matching-tender-hover-box {
  display: block;
  cursor: pointer;
}

/* more-badge */
.more-badge {
  background-color: #ffa35243;
  color: #ffa252;
  padding: 2px 4px;
  border-radius: 2px;
  font-size: 10px;
  display: inline-block;
  min-width: 55px;
}

/* matching-tender-hover-box */
.matching-tender-hover-box {
  box-shadow: 4px 4px 20px 0px #cbd4dfb0;
  border: 1px solid #ebeff4;
  background-color: #fff;
  border-radius: 8px;
  padding: 24px;
  position: absolute;
  min-width: 370px;
  max-width: 380px;
  z-index: 2;
  display: none;
}

/* text-black */
.text-black {
  color: var(--black) !important;
}

/* font-weight-lg */
.font-weight-lg {
  font-weight: var(--font-weight-lg) !important;
}

/* tender-details-cpv-code-area */
.tender-details-cpv-code-area {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* tender-details-cpv-code-item */
.tender-details-cpv-code-area .tender-details-cpv-code-item {
  background: #f1f3f6;
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: 400;
  font-size: 14px;
  color: var(--black);
  width: auto;
  -webkit-box-shadow: none;
}

/* cursor-pointer */
.cursor-pointer {
  cursor: pointer;
}

.pin {
    background-color: #02897a;
    padding: 3px 8px;
    font-size: 12px;
    color: #fff;
    border-radius: 2px;
    margin-left: 4px;
}

.badge {
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 2px;
    margin-left: 4px;
    font-weight: 400;
    height: 24px;
    display: inline-flex;
    align-items: center;
}

.framework {
    background-color: #027bd3;
    color: #fff;
}
.tender{
    background-color: #262525;
    color: #fff;
}

/* tooltip-container - line 7304 */
.tooltip-container {
  position: relative;
  display: inline-block;
}

/* tooltip-text - lines 7305-7317 */
.tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px !important;
}

/* tooltip-container hover effect - line 7318 */
.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
.open{
  color: var(--tb-green);
}
.awarded{
  color: var(--tb-blue);
}
.close {
  color: var(--tb-red);
}
.tender{
  background-color: var(--tb-orange);
  color: #fff;
}
.pin{
  background-color: var(--tb-green);
  color: #fff;
}
.framework{
  background-color: var(--tb-blue);
  color: #fff;
}
.dps{
  background-color: var(--tb-purple);
  color: #fff;
}