.input_height {
  height:calc(1.5em + 0.75rem);
}

html,
body {
    height: 100%;
    background-color: #ffffff;
}

body {
    margin: 0;
}

/* 실시간 모니터링: 검색조건은 고정하고, 하단 콘텐츠만 스크롤한다. */
.realtime-dashboard {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#searchBar {
    flex: 0 0 auto;
    position: relative;
    z-index: 20;
    margin-bottom: 0 !important;
    background-color: #eef8fd;
    border-color: #c9e4f0;
    border-radius: 5px;
}

#searchBar .card-body {
    background-color: #eef8fd;
    border-radius: inherit;
    padding: 0.7rem 1rem;
}

#searchBar .btn-success {
    background-color: #132b73;
    border-color: #132b73;
}

#searchBar .btn-success:hover,
#searchBar .btn-success:focus {
    background-color: #1b3785;
    border-color: #1b3785;
}

#searchBar .btn-success .text {
    font-size: 0.9rem;
}

.search-label-icon {
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 0.4rem;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #4e73df;
    vertical-align: 1px;
}

.dashboard-scroll-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 1.5rem;
    background-color: #ffffff;
}

.dashboard-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
    gap: 1.25rem;
    align-items: stretch;
}

.dashboard-primary-column,
.dashboard-agent-column {
    min-width: 0;
}

.dashboard-primary-column > .row:not(.metrics-row) {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.realtime-chart-panel {
    grid-column: 1 / -1;
}

.menu-ratio-panel {
    grid-column: span 2;
}

.menu-count-panel {
    grid-column: span 3;
}

.realtime-chart-panel,
.menu-ratio-panel,
.menu-count-panel {
    min-width: 0;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.dashboard-agent-column > .col-xl-12 {
    height: calc(100vh - 8rem);
    max-height: calc(100vh - 8rem);
    padding-right: 0;
    padding-left: 0;
}

.dashboard-agent-column > .col-xl-12 > .card {
    display: flex;
    height: 100%;
    margin-bottom: 0 !important;
    flex-direction: column;
}

.dashboard-agent-column #agentStatusArea {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 5px;
}

.dashboard-agent-column #agentStatusArea > .Row > .col-xl-4,
.dashboard-agent-column #agentStatusArea > .Row > .col-xl-8 {
    float: none !important;
    max-width: 100%;
    flex: 0 0 100%;
}

.dashboard-agent-column #agentStatusArea > .Row > .col-xl-8 {
    margin-top: 1rem;
}

/* 주요 지표: 두 열 배치, 카드 내부는 아이콘/제목과 수치로 분리 */
.metrics-row > [class*="col-"] {
    flex: 0 0 20%;
    max-width: 20%;
}

.metrics-row .card-body > .row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
}

.metrics-row .card-body > .row > .col-auto {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin-top: 0.45rem;
}

.metrics-row .card-body > .row > .col.mr-2 {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 2px;
    min-width: 0;
    margin-right: 0 !important;
}

.metrics-row .dashboard_main_str {
    float: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    white-space: nowrap;
}

.metrics-row .card-body {
    min-height: 0;
    padding: 8px;
}

.metrics-row .card.py-2 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.metrics-row .col.mr-2 > .dashboard_main_str:first-child {
    grid-row: 1;
    font-size: 1.3rem;
}

.metrics-row .col.mr-2 > .dashboard_main_str:last-child,
.metrics-row .col.mr-2 > .row .dashboard_main_str {
    grid-row: 2;
    font-size: 1.8rem;
    text-align: right;
}

.metrics-row .card-body > .row > .col-auto .fa-2x {
    font-size: 1.25em;
}

.metrics-row .col.mr-2 > .row {
    display: contents;
}

.metrics-row .col.mr-2 > .row > .col {
    display: none;
}

.metrics-row .col.mr-2 > .row > .col-auto {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
}

/* 상담원 상태 요약 */
.agent-status-summary {
    display: grid;
    grid-template-columns: minmax(96px, 13%) minmax(0, 1fr);
    margin-bottom: 4px;
    padding: 10px;
}

.agent-presence-list {
    display: grid;
    align-content: start;
    gap: 8px;
    padding-right: 8px;
    border-right: 1px solid #edf1f4;
}

.agent-detail-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding-left: 8px;
}

.status-item {
    display: grid;
    grid-template-columns: 47px 31px;
    justify-content: center;
    align-items: center;
    justify-items: center;
    gap: 3px;
    min-width: 0;
}

.status-icon {
    display: inline-flex;
    width: 47px;
    height: 47px;
    flex-direction: column;
    gap: 1px;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.255rem;
}

