.dt-body-right {
    text-align: right;
}
.dt-body-center {
    text-align: center;
}
.dt-header-center {
    text-align: center;
}
.dt-header-mm-dtd {
    background-color: #e2efda
}
.dt-header-mm-mtd {
    background-color: #c6e0b4
}
.dt-header-mm-ytd {
    background-color: #a9d08e
}
.dt-header-mj-dtd {
    background-color: #fce4d6
}
.dt-header-mj-mtd {
    background-color: #f8cbad
}
.dt-header-mj-ytd {
    background-color: #f4b084
}
.dt-header-sij-dtd {
    background-color: #ddebf7
}
.dt-header-sij-mtd {
    background-color: #bdd7ee
}
.dt-header-sij-ytd {
    background-color: #9bc2e6
}
.dt-header-dsl-dtd {
    background-color: #f7e1f2
}
.dt-header-dsl-mtd {
    background-color: #f7c6e7
}
.dt-header-dsl-ytd {
    background-color: #f7a9db
}
.dt-header-jsj-dtd {
    background-color: #fbfda5
}
.dt-header-jsj-mtd {
    background-color: #f8fc68
}
.dt-header-jsj-ytd {
    background-color: #d9de04
}
.dt-header-otb-dtd {
    background-color: #d6d6d6
}
.dt-header-otb-mtd {
    background-color: #b5b5b5
}
.dt-header-otb-ytd {
    background-color: #9c9a9a
}
.table tr.sub-total {
    background-color: #fff7e4 !important;
}
.table tr.total {
    background-color: #ffedb8 !important;
}
.table tr.g-total {
    background-color: #ffda69 !important;
}
.table tr.a-total {
    background-color: #f2f548 !important;
}
.table tr.status-close {
    background-color: #343a40 !important;
    color: #ffffff !important;
}
.table tr.status-prepare {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
}
.table tr.status-temporarily-closed {
    background-color: #6c757d !important;
    color: #ffffff !important;
}
.table tr.auther {
    background-color: #e1c2ca66 !important;
    /* color: #ffffff !important; */
    color: #6c757d !important;
}

/* iPad幅より大きい */
@media screen and (min-width: 821px) {
    .table td.ellipsis-bbs-title {
        overflow-x: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 30rem;
    }
}
/* iPad以下 */
@media screen and (max-width: 820px) {
    .table td.ellipsis-bbs-title {
        overflow-x: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 20rem;
    }
}

/* テーブルの改行・余白設定 */
.table th, .table td {
    white-space: nowrap!important;
    padding: .25rem;
}

.store-master td {
    white-space: normal!important;
}

/* ローディング要素のposition指定上書き */
#loading > .overlay {
    position: fixed!important;
    flex-direction: column;
}

.user-info {
    padding: .5rem 1rem;
}

.user-info .user-name {
    display: inline-block;
    padding: 0 5px;
}

.user-info .user-icon {
    color:#c2c7d0;
    margin-left: .05rem;
    font-size: 1.2rem;
    margin-right: .2rem;
    text-align: center;
    width: 1.6rem;
}

/* レポート画面 集計結果の文字サイズ */
table.report th, table.report td {
    font-size: 14px;
}

/* レポート画面 日計、月間集計、年間集計の区切り線 */
.sep-border {
    border-left: 5px solid #dee2e6 !important;
    padding-right: 4px !important;
}

/* レポート画面 予算毎の区切り線 */
.sep-border-budget {
    border-left: 3px solid #dee2e6 !important;
    padding-right: 4px !important;
}

/* ラジオボタンを縦並びへ変更 */
.radio_block {
    display:block;
}

/* 非表示 */
.display_none {
    display: none;
}

/* ヘッダー部画面名 */
.page_name {
    background-color: transparent;
    margin-bottom: 0rem !important;
    padding: .5rem 1rem;
}

/* マウスポインタ変更 */
.url {
    cursor: pointer;
}

/* AdminLTEはフッターが存在する前提のレイアウトのため、上書き */
.non_footer_bttom {
    bottom: 0rem !important;
}

.link_table tr td:hover {
	background-color: #94b9e0;
}

.nohover {
    pointer-events: none;
}

.url_selected {
	background-color: #2586ee;
}

/*PCの場合 表示*/
.pc	{
    display:inline!important;
}

@media screen and (max-width: 768px) {
    /*タブレット、スマホの場合 非表示*/
    .pc	{
        display:none!important;
    }
}

