.button_wrap button {
    width :120px;
}

.button_wrap {
    display: flex;
    gap: 8px;
}

/*----- 로그인 -----*/
.login_wrap {
    box-shadow: 2px 6px 12px 0 #00000008;
    background-color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding: 20px;
    border-radius: 8px;
}

.login_title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/*----- 관리 페이지 테이블 -----*/
.table_wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.table_area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.table_filter_wrap {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 12px;
}

.table_caption {
    font-size: 12px;
    color: #1c1c1c;
    font-weight: 400;
    text-align: left;
}

.table_num {
    text-align: right !important;
    padding-right: 10px;
}


/*----- 상세 페이지 -----*/
.moredetail_section, .registration_section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.registration_section {
    overflow: auto;
    scrollbar-width: none;
}

.moredetail_tit, .registration_tit {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid #1c1c1c;
    padding: 4px 2px;
    width: fit-content;
}

.moredetail_wrap, .registration_wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    height: 500px;
    flex-wrap: wrap;
}

.saleDetail_wrap {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    height: 500px;
    flex-wrap: wrap;
}

.registration_wrap {
    flex-wrap: nowrap;
    height: 100%;
    margin-top: 20px;
}

.moredetail_area, .registration_area {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 20px;
}

.registration_area {
    width: 100%;
    margin-left: 12px;
}

.more_tit {
    width: 120px;
    font-weight: 600;
    font-size: 16px;
}

.more_detail {
    font-size: 15px;
    color: #454545;
    margin-bottom: 2px;
}

.registration_area .more_detail {
    width: calc(100% - 140px);
}

.required {
    color: red;
    margin-right: -15px;
    margin-left: -12px;
}

.table_area .delivery_wrap .delivery_row {
    width: 100px; 
    padding: 7px 5px; 
    border: 1px solid #ccc; 
    border-radius: 4px;
}

.table_area .delivery_wrap .delivery_row:disabled {
    background-color: #f5f5f5; 
    cursor: default; 
    color: #999;
}

/*----- 등록 페이지 -----*/
.add_wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.add {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 20px;
}

.add_tit {
    width: 120px;
    font-weight: 600;
    font-size: 16px;
}

.add_detail {
    font-size: 15px;
    color: #454545;
    margin-bottom: 2px;
    display: flex;
    flex-direction: row;
    gap: 20px;
}


/*----- 티켓 관리 상세 -----*/
.ticketDetailWrap, .saleDetailWrap {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
}


/*----- 핍압 -----*/
.popup_message {
    color: #1c1c1c;
    font-size: 16px;
    font-weight: 500;
}

.popup_bottom {
    display: flex;
    gap: 8px;
}

.popup_table_tit_wrap {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.time_wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.delete_detail {
    background-color: #f6f6f6;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}



/*----- 이미지 업로드 -----*/
.file-label {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100px;
    text-align: center;
}

.file-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #D1D1D1;
    border-bottom: 1px solid #D1D1D1;
    padding: 8px;
    display: block;
    width: 100%;
}

.file-name.selected {
    color: #1c1c1c;
    border-bottom: 1px solid #1c1c1c;
}

.notice {
    color: red;
    font-size: 14px;
    margin: 10px 0;
}

.preview {
    margin-top: 20px;
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 5px;
}

.preview img {
    max-width: 100%;
    max-height: 100%;
}


/* 팝업 오버레이 스타일 */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* 팝업 컨테이너 스타일 */
.popup-container {
    background-color: white;
    border-radius: 8px;
    width: 800px;
    max-width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

/* 팝업 헤더 스타일 */
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* 팝업 콘텐츠 스타일 */
.popup-content {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.popup-form h4 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 5px;
}

.popup-form p {
    margin-top: 0;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

/* 폼 그룹 스타일 */
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    gap: 10px;
}

.form-group label {
    width: 120px;
    font-size: 14px;
}

.form-control {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 8px;
}

/* 추가 버튼 스타일 */
.add-option {
    justify-content: center;
    margin-top: 15px;
}

.add-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.add-btn span {
    font-size: 24px;
    color: #666;
}

/* 팝업 푸터 스타일 */
.popup-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    gap: 10px;
}

.btn-save, .btn-cancel {
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-save {
    background-color: #0070ff;
    color: white;
    border: none;
}

.btn-cancel {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
}

/* 버튼 스타일 */
#voteDetailSettingBtn {
    padding: 8px 20px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

/* 표 스타일 */
.vote-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.vote-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.vote-items-table th,
.vote-items-table td {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    text-align: left;
}

.vote-items-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.vote-items-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.vote-items-table tr:hover {
    background-color: #f0f0f0;
}

.vote-items-table .item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.vote-items-table .no-image {
    color: #999;
    font-style: italic;
}

/* 파일 업로더 스타일 */
.file-label {
    cursor: pointer;
    padding: 4px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    margin: 0 10px;
}

.option-label {
    width: 120px;
}

/* 페스티벌 선택 드롭다운 스타일 */
.festival-dropdown {
    width: 100%;
    position: relative;
}

.goods_dropdown {
    width: 70%;
    position: relative;
}

.festival-select, .goods_select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    cursor: pointer;
    color: #333 !important;
}

.festival-select:focus, .goods_select:focus {
    outline: none;
    border-color: #FFA725;
    box-shadow: 0 0 0 2px rgba(255, 167, 37, 0.2);
}

/* 옵션 스타일 */
.festival-select option, .goods_select option{
    padding: 8px;
    color: #333 !important;
    background-color: #fff;
}

/* 모든 입력 필드의 텍스트 색상을 검정색으로 설정 */
input, select, textarea {
    color: #000 !important;
}

/* placeholder 색상은 그대로 유지 */
::placeholder {
    color: #aaa !important;
}

/* 드롭다운 텍스트 색상 처리 */
.dropdown-toggle {
    color: #000 !important;
}

/* 팝업 내 입력 필드 특별 처리 */
.popup-content input,
.popup-content select,
.popup-content textarea,
#voteDetailPopup input,
.option-label {
    color: #000 !important;
}