:root {
    --main-bg-color: #414549;
}

::-webkit-scrollbar {
    height: 0.7rem;
    width: 0.7rem;
}
::-webkit-scrollbar-thumb {
    --tw-border-opacity: 1;
    background-color: rgba(217,217,227,.8);
    border-color: rgba(255,255,255,var(--tw-border-opacity));
    border-radius: 9999px;
    border-width: 1px;
}
::-webkit-scrollbar-track {
    background-color: transparent;
    border-radius: 9999px;
}

.cursor-auto {
    cursor: auto;
}
.cursor-default {
	cursor: default;
}
.cursor-pointer {
    cursor: pointer;
}
.cursor-wait {
    cursor: wait;
}
.cursor-text {
    cursor: text;
}
.cursor-move {
    cursor: move;
}
.cursor-help {
    cursor: help;
}
.cursor-not-allowed {
    cursor: not-allowed;
}

header {
    height: 28px;
    position: relative;
    z-index: 1032;
}
body {
    font-size: 13px;
    background-color: #eaf0f6;
}
main {
    margin-top: 40px;
    overflow: hidden;
}

ul.errorlist {
    list-style: none;
    padding-left: 0px;
}

ul.errorlist li {
    color: #dc3545!important;
}

.form-switch {
    padding-left: 0px;
}

.form-switch .form-check-input {
    float: initial;
    margin-left: 0px !important;
    width: 4em;
}

.form-switch .form-check-input {
    height: 1.75em;
    margin-top: 0px !important;
}

.system-no {
    width: 6em;
}

.bg-white-custom {
    background-color: #fbfbfb!important;
}

.bg-light-custom {
    background-color: #f0edee!important;
}

.bg-secondary-custome {
    background-color: #e2e3e5!important
}

.sidebarIconToggle {
    display: none !important;
    transition: all 0.3s;
    box-sizing: border-box;
    cursor: pointer;
    position: absolute;
    z-index: 99;
    height: 100%;
    width: 100%;
    top: 22px;
    left: 7px;
    height: 18px;
    width: 18px;
    position: fixed;
    z-index: 1042;
}
.spinner {
    transition: all 0.3s;
    box-sizing: border-box;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: #333;
    z-index: 1040;
}
.horizontal {
    transition: all 0.3s;
    box-sizing: border-box;
    position: relative;
    float: left;
    margin-top: 3px;
    z-index: 1040;
}
.diagonal.part-1 {
    position: relative;
    transition: all 0.3s;
    box-sizing: border-box;
    float: left;
    z-index: 1040;
}
.diagonal.part-2 {
    transition: all 0.3s;
    box-sizing: border-box;
    position: relative;
    float: left;
    margin-top: 3px;
    z-index: 1040;
}

#sidebarMenuOpenButton {
    display: none;
}

#sidebarMenu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 140px;
    transform: translateX(-200px);
    transition: transform 250ms ease-in-out;
    z-index: 1041;
    border-top: 1px solid #ced4da;
    border-right: 1px solid #ced4da;
    overflow-y: scroll;
    height: 100%;
}

.active_menu {
    background-color: hsla(240,9%,59%,.3);
}
.active_menu a {
    font-weight: 700;
}

.nav-item {
    padding-top: 0.25rem; 
    padding-bottom: 0.25rem; 
} 

.nav-item:hover {
    background-color: hsla(240,9%,59%,.3);
}

.nav-link {
    padding: 5px 15px;
}

summary.user {
    position: relative;
    display: block;
    padding-left: 20px !important;
    cursor: pointer;
    margin-left: 10px;
}
summary.user::-webkit-details-marker {
    display: none;
}
summary.user:before,
summary.user:after {
    content: "";
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
}
summary.user:before {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background-color: #414549;
}
summary.user:after {
    left: 6px;
    width: 5px;
    height: 5px;
    border: 4px solid transparent;
    border-left: 5px solid #fff;
    box-sizing: border-box;
    transition: .1s;
}

details[open] summary.user:after {
    transform: rotate(90deg);
    left: 4px;
    top: 5px;
}

input[type="checkbox"][id="openSidebarMenu"]:checked ~ #sidebarMenu {
    transform: translateX(0);
}

