/* 全体色指定 */
.content-wrapper {
  background-color: #f8fafa;
}

/* ボタン全体*/
@media (min-width: 768px) {

  .search-btn,
  .new-register-btn {
    min-width: 155px;
  }
}

/* 専用ボタン*/
.btn-company {
  background-color: #005a41;
  border-color: #005a41;
  color: #fff;
  box-shadow: none;
  border-radius: 0%;
  white-space: nowrap;
}

/* ボタンカラーカスタム*/
.btn-primary {
  background-color: #005941;
  border-color: #005941;
  color: #fff;
}

.btn-danger {
  background-color: #DF3232;
  border-color: #DF3232;
  color: #fff;
}

.btn-secondary {
  background-color: #555555;
  border-color: #555555;
  color: #fff;
}

.btn-success {
  background-color: #3A7ECE;
  border-color: #3A7ECE;
  color: #fff;
}

/* ボタンカラーカスタム(アウトライン)*/
.btn-outline-primary {
  background-color: #fff;
  border-color: #005941;
  color: #005941;
}

.btn-outline-danger {
  background-color: #fff;
  border-color: #DF3232;
  color: #DF3232;
}

.btn-outline-secondary {
  background-color: #fff;
  border-color: #555555;
  color: #555555;
}

.btn-outline-success {
  background-color: #fff;
  border-color: #3A7ECE;
  color: #3A7ECE;
}

/* ホバー、アクティブ、フォーカス時 */
.btn-primary:hover,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:focus {
  background-color: #348C74;
  border-color: #348C74;
  color: #fff;
}

.btn-danger:hover,
.btn-danger:not(:disabled):not(.disabled):active,
.btn-danger:focus {
  background-color: #EF9898;
  border-color: #EF9898;
  color: #fff;
}

.btn-secondary:hover,
.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:focus {
  background-color: #AAAAAA;
  border-color: #AAAAAA;
  color: #fff;
}

.btn-success:hover,
.btn-success:not(:disabled):not(.disabled):active,
.btn-success:focus {
  background-color: #9CBEE6;
  border-color: #9CBEE6;
  color: #fff;
}

/* ホバー、アクティブ、フォーカス時(アウトライン) */
.btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:focus {
  background-color: #005941;
  border-color: #005941;
  color: #fff;
}

.btn-outline-danger:hover,
.btn-outline-danger:not(:disabled):not(.disabled):active,
.btn-outline-danger:focus {
  background-color: #DF3232;
  border-color: #DF3232;
  color: #fff;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:focus {
  background-color: #555555;
  border-color: #555555;
  color: #fff;
}

.btn-outline-success:hover,
.btn-outline-success:not(:disabled):not(.disabled):active,
.btn-outline-success:focus {
  background-color: #3A7ECE;
  border-color: #3A7ECE;
  color: #fff;
}

/* disabled */
.btn-primary.disabled,
.btn-primary:disabled,
.btn-primary.disabled:hover,
.btn-primary:disabled:hover,
.btn-danger.disabled,
.btn-danger:disabled,
.btn-danger.disabled:hover,
.btn-danger:disabled:hover,
.btn-secondary.disabled,
.btn-secondary:disabled,
.btn-secondary.disabled:hover,
.btn-secondary:disabled:hover,
.btn-success.disabled,
.btn-success:disabled,
.btn-success.disabled:hover,
.btn-success:disabled:hover {
  background-color: #BBBBBB !important;
  border-color: #BBBBBB !important;
  color: #fff;
}

.btn-company.current {
  background-color: #348C74;
  color: #fff;
}

.btn-company:hover {
  color: #fff;
  background-color: #348C74;
  border-color: #348C74;
}

.btn-company:focus,
.btn-company.focus {
  color: #fff;
  background-color: #348C74;
  border-color: #348C74;
  box-shadow: 0 0 0 0 rgba(46, 152, 94, 0.5);
}

.btn-company.disabled,
.btn-company:disabled {
  color: #fff;
  background-color: #BBBBBB;
  border-color: #BBBBBB;
}

