/* =========================================================
   椿音楽事務所 運営システム 共通スタイル
   デザイントークンはモック（axisall.xsrv.jp/tsubaki）準拠：
   淡いブルー基調・白カード・角丸・椿ロゴ。
   ビルド工程なしの素のCSS（Xserverへgit pullのみでデプロイ可能に保つ）
   ========================================================= */
:root {
    /* カラーパレット（モック準拠） */
    --color-bg: #edf3fa;            /* 画面背景：淡いブルー */
    --color-surface: #ffffff;       /* カード背景 */
    --color-primary: #4e8fd6;       /* プライマリ：モックの青 */
    --color-primary-dark: #3d78b8;  /* プライマリ押下時 */
    --color-primary-pale: #e3eef9;  /* 淡い青（バッジ・選択状態） */
    --color-text: #2b3a4a;          /* 本文 */
    --color-text-muted: #7b8a9a;    /* 補助テキスト */
    --color-border: #dde7f0;        /* 罫線 */
    --color-danger: #d65a5a;        /* エラー */
    --color-danger-pale: #fbeaea;   /* エラー背景 */

    /* 形状 */
    --radius-card: 16px;
    --radius-control: 10px;

    /* 影（モックのふんわり感） */
    --shadow-card: 0 4px 16px rgba(78, 143, 214, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* ---------- 認証画面レイアウト ---------- */
.auth-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.auth-brand__logo { width: 40px; height: 40px; }

.auth-brand__name { font-size: 18px; font-weight: 700; }

.auth-brand__caption {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--color-text-muted);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 28px 24px;
}

.auth-card__title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }

.auth-card__lead { font-size: 13px; color: var(--color-text-muted); margin-bottom: 20px; }

/* ---------- フォーム部品 ---------- */
.field { margin-bottom: 16px; }

.field__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.field__input {
    width: 100%;
    font-size: 16px; /* 16px未満だとiOSがフォーカス時に拡大するため固定 */
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-control);
    background: #fbfdff;
    color: var(--color-text);
}

.field__input:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
    border-color: var(--color-primary);
}

.field__error { font-size: 12px; color: var(--color-danger); margin-top: 6px; }

.button-primary {
    display: block;
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-control);
    padding: 13px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.button-primary:hover { background: var(--color-primary-dark); }

.button-primary:focus-visible { outline: 3px solid var(--color-primary-pale); }

/* ---------- 通知帯 ---------- */
.alert-danger {
    background: var(--color-danger-pale);
    color: var(--color-danger);
    font-size: 13px;
    border-radius: var(--radius-control);
    padding: 10px 14px;
    margin-bottom: 16px;
}

.auth-footnote {
    margin-top: 16px;
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
}

/* ---------- 講師マイページ ---------- */
.mypage-shell {
    max-width: 480px;             /* スマホ前提：PCでも中央にスマホ幅で表示 */
    margin: 0 auto;
    min-height: 100dvh;
    padding-bottom: 76px;         /* 下部タブナビの高さ分 */
}

.mypage-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-surface);
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
}

