/* Single owner of reward evidence rows and filters (L.Point baseline).
 * Theme/shell live in design.css/compact.css; service overrides must be
 * scoped under [data-reward-service] in the template styles block. */
/* Shared execution records: content-height cards, structured evidence, bounded raw data. */
.execution-records{min-width:0;margin-top:24px}
.execution-record-list,.execution-record-group-items{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
.execution-record-list>[hidden]{display:none}
.execution-record{min-width:0;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff;display:grid;gap:9px}
.execution-record-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.execution-record-heading>strong{font-size:14px}
.execution-record-state{flex:0 0 auto;padding:5px 8px;border-radius:7px;background:#eef1e9;color:#58664f;font-size:11px;font-weight:750;white-space:nowrap}
.execution-record.status-running{border-color:#b5ccda;background:#f8fbfd}
.execution-record.status-running .execution-record-state{background:#e0eef6;color:#285f7d}
.execution-record.status-completed .execution-record-state{background:#e8f2e5;color:#386737}
.execution-record.status-failed .execution-record-state,.execution-record-group>summary>.execution-record-state{background:#fff0e3;color:#975528}
.execution-record.status-partial .execution-record-state{background:#f7f0d9;color:#786128}
.execution-record-meta{display:flex;flex-wrap:wrap;gap:4px 12px;color:#6a746a;font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums}
.execution-record-metrics{display:flex;flex-wrap:wrap;gap:5px 16px;margin:0;font-size:12px;color:#586456}
.execution-record-metrics b{color:var(--ink)}
.execution-record-message{margin:0;font-size:12px;line-height:1.6;color:#586456;overflow-wrap:anywhere}
.execution-record-evidence,.execution-record-raw,.execution-record-evidence-body{min-width:0;max-width:100%}
.execution-record-evidence>summary,.execution-record-raw>summary{padding:8px 0;min-height:36px;box-sizing:border-box;font-size:12px;font-weight:600;cursor:pointer;color:var(--green-dark)}
.execution-record-evidence-body{display:grid;gap:8px;padding-top:6px}
.execution-evidence-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;border:1px solid var(--line);border-radius:10px;padding:11px;min-width:0;background:#f8faf5}
.execution-evidence-row strong,.execution-evidence-row b{font-size:12px;overflow-wrap:anywhere}
.execution-evidence-row span{grid-column:1/-1;font-size:11px;line-height:1.6;color:#657060;overflow-wrap:anywhere}
.execution-record-note{margin:0;font-size:11px;line-height:1.6;color:#657060}
.execution-record-raw pre{display:block;box-sizing:border-box;min-width:0;width:100%;max-width:100%;max-height:280px;overflow:auto;margin:6px 0 0;padding:12px;border-radius:10px;background:#f0f3ec;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font-size:11px;line-height:1.6;color:#3f4d3d}
.execution-record-group{min-width:0;border:1px solid var(--line);border-radius:16px;background:#fff}
.execution-record-group>summary{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px;cursor:pointer;list-style:none}
.execution-record-group>summary::-webkit-details-marker{display:none}
.execution-record-group>summary>span:first-child{display:grid;min-width:0;gap:7px}
.execution-record-group>summary strong{font-size:14px}
.execution-record-group>summary small{font-size:12px;line-height:1.5;color:#657060;overflow-wrap:anywhere}
.execution-record-group>summary .execution-record-state:after{content:' ＋'}
.execution-record-group[open]>summary .execution-record-state:after{content:' −'}
.execution-record-group-items{padding:0 10px 10px}
.execution-record-group-items .execution-record{border-radius:10px}
.execution-record-refresh{font-size:11px;color:#866335;margin:0 0 8px}
.execution-record-refresh:empty{display:none}
.batch-item-list{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:14px}
.batch-item{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:start;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:none;min-width:0}
.batch-item[hidden]{display:none}
.batch-item-order{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#f1f3ed;color:#7f8a76;font-size:11px;font-weight:800}
.batch-item-main{min-width:0}
.batch-item-main strong{display:block;font-size:13px;white-space:normal;overflow-wrap:anywhere}
.batch-item-main span{display:block;font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere;word-break:break-word}
.batch-item-state{align-self:start;font-size:11px;font-weight:800;white-space:nowrap;border-radius:6px;padding:4px 7px;background:#f1f3ed;color:var(--muted)}
.batch-item.status-running{border-color:#8ba773;background:#f4f8ed}
.batch-item.status-running .batch-item-state{background:#e7efd9;color:#4b6938}
.batch-item.status-waiting{border-color:#e0e4ee;background:#fbfcff}
.batch-item.status-waiting .batch-item-state{background:#edf0f8;color:#596984}
.batch-item.status-completed,.batch-item.status-confirmed,.batch-item.status-already_completed{background:#fcfdf9;border-color:#e3e8db}
.batch-item.status-completed .batch-item-state,.batch-item.status-confirmed .batch-item-state,.batch-item.status-already_completed .batch-item-state{background:#edf4e5;color:#436a37}
.batch-item.status-failed,.batch-item.status-expired{background:#fffcf9;border-color:#f0dfd0}
.batch-item.status-failed .batch-item-state,.batch-item.status-expired .batch-item-state{background:#ffeddf;color:#995a2d}
.batch-item.status-cancelled .batch-item-state,.batch-item.status-skipped .batch-item-state{background:#f1f2ef;color:#74806e}
.batch-item-failure{grid-column:2/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:3px}
.batch-item-failure>span{color:#8d5649;font-size:11px;line-height:1.45}
.batch-item-failure strong{display:inline;font-size:inherit;white-space:normal}
.batch-item-failure a{flex:0 0 auto;color:#087a3f;font-size:11px;font-weight:800;text-decoration:none;padding:7px 8px;border:1px solid #b9dfc7;border-radius:9px;background:#fff}
.ui-detail-tools{display:flex;flex-wrap:wrap;gap:7px;margin:5px 0 15px}
.ui-detail-tools button{background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 12px;font-size:11px;min-height:38px}
.ui-detail-tools button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.reward-history-sheet{width:min(calc(100% - 24px),520px);max-height:min(84dvh,760px);margin:auto auto 0;border-radius:22px 22px 0 0}
.reward-history-sheet .modal-card{grid-template-rows:auto minmax(0,1fr);max-height:min(84dvh,760px);min-height:0;gap:0;overflow:hidden;border-radius:inherit;padding:0}
.history-sheet-header{display:flex;align-items:center;min-height:68px;padding:14px 20px;border-bottom:1px solid var(--line);background:#fff}
.history-sheet-header:after{content:'Esc 또는 바깥 영역을 눌러 닫기';font-size:11px;color:var(--muted);margin-left:auto}
.history-sheet-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 20px 20px}
.history-sheet-content h2{font-size:22px}
@media(max-width:600px){
  .batch-item{padding:12px;gap:8px}
  .batch-item-main strong{font-size:12px}
  .batch-item-main span{font-size:11px}
  .batch-item-state{font-size:10px;padding:4px 6px}
  .ui-detail-tools{gap:4px}
  .ui-detail-tools button{font-size:10px;padding:7px 9px}
  .history-sheet-header:after{content:'바깥 영역을 눌러 닫기';font-size:10px}
  .history-sheet-header .modal-icon{width:32px;height:32px;font-size:17px}
  .history-sheet-content h2{font-size:19px}
}
