/* Page hero (inner pages) */
.page-hero{
  background:#f3f1ea;padding:56px 0 40px;border-bottom:0.5px solid #e5e3dc;
}
.page-hero h1{font-size:40px;margin-bottom:10px}
.page-hero .sub{color:#6b6b6b;font-size:16px;max-width:640px;line-height:1.6}
.breadcrumb{
  font-size:12px;color:#6b6b6b;margin-bottom:18px;letter-spacing:0.2px;
}
.breadcrumb a{color:#1a3a6b}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb .sep{margin:0 8px;color:#aaaaaa}

@media (max-width:768px){
  body{padding-top:0}
  h1{font-size:32px}
  h2{font-size:24px}
  .nav-links{display:none}
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr;gap:32px}
  .two-col-fields{grid-template-columns:1fr}
  section{padding:40px 0}
}

.t-hero{
  background:linear-gradient(135deg,#0d2240 0%,#1a3a6b 100%);color:#fff;padding:48px 0;
}
.t-hero-inner{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.t-hero h1{color:#fff;font-size:32px;margin-bottom:6px}
.t-hero .sub{color:#c4d4ea;font-size:14px}
.t-hero .live-dot{display:inline-block;width:8px;height:8px;background:#4ade80;border-radius:50%;margin-right:8px;animation:pulse 2s infinite}
.t-hero-stats{display:flex;gap:24px;text-align:right}
.t-hs{font-size:12px;color:#c4d4ea}
.t-hs .n{font-size:24px;font-weight:700;color:#fff;letter-spacing:-0.4px;display:block}

/* Top widgets: Countries / Categories / Products */
.top-widgets-wrap{background:#f3f1ea;padding:28px 0 20px;border-bottom:0.5px solid #e5e3dc}
.top-widgets{
  max-width:1520px;margin:0 auto;padding:0 32px;
  display:grid;grid-template-columns:repeat(3,1fr);gap:18px;
}
.tw-card{
  background:#fff;border:0.5px solid #e5e3dc;border-radius:14px;padding:22px 26px;
  display:flex;flex-direction:column;
}
.tw-head{
  display:flex;align-items:center;gap:10px;padding-bottom:14px;margin-bottom:14px;
  border-bottom:0.5px solid #e5e3dc;
}
.tw-icon{
  width:34px;height:34px;border-radius:9px;color:#fff;flex:none;
  display:flex;align-items:center;justify-content:center;
}
.tw-icon svg{width:16px;height:16px}
.tw-icon.c-country{background:#1a3a6b}
.tw-icon.c-category{background:#166534}
.tw-icon.c-product{background:#7c3aed}
.tw-title{font-size:15px;font-weight:700;color:#1a1a1a;letter-spacing:-0.2px}
.tw-title .sub{display:block;font-size:11px;color:#6b6b6b;font-weight:500;letter-spacing:0;margin-top:2px;text-transform:none}

.tw-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:1px}
.tw-list li{display:block}
.tw-list li a{
  display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:6px;
  font-size:13px;color:#1a1a1a;line-height:1.4;transition:all .12s;
}
.tw-list li a:hover{background:#eef2f8;color:#1a3a6b}
.tw-list .flag{font-size:15px;flex:none;line-height:1}
.tw-list .tw-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tw-list .tw-count{font-size:11px;color:#6b6b6b;font-weight:600;flex:none;font-variant-numeric:tabular-nums}
.tw-list li a:hover .tw-count{color:#1a3a6b}
.tw-list .tw-code{font-family:'SF Mono',Monaco,monospace;font-size:10px;color:#1a3a6b;background:#eef2f8;padding:2px 6px;border-radius:4px;font-weight:700;flex:none}

.tw-footer{margin-top:14px;padding-top:12px;border-top:0.5px solid #e5e3dc}
.tw-view-all{
  display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;
  color:#1a3a6b;transition:gap .15s;
}
.tw-view-all:hover{gap:7px}
.tw-view-all svg{width:12px;height:12px;stroke-width:2.2}

@media (max-width:1100px){.top-widgets{grid-template-columns:1fr}}

.quick-filter-bar{
  background:#fff;padding:16px 0;border-bottom:0.5px solid #e5e3dc;position:sticky;top:66px;z-index:50;
}
.qfb-inner{display:flex;gap:8px;align-items:center;overflow-x:auto;padding:0 32px;max-width:1520px;margin:0 auto}
.quick-pill{
  padding:8px 16px;border:0.5px solid #cfcec4;border-radius:22px;font-size:13px;font-weight:500;
  background:#fff;color:#1a1a1a;cursor:pointer;white-space:nowrap;transition:all .15s;
}
.quick-pill:hover{border-color:#1a3a6b;color:#1a3a6b}
.quick-pill.active{background:#1a3a6b;color:#fff;border-color:#1a3a6b}
.quick-pill .cnt{font-size:11px;opacity:0.7;margin-left:4px}

.tl-layout{
  max-width:1520px;margin:0 auto;padding:24px 32px;
  display:grid;grid-template-columns:260px 1fr;gap:24px;align-items:start;
}
.tl-sidebar{background:#fff;border:0.5px solid #e5e3dc;border-radius:12px;padding:20px;position:sticky;top:160px;max-height:calc(100vh - 180px);overflow-y:auto}
.tl-sidebar .filter-h{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:0.6px;color:#1a3a6b;margin-bottom:10px}
.tl-filter-grp{padding:12px 0;border-bottom:0.5px solid #e5e3dc}
.tl-filter-grp:first-child{padding-top:0}
.tl-filter-grp:last-child{border-bottom:0}
.tl-filter-grp label{display:flex;align-items:center;gap:8px;font-size:13px;padding:3px 0;cursor:pointer}
.tl-filter-grp label input{accent-color:#1a3a6b}
.tl-filter-grp label .num{margin-left:auto;font-size:11px;color:#6b6b6b}

.tl-sort{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.tl-sort .count{font-size:14px;color:#4a4a4a}
.tl-sort .count strong{font-weight:700;color:#1a1a1a}

.tl-card{
  background:#fff;border:0.5px solid #e5e3dc;border-radius:14px;padding:24px 28px;margin-bottom:12px;
  transition:border-color .15s,box-shadow .15s;
}
.tl-card:hover{border-color:#1a3a6b;box-shadow:0 6px 24px rgba(26,58,107,0.08)}
.tl-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.tl-top-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tl-title{font-size:18px;font-weight:600;color:#1a1a1a;line-height:1.35;margin-bottom:8px}
.tl-title:hover{color:#1a3a6b}
.tl-auth{font-size:13px;color:#6b6b6b;margin-bottom:14px}
.tl-auth .flag{font-size:15px;margin-right:6px}
.tl-chips{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px;padding:10px 0;border-top:0.5px solid #e5e3dc;border-bottom:0.5px solid #e5e3dc}
.tl-chip{display:flex;flex-direction:column;gap:2px;min-width:110px}
.tl-chip .l{font-size:10px;color:#aaaaaa;font-weight:600;text-transform:uppercase;letter-spacing:0.4px}
.tl-chip .v{font-size:14px;font-weight:600;color:#1a1a1a;    display: flex;align-items: center;}
.tl-chip .v.urgent{color:#dc2626}
.tl-chip .v.green{color:#166534}
.tl-chip .v svg{width:13px;height:13px;vertical-align:-2px;margin-right:3px}
.tl-excerpt{color:#4a4a4a;font-size:14px;line-height:1.65;margin-bottom:14px}
.tl-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.tl-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}
.tl-bottom-actions{display:flex;gap:6px}
.tl-actions-btn{
  padding:7px 14px;border:0.5px solid #cfcec4;border-radius:8px;background:#fff;cursor:pointer;
  font-size:12px;font-weight:500;color:#1a1a1a;display:inline-flex;align-items:center;gap:5px;
}
.tl-actions-btn:hover{border-color:#1a3a6b;color:#1a3a6b}
.tl-actions-btn svg{width:13px;height:13px}

.load-more{text-align:center;margin-top:24px;padding:20px 0}
/* @media (max-width:900px){.tl-layout{grid-template-columns:1fr}.tl-sidebar{position:static;max-height:none}} */

/*  Country listing of left filter */
.country-list{
  transition:max-height .3s;
}

.country-list.scrollable{
    max-height:260px;
    overflow-y:auto;
    padding-right:5px;
}

.country-item{
  display:flex;
  align-items:center;
  margin-bottom:8px;
  width:100%;
}

.country-item .num{
    margin-left:auto !important;
}
.country-item .num{
  margin-left:auto;
}
.hidden-country{
    display:none;
}

.load-more-country{
    display:inline-block;
    margin-top:8px;
    font-size:12px;
    color:#1a3a6b;
    font-weight:600;
    cursor:pointer;
    text-decoration:none;
}

.country-loader{
    display:none;
    margin-top:8px;
    font-size:12px;
    color:#666;
}

/* CPV Css */
/* Search input */
.filter-input, .select2-container--default .select2-selection--multiple{
    width: 100% !important;
    padding: 10px 14px  !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}
.filter-input:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Dropdown panel */
.cpv-panel {
    position: fixed;      /* absolute ki jagah fixed */
    z-index: 9999;        /* sabse upar rahe */
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    width: 480px;
    max-width: 90vw;
    overflow: hidden;
}

.cpv-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* IMPORTANT: forces columns to respect widths instead of expanding */
}
.cpv-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Header row - "SEARCHING CPV" / "SELECTED CPV" */
.cpv-table tr:first-child td {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.5px;
    padding: 12px 14px 8px;
    border-bottom: 1px solid #e5e7eb;
}

/* Divider between the two columns */
.cpv-table tr td:first-child {
    border-right: 1px solid #e5e7eb;
}

/* Result areas */
#div_result, #div_result1 {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;   /* removes the horizontal scrollbar */
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
}

/* Left Filter CSS */
#div_result label,
.checkedcpv-row {
    display: block;
    font-size: 13px;
    color: #374151;
    padding: 6px 0;
    cursor: pointer;
    white-space: normal;      /* allow text to wrap to next line */
    word-break: break-word;   /* break long words if needed */
    line-height: 1.4;
}

#div_result input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: top;
    flex-shrink: 0;
}

/* Selected item pill (matches your list() function output) */
#div_result1 span {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    margin-bottom: 6px;
}
.cpv-remove-btn {
    border: none;
    background: none;
    color: #ef4444;
    margin-left: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* Bottom buttons row */
.cpv-table tr:last-child td {
    padding: 12px 14px;
    border-top: 1px solid #e5e7eb;
    text-align: left;
}
.cpv-table button[onclick="return winclose()"] {
    background: #1e3a8a;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}
#cancl {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    margin-left: 8px;
    cursor: pointer;
}

.filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: #fff;
}
.clear-filter-btn {
    float: right;
    border: none;
    background: none;
    color: #2563eb;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}