.mypage-header__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-pale);
    color: var(--color-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mypage-header__greeting { font-size: 11px; color: var(--color-text-muted); }
.mypage-header__name { font-size: 15px; font-weight: 700; }

.mypage-main { padding: 16px; display: flex; flex-direction: column; gap: 14px; }

/* 見込み額カード（モックの青グラデカード） */
.estimate-card {
    background: linear-gradient(135deg, #6aa3dd 0%, var(--color-primary) 100%);
    color: #fff;
    border-radius: var(--radius-card);
    padding: 20px 18px;
    box-shadow: var(--shadow-card);
}

.estimate-card__label { font-size: 12px; opacity: 0.9; }
.estimate-card__amount { font-size: 34px; font-weight: 700; letter-spacing: 0.02em; margin: 6px 0 10px; }
.estimate-card__issue { font-size: 14px; font-weight: 600; margin: 10px 0; }
.estimate-card__badges { display: flex; gap: 8px; }

.estimate-card__badge {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 3px 10px;
}

/* 確定待ちバナー（モックのオレンジ帯） */
.notice-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fdf3e7;
    color: #9a6b2f;
    border-radius: var(--radius-control);
    padding: 12px 14px;
    font-size: 13px;
    text-decoration: none;
}

.notice-banner__icon { font-size: 18px; }
.notice-banner__chevron { margin-left: auto; font-size: 18px; }

/* クイックアクション */
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.quick-action {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

.quick-action--primary { background: var(--color-primary); color: #fff; }

.quick-action__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.quick-action:not(.quick-action--primary) .quick-action__icon {
    background: var(--color-primary-pale);
    color: var(--color-primary);
}

/* パネル（白カードのセクション） */
.panel {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 16px;
}

.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.panel__title { font-size: 15px; font-weight: 700; }
.panel__link { font-size: 12px; color: var(--color-primary); text-decoration: none; }
.panel__lead { font-size: 12px; color: var(--color-text-muted); margin-bottom: 12px; }
.panel__empty { font-size: 13px; color: var(--color-text-muted); padding: 12px 0; }
.panel__subtitle { font-size: 13px; font-weight: 700; color: var(--color-text); margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--color-border); }

/* 報告リスト行 */
.report-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.report-row:last-of-type { border-bottom: none; }

.report-row__date {
    width: 44px;
    flex-shrink: 0;
    background: var(--color-primary-pale);
    border-radius: 10px;
    text-align: center;
    padding: 6px 0;
}

.report-row__day { display: block; font-size: 13px; font-weight: 700; color: var(--color-primary); }
.report-row__dow { display: block; font-size: 10px; color: var(--color-text-muted); }
.report-row__body { min-width: 0; }
.report-row__title { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.report-row__meta { font-size: 11px; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-row__seq { margin-left: auto; font-size: 11px; color: var(--color-text-muted); flex-shrink: 0; }

.chip {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-pale);
    border-radius: 5px;
    padding: 1px 6px;
}

.chip--trial { color: #8a6d1f; background: #f7eeD3; }

/* フォーム補助 */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field__help { font-size: 11px; color: var(--color-text-muted); margin-top: 4px; }
.field__required { font-size: 10px; color: var(--color-danger); margin-left: 6px; }
.field__check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.field__check input { width: 18px; height: 18px; }

.expense-box {
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-control);
    padding: 12px;
    margin-bottom: 16px;
}

.expense-box__summary { font-size: 13px; font-weight: 600; color: var(--color-primary); cursor: pointer; margin-bottom: 8px; }

.alert-success {
    background: #e8f6ec;
    color: #2e7d4f;
    font-size: 13px;
    border-radius: var(--radius-control);
    padding: 10px 14px;
    margin: 12px 16px 0;
}

/* 下部タブナビ */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}

.tab-bar__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: var(--color-text-muted);
    text-decoration: none;
}

.tab-bar__item.is-active { color: var(--color-primary); font-weight: 700; }
.tab-bar__icon { font-size: 17px; }

/* ページネーション（Laravel標準の簡易上書き） */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 12px; font-size: 13px; }

/* ---------- 明細画面 ---------- */
.statement-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
}

.statement-row:last-of-type { border-bottom: none; }
.statement-row__month { font-size: 14px; font-weight: 700; }
.statement-row__meta { font-size: 11px; color: var(--color-text-muted); }
.statement-row__right { text-align: right; }
.statement-row__amount { font-size: 15px; font-weight: 700; }

