/* ══════════════════ OA 修改记录 · 账簿抽屉 ══════════════════
   独立于产品紫色主题：暖象牙纸底 + 炭黑墨 + 古铜箔（延续 OA 登录卡调性）。
   全部选择器以 oah- 前缀隔离，避免与主样式相互覆盖。 */
#oah-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(28,27,25,0.40); backdrop-filter: blur(2.5px);
  opacity: 0; pointer-events: none; transition: opacity .30s ease;
}
#oah-overlay.oah-open { opacity: 1; pointer-events: auto; }
#oah-drawer {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(496px, 94vw); background: #F7F4EE;
  display: flex; flex-direction: column;
  transform: translateX(101%); transition: transform .38s cubic-bezier(.22,.61,.36,1);
  box-shadow: -26px 0 70px rgba(28,27,25,.28);
  border-left: 1px solid #E4DCC9;
}
#oah-overlay.oah-open #oah-drawer { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  #oah-overlay, #oah-drawer { transition: none; }
}
/* 左缘拖拽手柄：调抽屉宽度 */
#oah-resize {
  position: absolute; top: 0; left: -3px; width: 7px; height: 100%;
  cursor: ew-resize; z-index: 5;
}
#oah-resize::before {
  content: ''; position: absolute; top: 50%; left: 2px; width: 3px; height: 42px;
  transform: translateY(-50%); border-radius: 2px; background: #D8CEB6;
  opacity: 0; transition: opacity .15s;
}
#oah-resize:hover::before, body.oah-resizing #oah-resize::before { opacity: 1; }
body.oah-resizing { cursor: ew-resize; user-select: none; }
body.oah-resizing #oah-drawer { transition: none; }

