@charset "UTF-8";
body {
  font-family: "Noto Sans JP", sans-serif;
}

/* >>> override AdminLTE */
.login-page {
  background-color: #FFF;
}

.login-box {
  width: 100%;
}
.login-box h1 {
  font-size: 4.5rem;
  font-weight: 550;
  line-height: 0.8;
}
.login-box h2 {
  font-size: 3.5rem;
  font-weight: 550;
}

.login-box .brand-image {
  width: 250px;
}

.login-input-area {
  width: 500px;
  font-size: 1.5rem;
}
.login-input-area .form-control {
  font-size: 1.25rem;
  height: calc(2.75rem + 2px);
  color: #000000;
}
.login-input-area .form-control::-moz-placeholder {
  color: #000000;
}
.login-input-area .form-control::placeholder {
  color: #000000;
}
.login-input-area .form-control:focus {
  border-color: #004EA2;
}
.login-input-area .input-group-text {
  background-color: #004EA2;
  color: #FFF;
}

.btn-login {
  background-color: #004EA2;
  color: #FFF;
  font-weight: 550;
  font-size: 1.5rem;
  width: 350px;
  padding: 0.75rem 0.75rem;
}

.card-header > .card-tools {
  float: left;
}

footer.main-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1030;
}

.content-wrapper {
  padding-top: 57px;
  padding-bottom: 75px;
}

.dataTable thead th, th {
  background-color: #ebf6fd;
  text-align: center;
}

.dataTable tbody tr td, td {
  position: sticky;
  background-color: white;
}

.dataTable tbody tr.bg-warning-light td {
  background-color: #FFF799;
}

.dataTable tbody tr.bg-danger-light td {
  background-color: #F4A69C;
}

.dataTable thead .sorting, .dataTable thead .sorting_asc, .dataTable thead .sorting_desc {
  vertical-align: middle;
}

table.dataTable > thead .sorting:before, table.dataTable > thead .sorting:after {
  bottom: unset;
  display: unset;
}

.table-wrapper-max-w-500 {
  max-width: 500px;
}

.table-wrapper-max-w-800 {
  max-width: 800px;
}

.table-wrapper-max-w-900 {
  max-width: 900px;
}

.table-wrapper-max-w-1000 {
  max-width: 1000px;
}

.table-wrapper-max-w-1200 {
  max-width: 1200px;
}

.table-wrapper-max-w-1400 {
  max-width: 1400px;
}

.table-wrapper-max-w-1200 table thead tr .table-hutanbusyo-name-width {
  width: 25%;
}

.double-border {
  border-top: 3px double #000 !important;
}

#budget-tab-contents {
  height: calc(100vh - 325px);
  overflow-y: scroll;
}

.required::before {
  content: "* ";
  color: red;
  vertical-align: middle;
}

.required-cont::before {
  content: "** ";
  color: red;
  vertical-align: middle;
}

[aria-invalid=true],
.error_field {
  border: 1px solid red;
  background-color: #ffdddd;
}

.select2-container--bootstrap4 .select2-selection[aria-invalid=true] {
  border: 1px solid red;
  background-color: #ffdddd;
}

.with-title-box {
  position: relative;
  margin: 0 0;
  padding: 1em 1em;
  border: solid 1px #adb5bd;
  border-radius: 8px;
}
.with-title-box .box-title {
  position: absolute;
  display: inline-block;
  top: -10px;
  left: 10px;
  padding: 0 9px;
  line-height: 1;
  background: #FFF;
}

.diagonal-cell {
  background-image: linear-gradient(to right top, transparent calc(50% - 1px), #dee2e6 50%, #dee2e6 calc(50% + 1px), transparent calc(50% + 1px));
}

.dataTable tbody tr td.error_field {
  background-color: #ffdddd;
}

.required::before {
  content: "* ";
  color: red;
  vertical-align: middle;
}

.dataTable tbody tr.bg-danger-light td {
  background-color: #F4A69C;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(200, 200, 200, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* オーバーレイ内のコンテンツ */
.overlay-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: black;
  font-size: 1.5em;
}

#budget-list tbody tr td:nth-child(2) {
  padding-top: 0;
  padding-bottom: 0;
  vertical-align: middle;
  text-align: center;
}

