.annual-grants-dialog { width: min(1200px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: var(--radius-dialog); padding: 0; color: var(--text); background: var(--surface); box-shadow: var(--shadow-dialog); font-family: inherit; font-size: 14px; }
.annual-grants-dialog::backdrop { background: rgb(15 23 42 / .45); }
.annual-grants-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.annual-grants-header h2 { font-size: 20px; font-weight: 800; }
#annual-grants-content { padding: 20px 22px; }
#annual-grants-content > p { line-height: 1.6; }
#annual-grants-content > p.text-sm { color: var(--muted); font-size: 12px; }
.annual-grants-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-control); }
.annual-grants-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.annual-grants-table th, .annual-grants-table td { padding: 10px 12px; text-align: left; vertical-align: middle; }
.annual-grants-table thead th { background: var(--workreport-surface-soft, #f7f9fd); color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--line); }
.annual-grants-table tbody th, .annual-grants-table tbody td { height: 58px; border-top: 1px solid var(--workreport-line-faint, #e8edf4); }
.annual-grants-table tbody th { font-weight: 700; }
.annual-grants-table tbody tr:hover { background: var(--control-surface, #f8fbff); }
.annual-grants-table [data-grant-net] { font-weight: 700; }
.annual-grants-table .text-gray-500 { color: var(--muted); font-weight: 400; margin-top: 3px; }
.annual-grants-dialog input, .annual-grants-dialog select { min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--text); font: inherit; }
.annual-grants-dialog input:disabled { background: var(--workreport-surface-soft, #f7f9fd); color: var(--muted); }
.annual-grant-units { display: flex; gap: 8px; }
.annual-grant-units label { display: flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--muted); }
.annual-grant-units input { width: 64px; text-align: right; }
.annual-grant-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.annual-grant-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; border: 1px solid var(--line); border-radius: var(--radius-control); padding: 12px 14px; background: var(--workreport-surface-soft, #f7f9fd); }
.annual-grant-summary span { font-size: 12px; color: var(--muted); }
.annual-grant-summary strong { font-size: 16px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.annual-grants-dialog button { min-height: 36px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 700; }
.annual-grants-dialog button:hover { background: var(--workreport-surface-soft, #f7f9fd); }
.annual-grants-dialog [data-app-action="confirm-annual-grants"] { background: var(--accent); border-color: var(--accent); color: white; }
.annual-grants-dialog [data-app-action="confirm-annual-grants"]:hover { background: var(--accent-strong); }
.annual-grants-dialog :is(button, input, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#annual-grant-status { color: var(--muted); font-size: 12px; }
#annual-grant-status + div { justify-content: flex-end; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .annual-grants-header, #annual-grants-content { padding: 16px; } .annual-grant-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .annual-grants-table { min-width: 760px; } }