.status-badge { font-size: 10px; font-weight: 600; border-radius: 999px; padding: 2px 8px; }
.status-badge--waiting { background: #fdf3e7; color: #b07a2a; }
.status-badge--confirmed { background: var(--color-primary-pale); color: var(--color-primary); }
.status-badge--paid { background: #e8f6ec; color: #2e7d4f; }

.detail-group { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.detail-group__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.detail-group__label { font-size: 14px; font-weight: 700; margin-top: 4px; }
.detail-group__meta { font-size: 11px; color: var(--color-text-muted); }
.detail-group__amount { font-size: 15px; font-weight: 700; flex-shrink: 0; }

.detail-line {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7fafd;
    border-radius: 8px;
    padding: 8px 10px;
    margin-top: 8px;
    font-size: 12px;
}

.detail-line__date { color: var(--color-primary); font-weight: 700; flex-shrink: 0; }
.detail-line__name { font-weight: 600; }
.detail-line__meta { color: var(--color-text-muted); margin-left: auto; flex-shrink: 0; }

.detail-total {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-text-muted);
    padding: 10px 0 0;
}

.detail-total--grand { font-size: 16px; font-weight: 700; color: var(--color-text); }

.detail-confirmed {
    text-align: center;
    font-size: 13px;
    color: #2e7d4f;
    background: #e8f6ec;
    border-radius: var(--radius-control);
    padding: 12px;
}

/* ---------- マイページ ---------- */
.info-list { display: flex; flex-direction: column; }

.info-list__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
}

.info-list__row:last-of-type { border-bottom: none; }
.info-list__row dt { color: var(--color-text-muted); flex-shrink: 0; }
.info-list__row dd { font-weight: 600; text-align: right; word-break: break-all; }
.info-list__muted { color: var(--color-text-muted); font-weight: 400 !important; }

.button-secondary {
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-surface);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-control);
    padding: 12px;
    text-decoration: none;
    margin-top: 12px;
}

.button-text {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    background: none;
    border: none;
    padding: 12px;
    cursor: pointer;
    text-decoration: underline;
}

/* ---------- 運営管理画面（PC） ---------- */
.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 60px 1fr;
    grid-template-areas: "header header" "sidebar main";
    min-height: 100dvh;
}

