/* ===============================
   グローバル設定
================================= */

body {
    background-color: #fcf5fb;
    margin: 0;
    font-family: var(--font-noto-sans-jp, sans-serif);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ===============================
   ヘッダー
================================= */

.main-header {
    background: linear-gradient(to right, #c954b7, #9f329a);
    color: #fff;
    padding: 25px 20px;
    font-size: 24px;
    height: 30px;
    display: flex;
    align-items: center;
}

/* ===============================
   レイアウト
================================= */

.layout {
    display: flex;
    height: calc(100vh - 56px);
}

/* ===============================
   サイドメニュー
================================= */

.side-menu-wrapper {
    width: 250px;
    background: #ffffff;
    border: 1px solid #c954b7;
    border-radius: 12px;
    padding-bottom: 10px;
    margin: 20px 0 16px 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    height: 520px;
}

.side-menu-title {
    padding: 9px 12px;
    font-size: 20px;
    background: #f0b6e9;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px 12px 0 0;
}

.side-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2px;
}

.side-menu-item a {
    display: flex;
    font-size: 14px;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    color: #333;
    text-decoration: none;
    border-left: 6px solid transparent;
}

.side-menu-item a:hover {
    background: #edfeff;
}

.side-menu-item.current a {
    border-left-color: #c954b7;
    background: #fff;
}

/* ===============================
   メインコンテンツ
================================= */

.main-content {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;
}


/* 折りたたみ全体 */
.collapsible {
    margin-bottom: 16px;
    border: 1px solid #c954b7;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #fff;
}

/* タイトル帯 */
.collapsible-header {
    background: #f0b6e9;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px 8px 0 0;
    font-size: 18px;
    font-weight: bold;
}

/* 本文 */
.collapsible-body {
    max-height: none !important;
    overflow: visible !important;
}

.collapsible-inner {
    padding: 6px 12px;
    /* 上下6px、左右12px */
}

/* ===============================
   余白（Tailwind削除用）
================================= */

.mt-s {
    margin-top: 8px;
}

.mt-m {
    margin-top: 16px;
}

.mt-l {
    margin-top: 24px;
}

.mb-s {
    margin-bottom: 8px;
}

.mb-m {
    margin-bottom: 16px;
}

.mb-l {
    margin-bottom: 24px;
}

/* ===============================
   グリッド / レイアウトユーティリティ
================================= */

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.grid-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.grid-4col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
}

.col-span-2 {
    grid-column: span 2;
}

