@charset "UTF-8";

/* ==========================================
   LGBUS BMS 원격제어 이력 CSS
   ========================================== */
#app_remote .tbody-scroll {
    max-height: calc(100vh - 570px);
    min-height: 120px;
}

#app_remote_modal .modal__card {
	max-height: calc(100vh - 240px);
}

#app_remote_modal .form-group {
	margin-bottom: 0px;
}

#app_remote_modal .section_content .form.form--grid4 {
    display: grid;
    grid-template-columns: 1fr 1fr; 
}

#remote_detail_successBar {
	width: 40%;
}

#remote_tab_history {
	display:none;
}

#app_remote_modal_selectOption {
	width: 120px;
}

.appRemote_lbl_marginTop0 {
	margin-top: 0px !important;
}

.appRemote_lbl_marginTop10 {
	margin-top: 10px !important;
}

#app_remote_modal .modal-dialog--lg {
    width: 1390px;
    max-width: calc(100vw - 40px);
}

#app_remote_modal .remote-detail-card {
    padding: 24px;
    border-radius: 16px;
    background: #fff;
}

#app_remote_modal .section_content + .section_content,
#app_remote_modal .section-mt {
    margin-top: 18px;
}

#app_remote_modal .section-title {
    font-size: 18px;
    font-weight: 600;
    color: #047bb6;
    margin: 0px;
    padding-bottom: 0px;
    border-bottom: 0px;
}

#app_remote_modal .section_content .section-basic.section-title {
	margin-bottom: 7px; 
	border-bottom: 1px solid #e5e7eb; 
	padding-bottom: 6px;
}   

#app_remote_modal .modal__card {
	width: 1350px; 
	max-height: calc(100dvh - 258px);
}

#app_remote_modal .section_content:first-child {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    background: #fafbfd;
}

#app_remote_modal .form-ti {
    color: #6b7280;
}

#app_remote_modal .form-ti.w100 {
    min-width: 80px;
}

#app_remote_modal .remote-tab-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

#app_remote_modal .remote-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: #f3f6fb;
}

#app_remote_modal .remote-tab {
    min-width: 100px;
    height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #667085;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

#app_remote_modal .remote-tab.is-active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

#app_remote_modal .remote-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
}

#app_remote_modal .remote-summary__value {
    font-size: 15px;
    color: #111827;
    white-space: nowrap;
}

#app_remote_modal .remote-summary__bar {
    flex: 1;
    min-width: 160px;
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

#app_remote_modal .remote-summary__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

#app_remote_modal .remote-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

#app_remote_modal .remote-toolbar__left,
#app_remote_modal .remote-toolbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#app_remote_modal .tbl td, #app_remote_modal .tbl th {
    border: 0px solid #c6c6c6;
    border-bottom: 1px solid #c6c6c6;
    font-size: 15px;
}

#remote_modal_table_thead {
    margin-bottom: 0px;
}

#remote_modal_table_thead tr th:first-child {
    border-top-left-radius: 12px;
}

#remote_modal_table_thead tr th:last-child {
	border-top-right-radius: 12px;
}

#remote_modal_table tbody tr:last-child:not(:only-child) td:first-child {
    border-bottom-left-radius: 12px;
}

#remote_modal_table tbody tr:last-child:not(:only-child) td:last-child {
    border-bottom-right-radius: 12px;
}

#app_remote_modal .total_table {
    border-radius: 12px;
    border: 1px solid #c6c6c6;
    background: #fff;
    overflow: hidden;
}

#remote_modal_table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#remote_modal_table thead th {
    height: 48px;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e6eaf0;
    text-align: center;
}

#remote_modal_table tbody td {
    padding: 14px;
    border-bottom: 1px solid #eef2f6;
    vertical-align: middle;
}

#remote_modal_table .center {
	text-align: center;
    justify-items: center;
}

#remote_modal_table .left {
	text-align: left;
}

#remote_modal_table tbody tr:hover {
    background: #fafcff;
}

#app_remote_modal .tbody-scroll {
    max-height: 300px;
    min-height: 300px;
}

#app_remote_modal .remote-device__title {
    font-size: 15px;
    color: #111827;
}

#app_remote_modal .remote-device__desc {
    margin-top: 4px;
    font-size: 15px;
    color: #667085;
}

#app_remote_modal .snapshot-box {
    width: 64px;
    height: 64px;
    border: 1px solid #d9e1ec;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
}

#app_remote_modal .snapshot-box img {
    cursor: pointer;
}

#app_remote_modal .btn.round--btn.sm {
    width: 88px;
    height: 34px;
    font-size: 15px;
    padding: 0 12px;
}

