body {
    background-color: var(--bg-light);
    font-family: 'Pretendard', sans-serif;
    overflow: hidden; /* 앱처럼 스크롤 방지 */
    margin: 0;
    color: var(--bs-body-font);
    font-weight: 400;
}
h6{font-size: clamp(13px, 1vw, 16px);}

textarea { resize: none;}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important; /* 원하는 배경색 */
    -webkit-text-fill-color: var(--bs-body-font) !important; /* 원하는 글자색 */
    transition: background-color 5000s ease-in-out 0s; /* 자동채움 색상 지속 시간 설정 */
/*     font-size: 16px; */
/*     font-weight: 600; */
}

.input-group-sm>.btn, .input-group-sm>.form-control, .input-group-sm>.form-select, .input-group-sm>.input-group-text {
    padding: .25rem .5rem;
    font-size: clamp(12px, 1vw, 14px);
    border-radius: var(--bs-border-radius-sm);
    font-weight: 500;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    text-align: center;
    white-space: nowrap;
    background-color: var(--bs-tertiary-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.form-control:focus, .form-select:focus   {
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border-color: var(--bs-border-color);
  outline: 0;
  box-shadow: 0 0 0 0px rgba(13, 110, 253, 0.25);
}

.form-select, .form-control, .btn{
	font-size: clamp(12px, 1vw, 14px);
}

.dropdown-item{
	padding: 10px 15px;
}

#main-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* 1. Sidebar */
.sidebar {
    width: var(--sidebar-width-collapsed);
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    z-index: 1000;
    overflow-x: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 마우스 오버 시 확장 (고정되지 않은 경우) */
.sidebar:not(.sidebar-fixed):hover {
    width: var(--sidebar-width);
}

/* 고정(Fixed) 상태일 때 확장 */
.sidebar-fixed {
    width: var(--sidebar-width);
}

.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-top:6px solid var(--topbar-top-border);
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--topbar-bg);
    gap:15px;
}



.nav .nav-link {
    padding: var(--navi-link-padding);
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--sidebar-nav-link-font);
    justify-content: space-between;
    margin: var(--navi-link-margin);
    border-radius: var(--navi-link-border-radius);
}

.nav-list{
	 display: flex;
	 align-items: center;
	 gap:10px;
}

.nav-list .icon{
	width: 24px; 
	height: 24px; 
	display: flex; 
	align-items: center; 
	justify-content: center; 
    font-size: 1rem;
}

.nav-list .nav-text{
	font-size: 15px;
	line-height: 24px;
	font-weight: 600
}

.nav-link.active {
    color: var(--sidebar-nav-link-active-font);
    background-color: var( --sidebar-nav-link-active-bg);
    font-weight: 600;
}

.nav-link:hover{
    color: var(--sidebar-nav-link-hover-font);
    background-color: var( --sidebar-nav-link-hover-bg);
}

.nav-text, .logo-text {
/*     margin-left: 10px; */
    opacity: 0;
    transition: opacity 0.2s;
}

.nav.nav-tabs .nav-link{
	margin: 0px;
}

.nav.nav-tabs .nav-link:hover{
	background: #f0f2f6;
	border-radius:0px; 
}

/* 확장 상태(호버 또는 고정)일 때 텍스트 표시 */
.sidebar:hover .nav-text, 
.sidebar:hover .logo-text,
.sidebar-fixed .nav-text,
.sidebar-fixed .logo-text {
    opacity: 1;
}

/* Sidebar Toggle Button Style */
.sidebar-toggle-btn {
    border: none;
    background:var( --sidebar-toggle-btn-bg);
    color: var(--sidebar-toggle-btn-font);
    cursor: pointer;
    transition: color 0.2s;
    margin-left:160px; /* 로고와 텍스트를 제외하고 우측으로 밀기 */
    width: 40px;
    height: 40px;
    border-radius:50%; 
    display: flex;
    justify-content: center;
    align-items: center;
}
.sidebar-toggle-btn:hover {
    color: var(--sidebar-toggle-btn-font);
}

