:root{
    --bs-color-green: #008350;
    --bs-table-border: #008350;
    --ms-normal-color: #227444;
    --ms-normal-color-slidebar: #00562B;
    --ms-bg-slidebar: #E0EBD6;
    --bs-primary-text-emphasis: #000;
    --bs-bg-color: #198754;
    --bs-color-icon-edit: #89C681;
    --color-paging:#008350;
    --btn-default:#9B9D99;
    --btn-c-red:#F02323;
    --btn-modal-bg:#e0ebd6;
}
/* do not group these rules */
.form-control::-webkit-input-placeholder {
    color: #C3C3C3;
}
.form-control:-moz-placeholder {
    /* FF 4-18 */
    color: #C3C3C3;
    opacity: 1;
}
.form-control::-moz-placeholder {
    /* FF 19+ */
    color: #C3C3C3;
    opacity: 1;
}
.form-control:-ms-input-placeholder {
    /* IE 10+ */
    color: #C3C3C3;
}
.form-control::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #C3C3C3;
}
.form-control::placeholder {
    /* modern browser */
    color: #C3C3C3;
}
.is-sidebar .wrapper-layout .main-layout {
    margin-left: 230px;
    width: calc(100% - 230px)
}

.is-sidebar .wrapper-header {
    width: calc(100% - 230px)
}

.is-sidebar .wrapper-sidebar {
    left: 0
}
.is-sidebar .content {
    margin-left: 0;
}

.content {
    padding: 20px;
    margin-left: 10px;
}

.wrapper-layout .main-layout {
    margin-left: 0;
    width: 100%;
    padding-top: 60px;
    transition: all .4s ease-in-out
}

.wrapper-header {
    background-color: #fff;
    height: 60px;
    top: 0;
    position: fixed;
    padding: 10px;
    border-bottom: thin solid #ccc;
    transition: all .4s ease-in-out;
    width: 100%;
    z-index: 2;
}

.wrapper-sidebar {
    min-width: 220px;
    border-right: thin solid #ccc;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -230px;
    background-color: var(--ms-bg-slidebar);
    transition: left .4s ease-in-out;
    z-index: 2;
}

.wrapper-sidebar .main-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%
}

.wrapper-sidebar .main-sidebar ul {
    padding-left: 0;
}

.wrapper-sidebar .main-sidebar ul li {
    list-style: none
}

.wrapper-sidebar .logo-sidebar {
    background: var(--ms-normal-color-slidebar);
    padding: 14px 11px;
    color: #fff;
}

