/* TR Inet Panel theme: restyles the AdminLTE 2 + Bootstrap 3 admin markup. */
: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);
}

/* ---------- base ---------- */
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; }

/* modern-AdminLTE forces Nunito 14px + min-height:100% on html, h1-h6, section, aside, footer,
   inputs, buttons ... with !important and an id selector (:not(#filterNavigateMenu)).
   The :not(#\#) below lifts our specificity above it. min-height:100% made the top bar h1 63px
   tall and stretched h2 inside grid cards (Beranda right column). */
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; }
/* same upstream rule stretched form controls (and radios) to their wrapper height */
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) {
  /* 16px stops iOS Safari from zooming the page when a field gets focus */
  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; }

/* legacy helpers that templates still use (moved here from the old base stylesheet) */
.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); } }

/* ---------- shell: sidebar ---------- */
.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); }

/* ---------- shell: top bar ---------- */
.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; }

/* ---------- shell: content ---------- */
.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; }

/* collapse (desktop) + drawer (mobile) */
@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); }
  /* AdminLTE pushes the page 230px right when the drawer opens; we overlay instead */
  .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; }
  /* 15px matches the -15px of bootstrap .row so nothing pokes out sideways */
  .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; }

/* ---------- cards: box + panel ---------- */
.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;
}
/* AdminLTE/modern: coloured 3px top borders, 1px radius !important, solid-box coloured frames */
.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); }
/* cron status: a small dot before the heading text, no coloured edge */
.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; }

/* ---------- buttons ---------- */
/* One button system. modern-AdminLTE paints a.btn-* / button.btn-* teal, cyan, pink and yellow with
   !important (specificity 0,1,1); body.tri .btn-* (0,2,1) + !important wins everywhere.
   primary = blue, default/info = white secondary, success = green, danger = red outline,
   warning = amber outline, link = text only. */
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%; }
/* buttons that sit next to 40px fields in forms and filter bars match their height */
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; }
  /* small buttons keep their look but get a 40px touch area */
  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; }

/* ---------- forms ---------- */
.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; }
/* several selects sharing one group: "Urutkan | Nama pengguna | Naik" */
.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; }

/* toolbar of filters above a list (md-whiteframe-z1 + col-lg-*): even gaps, left aligned */
.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; }
}

/* "Tampilkan 10 data" length control (custom .page-item + DataTables) */
.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; }
/* inline forms: group + trailing button stay on one line, wrap as a unit on narrow screens */
.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; }
/* has-error on a whole input-group is used as "danger zone" decoration upstream, not as a validation error */
.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); }

/* select2 (bootstrap theme) */
.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); }

/* ---------- tables ---------- */
.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; }
/* upstream puts style="overflow-x: scroll" on long text cells, which draws a scrollbar in every row */
.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; }

/* ---------- labels, badges, alerts ---------- */
.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; }
/* modern-AdminLTE: white text, gradients, no border, 1px radius, drop shadow, all !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; }

/* ---------- nav tabs, pills, pagination ---------- */
.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; }

/* ---------- dropdowns, modals, tooltips ---------- */
.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; }
/* modern-AdminLTE coloured modal bodies */
.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; }

/* ---------- sweetalert2 ---------- */
.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; }

/* ---------- login ---------- */
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; }
}

/* ---------- shell: own navigation (flat, grouped by daily job) ---------- */
.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; }

/* ---------- sub page tabs at the top of the content ---------- */
.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; }
}

/* ---------- busy state: a confirmed action that waits on the server/router ---------- */
.tri-busy-btn { pointer-events: none; opacity: .75; }
.tri-busy-btn .loading { margin-right: 6px; }
.tri-busy {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(15, 23, 42, .32); opacity: 0; transition: opacity .2s var(--ease);
}
.tri-busy.is-on { opacity: 1; }
.tri-busy-card {
  width: 100%; max-width: 360px; padding: 22px 22px 20px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-pop); color: var(--ink);
}
.tri-busy-head { display: flex; align-items: center; gap: 12px; }
.tri-busy-head .loading { width: 22px; height: 22px; border-width: 2.5px; color: var(--blue); flex: none; }
.tri-busy-title { font-size: 15px; font-weight: 650; line-height: 1.35; }
.tri-busy-note { margin: 8px 0 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.tri-busy-bar { position: relative; height: 4px; border-radius: 4px; background: var(--blue-r); overflow: hidden; }
.tri-busy-bar::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
  border-radius: 4px; background: var(--blue); animation: tri-busy-slide 1.2s var(--ease) infinite;
}
@keyframes tri-busy-slide { to { left: 100%; } }
.tri-busy-time { margin-top: 10px; font-size: 12.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }
