

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
a { text-decoration: none; background: transparent; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 10px; line-height: 1.2; }
p { margin: 0 0 10px; }
ul, ol { margin-top: 0; margin-bottom: 10px; }
dl, dd { margin: 0; }
b, strong { font-weight: 650; }
small { font-size: 85%; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
table { border-collapse: collapse; border-spacing: 0; }
th { text-align: left; }
label { display: inline-block; max-width: 100%; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { display: block; width: 100%; padding: 0; }
img, svg { vertical-align: middle; }
.form-control { display: block; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hidden, [hidden] { display: none !important; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; min-width: 180px; list-style: none; background: #fff; margin: 2px 0 0; padding: 5px 0; }
.open > .dropdown-menu { display: block; }
.dropdown-menu-right { right: 0; left: auto; }
.dropdown-menu .divider { height: 1px; overflow: hidden; }
.dropdown-menu > li > a { white-space: nowrap; }
.table { width: 100%; max-width: 100%; }
.tri .main-header .tri-title { margin: 0; }
.tri .content { display: block; }
.wrapper { position: relative; }

:root { --db: 36px; }
body.no-db { --db: 0px; }
body.no-db .demo-bar { display: none; }
.demo-bar { position: fixed; top: 0; left: 0; right: 0; height: 36px; z-index: 1200; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #1d2a22; color: #f4efe3; font: 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
.demo-bar .db-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bar .db-g { flex: 1; }
.demo-bar button, .demo-bar a { font: inherit; color: #f4efe3 !important; background: rgba(244, 239, 227, .1); border: 1px solid rgba(244, 239, 227, .22); border-radius: 6px; padding: 5px 10px; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1; }
.demo-bar button:hover, .demo-bar a:hover { background: rgba(244, 239, 227, .2); }
@media (max-width: 480px) { .demo-bar { gap: 8px; padding: 0 10px; font-size: 12px; } .demo-bar .db-long { display: none; } }
.tri .main-sidebar { top: var(--db); }
.tri .main-header.tri-top { top: var(--db); }
.tri .content-wrapper { padding-top: calc(var(--top) + var(--db)); }
.tb-sticky { top: calc(var(--top) + var(--db) + 24px); }
@media (max-width: 767px) {
  .tri-search { top: calc(var(--top) + var(--db)); }
}

.tri-search .search-results a { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tri-search .search-results a small { color: var(--ink3); font-size: 12.5px; }
.kn-empty-r { padding: 10px 12px; color: var(--ink3); font-size: 14px; }

.kn-combo { position: relative; }
.kn-combo > svg.ic { position: absolute; left: 12px; top: 11px; color: var(--ink3); pointer-events: none; }
.tri .kn-combo .form-control { padding-left: 38px; }
.kn-combo-list { display: none; position: absolute; left: 0; right: 0; top: 44px; z-index: 50; max-height: 300px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 6px; }
.kn-combo.is-open .kn-combo-list { display: block; }
.kn-combo-list button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 0; background: none; border-radius: 8px; text-align: left; font-size: 14px; color: var(--ink); }
.kn-combo-list button:hover, .kn-combo-list button.is-hi { background: var(--blue); color: #fff; }
.kn-combo-list button:hover small, .kn-combo-list button.is-hi small { color: rgba(255, 255, 255, .85); }
.kn-combo-list small { color: var(--ink3); font-size: 12.5px; white-space: nowrap; }
.kn-combo-pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); font-size: 14.5px; }
.kn-combo-pick b { font-weight: 600; }
.kn-combo-pick small { display: block; color: var(--ink3); font-size: 13px; }
.kn-combo-pick button { border: 0; background: none; color: var(--blue); font-weight: 600; font-size: 13.5px; padding: 6px 8px; border-radius: 6px; }
.kn-combo-pick button:hover { background: var(--blue-s); }

.kn-back { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .4); animation: kn-fade .18s ease; }
.kn-dlg { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.kn-dlg.is-wide { width: min(560px, 100%); }
.tri .kn-dlg .modal-content { background: #fff; }
.kn-dlg .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kn-dlg .modal-title { margin: 0; }
.kn-dlg .modal-body p { margin: 0; color: var(--ink2); }
.kn-dlg .modal-body .tb-f + .tb-f, .kn-dlg .modal-body .tc-f + .tc-f { margin-top: 14px; }
.kn-dlg .modal-footer { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.kn-x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--ink3); display: grid; place-items: center; }
.kn-x:hover { background: var(--ground); color: var(--ink); }
@keyframes kn-fade { from { opacity: 0; } to { opacity: 1; } }
.kn-toasts { position: fixed; top: calc(var(--db) + var(--top) + 12px); right: 16px; z-index: 1400; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.kn-toast { display: flex; align-items: flex-start; gap: 10px; max-width: 360px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); font-size: 14px; color: var(--ink); pointer-events: auto; animation: kn-in .28s var(--ease); }
.kn-toast svg.ic { color: var(--green); margin-top: 1px; }
.kn-toast.is-info svg.ic { color: var(--blue); }
.kn-toast.is-warn svg.ic { color: var(--amber); }
@keyframes kn-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) { .kn-toasts { left: 12px; right: 12px; } .kn-toast { max-width: none; } }

.kn-map { position: relative; background: #eef2f6; overflow: hidden; }
.kn-map svg.kn-map-svg { display: block; width: 100%; height: 100%; }
.kn-map .land { fill: #f3f5f0; }
.kn-map .field { fill: #e6efdf; }
.kn-map .river { fill: none; stroke: #bfdbfe; stroke-width: 14; stroke-linecap: round; }
.kn-map .road { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; }
.kn-map .road-edge { fill: none; stroke: #dfe4ea; stroke-width: 12; stroke-linecap: round; }
.kn-map .road-s { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; }
.kn-map .lbl { font: 600 13px Inter, sans-serif; fill: #94a3b8; letter-spacing: .06em; text-transform: uppercase; }
.kn-map .rlbl { font: 500 11px Inter, sans-serif; fill: #a3adba; }
.kn-map .cable { fill: none; stroke: #94a3b8; stroke-width: 1.5; stroke-dasharray: 4 4; }
.kn-map .mk { cursor: pointer; }
.kn-map .mk circle { stroke: #fff; stroke-width: 2.5; }
.kn-map .mk:hover circle, .kn-map .mk.is-on circle { stroke: var(--ink); }
.kn-map .mk-ok { fill: var(--green); }
.kn-map .mk-warn { fill: #f59e0b; }
.kn-map .mk-bad { fill: var(--red); }
.kn-map .mk-neu { fill: #94a3b8; }
.kn-map .mk-odp rect { fill: #fff; stroke: var(--blue); stroke-width: 2.5; }
.kn-map .mk-odp text { font: 700 10px Inter, sans-serif; fill: var(--blue-d); pointer-events: none; }
.kn-map .mk-rt rect { fill: var(--blue); stroke: #fff; stroke-width: 2.5; }
.kn-pop { position: absolute; z-index: 5; width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 12px 14px; font-size: 13.5px; transform: translate(-50%, calc(-100% - 14px)); }
.kn-pop b { display: block; font-size: 14.5px; color: var(--ink); }
.kn-pop span { display: block; color: var(--ink3); }
.kn-pop .kn-pop-a { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.kn-legend { position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 12px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; color: var(--ink2); }
.kn-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.kn-maptag { position: absolute; right: 12px; top: 12px; padding: 4px 10px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--ink3); }
.tc-map.kn-map, .tc-map-sm.kn-map { height: 200px; }

.tra-bl .tra-bl-amt { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.tra-bl td { white-space: nowrap; }
.tra-bl .tra-bl-sum { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 14px 20px; border-bottom: 1px solid var(--line2); font-size: 13.5px; color: var(--ink3); }
.tra-bl .tra-bl-sum b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.tra-bl .tra-bl-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; flex: 1 1 auto; margin: 0; }
.tri .tra-bl .tra-bl-filter select.form-control { width: auto; min-width: 170px; height: 40px; }
.tra-bl .tra-bl-st { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--ground); }
.tri .tra-bl .tra-bl-st a { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--ink2); white-space: nowrap; }
.tri .tra-bl .tra-bl-st a:hover { color: var(--ink); }
.tri .tra-bl .tra-bl-st a.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .1); }
.tra-bl .tra-bl-st i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink3); font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .tra-bl .tra-bl-st { width: 100%; overflow-x: auto; }
  .tra-bl .tra-bl-st a { flex: 1 0 auto; justify-content: center; }
  .tri .tra-bl .tra-bl-filter select.form-control { flex: 1 1 100%; width: 100%; }
  .tra-bl .tra-bl-sum { padding: 12px 16px; }
}

.tb-chart { padding: 8px 20px 20px; }
.tb-chart svg { display: block; width: 100%; height: 220px; }
.tb-chart .bar { fill: var(--blue); }
.tb-chart .bar:hover { fill: var(--blue-d); }
.tb-chart .ax { font: 500 11px Inter, sans-serif; fill: var(--ink3); }
.tb-chart .gl { stroke: var(--line2); }
.tc-code { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink2); }
.kn-pay-ok { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 40px 24px 44px; }
.kn-pay-ok .tb-empty-ic { background: var(--green-s); color: var(--green); }
.kn-pay-ok h3 { font-size: 18px; margin: 0; }
.kn-pay-ok p { color: var(--ink2); margin: 0; max-width: 52ch; }
.kn-pay-ok .tb-acts { justify-content: center; margin-top: 14px; }
.tp-qr { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px; }
.tp-demo-link { font-size: 13.5px; color: var(--ink3) !important; }
.tp-demo-link:hover { color: var(--blue) !important; }
.tri .tri-tabs { margin-top: 0; }

.tb-table, .table-responsive, .tc-scroll, .tc-scroll-x { position: relative; }
.tra-bl .tra-bl-filter { min-width: 0; max-width: 100%; }
@media (max-width: 767px) {
  .tra-bl .tra-bl-filter, .tra-bl .tra-search { flex: 1 1 100%; min-width: 0; }
  .tra-bl .tra-search .tra-sbox { min-width: 0; }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  .trd { grid-template-columns: minmax(0, 1fr); }
  .trd-side { display: grid; grid-template-columns: 1fr 1fr; }
}
.trd-table td.c-due, .trd-act .tri-btn { white-space: nowrap; }
@media (max-width: 767px) { .tri-user > button > svg.ic { display: none; } }
@media (min-width: 768px) and (max-width: 1279px) { .tri-search { width: min(420px, 26vw); } }

.tp button.tp-btn:not(#\#) { min-height: 48px; }
.tp button.tp-btn-sm:not(#\#) { min-height: 40px; }
.tp input.tp-input:not(#\#) { min-height: 52px; font-size: 18px; }
.tp-due .tp-btn { white-space: nowrap; }
.tb .tb-choice > label.is-checked { border-color: var(--blue); background: var(--blue-s); box-shadow: inset 0 0 0 1px var(--blue); }
.tri .tra-choice > label.is-checked { border-color: var(--blue); background: var(--blue-s); color: var(--blue-d); }
