/* --------------------------------------------

    BUTTON

-------------------------------------------- */
button,
a {
   transition: 0.3s;
}

button:hover,
a:hover {
    opacity: 0.7;
    cursor: pointer;
}

.buttonBlue {
    align-items: center;
    background: var(--colorBlue);
    border: 1px solid var(--colorGray300);
    border-radius: 5px;
    color: #fff;
    display: inline-block;
    font-size: 12px;
    /* 16px; */
    padding: calc(8px * 0.5) calc(8px * 2);
    text-decoration: none;
    width: auto;
}

.buttonBlue span {
    margin-right: 6px;
}

.buttonBlue img {
    height: 18px;
    position: relative;
    top: -1px;
    width: 18px;
}

.buttonOrange {
    align-items: center;
    background: var(--colorOrange);
    border: 1px solid var(--colorGray300);
    border-radius: 5px;
    color: var(--colorBlack);
    display: flex;
    font-size: 12px;
    /* 16px; */
    justify-content: center;
    padding: calc(8px * 0.5) calc(8px * 2);
    text-decoration: none;
    width: auto;
}

.buttonOrange span {
    margin-right: 6px;
}

.buttonOrange img {
    height: 18px;
    position: relative;
    top: -2px;
    width: 18px;
}

.buttonWhite {
    align-items: center;
    background: #fff;
    border: 1px solid var(--colorGray300);
    border-radius: 5px;
    color: var(--colorBlack);
    display: flex;
    font-size: 14px;
    justify-content: center;
    padding: calc(8px * 0.5) calc(8px * 2);
    text-decoration: none;
    width: auto;
}

.buttonWhite span {
    margin-right: 6px;
}

.buttonWhite img {
    height: 18px;
    position: relative;
    top: -2px;
    width: 18px;
}

.buttonGray {
    align-items: center;
    background: var(--colorGray300);
    border: 1px solid var(--colorGray300);
    border-radius: 5px;
    color: var(--colorBlack);
    display: flex;
    font-size: 14px;
    justify-content: center;
    padding: calc(8px * 0.6) calc(8px * 2);
    text-decoration: none;
    width: auto;
}

.buttonSend {
    background: var(--colorBlue);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    height: 52px;
    width: 200px;
}

.select-button {
    background: var(--colorGray300);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    height: 52px;
    width: 200px;
    text-align: center;
}

.btn-small {
    width: 130px;
    height: 40px;
}

.update-btn {
    width: 40px;
    height: 20px;
    font-size: small;
}

.buttonImpossible {
    background: var(--colorRed);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    width: 130px;
    height: 40px;
}

.btn-disabled-color {
    opacity: 0.5;
    background-color: darkgray;
}

.quantity-mg {
    margin-top: 10px;
}

.buttonAdd {
    background: #fff;
    border: 1px solid orange;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    text-align: center;
    text-decoration: none;
    height: 24px;
    line-height: 1;
    font-weight: 500;
}

.commonTable tbody td .buttonAdd {
    color: orange;
}

.buttonChange {
    background: #fff;
    border: 1px solid #1273f1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    text-align: center;
    text-decoration: none;
    height: 24px;
    line-height: 1;
    font-weight: 500;
}

.commonTable tbody td .buttonChange {
    color: #1273f1;
}

.buttonConfirm {
    background: var(--colorBlue);
    border-radius: 5px;
    display: inline-block;
    padding: 5px 20px;
    text-align: center;
}

.buttonEdit {
    background: #fff;
    border: 1px solid #3BAB8F;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    text-align: center;
    text-decoration: none;
    height: 24px;
    line-height: 1;
    font-weight: 500;
}

.commonTable tbody td .buttonEdit {
    color: #3BAB8F;
    display: flex;
    margin-inline: auto;
}

.buttonEdit img {
    width: 17.5px;
    height: 17.5px;
}

.button__column {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin-inline: auto;
}

