/* エディタとフロントエンド共通のスタイル */
.attorney-career-block {
    margin: 1em 0;
}

.attorney-career-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
}

.attorney-career-table td {
    padding: 8px 0 !important;
    border: none !important;
    background-color: transparent !important;
    text-align: left !important;
    vertical-align: top !important;
}

.attorney-career-table .career-year {
    width: 120px !important;
    font-weight: normal !important;
    white-space: nowrap !important;
    padding-right: 1em !important;
}

.attorney-career-table .career-content {
    width: auto !important;
}

/* エディタ専用のスタイル */
.attorney-career-editor {
    border: 1px dashed #DDD;
    padding: 15px;
    border-radius: 4px;
    background-color: #FAFAFA;
}

.attorney-career-editor .attorney-career-table {
    background-color: #FFF;
}

.attorney-career-editor .career-year,
.attorney-career-editor .career-content {
    border: 1px solid #E0E0E0 !important;
    padding: 8px 12px !important;
}

.attorney-career-editor .row-controls {
    background-color: transparent !important;
    border: none !important;
}

.attorney-career-editor .row-controls button {
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 13px !important;
    color: #d63638 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.attorney-career-editor .row-controls button:hover {
    background-color: #f0f0f0 !important;
    border-color: #999 !important;
    color: #b32d2e !important;
}

.attorney-career-editor .row-controls button svg {
    fill: currentColor !important;
}

.attorney-career-editor .row-controls button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.attorney-career-editor .RichText {
    min-height: 1.5em;
}

.career-controls {
    display: flex;
    gap: 10px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .attorney-career-table .career-year {
        width: 100px !important;
    }
}

@media screen and (max-width: 480px) {
    .attorney-career-table {
        display: block;
    }
    
    .attorney-career-table tbody,
    .attorney-career-table tr,
    .attorney-career-table td {
        display: block;
        width: 100% !important;
    }
    
    .attorney-career-table .career-year {
        padding-bottom: 4px !important;
        font-weight: 600;
    }
    
    .attorney-career-table .career-content {
        padding-top: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 12px;
    }
}
