/**
 * 作業メモ Gutenberg サイドバー（PluginPostStatusInfo）用スタイル
 */

/* 作業メモ PostStatusInfo エリア全体 */
.andw-work-notes-post-status-info {
    border-bottom: 1px solid #ddd;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

/* 単一ラッパー（縦並び強制） */
.andw-work-notes-container {
    display: flex;
    flex-direction: column;
}

/* 作業メモ ヘッダーボタン */
.andw-work-notes-toggle-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 0;
    margin-bottom: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1e1e1e;
}

.andw-work-notes-toggle-button:hover {
    color: #0073aa;
}

.andw-work-notes-toggle-button:focus {
    outline: 1px solid #0073aa;
    outline-offset: 2px;
}

/* 各フィールドのスタイル（TextControl/SelectControl直接使用） */
.andw-work-notes-field {
    margin-bottom: 12px;
}

.andw-work-notes-field:last-child {
    margin-bottom: 0;
}

/* 幅100%とbox-sizing設定（WordPress標準準拠） */
.andw-work-notes-post-status-info input,
.andw-work-notes-post-status-info select {
    width: 100%;
    box-sizing: border-box;
}

/* ラベルのスタイル統一 */
.andw-work-notes-post-status-info .components-base-control__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #1e1e1e;
    margin-bottom: 6px;
    display: block;
}

/* 入力要素のスタイル統一 */
.andw-work-notes-post-status-info .components-select-control__input,
.andw-work-notes-post-status-info .components-text-control__input {
    font-size: 13px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.andw-work-notes-post-status-info .components-select-control__input:focus,
.andw-work-notes-post-status-info .components-text-control__input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* 横並びレイアウト：依頼元・担当者・ステータス・実施日の4項目のみ */
.andw-work-notes-post-status-info .andw-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.andw-work-notes-post-status-info .andw-inline .components-base-control__label {
    min-width: 72px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.andw-work-notes-post-status-info .andw-inline .components-base-control__field {
    flex: 1 1 auto;
}

.andw-work-notes-post-status-info .andw-inline .components-select-control,
.andw-work-notes-post-status-info .andw-inline .components-text-control {
    flex: 1 1 auto;
    margin-bottom: 0;
}

/* モバイル対応：480px未満では縦並びに戻す */
@media (max-width: 480px) {
    .andw-work-notes-post-status-info .andw-inline {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    
    .andw-work-notes-post-status-info .andw-inline .components-base-control__label {
        min-width: unset;
        margin-bottom: 6px;
    }
}