body { font-family: Helvetica, sans-serif; scroll-behavior: smooth; }

.GmpCombined { max-width: 1300px; margin: 0 auto 30px auto; background-color: #fff; padding: 25px 10px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
h1, .gmph1 { color: #333; font-size: 28px; margin-bottom: 25px; text-align: center; font-weight: 600; }

/* Single Row Controls */
.top-controls-wrapper { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; width: 100%; }
.controls-left { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.controls-right { display: flex; align-items: center; gap: 10px; }

.controls-left select, .controls-right input { padding: 8px 10px; font-size: 14px; border-radius: 5px; border: 1px solid #ccc; }
.controls-right input { min-width: 200px; }

#refreshBtn { background: transparent; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; }
#refreshBtn svg:hover { transform: rotate(90deg); transition: transform 0.3s ease; }

/* NAYA: Board Filter Switch Style */
.board-filter { display: flex; background: #e9ecef; padding: 4px; border-radius: 6px; border: 1px solid #ced4da; }
.board-btn { border: none; background: transparent; padding: 6px 14px; font-size: 13px; border-radius: 4px; cursor: pointer; color: #495057; transition: all 0.2s; font-weight: 500; }
.board-btn.active-board { background: #fff; font-weight: bold; color: #007bff; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }

/* Status Filter Tags */
.status-bar { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0; flex-wrap: wrap;}
.status-bar .tag { padding: 6px 12px; background-color: #f1f3f5; border: 1px solid #e9ecef; border-radius: 4px; font-size: 13px; color: #333; cursor: pointer; transition: all 0.2s ease; }
.status-bar .tag:hover { background-color: #e2e6ea; }
.status-bar .tag.active-filter { background-color: #e2e6ea; border-color: #adb5bd; font-weight: bold; }

/* Table Responsive & Sticky Header */
.table-responsive { width: 100%; position: relative; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
table td { padding: 10px 8px; font-size: 13px; font-family: roboto, sans-serif; color: #333; text-align: left; border-bottom: 1px solid #eee; vertical-align: middle; }
table th { font-family: lato, sans-serif; background-color: #f4f7f9; color: #1a202c; font-weight: 700; font-size: 11px; text-transform: uppercase; padding: 12px 8px; text-align: left; cursor: pointer; position: sticky; top: 0; z-index: 100; border-bottom: 2px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
table th:hover { background-color: #e2e8f0; }

table th .sort-icon { display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #888; margin-left: 5px; vertical-align: middle; opacity: 1; }
table th.asc .sort-icon { border-top: none; border-bottom: 5px solid #007bff; }
table th.desc .sort-icon { border-bottom: none; border-top: 5px solid #007bff; }
table tbody tr:nth-child(even) { background-color: #fdfdfd; }
table tbody tr:hover { background-color: #f5f5f5; }

/* Badges & Listing Price */
.company-name-wrapper { display: inline; line-height: 1.5; }
.company-name-wrapper a { text-decoration: underline; color: inherit; }

/* ✅ FIX APPLIED HERE: Kisi bhi text ko 2 lines me break hone se rokne ke liye */
.company-name-wrapper span {
  white-space: nowrap;
  display: inline-block;
}

/* ✅ FIX APPLIED HERE: Important added to maintain flex behavior */
.status-badge { display: inline-flex !important; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; color: #ffffff; font-size: 9px; font-weight: bold; text-transform: uppercase; box-shadow: 0 1px 3px rgba(0,0,0,0.2); cursor: pointer; vertical-align: middle; margin-left: 5px; margin-top: -2px; }

.badge-upcoming { background-color: #ffc107; color: #000; } 
.badge-open { background-color: #157347; } 
.badge-ct { background-color: #fd7e14; } 
.badge-ap { background-color: #dc3545; } 
.badge-al { background-color: #6f42c1; } 
.badge-lt { background-color: #0dcaf0; color: #000; } 

/* Custom Badge Tooltip */
.custom-badge-tooltip { position: absolute; z-index: 9999; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); width: max-content; max-width: 260px; font-family: Helvetica, sans-serif; color: #333; opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; pointer-events: none; }
.custom-badge-tooltip.show-tooltip { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.tooltip-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background-color: #f5f6f8; border-bottom: 1px solid #e0e0e0; border-radius: 8px 8px 0 0; font-weight: bold; font-size: 14px; }
.tooltip-close { cursor: pointer; font-size: 20px; line-height: 1; color: #666; padding-left: 10px; }
.tooltip-close:hover { color: #000; }
.tooltip-body { padding: 10px 12px; font-size: 13px; line-height: 1.4; color: #555; word-wrap: break-word; }

/* Pagination */
#pagination { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
#pagination button { padding: 6px 12px; border: none; border-radius: 5px; background-color: #e4e4e4; cursor: pointer; transition: background-color 0.25s ease, transform 0.2s ease; }
#pagination button.active, #pagination button:disabled { background-color: #007bff; color: white; cursor: default; }
#pagination button:hover { transform: scale(1.05); background-color: #d0e4ff; }

/* Mobile View */
@media (max-width: 1024px) {
  .top-controls-wrapper { flex-wrap: wrap; justify-content: center; gap: 15px; }
  .table-responsive { overflow-x: auto; }
}