html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    margin: 3px;
    font-family: arial, arial unicode ms, MS Sans Serif, sans-serif;
    overflow-x: auto;
    overflow-y: auto;
    background-color: #f7f7f7;
}

html, body, .container {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

main[role="main"] {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    height: 100vh;
    overflow: hidden;
}

body.no-padding-bottom {
    padding-bottom: 0 !important;
}

.width-auto {
    width: auto;
    overflow: hidden;
}

.active {
    background-color: #da3c41;
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

select, option {
    font-size: 16px;
    height: 20px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 3px;
    text-align: left;
}

datalist, option {
    font-size: 16px;
    height: 20px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 3px;
    text-align: left;
}

div.MAIN {
    background-color: #ffffff;
    clear: both;
    height: 100vh;
}

div.last {
    margin-top: 30px;
    margin-bottom: 50px;
    text-align: center;
}

div.text_center {
    text-align: center;
}

/*テーブルの枠線制御*/
table.BORDER_OFF {
    border-style: none;
}

table.BORDER_ON {
    border-style: solid;
}

td.BORDER_OFF {
    text-align: center;
    border-style: none;
}

td.BORDER_ON {
    text-align: center;
    border-style: solid;
}

/* 隠し項目 */
.hidden {
    visibility: hidden;
    display: none;
}

/*マウスカーソルをポインターにする*/
#KensakuResult tbody tr {
    cursor: pointer;
}

/*選択された行の背景色を変更する*/
tr.row {
    background-color: #FFFFFF;
}

/* 「配車区分」が「配車」の行 */
tr.kbnHaisya {
    /*現在未設定、下記カラーコードは選択行と同じくらいの黄色*/
    /*background-color:#FFFFAA;*/
}

/*未登録端末（＝組合コード、組合支部コード、運送店コードがいずれも0）*/
tr.pink {
    background-color: #FFC0CB;
}

/*「状況」が「配車登録」の行*/
tr.blue {
    background-color: #DAF2FF;
}

/*選択行*/
tr.selected {
    background-color: #FFFFAB;
}

/* 文字色と大きさを変更する */
.red {
    color: red;
    font-size: 18px;
}

/*テーブル見出しの設定*/
th.midasi {
    background-color: #FAEBD7;
    white-space: nowrap;
}

/*空白行の設定*/
td.blank {
    height: 18px;
    empty-cells: show;
}

/* 明細部セル */
.cell {
    padding-top: 1.5px;
    padding-bottom: 1.5px;
    padding-left: 5px;
    padding-right: 2px;
}

/*距離*/
.kyoricell {
    width: 70px;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 2px;
    padding-right: 5px;
    text-align: right;
}

.kyorimidasi {
    width: 70px;
}

.numcell {
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 2px;
    padding-right: 5px;
    text-align: right;
}

/*時刻日付（yyyy/MM/dd HH:mm:ss）*/
.datecell {
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 2px;
    padding-right: 2px;
    text-align: center;
    width: 140px;
}

.datemidasi {
    width: 140px;
}

/*配車回数*/
.haisyanumcell {
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 2px;
    padding-right: 5px;
    text-align: right;
    width: 32px;
}

.haisyanummidasi{
    width: 32px;
}

/*状況*/
.statuscell {
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 5px;
    padding-right: 2px;
    width: 65px;
}

.statusmidasi{
    width: 65px;
}

.kbncell {
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 2px;
    padding-right: 2px;
    text-align: center;
    width: 60px;
}

.kumiaicellmidasi{
    width: 100px;
}

.codecell {
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 2px;
    padding-right: 5px;
    text-align: right;
    width: 50px;
}

.codemidasi{
    width: 50px;
}

.squarecell {
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 1px;
    padding-right: 1px;
    text-align: center;
    width: 20px;
}

.idcell {
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 1px;
    padding-right: 1px;
    text-align: center;
    width: 140px;
}

.modelcell {
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 5px;
    padding-right: 2px;
    text-align: left;
    width: 140px;
}

.telcell {
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 5px;
    padding-right: 1px;
    text-align: left;
    width: 120px;
}

.telmidasi{
    width: 120px;
}

.carnumbercell {
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 5px;
    padding-right: 2px;
    text-align: left;
    width: 170px;
}

.carnumbermidasi{
    width: 170px;
}

/*日付を入力する際に、どこをクリックしてもカレンダーを表示する*/
input[type=date]::-webkit-calendar-picker-indicator {
    position: absolute;
    width: 120%;
    height: 100%;
    opacity: 0;
    left: -20%;
}

input[type="date"].empty::before {
    content: "";
    color: #999999;
}

input[type="date"]:not(.empty)::before {
    content: none;
}

/*時間を入力する際にどこをクリックしても時計を表示する*/
input[type="time"]::-webkit-calendar-picker-indicator {
    position: absolute;
    width: 120%;
    height: 100%;
    opacity: 0;
    left: -20%;
}

/*数字を入力する際の矢印ボタンを非表示にする*/
/* Chrome, Safari, Edge の場合*/
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}
/* Firefox の場合*/
input[type=number] {
    -moz-appearance: textfield;
}

