﻿/* Page namespace */
.ie-page {
  --ie-radius: 18px;
  --ie-border: #e9ecef;
  --ie-muted: #6c757d;
}

/* Sidebar card */
.ie-sidebar .ie-sidecard {
  border: 1px solid var(--ie-border);
  border-radius: var(--ie-radius);
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

/*Sideabar relative on Desktop*/
@media (min-width: 992px) {
  .ie-sidebar {
    position: relative;
    top: 4px;
    align-self: flex-start;
    height: calc(100vh - 36px);
  }
  .ie-sidebar .ie-sidecard {
    height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
  }
  .ie-sidebar .ie-sidecard .ie-sidebody {
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
}

.ie-sidebar .badge.text-bg-light {
  min-width: 44px;
  text-align: center;
}

/* Left Bar Title */
.ie-left-filter-title {
  font-size: 20px;
}

/* Tabs */
.ie-tabs {
  display: flex;
  gap: 10px;
}

.ie-tabs .btn {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 800;
  gap: 8px;
}

.ie-tabs .btn i {
  font-size: 18px;
  line-height: 1;
}

/* Inputs */
.ie-page .form-control {
  border-radius: 12px;
  border-color: var(--ie-border);
}
.ie-page .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgb(13, 110, 253, 0.08);
  border-color: #cfe2ff;
}

/* Filter blocks */
.ie-filter-title {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ie-muted);
}

.ie-filter-box {
  border: 1px solid var(--ie-border);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.ie-filter-scroll {
  max-height: 220px;
  overflow: auto;
  padding-right: 6px;
}

/*Checkbox row*/
.ie-filter-row {
  color: #000;
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 18px;
  font-weight: 500;
}
.ie-filter-row:hover {
  background: #f8f9fa;
}

.ie-filter-row .form-check-input {
  margin-top: 5px;
}

.ie-filter-row .small.d-flex {
  min-width: 0;
  margin-right: 18px;
}

/*Category Part*/
.category-icon {
  width: 18px;
  text-align: center;
  font-size: 16px;
  line-height: 1;
  flex: 0 0 18px;
  margin-bottom: 0px;
}

.cat-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ie-filter-row .cat-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/*SubCategory Part */
.sc-icon {
  color: #000;
}
.sc-left {
  flex: 1 1 auto;
  min-width: 0;
}
.sc-badge {
  flex: 0 0 auto;
}

.sc-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-icon {
  width: 18px;
  text-align: center;
  flex: 0 0 18px;
  line-height: 1;
}

.ie-filter-row .sc-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Main Header */
.ie-main-header {
  border: 1px solid var(--ie-border);
  border-radius: var(--ie-radius);
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  margin-top: 2px;
}

/* Cards (rfq pill) */
.ie-card {
  border: 1px solid var(--ie-border);
  border-radius: 60px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}
.ie-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  border-color: #dfe3e8;
}

/* Flag dot */
.ie-card .request-info-title {
  font-size: 14px;
  font-weight: 700;
  color: #212529;
  line-height: 1.25;
}

.ie-card .request-info-body {
  color: var(--ie-muted);
}

.ie-card .rfq-pill-text {
  flex: 1;
  min-width: 0;
}

.ie-card .rfq-pill-title {
  line-height: 1.2;
  min-height: calc(2 * 1.2em);
  font-size: larger;
  color: #212529;
  font-weight: 700;
}

.ie-card .rfq-pill-body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  font-size: medium;

  overflow: hidden;
  text-overflow: ellipsis;

  color: var(--ie-muted);
  line-height: 1.4;
  max-height: calc(2 * 1.35em);
}

.ie-card .rfq-pill-body {
  min-height: calc(2 * 1.35em);
}

.ie-card .rfq-meta {
  gap: 10px;

  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--ie-border);
}

.ie-card .rfq-country {
  display: inline-block;
  max-width: 260px;
  font-size: 13px;
  font-weight: 700;
  color: #212529;
}

.ie-card .rfq-country-wrap {
  flex: 1;
  min-width: 0;
}

.ie-card .rfq-type-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--ie-border);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  background: #fff;
}

/* Vip / Free */
.ld-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--ie-border);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  line-height: 1;
  background: #f8f9fa;
  color: #212529;
}

