.service-room-tabs{
    display:flex;
    gap:8px;
    margin-bottom:14px;
    flex-wrap: wrap;
}

.room-tab{
    padding:10px 18px;
    border:none;
    background:#f3f3f3;
    cursor:pointer;
    border-radius:8px;
    font-family: var(--font-primary);
}

.room-tab.active{
    background:#182d66;
    color:#fff;
}

.popup-room-block{
    display:none;

}

.popup-room-block.active{
    display:flex;
}

.btn-open-services{background: none;border: none;color: #182d66; font-style: italic; cursor: pointer;}

#service-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#service-popup.active {
    display: flex;
}

.popup-box{
    width: 700px;
    /*max-height: 85vh;    */
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.popup-box--top{display:flex; justify-content:space-between; margin-bottom:24px;}

#popup-service-content {
    
}

.popup-room-block {
    flex-wrap: wrap; gap: 14px;
    max-height: 65vh; overflow: auto;
}

.popup-room-block h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.service-item {
    background: #fafafa;
    padding: 12px;
    transition: all 0.2s ease;
    padding-bottom: 15px;
    display: flex; flex-direction: column; gap: 8px; align-items: start;
    width: calc(50% - 7px);border: 1px solid #ebebeb;border-radius: 6px;
}

.service-item:hover {}

.service-title {
    font-weight: 500; font-size: 16px; color: #182d66;
}

.service-des{display: flex; color: #666; gap: 20px;font-size:13px; flex-wrap: wrap;}
.service-quantity-box{width: 100%;display: flex; flex-direction: column; gap: 8px;}

.service-date-regist{display: flex;gap: 6px;flex-direction: column;}
.service-date-regist label{width: 120px;font-size: 13px; color: #666;}
.service-date-regist input{border: 1px solid #ddd; border-radius: 6px; font-size: 14px; color: #666; font-family: system-ui;width: calc(100% - 120px - 6px);padding:5px;}

.service-price {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
    margin-bottom: 10px;
}

.service-qty {
    display: flex;
    gap: 8px;align-items: center;
    justify-content: space-between;
}

.service-qty label {
    font-size: 13px;
    color: #666;width: 120px;
}

.service-date-start, .service-date-end{display: flex; gap: 6px; align-items: center; justify-content: space-between;}

.qty-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-box button {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: 0.2s;
}

.qty-box button:hover {
    background: #f3f3f3;
}

.service-quantity {
    width: calc(100% - 120px - 6px);
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;color: #666;font-family: system-ui;
}

.popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.popup-footer button {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.apply-service {
    background: #182d66; color: #fff; border: none; padding: 8px 20px; cursor: pointer;border-radius: 4px;font-family: var(--font-primary);
}

.apply-service:hover {
    background: #3b7dd1;
}

.close-service-popup {
    background: #eee;
    border: none; font-size: 20px; border-radius: 4px; color: #444; cursor: pointer;
}

#information-service-fee {
    color: #e74c3c;
    font-weight: 700;
    font-size: 16px;
}

.service-lines{display: flex; flex-direction: column; gap: 4px;}
.service-line{display: flex; gap: 4px;}
.service-line input[type="text"]{width:70%;border: 1px solid #ddd; border-radius: 6px; font-size: 14px; color: #666; font-family: system-ui;}
.service-line input[type="number"]{width:15%;border: 1px solid #ddd; border-radius: 6px; font-size: 14px; color: #666; font-family: system-ui;text-align: center;}
.service-line button{width:15%;border: 1px solid #ddd; border-radius: 6px; font-size: 14px; color: #666;display: flex; align-items: center; justify-content: center;cursor: pointer;}
.service-line button svg{width:16px;}

.add-service-date{color: #182d66; font-style: italic; cursor: pointer;margin-top:8px;background: none;border: none;padding:0;}

@media screen and (max-width: 700px){
    .popup-box { width: 94%;}
}

@media screen and (max-width: 500px){
    .service-item{width: 100%;}
    .room-tab{padding: 8px 12px;border-radius: 5px;}
}