﻿* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    /*max-width: 100%;*/
    /*max-height: 100%;*/
    font-family: 'Microsoft JhengHei UI', arial, helvetica, san-serif;
}

html {
    zoom: 1;
}

body {
    overflow: auto;
    /*overflow: hidden;*/
}

    body::after {
        content: "";
        opacity: 0.4;
        background-image: url('../Style/images/op50.png');
        background-repeat: no-repeat;
        background-position: center center;
        background-attachment: fixed;
        background-size: cover;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        position: absolute;
        z-index: -1;
    }

.HidElem {
    display: none;
}

.styled-btn {
    position: relative;
}

    .styled-btn .btn {
        width: 100%;
        height: 100%;
        background: none;
        border: none;
        position: absolute;
        left: 0px;
        top: 0px;
        z-index: 1;
    }

.SELECT, input {
    border: none;
    border-radius: 0.5vw;
    padding: 0.25vw 0.75vw;
    font-size: 1.2vw;
}

    .SELECT.List_Lan {
        border: 1px solid rgba(0, 0, 0, 0.2);
    }

.Book input {
    padding: 0px;
    font-size: 1.5vw;
}

.BodyPanel {
    margin: 70px 3% 3%;
}

.DefaultText {
    font-size: 0.9em;
    font-weight: bold;
}

/*
    查詢頁面
*/
.item_ul_div {
    width: 90vw;
    margin: calc(var(--vh, 1vh) * 2) auto;
}

.panel_ul_div {
    width: 90vw;
    height: calc(var(--vh, 1vh) * 90 - 12vw);
    margin: 0 auto;
}

#item_ul .Panel_Col {
    display: inline-table;
    width: 27vw;
    height: 100%;
    margin: auto 1vw;
    /*border: 1px solid rgba(100,100,100,0.5);*/
}

#panel_ul .Panel_Col {
    display: inline-table;
    width: 60vw;
    height: calc(var(--vh, 1vh) * 90 - 12vw);
    margin: auto 1vw;
    /*border: 1px solid rgba(100,100,100,0.5);*/
}

.Panel_Col2 {
    display: inline-table;
    /*display: inline;*/
    width: 27vw;
    height: 42vh;
    height: calc(var(--vh, 1vh) * 42);
    /*margin: auto 1vw;*/
    /*border: 1px solid rgba(100,100,100,0.5);*/
}

.Panel_Col3 {
    display: inline-table;
    /*display: inline;*/
    width: 27vw;
    height: 30vh;
    margin-top: 3vh;
    height: calc(var(--vh, 1vh) * 30);
    margin-top: calc(var(--vh, 1vh) * 3);
    /*margin: auto 1vw;*/
    /*border: 1px solid rgba(100,100,100,0.5);*/
}

.Panel_Mid {
    display: inline-block;
    margin: auto;
}

.Panel_Title {
    font-size: 2vw;
    font-weight: bold;
    padding: 2vh 2vw;
    padding: calc(var(--vh, 1vh) * 2) 2vw;
    text-align: center;
}

.Panel_Title2 {
    font-size: 2vw;
    font-weight: bold;
    padding: 0px 2vw;
    text-align: center;
}

.drag_icon {
    display: inline-block;
    vertical-align: middle;
    width: 5vw;
    height: 5vw;
    background-image: url(images/drag-drop-icon-800.png);
    background-size: contain;
}

#panel_ul .drag_icon {
    height: 0;
    visibility: hidden;
}

#item_ul .Panel_Content {
    display: none;
}

.Panel_Content {
    font-size: 1vw;
    font-weight: bold;
    padding: 0px 2vw;
}


    .Panel_Content .SELECT,
    .Panel_Content input {
        border: 1px solid #8eaebe;
        width: 60vw;
        font-size: 2vw;
    }

        .Panel_Content .SELECT.ClassSys {
            width: 40VW;
        }

        .Panel_Content .SELECTNone {
            display: none;
        }

    .Panel_Content input.btn-default {
        border: 0.2vw outset rgb(183, 223, 243);
        background-color: rgba(182, 225, 252, 1.0);
        padding: 1vh;
        margin: 1vh 0;
        padding: calc(var(--vh, 1vh) * 1);
        margin: calc(var(--vh, 1vh) * 1) 0;
        width: 10vw;
        font-weight: bold;
    }

        .Panel_Content input.btn-default:disabled {
            border: 0.2vw outset rgb(240, 240, 240);
            background-color: rgba(200, 200, 200, 1.0);
        }

