:root {
  --eg-bg: #f6f8fb;
  --eg-surface: #ffffff;
  --eg-surface-muted: #f9fafb;
  --eg-line: #e5e8ef;
  --eg-line-strong: #cfd6e4;
  --eg-text: #151922;
  --eg-muted: #697386;
  --eg-primary: #2563eb;
  --eg-primary-rgb: 37, 99, 235;
  --eg-primary-strong: #1d4ed8;
  --eg-primary-soft: #eaf1ff;
  --eg-brand-shadow: rgba(37,99,235,.24);
  --eg-success: #0f9f6e;
  --eg-warning: #f59e0b;
  --eg-danger: #e5484d;
  --eg-radius: 8px;
  --eg-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  --eg-fast: 160ms ease;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { background: var(--eg-bg); color: var(--eg-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif; letter-spacing: 0; }
a { color: inherit; }
a:hover { color: inherit; text-decoration: none; }
body.l2tms-company-1000 {
  --eg-primary: #2563eb;
  --eg-primary-rgb: 37, 99, 235;
  --eg-primary-strong: #1d4ed8;
  --eg-primary-soft: #eaf1ff;
  --eg-brand-shadow: rgba(37,99,235,.24);
}

body.l2tms-company-2000 {
  --eg-primary: #6B2FB3;
  --eg-primary-rgb: 107, 47, 179;
  --eg-primary-strong: #55248f;
  --eg-primary-soft: #f2eafd;
  --eg-brand-shadow: rgba(107,47,179,.26);
}
.l2tms-login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, rgba(var(--eg-primary-rgb),.10), transparent 36%), linear-gradient(315deg, rgba(15,159,110,.10), transparent 34%), var(--eg-bg); padding: 32px; }
.l2tms-login-card { width: min(980px, 100%); min-height: 560px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; background: var(--eg-surface); border: 1px solid var(--eg-line); border-radius: var(--eg-radius); box-shadow: var(--eg-shadow); }
.l2tms-login-panel { padding: 52px 48px 50px; display: flex; flex-direction: column; justify-content: center; }
.l2tms-login-brand { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 38px; font-weight: 900; font-size: 42px; line-height: 1; color: var(--eg-text); }
.l2tms-brand-mark { width: 72px; height: 72px; border-radius: 16px; display: inline-grid; place-items: center; color: #fff; background: var(--eg-primary); box-shadow: 0 16px 34px var(--eg-brand-shadow); font-size: 30px; }
.l2tms-login-subtitle { margin: 0 0 30px; color: var(--eg-muted); font-size: 15px; }
.l2tms-login-form { display: grid; gap: 14px; }
.l2tms-field-label { margin: 0 0 7px; color: #3b4351; font-size: 13px; font-weight: 700; }
.l2tms-input-wrap { position: relative; }
.l2tms-input-wrap i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #8590a2; }
.l2tms-login-form .form-control { height: 48px; padding-left: 44px; border-radius: var(--eg-radius); border: 1px solid var(--eg-line-strong); color: var(--eg-text); transition: border-color var(--eg-fast), box-shadow var(--eg-fast), background var(--eg-fast); }
.l2tms-login-form .form-control:focus { border-color: var(--eg-primary); box-shadow: 0 0 0 4px rgba(var(--eg-primary-rgb),.12); }
.l2tms-login-actions { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 8px; color: var(--eg-muted); font-size: 13px; }
.l2tms-login-button { height: 50px; border: 0; border-radius: var(--eg-radius); color: #fff; background: var(--eg-primary); font-weight: 800; box-shadow: 0 12px 24px rgba(var(--eg-primary-rgb),.20); transition: transform var(--eg-fast), background var(--eg-fast), box-shadow var(--eg-fast); }
.l2tms-login-button:hover { background: var(--eg-primary-strong); transform: translateY(-1px); box-shadow: 0 16px 30px rgba(var(--eg-primary-rgb),.26); }
.l2tms-login-visual { position: relative; padding: 38px; background: #101827; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.l2tms-login-visual:before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(var(--eg-primary-rgb),.62), transparent 42%), linear-gradient(315deg, rgba(15,159,110,.55), transparent 40%); }
.l2tms-login-visual > * { position: relative; }
.l2tms-login-metric { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.l2tms-login-metric div { border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 16px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.l2tms-login-metric strong { display: block; font-size: 24px; }
.l2tms-login-metric span { display: block; margin-top: 5px; color: rgba(255,255,255,.74); font-size: 13px; }
.content-wrapper { background: var(--eg-bg); }
.wrapper.l2tms-shell .content-wrapper, body.l2tms-app .content-wrapper { min-height: 100vh; }
.main-sidebar { background: #101827 !important; box-shadow: 10px 0 28px rgba(15,23,42,.08); }
.brand-link { border-bottom: 1px solid rgba(255,255,255,.10) !important; background: var(--eg-primary) !important; color: #fff !important; font-weight: 800; letter-spacing: 0; box-shadow: 0 10px 24px rgba(var(--eg-primary-rgb),.22); transition: background var(--eg-fast), box-shadow var(--eg-fast); }
.nav-sidebar .nav-link { border-radius: 8px; margin-bottom: 4px; transition: background var(--eg-fast), color var(--eg-fast), transform var(--eg-fast); }
.nav-sidebar .nav-link:hover, .nav-sidebar .nav-link.active { background: rgba(255,255,255,.11) !important; color: #fff !important; transform: translateX(2px); }
.nav-sidebar .nav-icon { color: #9db2d7; }
.l2tms-home { padding: 28px; }
.l2tms-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.l2tms-kicker { margin: 0 0 6px; color: var(--eg-primary); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.l2tms-page-title { margin: 0; font-size: 28px; font-weight: 850; line-height: 1.25; }
.l2tms-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--eg-line); border-radius: 999px; background: var(--eg-surface); color: var(--eg-muted); font-weight: 700; font-size: 13px; }
.l2tms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.l2tms-card, .card { border: 1px solid var(--eg-line) !important; border-radius: var(--eg-radius) !important; box-shadow: none !important; background: var(--eg-surface); }
.l2tms-card { padding: 20px; transition: transform var(--eg-fast), box-shadow var(--eg-fast), border-color var(--eg-fast); }
.l2tms-card:hover { transform: translateY(-2px); border-color: #b9c8e8 !important; box-shadow: var(--eg-shadow) !important; }
.l2tms-card-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: var(--eg-primary); background: var(--eg-primary-soft); margin-bottom: 16px; }
.l2tms-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.l2tms-card p { margin: 0 0 18px; color: var(--eg-muted); font-size: 14px; }
.content { padding: 12px 20px; }
.content-header { padding: 20px 20px 4px; }
.title-row, .search-form-row, .search-set { align-items: center; }
.title-row { margin-bottom: 8px; }
.title-span { font-size: 19px; font-weight: 850; color: var(--eg-text); }
.search-form-row { border: 1px solid var(--eg-line); border-radius: var(--eg-radius); background: var(--eg-surface); padding: 14px 10px 8px; }
.col-form-label-sm, .col-form-label { color: #3b4351; font-weight: 750; }
.form-control, .form-select, select.form-control { border: 1px solid var(--eg-line-strong) !important; border-radius: 7px !important; color: var(--eg-text); transition: border-color var(--eg-fast), box-shadow var(--eg-fast), background var(--eg-fast); }
.form-control:focus, .form-select:focus, select.form-control:focus { border-color: var(--eg-primary) !important; box-shadow: 0 0 0 3px rgba(var(--eg-primary-rgb),.11) !important; }
.l2tms-field-required > span:first-child,
.l2tms-field-required > label:first-child,
.l2tms-field-required .l2tms-field-label {
  color: #b4232a !important;
}
.l2tms-field-required > span:first-child:after,
.l2tms-field-required > label:first-child:after,
.l2tms-field-required .l2tms-field-label:after {
  content: " *";
  color: var(--eg-danger);
  font-weight: 900;
}
.l2tms-field-required .form-control,
.l2tms-field-required .form-select,
.l2tms-field-required select.form-control,
.l2tms-field-required input.form-control,
.l2tms-field-required textarea.form-control {
  border-color: rgba(229, 72, 77, .42) !important;
  background: #fffafa !important;
}
.l2tms-field-required .radio-center,
.l2tms-field-required .l2tms-search-pill span,
.l2tms-field-required .l2tms-role-pill span {
  border-color: rgba(229, 72, 77, .30) !important;
}
.l2tms-field-required.l2tms-user-grid-panel,
.l2tms-field-required.l2tms-user-detail-panel {
  border-color: rgba(229, 72, 77, .34) !important;
}
.l2tms-field-invalid > span,
.l2tms-field-invalid > label,
.l2tms-field-invalid .l2tms-field-label {
  color: var(--eg-danger) !important;
}
.l2tms-field-invalid .form-control,
.l2tms-field-invalid .form-select,
.l2tms-field-invalid select.form-control,
.l2tms-field-invalid input.form-control,
.l2tms-field-invalid textarea.form-control {
  border-color: var(--eg-danger) !important;
  background: #fff6f6 !important;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .10) !important;
}
td.l2tms-field-invalid {
  background: #fff6f6;
}
td.l2tms-field-invalid .form-control {
  border-color: var(--eg-danger) !important;
  background: #fffafa !important;
}
.l2tms-user-grid-panel.l2tms-field-invalid,
.l2tms-user-detail-panel.l2tms-field-invalid {
  border-color: rgba(229, 72, 77, .65) !important;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .08);
}
.l2tms-field-invalid .radio-center,
.l2tms-field-invalid .l2tms-search-pill span,
.l2tms-field-invalid .l2tms-role-pill span {
  border-color: rgba(229, 72, 77, .42) !important;
  background: #fff6f6 !important;
}
.l2tms-field-error {
  display: block;
  margin-top: 2px;
  color: var(--eg-danger);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}
.btn, .btn-normal, button.btn-normal { min-height: 32px; border-radius: 7px !important; border: 1px solid var(--eg-line-strong); background: var(--eg-surface); color: var(--eg-text); padding: 6px 12px; font-weight: 750; transition: transform var(--eg-fast), background var(--eg-fast), border-color var(--eg-fast), box-shadow var(--eg-fast); }
.btn:hover, .btn-normal:hover, button.btn-normal:hover { transform: translateY(-1px); border-color: #b8c7df; box-shadow: 0 8px 18px rgba(15,23,42,.08); }
.btn-primary, .btn.btn-primary { border-color: var(--eg-primary) !important; background: var(--eg-primary) !important; color: #fff !important; }
.btn-right { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.card-header { background: var(--eg-surface) !important; border-bottom: 1px solid var(--eg-line) !important; }
.card-body { padding: 16px !important; }
.nav-tabs { border-bottom: 1px solid var(--eg-line); }
.nav-tabs .nav-link { border-radius: 7px 7px 0 0; font-weight: 800; }
.nav-tabs .nav-link.active { color: var(--eg-primary) !important; border-color: var(--eg-line) var(--eg-line) var(--eg-surface) !important; }
#mainCnt { color: var(--eg-muted); font-weight: 800; }
#mainGrid, #detailGrid { border: 1px solid var(--eg-line); border-radius: var(--eg-radius); overflow: hidden; background: var(--eg-surface); }
#detailFormBox .card { background: var(--eg-surface-muted); }
.radio-btn-center { display: flex; align-items: center; gap: 12px; }
.radio-center { margin: 0; display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #3b4351; }
@media (max-width: 900px) { .l2tms-login-card { grid-template-columns: 1fr; } .l2tms-login-visual { display: none; } .l2tms-login-panel { padding: 36px 24px; } .l2tms-grid { grid-template-columns: 1fr; } .l2tms-topbar { align-items: flex-start; flex-direction: column; } }
.l2tms-login-card-single { width: min(500px, 100%); min-height: auto; grid-template-columns: 1fr; }
.l2tms-login-compact .l2tms-login-panel { padding: 52px 48px 50px; }
.l2tms-login-form select.form-control { appearance: none; padding-left: 44px; }
.l2tms-grid-single { grid-template-columns: minmax(280px, 420px); }
.l2tms-home-focused { max-width: 980px; }
@media (max-width: 900px) { .l2tms-login-compact .l2tms-login-panel { padding: 40px 24px; } .l2tms-login-brand { gap: 14px; margin-bottom: 30px; font-size: 36px; } .l2tms-brand-mark { width: 64px; height: 64px; font-size: 26px; } }

.l2tms-sidebar-nav { padding: 0 8px; }
.l2tms-sidebar-search { position: relative; z-index: 20; padding: 0 8px 10px; }
.l2tms-sidebar-search-field { position: relative; display: flex; align-items: center; min-height: 36px; border: 1px solid rgba(255,255,255,.10); border-radius: 8px; background: rgba(255,255,255,.06); transition: border-color var(--eg-fast), background var(--eg-fast), box-shadow var(--eg-fast); }
.l2tms-sidebar-search-field:focus-within { border-color: rgba(var(--eg-primary-rgb), .72); background: rgba(255,255,255,.09); box-shadow: 0 0 0 3px rgba(var(--eg-primary-rgb), .14); }
.l2tms-sidebar-search-field > i { flex: 0 0 36px; text-align: center; color: #90a4c7; font-size: 13px; }
.l2tms-sidebar-search-input { min-width: 0; flex: 1; height: 36px; border: 0; outline: 0; background: transparent; color: #eef5ff; font-size: 13px; font-weight: 750; }
.l2tms-sidebar-search-input::placeholder { color: #7f92b4; }
.l2tms-sidebar-search-clear { width: 30px; height: 30px; margin-right: 3px; border: 0; border-radius: 8px; display: inline-grid; place-items: center; color: #90a4c7; background: transparent; cursor: pointer; transition: background var(--eg-fast), color var(--eg-fast); }
.l2tms-sidebar-search-clear:hover { color: #fff; background: rgba(255,255,255,.10); }
.l2tms-sidebar-search-results { position: absolute; top: 42px; left: 8px; right: 8px; z-index: 30; display: none; max-height: 280px; overflow-y: auto; border: 1px solid rgba(255,255,255,.10); border-radius: 8px; background: #111b2d; box-shadow: 0 14px 32px rgba(0,0,0,.32); padding: 5px; }
.l2tms-sidebar-search.has-results .l2tms-sidebar-search-results { display: grid; gap: 3px; }
.l2tms-sidebar-search-item { width: 100%; min-height: 42px; border: 0; border-radius: 7px; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 8px; padding: 7px 8px; text-align: left; color: #e7efff; background: transparent; cursor: pointer; transition: background var(--eg-fast), transform var(--eg-fast); }
.l2tms-sidebar-search-item:hover { background: rgba(var(--eg-primary-rgb), .24); transform: translateX(2px); }
.l2tms-sidebar-search-item.is-primary { background: rgba(var(--eg-primary-rgb), .16); }
.l2tms-sidebar-search-item i { width: 20px; text-align: center; color: rgba(var(--eg-primary-rgb), .82); }
.l2tms-sidebar-search-item span { min-width: 0; display: grid; gap: 2px; }
.l2tms-sidebar-search-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 850; }
.l2tms-sidebar-search-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8ea1c2; font-size: 11px; font-weight: 700; }
.l2tms-sidebar-search-empty { padding: 12px 8px; color: #8ea1c2; font-size: 12px; font-weight: 750; text-align: center; }
.l2tms-menu-group { display: grid; gap: 5px; }
.l2tms-menu-level { min-height: 36px; display: flex; align-items: center; gap: 10px; border-radius: 8px; color: #c9d6ec; font-weight: 800; padding: 8px 10px; }
.l2tms-menu-level i { width: 18px; text-align: center; color: rgba(var(--eg-primary-rgb), .72); }
.l2tms-menu-level-child { margin-left: 12px; color: #d7e1f2; }
.l2tms-menu-level-page { margin-left: 24px; color: #eef5ff; background: transparent; transition: background var(--eg-fast), transform var(--eg-fast); }
.l2tms-menu-level-page:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateX(2px); }
.l2tms-menu-level-page.active { background: rgba(var(--eg-primary-rgb),.28); color: #fff; transform: translateX(2px); }
.l2tms-module-path { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 10px 12px; border: 1px solid var(--eg-line); border-radius: 8px; background: var(--eg-surface); color: var(--eg-muted); font-weight: 800; }
.l2tms-module-path strong { color: var(--eg-text); }
.l2tms-module-path .fa-chevron-right { font-size: 11px; color: #a0abc0; }
@media (max-width: 900px) { .l2tms-module-path { display: flex; flex-wrap: wrap; } }

.l2tms-menu-tree { display: block; }
.l2tms-menu-tree summary { list-style: none; cursor: pointer; }
.l2tms-menu-tree summary::-webkit-details-marker { display: none; }
.l2tms-menu-tree summary:after { content: '\f078'; margin-left: auto; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 10px; color: #7f92b4; transition: transform var(--eg-fast); }
.l2tms-menu-tree:not([open]) > summary:after { transform: rotate(-90deg); }
.l2tms-menu-tree-child { margin-left: 12px; }
.l2tms-menu-tree-child > .l2tms-menu-level-page { margin-left: 12px; }
.l2tms-dashboard-empty { min-height: calc(100vh - 20px); }
.l2tms-dashboard-empty:after { content: ''; display: block; min-height: 260px; border: 1px dashed var(--eg-line-strong); border-radius: 8px; background: rgba(255,255,255,.45); }

.l2tms-user-page { padding: 24px; }
.l2tms-user-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.l2tms-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.l2tms-user-toolbar { padding: 0; margin-bottom: 14px; }
.l2tms-user-toolbar .search-form-row { display: block; padding: 16px; }
.l2tms-filter-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.3fr; gap: 12px; width: 100%; }
.l2tms-filter-grid-3 { grid-template-columns: 1fr 1fr 1.3fr; }
.l2tms-filter-grid label, .l2tms-detail-form label, .l2tms-radio-block { display: grid; gap: 7px; margin: 0; }
.l2tms-filter-grid label > span, .l2tms-detail-form label > span, .l2tms-radio-block > span { color: #3b4351; font-size: 12px; font-weight: 850; }
.l2tms-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 16px;
  align-items: end;
  width: 100%;
}
.l2tms-search-field {
  display: grid;
  grid-template-columns: max-content minmax(96px, 1fr);
  column-gap: 8px;
  row-gap: 4px;
  align-items: center;
  min-width: 0;
  margin: 0;
}
.l2tms-search-field > span {
  color: #3b4351;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}
.l2tms-search-field .form-control,
.l2tms-search-field .form-select,
.l2tms-search-field select.form-control {
  min-height: 27px;
  height: 27px;
  padding: 3px 7px;
  font-size: 12.5px;
}
.l2tms-search-field.is-xs { grid-column: span 1; }
.l2tms-search-field.is-sm { grid-column: span 2; }
.l2tms-search-field.is-md { grid-column: span 3; }
.l2tms-search-field.is-lg { grid-column: span 4; }
.l2tms-search-field.is-xl { grid-column: span 5; }
.l2tms-search-field.is-hidden { display: none; }
.l2tms-search-field:not(.is-full):has(.l2tms-search-pill-group) { grid-column: span 3; }
.l2tms-search-field.is-full { grid-column: 1 / -1; }

.l2tms-search-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.l2tms-search-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 27px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--eg-line);
  border-radius: 999px;
  background: var(--eg-surface);
  color: var(--eg-muted);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.l2tms-search-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.l2tms-search-pill:has(input:checked) {
  border-color: rgba(22, 163, 74, .26);
  background: #eaf8f2;
  color: var(--eg-success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .08);
}
.l2tms-search-pill:has(input[value="N"]:checked) {
  border-color: rgba(220, 38, 38, .24);
  background: #fff1f2;
  color: var(--eg-danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .07);
}
.l2tms-search-pill:hover {
  border-color: var(--eg-line-strong);
}
.l2tms-detail-form .l2tms-detail-pill-group {
  min-height: 27px;
  align-items: center;
}
.l2tms-detail-form .l2tms-search-pill {
  display: inline-flex;
  gap: 0;
  margin: 0;
}
.l2tms-detail-form .l2tms-search-pill > span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.l2tms-search-grid .l2tms-search-actions {
  grid-column: span 2;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
@media (max-width: 900px) {
  .l2tms-search-grid { grid-template-columns: 1fr; }
  .l2tms-search-field.is-xs,
  .l2tms-search-field.is-sm,
  .l2tms-search-field.is-md,
  .l2tms-search-field.is-lg,
  .l2tms-search-field.is-xl,
  .l2tms-search-grid .l2tms-search-actions { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .l2tms-search-field {
    grid-template-columns: 1fr;
  }
}
.l2tms-user-workspace { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; padding: 0; }
.l2tms-user-grid-panel, .l2tms-user-detail-panel { border: 1px solid var(--eg-line); border-radius: 8px; background: var(--eg-surface); min-width: 0; }
.l2tms-user-detail-panel { padding: 16px; }
.l2tms-panel-head { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--eg-line); }
.l2tms-panel-head h2 { margin: 0; font-size: 17px; font-weight: 850; }
.l2tms-panel-head .l2tms-kicker { margin-bottom: 4px; }
.l2tms-grid-host { height: calc(100vh - 286px); min-height: 380px; padding: 12px; }
.l2tms-grid-host #mainGrid, .l2tms-detail-grid-host #detailGrid { height: 100%; }
.l2tms-detail-form { display: grid; gap: 12px; padding-top: 4px; }
.l2tms-inline-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.l2tms-detail-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.l2tms-radio-block { padding: 10px 0 4px; }
.l2tms-detail-grid-host { height: 190px; margin-top: 14px; }
.l2tms-loading { position: fixed; top: 50%; left: 50%; transform: translate(-5%, -50%); z-index: 9999; }
.l2tms-loading img { width: 80px; }
.l2tms-user-admin-shell .content-wrapper { margin-left: 250px; }
@media (max-width: 1180px) { .l2tms-user-workspace { grid-template-columns: 1fr; } .l2tms-user-detail-panel { order: 2; } }
@media (max-width: 900px) { .l2tms-user-page { padding: 16px; } .l2tms-user-hero { align-items: flex-start; flex-direction: column; } .l2tms-filter-grid { grid-template-columns: 1fr; } .l2tms-user-admin-shell .content-wrapper { margin-left: 0; } .l2tms-detail-two-col, .l2tms-inline-field { grid-template-columns: 1fr; } }
.l2tms-table-host { overflow: auto; }
.l2tms-user-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.l2tms-user-table th { position: sticky; top: 0; z-index: 1; background: #f8fafc; color: #475064; font-size: 12px; font-weight: 850; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--eg-line); white-space: nowrap; }
.l2tms-user-table td { padding: 13px 14px; border-bottom: 1px solid var(--eg-line); color: var(--eg-text); vertical-align: middle; }
.l2tms-user-table tbody tr { cursor: pointer; transition: background var(--eg-fast); }
.l2tms-user-table tbody tr:hover, .l2tms-user-table tbody tr.active { background: var(--eg-primary-soft); }
.l2tms-empty-cell { height: 220px; text-align: center !important; color: var(--eg-muted) !important; cursor: default; }
.l2tms-status-pill { display: inline-flex; align-items: center; min-width: 48px; justify-content: center; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 850; background: #eaf8f2; color: var(--eg-success); }
.l2tms-status-pill.off { background: #fff1f2; color: var(--eg-danger); }
.l2tms-detail-note { display: grid; place-items: center; padding: 18px; color: var(--eg-muted); font-weight: 700; text-align: center; background: var(--eg-surface-muted); border: 1px dashed var(--eg-line-strong); border-radius: 8px; }
.l2tms-modal { border-radius: 8px; border: 1px solid var(--eg-line); box-shadow: var(--eg-shadow); }

/* Compact 90% density for admin work screens */
.l2tms-user-admin-shell .main-sidebar,
.l2tms-user-admin-shell .brand-link {
  width: 225px;
}

.l2tms-user-admin-shell .content-wrapper,
body.l2tms-app .wrapper.l2tms-user-admin-shell .content-wrapper.l2tms-admin-page {
  margin-left: 225px !important;
}

.l2tms-user-admin-shell .brand-link {
  min-height: 51px;
  padding: 11px 8px;
}

.l2tms-user-admin-shell .brand-text {
  font-size: 18px;
}

.l2tms-user-admin-shell .sidebar {
  padding-top: 2px;
}

.l2tms-user-admin-shell .l2tms-sidebar-nav {
  padding: 0 7px;
}

.l2tms-user-admin-shell .l2tms-menu-level {
  min-height: 34px;
  gap: 9px;
  padding: 7px 9px;
  font-size: 13px;
}

.l2tms-user-admin-shell .l2tms-menu-level i {
  width: 16px;
  font-size: 13px;
}

.l2tms-user-admin-shell .l2tms-menu-level-page {
  margin-left: 21px;
}

.l2tms-user-admin-shell .l2tms-user-page {
  padding: 20px 22px;
  font-size: 13px;
}

body.l2tms-app .l2tms-user-admin-shell .content-wrapper,
body.l2tms-app .wrapper.l2tms-user-admin-shell .content-wrapper.l2tms-admin-page {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.l2tms-user-admin-shell .l2tms-user-page {
  height: calc(100vh - var(--eg-topbar-height));
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.l2tms-user-admin-shell .l2tms-user-toolbar {
  flex: 0 0 auto;
}

.l2tms-user-admin-shell .l2tms-user-hero {
  flex: 0 0 auto;
}

.l2tms-user-admin-shell .l2tms-user-workspace {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.l2tms-user-admin-shell .l2tms-single-grid-workspace {
  grid-template-columns: minmax(0, 1fr) !important;
}

.l2tms-user-admin-shell .l2tms-user-grid-panel,
.l2tms-user-admin-shell .l2tms-user-detail-panel {
  min-height: 0;
  overflow: hidden;
}

.l2tms-user-admin-shell .l2tms-user-grid-panel {
  display: flex;
  flex-direction: column;
}

.l2tms-user-admin-shell .l2tms-user-grid-panel > .l2tms-panel-head {
  flex: 0 0 auto;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel {
  display: flex;
  flex-direction: column;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel > .l2tms-panel-head {
  flex: 0 0 auto;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel > .l2tms-detail-form,
.l2tms-user-admin-shell .l2tms-user-detail-panel > form {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.l2tms-user-admin-shell .l2tms-grid-host,
.l2tms-user-admin-shell .l2tms-table-host {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: auto;
}

.l2tms-user-admin-shell .l2tms-user-hero {
  gap: 16px;
  margin-bottom: 14px;
}

.l2tms-user-admin-shell .l2tms-page-title {
  font-size: 25px;
}

.l2tms-user-admin-shell .l2tms-kicker {
  margin-bottom: 5px;
  font-size: 11px;
}

.l2tms-user-admin-shell .l2tms-page-actions {
  gap: 7px;
}

.l2tms-user-admin-shell .btn,
.l2tms-user-admin-shell .btn-normal,
.l2tms-user-admin-shell button.btn-normal {
  min-height: 29px;
  padding: 5px 10px;
  font-size: 13px;
}

.l2tms-user-admin-shell .l2tms-user-toolbar {
  margin-bottom: 12px;
}

.l2tms-user-admin-shell .l2tms-user-toolbar .search-form-row {
  padding: 14px;
}

.l2tms-user-admin-shell .l2tms-filter-grid {
  gap: 11px;
}

.l2tms-user-admin-shell .form-control,
.l2tms-user-admin-shell .form-select,
.l2tms-user-admin-shell select.form-control {
  min-height: 31px;
  font-size: 13px;
}

.l2tms-user-admin-shell .l2tms-user-workspace {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 13px;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel {
  padding: 14px;
}

.l2tms-user-admin-shell .l2tms-panel-head {
  min-height: 56px;
  padding: 14px;
}

.l2tms-user-admin-shell .l2tms-panel-head h2 {
  font-size: 15px;
}

.l2tms-user-admin-shell .l2tms-grid-host {
  height: calc(100vh - 252px);
  min-height: 342px;
  padding: 11px;
}

.l2tms-user-admin-shell .l2tms-detail-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  align-content: start;
  align-items: start;
  overflow: visible;
}

.l2tms-user-admin-shell .l2tms-detail-form label,
.l2tms-user-admin-shell .l2tms-radio-block {
  gap: 5px;
}

.l2tms-user-admin-shell .l2tms-detail-two-col {
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .l2tms-radio-block {
  display: grid;
  grid-template-columns: minmax(62px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 31px;
  padding: 0;
  white-space: nowrap;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .l2tms-radio-block > span {
  min-width: 0;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .radio-btn-center {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .radio-center {
  position: relative;
  min-width: 58px;
  justify-content: center;
  border: 1px solid var(--eg-line);
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
  color: #5f6877;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .radio-center input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .radio-center:has(input:checked) {
  border-color: rgba(22, 163, 74, .26);
  background: #eaf8f2;
  color: var(--eg-success);
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .radio-center:has(input[value="N"]:checked) {
  border-color: rgba(220, 38, 38, .24);
  background: #fff1f2;
  color: var(--eg-danger);
}

.l2tms-user-admin-shell .l2tms-contract-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(400px, 460px);
}

.l2tms-user-admin-shell .l2tms-contract-detail-panel {
  padding: 14px 16px;
}

.l2tms-user-admin-shell .l2tms-contract-detail-panel > .l2tms-detail-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 10px;
  overflow: visible;
}

.l2tms-user-admin-shell .l2tms-contract-detail-panel .l2tms-span-2,
.l2tms-user-admin-shell .l2tms-contract-detail-panel > .l2tms-detail-form > .l2tms-detail-two-col,
.l2tms-user-admin-shell .l2tms-contract-detail-panel > .l2tms-detail-form > .l2tms-radio-block {
  grid-column: 1 / -1;
}

.l2tms-user-admin-shell .l2tms-contract-detail-panel .l2tms-detail-two-col {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.l2tms-user-admin-shell .l2tms-company-partner-workspace {
  grid-template-columns: minmax(500px, 1fr) minmax(460px, 540px);
}

.l2tms-user-admin-shell .l2tms-company-partner-detail-panel {
  padding: 14px 16px;
}

.l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 8px;
  overflow: visible;
}

.l2tms-user-admin-shell .l2tms-company-partner-detail-panel .l2tms-span-2,
.l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > .l2tms-radio-block:last-child {
  grid-column: 1 / -1;
}

.l2tms-user-admin-shell .l2tms-role-select {
  display: grid;
  gap: 8px;
  margin: 0;
}

.l2tms-user-admin-shell .l2tms-role-select > span {
  color: #3b4351;
  font-size: 12px;
  font-weight: 850;
}

.l2tms-user-admin-shell .l2tms-role-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
  align-items: center;
}

.l2tms-user-admin-shell .l2tms-role-pill {
  margin: 0;
  cursor: pointer;
}

.l2tms-user-admin-shell .l2tms-role-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.l2tms-user-admin-shell .l2tms-role-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid #dce3ee;
  background: #fff;
  color: #536071;
  font-size: 12px;
  font-weight: 850;
  transition: all .16s ease;
}

.l2tms-user-admin-shell .l2tms-role-pill input:checked + span {
  border-color: var(--eg-primary);
  background: color-mix(in srgb, var(--eg-primary) 12%, #fff);
  color: var(--eg-primary);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .12);
}

.l2tms-user-admin-shell .l2tms-role-empty {
  color: #8792a2;
  font-size: 12px;
  font-weight: 750;
}

.l2tms-user-admin-shell .l2tms-compact-detail-workspace {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.l2tms-user-admin-shell .l2tms-compact-detail-panel {
  align-self: start;
}

.l2tms-user-admin-shell .l2tms-compact-detail-panel > form,
.l2tms-user-admin-shell .l2tms-compact-detail-panel > .l2tms-detail-form {
  flex: 0 0 auto;
  overflow: visible;
}

@media (max-width: 1180px) {
  .l2tms-user-admin-shell .l2tms-user-workspace,
  .l2tms-user-admin-shell .l2tms-contract-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .l2tms-user-admin-shell .l2tms-company-partner-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .l2tms-user-admin-shell .l2tms-compact-detail-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .l2tms-user-admin-shell .l2tms-user-detail-panel > .l2tms-detail-form,
  .l2tms-user-admin-shell .l2tms-user-detail-panel .l2tms-detail-two-col,
  .l2tms-user-admin-shell .l2tms-contract-detail-panel > .l2tms-detail-form,
  .l2tms-user-admin-shell .l2tms-contract-detail-panel .l2tms-detail-two-col,
  .l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

.l2tms-user-admin-shell .l2tms-detail-grid-host {
  height: 171px;
  margin-top: 13px;
}

.l2tms-user-admin-shell .l2tms-user-table {
  font-size: 13px;
}

.l2tms-user-admin-shell .l2tms-user-table th {
  padding: 11px 13px;
  font-size: 11px;
}

.l2tms-user-admin-shell .l2tms-user-table td {
  padding: 12px 13px;
}

.l2tms-user-admin-shell .l2tms-status-pill {
  min-width: 43px;
  padding: 4px 7px;
  font-size: 11px;
}

@media (max-width: 900px) {
  .l2tms-user-admin-shell .content-wrapper,
  body.l2tms-app .wrapper.l2tms-user-admin-shell .content-wrapper.l2tms-admin-page {
    margin-left: 0 !important;
  }

  .l2tms-user-admin-shell .l2tms-user-page {
    padding: 14px;
  }
}
/* End compact admin density */


/* L2TMS shell top workspace */
.l2tms-shell {
  --eg-sidebar-width: 220px;
  --eg-topbar-height: 52px;
  --eg-topbar-x: 11px;
  --eg-topbar-gap: 8px;
  --eg-sidebar-toggle-size: 36px;
}

.l2tms-shell .l2tms-worktop {
  position: fixed;
  z-index: 1040;
  top: 0;
  left: 0;
  right: 0;
  height: var(--eg-topbar-height);
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--eg-topbar-gap);
  padding: 7px var(--eg-topbar-x);
  border-bottom: 1px solid var(--eg-line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

.l2tms-home-button,
.l2tms-sidebar-toggle,
.l2tms-tab-close {
  border: 0;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  transition: background var(--eg-fast), color var(--eg-fast), transform var(--eg-fast), box-shadow var(--eg-fast);
}

.l2tms-home-button {
  width: calc(var(--eg-sidebar-width) - var(--eg-sidebar-toggle-size) - var(--eg-topbar-gap) - var(--eg-topbar-x));
  height: 36px;
  grid-template-columns: 27px 1fr;
  gap: 8px;
  padding: 0 10px 0 6px;
  color: #fff;
  background: var(--eg-primary);
  box-shadow: 0 10px 22px var(--eg-brand-shadow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.l2tms-home-button i {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255,255,255,.16);
}

.l2tms-home-button:hover {
  color: #fff;
  background: var(--eg-primary-strong);
  transform: translateY(-1px);
}

.l2tms-sidebar-toggle {
  width: 36px;
  height: 36px;
  color: var(--eg-text);
  background: var(--eg-surface-muted);
  border: 1px solid var(--eg-line);
}

.l2tms-sidebar-toggle:hover {
  background: var(--eg-primary-soft);
  color: var(--eg-primary);
}

.l2tms-tab-strip {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 1px 2px;
}

.l2tms-tab-link {
  min-width: 92px;
  max-width: 190px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--eg-line);
  border-radius: 8px;
  background: var(--eg-surface);
  color: var(--eg-muted);
  font-size: 12.5px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(15,23,42,.04);
}

.l2tms-tab-link:hover,
.l2tms-tab-link.active {
  color: var(--eg-primary);
  border-color: rgba(var(--eg-primary-rgb), .34);
  background: var(--eg-primary-soft);
}

.l2tms-tab-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.l2tms-tab-close {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #8a95a8;
  background: transparent;
  font-size: 11px;
}

.l2tms-tab-close:hover {
  color: var(--eg-danger);
  background: rgba(229,72,77,.10);
}

.l2tms-shell .main-sidebar {
  top: var(--eg-topbar-height) !important;
  width: var(--eg-sidebar-width) !important;
  height: calc(100vh - var(--eg-topbar-height)) !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  transform: translateX(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.l2tms-shell .main-sidebar .brand-link {
  display: none !important;
}

.l2tms-shell .sidebar {
  height: calc(100vh - var(--eg-topbar-height));
  overflow-y: auto;
  padding-top: 10px;
}

.l2tms-shell .content-wrapper,
.l2tms-user-admin-shell .content-wrapper,
body.l2tms-app .wrapper.l2tms-user-admin-shell .content-wrapper.l2tms-admin-page {
  margin-left: var(--eg-sidebar-width) !important;
  padding-top: var(--eg-topbar-height);
  transition: margin-left 220ms ease;
}

.l2tms-shell.l2tms-sidebar-collapsed .main-sidebar {
  transform: translateX(calc(-1 * var(--eg-sidebar-width)));
  box-shadow: none;
}

.l2tms-shell.l2tms-sidebar-collapsed .content-wrapper,
body.l2tms-app .wrapper.l2tms-shell.l2tms-sidebar-collapsed .content-wrapper.l2tms-admin-page {
  margin-left: 0 !important;
}

.l2tms-shell.l2tms-sidebar-collapsed .l2tms-sidebar-toggle i:before {
  content: "\f105";
}

.l2tms-user-admin-shell .l2tms-home {
  padding: 20px 22px;
  font-size: 13px;
}

.l2tms-user-admin-shell .l2tms-home .l2tms-page-title {
  font-size: 25px;
}

.l2tms-user-admin-shell .l2tms-home .l2tms-kicker {
  margin-bottom: 5px;
  font-size: 11px;
}

.l2tms-user-admin-shell .l2tms-dashboard-empty {
  min-height: calc(100vh - var(--eg-topbar-height) - 20px);
}

@media (max-width: 900px) {
  .l2tms-shell {
    --eg-sidebar-width: min(82vw, 260px);
  }

  .l2tms-shell .l2tms-worktop {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    padding: 8px;
  }

  .l2tms-home-button {
    width: 44px;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .l2tms-home-button span {
    display: none;
  }

  .l2tms-session-timer span { display: none; }
  .l2tms-session-timer { padding: 0 8px; }

  .l2tms-profile-trigger {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .l2tms-profile-name {
    display: none;
  }

  .l2tms-shell .content-wrapper,
  .l2tms-user-admin-shell .content-wrapper,
  body.l2tms-app .wrapper.l2tms-user-admin-shell .content-wrapper.l2tms-admin-page {
    margin-left: 0 !important;
  }

  .l2tms-shell:not(.l2tms-sidebar-open-mobile) .main-sidebar {
    transform: translateX(calc(-1 * var(--eg-sidebar-width)));
  }

  .l2tms-shell.l2tms-sidebar-open-mobile .main-sidebar {
    transform: translateX(0);
  }
}


.l2tms-tab-context-menu {
  position: fixed;
  z-index: 3000;
  min-width: 218px;
  padding: 6px;
  border: 1px solid var(--eg-line);
  border-radius: 8px;
  background: var(--eg-surface);
  box-shadow: 0 18px 42px rgba(15,23,42,.16);
}

.l2tms-tab-context-menu button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--eg-text);
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  padding: 7px 9px;
}

.l2tms-tab-context-menu button:hover {
  color: var(--eg-primary);
  background: var(--eg-primary-soft);
}

.l2tms-tab-fixed {
  padding-right: 12px;
}

.l2tms-profile-menu-host {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.l2tms-session-timer {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--eg-line);
  border-radius: 8px;
  background: var(--eg-surface);
  color: var(--eg-muted);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 6px 14px rgba(15,23,42,.04);
}

.l2tms-session-timer i { color: var(--eg-primary); }
.l2tms-session-timer strong { color: var(--eg-text); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.l2tms-session-timer.warning { border-color: rgba(245,158,11,.45); background: #fffbeb; color: #92400e; }
.l2tms-session-timer.expired { border-color: rgba(229,72,77,.45); background: #fff1f2; color: var(--eg-danger); }

.l2tms-profile-trigger {
  height: 36px;
  width: 38px;
  display: inline-grid;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--eg-line);
  border-radius: 8px;
  background: var(--eg-surface);
  color: var(--eg-text);
  padding: 0;
  box-shadow: 0 6px 14px rgba(15,23,42,.04);
  transition: background var(--eg-fast), border-color var(--eg-fast), color var(--eg-fast), box-shadow var(--eg-fast);
}

.l2tms-profile-trigger i {
  font-size: 15px;
}

.l2tms-profile-trigger:hover,
.l2tms-profile-menu-host.open .l2tms-profile-trigger {
  color: var(--eg-primary);
  border-color: rgba(var(--eg-primary-rgb), .34);
  background: var(--eg-primary-soft);
}
.l2tms-profile-card-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--eg-primary);
  font-weight: 400;
  letter-spacing: 0;
}

.l2tms-profile-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 850;
}

.l2tms-profile-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 3300;
  width: min(320px, calc(100vw - 18px));
  display: none;
  padding: 14px;
  border: 1px solid rgba(var(--eg-primary-rgb), .18);
  border-radius: 10px;
  background: var(--eg-surface);
  box-shadow: 0 22px 58px rgba(15,23,42,.18);
}

.l2tms-profile-menu-host.open .l2tms-profile-panel {
  display: block;
}

.l2tms-profile-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--eg-line);
}

.l2tms-profile-card-avatar {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.l2tms-profile-card-head strong {
  display: block;
  color: var(--eg-text);
  font-size: 15px;
  font-weight: 900;
}

.l2tms-profile-card-head small {
  display: block;
  margin-top: 2px;
  color: var(--eg-muted);
  font-size: 11px;
  font-weight: 800;
}

.l2tms-profile-meta {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.l2tms-profile-meta div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.l2tms-profile-meta dt {
  color: var(--eg-muted);
  font-size: 11px;
  font-weight: 850;
}

.l2tms-profile-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--eg-text);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.l2tms-company-switch-block {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding-top: 12px;
  border-top: 1px solid var(--eg-line);
}

.l2tms-company-switch-block label {
  margin: 0;
  color: var(--eg-muted);
  font-size: 11px;
  font-weight: 850;
}

.l2tms-company-switch {
  width: 100%;
  height: 36px;
  border: 1px solid var(--eg-line);
  border-radius: 8px;
  background: #fff;
  color: var(--eg-text);
  font-size: 13px;
  font-weight: 800;
  padding: 0 9px;
}

.l2tms-company-switch:focus {
  outline: 0;
  border-color: rgba(var(--eg-primary-rgb), .55);
  box-shadow: 0 0 0 3px rgba(var(--eg-primary-rgb), .12);
}

.l2tms-company-switch:disabled {
  cursor: not-allowed;
  color: var(--eg-muted);
  background: var(--eg-surface-muted);
}

.l2tms-profile-actions {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--eg-line);
}

.l2tms-profile-actions button {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--eg-text);
  font-size: 13px;
  font-weight: 850;
  text-align: left;
  padding: 8px 9px;
}

.l2tms-profile-actions button:hover {
  color: var(--eg-primary);
  background: var(--eg-primary-soft);
}

.l2tms-profile-actions i {
  width: 18px;
  text-align: center;
}

.l2tms-my-info-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(6px);
}

.l2tms-my-info-dialog {
  width: min(520px, 100%);
  border: 1px solid rgba(var(--eg-primary-rgb), .2);
  border-radius: 12px;
  background: var(--eg-surface);
  box-shadow: 0 28px 70px rgba(15,23,42,.26);
}

.l2tms-my-info-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--eg-line);
}

.l2tms-my-info-head p {
  margin: 0 0 4px;
  color: var(--eg-primary);
  font-size: 11px;
  font-weight: 900;
}

.l2tms-my-info-head h2 {
  margin: 0;
  color: var(--eg-text);
  font-size: 18px;
  font-weight: 900;
}

.l2tms-my-info-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--eg-surface-muted);
  color: var(--eg-muted);
}

.l2tms-my-info-close:hover {
  color: var(--eg-danger);
  background: rgba(229,72,77,.10);
}

.l2tms-my-info-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px;
}

.l2tms-my-info-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--eg-muted);
  font-size: 11px;
  font-weight: 850;
}

.l2tms-my-info-form input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--eg-line);
  border-radius: 8px;
  background: #fff;
  color: var(--eg-text);
  font-size: 13px;
  font-weight: 750;
  padding: 0 10px;
}

.l2tms-my-info-form input:focus {
  outline: 0;
  border-color: rgba(var(--eg-primary-rgb), .55);
  box-shadow: 0 0 0 3px rgba(var(--eg-primary-rgb), .12);
}

.l2tms-my-info-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--eg-line);
}

.l2tms-my-info-actions button {
  min-width: 84px;
  height: 36px;
  border: 1px solid var(--eg-line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  padding: 0 13px;
}

.l2tms-my-info-cancel {
  background: var(--eg-surface-muted);
  color: var(--eg-text);
}

.l2tms-my-info-save {
  border-color: var(--eg-primary) !important;
  background: var(--eg-primary);
  color: #fff;
}

.l2tms-my-info-save:disabled {
  cursor: wait;
  opacity: .62;
}

.l2tms-snackbar-host {
  position: fixed;
  z-index: 5000;
  left: 50%;
  bottom: 22px;
  width: min(390px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.l2tms-snackbar {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 24px;
  align-items: start;
  gap: 10px;
  min-height: 46px;
  padding: 12px 10px 12px 13px;
  border: 1px solid var(--eg-line);
  border-left-width: 4px;
  border-radius: 8px;
  background: var(--eg-surface);
  color: var(--eg-text);
  box-shadow: 0 18px 44px rgba(15,23,42,.16);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: auto;
}

.l2tms-snackbar.show {
  opacity: 1;
  transform: translateY(0);
}

.l2tms-snackbar > i {
  margin-top: 2px;
  font-size: 16px;
}

.l2tms-snackbar span {
  min-width: 0;
  color: var(--eg-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.l2tms-snackbar button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--eg-muted);
}

.l2tms-snackbar button:hover {
  background: rgba(15,23,42,.06);
  color: var(--eg-text);
}

.l2tms-snackbar-success {
  border-left-color: var(--eg-success);
  background: linear-gradient(90deg, rgba(15,159,110,.10), #fff 34%);
}

.l2tms-snackbar-success > i {
  color: var(--eg-success);
}

.l2tms-snackbar-warning {
  border-left-color: var(--eg-warning);
  background: linear-gradient(90deg, rgba(245,158,11,.13), #fff 34%);
}

.l2tms-snackbar-warning > i {
  color: var(--eg-warning);
}

.l2tms-snackbar-error {
  border-left-color: var(--eg-danger);
  background: linear-gradient(90deg, rgba(229,72,77,.12), #fff 34%);
}

.l2tms-snackbar-error > i {
  color: var(--eg-danger);
}

.l2tms-snackbar-info {
  border-left-color: var(--eg-primary);
  background: linear-gradient(90deg, rgba(var(--eg-primary-rgb),.10), #fff 34%);
}

.l2tms-snackbar-info > i {
  color: var(--eg-primary);
}

.l2tms-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 5100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15,23,42,.36);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 160ms ease;
}

.l2tms-confirm-modal.show {
  opacity: 1;
}

.l2tms-confirm-dialog {
  width: min(390px, 100%);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(var(--eg-primary-rgb), .22);
  border-radius: 12px;
  background: var(--eg-surface);
  box-shadow: 0 28px 70px rgba(15,23,42,.26);
  transform: translateY(8px) scale(.98);
  transition: transform 160ms ease;
}

.l2tms-confirm-modal.show .l2tms-confirm-dialog {
  transform: translateY(0) scale(1);
}

.l2tms-confirm-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--eg-primary);
  background: var(--eg-primary-soft);
  font-size: 16px;
}

.l2tms-confirm-danger .l2tms-confirm-icon {
  color: var(--eg-danger);
  background: rgba(229,72,77,.10);
}

.l2tms-confirm-content h2 {
  margin: 0 0 6px;
  color: var(--eg-text);
  font-size: 17px;
  font-weight: 900;
}

.l2tms-confirm-content p {
  margin: 0;
  color: var(--eg-muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.l2tms-confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.l2tms-confirm-actions button {
  min-width: 82px;
  height: 36px;
  border: 1px solid var(--eg-line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  padding: 0 13px;
}

.l2tms-confirm-cancel {
  background: var(--eg-surface-muted);
  color: var(--eg-text);
}

.l2tms-confirm-ok {
  border-color: var(--eg-primary) !important;
  background: var(--eg-primary);
  color: #fff;
}

.l2tms-confirm-danger .l2tms-confirm-ok {
  border-color: var(--eg-danger) !important;
  background: var(--eg-danger);
}

@media (max-width: 640px) {
  .l2tms-my-info-form {
    grid-template-columns: 1fr;
  }

  .l2tms-snackbar-host {
    bottom: 12px;
    width: calc(100vw - 16px);
  }
}

/* End L2TMS shell top workspace */

.l2tms-grid-context-menu {
  position: fixed;
  z-index: 3200;
  min-width: 174px;
  padding: 6px;
  border: 1px solid var(--eg-line);
  border-radius: 8px;
  background: var(--eg-surface);
  box-shadow: 0 18px 42px rgba(15,23,42,.16);
}

.l2tms-grid-context-menu button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--eg-text);
  font-size: 13px;
  font-weight: 850;
  text-align: left;
  padding: 7px 9px;
}

.l2tms-grid-context-menu button:hover {
  color: var(--eg-primary);
  background: var(--eg-primary-soft);
}

.l2tms-grid-filter-popover {
  position: fixed;
  z-index: 3210;
  width: min(420px, calc(100vw - 16px));
  padding: 14px;
  border: 1px solid rgba(var(--eg-primary-rgb), .22);
  border-radius: 10px;
  background: var(--eg-surface);
  box-shadow: 0 22px 58px rgba(15,23,42,.18);
}

.l2tms-filter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--eg-text);
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 12px;
}

.l2tms-filter-title i {
  color: var(--eg-primary);
}

.l2tms-filter-form {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 92px minmax(120px, 1fr);
  gap: 8px;
  align-items: end;
}

.l2tms-filter-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--eg-muted);
  font-size: 11px;
  font-weight: 850;
}

.l2tms-filter-form select,
.l2tms-filter-form input {
  width: 100%;
  height: 34px;
  border: 1px solid var(--eg-line);
  border-radius: 8px;
  background: #fff;
  color: var(--eg-text);
  font-size: 13px;
  font-weight: 750;
  padding: 0 9px;
}

.l2tms-filter-form select:focus,
.l2tms-filter-form input:focus {
  outline: 0;
  border-color: rgba(var(--eg-primary-rgb), .55);
  box-shadow: 0 0 0 3px rgba(var(--eg-primary-rgb), .12);
}

.l2tms-filter-value-wrap.disabled {
  opacity: .48;
}

.l2tms-filter-actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.l2tms-filter-actions button {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--eg-line);
  border-radius: 8px;
  background: var(--eg-surface-muted);
  color: var(--eg-text);
  font-size: 12px;
  font-weight: 850;
  padding: 0 11px;
}

.l2tms-filter-actions button:hover {
  color: var(--eg-primary);
  border-color: rgba(var(--eg-primary-rgb), .3);
  background: var(--eg-primary-soft);
}

.l2tms-filter-rule-list {
  display: grid;
  gap: 6px;
  max-height: 146px;
  overflow: auto;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--eg-line);
}

.l2tms-filter-rule-empty {
  color: var(--eg-muted);
  font-size: 12px;
  font-weight: 750;
  padding: 4px 0;
}

.l2tms-filter-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  border-radius: 8px;
  background: var(--eg-primary-soft);
  color: var(--eg-primary);
  font-size: 12px;
  font-weight: 850;
  padding: 5px 7px 5px 10px;
}

.l2tms-filter-rule span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.l2tms-filter-rule button {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 7px;
  background: rgba(255,255,255,.72);
  color: var(--eg-primary);
}

.l2tms-filter-rule button:hover {
  color: var(--eg-danger);
  background: #fff;
}

.l2tms-table-filtered thead th {
  box-shadow: inset 0 -2px 0 rgba(var(--eg-primary-rgb), .22);
}

.l2tms-filter-empty-row td {
  height: 132px;
  color: var(--eg-muted);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  background: #fff;
}

@media (max-width: 760px) {
  .l2tms-filter-form {
    grid-template-columns: 1fr;
  }
}

.l2tms-grid-context-menu .fa-file-excel {
  color: var(--eg-success);
}

.l2tms-grid-context-menu button + button {
  margin-top: 2px;
}

.l2tms-realgrid-host {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 1px solid var(--eg-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--eg-surface);
}

.table-responsive > .l2tms-realgrid-host {
  height: calc(100vh - 336px);
  min-height: 320px;
}

.l2tms-user-admin-shell .table-responsive > .l2tms-realgrid-host {
  height: calc(100vh - 302px);
  min-height: 288px;
}

.l2tms-grid-host > .l2tms-realgrid-host,
.l2tms-table-host > .l2tms-realgrid-host {
  height: 100%;
}

/* Fixed work-screen scrolling: page chrome stays put, data panels scroll inside. */
body.l2tms-app .l2tms-user-admin-shell .content-wrapper,
body.l2tms-app .wrapper.l2tms-user-admin-shell .content-wrapper.l2tms-admin-page {
  height: 100vh;
  min-height: 0 !important;
  overflow: hidden;
}

.l2tms-user-admin-shell .l2tms-user-page {
  height: calc(100vh - var(--eg-topbar-height));
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.l2tms-user-admin-shell .l2tms-user-hero,
.l2tms-user-admin-shell .l2tms-user-toolbar {
  flex: 0 0 auto;
}

.l2tms-user-admin-shell .l2tms-user-workspace {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.l2tms-user-admin-shell .l2tms-user-grid-panel,
.l2tms-user-admin-shell .l2tms-user-detail-panel {
  min-height: 0;
  overflow: hidden;
}

.l2tms-user-admin-shell .l2tms-user-grid-panel,
.l2tms-user-admin-shell .l2tms-user-detail-panel {
  display: flex;
  flex-direction: column;
}

.l2tms-user-admin-shell .l2tms-panel-head {
  flex: 0 0 auto;
}

.l2tms-user-admin-shell .l2tms-grid-host,
.l2tms-user-admin-shell .l2tms-table-host {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: auto;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel > form,
.l2tms-user-admin-shell .l2tms-user-detail-panel > .l2tms-detail-form {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.l2tms-user-admin-shell .l2tms-compact-detail-panel {
  align-self: start;
}

.l2tms-user-admin-shell .l2tms-compact-detail-panel > form,
.l2tms-user-admin-shell .l2tms-compact-detail-panel > .l2tms-detail-form {
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
}

@media (max-width: 900px) {
  body.l2tms-app .l2tms-user-admin-shell .content-wrapper,
  body.l2tms-app .wrapper.l2tms-user-admin-shell .content-wrapper.l2tms-admin-page {
    overflow: auto;
  }

  .l2tms-user-admin-shell .l2tms-user-page {
    height: auto;
    min-height: calc(100vh - var(--eg-topbar-height));
    overflow: visible;
  }
}

/* 권한그룹사용자등록 */
.l2tms-auth-user-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.76fr) minmax(390px, 1.34fr) minmax(340px, 1.14fr);
  gap: 16px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.l2tms-auth-user-layout .l2tms-user-grid-panel {
  min-width: 0;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.l2tms-auth-user-layout .l2tms-grid-host {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.l2tms-auth-user-layout .l2tms-panel-head {
  min-height: 58px;
  gap: 10px;
}
.l2tms-panel-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.l2tms-auth-user-layout .l2tms-user-table th,
.l2tms-auth-user-layout .l2tms-user-table td {
  white-space: nowrap;
}
.l2tms-auth-user-layout .l2tms-select-table tbody tr[data-auth],
.l2tms-auth-user-layout .l2tms-select-table tbody tr[data-user] {
  cursor: pointer;
}
.l2tms-auth-user-layout .l2tms-select-table tbody tr.active td {
  background: color-mix(in srgb, var(--eg-primary) 9%, #fff);
  color: var(--eg-primary);
  font-weight: 800;
}
.l2tms-auth-user-layout .l2tms-select-table strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}
.l2tms-auth-user-layout .l2tms-select-table small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}
.l2tms-auth-user-layout input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--eg-primary);
}
.l2tms-auth-user-layout input[type="date"].form-control-sm {
  min-width: 108px;
  height: 30px;
  font-size: 12px;
}
@media (max-width: 1400px) {
  .l2tms-auth-user-layout {
    grid-template-columns: 1fr;
  }
  .l2tms-auth-user-layout .l2tms-user-grid-panel {
    height: auto;
    min-height: 320px;
  }
}

/* 권한그룹별메뉴관리 */
.l2tms-menu-permission-row.level-0 td {
  background: #fbfdff;
}
.l2tms-menu-permission-row.level-1 td {
  background: #ffffff;
}
.l2tms-menu-cell {
  --menu-depth: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-left: calc(var(--menu-depth) * 22px);
  position: relative;
}
.l2tms-menu-cell .l2tms-menu-branch {
  width: 12px;
  height: 20px;
  border-left: 1px solid #d8e1ef;
  border-bottom: 1px solid #d8e1ef;
  border-bottom-left-radius: 6px;
  opacity: calc(min(var(--menu-depth), 1));
  flex: 0 0 auto;
}
.l2tms-menu-expander {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #94a3b8;
  font-size: 10px;
  flex: 0 0 auto;
  padding: 0;
  outline: 0;
}

.l2tms-menu-expander:focus,
.l2tms-menu-expander:active {
  border: 0;
  outline: 0;
  box-shadow: none;
}
.l2tms-menu-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  font-size: 13px;
  flex: 0 0 auto;
  border: 1px solid #e2e8f0;
}
.l2tms-menu-level-badge.dir { background: #eef6ff; color: #1d4ed8; border-color: #bfdbfe; }
.l2tms-menu-level-badge.folder { background: #f8fafc; color: #475569; border-color: #e2e8f0; }
.l2tms-menu-level-badge.page { background: #ecfdf5; color: #047857; border-color: #bbf7d0; }
.l2tms-menu-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.l2tms-menu-name strong {
  font-size: 13px;
  font-weight: 850;
  color: #172033;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.l2tms-menu-name small {
  font-size: 11px;
  color: #7b8798;
  font-weight: 700;
}
.l2tms-url-pill {
  display: inline-flex;
  max-width: 420px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.l2tms-permission-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}
.l2tms-permission-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.l2tms-permission-toggle span {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #ffe4e6;
  border: 1px solid rgba(229, 72, 77, .32);
  position: relative;
  transition: background var(--eg-fast), border-color var(--eg-fast), box-shadow var(--eg-fast);
}
.l2tms-permission-toggle span:after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.12);
  transition: transform var(--eg-fast), box-shadow var(--eg-fast);
}
.l2tms-permission-toggle input:checked + span {
  background: #dcfce7;
  border-color: rgba(15, 159, 110, .34);
}
.l2tms-permission-toggle input:checked + span:after {
  transform: translateX(14px);
}
.l2tms-permission-toggle em {
  min-width: 42px;
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}
.l2tms-permission-toggle em.on { color: #047857; }
.l2tms-permission-toggle em.off { color: #be123c; }

.l2tms-menu-permission-row.is-hidden {
  display: none;
}
.l2tms-menu-permission-row.has-children .l2tms-menu-cell {
  cursor: pointer;
}
.l2tms-menu-permission-row.has-children:hover .l2tms-menu-expander {
  color: var(--eg-primary);
}

.l2tms-menu-sort-actions .btn {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.l2tms-menu-sort-actions .btn:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.l2tms-user-admin-shell .l2tms-user-page {
  padding: 11px 17px 13px;
}

.l2tms-user-admin-shell .l2tms-user-hero {
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.l2tms-user-admin-shell .l2tms-page-title {
  font-size: 19px;
  line-height: 1.06;
}

.l2tms-user-admin-shell .l2tms-kicker {
  margin-bottom: 1px;
  font-size: 9px;
  line-height: 1.04;
}

.l2tms-user-admin-shell .l2tms-page-actions {
  gap: 5px;
}

.l2tms-user-admin-shell .l2tms-page-actions .btn {
  min-height: 27px;
  padding: 4px 9px;
}

.l2tms-user-admin-shell .l2tms-user-toolbar {
  margin-bottom: 8px;
}

.l2tms-user-admin-shell .l2tms-user-table {
  font-size: 12px;
}

.l2tms-user-admin-shell .l2tms-user-table th {
  padding: 7px 10px;
  font-size: 11px;
  line-height: 1.2;
}

.l2tms-user-admin-shell .l2tms-user-table td {
  padding: 7px 10px;
  line-height: 1.25;
}

.l2tms-user-admin-shell .l2tms-status-pill {
  min-height: 20px;
  min-width: 40px;
  padding: 2px 7px;
  font-size: 11px;
}

.l2tms-user-admin-shell .l2tms-empty-cell {
    height: 160px;
}

/* 상세 정보 입력 밀도 조정: 조회조건 컴포넌트 높이와 균형을 맞춘다 */
.l2tms-user-admin-shell .l2tms-user-detail-panel {
    padding: 12px 14px;
}

.l2tms-user-admin-shell .l2tms-detail-form {
    gap: 6px;
}

.l2tms-user-admin-shell .l2tms-detail-form label,
.l2tms-user-admin-shell .l2tms-radio-block,
.l2tms-user-admin-shell .l2tms-role-select {
    gap: 4px;
}

.l2tms-user-admin-shell .l2tms-detail-form label > span,
.l2tms-user-admin-shell .l2tms-radio-block > span,
.l2tms-user-admin-shell .l2tms-role-select > span {
    font-size: 11.5px;
    line-height: 1.2;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .form-control,
.l2tms-user-admin-shell .l2tms-user-detail-panel .form-select,
.l2tms-user-admin-shell .l2tms-user-detail-panel select.form-control {
    min-height: 27px;
    height: 27px;
    padding: 3px 7px;
    font-size: 12.5px;
    line-height: 1.2;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel textarea.form-control {
    height: auto;
    min-height: 58px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .l2tms-radio-block {
    min-height: 27px;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .radio-center {
    min-height: 26px;
    min-width: 50px;
    padding: 3px 8px;
    font-size: 11.5px;
}

.l2tms-user-admin-shell .l2tms-role-pill-group {
    min-height: 27px;
    gap: 6px;
}

.l2tms-user-admin-shell .l2tms-role-pill span {
    min-height: 26px;
    padding: 4px 9px;
    font-size: 11.5px;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .l2tms-dept-check-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 5px;
    max-height: 164px;
    min-height: 78px;
    overflow: auto;
    padding: 7px;
    border: 1px solid var(--eg-line);
    border-radius: 7px;
    background: #f8fafc;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .l2tms-dept-chip {
    position: relative;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .l2tms-dept-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .l2tms-dept-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 23px;
    padding: 3px 6px;
    border: 1px solid var(--eg-line);
    border-radius: 6px;
    background: #fff;
    color: #475064;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .l2tms-dept-chip input:checked + span {
    border-color: var(--eg-primary);
    background: color-mix(in srgb, var(--eg-primary) 10%, #fff);
    color: var(--eg-primary);
}

/* 조회조건 영역 축소: 조건이 많은 메뉴도 그리드 영역을 과하게 차지하지 않도록 한다 */
.l2tms-user-admin-shell .l2tms-user-toolbar.content {
    padding-top: 6px;
    padding-bottom: 6px;
}

.l2tms-user-admin-shell .l2tms-user-toolbar .search-form-row {
    padding: 9px 11px;
}

.l2tms-user-admin-shell .l2tms-search-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    column-gap: 14px;
    row-gap: 8px;
}

.l2tms-user-admin-shell .l2tms-search-field {
    column-gap: 8px;
    row-gap: 4px;
}

.l2tms-user-admin-shell .l2tms-search-field > span {
    font-size: 11.5px;
}

.l2tms-user-admin-shell .l2tms-filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    column-gap: 14px;
    row-gap: 8px;
}

.l2tms-user-admin-shell .l2tms-filter-grid label {
    gap: 4px;
}

.l2tms-user-admin-shell .l2tms-filter-grid label > span {
    font-size: 11.5px;
    line-height: 1.15;
}

.l2tms-user-admin-shell .l2tms-user-toolbar .form-control,
.l2tms-user-admin-shell .l2tms-user-toolbar .form-select,
.l2tms-user-admin-shell .l2tms-user-toolbar select.form-control {
    min-height: 27px;
    height: 27px;
    padding: 3px 7px;
    font-size: 12.5px;
    line-height: 1.2;
}

/* 전체 메뉴 밀도 최종 보정: 그리드, 조회조건, 상세 패널의 체감 높이를 통일한다 */
.l2tms-user-admin-shell .l2tms-panel-head {
    min-height: 48px;
    padding: 10px 12px;
}

.l2tms-user-admin-shell .l2tms-panel-head h2 {
    font-size: 14px;
}

.l2tms-user-admin-shell .l2tms-panel-head .l2tms-kicker {
    margin-bottom: 2px;
    font-size: 10px;
}

.l2tms-user-admin-shell .l2tms-grid-host,
.l2tms-user-admin-shell .l2tms-table-host {
    padding: 8px;
}

.l2tms-user-admin-shell .l2tms-detail-form,
.l2tms-user-admin-shell .l2tms-user-detail-panel > .l2tms-detail-form,
.l2tms-user-admin-shell .l2tms-user-detail-panel > form {
    gap: 5px;
    padding-top: 2px;
}

.l2tms-user-admin-shell .l2tms-detail-two-col {
    gap: 6px;
}

.l2tms-user-admin-shell .l2tms-contract-detail-panel,
.l2tms-user-admin-shell .l2tms-company-partner-detail-panel,
.l2tms-user-admin-shell .l2tms-compact-detail-panel {
    padding: 10px 12px;
}

.l2tms-user-admin-shell .l2tms-contract-detail-panel > .l2tms-detail-form,
.l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form,
.l2tms-user-admin-shell .l2tms-compact-detail-panel > .l2tms-detail-form,
.l2tms-user-admin-shell .l2tms-compact-detail-panel > form {
    column-gap: 8px;
    row-gap: 5px;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .l2tms-radio-block,
.l2tms-user-admin-shell .l2tms-contract-detail-panel > .l2tms-detail-form > .l2tms-radio-block,
.l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > .l2tms-radio-block {
    grid-template-columns: minmax(56px, auto) minmax(0, 1fr);
    gap: 6px;
    min-height: 27px;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .radio-btn-center {
    gap: 5px;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel .radio-center {
    min-height: 26px;
    min-width: 50px;
    padding: 3px 8px;
    font-size: 11.5px;
}

.l2tms-user-admin-shell .l2tms-auth-user-layout .l2tms-panel-head {
    min-height: 48px;
}

.l2tms-user-admin-shell .l2tms-auth-user-layout input[type="date"].form-control-sm {
    height: 27px;
    font-size: 11.5px;
}

/* Common code management layout */
.l2tms-user-admin-shell .l2tms-code-page {
  height: calc(100vh - var(--eg-topbar-height));
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.l2tms-user-admin-shell .l2tms-code-workspace {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.l2tms-code-groups,
.l2tms-code-card {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--eg-line);
  border-radius: var(--eg-radius);
  background: var(--eg-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.l2tms-code-editor {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
}

.l2tms-code-group-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.l2tms-code-group-item {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--eg-line);
  border-radius: 8px;
  background: var(--eg-surface);
  color: var(--eg-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--eg-fast), background var(--eg-fast), box-shadow var(--eg-fast), transform var(--eg-fast);
}

.l2tms-code-group-item:hover {
  border-color: rgba(var(--eg-primary-rgb), .34);
  background: var(--eg-primary-soft);
}

.l2tms-code-group-item.active {
  border-color: rgba(var(--eg-primary-rgb), .48);
  background: color-mix(in srgb, var(--eg-primary) 8%, #fff);
  box-shadow: inset 3px 0 0 var(--eg-primary);
}

.l2tms-code-group-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.l2tms-code-group-cd {
  color: var(--eg-primary);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
}

.l2tms-code-group-nm {
  overflow: hidden;
  color: var(--eg-text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.l2tms-code-form {
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(180px, 1fr) minmax(150px, auto) minmax(220px, 1.2fr);
  gap: 8px 10px;
  align-items: end;
}

.l2tms-code-form label {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}

.l2tms-code-form label > span {
  color: #3b4351;
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1.2;
}

.l2tms-code-form .form-control,
.l2tms-code-form select.form-control {
  min-height: 27px;
  height: 27px;
  padding: 3px 7px;
  font-size: 12.5px;
  line-height: 1.2;
}

.l2tms-code-use-field {
  align-self: end;
}

.l2tms-code-use-pill-group {
  min-height: 27px;
}

.l2tms-code-detail-card {
  flex: 1 1 auto;
}

.l2tms-code-detail-card .l2tms-panel-head {
  gap: 10px;
}

.l2tms-code-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.l2tms-code-row-actions .btn {
  min-height: 27px;
  padding: 4px 8px;
  font-size: 12px;
}

.l2tms-code-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.l2tms-code-table-wrap .l2tms-user-table {
  min-width: 720px;
}

.l2tms-code-table-wrap .form-control-sm {
  min-height: 27px;
  height: 27px;
  padding: 3px 7px;
  font-size: 12px;
}

.l2tms-code-table-wrap tbody tr.active td,
.l2tms-code-table-wrap tbody tr.selected td {
  background: color-mix(in srgb, var(--eg-primary) 8%, #fff);
}

.l2tms-code-page .l2tms-empty-cell {
  display: table-cell;
  color: var(--eg-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
}

.l2tms-code-group-list .l2tms-empty-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border: 1px dashed var(--eg-line-strong);
  border-radius: 8px;
  background: var(--eg-surface-muted);
}

@media (max-width: 1100px) {
  .l2tms-user-admin-shell .l2tms-code-workspace {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .l2tms-user-admin-shell .l2tms-code-page {
    overflow: auto;
  }

  .l2tms-code-groups {
    min-height: 260px;
  }

  .l2tms-code-editor {
    min-height: 520px;
  }

  .l2tms-code-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .l2tms-code-form {
    grid-template-columns: 1fr;
  }
}

/* Auth action permission layout */
.l2tms-action-permission-table td:first-child,
.l2tms-action-permission-table th:first-child {
  width: 104px;
  text-align: center;
}

.l2tms-action-code-pill,
.l2tms-action-api-pill {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 4px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.l2tms-action-code-pill {
  color: var(--eg-primary);
  background: var(--eg-primary-soft);
  border-color: rgba(var(--eg-primary-rgb), .18);
}

.l2tms-action-api-pill {
  max-width: 520px;
}
/* Compact data grid and detail form density. */
.l2tms-user-admin-shell .l2tms-grid-host,
.l2tms-user-admin-shell .l2tms-table-host,
.l2tms-user-admin-shell .l2tms-grid-host > .l2tms-realgrid-host,
.l2tms-user-admin-shell .l2tms-table-host > .l2tms-realgrid-host {
  font-size: 12px;
}

.l2tms-user-admin-shell .l2tms-grid-host,
.l2tms-user-admin-shell .l2tms-table-host {
  padding: 9px;
}

.l2tms-user-admin-shell .l2tms-grid-host {
  height: calc(100vh - 260px);
  min-height: 320px;
}

.l2tms-user-admin-shell .l2tms-table-host .l2tms-user-table,
.l2tms-user-admin-shell .l2tms-grid-host .l2tms-user-table {
  font-size: 12px;
}

.l2tms-user-admin-shell .l2tms-table-host .l2tms-user-table th,
.l2tms-user-admin-shell .l2tms-grid-host .l2tms-user-table th {
  padding: 6px 9px;
  font-size: 11px;
  line-height: 1.15;
}

.l2tms-user-admin-shell .l2tms-table-host .l2tms-user-table td,
.l2tms-user-admin-shell .l2tms-grid-host .l2tms-user-table td {
  padding: 6px 9px;
  font-size: 12px;
  line-height: 1.2;
}

.l2tms-user-admin-shell .form-horizontal.l2tms-detail-form,
.l2tms-user-admin-shell .l2tms-detail-form.form-horizontal,
.l2tms-user-admin-shell .l2tms-detail-form {
  font-size: 12px;
  gap: 5px;
}

.l2tms-user-admin-shell .form-horizontal.l2tms-detail-form label,
.l2tms-user-admin-shell .l2tms-detail-form.form-horizontal label,
.l2tms-user-admin-shell .l2tms-detail-form label,
.l2tms-user-admin-shell .form-horizontal.l2tms-detail-form .l2tms-radio-block,
.l2tms-user-admin-shell .l2tms-detail-form.form-horizontal .l2tms-radio-block,
.l2tms-user-admin-shell .l2tms-detail-form .l2tms-radio-block {
  gap: 3px;
}

.l2tms-user-admin-shell .form-horizontal.l2tms-detail-form label > span,
.l2tms-user-admin-shell .l2tms-detail-form.form-horizontal label > span,
.l2tms-user-admin-shell .l2tms-detail-form label > span,
.l2tms-user-admin-shell .form-horizontal.l2tms-detail-form .l2tms-radio-block > span,
.l2tms-user-admin-shell .l2tms-detail-form.form-horizontal .l2tms-radio-block > span,
.l2tms-user-admin-shell .l2tms-detail-form .l2tms-radio-block > span {
  font-size: 11.5px;
  line-height: 1.15;
}

.l2tms-user-admin-shell .form-horizontal.l2tms-detail-form .form-control,
.l2tms-user-admin-shell .form-horizontal.l2tms-detail-form .form-select,
.l2tms-user-admin-shell .form-horizontal.l2tms-detail-form select.form-control,
.l2tms-user-admin-shell .l2tms-detail-form.form-horizontal .form-control,
.l2tms-user-admin-shell .l2tms-detail-form.form-horizontal .form-select,
.l2tms-user-admin-shell .l2tms-detail-form.form-horizontal select.form-control,
.l2tms-user-admin-shell .l2tms-detail-form .form-control,
.l2tms-user-admin-shell .l2tms-detail-form .form-select,
.l2tms-user-admin-shell .l2tms-detail-form select.form-control {
  min-height: 26px;
  height: 26px;
  padding: 3px 7px;
  font-size: 12px;
  line-height: 1.15;
}

.l2tms-user-admin-shell .form-horizontal.l2tms-detail-form textarea.form-control,
.l2tms-user-admin-shell .l2tms-detail-form.form-horizontal textarea.form-control,
.l2tms-user-admin-shell .l2tms-detail-form textarea.form-control {
  height: auto;
  min-height: 54px;
  padding-top: 5px;
  padding-bottom: 5px;
}

/* Company partner detail: keep label area fixed and let controls fill the rest. */
.l2tms-user-admin-shell .l2tms-company-partner-detail-panel {
  --eg-detail-label-width: 86px;
}

.l2tms-user-admin-shell .l2tms-user-grid-panel > .l2tms-panel-head,
.l2tms-user-admin-shell .l2tms-user-detail-panel > .l2tms-panel-head {
  height: 30px;
  min-height: 30px;
  padding-top: 4px;
  padding-bottom: 4px;
  box-sizing: border-box;
}

.l2tms-user-admin-shell .l2tms-panel-head h2 {
  font-size: 12.5px;
  line-height: 1.05;
}

.l2tms-user-admin-shell .l2tms-panel-head span,
.l2tms-user-admin-shell .l2tms-panel-head div {
  line-height: 1.05;
}

.l2tms-user-admin-shell .l2tms-panel-head .btn-sm {
  min-height: 22px;
  height: 22px;
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: 11.5px;
}

.l2tms-kicker {
  display: none !important;
}

.l2tms-user-admin-shell .l2tms-user-detail-panel > .l2tms-panel-head {
  margin: -10px -12px 0;
  padding-left: 12px;
  padding-right: 12px;
  border-bottom: 1px solid var(--eg-line);
}

.l2tms-user-admin-shell .l2tms-user-detail-panel > .l2tms-detail-form,
.l2tms-user-admin-shell .l2tms-user-detail-panel > form {
  column-gap: 12px;
}

/* Panel title bands: distinguish list/detail sections without increasing screen height. */
.l2tms-user-admin-shell .l2tms-user-grid-panel > .l2tms-panel-head,
.l2tms-user-admin-shell .l2tms-user-detail-panel > .l2tms-panel-head,
.l2tms-user-admin-shell .l2tms-code-card > .l2tms-panel-head,
.l2tms-user-admin-shell .l2tms-code-group-card > .l2tms-panel-head,
.l2tms-user-admin-shell .l2tms-code-editor-card > .l2tms-panel-head,
.l2tms-user-admin-shell .l2tms-code-detail-card > .l2tms-panel-head {
  border-bottom-color: rgba(var(--eg-primary-rgb), .22);
  background: linear-gradient(90deg, rgba(var(--eg-primary-rgb), .12), rgba(var(--eg-primary-rgb), .045) 44%, #fff);
  box-shadow: inset 3px 0 0 var(--eg-primary);
}

.l2tms-user-admin-shell .l2tms-user-grid-panel > .l2tms-panel-head h2,
.l2tms-user-admin-shell .l2tms-user-detail-panel > .l2tms-panel-head h2,
.l2tms-user-admin-shell .l2tms-code-card > .l2tms-panel-head h2,
.l2tms-user-admin-shell .l2tms-code-group-card > .l2tms-panel-head h2,
.l2tms-user-admin-shell .l2tms-code-editor-card > .l2tms-panel-head h2,
.l2tms-user-admin-shell .l2tms-code-detail-card > .l2tms-panel-head h2 {
  color: #1f2937;
}

.l2tms-user-admin-shell .l2tms-panel-head > div:has(> #totalCount),
.l2tms-user-admin-shell .l2tms-panel-head > #groupCount,
.l2tms-user-admin-shell .l2tms-panel-head > #menuCount,
.l2tms-user-admin-shell .l2tms-panel-head > #actionCount,
.l2tms-user-admin-shell .l2tms-panel-head-actions > #memberCount,
.l2tms-user-admin-shell .l2tms-panel-head-actions > #candidateCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 21px;
  padding: 3px 8px;
  border: 1px solid rgba(var(--eg-primary-rgb), .22);
  border-radius: 999px;
  background: rgba(var(--eg-primary-rgb), .075);
  color: var(--eg-primary);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.l2tms-user-admin-shell .l2tms-panel-head #totalCount,
.l2tms-user-admin-shell .l2tms-panel-head #groupCount,
.l2tms-user-admin-shell .l2tms-panel-head #menuCount,
.l2tms-user-admin-shell .l2tms-panel-head #actionCount,
.l2tms-user-admin-shell .l2tms-panel-head #memberCount,
.l2tms-user-admin-shell .l2tms-panel-head #candidateCount {
  color: var(--eg-primary);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form {
  column-gap: 14px;
}

.l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > label,
.l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > .l2tms-radio-block,
.l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > .l2tms-role-select {
  display: grid;
  grid-template-columns: var(--eg-detail-label-width) minmax(0, 1fr);
  column-gap: 7px;
  row-gap: 3px;
  align-items: center;
  min-width: 0;
}

.l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > label > span,
.l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > .l2tms-radio-block > span,
.l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > .l2tms-role-select > span {
  width: var(--eg-detail-label-width);
  min-width: var(--eg-detail-label-width);
  max-width: var(--eg-detail-label-width);
  white-space: nowrap;
}

.l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > label > .form-control,
.l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > label > .form-select,
.l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > label > select.form-control,
.l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > .l2tms-radio-block > .radio-btn-center,
.l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > .l2tms-role-select > .l2tms-role-pill-group {
  width: 100%;
  min-width: 0;
}

.l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > .l2tms-role-select > .l2tms-role-pill-group {
  min-height: 26px;
  gap: 5px;
}

@media (max-width: 900px) {
  .l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > label,
  .l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > .l2tms-radio-block,
  .l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > .l2tms-role-select {
    grid-template-columns: 1fr;
  }

  .l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > label > span,
  .l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > .l2tms-radio-block > span,
  .l2tms-user-admin-shell .l2tms-company-partner-detail-panel > .l2tms-detail-form > .l2tms-role-select > span {
    width: auto;
    min-width: 0;
    max-width: none;
  }
}
/* Reusable detail-panel spacing and compact nested grid. */
.l2tms-user-admin-shell .l2tms-user-detail-panel > .l2tms-detail-form,
.l2tms-user-admin-shell .l2tms-user-detail-panel > form {
  padding-top: 9px;
}

.l2tms-detail-subsection,
.l2tms-partner-account-box {
  border-top: 1px solid #e5e7eb;
  margin-top: 4px;
  padding-top: 5px;
  display: block;
}

.l2tms-detail-inline-panel-head,
.l2tms-inline-panel-head {
  min-height: 24px;
  height: 24px;
  padding: 0 0 4px 0;
  border-bottom: 0;
}

.l2tms-detail-inline-panel-head h2,
.l2tms-inline-panel-head h2 {
  font-size: 12px;
  margin: 0;
  line-height: 1;
}

.l2tms-detail-inline-panel-head .l2tms-panel-head-actions,
.l2tms-inline-panel-head .l2tms-panel-head-actions {
  gap: 4px;
}

.l2tms-detail-inline-panel-head .btn-sm,
.l2tms-inline-panel-head .btn-sm {
  height: 21px;
  min-height: 21px;
  padding: 1px 6px;
  font-size: 11px;
}

.l2tms-user-admin-shell .l2tms-detail-subgrid-host,
.l2tms-user-admin-shell .l2tms-account-grid-host {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

.l2tms-detail-subgrid-host .l2tms-user-table,
.l2tms-account-grid-host .l2tms-user-table {
  margin-bottom: 0;
}

.l2tms-detail-subgrid-host .l2tms-user-table th,
.l2tms-detail-subgrid-host .l2tms-user-table td,
.l2tms-account-grid-host .l2tms-user-table th,
.l2tms-account-grid-host .l2tms-user-table td {
  font-size: 11.5px;
  height: 22px;
  padding: 2px 5px;
  line-height: 1.15;
}

.l2tms-detail-subgrid-host input[type="checkbox"],
.l2tms-account-grid-host input[type="checkbox"] {
  width: 13px;
  height: 13px;
  vertical-align: middle;
}

.l2tms-detail-subgrid-host .l2tms-empty-cell,
.l2tms-account-grid-host .l2tms-empty-cell {
  text-align: center;
  color: #8b95a1;
  height: 44px;
  padding: 6px 8px !important;
}

.l2tms-account-check-col,
.l2tms-account-main-col {
  width: 38px;
  text-align: center;
}

.l2tms-grid-control {
  width: 100%;
  height: 21px;
  border: 1px solid #d7dce5;
  border-radius: 4px;
  background: #fff;
  padding: 1px 5px;
  font-size: 11.5px;
}

.l2tms-grid-control:focus {
  outline: 0;
  border-color: var(--eg-primary, #2563eb);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}

.l2tms-grid-select {
  padding-right: 18px;
}
/* Common grid column separators. Add l2tms-grid-row-lines to grid hosts when vertical cell lines are needed. */
.l2tms-grid-row-lines .l2tms-user-table th,
.l2tms-grid-row-lines .l2tms-user-table td {
  border-right: 1px solid rgba(148, 163, 184, .28);
}

.l2tms-grid-row-lines .l2tms-user-table th:last-child,
.l2tms-grid-row-lines .l2tms-user-table td:last-child {
  border-right: 0;
}