/* 商品一覧画面 商品画像コンテナー */
.collectionImage {
    position: relative;
    max-height: 300px;
    min-height: 300px;
    max-width: 200px;
    width: auto;
    display: inline-flex;
    align-items: center;
    border: solid 1px #e9e9e9;
    box-sizing: border-box;
}

/* 商品一覧画面 商品画像 */
.img-collection {
    max-height: 300px;
    max-width: 100%;
    vertical-align: middle;
    border-style: none;
}

/* HD ~ UXGA の場合 */
@media screen and (min-width: 1366px) and (max-width: 1600px) {
    .collectionImage {
        position: relative;
        max-height: 100%;
        max-width: 164px;
        min-height: 230px;
    }

    .img-collection {
        max-height: 230px;
    }
}

/* iPad までの場合 */
@media screen and (min-width: 667px) and (max-width: 1180px) {
    .collectionImage {
        position: relative;
        max-height: 100%;
        max-width: 115px;
        min-height: 164px;
    }

    .img-collection {
        max-height: 164px;
    }
}

/* iPhone までの場合 */
@media screen and (max-width: 666px) {
    .collectionImage {
        position: relative;
        max-height: 100%;
        max-width: 260px;
        min-height: 365px;
    }

    .img-collection {
        max-height: 365px;
    }
}

/* キャンセル品/廃盤品 */
.cancel-haiban {
    width: 100px;
    text-align: center;
}

.collectionErea {
    width: 300px;
    height: 300px;
    display: inline-block;
}

.collectionDetail {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

#gray-display {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000c2;
    opacity: 0.8;
    z-index: 99;
}

#large-image-modal {
    position: fixed;
    background-color: #fff;
    z-index: 999;
    box-shadow: 0 0.25rem 0.5rem rgb(0 0 0 / 50%);
    border-radius: 0.3rem;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
}

.large-image-modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3rem;
}

#large-image-modal .modal-title {
    margin-bottom: 0;
}

#large-image-modal .close {
    padding: 1rem;
}

.large-image-modal-body {
    padding: 1rem;
    max-width: 400px;
}

.image-container {
    position: relative;
    top: 20%;
    bottom: 20%;
    z-index: 9;
}

#large-image-modal .product-image {
    width: 100%!important;
}

/* 低解像度の場合 */
@media screen and (orientation: landscape) and (max-width: 1000px) {
    #large-image-modal {
        max-width: 180px;
    }
}

.paging {
    position:relative;
    padding: 0 1rem 1rem 1rem;
    margin: 1rem 0 2rem 0;
}

/** COLOR画像 */
.img-fix-width {
    width: auto;
    max-height: 50px;
}

/** バーコードエリア */
.barcodeArea {
    max-height: 50px;
    min-width: 120px;;
}
.stock-info {
    line-height: 1.2;
}

/* 入力エラー表示 select2には直接bootstrapの定義が反映されないので追加 */
.is-invalid .select2-container--focus .select2-selection, .is-invalid .select2-container--open .select2-selection {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
    border-color: #dc3545!important;
}
.is-invalid .select2-dropdown, .is-invalid .select2-selection {
    border-color: #dc3545!important;
}

#userEditModal th, #userEditModal td,
#userAddModal th, #userAddModal td {
    white-space: normal!important;
}
.user-input-column {
    width: 180px;
}
.user-input-notes {
    width: 460px;
}

a.noLinkColor {
    color: #1f2d3d!important;
}

a.noLinkColor:link, a.noLinkColor:visited, a.noLinkColor:hover, a.noLinkColor:active {
    color: #1f2d3d!important;
}

.barcodes {
    margin: 0 auto;
}

.product-info {
    font-size: 0.7rem;
}

.product-info-style-name {
    margin-top: -0.5em;
    margin-bottom: -0.5em;
    font-size: 0.8rem;
}

.product-info-mark-down {
    margin-top: -0.5em;
    margin-bottom: -0.5em;
    font-size: 0.8rem;
}

