html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
body {
    font-family: "Yu Gothic" !important;
    /*font-family: "ＭＳ Ｐゴシック" !important;*/
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background: white;
}
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background: white;
}
.main {
    position: relative;
    top: 0;
    padding-top: calc(var(--header-height));
    padding-bottom: calc(var(--footer-height));
    overflow-y: auto;
    height: 100vh;
}
/* JS will update these */
:root {
    --header-height: 70px;
    --footer-height: 60px;
}
.login-box{
    margin: auto;
    width: 375px !important;
}

.upper-table{
    background-color: #44546A !important;
}

.menuTable{
    margin:auto;
    width: 700px;
    overflow-y: hidden;
}
.bgWheat{
    color: black;
    background-color: #FFF2CC;
}
.underline {
    height: 0px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #0A0A0A;
}
.button-primary{
    color: #0e84b5;
    border-radius: 10%;
    background-color: #5cb85c;
}
.bg-light-sky {
    background-color: #c5d6f2;
}
.bg-light-silver{
    background-color: #f4f6f9;
}
.bg-dark-silver{
    background-color: #D0CECE;
}
.contractor-form{
    width: 1000px;
}
.errormsg {
    color: red;
    background-color: yellow;
    display: none;
}
/*customization Registration Start Page */
.card-body {
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 0px;
    padding: 0.25rem 0.5rem;
}

/*.card-header {*/
/*    border-bottom: 1rem;*/
/*}*/
.card {
    box-shadow: 0 0 1px rgb(0 0 0 / 13%), 0 1px 3px rgb(0 0 0 / 20%);
    /* margin-bottom: 0rem; */
}
.card-header {
    padding: 0.5rem 0.35rem;
}
.card-header>.card-tools {
    float: right;
    margin-right: 0.375rem;
}
.k1Btn{
    width: 140px !important;
    height: 38px !important;
}
.mat-1{
    margin-top: 5px !important;
}
.k1Btn2{
    color: black !important;
    background-color: #D0CECE;
    outline: none !important;
    border-color: rgba(100, 100, 100, 0);
}
.k1Btn2:hover{
    color: black !important;
    background-color: #D0CECE !important;
    outline: none !important;
    border-color: rgba(100, 100, 100, 0);
}
.k1Btn2:focus, .k1Btn2:active:focus, .k1Btn2.active:focus{
    color: black !important;
    background-color: #D0CECE !important;
    outline: none !important;
    border-color: rgba(100, 100, 100, 0);
}
.k1Btn2.disabled, .k1Btn2:disabled{
    border-color: rgba(100, 100, 100, 0);
    background-color: #D0CECE;
}
.k1Btn {
    width: 125px !important;
    height: 38px !important;
}
.k1TableTitleBG{
    background-color: #44546A !important;
    color: white !important;
    position: sticky;
    top: 0;
    min-height: 100px;
    text-align: left;
    z-index: 101;
}
 .k1RegTableTitleBG{
    color: black;
    background-color:#FCE4D6;
 }
 .light-blue {
    color: black;
    background-color:#D9EAFB;
 }
/*header fixed code start */

.fixed_header {
    width: 400px;
    table-layout: fixed;
    border-collapse: collapse;
}
.fixed_header tbody {
    display: block;
    width: 100%;
    overflow: auto;
    height: 225px;
}
.fixed_header thead tr {
    display: block;
}
.fixed_header thead {
    background: black;
    color: #fff;
}
.fixed_header th,
.fixed_header td {
    padding: 2px;
    text-align: center!important;
    width: 220px;
}
.k1tabledata{
    text-align: center;
}
/*header fixed code end */
.custom-file-input{
    opacity: 1 !important;
}
.custom-file-input::-webkit-file-upload-button {
    visibility: hidden;
    opacity: 1 !important;

}
.custom-file-input::before {
    content: 'ファイルを選択';
    display: inline-block;
    background: #D0CECE;
    border: 1px solid #999;
    border-radius: 3px;
    padding: 5px 8px;
    outline: none;
    white-space: nowrap;
    -webkit-user-select: none;
    cursor: pointer;
    text-shadow: 1px 1px #fff;
    font-weight: 700;
    font-size: 10pt;
}
.custom-file-input:hover::before {
    border-color: black;
}
.custom-file-input:active::before {
    background: -webkit-linear-gradient(top, #e3e3e3, #f9f9f9);
}
input[type="text"]:read-only {
    cursor: default;
    background-color: #fff;
    color: black;
}
input[type=text]:focus {
    border: 1px solid #ced4da;
}
table.fixed-td {
    table-layout: fixed;
    width: 400px;
    border-collapse: collapse;
}
table.fixed-td>thead>tr>th, table.fixed-td>tbody>tr>td {
    /* display: inline-block; */
    width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
    align-content: center;
    span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

#contract-history-modal #contractHistoryTable th,
#contract-history-modal #contractHistoryTable td {
    vertical-align: top !important;
    padding: 8px !important;
    white-space: normal !important;
    overflow: hidden !important;
}

#contract-history-modal #contractHistoryTable td .td-wrapper {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    line-height: 1.5em !important;
    max-height: 3em !important;
}

