﻿body {
}

:root {
    --color-primary: #ff9933;
    --color-primary-strong: #ff8a00;
    --color-danger: #e74c3c;
    --color-danger-dark: #d63a2e;
    --color-border: #cbd5d1;
    --color-surface: #f7faf9;
    --color-surface-strong: #ffffff;
    --color-text: #000000;
    --color-note: #43484D;
}

.lblInfo {
    font-size: 26px;
    font-weight: bold;
    color: red;
    display: block;
    margin-bottom: 20px;
}

.Headline {
    display: block;
    font-size: 33px;
    font-weight: bold;
    margin-bottom: 20px;
}

.largeButton {
    -webkit-appearance: none;
    appearance: none;
    padding-top:2px;
    padding-bottom:2px;
    border: 1px solid var(--color-border);
    min-width:180px;
    font-size:18px;
    height:30px;
    border-radius:8px;
    color: var(--color-text);
    cursor: pointer;
    background: var(--color-surface);
    font-weight: normal;
    transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
}

.largeButton:hover {
    background: var(--color-surface-strong);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    transform: translateY(-1px);
}

.ButtonBlack {
    margin-left: 4px;
    margin-right: 4px;
    padding-top: 2px;
    padding-bottom: 2px;
    width: 100px;
    height: 30px;
    font-size: 18px;
    border-radius: 5px;
    border: none;
    color: white;
    background-color: black;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
}

.ButtonBlack.ButtonBlack--WidthAuto {
    width: auto;
}

.ButtonBlack:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    transform: translateY(-1px);
}

.ButtonBlack:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background-color: #ccc;
    color: #777;
    border: 1px solid #aaa;
}

.ButtonBlack:disabled:hover {
    box-shadow: none;
    transform: none;
}

.ButtonWarning {
    -webkit-appearance: none;
    appearance: none;
    padding-top:2px;
    padding-bottom:2px;
    min-width:100px;
    height:30px;
    font-size:18px;
    border-radius:5px;
    border: 1px solid var(--color-danger);
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
    background-color: var(--color-danger);
    color: var(--color-surface-strong);
}

.ButtonWarning:hover {
    background: var(--color-danger-dark);
    border-color: var(--color-danger-dark);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    transform: translateY(-1px);
}


/* 2026-05-05 Yuji ADD BEGIN */
.ButtonWarning:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background-color: #ccc;
    color: #777;
    border: 1px solid #aaa;
}

.ButtonWarning:disabled:hover {
    box-shadow: none;
    transform: none;
}
/* 2026-05-05 Yuji ADD END */

.inputPassword {
    width: 200px;
    margin: 5px;
}

.confirmModal {
    display: none; /* default hidden; JS sets to flex when opened */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.confirmModal.is-visible {
    display: flex;
}

.confirmModal__content {
    background-color: var(--color-surface-strong);
    padding: 24px 24px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    width: 90%;
    border: 4px solid var(--color-danger);
}

@media screen and (max-width: 768px) {
    .confirmModal__content {
        max-width: none;
        text-align: center;
        padding: 48px 24px 40px;
    }
}

.confirmModal__title {
    margin: 0 0 8px;
    color: var(--color-danger);
    font-size: 18px;
}

@media screen and (max-width: 768px) {
    .confirmModal__title {
        font-size: 40px;
        margin-bottom: 20px;
    }
}

.confirmModal__text {
    margin: 8px 0 20px;
    color: #333;
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    .confirmModal__text {
        font-size: 36px;
        margin-bottom: 40px;
    }
}

.confirmModal__qty {
    font-weight: bold;
    color: var(--color-danger);
    font-size: 18px;
}

@media screen and (max-width: 768px) {
    .confirmModal__qty {
        font-size: 36px;
    }
}

.confirmModal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

@media screen and (max-width: 768px) {
    .confirmModal__actions {
        justify-content: center;
        gap: 30px;
    }
}

/* Buttons (scoped to confirm modal) */
.confirmModal__button {
    -webkit-appearance: none;
    appearance: none;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
}

@media screen and (max-width: 768px) {
    .confirmModal__button {
        font-size: 30px;
    }
}

.confirmModal__button--danger {
    background-color: var(--color-danger);
    border-color: var(--color-danger);
    color: var(--color-surface-strong);
}
.confirmModal__button--danger:hover {
    background: var(--color-danger-dark);
    border-color: var(--color-danger-dark);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    transform: translateY(-1px);
}

.confirmModal__button--secondary {
    background-color: #f0f0f0;
    color: #333;
    border-color: #e0e0e0;
}
.confirmModal__button--secondary:hover {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    transform: translateY(-1px);
}

/* 2025-10-16 Yuji ADD BEGIN */

.FilterList {
    margin-bottom: 15px;
    padding-left: 0;
    list-style: none;
    display: none;
}

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

.FilterList__item {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    list-style: none;
    flex-wrap: wrap;
}

.FilterList__item--invoice {
    display: none;
}

.FilterList__item--invoice.is-visible {
    display: flex;
}

.FilterList__item--add-button {
    margin-top: 20px;
}

.FilterList__item:last-child {
    margin-bottom: 0px;
}

.FilterList__label {
    width: 125px;
}

.FilterList__input {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 8px;
    border: 1px solid;
    border-color: gray;
    color: var(--color-text);
    font-size: 18px;
    height: 35px;
    width: 180px;
    box-sizing: border-box;
    background-color: var(--color-surface-strong);
}

.FilterList__select {
    position: relative;
}

.FilterList__select::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.FilterList__select select {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 8px;
    border: 1px solid;
    border-color: gray;
    color: var(--color-text);
    font-size: 18px;
    height: 35px;
    min-width: 180px;
    padding: 0 30px 0 10px;
    box-sizing: border-box;
    background-color: var(--color-surface-strong);
    cursor: pointer;
}

.FilterList__note {
    display: block;
    width: 100%;
    color: var(--color-note);
    font-size: 16px;
}

.DeliveryImage {
    margin-bottom: 5px;
    width: 150px;
    aspect-ratio: 1;
    object-fit: cover;
}

.TableFileButton {
    width: 195px;
}

.TableFileButton::file-selector-button,
.TableButton {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: normal;
    -webkit-appearance: none;
    appearance: none;
    font-size: 13px;
    border-radius: 5px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0 10px;
    cursor: pointer;
    min-width: 80px;
    height: 26px;
    background: var(--color-surface);
    transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
    box-sizing: border-box;
}

.TableButton:any-link {
    text-decoration: none;
    color: white;
}

.TableFileButton::file-selector-button:hover,
.TableButton:hover {
    background: var(--color-surface-strong);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    transform: translateY(-1px);
}

.TableButtonWrap {
    margin-top: 5px;
}

.orderErrorMsg {
    color: red;
    font-weight: bold;
    font-size: 17px;
    line-height: 1.3;
    margin: 0 0 5px 0;
    white-space: pre-wrap;
}

.notice-message {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #f4f6f8;
  border-left: 4px solid #3b82f6; /* 青系で新機能感を演出 */
  padding: 8px 12px;
  border-radius: 4px;
  margin: 15px 0 0 0;
  max-width: 700px;
}

.notice-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 6px;
  font-size: 14px;
  font-weight: bold;
  color: #1e3a8a;
  background-color: #dbeafe;
  border-radius: 3px;
}

