.annual-workspace { display:grid; grid-template-columns:225px minmax(0,1fr); gap:25px; min-width:0; min-height:0; height:100%; color:#000; font:400 12px Raleway,sans-serif; }
.annual-workspace * { box-sizing:border-box; }
.annual-workspace [hidden] { display:none !important; }
.annual-menu { display:flex; flex-direction:column; min-height:0; gap:25px; border-right:1px solid #d9d9d9; padding-right:25px; overflow:auto; }
.annual-menu nav { display:grid; gap:var(--navigation-row-gap); }
.annual-menu nav button { display:flex; align-items:center; text-align:left; border:0; border-radius:3px; background:transparent; padding:0 15px; height:var(--navigation-row-height); flex:none; font:inherit; color:inherit; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.annual-menu nav button:hover { background:#e1c16e25; }
.annual-menu nav button[aria-current] { background:#fff; }
.annual-menu>.actions { margin-top:auto; }
.annual-main { display:flex; flex-direction:column; min-width:0; min-height:0; gap:25px; }
.annual-message { margin:0; overflow-wrap:anywhere; }
.annual-message:empty { display:none; }
.annual-scroll { min-height:0; overflow:auto; overflow-x:hidden; flex:1; }
.annual-workspace :is(h2,h3) { font:600 12px Raleway,sans-serif; margin:0 0 25px; }
.annual-workspace p { line-height:1.5; }
.annual-workspace label { display:block; line-height:25px; }
.annual-field { display:grid; grid-template-columns:minmax(100px,1fr) minmax(0,2fr); gap:25px; margin-bottom:25px; align-items:start; }
.annual-workspace :is(input:not([type=checkbox]),select,textarea) { min-width:0; width:100%; padding:3px 10px; min-height:25px; border:0; border-radius:3px; background:#f5f6f8; font:inherit; color:inherit; }
.annual-workspace input[type=checkbox] { width:15px; height:15px; }
.annual-workspace textarea { resize:vertical; }
.annual-workspace .actions { display:flex; flex-wrap:wrap; gap:25px; align-items:center; justify-content:flex-end; padding:0; }
.annual-actions { flex:none; min-height:calc(var(--crm-raised-control-face-height) + 25px); padding-top:25px !important; }
.annual-muted { color:#636963; font-size:10px; }
.annual-document-group { padding:25px 0; border-top:1px solid #d9d9d9; }
.annual-document-group article { padding:25px; background:#fff; margin-top:25px; border-radius:3px; overflow-wrap:anywhere; }
.annual-document-group article label { margin-top:25px; }
.annual-document-group article .actions { margin-top:25px; }
.annual-issues { color:#b73535; padding-left:20px; }
.annual-review { margin-top:25px; display:flex; flex-direction:column; align-items:flex-start; gap:25px; }
.annual-period-suggestions { margin-bottom:25px; }
.annual-workspace [data-aa-new-form]>.system-standard-selection-button { margin:25px 0; }
.annual-contributor { display:flex; align-items:center; justify-content:space-between; gap:25px; padding:12px 0; overflow-wrap:anywhere; }
#clientAnnualAccountsPane, #workspace.has-annual #content { container-type:inline-size; }
.annual-workspace .system-standard-raised-action { max-width:100% !important; }
.annual-review .system-standard-action-label { max-width:calc(100% - var(--action-label-offset) - var(--action-end-padding)); overflow:hidden; text-overflow:ellipsis; }
.annual-workspace input[type=file] { height:auto; padding:0; background:transparent; }
.annual-workspace input[type=file]::file-selector-button { height:var(--crm-raised-control-face-height); padding:0 15px; margin-right:10px; border:0; border-radius:3px; background:var(--action-neutral); color:white; font:400 var(--action-label-size) Raleway,sans-serif; cursor:pointer; }
#workspace.has-annual main { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
#workspace.has-annual #content { min-height:0; flex:1; overflow:hidden; }
#clientInfoPanel [data-client-edit-pane="annual"] { display:block; height:100%; overflow:hidden; grid-row:1/-1; }
#clientInfoPanel .client-edit-tabbody:has([data-client-edit-pane="annual"]:not(.hidden))>.client-edit-actions { display:none; }
@media(max-width:700px) {
  .annual-workspace { grid-template-columns:minmax(0,1fr); overflow:auto; height:auto; }
  .annual-menu { border:0; padding:0; overflow:visible; }
  .annual-menu nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .annual-main,.annual-scroll { overflow:visible; }
  .annual-field { grid-template-columns:minmax(0,1fr); gap:5px; }
  #workspace.has-annual #content,#clientInfoPanel [data-client-edit-pane="annual"] { overflow:auto; }
}
/* The staff editor can be narrow inside a wide viewport. Respond to the actual
   available pane width, not just the browser width. */
@container (max-width:650px) {
  .annual-workspace { grid-template-columns:minmax(0,1fr); overflow:auto; }
  .annual-menu { border:0; padding:0; overflow:visible; }
  .annual-menu nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .annual-main,.annual-scroll { overflow:visible; }
  .annual-field { grid-template-columns:minmax(0,1fr); gap:5px; }
}
.annual-choices { display:flex; flex-wrap:wrap; gap:10px; }
.annual-irrelevant { opacity:.45; }
.annual-filename { display:block; border:0; padding:0; background:transparent; color:inherit; font:inherit; text-align:left; text-decoration:underline; overflow-wrap:anywhere; cursor:pointer; }
.annual-filename:disabled { cursor:default; text-decoration:none; }
.annual-preview { width:min(1000px,calc(100vw - 50px)); height:calc(100dvh - 50px); max-height:none; border:0; border-radius:3px; padding:25px; background:#fff; color:#000; }
.annual-preview[open] { display:flex; flex-direction:column; gap:25px; }
.annual-preview::backdrop { background:#0003; backdrop-filter:blur(5px); }
.annual-preview header { display:flex; justify-content:space-between; align-items:center; gap:25px; }
.annual-preview h2 { margin:0; font:600 14px Raleway,sans-serif; overflow-wrap:anywhere; }
.annual-pdf-canvas { flex:1; min-height:0; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.annual-pdf-canvas canvas { max-width:100%; max-height:100%; }
.annual-pdf-pages { display:flex; align-items:center; justify-content:space-between; gap:25px; font:400 12px Raleway,sans-serif; }