/* 横並び */
.hstack {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 幅 */
.w-100 {
    width: 100%;
}

/* ===============================
   ContentFrame（カード）
================================= */

.content-frame {
    background: #ffffff;
    border: 1px solid #c954b7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.content-frame-title {
    background-color: #fcd4bb;
    padding: 10px 16px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* セクション（借入銀行／利息計算など） */
.subsection-title {
    background: #f7efe5;
    padding: 8px 12px;
    font-weight: bold;
    border-radius: 6px 6px 0 0;
    margin-top: 16px;
}

.subsection-box {
    background: #fff;
    padding: 16px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

/* ===============================
   入力系
================================= */

.input-text,
.input-select {
    width: 100%;
    height: 42px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 12px;
}

.input-text:disabled {
    background: #f3f3f3;
}

.input-text:read-only {
    background: #d8d8d8;
}

/* 表示専用（readonly）入力欄：画面側の input-readonly を共通化 */
/* .input-text:read-only より後に置いて上書きする */
.input-text.input-readonly {
    background-color: #f3f3f3;
    color: #555;
    cursor: default;
}

/* フォーカス・クリック時の枠を完全に消す */
.input-text.input-readonly:focus,
.input-text.input-readonly:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: #ccc;
}

.label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #6f6f6f;
}

.label.small {
    font-size: 12px;
}

.badge-required {
    background: #ff6d6d;
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 11px;
}

/* 検索ボタン */
.btn-search {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
}

/* 単位（%） */
.unit {
    display: flex;
    align-items: center;
    height: 42px;
    padding-left: 4px;
}

/* 備考 */
.detail_remark,
.remark {
    height: 120px;
}

/* ===============================
   ボタン（クリア／削除／登録）
================================= */

.button-frame {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-gray {
    width: 150px;
    padding: 10px;
    background: #e2e2e2;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary {
    width: 150px;
    padding: 10px;
    background: #5daeff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.mini-btn-primary {
    width: 60px;
    padding: 10px;
    background: #5daeff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.mini-btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* 2カラム内で横幅100%使う */
.col-2 {
    grid-column: span 2;
}

/* フォームフィールドの上下余白 */
.form-field {
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #777;
}

/* flex基準の幅可変 */
.flex-1 {
    flex: 1;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.left-column,
.right-column {
    width: 100%;
}

.note-box p {
    line-height: 1.45;
    margin-bottom: 4px;
    /* 項目間を詰める */
}

.note-box p:last-child {
    margin-bottom: 0;
    /* 最後だけ余白なし */
}


/* ページ内表デザイン */
/* ===========================
   テーブル全体
=========================== */
.bankmaster-table {
    padding: 0;
}

/* 横スクロール（必要時のみ表示） */
.table-scroll {
    width: 100%;
    overflow-x: auto;
}

/* ===========================
   テーブル本体
=========================== */
.bank-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

/* ヘッダー */
.bank-table thead th {
    background: #000;
    color: #fff;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    border-right: 1px solid #333;
}

.bank-table thead th:last-child {
    border-right: none;
}

.col-new {
    width: 90px;
    text-align: center;
}

.col-company {
    width: 160px;
}

.col-bank {
    width: 180px;
}

.col-subject {
    width: 130px;
}

.col-edit {
    width: 90px;
    text-align: center;
}

/* ===========================
   ボディ
=========================== */
.bank-table tbody td {
    padding: 12px 20px;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}

/* 中央寄せ */
.text-center {
    text-align: center;
}

/* ===========================
   ボタン
=========================== */
.icon-btn {
    padding: 6px 10px !important;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn i {
    font-size: 16px;
}

.half {
    width: 50% !important;
}

.content-info {
    padding: 20px;
    margin-bottom: 20px;
}

.button-size-up {
    width: 240px;
}

.field-body {
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: #f7f8fa;
    padding: 8px 12px;
}

.check-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.checkbox {
    width: 18px;
    height: 18px;
    transform: scale(1.3);
    margin-right: 6px;
}

.search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.search-field .btn-search {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    cursor: pointer;
    right: 0;
}

.search-field .input-text {
    width: 100%;
    padding-right: 40px;
}

.form-layout>.left-column,
.form-layout>.right-column {
    min-width: 0;
}

.modal-header {
    background: #F2DFF3;
    padding: 16px 20px;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    text-align: left;
}

.modal-title {
    font-size: 20px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-window {
    width: 70%;
    max-width: 900px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: auto;
    border-radius: 12px;
    background: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.modal-body {
    padding: 20px;
}

.separator {
    text-align: center;
    font-weight: bold;
}

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

.date-range-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
}

.sortable {
    text-align: center;
    padding: 0;
}

.sort-arrow {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-size: 12px;
    align-items: center;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.form-group-inline {
    display: grid;
    grid-template-columns: 1fr 120px;
    align-items: end;
    gap: 20px;
}

.form-block {
    display: flex;
    flex-direction: column;
}

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

.form-input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background: #F5F5F5;
}

.gray-input {
    background: #ddd;
    font-size: 18px;
    padding: 14px;
}

.modal-message {
    font-size: 16px;
    margin-bottom: 22px;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 22px;
}

.btn-update {
    padding: 9px 20px;
    border: 1px solid #aaa;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.btn-ok {
    background: #96C8FF;
    border: none;
    padding: 10px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

.btn-cancel {
    background: white;
    border: 2px solid #ccc;
    padding: 10px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
}

.detail-table th {
    background: #000;
    color: #fff;
    padding: 12px;
    font-size: 16px;
}

.detail-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #ddd;
}

.detail-table .left-header {
    background: #000 !important;
}

/*商品マスタ特有 数量・金額 列を少し左寄せ */
.detail-table th.qty,
.detail-table td.qty,
.detail-table th.amount,
.detail-table td.amount {
    text-align: left;
    padding-left: 14px;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
    padding: 14px;
    text-align: center;
    background: #fff;
}

.btn-close {
    background: #8FC7F1;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-close:hover {
    background: #72B7E8;
}

/* =========================
   モーダル背景
   ========================= */
#totalModal .modal-overlay,
#updateprocessModal .modal-overlay,
#canceloperationModal .modal-overlay,
#registerModal .modal-overlay,
#detailsreflectedModal .modal-overlay,
#deletedetailsModal .modal-overlay {
    display: none;
    /* JS で display:block にして開く */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    /* 背景暗くする */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* display:block の場合でも中央配置されるように flex に変更 */
#totalModal .modal-overlay[style*="block"],
#updateprocessModal .modal-overlay[style*="block"],
#canceloperationModal .modal-overlay[style*="block"],
#registerModal .modal-overlay[style*="block"],
#detailsreflectedModal .modal-overlay[style*="block"],
#deletedetailsModal .modal-overlay[style*="block"] {
    display: flex !important;
}

/* =========================
   モーダル本体
   ========================= */
#totalModal .modal-window,
#updateprocessModal .modal-window,
#canceloperationModal .modal-window,
#registerModal .modal-window,
#detailsreflectedModal .modal-window,
#deletedetailsModal .modal-window {
    background: #ffffff;
    border-radius: 12px;
    min-width: 480px;
    max-width: 640px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    height: 210px;
}

/* メッセージ部分 */
#totalModal .modal-message,
#updateprocessModal .modal-message,
#canceloperationModal .modal-message,
#registerModal .modal-message,
#detailsreflectedModal .modal-message,
#deletedetailsModal .modal-message {
    padding-top: 24px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

/* OK / キャンセル */
#totalModal .modal-buttons,
#updateprocessModal .modal-buttons,
#canceloperationModal .modal-buttons,
#registerModal .modal-buttons,
#detailsreflectedModal .modal-buttons,
#deletedetailsModal .modal-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 閉じる */
#totalModal .modal-footer,
#updateprocessModal .modal-footer,
#canceloperationModal .modal-footer,
#registerModal .modal-footer,
#detailsreflectedModal .modal-footer,
#deletedetailsModal .modal-footer {
    padding: 16px 0;
    border-top: 1px solid #e2e2e2;
    text-align: center;
}

/* =========================
   ボタン
   ========================= */

/* OK（青ボタン） */
#totalModal .btn-ok,
#updateprocessModal .btn-ok,
#canceloperationModal .btn-ok,
#registerModal .btn-ok,
#detailsreflectedModal .btn-ok,
#deletedetailsModal .btn-ok {
    min-width: 240px;
    height: 44px;
    border-radius: 6px;
    background: #7ec1ff;
    border: none;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* キャンセル（白ボタン） */
#totalModal .btn-cancel,
#updateprocessModal .btn-cancel,
#canceloperationModal .btn-cancel,
#registerModal .btn-cancel,
#detailsreflectedModal .btn-cancel,
#deletedetailsModal .btn-cancel {
    min-width: 240px;
    height: 44px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #cccccc;
    font-weight: 700;
    cursor: pointer;
}

/* 閉じるボタン（下段） */
#totalModal .btn-close,
#updateprocessModal .btn-close,
#canceloperationModal .btn-close,
#registerModal .btn-close,
#detailsreflectedModal .btn-close,
#deletedetailsModal .btn-close {
    min-width: 150px;
    height: 40px;
    border-radius: 6px;
    background: #7ec1ff;
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.date-output-row {
    display: grid;
    grid-template-columns: 180px auto 180px 1fr;
    gap: 12px;
    align-items: end;
}

.tilde-wrapper {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 8px;
}

#pagination a,
#pagination span {
    margin: 0 6px;
}

#pagination .page-link {
    color: #999;
    /* 薄いグレー */
    text-decoration: none;
    padding: 0 4px;
    cursor: pointer;
}

