.form-control::placeholder {
    color: rgba(0, 0, 0, 0.2);
}

.cursor-pointer {
    cursor: pointer;
}

.upload-box {
    width: 100px;
    height: 100px;
    border: 1px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: #888;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.upload-box:hover {
    background-color: #f5f5f5;
}

.feed-icon {
    max-width: 100px;
}

.select2-container .select2-selection--single {
    height: unset;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    font-size: .765625rem;
    line-height: 1.5;
    padding: .28rem 0 .28rem .8rem;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 27px;
}

.table-sm button {
    padding: 0 .6rem;
}

.select2-results__option {
    font-size: .765625rem;
}

:root,
[data-bs-theme=light] {
    --ct-body-font-size: 0.75rem;
}

[data-bs-theme=dark] {
    --ct-body-font-size: 0.75rem;
}

:root {
    --ct-leftbar-width: 200px;
    --ct-menu-item-font-size: 12.2px;
}

.w-min-rem10 {
    min-width: 10rem;
}

.w-min-rem2 {
    min-width: 2rem;
}

.w-rem5 {
    width: 5rem !important;
}

.w-rem6 {
    width: 6rem !important;
}

.w-rem10 {
    width: 10rem !important;
}

.w-rem15 {
    width: 15rem !important;
}

.w-rem20 {
    width: 20rem !important;
}

.w-rem25 {
    width: 25rem !important;
}

.w-rem30 {
    width: 30rem !important;
}

.w-rem35 {
    width: 35rem !important;
}

.w-rem40 {
    width: 40rem !important;
}

.hr-line-dashed {
    border-top: 1px dashed #e7eaec;
    color: #ffffff;
    background-color: #ffffff;
    height: 1px;
    margin: 5px 0;
}

.collapse {
    visibility: visible !important;
}

.datepicker-pannel {
    left: 0px !important;
}

/* sm 이하 (<= 640px) */
@media (max-width: 640px) {
    .datepicker-pannel { /* 데이터 피커 패널이 너무 커서 줄임 */
        position: absolute !important;
        transform: scale(0.5); /* 절반 크기로 축소 */
        left: -200px !important;
    }
}

div[id^="el-tooltip"] {
    width: max-content !important;
    display: flex;
    padding: 30px !important;
    justify-content: center !important;
    color: black !important;
    align-items: center !important;
    border-radius: 10px;
    min-height: 50px;
    background: rgba(205, 205, 205) !important;
}

.fixed-header {
    position: fixed;
    top: 0;
    z-index: 10;
}

.dark [class^="el-"]:not([class*="el-icon"]):not([class*="el-row"]):not([class*="el-col"]):not([class*="hover"]):not([class*="el-switch"]):not([class*="el-radio"]):not([class*="el-tabs"]):not([class*="el-card"]):not([class*="el-tooltip"]):not([class*="el-form"]):not([class*="el-button"]):not([class*="el-divider"]):not([class*="el-dialog"]):not([class*="el-checkbox"]):not([class*="el-loading"]):not([class*="el-scrollbar"]):not([class*="el-cascader"]):not([class="el-tab-pane"]):not([class*="el-upload"]):not([class*="el-textarea"]) {
    background-color: #444444 !important;
    color: white !important;
}

.dark body {
    background-color: rgb(20, 20, 20) !important;
    color: rgb(134, 141, 150) !important;
}

.dark .app-menu {
    background-color: rgb(34, 34, 34) !important;
}

.dark .card {
    background-color: rgb(38, 38, 38) !important;
    border: 1px solid dimgrey !important;
    border-radius: 20px !important;
}


.dark i[class*="el-icon"] {
    background-color: transparent !important;
    color: rgb(134, 141, 150) !important;
}

.dark .el-range-input {
    background-color: unset !important;
    color: white !important;
}

.dark [class^="el-table"], .dark .el-table__header-wrapper {
    background-color: rgb(86, 86, 86) !important;
}

.dark td.in-range div {
    background-color: #888888 !important;
}

.dark .el-input__suffix {
    transform: scale(0.8);
}

.dark .el-input__inner::placeholder {
    color: #888888 !important;
}

.dark .el-input__inner, .dark textarea, .dark #tag-make-pane, .dark .el-select-dropdown, .dark .el-picker-panel {
    border: 1px solid #333333 !important;
}

.dark .text-md, .dark .text-lg, .dark .text-2xl, .dark .text-3xl, .dark .text-xl, .dark .cell, .dark .el-tabs__item {
    color: lightgrey !important;
}

.dark .el-card {
    background-color: #2d2d2d !important;
}

.dark .el-button {
    background-color: dimgrey !important;
}

.dark .el-pager > *, .dark .btn-next, .dark .btn-prev {
    background-color: unset !important;
}

.dark .el-select__input {
    border: #888888 !important;
}

.dark span[class^="el-tooltip"] {
    background-color: unset !important;
}

.dark .el-select-dropdown__item.hover, .dark .el-select-dropdown__item:hover {
    background-color: #888888 !important;
    color: white !important;
}