.btn-company:not(:disabled):not(.disabled):active,
.btn-company:not(:disabled):not(.disabled).active,
.show>.btn-company.dropdown-toggle {
  color: #005941;
  background-color: #fff;
  border-color: #fff;
  border: none;
  border-top: 2px solid #005941;
}
.btn-company.active .icon-home:before,
.btn-company:active .icon-home:before {
  color: #005941;
}

.btn-company:not(:disabled):not(.disabled):active:focus,
.btn-company:not(:disabled):not(.disabled).active:focus,
.show>.btn-company.dropdown-toggle:focus {
  box-shadow: 0 0 0 0 rgba(46, 152, 94, 0.5);
}

/* ヘッダーロゴ */
@media (min-width: 768px) {
  .header-logo {
    width: 130px;
    margin: auto;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .header-logo img {
    width: 130px;
  }
}

/* ヘッダー */
.main-header {
  background-color: #fff;
  padding-bottom: 0;
}


@media (min-width: 768px) {
  .main-nav .nav-item {
    width: 15%;
    text-align: center;
  }

  .ico-nav a {
    color: #000;
  }

  .ico-nav a:hover {
    color: rgba(0, 0, 0, 0.7);
  }
}

@media (max-width: 767px) {
  .main-header {
    position: fixed;
    width: 100%;
    padding: 0;
  }

  .navbar-toggler {
    margin: 0.5rem;
  }

  .brand-image {
    margin-left: 0.5rem;
  }

  .main-nav {
    background-color: #005a41;
  }

  .main-nav .btn-company {
    border-radius: 0;
    border-bottom: 1px solid #fff;
  }

  .main-nav .dropdown-menu {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none !important;
    transition: 0.15s ease-in-out 0s;
  }

  .main-nav .dropdown-menu .dropdown-item {
    text-align: center;
    padding: 0.375rem 0.75rem;
    background-color: #f2f2f2;
    border-bottom: 1px solid #005a41;
    transition: 0.15s ease-in-out 0s;
  }

  .main-nav .dropdown-menu .dropdown-item:hover {
    color: #fff;
    background-color: #2e985e;
  }

  .ico-nav a {
    color: #fff;
    text-align: center;
    padding: 0.375rem 0.75rem;
    background-color: #005a41;
    border-bottom: 1px solid #fff;
    transition: 0.15s ease-in-out 0s;
  }

  .ico-nav a:hover {
    color: #fff;
    background-color: #2e985e;
    border-color: #2e985e;
  }

  /* ユーザー管理ボタン */
  .user-admin-btn-wrap {
    border-bottom: 1px solid #fff;
  }

  .user-admin-btn {
    text-align: center;
    color: #212529;
    padding: 0.375rem 0.75rem;
    background-color: #005a41;
    border: none;
    border-radius: 0;
    transition: none;
  }

  .user-admin-btn:hover {
    color: #fff;
    background-color: #2e985e;
    border: none;
  }

  /* 取引先名 */
  .customer-name {
    text-align: right;
  }

  .input-group-text {
    padding: .375rem;
  }

  .card-body {
    padding: 15px 15px .2rem 15px;
  }
}

.user-name {
  font-size: 9px;
  margin-top: 3px;
}

.customer-name {
  font-size: .8rem;
}

/* ドロップダウン */
.dropdown-item:focus,
.dropdown-item:hover {
  color: #fff;
  text-decoration: none;
  background-color: #2e985e;
}

.dropdown-item {
  text-align: center;
}

/* テーブル */
table {
  font-size: 16px;
}

table td.text-truncate {
  max-width: 11em;
}

table th.number {
  width: 65px;
}

table td.number {
  text-align: center;
}

.font-larger {
  font-size: 1.1em !important;
}

.data-table tbody {
  background-color: #fff;
}

.data-table th {
  color: #333;
  background-color: #F0ECDF;
  white-space: nowrap;
}

.table-selectable tbody tr.selected {
  color: #333;
  background: #FFFDE8;
}

.card.selected {
  background: #FFFDE8;
}

table.selected {
  background: #005a41;
}

.table-register th,
.table-profile th {
  width: 20%;
  padding:.6rem !important;
}

.maxw-180px {
  max-width: 180px !important;
}

.minw-180px {
  min-width: 180px !important;
}

/* テーブル（SP） */
.table-small th,
.table-small td {
  padding: 0.75rem !important;
}

.table-small tr:first-child th,
.table-small tr:first-child td {
  border-top: none;
}

/* 横並びボタン */
.btn-wrap {
  width: 100%;
  padding-right: 7.5px;
  padding-left: 7.5px;
  display: flex;
  flex-direction: column;
}

.btn-wrap button,
.btn-wrap a {
  margin-top: 0.75rem !important;
}

@media (min-width: 768px) {
  .btn-wrap {
    width: auto;
    flex-direction: row;
    justify-content: space-between;
  }

  .btn-wrap button,
  .btn-wrap a {
    width: 155px;
    margin-top: 0 !important;
  }

  .btn-wrap button:not(:last-child),
  .btn-wrap a:not(:last-child) {
    margin-right: 0.5rem;
  }
}

/* レイアウト */
@media (min-width: 768px) {
  .w-md-auto {
    width: auto !important;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .content-wrapper {
    padding-top: 60px;
  }
}

/*メッセージエリア*/
.alert-danger {
  color: #DF3232 !important;
  background-color: #FDF5F5 !important;
}

.alert-pc-only {
  color: #0c5460 !important;
  background-color: #d1ecf1 !important;
  border-color: #bee5eb !important;
}

/* エラー表記上書き */
.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: #e3342f;
  padding: 6px 12px !important;
  background-image: none;
  background-repeat: no-repeat;
  background-position: right calc(0.4em + 0.1875rem) center;
  background-size: calc(0.8em + 0.375rem) calc(0.8em + 0.375rem);
  background-color: #FDF5F5;
}

/* フォントサイズ */
.fs-90 {
  font-size: 90% !important;
}

/* 複数行対応の三点リーダー表示 */
.ml2-text-truncate {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/*インプット*/
.custom-select {
  box-shadow: none;
}

/* スピンボタンを非表示にする */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none; /* Chrome, Safari, Edge */
  margin: 0; /* 見た目の調整 */
}

.icheck-primary>input.input-check:first-child+label::before {
  border-radius: 2px;
}

.icheck-primary>input:first-child:checked+input[type="hidden"]+label::before,
.icheck-primary>input:first-child:checked+label::before {
  background-color: #005941;
  border-color: #005941;
}

.icheck-primary>input:first-child+input[type="hidden"]+label::before,
.icheck-primary>input:first-child+label::before {
  background-color: #fff;
  border-color: #999999;
}

.icheck-primary>input:first-child:disabled+input[type="hidden"]+label::before,
.icheck-primary>input:first-child:disabled+label::before {
  background-color: #EEEEEE;
  border-color: #999999;
}

.icheck-primary>input:first-child:not(:checked):not(:disabled):hover+input[type="hidden"]+label::before,
.icheck-primary>input:first-child:not(:checked):not(:disabled):hover+label::before {
  background-color: #fff;
  border-color: #999999;
}

.icheck-primary>input:first-child:not(:disabled):focus+input[type="hidden"]+label::before,
.icheck-primary>input:first-child:not(:disabled):focus+label::before {
  border-color: #3A7ECE;
}

.btn-pen {
  color: #2e985e;
  text-decoration: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
}

.btn-pen:hover {
  color: #0056b3;
  text-decoration: none;
}

.modal-footer-btn-wrap button {
  width: 150px;
}

.form-error {
  display: none;
}

.form-error.-visible {
  display: block;
}

.form-control {
  font-size: 1.1rem;
}

/*ページャ*/
@media screen and (max-width: 400px) {

  li.page-item {

    display: none;
  }

  .page-item:first-child,
  .page-item:nth-child(2),
  .page-item:nth-last-child(2),
  .page-item:last-child,
  .page-item.active,
  .page-item.disabled {

    display: block;
  }
}

.table thead th,
.table tfoot th {
  vertical-align: middle;
  text-align: center;
}

/*datepicker*/
.datepicker:read-only:not(.is-invalid .disabled :disabled) {
  background-color: #ffffff;
}

/*NEWバッチ*/
@media (min-width: 768px) {
  .new-arrival::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 85%;
    height: 45px;
    width: 45px;
    background-image: url(../../../images/newArrival.png);
    background-size: contain;
    background-repeat: no-repeat;
  }
}