.action-checkbox {
  text-align: center;
}

.custom-select {
  overflow: hidden; /* 溢れた部分を隠す */
  text-overflow: ellipsis; /* 溢れた部分を「...」にする */
  white-space: nowrap; /* 1行で表示 */
}

/* <<< override AdminLTE */
/* >>> override Bootstrap */
.container {
  max-width: 100%;
}

/* <<< override Bootstrap */
#attachments-table .attachments-comment {
  min-width: 25rem;
}

.select2-container--bootstrap4 .select2-selection__clear {
  padding-left: 0;
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__arrow {
  position: absolute;
  top: 50%;
  right: 3px;
  width: 20px;
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__arrow b {
  position: absolute;
  top: 60%;
  left: 50%;
  width: 0;
  height: 0;
  margin-top: -2px;
  margin-left: -4px;
  border-color: #343a40 transparent transparent;
  border-style: solid;
  border-width: 5px 4px 0;
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
  padding-left: 0.75rem;
  line-height: calc(1.5em + 0.75rem);
  color: #495057;
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered .select2-search--inline .select2-search__field {
  margin-top: 0;
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear {
  top: 0;
  bottom: 0;
  margin: auto;
  right: 1.5em;
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
  padding-right: 0.5rem;
}

.select2-selection--multiple .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap !important;
  overflow: hidden;
}
.select2-selection--multiple .select2-selection__choice {
  margin-bottom: 5px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 40px); /* ×ボタン分の余白を確保 */
}

.select2-pre-init {
  visibility: hidden;
  height: 44px !important; /* 隠れているときの縦幅と表示されたときの縦幅の差異をなくすため */
}

.company_cd {
  max-width: 10rem;
}

#plan-relation-table th.keikaku_kingaku {
  min-width: 12rem;
}

#plan_aggregate_table th.nendo {
  min-width: 5rem;
}
#plan_aggregate_table th.kianziki {
  min-width: 5rem;
}
#plan_aggregate_table th.yosan-type {
  min-width: 5rem;
}
#plan_aggregate_table th.sogaku {
  min-width: 11rem;
}
#plan_aggregate_table th.koteisisan {
  min-width: 11rem;
}
#plan_aggregate_table th.lease {
  min-width: 11rem;
}
#plan_aggregate_table th.keihi {
  min-width: 11rem;
}

