
/* Fonts */
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400);

/* fontawesome */
@import url(https://weloveiconfonts.com/api/?family=fontawesome);

body {
}

.h3panel {
    background-color: #bbdbf3;
    padding: 2px;
    border-bottom: 2px solid #ccc;
    margin-left: 2px;
    margin-bottom: 1px;
}

input[readonly] {
    background-color: #e9ecef; /* グレー背景 */
    cursor: not-allowed; /* カーソルを変更 */
}

.standardLabel {
    background-color: #b0c4de;
    padding: 5px;
    display: inline-block;
}

.labelMargin100 {
    margin-left: 100px;
}

.labelLayout130 {
    width: 130px;
}

.label-highlight {
    border: 2px solid #2ca9e1; /* 枠線 */
    padding: 2px 6px; /* 内側の余白 */
    background-color: #89c3eb; /* 薄い背景色 */
    display: inline-block;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup {
    position: relative;
    z-index: 2001;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}


.showup-overlay#popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none; /* 初期は非表示 */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: auto; /* 必要に応じてスクロール */
}

.showup-content#popup {
    background: #fff;
    max-width: 90%; /* 画面幅に対する最大幅 */
    max-height: 90%; /* 画面高さに対する最大高さ */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    overflow-y: auto; /* 高さが大きくなる場合は縦スクロール */
}

/* フッタ固定レイアウト（.popup-shell 付与時は内側 .popup-shell__scroll がスクロール） */
.showup-content#popup.popup-shell {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.showup-overlay#popup.show {
    display: flex;
}

.button-panel#popup {
    display: flex; /* 横並びにする */
    justify-content: space-between; /* 均等に間隔を空ける */
    width: 100%; /* 親幅いっぱい */
}

    .button-panel#popup button {
        flex: 1; /* 全ボタンを同じ幅にする */
        margin: 0 5px; /* ボタン間の間隔 */
    }

.popupBtn1 {
    padding: 12px 18px;
    min-height: 48px;
    margin-top: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    touch-action: manipulation;
    font-size: 1rem;
}

.popupBtn2 {
    padding: 12px 18px;
    min-height: 48px;
    margin-top: 10px;
    background-color: #f5f5f5;
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    touch-action: manipulation;
    font-size: 1rem;
}


.popupBtn3 {
    padding: 12px 18px;
    min-height: 48px;
    margin-top: 10px;
    background-color: ffdc00;
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    touch-action: manipulation;
    font-size: 1rem;
}

.menuBtn_01 {
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    margin: auto;
    padding: 12px 30px;
    font-weight: bold;
    color: #FFFFFF;
    border: 1px solid #bbdbf3;
    background-color: #336FFF;
    border-radius: 100vh;
    transition: 0.5s;
    margin-left: 20px;
}

    .menuBtn_01:hover {
        color: #f5f5f5;
        background: #3366CC;
    }

.btn_01 {
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    margin: auto;
    padding: 18px 35px;
    font-weight: bold;
    color: #FFFFFF;
    border: 1px solid #bbdbf3;
    background-color: #336FFF;
    border-radius: 100vh;
    transition: 0.5s;
}

    .btn_01:hover {
        color: #f5f5f5;
        background: #3366CC;
    }


.btn_01ex {
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    margin: auto;
    padding: 2px 13px;
    font-weight: bold;
    color: #000;
    border: 1px solid #336FFF;
    border-radius: 100vh;
    transition: 0.5s;
}

    .btn_01ex:hover {
        color: #4ca5ff;
    }

.btn_02 {
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    margin: auto;
    padding: 0.5rem 2rem;
    font-weight: bold;
    border: 1px solid #bbdbf3;
    background-color: #bbdbf3;
    border-radius: 100vh;
    transition: 0.5s;
}

    .btn_02:hover {
        color: #fff;
        background: #a4c1d7;
    }

.detailBtn_03 {
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    margin: auto;
    padding: 0.1rem 1rem;
    font-weight: bold;
    border: 1px solid #bbdbf3;
    background-color: #bbdbf3;
    border-radius: 100vh;
    transition: 0.5s;
}

    .detailBtn_03:hover {
        color: #000;
        background: #a4c1d7;
    }


.btn_04 {
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    margin: auto;
    padding: 0.5rem 2rem;
    font-weight: bold;
    border: 1px solid #bbdbf3;
    background-color: #bbdbf3;
    border-radius: 100vh;
    transition: 0.5s;
}

    .btn_04:hover {
        color: #000;
        background: #a4c1d7;
    }



.btn_05 {
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    margin: auto;
    padding: 0.5rem 2rem;
    font-weight: bold;
    border: 1px solid #bbdbf3;
    background-color: #bbdbf3;
    border-radius: 100vh;
    transition: 0.5s;
}