.ld-badge-free {
  background: rgba(253, 126, 20, 0.14);
  border-color: rgba(253, 126, 20, 0.2);
  color: #fd7e14;
}
.ld-badge-vip {
  background: rgba(13, 202, 240, 0.14);
  border-color: rgba(13, 202, 240, 0.2);
  color: #0dcaf0;
}

.ld-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.04);
  border: 1px solid rgba(2, 6, 23, 0.08);
  color: #0f172a;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  font-weight: 700;
}

.ie-card .rfq-type-pill {
  font-size: 14px;
  line-height: 1;
}

.ie-card,
.ie-card:hover,
.ie-card:focus {
  color: #212529; /* siyah */
  text-decoration: none;
}

@media (max-width: 576px) {
  .ie-card .rfq-pill-title {
    font-size: 18px;
  }
  .ie-card .rfq-pill-body {
    font-size: 12.5px;
  }

  .ie-card .rfq-country {
    max-width: 55vw;
  }
}

/* Subscribed */
.ld-badge-subscribed {
  background-color: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #bbdefb;
}

/* Bought */
.ld-badge-bought {
  background: rgba(139, 92, 246, 0.08);
  color: #7c3aed;
  border: 1px solid #ceead6;
}

/* Badges */
.ie-page .badge.text-bg-light {
  background: #f1f3f5;
  color: #212529;
  border: 1px solid var(--ie-border);
  font-weight: 600;
}

.ie-page .badge {
  color: #212529;
}

.filter-scroll {
  max-height: 362px;
  overflow: auto;
  padding-right: 4px;
}

/*Card Effects*/
.ie-imports .request-info-flag {
  background: #b02a37;
}

.ie-imports .request-info:hover,
.ie-imports .ie-card:hover {
  border-color: #e7aaaa;
  background-color: #fff5f5;
  box-shadow: 0 14px 30px rgba(176, 32, 42, 0.16);
}

.ie-imports .request-info:hover .request-info-flag,
.ie-imports .ie-card:hover .request-info-flag {
  background-color: #8f1d25;
}

.ie-imports .rfq-type-pill {
  color: #b02a37;
  border-color: #e7aaaa;
  background: #fff5f5;
}

.ie-exports .request-info-flag {
  background: #0d6efd;
}

.ie-exports .request-info:hover {
  border-color: #cfe2ff;
  background-color: #f5f9ff;
  box-shadow: 0 0.25rem 0.8rem rgba(13, 110, 253, 0.16);
}

.ie-exports .ie-card:hover {
  border-color: #cfe2ff;
  background-color: #f5f9ff;
  box-shadow: 0 14px 30px rgba(13, 110, 253, 0.12);
}

.ie-exports .ie-card:hover .request-info-flag,
.ie-exports .ie-card:hover .request-info-flag {
  background-color: #0b5ed7 !important;
}

.ie-exports .rfq-type-pill {
  color: #0d6efd;
  border-color: #cfe2ff;
  background: #f5f9ff;
}

/* Pagination */
.ie-pagination .pagination {
  gap: 10px;
}

.ie-pagination .page-item .page-link {
  min-width: 44px;
  border: 1px solid var(--ie-border);
  border-radius: 12px;
  padding: 10px 16px;
  background: #fff;
  color: #212529;
  font-weight: 700;
  box-shadow: 0 8px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease,
    background-color 0.12s ease;
}

.ie-pagination .page-item:not(.disabled):not(.active) .page-link:hover {
  transform: translateY(-1px);
  border-color: #dfe3e8;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.ie-imports .ie-pagination .page-item.active .page-link {
  background: #b02a37;
  border-color: #b02a37;
  color: #fff;
  box-shadow: 0 12px 24px rgba(176, 32, 42, 0.18);
}

.ie-exports .ie-pagination .page-item.active .page-link {
  background: #0d6efd;
  border-color: #0b6efd;
  color: #fff;
  box-shadow: 0 12px 24px rgba(13, 110, 253, 0.18);
}

.ie-pagination .page-item.disabled .page-link {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.ie-pagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

/* Reduce excessisve whitespace on huge screeens*/
@media (min-width: 1440px) {
  .ie-page .container-fluid {
    max-width: 1600px;
  }
}

@media (max-width: 576px) {
  .ie-pagination .page-item .page-link {
    min-width: 38px;
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 700;
  }
}