fieldset {
    border-top: 0.2vw outset rgb(183, 223, 243);
    border-bottom: none;
    border-left: none;
    border-right: none;
    text-align: center;
    display: block;
    margin: 0px;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-block-start: 0px;
    padding-block-end: 0px;
    padding-inline-start: 0px;
    padding-inline-end: 0px;
    /*margin-bottom: -10px;*/
}

    fieldset legend {
        color: rgba(69, 104, 121, 1.0);
    }

.row {
    padding: 0.25vw;
}

    .row span {
        padding-right: 0.5vw;
        padding-left: 0px;
    }

#item_ul .sortable-chosen .FilterPanel {
    background-color: rgba(220,160,240, 0.8);
    border: 0.3vw ridge rgba(220,160,240, 0.8);
}

.highlight {
}

#item_ul .FilterPanel {
    position: relative;
    border-radius: 0.8vw;
    /*border: 0.2vw solid rgba(80, 93, 93, 0.7);*/
    border: 0.3vw groove rgba(180,220,230, 0.8);
    background-color: rgba(180,220,230, 0.8);
}

#item_ul .FilterBtn {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background: rgba(30, 35, 35, 0.50);
    color: rgba(255,255,255,1);
    font-size: xx-large;
    font-weight: bold;
    z-index: 1;
    visibility: hidden;
}

#panel_ul .FilterPanel {
    position: relative;
    border-radius: 0.8vw;
    border: 0.4vw solid rgba(125, 150, 150, 0.7);
    background-color: rgba(250,250,250, 1.0);
}

#panel_ul .FilterBtn {
    display: none;
}

/*
    篩選狀態
*/
.browse-header {
    margin: 0px auto;
}

.BrowseBooksMessage {
    display: inline-block;
    font-size: 1.5vw;
    font-weight: bold;
    line-height: 3;
    padding: 0 2vw;
    border-bottom: 1px solid rgb(66, 139, 202);
    border-top: 1px solid rgb(66, 139, 202);
    /*background: rgba(255,255,255,0.8);*/
    background: linear-gradient(to right, rgba(255,255,255,0.3), rgba(255,255,255,0.9) 10%, rgba(255,255,255,0.9) 90%, rgba(255,255,255,0.3));
}

    .BrowseBooksMessage .sort-btn-icon {
        font-size: 1.2vw;
    }