/*FormのSubmitボタン*/
.btn-submit {
    width: 100px;
    border: none;
    padding: 0px;
    background-color: #1E90FF;
    text-decoration: none;
    color: #FFF;
    font-weight: bold;
    cursor: pointer;
}

.btn-submit-orange {
    width: 110px;
    font-size: 14.5px;
    border: none;
    padding: 0px;
    background-color: #ff9046;
    text-decoration: none;
    color: #FFF;
    font-weight: bold;
    cursor: pointer;
}

.btn-submit-gray {
    width: 100px;
    border: none;
    padding: 0;
    margin: 0;
    background-color: #808080;
    text-decoration: none;
    color: #FFF;
    font-weight: bold;
    cursor: pointer;
}

.btn-submit-return {
    width: 100px;
    border: none;
    padding: 0px;
    background-color: #808080;
    text-decoration: none;
    color: #FFF;
    font-weight: bold;
}

/*ボタンの外見*/
.btn-square-so-pop {
    width: 100px;
    text-align: Center;
    position: relative;
    display: inline-block;
    padding: 0.25em 0.25em;
    text-decoration: none;
    color: #FFF;
    background: #1E90FF;
    border-radius: 4px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    font-weight: bold;
    border: solid 2px #4169E1;
}

.btn-square-so-pop-yellow {
    width: 100px;
    text-align: Center;
    position: relative;
    display: inline-block;
    padding: 0.25em 0.25em;
    text-decoration: none;
    color: #FFF;
    background: #1E90FF;
    border-radius: 4px;
    box-shadow: inset 0 2px 0 #FFFF00, inset 0 -2px 0 #FFD700;
    font-weight: bold;
    border: solid 2px #4169E1;
}

.btn-square-so-pop-orange {
    width: 110px;
    /* height: 22px; */
    text-align: Center;
    position: relative;
    display: inline-block;
    padding: 0.25em 0.25em;
    text-decoration: none;
    color: #FFF;
    background: #ff9046;
    border-radius: 4px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    font-weight: bold;
    border: solid 2px #FF8C00;
}

.btn-square-so-pop-gray {
    width: 100px;
    text-align: Center;
    position: relative;
    display: inline-block;
    padding: 0.07em 0.07em;
    text-decoration: none;
    color: #FFF;
    background: #808080;
    border-radius: 4px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    font-weight: bold;
    border: solid 2px #77787B;
}

.btn-square-so-pop-return {
    width: 100px;
    text-align: Center;
    position: relative;
    display: inline-block;
    padding: 0.25em 0.25em;
    text-decoration: none;
    color: #FFF;
    background: #808080;
    border-radius: 4px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    font-weight: bold;
    border: solid 2px #77787B;
}

.btn-square-so-pop-forbidden {
    pointer-events: none;
    width: 100px;
    text-align: Center;
    position: relative;
    display: inline-block;
    padding: 0.35em 0.35em;
    text-decoration: none;
    color: #FFF;
    background: #1E90FF;
    border-radius: 4px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    font-weight: bold;
    border: solid 2px #4169E1;
}

