﻿/*Layout*/
.bodycontent {
    height: 100%;
    overflow: hidden;
}
.pagecontainer {
    clear: both;
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.clientpageheader {
    position: relative;
    display: inline-flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    vertical-align: middle;
    text-align: center;
    width: 100%;
    border-bottom: 3px solid;
    border-width: 3px;
    border-image: linear-gradient(to right, #2974e1, #03fcf5);
    border-image-slice: 1;
    z-index: 999;
    overflow: hidden;
}
.clientpagecontent {
    clear: both;
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: auto;
    box-sizing: border-box;
}

.clientpageheader .topmenu {
    display: inline-flex;
    font-size: 1em;
    flex: 2.5;
    white-space: nowrap;
    overflow: hidden;
}
.clientpageheader .topmenu img {
    float: left;
    margin: 10px;
    width: 30px;
    height: 30px;
    object-fit: cover;
}
.clientpageheader .topmenu > span {
    display: inline-block;
    margin-left: 5px;
}
.clientpageheader .topmenu .fa {
    line-height: 50px;
    text-align: center;
    background-color: transparent;
}
.clientpageheader .title {
    flex: 5;
    line-height: 50px;
    text-align: center;
    font-size: 2em;
    color: #E6E9ED;
    background-color: transparent;
}
.clientpageheader .datetime {
    flex: 2.5;
    font-size: 1em;
    line-height: 50px;
    margin-right: 10px;
    text-align: right;
    overflow: hidden;
    white-space: nowrap;
    background-color: transparent;
}
@media screen and (max-width: 600px) {
    .pageheader .topmenu {
        display: none;
    }
    .pageheader .title {
        font-size: 1.5em;
    }
    .pageheader .datetime {
        display: none
    }
}

.menu_toggle:hover{
    cursor:pointer;
}
.clientpageheader nav.navbar {
    color: white;
    padding: 0 10px;
    background-color: #999;
}
.trueClass {
    color: red;
}
.trueClass.connected {
    color: #276ae8;
}

/*View Pages*/
.pageList {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #2A3F54;
    color: #fff;
    box-shadow: 0px 0px 1px 1px #808080;
}
.pageList .Page {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.pageList .Page .ggrid {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    gap: 0px;
    grid-auto-rows: minmax(40px, auto);
}

.pageList .Page .ggrid .gcell {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow:hidden;
}
.ggrid-resizer{
    display:none;
}
/*Template페이지를 위한 스타일*/
.Page.Template .gcell {
    background: #1e293b;
    border: 2px solid #0f172a;
    font-size: 2vh;
    font-weight: bold;
}
.Page.Template .datetime-container {
    display: flex;
    font-size: 0.8vw;
    background: rgba(52, 73, 94, 0.5);
    box-shadow: -0.3vh 0.3vh 0.5vh rgba(0, 0, 0, 0.2);
    align-items: center;
    justify-content: center;
    padding: 0.5vw;
    gap: 0.5vw;
}

    .Page.Template .datetime-container .date,
    .Page.Template .datetime-container .time {
        display: flex;
        align-items: center;
        margin-right: 1vw;
        text-align: right;
        position: relative;
        padding: 0 1.5vw;
        letter-spacing: 0.05vw;
        font-weight: 500;
        color: white;
    }

        .Page.Template .datetime-container .date::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 1vw;
            height: 1vw;
            background-image: url("/Asset/기본템플릿/흰달력.png");
            background-size: contain;
            background-repeat: no-repeat;
        }

        .Page.Template .datetime-container .time::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 1vw;
            height: 1vw;
            background-image: url("/Asset/기본템플릿/흰시계.png");
            fill: white;
            background-size: contain;
            background-repeat: no-repeat;
        }

    .gcell drag-over {
        background: #1e293b;
        border: 2px solid #0f172a;
    }
.pageList .Page .pageContent,
.pageList .Page .pageBody {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.pageList .Page > .header {
    flex: auto;
    width: 100%;
    height: 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    color:#fff;
    border-bottom: solid 1px #808080;
}
.pageList .Page .header .logo {
    height: 100%;
    width: 20%;
    display: flex;
    align-items: center;
    overflow:hidden;
}
.pageList .Page .header .logo img {
    height:100%;
    width: 100%;
    object-fit:contain;
}
.pageList .Page .header .title {
    width: 60%;
    font-size: 2.0vh;
    text-align: center;
    font-weight: 600;
}
.pageList .Page .header .date-time {
    position:relative;
    width: 20%;
    height:100%;
    margin: auto;
    padding: 5px;
    text-align: right;
    font-size: 1.0vh;
    font-weight: 600;
    line-height: 1.0;
    overflow:hidden;
}
.pageList .Page .bodyContent {
    flex: auto;
    width: 100%;
    height: 92%;
    display: block;
    padding: 0px;
    overflow: hidden;
}
.pageList .Page .footer {
    flex: auto;
    height: 4%;
    width: 100%;
    margin: 0;
    background-color: black;
    overflow: hidden;
}

.pageList[screen='Port'] {
    width: auto;
    margin: 0 auto;
    aspect-ratio: 9/16;
    container-type: size;
}
.pageList[screen='Land'] {
    width: auto;
    margin: auto 0;
    aspect-ratio: 16/9;
}
/* 지원하지 않을 경우 */
@supports not (aspect-ratio: 1) {
    .pageList[screen='Port'] {
        width: min(100vw, calc(100vh * (9/16)));
    }
}

.pageList[screen='Port'] .Page > .header {
    height: 3%;
}
.pageList[screen='Port'] .Page .bodyContent {
    height: 94%;
}
.pageList[screen='Port'] .Page .footer {
    height: 3%;
}

.pageList .Page .tagMessage {
    position: relative;
    width: 100%;
    height: 100%;
    padding-left: 10px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.pageList .Page .tagMessage li {
    position: relative;
    display: block;
    height: auto;
    width: 100%;
    padding-left: 10px;
    margin: auto 0;
    font-family: "굴림";
    font-size: 2.0vh;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow-x: visible;
}
.pageList[screen='Port'] .Page .tagMessage li {
    font-size: 1.5vh;
}

.tagDoc {
    display: flex;
    justify-content: center;
    align-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
}
.tagDoc canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    overflow: hidden;
}
.tagList {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
.tagItem {
    display:flex;
    justify-content:center;
    align-items:center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.tagItem > * {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: auto;
    margin: 0;
    padding: 0;
    object-fit: cover;
}
.pnlRow {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    place-content: center space-around;
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.pnlCol {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    place-content: center space-around;
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.tagPanel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    place-content: center center;
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.tagBox {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    place-content: center space-around;
    margin: 0px;
    padding: 5px;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
    overflow: hidden;
}
.tagText {
    display: block;
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 굴림, Gulim, serif;
    font-size: 1em;
    font-weight: 600;
    color: rgba(255, 255, 255, 1.0);
    text-align: center;
    line-height: 1.5;
}
.tagImage {
    display: block;
    width: 100%;
    height: 100%;
    margin: auto;
    padding: 0;
    object-fit: fill;
}
.tagVideo {
    width: 100%;
    height: 100%;
    padding:4px;
    object-fit: cover;
}
.tagData {
    width: 100%;
    height: auto;
    text-align: center;
    overflow: hidden;
}
.tagWeb {
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
}
.tagIframe {
    width: 100%;
    height: 100%;
    padding: 4px;
    overflow: hidden;
}

@keyframes messageSlider {
    0% {
        transform: translateX(100%);
    }

    2% {
        transform: translateX(0%);
    }

    30% {
        transform: translateX(0%);
    }

    95% {
        transform: translateX(-150%);
    }

    100% {
        transform: translateX(-200%);
    }
}
/*화면 가운데 팝업으로 띄울때 사용*/
.Popup {
    position: absolute;
    top: 50%;
    height: 200px;
    width: 95%;
    transform: translateY(-50%);
    text-align: center;
    margin: 20px;
    display: none;
}
.Popup::before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -0.25em;
}
.Popup > * {
    display: inline-block;
    vertical-align: middle;
    width: 800px;
    padding: 10px 15px;
    /*border: #a0a0a0 solid 1px;*/
    background: rgba(0, 0, 0, 0.8)
}

/*위젯용 스타일*/
.widget.DateTimeWithIcon {
    display: flex;
    font-size: 1.2em;
    background: rgba(52, 73, 94, 0.5);
    border-radius: 1vh;
    box-shadow: -0.3vh 0.3vh 0.5vh rgba(0, 0, 0, 0.2);
    align-items: center;
    justify-content: center;
    padding: 5px;
    overflow:hidden;
}
.widget.DateTimeWithIcon .date,
.widget.DateTimeWithIcon .time {
    /*margin-left: 1.2em;*/
    text-align: right;
    position: relative;
    padding: 0 1.5em;
    letter-spacing: 0.05em;
}
.widget.DateTimeWithIcon .date::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2em;
    height: 1.2em;
    background-image: url("/Asset/기본템플릿/흰달력.png");
    background-size: contain;
    background-repeat: no-repeat;
}
.widget.DateTimeWithIcon .time::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2em;
    height: 1.2em;
    background-image: url("/Asset/기본템플릿/흰시계.png");
    fill: white;
    background-size: contain;
    background-repeat: no-repeat;
}

.widget.weatherSky1 {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
}
.widget.weatherSky1 .boxWeather {
    width: 100%;
    display: inline-flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    background: none;
}
.widget.weatherSky1 .boxWeather .weather,
.widget.weatherSky1 .boxWeather .sky {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
    opacity: 1.0;
    white-space: nowrap;
}

.widget.headlineNews {
    width: 100%;
    height:100%;
    background: linear-gradient(90deg, #0f172a, #1e293b);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    border-top: 0.2vh solid #38bdf8;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.widget.headlineNews .news-label {
    flex: 0 0 auto;
    font-size: 1.2em;
    font-weight: 600;
    padding: 0 2%;
    background: #38bdf8;
    color: #0f172a;
    height: 100%;
    display: flex;
    align-items: center;
    min-width: 10vw;
    justify-content: center;
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
    white-space: nowrap;
}
.widget.headlineNews .news-container {
    flex: 1 1 auto;
    min-width: 0;
}
.widget.headlineNews .news-container ul li {
    font-size: 1.0em;
}
.widget.headlineNews .news-container ul li span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget.chartWidget {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.widget.chartWidget .chart-widget-inner {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.widget.chartWidget canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
.widget.gaugeChart .chart-container .percentage {
    position: absolute;
    display: block;
    left: 50%;
    transform: translate(-50%, 0);
    font-size: 5vmin;
    font-weight: 800;
    color: #fff;
    bottom: 50px;
    text-align: center;
}
.widget.titlebox {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -1px 3px rgba(0, 0, 0, 0.15);
    position: relative;
    color: white;
    z-index: 1;
    overflow: hidden;
    font-size: 1vw;
    text-align: center;
}
.widget.titlebox::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 70% );
    z-index: 2;
    pointer-events: none;
}
.widget.titlebox::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient( circle at top left, rgba(255, 255, 255, 0.12), transparent 70% );
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.widget.iconHeader {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -1px 3px rgba(0, 0, 0, 0.15);
    position: relative;
    color: white;
    z-index: 1;
    font-size: 1em;
    overflow: hidden;
}
.widget.sticker {
    width: 100%;
    height: auto;
    overflow:hidden;
}
.widget.sticker img{
    width:100%;
    height:100%;
    object-fit:contain;
}
/*flip-clock*/
.widget.flipClockWidget {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 30px;
}
.widget .flip-clock {
    width: auto !important ;
}
.widget.flipClockWidget .flip-clock-divider {
    color: inherit !important;
    animation: flip-divider-fade 1s ease-in-out infinite;
}
@keyframes flip-divider-fade {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.15;
    }

    100% {
        opacity: 1;
    }
}

.svgHeader {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    overflow:hidden;
}
.svgHeader svg {
    width: 100%;
    height: 100%;
}

.widget:not(.headlineNews) {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.widget.iconHeader {
    margin: 0;
    padding: 0;
    border: none;
}
.widget.iconHeader img {
    height: 100%;
    padding: 5px;
    object-fit: contain;
}
/*차트/테이블 화면인쇄*/
.cte-wrap {
    display: inline-block;
}
.cte-modal-backdrop {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.45);
    z-index: 9998;
}
.cte-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 1100px;
    max-width: calc(100vw - 40px);
    height: 720px;
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}
.cte-modal-header {
    padding: 12px 14px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cte-modal-title {
    font-size: 14px;
    font-weight: 700;
}
.cte-modal-close {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 22px;
    cursor: pointer;
}
.cte-modal-body {
    flex: 1;
    padding: 0;
}
.cte-preview-frame {
    width: 100%;
    height: 100%;
    border: 0;
}
.cte-modal-footer {
    padding: 10px 14px;
    border-top: 1px solid #ddd;
    text-align: right;
}