.table-container {
    overflow-y: scroll;
    overflow-x: scroll;
    table-layout: fixed;
}


.accordion-content#bellows {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

    .accordion-content#bellows.open {
        max-height: 10000px; /* 適切な高さに調整 */
    }

.readonly-checkbox#unClicked {
    pointer-events: none; /* クリックできなくする(フォーカスも当たらない) */
}

.instruct#instruct {
    margin-left: 11px;
    margin-right: 11px;
    margin-top: 3px;
    margin-bottom: 3px;
    accent-color: black; /*チェックボックスやチェックマークの色 */
}

.work#work {
    margin-left: 11px;
    margin-right: 11px;
    margin-top: 3px;
    margin-bottom: 3px;
    accent-color: black; /*チェックボックスやチェックマークの色 */
}

.checkbox-ins#instruct {
    background-color: lightpink;
}

.checkbox-wk#work {
    background-color: lightskyblue;
}

.table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}

.header-table {
    background-color: #89ff89;
}

table th {
    padding: 4px 8px;
    white-space: nowrap; /* 折り返さずに横スクロールできる */
}

table tr {
    background-color: #ffffff;
    padding: 4px 8px;
    white-space: nowrap; /* 折り返さずに横スクロールできる */
}

    table tr:nth-child(even) {
        background-color: #dbffed;
    }

/* ヘッダー丸バッジ用 */
::deep(.my-badge .mud-badge-content) {
    background-color: #E68031 !important;
    color: #FFF !important;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    line-height: 20px;
    padding: 0 4px;
    box-sizing: border-box;
    text-align: center;
}

/* フッター用（各ページの <footer>。ホーム下端帯は .app-shell-home-footer） */
footer {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    min-height: calc(44px + env(safe-area-inset-bottom, 0px));
    z-index: 1250;
    background-color: #f8f8f8;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    text-align: right;
    border-top: 1px solid #ccc;
    box-sizing: border-box;
}

/* メインの外側に描画するホーム帯（MainLayout）：タブレット縦でも可視／ドロワーは通常これより前面 */
footer.app-shell-home-footer {
    z-index: 1180;
    min-height: var(--app-home-footer-strip, calc(52px + env(safe-area-inset-bottom, 0px)));
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}
/*フッターオプションここまで*/

.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 入力欄 */
.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
    }

    /* ← scoped CSS では要注意：InputText は input に展開されるので input をターゲットにする */
    .form-group input {
        width: 100%;
        padding: 10px;
        border: 1px solid #0affff !important;
        border-radius: 3px;
    }

/* ボタン */
.button-panel {
    margin-top: 20px;
}

    /*ログインフォーム用*/
    .button-panel button {
        width: 100%;
        padding: 10px;
        background-color: #4ca5ff;
        color: #fff;
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }

        .button-panel button:hover {
            background-color: #1a8cff;
        }


.groupDiv#grpDiv {
    display: grid; /* ←これ必須！ */
    grid-template-columns: repeat(3, 1fr); /* 3列にする */
    gap: 1em 1em; /* 縦横の間隔 */
    margin-bottom: 15px;
    margin-left: 25px;
}

.Box#grpDiv {
    border: 2px solid #b0c4de; /* 太さ, 線種, 色 */
    padding: 1em; /* 内側の余白 */
    margin: 0 0 1em 20px; /* 外側の余白　上 1em 右 0 下 1em 左 20px */
}

    .groupDiv#grpDiv label,
    .Box#grpDiv label {
        display: flex;
        align-items: center; /* 縦方向に中央揃え */
    }

.required {
    color: red;
}

button:disabled {
    color: #d3d3d3; /* 文字色も弱める */
    cursor: not-allowed; /* 禁止マークのカーソル */
    opacity: 0.5; /* 少し透けさせる */
    border: 1px solid #999; /* 輪郭もくすませる */
    box-shadow: none; /* 影を消してフラットに */
}

.disabled {
    pointer-events: none; /* クリックできなくする(フォーカスも当たらない) */
}

.a4-preview#test {
    width: 210mm; /* A4幅 */
    height: 297mm; /* A4高さ */
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    padding: 10mm;
    overflow: auto;
}

    .a4-preview#test h1 {
        text-align: center;
        font-size: 24px;
        margin-bottom: 20px;
    }

    .a4-preview#test table {
        width: 100%;
        border-collapse: collapse;
    }

    .a4-preview#test th, .a4-preview#test td {
        border: 1px solid #333;
        padding: 8px;
        text-align: left;
    }

    .a4-preview#test th {
        background-color: #eee;
    }

.page-container#outer {
    padding: 17px;
    padding-bottom: 130px;
}