#pagination .page-active {
    color: #92bfef;
    /* 青 */
    font-weight: bold;
    padding: 0 4px;
    cursor: default;
}

.gray {
    background: #e2e2e2;
}

/* =========================
   ページネーション（スクショ寄せ）
========================= */
.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    /* ← 文字の間隔 */
    font-size: 14px;
}

/* 通常リンク（1 / 2 / ≫） */
.pagination .page-link {
    color: #1a73e8;
    /* 青リンク */
    text-decoration: underline;
    cursor: pointer;
    padding: 2px 4px;
    /* ← 押しやすさ確保 */
}

/* 現在ページ */
.pagination .page-active {
    color: #1a73e8;
    font-weight: bold;
    text-decoration: underline;
    cursor: default;
    padding: 2px 4px;
}

/* 無効（… や 押せない≪≫） */
.pagination .page-disabled {
    color: #999;
    text-decoration: none;
    padding: 2px 4px;
}

/* hover（リンク感を強調） */
.pagination .page-link:hover {
    opacity: 0.75;
}

/* =========================
   明細一覧：新規行追加リンク
========================= */
.bank-table .add-row-cell .btn-search16,
.bank-table .add-row-cell .btn-search16:visited,
.bank-table .add-row-cell .btn-search16:hover,
.bank-table .add-row-cell .btn-search16:active,
.bank-table .add-row-cell .btn-search16:focus {
    color: #000;
    text-decoration: none;
}

/* =========================
   検索結果が消えないようにするcss
========================= */
.list-row {
    display: table-row;
}

.list-row.selected {
    background-color: #f0f8ff;
    /* 選択時ハイライトだけ */
}

/* 選択行：tr + td 両方を確実に染める */
.bank-table tbody tr.selected,
.bank-table tbody tr.selected td {
    background-color: #009fc4 !important;
}

.bank-table tbody tr:hover:not(.selected),
.bank-table tbody tr:hover:not(.selected) td {
    background-color: #f7f7f7;
}

/* ===== ローディングオーバーレイ ===== */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-overlay.hidden {
    display: none;
}

.loading-box {
    text-align: center;
    color: #005f73;
    font-weight: 600;
}

