@charset "UTF-8";

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 1rem;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden !important;
}

header {
    height: 60px;
    background-color: #1a7cff;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

img {
    display: block;
}

a {
    text-decoration: none;
    color: inherit; /* 기본 텍스트 색상 따라감 */
}

.textarea_text {
    font-family: Arial, sans-serif;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input_title{
    font-size: 1rem;
    color: #1a7cff;
    font-weight: bold;
    padding-left: 15px;
}

.input_text {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.input_text2 {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input_text:focus {
    border-color: #4caf50;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
}

.menu-btn {
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
}

.layout {
    display: flex;
    flex: 1;
}

aside {
    background-color: #fff;
    padding: 1rem;
    transition: transform 0.3s ease;
}

main {
    flex: 1;
    background-color: #ffffff;
    padding: 1rem;
}

footer {
    background-color: #1a7cff;
    color: white;
    text-align: left;
    padding: 1rem;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.overlay.active {
    display: block;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

/* 모바일: 100% */
.custom-table {
    width: 100%;
    border: 1px solid #cccccc;
    border-radius: 5px;
    min-width: 350px;
}
.custom-table-no-padding {
    width: 100%;
    min-width: 350px;
}

.custom-table th,
.custom-table td {
    padding: 0rem 0.90rem;
    text-align: left;
    font-size: 1rem;
}

/* 가게추가 버튼 */
.button_blue{
    background-color: #1a7cff;
    border: 1px solid #1a7cff;
    color: white;
    border-radius: 5px;
    padding: 4px 12px 3px 12px;
    cursor: pointer;
    font-size: 1rem;
}
.button_red{
    background-color: #ff4081;
    border: 1px solid #ff4081;
    color: white;
    border-radius: 5px;
    padding: 4px 12px 3px 12px;
    cursor: pointer;
    font-size: 1rem;
}
.button_modify {
    background-color: #ff4081;
    border: 1px solid #ff4081;
    color: white;
    border-radius: 5px;
    padding: 3px 6px 2px 6px;
    cursor: pointer;
    font-size: 1rem;
}
.button_business, .button_relaxation, .button_order_amount, .button_regular, .button_price_delivery, .button_order_donation{
    background-color: #ffeef2;
    border: 1px solid #ff4081;
    color: #ff4081;
    font-weight: bold;
    border-radius: 5px;
    padding: 2px 6px 1px 6px;
    cursor: pointer;
    font-size: 0.8rem;
}
.button_red_small{
    background-color: #ffeef2;
    border: 1px solid #ff4081;
    color: #ff4081;
    font-weight: bold;
    border-radius: 5px;
    padding: 2px 6px 1px 6px;
    cursor: pointer;
    font-size: 0.8rem;
}
.button_blue_small{
    background-color: #f0f8ff;
    border: 1px solid #1a7cff;
    color: #1a7cff;
    font-weight: bold;
    border-radius: 5px;
    padding: 2px 6px 1px 6px;
    cursor: pointer;
    font-size: 0.8rem;
}
.button_gray_small{
    background-color: #e5e5e5;
    border: 1px solid #9eacc6;
    color: #777;
    font-weight: bold;
    border-radius: 5px;
    padding: 2px 6px 1px 6px;
    cursor: pointer;
    font-size: 0.8rem;
}
.button_orange_small{
    background-color: rgba(255, 128, 64, 0.2);
    border: 1px solid #ff8040;
    color: #ff8040;
    font-weight: bold;
    border-radius: 5px;
    padding: 2px 6px 1px 6px;
    cursor: pointer;
    font-size: 0.8rem;
}
.button_green_small{
    background-color: #f2ffee;
    border: 1px solid #a7cea6;
    color: #6db070;
    font-weight: bold;
    border-radius: 5px;
    padding: 2px 6px 1px 6px;
    cursor: pointer;
    font-size: 0.8rem;
}
.button_purple_small{
    background-color: #efe8ff;
    border: 1px solid #5200ff;
    color: #5200ff;
    font-weight: bold;
    border-radius: 5px;
    padding: 2px 6px 1px 6px;
    cursor: pointer;
    font-size: 0.8rem;
}
.button_span_orange{
    background-color: rgba(255, 128, 64, 0.2);
    border: 1px solid #ff8040;
    color: #ff8040;
    font-weight: bold;
    border-radius: 5px;
    padding: 2px 6px 1px 6px;
    font-size: 0.8rem;
}
.button_orange_order{
    width: 100%;
    height: 60px;
    background-color: #ff7043;
    border: 1px solid #ff7043;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 17px;
}
.button_blue_order{
    width: 100%;
    height: 60px;
    background-color: #1a7cff;
    border: 1px solid #1a7cff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 17px;
}
.button_red_order{
    width: 100%;
    height: 30px;
    background-color: #ff4081;
    border: 1px solid #ff4081;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
.button_gray_view{
    background-color: #f2f2f2;
    border: 1px solid #c5c5c5;
    color: #777;
    border-radius: 11px;
    padding: 3px 12px 2px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}

/* 데스크탑: 사이드바 항상 보임 */
@media (min-width: 1100px) {
    aside {
        width: 250px;
        position: relative;
        transform: none !important;
    }

    main{
        padding-left: 40px;
    }

    .menu-btn,
    .close-btn {
        display: none !important;
    }

    .layout {
        flex-direction: row;
        width: 1000px;
    }

    .custom-table {
        width: 800px;
        margin: 0 auto;
    }
    .custom-table-no-padding {
        width: 800px;
        margin: 0 auto;
        padding: 0;
    }
}

/* POS / 태블릿 */
@media (min-width: 577px) and (max-width: 1099px) {

    aside {
        width: 230px;           /* 살짝 줄임 */
        position: relative;
        transform: none !important;
        font-size: 14px;
    }

    main {
        padding-left: 10px;
    }

    .menu-btn,
    .close-btn {
        display: none;
    }

    .layout {
        flex-direction: row;
        width: 100%;
    }

    .custom-table,
    .custom-table-no-padding {
        width: 750px;
        margin: 0;
    }
}

/* 모바일: 햄버거 메뉴 + 사이드바 슬라이드 */
@media (max-width: 576px) {
    .menu-btn {
        display: block;
    }

    aside {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: translateX(-100%);
        z-index: 999;
        overflow-y: auto; /* ← 스크롤 추가 */
        -webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
    }

    aside.active {
        transform: translateX(0);
    }

    .layout {
        flex-direction: column;
    }

    .close-btn {
        font-size: 1.5rem;
        text-align: right;
        cursor: pointer;
        margin-bottom: 1rem;
    }
}

.span_paging{
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px 0px 0px 4px;
    border-radius: 3px;
    border:1px solid #d6dce7;
}
.search_button{
    margin: 2px;
    display: inline-block;
    padding: 2px 10px 3px 10px;
    color: white;
    background-color: #9eacc6;
    border:1px solid #9eacc6;
    border-radius: 4px 0px 0px 4px;
    white-space: nowrap;
    border-radius: 3px;
}