.button-search#panel {
    background-color: #f0f8ff;
    color: #000;
    margin-bottom: 8px;
}

@media print {
    .a4-page {
        width: 210mm;
        height: 297mm;
        page-break-after: always;
        overflow: hidden;
    }

    table, tr, td {
        page-break-inside: avoid;
    }
}
/*各種タブ用の背景（共通）*/
.container#com {
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}
/* ===== タブヘッダー ===== */
.tab-container-maildock#dock {
    display: flex;
    border-bottom: 1px solid #ccc;
    background-color: #fff9ff;
}

    .tab-container-maildock#dock ul {
        margin: 0;
        padding: 10px;
        list-style: none;
        display: flex;
        gap: 10px;
        margin-bottom: 0;
        width: 100%;
    }

        .tab-container-maildock#dock ul li {
            flex: 0 0 auto; /* ← 内容に応じて幅を決める */
            padding: 6px 15px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: white;
            border: 2px solid #e0e0e0; /* 灰色 */
            border-radius: 12px;
            color: #666;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

            .tab-container-maildock#dock ul li.selected {
                color: #555555; /* 濃い灰色 */
                background: #ffdbff; /* 薄目の桃色 */
                border-color: #ffe0ff; /* 薄目の桃色より１段階薄い桃色 */
                box-shadow: 0 4px 12px rgba(138, 172, 243, 0.4);
                transform: translateY(-2px);
                font-weight: bold;
            }

            .tab-container-maildock#dock ul li:not(.selected):hover {
                border-color: #eaeaff;
                color: #c1c1ff;
                transform: translateY(-1px);
                font-weight: bold;
            }

    .tab-container-maildock#dock .tab-content#mailbox {
        display: none;
        padding: 24px;
        min-height: 150px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin: 0 20px 20px 20px;
    }

        .tab-container-maildock#dock .tab-content#mailbox.selected {
            display: block;
        }

/* ===== タブ：通常色 ===== */
/*メールボックス用*/
.tab-container#mailbox ul {
    margin: 0;
    padding: 10px;
    list-style: none;
    display: flex;
    gap: 15px;
    margin-bottom: 0;
    width: 100%;
}

    .tab-container#mailbox ul li {
        flex: 0 0 auto; /* ← 内容に応じて幅を決める */
        padding: 6px 15px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        background: white;
        border: 2px solid #e0e0e0;
        border-radius: 12px;
        color: #666;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

        .tab-container#mailbox ul li.selected {
            color: #555555;
            background: #bbdbf3;
            border-color: #bbdbf3;
            box-shadow: 0 4px 12px rgba(138, 172, 243, 0.4);
            transform: translateY(-2px);
            font-weight: bold;
        }

        .tab-container#mailbox ul li:not(.selected):hover {
            border-color: #696969;
            color: #696969;
            transform: translateY(-1px);
            font-weight: bold;
        }

        .tab-container#mailbox ul li.right {
            margin-left: auto;
        }

.tab-container#mailbox .tab-content#mailbox#mailbox {
    display: none;
    padding: 24px;
    min-height: 150px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 20px 20px 20px;
}

.tab-container#mailbox .tab-content#mailbox.selected {
    display: block;
}

.tab-container#mailbox {
    display: flex;
    border-bottom: 1px solid #ccc;
    background-color: #f0f8ff;
}

/* ===== タブ：変化色 ===== */
.send-tab-container#mailbox ul {
    margin: 0;
    padding: 10px;
    list-style: none;
    display: flex;
    gap: 15px;
    margin-bottom: 0;
    width: 100%;
}

    .send-tab-container#mailbox ul li {
        flex: 0 0 auto; /* ← 内容に応じて幅を決める */
        padding: 6px 15px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        background: white;
        border: 2px solid #e0e0e0;
        border-radius: 12px;
        color: #666;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

        .send-tab-container#mailbox ul li:not(.selected):hover {
            border-color: #696969;
            color: #696969;
            transform: translateY(-1px);
            font-weight: bold;
        }

        .send-tab-container#mailbox ul li.selected {
            color: #555555;
            background: #ffcc99;
            border-color: #ffcc99;
            box-shadow: 0 4px 12px rgba(217, 153, 102, 0.4);
            transform: translateY(-2px);
            font-weight: bold;
        }

        .send-tab-container#mailbox ul li.right {
            margin-left: auto;
        }

.send-tab-container#mailbox .tab-content#mailbox {
    display: none;
    padding: 24px;
    min-height: 150px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 20px 20px 20px;
}

    .send-tab-container#mailbox .tab-content#mailbox.selected {
        display: block;
    }

.send-tab-container#mailbox {
    display: flex;
    border-bottom: 1px solid #ccc;
    background-color: #fff8f0;
}