.status-label {
    color: #ffffff;
    font-size: 0.63rem;
    line-height: 1.05;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.status-item strong {
    grid-column: 2;
    color: #051766;
    font-size: 1.08rem;
    width: 31px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.agent-presence-list .status-item:nth-child(1) strong,
.agent-detail-list .status-item:nth-child(2) strong { color: #13855c; }
.agent-presence-list .status-item:nth-child(2) strong { color: #5a5c69; }
.agent-detail-list .status-item:nth-child(1) strong { color: #c0392b; }
.agent-detail-list .status-item:nth-child(3) strong { color: #258391; }
.agent-detail-list .status-item:nth-child(4) strong,
.agent-detail-list .status-item:nth-child(6) strong { color: #9a7400; }
.agent-detail-list .status-item:nth-child(5) strong,
.agent-detail-list .status-item:nth-child(7) strong,
.agent-detail-list .status-item:nth-child(9) strong { color: #9a6500; }
.agent-detail-list .status-item:nth-child(8) strong { color: #b85100; }

.agent-status-grid {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    padding-top: 0;
    border-top: 1px solid #edf1f4;
    overflow: auto;
    isolation: isolate;
}

.agent-table {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
    color: #3a4653;
    font-size: 0.78rem;
}

.agent-table th {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 0.8rem 0.55rem;
    background-color: #334e68;
    border-bottom: 1px solid #334e68;
    color: #eef8fd;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 -1px 0 #334e68;
}

.agent-table td {
    padding: 0.72rem 0.55rem;
    background-color: #ffffff;
    border-bottom: 1px solid #edf1f4;
    text-align: center;
    white-space: nowrap;
}

.agent-table td:nth-child(4) {
    text-align: left;
}

.agent-table tbody tr:hover td {
    background-color: #f7fbfd;
}

.agent-table .agent-name {
    color: #172b4d;
    font-weight: 700;
}

.table-status-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #ffffff;
    font-size: 0.62rem;
}

.table-status-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.table-status-text {
    color: #3a4653;
    font-weight: 700;
}

.satisfaction-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.satisfaction-bar {
    display: inline-block;
    width: 48px;
    height: 7px;
    overflow: hidden;
    background-color: #e8edf5;
    border-radius: 999px;
}

.satisfaction-bar > i {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.satisfaction-value {
    min-width: 34px;
    color: #172b4d;
}

.call-time-button {
    padding: 3px 10px;
    background-color: #f4f7fb;
    border: 1px solid #d4dceb;
    border-radius: 6px;
    color: #3a4653;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    cursor: pointer;
}

.call-time-button:hover {
    background-color: #e7edf7;
    border-color: #b9c6dc;
}

.call-time-button:active {
    background-color: #dbe4f2;
}

.dashboard-agent-column {
    position: relative;
}

/* 통화 재생: 배경 딤 없이 그리드 위에만 표시 */
.call-playback-modal {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    pointer-events: none;
}

.call-playback-modal.is-open {
    display: flex;
}

.call-playback-dialog {
    pointer-events: auto;
    width: min(420px, calc(100% - 32px));
    padding: 1.25rem;
    background-color: #ffffff;
    border: 1px solid #c9e4f0;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1.5rem rgba(5, 23, 102, 0.18);
}

.call-playback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.call-playback-close {
    padding: 2px 8px;
    background: transparent;
    border: 0;
    color: #132b73;
    font-size: 1.25rem;
}

.call-playback-dialog audio {
    width: 100%;
}

.realtime-chart-panel .chart-area {
    height: 13rem;
}

.realtime-chart-panel .card-header h6,
.menu-ratio-panel .card-header h6,
.menu-count-panel .card-header h6,
.dashboard-agent-column .card-header h6 {
    font-size: 0.9rem;
}

.menu-ratio-panel .small,
.menu-count-panel .small {
    font-size: 0.9rem;
}

.menu-count-panel .card-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 0.65rem 1rem;
}

.menu-count-item {
    display: grid;
    grid-template-columns: minmax(82px, 34%) minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.menu-count-title {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.55rem;
    white-space: nowrap;
}

.menu-count-graph {
    display: flex;
    min-width: 0;
    align-items: center;
}

.menu-count-value {
    display: block;
    padding: 0 4px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.menu-count-value.is-dark-text {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.menu-count-graph .progress {
    flex: 1 1 auto;
    width: 100%;
    height: 1.55rem;
    margin-bottom: 0 !important;
    background-color: #eef1f6;
}

.menu-count-graph .progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    transition: width 0.3s ease;
}

#searchBar .searchBox_title,
#searchBar .modal_text_dashboard {
    font-size: 0.9rem;
}

#searchBar .modal_text_dashboard {
    height: 1.7rem;
}

@media (min-width: 768px) {
    .dashboard-scroll-content {
        overflow: hidden;
    }

    .dashboard-split-layout {
        height: 100%;
    }

    .dashboard-primary-column {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .dashboard-primary-column > .row:not(.metrics-row) {
        flex: 1 1 auto;
        grid-template-rows: auto minmax(0, 1fr);
        min-height: 0;
    }

    .realtime-chart-panel .card {
        margin-bottom: 0.75rem !important;
    }

    .menu-ratio-panel .card,
    .menu-count-panel .card {
        display: flex;
        height: 100%;
        min-height: 0;
        margin-bottom: 0 !important;
        flex-direction: column;
    }

    .menu-ratio-panel .card-body,
    .menu-count-panel .card-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .menu-ratio-panel .chart-pie {
        height: 100% !important;
        min-height: 0;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .dashboard-agent-column,
    .dashboard-agent-column > .col-xl-12 {
        height: 100%;
        max-height: none;
        min-height: 0;
    }

    .dashboard-agent-column #agentStatusArea {
        overflow: hidden;
    }

    .dashboard-agent-column .agent-status-grid {
        overflow: auto;
    }
}

@media (max-width: 767.98px) {
    .dashboard-split-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .metrics-row > [class*="col-"] {
        flex-basis: 100%;
        max-width: 100%;
    }

    .agent-status-summary {
        grid-template-columns: 1fr;
    }

    .agent-presence-list {
        grid-template-columns: repeat(2, 1fr);
        padding-right: 0;
        padding-bottom: 1rem;
        border-right: 0;
        border-bottom: 1px solid #c9e4f0;
    }

    .agent-detail-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 1rem;
        padding-left: 0;
    }

    .dashboard-primary-column > .row:not(.metrics-row) {
        grid-template-columns: 1fr;
    }

    .realtime-chart-panel,
    .menu-ratio-panel,
    .menu-count-panel {
        grid-column: auto;
    }

    .menu-count-panel .card-body {
        grid-template-columns: 1fr;
    }
}

.searchBox_title {
    margin-top:1%;
    font-size: 1rem;
    font-weight: 600;
    line-height: 2em;
    color: #212529;
    text-align: left;
}

.searchBox_td {
    width:25%;
    padding:2.5px 0px;
}

.searchBox_date {
    width:15%;
    float:left;
    text-align:center;
}

.searchBox_dash_1 {
    width:5%;
    float:left;
    text-align:center;padding:1%;
    margin:0 1%
}

.searchBox_dash_2 {
    width:2.5%;
    float:left;
    text-align:center;
}

.searchBox_selectBox_time {
    width:20%;
    float:left;
    text-align:center;
}

.title_width {
    width:20%;
    float:left;
    margin-right:3%
}

.org_tree {
    left:0%;
    top:0%;
}

.agent_tree {
    left:0%;
    top:0%;
}


.tree {
    float: left;
    position: fixed;
    display: none;
    background-color: #fcfcfc;
    border: 1px solid #c9e4f0;
    border-radius: 5px;
    z-index: 100;
    padding: 10px;
}

.modal_text {
    border-radius: 5px;
    background-color: #eeeeee;
    width: 40%;
}


.text_title {
    color: #141414 !important;
    font-size: 1.5rem;
}

.floatLeft {
    float:left;
}

.floatRight {
    float:right;
}

.card-header-im {
    padding: 0.5rem 1.rem;
}


.title_width_dashboard {
    float:left;
    margin-right:3%
}

.modal_text_dashboard {
    border-radius: 5px;
    background-color: #ffffff;
    border: 1px solid #c9e4f0;
    width: 70%;
}

.agentStatus_font_name {
    font-weight: bold;
    font-size: 1.5rem;
}

.agentStatus_font_num {
    font-weight: bold;
    font-size: 2.6rem;
}

.dashboard_main_str {
    font-size: 1.7rem;
}

.shadowText {
    text-shadow: 0px 0px 4px white;
}

.dataTables_scrollBody {
    border-right:1px solid #eee;
    border-left:1px solid #eee;
    border-bottom: 1px solid #eee;
}

.discription_text_disable {
    background-color: #eeeeee;
    width: 70%;
}

.discription_text {
    width: 70%;
}

.col-sm-12 {
    padding-right: 0rem;
    padding-left: 0rem;
}


.selectBox {
    width:70%;
    float:left;
    text-align:center;
}


.row {
    margin-right: 0px !important;
    margin-left: 0px !important;
}

.width60 {
    width:60% !important;
}

.margin_10_right_left {
    margin-right: 10px !important;
    margin-left: 10px !important;
}

.agent_phone_select_wrapper {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-top: 1px solid #ddd;
}

.agent_phone_wrapper_start {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-top: 1px solid #ddd;
}

.agent_phone_wrapper {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}


.agent_phone_wrapper_end {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

/* 검색조건 공통 정렬/스타일 (실시간 모니터링 기준) */
#searchBar .searchBox_td {
    vertical-align: middle;
    line-height: 1.7rem;
}

#searchBar .searchBox_title {
    margin-top: 0;
    line-height: 1.7rem;
}

#searchBar .title_width,
#searchBar .title_width_dashboard {
    display: flex;
    align-items: center;
    height: 1.7rem;
}

#searchBar .searchBox_dash_1,
#searchBar .searchBox_dash_2 {
    height: 1.7rem;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.7rem;
}

#searchBar label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.7rem;
    vertical-align: middle;
}

#searchBar input.input_height,
#searchBar input.searchBox_date,
#searchBar select {
    height: 1.7rem;
    padding: 0 0.4rem;
    font-size: 0.9rem;
    line-height: 1.7rem;
    vertical-align: middle;
    background-color: #ffffff;
    border: 1px solid #c9e4f0;
    border-radius: 5px;
}

#searchBar .btn.input_height {
    height: 1.7rem;
    padding: 0 0.6rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#searchBar input[type="checkbox"],
#searchBar input[type="radio"] {
    width: 0.95rem;
    height: 0.95rem;
    margin: 0 0.15rem 0 0;
    padding: 0;
    vertical-align: middle;
    background-color: #ffffff;
    border: 1px solid #c9e4f0;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

#searchBar input[type="checkbox"] {
    border-radius: 3px;
}

#searchBar input[type="radio"] {
    border-radius: 50%;
}

#searchBar input[type="checkbox"]:checked {
    background-color: #132b73;
    border-color: #132b73;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.75rem;
}

