/* Pamatstils. Bez iekļautajiem stiliem (CSP style-src 'self').
   Krāsas un fonti — TaxPro (taxpro.lv, 2026-11-29): produktu klientiem piedāvā TaxPro, izstrādā StellarShip.
   Fonti Outfit un Manrope (SIL OFL 1.1, static/fonti/*-OFL.txt) glabājas pie mums — nekādu ārēju fontu serveru. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonti/manrope-latin-400-normal.1589a53d0b0e.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonti/manrope-latin-ext-400-normal.e19a7f36dd91.woff2") format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,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: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonti/manrope-latin-600-normal.58d382c3e448.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonti/manrope-latin-ext-600-normal.3b48de0765e1.woff2") format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,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: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonti/manrope-latin-700-normal.ed9e261b92db.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonti/manrope-latin-ext-700-normal.37a83b63486c.woff2") format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,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: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonti/outfit-latin-500-normal.c5138e4c72ea.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonti/outfit-latin-ext-500-normal.a34e68de59f6.woff2") format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,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: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonti/outfit-latin-600-normal.778dd8bec372.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonti/outfit-latin-ext-600-normal.d4d74d39456b.woff2") format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
  --navy: #022058; --navy-2: #0a2e6e; --teal: #008b74; --teal-2: #00a184;
  --paper: #F5F7FB; --surface: #FFFFFF; --ink: #0A1B36; --text: #1F2A44; --muted: #5C6885; --line: #E4E8F1;
  --ievade: #C5CDDD; --teal-gaiss: rgba(0, 139, 116, .08); --teal-mala: rgba(0, 161, 132, .4);
  --disp: 'Outfit', system-ui, sans-serif; --body: 'Manrope', system-ui, sans-serif;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 var(--body); color: var(--text); background: var(--paper); }
h1, h2, h3, .logo { font-family: var(--disp); font-weight: 600; color: var(--ink); }
h1 { font-size: 1.6rem; margin: 0 0 .75rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
a { color: var(--navy-2); } a:hover { color: var(--teal); }

/* ── Karkass (posms 121, darba vietu maketa stilā): kreisā izvēlne, augšējā josla, darba laukums ── */
.lietotne { display: flex; min-height: 100vh; }
.sanu-josla { flex: 0 0 232px; background: var(--navy); color: #fff; }
.sanu-saturs { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sanu-josla .logo { display: block; color: #fff; text-decoration: none; font-size: 1.05rem; line-height: 1.25; padding: 1.1rem 1.1rem .9rem; }
.sanu-josla nav { display: flex; flex-direction: column; padding-bottom: 1rem; }
.sanu-josla .grupa { padding: .7rem 1.1rem .2rem; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.sanu-josla nav a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .34rem 1.1rem; color: rgba(255,255,255,.88); text-decoration: none; font-size: .93rem; }
.sanu-josla nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sanu-josla nav a.aktiva { background: var(--teal); color: #fff; font-weight: 600; }
.skaits { display: inline-block; min-width: 1.3rem; padding: 0 .35rem; border-radius: 999px; background: #e5484d; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.3rem; text-align: center; font-family: var(--body); }
.darba-laukums { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.augsa { display: flex; align-items: center; gap: .9rem; padding: .7rem 1.5rem; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.augsa .meklet { flex: 1 1 auto; max-width: 520px; margin: 0; }
.augsa .meklet input { background: #F1F4F9; border-color: transparent; border-radius: 10px; padding: .5rem .8rem; }
.augsa .meklet input:focus { background: #fff; }
.augsa-labi { margin-left: auto; display: flex; align-items: center; gap: .8rem; }
.augsa .zvans { position: relative; text-decoration: none; font-size: 1.15rem; }
.augsa .zvans .skaits { position: absolute; top: -.45rem; right: -.65rem; }
.augsa .firma { border: 1px solid var(--line); border-radius: 8px; padding: .32rem .7rem; text-decoration: none; color: var(--ink); font-weight: 600; white-space: nowrap; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; }
.iniciali { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; cursor: pointer; list-style: none; }
.izkrit { position: relative; }
.izkrit > summary { list-style: none; } .izkrit > summary::-webkit-details-marker { display: none; }
.izkrit > summary.poga { margin-top: 0; }
.izkrit-saturs { position: absolute; right: 0; top: calc(100% + .35rem); min-width: 13rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(10,27,54,.12); padding: .35rem 0; z-index: 30; display: flex; flex-direction: column; }
.izkrit-saturs a, .izkrit-saturs .saite, .izkrit-saturs .maza { padding: .45rem .9rem; text-decoration: none; color: var(--ink); text-align: left; }
.izkrit-saturs a:hover { background: var(--paper); color: var(--teal); }
.izkrit-saturs .maza { color: var(--muted); font-size: .85em; border-bottom: 1px solid var(--line); }
main { width: 100%; max-width: 1280px; padding: 1.4rem 1.5rem; }
.bez-izvelnes main { margin: 0 auto; max-width: 1200px; }
.galva { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .75rem 1.25rem; background: var(--navy); color: #fff; }
.galva .logo, .galva .saite { color: #fff; text-decoration: none; }
.izvelne-slegis { position: absolute; opacity: 0; width: 1px; height: 1px; }
.izvelne-poga { display: none; margin: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: .1rem .4rem; color: var(--ink); }

/* ── Lapas galva, cilnes, rādītāji, statusi, nākamais solis ── */
.lapas-galva { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; }
.lapas-galva h1 { margin: 0; }
.lapas-galva .apaksvirsraksts { color: var(--muted); font-size: .9rem; }
.lapas-galva .darbibas { margin-left: auto; display: flex; flex-wrap: wrap; gap: .5rem; }
.lapas-galva .darbibas .poga, .lapas-galva .darbibas button { margin-top: 0; }
.cilnes { display: flex; flex-wrap: wrap; gap: 0 1.4rem; border-bottom: 1px solid var(--line); margin: 0 0 1rem; }
.cilnes a { padding: .55rem .1rem; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.cilnes a:hover { color: var(--ink); }
.cilnes .papildu { margin-left: auto; font-size: .88rem; }
.cilnes a.aktiva { color: var(--teal); border-bottom-color: var(--teal); font-weight: 600; }
.raditaji { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.raditajs { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; text-decoration: none; color: inherit; display: block; }
a.raditajs:hover { border-color: var(--teal-mala); }
.raditajs .nos { color: var(--muted); font-size: .82rem; }
.raditajs .vert { font-family: var(--disp); font-weight: 600; font-size: 1.6rem; color: var(--ink); line-height: 1.25; }
.raditajs .piez { color: var(--muted); font-size: .8rem; }
.raditajs.bistams .vert { color: #b42318; }
.divas-kolonnas { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; align-items: start; }
.statuss { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #EEF1F6; color: #3D4A66; white-space: nowrap; }
.statuss.st-nosutita, .statuss.st-neapmaksats, .statuss.st-izrakstits { background: #E3ECFB; color: #1D4ED8; }
.statuss.st-daleji, .statuss.st-saskanosana { background: #FFF1D6; color: #9A5B00; }
.statuss.st-apstiprinata, .statuss.st-apmaksats { background: #DDF4EA; color: #12715B; }
.statuss.st-noraidita, .statuss.st-kavets { background: #FDE2E1; color: #B42318; }
.nakamais { display: inline-block; padding: .18rem .65rem; border: 1px solid var(--ievade); border-radius: 7px; background: #fff; color: var(--ink); font-weight: 600; font-size: .84rem; text-decoration: none; white-space: nowrap; }
.nakamais:hover { border-color: var(--teal); color: var(--teal); }
.tuksa { color: var(--muted); padding: 1rem 0; }
.paskaidrojums { color: var(--muted); font-size: .85rem; margin-top: .6rem; }
.saraksts-darbi { list-style: none; margin: 0; padding: 0; }
.saraksts-darbi li { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.saraksts-darbi li:last-child { border-bottom: 0; }
.saraksts-darbi .teksts { flex: 1 1 auto; min-width: 0; }
.saraksts-darbi .teksts small { display: block; color: var(--muted); }
.atras-pogas { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem; }
.atras-pogas a { display: block; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; background: #fff; }
.atras-pogas a:hover { border-color: var(--teal); color: var(--teal); }
.apaksizvelne { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .4rem 1.2rem; margin: 0 0 1rem; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.apaksizvelne h3 { margin: .2rem 0 .2rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.apaksizvelne a { display: block; padding: .12rem 0; text-decoration: none; }
.apaksizvelne a.aktiva { color: var(--teal); font-weight: 600; }
.meklesanas-rezultati h2 { margin-top: 0; }

.karte { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; }
.karte > h1:first-child { font-size: 1.45rem; }
.karte.tabulai { padding: 0; overflow: hidden; }
.karte.tabulai table { border: 0; }
.karte.tabulai th:first-child, .karte.tabulai td:first-child { padding-left: 1rem; }
.karte.tabulai th:last-child, .karte.tabulai td:last-child { padding-right: 1rem; }
.sauna { max-width: 420px; margin: 3rem auto; }
label { display: block; font-weight: 600; margin-top: .6rem; }
input, select, textarea { width: 100%; padding: .45rem .55rem; border: 1px solid var(--ievade); border-radius: 8px; font: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal-mala); border-color: var(--teal); }
input[type=checkbox], input[type=radio] { width: auto; }
button, .poga { display: inline-block; margin-top: .8rem; padding: .5rem 1rem; border: 1px solid var(--teal); border-radius: 8px; background: var(--teal); color: #fff; font: inherit; font-family: var(--disp); font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.35; }
button:hover, .poga:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
button.sekundara, .poga.sekundara { background: #fff; color: var(--ink); border-color: var(--ievade); }
button.sekundara:hover, .poga.sekundara:hover { background: #fff; color: var(--teal); border-color: var(--teal); }
button.bistama { background: #b42318; border-color: #b42318; }
button.saite, button.saite:hover { background: none; border: 0; padding: 0; margin: 0; color: inherit; text-decoration: underline; font-family: inherit; font-weight: inherit; }
.izkrit-saturs button.saite { text-decoration: none; padding: .45rem .9rem; text-align: left; }
.iekla { display: inline; margin: 0; }
.kluda, .zinojums.error { color: #b42318; }
.zinojums.warning { color: #8a5300; background: #fff6e0; border: 1px solid #f0c36d; padding: .5rem .75rem; border-radius: 8px; }
.zinojums { margin: 0 0 .8rem; }
.zinojums.success { color: #12715B; background: #DDF4EA; padding: .5rem .75rem; border-radius: 8px; }
.labi { color: #12715B; font-weight: 600; } .zinojums.info { background: var(--teal-gaiss); border: 1px solid var(--teal-mala); padding: .5rem .75rem; border-radius: 8px; }
label.maza { font-weight: 400; font-size: .9em; } .anketa fieldset { border: 1px solid var(--line); border-radius: 6px; margin: .5rem 0; } .anketa .lauks { margin: .6rem 0; }
.bridinajums { background: #FFF6DB; border: 1px solid #F0D58A; padding: .5rem .75rem; border-radius: 8px; }
.tabula-ietvars { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th { color: var(--muted); font-size: .8rem; font-weight: 600; background: #F7F9FC; }
th, td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tbody tr:hover td { background: #FAFBFE; }
td.sk, th.sk { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.num a, td.num { font-weight: 700; color: var(--ink); text-decoration: none; }
td.maz { color: var(--muted); }
tr.neieskaitita td { color: var(--muted); font-style: italic; }
.rezerves-kodi { font-family: ui-monospace, monospace; font-size: 1.1rem; columns: 2; }
.qr svg { width: 220px; height: 220px; }
.noslepums { font-family: ui-monospace, monospace; word-break: break-all; }
.rinda { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; }
.kopsumma td { font-weight: 700; }
.logo-prieksskats { max-height: 80px; max-width: 240px; }
.apm-kavets { color: #b42318; font-weight: 600; } .apm-apmaksats { color: #12715B; }
tr.resurss td { font-size: .85em; color: var(--muted); border-top: none; } tr.resurss details summary { cursor: pointer; }
tr.koka-virsraksts td { background: #EAEFF7; } tr.koka-virsraksts.limenis-1 td { background: var(--paper); }

/* grafiks.html */
  .ganta td.g{padding:0;width:.9em;min-width:.9em;border-left:1px solid #eee}
  .ganta td.g.j{background:var(--navy-2)}.ganta td.g.j.k{background:#c0392b}.ganta td.g.j.f{background:#7f8c8d}
  .ganta td.g.s{box-shadow:inset 2px 0 0 #e67e22}.ganta th.g{font-size:.65em;writing-mode:vertical-rl;padding:2px 0}

/* menesis.html */
  .kal{table-layout:fixed;width:100%}.kal td{vertical-align:top;height:6em;font-size:.85em}
  .kal td.nedbriv{background:#eef2f7}.kal td.svetki{background:#fbe3e0}.kal td.svetki>a,.kal td.svetki>.svetku-nos{color:#a2261b;font-weight:600}
  .kal .svetku-nos{display:block;font-size:.8em;line-height:1.2;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .kal-lezenda span{display:inline-block;padding:0 .5em;margin-right:.5em;border-radius:3px;font-size:.85em}.kal-lezenda .nedbriv{background:#eef2f7}.kal-lezenda .svetki{background:#fbe3e0;color:#a2261b}
  .liguma-teksts{font-family:"DejaVu Sans Mono",ui-monospace,monospace;font-size:.85em;white-space:pre-wrap;width:100%;line-height:1.45}
  .kal td.cits{opacity:.5}.kal td.sod{outline:2px solid var(--teal)}.kal .ev{display:block;margin:1px 0;padding:0 2px;border-radius:2px;background:#e8eef7;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .kal .ev.darbs{background:#dbe7f5}.kal .ev.k{background:#f6d5d1}.kal .ev.termins{background:#fde9c8}.kal .ev.finanses{background:#e2f1e2}.kal .ev.briva{background:#eee}

/* noslodze.html */
.noslodze td.n, .noslodze th.n { text-align: center; font-size: .75em; padding: 2px; min-width: 2.2em; }
.noslodze td.brivs { background: #f1f1f1; } .noslodze td.aiz { background: #dbe7f5; }
tr.kritisks td { color: #b42318; }
.noslodze td.parsl { background: #f6d5d1; font-weight: 700; } .noslodze td.promb { box-shadow: inset 0 -3px 0 #8a8a8a; }

/* Telefons (posms 32, karkass — posms 121): izvēlni atver slēdzis bez JS (CSP script-src 'self') */
.izvelne-slegis:focus-visible ~ .lietotne .izvelne-poga { outline: 2px solid var(--teal); border-radius: 4px; }
.atras-darbibas { display: flex; flex-wrap: wrap; gap: .5rem; }
.atras-darbibas .poga { margin-top: 0; }
.saraksts-telefonam { list-style: none; padding: 0; margin: .5rem 0; }
.saraksts-telefonam li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.persona-izvele { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.persona-izvele label { flex: 1 1 14rem; margin-top: 0; }
@media (max-width: 960px) {
  .divas-kolonnas { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }                                   /* iOS nepalielina ievades laukus */
  .izvelne-poga { display: block; }
  .sanu-josla { position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; overflow-y: auto; transform: translateX(-100%); transition: transform .15s; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .izvelne-slegis:checked ~ .lietotne .sanu-josla { transform: none; }
  .augsa { padding: .55rem .8rem; gap: .5rem; flex-wrap: wrap; }
  .augsa .meklet { order: 5; flex-basis: 100%; max-width: none; }
  .augsa .firma { max-width: 9rem; }
  main { padding: .7rem; }
  .karte { padding: .9rem; border-radius: 10px; }
  h1 { font-size: 1.35rem; } h2 { font-size: 1.1rem; }
  input, select, textarea { min-height: 44px; font-size: 16px; }
  input[type=checkbox], input[type=radio] { min-height: 0; width: 1.3rem; height: 1.3rem; }
  button, .poga { min-height: 44px; padding: .65rem 1rem; }
  .atras-darbibas .poga { flex: 1 1 45%; text-align: center; }
  .rinda { grid-template-columns: 1fr; }
  th, td { padding: .4rem .45rem; font-size: .92em; }
  .kal { display: none; }                                     /* mēneša režģis šaurā ekrānā — rāda sarakstu zem tā */
  .rezerves-kodi { columns: 1; }
  .lapas-galva .darbibas { margin-left: 0; }
}
@media print { .sanu-josla, .augsa, .galva, .izvelne-poga, .atras-darbibas, .neprintet { display: none !important; } .lietotne { display: block; } }
.piltuve { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.piltuves-posms h3 { margin-top: 0; font-size: 1rem; }
.kajene { max-width: 1280px; padding: .5rem 1.5rem 1.5rem; color: var(--muted); font-size: .85em; text-align: right; }
.ekrana-kods { font-family: monospace; letter-spacing: .03em; }
.moduli-izvele { list-style: none; padding: 0; }
.moduli-izvele li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.ganta td.g.bd{background:#e6e9ee}.ganta td.g.sv{background:#f3c98b}
.ganta td.g.pb{background:repeating-linear-gradient(45deg,#c0392b 0 2px,#f5d5d0 2px 5px)}
.leg{display:inline-block;width:.9em;height:.9em;vertical-align:middle;border:1px solid #ccc}
.leg.sv{background:#f3c98b}.leg.bd{background:#e6e9ee}.leg.pb{background:repeating-linear-gradient(45deg,#c0392b 0 2px,#f5d5d0 2px 5px)}
table.zurnals th, table.zurnals td { border: 1px solid #99a; padding: .3rem .4rem; vertical-align: top; } table.zurnals td:nth-last-child(-n+2) { min-width: 7rem; }
.karte .apaksizvelne { background: var(--paper); border-color: transparent; }
.ailes-kopsummas { padding: .5rem 1rem; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem .8rem; border-top: 1px solid var(--line); }
.zurnals-bna caption { text-align: left; padding: .5rem 1rem; font-weight: 600; color: var(--ink); }
.maza-poga { margin-top: 0; padding: .25rem .6rem; }
.gada-izvele { width: auto; display: inline-block; padding: .25rem .4rem; }
.forma-tabula th { width: 70%; font-size: .9rem; color: var(--ink); background: #fff; font-weight: 400; }
.forma-tabula tr.l0 th { font-weight: 700; } .forma-tabula tr.l2 th { padding-left: 1.6rem; } .forma-tabula tr.l3 th { padding-left: 2.6rem; } .forma-tabula tr.l1 th { padding-left: .8rem; }
.forma-tabula tr.kops td, .forma-tabula tr.kops th { font-weight: 700; }
@media print { .karte { break-inside: avoid; border: 0; } }
caption.karte-virsraksts { text-align: left; padding: .8rem 1rem .4rem; font-family: var(--disp); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.rinda.plata { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .4rem 1.2rem; }
.maza-tabula th, .maza-tabula td { font-size: .82rem; padding: .3rem .4rem; }
.atradums { border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .6rem; }
form.izvertet { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; } form.izvertet label { flex: 1 1 20rem; }

/* ── Firmas iestatījumi (posms 135): sadaļa = apraksts kreisajā pusē + lauku režģis; etiķetes, lauki un
   paskaidrojumi vienā rindā vienā augstumā (subgrid) ── */
.iest-ur { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; color: var(--muted); font-size: .9rem; }
.iest-ur button { margin-top: 0; }
.iest-sadala { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 1.5rem; scroll-margin-top: 1rem; }
.iest-apraksts h2 { margin: 0 0 .35rem; }
.iest-apraksts p { margin: 0; color: var(--muted); font-size: .88rem; }
.iest-apraksts .logo-prieksskats { margin-top: .8rem; max-width: 160px; }
.iest-lauki-ietvars > summary { display: none; }
.iest-lauki-ietvars:not([open]) > summary { display: list-item; cursor: pointer; color: var(--teal); font-weight: 600; }
.iest-lauki { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); grid-auto-rows: auto auto auto; column-gap: 1rem; row-gap: .15rem; }
.iest-lauks { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; min-width: 0; }
.iest-lauks.plats { grid-column: 1 / -1; }
.iest-lauks > label { margin: .5rem 0 .25rem; align-self: end; font-size: .88rem; }
.iest-lauks.izvele > label { display: flex; gap: .5rem; align-items: center; font-weight: 600; margin-top: .9rem; }
.iest-lauks > small { color: var(--muted); font-size: .8rem; line-height: 1.35; min-height: 0; }
.iest-lauks input:not([type=checkbox]), .iest-lauks select { height: 2.4rem; }
.iest-lauks.ar-kludu input, .iest-lauks.ar-kludu select { border-color: #c0392b; }
.iest-saglabat { position: sticky; bottom: 0; padding: .6rem 0; background: linear-gradient(transparent, var(--paper) 30%); }
@media (max-width: 760px) { .iest-sadala { grid-template-columns: 1fr; gap: .4rem; } }

/* Sākuma atlikumu ievade (posms 136) */
.ievades-tabula td { padding: .2rem .3rem; vertical-align: middle; }
.ievades-tabula input, .ievades-tabula select { padding: .3rem .4rem; min-width: 6rem; }
.ievades-tabula input.sk { text-align: right; font-variant-numeric: tabular-nums; min-width: 7rem; }