/*タブの中身*/
.tab-content#hidedetail {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

    .tab-content#hidedetail.selected {
        opacity: 1;
        max-height: 2000px; /* 中身の高さに応じて十分大きく */
    }

/* ===== タブ：通常色 ===== */
/*青色のタブホーム*/
.tab-container#hometab {
    display: flex;
    border-bottom: 1px solid #ccc;
    background-color: #f0f8ff;
}

    .tab-container#hometab ul {
        margin: 0;
        padding: 20px;
        list-style: none;
        display: flex;
        gap: 15px;
        margin-bottom: 0;
    }

        .tab-container#hometab ul li {
            flex: 0 0 auto; /* ← 内容に応じて幅を決める */
            padding: 12px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            color: #666;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

            .tab-container#hometab ul li.selected {
                color: #555555;
                background: #bbdbf3;
                border-color: #bbdbf3;
                box-shadow: 0 4px 12px rgba(138, 172, 243, 0.4);
                transform: translateY(-2px);
                font-weight: bold;
            }

            .tab-container#hometab ul li:not(.selected):hover {
                border-color: #a4c1d7;
                color: #a4c1d7;
                transform: translateY(-1px);
                font-weight: bold;
            }

    .tab-container#hometab .tab-content#hometab {
        display: none;
        padding: 24px;
        min-height: 150px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin: 0 20px 20px 20px;
    }

        .tab-container#hometab .tab-content#hometab.selected {
            display: block;
        }



.tab {
    padding: 10px;
    cursor: pointer;
}

    .tab.active {
        font-weight: bold;
        background-color: #fff;
    }


