.preview-pane {
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    min-height: 500px;
    overflow: auto;
}

.excel-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Calibri', sans-serif;
}

.excel-table th,
.excel-table td {
    border: 1px solid #d0d7e5;
    padding: 5px;
}

.section-card {
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.section-header {
    background: #f5f5f5;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
}

.section-body {
    padding: 15px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.color-picker-wrapper label {
    width: 150px;
    margin: 0;
}

/* Excel Grid Simulation */
.excel-grid {
    width: 100%;
    border-collapse: collapse;
    font-family: Calibri, sans-serif;
    background: #fff;
    margin-bottom: 0px;
}

.excel-grid th,
.excel-grid td {
    border: 1px solid #d4d4d4;
    padding: 2px 4px;
    font-size: 11px;
    position: relative;
    height: 25px;
}

/* Headers (Columns A, B, C...) */
.grid-header-col {
    background: #f8f9fa;
    color: #666;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid #ccc !important;
    min-width: 60px;
}

/* Row Numbers (1, 2, 3...) */
.grid-header-row {
    background: #f8f9fa;
    color: #666;
    font-weight: bold;
    text-align: center;
    border-right: 2px solid #ccc !important;
    width: 30px;
}

/* Corner Cell */
.grid-header-corner {
    background: #f8f9fa;
    border-right: 2px solid #ccc !important;
    border-bottom: 2px solid #ccc !important;
    width: 30px;
}

/* Logo Image in Grid */
.excel-grid img {
    max-width: none;
    /* Allow exceeding cell slightly */
    z-index: 10;
    /* position: absolute;  removed to let it flow in cell */
    display: block;
}

/* Highlighted Cell (optional) */
.cell-highlight {
    border: 2px solid #107c41 !important;
    /* Excel Green */
}