/* Scoped to the sidebar. The existing three-column import dialog keeps its own layout. */
#mapSidebar #excelDataMenu { background-position: right 8px center, 12px center !important; background-size: 27px, 30px; padding-left: 48px; padding-right: 37px; }
#mapSidebar #excelControls { padding: 10px; color: #252525; font: 13px/1.4 Arial, sans-serif; }
#excelControls *, #excelControls *::before, #excelControls *::after { box-sizing: border-box; }
#excelControls [hidden] { display: none !important; }
#mapSidebar #excelControls h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 5px; padding: 0; color: #252525; font: 600 14px/20px Arial, sans-serif; }
#excelControls img { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; padding: 0; pointer-events: none; }
#excelControls p.ei-hint { margin: 4px 0; padding: 0; color: #62675f; font: 12px/16px Arial, sans-serif; }
#excelControls .ei-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 5px 8px; margin-top: 8px; }
#mapSidebar #excelControls label { display: block; width: auto; margin: 0; padding: 0; font: 13px/18px Arial, sans-serif; }
#mapSidebar #excelControls .ei-columns label { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px; font-weight: 600; }
#excelControls .ei-count { min-width: 18px; padding: 0 3px; border: 1px solid #d4d7da; border-radius: 3px; background: #f3f4f5; color: #62675f; font: 11px/16px Arial, sans-serif; text-align: center; }
#excelControls #postcodeList, #excelControls #zoneNames { float: none; display: block; width: 100%; min-width: 0; height: 124px; margin: 0; padding: 5px; border: 1px solid #aaa; border-radius: 3px; background: #fff; color: #252525; font: 13px/18px Arial, sans-serif; white-space: pre; overflow: auto; resize: none; }
#excelControls button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; float: none; width: auto; min-width: 0; min-height: 28px; height: auto; margin: 0; padding: 4px 7px; border: 1px solid #aaa; border-radius: 3px; background: #f2f2f2; color: #252525; font: 13px/18px Arial, sans-serif; text-decoration: none; cursor: pointer; }
#excelControls button:hover { background: #e8eee2; border-color: #78975f; }
#excelControls #clearPostcodes, #excelControls #clearZoneNames { justify-self: start; margin: 0 !important; padding: 3px 8px; }
#excelControls .ei-row-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
#excelControls #eiRowStatus { flex: 1 1 80px; margin: 0; padding: 0; color: #62675f; font: 12px/16px Arial, sans-serif; }
#excelControls #eiRowStatus[data-state="matched"] { color: #247b35; }
#excelControls #eiRowStatus[data-state="matched"]::before { content: '\2713'; margin-right: 4px; font-weight: bold; }
#excelControls #eiRowStatus[data-state="warning"] { color: #9d4a16; }
#excelControls #eiRowStatus[data-state="warning"]::before { content: '!'; margin-right: 4px; font-weight: bold; }
#excelControls #reverseData { position: static; flex: 0 0 auto; background-image: none; padding: 3px 5px; font-size: 12px; }
#excelControls #reverseData span { color: #62675f; font-size: 16px; }
#excelControls .ei-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid #d7d7d7; }
#excelControls .custom-select-wrapper, #excelControls .custom-select { position: relative; display: block; width: 100%; margin: 0; }
#excelControls .custom-select { margin-top: 4px; }
#excelControls .custom-select__trigger { display: flex; width: 100%; justify-content: flex-start; gap: 7px; min-height: 32px; background: #fff; }
#excelControls .custom-select__trigger span { flex: 1; min-width: 0; text-align: left; }
#excelControls .custom-select img { width: 58px; height: 18px; flex-basis: 58px; margin: 0; object-fit: fill; }
#excelControls .arrow { margin: 0 2px 0 auto; flex: 0 0 auto; }
#excelControls .custom-options { z-index: 30; padding: 3px; border-radius: 3px; box-shadow: 0 3px 8px #0003; max-height: 210px; overflow-y: auto; }
#excelControls .custom-select.ei-open-up .custom-options { top: auto; bottom: 100%; }
#excelControls .custom-option { display: flex; width: 100%; justify-content: flex-start; min-height: 30px; margin: 0; padding: 5px; gap: 7px; border: 0; background: white; text-align: left; }
#excelControls .custom-option:hover, #excelControls .custom-option:focus-visible { background: #edf4e8; }
#excelControls .custom-option.selected { color: #315e1f; background: #eff5e8; }
#excelControls #eiImportButton, #excelControls #import_csv { display: flex; width: 100%; margin: 8px 0 0 !important; background-image: none; }
#excelControls #eiImportButton { min-height: 34px; background: #099d22; border-color: #078319; color: #fff; font-weight: 600; }
#excelControls #eiImportButton:hover { background: #07851d; }
#excelControls #import_csv { min-height: 32px; }
#excelControls #import_csv span { flex: 1; }
#excelControls .ei-chevron { width: 7px; height: 7px; margin: 0 3px 0 auto; border-right: 2px solid #666; border-bottom: 2px solid #666; transform: rotate(-45deg); flex: 0 0 auto; }
#excelControls details { border: 1px solid #c7c7c7; border-radius: 3px; }
#excelControls summary { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px; background: #f6f6f6; color: #252525; font: 13px/18px Arial, sans-serif; cursor: pointer; list-style: none; }
#excelControls summary::-webkit-details-marker { display: none; }
#excelControls summary:hover { background: #edf2e8; }
#excelControls details[open] summary { border-bottom: 1px solid #d7d7d7; }
#excelControls details[open] .ei-chevron { transform: rotate(45deg); }
#excelControls .ei-sample-body { padding: 6px; }
#excelControls #sampleListSimple { width: 100%; min-width: 0; height: 30px; margin: 4px 0 0; padding: 3px; border: 1px solid #aaa; border-radius: 3px; background: #fff; color: #252525; font: 13px Arial, sans-serif; text-overflow: ellipsis; }
#excelControls .ei-footer { display: flex; justify-content: flex-end; margin-top: 4px; }
#excelControls .iconLink { position: static; display: block; width: 28px; height: 28px; padding: 3px; }
#excelControls .iconLink img { width: 100%; height: 100%; }
#excelControls textarea:focus-visible, #excelControls button:focus-visible, #excelControls summary:focus-visible, #excelControls select:focus-visible, #excelControls a:focus-visible { outline: 2px solid #426ab0; outline-offset: 2px; }