#contractHistoryTable th:nth-child(1), #contractHistoryTable td:nth-child(1) { width: 150px; }
#contractHistoryTable th:nth-child(2), #contractHistoryTable td:nth-child(2) { width: 150px; }
#contractHistoryTable th:nth-child(3), #contractHistoryTable td:nth-child(3) { width: 250px; }
#contractHistoryTable th:nth-child(4), #contractHistoryTable td:nth-child(4) { width: 450px; }
#contractHistoryTable th:nth-child(5), #contractHistoryTable td:nth-child(5) { width: 450px; }
#contractHistoryTable th:nth-child(6), #contractHistoryTable td:nth-child(6) { width: 150px; }

.h100px{
    height: 100px;
}
.error{
    border:1px solid red;
}
.required:after {
    content:" *";
    color: red;
}
.container-fluid-min-height{
    min-height: 700px;
}

.billing-detail-blue{
    background-color: #D9E1F2 !important;
}

.billing-detail-invoice{
    background-color: #FFF2CC;
}

.billing-detail-tb-header{
    background-color: #FCE4D6;
    color: #000;
}

.span-field-140{
    width: 140px;
}

fieldset{
    border: 1px solid #666;
}

legend{
    margin-bottom: 0px !important;
}

.billing-detail-card{
    margin-bottom: 0px;
}

a.disable-link {
    pointer-events: none;
    cursor: default;
}

#ui-datepicker-div {
    font-size: 14px;
}

.input-group>.custom-select:not(:first-child), .input-group>.form-control:not(:first-child) {
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
}
.login-card-body .input-group .form-control {
    border: 1px solid #ced4da;
}

/* fixed navbar and footer */
.container{
    width: 100%;
    z-index: 9;
}
.fixed-header, .fixed-footer{
    width: 100%;
    position: fixed;
    background-color: #ffffff;
    z-index: 10;
    left: 0;
}
.fixed-header{
    top: 0;
}
.fixed-footer{
    bottom: 0;
}

@media screen and (min-width: 320px) and (max-width: 389px) {
  .clear-header { clear: both; height: 55px;}
}
@media screen and (min-width: 390px) and (max-width: 767px) {
  .clear-header { clear: both; height: 75px;}
}
@media screen and (min-width: 320px) and (max-width: 575px) {
  .clear-header-filter { clear: both; height: 90px;}
}
@media screen and (min-width: 576px) {
  .clear-header-filter { clear: both; height: 15px;}
}

@media screen and (min-width: 320px) and (max-width: 575px) {
  .clear-footer { clear: both; height: 85px;}
}
@media screen and (min-width: 576px) {
  .clear-footer { clear: both; height: 65px;}
}

@media screen and (min-width: 320px) and (max-width: 356px) {
  .clear-footer-2 { clear: both; height: 175px;}
}
@media screen and (min-width: 357px) and (max-width: 517px) {
  .clear-footer-2 { clear: both; height: 125px;}
}
@media screen and (min-width: 518px) and (max-width: 767px) {
  .clear-footer-2 { clear: both; height: 85px;}
}
@media screen and (min-width: 768px) {
  .clear-footer-2 { clear: both; height: 65px;}
}

.wrapper {
    overflow-y: hidden;
}
@media screen and (max-width: 439px) {
  .small-text {
    font-size: 1.8rem;
  }
}
@media screen and (max-width: 589px) {
  .small-text-2 {
    font-size: 1.3rem;
  }
}
/* fixed navbar and footer */

/* Product Remark Div */
.remark_div {
    width: 100%;
    height: 86px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    color: #495057;
    font-size: 1rem;
    font-weight: 400;
}

.agency_product_remark_div, .pack_product_remark_div {
    padding: .375rem .75rem;
}

.border-top {
    border-top: 1px solid #ced4da;
}

table>tbody>tr.sky-blue-row{
    background-color: #bdd6ee;
}
table>tbody>tr.green-row{
    background-color: #92d050;
}
table>tbody>tr.orange-row{
    background-color: #ffc000;
}
table>tbody>tr.peach-row{
    background-color: #fbe4d5;
}
table>tbody>tr.blue-row{
    background-color: #0070c0;
}
table > tbody > tr.blue-row > td > div:has(a) {
  color: #FFF;
}
table>tbody>tr.blue-row>td>a {
    COLOR: #FFF;
}
table>tbody>tr.yellow-row{
    background-color: #ffff00;
}
table>tbody>tr.white-row{
    background-color: #ffffff;
}
table>tbody>tr.gray-row{
    background-color: #bfbfbf;
}

