/* PrimeReact Galleria Customize */
.p-galleria {
    .p-galleria-thumbnail-container {
        background-color: transparent;
        padding: 0;
        margin-top: 6px;

        .p-galleria-thumbnail-item {
            padding-right: 0;

            &.p-galleria-thumbnail-item-current {
                .p-galleria-thumbnail-item-content {
                    border-color: #3c8dbc;
                }
            }

            .p-galleria-thumbnail-item-content {
                height: 100%;
                border-radius: 5px;
                border: 1px solid #aaa;
                margin-right: 2px;
                margin-left: 2px;

                &>span {
                    height: 100% !important;
                    display: block !important;
                    border-radius: 5px;
                }
            }
        }

        .p-galleria-thumbnail-prev,
        .p-galleria-thumbnail-next {
            margin: 0;
            height: 3rem;
            padding: 20px 0;
            width: 1.2rem;
            transition: all ease 0.3s;

            &.p-link:focus {
                box-shadow: none;
            }

            &.p-disabled {
                span {
                    color: #aaa;
                }
            }

            span {
                color: #000;
                font-size: 0.8rem;
            }
        }

        @media screen and (max-width: 767px) {
            background-color: #fff;
            margin-top: 0;
            padding-top: 10px;

            &.p-galleria-thumbnail-item-current {
                .p-galleria-thumbnail-item-content {
                    border: none;
                }
            }

            .p-galleria-thumbnail-item {
                .p-galleria-thumbnail-item-content {
                    border-radius: 0;
                    border: none;

                    &>span {
                        border-radius: 0;
                    }
                }
            }
        }
    }
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding-left: 0;
    margin-top: 1rem;
}

.breadcrumb-item {
    +.breadcrumb-item {
        &:before {
            content: '>';
        }
    }
}

/* Sidemenu */

// スクロールバーでレイアウトが崩れるのを防ぐ記述
.sidebar {
    scrollbar-width: none; // for Firefox
    -ms-overflow-style: none; // for IE

    &>.nav-link {
        padding-left: 1rem;
    }
}

.sidebar::-webkit-scrollbar {
    display: none; // for Chrome
}

div.nav-link {
    padding: 0;

    a {
        padding: 0.5rem 1rem;
        display: block;
    }
}

/* Toast */
.p-toast {
    .p-toast-message {
        &.p-toast-message-info {
            background: #fff;
            border-color: transparent;
        }
    }
}

.btn {
    min-width: 60px;

    &.p-button-icon-only {
        min-width: initial;
    }
}

.p-fileupload-row {
    .p-button {
        border-color: #f44659;
        background-color: #f44659;

        &:hover,
        &:focus {
            background-color: #f77785;
            border-color: #f77785;
        }
    }
}

/* User Theme Color */
.theme-user {
    background-image: url(/img/bg_live-auction.png);
    background-color: #fafafa;
    background-size: cover;
    background-position: center;
}

.theme-user .btn {
    border-radius: 100px;
    font-weight: bold;
}

.theme-user .btn.btn-secondary {
    background-color: #d9d9d9;
    border-color: #d9d9d9;
    color: #000;
}

.theme-user .btn.btn-secondary:disabled {
    color: #444;
}

.theme-user .alert-success {
    color: #e60d25;
    background-color: #102137;
    border-color: #101124;
}

.theme-user .alert-success hr {
    border-top-color: #ff10c10a;
}

.theme-user .alert-success .alert-link {
    color: #b50a1d;
}

.theme-user .badge-success {
    color: #fff;
    background-color: #f77785;
}

.theme-user .badge-success[href]:hover,
.theme-user .badge-success[href]:focus {
    color: #fff;
    background-color: #f44659;
}

.theme-user a.bg-success:hover,
.theme-user a.bg-success:focus,
.theme-user button.bg-success:hover,
.theme-user button.bg-success:focus {
    background-color: #f44659 !important;
}

