.jspreadsheet-widget {
    margin-bottom: 1em;
}

.jspreadsheet-container {
    margin-top: 10px;
    border-radius: 3px;
    max-height: 500px;
    overflow: auto;
}

.jspreadsheet-toolbar {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

/* 버튼 스타일 개선 */
.jspreadsheet-toolbar .button {
    padding: 10px 15px;
    font-size: 14px;
    min-width: 100px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.jspreadsheet-toolbar .button .icon-plus,
.jspreadsheet-toolbar .button .icon-bin {
    margin-right: 5px;
    font-size: 16px;
}


/* 오디오 URL 필드에 대한 툴팁 스타일 */
.audio-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.audio-tooltip:hover::before {
    content: attr(data-url);
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 200px;
    padding: 5px;
    background-color: #333;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    z-index: 1;
}

/* 선택 행 배경색 */
.jexcel_row.selected,
.jexcel_row.selected td {
    background-color: #eff6ff !important;
}

/* 테이블 헤더 스타일 */
.jexcel_content thead.jexcel_thead td {
    background-color: #43b1b0;
    color: white;
    font-weight: bold;
}

/* 체크박스 셀 정렬 */
.jexcel [data-column].checkbox {
    text-align: center;
}

/* Wagtail 스타일과 통합 */
.jspreadsheet-widget .button {
    font-size: 0.9em;
}

/* 빈 셀 스타일 */
.jexcel td.empty {
    background-color: #f9f9f9;
}

/* 읽기 전용 셀 스타일 */
.readonly {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.readonly:focus {
    outline: none;
    box-shadow: none;
}

/* 숨김 컬럼 스타일 */
.hidden-column {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* 선택된 행 스타일 */
.selected-row td {
    background-color: #e8f4f4 !important;
}

.selected-row:hover td {
    background-color: #d1ebeb !important;
}

/* 도움말 텍스트 스타일 */
.spreadsheet-help {
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.spreadsheet-help .help-text {
    font-size: 13px;
    color: #666;
}

.spreadsheet-help ul {
    margin: 5px 0 0 20px;
    padding: 0;
}

.spreadsheet-help li {
    margin-bottom: 3px;
}

.spreadsheet-help strong {
    color: #333;
} 