/* --- SHOPPING LIST MODULE STYLES (shli_) --- */

.shli_table {
    width: 100%;
    border-collapse: separate; 
    border-spacing: 0;
    border: 1px solid #1e3a5f;
    border-radius: 12px;
    overflow: hidden;
    color: #000000;
}

/* Rounded Header */
.shli_table thead tr {
    background-color: #1e3a5f !important;
    color: #fff9c4 !important;
}

.shli_table th:first-child { border-top-left-radius: 12px; }
.shli_table th:last-child { border-top-right-radius: 12px; }

/* Cell Styling */
.shli_table th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

.shli_table td {
    padding: 10px;
    background-color: #ffffff;
    border-bottom: 1px solid #1e3a5f;
    border-right: 1px solid #1e3a5f;
    color: #000000;
}

.shli_table td:last-child {
    border-right: none;
}

/* Rounded Bottom Corners Logic */
.shli_table tr:last-child td:first-child { border-bottom-left-radius: 12px; }
.shli_table tr:last-child td:last-child { border-bottom-right-radius: 12px; }
.shli_table tr:last-child td { border-bottom: none; }

/* Add Row Highlight */
.shli_inline-add-row td {
    background-color: #f0f7ff; 
    border-top: 2px solid #1e3a5f;
}

/* UI Elements */
.shli_input-field {
    padding: 6px;
    border: 1px solid #1e3a5f;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box; /* Keeps input from overflowing cell */
}

.shli_btn-add {
    background-color: #1e3a5f;
    color: #fff9c4;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.shli_btn-add:hover {
    background-color: #2c5282;
}

/* Autocomplete results */
.shli_autocomplete-container { position: relative; }
.shli_autocomplete-results {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #1e3a5f;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
}

.shli_autocomplete-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.shli_autocomplete-item:hover {
    background-color: #e3f2fd;
}