/*
サブタイトルの点線枠
*/
.sub-title-border {
    border-style: dotted;
    border-color: silver;
    border-width: 1px;
}

/* 
formタグのデフォルトmarginをゼロにする
*/
form {
    margin-bottom: 0px;
}


/*
開始日と終了日のinputのレイアウト
*/
.form-date {
    display: inline-flex;
}

/* 

*/
.badge-custom {
    background-color: #fff;
}

/*
modalの日時、氏名などのレイアウト
*/
.modal-div-item {
    text-align: left;
}

.modal-div-item > div {
    display: inline-block;
    margin-right: 20px;
}

/* 
modalの要素がmodalの枠からはみ出るのを防ぐ
*/
.modal-content {
    overflow: auto;
}

/* 
text-nowrap要素を打ち消し
改行を有効にする
*/
.no-wrap {
    white-space: normal !important;
    word-break: break-all; /* 半角英字を改行させるために必要 */
}

/* 
hoverされたら色を変える処理
*/
.hoverable:hover {
    background-color: #f2f2f2;
}

/* 
tableの省略表示
　・tdに省略表示を適用する場合に使用する
　・td > div の構成の場合は以下の手順で省略表示する
    td に style="max-width: 0;"
    div に text-truncate
*/
.text-truncate-custome {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 
フラッシュメッセージ
*/
.flash-message {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 10px;
    z-index: 9999;
    opacity: 0;
}
    
.flash-message.show {
    opacity: 1;
}
    
.flash-message.success {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}
    
.flash-message.failed {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* 
ロード中
*/

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#loading p {
    font-size: 24px;
    color: #fff;
}