/* SmartBill-szerű megjelenés (2026-12). Utolsóként töltődik, a korábbi stílusokat felülírja. */
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url(/static/fonts/lato-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url(/static/fonts/lato-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url(/static/fonts/lato-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url(/static/fonts/lato-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root, :root[data-theme="dark"] {
  --sb-side: #2f323a; --sb-side-hover: #3a3e48; --sb-side-on: #25272e; --sb-side-text: #c3c6cd;
  --sb-brand: #4a78c9; --sb-top: #f5f5f5; --sb-bg: #e9e9e9; --sb-card: #fff; --sb-text: #2f313a;
  --sb-muted: #7b7e86; --sb-line: #e2e2e2; --sb-blue: #337bed; --sb-blue-dark: #2563c9;
  --sb-th: #2f313a; --sb-green: #4cae4c; --sb-orange: #f0a030; --sb-red: #d9534f; --sb-grey-btn: #6b6e76;
  --rail: 110px; --header: calc(60px + env(safe-area-inset-top, 0px));
  /* a régi tokenek is a SmartBill-palettát kapják */
  --bg: var(--sb-bg); --card: var(--sb-card); --text: var(--sb-text); --muted: var(--sb-muted);
  --line: var(--sb-line); --primary: var(--sb-blue); --accent: var(--sb-blue); --accent-hover: var(--sb-blue-dark);
  color-scheme: light;
}
html, body { background: var(--sb-bg); color: var(--sb-text); font-family: "Lato", Helvetica, Arial, sans-serif; font-size: 14px; }
a { color: var(--sb-blue); }

/* ---------- fejléc ---------- */
.konytop { background: var(--sb-top) !important; color: var(--sb-text) !important; box-shadow: none !important;
  border-bottom: 1px solid #e4e4e4 !important; height: var(--header); padding-top: env(safe-area-inset-top, 0px); }
.konytop .konybrand { color: var(--sb-text) !important; font-weight: 400; font-size: 1.15rem; letter-spacing: 0 !important; }
.konytop :is(.konyburger, .apk-update-button) { color: var(--sb-text) !important; }
.konytop .konysearch input { background: #fff !important; color: var(--sb-text) !important; border: 1px solid #d6d6d6 !important; border-radius: 3px !important; }
.konytop .konysearch input::placeholder { color: #9a9da4 !important; }
.sb-quick { display: flex; gap: 0; margin-left: 12px; }
.sb-quick a { display: grid; place-items: center; width: 34px; height: 32px; color: #fff; text-decoration: none; }
.sb-quick .sb-q-search { background: var(--sb-grey-btn); border-radius: 3px 0 0 3px; }
.sb-quick .sb-q-new { background: var(--sb-blue); border-radius: 0 3px 3px 0; font-size: 20px; font-weight: 700; }
.sb-company { margin-left: auto; font-weight: 700; font-size: .95rem; white-space: nowrap; color: var(--sb-text); text-decoration: none; padding: 0 6px; }

/* ---------- oldalsáv ---------- */
#konyDrawer { background: var(--sb-side) !important; color: var(--sb-side-text); padding: 0 !important; width: 260px; }
#konyDrawer .dhead { background: var(--sb-brand); min-height: 60px; margin: 0; padding: 0 14px; justify-content: flex-start; gap: 10px; font-weight: 700; }
#konyDrawer .dhead .sb-mark { display: block; width: 36px; height: 36px; border-radius: 50%; background: #fff; padding: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
#konyDrawer a, #konyDrawer .logout, #konyDrawer .sbnav { color: var(--sb-side-text); border-radius: 0; box-shadow: none; }
#konyDrawer a:hover, #konyDrawer .sbnav:hover { background: var(--sb-side-hover); color: #fff; }
#konyDrawer a.on, #konyDrawer .sbgrp.on > .sbnav { background: var(--sb-side-on) !important; color: #fff; box-shadow: none !important; font-weight: 700; }
.sbgrp { position: relative; }
.sbnav { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; border-bottom: 1px solid #ffffff10; text-decoration: none; }
.sbnav svg { width: 20px; height: 20px; flex: 0 0 20px; }
.sbsub { padding: 4px 0 8px 48px; }
.sbsub h4 { display: none; margin: 0; }
.sbsub a { display: block !important; padding: 7px 10px !important; font-size: .92rem; }
.sbsub small { display: block; padding: 10px 10px 2px; color: #8e929b; text-transform: uppercase; font-size: .7rem; letter-spacing: .06em; }

@media (min-width: 1000px) {
  #konyDrawer { width: var(--rail) !important; overflow: visible !important; }
  #konyDrawer .dhead { justify-content: center; padding: 0; }
  #konyDrawer .dhead b { display: none; }
  .sbnav { flex-direction: column; gap: 5px; padding: 13px 4px 11px; text-align: center; font-size: .8rem; line-height: 1.15; }
  .sbnav svg { width: 18px; height: 18px; }
  #konyDrawer > .sbrest { display: none; }
  .sbsub { display: none; position: absolute; left: var(--rail); top: 0; min-width: 230px; padding: 8px 0; background: var(--sb-side); box-shadow: 4px 4px 14px #0004; z-index: 50; }
  .sbsub h4 { display: block; padding: 6px 16px 8px; color: #fff; font-size: .95rem; border-bottom: 1px solid #ffffff18; }
  .sbsub a { padding: 8px 16px !important; }
  .sbsub small { padding: 10px 16px 2px; }
  .sbgrp:hover > .sbsub, .sbgrp:focus-within > .sbsub { display: block; }
  .konytop { left: var(--rail) !important; }
  .konytop .konybrand { display: block !important; }
  body.hashdr { padding-left: var(--rail) !important; }
}

/* ---------- tartalom ---------- */
.hashdr main { max-width: none !important; padding: 16px !important; }
.head { border-bottom: 0 !important; margin-bottom: 14px !important; }
.head h1, h1 { font-size: 1.5rem !important; font-weight: 400 !important; letter-spacing: 0 !important; color: var(--sb-text) !important; }
h2 { font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.card, .tile, .scroll, .doc-list { background: var(--sb-card) !important; border: 1px solid #e0e0e0 !important; border-radius: 2px !important; box-shadow: 0 1px 2px #0000000d !important; }
.btn { border-radius: 3px !important; font-weight: 400 !important; }
.btn.primary, button.primary { background: var(--sb-blue) !important; border-color: var(--sb-blue) !important; color: #fff !important; }
.btn.primary:hover { background: var(--sb-blue-dark) !important; }
input, select, textarea { border-radius: 2px !important; border-color: #d3d3d3 !important; font-family: inherit; }

/* táblázatok: sötét fejléc, mint a SmartBill riportjai */
table thead th, table th { background: var(--sb-th) !important; color: #fff !important; font-weight: 400 !important; font-size: .9rem !important; text-transform: none !important; letter-spacing: 0 !important; border: 0 !important; }
table td { border-bottom: 1px solid #ececec !important; font-size: .93rem; }
table tbody tr:hover td { background: #f6f8fc; }

/* állapotcímkék */
.badge, .doc-tag, .sb-badge { display: inline-block; padding: 1px 7px !important; border-radius: 2px !important; font-size: .8rem !important; font-weight: 400 !important; color: #fff !important; background: #8a8d94; line-height: 1.5; }
.badge.paid, .doc-tag.green, .sb-badge.paid { background: var(--sb-green) !important; }
.badge.overdue, .doc-tag.late, .sb-badge.late { background: var(--sb-orange) !important; }
.badge.cancelled, .doc-tag.cancelled, .sb-badge.cancelled { background: #8a8d94 !important; }
.doc-tag { background: var(--sb-blue) !important; }

/* áttekintő (dashboard) kártyák */
.sb-dash { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.sb-card { background: #fff; border: 1px solid #e0e0e0; box-shadow: 0 1px 2px #0000000d; min-width: 0; }
.sb-card > h3 { margin: 0; padding: 14px 20px; font-size: 1rem; font-weight: 700; text-transform: uppercase; border-bottom: 1px solid #e6e6e6; }
.sb-card .sb-body { padding: 12px 20px 16px; }
.sb-big { font-size: 2rem; font-weight: 400; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.sb-big sup { font-size: .95rem; margin-left: 4px; }
.sb-sub { color: var(--sb-muted); font-size: .85rem; }
.sb-rows { list-style: none; margin: 0; padding: 0; }
.sb-rows li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-variant-numeric: tabular-nums; }
.sb-rows li:last-child { border-bottom: 0; }
.sb-rows small { display: block; color: var(--sb-muted); }
.sb-late { color: var(--sb-orange); white-space: nowrap; }
.sb-scroll { max-height: 290px; overflow-y: auto; }
.sb-wide { grid-column: span 2; }
@media (max-width: 700px) { .sb-wide { grid-column: auto; } .sb-dash { grid-template-columns: minmax(0, 1fr); } }

/* számla-állapot sáv (DEPASITA / INCASATA) */
.sb-state { padding: 9px 14px; border: 1px solid; margin-bottom: 10px; font-size: .92rem; }
.sb-state.late { background: #fdf3e3; border-color: #f2c27a; color: #b46d00; }
.sb-state.paid { background: #eaf6ea; border-color: #9fd39f; color: #2d7a2d; }
.sb-state b { text-transform: uppercase; }

/* számla/befizetés riport-táblázat */
.sb-report { display: none; background: #fff; border: 1px solid #e0e0e0; overflow-x: auto; }
.sb-table { width: 100%; border-collapse: collapse; }
.sb-table th, .sb-table td { padding: 8px 12px; white-space: nowrap; text-align: left; }
.sb-table td:nth-child(2) { white-space: normal; }
.sb-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.sb-table tfoot td { background: #f7f7f7; border-top: 2px solid #ddd !important; }
@media (min-width: 900px) {
  .sb-report { display: block; }
  .sb-report + .doc-list { display: none !important; }
  .doc-filters { background: #fff; border: 1px solid #e0e0e0; margin-bottom: 10px; }
}

/* SmartBill-űrlap (Incasare) */
.sb-form { padding: 18px 20px !important; margin-bottom: 14px; }
.sb-grid { display: grid; grid-template-columns: 170px minmax(0, 360px); gap: 12px 16px; align-items: center; }
.sb-grid label { margin: 0; font-weight: 400; }
.sb-static { padding: 7px 0; font-weight: 700; }
.sb-h3 { margin: 22px 0 8px; font-size: 1rem; text-transform: uppercase; }
tr.rp-full td { background: #eef8ee; }
@media (max-width: 600px) { .sb-grid { grid-template-columns: minmax(0, 1fr); } }
/* számla-szűrő fülek mindig látszanak, mint a SmartBill riport-füljei */
.doc-filters summary { display: none; }
.doc-filters .chips { display: flex !important; flex-wrap: wrap; gap: 0; margin: 0 !important; }
.doc-filters .chip { border: 1px solid var(--sb-blue); color: var(--sb-blue); background: #fff; border-radius: 0; padding: 6px 18px; margin: 0 -1px 0 0; }
.doc-filters .chip.on { background: var(--sb-blue); color: #fff; }

/* számla-nézet: bal panel + számla */
.sb-docview { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
.sb-docside { background: #fff; border: 1px solid #e0e0e0; }
.sb-docside section { padding: 12px 16px; border-bottom: 1px solid #ececec; }
.sb-docside section:last-child { border-bottom: 0; }
.sb-docside h4 { margin: 0 0 8px; font-size: .95rem; }
.sb-docside p { margin: 4px 0; }
.sb-doctools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sb-state { padding: 9px 14px; border: 1px solid #d6dbe3; background: #f4f6fa; margin-bottom: 10px; }
.sb-paper { background: #fff; border: 1px solid #e0e0e0; padding: 8px 4px; }
@media (max-width: 900px) { .sb-docview { grid-template-columns: minmax(0, 1fr); } .sb-docside { order: 2; } }

/* hosszú riportok: saját görgető doboz, ragadós fejléc/összesítő, az oldalirányú sáv mindig látszik */
.sb-scrollbox { max-height: calc(100vh - var(--header) - 150px); overflow: auto !important; }
.sb-scrollbox thead th { position: sticky; top: 0; z-index: 2; }
.sb-scrollbox tfoot td { position: sticky; bottom: 0; z-index: 2; }
.sb-rec td:nth-child(2), .sb-rec td:nth-child(3) { white-space: normal; min-width: 140px; }
.sb-rec form.row { flex-wrap: nowrap; }
.sb-rec input[type=month] { width: 8em !important; padding: 4px; }
.sb-rec input[type=number] { width: 3.2em !important; padding: 4px; }
.sb-rec th, .sb-rec td { padding: 7px 9px; }

/* ---- 2. kör: széles oldalsáv a SmartBill szerint ---- */
:root, :root[data-theme="dark"] { --sb-side: #2d3a4b; --sb-side-hover: #364558; --sb-side-on: #243042; --sb-side-text: #d5dbe3; --sb-brand: #4a7bd0; --sb-th: #4b77be; }
#konyDrawer .dhead .sb-mark { width: 40px; height: 40px; }
#konyDrawer .dhead b { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.35rem; letter-spacing: .01em; }
#konyDrawer .dhead b small { font-size: .62rem; letter-spacing: .12em; font-weight: 700; opacity: .9; }
.sbgrp > .sbnav::after { content: "›"; margin-left: auto; font-size: 1.2rem; opacity: .7; }
@media (min-width: 1000px) {
  :root { --rail: 230px; }
  #konyDrawer { width: var(--rail) !important; }
  #konyDrawer .dhead { justify-content: flex-start; padding: 0 16px; min-height: 64px; }
  #konyDrawer .dhead b { display: flex; }
  .sbnav { flex-direction: row; gap: 14px; padding: 15px 18px; text-align: left; font-size: 1.02rem; line-height: 1.2; border-bottom: 0; }
  .sbnav svg { width: 19px; height: 19px; }
}
.konytop .konybrand { font-size: 1.15rem; color: #6b7079 !important; }
/* táblázatfejléc acélkék, sorok világosak, mint a SmartBill riportjaiban */
table thead th, table th { background: var(--sb-th) !important; }
.sb-table td { color: #4a4f57; }
.sb-table a { color: #3a66b5; }

/* Actiuni legördülő (mint a SmartBill ⌄ menüje) */
.sb-act { position: relative; }
.sb-act > summary { list-style: none; cursor: pointer; padding: 0 8px; font-size: 1.1rem; color: #6b7079; }
.sb-act > summary::-webkit-details-marker { display: none; }
.sb-actmenu { position: absolute; right: 0; top: 100%; z-index: 20; background: #fff; border: 1px solid #d9dde3; box-shadow: 0 4px 14px #0002; padding: 10px 12px; min-width: 240px; display: grid; gap: 8px; }
.sb-actmenu label { display: grid; gap: 3px; font-size: .85rem; }
.sb-rec td { white-space: nowrap; }
.sb-rec td:nth-child(2) { white-space: normal; }

.sb-sec, .sb-secform { display: none; }
.sb-sec.on { display: block; }
.sb-secform.on { display: block; }
.sb-golive { background: #fdf3e3; color: #8a5a00; border-bottom: 1px solid #f2c27a; padding: 8px 18px; font-size: .92rem; }

#konyDrawer a.sbnav { font-size: 1.02rem; }
@media (min-width: 1000px) { #konyDrawer a.sbnav { padding: 15px 18px; } }

/* kinyíló panel a SmartBill szerint: kék fejléc, vastag fehér szakaszcímek */
@media (min-width: 1000px) {
  .sbsub { padding: 0 0 12px; min-width: 300px; }
  .sbsub h4 { background: var(--sb-brand); color: #fff; padding: 20px 22px; margin: 0 0 6px; font-size: 1.05rem; font-weight: 400; border: 0; }
  .sbsub small { color: #fff; font-weight: 700; text-transform: none; letter-spacing: 0; font-size: .95rem; padding: 14px 22px 6px; border-bottom: 1px solid #ffffff1a; margin-bottom: 4px; }
  .sbsub a { padding: 7px 22px !important; font-size: .95rem; }
}

/* főmenü-feliratok ne tördelődjenek (a régi ikon-span szabály felülírása) */
#konyDrawer a.sbnav > span, #konyDrawer .sbnav > span { display: block; width: auto; flex: 1 1 auto; place-items: initial; text-align: left; }
/* kinyíló panel: teljes magasságú, görgethető oszlop, mint a SmartBillben */
@media (min-width: 1000px) {
  .sbsub { position: fixed; top: 0; bottom: 0; left: var(--rail); overflow-y: auto; box-shadow: 6px 0 16px #0003; }
  .sbsub h4 { min-height: 64px; display: flex; align-items: center; }
}

.sb-q-newmenu { position: relative; }
.sb-q-newmenu > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 34px; height: 32px; color: #fff; }
.sb-q-newmenu > summary::-webkit-details-marker { display: none; }
.sb-newlist { position: absolute; top: 38px; left: 0; z-index: 60; background: #fff; border: 1px solid #d9dde3; box-shadow: 0 6px 18px #0003; min-width: 220px; padding: 6px 0; }
.sb-newlist b { display: block; padding: 8px 16px; color: #6b7079; font-weight: 400; font-size: .85rem; border-bottom: 1px solid #eee; }
.sb-newlist a { display: block; padding: 8px 16px; color: var(--sb-text); text-decoration: none; }
.sb-newlist a:hover { background: #f1f5fb; }

.sb-quick .sb-newlist a { display: block; width: auto; height: auto; color: var(--sb-text); white-space: nowrap; border-radius: 0; place-items: initial; }

/* Configurare fülsor + eszközsáv, mint a SmartBillben */
.sb-tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; padding: 4px 4px 0; margin: -4px 0 18px; border-bottom: 1px solid #e3e3e3; }
.sb-tabs a { color: #6b7079; text-decoration: none; padding: 10px 0 12px; border-bottom: 2px solid transparent; font-size: 1rem; }
.sb-tabs a.on { color: var(--sb-blue); border-bottom-color: var(--sb-blue); }
.sb-toolbar { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.sb-toolbar .btn { padding: 8px 18px; }
.sb-modal { position: relative; }
.sb-modal > summary { list-style: none; cursor: pointer; }
.sb-modal > summary::-webkit-details-marker { display: none; }
.sb-modalbox { position: absolute; right: 0; top: 44px; z-index: 40; width: 360px; background: #fff; border: 1px solid #d9dde3; box-shadow: 0 8px 24px #0003; padding: 16px 18px; display: grid; gap: 10px; }
.sb-modalbox h3 { margin: 0 0 4px; font-size: 1.05rem; }
.sb-link { color: #3a66b5; }
.sb-banks td { vertical-align: middle; }

/* a SmartBillben a tartalomterület fehér, csak a Dashboard szürke */
body.hashdr, .hashdr main { background: #fff; }
body.hashdr:has(.sb-dash), .hashdr main:has(.sb-dash) { background: var(--sb-bg); }

.sb-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #d9534f; }
.sb-dot.on { background: #3c9a5f; }
.sb-table .c { text-align: center; }
.sb-advanced { margin-top: 24px; color: var(--sb-muted); }
.sb-advanced summary { cursor: pointer; }

.sb-userform { max-width: 1250px; }
.sb-h { font-size: 1.6rem; font-weight: 400; text-transform: none; margin: 8px 0 22px; color: #555a63; }
.sb-ugrid { display: grid; grid-template-columns: 150px minmax(0, 330px) 190px minmax(0, 300px); gap: 14px 22px; align-items: center; }
.sb-ugrid label small { display: block; font-size: .75rem; color: var(--sb-muted); }
.sb-access { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.sb-access p { color: #6b7079; font-size: .92rem; line-height: 1.55; margin: 10px 0 0 28px; }
.sb-savebar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #e3e3e3; padding: 14px 0; margin-top: 30px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) { .sb-ugrid, .sb-access { grid-template-columns: minmax(0, 1fr); } }

html:has(body.hashdr) { background: #fff; }
html:has(.sb-dash) { background: var(--sb-bg); }

/* Emitere › Factura */
.sb-invform { max-width: 1500px; }
.sb-invtop { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.sb-opt .sb-actmenu { min-width: 260px; }
.sb-invhead { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px 40px; align-items: start; }
.sb-f { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: center; }
.sb-f > label { margin: 0; font-weight: 400; color: #4a4f57; }
.sb-f input, .sb-f select { margin: 0; }
.sb-pair { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px; }
.sb-small { font-size: .85rem; display: inline-block; margin-top: 4px; }
.sb-prodrow { display: grid; grid-template-columns: minmax(0, 3fr) 110px 140px 150px auto auto; gap: 12px; align-items: end; margin: 26px 0 12px; padding-top: 20px; border-top: 1px solid #e6e6e6; }
.sb-prodrow .sb-f { grid-template-columns: 1fr; gap: 4px; }
.sb-qty { display: grid; grid-template-columns: 1fr 26px; }
.sb-qty span { display: grid; }
.sb-qty button { border: 1px solid #d3d3d3; background: #fafafa; font-size: .75rem; line-height: 1; cursor: pointer; }
.sb-lines th { background: #2f313a !important; }
.sb-lines .sb-empty td { text-align: center; color: #6b7079; padding: 14px; }
.sb-pay { margin: 16px 0; display: grid; gap: 8px; }
.sb-pay #pay-box { display: flex; gap: 10px; max-width: 420px; }
.sb-pay #pay-box[hidden] { display: none; }
.sb-more { margin: 6px 0 18px; }
.sb-more > summary { list-style: none; color: var(--sb-blue); border-color: var(--sb-blue) !important; }
.sb-extra { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 22px; border-top: 1px solid #e6e6e6; padding-top: 18px; }
.sb-extra .sb-f { grid-template-columns: 1fr; gap: 4px; }
.sb-extra .wide { grid-column: span 2; }
.sb-savebar.sb-right { justify-content: flex-end; }
@media (max-width: 1100px) { .sb-invhead, .sb-extra { grid-template-columns: minmax(0, 1fr); } .sb-prodrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sb-extra .wide { grid-column: auto; } }

.sbsub { background: var(--sb-side) !important; isolation: isolate; }

/* Emitere › Incasare a SmartBill szerint */
.sb-rpform { max-width: 1500px; }
.sb-rprow { display: grid; grid-template-columns: 110px minmax(0, 300px); gap: 12px; align-items: center; margin-bottom: 12px; }
.sb-rprow label { margin: 0; font-weight: 400; color: #4a4f57; }
.sb-rpclient { padding-bottom: 22px; border-bottom: 1px solid #e6e6e6; margin-bottom: 22px; }
.sb-rpgrid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.sb-rpbottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-top: 1px solid #e6e6e6; padding-top: 18px; margin-top: 8px; flex-wrap: wrap; }

/* Emitere › Cheltuiala */
.sb-exform fieldset { border: 0; padding: 0; margin: 0; }
.sb-exmode { display: flex; justify-content: flex-end; margin-top: 18px; }
.sb-exmode button { border: 1px solid #c9ccd1; background: #fff; padding: 6px 22px; cursor: pointer; color: #4a4f57; }
.sb-exmode button + button { border-left: 0; }
.sb-exmode button.on { border-color: var(--sb-blue); color: var(--sb-blue); box-shadow: inset 0 0 0 1px var(--sb-blue); }
.sb-exrow { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr) 100px auto; }
.sb-exrow [hidden], .sb-report[hidden] { display: none !important; }
.sb-lines tfoot td { font-weight: 700; border-top: 1px solid #ddd; }
@media (max-width: 1100px) { .sb-exrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* e-Factura */
.sb-efx { max-width: 1250px; }
.sb-efform { display: grid; grid-template-columns: 150px minmax(0, 520px); gap: 12px 22px; align-items: center; margin: 18px 0; }
.sb-efact { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
.sb-efmsg { max-width: 420px; font-size: .85rem; color: #6b7079; }
.sb-efline { margin: 0 0 12px; }
@media (max-width: 900px) { .sb-efform { grid-template-columns: minmax(0, 1fr); } }

/* Contul Meu › Securitate */
.sb-tfa { max-width: 900px; }
.sb-steps { line-height: 1.7; padding-left: 20px; }
.sb-steps li { margin-bottom: 16px; }
.sb-qr svg { width: 200px; height: 200px; margin: 10px 0; background: #fff; }
.sb-tfaform { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.sb-tfaform input { max-width: 160px; margin: 0; letter-spacing: 3px; }
