@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');
*{
    position: relative;
}

body,
input,
select,
textarea,
button{
    position: relative;
    font-size:14px;
    font-family: 'Noto Sans JP', sans-serif;
    box-sizing:border-box;
    position: relative;
}

/* keycolor #2D54B7 */
.message{
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    margin: auto;
    max-width: 1200px;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

.success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.success:before {
    font-family: "Font Awesome 6 free";
    font-weight: 900;
    content:'\f058'
}

.warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.warning:before {
    font-family: "Font Awesome 6 free";
    font-weight: 900;
    content:'\f06a'
}

.error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.error:before {
    font-family: "Font Awesome 6 free";
    font-weight: 900;
    content: "\f057"
}


/* エラー吹き出し */
[class*="_error"]{
    position: absolute;
    top: 20%;
    color: #f10;
    border: 1px solid #f10;
    background: #fff;
    z-index: 999;
    padding: 0.2em;
    border-radius: 4px;
    white-space: nowrap;
}

#top{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}

#top header{
    width:100%;
}

h1 a{
    display:block;
    width:300px;
    height: 50px;
    text-indent: -9999px;
    background-image: url(../img/genka_logo.svg);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    overflow: hidden;
}

#top h1{
    width:320px;
    height: 50px;
    text-indent: -9999px;
    background-image: url(../img/genka_logo.svg);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    overflow: hidden;

    margin:auto;
    height: 90px;
    background-position: center;
}

.content_wrap{
    margin:auto;
}

#top .content_wrap{
    max-width:500px;
}

h3{
    padding: 6px 13px;
    font-size: 130%;
    border-left: 8px solid #2D54B7;
}

h4{
    position: relative;
    padding: 4.5px 22px;
    font-size: 110%;
}

h4::before {
    position: absolute;
    content: '';
    height: 6px;
    width: 6px;
    background-color: #2D54B7;
    border-radius: 50%;
    top: 12px;
    left: 0;
}

.dropdown-menu {
    overflow:auto;
    max-height: 250px;
    min-width: 100%;
}

.ui-autocomplete{
    z-index:9999;
}

.fs-xs{
    font-size:.7rem !important;
}

.fs-xxs{
    font-size:.6rem !important;
}

.fs-s{
    font-size:.8rem !important;
}

.red{
    color:#f10;
}

th{
    white-space: nowrap;
}

table td a{
    word-break: break-all;
}

.form-floating > .form-control:not(:-moz-placeholder-shown) ~ label {
    opacity: 1;
    color: rgba(0, 0, 0, 0.5);
    background-color: #fff;
    height: auto;
    padding: 0px;
    padding: 0px 0px 0px 10px;
    width: 100%;
    transform: scale(0.9) translateY(0.045rem) translateX(0.1rem);
    border-radius: 5px 0 0 0;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: 1;
    color: rgba(0, 0, 0, 0.5);
    background-color: #fff;
    height: auto;
    padding: 0px 0px 0px 10px;
    width: 100%;
    transform: scale(0.9) translateY(0.045rem) translateX(0.1rem);
    border-radius: 5px 0 0 0;
}
.form-floating > .form-control:-webkit-autofill ~ label {
    opacity: 1;
    color: rgba(0, 0, 0, 0.5);
    background-color: #fff;
    height: auto;
    padding: 0px;
    padding: 0px 0px 0px 10px;
    width: 100%;
    transform: scale(0.9) translateY(0.045rem) translateX(0.1rem);
    border-radius: 5px 0 0 0;
}


.pagination {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.pagination ul{
    margin-bottom:0;
}
.pagination li{
  display: inline-block;
}

.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
}
.pagination li.active a {
    border-radius: 0.2rem;
  background-color: #0d6efd;
  color: white;
}

.pagination li.prev.disabled{
    display: none;
}

.pagination li.next.disabled{
    display: none;
}

