:root {
    --opportunity-target-market:#FFE699;
    --opportunity-sbi:#C0E6F5;
    --opportunity-sbe:#83CCEB;
    --opportunity-mbi:#0070C0;
    --opportunity-dbe:#D0D0D0;
}

#app.app-loading {
  opacity: 0;
}

.search-container {
    xbackground: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    background-color:#005b99;
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.filter-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3b82f6;
}

.stats-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    border-top: 3px solid #5b616b;
}

.stats-number {
    font-size: 3rem;
    font-weight: bold;
    color: #005B99;
    display: block;
}

.stats-label {
    color: #212121;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.highlight {
    background-color: #fef3c7;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.table-container {
    background: white;
    border: 1px solid #dce4ef;
   
  
    max-width: 100vw;
    overflow-x: auto;         
    margin-bottom: 10px;
}

#app.app-scrollmode .table-container {
    max-height: 60vh;
    overflow-y: auto;
}

#app.app-scrollmode .mobile-view {
    max-height: 60vh;
    overflow-y: auto;
    

}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.btn-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-info {
    background-color: #e0f2fe;
    border-color: #81d4fa;
    color: #01579b;
}

.cell-value {
    font-size: 0.8em;
    font-weight: 400;
}

.cell-lg {
    max-width: 250px;
    width: 250px;
}

.cell-md {
    max-width: 200px;
    width: 200px;
}

.no-text-wrap {
    white-space: nowrap;
}

.thead-sticky {
    position: sticky;
    top: 0;
    left: 0;
    background-color: #FFF;        
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table .thead-sticky tr th {
    vertical-align: middle;
  
}

.th-content {
  display:flex;
  flex-direction:row;
  align-items: center;
  justify-content: space-between;
}

#buyingPlanTable {
    margin-bottom: 0px;

    td {
        font-family: sans-serif

    }
}


/* Sortable column styles */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.sortable:hover {
    background-color: #f8f9fa !important;
}

.sort-icon {
    margin-left: 0.5rem;
    opacity: 0.6;
    font-size: 0.8em;
    transition: opacity 0.2s ease;
}

.sortable:hover .sort-icon {
    opacity: 1;
}

.fa-sort-up,
.fa-sort-down {
    opacity: 1 !important;
    color: #3b82f6;
}

/* Badge styles for mobile */
.badge-value {
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8em;
    font-weight: 600;
}

.badge-agency {
    background-color: #f3e5f5;
    color: #4a148c;
}

.badge-contract {
    background-color: #e8f5e8;
    color: #1b5e20;
}

.badge-funding {
    background-color: #fff3e0;
    color: #e65100;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .mobile-row {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin-bottom: 1rem;
    }
    
    .mobile-main-info {
        padding: 1rem;
        background: #f8f9fa;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        position:relative;
    }

    .mobile-main-info:hover {
        cursor:pointer;
        outline:1px solid #d1d1d1;
    }
      
    .mobile-agency {
        font-weight: bold;
        color: #005899;
        font-size: 1em;
        margin-bottom: 0.5rem;
    }
    
    .mobile-project {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        color: #333;
    }
    
    .mobile-value {
        font-weight: bold;
        color: #1565c0;
        font-size: 0.9rem;
    }
    
    .mobile-expand-btn {
      
        color: #000;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        font-size: 0.85rem;
        cursor: pointer;
        transition: all 0.2s ease;
        width: 100%;
        margin-top: 0.5rem;
        position:absolute;
        top:5px;
        right:5px;
        width:fit-content;
        height:30px;
      
      
    }
    .mobile-expand-btn-label {
      margin-left:5px;
    }

    

    
    .mobile-details {
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        padding: 1rem;
        margin-top: 0.5rem;
        display: none;
    }
    
    .mobile-details.show {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
            padding-top: 0;
            padding-bottom: 0;
        }
        to {
            opacity: 1;
            max-height: 500px;
            padding-top: 1rem;
            padding-bottom: 1rem;
        }
    }
    
    .mobile-detail-item {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #f1f3f4;
    }
    
    .mobile-detail-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .mobile-detail-label {
        font-weight: 600;
        color: #666;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.25rem;
    }
    
    .mobile-detail-value {
        color: #333;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Hide desktop table on mobile */
    .desktop-table {
        display: none;
    }
    
    .mobile-view {
        display: block;
        
    }
}

/* Desktop styles */
@media (min-width: 769px) {
    .desktop-table {
        display: block;
    }
    
    .mobile-view {
        display: none;
    }
}





tr.opportunity-target-market
{

     background-color:var(--opportunity-target-market)
}

tr.opportunity-sbi
{
    background-color:  var(--opportunity-sbi);
}

tr.opportunity-sbe
{
     background-color:  var(--opportunity-sbe) ;
}

tr.opportunity-mbi
{
     background-color:  var(--opportunity-mbi);
     color:#FFF;
}

tr.opportunity-dbe
{
    background-color:  var(--opportunity-dbe) !important;
}

table#buyingPlanTable tbody tr:hover {
    outline:2px solid #3b82f6;
}

.mobile-row.opportunity-target-market .mobile-main-info {
    outline:2px solid var(--opportunity-target-market) !important;
}

.mobile-row.opportunity-sbi .mobile-main-info {
    outline:2px solid var(--opportunity-sbi) !important;
}

.mobile-row.opportunity-sbe .mobile-main-info {
    outline:2px solid var(--opportunity-sbe) !important;
}

.mobile-row.opportunity-mbi .mobile-main-info {
    outline:2px solid var(--opportunity-mbi) !important;
}

.mobile-row.opportunity-dbe .mobile-main-info {
    outline:2px solid var(--opportunity-dbe) !important;
}




