﻿
.window {
    border-radius: 16px;
    box-shadow: 0px 0px 9px #000000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.window > .header {
    width: 100%;
    height: 40px;
    background-color: #00a5a6;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0px 20px;
    /* 不能反白 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.window > .header > .title {
    width: calc(100% - 40px);
    height: 40px;
    cursor: all-scroll;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.window > .header > .title > span {
    color: #ffffff;
    font-weight: 700;
    pointer-events: none;
}

.window > .area1 {
    width: 100%;
    height: calc(100% - 80px);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.window > .area1 > .content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    overflow: auto;
}

.window .rows {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.window .rows > .title {
    width: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window .rows > span,
.window .rows > .title > span
{
    color: #000000;
    display: block;
    font-weight: 700;
    white-space: nowrap;
}
.window .rows > button { height: 34px; }

.window .rows-box {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.window .rows input[type="text"],
.window .rows input[type="number"] { width: calc(100% - 74px); height: 34px; }

.window .rows input[type="radio"],
.window .rows input[type="checkbox"] { width: 20px; height: 20px; margin: 0px 5px 0px 0px; }

.window select {
    width: calc(100% - 74px);
    height: 34px;
}

.window .rows-box > .rows {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.window .rows-box > .rows > .upload-image-box {
    width: calc(100% - 74px);
    background-color: #00a5a6;
    border-radius: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.window .rows-box > .rows > .upload-image-box > .img-box {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.window .rows-box > .rows > .upload-image-box > .img-box > img {
    max-width: 100%;
    max-height: 100%;
}

.window .rows-box > .rows.flex-start {
    align-items: flex-start;
}

.window .rows-box > .rows.flex-end {
    align-items: flex-end;
}

/* ---------------------------------------------------------------------------------------------------- */

.window .rows-box > .rows > .column-box {
    width: calc(100% - 74px);
    height: 194px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
}

.window .rows-box > .rows > .column-box > .upload-image-box {
    width: 100%;
    height: calc(100% - 54px);
    background-color: #00a5a6;
    border-radius: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.window .rows-box > .rows > .column-box > .upload-image-box > .img-box {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.window .rows-box > .rows > .column-box > .upload-image-box > .img-box > img {
    max-width: 100%;
    max-height: 100%;
}

.window .rows-box > .rows > .column-box > .upload-image-box.multiple {
    background-color: rgba(0, 0, 0, 0);
    flex-wrap: wrap;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
}

.window .rows-box > .rows > .column-box > .upload-image-box.multiple > .img-box {
    width: calc((100% - 10px) / 2);
    max-height: calc((100% - 10px) / 2);
    background-color: #00a5a6;
    padding: 10px;
}

.window .rows-box > .rows > .column-box > .upload-image-box.multiple > .img-box > img {
    
}

.window .rows-box > .rows > .column-box > button {
    height: 34px;
}

/* ---------------------------------------------------------------------------------------------------- */

.window > .footer {
    width: 100%;
    height: 40px;
    background-color: #ffffff;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px 20px;
    position: absolute;
    bottom: 0px;
    left: 0px;
    z-index: 1;
}

.window > .footer > .box_close {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.window > .footer > .box_close > .error-box {
    width: calc(100% - 200px);
    color: #d45a43;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
}

.window > .footer > .box_close > .error-box > span {
    width: 100%;
    display: block;
    /* 文字超出出現省略號... */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* --------------------- */
}

.window > .footer > .box_close > .item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
