/* ===========================================================
   아리 — 결재함 위젯 (클린 화이트 테마 확장)
   dash.css 뒤에 로드. 같은 글래스 비주얼 보캐뷸러리 사용.
   =========================================================== */

.appr .ico.lime {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: color-mix(in oklab, var(--lime-ink) 12%, transparent);
}
.appr .count.warm {
  color: #fff;
  background: var(--coral);
  border-color: transparent;
}

/* ---------- 승인 대기 행 ---------- */
.appr-list { display: flex; flex-direction: column; gap: 9px; }
.ap-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-brd);
  background: var(--glass-2);
  transition: background 0.14s, border-color 0.14s;
}
.ap-row:hover { background: var(--card-2); }
.ap-ic {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--tone, var(--blue)) 14%, transparent);
  color: var(--tone, var(--blue));
}
.ap-ic .ic { width: 16px; height: 16px; }
.ap-body { flex: 1; min-width: 0; }
.ap-title { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.ap-detail { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.ap-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ap-ok {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700;
  color: var(--lime-ink); background: var(--lime);
  padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 4px 12px -6px color-mix(in oklab, var(--lime-ink) 50%, transparent);
  transition: background 0.13s, transform 0.12s;
  white-space: nowrap;
}
.ap-ok .ic { width: 13px; height: 13px; }
.ap-ok:hover { background: var(--lime-hi); transform: translateY(-1px); }
.ap-alt {
  font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 8px 11px; border-radius: 999px;
  transition: background 0.13s, color 0.13s;
  white-space: nowrap;
}
.ap-alt:hover { background: var(--card-2); color: var(--ink); }
.ap-all {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 3px; padding: 11px;
  border-radius: 13px;
  background: var(--fill); color: var(--on-fill);
  font-size: 13px; font-weight: 600;
  transition: filter 0.14s;
}
.ap-all .ic { width: 14px; height: 14px; }
.ap-all:hover { filter: brightness(1.12); }

/* ---------- 빈 상태 ---------- */
.appr-empty {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-2); line-height: 1.5;
  background: linear-gradient(100deg, color-mix(in oklab, var(--green) 10%, transparent), transparent 70%), var(--glass-2);
  border: 1px solid color-mix(in oklab, var(--green) 28%, var(--glass-brd));
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}
.ae-tick {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--green); color: #fff;
}
.ae-tick .ic { width: 12px; height: 12px; }

/* ---------- 자동 처리됨 ---------- */
.appr-done { margin-top: 14px; }
.ad-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 6px;
}
.ad-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 2px;
  border-top: 1px solid var(--line);
}
.ad-row:first-of-type { border-top: none; }
.ad-tick {
  width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--green) 16%, transparent);
  color: var(--green);
}
.ad-tick .ic { width: 11px; height: 11px; }
.ad-title {
  flex: 1; min-width: 0;
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ad-time { font-size: 10.5px; color: var(--faint); font-family: var(--font-mono); flex-shrink: 0; }
.ad-undo {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line);
  transition: color 0.13s, border-color 0.13s, background 0.13s;
}
.ad-undo .ic { width: 12px; height: 12px; }
.ad-undo:hover { color: var(--coral); border-color: color-mix(in oklab, var(--coral) 40%, transparent); background: color-mix(in oklab, var(--coral) 7%, transparent); }

/* ---------- 활동 로그 ---------- */
.appr-log { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.al-row { display: flex; gap: 11px; padding: 4px 0; align-items: baseline; }
.al-time {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--faint);
  width: 64px; flex-shrink: 0; text-align: right;
}
.al-text { font-size: 12px; color: var(--muted); line-height: 1.45; }


/* ===========================================================
   결재함 전용 페이지 + 대시보드 요약 카드
   =========================================================== */

/* ---------- 자율성 설정 ---------- */
.auton-list { display: flex; flex-direction: column; gap: 8px; }
.au-opt {
  display: flex; gap: 11px; align-items: flex-start; text-align: left;
  padding: 12px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-brd); background: var(--glass-2);
  transition: background 0.14s, border-color 0.14s, box-shadow 0.14s;
}
.au-opt:hover { background: var(--card-2); }
.au-opt.on {
  background: linear-gradient(100deg, color-mix(in oklab, var(--lime) 22%, transparent), transparent 70%), var(--glass);
  border-color: color-mix(in oklab, var(--lime-ink) 26%, var(--glass-brd));
  box-shadow: var(--shadow-sm);
}
.au-radio {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  border: 2px solid var(--line-2);
  display: grid; place-items: center;
  transition: border-color 0.14s;
}
.au-opt.on .au-radio { border-color: var(--lime-ink); }
.au-opt.on .au-radio::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime-ink);
}
.au-body { min-width: 0; }
.au-title { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.au-rec {
  font-style: normal; font-size: 10px; font-weight: 700;
  color: var(--lime-ink); background: var(--lime);
  padding: 1px 7px; border-radius: 999px; margin-left: 7px; vertical-align: 1px;
}
.au-desc { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

.auton-note {
  margin-top: 13px;
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 11.5px; color: var(--ink-2); line-height: 1.5;
  background: var(--glass-2); border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.auton-note .ic { width: 13px; height: 13px; flex-shrink: 0; margin-top: 2px; color: var(--coral); }
.auton-note.dim { color: var(--muted); }
.auton-note.dim .ic { color: var(--muted); }

/* 페이지용 로그 — 카드 단독이라 경계선 제거 */
.appr-log.pg { margin-top: 0; padding-top: 0; border-top: none; margin-bottom: 12px; }
.appr-log.pg .al-row { padding: 6px 0; border-top: 1px solid var(--line); }
.appr-log.pg .al-row:first-child { border-top: none; padding-top: 0; }

/* ---------- 대시보드 요약 카드 ---------- */
.mini-list { display: flex; flex-direction: column; margin-bottom: 12px; }
.mini-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 0; border-top: 1px solid var(--line);
}
.mini-row:first-child { border-top: none; padding-top: 2px; }
.mini-ic {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--tone, var(--blue)) 13%, transparent);
  color: var(--tone, var(--blue));
}
.mini-ic .ic { width: 13px; height: 13px; }
.mini-text {
  flex: 1; min-width: 0;
  font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-sub { font-size: 10.5px; color: var(--faint); flex-shrink: 0; white-space: nowrap; }
.mini-cta {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px; border-radius: 13px;
  background: var(--fill); color: var(--on-fill);
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: filter 0.14s;
}
.mini-cta .ic { width: 14px; height: 14px; }
.mini-cta:hover { filter: brightness(1.12); }