.FilterPanel {
    margin-bottom: 20px;
}

.FilterTabs {
    display: flex;
    gap: 8px;
}

.FilterTabs__button {
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid #dadada;
    border-bottom: none;
    background: #f9faf9;
    color: #222;
    padding: 8px 14px;
    font-size: 20px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
}

.FilterTabs__button:hover {
    background: var(--color-surface-strong);
}

.FilterTabs__button.is-active {
    background: var(--color-primary); /* match header color used elsewhere */
    color: var(--color-surface-strong);
    border-color: var(--color-primary-strong);
    box-shadow: none;
    /* Keep the active tab non-clickable to prevent redundant clicks */
    pointer-events: none;
}

.FilterTabs__button:active {
    background: var(--color-primary);
    color: var(--color-surface-strong);
    border-color: var(--color-primary-strong);
    box-shadow: none;
}

.FilterPanel {
    border: 2px solid var(--color-primary);
    padding: 20px;
    margin-right: 10px;
    border-radius: 0 8px 8px 8px;
}

.FilterList {
    margin: 0;
}

.gdviewOrderList {
    border-collapse: collapse;
    margin-bottom: 30px;
    border: 1px solid #999999;
    min-width: 929px;
}

.gdviewOrderList td,
.gdviewOrderList th {
    padding: 3px;
}

.gdviewOrderList th {
    background-color: var(--color-primary);
    font-weight: bold;
    color: var(--color-surface-strong);
}

.gdviewOrderList td {
    background-color: #EEEEEE;
    color: #000000;
}

.gdviewOrderList tr:nth-child(odd) td { background-color: #DCDCDC; }

.gdviewOrderList__CompanyNameHead,
.gdviewOrderList__CompanyNameData { width: 100px;}

.gdviewOrderList__DeliveryImageHead,
.gdviewOrderList__DeliveryImageData { width: 200px; }

.gdviewOrderList__MemoHead,
.gdviewOrderList__MemoData { width: 150px; }

.gdviewOrderList__CompanyNameDataMemo {
    margin-top: 4px;
    color: #43484D;
}

.orderNotFound {
  margin-bottom: 20px;
}

.orderNotFound__message {
  font-size: 20px;
}
/* 2025-10-16 Yuji ADD END */

/* 2025-12-12 Yuji ADD: Toast banner for transient messages */
.toastBanner {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    z-index: 100;
    font-size: 18px;
    font-weight: 600;
    transition: opacity .5s ease, transform .5s ease;
}

.toastBanner--success {
    background: var(--color-surface-strong);
    color: #2e7d32;
    border: 2px solid #2e7d32;
    display: flex;
    align-items: center;
}

.toastBanner--success::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-right: 12px;
    background: #4caf50;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.toastBanner.is-fadeout {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px);
}

.gdview__headRow {
    background-color: #333333;
    color: #FFFFFF;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 2;
}

.stock-qty {
    font-weight: bold;
    font-size: 15px;
}

.stock-bbd {
    font-size: 14px;
    margin-left: 4px;
}

.stock-divider {
    border: none;
    border-top: 1px dashed black;
    margin: 4px 0;
}