.buttonChat {
    background: #3BAB8F;
    border-radius: 4px;
    height: 24px;
    padding-inline: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: none;
    color: #fff;
    font-size: 12px;
    margin-inline: auto;
}

.buttonChat img {
    width: 17.5px;
    height: 17.5px;
}

.buttonCopy {
    background: #fff;
    border-radius: 4px;
    height: 24px;
    padding-inline: 10px;
    display: flex;
    align-items: center;
    border: 1px solid #3BAB8F;
    color: #3BAB8F;
    font-size: 12px;
}

.buttonCopy img {
    width: 17.5px;
    height: 17.5px;
}

.buttonCopy:disabled {
    background-color: #9ca3af;
    /* グレー */
    cursor: not-allowed;
}

.buttonDeleteWrap {
    background: #fff;
}

.buttonDelete {
    font-size: 12px;
    letter-spacing: 0.25em;
    font-weight: 500;
    color: #535353;
    border: 1px solid #535353;
    border-radius: 4px;
    width: 60px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: #fff!important;
    opacity: 1!important;
}

.commonTable tbody td .buttonDelete {
    color: #535353;
    text-decoration: none;
}

.buttonDelete img {
    width: 17.6px;
    height: 17.6px;
}

.buttonDelete:hover {
    background-color: #999;
}

.buttonUser {
    background: #3BAB8F;
    color: #fff;
    height: 24px;
    display: flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding-inline: 10px;
    text-decoration: none;
    font-weight: 500;
}

.buttonUser img {
    width: 17.6px;
    width: 17.6px;
}

.commonTable tbody td .buttonUser {
    color: #fff;
}

.buttonDestroy {
    background: var(--colorRed);
    border-radius: 5px;
    border: none;
    display: inline-block;
    color: white;
    padding: 5px 20px;
    text-align: center;
}

.buttonGrayDestroy {
    background: var(--colorGray300);
    border-radius: 5px;
    border: none;
    display: inline-block;
    color: white;
    padding: 5px 20px;
    text-align: center;
}

.button-wrapper {
    /* wrapper の幅を内包する要素に合わせる。 */
    display: inline-block;
}

.button-wrapper .btn:disabled {
    /* マウスをホバーした際のイベント伝搬を止めないようにする。 */
    pointer-events: none;
}

.drawing_button {
    background-color: rgb(255 255 255) !important;
    border: none !important;
}

.drawing_button img {
    width: 3.0em;
    height: 3.0em;
}

.delete_button {
    background-color: rgb(255 255 255) !important;
    border: none !important;
}

.delete_button img {
    width: 2.0em;
    height: 2.0em;
}