.dark .el-tag {
    border: #da0000 !important;
}

.dark .el-tabs__content {
    border: none !important;
    background-color: rgb(34, 34, 34) !important;
}

.dark .el-textarea__inner {
    background-color: #444444 !important;
    color: white !important;
}

.dark .el-tabs--border-card > .el-tabs__header .el-tabs__item {
    background: #444444 !important;
}

.dark .el-tabs__nav-scroll {
    background: rgb(34, 34, 34) !important;
}

.dark .accent-text {
    color: red !important;
}

.dark .available.in-range {
    color: white !important;
}

.dark .el-switch.is-checked > .el-switch__core {
    background-color: #2d2d2d !important;
}

.dark .el-card {
    border: #888888 !important;
}

.dark .el-input.is-disabled .el-input__inner {
    background: #888888 !important;
}

.collapse-header > div > div {
    font-size: 1.2rem !important;
    font-weight: bold !important;
}

.dark .collapse-header > div > div {
    background: unset !important;
    color: lightgrey !important;
}

.dark .el-collapse-item__wrap {
    background: inherit !important;
}

.highlight {
    background: rgb(254, 255, 48, 0.8);
}

.drag-handle {
    cursor: grab;
}

.color-토요일 {
    color: #0031FF;
}

.color-일요일 {
    color: #ED1C24;
}

/*.el-picker-panel__sidebar {*/
/*    width: 200px !important;*/
/*}*/

/*.el-picker-panel__body {*/
/*    margin-left: 200px !important;*/
/*}*/

/*.el-picker-panel {*/
/*    width: 1000px !important;*/
/*}*/

/* popper-class="datepicker-pannel" 내부의 shortcut 텍스트를 한 줄로 고정 */
.el-picker-panel .el-picker-panel__sidebar {
    white-space: nowrap !important; /* 줄바꿈 금지 */
    text-overflow: ellipsis; /* ... 처리 */
    width: 170px !important; /* 원하는 최대 너비 지정 */
}

.el-picker-panel [slot=sidebar] + .el-picker-panel__body, .el-picker-panel__sidebar + .el-picker-panel__body {
    margin-left: 170px !important;
}

.el-picker-panel__shortcut {
    padding: 2px 10px !important;
}

.menu-link {
    cursor: pointer !important;
}

.logo-box {
    position: relative !important;
}

.el-button {
    font-weight: 600 !important;
}

.app-menu {
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1) !important;
}

.el-card {
    box-shadow: 14px 16px 20px 0px rgba(0, 0, 0, 0.1) !important;
    border-radius: 15px !important;
    padding-inline-start: 10px !important;
    border-color: rgb(138 124 124 / 22%) !important;
}

/* 다이얼로그 스타일 */
.el-dialog {
    border-radius: 15px !important;
}

/*.dark .el-tabs * {*/
/*    background-color: rgba(37, 37, 36, 1) !important;*/
/*}*/

/*테이블 */

/* 테이블 전체 베이스 */
.el-table {
    border-radius: 14px !important;
    /*overflow: hidden !important;*/
    border: 1px solid rgba(180, 180, 180, 0.25) !important;
    background: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
}

/* 헤더 스타일 */
.el-table__header th {
    /*background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%) !important;*/
    color: #333 !important;
    font-weight: 600 !important;
    /*padding: 14px 12px !important;*/
    border-bottom: 1px solid rgba(180, 180, 180, 0.35) !important;
}

/* 각 컬럼 셀 */
.el-table__row td {
    padding: 12px 10px !important;
    border-bottom: 1px solid rgba(220, 220, 220, 0.4) !important;
    color: #444 !important;
    transition: background 0.2s ease !important;
}

/* 홀수/짝수 스트라이프 */
.el-table--striped .el-table__body tr.el-table__row--striped td {
    background-color: #fafafa !important;
}

/* Hover 스타일 */
.el-table__body tr:hover > td {
    background-color: #f0f6ff !important;
}

/* 체크박스 정렬(Selection Column 개선) */
.el-checkbox__inner {
    border-radius: 4px !important;
    width: 16px !important;
    height: 16px !important;
    border: 1px solid #bbb !important;
}

.el-checkbox__inner:hover {
    border-color: #409eff !important;
}

/* 선택 시 스타일 */
.el-checkbox__input.is-checked .el-checkbox__inner {
    background-color: #409eff !important;
    border-color: #409eff !important;
}

/* 테이블 footer(있을 경우) */
.el-table__footer-wrapper td {
    background-color: #f9f9f9 !important;
    font-weight: 600 !important;
}

/* Scrollbar 개선 */
.el-table__body-wrapper::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

.el-table__body-wrapper::-webkit-scrollbar-thumb {
    background: rgba(140, 140, 140, 0.35) !important;
    border-radius: 6px !important;
}

.el-table__body-wrapper::-webkit-scrollbar-track {
    background: rgba(240, 240, 240, 0.5) !important;
}

