/* CI4 UI stabilization layer */

/* =================================================================
 * .tbl-list-shell — universal sticky-header + internal-scroll shell
 * 모든 리스트 뷰 테이블에 이 wrapper 를 사용해 헤더 고정 + 내부 스크롤
 * ================================================================= */
.tbl-list-shell {
  overflow-x: auto;
  overflow-y: auto;
  height: calc(100vh - 360px);
  min-height: 220px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}
.tbl-list-shell .table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.tbl-list-shell thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 2;
  background: #f5f7f8 !important;
  box-shadow: 0 2px 0 #ddd;
}

#modal-form .modal-dialog {
  max-width: calc(100vw - 16px);
}

#modal-form .modal-content {
  max-height: calc(100vh - 16px);
  overflow: hidden;
}

#modal-form .modal-body {
  max-height: calc(100vh - 170px);
  overflow: auto;
}

/* Keep bootbox confirmations readable and consistent with ACE skin */
.bootbox .modal-content {
  border-radius: 8px;
  border: 1px solid #d5dde5;
  box-shadow: 0 14px 34px rgba(24, 37, 52, 0.26);
}

.bootbox .modal-header {
  border-bottom: 1px solid #e1e8ef;
  background: #f7fbff;
}

.bootbox .modal-title {
  color: #244a72;
  font-weight: 700;
}

.bootbox .modal-footer .btn {
  border-radius: 6px;
  min-width: 72px;
}