#app_remote_modal .btn.round--btn.line {
    background: #fff;
    border: 1px solid #d0d5dd;
    color: #344054;
}

#app_remote_modal .remote-history-accordion {
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

#app_remote_modal .remote-history-accordion + .remote-history-accordion {
    margin-top: 12px;
}

#app_remote_modal .remote-history-accordion__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border: 0;
    background: #fff;
    cursor: pointer;
    text-align: left;
}

#app_remote_modal .remote-history-accordion__head-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#app_remote_modal .remote-history-accordion__head-left strong {
    font-size: 18px;
    font-weight: 500;
    color: #222;
}

#app_remote_modal .remote-history-accordion__head-left span {
    font-size: 15px;
    color: #98a2b3;
}

#app_remote_modal .remote-history-accordion__arrow {
    flex: 0 0 auto;
    color: #111827;
    font-size: 15px;
}

#app_remote_modal .remote-history-accordion__body {
    padding: 0 20px 18px 20px;
    background: #fff;
    border-top: 1px solid #eef2f6;
}

#app_remote_modal .remote-history-detail-list {
    margin: 14px 0 0;
    padding-left: 22px;
}

#app_remote_modal .remote-history-detail-list li {
    padding: 8px 0;
    font-size: 15px;
}

#app_remote_modal .snapshot-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 11px;
}

/* --------------- 스크롤 ----------------- */
.remote-accordion-group {
    height: 358px;
    overflow-y: scroll;           /* ⭐ 항상 스크롤 영역 확보 */
    scrollbar-gutter: stable;     /* ⭐ 너비 안 흔들림 */
}

/* 스크롤 전체 영역 */
.remote-accordion-group::-webkit-scrollbar {
    width: 8px;
}

/* 트랙 (배경 거의 없음 = simplebar 느낌) */
.remote-accordion-group::-webkit-scrollbar-track {
    background: transparent;
}

/* 스크롤 핸들 */
.remote-accordion-group::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.35);  /* ⭐ 항상 보이게 */
    border-radius: 7px;
}

/* hover 시 살짝 강조 */
.remote-accordion-group::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.55);
}

#app_remote_modal .remote-flex-wrap {
    display: flex;
    gap: 15px;
}

#app_remote_modal .remote-left-area {
    flex: 2;
    min-width: 0; 
}

#app_remote_modal .remote-right-area {
    flex: 0 0 355px;
    width: 355px;
    min-width: 355px;
    max-width: 355px;
    border-left: 1px solid #e6eaf0;
    padding-left: 0;
}

#app_remote_modal .remote-right-area,
#app_remote_modal .remote-right-area * {
    box-sizing: border-box;
}

#app_remote_modal .snapshot-inner {
    padding-left: 16px;
}

#app_remote_modal .snapshot-preview {
    width: 100%;
    height: 360px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e6eaf0;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#snapshotImg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#remote_modal_table tbody tr.active {
    background: #fafcff !important;
}

#app_remote_modal .snapshot-empty {
    color: #9ca3af;
    font-size: 15px;
}

#app_remote_modal .snapshot-div {
	width:338px;
    height:338px;
    background:#f3f4f6;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    position: relative;
    border: 1px solid #c6c6c6;
    cursor: pointer;
}

#remote_modal_table_thead tr {
    height: 35px;
}

#remote_tab_control .snapshot-div .no-data {
    background: none;
    color: #7d7d7d;
    width: 100%;
    top: 0;
    right: 0;
    padding: 0;
    font-size: 15px;
}

#remote_tab_control .snapshot-div h4 {
    position: absolute;
    top: 8px;
    right: 10px;
    margin: 0;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
}

#remote_tab_control .snapshot-top {
    display: flex;
    justify-content: space-between;
}

#remote_tab_control .snapshot-top h3 {
	margin-bottom:4px; 
	height: 42px; 
	align-content: center; 
	font-size: 18px;
}

#remote_tab_control .btn-refresh {
	border: 0px;
    background-color: #ffffff00;
    margin-bottom: 4px;
}

#app_remote .tbody-scroll table tbody tr {
    cursor: pointer;
}
#app_remote_table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 목록 패널 */
.device-alert-panel {
  text-align: left;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px;
}

.device-alert-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.device-alert-panel-title {
  font-size: 17px;
  font-weight: 600;
  color: #111827;
}

.device-alert-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

/* 목록 */
.device-alert-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 180px;
  overflow-y: auto;
}

.device-alert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #eef2f7;
}

.device-alert-item + .device-alert-item {
  margin-top: 8px;
}

.device-alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f59e0b;
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.device-alert-item code {
  font-size: 15px;
  color: #334155;
  word-break: break-all;
  background: transparent;
}

