﻿@charset "UTF-8";

.mdlclosebtn {
    position: absolute; 
    top: -30px;
    right: -30px;
    cursor: pointer;
    font-size: 25px;
    color: #0F766E;
}

.mdlheader {
    text-align: center;
    color: #1f2f2d;
    background: #ffffff;
    border: 1px solid #d4e4e1;
    padding: 4px;
    font-size: 20px;
    margin-bottom: 4px;
}

.mdlbody {
    padding: 10px;
}

.mdlbutton {
    text-align: center;
}

.attachment-preview-modal {
    max-width: calc(100vw - 80px);
}

.attachment-preview-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    width: 50vw;
}

.attachment-preview-tab {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    min-height: 30px;
    padding: 7px 22px 7px 12px;
    align-items: center;
    gap: 4px;
    color: #0F766E;
    font: inherit;
    font-size: 10px;
    background: #0F766E;
    cursor: pointer;
    -webkit-clip-path: polygon(
        0 0,
        calc(100% - 18px) 0,
        100% 18px,
        100% 100%,
        0 100%);
    clip-path: polygon(
        0 0,
        calc(100% - 18px) 0,
        100% 18px,
        100% 100%,
        0 100%);
    border: 0;
    box-sizing: border-box;
    isolation: isolate;
    text-decoration: none;
    white-space: nowrap;
}

.attachment-preview-tab:hover,
.attachment-preview-tab:active {
    color: #0F766E;
    text-decoration: none;
}

.attachment-preview-tab::before {
    position: absolute;
    z-index: 0;
    top: 1px;
    right: 1px;
    bottom: 1px;
    left: 1px;
    background: #CCFBF1;
    -webkit-clip-path: polygon(
        0 0,
        calc(100% - 17px) 0,
        100% 17px,
        100% 100%,
        0 100%);
    clip-path: polygon(
        0 0,
        calc(100% - 17px) 0,
        100% 17px,
        100% 100%,
        0 100%);
    content: "";
}

.attachment-preview-tab span {
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-preview-tab i {
    position: relative;
    z-index: 1;
    font-size: 14px;
}

.attachment-preview-tab.is-active {
    color: #ffffff;
}

.attachment-preview-tab.is-active:hover,
.attachment-preview-tab.is-active:active {
    color: #ffffff;
}

.attachment-preview-tab.is-active::before {
    background: #0F766E;
}

.attachment-preview-tab:focus {
    position: relative;
    z-index: 1;
    outline: 2px solid #1F497D;
    outline-offset: -3px;
}

.attachment-preview-frame {
    display: flex;
    width: 50vw;
    height: 50vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #333333;
    box-sizing: border-box;
}

.attachment-preview-panel {
    display: none;
    width: 50vw;
    height: 50vh;
    align-items: center;
    justify-content: center;
}

.attachment-preview-panel.is-active {
    display: flex;
}

.attachment-preview-image {
    display: block;
    width: auto;
    max-width: 50vw;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
}

.attachment-preview-empty {
    width: 50vw;
    min-height: 120px;
    padding: 20px;
    color: #526b67;
    text-align: center;
    background: #ffffff;
    border: 1px solid #333333;
    box-sizing: border-box;
}

.attachment-preview-actions {
    padding-top: 16px;
}

.office-modal-body {
    padding-top: 4px;
}

@media screen and (max-width: 520px) {
    #mdldefault .mdlclosebtn {
        top: -24px;
        right: -16px;
    }
}

#showoverlay {
    margin: 25px;
}

.modalbox {
    position: fixed;
    z-index: 970;
    display: none;
    padding: 2px;
    border: 5px solid #eee;
    border-radius: 8px;
    background-color: #F4F2F2;
    padding:10px;
}

#mdldefault,
#mdlsub {
    box-sizing: border-box;
    max-height: 95vh;
}

#postdefault,
#postsub {
    max-height: calc(95vh - 30px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 960;
    width: 100%;
    height: 100%;
    background: #A9A9A9;
    opacity: 0.3;
    filter: alpha(opacity=30);
}

.modalClose {
    position: absolute;
    top: 10px;
    right: 10px;
    color: red;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}


.modalBackground {
    z-index: 1;
    background: #A9A9A9;
    opacity: 0.7;
    filter: alpha(opacity=70);
}

.modalPopup {
    z-index: 99;
    overflow: hidden;
    width: 600px;
    border: solid 1px #eee;
    background-color: #fff;
    /*---- 3/4修正　background→background-color ----*/
    /*---- 3/4追加　お好みで#fff、3px 等に変更しても可 ----*/
}

.windowClose {
    float: right;
    margin: 2px 10px 0 10px;
    width: 18px;
    height: 18px;
    background: url(../img/modal/btn_red_close_18.png) no-repeat;
    background-position: 0px 0px;
    background-repeat: no-repeat;
    cursor: pointer;
    /*background-image: url('<%= WebResource("daito_ryugaku.img.modal.btn_red_close_18.png") %>');
    background-repeat: no-repeat;*/
}

    .windowClose:hover {
        background-position: 0px -18px;
    }

    .windowClose:active {
        position: relative;
        top: 1px;
        background-position: 0px -36px;
    }

.windowContent {
    text-align: left;
}

.windowTop {
    height: 30px;
    border-bottom: solid 1px #C4000F;
    background: url(../img/menu/bar001.png) left top repeat-x;
    /*background: url('<%= WebResource("daito_ryugaku.img.bar001.png") %>') left top;
    background-repeat: repeat-x;*/
}

.windowTopContent {
    float: left;
    padding-top: 5px;
    padding-left: 15px;
    color: #000000;
    font-weight: bold;
    font-size: 14px;
    /*overflow: hidden;*/
    /*position: relative;*/
}

.closebtn {
    width: 18px;
    background: url(../img/modal/btn_red_close_18.png) no-repeat;
    background-position: 0px 0px;
    /*background-image: url('<%= WebResource("daito_ryugaku.img.modal.btn_red_close_18.png") %>');
    background-repeat: no-repeat;*/
}

    .closebtn:hover {
        background-position: 0px -18px;
    }

    .closebtn:active {
        position: relative;
        top: 1px;
        background-position: 0px -36px;
    }

/*モーダルウィンドウ外枠*/
.modalsize {
    position:relative;
}

#dlog {
    padding: 2px;
    line-height: 1.5;
}

    #dlog p {
        padding-top: 5px;
        padding-left: 5px;
    }

.loading {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,.5);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: 150px 150px;
    z-index: 9999999;
}

#loadingNow {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    background: white;
    font-size: 1.8em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit- transform: translateY(-50%) translateX(-50%);
    border: 5px solid #eee;
    border-radius: 8px;
    padding: 10px;
}

.loading-spinner {
    animation: loading-spinner-rotate .8s linear infinite;
    transform-origin: center;
}

@keyframes loading-spinner-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#progressIndicator {
  width: 300px;         /* 必要に応じて幅は調整 */
  margin: 15px auto 5px;
  text-align: center;
  font-family: Arial, sans-serif;
}

#progressText {
  font-size: 14px;
  margin-bottom: 5px;
}

.progress-container {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  height: 20px;
}

.progress-bar {
  height: 100%;
  background-color: #76c7c0;
  width: 0%;
  transition: width 0.3s ease;
}

.bgred{
    background: #D32A63;
    color: #fff !important;
}
