.rounded-calendar {border-radius: 0px 0.25rem 0.25rem 0px !important}
.rounded-button-group {border-radius: 0px 0.25rem 0.25rem 0px !important}
.rounded-button-group .inner-button {border-radius: 0px 0px 0px 0px !important}

.accordion-collapse {visibility:unset !important}

html::-webkit-scrollbar, .ps-sidebar-container::-webkit-scrollbar {display: none;}

/* .input-group-text {min-width: 60px !important} */

/* search modal */
.btn-close {color: #fff !important;}
.search-modal-h3 {width: 800px !important; height: 750px !important; left: 20%;}
.search-modal-h5 {width: 900px !important; height: 500px !important; left: 10%;}
.search-modal-h6 {width: 900px !important; height: 600px !important; left: 10%;}
.search-modal-h7 {width: 1200px !important; height: 700px !important;}
.modal-h9 {width: 900px !important; height: 900px !important; left: 10%;}
.modal-w4 {width: 400px !important; margin: 0 auto;}
.modal-w5 {width: 500px !important; margin: 0 auto;}
.modal-w7 {width: 700px !important; margin: 0 auto;}
.modal-w9 {width: 900px !important; margin: 0 auto;}
.modal-w10 {width: 1000px !important; margin: 0 auto;}
.modal-w12 {width: 1200px !important; margin: 0 auto;}
.modal-w13 {width: 1300px !important; margin: 0 auto;}
.modal-w14 {width: 1400px !important; margin: 0 auto;}
.modal-w9-h9 {width: 900px !important; height: 900px !important; margin: 0 auto;}
.modal-w9-h12 {width: 900px !important; height: 1200px !important; margin: 0 auto;}
.modal-w95 {max-width: 95% !important; margin: 2.5% auto;}

/* ag grid */
.ag-header-cell {margin-left: -6px;}
.ag-header-group-cell-label {justify-content: center;}
.ag-cell {left: 3px;}
.ag-grid-icon-slim-padding {padding-left: 10px !important; padding-right: 10px !important;}
.ag-grid-icon-slim-padding-search {padding-left: 10px !important; padding-right: 10px !important; padding-top: 8px !important;}
.ag-grid-column-slim-padding {padding-left: 5px !important; padding-right: 5px !important;}
.ag-grid-money-align {text-align: end !important;}
.ag-grid-money-align-complete {color: #2a8754; font-weight: 600; text-align: end !important;}
.ag-grid-money-align-cancel {color: #FA5858; font-weight: 600; text-align: end !important;}
.ag-grid-column-cancel {color: #FA5858; font-weight: 600;}
.ag-grid-column-complete {color: #2a8754; font-weight: 600;}
.ag-grid-column-fail {color: #6d6a6a; font-weight: 600;}
.ag-grid-column-wait {color: #2E64FE; font-weight: 600;}
.ag-grid-column-total {color: #ff0000; font-weight: 600;}
.ag-grid-column-default {color: #000000;}
.ag-grid-column-same-data-spanning {background-color: #e7edffad; color: #000000;}
.disable-pointer-events {pointer-events: none; color: #bababa;}
.auto-pointer-events {pointer-events: auto; color: black;}

/* 입력 필수값 style */
.grid-column-editable {color: #0d6efd;}
.grid-column-required {color: #fd0d0d }
.input-required {color: #fd0d0d !important;}
.cell-wrap-text {white-space: normal !important;}

/* 달력 style */
.container_class_name input {color:#0d6efd !important}
.disabled\:opacity-40:disabled {opacity: 1!important;}

/* 커스텀버튼 */
.c-btn:hover {background-color: darkslateblue}

/* input label custom */
.input-label-custom {background-color: rgb(191 210 237 / 40%);}

/* 업로드 버튼 */
.file-upload {
    display: flex;
    align-items: center;
}
.custom-file-upload {
    display: inline-block;
    padding: 4px 12px;
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 28px;
    margin-right: 10px;
}
.custom-file-upload:hover {background-color: #e0e0e0;}
.file-name {
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-tooltip {
    --bs-tooltip-bg: var(--bs-primary);
}

/* 거래명세표 스타일 */
.trading-statement .border {
    font-size: 12px;
}
.trading-statement .data-text {
    color: black;
    border-color: #0a6efd !important;
}
.trading-statement, .trading-statement table {
    color: #0a6efd !important;
}
.trading-statement td {
    border: dashed 1px !important;
}

/* 그리드 컬럼 가운데 정렬 적용 */
.ag-header-group-cell-label, .ag-header-cell-label {
    justify-content: center !important;
}

/* 헤더 커스텀 스타일 — 떠있는 글래스 카드 박스 */
.header-custom {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.28);
    background-image: linear-gradient(180deg, rgba(255,255,255,0.36) 0%, rgba(248,250,253,0.22) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    box-shadow: 0 12px 32px -8px rgba(99, 102, 241, 0.18), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
    position: fixed !important;
    top: 12px;
    left: 16px;
    right: 16px;
    width: auto;
    z-index: 1030;
}

/* 헤더 페이지 탭 — 활성 탭에 accent 글로우 */
.header-custom .nav-tabs {
    gap: 4px;  /* 탭 사이 미세 간격 */
    border-bottom: none;
}
.header-custom .nav-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 10px 10px 0 0;
    color: #4a5560;
    font-weight: 500;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.header-custom .nav-tabs .nav-link:hover {
    background-color: rgba(99, 102, 241, 0.06);
    color: #4f46e5;
}
.header-custom .nav-tabs .nav-link.active {
    background-color: rgba(255, 255, 255, 0.85) !important;
    color: #4f46e5 !important;
    font-weight: 600;
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 -3px 0 #6366f1 inset, 0 -8px 16px rgba(99, 102, 241, 0.18) inset;
}

/* 탭 닫기(×) 아이콘 — 호버 시 빨간색 + 살짝 확대로 "닫기" 시그널 강화 */
.header-custom .nav-tabs .nav-link i.fi-rr-cross-small {
    display: inline-block;
    cursor: pointer;
    color: #9aa3ad;
    transition: color .15s ease, transform .15s ease;
}
.header-custom .nav-tabs .nav-link i.fi-rr-cross-small:hover {
    color: #ef4444;
    transform: scale(1.35);
}

/* 헤더 우측 반납입고 뱃지 호버 글로우 */
.header-badge {
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.header-badge:hover {
    background-color: rgba(99, 102, 241, 0.08) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.22);
    transform: translateY(-1px);
}

/* 대쉬보드 */
.dash-status-box {
    height: 127px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 0.875rem 0 rgb(41 48 66 / 10%);
    cursor: pointer;
    flex: 1 1 auto !important;
}

.dash-status-box-no-cursor {
    height: 127px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 0.875rem 0 rgb(41 48 66 / 10%);
    flex: 1 1 auto !important;
}

.dash-status-box:hover {
    box-shadow: 0 0 0.875rem 0 rgb(41 48 66 / 30%);
    background-color: #faf9f9;
}

.fc a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.fc .fc-scrollgrid-liquid {
    background-color: white;
}

.circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.blue {
    background-color: blue;
}
.green {
    background-color: green;
}
.orange {
    background-color: orange;
}
.red {
    background-color: rgb(214, 50, 50);
}
.gray {
    background-color: gray;
}

div .mail-badge {
    margin-right: 5px;
    padding: 5px 15px;
    cursor: pointer;
    color: #535a60;
    border: rgba(0, 123, 255, 0.4) solid 1px;
    background-color: rgba(0, 0, 0, 0) !important;
    font-size: 12px;
    font-weight: 400;
}

/* ===== Toss 스타일 ag-grid (미니멀 / 깔끔한 여백·포인트컬러 1색) ===== */
.ag-theme-alpine {
    --ag-foreground-color: #333d4b;
    --ag-header-foreground-color: #8b95a1;
    --ag-header-background-color: #f9fafb;
    --ag-background-color: #ffffff;
    --ag-odd-row-background-color: #ffffff;
    --ag-row-hover-color: rgba(49, 130, 246, 0.06);
    --ag-selected-row-background-color: rgba(49, 130, 246, 0.09);
    --ag-border-color: #f2f4f6;
    --ag-row-border-color: #f2f4f6;
    --ag-header-column-separator-display: none;
    --ag-cell-horizontal-border: none;
}
.ag-theme-alpine .ag-root-wrapper.ag-layout-normal {
    border: 1px solid #eef0f3;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.ag-theme-alpine .ag-header {
    border-bottom: 1px solid #eef0f3;
}
.ag-theme-alpine .ag-header-cell-label {
    font-weight: 600;
}

/* ===== 대시보드 톤 버튼 (샘플) — 그라데이션 + 부드러운 그림자 + hover 리프트 ===== */
.dash-btn {
    border: none !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    color: #fff !important;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.dash-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.dash-btn:active:not(:disabled) { transform: translateY(0); }
.dash-btn:disabled { opacity: .55; }
.dash-btn.dash-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important; box-shadow: 0 4px 12px rgba(16,185,129,.30), inset 0 1px 0 rgba(255,255,255,.25); }
.dash-btn.dash-primary { background: linear-gradient(135deg, #15774f 0%, #0e5c3f 100%) !important; box-shadow: 0 4px 12px rgba(14,92,63,.28), inset 0 1px 0 rgba(255,255,255,.22); }
.dash-btn.dash-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important; box-shadow: 0 4px 12px rgba(245,158,11,.30), inset 0 1px 0 rgba(255,255,255,.25); }
.dash-btn.dash-danger  { background: linear-gradient(135deg, #f4684f 0%, #e2483f 100%) !important; box-shadow: 0 4px 12px rgba(226,72,63,.28), inset 0 1px 0 rgba(255,255,255,.22); }
.dash-btn.dash-secondary { background: linear-gradient(135deg, #8b95a1 0%, #6b7684 100%) !important; box-shadow: 0 4px 12px rgba(107,118,132,.26), inset 0 1px 0 rgba(255,255,255,.20); }
.dash-btn.dash-info    { background: linear-gradient(135deg, #22b8cf 0%, #0891b2 100%) !important; box-shadow: 0 4px 12px rgba(8,145,178,.28), inset 0 1px 0 rgba(255,255,255,.22); }
.dash-btn.dash-dark    { background: linear-gradient(135deg, #3a4250 0%, #1c2436 100%) !important; box-shadow: 0 4px 12px rgba(28,36,54,.30), inset 0 1px 0 rgba(255,255,255,.15); }
/* dash-btn 안의 아이콘/텍스트는 흰색 */
.dash-btn i, .dash-btn span { color: #fff !important; }

/* outline(테두리형) 버튼용 고스트 톤 — 채우지 않고 은은한 보더 + hover */
.dash-btn-outline {
    background: #ffffff !important;
    border: 1px solid #dfe3e8 !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    color: #4e5968 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.dash-btn-outline:hover:not(:disabled) { transform: translateY(-1px); background: #1c2436 !important; border-color: #1c2436 !important; color: #fff !important; box-shadow: 0 4px 12px rgba(28, 36, 54, .25); }
.dash-btn-outline:hover:not(:disabled) i, .dash-btn-outline:hover:not(:disabled) span { color: #fff !important; }
.dash-btn-outline:active:not(:disabled) { transform: translateY(0); }
.dash-btn-outline:disabled { opacity: .55; }
.dash-btn-outline i, .dash-btn-outline span { color: #4e5968 !important; }

/* ===== 대시보드 톤 토글(CToggle) — 켜짐 시 액센트 색 ===== */
.dash-switch .form-check-input { cursor: pointer; border-color: #cfd4da; transition: background-color .15s ease, border-color .15s ease; }
.dash-switch .form-check-input:checked { background-color: #3f80ea !important; border-color: #3f80ea !important; }
.dash-switch .form-check-input:focus { border-color: #3f80ea; box-shadow: 0 0 0 3px rgba(63, 128, 234, .20); }
.dash-switch .form-check-input:disabled { opacity: .5; }

.tooltip-inner {
    max-width: 600px !important;  
    font-size: 16px !important; 
    padding: 16px !important;      
    width: 530px !important; 
}

.header-badge {
    margin-right: 10px;
    width: 40px;
    height: 40px; 
    border-radius: 25px;
    display: flex; 
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.header-badge .header-badge-alram {
    position: absolute;
    margin-top: -25px; 
    margin-right: -25px;
    font-size: 12px;
}

.bill-table {
    width: 750px; 
    text-align: center;
    border-color: #000000;
}

.bill-table th, 
.bill-table td {
    height: 40px;
}

.bill-table .red{
    border: 1px solid #f7c2c2;
    background-color: #fff;
    text-align: left;
    padding-left: 5px;
}

.bill-table .red-column{
    border: 1px solid #f7c2c2;
    background-color: #fff2f2;
    color: #af5f5f;
    width: 60px;
}

.bill-table .blue{
    border: 1px solid #bdc4d3;
    background-color: #fff;
    text-align: left;
    padding-left: 5px;
}

.bill-table .blue-column{
    border: 1px solid #bdc4d3;
    background-color: #f2f5ff;
    color: #3a77a2;
    width: 60px;
}

.bill-table .gray-column{
    border: 1px solid #A4A4A4;
    background-color: #f4f5f9;
    height: 30px;
}

.bill-table .gray-content{
    border: 1px solid #A4A4A4;
    height: 30px;
    background-color: #fff;
}

.right{
    text-align: right;
    padding-right: 5px;
}

@media( orientation: portrait ){
    .mobile-bill-template {
        transform: rotate(-90deg);
        transform-origin: top left;
        position: absolute;
        top: 100%;
        left: 0;
        width: 60vh;
        height: 100vw;
      }
}

.erp-hr-grad {
  border: 0;
  height: 1px;
  opacity: 1;
  background: #e4eae6;
}

.erp-container {
    position: relative;
}

/* 조회영역 우측 버튼 행 — 입력 필드 하단 라인에 정렬 */
.erp-container .row > .d-flex.flex-row-reverse {
    align-items: flex-end;
    padding-bottom: 2px;
}

.erp-container .form-label {
    color: #6b778c;
    font-weight: 700;
}

.erp-container input.form-control,
.erp-container select.form-select {
  height: 34px !important;
  font-size: 14px;
  border-radius: 7px;
  background-color: #fbfcfe;
  border-color: #d9e0ea;
}

.erp-container input::placeholder,
.erp-container select::placeholder
.erp-container textarea::placeholder {
  color: #C3CAD8;
  opacity: 1;
}

.erp-container input::-webkit-input-placeholder,
.erp-container textarea::-webkit-input-placeholder {
  color: #C3CAD8;
  opacity: 1;
}

.erp-container input.form-control:disabled,
.erp-container textarea.form-control:disabled,
.erp-container select.form-select:disabled {
  background-color: #eef2f6 !important;
  color: #6c757d !important;
}

.erp-container input.form-control[readonly],
.erp-container textarea.form-control[readonly] {
  background-color: #f6f8fb !important; /* disabled보다 더 밝게(구분) */
}

.erp-footer-inner{
  padding: 12px 24px;
  display:flex;
  justify-content:flex-end;
  gap:12px;
}

.erp-search-body{
  padding: 1.5rem;          /* 기존 p-4면 1.5rem */
  padding-bottom: 5rem;     /* 액션바 높이만큼(필요시 조절) */
}

.erp-container .erp-search-actionbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #f8f9fa;
  border: none;
  padding: 12px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.erp-container .erp-search-actionbar-middle {
  background: #f8f9fa;
  border-radius: 7px;
  border: none;
  padding: 12px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.erp-container .form-check-input {
  transform: scale(1.3);
  transform-origin: left center;
  margin-top: 0.3rem; /* 라벨과 높이 맞춤(필요시 조절) */
}

.erp-container .form-check-label {
  font-size: 14px;
  margin-left: 8px;
}

.erp-container .erp-datepicker-input {
    background-color: #fbfcfe !important;
}

.erp-container .erp-search-text {
    padding-top: 25px;
    align-self: anchor-center;
}