[class*=sidebar-dark-] {
    background-color: #2f4f4f !important;
}

[class*=sidebar-dark] .brand-link{
    border-bottom: 1px solid #008080 !important;
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active, .sidebar-light-primary .nav-sidebar>.nav-item>.nav-link.active{
    background-color: #167520 !important;
}

.main-sidebar, .main-sidebar::before{
    width:210px;
}

.btn.btn-primary,.btn.btn-dark{
    background-color:#167520 !important;
    border-color:#167520 !important;
    color:#fff !important;
}

.btn.btn-outline-primary{
    border-color:#167520 !important;
    color:#167520 !important;
}

.paginator a:hover,.paginator span.current{
    background-color:#167520;
}

.table-dark td, .table-dark th, .table-dark thead th{
    background-color: #2f4f4f
}

#content{
    a:link:not(.btn),a:visited:not(.btn),a:hover:not(.btn){
        color:#167520;
    }
    padding-bottom:50px;
}
#edit-bottom{
    z-index:10;
}


@media (min-width: 769px){
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-footer, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
        transition: margin-left .3s ease-in-out;
        margin-left: 210px;
    }
}

.layout-fixed .brand-link{
    width:100%;
    padding:7px;
}

.fixed-footer{
    padding:10px;
    position:fixed;
    left:0px;
    bottom:0px;
    width:calc(100% - 210px);
    margin-left:210px;
    background: rgba(0,0,0,0.75);
}

.fixed-footer span{
    color:#fff;
    font-weight:bold;
    line-height:2.2;
}

@media (max-width:992px) {
    .fixed-footer{
        width:calc(100%);
        margin-left:0px;
    }
}

body *{
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.preloader {
    background-color: rgba(255,255,255,0.75) !important;
}

/*
ul.treeview ul.treeview{
    display:none;
    padding-left:25px;
}

ul.treeview ul.nav-treeview{
    display:none;
    padding-left:25px;
}
*/

.sidebar-mini .main-sidebar .nav-link{
    width:auto;
}
.sidebar-mini .main-sidebar .nav-link{
    padding:.5rem 0rem .5rem 1rem;
}
.sidebar-mini .main-sidebar ul.nav-treeview .nav-link{
    padding:.2rem 0rem .2rem 2rem;
}
/*
.nav-sidebar .nav-treeview>.nav-item>.nav-link>.nav-icon{
    width:1rem;
    font-size:1rem;
}
*/
.brand-link .brand-image{
    width:90%;
    max-width:150px;
    height:auto;
    float:none;
    max-height:unset;
    margin:0px;
    box-shadow:none !important;
}

.content-wrapper > .content{
    padding:10px;
}

h3 {
    display: flex;
    font-size: 14px;
    color: #fff;
    background: #343a40;
    padding: 10px;
    justify-content: space-between;
    line-height: 1.5;
    margin-bottom:20px;
}

h3 a.btn{
    line-height:1;
    padding:3px;
}

.role0{
    color:red;
    font-weight:bold;
}

.inp-list > div.checkbox,.inp-list > label{
    display:inline-block;
}

.inp-list label {
    border: 1px solid #aaa;
    border-radius: 3px;
    padding: 5px;
    margin:0px 5px 5px 0px;
    cursor: pointer;
}
.inp-list label:hover {
    background: rgba(200,200,200,0.75);
}

.error-message{
    color:#ff6347;
}

.notes{
    font-size:12px;
    color:#666;
}

/*フォーム***********************/
#edit-form .row .row{
    align-items: baseline;
}

#edit-form label{
    font-weight:bold !important;
}

#edit-form .inp-list label{
    font-weight:normal !important;
}

.tab-pane{
    padding-top:15px;
}

.tab-pane > .row{
    border-bottom:solid 1px #ccc;
    margin-bottom:10px;
}

.select2-container{
    /*width:100% !important;*/
    /*min-width:200px;*/
    /*z-index:9;*/
}


.modal .select2-container{
    z-index:1051 !important;
}