.pagination a:hover:not(.active) {background-color: #ddd;}


div::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  div::-webkit-scrollbar-track {
     background: #eee;
  }

  div::-webkit-scrollbar-thumb {
    background: #c7d6ed;
    border-radius:5px;
  }

table tbody tr:nth-child(2n){
    background:#f5f5f5;
}

/* nav toggle */
/* ハンバーガーメニューのアイコン */
.navbar-toggler{
    border:0;
    height: 60px;
    width: 60px;
}

.navbar-toggler:focus{
    border:0;
    box-shadow:none;
}

.navbar-toggler span,
.navbar-toggler span:before,
.navbar-toggler span:after {
  content: '';
  display: block;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  background: #333;
  transition: 0.5s;
  position: absolute;
}

/* 三本線の一番上の棒の位置調整 */
.navbar-toggler span:before {
  bottom: 8px;
}

/* 三本線の一番下の棒の位置調整 */
.navbar-toggler span:after {
  top: 8px;
}

/* アイコンがクリックされたら真ん中の線を透明にする */
.navbar-toggler:not(.collapsed) span {
  background: rgba(255, 255, 255, 0);
}

/* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
.navbar-toggler:not(.collapsed) span::before {
  bottom: 0;
  transform: rotate(45deg);
}

.navbar-toggler:not(.collapsed) span::after {
    top: 0;
    transform: rotate(-45deg);
  }

.fa-solid{
    color:#0d6efd;
}

.fa-copy{
    color:unset;
}

[type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled) {
    cursor: pointer;
}

.btn-clipboard {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 10;
    display: block;
    padding: .25rem .5rem;
    font-size: .65em;
    color: #ccc;
    background-color: #fff;
    border: 1px solid;
    border-radius: .25rem;
}

.btn-clipboard:hover, .btn-clipboard:focus {
    color: #fff;
    background-color: #0d6efd;
}

.btn-clipboard{
    display: none;
}

#wrapper{
    display:none;
	margin: 0px auto 0px auto;
	width: 320px; height: auto;
}

#msg{
	margin: 0px; padding: 10px;
	background-color: lightgray;
	text-align: center;
}

#canvas{
	width: 100%; height: auto;
	background-color: silver;
}

#qr_modal{
    display:none;
    position:fixed;
    margin: auto;
    background:rgba(0, 0, 0, 0.25);
    width:100vw;
    height:100vh;
    top:0;
    left: 0;;
}

#qr_wrap{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width:100%;
    height: 100%;
}

#qr_modal #view_qr,
#download_qr{
    margin-bottom:1em;
}

#qr_modal #make_qr{
    display:none;
}


#qr_modal button{
    background:#fff;
}

.notice_icon{
    position: fixed;
    margin:1.25em;
    top:0;
    right:0;
    cursor: pointer;
    z-index: 1020;
}

.tips{
    position: fixed;
    margin:1.25em;
    font-size:80%;
    bottom:0;
    right:0;
    cursor: pointer;
    z-index: 1020;
}
.tips section{
    background:rgba(255,255,255,.9)
}

@media screen and (max-width: 991px) {
    .notice_icon{
        top:auto;
        bottom:0;
    }
}

.swing {
    transform-origin: top center;
    animation: swing linear 1s forwards;
}

@keyframes swing {
0% { transform: rotate(0deg); }
10% { transform: rotate(-10deg); }
20% { transform: rotate(0deg); }
30% { transform: rotate(10deg); }
40% { transform: rotate(0deg); }
50% { transform: rotate(-10deg); }
60% { transform: rotate(0deg); }
70% { transform: rotate(10deg); }
80% { transform: rotate(0deg); }
90% { transform: rotate(-10deg); }
100% { transform: rotate(0deg); }
}

.more,
.close{
    position: absolute;
    margin:auto;
    bottom:.5em;
    right:.5em;
    background:#fff;
    z-index: 20;
}

.overlay{
    position: absolute;
    display: block;
    margin:auto;
    width: 100%;
    height:6em;
    background: rgb(255,255,255);
    background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 80%);
    bottom:0;
    left:0;
    z-index: 10;
}

body main.m-3{
    margin-bottom:200px !important;
}


input:read-only:focus, textarea:read-only:focus {
    outline: 0 !important;
    cursor: default;
  }


@media screen and (max-width: 600px) {
    .accordion-button{
        font-size:85%;
    }

    main > section.p-3{
        padding:0 !important;
    }
    main table {
        width:100%
      }
      main table th{
        display: block;
        border-width: 0 1px 1px !important;
    }
    main table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
      }

      main table tr {
        display: block;
        margin-bottom: .625em;
      }

      main table td {
        display: block;
        font-size: .8em;
        min-height:32px;
        position: relative;
        border-width: 0 1px 1px !important;
        position: relative;
        padding: .625em .625em .625em 7em !important;
        word-break: break-all;
      }

      main table td > span{
        width:auto !important;
      }

      /*
      .Customers.detail .tab-content table tbody tr td:first-of-type,
      .DailyReports table tbody tr td:first-of-type,
      .Inquiries table tbody tr td:first-of-type,
      .Main table tbody tr td:first-of-type{
        padding:0 !important;
      }

      .Customers.detail .tab-content table tbody tr td:nth-child(2) br,
      .Customers.detail .tab-content table tbody tr td:first-of-type br,
      .DailyReports table tbody tr td:nth-child(2) br,
      .DailyReports table tbody tr td:first-of-type br,
      .Inquiries table tbody tr td:nth-child(2) br,
      .Inquiries table tbody tr td:first-of-type br,
      .Main table tbody tr td:nth-child(2) br,
      .Main table tbody tr td:first-of-type br{
        display:none;
      }

      main table tbody tr td:nth-child(2) span,
      main table tbody tr td:first-of-type button,
      main table tbody tr td:first-of-type a,
      main table tbody tr td:first-of-type > i{
        display:inline-block;
        margin:.5em 1em !important;
      }

      main table tbody tr td:first-of-type *{
        margin-bottom:0 !important;
      }
*/

      main table td::before {
        content: attr(data-label);
        display:block;
        white-space: pre;
        font-weight: bold;
        position: absolute;
        left: 10px;
      }
}

