/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* CLEAN UP CSS */

.ss1 .meter-clear-button {
    margin-top: -147px;
}

.page-id-683 .parent-section .container {
    padding: 0px !important;
    margin: 0px !important;
}

.meter-build-search-container h1.meter-page-title {
    font-size: 50px !important;
    max-width: 60%;
    margin-top: 70px;
}

.meter-section-title p {
    margin: 4px 0 0;
    color: #464B64;
    font-size: 10px !important;
    font-weight: 300;
    text-transform: none !important;
    letter-spacing: 0px !important;
    max-width: 85%;
    line-height: 150%;
}

 /* 🌎 GENERAL */

 * {
   font-family: "Public Sans", serif;
   font-optical-sizing: auto;
   font-style: normal;
 }
 
 h3 {
    font-size: 18px !important;
    text-transform: none !important;
    letter-spacing: 0px;
    color: #443F68;
}

 body {
    background-color: #FDFAF8;
    padding: 0px;
    margin: 0px;
}

p.psmall {
    font-size: 10px !important;
    color: #101827;
    font-weight: 300;
    line-height: 150% ! IMPORTANT;
}

.meter-build-search-container [type="radio"]:checked, [type="radio"]:not(:checked) {
    position: relative;
    text-indent: unset;
    float: unset;
    left: 0px !important;
}

/* ADMIN */

.usaspending-controls {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.date-input {
    width: 140px;
}

.setting-item {
    display: flex;
    align-items: center;
}

.setting-item label {
    margin-right: 10px;
    font-weight: 500;
}

.small-text {
    width: 80px;
}

/* GWAC Upload Styles */
.gwac-upload-container {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.gwac-upload-container h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.meter-upload-status {
    margin-top: 10px;
}

.meter-upload-status .error {
    color: #dc3232;
}

.meter-upload-status .success {
    color: #46b450;
}

 /* NAV */

 p.wp-block-site-title {
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/uploads/2025/03/meter-logo.svg);
    width: 85px;
    height: 25px;
    margin-top: -11px;
    margin-left: 15px;
    color: #ff000000;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    position: fixed;
}

p.wp-block-site-title {
    z-index: 9;
    position: fixed;
    display: block;
}

 body.page-template-default.page:before {
    content: '';
    width: 100%;
    background-color: #443F68;
    display: block;
    position: fixed;
    height: 46px;
    z-index: 9;
}
 
 /* 📃 Search Form Styles */

 .meter-search-container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 20px;
 }
 
 .meter-search-form {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #00000017;
}
 
 .meter-search-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
     gap: 20px;
     margin-bottom: 20px;
 }
 
 .meter-form-group {
     margin-bottom: 15px;
 }
 
 .meter-form-label {
     display: block;
     margin-bottom: 5px;
     font-weight: 500;
 }
 
 .meter-form-input {
     width: 100%;
     padding: 8px;
     border: 1px solid #ddd;
     border-radius: 4px;
 }

 /* TREEMAP */

 .data-container {
    width: 100%;
    height: 500px;
    position: relative;
    margin-bottom: 20px;
}

/* Keep the loading indicator centered in the container */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Treemap visualization container styles */
#naics-data-list {
    width: 100%;
    height: 500px;
    position: relative;
    padding: 0;
    margin: 0;
    list-style: none; /* Remove the default list styling */
    overflow: hidden; /* Ensure the SVG stays contained */
}

/* Treemap SVG styles */
.treemap-visualization {
    width: 100%;
    height: 100%;
}

/* Cell hover effect */
.treemap-visualization .cell:hover rect {
    opacity: 0.8;
    stroke: #333;
    stroke-width: 2px;
}

/* Make text labels more readable */
.treemap-visualization .cell text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
}

 /* BUILD SEARCH */

 /* Add this at the top of build-search.php inside a <style> tag */
.meter-clear-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 12px;
    line-height: 1;
    z-index: 10;
    display: none; /* Hidden by default */
  }
  
  .meter-clear-button:hover {
    background: #999;
  }
  
  .meter-field-wrapper {
    position: relative;
  }

 h1.has-text-align-center.wp-block-post-title {
    display: none;
}

 h1.meter-page-title {
    color: #443f68;
    font-size: 32px;
    font-weight: 700;
}

 .titlediv-left {
    width: 43px;
    height: 43px;
    float: left;
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/seal-search.svg);
    background-size: contain;
}

 .ss3 .meter-checkboxes-container, .ss3 .meter-radio-group {
    column-count: 2;
}

 .ss3 label.meter-radio-label {
    float: left;
    width: fit-content !important;
}

.ss1 .meter-section-icon {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/seal-suitcase.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.ss2 .meter-section-icon {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/seal-scope.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.ss3 .meter-section-icon {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/seal-vendor.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.ss4 .meter-section-icon {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/seal-doc.svg);
    background-repeat: no-repeat;
    background-size: contain;
}


label[for="search_keywords"]:before {
    content: '';
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/icon-bs-keywords.svg);
    width: 24px;
    display: inline-block;
    height: 24px;
    margin-bottom: -7px;
    transform: translateX(-7px);
}



 label[for="naics_code"]:before {
    content: '';
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/icon-bs-naics.svg);
    width: 24px;
    display: inline-block;
    height: 24px;
    margin-bottom: -7px;
    transform: translateX(-7px);
}