.product-info-color-name {
    margin-top: -0.5em;
    font-size: 0.8rem;
    line-height: 14px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.price-info {
    margin-bottom: 0.5em;
    font-size: 0.5rem;
}

.ribbon-brand-wrapper {
    display: block;
    position: relative;
    margin: 0 auto;
}
.ribbon-brand {
    display: inline-block;
    position: absolute;
    left: 0;
    box-sizing: border-box;
    padding: 0 12px;
    margin: 0;
    height: 25px;
    line-height: 25px;
    font-size: 0.8em;
    letter-spacing: 0.1em;
    color: #fff;
    background: #343a40;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.12);
}
.ribbon-brand:before {
    position: absolute;
    content: '';
    top: 0;
    left: -7px;
    border: none;
    height: 33px;
    width: 7px;
    background: #343a40;
    border-radius: 5px 0 0 5px;
}
.ribbon-brand:after {
    position: absolute;
    content: '';
    bottom: -8px;
    left: -5px;
    border: none;
    height: 7px;
    width: 5px;
    background: gray;
    border-radius: 5px 0 0 5px;
}

/* 商品一覧画面 ページング領域 */
.show-pages, .change-pages {
    max-width: fit-content;
}

/* 商品一覧画面 ページングボタン */
@media screen and (min-width: 768px) {
    .change-pages {
        position: absolute;
        display: inline-block;
        right: 0%;
        top: 0px;
        left: 0%;
        margin: auto;
    }
}

/* 商品一覧画面 縦長表示の場合のページング領域 */
@media screen and (max-width: 556px) {
    .show-pages, .change-pages {
        margin: 1rem auto;
    }

    .paging {
        padding: 0;
        margin: 0;
    }
}

/* 商品一覧画面 画像下の余白設定 */
.collectionImage .mb-1 {
    margin-bottom: 0!important;
}

/* 商品詳細画面 テーブルはみ出し防止 */
.stockTable .dataTables_scrollHead, .dataTables_scrollBody {
    width: 100%!important;
}

.stockTable table {
    min-width: 100%;
    width: max-content!important;
}

/* 商品詳細画面 ダミー画像間の余白設定 */
.noImage {
    padding: 2rem;
}



/* マージンTOP 上寄せ1.5 */
.margin-top-mis-15 {
    margin-top: -1.5em;
}

.font-size-08 {
    font-size: 0.8rem;
}

/* 商品詳細画面 カラー名センタリング */
.stockTable tbody tr td:first-of-type {
    display: flex;
    align-items: center;
}

/* 商品詳細画面 商品画像サムネイル間 */
.product-image-thumb {
    margin-right: 0.5rem!important;
}

/* 商品台帳を除くレポート画面 データテーブルヘッダーのボーダー設定 */
.report thead tr:not(:last-of-type) .dt-header-center:not(.single-header) {
    border-bottom-width: 1px;
}

/* 商品台帳 データテーブルヘッダーのボーダー設定 */
.stockTable .table-bordered thead td, .table-bordered thead th {
    border-bottom-width: 1px;
}

/* 小さいフォントサイズ */
.small-font {
    font-size: 0.8rem!important;
}

/* 店舗メモ 折り返し表示 */
#storeMemoTable .long-text {
    white-space: pre-wrap!important;
    text-align: left;
}

.margin-bottom-zero {
    margin-bottom: 0rem !important;
}

/*********************************
 * バーコード用モーダル
 * canvasやvideo等のHTML上にないタグはQuaggaJSから生成される
 *********************************/
#barcode_scan.viewport canvas, video {
    height: 450px;
}

 /* 読取：領域iPad/PC用 */
@media screen and (min-width: 768px) {

    #barcode_scan {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
        width: 450px;
    }

    #barcode_scan.viewport canvas, video {
        width: 450px;
    }

    #barcode_scan.viewport canvas.drawingBuffer, video.drawingBuffer {
        margin-left: -450px;
    }
}

/* 読取：領域iPhone用 */
@media screen and (max-width: 667px) {

    #barcode_scan {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
        width: 325px;
    }

    #barcode_scan.viewport canvas, video {
        width: 325px;
    }

    #barcode_scan.viewport canvas.drawing, canvas.drawingBuffer, video.drawing, video.drawingBuffer {
        width: 325px;
        margin-left: -325px;
    }
}

/*********************************
 * QRコード用モーダル
 *********************************/
#qr_scan.viewport canvas, video {
    height: 450px;
}

 /* 読取：領域iPad/PC用 */
@media screen and (min-width: 768px) {

    #qr_scan {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
        width: 450px;
    }

    #qr_scan.viewport canvas, video {
        width: 450px;
    }
}

/* 読取：領域iPhone用 */
@media screen and (max-width: 667px) {

    #qr_scan {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
        width: 325px;
    }

    #qr_scan.viewport canvas, video {
        width: 325px;
    }
}

.preview , .preview-repair {
    width: 100%;
    height: 260px;
}

.image-canvas {
    border: 1px solid;
    border-color: black;
    width: 260px!important;
    height: 365px!important;
    max-height: 100%;
    max-width: 260px;
    object-fit: contain;
}