/*체크박스 */
/* 체크박스 박스 자체 크기 */
.el-checkbox__inner {
    width: 20px !important;
    height: 20px !important;
    border-radius: 4px !important;
    border: 1.5px solid #bfbfbf !important;
    position: relative !important;
}

/* 체크 표시(√) 정상 크기 및 위치 완전 재설정 */
.el-checkbox__inner::after {
    content: "" !important;
    position: absolute !important;

    /* 체크마크 두께 / 사이즈 */
    width: 6px !important;
    height: 12px !important;

    /* 체크마크 라인 두께 */
    border-width: 3px !important;

    /* 색 + 반전 */
    border-color: #fff !important;
    border-style: solid !important;
    border-left: 0 !important;
    border-top: 0 !important;

    /* 위치 (큰 체크박스에 맞춰 튜닝됨) */
    left: 6px !important;
    top: 0px !important;

    transform: rotate(45deg) scale(1) !important;

    /* 기본 상태에서는 숨김 */
    opacity: 0 !important;
}

/* Hover */
.el-checkbox__inner:hover {
    border-color: #409eff !important;
}

/* 체크된 상태 */
.el-checkbox__input.is-checked .el-checkbox__inner {
    background-color: #409eff !important;
    border-color: #409eff !important;
}

/* 체크된 상태에서 체크마크 보이기 */
.el-checkbox__input.is-checked .el-checkbox__inner::after {
    opacity: 1 !important;
}

/* 카드 */

.el-card, .box-card {
    margin: 10px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
    border-radius: 18px !important;
    padding-inline-start: 14px !important;
    padding-inline-end: 14px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;

    border: 1px solid rgba(150, 150, 150, 0.5) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%) !important;
    transition: all 0.25s ease !important;
}

.dark .el-card, .dark .box-card {
    border: 1px solid rgba(150, 150, 150, 0.5) !important;
    background: transparent !important;
    transition: all 0.25s ease !important;
}

.dark .el-card__body * {
    color: lightgrey !important;
}

/* Hover 효과 (조금 들어올라오는 느낌) */
.el-card:hover {
    transition: all 0.5s ease !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18) !important;
    /*background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%) !important;*/
}

/* Card 내부 컨텐츠 간격 개선 */
.el-card .el-card__body {
    padding: 14px 10px !important;
}

.el-switch:hover {
    transition: all 0.5s ease !important;
    transform: scale(1.1) !important;
}

.el-button:hover {
    transition: all 0.5s ease !important;
    transform: scale(1.07) !important;
}

.menu-item:hover, .menu-link:hover {
    color: #007eff !important;
}

.sub-menu > .menu-item:hover {
    transition: all 0.3s ease !important;
    transform: scale(1.1) !important;
    background-color: rgba(145, 145, 145, 0.15) !important;
}

.dark .el-button span, .dark .el-button {
    background-color: inherit !important;
    color: white !important;
}

.dark .el-button--info {
    background: rgb(134 141 150 / 50%) !important;
}

.dark .el-button--info span {
    background: transparent !important;
}

.dark .el-button--success {
    background-color: rgba(90 188 61 / 80%) !important;
}

.dark .el-button--success i[class*="el-icon"], .dark .el-button--success span {
    background: transparent !important;
    color: white !important;
}

.dark .el-button--info {
    background-color: rgb(133 136 142 / 80%) !important;
}

.dark .el-button--info i[class*="el-icon"], .dark .el-button--info span {
    background: transparent !important;
    color: white !important;
}

.dark .el-button--danger {
    background-color: rgba(244 98 98 / 80%) !important;
}

.dark .el-button--danger i[class*="el-icon"], .dark .el-button--danger span {
    background: transparent !important;
    color: white !important;
}

.dark .el-button--warning {
    background: rgba(226, 154, 60) !important;
}

.dark .el-button--warning i[class*="el-icon"], .dark .el-button--warning span {
    background: transparent !important;
    color: white !important;
}

.dark .el-button--primary {
    background-color: #2ea8e5 !important;
}

.dark .el-button--primary i[class*="el-icon"], .dark .el-button--primary span {
    background: transparent !important;
    color: white !important;
}

.dark .el-collapse-item__header {
    background-color: rgba(40, 40, 40, 0.5) !important;
    color: lightgrey !important;
}

.dark .el-divider__text {
    background-color: rgba(28, 28, 27) !important;
    color: white !important;
}

.dark .el-dialog__header, .dark .el-dialog__body, .dark .el-dialog__footer, .dark .el-dialog__title {
    background-color: rgba(60, 60, 60, 1) !important;
    color: white !important;
}

.dark .el-loading, .dark .el-loading-mask {
    background-color: rgb(30, 30, 29) !important;
}

.dark .el-input {
    color: white !important;
}

.code-editor {
    background: #0d1117;
    border-radius: 6px;
    padding: 12px;
    height: 100%;
}

.code-textarea {
    width: 100%;
    height: 1200px;
    resize: none;
    background: transparent;
    color: #c9d1d9;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.6;
    border: none;
    outline: none;
    white-space: pre;
}