#searchBar input[type="radio"]:checked {
    border-color: #132b73;
    background-image: radial-gradient(#132b73 0 45%, #ffffff 50% 100%);
}

#searchBar input[type="checkbox"]:focus,
#searchBar input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(19, 43, 115, 0.15);
}

/* 검색조건 영역 분할: 좌측 검색조건 95% / 우측 버튼 5% */
#searchBar {
    font-size: 0.9rem;
}

#searchBar .searchBox_area {
    width: 95%;
    padding: 0;
    vertical-align: middle;
}

#searchBar .searchBox_btn_area {
    width: 5%;
    padding: 0;
    vertical-align: middle;
    text-align: right;
}

#searchBar .searchBox_area .searchBox_td:nth-child(1) {
    width: 40%;
}

#searchBar .searchBox_area .searchBox_td:nth-child(2) {
    width: 32%;
}

#searchBar .searchBox_area .searchBox_td:nth-child(3) {
    width: 28%;
}

/* 그리드 헤더 */
table.dataTable thead th,
table.dataTable thead td,
div.dataTables_scrollHead table.dataTable thead th,
div.dataTables_scrollHead table.dataTable thead td {
    background-color: #292929 !important;
    color: #ffffff !important;
    border-bottom: 1px solid #292929 !important;
}