.admin-header {
    grid-area: header;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.admin-brand { display: flex; align-items: center; gap: 10px; }
.admin-brand__name { font-size: 15px; font-weight: 700; }
.admin-brand__caption { font-size: 10px; color: var(--color-text-muted); }

.admin-sidebar {
    grid-area: sidebar;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
}

.admin-sidebar__section {
    font-size: 10px;
    color: var(--color-text-muted);
    padding: 12px 8px 6px;
}

.admin-sidebar__month { font-size: 14px; font-weight: 700; padding: 0 8px; }

/* サイドバーの対象月ピッカー（見た目は月度表示に寄せ、hoverで入力可能に見せる） */
.admin-sidebar__month-input {
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    color: inherit;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 2px 4px;
    background: transparent;
    cursor: pointer;
    max-width: 100%;
}
.admin-sidebar__month-input:hover { border-color: var(--color-border); background: #fff; }

.admin-nav__item {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-control);
    padding: 10px 12px;
}

.admin-nav__item.is-active { background: var(--color-primary); color: #fff; }
.admin-nav__item[aria-disabled="true"] { color: var(--color-text-muted); }

.admin-sidebar__user {
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
    font-size: 13px;
}

.admin-sidebar__user-name { font-weight: 700; padding: 0 8px; }

.admin-main { grid-area: main; padding: 20px; min-width: 0; }

/* 締めサマリ帯 */
.summary-bar {
    background: #2b3a4a;
    color: #fff;
    border-radius: var(--radius-card);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.summary-bar__caption { font-size: 11px; opacity: 0.75; }
.summary-bar__counts { font-size: 16px; margin-top: 4px; }
.summary-bar__counts strong { font-size: 20px; }
.summary-bar__ok { color: #7fd6a2; }
.summary-bar__ng { color: #f2969b; }

/* フィルタ */
.filter-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-bar__label { font-size: 12px; color: var(--color-text-muted); }

.filter-chip {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 6px 14px;
    text-decoration: none;
}

.filter-chip.is-active { background: #2b3a4a; color: #fff; border-color: #2b3a4a; }

/* テーブル */
.admin-panel {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 8px 16px;
    overflow-x: auto;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.admin-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 6px 8px;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.admin-table td {
    padding: 7px 8px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
    white-space: nowrap;
}

.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table__num { text-align: right; font-weight: 700; }
.admin-table__name { font-weight: 700; margin-left: 6px; }
.admin-table__none { color: var(--color-text-muted); }
.admin-table__note { font-size: 10px; color: var(--color-text-muted); font-weight: 400; margin-left: 4px; }
.admin-table__empty { text-align: center; color: var(--color-text-muted); padding: 24px; }

.avatar-chip {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary-pale);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.pill {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-pale);
    border-radius: 999px;
    padding: 2px 10px;
}

.pill--incentive { color: #7b5bb5; background: #efe9f8; }
.pill--penalty { color: var(--color-danger); background: var(--color-danger-pale); }

.warn-note { font-size: 10px; color: var(--color-danger); margin-top: 2px; }

.status-badge--danger { background: var(--color-danger-pale); color: var(--color-danger); }
.status-badge--none { background: #eef1f4; color: var(--color-text-muted); }

/* 一覧の検索・フィルタバー（GETフォーム・各管理画面共通） */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 10px 14px;
    margin-bottom: 14px;
}

.filter-bar__field { display: flex; flex-direction: column; gap: 3px; }
.filter-bar__label { font-size: 10px; font-weight: 600; color: var(--color-text-muted); }

.filter-bar__field input,
.filter-bar__field select {
    font-size: 12px;
    padding: 6px 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-control);
    background: #fff;
    color: var(--color-text);
    min-width: 130px;
}

.filter-bar__field input[type="search"] { min-width: 200px; }
.filter-bar__actions { display: flex; gap: 6px; margin-left: auto; }
.filter-bar__count { font-size: 11px; color: var(--color-text-muted); align-self: center; }

.filter-bar__submit,
.filter-bar__reset {
    font-size: 12px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--radius-control);
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.filter-bar__submit { background: var(--color-primary); color: #fff; }
.filter-bar__reset { background: #eef1f4; color: var(--color-text-muted); align-self: center; }

/* 一覧行のアクション（編集・単価・契約などを小さなボタンで揃える） */
.table-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.table-link {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-pale);
    border-radius: 6px;
    padding: 4px 10px;
    text-decoration: none;
    white-space: nowrap;
}

.table-link:hover { background: #dfeaf7; }
.table-link--plain { color: var(--color-text-muted); background: #eef1f4; }
.table-link--plain:hover { background: #e2e7ec; }
.table-link--danger { color: var(--color-danger); background: var(--color-danger-pale); }
.table-link--danger:hover { background: #f5d9d9; }

/* ---------- 発行・全銀出力画面 ---------- */
.page-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; }

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }

.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 16px;
}

.stat-card__label { font-size: 11px; color: var(--color-text-muted); }
.stat-card__value { font-size: 24px; font-weight: 700; margin-top: 4px; }
.stat-card__unit { font-size: 13px; font-weight: 600; margin-left: 2px; }

.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 14px 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.action-bar__note { font-size: 12px; color: var(--color-text-muted); }
.action-bar__button { width: auto; padding: 12px 24px; }
.action-bar__button:disabled { background: var(--color-border); cursor: not-allowed; }
.action-bar__check { font-size: 13px; font-weight: 600; }

.transfer-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }

.warn-panel {
    background: #fdf0f0;
    border: 1px solid #f2c9c9;
    border-radius: var(--radius-card);
    padding: 14px;
}

.warn-panel__title { font-size: 13px; font-weight: 700; color: var(--color-danger); margin-bottom: 8px; }

.warn-panel__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #f2dcdc;
}

.warn-panel__row:last-of-type { border-bottom: none; }
.warn-panel__note { font-size: 11px; color: #9a5a5a; margin-top: 8px; }

.admin-table tfoot td { border-top: 2px solid var(--color-border); font-size: 14px; }

.field__input--static { background: #f2f6fa; color: var(--color-text); }

/* ---------- 経費承認・調整登録 ---------- */
.review-actions { display: flex; gap: 8px; align-items: flex-start; }

.button-small {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    cursor: pointer;
    list-style: none;
    /* flex行内で潰れて「追」「加」と縦積みになるのを防ぐ */
    white-space: nowrap;
    flex-shrink: 0;
}

.button-small--approve { background: #e8f6ec; color: #2e7d4f; }
.button-small--approve:hover { background: #d5eedd; }
.button-small--reject { background: var(--color-danger-pale); color: var(--color-danger); }
.button-small--reject:hover { background: #f5d9d9; }

.reject-box { position: relative; }
.reject-box summary::-webkit-details-marker { display: none; }
.reject-box__form { display: flex; gap: 6px; margin-top: 8px; min-width: 280px; }
.reject-box__form .field__input { font-size: 13px; padding: 8px 10px; }

.radio-row { display: flex; gap: 16px; }

.adjustment-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.adjustment-row:last-of-type { border-bottom: none; }
.adjustment-row__amount { font-size: 14px; font-weight: 700; flex-shrink: 0; color: #2e7d4f; }
.adjustment-row__amount.is-minus { color: var(--color-danger); }

/* ---------- マスタ管理画面 ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.page-head .page-title { margin-bottom: 0; }
.page-head .action-bar__button { text-decoration: none; text-align: center; }

.admin-panel--form { max-width: 640px; padding: 16px; }

.password-notice {
    background: var(--color-primary-pale);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-card);
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 13px;
}

.password-notice__value {
    font-size: 16px;
    font-weight: 700;
    background: #fff;
    border-radius: 6px;
    padding: 3px 10px;
    margin-left: 6px;
    letter-spacing: 0.05em;
}

.password-notice__caption { color: var(--color-text-muted); font-size: 11px; margin-top: 6px; }

.end-engagement { display: flex; gap: 6px; align-items: center; }
.end-engagement__date { font-size: 12px; padding: 6px 8px; width: 140px; }

.rate-form { display: flex; gap: 6px; align-items: center; }
.rate-form__price { width: 110px; font-size: 13px; padding: 7px 8px; }
.rate-form__date { width: 140px; font-size: 13px; padding: 7px 8px; }

.rate-select-form { max-width: 400px; }

/* ---------- フォームビルダー ---------- */
.inline-form { display: inline; }
.inline-form__link { border: none; background: none; padding: 0; font: inherit; cursor: pointer; }
/* .table-link をbutton要素で使うためのリセット（背景・余白は .table-link 側を活かす） */
.inline-form__button { border: none; cursor: pointer; font-family: inherit; }

.alert-info {
    background: var(--color-primary-pale);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-card);
    color: var(--color-text);
    font-size: 13px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.builder-actions {
    border-top: 1px solid var(--color-border);
    margin-top: 16px;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.builder-field {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

.builder-field__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.builder-field__ops { display: flex; gap: 6px; flex-shrink: 0; }
.builder-field__edit { margin-top: 8px; }

.builder-options { margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--color-primary-pale); }
.builder-options__row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.builder-options__form { display: flex; gap: 6px; align-items: center; }
.builder-options__input { font-size: 13px; padding: 7px 10px; max-width: 240px; }

.instructor-picker__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px;
}

/* ---------- 報告種別タブ・経費申告 ---------- */
.report-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.report-tabs__item {
    /* 1行に最大3つ。4つ目以降は下の段へ折り返す */
    flex: 0 0 calc((100% - 12px) / 3);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-muted);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 9px 4px;
    text-decoration: none;
}

.report-tabs__item.is-active {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.field__input--file { padding: 9px 10px; background: #fff; }
