/* all */

html, body { height: 100vh; }

input, select, option{
    font-size: 13px;
    height: 30px;
    border: 1px solid #aaa
}

/* 768px以下の画面サイズに対応 */
@media screen and (max-width: 768px) {
    input, select, option{
        font-size: 16px;
        height: 45px;
        border: 1px solid #aaa
    }
}

body{
    background-color: #e4e4e4;
    font-family: "M PLUS Rounded 1c", sans-serif;
    margin: 0;
    color: #1A1A1A;
}

h2 {
    font-size: 24px;
    font-weight: bold;
    margin-top: 40px;
}

h3 {
    font-size: 18.75px;
    font-weight: bold;
}

h4{
    font-size: 14px;
    font-weight: bold;
}

h5 {
    font-size: 13.25px;
    font-weight: bold;
}

input[readonly] {
    cursor: not-allowed;
}

.menagementWrapper{
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contentWrapper{
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.contentWrapper .messages .alert{
    padding: 5px;
    margin-bottom: 0px;
}

#overlay {
    margin-top: 56px;
    position: fixed;
    top: 4px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(122, 122, 122, 0.65);
    display: none;
    z-index: 10000;
}

#loading {
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.spinner-border {
    color: #FF7C00;
}

#progressOverlay {
    background: rgba(0, 0, 0, 0.5);
    z-index: 20000;
}