/* 右寄せボタン */
.right-btn {
    text-align: right;
    padding-right: 30px;
}

/*ページレイアウト*/
.MainMidasi {
    height: 70px;
    width: 100%;
    display: flex;
    margin: 0;
    padding: 0 5px;
    justify-content: space-between;
    background-color: #e71a1d;
    color: white;
    box-sizing: border-box;
}

.Search {
    height: auto;
    width: 100%;
    background-color: #f3e3e3;
    padding: 2px;
    box-sizing: border-box;
}

.Search-flex {
    height: auto;
    width: 100%;
    display: flex;
    background-color: #f3e3e3;
    padding: 2px;
    box-sizing: border-box;
}

.Detail {
    height: auto;
    width: 100%;
    background-color: #f7f7f7;
}

.SelectedDetail {
    width: 100%;
    background-color: #f7f7f7;
}

.transition {
    height: 45px;
    width: 100%;
    background-color: #e3ffff;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.mapTransition {
    height: 45px;
    width: 100%;
    background-color: #e3ffff;
    display: flex;
    align-items: center;
}

.news-second {
    grid-row: 4;
    display: none;
}

.newsDetail {
    grid-row: 3;
    height: auto;
    width: 100%;
    background-color: #f7f7f7;
    padding: 3px;
}

.newstransition {
    grid-row: 4;
    height: 40px;
    width: 100%;
    bottom: 0;
    display: flex;
    background-color: #e3ffff;
    align-items: center;
    padding: 0 5px;
}

/*スクロールバー*/
.scrollbar {
    width: 98vw;
    height: 2vh;
    overflow-x: scroll;
    overflow-y: hidden;
}

    .scrollbar .inner {
        width: 98vw;
        height: 1px;
    }

.table-wrap {
    grid-row: 3;
    height: 100%;
    overflow-y: scroll;
    min-height: 0;
    height: fit-content;
    max-height: 100%;
    box-shadow: inset 0 5px 0 0 #f7f7f7;
    z-index: 30;
}

.table-wrap-map {
    max-height: 130px;
    overflow-y: scroll;
    display: block;
    min-height: 0;
    box-shadow: inset 0 5px 0 0 #f7f7f7;
    z-index: 30;
}

.table-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background-color: #f7f7f7;
    z-index: 100;
    pointer-events: none;
}

.mapDetail {
    grid-row: 2;
}

.map {
    grid-row: 3;
}

.map-bottom {
    grid-row: 4;
    display: none;
}

/*ログイン情報*/
.OperatorInfo {
    text-align: right;
    align-items: flex-end;
    vertical-align: bottom;
    float: right;
}

/*入力項目*/
/*「ヘッダー部.項目」*/
.kensakuMidasi {
    width: 170px;
    height: 40px;
    padding-left: 20px;
    font-size: 18px;
    text-align: left;
}

.kensakuHosoku {
    width: 170px;
    height: 40px;
    font-size: 18px;
    text-align: left;
}

/*ラジオボタン項目*/
.kensakuRadio {
    width: 170px;
    height: 40px;
    padding-right: 20px;
    font-size: 16px;
    text-align: left;
}

/*チェックボックス項目*/
.kensakuCheck {
    width: 170px;
    height: 40px;
    padding-right: 20px;
    margin: 3px;
    font-size: 16px;
    text-align: left;
    align-items: center;
}

/*住所入力欄*/
.address {
    font-size: 16px;
    width: 700px;
    height: 20px;
    border: 1px solid;
}

.address_error {
    color: red;
    border: 1px solid;
    border-color: black;
}

.address_disabled {
    pointer-events: none;
    background-color: #f0f0f0;
    color: #666666;
}

/* 入力不可項目 */
.disabled {
    pointer-events: none;
    background-color: #f0f0f0;
    color: #666666;
    border: 1px solid
}

/* 入力必須項目 */
.redborder {
    border: 1.6px solid;
    border-color: #f5505a;
    box-shadow: none;
}