/* スピナー */
.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    border: 4px solid #cfe9ef;
    border-top: 4px solid #005f73;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* フィールドエラー */
.field-error {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

/* 赤枠 */
.input-error {
    border-color: #d32f2f !important;
    background-color: #ffebee !important;

}

/* 削除予約（グレー） */
#detailListBody tr.delete-marked,
#detailListBody tr.delete-marked td {
    background: #d9d9d9 !important;
    color: #000 !important;
}

/* 削除予約＋選択中（黒＋白文字） */
#detailListBody tr.delete-marked.selected,
#detailListBody tr.delete-marked.selected td {
    background: #111 !important;
    color: #fff !important;
}

/* 削除取消ボタン：デフォルトは非表示 */
/* ★修正：!important を削除してJavaScriptで制御可能にする */
.btn-undo-delete {
    display: none;
}

/* 削除予約（グレー） */
#detailResultBody tr.delete-pending,
#detailResultBody tr.delete-pending td {
  background: #d9d9d9 !important;
  color: #000 !important;
}

/* 削除予約＋選択中（黒＋白文字） */
#detailResultBody tr.delete-pending.selected,
#detailResultBody tr.delete-pending.selected td {
  background: #111 !important;
  color: #fff !important;
}

/* エラーメッセージ：中身が空なら非表示 */
.field-error:empty {
    display: none;
}

/* =========================
   Chrome autofill 対策（必須）
========================= */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #000 !important;
    caret-color: #000;
}


/* 削除取消モーダル */
#cancelDeleteModal .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#cancelDeleteModal .modal-overlay[style*="flex"] {
    display: flex !important;
}

#cancelDeleteModal .modal-window {
    background: #ffffff;
    border-radius: 12px;
    min-width: 480px;
    max-width: 640px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    height: 210px;
}

#cancelDeleteModal .modal-message {
    padding-top: 24px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

#cancelDeleteModal .modal-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

#cancelDeleteModal .modal-footer {
    padding: 16px 0;
    border-top: 1px solid #e2e2e2;
    text-align: center;
}

#cancelDeleteModal .btn-ok {
    min-width: 240px;
    height: 44px;
    border-radius: 6px;
    background: #7ec1ff;
    border: none;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

#cancelDeleteModal .btn-cancel {
    min-width: 240px;
    height: 44px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #cccccc;
    font-weight: 700;
    cursor: pointer;
}

#cancelDeleteModal .btn-close {
    min-width: 150px;
    height: 40px;
    border-radius: 6px;
    background: #7ec1ff;
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

/* 削除確認中（delete-pending）が付いた行は必ず上書き */
.bank-table tbody tr.delete-pending,
.bank-table tbody tr.delete-pending td {
    background: #d9d9d9 !important;
    /* 灰色のまま */
    color: #fff !important;
    /* 文字白 */
}

.bank-table tbody tr.delete-pending {
    outline: 2px solid #111;
    outline-offset: -2px;
}


/* 空の date input の見た目を“空白”にする（Chrome/Edge向け） */
input[type="date"].date-empty {
    color: transparent !important;
}

input[type="date"].date-empty::-webkit-datetime-edit,
input[type="date"].date-empty::-webkit-datetime-edit-text,
input[type="date"].date-empty::-webkit-datetime-edit-month-field,
input[type="date"].date-empty::-webkit-datetime-edit-day-field,
input[type="date"].date-empty::-webkit-datetime-edit-year-field {
    color: transparent !important;
}

/* アイコンは残す */
input[type="date"].date-empty::-webkit-calendar-picker-indicator {
    opacity: 1 !important;
}

/* フォーカス時は普通に見えるように戻す */
input[type="date"].date-empty:focus,
input[type="date"].date-empty:focus::-webkit-datetime-edit,
input[type="date"].date-empty:focus::-webkit-datetime-edit-text,
input[type="date"].date-empty:focus::-webkit-datetime-edit-month-field,
input[type="date"].date-empty:focus::-webkit-datetime-edit-day-field,
input[type="date"].date-empty:focus::-webkit-datetime-edit-year-field {
    color: inherit !important;
}

/* 基本情報の日付(#dateInput)は空のときフォーカス中も yyyy/mm/dd を見せない */
#dateInput.date-empty:focus,
#dateInput.date-empty:focus::-webkit-datetime-edit,
#dateInput.date-empty:focus::-webkit-datetime-edit-text,
#dateInput.date-empty:focus::-webkit-datetime-edit-month-field,
#dateInput.date-empty:focus::-webkit-datetime-edit-day-field,
#dateInput.date-empty:focus::-webkit-datetime-edit-year-field {
    color: transparent !important;
}

#workslipsearchModal .ws-result-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;          /* flex対策 */
}

#workslipsearchModal .ws-result-scroll table {
  width: 100%;
}
