:root { --bs-body-font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
body { font-family: var(--bs-body-font-family); }
a { text-decoration: none; }
[hidden], .hidden { display: none !important; }
.navbar-header { display: flex; align-items: center; width: 100%; min-height: 60px; }
.navbar-top-links { display: flex; align-items: center; margin: 0; padding-left: 0; list-style: none; }
.navbar-top-links.navbar-right { margin-left: auto; }
.navbar-top-links > li > a { display: block; padding: 0 15px; line-height: 60px; }
.navbar-top-links .profile-pic img { margin-right: 8px; }
.navbar-toggle { display: none; }
.navbar-default.navbar-static-top { padding: 0; }
.navbar-collapse { flex-basis: auto; flex-grow: 0; }
.sidebar-nav { overflow: auto; max-height: calc(100dvh - 60px); scrollbar-width: thin; }
.sidebar .nav { display: block; }
#side-menu > li > ul { padding-left: 0; }
.dropdown-user > li > a { display: block; padding: 8px 20px; line-height: 1.5; color: inherit; }
.dropdown-user .divider { border-top: 1px solid #e4e7ea; margin-block: 6px; }
.dropdown-user.show { display: block; }
.panel { margin-bottom: 20px; background: #fff; border: 1px solid #e4e7ea; border-radius: 4px; }
.panel-heading { padding: 15px 20px; border-bottom: 1px solid #e4e7ea; }
.panel-body { padding: 20px; }
.panel-footer { padding: 12px 20px; border-top: 1px solid #e4e7ea; }
.form-group { margin-bottom: 18px; }
.form-horizontal .form-group { display: flex; flex-wrap: wrap; margin-inline: -12px; }
.form-horizontal .form-group > [class*="col-"] { padding-inline: 12px; }
.form-horizontal label.control-label { padding-top: 8px; text-align: right; }
.form-control { min-height: 38px; }
.form-control[type="file"] { padding: 6px 12px; }
.input-group .form-control { min-width: 0; }
.input-group > img { object-fit: contain; max-height: 40px; }
.input-group-addon { display: flex; align-items: center; padding: 6px 12px; border: 1px solid #e4e7ea; background: #f8f9fa; }
.btn-block { display: block; width: 100%; }
.btn-default { border-color: #ccc; background: #fff; color: #333; }
.btn-default:hover { background: #eee; }
.btn-outline { background: transparent; }
.label { display: inline-block; border-radius: 4px; padding: .25em .55em; font-size: 85%; }
.pull-right { float: right !important; }
.pull-left { float: left !important; }
.img-circle { border-radius: 50%; }
.close { float: right; border: 0; padding: 0; background: transparent; line-height: 1; font-size: 22px; color: inherit; }
.table-responsive { width: 100%; overflow-x: auto; }
.table-responsive > table { min-width: 600px; }
.report-table td, .report-table th { white-space: nowrap; }
.select2-container { max-width: 100%; }
.select2-container .select2-selection { min-height: 38px; }
.flatpickr-calendar, .select2-container--open { z-index: 19891020; }
.login-register { min-height: 100dvh; }
.login-box { width: min(420px, 100%); }
.login-box.login-sidebar { width: min(500px, 100%); }
.login-box .form-group { display: block; }
.login-box .white-box { padding: 30px; }
.login-box [class*="col-"] { width: 100%; }
.login-box .text-center.db { display: block; }
.layui-layer-iframe iframe { background: white; }
@media (min-width: 768px) {
    .col-xs-12 { flex: 0 0 auto; width: 100%; }
}
@media (max-width: 767.98px) {
    .hidden-xs { display: none !important; }
    .navbar-toggle { display: block; padding: 15px; }
    .top-left-part { width: auto !important; }
    .top-left-part .logo { padding-inline: 4px; }
    .navbar-top-links > li > a { padding-inline: 9px; }
    .sidebar { width: 100% !important; }
    .sidebar-nav { background: white; max-height: calc(100dvh - 60px); }
    .sidebar-nav.collapse:not(.show) { display: none !important; }
    .sidebar-nav.show { display: block !important; }
    #page-wrapper, .content-wrapper #page-wrapper { margin-left: 0 !important; }
    #page-wrapper > .container-fluid { padding-inline: 12px; }
    .form-horizontal label.control-label { text-align: left; }
    .form-horizontal .form-group > [class*="col-"] { width: 100%; }
    .panel-body { padding: 14px; }
    .login-register { position: relative; }
    .login-sidebar { position: relative !important; }
    .col-xs-12 { flex: 0 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.report-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; margin-right: 8px; border: 1px solid #d5dde8; border-radius: 4px; color: #244980; background: white; }
.report-details dl { display: grid; grid-template-columns: minmax(95px, auto) 1fr; gap: 7px 16px; margin: 0; padding: 10px; }
.report-details dd { margin: 0; overflow-wrap: anywhere; white-space: normal; }
@media (min-width: 768px) and (max-width: 991.98px) { .hidden-sm { display: none !important; } }
@media (min-width: 992px) and (max-width: 1199.98px) { .hidden-md { display: none !important; } }
@media (min-width: 1200px) { .hidden-lg { display: none !important; } }
.navbar-default.navbar-static-top { z-index: 1030; }
.right-sidebar { z-index: 1040; }
.top-left-part { position: relative; flex: 0 0 220px; height: 60px; }
.top-left-part .logo { display: inline-flex; align-items: center; height: 60px; gap: 8px; white-space: nowrap; }
@media (max-width: 767.98px) {
    .top-left-part { flex: 1 1 auto; min-width: 0; }
    .top-left-part .logo { padding-inline: 4px; }
}
.form-group .select2-container { width: 100% !important; }
@media (max-width: 767.98px) {
    .sidebar { height: auto !important; max-height: calc(100dvh - 60px); }
}

/* Shared TRC identity and accessible workflow surfaces. */
:root { --trc-navy:#132b4a; --trc-orange:#ee7b2d; }
.navbar-header,.top-left-part { background:var(--trc-navy) !important; }
.navbar-header .logo,.navbar-top-links>li>a { color:#fff !important; }
.panel-success>.panel-heading { color:var(--trc-navy); background:#f1f5fa; border-color:#d9e2ed; }
.btn-info { background:var(--trc-navy); border-color:var(--trc-navy); color:#fff; }
.btn-info:hover,.btn-info:focus { background:#21456f; border-color:#21456f; color:#fff; }
#side-menu a.active { border-left:3px solid var(--trc-orange); }
.trc-avatar { width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#fff3e9;color:var(--trc-navy);font-weight:700; }
.login-register { background:linear-gradient(135deg,#10243e 0%,#21476d 65%,#173553 100%) !important;display:flex;align-items:center;justify-content:center;padding:28px 12px; }
.login-box { margin:0 auto !important; }.login-box .white-box { border-radius:16px;border-top:4px solid var(--trc-orange);box-shadow:0 18px 55px #08142555; }
.login-field-label { display:block;font-weight:600;margin-bottom:6px; }
.captcha-refresh { padding:0;border:1px solid #d2dae4;border-radius:4px;background:#fff;cursor:pointer;flex-shrink:0; }
.captcha-refresh img { max-width:120px;height:38px; }
:focus-visible { outline:3px solid #dd721f;outline-offset:3px; }
.trc-account-links { display:flex;flex-wrap:wrap;gap:10px 16px;padding-top:16px;margin-top:18px;border-top:1px solid #dce3ed; }
.trc-support,.trc-notice,.trc-account-summary { padding:18px;border:1px solid #d9e2ed;border-left:4px solid var(--trc-orange);border-radius:8px;background:#f6f8fc;margin-bottom:20px;color:#273b53;overflow-wrap:anywhere; }
.trc-support h3,.trc-notice h3 { font-size:18px;margin:0 0 12px; }.trc-support a { display:block;margin:8px 0; }.trc-support p:last-child,.trc-notice p:last-child { margin-bottom:0; }
.trc-notice ol { padding-left:22px; }.trc-notice li { margin-bottom:8px; }.trc-notice .trc-support { margin:18px 0 0;background:#fff; }
.trc-account-summary { position:sticky;top:0;z-index:2;background:#fff8ed; }.trc-account-summary p { margin:8px 0 0; }
.trc-close { border:0;background:transparent;color:inherit;float:right;font-size:24px; }
.trc-scroll-hint { color:#596b7e;font-size:13px;margin:0 0 8px; }
.table-responsive { position:relative;isolation:isolate;overscroll-behavior-x:contain; }
.trc-sticky-name { position:sticky;left:0;z-index:1;background:#fff !important;min-width:130px;max-width:190px;white-space:normal !important;overflow-wrap:anywhere;box-shadow:2px 0 4px #10243e12; }
.trc-sticky-actions { position:sticky;right:0;z-index:2;background:#fff !important;min-width:85px;box-shadow:-2px 0 4px #10243e12; }
.table-responsive th.trc-sticky-name,.table-responsive th.trc-sticky-actions { background:#f2f5f9 !important;z-index:3; }
.pagination { display:flex;flex-wrap:wrap;gap:2px;max-width:100%; }.pagination-summary>span { display:block;padding:7px 10px;color:#596b7e;background:#f6f8fc;border-radius:4px; }
.panel-footer { display:flex;flex-wrap:wrap;gap:8px;align-items:center; }.panel-footer>.offset-md-2 { display:flex;gap:8px;flex-wrap:wrap; }.trc-back-link { margin-left:auto; }
.trc-error { background:#f1f5fa;color:var(--trc-navy);font-family:system-ui,sans-serif;padding:8vh 20px; }.trc-error main { max-width:680px;margin:auto;background:white;padding:36px;border-radius:16px; }.trc-error nav { display:flex;flex-wrap:wrap;gap:18px; }.trc-error a { color:#244980; }
@media(max-width:767.98px) { .login-register { align-items:flex-start; }.login-box .white-box { padding:22px 18px; }.trc-sticky-name { min-width:100px;max-width:120px; }.trc-sticky-actions { min-width:72px; }.trc-support,.trc-notice,.trc-account-summary { padding:14px; }.bg-title .breadcrumb { float:none !important; }.panel-heading { padding:12px 14px; } }

.login-box.login-sidebar { position:relative !important;inset:auto !important;min-height:0 !important; }

.input-group>.login-field-label { flex:0 0 100%;width:100%;margin-bottom:8px; }

.navbar-toggle::before { content:"☰";font-size:24px;line-height:1;color:#fff; }.navbar-toggle>i{display:none}.open-close::before{content:"⇤";font-size:24px;color:#fff}.open-close>i{display:none}.right-side-toggle>a::before{content:"⚙";font-size:23px;color:#fff}.right-side-toggle>a>i{display:none}
.input-group:has(input[rel-action="datepicker"]) { gap:6px; }.input-group:has(input[rel-action="datepicker"]) .form-control { flex:1 1 130px;width:130px;min-width:0; }

/* Standalone Layer has no Layui icon font; keep dismissal visible and operable. */
.layui-layer-setwin { top:0;right:0; }
.layui-layer-setwin .layui-layer-close { display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;position:relative;font-family:Arial,sans-serif; }
.layui-layer-setwin .layui-layer-close::before { content:"×";font-size:26px;line-height:1;color:#273b53; }
.layui-layer-title { padding-right:52px; }
.trc-form-feedback { margin:16px;overflow-wrap:anywhere; }
.trc-form-feedback p:last-child,.trc-form-feedback ul:last-child { margin-bottom:0; }
.trc-field-error { margin:6px 0 0;font-size:14px; }
[aria-invalid="true"] { border-color:#b52b36; }
form[aria-busy="true"] button[type="submit"] { cursor:wait; }