label[for="psc_code"]:before {
    content: '';
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/icon-bs-psc.svg);
    width: 24px;
    display: inline-block;
    height: 24px;
    margin-bottom: -7px;
    transform: translateX(-7px);
}

label[for="contract_value"]:before {
    content: '';
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/icon-bs-price.svg);
    width: 24px;
    display: inline-block;
    height: 24px;
    margin-bottom: -7px;
    transform: translateX(-7px);
}

label[for="duration"]:before {
    content: '';
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/icon-bs-duration.svg);
    width: 24px;
    display: inline-block;
    height: 24px;
    margin-bottom: -7px;
    transform: translateX(-7px);
}

label[for="agency"]:before {
    content: '';
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/icon-bs-agency.svg);
    width: 24px;
    display: inline-block;
    height: 24px;
    margin-bottom: -7px;
    transform: translateX(-7px);
}

.meter-location-options:before {
    content: '';
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/icon-bs-location.svg);
    width: 24px;
    display: inline-block;
    height: 24px;
    margin-bottom: -7px;
    transform: translateX(-7px);
}

label.meter-field-label.lab-assp:before {
    content: '';
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/icon-bs-growth.svg);
    width: 24px;
    display: inline-block;
    height: 24px;
    margin-bottom: -7px;
    transform: translateX(-7px);
}

label.meter-field-label.lab-otherent:before {
    content: '';
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/icon-bs-entities.svg);
    width: 24px;
    display: inline-block;
    height: 24px;
    margin-bottom: -7px;
    transform: translateX(-7px);
}

label.meter-field-label.lab-comps:before {
    content: '';
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/icon-bs-biz-size.svg);
    width: 24px;
    display: inline-block;
    height: 24px;
    margin-bottom: -7px;
    transform: translateX(-7px);
}

label.meter-field-label.lab-contt:before {
    content: '';
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/icon-bs-contract.svg);
    width: 24px;
    display: inline-block;
    height: 24px;
    margin-bottom: -7px;
    transform: translateX(-7px);
}

label.meter-field-label.lab-agencies:before {
    content: '';
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/icon-bs-agency.svg);
    width: 24px;
    display: inline-block;
    height: 24px;
    margin-bottom: -7px;
    transform: translateX(-7px);
}

label.meter-field-label.lab-subagencies:before {
    content: '';
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/icon-bs-biz-size.svg);
    width: 24px;
    display: inline-block;
    height: 24px;
    margin-bottom: -7px;
    transform: translateX(-7px);
}

label.meter-field-label.lab-contvv:before {
    content: '';
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/icon-bs-vehicle.svg);
    width: 24px;
    display: inline-block;
    height: 24px;
    margin-bottom: -7px;
    transform: translateX(-7px);
}

label.meter-field-label.lab-vendor:before {
    content: '';
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/icon-shop.svg);
    width: 24px;
    display: inline-block;
    height: 24px;
    margin-bottom: -7px;
    transform: translateX(-7px);
}

label.meter-field-label.lab-samcheck:before {
    content: '';
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/icon-shop.svg);
    width: 24px;
    display: inline-block;
    height: 24px;
    margin-bottom: -7px;
    transform: translateX(-7px);
}

/* UPSTARTS STYLES */

/* Upstarts Section Styling */
#meter-upstarts-container {
    margin-top: 40px;
    padding: 30px;
    background-color: #f7f4ff;
    border-radius: 8px;
}

.meter-upstarts-header {
    margin-bottom: 20px;
}

.meter-upstarts-header h2 {
    color: #4a3e80;
    font-size: 24px;
    margin-bottom: 10px;
}

.meter-upstarts-header p {
    color: #555;
    max-width: 600px;
}

.meter-upstarts-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.meter-upstart-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.meter-upstart-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.meter-upstart-location, .meter-upstart-uei {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.meter-innovation-records h4 {
    font-size: 14px;
    color: #888;
    margin: 15px 0 10px;
    text-transform: uppercase;
}

.meter-innovation-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.meter-innovation-type {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.sbir-badge, .patent-badge {
    background: #4a3e80;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.meter-upstart-card {
    border: 1px solid #0000002b;
    padding: 20px;
    background-color: white;
    margin-bottom: 23px;
    border-radius: 10px;
}

.patent-badge {
    background: #445e80;
}

.innovation-year {
    color: #888;
    font-size: 12px;
}

.meter-innovation-description {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

/* RESULTS TRANSITION */

/* Add this to your existing CSS */
.meter-quick-results.results-mode {
    background-color: #f5f7fa;  /* Slightly different background */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 20px;
  }


 /* Results Styles */

 .vendor-results-titles h3:before {
    content: '';
    display: inline-block;
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/plugins/meter-search/assets/seal-vendor.svg);
    width: 50px;
    height: 50px;
    background-size: contain;
    transform: translate(-62px, -13px);
    POSITION: ABSOLUTE;
}

h3.meter-vendor-name.clickable {
    cursor: pointer;
    margin-left: 60px;
    width: calc(100% - 71px);
    margin-top: 12px;
}

p.rel-awards:before {
    content: '';
    background-image: url(https://maxbat4.dreamhosters.com/wp-content/uploads/2025/04/rel-award.svg);
    width: 19px;
    height: 19px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    transform: translate(1px, 6px);
}

 h3.meter-vendor-name.clickable::first-letter {
    text-transform: uppercase;
}

 h3.meter-vendor-name.clickable {
    text-transform: lowercase;
}

p.rel-awards {
    clear: both;
    color: #4f47e6 !important;
	font-weight:600;
}

 p.uei, p.vendor-city {
    float: left;
}

p.vendor-city {
    padding-left: 23px;
}

.vendor-results-titles, .vendor-results-graph {
    float: left;
    width: 50%;
    overflow: auto;
}

.vendor-results-graph {
    background-color: #f4f4ff;
    height: 120px;
    padding-bottom: 71px;
    overflow: hidden;
    border-radius: 3px;
}

.meter-glance-grid .meter-vendor-metrics {
    margin-top: 0px;
    padding-top: 0px;
    border-top: none;
}


.meter-at-a-glance h2.meter-section-title {
    text-align: center;
    border-bottom: 1px solid #00000021;
    padding: 11px 0px !important;
    margin-top: -24px;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.meter-vendor-card {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 7px;
    border: 1px solid #0000000f;
    overflow: auto;
    position: relative;
    box-shadow: 0px 6px 10px #00000017;
}

 .meter-results-container {
     background: #fff;
     padding: 20px;
     border-radius: 8px;
     box-shadow: 0 2px 4px rgba(0,0,0,0.1);
 }
 
 .meter-result-item {
     padding: 15px;
     border-bottom: 1px solid #eee;
 }
 
 .meter-result-item:last-child {
     border-bottom: none;
 }
 
 .meter-result-header {
     margin-bottom: 10px;
 }
 
 .meter-result-title {
     font-size: 18px;
     font-weight: 600;
     color: #333;
 }
 
 .meter-result-meta {
     font-size: 14px;
     color: #666;
     margin-top: 5px;
 }

 /* RESULTS PAGINATION */

 .meter-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
    align-items: center;
}

.meter-pagination a, .meter-pagination span {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.meter-pagination a:hover {
    background-color: #f5f5f5;
}

.meter-pagination a.current {
    background-color: #393657;
    color: white;
    border-color: #393657;
}

.meter-pagination .page-ellipsis {
    border: none;
}
 
 /* Pagination Styles */
 .meter-pagination {
     margin-top: 20px;
     display: flex;
     justify-content: center;
     gap: 10px;
 }
 
 .meter-page-link {
     padding: 8px 12px;
     border: 1px solid #ddd;
     border-radius: 4px;
     text-decoration: none;
     color: #333;
 }
 
 .meter-page-link.active {
     background: #007bff;
     color: #fff;
     border-color: #007bff;
 }
 
 .meter-metrics-grid {
     display: grid;
     grid-template-columns: 1fr 1fr 3fr !important;
     gap: 16px;
     margin-top: 8px;
     width: calc(100% - 170px) !important;
 }
 

 
 .meter-metric-title {
     font-size: 14px;
     color: #6b7280;
     margin-bottom: 8px;
 }
 
 .meter-metric-value {
     font-size: 24px;
     font-weight: 600;
     color: #111827;
 }
 
 .meter-top-agencies-list {
     display: flex;
     flex-direction: column;
     gap: 8px;
 }
 
 .meter-agency-item {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 8px;
     background: #f9fafb;
     border-radius: 4px;
 }

 .meter-department-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #f9fafb;
    border-radius: 4px;
}
 
 .meter-agency-name {
     font-weight: 500;
     color: #374151;
 }
 
 .meter-agency-count {
     font-size: 14px;
     color: #6b7280;
 }
 
 .meter-no-agencies, .meter-no-departments {
    color: #6b7280;
    font-style: italic;
    text-align: left;
    padding: 10px 0px;
}
 
 .meter-vendor-metrics {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    width: 100%;
    float: none;
    clear: both;
}
 
 .meter-avg-award {
     font-weight: 600;
     color: #2563eb;
     margin-bottom: 10px;
 }
 
 .meter-vendor-agencies h4 {
     margin: 0 0 8px 0;
     font-size: 14px;
     color: #4b5563;
 }

 .meter-vendor-agencies ol {
     margin: 0;
     padding-left: 20px;
 }

 .meter-vendor-agencies li {
     margin-bottom: 4px;
     color: #374151;
 }

 /* Business Type Pills */
 .meter-vendor-business-types {
     margin-top: 12px;
 }

 .meter-vendor-business-types h4 {
     margin: 0 0 8px 0;
     font-size: 14px;
     color: #4b5563;
 }

 .business-type-pills {
     display: flex;
     flex-wrap: wrap;
     gap: 6px;
 }

 .business-type-pill {
     display: inline-block;
     padding: 4px 12px;
     background-color: #e0e7ff;
     border: 1px solid #c7d2fe;
     border-radius: 16px;
     font-size: 12px;
     color: #4338ca;
     font-weight: 500;
     white-space: nowrap;
     transition: all 0.2s ease;
 }

 .business-type-pill:hover {
     background-color: #c7d2fe;
     border-color: #a5b4fc;
     transform: translateY(-1px);
     box-shadow: 0 2px 4px rgba(67, 56, 202, 0.15);
 }
 
 .meter-metrics-grid {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     gap: 16px;
     margin-top: 8px;
 }
 
 .meter-metric-card {
    border-radius: 6px;
    padding: 16px;
    border: 1px solid #443f6821 !important;
}
 
 .meter-metric-title {
     font-size: 14px;
     color: #6b7280;
     margin-bottom: 8px;
 }
 
 .meter-metric-value {
     font-size: 24px;
     font-weight: 600;
     color: #111827;
 }
 
 .meter-top-agencies-list {
     display: flex;
     flex-direction: column;
     gap: 8px;
 }
 
 .meter-agency-item {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 8px;
     background: #f9fafb;
     border-radius: 4px;
 }
 
 .meter-agency-name {
     font-weight: 500;
     color: #374151;
 }
 
 .meter-agency-count {
     font-size: 14px;
     color: #6b7280;
 }
 
 
 .meter-valid {
    border-color: #00dcbf !important;
    border-width: 3px !important;
    box-shadow: 0px 0px 20px #00dcbf99;
}

 .offnow {
    opacity: .4;
}
 
 .meter-invalid {
     border-color: #EF4444 !important;
     border-width: 2px !important;
 }
 
 .meter-input.meter-valid {
     border-color: #10B981;
     border-width: 2px;
     transition: border-color 0.2s ease;
 }
 
 .meter-input.meter-invalid {
     border-color: #EF4444;
     border-width: 2px;
     transition: border-color 0.2s ease;
 }
 
 .meter-build-search-container {
     max-width: 800px;
     margin: 0 auto;
     padding: 20px;
 }
 
 .meter-page-title {
     font-size: 24px;
     color: #111827;
     margin-bottom: 24px;
 }
 
 .meter-search-section {
    background: #422ebd08;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    padding: 20px;
    grid-template-columns: 1fr 1fr !important;
    display: grid;
    border: 1px solid #0000000f;
}
 
 .meter-section-header {
     display: flex;
     gap: 16px;
     margin-bottom: 20px;
 }
 
 .meter-icon {
     width: 24px;
     height: 24px;
     fill: #4f46e5;
 }
 
 .meter-section-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0px !important;
}
 
 .meter-section-title p {
    margin: 4px 0 0;
    color: #464B64;
    font-size: 12px !important;
    font-weight: 300;
    text-transform: none !important;
    letter-spacing: 0px !important;
    max-width: 85%;
}

.meter-field-group {
    margin-bottom: 20px;
    border: 1px solid #dcdcdc;
    padding: 15px;
    border-radius: 6px;
}

.meter-field-group label span {
    font-weight: 300;
    opacity: .9;
    font-style: normal;
}
 
 .meter-field-label {
     display: block;
     margin-bottom: 8px;
     font-weight: 500;
     color: #374151;
 }

 .meter-field-group label {
    border-bottom: 1px solid #e3e3e3;
    width: 100% !important;
    display: block;
    margin-bottom: 10px;
    padding-bottom: 6px;
    padding-left: 6px;
    color: #2f2c3e;
    font-size: 15px !important;
    font-weight: 600;
}

.meter-field-group p.psmall {
    font-style: italic;
}
 
 .meter-field-wrapper {
     display: flex;
     gap: 12px;
 }
 
 .meter-input {
     width: 100%;
     padding: 8px 12px;
     border: 1px solid #d1d5db;
     border-radius: 6px;
     font-size: 14px;
     transition: border-color 0.15s ease;
 }
 
 .meter-input:focus {
     outline: none;
     border-color: #4f46e5;
     box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
 }
 
 .meter-quick-results-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
 }
 
 .meter-quick-results-header h4 {
     margin: 0;
     font-size: 16px;
     color: #111827;
 }
 
 .meter-results-count {
     font-weight: 600;
     color: #4f46e5;
 }
 
 .meter-form-actions {
    display: flex;
        justify-content: flex-end;
        padding: 20px 0;
        position: fixed;
        bottom: 40px;
        z-index: 2;
        right: 18px;
 }
 
 .meter-button {
     padding: 8px 16px;
     border-radius: 6px;
     font-weight: 500;
     font-size: 14px;
     cursor: pointer;
     transition: all 0.15s ease;
 }
 
 .meter-button-primary {
    background: #352597;
    color: white;
    border: none;
}
 
 .meter-button-primary:hover {
     background: #4338ca;
 }
 
 .meter-button-primary:focus {
     outline: none;
     box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
 }
 
 .meter-quick-results {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 0px;
    display: block !important;
    position: fixed;
    bottom: 0px;
    width: 100vw;
    background-color: rgb(254 245 235);
    z-index: 2;
    box-shadow: 0px -4px 20px #0000000f;
    border-top: 4px solid #4f47e617;
    border-radius: 0px !important;
}
 
 .meter-metric-value.meter-results-count {
     font-size: 60px;
     font-weight: 700;
 }



 /* QUICK METRICS */

 .meter-metrics-split {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.meter-metrics-column {
    flex: 1;
    min-width: 200px;
}

.agencies-list, .departments-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 129%;
}

.agencies-list li, .departments-list li {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.agency-name, .department-name {
    font-weight: 500;
}

.contract-count {
    color: #666;
    font-size: 0.9em;
}

 .meter-export-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 15px;
}

.meter-applied-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meter-value-label {
    font-size: 9px;
    letter-spacing: 0.8px;
}

.meter-type-label {
    position: absolute;
    transform: translate(31px, -4px);
}

.filter-pill {
    display: flex;
    align-items: center;
    background-color: #ffe8c6;
    border-radius: 14px;
    padding: 4px 8px;
    margin-right: 6px;
    margin-bottom: 6px;
    border: 1px solid #00000012;
}

.filter-pill-icon {
    width: 14px;
    height: 14px;
    margin-right: 5px;
}

.filter-pill-content {
    display: flex;
    flex-direction: column;
}

.filter-pill-title {
    font-size: 9px;
    margin: 0;
    color: #6b7280;
    font-weight: 600;
    line-height: 1.2;
}

.filter-pill-value {
    font-size: 11px;
    margin: 0;
    color: #111827;
    line-height: 1.2;
}

.meter-applied-filters {
    display: flex;
    flex-wrap: wrap;
    margin-right: 10px;
}

.meter-export-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

#export-results {
    padding: 8px 16px;
    background-color: #4a5568;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

#export-results:hover {
    background-color: #2d3748;
}