#edit-form .select2-container{
    z-index:2 !important;
    width:100% !important;
}
.select2-container .select2-dropdown{
    min-width:250px;
}

.select2-container .select2-selection--single{
    padding:0px;
    height:38px;
}
.select2-container .select2-selection--single .select2-selection__rendered{
    line-height:38px;
}


.nav-tabs{
    border-bottom:2px solid #2f4f4f !important;
}

.nav-tabs .nav-item .nav-link{
    background:#fff !important;
    border:solid 1px #ccc;
    color:#000 !important;
    border-left:none;
    border-bottom:none;
    border-bottom:1px solid #2f4f4f !important;
}

.nav-tabs .nav-item .nav-link.active,.nav-item .nav-link:hover{
    background:#2f4f4f !important;
    color:#fff !important;
    font-weight:bold;
}

.table-responsive thead th,.table-responsive tbody th{
    background:#2f4f4f;
    color:#fff;
    font-weight:bold;
}

#edit-bottom{
    position:fixed;
    bottom:0px;
    left:0px;
    width:100%;
    background:rgba(0,0,0,0.75);
    text-align:right;
    padding:5px;
}


div.input.file {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 4px;
    max-width: 200px;
    min-width: 100px;
    padding: 5px !important;
    margin: 0px;

    border: solid 1px rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.05);
    color:#333;
}

div.input.file.selected{
    border: solid 1px rgba(46, 191, 135, 1);
    background: rgba(46, 191, 135, 1);
    color:#fff;
}



div.input.file input[type='file']{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0px;
    padding: 0px;
    opacity: 0;
}

div.input.file span{
    display: block;
    text-align: left;
    width: 100%;
    white-space: nowrap; /* 横幅のMAXに達しても改行しない */
    overflow: hidden; /* ハミ出した部分を隠す */
    text-overflow: ellipsis; /* 「…」と省略 */
    -webkit-text-overflow: ellipsis; /* Safari */
    -o-text-overflow: ellipsis; /* Opera */
}

div.tab-pane div.input.checkbox label{
    width:100%;
    background: rgba(222, 222, 222, 1);
    padding: 5px;
    justify-content: space-between;
    border-radius:5px;
}

div.tab-pane div.input.checkbox label input{
    margin-right:5px;
}

.inp-list.h3 > div.checkbox{
    width:100%;
}

.inp-list.h3 div.input.checkbox label{
    width: 100%;
    font-size: 14px;
    color: #fff;
    background: #343a40;
    padding: 10px;
    justify-content: space-between;
    line-height: 1.5;
    margin-bottom: 20px;
}



/* レスポンシブテーブル */
/*
.tab-content {
  overflow-x: hidden;
}
.tab-pane .table-responsive {
  overflow-x: auto;
}
*/


.table-responsive {
    overflow: scroll;
    max-height: calc(100vh - 220px);
    margin-bottom:25px;
}

.top-scrollbar,
.table-responsive {
    overflow: scroll;
}

.top-scrollbar {
    height: 15px !important;
}

.table-responsive::-webkit-scrollbar,
.top-scrollbar::-webkit-scrollbar{
    width: 15px;
    height:10px;
}
.table-responsive::-webkit-scrollbar-track,
.top-scrollbar::-webkit-scrollbar-track {
    background: #eee !important;
}
.table-responsive::-webkit-scrollbar-thumb,
.top-scrollbar::-webkit-scrollbar-thumb {
    background: #666 !important;
    border-radius: 10px !important;
    box-shadow: inset 0 0 0 1px #fff !important;
}



/*
.table-responsive::after {
  content: ' ';
  display: block;
  height: 100px;
  background: linear-gradient(to right, #ccc 30%, transparent 30%);
  background-size: 30px 10px;
  background-repeat: repeat-x;
  pointer-events: none;
  margin-top: -100px;
}


.table-responsive::-webkit-scrollbar {
  height: 10px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-track {
  background: #eee;
}
*/