.collapsible {
    color: #007bff !important;
    cursor: pointer;
    padding: 5px;
    width: 128px;
    border: none;
    text-align: center;
    outline: none;
    font-size: 16px;
    text-decoration: underline;
    border: 1px solid #dee2e6!important;
}

.collapsible.active, .collapsible:hover {
    text-decoration: underline;
}

.content-div {
    padding: 0px;
    max-height: auto;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    min-height: 100%;
}

/* Style DataTables pagination buttons */
.dataTables_paginate .paginate_button {
    padding: 5px 10px;
    margin: 2px;
    background-color: #f5f5f5;
    color: #333;
    cursor: pointer;
}

/* Style active pagination button */
.dataTables_paginate .paginate_button.current {
    /* background-color: #007bff; */
    color: #333 !important;
    /* border: 1px solid #007bff; */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #dcdcdc));
    background-color: linear-gradient(to bottom, #fff 0%, #dcdcdc 100%);
    border: 1px solid #979797;
}

/* Style disabled pagination button */
.dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

table.dataTable.no-footer {
    border-bottom: none;
}

.rowPerPage {
    margin-right: 5px;
}
@media only screen and (min-width: 768px) {
  .pagination {
    float: right;
    justify-content: end;
  }
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
}

.pagination li {
    margin: 0 5px;
    padding: 1px 5px;
    margin: 0 2px;
    background-color: #f5f5f5;
    color: #333;
    cursor: pointer;
}

.pagination li.disabled {
    margin: 0 5px;
    padding: 1px 5px;
    background-color: inherit;
    color: #333;
    cursor: auto;
}

.pagination li a {
    color: inherit;
}

.pagination li.active a {
    pointer-events: none;
    cursor: default;
}

.pagination li.active {
    color: #333 !important;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #dcdcdc));
    background-color: linear-gradient(to bottom, #fff 0%, #dcdcdc 100%);
    border: 1px solid #979797
}

.card-list {
    display: flex;
    justify-content: space-between;
}

.table-length-pagination-container-contract,
.table-length-pagination-container-contract-history,
.table-length-pagination-container-rejection-reason,
.table-length-pagination-container-request-note {
    display: flex;
    justify-content: space-between;
}

.td-hide {
    display: none;
}

.flex-td span,
.flex-td button {
    float: left;
    clear: left;
    width: 100%;
}
.flex-td a button {
    margin-bottom: 4px!important;
}

.ellipsis-btn {
    width: auto!important;
}

.shop-name-legend {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dee2e6!important;
    .collapsible {
        border: none !important;
    }
}

.copy-shop-name-btn {
    padding: 4px 8px;
    font-size: 14px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.copy-shop-name-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.copy-message {
    position: absolute;
    bottom: -32px;
    left: 0;
    background: rgba(17, 17, 17, .8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
}

.copy-message.show {
    opacity: 1;
}

.contractHistory {
    display: flex;
    justify-content: end;
    gap: 5px;
}
.card-header-flex {
    display: flex!important;
    .card-tools {
        margin-left: 5px!important;
    }
}

.remove-td {
    background-color: #A6A4A4;
    a {
        color: #000;
    }
}

.card-body.p-0 .table tbody>tr>td:first-of-type {
    padding-left: 1rem;
}
.card-body.p-0 .table tbody>tr>td:last-of-type {
    padding-right: 1rem;
}
.flex-td-button {
    width: auto!important;
}

.confirm-btn {
    width: 175px!important;
}

@media only screen and (max-width: 415px) {
    .col-md-8.text-right.pt-2 {
        .k1Btn {
            width: 90px !important;
            font-size: 12px !important;
        }
    }
    .confirm-btn {
        margin-bottom: 5px !important;
    }
}
@media only screen and (max-width: 640px) {
    .input-group.input-group-sm.text-left {
        .k1Btn {
            width: 100px !important;
            font-size: 12px !important;
            margin-bottom: 5px;
        }
    }
}
@media only screen and (max-width: 551px) {
    .card-title {
        width: -webkit-fill-available;
    }
}

.flex-td-button {
    width: 160px !important;
}

textarea[readonly]:focus {
    border: 1px solid #ced4da;
    outline: none;
}

#status-update-modal, #general_confirmation {
    .modal-dialog {
        display: flex;
        justify-content: center;
    }
    .modal-content {
        width: 400px;
    }
    .modal-header {
        display: flex;
        justify-content: right;
    }
}

.table td, .table th {
    padding: 0.5rem;
    padding-left: 1rem !important;
}

.form-group {
    margin-bottom: 6px;
}

label {
    margin-bottom: 0.25rem;
}

.form-control {
    padding: 0 0.75rem;
}

.btn3d {
    position: relative;
    top: -4px;
    border: 0;
    transition: all 40ms linear;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
}

.btn3d:active:focus,
.btn3d:focus:hover,
.btn3d:focus {
    -moz-outline-style: none;
    outline: medium none;
}

.btn3d:hover {
    -moz-outline-style: none;
    outline: medium none;
}

.btn3d:active,
.btn3d.active {
    top: 2px;
}

.btn3d-wrapper.remove-td {
    background: transparent !important;
    padding: 0 !important;
}
.btn3d-wrapper.remove-td > a {
    color: #fff !important;
}

.btn3d.btn-default {
    box-shadow: 0 0 0 1px #ebebeb inset, 0 0 0 2px rgba(255, 255, 255, 0.10) inset, 0 5px 0 0 #BEBEBE, 0 5px 5px 1px rgba(0, 0, 0, .2) !important;
    background-color: #f9f9f9 !important;
    border-color: #f9f9f9 !important;
    color: #666666;
}

.btn3d.btn-default:hover,
.btn3d.btn-default.hover {
    background-color: #ebebeb !important;
    border-color: #ebebeb !important;
}

.btn3d.btn-default:active,
.btn3d.btn-default.active {
    box-shadow: 0 0 0 1px #ebebeb inset, 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 1px 3px 1px rgba(0, 0, 0, .1) !important;
    background-color: #f9f9f9 !important;
    border-color: #f9f9f9 !important;
}

.btn3d.btn-primary {
    box-shadow: 0 0 0 1px #4274D7 inset, 0 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 5px 0 0 #4D5BBE, 0 5px 5px 1px rgba(0, 0, 0, 0.5) !important;
    background-color: #417fbd !important;
    border-color: #417fbd !important;
}

.btn3d.btn-primary:hover,
.btn3d.btn-primary.hover {
    background-color: #4274D7 !important;
    border-color: #4274D7 !important;
}

.btn3d.btn-primary:active,
.btn3d.btn-primary.active {
    box-shadow: 0 0 0 1px #4274D7 inset, 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 1px 3px 1px rgba(0, 0, 0, 0.3) !important;
    background-color: #417fbd !important;
    border-color: #417fbd !important;
}

.btn3d.btn-success {
    box-shadow: 0 0 0 1px #78d739 inset, 0 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 5px 0 0 #5eb924, 0 5px 5px 1px rgba(0, 0, 0, 0.5) !important;
    background-color: #31c300 !important;
    border-color: #31c300 !important;
    color: #fff !important;
}

.btn3d.btn-success:hover,
.btn3d.btn-success.hover {
    background-color: #78d739 !important;
    border-color: #78d739 !important;
}

.btn3d.btn-success:active,
.btn3d.btn-success.active {
    box-shadow: 0 0 0 1px #30cd00 inset, 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 1px 3px 1px rgba(0, 0, 0, 0.3) !important;
    background-color: #31c300 !important;
    border-color: #31c300 !important;
}

.btn3d.btn-info {
    box-shadow: 0 0 0 1px #00a5c3 inset, 0 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 5px 0 0 #348FD2, 0 5px 5px 1px rgba(0, 0, 0, 0.5) !important;
    background-color: #39B3D7 !important;
    border-color: #39B3D7 !important;
}

.btn3d.btn-info:hover,
.btn3d.btn-info.hover {
    background-color: #00a5c3 !important;
    border-color: #00a5c3 !important;
}

.btn3d.btn-info:active,
.btn3d.btn-info.active {
    box-shadow: 0 0 0 1px #00a5c3 inset, 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 1px 3px 1px rgba(0, 0, 0, 0.3) !important;
    background-color: #39B3D7 !important;
    border-color: #39B3D7 !important;
}

.btn3d.btn-danger {
    box-shadow: 0 0 0 1px #b93802 inset, 0 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 5px 0 0 #AA0000, 0 5px 5px 1px rgba(0, 0, 0, 0.5) !important;
    background-color: #D73814 !important;
    border-color: #D73814 !important;
}

.btn3d.btn-danger.remove-td {
    box-shadow: none !important;
    display: block !important;
    border-radius: 0 !important;
    transition: none !important;
    top: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-top: 1px solid #dee2e6 !important;
}

.btn3d.btn-danger.remove-td > a {
    color: #fff !important;
}

.btn3d.btn-danger:hover,
.btn3d.btn-danger.hover {
    background-color: #b93802 !important;
    border-color: #b93802 !important;
}

.btn3d.btn-danger.remove-td:hover,
.btn3d.btn-danger.remove-td.hover {
    transform: none !important;
}

.btn3d.btn-danger:active,
.btn3d.btn-danger.active {
    box-shadow: 0 0 0 1px #b93802 inset, 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 1px 3px 1px rgba(0, 0, 0, 0.3) !important;
    background-color: #D73814 !important;
    border-color: #D73814 !important;
}