/* base.html */
.loginAndlogout{
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rightMenu{
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: 5px;
    justify-content: flex-end;
    flex-direction: row;
}

.loginAndlogout p{
    padding: 0 10px;
    margin: 0;
    font-weight: bold;
    font-size: 12px;
}

.logoutButton {
    font-weight: bold;
    width: auto;
    height: 100%;
    background-color: transparent;
    border: none;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.logoutButton:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.logoutButton:active {
    transform: scale(0.95);
}

.logoutContent{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-left: auto;
    white-space: nowrap;
    margin-right: 5px;

}

.logoutContent form{
    height: 100%;
}

.logoutContent :hover{
    color: #e7e7e7;

}

.logoutContent :active{
    color: #595959;
}

.errorlist{
    height: auto;
    padding: 5px;
    font-size: 13px;
    color: tomato;
    list-style: none;
}

.inputArea{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    height: 100%;
    width: 100%;
    justify-content: center;
}

.centered {
    margin: 0 auto;
    text-align: center;
    color: white;
    font-size: 15px;
}

.inputArea label{
    color: white;
    font-size: 16px;
    margin: 0;
    margin-bottom: 10px;
}

.inputArea p{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inputArea input{
    width: 90%;
    height: 40px;
    margin-bottom: 40px;
}

.inputArea form{
    padding: 0px, 20px;
    width: 80%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

/* sidemenu */
.sidemenu {
    background: #111111;
    color: white;
    height: 100%;
    min-width: 260px;
    display: none;
}

.sidemenu.active {
    position: fixed;
    display: flex;
    justify-content: flex-start;
    width: 260px;
    flex-direction: column;
    align-items: flex-start;
    z-index: 10001;
}

.content {
    margin-top: 20px;
    width: 100%;
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.content a {
    display: flex;
    height: 44px;
    width: 100%;
    flex-shrink: 0;
    flex-direction: row;
    align-items: center;
    border-bottom: 0;
    position: relative;
    cursor: pointer;
    border: 0;
    color: inherit;
    text-decoration: none;
}

.content img{
    width: 20px;
    height: 20px;
    margin: 0 20px 0 20px;
}

.content li {
    width: 100%;
    list-style-type: none;
}

.content li a span {
    transition: opacity 0s ease-in-out;
}

.content span {
    font-size: 14px;
    margin-top: auto;
    margin-bottom: auto;
}

.sidemenu.active .content li {
    display: flex;
    justify-content: center;
}

.content a:hover{
    background-color: rgba(255, 255, 255, 0.2);
}

.content a:active {
    background-color: rgba(255, 255, 255, 0.3);
}



.text{
    width: 100%;
    height: auto;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.text strong{
    font-size: 25px
}

.tenpValue h5 {
    margin-top: 0;
    margin-bottom: -5px; /* テキストの上に余白を追加 */
}

.tenpValue p {
    margin-top: 0;
    margin-bottom: -6px;
    font-size: 0.83em;
    font-weight: bold;
}

/* header */
.header{
    z-index: 10000;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    min-height: 60px;
    width: 100%;
    border-bottom: 5px solid #FF7C00;

}

.header h3 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    text-align: center;
}

.leftMenu{
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: flex-start;
    flex-direction: row;
}

.header a {
    display: flex;
}

.logo{
    margin-left: 5px;
    display: flex;
    align-items: center;
}

.logo a{
    height: 100%;
    display: flex;
    align-items: center;
}

.hamburger {
    margin-left: 6px;
    width: 26px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

.header-service-title-responsible {
    margin-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column; /* ← これが必要 */
    align-items: center;    /* 中央寄せ */
}

@media screen and (min-width: 768px) {
    .header-service-title-responsible {
        display: none;
    };
}

@media screen and (max-width: 767px) {
    .hamburger,
    .header-service-title,
    .header-user-affiliation {
        display: none;
    };
}



.hamburger > span {
    height: 2px;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    margin: 3px;
}

.hamburger.active {
    cursor: pointer;
    width: 26px;
    height: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5.5px, 7px);
    width: 24px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg)  translate(4.7px, -6.5px);
    width: 24px;
}

a{
    color: #595959;
    text-decoration: none;
}

h1{
    margin: 0;
}


.table th{
    font-size: 15px;
}

.table tbody{
    font-size: 14px;
}

.align-middle{
    font-size: 14px;
}

.Button{
    padding: 4px 10px;
    background-color: #FF7C00;
    color: white;
    cursor: pointer;
    transition: all 0.4s;
    width: 100px;
    height: 30px;
    margin-bottom: 10px;
    border: none;
}

.csvButton{
    padding: 4px 10px;
    background-color: black;
    color: white;
    cursor: pointer;
    transition: all 0.4s;
    width: 100px;
    border: none;
    text-align: center;
    margin-top: 20px
}

.Button:hover{
    background-color: #FF9C33;
    color: white;
}

.Button:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.addButton{
    font-size: 32px;
    color: orange;
}

/* Disabled state */
.Button:disabled {
    background-color: #ccc;  /* Change background color for disabled state */
    color: #666;  /* Text color for disabled state */
    cursor: not-allowed;  /* Show not-allowed cursor */
    border: none;
    transform: none; /* Disable any transform/scale */
}

/* Disabled state */
.csvButton.disabled {
    background-color: #ccc;  /* Change background color for disabled state */
    color: #666;  /* Text color for disabled state */
    pointer-events: none;  /* Disable clicking */
    opacity: 0.5;          /* Visual feedback for disabled */
    cursor: not-allowed;    /* Change cursor to 'not allowed' */
}

/* Optional: Hover effect for disabled button (if you don't want any, you can remove this) */
.Button:disabled:hover {
    background-color: #ccc;
    color: #666;
}

label{
    display: block;
    margin: 0;
    color: rgb(2,0,36);
    font-size: 13px;
}

/* 768px以下の画面サイズに対応（縦並びに変更） */
@media screen and (max-width: 768px) {
    label{
        display: block;
        margin: 0;
        color: rgb(2,0,36);
        font-size: 16px;
    }
}

.inputField input[type="date"], .inputField input[type="text"] {
    width: 180px;
    background-color: white;
    border: 1px solid rgb(2,0,36);
    height: 25px;
    box-sizing: border-box;
    font-size: 15px;
}

.inputContainer {
    display: flex;
    justify-content: space-between;
    margin: 10px;
}

.inputField {
    display: flex;
    flex-direction: column;
    margin: 0 5px;
}

textarea{
    width: 60%;
}



.select2{
    width: 220px;
    border-radius: 0px;
    margin-bottom: 10px;
}

/* select2がreadonlyの時の設定 */

.select2-selection__choice{
    font-size: 13px;
}

.select2-container--default .select2-selection--single {
    border-radius: 0px;
    font-size: 13px;
}

.select2-results__option {
    font-size: 13px;
}

.select2-search__field{
    height: 25px;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    min-height: 25px;
}

.select2-container--default .select2-results__option--highlighted{
    min-height: 25px;
}

@media (max-width: 768px) {
    .select2 {
        width: 100%; /* 画面幅にフィット */
        margin-bottom: 8px;
    }

    .select2-selection__choice {
        font-size: 12px;
    }

    html body .select2-container--default .select2-selection--single {
        font-size: 16px;
        height: 45px;
        min-height: 30px;
        line-height: 45px;
    }

    html body .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 16px;
        height: 45px;
        min-height: 30px;
        line-height: 45px;
    }

    html body .select2-container--default .select2-selection--single .select2-selection__clear {
        cursor: pointer;
        float: right;
        font-weight: bold;
        font-size: 0px;
    }

    html body .select2-container--default .select2-selection--single .select2-selection__arrow b {
        border-color: #888 transparent transparent transparent;
        border-style: solid;
        border-width: 7px;
        height: 0;
        left: 50%;
        margin-left: -4px;
        margin-top: -2px;
        position: absolute;
        top: 50%;
        width: 0;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 45px;
        position: absolute;
        top: 1px;
        right: 1px;
        width: 45px;
    }

    .select2-results__option {
        font-size: 16px;
    }

    .select2-search__field {
        height: 45px;
    }

    .select2-container--default .select2-results__option[aria-selected=true],
    .select2-container--default .select2-results__option--highlighted {
        min-height: 22px;
    }
}

.form-group input{
    width: 220px;
}




.form-control{
    width: 200px;
    height: 28px;
    border: 1px solid #aaa;
    border-radius: 0px;
    margin-bottom: 10px;
}

.camerainfofield{
    display: flex;
    justify-content: center;
    color: rgb(2,0,36);
    font-size: 15px;
}

/* input{
    width: 180px;
    background-color: white;
    border: 1px solid rgb(2,0,36);
    height: 25px;
    box-sizing: border-box;
    font-size: 15px;
} */



/* register */
.userinputfield{
    display: flex;
    width: 50%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
    color: rgb(2,0,36);
    font-size: 15px;
} 

.error{
    font-size: 13px;
    margin: 0;
    color: tomato;
    background-color: #eee;
}

.error p{
    margin: 0;
}



.tenpForm {
    display: flex;
    margin-top: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    width: 100%;
    border-radius: 3px;
    border: 2px solid white;
    background-color: transparent;
}

.registersetuptimeWrapper{
    margin: 0px 0 20px 5px ;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.registersetuptimeWrapper h4{
    margin: 0;
}

.registertimeArea{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
}

.registertimeArea select {
    width: 50px;
    font-size: 14px;
    border-radius: 2px;
}

.userinputWrapper{
    width: auto;

}

.userinputWrapper label {
    align-self: flex-start; /* labelを左寄せにする */
}

.weekday_wrapper{
    display: flex;
    align-items: center;
}

.hourandtime_wrapper{
    display: flex;
    align-items: center;
}

/* update_tenpmaster */
.updatetenpmasterWrapper{
    display: flex;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
}

@media screen and (min-width: 768px) and (max-width: 1440px) {
    .updatetenpmasterWrapper {
        width: calc(100% - 220px); /* ← ここを調整 */
    }
}

.updatetenpmasterWrapper .tenp_name{
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
}



.tenpmasterinfofield{
    display: flex;
    justify-content: center;
    margin: 20px auto;
}

#tenpmaster_select{
    width: 280px;
    background-color: white;
    border: 1px solid rgb(2,0,36);
    height: 35px;
    box-sizing: border-box;
    font-size: 14px;
}

.tenpmasterinfofield label{
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

#tenpmaster_select option{
    color: #1A1A1A;
}

.timeviewsWrapper{
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.setuptimeWrapper{
    margin: 0px 5px 20px 0 ;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.setuptimeWrapper h4{
    margin: 0;
}

.timeArea{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
}

.timeArea select {
    width: 50px;
    height: 30px;
    font-size: 14px;
    border: 1px solid #595959;
    border-radius: 2px;
}

.labelandtimeWrapper{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 10px;
}

.labelandtimeWrapper label{
    font-size: 14px;
}

.timeviewsWrapper form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeviewsWrapper form .timeLabelWrapper {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.timeviewsWrapper form .Button {
    align-self: center;
    margin-top: 10px;
}

@media screen and (max-width: 800px) {
    .contentWrapper {
        width: 100%;
    }

    .loginForm {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: auto;
        width: 70%;
        margin: 25px;
        border-radius: 3px;
    }
}




/* モーダルスタイル */
#confirmModal {
    z-index: 10002 !important;
}
/* モーダルの最大幅を50%に設定 */
#confirmModal .modal-dialog {
    max-width: 50%;
    margin: auto; /* モーダルを中央に配置 */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 1rem); /* 画面中央に配置しつつ、スクロールバーを防ぐ */
}

@media screen and (max-width: 767px) {
    #confirmModal .modal-dialog {
        max-width: 80%;
    };
}

/* モーダルの背景 (Backdrop) のスタイル */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* モーダルのコンテンツ中央配置 */
#confirmModal .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

/* モーダルボディ内の要素を中央揃え */
#confirmModal .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Bootstrapのモーダルが本来の配置で動作するように調整 */
body.modal-open {
    overflow: hidden; /* モーダル表示時にスクロールバーを防ぐ */
}



/* 店舗ユーザーのカメラ一覧表 */
.card {
    position: absolute;
    width: 200px;
    top: 70px;
    right: 10px;
    z-index: 1050;
    max-height: 75%; /* カードの最大高さ */
    overflow-y: auto; /* 高さを超えた部分にスクロールバーを表示 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 見た目を少しリッチにするための影 (任意) */
}

