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;
}
.menuTable{
    margin:auto;
    width: 700px;
    overflow-y: hidden;
}
.bgWheat{
    color: black;
    background-color: #FFF2CC;
}
.righttext {
    width: 64%;
}
.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;
}
.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;
}
.k1TableTitleBG{
    background-color: #44546A !important;
    color: white !important;
    position: sticky;
    top: 0;
}
.allID{
    width:10% !important;
}
 .k1RegTableTitleBG{
     color: black;
    background-color:#FCE4D6;
 }
.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: normal;
    background-color: #fff;
    color: black;
}
input[type=text]:focus {
    border: 1px solid #ced4da;
}
.h100px{
    height: 100px;
}
.required:after {
    content:" *";
    color: red;
}
.container-fluid-min-height{
    min-height: 700px;
}

/* Date Picker */
#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;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* textarea:read-only */
textarea:read-only {
    background-color: #fff !important;
}

/* fixed navbar and footer */
.container{
    width: 100%;
    z-index: 9;
}
.fixed-header, .fixed-footer{
    width: 100%;
    position: fixed;
    background-color: #ffffff;
    z-index: 1000;
    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: 105px;}
}
@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;}
}

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

.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;
}

.authority-options {
    display: flex;
    flex-wrap: wrap;
}

.authority-label {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
    /* Added padding for custom radio */
}

.authority-label input[type="radio"] {
    display: none;
}

.authority-label .custom-radio {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 1px solid #000;
    border-radius: 3px;
    background-color: #fff;
    box-sizing: border-box;
}
.k1Btn {
    width: 125px !important;
    height: 38px !important;
}
.authority-label .custom-radio::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 1px 1px 0;
    display: none;
    top: 1px;
    left: 5px;
    transform: rotate(45deg);
}

.authority-label input[type="radio"]:checked+.custom-radio {
    background-color: #FFF;
    border-color: #000;
}

.authority-label input[type="radio"]:checked+.custom-radio::after {
    display: block;
}
table>tbody>tr>td.td-hide, table>thead>tr>th.td-hide {
    display: none !important;
}

tr.dark-silver td:not(:first-child) {
    background-color: #D0CECE;
}
tr.new-plan td:not(:first-child), tr.new-campaign td:not(:first-child) {
    background-color: yellow;
}
#ringi-registration-modal {
    .modal-dialog {
        display: flex;
        justify-content: center;
    }
    .modal-content {
        width: 400px;
    }
    .modal-header {
        display: flex;
        justify-content: right;
    }
    .msg-div {
        max-height: 80vh;
        overflow: auto;
    }
}

.collapsible {
    cursor: pointer;
    padding: 5px;
    width: 166px;
    border: none;
    text-align: center;
    outline: none;
    font-size: 16px;
    border: 1px solid #dee2e6;
}
.content-div {
    padding: 0px;
    max-height: auto;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    min-height: 100%;
}
.optional-input {
    display: none;
}

.error{
    border:1px solid red !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;
        }
    }
}

/*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;
}

.table td, .table th {
    padding: 0.5rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

label {
    margin-bottom: 0.25rem;
}

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

#notification_letter {
    padding: 0;
}

legend {
    margin-bottom: 0;
}

#ringiSearchForm .form-group {
    margin-bottom: 0.25rem;
}

.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;
}