#plan_regist_table th.nendo {
  min-width: 7rem;
}
#plan_regist_table th.keikaku-type {
  min-width: 11rem;
}
#plan_regist_table th.kianziki {
  min-width: 7rem;
}
#plan_regist_table th.yosan-type {
  min-width: 7rem;
}
#plan_regist_table th.kaisya-type {
  min-width: 12rem;
}
#plan_regist_table th.keikaku-no {
  min-width: 10rem;
}
#plan_regist_table th.kurikosimoto-keikaku-no {
  min-width: 10rem;
}
#plan_regist_table th.name {
  min-width: 25rem;
}
#plan_regist_table th.kaisya-cd {
  min-width: 8rem;
}
#plan_regist_table th.kaisya {
  min-width: 25rem;
}
#plan_regist_table th.bu-cd {
  min-width: 8rem;
}
#plan_regist_table th.bu {
  min-width: 25rem;
}
#plan_regist_table th.zigyozyo-cd {
  min-width: 9rem;
}
#plan_regist_table th.zigyozyo {
  min-width: 25rem;
}
#plan_regist_table th.kianbusyo-cd {
  min-width: 10rem;
}
#plan_regist_table th.kianbusyo {
  min-width: 25rem;
}
#plan_regist_table th.tantosya-cd {
  min-width: 9rem;
}
#plan_regist_table th.tantosya {
  min-width: 25rem;
}
#plan_regist_table th.tuka {
  min-width: 8rem;
}
#plan_regist_table th.tuka-rate {
  min-width: 10rem;
}
#plan_regist_table th.sogaku {
  min-width: 13rem;
}
#plan_regist_table th.koteisisan {
  min-width: 13rem;
}
#plan_regist_table th.lease {
  min-width: 13rem;
}
#plan_regist_table th.keihi {
  min-width: 13rem;
}
#plan_regist_table th.company-satei-kingaku {
  min-width: 13rem;
}
#plan_regist_table th.kino-type {
  min-width: 25rem;
}
#plan_regist_table th.tyakko-nengetu {
  min-width: 12rem;
}
#plan_regist_table th.kanko-nengetu {
  min-width: 12rem;
}
#plan_regist_table th.keitai-type {
  min-width: 20rem;
}
#plan_regist_table th.keitai-wariai {
  min-width: 6rem;
}
#plan_regist_table th.syokyaku-kaisi-nengetu {
  min-width: 12rem;
}
#plan_regist_table th.hutan-busyo-cd {
  min-width: 8rem;
}
#plan_regist_table th.hutan-busyo {
  min-width: 25rem;
}
#plan_regist_table th.hutan-wariai {
  min-width: 6rem;
}
#plan_regist_table th.roi {
  min-width: 8rem;
}
#plan_regist_table th.keisan-kikan {
  min-width: 9rem;
}
#plan_regist_table th.rieki-zogaku {
  min-width: 13rem;
}
#plan_regist_table th.biko {
  min-width: 105rem;
}
#plan_regist_table th.key {
  min-width: 14rem;
}
#plan_regist_table th.key {
  min-width: 14rem;
}
#plan_regist_table th.key {
  min-width: 14rem;
}
#plan_regist_table th.key {
  min-width: 14rem;
}
#plan_regist_table th.zigyozyo-key {
  min-width: 14rem;
}
#plan_regist_table th.zigyozyo-key {
  min-width: 14rem;
}
#plan_regist_table th.zigyozyo-key {
  min-width: 14rem;
}
#plan_regist_table th.zigyozyo-key {
  min-width: 14rem;
}

.table-wrapper:has(#master_rate_registered_rate_table) {
  max-height: 29.4rem;
  overflow-y: auto;
  position: sticky;
}

#master_rate_registered_rate_table th.nendo {
  min-width: 6.25rem;
  max-width: 6.25rem;
}
#master_rate_registered_rate_table th.quarter {
  min-width: 9.375rem;
  max-width: 9.375rem;
}
#master_rate_registered_rate_table th.tuka {
  min-width: 6.25rem;
  max-width: 6.25rem;
}
#master_rate_registered_rate_table th.kansan_rate {
  min-width: 12.5rem;
  max-width: 12.5rem;
}
#master_rate_registered_rate_table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.table-wrapper:has(#master_rate_edit_rate_table) {
  max-height: 33rem;
  overflow-y: auto;
  position: sticky;
  max-width: 350px;
}

#master_rate_edit_rate_table th.tuka {
  min-width: 6.25rem;
  max-width: 6.25rem;
}
#master_rate_edit_rate_table th.rate {
  min-width: 12.5rem;
  max-width: 12.5rem;
}
#master_rate_edit_rate_table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.main-header .navbar-nav > .nav-item > .nav-link {
  color: #000000;
}
.main-header .navbar-nav > .nav-item > .nav-link:hover {
  color: gray;
}

.main-header .navbar-nav > .nav-link {
  color: #000000;
}
.main-header .navbar-nav > .nav-link:hover {
  color: gray;
}

.dropdown-item {
  color: #000000;
}

.dropdown-submenu {
  position: relative;
}
.dropdown-submenu.dropdown-menu {
  top: 70%;
  left: 100% !important;
  margin-top: -1px;
  margin-left: 0;
}
.dropdown-submenu:hover .dropdown-menu {
  display: block;
}

.dropdown-menu-xl {
  max-width: 560px;
  min-width: 500px;
}

.main-header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1031;
}

.bootstrap-switch.bootstrap-switch-focused {
  border-color: #ccc;
  box-shadow: inset 0 0 0;
}