/* Ensure the metrics grid can accommodate the export row */
.meter-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

/* Adjustments for when in results mode */
.results-mode .meter-metrics-grid {
    grid-template-columns: 1fr 3fr !important;
    width: calc(100% - 28px) !important;
}


.vendor-results-graph h6 {
    text-align: center;
    opacity: .5;
}

h3.meter-vendor-name.clickable {
    cursor: pointer;
}


.meter-metrics-grid.results-mode .meter-metric-card:first-child {
    grid-column: 1 / -1;
}
 
/* SPINNER */

 .meter-metric-loading {
   opacity: 0.4;
   transition: opacity 0.3s ease;
 }
 
 .meter-loading-indicator {
   display: inline-block;
   width: 60px;
   height: 6px;
   background: linear-gradient(90deg,
       rgba(79, 71, 230, 0.1) 0%,
       rgba(79, 71, 230, 0.2) 8.33%,
       rgba(79, 71, 230, 0.35) 16.66%,
       rgba(79, 71, 230, 0.5) 25%,
       rgba(79, 71, 230, 0.65) 33.33%,
       rgba(79, 71, 230, 0.8) 41.66%,
       rgba(79, 71, 230, 0.65) 50%,
       rgba(79, 71, 230, 0.5) 58.33%,
       rgba(79, 71, 230, 0.35) 66.66%,
       rgba(79, 71, 230, 0.2) 75%,
       rgba(79, 71, 230, 0.1) 83.33%,
       rgba(79, 71, 230, 0.1) 100%
   );
   background-size: 200px 100%;
   animation: led-chase 1.33s linear infinite;
   margin-left: 10px;
   vertical-align: middle;
   border-radius: 3px;
 }

 @keyframes led-chase {
   0% {
       background-position: 0px 0;
   }
   100% {
       background-position: 200px 0;
   }
 }

 /* VENDOR CONTACT INFO */

 .meter-contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.meter-contact-column {
    padding: 0 10px;
}