body.no-skin,
body.login-layout {
  --ui-bg: #ecf4f6;
  --ui-bg-deep: #dbe9ec;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f4f9fb;
  --ui-border: rgba(22, 71, 92, 0.12);
  --ui-border-strong: rgba(17, 78, 102, 0.18);
  --ui-text: #18364b;
  --ui-muted: #667f8f;
  --ui-accent: #0f7390;
  --ui-accent-strong: #0e947f;
  --ui-accent-soft: rgba(15, 115, 144, 0.10);
  --ui-sidebar: linear-gradient(180deg, #16354a 0%, #102534 100%);
  --ui-navbar: linear-gradient(135deg, #174059 0%, #0d6f88 55%, #11a089 100%);
  --ui-shadow: 0 18px 44px rgba(16, 39, 57, 0.12);
  --ui-shadow-soft: 0 10px 26px rgba(16, 39, 57, 0.08);
  background:
    radial-gradient(circle at top left, rgba(17, 160, 137, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(15, 115, 144, 0.10), transparent 28%),
    linear-gradient(180deg, var(--ui-bg) 0%, #f5fafb 100%);
  color: var(--ui-text);
}

body.no-skin {
  min-height: 100vh;
}

body.no-skin .main-container,
body.login-layout .main-container {
  background: transparent;
}

body.no-skin .main-content {
  min-height: calc(100vh - 60px);
  background: transparent;
}

body.no-skin #main-container:before,
body.no-skin #sidebar:before {
  display: none;
}

body.no-skin .navbar {
  min-height: 60px;
  border: 0;
  background: var(--ui-navbar);
  box-shadow: 0 10px 26px rgba(8, 39, 58, 0.18);
}

body.no-skin .navbar .navbar-container {
  padding-left: 18px;
  padding-right: 18px;
}

body.no-skin .navbar .navbar-brand,
body.no-skin .navbar .navbar-brand small,
body.no-skin .ace-nav > li > a,
body.no-skin .ace-nav > li > a .ace-icon,
body.no-skin .ace-nav > li > a .glyphicon {
  color: #f5fcff !important;
}

body.no-skin .navbar .navbar-brand {
  height: 60px;
  padding-top: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

body.no-skin .navbar .navbar-toggle {
  margin-top: 12px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
}

body.no-skin .navbar .navbar-toggle .icon-bar {
  background-color: #fff;
}

body.no-skin .ace-nav > li {
  border-left: 1px solid rgba(255, 255, 255, 0.10);
}

body.no-skin .ace-nav > li > a {
  height: 60px;
  background: transparent !important;
}

body.no-skin .ace-nav > li.open > a,
body.no-skin .ace-nav > li > a:hover,
body.no-skin .ace-nav > li > a:focus {
  background: rgba(255, 255, 255, 0.10) !important;
}

body.no-skin .navbar .dropdown-menu {
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  box-shadow: var(--ui-shadow-soft);
}

body.no-skin #sidebar {
  border-right: 0;
  background: var(--ui-sidebar);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

body.no-skin .sidebar-shortcuts,
body.no-skin .sidebar-shortcuts-mini,
body.no-skin .sidebar-toggle {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

body.no-skin .sidebar-shortcuts-large > .btn {
  border-radius: 12px;
  box-shadow: none;
}

body.no-skin .nav-list > li {
  border-color: rgba(255, 255, 255, 0.06);
}

body.no-skin .nav-list > li > a {
  background: transparent;
  color: rgba(236, 246, 250, 0.82);
  font-weight: 600;
}

body.no-skin .nav-list > li > a > .menu-icon,
body.no-skin .nav-list > li .submenu > li > a > .menu-icon {
  color: rgba(142, 210, 214, 0.88);
}

body.no-skin .nav-list > li:hover > a,
body.no-skin .nav-list > li.active > a,
body.no-skin .nav-list > li.open > a {
  background: linear-gradient(90deg, rgba(17, 160, 137, 0.20), rgba(16, 79, 102, 0.18));
  color: #ffffff;
}

body.no-skin .nav-list > li.active:before {
  display: block;
  background: linear-gradient(180deg, #14a392, #6fe0cf);
}

body.no-skin .nav-list > li.active > a:after {
  border-right-color: #f5fafb;
}

body.no-skin .nav-list > li .submenu {
  background: rgba(5, 14, 23, 0.20);
  border-top-color: rgba(255, 255, 255, 0.05);
}

body.no-skin .nav-list > li .submenu > li > a {
  border-top-color: rgba(255, 255, 255, 0.05);
  background: transparent;
  color: rgba(225, 238, 244, 0.76);
}

body.no-skin .nav-list > li .submenu > li > a > .menu-text,
body.no-skin .nav-list > li .submenu > li > a > span,
body.no-skin .nav-list > li .submenu > li > a > .menu-icon {
  color: inherit !important;
}

body.no-skin .nav-list > li .submenu > li:hover > a,
body.no-skin .nav-list > li .submenu > li.active > a {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(18, 155, 138, 0.24), rgba(17, 87, 111, 0.18));
}

body.no-skin .nav-list > li .submenu > li.active > a {
  font-weight: 700;
  box-shadow: inset 3px 0 0 #6fe0cf;
}

body.no-skin .sidebar-toggle > .ace-icon {
  border-color: rgba(255, 255, 255, 0.12);
  color: #dceef2;
  background: rgba(255, 255, 255, 0.06);
}

body.no-skin .main-content-inner {
  padding: 18px 18px 10px;
}

body.no-skin .breadcrumbs {
  margin: 0 0 18px;
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(17, 160, 137, 0.10), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 251, 0.94));
  box-shadow: var(--ui-shadow-soft);
}

body.no-skin .breadcrumb {
  padding: 14px 20px;
}

body.no-skin .breadcrumb > li,
body.no-skin .breadcrumb > li > a,
body.no-skin .breadcrumb > li + li:before,
body.no-skin .breadcrumb .home-icon {
  color: #5b7587;
}

body.no-skin .page-content {
  padding: 0;
  background: transparent;
}

body.no-skin .page-header {
  margin: 0 0 18px;
  padding: 24px 28px;
  border: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at left top, rgba(17, 160, 137, 0.15), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #f4fafb 62%, #eef7f4 100%);
  box-shadow: var(--ui-shadow);
}

body.no-skin .page-header h1 {
  margin: 0;
  color: var(--ui-text);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.no-skin .page-header h1 small {
  display: block;
  margin-top: 6px;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.5;
}

body.no-skin .widget-box {
  margin-bottom: 18px;
  border: 1px solid var(--ui-border) !important;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 251, 0.96));
  box-shadow: var(--ui-shadow-soft);
}

body.no-skin .widget-header {
  min-height: 56px;
  border-color: var(--ui-border);
  border-radius: 22px 22px 0 0;
  color: var(--ui-text);
  background:
    linear-gradient(135deg, rgba(15, 115, 144, 0.08), rgba(17, 160, 137, 0.10)),
    #ffffff;
}

body.no-skin .widget-header > .widget-title,
body.no-skin .widget-header > :first-child {
  color: var(--ui-text);
  font-weight: 800;
}

body.no-skin .widget-body {
  border-top: 1px solid rgba(15, 115, 144, 0.08);
  background: transparent;
}

body.no-skin .widget-main {
  color: var(--ui-text);
  background: transparent;
}

body.no-skin .table {
  border-color: var(--ui-border);
  background: transparent;
}

body.no-skin .table > thead > tr > th {
  border-bottom: 1px solid var(--ui-border-strong);
  border-top: 0;
  background: rgba(15, 115, 144, 0.05);
  color: #234359;
  font-weight: 800;
}

body.no-skin .table-bordered > thead > tr > th,
body.no-skin .table-bordered > tbody > tr > td,
body.no-skin .table-bordered > tbody > tr > th {
  border-color: var(--ui-border);
}

body.no-skin .table-striped > tbody > tr:nth-of-type(odd) {
  background: rgba(16, 114, 143, 0.03);
}

body.no-skin .table-hover > tbody > tr:hover {
  background: rgba(17, 160, 137, 0.06);
}

body.no-skin .form-control,
body.no-skin textarea,
body.no-skin select {
  border-color: rgba(18, 71, 92, 0.16);
  border-radius: 12px;
  color: var(--ui-text);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 2px rgba(17, 45, 64, 0.04);
}

body.no-skin .form-control:focus,
body.no-skin textarea:focus,
body.no-skin select:focus {
  border-color: rgba(15, 115, 144, 0.36);
  box-shadow: 0 0 0 4px rgba(15, 115, 144, 0.08);
}

body.no-skin .control-label,
body.no-skin label {
  color: #36566b;
}

body.no-skin .btn {
  border-radius: 12px;
  border-width: 0;
  box-shadow: 0 10px 22px rgba(14, 74, 98, 0.14);
  text-shadow: none;
}

body.no-skin .btn:hover,
body.no-skin .btn:focus {
  transform: translateY(-1px);
}

body.no-skin .btn-primary,
body.no-skin .btn-info,
body.no-skin .btn-success,
body.no-skin .btn-primary:hover,
body.no-skin .btn-info:hover,
body.no-skin .btn-success:hover,
body.no-skin .btn-primary:focus,
body.no-skin .btn-info:focus,
body.no-skin .btn-success:focus,
body.no-skin .btn-primary:active,
body.no-skin .btn-info:active,
body.no-skin .btn-success:active {
  color: #f7fcff !important;
  background: linear-gradient(135deg, #16516f 0%, #0d7b8c 55%, #14a392 100%) !important;
}

body.no-skin .btn-warning,
body.no-skin .btn-warning:hover,
body.no-skin .btn-warning:focus,
body.no-skin .btn-warning:active {
  color: #fffaf2 !important;
  background: linear-gradient(135deg, #b86814 0%, #e19e2b 100%) !important;
}

body.no-skin .btn-danger,
body.no-skin .btn-danger:hover,
body.no-skin .btn-danger:focus,
body.no-skin .btn-danger:active {
  color: #fff7f7 !important;
  background: linear-gradient(135deg, #8c3a33 0%, #c85d53 100%) !important;
}

body.no-skin .btn-default,
body.no-skin .btn-default:hover,
body.no-skin .btn-default:focus,
body.no-skin .btn-default:active,
body.no-skin .btn-white,
body.no-skin .btn-white:hover,
body.no-skin .btn-white:focus,
body.no-skin .btn-white:active,
body.no-skin .btn.btn-sm:not(.btn-primary):not(.btn-info):not(.btn-success):not(.btn-warning):not(.btn-danger) {
  color: var(--ui-text) !important;
  background: linear-gradient(180deg, #ffffff 0%, #eef5f7 100%) !important;
  border: 1px solid var(--ui-border) !important;
  box-shadow: none;
}

body.no-skin .btn,
body.no-skin .btn .ace-icon,
body.no-skin .btn .menu-icon,
body.no-skin .btn .glyphicon,
body.no-skin .btn span,
body.login-layout .btn,
body.login-layout .btn .ace-icon,
body.login-layout .btn .menu-icon,
body.login-layout .btn .glyphicon,
body.login-layout .btn span,
.liveview-toolbar-actions .btn,
.liveview-toolbar-actions .btn .ace-icon,
.liveview-toolbar-actions .btn .menu-icon,
.liveview-toolbar-actions .btn .glyphicon,
.liveview-action .btn,
.liveview-action .btn .ace-icon,
.liveview-action .btn .menu-icon,
.liveview-action .btn .glyphicon,
#TriggerDiv .btn,
#TriggerDiv .btn .ace-icon,
#TriggerDiv .btn .menu-icon,
#TriggerDiv .btn .glyphicon,
#MediaDivAdd .btn,
#MediaDivAdd .btn .ace-icon,
#MediaDivAdd .btn .menu-icon,
#MediaDivAdd .btn .glyphicon {
  color: inherit;
}

body.no-skin .label.label-primary,
body.no-skin .label-info,
body.no-skin .badge-info {
  background-color: #13819e !important;
}

body.no-skin .label.label-inverse,
body.no-skin .label.arrowed,
body.no-skin .label.arrowed-in {
  color: #1d4258 !important;
  background-color: rgba(15, 115, 144, 0.10) !important;
}

body.no-skin .label.arrowed:before,
body.no-skin .label.arrowed-in:before,
body.no-skin .label.arrowed-right:after,
body.no-skin .label.arrowed-in-right:after {
  border-color: transparent rgba(15, 115, 144, 0.10) transparent transparent !important;
}

body.no-skin .footer .footer-inner {
  border-top: 0;
  background: transparent;
}

body.no-skin .footer .footer-content {
  margin: 10px 18px 18px;
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  color: #5f7888;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--ui-shadow-soft);
}

body.no-skin .footer .footer-content a,
body.no-skin .footer .footer-content .blue {
  color: #0f7893 !important;
}

body.no-skin .modal-content {
  border: 1px solid var(--ui-border);
  border-radius: 20px;
  box-shadow: 0 26px 56px rgba(14, 36, 52, 0.22);
}

body.no-skin .modal-header {
  border-bottom-color: var(--ui-border);
  background: linear-gradient(180deg, #fbfdff, #f2f8fa);
}

body.no-skin .modal-footer {
  border-top-color: var(--ui-border);
  background: #f8fcfd;
}

body.login-layout {
  min-height: 100vh;
}

body.login-layout .main-content {
  padding-top: 5vh;
}

body.login-layout .login-container {
  width: 420px;
}

body.login-layout .center h1,
body.login-layout .center h4 {
  text-shadow: none;
}

body.login-layout #id-text2,
body.login-layout .white,
body.login-layout #id-company-text {
  color: var(--ui-text) !important;
}

body.login-layout .login-box .widget-body {
  border: 1px solid var(--ui-border);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 251, 0.96));
  box-shadow: 0 26px 52px rgba(12, 36, 51, 0.16);
}

body.login-layout .login-box .widget-main {
  padding: 30px 28px 20px;
  background: transparent;
}

body.login-layout .login-box .toolbar {
  border-top: 1px solid var(--ui-border);
  border-radius: 0 0 26px 26px;
  background: linear-gradient(180deg, #f5fafb, #eef5f7);
}

body.login-layout .header.blue,
body.login-layout .blue {
  color: #16627b !important;
}

body.login-layout .form-control {
  height: 44px;
  border-color: rgba(18, 71, 92, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
}

body.login-layout .input-icon > .ace-icon {
  color: #5d7b8f;
}

body.login-layout .btn-primary,
body.login-layout .btn-info,
body.login-layout .btn-success {
  color: #f7fcff !important;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #16516f 0%, #0d7b8c 55%, #14a392 100%) !important;
  box-shadow: 0 12px 24px rgba(14, 78, 102, 0.18);
}

body.login-layout .toolbar a,
body.login-layout .toolbar .bigger-120,
body.login-layout .toolbar select {
  color: #3f5f73;
}

@media (max-width: 991px) {
  body.no-skin .main-content-inner {
    padding: 14px 14px 8px;
  }

  body.no-skin .page-header {
    padding: 20px 22px;
    border-radius: 20px;
  }

  body.no-skin .widget-box {
    border-radius: 18px;
  }

  body.no-skin .widget-header {
    border-radius: 18px 18px 0 0;
  }
}

@media (max-width: 767px) {
  body.no-skin .navbar .navbar-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.no-skin .breadcrumb {
    padding: 12px 14px;
  }

  body.no-skin .page-header {
    padding: 18px 16px;
  }

  body.no-skin .page-header h1 {
    font-size: 24px;
  }

  body.login-layout .login-container {
    width: 100%;
  }
}

.liveview-shell {
  --liveview-ink: #153047;
  --liveview-muted: #62778b;
  --liveview-line: rgba(31, 79, 112, 0.12);
  --liveview-panel: linear-gradient(180deg, #fbfdff 0%, #f3f8fc 100%);
  --liveview-accent: linear-gradient(135deg, #0b6e9d 0%, #12a594 100%);
  --liveview-shadow: 0 22px 48px rgba(18, 46, 67, 0.14);
}

.liveview-shell .breadcrumbs {
  margin: 0 0 18px;
  border: 1px solid var(--liveview-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(18, 165, 148, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 253, 0.96));
  box-shadow: 0 10px 28px rgba(17, 43, 63, 0.08);
}

.liveview-shell .breadcrumb {
  padding: 14px 20px;
}

.liveview-shell .breadcrumb > li,
.liveview-shell .breadcrumb > li > a,
.liveview-shell .breadcrumb > li + li:before {
  color: #557088;
}

.liveview-page {
  padding: 0;
  background: transparent;
}

.liveview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 20px;
  padding: 28px 30px;
  border: 0;
  border-radius: 26px;
  color: var(--liveview-ink);
  background:
    radial-gradient(circle at top left, rgba(18, 165, 148, 0.20), transparent 28%),
    radial-gradient(circle at right center, rgba(11, 110, 157, 0.18), transparent 25%),
    linear-gradient(135deg, #ffffff 0%, #f3f9fc 55%, #edf7f4 100%);
  box-shadow: var(--liveview-shadow);
}

.liveview-header-copy {
  max-width: 720px;
}

.liveview-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #0c6f86;
  background: rgba(12, 111, 134, 0.10);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.liveview-header h1 {
  margin: 14px 0 8px;
  color: #143149;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.liveview-subtitle {
  margin: 0;
  color: var(--liveview-muted);
  font-size: 15px;
  line-height: 1.6;
}

.liveview-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(18, 165, 148, 0.18);
  border-radius: 18px;
  color: #0e5f77;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.liveview-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--liveview-line);
  border-radius: 28px;
  background: var(--liveview-panel);
  box-shadow: var(--liveview-shadow);
}

.liveview-panel:before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(18, 165, 148, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.liveview-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.liveview-toolbar-main {
  display: flex;
  flex: 1 1 520px;
  flex-wrap: wrap;
  gap: 14px;
}

.liveview-select-wrap,
.liveview-address-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.liveview-select-wrap {
  min-width: 220px;
}

.liveview-address-wrap {
  flex: 1 1 320px;
  min-width: 280px;
}

.liveview-field-label {
  color: #5a7488;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.liveview-select-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(18, 66, 92, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.liveview-select-shell .fa {
  color: #13819e;
  font-size: 14px;
}

.liveview-select-shell select,
.liveview-shell #stream_selector {
  width: 100%;
  border: 0;
  background: transparent;
  color: #16354d;
  font-size: 14px;
  font-weight: 700;
  outline: 0;
}

.liveview-address-wrap #rtsp_address {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  color: #f8fdff;
  background: var(--liveview-accent);
  box-shadow: 0 16px 30px rgba(10, 95, 121, 0.24);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: none;
}

.liveview-address-wrap #rtsp_address:before,
.liveview-address-wrap #rtsp_address:after {
  display: none;
}

.liveview-toolbar-actions {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 10px;
}

.liveview-action {
  float: none !important;
  margin: 0;
  padding: 0 !important;
}

.liveview-toolbar-actions .btn,
.liveview-action .btn,
#TriggerDiv .btn,
#MediaDivAdd .btn {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  color: #f7fcff !important;
  background: linear-gradient(135deg, #144b67 0%, #0e7b84 100%);
  box-shadow: 0 12px 24px rgba(14, 78, 102, 0.18);
  font-size: 13px;
  font-weight: 700;
  line-height: 42px;
}

.liveview-toolbar-actions .btn:hover,
.liveview-action .btn:hover,
#TriggerDiv .btn:hover,
#MediaDivAdd .btn:hover,
.liveview-toolbar-actions .btn:focus,
.liveview-action .btn:focus,
#TriggerDiv .btn:focus,
#MediaDivAdd .btn:focus {
  background: linear-gradient(135deg, #125a7d 0%, #10a08a 100%);
}

.liveview-message-row {
  position: relative;
  z-index: 1;
  min-height: 26px;
  margin-bottom: 14px;
}

.liveview-message {
  float: none !important;
  margin: 0;
  padding: 0 !important;
}

.liveview-message .label,
.liveview-message label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 183, 77, 0.16);
  color: #9a4f00 !important;
  font-size: 12px;
  font-weight: 700;
}

.liveview-stage {
  position: relative;
  z-index: 1;
  padding: 10px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(16, 36, 54, 0.96), rgba(7, 18, 29, 0.98));
}

.liveview-stage-glow {
  position: absolute;
  inset: auto 16% -60px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(17, 160, 152, 0.32) 0%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

.liveview-stage-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 214, 220, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(11, 18, 30, 0.96), rgba(12, 31, 43, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 48px rgba(0, 0, 0, 0.34);
}

.liveview-stage-frame:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 90px);
  pointer-events: none;
}

