﻿/* ===== MODULE: _filters.css ===== */
    /* ===== MANULIFE PRO FILTERS ===== */
    .manulife-pro-filters {
      margin-top: 20px;
      background: #fff;
      border-radius: 2.4px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      min-height: 490px; 
      padding: 30px 20px; 
      transition: all 0.3s ease; 
      width: 100%; /* Full width */
      margin-left: 0; 
      margin-right: 0; 
    }
    
    
    .manulife-pro-filters.has-hidden-filters {
      min-height: auto !important;
      height: auto !important;
      padding: 0 !important; 
    }
    
    
    .manulife-pro-filters:not(.has-hidden-filters) {
      min-height: 490px !important;
      height: auto !important;
      padding: 30px 20px !important;
    }
    
    /* Force reset container khi ci class reset-filters */
    .manulife-pro-filters.reset-filters {
      min-height: 490px !important;
      height: auto !important;
      padding: 30px 20px !important;
    }
    
    
    
    .region-filter-section {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      min-width: 100px;
      max-width: 120px;
    }
    
    .custom-dropdown {
      position: relative;
      width: 100%;
    }
    
    .dropdown-toggle {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid #d1d5db;
      border-radius: 1.8px;
      background: white;
      font-size: 12px;
      color: #374151;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: border-color 0.2s;
    }
    
    .dropdown-toggle:hover {
      border-color: #9ca3af;
    }
    
    .dropdown-toggle:focus {
      outline: none;
      border-color: #3b82f6;
      box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    }
    
    .dropdown-text {
      flex: 1;
      text-align: left;
    }
    
    .dropdown-arrow {
      font-size: 10px;
      color: #6b7280;
      transition: transform 0.2s;
    }
    
    .dropdown-toggle.active .dropdown-arrow {
      transform: rotate(180deg);
    }
    
    .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      background: white;
      border: 1px solid #d1d5db;
      border-radius: 1.8px;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
      z-index: var(--z-header);
      max-height: 200px;
      overflow-y: auto;
      display: none;
      min-width: 120px;
      width: max-content;
    }
    
    .dropdown-menu.show {
      display: block;
    }
    
    .dropdown-content {
      padding: 4px 0;
    }
    
    .dropdown-actions {
      display: flex;
      gap: 2px;
      padding: 2px 4px;
      border-bottom: 1px solid #e5e7eb;
      margin-bottom: 4px;
    }
    
    .dropdown-action-btn {
      flex: 1;
      padding: 2px 6px;
      border: none;
      border-radius: 1.2px;
      font-size: 10px;
      cursor: pointer;
      transition: background-color 0.2s;
    }
    
    .select-all-btn {
      background-color: #dbeafe;
      color: #1e40af;
    }
    
    .select-all-btn:hover {
      background-color: #bfdbfe;
    }
    
    .clear-all-btn {
      background-color: #fee2e2;
      color: #dc2626;
    }
    
    .clear-all-btn:hover {
      background-color: #fecaca;
    }
    
    .dropdown-divider {
      height: 1px;
      background-color: #e5e7eb;
      margin: 4px 0;
    }
    
    .dropdown-item {
      display: flex;
      align-items: center;
      padding: 6px 12px;
      font-size: 12px;
      color: #374151;
      cursor: pointer;
      transition: background-color 0.2s;
    }
    
    .dropdown-item:hover {
      background-color: #f3f4f6;
    }
    
    .dropdown-item input[type="checkbox"] {
      margin-right: 8px;
      width: 14px;
      height: 14px;
    }
    
    .dropdown-item label {
      cursor: pointer;
      flex: 1;
      margin: 0;
    }
    
    .filter-buttons {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px 8px; 
      justify-content: center;
      align-items: stretch;
    }
    
    
    .filter-buttons.has-hidden-filters {
      gap: 0;
    }
    
    .filter-row {
      display: contents; 
    }
    
    
    @media (min-width: 1024px) {
      .filter-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px 6px; 
      }
    }
    
    .filter-btn {
      padding: 20px 16px; 
      border: none;
      border-radius: 2.4px;
      font-weight: 600;
      font-size: 14px; /* Tang font size lin 14px */
      cursor: pointer;
      transition: all 0.3s ease;
      min-width: 0;
      width: 100%;
      height: 85px; 
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      line-height: 1.4; /* Tang line height lin 1.4 */
      white-space: normal;
    }

    .filter-btn.active {
      box-shadow: 0 0 0 2px #0b5f4b inset;
      transform: translateY(-1px);
      filter: brightness(0.95);
    }
    
    
    @media (max-width: 767px) {
      .filter-btn {
        padding: 12px 4px; 
        font-size: 11px; 
        height: 70px; 
        line-height: 1.2; 
      }
    }
    
    .pro-bac-btn {
      background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
      color: white;
    }
    
    .pro-bac-btn:hover {
      background: linear-gradient(135deg, #a0a0a0 0%, #808080 100%);
      transform: translateY(-2px);
    }
    
    .pro-bachkim-btn {
      background: linear-gradient(135deg, #e5e4e2 0%, #d4d4d4 100%);
      color: #333;
    }
    
    .pro-bachkim-btn:hover {
      background: linear-gradient(135deg, #d4d4d4 0%, #c0c0c0 100%);
      transform: translateY(-2px);
    }
    
    .pro-vang-btn {
      background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
      color: #333;
    }
    
    .pro-vang-btn:hover {
      background: linear-gradient(135deg, #ffb347 0%, #ff8c00 100%);
      transform: translateY(-2px);
    }
    
    /* CSS cho cic nit Pro chua Active */
    .pro-bac-chua-active-btn {
      background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
      color: white;
      border: 2px solid #ff4757;
    }
    
    .pro-bac-chua-active-btn:hover {
      background: linear-gradient(135deg, #ee5a52 0%, #c44569 100%);
      transform: translateY(-2px);
    }
    
    .pro-vang-chua-active-btn {
      background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
      color: white;
      border: 2px solid #ff7043;
    }
    
    .pro-vang-chua-active-btn:hover {
      background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
      transform: translateY(-2px);
    }
    
    .pro-bachkim-chua-active-btn {
      background: linear-gradient(135deg, #ab47bc 0%, #9c27b0 100%);
      color: white;
      border: 2px solid #8e24aa;
    }
    
    .pro-bachkim-chua-active-btn:hover {
      background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
      transform: translateY(-2px);
    }
    
    /* CSS cho cic nit M0, M1 chua Active */
    .m0-chua-active-btn {
      background: linear-gradient(135deg, #26a69a 0%, #00695c 100%);
      color: white;
      border: 2px solid #00897b;
    }
    
    .m0-chua-active-btn:hover {
      background: linear-gradient(135deg, #00695c 0%, #004d40 100%);
      transform: translateY(-2px);
    }
    
    .m1-chua-active-btn {
      background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
      color: white;
      border: 2px solid #1565c0;
    }
    
    .m1-chua-active-btn:hover {
      background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
      transform: translateY(-2px);
    }
    
    
    .tiem-nang-thang-cap-btn {
      background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
      color: white;
      border: 2px solid #8e24aa;
    }
    
    .tiem-nang-thang-cap-btn:hover {
      background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
      transform: translateY(-2px);
    }
    
    
    .phan-khuc-nguon-luc-btn {
      background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
      color: white;
      border: 2px solid #8e24aa;
    }
    
    .phan-khuc-nguon-luc-btn:hover {
      background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
      transform: translateY(-2px);
    }
    
    /* CSS cho nit TARGET */
    .target-btn {
      background: linear-gradient(135deg, #10b981 0%, #025b48 100%);
      color: white;
      border: 2px solid #047857;
    }
    
    .target-btn:hover {
      background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
      transform: translateY(-2px);
    }
    
    
    .quan-ly-dtcd-btn {
      background: linear-gradient(135deg, #26a69a 0%, #00695c 100%);
      color: white;
      border: 2px solid #00897b;
    }
    
    .quan-ly-dtcd-btn:hover {
      background: linear-gradient(135deg, #00695c 0%, #004d40 100%);
      transform: translateY(-2px);
    }

    
    .dtcd-result-row {
      transition: background-color 0.18s ease, box-shadow 0.18s ease;
    }

    .dtcd-result-row:hover {
      background: #e6fffa !important;
      box-shadow: inset 3px 0 0 #0d9488;
    }

    .dtcd-result-row:active {
      background: #ccfbf1 !important;
    }
    
    .view-other-btn {
      background: linear-gradient(135deg, #025b48 0%, #00e0e5 100%);
      color: white;
      padding: 10px 12px;
      border: none;
      border-radius: 1.8px;
      font-weight: 600;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.3s ease;
      width: 100% !important; /* Luin full width */
      min-width: 0;
      white-space: normal;
      line-height: 1.2;
      text-align: center;
      grid-column: 1 / -1; 
    }
    
    /* CSS cho filter results header vi export button */
    .filter-results-header {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      margin-bottom: 16px;
      padding: 12px 16px;
      background: #f8f9fa;
      border-radius: 2.4px;
      border: 1px solid #e9ecef;
      position: relative;
    }
    
    .filter-results-header h4 {
      position: absolute;
      left: 16px;
      margin: 0;
      color: #0b3d2c;
      font-size: 16px;
      font-weight: 600;
    }
    
    /* Portrait reduce font sizes */
    @media (max-width: 767px) {
      .filter-results-header h4 {
        font-size: 14px;
        left: 12px;
      }
      
      .export-filter-btn {
        font-size: 11px;
        padding: 6px 12px;
      }
      
      
      .info-item-modern .info-label {
        font-size: 18px;
      }
      
      .info-item-modern .info-value {
        font-size: 19px;
      }
      
      .info-group-title {
        font-size: 12px;
      }
      
      .menu-item {
        font-size: 0.85rem;
      }
    }
    
    @media (max-width: 767px) {
      .filter-results-header h4 {
        font-size: 12px;
        left: 10px;
      }
      
      .export-filter-btn {
        font-size: 10px;
        padding: 5px 10px;
      }
      
      
      .info-item-modern .info-label {
        font-size: 16px;
      }
      
      .info-item-modern .info-value {
        font-size: 17px;
      }
      
      .info-group-title {
        font-size: 14.4px;
      }
      
      .menu-item {
        font-size: 0.8rem;
      }
      
      .title-top {
        font-size: clamp(8px, 1vw + 4px, 12px);
      }
    }
    
    .export-filter-btn {
      background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
      color: white;
      border: none;
      border-radius: 0.9px;
      padding: 8px 16px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    
    .export-filter-btn:hover {
      background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
      transform: translateY(-1px);
    }
    
    .export-buttons-group {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }
    
    
    .resource-segment-table {
      width: 100%;
      border-collapse: collapse;
      margin: 20px 0;
      background: white;
      border-radius: 2.4px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .resource-segment-container {
      padding: 0 20px;
      margin: 20px 0;
      position: relative;
    }
    
    .resource-segment-export-btn {
      position: absolute;
      top: 5px;
      right: 20px;
      background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
      color: white;
      border: none;
      border-radius: 0.9px;
      padding: 6px 12px;
      font-size: 11px;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
      transition: all 0.2s ease;
      z-index: var(--z-sticky);
    }
    
    .resource-segment-export-btn:hover {
      background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
      transform: translateY(-1px);
    }
    
    .resource-segment-export-btn:active {
      transform: translateY(0);
    }
    
    .resource-segment-table th,
    .resource-segment-table td {
      padding: 6px 0px;
      text-align: center;
      border: 1px solid #e5e7eb;
      font-size: 15px;
      line-height: 1.2;
    }
    
    .resource-segment-table th {
      background: #10b981;
      font-weight: 700;
      color: #ffffff;
      text-shadow: 0 1px 2px rgba(0,0,0,0.3);
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      padding: 8px 1px !important;
      font-size: 16px !important;
      line-height: 1.2 !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      text-transform: uppercase !important;
    }
    
    .resource-segment-table .group-name {
      text-align: left;
      font-weight: 600;
      background: #f1f5f9;
    }
    
    .resource-segment-table .manulife-pro-sub {
      padding-left: 20px !important;
      font-style: italic !important;
    }
    
    .resource-segment-table .manulife-pro-sub-row td {
      font-style: italic !important;
    }
    
    .resource-segment-table .total-row {
      background: #e0f2fe;
      font-weight: 700;
    }
    
    .resource-segment-table .pro-total-row {
      background: #f3e8ff;
      font-weight: 600;
    }
    
    /* Portrait responsive resource segment table */
    @media (max-width: 767px) {
      .resource-segment-table th,
      .resource-segment-table td {
        padding: 4px 0px;
        font-size: 13px;
        line-height: 1.1;
      }
      
      .resource-segment-table th {
        background: #10b981 !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        padding: 6px 0px !important;
        font-size: 14px !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        text-transform: uppercase !important;
      }
      
      .resource-segment-table .manulife-pro-sub {
        padding-left: 15px !important;
      }
      
      .resource-segment-table .manulife-pro-sub-row td {
        font-style: italic !important;
      }
      
      .resource-segment-export-btn {
        top: 5px;
        right: 15px;
        padding: 4px 8px;
        font-size: 9px;
        z-index: var(--z-header);
      }
      
      
      .resource-segment-table {
        position: relative;
        overflow-x: auto;
      }
      
      .resource-segment-table th:first-child,
      .resource-segment-table td:first-child {
        position: sticky;
        left: 0;
        background: #f8f9fa;
        z-index: var(--z-sticky-high);
        border-right: 2px solid #e5e7eb;
      }
      
      .resource-segment-table td:first-child {
        background: white;
      }
      
      .resource-segment-table .group-name {
        background: #f1f5f9 !important;
        font-weight: 600;
      }
      
      .resource-segment-table .total-row td:first-child {
        background: #e0f2fe !important;
      }
      
      .resource-segment-table .pro-total-row td:first-child {
        background: #f3e8ff !important;
      }
    }
    
    @media (max-width: 767px) {
      .resource-segment-table th,
      .resource-segment-table td {
        padding: 3px 0px;
        font-size: 12px;
        line-height: 1.0;
      }
      
      .resource-segment-table th {
        padding: 4px 0px !important;
        font-size: 13px !important;
        line-height: 1.0 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        text-transform: uppercase !important;
      }
      
      .resource-segment-table .manulife-pro-sub {
        padding-left: 12px !important;
      }
      
      .resource-segment-table .manulife-pro-sub-row td {
        font-style: italic !important;
      }
      
      .resource-segment-export-btn {
        top: 5px;
        right: 10px;
        padding: 3px 6px;
        font-size: 8px;
        z-index: var(--z-header);
      }
      
      
      .resource-segment-table {
        position: relative;
        overflow-x: auto;
      }
      
      .resource-segment-table th:first-child,
      .resource-segment-table td:first-child {
        position: sticky;
        left: 0;
        background: #f8f9fa;
        z-index: var(--z-sticky-high);
        border-right: 2px solid #e5e7eb;
      }
      
      .resource-segment-table td:first-child {
        background: white;
      }
      
      .resource-segment-table .group-name {
        background: #f1f5f9 !important;
        font-weight: 600;
      }
      
      .resource-segment-table .total-row td:first-child {
        background: #e0f2fe !important;
      }
      
      .resource-segment-table .pro-total-row td:first-child {
        background: #f3e8ff !important;
      }
    }
    
    
    .target-table {
      width: 100%;
      border-collapse: collapse;
      margin: 0;
      background: white;
      border-radius: 2.4px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .target-table th,
    .target-table td {
      padding: 6px 0px;
      text-align: center;
      vertical-align: middle;
      border: 1px solid #e5e7eb;
      font-size: 15px;
      line-height: 1.2;
    }
    
    .target-table th {
      background: #10b981 !important;
      font-weight: 700;
      color: #ffffff;
      text-shadow: 0 1px 2px rgba(0,0,0,0.3);
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      padding: 8px 1px !important;
      font-size: 16px !important;
      line-height: 1.2 !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      border: 1px solid #ffffff !important;
      text-transform: uppercase !important;
    }
    
    
    .target-table thead th,
    .target-table th[rowspan],
    .target-table th[colspan] {
      background: #10b981 !important;
      color: #ffffff !important;
      border: 1px solid #ffffff !important;
    }
    
    
    
    .target-table tr:nth-child(even) {
      background: #f9fafb;
    }
    
    .target-table tr:hover {
      background: #f3f4f6;
    }
    
    .target-container {
      padding: 0 20px;
      margin: 10px 0;
      position: fixed;
      top: calc(var(--header-h) + 35px + 120px + 30px - 30px);
      left: var(--sidebar-width);
      right: 0;
      bottom: calc(var(--footer-h) + 10px);
      overflow-y: auto;
    }
    
    
    body:not(.sidebar-open) .target-container {
      left: 0;
    }
    
    
    body.sidebar-open .target-container {
      left: var(--sidebar-width);
    }
    
    
    
    
    .target-table th:first-child,
    .target-table td:first-child {
      position: sticky;
      left: 0;
      z-index: var(--z-sticky);
      background: #f8f9fa;
      border-right: 1px solid #e5e7eb;
    }
    
    .target-table td:first-child {
      background: white;
      z-index: var(--z-sticky-under);
    }
    
    .target-table tr:nth-child(even) td:first-child {
      background: #f9fafb;
    }
    
    .target-table tr:hover td:first-child {
      background: #f3f4f6;
    }
    
    .target-export-btn {
      position: absolute;
      top: 0px;
      right: 20px;
      background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
      color: white;
      border: none;
      border-radius: 0.9px;
      padding: 6px 12px;
      font-size: 11px;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
      transition: all 0.2s ease;
      z-index: var(--z-sticky);
    }
    
    .target-export-btn:hover {
      background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
      transform: translateY(-1px);
    }
    
    .target-export-btn:active {
      transform: translateY(0);
    }
    
    /* Portrait responsive target table */
    @media (max-width: 767px) {
      .target-table th,
      .target-table td {
        padding: 4px 0px;
        font-size: 13px;
        line-height: 1.1;
      }
      
      .target-table th {
        background: #10b981 !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        padding: 6px 0px !important;
        font-size: 14px !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        border: 1px solid #ffffff !important;
        text-transform: uppercase !important;
      }
      
      
      
      
      .target-table th:first-child,
      .target-table td:first-child {
        position: sticky;
        left: 0;
        z-index: var(--z-sticky);
        background: #f8f9fa;
        border-right: 1px solid #e5e7eb;
        box-shadow: 2px 0 4px rgba(0,0,0,0.1);
      }
      
      .target-table td:first-child {
        background: white;
        z-index: var(--z-sticky-under);
      }
      
      .target-table tr:nth-child(even) td:first-child {
        background: #f9fafb;
      }
      
      .target-table tr:hover td:first-child {
        background: #f3f4f6;
      }
    }
    
    @media (max-width: 767px) {
      .target-table th,
      .target-table td {
        padding: 3px 0px;
        font-size: 12px;
        line-height: 1.0;
      }
      
      .target-table th {
        padding: 4px 0px !important;
        font-size: 13px !important;
        line-height: 1.0 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        border: 1px solid #ffffff !important;
        text-transform: uppercase !important;
      }
      
      
      .target-table th:first-child,
      .target-table td:first-child {
        position: sticky;
        left: 0;
        z-index: var(--z-sticky);
        background: #f8f9fa;
        border-right: 1px solid #e5e7eb;
        box-shadow: 2px 0 4px rgba(0,0,0,0.1);
      }
      
      .target-table td:first-child {
        background: white;
        z-index: var(--z-sticky-under);
      }
      
      .target-table tr:nth-child(even) td:first-child {
        background: #f9fafb;
      }
      
      .target-table tr:hover td:first-child {
        background: #f3f4f6;
      }
    }
    
    /* CSS cho prediction results */
    .prediction-result {
      border-top: 2px solid #e9ecef;
      margin-top: 16px;
      padding-top: 16px;
    }
    
    .prediction-success {
      color: #025b48 !important;
      font-weight: bold !important;
    }
    
    .prediction-lost {
      color: #dc2626 !important;
      font-weight: bold !important;
    }
    
    .prediction-no-data {
      color: #6b7280 !important;
      font-weight: bold !important;
      font-style: italic !important;
    }
    
    
    .filter-btn {
      background: linear-gradient(135deg, #10b981 0%, #025b48 100%) !important;
      color: white !important;
      border: 2px solid #047857 !important;
    }
    
    .filter-btn:hover {
      background: linear-gradient(135deg, #025b48 0%, #047857 100%) !important;
      transform: translateY(-2px);
    }
    
    .mdrt-btn {
      background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
      color: white;
    }
    
    .mdrt-btn:hover {
      background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
      transform: translateY(-2px);
    }
    
    .mdrt-quy-btn {
      background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
      color: white;
    }
    
    .mdrt-quy-btn:hover {
      background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
      transform: translateY(-2px);
    }
    
    .um-btn {
      background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
      color: white;
    }
    
    .um-btn:hover {
      background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
      transform: translateY(-2px);
    }
    
    .pro-potential-btn {
      background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
      color: white;
    }
    
    .pro-potential-btn:hover {
      background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
      transform: translateY(-2px);
    }
    
    .filter-results {
      position: fixed;
      top: calc(var(--header-h) + 35px + 120px + 30px - 30px - 8px);
      left: var(--sidebar-width);
      right: 0;
      bottom: calc(var(--footer-h) + 10px);
      background: #fff;
      border-radius: 0; 
      box-shadow: none; 
      z-index: var(--z-banner); 
      margin: 0 14px;
      overflow-y: auto;
      padding: 0;
    }
    
    .pro-results {
      padding: 20px;
    }
    
    .pro-results h4 {
      margin: 0 0 16px 0;
      color: #0b3d2c;
      font-size: 16px;
      font-weight: 700;
      text-align: center;
    }
    

    /* ===== AGENT SELECTION ===== */
    .agent-selection {
      position: fixed;
      top: calc(var(--header-h) + 35px - 20px - 10px - 10px);
      left: var(--sidebar-width);
      right: 0;
      background: #fff;
      border-radius: 0; 
      z-index: var(--z-header);
      margin: 0 14px;
    }

    .selection-container {
      padding: 8px 20px 0px 20px; 
      text-align: center;
    }
    
    /* ===== SEARCH RESULTS ===== */
    .search-result {
      position: fixed;
      top: calc(var(--header-h) + 35px + 120px + 30px - 30px - 10px - 8px);
      left: var(--sidebar-width);
      right: 0;
      bottom: calc(var(--footer-h) + 10px);
      background: #fff;
      border-radius: 0; 
      box-shadow: none; 
      z-index: var(--z-mid);
      margin: 0 14px;
      overflow-y: auto;
      padding: 30px 0 0 0;
    }
    
    
    body:not(.sidebar-open) .agent-selection,
    body:not(.sidebar-open) .search-result,
    body:not(.sidebar-open) .filter-results {
      left: 0;
    }
    
    
    body.sidebar-open .agent-selection,
    body.sidebar-open .search-result,
    body.sidebar-open .filter-results {
      left: var(--sidebar-width);
    }

    /* H2 removed - no longer needed */

    .search-wrapper {
      display: flex;
      flex-direction: row;
      gap: 12px;
      align-items: center;
    }

    .agent-search-input {
      width: 100%;
      max-width: 300px;
      height: 44px;
      padding: 0 15px;
      font-size: 16px;
      border: 2px solid #e5e7eb;
      border-radius: 3px;
      background: #fff;
      color: #0b3d2c;
      font-weight: 600;
      outline: none;
      transition: border-color 0.3s ease;
    }

    .agent-search-input:focus {
      border-color: #0ea35b;
    }

    .search-agent-btn {
      height: 44px;
      padding: 0 24px;
      background: #0ea35b;
      color: #fff;
      border: none;
      border-radius: 3px;
      font-weight: 800;
      font-size: 14px; 
      cursor: pointer;
      transition: all 0.3s ease;
      min-width: 120px;
    }

    .search-agent-btn:hover {
      background: #025b48;
      transform: translateY(-1px);
    }

    .view-my-report-btn {
      height: 44px;
      padding: 0 24px;
      background: #3b82f6;
      color: #fff;
      border: none;
      border-radius: 3px;
      font-weight: 800;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.3s ease;
      min-width: 120px;
    }

    .view-my-report-btn:hover {
      background: #2563eb;
      transform: translateY(-1px);
    }

    .search-result {
      margin-top: 20px;
      padding: 0px 20px 20px 20px;
      background: #f8fafc;
      border-radius: 3px;
      border: 2px solid #e5e7eb;
      text-align: center;
    }

    .result-info {
      margin-bottom: 15px;
    }

    .agent-name {
      font-size: 18px;
      font-weight: 900;
      color: #0b3d2c;
      margin-bottom: 5px;
    }

    .agent-msdl {
      font-size: 14px;
      font-weight: 600;
      color: #6b7280;
    }

    .view-report-btn {
      height: 44px;
      padding: 0 24px;
      background: #0ea35b;
      color: #fff;
      border: none;
      border-radius: 3px;
      font-weight: 800;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.3s ease;
      min-width: 150px;
    }

    .view-report-btn:hover:not(:disabled) {
      background: #025b48;
      transform: translateY(-1px);
    }

    .view-report-btn:disabled {
      background: #9ca3af;
      cursor: not-allowed;
      transform: none;
    }

    /* ===== AGENT RESULTS LIST ===== */
    .agent-results {
      height: 100%;
      overflow-y: auto;
      padding: 0 16px 16px 16px; 
    }
    
    .agent-results::-webkit-scrollbar {
      width: 6px;
    }
    
    .agent-results::-webkit-scrollbar-track {
      background: #f1f5f9;
      border-radius: 3px;
    }
    
    .agent-results::-webkit-scrollbar-thumb {
      background: #0ea5e9;
      border-radius: 3px;
    }
    
    .agent-results::-webkit-scrollbar-thumb:hover {
      background: #0284c7;
    }
    
    .agent-result-item {
      display: flex;
      justify-content: center;
      margin-bottom: 8px;
      padding: 0 8px;
    }
    
    .agent-result-btn {
      width: 98%;
        background: #cffafe;
      border: 1px solid #0ea5e9;
      border-radius: 2.4px;
      padding: 4px 16px;
      cursor: pointer;
      transition: all 0.2s ease;
      text-align: left;
    }
    
    .agent-result-btn:hover {
      background: #e0f2fe;
      border-color: #0284c7;
      transform: translateY(-1px);
      box-shadow: 0 2px 4px rgba(14, 165, 233, 0.2);
    }
    
    .agent-result-name {
      font-size: 16px;
      font-weight: 700;
      color: #1e293b;
      margin-bottom: 0;
      text-transform: uppercase;
    }
    
    .agent-result-details {
      font-size: 16px;
      color: #64748b;
    }
    
    .no-results {
      text-align: center;
      color: #6b7280;
      margin-top: 20px;
      padding: 20px;
      font-style: italic;
    }

    /* ===== REFACTOR: BO LOC RESPONSIVE TOKEN ===== */
    .manulife-pro-filters {
      width: 100%;
      margin-left: 0;
      margin-right: 0;
    }

    .filter-buttons {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px 8px;
    }

    .filter-btn,
    .view-other-btn {
      width: 100% !important;
      min-width: 0;
      text-align: center;
    }

    @media (min-width: 1024px) {
      .manulife-pro-filters {
        min-height: 490px;
        padding: 30px 20px;
      }

      .filter-buttons {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px 6px;
      }
    }

    @media (min-width: 768px) and (max-width: 1023px) {
      .manulife-pro-filters {
        min-height: 540px;
        padding: 35px 25px;
      }

      .filter-buttons {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px 8px;
        max-height: 550px;
        overflow-y: auto;
      }
    }

    @media (max-width: 767px) {
      .manulife-pro-filters {
        min-height: 510px;
        padding: 20px 10px;
        border-radius: 0;
        box-shadow: none;
      }

      .filter-buttons {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px 6px;
      }

      .filter-btn {
        padding: 12px 4px;
        font-size: 11px;
        height: 70px;
        line-height: 1.2;
      }
    }

    @media (min-aspect-ratio: 9/10) and (max-aspect-ratio: 11/10) and (max-width: 1023px) {
      .filter-buttons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }



