﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'SF Latin',BlinkMacSystemFont,'Hiragino Sans','ヒラギノ角ゴシック','Hiragino Kaku Gothic ProN','Yu Gothic',YuGothic,'メイリオ','Meiryo','Droid Sans',sans-serif;
    background-color: #f7f7f7;
    color: #17171a;
    font-feature-settings: "palt";
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: rgba(0,0,0,0.2);
    tap-highlight-color: rgba(0,0,0,0.2);
    font-weight: 500;
    letter-spacing: -.03em;
}

a, .btn-link {
    color: #0366d6;
}

.btn {
    font-weight: 500;
    color: #17171a;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-white {
    background-color: #fff;
}

.btn-sc {
    color: #fff;
    background-color: #00B8BE;
    border-color: #00B8BE;
}

.btn-sc-disable {
    color: #fff;
    background-color: #cccccc;
    border-color: #cccccc;
    pointer-events: none;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row-testenv {
    height: 6rem;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

        .main .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

.sidebar {
    position: relative;
    background-color: #ffffff;
}

    .sidebar::before, .sidebar::after {
        position: fixed;
        content: '';
        z-index: 1;
        width: 265px;
        height: 30vh;
        max-height: 160px;
        pointer-events: none;
    }

    .sidebar::after {
        bottom: 0;
        left: 0;
        background: linear-gradient(to top, #ffffff 5%, rgba(255,255,255,0.75) 60%, rgba(255,255,255,0));
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: 0;
        color: #00B8BE;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        letter-spacing: 0.1rem;
    }

        .sidebar .nav-item .nav-item {
            font-size: 0.85rem;
            padding-top: 0;
            padding-bottom: 0;
            letter-spacing: 0.05rem;
            margin-bottom: 12px;
        }

        .sidebar .nav-item:first-of-type {
            padding-top: 2rem;
        }

        .sidebar .nav-item .nav-item:first-of-type {
            padding-top: 0;
            margin-top: 10px;
        }

        .sidebar .nav-item a {
            color: #a7a7a7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: #17171a;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: #17171a;
                transition: all 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
            }

.sidebar .nav-item-sub {
    box-shadow: 0px 0px 0px 1px rgba(23,23,26,0.05);
    border-radius: 24px;
}

    .sidebar .nav-item-sub a {
        height: 2.6rem;
    }

.navbar {
    margin-top: 20px;
}

.navbar-brand {
    margin-top: 10px;
    margin-right: 0;
}

.navbar-brand img {
    width: 195px;
}

.nav-link {
    padding-left: 0;
}

.parent-nav-item {
    border-bottom: 1px solid #f7f7f7;
    padding-left: 16px;
    padding-right: 12px;
}

    .parent-nav-item:last-of-type {
        margin-bottom: 100px;
    }

.content {
    margin-top: 40px;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.form-control::-webkit-input-placeholder {
    color: #cccccc;
}

.form-control::-moz-placeholder {
    color: #cccccc;
}

.form-control:-ms-input-placeholder {
    color: #cccccc;
}

.form-control::-ms-input-placeholder {
    color: #cccccc;
}

.form-control::placeholder {
    color: #cccccc;
}

.nav-item-sub:hover,
.form-control:hover,
.btn:hover,
.custom-file:hover,
.sc-btn-icon:hover {
    box-shadow: 0px 5px 10px rgba(23,23,26, .15);
    transition: border .24s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s, box-shadow .48s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
}

.sc-btn-icon:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

.btn-sc:hover {
    color: #fff;
}

.detail-form-flash {
    opacity: 1;
    -webkit-animation-duration: 1s;
    -webkit-animation-name: detail-form-flash;
    animation-duration: 1s;
    animation-name: detail-form-flash;
}

@-webkit-keyframes detail-form-flash {
    0% {
        opacity: .1;
    }

    100% {
        opacity: 1;
    }
}

@keyframes detail-form-flash {
    0% {
        opacity: .1;
    }

    100% {
        opacity: 1;
    }
}

.sc-table-cell > div {
    min-height: 1.5em;
}

.sc-table-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-break-word {
    word-break: break-word;
}

.table {
    border-collapse: separate;
    border-spacing: 0px 8px;
}

.table thead th {
    font-weight: normal;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(247,247,247,0.96);
    padding-top: 40px;
    padding-bottom: 12px;
}

.table td, .table th {
    border: 0 !important;
}

.table tbody tr {
    border-radius: 6px;
}

.table tbody td {
    background-color: #ffffff;
}

.table tbody td:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.table tbody td:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.table tr[data-toggle] {
    cursor: pointer;
}

.table tr[data-toggle]:focus td, .table tr[data-toggle]:hover td {
    box-shadow: 0 2px 0 0 #00B8BE inset,
        0 -2px 0 0 #00B8BE inset;
    transition: all 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
}

.table tr[data-toggle]:focus td:first-child, .table tr[data-toggle]:hover td:first-child {
    box-shadow: 0 2px 0 0 #00B8BE inset,
        0 -2px 0 0 #00B8BE inset,
        2px 0 0 0 #00B8BE inset;
    transition: all 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
}

.table tr[data-toggle]:focus td:last-child, .table tr[data-toggle]:hover td:last-child {
    box-shadow: 0 2px 0 0 #00B8BE inset,
        0 -2px 0 0 #00B8BE inset,
        -2px 0 0 0 #00B8BE inset;
    transition: all 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
}

.table .table-header-sort {
    cursor: pointer;
    /*text-decoration: underline;*/
}

.table-collapse {
    border-collapse: collapse;
    border-spacing: 0px 8px;
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

/*written by nakai*/
.Payee {
    -webkit-print-color-adjust: exact;
    border: 1px solid black !important;
}

@media Print {
    #invoiceCell {
        -webkit-print-color-adjust: exact;
        background-color: #00B8BE !important;
        color: white !important;
    }

    .Payee {
        -webkit-print-color-adjust: exact;
        border: 1px solid black !important;
    }
}

.modal-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 9999;
    width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.scrollable-table {
    max-height: 300px;
    overflow-y: auto;
    display: block;
}


.table-collapse thead th {
    font-weight: normal;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(247,247,247,0.96);
    padding-top: 40px;
    padding-bottom: 12px;
}

.table-collapse td, .table-collapse th {
    border: 0 !important;
}

.table-collapse tbody td {
    background-color: #ffffff;
}

.alert-row td {
    background-color: #fdff91 !important;
}

.disabled-row td {
    background-color: #a7a7a7 !important;
    pointer-events: none;
    opacity: 0.5;
}

.table-collapse tr:first-child td {
    padding-top: 15px;
}

.table-collapse tr:last-child td {
    padding-bottom: 15px;
}

.table-collapse tbody tr {
    border-radius: 6px;
}

.table-collapse tbody tr:first-child td:first-child {
    border-top-left-radius: 6px;
}

.table-collapse tbody tr:first-child td:last-child {
    border-top-right-radius: 6px;
}

.table-collapse tbody tr:last-child td:first-child {
    border-bottom-left-radius: 6px;
}

.table-collapse tbody tr:last-child td:last-child {
    border-bottom-right-radius: 6px;
}

.table-collapse tr[data-toggle] {
    cursor: pointer;
}

.table-collapse tr[data-toggle]:focus td, .table-collapse tr[data-toggle]:hover td {
    box-shadow: 0 2px 0 0 #00B8BE inset,
        0 -2px 0 0 #00B8BE inset;
    transition: all 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
}

.table-collapse tr[data-toggle]:focus td:first-child, .table-collapse tr[data-toggle]:hover td:first-child {
    box-shadow: 0 2px 0 0 #00B8BE inset,
        0 -2px 0 0 #00B8BE inset,
        2px 0 0 0 #00B8BE inset;
    transition: all 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
}

.table-collapse tr[data-toggle]:focus td:last-child, .table-collapse tr[data-toggle]:hover td:last-child {
    box-shadow: 0 2px 0 0 #00B8BE inset,
        0 -2px 0 0 #00B8BE inset,
        -2px 0 0 0 #00B8BE inset;
    transition: all 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
}

.table-collapse .table-header-sort {
    cursor: pointer;
}

.table-collapse .custom-control-label::after,
.table-collapse .custom-control-label::before {
    width: 20px;
    height: 20px;
}

.search-list-counter {
    padding: 6px 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 100px;
    letter-spacing: -.04em;
    white-space: nowrap;
    top: -35px;
    right: 0;
}

.sidebar-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 265px;
    padding: 30px 8px 20px;
    display: inline-flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: flex-end;
    z-index: 2;
}

.sidebar-footer .oi {
    font-size: 1rem;
}

.sidebar-footer-company {
    font-size: 12px;
    height: 38px;
    width: 184px;
}

.i-icon {
    position: absolute;
    right: 6px;
}

.i-icon-sub {
    position: absolute;
    right: 10px;
}

.i-arrow {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 24px;
    height: 24px;
    margin: auto;
    overflow: hidden;
}

.i-arrow[data-direction="right"]::after {
    position: absolute;
    top: 50%;
    left: 46%;
    display: inline-block;
    content: '';
    width: 12%;
    height: 12%;
    min-width: 9px;
    min-height: 9px;
    border-color: inherit;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-right-width: 2px;
    border-right-style: solid;
    transform-origin: 50% 50%;
    transform: translate(-50%, -50%) rotate(-45deg)
}

.i-accordion {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 24px;
    height: 24px;
    margin: auto;
    position: relative;
    border-color: #17171a;
    overflow: hidden;
}

.i-accordion::after {
    position: absolute;
    top: 50%;
    left: 46%;
    display: inline-block;
    content: '';
    width: 12%;
    height: 12%;
    min-width: 9px;
    min-height: 9px;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-right-width: 2px;
    border-right-style: solid;
    transform-origin: 50% 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: all 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
}

.__active a {
    color: #17171a !important;
}

.__active .i-accordion::after {
    transform: translate(-50%, -50%) rotate(-135deg);
}

.form-control:required {
    border-left: 4px solid #ccc;
}

.m-widget {
    margin-top: 20px;
    line-height: 1;
}

    .m-widget:first-child {
        margin-top: 0;
    }

.m-widget__list {
    display: grid;
    grid-gap: 10px;
    grid-auto-rows: 180px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding-left: 0;
}

.m-widget__item {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
}

.m-widget__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
}

    .m-widget__content > a {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
    }

    .m-widget__content::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 0;
        border-radius: 6px;
    }

    .m-widget__content[data-color="1"] .m-widget__header {
        background-color: #007dbc;
    }

    .m-widget__content[data-color="2"] .m-widget__header {
        background-color: #ff8100;
    }

    .m-widget__content[data-color="3"] .m-widget__header {
        background-color: #00b8be;
    }

    .m-widget__content[data-color="4"] .m-widget__header {
        background-color: #00bc81;
    }

.m-widget__header {
    display: inline-flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: 24%;
    max-width: 80px;
    height: 100%;
    background-color: #00b8be;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.m-widget__heading {
    color: #ffffff;
    /*font-size: 1.4rem;*/
    font-weight: 600;
}

.m-widget__body {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    padding: 0 20px;
}

    .m-widget__body > *:nth-child(n+2) {
        margin-top: 14px;
        padding-top: 16px;
    }

    .m-widget__body:not(.m-widget__body-single)::after {
        position: absolute;
        top: 50%;
        left: 20px;
        right: 20px;
        content: '';
        height: 1px;
        background: #e6e6e6;
    }

.m-widget__data {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    margin: auto;
}

.m-widget__title {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    color: #5c6460;
    font-size: 0.75rem;
    font-weight: 500;
}

.m-widget__value {
    margin-top: 6px;
    padding-left: 10px;
    padding-right: 16px;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -.048em;
    font-family: "SF Latin",BlinkMacSystemFont,"Helvetica Neue",Helvetica,Arial,sans-serif;
}

    .m-widget__value > span {
        padding-right: .3em;
        font-size: 90%;
    }

.m-widget__content::before {
    transition: all 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
}

.m-widget__content:focus[data-color="1"]::before, .m-widget__content:hover[data-color="1"]::before {
    box-shadow: 0px 0px 0px 3px #007dbc inset;
}

.m-widget__content:focus[data-color="2"]::before, .m-widget__content:hover[data-color="2"]::before {
    box-shadow: 0px 0px 0px 3px #ff8100 inset;
}

.m-widget__content:focus[data-color="3"]::before, .m-widget__content:hover[data-color="3"]::before {
    box-shadow: 0px 0px 0px 3px #00b8be inset;
}

.m-widget__content:focus[data-color="4"]::before, .m-widget__content:hover[data-color="4"]::before {
    box-shadow: 0px 0px 0px 3px #00bc81 inset;
}

.m-widget__content:focus[data-status="disabled"]::before, .m-widget__content:hover[data-status="disabled"]::before {
    box-shadow: none;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 265px;
        height: 100vh;
        position: sticky;
        top: 0;
        /* for Firefox */
        scrollbar-color: rgba(170,170,170,1) rgba(255,255,255);
        scrollbar-width: thin;
    }

        .sidebar::-webkit-scrollbar {
            width: 5px;
        }

        .sidebar::-webkit-scrollbar-track {
            background-color: rgba(255,255,255,1);
        }

        .sidebar::-webkit-scrollbar-thumb {
            background-color: rgba(170,170,170,0.1);
            border-radius: 10px;
        }

            .sidebar::-webkit-scrollbar-thumb:hover {
                background-color: rgba(170,170,170,1);
                border-radius: 10px;
            }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

/* ON/OFF 切り替えトグル */
.sc_toggle_input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0;
    cursor: pointer;
}