.table-responsive thead th {
    /* 縦スクロール時に固定する */
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    /* tbody内のセルより手前に表示する */
    z-index: 5;
}


.table-responsive tbody th{
    /* 横スクロール時に固定する */
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    /* tbody内のセルより手前に表示する */
    z-index: 3;
}

/* ページング */
.paginator {
    text-align: center;
    font-size:12px;
}

.paginator a{
    display: inline-block;
    color: #fff !important;
    background-color: #A1A3A6;
    text-decoration: none;
    text-align: center;
    line-height: 30px;
    width:30px;
    height: 30px;
    margin: 0px 3px;
    /*
    transition: .2s ease-in-out;
    */
    white-space: nowrap;
    -webkit-border-radius: 50%;
    border-radius: 50%;
}

.paginator a:hover{
    background-color:#434343;
    color: #fff;
}

.paginator span.current {
    display: inline-block;
    background-color:#434343;
    color: #fff;
    text-decoration: none;
    text-align: center;
    line-height: 30px;
    width:30px;
    height: 30px;
    margin: 0px 3px;
    /*
    transition: .2s ease-in-out;
    */
    white-space: nowrap;
    border-radius: 50%;
}

.paginator span.next a,.paginator span.last a,.paginator span.first a,.paginator span.prev a{
    border-radius:3px;
    width:auto;
    padding:0px 5px;
}

.paginator a:link,.paginator a:active,.paginator a:visited {
    text-decoration : none !important;
}

.paginator a[href]:hover {
    text-decoration : none !important;
}


.fixed-footer .form-control{
    width:100px;
}

.modal tr.hidden{
    display: none;
}


