/* ========== Color codes ========== */
:root {
  --color-dark: #4a3899;
  --color-middle: #9a91ea;
  --color-light: #c6bff2;
  --color-focus: #f3e5ff;
  --color-active: #8f8ad1;

  --color-anken-seizen: #d9edf7;
  --color-anken-seizen-hover: #c4e3f3;
  --color-anken-sage: #dff0d8;
  --color-anken-sage-hover: #d0e9c6;
  --color-anken-houji: #fcf8e3;
  --color-anken-houji-hover: #faf2cc;
}

/* ========== Body ========== */
body {
  font-size: 14px;
}

/* ========== Loading ========== */
#loading {
  display: table;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #eeeeee;
  opacity: 0.4;
  z-index: 3000;
}

#loading .loadingMsg {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  padding-top: 140px;
  background: url('../img/ajax-loader3.gif') center center no-repeat;
}

/* ========== Alert ========== */
.alert {
  padding: 1rem;
  text-align: left;
}

.alert-dismissible .btn-close {
  padding: 1.25rem 1rem;
}

/* ========== Numeric input ========== */
input.numeric {
  text-align: right;
}

input.numeric::placeholder {
  text-align: right;
}

input[type='number']:not(.flatpickr-minute):not(.flatpickr-hour) {
  text-align: right;
}

input[type='number']::placeholder:not(.flatpickr-minute):not(.flatpickr-hour) {
  text-align: right;
}

/* ========== Navigation bar ========== */
.navbar .nav-item .active {
  background-color: var(--color-active);
  color: white;
}

.navbar .nav-item .dropdon-item .active {
  background-color: var(--color-active);
  color: white;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--color-focus);
}

.nav-link:hover,
.nav-link:focus {
  background-color: var(--color-focus);
}

/* ========== Search area ========== */
.searcharea {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.searcharea .searchconditions {
  padding: 0;
  margin-bottom: 0;
  border: var(--color-middle) 1px solid;
  background-color: #fafae4;
}

.searcharea .titlelabel {
  width: calc(100% + 1px);
  background-color: var(--color-dark);
  color: #fff;
  margin-bottom: 0;
  padding-left: 0.5rem;
  cursor: pointer;
  border-radius: 0.5rem 0.5rem 0 0;
}

.searcharea .searchconditions > div {
  padding: 0.5rem;
}

.searcharea p[data-bs-toggle='collapse']::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-top: #fff 1px solid;
  border-right: #fff 1px solid;
  position: absolute;
  left: 70px;
  top: 6px;
  margin: auto;
}

.searcharea p[aria-expanded='false']::after {
  -webkit-transform: rotate(135deg);
  -ms-transform: rotate(135deg);
  transform: rotate(135deg);
  transition-duration: 0.3s;
}

.searcharea p[aria-expanded='true']::after {
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  transition-duration: 0.3s;
}

.searcharea .btn {
  font-size: 1rem;
  padding: 4.5px 12px 3.68px 12px;
  width: 6rem;
}

.search-item {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  margin-top: 3px;
  margin-right: 0.5rem;
}

.search-item .search-item-label {
  width: 5.5rem;
  margin-right: 0.5rem;
  white-space: nowrap;
}

.search-item .input-small {
  width: 8rem;
  margin-right: 0.5rem;
}

.search-item .input-small:first-of-type {
  width: 10rem;
  margin-right: 0.5rem;
}

.search-item .input-small:last-of-type {
  width: 10rem;
  margin-left: 0.5rem;
}

.search-item .flatpickr {
  width: 8rem;
  margin-right: 0.5rem;
}

.search-item .flatpickr:first-of-type {
  width: 10rem;
  margin-right: 0.5rem;
}

.search-item .flatpickr:last-of-type {
  width: 10rem;
  margin-left: 0.5rem;
}

.search-item .flatpickr.no-range {
  margin-left: 0;
  margin-right: 0;
}

select[name='page_size'] {
  width: 10rem;
}

/* ========== Operation area ========== */
.operation-area {
  margin-top: 1rem;
  margin-bottom: 1rem;
  background-color: #eee;
  color: #31708f;
  border: 1px solid #ccc;
}

.operation-area .operation-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #31708f;
}

.operation-area .operation-info {
  font-size: 1rem;
  color: #31708f;
}