.sc_toggle_label {
    width: 55px;
    height: 25px;
    margin-bottom: 0;
    vertical-align: top;
    background: #ccc;
    position: relative;
    display: inline-block;
    border-radius: 40px;
    transition: 0.4s;
    box-sizing: border-box;
}

    .sc_toggle_label:after {
        content: "";
        position: absolute;
        width: 25px;
        height: 25px;
        border-radius: 100%;
        left: 0;
        top: 0;
        z-index: 2;
        background: #fff;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
        transition: 0.4s;
    }

.sc_toggle_input:checked + .sc_toggle_label {
    background-color: #00B8BE; /*#4BD865*/
}

    .sc_toggle_input:checked + .sc_toggle_label:after {
        left: 30px; /* チェック時の位置(左端からの位置) */
    }

.sc_toggle_button {
    position: relative;
    width: 55px;
    height: 25px;
}

/* ON/OFF 切り替えトグル2 */
.sc_toggle2_input {
    left: 0;
    top: 0;
    width: 55px; /* 修正: チェックボックスのサイズをラベルと揃える */
    height: 25px;
    z-index: 5;
    opacity: 0;
}

/* トグルの見た目 */
.sc_toggle2_label {
    width: 55px;
    height: 25px;
    margin-bottom: 0;
    background: #ccc;
    position: relative;
    display: inline-block;
    border-radius: 40px;
    transition: 0.4s;
    box-sizing: border-box;
    cursor: pointer;
}

    /* トグルのスイッチ部分 */
    .sc_toggle2_label:after {
        content: "";
        position: absolute;
        width: 25px;
        height: 25px;
        border-radius: 100%;
        left: 0px; /* 修正: 初期位置を調整 */
        top: 0;
        background: #fff;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
        transition: 0.4s;
    }