table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before {
    color: #ffffff !important;
    opacity: 0.6;
}

/* 검색 버튼부: 검색 + 그리드 버튼(엑셀/컬럼선택) */
#searchBar .searchBox_btn_area {
    white-space: nowrap;
}

#searchBar .searchBox_btn_wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
}

#searchBar .searchBox_btn_wrap .btn,
#searchBar .searchBox_btn_wrap .dt-buttons .dt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.7rem;
    margin: 0;
    padding: 0 0.6rem;
    font-size: 0.9rem;
    border-radius: 5px;
}

#searchBar .searchBox_btn_wrap .dt-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    float: none;
}

#searchBar .searchBox_btn_wrap .dt-buttons .dt-button {
    background: #ffffff;
    border: 1px solid #c9e4f0;
    color: #132b73;
}

#searchBar .searchBox_btn_wrap .dt-buttons .dt-button:hover {
    background: #eef8fd;
    border-color: #c9e4f0;
}

/* 그리드 영역: 검색조건과 15px 간격 */
.gridArea {
    margin-top: 15px;
}

/* 그리드 하단 결과 표시(선택/총 건수) 숨김 */
#example_wrapper .dataTables_info,
#example_wrapper .dataTables_paginate,
#example_wrapper .select-info {
    display: none !important;
}

#example_wrapper > .row:last-child {
    height: 0;
    margin: 0;
    overflow: hidden;
}