.theme-user .border-success {
    border-color: #f77785 !important;
}

.theme-user .btn-success {
    color: #fff;
    background-color: #f77785;
    border-color: #f77785;
}

.theme-user .btn-success:hover {
    color: #fff;
    background-color: #f55566;
    border-color: #f44659;
}

.theme-user .btn-success:focus,
.theme-user .btn-success.focus {
    box-shadow: 0 0 0 0.2rem rgba(247, 119, 133, 0.5);
}

.theme-user .btn-success.disabled,
.theme-user .btn-success:disabled {
    color: #fff;
    background-color: #f77785;
    border-color: #f77785;
}

.theme-user .btn-success:not(:disabled):not(.disabled):active,
.theme-user .btn-success:not(:disabled):not(.disabled).active,
.theme-user .show>.btn-success.dropdown-toggle {
    color: #fff;
    background-color: #f44659;
    border-color: #f3384c;
}

.theme-user .btn-success:not(:disabled):not(.disabled):active:focus,
.theme-user .btn-success:not(:disabled):not(.disabled).active:focus,
.theme-user .show>.btn-success.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(247, 119, 133, 0.5);
}

.theme-user .btn-outline-success {
    color: #f77785;
    background-color: transparent;
    border-color: #f77785;
}

.theme-user .btn-outline-success:hover {
    color: #fff;
    background-color: #f77785;
    border-color: #f77785;
}

.theme-user .btn-outline-success:focus,
.theme-user .btn-outline-success.focus {
    box-shadow: 0 0 0 0.2rem rgba(247, 119, 133, 0.5);
}

.theme-user .btn-outline-success.disabled,
.theme-user .btn-outline-success:disabled {
    color: #f77785;
    background-color: transparent;
}

.theme-user .btn-outline-success:not(:disabled):not(.disabled):active,
.theme-user .btn-outline-success:not(:disabled):not(.disabled).active,
.theme-user .show>.btn-outline-success.dropdown-toggle {
    color: #fff;
    background-color: #f77785;
    border-color: #f77785;
}

.theme-user .btn-outline-success:not(:disabled):not(.disabled):active:focus,
.theme-user .btn-outline-success:not(:disabled):not(.disabled).active:focus,
.theme-user .show>.btn-outline-success.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(247, 119, 133, 0.5);
}

.theme-user .list-group-item-success {
    color: #e60d25;
    background-color: #101124;
}

.theme-user .list-group-item-success.list-group-item-action:hover,
.theme-user .list-group-item-success.list-group-item-action:focus {
    color: #e60d25;
    background-color: #ff10c10a;
}

.theme-user .list-group-item-success.list-group-item-action.active {
    color: #fff;
    background-color: #e60d25;
    border-color: #e60d25;
}

.theme-user .table-success,
.theme-user .table-success>th,
.theme-user .table-success>td {
    background-color: #101124;
}

.theme-user .table-hover .table-success:hover {
    background-color: #ff10c10a;
}

.theme-user .table-hover .table-success:hover>td,
.theme-user .table-hover .table-success:hover>th {
    background-color: #ff10c10a;
}

.theme-user .text-success {
    color: #f77785 !important;
}

.theme-user a.text-success:hover,
.theme-user a.text-success:focus {
    color: #f44659 !important;
}

/* Primereact SelectButton */
// .p-selectbutton {
//     .p-button:first-of-type {
//         border-top-left-radius: 0px;
//         border-bottom-left-radius: 0px;
//         border-top-right-radius: 0px;
//         border-bottom-right-radius: 0px;
//     }
//     .p-button:last-of-type {
//         border-top-left-radius: 0px;
//         border-bottom-left-radius: 0px;
//         border-top-right-radius: 0px;
//         border-bottom-right-radius: 0px;
//     }

//     .p-button {
//         padding: 6px 12px;
//     }

//     .p-button.p-highlight {
//         background: #007bff;
//         border-color: #007bff;
//         color: #ffffff;
//     }