/*
    書目瀏覽
*/
.BrowseBooksPanel {
    display: block;
    overflow: hidden;
    text-align: center;
    font-size: 1.5vw;
    margin: 0.5vw 0%;
    padding: 2vh 1%;
    padding: calc(var(--vh, 1vh) * 2) 1%;
    background-image: url(images/glass-frame.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.BooksPanel {
    position: relative;
    /*padding: 0pt 30pt;*/
    padding: 0px 1em;
    /*height: 25vh;*/
}

.SortButtonsPanel {
    display: inline-block;
}

    .SortButtonsPanel .SortButton {
        background: none;
        border: 0.15em solid black;
        border-radius: 0.5em;
        padding: 0.3em 0.7em;
        margin: 0.3em;
        font-size: 1.2vw;
        font-weight: bold;
		color: black;
    }

        .SortButtonsPanel .SortButton:hover,
        .SortButtonsPanel .SortButton:active,
        .SortButtonsPanel .current {
            background-color: rgba(0, 0, 0, 1.0);
            color: rgba(255,255,255,1.0);
        }

.BackBtn {
    text-align: center;
    width: 80%;
    height: 2em;
    font-size: 2.25vw;
    font-weight: bold;
    background-color: rgba(160, 120, 220, 0.8);
    margin: 1px;
	color: black;
}

.BookCoverImage {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.Book, .BookCoverImage, .BookCoverImageButton, .BookTitleLabel, .BookTitlePanel {
    /*width: 150px;*/
    width: 5.4em;
}

.Book, .BookCoverImage, .BookCoverImageButton {
    /*之後改成%，不對，不好，這樣不響應式 */
    /*height: 200px;*/
    height: 7.2em;
}

.Book {
    /*background-color: rgba(255, 255, 255, 1.0);*/
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    margin: 0.1em 0.48em;
    /*margin: 10px 6.5px;*/
    /*border: 5px inset BurlyWood;
    box-shadow: 0px 3px 5px 0 rgba(0, 0, 0, 0.7);*/
}

    .Book .BookCoverImage {
        position: relative;
        /*background-color: rgba(255, 255, 255, 1.0);*/
    }

    .Book .BookCoverImageButton {
        border: none;
        background: none;
        z-index: 1;
        position: absolute;
        left: 0;
        top: 0;
    }

    .Book .TopBook {
        position: absolute;
        left: 0px;
        top: 0px;
        color: FireBrick;
        text-shadow: -2px -2px 3px gold, 2px 2px 3px gold;
        font-size: 2vw;
        transform: translate(-0.65vw, -0.35vw) rotate(-30deg);
    }
    /*.Book .TopBook {
        position: absolute;
        left: 0px;
        top: 0px;
        width: auto;
        height: auto;
        background-image: url('images/crown02.png');
        transform: translate(-25px, -25px) rotate(-30deg);
    }*/
    .Book .rownum {
        position: absolute;
        right: 0px;
        top: 0px;
        padding: 0px 0.3vw;
        font-size: 1vw;
        font-family: "Arial Black", Gadget, sans-serif;
        background-color: rgba(0,0,0,1.0);
        color: rgba(255,255,255,1.0);
    }

    .Book .BookTitleLabel,
    .Book .BookTitlePanel {
        font-size: 1vw;
        width: 8.1vw;
        font-weight: bolder;
        color: rgba(255,255,255,1);
        text-shadow: 2px 2px 2px rgba(0, 0, 0, 1.0), 2px -2px 2px rgba(0, 0, 0, 1.0), -2px 2px 2px rgba(0, 0, 0, 1.0), -2px -2px 2px rgba(0, 0, 0, 1.0), 0px 0px 10px rgba(0, 0, 0, 1.0);
        position: absolute;
        left: 0px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .Book .BookTitleLabel {
        background-color: rgba(0, 0, 0, 0.1);
        bottom: 0px;
        max-height: 2.6em;
    }

    .Book .BookTitlePanel {
        top: 100px;
        transform: translate(0,-50%);
        padding: 10%;
        z-index: 0;
    }


/*
    書單滑動桿
*/
.slidercontainer {
    width: 100%;
}

/*
    單冊書籍資訊
*/
#bookDetail {
    max-width: 96vw; /* 覆蓋.modal */
    width: auto; /* 覆蓋.modal */
    padding: 2vh 2vw; /* 覆蓋.modal */
    padding: calc(var(--vh, 1vh) * 2) 2vw;
    border-radius: 1vw;
}

#bookDetailModal .title,
#bookDetailModal .data {
    display: inline-block;
    width: 45%;
    padding: 5px;
    border-bottom: 1px solid grey;
}
/*#bookDetail #BookData,
#bookDetail #MapFloor {
    display: none;
}*/
.CoverPanel {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 0 0 2vh 0;
    margin: 0 0 calc(var(--vh, 1vh) * 2) 0;
    max-width: calc(50vw - 20px);
    min-width: 30vw;
    /*width: 49%;
    padding-left: 18%;*/
}

    .CoverPanel .BookCoverImage {
        width: 15vw;
        height: 20vw;
        /*max-width: 24vh;
        max-height: 32vh;*/
        border: 1px solid lightgrey;
    }

.InfoPanel {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
    max-width: calc(50vw - 20px);
    min-width: 30vw;
}

    .InfoPanel .title,
    .InfoPanel .data {
        display: inline-block;
        font-size: max(1.5vw, 16px);
        vertical-align: text-top;
        padding: 0.1vh 0.1vw;
        padding: calc(var(--vh, 1vh) * 0.1) 0.1vw;
    }

    .InfoPanel .title {
        width: 25%;
        text-align: right;
        font-weight: bold;
        overflow-wrap: break-word;
    }

    .InfoPanel .data {
        width: 70%;
        text-align: left;
    }

.MapFloor {
    padding: 1vw;
    float: right;
    text-align: center;
    width: 42vw;
    max-width: calc(calc(var(--vh, 1vh) * 64.6) + 2vw);
    /*display:table;
    margin: auto;*/
    background: rgba(182, 225, 252, 1.0);
}

.ShelfMapMsg {
    padding: 0 0 0.5vw 0;
    font-size: 1vw;
    font-weight: bold;
}

.ShelfMapPanel,
.ShelfMapPanel > svg {
    /*position:  absolute;
    top: 0;
    left: 0;*/
    margin: 0px;
    /*設定跟管理端同步*/
    /* (760:1000)*0.76 */
    /*width: 577px;
    height: 760px;*/
    width: 40vw;
    height: 52.63vw;
    max-width: calc(var(--vh, 1vh) * 64.6);
    max-height: calc(var(--vh, 1vh) * 85);
    /*background-size: contain;*/
    background-size: contain;
    background-position: center top;
    background-attachment: local;
    background-repeat: no-repeat;
}

.MapHiddenField {
    display: none;
}

/*
    待機畫面
*/
#idleMsg {
    max-width: 100%;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    padding: 0;
    border-radius: 0px; /*覆蓋.modal*/
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

.idle-msg {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 0;
    background-color: rgba(0,0,0,0.5);
    color: white;
    font-size: 60px;
    font-weight: bold;
    text-align: center;
}

#activeButton {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
/*
    載入提示
*/
#loadingFullPage {
    z-index: 100;
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    text-align: center;
    vertical-align: middle;
    background-color: rgba(255,255,255,0.5);
    background-image: url('Images/loading.gif');
    background-repeat: no-repeat;
    background-position: center;
}

#loadingBookDetail {
    display: none;
    z-index: 100;
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    text-align: center;
    vertical-align: middle;
    background-color: rgba(255,255,255,0.5);
    background-image: url('Images/loading.gif');
    background-repeat: no-repeat;
    background-position: center;
}
/*
    擬bootstrap
*/
.navbar,
.navbar-offset {
    width: 100%;
    height: 4vw;
    padding: 0.5vw;
    font-size: 1.5vw;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    background: white;
    font-weight: bold;
}

    .navbar .navbar-left {
        float: left;
    }

    .navbar .navbar-middle {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .navbar .navbar-right {
        float: right;
    }

/*
    rangeslider
*/
/*.irs-slider {
    width: 54px;
}

.irs-from, .irs-to, .irs-single {
    border-color: #888;
}

.irs-with-grid {
    margin: 0 30px;
    height:4vw;
}

.irs-grid-text, .irs-from, .irs-to, .irs-single {
    font-size: 20px;
}

.irs-line {
    background: linear-gradient(to bottom, #555 -50%, #ddd 150%);
    border: 1px solid #888;
}*/

/*
    modal
*/
.modal a.close-modal {
    width: 6vw;
    height: 6vw;
    min-width: 50px;
    min-height: 50px;
    border: 0.3vw solid white;
    border-radius: 100%;
    /*top: -0.8vw;
    right: -0.8vw;*/
    top: 2vw;
    right: 2vw;
    position: fixed;
}

@media
/*
    datepicker
*/ [id$='_JCalendar'] {
    /*height: 25vh;*/
    width: 60%;
    margin: auto;
    /*border: 3px dashed rgba(10,100,100,1);
      border-radius: 20px;
      background-color: rgba(255,255,255,0.3);*/
}

.datepicker-panel > ul > li.picked {
    background-color: rgba(16,76,136,1);
    color: rgba(255,255,255,0.9);
}

    .datepicker-panel > ul > li.picked:hover {
        background-color: rgba(16,76,136,0.8);
        color: rgba(255,255,255,1);
    }

.datepicker-panel > ul > li[data-view="years prev"],
.datepicker-panel > ul > li[data-view="year prev"],
.datepicker-panel > ul > li[data-view="month prev"],
.datepicker-panel > ul > li[data-view="years next"],
.datepicker-panel > ul > li[data-view="year next"],
.datepicker-panel > ul > li[data-view="month next"],
.datepicker-panel > ul > li[data-view="next"] {
    font-size: unset;
}

.datepicker-container {
    font-size: large;
    /*height: 20vh;*/
}

.datepicker-inline {
    width: 100%;
}

.datepicker-panel > ul > li {
    /*height: 14%;*/
    width: 14%;
}

    .datepicker-panel > ul > li[data-view="years current"],
    .datepicker-panel > ul > li[data-view="year current"],
    .datepicker-panel > ul > li[data-view="month current"] {
        width: 72%;
    }

    .datepicker-panel > ul > li[data-view="years prev"],
    .datepicker-panel > ul > li[data-view="year prev"],
    .datepicker-panel > ul > li[data-view="years next"],
    .datepicker-panel > ul > li[data-view="year next"],
    .datepicker-panel > ul > li[data-view="years current"],
    .datepicker-panel > ul > li[data-view="year current"] {
        /*height: 25%;*/
        /*line-height: 4em;*/
    }

    .datepicker-panel > ul > li[data-view="month prev"],
    .datepicker-panel > ul > li[data-view="month next"],
    .datepicker-panel > ul > li[data-view="month current"] {
        /*height: 20%;*/
    }

.datepicker-panel > ul[data-view="years"] > li,
.datepicker-panel > ul[data-view="months"] > li {
    /*height: 25%;*/
    /*line-height: 4em;*/
    width: 25%;
}

.BooksPanel .swiper-button-prev,
.BooksPanel .swiper-button-next {
    position: absolute;
    top: 50%;
    width: 1em;
    height: 1.63em;
    margin-top: -0.815em;
    z-index: 10;
    cursor: pointer;
    background-size: 1em 1.63em;
    background-position: center;
    background-repeat: no-repeat;
}

.BooksPanel .swiper-button-prev,
.BooksPanel .swiper-container-rtl .swiper-button-next {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");
    left: 0.2vw;
    right: auto;
}

.BooksPanel .swiper-button-next,
.BooksPanel .swiper-container-rtl .swiper-button-prev {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");
    right: 0.2vw;
    left: auto;
}
