.atb-sort-controls {
    margin: 20px;
    }


.atb-timelines-block-preview {
    border: 1px dashed #cccccc;
    padding: 20px;
    text-align: center;
    }


.atb-timeline {
    display: flex;
    margin-bottom: 50px;
    }

.atb-timeline-details {
    display: grid;
    align-content: center;
    align-items: center;
    align-self: center;
    }

.atb-timeline-title {
    margin: 0 0 5px 0;
    line-height: 1em;
    color: #092fa2;
    font-size: 1.5em;
    }

.atb-timeline p {
    margin: 0;
    color: #424242;
    }

.atb-timelines-block-preview {
    border: 1px dashed #cccccc;
    padding: 20px;
    text-align: center;
    }











/* Icon picker styling */
.selected-icon-container {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 4px;
}

.selected-icon {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.selected-icon i {
    font-size: 24px;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.icon-name {
    font-size: 12px;
    color: #666;
}

.icon-picker-wrapper {
    margin-bottom: 15px;
}

#timeline_icon_search {
    width: 100%;
    margin: 10px 0;
    padding: 8px;
    box-sizing: border-box;
}
/*
.iconpicker-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px;
    margin-top: 10px;
}
*/
.icon-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
}
/*
.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    text-align: center;
}

.icon-item i {
    font-size: 20px;
    margin-bottom: 5px;
}

.icon-item span {
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.icon-item:hover {
    background: #f0f0f0;
    border-color: #ddd;
}

.icon-item.selected {
    background: #e6f2ff;
    border-color: #7fb0e0;
}
*/






/* Custom SVG section styling */
.custom-svg-section {
    margin-top: 15px;
}

.custom-svg-section .description {
    font-style: italic;
    margin-bottom: 8px;
}

.custom-svg-preview {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.custom-svg-preview svg {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
}

#preview-custom-svg {
    margin-right: 5px;
    margin-top: 5px;
}

#clear-custom-svg {
    margin-top: 5px;
}





.custom-svg-preview svg {
    max-width: 100%;
    max-height: 60px;
    width: auto !important; /* Override any hardcoded width */
    height: auto !important; /* Override any hardcoded height */
}

/* Make sure the SVG container has enough space */
.selected-icon.custom-svg-preview {
    min-height: 80px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button styling */
.svg-buttons {
    margin-top: 8px;
}

.svg-buttons .button {
    margin-right: 5px;
}




/* Icon list grid layout */
#icon-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    padding: 10px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.icon-item:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.icon-item.selected {
    background-color: #e6f2ff;
    border-color: #0073aa;
}

.icon-item i {
    font-size: 24px;
    margin-bottom: 5px;
}

.icon-item span {
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Make the container scrollable but with a reasonable max height */
.iconpicker-container {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 5px;
    background: #fff;
    border: 1px solid #ddd;
}



/* Timeline Order Field Styling */
.timeline-order-field {
    margin-bottom: 12px;
}

.timeline-order-field input[type="number"] {
    padding: 6px;
    margin-bottom: 8px;
}

.timeline-order-field .description {
    font-style: italic;
    font-size: 12px;
    color: #666;
}
