/**
 * 共通コンポーネント用CSS
 */

 /**
  * タイトルバー
  */
.display-header-contnts{
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: center;
    align-items: center;
    background-color: var(--main-bg-color);
    color: white;
    padding: 2px;
    min-height: 2rem;
}
.title-header, .title-bar{
    display: flex;
    align-items: center;
}
/* 凡例がある時にテキストを中央寄せにするため使用する */
.title-dummy{
    width: 0;
}
/* 地点登録の時 */
.display-header-contnts.point_registration{
    background-color: var(--point-registration-bg-color);
}
.title-header-mark img {
    width: 100px;
    height: 48px;
    padding: 2px;
}
.title-header-title ,.title-header-sub-title{
    line-height: 6vw;
}
.title-header-title {
    font-size: 1.2rem;
    /* height: 5vw; */
    line-height: 6vw;
}

.title-header-sub-title{
    font-size: 1.1rem;
    /* height: 4vw; */
    line-height: 5vw;
}

.title-bar{
    width: 100%;
    height: 28px;
    justify-content: space-between;
    background: var(--time-and-current-menu-color);
    font-size: 13px;
    border-bottom: 1px solid rgb(0,0,0);
    color: rgb(255,255,255);
    position: relative;
    z-index: 1;
}

.title-bar-datetime {
    padding-left: 2px;
    text-shadow: -1px -1px 0px rgb(0,0,0), 1px -1px 0px rgb(0,0,0), 1px 1px 0px rgb(0,0,0), -1px 1px 0px rgb(0,0,0);
    font-weight: bold;
}

.title-bar-info {
    padding-right: 2px;
}

/**
 *　リンク情報
 */
.link-info {
    padding: 5px 12px;
    width: 300px;
}

.link-info > label {
    padding: 4px;
}

.link-info > a {
    line-height: 32px;
    margin: 8px;
}

/**
 *  日付コントール
 */
.datetime-controll{
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    max-width: 500px;
    margin: auto;
}

.dtc-label-panel{
    text-align: center;
    padding-bottom: 5px;
    display: flex;
    justify-content: space-between;
    max-width: 500px;
    margin: auto;
}

.dtc-table-panel{
    text-align: center;
    width: 320px;
    margin: auto;
    border: 1px solid lightgray;
}

.dtc-table-panel > tr{
    height: 40px;
}

.dtc-datetime{
    font-size: 18px;
    transform: scale(0.95,0.95);
    font-family: "Meiryo", "MS PGothic",sans-serif;
}
.dtc-button{
    width: 11.6vw;
    padding: 5px;
    margin: 0px;
    background-position: center;
    vertical-align: middle;
    background-repeat: no-repeat;
}
.datetime-controll .dtc-button{
    background-size: cover;
    background-color: white;
}
span.dtc-label{
    padding-left: 5px;
    padding-right: 5px;
    font-size: smaller;
}

.dtc-label {
    border: solid 1px lightgray;
}

.dtc-label-l {
    border: solid 1px lightgray;
    padding: 2px;
    margin:0px 16px 0px 0px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;   
}

.dtc-blank {
    margin: 9vw;
}

.dtc-before-1hour{
    background-image:url('../../image/Return_L.png');
}

.dtc-before-10min{
    background-image:url('../../image/Return_S.png');
}

.dtc-after-10min{
    background-image:url('../../image/Send_S.png');
}

.dtc-after-1hour{
    background-image:url('../../image/Send_L.png');
}


/**
 *  水系情報パネル
 */

.water-system-info > label {
    font-size: 1.4rem;
    font-weight: bold;
    padding: var(--content-gap);
}

.water-system-info > table,
.water-level-info > table {
    margin: 4px 20px;
    width: calc(100% - 40px);
    border: 1px solid rgb(188,188,188);
    background-color: rgb(226,240,217);
    font-size: 0.9rem;
}
/* 英語版で文字小さく */
.isEn .water-system-info > table,
.isEn .water-level-info > table {
    font-size: 0.75rem;
}

