/* Basic styling for the plugin UI */
.wplm-container {
    padding: 20px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#wplm-csv-upload-form, #wplm-warehouse-file-selector {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 3px;
}

/* Table styling */
.wplm-data-editor-table {
    margin-top: 15px;
    width: 100%;
    border-collapse: collapse;
    /* MODIFICATION: Reduced base font size for the table */
    font-size: 0.85em; 
}

.wplm-data-editor-table th {
    background-color: #0073aa;
    color: white;
    /* MODIFICATION: Reduced header padding */
    padding: 7px; 
    text-align: left;
}

.wplm-data-editor-table td {
    /* MODIFICATION: Reduced cell padding */
    padding: 5px; 
    border: 1px solid #ddd;
    /* Ensure contenteditable cells are distinct */
    vertical-align: top; 
}

.editable-cell {
    background-color: #fffff0; /* Light yellow background for editable fields */
    cursor: text;
}

/* Status messages */
#upload-status, #submission-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 3px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.button-danger {
    background: #dc3232;
    color: white;
    border-color: #dc3232;
}

.button-danger:hover {
    background: #c32727;
}

/* Make dropdown look like a table cell */
.wplm-data-editor-table select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    /* Inherit the smaller font size */
    font-size: 1em; 
}