/* ホーム統計：MudPaper 既定 padding / block レイアウトを上書きし、内側ラッパーで中身を収める */
.mud-paper.responsive-home-paper {
    position: static;
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: 100%;
    margin: 0;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.responsive-home-paper-body {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* 縮小 + スクロール（zoom はレイアウトも縮める。Chromium / 新しめの Firefox で有効） */
.responsive-home-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* zoom 未対応向けのフォールバック */
@supports not (zoom: 1) {
    .responsive-home-table-scroll {
        zoom: unset;
    }

    .responsive-home-table-scroll .home-stats-table {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }
}

.mud-paper.responsive-home-paper .home-stats-table {
    width: 100%;
    max-width: 100%;
    font-size: 0.875rem;
    line-height: 1.25;
    transform: none;
    table-layout: auto;
}

.mud-paper.responsive-home-paper .home-stats-table th,
.mud-paper.responsive-home-paper .home-stats-table td {
    padding: 0.2rem 0.35rem !important;
    font-size: inherit !important;
}

@media (max-width: 600px) {
    .responsive-container {
        width: 100% !important;
        height: 100% !important;
        margin: 0 auto; /* 中央寄せ */
    }

    .responsive-home-paper-body {
        padding: 6px 8px;
    }

    /* ホーム実績表：全画面表示時は表を読みやすく */
    .home-root-container .home-stats-section.is-open .home-stats-table {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .home-root-container .home-stats-section.is-open .home-stats-table th,
    .home-root-container .home-stats-section.is-open .home-stats-table td {
        padding: 0.35rem 0.4rem !important;
    }
}

.label-small {
    font-size: 0.9rem;
    top: -0.7rem;
    left: 0.75rem;
    position: absolute;
    z-index: 10;
}

.custom-textfield-wrapper {
    position: relative;
}

/* テンキー起動ボタンと並べた floating ラベルがボタンと重ならないよう、通常の上段ラベルにする */
.custom-textfield-wrapper:has(.touch-digit-trigger) .label-small {
    position: static;
    top: auto;
    left: auto;
    z-index: auto;
    display: block;
    margin-bottom: 0.35rem;
}

/* 引取サイン「引取先情報」：カード・入力をコンテナ幅いっぱいに */
.pickup-location-paper.mud-paper,
.pickup-location-paper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.pickup-location-paper .pickup-location-form,
.pickup-location-paper .pickup-location-name-manager-row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.pickup-location-paper .pickup-location-form .mud-input-root,
.pickup-location-paper .pickup-location-form .mud-input-control,
.pickup-location-paper .pickup-location-form .mud-input-slot,
.pickup-location-paper .pickup-location-form .mud-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

/* 色見本：MudTextField Outlined 風（ラベルを枠線上に載せ、中身と被らない） */
.color-swatch-outlined {
    position: relative;
    box-sizing: border-box;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    min-height: 40px;
    padding: 12px 12px 8px;
    display: flex;
    align-items: center;
    background-color: var(--mud-palette-surface, #fff);
}

.color-swatch-outlined__label {
    position: absolute;
    left: 10px;
    top: 0;
    transform: translateY(-50%);
    padding: 0 4px;
    margin: 0 !important;
    line-height: 1.2;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.6);
    background-color: var(--mud-palette-surface, #fff);
    z-index: 1;
    pointer-events: none;
}

.color-swatch-outlined__chip {
    width: 42px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid #ccc;
    flex-shrink: 0;
}

.required-fields {
    background-color: rgba(255,255,214,0.6);
}

/* 取引先名オートコンプリート候補：1行表示・長い名称はポップオーバー幅で折り返し */
.customer-name-pick-item {
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

.supplier-linked-customer-pick-group {
    width: 100%;
}

.supplier-linked-customer-pick-group > .supplier-linked-customer-pick-entry.mud-radio {
    border: 1px solid #90a4ae;
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
    margin: 0 0 0.5rem 0;
    background-color: #fafafa;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
}

.supplier-linked-customer-pick-group > .supplier-linked-customer-pick-entry.mud-radio:last-child {
    margin-bottom: 0;
}

.supplier-linked-customer-pick-radio {
    width: 100%;
}

.supplier-linked-customer-pick-text {
    width: 100%;
    min-width: 0;
}

.supplier-linked-customer-pick-item {
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

.supplier-linked-customer-pick-caption {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.65rem;
    line-height: 1.25;
    color: #607d8b;
}

/* サイン入力・表示：固定ピクセル（自動縮小しない） */
.signature-canvas-fixed {
    display: block;
    width: 600px;
    height: 280px;
    max-width: none;
    max-height: none;
    border: 1px solid #ccc;
    touch-action: none;
    box-sizing: border-box;
}

.signature-display-fixed {
    display: block;
    width: 600px;
    height: 280px;
    max-width: none;
    max-height: none;
    object-fit: none;
    border: 1px solid #ccc;
    background: #fff;
    box-sizing: border-box;
}

/* 解体作業結果：サイン表示（作業者・確認者を縦に分離し重なり防止） */
.work-sign-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.work-sign-block {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    background-color: #e5ffe5;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.work-sign-preview-wrap {
    display: block;
    width: 100%;
    margin-top: 8px;
    overflow-x: auto;
    overflow-y: hidden;
}

.work-sign-preview-wrap .signature-display-fixed,
.work-sign-preview-wrap .work-sign-preview-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 本入庫済・キャンセル等：フォーム全体を薄グレーで入力不可を明示 */
.ki-form-readonly-banner {
    color: #424242;
    background-color: #f5f5f5 !important;
    border-color: #bdbdbd !important;
}

.ki-handover-notes-readonly {
    min-height: 4.5rem;
    background: #fafafa;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    color: #212121;
}

/* 複数車両ジャンプチップ（VehicleScrollChipBar） */
.ki-vehicle-chip-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    padding: 8px 10px;
    margin-bottom: 12px;
    background: #f8fafc;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.ki-vehicle-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 72px;
    max-width: 140px;
    padding: 4px 8px;
    font-size: 0.72rem;
    line-height: 1.25;
    color: #37474f;
    background: #fff9c4;
    border: 1px solid #ffe082;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.ki-vehicle-chip:hover {
    background: #fff59d;
    border-color: #ffca28;
}
.ki-vehicle-chip.is-active {
    color: #fff;
    background: #1976d2;
    border-color: #1565c0;
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.35);
}
.ki-vehicle-chip-num {
    font-weight: 700;
    white-space: nowrap;
}
.ki-vehicle-chip-chassis {
    font-size: 0.68rem;
    opacity: 0.92;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ki-vehicle-chip.is-active .ki-vehicle-chip-chassis {
    opacity: 1;
}
.ki-vehicle-section-anchor {
    scroll-margin-top: 44px;
}

/* 画面名バー（PageScreenTitle） */
.ki-page-screen-title {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #bbdbf3;
    border-bottom: 2px solid #ccc;
    padding: 5px 14px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.ki-page-screen-title-text {
    display: block;
}

/* 営業活動登録：8枠スロット（VehicleRegisterSlotBar） */
.ki-vehicle-slot-bar {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.ki-vehicle-slot-summary {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    font-size: 0.72rem;
    color: #546e7a;
    white-space: nowrap;
    user-select: none;
}
.ki-vehicle-slot-summary-num {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1565c0;
}
.ki-vehicle-slot-summary-max {
    font-weight: 600;
}
.ki-vehicle-slot-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}
.ki-vehicle-slot {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    min-width: 52px;
    max-width: 108px;
    min-height: 26px;
    padding: 3px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
    border-radius: 4px;
    box-sizing: border-box;
    text-align: left;
}
.ki-vehicle-slot-num {
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}
.ki-vehicle-slot-chassis {
    font-size: 0.62rem;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.9;
}
.ki-vehicle-slot.is-registered {
    color: #37474f;
    background: #fff9c4;
    border: 1px solid #ffe082;
    cursor: pointer;
}
.ki-vehicle-slot.is-registered.is-active .ki-vehicle-slot-chassis {
    opacity: 1;
}
.ki-vehicle-slot.is-registered:hover {
    background: #fff59d;
    border-color: #ffca28;
}
.ki-vehicle-slot.is-registered.is-active {
    color: #fff;
    background: #1976d2;
    border-color: #1565c0;
    box-shadow: 0 2px 5px rgba(25, 118, 210, 0.35);
}
.ki-vehicle-slot.is-empty {
    color: #b0bec5;
    background: #eceff1;
    border: 1px dashed #cfd8dc;
    cursor: default;
    opacity: 0.85;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    min-width: 28px;
    max-width: none;
    padding: 0 6px;
}
.nr-vehicle-toolbar {
    position: sticky;
    bottom: calc(var(--nr-footer-h, 80px) + env(safe-area-inset-bottom, 0px));
    z-index: 1050;
    background: #eef3f8;
    border-top: 1px solid #cfd8e3;
    box-shadow: 0 -2px 8px rgba(15, 23, 42, 0.06);
}
.nr-vehicle-toolbar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    position: relative;
}
.nr-vehicle-toolbar-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}
.nr-vehicle-toolbar-toggle {
    display: none;
}
.nr-vehicle-toolbar-slots-panel {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
    justify-content: flex-end;
}
.nr-vehicle-toolbar-slots-panel .ki-vehicle-slot-bar {
    flex-wrap: nowrap;
    max-width: 100%;
    justify-content: flex-end;
}
.nr-vehicle-toolbar-slots-panel .ki-vehicle-slot-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: thin;
}

/* PC・iPad：車両バーは常に1行（左ボタン・右スロット） */
@media (min-width: 600px) {
    .nr-vehicle-toolbar-row {
        flex-wrap: nowrap;
    }
    .nr-vehicle-toolbar-actions {
        flex-wrap: nowrap;
    }
    .nr-vehicle-toolbar-limit-msg {
        white-space: nowrap;
    }
}

.nr-register-page {
    --nr-footer-h: 80px;
    --nr-vehicle-bar-h: 48px;
    margin-bottom: 100px;
}
@media (max-width: 599.98px) {
    .nr-register-page {
        --nr-footer-h: 44px;
        --nr-vehicle-bar-h: 44px;
        margin-bottom: 0;
        padding-bottom: calc(
            var(--nr-footer-h) + var(--nr-vehicle-bar-h) + env(safe-area-inset-bottom, 0px) + 4px
        );
    }
}

/* 営業活動登録：スマホのみコンパクト化（scoped / app.css の 80px を確実に上書き） */
@media (max-width: 599.98px) {
    .nr-page-footer.mud-paper {
        min-height: 0 !important;
        padding: 0 6px !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    }
    .nr-page-footer .negotiation-footer-actions {
        min-height: 44px !important;
        height: auto !important;
        gap: 4px;
        padding: 2px 0;
    }
    .nr-page-footer .nr-footer-icon-btn.mud-icon-button {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 4px !important;
    }
    .nr-vehicle-header {
        padding: 6px 10px !important;
        margin-bottom: 0.75rem !important;
        gap: 6px;
    }
    .nr-vehicle-header-num {
        font-size: 0.95rem;
    }
    .nr-vehicle-header .nr-dismantle-stop-toggle {
        padding: 4px 8px;
        font-size: 0.72rem;
        flex-shrink: 0;
    }
    .nr-vehicle-header .nr-dismantle-stop-label {
        gap: 4px;
    }
    .nr-vehicle-header .nr-dismantle-stop-label input[type="checkbox"] {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
    .nr-dismantle-stop-text--short {
        display: none;
    }
    .nr-dismantle-stop-text--full {
        display: inline;
    }
    .nr-vehicle-header .nr-dismantle-stop-text {
        white-space: nowrap;
    }
    .nr-dismantle-stop-text--full {
        display: none;
    }
    .nr-dismantle-stop-text--short {
        display: inline;
    }
    .nr-scroll-top-fab {
        bottom: calc(
            var(--nr-footer-h, 44px) + var(--nr-vehicle-bar-h, 44px) + env(safe-area-inset-bottom, 0px) + 12px
        ) !important;
    }
}

/* 営業活動登録・車両バー：スマホは fixed（sticky だと最下部で位置が跳ねる） */
@media (max-width: 599.98px) {
    .nr-vehicle-toolbar {
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        bottom: calc(var(--nr-footer-h, 44px) + env(safe-area-inset-bottom, 0px));
        z-index: 1090;
        box-sizing: border-box;
    }
    .nr-vehicle-toolbar-row {
        flex-wrap: nowrap;
        gap: 6px;
        padding: 6px 10px;
        min-height: var(--nr-vehicle-bar-h, 44px);
        box-sizing: border-box;
    }
    .nr-vehicle-toolbar-actions {
        flex: 0 0 auto;
        gap: 4px;
    }
    .nr-vehicle-toolbar-actions .mud-icon-button {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
    .nr-vehicle-toolbar-toggle {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        margin-left: auto;
        padding: 4px 10px;
        font-size: 0.75rem;
        font-weight: 700;
        color: #1565c0;
        background: #fff;
        border: 1px solid #90caf9;
        border-radius: 999px;
        cursor: pointer;
        white-space: nowrap;
        line-height: 1.2;
    }
    .nr-vehicle-toolbar-chevron {
        font-size: 0.6rem;
        transition: transform 0.15s ease;
    }
    .nr-vehicle-toolbar.is-open .nr-vehicle-toolbar-chevron {
        transform: rotate(180deg);
    }
    .nr-vehicle-toolbar-slots-panel {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 100%;
        margin: 0;
        padding: 6px 8px;
        background: #eef3f8;
        border-top: 1px solid #cfd8e3;
        box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.1);
    }
    .nr-vehicle-toolbar.is-open .nr-vehicle-toolbar-slots-panel {
        display: flex;
    }
    .nr-vehicle-toolbar-slots-panel .ki-vehicle-slot-bar {
        width: 100%;
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
        min-width: 0;
        margin-left: 0;
    }
    .nr-vehicle-toolbar-slots-panel .ki-vehicle-slot-summary {
        flex-shrink: 0;
        font-size: 0.68rem;
    }
    .nr-vehicle-toolbar-slots-panel .ki-vehicle-slot-list {
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        gap: 3px;
    }
    .nr-vehicle-toolbar-slots-panel .ki-vehicle-slot.is-registered {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 3px;
        max-width: 88px;
        min-height: 24px;
        padding: 2px 5px;
    }
    .nr-vehicle-toolbar-slots-panel .ki-vehicle-slot-suffix {
        display: none;
    }
    .nr-vehicle-toolbar-slots-panel .ki-vehicle-slot-idx::after {
        content: "：";
        font-weight: 700;
    }
    .nr-vehicle-toolbar-slots-panel .ki-vehicle-slot-chassis {
        font-size: 0.58rem;
    }
    .nr-vehicle-toolbar-slots-panel .ki-vehicle-slot.is-empty {
        flex: 0 0 auto;
        width: 22px;
        height: 22px;
        min-width: 22px;
        padding: 0;
        font-size: 0.65rem;
    }
}

/* 内外装写真（VehicleNsgsEditBlock） */
.vne-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.vne-add-btn {
    display: inline-block;
    background: #1976d2;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}
.vne-add-btn:hover:not(.is-disabled) {
    background: #1565c0;
}
.vne-add-btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}
.vne-meta {
    color: #666;
    font-size: 0.72rem;
}
.vne-progress {
    color: #c62828;
    font-size: 0.78rem;
    margin-top: 4px;
}
.vne-required-row {
    margin-top: 4px;
}
.vne-required-cell {
    position: relative;
    width: 120px;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}
.vne-required-cell.is-filled {
    border: 2px solid #c62828;
}
.vne-required-cell.is-empty {
    border: 2px dashed #c62828;
    background: #fff5f5;
}
.vne-required-label {
    background: #c62828;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    padding: 1px 3px;
    letter-spacing: 0.03em;
}
.vne-required-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 72px;
    text-align: center;
    color: #c62828;
    gap: 2px;
}
.vne-required-empty-icon {
    font-size: 1.1rem;
    line-height: 1;
}
.vne-required-empty-text {
    font-size: 0.7rem;
    line-height: 1;
}
.vne-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 4px;
    margin-top: 4px;
}
.vne-cell {
    position: relative;
    border: 1px solid #d0d7de;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}
.vne-img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    display: block;
}
.vne-section-select {
    display: block;
    width: 100%;
    padding: 1px 3px;
    font-size: 0.68rem;
    line-height: 1.3;
    color: #333;
    background: #f1f3f5;
    border: none;
    border-top: 1px solid #d0d7de;
    cursor: pointer;
    appearance: auto;
}
.vne-section-select:focus {
    outline: 2px solid #4682b4;
    outline-offset: -2px;
}
.vne-remove {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #c62828;
    background: rgba(255, 255, 255, 0.95);
    color: #c62828;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.vne-remove:hover {
    background: #c62828;
    color: #fff;
}

.ki-form-readonly-zone {
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 12px;
    opacity: 0.97;
}

.ki-form-readonly-zone ::deep .mud-input-control,
.ki-form-readonly-zone ::deep .mud-input-slot,
.ki-form-readonly-zone ::deep textarea,
.ki-form-readonly-zone ::deep .mud-input-outlined-border,
.ki-form-readonly-zone ::deep .mud-select-input,
.ki-form-readonly-zone ::deep .mud-checkbox,
.ki-form-readonly-zone ::deep .mud-radio,
.ki-form-readonly-zone ::deep .mud-picker,
.ki-form-readonly-zone ::deep .mud-button-root:not(.mud-button-like) {
    background-color: #ececec !important;
}

.ki-form-readonly-zone ::deep .mud-input-outlined .mud-input-outlined-border {
    border-color: #bdbdbd !important;
}

.ki-form-readonly-zone ::deep .mud-input-label {
    color: #757575 !important;
}

/* ロック中は MudBlazor の入力操作を止める（ただし写真例外領域は除外） */
.ki-form-readonly-zone ::deep .mud-input-control,
.ki-form-readonly-zone ::deep .mud-input-slot,
.ki-form-readonly-zone ::deep textarea,
.ki-form-readonly-zone ::deep .mud-input-outlined-border,
.ki-form-readonly-zone ::deep .mud-select-input,
.ki-form-readonly-zone ::deep .mud-checkbox,
.ki-form-readonly-zone ::deep .mud-radio,
.ki-form-readonly-zone ::deep .mud-picker,
.ki-form-readonly-zone ::deep .mud-button-root:not(.mud-button-like) {
    pointer-events: none !important;
}

.ki-form-readonly-zone .ki-form-photo-exception ::deep .mud-input-control,
.ki-form-readonly-zone .ki-form-photo-exception ::deep .mud-input-slot,
.ki-form-readonly-zone .ki-form-photo-exception ::deep textarea,
.ki-form-readonly-zone .ki-form-photo-exception ::deep .mud-input-outlined-border,
.ki-form-readonly-zone .ki-form-photo-exception ::deep .mud-select-input,
.ki-form-readonly-zone .ki-form-photo-exception ::deep .mud-checkbox,
.ki-form-readonly-zone .ki-form-photo-exception ::deep .mud-radio,
.ki-form-readonly-zone .ki-form-photo-exception ::deep .mud-picker,
.ki-form-readonly-zone .ki-form-photo-exception ::deep .mud-button-root:not(.mud-button-like) {
    pointer-events: auto !important;
}

/* 車検証ファイル・内外装写真など、ロック中でも操作できる領域 */
.ki-form-readonly-zone .ki-form-photo-exception {
    pointer-events: auto !important;
    user-select: auto;
    -webkit-user-select: auto;
}

/* 車検証ファイル添付（商談登録・修正）：ロック／閲覧専用ラッパ内でもクリック可能 */
.ki-form-readonly-zone .ki-form-photo-exception .ki-vic-attach-block,
.ki-form-readonly-zone .ki-form-photo-exception .ki-vic-attach-block .ki-vic-mud-btn,
.ki-form-readonly-zone .ki-form-photo-exception .ki-vic-attach-block .ki-vic-attach-btn,
.ki-form-readonly-zone .ki-form-photo-exception .ki-vic-attach-block .ki-vic-preview-remove,
.ki-form-readonly-zone .ki-form-photo-exception .ki-vic-attach-block label {
    pointer-events: auto !important;
}

.ki-form-readonly-zone .ki-form-photo-exception .vne-add-btn,
.ki-form-readonly-zone .ki-form-photo-exception .vne-remove,
[style*="pointer-events:none"] .ki-form-photo-exception .vne-add-btn {
    pointer-events: auto !important;
}

[style*="pointer-events:none"] .ki-form-photo-exception .ki-vic-attach-block,
[style*="pointer-events:none"] .ki-form-photo-exception .ki-vic-attach-block .ki-vic-mud-btn,
[style*="pointer-events:none"] .ki-form-photo-exception .ki-vic-attach-block .ki-vic-attach-btn,
[style*="pointer-events:none"] .ki-form-photo-exception .ki-vic-attach-block label {
    pointer-events: auto !important;
}

/* 申し送り事項：編集可のときだけ黄で強調 */
.ki-handover-panel-editable {
    background: #ffffcc;
    border: 1px solid #f0e68c;
    border-radius: 4px;
}

.ki-handover-panel-editable ::deep textarea,
.ki-handover-panel-editable ::deep .mud-input-slot {
    background-color: #ffffcc !important;
}