.submit_button {
    background: linear-gradient(to bottom, #FFFFFF 0%, #F2F2F2 50%, #E3E3E3 100%);
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #E8E8E8;
    margin-top: 6px;
    width: fit-content;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 14px;
}

.input__button {
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #000000;
    margin-top: 6px;
    width: fit-content;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 2px;
    padding-inline: 2px;
}


.editBtn__wrap {
    display: flex;
    gap: 8px;
    height: fit-content;
    margin: 6px;
}

.editBtn__item {
    background: linear-gradient(
    to bottom,
    #FFFFFF 0%,
    #F2F2F2 50%,
    #E3E3E3 100%
    );
    border: 1px solid #E8E8E8;
    padding: 6px;
    border-radius: 4px;
}

.editBtn__item img {
    width: 24px;
    height: 24px;
}

/* --------------------------------------------

    TEXT

-------------------------------------------- */
.for-text-center {
    text-align: center;
}

.commonWord {
    color: var(--colorBlack);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    padding: 0;
}

.commonWord a {
    color: var(--colorBlack);
    text-decoration: none;
}

/* --------------------------------------------

    table

-------------------------------------------- */
@media screen and (max-width: 1200px) {
    .table-scroll {
        width: 100%;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-scroll .commonTable {
        min-width: 1160px;
    }
}


.commonTable {
    min-width: 100%;
    border-collapse: collapse;
}

.commonTable.table-full {
    min-width: calc(100% - 40px);
}

.commonTable tr:nth-child(2n + 1) {
    background-color: #FFF;
}

.commonTable tr:nth-child(2n) {
    background-color: #F9F9F9;
}

.commonTable thead th {
    position: relative;
    background: #EEEEEE;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    padding: 0;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-top: 1px solid #ccc;
    height: 52px;
    align-content: center;
}

.sortBtn {
    position: absolute;
    background-image: url(../image/icon-sort.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 16px;
    height: 16px;
    right: 0;
    bottom: 0;
}

#filter-table thead th.no-filter::after {
    content: none;
}

.companyTable {
    min-width: unset;
}

.evenlyTable thead th {
    width: 82px;
}

.evenlyTable tbody td {
    background-color: unset;
    vertical-align: middle;
}

.commonTable__v1 thead th:nth-child(1) {
    width: 60px;
}

.commonTable tbody td {
    border-collapse: collapse;
    font-size: 12px;
    font-weight: 400;
    padding: 8px calc(8px * 0.5);
    text-align: center;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    min-height: 44px;
}

.commonTable tbody td.price-align-right {
    text-align: end;
    padding-right: 8px;
}

.commonTable__v1 tbody td:nth-child(1) {
    width: 60px;
}

.commonTable tbody td a {
    color: #0A49B6;
    text-align: start;
    display: block;
    margin-right: auto;
}

.commonTable input[type="checkbox"] {
    height: 16px;
    margin: 0;
    padding: 0;
    position: relative;
    top: 4px;
    width: 16px;
}

.table {
    display: block;
    overflow-y: auto;
    border-collapse: separate;
    margin-bottom: 0 !important;
}

.table__head {
    position: sticky;
    top: 0;
    z-index: 1;
}

.table__head tr th+th,
.table__body tr td+td {
    border-left: 1px solid #e7e7e7;
}

.contentsTable {
    display: none;
    /* border-bottom: 1px solid #e7e7e7; */
}

.contentsTable.is-active {
    display: block;
}

.status_estimate {
    font-weight: bold !important;
}

.status {
    font-size: 12px;
    letter-spacing: 0.15em;
    font-weight: 500;
    width: 80px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    border-radius: 4px;
    background: #7F7F7F;
    color: #fff;
}

.status_estimate .status {
    background-color: #E08A4D;
    color: #fff;
}

.status_order .status {
    background-color: #D64D4D;
    color: #fff;
}

.status_inproduction .status  {
    background-color: green;
    color: #fff;
}

.chat_space {
    background-color: white;
}

.personInfoList {
    display: grid;
    gap: 16px;
    padding-left: 0;
    margin-top: 10px;
}

.personInfoList__item {
    display: grid;
    font-size: 14.4px;
}

.personInfoList__item span {
    font-weight: 600;
}
/* --------------------------------------------

    form

-------------------------------------------- */
.formArea .formArea__item:last-of-type {
    border-bottom: 1px solid #d9d9d9;
}

.formArea__item {
    align-items: center;
    border-top: 1px solid #d9d9d9;
    display: grid;
    grid-template-columns: 260px auto;
    margin: 0;
    padding: calc(8px * 1) 2%;
}

.formArea__item--title {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

.formArea__item--input {
    margin: 0;
    padding: 0;
}

.blackout {
    background-color: black;
    color: black;
    padding: 2px;
    border-radius: 3px;
}

.formArea__item--input input {
    border: 1px solid #a1a1a1;
    border-radius: 5px;
    font-size: 14px;
    margin: 0;
    padding: calc(8px * 1);
    width: 100%;
}

.formArea__item--input textarea {
    width: 100%;
    height: calc(12px * 6);
}

.formArea__item--checkbox {
    align-items: center;
    column-gap: calc(8px * 3);
    display: flex;
}

.buttonCheck input {
    margin-right: 6px;
    position: relative;
    top: 1px;
}

.box-w {
    width: 100%;
}

.flex-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px;
}

.formPosition {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
}

.quantity-m {
    margin: 0 auto;
}

.elseItem div input {
    width: 100%;
}

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

.block {
    display: block;
    word-wrap: break-word;
}

#btn-notice-estimate {
    position: relative;
}

/* #btn-notice-estimate span {
    position: absolute;
    top: -10px;
    left: calc(100% - 10px);
    color: #fff;
    font-weight: bold;
    line-height: 20px;
    text-align: center;
    background: #e68031;
    border-radius: 10px;
    min-width: 20px;
    padding: 0 3px;
    box-sizing: border-box;
} */

#btn-notice-contacts {
    position: relative;
}