.wrapper-sidebar .logo-sidebar .logo {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.wrapper-sidebar .logo-sidebar .logo img {
    border-radius: 50%;
    width: 36px;
    margin-right: 7px;
}

.wrapper-sidebar .list-item-menu .item-menu {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    color: var(--ms-normal-color-slidebar);
    font-size: 18px;
}

.wrapper-sidebar .list-item-menu .item-menu .icon-item-menu {
    min-width: 30px
}

.wrapper-sidebar .list-item-menu .item-menu:hover {
    border-right: 3px solid #13B236;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
}

.wrapper-sidebar .container-user-sidebar {
    padding: 10px
}

.wrapper-sidebar .container-user-sidebar .user-sidebar {
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer
}

.wrapper-sidebar .container-user-sidebar .user-sidebar .image-user-sidebar {
    width: 50px
}

.container-dashboard .collapse {
    visibility: inherit
}

html {
    overflow-x: hidden
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

.wrapper {
    min-height: 100vh;
    min-width: 100vw
}

.flex-1 {
    flex: auto 1 1
}

.no-data {
    text-align: center;
    color: #999;
    padding: 80px 40px
}

.container-dashboard {
    padding: 20px;
    background-color: #f6f5f5
}

.container-dashboard .btn-search, .btn-calculate {
    background-color: var(--bs-bg-color);
    color: #fff;
    border-radius: 5px;
    height: 40px;
    padding: 0 20px
}

.btn-clear {
    background-color: #9b9d99;
    color: #fff;
    border-radius: 5px;
    height: 40px;
    padding: 0 20px
}

.list-pattern {
    margin-bottom: 20px
}

.list-pattern .btn-pattern {
    padding: 0 20px;
    border-radius: 50px;
    min-width: 120px;
    height: 40px;
    color: #fff;
    background-color: #9b9d99
}

.list-pattern .btn-pattern.active {
    background-color: var(--bs-table-border);
}

.list-pattern .btn-budget, .list-pattern .budget-confirm {
    padding: 0 20px;
    border-radius: 10px !important;
    min-width: 120px;
    height: 40px;
    color: #000;
    box-shadow: 0 3px 5px 0 #9B9D99;
}

.list-pattern .budget-confirmed {
    background-color: #9ad7eb
}

.list-pattern .budget-reference {
    background-color: #f42153
}

.list-pattern .btn-budget:disabled {
    background: white;
    color: #aeaeae;
}

.gap-10 {
    gap: 10px
}

.gap-15 {
    gap: 15px
}

.gap-20 {
    gap: 20px
}

.gap-25 {
    gap: 25px
}

.gap-30 {
    gap: 30px
}

.min-w-70 {
    min-width: 70px
}

.min-w-100 {
    min-width: 100px
}

.min-w-120 {
    min-width: 120px
}

.min-w-150 {
    min-width: 150px
}

.min-w-155 {
    min-width: 155px
}

.min-w-160 {
    min-width: 160px
}

.min-w-167 {
    min-width: 167px
}

.min-w-170 {
    min-width: 170px
}

.min-w-180 {
    min-width: 180px
}

.min-w-190 {
    min-width: 190px
}

.min-w-200 {
    min-width: 200px
}

.min-w-250 {
    min-width: 250px
}

.min-w-300 {
    min-width: 300px
}

.w-60 {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
}

.w-75 {
    width: 75.5px !important;
    min-width: 75.5px !important;
    max-width: 75.5px !important;
}

.w-70 {
    width: 70px
}

.w-120 {
    width: 120px
}

.w-140 {
    width: 140px
}

.w-150 {
    width: 150px
}

.w-155 {
    width: 155px
}

.w-160 {
    width: 160px
}

.w-165 {
    width: 165px
}

.w-170 {
    width: 170px
}

.w-175 {
    width: 175px
}

.w-220 {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
}

.w-185 {
    width: 185px
}

.w-180 {
    width: 180px
}

.w-190 {
    width: 190px
}

.w-200 {
    width: 200px
}

.w-280 {
    width: 280px
}

.w-210 {
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
}

.red {
    color: #f00 !important;
}

.ml-20 {
    margin-left: 20px !important;
}

.d-flex {
    display: flex
}

.align-items-center {
    align-items: center
}

.justify-content-space-between {
    justify-content: space-between
}

.underline {
    text-decoration: underline !important;
}

.c-pointer {
    cursor: pointer
}

.c-default {
    cursor: default !important;
}

.text-base--green {
    color: var(--bs-color-green);
    text-decoration: underline;
    font-size: 12px;
}

.tableFixHead {
    max-height: calc(100vh - 315px);
    overflow-y: auto;
    overflow-x: auto;
}

.tableFixHead thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.tableFixHead thead th:after {
    content: ' ';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.tableFixHead thead th::before {
    content: ' ';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.tableFixHead tbody {
    height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
}
.tableFixHead .table.table-striped tbody {
    height: auto;
}

.table-collapse {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.table-collapse thead tr {
    background-color: var(--bs-table-border);
    color: #fff
}

.table-collapse thead tr th:first-child {
    background-color: #fff
}

.table-collapse-custom.table-collapse thead tr th:first-child,
.table-collapse-custom-child.table-collapse thead tr th:first-child{
    background-color: transparent;
}

.table-collapse th,.table-collapse td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    line-height: 28px;
}

.table-admin.table-collapse th, .table-collapse td {
    padding: 5px;
}

.table-collapse tr:nth-child(2n) {
    background-color: #f2f2f2
}

.table-collapse .hidden-row {
    padding: 0 !important;
}

.table-collapse .hidden-row table {
    margin-bottom: 0
}

.table-collapse th {
    font-size: 14px;
    font-weight: 400;
}

.table-collapse td {
    font-size: 13px
}

@media screen and (max-width: 1550px) {
    .table-collapse th {
        font-size:12px
    }

    .text-sub-budget {
        font-size: 11px !important;
    }

    .table-collapse td {
        font-size: 12px;
    }

    .block-search {
        flex-direction: column;
        align-items: unset !important;
    }
}

.table-collapse .accordion {
    --bs-accordion-border-color: #f6f5f5
}

.table-collapse .accordion-button, .table-collapse .accordion-toggle {
    background-color: #f6f5f5;
    font-size: 15px;
}

.table-admin.table-collapse .accordion-button {
    padding: 0 8px;
}

:root {
    font-family: Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;
    line-height: 1.5;
    font-weight: 400;
    color-scheme: light dark;
    color: #ffffffde;
    background-color: #242424;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

a {
    font-weight: 500;
    color: #008350;
    text-decoration: inherit
}

a:hover {
    color: #13B236
}

body {
    margin: 0;
    display: flex;
    place-items: center;
    min-width: 320px;
    min-height: 100vh;
    color: #000;
    font-size: 15px;
    font-family: "Yu Gothic Medium", "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", Meiryo, sans-serif;
}

h1 {
    font-size: 3.2em;
    line-height: 1.1
}

button, .button {
    border-radius: 8px;
    border: 1px solid transparent;
    padding: .6em 1.2em;
    font-size: 1em;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .25s
}

button:hover {
    border-color: #003586
}

button:focus,button:focus-visible {
    outline: 4px auto -webkit-focus-ring-color
}

@media (prefers-color-scheme: light) {
    :root {
        color:#213547;
        background-color: #fff
    }

    a:hover {
        color: var(--ms-normal-color-slidebar);
    }

    button {
        background-color: #f9f9f9
    }
}

.c-quick-signt-link {
    background-color: var(--bs-color-green);
    color: white;
    padding: 4px 36px;
    border-radius: 8px;
}

.c-quick-signt-link:hover {
    background-color: var(--bs-color-green);
    color: white;
}

.c-header-user {
    background-color: var(--bs-table-border);
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 3px 5px 0 #9B9D99;
}

.c-download {
    height: 40px;
    box-shadow: 0 3px 5px 0 #9B9D99;
    background-color: #fff;
    color: #000;
    padding: 0 20px;
}

.c-download i, .c-recal i {
    color: var(--bs-color-green);
}

.dropdown-menu li a {
    color: var(--bs-primary-text-emphasis);
}

.dropdown-menu li:hover {
    background: var(--bs-bg-color);
}

.dropdown-menu li:hover a {
    color: #fff;
}

.accordion-button {
    padding: 1rem 0;
}

.not-accordion {
    text-align: left;
    padding: 0 8px;
}

.text-bold {
    font-weight: 500;
}

.icon-pencil {
    color: var(--bs-color-icon-edit);
    padding-right: 7px;
    cursor: pointer;
}

.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),
.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,
.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select,
.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
    border-radius: var(--bs-border-radius);
}

.form-control, .form-select {
    min-height: 40px;
}

/* paging */

.per_page {
    width: 100px;
    min-width: 100px;
    border-color: var(--color-paging);
}

.paging {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
    margin-bottom: 0;
}

.page-link {
    font-size: 14px !important;
}

.paging .paging-items {
    display: flex;
    color: var(--color-paging);
    border: 1px solid var(--color-paging);
    background: #fff;
    border-radius: 3px;
    font-size: 12px;
}

.paging .paging-items .page-link {
    cursor: pointer;
    border-right: 1px solid var(--color-paging);
    padding: 4px 15px;
    font-weight: 700;
}

.paging .paging-items .page-link:hover {
    background-color: var(--color-paging);
    color: #ffffff;
}

.paging .paging-items .active {
    background-color: var(--color-paging);
    color: #ffffff;
    cursor: default;
}

.paging .paging-items .page-link:last-of-type {
    border-right: unset;
}

.paging .paging-item a {
    border: 1px solid var(--color-paging);
    background: #fff;
    border-radius: 3px;
    color: var(--color-paging);
    cursor: pointer;
    display: block;
    padding: 4px 10px;
    font-size: 12px;
}

.paging .paging-item a:hover {
    background-color: var(--color-paging);
    color: #ffffff;
    cursor: pointer;
}

.paging .paging-item a i{
    font-size: 14px;
}
/* end-paging */

.container-search {
    border-radius: 5px;
    background-color: #FFFFFF;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
    padding: 20px 10px 20px 20px;
    margin-bottom: 20px;
}

.radio-check .form-check-input:not(:checked), .form-check-input:not(:checked) {
    border-color: rgb(0, 0, 0);
}

.breadcrumb li a {
    text-decoration: underline;
}

.btn-default, .c-btn-outline-secondary, .list-pattern .budget-confirm  {
    border: 1px solid var(--btn-default);
    border-radius: 5px;
    height: 40px;
    padding: 0 20px;
}

.c-btn-outline-secondary {
    background: var(--btn-c-red);
    color: #fff !important;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

.modal-header .modal-title {
    font-size: 16px;
    font-weight: 600;
}

.rounded-3 {
    background: var(--btn-modal-bg);
    font-weight: 500;
}

.text-left, .table-collapse-custom tr th, .table-collapse-custom tr td {
    text-align: left;
    font-size: 15px;
}

.table-collapse-custom .link {
    color: #008350;
    text-decoration: underline;
}

.input-group-addon {
    height: 24px;
    color: var(--ms-normal-color-slidebar);
    position: absolute;
    right: 20px;
    top: 8px;
}

.ms-c-1{
    min-width: 30px;
    text-align: center;
}

.budget-c-confirmed {
    background-color: #F15A24 !important;
}

.icon-maquette {
    font-size: 13px !important;
}

.btn-sm {
    height: 30px;
}

.btn-c-pattern {
    background: transparent;
    border-radius: 0;
    color: var(--bs-primary-text-emphasis);
}
.btn-c-pattern.active  {
    border-bottom: 4px solid #198754;
    font-weight: bold;
}
.btn-c-pattern:hover {
    border-color: transparent;
    border-bottom: 4px solid #198754;
}

.alert {
    font-size: 14px;
    padding: 10px 15px;
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
    z-index: 1;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search {
    padding: 6px 6px;
}

select+.select2-container--bootstrap-5 {
    min-width: 180px;
}

.table-collapse-custom-child select+.select2-container--bootstrap-5 {
    width: 180px !important;
}

select+.select2-container--bootstrap-5 {
    width: 180px !important;
}

.gbm1110 .table-collapse-custom-child select+.select2-container--bootstrap-5 {
    width: 215px !important;
}

.gbm1010 select+.select2-container--bootstrap-5,
.gbm1010 select#i_2nd_department_select,
.gbm1010 select#account {
    width: 250px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.c-dialog-confirm .modal-header {
    background-color: var(--bs-bg-color);
    color: #fff;
}

.c-dialog-confirm .btn-yes-confirm {
    background-color: var(--bs-bg-color);
    color: #fff;
}

.c-dialog-alert .modal-header {
    background-color: var(--btn-c-red);
    color: #fff;
}

.c-dialog-alert #btn-close {
    background-color: var(--btn-c-red);
    color: #fff;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.gbm0200 .table-collapse .hidden-row {
    border: none !important;
}

.gbm0200 .table-collapse th, td {
    white-space: nowrap;
}

.gbm0200 .text-end {
    width: 90px;
    min-width: 90px;
}

.action-disabled {
    pointer-events: none;
    cursor: default;
}

.gbm0200 .budget_input {
    width: 100%;
}

/* table scroll */
.content {
    padding-top: 0;
    margin-top: 1rem;
}
.gbm0200 {
    margin-top: 0;
}
.gbm0200 .list-pattern {
    padding-top: 20px;
    padding-bottom: 20px;
    position: sticky;
    top: 60px;
    background: #fff;
    z-index: 1;
    margin-bottom: 0;
}

.gbm0200 .container-dashboard {
    padding-top: 0;
}

.gbm0200 .container-dashboard form {
    padding-top: 20px;
    padding-bottom: 20px;
    position: sticky;
    top: 140px;
    background-color: #f6f5f5;
    z-index: 1;
    margin: 0 !important;
}

.gbm0200 #header-fixed {
    display: none;
}

.gbm0200 #header-fixed th {
    padding: 5px;
    min-width: 56px;
}

.gbm0200 .table-fixed {
    overflow: hidden;
    position: sticky;
    top: 220px;
    z-index: 9;
}

.gbm0200 .table-admin.table-collapse th, .gbm0200 .table-collapse td {
    padding: 2px;
}


.custom-tooltip {
    --bs-tooltip-bg: var(--bs-color-green) !important;
    z-index: 1;
    font-size: 13px;
}


.c-recal, .tooltip >.tooltip-inner {
    border: 1px solid #ccc;
}

.tooltip >.tooltip-inner {
    color: #fff;
    padding: 8px;
}

.c-recal {
    background-color: #fff;
    color: #000;
}

.text-error {
    text-align: left;
    line-height: 15px;
    letter-spacing: .3px;
    padding-right: 15px;
    margin: 0 0;
}

.form-select.is-invalid:not([multiple]):not([size]),
.form-select.is-invalid:not([multiple])[size="1"],
.was-validated .form-select:invalid:not([multiple]):not([size]),
.was-validated .form-select:invalid:not([multiple])[size="1"] {
    --bs-form-select-bg-icon: none;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInDown {
    -webkit-animation-name: fadeInDown;
    -moz-animation-name: fadeInDown;
    -o-animation-name: fadeInDown;
    animation-name: fadeInDown;
}

.has-danger {
    border: 1px solid #f00 !important;
    border-radius: 6px;
    border-color: #f00 !important;
}

button:disabled {
    cursor: default !important;
}

.text-green {
    color: var(--bs-color-green);
}

/**
 * Remove the default password reveal eye icon in the password field for Microsoft Edge
 */
::-ms-reveal {
    display: none
}

.password {
    padding-right: 40px;
}

.modal-dialog .modal-header {
    align-items: center;
    background: var(--bs-table-border);
    color: #fff;
    cursor: move;
    padding: 8px 15px;
}

.text-pre-line {
    white-space: pre-line;
}

#department_cd_2nd_level,
#department_cd_3rd_level,
#department_cd_4th_level,
#department_cd_5th_level {
    width: 180px;
    min-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gbm1100 .table-collapse-custom th {
    word-break: keep-all;
}

.active>.page-link, .page-link.active {
    z-index: unset;
}

button.disabled, button[disabled]{
    cursor: default !important;
    border: none !important;
}

.title-screen {
    font-size: 20px;
}

.bg-light-green {
    background-color: var(--ms-bg-slidebar) !important;
}

.shadow-none {
    box-shadow: none !important;
}

#department_name {
    color: #000;
    padding-left: 8px;
}
