/* GP NIS — tamna tema (html[data-theme=dark]). Obrasci, PDF pregledi i grafikoni ostaju na beloj podlozi. */
html[data-theme=dark]{color-scheme:dark;--ink:#dbe5ec;--muted:#93a6b5;--line:#2b3c4a;--bg:#0e1923;--blue:#4aa3dc}
html[data-theme=dark] body{background:var(--bg);color:var(--ink)}
html[data-theme=dark] header,html[data-theme=dark] .shell>header{background:#13212d;border-color:var(--line)}
html[data-theme=dark] .panel,html[data-theme=dark] .metric,html[data-theme=dark] .subnav,html[data-theme=dark] .panel-head,
html[data-theme=dark] .prep-group,html[data-theme=dark] dialog,html[data-theme=dark] .paper{background:#16242f;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .modal-head,html[data-theme=dark] .form-footer,html[data-theme=dark] .table-foot,html[data-theme=dark] th,
html[data-theme=dark] .summary-strip,html[data-theme=dark] .rig,html[data-theme=dark] .extra-fields,html[data-theme=dark] .passport-required,
html[data-theme=dark] .upload-zone,html[data-theme=dark] .upload-list{background:#1b2b38;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] th{color:#9fb3c2}
html[data-theme=dark] td{border-color:var(--line)}
html[data-theme=dark] tr.row-click:hover{background:#1d303e}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#0f1c27;color:var(--ink);border-color:#36495a}
html[data-theme=dark] input:disabled,html[data-theme=dark] input[readonly]{background:#15222d;color:#a9b9c5}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#6f8394}
html[data-theme=dark] .btn{background:#1b2b38;color:var(--ink);border-color:#36495a}
html[data-theme=dark] .btn:hover{background:#243848}
html[data-theme=dark] .btn.primary{background:#0a78b8;border-color:#0a78b8;color:#fff}
html[data-theme=dark] .btn.primary:hover{background:#0d8ad2}
html[data-theme=dark] .btn.link,html[data-theme=dark] .crumb,html[data-theme=dark] .eyebrow,html[data-theme=dark] .prep-check-heading{color:#5cb3ea}
html[data-theme=dark] .tabs{border-color:var(--line)}
html[data-theme=dark] .tabs button{color:#a9bccb}
html[data-theme=dark] .tabs button.active{color:#7cc4f0;border-bottom-color:#4aa3dc}
html[data-theme=dark] .subnav button{color:var(--ink)}
html[data-theme=dark] .subnav button.active{background:#1f3647;color:#cfe6f5}
html[data-theme=dark] .subnav button:hover{background:#1d303e}
html[data-theme=dark] .notice{background:#16303f;color:#b8cfdd;border-left-color:#3f7fa6}
html[data-theme=dark] .environment-tag{background:#16303f;color:#9fd0ee;border-color:#2b4c62}
html[data-theme=dark] .badge{background:#163a2e;color:#8fe0bd}
html[data-theme=dark] .badge.blue{background:#173250;color:#9cc4ef}
html[data-theme=dark] .badge.amber{background:#3d2e12;color:#f3c77a}
html[data-theme=dark] .badge.grey{background:#24323d;color:#aebdc8}
html[data-theme=dark] .doc-icon{background:#16303f;color:#7cc4f0;border-color:#2b4c62}
html[data-theme=dark] .document-grid .doc-card{border-left-color:#2f5874}
html[data-theme=dark] .document-grid .doc-card small,html[data-theme=dark] .caption,html[data-theme=dark] label.field small{color:#8fa3b3}
html[data-theme=dark] .check-row{border-color:var(--line)}
html[data-theme=dark] .close{background:#243543;color:var(--ink)}
html[data-theme=dark] .kbd,html[data-theme=dark] .demo-pill{background:#243543;color:#aebdc8;border-color:#36495a}
html[data-theme=dark] .is-danger{color:#ff8a8a}
html[data-theme=dark] [style*="background:#fde2e2"]{background:#4a1f22!important;color:#ffb3b3!important}
html[data-theme=dark] [style*="background:#fdf0f0"]{background:#3a1d20!important;border-color:#7a3b3b!important}
html[data-theme=dark] [style*="background:#eef3f7"]{background:#1b2b38!important}
html[data-theme=dark] iframe,html[data-theme=dark] canvas,html[data-theme=dark] .paper img,html[data-theme=dark] img[src^="data:"],html[data-theme=dark] img[src^="blob:"]{background:#fff}
html[data-theme=dark] #online-banner{background:#3d2e12!important;color:#f3d9a6;border-color:#8a6a2a!important}
html[data-theme=dark] ::-webkit-scrollbar{background:#13212d}
html[data-theme=dark] ::-webkit-scrollbar-thumb{background:#30475a;border-radius:6px}
.theme-toggle{border:1px solid var(--line);background:transparent;color:inherit;border-radius:6px;width:36px;height:34px;font-size:17px;line-height:1;display:grid;place-items:center}
.theme-toggle:hover{background:#0001}
html[data-theme=dark] .theme-toggle:hover{background:#ffffff14}
html[data-theme=dark] .sidebar{background:#0a1d2b;border-right-color:#1c3446}