.oah-head { padding: 28px 30px 0; position: relative; }
.oah-eyebrow {
  font: 600 10px/1 'Inter', var(--font); letter-spacing: .28em;
  text-transform: uppercase; color: #9C7A3C;
}
.oah-title {
  margin: 10px 0 0; font-family: 'Noto Serif SC', serif; font-weight: 600;
  font-size: 25px; color: #1C1B19; letter-spacing: .02em; line-height: 1.1;
}
.oah-title .oah-title-en {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500;
  color: #9C7A3C; font-size: 22px; margin-left: 8px;
}
.oah-close {
  position: absolute; top: 24px; right: 24px; width: 30px; height: 30px;
  display: grid; place-items: center; border: none; border-radius: 50%;
  background: transparent; color: #8A8372; cursor: pointer; transition: background .15s, color .15s;
}
.oah-close:hover { background: rgba(28,27,25,.06); color: #1C1B19; }

.oah-controls {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 18px 30px 16px; margin-top: 20px;
  border-bottom: 1px solid rgba(28,27,25,.10);
}
.oah-search {
  flex: 1 1 150px; min-width: 120px; padding: 7px 11px; font: 400 12.5px var(--font);
  color: #1C1B19; background: #FCFAF4; border: 1px solid #E4DCC9; border-radius: 7px;
  outline: none; transition: border-color .15s;
}
.oah-search:focus { border-color: #9C7A3C; }
.oah-search::placeholder { color: #B0A992; }
.oah-chip {
  padding: 6px 11px; font: 500 11.5px 'Inter', var(--font); letter-spacing: .01em;
  color: #6B6558; background: transparent; border: 1px solid #E0D8C4; border-radius: 999px;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.oah-chip:hover { border-color: #C9BEA3; color: #1C1B19; }
.oah-chip.on { color: #F1E6CE; background: #1C1B19; border-color: #1C1B19; }

.oah-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.oah-body::-webkit-scrollbar { width: 9px; }
.oah-body::-webkit-scrollbar-thumb { background: #E0D8C4; border-radius: 6px; border: 2px solid #F7F4EE; }

.oah-daydiv {
  position: sticky; top: 0; z-index: 1; padding: 11px 30px;
  background: linear-gradient(#F7F4EE, #F7F4EEF0);
  font-family: 'Noto Serif SC', serif; font-size: 12.5px; font-weight: 600; color: #9C7A3C;
  letter-spacing: .04em; border-bottom: 1px solid rgba(28,27,25,.06);
  backdrop-filter: blur(2px);
}

.oah-entry { position: relative; padding: 16px 30px 16px 46px; border-bottom: 1px solid rgba(28,27,25,.06); }
.oah-entry::before {
  content: ''; position: absolute; left: 30px; top: 22px; bottom: 14px; width: 1.5px;
  background: linear-gradient(#C9A75E, #E4DCC9 85%);
}
.oah-entry::after {
  content: ''; position: absolute; left: 26.5px; top: 17px; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #E6C982, #9C7A3C 70%);
  box-shadow: 0 0 0 3px #F7F4EE, 0 1px 2px rgba(124,94,44,.4);
}
.oah-entry.act-delete::after { background: radial-gradient(circle at 35% 30%, #C97A6A, #8B3A2F 70%); }
.oah-entry.act-create::after { background: radial-gradient(circle at 35% 30%, #7FA07C, #4E6B4B 70%); }

.oah-row1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.oah-time {
  font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600;
  color: #1C1B19; font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.oah-tag {
  font: 600 10.5px 'Inter', var(--font); letter-spacing: .04em; padding: 2px 8px; border-radius: 4px;
  border: 1px solid;
}
.oah-tag.act-create { color: #4E6B4B; border-color: #B9CBB6; background: #EEF3ED; }
.oah-tag.act-update { color: #7A5E2C; border-color: #E0CF9E; background: #F6EFDC; }
.oah-tag.act-delete { color: #8B3A2F; border-color: #E2B7AD; background: #F6E7E2; }
.oah-fail { font: 500 10.5px var(--font); color: #8B3A2F; }

/* 所属 OA 系统标签（两套都接入时才出现）。刻意比 act 标签更轻——它是归属信息，
   不是这条记录的主语；但两套里有同名项目，合并视图下没它就分不清是哪只基金的账。 */
.oah-systag {
  font: 500 10.5px 'Inter', var(--font); letter-spacing: .03em;
  padding: 2px 7px; border-radius: 4px; border: 1px solid #E0D8C4;
  color: #6B6558; background: #F7F4EE;
}
.oah-systag.sys-usd { color: #3F5F6B; border-color: #B6C7CE; background: #EDF2F4; }
/* 系统筛选 chip 组：与动作 chip 之间留一道分隔，表明是另一个维度的筛选 */
.oah-sys-chips {
  display: inline-flex; gap: 8px; align-items: center;
  padding-left: 8px; margin-left: 2px; border-left: 1px solid #E0D8C4;
}

.oah-row2 { margin-top: 5px; font: 400 12px/1.5 'Inter', var(--font); color: #6B6558; }
.oah-row2 b { font-weight: 600; color: #1C1B19; }
.oah-rid { font-family: var(--mono); font-size: 10.5px; color: #A79E88; }
.oah-reason {
  margin-top: 7px; font: 400 12px/1.5 var(--font); color: #57513f;
  padding-left: 9px; border-left: 2px solid #E0CF9E;
}

.oah-changes { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.oah-ch { display: grid; grid-template-columns: minmax(84px, 38%) 1fr; gap: 8px; align-items: baseline; }
.oah-ch-label { font: 400 11.5px var(--font); color: #8A8372; }
.oah-ch-val { font-family: var(--mono); font-size: 11.5px; color: #1C1B19; word-break: break-word; }
.oah-old { color: #B0A992; }
.oah-arrow { color: #9C7A3C; margin: 0 4px; }
.oah-ch.is-del .oah-ch-val { color: #9a7d76; text-decoration: line-through; text-decoration-color: rgba(139,58,47,.4); }
.oah-ch-extra { display: none; }
.oah-changes.oah-expanded .oah-ch-extra { display: grid; }
.oah-more { margin-top: 6px; font: 400 11px var(--font); color: #9C7A3C; cursor: pointer; user-select: none; display: inline-block; }
.oah-more:hover { color: #7d5f28; text-decoration: underline; }
.oah-more:focus-visible { outline: 1px dashed #9C7A3C; outline-offset: 2px; }
.oah-more .oah-more-hide { display: none; }
.oah-changes.oah-expanded .oah-more .oah-more-show { display: none; }
.oah-changes.oah-expanded .oah-more .oah-more-hide { display: inline; }
.oah-snapnote { margin-top: 8px; font: 400 11px/1.5 var(--font); color: #8B3A2F; }

.oah-state { padding: 60px 34px; text-align: center; }
.oah-state-title { font-family: 'Noto Serif SC', serif; font-size: 16px; color: #57513f; }
.oah-state-sub { margin-top: 8px; font: 400 12.5px/1.6 var(--font); color: #A79E88; }
.oah-spin {
  width: 22px; height: 22px; margin: 0 auto 14px; border-radius: 50%;
  border: 2px solid #E4DCC9; border-top-color: #9C7A3C; animation: oah-spin .8s linear infinite;
}
@keyframes oah-spin { to { transform: rotate(360deg); } }