/* #btn-notice-contacts span {
    position: absolute;
    top: -10px;
    left: calc(100% - 10px);
    color: #fff;
    font-weight: bold;
    line-height: 20px;
    text-align: center;
    background: #e68031;
    border-radius: 10px;
    min-width: 20px;
    padding: 0 3px;
    box-sizing: border-box;
} */

#btn-notice-businessflow {
    position: relative;
}

#btn-notice-businessflow span {
    position: absolute;
    top: -10px;
    /* 表示位置を上から-10pxの位置にする */
    left: calc(100% - 10px);
    /* 表示位置を右から内側に10pxの位置 */
    color: #fff;
    /* 文字色を白に指定 */
    font-weight: bold;
    /* 太文字にする */
    line-height: 20px;
    /* 行の高さを指定 */
    text-align: center;
    /* 文字を中央揃えにする */
    background: #e68031;
    /* 背景色をオレンジに指定 */
    border-radius: 10px;
    /* line-heightの半分の角丸を指定 */
    min-width: 20px;
    /* 最低幅を指定 */
    padding: 0 3px;
    /* 左右に少しだけ余白を設定 */
    box-sizing: border-box;
}

#allUpdateButton {
    margin-left: 10px;
    width: 80px;
    height: 30px;
    display: none;
    border-radius: 5px;
    /* text-decoration: none; */
}

#updateButton {
    margin-left: 10px;
    width: 80px;
    height: 30px;
    display: none;
    border-radius: 5px;
    /* text-decoration: none; */
}

.tfArea {
    display: inline-block;
    position: relative;
}

.tfImg {
    display: inline-block;
    margin-left: 2px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.form-hidden {
    display: none;
}

/* === フィルタボタン（カーソルオーバー時）======= */
.tfImg:hover {
    background: #e2e5e8;
}

/* === フィルタボタン内の画像色（SVG）============ */
.tfImg path {
    fill: #777;
}

/* === フィルタリスト ============================ */
.tfList {
    display: inline-block;
    position: absolute;
    max-width: 250px;
    min-width: 180px;
    background: #fff;
    border: 1px solid #777;
    top: 15px;
    left: 0;
    line-height: 1.1;
    font-weight: normal;
    z-index: 100;
    padding: 5px;
}

/* === フィルタリスト内のform ==================== */
.tfList form {
    max-height: 150px;
    /* 縦幅 */
    overflow: scroll;
    overflow: overflow-y;
    overflow: auto;
}

/* === フィルタリスト内のチェックボックス ======== */
.tfMeisai {
    text-align: left;
    padding: 2px;
}

/* === フィルタリスト内の文字位置合わせ ========== */
.tfMeisai label {
    padding: 0 10px 0 3px;
}

/* === OK/CANCELボタン =========================== */
.tfBtnArea {
    text-align: center;
    font-size: 8pt;
    padding: 3px 5px;
    display: grid;
    gap: 5px;
}

.tfBtnArea input {
    display: inline-block;
}

/* === 含むボタンの入力エリア ==================== */
.tfInStr {
    padding: 5px 3px;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
    margin-top: 5px;
}

.tfInStr input {
    box-sizing: border-box;
    width: 100%;
    padding: 1px 3px;
    font-weight: normal;
    font-size: 95%;
    border: 1px solid #ccc;
}

/* === フィルタ非表示 ============================ */
#filter-table tr[cmanFilterNone] {
    display: none;
}