/* チェックされたときの色変更 */
.sc_toggle2_input:checked + label.sc_toggle2_label {
    background-color: #00B8BE;
}

    .sc_toggle2_input:checked + label.sc_toggle2_label:after {
        left: 30px; /* 修正: チェック時の位置 */
    }

/* トグルボタン全体 */
.sc_toggle2_button {
    position: relative;
    width: 55px;
    height: 25px;
}

/* 横並びにするレイアウト */
.sc_toggle2_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

/* トグルボタンが縮小しないようにする */
.sc_toggle2_button_api {
    flex-shrink: 0;
}



/*
 tooltip design override
 */

.bs-tooltip-top .arrow::before {
    border-top-color: #00B8BE;
}

.tooltip.bs-tooltip-top .tooltip-inner {
    max-width: 500px;
    border: 2px solid #00B8BE;
    padding: 3px 8px;
    background-color: white;
    text-align: center;
    -webkit-border-radius: 10px; /*角丸にする*/
    -moz-border-radius: 10px; /*角丸する*/
    border-radius: 10px; /*要素の外側に境界を丸くする*/
    color: black;
    text-align: left;
    font-size:12px;
}

.bs-tooltip-bottom .arrow::before {
    border-bottom-color: #00B8BE;
}

.tooltip.bs-tooltip-bottom .tooltip-inner {
    max-width: 500px;
    border: 2px solid #00B8BE;
    padding: 3px 8px;
    background-color: white;
    text-align: center;
    -webkit-border-radius: 10px; /*角丸にする*/
    -moz-border-radius: 10px; /*角丸する*/
    border-radius: 10px; /*要素の外側に境界を丸くする*/
    color: black;
    text-align: left;
    font-size:12px;
}

.tooltip.show {
    opacity: 1;
}

.circle-badge-success {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #09C288;
    margin-left: 8px;
}

.circle-badge-failure {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #F7644D;
    margin-left: 8px;
}

.circle-badge-prosessing {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D5E110;
    margin-left: 8px;
}