/*テキストエリア*/
textarea.INPUTNAIYOU {
    vertical-align: top;
}

/*コンボボックス4バイト*/
select.CB_BITE4 {
    font-size: 16px;
    width: 75px;
    height: 25px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 3px;
    text-align: left;
}

/*コンボボックス6バイト*/
select.CB_BITE6 {
    font-size: 16px;
    width: 90px;
    height: 25px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 3px;
    text-align: left;
}

/*コンボボックス10バイト*/
select.CB_BITE10 {
    font-size: 16px;
    width: 120px;
    height: 25px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 3px;
    text-align: left;
}

/*コンボボックス10バイト(編集不可)*/
select.CB_BITE10_disabled {
    font-size: 16px;
    width: 120px;
    height: 25px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 3px;
    text-align: left;
    pointer-events: none;
    background-color: #f0f0f0;
    color: #666666;
}

/*コンボボックス20バイト*/
select.CB_BITE20 {
    font-size: 16px;
    width: 180px;
    height: 25px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 3px;
    text-align: left;
}

/*コンボボックス20バイト(編集不可)*/
select.CB_BITE20_disabled {
    font-size: 16px;
    width: 180px;
    height: 25px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 3px;
    text-align: left;
    pointer-events: none;
    background-color: #f0f0f0;
    color: #666666;
}

/*コンボボックス30バイト*/
select.CB_BITE30 {
    font-size: 16px;
    width: 295px;
    height: 25px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 3px;
    text-align: left;
}

/*コンボボックス30バイト(編集不可)*/
select.CB_BITE30_disabled {
    font-size: 16px;
    width: 295px;
    height: 25px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 3px;
    text-align: left;
    pointer-events: none;
    background-color: #f0f0f0;
    color: #666666;
}

/*テキストボックス6バイト*/
input.TEXT_BITE6 {
    font-size: 16px;
    width: 90px;
    height: 20px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 3px;
    text-align: left;
}

/*テキストボックス10バイト*/
input.TEXT_BITE10 {
    font-size: 16px;
    width: 150px;
    height: 20px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 3px;
    text-align: left;
}

/*テキストボックス20バイト*/
input.TEXT_BITE20 {
    font-size: 16px;
    width: 210px;
    height: 20px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 3px;
    text-align: left;
}

/*テキストボックス40バイト*/
input.TEXT_BITE40 {
    font-size: 16px;
    width: 370px;
    height: 20px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 3px;
    text-align: left;
}

/*テキストボックス50バイト*/
input.TEXT_BITE50 {
    font-size: 16px;
    width: 460px;
    height: 20px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 3px;
    text-align: left;
}

/*チェックボックス*/
input[type=checkbox] {
    width: 16px;
    height: 16px;
}

/*yyyy/MM/dd*/
input.INPUTDATE {
    font-size: 16px;
    width: 120px;
    height: 20px;
    margin: 3px;
    position: relative;
}

/*HH:mm*/
input.INPUTTIME {
    font-size: 16px;
    width: 120px;
    height: 20px;
    margin: 3px;
    position: relative;
}

/*編集不可項目_テキストボックス*/
input.NotEditableText {
    font-size: 16px;
    pointer-events: none;
    border: 1px solid #808080;
    background-color: #f0f0f0;
    color: #666666;
}

/*位置情報問い合わせ画面*/
#map {
    /*height: 82vh;*/
    width: 100%;
    border: 1px solid #ccc;
    padding-bottom: 0px;
}