input[type=checkbox][id="openSidebarMenu"] {
    transition: all 0.3s;
    box-sizing: border-box;
    display: none;
}
input[type=checkbox][id="openSidebarMenu"]:checked ~ .sidebarIconToggle {
    left: 110px;
}

.company_title {
    font-size: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edit_table td {
    vertical-align: middle;
}

.modal-wrapper {
    z-index: 999;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 40px 10px;
    text-align: center
}

.modal-wrapper:not(:target) {
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.modal-wrapper:target {
    opacity: 1;
    visibility: visible;
    transition: opacity .4s, visibility .4s;
}

.modal-wrapper::after {
    display: inline-block;
    height: 100%;
    margin-left: -.05em;
    vertical-align: middle;
    content: ""
}

.modal-wrapper .modal-window {
    box-sizing: border-box;
    display: inline-block;
    z-index: 20;
    position: relative;
    width: 90%;
    box-shadow: 0 0 30px rgba(0, 0, 0, .6);
    vertical-align: middle
}

.modal-wrapper .modal-window .modal-content {
    max-height: 80vh;
    overflow-y: auto;
    text-align: left
}

.modal-overlay {
    z-index: 10;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .8)
}

.overlay {
    z-index: 1051;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color:rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-content {
    z-index: 1052;
    width: auto;
    max-height: 100vh;
    overflow-y: scroll;
    padding: 0 1.5rem 1rem;
    background-color: #eaf0f6;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.3rem;
    margin-top: 5rem;
}

.overlay-header {
    text-align: center;
    padding-bottom: 1rem;
}

.overlay-body {
    padding-bottom: 1rem;
}

.overlay-target {
    background-color: #fff;
}

.loader {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: solid 4px;
    border-color: #000000 #00000010 #00000010;
    position: relative;
    animation-name: spin;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.breadcrumb {
    margin: 0 0 5px 0;
    padding: 0;
    list-style: none;
}

.breadcrumb li {
    display: inline;
    list-style: none;
}

.breadcrumb li:after {/* >を表示*/
    content: '>';
    padding: 0 0.2em;
    color: #555;
}

.breadcrumb li:last-child:after {
    content: '';
}

.breadcrumb li a {
    text-decoration: none;
}

.invalid {
    border-color: #dc3545 !important;
}

.breadcrumb li a:hover {
    text-decoration: underline;
}

.border-bottom-dark {
    border-bottom: 1px solid #ccc;
}
pre {
    font-size: 1em;
    font-family: inherit;
    overflow-x: visible;
    white-space: pre-wrap;
}

.client_class_0 {
    border-bottom: 3px solid #ffc107;
}

.client_class_1 {
    border-bottom: 3px solid #198754;
}

.client_class_2 {
    border-bottom: 3px solid #0d6efd;
}

.client_class_9 {
    border-bottom: 3px solid #888;
    color: #888;
}

.client_class_0_badge {
    border-bottom: 3px solid #ffc107 !important;
}

.client_class_1_badge {
    border-bottom: 3px solid #198754 !important;
}

.client_class_2_badge {
    border-bottom: 3px solid #0d6efd !important;
}

.client_class_9_badge {
    border-bottom: 3px solid #888 !important;
    color: #888;
}

.lead_mql {
    border: 1.5px solid #ffc107 !important;
    background-color: #ffeebb !important;
}

.lead_tql {
    border: 1.5px solid #dc3545 !important;
    background-color: #ffeeee !important;
}

.lead_sal {
    border: 1.5px solid #198754 !important;
    background-color: #eeffee !important;
}

.lead_sql {
    border: 1.5px solid #0d6efd !important;
    background-color: #eeeeff !important;
}

.lead_mql_badge {
    border: 1px solid #ffc107!important;
    background-color: #ffcc99;
}

.lead_tql_badge {
    border: 1px solid #dc3545!important;
    background-color: #ffcccc;
}

.lead_sal_badge {
    border: 1px solid #198754!important;
    background-color: #ccffcc;
}

.lead_sql_badge {
    border: 1px solid #0d6efd!important;
    background-color: #ccccff;
}

.table {
    font-size: 0.9rem !important;
    margin-bottom: 0;
}

.table-responsive .table th {
    padding: 0.5rem;
}

.table-responsive .table td {
    padding: 0.5rem;
}

.table-detail {
    width: auto;
}
.table-detail th {
    padding: 0.75rem 0.5rem !important;
    text-align: right;
    white-space: nowrap;
    min-width: 70px;
}

.table-detail td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    width: 100%;
}

.table-detail tr {
    vertical-align: top;
}

.table-detail tr:first-child th {
    padding-top: 0 !important;
}

.table-detail tr:last-child th {
    border-bottom-width: 0 !important;
    padding-bottom: 0 !important;
}

.table-detail tr:first-child td {
    padding-top: 0 !important;
}

.table-detail tr:last-child td {
    border-bottom-width: 0 !important;
    padding-bottom: 0rem !important;
}
.form-label {
    font-size: 0.9rem;
    margin-bottom: 1px !important;
}

.form-control-plaintext {
    margin-top: -10px;
}

#nav-menu {
    display: none !important;
}

#sidebar_menu_sp {
    margin-top: 56px;
    position: fixed;
    top: 0;
    right: 0;
    overflow-y: scroll;
    height: 100vh;
    z-index: 1043;
}

