.ihsf {
    --sf-ink: #0f172a;
    --sf-muted: #5b6577;
    --sf-line: #e2e8f0;
    --sf-bg: #f4f6fb;
    --sf-card: #ffffff;
    --sf-field: #ffffff;
    --sf-acc: #4338ca;
    --sf-acc2: #0ea5e9;
    --sf-ok: #15803d;
    --sf-warn: #b45309;
    --sf-bad: #b91c1c;
    --sf-on: #ffffff;
    --sf-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
    color: var(--sf-ink);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    min-width: 0;
}
[data-ih-theme="dark"] .ihsf {
    --sf-ink: #e8edf7;
    --sf-muted: #a5b0c2;
    --sf-line: #2c3547;
    --sf-bg: #141a26;
    --sf-card: #1b2231;
    --sf-field: #111723;
    --sf-acc: #8b8cf8;
    --sf-acc2: #38bdf8;
    --sf-ok: #4ade80;
    --sf-warn: #fbbf24;
    --sf-bad: #f87171;
    --sf-on: #0f1420;
    --sf-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}
[data-ih-theme="dark"] .ihsf input, [data-ih-theme="dark"] .ihsf select, [data-ih-theme="dark"] .ihsf textarea { color-scheme: dark; }
.ihsf *, .ihsf *::before, .ihsf *::after { box-sizing: border-box; }
.ihsf h1, .ihsf h2, .ihsf h3 { font-family: inherit; letter-spacing: -.01em; }
.ihsf a { color: var(--sf-acc); }

.ihsf-hero { position: relative; overflow: hidden; margin: 6px 0 14px; padding: 24px 28px; border-radius: 22px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #6366f1 0%, #4338ca 45%, #1e1b4b 100%); }
.ihsf-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, .45), transparent 70%); }
.ihsf-hero-in { position: relative; z-index: 1; max-width: 820px; }
.ihsf-hero h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.12; font-weight: 800; color: #fff; }
.ihsf-hero p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.ihsf-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.ihsf-trust li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; }
.ihsf-trust svg { width: 16px; height: 16px; }

.ihsf-typesbar { margin: 0 0 16px; }
.ihsf-types-lbl { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--sf-ink); }
.ihsf-types-lbl span { font-size: 12.5px; font-weight: 600; color: var(--sf-muted); }
.ihsf-types { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px; margin: 0; }
.ihsf-types a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; background: var(--sf-card); border: 1px solid var(--sf-line); color: var(--sf-ink); font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ihsf-types a svg { width: 16px; height: 16px; color: var(--sf-acc); }
.ihsf-types a:hover { border-color: var(--sf-acc); }
.ihsf-types a.is-on { background: var(--sf-acc); border-color: var(--sf-acc); color: var(--sf-on); }
.ihsf-types-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin: 0 0 8px; }
.ihsf-types-top .ihsf-types-lbl { margin: 0; }
.ihsf-types-help { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; color: var(--sf-acc); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ihsf-types-help svg { width: 15px; height: 15px; }
.ihsf-types-help.is-on { text-decoration: none; color: var(--sf-ink); }
.ihsf-types a.is-on svg { color: var(--sf-on); }

.sfa { margin: 0 0 30px; }
.sfa-mode { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--sf-ink); }
.sfa-mode b { color: var(--sf-acc); }
.sfa-editing { display: block; margin-top: 6px; padding: 7px 10px; border-radius: 9px; background: color-mix(in srgb, var(--sf-acc) 10%, transparent); color: var(--sf-ink); font-weight: 700; }
.sfa-mode:empty { display: none; }
.sfa-fullbtn[aria-pressed="true"] { background: var(--sf-acc); border-color: var(--sf-acc); color: var(--sf-on); }
html.sf-fullmode, html.sf-fullmode body { overflow: hidden !important; }
.sfa.is-full { position: fixed; inset: 0; z-index: 100001; margin: 0; padding: 16px clamp(12px, 2vw, 32px) 40px; overflow-y: auto; overscroll-behavior: contain; background: var(--sf-bg); }
@media (min-width: 1081px) { .sfa.is-full .sfa-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }

@media (min-width: 1081px) { .sfa.is-full .sfa-prev { position: sticky; top: 0; } }
.sfa [hidden] { display: none !important; }
.sfa-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.sfa-tabs { display: none; }
.sfa-edit { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sfa-box { padding: 16px 16px 12px; border-radius: 18px; background: var(--sf-card); border: 1px solid var(--sf-line); box-shadow: var(--sf-shadow); min-width: 0; }
.sfa-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; font-weight: 800; color: var(--sf-ink); list-style: none; cursor: default; }
.sfa-h::-webkit-details-marker { display: none; }
.sfa-h span { width: 26px; height: 26px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: color-mix(in srgb, var(--sf-acc) 14%, transparent); color: var(--sf-acc); font-size: 13px; font-weight: 800; }
.sfa-h small { font-size: 12px; font-weight: 600; color: var(--sf-muted); }
details.sfa-more > summary { cursor: pointer; margin: 0; }
details.sfa-more > summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--sf-muted); }
details.sfa-more[open] > summary { margin-bottom: 14px; }
details.sfa-more[open] > summary::after { content: "−"; }
.sfa-more .sfa-sub { margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--sf-line); }
.sfa-more .sfa-h + .sfa-sub { margin-top: 4px; padding-top: 0; border-top: 0; }
.sfa-sub { display: block; margin: 0 0 8px; font-size: 13px; color: var(--sf-muted); text-transform: uppercase; letter-spacing: .04em; }

.sfa-f { display: flex; flex-direction: column; gap: 4px; margin: 0 0 9px; min-width: 0; font-size: 12.5px; font-weight: 700; color: var(--sf-muted); }
.sfa-f > span small { font-weight: 600; }
.sfa-f input, .sfa-f select, .sfa-f textarea { width: 100%; min-width: 0; padding: 8px 11px; border: 1px solid var(--sf-line); border-radius: 10px; background: var(--sf-field); color: var(--sf-ink); font: inherit; font-size: 14.5px; font-weight: 600; }
.sfa-f textarea { resize: vertical; font-weight: 500; }
.sfa-f input:focus, .sfa-f select:focus, .sfa-f textarea:focus { outline: none; border-color: var(--sf-acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sf-acc) 20%, transparent); }
.sfa-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.sfa-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }

