:root {
  --primary: #005153;
  --primary-dark: #1e40af;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-900: #111827;
}

* {
  font-family: "Inter", sans-serif;
}

body {
  background: var(--gray-50);
  font-size: 14px;
}

/* .container-wide {
    width: 100%;
    max-width: 1550px;
} */

/* Font Sizes */
.fs-13 {
  font-size: 13px;
}

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

.w-px-20 {
  width: 20px;
}

/* Compact spacing utilities */
.compact-header {
  padding: 0.75rem 0;
}

.bg-primary {
  background-color: var(--primary) !important;
}

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

.compact-section {
  padding: 1.25rem;
}

.compact-card {
  padding: 1rem;
}

/* Header */
.navbar {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary) !important;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 11px !important;
  color: var(--gray-600) !important;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.nav-link.active {
  color: var(--primary) !important;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 6px;
}

/* Hero - Compact */
.hero {
  background: #262b43;
  border-radius: 12px;
  padding: 4rem 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 0.9rem;
  opacity: 0.95;
  margin: 0;
}

/* Filter Card */
.filter-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.filter-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--gray-900);
}

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
}

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

.btn-primary:hover {
  background: #0d5f61;
}

/* Table Card */

.table-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 2rem;
}

.table-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table {
  margin: 0;
  font-size: 0.875rem;
}

.table thead {
  background: var(--gray-50);
}

.table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
  padding: 0.75rem 1rem;
  border: none;
}

.table tbody td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-100);
}

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

.table tbody tr:hover {
  background: var(--gray-50);
}

/* Badges */
.badge {
  font-size: 0.7rem;
  padding: 0.35rem 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #df3545b8;
  color: #fff;
}

.h-8px {
  height: 8px;
}

.w-8px {
  width: 8px;
}

/* Action Buttons */
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

.btn-outline-primary {
  border-color: var(--gray-200);
  color: var(--primary);
}

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