.info-box {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/*ログイン画面*/
.login {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    text-align: center;
}

.loginMidasi {
    width: 200px;
    font-size: 20px;
    text-align: right;
}

.loginCol {
    width: 200px;
    padding: 0;
    margin: 0;
    text-align: left;
}

.loginID {
    width: 200px;
    height: 30px;
    padding: 0px;
    margin: 10px;
    font-size: 16px;
}

.loginPass {
    width: 200px;
    height: 30px;
    padding: 0px;
    margin: 10px;
    font-size: 16px;
}

select.CB_loginKumiai {
    font-size: 16px;
    width: 200px;
    height: 30px;
    margin: 10px;
    padding: 0px;
    text-align: left;
}

select, option {
    font-size: 16px;
    height: 20px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 3px;
    text-align: left;
}

.loginButton {
    width: 200px;
    height: 57px;
    padding: 15px 10px;
    margin-top: 15px;
    margin-bottom: 20px;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.1em;
    color: #ffffff;
    background-color: #1E90FF;
    border: solid 2px #4169E1;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 4px solid #4169E1;
    border-radius: 5px;
    cursor: pointer;
}

.LoginMidasi {
    background-color: #e71a1d;
    color: white;
}

.LoginMessage {
    background-color: #f3e3e3;
    padding: 5px;
    text-align: center;
    font-size: 18px;
}

.LoginInput {
    background-color: #f7f7f7;
    padding: 7px;
}

.LoginButtonArea {
    background-color: #f7f7f7;
}

.LoginTransition {
    height: 45px;
    width: 100%;
    background-color: #e3ffff;
    position: fixed;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 5px;
}
}

/*メイン画面*/
.MainTitle {
    display: inline;
    justify-content: space-between;
}

.MitourokuMessage {
    display: flex;
    align-items: flex-end;
    vertical-align: bottom;
}

.MitourokuURL {
    bottom: 2px;
    text-decoration: none;
    color: red;
    font-size: 18px;
}

#contextmenu {
    display: none;
    position: fixed;
    padding: 3px;
    border: 1px solid #888;
    background-color: #fff;
    font-size: 16px;
    letter-spacing: 0.1em;
}

#haisyacontextmenu {
    display: none;
    position: fixed;
    padding: 3px;
    border: 1px solid #888;
    background-color: #fff;
    font-size: 16px;
    letter-spacing: 0.1em;
}

.menu {
    margin: 0;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 7px;
    padding-right: 7px;
    border-bottom: solid 1px #888888;
    cursor: pointer;
}

.ChangeStatus {
    cursor: default;
}

/*複数画面共通*/
.Adress {
    margin: 5px;
}

/*エラー用*/
hr.errorhr {
    width: 100%;
    height: 8px;
    background-color: #1b2538;
    border: 0;
}

h2.MESSAGE {
    margin-top: 50px;
    text-align: center;
    margin-bottom: 20px;
}

p.MESSAGE {
    margin-top: 5px;
    text-align: center;
    color: red;
    margin-bottom: 10px;
    font-size: 18px;
}

.ERRORMESSAGE {
    margin-top: 5px;
    text-align: center;
    color: red;
    margin-bottom: 5px;
    font-size: 16px;
}

.ErrorURL {
    letter-spacing: 0.1em;
    font-size: 20px;
    font-weight: bold;
}

table {
    width: auto;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: -1px;
    border-top: none;
}

thead th {
    position: sticky;
    z-index: 10;
    white-space: nowrap;
    box-shadow: inset -1px -1px 0 #333;
    border: none !important;
    box-sizing: border-box;
    height: 23px;
    min-height: 23px;
    max-height: 23px;
    line-height: 23px;
    box-sizing: border-box;
    top: 2px;
}

/*一行目の上側の枠線を引く*/
thead tr:first-child th {
    box-shadow: inset -1px -1px 0 #333, inset 0 1px 0 #333;
}

/*一番左の左側の枠線を引く*/
thead th:first-child {
    box-shadow: inset -1px -1px 0 #333, inset 1px 0 0 #333;
}

thead tr:nth-child(1) th {
    top: -1px;
    z-index: 20;
    box-shadow: inset -1px -1px 0 black, inset 0 2px 0 black;
}

thead tr:nth-child(1) th:last-child {
    box-shadow: inset 0 -1px 0 black, inset 0 2px 0 black !important;
}

thead tr:nth-child(2) th {
    top: 24px;
    z-index: 10;
}

thead tr:nth-child(2) th:first-child {
    box-shadow: inset -1px -1px 0 #333;
}

table.kensaku {
    min-width: 0 !important;
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}
