/* Keep this layout inside Create Dots; the advanced import editor is unchanged. */
#mapSidebar #importDotsMenu { background-position: right 8px center, 12px center !important; background-size: 27px, 30px; padding-left: 48px; padding-right: 37px; }
#mapSidebar #dotControls { padding: 10px; color: #252525; font: 13px/1.4 Arial, sans-serif; }
#dotControls *, #dotControls *::before, #dotControls *::after { box-sizing: border-box; }
#dotControls [hidden] { display: none !important; }
#dotControls .dp-group { margin: 8px 0 0; padding: 8px 0 0; border: 0; border-top: 1px solid #d7d7d7; }
#mapSidebar #dotControls h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 7px; padding: 0; font: 600 14px/20px Arial, sans-serif; color: #252525; }
#dotControls img { width: 20px; height: 20px; flex: 0 0 20px; pointer-events: none; }
#mapSidebar #dotControls label { display: block; width: auto; margin: 0; padding: 0; font: 13px/18px Arial, sans-serif; }
#mapSidebar #dotControls .dp-check { display: flex; align-items: center; gap: 6px; cursor: pointer; }
#dotControls input[type="checkbox"] { width: 16px; height: 16px; margin: 0; padding: 0 !important; accent-color: #4787c6; cursor: pointer; }
#dotControls textarea { display: block; float: none; width: 100%; min-width: 0; max-width: 100%; margin: 0; padding: 5px; border: 1px solid #aaa; border-radius: 3px; background: #fff; color: #252525; font: 13px/18px Arial, sans-serif; resize: vertical; overflow: auto; }
#dotControls #postcodeDotList { height: 120px; min-height: 66px; }
#dotControls #dotsCentroidList { height: 90px; margin: 3px 0 6px; }
#dotControls p.dp-hint { margin: 4px 0; padding: 0; color: #62675f; font: 12px/16px Arial, sans-serif; }
#dotControls .dp-entry-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
#dotControls .postcodeDotCount { float: none; width: auto; height: auto; margin: 0; font: 13px/18px Arial, sans-serif; }
#dotControls button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: auto; min-width: 0; height: auto; min-height: 28px; float: none; 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; }
#dotControls button:hover { background-color: #e8eee2; border-color: #78975f; }
#dotControls #clearDotPostcodes { margin: 0; padding: 3px 7px; }
#dotControls .dp-number { display: grid; grid-template-columns: 88px minmax(0,1fr); align-items: center; gap: 6px; margin-top: 6px; }
#dotControls input[type="number"], #dotControls select { width: 100%; min-width: 0; height: 28px; margin: 0; padding: 3px 5px; border: 1px solid #aaa; border-radius: 3px; background: white; color: #252525; font: 13px Arial, sans-serif; }
#dotControls input[aria-invalid="true"] { border-color: #b54233; }
#dotControls .dp-slider { display: grid; grid-template-columns: 75px minmax(0,1fr) 35px; align-items: center; gap: 5px; margin-top: 6px; }
#dotControls .dp-slider input { width: 100%; min-width: 0; height: 22px; margin: 0; padding: 0; }
#dotControls output { padding: 3px 1px; text-align: center; border: 1px solid #c6c6c6; border-radius: 3px; background: #fafafa; font: 12px/18px Arial, sans-serif; }
#dotControls .mapStylingDots, #dotControls .mapStylingDots ul { display: block; width: 100%; margin: 0; padding: 0; list-style: none; }
#dotControls #styleDotStrokeColoursText, #dotControls #styleDotFillColoursText { margin: 6px 0 0; padding: 0; }
#dotControls .mapStylingDots li { display: flex; align-items: center; justify-content: space-between; float: none; width: 100%; height: auto; margin: 0; padding: 0; border: 0; background: transparent !important; cursor: pointer; }
#dotControls .mapStylingDots button { flex: 0 0 28px; width: 28px; height: 28px; padding: 2px; border: 1px solid #999; background: var(--dp-colour, #000) !important; box-shadow: inset 0 0 0 2px #fff; }
#dotControls .mapStylingDots button:hover { outline: 2px solid #78975f; outline-offset: 1px; }
#dotControls .dp-disclosure { margin: 8px 0 0; border: 1px solid #c7c7c7; border-radius: 3px; overflow: hidden; }
#dotControls summary { display: flex; align-items: center; gap: 5px; min-height: 32px; padding: 5px; background: #f6f6f6; color: #252525; font: 13px/18px Arial, sans-serif; list-style: none; cursor: pointer; }
#dotControls summary:hover { background: #edf2e8; }
#dotControls summary::-webkit-details-marker { display: none; }
#dotControls summary span { flex: 1; min-width: 0; }
#dotControls summary img { width: 17px; height: 17px; flex-basis: 17px; }
#dotControls summary::after { content: ''; width: 7px; height: 7px; margin: 0 3px 0 auto; border-right: 2px solid #666; border-bottom: 2px solid #666; transform: rotate(-45deg); flex-shrink: 0; }
#dotControls details[open] summary { border-bottom: 1px solid #d7d7d7; }
#dotControls details[open] summary::after { transform: rotate(45deg); }
#dotControls .dp-detail-body, #dotControls #dotsCentroidInfo { display: block; width: auto; margin: 0; padding: 6px; border: 0; }
#dotControls .dp-detail-body > :first-child { margin-top: 0; }
#dotControls .dp-detail-body .dp-number { grid-template-columns: 75px minmax(0,1fr); gap: 5px; }
#dotControls #csvImportDotsActive, #dotControls #advancedDotImport { display: flex; width: 100%; margin: 8px 0 0; background-image: none; }
#dotControls #csvImportDotsActive { min-height: 34px; background: #099d22; border-color: #078319; color: #fff; font-weight: 600; }
#dotControls #csvImportDotsActive:hover { background: #07851d; }
#dotControls .dp-plus { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; background: #fff; color: #099d22; font: bold 21px/19px Arial, sans-serif; }
#dotControls #colourPostcodesInsideCircles { background: #37aee0; border-color: #288caf; color: white; }
#dotControls #colourPostcodesInsideCircles:hover { background: #218cbb; }
#dotControls .dp-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #d7d7d7; }
#dotControls #deleteAllDots { flex: 1; }
#dotControls #deleteAllDots img { width: 16px; height: 18px; flex-basis: 16px; }
#dotControls .iconLink { position: static; display: block; flex: 0 0 28px; width: 28px; height: 28px; padding: 3px; }
#dotControls .iconLink img { width: 100%; height: 100%; }
#dotControls input:focus-visible, #dotControls textarea:focus-visible, #dotControls button:focus-visible, #dotControls select:focus-visible, #dotControls summary:focus-visible, #dotControls a:focus-visible { outline: 2px solid #426ab0; outline-offset: 2px; }