.retry-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.retry-summary__card {
  padding: 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5edf7;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.retry-summary__card--accent {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
}

.retry-summary__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.retry-summary__value {
  font-size: 24px;
  line-height: 1;
  color: #0f172a;
  font-weight: 800;
}

.device-alert-list {
    max-height: 150px;
}

#remote_modal_table_thead .tbl-th {
	gap: 0px;
}

#app_remote_table .app_th_longText {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#app_remote_table {
    table-layout: fixed;
}

/* 차트 */
/* 상단 요약: 세로 막대 차트 + 카드 */
.app-remote-summary {
    margin-bottom: 24px;
}

.app-remote-summary__body {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

/* 상태 카드 (도트 없이 컬러 배경 + 큰 숫자) */
.app-remote-status-card {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-sizing: border-box;
    transition: box-shadow .15s, transform .15s;
}

.app-remote-status-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.app-remote-status-card__label {
    font-size: 15px;
    color: #1d1d1d;
    font-weight: 600;
}

.app-remote-status-card__value {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: #111827;
    line-height: 1;
}

.app-remote-status-card__value strong {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.app-remote-status-card__unit {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* 카드별 배경 + 숫자 색 (이미지 톤) */
.app-remote-status-card--total {
    background: #ffffff;
}
.app-remote-status-card--total .app-remote-status-card__value strong { color: #111827; }

.app-remote-status-card--good {
    background: #eaf6ec;
}
.app-remote-status-card--good .app-remote-status-card__value strong { color: #228738; }

.app-remote-status-card--normal {
    background: #fef6e0;
}
.app-remote-status-card--normal .app-remote-status-card__value strong { color: #c98910; }

.app-remote-status-card--replace {
    background: #fde8ea;
}
.app-remote-status-card--replace .app-remote-status-card__value strong { color: #e54e57; }

#app_remote_modal .badge--check,
#app_remote_modal .al-badge--check {
  --badge-bg: #E7F6F5;
  --badge-color: #0e7b7e;
  --badge-dot: #0F8B8D;
}

/* 스냅샷 상세 */
.app-remote-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(240, 247, 255, 0.88);
    backdrop-filter: blur(4px);
    box-sizing: border-box;
}

.app-remote-image-viewer.is-active {
    display: flex !important;
}

.app-remote-image-viewer__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    cursor: default;
}

.app-remote-image-modal {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1080px, 92vw) !important;
    height: min(760px, 84vh) !important;
    max-width: none !important;
    max-height: none !important;
    padding: 56px 72px !important;
    overflow: visible !important;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px !important;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
    box-sizing: border-box;
}

.app-remote-image-modal .modal__header {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10001;
    display: block;
    min-height: 0;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.app-remote-image-viewer__name {
    display: none;
}

.app-remote-image-modal .modal__close {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: transparent;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}

.app-remote-image-modal .modal__close::before,
.app-remote-image-modal .modal__close::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 10px;
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: #1c8cf4;
}

.app-remote-image-modal .modal__close::before {
    transform: rotate(45deg);
}

.app-remote-image-modal .modal__close::after {
    transform: rotate(-45deg);
}

.app-remote-image-modal .modal__close:hover {
    background: transparent;
}

.app-remote-image-modal .modal__close:hover::before,
.app-remote-image-modal .modal__close:hover::after {
    background: #03699c;
}

.app-remote-image-modal__body {
    position: static;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0 !important;
    background: transparent;
    box-sizing: border-box;
}

.app-remote-image-viewer__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.app-remote-image-viewer__image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
}

.app-remote-image-viewer__nav {
    position: absolute;
    top: 50%;
    z-index: 10001;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #1c8cf4;
    font-size: 58px;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
    transform: translateY(-50%) scaleY(1.35);
}

.app-remote-image-viewer__nav--prev {
    left: 16px;
}

.app-remote-image-viewer__nav--next {
    right: 16px;
}

.app-remote-image-viewer__nav:hover {
    background: transparent;
    color: #03699c;
}

@media (max-width: 768px) {
    .app-remote-image-viewer {
        padding: 16px;
    }

    .app-remote-image-modal {
        width: 100% !important;
        height: 82vh !important;
        padding: 56px 44px !important;
    }

    .app-remote-image-modal .modal__close {
        top: -4px;
        right: -4px;
    }

    .app-remote-image-viewer__nav {
        width: 54px;
        height: 54px;
        font-size: 46px;
    }

    .app-remote-image-viewer__nav--prev {
        left: 2px;
    }

    .app-remote-image-viewer__nav--next {
        right: 2px;
    }
}