/* 아이콘 스타일 및 회전 */
.sidebar-toggle-btn i {
	display: inline-block;
    font-size:16px; 
    transition: transform 0.3s ease;
}

/* 기본 (축소/호버) 상태일 때 핀 아이콘 (눕히기) */
.sidebar:not(.sidebar-fixed) .sidebar-toggle-btn i {
    transform: rotate(180deg); 
    opacity: 0.2
}

/* Fixed 상태일 때 핀 아이콘 (똑바로 세우기) */
.sidebar-fixed .sidebar-toggle-btn i {
    transform: rotate(0deg); 
    color: var(--sidebar-toggle-btn-font);
}

body.preload {
    visibility: hidden;
}

body.preload .sidebar {
    transition: none !important;
}

body.preload .sidebar:hover {
    width: var(--sidebar-width-collapsed);
}

body.ready {
    visibility: visible;
}

/* Submenu */
.submenu {
    background-color:var(--submenu-bg);
    border-radius:var(--submenu-radius);
    margin:var(--submenu-margin);
    padding: var(--submenu-padding);
}
.submenu .nav-link {
color:var(--submenu-font);
padding:var(--submenu-nav-link-padding);
}

.submenu .nav-link:hover{
	color: var( --sidebar-submenu-nav-link-active-font);
	background-color:var(--sidebar-submenu-nav-link-active-bg);
	border-radius:var(--submenu-radius);
}

.submenu .nav-link.active{
	color: var( --sidebar-submenu-nav-link-active-font);
	background-color:var(--sidebar-submenu-nav-link-active-bg);
	border-radius:var(--submenu-radius);
}

/* 2. Content Wrapper */
.content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    min-width: 0; /* Flexbox overflow fix */
}

/* 3. Topbar */
.topbar {
    height: var(--topbar-height);
    border-top:6px solid var(--topbar-top-border);
    border-bottom: 1px solid var(--bs-border-color);
    background-color:var(--topbar-bg);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    flex-shrink: 0;
    justify-content: space-between;
}

.topbar img{cursor: pointer;}

.call-input-box{
	border-radius: 6px;              /* 키패드 버튼(왼쪽)·btnCall(오른쪽) 사이 — 양쪽 직각 */
	border: 1px solid #E1E6F0;   /* 키패드 버튼 오른쪽 테두리와 공유 */
    background: #FFF;
    display:flex;
	height: 40px;	
    align-items: center;
    padding: 0;
/*     width: 354px; */
   width: 310px;  /* 기존 400px - 키패드 버튼 46px */
}

.call-input-box .form-control, .call-input-box .form-control:focus {
    color: var(--bs-body-font);
    background-color: #fff;
    border-color: #fff;
    outline: 0;
    box-shadow: 0 0 0 0 rgba(255, 255, 255);
    font-size: 16px;
    font-weight: 600;
/*     width: 200px; */
}

.call-input-box .form-control::placeholder {
    color: #AAB0BC;
    opacity: 1;
    font-size: 16px;
    font-weight: 400;
}

input[type='text']::placeholder{
	 color: #AAB0BC;
}

.top-btn-keypad{
	width: 40px;
	height: 40px;
	border-radius: 6px;   /* btnCall(0 8px 8px 0)과 대칭 */
	background: #F5F7FC;
	border: 1px solid #E1E6F0;
/* 	border-right: none;            */
	 /* call-input-box 왼쪽 테두리와 겹침 방지 */
	position: relative;
}

.top-btn-keypad:hover, .top-btn-keypad:active{
	background: #dce8f8;
}

.backspace{
	font-size: 20px;
	cursor: pointer;
	color: #BCC1CC;
}

.backspace:hover{
	color: #afb7c7;
}