.sfa-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 13px; background: var(--sf-bg); border: 1px solid var(--sf-line); }
.sfa-seg label { flex: 1 1 auto; position: relative; cursor: pointer; }
.sfa-seg input { position: absolute; opacity: 0; pointer-events: none; }
.sfa-seg span { display: block; padding: 8px 10px; border-radius: 9px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--sf-muted); white-space: nowrap; }
.sfa-seg input:checked + span { background: var(--sf-card); color: var(--sf-acc); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.sfa-seg input:focus-visible + span { outline: 2px solid var(--sf-acc); }

.sfa-switch { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--sf-bg); cursor: pointer; }
.sfa-switch input { position: absolute; opacity: 0; pointer-events: none; }
.sfa-sw { position: relative; width: 42px; height: 24px; flex-shrink: 0; border-radius: 999px; background: #cbd5e1; transition: background .15s; }
.sfa-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.sfa-switch input:checked + .sfa-sw { background: var(--sf-acc); }
.sfa-switch input:checked + .sfa-sw::after { transform: translateX(18px); }
.sfa-switch input:focus-visible + .sfa-sw { outline: 2px solid var(--sf-acc); outline-offset: 2px; }
.sfa-switch b { display: block; font-size: 14px; }
.sfa-switch small { display: block; font-size: 12px; color: var(--sf-muted); font-weight: 600; }
.sfa-check { display: flex; align-items: center; gap: 9px; margin: 0 0 9px; font-size: 14px; font-weight: 600; cursor: pointer; }
.sfa-check input { width: 18px; height: 18px; accent-color: var(--sf-acc); }
.sfa-ref { padding: 12px 12px 2px; margin: 0 0 12px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--sf-warn) 60%, transparent); background: color-mix(in srgb, var(--sf-warn) 7%, transparent); }

.sfa-items { display: flex; flex-direction: column; gap: 10px; }
.sfa-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr); gap: 0 8px; padding: 12px 40px 2px 12px; border-radius: 14px; background: var(--sf-bg); border: 1px solid var(--sf-line); }
.sfa-item .is-name { grid-column: 1 / -1; }
.sfa-item .sfa-f { margin-bottom: 10px; }
.sfa-item .sfa-f input, .sfa-item .sfa-f select { padding: 8px 9px; font-size: 14px; }
.sfa-rm { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--sf-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.sfa-rm:hover { background: color-mix(in srgb, var(--sf-bad) 14%, transparent); color: var(--sf-bad); }
.sfa-add { width: 100%; margin-top: 10px; padding: 11px; border: 1.5px dashed color-mix(in srgb, var(--sf-acc) 50%, transparent); border-radius: 12px; background: transparent; color: var(--sf-acc); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.sfa-add:hover { background: color-mix(in srgb, var(--sf-acc) 8%, transparent); }
.sfa-totals { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--sf-acc) 7%, transparent); font-size: 14px; }
.sfa-totals div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.sfa-totals b { font-variant-numeric: tabular-nums; }
.sfa-totals .is-total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--sf-line); font-size: 16px; }
.sfa-totals .is-total b { color: var(--sf-acc); }

