/* css/update/auto.css */

/* Container for input and button */
.input-with-btn {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Adjust input to make room for the button */
.input-with-btn .add-table-input {
    width: 100%;
    padding-right: 50px !important; /* Make room for the button */
    box-sizing: border-box;
}

/* The small "Auto" button */
.btn-auto-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 8px;
    font-size: 11px; /* Small font */
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    height: 22px; /* Small height */
    line-height: 16px;
    white-space: nowrap;
}

.btn-auto-toggle:hover {
    background-color: #eee;
    color: #333;
}

/* Active State (Blue Background) */
.btn-auto-toggle.active {
    background-color: #007bff; /* Blue */
    color: white;
    border-color: #0056b3;
}

.btn-auto-toggle.active:hover {
    background-color: #0069d9;
}

/* Disabled Input Styling (Optional enhancement) */
.add-table-input:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}
