/* ===================전체 레이아웃========================= */
#loan-layout {
    display: flex;
    height: 100%;
    max-height: 80%;
    border: 1px solid #ccc;
    border-radius: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border-top: none;
    flex-direction: column;
}

#loan-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}


#loan-contents {
    width: 100%;
    flex-grow: 1;
    background-color: #d2f5e3;
}

#loan-header {
    width: 100%;
}

/* ===================네비게이션========================= */
.loan-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ccc;
}

.loan-info {
    font-size: 14px;
}

.loan-info span {
    font-weight: bold;
}

/* ===================헤더========================= */
.loan-search-box {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1;

}

.loan-search {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 20vw;
    height: 10%;
    border-radius: 30px;
    min-width: 205px;
    min-height: 35px;
    background-color: white;
    border-style: inset;
    margin-bottom: 5px;
}


.loan-search-text {
    flex-grow: 1;
    text-align: center;
}

.loan-search-button {
    width: 50px;
    height: 20px;
    flex-shrink: 0;
    text-align: center;
}

/* ===================도서 목록========================= */
/* 테이블 스타일 */
#loan-contents {
    overflow: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    text-align: center;
    border: 2px solid #ddd;
    overflow-y: scroll;
}

td {
    border: 1px solid #ddd;
    padding: 8px;
}

th {
    background-color: #62bfb1;
    font-weight: bold;
}

/* 테이블 반응형 스타일 */
@media screen and (max-width: 680px) {
    table {
        font-size: 12px;
    }

    th,
    td {
        padding: 6px;
    }

    #loan-side {
        display: none;
    }
}