.operation-area .operation-item-header {
  font-size: 1rem;
  font-weight: bold;
  color: #31708f;
}

.operation-area .btn {
  margin-left: 0.25rem;
  font-size: 14px;
  padding: 4.5px 8px 3.68px 8px;
  width: 9rem;
}

.operation-area .btn-default {
  background-color: #fff;
}

/* ========== Field header ========== */
.card-body.field-title {
  padding: 0;
}

/* ========== Field group ========== */
.card.field-card {
  margin-top: 5px;
  margin-bottom: 5px;
}

.card-body.field-group {
  padding: 10px;
}

.field-row-header {
  border-top: solid 6px var(--color-dark);
  background-color: var(--color-middle);
  padding: 8px;
  font-weight: bold;
  text-align: center;
}

.field-group .card-title {
  border-left: solid 5px var(--color-dark);
  border-bottom: solid 1px #ccc;
  padding: 0.25rem 0 0.25rem 15px;
  margin: 10px 0 10px 0;

  display: flex;
  flex-direction: row;
}

.field-group .field-title {
  font-size: 140%;
  font-weight: bold;
  width: 100%;
}

.card-text > table {
  border-collapse: collapse;
  border: 1px solid #ccc;
  width: 100%;
}

.field-group .field-row .field-header {
  min-width: 10rem;
  max-width: 10rem;
  width: 10rem;
  overflow-x: hidden;

  background-color: var(--color-light);
  border: solid 1px #ccc;
  border-collapse: collapse;
  color: black;
  display: table-cell;
  text-align: right;
  vertical-align: middle;
  padding: 8px;
}

.field-group .field-row .field-body {
  border: solid 1px #ccc;
  padding: 10px;
  font-size: 14px;
}

.field-group .field-row .field-body:hover {
  background-color: var(--color-focus);

  border: solid 1px #ccc;
  padding: 10px;
  font-size: 14px;
}

td.field-body .form-control {
  margin: 3px 0;
}

/* ========== Small button ========== */
.btn-small {
  font-size: 15px;
  padding: 4.5px 12px 3.68px 12px;
  width: 8rem;
}

.btn-middle {
  font-size: 15px;
  padding: 4.5px 12px 3.68px 12px;
  width: 10rem;
}

.btn-lock {
  padding: 3.5px 12px 3.5px 12px;
  width: 5.5rem;
}

/* ========== button color ========== */
.btn-light {
  background-color: #fbfbfb;
  border: 1px solid !important;
  border-color: #adadad !important;
}

.btn-light[disabled] {
  color: #7a7a7a;
  background-color: #fbfbfb;
  border: 1px solid !important;
  border-color: #adadad !important;
}

.btn-light:hover {
  background-color: #e6e6e6;
  border: 1px solid !important;
  border-color: #adadad !important;
}

.btn-purple {
  --mdb-btn-bg: var(--color-dark);
  --mdb-btn-color: #fff;
  --mdb-btn-hover-bg: var(--color-dark);
  --mdb-btn-hover-color: #fff;
  --mdb-btn-disabled-bg: var(--color-middle);
  --mdb-btn-disabled-color: #fff;
}