@media (max-width: 767px) {
  .sp-new-arrival::before {
    content: 'N';
    position: absolute;
    background-color: #EF4343;
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    display: inline-block;
    font-size: 0.8em;
    color: white;
    font-weight: bold;
    line-height: 1.2em;
    margin-left: -24px;
    margin-top: 16px;
  }

  .new-arrival>.new-arrival-after {
    display: inline-block;
    position: absolute;
    margin-left: 16px;
  }

  .new-arrival>.new-arrival-after::after {
    content: "";
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    display: inline-block;
    background-color: #EF4343;
    margin-bottom: 2px;
    margin-left: 6px;
  }
}

.new-dot>a::after {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  display: inline-block;
  background-color: #EF4343;
  margin-bottom: 2px;
  margin-left: 6px;
}

/* テーブル系(縦) */
.custome_table {
  width: auto;
  margin: 0;
  table-layout: fixed;
}

.custome_table thead th {
  white-space: nowrap;
  position: sticky;
  top: -1px;
  left: 0;
}

.custome_table tr:hover {
  background-color: #FFFDE8;
}

.custome_table tr.select {
  background-color: #FFFDE8;
}

.custome_table tr:nth-child(odd):not(.select, :hover) {
  background-color: #fff;
}

.custome_table tr th,
.custome_table tr td {
  cursor: pointer;
  height: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom_head_title {
  background-color: #F0ECDF;
  text-align: start;
  font-size: 16px;
  margin: 0;
  min-height: 40px;
  width: 15%;
  padding: .6rem !important;
  font-weight: 700;
}

.custom_element_item {
  display: flex;
  align-items: center;
  align-self: center;
  padding: 0 10px;
  margin-bottom: 0;
  padding: 10px;
}

.custom_element_col:first-child {
  border-top: 1px solid rgb(222, 226, 230);
}

.custom_element_col {
  border-bottom: 1px solid rgb(222, 226, 230);
  border-left: 1px solid rgb(222, 226, 230);
  border-right: 1px solid rgb(222, 226, 230);
}

/* 縦スクロール指定 */
.custome_scroll_y {
  overflow-y: scroll;
}

/* アコーディオン */
.custom_accordion {
  max-height: auto;
  transition: height 0.5s;
}

.custom_accordion.close {
  max-height: 0;
}

.custom_accordion.close div {
  opacity: 0;
  height: 0;
  pointer-events: none;
}

.custom_accordion.hidden {
  display: none;
}

.custom_accordion_head {
  cursor: pointer;
  position: relative;
  background-color: #F0ECDF;
  padding: 5px 20px;
  width: 100%;
}

.custom_accordion_head.plus::before,
.custom_accordion_head.plus::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: #7F7F7F;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.5s;
}

