/*좌우 진동 애니메이션*/

@keyframes shake {
0% { transform: translateX(0); }
25% { transform: translateX(-5px); }
50% { transform: translateX(5px); }
75% { transform: translateX(-5px); }
100% { transform: translateX(0); }
}

.shake {
animation: shake 0.4s ease-in-out;
}

html,
body {
height: 100%;
}

.modal-background {
position: fixed;
top: 0px;
left: 0px;
width: 100vw;
height: 100vh;
display: none;
background-color: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(2px);
z-index: 9998;
}
.modal {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 30vw;
height: auto;
z-index: 9999;
position: absolute;
display: inline-block;
border: 1px solid !important;
border-color: var(--bs-border-color-translucent) !important;
background-color: #fff;
border-radius: 0.75rem;
display: flex;
flex-direction: column;
align-items: center;
padding: .5rem!important;
overflow: visible;
gap: 10px;
}



#div_main {
height: 100%;
}
/*헤더*/
.main-header {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 60px;
background-color: #333;
color: white;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
z-index: 999;
}

/**/

#div_main_bottom {
margin-top: 60px;
margin-left: 60px
}

#div_main_content {
padding: 10px;
}

/* 사이드바 스타일 */
#main_sidebar {
position: fixed;
margin-top: 60px;
top: 0;
left: 0;
width: 60px;
height: 100vh;
background-color: #2c3e50;
color: white;
overflow-x: hidden;
transition: width 0.3s ease;
z-index: 1000;
}

#main_sidebar.active {
width: 200px;
}

#main_sidebar ul {
list-style: none;
padding: 0;
margin: 0;
}

#main_sidebar li {
display: flex;
align-items: center;
padding: 12px 16px;
cursor: pointer;
}

#main_sidebar li:hover {
background-color: #34495e;
}

.icon {
margin-right: 10px;
width: 24px;
text-align: center;
}

.label {
opacity: 0;
transition: opacity 0.3s ease;
white-space: nowrap;
}

#main_sidebar.active .label {
opacity: 1;
}

/*테이블*/
.c_table {
display: flex;
flex-direction: column;
min-width: 300px;
font-family: sans-serif;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
background: none;
overflow: hidden; 
background-color: none;
border-radius: 10px 10px 0% 0%;
}
.c_table_header {
background-color: #009879;
color: #ffffff;
text-align: left;
}
.c_table_body {
border: 1px solid #ccc;
}
.c_table_row {
display: flex;
border-bottom: 1px solid #dddddd;
}
.c_table_body > .c_table_row:nth-of-type(even) {
    background-color: #f3f3f3;
}
.c_table_body > .c_table_row:hover {
    font-weight: bold;
    color: #009879;
}
.c_table_row:last-of-type {
    border-bottom: 2px solid #009879;
}
.c_table_cell {
font-size: 0.75rem;
word-wrap: break-word;
overflow-wrap: break-word;
white-space: normal;
flex: 1;
text-align: left;
padding: 5px 8px;
}
.flex-container {
display: flex;
gap: 20px;
align-items: flex-start;
padding: 20px;
/*border: 1px solid #ccc;*/
}

/*오른쪽ㄱ 거기에서 주문장*/
#div_menu_order_group_table {
min-width: 0!important;
}

/*달력*/
.calendar-box {
flex: 0 0 auto; /* 고정 크기 */
}

.flatpickr-month,
.flatpickr-current-month {
font-size: 17px;
}

.flatpickr-calendar,
.flatpickr-weekdays,
.flatpickr-innerContainer,
.flatpickr-rContainer,
.flatpickr-days{
width: 100%!important;

.dayContainer{
    width: 100%important;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(7, 1fr); 
    min-width: 0!important;
    max-width: 500px;
    box-sizing: border-box;

    .flatpickr-day{
    box-sizing: border-box;
    justify-self: center;
    width: 100%!important;
    max-width: 100%;
    height: auto;
    }
}
}

.flatpickr-calendar {
width: 250px!important;
height: auto!important;
overflow: hidden;
}

.info-box {
flex: 1;
background: #f9f9f9;
padding: 10px;
border-radius: 8px;
}
/*그외*/
.div_frame {
background-color: rgba(248, 249, 250, 1)!important;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
border-radius: 10px 10px 10px 10px;
}

.btn-green {
background-color: #009879!important;
color: white!important;
}
.btn-hover:hover {
filter: brightness(85%);
}