.top-btn-call{
	border-radius:8px;
	background:var(--btn-call);
	width: 40px;
	height: 40px;
	border: 0;
	font-size: 22px;
	color: #FFF;
	line-height: 24px;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out
}

.top-btn-call:hover, #btnPadCall:hover{
	background:var(--btn-call-hover);
}

#btnPadCall{background:var(--btn-call);}


.top-btn-hangup{
	border-radius: 8px;
	background: #F44343;
	width: 40px;
	height: 40px;
	border: 0;
	font-size: 24px;
	color: #FFF;
	line-height: 24px;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out
}

.top-btn-hangup:hover{
	background: #D33333;
}

.btn-call-circle {
	border-radius: 50%;
	background: var(--btn-call);
	width: 56px;
	height: 56px;
	border: 0;
	font-size: 24px;
	color: #FFF;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn-call-circle:hover {
	background: var(--btn-call-hover);
}

.btn-hangup-circle {
	border-radius: 50%;
	background: #F44343;
	width: 56px;
	height: 56px;
	border: 0;
	font-size: 24px;
	color: #FFF;
	line-height: 56px;
	text-align: center;
	transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn-hangup-circle:hover {
	background: #D33333;
}

/* Topbar 버튼 크기 조정 (아이콘만 있는 버튼) */
.topbar .btn {
    /* 통화, 끊기, 키패드 버튼 등 */
    width: 40px; /* 버튼의 너비/높이를 동일하게 설정 */
    height: 32px;
    padding: 0; /* 내부 패딩 제거 (Bootstrap 기본값이 아이콘을 작게 만들 수 있음) */
    display: flex;
    align-items: center;
    justify-content: center;
/*     border-radius:12px; */
}

/* 아이콘 폰트 크기 지정 */
.topbar .btn i {
    font-size: 18px; /* 아이콘 크기를 명확히 지정 */
    line-height: 1; /* 아이콘 중앙 정렬을 위해 라인 높이 조정 */
}

.dial-input-group {
    max-width: 350px;
}

.top-icons .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #8F8FAD;
    font-size: 1.25rem;
    text-decoration: none;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
    background-color: transparent;
    position: relative;
}

.top-icons .btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.icon-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    height: 16px;
    background-color: #dc3545;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-sizing: content-box;
}

.icon-badge-bg{
   --bs-badge-padding-x: 0.65em;
    --bs-badge-padding-y: 0.35em;
    --bs-badge-font-size: 0.75em;
    --bs-badge-font-weight: 600;
    --bs-badge-color: #dc3545;
    --bs-badge-border-radius: var(--bs-border-radius);
    display: inline-block;
    padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
    font-size: 11px;
    font-weight: var(--bs-badge-font-weight);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--bs-badge-border-radius);
}

/* 4. Favorites Bar */
.favbar {
    height: var(--favbar-height);
    background-color: #f1f3f5;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.fav-item {
    margin-right: 15px;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
}
.fav-item:hover { background-color: #e9ecef; }

/* 5. View Area (SPA) */
.view-container {
    flex-grow: 1;
    padding: 0 30px;
/*     overflow-y: auto; */
    background-color: #fff;
    position: relative;
    height: 43px;
    line-height: 43px;
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 600
}

.view-container i{
/* 	color: var(--primary-color); */
	margin-right: 10px
}

.view-section {
    display: none; /* 기본 숨김 */
    height: 100%;
}

.view-section.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--avatar-circle-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    background-image: url('/img/svg/avatar.svg');
    background-size: cover;
    background-position: center;
    color: transparent;
    overflow: hidden;
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.status-indicator {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 15px;      /* 점 크기 */
    height: 15px;
    z-index: 10;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;    
}

.status-indicator.online { background-image: url('/img/svg/status_on.svg'); }
.status-indicator.offline { background-image: url('/img/svg/status_out.svg'); }
.status-indicator.away { background-image: url('/img/svg/status_wait.svg'); }
.status-indicator.busy { background-image: url('/img/svg/status_work.svg'); }
.status-indicator.call { background-image: url('/img/svg/status_call.svg'); }
.status-indicator.mobile { background-image: url('/img/svg/status_mobile.svg'); }

/* Offcanvas Keypad Display */
#offcanvasDialDisplay {
    min-height: 45px;
    line-height: 1.5;
}

