: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: calc(100vh / var(--zoom-scale));
    position: fixed;
    top: 0;
    left: -230px;
    background-color: var(--ms-bg-slidebar);
    transition: left .4s ease-in-out;
    z-index: 1000;
}

@media (max-width: 1535.98px) {
    .is-sidebar .wrapper-layout .main-layout {
        margin-left: 0;
        width: 100%;
    }

    .is-sidebar .wrapper-header {
        width: 100%;
    }
}

.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;
}

.btn-close-sidebar {
    display: none;
    position: absolute;
    top: 10px;
    right: -44px;
    background: transparent;
    border: none;
    padding: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

body.sidebar-manual-open .wrapper-sidebar .btn-close-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-sidebar svg {
    width: 32px;
    height: 32px;
    stroke: #555;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.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: calc(100vh / var(--zoom-scale));
    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) / var(--zoom-scale));
    overflow-y: auto;
    overflow-x: auto;
}

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

/* =========================================================
 * GBM0200: sticky header + sticky left columns in matrix
 *  - keep month header visible while vertical scrolling
 *  - keep account + year label columns visible while horizontal scrolling
 * ========================================================= */
.gbm0200 .tableFixHead thead {
    /* Use per-cell sticky for better interaction with left-sticky columns */
    position: static;
}
.gbm0200 .tableFixHead tbody {
    /* Prevent tbody from becoming a scroll container (breaks sticky inside expanded sub tables) */
    height: auto;
    overflow: visible;
}
.gbm0200 .tableFixHead thead th {
    position: sticky;
    top: 0;
    z-index: 30;
    background-color: var(--bs-table-border);
    background-clip: border-box;
    /* Cover border seam to avoid seeing underlying text through sub-pixel gaps */
    box-shadow: 0 1px 0 var(--gbm0200-table-frame, #ddd);
}

/* GBM0200: unit label in top-left header block */
.gbm0200 .gbm0200-header-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}
.gbm0200 .gbm0200-unit-label {
    font-weight: normal;
    font-size: 0.85em;
    white-space: nowrap;
    color: #000;
}

/* Ensure header group itself is opaque (helps avoid 1px bleed above header) */
.gbm0200 .tableFixHead table.table-admin thead,
.gbm0200 .tableFixHead table.table-admin thead tr {
    background-color: var(--bs-table-border);
}