.meter-contact-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.meter-section-title {
    font-size: 18px;
    color: #4842b7;
    margin-bottom: 10px;
    font-weight: 600;
}

.meter-website-link {
    color: #4842b7;
    text-decoration: none;
    font-weight: 500;
}

.meter-contact-name, 
.meter-contact-email, 
.meter-address-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 16px;
}

 /* VENDOR DETAILS ICONS */
 
/* Base styling for type icons */
.meter-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #4842b7; /* Purple background */
    border-radius: 4px;
    margin-right: 10px;
    color: transparent; /* Hide the letter */
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px;
  }
  
  
  /* Section icons for the vendor details panel */
  .meter-section-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .meter-glance-grid .meter-section-icon {
    background-image: url('/wp-content/plugins/meter-search/assets/icon-bs-growth.svg');
  }
  
  .meter-vendor-contracts .meter-section-icon {
    background-image: url('/wp-content/plugins/meter-search/assets/icon-bs-contract.svg');
  }
  
  .meter-contact-information .meter-section-icon {
    background-image: url('/wp-content/plugins/meter-search/assets/icon-bs-agency.svg');
  }
 
 /* VENDOR DETAILS */

.meter-award-start, .meter-award-end, .meter-award-duration {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}
 
 /* Vendor Details Panel Styles */

 .meter-vendor-details {
    background: #e7f3ff;
    border-radius: 8px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: fixed;
    width: 100vw;
    z-index: 9;
    height: 90vh;
    overflow-y: auto;
    top: 5vh;
    left: 0;
    right: 0;
}
 
 /* Vendor Header */
 .meter-vendor-header {
     position: relative;
     margin-bottom: 24px;
 }
 
 .meter-back-button {
     display: inline-block;
     padding: 8px 16px;
     background: #f1f3f5;
     border: 1px solid #d1d5db;
     border-radius: 4px;
     font-size: 14px;
     margin-bottom: 12px;
     cursor: pointer;
     color: #4b5563;
 }
 
 .meter-back-button:hover {
     background: #e5e7eb;
 }
 
 .meter-vendor-name {
     font-size: 36px;
     font-weight: 700;
     color: #111827;
     margin: 0 0 8px 0;
 }
 
 .meter-vendor-identity {
     display: flex;
     align-items: center;
     gap: 16px;
     margin-bottom: 16px;
 }
 
 .meter-vendor-uei, .meter-vendor-location {
     padding: 4px 8px;
     background: #e5e7eb;
     border-radius: 4px;
     font-size: 14px;
     color: #4b5563;
 }
 
 /* Relevance Indicators */
 .meter-relevance-indicators {
     display: flex;
     flex-wrap: wrap;
     gap: 12px;
     margin-top: 12px;
 }
 
 .meter-relevance-tag {
     display: inline-flex;
     align-items: center;
     padding: 6px 12px;
     background: #e0e7ff;
     color: #4338ca;
     border-radius: 20px;
     font-size: 14px;
     font-weight: 500;
 }
 
 /* Section Titles */
 .meter-section-title {
     font-size: 18px;
     font-weight: 600;
     color: #6b7280;
     margin: 0 0 16px 0;
     text-transform: uppercase;
     letter-spacing: 0.05em;
 }
 
 .meter-subsection-title {
     font-size: 14px;
     font-weight: 600;
     color: #6b7280;
     margin: 0 0 12px 0;
     text-transform: uppercase;
     letter-spacing: 0.05em;
 }
 
 /* At a Glance Section */
 .meter-at-a-glance {
     background: #fff;
     border-radius: 8px;
     padding: 24px;
     margin-bottom: 24px;
     box-shadow: 0 1px 3px rgba(0,0,0,0.1);
 }
 
 .meter-glance-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 24px;
 }
 
 /* Award Range Chart */
 .meter-award-range-chart {
     position: relative;
     height: 200px;
     background: #f1f5f9;
     border-radius: 8px;
     margin-top: 16px;
     /* This will be replaced with actual chart visualization */
 }
 
 .meter-avg-award-value {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     text-align: center;
 }
 
 #vendor-avg-award {
     display: block;
     font-size: 24px;
     font-weight: 700;
     color: #4338ca;
 }
 
 .meter-avg-label {
     font-size: 14px;
     color: #6b7280;
 }
 
 /* Agency & NAICS Lists */
 .meter-common-agencies, .meter-common-naics {
     margin-bottom: 20px;
 }
 
 .meter-agency-list, .meter-naics-list {
     background: #fff;
     border-radius: 8px;
     overflow: hidden;
 }
 
 /* Awards Table */
 .meter-awards-table {
     border-radius: 8px;
     overflow: hidden;
     box-shadow: 0 1px 3px rgba(0,0,0,0.1);
 }
 
 .meter-awards-table-header {
     display: grid;
     grid-template-columns: 6fr 1fr 1fr 1fr 1fr 1fr;
     padding: 12px 16px;
     background: #f3f4f6;
     font-weight: 600;
     color: #374151;
     font-size: 14px;
 }
 
 .meter-contract-item {
     display: grid;
     grid-template-columns: 6fr 1fr 1fr 1fr 1fr 1fr;
     padding: 16px;
     background: #fff;
     border-bottom: 1px solid #e5e7eb;
 }
 
 .meter-contract-item:last-child {
     border-bottom: none;
 }
 
 /* Contract Info - Maintain compatibility with existing structure */
 .meter-contract-info {
     display: flex;
     flex-direction: column;
     gap: 8px;
     padding-right: 16px;
     position: relative;
 }
 
 .meter-contract-number {
     font-weight: 600;
     font-size: 14px;
     color: #4338ca;
 }
 
 .meter-contract-agency {
     font-weight: 600;
     font-size: 16px;
     color: #111827;
 }

 .meter-contract-description:before {
    content: 'DESCRIPTION';
    position: absolute;
    margin: -12px 0px;
    font-size: 9px;
    letter-spacing: 0.8px;
}
 
 .meter-contract-description {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 8px;
    margin-top: 28px;
}
 
 /* Award Value and Type */
 .meter-award-value-type {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    background-color: #ddddff;
    width: max-content;
    position: absolute;
    right: 0px;
    border-radius: 50px;
    padding: 9px;
}
 
 .meter-award-type {
     display: flex;
     align-items: center;
     gap: 6px;
     padding: 4px 8px;
     background: #eef2ff;
     border-radius: 4px;
     font-size: 14px;
 }
 
 .meter-type-icon {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     width: 24px;
     height: 24px;
     background: #4338ca;
     color: white;
     border-radius: 4px;
     font-size: 14px;
     font-weight: 700;
 }
 
 /* NAICS Info */
 .meter-award-naics {
     margin-top: 8px;
 }
 
 .meter-naics-code {
     display: inline-block;
     padding: 2px 6px;
     background: #f3f4f6;
     border-radius: 4px;
     font-weight: 600;
     margin-right: 8px;
 }
 
 .meter-naics-description {
     font-size: 14px;
     color: #4b5563;
 }
 
 /* Award Dates & Duration */
 .meter-award-start, 
 .meter-award-end {
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 14px;
     color: #4b5563;
 }

 p.psmall.l2-bs {
    transform: translate(49px, -18px);
    font-style: italic;
    opacity: .8;
}

 p.l1-bs {
    transform: translate(7px, 4px);
    color: #101827;
}

 .duration-group .meter-radio-group {
    column-count: 2;
    border: none;
}
 
 .meter-award-duration {
     display: flex;
     align-items: center;
     justify-content: center;
     font-weight: 600;
     color: #111827;
 }
 
 /* Award Ceiling */
 .meter-award-ceiling {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
 }
 
 .meter-ceiling-amount {
     font-weight: 700;
     color: #111827;
 }
 
 .meter-obligation-percentage {
     font-size: 12px;
     color: #6b7280;
 }
 
 /* Award Status */
 .meter-award-status {
     display: flex;
     justify-content: center;
     align-items: center;
 }
 
 .meter-thumbs-up {
     width: 24px;
     height: 24px;
     background: #10b981;
     border-radius: 50%;
 }
 
 /* Contact Information */
 .meter-contact-information {
     background: #fff;
     border-radius: 8px;
     padding: 24px;
     margin-top: 24px;
     box-shadow: 0 1px 3px rgba(0,0,0,0.1);
 }
 
 .meter-contract-item {
    display: grid;
    grid-template-columns: 6fr 1fr 1fr 1fr 1fr 1fr;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
 
 .meter-contact-label {
     font-size: 12px;
     font-weight: 600;
     color: #6b7280;
     margin: 0 0 8px 0;
     text-transform: uppercase;
 }
 
 .meter-website-link {
     display: inline-block;
     color: #4338ca;
     font-weight: 500;
     text-decoration: none;
 }
 
 .meter-address-text {
     font-size: 14px;
     line-height: 1.5;
     color: #4b5563;
 }
 
 .meter-contact-name, .meter-contact-email {
     font-size: 14px;
     color: #4b5563;
     margin-bottom: 16px;
 }
 
 /* Responsive Adjustments */
 @media (max-width: 1024px) {
     .meter-glance-grid, .meter-contact-grid {
         grid-template-columns: 1fr;
     }
     
     .meter-awards-table-header, .meter-contract-item {
         grid-template-columns: 1fr;
     }
     
     .meter-award-start, .meter-award-end, .meter-award-duration,
     .meter-award-ceiling, .meter-award-status {
         padding: 8px 0;
         justify-content: flex-start;
     }
     
     .meter-awards-table-header > div:not(:first-child) {
         display: none;
     }
 }
 /* END VENDOR DETAIL */
 
 /* Responsive Adjustments */
 @media (max-width: 768px) {
     .meter-search-grid {
         grid-template-columns: 1fr;
     }
 }
 
 
 /* Add this CSS to your stylesheet */
 
 /* Table layout */
 .meter-awards-table-header {
     display: grid;
     grid-template-columns: 6fr 1fr 1fr 1fr 1fr 1fr;
     padding: 12px 16px;
     background: #f3f4f6;
     font-weight: 600;
     color: #374151;
     font-size: 14px;
 }
 
 .meter-contract-item {
     display: grid;
     grid-template-columns: 6fr 1fr 1fr 1fr 1fr 1fr;
     padding: 16px;
     background: #fff;
     border-bottom: 1px solid #e5e7eb;
 }
 
 /* Award columns styling */
 .meter-award-start, 
 .meter-award-end,
 .meter-award-duration {
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 14px;
 }
 
 .meter-award-ceiling {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
 }
 
 .meter-ceiling-amount {
     font-weight: 600;
     color: #111827;
 }
 
 .meter-obligation-percentage {
     font-size: 12px;
     color: #6b7280;
 }
 
 .meter-award-status {
     display: flex;
     justify-content: center;
     align-items: center;
 }
 
 .meter-thumbs-up {
     width: 24px;
     height: 24px;
     background: #10b981;
     border-radius: 50%;
 }
 
 /* Responsive adjustments */
 @media (max-width: 768px) {
     .meter-awards-table-header, 
     .meter-contract-item {
         grid-template-columns: 1fr;
     }
     
     .meter-awards-table-header > div:not(:first-child) {
         display: none;
     }
     
     .meter-award-start,
     .meter-award-end,
     .meter-award-duration,
     .meter-award-ceiling,
     .meter-award-status {
         justify-content: flex-start;
         padding: 4px 0;
     }
 }

/* ========================================
   PERFORMANCE & INTEGRITY SECTION
   ======================================== */

.meter-vendor-performance {
    margin: 40px 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.meter-vendor-performance .meter-section-title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meter-vendor-performance .meter-section-icon {
    font-size: 24px;
}

/* Collapsed View */
.meter-performance-collapsed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 6px;
    cursor: pointer;
}

.meter-performance-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meter-status-indicator {
    font-size: 28px;
    line-height: 1;
}

.meter-status-indicator.green { color: #10b981; }
.meter-status-indicator.yellow { color: #f59e0b; }
.meter-status-indicator.orange { color: #f97316; }
.meter-status-indicator.red { color: #ef4444; }

.meter-status-text {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.meter-performance-expand {
    padding: 8px 16px;
    background: #5B4CCC;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.meter-performance-expand:hover {
    background: #4a3db3;
}

/* Expanded View */
.meter-performance-expanded {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/* FAPIIS Section */
.meter-fapiis-section {
    margin-bottom: 32px;
}

.meter-subsection-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.meter-fapiis-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.meter-issue-count {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 4px solid #e5e7eb;
}

.meter-issue-count .count {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 8px;
}

.meter-issue-count .label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* FAPIIS Labels - styled like signal category headers */
h4.meter-fapiis-label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

/* Issue Items */
.meter-issues-list {
    margin-bottom: 16px;
}

.meter-issue-item {
    padding: 16px;
    margin-bottom: 12px;
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 4px;
}

.meter-issue-item .issue-type {
    font-size: 15px;
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 8px;
}

.meter-issue-item .issue-details {
    font-size: 14px;
    color: #374151;
}

.meter-issue-item .issue-details > div {
    margin-bottom: 4px;
}

.meter-issue-item .issue-description {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #fecaca;
    color: #6b7280;
    font-style: italic;
}

.no-issues {
    padding: 16px;
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    border-radius: 4px;
    color: #065f46;
    margin: 16px 0;
}

/* Delivery Patterns Section */
.meter-delivery-patterns {
    margin-top: 32px;
}

/* Two-column grid for signals */
.meter-signals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 16px;
}

.meter-signals-column {
    display: flex;
    flex-direction: column;
}

.meter-pattern-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

/* Responsive: stack columns on mobile */
@media (max-width: 768px) {
    .meter-signals-grid {
        grid-template-columns: 1fr;
    }
}

.meter-metric {
    padding: 16px;
    background: #f9fafb;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meter-metric .metric-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.meter-metric .metric-value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.meter-metric .metric-value.positive {
    color: #10b981;
}

/* Disclaimer */
.meter-disclaimer {
    font-size: 12px;
    color: #6b7280;
    background: #f9fafb;
    padding: 12px;
    border-radius: 4px;
    margin-top: 16px;
    line-height: 1.5;
}

/* Inline ADD button for text inputs */
.meter-field-wrapper {
    position: relative;
}

/* Add padding to inputs that have ADD button showing */
.meter-field-wrapper input.has-add-btn {
    padding-right: 60px !important;
}

.meter-field-wrapper textarea.has-add-btn {
    padding-right: 60px !important;
}

.meter-inline-add-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease;
    z-index: 10;
    pointer-events: none;
}

.meter-inline-add-btn.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.meter-inline-add-btn:hover {
    background: #5568d3;
}

.meter-inline-add-btn:active {
    background: #4557c2;
}

/* For textareas, position at top right inside the textarea */
.meter-field-wrapper textarea + .meter-inline-add-btn {
    top: 10px;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .meter-performance-collapsed {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .meter-fapiis-summary {
        grid-template-columns: 1fr;
    }

    .meter-pattern-metrics {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SOW EXTRACT SECTION
   ======================================== */

.meter-sow-extract {
    margin-bottom: 24px;
    border-radius: 8px;
    border: 1px solid #667eea33;
    background: linear-gradient(135deg, #667eea08, #422ebd08);
    overflow: hidden;
}

.meter-sow-extract-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.meter-sow-extract-toggle:hover {
    background: #667eea0d;
}

.meter-sow-extract-toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #443F68;
}

.meter-sow-extract-toggle-left svg {
    color: #667eea;
}

.meter-sow-extract-toggle-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sow-toggle-hint {
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 300;
}

.sow-chevron {
    color: #9CA3AF;
    transition: transform 0.3s ease;
}

.meter-sow-extract.is-open .sow-chevron {
    transform: rotate(180deg);
}

.meter-sow-extract-body {
    padding: 0 20px 20px;
}

/* Dropzone */
.meter-sow-dropzone {
    border: 2px dashed #9CA3AF !important;
    border-radius: 8px !important;
    padding: 40px 20px !important;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    background: #fff;
}

.meter-sow-dropzone.is-dragover {
    border-color: #667eea !important;
    background: #667eea08;
}

.sow-dropzone-text {
    font-size: 14px !important;
    font-weight: 500;
    color: #374151;
    margin: 12px 0 4px !important;
}

.sow-dropzone-subtext {
    font-size: 12px !important;
    color: #6B7280;
    margin: 0 !important;
}

.sow-browse-link {
    display: inline-block;
    padding: 8px 20px;
    background: #667eea;
    color: #fff !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    border-radius: 6px;
    transition: background 0.2s;
    margin-top: 4px;
}

.sow-browse-link:hover {
    background: #5567d5;
    color: #fff !important;
}

.sow-dropzone-formats {
    font-size: 10px !important;
    color: #9CA3AF;
    margin: 8px 0 0 !important;
    font-weight: 300;
}

/* File list */
.meter-sow-file-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meter-sow-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
}

.meter-sow-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meter-sow-file-icon {
    color: #667eea;
}

.meter-sow-file-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.meter-sow-file-size {
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 300;
    margin-left: 8px;
}

.meter-sow-file-remove {
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.meter-sow-file-remove:hover {
    color: #EF4444;
    background: #FEE2E2;
}

/* Actions */
.meter-sow-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.meter-sow-process-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.meter-sow-process-btn:hover:not(:disabled) {
    background: #5567d5;
}

.meter-sow-process-btn:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    opacity: 0.7;
}

.meter-sow-clear-btn {
    padding: 10px 18px;
    background: none;
    color: #6B7280;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.meter-sow-clear-btn:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

@media (max-width: 768px) {
    .meter-sow-extract-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .sow-toggle-hint {
        display: none;
    }
}