/* DTMF 입력 표시 영역 */
#padDtmfDisplay {
	min-height: 28px;
	padding: 2px 8px 4px;
	margin-bottom: 4px;
	font-family: monospace;
	font-size: 1.1rem;
	letter-spacing: 4px;
	text-align: left;
	color: var(--bs-secondary);
	border-bottom: 1px solid var(--bs-border-color);
	word-break: break-all;
}

/* 키패드 버튼 */
.offcanvas-body .key-pad {
	font-size: 1.2rem;
	height: 50px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding-top: 6px;
	padding-bottom: 6px;
}

.offcanvas-body .key-pad .key-num {
	font-size: 1.3rem;
	font-weight: 500;
	line-height: 1;
}

.offcanvas-body .key-pad .key-letters {
	font-size: 0.6rem;
	letter-spacing: 0.1em;
	color: #888;
	margin-top: 2px;
	min-height: 0.75rem;
	display: block;
}

.sidebar .nav {
	flex-grow: 1;
}
	
/* Sidebar Footer (버전 정보) */
.sidebar-footer {
    border-top: 0px solid #343a40;
    padding: 10px 15px;
    font-size: 0.8rem;
    text-align: center;
    flex-shrink: 0;
    color: var(--sidebar-footer-font);
}
.sidebar-footer .version-text {
    opacity: 0;
    transition: opacity 0.2s;
}
.sidebar:hover .sidebar-footer .version-text,
.sidebar-fixed .sidebar-footer .version-text {
    opacity: 1;
}

.profile-popup {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 12px;
    z-index: 2000;
}

.profile-popup .profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-popup .avatar.large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.profile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-menu li {
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 6px;
	font-size: 15px;
}

.profile-menu li:hover {
    background: #f5f5f5;
}

.status-icon {
	width: 15px;
	height: 15px;
	object-fit: contain;
}

.status-text {
	font-size: 0.85rem;
	color: #555;
	font-weight: 500;
}

.menu-divider {
	margin: 8px 0;
	border: 0;
	border-top: 1px solid #ebebeb;
}

.lang-popup {
    position: absolute;
    top: 60px;
    right: 70px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 6px;
    z-index: 2000;
    width: 160px;
}

.lang-popup button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
}

.lang-popup button:hover {
    background: #f5f5f5;
}

.lang-popup img {
    width: 20px;
    height: 20px;
}

#viewContainer {
	min-width: 550px;
}
/*font-size*/
.fs12{ font-size: clamp(11px, 1vw, 12px);}
.fs13{ font-size: clamp(11px, 1vw, 13px);}
.fs14{ font-size: clamp(12px, 1vw, 14px);}
.fs15{ font-size: clamp(13px, 1vw, 15px);}
.fs18{ font-size: clamp(15px, 1vw, 18px);}
.fs20{ font-size: clamp(16px, 1vw, 20px);}

.small, small {
    font-size: clamp(12px, 1vw, 14px)  !important;;
    line-height: 14px;
}

.btn-group-sm>.btn, .btn-sm{
	font-size: clamp(12px, 1vw, 14px)  !important;;
}

/*font-color*/
.text-primary{color: var(--primary-color) !important;}
.text-secondary{color: var(--secondary-color) !important;}
.text-blue{color: var(--bs-blue) !important;}
.text-red{color: var(--bs-red) !important;}
.text-silver{color: var(--bs-gray-200) !important;}
.text-purple{color:var(--bs-purple) !important;}
.text-cyan{color:var(--bs-cyan) !important;}
.text-teal{color:var(--bs-teal) !important;}
.text-gary{color:var(--bs-gray-700) !important;}
.text-pale-gary{color:var(--bs-gray-500) !important;}
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight:500;
}

