/* 見込み（買掛・売掛）の月モーダル共通 — 支払い予定 / 入金予定 */

.ep-sched-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 8px;
}
.ep-sched-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13px;
}
.ep-sched-table th,
.ep-sched-table td {
    padding: 8px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #eef2f6;
}
.ep-sched-table thead th {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-align: left;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.ep-sched-item.is-focus > tr:first-child {
    background: #f8fafc;
}
.ep-sched-date {
    white-space: nowrap;
    color: #334155;
    font-weight: 600;
}
.ep-sched-name {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
    margin-top: 2px;
}
.ep-sched-id {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
    margin-top: 1px;
    font-variant-numeric: tabular-nums;
}
.ep-sched-line {
    display: block;
    font-variant-numeric: tabular-nums;
    color: #334155;
    line-height: 1.35;
    word-break: break-word;
}
.ep-sched-line strong {
    font-weight: 700;
    white-space: nowrap;
}
.ep-sched-num {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}
.ep-sched-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 0;
}
.ep-sched-x {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ep-sched-x:hover,
.ep-sched-x:focus {
    background: #dc2626;
    outline: none;
}
.ep-sched-cell .btn {
    width: auto;
    min-width: 0;
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
    box-sizing: border-box;
}
.ep-sched-empty {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}
.ep-sched-link {
    color: inherit;
    text-decoration: none;
}
.ep-sched-link:hover {
    color: #1d4ed8;
}
.ep-sched-match-row:has(.ep-sched-match[hidden]) {
    display: none;
}
.ep-sched-match-row td {
    padding: 12px 8px 12px;
    border-bottom: 1px solid #eef2f6;
}
.ep-sched-match {
    margin: 0;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.ep-sched-match-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.ep-sched-match-summary {
    margin: 0;
    font-size: 13px;
    color: #475569;
    flex: 1;
    min-width: 0;
}
.ep-sched-match-close {
    flex-shrink: 0;
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
}
.ep-sched-match-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.ep-sched-match-tab {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    cursor: pointer;
}
.ep-sched-match-tab.is-active {
    background: var(--unit-color, #f44336);
    border-color: var(--unit-color, #f44336);
    color: #fff;
}
.ep-sched-match-list {
    display: none;
}
.ep-sched-match-list.is-active {
    display: block;
}
.ep-sched-cand {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
    background: #fff;
}
.ep-sched-cand.is-same-month,
.ep-sched-cand.is-keyword {
    border-color: #93c5fd;
    background: #eff6ff;
}
.ep-sched-cand.is-current,
.ep-sched-cand.is-exact {
    border-color: #86efac;
    background: #f0fdf4;
}
.ep-sched-cand.is-exact.is-keyword {
    border-color: #86efac;
    background: #f0fdf4;
}
.ep-sched-badge {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #1d4ed8;
}
.ep-sched-pick-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.ep-sched-kw {
    color: #2563eb;
    font-size: 12px;
}
.ep-sched-cand-main {
    min-width: 0;
    flex: 1;
}
.ep-sched-cand-date {
    font-size: 12px;
    color: #64748b;
}
.ep-sched-cand-id {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}
.ep-sched-cand-desc {
    font-size: 13px;
    color: #0f172a;
    word-break: break-word;
}
.ep-sched-cand-account {
    font-size: 12px;
    color: #64748b;
}
.ep-sched-cand-amount {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.ep-sched-cand-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.ep-sched-cand-actions .btn {
    white-space: nowrap;
}
.ep-sched-amount {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    white-space: nowrap;
}
.ep-sched-amount.is-forecast {
    font-weight: 400;
    color: #94a3b8;
}
.ep-sched-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: baseline;
    min-width: 0;
    color: #64748b;
    font-size: 13px;
}
.ep-sched-act {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}
.ep-sched-act .btn {
    white-space: nowrap;
}