.custom_accordion_head.plus::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.5s;
}

.custom_accordion_head.plus.show::before {
  opacity: 0;
}

.custom_accordion_head.plus.show::after {
  transform: translateY(-50%) rotate(180deg);
}

@media (max-width: 767px) {
  .custom_accordion_head {
    padding: 5px 10px;
  }

  .custom_accordion {
    background-color: #fff;
    border: 1px solid rgb(222, 226, 230);
  }

  .custome_table:hover {
    background-color: #FFFDE8;
  }

  .custome_table.select {
    background-color: #FFFDE8;
  }

  .custome_table:not(:last-child) {
    border-bottom: 1px solid rgb(222, 226, 230);
  }

  .custome_table div:not(:last-child) {
    border-right: 1px solid rgb(222, 226, 230);
  }

  #workplace_list_datetime {
    background-color: #fff;
    border: 1px solid rgb(222, 226, 230);
  }
}

/** 汎用 */
.flex-1 {
  flex: 1 !important;
}

.p-td {
  padding: .75rem !important;
}

.c-bg-lightgray {
  background-color: #CED4DA !important;
}

.writing-mode-vertical {
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-grab {
  cursor: grab;
}

.table td,
.table th {
  padding: .25rem;
}

.table-register td,
.table-register th, 
.table-profile td,
.table-profile th {
  padding: 10px;
}

[class*=icheck-] {
  margin-top: 0 !important;
  ;
  margin-bottom: 0 !important;
  ;
}


btn-success.disabled,
.btn-success:disabled {
  color: #fff;
  background-color: #348C74;
  border-color: #348C74;
}

.btn-company .icon-home:before {
  color: #FFF;
}

/* .btn-company:not(.active):hover .icon-home:before {
  color: #348C74;
} */

.card-body {
  padding-bottom: .2rem;
  background-color: #EAF1F0;
}

.card-list-body {
  padding-bottom: .2rem;
  background-color: #fff;
}

a {
  color: #039000;
  text-decoration: none;
  background-color: transparent;
}

a:hover {
  color: #005a41;
}

a:not([href]):not([class]) {
  color: inherit;
  text-decoration: none;
}

a:not([href]):not([class]):hover {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 10;
}

a:not([href]):not([class]) {
  color: inherit;
  text-decoration: none;
}

a:not([href]):not([class]):hover {
  color: inherit;
  text-decoration: none;
}

.page-item.active .page-link {
  color: #fff;
  background-color: #005a41;
  border-color: #005a41;
}

.page-link {
  color: #005a41;
}

.icon-help,
.icon-privacy,
.icon-logout,
.icon-profile {
  font-size: 1.5rem;
}

.h1 {
  font-size: 20px;
}

.icon {
  width: 40px;
}

.icon-menu_dispatch,
.icon-menu_report,
.icon-menu_slip,
.icon-menu_worker,
.icon-menu_user,
.icon-menu_invoice,
.icon-menu_nortification {
  font-size: 2rem;
}

/* 汎用gap値 */
.gap-0 {
  gap: 0px;
}

.gap-4 {
  gap: 4px;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-20 {
  gap: 20px;
}

.gap-24 {
  gap: 24px;
}

.gap-32 {
  gap: 32px;
}

.gap-40 {
  gap: 40px;
}

.gap-48 {
  gap: 48px;
}

.gap-64 {
  gap: 64px;
}

.gap-80 {
  gap: 80px;
}

/* 汎用Width値 */
.w-0 {
  width: 0%;
}

.w-5 {
  width: 5%;
}

.w-10 {
  width: 10%;
}

.w-15 {
  width: 15%;
}

.w-20 {
  width: 20%;
}

.w-25 {
  width: 25%;
}

.w-30 {
  width: 30%;
}

.w-35 {
  width: 35%;
}

.w-40 {
  width: 40%;
}

.w-45 {
  width: 45%;
}

.w-50 {
  width: 50%;
}

.w-55 {
  width: 55%;
}

.w-60 {
  width: 60%;
}

.w-65 {
  width: 65%;
}

.w-70 {
  width: 70%;
}

.w-75 {
  width: 75%;
}

.w-80 {
  width: 80%;
}

.w-85 {
  width: 85%;
}

.w-90 {
  width: 90%;
}

.w-95 {
  width: 95%;
}

.w-100 {
  width: 100%;
}


.required::after {
  content: "必須";
  color: #ffffff;
  background: #dc3545;
  font-size: 0.6em;
  padding: 0.3em;
  border-radius: 0.5em;
  margin-left:0.5em;
  float:right;
}