.agent-remand-row--pending > td {
    background-color: #ffd6e8 !important;
}
.agent-remand-row--done > td {
    background-color: #d2f0d2 !important;
}
table.tbl_basic tr.agent-remand-row--pending > td,
table.tbl_basic tr.agent-remand-row--pending > td.agent-remand-cell-pink,
table.tbl_basic td.agent-remand-cell-pink {
    background-color: #ffd6e8 !important;
}
table.tbl_basic tr.agent-remand-row--done > td,
table.tbl_basic tr.agent-remand-row--done > td.agent-remand-cell-done,
table.tbl_basic td.agent-remand-cell-done {
    background-color: #d2f0d2 !important;
}
body.fver2 table.tbl_basic tr.agent-remand-row--pending > td,
body.fver3 table.tbl_basic tr.agent-remand-row--pending > td,
body.fver4 table.tbl_basic tr.agent-remand-row--pending > td,
body.fver2 table.tbl_basic td.agent-remand-cell-pink,
body.fver3 table.tbl_basic td.agent-remand-cell-pink,
body.fver4 table.tbl_basic td.agent-remand-cell-pink {
    background-color: #ffd6e8 !important;
}
body.fver2 table.tbl_basic tr.agent-remand-row--done > td,
body.fver3 table.tbl_basic tr.agent-remand-row--done > td,
body.fver4 table.tbl_basic tr.agent-remand-row--done > td,
body.fver2 table.tbl_basic td.agent-remand-cell-done,
body.fver3 table.tbl_basic td.agent-remand-cell-done,
body.fver4 table.tbl_basic td.agent-remand-cell-done {
    background-color: #d2f0d2 !important;
}
th .agent-remand-below-label {
    display: block;
    margin-top: 8px;
    font-weight: normal;
}

/* 見出しセル全体ではなく、差戻し表示部分だけ白背景にする */
td.agent-remand-notice-scope-white .agent-remand-below-label,
td.agent-remand-notice-scope-white .ap-index-remand-notice {
    display: inline-block;
    border-radius: 5px;
    background-color: #fff;
}
.agent-remand-modal-open.agent-remand-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px 2px 2px;
    margin: 0;
    vertical-align: middle;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background: transparent;
    font: inherit;
}
.agent-remand-modal-open.agent-remand-trigger:hover {
    background: rgba(176, 0, 32, 0.08);
}
.agent-remand-modal-open.agent-remand-trigger--done:hover {
    background: rgba(30, 107, 30, 0.1);
}
.agent-remand-modal-open.agent-remand-trigger--confirmed:hover {
    background: rgba(30, 107, 30, 0.1);
}
.agent-remand-trigger-icon {
    display: block;
    flex-shrink: 0;
}
.agent-remand-label-red {
    color: #b00020;
    font-weight: bold;
    font-size: 12px;
    line-height: 1.3;
}
.agent-remand-label-done {
    color: #1e6b1e;
    font-weight: bold;
    font-size: 12px;
    line-height: 1.3;
}
.agent-remand-label-confirmed {
    color: #1e6b1e;
    font-weight: bold;
    font-size: 12px;
    line-height: 1.3;
}
.agent-remand-modal-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.35);
    overflow: auto;
}
.agent-remand-modal-dialog {
    flex: 0 1 auto;
    min-width: 500px;
    max-width: min(36rem, 100%);
    max-height: min(80vh, 100%);
    overflow: auto;
    margin: auto;
    background: #fff;
    color: #333;
    font-size: 14px;
    padding: 1rem;
}
.agent-remand-modal-title {
    font-weight: bold;
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 14px;
}
.agent-remand-modal-body {
    color: #333;
    margin: 0 0 1rem 0;
    font-size: 12px;
    line-height: 1.6;
}

.apart-alt-remand-item-label {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 12px;
}
.apart-alt-remand-item-path {
    margin-bottom: 8px;
    line-height: 1.45;
    font-size: 12px;
    font-weight: normal;
}

.apart-alt-remand-item-path,
.apart-alt-remand-item-path * {
    font-weight: normal;
}
.apart-alt-remand-current-status {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: bold;
}
.apart-alt-remand-current-status.is-sendback {
    color: #c62828;
}
.apart-alt-remand-current-status.is-fixed {
    color: #1565c0;
}
.apart-alt-remand-current-status.is-confirmed {
    color: #2e7d32;
}
.apart-alt-remand-current-status.is-none {
    color: #666;
}

.agent-remand-modal-reason-section {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e8e8e8;
}
.agent-remand-modal-actions {
    margin: 0;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}
.agent-remand-action-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
}
.agent-remand-action-btn,
.agent-remand-close-only-btn {
    min-width: 90px;
    padding: 0.25rem 0.75rem;
    font-size: 13px;
    border-radius: 3px;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
}
.agent-remand-action-btn-fix {
    border-color: #2e7d32;
    color: #2e7d32;
    font-weight: bold;
}
.agent-remand-action-btn-unfix {
    border-color: #c00;
    color: #c00;
    font-weight: bold;
}
.agent-remand-close-only-btn {
    color: #333;
}
.agent-remand-modal-close-btn {
    padding: 0.25rem 0.75rem;
    cursor: pointer;
}
/* :disabled は .agent-remand-modal-close-btn の cursor より後・詳細度で上書き */
.agent-remand-modal-actions .agent-remand-action-form button.agent-remand-modal-close-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}
.agent-remand-modal-actions .agent-remand-action-btn-fix:disabled {
    border-color: #9e9e9e;
    color: #9e9e9e;
}
.agent-remand-modal-actions .agent-remand-action-btn-unfix:disabled {
    border-color: #9e9e9e;
    color: #9e9e9e;
}

.agent-remand-cell-pink {
    background-color: #ffd6e8 !important;
}
.agent-remand-cell-done {
    background-color: #d2f0d2 !important;
}

/* ap_index.htm と同様（登録HOMEのインラインstyleと揃える） */
.ap-index-remand-notice {
    display: block;
    margin-top: 6px;
    color: #b00020;
    font-weight: bold;
    font-size: 12px;
    line-height: 1.4;
}
.ap-index-remand-notice.ap-index-remand-notice--list-inactive:not(.ap-index-remand-notice--list-done) {
    color: #b00020;
}
/* 一覧：差し戻し文言は非活性の赤文字（クリック・選択不可） */
.ap-index-remand-notice.ap-index-remand-notice--list-inactive {
    cursor: default;
    pointer-events: none;
    user-select: none;
    opacity: 0.92;
}
.ap-index-remand-notice.ap-index-remand-notice--list-done {
    color: #1b6e1b;
}

table.tbl_list td.agent-remand-cell-pink {
    background-color: #ffd6e8 !important;
}
table.tbl_list td.agent-remand-cell-done {
    background-color: #d2f0d2 !important;
}

/* テンプレート側の cycle でゼブラ表示するための背景色 */
.agent-tbl-zebra-white {
    background-color: #ffffff;
}
.agent-tbl-zebra-gray {
    background-color: #F5F5F5;
}

