/*
 * アプリ固有のスタイル(Propshaft、#12 手順 5)。レイアウトは Bootstrap 5.3.8 の配布 CSS(vendor/assets/stylesheets/bootstrap.min.css)、
 * Material Icons(vendor/assets/stylesheets/material_icons.css)、このファイルの順に読むので、ここに書いたものが優先される。
 * Sass ではないので変数やネストは使えない。画像やフォントは url 関数に "ファイル名" の相対パスで書く(Propshaft が digest 付きに書き換える)。
 */

/* リンクの下線は Bootstrap 4 と同じ(通常は無し、ホバーで下線)にする。5 の既定(常に下線)では一覧のヘッダやクライアント名が
   読みにくい(#117)。配布 CSS は Sass 変数($link-decoration)を上書きできないので、変数が効いていた規則を同じ詳細度で書き直す。
   .btn / .nav-link / .dropdown-item / .page-link は配布 CSS では :hover 無しの規則しか無く a:hover に負けるので、:hover 付きで無しにする */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.btn:hover, .btn-link,
.nav-link:hover, .nav-link:focus,
.dropdown-item:hover, .dropdown-item:focus,
.page-link:hover,
.navbar-brand:hover, .navbar-brand:focus,
.card-link:hover {
  text-decoration: none;
}

.btn-link:hover, .btn-link:focus-visible {
  text-decoration: underline;
}

/* 検索フォームの 1 項目(ラベル + 入力欄)。Bootstrap 4 の .form-inline .form-group と同じ横並び(5 で廃止) */
.search-area .search-field {
  display: flex;
  flex: 0 0 auto;
  flex-flow: row wrap;
  align-items: center;
  margin-bottom: 0;
}

.search-area .form-control,
.search-area .form-select {
  display: inline-block;
  width: auto;
  vertical-align: middle;
}

img {
  vertical-align: top;
}

body {
  padding-right: 0px !important;
}

td {
  word-break: break-all;
}

.bg-base {
  background-color: #cc0000;
}

.header {
  position: fixed;
  left: 0;
  top: 0;
  overflow: hidden;
  width: 100%;
  border-top: 16px solid #cc0000;
  z-index: 999;
  background: #ffffff;
}

.header:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  right: 50%;
  width: 50%;
  height: 44px;
  margin-right: 600px;
  z-index: 1;
}

.header__inner {
  position: relative;
  margin: 0 auto;
}

.header__inner:before, .header__inner:after {
  display: table;
  content: '';
  height: 0;
}

.header__inner:after {
  clear: both;
}

.header__logo {
  position: relative;
  float: left;
  height: 44px;
  padding: 5px 72px 16px 33px;
  background: url("/assets/bg_logo_area-a0ac16c0.png") no-repeat 0 bottom;
  box-sizing: border-box;
  z-index: 2;
}

.header__logo a {
  display: inline-block;
}

.header__logo img {
  width: 229px;
  height: 23px;
}

.header__catch_copy {
  float: left;
  padding-top: 10px;
  font-size: x-large;
  color: #cc0000;
  font-weight: 900;
}

.header__menu {
  display: none;
}

.logout-menu {
  width: 20%;
  position: fixed;
  top: 10;
  right: 0;
  z-index: 1030;
}

.selected-client {
  font-size: middle;
  align-self: flex-end;
  color: #cc0000;
}

.page-item.active .page-link {
  background-color: #cc0000;
  border-color: #cc0000;
}

.absolute_top_right {
  position: absolute;
  top: 2px;
  right: 2px;
}

.absolute_bottom_right {
  position: absolute;
  bottom: 2px;
  right: 2px;
}

.border-light {
  border-color: #e6e6e6 !important;
}

.search-area {
  font-weight: bold;
  font-size: small;
}

.search-area input[type="text"], .search-area input[type="date"] {
  padding-top: 1px;
  padding-bottom: 1px;
  font-size: 14px;
}

.search-area select {
  height: 31px !important;
  font-size: 14px !important;
  width: 168px !important;
}

.search-area label {
  width: 150px;
  text-align: right;
  display: inline;
}

.search-area .btn-sm {
  padding-top: 0px;
  padding-bottom: 0px;
}

.table-sm .btn-sm {
  padding-top: 0px;
  padding-bottom: 0px;
}

/* Bootstrap 5 のセルは背景を --bs-table-bg で塗るので、変数ごと上書きする */
.table-secondary-original {
  --bs-table-bg: #e0e0e0;
}

/* Bootstrap 5 の .table-bordered > :not(caption) > * > * より高い詳細度で罫線を指定する */
.table.table-bordered-original > :not(caption) > * > * {
  border: 1px solid #eeeeee;
}

.grid-icon {
  color: #0000ff;
}

.common-title {
  color: #000000;
}

.grid-title {
  color: #000000;
}

.nav {
  height: 36px;
  margin-bottom: 10px;
  background-color: #757575 !important;
}

.nav-link {
  color: #ffffff !important;
}

.nav-link.active {
  color: #000000 !important;
  background-color: #ffffff !important;
  border-color: #ffffff #ffffff #ffffff !important;
}

a.nav-link:hover, a.nav-link:focus {
  border-top-color: #757575 !important;
  border-right: none !important;
  border-left: none !important;
  border-bottom: none !important;
}

a.nav-link.active:hover, a.nav-link.active:focus {
  border-top-color: #ffffff !important;
  border-right: none !important;
  border-left: none !important;
  border-bottom: none !important;
}

#notice_explanation {
  width: 90%;
  font-size: small;
  border: solid thin #04B431;
  background-color: #E7FBF1;
  color: #04B431;
}

#error_explanation {
  width: 90%;
  font-size: small;
  border: solid thin #DF013A;
  background-color: #FAE3F8;
  color: #DF013A;
}

/* モーダル表示中も背面をスクロールできるようにし、スクロールバー幅ぶんの余白補正も無効にする(body の padding-right: 0 とセット)。
   Bootstrap 5 は body と .fixed-bottom にインラインスタイルで overflow: hidden と padding-right を書くので !important が要る */
.modal-open {
  overflow: auto !important;
}

.modal-open .fixed-bottom {
  padding-right: 0 !important;
}