.liveview-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 420px;
  object-fit: contain;
  background: #02070d;
}

.liveview-modal .modal-content {
  border-radius: 22px;
  border: 1px solid rgba(20, 75, 103, 0.12);
  box-shadow: 0 28px 60px rgba(11, 28, 44, 0.30);
}

.liveview-modal .modal-header {
  padding: 16px 20px 0;
  border-bottom: 0;
}

.liveview-modal .modal-header .blue {
  color: #173b56 !important;
  font-weight: 800;
}

.liveview-modal .modal-body {
  padding: 18px 20px 20px;
}

.lpd-shell {
  --lpd-ink: #17344a;
  --lpd-muted: #647c8d;
  --lpd-line: rgba(23, 74, 97, 0.12);
  --lpd-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 251, 0.96));
  --lpd-accent: linear-gradient(135deg, #15516f 0%, #0d7d8c 55%, #13a291 100%);
  --lpd-shadow: 0 20px 42px rgba(15, 42, 58, 0.12);
}

.lpd-page {
  padding: 0;
}

.lpd-header {
  position: sticky;
  top: -20px; /* .page-content padding-top 상쇄 */
  z-index: 100;
  background: #f1f5f7; /* 배경색에 맞춰 조정 */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px !important;
  padding-top: 0 !important;
  padding-bottom: 10px !important;
}