.num {
	color: var(--bs-blue) !important;
	font-weight: 600;
	font-size: 12px !important;
}

.resetBtn{
	color:var(--bs-gray-500);
	cursor: pointer;
	font-size: clamp(12px, 1vw, 14px) !important;
}

.resetBtn:hover{
	color:var(--bs-gray-700) !important;
}


/*bg-color*/
.bg-secondary {background-color: var(--bs-gray-400) !important;}
.bg-success {background-color: var(--bs-green) !important;}
.bg-light { --bs-bg-opacity: 1; 
background-color: rgb(246 246 246) !important;}
/* background: var(--org-sidebar-bg)  !important;} */

/*gap추가*/
.gap3{
	display: flex;
	gap:3px;
}


.gap6{
	display: flex;
	gap:6px;
}

.gap8{
	display: flex;
	gap:8px;
}

.gap15{
	display: flex;
	gap:15px;
}

.gap3-c{
	display: flex;
	flex-direction: column;
	gap:3px;
}

.gap5-c{
	display: flex;
	flex-direction: column;
	gap:5px;
}

.gap10-c{
	display: flex;
	flex-direction: column;
	gap:10px;
}


.ps-6 {
  padding-left:90px !important;
}

.btn{
	font-weight: 600
}

.btn-i{
	display: flex;
	align-items: center;
	gap:5px;
	font-weight: 600
}

.btn-call{
	background: linear-gradient(273deg, #3AE4DC 24.6%, #15EE81 97.51%);
	color: var(--bs-white);
	width: 35px;
    height: 35px;
    border: none;
}

.btn-call:hover, .btn-call:active{
	background: linear-gradient(273deg, #33c7c0 24.6%, #13ca6e 97.51%);
	color: var(--bs-white);
	width: 35px;
    height: 35px;
}

.btn-chat{
	background:#5F96FF;
	color: var(--bs-white);
	width: 35px;
    height: 35px;
     border: none;
}

.btn-chat:hover{
	background:#3479FF;
	color: var(--bs-white);
	width: 35px;
    height: 35px;
}

.btn-close {
  --bs-btn-close-color: #000;
  --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e");
  --bs-btn-close-opacity: 0.5;
  --bs-btn-close-hover-opacity: 0.75;
  --bs-btn-close-focus-shadow: 0 0 0 0px rgba(13, 110, 253, 0.25);
  --bs-btn-close-focus-opacity: 1;
  --bs-btn-close-disabled-opacity: 0.25;
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em 0.25em;
  color: var(--bs-btn-close-color);
  background: transparent var(--bs-btn-close-bg) center/1em auto no-repeat;
  filter: var(--bs-btn-close-filter);
  border: 0;
  border-radius: 0.375rem;
  opacity: var(--bs-btn-close-opacity);
}

.action-btns {
	gap: 15px;
	display: flex;
	align-items: center;
}

.action-btns i {
	font-size: 22px;
	line-height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.avatar-box {
  width: 42px;
  height: 42px;  
}

.avatar-circle{
  background-color: var(--avatar-circle-bg) !important;
  color: var(--avatar-circle) !important;
  width: 100%; 
  height: 100%; 
  border-radius:var(--avatar-circle-border-radius);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: 700; 
  overflow: hidden;
}

.contact-circle{
  border-radius:var(--avatar-circle-border-radius);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight:600; 
  overflow: hidden;
  color: var(--bs-white);
}

.btn-link {
    text-decoration: none  !important;
}

/*table*/
.table thead th {
	position: sticky;
	top: 0;
	background: var(--table-th-bg);
	color:var(--table-th-font);
	z-index: 10;
	border-top: none;
	font-size: clamp(13px, 1vw, 15px);
	font-weight: 500
}

.table td {
	font-size: clamp(13px, 1vw, 15px);
	font-weight: 500 !important;
}

tbody, td, tfoot, th, thead, tr {
    cursor: pointer;
}

.table>thead {
    border-bottom:var(--table-th-border-bottom);
}

.pagination-sm {
    --bs-pagination-padding-x: 0.7rem;
    --bs-pagination-padding-y: 0.25rem;
    --bs-pagination-font-size: 0.875rem;
    --bs-pagination-border-radius: var(--bs-border-radius-sm);
}

.pagination {
    --bs-pagination-focus-box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.25);
}

/*modal*/
.modal-header h5{
	margin-bottom: 0;
	font-weight: 600;
	font-size: 18px;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: var(--bs-modal-padding);
    gap:10px;
}

.modal-body .alert-icon i{
	font-size: 25px;
	color: var(--bs-yellow);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    color: var(--bs-body-font);
    font-size:15px;
    pointer-events: auto;
    background-color: var(--bs-modal-bg);
    background-clip: padding-box;
    border: var(--bs-modal-border-width) solid var(--bs-modal-border-color);
    border-radius: var(--bs-modal-border-radius);
    outline: 0;
}

.modal-footer {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);
    background-color: var(--bs-modal-footer-bg);
    border-top: var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);
    border-bottom-right-radius: var(--bs-modal-inner-border-radius);
    border-bottom-left-radius: var(--bs-modal-inner-border-radius);
    gap:10px
}