.sfa-tpls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.sfa-tpls label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 12.5px; }
.sfa-tpls input { position: absolute; opacity: 0; pointer-events: none; }
.sfa-tp { position: relative; display: block; width: 100%; aspect-ratio: 210 / 297; border-radius: 8px; background: #fff; border: 2px solid var(--sf-line); overflow: hidden; }
.sfa-tpls input:checked + .sfa-tp { border-color: var(--sf-acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sf-acc) 22%, transparent); }
.sfa-tpls input:focus-visible + .sfa-tp { outline: 2px solid var(--sf-acc); }
.sfa-tp i { position: absolute; left: 14%; right: 14%; height: 5%; border-radius: 2px; background: #cbd5e1; }
.sfa-tp i:nth-child(1) { top: 16%; } .sfa-tp i:nth-child(2) { top: 40%; height: 26%; background: #e2e8f0; } .sfa-tp i:nth-child(3) { top: 74%; left: 50%; }
.tp-modern::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7%; background: #2f5bea; }
.tp-modern i:nth-child(3) { background: #2f5bea; }
.tp-classic i:nth-child(1) { left: 28%; right: 28%; background: #334155; }
.tp-classic i:nth-child(2) { border: 1px solid #334155; background: transparent; }
.tp-minimal i:nth-child(1) { right: 55%; height: 3%; }
.tp-minimal i:nth-child(2) { height: 2%; } .tp-minimal i:nth-child(3) { background: #2f5bea; height: 3%; }
.tp-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9%; background: #2f5bea; }
.tp-band i { left: 22%; } .tp-band i:nth-child(1) { background: #2f5bea; }
.sfa-tpls b { font-weight: 700; color: var(--sf-muted); }
.sfa-tpls input:checked ~ b { color: var(--sf-acc); }
.sfa-colors { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sfa-colors label { position: relative; cursor: pointer; }
.sfa-colors input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.sfa-colors span { display: block; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.sfa-colors input:checked + span { outline: 3px solid var(--sf-ink); outline-offset: 2px; }
.sfa-colors input:focus-visible + span { outline: 3px solid var(--sf-acc); outline-offset: 2px; }
.sfa-custom input { width: 30px; height: 30px; padding: 0; border: 2px dashed var(--sf-line); border-radius: 50%; background: none; cursor: pointer; }
.sfa-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sfa-logo-prev { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 52px; padding: 4px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--sf-line); font-size: 12px; color: #64748b; }
.sfa-logo-prev img { max-width: 140px; max-height: 44px; object-fit: contain; }
.sfa-btn2 { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--sf-line); border-radius: 11px; background: var(--sf-card); color: var(--sf-ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.sfa-btn2:hover { border-color: var(--sf-acc); color: var(--sf-acc); }
.sfa-btn2.is-danger:hover { border-color: var(--sf-bad); color: var(--sf-bad); }
.sfa-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sfa-note { margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: var(--sf-muted); }

.sfa-prev { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 16px 16px; border-radius: 18px; background: var(--sf-card); border: 1px solid var(--sf-line); box-shadow: var(--sf-shadow); }
.sfa-prevhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sfa-prevhead .sfa-h { margin: 0; }
.sfa-tool { display: flex; flex-wrap: wrap; gap: 8px; }
.sfa-pdf { flex: 1 1 220px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 18px; border: 0; border-radius: 13px; background: linear-gradient(135deg, #4f46e5, #4338ca); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 18px rgba(67, 56, 202, .32); }
.sfa-pdf:hover { filter: brightness(1.08); }
.sfa-pdf:focus-visible { outline: 3px solid var(--sf-ink); outline-offset: 2px; }
.sfa-hint { margin: -2px 0 0; font-size: 12px; color: var(--sf-muted); }
.sfa-check-box { padding: 11px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; color: var(--sf-ink); border: 1px solid var(--sf-line); background: var(--sf-card); }
.sfa-check-box p { margin: 0; }
.sfa-check-box.is-start { color: var(--sf-muted); border-style: dashed; }
.sfa-check-box.is-ok { background: color-mix(in srgb, var(--sf-ok) 10%, transparent); border-color: color-mix(in srgb, var(--sf-ok) 40%, transparent); font-weight: 700; color: var(--sf-ok); }
.sfa-check-box.is-need { background: color-mix(in srgb, var(--sf-warn) 8%, transparent); border-color: color-mix(in srgb, var(--sf-warn) 35%, transparent); }
.sfa-check-t { font-weight: 700; margin-bottom: 6px !important; }
.sfa-check-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sfa-check-box li button { padding: 5px 10px; border: 1px solid color-mix(in srgb, var(--sf-warn) 45%, transparent); border-radius: 999px; background: var(--sf-card); color: var(--sf-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.sfa-check-box li button::before { content: "→ "; color: var(--sf-warn); font-weight: 800; }
.sfa-check-box li button:hover { border-color: var(--sf-acc); color: var(--sf-acc); }
@keyframes sfaFlash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--sf-warn) 55%, transparent); } }
.sfa-f .sfa-flash, .sfa-item .sfa-flash { animation: sfaFlash 1.5s ease 1; border-color: var(--sf-warn) !important; }
.sfa-paper { margin: 0 auto; max-width: 100%; position: relative; overflow: hidden; border-radius: 12px; background: #dfe3ea; padding: 0; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06); }
.sfa-paper .sf-sheet { transform-origin: top left; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); }
.sfa-toast { position: fixed; left: 50%; bottom: 22px; z-index: 9999; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 12px; background: #0f172a; color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.sfa-note-s { margin: 10px 0 0; font-size: 12px; }
.sfa-note-s:empty { display: none; }
.sfa-arch { margin-top: 22px; }
.sfa-arch-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.sfa-arch-head .sfa-h { margin: 0; }
.sfa-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.sfa-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--sf-bg); border: 1px solid var(--sf-line); border-left: 4px solid var(--sf-line); min-width: 0; }
.sfa-stat span { font-size: 12px; font-weight: 700; color: var(--sf-muted); }
.sfa-stat b { font-size: 26px; line-height: 1.15; font-weight: 800; color: var(--sf-ink); }
.sfa-stat small { font-size: 12.5px; color: var(--sf-muted); overflow-wrap: anywhere; }
.sfa-stat.is-blue { border-left-color: var(--sf-acc2); }
.sfa-stat.is-ok { border-left-color: var(--sf-ok); }
.sfa-stat.is-warn { border-left-color: var(--sf-warn); }
.sfa-stat.is-bad { border-left-color: var(--sf-bad); }
.sfa-stat.is-bad b { color: var(--sf-bad); }
.sfa-vatlim { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--sf-bg); border: 1px solid var(--sf-line); border-left: 4px solid var(--sf-ok); }
.sfa-vatlim.is-warn { border-left-color: var(--sf-warn); }
.sfa-vatlim.is-bad { border-left-color: var(--sf-bad); }
.sfa-vatlim-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0 0 8px; font-size: 14px; }
.sfa-vatlim-h span { font-weight: 700; font-variant-numeric: tabular-nums; }
.sfa-vatlim-bar { height: 10px; border-radius: 999px; background: var(--sf-line); overflow: hidden; }
.sfa-vatlim-bar i { display: block; height: 100%; border-radius: 999px; background: var(--sf-ok); }
.sfa-vatlim.is-warn .sfa-vatlim-bar i { background: var(--sf-warn); }
.sfa-vatlim.is-bad .sfa-vatlim-bar i { background: var(--sf-bad); }
.sfa-vatlim p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--sf-muted); }
.sfa-afilter { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; margin: 0 0 10px; }
.sfa-afilter input, .sfa-afilter select { width: 100%; padding: 9px 11px; border: 1px solid var(--sf-line); border-radius: 10px; background: var(--sf-field); color: var(--sf-ink); font: inherit; font-size: 14px; }
.sfa-alist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sfa-ar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 130px 190px auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--sf-line); background: var(--sf-card); }
.sfa-ar:hover { border-color: color-mix(in srgb, var(--sf-acc) 45%, var(--sf-line)); }
.sfa-ar-no { display: flex; flex-direction: column; min-width: 0; }
.sfa-ar-no b { font-size: 14.5px; overflow-wrap: anywhere; }
.sfa-ar-no small { font-size: 12px; color: var(--sf-muted); }
.sfa-ar-buyer { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.sfa-ar-sum { font-size: 14.5px; font-weight: 800; text-align: right; white-space: nowrap; }
.sfa-ar-st { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sfa-st { padding: 5px 26px 5px 10px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; max-width: 100%; }
.sfa-st.is-wait { background-color: color-mix(in srgb, var(--sf-warn) 16%, var(--sf-card)); color: var(--sf-warn); border-color: color-mix(in srgb, var(--sf-warn) 35%, transparent); }
.sfa-st.is-bad { background-color: color-mix(in srgb, var(--sf-bad) 14%, var(--sf-card)); color: var(--sf-bad); border-color: color-mix(in srgb, var(--sf-bad) 35%, transparent); }
.sfa-st.is-ok { background-color: color-mix(in srgb, var(--sf-ok) 14%, var(--sf-card)); color: var(--sf-ok); border-color: color-mix(in srgb, var(--sf-ok) 35%, transparent); }
.sfa-st option { background: var(--sf-card); color: var(--sf-ink); }
.sfa-ar-paid { padding: 3px 8px; border: 1px dashed var(--sf-line); border-radius: 8px; background: transparent; color: var(--sf-muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.sfa-ar-paid:hover { border-color: var(--sf-ok); color: var(--sf-ok); }
.sfa-ar-act { display: flex; gap: 6px; }
.sfa-btn3 { padding: 6px 10px; font-size: 12.5px; border-radius: 9px; }
.sfa-badge { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.sfa-badge.is-ok { background: color-mix(in srgb, var(--sf-ok) 15%, transparent); color: var(--sf-ok); }
.sfa-badge.is-wait { background: color-mix(in srgb, var(--sf-warn) 16%, transparent); color: var(--sf-warn); }
.sfa-badge.is-bad { background: color-mix(in srgb, var(--sf-bad) 15%, transparent); color: var(--sf-bad); }
.sfa-badge.is-credit { background: color-mix(in srgb, var(--sf-acc2) 16%, transparent); color: var(--sf-acc2); }
.sfa-aempty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 6px 0 0; }
.sfa-aempty p { margin: 0; font-size: 13.5px; color: var(--sf-muted); }
.sfa-aempty .sfa-btn2 svg, .sfa-pbtn svg { flex-shrink: 0; }
.sfa-cl { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; margin: 0 0 12px; }
.sfa-cl select { width: 100%; min-width: 0; padding: 8px 11px; border: 1px solid var(--sf-line); border-radius: 10px; background: var(--sf-field); color: var(--sf-ink); font: inherit; font-size: 14px; font-weight: 600; }
.sfa-cl select:disabled { color: var(--sf-muted); }
.sfa-clbox { margin-top: 14px; }
.sfa-cl-q { width: 100%; margin: 0 0 10px; padding: 9px 11px; border: 1px solid var(--sf-line); border-radius: 10px; background: var(--sf-field); color: var(--sf-ink); font: inherit; font-size: 14px; }
.sfa-cl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--sf-line); background: var(--sf-card); }
.sfa-cl-info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 260px; }
.sfa-cl-info b { font-size: 14.5px; overflow-wrap: anywhere; }
.sfa-cl-info small { font-size: 12.5px; color: var(--sf-muted); overflow-wrap: anywhere; }
@media (max-width: 560px) { .sfa-cl { grid-template-columns: 1fr 1fr; } .sfa-cl select { grid-column: 1 / -1; } }
.sfa-step .sfa-h small { font-size: 13px; }
.sfa-ssum { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--sf-ok) 9%, transparent); border: 1px solid color-mix(in srgb, var(--sf-ok) 30%, transparent); }
.sfa-ssum p { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.sfa-ssum p::before { content: "✓ "; color: var(--sf-ok); font-weight: 800; }
.sfa-next { width: 100%; margin-top: 6px; padding: 11px; border: 0; border-radius: 12px; background: var(--sf-acc); color: var(--sf-on); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.sfa-next:hover { filter: brightness(1.08); }
.sfa-addrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.sfa-addrow .sfa-add { flex: 1 1 220px; margin: 0; }
.sfa-linkbtn { padding: 0; border: 0; background: none; color: var(--sf-acc); font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.sfa-docsum { margin: 0 0 12px; font-size: 14px; color: var(--sf-ink); line-height: 1.6; }
.sfa-actbox .sfa-check-box { margin: 0 0 12px; }
.sfa-actbox .sfa-tool { margin-bottom: 6px; }
.sfa-more summary.sfa-h small { display: block; width: 100%; margin-top: 2px; font-weight: 600; }
.sfa-more summary.sfa-h { flex-wrap: wrap; }
.sfa-wipe { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--sf-line); font-size: 12.5px; color: var(--sf-muted); }
.sfa-wipe button { padding: 0; border: 0; background: none; color: var(--sf-bad); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.sfa-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; margin: 0 0 16px; padding: 12px 14px; border-radius: 16px; background: var(--sf-card); border: 1px solid var(--sf-line); box-shadow: var(--sf-shadow); }
.sfa-pstats { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.sfa-pchip { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border: 1px solid var(--sf-line); border-left: 4px solid var(--sf-acc2); border-radius: 11px; background: var(--sf-bg); color: var(--sf-ink); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.sfa-pchip b { font-size: 17px; font-weight: 800; }
.sfa-pchip span { color: var(--sf-muted); font-weight: 600; }
.sfa-pchip:hover { border-color: var(--sf-acc); }
.sfa-pchip.is-warn { border-left-color: var(--sf-warn); }
.sfa-pchip.is-bad { border-left-color: var(--sf-bad); }
.sfa-pchip.is-bad b { color: var(--sf-bad); }
.sfa-pact { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.sfa-pmsg { grid-column: 1 / -1; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--sf-muted); }
.sfa-panel.is-warn { border-color: color-mix(in srgb, var(--sf-warn) 55%, var(--sf-line)); }
.sfa-panel.is-warn .sfa-pmsg { padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--sf-warn) 12%, transparent); color: var(--sf-ink); font-weight: 700; }
.sfa-panel.is-warn [data-o="pexport"] { background: var(--sf-acc); border-color: var(--sf-acc); color: var(--sf-on); }
.sfa-more-btn { margin-top: 10px; width: 100%; }
@media (max-width: 1080px) {
    .sfa-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sfa-ar { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
    .sfa-ar-buyer { grid-column: 1; grid-row: 2; }
    .sfa-ar-sum { grid-column: 2; grid-row: 1; }
    .sfa-ar-st { grid-column: 2; grid-row: 2; justify-content: flex-end; }
    .sfa-ar-act { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .sfa-panel { grid-template-columns: minmax(0, 1fr); padding: 12px; }
    .sfa-pact { justify-content: stretch; }
    .sfa-pact .sfa-pbtn { flex: 1 1 140px; }
    .sfa-afilter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .sfa-afilter input { grid-column: 1 / -1; }
    .sfa-stat b { font-size: 22px; }
    .sfa-ar-act .sfa-btn3 { flex: 1; }
    .sfa-ar-buyer { grid-column: 1 / -1; grid-row: 2; }
    .sfa-ar-st { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }
}
.sfa-wcount { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 999px; background: var(--sf-warn); color: #fff; font-size: 11px; }

@media (max-width: 1080px) {
}
@media (max-width: 760px) {
    .ihsf-types { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
    .ihsf-types::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) {
    .ihsf-hero { padding: 24px 18px; border-radius: 18px; }
    .ihsf-hero h1 { font-size: 27px; }
    .sfa-box { padding: 14px 12px; border-radius: 16px; }
    .sfa-row3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sfa-row3 > :last-child:nth-child(3) { grid-column: 1 / -1; }
    .sfa-row2 { grid-template-columns: minmax(0, 1fr); }
    .sfa-item { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sfa-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sfa-seg span { white-space: normal; font-size: 13px; padding: 8px 6px; }
}

.sfa-doc { container-type: inline-size; display: flex; flex-direction: column; padding: 22px 24px 20px; border-radius: 18px; background: var(--sf-card); border: 1px solid var(--sf-line); box-shadow: var(--sf-shadow); min-width: 0; }
.sfa-doc > * + * { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--sf-line); }
.sfa-doc > .sfa-ref { padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--sf-warn) 60%, transparent); }
.sfa-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sfa-dh { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--sf-ink); }
.sfa-dh small { font-size: 12px; font-weight: 600; color: var(--sf-muted); }
.sfa-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sfa-dhead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.sfa-dh-l { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.sfa-dtitle { position: relative; display: inline-flex; max-width: 100%; }
.sfa-dtitle select { appearance: none; -webkit-appearance: none; max-width: 100%; padding: 2px 30px 2px 0; border: 0; border-bottom: 2px dashed transparent; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px center; color: var(--sf-ink); font: inherit; font-size: 26px; font-weight: 800; letter-spacing: -.01em; cursor: pointer; }
.sfa-dtitle select:hover, .sfa-dtitle select:focus { outline: none; border-bottom-color: var(--sf-acc); }
.sfa-dtitle option { font-size: 15px; font-weight: 600; background: var(--sf-card); color: var(--sf-ink); }
.sfa-vatsw { margin: 0; padding: 7px 12px 7px 8px; }
.sfa-vatsw b { font-size: 13.5px; }
.sfa-logo-prev { cursor: pointer; min-width: 120px; height: 56px; border-style: dashed; font-weight: 700; color: var(--sf-acc); }
.sfa-logo-prev:hover { border-color: var(--sf-acc); }
.sfa-logo-prev span { display: inline-flex; align-items: center; }
.sfa-dh-r { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sfa-hf { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--sf-muted); }
.sfa-hf small { font-weight: 600; }
.sfa-hf input, .sfa-hf select { width: 100%; min-width: 0; padding: 7px 10px; border: 1px solid var(--sf-line); border-radius: 10px; background: var(--sf-field); color: var(--sf-ink); font: inherit; font-size: 14.5px; font-weight: 600; }
.sfa-hf input:focus, .sfa-hf select:focus, .sfa-dtitle select:focus-visible { outline: none; border-color: var(--sf-acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sf-acc) 20%, transparent); }
.sfa-sn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.sfa-parties { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.sfa-party { min-width: 0; }
.sfa-seg-sm { margin-bottom: 10px; padding: 3px; }
.sfa-seg-sm span { padding: 6px 8px; font-size: 13px; }
.sfa-party .sfa-note { margin: 8px 0 0; font-size: 12px; }
.sfa-party .sfa-next { margin-top: 2px; padding: 10px; font-size: 14px; }
.sfa-party > .sfa-linkbtn { margin-top: 2px; }
.sfa-doc .sfa-ssum { display: block; padding: 12px 14px; }
.sfa-ssum div { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; line-height: 1.45; color: var(--sf-muted); overflow-wrap: anywhere; }
.sfa-ssum div b { font-size: 15px; color: var(--sf-ink); }
.sfa-ssum div b::before { content: "✓ "; color: var(--sf-ok); }
.sfa-linkbtn { padding: 2px 0; border: 0; background: none; color: var(--sf-acc); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sfa-ihead { display: none; }
.sfa-lsum { display: flex; flex-direction: column; justify-content: center; gap: 4px; margin: 0 0 10px; font-size: 12.5px; font-weight: 700; color: var(--sf-muted); }
.sfa-lsum b { padding: 8px 0; font-size: 14.5px; color: var(--sf-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sfa-dfoot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.sfa-extra .sfa-f { margin-bottom: 8px; }
.sfa-checks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.sfa-sumcol { display: flex; flex-direction: column; gap: 10px; }
.sfa-sumcol .sfa-totals { margin: 0; }
.sfa-paidsw { margin: 0; }
.sfa-doc > .sfa-actbox { display: flex; flex-direction: column; gap: 10px; }
.sfa-actbox .sfa-check-box, .sfa-actbox .sfa-tool { margin: 0; }
.sfa-prev { margin-top: 2px; }
.sfa-pbtn.is-on { background: var(--sf-acc); border-color: var(--sf-acc); color: var(--sf-on); }
.sfa-pbtn.is-on:hover, .sfa-fullbtn[aria-pressed="true"]:hover, .sfa-panel.is-warn [data-o="pexport"]:hover { color: var(--sf-on); filter: brightness(1.1); }
.sfa .sfa-drawer .sfa-tpls { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 420px; }
.sfa-drawer { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px 0 4px; border-top: 1px solid var(--sf-line); }
.sfa-drawer .sfa-sub:first-child { margin-top: 0; }
.sfa-drawer .sfa-sub { margin-top: 14px; }
.sfa-drawer .sfa-tpls { max-width: 420px; }
.sfa-dr-opts { min-width: 0; }
.sfa-dr-prev { min-width: 0; }
@media (min-width: 760px) {
    .sfa-drawer[data-drawer="design"] { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); align-items: start; }
    .sfa-drawer[data-drawer="opts"] .sfa-dr-opts { max-width: 640px; }
}
.sfa-panel { grid-template-columns: minmax(0, 1fr); }
.sfa-panel .sfa-pact { justify-content: flex-start; }
.sfa-info { display: block; }
.sfa-info-st { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: color-mix(in srgb, var(--sf-acc) 8%, transparent); font-size: 13.5px; font-weight: 700; color: var(--sf-ink); }
.sfa-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sfa-info-c { padding: 12px 14px; border-radius: 12px; background: var(--sf-bg); border: 1px solid var(--sf-line); }
.sfa-info-c b { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14.5px; color: var(--sf-ink); }
.sfa-info-c b span { width: 22px; height: 22px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: color-mix(in srgb, var(--sf-acc) 14%, transparent); color: var(--sf-acc); font-size: 12px; }
.sfa-info-c p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--sf-muted); }
.sfa-info-c strong { color: var(--sf-ink); }
.sfa-info-act { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.sfa-info .sfa-note { margin: 0; font-size: 12.5px; }
@media (max-width: 640px) { .sfa-info-grid { grid-template-columns: minmax(0, 1fr); } }
html.sf-modal, html.sf-modal body { overflow: hidden !important; }
.sfa-modal { position: fixed; inset: 0; z-index: 100002; display: flex; justify-content: center; align-items: flex-start; padding: 24px 16px; overflow-y: auto; background: rgba(15, 23, 42, .62); }
.sfa-modal-in { width: 100%; max-width: 860px; padding: 14px; border-radius: 18px; background: var(--sf-card); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.sfa-modal-head { position: sticky; top: -24px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -14px -14px 12px; padding: 12px 14px; border-radius: 18px 18px 0 0; background: var(--sf-card); border-bottom: 1px solid var(--sf-line); }
.sfa-modal-head b { margin-right: auto; font-size: 16px; }
.sfa-pdf.sfa-pdf-sm { flex: 0 0 auto; padding: 9px 16px; font-size: 14px; box-shadow: none; }
@media (max-width: 560px) { .sfa-modal { padding: 10px 6px; } .sfa-modal-in { padding: 10px; } .sfa-modal-head { margin: -10px -10px 10px; top: -10px; } }
.sfa-dtitle select { field-sizing: content; }
.sfa-doc .sfa-cl { grid-template-columns: minmax(0, 1fr) auto; }
.sfa-doc .sfa-cl select { grid-column: auto; }
@media (max-width: 560px) { .sfa-actbox .sfa-pdf { flex-basis: 100%; } .sfa-actbox .sfa-tool .sfa-btn2 { flex: 1 1 0; padding: 9px 8px; } }

@container (min-width: 600px) {
    .sfa-dhead { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 24px; }
    .sfa-parties { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
    .sfa-dfoot { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 28px; align-items: start; }
    .sfa-doc .sfa-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 720px) {
    .sfa-ihead, .sfa-doc .sfa-item { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.1fr) 28px; gap: 8px; align-items: center; }
    .sfa-ihead.has-vat, .has-vat > .sfa-item, .sfa-ihead.has-disc, .has-disc > .sfa-item { grid-template-columns: minmax(0, 3fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1.1fr) 28px; }
    .sfa-ihead.has-vat.has-disc, .has-vat.has-disc > .sfa-item { grid-template-columns: minmax(0, 2.6fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.1fr) 28px; }
    .sfa-ihead { padding: 0 2px 6px; font-size: 12px; font-weight: 700; color: var(--sf-muted); }
    .sfa-ihead span:nth-last-child(2) { text-align: right; }
    .sfa-doc .sfa-items { gap: 6px; }
    .sfa-doc .sfa-item { padding: 0; border: 0; background: none; border-radius: 0; }
    .sfa-doc .sfa-item .is-name { grid-column: auto; }
    .sfa-doc .sfa-item .sfa-f { margin: 0; }
    .sfa-doc .sfa-item .sfa-f > span, .sfa-doc .sfa-lsum > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .sfa-doc .sfa-lsum { margin: 0; text-align: right; }
    .sfa-doc .sfa-rm { position: static; }
    .sfa-doc .sfa-item [data-f="vat"] select { padding-left: 6px; padding-right: 2px; }
}
@container (max-width: 719px) {
    .sfa-doc .sfa-item { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sfa-doc .sfa-lsum { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; margin: -2px 0 10px; padding-top: 6px; border-top: 1px dashed var(--sf-line); }
    .sfa-doc .sfa-lsum b { padding: 0; }
}
@container (min-width: 460px) and (max-width: 719px) {
    .sfa-doc .sfa-item { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sfa-doc .has-vat > .sfa-item, .sfa-doc .has-disc > .sfa-item { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sfa-doc .has-vat.has-disc > .sfa-item { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .sfa-doc { padding: 16px 14px; border-radius: 16px; }
    .sfa-dtitle select { font-size: 22px; }
    .sfa-hf { grid-template-columns: 104px minmax(0, 1fr); }
}

.ihsf-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 26px; padding: 20px 22px; border-radius: 18px; background: var(--sf-card); border: 1px solid var(--sf-line); box-shadow: var(--sf-shadow); }
.ihsf-cta b { display: block; font-size: 18px; }
.ihsf-cta span { font-size: 14px; color: var(--sf-muted); }
.ihsf-btn { display: inline-flex; padding: 12px 20px; border-radius: 12px; background: var(--sf-acc); color: var(--sf-on) !important; font-weight: 800; text-decoration: none; }
.ihsf-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 26px; font-size: 13px; }
.ihsf-toc span { font-weight: 800; color: var(--sf-muted); }
.ihsf-toc a { padding: 6px 12px; border-radius: 999px; background: var(--sf-card); border: 1px solid var(--sf-line); color: var(--sf-ink); font-weight: 700; text-decoration: none; }
.ihsf-toc a:hover { border-color: var(--sf-acc); color: var(--sf-acc); }
.ihsf-sec { margin: 0 0 34px; scroll-margin-top: 90px; }
.ihsf-sec > h2 { margin: 0 0 12px; padding-left: 12px; border-left: 4px solid var(--sf-acc); font-size: 23px; line-height: 1.3; font-weight: 800; color: var(--sf-ink); }
.ihsf-lead { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: var(--sf-muted); }
.ihsf-small { margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--sf-muted); }
.ihsf-seo { max-width: 860px; font-size: 15.5px; line-height: 1.7; }
.ihsf-seo h3 { margin: 24px 0 8px; font-size: 18px; font-weight: 800; color: var(--sf-ink); }
.ihsf-seo p { margin: 0 0 12px; }
.ihsf-seo ul { margin: 0 0 14px; padding-left: 22px; }
.ihsf-seo li { margin: 0 0 6px; }
.ihsf-tbl-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--sf-line); background: var(--sf-card); }
.ihsf-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.ihsf-tbl th { padding: 11px 10px; background: var(--sf-bg); color: var(--sf-muted); font-size: 12px; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--sf-line); }
.ihsf-tbl th:first-child { text-align: left; }
.ihsf-tbl td { padding: 10px; border-bottom: 1px solid var(--sf-line); text-align: center; color: var(--sf-ink); }
.ihsf-tbl td:first-child { text-align: left; font-weight: 700; }
.ihsf-tbl tr:last-child td { border-bottom: 0; }
.ihsf-req { min-width: 640px; }
.ihsf-mk { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-weight: 800; font-size: 13px; }
.ihsf-mk.y { background: color-mix(in srgb, var(--sf-ok) 16%, transparent); color: var(--sf-ok); }
.ihsf-mk.o { background: color-mix(in srgb, var(--sf-warn) 16%, transparent); color: var(--sf-warn); }
.ihsf-mk.n { color: var(--sf-muted); }
.ihsf-lead .ihsf-mk { width: 20px; height: 20px; font-size: 11px; }
.ihsf-sample { overflow: hidden; padding: 18px; border-radius: 18px; background: #dfe3ea; }
.ihsf-sample-in { width: 794px; margin: 0 auto; }
.ihsf-sample .sf-sheet { min-height: 0; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); }
@media (max-width: 860px) { .ihsf-sample-in { zoom: .78; } }
@media (max-width: 680px) { .ihsf-sample-in { zoom: .56; } .ihsf-sample { padding: 10px; } }
@media (max-width: 460px) { .ihsf-sample-in { zoom: .42; } }
.ihsf-faq details { margin: 0 0 8px; padding: 13px 16px; border-radius: 14px; background: var(--sf-card); border: 1px solid var(--sf-line); }
.ihsf-faq summary { cursor: pointer; font-weight: 800; }
.ihsf-faq p { margin: 8px 0 0; line-height: 1.6; }
.ihsf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ihsf-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--sf-card); border: 1px solid var(--sf-line); color: var(--sf-ink) !important; text-decoration: none; transition: border-color .15s, transform .15s; }
.ihsf-card:hover { border-color: var(--sf-acc); transform: translateY(-1px); }
.ihsf-card-ico { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: color-mix(in srgb, var(--sf-acc) 12%, transparent); color: var(--sf-acc); }
.ihsf-card b { font-size: 15.5px; }
.ihsf-card small { font-size: 13px; line-height: 1.45; color: var(--sf-muted); }
.ihsf-more { margin: 14px 0 0; font-size: 14px; }
.ihsf-srcs ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.7; }
@media (max-width: 900px) { .ihsf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ihsf-cards { grid-template-columns: minmax(0, 1fr); } .ihsf-sec > h2 { font-size: 20px; } }

.sf-sheet { --c: #2f5bea; position: relative; width: 794px; min-height: 1123px; padding: 54px 56px 46px; background: #fff; color: #1f2937; font: 400 12.5px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; display: flex; flex-direction: column; -webkit-print-color-adjust: exact; print-color-adjust: exact; text-align: left; letter-spacing: 0; }
.sf-sheet * { box-sizing: border-box; }
.sf-sheet h2, .sf-sheet h3, .sf-sheet p, .sf-sheet dl, .sf-sheet dd { font-family: inherit; text-transform: none; }
.sf-sheet h2, .sf-sheet h3 { line-height: 1.2; }
.sf-band { display: none; }
.sf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin: 0 0 30px; }
.sf-brand { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 46%; }
.sf-logo { max-width: 170px; max-height: 64px; object-fit: contain; }
.sf-mono { width: 46px; height: 46px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--c); color: #fff; font-size: 22px; font-weight: 800; }
.sf-brand-name { font-size: 15px; font-weight: 800; color: #111827; line-height: 1.3; overflow-wrap: anywhere; }
.sf-title { text-align: right; }
.sf-title h2 { margin: 0 0 4px; font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: .02em; color: var(--c); }
.sf-no { font-size: 13.5px; font-weight: 700; color: #111827; }
.sf-dates { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; }
.sf-dates div { text-align: right; }
.sf-dates dt { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.sf-dates dd { margin: 0; font-weight: 700; color: #111827; }
.sf-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 0 0 22px; }
.sf-party h3 { margin: 0 0 6px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--c); }
.sf-party p { margin: 0; color: #374151; overflow-wrap: anywhere; }
.sf-party b { font-size: 13.5px; color: #111827; }
.sf-ref { margin: 0 0 16px; padding: 9px 12px; border-left: 3px solid #d97706; background: #fffbeb; color: #374151; }
.sf-items { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.sf-items th { padding: 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; text-align: right; color: var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); }
.sf-items th:nth-child(1), .sf-items th:nth-child(2), .sf-items td:nth-child(1), .sf-items td:nth-child(2) { text-align: left; }
.sf-items td { padding: 8px; border-bottom: 1px solid #e5e7eb; text-align: right; vertical-align: top; font-variant-numeric: tabular-nums; }
.sf-items td:not(.sf-nm) { white-space: nowrap; }
.sf-items th { line-height: 1.25; vertical-align: bottom; }
.sf-items td:nth-child(1) { width: 28px; color: #9ca3af; }
.sf-items .sf-nm { width: 40%; color: #111827; overflow-wrap: anywhere; white-space: pre-wrap; }
.sf-items td:last-child { font-weight: 700; color: #111827; }
.sf-items tr { break-inside: avoid; }
.sf-empty { text-align: center !important; color: #9ca3af !important; padding: 18px !important; }
.sf-sum { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin: 0 0 18px; break-inside: avoid; }
.sf-words { flex: 1 1 auto; max-width: 52%; color: #374151; }
.sf-words span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; font-weight: 700; margin-bottom: 2px; }
.sf-totals { min-width: 260px; border-collapse: collapse; }
.sf-totals td { padding: 5px 10px; text-align: right; font-variant-numeric: tabular-nums; }
.sf-totals td:first-child { text-align: left; color: #4b5563; }
.sf-totals td:last-child { font-weight: 700; color: #111827; white-space: nowrap; }
.sf-grand td { padding: 10px; font-size: 15px; font-weight: 800 !important; color: #fff !important; background: var(--c); }
.sf-grand td:first-child { border-radius: 8px 0 0 8px; }
.sf-grand td:last-child { border-radius: 0 8px 8px 0; }
.sf-eur td { font-size: 11.5px; padding-top: 7px; }
.sf-notes { margin: 0 0 14px; color: #4b5563; font-size: 11.5px; break-inside: avoid; }
.sf-notes p { margin: 0 0 3px; white-space: pre-wrap; }
.sf-foot { margin-top: 26px; padding-top: 16px; border-top: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; font-size: 11.5px; color: #4b5563; break-inside: avoid; }
.sf-pay p { margin: 0 0 2px; }
.sf-pay b { color: #111827; }
.sf-signs { display: flex; gap: 22px; }
.sf-sign { display: flex; flex-direction: column; min-width: 150px; }
.sf-sign span { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.sf-sign i { display: block; height: 30px; border-bottom: 1px solid #9ca3af; }
.sf-sign small { font-size: 11px; color: #374151; padding-top: 3px; }
.sf-stamp { position: absolute; right: 70px; top: 190px; padding: 6px 16px; border: 3px solid #16a34a; border-radius: 10px; color: #16a34a; font-size: 22px; font-weight: 900; letter-spacing: .12em; transform: rotate(-12deg); opacity: .85; }

.tpl-modern .sf-band { display: block; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--c); }
.tpl-classic { font-family: Georgia, "Times New Roman", serif; }
.tpl-classic .sf-head { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-bottom: 16px; border-bottom: 3px double #111827; }
.tpl-classic .sf-brand { max-width: none; flex-direction: column; }
.tpl-classic .sf-title { text-align: center; }
.tpl-classic .sf-title h2 { color: #111827; font-size: 22px; letter-spacing: .08em; }
.tpl-classic .sf-dates { justify-content: center; }
.tpl-classic .sf-dates div { text-align: center; }
.tpl-classic .sf-party h3 { color: #111827; border-bottom: 1px solid #111827; padding-bottom: 3px; }
.tpl-classic .sf-items th { background: #f3f4f6; color: #111827; border: 1px solid #374151; }
.tpl-classic .sf-items td { border: 1px solid #9ca3af; }
.tpl-classic .sf-grand td { background: #111827; }
.tpl-classic .sf-mono { display: none; }
.tpl-minimal .sf-head { margin-bottom: 40px; }
.tpl-minimal .sf-title h2 { font-size: 12px; letter-spacing: .22em; color: #6b7280; font-weight: 700; }
.tpl-minimal .sf-no { font-size: 26px; font-weight: 300; color: var(--c); letter-spacing: -.01em; }
.tpl-minimal .sf-mono { background: transparent; color: var(--c); border: 2px solid var(--c); border-radius: 50%; }
.tpl-minimal .sf-party h3 { color: #9ca3af; }
.tpl-minimal .sf-items th { background: transparent; color: #6b7280; border-bottom: 2px solid #111827; }
.tpl-minimal .sf-grand td { background: transparent; color: var(--c) !important; border-top: 2px solid #111827; font-size: 18px; }
.tpl-band { padding-left: 82px; }
.tpl-band .sf-band { display: block; position: absolute; left: 0; top: 0; bottom: 0; width: 26px; background: var(--c); }
.tpl-band .sf-head { margin: -54px -56px 28px -82px; padding: 40px 56px 26px 82px; background: color-mix(in srgb, var(--c) 8%, #fff); border-bottom: 2px solid var(--c); }
.tpl-band .sf-items th { background: var(--c); color: #fff; }

.sf-print-root { display: none; }
@media print {
    @page { size: A4; margin: 0; }
    .sf-pw { width: 210mm; border-collapse: collapse; border-spacing: 0; margin: 0; }
    .sf-pw td { padding: 0; border: 0; vertical-align: top; }
    .sf-pw-sp { height: 12mm; }
    .sf-print-root .sf-pw + .sf-pw { break-before: page; page-break-before: always; }
    html.sf-printing, html.sf-printing body { margin: 0 !important; padding: 0 !important; background: #fff none !important; }
    html.sf-printing::before, html.sf-printing::after, html.sf-printing body::before, html.sf-printing body::after { display: none !important; content: none !important; }
    html.sf-printing body > *:not(.sf-print-root) { display: none !important; }
    html.sf-printing .sf-print-root { display: block !important; }
    .sf-print-root .sf-sheet { width: 210mm; min-height: 272mm; padding-top: 34px; box-shadow: none !important; transform: none !important; }
    .sf-print-root.is-many .sf-sheet { overflow: hidden; }
    .sf-print-root.is-many .tpl-band .sf-band { top: 0; bottom: 0; }
    .sf-print-root .tpl-band .sf-band { top: -12mm; bottom: -12mm; }
    .sf-print-root .tpl-band .sf-head { margin-top: -34px; }
}