/*********************************
 * お絵描き用 Start
 *********************************/
#drowImageModal {
    /* ダブルタップでズームさせないため */
    touch-action: manipulation
}
#drow-canvas {
    border:1px solid black;
    touch-action: none;
    user-select: none;
    cursor: crosshair;
}
.drow-canvas {
    height: 170px;
}
#pen {
    overflow: hidden;
    line-height: 28px;
}
#pen > a {
    position: absolute;
    border-radius: 20px;
    float: left;
}
#pen-size-one{
    left: 50px;
    top: 0px;
    width: 10px;
    height: 10px;
    padding: 4px;
}
#pen-size-two{
    left: 100px;
    top: -2px;
    width: 15px;
    height: 15px;
    padding: 4px;
}
#pen-size-three{
    left: 150px;
    top: -4px;
    width: 20px;
    height: 20px;
    padding: 4px;
}
.drow-content > a{
    display: inline-block;
    width: 20px;
    height: 20px;
}

#color {
    position: absolute;
    background-color: white;
    top: 15px;
    height: 30px;
    margin: 20px;
    padding: 4px;
    font-size: 30px;
    line-height: 28px;
}
#color > a {
    position: absolute;
    border: 1px solid gray;
    width: 20px;
    height: 20px;
    border-radius: 20px;
    float: left;
    opacity: 1.0;
}
#pen-black {
    left: 0px;
}
#pen-blue {
    left: 30px;
}
#pen-cyan {
    left: 60px;
}
#pen-red {
    left: 90px;
}
#pen-pink {
    left: 120px;
}
#pen-green {
    left: 150px;
}
#pen-teal {
    left: 180px;
}
#pen-yellow {
    left: 210px;
}
#pen-orange {
    left: 240px;
}
#pen-white {
    left: 270px;
}
#pen-titel{
    position: absolute;
    left: -2px;
    top: -10px;
    margin: 0px;
    padding: 0;
    font-size: 1rem;
}
#color-titel{
    position: absolute;
    left: -30px;
    top: 1px;
    margin: 0px;
    padding: 0;
    font-size: 1rem;
}
#fig-titel{
    position: absolute;
    left: -8px;
    top: 10px;
    margin: 0px;
    padding: 0;
    font-size: 1rem;
}
#undo-redo-titel {
    position: absolute;
    left: -8px;
    top: 10px;
    margin: 0px;
    padding: 0;
    font-size: 1rem;
}
#fig {
    position: absolute;
    top: 75px;
    margin: 0px;
    padding: 0px;
    width: 270px;
}
#circle{
    position: absolute;
    left: 150px;
}
#square{
    position: absolute;
    left: 50px;
}

#undo-redo {
    position: absolute;
    top: 115px;
    width: 270px;
}
#btn-undo {
    position: absolute;
    left: 50px;
}
#btn-redo {
    position: absolute;
    left: 150px;
}
/*********************************
 * お絵描き用モーダル End
 *********************************/
/*********************************
 * サイン用 Start
 *********************************/
#drowSignatureModal {
    /* ダブルタップでズームさせないため */
    touch-action: manipulation
}
#drow-signature-canvas {
    width: 480px;
    height: 160px;
    border:1px solid black;
    touch-action: none;
    user-select: none;
    cursor: crosshair;
}
.drow-signature-canvas {
    height: 50px;
}

#undo-redo-titel-signature {
    position: absolute;
    left: -8px;
    top: 10px;
    margin: 0px;
    padding: 0;
    font-size: 1rem;
}
#undo-redo-signature {
    position: absolute;
    width: 300px;
}
#btn-undo-signature {
    position: absolute;
    left: 50px;
}
#btn-redo-signature {
    position: absolute;
    left: 150px;
}

#btn-reset-signature {
    position: absolute;
    left: 200x;
}
/*********************************
 * サイン用モーダル End
 *********************************/

/* iPhone用 */
@media screen and (max-width: 667px) {
    #delivery-date-text-reg {
        white-space: normal!important;
        width: 4rem;
    }
    #delivery-date-text-edi {
        white-space: normal!important;
        width: 4rem;
    }
    #delivery-date-text-del {
        white-space: normal!important;
        width: 4rem;
    }
    .message {
        overflow:scroll;
        max-width: 400px;
        /* max-height: 110px; */
        white-space: nowrap;
    }
    #text-repair-consent,
    #text-customer-info,
    #text-repair-barcode-read,
    #text-repair-leave-to-others,
    #text-repair-person,
    #text-delivery-for-repair-person,
    #text-repair-deadline,
    #text-repair-understand,
    #text-repair-start-date,
    #text-repair-estimated-date-completion,
    #text-repair-leave-to-others,
    #text-repair-charge,
    #text-repair-deliver,
    #text-return-for-repair-person,
    #text-repair-completion-date,
    #text-repair-preferred-date {
        white-space: normal!important;
        width: 3rem;
    }
}
 /* 読取：領域iPad/PC用 */
