

:root {
  --ink: #0f172a;
  --ink2: #475569;
  --ink3: #64748b;
  --line: #e2e8f0;
  --line2: #eef2f6;
  --ground: #f1f5f9;
  --soft: #f8fafc;
  --blue: #2563eb;
  --blue-d: #1d4ed8;
  --blue-s: #eff6ff;
  --blue-r: #dbeafe;
  --green: #15803d;
  --green-s: #f0fdf4;
  --red: #b91c1c;
  --red-s: #fef2f2;
  --amber: #b45309;
  --amber-s: #fffbeb;
  --side: 248px;
  --top: 64px;
  --r: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow-pop: 0 4px 6px -2px rgba(15, 23, 42, .06), 0 12px 32px -4px rgba(15, 23, 42, .14);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

html, body { background: var(--ground); }
body.tri {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.5; color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
body.tri h1, body.tri h2, body.tri h3, body.tri h4, body.tri h5,
body.tri .h1, body.tri .h2, body.tri .h3, body.tri .h4 {
  font-family: inherit; color: var(--ink); letter-spacing: -.015em; font-weight: 650;
}
body.tri table, body.tri .tnum { font-variant-numeric: tabular-nums; }
body.tri a { color: var(--blue); }
body.tri a:hover, body.tri a:focus { color: var(--blue-d); text-decoration: none; }
body.tri ::selection { background: var(--blue-r); color: var(--ink); }
body.tri :focus { outline: none; }
body.tri :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
body.tri ::-webkit-scrollbar { width: 10px; height: 10px; }
body.tri ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
body.tri ::-webkit-scrollbar-thumb:hover { background-color: #94a3b8; }
body.tri ::-webkit-scrollbar-track { background: transparent; }
body.tri * { scrollbar-color: #cbd5e1 transparent; }
body.tri hr { border-color: var(--line); }
body.tri .text-muted { color: var(--ink3); }
body.tri .text-success, body.tri .text-green, body.tri .text-olive { color: var(--green) !important; }
body.tri .text-danger, body.tri .text-red, body.tri .text-maroon { color: var(--red) !important; }
body.tri .text-warning, body.tri .text-yellow, body.tri .text-orange { color: var(--amber) !important; }
body.tri .text-primary, body.tri .text-info, body.tri .text-aqua, body.tri .text-light-blue, body.tri .text-teal { color: var(--blue) !important; }
body.tri .text-blue, body.tri .text-black, body.tri .text-navy { color: var(--ink) !important; }
body.tri .text-gray { color: var(--ink3) !important; }

html:not(#\#), body.tri:not(#\#),
body.tri :is(h1, h2, h3, h4, h5, h6, article, aside, details, figcaption, figure, footer, hgroup, main, menu, section, summary, button, input, textarea, optgroup, select, .select2-selection):not(#\#) {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif !important;
}
body.tri :is(h1, h2, h3, h4, h5, h6, article, aside, details, figcaption, figure, footer, hgroup, main, menu, section, summary):not(#\#) { min-height: 0; }

body.tri :is(button, input, select, optgroup, textarea, .select2-selection):not(#\#) { min-height: 0; }
body.tri textarea.form-control:not(#\#) { min-height: 96px; }
body.tri .select2-container--bootstrap .select2-selection--multiple:not(#\#) { min-height: 40px; }
body.tri :is(input, textarea, select, .select2-selection):not(#\#) { font-size: 14.5px; transition: border-color .15s, box-shadow .15s, background-color .15s; }
body.tri :is(input[type="checkbox"], input[type="radio"]):not(#\#) { transition: none; }
body.tri .input-sm:not(#\#) { font-size: 13.5px; }
@media (max-width: 767px) {
  
  body.tri :is(input, textarea, select):not(#\#), body.tri .input-sm:not(#\#) { font-size: 16px; }
}
body.tri code { background: var(--ground); color: var(--ink); border-radius: 6px; padding: 2px 6px; }
.tri svg.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.tri .mb20 { margin-bottom: 20px; }
.tri .text1line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tri .md-whiteframe-z1 { background: transparent; box-shadow: none; padding: 0 !important; }
.tri .md-whiteframe-z1::after { content: ""; display: table; clear: both; }
.loading { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tri-spin .7s linear infinite; }
@keyframes tri-spin { to { transform: rotate(360deg); } }

.tri .wrapper { background: var(--ground); min-height: 100vh; overflow: visible; }
.tri .main-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--side); padding: 0;
  background: #fff; border-right: 1px solid var(--line); z-index: 1030;
  display: flex; flex-direction: column; box-shadow: none;
  transition: transform .3s var(--ease);
}
.tri .main-sidebar .sidebar { flex: 1; overflow-y: auto; padding: 4px 12px 24px; height: auto !important; }
.tri-logo {
  display: flex; align-items: center; gap: 10px; height: var(--top); padding: 0 20px;
  font-size: 16px; font-weight: 650; letter-spacing: -.01em; color: var(--ink) !important; flex: none;
}
.tri-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.tri-mark svg.ic { width: 18px; height: 18px; }
.tri .sidebar-menu { padding: 0; margin: 0; list-style: none; white-space: normal; overflow: visible; }
.tri .sidebar-menu > li { margin: 0 0 2px; position: relative; }
.tri .sidebar-menu > li > a {
  display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 10px;
  border-radius: 8px; color: var(--ink2); font-size: 14.5px; font-weight: 500; border: 0; background: none;
}
.tri .sidebar-menu > li > a > span:not(.pull-right-container) { flex: 1; }
.tri .sidebar-menu > li > a > i.fa, .tri .sidebar-menu > li > a > i.ion, .tri .sidebar-menu > li > a > i.glyphicon { display: none; }
.tri .sidebar-menu > li > a:hover { background: var(--ground); color: var(--ink); }
.tri .sidebar-menu > li.active > a, .tri .sidebar-menu > li.menu-open > a { color: var(--ink); font-weight: 600; }
.tri .sidebar-menu > li.active:not(.treeview) > a { background: var(--blue-s); color: var(--blue-d); }
.tri .sidebar-menu > li.active > a svg.ic { color: var(--blue); }
.tri .sidebar-menu .pull-right-container { position: static; margin-left: auto; display: flex; align-items: center; }
.tri .sidebar-menu .pull-right-container .fa-angle-left { color: var(--ink3); font-size: 16px; width: 16px; text-align: center; transform: rotate(180deg); transition: transform .2s var(--ease); }
.tri .sidebar-menu li.menu-open > a .fa-angle-left { transform: rotate(270deg); }
.tri .sidebar-menu .treeview-menu { list-style: none; margin: 2px 0 6px 19px; padding: 0 0 0 20px; background: none; border-left: 1px solid var(--line); }
.tri .sidebar-menu .treeview-menu > li { margin: 0 0 1px; }
.tri .sidebar-menu .treeview-menu > li > a {
  display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 10px; border-radius: 7px;
  color: var(--ink3); font-size: 14px; font-weight: 500;
}
.tri .sidebar-menu .treeview-menu > li > a > i { display: none; }
.tri .sidebar-menu .treeview-menu > li > a:hover { color: var(--ink); background: var(--ground); }
.tri .sidebar-menu .treeview-menu > li.active > a { color: var(--blue-d); background: var(--blue-s); font-weight: 600; }
.tri .sidebar-menu .label, .tri .sidebar-menu .badge { margin-left: auto; }
.tri-side-foot { flex: none; padding: 12px 20px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink3); }

.tri .main-header.tri-top {
  position: fixed; top: 0; right: 0; left: var(--side); height: var(--top); max-height: none; z-index: 1020;
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line); box-shadow: none;
  transition: left .3s var(--ease);
}
.tri-burger {
  width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center;
  color: var(--ink2) !important; margin-left: -8px; flex: none;
}
.tri-burger:hover { background: var(--ground); color: var(--ink) !important; }
.tri .main-header .sidebar-toggle.tri-burger { padding: 0; float: none; font-family: inherit; }
.tri .main-header .sidebar-toggle.tri-burger::before { content: none; display: none; }
.tri .main-header.tri-top > * { align-self: center; margin-top: 0; margin-bottom: 0; }
.tri .main-header .tri-title { margin: 0; flex: 0 1 auto; min-width: 0; line-height: 1.3; font-size: 19px; font-weight: 650; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tri-search { position: relative; margin-left: auto; width: min(420px, 38vw); }
.tri-search > svg.ic { position: absolute; left: 12px; top: 11px; color: var(--ink3); pointer-events: none; }
.tri .tri-icon-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 8px; background: none; color: var(--ink2); cursor: pointer;
}
.tri .tri-icon-btn:hover { background: var(--ground); color: var(--ink); }
.tri .tri-icon-btn.tri-search-btn { display: none; }
.tri-search input {
  width: 100%; height: 40px; padding: 0 12px 0 40px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.tri-search input::placeholder { color: var(--ink3); }
.tri-search input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px var(--blue-r); }
.tri-search .search-results {
  display: none; position: absolute; top: 46px; left: 0; right: 0; max-height: 60vh; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; z-index: 1100;
}
.tri-search .search-results a, .tri-search .search-results .list-group-item {
  display: block; padding: 9px 12px; border-radius: 8px; border: 0; color: var(--ink); font-size: 14px; margin: 0;
}
.tri-search .search-results a:hover { background: var(--ground); }
.tri-top .tri-btn-pri { flex: none; }
.tri-user { position: relative; flex: none; }
.tri-user > button {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 4px;
  border: 0; background: none; border-radius: 999px; color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.tri-user > button:hover { background: var(--ground); }
.tri-av { width: 32px; height: 32px; border-radius: 50%; background: #e0e7ff; color: #3730a3; display: grid; place-items: center; font-weight: 650; font-size: 13px; }
.tri-user .dropdown-menu { right: 0; left: auto; min-width: 220px; }
.tri-user .dropdown-menu .tri-me { padding: 10px 14px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.tri-user .dropdown-menu .tri-me b { display: block; font-size: 14px; }
.tri-user .dropdown-menu .tri-me small { color: var(--ink3); font-size: 13px; }

.tri .content-wrapper, .tri .right-side, .tri .main-footer {
  margin-left: var(--side); background: var(--ground); transition: margin-left .3s var(--ease);
}
.tri .content-wrapper { padding-top: var(--top); min-height: 100vh !important; }
.tri .content-header { display: none; }
.tri .content { padding: 24px !important; max-width: 1600px; min-height: 0; }
.tri .main-footer { border-top: 0; padding: 8px 24px 20px; color: var(--ink3); font-size: 12.5px; background: var(--ground); max-height: none; }

@media (min-width: 768px) {
  .tri.sidebar-collapse .main-sidebar { transform: translateX(-100%); }
  .tri.sidebar-collapse .main-header.tri-top { left: 0; }
  .tri.sidebar-collapse .content-wrapper, .tri.sidebar-collapse .main-footer { margin-left: 0; }
}
@media (max-width: 767px) {
  .tri .main-sidebar { width: min(var(--side), 84vw); transform: translateX(-100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; }
  .tri.sidebar-open .main-sidebar { transform: none; visibility: visible; box-shadow: var(--shadow-pop); transition: transform .3s var(--ease); }
  
  .tri.sidebar-open .content-wrapper, .tri.sidebar-open .main-footer, .tri.sidebar-open .main-header { transform: none !important; }
  .tri.sidebar-open .content-wrapper::before {
    content: ""; position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 1025; cursor: pointer;
  }
  .tri.sidebar-open { overflow: hidden; }
  .tri .sidebar-menu > li > a { min-height: 44px; }
  .tri .sidebar-menu .treeview-menu > li > a { min-height: 40px; }
  .tri .main-header.tri-top { left: 0; padding: 0 8px 0 12px; gap: 4px; }
  .tri-burger { margin-left: -6px; }
  .tri .main-header .tri-title { flex: 1 1 auto; font-size: 17px; margin-left: 2px; }
  .tri .content-wrapper, .tri .main-footer { margin-left: 0 !important; }
  
  .tri .content { padding: 16px 15px !important; }
  .tri .tri-icon-btn.tri-search-btn { display: grid; }
  .tri-search {
    display: none; position: fixed; top: var(--top); left: 0; right: 0; width: auto; margin: 0;
    padding: 8px 12px 10px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px -8px rgba(15, 23, 42, .12);
  }
  .tri-search > svg.ic { left: 24px; top: 19px; }
  .tri-search input { height: 44px; }
  .tri-search-open .tri-search { display: block; }
  .tri-search .search-results { left: 12px; right: 12px; top: 58px; max-height: calc(100vh - 140px); }
  .tri-top .tri-btn-pri span, .tri-user .tri-name, .tri-user > button > .fa { display: none; }
  .tri-top .tri-btn-pri { width: 40px; padding: 0; justify-content: center; }
  .tri-user > button { padding: 0 4px; width: 40px; justify-content: center; }
}

.tri .main-footer.tri-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tri .main-footer.tri-foot > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tri-foot a, .tri-powered { color: var(--ink3) !important; font-size: 12px; font-weight: 500; white-space: nowrap; }
.tri-foot a:hover, .tri-powered:hover { color: var(--blue) !important; }
.tri-powered { position: fixed; right: 16px; bottom: 12px; }

.tri .box, .tri .panel, .tri .small-box, .tri .info-box, .tri .nav-tabs-custom {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 20px;
}

.tri .box, .tri .box.box-solid, .tri .box[class*="box-"], .tri .content .row [class*="col-"] .box { border: 1px solid var(--line) !important; border-radius: 12px !important; box-shadow: var(--shadow) !important; }
.tri .content .row [class*="col-"] .small-box, .tri .content .row [class*="col-"] .info-box { border-radius: 12px !important; }
.tri .box.collapsed-box > .box-header { border-bottom: 0; border-radius: 12px; }
.tri .box-header .btn-box-tool, .tri .box.box-solid[class*="box-"] > .box-header .btn-box-tool {
  width: 32px; height: 32px; padding: 0; justify-content: center; background: transparent !important;
  border: 0 !important; box-shadow: none !important; color: var(--ink3) !important; font-size: 13px;
}
.tri .box-header .btn-box-tool:hover { background: var(--ground) !important; color: var(--ink) !important; }
.tri .box-header, .tri .panel-heading {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  padding: 14px 20px; min-height: 56px; border-bottom: 1px solid var(--line);
  background: #fff !important; color: var(--ink) !important; border-radius: 12px 12px 0 0;
  font-size: 15.5px; font-weight: 650; letter-spacing: -.01em;
}
.tri .box-header.with-border { border-bottom: 1px solid var(--line); }
.tri .box-header .box-title, .tri .panel-title { font-size: 15.5px; font-weight: 650; color: var(--ink); margin: 0; flex: 1; }
.tri .box-header > .fa, .tri .box-header > .ion, .tri .box-header > .glyphicon { color: var(--ink3); }
.tri .box-header .box-tools, .tri .panel-heading .btn-group, .tri .panel-heading .pull-right { position: static; margin-left: auto; float: none !important; display: flex; gap: 6px; flex-wrap: wrap; }
.tri .panel-heading > .btn-group:first-child, .tri .panel-heading > .pull-right:first-child { order: 2; }
.tri .box-body, .tri .panel-body { padding: 20px; }
.tri .box-footer, .tri .panel-footer { padding: 14px 20px; background: var(--soft) !important; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.tri .panel > .table, .tri .panel > .table-responsive, .tri .box > .table { margin-bottom: 0; }
.tri .panel > .table-responsive:last-child .table, .tri .box-body.no-padding .table { margin-bottom: 0; }
.tri .box-body.no-padding, .tri .panel-body.no-padding { padding: 0; }
.tri .panel-primary, .tri .panel-success, .tri .panel-info, .tri .panel-warning, .tri .panel-danger, .tri .panel-default { border-color: var(--line); }

.tri [class*="panel-cron-"] > .panel-heading::before { content: ""; order: -1; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ink3); }
.tri .panel-cron-success > .panel-heading::before { background: var(--green); }
.tri .panel-cron-warning > .panel-heading::before { background: var(--amber); }
.tri .panel-cron-danger > .panel-heading::before { background: var(--red); }
.tri .panel-cron-danger > .panel-heading { color: var(--red) !important; }
.tri .box .overlay { border-radius: 12px; background: rgba(255, 255, 255, .7); }
.tri .small-box { color: var(--ink) !important; padding: 0; overflow: hidden; }
.tri .small-box > .inner { padding: 18px 20px; }
.tri .small-box h3 { font-size: 28px; font-weight: 650; color: var(--ink); margin: 0 0 4px; letter-spacing: -.02em; }
.tri .small-box p { color: var(--ink2); font-size: 14px; }
.tri .small-box .icon { color: var(--line); top: 12px; font-size: 64px; }
.tri .small-box > .small-box-footer { background: var(--soft); color: var(--blue) !important; border-top: 1px solid var(--line); padding: 8px; font-weight: 600; font-size: 13px; }
.tri .small-box[class*="bg-"] { background: #fff !important; }
.tri .info-box-icon { border-radius: 12px 0 0 12px; background: var(--blue-s) !important; color: var(--blue) !important; }
.tri .list-group-item { border-color: var(--line); }
.tri .well { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; }

body.tri .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; margin: 0 !important; border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1;
  border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: 0 1px 1px rgba(15, 23, 42, .04);
  transition: background-color .15s, border-color .15s, box-shadow .15s, transform .1s; white-space: nowrap; text-shadow: none; background-image: none;
}
body.tri .btn:hover, body.tri .btn:focus { background-color: var(--soft); border-color: #cbd5e1; color: var(--ink); }
body.tri .btn:active, body.tri .btn.active { transform: translateY(1px); box-shadow: none; }
body.tri .btn.disabled, body.tri .btn[disabled], body.tri fieldset[disabled] .btn { opacity: .5; cursor: not-allowed; transform: none; }
body.tri .btn-default, body.tri .btn-info, body.tri .btn-secondary {
  background-color: #fff !important; border-color: var(--line) !important; color: var(--ink) !important;
}
body.tri .btn-default:hover, body.tri .btn-default:focus, body.tri .btn-info:hover, body.tri .btn-info:focus,
body.tri .btn-secondary:hover, body.tri .btn-secondary:focus { background-color: var(--soft) !important; border-color: #cbd5e1 !important; }
body.tri .btn-primary, body.tri .btn-tri {
  background-color: var(--blue) !important; border-color: var(--blue) !important; color: #fff !important; box-shadow: 0 1px 2px rgba(37, 99, 235, .3);
}
body.tri .btn-primary:hover, body.tri .btn-primary:focus, body.tri .btn-primary.active, body.tri .btn-tri:hover { background-color: var(--blue-d) !important; border-color: var(--blue-d) !important; }
body.tri .btn-success {
  background-color: var(--green) !important; border-color: var(--green) !important; color: #fff !important; box-shadow: 0 1px 2px rgba(21, 128, 61, .25);
}
body.tri .btn-success:hover, body.tri .btn-success:focus, body.tri .btn-success.active { background-color: #166534 !important; border-color: #166534 !important; }
body.tri .btn-danger { background-color: #fff !important; border-color: #fecaca !important; color: var(--red) !important; }
body.tri .btn-danger:hover, body.tri .btn-danger:focus, body.tri .btn-danger.active { background-color: var(--red-s) !important; border-color: #fca5a5 !important; }
body.tri .btn-warning { background-color: #fff !important; border-color: #fde68a !important; color: var(--amber) !important; }
body.tri .btn-warning:hover, body.tri .btn-warning:focus, body.tri .btn-warning.active { background-color: var(--amber-s) !important; border-color: #fcd34d !important; }
body.tri .btn-link { background: none !important; border-color: transparent !important; box-shadow: none !important; color: var(--blue) !important; padding-left: 6px; padding-right: 6px; }
body.tri .btn-link:hover, body.tri .btn-link:focus { color: var(--blue-d) !important; text-decoration: underline; text-underline-offset: 3px; }
body.tri .btn :is(.fa, .ion, .glyphicon) { color: inherit !important; }
body.tri .btn-xs { height: 28px; padding: 0 9px; font-size: 12.5px; border-radius: 6px; }
body.tri .btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 7px; }
body.tri .btn-lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
body.tri .btn-block { display: flex; width: 100%; }

body.tri form .btn:not(.btn-xs):not(.btn-sm):not(.btn-lg), body.tri .btn-block:not(.btn-xs):not(.btn-sm) { height: 40px; }
body.tri .btn-block + .btn-block { margin-top: 8px !important; }
.tri .btn-group { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tri .btn-group > .btn { border-radius: 8px !important; float: none; }
.tri .btn-group > .btn-xs { border-radius: 6px !important; }
.tri .btn-group-justified { display: flex; gap: 8px; }
.tri .btn-group-justified > .btn, .tri .btn-group-justified > .btn-group { flex: 1; }
.tri .btn-group-justified > .btn-group > .btn { width: 100%; }
.tri .btn .caret { margin-left: 2px; }
.tri .btn > .fa, .tri .btn > .ion, .tri .btn > .glyphicon { font-size: 14px; top: 0; }
@media (max-width: 767px) {
  body.tri .btn { height: 40px; }
  body.tri .btn-lg { height: 44px; }
  
  body.tri .btn-sm, body.tri .btn-xs, .tri .tri-btn-sm { position: relative; }
  body.tri .btn-sm::after, body.tri .btn-xs::after, .tri .tri-btn-sm::after { content: ""; position: absolute; left: -2px; right: -2px; top: -6px; bottom: -6px; }
  body.tri .btn-sm { height: 34px; }
}
.tri .tri-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; font-weight: 600; font-size: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink) !important; transition: background .15s; }
.tri .tri-btn:hover { background: var(--soft); }
.tri .tri-btn-pri { background: var(--blue); border-color: var(--blue); color: #fff !important; box-shadow: 0 1px 2px rgba(37, 99, 235, .3); }
.tri .tri-btn-pri:hover { background: var(--blue-d); color: #fff !important; }
.tri .tri-btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 7px; gap: 6px; }
.tri .tri-btn-sm svg.ic { width: 15px; height: 15px; }

.tri label, .tri .control-label { font-size: 14px; font-weight: 600; color: var(--ink2); margin-bottom: 6px; }
.tri .form-horizontal .control-label { padding-top: 10px; }
.tri .form-group { margin-bottom: 18px; }
.tri .form-control {
  height: 40px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 14.5px; box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
.tri textarea.form-control { height: auto; min-height: 96px; line-height: 1.5; }
.tri select.form-control { padding-right: 32px; -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center; }
.tri select[multiple].form-control { background-image: none; height: auto; }
.tri .form-control::placeholder { color: #94a3b8; }
.tri .form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-r); }
.tri .form-control[disabled], .tri .form-control[readonly] { background: var(--soft); color: var(--ink2); }
.tri .input-sm { height: 34px; font-size: 13.5px; }
.tri .input-group { display: flex; width: 100%; }
.tri .input-group .form-control { position: relative; flex: 1; min-width: 0; float: none; }
.tri .input-group-addon, .tri .input-group-btn { width: auto; display: flex; }
.tri .input-group-addon {
  align-items: center; padding: 0 12px; background: var(--soft); border: 1px solid var(--line);
  color: var(--ink2); font-size: 14px; border-radius: 8px; white-space: nowrap;
}
.tri .input-group > :first-child:not(:last-child), .tri .input-group > :first-child:not(:last-child) > .btn { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.tri .input-group > :last-child:not(:first-child), .tri .input-group > :last-child:not(:first-child) > .btn { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.tri .input-group > :not(:first-child):not(:last-child), .tri .input-group > :not(:first-child):not(:last-child) > .btn { border-radius: 0 !important; }
.tri .input-group > * + * { margin-left: -1px !important; }
.tri .input-group-btn > .btn { height: 40px; position: relative; }
.tri .input-group-btn > .btn + .btn { margin-left: -1px !important; }
.tri .input-group-btn > .btn:not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.tri .input-group-btn > .btn:not(:first-child) { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.tri .input-group-btn:first-child > .btn:last-child { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.tri .input-group-btn > .btn:hover, .tri .input-group-btn > .btn:focus { z-index: 2; }
.tri .input-group .form-control:focus { z-index: 3; }

.tri .input-group > .row { display: flex; flex: 1; min-width: 0; margin: 0; }
.tri .input-group > .row::before, .tri .input-group > .row::after { content: none; }
.tri .input-group > .row > [class*="col-"] { float: none; width: auto; padding: 0; min-width: 0; }
.tri .input-group > .row > [class*="col-"]:first-child { flex: 2 1 0; }
.tri .input-group > .row > [class*="col-"] + [class*="col-"] { flex: 1 1 0; margin-left: -1px; }
.tri .input-group > .row .form-control { width: 100%; border-radius: 0 !important; }
.tri .input-group > .row:last-child > [class*="col-"]:last-child .form-control { border-top-right-radius: 8px !important; border-bottom-right-radius: 8px !important; }
.tri .input-group > .row .form-control:focus { position: relative; z-index: 3; }
.tri .input-group-addon + .form-control, .tri .input-group-addon + .row .form-control { border-top-left-radius: 0; border-bottom-left-radius: 0; }

.tri .md-whiteframe-z1.text-center { text-align: left; }
.tri .md-whiteframe-z1 > [class*="col-"] { padding-left: 0; padding-right: 12px; margin-bottom: 10px; }
.tri .md-whiteframe-z1 > [class*="col-"]:last-child { padding-right: 0; }
@media (max-width: 1199px) {
  .tri .md-whiteframe-z1 > [class*="col-"] { padding-right: 0; }
}

.tri .table-responsive > .form-group:first-child { display: flex; align-items: center; gap: 8px; padding: 16px 20px 12px; margin: 0; font-size: 14px; color: var(--ink2); }
.tri select.page-item, .tri .dataTables_length select {
  width: auto; min-width: 76px; height: 36px; margin: 0 !important; padding: 0 30px 0 12px; border-radius: 8px; border: 1px solid var(--line);
  color: var(--ink); line-height: normal; -webkit-appearance: none; appearance: none; box-shadow: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 8px center;
}
.tri select.page-item:focus, .tri .dataTables_length select:focus, .tri .dataTables_filter input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-r); }
.tri .dataTables_wrapper { font-size: 14px; color: var(--ink2); }
.tri .dataTables_length label, .tri .dataTables_filter label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink2); margin: 0 0 12px; }
.tri .dataTables_filter input { height: 36px; padding: 0 12px; margin: 0 !important; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
.tri .dataTables_info { color: var(--ink3); font-size: 13px; padding-top: 14px; }
.tri .dataTables_wrapper .dataTables_paginate { padding-top: 10px; display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.tri .dataTables_wrapper .dataTables_paginate .paginate_button {
  min-width: 34px; height: 34px; padding: 0 10px !important; margin: 0 !important; display: inline-grid; place-items: center;
  border: 1px solid var(--line) !important; border-radius: 8px; background: #fff !important; color: var(--ink2) !important; font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.tri .dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--soft) !important; color: var(--ink) !important; }
.tri .dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--blue) !important; border-color: var(--blue) !important; color: #fff !important; }
.tri .dataTables_wrapper .dataTables_paginate .paginate_button.disabled { color: #cbd5e1 !important; cursor: default; }
.tri .help-block { color: var(--ink3); font-size: 13px; margin-top: 6px; }
.tri legend { font-size: 15px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 16px; }

.tri .form-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tri .form-inline > .input-group, .tri .form-inline > .form-group > .input-group { display: flex; width: auto; flex: 1 1 220px; min-width: 0; }
.tri .form-inline > .form-group { display: flex; align-items: center; gap: 8px; margin: 0; }
.tri .form-inline .form-control { width: auto; flex: 1; min-width: 0; }
body.tri .form-inline .btn:not(.btn-xs) { height: 40px; }
.tri .form-inline label { margin: 0; }

.tri .input-group.has-error .form-control { border-color: var(--line); }
.tri .input-group.has-error .form-control:focus { border-color: var(--blue); }
.tri .input-group.has-error .input-group-addon { color: var(--ink2); background: var(--soft); border-color: var(--line); }
.tri .has-error .form-control { border-color: #fca5a5; }
.tri .has-error .help-block, .tri .has-error .control-label { color: var(--red); }
.tri .has-success .form-control { border-color: #86efac; }
.tri input[type="checkbox"], .tri input[type="radio"] { accent-color: var(--blue); width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.tri .checkbox label, .tri .radio label { font-weight: 500; color: var(--ink); }
.tri .form-control-feedback { line-height: 40px; height: 40px; color: var(--ink3); }

.tri .select2-container--bootstrap .select2-selection { border-radius: 8px; border-color: var(--line); min-height: 40px; box-shadow: none; font-size: 14.5px; }
.tri .select2-container--bootstrap .select2-selection--single { height: 40px; padding: 8px 32px 8px 12px; }
.tri .select2-container--bootstrap.select2-container--focus .select2-selection,
.tri .select2-container--bootstrap.select2-container--open .select2-selection { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-r); }
.select2-container--bootstrap .select2-dropdown { border-color: var(--line) !important; border-radius: 10px !important; box-shadow: var(--shadow-pop); overflow: hidden; }
.select2-container--bootstrap .select2-results__option--highlighted[aria-selected] { background: var(--blue) !important; }
.select2-container--bootstrap .select2-search--dropdown .select2-search__field { border-radius: 8px; border-color: var(--line); }

.tri .table { margin-bottom: 0; background: #fff; font-size: 14.5px; }
.tri .table > thead > tr > th, .tri .table > tbody > tr > th, .tri .table > tfoot > tr > th {
  background: var(--soft); color: var(--ink3); font-size: 13px; font-weight: 600; white-space: nowrap;
  padding: 10px 14px; border-bottom: 1px solid var(--line) !important; border-top: 0; vertical-align: middle;
}
.tri .table > tbody > tr > td, .tri .table > tfoot > tr > td {
  padding: 12px 14px; border-top: 1px solid var(--line2); vertical-align: middle; color: var(--ink);
}
.tri .table > tbody > tr:first-child > td { border-top: 0; }

.tri .table td[style*="overflow"], .tri .table th[style*="overflow"] { overflow: visible !important; white-space: normal; overflow-wrap: anywhere; min-width: 180px; }
.tri .table > thead > tr > th:first-child, .tri .table > tbody > tr > td:first-child { padding-left: 20px; }
.tri .table > thead > tr > th:last-child, .tri .table > tbody > tr > td:last-child { padding-right: 20px; }
.tri .table-striped > tbody > tr:nth-of-type(odd) { background: transparent; }
.tri .table-hover > tbody > tr:hover, .tri .table > tbody > tr:hover > td { background: var(--soft); }
.tri .table-bordered, .tri .table-bordered > thead > tr > th, .tri .table-bordered > tbody > tr > td { border-left: 0; border-right: 0; }
.tri .table-bordered { border: 0; }
.tri .table-condensed > tbody > tr > td { padding-top: 8px; padding-bottom: 8px; }
.tri .table > tbody > tr.danger > td, .tri .table > tbody > tr > td.danger { background: var(--red-s); }
.tri .table > tbody > tr.warning > td, .tri .table > tbody > tr > td.warning { background: var(--amber-s); }
.tri .table > tbody > tr.success > td, .tri .table > tbody > tr > td.success { background: var(--green-s); }
.tri .table > tbody > tr.info > td, .tri .table > tbody > tr > td.info { background: var(--blue-s); }
.tri .table > thead > tr > th.danger { background: var(--red-s); color: var(--red); }
.tri .table > thead > tr > th.warning { background: var(--amber-s); color: var(--amber); }
.tri .table > thead > tr > th.success { background: var(--green-s); color: var(--green); }
.tri .table > thead > tr > th.info, .tri .table > thead > tr > th.active { background: var(--blue-s); color: var(--blue-d); }
.tri .table-responsive { border: 0 !important; margin-bottom: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; overscroll-behavior-x: contain; }
.tri .table-responsive::-webkit-scrollbar { height: 8px; }
.tri .table-responsive::-webkit-scrollbar-track { background: var(--soft); border-top: 1px solid var(--line2); }
.tri .panel-body > .table-responsive, .tri .box-body > .table-responsive { margin: -20px; width: calc(100% + 40px); }
.tri .panel-body > .table-responsive:not(:last-child), .tri .box-body > .table-responsive:not(:last-child) { margin-bottom: 0; }
.tri .panel-body > .table-responsive:not(:first-child), .tri .box-body > .table-responsive:not(:first-child) { margin-top: 0; }

.tri .label, .tri .badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 11px;
  font-size: 12.5px; font-weight: 600; line-height: 1; vertical-align: middle; white-space: nowrap;
  background: var(--ground); color: var(--ink2);
}
.tri .label:empty, .tri .badge:empty { display: none; }
.tri .label-success, .tri .bg-green, .tri .bg-teal, .tri .bg-olive, .tri .bg-lime, .tri .badge.bg-green { background: var(--green-s) !important; color: var(--green) !important; box-shadow: inset 0 0 0 1px #bbf7d0; }
.tri .label-danger, .tri .bg-red, .tri .bg-maroon, .tri .bg-fuchsia, .tri .badge.bg-red { background: var(--red-s) !important; color: var(--red) !important; box-shadow: inset 0 0 0 1px #fecaca; }
.tri .label-warning, .tri .bg-yellow, .tri .bg-orange { background: var(--amber-s) !important; color: var(--amber) !important; box-shadow: inset 0 0 0 1px #fde68a; }
.tri .label-primary, .tri .label-info, .tri .bg-blue, .tri .bg-aqua, .tri .bg-light-blue, .tri .bg-purple, .tri .bg-navy { background: var(--blue-s) !important; color: var(--blue-d) !important; box-shadow: inset 0 0 0 1px var(--blue-r); }
.tri .label-default, .tri .bg-gray, .tri .bg-black { background: var(--ground) !important; color: var(--ink2) !important; }

body.tri .alert {
  position: relative; border-radius: var(--r) !important; border: 1px solid var(--line) !important; padding: 12px 16px; font-size: 14.5px;
  background: #fff; color: var(--ink) !important; box-shadow: none !important;
}
body.tri .alert p, body.tri .alert h4, body.tri .alert h4 i.fa { color: inherit !important; }
body.tri .alert h4 { padding-left: 0; font-size: 15px; margin: 0 0 4px; }
body.tri .alert h4 i.fa { position: static; font-size: 16px; margin-right: 6px; }
body.tri .alert-success { background: var(--green-s) !important; border-color: #bbf7d0 !important; color: #14532d !important; }
body.tri .alert-danger, body.tri .alert-error { background: var(--red-s) !important; border-color: #fecaca !important; color: #7f1d1d !important; }
body.tri .alert-warning { background: var(--amber-s) !important; border-color: #fde68a !important; color: #78350f !important; }
body.tri .alert-info, body.tri .alert-primary { background: var(--blue-s) !important; border-color: var(--blue-r) !important; color: #1e3a8a !important; }
body.tri .alert .close { color: inherit; opacity: .5; }
.tri .alert a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
body.tri .callout { border-radius: var(--r) !important; border: 1px solid var(--line) !important; background: #fff !important; color: var(--ink) !important; box-shadow: none !important; padding: 14px 16px; }
body.tri .callout p, body.tri .callout h4 { color: inherit !important; }
body.tri .callout h4 { padding-left: 0; font-weight: 650 !important; font-size: 15px; }
body.tri .callout h4 i.fa { position: static; font-size: 16px; margin-right: 6px; color: var(--ink3) !important; }
body.tri .callout-success { background: var(--green-s) !important; border-color: #bbf7d0 !important; color: #14532d !important; }
body.tri .callout-danger { background: var(--red-s) !important; border-color: #fecaca !important; color: #7f1d1d !important; }
body.tri .callout-warning { background: var(--amber-s) !important; border-color: #fde68a !important; color: #78350f !important; }
body.tri .callout-info, body.tri .callout-primary { background: var(--blue-s) !important; border-color: var(--blue-r) !important; color: #1e3a8a !important; }

.tri .nav-tabs { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px; }
.tri .nav-tabs > li { float: none; margin-bottom: -1px; }
.tri .nav-tabs > li > a { border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin: 0; padding: 10px 12px; color: var(--ink3); font-weight: 600; font-size: 14px; }
.tri .nav-tabs > li > a:hover { background: none; color: var(--ink); border-bottom-color: var(--line); }
.tri .nav-tabs > li.active > a, .tri .nav-tabs > li.active > a:hover, .tri .nav-tabs > li.active > a:focus { border: 0; border-bottom: 2px solid var(--blue); color: var(--ink); background: none; }
.tri .nav-tabs-custom > .nav-tabs { border-radius: 12px 12px 0 0; padding: 0 12px; background: #fff; }
.tri .nav-tabs-custom > .nav-tabs > li { border-top: 0; }
.tri .nav-tabs-custom > .tab-content { padding: 20px; border-radius: 0 0 12px 12px; }
.tri .nav-pills > li > a { border-radius: 8px; color: var(--ink2); font-weight: 600; font-size: 14px; }
.tri .nav-pills > li.active > a, .tri .nav-pills > li.active > a:hover { background: var(--blue-s); color: var(--blue-d); }
.tri .nav-stacked > li > a { border-radius: 8px; border-left: 0 !important; }
.tri .pagination { display: inline-flex; flex-wrap: wrap; justify-content: center; max-width: 100%; gap: 4px; margin: 16px 0; }
.tri .pagination > li > a, .tri .pagination > li > span {
  min-width: 34px; height: 34px; padding: 0 10px; display: grid; place-items: center; float: none;
  border: 1px solid var(--line); border-radius: 8px !important; color: var(--ink2); font-weight: 600; font-size: 13.5px; margin: 0; background: #fff;
}
.tri .pagination > li > a:hover { background: var(--soft); color: var(--ink); }
.tri .pagination > .active > a, .tri .pagination > .active > span, .tri .pagination > .active > a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.tri .pagination > .disabled > a, .tri .pagination > .disabled > span { color: #cbd5e1; background: #fff; }

.tri .dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; margin-top: 6px; font-size: 14px; }
.tri .dropdown-menu > li > a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.tri .dropdown-menu > li > a:hover, .tri .dropdown-menu > li > a:focus { background: var(--ground); color: var(--ink); }
.tri .dropdown-menu .divider { background: var(--line); margin: 6px 0; }
.tri .modal-backdrop.in { opacity: .4; background: var(--ink); }
.tri .modal-content { border: 0; border-radius: 14px; box-shadow: var(--shadow-pop); overflow: hidden; }
.tri .modal-header { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.tri .modal-title { font-size: 16px; font-weight: 650; }
.tri .modal-body { padding: 20px; }
.tri .modal-footer { padding: 14px 20px; background: var(--soft); border-top: 1px solid var(--line); }
.tri .close { opacity: .5; text-shadow: none; }
.tri .close:hover, .tri .close:focus { color: var(--ink) !important; opacity: .8; }

.tri [class*="modal-"] .modal-body { background: #fff !important; color: var(--ink) !important; }
.tri [class*="modal-"] .modal-header, .tri [class*="modal-"] .modal-footer { color: var(--ink) !important; }
.tri [class*="modal-"] .modal-header { background: #fff !important; }
.tri [class*="modal-"] .modal-footer { background: var(--soft) !important; }
.tooltip-inner { background: var(--ink); border-radius: 6px; padding: 6px 10px; font-size: 12.5px; }

.swal2-popup { border-radius: 14px !important; font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif !important; }
.swal2-popup.swal2-toast { box-shadow: var(--shadow-pop) !important; border: 1px solid var(--line); padding: 10px 14px !important; }
.swal2-title { color: var(--ink) !important; font-weight: 650 !important; font-size: 16px !important; }
.swal2-html-container { color: var(--ink2) !important; }
.swal2-styled.swal2-confirm { background: var(--blue) !important; border-radius: 8px !important; font-weight: 600 !important; box-shadow: none !important; }
.swal2-styled.swal2-cancel { background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: 8px !important; font-weight: 600 !important; }
.swal2-styled.swal2-deny { border-radius: 8px !important; }
.swal2-timer-progress-bar { background: var(--blue-r) !important; }

body.tri-login { min-height: 100vh; display: grid; place-items: center; background: var(--ground); padding: 24px 16px; }
.tri-login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-pop); padding: 32px 28px 28px; }
.tri-login-card .tri-logo { padding: 0; height: auto; margin-bottom: 24px; }
.tri-login-card h1 { font-size: 22px; margin: 0 0 4px; }
.tri-login-card > p { color: var(--ink2); margin: 0 0 22px; }
.tri-login-card .btn { height: 44px; font-size: 15px; margin-top: 6px; }
.tri-login-card .tri-back { display: block; text-align: center; margin-top: 16px; font-size: 14px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .tri *, .tri *::before, .tri *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.tri .main-sidebar .sidebar { display: flex; flex-direction: column; padding: 8px 12px 12px; }
.tri-nav { display: flex; flex-direction: column; flex: 1 0 auto; }
.tri-nav-list { list-style: none; margin: 0; padding: 0; }
.tri-nav-list > li { margin: 0 0 1px; }
.tri-nav-group { margin-top: 22px; }
.tri-nav-title { margin: 0 0 6px; padding: 0 10px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink3); }
.tri-nav-list > li > a {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px;
  color: var(--ink2); font-size: 14px; font-weight: 500; line-height: 20px; text-decoration: none;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.tri-nav-list > li > a svg.ic { width: 18px; height: 18px; color: var(--ink3); transition: color .15s var(--ease); }
.tri-nav-list > li > a > i { width: 18px; flex: none; text-align: center; font-size: 16px; color: var(--ink3); }
.tri-nav-list > li > a > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tri-nav-list > li > a:hover { background: var(--ground); color: var(--ink); text-decoration: none; }
.tri-nav-list > li > a:hover svg.ic { color: var(--ink2); }
.tri-nav-list > li > a.is-on { background: var(--blue-s); color: var(--blue-d); font-weight: 600; }
.tri-nav-list > li > a.is-on svg.ic { color: var(--blue); }
.tri-nav-list > li > a:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.tri-nav-list .pull-right-container { margin-left: auto; display: flex; align-items: center; }
.tri-nav-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.tri-nav-main { padding-bottom: 20px; }

.tri-tabs {
  display: flex; gap: 2px; margin: -4px 0 20px; border-bottom: 1px solid var(--line);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
}
.tri-tabs::-webkit-scrollbar { display: none; }
.tri .tri-tabs .tri-tab {
  position: relative; flex: none; padding: 10px 12px; border-radius: 8px 8px 0 0;
  font-size: 14px; font-weight: 500; line-height: 20px; color: var(--ink3); white-space: nowrap; text-decoration: none;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.tri .tri-tabs .tri-tab:hover { color: var(--ink); background: var(--soft); text-decoration: none; }
.tri .tri-tabs .tri-tab.is-on { color: var(--ink); font-weight: 600; }
.tri .tri-tabs .tri-tab.is-on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--blue); }
.tri .tri-tabs .tri-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

@media (max-width: 767px) {
  .tri-nav-list > li > a { height: 44px; }
  .tri-tabs { margin: -4px -15px 16px; padding: 0 11px; }
  .tri .tri-tabs .tri-tab { padding: 12px; }
}

.trd { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.trd-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trd-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.trd-kpi { padding: 18px 20px; display: block; color: var(--ink) !important; transition: border-color .15s, box-shadow .2s; }
a.trd-kpi:hover { border-color: #cbd5e1; box-shadow: var(--shadow-pop); }
.trd-kpi .l { display: flex; align-items: center; gap: 8px; color: var(--ink2); font-weight: 500; font-size: 14px; }
.trd-kpi .l svg.ic { width: 16px; height: 16px; }
.trd-kpi .v { font-size: 28px; font-weight: 650; letter-spacing: -.025em; margin-top: 10px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.trd-kpi .v small { font-size: 15px; font-weight: 500; color: var(--ink3); letter-spacing: 0; margin-left: 4px; }
.trd-kpi .s { margin-top: 10px; font-size: 13px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.trd-red { color: var(--red); } .trd-green { color: var(--green); } .trd-amber { color: var(--amber); } .trd-blue { color: var(--blue); } .trd-cut { color: #991b1b; }
.trd-th { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.trd-th h2 { font-size: 16px; margin: 0; }
.trd-th p { font-size: 13px; color: var(--ink3); margin: 2px 0 0; }
.trd-tabs { display: flex; gap: 2px; background: var(--ground); padding: 3px; border-radius: 8px; }
.trd-tabs a { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 11px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--ink2) !important; }
.trd-tabs a:hover { color: var(--ink) !important; }
.trd-tabs a.on { background: #fff; color: var(--ink) !important; font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .1); }
.trd-tabs i { font-style: normal; font-size: 12px; color: var(--ink3); font-weight: 600; }
.trd-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.trd-table th { height: 40px; text-align: left; font-size: 13px; font-weight: 600; color: var(--ink3); background: var(--soft); border-bottom: 1px solid var(--line); padding: 0 10px; white-space: nowrap; }
.trd-table td { height: 58px; padding: 6px 10px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.trd-table tr:last-child td { border-bottom: 0; }
.trd-table tbody tr:hover td { background: var(--soft); }
.trd-table th:first-child, .trd-table td:first-child { padding-left: 20px; }
.trd-table th:last-child, .trd-table td:last-child { padding-right: 20px; }
.trd-table .r { text-align: right; }
.trd-id { color: var(--ink3); font-size: 14px; }
.trd-nm { font-weight: 600; color: var(--ink) !important; }
.trd-nm:hover { color: var(--blue) !important; }
.trd-sub { display: block; font-size: 13px; color: var(--ink3); }
.trd-amt { font-weight: 600; white-space: nowrap; }
.trd-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.trd-pill svg.ic { width: 13px; height: 13px; stroke-width: 2.2; }
.p-red { background: var(--red-s); color: var(--red); }
.p-cut { background: #fee2e2; color: #991b1b; }
.p-amb { background: var(--amber-s); color: var(--amber); box-shadow: inset 0 0 0 1px #fde68a; }
.p-grn { background: var(--green-s); color: var(--green); }
.p-neu { background: var(--ground); color: var(--ink2); }
.trd-act { display: flex; gap: 6px; justify-content: flex-end; }
.trd-tf { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: 52px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink3); }
.trd-lk { color: var(--blue) !important; font-weight: 600; font-size: 14px; }
.trd-lk:hover { text-decoration: underline; text-underline-offset: 3px; }
.trd-side { display: flex; flex-direction: column; gap: 20px; }
.trd-ph { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 4px; }
.trd-ph h2 { font-size: 15px; margin: 0; }
.trd-pay { list-style: none; margin: 0; padding: 0 18px 8px; }
.trd-pay li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.trd-pay li:last-child { border-bottom: 0; }
.trd-pay b { font-size: 14px; font-weight: 600; }
.trd-pay .m { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink3); }
.trd-pay .a { font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.trd-sum { padding: 16px 18px 18px; }
.trd-sum h2 { font-size: 15px; margin: 0 0 12px; }
.trd-big { font-size: 24px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.trd-lg { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink2); padding: 6px 0; border-top: 1px solid var(--line2); }
.trd-lg:first-of-type { border-top: 0; }
.trd-lg strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.trd-sum .tri-btn { width: 100%; justify-content: center; margin-top: 14px; }
.trd-empty { padding: 40px 24px; text-align: center; color: var(--ink2); }
.trd-empty svg.ic { width: 28px; height: 28px; color: var(--green); }
.trd-empty b { display: block; color: var(--ink); font-size: 15px; margin: 8px 0 2px; }
.trd-start { grid-column: 1 / -1; padding: 28px; }
.trd-start h2 { font-size: 20px; margin: 0 0 4px; }
.trd-start > p { color: var(--ink2); margin: 0 0 20px; max-width: 60ch; }
.trd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.trd-steps li { counter-increment: s; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.trd-steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--blue-s); color: var(--blue-d); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.trd-steps li.done::before { content: ""; background: var(--green-s) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2315803d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 5.5 10.5 2 7'/%3E%3C/svg%3E") no-repeat center; }
.trd-steps b { font-size: 15px; }
.trd-steps span { color: var(--ink2); font-size: 13.5px; flex: 1; }
.trd-steps .tri-btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 1279px) {
  .trd { grid-template-columns: minmax(0, 1fr); }
  .trd-side { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
  .trd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trd-steps { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .trd { gap: 16px; }
  .trd-side { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .trd-start { padding: 20px 18px; }
  .trd-start h2 { font-size: 18px; }
  .trd-steps { gap: 12px; }
  .trd-steps li { padding: 14px 16px; }
  
  .trd-kpis { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .trd-kpi { padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 2px; }
  .trd-kpi .l { grid-column: 1; grid-row: 1; }
  .trd-kpi .s { grid-column: 1; grid-row: 2; margin-top: 0; }
  .trd-kpi .v { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; font-size: 22px; text-align: right; white-space: nowrap; }
  .trd-kpi .v small { font-size: 13px; }
  .trd-th { padding: 14px 16px; }
  .trd-ph { padding: 14px 16px 4px; }
  .trd-pay { padding: 0 16px 8px; }
  .trd-sum { padding: 14px 16px 16px; }
  .trd-tf { padding: 0 16px; flex-wrap: wrap; gap: 4px 12px; height: auto; min-height: 52px; }
  .trd-sum .tri-btn { height: 44px; }
  .trd-table thead { display: none; }
  .trd-table, .trd-table tbody, .trd-table tr, .trd-table td { display: block; width: 100%; }
  .trd-table tr { padding: 12px 16px; border-bottom: 1px solid var(--line2); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
  .trd-table td { height: auto; padding: 0 !important; border: 0; }
  .trd-table td.c-id, .trd-table td.c-due { display: none; }
  .trd-table td.c-st { grid-column: 2; grid-row: 1; }
  .trd-table td.c-amt { text-align: left; }
  .trd-table td.c-act { grid-column: 1 / -1; margin-top: 6px; }
  .trd-act { justify-content: flex-start; flex-wrap: wrap; }
  .trd-tabs { width: 100%; overflow-x: auto; }
  .trd-tabs a { height: 36px; flex: 1 0 auto; justify-content: center; }
}

.tc [hidden] { display: none !important; }

.tc input, .tc select, .tc button, .tc section, .tc details, .tc summary, .tc h2, .tc h3, .tc-modal input, .tc-modal select { min-height: 0 !important; }
.tri .tc textarea.form-control, .tri .tc-modal textarea.form-control { min-height: 96px !important; }
.tc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 4px 0 20px; }
.tc-head h2 { font-size: 24px; line-height: 1.2; margin: 0; letter-spacing: -.02em; font-weight: 650; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tc-head p { margin: 4px 0 0; color: var(--ink3); font-size: 14px; }
.tc-head-act { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tri .tc-btn { height: 40px; padding: 0 16px; font-size: 14px; }
.tri .tc-btn svg.ic { width: 16px; height: 16px; }
.tri .tc-btn svg.tc-caret { width: 14px; height: 14px; margin-left: 2px; color: var(--ink3); }
.tri .tc-icon-btn { width: 40px; padding: 0; }
.tri .btn-sm.tc-icon-btn { width: 34px; }
.tri .tc-icon-btn svg.ic { width: 16px; height: 16px; }
.tri .tc-backlink { display: inline-flex; align-items: center; gap: 2px; min-height: 28px; margin: 0 0 6px -4px; font-size: 14px; font-weight: 600; color: var(--ink3); }
.tri .tc-backlink:hover { color: var(--ink); }
.tc-backlink svg.ic { width: 16px; height: 16px; }
.tc-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.tc-dim { color: var(--ink3); }
.tc-num { font-variant-numeric: tabular-nums; }
.tc-r { text-align: right !important; }
.tc-sub { display: block; font-size: 13px; color: var(--ink3); font-weight: 400; }
.tc-break { overflow-wrap: anywhere; }
.tri .tc-strong { font-weight: 600; color: var(--ink); }
.tri a.tc-strong:hover { color: var(--blue); }
.tri .tc-danger { color: var(--red) !important; }
.tri .tc-danger:hover { background: var(--red-s) !important; }
.tc-av { width: 36px; height: 36px; border-radius: 50%; background: #e0e7ff; color: #3730a3; display: grid; place-items: center; font-weight: 650; font-size: 14px; flex: none; }
.tc-av-lg { width: 52px; height: 52px; font-size: 20px; }

.tc-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; letter-spacing: 0; }
.tc-pill svg.ic { width: 13px; height: 13px; stroke-width: 2.2; }
.tc-pill.is-ok { background: var(--green-s); color: var(--green); box-shadow: inset 0 0 0 1px #bbf7d0; }
.tc-pill.is-bad { background: var(--red-s); color: var(--red); box-shadow: inset 0 0 0 1px #fecaca; }
.tc-pill.is-warn { background: var(--amber-s); color: var(--amber); box-shadow: inset 0 0 0 1px #fde68a; }
.tc-pill.is-neu { background: var(--ground); color: var(--ink2); }

.tc-pw-btn { position: absolute; right: 4px; top: 4px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--blue); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s; }
.tc-pw-btn:hover { background: var(--blue-s); }

.tc-empty { padding: 56px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tc-empty-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-s); color: var(--blue); display: grid; place-items: center; margin-bottom: 10px; }
.tc-empty-ic svg.ic { width: 24px; height: 24px; }
.tc-empty b { font-size: 16px; font-weight: 650; color: var(--ink); }
.tc-empty p { color: var(--ink2); max-width: 46ch; margin: 0 0 14px; font-size: 14.5px; text-wrap: pretty; }
.tc-empty-sm { padding: 32px 20px; }
.tc-empty-sm p { margin-bottom: 12px; }
.tc-empty-sm p:last-child { margin-bottom: 0; }

.tc-bar { display: flex; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.tc-search { position: relative; flex: 1 1 280px; min-width: 0; }
.tc-search svg.ic { position: absolute; left: 12px; top: 11px; color: var(--ink3); pointer-events: none; }
.tri .tc-search .form-control { padding-left: 40px; width: 100%; }
.tri .tc-sel {
  display: flex; align-items: center; height: 40px; margin: 0; padding-left: 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--ink3); transition: border-color .15s, box-shadow .15s;
}
.tri .tc-sel:hover { border-color: #cbd5e1; }
.tri .tc-sel:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-r); }
.tc-sel > span { white-space: nowrap; }
.tc-sel select, .tc-per select {
  -webkit-appearance: none; appearance: none; border: 0; outline: 0; cursor: pointer;
  height: 38px; padding: 0 32px 0 6px; font: inherit; font-weight: 600; color: var(--ink);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
}

.tc-bulk { display: none; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 10px 16px; background: var(--blue-s); border-bottom: 1px solid var(--blue-r); font-size: 14px; color: #1e3a8a; }
.tc-bulk.is-on { display: flex; animation: tc-in .28s var(--ease); }
.tc-bulk > span { margin-right: auto; }
@keyframes tc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.tc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tc-table th { height: 40px; padding: 0 12px; text-align: left; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink3); background: var(--soft); border-bottom: 1px solid var(--line); }
.tc-table td { height: 60px; padding: 10px 12px; vertical-align: middle; color: var(--ink); border-bottom: 1px solid var(--line2); }
.tc-table tbody tr:last-child td { border-bottom: 0; }
.tc-table tbody tr[data-href] { cursor: pointer; }
.tc-table tbody tr:hover td { background: var(--soft); }
.tc-table tbody tr.is-sel td { background: var(--blue-s); }
.tc-table th:first-child, .tc-table td:first-child { padding-left: 16px; }
.tc-table th:last-child, .tc-table td:last-child { padding-right: 16px; }
.tc-scroll, .tc-scroll-x { overflow-x: auto; }

.tc-cust .c-chk { width: 44px; padding-right: 0; }
.tri .tc-chk { display: inline-grid; place-items: center; width: 32px; height: 32px; margin: -6px; border-radius: 6px; cursor: pointer; }
.tri .tc-chk:hover { background: var(--ground); }
.tri .tc-chk input { margin: 0; cursor: pointer; }
.tri .tc-who { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 300px; color: var(--ink); }
.tc-who-t { min-width: 0; display: flex; flex-direction: column; }
.tc-who-t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.tc-who-t small { font-size: 13px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-who:hover b { color: var(--blue); }
.tc-who-ph { display: none; }
.tc-wa { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tri .tc-wa .tc-num { color: var(--ink); }
.tri .tc-wa .tc-num:hover { color: var(--blue); }
.tri .tc-ib { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--green); transition: background .15s; }
.tri .tc-ib:hover { background: var(--green-s); color: var(--green); }
.tc-ib svg.ic { width: 16px; height: 16px; }
.tc-cust .c-pkg .label { margin: 2px 0; }
.tc-cust .c-svc, .tc-cust .c-bal, .tc-cust .c-date, .tc-cust .c-st { white-space: nowrap; }
.tc-hist td.tc-r { white-space: nowrap; }
.tc-cust .c-act { width: 1%; white-space: nowrap; }
.tc-act { display: flex; gap: 6px; justify-content: flex-end; }
.tri .tc-act .btn-sm { height: 34px; }

.tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 8px 16px; min-height: 56px; border-top: 1px solid var(--line); }
.tri .tc-per { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 500; color: var(--ink3); }
.tc-per select { height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 8px; background-color: #fff; background-position: right 8px center; }
.tc-per select:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-r); }
.tc-pages center { text-align: right; }
.tri .tc-pages .pagination { margin: 0; flex-wrap: wrap; }
.tc-card > .tc-pages:not(:empty) { padding: 0 16px; }
.tc-card > .tc-pages center { display: block; padding: 12px 0; border-top: 1px solid var(--line); text-align: left; }

.tri .tc-modal .tc-f + .tc-f { margin-top: 14px; }
.tri .modal-header .close { display: grid; place-items: center; width: 32px; height: 32px; margin: -4px -6px 0 0; border-radius: 8px; opacity: .6; }
.tri .modal-header .close:hover { opacity: 1; background: var(--ground); }

.tc-form { display: flex; flex-direction: column; gap: 16px; }
.tc-form > .tc-head { margin-bottom: 4px; }
.tc-sec {
  margin: 0; padding: 24px; display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 16px 40px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.tc-sec-h { display: block; }
.tc-sec-h h3 { font-size: 16px; line-height: 1.35; margin: 0 0 4px; font-weight: 650; }
.tc-sec-h p { margin: 0; color: var(--ink3); font-size: 14px; line-height: 1.5; max-width: 38ch; text-wrap: pretty; }
.tc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; align-content: start; max-width: 760px; }
.tc-f { display: flex; flex-direction: column; min-width: 0; }
.tc-f.full, .tc-group.full { grid-column: 1 / -1; }
.tri .tc-f > label, .tri .tc-lbl { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.tri .tc-f > label .label { font-weight: 600; }
.tc-opt { font-weight: 500; color: var(--ink3); }
.tri .tc-help { margin: 6px 0 0; color: var(--ink3); font-size: 13px; line-height: 1.45; }
.tri .tc-help-top { margin: -2px 0 10px; }
.tc-pw { position: relative; display: flex; }
.tri .tc-pw .form-control { flex: 1; padding-right: 112px; }

.tc-group { min-width: 0; margin: 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.tri .tc-group > legend { float: left; width: 100%; margin: 0 0 2px; padding: 0; border: 0; font-size: 14px; font-weight: 650; color: var(--ink); }
.tc-group > legend + * { clear: both; }
.tri .tc-group-note { margin: 0; }
.tc-fields-in { margin-top: 14px; max-width: none; }

.tc-sec.tc-fold { display: block; padding: 0; }
.tc-fold > summary {
  list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 20px 24px; cursor: pointer; border-radius: 12px; transition: background .15s;
}
.tc-fold > summary::-webkit-details-marker { display: none; }
.tc-fold > summary:hover { background: var(--soft); }
.tc-fold > summary .tc-sec-h p { max-width: 64ch; }
.tri svg.tc-fold-ic { width: 32px; height: 32px; padding: 7px; border-radius: 8px; color: var(--ink3); background: var(--ground); transition: transform .3s var(--ease), color .15s; }
.tc-fold > summary:hover .tc-fold-ic { color: var(--ink); }
.tc-fold[open] .tc-fold-ic { transform: rotate(180deg); }
.tc-fold[open] > summary { border-radius: 12px 12px 0 0; border-bottom: 1px solid var(--line2); }
.tc-fold-body { padding: 20px 24px 24px; display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 0 40px; }
.tc-fold-body > .tc-fields { grid-column: 2; }
.tc-fold[open] .tc-fold-body { animation: tc-in .28s var(--ease); }

.tc-coord { display: flex; gap: 8px; }
.tri .tc-coord .form-control { flex: 1; min-width: 0; }
.tc-map { height: 300px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; position: relative; isolation: isolate; background: var(--ground); }

.tc-attrs { display: flex; flex-direction: column; gap: 8px; }
.tc-attrs:not(:empty) { margin-bottom: 10px; }
.tc-attr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 40px; gap: 8px; align-items: center; }
.tc-attr.is-old { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
.tri .tc-attr-name { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.tri .tc-attr .remove-custom-field { height: 40px; }
.tri .tc-add-attr { align-self: flex-start; }
.tri .tc-check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; font-weight: 500; color: var(--ink); cursor: pointer; }
.tri .tc-check input { margin: 0; }
.tc-chans { flex-wrap: wrap; align-items: center; gap: 0 20px; margin-top: 8px; padding: 10px 14px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.tri .tc-chans .tc-lbl { width: 100%; margin: 0; }
.tc-chans:focus { outline: 2px solid var(--blue); outline-offset: 2px; }

.tc-photo { display: flex; gap: 16px; align-items: flex-start; }
.tc-photo img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); flex: none; }
.tc-photo-in { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tc-photo-row { display: flex; align-items: center; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.tri .tc-photo input[type="file"].form-control { height: auto; padding: 7px 10px; }

.tc-tip { margin-top: 4px; }
.tc-tip > summary { display: inline-flex; align-items: center; min-height: 32px; cursor: pointer; color: var(--blue); font-weight: 600; font-size: 13.5px; }
.tc-tip > summary:hover { color: var(--blue-d); }
.tc-tip ul { margin: 6px 0 0; padding: 12px 14px 12px 30px; display: flex; flex-direction: column; gap: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; color: var(--ink2); font-size: 13.5px; line-height: 1.5; }
.tc-tip b { color: var(--ink); font-weight: 600; }

.tc-save {
  position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 16px; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop);
}
.tri .tc-save .btn-primary { min-width: 168px; }

.tc-id { min-width: 0; }
.tc-id-row { display: flex; align-items: center; gap: 14px; }
.tc-id-t { min-width: 0; }
.tc-id-t h2 { overflow-wrap: anywhere; }
.tc-dot { display: inline-block; width: 3px; height: 3px; margin: 0 8px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.tc-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }
.tc-sum-i { padding: 16px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.tc-sum-i + .tc-sum-i { border-left: 1px solid var(--line2); }
.tc-k { font-size: 13px; font-weight: 500; color: var(--ink3); }
.tc-sum-i b { font-size: 17px; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tc-sum-i small { font-size: 13px; color: var(--ink3); }
.tri .tc-t-bad { color: var(--red); font-weight: 600; }
.tri .tc-t-warn { color: var(--amber); font-weight: 600; }

.tc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.tc-main, .tc-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tc-th { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; min-height: 60px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.tc-th h3 { font-size: 16px; margin: 0; font-weight: 650; }
.tc-th p { margin: 2px 0 0; font-size: 13px; color: var(--ink3); }
.tc-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--ground); }
.tri .tc-tabs a { height: 32px; display: flex; align-items: center; padding: 0 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--ink2); }
.tri .tc-tabs a:hover { color: var(--ink); }
.tri .tc-tabs a.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .1); }

.tc-pkgs { list-style: none; margin: 0; padding: 0; }
.tc-pkg { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line2); }
.tc-pkg:last-child { border-bottom: 0; }
.tc-pkg-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tc-pkg-h b { font-size: 15px; font-weight: 650; }
.tc-pkg-h small { display: block; font-size: 13px; color: var(--ink3); }
.tc-pkg-d { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; margin: 0; }
.tc-pkg-d dt { font-size: 12.5px; font-weight: 500; color: var(--ink3); }
.tc-pkg-d dd { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.tc-pkg-a { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-online { font-size: 18px; line-height: 0; vertical-align: -1px; }

.tc-dl { margin: 0; padding: 2px 20px 6px; }
.tc-dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line2); }
.tc-dl > div:last-child { border-bottom: 0; }
.tc-dl dt { font-size: 13.5px; font-weight: 500; color: var(--ink3); }
.tc-dl dd { margin: 0; font-size: 14px; color: var(--ink); }
.tc-secret { display: flex; align-items: center; gap: 4px; margin: -6px 0; }
.tc-secret input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); }
.tc-secret .tc-pw-btn { position: static; flex: none; }
.tc-map-sm { height: 200px; border: 0; border-radius: 0 0 12px 12px; }

@media (max-width: 1599px) {
  .tc-cust .c-date { display: none; }
}
@media (max-width: 1279px) {
  .tc-cust .c-bal, .tc-cust .c-svc { display: none; }
  .tc-grid { grid-template-columns: minmax(0, 1fr); }
  .tc-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .tc-hist .h-lg { display: none; }
}
@media (max-width: 1179px) {
  .tc-cust .c-wa { display: none; }
  .tc-who-ph { display: block; }
}
@media (max-width: 991px) {
  .tc-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-sum-i:nth-child(3) { border-left: 0; }
  .tc-sum-i:nth-child(n+3) { border-top: 1px solid var(--line2); }
  .tc-sec { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tc-fold-body { grid-template-columns: minmax(0, 1fr); }
  .tc-fold-body > .tc-fields { grid-column: 1; }
  .tc-fields { max-width: none; }

  
  .tc-scroll-x { overflow: visible; }
  .tc-cust thead { display: none; }
  .tc-cust, .tc-cust tbody { display: block; }
  .tc-cust tbody tr {
    display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 6px 10px;
    grid-template-areas: "chk name st" "chk wa wa" "chk pkg pkg" "chk act act";
    padding: 14px 16px; border-bottom: 1px solid var(--line2);
  }
  .tc-cust tbody tr:last-child { border-bottom: 0; }
  .tc-cust tbody tr:hover { background: var(--soft); }
  .tc-cust tbody tr.is-sel { background: var(--blue-s); }
  .tc-cust tbody tr:hover td, .tc-cust tbody tr.is-sel td { background: transparent; }
  .tc-cust td { display: block; height: auto; padding: 0 !important; border: 0 !important; }
  .tc-cust .c-chk { grid-area: chk; width: auto; }
  .tc-cust .c-name { grid-area: name; min-width: 0; }
  .tc-cust .c-st { grid-area: st; align-self: start; }
  .tc-cust .c-wa { grid-area: wa; display: block; }
  .tc-cust .c-pkg { grid-area: pkg; }
  .tc-cust .c-pkg:empty { display: none; }
  .tc-cust .c-act { grid-area: act; width: auto; padding-top: 4px !important; }
  .tc-cust .c-svc, .tc-cust .c-bal, .tc-cust .c-date { display: none; }
  .tc-cust .tc-av, .tc-who-ph { display: none; }
  .tri .tc-cust .tc-chk { width: 40px; height: 40px; margin: -8px 0 0 -12px; }
  .tc-cust .tc-act { justify-content: flex-start; }
  .tri .tc-cust .tc-act .btn-sm { height: 40px; padding: 0 14px; font-size: 14px; }
  .tri .tc-cust .btn-sm.tc-icon-btn { width: 40px; padding: 0; }
  .tri .tc-cust .tc-ib { width: 40px; height: 40px; }
}
@media (max-width: 767px) {
  .tc-head { margin: 0 0 16px; }
  .tc-head h2 { font-size: 21px; }
  .tc-head-act { width: 100%; }
  .tc-head-act > * { flex: 1 1 0; min-width: 0; }
  .tc-view .tc-head-act > :first-child { flex-basis: 100%; }
  .tri .tc-head-act .btn { width: 100%; }
  .tc-head-act > .dropdown:last-child { flex: 0 0 40px; }

  .tc-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "s s b" "f o o"; padding: 12px; gap: 8px; }
  .tc-bar .tc-search { grid-area: s; }
  .tc-bar > .btn { grid-area: b; }
  .tc-bar .tc-sel:nth-of-type(1) { grid-area: f; }
  .tc-bar .tc-sel:nth-of-type(2) { grid-area: o; }
  .tc-bar .tc-sel:nth-of-type(2) > span { display: none; }
  .tri .tc-sel { min-width: 0; padding-left: 10px; }
  .tc-sel select { flex: 1; min-width: 0; width: 100%; padding-right: 28px; background-position: right 8px center; }
  .tc-bulk { padding: 10px 12px; }
  .tc-bulk > span { width: 100%; }
  .tc-bulk .btn { flex: 1 1 auto; }
  .tc-foot { padding: 8px 12px; }
  .tc-pages center { text-align: left; }

  .tc-sec { padding: 18px 16px; }
  .tc-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tc-fold > summary { padding: 16px; }
  .tc-fold-body { padding: 16px 16px 18px; }
  .tc-group { padding: 12px 12px 14px; }
  .tc-attr, .tc-attr.is-old { grid-template-columns: minmax(0, 1fr) 40px; }
  .tc-attr > input:nth-child(2) { grid-column: 1; grid-row: 2; }
  .tc-attr > .remove-custom-field { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .tc-attr.is-old > .tc-attr-name { grid-column: 1 / -1; }
  .tc-attr.is-old > .form-control { grid-column: 1; }
  .tc-attr.is-old > .tc-attr-del { grid-column: 2; grid-row: 2; justify-self: end; }
  .tc-attr.is-old { grid-template-columns: minmax(0, 1fr) auto; }
  .tc-coord { flex-direction: column; }
  .tc-map { height: 260px; }
  .tc-save { bottom: 0; margin: 0 -12px; padding: 12px; border-radius: 0; border-left: 0; border-right: 0; }
  .tri .tc-save .btn { flex: 1; min-width: 0; }

  .tc-av-lg { width: 44px; height: 44px; font-size: 18px; }
  .tc-sum-i { padding: 14px 16px; }
  .tc-sum-i b { font-size: 16px; }
  .tc-side { grid-template-columns: minmax(0, 1fr); }
  .tc-th { padding: 12px 16px; }
  .tc-tabs { width: 100%; }
  .tri .tc-tabs a { flex: 1; justify-content: center; height: 36px; }
  .tc-pkg { padding: 16px; }
  .tc-pkg-d { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-pkg-a .btn { flex: 1 1 auto; height: 40px; }
  .tc-dl { padding: 2px 16px 6px; }
  .tc-dl > div { grid-template-columns: 112px minmax(0, 1fr); }
  .tc-hist .h-md, .tc-hist .h-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-bulk.is-on, .tc-fold[open] .tc-fold-body { animation: none; }
}

.tb { display: grid; gap: 20px; min-width: 0; }
.tb-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.tb-narrow { max-width: 820px; }
.tb-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  min-width: 0; margin: 0;
}
.tb-card-h {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.tb-card-h .tb-ttl { flex: 1 1 260px; min-width: 0; }
.tb .tb-card-h h2 { font-size: 16px; font-weight: 650; letter-spacing: -.01em; margin: 0; line-height: 1.35; }
.tb-card-h p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink3); line-height: 1.45; }
.tb-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tb .btn svg.ic { width: 16px; height: 16px; }
.tb-link { font-weight: 600; font-size: 14px; color: var(--blue); }
.tb-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tb-muted { color: var(--ink3); }

.tb-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.tb-filter .form-control { width: auto; min-width: 0; }
.tb-filter select.form-control { flex: 0 1 180px; }
.tb-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.tb-search > svg.ic { position: absolute; left: 12px; top: 11px; color: var(--ink3); pointer-events: none; }
.tb .tb-search .form-control { width: 100%; padding-left: 38px; }
.tb-filter .btn { height: 40px; }
.tb-more { flex-basis: 100%; }
.tb-more > summary {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 600; color: var(--ink2); border-radius: 6px;
}
.tb-more > summary::-webkit-details-marker { display: none; }
.tb-more > summary::after {
  content: ""; width: 7px; height: 7px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); margin-left: 2px;
}
.tb-more[open] > summary::after { transform: rotate(225deg) translate(-2px, 0); }
.tb-more > summary:hover { color: var(--ink); }
.tb-more-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; padding: 8px 0 4px; }
.tb-more-body .form-control { width: 100%; }

.tb-table { overflow-x: auto; }
.tb .tb-table .table { margin: 0; }
.tb .tb-table .table > tbody > tr > td { white-space: nowrap; }
.tb-nm { font-weight: 600; color: var(--ink); }
a.tb-nm:hover { color: var(--blue); }
.tb-sub { display: block; font-size: 13px; color: var(--ink3); font-weight: 400; margin-top: 1px; }
.tb .tb-num { text-align: right; font-variant-numeric: tabular-nums; }
.tb-old { font-size: 12.5px; color: var(--ink3); text-decoration: line-through; margin-left: 4px; font-weight: 400; }
.tb-rowacts { display: flex; gap: 6px; justify-content: flex-end; }
.tb .tb-rowacts .btn { height: 32px; padding: 0 10px; font-size: 13px; }
.tb .tb-rowacts .btn-icon { width: 32px; padding: 0; }
.tb .table > tbody > tr.tb-off > td { background: var(--soft); color: var(--ink2); }
.tb .table > tfoot > tr > td, .tb .table > tfoot > tr > th { background: var(--soft); font-weight: 650; border-top: 1px solid var(--line); }
.tb-dot:empty { display: none; }
.tb-dot span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; font-size: 0; vertical-align: 1px; margin-left: 4px; background: var(--red) !important; }
.tb-dot span[title="online"] { background: var(--green) !important; }
.tb-dot span[title="offline"] { background: #f59e0b !important; }
.tb-card-f { padding: 4px 20px; border-top: 1px solid var(--line); display: flex; justify-content: center; }
.tb-card-f:empty, .tb-card-f:not(:has(*)) { display: none; }
.tb-card-f center { width: 100%; }

.tb-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 48px 24px 52px; }
.tb-empty-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-s); color: var(--blue); margin-bottom: 8px; }
.tb-empty-ic svg.ic { width: 24px; height: 24px; }
.tb .tb-empty h3 { font-size: 16px; font-weight: 650; margin: 0; }
.tb-empty > p { margin: 0; max-width: 48ch; color: var(--ink2); font-size: 14.5px; }
.tb-empty .tb-acts { justify-content: center; margin-top: 14px; }
.tb-prereq { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; width: min(100%, 440px); text-align: left; counter-reset: tbp; }
.tb-prereq li {
  counter-increment: tbp; display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--ink2);
}
.tb-prereq li::before {
  content: counter(tbp); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ground); color: var(--ink2); font-size: 12.5px; font-weight: 650;
}
.tb-prereq li b { color: var(--ink); font-weight: 600; display: block; }
.tb-prereq li a { margin-left: auto; flex: none; font-weight: 600; font-size: 13.5px; }

.tb-note {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px;
  background: var(--blue-s); border: 1px solid var(--blue-r); color: #1e3a8a; font-size: 14px; line-height: 1.5;
}
.tb-note svg.ic { margin-top: 1px; color: var(--blue); }
.tb-note b { font-weight: 650; }
.tb-note p { margin: 0; }
.tb-note p + p { margin-top: 4px; }
.tb-note a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tb-note.is-amber { background: var(--amber-s); border-color: #fde68a; color: #78350f; }
.tb-note.is-amber svg.ic { color: var(--amber); }
.tb-note.is-red { background: var(--red-s); border-color: #fecaca; color: #7f1d1d; }
.tb-note.is-red svg.ic { color: var(--red); }
.tb-card > .tb-note { margin: 16px 20px; }
.tb-tip { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink2); display: flex; gap: 10px; align-items: flex-start; }
.tb-tip svg.ic { color: var(--ink3); width: 16px; height: 16px; margin-top: 2px; }
.tb-tip p { margin: 0; }

.tb-sec { padding: 20px; }
.tb-sec + .tb-sec { border-top: 1px solid var(--line); }
.tb .tb-sec > h3, .tb-step-b > h3 { font-size: 15px; font-weight: 650; margin: 0; letter-spacing: -.01em; }
.tb-sec-d { margin: 2px 0 16px; font-size: 13.5px; color: var(--ink3); }
.tb-f { margin-bottom: 18px; min-width: 0; }
.tb-f:last-child { margin-bottom: 0; }
.tb .tb-l { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.tb-l small { font-weight: 500; color: var(--ink3); font-size: 13px; margin-left: 4px; }
.tb-h { margin: 6px 0 0; font-size: 13px; color: var(--ink3); line-height: 1.45; }
.tb-h a { font-weight: 600; }
.tb-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.tb-pair { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 8px; }
.tb .tb-f .form-control:not(.select2-hidden-accessible), .tb .tb-f .select2-container { width: 100% !important; }
.tb-warn { color: var(--red); font-size: 13px; margin-top: 6px; }
.tb-warn:empty { display: none; }

.tb-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.tb .tb-choice > label {
  display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 11px 14px; min-height: 48px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color .15s, background .15s, box-shadow .15s;
}
.tb .tb-choice > label:hover { border-color: #cbd5e1; }
.tb .tb-choice > label:has(input:checked) { border-color: var(--blue); background: var(--blue-s); box-shadow: inset 0 0 0 1px var(--blue); }
.tb .tb-choice > label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.tb .tb-choice input { margin: 2px 0 0; flex: none; }
.tb-choice b { display: block; font-weight: 600; line-height: 1.35; }
.tb-choice small { display: block; color: var(--ink3); font-size: 13px; line-height: 1.4; margin-top: 1px; }

.tb-adv { border-top: 1px solid var(--line); }
.tb-adv > summary {
  display: flex; align-items: center; gap: 10px; padding: 16px 20px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 14.5px; color: var(--ink);
}
.tb-adv > summary::-webkit-details-marker { display: none; }
.tb-adv > summary small { font-weight: 400; color: var(--ink3); font-size: 13px; }
.tb-adv > summary::after {
  content: ""; margin-left: auto; width: 8px; height: 8px; flex: none;
  border-right: 1.75px solid var(--ink3); border-bottom: 1.75px solid var(--ink3);
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.tb-adv[open] > summary::after { transform: rotate(225deg); }
.tb-adv > summary:hover { background: var(--soft); }
.tb-adv[open] > summary { border-bottom: 1px solid var(--line2); }
.tb-adv > .tb-sec { border-top: 0; }
.tb-code .CodeMirror { height: 220px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.tb .tb-code textarea.form-control { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; }

.tb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tb .tb-chips a {
  display: inline-flex; align-items: center; height: 32px; padding: 0 11px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink2); font-size: 13px; font-weight: 600;
}
.tb .tb-chips a:hover { border-color: var(--blue); color: var(--blue-d); background: var(--blue-s); }
.tb-chips-l { font-size: 13px; color: var(--ink3); margin: 14px 0 0; font-weight: 600; }

.tb-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px;
  border-top: 1px solid var(--line); background: var(--soft); border-radius: 0 0 12px 12px;
}
.tb .tb-foot .btn-primary, .tb .tb-foot .btn-success { height: 40px; padding: 0 18px; font-size: 14.5px; }
.tb-foot .tb-link { font-size: 14px; }
.tb-foot .tb-foot-note { margin-left: auto; font-size: 13px; color: var(--ink3); }

.tb-steps { list-style: none; margin: 0; padding: 0; }
.tb-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 14px; padding: 20px; }
.tb-step + .tb-step { border-top: 1px solid var(--line); }
.tb-step-n {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-s); color: var(--blue-d); font-size: 13.5px; font-weight: 650; box-shadow: inset 0 0 0 1px var(--blue-r);
}
.tb-step.is-done .tb-step-n { background: var(--green-s); color: var(--green); box-shadow: inset 0 0 0 1px #bbf7d0; }
.tb-step-b > h3 { margin-top: 3px; }
.tb-step-b > .tb-sec-d { margin-bottom: 14px; }
.tb-step-b .tb-note { margin-top: 12px; }
.tb-step-b .tb-note:empty, .tb-note[hidden] { display: none; }

.tb-sum { margin: 0; padding: 4px 20px 8px; }
.tb-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line2); }
.tb-sum > div:last-child { border-bottom: 0; }
.tb-sum dt { font-weight: 500; color: var(--ink2); font-size: 14px; flex: none; }
.tb-sum dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.tb-sum dd small { display: block; font-weight: 400; color: var(--ink3); font-size: 13px; }
.tb-sum dd.is-empty { color: var(--ink3); font-weight: 400; }
.tb-sum dd .label { margin: 1px 0 1px 4px; }
.tb-sum-h { padding: 14px 20px 0; font-size: 13px; font-weight: 600; color: var(--ink3); margin: 0; }
.tb-sum-h + .tb-sum { padding-top: 0; }
.tb-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); }
.tb-total span { font-weight: 600; color: var(--ink2); }
.tb-total span small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink3); }
.tb-total strong { font-size: 26px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tb-sticky { position: sticky; top: calc(var(--top) + 24px); }
.tb-confirm-btn { padding: 0 20px 20px; display: grid; gap: 10px; }
.tb .tb-confirm-btn .btn { height: 44px; font-size: 15px; width: 100%; }
.tb-confirm-btn .tb-link { text-align: center; }

.tb-kpi { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.tb-kpi b { font-size: 24px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tb-kpi span { color: var(--ink3); font-size: 13.5px; }
.tb-charts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 20px; }
.tb-chart-line { height: 300px; padding: 0 20px 20px; position: relative; }
.tb-check { display: inline-flex !important; align-items: center; gap: 2px; margin: 0 !important; font-weight: 500 !important; color: var(--ink2) !important; font-size: 13.5px !important; min-height: 40px; cursor: pointer; }

@media (max-width: 1199px) {
  .tb-split { grid-template-columns: minmax(0, 1fr); }
  .tb-sticky { position: static; }
  .tb-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .tb { gap: 16px; }
  .tb-card-h, .tb-filter, .tb-sec, .tb-step, .tb-foot, .tb-kpi { padding-left: 16px; padding-right: 16px; }
  .tb-step { grid-template-columns: 28px minmax(0, 1fr); gap: 0 12px; }
  .tb-grid2 { grid-template-columns: minmax(0, 1fr); }
  .tb-card-h .tb-acts { width: 100%; }
  .tb-card-h .tb-acts .btn { flex: 1 1 auto; }
  .tb .btn { min-height: 40px; }
  .tb-search { max-width: none; flex-basis: 100%; }
  .tb-filter select.form-control { flex: 1 1 calc(50% - 4px); }
  .tb-filter .btn { flex: 1 1 auto; }
  .tb-more-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tb .tb-choice > label { min-height: 52px; }
  .tb-foot .btn-primary, .tb-foot .btn-success { flex: 1 1 100%; }
  .tb-foot .tb-link { flex: 1 1 100%; text-align: center; min-height: 40px; display: grid; place-items: center; }
  .tb-foot .tb-foot-note { margin-left: 0; }
  .tb-adv > summary { padding: 16px; }
  .tb-empty { padding: 36px 16px 40px; }
  .tb-charts { padding: 16px; gap: 12px; }
  .tb-card > .tb-note { margin: 12px 16px; }

  
  .tb .tb-stack thead { display: none; }
  .tb .tb-stack, .tb .tb-stack tbody, .tb .tb-stack tr, .tb .tb-stack td { display: block; width: 100%; }
  .tb .tb-stack > tbody > tr { padding: 12px 16px; border-top: 1px solid var(--line); }
  .tb .tb-stack > tbody > tr:first-child { border-top: 0; }
  .tb .tb-stack.table > tbody > tr > td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 4px 0 !important; border: 0; white-space: normal; text-align: right; background: none;
  }
  .tb .tb-stack.table > tbody > tr > td::before { content: attr(data-label); color: var(--ink3); font-size: 13px; font-weight: 500; text-align: left; flex: none; }
  .tb .tb-stack.table > tbody > tr > td.tb-lead { display: block; text-align: left; padding-bottom: 6px !important; }
  .tb .tb-stack.table > tbody > tr > td.tb-lead::before { content: none; }
  .tb .tb-stack.table > tbody > tr > td.tb-lead .tb-sub { display: block; }
  .tb .tb-stack.table > tbody > tr > td.tb-acts-cell { padding-top: 10px !important; }
  .tb .tb-stack.table > tbody > tr > td.tb-acts-cell::before { content: none; }
  .tb .tb-stack .tb-rowacts { width: 100%; justify-content: stretch; }
  .tb .tb-stack .tb-rowacts .btn { flex: 1 1 auto; height: 40px; }
  .tb .tb-stack .tb-rowacts .btn-icon { flex: 0 0 44px; }
  .tb .tb-stack > tbody > tr:hover > td { background: none; }
  .tb .tb-stack > tfoot { display: block; }
  .tb .tb-stack > tfoot > tr { display: flex; justify-content: space-between; padding: 12px 16px; background: var(--soft); }
  .tb .tb-stack > tfoot > tr > td, .tb .tb-stack > tfoot > tr > th { display: block; padding: 0 !important; border: 0; background: none; }
}
@media (max-width: 420px) {
  .tb-more-body { grid-template-columns: minmax(0, 1fr); }
  .tb-pair { grid-template-columns: minmax(0, 1fr) 110px; }
}

.tb-total.is-first { border-top: 0; }
.tb-sep { border-top: 1px solid var(--line); }
.tb-after { margin-top: 16px; }
.tb .tb-w-sm { max-width: 160px; }

.tb-filter-l { align-items: flex-end; }
.tb .tb-fi { display: grid; gap: 4px; margin: 0; font-size: 12.5px; font-weight: 600; color: var(--ink3); min-width: 0; }
.tb .tb-fi .form-control { width: 100%; }
.tb-filter-l > .tb-fi { flex: 0 1 180px; }
.tb-filter-l > .tb-check { align-self: flex-end; }
.tb-more-wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 767px) {
  .tb-filter-l > .tb-fi { flex: 1 1 calc(50% - 4px); }
  .tb-more-wide { grid-template-columns: minmax(0, 1fr); }
}
.tb-secret { filter: blur(5px); transition: filter .2s var(--ease); cursor: default; border-radius: 4px; }
.tb-secret:hover, .tb-secret:focus { filter: none; }
.tb .tb-perpage { margin-left: auto !important; gap: 8px; }
.tb .tb-perpage .form-control { width: auto; height: 36px; }

.tb .tb-choice > label { align-items: flex-start !important; }
.tb .tb-choice > label > input[type="radio"] { width: 16px !important; height: 16px !important; min-height: 0 !important; align-self: flex-start; margin: 3px 0 0 !important; flex: none; }
.tb .tb-f .select2-hidden-accessible, .tb .select2-hidden-accessible { width: 1px !important; }
.tb-card form > .tb-note { margin: 16px 20px 0; }

.tra :is(input, textarea, select, button, .select2-selection):not(#\#) { min-height: 0; }
.tri .tra textarea.form-control:not(#\#) { min-height: 96px; }

.tra { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tra-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 0; scroll-margin-top: calc(var(--top) + 16px); }
.tra-th {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.tra-th > .tra-tt { flex: 1 1 320px; min-width: 0; }
.tra .tra-th h2 { font-size: 16px; line-height: 1.35; margin: 0; letter-spacing: -.01em; }
.tra-th p { font-size: 13.5px; color: var(--ink3); margin: 3px 0 0; max-width: 78ch; text-wrap: pretty; }
.tra-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tra-body { padding: 20px; }

.tri .tra .btn { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.tri .tra .btn svg.ic { width: 16px; height: 16px; }
.tri .tra .btn-sm { height: 34px; padding: 0 11px; font-size: 13px; border-radius: 7px; }
.tri .tra .btn-icon { width: 34px; padding: 0; }
.tri .tra .btn-icon svg.ic { width: 16px; height: 16px; }
.tri .tra .btn-link { border: 0; background: none; box-shadow: none; color: var(--ink2); padding: 0 8px; }
.tri .tra .btn-link:hover { color: var(--ink); background: var(--ground); }

.tra-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 14px 20px; border-bottom: 1px solid var(--line2); }
.tra-search { display: flex; gap: 8px; flex: 1 1 300px; max-width: 460px; margin: 0; }
.tra-search .tra-sbox { position: relative; flex: 1; min-width: 0; }
.tra-search .tra-sbox svg.ic { position: absolute; left: 12px; top: 11px; color: var(--ink3); pointer-events: none; }
.tri .tra-search .form-control { padding-left: 38px; background: var(--soft); }
.tri .tra-search .form-control:focus { background: #fff; }
.tra-tools .tra-note { margin-left: auto; font-size: 13px; color: var(--ink3); }

.tri .tra-table { width: 100%; margin: 0; }
.tri .tra-table > tbody > tr > td { height: 56px; }
.tra-table .tra-name { font-weight: 600; color: var(--ink); }
.tra-table .tra-sub { display: block; font-size: 13px; color: var(--ink3); font-weight: 400; }
.tra-table .tra-r { text-align: right; white-space: nowrap; }
.tra-rowacts { display: inline-flex; gap: 6px; justify-content: flex-end; }
.tra-num { font-variant-numeric: tabular-nums; }
.tra-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--ground); color: var(--ink2); }
.tra-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tra-pill.ok { background: var(--green-s); color: var(--green); }
.tra-pill.off { background: var(--red-s); color: var(--red); }
.tra-pill.warn { background: var(--amber-s); color: var(--amber); }

.tra-secret { filter: blur(5px); transition: filter .2s var(--ease); cursor: default; border-radius: 4px; }
.tra-secret:hover, .tra-secret:focus { filter: none; }
.tra-foot-pager { padding: 0 20px; }
.tra-foot-pager:empty { display: none; }

.tra-empty { text-align: center; padding: 48px 24px 52px; }
.tra-empty .tra-eico { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-s); color: var(--blue); display: grid; place-items: center; margin: 0 auto 16px; }
.tra-empty .tra-eico svg.ic { width: 24px; height: 24px; }
.tra .tra-empty h3 { font-size: 16px; margin: 0 0 6px; }
.tra-empty p { color: var(--ink2); font-size: 14.5px; max-width: 48ch; margin: 0 auto 20px; text-wrap: pretty; }
.tra-empty .tra-acts { justify-content: center; }

.tra-form { margin: 0; }
.tra-sec { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 16px 40px; padding: 24px; border-top: 1px solid var(--line); }
.tra-sec:first-child, .tra-th + .tra-sec { border-top: 0; }
.tra .tra-sec-info h3 { font-size: 15px; margin: 0 0 4px; line-height: 1.4; }
.tra-sec-info p { font-size: 13.5px; color: var(--ink3); margin: 0; text-wrap: pretty; }
.tra-sec-info p + p { margin-top: 8px; }
.tra-fields { display: flex; flex-direction: column; gap: 20px; max-width: 640px; min-width: 0; }
.tra-field { min-width: 0; }
.tri .tra-field > label, .tri .tra-field > .tra-lbl { display: block; margin: 0 0 6px; padding: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
.tra-field .tra-opt { font-weight: 500; color: var(--ink3); }
.tra-hint { font-size: 13px; color: var(--ink3); margin: 6px 0 0; text-wrap: pretty; }
.tra-hint code, .tra-sec-info code { font-size: 12.5px; padding: 1px 5px; }
.tra-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.tra-grid-hp { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 12px; }
.tri .tra textarea.form-control { min-height: 96px; resize: vertical; }
.tri .tra input[type="file"].form-control { height: auto; padding: 8px 10px; }
.tra-preview { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--ink3); }
.tra-preview img { height: 40px; max-width: 200px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: var(--soft); }

.tra-pass { position: relative; }
.tri .tra-pass .form-control { padding-right: 92px; }
.tri .tra .tra-pass .tra-eye { position: absolute; right: 4px; top: 4px; height: 32px; padding: 0 10px; font-size: 13px; border: 0; background: none; box-shadow: none; color: var(--blue); }
.tri .tra .tra-pass .tra-eye:hover { background: var(--blue-s); }

.tra-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.tri .tra-choice > label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 500; font-size: 14px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.tri .tra-choice > label:hover { border-color: var(--blue-r); }
.tri .tra-choice > label:has(input:checked) { border-color: var(--blue); background: var(--blue-s); color: var(--blue-d); }
.tri .tra-choice input[type="radio"], .tri .tra-choice input[type="checkbox"] { margin: 0; }
.tri .tra-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-weight: 500; color: var(--ink); cursor: pointer; min-height: 24px; }
.tri .tra-check input { margin: 2px 0 0; flex: none; }
.tra-check small { display: block; color: var(--ink3); font-size: 13px; font-weight: 400; }

.tra-foot {
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px;
  padding: 14px 24px; border-top: 1px solid var(--line); background: var(--soft); border-radius: 0 0 12px 12px;
}
.tra-foot .tra-foot-note { margin-right: auto; font-size: 13px; color: var(--ink3); }
.tra-savebar {
  position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 12px 20px; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop);
}
.tra-savebar .tra-foot-note { margin-right: auto; font-size: 13.5px; color: var(--ink2); }

.tra-adv { border-top: 1px solid var(--line); }
.tra-adv > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 24px;
  font-weight: 600; font-size: 14.5px; color: var(--ink); transition: background .15s;
}
.tra-adv > summary::-webkit-details-marker { display: none; }
.tra-adv > summary:hover { background: var(--soft); }
.tra-adv > summary .tra-adv-t { flex: 1; min-width: 0; }
.tra-adv > summary small { display: block; font-weight: 400; font-size: 13px; color: var(--ink3); margin-top: 1px; }
.tra-adv > summary svg.ic { color: var(--ink3); transition: transform .2s var(--ease); }
.tra-adv[open] > summary svg.ic { transform: rotate(180deg); }
.tra-adv[open] > summary { border-bottom: 1px solid var(--line2); }
.tra-adv > .tra-sec { border-top: 1px solid var(--line2); }
.tra-adv > summary + .tra-sec { border-top: 0; }
.tra-card > .tra-adv:last-child, .tra-card > .tra-adv:last-child > summary { border-radius: 0 0 12px 12px; }

.tra-jump { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; scrollbar-width: none; }
.tra-jump::-webkit-scrollbar { display: none; }
.tra-jump a { display: flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 7px; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--ink2) !important; }
.tra-jump a:hover { background: var(--ground); color: var(--ink) !important; }

.tra-info { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--blue-s); color: var(--ink); font-size: 14px; border: 1px solid var(--blue-r); }
.tra-info svg.ic { color: var(--blue); margin-top: 1px; }
.tra-info p { margin: 0; text-wrap: pretty; }
.tra-info p + p { margin-top: 4px; }
.tra-info.warn { background: var(--amber-s); border-color: var(--line); }
.tra-info.warn svg.ic { color: var(--amber); }
.tra-pre { margin: 6px 0 0; padding: 10px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; color: var(--ink); white-space: pre-wrap; word-break: break-all; }

.tra-codes { margin-top: 8px; }
.tra-codes > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; color: var(--blue); }
.tra-codes > summary::-webkit-details-marker { display: none; }
.tra-codes > summary svg.ic { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.tra-codes[open] > summary svg.ic { transform: rotate(180deg); }
.tra-codes dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 6px 0 0; padding: 10px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.tra-codes dt { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tra-codes dd { color: var(--ink2); margin: 0; }

.tra-map { height: 66vh; min-height: 360px; border-radius: 0 0 12px 12px; overflow: hidden; background: var(--soft); z-index: 0; }
.tra-minimap { height: 220px; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; z-index: 0; }

.tra-pg { list-style: none; margin: 0; padding: 0; }
.tra-pg li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line2); min-height: 60px; }
.tra-pg li:first-child { border-top: 0; }
.tri .tra-pg .tra-check { flex: 1; align-items: center; min-width: 0; }
.tra-pg .tra-name { font-weight: 600; }

.tra-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tra-scroll { max-height: 420px; overflow: auto; }

.tri .tra-log > tbody > tr > td { vertical-align: top; height: auto; padding-top: 12px; padding-bottom: 12px; overflow: visible; }
.tra-log .tra-desc { min-width: 280px; max-width: 760px; white-space: normal; overflow-wrap: anywhere; color: var(--ink); }
.tra-nowrap { white-space: nowrap; }
.tra-ell { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tra-err { color: var(--red); margin-top: 4px; }
.tra-keep { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; margin: 0 0 0 auto; }
.tri .tra-keep .tra-keep-l { margin: 0; padding: 0; font-size: 13.5px; font-weight: 500; color: var(--ink2); white-space: nowrap; }
.tri .tra-keep .form-control { width: 76px; flex: none; text-align: center; }
.tra-keep span { font-size: 13.5px; color: var(--ink2); white-space: nowrap; }
.tra-keep .btn { flex: none; }

.tra-status:empty { display: none; }
.tri .tra-status .alert { margin: 0; }
.tra #historyTable_wrapper { padding: 14px 20px 18px; font-size: 14px; }
.tra .dataTables_wrapper .dataTables_filter input, .tra .dataTables_wrapper .dataTables_length select { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; margin-left: 6px; background: #fff; }
.tra .dataTables_wrapper .dataTables_length, .tra .dataTables_wrapper .dataTables_filter { margin-bottom: 12px; color: var(--ink2); }
.tri .tra table.dataTable { border-collapse: collapse; width: 100% !important; }
.tri .tra table.dataTable thead th { border-bottom: 1px solid var(--line) !important; }
.tri .tra table.dataTable.no-footer { border-bottom: 1px solid var(--line); }
.tra .dataTables_wrapper .dataTables_info { color: var(--ink3); font-size: 13px; padding-top: 14px; }
.tra .dataTables_wrapper .dataTables_paginate { padding-top: 10px; }
.tra .dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: 8px !important; border: 1px solid var(--line) !important; background: #fff !important; color: var(--ink2) !important; margin-left: 4px; padding: 5px 11px; }
.tra .dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--blue) !important; border-color: var(--blue) !important; color: #fff !important; }
.tra .dataTables_wrapper .dataTables_paginate .paginate_button.disabled { opacity: .5; }
.tra .dataTables_empty { color: var(--ink3); padding: 28px 12px !important; }
.tri .tra .select2-container { width: 100% !important; }

@media (max-width: 991px) {
  .tra-sec { grid-template-columns: 1fr; gap: 14px; }
  .tra-split { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .tra { gap: 16px; }
  .tra-th { padding: 14px 16px; }
  .tra-th > .tra-tt { flex-basis: 100%; }
  .tra-th > .tra-acts { width: 100%; }
  .tra-th > .tra-acts .btn { flex: 1; }
  .tra-tools { padding: 12px 16px; }
  .tra-search { max-width: none; flex-basis: 100%; }
  .tra-sec { padding: 20px 16px; }
  .tra-adv > summary { padding: 12px 16px; }
  .tra-body { padding: 16px; }
  .tra-grid2 { grid-template-columns: 1fr; gap: 20px; }
  .tra-foot { padding: 12px 16px; }
  .tra-foot .btn { flex: 1; }
  .tra-foot .tra-foot-note { flex-basis: 100%; }
  .tra-savebar { padding: 10px 12px; border-radius: 12px; }
  .tra-savebar .tra-foot-note { display: none; }
  .tra-savebar .btn { flex: 1; }
  .tri .tra .btn-sm, .tri .tra .btn-icon { height: 40px; min-width: 40px; }
  .tra-empty { padding: 36px 18px 40px; }
  .tra-pg li { padding: 12px 16px; flex-wrap: wrap; }
  .tra-keep { flex-wrap: wrap; margin: 0; width: 100%; }
  .tra-keep .btn { flex: 1 1 100%; }
  .tra-log .tra-desc { min-width: 0; text-align: left !important; display: block !important; }
  .tri .tra-stack > tbody > tr > td.tra-desc::before { display: block; margin-bottom: 2px; }
  .tra-ell { max-width: 60%; }
  .tra-map { height: 60vh; min-height: 320px; }

  
  .tri .tra-stack thead { display: none; }
  .tri .tra-stack, .tri .tra-stack tbody, .tri .tra-stack tr, .tri .tra-stack td { display: block; width: 100%; }
  .tri .tra-stack > tbody > tr { padding: 12px 16px; border-top: 1px solid var(--line); }
  .tri .tra-stack > tbody > tr:first-child { border-top: 0; }
  .tri .tra-stack > tbody > tr > td { height: auto; padding: 3px 0 !important; border: 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .tri .tra-stack > tbody > tr > td::before { content: attr(data-label); color: var(--ink3); font-size: 13px; font-weight: 500; text-align: left; flex: none; }
  .tri .tra-stack > tbody > tr > td.tra-lead { display: block; text-align: left; font-size: 15px; padding-bottom: 6px !important; }
  .tri .tra-stack > tbody > tr > td.tra-lead::before { content: none; }
  .tri .tra-stack > tbody > tr > td.tra-r { padding-top: 10px !important; justify-content: flex-start; }
  .tri .tra-stack > tbody > tr > td.tra-r::before { content: none; }
  .tri .tra-stack .tra-rowacts { width: 100%; }
  .tri .tra-stack .tra-rowacts .btn:not(.btn-icon) { flex: 1; }
  .tri .tra-stack > tbody > tr:hover > td { background: none; }
}

.tri .tra table.dataTable thead th { position: relative; padding-right: 26px; }
.tri .tra table.dataTable thead th:first-child { padding-left: 20px; }

.tp {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--ground);
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
  -webkit-text-size-adjust: 100%;
}
.tp *, .tp *::before, .tp *::after { box-sizing: border-box; }
.tp h1, .tp h2, .tp h3, .tp p { margin: 0; }
.tp h1, .tp h2, .tp h3 { font-weight: 650; letter-spacing: -.015em; text-wrap: balance; }
.tp p { text-wrap: pretty; }
.tp a { color: var(--blue); text-decoration: none; }
.tp a:hover { color: var(--blue-d); }
.tp ::selection { background: var(--blue-r); color: var(--ink); }
.tp :focus { outline: none; }
.tp :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.tp .tnum, .tp table { font-variant-numeric: tabular-nums; }
.tp svg.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tp .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; }

.tp-wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 16px; }
.tp-landing .tp-wrap { max-width: 1080px; }

.tp-top { background: #fff; border-bottom: 1px solid var(--line); }
.tp-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.tp-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; font-size: 16px; font-weight: 650; letter-spacing: -.01em; color: var(--ink) !important; }
.tp-brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-brand img { display: block; height: 32px; width: auto; max-width: 200px; object-fit: contain; }
.tp-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.tp-top-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink2) !important; white-space: nowrap; }
.tp-top-link:hover { background: var(--ground); color: var(--ink) !important; }

.tp-main { flex: 1 0 auto; padding: 24px 0 40px; }
.tp-stack { display: flex; flex-direction: column; gap: 16px; }
.tp-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 0; }
.tp-card-b { padding: 20px; }
.tp-card-h { padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.tp-title { font-size: 22px; line-height: 1.25; }
.tp-sub { margin-top: 4px; font-size: 14.5px; color: var(--ink3); }
.tp-sub b { color: var(--ink2); font-weight: 600; }
.tp-back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-size: 14.5px; font-weight: 500; color: var(--ink2) !important; }
.tp-back:hover { color: var(--ink) !important; }

.tp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink) !important; font: inherit; font-size: 15.5px; font-weight: 600; line-height: 1.2;
  cursor: pointer; text-align: center; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.tp-btn:hover { background: var(--soft); border-color: #cbd5e1; }
.tp-btn:active { transform: translateY(1px); }
.tp-btn-pri { background: var(--blue); border-color: var(--blue); color: #fff !important; box-shadow: 0 1px 2px rgba(37, 99, 235, .25); }
.tp-btn-pri:hover { background: var(--blue-d); border-color: var(--blue-d); }
.tp-btn-block { width: 100%; }
.tp-btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.tp-btn[disabled] { opacity: .55; cursor: default; }

.tp-field { display: flex; flex-direction: column; gap: 6px; }
.tp-field label { font-size: 14.5px; font-weight: 600; color: var(--ink2); }
.tp-input {
  width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid #cbd5e1; border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-size: 18px; font-weight: 600; letter-spacing: .02em;
  font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s;
}
.tp-input::placeholder { color: #94a3b8; font-weight: 500; }
.tp-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-r); }
.tp-input[aria-invalid="true"] { border-color: var(--red); }
.tp-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--red-s); }
.tp-help { font-size: 14px; color: var(--ink3); }
.tp-error { font-size: 14px; color: var(--red); font-weight: 500; }

.tp-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink2); }
.tp-note svg.ic { margin-top: 2px; color: var(--ink3); }
.tp-note b { color: var(--ink); }
.tp-note.is-warn { background: var(--amber-s); border-color: #fde68a; color: #78350f; }
.tp-note.is-warn svg.ic { color: var(--amber); }
.tp-note.is-ok { background: var(--green-s); border-color: #bbf7d0; color: #14532d; }
.tp-note.is-ok svg.ic { color: var(--green); }
.tp-note.is-bad { background: var(--red-s); border-color: #fecaca; color: #7f1d1d; }
.tp-note.is-bad svg.ic { color: var(--red); }

.tp-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--ground); color: var(--ink2); }
.tp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tp-pill.is-ok { background: var(--green-s); color: var(--green); }
.tp-pill.is-bad { background: var(--red-s); color: var(--red); }
.tp-pill.is-warn { background: var(--amber-s); color: var(--amber); }

.tp-lookup { max-width: 460px; margin: 0 auto; }
.tp-lookup .tp-card-b { display: flex; flex-direction: column; gap: 18px; padding: 24px 20px; }
.tp-lookup-foot { font-size: 14.5px; color: var(--ink3); text-align: center; }

.tp-due { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--amber-s); }
.tp-due p { font-size: 15px; color: #78350f; }
.tp-due b { color: var(--ink); }
.tp-bills { width: 100%; border-collapse: collapse; }
.tp-bills th { height: 40px; padding: 0 12px; text-align: left; font-size: 13px; font-weight: 500; color: var(--ink3); background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tp-bills td { padding: 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; font-size: 15px; }
.tp-bills tr:last-child td { border-bottom: 0; }
.tp-bills th:first-child, .tp-bills td:first-child { padding-left: 20px; }
.tp-bills th:last-child, .tp-bills td:last-child { padding-right: 20px; text-align: right; }
.tp-bills .tp-per { font-weight: 600; color: var(--ink); }
.tp-bills .tp-amt { white-space: nowrap; font-weight: 600; }
.tp-bills a.tp-open { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.tp-bills tr.is-open td { background: var(--amber-s); }
.tp-empty { padding: 32px 20px; text-align: center; }
.tp-empty h2 { font-size: 17px; }
.tp-empty p { margin-top: 6px; font-size: 14.5px; color: var(--ink3); }

.tp-amount { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-bottom: 1px solid var(--line); }
.tp-amount-k { font-size: 14px; font-weight: 500; color: var(--ink3); }
.tp-amount-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tp-amount-v { font-size: clamp(30px, 9vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; color: var(--ink); }
.tp-copy.is-done { border-color: #bbf7d0; background: var(--green-s); color: var(--green) !important; }

.tp-qris { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px; border-bottom: 1px solid var(--line); text-align: center; }
.tp-qris-img { display: block; width: 100%; max-width: 320px; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.tp-qris-name { font-size: 15px; font-weight: 600; }
.tp-qris-help { font-size: 14px; color: var(--ink3); max-width: 40ch; }
.tp-qris-note { font-size: 14px; color: var(--ink2); max-width: 52ch; white-space: pre-line; }

.tp-list { margin: 0; padding: 0; list-style: none; }
.tp-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line2); font-size: 15px; }
.tp-list li:last-child { border-bottom: 0; }
.tp-list li > span:first-child { color: var(--ink2); min-width: 0; overflow-wrap: anywhere; }
.tp-list li > span:last-child { font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tp-list li.is-total { border-top: 1px solid var(--line); border-bottom: 0; margin-top: 2px; padding-top: 12px; }
.tp-list li.is-total > span { color: var(--ink); font-weight: 700; }
.tp-sec { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.tp-sec:last-child { border-bottom: 0; }
.tp-sec h2 { font-size: 15px; margin-bottom: 4px; }
.tp-sec .tp-list + .tp-note { margin-top: 8px; }
.tp-paid { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.tp-paid form { margin: 0; }

.tp-receipt-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tp-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.tp-hero { flex: 1 0 auto; display: flex; align-items: center; padding: 40px 0 56px; }
.tp-hero-in { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.tp-hero h1 { font-size: clamp(32px, 8.5vw, 52px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; max-width: 14ch; }
.tp-hero h1 span { color: var(--blue); }
.tp-lead { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--ink2); max-width: 46ch; }
.tp-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.tp-cta .tp-btn { min-height: 52px; font-size: 16px; }
.tp-cta .tp-btn svg.ic { width: 20px; height: 20px; }
.tp-art { position: relative; width: 100%; max-width: 240px; margin: 0 auto; aspect-ratio: 1; }
.tp-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tp-art .bg { fill: var(--blue-s); stroke: var(--blue-r); }
.tp-art .arc { fill: none; stroke-linecap: round; stroke-width: 22px; }
.tp-art .a3 { stroke: var(--blue-r); }
.tp-art .a2 { stroke: var(--blue); stroke-opacity: .5; }
.tp-art .a1 { stroke: var(--blue); }
.tp-art .dot { fill: var(--blue-d); }
@media (prefers-reduced-motion: no-preference) {
  .tp-art .arc, .tp-art .dot { opacity: 0; animation: tp-arc .9s var(--ease) forwards; }
  .tp-art .dot { animation-delay: .05s; }
  .tp-art .a1 { animation-delay: .2s; }
  .tp-art .a2 { animation-delay: .35s; }
  .tp-art .a3 { animation-delay: .5s; }
}
@keyframes tp-arc { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tp-foot { flex: none; border-top: 1px solid var(--line); background: #fff; }
.tp-foot-in { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; padding-bottom: 18px; font-size: 13.5px; color: var(--ink3); }
.tp-foot-in b { color: var(--ink2); font-weight: 600; }
.tp-foot-in a { color: var(--ink3) !important; }
.tp-foot-in a:hover { color: var(--blue) !important; }
.tp-foot-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; }

@media (min-width: 640px) {
  .tp-main { padding: 40px 0 56px; }
  .tp-wrap { padding: 0 24px; }
  .tp-card-b, .tp-amount, .tp-qris, .tp-paid { padding: 24px; }
  .tp-card-h { padding: 24px 24px 18px; }
  .tp-title { font-size: 24px; }
  .tp-due { flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 24px; }
  .tp-sec { padding: 18px 24px; }
  .tp-bills th:first-child, .tp-bills td:first-child { padding-left: 24px; }
  .tp-bills th:last-child, .tp-bills td:last-child { padding-right: 24px; }
  .tp-cta { flex-direction: row; }
  .tp-foot-in { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 900px) {
  .tp-hero { padding: 64px 0 88px; }
  .tp-hero-in { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .tp-art { max-width: 420px; }
  .tp-lead { font-size: 18px; }
}

@media (max-width: 479px) {
  .tp-bills thead { display: none; }
  .tp-bills, .tp-bills tbody { display: block; }
  .tp-bills tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line2); }
  .tp-bills tr:last-child { border-bottom: 0; }
  .tp-bills tr.is-open { background: var(--amber-s); }
  .tp-bills td, .tp-bills td:first-child, .tp-bills td:last-child { display: block; padding: 0; border: 0; background: none !important; text-align: left; }
  .tp-bills td.c-amt, .tp-bills td.c-open { text-align: right; }
  .tp-bills td.c-open { grid-column: 2; align-self: center; }
  .tp-bills td.c-per { grid-column: 1; }
  .tp-bills td.c-amt { grid-column: 1; text-align: left; color: var(--ink2); }
  .tp-bills td.c-st { grid-column: 1; }
  .tp-bills td.c-open { grid-row: 1 / span 3; }
}

@media print {
  .tp { background: #fff; }
  .tp-top, .tp-foot, .tp-noprint, .tp-back { display: none !important; }
  .tp-main { padding: 0; }
  .tp-card { box-shadow: none; border-color: #cbd5e1; }
  .tp-wrap { max-width: none; padding: 0; }
}

.tp-hero-copy .tp-lead + .tp-lead { margin-top: 12px; }
.tp-nowrap { white-space: nowrap; }
