@charset "UTF-8";

/* ===== 기기 유형 관리 (supply_type) ===== */

#supply_type .form--tbl__util .total p { margin: 0; }
#supply_type .form--tbl__util .total span { color: #047bb6; font-weight: 700; }

#supply_type .btn-refresh { width: 40px; height: 40px; transition: background-color .15s; }
#supply_type .btn-refresh:hover { background-color: #f0f7fb; }

#supply_type .pagination-wrap { min-height: 40px; }

#supply_type table { table-layout: fixed; width: 100%; }
#supply_type .form-tbl > table thead th,
#supply_type .form-tbl .tbody-scroll table td,
#supply_type .tbl-th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#supply_type .tbody-scroll table tbody tr { height: 47px; cursor: pointer; }
#supply_type .tbody-scroll table tbody tr:hover { background-color: #f8f9fa; }
#supply_type .tbody-scroll {
    max-height: calc(100vh - 570px);
    min-height: 120px;
    overflow-y: auto;
    scrollbar-width: none;
}
#supply_type .tbody-scroll::-webkit-scrollbar { display: none; }

/* ===== 등록/수정/상세 모달 공통 ===== */
.supply-type-modal .required::after {
    content: '*';
    color: #e54e57;
    margin-left: 4px;
}

.supply-type-modal__dialog {
    width: min(960px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
    overflow: hidden;
}

.supply-type-modal__dialog--detail {
    width: min(820px, calc(100vw - 32px));
}

.supply-type-modal .modal-header { flex: 0 0 auto; }

/* index.css .modal .modal-dialog .modal-content의 padding·min-height 초기화 */
.supply-type-modal .modal-dialog .modal-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #f5f6f8;
    overflow: hidden;
}


/* 패널 래퍼 */
.supply-type-modal__panels {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px;
    gap: 14px;
    overflow-y: auto;
    scrollbar-width: none;
}
.supply-type-modal__panels::-webkit-scrollbar { display: none; }

/* panels에 SimpleBar가 있으면 카드(panel) 내부 스크롤 대신 패널 영역 전체 스크롤 */
.supply-type-modal__panels[data-simplebar] .supply-type-modal__panel {
    overflow: visible;
}

.supply-type-modal__panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 22px;
    border: 1px solid #d7dce5;
    border-radius: 12px;
    background: #fff;
    overflow: auto;
    scrollbar-width: none;
}
.supply-type-modal__panel::-webkit-scrollbar { display: none; }

.supply-type-modal__panel-title {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e9ee;
    font-size: 14px;
    font-weight: 700;
    color: #047bb6;
}

/* 기본 정보 패널 */
.supply-type-modal__panel--info {
    flex: 0 0 auto;
    overflow: visible;
    margin-bottom: 12px;
}

/* 속성 패널 */
.supply-type-modal__panel--attr {
    flex: 1 1 auto;
    min-height: 200px;
}

.supply-type-modal__panel--attr .supply-type-modal__attr-table { margin-top: 0; }

/* 상세 기본 정보 2x2 그리드 */
.supply-type-detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.supply-type-detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.supply-type-detail-info-item__label {
    font-size: 12px;
    color: #6b7480;
    font-weight: 500;
}

.supply-type-detail-info-item__value {
    font-size: 14px;
    color: #1d1d1d;
    font-weight: 500;
    word-break: break-all;
}

/* 폼 공통 */
.supply-type-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.supply-type-form-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.supply-type-form-item__label {
    font-size: 13px;
    color: #6b7480;
    font-weight: 500;
}

.supply-type-form-item .form-control,
.supply-type-form-item .supply-type-readonly {
    width: 100%;
}

.supply-type-form-item--full { grid-column: 1 / -1; }
.supply-type-detail-info-item--full { grid-column: 1 / -1; }

.supply-type-readonly {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    background: #f8f9fb;
    border-radius: 8px;
}