.water-system-info > table tr {
    border: 0px;
}

.water-system-info > table td {
    border: 0px;
    vertical-align: baseline;
}

.wsi-col-1 {
    text-align: left;
    min-width: 5em;
}

.reservoir_details .wsi-col-1 {
    min-width: 8em;
}

.wsi-col-2 {
    width: 18px;
    text-align: left;
}

.wsi-col-3 {
    width: auto;
    text-align: left;
}


/**
 *  小見出し
 */
.water-level-info-header,
.reservoir-water-level-info-header,
.camera-header{
    margin-top: 0.5rem;
    padding: var(--content-gap);
    display: flex;
    align-items: center;
 }
.water-level-info-header > label,
.water-level-info-header > h4,
.reservoir-water-level-info-header > label,
.camera-header >h4{
    font-size: 1.2rem;
    font-weight: bold;
}

.rwli-label-title-box,
.wli-label-title-box{
    width: 14px;
    height: 14px;
    margin-right: 5px;
    background-color: orange;
}

.water-level-info > table {
    display: block;
}

.water-level-info > table tr {
    border: 0px;
}

.water-level-info > table td {
    border: 0px;
    display: table-cell;    
    white-space: nowrap;
}

.wli-col-1 {
    text-align: left;
}

.wli-col-2 {
    text-align: left;
}

.wli-col-3 {
    text-align: left;
}

.wli-degree-risk-box{
    width: 210px;
    text-align: center;
    white-space: normal;
    height: 25px;
    line-height: 25px;
    font-size: 17px;
    margin: 0;
    border: 1px solid black;    
}

.wli-water-level-status-box{
    width: 210px;
    border: 1px solid black;
    text-align: center;
}

/**
 *  水位状況パネル（遊水地）
 */
.reservoir-water-level-info {
    width: 100%;
}

.reservoir-water-level-info > table {
    margin: 4px 20px;
    width: calc(100% - 40px);
    border: 1px solid rgb(188,188,188);
    background-color: rgb(226,240,217);
    font-size: 0.9rem;
}

.reservoir-water-level-info > table tr {
    border: 0px;
}

.reservoir-water-level-info > table td {
    border: 0px;
    display: table-cell;    
    white-space: nowrap;
}

.rwli-col-1 {
    width: 12%;
    text-align: left;
}

.rwli-col-2 {
    width: 18px;
    text-align: left;
}

.rwli-col-3 {
    width: 45%;
    text-align: right;
    padding: 0px 20px;
}

/* レイアウト調整用 */
.rwli-col-4 {
    width: auto;
}
 @media (orientation: landscape){

    .title-header-title {
        font-size: 18px;
        height: 4vh;
        line-height: 4.5vh;
    }

    .title-header-sub-title{
        font-size: 18px;
        height: 4vh;
        line-height: 4.5vh;
    }

    /**
    *  日付コントール
    */
    .datetime-controll{
        text-align: center;
        display: block;
    }

    .dtc-datetime{
        font-size: 23px;
        transform: scale(0.93,0.93);
    }
    .dtc-button{
        width: 50px;
        padding: 5px;
        margin: 0px;
        background-position: center;
        vertical-align: middle;
        background-repeat: no-repeat;
    }

    .wli-degree-risk-box{
        width: 210px;
        text-align: center;
        white-space: normal;
        height: 25px;
        line-height: 25px;
        font-size: 17px;
        margin: 0;
        border: 1px solid black;    
    }
    .isEn .wli-degree-risk-box{
        font-size: 0.75rem;
    }    
    .wli-water-level-status-box{
        width: 210px;
        border: 1px solid black;
        text-align: center;
    }
}
@media (max-width:370px) {
    .title-header-title {
        font-size: 1rem;
    }
    .title-header-sub-title{
        font-size: 0.9rem;
    }
}