/* Mask the very top edge inside the scroll container to prevent any bleed-through */
.gbm0200 .tableFixHead::before {
    content: '';
    position: sticky;
    top: 0;
    left: 0;
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--gbm0200-table-frame, #ddd);
    z-index: 50;
    pointer-events: none;
}
/* Top-left header block (colspan=2) should stay on the left while horizontal scrolling */
.gbm0200 .tableFixHead thead tr th:first-child {
    left: 0;
    z-index: 40;
    background-color: #fff;
    background-clip: border-box;
    box-shadow: 1px 0 0 var(--gbm0200-table-frame, #ddd), 0 1px 0 var(--gbm0200-table-frame, #ddd);
}
/* Left 1st column: account (w-220) */
.gbm0200 .tableFixHead tbody td.w-220 {
    position: sticky;
    left: 0;
    z-index: 20;
    background-color: #fff;
    background-clip: border-box;
    box-shadow: 1px 0 0 var(--gbm0200-table-frame, #ddd);
}
/* Left 2nd column: year label (w-75) */
.gbm0200 .tableFixHead tbody td.w-75 {
    position: sticky;
    left: 220px;
    z-index: 19;
    background-color: #fff;
    background-clip: border-box;
    box-shadow: 1px 0 0 var(--gbm0200-table-frame, #ddd);
}
/* Preserve striping of the main table-collapse (it stripes per-row) */
.gbm0200 .tableFixHead .table-collapse tbody tr:nth-child(2n) td.w-220 {
    background-color: #f2f2f2;
}
.gbm0200 .tableFixHead .table-collapse tbody tr:nth-child(2n) td.w-75 {
    background-color: #f2f2f2;
}
/* Preserve striping of bootstrap .table-striped (it stripes per-cell via vars) */
.gbm0200 .tableFixHead .table.table-striped tbody td.w-220 {
    background-color: var(--bs-table-bg);
}
.gbm0200 .tableFixHead .table.table-striped tbody td.w-75 {
    background-color: var(--bs-table-bg);
}

/* GBM0200: make all body cells opaque so borders never “see through” */
.gbm0200 .tableFixHead {
    background-color: #fff;
    /* Outer frame */
    --gbm0200-table-frame: #ddd;
    border: 1px solid var(--gbm0200-table-frame);
}
.gbm0200 .tableFixHead table.table-admin tbody td {
    background-color: #fff;
    background-clip: border-box;
}
.gbm0200 .tableFixHead table.table-admin tbody tr:nth-child(2n) td {
    background-color: #f2f2f2;
}
.gbm0200 .tableFixHead table.table-admin tbody tr.budget-row td {
    background-color: #fff8cc !important;
}
/* Keep the account name cell color even when we force row backgrounds */
.gbm0200 .tableFixHead table.table-admin tbody td.bg-light-green {
    background-color: var(--ms-bg-slidebar) !important;
}

.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;
    --zoom-scale: 1;
    zoom: var(--zoom-scale);
    min-height: calc(100vh / var(--zoom-scale));
    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;
}

.gbm0200 .select2-container--open {
    z-index: 900 !important;
}

.gbm0200 .select2-container--bootstrap-5 .select2-dropdown {
    z-index: 900 !important;
}

.gbm0200 .select2-dropdown {
    z-index: 900 !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: ensure the page container stretches vertically even when using zoom */
.content.gbm0200 {
    min-height: calc((100vh / var(--zoom-scale)) - 60px);
    display: flex;
    flex-direction: column;
    /* Page itself should not scroll; only the table area should scroll */
    height: calc((100vh / var(--zoom-scale)) - 60px);
    max-height: calc((100vh / var(--zoom-scale)) - 60px);
    overflow: hidden;
}
.content.gbm0200 > .dashboard {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.gbm0200 {
    margin-top: 0;
}
.gbm0200 .list-pattern {
    padding-top: 20px;
    padding-bottom: 20px;
    position: static;
    top: auto;
    background: #fff;
    z-index: 1;
    margin-bottom: 0;
}

.gbm0200 .container-dashboard {
    padding-top: 0;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.gbm0200 .container-dashboard form {
    padding-top: 20px;
    padding-bottom: 20px;
    position: static;
    top: auto;
    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: static;
    top: auto;
    z-index: 9;
}

/* GBM0200: table area takes the remaining height and scrolls internally */
.gbm0200 .tableFixHead {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

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

/* gbm0200 フィルター・ボタン文字サイズ縮小 */
.gbm0200 .container-search label,
.gbm0200 .container-search .form-select,
.gbm0200 .container-search .form-control,
.gbm0200 .container-search .btn {
    font-size: 13px;
}

/* フィルター内のセレクトボックス */
.gbm0200 .container-search .form-select {
    padding: 6px 10px;
}

/* キャンセル・保存ボタンの文字を1行に */
.gbm0200 .container-search #btnCancelBudget,
.gbm0200 .container-search #btnSaveBudget {
    white-space: nowrap;
    min-width: 80px;
}

/* 勘定科目（複数選択）: 高さ固定 + 件数表示 */
.account-multi-select + .select2-container .select2-selection--multiple {
    position: relative;
    min-height: 40px !important;
    max-height: 40px;
    height: 40px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0 10px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.account-multi-select + .select2-container .select2-selection--multiple .select2-selection__rendered {
    padding: 0 !important;
    margin: 0 !important;
}

.account-multi-select + .select2-container .select2-selection--multiple .select2-selection__choice,
.account-multi-select + .select2-container .select2-selection--multiple .select2-search--inline {
    display: none;
}

.account-multi-select + .select2-container .select2-selection--multiple::after {
    content: attr(data-selection-summary);
    color: #495057;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* 勘定科目フィルター: optgroup ラベルを非インタラクティブなヘッダーとして明示 */
.account-multi-select ~ * .select2-results__option--group,
.select2-container--open .select2-results__option--group {
    background-color: #fff;
    color: #666;
    cursor: default;
    font-size: 0.875em;
    font-weight: bold;
}

/* 勘定科目フィルター: 4桁勘定科目 option を選択可能と視覚的に示す */
.account-parent-option {
    font-style: italic;
    color: #0d6efd;
}

/* 選択済み4桁科目: 青選択背景(#0d6efd)に対して白文字にする */
.account-filter-dropdown .select2-results__option--selected .account-parent-option {
    color: #fff !important;
}

/* hover（ハイライト）時: 灰色を青背景+白文字に統一 */
.account-filter-dropdown .select2-results__option--highlighted {
    background-color: #0d6efd !important;
    color: #fff !important;
}

/* hover時の4桁科目span: 青継承ではなく明示的に白文字 */
.account-filter-dropdown .select2-results__option--highlighted .account-parent-option {
    color: #fff !important;
}

/* 勘定科目フィルター: ドロップダウン内カスタム検索ボックス */
.account-select2-search-wrap {
    border-bottom: 1px solid #dee2e6;
}
.account-select2-search-wrap input {
    font-size: 13px;
}

.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;
}

/* =========================================================
 * Viewport-based scaling (Chrome/Edge)
 *  - <=1536px: 90%
 *  - <=1280px: 67%
 * ========================================================= */
@media (max-width: 1536px) {
    body {
        --zoom-scale: 0.9;
    }
}
@media (max-width: 1280px) {
    body {
        --zoom-scale: 0.67;
    }
}

.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;
}
