.opening-adjustment-dialog { box-sizing:border-box; width:min(600px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow-x:hidden; overflow-y:auto; border:1px solid var(--light-gray); border-radius:var(--radius-dialog); padding:var(--space-5); color:var(--dark); background:var(--surface); box-shadow:var(--dialog-shadow); -webkit-text-fill-color:currentColor; }
.opening-adjustment-dialog::backdrop { background:color-mix(in srgb,var(--dark) 40%,transparent); }
.opening-adjustment-dialog [hidden] { display:none !important; }
.opening-adjustment-header { display:flex; align-items:center; justify-content:space-between; gap:var(--space-3); padding-bottom:var(--space-4); border-bottom:1px solid var(--line-subtle); }
.opening-adjustment-header h2 { margin:5px 0 0; font-size:22px; line-height:1.4; letter-spacing:-.4px; }
.opening-adjustment-header .button { min-height:34px; padding:7px 12px; font-size:12px; }
.opening-adjustment-source { margin:10px 0 16px; color:var(--muted); font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.opening-adjustment-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--space-3); padding:var(--space-4); border:1px solid var(--line-subtle); border-radius:var(--radius); background:var(--soft-blue); }
.opening-adjustment-summary .content-heading { min-height:32px; margin-bottom:7px; gap:5px; }
.opening-adjustment-summary span { color:var(--muted); font-size:11px; line-height:1.5; }
.opening-adjustment-summary strong { display:block; font-size:17px; font-weight:650; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.opening-adjustment-summary > :last-child strong { color:var(--primary); }
.opening-adjustment-fields { display:grid; grid-template-columns:minmax(170px,190px) minmax(0,1fr); gap:16px 14px; margin:20px 0 0; }
.opening-adjustment-fields label { display:flex; flex-direction:column; gap:7px; margin:0; min-width:0; font-size:13px; }
.opening-adjustment-fields > label:not(.opening-adjustment-reviewed) > span { display:flex; align-items:center; min-height:24px; }
.opening-adjustment-amount-field { display:flex; flex-direction:column; min-width:0; gap:7px; }
.opening-adjustment-amount-field .content-heading { min-height:32px; }
.opening-adjustment-fields label:not(.opening-adjustment-reviewed) > span:first-child { display:flex; align-items:center; min-height:32px; }
.opening-adjustment-fields input:not([type="checkbox"]),.opening-adjustment-fields textarea { width:100%; min-width:0; box-sizing:border-box; color:var(--dark); background:var(--surface); border-color:var(--field-border); }
.opening-adjustment-fields textarea { height:64px; min-height:64px; padding:10px 12px; line-height:1.5; resize:vertical; }
.opening-adjustment-fields .opening-adjustment-reviewed { grid-column:1/-1; flex-direction:row; align-items:flex-start; gap:9px; font-size:12px; line-height:1.6; }
.opening-adjustment-reviewed input { width:18px; height:18px; min-width:18px; max-width:18px; padding:0; margin:1px 0 0; flex:0 0 18px; accent-color:var(--primary); }
.opening-adjustment-dialog input:disabled,.opening-adjustment-dialog textarea:disabled { background:var(--canvas); }
.opening-adjustment-message { margin:14px 0 0; font-size:12px; line-height:1.65; color:var(--danger); overflow-wrap:anywhere; }
.opening-adjustment-message[data-status="RESOLVED"] { color:var(--accent); }
.opening-adjustment-message:empty { display:none; }
.opening-adjustment-original { margin-top:18px; }
.opening-adjustment-original p { margin:0; color:var(--dark); font-size:12px; font-weight:600; line-height:1.6; overflow-wrap:anywhere; }
.opening-adjustment-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:8px; margin-top:20px; }
.opening-adjustment-actions .button { padding:9px 12px; min-height:38px; font-size:12px; }
.opening-adjustment-actions > :first-child { margin-right:auto; }
.opening-adjustment-history { display:grid; gap:var(--space-4); margin-top:var(--space-4); }
@media(max-width:550px) {
  .opening-adjustment-dialog { width:calc(100vw - 24px); max-height:calc(100dvh - 24px); padding:18px; border-radius:16px; }
  .opening-adjustment-summary { grid-template-columns:minmax(0,1fr); gap:11px; }
  .opening-adjustment-summary > div { display:flex; justify-content:space-between; align-items:center; gap:12px; }
  .opening-adjustment-summary .content-heading { margin:0; }
  .opening-adjustment-summary strong { text-align:right; }
  .opening-adjustment-fields { grid-template-columns:minmax(0,1fr); gap:14px; }
  .opening-adjustment-fields input:not([type="checkbox"]),.opening-adjustment-fields textarea { font-size:16px; }
  .opening-adjustment-actions { gap:7px; }
}