/* === フィルタ非表示行と次行の間を二重線にする == */
#filter-table tr[cmanFilterNone]+tr td {
    border-top: 3px double #777;
}

th span {
    color: #1C1B1F;
    vertical-align: middle;
    display: inline-block;
    line-height: 1.3;
}

.sortBtn {
    cursor: pointer;
}

.w-narrow {
    width: 80px;
}

@media screen and (max-width: 1280px) {
    .w-narrow {
        width: 72px;
    }

}

.w-middle {
    width: 100px;
}

@media screen and (max-width: 1280px) {
    .w-middle {
        width: 80px;
    }

}

.w-wide-middle {
    width: 120px;
}

@media screen and (max-width: 1280px) {
    .w-wide-middle {
        width: 100px;
    }

}

.w-wide {
    width: 150px;
}

@media screen and (max-width: 1280px) {
    .w-wide {
        width: 120px;
    }

}

.w-full {
    width: 100% !important;
}

.w-10 {
    width: 10% !important;
}

.w-20 {
    width: 20% !important;
}

.w-30 {
    width: 30% !important;
}

.w-40 {
    width: 40% !important;
}

.w-50 {
    width: 50% !important;
}

.w-60 {
    width: 60% !important;
}

.w-70 {
    width: 70% !important;
}

.w-80 {
    width: 80% !important;
}

.w-90 {
    width: 90% !important;
}


.quotationInfo {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    background: #F8FAFC;
    border: 1px solid #D2D2D2;
    padding-block: 16px;
    border-radius: 4px;
    margin: 10px 6px 6px 6px;
}

.quotationInfo__btn {
    display: none;
}

.quotationInfo__content {
    padding-inline: 24px;
    border-right: 1px solid #D2D2D2;
}

.quotationInfo__content:nth-child(1) {
    padding-left: 16px;
}

.quotationInfo__content:nth-last-child(1) {
    padding-right: 16px;
    border-right: none;
}

.quotationInfo__text {
    font-size: 14.4px;
    display: grid;
    line-height: 1.252;
}

.quotationInfo__text span {
    font-weight: 600;
}

.quotationInfo button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
}

.quotationInfo input,
.quotationInfo select {
    width: 160px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.quotationInfo .hidden {
    display: none;
}

.inline-block {
    display: inline-block;
}

.quotationInfo .inline-block {
    width: 160px;
    text-align: start;
}

.quotationInfo input[type="checkbox"] {
    vertical-align: middle;
}

.password-icon {
    width: 20px;
    height: 20px;
}

.failUp {
    border-block: 1px solid #D2D2D2;
    padding-block: 24px;
    margin-top: 24px;
}

.failUp__text {
    font-size: 14px;
    margin-block: 10px 0;
}

.failUp__form {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.failUp__btn {
    background: #212529;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* パスワードの説明文用 */
.password-note {
  font-size: 12px;
  color: #555;
  margin: 0;           /* ← 不要な空白を消す */
  line-height: 1.4;    /* ← 細めでスッキリ */
}

.transactionLink {
    display: grid;
    gap: 4px;
    margin-top: 8px;
}

.notificationList {
    display: grid;
    gap: 8px;
}

.summary__column {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 24px;
}

.summaryPrice {
    width: fit-content;
    padding-left: 16px;
}

.summary__right {
    padding-bottom: 16px;
}

.summaryPrice__text  {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}

.drawingTotal {
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
}

.edit__column {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.edit__column .filterClear {
    margin-top: 12px;
}