.lpd-header h1 {
  margin: 4px 8px 0 !important;
  font-size: 28px !important;
  line-height: 1.15;
}

.lpd-header-copy {
  max-width: 760px;
  flex: 1 1 auto;
}

.lpd-header-meta {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.lpd-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: #0d7188;
  background: rgba(13, 113, 136, 0.10);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.lpd-subtitle {
  margin: 6px 0 0;
  color: var(--lpd-muted);
  font-size: 14px;
  line-height: 1.5;
}

.lpd-content-grid {
  row-gap: 14px;
}

.lpd-panel {
  overflow: clip;  /* clip: border-radius clipping 유지, but NOT a scroll container → sticky works */
  position: relative;
  isolation: isolate;
  min-width: 0;
  border: 1px solid rgba(20, 79, 102, 0.10);
  border-radius: 24px !important;
  background: var(--lpd-panel);
  box-shadow: var(--lpd-shadow);
}

.lpd-panel-header {
  display: none;
}

.lpd-panel-header .widget-title {
  color: #f4fbff !important;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.lpd-panel-header .widget-title .ace-icon {
  color: rgba(244, 251, 255, 0.92) !important;
}

.lpd-hwinfo {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 0;
  padding: 0 10px;
  border-radius: 999px;
  color: #0d6983;
  background: rgba(13, 125, 140, 0.10);
  font-size: 11px;
}

.lpd-hwinfo-top {
  margin-top: 8px;
  white-space: nowrap;
}

.lpd-panel-body {
  padding: 10px;
  overflow: visible !important; /* sticky header 유지를 위해 */
}

.lpd-filter-row {
  margin-bottom: 6px;
}

.lpd-filter-col {
  margin-bottom: 0;
}

.lpd-filter-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 46px;
  padding: 6px 10px;
  border: 1px solid var(--lpd-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.lpd-filter-card-right {
  justify-content: flex-end;
}

.lpd-gate-card {
  justify-content: flex-end;
  gap: 8px;
}

.lpd-filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #315165 !important;
  font-weight: 700;
}

.lpd-filter-card .lpd-search-input {
  box-sizing: border-box;
  width: 190px;
  height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(20, 78, 103, 0.16);
  border-radius: 4px;
  background: #fff;
  color: #17344a;
}

.lpd-filter-card .lpd-search-input:focus {
  border-color: rgba(13, 125, 140, 0.52);
  box-shadow: 0 0 0 3px rgba(19, 162, 145, 0.12);
  outline: 0;
}

.lpd-control-btn {
  min-height: 34px;
  border-radius: 4px !important;
  white-space: nowrap;
}

.lpd-select {
  flex: 0 0 auto;
  min-width: 130px;
  height: 34px;
  text-align: center;
  border: 1px solid rgba(20, 78, 103, 0.16);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: #17344a;
}

.lpd-select:focus {
  border-color: rgba(13, 125, 140, 0.52);
  box-shadow: 0 0 0 4px rgba(19, 162, 145, 0.12);
}

.lpd-trigger-btn {
  min-height: 34px;
  padding: 0 12px !important;
  border-radius: 12px !important;
  color: #f6fcff !important;
  background: var(--lpd-accent) !important;
  box-shadow: 0 10px 22px rgba(14, 78, 102, 0.16) !important;
}

.lpd-trigger-btn:hover,
.lpd-trigger-btn:focus {
  color: #f6fcff !important;
  transform: translateY(-1px);
}

.lpd-table-shell {
  display: block;
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  position: relative;
  max-width: 100%;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 109, 133, 0.45) rgba(214, 227, 231, 0.82);
  border: 1px solid var(--lpd-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.lpd-table-shell::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.lpd-table-shell::-webkit-scrollbar-track {
  background: rgba(214, 227, 231, 0.82);
  border-radius: 999px;
}

.lpd-table-shell::-webkit-scrollbar-thumb {
  background: rgba(22, 109, 133, 0.45);
  border-radius: 999px;
}

.lpd-panel-primary .lpd-table-shell {
  height: clamp(260px, 34vh, 430px);
  min-height: 220px;
  overflow: auto;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.lpd-subtable-shell {
  height: clamp(220px, 28vh, 340px);
  min-height: 0;
  overflow: auto;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.lpd-table {
  margin-bottom: 0 !important;
  width: max-content !important;
  min-width: 100%;
  table-layout: auto;
  border-collapse: separate !important;
  border-spacing: 0;
}

.lpd-main-table {
  min-width: 100%;
}

.lpd-subtable {
  min-width: 100%;
}

.lpd-table > thead > tr > th {
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  padding: 8px 10px !important;
  min-width: 0 !important;
  width: auto !important;
  color: #1a445c !important;
  border-color: rgba(20, 78, 103, 0.14) !important;
  background: #edf4f6 !important;
  box-shadow: 0 2px 0 rgba(20, 78, 103, 0.20);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.2;
  font-weight: 800;
  font-size: 12px;
  vertical-align: middle;
}

.lpd-table > thead > tr > th,
.lpd-table > thead > tr > th a,
.lpd-table > thead > tr > th .ace-icon,
.lpd-table > thead > tr > th [class*="sort"],
.lpd-table > thead > tr > th [class*="sorting"] {
  color: #1a445c !important;
}

.lpd-table > tbody > tr > td {
  padding: 7px 10px !important;
  min-width: 0 !important;
  width: auto !important;
  color: var(--lpd-ink);
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.lpd-cell-text {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.lpd-main-table > thead > tr > th,
.lpd-main-table > tbody > tr > td,
.lpd-subtable > thead > tr > th,
.lpd-subtable > tbody > tr > td {
  white-space: normal;
}

.lpd-main-table > thead > tr > th:nth-child(1),
.lpd-main-table > tbody > tr > td:nth-child(1) {
  max-width: 6ch;
}

.lpd-main-table > thead > tr > th:nth-child(2),
.lpd-main-table > tbody > tr > td:nth-child(2) {
  max-width: 8ch;
}

.lpd-main-table > thead > tr > th:nth-child(3),
.lpd-main-table > tbody > tr > td:nth-child(3) {
  max-width: none;
  width: 1%;
}

.lpd-main-table > thead > tr > th:nth-child(4),
.lpd-main-table > tbody > tr > td:nth-child(4) {
  max-width: 12ch;
}

.lpd-main-table > thead > tr > th:nth-child(5),
.lpd-main-table > tbody > tr > td:nth-child(5),
.lpd-main-table > thead > tr > th:nth-child(8),
.lpd-main-table > tbody > tr > td:nth-child(8),
.lpd-main-table > thead > tr > th:nth-child(9),
.lpd-main-table > tbody > tr > td:nth-child(9),
.lpd-main-table > thead > tr > th:nth-child(10),
.lpd-main-table > tbody > tr > td:nth-child(10),
.lpd-main-table > thead > tr > th:nth-child(11),
.lpd-main-table > tbody > tr > td:nth-child(11),
.lpd-main-table > thead > tr > th:nth-child(12),
.lpd-main-table > tbody > tr > td:nth-child(12),
.lpd-main-table > thead > tr > th:nth-child(13),
.lpd-main-table > tbody > tr > td:nth-child(13) {
  max-width: 10ch;
}

.lpd-main-table > thead > tr > th:nth-child(6),
.lpd-main-table > tbody > tr > td:nth-child(6),
.lpd-main-table > thead > tr > th:nth-child(7),
.lpd-main-table > tbody > tr > td:nth-child(7) {
  max-width: 6ch;
}

.lpd-subtable > thead > tr > th:nth-child(1),
.lpd-subtable > tbody > tr > td:nth-child(1) {
  max-width: none;
  width: 1%;
}

.lpd-subtable > thead > tr > th:nth-child(2),
.lpd-subtable > tbody > tr > td:nth-child(2) {
  max-width: 12ch;
}

.lpd-subtable > thead > tr > th:nth-child(3),
.lpd-subtable > tbody > tr > td:nth-child(3),
.lpd-subtable > thead > tr > th:nth-child(6),
.lpd-subtable > tbody > tr > td:nth-child(6),
.lpd-subtable > thead > tr > th:nth-child(7),
.lpd-subtable > tbody > tr > td:nth-child(7),
.lpd-subtable > thead > tr > th:nth-child(8),
.lpd-subtable > tbody > tr > td:nth-child(8),
.lpd-subtable > thead > tr > th:nth-child(9),
.lpd-subtable > tbody > tr > td:nth-child(9),
.lpd-subtable > thead > tr > th:nth-child(10),
.lpd-subtable > tbody > tr > td:nth-child(10) {
  max-width: 10ch;
}

.lpd-subtable > thead > tr > th:nth-child(4),
.lpd-subtable > tbody > tr > td:nth-child(4),
.lpd-subtable > thead > tr > th:nth-child(5),
.lpd-subtable > tbody > tr > td:nth-child(5) {
  max-width: 6ch;
}

.lpd-main-table > thead > tr > th,
.lpd-main-table > tbody > tr > td,
.lpd-subtable > thead > tr > th,
.lpd-subtable > tbody > tr > td {
  width: auto !important;
  min-width: 0 !important;
}

.lpd-main-table > tbody > tr > td,
.lpd-subtable > tbody > tr > td {
  max-width: none !important;
}

.lpd-main-table > thead > tr > th:nth-child(3) .lpd-cell-text,
.lpd-main-table > tbody > tr > td:nth-child(3) .lpd-cell-text,
.lpd-subtable > thead > tr > th:nth-child(1) .lpd-cell-text,
.lpd-subtable > tbody > tr > td:nth-child(1) .lpd-cell-text {
  max-width: 21ch !important;
}

.lpd-table > tbody > tr:hover > td {
  background: rgba(18, 136, 144, 0.06);
}

.lpd-pagination-row {
  margin-top: 6px;
}

.lpd-page-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--lpd-line);
  border-radius: 16px;
  color: #436275;
  background: rgba(255, 255, 255, 0.86);
}

.lpd-page-left {
  flex: 1 1 auto;
  min-width: 0;
}

.lpd-page-right {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.lpd-page-control .pagination {
  margin: 0 !important;
}

.lpd-page-jump {
  width: auto;
}

.lpd-page-jump .form-control {
  width: 100px !important;
}

.lpd-detail-col {
  min-width: 0;
  margin-bottom: 14px;
}

.lpd-subtable-shell {
  height: clamp(220px, 28vh, 340px);
  min-height: 0;
}

.lpd-image-panel .widget-body {
  border-top: 0;
  background: transparent;
}

.lpd-image-body {
  padding: 12px 10px 10px;
}

.lpd-image-box {
  border: 1px solid rgba(159, 214, 221, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(12, 28, 40, 0.98), rgba(7, 17, 27, 1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 44px rgba(0, 0, 0, 0.24);
}

.lpd-image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
  height: clamp(220px, 28vh, 340px);
  padding: 14px;
}

.lpd-image-frame img,
#imageViewFrame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

@media (max-width: 991px) {
  .liveview-header {
    padding: 24px 22px;
    border-radius: 22px;
  }

  .liveview-header h1 {
    font-size: 28px;
  }

  .liveview-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .liveview-video {
    min-height: 320px;
  }

  .lpd-panel-body {
    padding: 8px 8px 8px;
  }

  .lpd-hwinfo {
    margin-top: 4px;
    font-size: 11px;
  }

  .lpd-hwinfo-top {
    margin-top: 4px;
    white-space: normal;
  }

  .lpd-panel-primary .lpd-table-shell {
    height: clamp(220px, 34vh, 360px);
    min-height: 180px;
  }

  .lpd-main-table {
    min-width: 880px;
  }

  .lpd-subtable {
    min-width: 680px;
  }

  .lpd-table > thead > tr > th,
  .lpd-table > tbody > tr > td {
    font-size: 11px;
  }

  .lpd-main-table > thead > tr > th:nth-child(3) .lpd-cell-text,
  .lpd-main-table > tbody > tr > td:nth-child(3) .lpd-cell-text,
  .lpd-subtable > thead > tr > th:nth-child(1) .lpd-cell-text,
  .lpd-subtable > tbody > tr > td:nth-child(1) .lpd-cell-text {
    max-width: 16ch !important;
  }

  .lpd-subtable-shell,
  .lpd-image-frame {
    height: clamp(220px, 32vh, 320px);
    min-height: 220px;
  }
}

@media (max-width: 767px) {
  .liveview-shell .breadcrumb {
    padding: 12px 14px;
  }

  .liveview-header {
    flex-direction: column;
    gap: 16px;
  }

  .liveview-toolbar {
    gap: 14px;
  }

  .liveview-toolbar-main,
  .liveview-toolbar-actions,
  .liveview-select-wrap,
  .liveview-address-wrap {
    min-width: 100%;
  }

  .liveview-toolbar-actions .btn,
  .liveview-action .btn,
  #TriggerDiv .btn,
  #MediaDivAdd .btn {
    width: 100%;
  }

  .liveview-video {
    min-height: 240px;
  }

  .lpd-filter-card,
  .lpd-filter-card-right,
  .lpd-filter-label {
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
  }

  .lpd-select,
  .lpd-trigger-btn,
  .lpd-filter-card .lpd-search-input,
  .lpd-control-btn {
    width: 100%;
  }

  .lpd-gate-card {
    align-items: stretch;
    flex-direction: column;
  }

  .lpd-hwinfo {
    float: none !important;
    display: block;
    margin: 8px 0 0;
  }

  .lpd-header {
    flex-direction: column;
    align-items: stretch;
  }

  .lpd-header-meta {
    justify-content: flex-start;
  }

  .lpd-subtitle {
    font-size: 13px;
  }

  .lpd-panel-primary .lpd-table-shell {
    height: clamp(180px, 34vh, 300px);
    min-height: 160px;
  }

  .lpd-main-table {
    min-width: 720px;
  }

  .lpd-subtable {
    min-width: 560px;
  }

  .lpd-table > thead > tr > th,
  .lpd-table > tbody > tr > td {
    padding: 6px 8px !important;
    font-size: 10px;
  }

  .lpd-page-control {
    align-items: stretch;
  }

  .lpd-page-left,
  .lpd-page-right,
  .lpd-page-jump {
    width: 100%;
  }

  .lpd-page-right {
    justify-content: flex-start;
  }

  .lpd-main-table > thead > tr > th:nth-child(3) .lpd-cell-text,
  .lpd-main-table > tbody > tr > td:nth-child(3) .lpd-cell-text,
  .lpd-subtable > thead > tr > th:nth-child(1) .lpd-cell-text,
  .lpd-subtable > tbody > tr > td:nth-child(1) .lpd-cell-text {
    max-width: 14ch !important;
  }

  .lpd-subtable-shell,
  .lpd-image-frame {
    height: clamp(180px, 34vh, 260px);
    min-height: 180px;
  }
}