.field-set {
    margin-bottom: 0.5rem;
}

.field-label {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.2;
}

.flatpickr-input {
    width: 130px;
    background-color: #fff !important;
}

.monthpicker {
    width: 90px;
    background-color: #fff !important;
}

.phase .card-header {
    border-radius: 0px;
}
.phase .card-header:after {
    content: " ";
    display: block;
    width: 0;
    height: 0;
    border-top: 1.25rem solid transparent;
    border-bottom: 1.25rem solid transparent;
    border-left: 1.25rem solid var(--main-bg-color);
    position: absolute;
    top: 2rem;
    margin-top: -2rem;
    left: 100%;
    z-index: 2;
}

.lead {
    position: absolute;
    top: -8px;
    right: 5px;
    padding: 1px 3px;
    border-radius: 3px;
    font-size: 1rem;
}

.phase {
    width:250px;
    margin-right: 1rem;
    padding-bottom: 1rem;
    flex: 0 0 auto;
}

.bus {
    position: relative;
    padding: 0.75rem;
    margin: 1rem 1rem 0 1rem;
}

.bus_no {
    position: absolute;
    top: -10px;
    left: 5px;
    padding: 0px 5px;
    border-radius: 3px;
    border: 1px solid #999;
    background-color: #fff;
}

.bus_title {
    font-weight: 700;
}
.bus_contents {
    margin-top: 0.5rem;
    font-size: 1rem;
}

.item {
    margin-bottom: 1px;
    font-size: 1rem;
}

.item-title {
    width: 70px;
    display: inline-block;
    font-weight: 700;
}

.item-contents {
    display: inline-block;
    width: calc(100% - 70px);
    color :#212529!important;
    overflow: hidden;
    vertical-align: middle;
}

.bg-dark {
    background-color: var(--main-bg-color) !important;
}

.table-dark {
    --bs-table-bg: var(--main-bg-color);
}

.user-icon {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 1.5px solid #eee;
}

.construction{
    list-style-type: none;
}

.construction ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.construction ul {
    position: relative;
    margin-left: 8px;
}

.construction ul:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    border-left: 1px solid #999;
}

.construction ul li {
    position: relative;
    margin: 0;
    padding: 0px 15px;
}

.construction ul li:before {
    content: "";
    display: block;
    position: absolute;
    top: 8px;
    left: 0;
    width: 8px;
    height: 0;
    border-top: 1px solid #999;
}