/* Footer */
footer {
  background: white;
  border-top: 1px solid var(--gray-200);
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Tender Details */
.tender-no {
  font-weight: 600;
  color: var(--primary);
}

.tender-title {
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 0.15rem;
  font-size: 0.875rem;
}

.tender-org {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* Pagination */
.pagination {
  font-size: 0.875rem;
}

.page-link {
  color: var(--gray-600);
  border-color: var(--gray-200);
  padding: 0.5rem 0.75rem;
}

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

/* .dropdown:hover>.dropdown-menu {
    display: block;
} */

.dropdown:hover>.dropdown-menu {
  display: block;
  margin-top: 0;
  /* Optional: Fix potential pixel shift */
}

.grievance-status {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: #ffc107;
  color: #000;
}

.status-under-review {
  background: #17a2b8;
  color: #fff;
}

.status-resolved {
  background: #28a745;
  color: #fff;
}

.status-closed {
  background: #6c757d;
  color: #fff;
}

.status-rejected {
  background: #dc3545;
  color: #fff;
}

.url-type-badge {
  padding: 3px 8px;
}

.type-url {
  background: #e3f2fd;
  color: #1976d2;
}

.type-file {
  background: #e8f5e9;
  color: #388e3c;
}

.filter-badge {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 5px 5px 0;
  background: #f0f0f0;
  border-radius: 15px;
  font-size: 13px;
}

.filter-badge .remove {
  margin-left: 5px;
  cursor: pointer;
  color: #dc3545;
  font-weight: bold;
}

.procuring-details {
  font-size: 13px;
  line-height: 1.4;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-expired {
  background: #fff3cd;
  color: #856404;
}

.status-delisted {
  background: #d1ecf1;
  color: #0c5460;
}

.type-badge {
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  background: #d1ecf1;
  color: #0c5460;
}

.delisting-badge {
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}

.delisting-auto {
  background: #e2e3e5;
  color: #383d41;
}

.delisting-manual {
  background: #cce5ff;
  color: #004085;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.duration-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
}

.stat-card {
  border-left: 4px solid;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card.delisted {
  border-left-color: #17a2b8;
}

.stat-card.auto {
  border-left-color: #6c757d;
}

.stat-card.manual {
  border-left-color: #007bff;
}

.archive-notice {
  background: #d1ecf1;
  border-left: 4px solid #17a2b8;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.archive-notice h5 {
  color: #0c5460;
}

.archive-notice p {
  color: #0c5460;
  margin-bottom: 0;
}

.detail-section {
  margin-bottom: 1.25rem;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-value {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Responsive */
@media (min-width: 576px) {
  .dropdown:hover>.dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

@media (min-width: 1399.98px) {
  .container-wide {
    max-width: 2000px;
  }
}

@media (max-width: 1399.98px) {
  .nowrap-xxl {
    white-space: nowrap;
  }
}

@media (max-width: 1199.98px) {
  .nowrap-cell {
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 991.98px) {
  .container-wide {
    max-width: 100% !important;
  }
}

@media (max-width: 768.98px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 1.5rem 1rem;
  }

  .compact-section {
    padding: 1rem;
  }

  .table {
    font-size: 0.8rem;
  }

  .table-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {}

.tender-desc-trim {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}



.scroll-progress {
  position: fixed;
  right: 20px;
  z-index: 111;
  top: 50%;
  -webkit-transition: all .3s linear;
  transition: all .3s linear;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  mix-blend-mode: difference
}

.scroll-progress.visible {
  opacity: 1;
  visibility: visible
}

.scroll-progress .scroll-top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #000;
}

.scroll-progress .scroll-line {
  width: 2px;
  height: 60px;
  position: relative;
  background-color: rgba(255, 255, 255, .15);
  color: inherit;
  display: block
}

.scroll-progress .scroll-point {
  display: inline-block;
  width: 2px;
  position: absolute;
  top: 0;
  left: 0
}

.scroll-progress .scroll-text {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
  writing-mode: vertical-lr;
  margin-bottom: 15px;
  color: #fff;
  font-size: 11px;
  text-transform: uppercase
}

.scroll-progress.scroll-simple {
  position: fixed;
  right: 50px;
  z-index: 111;
  top: auto;
  transform: none;
  bottom: 50px;
  mix-blend-mode: inherit
}

.scroll-progress.scroll-simple .scroll-top {
  background: var(--white);
  font-size: 17px;
  line-height: 34px;
  box-shadow: 0 0 25px rgba(23, 23, 23, .25);
  height: 34px;
  width: 34px;
  padding: 0;
  border-radius: 100%
}

.theme-demos {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 100%;
  position: fixed;
  right: -100%;
  top: 0;
  z-index: 1050;
  -webkit-transition: all .5s cubic-bezier(.77, 0, .175, 1);
  transition: all .5s cubic-bezier(.77, 0, .175, 1)
}

.magic-cursor-light #ball-cursor,
.scroll-progress .scroll-point,
.theme-demos {
  background-color: #fff;
}

.light-style .select2-container--default .select2-selection--single {
  height: 40px !important;
}

.light-style .select2-container--default .select2-selection:focus-within {
  border-color: #666cff;
  border-width: 2px;
}

.light-style .select2-container--default .select2-selection {
  min-height: 40px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.light-style .select2-container--default .select2-selection .select2-selection__rendered {
  line-height: 36px !important;
  font-size: 0.8125rem !important;
}

.light-style .select2-container--default .select2-results__option {
  font-size: 0.8125rem !important;
}

.light-style .select2-container--default .select2-selection .select2-selection__arrow {
  height: 100% !important;
}

.light-style .select2-selection--multiple .select2-selection__clear {
  height: 38px !important;
  margin-top: 0;
}

body>.select2-container {
  width: auto !important;
  z-index: 5555;
}

.select2-container .select2-search--inline .select2-search__field {
  line-height: 36px;
  margin-top: 0;
}

.light-style .select2-container--default .select2-selection {
  background-color: #fff !important;
}

.light-style .small-input .select2-selection--multiple .select2-selection__choice {
  margin-top: 7px;
  background-color: #282a42 !important;
  color: #fff !important;
}

.small-input .select2-container--default .select2-selection,
.small-input .select2-container--default .select2-selection--single {
  min-height: 34px !important;
  height: 34px !important;
}

.small-input .select2-container--default .select2-selection {
  border-top-right-radius: 0px !important;
  border-bottom-right-radius: 0px !important;
}

.small-input button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.small-input .select2-container--default .select2-selection .select2-selection__rendered {
  line-height: 30px !important;
}

.light-style-bg .select2-container--default .select2-selection {
  background-color: #e9ecef !important;
  opacity: 1;
}