/* ========== Radio select ========== */
div.radio-select {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ========== Pagenation ========== */
.pager {
  display: flex;
  justify-content: center;
}

.page-item .page-link.active {
  border: 1px solid #ccc;
  background-color: var(--color-active);
  color: #fff;
}

.page-item .page-link.active:hover {
  border: 1px solid #ccc;
  background-color: var(--color-focus);
  color: #fff;
}

.page-item .page-link.disabled {
  border: 1px solid #ccc;
  color: #888;
}

.page-item .page-link.disabled:hover {
  border: 1px solid #ccc;
  color: #888;
}

.page-item .page-link {
  border: 1px solid #ccc;
  text-decoration: none;
  color: #000;
}

.page-item .page-link:hover {
  border: 1px solid #ccc;
  background-color: var(--color-focus);
  text-decoration: none;
  color: #000;
}

/* ========== Validation error message ========== */
ul.errorlist {
  padding-left: 0;
  margin-bottom: 0;
}

ul.errorlist li {
  color: red;
  list-style: none;
}

/* ========== Badge labels ========== */

.label {
  display: inline;
  padding: 0.2em 0.6em 0.3em;
  font-size: 75%;
  font-weight: bold;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25em;
}

.custom_label {
  display: inline-block;
  font-size: 13px;
  padding: 0.2em 0.6em 0.3em;
  line-height: 2.5;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border-radius: 0.25em;
}

.label-bon {
  background-color: #9932cc;
}

.label-info {
  background-color: #5bc0de;
}

.label-success {
  background-color: #5cb85c;
}

.label-warning {
  background-color: #f0ad4e;
}

.label-primary {
  background-color: #337ab7;
}

.label-danger {
  background-color: #d9534f;
}

.label-default {
  background-color: #777;
}

/* ========== Modal ========== */
.modal-content {
  font-size: 16px;
}

.modal-header {
  background-color: var(--color-dark);
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
  color: white;
}

.modal-body {
  font-size: 16px;
}

.modal-body.searcharea {
  font-size: 14px;
}

.detail_item {
  white-space: nowrap;
}

/* ========== Override bootstrap styles ========== */

.container {
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
  max-width: none;
}

.container:before,
.container:after {
  content: ' ';
  display: table;
}

.container:after {
  clear: both;
}

@media (min-width: 720px) {
  .container {
    width: 99%;
  }
}

@media (min-width: 1050px) {
  .container {
    width: 99%;
  }
}

@media (min-width: 1670px) {
  .container {
    width: 1640px;
  }
}

.container-fluid {
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.container-fluid:before,
.container-fluid:after {
  content: ' ';
  display: table;
}

.container-fluid:after {
  clear: both;
}

.form-control {
  font-size: 14px;
}

.form-check-label {
  margin-top: 0.125em;
}

/* ========== Override slimselect styles ========== */
/*
// 以下、slimselectのスタイルを上書きするためのCSS
div.ss-main {
    padding: 4.5px 12px 3.68px 12px;
}
*/

/* ========== Override tabulator styles ========== */
.tabulator .tabulator-tableholder .tabulator-table {
  color: black;
}

.tabulator
  .tabulator-header
  .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover {
  background-color: var(--color-active);
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
  font-size: 14px;
  padding: 4px;
}

.tabulator
  .tabulator-header
  .tabulator-col.tabulator-sortable
  .tabulator-col-title {
  padding-right: 0;
  text-align: center;
}

.tabulator
  .tabulator-header
  .tabulator-col.tabulator-sortable[aria-sort='none']
  .tabulator-col-content
  .tabulator-col-sorter
  .tabulator-arrow {
  border-bottom: 6px solid black;
}

.tabulator .tabulator-row {
  background-color: #fff;
  border-bottom: 1px solid #e9ecef;
}

.tabulator-row {
  min-height: inherit;
}

.tabulator-row.tabulator-selectable.anken-seizen {
  background-color: var(--color-anken-seizen);
}

.tabulator-row.tabulator-selectable.anken-seizen:hover {
  background-color: var(--color-anken-seizen-hover);
}

.tabulator-row.tabulator-selectable.anken-sage {
  background-color: var(--color-anken-sage);
}

.tabulator-row.tabulator-selectable.anken-sage:hover {
  background-color: var(--color-anken-sage-hover);
}

.tabulator-row.tabulator-selectable.anken-houji {
  background-color: var(--color-anken-houji);
}

.tabulator-row.tabulator-selectable.anken-houji:hover {
  background-color: var(--color-anken-houji-hover);
}

.tabulator-row.tabulator-selectable:hover {
  background-color: var(--color-focus);
}

.tabulator.table-striped:not(.table)
  .tabulator-row.tabulator-row-even.tabulator-selectable:hover {
  background-color: var(--color-focus);
}

.tabulator-row .tabulator-cell {
  font-size: 14px;
  padding: 4px;
}

.tabulator .tabulator-header .tabulator-col[role='columnheader'] {
  background-color: var(--color-middle);
  font-weight: normal;
  color: black;
  display: inline-flex;
  justify-content: center;
}

.tabulator .tabulator-footer {
  display: none;
}

.tabulator
  .tabulator-header
  .tabulator-col
  .tabulator-col-content
  .tabulator-col-title {
  text-align: center;
}

/* ========== TextArea ========== */
textarea {
  resize: none;
}

/* ========== Others ========== */
div.settlement-date.btn.btn-warning:hover {
  cursor: auto;
  background-color: rgb(228, 161, 27);
}

.alert-danger > ul > li {
  white-space: pre-line;
}