.acc-modal-table{
    table-layout: fixed;
}
.acc-modal-table td{
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

















.ui-autocomplete{
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
}

@media (max-width: 1366px) {
    body *{
        font-size: 0.8rem !important;
    }

    .mt-3, .my-3 {
        margin-top: .5rem !important;
    }
    .mb-3{
        margin-bottom: .5rem !important;
    }

    .form-group {
        margin-bottom: .5rem !important;
    }

    .nav-link {
        display: block;
        padding: .25rem 1rem;
    }

    .btn{
        padding: .25rem .5rem !important;
    }

    .btn-sm{
        padding: .15rem .3rem !important;
    }

    .form-control,.input-group-text{
        height: auto !important;
        padding: .2rem 0.2rem !important;
    }

    .select2-container .select2-selection--single{
        padding:0px;
        height:28px;
    }
    .select2-container .select2-selection--single .select2-selection__rendered{
        line-height:28px;
    }

    .paginator a{
        line-height: 25px;
        width:25px;
        height: 25px;
        margin: 0px 3px;
    }

    .paginator span.current {
        line-height: 25px;
        width:25px;
        height: 25px;
        margin: 0px 3px;
    }

    .paginator span.next a,.paginator span.last a,.paginator span.first a,.paginator span.prev a{
        border-radius:3px;
        width:auto;
        padding:0px 5px;
    }

    nav.main-header h1{
        height:24px !important;
        line-height:24px !important;
    }

    nav.main-header a.nav-link{
        height: 25px !important;
        padding: 3px 10px !important;
    }





    .table td, .table th {
        padding: .4rem !important;
    }

    h3 {
        display: flex;
        font-size: 1rem;
        padding: 5px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .inp-list label {
        padding: 0px 3px 0px 0px;
        margin: 0px 3px 3px 0px;
    }

}

.read-select2 .select2-selection{
    background-color: #eee !important;
    pointer-events:none  !important;
}


@page {
    size: A4 landscape; /*portrait*/
    margin: 0mm;
}

@media print {
    *{
        font-size: 0.8rem !important;
        color:#000 !important;
    }

    #content{
        padding:0px !important;
    }

    /* 行は常にflexで回す（v3はfloatだった想定でも安全に上書き） */
    .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }


    /* どこにあっても .col-* を拾う（祖先に .row を要求しない） */
    [class*="col-"] {
        float: none !important;
        display: block !important;
        box-sizing: border-box !important;
    }


    /* ★ 12分割の幅マップ（祖先縛りなしで確実に当てる） */
    .col-5,  .col-sm-5,  .col-md-5,  .col-lg-5,  .col-xl-5,  .col-xxl-5,.col-xs-5, .col-s-5, .col-m-5, .col-l-5  { width:41.6667%  !important; flex:0 0 41.6667% !important; max-width:41.6667% !important; }
    .col-7,  .col-sm-7,  .col-md-7,  .col-lg-7,  .col-xl-7,  .col-xxl-7,.col-xs-7, .col-s-7, .col-m-7, .col-l-7  { width:58.3333%  !important; flex:0 0 58.3333% !important; max-width:58.3333% !important; }
    .col-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xl-11, .col-xxl-11,.col-xs-11, .col-s-11, .col-m-11, .col-l-11 { width:91.6667%  !important; flex:0 0 91.6667% !important; max-width:91.6667% !important; }
    .col-12, .col-sm-12, .col-md-12, .col-lg-12, .col-xl-12, .col-xxl-12,.col-xs-12, .col-s-12, .col-m-12, .col-l-12 { width:100%      !important; flex:0 0 100%     !important; max-width:100%     !important; }
    .col-2,  .col-sm-2,  .col-md-2,  .col-lg-2,  .col-xl-2,  .col-xxl-2,.col-xs-2, .col-s-2, .col-m-2, .col-l-2  { width:16.6667%  !important; flex:0 0 16.6667% !important; max-width:16.6667% !important; }
    .col-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xl-10, .col-xxl-10,.col-xs-10, .col-s-10, .col-m-10, .col-l-10 { width:83.3333%  !important; flex:0 0 83.3333% !important; max-width:83.3333% !important; }
    .col-6,  .col-sm-6,  .col-md-6,  .col-lg-6,  .col-xl-6,  .col-xxl-6,.col-xs-6, .col-s-6, .col-m-6, .col-l-6  { width:50%       !important; flex:0 0 50%      !important; max-width:50%      !important; }
    .col-4,  .col-sm-4,  .col-md-4,  .col-lg-4,  .col-xl-4,  .col-xxl-4,.col-xs-4, .col-s-4, .col-m-4, .col-l-4  { width:33.3333%  !important; flex:0 0 33.3333% !important; max-width:33.3333% !important; }
    .col-8,  .col-sm-8,  .col-md-8,  .col-lg-8,  .col-xl-8,  .col-xxl-8,.col-xs-8, .col-s-8, .col-m-8, .col-l-8  { width:66.6667%  !important; flex:0 0 66.6667% !important; max-width:66.6667% !important; }
    .col-3,  .col-sm-3,  .col-md-3,  .col-lg-3,  .col-xl-3,  .col-xxl-3,.col-xs-3, .col-s-3, .col-m-3, .col-l-3  { width:25%       !important; flex:0 0 25%      !important; max-width:25%      !important; }
    .col-9,  .col-sm-9,  .col-md-9,  .col-lg-9,  .col-xl-9,  .col-xxl-9,.col-xs-9, .col-s-9, .col-m-9, .col-l-9  { width:75%       !important; flex:0 0 75%      !important; max-width:75%      !important; }
    .col-1,  .col-sm-1,  .col-md-1,  .col-lg-1,  .col-xl-1,  .col-xxl-1,.col-xs-1, .col-s-1, .col-m-1, .col-l-1  { width: 8.3333%  !important; flex:0 0  8.3333% !important; max-width: 8.3333% !important; }

    .table-responsive {
        overflow: auto;
        max-height: max-content;
    }

    /*,div.input.checkbox*/
    .no-print,.search-form,.content-menu-area,#edit-bottom,#nav-tabs,hr{
        display:none !important;
    }

    .form-group,.mb-1,.mb-2,.mb-3,.mb-4,.mb-5,h1,h2,h3,h4,h5{
        margin-bottom:2px !important;
    }

    #page-vehicles-edit{
        margin-top:50px !important;
    }
}