/* Common Library admin section (module_common_files.js). */

.common_layout { display: flex; }

.common_folder_col {
    width: 220px;
    min-width: 220px;
    border-right: 1px solid #e2e2e2;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

.common_files_col {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

.common_folder_list { padding: 6px 0; }

.common_folder_item {
    padding: 7px 10px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 3px solid transparent;
}

.common_folder_item:hover { background: #f4f6f8; }

.common_folder_selected {
    background: #eef4fb;
    border-left-color: #2a7de1;
    font-weight: bold;
}

.common_pane_head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
}

.common_pane_title { font-size: 15px; font-weight: bold; color: #222; }

.common_pane_hint { font-size: 12px; color: #999; }

.common_upload_button {
    display: inline-block;
    padding: 5px 14px;
    background: #2a7de1;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
}

.common_upload_button:hover { background: #1f66bd; }

.common_file_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
}

.common_empty { color: #999; font-size: 13px; padding: 20px 4px; }

.common_file_card {
    width: 130px;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    padding: 8px;
    box-sizing: border-box;
    text-align: center;
    background: #fff;
}

.common_file_thumb {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 3px;
    overflow: hidden;
}

.common_file_thumb img { max-width: 100%; max-height: 90px; }

.common_file_name {
    font-size: 11px;
    color: #444;
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.common_file_url {
    font-size: 11px;
    color: #2a7de1;
    margin-top: 4px;
    cursor: pointer;
}

.common_file_url:hover { text-decoration: underline; }
