/* =====================================================================
   FILE:  /css/statement-converter.css
   WHAT:  Styles for the free Bank Statement PDF to Excel converter.
   WHY:   Kept in its own file so it loads only on the converter page and
          never changes the look of any other page.
   WHERE: /bank-statement-converter page only, in <head>, AFTER /css/style.css.
   HOW:   Every rule starts with #stmtconv (the tool's <section id="stmtconv">),
          so it cannot affect the header, footer, chat or other pages.
          Uses the site's own variables from style.css (--navy, --orange,
          --line, --paper, --mist, --muted, --display, --body).
          If pasted inside a .cshtml (Razor) file, write "@media" as "@@media".
   ===================================================================== */
#stmtconv [hidden]{display:none !important}
#stmtconv .card{background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:0 30px 60px -34px rgba(23,37,51,.35);padding:clamp(20px,3.2vw,36px)}

/* drop zone */
#stmtconv .drop{display:grid;justify-items:center;gap:6px;text-align:center;border:2px dashed #c9d0d7;border-radius:14px;background:var(--mist);padding:clamp(26px,4vw,44px) 18px;cursor:pointer;transition:border-color .2s,background .2s}
#stmtconv .drop:hover,#stmtconv .drop.over{border-color:var(--orange);background:var(--peach)}
#stmtconv .drop svg{width:58px;height:58px;margin-bottom:6px}
#stmtconv .drop b{font:700 clamp(24px,3vw,30px)/1.05 var(--display);text-transform:uppercase;color:var(--navy)}
#stmtconv .drop small{color:var(--muted);font-size:15px;max-width:52ch}
#stmtconv .drop .btn{margin-top:10px}
#stmtconv .under{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;margin-top:16px}
#stmtconv .lock{display:flex;gap:8px;align-items:center;font-size:14px;font-weight:600;color:#0b7a4b}
#stmtconv .lock svg{width:16px;height:16px;flex:none}
#stmtconv .linkbtn{background:none;border:0;padding:6px 0;font:600 15px var(--body);color:var(--orange);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
#stmtconv .status{margin-top:14px;font-size:15px;color:var(--muted);min-height:24px}
#stmtconv .status.err{color:#b4321f;font-weight:600}

/* results */
#stmtconv .res{margin-top:22px;border-top:1px solid var(--line);padding-top:22px}
#stmtconv .sum{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#stmtconv .sum div{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:var(--paper)}
#stmtconv .sum span{display:block;font-size:13px;color:var(--muted)}
#stmtconv .sum b{display:block;font:700 clamp(24px,3vw,32px)/1.1 var(--display);color:var(--navy);white-space:nowrap}
#stmtconv .sum b.in{color:#0b7a4b}#stmtconv .sum b.out{color:var(--orange)}
@media(max-width:640px){#stmtconv .sum{grid-template-columns:repeat(2,minmax(0,1fr))}}
#stmtconv .actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 12px}
#stmtconv .actions .fname{font-weight:600;color:var(--navy);overflow-wrap:anywhere}
#stmtconv .actions .r{display:flex;flex-wrap:wrap;gap:10px}
#stmtconv .actions .btn{padding:12px 18px;font-size:15px}
#stmtconv .tbl{overflow:auto;max-height:520px;border:1px solid var(--line);border-radius:12px}
#stmtconv table{border-collapse:collapse;width:100%;font-size:15px;min-width:560px}
#stmtconv th{position:sticky;top:0;z-index:1;background:var(--navy);color:#fff;text-align:left;font-weight:600;font-size:13px;letter-spacing:.04em;text-transform:uppercase;padding:11px 12px;white-space:nowrap}
#stmtconv td{border-bottom:1px solid var(--line);padding:9px 12px;vertical-align:top;color:var(--ink)}
#stmtconv tr:nth-child(even) td{background:#fafbfc}
#stmtconv td[contenteditable]{cursor:text}
#stmtconv td[contenteditable]:focus{outline:2px solid var(--orange);outline-offset:-2px;background:var(--peach)}
#stmtconv .n{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#stmtconv td.d{white-space:nowrap}
#stmtconv td.in{color:#0b7a4b}#stmtconv td.out{color:var(--orange-dk)}
#stmtconv td.x{width:44px;text-align:center;padding:4px}
#stmtconv td.x button{width:36px;height:36px;border:0;border-radius:8px;background:none;color:var(--muted);font-size:20px;line-height:1;cursor:pointer}
#stmtconv td.x button:hover{background:var(--mist);color:var(--orange-dk)}
#stmtconv .tip{font-size:14px;color:var(--muted);margin-top:10px}
#stmtconv .msg{margin-top:12px;padding:12px 14px;border-radius:10px;background:var(--peach);color:var(--ink);font-size:15px}

/* disclaimer */
#stmtconv .legal-note{margin-top:22px;border-left:4px solid var(--orange);background:var(--mist);border-radius:0 12px 12px 0;padding:16px 18px;font-size:14px;line-height:1.6;color:#3b4753}
#stmtconv .legal-note p+p{margin-top:8px}
#stmtconv .legal-note b{color:var(--navy)}
#stmtconv .legal-note a{color:var(--orange-dk)}

#stmtconv button:focus-visible,#stmtconv .drop:focus-visible{outline:3px solid rgba(233,97,42,.45);outline-offset:2px}
@media (prefers-reduced-motion:reduce){#stmtconv *{transition:none !important}}
#stmtconv .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#stmtconv .wrap>*,#stmtconv .card,#stmtconv .res,#stmtconv .tbl{min-width:0;max-width:100%}