.construction ul li:last-child:before {
    top: 8px;
    bottom: 0;
    height: auto;
    background-color: #fff;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark
{
    background-color: #fff;
}

input[type="checkbox"][id="openSidebarMenu"]:checked ~ main .page-title {
    padding-left: 0px !important;
}

.overlay .page-title {
    position: static;
}    

.page-title {
    position: sticky;
    top: 0;
    z-index: 1031;
    padding-left: 120px !important;
}

.page-contents {
    margin-top: 1rem;
    margin-bottom: 3rem;
}

#user_list {
    white-space: nowrap;
}
.calendar-day {
    align-items: baseline;
    background-color: white;
    height: calc(100vh - 120px);
    overflow: scroll;
}
.calendar-day .header {
    background-color: white;
}
.calendar-day .user_name {
    font-weight: 700;
    font-size: 1.25rem;
    position: relative;
    text-align: center;
    width: 300px;
}
.calendar-day .contents {
    position: relative;
    text-align: center;
    height: 100%;
}
.calendar-day .user_schedule {
    left: 0px;
    position: absolute;
    top: 0px;
    width: 298px;
}
.schedule_panel {
    font-size: 0.75rem;
}
.calendar-day .schedule_panel {
    color: white;
    border-radius: 5px;
    margin: 1px;
    font-weight: normal;
    cursor: pointer;
}

.calendar-day .time {
    width: 60px;
}
.calendar-day .time_span {
    border-right: 1px solid #eee;
    line-height: 41px;
    text-align: center;
    width: 60px;
}
.calendar-day .time_border {
    border-bottom: 1px solid #eee;
    line-height: 40px;
    width: 300px;
}



.calendar-week {
    width: 100%;
    height: calc(100vh - 120px);
    overflow: auto;
}
.table-calendar-week {
    background-color: white;
    table-layout: fixed;
}
.table-calendar-week thead {
    background-color: white;
}
.table-calendar-week th {
    text-align: center;
}
.table-calendar-week td {
    height: 100%;
    text-align: center;
    padding: 0;
}
.table-calendar-week .time {
    width: 60px;
}
.table-calendar-week .time_span {
    line-height: 41px;
    text-align: center;
    width: 60px;
}
.table-calendar-week .time_border {
    border-bottom: 1px solid #eee;
    line-height: 40px;
    width: 100%;
}
.table-calendar-week .schedule_panel {
    color: white;
    border-radius: 5px;
    margin: 1px;
    font-weight: normal;
    cursor: pointer;
}
.table-calendar-week .user_schedule {
    left: 0px;
    position: absolute;
    top: 0px;
    width: calc(100% - 2px);
}
.table-calendar-week .holiday_name {
    bottom: 0px;
    left: 0px;
    display: block;
    position: absolute;
    text-align: center;
    width: 100%;
    font-weight: normal;
    font-size: 0.75rem;
}

.table-calendar-month {
    background-color: white;
    table-layout: fixed;
}
.table-calendar-month th {
    text-align: center;
}
.table-calendar-month td {
    text-align: center;
    height: 90px;
}
.table-calendar-month .schedule_panel {
    color: white;
    border-radius: 5px;
    margin: 1px;
    font-weight: normal;
    cursor: pointer;
}

.table-calendar-month .schedule_panel_range {
    color: white;
    border-radius: 5px;
    margin: 1px;
    margin-left: -8px;
    font-weight: normal;
    cursor: pointer;
}

/* input size */
.checkno {
    min-width: 7em !important;
}

.goods_cd {
    min-width: 10em !important;
}

.goods_name {
    min-width: 14em !important;
}

.client_cd {
    min-width: 10em !important;
}

.client_name {
    min-width: 10em !important;
}

.user_id {
    min-width: 4em !important;
}

.input-min-3 {
    min-width: 3em !important;
}

.input-min-4 {
    min-width: 4em !important;
}

.input-min-5 {
    min-width: 5em !important;
}

.input-min-6 {
    min-width: 6em !important;
}

.input-min-7 {
    min-width: 7em !important;
}

.field-range-label {
    margin-top: 10px;
}

.disp-pc {
	display: none
}

.disp-non-pc {
	display: block
}

.progress {
    height: 1.5rem;
}

.badge {
    padding: 0.25em .65em;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
}

.form-check-label {
    padding-top: 3px;
    padding-left: 3px;
}