.bootstrap-switch .bootstrap-switch-handle-on,
.bootstrap-switch .bootstrap-switch-handle-off {
  width: 140px !important;
}

.bootstrap-switch .bootstrap-switch-label {
  width: 30px !important;
}

/* <<< override Bootstrap */
/* >>> override Dropzone.js */
.dropzone.dz-drag-hover, .dropzone:hover {
  opacity: 0.2;
  background-color: lightgray;
}

/* <<< override Dropzone.js */
/* >>> override ion.rangeSlider.js */
.irs--flat .irs-min, .irs--flat .irs-max {
  color: white;
  background-color: #212529;
}

/* <<< override ion.rangeSlider.js */
.table-wrapper {
  width: 100%;
}

.paginate_button .disabled-button {
  pointer-events: none;
  color: black;
}

.custom-number-input {
  display: inline-block;
  width: 100%;
  height: calc(2.25rem + 2px);
  padding: 0.375rem 1.75rem 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  vertical-align: middle;
  background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") right 0.75rem center/8px 10px no-repeat;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#alert-container {
  left: 0;
  width: 100%;
  z-index: 1056;
  padding: 0;
  margin-bottom: 0.8rem;
}
#alert-container .alert {
  border-radius: 0;
  margin-bottom: 0;
}

.alert-clickable {
  cursor: pointer;
}

fieldset.custom-fieldset {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 1rem 0rem 1rem 1rem;
  margin-left: 0.1rem;
}

legend.fieldset-legend {
  width: auto;
  font-size: medium;
}

.field-border {
  border-top: 1px solid #d1d5db;
}

.spin-button-container-generated {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  overflow: hidden;
  background-color: white;
  width: 100%;
  height: calc(2.25rem + 2px);
}

.input-year-wrapper-generated {
  display: flex;
  align-items: center;
  position: relative;
  flex-grow: 1;
  justify-content: flex-start;
}
.input-year-wrapper-generated::before, .input-year-wrapper-generated::after {
  font-size: 1rem;
  color: #555;
  pointer-events: none;
  display: none;
  align-items: center;
  box-sizing: unset;
}
.input-year-wrapper-generated.lang-ja::after {
  content: "年度";
  padding-left: 0;
  order: 2;
  flex-shrink: 0;
  font-size: 0.8rem;
}
.input-year-wrapper-generated.lang-ja:not(.empty)::after {
  display: inline-flex;
}
.input-year-wrapper-generated.lang-ja:not(.empty) input.custom-year-spin-input {
  padding-right: 0;
  width: 3.25rem;
}
.input-year-wrapper-generated.lang-en::before {
  content: "FY";
  order: 0;
  padding-left: 1rem;
}
.input-year-wrapper-generated.lang-en:not(.empty)::before {
  display: inline-flex;
}
.input-year-wrapper-generated.lang-en:not(.empty) input.custom-year-spin-input {
  text-align: center;
}
.input-year-wrapper-generated.lang-en.empty input.custom-year-spin-input, .input-year-wrapper-generated.lang-ja.empty input.custom-year-spin-input {
  text-align: center;
}

input.custom-year-spin-input {
  width: 4rem;
  height: 100%;
  padding: 0 0.3125rem;
  border: none;
  text-align: center;
  font-size: 1rem;
  outline: none;
  -moz-appearance: textfield;
  background-color: transparent;
  color: inherit;
  order: 1;
  min-width: 0;
}
input.custom-year-spin-input::-webkit-outer-spin-button, input.custom-year-spin-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0;
}

.spin-button-controls-generated {
  display: flex;
  flex-direction: column;
  margin-right: 0.3125rem;
  margin-left: 0.3125rem;
}
.spin-button-controls-generated button {
  background-color: transparent;
  border: none;
  padding: 0.0625rem 0.25rem;
  cursor: pointer;
  font-size: 0.325rem;
  color: #555;
  transition: color 0.2s, background-color 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  line-height: 1;
}
.spin-button-controls-generated button:hover {
  color: #000;
}
.spin-button-controls-generated button:focus {
  outline: none;
}

#loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
}

#summary-table {
  border-collapse: collapse;
}

#summary-table_wrapper .dataTables_scroll .dataTables_scrollHead .dataTables_scrollHeadInner table thead tr th,
#summary-table thead th {
  background-color: #b0c4de;
  border: 1px solid #000;
  border-left-width: 1 !important;
}

#summary-table th,
#summary-table td {
  border: 1px solid #000;
  padding-top: 6px;
  padding-bottom: 6px;
}

th.sorting_disabled {
  vertical-align: middle !important;
}

.dtfc-fixed-left {
  z-index: 99; /* スクロールしてきたセルの下に隠れるの防止 */
  background-color: white;
}

td.number-right {
  text-align: right;
}

.yosansyo-summary-table-scrollable {
  height: 170px;
  overflow-y: auto;
}
.yosansyo-summary-table-scrollable thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.dataTable tbody tr td.roi-sannenme {
  background-color: yellow;
}

.dataTable tbody tr td.is-alert,
input.form-control.is-alert,
select.form-control.is-alert {
  background-color: #ffdddd;
}

.thick-border-top {
  border-top: 3px solid #eee !important;
}

.thick-border-left {
  border-left: 3px solid #eee !important;
}

.thick-border-right {
  border-right: 3px solid #eee !important;
}

.thick-border-bottom {
  border-bottom: 3px solid #eee !important;
}

#id_result_card td {
  font-size: 15px !important;
  padding: 4px 6px !important;
  margin: 0 !important;
}

#id_is_kankohokoku_syonin_zumi[disabled] {
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#investment-amount-table td,
#management-accounting-table td,
#investment-effect-table td,
#profit-increase-table td {
  padding: 0.3rem;
}

#investment-amount-table thead th,
#management-accounting-table thead th,
#investment-effect-table thead th,
#profit-increase-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #ebf6fd;
  padding: 0.45rem;
  border: 1px solid #dee2e6;
}

#investment-amount-table thead tr:nth-child(2) th,
#management-accounting-table thead tr:nth-child(2) th,
#investment-effect-table thead tr:nth-child(2) th,
#profit-increase-table thead tr:nth-child(2) th {
  position: sticky;
  top: 38.96px;
  z-index: 10;
  background-color: #ebf6fd;
  padding: 0.45rem;
  border: 1px solid #dee2e6;
}

.budget-profit-increase-table,
.budget-account-balance-table,
.budget-amount-invested-table {
  overflow-x: auto;
  max-height: 380px;
  border-collapse: collapse;
}

#investment-amount-table,
#investment-effect-table,
#profit-increase-table {
  border-collapse: collapse;
}

table th.budget-no-style {
  width: 30px;
  min-width: 30px;
}

table th.budget-kbn-name-style {
  min-width: 400px;
}

table th.budget-percentage-style {
  width: 120px;
  min-width: 120px;
}

table th.budget-kingaku-style {
  min-width: 200px;
}

.personal-settings-dropdown {
  left: inherit;
  right: 0px;
  max-height: 90vh;
  overflow-y: auto;
}

@media (min-width: 1400px) {
  .navbar-custom {
    flex-flow: row nowrap;
    justify-content: flex-start;
  }
  .navbar-custom .navbar-toggler {
    display: none;
  }
  .navbar-custom .collapse.navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  .navbar-custom .navbar-nav {
    flex-direction: row;
  }
  .navbar-custom .navbar-nav .nav-link {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
  .navbar-custom .navbar-nav .dropdown-menu {
    position: absolute !important;
  }
}
@media (min-width: 992px) {
  /* 予算番号：21% */
  .yosan-no-col {
    flex: 0 0 21%;
    max-width: 21%;
    min-width: 21%;
  }
  /* 件名：54% */
  .yosan-name-col {
    flex: 0 0 54%;
    max-width: 54%;
    min-width: 54%;
  }
  /* 表示通貨単位：25% */
  .yosan-currency-col {
    flex: 0 0 25%;
    max-width: 25%;
    min-width: 25%;
  }
}