mark{
    background-color:#fffe89;
}

.invoice-fixed-table{
    padding-top:50px;
    overflow-x: scroll;
    border-top: 1px solid #ccc !important;
    border-left: 1px solid #ccc !important;
}

[class^="table-row"]{
    display: flex;
    width: fit-content;
}

[class^="table-row"] > *{
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.5rem 0.5rem;
    border-right: 1px solid #ccc !important;
    border-bottom: 1px solid #ccc !important;
}

.table-row-head{
    position: absolute;
    min-height: 50px;
    background-color: #fff;
    top: 0;
    left: 0;
    z-index: 20;
    font-size: .7rem !important;
    font-weight: bold;
}

.table-row-data:nth-child(2n+1){
    background-color: #f5f5f5;
}

.invoice-fixed-table .num-head,
.invoice-fixed-table .num-data{
    position: sticky;
    left: 0;
    background-color: #fff;
    z-index: 10;
    width: 33.5px;
}
.invoice-fixed-table .code-head,
.invoice-fixed-table .code-data{
    position: sticky;
    left: 33.5px;
    background-color: #fff;
    z-index: 10;
    width: 73px;
}
.invoice-fixed-table .name-head,
.invoice-fixed-table .name-data{
    position: sticky;
    left: 106.5px;
    background-color: #fff;
    z-index: 10;
    width: 207px;
}
.invoice-fixed-table .total-head,
.invoice-fixed-table .total-data{
    position: sticky;
    right: 96px;
    background-color: #fff;
    z-index: 10;
    border-left: 1px solid #ccc !important;
    width: 96px;
}
.invoice-fixed-table .remarks-head,
.invoice-fixed-table .remarks-data{
    position: sticky;
    right: 0;
    background-color: #fff;
    z-index: 10;
    width: 96px;
}
.invoice-fixed-table .price-head,
.invoice-fixed-table .price_cell{
    width: 95px;
}