/* 속성 테이블 */
.supply-type-modal__attr-table {
    flex: 0 0 auto;
    min-height: 120px;
    max-height: 280px;
    margin-top: 16px;
    overflow: auto;
    scrollbar-width: none;
}
.supply-type-modal__attr-table::-webkit-scrollbar { display: none; }

.supply-type-modal__table th {
    position: sticky;
    top: 0;
    z-index: 1;
    text-align: center;
    vertical-align: middle;
    padding: 8px 12px;
    font-size: 13px;
}

.supply-type-modal__table td {
    text-align: center;
    vertical-align: middle;
    padding: 8px 12px;
}

/* 패널 블록: 제목(밑줄) → 버튼행 → 테이블 */
.supply-type-panel-block {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-height: 0;
}

.supply-type-panel-block__title {
    margin: 0 0 0;
    padding: 0 0 6px;
    border-bottom: 1px solid #e5e9ee;
    font-size: 12px;
    font-weight: 700;
    color: #6b7480;
    letter-spacing: 0.3px;
}

.supply-type-panel-block__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0;
    flex-shrink: 0;
}

.supply-type-panel-block__btn {
    font-size: 12px;
    padding: 2px 10px;
    height: 26px;
    line-height: 1;
    white-space: nowrap;
}

.supply-type-panel-block .supply-type-modal__attr-table {
    margin-top: 0;
}



.supply-type-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.supply-type-attr-name,
.supply-type-attr-val {
    width: 100%;
    min-width: 0;
}

/* 탭 */
.supply-type-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
    border-bottom: 2px solid #e5e9ee;
}

.supply-type-tab {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7480;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

.supply-type-tab.active {
    color: #047bb6;
    border-bottom-color: #047bb6;
}

.supply-type-tab:hover:not(.active) { color: #1d1d1d; }

.supply-type-tab-panel { display: flex; flex-direction: column; flex: 0 0 auto; min-height: 0; }

/* 원격 관리 섹션 */
.supply-type-remote-section {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    margin-bottom: 14px;
}

.supply-type-remote-section--type {
    flex: 0 0 auto;
}

.supply-type-remote-section:last-child { margin-bottom: 0; }

/* 기본 원격 기능 섹션 제목 */
.supply-type-remote-section__title {
    margin: 0 0 8px;
    padding: 0 0 6px;
    border-bottom: 1px solid #e5e9ee;
    font-size: 12px;
    font-weight: 700;
    color: #6b7480;
    letter-spacing: 0.3px;
}

/* 기본 원격 기능 테이블 (작은 높이) */
.supply-type-modal__attr-table--sm {
    min-height: 60px;
    max-height: 130px;
}

/* 유형별 원격 기능 테이블 */
.supply-type-remote-section--type .supply-type-modal__attr-table {
    min-height: 60px;
    max-height: 160px;
    margin-top: 0;
}

/* 푸터 */
.supply-type-modal__footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 64px;
    padding: 12px 15px;
    border-top: 1px solid #e4e7ee;
    background: #fafbfc;
}

.supply-type-modal .modal__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 전체 사용 여부 토글 */
.supply-type-toggle-cell {
    text-align: center;
    vertical-align: middle;
}

.supply-type-modal .al-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 54px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    margin: 0;
}

.supply-type-modal .al-toggle__track {
    display: block;
    width: 54px;
    height: 28px;
    border-radius: 14px;
    background: #bfc7d1;
    transition: background-color 0.18s ease;
}

.supply-type-modal .al-toggle__thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease;
}

.supply-type-modal .al-toggle[aria-checked="true"] .al-toggle__track {
    background: #047bb6;
}

.supply-type-modal .al-toggle[aria-checked="true"] .al-toggle__thumb {
    transform: translateX(26px);
}

.supply-type-modal .al-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.supply-type-toggle--readonly {
    pointer-events: none;
    opacity: 0.85;
}