@media screen and (min-width: 668px) {
    #text-repair-consent{
        white-space: normal!important;
        width: 7rem;
    }
}

#text-msg-consent {
    white-space: normal!important;
}
.preview-repair-receipt-sign {
    width: 100%;
    height: 80px;
}

.image-canvas-repair-receipt-sign {
    border: 1px solid;
    border-color: black;
    width: 260px!important;
    height: 80px!important;
    max-height: 100%;
    max-width: 260px;
    object-fit: contain;
}

#btn-repair-signature {
    height: 100%;
}

/*********************************
 * QC登録 Start.
 *********************************/
/* グリッドシステムをスクロールする */
.row-scrollable{
  overflow-x: auto !important;
  white-space: nowrap !important;
}
.row-scrollable > .col-scrollable {
  display: inline-block !important;
  float: none !important;
}

.btn-row-delete {
  border-radius: 50%;
  width: 30px;
  height: 30px;
}

.image-qc-register {
    border: 1px solid;
    border-color: gray;
    width: 50px!important;
    height: 50px!important;
    max-height: 100%;
    max-width: 50px;
    object-fit: contain;
}
.btn-image-delete {
    width: 50px!important;
    /* width:2rem;
    height:2rem; */
}

.qc-row-number {
    width: 20px!important;
}

.checkbox-modal {
    width: 1.7em;
    height: 1.7em;
    vertical-align: top;
}

/*********************************
 * QC登録 End.
 *********************************/

/* calendar用 start */
/** 土日色変更 */
th.fc-day-sat {
    background-color: #eaf4ff;
}
th.fc-day-sun {
    background-color: #ffeaea;
}
th.fc-day-sat .fc-col-header-cell-cushion {
    color: blue!important;
}
th.fc-day-sun .fc-col-header-cell-cushion {
    color: red!important;
}
td.fc-day-sat {
    background-color: #eaf4ff;
}
td.fc-day-sun {
    background-color: #ffeaea;
}
td.fc-day-sat .fc-daygrid-day-number {
    color: blue!important;
}
td.fc-day-sun .fc-daygrid-day-number {
    color: red!important;
}
/* calendar用 end */
html {
    /* タッチアクションで拡大禁止 */
    touch-action: manipulation;
}
/*********************************
 * Portal用 Start.
 *********************************/
/* iPhone用 */
@media screen and (max-width: 667px) {

    .card-portal {
        height: 100px;
        max-height: 100px;
        max-width: 296px;
        width: 296px;
    }
    .icon-portal {
        height: 32px;
        width: 32px;
    }
    .portal-system-name {
        font-size: 1.2rem;
    }
    .portal-system-description {
        font-size: 1.0rem;
    }
}
/* 1366以上 */
@media screen and (min-width: 1367px) {
    .table td.ellipsis-portal-bbs-title {
        overflow-x: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 40rem;
    }
}
/* 1366まで */
@media screen and (max-width: 1366px) {
    .table td.ellipsis-portal-bbs-title {
        overflow-x: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 36rem;
    }
}
/* iPad幅より大きい */
@media screen and (min-width: 821px) {
    .table td.ellipsis-portal-bbs-title {
        overflow-x: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 36rem;
    }
}
/* iPad以下 */
@media screen and (max-width: 820px) {
    .table td.ellipsis-portal-bbs-title {
        overflow-x: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 20rem;
    }
}

 /* 読取：領域iPad/PC用 */
@media screen and (min-width: 668px) {
    .card-portal {
        height: 100px;
        max-height: 100px;
        max-width: 113px;
        width: 113px;
        padding: 0.6rem;
    }
    .icon-portal {
        height: 28px;
        width: 28px;
    }
    .portal-system-name {
        font-size: 0.8rem;
    }
    .portal-system-description {
        font-size: 0.8rem;
    }
}
.page-inner-link {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    list-style: none;
    border-radius: .25rem;
}
/*********************************
 * Portal用 End.
 *********************************/