//     .p-button.p-highlight:hover {
//         background: #007bff;
//         border-color: #007bff;
//         color: #ffffff;
//     }

//     .p-button:focus {
//         box-shadow: none;
//     }

//     .p-button:not(:last-child) {
//         border: 1px solid #ced4da;
//     }

//     &.round {
//         .p-button:first-of-type {
//             border-top-left-radius: 15px;
//             border-bottom-left-radius: 15px;
//             border-top-right-radius: 0px;
//             border-bottom-right-radius: 0px;
//         }
//         .p-button:last-of-type {
//             border-top-left-radius: 0px;
//             border-bottom-left-radius: 0px;
//             border-top-right-radius: 15px;
//             border-bottom-right-radius: 15px;
//         }
//     }
// }

.p-selectbutton .p-button:first-of-type {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.p-selectbutton .p-button:last-of-type {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.p-selectbutton .p-button {
    padding: 6px 12px;
}

.p-selectbutton .p-button.p-highlight {
    background: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

.p-selectbutton .p-button.p-highlight:hover {
    background: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

.p-selectbutton .p-button:focus {
    box-shadow: none;
}

.p-selectbutton .p-button:not(:last-child) {
    border: 1px solid #ced4da;
}

.p-selectbutton.round .p-button:first-of-type {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.p-selectbutton.round .p-button:last-of-type {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.col-xxl-1-2 {
    @media screen and (min-width: 1400px) {
        flex: 0 0 auto;
        padding: 0.5rem;
        width: 10%;
    }
}

.table-container {
    height: calc(100vh - 145px);
}

.p-disabled,
.p-component:disabled {
    opacity: 0.6;
    background-color: #e9ecef;
}

.item-centered-data-table {
    span {
        margin: 0 auto;
    }

    td {
        text-align: center !important;
    }
}

.p-inputnumber {
    input {
        max-width: 100%;
    }

    &.bid-input {
        input {
            font-size: 1.65rem;
            text-align: right;
            background-color: #f5f1ec;
            border-radius: 6px;
        }
    }

    &.toolbox-input {
        max-width: 100px;
        margin-left: 1rem;

        input {
            // border: 0px solid;
            height: 30px;
            background: #f5f1ec;
            font-weight: bold;
            text-align: right;
            font-size: 0.9rem;

            ::-webkit-inner-spin-button {
                -webkit-appearance: none;
                margin: 0;
            }

            ::-webkit-outer-spin-button {
                -webkit-appearance: none;
                margin: 0;
            }
        }
    }
}

.p-inputtextarea {
    &.toolbox-input {
        background: #f5f1ec;
    }
}

.iframe-wrapper {
    padding-bottom: 100%;
    height: 0;
    overflow: hidden;

    iframe {
        position: absolute;
        top: 0%;
        left: 0%;
        width: 100%;
        height: 100%;
        border-radius: 5px;
    }
}

.iframe-wrapper-large {
    padding-bottom: 102% !important;
}

.raw-modal {
    max-width: 80vw;
    width: 100%;

    >div {
        padding: 0 !important;
    }
}

.normal-modal {
    max-width: 500px;
    width: 100%;

    >div {
        padding: 0 !important;
    }
}

.image-icon {
    font-size: 5em;
    border-radius: 50%;
    background-color: var(--surface-b);
    color: var(--surface-d);
}

.fit-container {
    width: 100%;
    height: 100%;
}

.object-fit-contain {
    object-fit: contain;
}

.object-fit-cover {
    object-fit: cover;
}

.overlay-smog {
    position: relative;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #aaa;
        opacity: 0.5;
        border-radius: 2px;
        z-index: 1;
    }

    >button {
        top: 50% !important;
        right: 50% !important;
        transform: translate(50%, -50%);
    }
}

.no-overlay {
    >button {
        top: 0% !important;
        right: 0% !important;
        transform: translate(50%, -50%);
    }
}

.galleria {
    width: 100%;

    .item-wrapper {
        position: relative;
        height: 30rem;
        width: 100%;
    }

    .thumbnail-wrapper {
        position: relative;
        height: 4rem;
        width: 5rem;
    }
}

// .galleria-wrapper {
//     min-width: 100%;
// }

th {
    &.action-body-col-fixed {
        flex: 0 0 auto !important;
        width: 69.7px;
    }
}

td {
    &.action-body-col-fixed {
        flex: 0 0 auto !important;
    }
}

.loading-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000000;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    background-color: #ffffff;
    transition: 0.3 all ease;
}

.loading-section-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100vw;
    height: 100vh;
    padding-top: 75px;
    padding-left: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    background-color: #ffffff;
    transition: 0.3s all ease;
}

.loading-processing-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999999999;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: all;
    transition: 0.3s all ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.breadcrumb-wrapper {
    position: relative;
    z-index: 101;
    margin-top: 5px;
}

.row {
    &.min-h {
        min-height: 65px;
    }
}

.wrapper {
    min-height: 100vh;
}

.layout-navbar-fixed {
    .wrapper {
        .main-header {
            z-index: 1039;
        }
    }
}

.transparent-card {
    box-shadow: none;
}

.p-tabview {
    &.card {
        .p-tabview-panels {
            padding: 0;
        }
    }
}

.card {
    .p-datatable {
        border: 1px solid #e9ecef;
        border-radius: 5px;
        overflow: hidden;
    }
}

.sm-datatable {
    max-height: 500px;
}

.p-datatable {
    .table-row-form {
        width: 100%;
    }
}

.scroll-table {
    height: 100%;
    -ms-overflow-style: none;
    overflow-y: scroll !important;

    .p-datatable-thead {
        height: 40px;
        position: sticky;
        top: 0;
        width: 100%;
        z-index: 10;
    }
}

.p-dropdown-item {
    text-overflow: ellipsis;
}

.custom-dropdown-panel {
    z-index: 1040 !important;
}

/* 井上追加部分 */
.screen-body-content {
    width: calc(100% - 250px);
    margin-left: 250px;
    min-height: calc(100vh - 65px);
}

.text-size-32 {
    font-size: 32px;
    line-height: 32px;
}

.text-size-28 {
    font-size: 28px;
    line-height: 28px;
}

.text-size-24 {
    font-size: 24px;
    line-height: 24px;
}

.text-size-20 {
    font-size: 20px;
    line-height: 20px;
}

.text-size-18 {
    font-size: 18px;
    line-height: 18px;
}

.text-size-16 {
    font-size: 16px;
    line-height: 16px;
}

.text-size-12 {
    font-size: 12px;
    line-height: 12px;
}

.text-size-10 {
    font-size: 10px;
    line-height: 10px;
}

.bid-price-button {
    outline: rgb(73, 80, 87) solid 1px;
    font-size: 13px;
}

.ac-item-img-container {
    box-sizing: border-box;
    display: block;
    overflow: hidden;
    width: initial;
    height: initial;
    opacity: 1;
    border: 0px;
    margin: 0px;
    padding: 0px;
    position: absolute;
    inset: 0px;
}

.ac-item-img {
    position: absolute;
    inset: 0px;
    box-sizing: border-box;
    padding: 0px;
    border: none;
    margin: auto;
    display: block;
    width: 0px;
    height: 0px;
    min-width: 100%;
    max-width: 100%;
    min-height: 100%;
    max-height: 100%;
    object-fit: contain;
}

.item-image {
    max-width: 75px;
    max-height: 75px;
    width: auto;
    height: auto;
    display: block;
}

// 伝票系画面用
.tiny {
    table {

        th,
        td {
            padding: 0.2rem 1rem;
        }
    }

    input {
        padding: 0;
    }

    select {
        padding: 0;
        height: auto;
    }

    .grid-5p {
        width: 5%;
    }

    .grid-8p {
        width: 8%;
    }

    .grid-10p {
        width: 10%;
    }

    .grid-18p {
        width: 18%;
    }

    .grid-20p {
        width: 20%;
    }

    .grid-40p {
        width: 40%;
    }

    .grid-60p {
        width: 60%;
    }

    .grid-100p {
        width: 100%;
    }

    span.block {
        white-space: nowrap;
        overflow: hidden;
    }
}

.hidden_area {
    display: none;
}

.tiny table th {
    padding: 0.2rem 1rem;
}

.tiny table td {
    padding: 0.2rem 1rem;
}

.tiny input {
    padding: 0;
}

.tiny select {
    padding: 0;
    height: auto;
}

.tiny .grid-3p {
    width: 3%;
}

.tiny .grid-5p {
    width: 5%;
}

.tiny .grid-8p {
    width: 8%;
}

.tiny .grid-10p {
    width: 10%;
}

.tiny .grid-15p {
    width: 15%;
}

.tiny .grid-18p {
    width: 18%;
}

.tiny .grid-20p {
    width: 20%;
}

.tiny .grid-30p {
    width: 30%;
}

.tiny .grid-40p {
    width: 40%;
}

.tiny .grid-60p {
    width: 60%;
}

.tiny .grid-100p {
    width: 100%;
}

.tiny span.block {
    white-space: nowrap;
    overflow: hidden;
}

.tiny select {
    width: 100%;
}

.tiny input {
    font-size: 0.9rem !important;
    padding: 0 0 0 3px !important;
}

.tiny .list_check {
    pointer-events: none;
}

.tiny .force-padding {
    padding: .5rem !important;
}

.tiny .font-bold {
    font-weight: bold;
}

.chosen-container-single .chosen-single {
    background: none !important;
    background-color: white !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border: 1px solid #ced4da !important;
    font-size: 1rem;
    height: 37px !important;
    display: table !important;
    width: 100%;
}

.chosen-container-single .chosen-single span {
    display: table-cell !important;
    vertical-align: middle !important;
}


.tiny .chosen-container-single .chosen-single {
    border-radius: 3px !important;
    /*margin-top: -4px !important;*/
    font-size: 0.9rem !important;
    padding: 0 0 0 3px !important;
    height: auto !important
}

.tiny .chosen-container-active {
    box-shadow: 0 0 0 0.2rem #a6d5fa;
    border-color: #2196f3;
}

.chosen-container-single .chosen-single div b {
    margin-top: 7px !important;
}

.tiny .chosen-container-single .chosen-single div b {
    margin-top: 0 !important;
}

.tiny .p-datatable .p-button {
    padding: 0.25rem 0.5rem;
}

.chosen-container-single:hover .chosen-single:hover {
    border-color: #2196f3;
}

.p-radiobutton .p-radiobutton-box.p-highlight {
    border-color: #2196f3;
    background: #2196f3
}

.memo-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inner-table-cell {
    display: flex;
    flex-wrap: wrap;
}

.p-datatable.p-datatable-selectable .p-datatable-tbody>tr.p-selectable-row:not(.p-highlight):not(.p-datatable-emptymessage).inner-table-row:hover {
    background: none !important;
}

.p-tabview-nav .p-highlight a {
    color: #007bff;
}

.p-tabview-nav a {
    color: #6c757d;
}

.annotation {
    font-size: 0.75rem;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

#loading .cv-spinner {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loading .spinner {
    width: 80px;
    height: 80px;
    border: 4px #ddd solid;
    border-top: 4px #999 solid;
    border-radius: 50%;
    animation: sp-anime 0.8s infinite linear;
}

@keyframes sp-anime {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(359deg);
    }
}

#loading.is-hide {
    display: none;
}

.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #343a40;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    right: 30px;
    bottom: 30px;
    font-size: 17px;
}

.toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}