.modal {
    --bs-modal-zindex: 1055;
    --bs-modal-width: 500px;
    --bs-modal-padding: 1rem;
    --bs-modal-margin: 0.5rem;
    --bs-modal-color: var(--bs-body-color);
    --bs-modal-bg: var(--bs-body-bg);
    --bs-modal-border-color: var(--bs-border-color-translucent);
    --bs-modal-border-width: var(--bs-border-width);
    --bs-modal-border-radius : var(--bs-border-radius-lg);
    --bs-modal-box-shadow: var(--bs-box-shadow-sm);
    --bs-modal-inner-border-radius: calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));
    --bs-modal-header-padding-x: 0.75rem;
    --bs-modal-header-padding-y: 0.75rem;
    --bs-modal-header-padding: 0.75rem 1rem;
    --bs-modal-header-border-color: var(--bs-border-color);
    --bs-modal-header-border-width: var(--bs-border-width);
    --bs-modal-title-line-height: 1.5;
    --bs-modal-footer-gap: 0.5rem;
    --bs-modal-footer-bg: ;
    --bs-modal-footer-border-color: var(--bs-border-color);
    --bs-modal-footer-border-width: var(--bs-border-width);
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--bs-modal-zindex);
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal-footer>* {
    margin: 0;
}

.active>.page-link, .page-link.active {
    z-index: 3;
    color: #fff !important;
    background-color: var(--bs-pagination-active) !important;
    border-color: var(--bs-pagination-active-border) !important;
}

.page-link{
	color: var(--bs-pagination-font) !important;;
}

.border-primary-subtle {
    border-color: var(--bs-primary-border-sub) !important;
}

.bg-light-subtle {
  background-color: var(--bs-light-bg-subtle) !important;
}



.form-label{
	font-weight: 600;
	font-size: 15px;
}

.form-label {
    margin-bottom:3px;
}


/*반응형을 위한 css*/
.flex-com-btw{
	display: flex;
	align-items: center;
	justify-content: space-between;
}


.user-message {
	font-size: 13px;
	color: var(--bs-gray-600);
	font-weight: normal;
	max-width: 200px;
	font-weight: 500
}

