/* Тема „Мъгла“: матов синьо-сив фон без бяло, тъмносив (не черен) текст, приглушени цветове */
:root {
  --bg: #e9eef2; --card: #f6f8fa; --field: #fbfcfd; --ink: #2c3a47; --muted: #6b7a88; --line: #d5dde4;
  --brand: #3f5a70; --brand-ink: #e8eef3; --brand-soft: #dde6ee; --hover: #eaf0f5;
  --ok: #3d7a57; --warn: #b08332; --bad: #b04a42;
  --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--brand); }
header.top { background: var(--brand); color: var(--brand-ink); padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
header.top .logo { font-weight: 700; letter-spacing: .5px; display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
header.top .logo img { width: 46px; height: 46px; margin: -6px 0; transition: transform .6s ease; }
header.top .logo:hover img { transform: rotate(-12deg) scale(1.06); }
header.top .ocr-on { color: #b9d7c6; } header.top .ocr-off { color: #f0c9a0; }
header.top .role { font-size: 12px; opacity: .85; }
header.top .sp { flex: 1; }
header.top button { background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.5); }
header.top #notifBtn.has { background: #d4a24e; border-color: #d4a24e; color: #2c2414; }
/* експертът не вижда частите за създаване на фирми и потребители (.admin-only = администратор и главен счетоводител) */
body[data-role="expert"] .admin-only { display: none !important; }
main { max-width: 1200px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
h1, h2, h3 { margin: 0 0 12px; }
h2 { font-size: 18px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #9db4c7; outline-offset: 0; border-color: #9db4c7; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; width: 100%; background: var(--field); color: var(--ink); }
textarea { min-height: 60px; }
button, .btn { font: inherit; cursor: pointer; border: 0; border-radius: 8px; padding: 9px 14px; background: var(--brand); color: var(--brand-ink); text-decoration: none; display: inline-block; }
button.secondary, .btn.secondary { background: var(--brand-soft); color: var(--ink); }
button.danger { background: var(--bad); }
button.ok { background: var(--ok); }
button:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 160px; }
.row > .shrink { flex: 0 0 auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; }
tr.click:hover { background: var(--hover); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; white-space: nowrap; background: var(--brand-soft); }
.badge.uploaded { background: var(--brand-soft); color: #3f5a70; }
.badge.processing { background: #efe4cc; color: #6e4e14; }
.badge.extracted { background: #dbe6f0; color: #2f4f6b; }
.badge.error { background: #f1dcd9; color: #8a332b; }
.badge.approved { background: #d9e8df; color: #2d5a41; }
.badge.exported { background: #cfe3d6; color: #24513a; }
.muted { color: var(--muted); }
.msg { padding: 10px 12px; border-radius: 8px; margin: 8px 0; }
.msg.err { background: #f1dcd9; color: #7a2d26; }
.msg.ok { background: #d9e8df; color: #24513a; }
.msg.warn { background: #efe4cc; color: #5e4210; }
.hidden { display: none !important; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { background: transparent; color: var(--muted); border-radius: 8px 8px 0 0; }
.tabs button.active { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-bottom-color: var(--card); margin-bottom: -1px; }
.bigbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bigbtns label.btn { color: var(--brand-ink); font-size: 17px; text-align: center; padding: 22px 10px; margin: 0; }
.bigbtns label.btn.secondary { color: var(--ink); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { flex: 1; border-radius: 0; background: var(--field); color: var(--ink); }
.seg button.active { background: var(--brand); color: var(--brand-ink); }
.review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.preview { background: #2b2f33; border-radius: var(--radius); min-height: 400px; display: flex; align-items: flex-start; justify-content: center; overflow: auto; max-height: 85vh; position: sticky; top: 8px; }
.preview img { max-width: 100%; transform-origin: top center; }
.preview iframe { width: 100%; height: 85vh; border: 0; background: #fff; }
.lines td input { padding: 4px 6px; }
.login { max-width: 380px; margin: 10vh auto; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); max-width: 560px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0,0,0,.35); }
/* счетоводителската част: по-сбит изглед, повече редове на екран */
body.compact { font-size: 13px; line-height: 1.35; }
body.compact main { max-width: 1400px; padding: 10px 12px; }
body.compact .card { padding: 10px 12px; margin-bottom: 10px; }
body.compact h2 { font-size: 15px; margin-bottom: 8px; }
body.compact h3 { font-size: 13px; margin-bottom: 6px; }
body.compact label { font-size: 11px; margin-bottom: 2px; }
body.compact input, body.compact select, body.compact textarea { padding: 4px 7px; border-radius: 6px; }
body.compact button, body.compact .btn { padding: 5px 10px; border-radius: 6px; }
body.compact th, body.compact td { padding: 3px 6px; }
body.compact th { font-size: 10.5px; }
body.compact td { font-size: 12.5px; }
body.compact .badge { font-size: 11px; padding: 1px 6px; }
body.compact .msg { padding: 6px 9px; margin: 6px 0; }
body.compact .row, body.compact .grid2, body.compact .grid3 { gap: 8px; }
body.compact .lines td input { padding: 2px 4px; }
/* проверка на документ: по-тесен и по-нисък преглед на файла, повече място за формата */
body.compact .review { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px; }
body.compact .preview { min-height: 300px; max-height: 72vh; top: 4px; }
body.compact .preview iframe { height: 72vh; }
body.compact .review form { font-size: 12.5px; }
body.compact .review form [style*="margin-bottom:12px"] { margin-bottom: 6px !important; }
@media (max-width: 800px) {
  .review, .grid2, .grid3 { grid-template-columns: 1fr; }
  .preview { position: static; min-height: 250px; }
  .hide-sm { display: none; }
  th, td { padding: 6px 4px; }
}
/* начален екран: плочки */
.home-head { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 12px; }
.home-head h1 { font-size: 20px; font-weight: 600; margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; text-align: left; color: var(--ink); display: block; width: 100%; font: inherit; }
.tile:hover { border-color: #9db4c7; background: var(--hover); }
.tile .t-title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.tile .t-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.tile .t-num { font-size: 26px; font-weight: 600; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.tile .t-sub { font-size: 12.5px; color: var(--muted); }
.tile .t-sub b { color: var(--warn); }
.tile.alert { border-color: #d4a24e; }
.home-list { font-size: 13px; }
.home-list .it { display: flex; justify-content: space-between; gap: 8px; padding: 6px 2px; border-top: 1px solid var(--line); cursor: pointer; }
.home-list .it:hover { background: var(--hover); }/* данъчен календар */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .wd { font-size: 11px; color: var(--muted); text-align: center; padding: 2px 0; text-transform: uppercase; }
.cal .day { background: var(--field); border: 1px solid var(--line); border-radius: 8px; min-height: 74px; padding: 4px 6px; cursor: pointer; font-size: 12px; overflow: hidden; }
.cal .day:hover { border-color: #9db4c7; }
.cal .day.other { opacity: .45; }
.cal .day.off { background: #e3e8ed; }
.cal .day.off .n { color: var(--bad); }
.cal .day.today { outline: 2px solid var(--brand); }
.cal .day.sel { background: var(--brand-soft); }
.cal .day .n { font-weight: 600; }
.cal .tag { display: block; margin-top: 2px; padding: 1px 5px; border-radius: 5px; background: #dbe6f0; color: #2f4f6b; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .tag.past { background: #e1e6ea; color: var(--muted); }
.ob { border-top: 1px solid var(--line); padding: 10px 0; }
.ob:first-of-type { border-top: 0; }
.ob h3 { margin: 0 0 4px; font-size: 14px; }
.ob ul { margin: 6px 0; padding-left: 20px; }
@media (max-width: 800px) { .cal .day { min-height: 54px; } .cal .tag { font-size: 10px; } }
/* издаване на документи */
.issue-types { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.issue-types button.active-type { background: var(--brand); color: var(--brand-ink); }
.is-box { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px 10px; margin: 0 0 10px; }
.is-box legend { font-size: 12px; color: var(--muted); padding: 0 4px; }
.is-lines td { padding: 3px 4px; } .is-lines input, .is-lines select { padding: 5px 6px; }
.is-totals { text-align: right; line-height: 1.7; }
/* ---------- начален екран: печат, плочки със снимки, движение ---------- */
.hero { display: flex; align-items: center; gap: 22px; margin: 6px 0 16px; }
.hero .stamp { width: 150px; height: 150px; flex: none; transform: rotate(-8deg); opacity: 1; filter: drop-shadow(0 1px 0 rgba(255,255,255,.6)); }
.hero h1 { font-size: 24px; font-weight: 600; margin: 0 0 2px; }
.hero-motto { margin-top: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #6b8296; }
.anim .hero .stamp { animation: stampPress .9s cubic-bezier(.2,.9,.3,1.2) both; }
.anim .hero-text { animation: rise .6s ease .35s both; }
@keyframes stampPress {
  0% { transform: scale(1.9) rotate(-28deg); opacity: 0; }
  60% { transform: scale(.92) rotate(-6deg); opacity: 1; }
  78% { transform: scale(1.03) rotate(-9deg); }
  100% { transform: scale(1) rotate(-8deg); opacity: 1; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ptiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 16px; }
.ptile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer;
  text-align: left; padding: 0; color: var(--ink); font: inherit; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.ptile:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(44,58,71,.14); border-color: #9db4c7; }
.ptile .ph { height: 118px; background-size: cover; background-position: center; position: relative; transition: transform .6s ease; }
.ptile:hover .ph { transform: scale(1.06); }
.ptile .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,42,54,0) 30%, rgba(31,42,54,.72)); }
.ptile .ph-title { position: absolute; left: 14px; bottom: 9px; z-index: 1; color: #fff; font-weight: 600; font-size: 16px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.ptile .pb { padding: 10px 14px 13px; position: relative; background: var(--card); }
.ptile .t-num { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ptile .t-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.ptile .t-sub b { color: var(--warn); }
.ptile.alert { border-color: #d4a24e; }
.ptile.alert .t-num { color: #8a6420; }
.ptile .pulse { position: absolute; top: 10px; right: 10px; z-index: 2; width: 12px; height: 12px; border-radius: 50%; background: #d4a24e; box-shadow: 0 0 0 0 rgba(212,162,78,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212,162,78,.7); } 70% { box-shadow: 0 0 0 12px rgba(212,162,78,0); } 100% { box-shadow: 0 0 0 0 rgba(212,162,78,0); } }
.anim .ptile { animation: rise .55s ease both; }
/* календар: изсветлената снимка е фон на месеца, сроковете — отдолу */
.ptile.cal { grid-column: span 2; }
.ptile.cal .cal-top { position: relative; background-size: cover; background-position: center 60%; }
.ptile.cal .veil { position: absolute; inset: 0; background: rgba(246,248,250,.62); backdrop-filter: blur(1px); }
.ptile.cal .cal-in { position: relative; padding: 12px 16px 14px; }
.ptile.cal h3 { margin: 0 0 8px; font-size: 16px; }
.mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 13px; text-align: center; font-weight: 500; }
.mini .wd { color: #3b4a58; font-size: 10.5px; text-transform: uppercase; font-weight: 600; }
.mini .d { padding: 5px 0; border-radius: 7px; background: rgba(255,255,255,.72); }
.mini .d.off { color: var(--bad); background: rgba(255,255,255,.45); }
.mini .d.dl { background: #3f5a70; color: #fff; font-weight: 700; }
.mini .d.today { outline: 2px solid #d4a24e; outline-offset: -1px; }
.mini .d.past.dl { background: #8fa3b5; }
.ptile.cal .cal-next { padding: 10px 16px 12px; }
.ptile.cal .cal-next h3 { font-size: 14px; margin: 0 0 4px; }.cal-next .it { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid rgba(157,180,199,.5); font-size: 12.5px; }
.cal-next .it:first-child { border-top: 0; }
.cal-next .when { white-space: nowrap; color: var(--muted); }
.cal-next .when.soon { color: #8a6420; font-weight: 600; }
.cal-foot { margin-top: 8px; font-size: 12px; }
@media (max-width: 800px) { .ptile.cal { grid-column: auto; } .hero .stamp { width: 92px; height: 92px; } }
@media (prefers-reduced-motion: reduce) { .anim *, .ptile, .ptile .ph, .ptile .pulse { animation: none !important; transition: none !important; } }/* тъмна снимка → тъмен воал и светъл текст */
.ptile.cal .cal-top.dark .veil { background: rgba(24,34,44,.55); }
.ptile.cal .cal-top.dark h3 { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.ptile.cal .cal-top.dark .mini .wd { color: #e3ebf2; }
.ptile.cal .cal-top.dark .mini .d { background: rgba(255,255,255,.16); color: #fff; }
.ptile.cal .cal-top.dark .mini .d.off { color: #ffb4ab; background: rgba(255,255,255,.08); }
.ptile.cal .cal-top.dark .mini .d.dl { background: #d4a24e; color: #2c2414; }
.ptile.cal .cal-top.dark .mini .d.past.dl { background: rgba(212,162,78,.55); }
.ptile.cal .cal-top.dark .mini .d.today { outline-color: #fff; }
/* подредба: календарът отпред на цялата ширина, плочките отдолу в един ред */
.ptiles { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ptile.cal { grid-column: 1 / -1; }
.ptile.cal .cal-in { padding: 14px 20px 16px; }
.ptile.cal .mini { gap: 5px; font-size: 14px; }
.ptile.cal .mini .d { padding: 7px 0; }
.ptile .ph { height: 104px; }
@media (max-width: 800px) { .ptile.cal { grid-column: 1 / -1; } .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* подредба: календарът отляво, плочките отдясно една под друга (хоризонтални: снимка + число) */
.ptiles { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(250px, 1fr); gap: 14px; align-items: stretch; }
.ptile.cal { grid-column: auto; }
.ptiles .side { display: flex; flex-direction: column; gap: 12px; }
.ptiles .side .ptile { flex-direction: row; flex: 1; min-height: 92px; }
.ptiles .side .ph { width: 42%; height: auto; min-height: 92px; flex: none; }
.ptiles .side .ph::after { background: linear-gradient(90deg, rgba(31,42,54,.15), rgba(31,42,54,.6)); }
.ptiles .side .ph-title { font-size: 14px; right: 10px; bottom: 8px; }
.ptiles .side .pb { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; }
.ptiles .side .t-num { font-size: 26px; }
@media (max-width: 900px) { .ptiles { grid-template-columns: 1fr; } }
/* таблет и телефон: плочките отгоре една под друга, календарът под тях */
@media (max-width: 900px) { .ptiles .side { order: -1; } }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 10px 0 2px; font-size: 13px; }

/* вид документ — бутони над списъка (Всички / Покупки / Продажби / Банка / Друго) */
.kind-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.kind-tabs button { background: var(--field); color: var(--ink); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.kind-tabs button:hover { background: var(--hover); }
.kind-tabs button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.kind-tabs .n { opacity: .75; margin-left: 4px; }

/* банково извлечение в прегледа: формата за фактура се скрива, остават бутоните „Разчети отново“ и „Изтрий“ */
#rvForm.bankmode > :not(.btnrow), #rvForm.bankmode #saveBtn, #rvForm.bankmode #approveBtn { display: none; }
.bank-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin-bottom: 12px; font-size: 13px; }
.bank-head b { display: block; font-size: 15px; }
.bank-tx { font-size: 13px; }
.bank-tx td { vertical-align: top; border-top: 1px solid var(--line); padding: 6px 6px; }
.bank-tx .amt { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.bank-tx .in { color: var(--ok); } .bank-tx .out { color: var(--bad); }
.bank-tx .why { color: var(--muted); max-width: 360px; }
.bank-tx .match { font-size: 12px; }
.bank-tx .match a { cursor: pointer; text-decoration: underline; }
.bank-tx .match .src { color: var(--muted); }
/* ДДС: статус на месеца (цветовете като в таблицата в Excel — синьо подадена, зелено в процедура) */
.vat-st.filed { background: #dce8f5; color: #2c4f75; }
.vat-st.procedure { background: #dcefe2; color: #2f6a47; }
.vat-st.not_filed { background: #f6e1df; color: #8f3b34; }
.vat-st.check { background: #f5ead6; color: #7d5c22; }
span.vat-st { padding: 1px 7px; border-radius: 9px; font-size: 12.5px; white-space: nowrap; }
.vat-grid td, .vat-grid th { padding: 4px 6px; font-size: 12.5px; white-space: nowrap; }
.vat-grid td small { font-size: 11px; opacity: .8; }
/* „Фирма“: работен график */
table.sched td, table.sched th { padding: 2px 3px; font-size: 12px; text-align: center; }
table.sched td:first-child { text-align: left; }
table.sched input { width: 34px; padding: 2px; font-size: 12px; text-align: center; }
table.sched .we { background: var(--brand-soft); }
#coNav { gap: 4px; }
/* „Финансови данни“: еднакви колони във всички таблици */
table.fin-t { table-layout: fixed; width: 100%; min-width: 640px; }
table.fin-t td, table.fin-t th { font-size: 13px; padding: 4px 6px; }
/* Преглед на документ (19.10.2026): оригиналът ~70% и на цялата височина, формата — компактна (~30%) */
body.compact .review { grid-template-columns: minmax(0, 7fr) minmax(340px, 3fr); gap: 10px; }
body.compact .preview { min-height: 420px; max-height: calc(100vh - 110px); height: calc(100vh - 110px); top: 4px; }
body.compact .preview iframe { height: calc(100vh - 110px); }
body.compact .preview img { width: 100%; }
body.compact .review form { font-size: 12px; padding: 10px 12px; }
body.compact .review form label { font-size: 11.5px; margin-bottom: 1px; }
body.compact .review form input, body.compact .review form select { font-size: 12px; padding: 3px 6px; min-height: 0; }
body.compact .review form h3 { font-size: 12.5px; margin: 4px 0 2px; }
body.compact .review form .grid3 { gap: 6px; }
body.compact .review form [style*="margin-bottom:12px"] { margin-bottom: 4px !important; }
/* счетоводната операция */
.entry { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; margin: 6px 0 8px; background: var(--field); }
.entry-head { font-weight: 700; font-size: 12px; margin-bottom: 2px; }
.entry table { width: 100%; font-size: 12px; }
.entry td { padding: 2px 4px; border: 0; }
.entry-side { font-weight: 700; width: 26px; }
.entry-note { font-size: 11px; }@media (max-width: 900px) { body.compact .review { grid-template-columns: 1fr; } body.compact .preview { position: static; height: 70vh; max-height: 70vh; } body.compact .preview iframe { height: 70vh; } }
/* Преглед на документ (19.10.2026, 2): документът 60%, формата 40%; името на контрагента — на цял ред */
body.compact .review { grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr); }
.review input.cp-name { width: 100%; font-weight: 600; }
button.small { padding: 2px 8px; font-size: 11.5px; min-height: 0; }
.entry select, .entry input { font-size: 12px; padding: 2px 4px; }
.entry td { vertical-align: top; }
table.lines td { padding: 1px 2px; }
table.lines input { font-size: 12px; padding: 2px 4px; }
@media (max-width: 900px) { body.compact .review { grid-template-columns: 1fr; } }
/* ДДС: автоматично попълнен месец (DEKLAR.TXT, открит от наблюдението на папката) */
.vat-grid td.vat-auto{box-shadow:inset 0 0 0 2px #3b82f6}

/* иконка по вида на файла (fileIcon в common.js) */
.ficon{display:inline-block;min-width:26px;padding:1px 3px;margin-right:6px;border-radius:3px;font:700 10px/14px system-ui,sans-serif;text-align:center;color:#fff;vertical-align:middle;background:#7a8591}
.ficon.pdf{background:#d93025}.ficon.doc{background:#2b579a}.ficon.xls{background:#217346}.ficon.ppt{background:#c43e1c}.ficon.img{background:#8e44ad}.ficon.xml{background:#e67e22}.ficon.txt{background:#5f6b76}.ficon.zip{background:#8d6e63}