@media screen and (min-width:1024px) {
    .func1::before { content: 'F1 '; }
    .func2::before { content: 'F2 '; }
    .func3::before { content: 'F3 '; }
    .func4::before { content: 'F4 '; }
    .func5::before { content: 'F5 '; }
    .func6::before { content: 'F6 '; }
    .func7::before { content: 'F7 '; }
    .func8::before { content: 'F8 '; }
    .func9::before { content: 'F9 '; }
    .func10::before { content: 'F10 '; }
    .func11::before { content: 'F11 '; }
    .func12::before { content: 'F12 '; }

    html {
        font-size: 12px;
    }
    #nav-menu {
        display: block;
    }
    .navbar {
        padding-top: 0;
        padding-bottom: 0;
    }
    .navbar-brand {
        padding-top: 0;
        padding-bottom: 0;
        font-weight: 900;
        font-size: 1.75rem;
    }
    #sidebarMenuOpenButton {
        display: inline-block;
    }
    #sidebarMenu {
        display: block;
    }
    #sidebar_menu_sp {
        display: none;
    }
    .field-set {
        margin-bottom: 0;
    }
    .field-label {
        margin-top: 0.25rem;
        margin-bottom: 0;
    }    
    input[type="checkbox"][id="openSidebarMenu"]:checked ~ main {
        padding-left: 170px !important;
    }
    .page-title {
        position: fixed;
    }    
    .overlay .page-contents {
        margin-top: 0 !important;
    }    
    .page-contents {
        margin-top: 3rem !important;
    }    
    .card-header {
        padding: 0.5rem 0.75rem;
    }
    .card-body .row {
        margin-bottom: 0;
    }
    .form-control {
        height: 22px;
        padding: 3px 7px;
        line-height: 1;
        border-radius: 3px;
    }
    textarea.form-control {
        line-height: 1.5;
    }

    .sidebarIconToggle {
        top: 7px;
        display: block !important;
    }
    .form-label {
        margin-bottom: 0 !important;
    }
    .form-control-plaintext {
        padding: 0.125rem 0;
        margin-top: 0px;
    }
    .input-group-text {
        font-size: 0.9rem;
        padding: 0.25rem 0.5rem;
    }
    .input-group .btn {
        font-size: 0.9rem;
        line-height: 1;
    }
    .input-group-text {
        font-size: 0.9rem;
        line-height: 1;
    }
    .button {
        padding: 0.25rem 0.5rem;
        font-size: .875rem;
        border-radius: 0.2rem;
    }
    .btn {
        padding: 0.25rem 0.5rem;
        font-size: .875rem;
        border-radius: 0.2rem;
    }
    .btn-sm {
        padding: 0.15rem 0.25rem;
        font-size: .875rem;
        border-radius: 0.15rem;
    }
    .btn-lg {
        padding: 0.3rem 0.75rem;
        font-size: 1rem;
        border-radius: 0.3rem;
    }
    .card-body {
        padding: 0.5rem 0.75rem 0.75rem 0.75rem;
    }
    .table {
        font-size: 1rem !important;
    }
    .table th {
        padding: 0.25rem 0.5rem !important;
    }
    .table-responsive .table td {
        border-bottom-width: 1px;
        padding: 0.25rem 0.5rem;
    }
    .table td {
        border-bottom-width: 1px;
        padding: 0.25rem 0.5rem;
    }
    .table-detail th {
        padding: 0.5rem !important;
        border-bottom-width: 1px !important;
    }
    .table-detail td {
        padding: 0.5rem;
        border-bottom-width: 1px;
    }
    .flatpickr-input {
        width: 105px !important;
    }
    .monthpicker {
        width: 60px !important;
    }
    .schedule_panel {
        font-size: 1rem;
    }
    .nav-item {
        padding-top: initial; 
        padding-bottom: initial; 
    }     
    .overlay-content {
        max-width: 97%;
    }
    .overlay-xs {
        width: 384px !important;
    }

    .overlay-sm {
        width: 576px !important;
    }
    
    .overlay-md {
        width: 768px !important;
    }
    
    .overlay-lg {
        width: 992px !important;
    }
    
    header {
        position: fixed;
        top: 0;
        z-index: 1030;
    }
    main {
        margin-top: 0;
    }

    /* input size */
    .checkno {
        width: 7em !important;
        min-width: initial;
    }
    .user_id {
        width: 4em !important;
        min-width: initial;
    }

    .field-range-label {
        margin-top: 0px;
    }

    .disp-pc {
        display: block
    }

    .disp-non-pc {
        display: none
    }

    .form-check-input {
        width: 1em;
        height: 1em;
    }

    .form-check-label {
        padding-top: 0px;
        padding-left: 0px;
    }
}