.icon-img {
    max-width: 40px;
    max-height: 40px;
    min-width: 35px;
    min-height: 30px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-img {
    max-width: 130px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media screen and (max-width: 1024px) {

    .nav-link{    
		padding: 12px 20px;
	}
	
	 .user-message {
		display: none !important;
    }
}


@media screen and (max-width:800px) {
	 .flex-com-btw {
        display: flex;
	    align-items: flex-start;
	    flex-direction: column;
	    gap:10px
    }
}

.menu-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background-color: #ff3b30;
	color: #ffffff;
	font-size: 10px;
	min-width: 16px;
	height: 16px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	font-weight: bold;
	z-index: 100;
}

@keyframes callPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.15); }
}

/* ===== call-input-box 내부 오버레이 패널 (수신 / 발신) ===== */
.call-input-box .call-inline-panel {
	position: absolute;
	inset: 0;
	top: 0;
	left: 0;
	transform: none;
	height: auto;
	min-width: unset;
	max-width: unset;
	border-radius:6px !important;
	padding: 0 10px;       /* 키패드 버튼이 분리되어 좌측 여분 padding 불필요 */
	box-shadow: none;
	gap: 8px;
	z-index: 11; /* callOverlay(z-index:10)보다 높게 설정 */
	justify-content: center;
	animation: callInputOverlayIn 0.2s ease;
}

/* 가운데 정렬 시 info 영역이 공간을 다 차지하지 않도록 */
.call-input-box .call-inline-info {
/* 	flex: 0 1 auto; */
}

@keyframes callInputOverlayIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.call-input-box .call-inline-avatar {
	width: 28px;
	height: 28px;
	font-size: 12px;
	border-width: 1px;
}

.call-input-box .call-inline-btn-answer {
	width: 28px;
	height: 28px;
	font-size: 13px;
	padding: 5px;
}

/* ===== 인라인 통화 패널 (수신 / 발신) ===== */
.call-inline-panel {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	z-index: 200;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 46px;
	padding: 0 10px 0 8px;
	border-radius: 8px;
/* 	background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%); */
/* 	box-shadow: 0 4px 16px rgba(13, 110, 253, 0.35); */
	background:#2876DB;
	color: #fff;
	min-width: 340px;
	max-width: 446px;
	animation: inlinePanelIn 0.2s ease;
}

.call-inline-panel.outgoing {
/* 	background: linear-gradient(135deg, #198754 0%, #146c43 100%); */
/* 	box-shadow: 0 4px 16px rgba(25, 135, 84, 0.35); */
	border-radius:6px !important; 
	background: #2a8d43;
}

/* 협의호 인라인 패널 — 주황 계열로 구분 */
.call-inline-panel.consulting {
	background: linear-gradient(135deg, #fd7e14 0%, #e8590c 100%);
	box-shadow: 0 4px 16px rgba(253, 126, 20, 0.35);
	border-radius:6px !important; 
}

@keyframes inlinePanelIn {
	from { opacity: 0; transform: translateY(calc(-50% - 6px)); }
	to   { opacity: 1; transform: translateY(-50%); }
}

/* 아바타 */
.call-inline-avatar {
	width: 30px;
	height: 30px;
	border-radius: 30%;
	background: rgba(255,255,255,0.25) center/cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	border: 1.5px solid rgba(255,255,255,0.45);
	flex-shrink: 0;
	overflow: hidden;
}

/* 아바타 내 아이콘 (음성사서함 등 특수 번호) */
.call-inline-avatar i {
	font-size: 1em;
	line-height: 1;
	font-weight: 400;
}

/* 아바타 내 SVG 이미지 (당겨받기·음성사서함 버튼 아이콘과 동일) */
.call-inline-avatar img {
	width: 60%;
	height: 60%;
	object-fit: contain;
	filter: brightness(0) invert(1); /* SVG를 흰색으로 변환 */
}

/* 이름 + 상태 */
.call-inline-info {
/* 	flex: 1; */
/* 	min-width: 0; */
/* 	display: flex; */
/* 	flex-direction: column; */
/* 	gap: 2px; */
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    gap: 2px;
    justify-content: space-between;
}

.call-inline-status img{
	height: 8px;
}

.call-inline-name {
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.2;
	letter-spacing: -0.3px;
}

.call-inline-status {
	font-size: 12px;
	line-height: 1.2;
	display: flex;
	align-items: center;
	letter-spacing: -0.5px;
}

/* 버튼 그룹 */
.call-inline-btns {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

/* 수락 버튼 */
.call-inline-btn-answer {
	width: 30px;
	height: 30px;
	border-radius: 30%;
	background: #28a745;
	border: 0;
	color: #fff;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .15s;
	padding: 6px;
}
.call-inline-btn-answer:hover { background: #218838; }
.call-inline-btn-answer img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }

/* 통화 모달 공통 아바타 (이전 버전 호환) */
.call-modal-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255,255,255,0.2) center/cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 12px;
	font-size: 26px;
	font-weight: 700;
	color: #fff;
	border: 2px solid rgba(255,255,255,0.4);
	overflow: hidden;
}

