/* Excel font choices use an editable, unfiltered-on-open combobox. */
#spreadsheetWindow .spreadsheet-font-combobox { display:flex; align-items:stretch; width:170px; min-width:170px; height:29px; border:1px solid var(--ui-border,#b7c5c5); border-radius:5px; background:var(--ui-input,#fff); overflow:hidden; }
#spreadsheetWindow .spreadsheet-font-combobox:focus-within { outline:2px solid var(--office-accent,#107c41); outline-offset:1px; }
#spreadsheetWindow .spreadsheet-font-combobox #spreadsheetFontName { flex:1; width:0; min-width:0; max-width:none; height:100%; padding:0 8px; background:transparent!important; border:0!important; border-radius:0; outline:none!important; color:var(--ui-text,#17201f); }
#spreadsheetWindow .spreadsheet-font-combobox .spreadsheet-font-toggle { display:grid; place-items:center; flex:0 0 27px; width:27px; min-width:27px; height:100%; padding:0; border:0!important; border-left:1px solid var(--ui-border,#b7c5c5)!important; border-radius:0; background:transparent; color:var(--ui-text,#17201f); }
#spreadsheetWindow .spreadsheet-font-toggle svg { width:14px; height:14px; pointer-events:none; }
#spreadsheetWindow .spreadsheet-font-toggle[aria-expanded=true] { background:var(--ui-hover,#e8eff2)!important; }
.spreadsheet-font-popup { position:fixed; z-index:31000; display:flex; flex-direction:column; width:min(310px,calc(100vw - 16px)); box-sizing:border-box; border:1px solid var(--ui-border,#b7c5c5); border-radius:9px; padding:5px; background:var(--ui-raised,#fff); color:var(--ui-text,#17201f); box-shadow:0 12px 36px #0005; font:13px/1.4 "Segoe UI",sans-serif; }
.spreadsheet-font-heading { flex:none; padding:7px 9px; font-weight:600; }
.spreadsheet-font-options { min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; padding:2px; }
.spreadsheet-font-option { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:35px; box-sizing:border-box; padding:6px 10px; border:1px solid transparent; border-radius:4px; cursor:default; }
.spreadsheet-font-option>span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; }
.spreadsheet-font-option[aria-selected=true] { background:color-mix(in srgb,#107c41 17%,transparent); }
.spreadsheet-font-option:hover,.spreadsheet-font-option.is-active { border-color:#21a366; background:var(--ui-hover,#e8eff2); }
.spreadsheet-font-option small { flex:none; color:var(--ui-muted,#607078); font-size:10px; }
.spreadsheet-font-hint { flex:none; border-top:1px solid var(--ui-border,#b7c5c5); padding:9px 10px 6px; margin-top:5px; color:var(--ui-muted,#607078); font-size:11px; line-height:1.45; }
@media print { .spreadsheet-font-popup { display:none!important; } }