/* 고정컬럼 blocker가 헤더색으로 비쳐 보이지 않도록 처리 */
div.dtfc-top-blocker,
div.dtfc-bottom-blocker {
    background-color: #ffffff !important;
}

/* 통계 화면 검색조건: 글씨 1rem / 굵게, 좌 92% : 우 8% */
#searchBar.searchBar_stat,
#searchBar.searchBar_stat .searchBox_title,
#searchBar.searchBar_stat label,
#searchBar.searchBar_stat .searchBox_dash_1,
#searchBar.searchBar_stat .searchBox_dash_2,
#searchBar.searchBar_stat input.input_height,
#searchBar.searchBar_stat input.searchBox_date,
#searchBar.searchBar_stat .modal_text_dashboard,
#searchBar.searchBar_stat select,
#searchBar.searchBar_stat .btn .text,
#searchBar.searchBar_stat .searchBox_btn_wrap .btn,
#searchBar.searchBar_stat .searchBox_btn_wrap .dt-buttons .dt-button {
    font-size: 1rem;
    font-weight: 600;
}

#searchBar.searchBar_stat .input_height,
#searchBar.searchBar_stat input.searchBox_date,
#searchBar.searchBar_stat .modal_text_dashboard,
#searchBar.searchBar_stat select,
#searchBar.searchBar_stat .searchBox_dash_1,
#searchBar.searchBar_stat .searchBox_dash_2,
#searchBar.searchBar_stat .title_width,
#searchBar.searchBar_stat .title_width_dashboard,
#searchBar.searchBar_stat .searchBox_btn_wrap .btn,
#searchBar.searchBar_stat .searchBox_btn_wrap .dt-buttons .dt-button {
    height: 1.9rem;
    line-height: 1.9rem;
}

#searchBar.searchBar_stat .searchBox_td,
#searchBar.searchBar_stat .searchBox_title,
#searchBar.searchBar_stat label {
    line-height: 1.9rem;
}

#searchBar.searchBar_stat .searchBox_area {
    width: 92%;
}

#searchBar.searchBar_stat .searchBox_btn_area {
    width: 8%;
}

/* 실시간 인입 현황: 시간대/단위 선택 */
.chart-range-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
}

.chart-range-label {
    color: #212529;
    font-weight: 600;
    white-space: nowrap;
}

.chart-range-dash {
    color: #858796;
}

.chart-range-select {
    height: 1.6rem;
    padding: 0 0.3rem;
    background-color: #ffffff;
    border: 1px solid #c9e4f0;
    border-radius: 5px;
    color: #212529;
    font-size: 0.8rem;
}

/* AG Grid 영역 */
.ag-grid-area {
    width: 100%;
    height: 60vh;
}

.ag-grid-area .grid-cell-right {
    justify-content: flex-end;
    text-align: right;
}

.ag-grid-area .grid-cell-left {
    text-align: left;
}

.ag-grid-area .grid-cell-no {
    background-color: #f4f5f8;
    font-weight: 700;
}

/* 그리드 도구 버튼(엑셀다운로드/컬럼선택) */
#searchBar .grid-tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #c9e4f0;
    color: #132b73;
}

#searchBar .grid-tool-button:hover {
    background-color: #eef8fd;
}

.grid-colvis {
    position: relative;
}

.grid-colvis-menu {
    position: absolute;
    right: 0;
    z-index: 200;
    display: none;
    max-height: 60vh;
    min-width: 12rem;
    padding: 0.5rem;
    overflow-y: auto;
    background-color: #ffffff;
    border: 1px solid #c9e4f0;
    border-radius: 5px;
    box-shadow: 0 0.5rem 1rem rgba(5, 23, 102, 0.15);
}

.grid-colvis-menu.is-open {
    display: block;
}

.grid-colvis-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.15rem 0.2rem;
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
    cursor: pointer;
}

/* 그리드 헤더 우클릭 메뉴 (컬럼 고정) */
.grid-context-menu {
    position: fixed;
    z-index: 300;
    display: none;
    flex-direction: column;
    min-width: 7.5rem;
    padding: 0.25rem;
    background-color: #ffffff;
    border: 1px solid #c9e4f0;
    border-radius: 5px;
    box-shadow: 0 0.5rem 1rem rgba(5, 23, 102, 0.15);
}

.grid-context-menu.is-open {
    display: flex;
}

.grid-context-menu button {
    padding: 0.35rem 0.5rem;
    background: transparent;
    border: 0;
    color: #212529;
    font-size: 0.85rem;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.grid-context-menu button:hover {
    background-color: #eef8fd;
}