#sidebarNav .collapsing {
    transition-duration: 100ms;
}

#callSelectModal {
	z-index: 1056;
}
#callSelectModal + .modal-backdrop {
	z-index: 1055;
}

.recent-numbers-panel {
	position: absolute;
	top: 100%; /* input 바로 아래 */
	left: 0;
	right: 0;
	width: 400px;
	background: white;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	z-index: 1050;
	margin-top: 2px;
	display: none; /* 기본 숨김 */
}

.recent-number-item {
	padding: 8px 12px;
	cursor: pointer;
	font-size: 14px;
	display: flex;
	align-items: center;
	transition: background 0.2s;
}

.recent-number-item:hover {
	background-color: #f8f9fa;
}

.recent-number-item i {
	color: #6c757d;
	margin-right: 10px;
}

/* 다운로드 진행 토스트 */
.download-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    z-index: 9999;
    min-width: 280px;
    max-width: 360px;
}

#callOverlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
/* 	justify-content: center; */
	justify-content: space-around;
/* 	gap: 6px; */
/* 	background: rgba(25, 135, 84, 0.92); */
/* 	border-radius: 0; */
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	pointer-events: none;
	z-index: 10;
	border-radius:6px !important; 
	background: #2a8d43;
}

#callOverlayIcon {
	font-size: 20px;
	animation: callPulse 1.2s infinite;
}

.callOverlayIcon-bg {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #28a745;
	border: 0;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .15s;
	padding: 6px;
}

#callOverlayTimer {
	font-variant-numeric: tabular-nums;
	opacity: 0.85;
	font-size: 12px;
}

/* 3자통화 — 오버레이 이름 영역 두 줄 대응 */
#callOverlayNumber {
/* 	flex: 1;                    가용 공간 최대 활용 */
/*  	min-width: 0;               flex 환경에서 ellipsis 동작을 위한 필수 설정 */
	white-space: normal;        /* <br> / block span 줄바꿈 허용 */
	line-height: 1.35;
	text-align: center;
 	max-width: 200px;           /*아이콘·타이머와 겹침 방지 */
	overflow: hidden;
   white-space: nowrap;
   text-overflow: ellipsis;
   word-break: break-all;
}

/* 3자통화 시 각 상대방을 한 줄씩 표시 */
#callOverlayNumber span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	line-height: 1.4;           /* 12px × 1.4 = 16.8px × 2줄 = 33.6px → 46px 내 수용 */
}

/* 두 번째 상대방(협의호)은 약간 흐리게 구분 */
#callOverlayNumber span + span {
	opacity: 0.75;
}

/* 도움말 모달 리스트 아이콘 배지 고정 크기 */
.help-modal .modal-body .badge {
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	font-size: 18px !important;
	flex-shrink: 0;
	justify-content: center;
	align-self: center;
}