﻿/* RentalXYZ.css 套房管理系統共用設定 css*/
body {
    background-color: #e3e3e3;
    font-family: "Microsoft JhengHei",Arial,"Helvetica Neue",Helvetica,sans-serif;
}

.link-logo {
    text-decoration: none;
    font-size: 1.5em;
    color: #fff;
}

.paper-bg {
    background-color: #ffefd5;
    padding:7px;
    margin: 10px;
    border-radius: 6px;
}

.main-gridbox {
    height: 100vh;
    width: 100%;
    display: grid;
    grid-template:
        "header" 45px
        "main" 1fr
        "footer" 30px;
}

header {
    grid-area: header;
    background-color: teal;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    position: fixed;
    top: 0;
    width: 100%;
    padding-left: 10px;
}

main {
    grid-area: main;
    padding: 16px 10px 30px 10px;
    padding-bottom:50px;
}

footer {
    grid-area: footer;
    background-color: teal;
    color: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 30px;
}

.center-content {
    background-color: #ecf0f1;
}
/*讓 div 上方呈現圓角*/
.round-top {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

/*讓 div 下方呈現圓角*/
.round-bottom {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    padding-bottom: 1em;
}

/*讓 div 左方呈現圓角*/
.round-left {
    border-bottom-left-radius: 6px;
    border-top-left-radius: 6px;
    padding-bottom: 1em;
}

/*讓 div 右方呈現圓角*/
.round-right {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    padding-bottom: 1em;
}

.topic {
    display: inline-block;
    width: 18.8%;
    margin: 0 10px 10px 0;
    padding: 7px 10px 7px 10px;
    text-align: center;
    white-space: nowrap;
    min-width: 150px;
}

    .topic a {
        text-decoration: none;
        display: flex;
        align-items: center;
    }

/* 每一個 topic 頁面的 header */
.topic-header {
    font-size: 1.5em;
    color: #fff;
    background-color: #8fbc8f;
    padding: 10px 0 10px 10px;
    margin: 0 0 5px 0;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

    .topic-header a {
        color: #fff;
        text-decoration: underline;
        cursor: pointer;
    }


.td-header {
    width: 90px;
    white-space: nowrap;
    text-align: right;
    font-weight: bold;
    vertical-align: middle;
}

/* 每一個 topic 頁面的 header */
/*.topic-header {
    font-size: 1.5em;
    color: #fff;
    background-color: teal;
    padding: 10px 0 10px 10px;
    margin: 0 0 5px 0;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

    .topic-header a {
        text-decoration: none;
        cursor: pointer;
    }*/


.w3-table-all td {
    border: solid 1px #eee;
}

.bordered-table td {
    border: solid 1px #d3d3d3;
}

kbd {
    display: inline-block;
    margin: 0 .1em;
    padding: .1em .6em;
    font-family: Arial,"Helvetica Neue",Helvetica,sans-serif;
    font-size: 11px;
    line-height: 1.4;
    color: #242729;
    text-shadow: 0 1px 0 #FFF;
    background-color: #e1e3e5;
    border: 1px solid #adb3b9;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(12,13,14,0.2), 0 0 0 2px #FFF inset;
    white-space: nowrap;
}

.article-item-hover {
    cursor: pointer;
}

.button-hide {
    display: none;
}

.bookmark-link {
    color: blue;
    display: block;
}

.element-hide {
    display: none;
}

.header-bold {
    font-weight: bold;
}

.table-product tr {
    border-top: solid 1px #c3b0b0;
}

.icon-button {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

/*表單設計*/
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    width: 100%;
}

.form-item {
    margin: 0 10px 10px 0;
    flex: 1;
}

    .form-item .item-header {
        font-weight: bold;
    }

.form-section {
    background-color: #F0E68C;
    color: #000;
    padding: 10px;
    width: 100%;
    font-weight: bold;
    margin-bottom: 10px;
}

.project-main {
    background-color: aquamarine;
    padding: 10px;
    width: 100%;
}

/* Bill */
.bill-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: solid 1px #ccc;
}

    .bill-row .bill-header {
        width: 120px;
        white-space: nowrap;
        text-align: right;
        padding-right: 10px;
        background-color: #eee;
    }

    .bill-row .bill-value {
        padding-left: 10px;
    }

.bill-edit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: #eee;
}

    .bill-edit-row .bill-edit-header {
        width: 120px;
        white-space: nowrap;
        text-align: right;
        padding: 10px;
    }

    .bill-edit-row .bill-field {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 5px 0 5px 10px;
        margin-bottom: 1px;
        background-color: #fff;
        flex: 1;
    }


.contract-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: solid 1px #ccc;
}

.contract-row-first {
    border-top: solid 1px #ccc;
}

.contract-row .contract-header {
    width: 120px;
    white-space: nowrap;
    text-align: right;
    padding-right: 10px;
    background-color: #eee;
}

.contract-row .contract-value {
    padding-left: 10px;
}

.object-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: solid 1px #ccc;
}

.object-row-first {
    border-top: solid 1px #ccc;
}

.object-row-last {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: solid 1px #ccc;
    background-color: #eee;
}

.object-row .object-header {
    width: 120px;
    white-space: nowrap;
    text-align: right;
    padding-right: 10px;
    background-color: #eee;
    padding-top: 5px;
    padding-bottom: 5px;
}

.object-row .object-value {
    padding-left: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
}

/*物件狀態*/
.room-vacancy {
    background-color: yellow;
}

.room-repair {
    background-color: orange;
}

/* Table 相關 */
.table-row-hover:hover {
    background-color: #000;
    color: white;
    font-weight: bold;
}
