/* =========== 크롬 브라우저 스타일 제거 =========== */
input:focus,
checkbox:focus,
option:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* =========== fron button group =========== */
.btn {
    padding: 0.625rem 1rem;
    line-height: 1.5;
}

.btn-primary {
    border-radius: 0.5rem;
    border: 1px solid var(--Brand-600, #7F56D9);
    background: var(--Brand-600, #7F56D9);
    color: var(--Base-White, #FFF);
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    transition: all 0.5s;
}

.btn-primary:hover {
    border-radius: 0.5rem;
    border: 1px solid var(--Brand-700, #6941C6);
    background: var(--Brand-700, #6941C6);
    outline: none;
}

.btn-primary:active {
    border-radius: 0.5rem;
    border: 1px solid var(--Brand-700, #53389E) !important;
    background: var(--Brand-800, #53389E) !important;
    transition: background-color 0.1s ease, color 0.1s ease;
    transform: scale(0.98);
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(127, 86, 217, 0.3) !important;
}

.btn-primary:focus {
    border: 1px solid var(--Brand-700, #6941C6);
    outline: none;
}

.btn-primary:disabled {
    border-radius: 0.5rem;
    border: 1px solid var(--Brand-700, #EAECF0);
    background: var(--Gray-200, #EAECF0);
    color: var(--Gray-400, #98A2B3) !important;
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    transition: all 0.7s;
    opacity: 1;
}

.btn-primary-line {
    position: relative;
    border-radius: 0.5rem;
    border: 1px solid var(--Brand-600, #7F56D9);
    background: #fff;
    color: var(--Brand-600, #7F56D9);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
}

.btn-primary-line:hover {
    border-radius: 0.5rem;
    border: 1px solid var(--Brand-600, #7F56D9);
    background: var(--Brand-50, #F9F5FF);
    color: var(--Brand-600, #7F56D9);
    font-style: normal;
    font-weight: 600;
    box-shadow: none;
    outline: none;
}

.btn-primary-line:hover:active {
    border-radius: 0.5rem;
    border: 1px solid var(--Brand-600, #7F56D9);
    background: var(--Brand-100, #F4EBFF);
    color: var(--Brand-600, #7F56D9);
    transition: background-color 0.1s ease, color 0.1s ease;
    transform: scale(0.98);
    font-style: normal;
    font-weight: 600;
    box-shadow: none;
    outline: none;
}

.btn-primary-line:focus {
    border-radius: 0.5rem;
    border: 1px solid var(--Brand-600, #7F56D9);
    color: var(--Brand-600, #7F56D9);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    box-shadow: none;
    outline: none;
}

.btn-primary-line:disabled {
    border-radius: 0.5rem;
    border: 1px solid var(--Gray-300, #D0D5DD);
    background: var(--Gray-200, #EAECF0);
    color: var(--Gray-400, #98A2B3);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    transition: all 0.7s;
    opacity: 1;
}

.btn-primary-line:disabled:hover:active {
    border-radius: 0.5rem;
    border: 1px solid var(--Gray-300, #D0D5DD);
    background: var(--Gray-200, #EAECF0);
    color: var(--Gray-400, #98A2B3);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    transform: none;
    transition: all 0.7s;
    opacity: 1;
}

.btn-assistive {
    border-radius: 0.5rem;
    border: 1px solid var(--Gray-300, #D0D5DD);
    background: var(--Base-White, #FFF);
    color: var(--Gray-700, #344054);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-assistive:hover {
    border-radius: 0.5rem;
    border: 1px solid var(--Gray-300, #D0D5DD);
    background: var(--Gray-50, #F9FAFB);
    color: var(--Gray-700, #344054);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
}

.btn-assistive:hover:active {
    border-radius: 0.5rem;
    border: 1px solid var(--Gray-300, #D0D5DD);
    background: var(--Gray-100, #F2F4F7);
    color: var(--Gray-700, #344054);
    transition: background-color 0.1s ease, color 0.1s ease;
    transform: scale(0.98);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
}

.btn-assistive:disabled {
    border-radius: 0.5rem;
    border: 1px solid var(--Gray-300, #D0D5DD);
    background: var(--Gray-200, #EAECF0);
    color: var(--Gray-400, #98A2B3);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    transition: all 0.7s;
    opacity: 1;
}

.btn-assistive-none-line {
    border-radius: 0.5rem;
    background: none;
    color: var(--Gray-700, #344054);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    transition: all 0.7s;
}

.btn-assistive-none-line:hover {
    border-radius: 0.5rem;
    background: var(--Gray-50, #F9FAFB);
    color: var(--Gray-700, #344054);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
}

.btn-assistive-none-line:focus,
.btn-assistive-none-line:active {
    border-radius: 0.5rem;
    background: var(--Gray-100, #F2F4F7);
    color: var(--Gray-700, #344054);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
}

.btn-assistive-none-line:disabled {
    border-radius: 0.5rem;
    background: var(--Gray-200, #EAECF0);
    color: var(--Gray-400, #98A2B3);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    transition: all 0.7s;
    opacity: 1;
}

.btn-warning {
    border-radius: 0.5rem;
    border: 1px solid var(--Error-600, #D92D20);
    background: var(--Error-600, #D92D20);
    color: var(--Base-White, #FFF);
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.75rem;
    transition: all 0.7s;
}

.btn-warning:hover {
    border-radius: 0.5rem;
    border: 1px solid var(--Error-700, #B42318);
    background: var(--Error-700, #B42318);
}

.btn-warning:focus,
.btn-warning:active {
    border-radius: 0.5rem;
    border: 1px solid var(--Error-600, #D92D20);
    background: var(--Error-600, #D92D20);
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05), 0px 0px 0px 4px rgba(240, 68, 56, 0.24);
}

.btn-warning:disabled {
    border-radius: 0.5rem;
    border: 1px solid var(--Gray-200, #EAECF0);
    background: var(--Gray-100, #F2F4F7);
    color: var(--Gray-400, #98A2B3);
    transition: all 0.7s;
    opacity: 1;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    animation: warning-pulse 1s;
    box-shadow: 0 0 0 2em transparent;
}

.btn-none-line {
    color: var(--Gray-700, #344054);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.5rem;
    background: none;
}

.btn-none-line:disabled {
    color: var(--Gray-400, #98A2B3);
    opacity: 1;
}

.btn-basic {
    width: 4rem;
    border-radius: 0.25rem;
    background: var(--Gray-100, #F2F4F7);
    color: var(--Gray-600, #475467);
    line-height: 1.25rem;
}

.btn-checkbox {
    flex: 1;
    height: 44px;
    margin-left: 0.5rem;
}

.btn-checkbox:nth-child(1) {
    margin-left: 0;
}

.btn-checkbox input[type=radio] {
    display: none;
}

.btn-checkbox label {
    margin: 0 auto;
    text-align: center;
    height: -webkit-fill-available;
    line-height: 45px;
}

.btn-checkbox input[type=radio]+label {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid var(--Gray-300, #D0D5DD);
    background: var(--Base-White, #FFF);
    color: var(--Gray-400, #98A2B3);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
}

.btn-checkbox input[type=radio]:checked+label {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid var(--Brand-600, #7F56D9);
    background: var(--Brand-50, #F9F5FF);
    color: var(--Brand-700, #6941C6);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
}

.btn-checkbox input[type=radio]+label:hover {
    border-radius: 0.5rem;
    border: 1px solid var(--Gray-300, #D0D5DD);
    background: var(--Base-White, #FFF);
    color: var(--Brand-700, #6941C6);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
}

.btn-checkbox input[type=radio]+label:disabled {
    border-radius: 0.5rem;
    border: 1px solid var(--Gray-300, #D0D5DD);
    background: var(--colors-gray-light-mode-200, #EAECF0);
    color: var(--Gray-400, #98A2B3);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    opacity: 1;
}

.btn-checkbox.readeonly input[type=radio]+label {
    border-radius: 0.5rem;
    border: 1px solid var(--Gray-300, #D0D5DD);
    background: var(--colors-gray-light-mode-200, #EAECF0);
    color: var(--Gray-400, #98A2B3);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
}

.btn-checkbox.readeonly input[type=radio]+label:hover {
    border-radius: 0.5rem;
    border: 1px solid var(--Gray-300, #D0D5DD);
    background: var(--colors-gray-light-mode-200, #EAECF0);
    color: var(--Gray-400, #98A2B3);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
}

.long {
    width: 25rem;
    padding: 0.75rem 1.125rem;
}

.btn-icon {
    padding: 0;
    margin: 0;
    background: none;
}

.template-download-btn {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.25rem;
}

.go-to-list-btn-wrapper.gap-half-rem {
    color: var(--Gray-400, #98A2B3);
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.25rem;
}

.sub-action-btn {
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    background: var(--Gray-200, #EAECF0);
    color: var(--Gray-700, #344054);
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.25rem;
}

.sub-action-btn:hover {
    background: var(--Gray-200, #d9dbdf);
}

/* =========== button size =========== */
.btn-px-1-125-py-0-75 {
    padding: 0.75rem 1.125rem;
}


/* ========== Radio Button [START] ========== */
.radio {
    display: inline-flex;
    align-items: center;
    margin: 8px;
    cursor: pointer;
}

.radio input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 1px solid var(--Gray-300, #D0D5DD);
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

/* 체크된 상태 */
.radio input:checked+.radio-custom {
    border-color: #7f56d9;
    background-color: #7f56d9;
}

.radio input:checked+.radio-custom::after {
    content: "";
    position: absolute;
    top: 6.5px;
    left: 6.17px;
    width: 0.6rem;
    height: 0.6rem;
    background-color: white;
    border-radius: 50%;
}

/* hover 상태 */
.radio:hover .radio-custom {
    box-shadow: 0px 0px 0px 4px rgba(152, 162, 179, 0.14);
}

/* hover + checked */
.radio:hover input:checked+.radio-custom {
    box-shadow: 0 0 0 4px rgba(127, 86, 217, 0.3);
}

.radio:hover input:disabled+.radio-custom {
    box-shadow: none;
}

/* disabled 상태 */
.radio input:disabled+.radio-custom {
    border-color: #d0d4dd;
    background-color: #f4f5f7;
    cursor: not-allowed;
}

.radio input:checked:disabled+.radio-custom {
    background-color: #d0d4dd;
}

.radio input:checked:disabled+.radio-custom::after {
    background-color: #f4f5f7;
}

/* ========== Radio Button [END] ========== */


/* =========== tab button =========== */
/* reset */
ul {
    list-style: none;
}

button {
    border: none;
}

/* contents */
.tab-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin: 1.5rem 0 0 0;
}

.tab-container .tab-list-wrapper {
    width: 100%;
    padding: 0;
    margin: 0;
}

.tab-container .tab-list-wrapper li .content {
    display: none;
    width: 100%;
    padding: 1.5rem 0 4rem 0;
}

.tab-container .tab-list-wrapper li.show .content {
    display: block;

}

/* button */
.borderless-tab-btn-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    padding: 0;
    overflow-x: auto;
    margin-bottom: 0;
    padding-bottom: 0;
    justify-content: space-between;
}

.borderless-tab-btn-wrapper::-webkit-scrollbar {
    display: none;
}

.borderless-tab-btn-wrapper>* {
    flex-shrink: 0;
}

.tab-container .tab-btn-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--Gray-200, #EAECF0);
}

.border-none-tab-btn {
    gap: 1.5rem;
}

.bottom-boder.tab-container .tab-btn-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
}

.tab-container .tab-btn-wrapper li,
.tab-container .borderless-tab-btn-wrapper li {
    flex-grow: 1;

}

.tab-container .tab-btn-wrapper li .tab-btn,
.tab-container .borderless-tab-btn-wrapper li .tab-btn {
    display: inline-block;
    width: 100%;
    height: 2.25rem;
    color: var(--Gray-400, #98A2B3);
    text-align: center;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.5rem;
    background: none;
    padding: 0;
}

.tab-container .tab-btn-wrapper li .tab-btn:hover,
.tab-container .borderless-tab-btn-wrapper li .tab-btn:hover {
    border-bottom: 2px solid var(--Gray-700, #344054);
    color: var(--Gray-700, #344054);
    transition: none;
}

.content .header button {
    display: flex;
    padding: 0.625rem 1rem;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
}

/* button active */
.tab-container .tab-btn-wrapper li.show .tab-btn,
.tab-container .borderless-tab-btn-wrapper li.show .tab-btn {
    border-bottom: 2px solid var(--Gray-700, #344054);
    color: var(--Gray-700, #344054);
}

/* =========== tab button ver2 =========== */
.bottom-border-tab .tab-menu ul {
    display: flex;
    padding: 0;
    border-bottom: 1px solid var(--Gray-200, #EAECF0);
}

.bottom-border-tab .tab-menu ul li a {
    padding: 0.5rem;
    display: block;
    color: var(--Gray-400, #98A2B3);
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.5rem;
}

.bottom-border-tab .tab-menu ul li a.active {
    color: var(--Gray-700, #344054);
    border-bottom: 2px solid var(--Gray-200, #344054);
}

.bottom-border-tab .tab-menu ul li:active {
    color: var(--Gray-700, #344054);
}

.bottom-border-tab .tab-menu ul li:nth-child(3) {
    background-color: rgb(255, 99, 125);
}

.bottom-border-tab .tab-menu ul li:nth-child(4) {
    background-color: rgb(255, 25, 63);
}

.bottom-border-tab .tab-contents {
    position: relative;
    height: 100px;
}

.bottom-border-tab .tab-contents div {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
}

.bottom-border-tab .tab-contents div.on {
    display: block;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-border-tab .tab-contents div:nth-child(1) {
    background-color: pink;
}

.bottom-border-tab .tab-contents div:nth-child(2) {
    background-color: rgb(255, 140, 159);
}

.bottom-border-tab .tab-contents div:nth-child(4) {
    background-color: rgb(255, 99, 125);
}

.bottom-border-tab .tab-contents div:nth-child(5) {
    background-color: rgb(255, 25, 63);
}

/* =========== toggle switch button =========== */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.checkbox-wrapper:nth-child(1) {
    margin-top: 0;
}

.checkbox-wrapper .switch {
    display: inline-block;
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
}

.checkbox-wrapper .switch input {
    display: none;
}

.checkbox-wrapper .slider {
    background: var(--Gray-100, #F2F4F7);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.checkbox-wrapper .slider:before {
    width: 1.25rem;
    height: 1.25rem;
    background-color: #fff;
    content: "";
    position: absolute;
    left: 0.15rem;
    bottom: 0.12032rem;
    transition: .4s;
}

.checkbox-wrapper input:checked+.slider {
    background: var(--Brand-600, #7F56D9);
}

.checkbox-wrapper input:checked+.slider:before {
    transform: translateX(1.23rem);
}

.checkbox-wrapper .slider.round {
    border-radius: 0.75rem;
}

.checkbox-wrapper .slider.round:before {
    border-radius: 50%;
}

/* =========== event button =========== */
.pulse:hover,
.pulse:focus,
.pulse:active {
    color: #fff;
    animation: pulse 1s;
    box-shadow: 0 0 0 2em transparent;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--hover);
    }
}

.pulse {
    --color: #6941C6;
    --hover: #D6BBFB;
}


@keyframes warning-pulse {
    0% {
        box-shadow: 0 0 0 0 var(--hover);
    }
}

.warning-pulse {
    --color: #D92D20;
    --hover: #FBD2CF;
}

.btn-jelly:hover {
    animation: jelly 0.5s !important;
}

.btn-jelly:active {
    outline: none;
    border: none;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    border-radius: 0.5rem;
    border: 1px solid var(--Gray-300, #D0D5DD);
    background: var(--Gray-200, #EAECF0);
}

@keyframes jelly {
    25% {
        transform: scale(0.9, 1.1);
    }

    50% {
        transform: scale(1.1, 0.9);
    }

    75% {
        transform: scale(0.95, 1.05);
    }
}

.to-right-underline {
    position: relative;
}

.to-right-underline:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0px;
    height: 2px;
    margin: 5px 0 0;
    transition: all 0.2s ease-in-out;
    transition-duration: 0.3s;
    opacity: 0;
    background-color: #D6BBFB;
}

/* ========== checkbox button ========== */

.btn-checkbox {
    flex: 1;
    height: 44px;
    margin-left: 0.5rem;
}

.btn-checkbox:nth-child(1) {
    margin-left: 0;
}

.btn-checkbox input[type=radio] {
    display: none;
}

.btn-checkbox label {
    margin: 0 auto;
    text-align: center;
    height: -webkit-fill-available;
    line-height: 45px;
}

.btn-checkbox input[type=radio]+label {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid var(--Gray-300, #D0D5DD);
    background: var(--Base-White, #FFF);
    color: var(--Gray-400, #98A2B3);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
}

.btn-checkbox input[type=radio]:checked+label {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid var(--Brand-600, #7F56D9);
    background: var(--Brand-50, #F9F5FF);
    color: var(--Brand-700, #6941C6);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
}

.btn-checkbox input[type=radio]+label:hover {
    border-radius: 0.5rem;
    border: 1px solid var(--Gray-300, #D0D5DD);
    background: var(--Base-White, #FFF);
    color: var(--Brand-700, #6941C6);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
}

.btn-checkbox input[type=radio]+label:disabled {
    border-radius: 0.5rem;
    border: 1px solid var(--Gray-300, #D0D5DD);
    background: var(--colors-gray-light-mode-200, #EAECF0);
    color: var(--Gray-400, #98A2B3);
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    opacity: 1;
}

/* ========== search button ========== */
.long-search-btn {
    padding: 0.62rem 4.75rem;
}

.back-to-list-btn {
    display: flex;
    align-items: center;
    width: 5rem;
    color: var(--Gray-400, #98A2B3);
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.25rem;
}

.btn-underline {
    position: relative;
    color: #344054;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.5rem;
    text-decoration: none;
    background: none;
}

.btn-underline::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #344054;
    transition: none;
}

.btn-underline:hover {
    color: #6941C6;
}

.p-btn-md {
    padding: 0.625rem 1rem;
    height: 2.75rem;
}

.btn-underline:hover::after {
    background-color: #6941C6;
    animation: underline-reappear 0.4s ease forwards;
}

@keyframes underline-reappear {
    0% {
        width: 0;
        left: 0;
    }

    100% {
        width: 100%;
        left: 0;
    }
}



@media (max-width: 767px) {

    .tab-container .tab-btn-wrapper li,
    .tab-container .borderless-tab-btn-wrapper li:last-child {
        margin-right: 0;
    }
}
